@templatical/editor 0.7.0 → 0.7.2
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-BwLECwsO.js → AiChatSidebar-DWRONNm6.js} +1 -1
- package/dist/{AiFeatureMenu-CVHKharv.js → AiFeatureMenu-U7b4Z8OV.js} +1 -1
- package/dist/{CloudEditor-DdZatjUe.js → CloudEditor-DgiUCNMn.js} +5 -5
- package/dist/{CollaboratorBar-VZKOv_Zn.js → CollaboratorBar-BgeaMhrV.js} +1 -1
- package/dist/{DesignReferenceSidebar-Ci9HIGbf.js → DesignReferenceSidebar-C1W02bYt.js} +1 -1
- package/dist/{ModuleBrowserModal-D7IYx1Nh.js → ModuleBrowserModal-Bjh99_5c.js} +4 -4
- package/dist/{ModulePreviewCanvas-I-uMcK5G.js → ModulePreviewCanvas-DDDQmUI_.js} +1 -1
- package/dist/{ParagraphEditor-BRQTNDFO.js → ParagraphEditor-BSaEdasm.js} +1 -1
- package/dist/{SaveModuleDialog-DGGGNZfm.js → SaveModuleDialog-9fX6oSxf.js} +2 -2
- package/dist/{SnapshotHistory-C97Iw6xw.js → SnapshotHistory-gYW-IXkE.js} +1 -1
- package/dist/{TestEmailModal-B7S8H-VG.js → TestEmailModal-B_Rmnngq.js} +2 -2
- package/dist/{TitleEditor-DhFTYzrw.js → TitleEditor-XbFuw1Vy.js} +1 -1
- package/dist/{TplModal-BgABm6ju.js → TplModal-LY9rkDph.js} +1 -1
- package/dist/{blockTypeIcons-BSf-3RJ-.js → blockTypeIcons-CLT2H0yU.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-kgNBRaZV.js → AccessibilityPanel-DaqF4Xzy.js} +3 -3
- package/dist/cdn/chunks/{AccessibilityPanel-kgNBRaZV.js.map → AccessibilityPanel-DaqF4Xzy.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-CRkzwdMg.js → AiFeatureMenu-WhZ7G-Wr.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-CRkzwdMg.js.map → AiFeatureMenu-WhZ7G-Wr.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-BfuH2Hrg.js → BlockA11yBadge-BLKyO0lH.js} +2 -2
- package/dist/cdn/chunks/{BlockA11yBadge-BfuH2Hrg.js.map → BlockA11yBadge-BLKyO0lH.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-h5JXI8WQ.js → CloudEditor-BKEXPt3g.js} +7 -7
- package/dist/cdn/chunks/{CloudEditor-h5JXI8WQ.js.map → CloudEditor-BKEXPt3g.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CMl3lAZU.js → CollaboratorBar-ASDiTitQ.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-CMl3lAZU.js.map → CollaboratorBar-ASDiTitQ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-D1RoaOgF.js → CountdownBlock-LAlYJYWL.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-D1RoaOgF.js.map → CountdownBlock-LAlYJYWL.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DltwuOer.js → CountdownToolbar-CbIKGP7u.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-DltwuOer.js.map → CountdownToolbar-CbIKGP7u.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-3uu2mXR9.js → ModuleBrowserModal-BjmdleNq.js} +5 -5
- package/dist/cdn/chunks/{ModuleBrowserModal-3uu2mXR9.js.map → ModuleBrowserModal-BjmdleNq.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-K9CQFr7p.js → ModulePreviewCanvas-DsmACAdb.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-K9CQFr7p.js.map → ModulePreviewCanvas-DsmACAdb.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BIFgtqGs.js → NumberWithSuffix-EEDNj1my.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BIFgtqGs.js.map → NumberWithSuffix-EEDNj1my.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DlpZX_x4.js → ParagraphEditor-D6Dw5RtX.js} +5 -5
- package/dist/cdn/chunks/{ParagraphEditor-DlpZX_x4.js.map → ParagraphEditor-D6Dw5RtX.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CPGT8h-O.js → RichTextEditorContent-C2yj_yPM.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-CPGT8h-O.js.map → RichTextEditorContent-C2yj_yPM.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-_uaJscj1.js → SaveModuleDialog-DCcvwYat.js} +2 -2
- package/dist/cdn/chunks/{SaveModuleDialog-_uaJscj1.js.map → SaveModuleDialog-DCcvwYat.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Kerz6US8.js → TitleEditor-isN_t0MJ.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-Kerz6US8.js.map → TitleEditor-isN_t0MJ.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BeOhGtoo.js → blockTypeIcons-Bgn69Q1-.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BeOhGtoo.js.map → blockTypeIcons-Bgn69Q1-.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BZYkPlKr.js → extensions-BPsjY5N8.js} +2 -2
- package/dist/cdn/chunks/{extensions-BZYkPlKr.js.map → extensions-BPsjY5N8.js.map} +1 -1
- package/dist/cdn/chunks/{features-DzIN-Nua.js → features-BouLRfOO.js} +106 -60
- package/dist/cdn/chunks/features-BouLRfOO.js.map +1 -0
- package/dist/cdn/chunks/{icons-Nvr6w13E.js → icons-BBuZkqC3.js} +2 -2
- package/dist/cdn/chunks/{icons-Nvr6w13E.js.map → icons-BBuZkqC3.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BzT7BoGU.js → media-library-C-DcHE6w.js} +3 -3
- package/dist/cdn/chunks/{media-library-BzT7BoGU.js.map → media-library-C-DcHE6w.js.map} +1 -1
- package/dist/cdn/chunks/{quality-C328caFm.js → quality-ConWSEB6.js} +2 -2
- package/dist/cdn/chunks/{quality-C328caFm.js.map → quality-ConWSEB6.js.map} +1 -1
- package/dist/cdn/chunks/renderer-F8cxEe3t.js +501 -0
- package/dist/cdn/chunks/renderer-F8cxEe3t.js.map +1 -0
- package/dist/cdn/chunks/{src-DKNTQJVO.js → src-C9rMok-R.js} +4 -4
- package/dist/cdn/chunks/{src-DKNTQJVO.js.map → src-C9rMok-R.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DaTht5d7.js → styles-BRN0i_zg.js} +176 -174
- package/dist/cdn/chunks/styles-BRN0i_zg.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +6 -6
- package/dist/{cloud-a3VovHva.js → cloud-CTmfCSqf.js} +11 -0
- package/dist/index.d.ts +5 -5
- package/dist/style.css +1 -1
- package/dist/{styles-D_fEz49o.js → styles-j_3bu0Bo.js} +170 -168
- package/dist/templatical-editor.js +4 -4
- package/dist/{useEditorCore-uCU9Ny0M.js → useEditorCore-B1XrI6fY.js} +91 -56
- package/package.json +7 -7
- package/dist/cdn/chunks/features-DzIN-Nua.js.map +0 -1
- package/dist/cdn/chunks/renderer-DYpHh_uV.js +0 -548
- package/dist/cdn/chunks/renderer-DYpHh_uV.js.map +0 -1
- package/dist/cdn/chunks/styles-DaTht5d7.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { F as e, H as t, L as n, M as r, O as i, P as a, T as o, V as s, Y as c, Z as l, b as u, c as d, ct as f, f as p, g as m, h, it as g, l as _, m as v, n as y, o as b, ot as x, p as S, s as C, st as w, t as T, u as E, v as D, x as O, y as k, z as A } from "./draggable-P6QWzy4g.js";
|
|
2
|
-
import { $ as j, Bt as ee, Cn as M, Ct as te, Et as N, F as P, Ft as ne, G as re, Gt as F, H as ie, I, Jt as L, K as ae, Kt as oe, L as se, Lt as ce, M as le, N as ue, Nt as de, Ot as fe, P as pe, Pt as R, Q as me, R as he, St as ge, U as _e, V as ve, Vt as ye, W as be, Wt as xe, Xt as z, Yt as Se, _n as Ce, bn as we, bt as Te, dn as Ee, hn as De, it as Oe, j as ke, jt as Ae, lt as je, mn as Me, nt as B, pn as Ne, pt as Pe, q as Fe, qt as Ie, rt as Le, st as Re, tn as ze, un as Be, vt as Ve, wt as He, xn as V, xt as Ue, yn as We, yt as Ge, z as Ke, zt as qe } from "./features-
|
|
3
|
-
import { E as H, F as U, G as Je, I as Ye, L as Xe, N as Ze, P as Qe, Q as $e, V as et, Y as tt, c as nt, d as rt, g as it, h as at, j as ot, k as st, l as ct, o as lt, s as ut, v as dt, x as ft, y as pt } from "./icons-
|
|
2
|
+
import { $ as j, Bt as ee, Cn as M, Ct as te, Et as N, F as P, Ft as ne, G as re, Gt as F, H as ie, I, Jt as L, K as ae, Kt as oe, L as se, Lt as ce, M as le, N as ue, Nt as de, Ot as fe, P as pe, Pt as R, Q as me, R as he, St as ge, U as _e, V as ve, Vt as ye, W as be, Wt as xe, Xt as z, Yt as Se, _n as Ce, bn as we, bt as Te, dn as Ee, hn as De, it as Oe, j as ke, jt as Ae, lt as je, mn as Me, nt as B, pn as Ne, pt as Pe, q as Fe, qt as Ie, rt as Le, st as Re, tn as ze, un as Be, vt as Ve, wt as He, xn as V, xt as Ue, yn as We, yt as Ge, z as Ke, zt as qe } from "./features-BouLRfOO.js";
|
|
3
|
+
import { E as H, F as U, G as Je, I as Ye, L as Xe, N as Ze, P as Qe, Q as $e, V as et, Y as tt, c as nt, d as rt, g as it, h as at, j as ot, k as st, l as ct, o as lt, s as ut, v as dt, x as ft, y as pt } from "./icons-BBuZkqC3.js";
|
|
4
4
|
import { t as mt } from "./readableTextColor-DhoK4XiZ.js";
|
|
5
|
-
import { t as ht } from "./CountdownBlock-
|
|
6
|
-
import { t as gt } from "./blockTypeIcons-
|
|
5
|
+
import { t as ht } from "./CountdownBlock-LAlYJYWL.js";
|
|
6
|
+
import { t as gt } from "./blockTypeIcons-Bgn69Q1-.js";
|
|
7
7
|
import { _ as _t, c as vt, f as W, g as yt, h as G, l as bt, m as K, p as q, t as xt } from "./styleConstants-DP1VOca8.js";
|
|
8
|
-
import { i as J, n as Y, r as X, t as St } from "./NumberWithSuffix-
|
|
8
|
+
import { i as J, n as Y, r as X, t as St } from "./NumberWithSuffix-EEDNj1my.js";
|
|
9
9
|
//#region src/utils/resolveAccessibilityOptions.ts
|
|
10
10
|
function Ct(e) {
|
|
11
11
|
return {
|
|
@@ -72,10 +72,7 @@ var wt = ["aria-label"], Tt = {
|
|
|
72
72
|
case "tablet": return 768;
|
|
73
73
|
default: return u.content.settings.width;
|
|
74
74
|
}
|
|
75
|
-
}), F = p(() => ({
|
|
76
|
-
backgroundColor: u.content.settings.backgroundColor,
|
|
77
|
-
fontFamily: u.content.settings.fontFamily
|
|
78
|
-
})), I = p(() => P.value.length === 0 && !u.previewMode), L = l(0), oe = p(() => I.value && L.value > 0);
|
|
75
|
+
}), F = p(() => ({ fontFamily: u.content.settings.fontFamily })), I = p(() => P.value.length === 0 && !u.previewMode), L = l(0), oe = p(() => I.value && L.value > 0);
|
|
79
76
|
function ce() {
|
|
80
77
|
I.value && (L.value += 1);
|
|
81
78
|
}
|
|
@@ -104,16 +101,21 @@ var wt = ["aria-label"], Tt = {
|
|
|
104
101
|
"data-testid": "canvas-wrapper",
|
|
105
102
|
role: "region",
|
|
106
103
|
"aria-label": g(_).landmarks.canvas,
|
|
107
|
-
class: "tpl-canvas-wrapper tpl:rounded-lg",
|
|
104
|
+
class: "tpl-canvas-wrapper tpl:relative tpl:rounded-lg",
|
|
108
105
|
style: w({
|
|
109
106
|
width: `${ne.value}px`,
|
|
110
|
-
backgroundColor: e.content.settings.backgroundColor,
|
|
111
107
|
boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
|
|
112
|
-
|
|
113
|
-
transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease"
|
|
108
|
+
transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
|
|
114
109
|
})
|
|
115
110
|
}, [S("div", {
|
|
116
|
-
class:
|
|
111
|
+
class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
|
|
112
|
+
style: w({
|
|
113
|
+
backgroundColor: e.content.settings.backgroundColor,
|
|
114
|
+
...e.darkMode ? { filter: "invert(1) hue-rotate(180deg)" } : {},
|
|
115
|
+
transition: "filter 300ms ease"
|
|
116
|
+
})
|
|
117
|
+
}, null, 4), S("div", {
|
|
118
|
+
class: x(["tpl-canvas tpl:relative tpl:rounded-lg", {
|
|
117
119
|
"tpl-canvas--dark-mode": e.darkMode,
|
|
118
120
|
"tpl-preview-mode": e.previewMode
|
|
119
121
|
}]),
|
|
@@ -131,6 +133,7 @@ var wt = ["aria-label"], Tt = {
|
|
|
131
133
|
"inverted-swap-threshold": .65,
|
|
132
134
|
disabled: e.previewMode,
|
|
133
135
|
draggable: ".tpl-block-item",
|
|
136
|
+
"force-fallback": !0,
|
|
134
137
|
class: x([
|
|
135
138
|
"tpl-canvas-blocks",
|
|
136
139
|
I.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
|
|
@@ -219,7 +222,7 @@ var wt = ["aria-label"], Tt = {
|
|
|
219
222
|
"class"
|
|
220
223
|
])], 6)], 12, wt));
|
|
221
224
|
}
|
|
222
|
-
}), [["__scopeId", "data-v-
|
|
225
|
+
}), [["__scopeId", "data-v-a4d3fa2d"]]), Pt = ["aria-label"], Ft = {
|
|
223
226
|
key: 0,
|
|
224
227
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
225
228
|
}, It = ["aria-label"], Lt = {
|
|
@@ -239,7 +242,17 @@ var wt = ["aria-label"], Tt = {
|
|
|
239
242
|
}, Ht = /* @__PURE__ */ O({
|
|
240
243
|
__name: "Sidebar",
|
|
241
244
|
setup(e) {
|
|
242
|
-
let { t, format: i } = R(), { t: c } = j(), u = o(F, []), d = o(qe, void 0), _ = o(Ie, null), y = o(ye, {}), b = p(() => (y.savedModules?.moduleCount.value ?? 0) > 0), x = l(!1), C =
|
|
245
|
+
let { t, format: i } = R(), { t: c } = j(), u = o(F, []), d = o(qe, void 0), _ = o(Ie, null), y = o(ye, {}), b = p(() => (y.savedModules?.moduleCount.value ?? 0) > 0), x = l(!1), C = l(!1);
|
|
246
|
+
function D() {
|
|
247
|
+
C.value || (x.value = !1);
|
|
248
|
+
}
|
|
249
|
+
function O() {
|
|
250
|
+
C.value = !0;
|
|
251
|
+
}
|
|
252
|
+
function A() {
|
|
253
|
+
C.value = !1;
|
|
254
|
+
}
|
|
255
|
+
let ee = [
|
|
243
256
|
"section",
|
|
244
257
|
"image",
|
|
245
258
|
"title",
|
|
@@ -252,8 +265,8 @@ var wt = ["aria-label"], Tt = {
|
|
|
252
265
|
"table",
|
|
253
266
|
"spacer",
|
|
254
267
|
"html"
|
|
255
|
-
],
|
|
256
|
-
let e =
|
|
268
|
+
], M = p(() => {
|
|
269
|
+
let e = ee.map((e) => ({
|
|
257
270
|
type: e,
|
|
258
271
|
label: de(e, t)
|
|
259
272
|
}));
|
|
@@ -261,26 +274,26 @@ var wt = ["aria-label"], Tt = {
|
|
|
261
274
|
type: "countdown",
|
|
262
275
|
label: de("countdown", t)
|
|
263
276
|
}), e;
|
|
264
|
-
}),
|
|
277
|
+
}), te = p(() => u.map((e) => ({
|
|
265
278
|
type: `custom:${e.type}`,
|
|
266
279
|
label: e.name,
|
|
267
280
|
isCustom: !0,
|
|
268
281
|
icon: e.icon
|
|
269
|
-
}))),
|
|
270
|
-
function
|
|
282
|
+
}))), N = p(() => [...M.value, ...te.value]);
|
|
283
|
+
function P(e) {
|
|
271
284
|
if (e.isCustom) {
|
|
272
285
|
let t = e.type.replace("custom:", ""), n = u.find((e) => e.type === t);
|
|
273
286
|
if (n) return we(n);
|
|
274
287
|
}
|
|
275
288
|
return We(e.type, d);
|
|
276
289
|
}
|
|
277
|
-
function
|
|
290
|
+
function ne(e) {
|
|
278
291
|
if (!_) return;
|
|
279
|
-
let t =
|
|
292
|
+
let t = P(e);
|
|
280
293
|
_.addBlock(t), _.selectBlock(t.id);
|
|
281
294
|
}
|
|
282
|
-
function
|
|
283
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
295
|
+
function re(e, t) {
|
|
296
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), ne(t));
|
|
284
297
|
}
|
|
285
298
|
return (e, o) => (r(), m("aside", {
|
|
286
299
|
"aria-label": g(t).sidebarNav.palette,
|
|
@@ -293,9 +306,9 @@ var wt = ["aria-label"], Tt = {
|
|
|
293
306
|
transition: "width 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
294
307
|
}),
|
|
295
308
|
onMouseenter: o[1] ||= (e) => x.value = !0,
|
|
296
|
-
onMouseleave:
|
|
297
|
-
onFocusin: o[
|
|
298
|
-
onFocusout: o[
|
|
309
|
+
onMouseleave: D,
|
|
310
|
+
onFocusin: o[2] ||= (e) => x.value = !0,
|
|
311
|
+
onFocusout: o[3] ||= (e) => x.value = !1
|
|
299
312
|
}, [b.value && g(c) ? (r(), m("div", Ft, [S("button", {
|
|
300
313
|
type: "button",
|
|
301
314
|
"aria-label": g(t).sidebarNav.browseModules,
|
|
@@ -311,27 +324,30 @@ var wt = ["aria-label"], Tt = {
|
|
|
311
324
|
x.value ? (r(), m("span", Lt, f(g(c).modules.title), 1)) : h("", !0),
|
|
312
325
|
x.value ? (r(), m("span", Rt, f(g(y).savedModules?.moduleCount.value ?? 0), 1)) : h("", !0)
|
|
313
326
|
], 12, It)])) : h("", !0), k(g(T), {
|
|
314
|
-
"model-value":
|
|
327
|
+
"model-value": N.value,
|
|
315
328
|
group: {
|
|
316
329
|
name: "blocks",
|
|
317
330
|
pull: "clone",
|
|
318
331
|
put: !1
|
|
319
332
|
},
|
|
320
|
-
clone:
|
|
333
|
+
clone: P,
|
|
321
334
|
sort: !1,
|
|
322
335
|
animation: 150,
|
|
323
336
|
"ghost-class": "tpl-ghost",
|
|
324
|
-
|
|
337
|
+
"force-fallback": !0,
|
|
338
|
+
class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:p-1",
|
|
339
|
+
onChoose: O,
|
|
340
|
+
onEnd: A
|
|
325
341
|
}, {
|
|
326
|
-
default: s(() => [(r(!0), m(E, null, a(
|
|
342
|
+
default: s(() => [(r(!0), m(E, null, a(N.value, (e) => (r(), m("button", {
|
|
327
343
|
key: e.type,
|
|
328
344
|
type: "button",
|
|
329
345
|
"data-palette-type": e.type,
|
|
330
346
|
"aria-label": g(i)(g(t).sidebarNav.insertBlock, { block: e.label }),
|
|
331
347
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] active:tpl:cursor-grabbing",
|
|
332
348
|
style: w({ justifyContent: x.value ? "flex-start" : "center" }),
|
|
333
|
-
onClick: (t) =>
|
|
334
|
-
onKeydown: (t) =>
|
|
349
|
+
onClick: (t) => ne(e),
|
|
350
|
+
onKeydown: (t) => re(t, e)
|
|
335
351
|
}, [S("div", Bt, [g(gt)[e.type] ? (r(), v(n(g(gt)[e.type]), {
|
|
336
352
|
key: 0,
|
|
337
353
|
size: 20,
|
|
@@ -2053,7 +2069,7 @@ var Si = {
|
|
|
2053
2069
|
value: e.value
|
|
2054
2070
|
}, f(e.label), 9, ga))), 128))], 42, ha)]));
|
|
2055
2071
|
}
|
|
2056
|
-
}), va = { class: "tpl:mb-3.5" }, ya = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ba = { class: "tpl:flex tpl:items-center tpl:gap-2" }, xa = ["value", "onChange"], Sa = ["value"], Ca = ["title", "onClick"], wa = { class: "tpl:mb-3.5" }, Ta = { class: "tpl:mb-3.5" },
|
|
2072
|
+
}), va = { class: "tpl:mb-3.5" }, ya = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ba = { class: "tpl:flex tpl:items-center tpl:gap-2" }, xa = ["value", "onChange"], Sa = ["value"], Ca = ["title", "onClick"], wa = { class: "tpl:mb-3.5" }, Ta = ["value"], Ea = { value: "solid" }, Da = { value: "outlined" }, Oa = { value: "rounded" }, ka = { value: "square" }, Aa = { value: "circle" }, ja = { class: "tpl:mb-3.5" }, Ma = { class: "tpl:mb-3.5" }, Na = { class: "tpl:flex tpl:items-stretch" }, Pa = ["value"], Fa = { class: "tpl:mb-3.5" }, Ia = /* @__PURE__ */ O({
|
|
2057
2073
|
__name: "SocialToolbar",
|
|
2058
2074
|
props: { block: {} },
|
|
2059
2075
|
emits: ["update"],
|
|
@@ -2084,6 +2100,7 @@ var Si = {
|
|
|
2084
2100
|
key: e.id,
|
|
2085
2101
|
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"
|
|
2086
2102
|
}, [S("div", ba, [S("select", {
|
|
2103
|
+
"data-testid": "social-platform-select",
|
|
2087
2104
|
class: x([g(W), "tpl:flex-1"]),
|
|
2088
2105
|
value: e.platform,
|
|
2089
2106
|
onChange: (t) => l(e.id, "platform", t.target.value)
|
|
@@ -2113,33 +2130,18 @@ var Si = {
|
|
|
2113
2130
|
size: 14,
|
|
2114
2131
|
"stroke-width": 2
|
|
2115
2132
|
}), D(" " + f(g(o).social.addIcon), 1)], 2)])]),
|
|
2116
|
-
S("div", wa, [S("label", { class: x(g(G)) }, f(g(o).social.style), 3),
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
label: g(o).social.styleRounded
|
|
2129
|
-
},
|
|
2130
|
-
{
|
|
2131
|
-
value: "square",
|
|
2132
|
-
label: g(o).social.styleSquare
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
value: "circle",
|
|
2136
|
-
label: g(o).social.styleCircle
|
|
2137
|
-
}
|
|
2138
|
-
],
|
|
2139
|
-
"model-value": e.block.iconStyle,
|
|
2140
|
-
"onUpdate:modelValue": n[0] ||= (e) => s("iconStyle", e)
|
|
2141
|
-
}, null, 8, ["options", "model-value"])]),
|
|
2142
|
-
S("div", Ta, [S("label", { class: x(g(G)) }, f(g(o).social.size), 3), k(X, {
|
|
2133
|
+
S("div", wa, [S("label", { class: x(g(G)) }, f(g(o).social.style), 3), S("select", {
|
|
2134
|
+
class: x(g(W)),
|
|
2135
|
+
value: e.block.iconStyle,
|
|
2136
|
+
onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
|
|
2137
|
+
}, [
|
|
2138
|
+
S("option", Ea, f(g(o).social.styleSolid), 1),
|
|
2139
|
+
S("option", Da, f(g(o).social.styleOutlined), 1),
|
|
2140
|
+
S("option", Oa, f(g(o).social.styleRounded), 1),
|
|
2141
|
+
S("option", ka, f(g(o).social.styleSquare), 1),
|
|
2142
|
+
S("option", Aa, f(g(o).social.styleCircle), 1)
|
|
2143
|
+
], 42, Ta)]),
|
|
2144
|
+
S("div", ja, [S("label", { class: x(g(G)) }, f(g(o).social.size), 3), k(X, {
|
|
2143
2145
|
options: [
|
|
2144
2146
|
{
|
|
2145
2147
|
value: "small",
|
|
@@ -2157,15 +2159,15 @@ var Si = {
|
|
|
2157
2159
|
"model-value": e.block.iconSize,
|
|
2158
2160
|
"onUpdate:modelValue": n[1] ||= (e) => s("iconSize", e)
|
|
2159
2161
|
}, null, 8, ["options", "model-value"])]),
|
|
2160
|
-
S("div",
|
|
2162
|
+
S("div", Ma, [S("label", { class: x(g(G)) }, f(g(o).social.spacing), 3), S("div", Na, [S("input", {
|
|
2161
2163
|
type: "number",
|
|
2162
2164
|
class: x(g(q)),
|
|
2163
2165
|
value: e.block.spacing,
|
|
2164
2166
|
min: "0",
|
|
2165
2167
|
max: "50",
|
|
2166
2168
|
onInput: n[2] ||= (e) => s("spacing", Number(e.target.value))
|
|
2167
|
-
}, null, 42,
|
|
2168
|
-
S("div",
|
|
2169
|
+
}, null, 42, Pa), S("span", { class: x(g(K)) }, "px", 2)])]),
|
|
2170
|
+
S("div", Fa, [S("label", { class: x(g(G)) }, f(g(o).social.align), 3), k(X, {
|
|
2169
2171
|
options: [
|
|
2170
2172
|
{
|
|
2171
2173
|
value: "left",
|
|
@@ -2188,22 +2190,22 @@ var Si = {
|
|
|
2188
2190
|
}, null, 8, ["options", "model-value"])])
|
|
2189
2191
|
], 64));
|
|
2190
2192
|
}
|
|
2191
|
-
}),
|
|
2193
|
+
}), La = { class: "tpl:mb-3.5" }, Ra = { class: "tpl:flex tpl:items-stretch" }, za = ["value"], Ba = ["value"], Va = /* @__PURE__ */ O({
|
|
2192
2194
|
__name: "SpacerToolbar",
|
|
2193
2195
|
props: { block: {} },
|
|
2194
2196
|
emits: ["update"],
|
|
2195
2197
|
setup(e, { emit: t }) {
|
|
2196
2198
|
let n = t, { t: i } = R();
|
|
2197
|
-
return (t, a) => (r(), m("div",
|
|
2199
|
+
return (t, a) => (r(), m("div", La, [
|
|
2198
2200
|
S("label", { class: x(g(G)) }, f(g(i).spacer.height), 3),
|
|
2199
|
-
S("div",
|
|
2201
|
+
S("div", Ra, [S("input", {
|
|
2200
2202
|
type: "number",
|
|
2201
2203
|
class: x(g(q)),
|
|
2202
2204
|
value: e.block.height,
|
|
2203
2205
|
min: "10",
|
|
2204
2206
|
max: "100",
|
|
2205
2207
|
onInput: a[0] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2206
|
-
}, null, 42,
|
|
2208
|
+
}, null, 42, za), S("span", { class: x(g(K)) }, "px", 2)]),
|
|
2207
2209
|
S("input", {
|
|
2208
2210
|
type: "range",
|
|
2209
2211
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2211,13 +2213,13 @@ var Si = {
|
|
|
2211
2213
|
min: "10",
|
|
2212
2214
|
max: "100",
|
|
2213
2215
|
onInput: a[1] ||= (e) => n("update", { height: Number(e.target.value) })
|
|
2214
|
-
}, null, 40,
|
|
2216
|
+
}, null, 40, Ba)
|
|
2215
2217
|
]));
|
|
2216
2218
|
}
|
|
2217
|
-
}),
|
|
2219
|
+
}), Ha = { class: "tpl:mb-3.5" }, Ua = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Wa = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ga = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ka = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, qa = ["disabled"], Ja = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ya = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Xa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Za = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Qa = ["disabled"], $a = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, eo = { class: "tpl:mb-3.5" }, to = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, no = ["checked"], ro = {
|
|
2218
2220
|
key: 0,
|
|
2219
2221
|
class: "tpl:mb-3.5"
|
|
2220
|
-
},
|
|
2222
|
+
}, io = { class: "tpl:mb-3.5" }, ao = { class: "tpl:mb-3.5" }, oo = { class: "tpl:flex tpl:items-stretch" }, so = ["value"], co = { class: "tpl:mb-3.5" }, lo = { class: "tpl:flex tpl:items-stretch" }, uo = ["value"], fo = { class: "tpl:mb-3.5" }, po = ["value"], mo = { value: "" }, ho = ["value"], go = { class: "tpl:mb-3.5" }, _o = { class: "tpl:flex tpl:items-stretch" }, vo = ["value"], yo = { class: "tpl:mb-3.5" }, bo = { class: "tpl:mb-3.5" }, xo = /* @__PURE__ */ O({
|
|
2221
2223
|
__name: "TableToolbar",
|
|
2222
2224
|
props: {
|
|
2223
2225
|
block: {},
|
|
@@ -2258,7 +2260,7 @@ var Si = {
|
|
|
2258
2260
|
})) });
|
|
2259
2261
|
}
|
|
2260
2262
|
return (t, n) => (r(), m(E, null, [
|
|
2261
|
-
S("div",
|
|
2263
|
+
S("div", Ha, [S("label", { class: x(g(G)) }, f(g(o).table.dimensions), 3), S("div", Ua, [S("div", Wa, [S("span", Ga, f(g(o).table.rows), 1), S("div", Ka, [
|
|
2262
2264
|
S("button", {
|
|
2263
2265
|
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",
|
|
2264
2266
|
disabled: e.block.rows.length <= 1,
|
|
@@ -2266,8 +2268,8 @@ var Si = {
|
|
|
2266
2268
|
}, [k(g(U), {
|
|
2267
2269
|
size: 12,
|
|
2268
2270
|
"stroke-width": 2
|
|
2269
|
-
})], 8,
|
|
2270
|
-
S("span",
|
|
2271
|
+
})], 8, qa),
|
|
2272
|
+
S("span", Ja, f(e.block.rows.length), 1),
|
|
2271
2273
|
S("button", {
|
|
2272
2274
|
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)]",
|
|
2273
2275
|
onClick: l
|
|
@@ -2275,7 +2277,7 @@ var Si = {
|
|
|
2275
2277
|
size: 12,
|
|
2276
2278
|
"stroke-width": 2
|
|
2277
2279
|
})])
|
|
2278
|
-
])]), S("div",
|
|
2280
|
+
])]), S("div", Ya, [S("span", Xa, f(g(o).table.columns), 1), S("div", Za, [
|
|
2279
2281
|
S("button", {
|
|
2280
2282
|
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",
|
|
2281
2283
|
disabled: s.value <= 1,
|
|
@@ -2283,8 +2285,8 @@ var Si = {
|
|
|
2283
2285
|
}, [k(g(U), {
|
|
2284
2286
|
size: 12,
|
|
2285
2287
|
"stroke-width": 2
|
|
2286
|
-
})], 8,
|
|
2287
|
-
S("span",
|
|
2288
|
+
})], 8, Qa),
|
|
2289
|
+
S("span", $a, f(s.value), 1),
|
|
2288
2290
|
S("button", {
|
|
2289
2291
|
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)]",
|
|
2290
2292
|
onClick: d
|
|
@@ -2293,58 +2295,58 @@ var Si = {
|
|
|
2293
2295
|
"stroke-width": 2
|
|
2294
2296
|
})])
|
|
2295
2297
|
])])])]),
|
|
2296
|
-
S("div",
|
|
2298
|
+
S("div", eo, [S("label", to, [S("input", {
|
|
2297
2299
|
type: "checkbox",
|
|
2298
2300
|
checked: e.block.hasHeaderRow,
|
|
2299
2301
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2300
2302
|
onChange: n[2] ||= (e) => c("hasHeaderRow", e.target.checked)
|
|
2301
|
-
}, null, 40,
|
|
2302
|
-
e.block.hasHeaderRow ? (r(), m("div",
|
|
2303
|
+
}, null, 40, no), D(" " + f(g(o).table.hasHeaderRow), 1)])]),
|
|
2304
|
+
e.block.hasHeaderRow ? (r(), m("div", ro, [S("label", { class: x(g(G)) }, f(g(o).table.headerBackgroundColor), 3), k(J, {
|
|
2303
2305
|
"model-value": e.block.headerBackgroundColor || g("#f2f2f2"),
|
|
2304
2306
|
placeholder: g(o).table.noHeaderBg,
|
|
2305
2307
|
"onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
|
|
2306
2308
|
}, null, 8, ["model-value", "placeholder"])])) : h("", !0),
|
|
2307
|
-
S("div",
|
|
2309
|
+
S("div", io, [S("label", { class: x(g(G)) }, f(g(o).table.borderColor), 3), k(J, {
|
|
2308
2310
|
"model-value": e.block.borderColor,
|
|
2309
2311
|
"onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
|
|
2310
2312
|
}, null, 8, ["model-value"])]),
|
|
2311
|
-
S("div",
|
|
2313
|
+
S("div", ao, [S("label", { class: x(g(G)) }, f(g(o).table.borderWidth), 3), S("div", oo, [S("input", {
|
|
2312
2314
|
type: "number",
|
|
2313
2315
|
class: x(g(q)),
|
|
2314
2316
|
value: e.block.borderWidth,
|
|
2315
2317
|
min: "0",
|
|
2316
2318
|
max: "10",
|
|
2317
2319
|
onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
|
|
2318
|
-
}, null, 42,
|
|
2319
|
-
S("div",
|
|
2320
|
+
}, null, 42, so), S("span", { class: x(g(K)) }, "px", 2)])]),
|
|
2321
|
+
S("div", co, [S("label", { class: x(g(G)) }, f(g(o).table.cellPadding), 3), S("div", lo, [S("input", {
|
|
2320
2322
|
type: "number",
|
|
2321
2323
|
class: x(g(q)),
|
|
2322
2324
|
value: e.block.cellPadding,
|
|
2323
2325
|
min: "0",
|
|
2324
2326
|
max: "30",
|
|
2325
2327
|
onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
|
|
2326
|
-
}, null, 42,
|
|
2327
|
-
S("div",
|
|
2328
|
+
}, null, 42, uo), S("span", { class: x(g(K)) }, "px", 2)])]),
|
|
2329
|
+
S("div", fo, [S("label", { class: x(g(G)) }, f(g(o).table.fontFamily), 3), S("select", {
|
|
2328
2330
|
class: x(g(W)),
|
|
2329
2331
|
value: e.block.fontFamily || "",
|
|
2330
2332
|
onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
|
|
2331
|
-
}, [S("option",
|
|
2333
|
+
}, [S("option", mo, f(g(o).title.inheritFont), 1), (r(!0), m(E, null, a(e.fontFamilies, (e) => (r(), m("option", {
|
|
2332
2334
|
key: e.value,
|
|
2333
2335
|
value: e.value
|
|
2334
|
-
}, f(e.label), 9,
|
|
2335
|
-
S("div",
|
|
2336
|
+
}, f(e.label), 9, ho))), 128))], 42, po)]),
|
|
2337
|
+
S("div", go, [S("label", { class: x(g(G)) }, f(g(o).table.fontSize), 3), S("div", _o, [S("input", {
|
|
2336
2338
|
type: "number",
|
|
2337
2339
|
class: x(g(q)),
|
|
2338
2340
|
value: e.block.fontSize,
|
|
2339
2341
|
min: "10",
|
|
2340
2342
|
max: "32",
|
|
2341
2343
|
onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
|
|
2342
|
-
}, null, 42,
|
|
2343
|
-
S("div",
|
|
2344
|
+
}, null, 42, vo), S("span", { class: x(g(K)) }, "px", 2)])]),
|
|
2345
|
+
S("div", yo, [S("label", { class: x(g(G)) }, f(g(o).table.color), 3), k(J, {
|
|
2344
2346
|
"model-value": e.block.color,
|
|
2345
2347
|
"onUpdate:modelValue": n[9] ||= (e) => c("color", e)
|
|
2346
2348
|
}, null, 8, ["model-value"])]),
|
|
2347
|
-
S("div",
|
|
2349
|
+
S("div", bo, [S("label", { class: x(g(G)) }, f(g(o).table.textAlign), 3), k(X, {
|
|
2348
2350
|
options: [
|
|
2349
2351
|
{
|
|
2350
2352
|
value: "left",
|
|
@@ -2367,7 +2369,7 @@ var Si = {
|
|
|
2367
2369
|
}, null, 8, ["options", "model-value"])])
|
|
2368
2370
|
], 64));
|
|
2369
2371
|
}
|
|
2370
|
-
}),
|
|
2372
|
+
}), So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = { value: 1 }, To = { value: 2 }, Eo = { value: 3 }, Do = { value: 4 }, Oo = { class: "tpl:mb-3.5" }, ko = ["value"], Ao = { value: "" }, jo = ["value"], Mo = { class: "tpl:mb-3.5" }, No = { class: "tpl:mb-3.5" }, Po = /* @__PURE__ */ O({
|
|
2371
2373
|
__name: "TitleToolbar",
|
|
2372
2374
|
props: {
|
|
2373
2375
|
block: {},
|
|
@@ -2380,29 +2382,29 @@ var Si = {
|
|
|
2380
2382
|
n("update", { [e]: t });
|
|
2381
2383
|
}
|
|
2382
2384
|
return (t, n) => (r(), m(E, null, [
|
|
2383
|
-
S("div",
|
|
2385
|
+
S("div", So, [S("label", { class: x(g(G)) }, f(g(i).title.level), 3), S("select", {
|
|
2384
2386
|
class: x(g(W)),
|
|
2385
2387
|
value: e.block.level,
|
|
2386
2388
|
onChange: n[0] ||= (e) => o("level", Number(e.target.value))
|
|
2387
2389
|
}, [
|
|
2388
|
-
S("option",
|
|
2389
|
-
S("option",
|
|
2390
|
-
S("option",
|
|
2391
|
-
S("option",
|
|
2392
|
-
], 42,
|
|
2393
|
-
S("div",
|
|
2390
|
+
S("option", wo, f(g(i).title.heading1), 1),
|
|
2391
|
+
S("option", To, f(g(i).title.heading2), 1),
|
|
2392
|
+
S("option", Eo, f(g(i).title.heading3), 1),
|
|
2393
|
+
S("option", Do, f(g(i).title.heading4), 1)
|
|
2394
|
+
], 42, Co)]),
|
|
2395
|
+
S("div", Oo, [S("label", { class: x(g(G)) }, f(g(i).title.fontFamily), 3), S("select", {
|
|
2394
2396
|
class: x(g(W)),
|
|
2395
2397
|
value: e.block.fontFamily || "",
|
|
2396
2398
|
onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
2397
|
-
}, [S("option",
|
|
2399
|
+
}, [S("option", Ao, f(g(i).title.inheritFont), 1), (r(!0), m(E, null, a(e.fontFamilies, (e) => (r(), m("option", {
|
|
2398
2400
|
key: e.value,
|
|
2399
2401
|
value: e.value
|
|
2400
|
-
}, f(e.label), 9,
|
|
2401
|
-
S("div",
|
|
2402
|
+
}, f(e.label), 9, jo))), 128))], 42, ko)]),
|
|
2403
|
+
S("div", Mo, [S("label", { class: x(g(G)) }, f(g(i).title.color), 3), k(J, {
|
|
2402
2404
|
"model-value": e.block.color,
|
|
2403
2405
|
"onUpdate:modelValue": n[2] ||= (e) => o("color", e)
|
|
2404
2406
|
}, null, 8, ["model-value"])]),
|
|
2405
|
-
S("div",
|
|
2407
|
+
S("div", No, [S("label", { class: x(g(G)) }, f(g(i).title.align), 3), k(X, {
|
|
2406
2408
|
options: [
|
|
2407
2409
|
{
|
|
2408
2410
|
value: "left",
|
|
@@ -2425,17 +2427,17 @@ var Si = {
|
|
|
2425
2427
|
}, null, 8, ["options", "model-value"])])
|
|
2426
2428
|
], 64));
|
|
2427
2429
|
}
|
|
2428
|
-
}),
|
|
2430
|
+
}), Fo = { class: "tpl:mb-3.5" }, Io = {
|
|
2429
2431
|
key: 0,
|
|
2430
2432
|
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2431
|
-
},
|
|
2433
|
+
}, Lo = ["checked"], Ro = {
|
|
2432
2434
|
key: 0,
|
|
2433
2435
|
class: "tpl:mb-3.5"
|
|
2434
|
-
},
|
|
2436
|
+
}, zo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Bo = [
|
|
2435
2437
|
"value",
|
|
2436
2438
|
"placeholder",
|
|
2437
2439
|
"title"
|
|
2438
|
-
],
|
|
2440
|
+
], Vo = { class: "tpl:mb-3.5" }, Ho = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Uo = { class: "tpl:mb-3.5" }, Wo = { class: "tpl:mb-3.5" }, Go = ["value"], Ko = { value: "full" }, qo = { class: "tpl:mb-3.5" }, Jo = /* @__PURE__ */ O({
|
|
2439
2441
|
__name: "VideoToolbar",
|
|
2440
2442
|
props: { block: {} },
|
|
2441
2443
|
emits: ["update"],
|
|
@@ -2451,7 +2453,7 @@ var Si = {
|
|
|
2451
2453
|
e && (y("thumbnailUrl", e.url), _.value = !0, v());
|
|
2452
2454
|
}
|
|
2453
2455
|
return (t, n) => (r(), m(E, null, [
|
|
2454
|
-
S("div",
|
|
2456
|
+
S("div", Fo, [
|
|
2455
2457
|
S("label", { class: x(g(G)) }, f(g(a).video.videoUrl), 3),
|
|
2456
2458
|
k(Z, {
|
|
2457
2459
|
"model-value": e.block.url,
|
|
@@ -2459,23 +2461,23 @@ var Si = {
|
|
|
2459
2461
|
placeholder: g(a).video.videoUrlPlaceholder,
|
|
2460
2462
|
"onUpdate:modelValue": n[0] ||= (e) => y("url", e)
|
|
2461
2463
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2462
|
-
e.block.url ? (r(), m("label",
|
|
2464
|
+
e.block.url ? (r(), m("label", Io, [S("input", {
|
|
2463
2465
|
type: "checkbox",
|
|
2464
2466
|
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
2465
2467
|
checked: e.block.openInNewTab ?? !1,
|
|
2466
2468
|
onChange: n[1] ||= (e) => y("openInNewTab", e.target.checked)
|
|
2467
|
-
}, null, 40,
|
|
2469
|
+
}, null, 40, Lo), D(" " + f(g(a).video.openInNewTab), 1)])) : h("", !0)
|
|
2468
2470
|
]),
|
|
2469
|
-
d.value ? (r(), m("div",
|
|
2471
|
+
d.value ? (r(), m("div", Ro, [S("label", { class: x(g(G)) }, [D(f(g(a).video.placeholderUrl) + " ", 1), S("span", zo, f(g(a).video.optional), 1)], 2), S("input", {
|
|
2470
2472
|
type: "url",
|
|
2471
2473
|
class: x(g(W)),
|
|
2472
2474
|
value: e.block.placeholderUrl || "",
|
|
2473
2475
|
placeholder: g(a).video.placeholderUrlPlaceholder,
|
|
2474
2476
|
title: g(a).video.placeholderUrlTooltip,
|
|
2475
2477
|
onInput: n[2] ||= (e) => y("placeholderUrl", e.target.value)
|
|
2476
|
-
}, null, 42,
|
|
2477
|
-
S("div",
|
|
2478
|
-
S("label", { class: x(g(G)) }, [D(f(g(a).video.customThumbnail) + " ", 1), S("span",
|
|
2478
|
+
}, null, 42, Bo)])) : h("", !0),
|
|
2479
|
+
S("div", Vo, [
|
|
2480
|
+
S("label", { class: x(g(G)) }, [D(f(g(a).video.customThumbnail) + " ", 1), S("span", Ho, f(g(a).video.optional), 1)], 2),
|
|
2479
2481
|
k(Z, {
|
|
2480
2482
|
"model-value": e.block.thumbnailUrl,
|
|
2481
2483
|
type: "url",
|
|
@@ -2501,23 +2503,23 @@ var Si = {
|
|
|
2501
2503
|
"stroke-width": 1.5
|
|
2502
2504
|
}), D(" " + f(g(a).image.browseMedia), 1)])) : h("", !0)
|
|
2503
2505
|
]),
|
|
2504
|
-
S("div",
|
|
2506
|
+
S("div", Uo, [S("label", { class: x(g(G)) }, f(g(a).video.altText), 3), k(Z, {
|
|
2505
2507
|
"model-value": e.block.alt,
|
|
2506
2508
|
type: "text",
|
|
2507
2509
|
placeholder: g(a).video.altTextPlaceholder,
|
|
2508
2510
|
"onUpdate:modelValue": n[4] ||= (e) => y("alt", e)
|
|
2509
2511
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
2510
|
-
S("div",
|
|
2512
|
+
S("div", Wo, [S("label", { class: x(g(G)) }, f(g(a).video.width), 3), S("select", {
|
|
2511
2513
|
class: x(g(W)),
|
|
2512
2514
|
value: e.block.width,
|
|
2513
2515
|
onChange: n[5] ||= (e) => y("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
2514
2516
|
}, [
|
|
2515
|
-
S("option",
|
|
2517
|
+
S("option", Ko, f(g(a).video.fullWidth), 1),
|
|
2516
2518
|
n[7] ||= S("option", { value: "300" }, "300px", -1),
|
|
2517
2519
|
n[8] ||= S("option", { value: "400" }, "400px", -1),
|
|
2518
2520
|
n[9] ||= S("option", { value: "500" }, "500px", -1)
|
|
2519
|
-
], 42,
|
|
2520
|
-
S("div",
|
|
2521
|
+
], 42, Go)]),
|
|
2522
|
+
S("div", qo, [S("label", { class: x(g(G)) }, f(g(a).title.align), 3), k(X, {
|
|
2521
2523
|
options: [
|
|
2522
2524
|
{
|
|
2523
2525
|
value: "left",
|
|
@@ -2537,7 +2539,7 @@ var Si = {
|
|
|
2537
2539
|
}, null, 8, ["options", "model-value"])])
|
|
2538
2540
|
], 64));
|
|
2539
2541
|
}
|
|
2540
|
-
}),
|
|
2542
|
+
}), Yo = ["aria-label"], Xo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Zo = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Qo = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $o = { class: "tpl:flex tpl:gap-1" }, es = ["title"], ts = ["title"], ns = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, rs = /* @__PURE__ */ B(/* @__PURE__ */ O({
|
|
2541
2543
|
__name: "Toolbar",
|
|
2542
2544
|
props: { block: {} },
|
|
2543
2545
|
emits: [
|
|
@@ -2546,7 +2548,7 @@ var Si = {
|
|
|
2546
2548
|
"duplicate"
|
|
2547
2549
|
],
|
|
2548
2550
|
setup(e, { emit: t }) {
|
|
2549
|
-
let i = u(() => import("./CountdownToolbar-
|
|
2551
|
+
let i = u(() => import("./CountdownToolbar-CbIKGP7u.js")), a = e, s = t, { t: c } = R(), l = ze(L, "Toolbar"), d = o(F, []), _ = p(() => a.block.type), y = p(() => M(a.block)), b = p(() => {
|
|
2550
2552
|
if (y.value) return d.find((e) => e.type === a.block.customType);
|
|
2551
2553
|
}), x = p(() => y.value ? b.value?.name ?? a.block.customType : de(_.value, c)), C = l.fonts;
|
|
2552
2554
|
function w(e) {
|
|
@@ -2555,7 +2557,7 @@ var Si = {
|
|
|
2555
2557
|
return (t, a) => (r(), m("aside", {
|
|
2556
2558
|
"aria-label": g(c).landmarks.blockToolbar,
|
|
2557
2559
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
2558
|
-
}, [S("div",
|
|
2560
|
+
}, [S("div", Xo, [S("div", Zo, [g(gt)[_.value] ? (r(), v(n(g(gt)[_.value]), {
|
|
2559
2561
|
key: 0,
|
|
2560
2562
|
size: 16,
|
|
2561
2563
|
"stroke-width": 1.5
|
|
@@ -2563,21 +2565,21 @@ var Si = {
|
|
|
2563
2565
|
key: 1,
|
|
2564
2566
|
size: 16,
|
|
2565
2567
|
"stroke-width": 1.5
|
|
2566
|
-
})) : h("", !0), S("h3",
|
|
2568
|
+
})) : h("", !0), S("h3", Qo, f(x.value), 1)]), S("div", $o, [S("button", {
|
|
2567
2569
|
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)]",
|
|
2568
2570
|
title: g(c).toolbar.duplicate,
|
|
2569
2571
|
onClick: a[0] ||= (e) => s("duplicate")
|
|
2570
2572
|
}, [k(g(te), {
|
|
2571
2573
|
size: 14,
|
|
2572
2574
|
"stroke-width": 2
|
|
2573
|
-
})], 8,
|
|
2575
|
+
})], 8, es), S("button", {
|
|
2574
2576
|
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)]",
|
|
2575
2577
|
title: g(c).toolbar.delete,
|
|
2576
2578
|
onClick: a[1] ||= (e) => s("delete")
|
|
2577
2579
|
}, [k(g(Re), {
|
|
2578
2580
|
size: 14,
|
|
2579
2581
|
"stroke-width": 2
|
|
2580
|
-
})], 8,
|
|
2582
|
+
})], 8, ts)])]), S("div", ns, [y.value ? (r(), v(Ai, {
|
|
2581
2583
|
key: 0,
|
|
2582
2584
|
block: e.block,
|
|
2583
2585
|
onUpdateFieldValues: a[2] ||= (e) => s("update", { fieldValues: e }),
|
|
@@ -2586,7 +2588,7 @@ var Si = {
|
|
|
2586
2588
|
key: 1,
|
|
2587
2589
|
block: e.block,
|
|
2588
2590
|
onUpdate: w
|
|
2589
|
-
}, null, 8, ["block"])) : _.value === "title" ? (r(), v(
|
|
2591
|
+
}, null, 8, ["block"])) : _.value === "title" ? (r(), v(Po, {
|
|
2590
2592
|
key: 2,
|
|
2591
2593
|
block: e.block,
|
|
2592
2594
|
"font-families": g(C),
|
|
@@ -2595,7 +2597,7 @@ var Si = {
|
|
|
2595
2597
|
key: 4,
|
|
2596
2598
|
block: e.block,
|
|
2597
2599
|
onUpdate: w
|
|
2598
|
-
}, null, 8, ["block"])) : _.value === "video" ? (r(), v(
|
|
2600
|
+
}, null, 8, ["block"])) : _.value === "video" ? (r(), v(Jo, {
|
|
2599
2601
|
key: 5,
|
|
2600
2602
|
block: e.block,
|
|
2601
2603
|
onUpdate: w
|
|
@@ -2608,7 +2610,7 @@ var Si = {
|
|
|
2608
2610
|
key: 7,
|
|
2609
2611
|
block: e.block,
|
|
2610
2612
|
onUpdate: w
|
|
2611
|
-
}, null, 8, ["block"])) : _.value === "social" ? (r(), v(
|
|
2613
|
+
}, null, 8, ["block"])) : _.value === "social" ? (r(), v(Ia, {
|
|
2612
2614
|
key: 8,
|
|
2613
2615
|
block: e.block,
|
|
2614
2616
|
onUpdate: w
|
|
@@ -2617,12 +2619,12 @@ var Si = {
|
|
|
2617
2619
|
block: e.block,
|
|
2618
2620
|
"font-families": g(C),
|
|
2619
2621
|
onUpdate: w
|
|
2620
|
-
}, null, 8, ["block", "font-families"])) : _.value === "table" ? (r(), v(
|
|
2622
|
+
}, null, 8, ["block", "font-families"])) : _.value === "table" ? (r(), v(xo, {
|
|
2621
2623
|
key: 10,
|
|
2622
2624
|
block: e.block,
|
|
2623
2625
|
"font-families": g(C),
|
|
2624
2626
|
onUpdate: w
|
|
2625
|
-
}, null, 8, ["block", "font-families"])) : _.value === "spacer" ? (r(), v(
|
|
2627
|
+
}, null, 8, ["block", "font-families"])) : _.value === "spacer" ? (r(), v(Va, {
|
|
2626
2628
|
key: 11,
|
|
2627
2629
|
block: e.block,
|
|
2628
2630
|
onUpdate: w
|
|
@@ -2639,48 +2641,48 @@ var Si = {
|
|
|
2639
2641
|
block: e.block,
|
|
2640
2642
|
"is-first-section": _.value === "paragraph",
|
|
2641
2643
|
onUpdate: w
|
|
2642
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
2644
|
+
}, null, 8, ["block", "is-first-section"])])], 8, Yo));
|
|
2643
2645
|
}
|
|
2644
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
2646
|
+
}), [["__scopeId", "data-v-2ac88283"]]), is = ["aria-label"], as = {
|
|
2645
2647
|
role: "tablist",
|
|
2646
2648
|
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"
|
|
2647
|
-
},
|
|
2649
|
+
}, os = [
|
|
2648
2650
|
"aria-selected",
|
|
2649
2651
|
"aria-label",
|
|
2650
2652
|
"title"
|
|
2651
|
-
],
|
|
2653
|
+
], ss = { key: 0 }, cs = [
|
|
2652
2654
|
"aria-selected",
|
|
2653
2655
|
"aria-label",
|
|
2654
2656
|
"title"
|
|
2655
|
-
],
|
|
2657
|
+
], ls = { key: 0 }, us = [
|
|
2656
2658
|
"aria-selected",
|
|
2657
2659
|
"aria-label",
|
|
2658
2660
|
"title"
|
|
2659
|
-
],
|
|
2661
|
+
], ds = { key: 0 }, fs = {
|
|
2660
2662
|
key: 1,
|
|
2661
2663
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
2662
|
-
},
|
|
2664
|
+
}, ps = {
|
|
2663
2665
|
key: 0,
|
|
2664
2666
|
id: "tpl-tabpanel-content",
|
|
2665
2667
|
role: "tabpanel",
|
|
2666
2668
|
"aria-labelledby": "tpl-tab-content",
|
|
2667
2669
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2668
|
-
},
|
|
2670
|
+
}, ms = {
|
|
2669
2671
|
key: 1,
|
|
2670
2672
|
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)]"
|
|
2671
|
-
},
|
|
2673
|
+
}, hs = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, gs = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _s = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, vs = {
|
|
2672
2674
|
key: 1,
|
|
2673
2675
|
id: "tpl-tabpanel-settings",
|
|
2674
2676
|
role: "tabpanel",
|
|
2675
2677
|
"aria-labelledby": "tpl-tab-settings",
|
|
2676
2678
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2677
|
-
},
|
|
2679
|
+
}, ys = {
|
|
2678
2680
|
key: 2,
|
|
2679
2681
|
id: "tpl-tabpanel-accessibility",
|
|
2680
2682
|
role: "tabpanel",
|
|
2681
2683
|
"aria-labelledby": "tpl-tab-accessibility",
|
|
2682
2684
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
2683
|
-
},
|
|
2685
|
+
}, bs = /* @__PURE__ */ O({
|
|
2684
2686
|
__name: "RightSidebar",
|
|
2685
2687
|
props: {
|
|
2686
2688
|
selectedBlock: {},
|
|
@@ -2694,7 +2696,7 @@ var Si = {
|
|
|
2694
2696
|
"update-settings"
|
|
2695
2697
|
],
|
|
2696
2698
|
setup(e, { emit: t }) {
|
|
2697
|
-
let n = u(() => import("./AccessibilityPanel-
|
|
2699
|
+
let n = u(() => import("./AccessibilityPanel-DaqF4Xzy.js")), i = e, a = t, { t: s } = R(), c = l("content"), d = o(ne, null), _ = p(() => d !== null), y = p(() => d?.issues.value.length ?? 0);
|
|
2698
2700
|
function b(e) {
|
|
2699
2701
|
return c.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
|
|
2700
2702
|
}
|
|
@@ -2710,7 +2712,7 @@ var Si = {
|
|
|
2710
2712
|
"aria-label": g(s).landmarks.rightSidebar,
|
|
2711
2713
|
class: x(["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"])
|
|
2712
2714
|
}, [
|
|
2713
|
-
S("div",
|
|
2715
|
+
S("div", as, [
|
|
2714
2716
|
S("button", {
|
|
2715
2717
|
id: "tpl-tab-content",
|
|
2716
2718
|
role: "tab",
|
|
@@ -2724,7 +2726,7 @@ var Si = {
|
|
|
2724
2726
|
}, [k(g(st), {
|
|
2725
2727
|
size: 14,
|
|
2726
2728
|
"stroke-width": 2
|
|
2727
|
-
}), c.value === "content" ? (r(), m("span",
|
|
2729
|
+
}), c.value === "content" ? (r(), m("span", ss, f(g(s).sidebar.content), 1)) : h("", !0)], 14, os),
|
|
2728
2730
|
S("button", {
|
|
2729
2731
|
id: "tpl-tab-settings",
|
|
2730
2732
|
role: "tab",
|
|
@@ -2738,7 +2740,7 @@ var Si = {
|
|
|
2738
2740
|
}, [k(g(pt), {
|
|
2739
2741
|
size: 14,
|
|
2740
2742
|
"stroke-width": 1.5
|
|
2741
|
-
}), c.value === "settings" ? (r(), m("span",
|
|
2743
|
+
}), c.value === "settings" ? (r(), m("span", ls, f(g(s).sidebar.settings), 1)) : h("", !0)], 14, cs),
|
|
2742
2744
|
_.value ? (r(), m("button", {
|
|
2743
2745
|
key: 0,
|
|
2744
2746
|
id: "tpl-tab-accessibility",
|
|
@@ -2755,37 +2757,37 @@ var Si = {
|
|
|
2755
2757
|
size: 14,
|
|
2756
2758
|
"stroke-width": 1.5
|
|
2757
2759
|
}),
|
|
2758
|
-
c.value === "accessibility" ? (r(), m("span",
|
|
2759
|
-
y.value > 0 ? (r(), m("span",
|
|
2760
|
-
], 14,
|
|
2760
|
+
c.value === "accessibility" ? (r(), m("span", ds, f(g(s).accessibility.panelTabLabel), 1)) : h("", !0),
|
|
2761
|
+
y.value > 0 ? (r(), m("span", fs, f(y.value), 1)) : h("", !0)
|
|
2762
|
+
], 14, us)) : h("", !0)
|
|
2761
2763
|
]),
|
|
2762
|
-
c.value === "content" ? (r(), m("div",
|
|
2764
|
+
c.value === "content" ? (r(), m("div", ps, [e.selectedBlock ? (r(), v(rs, {
|
|
2763
2765
|
key: 0,
|
|
2764
2766
|
block: e.selectedBlock,
|
|
2765
2767
|
onUpdate: i[3] ||= (e) => a("update-block", e),
|
|
2766
2768
|
onDelete: i[4] ||= (e) => a("delete-block"),
|
|
2767
2769
|
onDuplicate: i[5] ||= (e) => a("duplicate-block")
|
|
2768
|
-
}, null, 8, ["block"])) : (r(), m("div",
|
|
2769
|
-
S("div",
|
|
2770
|
+
}, null, 8, ["block"])) : (r(), m("div", ms, [
|
|
2771
|
+
S("div", hs, [k(g(et), {
|
|
2770
2772
|
size: 40,
|
|
2771
2773
|
"stroke-width": 1.5
|
|
2772
2774
|
})]),
|
|
2773
|
-
S("h3",
|
|
2774
|
-
S("p",
|
|
2775
|
+
S("h3", gs, f(g(s).sidebar.noSelection), 1),
|
|
2776
|
+
S("p", _s, f(g(s).sidebar.noSelectionHint), 1)
|
|
2775
2777
|
]))])) : h("", !0),
|
|
2776
|
-
c.value === "settings" ? (r(), m("div",
|
|
2778
|
+
c.value === "settings" ? (r(), m("div", vs, [k(Mn, {
|
|
2777
2779
|
settings: e.settings,
|
|
2778
2780
|
onUpdate: i[6] ||= (e) => a("update-settings", e)
|
|
2779
2781
|
}, null, 8, ["settings"])])) : h("", !0),
|
|
2780
|
-
c.value === "accessibility" && _.value ? (r(), m("div",
|
|
2781
|
-
], 10,
|
|
2782
|
+
c.value === "accessibility" && _.value ? (r(), m("div", ys, [k(g(n))])) : h("", !0)
|
|
2783
|
+
], 10, is));
|
|
2782
2784
|
}
|
|
2783
|
-
}),
|
|
2785
|
+
}), xs = ["aria-label"], Ss = [
|
|
2784
2786
|
"aria-checked",
|
|
2785
2787
|
"aria-label",
|
|
2786
2788
|
"title",
|
|
2787
2789
|
"onClick"
|
|
2788
|
-
],
|
|
2790
|
+
], Cs = /* @__PURE__ */ O({
|
|
2789
2791
|
__name: "ViewportToggle",
|
|
2790
2792
|
props: { viewport: {} },
|
|
2791
2793
|
emits: ["change"],
|
|
@@ -2846,13 +2848,13 @@ var Si = {
|
|
|
2846
2848
|
key: 2,
|
|
2847
2849
|
size: 18,
|
|
2848
2850
|
"stroke-width": 1.5
|
|
2849
|
-
})), S("span", null, f(t.label), 1)], 12,
|
|
2851
|
+
})), S("span", null, f(t.label), 1)], 12, Ss))), 128))], 12, xs));
|
|
2850
2852
|
}
|
|
2851
|
-
}),
|
|
2853
|
+
}), ws = [
|
|
2852
2854
|
"aria-label",
|
|
2853
2855
|
"title",
|
|
2854
2856
|
"aria-pressed"
|
|
2855
|
-
],
|
|
2857
|
+
], Ts = /* @__PURE__ */ B(/* @__PURE__ */ O({
|
|
2856
2858
|
__name: "PreviewToggle",
|
|
2857
2859
|
props: { previewMode: { type: Boolean } },
|
|
2858
2860
|
emits: ["change"],
|
|
@@ -2885,13 +2887,13 @@ var Si = {
|
|
|
2885
2887
|
"stroke-width": 1.5
|
|
2886
2888
|
}))]),
|
|
2887
2889
|
_: 1
|
|
2888
|
-
})], 12,
|
|
2890
|
+
})], 12, ws));
|
|
2889
2891
|
}
|
|
2890
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
2892
|
+
}), [["__scopeId", "data-v-af87d02a"]]), Es = [
|
|
2891
2893
|
"aria-label",
|
|
2892
2894
|
"title",
|
|
2893
2895
|
"aria-pressed"
|
|
2894
|
-
],
|
|
2896
|
+
], Ds = /* @__PURE__ */ B(/* @__PURE__ */ O({
|
|
2895
2897
|
__name: "DarkModeToggle",
|
|
2896
2898
|
props: { darkMode: { type: Boolean } },
|
|
2897
2899
|
emits: ["change"],
|
|
@@ -2924,27 +2926,27 @@ var Si = {
|
|
|
2924
2926
|
"stroke-width": 1.5
|
|
2925
2927
|
}))]),
|
|
2926
2928
|
_: 1
|
|
2927
|
-
})], 12,
|
|
2929
|
+
})], 12, Es));
|
|
2928
2930
|
}
|
|
2929
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
2931
|
+
}), [["__scopeId", "data-v-f8694f76"]]), Os = {
|
|
2930
2932
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
2931
2933
|
style: {
|
|
2932
2934
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
2933
2935
|
"backdrop-filter": "blur(8px)",
|
|
2934
2936
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
2935
2937
|
}
|
|
2936
|
-
},
|
|
2938
|
+
}, ks = {
|
|
2937
2939
|
href: "https://github.com/templatical/sdk",
|
|
2938
2940
|
target: "_blank",
|
|
2939
2941
|
rel: "noopener noreferrer",
|
|
2940
2942
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
2941
2943
|
style: { "text-decoration": "none" }
|
|
2942
|
-
},
|
|
2944
|
+
}, As = /* @__PURE__ */ O({
|
|
2943
2945
|
__name: "EditorFooter",
|
|
2944
2946
|
props: { positionClass: {} },
|
|
2945
2947
|
setup(e) {
|
|
2946
2948
|
let { t } = R();
|
|
2947
|
-
return (n, i) => (r(), m("footer", { class: x(["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]) }, [S("div",
|
|
2949
|
+
return (n, i) => (r(), m("footer", { class: x(["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]) }, [S("div", Os, [
|
|
2948
2950
|
S("span", null, f(g(t).footer.poweredBy), 1),
|
|
2949
2951
|
i[0] ||= S("a", {
|
|
2950
2952
|
href: "https://templatical.com",
|
|
@@ -2959,11 +2961,11 @@ var Si = {
|
|
|
2959
2961
|
alt: ""
|
|
2960
2962
|
}), D(" Templatical ")], -1),
|
|
2961
2963
|
i[1] ||= S("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
2962
|
-
S("a",
|
|
2964
|
+
S("a", ks, f(g(t).footer.openSource), 1)
|
|
2963
2965
|
])], 2));
|
|
2964
2966
|
}
|
|
2965
2967
|
});
|
|
2966
2968
|
//#endregion
|
|
2967
|
-
export {
|
|
2969
|
+
export { bs as a, Ct as c, Cs as i, Ds as n, Ht as o, Ts as r, Nt as s, As as t };
|
|
2968
2970
|
|
|
2969
|
-
//# sourceMappingURL=styles-
|
|
2971
|
+
//# sourceMappingURL=styles-BRN0i_zg.js.map
|