@templatical/editor 0.16.3 → 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/{AiChatSidebar-EaPCeDXr.js → AiChatSidebar-CYAbVB2G.js} +7 -7
- package/dist/{AiFeatureMenu-CcGRd1xE.js → AiFeatureMenu-B1oEJebq.js} +4 -4
- package/dist/{BlockIssueBadge-CZYgn-qg.js → BlockIssueBadge-BLytBabN.js} +2 -2
- package/dist/{CloudEditor-CUIWUMp5.js → CloudEditor-D6KNL6VU.js} +15 -15
- package/dist/{CollaboratorBar-DmxqeBYZ.js → CollaboratorBar-C_EhXQ5R.js} +2 -2
- package/dist/{ColorPicker-Gs4BMVog.js → ColorPicker-CppJgX_T.js} +58 -59
- package/dist/{CommentsSidebar-DDKiFsSq.js → CommentsSidebar-C_XLBbo3.js} +8 -8
- package/dist/{CountdownToolbar-92w1YySJ.js → CountdownToolbar-D5GaA_lt.js} +53 -67
- package/dist/{DesignReferenceSidebar-D6TfC176.js → DesignReferenceSidebar-Bh9uAZ4B.js} +5 -5
- package/dist/{IssuesPanel-CQQipLQP.js → IssuesPanel-DltSuU6H.js} +5 -5
- package/dist/{MergeTagSuggestion-DrT3LiZ4.js → MergeTagSuggestion-jIpT_jmz.js} +7 -5
- package/dist/{ModuleBrowserModal-DsehjLvh.js → ModuleBrowserModal-CXy8Bbv9.js} +6 -6
- package/dist/{ModulePreviewCanvas-BBfuS8VW.js → ModulePreviewCanvas-CJC9kyZN.js} +1 -1
- package/dist/{NumberWithSuffix-BxSRfI8b.js → NumberWithSuffix-DNi-v4l1.js} +1 -1
- package/dist/{ParagraphEditor-vgvQxicC.js → ParagraphEditor-nk5Vvr7M.js} +57 -58
- package/dist/{RichTextEditorContent-Dza2oPvh.js → RichTextEditorContent-DBaCrvH0.js} +13 -13
- package/dist/{SaveModuleDialog-DNWGCHlS.js → SaveModuleDialog-CYu5PhBz.js} +24 -23
- package/dist/{SnapshotHistory-BLmnNLg1.js → SnapshotHistory-B38ImqMO.js} +6 -6
- package/dist/{TemplateScoringPanel-C8VOC6gn.js → TemplateScoringPanel-ZhObHWeb.js} +10 -10
- package/dist/{TestEmailModal-D6v1hgY2.js → TestEmailModal-DbstIzEf.js} +3 -3
- package/dist/{TitleEditor-DPdzOQpq.js → TitleEditor-CmfkOHJT.js} +18 -18
- package/dist/ToggleSwitch-DUNuUPsZ.js +37 -0
- package/dist/{TplModal-DObT0uxf.js → TplModal-BXnx3sLr.js} +4 -4
- package/dist/{blockTypeIcons-B9f5fH_5.js → blockTypeIcons-BVIEw0XJ.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +2 -1
- package/dist/cdn/chunks/{AiFeatureMenu-CyUCHd9I.js → AiFeatureMenu-CuIg4yrB.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-CyUCHd9I.js.map → AiFeatureMenu-CuIg4yrB.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BAa_dI-c.js → BlockIssueBadge-BHEl_Hs7.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-BAa_dI-c.js.map → BlockIssueBadge-BHEl_Hs7.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-ClfgLU48.js → CloudEditor-1Ms0w691.js} +130 -130
- package/dist/cdn/chunks/{CloudEditor-ClfgLU48.js.map → CloudEditor-1Ms0w691.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DCc5SL0P.js → CollaboratorBar-C0a5P64z.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-DCc5SL0P.js.map → CollaboratorBar-C0a5P64z.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-Pi-1fR8c.js → ColorPicker-bsMmT-_B.js} +144 -144
- package/dist/cdn/chunks/ColorPicker-bsMmT-_B.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Bj7aoBUU.js → CountdownBlock-8053oz4k.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-Bj7aoBUU.js.map → CountdownBlock-8053oz4k.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DQ_zrorh.js +198 -0
- package/dist/cdn/chunks/CountdownToolbar-DQ_zrorh.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-BXLVRo-c.js → IssuesPanel-CwQ376nf.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-BXLVRo-c.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-C7BkJvzf.js → ModuleBrowserModal-DUegB2Jk.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-C7BkJvzf.js.map → ModuleBrowserModal-DUegB2Jk.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-BJn-ZHlC.js → ModulePreviewCanvas-f4h8r9Lh.js} +32 -32
- package/dist/cdn/chunks/{ModulePreviewCanvas-BJn-ZHlC.js.map → ModulePreviewCanvas-f4h8r9Lh.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CkOxH3F7.js → NumberWithSuffix-Bu_nHJuD.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-CkOxH3F7.js.map → NumberWithSuffix-Bu_nHJuD.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-4cMKKC-V.js → ParagraphEditor-IpZsg8qo.js} +75 -75
- package/dist/cdn/chunks/ParagraphEditor-IpZsg8qo.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-7RZe4tbj.js → RichTextEditorContent-DDnqZ9cB.js} +6 -6
- package/dist/cdn/chunks/{RichTextEditorContent-7RZe4tbj.js.map → RichTextEditorContent-DDnqZ9cB.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-mr9A4j6G.js → SaveModuleDialog-CVA5HPCi.js} +31 -30
- package/dist/cdn/chunks/SaveModuleDialog-CVA5HPCi.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-Cqw2jvuc.js → TitleEditor-DU8wm0Rh.js} +9 -9
- package/dist/cdn/chunks/TitleEditor-DU8wm0Rh.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +39 -0
- package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-B_xRBxSU.js → blockTypeIcons-Dm5Oosjp.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-B_xRBxSU.js.map → blockTypeIcons-Dm5Oosjp.js.map} +1 -1
- package/dist/cdn/chunks/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +3 -2
- package/dist/cdn/chunks/ca-DI1ViqMa.js.map +1 -0
- package/dist/cdn/chunks/{de-Cy8FB-Ii.js → de-q9lTCMre.js} +3 -2
- package/dist/cdn/chunks/de-q9lTCMre.js.map +1 -0
- package/dist/cdn/chunks/{en-Bu-zS_5o.js → en-CR4LItrX.js} +3 -2
- package/dist/cdn/chunks/en-CR4LItrX.js.map +1 -0
- package/dist/cdn/chunks/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +3 -2
- package/dist/cdn/chunks/es-CEt-lrGd.js.map +1 -0
- package/dist/cdn/chunks/{extensions-Btyx_IMf.js → extensions-BGUoo2a5.js} +29 -29
- package/dist/cdn/chunks/{extensions-Btyx_IMf.js.map → extensions-BGUoo2a5.js.map} +1 -1
- package/dist/cdn/chunks/{features-Dwb5aTLg.js → features-BSpDuFFR.js} +145 -126
- package/dist/cdn/chunks/features-BSpDuFFR.js.map +1 -0
- package/dist/cdn/chunks/{icons-Dhqh5lYQ.js → icons-k3XVoRvc.js} +26 -26
- package/dist/cdn/chunks/{icons-Dhqh5lYQ.js.map → icons-k3XVoRvc.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-DRodsf2D.js → media-library-iDq3otm6.js} +451 -451
- package/dist/cdn/chunks/{media-library-DRodsf2D.js.map → media-library-iDq3otm6.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +3 -2
- package/dist/cdn/chunks/pt-BR-DvBHY0AA.js.map +1 -0
- package/dist/cdn/chunks/{quality-A_V2Iqu_.js → quality-Bb7vN32U.js} +512 -512
- package/dist/cdn/chunks/{quality-A_V2Iqu_.js.map → quality-Bb7vN32U.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BM_-zceB.js → renderer-cOvtk8HM.js} +20 -17
- package/dist/cdn/chunks/{renderer-BM_-zceB.js.map → renderer-cOvtk8HM.js.map} +1 -1
- package/dist/cdn/chunks/{src-DSomxPI-.js → src-Ddp969zE.js} +6 -6
- package/dist/cdn/chunks/{src-DSomxPI-.js.map → src-Ddp969zE.js.map} +1 -1
- package/dist/cdn/chunks/{styles--UXn88wH.js → styles-CW_gRVVR.js} +893 -891
- package/dist/cdn/chunks/styles-CW_gRVVR.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +51 -51
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-D1zYtCPK.js → check-Cg6Mc2pP.js} +1 -1
- package/dist/{chevron-down-ByXpufZD.js → chevron-down-dClfxKrJ.js} +1 -1
- package/dist/{circle-alert-CjcAORUw.js → circle-alert-Bhzm-fNA.js} +1 -1
- package/dist/{clock-5lWLadUn.js → clock-m7TwQw4b.js} +1 -1
- package/dist/{createLucideIcon-Bh9xOmlW.js → createLucideIcon-FSF4peHQ.js} +2 -2
- package/dist/{de-Cy8FB-Ii.js → de-q9lTCMre.js} +2 -1
- package/dist/{en-Bu-zS_5o.js → en-CR4LItrX.js} +2 -1
- package/dist/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +2 -1
- package/dist/{extensions-B2poxDIo.js → extensions-Cjd-VAII.js} +1 -1
- package/dist/{image-up-Bj_nes3f.js → image-up-CDEgJqwA.js} +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/{info-BhSQCxBV.js → info-BNP8yGsK.js} +1 -1
- package/dist/{list-checks-CgxyUg7i.js → list-checks-jepi4iYr.js} +1 -1
- package/dist/{loader-circle-DFU0HPAa.js → loader-circle-BT38qSm3.js} +1 -1
- package/dist/{message-circle-BEBsCHnk.js → message-circle-BAHcL9S-.js} +1 -1
- package/dist/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +2 -1
- package/dist/{refresh-cw--lvWGy0_.js → refresh-cw-as5Bmg4X.js} +1 -1
- package/dist/{scan-line-QgyDIgn_.js → scan-line-IAMjPtRw.js} +1 -1
- package/dist/{send-BMyisUim.js → send-DvMay6bt.js} +1 -1
- package/dist/{shield-check-C49M20le.js → shield-check-YYDhGroE.js} +1 -1
- package/dist/{sparkles-DV7Dman6.js → sparkles-CCwQMMMZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-CPt6RYEc.js → styles-DJfTblY7.js} +764 -762
- package/dist/templatical-editor.js +9 -9
- package/dist/{text-align-start-BMU70uAm.js → text-align-start-BwsA6QzC.js} +11 -11
- package/dist/{trash-2-B6M659Ey.js → trash-2-CRBDolnR.js} +1 -1
- package/dist/{triangle-alert-D1lzx6ds.js → triangle-alert-B2g0ALvq.js} +1 -1
- package/dist/{upload-3A1oZtOR.js → upload-BKg6hDRW.js} +1 -1
- package/dist/{useEditorCore-CSfeEwCj.js → useEditorCore-DnOG2a_b.js} +656 -656
- package/dist/usePopoverPosition-B3Byo68F.js +281 -0
- package/dist/{x-CG_NV3nP.js → x-Ctg_250T.js} +1 -1
- package/package.json +8 -8
- package/dist/cdn/chunks/ColorPicker-Pi-1fR8c.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-B1oniVq1.js +0 -212
- package/dist/cdn/chunks/CountdownToolbar-B1oniVq1.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-jesxS7An.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-4cMKKC-V.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-mr9A4j6G.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cqw2jvuc.js.map +0 -1
- package/dist/cdn/chunks/ca-B3eR47lE.js.map +0 -1
- package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +0 -1
- package/dist/cdn/chunks/en-Bu-zS_5o.js.map +0 -1
- package/dist/cdn/chunks/es-CD3ZD6hK.js.map +0 -1
- package/dist/cdn/chunks/features-Dwb5aTLg.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +0 -1
- package/dist/cdn/chunks/styles--UXn88wH.js.map +0 -1
- package/dist/color-DhoxCSMv.js +0 -259
- package/dist/usePopoverRoot-C1j0D7cc.js +0 -8
|
@@ -1,42 +1,43 @@
|
|
|
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
|
-
import { t as W } from "./createLucideIcon-
|
|
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 {
|
|
32
|
-
import { n as
|
|
33
|
-
import { t as
|
|
34
|
-
var
|
|
9
|
+
import { t as W } from "./createLucideIcon-FSF4peHQ.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
|
+
import { t as X } from "./ToggleSwitch-DUNuUPsZ.js";
|
|
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
|
+
var Ft = W("circle", [["circle", {
|
|
35
36
|
cx: "12",
|
|
36
37
|
cy: "12",
|
|
37
38
|
r: "10",
|
|
38
39
|
key: "1mglay"
|
|
39
|
-
}]]),
|
|
40
|
+
}]]), It = W("globe", [
|
|
40
41
|
["circle", {
|
|
41
42
|
cx: "12",
|
|
42
43
|
cy: "12",
|
|
@@ -51,7 +52,7 @@ var Pt = W("circle", [["circle", {
|
|
|
51
52
|
d: "M2 12h20",
|
|
52
53
|
key: "9i4pu4"
|
|
53
54
|
}]
|
|
54
|
-
]),
|
|
55
|
+
]), Lt = W("layout-template", [
|
|
55
56
|
["rect", {
|
|
56
57
|
width: "18",
|
|
57
58
|
height: "7",
|
|
@@ -76,7 +77,7 @@ var Pt = W("circle", [["circle", {
|
|
|
76
77
|
rx: "1",
|
|
77
78
|
key: "q5h2i8"
|
|
78
79
|
}]
|
|
79
|
-
]),
|
|
80
|
+
]), Rt = W("lock-open", [["rect", {
|
|
80
81
|
width: "18",
|
|
81
82
|
height: "11",
|
|
82
83
|
x: "3",
|
|
@@ -87,7 +88,7 @@ var Pt = W("circle", [["circle", {
|
|
|
87
88
|
}], ["path", {
|
|
88
89
|
d: "M7 11V7a5 5 0 0 1 9.9-1",
|
|
89
90
|
key: "1mm8w8"
|
|
90
|
-
}]]),
|
|
91
|
+
}]]), zt = W("lock", [["rect", {
|
|
91
92
|
width: "18",
|
|
92
93
|
height: "11",
|
|
93
94
|
x: "3",
|
|
@@ -98,7 +99,7 @@ var Pt = W("circle", [["circle", {
|
|
|
98
99
|
}], ["path", {
|
|
99
100
|
d: "M7 11V7a5 5 0 0 1 10 0v4",
|
|
100
101
|
key: "fwvmzm"
|
|
101
|
-
}]]),
|
|
102
|
+
}]]), Bt = W("monitor", [
|
|
102
103
|
["rect", {
|
|
103
104
|
width: "20",
|
|
104
105
|
height: "14",
|
|
@@ -121,10 +122,10 @@ var Pt = W("circle", [["circle", {
|
|
|
121
122
|
y2: "21",
|
|
122
123
|
key: "vw1qmm"
|
|
123
124
|
}]
|
|
124
|
-
]),
|
|
125
|
+
]), Vt = W("moon", [["path", {
|
|
125
126
|
d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
|
|
126
127
|
key: "kfwtm"
|
|
127
|
-
}]]),
|
|
128
|
+
}]]), Ht = W("panel-top", [["rect", {
|
|
128
129
|
width: "18",
|
|
129
130
|
height: "18",
|
|
130
131
|
x: "3",
|
|
@@ -140,13 +141,13 @@ var Pt = W("circle", [["circle", {
|
|
|
140
141
|
}], ["path", {
|
|
141
142
|
d: "M12 5v14",
|
|
142
143
|
key: "s699le"
|
|
143
|
-
}]]),
|
|
144
|
+
}]]), Ut = W("rotate-ccw", [["path", {
|
|
144
145
|
d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
|
|
145
146
|
key: "1357e3"
|
|
146
147
|
}], ["path", {
|
|
147
148
|
d: "M3 3v5h5",
|
|
148
149
|
key: "1xhq8a"
|
|
149
|
-
}]]),
|
|
150
|
+
}]]), Wt = W("settings", [["path", {
|
|
150
151
|
d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
|
|
151
152
|
key: "1i5ecw"
|
|
152
153
|
}], ["circle", {
|
|
@@ -154,7 +155,7 @@ var Pt = W("circle", [["circle", {
|
|
|
154
155
|
cy: "12",
|
|
155
156
|
r: "3",
|
|
156
157
|
key: "1v7zrd"
|
|
157
|
-
}]]),
|
|
158
|
+
}]]), Gt = W("smartphone", [["rect", {
|
|
158
159
|
width: "14",
|
|
159
160
|
height: "20",
|
|
160
161
|
x: "5",
|
|
@@ -165,7 +166,7 @@ var Pt = W("circle", [["circle", {
|
|
|
165
166
|
}], ["path", {
|
|
166
167
|
d: "M12 18h.01",
|
|
167
168
|
key: "mhygvu"
|
|
168
|
-
}]]),
|
|
169
|
+
}]]), Kt = W("square-plus", [
|
|
169
170
|
["rect", {
|
|
170
171
|
width: "18",
|
|
171
172
|
height: "18",
|
|
@@ -182,14 +183,14 @@ var Pt = W("circle", [["circle", {
|
|
|
182
183
|
d: "M12 8v8",
|
|
183
184
|
key: "napkw2"
|
|
184
185
|
}]
|
|
185
|
-
]),
|
|
186
|
+
]), qt = W("square", [["rect", {
|
|
186
187
|
width: "18",
|
|
187
188
|
height: "18",
|
|
188
189
|
x: "3",
|
|
189
190
|
y: "3",
|
|
190
191
|
rx: "2",
|
|
191
192
|
key: "afitv7"
|
|
192
|
-
}]]),
|
|
193
|
+
}]]), Jt = W("sun", [
|
|
193
194
|
["circle", {
|
|
194
195
|
cx: "12",
|
|
195
196
|
cy: "12",
|
|
@@ -231,7 +232,7 @@ var Pt = W("circle", [["circle", {
|
|
|
231
232
|
]);
|
|
232
233
|
//#endregion
|
|
233
234
|
//#region src/utils/resolveLintOptions.ts
|
|
234
|
-
function
|
|
235
|
+
function Yt(e) {
|
|
235
236
|
return {
|
|
236
237
|
...e.lint,
|
|
237
238
|
locale: e.locale
|
|
@@ -239,19 +240,19 @@ function Jt(e) {
|
|
|
239
240
|
}
|
|
240
241
|
//#endregion
|
|
241
242
|
//#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
|
|
242
|
-
var
|
|
243
|
+
var Xt = ["aria-label"], Zt = {
|
|
243
244
|
key: 0,
|
|
244
245
|
class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
|
|
245
|
-
},
|
|
246
|
+
}, Qt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, $t = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, en = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, tn = {
|
|
246
247
|
key: 0,
|
|
247
248
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
248
|
-
},
|
|
249
|
+
}, nn = {
|
|
249
250
|
key: 1,
|
|
250
251
|
class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
251
|
-
},
|
|
252
|
+
}, rn = { class: "tpl:relative" }, an = {
|
|
252
253
|
class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
|
|
253
254
|
style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
|
|
254
|
-
},
|
|
255
|
+
}, on = 96, sn = /*#__PURE__*/ vt(/* @__PURE__ */ f({
|
|
255
256
|
__name: "Canvas",
|
|
256
257
|
props: {
|
|
257
258
|
viewport: {},
|
|
@@ -280,9 +281,9 @@ var Yt = ["aria-label"], Xt = {
|
|
|
280
281
|
menu: ve,
|
|
281
282
|
table: Se,
|
|
282
283
|
video: ye,
|
|
283
|
-
countdown:
|
|
284
|
+
countdown: Ct,
|
|
284
285
|
custom: Ee
|
|
285
|
-
}, 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({
|
|
286
287
|
get: () => u.content.blocks,
|
|
287
288
|
set: (e) => {
|
|
288
289
|
x.setContent({
|
|
@@ -295,7 +296,7 @@ var Yt = ["aria-label"], Xt = {
|
|
|
295
296
|
case "mobile": return 375;
|
|
296
297
|
default: return u.content.settings.width;
|
|
297
298
|
}
|
|
298
|
-
}), F = C(() => P.value +
|
|
299
|
+
}), F = C(() => P.value + on * 2), I = C(() => {
|
|
299
300
|
let e = { fontFamily: u.content.settings.fontFamily };
|
|
300
301
|
return u.content.settings.textColor && (e.color = u.content.settings.textColor), u.content.settings.linkColor && (e["--tpl-doc-link-color"] = u.content.settings.linkColor), u.content.settings.linkUnderline && (e["--tpl-doc-link-underline"] = "underline"), e;
|
|
301
302
|
}), L = C(() => N.value.length === 0 && !u.previewMode), R = d(0), z = C(() => L.value && R.value > 0);
|
|
@@ -376,30 +377,30 @@ var Yt = ["aria-label"], Xt = {
|
|
|
376
377
|
onDragleave: V,
|
|
377
378
|
onDrop: ee
|
|
378
379
|
}, {
|
|
379
|
-
default: l(() => [L.value ? (s(), m("div",
|
|
380
|
-
p("div",
|
|
380
|
+
default: l(() => [L.value ? (s(), m("div", Zt, [
|
|
381
|
+
p("div", Qt, [g(b(Kt), {
|
|
381
382
|
size: 48,
|
|
382
383
|
"stroke-width": 1
|
|
383
384
|
})]),
|
|
384
|
-
p("p",
|
|
385
|
-
p("p",
|
|
386
|
-
A.value && b(_) ? (s(), m("p",
|
|
385
|
+
p("p", $t, c(b(h).canvas.noBlocks), 1),
|
|
386
|
+
p("p", en, c(b(h).canvas.dragHint), 1),
|
|
387
|
+
A.value && b(_) ? (s(), m("p", tn, [
|
|
387
388
|
y(c(b(h).canvas.aiHintChat) + " ", 1),
|
|
388
389
|
p("button", {
|
|
389
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)]",
|
|
390
391
|
onClick: a[0] ||= (e) => f("open-ai-chat")
|
|
391
|
-
}, [g(b(
|
|
392
|
+
}, [g(b(dt), {
|
|
392
393
|
size: 14,
|
|
393
394
|
"stroke-width": 2
|
|
394
395
|
}), y(" " + c(b(_).aiMenu.aiAssistant), 1)]),
|
|
395
396
|
y(" " + c(b(h).canvas.aiHintChatSuffix), 1)
|
|
396
397
|
])) : w("", !0),
|
|
397
|
-
M.value && b(_) ? (s(), m("p",
|
|
398
|
+
M.value && b(_) ? (s(), m("p", nn, [
|
|
398
399
|
y(c(b(h).canvas.aiHintDesign) + " ", 1),
|
|
399
400
|
p("button", {
|
|
400
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)]",
|
|
401
402
|
onClick: a[1] ||= (e) => f("open-design-reference")
|
|
402
|
-
}, [g(b(
|
|
403
|
+
}, [g(b(st), {
|
|
403
404
|
size: 14,
|
|
404
405
|
"stroke-width": 2
|
|
405
406
|
}), y(" " + c(b(_).aiMenu.designToTemplate), 1)]),
|
|
@@ -408,7 +409,7 @@ var Yt = ["aria-label"], Xt = {
|
|
|
408
409
|
])) : w("", !0), (s(!0), m(S, null, e(N.value, (e) => O((s(), m("div", {
|
|
409
410
|
key: e.id,
|
|
410
411
|
class: "tpl-block-item"
|
|
411
|
-
}, [p("div",
|
|
412
|
+
}, [p("div", rn, [H(e.id) ? (s(), m("div", {
|
|
412
413
|
key: 0,
|
|
413
414
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
414
415
|
style: t({
|
|
@@ -419,9 +420,9 @@ var Yt = ["aria-label"], Xt = {
|
|
|
419
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",
|
|
420
421
|
style: t({
|
|
421
422
|
backgroundColor: H(e.id).color,
|
|
422
|
-
color: b(
|
|
423
|
+
color: b(St)(H(e.id).color)
|
|
423
424
|
})
|
|
424
|
-
}, [p("span",
|
|
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, {
|
|
425
426
|
block: e,
|
|
426
427
|
"is-selected": !r.previewMode && r.selectedBlockId === e.id && !H(e.id),
|
|
427
428
|
viewport: r.viewport,
|
|
@@ -452,12 +453,12 @@ var Yt = ["aria-label"], Xt = {
|
|
|
452
453
|
"modelValue",
|
|
453
454
|
"disabled",
|
|
454
455
|
"class"
|
|
455
|
-
])], 6)], 12,
|
|
456
|
+
])], 6)], 12, Xt)], 4));
|
|
456
457
|
}
|
|
457
|
-
}), [["__scopeId", "data-v-b440d13f"]]),
|
|
458
|
+
}), [["__scopeId", "data-v-b440d13f"]]), cn = f({
|
|
458
459
|
name: "CustomBlockStylesheets",
|
|
459
460
|
setup() {
|
|
460
|
-
let e = E(
|
|
461
|
+
let e = E(Be, null);
|
|
461
462
|
return () => e ? e.value.map((e, t) => D("style", {
|
|
462
463
|
key: t,
|
|
463
464
|
"data-tpl-custom-block-stylesheet": "",
|
|
@@ -467,7 +468,7 @@ var Yt = ["aria-label"], Xt = {
|
|
|
467
468
|
});
|
|
468
469
|
//#endregion
|
|
469
470
|
//#region src/utils/resolvePaletteBlocks.ts
|
|
470
|
-
function
|
|
471
|
+
function ln(e, t) {
|
|
471
472
|
if (!t || t.length === 0) return {
|
|
472
473
|
items: e,
|
|
473
474
|
unknown: []
|
|
@@ -486,27 +487,27 @@ function cn(e, t) {
|
|
|
486
487
|
}
|
|
487
488
|
//#endregion
|
|
488
489
|
//#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
489
|
-
var
|
|
490
|
+
var un = ["aria-label"], dn = {
|
|
490
491
|
key: 0,
|
|
491
492
|
class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
|
|
492
|
-
},
|
|
493
|
+
}, fn = ["aria-label"], pn = {
|
|
493
494
|
key: 0,
|
|
494
495
|
class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
|
|
495
|
-
},
|
|
496
|
+
}, mn = {
|
|
496
497
|
key: 1,
|
|
497
498
|
class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]"
|
|
498
|
-
},
|
|
499
|
+
}, hn = [
|
|
499
500
|
"data-palette-type",
|
|
500
501
|
"aria-label",
|
|
501
502
|
"onClick",
|
|
502
503
|
"onKeydown"
|
|
503
|
-
],
|
|
504
|
+
], gn = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:scale-105" }, _n = {
|
|
504
505
|
key: 0,
|
|
505
506
|
class: "tpl:truncate tpl:text-sm tpl:font-medium"
|
|
506
|
-
},
|
|
507
|
+
}, vn = /* @__PURE__ */ f({
|
|
507
508
|
__name: "Sidebar",
|
|
508
509
|
setup(n) {
|
|
509
|
-
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);
|
|
510
511
|
function k() {
|
|
511
512
|
O.value || (D.value = !1);
|
|
512
513
|
}
|
|
@@ -514,7 +515,7 @@ var ln = ["aria-label"], un = {
|
|
|
514
515
|
O.value = !0;
|
|
515
516
|
}
|
|
516
517
|
function j() {
|
|
517
|
-
O.value = !1;
|
|
518
|
+
O.value = !1, D.value = !1;
|
|
518
519
|
}
|
|
519
520
|
let M = [
|
|
520
521
|
"section",
|
|
@@ -543,7 +544,7 @@ var ln = ["aria-label"], un = {
|
|
|
543
544
|
label: e.name,
|
|
544
545
|
isCustom: !0,
|
|
545
546
|
icon: e.icon
|
|
546
|
-
}))), F = C(() => [...N.value, ...P.value]), I = C(() =>
|
|
547
|
+
}))), F = C(() => [...N.value, ...P.value]), I = C(() => ln(F.value, h)), L = C(() => I.value.items), R = /* @__PURE__ */ new Set();
|
|
547
548
|
i(() => I.value.unknown, (e) => {
|
|
548
549
|
for (let t of e) R.has(t) || (R.add(t), ie.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
|
|
549
550
|
}, { immediate: !0 });
|
|
@@ -576,21 +577,21 @@ var ln = ["aria-label"], un = {
|
|
|
576
577
|
onMouseleave: k,
|
|
577
578
|
onFocusin: i[2] ||= (e) => D.value = !0,
|
|
578
579
|
onFocusout: i[3] ||= (e) => D.value = !1
|
|
579
|
-
}, [T.value && b(u) ? (s(), m("div",
|
|
580
|
+
}, [T.value && b(u) ? (s(), m("div", dn, [p("button", {
|
|
580
581
|
type: "button",
|
|
581
582
|
"aria-label": b(r).sidebarNav.browseModules,
|
|
582
583
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)]",
|
|
583
584
|
style: t({ justifyContent: D.value ? "flex-start" : "center" }),
|
|
584
585
|
onClick: i[0] ||= (e) => b(x).savedModules?.openBrowser()
|
|
585
586
|
}, [
|
|
586
|
-
g(b(
|
|
587
|
+
g(b(rt), {
|
|
587
588
|
size: 20,
|
|
588
589
|
"stroke-width": 1.5,
|
|
589
590
|
class: "tpl:shrink-0"
|
|
590
591
|
}),
|
|
591
|
-
D.value ? (s(), m("span",
|
|
592
|
-
D.value ? (s(), m("span",
|
|
593
|
-
], 12,
|
|
592
|
+
D.value ? (s(), m("span", pn, c(b(u).modules.title), 1)) : w("", !0),
|
|
593
|
+
D.value ? (s(), m("span", mn, c(b(x).savedModules?.moduleCount.value ?? 0), 1)) : w("", !0)
|
|
594
|
+
], 12, fn)])) : w("", !0), g(b(fe), {
|
|
594
595
|
"model-value": L.value,
|
|
595
596
|
group: {
|
|
596
597
|
name: "blocks",
|
|
@@ -614,7 +615,7 @@ var ln = ["aria-label"], un = {
|
|
|
614
615
|
style: t({ justifyContent: D.value ? "flex-start" : "center" }),
|
|
615
616
|
onClick: (t) => B(e),
|
|
616
617
|
onKeydown: (t) => te(t, e)
|
|
617
|
-
}, [p("div",
|
|
618
|
+
}, [p("div", gn, [b(it)[e.type] ? (s(), v(o(b(it)[e.type]), {
|
|
618
619
|
key: 0,
|
|
619
620
|
size: 20,
|
|
620
621
|
"stroke-width": 1.5
|
|
@@ -622,14 +623,14 @@ var ln = ["aria-label"], un = {
|
|
|
622
623
|
key: 1,
|
|
623
624
|
icon: e.icon,
|
|
624
625
|
size: 20
|
|
625
|
-
}, null, 8, ["icon"])) : w("", !0)]), D.value ? (s(), m("span",
|
|
626
|
+
}, null, 8, ["icon"])) : w("", !0)]), D.value ? (s(), m("span", _n, c(e.label), 1)) : w("", !0)], 44, hn))), 128))]),
|
|
626
627
|
_: 1
|
|
627
|
-
}, 8, ["model-value"])], 44,
|
|
628
|
+
}, 8, ["model-value"])], 44, un));
|
|
628
629
|
}
|
|
629
630
|
});
|
|
630
631
|
//#endregion
|
|
631
632
|
//#region src/utils/mergeTagTrigger.ts
|
|
632
|
-
function
|
|
633
|
+
function yn(e, t, n, r) {
|
|
633
634
|
if (!n) return null;
|
|
634
635
|
let i = e.slice(0, t), a = i.lastIndexOf(n);
|
|
635
636
|
if (a === -1) return null;
|
|
@@ -642,8 +643,8 @@ function vn(e, t, n, r) {
|
|
|
642
643
|
}
|
|
643
644
|
//#endregion
|
|
644
645
|
//#region src/utils/textFieldCaret.ts
|
|
645
|
-
var
|
|
646
|
-
function
|
|
646
|
+
var bn = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
|
|
647
|
+
function xn(e, t, n) {
|
|
647
648
|
return {
|
|
648
649
|
left: e,
|
|
649
650
|
top: t,
|
|
@@ -656,7 +657,7 @@ function bn(e, t, n) {
|
|
|
656
657
|
toJSON: () => ({})
|
|
657
658
|
};
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function Sn(e, t) {
|
|
660
661
|
let n = e.ownerDocument, r = n.defaultView;
|
|
661
662
|
if (!r) return null;
|
|
662
663
|
let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
|
|
@@ -664,7 +665,7 @@ function xn(e, t) {
|
|
|
664
665
|
let s = o.style;
|
|
665
666
|
s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
|
|
666
667
|
let c = s, l = a;
|
|
667
|
-
for (let e of
|
|
668
|
+
for (let e of bn) c[e] = l[e];
|
|
668
669
|
i && (s.width = "auto", s.whiteSpace = "pre");
|
|
669
670
|
let u = e.value, d = u.slice(0, t);
|
|
670
671
|
i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
|
|
@@ -673,26 +674,26 @@ function xn(e, t) {
|
|
|
673
674
|
let p = f.offsetTop, m = f.offsetLeft;
|
|
674
675
|
n.body.removeChild(o);
|
|
675
676
|
let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
|
|
676
|
-
if (i) return
|
|
677
|
+
if (i) return xn(y, h.top, h.bottom);
|
|
677
678
|
let b = h.top + p + g - e.scrollTop;
|
|
678
|
-
return
|
|
679
|
+
return xn(y, b, b + v);
|
|
679
680
|
}
|
|
680
681
|
//#endregion
|
|
681
682
|
//#region src/composables/useMergeTagAutocomplete.ts
|
|
682
|
-
var
|
|
683
|
+
var Cn = /* @__PURE__ */ new Set([
|
|
683
684
|
"ArrowLeft",
|
|
684
685
|
"ArrowRight",
|
|
685
686
|
"Home",
|
|
686
687
|
"End"
|
|
687
688
|
]);
|
|
688
|
-
function
|
|
689
|
-
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(
|
|
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(Me, null), h = At((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", Ae()), g = !1;
|
|
690
691
|
r() && a(() => {
|
|
691
692
|
g = !0, h.close();
|
|
692
693
|
});
|
|
693
694
|
function _(e) {
|
|
694
695
|
let t = e.value ?? "";
|
|
695
|
-
return
|
|
696
|
+
return yn(t, e.selectionStart ?? t.length, d, f);
|
|
696
697
|
}
|
|
697
698
|
function v(e, r, a) {
|
|
698
699
|
let o = e.value ?? n(), s = o.slice(r.caret), c = f && s.startsWith(f) ? f.length : 0, u = o.slice(0, r.triggerStart), d = o.slice(r.caret + c), p = u + a.value + d, m = u.length + a.value.length;
|
|
@@ -714,7 +715,7 @@ function Cn(e) {
|
|
|
714
715
|
h.close();
|
|
715
716
|
return;
|
|
716
717
|
}
|
|
717
|
-
let r = jt(o, n.query), i = () =>
|
|
718
|
+
let r = jt(o, n.query), i = () => Sn(e, n.triggerStart), a = (t) => v(e, n, t);
|
|
718
719
|
h.isOpen() ? h.update({
|
|
719
720
|
items: r,
|
|
720
721
|
getRect: i,
|
|
@@ -727,7 +728,7 @@ function Cn(e) {
|
|
|
727
728
|
});
|
|
728
729
|
}
|
|
729
730
|
function b(e) {
|
|
730
|
-
return h.isOpen() ? e.key === "Escape" ? (h.close(), !0) :
|
|
731
|
+
return h.isOpen() ? e.key === "Escape" ? (h.close(), !0) : Cn.has(e.key) ? (h.close(), !1) : h.handleKeyDown(e) : !1;
|
|
731
732
|
}
|
|
732
733
|
return {
|
|
733
734
|
available: p,
|
|
@@ -739,12 +740,12 @@ function Cn(e) {
|
|
|
739
740
|
}
|
|
740
741
|
//#endregion
|
|
741
742
|
//#region src/composables/useMergeTagField.ts
|
|
742
|
-
function
|
|
743
|
-
let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } =
|
|
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 } = bt(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = ne(), v = d(!1), y = !1, b = !1;
|
|
744
745
|
r() && a(() => {
|
|
745
746
|
b = !0;
|
|
746
747
|
});
|
|
747
|
-
let x =
|
|
748
|
+
let x = wn({
|
|
748
749
|
elementRef: i,
|
|
749
750
|
modelValue: t,
|
|
750
751
|
emit: n,
|
|
@@ -866,10 +867,10 @@ function wn(e) {
|
|
|
866
867
|
}
|
|
867
868
|
//#endregion
|
|
868
869
|
//#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
|
|
869
|
-
var
|
|
870
|
+
var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip"], kn = {
|
|
870
871
|
key: 2,
|
|
871
872
|
class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
872
|
-
},
|
|
873
|
+
}, An = ["aria-label", "title"], jn = /* @__PURE__ */ f({
|
|
873
874
|
__name: "MergeTagSegments",
|
|
874
875
|
props: {
|
|
875
876
|
segments: {},
|
|
@@ -897,7 +898,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
897
898
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
|
|
898
899
|
color: "var(--tpl-primary)"
|
|
899
900
|
}
|
|
900
|
-
}, c(e.label), 9,
|
|
901
|
+
}, c(e.label), 9, Dn)) : e.type === "logicMergeTag" ? (s(), m("span", {
|
|
901
902
|
key: 1,
|
|
902
903
|
class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
903
904
|
"data-tooltip": e.value,
|
|
@@ -906,22 +907,22 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
906
907
|
border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
|
|
907
908
|
color: "var(--tpl-primary)"
|
|
908
909
|
}
|
|
909
|
-
}, c(e.keyword), 9,
|
|
910
|
+
}, c(e.keyword), 9, On)) : (s(), m("span", kn, c(e.value), 1))], 64))), 128)), p("button", {
|
|
910
911
|
type: "button",
|
|
911
912
|
class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all hover:tpl:text-[var(--tpl-danger)] hover:tpl:opacity-100",
|
|
912
913
|
"aria-label": b(a).mergeTag.remove,
|
|
913
914
|
title: b(a).mergeTag.remove,
|
|
914
915
|
onClick: l[0] ||= A((e) => i("clear"), ["stop"])
|
|
915
|
-
}, [g(b(
|
|
916
|
+
}, [g(b(_t), {
|
|
916
917
|
size: 12,
|
|
917
918
|
"stroke-width": 2.5
|
|
918
|
-
})], 8,
|
|
919
|
+
})], 8, An)], 42, En));
|
|
919
920
|
}
|
|
920
|
-
}),
|
|
921
|
+
}), Mn = [
|
|
921
922
|
"aria-label",
|
|
922
923
|
"title",
|
|
923
924
|
"disabled"
|
|
924
|
-
],
|
|
925
|
+
], Nn = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Pn = /* @__PURE__ */ f({
|
|
925
926
|
__name: "MergeTagInsertButton",
|
|
926
927
|
props: { disabled: { type: Boolean } },
|
|
927
928
|
emits: ["insert"],
|
|
@@ -929,22 +930,22 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
929
930
|
let { t } = U();
|
|
930
931
|
return (r, i) => (s(), m("button", {
|
|
931
932
|
type: "button",
|
|
932
|
-
class: n([
|
|
933
|
+
class: n([Nn, "tpl:mt-1.5"]),
|
|
933
934
|
"aria-label": b(t).mergeTag.insert,
|
|
934
935
|
title: b(t).mergeTag.insert,
|
|
935
936
|
disabled: e.disabled,
|
|
936
937
|
onMousedown: i[0] ||= A(() => {}, ["prevent"]),
|
|
937
938
|
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
938
|
-
}, [g(b(
|
|
939
|
+
}, [g(b(Qe), {
|
|
939
940
|
size: 12,
|
|
940
941
|
"stroke-width": 2
|
|
941
|
-
}), y(" " + c(b(t).mergeTag.insertShort), 1)], 42,
|
|
942
|
+
}), y(" " + c(b(t).mergeTag.insertShort), 1)], 42, Mn));
|
|
942
943
|
}
|
|
943
|
-
}),
|
|
944
|
+
}), Fn = [
|
|
944
945
|
"aria-label",
|
|
945
946
|
"title",
|
|
946
947
|
"disabled"
|
|
947
|
-
],
|
|
948
|
+
], In = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Ln = /* @__PURE__ */ f({
|
|
948
949
|
__name: "LogicTagInsertButton",
|
|
949
950
|
props: { disabled: { type: Boolean } },
|
|
950
951
|
emits: ["insert"],
|
|
@@ -952,29 +953,29 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
952
953
|
let { t } = U();
|
|
953
954
|
return (r, i) => (s(), m("button", {
|
|
954
955
|
type: "button",
|
|
955
|
-
class: n([
|
|
956
|
+
class: n([In, "tpl:mt-1.5"]),
|
|
956
957
|
"aria-label": b(t).logicTag.insert,
|
|
957
958
|
title: b(t).logicTag.insert,
|
|
958
959
|
disabled: e.disabled,
|
|
959
960
|
"data-testid": "field-insert-logic-button",
|
|
960
961
|
onMousedown: i[0] ||= A(() => {}, ["prevent"]),
|
|
961
962
|
onClick: i[1] ||= (e) => r.$emit("insert")
|
|
962
|
-
}, [g(b(
|
|
963
|
+
}, [g(b(Ze), {
|
|
963
964
|
size: 12,
|
|
964
965
|
"stroke-width": 2
|
|
965
|
-
}), y(" " + c(b(t).logicTag.insertShort), 1)], 42,
|
|
966
|
+
}), y(" " + c(b(t).logicTag.insertShort), 1)], 42, Fn));
|
|
966
967
|
}
|
|
967
|
-
}),
|
|
968
|
+
}), Rn = { key: 0 }, zn = {
|
|
968
969
|
key: 0,
|
|
969
970
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
970
|
-
},
|
|
971
|
+
}, Bn = { key: 1 }, Vn = [
|
|
971
972
|
"value",
|
|
972
973
|
"placeholder",
|
|
973
974
|
"rows"
|
|
974
|
-
],
|
|
975
|
+
], Hn = {
|
|
975
976
|
key: 0,
|
|
976
977
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
977
|
-
},
|
|
978
|
+
}, Un = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Wn = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", Gn = /* @__PURE__ */ f({
|
|
978
979
|
__name: "MergeTagTextarea",
|
|
979
980
|
props: {
|
|
980
981
|
modelValue: {},
|
|
@@ -983,32 +984,32 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
983
984
|
},
|
|
984
985
|
emits: ["update:modelValue"],
|
|
985
986
|
setup(e, { emit: t }) {
|
|
986
|
-
let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: y, handleInput: x, handleKeydown: S, handleClick: C, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } =
|
|
987
|
+
let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: y, handleInput: x, handleKeydown: S, handleClick: C, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = Tn({
|
|
987
988
|
modelValue: () => r.modelValue,
|
|
988
989
|
emit: (e) => i("update:modelValue", e),
|
|
989
990
|
elementRef: a
|
|
990
991
|
});
|
|
991
|
-
return (t, r) => b(c) && !b(_) ? (s(), m("div",
|
|
992
|
+
return (t, r) => b(c) && !b(_) ? (s(), m("div", Rn, [g(jn, {
|
|
992
993
|
segments: b(o),
|
|
993
|
-
"display-class":
|
|
994
|
+
"display-class": Wn,
|
|
994
995
|
onEdit: b(y),
|
|
995
996
|
onClear: b(E)
|
|
996
997
|
}, null, 8, [
|
|
997
998
|
"segments",
|
|
998
999
|
"onEdit",
|
|
999
1000
|
"onClear"
|
|
1000
|
-
]), b(l) || b(f) ? (s(), m("div",
|
|
1001
|
+
]), b(l) || b(f) ? (s(), m("div", zn, [b(l) ? (s(), v(Pn, {
|
|
1001
1002
|
key: 0,
|
|
1002
1003
|
disabled: b(u),
|
|
1003
1004
|
onInsert: b(D)
|
|
1004
|
-
}, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(
|
|
1005
|
+
}, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Ln, {
|
|
1005
1006
|
key: 1,
|
|
1006
1007
|
disabled: b(h),
|
|
1007
1008
|
onInsert: b(O)
|
|
1008
|
-
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div",
|
|
1009
|
+
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div", Bn, [p("textarea", {
|
|
1009
1010
|
ref_key: "textareaRef",
|
|
1010
1011
|
ref: a,
|
|
1011
|
-
class: n(
|
|
1012
|
+
class: n(Un),
|
|
1012
1013
|
value: e.modelValue,
|
|
1013
1014
|
placeholder: e.placeholder,
|
|
1014
1015
|
rows: e.rows,
|
|
@@ -1016,22 +1017,22 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1016
1017
|
onKeydown: r[1] ||= (...e) => b(S) && b(S)(...e),
|
|
1017
1018
|
onClick: r[2] ||= (...e) => b(C) && b(C)(...e),
|
|
1018
1019
|
onBlur: r[3] ||= (...e) => b(T) && b(T)(...e)
|
|
1019
|
-
}, null, 40,
|
|
1020
|
+
}, null, 40, Vn), b(l) || b(f) ? (s(), m("div", Hn, [b(l) ? (s(), v(Pn, {
|
|
1020
1021
|
key: 0,
|
|
1021
1022
|
disabled: b(u),
|
|
1022
1023
|
onInsert: b(D)
|
|
1023
|
-
}, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(
|
|
1024
|
+
}, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Ln, {
|
|
1024
1025
|
key: 1,
|
|
1025
1026
|
disabled: b(h),
|
|
1026
1027
|
onInsert: b(O)
|
|
1027
1028
|
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)]));
|
|
1028
1029
|
}
|
|
1029
|
-
}),
|
|
1030
|
+
}), Kn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, qn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, Jn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Yn = { class: "tpl:mb-3.5" }, Xn = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, Zn = ["onClick"], Qn = { class: "tpl:flex tpl:items-stretch" }, $n = ["value"], er = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, tr = { class: "tpl:mb-3.5" }, nr = { class: "tpl:mb-3.5" }, rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:mb-3.5" }, ar = ["value"], or = ["value"], sr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, cr = ["value"], lr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, ur = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, dr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, fr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, pr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, mr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, hr = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, gr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, _r = { class: "tpl:mb-1 tpl:last:mb-0" }, vr = { class: "tpl:mb-1 tpl:last:mb-0" }, yr = { class: "tpl:mb-1 tpl:last:mb-0" }, br = 150, xr = /* @__PURE__ */ f({
|
|
1030
1031
|
__name: "TemplateSettings",
|
|
1031
1032
|
props: { settings: {} },
|
|
1032
1033
|
emits: ["update"],
|
|
1033
1034
|
setup(r, { emit: i }) {
|
|
1034
|
-
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 = [
|
|
1035
1036
|
{
|
|
1036
1037
|
value: 480,
|
|
1037
1038
|
label: "480px"
|
|
@@ -1049,14 +1050,14 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1049
1050
|
label: "800px"
|
|
1050
1051
|
}
|
|
1051
1052
|
];
|
|
1052
|
-
return (i, a) => (s(), m("aside",
|
|
1053
|
+
return (i, a) => (s(), m("aside", Kn, [p("div", qn, [
|
|
1053
1054
|
p("div", { class: n(b(kt)) }, [
|
|
1054
|
-
p("div",
|
|
1055
|
+
p("div", Jn, [g(b(qt), {
|
|
1055
1056
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1056
1057
|
size: 14,
|
|
1057
1058
|
"stroke-width": 2
|
|
1058
1059
|
}), p("span", null, c(b(l).templateSettings.layout), 1)]),
|
|
1059
|
-
p("div",
|
|
1060
|
+
p("div", Yn, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.widthPreset), 3), p("div", Xn, [(s(), m(S, null, e(h, (e) => p("button", {
|
|
1060
1061
|
key: e.value,
|
|
1061
1062
|
class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
1062
1063
|
style: t({
|
|
@@ -1065,45 +1066,43 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1065
1066
|
boxShadow: r.settings.width === e.value ? "var(--tpl-shadow)" : "none"
|
|
1066
1067
|
}),
|
|
1067
1068
|
onClick: (t) => o("update", { width: e.value })
|
|
1068
|
-
}, c(e.label), 13,
|
|
1069
|
-
p("div", null, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.customWidth), 3), p("div",
|
|
1069
|
+
}, c(e.label), 13, Zn)), 64))])]),
|
|
1070
|
+
p("div", null, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.customWidth), 3), p("div", Qn, [p("input", {
|
|
1070
1071
|
type: "number",
|
|
1071
1072
|
class: n(b(J)),
|
|
1072
1073
|
value: r.settings.width,
|
|
1073
1074
|
min: "300",
|
|
1074
1075
|
max: "900",
|
|
1075
1076
|
onInput: a[0] ||= (e) => o("update", { width: Number(e.target.value) })
|
|
1076
|
-
}, null, 42,
|
|
1077
|
+
}, null, 42, $n), p("span", { class: n(b(q)) }, "px", 2)])])
|
|
1077
1078
|
], 2),
|
|
1078
1079
|
p("div", { class: n(b(kt)) }, [
|
|
1079
|
-
p("div",
|
|
1080
|
+
p("div", er, [g(b(Ft), {
|
|
1080
1081
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1081
1082
|
size: 14,
|
|
1082
1083
|
"stroke-width": 2
|
|
1083
1084
|
}), p("span", null, c(b(l).templateSettings.appearance), 1)]),
|
|
1084
|
-
p("div",
|
|
1085
|
+
p("div", tr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.backgroundColor), 3), g(Y, {
|
|
1085
1086
|
"model-value": r.settings.backgroundColor,
|
|
1086
1087
|
placeholder: b(Ot),
|
|
1087
1088
|
"onUpdate:modelValue": a[1] ||= (e) => o("update", { backgroundColor: e })
|
|
1088
1089
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
1089
|
-
p("div",
|
|
1090
|
+
p("div", nr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.textColor), 3), g(Y, {
|
|
1090
1091
|
"model-value": r.settings.textColor ?? "",
|
|
1091
1092
|
"seed-color": "#1a1a1a",
|
|
1092
1093
|
"onUpdate:modelValue": a[2] ||= (e) => o("update", { textColor: e })
|
|
1093
1094
|
}, null, 8, ["model-value"])]),
|
|
1094
|
-
p("div",
|
|
1095
|
+
p("div", rr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.linkColor), 3), g(Y, {
|
|
1095
1096
|
"model-value": r.settings.linkColor ?? "",
|
|
1096
1097
|
"seed-color": "#0066cc",
|
|
1097
1098
|
"onUpdate:modelValue": a[3] ||= (e) => o("update", { linkColor: e || void 0 })
|
|
1098
1099
|
}, null, 8, ["model-value"])]),
|
|
1099
|
-
p("div",
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
"
|
|
1104
|
-
|
|
1105
|
-
onClick: a[4] ||= (e) => o("update", { linkUnderline: !r.settings.linkUnderline })
|
|
1106
|
-
}, [p("span", { class: n(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", r.settings.linkUnderline ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, or)])]),
|
|
1100
|
+
p("div", ir, [g(X, {
|
|
1101
|
+
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1102
|
+
"model-value": r.settings.linkUnderline,
|
|
1103
|
+
label: b(l).templateSettings.linkUnderline,
|
|
1104
|
+
"onUpdate:modelValue": a[4] ||= (e) => o("update", { linkUnderline: e })
|
|
1105
|
+
}, null, 8, ["model-value", "label"])]),
|
|
1107
1106
|
p("div", null, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.fontFamily), 3), p("select", {
|
|
1108
1107
|
class: n(b(G)),
|
|
1109
1108
|
value: f.value,
|
|
@@ -1111,9 +1110,9 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1111
1110
|
}, [(s(!0), m(S, null, e(d.value, (e) => (s(), m("option", {
|
|
1112
1111
|
key: e.value,
|
|
1113
1112
|
value: e.value
|
|
1114
|
-
}, c(e.label), 9,
|
|
1113
|
+
}, c(e.label), 9, or))), 128))], 42, ar)])
|
|
1115
1114
|
], 2),
|
|
1116
|
-
p("div", { class: n(b(kt)) }, [p("div",
|
|
1115
|
+
p("div", { class: n(b(kt)) }, [p("div", sr, [g(b(It), {
|
|
1117
1116
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1118
1117
|
size: 14,
|
|
1119
1118
|
"stroke-width": 2
|
|
@@ -1128,40 +1127,40 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1128
1127
|
autocapitalize: "off",
|
|
1129
1128
|
autocomplete: "off",
|
|
1130
1129
|
onInput: a[6] ||= (e) => o("update", { locale: e.target.value.trim() || void 0 })
|
|
1131
|
-
}, null, 42,
|
|
1132
|
-
p("p",
|
|
1130
|
+
}, null, 42, cr),
|
|
1131
|
+
p("p", lr, c(b(l).templateSettings.contentLocaleHint), 1)
|
|
1133
1132
|
])], 2),
|
|
1134
|
-
p("div", { class: n(b(kt)) }, [p("div",
|
|
1133
|
+
p("div", { class: n(b(kt)) }, [p("div", ur, [g(b(at), {
|
|
1135
1134
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1136
1135
|
size: 14,
|
|
1137
1136
|
"stroke-width": 2
|
|
1138
|
-
}), p("span", null, c(b(l).templateSettings.preheaderText), 1)]), p("div", null, [g(
|
|
1137
|
+
}), p("span", null, c(b(l).templateSettings.preheaderText), 1)]), p("div", null, [g(Gn, {
|
|
1139
1138
|
"model-value": r.settings.preheaderText ?? "",
|
|
1140
1139
|
placeholder: b(l).templateSettings.preheaderTextPlaceholder,
|
|
1141
1140
|
rows: 2,
|
|
1142
1141
|
"onUpdate:modelValue": a[7] ||= (e) => o("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
|
|
1143
|
-
}, null, 8, ["model-value", "placeholder"]), p("div",
|
|
1144
|
-
p("div",
|
|
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(ct), {
|
|
1145
1144
|
size: 14,
|
|
1146
1145
|
"stroke-width": 2
|
|
1147
|
-
}), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul",
|
|
1148
|
-
p("li",
|
|
1149
|
-
p("li",
|
|
1150
|
-
p("li",
|
|
1146
|
+
}), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul", gr, [
|
|
1147
|
+
p("li", _r, c(b(l).templateSettings.tip1), 1),
|
|
1148
|
+
p("li", vr, c(b(l).templateSettings.tip2), 1),
|
|
1149
|
+
p("li", yr, c(b(l).templateSettings.tip3), 1)
|
|
1151
1150
|
])])
|
|
1152
1151
|
])]));
|
|
1153
1152
|
}
|
|
1154
|
-
}),
|
|
1153
|
+
}), Sr = { key: 0 }, Cr = {
|
|
1155
1154
|
key: 0,
|
|
1156
1155
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1157
|
-
},
|
|
1156
|
+
}, wr = { key: 1 }, Tr = [
|
|
1158
1157
|
"type",
|
|
1159
1158
|
"value",
|
|
1160
1159
|
"placeholder"
|
|
1161
|
-
],
|
|
1160
|
+
], Er = {
|
|
1162
1161
|
key: 0,
|
|
1163
1162
|
class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
|
|
1164
|
-
},
|
|
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({
|
|
1165
1164
|
__name: "MergeTagInput",
|
|
1166
1165
|
props: {
|
|
1167
1166
|
modelValue: {},
|
|
@@ -1174,14 +1173,14 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1174
1173
|
},
|
|
1175
1174
|
emits: ["update:modelValue"],
|
|
1176
1175
|
setup(e, { emit: t }) {
|
|
1177
|
-
let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: y, handleInput: x, handleKeydown: S, handleClick: C, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } =
|
|
1176
|
+
let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: y, handleInput: x, handleKeydown: S, handleClick: C, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = Tn({
|
|
1178
1177
|
modelValue: () => r.modelValue,
|
|
1179
1178
|
emit: (e) => i("update:modelValue", e),
|
|
1180
1179
|
elementRef: a
|
|
1181
1180
|
});
|
|
1182
|
-
return (t, r) => b(c) && !b(_) ? (s(), m("div",
|
|
1181
|
+
return (t, r) => b(c) && !b(_) ? (s(), m("div", Sr, [g(jn, {
|
|
1183
1182
|
segments: b(o),
|
|
1184
|
-
"display-class":
|
|
1183
|
+
"display-class": Dr,
|
|
1185
1184
|
pulse: e.pulse,
|
|
1186
1185
|
onEdit: b(y),
|
|
1187
1186
|
onClear: b(E)
|
|
@@ -1190,15 +1189,15 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1190
1189
|
"pulse",
|
|
1191
1190
|
"onEdit",
|
|
1192
1191
|
"onClear"
|
|
1193
|
-
]), b(l) || b(f) ? (s(), m("div",
|
|
1192
|
+
]), b(l) || b(f) ? (s(), m("div", Cr, [b(l) ? (s(), v(Pn, {
|
|
1194
1193
|
key: 0,
|
|
1195
1194
|
disabled: b(u),
|
|
1196
1195
|
onInsert: b(D)
|
|
1197
|
-
}, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(
|
|
1196
|
+
}, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Ln, {
|
|
1198
1197
|
key: 1,
|
|
1199
1198
|
disabled: b(h),
|
|
1200
1199
|
onInsert: b(O)
|
|
1201
|
-
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div",
|
|
1200
|
+
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div", wr, [p("input", {
|
|
1202
1201
|
ref_key: "inputRef",
|
|
1203
1202
|
ref: a,
|
|
1204
1203
|
type: e.type,
|
|
@@ -1209,23 +1208,20 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1209
1208
|
onKeydown: r[1] ||= (...e) => b(S) && b(S)(...e),
|
|
1210
1209
|
onClick: r[2] ||= (...e) => b(C) && b(C)(...e),
|
|
1211
1210
|
onBlur: r[3] ||= (...e) => b(T) && b(T)(...e)
|
|
1212
|
-
}, null, 42,
|
|
1211
|
+
}, null, 42, Tr), b(l) || b(f) ? (s(), m("div", Er, [b(l) ? (s(), v(Pn, {
|
|
1213
1212
|
key: 0,
|
|
1214
1213
|
disabled: b(u),
|
|
1215
1214
|
onInsert: b(D)
|
|
1216
|
-
}, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(
|
|
1215
|
+
}, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Ln, {
|
|
1217
1216
|
key: 1,
|
|
1218
1217
|
disabled: b(h),
|
|
1219
1218
|
onInsert: b(O)
|
|
1220
1219
|
}, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)]));
|
|
1221
1220
|
}
|
|
1222
|
-
}), [["__scopeId", "data-v-d6563be6"]]),
|
|
1223
|
-
key: 0,
|
|
1224
|
-
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
1225
|
-
}, Lr = ["checked"], Rr = { class: "tpl:mb-3.5" }, zr = { class: "tpl:mb-3.5" }, Br = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Vr = { class: "tpl:mb-3.5" }, Hr = { class: "tpl:flex tpl:items-stretch" }, Ur = ["value"], Wr = { class: "tpl:mb-3.5" }, Gr = { class: "tpl:flex tpl:items-stretch" }, Kr = ["value"], qr = { class: "tpl:mb-3.5" }, Jr = ["value"], Yr = { value: "auto" }, Xr = { value: "full" }, Zr = { value: "custom" }, Qr = {
|
|
1221
|
+
}), [["__scopeId", "data-v-d6563be6"]]), Or = { class: "tpl:mb-3.5" }, kr = ["value"], Ar = { value: "" }, jr = ["value"], Mr = { class: "tpl:mb-3.5" }, Nr = { class: "tpl:mb-3.5" }, Pr = { class: "tpl:mb-3.5" }, Fr = { class: "tpl:mb-3.5" }, Ir = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Lr = { class: "tpl:mb-3.5" }, Rr = { class: "tpl:flex tpl:items-stretch" }, zr = ["value"], Br = { class: "tpl:mb-3.5" }, Vr = { class: "tpl:flex tpl:items-stretch" }, Hr = ["value"], Ur = { class: "tpl:mb-3.5" }, Wr = ["value"], Gr = { value: "auto" }, Kr = { value: "full" }, qr = { value: "custom" }, Jr = {
|
|
1226
1222
|
key: 0,
|
|
1227
1223
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
1228
|
-
},
|
|
1224
|
+
}, Yr = ["value"], Xr = 200, Zr = /* @__PURE__ */ f({
|
|
1229
1225
|
__name: "ButtonToolbar",
|
|
1230
1226
|
props: {
|
|
1231
1227
|
block: {},
|
|
@@ -1243,7 +1239,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1243
1239
|
return;
|
|
1244
1240
|
}
|
|
1245
1241
|
if (e === "custom") {
|
|
1246
|
-
u("width", typeof i.block.width == "number" ? i.block.width :
|
|
1242
|
+
u("width", typeof i.block.width == "number" ? i.block.width : Xr);
|
|
1247
1243
|
return;
|
|
1248
1244
|
}
|
|
1249
1245
|
u("width", void 0);
|
|
@@ -1253,20 +1249,20 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1253
1249
|
!Number.isFinite(t) || t <= 0 || u("width", t);
|
|
1254
1250
|
}
|
|
1255
1251
|
return (r, i) => (s(), m(S, null, [
|
|
1256
|
-
p("div",
|
|
1252
|
+
p("div", Or, [p("label", { class: n(b(K)) }, c(b(o).button.fontFamily), 3), p("select", {
|
|
1257
1253
|
class: n(b(G)),
|
|
1258
1254
|
value: t.block.fontFamily || "",
|
|
1259
1255
|
onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
1260
|
-
}, [p("option",
|
|
1256
|
+
}, [p("option", Ar, c(b(o).button.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
1261
1257
|
key: e.value,
|
|
1262
1258
|
value: e.value
|
|
1263
|
-
}, c(e.label), 9,
|
|
1264
|
-
p("div",
|
|
1259
|
+
}, c(e.label), 9, jr))), 128))], 42, kr)]),
|
|
1260
|
+
p("div", Mr, [p("label", { class: n(b(K)) }, c(b(o).button.text), 3), g($, {
|
|
1265
1261
|
"model-value": t.block.text,
|
|
1266
1262
|
type: "text",
|
|
1267
1263
|
"onUpdate:modelValue": i[1] ||= (e) => u("text", e)
|
|
1268
1264
|
}, null, 8, ["model-value"])]),
|
|
1269
|
-
p("div",
|
|
1265
|
+
p("div", Nr, [
|
|
1270
1266
|
p("label", { class: n(b(K)) }, c(b(o).button.url), 3),
|
|
1271
1267
|
g($, {
|
|
1272
1268
|
"model-value": t.block.url,
|
|
@@ -1274,58 +1270,59 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1274
1270
|
placeholder: b(o).button.urlPlaceholder,
|
|
1275
1271
|
"onUpdate:modelValue": i[2] ||= (e) => u("url", e)
|
|
1276
1272
|
}, null, 8, ["model-value", "placeholder"]),
|
|
1277
|
-
t.block.url ? (s(),
|
|
1278
|
-
|
|
1279
|
-
class: "tpl:
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1273
|
+
t.block.url ? (s(), v(X, {
|
|
1274
|
+
key: 0,
|
|
1275
|
+
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
1276
|
+
"model-value": t.block.openInNewTab ?? !1,
|
|
1277
|
+
label: b(o).button.openInNewTab,
|
|
1278
|
+
"onUpdate:modelValue": i[3] ||= (e) => u("openInNewTab", e)
|
|
1279
|
+
}, null, 8, ["model-value", "label"])) : w("", !0)
|
|
1283
1280
|
]),
|
|
1284
|
-
p("div",
|
|
1281
|
+
p("div", Pr, [p("label", { class: n(b(K)) }, c(b(o).button.background), 3), g(Y, {
|
|
1285
1282
|
"model-value": t.block.backgroundColor,
|
|
1286
1283
|
"onUpdate:modelValue": i[4] ||= (e) => u("backgroundColor", e)
|
|
1287
1284
|
}, null, 8, ["model-value"])]),
|
|
1288
|
-
p("div",
|
|
1285
|
+
p("div", Fr, [p("label", { class: n(b(K)) }, c(b(o).button.textColor), 3), g(Y, {
|
|
1289
1286
|
"model-value": t.block.textColor,
|
|
1290
1287
|
"onUpdate:modelValue": i[5] ||= (e) => u("textColor", e)
|
|
1291
1288
|
}, null, 8, ["model-value"])]),
|
|
1292
|
-
p("div",
|
|
1289
|
+
p("div", Ir, [p("div", Lr, [p("label", { class: n(b(K)) }, c(b(o).button.borderRadius), 3), p("div", Rr, [p("input", {
|
|
1293
1290
|
type: "number",
|
|
1294
1291
|
class: n(b(J)),
|
|
1295
1292
|
value: t.block.borderRadius,
|
|
1296
1293
|
min: "0",
|
|
1297
1294
|
max: "50",
|
|
1298
1295
|
onInput: i[6] ||= (e) => u("borderRadius", Number(e.target.value))
|
|
1299
|
-
}, null, 42,
|
|
1296
|
+
}, null, 42, zr), p("span", { class: n(b(q)) }, "px", 2)])]), p("div", Br, [p("label", { class: n(b(K)) }, c(b(o).button.fontSize), 3), p("div", Vr, [p("input", {
|
|
1300
1297
|
type: "number",
|
|
1301
1298
|
class: n(b(J)),
|
|
1302
1299
|
value: t.block.fontSize,
|
|
1303
1300
|
min: "10",
|
|
1304
1301
|
max: "36",
|
|
1305
1302
|
onInput: i[7] ||= (e) => u("fontSize", Number(e.target.value))
|
|
1306
|
-
}, null, 42,
|
|
1307
|
-
p("div",
|
|
1303
|
+
}, null, 42, Hr), p("span", { class: n(b(q)) }, "px", 2)])])]),
|
|
1304
|
+
p("div", Ur, [
|
|
1308
1305
|
p("label", { class: n(b(K)) }, c(b(o).button.width), 3),
|
|
1309
1306
|
p("select", {
|
|
1310
1307
|
class: n(b(G)),
|
|
1311
1308
|
value: l.value,
|
|
1312
1309
|
onChange: i[8] ||= (e) => d(e.target.value)
|
|
1313
1310
|
}, [
|
|
1314
|
-
p("option",
|
|
1315
|
-
p("option",
|
|
1316
|
-
p("option",
|
|
1317
|
-
], 42,
|
|
1318
|
-
l.value === "custom" ? (s(), m("div",
|
|
1311
|
+
p("option", Gr, c(b(o).button.widthAuto), 1),
|
|
1312
|
+
p("option", Kr, c(b(o).button.fullWidth), 1),
|
|
1313
|
+
p("option", qr, c(b(o).button.widthCustom), 1)
|
|
1314
|
+
], 42, Wr),
|
|
1315
|
+
l.value === "custom" ? (s(), m("div", Jr, [p("input", {
|
|
1319
1316
|
type: "number",
|
|
1320
1317
|
class: n(b(J)),
|
|
1321
|
-
value: typeof t.block.width == "number" ? t.block.width :
|
|
1318
|
+
value: typeof t.block.width == "number" ? t.block.width : Xr,
|
|
1322
1319
|
min: "20",
|
|
1323
1320
|
onInput: i[9] ||= (e) => f(e.target.value)
|
|
1324
|
-
}, null, 42,
|
|
1321
|
+
}, null, 42, Yr), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
|
|
1325
1322
|
])
|
|
1326
1323
|
], 64));
|
|
1327
1324
|
}
|
|
1328
|
-
}),
|
|
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({
|
|
1329
1326
|
__name: "SpacingControl",
|
|
1330
1327
|
props: {
|
|
1331
1328
|
modelValue: {},
|
|
@@ -1372,130 +1369,130 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1372
1369
|
});
|
|
1373
1370
|
}
|
|
1374
1371
|
}
|
|
1375
|
-
return (t, r) => (s(), m("div",
|
|
1376
|
-
p("div",
|
|
1372
|
+
return (t, r) => (s(), m("div", Qr, [p("label", $r, c(e.label), 1), p("div", ei, [
|
|
1373
|
+
p("div", ti, [
|
|
1377
1374
|
p("button", {
|
|
1378
1375
|
"aria-label": b(o).spacingControl.decreaseTop,
|
|
1379
|
-
class: n([
|
|
1376
|
+
class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1380
1377
|
onClick: r[0] ||= (e) => f("top", -1)
|
|
1381
|
-
}, [g(b(
|
|
1378
|
+
}, [g(b(tt), {
|
|
1382
1379
|
size: 12,
|
|
1383
1380
|
"stroke-width": 2
|
|
1384
|
-
})], 10,
|
|
1381
|
+
})], 10, ni),
|
|
1385
1382
|
p("input", {
|
|
1386
1383
|
type: "number",
|
|
1387
|
-
class: n(
|
|
1384
|
+
class: n(bi),
|
|
1388
1385
|
value: e.modelValue.top,
|
|
1389
1386
|
"aria-label": b(o).spacingControl.top,
|
|
1390
1387
|
min: "0",
|
|
1391
1388
|
onInput: r[1] ||= (e) => h("top", Number(e.target.value))
|
|
1392
|
-
}, null, 40,
|
|
1389
|
+
}, null, 40, ri),
|
|
1393
1390
|
p("button", {
|
|
1394
1391
|
"aria-label": b(o).spacingControl.increaseTop,
|
|
1395
|
-
class: n([
|
|
1392
|
+
class: n([yi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1396
1393
|
onClick: r[2] ||= (e) => f("top", 1)
|
|
1397
1394
|
}, [g(b(Q), {
|
|
1398
1395
|
size: 12,
|
|
1399
1396
|
"stroke-width": 2
|
|
1400
|
-
})], 10,
|
|
1397
|
+
})], 10, ii)
|
|
1401
1398
|
]),
|
|
1402
|
-
p("div",
|
|
1403
|
-
p("div",
|
|
1399
|
+
p("div", ai, [
|
|
1400
|
+
p("div", oi, [
|
|
1404
1401
|
p("button", {
|
|
1405
1402
|
"aria-label": b(o).spacingControl.decreaseLeft,
|
|
1406
|
-
class: n([
|
|
1403
|
+
class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1407
1404
|
onClick: r[3] ||= (e) => f("left", -1)
|
|
1408
|
-
}, [g(b(
|
|
1405
|
+
}, [g(b(tt), {
|
|
1409
1406
|
size: 12,
|
|
1410
1407
|
"stroke-width": 2
|
|
1411
|
-
})], 10,
|
|
1408
|
+
})], 10, si),
|
|
1412
1409
|
p("input", {
|
|
1413
1410
|
type: "number",
|
|
1414
|
-
class: n(
|
|
1411
|
+
class: n(bi),
|
|
1415
1412
|
value: e.modelValue.left,
|
|
1416
1413
|
"aria-label": b(o).spacingControl.left,
|
|
1417
1414
|
min: "0",
|
|
1418
1415
|
onInput: r[4] ||= (e) => h("left", Number(e.target.value))
|
|
1419
|
-
}, null, 40,
|
|
1416
|
+
}, null, 40, ci),
|
|
1420
1417
|
p("button", {
|
|
1421
1418
|
"aria-label": b(o).spacingControl.increaseLeft,
|
|
1422
|
-
class: n([
|
|
1419
|
+
class: n([yi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1423
1420
|
onClick: r[5] ||= (e) => f("left", 1)
|
|
1424
1421
|
}, [g(b(Q), {
|
|
1425
1422
|
size: 12,
|
|
1426
1423
|
"stroke-width": 2
|
|
1427
|
-
})], 10,
|
|
1424
|
+
})], 10, li)
|
|
1428
1425
|
]),
|
|
1429
1426
|
p("button", {
|
|
1430
1427
|
class: n(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", u.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
|
|
1431
1428
|
"aria-label": u.value ? b(o).spacingControl.unlock : b(o).spacingControl.lockAll,
|
|
1432
1429
|
title: u.value ? b(o).spacingControl.unlock : b(o).spacingControl.lockAll,
|
|
1433
1430
|
onClick: _
|
|
1434
|
-
}, [u.value ? (s(), v(b(
|
|
1431
|
+
}, [u.value ? (s(), v(b(zt), {
|
|
1435
1432
|
key: 0,
|
|
1436
1433
|
size: 14,
|
|
1437
1434
|
"stroke-width": 2
|
|
1438
|
-
})) : (s(), v(b(
|
|
1435
|
+
})) : (s(), v(b(Rt), {
|
|
1439
1436
|
key: 1,
|
|
1440
1437
|
size: 14,
|
|
1441
1438
|
"stroke-width": 2
|
|
1442
|
-
}))], 10,
|
|
1443
|
-
p("div",
|
|
1439
|
+
}))], 10, ui),
|
|
1440
|
+
p("div", di, [
|
|
1444
1441
|
p("button", {
|
|
1445
1442
|
"aria-label": b(o).spacingControl.decreaseRight,
|
|
1446
|
-
class: n([
|
|
1443
|
+
class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1447
1444
|
onClick: r[6] ||= (e) => f("right", -1)
|
|
1448
|
-
}, [g(b(
|
|
1445
|
+
}, [g(b(tt), {
|
|
1449
1446
|
size: 12,
|
|
1450
1447
|
"stroke-width": 2
|
|
1451
|
-
})], 10,
|
|
1448
|
+
})], 10, fi),
|
|
1452
1449
|
p("input", {
|
|
1453
1450
|
type: "number",
|
|
1454
|
-
class: n(
|
|
1451
|
+
class: n(bi),
|
|
1455
1452
|
value: e.modelValue.right,
|
|
1456
1453
|
"aria-label": b(o).spacingControl.right,
|
|
1457
1454
|
min: "0",
|
|
1458
1455
|
onInput: r[7] ||= (e) => h("right", Number(e.target.value))
|
|
1459
|
-
}, null, 40,
|
|
1456
|
+
}, null, 40, pi),
|
|
1460
1457
|
p("button", {
|
|
1461
1458
|
"aria-label": b(o).spacingControl.increaseRight,
|
|
1462
|
-
class: n([
|
|
1459
|
+
class: n([yi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1463
1460
|
onClick: r[8] ||= (e) => f("right", 1)
|
|
1464
1461
|
}, [g(b(Q), {
|
|
1465
1462
|
size: 12,
|
|
1466
1463
|
"stroke-width": 2
|
|
1467
|
-
})], 10,
|
|
1464
|
+
})], 10, mi)
|
|
1468
1465
|
])
|
|
1469
1466
|
]),
|
|
1470
|
-
p("div",
|
|
1467
|
+
p("div", hi, [
|
|
1471
1468
|
p("button", {
|
|
1472
1469
|
"aria-label": b(o).spacingControl.decreaseBottom,
|
|
1473
|
-
class: n([
|
|
1470
|
+
class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
|
|
1474
1471
|
onClick: r[9] ||= (e) => f("bottom", -1)
|
|
1475
|
-
}, [g(b(
|
|
1472
|
+
}, [g(b(tt), {
|
|
1476
1473
|
size: 12,
|
|
1477
1474
|
"stroke-width": 2
|
|
1478
|
-
})], 10,
|
|
1475
|
+
})], 10, gi),
|
|
1479
1476
|
p("input", {
|
|
1480
1477
|
type: "number",
|
|
1481
|
-
class: n(
|
|
1478
|
+
class: n(bi),
|
|
1482
1479
|
value: e.modelValue.bottom,
|
|
1483
1480
|
"aria-label": b(o).spacingControl.bottom,
|
|
1484
1481
|
min: "0",
|
|
1485
1482
|
onInput: r[10] ||= (e) => h("bottom", Number(e.target.value))
|
|
1486
|
-
}, null, 40,
|
|
1483
|
+
}, null, 40, _i),
|
|
1487
1484
|
p("button", {
|
|
1488
1485
|
"aria-label": b(o).spacingControl.increaseBottom,
|
|
1489
|
-
class: n([
|
|
1486
|
+
class: n([yi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
|
|
1490
1487
|
onClick: r[11] ||= (e) => f("bottom", 1)
|
|
1491
1488
|
}, [g(b(Q), {
|
|
1492
1489
|
size: 12,
|
|
1493
1490
|
"stroke-width": 2
|
|
1494
|
-
})], 10,
|
|
1491
|
+
})], 10, vi)
|
|
1495
1492
|
])
|
|
1496
1493
|
])]));
|
|
1497
1494
|
}
|
|
1498
|
-
}), [["__scopeId", "data-v-9a9c8a07"]]),
|
|
1495
|
+
}), [["__scopeId", "data-v-9a9c8a07"]]), Si = { class: "tpl:mt-3" }, Ci = /* @__PURE__ */ f({
|
|
1499
1496
|
__name: "CollapsibleSection",
|
|
1500
1497
|
props: {
|
|
1501
1498
|
title: {},
|
|
@@ -1508,25 +1505,25 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1508
1505
|
type: "button",
|
|
1509
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)]",
|
|
1510
1507
|
onClick: r[0] ||= (e) => t.$emit("toggle")
|
|
1511
|
-
}, [g(b(
|
|
1508
|
+
}, [g(b($e), {
|
|
1512
1509
|
class: n(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
1513
1510
|
size: 12,
|
|
1514
1511
|
"stroke-width": 2
|
|
1515
|
-
}, null, 8, ["class"]), p("span", null, c(e.title), 1)]), O(p("div",
|
|
1512
|
+
}, null, 8, ["class"]), p("span", null, c(e.title), 1)]), O(p("div", Si, [_(t.$slots, "default")], 512), [[j, e.open]])], 2));
|
|
1516
1513
|
}
|
|
1517
|
-
}),
|
|
1514
|
+
}), wi = { class: "tpl:space-y-2" }, Ti = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ei = { class: "tpl:space-y-2" }, Di = ["value"], Oi = { value: "" }, ki = ["label"], Ai = ["value"], ji = ["value"], Mi = {
|
|
1518
1515
|
key: 0,
|
|
1519
1516
|
value: "__custom__"
|
|
1520
|
-
},
|
|
1517
|
+
}, Ni = {
|
|
1521
1518
|
key: 0,
|
|
1522
1519
|
class: "tpl:space-y-2"
|
|
1523
|
-
},
|
|
1520
|
+
}, Pi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Fi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ii = { class: "tpl:flex tpl:justify-end" }, Li = ["disabled"], Ri = {
|
|
1524
1521
|
key: 0,
|
|
1525
1522
|
class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
|
|
1526
|
-
},
|
|
1523
|
+
}, zi = { class: "tpl:space-y-1" }, Bi = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Vi = {
|
|
1527
1524
|
key: 0,
|
|
1528
1525
|
class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
|
|
1529
|
-
},
|
|
1526
|
+
}, Hi = /* @__PURE__ */ f({
|
|
1530
1527
|
__name: "CommonBlockSettings",
|
|
1531
1528
|
props: {
|
|
1532
1529
|
block: {},
|
|
@@ -1534,13 +1531,13 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1534
1531
|
},
|
|
1535
1532
|
emits: ["update"],
|
|
1536
1533
|
setup(t, { emit: r }) {
|
|
1537
|
-
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 = [{
|
|
1538
1535
|
key: "desktop",
|
|
1539
|
-
icon:
|
|
1536
|
+
icon: Bt,
|
|
1540
1537
|
labelKey: "showOnDesktop"
|
|
1541
1538
|
}, {
|
|
1542
1539
|
key: "mobile",
|
|
1543
|
-
icon:
|
|
1540
|
+
icon: Gt,
|
|
1544
1541
|
labelKey: "showOnMobile"
|
|
1545
1542
|
}];
|
|
1546
1543
|
function N(e) {
|
|
@@ -1589,13 +1586,13 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1589
1586
|
t[e] = !t[e], u("update", { visibility: t });
|
|
1590
1587
|
}
|
|
1591
1588
|
return (r, i) => (s(), m("div", { class: n(["tpl:flex tpl:flex-col", t.isFirstSection ? "" : "tpl:mt-4"]) }, [
|
|
1592
|
-
g(
|
|
1589
|
+
g(Ci, {
|
|
1593
1590
|
title: b(f).blockSettings.spacing,
|
|
1594
1591
|
open: T.has("spacing"),
|
|
1595
1592
|
"no-border": t.isFirstSection,
|
|
1596
1593
|
onToggle: i[1] ||= (e) => N("spacing")
|
|
1597
1594
|
}, {
|
|
1598
|
-
default: l(() => [g(
|
|
1595
|
+
default: l(() => [g(xi, {
|
|
1599
1596
|
label: b(f).blockSettings.padding,
|
|
1600
1597
|
"model-value": t.block.styles.padding,
|
|
1601
1598
|
"onUpdate:modelValue": i[0] ||= (e) => z("padding", e)
|
|
@@ -1606,7 +1603,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1606
1603
|
"open",
|
|
1607
1604
|
"no-border"
|
|
1608
1605
|
]),
|
|
1609
|
-
g(
|
|
1606
|
+
g(Ci, {
|
|
1610
1607
|
title: b(f).blockSettings.background,
|
|
1611
1608
|
open: T.has("bg"),
|
|
1612
1609
|
onToggle: i[3] ||= (e) => N("bg")
|
|
@@ -1617,36 +1614,37 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1617
1614
|
}, null, 8, ["model-value"])]),
|
|
1618
1615
|
_: 1
|
|
1619
1616
|
}, 8, ["title", "open"]),
|
|
1620
|
-
g(
|
|
1617
|
+
g(Ci, {
|
|
1621
1618
|
title: b(f).blockSettings.display,
|
|
1622
1619
|
open: T.has("display"),
|
|
1623
1620
|
onToggle: i[4] ||= (e) => N("display")
|
|
1624
1621
|
}, {
|
|
1625
|
-
default: l(() => [p("div",
|
|
1622
|
+
default: l(() => [p("div", wi, [(s(), m(S, null, e(M, (e) => g(X, {
|
|
1626
1623
|
key: e.key,
|
|
1627
|
-
class: "tpl:
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
onChange: (t) => V(e.key)
|
|
1634
|
-
}, null, 40, ki),
|
|
1635
|
-
(s(), v(o(e.icon), {
|
|
1624
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
1625
|
+
"model-value": B(e.key),
|
|
1626
|
+
label: b(f).blockSettings[e.labelKey],
|
|
1627
|
+
"onUpdate:modelValue": (t) => V(e.key)
|
|
1628
|
+
}, {
|
|
1629
|
+
default: l(() => [p("span", Ti, [(s(), v(o(e.icon), {
|
|
1636
1630
|
size: 14,
|
|
1637
1631
|
"stroke-width": 1.5
|
|
1638
|
-
})),
|
|
1639
|
-
|
|
1632
|
+
})), y(" " + c(b(f).blockSettings[e.labelKey]), 1)])]),
|
|
1633
|
+
_: 2
|
|
1634
|
+
}, 1032, [
|
|
1635
|
+
"model-value",
|
|
1636
|
+
"label",
|
|
1637
|
+
"onUpdate:modelValue"
|
|
1640
1638
|
])), 64))])]),
|
|
1641
1639
|
_: 1
|
|
1642
1640
|
}, 8, ["title", "open"]),
|
|
1643
|
-
P.value ? (s(), v(
|
|
1641
|
+
P.value ? (s(), v(Ci, {
|
|
1644
1642
|
key: 0,
|
|
1645
1643
|
title: b(f).blockSettings.displayCondition,
|
|
1646
1644
|
open: T.has("condition"),
|
|
1647
1645
|
onToggle: i[8] ||= (e) => N("condition")
|
|
1648
1646
|
}, {
|
|
1649
|
-
default: l(() => [p("div",
|
|
1647
|
+
default: l(() => [p("div", Ei, [p("select", {
|
|
1650
1648
|
class: n(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", t.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
|
|
1651
1649
|
value: D.value || F.value ? "__custom__" : t.block.displayCondition?.label ?? "",
|
|
1652
1650
|
onChange: i[5] ||= (e) => {
|
|
@@ -1663,48 +1661,41 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1663
1661
|
n && u("update", { displayCondition: n });
|
|
1664
1662
|
}
|
|
1665
1663
|
}, [
|
|
1666
|
-
p("option",
|
|
1664
|
+
p("option", Oi, c(b(f).blockSettings.noCondition), 1),
|
|
1667
1665
|
(s(!0), m(S, null, e(R.value, (t, n) => (s(), m(S, { key: n }, [n ? (s(), m("optgroup", {
|
|
1668
1666
|
key: 0,
|
|
1669
1667
|
label: String(n)
|
|
1670
1668
|
}, [(s(!0), m(S, null, e(t, (e) => (s(), m("option", {
|
|
1671
1669
|
key: e.label,
|
|
1672
1670
|
value: e.label
|
|
1673
|
-
}, c(e.label), 9,
|
|
1671
|
+
}, c(e.label), 9, Ai))), 128))], 8, ki)) : (s(!0), m(S, { key: 1 }, e(t, (e) => (s(), m("option", {
|
|
1674
1672
|
key: e.label,
|
|
1675
1673
|
value: e.label
|
|
1676
|
-
}, c(e.label), 9,
|
|
1677
|
-
b(_) ? (s(), m("option",
|
|
1678
|
-
], 42,
|
|
1679
|
-
p("div", null, [p("label",
|
|
1674
|
+
}, c(e.label), 9, ji))), 128))], 64))), 128)),
|
|
1675
|
+
b(_) ? (s(), m("option", Mi, c(b(f).blockSettings.customCondition), 1)) : w("", !0)
|
|
1676
|
+
], 42, Di), D.value || F.value ? (s(), m("div", Ni, [
|
|
1677
|
+
p("div", null, [p("label", Pi, c(b(f).blockSettings.customConditionBefore), 1), O(p("textarea", {
|
|
1680
1678
|
"onUpdate:modelValue": i[6] ||= (e) => A.value = e,
|
|
1681
1679
|
rows: "2",
|
|
1682
1680
|
class: n(b(Tt))
|
|
1683
1681
|
}, null, 2), [[k, A.value]])]),
|
|
1684
|
-
p("div", null, [p("label",
|
|
1682
|
+
p("div", null, [p("label", Fi, c(b(f).blockSettings.customConditionAfter), 1), O(p("textarea", {
|
|
1685
1683
|
"onUpdate:modelValue": i[7] ||= (e) => j.value = e,
|
|
1686
1684
|
rows: "2",
|
|
1687
1685
|
class: n(b(Tt))
|
|
1688
1686
|
}, null, 2), [[k, j.value]])]),
|
|
1689
|
-
p("div",
|
|
1687
|
+
p("div", Ii, [p("button", {
|
|
1690
1688
|
type: "button",
|
|
1691
1689
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:opacity-50",
|
|
1692
1690
|
disabled: !A.value.trim(),
|
|
1693
1691
|
onClick: L
|
|
1694
|
-
}, c(b(f).blockSettings.applyCondition), 9,
|
|
1695
|
-
])) : t.block.displayCondition && !F.value ? (s(), m(S, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p",
|
|
1692
|
+
}, c(b(f).blockSettings.applyCondition), 9, Li)])
|
|
1693
|
+
])) : t.block.displayCondition && !F.value ? (s(), m(S, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p", Ri, c(t.block.displayCondition.description), 1)) : w("", !0), p("div", zi, [p("pre", Bi, c(t.block.displayCondition.before), 1), t.block.displayCondition.after ? (s(), m("pre", Vi, c(t.block.displayCondition.after), 1)) : w("", !0)])], 64)) : w("", !0)])]),
|
|
1696
1694
|
_: 1
|
|
1697
1695
|
}, 8, ["title", "open"])) : w("", !0)
|
|
1698
1696
|
], 2));
|
|
1699
1697
|
}
|
|
1700
|
-
}),
|
|
1701
|
-
key: 1,
|
|
1702
|
-
class: "tpl:text-[var(--tpl-danger)]"
|
|
1703
|
-
}, Xi = [
|
|
1704
|
-
"aria-checked",
|
|
1705
|
-
"aria-label",
|
|
1706
|
-
"disabled"
|
|
1707
|
-
], Zi = /* @__PURE__ */ f({
|
|
1698
|
+
}), Ui = ["title"], Wi = /* @__PURE__ */ f({
|
|
1708
1699
|
__name: "BooleanField",
|
|
1709
1700
|
props: {
|
|
1710
1701
|
field: {},
|
|
@@ -1713,36 +1704,35 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1713
1704
|
},
|
|
1714
1705
|
emits: ["update:modelValue"],
|
|
1715
1706
|
setup(e, { emit: t }) {
|
|
1716
|
-
let
|
|
1717
|
-
return (t,
|
|
1707
|
+
let n = t, { t: r } = U();
|
|
1708
|
+
return (t, i) => (s(), m("div", {
|
|
1718
1709
|
class: "tpl:mb-3.5",
|
|
1719
|
-
title: e.readOnly ? b(
|
|
1720
|
-
}, [
|
|
1721
|
-
|
|
1722
|
-
e.
|
|
1710
|
+
title: e.readOnly ? b(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
1711
|
+
}, [g(X, {
|
|
1712
|
+
class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
1713
|
+
"model-value": e.modelValue,
|
|
1714
|
+
label: e.field.label,
|
|
1715
|
+
required: e.field.required,
|
|
1716
|
+
disabled: e.readOnly,
|
|
1717
|
+
"onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
|
|
1718
|
+
}, {
|
|
1719
|
+
default: l(() => [y(c(e.field.label) + " ", 1), e.readOnly ? (s(), v(b(zt), {
|
|
1723
1720
|
key: 0,
|
|
1724
1721
|
size: 12,
|
|
1725
1722
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1726
|
-
})) : w("", !0),
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
"
|
|
1732
|
-
"
|
|
1733
|
-
|
|
1734
|
-
"tpl:relative tpl:inline-flex tpl:h-5 tpl:w-9 tpl:shrink-0 tpl:rounded-full tpl:border-2 tpl:border-transparent tpl:transition-colors tpl:duration-200",
|
|
1735
|
-
e.modelValue ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]",
|
|
1736
|
-
e.readOnly ? "tpl:opacity-60 tpl:cursor-not-allowed" : "tpl:cursor-pointer"
|
|
1737
|
-
]),
|
|
1738
|
-
disabled: e.readOnly,
|
|
1739
|
-
onClick: a[0] ||= (t) => !e.readOnly && r("update:modelValue", !e.modelValue)
|
|
1740
|
-
}, [p("span", { class: n(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, Xi)], 2)], 8, qi));
|
|
1723
|
+
})) : w("", !0)]),
|
|
1724
|
+
_: 1
|
|
1725
|
+
}, 8, [
|
|
1726
|
+
"model-value",
|
|
1727
|
+
"label",
|
|
1728
|
+
"required",
|
|
1729
|
+
"disabled"
|
|
1730
|
+
])], 8, Ui));
|
|
1741
1731
|
}
|
|
1742
|
-
}),
|
|
1732
|
+
}), Gi = { class: "tpl:mb-3.5" }, Ki = {
|
|
1743
1733
|
key: 1,
|
|
1744
1734
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1745
|
-
},
|
|
1735
|
+
}, qi = /* @__PURE__ */ f({
|
|
1746
1736
|
__name: "FieldWrapper",
|
|
1747
1737
|
props: {
|
|
1748
1738
|
label: {},
|
|
@@ -1750,17 +1740,17 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1750
1740
|
readOnly: { type: Boolean }
|
|
1751
1741
|
},
|
|
1752
1742
|
setup(e) {
|
|
1753
|
-
return (t, r) => (s(), m("div",
|
|
1743
|
+
return (t, r) => (s(), m("div", Gi, [p("label", { class: n(b(K)) }, [
|
|
1754
1744
|
y(c(e.label) + " ", 1),
|
|
1755
|
-
e.readOnly ? (s(), v(b(
|
|
1745
|
+
e.readOnly ? (s(), v(b(zt), {
|
|
1756
1746
|
key: 0,
|
|
1757
1747
|
size: 12,
|
|
1758
1748
|
class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
|
|
1759
1749
|
})) : w("", !0),
|
|
1760
|
-
e.required ? (s(), m("span",
|
|
1750
|
+
e.required ? (s(), m("span", Ki, "*")) : w("", !0)
|
|
1761
1751
|
], 2), _(t.$slots, "default")]));
|
|
1762
1752
|
}
|
|
1763
|
-
}),
|
|
1753
|
+
}), Ji = /* @__PURE__ */ f({
|
|
1764
1754
|
__name: "ColorField",
|
|
1765
1755
|
props: {
|
|
1766
1756
|
field: {},
|
|
@@ -1770,7 +1760,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1770
1760
|
emits: ["update:modelValue"],
|
|
1771
1761
|
setup(e, { emit: t }) {
|
|
1772
1762
|
let n = t, { t: r } = U();
|
|
1773
|
-
return (t, i) => (s(), v(
|
|
1763
|
+
return (t, i) => (s(), v(qi, {
|
|
1774
1764
|
label: e.field.label,
|
|
1775
1765
|
required: e.field.required,
|
|
1776
1766
|
"read-only": e.readOnly
|
|
@@ -1794,15 +1784,15 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1794
1784
|
"read-only"
|
|
1795
1785
|
]));
|
|
1796
1786
|
}
|
|
1797
|
-
}),
|
|
1787
|
+
}), Yi = {
|
|
1798
1788
|
key: 0,
|
|
1799
1789
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
1800
1790
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
1801
|
-
},
|
|
1791
|
+
}, Xi = [
|
|
1802
1792
|
"value",
|
|
1803
1793
|
"placeholder",
|
|
1804
1794
|
"title"
|
|
1805
|
-
],
|
|
1795
|
+
], Zi = ["value", "placeholder"], Qi = /* @__PURE__ */ f({
|
|
1806
1796
|
__name: "ImageField",
|
|
1807
1797
|
props: {
|
|
1808
1798
|
field: {},
|
|
@@ -1811,7 +1801,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1811
1801
|
},
|
|
1812
1802
|
emits: ["update:modelValue"],
|
|
1813
1803
|
setup(e, { emit: t }) {
|
|
1814
|
-
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);
|
|
1815
1805
|
async function h() {
|
|
1816
1806
|
let e = await o?.({ accept: ["images"] });
|
|
1817
1807
|
u.alive && e && i("update:modelValue", e.url);
|
|
@@ -1837,7 +1827,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1837
1827
|
enabled: T,
|
|
1838
1828
|
onFiles: D
|
|
1839
1829
|
});
|
|
1840
|
-
return (t, r) => (s(), v(
|
|
1830
|
+
return (t, r) => (s(), v(qi, {
|
|
1841
1831
|
label: e.field.label,
|
|
1842
1832
|
required: e.field.required,
|
|
1843
1833
|
"read-only": e.readOnly
|
|
@@ -1847,11 +1837,11 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1847
1837
|
ref: _,
|
|
1848
1838
|
class: "tpl:relative"
|
|
1849
1839
|
}, [
|
|
1850
|
-
T.value && (b(O) || x.value) ? (s(), m("div",
|
|
1840
|
+
T.value && (b(O) || x.value) ? (s(), m("div", Yi, [x.value ? (s(), m(S, { key: 0 }, [g(b(ut), {
|
|
1851
1841
|
class: "tpl-spinner",
|
|
1852
1842
|
size: 18,
|
|
1853
1843
|
"stroke-width": 2
|
|
1854
|
-
}), 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), {
|
|
1855
1845
|
size: 18,
|
|
1856
1846
|
"stroke-width": 1.5
|
|
1857
1847
|
}), y(" " + c(b(a).image.dropToUpload), 1)], 64))])) : w("", !0),
|
|
@@ -1863,14 +1853,14 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1863
1853
|
placeholder: e.field.placeholder || "https://...",
|
|
1864
1854
|
disabled: "",
|
|
1865
1855
|
title: b(a).customBlocks.dataSource.readOnlyTooltip
|
|
1866
|
-
}, null, 10,
|
|
1856
|
+
}, null, 10, Xi)) : (s(), m("input", {
|
|
1867
1857
|
key: 2,
|
|
1868
1858
|
type: "url",
|
|
1869
1859
|
class: n(b(G)),
|
|
1870
1860
|
value: e.modelValue,
|
|
1871
1861
|
placeholder: e.field.placeholder || "https://...",
|
|
1872
1862
|
onInput: r[0] ||= (e) => i("update:modelValue", e.target.value)
|
|
1873
|
-
}, null, 42,
|
|
1863
|
+
}, null, 42, Zi)),
|
|
1874
1864
|
f.value && !e.readOnly ? (s(), m("button", {
|
|
1875
1865
|
key: 3,
|
|
1876
1866
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
@@ -1887,7 +1877,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1887
1877
|
"read-only"
|
|
1888
1878
|
]));
|
|
1889
1879
|
}
|
|
1890
|
-
}),
|
|
1880
|
+
}), $i = [
|
|
1891
1881
|
"value",
|
|
1892
1882
|
"placeholder",
|
|
1893
1883
|
"min",
|
|
@@ -1895,7 +1885,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1895
1885
|
"step",
|
|
1896
1886
|
"disabled",
|
|
1897
1887
|
"title"
|
|
1898
|
-
],
|
|
1888
|
+
], ea = /* @__PURE__ */ f({
|
|
1899
1889
|
__name: "NumberField",
|
|
1900
1890
|
props: {
|
|
1901
1891
|
field: {},
|
|
@@ -1905,7 +1895,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1905
1895
|
emits: ["update:modelValue"],
|
|
1906
1896
|
setup(e, { emit: t }) {
|
|
1907
1897
|
let r = t, { t: i } = U();
|
|
1908
|
-
return (t, a) => (s(), v(
|
|
1898
|
+
return (t, a) => (s(), v(qi, {
|
|
1909
1899
|
label: e.field.label,
|
|
1910
1900
|
required: e.field.required,
|
|
1911
1901
|
"read-only": e.readOnly
|
|
@@ -1921,7 +1911,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1921
1911
|
disabled: e.readOnly,
|
|
1922
1912
|
title: e.readOnly ? b(i).customBlocks.dataSource.readOnlyTooltip : void 0,
|
|
1923
1913
|
onInput: a[0] ||= (t) => !e.readOnly && r("update:modelValue", Number(t.target.value))
|
|
1924
|
-
}, null, 42,
|
|
1914
|
+
}, null, 42, $i)]),
|
|
1925
1915
|
_: 1
|
|
1926
1916
|
}, 8, [
|
|
1927
1917
|
"label",
|
|
@@ -1929,10 +1919,10 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1929
1919
|
"read-only"
|
|
1930
1920
|
]));
|
|
1931
1921
|
}
|
|
1932
|
-
}),
|
|
1922
|
+
}), ta = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, na = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ra = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, ia = ["title", "onClick"], aa = {
|
|
1933
1923
|
key: 1,
|
|
1934
1924
|
class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
1935
|
-
},
|
|
1925
|
+
}, oa = /* @__PURE__ */ f({
|
|
1936
1926
|
__name: "RepeatableField",
|
|
1937
1927
|
props: {
|
|
1938
1928
|
field: {},
|
|
@@ -1960,25 +1950,25 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1960
1950
|
} : r);
|
|
1961
1951
|
a("update:modelValue", r);
|
|
1962
1952
|
}
|
|
1963
|
-
return (r, i) => (s(), v(
|
|
1953
|
+
return (r, i) => (s(), v(qi, {
|
|
1964
1954
|
label: t.field.label,
|
|
1965
1955
|
required: t.field.required,
|
|
1966
1956
|
"read-only": t.readOnly
|
|
1967
1957
|
}, {
|
|
1968
|
-
default: l(() => [p("div",
|
|
1958
|
+
default: l(() => [p("div", ta, [
|
|
1969
1959
|
(s(!0), m(S, null, e(d.value, (n, r) => (s(), m("div", {
|
|
1970
1960
|
key: `${t.field.key}-${r}`,
|
|
1971
1961
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
|
|
1972
|
-
}, [p("div",
|
|
1962
|
+
}, [p("div", na, [p("span", ra, " #" + c(r + 1), 1), h.value && !t.readOnly ? (s(), m("button", {
|
|
1973
1963
|
key: 0,
|
|
1974
1964
|
type: "button",
|
|
1975
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)]",
|
|
1976
1966
|
title: b(u).customBlocks.fields.removeItem,
|
|
1977
1967
|
onClick: (e) => x(r)
|
|
1978
|
-
}, [g(b(
|
|
1968
|
+
}, [g(b(ht), {
|
|
1979
1969
|
size: 12,
|
|
1980
1970
|
"stroke-width": 2
|
|
1981
|
-
})], 8,
|
|
1971
|
+
})], 8, ia)) : w("", !0)]), (s(!0), m(S, null, e(t.field.fields, (e) => (s(), v(o(b(ha)(e.type)), {
|
|
1982
1972
|
key: e.key,
|
|
1983
1973
|
field: e,
|
|
1984
1974
|
"model-value": n[e.key],
|
|
@@ -1999,7 +1989,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
1999
1989
|
size: 14,
|
|
2000
1990
|
"stroke-width": 2
|
|
2001
1991
|
}), y(" " + c(b(u).customBlocks.fields.addItem), 1)], 2)) : w("", !0),
|
|
2002
|
-
!f.value && !t.readOnly ? (s(), m("p",
|
|
1992
|
+
!f.value && !t.readOnly ? (s(), m("p", aa, c(b(u).customBlocks.fields.maxItemsReached), 1)) : w("", !0)
|
|
2003
1993
|
])]),
|
|
2004
1994
|
_: 1
|
|
2005
1995
|
}, 8, [
|
|
@@ -2008,11 +1998,11 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2008
1998
|
"read-only"
|
|
2009
1999
|
]));
|
|
2010
2000
|
}
|
|
2011
|
-
}),
|
|
2001
|
+
}), sa = [
|
|
2012
2002
|
"value",
|
|
2013
2003
|
"disabled",
|
|
2014
2004
|
"title"
|
|
2015
|
-
],
|
|
2005
|
+
], ca = ["value"], la = /* @__PURE__ */ f({
|
|
2016
2006
|
__name: "SelectField",
|
|
2017
2007
|
props: {
|
|
2018
2008
|
field: {},
|
|
@@ -2022,7 +2012,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2022
2012
|
emits: ["update:modelValue"],
|
|
2023
2013
|
setup(t, { emit: r }) {
|
|
2024
2014
|
let i = r, { t: a } = U();
|
|
2025
|
-
return (r, o) => (s(), v(
|
|
2015
|
+
return (r, o) => (s(), v(qi, {
|
|
2026
2016
|
label: t.field.label,
|
|
2027
2017
|
required: t.field.required,
|
|
2028
2018
|
"read-only": t.readOnly
|
|
@@ -2036,7 +2026,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2036
2026
|
}, [(s(!0), m(S, null, e(t.field.options, (e) => (s(), m("option", {
|
|
2037
2027
|
key: e.value,
|
|
2038
2028
|
value: e.value
|
|
2039
|
-
}, c(e.label), 9,
|
|
2029
|
+
}, c(e.label), 9, ca))), 128))], 42, sa)]),
|
|
2040
2030
|
_: 1
|
|
2041
2031
|
}, 8, [
|
|
2042
2032
|
"label",
|
|
@@ -2044,11 +2034,11 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2044
2034
|
"read-only"
|
|
2045
2035
|
]));
|
|
2046
2036
|
}
|
|
2047
|
-
}),
|
|
2037
|
+
}), ua = [
|
|
2048
2038
|
"value",
|
|
2049
2039
|
"placeholder",
|
|
2050
2040
|
"title"
|
|
2051
|
-
],
|
|
2041
|
+
], da = /* @__PURE__ */ f({
|
|
2052
2042
|
__name: "TextField",
|
|
2053
2043
|
props: {
|
|
2054
2044
|
field: {},
|
|
@@ -2058,7 +2048,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2058
2048
|
emits: ["update:modelValue"],
|
|
2059
2049
|
setup(e, { emit: t }) {
|
|
2060
2050
|
let r = t, { t: i } = U();
|
|
2061
|
-
return (t, a) => (s(), v(
|
|
2051
|
+
return (t, a) => (s(), v(qi, {
|
|
2062
2052
|
label: e.field.label,
|
|
2063
2053
|
required: e.field.required,
|
|
2064
2054
|
"read-only": e.readOnly
|
|
@@ -2071,7 +2061,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2071
2061
|
placeholder: e.field.placeholder,
|
|
2072
2062
|
disabled: "",
|
|
2073
2063
|
title: b(i).customBlocks.dataSource.readOnlyTooltip
|
|
2074
|
-
}, null, 10,
|
|
2064
|
+
}, null, 10, ua)) : (s(), v($, {
|
|
2075
2065
|
key: 1,
|
|
2076
2066
|
"model-value": e.modelValue,
|
|
2077
2067
|
placeholder: e.field.placeholder,
|
|
@@ -2084,12 +2074,12 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2084
2074
|
"read-only"
|
|
2085
2075
|
]));
|
|
2086
2076
|
}
|
|
2087
|
-
}),
|
|
2077
|
+
}), fa = [
|
|
2088
2078
|
"value",
|
|
2089
2079
|
"placeholder",
|
|
2090
2080
|
"title"
|
|
2091
|
-
],
|
|
2092
|
-
text:
|
|
2081
|
+
], pa = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", ma = {
|
|
2082
|
+
text: da,
|
|
2093
2083
|
textarea: /* @__PURE__ */ f({
|
|
2094
2084
|
__name: "TextareaField",
|
|
2095
2085
|
props: {
|
|
@@ -2100,7 +2090,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2100
2090
|
emits: ["update:modelValue"],
|
|
2101
2091
|
setup(e, { emit: t }) {
|
|
2102
2092
|
let r = t, { t: i } = U();
|
|
2103
|
-
return (t, a) => (s(), v(
|
|
2093
|
+
return (t, a) => (s(), v(qi, {
|
|
2104
2094
|
label: e.field.label,
|
|
2105
2095
|
required: e.field.required,
|
|
2106
2096
|
"read-only": e.readOnly
|
|
@@ -2112,8 +2102,8 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2112
2102
|
rows: "3",
|
|
2113
2103
|
disabled: "",
|
|
2114
2104
|
title: b(i).customBlocks.dataSource.readOnlyTooltip,
|
|
2115
|
-
class: n(
|
|
2116
|
-
}, null, 8,
|
|
2105
|
+
class: n(pa)
|
|
2106
|
+
}, null, 8, fa)) : (s(), v(Gn, {
|
|
2117
2107
|
key: 1,
|
|
2118
2108
|
"model-value": e.modelValue,
|
|
2119
2109
|
placeholder: e.field.placeholder,
|
|
@@ -2127,42 +2117,42 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
|
|
|
2127
2117
|
]));
|
|
2128
2118
|
}
|
|
2129
2119
|
}),
|
|
2130
|
-
image:
|
|
2131
|
-
color:
|
|
2132
|
-
number:
|
|
2133
|
-
select:
|
|
2134
|
-
boolean:
|
|
2135
|
-
repeatable:
|
|
2120
|
+
image: Qi,
|
|
2121
|
+
color: Ji,
|
|
2122
|
+
number: ea,
|
|
2123
|
+
select: la,
|
|
2124
|
+
boolean: Wi,
|
|
2125
|
+
repeatable: oa
|
|
2136
2126
|
};
|
|
2137
|
-
function
|
|
2138
|
-
return
|
|
2127
|
+
function ha(e) {
|
|
2128
|
+
return ma[e] ?? da;
|
|
2139
2129
|
}
|
|
2140
2130
|
//#endregion
|
|
2141
2131
|
//#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2142
|
-
var
|
|
2132
|
+
var ga = {
|
|
2143
2133
|
key: 0,
|
|
2144
2134
|
class: "tpl:p-4"
|
|
2145
|
-
},
|
|
2135
|
+
}, _a = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, va = { key: 1 }, ya = {
|
|
2146
2136
|
key: 0,
|
|
2147
2137
|
class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
2148
|
-
},
|
|
2138
|
+
}, ba = {
|
|
2149
2139
|
key: 1,
|
|
2150
2140
|
class: "tpl:mb-4"
|
|
2151
|
-
},
|
|
2141
|
+
}, xa = {
|
|
2152
2142
|
key: 1,
|
|
2153
2143
|
class: "tpl:flex tpl:h-[32px] tpl:items-center"
|
|
2154
|
-
},
|
|
2144
|
+
}, Sa = {
|
|
2155
2145
|
key: 0,
|
|
2156
2146
|
class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
2157
|
-
},
|
|
2147
|
+
}, Ca = {
|
|
2158
2148
|
key: 2,
|
|
2159
2149
|
class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
2160
|
-
},
|
|
2150
|
+
}, wa = /* @__PURE__ */ f({
|
|
2161
2151
|
__name: "CustomBlockToolbar",
|
|
2162
2152
|
props: { block: {} },
|
|
2163
2153
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2164
2154
|
setup(t, { emit: n }) {
|
|
2165
|
-
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({
|
|
2166
2156
|
definition: u,
|
|
2167
2157
|
block: C(() => r.block),
|
|
2168
2158
|
onUpdate: (e, t) => {
|
|
@@ -2178,23 +2168,23 @@ var Ca = {
|
|
|
2178
2168
|
[e]: t
|
|
2179
2169
|
});
|
|
2180
2170
|
}
|
|
2181
|
-
return (n, r) => u.value ? (s(), m("div",
|
|
2182
|
-
u.value.description ? (s(), m("p",
|
|
2183
|
-
b(_) ? (s(), m("div",
|
|
2171
|
+
return (n, r) => u.value ? (s(), m("div", va, [
|
|
2172
|
+
u.value.description ? (s(), m("p", ya, c(u.value.description), 1)) : w("", !0),
|
|
2173
|
+
b(_) ? (s(), m("div", ba, [b(x) && !b(d) ? (s(), m("button", {
|
|
2184
2174
|
key: 0,
|
|
2185
2175
|
type: "button",
|
|
2186
2176
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-md tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:bg-[var(--tpl-primary)]",
|
|
2187
2177
|
onClick: r[0] ||= (...e) => b(h) && b(h)(...e)
|
|
2188
|
-
}, c(u.value?.dataSource?.label || b(a).customBlocks.dataSource.fetchButton), 1)) : (s(), m("div",
|
|
2178
|
+
}, c(u.value?.dataSource?.label || b(a).customBlocks.dataSource.fetchButton), 1)) : (s(), m("div", xa, [b(d) ? (s(), m("div", Sa, c(b(a).customBlocks.dataSource.fetching), 1)) : (s(), m("button", {
|
|
2189
2179
|
key: 1,
|
|
2190
2180
|
type: "button",
|
|
2191
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)]",
|
|
2192
2182
|
onClick: r[1] ||= (...e) => b(h) && b(h)(...e)
|
|
2193
|
-
}, [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), {
|
|
2194
2184
|
size: 14,
|
|
2195
2185
|
class: "tpl:shrink-0"
|
|
2196
2186
|
}), y(" " + c(b(a).customBlocks.dataSource.fetchError), 1)])) : w("", !0)])) : w("", !0),
|
|
2197
|
-
(s(!0), m(S, null, e(u.value.fields, (e) => (s(), v(o(b(
|
|
2187
|
+
(s(!0), m(S, null, e(u.value.fields, (e) => (s(), v(o(b(ha)(e.type)), {
|
|
2198
2188
|
key: e.key,
|
|
2199
2189
|
field: e,
|
|
2200
2190
|
"model-value": t.block.fieldValues[e.key],
|
|
@@ -2206,9 +2196,9 @@ var Ca = {
|
|
|
2206
2196
|
"read-only",
|
|
2207
2197
|
"onUpdate:modelValue"
|
|
2208
2198
|
]))), 128))
|
|
2209
|
-
])) : (s(), m("div",
|
|
2199
|
+
])) : (s(), m("div", ga, [p("p", _a, c(b(a).customBlocks.toolbar.noDefinition), 1)]));
|
|
2210
2200
|
}
|
|
2211
|
-
}),
|
|
2201
|
+
}), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:mb-3.5" }, Da = { class: "tpl:mb-3.5" }, Oa = { class: "tpl:flex tpl:items-stretch" }, ka = ["value"], Aa = /* @__PURE__ */ f({
|
|
2212
2202
|
__name: "DividerToolbar",
|
|
2213
2203
|
props: { block: {} },
|
|
2214
2204
|
emits: ["update"],
|
|
@@ -2218,7 +2208,7 @@ var Ca = {
|
|
|
2218
2208
|
r("update", { [e]: t });
|
|
2219
2209
|
}
|
|
2220
2210
|
return (t, r) => (s(), m(S, null, [
|
|
2221
|
-
p("div",
|
|
2211
|
+
p("div", Ta, [p("label", { class: n(b(K)) }, c(b(i).divider.style), 3), g(Mt, {
|
|
2222
2212
|
options: [
|
|
2223
2213
|
{
|
|
2224
2214
|
value: "solid",
|
|
@@ -2236,27 +2226,27 @@ var Ca = {
|
|
|
2236
2226
|
"model-value": e.block.lineStyle,
|
|
2237
2227
|
"onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
|
|
2238
2228
|
}, null, 8, ["options", "model-value"])]),
|
|
2239
|
-
p("div",
|
|
2229
|
+
p("div", Ea, [p("label", { class: n(b(K)) }, c(b(i).divider.color), 3), g(Y, {
|
|
2240
2230
|
"model-value": e.block.color,
|
|
2241
2231
|
"onUpdate:modelValue": r[1] ||= (e) => a("color", e)
|
|
2242
2232
|
}, null, 8, ["model-value"])]),
|
|
2243
|
-
p("div",
|
|
2233
|
+
p("div", Da, [p("label", { class: n(b(K)) }, c(b(i).divider.thickness), 3), p("div", Oa, [p("input", {
|
|
2244
2234
|
type: "number",
|
|
2245
2235
|
class: n(b(J)),
|
|
2246
2236
|
value: e.block.thickness,
|
|
2247
2237
|
min: "1",
|
|
2248
2238
|
max: "10",
|
|
2249
2239
|
onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
|
|
2250
|
-
}, null, 42,
|
|
2240
|
+
}, null, 42, ka), p("span", { class: n(b(q)) }, "px", 2)])])
|
|
2251
2241
|
], 64));
|
|
2252
2242
|
}
|
|
2253
|
-
}),
|
|
2243
|
+
}), ja = { class: "tpl:mb-3.5" }, Ma = ["value"], Na = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Pa = /* @__PURE__ */ f({
|
|
2254
2244
|
__name: "HtmlToolbar",
|
|
2255
2245
|
props: { block: {} },
|
|
2256
2246
|
emits: ["update"],
|
|
2257
2247
|
setup(e, { emit: t }) {
|
|
2258
2248
|
let r = t, { t: i } = U();
|
|
2259
|
-
return (t, a) => (s(), m("div",
|
|
2249
|
+
return (t, a) => (s(), m("div", ja, [
|
|
2260
2250
|
p("label", { class: n(b(K)) }, c(b(i).html.content), 3),
|
|
2261
2251
|
p("textarea", {
|
|
2262
2252
|
value: e.block.content,
|
|
@@ -2264,92 +2254,89 @@ var Ca = {
|
|
|
2264
2254
|
rows: "10",
|
|
2265
2255
|
class: n(b(Tt)),
|
|
2266
2256
|
onInput: a[0] ||= (e) => r("update", { content: e.target.value })
|
|
2267
|
-
}, null, 42,
|
|
2268
|
-
p("p",
|
|
2257
|
+
}, null, 42, Ma),
|
|
2258
|
+
p("p", Na, [g(b(ct), {
|
|
2269
2259
|
size: 12,
|
|
2270
2260
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
2271
2261
|
}), y(" " + c(b(i).html.sanitizationHint), 1)])
|
|
2272
2262
|
]));
|
|
2273
2263
|
}
|
|
2274
|
-
}),
|
|
2264
|
+
}), Fa = { class: "tpl:mb-3.5" }, Ia = {
|
|
2275
2265
|
key: 0,
|
|
2276
2266
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
|
|
2277
2267
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
|
|
2278
|
-
},
|
|
2268
|
+
}, La = {
|
|
2279
2269
|
key: 0,
|
|
2280
2270
|
class: "tpl:mb-3.5"
|
|
2281
|
-
},
|
|
2271
|
+
}, Ra = ["value", "placeholder"], za = { class: "tpl:mb-3.5" }, Ba = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Va = { class: "tpl:mb-3.5" }, Ha = ["value"], Ua = { value: "full" }, Wa = { value: "custom" }, Ga = {
|
|
2282
2272
|
key: 0,
|
|
2283
2273
|
class: "tpl:mt-2 tpl:flex tpl:items-stretch"
|
|
2284
|
-
},
|
|
2285
|
-
key: 0,
|
|
2286
|
-
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
2287
|
-
}, ao = ["checked"], oo = 350, so = /* @__PURE__ */ f({
|
|
2274
|
+
}, Ka = ["value"], qa = { class: "tpl:mb-3.5" }, Ja = { class: "tpl:mb-3.5" }, Ya = 350, Xa = /* @__PURE__ */ f({
|
|
2288
2275
|
__name: "ImageToolbar",
|
|
2289
2276
|
props: { block: {} },
|
|
2290
2277
|
emits: ["update"],
|
|
2291
2278
|
setup(e, { emit: t }) {
|
|
2292
|
-
let r = e, i = t, { t: a } = U(), o = E(
|
|
2293
|
-
|
|
2294
|
-
}, 1e3, { immediate: !1 }),
|
|
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
|
+
_.value = !1;
|
|
2281
|
+
}, 1e3, { immediate: !1 }), D = [
|
|
2295
2282
|
300,
|
|
2296
2283
|
400,
|
|
2297
2284
|
500
|
|
2298
|
-
],
|
|
2285
|
+
], O = C(() => {
|
|
2299
2286
|
let e = r.block.width;
|
|
2300
|
-
return e === "full" ? "full" :
|
|
2287
|
+
return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
|
|
2301
2288
|
});
|
|
2302
|
-
function
|
|
2289
|
+
function k(e, t) {
|
|
2303
2290
|
i("update", { [e]: t });
|
|
2304
2291
|
}
|
|
2305
|
-
function
|
|
2292
|
+
function A(e) {
|
|
2306
2293
|
if (e === "custom") {
|
|
2307
2294
|
let e = r.block.width;
|
|
2308
|
-
(typeof e != "number" ||
|
|
2295
|
+
(typeof e != "number" || D.includes(e)) && k("width", Ya);
|
|
2309
2296
|
return;
|
|
2310
2297
|
}
|
|
2311
|
-
|
|
2298
|
+
k("width", e === "full" ? "full" : Number(e));
|
|
2312
2299
|
}
|
|
2313
|
-
function
|
|
2300
|
+
function j(e) {
|
|
2314
2301
|
let t = Number(e);
|
|
2315
|
-
!Number.isFinite(t) || t <= 0 ||
|
|
2302
|
+
!Number.isFinite(t) || t <= 0 || k("width", t);
|
|
2316
2303
|
}
|
|
2317
|
-
async function
|
|
2304
|
+
async function M() {
|
|
2318
2305
|
let e = await o?.({ accept: ["images"] });
|
|
2319
|
-
|
|
2306
|
+
f.alive && e && (k("src", e.url), e.alt && (k("alt", e.alt), x.value = !0), _.value = !0, T());
|
|
2320
2307
|
}
|
|
2321
|
-
let
|
|
2322
|
-
async function
|
|
2308
|
+
let N = d(), P = d(!1), F = C(() => z(r.block.src, u)), I = C(() => h.value && !P.value && !F.value);
|
|
2309
|
+
async function L(e) {
|
|
2323
2310
|
if (o) {
|
|
2324
|
-
|
|
2311
|
+
P.value = !0;
|
|
2325
2312
|
try {
|
|
2326
2313
|
let t = await o({
|
|
2327
2314
|
accept: ["images"],
|
|
2328
2315
|
files: e
|
|
2329
2316
|
});
|
|
2330
|
-
if (!
|
|
2331
|
-
t && (
|
|
2317
|
+
if (!f.alive) return;
|
|
2318
|
+
t && (k("src", t.url), t.alt && (k("alt", t.alt), x.value = !0), _.value = !0, T());
|
|
2332
2319
|
} finally {
|
|
2333
|
-
|
|
2320
|
+
f.alive && (P.value = !1);
|
|
2334
2321
|
}
|
|
2335
2322
|
}
|
|
2336
2323
|
}
|
|
2337
|
-
let { isOver:
|
|
2338
|
-
target:
|
|
2339
|
-
enabled:
|
|
2340
|
-
onFiles:
|
|
2324
|
+
let { isOver: R } = me({
|
|
2325
|
+
target: N,
|
|
2326
|
+
enabled: I,
|
|
2327
|
+
onFiles: L
|
|
2341
2328
|
});
|
|
2342
2329
|
return (t, r) => (s(), m(S, null, [
|
|
2343
|
-
p("div",
|
|
2330
|
+
p("div", Fa, [p("label", { class: n(b(K)) }, c(b(a).image.imageUrl), 3), p("div", {
|
|
2344
2331
|
ref_key: "dropZoneRef",
|
|
2345
|
-
ref:
|
|
2332
|
+
ref: N,
|
|
2346
2333
|
class: "tpl:relative"
|
|
2347
2334
|
}, [
|
|
2348
|
-
|
|
2335
|
+
I.value && (b(R) || P.value) ? (s(), m("div", Ia, [P.value ? (s(), m(S, { key: 0 }, [g(b(ut), {
|
|
2349
2336
|
class: "tpl-spinner",
|
|
2350
2337
|
size: 18,
|
|
2351
2338
|
"stroke-width": 2
|
|
2352
|
-
}), 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), {
|
|
2353
2340
|
size: 18,
|
|
2354
2341
|
"stroke-width": 1.5
|
|
2355
2342
|
}), y(" " + c(b(a).image.dropToUpload), 1)], 64))])) : w("", !0),
|
|
@@ -2357,14 +2344,14 @@ var Ca = {
|
|
|
2357
2344
|
"model-value": e.block.src,
|
|
2358
2345
|
type: "url",
|
|
2359
2346
|
placeholder: b(a).image.imageUrlPlaceholder,
|
|
2360
|
-
pulse:
|
|
2361
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
2347
|
+
pulse: _.value,
|
|
2348
|
+
"onUpdate:modelValue": r[0] ||= (e) => k("src", e)
|
|
2362
2349
|
}, null, 8, [
|
|
2363
2350
|
"model-value",
|
|
2364
2351
|
"placeholder",
|
|
2365
2352
|
"pulse"
|
|
2366
2353
|
]),
|
|
2367
|
-
|
|
2354
|
+
h.value ? (s(), m("button", {
|
|
2368
2355
|
key: 1,
|
|
2369
2356
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
2370
2357
|
style: {
|
|
@@ -2372,63 +2359,66 @@ var Ca = {
|
|
|
2372
2359
|
color: "var(--tpl-primary)",
|
|
2373
2360
|
"background-color": "var(--tpl-bg)"
|
|
2374
2361
|
},
|
|
2375
|
-
onClick:
|
|
2362
|
+
onClick: M
|
|
2376
2363
|
}, [g(b(ae), {
|
|
2377
2364
|
size: 14,
|
|
2378
2365
|
"stroke-width": 1.5
|
|
2379
2366
|
}), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
|
|
2380
2367
|
], 512)]),
|
|
2381
|
-
b(z)(e.block.src, b(
|
|
2368
|
+
b(z)(e.block.src, b(u)) ? (s(), m("div", La, [p("label", { class: n(b(K)) }, [y(c(b(a).image.placeholderUrl) + " ", 1), r[9] ||= p("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, c("(optional)"), -1)], 2), p("input", {
|
|
2382
2369
|
type: "url",
|
|
2383
2370
|
class: n(b(G)),
|
|
2384
2371
|
value: e.block.placeholderUrl || "",
|
|
2385
2372
|
placeholder: b(a).image.placeholderUrlPlaceholder,
|
|
2386
|
-
onInput: r[1] ||= (e) =>
|
|
2387
|
-
}, null, 42,
|
|
2388
|
-
p("div",
|
|
2373
|
+
onInput: r[1] ||= (e) => k("placeholderUrl", e.target.value)
|
|
2374
|
+
}, null, 42, Ra)])) : w("", !0),
|
|
2375
|
+
p("div", za, [
|
|
2389
2376
|
p("label", { class: n(b(K)) }, c(b(a).image.altText), 3),
|
|
2390
2377
|
g($, {
|
|
2391
2378
|
"model-value": e.block.alt,
|
|
2392
2379
|
type: "text",
|
|
2393
2380
|
placeholder: b(a).image.altTextPlaceholder,
|
|
2394
|
-
pulse:
|
|
2381
|
+
pulse: x.value,
|
|
2395
2382
|
disabled: e.block.decorative === !0,
|
|
2396
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
2383
|
+
"onUpdate:modelValue": r[2] ||= (e) => k("alt", e)
|
|
2397
2384
|
}, null, 8, [
|
|
2398
2385
|
"model-value",
|
|
2399
2386
|
"placeholder",
|
|
2400
2387
|
"pulse",
|
|
2401
2388
|
"disabled"
|
|
2402
2389
|
]),
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
},
|
|
2390
|
+
g(X, {
|
|
2391
|
+
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2392
|
+
"model-value": e.block.decorative === !0,
|
|
2393
|
+
label: b(a).image.decorative,
|
|
2394
|
+
"onUpdate:modelValue": r[3] ||= (e) => k("decorative", e)
|
|
2395
|
+
}, {
|
|
2396
|
+
default: l(() => [p("span", null, [y(c(b(a).image.decorative) + " ", 1), p("span", Ba, c(b(a).image.decorativeHint), 1)])]),
|
|
2397
|
+
_: 1
|
|
2398
|
+
}, 8, ["model-value", "label"])
|
|
2409
2399
|
]),
|
|
2410
|
-
p("div",
|
|
2400
|
+
p("div", Va, [
|
|
2411
2401
|
p("label", { class: n(b(K)) }, c(b(a).image.width), 3),
|
|
2412
2402
|
p("select", {
|
|
2413
2403
|
class: n(b(G)),
|
|
2414
|
-
value:
|
|
2415
|
-
onChange: r[4] ||= (e) =>
|
|
2404
|
+
value: O.value,
|
|
2405
|
+
onChange: r[4] ||= (e) => A(e.target.value)
|
|
2416
2406
|
}, [
|
|
2417
|
-
p("option",
|
|
2407
|
+
p("option", Ua, c(b(a).image.fullWidth), 1),
|
|
2418
2408
|
r[10] ||= p("option", { value: "300" }, "300px", -1),
|
|
2419
2409
|
r[11] ||= p("option", { value: "400" }, "400px", -1),
|
|
2420
2410
|
r[12] ||= p("option", { value: "500" }, "500px", -1),
|
|
2421
|
-
p("option",
|
|
2422
|
-
], 42,
|
|
2423
|
-
|
|
2411
|
+
p("option", Wa, c(b(a).image.widthCustom), 1)
|
|
2412
|
+
], 42, Ha),
|
|
2413
|
+
O.value === "custom" ? (s(), m("div", Ga, [p("input", {
|
|
2424
2414
|
type: "number",
|
|
2425
2415
|
class: n(b(J)),
|
|
2426
|
-
value: typeof e.block.width == "number" ? e.block.width :
|
|
2416
|
+
value: typeof e.block.width == "number" ? e.block.width : Ya,
|
|
2427
2417
|
min: "20",
|
|
2428
|
-
onInput: r[5] ||= (e) =>
|
|
2429
|
-
}, null, 42,
|
|
2418
|
+
onInput: r[5] ||= (e) => j(e.target.value)
|
|
2419
|
+
}, null, 42, Ka), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
|
|
2430
2420
|
]),
|
|
2431
|
-
p("div",
|
|
2421
|
+
p("div", qa, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Mt, {
|
|
2432
2422
|
options: [
|
|
2433
2423
|
{
|
|
2434
2424
|
value: "left",
|
|
@@ -2444,30 +2434,31 @@ var Ca = {
|
|
|
2444
2434
|
}
|
|
2445
2435
|
],
|
|
2446
2436
|
"model-value": e.block.align,
|
|
2447
|
-
"onUpdate:modelValue": r[6] ||= (e) =>
|
|
2437
|
+
"onUpdate:modelValue": r[6] ||= (e) => k("align", e)
|
|
2448
2438
|
}, null, 8, ["options", "model-value"])]),
|
|
2449
|
-
p("div",
|
|
2439
|
+
p("div", Ja, [
|
|
2450
2440
|
p("label", { class: n(b(K)) }, c(b(a).image.linkUrl), 3),
|
|
2451
2441
|
g($, {
|
|
2452
2442
|
"model-value": e.block.linkUrl || "",
|
|
2453
2443
|
type: "url",
|
|
2454
2444
|
placeholder: b(a).image.imageUrlPlaceholder,
|
|
2455
|
-
"onUpdate:modelValue": r[7] ||= (e) =>
|
|
2445
|
+
"onUpdate:modelValue": r[7] ||= (e) => k("linkUrl", e)
|
|
2456
2446
|
}, null, 8, ["model-value", "placeholder"]),
|
|
2457
|
-
e.block.linkUrl ? (s(),
|
|
2458
|
-
|
|
2459
|
-
class: "tpl:
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2447
|
+
e.block.linkUrl ? (s(), v(X, {
|
|
2448
|
+
key: 0,
|
|
2449
|
+
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
2450
|
+
"model-value": e.block.linkOpenInNewTab ?? !1,
|
|
2451
|
+
label: b(a).image.openInNewTab,
|
|
2452
|
+
"onUpdate:modelValue": r[8] ||= (e) => k("linkOpenInNewTab", e)
|
|
2453
|
+
}, null, 8, ["model-value", "label"])) : w("", !0)
|
|
2463
2454
|
])
|
|
2464
2455
|
], 64));
|
|
2465
2456
|
}
|
|
2466
|
-
}),
|
|
2457
|
+
}), Za = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Qa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, $a = [
|
|
2467
2458
|
"value",
|
|
2468
2459
|
"placeholder",
|
|
2469
2460
|
"onInput"
|
|
2470
|
-
],
|
|
2461
|
+
], eo = ["title", "onClick"], to = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, no = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ro = ["value"], io = { value: "" }, ao = ["value"], oo = ["value"], so = /* @__PURE__ */ f({
|
|
2471
2462
|
__name: "MenuToolbar",
|
|
2472
2463
|
props: {
|
|
2473
2464
|
block: {},
|
|
@@ -2492,12 +2483,12 @@ var Ca = {
|
|
|
2492
2483
|
{
|
|
2493
2484
|
value: "left",
|
|
2494
2485
|
label: o.title.alignLeft,
|
|
2495
|
-
icon:
|
|
2486
|
+
icon: mt
|
|
2496
2487
|
},
|
|
2497
2488
|
{
|
|
2498
2489
|
value: "center",
|
|
2499
2490
|
label: o.title.alignCenter,
|
|
2500
|
-
icon:
|
|
2491
|
+
icon: pt
|
|
2501
2492
|
},
|
|
2502
2493
|
{
|
|
2503
2494
|
value: "right",
|
|
@@ -2526,29 +2517,29 @@ var Ca = {
|
|
|
2526
2517
|
} : r);
|
|
2527
2518
|
a("update", { items: r });
|
|
2528
2519
|
}
|
|
2529
|
-
function
|
|
2520
|
+
function x(e) {
|
|
2530
2521
|
a("update", { items: i.block.items.filter((t) => t.id !== e) });
|
|
2531
2522
|
}
|
|
2532
2523
|
return (r, i) => (s(), m(S, null, [
|
|
2533
|
-
g(
|
|
2534
|
-
default: l(() => [p("div",
|
|
2524
|
+
g(Z, { label: b(o).menu.items }, {
|
|
2525
|
+
default: l(() => [p("div", Za, [(s(!0), m(S, null, e(t.block.items, (r) => (s(), m("div", {
|
|
2535
2526
|
key: r.id,
|
|
2536
2527
|
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"
|
|
2537
2528
|
}, [
|
|
2538
|
-
p("div",
|
|
2529
|
+
p("div", Qa, [p("input", {
|
|
2539
2530
|
type: "text",
|
|
2540
2531
|
class: n([b(G), "tpl:flex-1"]),
|
|
2541
2532
|
value: r.text,
|
|
2542
2533
|
placeholder: b(o).menu.text,
|
|
2543
2534
|
onInput: (e) => _(r.id, "text", e.target.value)
|
|
2544
|
-
}, null, 42,
|
|
2535
|
+
}, null, 42, $a), p("button", {
|
|
2545
2536
|
class: n(b(wt)),
|
|
2546
2537
|
title: b(o).menu.removeItem,
|
|
2547
|
-
onClick: (e) =>
|
|
2548
|
-
}, [g(b(
|
|
2538
|
+
onClick: (e) => x(r.id)
|
|
2539
|
+
}, [g(b(_t), {
|
|
2549
2540
|
size: 14,
|
|
2550
2541
|
"stroke-width": 2
|
|
2551
|
-
})], 10,
|
|
2542
|
+
})], 10, eo)]),
|
|
2552
2543
|
g($, {
|
|
2553
2544
|
"model-value": r.url,
|
|
2554
2545
|
type: "url",
|
|
@@ -2559,16 +2550,17 @@ var Ca = {
|
|
|
2559
2550
|
"placeholder",
|
|
2560
2551
|
"onUpdate:modelValue"
|
|
2561
2552
|
]),
|
|
2562
|
-
p("div",
|
|
2553
|
+
p("div", to, [(s(!0), m(S, null, e(u.value, (e) => (s(), v(X, {
|
|
2563
2554
|
key: e.key,
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2555
|
+
"model-value": r[e.key],
|
|
2556
|
+
label: e.label,
|
|
2557
|
+
"onUpdate:modelValue": (t) => _(r.id, e.key, t)
|
|
2558
|
+
}, null, 8, [
|
|
2559
|
+
"model-value",
|
|
2560
|
+
"label",
|
|
2561
|
+
"onUpdate:modelValue"
|
|
2562
|
+
]))), 128))]),
|
|
2563
|
+
p("div", no, [p("label", { class: n([b(K), "tpl:!mb-0"]) }, c(b(o).menu.color), 3), g(Y, {
|
|
2572
2564
|
"swatch-only": "",
|
|
2573
2565
|
"model-value": r.color || t.block.linkColor || t.block.color || "",
|
|
2574
2566
|
"onUpdate:modelValue": (e) => _(r.id, "color", e)
|
|
@@ -2582,19 +2574,19 @@ var Ca = {
|
|
|
2582
2574
|
}), y(" " + c(b(o).menu.addItem), 1)], 2)])]),
|
|
2583
2575
|
_: 1
|
|
2584
2576
|
}, 8, ["label"]),
|
|
2585
|
-
g(
|
|
2577
|
+
g(Z, { label: b(o).menu.fontFamily }, {
|
|
2586
2578
|
default: l(() => [p("select", {
|
|
2587
2579
|
class: n(b(G)),
|
|
2588
2580
|
value: t.block.fontFamily || "",
|
|
2589
2581
|
onChange: i[0] ||= (e) => f("fontFamily", e.target.value || void 0)
|
|
2590
|
-
}, [p("option",
|
|
2582
|
+
}, [p("option", io, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
2591
2583
|
key: e.value,
|
|
2592
2584
|
value: e.value
|
|
2593
|
-
}, c(e.label), 9,
|
|
2585
|
+
}, c(e.label), 9, ao))), 128))], 42, ro)]),
|
|
2594
2586
|
_: 1
|
|
2595
2587
|
}, 8, ["label"]),
|
|
2596
|
-
g(
|
|
2597
|
-
default: l(() => [g(
|
|
2588
|
+
g(Z, { label: b(o).menu.fontSize }, {
|
|
2589
|
+
default: l(() => [g(Nt, {
|
|
2598
2590
|
"model-value": t.block.fontSize,
|
|
2599
2591
|
min: 8,
|
|
2600
2592
|
max: 48,
|
|
@@ -2603,46 +2595,46 @@ var Ca = {
|
|
|
2603
2595
|
}, null, 8, ["model-value"])]),
|
|
2604
2596
|
_: 1
|
|
2605
2597
|
}, 8, ["label"]),
|
|
2606
|
-
g(
|
|
2598
|
+
g(Z, { label: b(o).menu.color }, {
|
|
2607
2599
|
default: l(() => [g(Y, {
|
|
2608
2600
|
"model-value": t.block.color ?? "",
|
|
2609
2601
|
"onUpdate:modelValue": i[2] ||= (e) => f("color", e || void 0)
|
|
2610
2602
|
}, null, 8, ["model-value"])]),
|
|
2611
2603
|
_: 1
|
|
2612
2604
|
}, 8, ["label"]),
|
|
2613
|
-
g(
|
|
2605
|
+
g(Z, { label: b(o).menu.linkColor }, {
|
|
2614
2606
|
default: l(() => [g(Y, {
|
|
2615
2607
|
"model-value": t.block.linkColor || t.block.color || "",
|
|
2616
2608
|
"onUpdate:modelValue": i[3] ||= (e) => f("linkColor", e || void 0)
|
|
2617
2609
|
}, null, 8, ["model-value"])]),
|
|
2618
2610
|
_: 1
|
|
2619
2611
|
}, 8, ["label"]),
|
|
2620
|
-
g(
|
|
2621
|
-
default: l(() => [g(
|
|
2612
|
+
g(Z, { label: b(o).menu.textAlign }, {
|
|
2613
|
+
default: l(() => [g(Mt, {
|
|
2622
2614
|
options: d.value,
|
|
2623
2615
|
"model-value": t.block.textAlign,
|
|
2624
2616
|
"onUpdate:modelValue": i[4] ||= (e) => f("textAlign", e)
|
|
2625
2617
|
}, null, 8, ["options", "model-value"])]),
|
|
2626
2618
|
_: 1
|
|
2627
2619
|
}, 8, ["label"]),
|
|
2628
|
-
g(
|
|
2620
|
+
g(Z, { label: b(o).menu.separator }, {
|
|
2629
2621
|
default: l(() => [p("input", {
|
|
2630
2622
|
type: "text",
|
|
2631
2623
|
class: n(b(G)),
|
|
2632
2624
|
value: t.block.separator,
|
|
2633
2625
|
onInput: i[5] ||= (e) => f("separator", e.target.value)
|
|
2634
|
-
}, null, 42,
|
|
2626
|
+
}, null, 42, oo)]),
|
|
2635
2627
|
_: 1
|
|
2636
2628
|
}, 8, ["label"]),
|
|
2637
|
-
g(
|
|
2629
|
+
g(Z, { label: b(o).menu.separatorColor }, {
|
|
2638
2630
|
default: l(() => [g(Y, {
|
|
2639
2631
|
"model-value": t.block.separatorColor,
|
|
2640
2632
|
"onUpdate:modelValue": i[6] ||= (e) => f("separatorColor", e)
|
|
2641
2633
|
}, null, 8, ["model-value"])]),
|
|
2642
2634
|
_: 1
|
|
2643
2635
|
}, 8, ["label"]),
|
|
2644
|
-
g(
|
|
2645
|
-
default: l(() => [g(
|
|
2636
|
+
g(Z, { label: b(o).menu.spacing }, {
|
|
2637
|
+
default: l(() => [g(Nt, {
|
|
2646
2638
|
"model-value": t.block.spacing,
|
|
2647
2639
|
min: 0,
|
|
2648
2640
|
max: 50,
|
|
@@ -2656,11 +2648,11 @@ var Ca = {
|
|
|
2656
2648
|
});
|
|
2657
2649
|
//#endregion
|
|
2658
2650
|
//#region src/utils/rebalanceColumnChildren.ts
|
|
2659
|
-
function
|
|
2651
|
+
function co(e) {
|
|
2660
2652
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
2661
2653
|
}
|
|
2662
|
-
function
|
|
2663
|
-
let n =
|
|
2654
|
+
function lo(e, t) {
|
|
2655
|
+
let n = co(t);
|
|
2664
2656
|
if (e.length === n) return e;
|
|
2665
2657
|
if (e.length < n) {
|
|
2666
2658
|
let t = Array.from({ length: n - e.length }, () => []);
|
|
@@ -2671,10 +2663,13 @@ function So(e, t) {
|
|
|
2671
2663
|
}
|
|
2672
2664
|
//#endregion
|
|
2673
2665
|
//#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2674
|
-
var
|
|
2666
|
+
var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
2667
|
+
key: 0,
|
|
2668
|
+
class: "tpl:mb-3.5"
|
|
2669
|
+
}, ho = { class: "tpl:mb-3.5" }, go = { class: "tpl:flex tpl:items-stretch" }, _o = ["value"], vo = { class: "tpl:mb-3.5" }, yo = {
|
|
2675
2670
|
key: 0,
|
|
2676
2671
|
class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
|
|
2677
|
-
},
|
|
2672
|
+
}, bo = { class: "tpl:flex tpl:items-stretch" }, xo = ["value"], So = /* @__PURE__ */ f({
|
|
2678
2673
|
__name: "SectionToolbar",
|
|
2679
2674
|
props: { block: {} },
|
|
2680
2675
|
emits: ["update"],
|
|
@@ -2702,17 +2697,20 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2702
2697
|
}
|
|
2703
2698
|
]);
|
|
2704
2699
|
function u(e) {
|
|
2705
|
-
let t = e.target.value, n =
|
|
2700
|
+
let t = e.target.value, n = lo(i.block.children, t);
|
|
2706
2701
|
a("update", {
|
|
2707
2702
|
columns: t,
|
|
2708
2703
|
children: n
|
|
2709
2704
|
});
|
|
2710
2705
|
}
|
|
2711
2706
|
function d(e) {
|
|
2707
|
+
a("update", { stackOnMobile: e });
|
|
2708
|
+
}
|
|
2709
|
+
function f(e) {
|
|
2712
2710
|
let t = Number(e.target.value);
|
|
2713
2711
|
a("update", { borderRadius: t });
|
|
2714
2712
|
}
|
|
2715
|
-
function
|
|
2713
|
+
function h(e) {
|
|
2716
2714
|
a("update", { wrapper: e ? { padding: {
|
|
2717
2715
|
top: 20,
|
|
2718
2716
|
right: 20,
|
|
@@ -2720,46 +2718,52 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2720
2718
|
left: 20
|
|
2721
2719
|
} } : void 0 });
|
|
2722
2720
|
}
|
|
2723
|
-
function
|
|
2721
|
+
function _(e) {
|
|
2724
2722
|
a("update", { wrapper: {
|
|
2725
2723
|
...i.block.wrapper,
|
|
2726
2724
|
...e
|
|
2727
2725
|
} });
|
|
2728
2726
|
}
|
|
2729
|
-
function _(e) {
|
|
2730
|
-
h({ padding: e });
|
|
2731
|
-
}
|
|
2732
2727
|
function v(e) {
|
|
2733
|
-
|
|
2728
|
+
_({ padding: e });
|
|
2729
|
+
}
|
|
2730
|
+
function y(e) {
|
|
2731
|
+
_({ borderRadius: Number(e.target.value) });
|
|
2734
2732
|
}
|
|
2735
2733
|
return (r, i) => (s(), m(S, null, [
|
|
2736
|
-
p("div",
|
|
2734
|
+
p("div", uo, [p("label", { class: n(b(K)) }, c(b(o).section.columns), 3), p("select", {
|
|
2737
2735
|
class: n(b(G)),
|
|
2738
2736
|
value: t.block.columns,
|
|
2739
2737
|
onChange: u
|
|
2740
2738
|
}, [(s(!0), m(S, null, e(l.value, (e) => (s(), m("option", {
|
|
2741
2739
|
key: e.value,
|
|
2742
2740
|
value: e.value
|
|
2743
|
-
}, c(e.label), 9,
|
|
2744
|
-
|
|
2741
|
+
}, c(e.label), 9, po))), 128))], 42, fo)]),
|
|
2742
|
+
t.block.columns === "1" ? w("", !0) : (s(), m("div", mo, [g(X, {
|
|
2743
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2744
|
+
"model-value": t.block.stackOnMobile !== !1,
|
|
2745
|
+
label: b(o).section.stackOnMobile,
|
|
2746
|
+
"onUpdate:modelValue": i[0] ||= (e) => d(e)
|
|
2747
|
+
}, null, 8, ["model-value", "label"])])),
|
|
2748
|
+
p("div", ho, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", go, [p("input", {
|
|
2745
2749
|
type: "number",
|
|
2746
2750
|
class: n(b(J)),
|
|
2747
2751
|
value: t.block.borderRadius ?? 0,
|
|
2748
2752
|
min: "0",
|
|
2749
2753
|
max: "50",
|
|
2750
|
-
onInput:
|
|
2751
|
-
}, null, 42,
|
|
2752
|
-
p("div",
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
}, null,
|
|
2754
|
+
onInput: f
|
|
2755
|
+
}, null, 42, _o), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
2756
|
+
p("div", vo, [g(X, {
|
|
2757
|
+
class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
|
|
2758
|
+
"model-value": !!t.block.wrapper,
|
|
2759
|
+
label: b(o).section.wrapperEnable,
|
|
2760
|
+
"onUpdate:modelValue": i[1] ||= (e) => h(e)
|
|
2761
|
+
}, null, 8, ["model-value", "label"]), t.block.wrapper ? (s(), m("div", yo, [
|
|
2758
2762
|
p("div", null, [p("label", { class: n(b(K)) }, c(b(o).blockSettings.color), 3), g(Y, {
|
|
2759
2763
|
"model-value": t.block.wrapper.backgroundColor ?? "",
|
|
2760
|
-
"onUpdate:modelValue": i[
|
|
2764
|
+
"onUpdate:modelValue": i[2] ||= (e) => _({ backgroundColor: e })
|
|
2761
2765
|
}, null, 8, ["model-value"])]),
|
|
2762
|
-
g(
|
|
2766
|
+
g(xi, {
|
|
2763
2767
|
label: b(o).blockSettings.padding,
|
|
2764
2768
|
"model-value": t.block.wrapper.padding ?? {
|
|
2765
2769
|
top: 0,
|
|
@@ -2767,20 +2771,20 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2767
2771
|
bottom: 0,
|
|
2768
2772
|
left: 0
|
|
2769
2773
|
},
|
|
2770
|
-
"onUpdate:modelValue":
|
|
2774
|
+
"onUpdate:modelValue": v
|
|
2771
2775
|
}, null, 8, ["label", "model-value"]),
|
|
2772
|
-
p("div", null, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div",
|
|
2776
|
+
p("div", null, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", bo, [p("input", {
|
|
2773
2777
|
type: "number",
|
|
2774
2778
|
class: n(b(J)),
|
|
2775
2779
|
value: t.block.wrapper.borderRadius ?? 0,
|
|
2776
2780
|
min: "0",
|
|
2777
2781
|
max: "50",
|
|
2778
|
-
onInput:
|
|
2779
|
-
}, null, 42,
|
|
2782
|
+
onInput: y
|
|
2783
|
+
}, null, 42, xo), p("span", { class: n(b(q)) }, "px", 2)])])
|
|
2780
2784
|
])) : w("", !0)])
|
|
2781
2785
|
], 64));
|
|
2782
2786
|
}
|
|
2783
|
-
}),
|
|
2787
|
+
}), Co = { class: "tpl:mb-3.5" }, wo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, To = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Eo = ["value", "onChange"], Do = ["value"], Oo = ["title", "onClick"], ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = { value: "solid" }, Mo = { value: "outlined" }, No = { value: "rounded" }, Po = { value: "square" }, Fo = { value: "circle" }, Io = { class: "tpl:mb-3.5" }, Lo = { class: "tpl:mb-3.5" }, Ro = { class: "tpl:flex tpl:items-stretch" }, zo = ["value"], Bo = { class: "tpl:mb-3.5" }, Vo = /* @__PURE__ */ f({
|
|
2784
2788
|
__name: "SocialToolbar",
|
|
2785
2789
|
props: { block: {} },
|
|
2786
2790
|
emits: ["update"],
|
|
@@ -2808,10 +2812,10 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2808
2812
|
a("update", { icons: i.block.icons.filter((t) => t.id !== e) });
|
|
2809
2813
|
}
|
|
2810
2814
|
return (r, i) => (s(), m(S, null, [
|
|
2811
|
-
p("div",
|
|
2815
|
+
p("div", Co, [p("label", { class: n(b(K)) }, c(b(o).social.icons), 3), p("div", wo, [(s(!0), m(S, null, e(t.block.icons, (t) => (s(), m("div", {
|
|
2812
2816
|
key: t.id,
|
|
2813
2817
|
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"
|
|
2814
|
-
}, [p("div",
|
|
2818
|
+
}, [p("div", To, [p("select", {
|
|
2815
2819
|
"data-testid": "social-platform-select",
|
|
2816
2820
|
class: n([b(G), "tpl:flex-1"]),
|
|
2817
2821
|
value: t.platform,
|
|
@@ -2819,14 +2823,14 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2819
2823
|
}, [(s(!0), m(S, null, e(b(be), (e) => (s(), m("option", {
|
|
2820
2824
|
key: e,
|
|
2821
2825
|
value: e
|
|
2822
|
-
}, c(b(o).social.platforms[e]), 9,
|
|
2826
|
+
}, c(b(o).social.platforms[e]), 9, Do))), 128))], 42, Eo), p("button", {
|
|
2823
2827
|
class: n(b(wt)),
|
|
2824
2828
|
title: b(o).social.removeIcon,
|
|
2825
2829
|
onClick: (e) => f(t.id)
|
|
2826
|
-
}, [g(b(
|
|
2830
|
+
}, [g(b(_t), {
|
|
2827
2831
|
size: 14,
|
|
2828
2832
|
"stroke-width": 2
|
|
2829
|
-
})], 10,
|
|
2833
|
+
})], 10, Oo)]), g($, {
|
|
2830
2834
|
"model-value": t.url,
|
|
2831
2835
|
type: "url",
|
|
2832
2836
|
placeholder: b(o).social.urlPlaceholder,
|
|
@@ -2842,18 +2846,18 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2842
2846
|
size: 14,
|
|
2843
2847
|
"stroke-width": 2
|
|
2844
2848
|
}), y(" " + c(b(o).social.addIcon), 1)], 2)])]),
|
|
2845
|
-
p("div",
|
|
2849
|
+
p("div", ko, [p("label", { class: n(b(K)) }, c(b(o).social.style), 3), p("select", {
|
|
2846
2850
|
class: n(b(G)),
|
|
2847
2851
|
value: t.block.iconStyle,
|
|
2848
2852
|
onChange: i[0] ||= (e) => l("iconStyle", e.target.value)
|
|
2849
2853
|
}, [
|
|
2850
|
-
p("option",
|
|
2851
|
-
p("option",
|
|
2852
|
-
p("option",
|
|
2853
|
-
p("option",
|
|
2854
|
-
p("option",
|
|
2855
|
-
], 42,
|
|
2856
|
-
p("div",
|
|
2854
|
+
p("option", jo, c(b(o).social.styleSolid), 1),
|
|
2855
|
+
p("option", Mo, c(b(o).social.styleOutlined), 1),
|
|
2856
|
+
p("option", No, c(b(o).social.styleRounded), 1),
|
|
2857
|
+
p("option", Po, c(b(o).social.styleSquare), 1),
|
|
2858
|
+
p("option", Fo, c(b(o).social.styleCircle), 1)
|
|
2859
|
+
], 42, Ao)]),
|
|
2860
|
+
p("div", Io, [p("label", { class: n(b(K)) }, c(b(o).social.size), 3), g(Mt, {
|
|
2857
2861
|
options: [
|
|
2858
2862
|
{
|
|
2859
2863
|
value: "small",
|
|
@@ -2871,25 +2875,25 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2871
2875
|
"model-value": t.block.iconSize,
|
|
2872
2876
|
"onUpdate:modelValue": i[1] ||= (e) => l("iconSize", e)
|
|
2873
2877
|
}, null, 8, ["options", "model-value"])]),
|
|
2874
|
-
p("div",
|
|
2878
|
+
p("div", Lo, [p("label", { class: n(b(K)) }, c(b(o).social.spacing), 3), p("div", Ro, [p("input", {
|
|
2875
2879
|
type: "number",
|
|
2876
2880
|
class: n(b(J)),
|
|
2877
2881
|
value: t.block.spacing,
|
|
2878
2882
|
min: "0",
|
|
2879
2883
|
max: "50",
|
|
2880
2884
|
onInput: i[2] ||= (e) => l("spacing", Number(e.target.value))
|
|
2881
|
-
}, null, 42,
|
|
2882
|
-
p("div",
|
|
2885
|
+
}, null, 42, zo), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
2886
|
+
p("div", Bo, [p("label", { class: n(b(K)) }, c(b(o).social.align), 3), g(Mt, {
|
|
2883
2887
|
options: [
|
|
2884
2888
|
{
|
|
2885
2889
|
value: "left",
|
|
2886
2890
|
label: b(o).title.alignLeft,
|
|
2887
|
-
icon: b(
|
|
2891
|
+
icon: b(mt)
|
|
2888
2892
|
},
|
|
2889
2893
|
{
|
|
2890
2894
|
value: "center",
|
|
2891
2895
|
label: b(o).title.alignCenter,
|
|
2892
|
-
icon: b(
|
|
2896
|
+
icon: b(pt)
|
|
2893
2897
|
},
|
|
2894
2898
|
{
|
|
2895
2899
|
value: "right",
|
|
@@ -2902,22 +2906,22 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2902
2906
|
}, null, 8, ["options", "model-value"])])
|
|
2903
2907
|
], 64));
|
|
2904
2908
|
}
|
|
2905
|
-
}),
|
|
2909
|
+
}), Ho = { class: "tpl:mb-3.5" }, Uo = { class: "tpl:flex tpl:items-stretch" }, Wo = ["value"], Go = ["value"], Ko = /* @__PURE__ */ f({
|
|
2906
2910
|
__name: "SpacerToolbar",
|
|
2907
2911
|
props: { block: {} },
|
|
2908
2912
|
emits: ["update"],
|
|
2909
2913
|
setup(e, { emit: t }) {
|
|
2910
2914
|
let r = t, { t: i } = U();
|
|
2911
|
-
return (t, a) => (s(), m("div",
|
|
2915
|
+
return (t, a) => (s(), m("div", Ho, [
|
|
2912
2916
|
p("label", { class: n(b(K)) }, c(b(i).spacer.height), 3),
|
|
2913
|
-
p("div",
|
|
2917
|
+
p("div", Uo, [p("input", {
|
|
2914
2918
|
type: "number",
|
|
2915
2919
|
class: n(b(J)),
|
|
2916
2920
|
value: e.block.height,
|
|
2917
2921
|
min: "10",
|
|
2918
2922
|
max: "100",
|
|
2919
2923
|
onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2920
|
-
}, null, 42,
|
|
2924
|
+
}, null, 42, Wo), p("span", { class: n(b(q)) }, "px", 2)]),
|
|
2921
2925
|
p("input", {
|
|
2922
2926
|
type: "range",
|
|
2923
2927
|
class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
|
|
@@ -2925,13 +2929,13 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2925
2929
|
min: "10",
|
|
2926
2930
|
max: "100",
|
|
2927
2931
|
onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
|
|
2928
|
-
}, null, 40,
|
|
2932
|
+
}, null, 40, Go)
|
|
2929
2933
|
]));
|
|
2930
2934
|
}
|
|
2931
|
-
}),
|
|
2935
|
+
}), qo = { class: "tpl:mb-3.5" }, Jo = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Yo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Xo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Zo = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Qo = ["disabled"], $o = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, es = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ts = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ns = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, rs = ["disabled"], is = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, as = { class: "tpl:mb-3.5" }, os = {
|
|
2932
2936
|
key: 0,
|
|
2933
2937
|
class: "tpl:mb-3.5"
|
|
2934
|
-
},
|
|
2938
|
+
}, ss = { class: "tpl:mb-3.5" }, cs = { class: "tpl:mb-3.5" }, ls = { class: "tpl:flex tpl:items-stretch" }, us = ["value"], ds = { class: "tpl:mb-3.5" }, fs = { class: "tpl:flex tpl:items-stretch" }, ps = ["value"], ms = { class: "tpl:mb-3.5" }, hs = ["value"], gs = { value: "" }, _s = ["value"], vs = { class: "tpl:mb-3.5" }, ys = { class: "tpl:flex tpl:items-stretch" }, bs = ["value"], xs = { class: "tpl:mb-3.5" }, Ss = { class: "tpl:mb-3.5" }, Cs = /* @__PURE__ */ f({
|
|
2935
2939
|
__name: "TableToolbar",
|
|
2936
2940
|
props: {
|
|
2937
2941
|
block: {},
|
|
@@ -2974,16 +2978,16 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2974
2978
|
a("update", { rows: t });
|
|
2975
2979
|
}
|
|
2976
2980
|
return (r, i) => (s(), m(S, null, [
|
|
2977
|
-
p("div",
|
|
2981
|
+
p("div", qo, [p("label", { class: n(b(K)) }, c(b(o).table.dimensions), 3), p("div", Jo, [p("div", Yo, [p("span", Xo, c(b(o).table.rows), 1), p("div", Zo, [
|
|
2978
2982
|
p("button", {
|
|
2979
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",
|
|
2980
2984
|
disabled: t.block.rows.length <= 1,
|
|
2981
2985
|
onClick: i[0] ||= (e) => f(t.block.rows[t.block.rows.length - 1].id)
|
|
2982
|
-
}, [g(b(
|
|
2986
|
+
}, [g(b(tt), {
|
|
2983
2987
|
size: 12,
|
|
2984
2988
|
"stroke-width": 2
|
|
2985
|
-
})], 8,
|
|
2986
|
-
p("span",
|
|
2989
|
+
})], 8, Qo),
|
|
2990
|
+
p("span", $o, c(t.block.rows.length), 1),
|
|
2987
2991
|
p("button", {
|
|
2988
2992
|
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)]",
|
|
2989
2993
|
onClick: d
|
|
@@ -2991,16 +2995,16 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
2991
2995
|
size: 12,
|
|
2992
2996
|
"stroke-width": 2
|
|
2993
2997
|
})])
|
|
2994
|
-
])]), p("div",
|
|
2998
|
+
])]), p("div", es, [p("span", ts, c(b(o).table.columns), 1), p("div", ns, [
|
|
2995
2999
|
p("button", {
|
|
2996
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",
|
|
2997
3001
|
disabled: l.value <= 1,
|
|
2998
3002
|
onClick: i[1] ||= (e) => _(l.value - 1)
|
|
2999
|
-
}, [g(b(
|
|
3003
|
+
}, [g(b(tt), {
|
|
3000
3004
|
size: 12,
|
|
3001
3005
|
"stroke-width": 2
|
|
3002
|
-
})], 8,
|
|
3003
|
-
p("span",
|
|
3006
|
+
})], 8, rs),
|
|
3007
|
+
p("span", is, c(l.value), 1),
|
|
3004
3008
|
p("button", {
|
|
3005
3009
|
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)]",
|
|
3006
3010
|
onClick: h
|
|
@@ -3009,13 +3013,13 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3009
3013
|
"stroke-width": 2
|
|
3010
3014
|
})])
|
|
3011
3015
|
])])])]),
|
|
3012
|
-
p("div",
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
}, null,
|
|
3018
|
-
t.block.hasHeaderRow ? (s(), m("div",
|
|
3016
|
+
p("div", as, [g(X, {
|
|
3017
|
+
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
3018
|
+
"model-value": t.block.hasHeaderRow,
|
|
3019
|
+
label: b(o).table.hasHeaderRow,
|
|
3020
|
+
"onUpdate:modelValue": i[2] ||= (e) => u("hasHeaderRow", e)
|
|
3021
|
+
}, null, 8, ["model-value", "label"])]),
|
|
3022
|
+
t.block.hasHeaderRow ? (s(), m("div", os, [p("label", { class: n(b(K)) }, c(b(o).table.headerBackgroundColor), 3), g(Y, {
|
|
3019
3023
|
"model-value": t.block.headerBackgroundColor ?? "",
|
|
3020
3024
|
"seed-color": b(Et),
|
|
3021
3025
|
placeholder: b(o).table.noHeaderBg,
|
|
@@ -3025,57 +3029,57 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3025
3029
|
"seed-color",
|
|
3026
3030
|
"placeholder"
|
|
3027
3031
|
])])) : w("", !0),
|
|
3028
|
-
p("div",
|
|
3032
|
+
p("div", ss, [p("label", { class: n(b(K)) }, c(b(o).table.borderColor), 3), g(Y, {
|
|
3029
3033
|
"model-value": t.block.borderColor,
|
|
3030
3034
|
"onUpdate:modelValue": i[4] ||= (e) => u("borderColor", e)
|
|
3031
3035
|
}, null, 8, ["model-value"])]),
|
|
3032
|
-
p("div",
|
|
3036
|
+
p("div", cs, [p("label", { class: n(b(K)) }, c(b(o).table.borderWidth), 3), p("div", ls, [p("input", {
|
|
3033
3037
|
type: "number",
|
|
3034
3038
|
class: n(b(J)),
|
|
3035
3039
|
value: t.block.borderWidth,
|
|
3036
3040
|
min: "0",
|
|
3037
3041
|
max: "10",
|
|
3038
3042
|
onInput: i[5] ||= (e) => u("borderWidth", Number(e.target.value))
|
|
3039
|
-
}, null, 42,
|
|
3040
|
-
p("div",
|
|
3043
|
+
}, null, 42, us), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
3044
|
+
p("div", ds, [p("label", { class: n(b(K)) }, c(b(o).table.cellPadding), 3), p("div", fs, [p("input", {
|
|
3041
3045
|
type: "number",
|
|
3042
3046
|
class: n(b(J)),
|
|
3043
3047
|
value: t.block.cellPadding,
|
|
3044
3048
|
min: "0",
|
|
3045
3049
|
max: "30",
|
|
3046
3050
|
onInput: i[6] ||= (e) => u("cellPadding", Number(e.target.value))
|
|
3047
|
-
}, null, 42,
|
|
3048
|
-
p("div",
|
|
3051
|
+
}, null, 42, ps), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
3052
|
+
p("div", ms, [p("label", { class: n(b(K)) }, c(b(o).table.fontFamily), 3), p("select", {
|
|
3049
3053
|
class: n(b(G)),
|
|
3050
3054
|
value: t.block.fontFamily || "",
|
|
3051
3055
|
onChange: i[7] ||= (e) => u("fontFamily", e.target.value || void 0)
|
|
3052
|
-
}, [p("option",
|
|
3056
|
+
}, [p("option", gs, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
3053
3057
|
key: e.value,
|
|
3054
3058
|
value: e.value
|
|
3055
|
-
}, c(e.label), 9,
|
|
3056
|
-
p("div",
|
|
3059
|
+
}, c(e.label), 9, _s))), 128))], 42, hs)]),
|
|
3060
|
+
p("div", vs, [p("label", { class: n(b(K)) }, c(b(o).table.fontSize), 3), p("div", ys, [p("input", {
|
|
3057
3061
|
type: "number",
|
|
3058
3062
|
class: n(b(J)),
|
|
3059
3063
|
value: t.block.fontSize,
|
|
3060
3064
|
min: "10",
|
|
3061
3065
|
max: "32",
|
|
3062
3066
|
onInput: i[8] ||= (e) => u("fontSize", Number(e.target.value))
|
|
3063
|
-
}, null, 42,
|
|
3064
|
-
p("div",
|
|
3067
|
+
}, null, 42, bs), p("span", { class: n(b(q)) }, "px", 2)])]),
|
|
3068
|
+
p("div", xs, [p("label", { class: n(b(K)) }, c(b(o).table.color), 3), g(Y, {
|
|
3065
3069
|
"model-value": t.block.color ?? "",
|
|
3066
3070
|
"onUpdate:modelValue": i[9] ||= (e) => u("color", e || void 0)
|
|
3067
3071
|
}, null, 8, ["model-value"])]),
|
|
3068
|
-
p("div",
|
|
3072
|
+
p("div", Ss, [p("label", { class: n(b(K)) }, c(b(o).table.textAlign), 3), g(Mt, {
|
|
3069
3073
|
options: [
|
|
3070
3074
|
{
|
|
3071
3075
|
value: "left",
|
|
3072
3076
|
label: b(o).title.alignLeft,
|
|
3073
|
-
icon: b(
|
|
3077
|
+
icon: b(mt)
|
|
3074
3078
|
},
|
|
3075
3079
|
{
|
|
3076
3080
|
value: "center",
|
|
3077
3081
|
label: b(o).title.alignCenter,
|
|
3078
|
-
icon: b(
|
|
3082
|
+
icon: b(pt)
|
|
3079
3083
|
},
|
|
3080
3084
|
{
|
|
3081
3085
|
value: "right",
|
|
@@ -3088,7 +3092,7 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3088
3092
|
}, null, 8, ["options", "model-value"])])
|
|
3089
3093
|
], 64));
|
|
3090
3094
|
}
|
|
3091
|
-
}),
|
|
3095
|
+
}), ws = { class: "tpl:mb-3.5" }, Ts = ["value"], Es = { value: 1 }, Ds = { value: 2 }, Os = { value: 3 }, ks = { value: 4 }, As = { class: "tpl:mb-3.5" }, js = ["value"], Ms = { value: "" }, Ns = ["value"], Ps = { class: "tpl:mb-3.5" }, Fs = { class: "tpl:mb-3.5" }, Is = /* @__PURE__ */ f({
|
|
3092
3096
|
__name: "TitleToolbar",
|
|
3093
3097
|
props: {
|
|
3094
3098
|
block: {},
|
|
@@ -3101,39 +3105,39 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3101
3105
|
i("update", { [e]: t });
|
|
3102
3106
|
}
|
|
3103
3107
|
return (r, i) => (s(), m(S, null, [
|
|
3104
|
-
p("div",
|
|
3108
|
+
p("div", ws, [p("label", { class: n(b(K)) }, c(b(a).title.level), 3), p("select", {
|
|
3105
3109
|
class: n(b(G)),
|
|
3106
3110
|
value: t.block.level,
|
|
3107
3111
|
onChange: i[0] ||= (e) => o("level", Number(e.target.value))
|
|
3108
3112
|
}, [
|
|
3109
|
-
p("option",
|
|
3110
|
-
p("option",
|
|
3111
|
-
p("option",
|
|
3112
|
-
p("option",
|
|
3113
|
-
], 42,
|
|
3114
|
-
p("div",
|
|
3113
|
+
p("option", Es, c(b(a).title.heading1), 1),
|
|
3114
|
+
p("option", Ds, c(b(a).title.heading2), 1),
|
|
3115
|
+
p("option", Os, c(b(a).title.heading3), 1),
|
|
3116
|
+
p("option", ks, c(b(a).title.heading4), 1)
|
|
3117
|
+
], 42, Ts)]),
|
|
3118
|
+
p("div", As, [p("label", { class: n(b(K)) }, c(b(a).title.fontFamily), 3), p("select", {
|
|
3115
3119
|
class: n(b(G)),
|
|
3116
3120
|
value: t.block.fontFamily || "",
|
|
3117
3121
|
onChange: i[1] ||= (e) => o("fontFamily", e.target.value || void 0)
|
|
3118
|
-
}, [p("option",
|
|
3122
|
+
}, [p("option", Ms, c(b(a).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
|
|
3119
3123
|
key: e.value,
|
|
3120
3124
|
value: e.value
|
|
3121
|
-
}, c(e.label), 9,
|
|
3122
|
-
p("div",
|
|
3125
|
+
}, c(e.label), 9, Ns))), 128))], 42, js)]),
|
|
3126
|
+
p("div", Ps, [p("label", { class: n(b(K)) }, c(b(a).title.color), 3), g(Y, {
|
|
3123
3127
|
"model-value": t.block.color ?? "",
|
|
3124
3128
|
"onUpdate:modelValue": i[2] ||= (e) => o("color", e || void 0)
|
|
3125
3129
|
}, null, 8, ["model-value"])]),
|
|
3126
|
-
p("div",
|
|
3130
|
+
p("div", Fs, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Mt, {
|
|
3127
3131
|
options: [
|
|
3128
3132
|
{
|
|
3129
3133
|
value: "left",
|
|
3130
3134
|
label: b(a).title.alignLeft,
|
|
3131
|
-
icon: b(
|
|
3135
|
+
icon: b(mt)
|
|
3132
3136
|
},
|
|
3133
3137
|
{
|
|
3134
3138
|
value: "center",
|
|
3135
3139
|
label: b(a).title.alignCenter,
|
|
3136
|
-
icon: b(
|
|
3140
|
+
icon: b(pt)
|
|
3137
3141
|
},
|
|
3138
3142
|
{
|
|
3139
3143
|
value: "right",
|
|
@@ -3146,63 +3150,61 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3146
3150
|
}, null, 8, ["options", "model-value"])])
|
|
3147
3151
|
], 64));
|
|
3148
3152
|
}
|
|
3149
|
-
}),
|
|
3150
|
-
key: 0,
|
|
3151
|
-
class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
|
|
3152
|
-
}, ec = ["checked"], tc = {
|
|
3153
|
+
}), Ls = { class: "tpl:mb-3.5" }, Rs = {
|
|
3153
3154
|
key: 0,
|
|
3154
3155
|
class: "tpl:mb-3.5"
|
|
3155
|
-
},
|
|
3156
|
+
}, zs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Bs = [
|
|
3156
3157
|
"value",
|
|
3157
3158
|
"placeholder",
|
|
3158
3159
|
"title"
|
|
3159
|
-
],
|
|
3160
|
+
], Vs = { class: "tpl:mb-3.5" }, Hs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Us = { class: "tpl:mb-3.5" }, Ws = { class: "tpl:mb-3.5" }, Gs = ["value"], Ks = { value: "full" }, qs = { class: "tpl:mb-3.5" }, Js = /* @__PURE__ */ f({
|
|
3160
3161
|
__name: "VideoToolbar",
|
|
3161
3162
|
props: { block: {} },
|
|
3162
3163
|
emits: ["update"],
|
|
3163
3164
|
setup(e, { emit: t }) {
|
|
3164
|
-
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(() => {
|
|
3165
3166
|
_.value = !1;
|
|
3166
3167
|
}, 1e3, { immediate: !1 });
|
|
3167
|
-
function
|
|
3168
|
+
function T(e, t) {
|
|
3168
3169
|
i("update", { [e]: t });
|
|
3169
3170
|
}
|
|
3170
|
-
async function
|
|
3171
|
+
async function D() {
|
|
3171
3172
|
let e = await o?.({ accept: ["images"] });
|
|
3172
|
-
u.alive && e && (
|
|
3173
|
+
u.alive && e && (T("thumbnailUrl", e.url), _.value = !0, x());
|
|
3173
3174
|
}
|
|
3174
3175
|
return (t, r) => (s(), m(S, null, [
|
|
3175
|
-
p("div",
|
|
3176
|
+
p("div", Ls, [
|
|
3176
3177
|
p("label", { class: n(b(K)) }, c(b(a).video.videoUrl), 3),
|
|
3177
3178
|
g($, {
|
|
3178
3179
|
"model-value": e.block.url,
|
|
3179
3180
|
type: "url",
|
|
3180
3181
|
placeholder: b(a).video.videoUrlPlaceholder,
|
|
3181
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
3182
|
+
"onUpdate:modelValue": r[0] ||= (e) => T("url", e)
|
|
3182
3183
|
}, null, 8, ["model-value", "placeholder"]),
|
|
3183
|
-
e.block.url ? (s(),
|
|
3184
|
-
|
|
3185
|
-
class: "tpl:
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3184
|
+
e.block.url ? (s(), v(X, {
|
|
3185
|
+
key: 0,
|
|
3186
|
+
class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
|
|
3187
|
+
"model-value": e.block.openInNewTab ?? !1,
|
|
3188
|
+
label: b(a).video.openInNewTab,
|
|
3189
|
+
"onUpdate:modelValue": r[1] ||= (e) => T("openInNewTab", e)
|
|
3190
|
+
}, null, 8, ["model-value", "label"])) : w("", !0)
|
|
3189
3191
|
]),
|
|
3190
|
-
h.value ? (s(), m("div",
|
|
3192
|
+
h.value ? (s(), m("div", Rs, [p("label", { class: n(b(K)) }, [y(c(b(a).video.placeholderUrl) + " ", 1), p("span", zs, c(b(a).video.optional), 1)], 2), p("input", {
|
|
3191
3193
|
type: "url",
|
|
3192
3194
|
class: n(b(G)),
|
|
3193
3195
|
value: e.block.placeholderUrl || "",
|
|
3194
3196
|
placeholder: b(a).video.placeholderUrlPlaceholder,
|
|
3195
3197
|
title: b(a).video.placeholderUrlTooltip,
|
|
3196
|
-
onInput: r[2] ||= (e) =>
|
|
3197
|
-
}, null, 42,
|
|
3198
|
-
p("div",
|
|
3199
|
-
p("label", { class: n(b(K)) }, [y(c(b(a).video.customThumbnail) + " ", 1), p("span",
|
|
3198
|
+
onInput: r[2] ||= (e) => T("placeholderUrl", e.target.value)
|
|
3199
|
+
}, null, 42, Bs)])) : w("", !0),
|
|
3200
|
+
p("div", Vs, [
|
|
3201
|
+
p("label", { class: n(b(K)) }, [y(c(b(a).video.customThumbnail) + " ", 1), p("span", Hs, c(b(a).video.optional), 1)], 2),
|
|
3200
3202
|
g($, {
|
|
3201
3203
|
"model-value": e.block.thumbnailUrl,
|
|
3202
3204
|
type: "url",
|
|
3203
3205
|
placeholder: b(a).video.thumbnailPlaceholder,
|
|
3204
3206
|
pulse: _.value,
|
|
3205
|
-
"onUpdate:modelValue": r[3] ||= (e) =>
|
|
3207
|
+
"onUpdate:modelValue": r[3] ||= (e) => T("thumbnailUrl", e)
|
|
3206
3208
|
}, null, 8, [
|
|
3207
3209
|
"model-value",
|
|
3208
3210
|
"placeholder",
|
|
@@ -3216,29 +3218,29 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3216
3218
|
color: "var(--tpl-primary)",
|
|
3217
3219
|
"background-color": "var(--tpl-bg)"
|
|
3218
3220
|
},
|
|
3219
|
-
onClick:
|
|
3221
|
+
onClick: D
|
|
3220
3222
|
}, [g(b(ae), {
|
|
3221
3223
|
size: 14,
|
|
3222
3224
|
"stroke-width": 1.5
|
|
3223
3225
|
}), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
|
|
3224
3226
|
]),
|
|
3225
|
-
p("div",
|
|
3227
|
+
p("div", Us, [p("label", { class: n(b(K)) }, c(b(a).video.altText), 3), g($, {
|
|
3226
3228
|
"model-value": e.block.alt,
|
|
3227
3229
|
type: "text",
|
|
3228
3230
|
placeholder: b(a).video.altTextPlaceholder,
|
|
3229
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
3231
|
+
"onUpdate:modelValue": r[4] ||= (e) => T("alt", e)
|
|
3230
3232
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
3231
|
-
p("div",
|
|
3233
|
+
p("div", Ws, [p("label", { class: n(b(K)) }, c(b(a).video.width), 3), p("select", {
|
|
3232
3234
|
class: n(b(G)),
|
|
3233
3235
|
value: e.block.width,
|
|
3234
|
-
onChange: r[5] ||= (e) =>
|
|
3236
|
+
onChange: r[5] ||= (e) => T("width", e.target.value === "full" ? "full" : Number(e.target.value))
|
|
3235
3237
|
}, [
|
|
3236
|
-
p("option",
|
|
3238
|
+
p("option", Ks, c(b(a).video.fullWidth), 1),
|
|
3237
3239
|
r[7] ||= p("option", { value: "300" }, "300px", -1),
|
|
3238
3240
|
r[8] ||= p("option", { value: "400" }, "400px", -1),
|
|
3239
3241
|
r[9] ||= p("option", { value: "500" }, "500px", -1)
|
|
3240
|
-
], 42,
|
|
3241
|
-
p("div",
|
|
3242
|
+
], 42, Gs)]),
|
|
3243
|
+
p("div", qs, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Mt, {
|
|
3242
3244
|
options: [
|
|
3243
3245
|
{
|
|
3244
3246
|
value: "left",
|
|
@@ -3254,11 +3256,11 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3254
3256
|
}
|
|
3255
3257
|
],
|
|
3256
3258
|
"model-value": e.block.align,
|
|
3257
|
-
"onUpdate:modelValue": r[6] ||= (e) =>
|
|
3259
|
+
"onUpdate:modelValue": r[6] ||= (e) => T("align", e)
|
|
3258
3260
|
}, null, 8, ["options", "model-value"])])
|
|
3259
3261
|
], 64));
|
|
3260
3262
|
}
|
|
3261
|
-
}),
|
|
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({
|
|
3262
3264
|
__name: "Toolbar",
|
|
3263
3265
|
props: { block: {} },
|
|
3264
3266
|
emits: [
|
|
@@ -3267,7 +3269,7 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3267
3269
|
"duplicate"
|
|
3268
3270
|
],
|
|
3269
3271
|
setup(e, { emit: t }) {
|
|
3270
|
-
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(() => {
|
|
3271
3273
|
if (f.value) return u.find((e) => e.type === r.block.customType);
|
|
3272
3274
|
}), y = C(() => f.value ? _.value?.name ?? r.block.customType : le(d.value, a)), x = l.fonts;
|
|
3273
3275
|
function T(e) {
|
|
@@ -3276,7 +3278,7 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3276
3278
|
return (t, r) => (s(), m("aside", {
|
|
3277
3279
|
"aria-label": b(a).landmarks.blockToolbar,
|
|
3278
3280
|
class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
|
|
3279
|
-
}, [p("div",
|
|
3281
|
+
}, [p("div", Xs, [p("div", Zs, [b(it)[d.value] ? (s(), v(o(b(it)[d.value]), {
|
|
3280
3282
|
key: 0,
|
|
3281
3283
|
size: 16,
|
|
3282
3284
|
"stroke-width": 1.5
|
|
@@ -3284,70 +3286,70 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3284
3286
|
key: 1,
|
|
3285
3287
|
size: 16,
|
|
3286
3288
|
"stroke-width": 1.5
|
|
3287
|
-
})) : w("", !0), p("h3",
|
|
3289
|
+
})) : w("", !0), p("h3", Qs, c(y.value), 1)]), p("div", $s, [p("button", {
|
|
3288
3290
|
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)]",
|
|
3289
3291
|
title: b(a).toolbar.duplicate,
|
|
3290
3292
|
onClick: r[0] ||= (e) => i("duplicate")
|
|
3291
3293
|
}, [g(b(ce), {
|
|
3292
3294
|
size: 14,
|
|
3293
3295
|
"stroke-width": 2
|
|
3294
|
-
})], 8,
|
|
3296
|
+
})], 8, ec), p("button", {
|
|
3295
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)]",
|
|
3296
3298
|
title: b(a).toolbar.delete,
|
|
3297
3299
|
onClick: r[1] ||= (e) => i("delete")
|
|
3298
|
-
}, [g(b(
|
|
3300
|
+
}, [g(b(ht), {
|
|
3299
3301
|
size: 14,
|
|
3300
3302
|
"stroke-width": 2
|
|
3301
|
-
})], 8,
|
|
3303
|
+
})], 8, tc)])]), p("div", nc, [f.value ? (s(), v(wa, {
|
|
3302
3304
|
key: 0,
|
|
3303
3305
|
block: e.block,
|
|
3304
3306
|
onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
|
|
3305
3307
|
onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
|
|
3306
|
-
}, null, 8, ["block"])) : d.value === "section" ? (s(), v(
|
|
3308
|
+
}, null, 8, ["block"])) : d.value === "section" ? (s(), v(So, {
|
|
3307
3309
|
key: 1,
|
|
3308
3310
|
block: e.block,
|
|
3309
3311
|
onUpdate: T
|
|
3310
|
-
}, null, 8, ["block"])) : d.value === "title" ? (s(), v(
|
|
3312
|
+
}, null, 8, ["block"])) : d.value === "title" ? (s(), v(Is, {
|
|
3311
3313
|
key: 2,
|
|
3312
3314
|
block: e.block,
|
|
3313
3315
|
"font-families": b(x),
|
|
3314
3316
|
onUpdate: T
|
|
3315
|
-
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), m(S, { key: 3 }, [], 64)) : d.value === "image" ? (s(), v(
|
|
3317
|
+
}, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), m(S, { key: 3 }, [], 64)) : d.value === "image" ? (s(), v(Xa, {
|
|
3316
3318
|
key: 4,
|
|
3317
3319
|
block: e.block,
|
|
3318
3320
|
onUpdate: T
|
|
3319
|
-
}, null, 8, ["block"])) : d.value === "video" ? (s(), v(
|
|
3321
|
+
}, null, 8, ["block"])) : d.value === "video" ? (s(), v(Js, {
|
|
3320
3322
|
key: 5,
|
|
3321
3323
|
block: e.block,
|
|
3322
3324
|
onUpdate: T
|
|
3323
|
-
}, null, 8, ["block"])) : d.value === "button" ? (s(), v(
|
|
3325
|
+
}, null, 8, ["block"])) : d.value === "button" ? (s(), v(Zr, {
|
|
3324
3326
|
key: 6,
|
|
3325
3327
|
block: e.block,
|
|
3326
3328
|
"font-families": b(x),
|
|
3327
3329
|
onUpdate: T
|
|
3328
|
-
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), v(
|
|
3330
|
+
}, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), v(Aa, {
|
|
3329
3331
|
key: 7,
|
|
3330
3332
|
block: e.block,
|
|
3331
3333
|
onUpdate: T
|
|
3332
|
-
}, null, 8, ["block"])) : d.value === "social" ? (s(), v(
|
|
3334
|
+
}, null, 8, ["block"])) : d.value === "social" ? (s(), v(Vo, {
|
|
3333
3335
|
key: 8,
|
|
3334
3336
|
block: e.block,
|
|
3335
3337
|
onUpdate: T
|
|
3336
|
-
}, null, 8, ["block"])) : d.value === "menu" ? (s(), v(
|
|
3338
|
+
}, null, 8, ["block"])) : d.value === "menu" ? (s(), v(so, {
|
|
3337
3339
|
key: 9,
|
|
3338
3340
|
block: e.block,
|
|
3339
3341
|
"font-families": b(x),
|
|
3340
3342
|
onUpdate: T
|
|
3341
|
-
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), v(
|
|
3343
|
+
}, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), v(Cs, {
|
|
3342
3344
|
key: 10,
|
|
3343
3345
|
block: e.block,
|
|
3344
3346
|
"font-families": b(x),
|
|
3345
3347
|
onUpdate: T
|
|
3346
|
-
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), v(
|
|
3348
|
+
}, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), v(Ko, {
|
|
3347
3349
|
key: 11,
|
|
3348
3350
|
block: e.block,
|
|
3349
3351
|
onUpdate: T
|
|
3350
|
-
}, null, 8, ["block"])) : d.value === "html" ? (s(), v(
|
|
3352
|
+
}, null, 8, ["block"])) : d.value === "html" ? (s(), v(Pa, {
|
|
3351
3353
|
key: 12,
|
|
3352
3354
|
block: e.block,
|
|
3353
3355
|
onUpdate: T
|
|
@@ -3356,52 +3358,52 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3356
3358
|
block: e.block,
|
|
3357
3359
|
"font-families": b(x),
|
|
3358
3360
|
onUpdate: T
|
|
3359
|
-
}, null, 8, ["block", "font-families"])) : w("", !0), g(
|
|
3361
|
+
}, null, 8, ["block", "font-families"])) : w("", !0), g(Hi, {
|
|
3360
3362
|
block: e.block,
|
|
3361
3363
|
"is-first-section": d.value === "paragraph",
|
|
3362
3364
|
onUpdate: T
|
|
3363
|
-
}, null, 8, ["block", "is-first-section"])])], 8,
|
|
3365
|
+
}, null, 8, ["block", "is-first-section"])])], 8, Ys));
|
|
3364
3366
|
}
|
|
3365
|
-
}), [["__scopeId", "data-v-2ac88283"]]),
|
|
3367
|
+
}), [["__scopeId", "data-v-2ac88283"]]), ic = ["aria-label"], ac = {
|
|
3366
3368
|
role: "tablist",
|
|
3367
3369
|
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"
|
|
3368
|
-
},
|
|
3370
|
+
}, oc = [
|
|
3369
3371
|
"aria-selected",
|
|
3370
3372
|
"aria-label",
|
|
3371
3373
|
"title"
|
|
3372
|
-
],
|
|
3374
|
+
], sc = { key: 0 }, cc = [
|
|
3373
3375
|
"aria-selected",
|
|
3374
3376
|
"aria-label",
|
|
3375
3377
|
"title"
|
|
3376
|
-
],
|
|
3378
|
+
], lc = { key: 0 }, uc = [
|
|
3377
3379
|
"aria-selected",
|
|
3378
3380
|
"aria-label",
|
|
3379
3381
|
"title"
|
|
3380
|
-
],
|
|
3382
|
+
], dc = { key: 0 }, fc = {
|
|
3381
3383
|
key: 1,
|
|
3382
3384
|
class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
|
|
3383
|
-
},
|
|
3385
|
+
}, pc = {
|
|
3384
3386
|
key: 0,
|
|
3385
3387
|
id: "tpl-tabpanel-content",
|
|
3386
3388
|
role: "tabpanel",
|
|
3387
3389
|
"aria-labelledby": "tpl-tab-content",
|
|
3388
3390
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3389
|
-
},
|
|
3391
|
+
}, mc = {
|
|
3390
3392
|
key: 1,
|
|
3391
3393
|
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)]"
|
|
3392
|
-
},
|
|
3394
|
+
}, hc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, gc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _c = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, vc = {
|
|
3393
3395
|
key: 1,
|
|
3394
3396
|
id: "tpl-tabpanel-settings",
|
|
3395
3397
|
role: "tabpanel",
|
|
3396
3398
|
"aria-labelledby": "tpl-tab-settings",
|
|
3397
3399
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3398
|
-
},
|
|
3400
|
+
}, yc = {
|
|
3399
3401
|
key: 2,
|
|
3400
3402
|
id: "tpl-tabpanel-issues",
|
|
3401
3403
|
role: "tabpanel",
|
|
3402
3404
|
"aria-labelledby": "tpl-tab-issues",
|
|
3403
3405
|
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
|
|
3404
|
-
},
|
|
3406
|
+
}, bc = /* @__PURE__ */ f({
|
|
3405
3407
|
__name: "RightSidebar",
|
|
3406
3408
|
props: {
|
|
3407
3409
|
selectedBlock: {},
|
|
@@ -3415,7 +3417,7 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3415
3417
|
"update-settings"
|
|
3416
3418
|
],
|
|
3417
3419
|
setup(e, { emit: r }) {
|
|
3418
|
-
let a = h(() => import("./IssuesPanel-
|
|
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);
|
|
3419
3421
|
function S(e) {
|
|
3420
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)]";
|
|
3421
3423
|
}
|
|
@@ -3431,7 +3433,7 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3431
3433
|
"aria-label": b(u).landmarks.rightSidebar,
|
|
3432
3434
|
class: n(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
|
|
3433
3435
|
}, [
|
|
3434
|
-
p("div",
|
|
3436
|
+
p("div", ac, [
|
|
3435
3437
|
p("button", {
|
|
3436
3438
|
id: "tpl-tab-content",
|
|
3437
3439
|
role: "tab",
|
|
@@ -3442,10 +3444,10 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3442
3444
|
class: n(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", S("content")]),
|
|
3443
3445
|
style: t(T("content")),
|
|
3444
3446
|
onClick: i[0] ||= (e) => f.value = "content"
|
|
3445
|
-
}, [g(b(
|
|
3447
|
+
}, [g(b(Ht), {
|
|
3446
3448
|
size: 14,
|
|
3447
3449
|
"stroke-width": 2
|
|
3448
|
-
}), f.value === "content" ? (s(), m("span",
|
|
3450
|
+
}), f.value === "content" ? (s(), m("span", sc, c(b(u).sidebar.content), 1)) : w("", !0)], 14, oc),
|
|
3449
3451
|
p("button", {
|
|
3450
3452
|
id: "tpl-tab-settings",
|
|
3451
3453
|
role: "tab",
|
|
@@ -3456,10 +3458,10 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3456
3458
|
class: n(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", S("settings")]),
|
|
3457
3459
|
style: t(T("settings")),
|
|
3458
3460
|
onClick: i[1] ||= (e) => f.value = "settings"
|
|
3459
|
-
}, [g(b(
|
|
3461
|
+
}, [g(b(Wt), {
|
|
3460
3462
|
size: 14,
|
|
3461
3463
|
"stroke-width": 1.5
|
|
3462
|
-
}), f.value === "settings" ? (s(), m("span",
|
|
3464
|
+
}), f.value === "settings" ? (s(), m("span", lc, c(b(u).sidebar.settings), 1)) : w("", !0)], 14, cc),
|
|
3463
3465
|
y.value ? (s(), m("button", {
|
|
3464
3466
|
key: 0,
|
|
3465
3467
|
id: "tpl-tab-issues",
|
|
@@ -3472,59 +3474,59 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3472
3474
|
style: t(T("issues")),
|
|
3473
3475
|
onClick: i[2] ||= (e) => f.value = "issues"
|
|
3474
3476
|
}, [
|
|
3475
|
-
g(b(
|
|
3477
|
+
g(b(lt), {
|
|
3476
3478
|
size: 14,
|
|
3477
3479
|
"stroke-width": 1.5
|
|
3478
3480
|
}),
|
|
3479
|
-
f.value === "issues" ? (s(), m("span",
|
|
3480
|
-
x.value > 0 ? (s(), m("span",
|
|
3481
|
-
], 14,
|
|
3481
|
+
f.value === "issues" ? (s(), m("span", dc, c(b(u).issues.panelTabLabel), 1)) : w("", !0),
|
|
3482
|
+
x.value > 0 ? (s(), m("span", fc, c(x.value), 1)) : w("", !0)
|
|
3483
|
+
], 14, uc)) : w("", !0)
|
|
3482
3484
|
]),
|
|
3483
|
-
f.value === "content" ? (s(), m("div",
|
|
3485
|
+
f.value === "content" ? (s(), m("div", pc, [e.selectedBlock ? (s(), v(rc, {
|
|
3484
3486
|
key: 0,
|
|
3485
3487
|
block: e.selectedBlock,
|
|
3486
3488
|
onUpdate: i[3] ||= (e) => l("update-block", e),
|
|
3487
3489
|
onDelete: i[4] ||= (e) => l("delete-block"),
|
|
3488
3490
|
onDuplicate: i[5] ||= (e) => l("duplicate-block")
|
|
3489
|
-
}, null, 8, ["block"])) : (s(), m("div",
|
|
3490
|
-
p("div",
|
|
3491
|
+
}, null, 8, ["block"])) : (s(), m("div", mc, [
|
|
3492
|
+
p("div", hc, [g(b(Lt), {
|
|
3491
3493
|
size: 40,
|
|
3492
3494
|
"stroke-width": 1.5
|
|
3493
3495
|
})]),
|
|
3494
|
-
p("h3",
|
|
3495
|
-
p("p",
|
|
3496
|
+
p("h3", gc, c(b(u).sidebar.noSelection), 1),
|
|
3497
|
+
p("p", _c, c(b(u).sidebar.noSelectionHint), 1)
|
|
3496
3498
|
]))])) : w("", !0),
|
|
3497
|
-
f.value === "settings" ? (s(), m("div",
|
|
3499
|
+
f.value === "settings" ? (s(), m("div", vc, [g(xr, {
|
|
3498
3500
|
settings: e.settings,
|
|
3499
3501
|
onUpdate: i[6] ||= (e) => l("update-settings", e)
|
|
3500
3502
|
}, null, 8, ["settings"])])) : w("", !0),
|
|
3501
|
-
f.value === "issues" && y.value ? (s(), m("div",
|
|
3502
|
-
], 10,
|
|
3503
|
+
f.value === "issues" && y.value ? (s(), m("div", yc, [g(b(a))])) : w("", !0)
|
|
3504
|
+
], 10, ic));
|
|
3503
3505
|
}
|
|
3504
|
-
}),
|
|
3506
|
+
}), xc = {
|
|
3505
3507
|
class: "tpl-small-screen-notice tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-6 tpl:py-10 tpl:text-center tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)]",
|
|
3506
3508
|
style: { "z-index": "10001" },
|
|
3507
3509
|
role: "status",
|
|
3508
3510
|
"data-testid": "small-screen-notice"
|
|
3509
|
-
},
|
|
3511
|
+
}, Sc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Cc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Tc = /* @__PURE__ */ f({
|
|
3510
3512
|
__name: "SmallScreenNotice",
|
|
3511
3513
|
setup(e) {
|
|
3512
3514
|
let { t } = U();
|
|
3513
|
-
return (e, n) => (s(), m("div",
|
|
3514
|
-
p("div",
|
|
3515
|
+
return (e, n) => (s(), m("div", xc, [
|
|
3516
|
+
p("div", Sc, [g(b(Bt), {
|
|
3515
3517
|
size: 48,
|
|
3516
3518
|
"stroke-width": 1.5
|
|
3517
3519
|
})]),
|
|
3518
|
-
p("h2",
|
|
3519
|
-
p("p",
|
|
3520
|
+
p("h2", Cc, c(b(t).smallScreen.title), 1),
|
|
3521
|
+
p("p", wc, c(b(t).smallScreen.message), 1)
|
|
3520
3522
|
]));
|
|
3521
3523
|
}
|
|
3522
|
-
}),
|
|
3524
|
+
}), Ec = ["aria-label"], Dc = [
|
|
3523
3525
|
"aria-checked",
|
|
3524
3526
|
"aria-label",
|
|
3525
3527
|
"title",
|
|
3526
3528
|
"onClick"
|
|
3527
|
-
],
|
|
3529
|
+
], Oc = /* @__PURE__ */ f({
|
|
3528
3530
|
__name: "ViewportToggle",
|
|
3529
3531
|
props: { viewport: {} },
|
|
3530
3532
|
emits: ["change"],
|
|
@@ -3566,21 +3568,21 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3566
3568
|
}),
|
|
3567
3569
|
title: e.label,
|
|
3568
3570
|
onClick: (t) => a("change", e.value)
|
|
3569
|
-
}, [e.value === "desktop" ? (s(), v(b(
|
|
3571
|
+
}, [e.value === "desktop" ? (s(), v(b(Bt), {
|
|
3570
3572
|
key: 0,
|
|
3571
3573
|
size: 18,
|
|
3572
3574
|
"stroke-width": 1.5
|
|
3573
|
-
})) : (s(), v(b(
|
|
3575
|
+
})) : (s(), v(b(Gt), {
|
|
3574
3576
|
key: 1,
|
|
3575
3577
|
size: 18,
|
|
3576
3578
|
"stroke-width": 1.5
|
|
3577
|
-
})), p("span", null, c(e.label), 1)], 12,
|
|
3579
|
+
})), p("span", null, c(e.label), 1)], 12, Dc))), 128))], 12, Ec));
|
|
3578
3580
|
}
|
|
3579
|
-
}),
|
|
3581
|
+
}), kc = [
|
|
3580
3582
|
"aria-label",
|
|
3581
3583
|
"title",
|
|
3582
3584
|
"aria-pressed"
|
|
3583
|
-
],
|
|
3585
|
+
], Ac = /*#__PURE__*/ vt(/* @__PURE__ */ f({
|
|
3584
3586
|
__name: "PreviewToggle",
|
|
3585
3587
|
props: { previewMode: { type: Boolean } },
|
|
3586
3588
|
emits: ["change"],
|
|
@@ -3603,7 +3605,7 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3603
3605
|
"leave-to-class": "tpl-icon-leave-to",
|
|
3604
3606
|
mode: "out-in"
|
|
3605
3607
|
}, {
|
|
3606
|
-
default: l(() => [e.previewMode ? (s(), v(b(
|
|
3608
|
+
default: l(() => [e.previewMode ? (s(), v(b(at), {
|
|
3607
3609
|
key: "eye",
|
|
3608
3610
|
size: 18,
|
|
3609
3611
|
"stroke-width": 1.5
|
|
@@ -3613,13 +3615,13 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3613
3615
|
"stroke-width": 1.5
|
|
3614
3616
|
}))]),
|
|
3615
3617
|
_: 1
|
|
3616
|
-
})], 12,
|
|
3618
|
+
})], 12, kc));
|
|
3617
3619
|
}
|
|
3618
|
-
}), [["__scopeId", "data-v-af87d02a"]]),
|
|
3620
|
+
}), [["__scopeId", "data-v-af87d02a"]]), jc = [
|
|
3619
3621
|
"aria-label",
|
|
3620
3622
|
"title",
|
|
3621
3623
|
"aria-pressed"
|
|
3622
|
-
],
|
|
3624
|
+
], Mc = /*#__PURE__*/ vt(/* @__PURE__ */ f({
|
|
3623
3625
|
__name: "DarkModeToggle",
|
|
3624
3626
|
props: { darkMode: { type: Boolean } },
|
|
3625
3627
|
emits: ["change"],
|
|
@@ -3642,37 +3644,37 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3642
3644
|
"leave-to-class": "tpl-icon-leave-to",
|
|
3643
3645
|
mode: "out-in"
|
|
3644
3646
|
}, {
|
|
3645
|
-
default: l(() => [e.darkMode ? (s(), v(b(
|
|
3647
|
+
default: l(() => [e.darkMode ? (s(), v(b(Vt), {
|
|
3646
3648
|
key: "moon",
|
|
3647
3649
|
size: 18,
|
|
3648
3650
|
"stroke-width": 1.5
|
|
3649
|
-
})) : (s(), v(b(
|
|
3651
|
+
})) : (s(), v(b(Jt), {
|
|
3650
3652
|
key: "sun",
|
|
3651
3653
|
size: 18,
|
|
3652
3654
|
"stroke-width": 1.5
|
|
3653
3655
|
}))]),
|
|
3654
3656
|
_: 1
|
|
3655
|
-
})], 12,
|
|
3657
|
+
})], 12, jc));
|
|
3656
3658
|
}
|
|
3657
|
-
}), [["__scopeId", "data-v-f8694f76"]]),
|
|
3659
|
+
}), [["__scopeId", "data-v-f8694f76"]]), Nc = {
|
|
3658
3660
|
class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
|
|
3659
3661
|
style: {
|
|
3660
3662
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
|
|
3661
3663
|
"backdrop-filter": "blur(8px)",
|
|
3662
3664
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
3663
3665
|
}
|
|
3664
|
-
},
|
|
3666
|
+
}, Pc = {
|
|
3665
3667
|
href: "https://github.com/templatical/sdk",
|
|
3666
3668
|
target: "_blank",
|
|
3667
3669
|
rel: "noopener noreferrer",
|
|
3668
3670
|
class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
|
|
3669
3671
|
style: { "text-decoration": "none" }
|
|
3670
|
-
},
|
|
3672
|
+
}, Fc = /* @__PURE__ */ f({
|
|
3671
3673
|
__name: "EditorFooter",
|
|
3672
3674
|
props: { positionClass: {} },
|
|
3673
3675
|
setup(e) {
|
|
3674
3676
|
let { t } = U();
|
|
3675
|
-
return (r, i) => (s(), m("footer", { class: n(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [p("div",
|
|
3677
|
+
return (r, i) => (s(), m("footer", { class: n(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [p("div", Nc, [
|
|
3676
3678
|
p("span", null, c(b(t).footer.poweredBy), 1),
|
|
3677
3679
|
i[0] ||= p("a", {
|
|
3678
3680
|
href: "https://templatical.com",
|
|
@@ -3687,32 +3689,32 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3687
3689
|
alt: ""
|
|
3688
3690
|
}), y(" Templatical ")], -1),
|
|
3689
3691
|
i[1] ||= p("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
|
|
3690
|
-
p("a",
|
|
3692
|
+
p("a", Pc, c(b(t).footer.openSource), 1)
|
|
3691
3693
|
])], 2));
|
|
3692
3694
|
}
|
|
3693
|
-
}),
|
|
3695
|
+
}), Ic = ["aria-labelledby", "data-tpl-theme"], Lc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Rc = ["id"], zc = ["aria-label"], Bc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Vc = [
|
|
3694
3696
|
"id",
|
|
3695
3697
|
"placeholder",
|
|
3696
3698
|
"aria-label",
|
|
3697
3699
|
"aria-activedescendant"
|
|
3698
|
-
],
|
|
3700
|
+
], Hc = {
|
|
3699
3701
|
key: 0,
|
|
3700
3702
|
class: "tpl:flex tpl:gap-1.5 tpl:overflow-x-auto tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2",
|
|
3701
3703
|
"data-testid": "merge-tag-picker-group-pills"
|
|
3702
|
-
},
|
|
3704
|
+
}, Uc = ["data-group-name", "onClick"], Wc = ["aria-label"], Gc = {
|
|
3703
3705
|
key: 0,
|
|
3704
3706
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3705
3707
|
"data-testid": "merge-tag-picker-empty"
|
|
3706
|
-
},
|
|
3708
|
+
}, Kc = {
|
|
3707
3709
|
key: 1,
|
|
3708
3710
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3709
3711
|
"data-testid": "merge-tag-picker-empty"
|
|
3710
|
-
},
|
|
3712
|
+
}, qc = [
|
|
3711
3713
|
"aria-expanded",
|
|
3712
3714
|
"data-group-name",
|
|
3713
3715
|
"data-group-collapsed",
|
|
3714
3716
|
"onClick"
|
|
3715
|
-
],
|
|
3717
|
+
], Jc = { class: "tpl:ml-1 tpl:font-normal" }, Yc = [
|
|
3716
3718
|
"id",
|
|
3717
3719
|
"aria-selected",
|
|
3718
3720
|
"data-selected",
|
|
@@ -3721,13 +3723,13 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3721
3723
|
"title",
|
|
3722
3724
|
"onMousemove",
|
|
3723
3725
|
"onClick"
|
|
3724
|
-
],
|
|
3726
|
+
], Xc = { class: "tpl:text-sm tpl:font-medium" }, Zc = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Qc = {
|
|
3725
3727
|
key: 0,
|
|
3726
3728
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3727
|
-
},
|
|
3729
|
+
}, $c = "tpl-merge-tag-picker-list", el = /* @__PURE__ */ f({
|
|
3728
3730
|
__name: "MergeTagPickerModal",
|
|
3729
3731
|
setup(r) {
|
|
3730
|
-
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());
|
|
3731
3733
|
function F(e) {
|
|
3732
3734
|
return P.value.has(e);
|
|
3733
3735
|
}
|
|
@@ -3837,13 +3839,13 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3837
3839
|
}
|
|
3838
3840
|
}
|
|
3839
3841
|
function se() {
|
|
3840
|
-
if (B.value.length !== 0) return `${
|
|
3842
|
+
if (B.value.length !== 0) return `${$c}-opt-${j.value}`;
|
|
3841
3843
|
}
|
|
3842
3844
|
function ce(e) {
|
|
3843
|
-
return `${
|
|
3845
|
+
return `${$c}-opt-${e}`;
|
|
3844
3846
|
}
|
|
3845
3847
|
let le = C(() => a.tags.value.length === 0), ue = C(() => !le.value && L.value.length === 0), de = C(() => N.value && R.value.length > 1 && !D.value);
|
|
3846
|
-
return (r, i) => (s(), v(
|
|
3848
|
+
return (r, i) => (s(), v(Pt, {
|
|
3847
3849
|
visible: b(a).isOpen.value,
|
|
3848
3850
|
onClose: ee,
|
|
3849
3851
|
onKeydown: oe
|
|
@@ -3851,31 +3853,31 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3851
3853
|
default: l(() => [p("div", {
|
|
3852
3854
|
role: "dialog",
|
|
3853
3855
|
"aria-modal": "true",
|
|
3854
|
-
"aria-labelledby": `${
|
|
3856
|
+
"aria-labelledby": `${$c}-title`,
|
|
3855
3857
|
"data-tpl-theme": b(h),
|
|
3856
3858
|
"data-testid": "merge-tag-picker-modal",
|
|
3857
3859
|
class: "tpl tpl:flex tpl:max-h-[80vh] tpl:w-[min(420px,92vw)] tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
3858
3860
|
style: t(b(f))
|
|
3859
3861
|
}, [
|
|
3860
|
-
p("header",
|
|
3861
|
-
id: `${
|
|
3862
|
+
p("header", Lc, [p("h2", {
|
|
3863
|
+
id: `${$c}-title`,
|
|
3862
3864
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
3863
|
-
}, c(b(o).mergeTag.picker.title), 9,
|
|
3865
|
+
}, c(b(o).mergeTag.picker.title), 9, Rc), p("button", {
|
|
3864
3866
|
type: "button",
|
|
3865
3867
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3866
3868
|
"aria-label": b(o).mergeTag.picker.close,
|
|
3867
3869
|
"data-testid": "merge-tag-picker-close",
|
|
3868
3870
|
onClick: ee
|
|
3869
|
-
}, [g(b(
|
|
3871
|
+
}, [g(b(_t), {
|
|
3870
3872
|
size: 16,
|
|
3871
3873
|
"stroke-width": 2
|
|
3872
|
-
})], 8,
|
|
3873
|
-
p("div",
|
|
3874
|
+
})], 8, zc)]),
|
|
3875
|
+
p("div", Bc, [g(b(nt), {
|
|
3874
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)]",
|
|
3875
3877
|
size: 14,
|
|
3876
3878
|
"stroke-width": 2
|
|
3877
3879
|
}), O(p("input", {
|
|
3878
|
-
id: `${
|
|
3880
|
+
id: `${$c}-search`,
|
|
3879
3881
|
ref_key: "searchInputRef",
|
|
3880
3882
|
ref: x,
|
|
3881
3883
|
"onUpdate:modelValue": i[0] ||= (e) => _.value = e,
|
|
@@ -3883,48 +3885,48 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3883
3885
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)]",
|
|
3884
3886
|
placeholder: b(o).mergeTag.picker.searchPlaceholder,
|
|
3885
3887
|
"aria-label": b(o).mergeTag.picker.searchAriaLabel,
|
|
3886
|
-
"aria-controls":
|
|
3888
|
+
"aria-controls": $c,
|
|
3887
3889
|
"aria-activedescendant": se(),
|
|
3888
3890
|
"data-testid": "merge-tag-picker-search",
|
|
3889
3891
|
onKeydown: i[1] ||= M(A(() => {}, ["prevent"]), ["enter"])
|
|
3890
|
-
}, null, 40,
|
|
3891
|
-
de.value ? (s(), m("div",
|
|
3892
|
+
}, null, 40, Vc), [[k, _.value]])]),
|
|
3893
|
+
de.value ? (s(), m("div", Hc, [(s(!0), m(S, null, e(R.value, (e) => (s(), m("button", {
|
|
3892
3894
|
key: e,
|
|
3893
3895
|
type: "button",
|
|
3894
3896
|
class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
3895
3897
|
"data-testid": "merge-tag-picker-group-pill",
|
|
3896
3898
|
"data-group-name": e,
|
|
3897
3899
|
onClick: (t) => ae(e)
|
|
3898
|
-
}, c(e), 9,
|
|
3900
|
+
}, c(e), 9, Uc))), 128))])) : w("", !0),
|
|
3899
3901
|
p("div", {
|
|
3900
|
-
id:
|
|
3902
|
+
id: $c,
|
|
3901
3903
|
ref_key: "listRef",
|
|
3902
3904
|
ref: ne,
|
|
3903
3905
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
3904
3906
|
role: "listbox",
|
|
3905
3907
|
"aria-label": b(o).mergeTag.picker.title,
|
|
3906
3908
|
"data-testid": "merge-tag-picker-list"
|
|
3907
|
-
}, [le.value ? (s(), m("div",
|
|
3909
|
+
}, [le.value ? (s(), m("div", Gc, c(b(o).mergeTag.picker.empty), 1)) : ue.value ? (s(), m("div", Kc, c(b(o).mergeTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(z.value, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("button", {
|
|
3908
3910
|
key: 0,
|
|
3909
3911
|
ref_for: !0,
|
|
3910
3912
|
ref: (t) => re(e.group, t),
|
|
3911
3913
|
type: "button",
|
|
3912
3914
|
"aria-expanded": !F(e.group),
|
|
3913
|
-
"aria-controls":
|
|
3915
|
+
"aria-controls": $c,
|
|
3914
3916
|
class: "tpl:sticky tpl:top-0 tpl:z-10 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-left tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)]",
|
|
3915
3917
|
"data-testid": "merge-tag-picker-group-header",
|
|
3916
3918
|
"data-group-name": e.group,
|
|
3917
3919
|
"data-group-collapsed": F(e.group) ? "true" : "false",
|
|
3918
3920
|
onClick: (t) => I(e.group)
|
|
3919
3921
|
}, [
|
|
3920
|
-
g(b(
|
|
3922
|
+
g(b($e), {
|
|
3921
3923
|
size: 12,
|
|
3922
3924
|
"stroke-width": 2,
|
|
3923
3925
|
class: n(["tpl:transition-transform", F(e.group) ? "tpl:-rotate-90" : ""])
|
|
3924
3926
|
}, null, 8, ["class"]),
|
|
3925
3927
|
p("span", null, c(e.group), 1),
|
|
3926
|
-
p("span",
|
|
3927
|
-
], 8,
|
|
3928
|
+
p("span", Jc, " (" + c(b(u)(b(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
|
|
3929
|
+
], 8, qc)) : (s(), m("button", {
|
|
3928
3930
|
key: 1,
|
|
3929
3931
|
id: ce(e.index),
|
|
3930
3932
|
type: "button",
|
|
@@ -3939,15 +3941,15 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3939
3941
|
onMousemove: (t) => j.value = e.index,
|
|
3940
3942
|
onClick: (t) => V(e.tag)
|
|
3941
3943
|
}, [
|
|
3942
|
-
p("span",
|
|
3943
|
-
p("span",
|
|
3944
|
-
e.tag.description ? (s(), m("span",
|
|
3945
|
-
], 42,
|
|
3946
|
-
], 12,
|
|
3944
|
+
p("span", Xc, c(e.tag.label), 1),
|
|
3945
|
+
p("span", Zc, c(e.tag.value), 1),
|
|
3946
|
+
e.tag.description ? (s(), m("span", Qc, c(e.tag.description), 1)) : w("", !0)
|
|
3947
|
+
], 42, Yc))], 64))), 128))], 8, Wc)
|
|
3948
|
+
], 12, Ic)]),
|
|
3947
3949
|
_: 1
|
|
3948
3950
|
}, 8, ["visible"]));
|
|
3949
3951
|
}
|
|
3950
|
-
}),
|
|
3952
|
+
}), tl = ["data-logic-keyword"], nl = /* @__PURE__ */ f({
|
|
3951
3953
|
__name: "LogicTagBadge",
|
|
3952
3954
|
props: {
|
|
3953
3955
|
value: {},
|
|
@@ -3964,22 +3966,22 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3964
3966
|
},
|
|
3965
3967
|
"data-testid": "merge-tag-logic-badge",
|
|
3966
3968
|
"data-logic-keyword": r.value
|
|
3967
|
-
}, c(r.value), 9,
|
|
3969
|
+
}, c(r.value), 9, tl)) : w("", !0);
|
|
3968
3970
|
}
|
|
3969
|
-
}),
|
|
3971
|
+
}), rl = ["aria-labelledby", "data-tpl-theme"], il = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, al = ["id"], ol = ["aria-label"], sl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, cl = [
|
|
3970
3972
|
"id",
|
|
3971
3973
|
"placeholder",
|
|
3972
3974
|
"aria-label",
|
|
3973
3975
|
"aria-activedescendant"
|
|
3974
|
-
],
|
|
3976
|
+
], ll = ["aria-label"], ul = {
|
|
3975
3977
|
key: 0,
|
|
3976
3978
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3977
3979
|
"data-testid": "logic-picker-empty"
|
|
3978
|
-
},
|
|
3980
|
+
}, dl = {
|
|
3979
3981
|
key: 1,
|
|
3980
3982
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
|
|
3981
3983
|
"data-testid": "logic-picker-empty"
|
|
3982
|
-
},
|
|
3984
|
+
}, fl = ["data-group-name"], pl = [
|
|
3983
3985
|
"id",
|
|
3984
3986
|
"aria-selected",
|
|
3985
3987
|
"data-selected",
|
|
@@ -3987,19 +3989,19 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
3987
3989
|
"data-logic-kind",
|
|
3988
3990
|
"onMousemove",
|
|
3989
3991
|
"onClick"
|
|
3990
|
-
],
|
|
3992
|
+
], ml = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, hl = { class: "tpl:text-sm tpl:font-medium" }, gl = {
|
|
3991
3993
|
key: 0,
|
|
3992
3994
|
class: "tpl:flex tpl:items-center"
|
|
3993
|
-
},
|
|
3995
|
+
}, _l = {
|
|
3994
3996
|
key: 1,
|
|
3995
3997
|
class: "tpl:flex tpl:items-center tpl:gap-1"
|
|
3996
|
-
},
|
|
3998
|
+
}, vl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, yl = {
|
|
3997
3999
|
key: 0,
|
|
3998
4000
|
class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
|
|
3999
|
-
},
|
|
4001
|
+
}, bl = "tpl-logic-picker-list", xl = /* @__PURE__ */ f({
|
|
4000
4002
|
__name: "LogicTagPickerModal",
|
|
4001
4003
|
setup(r) {
|
|
4002
|
-
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);
|
|
4003
4005
|
function N(e) {
|
|
4004
4006
|
let t = y.value.trim().toLowerCase();
|
|
4005
4007
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
@@ -4082,12 +4084,12 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
4082
4084
|
}
|
|
4083
4085
|
}
|
|
4084
4086
|
function oe(e) {
|
|
4085
|
-
return `${
|
|
4087
|
+
return `${bl}-opt-${e}`;
|
|
4086
4088
|
}
|
|
4087
4089
|
function se() {
|
|
4088
|
-
return V.value.length === 0 ? void 0 : `${
|
|
4090
|
+
return V.value.length === 0 ? void 0 : `${bl}-opt-${j.value}`;
|
|
4089
4091
|
}
|
|
4090
|
-
return (r, i) => (s(), v(
|
|
4092
|
+
return (r, i) => (s(), v(Pt, {
|
|
4091
4093
|
visible: b(a).isOpen.value,
|
|
4092
4094
|
onClose: re,
|
|
4093
4095
|
onKeydown: ae
|
|
@@ -4095,31 +4097,31 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
4095
4097
|
default: l(() => [p("div", {
|
|
4096
4098
|
role: "dialog",
|
|
4097
4099
|
"aria-modal": "true",
|
|
4098
|
-
"aria-labelledby": `${
|
|
4100
|
+
"aria-labelledby": `${bl}-title`,
|
|
4099
4101
|
"data-tpl-theme": b(h),
|
|
4100
4102
|
"data-testid": "logic-picker-modal",
|
|
4101
4103
|
class: "tpl tpl:flex tpl:max-h-[80vh] tpl:w-[min(420px,92vw)] tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
4102
4104
|
style: t(b(f))
|
|
4103
4105
|
}, [
|
|
4104
|
-
p("header",
|
|
4105
|
-
id: `${
|
|
4106
|
+
p("header", il, [p("h2", {
|
|
4107
|
+
id: `${bl}-title`,
|
|
4106
4108
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
4107
|
-
}, c(b(o).logicTag.picker.title), 9,
|
|
4109
|
+
}, c(b(o).logicTag.picker.title), 9, al), p("button", {
|
|
4108
4110
|
type: "button",
|
|
4109
4111
|
class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
4110
4112
|
"aria-label": b(o).logicTag.picker.close,
|
|
4111
4113
|
"data-testid": "logic-picker-close",
|
|
4112
4114
|
onClick: re
|
|
4113
|
-
}, [g(b(
|
|
4115
|
+
}, [g(b(_t), {
|
|
4114
4116
|
size: 16,
|
|
4115
4117
|
"stroke-width": 2
|
|
4116
|
-
})], 8,
|
|
4117
|
-
p("div",
|
|
4118
|
+
})], 8, ol)]),
|
|
4119
|
+
p("div", sl, [g(b(nt), {
|
|
4118
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)]",
|
|
4119
4121
|
size: 14,
|
|
4120
4122
|
"stroke-width": 2
|
|
4121
4123
|
}), O(p("input", {
|
|
4122
|
-
id: `${
|
|
4124
|
+
id: `${bl}-search`,
|
|
4123
4125
|
ref_key: "searchInputRef",
|
|
4124
4126
|
ref: x,
|
|
4125
4127
|
"onUpdate:modelValue": i[0] ||= (e) => _.value = e,
|
|
@@ -4127,25 +4129,25 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
4127
4129
|
class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)]",
|
|
4128
4130
|
placeholder: b(o).logicTag.picker.searchPlaceholder,
|
|
4129
4131
|
"aria-label": b(o).logicTag.picker.searchAriaLabel,
|
|
4130
|
-
"aria-controls":
|
|
4132
|
+
"aria-controls": bl,
|
|
4131
4133
|
"aria-activedescendant": se(),
|
|
4132
4134
|
"data-testid": "logic-picker-search",
|
|
4133
4135
|
onKeydown: i[1] ||= M(A(() => {}, ["prevent"]), ["enter"])
|
|
4134
|
-
}, null, 40,
|
|
4136
|
+
}, null, 40, cl), [[k, _.value]])]),
|
|
4135
4137
|
p("div", {
|
|
4136
|
-
id:
|
|
4138
|
+
id: bl,
|
|
4137
4139
|
ref_key: "listRef",
|
|
4138
4140
|
ref: ne,
|
|
4139
4141
|
class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
|
|
4140
4142
|
role: "listbox",
|
|
4141
4143
|
"aria-label": b(o).logicTag.picker.title,
|
|
4142
4144
|
"data-testid": "logic-picker-list"
|
|
4143
|
-
}, [ee.value ? (s(), m("div",
|
|
4145
|
+
}, [ee.value ? (s(), m("div", ul, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", dl, c(b(o).logicTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(z.value.rows, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("div", {
|
|
4144
4146
|
key: 0,
|
|
4145
4147
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
4146
4148
|
"data-testid": "logic-picker-header",
|
|
4147
4149
|
"data-group-name": e.label
|
|
4148
|
-
}, c(e.label), 9,
|
|
4150
|
+
}, c(e.label), 9, fl)) : (s(), m("button", {
|
|
4149
4151
|
key: 1,
|
|
4150
4152
|
id: oe(e.index),
|
|
4151
4153
|
type: "button",
|
|
@@ -4159,27 +4161,27 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
|
|
|
4159
4161
|
onMousemove: (t) => j.value = e.index,
|
|
4160
4162
|
onClick: (t) => H(e.kind === "tag" ? e.tag : e.pair)
|
|
4161
4163
|
}, [
|
|
4162
|
-
p("span",
|
|
4164
|
+
p("span", ml, [p("span", hl, c(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), m("span", gl, [g(nl, {
|
|
4163
4165
|
value: e.tag.value,
|
|
4164
4166
|
syntax: b(u)
|
|
4165
|
-
}, null, 8, ["value", "syntax"])])) : (s(), m("span",
|
|
4166
|
-
g(
|
|
4167
|
+
}, null, 8, ["value", "syntax"])])) : (s(), m("span", _l, [
|
|
4168
|
+
g(nl, {
|
|
4167
4169
|
value: e.pair.before,
|
|
4168
4170
|
syntax: b(u)
|
|
4169
4171
|
}, null, 8, ["value", "syntax"]),
|
|
4170
4172
|
i[2] ||= p("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
|
|
4171
|
-
g(
|
|
4173
|
+
g(nl, {
|
|
4172
4174
|
value: e.pair.after,
|
|
4173
4175
|
syntax: b(u)
|
|
4174
4176
|
}, null, 8, ["value", "syntax"])
|
|
4175
4177
|
]))]),
|
|
4176
|
-
p("span",
|
|
4177
|
-
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span",
|
|
4178
|
-
], 42,
|
|
4179
|
-
], 12,
|
|
4178
|
+
p("span", vl, c(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
|
|
4179
|
+
(e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span", yl, c(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
|
|
4180
|
+
], 42, pl))], 64))), 128))], 8, ll)
|
|
4181
|
+
], 12, rl)]),
|
|
4180
4182
|
_: 1
|
|
4181
4183
|
}, 8, ["visible"]));
|
|
4182
4184
|
}
|
|
4183
4185
|
});
|
|
4184
4186
|
//#endregion
|
|
4185
|
-
export {
|
|
4187
|
+
export { Ac as a, bc as c, sn as d, Yt as f, Mc as i, vn as l, el as n, Oc as o, Ut as p, Fc as r, Tc as s, xl as t, cn as u };
|