@templatical/editor 0.16.4 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiFeatureMenu-BPCkrHAS.js → AiFeatureMenu-B1oEJebq.js} +1 -1
- package/dist/{CloudEditor-v8ARYaFW.js → CloudEditor-D6KNL6VU.js} +6 -6
- package/dist/{CollaboratorBar-BQzKZ2zo.js → CollaboratorBar-C_EhXQ5R.js} +1 -1
- package/dist/{ColorPicker-Cab6U2sH.js → ColorPicker-CppJgX_T.js} +57 -58
- package/dist/{CountdownToolbar-q3umZ7TZ.js → CountdownToolbar-D5GaA_lt.js} +2 -2
- package/dist/{MergeTagSuggestion-DrT3LiZ4.js → MergeTagSuggestion-jIpT_jmz.js} +7 -5
- package/dist/{ModuleBrowserModal-CzzChPmN.js → ModuleBrowserModal-CXy8Bbv9.js} +4 -4
- package/dist/{ModulePreviewCanvas-C0Q2n3FL.js → ModulePreviewCanvas-CJC9kyZN.js} +1 -1
- package/dist/{NumberWithSuffix-Bhm2ByHs.js → NumberWithSuffix-DNi-v4l1.js} +1 -1
- package/dist/{ParagraphEditor-BhsBi8p8.js → ParagraphEditor-nk5Vvr7M.js} +38 -39
- package/dist/{RichTextEditorContent-ef0fdj6e.js → RichTextEditorContent-DBaCrvH0.js} +13 -13
- package/dist/{SaveModuleDialog-BNN3dcxD.js → SaveModuleDialog-CYu5PhBz.js} +2 -2
- package/dist/{SnapshotHistory-tWvgMCe6.js → SnapshotHistory-B38ImqMO.js} +2 -2
- package/dist/{TestEmailModal-EdwEcsrD.js → TestEmailModal-DbstIzEf.js} +2 -2
- package/dist/{TitleEditor-DdvRepBq.js → TitleEditor-CmfkOHJT.js} +18 -18
- package/dist/{TplModal-Niu4Y96-.js → TplModal-BXnx3sLr.js} +4 -4
- package/dist/{blockTypeIcons-DHcYPMB8.js → blockTypeIcons-BVIEw0XJ.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-AoUwsqor.js → AiFeatureMenu-CuIg4yrB.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-AoUwsqor.js.map → AiFeatureMenu-CuIg4yrB.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DZU3CfEN.js → BlockIssueBadge-BHEl_Hs7.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-DZU3CfEN.js.map → BlockIssueBadge-BHEl_Hs7.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BrZLF_m1.js → CloudEditor-1Ms0w691.js} +130 -130
- package/dist/cdn/chunks/{CloudEditor-BrZLF_m1.js.map → CloudEditor-1Ms0w691.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BAC56ez6.js → CollaboratorBar-C0a5P64z.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-BAC56ez6.js.map → CollaboratorBar-C0a5P64z.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-DLEoT419.js → ColorPicker-bsMmT-_B.js} +144 -144
- package/dist/cdn/chunks/ColorPicker-bsMmT-_B.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BOF9aTXF.js → CountdownBlock-8053oz4k.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-BOF9aTXF.js.map → CountdownBlock-8053oz4k.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C9bQ5k4E.js → CountdownToolbar-DQ_zrorh.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C9bQ5k4E.js.map → CountdownToolbar-DQ_zrorh.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CHwYahKK.js → IssuesPanel-CwQ376nf.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-CHwYahKK.js.map → IssuesPanel-CwQ376nf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-jesxS7An.js → MergeTagSuggestion-rpZ6Ol-i.js} +8 -6
- package/dist/cdn/chunks/MergeTagSuggestion-rpZ6Ol-i.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-iSXXpAUk.js → ModuleBrowserModal-DUegB2Jk.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-iSXXpAUk.js.map → ModuleBrowserModal-DUegB2Jk.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DIy0MZj2.js → ModulePreviewCanvas-f4h8r9Lh.js} +32 -32
- package/dist/cdn/chunks/{ModulePreviewCanvas-DIy0MZj2.js.map → ModulePreviewCanvas-f4h8r9Lh.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-vPdOG2lO.js → NumberWithSuffix-Bu_nHJuD.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-vPdOG2lO.js.map → NumberWithSuffix-Bu_nHJuD.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D7znI_X1.js → ParagraphEditor-IpZsg8qo.js} +75 -75
- package/dist/cdn/chunks/ParagraphEditor-IpZsg8qo.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DVwGHbO6.js → RichTextEditorContent-DDnqZ9cB.js} +6 -6
- package/dist/cdn/chunks/{RichTextEditorContent-DVwGHbO6.js.map → RichTextEditorContent-DDnqZ9cB.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-D2_qPtE9.js → SaveModuleDialog-CVA5HPCi.js} +20 -20
- package/dist/cdn/chunks/{SaveModuleDialog-D2_qPtE9.js.map → SaveModuleDialog-CVA5HPCi.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CKjZ6Cgp.js → TitleEditor-DU8wm0Rh.js} +9 -9
- package/dist/cdn/chunks/TitleEditor-DU8wm0Rh.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-BKecgdgr.js → blockTypeIcons-Dm5Oosjp.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-BKecgdgr.js.map → blockTypeIcons-Dm5Oosjp.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-OZTN_skA.js → extensions-BGUoo2a5.js} +29 -29
- package/dist/cdn/chunks/{extensions-OZTN_skA.js.map → extensions-BGUoo2a5.js.map} +1 -1
- package/dist/cdn/chunks/{features-Bo7H8WNI.js → features-BSpDuFFR.js} +423 -404
- package/dist/cdn/chunks/features-BSpDuFFR.js.map +1 -0
- package/dist/cdn/chunks/{icons-BrNSrnyT.js → icons-k3XVoRvc.js} +2 -2
- package/dist/cdn/chunks/{icons-BrNSrnyT.js.map → icons-k3XVoRvc.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-Cec5DMR3.js → media-library-iDq3otm6.js} +451 -451
- package/dist/cdn/chunks/{media-library-Cec5DMR3.js.map → media-library-iDq3otm6.js.map} +1 -1
- package/dist/cdn/chunks/{quality-Dd2iYgRf.js → quality-Bb7vN32U.js} +512 -512
- package/dist/cdn/chunks/{quality-Dd2iYgRf.js.map → quality-Bb7vN32U.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-Br-qXdnQ.js → renderer-cOvtk8HM.js} +16 -16
- package/dist/cdn/chunks/{renderer-Br-qXdnQ.js.map → renderer-cOvtk8HM.js.map} +1 -1
- package/dist/cdn/chunks/{src-BH8PABpF.js → src-Ddp969zE.js} +6 -6
- package/dist/cdn/chunks/{src-BH8PABpF.js.map → src-Ddp969zE.js.map} +1 -1
- package/dist/cdn/chunks/{styles-nqo5BynI.js → styles-CW_gRVVR.js} +219 -219
- package/dist/cdn/chunks/styles-CW_gRVVR.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +46 -46
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{extensions-B2poxDIo.js → extensions-Cjd-VAII.js} +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/{styles-DN4J7w-C.js → styles-DJfTblY7.js} +97 -97
- package/dist/templatical-editor.js +4 -4
- package/dist/{useEditorCore-DBq2689h.js → useEditorCore-DnOG2a_b.js} +681 -681
- package/dist/usePopoverPosition-B3Byo68F.js +281 -0
- package/package.json +7 -7
- package/dist/cdn/chunks/ColorPicker-DLEoT419.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-jesxS7An.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-D7znI_X1.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-CKjZ6Cgp.js.map +0 -1
- package/dist/cdn/chunks/features-Bo7H8WNI.js.map +0 -1
- package/dist/cdn/chunks/styles-nqo5BynI.js.map +0 -1
- package/dist/color-DhoxCSMv.js +0 -259
- package/dist/usePopoverRoot-C1j0D7cc.js +0 -8
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, H as r, I as i, K as a, N as o, O as s, Ot as c, R as l, W as u, Y as d, _ as f, c as p, d as m, g as h, h as g, j as _, l as v, m as y, nt as b, q as x, r as S, s as C, u as w, w as T, x as E, y as D, z as O } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as k, c as A, o as j, s as M, t as N } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
3
|
import { C as P, D as F, E as I, O as L, k as R, o as z, r as B, s as V, u as ee, w as te } from "./dist-DoRIUsfz.js";
|
|
4
|
-
import { C as ne, F as H, I as re, L as ie, M as ae, N as oe, O as se, P as ce, R as le, _ as ue, a as de, c as fe, f as pe, g as me, h as he, i as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, s as Ce, u as we, v as Te, y as Ee, z as De } from "./useEditorCore-
|
|
4
|
+
import { C as ne, F as H, I as re, L as ie, M as ae, N as oe, O as se, P as ce, R as le, _ as ue, a as de, c as fe, f as pe, g as me, h as he, i as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, s as Ce, u as we, v as Te, y as Ee, z as De } from "./useEditorCore-DnOG2a_b.js";
|
|
5
5
|
import { c as Oe, m as ke } from "./dist-DYv_Pttj.js";
|
|
6
|
-
import {
|
|
6
|
+
import { n as Ae } from "./usePopoverPosition-B3Byo68F.js";
|
|
7
|
+
import { D as je, F as Me, I as Ne, L as Pe, N as Fe, P as Ie, T as Le, a as Re, d as ze, f as Be, g as Ve, k as He, m as Ue, n as We, o as Ge, p as Ke, s as qe, u as Je, w as Ye, x as Xe } from "./keys-BbDgCU6K.js";
|
|
7
8
|
import { t as U } from "./useI18n-eR1yVW0v.js";
|
|
8
9
|
import { t as W } from "./createLucideIcon-FSF4peHQ.js";
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { i as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
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 { t as
|
|
30
|
-
import {
|
|
31
|
-
import { n as At, r as jt } from "./MergeTagSuggestion-DrT3LiZ4.js";
|
|
10
|
+
import { n as Ze, t as Qe } from "./scan-line-IAMjPtRw.js";
|
|
11
|
+
import { t as $e } from "./chevron-down-dClfxKrJ.js";
|
|
12
|
+
import { t as et } from "./circle-alert-Bhzm-fNA.js";
|
|
13
|
+
import { i as tt, n as nt, r as rt, t as it } from "./blockTypeIcons-BVIEw0XJ.js";
|
|
14
|
+
import { n as at, t as ot } from "./refresh-cw-as5Bmg4X.js";
|
|
15
|
+
import { t as st } from "./image-up-CDEgJqwA.js";
|
|
16
|
+
import { t as ct } from "./info-BNP8yGsK.js";
|
|
17
|
+
import { t as lt } from "./list-checks-jepi4iYr.js";
|
|
18
|
+
import { t as ut } from "./loader-circle-BT38qSm3.js";
|
|
19
|
+
import { t as dt } from "./sparkles-CCwQMMMZ.js";
|
|
20
|
+
import { n as ft, r as pt, t as mt } from "./text-align-start-BwsA6QzC.js";
|
|
21
|
+
import { t as ht } from "./trash-2-CRBDolnR.js";
|
|
22
|
+
import { t as gt } from "./upload-BKg6hDRW.js";
|
|
23
|
+
import { t as _t } from "./x-Ctg_250T.js";
|
|
24
|
+
import { t as vt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
25
|
+
import { t as yt } from "./useCloudI18n-WbfVWq5k.js";
|
|
26
|
+
import { t as bt } from "./useMergeTag-C3GfSktg.js";
|
|
27
|
+
import { t as xt } from "./useAliveFlag-C43EhZFY.js";
|
|
28
|
+
import { t as St } from "./readableTextColor-f8Kykfnh.js";
|
|
29
|
+
import { t as Ct } from "./CountdownBlock-173fiO5Z.js";
|
|
30
|
+
import { _ as wt, f as G, g as Tt, h as K, i as Et, l as Dt, m as q, n as Ot, p as J, t as Y, u as kt } from "./ColorPicker-CppJgX_T.js";
|
|
31
|
+
import { n as At, r as jt } from "./MergeTagSuggestion-jIpT_jmz.js";
|
|
32
32
|
import { t as X } from "./ToggleSwitch-DUNuUPsZ.js";
|
|
33
|
-
import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-
|
|
34
|
-
import { t as Pt } from "./TplModal-
|
|
33
|
+
import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-DNi-v4l1.js";
|
|
34
|
+
import { t as Pt } from "./TplModal-BXnx3sLr.js";
|
|
35
35
|
var Ft = W("circle", [["circle", {
|
|
36
36
|
cx: "12",
|
|
37
37
|
cy: "12",
|
|
@@ -252,7 +252,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
252
252
|
}, rn = { class: "tpl:relative" }, an = {
|
|
253
253
|
class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
|
|
254
254
|
style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
|
|
255
|
-
}, on = 96, sn = /*#__PURE__*/
|
|
255
|
+
}, on = 96, sn = /*#__PURE__*/ vt(/* @__PURE__ */ f({
|
|
256
256
|
__name: "Canvas",
|
|
257
257
|
props: {
|
|
258
258
|
viewport: {},
|
|
@@ -281,9 +281,9 @@ var Xt = ["aria-label"], Zt = {
|
|
|
281
281
|
menu: ve,
|
|
282
282
|
table: Se,
|
|
283
283
|
video: ye,
|
|
284
|
-
countdown:
|
|
284
|
+
countdown: Ct,
|
|
285
285
|
custom: Ee
|
|
286
|
-
}, u = r, f = i, { t: h } = U(), { t: _ } =
|
|
286
|
+
}, u = r, f = i, { t: h } = U(), { t: _ } = yt(), x = Pe(Ue, "Canvas"), T = E(Je, null), D = E(Ge, null), k = E(qe, {}), A = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("chat") ?? !1)), M = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = C({
|
|
287
287
|
get: () => u.content.blocks,
|
|
288
288
|
set: (e) => {
|
|
289
289
|
x.setContent({
|
|
@@ -389,7 +389,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
389
389
|
p("button", {
|
|
390
390
|
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)]",
|
|
391
391
|
onClick: a[0] ||= (e) => f("open-ai-chat")
|
|
392
|
-
}, [g(b(
|
|
392
|
+
}, [g(b(dt), {
|
|
393
393
|
size: 14,
|
|
394
394
|
"stroke-width": 2
|
|
395
395
|
}), y(" " + c(b(_).aiMenu.aiAssistant), 1)]),
|
|
@@ -400,7 +400,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
400
400
|
p("button", {
|
|
401
401
|
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)]",
|
|
402
402
|
onClick: a[1] ||= (e) => f("open-design-reference")
|
|
403
|
-
}, [g(b(
|
|
403
|
+
}, [g(b(st), {
|
|
404
404
|
size: 14,
|
|
405
405
|
"stroke-width": 2
|
|
406
406
|
}), y(" " + c(b(_).aiMenu.designToTemplate), 1)]),
|
|
@@ -420,7 +420,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
420
420
|
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",
|
|
421
421
|
style: t({
|
|
422
422
|
backgroundColor: H(e.id).color,
|
|
423
|
-
color: b(
|
|
423
|
+
color: b(St)(H(e.id).color)
|
|
424
424
|
})
|
|
425
425
|
}, [p("span", an, c(H(e.id).name.charAt(0)), 1), y(" " + c(H(e.id).name), 1)], 4)], 4)) : w("", !0), g(we, {
|
|
426
426
|
block: e,
|
|
@@ -458,7 +458,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
458
458
|
}), [["__scopeId", "data-v-b440d13f"]]), cn = f({
|
|
459
459
|
name: "CustomBlockStylesheets",
|
|
460
460
|
setup() {
|
|
461
|
-
let e = E(
|
|
461
|
+
let e = E(Be, null);
|
|
462
462
|
return () => e ? e.value.map((e, t) => D("style", {
|
|
463
463
|
key: t,
|
|
464
464
|
"data-tpl-custom-block-stylesheet": "",
|
|
@@ -507,7 +507,7 @@ var un = ["aria-label"], dn = {
|
|
|
507
507
|
}, vn = /* @__PURE__ */ f({
|
|
508
508
|
__name: "Sidebar",
|
|
509
509
|
setup(n) {
|
|
510
|
-
let { t: r, format: a } = U(), { t: u } =
|
|
510
|
+
let { t: r, format: a } = U(), { t: u } = yt(), f = E(ze, []), h = E(He, void 0), _ = E(Re, void 0), y = E(Ue, null), x = E(qe, {}), T = C(() => (x.savedModules?.moduleCount.value ?? 0) > 0), D = d(!1), O = d(!1);
|
|
511
511
|
function k() {
|
|
512
512
|
O.value || (D.value = !1);
|
|
513
513
|
}
|
|
@@ -515,7 +515,7 @@ var un = ["aria-label"], dn = {
|
|
|
515
515
|
O.value = !0;
|
|
516
516
|
}
|
|
517
517
|
function j() {
|
|
518
|
-
O.value = !1;
|
|
518
|
+
O.value = !1, D.value = !1;
|
|
519
519
|
}
|
|
520
520
|
let M = [
|
|
521
521
|
"section",
|
|
@@ -584,7 +584,7 @@ var un = ["aria-label"], dn = {
|
|
|
584
584
|
style: t({ justifyContent: D.value ? "flex-start" : "center" }),
|
|
585
585
|
onClick: i[0] ||= (e) => b(x).savedModules?.openBrowser()
|
|
586
586
|
}, [
|
|
587
|
-
g(b(
|
|
587
|
+
g(b(rt), {
|
|
588
588
|
size: 20,
|
|
589
589
|
"stroke-width": 1.5,
|
|
590
590
|
class: "tpl:shrink-0"
|
|
@@ -615,7 +615,7 @@ var un = ["aria-label"], dn = {
|
|
|
615
615
|
style: t({ justifyContent: D.value ? "flex-start" : "center" }),
|
|
616
616
|
onClick: (t) => B(e),
|
|
617
617
|
onKeydown: (t) => te(t, e)
|
|
618
|
-
}, [p("div", gn, [b(
|
|
618
|
+
}, [p("div", gn, [b(it)[e.type] ? (s(), v(o(b(it)[e.type]), {
|
|
619
619
|
key: 0,
|
|
620
620
|
size: 20,
|
|
621
621
|
"stroke-width": 1.5
|
|
@@ -687,7 +687,7 @@ var Cn = /* @__PURE__ */ new Set([
|
|
|
687
687
|
"End"
|
|
688
688
|
]);
|
|
689
689
|
function wn(e) {
|
|
690
|
-
let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = F(s), f = I(s), p = c && d !== null && o.length > 0, m = E(
|
|
690
|
+
let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = F(s), f = I(s), p = c && d !== null && o.length > 0, m = E(Me, null), h = At((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", Ae()), g = !1;
|
|
691
691
|
r() && a(() => {
|
|
692
692
|
g = !0, h.close();
|
|
693
693
|
});
|
|
@@ -741,7 +741,7 @@ function wn(e) {
|
|
|
741
741
|
//#endregion
|
|
742
742
|
//#region src/composables/useMergeTagField.ts
|
|
743
743
|
function Tn(e) {
|
|
744
|
-
let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } =
|
|
744
|
+
let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } = bt(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = ne(), v = d(!1), y = !1, b = !1;
|
|
745
745
|
r() && a(() => {
|
|
746
746
|
b = !0;
|
|
747
747
|
});
|
|
@@ -913,7 +913,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
913
913
|
"aria-label": b(a).mergeTag.remove,
|
|
914
914
|
title: b(a).mergeTag.remove,
|
|
915
915
|
onClick: l[0] ||= A((e) => i("clear"), ["stop"])
|
|
916
|
-
}, [g(b(
|
|
916
|
+
}, [g(b(_t), {
|
|
917
917
|
size: 12,
|
|
918
918
|
"stroke-width": 2.5
|
|
919
919
|
})], 8, An)], 42, En));
|
|
@@ -936,7 +936,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
936
936
|
disabled: e.disabled,
|
|
937
937
|
onMousedown: i[0] ||= A(() => {}, ["prevent"]),
|
|
938
938
|
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
939
|
-
}, [g(b(
|
|
939
|
+
}, [g(b(Qe), {
|
|
940
940
|
size: 12,
|
|
941
941
|
"stroke-width": 2
|
|
942
942
|
}), y(" " + c(b(t).mergeTag.insertShort), 1)], 42, Mn));
|
|
@@ -960,7 +960,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
960
960
|
"data-testid": "field-insert-logic-button",
|
|
961
961
|
onMousedown: i[0] ||= A(() => {}, ["prevent"]),
|
|
962
962
|
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
963
|
-
}, [g(b(
|
|
963
|
+
}, [g(b(Ze), {
|
|
964
964
|
size: 12,
|
|
965
965
|
"stroke-width": 2
|
|
966
966
|
}), y(" " + c(b(t).logicTag.insertShort), 1)], 42, Fn));
|
|
@@ -1032,7 +1032,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1032
1032
|
props: { settings: {} },
|
|
1033
1033
|
emits: ["update"],
|
|
1034
1034
|
setup(r, { emit: i }) {
|
|
1035
|
-
let a = r, o = i, { t: l } = U(), u =
|
|
1035
|
+
let a = r, o = i, { t: l } = U(), u = Pe(Ve, "TemplateSettings"), d = C(() => u.fonts.value), f = C(() => d.value.some((e) => e.value === a.settings.fontFamily) ? a.settings.fontFamily : u.defaultFont.value), h = [
|
|
1036
1036
|
{
|
|
1037
1037
|
value: 480,
|
|
1038
1038
|
label: "480px"
|
|
@@ -1130,7 +1130,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1130
1130
|
}, null, 42, cr),
|
|
1131
1131
|
p("p", lr, c(b(l).templateSettings.contentLocaleHint), 1)
|
|
1132
1132
|
])], 2),
|
|
1133
|
-
p("div", { class: n(b(kt)) }, [p("div", ur, [g(b(
|
|
1133
|
+
p("div", { class: n(b(kt)) }, [p("div", ur, [g(b(at), {
|
|
1134
1134
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1135
1135
|
size: 14,
|
|
1136
1136
|
"stroke-width": 2
|
|
@@ -1140,7 +1140,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1140
1140
|
rows: 2,
|
|
1141
1141
|
"onUpdate:modelValue": a[7] ||= (e) => o("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
1142
1142
|
}, null, 8, ["model-value", "placeholder"]), p("div", dr, [p("span", fr, c(b(l).templateSettings.preheaderTextHint), 1), p("span", pr, c((r.settings.preheaderText ?? "").length) + "/" + c(br), 1)])])], 2),
|
|
1143
|
-
p("div", mr, [p("div", hr, [g(b(
|
|
1143
|
+
p("div", mr, [p("div", hr, [g(b(ct), {
|
|
1144
1144
|
size: 14,
|
|
1145
1145
|
"stroke-width": 2
|
|
1146
1146
|
}), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul", gr, [
|
|
@@ -1160,7 +1160,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1160
1160
|
], Er = {
|
|
1161
1161
|
key: 0,
|
|
1162
1162
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1163
|
-
}, Dr = "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__*/
|
|
1163
|
+
}, Dr = "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__*/ vt(/* @__PURE__ */ f({
|
|
1164
1164
|
__name: "MergeTagInput",
|
|
1165
1165
|
props: {
|
|
1166
1166
|
modelValue: {},
|
|
@@ -1322,7 +1322,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1322
1322
|
])
|
|
1323
1323
|
], 64));
|
|
1324
1324
|
}
|
|
1325
|
-
}), Qr = { class: "spacing-control" }, $r = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ei = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ti = { class: "tpl:flex tpl:items-center" }, ni = ["aria-label"], ri = ["value", "aria-label"], ii = ["aria-label"], ai = { class: "tpl:flex tpl:items-center tpl:gap-2" }, oi = { class: "tpl:flex tpl:items-center" }, si = ["aria-label"], ci = ["value", "aria-label"], li = ["aria-label"], ui = ["aria-label", "title"], di = { class: "tpl:flex tpl:items-center" }, fi = ["aria-label"], pi = ["value", "aria-label"], mi = ["aria-label"], hi = { class: "tpl:flex tpl:items-center" }, gi = ["aria-label"], _i = ["value", "aria-label"], vi = ["aria-label"], yi = "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)]", bi = "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)]", xi = /*#__PURE__*/
|
|
1325
|
+
}), Qr = { class: "spacing-control" }, $r = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ei = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ti = { class: "tpl:flex tpl:items-center" }, ni = ["aria-label"], ri = ["value", "aria-label"], ii = ["aria-label"], ai = { class: "tpl:flex tpl:items-center tpl:gap-2" }, oi = { class: "tpl:flex tpl:items-center" }, si = ["aria-label"], ci = ["value", "aria-label"], li = ["aria-label"], ui = ["aria-label", "title"], di = { class: "tpl:flex tpl:items-center" }, fi = ["aria-label"], pi = ["value", "aria-label"], mi = ["aria-label"], hi = { class: "tpl:flex tpl:items-center" }, gi = ["aria-label"], _i = ["value", "aria-label"], vi = ["aria-label"], yi = "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)]", bi = "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)]", xi = /*#__PURE__*/ vt(/* @__PURE__ */ f({
|
|
1326
1326
|
__name: "SpacingControl",
|
|
1327
1327
|
props: {
|
|
1328
1328
|
modelValue: {},
|
|
@@ -1375,7 +1375,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1375
1375
|
"aria-label": b(o).spacingControl.decreaseTop,
|
|
1376
1376
|
class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1377
1377
|
onClick: r[0] ||= (e) => f("top", -1)
|
|
1378
|
-
}, [g(b(
|
|
1378
|
+
}, [g(b(tt), {
|
|
1379
1379
|
size: 12,
|
|
1380
1380
|
"stroke-width": 2
|
|
1381
1381
|
})], 10, ni),
|
|
@@ -1402,7 +1402,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1402
1402
|
"aria-label": b(o).spacingControl.decreaseLeft,
|
|
1403
1403
|
class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1404
1404
|
onClick: r[3] ||= (e) => f("left", -1)
|
|
1405
|
-
}, [g(b(
|
|
1405
|
+
}, [g(b(tt), {
|
|
1406
1406
|
size: 12,
|
|
1407
1407
|
"stroke-width": 2
|
|
1408
1408
|
})], 10, si),
|
|
@@ -1442,7 +1442,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1442
1442
|
"aria-label": b(o).spacingControl.decreaseRight,
|
|
1443
1443
|
class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1444
1444
|
onClick: r[6] ||= (e) => f("right", -1)
|
|
1445
|
-
}, [g(b(
|
|
1445
|
+
}, [g(b(tt), {
|
|
1446
1446
|
size: 12,
|
|
1447
1447
|
"stroke-width": 2
|
|
1448
1448
|
})], 10, fi),
|
|
@@ -1469,7 +1469,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1469
1469
|
"aria-label": b(o).spacingControl.decreaseBottom,
|
|
1470
1470
|
class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1471
1471
|
onClick: r[9] ||= (e) => f("bottom", -1)
|
|
1472
|
-
}, [g(b(
|
|
1472
|
+
}, [g(b(tt), {
|
|
1473
1473
|
size: 12,
|
|
1474
1474
|
"stroke-width": 2
|
|
1475
1475
|
})], 10, gi),
|
|
@@ -1505,7 +1505,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1505
1505
|
type: "button",
|
|
1506
1506
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1507
1507
|
onClick: r[0] ||= (e) => t.$emit("toggle")
|
|
1508
|
-
}, [g(b(
|
|
1508
|
+
}, [g(b($e), {
|
|
1509
1509
|
class: n(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1510
1510
|
size: 12,
|
|
1511
1511
|
"stroke-width": 2
|
|
@@ -1531,7 +1531,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1531
1531
|
},
|
|
1532
1532
|
emits: ["update"],
|
|
1533
1533
|
setup(t, { emit: r }) {
|
|
1534
|
-
let a = t, u = r, { t: f } = U(), h = E(
|
|
1534
|
+
let a = t, u = r, { t: f } = U(), h = E(Ke, []), _ = E(We, !1), T = x(/* @__PURE__ */ new Set()), D = d(!1), A = d(""), j = d(""), M = [{
|
|
1535
1535
|
key: "desktop",
|
|
1536
1536
|
icon: Bt,
|
|
1537
1537
|
labelKey: "showOnDesktop"
|
|
@@ -1801,7 +1801,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1801
1801
|
},
|
|
1802
1802
|
emits: ["update:modelValue"],
|
|
1803
1803
|
setup(e, { emit: t }) {
|
|
1804
|
-
let r = e, i = t, { t: a } = U(), o = E(
|
|
1804
|
+
let r = e, i = t, { t: a } = U(), o = E(je, null), u = xt(), f = C(() => !!o);
|
|
1805
1805
|
async function h() {
|
|
1806
1806
|
let e = await o?.({ accept: ["images"] });
|
|
1807
1807
|
u.alive && e && i("update:modelValue", e.url);
|
|
@@ -1837,11 +1837,11 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1837
1837
|
ref: _,
|
|
1838
1838
|
class: "tpl:relative"
|
|
1839
1839
|
}, [
|
|
1840
|
-
T.value && (b(O) || x.value) ? (s(), m("div", Yi, [x.value ? (s(), m(S, { key: 0 }, [g(b(
|
|
1840
|
+
T.value && (b(O) || x.value) ? (s(), m("div", Yi, [x.value ? (s(), m(S, { key: 0 }, [g(b(ut), {
|
|
1841
1841
|
class: "tpl-spinner",
|
|
1842
1842
|
size: 18,
|
|
1843
1843
|
"stroke-width": 2
|
|
1844
|
-
}), y(" " + c(b(a).image.uploading), 1)], 64)) : (s(), m(S, { key: 1 }, [g(b(
|
|
1844
|
+
}), y(" " + c(b(a).image.uploading), 1)], 64)) : (s(), m(S, { key: 1 }, [g(b(gt), {
|
|
1845
1845
|
size: 18,
|
|
1846
1846
|
"stroke-width": 1.5
|
|
1847
1847
|
}), y(" " + c(b(a).image.dropToUpload), 1)], 64))])) : w("", !0),
|
|
@@ -1965,7 +1965,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1965
1965
|
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)]",
|
|
1966
1966
|
title: b(u).customBlocks.fields.removeItem,
|
|
1967
1967
|
onClick: (e) => x(r)
|
|
1968
|
-
}, [g(b(
|
|
1968
|
+
}, [g(b(ht), {
|
|
1969
1969
|
size: 12,
|
|
1970
1970
|
"stroke-width": 2
|
|
1971
1971
|
})], 8, ia)) : w("", !0)]), (s(!0), m(S, null, e(t.field.fields, (e) => (s(), v(o(b(ha)(e.type)), {
|
|
@@ -2152,7 +2152,7 @@ var ga = {
|
|
|
2152
2152
|
props: { block: {} },
|
|
2153
2153
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2154
2154
|
setup(t, { emit: n }) {
|
|
2155
|
-
let r = t, i = n, { t: a } = U(), l = E(
|
|
2155
|
+
let r = t, i = n, { t: a } = U(), l = E(ze, []), u = C(() => l.find((e) => e.type === r.block.customType)), { isFetching: d, fetchError: f, fetch: h, hasDataSource: _, needsFetch: x } = De({
|
|
2156
2156
|
definition: u,
|
|
2157
2157
|
block: C(() => r.block),
|
|
2158
2158
|
onUpdate: (e, t) => {
|
|
@@ -2180,7 +2180,7 @@ var ga = {
|
|
|
2180
2180
|
type: "button",
|
|
2181
2181
|
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)]",
|
|
2182
2182
|
onClick: r[1] ||= (...e) => b(h) && b(h)(...e)
|
|
2183
|
-
}, [g(b(
|
|
2183
|
+
}, [g(b(ot), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p", Ca, [g(b(et), {
|
|
2184
2184
|
size: 14,
|
|
2185
2185
|
class: "tpl:shrink-0"
|
|
2186
2186
|
}), y(" " + c(b(a).customBlocks.dataSource.fetchError), 1)])) : w("", !0)])) : w("", !0),
|
|
@@ -2255,7 +2255,7 @@ var ga = {
|
|
|
2255
2255
|
class: n(b(Tt)),
|
|
2256
2256
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
2257
2257
|
}, null, 42, Ma),
|
|
2258
|
-
p("p", Na, [g(b(
|
|
2258
|
+
p("p", Na, [g(b(ct), {
|
|
2259
2259
|
size: 12,
|
|
2260
2260
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2261
2261
|
}), y(" " + c(b(i).html.sanitizationHint), 1)])
|
|
@@ -2276,7 +2276,7 @@ var ga = {
|
|
|
2276
2276
|
props: { block: {} },
|
|
2277
2277
|
emits: ["update"],
|
|
2278
2278
|
setup(e, { emit: t }) {
|
|
2279
|
-
let r = e, i = t, { t: a } = U(), o = E(
|
|
2279
|
+
let r = e, i = t, { t: a } = U(), o = E(je, null), u = E(Le, B.liquid), f = xt(), h = C(() => !!o), _ = d(!1), x = d(!1), { start: T } = ke(() => {
|
|
2280
2280
|
_.value = !1;
|
|
2281
2281
|
}, 1e3, { immediate: !1 }), D = [
|
|
2282
2282
|
300,
|
|
@@ -2332,11 +2332,11 @@ var ga = {
|
|
|
2332
2332
|
ref: N,
|
|
2333
2333
|
class: "tpl:relative"
|
|
2334
2334
|
}, [
|
|
2335
|
-
I.value && (b(R) || P.value) ? (s(), m("div", Ia, [P.value ? (s(), m(S, { key: 0 }, [g(b(
|
|
2335
|
+
I.value && (b(R) || P.value) ? (s(), m("div", Ia, [P.value ? (s(), m(S, { key: 0 }, [g(b(ut), {
|
|
2336
2336
|
class: "tpl-spinner",
|
|
2337
2337
|
size: 18,
|
|
2338
2338
|
"stroke-width": 2
|
|
2339
|
-
}), y(" " + c(b(a).image.uploading), 1)], 64)) : (s(), m(S, { key: 1 }, [g(b(
|
|
2339
|
+
}), y(" " + c(b(a).image.uploading), 1)], 64)) : (s(), m(S, { key: 1 }, [g(b(gt), {
|
|
2340
2340
|
size: 18,
|
|
2341
2341
|
"stroke-width": 1.5
|
|
2342
2342
|
}), y(" " + c(b(a).image.dropToUpload), 1)], 64))])) : w("", !0),
|
|
@@ -2483,17 +2483,17 @@ var ga = {
|
|
|
2483
2483
|
{
|
|
2484
2484
|
value: "left",
|
|
2485
2485
|
label: o.title.alignLeft,
|
|
2486
|
-
icon:
|
|
2486
|
+
icon: mt
|
|
2487
2487
|
},
|
|
2488
2488
|
{
|
|
2489
2489
|
value: "center",
|
|
2490
2490
|
label: o.title.alignCenter,
|
|
2491
|
-
icon:
|
|
2491
|
+
icon: pt
|
|
2492
2492
|
},
|
|
2493
2493
|
{
|
|
2494
2494
|
value: "right",
|
|
2495
2495
|
label: o.title.alignRight,
|
|
2496
|
-
icon:
|
|
2496
|
+
icon: ft
|
|
2497
2497
|
}
|
|
2498
2498
|
]);
|
|
2499
2499
|
function f(e, t) {
|
|
@@ -2536,7 +2536,7 @@ var ga = {
|
|
|
2536
2536
|
class: n(b(wt)),
|
|
2537
2537
|
title: b(o).menu.removeItem,
|
|
2538
2538
|
onClick: (e) => x(r.id)
|
|
2539
|
-
}, [g(b(
|
|
2539
|
+
}, [g(b(_t), {
|
|
2540
2540
|
size: 14,
|
|
2541
2541
|
"stroke-width": 2
|
|
2542
2542
|
})], 10, eo)]),
|
|
@@ -2827,7 +2827,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
2827
2827
|
class: n(b(wt)),
|
|
2828
2828
|
title: b(o).social.removeIcon,
|
|
2829
2829
|
onClick: (e) => f(t.id)
|
|
2830
|
-
}, [g(b(
|
|
2830
|
+
}, [g(b(_t), {
|
|
2831
2831
|
size: 14,
|
|
2832
2832
|
"stroke-width": 2
|
|
2833
2833
|
})], 10, Oo)]), g($, {
|
|
@@ -2888,17 +2888,17 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
2888
2888
|
{
|
|
2889
2889
|
value: "left",
|
|
2890
2890
|
label: b(o).title.alignLeft,
|
|
2891
|
-
icon: b(
|
|
2891
|
+
icon: b(mt)
|
|
2892
2892
|
},
|
|
2893
2893
|
{
|
|
2894
2894
|
value: "center",
|
|
2895
2895
|
label: b(o).title.alignCenter,
|
|
2896
|
-
icon: b(
|
|
2896
|
+
icon: b(pt)
|
|
2897
2897
|
},
|
|
2898
2898
|
{
|
|
2899
2899
|
value: "right",
|
|
2900
2900
|
label: b(o).title.alignRight,
|
|
2901
|
-
icon: b(
|
|
2901
|
+
icon: b(ft)
|
|
2902
2902
|
}
|
|
2903
2903
|
],
|
|
2904
2904
|
"model-value": t.block.align,
|
|
@@ -2983,7 +2983,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
2983
2983
|
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",
|
|
2984
2984
|
disabled: t.block.rows.length <= 1,
|
|
2985
2985
|
onClick: i[0] ||= (e) => f(t.block.rows[t.block.rows.length - 1].id)
|
|
2986
|
-
}, [g(b(
|
|
2986
|
+
}, [g(b(tt), {
|
|
2987
2987
|
size: 12,
|
|
2988
2988
|
"stroke-width": 2
|
|
2989
2989
|
})], 8, Qo),
|
|
@@ -3000,7 +3000,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3000
3000
|
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",
|
|
3001
3001
|
disabled: l.value <= 1,
|
|
3002
3002
|
onClick: i[1] ||= (e) => _(l.value - 1)
|
|
3003
|
-
}, [g(b(
|
|
3003
|
+
}, [g(b(tt), {
|
|
3004
3004
|
size: 12,
|
|
3005
3005
|
"stroke-width": 2
|
|
3006
3006
|
})], 8, rs),
|
|
@@ -3074,17 +3074,17 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3074
3074
|
{
|
|
3075
3075
|
value: "left",
|
|
3076
3076
|
label: b(o).title.alignLeft,
|
|
3077
|
-
icon: b(
|
|
3077
|
+
icon: b(mt)
|
|
3078
3078
|
},
|
|
3079
3079
|
{
|
|
3080
3080
|
value: "center",
|
|
3081
3081
|
label: b(o).title.alignCenter,
|
|
3082
|
-
icon: b(
|
|
3082
|
+
icon: b(pt)
|
|
3083
3083
|
},
|
|
3084
3084
|
{
|
|
3085
3085
|
value: "right",
|
|
3086
3086
|
label: b(o).title.alignRight,
|
|
3087
|
-
icon: b(
|
|
3087
|
+
icon: b(ft)
|
|
3088
3088
|
}
|
|
3089
3089
|
],
|
|
3090
3090
|
"model-value": t.block.textAlign,
|
|
@@ -3132,17 +3132,17 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3132
3132
|
{
|
|
3133
3133
|
value: "left",
|
|
3134
3134
|
label: b(a).title.alignLeft,
|
|
3135
|
-
icon: b(
|
|
3135
|
+
icon: b(mt)
|
|
3136
3136
|
},
|
|
3137
3137
|
{
|
|
3138
3138
|
value: "center",
|
|
3139
3139
|
label: b(a).title.alignCenter,
|
|
3140
|
-
icon: b(
|
|
3140
|
+
icon: b(pt)
|
|
3141
3141
|
},
|
|
3142
3142
|
{
|
|
3143
3143
|
value: "right",
|
|
3144
3144
|
label: b(a).title.alignRight,
|
|
3145
|
-
icon: b(
|
|
3145
|
+
icon: b(ft)
|
|
3146
3146
|
}
|
|
3147
3147
|
],
|
|
3148
3148
|
"model-value": t.block.textAlign,
|
|
@@ -3162,7 +3162,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3162
3162
|
props: { block: {} },
|
|
3163
3163
|
emits: ["update"],
|
|
3164
3164
|
setup(e, { emit: t }) {
|
|
3165
|
-
let r = e, i = t, { t: a } = U(), o = E(
|
|
3165
|
+
let r = e, i = t, { t: a } = U(), o = E(je, null), l = E(Le, B.liquid), u = xt(), f = C(() => !!o), h = C(() => z(r.block.url, l)), _ = d(!1), { start: x } = ke(() => {
|
|
3166
3166
|
_.value = !1;
|
|
3167
3167
|
}, 1e3, { immediate: !1 });
|
|
3168
3168
|
function T(e, t) {
|
|
@@ -3260,7 +3260,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3260
3260
|
}, null, 8, ["options", "model-value"])])
|
|
3261
3261
|
], 64));
|
|
3262
3262
|
}
|
|
3263
|
-
}), Ys = ["aria-label"], Xs = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Zs = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Qs = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $s = { class: "tpl:flex tpl:gap-1" }, ec = ["title"], tc = ["title"], nc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, rc = /*#__PURE__*/
|
|
3263
|
+
}), Ys = ["aria-label"], Xs = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Zs = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Qs = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $s = { class: "tpl:flex tpl:gap-1" }, ec = ["title"], tc = ["title"], nc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, rc = /*#__PURE__*/ vt(/* @__PURE__ */ f({
|
|
3264
3264
|
__name: "Toolbar",
|
|
3265
3265
|
props: { block: {} },
|
|
3266
3266
|
emits: [
|
|
@@ -3269,7 +3269,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3269
3269
|
"duplicate"
|
|
3270
3270
|
],
|
|
3271
3271
|
setup(e, { emit: t }) {
|
|
3272
|
-
let n = h(() => import("./CountdownToolbar-
|
|
3272
|
+
let n = h(() => import("./CountdownToolbar-D5GaA_lt.js")), r = e, i = t, { t: a } = U(), l = Pe(Ve, "Toolbar"), u = E(ze, []), d = C(() => r.block.type), f = C(() => L(r.block)), _ = C(() => {
|
|
3273
3273
|
if (f.value) return u.find((e) => e.type === r.block.customType);
|
|
3274
3274
|
}), y = C(() => f.value ? _.value?.name ?? r.block.customType : le(d.value, a)), x = l.fonts;
|
|
3275
3275
|
function T(e) {
|
|
@@ -3278,7 +3278,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3278
3278
|
return (t, r) => (s(), m("aside", {
|
|
3279
3279
|
"aria-label": b(a).landmarks.blockToolbar,
|
|
3280
3280
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3281
|
-
}, [p("div", Xs, [p("div", Zs, [b(
|
|
3281
|
+
}, [p("div", Xs, [p("div", Zs, [b(it)[d.value] ? (s(), v(o(b(it)[d.value]), {
|
|
3282
3282
|
key: 0,
|
|
3283
3283
|
size: 16,
|
|
3284
3284
|
"stroke-width": 1.5
|
|
@@ -3297,7 +3297,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3297
3297
|
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)]",
|
|
3298
3298
|
title: b(a).toolbar.delete,
|
|
3299
3299
|
onClick: r[1] ||= (e) => i("delete")
|
|
3300
|
-
}, [g(b(
|
|
3300
|
+
}, [g(b(ht), {
|
|
3301
3301
|
size: 14,
|
|
3302
3302
|
"stroke-width": 2
|
|
3303
3303
|
})], 8, tc)])]), p("div", nc, [f.value ? (s(), v(wa, {
|
|
@@ -3417,7 +3417,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3417
3417
|
"update-settings"
|
|
3418
3418
|
],
|
|
3419
3419
|
setup(e, { emit: r }) {
|
|
3420
|
-
let a = h(() => import("./IssuesPanel-DltSuU6H.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(
|
|
3420
|
+
let a = h(() => import("./IssuesPanel-DltSuU6H.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Fe, null), y = C(() => _ !== null), x = C(() => _?.issues.value.length ?? 0);
|
|
3421
3421
|
function S(e) {
|
|
3422
3422
|
return f.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)]";
|
|
3423
3423
|
}
|
|
@@ -3474,7 +3474,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3474
3474
|
style: t(T("issues")),
|
|
3475
3475
|
onClick: i[2] ||= (e) => f.value = "issues"
|
|
3476
3476
|
}, [
|
|
3477
|
-
g(b(
|
|
3477
|
+
g(b(lt), {
|
|
3478
3478
|
size: 14,
|
|
3479
3479
|
"stroke-width": 1.5
|
|
3480
3480
|
}),
|
|
@@ -3582,7 +3582,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3582
3582
|
"aria-label",
|
|
3583
3583
|
"title",
|
|
3584
3584
|
"aria-pressed"
|
|
3585
|
-
], Ac = /*#__PURE__*/
|
|
3585
|
+
], Ac = /*#__PURE__*/ vt(/* @__PURE__ */ f({
|
|
3586
3586
|
__name: "PreviewToggle",
|
|
3587
3587
|
props: { previewMode: { type: Boolean } },
|
|
3588
3588
|
emits: ["change"],
|
|
@@ -3605,7 +3605,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3605
3605
|
"leave-to-class": "tpl-icon-leave-to",
|
|
3606
3606
|
mode: "out-in"
|
|
3607
3607
|
}, {
|
|
3608
|
-
default: l(() => [e.previewMode ? (s(), v(b(
|
|
3608
|
+
default: l(() => [e.previewMode ? (s(), v(b(at), {
|
|
3609
3609
|
key: "eye",
|
|
3610
3610
|
size: 18,
|
|
3611
3611
|
"stroke-width": 1.5
|
|
@@ -3621,7 +3621,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3621
3621
|
"aria-label",
|
|
3622
3622
|
"title",
|
|
3623
3623
|
"aria-pressed"
|
|
3624
|
-
], Mc = /*#__PURE__*/
|
|
3624
|
+
], Mc = /*#__PURE__*/ vt(/* @__PURE__ */ f({
|
|
3625
3625
|
__name: "DarkModeToggle",
|
|
3626
3626
|
props: { darkMode: { type: Boolean } },
|
|
3627
3627
|
emits: ["change"],
|
|
@@ -3729,7 +3729,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3729
3729
|
}, $c = "tpl-merge-tag-picker-list", el = /* @__PURE__ */ f({
|
|
3730
3730
|
__name: "MergeTagPickerModal",
|
|
3731
3731
|
setup(r) {
|
|
3732
|
-
let a =
|
|
3732
|
+
let a = Pe(Ye, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Ie, null), h = E(Ne, null), _ = d(""), y = Oe(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0), N = C(() => a.tags.value.some((e) => !!e.group)), P = d(/* @__PURE__ */ new Set());
|
|
3733
3733
|
function F(e) {
|
|
3734
3734
|
return P.value.has(e);
|
|
3735
3735
|
}
|
|
@@ -3868,11 +3868,11 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3868
3868
|
"aria-label": b(o).mergeTag.picker.close,
|
|
3869
3869
|
"data-testid": "merge-tag-picker-close",
|
|
3870
3870
|
onClick: ee
|
|
3871
|
-
}, [g(b(
|
|
3871
|
+
}, [g(b(_t), {
|
|
3872
3872
|
size: 16,
|
|
3873
3873
|
"stroke-width": 2
|
|
3874
3874
|
})], 8, zc)]),
|
|
3875
|
-
p("div", Bc, [g(b(
|
|
3875
|
+
p("div", Bc, [g(b(nt), {
|
|
3876
3876
|
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)]",
|
|
3877
3877
|
size: 14,
|
|
3878
3878
|
"stroke-width": 2
|
|
@@ -3919,7 +3919,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3919
3919
|
"data-group-collapsed": F(e.group) ? "true" : "false",
|
|
3920
3920
|
onClick: (t) => I(e.group)
|
|
3921
3921
|
}, [
|
|
3922
|
-
g(b(
|
|
3922
|
+
g(b($e), {
|
|
3923
3923
|
size: 12,
|
|
3924
3924
|
"stroke-width": 2,
|
|
3925
3925
|
class: n(["tpl:transition-transform", F(e.group) ? "tpl:-rotate-90" : ""])
|
|
@@ -4001,7 +4001,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4001
4001
|
}, bl = "tpl-logic-picker-list", xl = /* @__PURE__ */ f({
|
|
4002
4002
|
__name: "LogicTagPickerModal",
|
|
4003
4003
|
setup(r) {
|
|
4004
|
-
let a =
|
|
4004
|
+
let a = Pe(Xe, "LogicTagPickerModal"), { t: o } = U(), u = E(Le, B.liquid), f = E(Ie, null), h = E(Ne, null), _ = d(""), y = Oe(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0);
|
|
4005
4005
|
function N(e) {
|
|
4006
4006
|
let t = y.value.trim().toLowerCase();
|
|
4007
4007
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
@@ -4112,11 +4112,11 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4112
4112
|
"aria-label": b(o).logicTag.picker.close,
|
|
4113
4113
|
"data-testid": "logic-picker-close",
|
|
4114
4114
|
onClick: re
|
|
4115
|
-
}, [g(b(
|
|
4115
|
+
}, [g(b(_t), {
|
|
4116
4116
|
size: 16,
|
|
4117
4117
|
"stroke-width": 2
|
|
4118
4118
|
})], 8, ol)]),
|
|
4119
|
-
p("div", sl, [g(b(
|
|
4119
|
+
p("div", sl, [g(b(nt), {
|
|
4120
4120
|
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)]",
|
|
4121
4121
|
size: 14,
|
|
4122
4122
|
"stroke-width": 2
|