@templatical/editor 0.16.2 → 0.16.4

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.
Files changed (130) hide show
  1. package/dist/{AiChatSidebar-EaPCeDXr.js → AiChatSidebar-CYAbVB2G.js} +7 -7
  2. package/dist/{AiFeatureMenu-DfTYyExg.js → AiFeatureMenu-BPCkrHAS.js} +4 -4
  3. package/dist/{BlockIssueBadge-CZYgn-qg.js → BlockIssueBadge-BLytBabN.js} +2 -2
  4. package/dist/{CloudEditor-BQyZ_nFg.js → CloudEditor-v8ARYaFW.js} +15 -15
  5. package/dist/{CollaboratorBar-DeP7K-zk.js → CollaboratorBar-BQzKZ2zo.js} +2 -2
  6. package/dist/ColorPicker-Cab6U2sH.js +474 -0
  7. package/dist/{CommentsSidebar-DDKiFsSq.js → CommentsSidebar-C_XLBbo3.js} +8 -8
  8. package/dist/{CountdownToolbar-nY9H0BKd.js → CountdownToolbar-q3umZ7TZ.js} +53 -67
  9. package/dist/{DesignReferenceSidebar-D6TfC176.js → DesignReferenceSidebar-Bh9uAZ4B.js} +5 -5
  10. package/dist/{IssuesPanel-CQQipLQP.js → IssuesPanel-DltSuU6H.js} +5 -5
  11. package/dist/{ModuleBrowserModal-CkeYw1e3.js → ModuleBrowserModal-CzzChPmN.js} +6 -6
  12. package/dist/{ModulePreviewCanvas-BIMFyYaa.js → ModulePreviewCanvas-C0Q2n3FL.js} +1 -1
  13. package/dist/{NumberWithSuffix-BoZyUoNz.js → NumberWithSuffix-Bhm2ByHs.js} +1 -1
  14. package/dist/{ParagraphEditor-DGsTFMxg.js → ParagraphEditor-BhsBi8p8.js} +26 -26
  15. package/dist/{RichTextEditorContent-BB_n8vgB.js → RichTextEditorContent-ef0fdj6e.js} +3 -3
  16. package/dist/{SaveModuleDialog-Cypt_qOB.js → SaveModuleDialog-BNN3dcxD.js} +24 -23
  17. package/dist/{SnapshotHistory-DQTH8TCS.js → SnapshotHistory-tWvgMCe6.js} +6 -6
  18. package/dist/{TemplateScoringPanel-C8VOC6gn.js → TemplateScoringPanel-ZhObHWeb.js} +10 -10
  19. package/dist/{TestEmailModal-DqxrL-U9.js → TestEmailModal-EdwEcsrD.js} +3 -3
  20. package/dist/{TitleEditor-DoGgnrcb.js → TitleEditor-DdvRepBq.js} +4 -4
  21. package/dist/ToggleSwitch-DUNuUPsZ.js +37 -0
  22. package/dist/{TplModal-Ca-29YDD.js → TplModal-Niu4Y96-.js} +1 -1
  23. package/dist/{blockTypeIcons-DVJXg5si.js → blockTypeIcons-DHcYPMB8.js} +2 -2
  24. package/dist/bundle-stats.json +7 -7
  25. package/dist/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +2 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-roPglhox.js → AiFeatureMenu-AoUwsqor.js} +8 -8
  27. package/dist/cdn/chunks/{AiFeatureMenu-roPglhox.js.map → AiFeatureMenu-AoUwsqor.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-DW_Tt7Wg.js → BlockIssueBadge-DZU3CfEN.js} +5 -5
  29. package/dist/cdn/chunks/{BlockIssueBadge-DW_Tt7Wg.js.map → BlockIssueBadge-DZU3CfEN.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-CX6y1k3C.js → CloudEditor-BrZLF_m1.js} +159 -159
  31. package/dist/cdn/chunks/{CloudEditor-CX6y1k3C.js.map → CloudEditor-BrZLF_m1.js.map} +1 -1
  32. package/dist/cdn/chunks/{CollaboratorBar-Dyrab63H.js → CollaboratorBar-BAC56ez6.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-Dyrab63H.js.map → CollaboratorBar-BAC56ez6.js.map} +1 -1
  34. package/dist/cdn/chunks/ColorPicker-DLEoT419.js +471 -0
  35. package/dist/cdn/chunks/ColorPicker-DLEoT419.js.map +1 -0
  36. package/dist/cdn/chunks/{CountdownBlock-Bul4tczj.js → CountdownBlock-BOF9aTXF.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownBlock-Bul4tczj.js.map → CountdownBlock-BOF9aTXF.js.map} +1 -1
  38. package/dist/cdn/chunks/CountdownToolbar-C9bQ5k4E.js +198 -0
  39. package/dist/cdn/chunks/CountdownToolbar-C9bQ5k4E.js.map +1 -0
  40. package/dist/cdn/chunks/{IssuesPanel-BhHU-hq3.js → IssuesPanel-CHwYahKK.js} +7 -7
  41. package/dist/cdn/chunks/{IssuesPanel-BhHU-hq3.js.map → IssuesPanel-CHwYahKK.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModuleBrowserModal-BGd5Ryyx.js → ModuleBrowserModal-iSXXpAUk.js} +6 -6
  43. package/dist/cdn/chunks/{ModuleBrowserModal-BGd5Ryyx.js.map → ModuleBrowserModal-iSXXpAUk.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-Hx6SCCjB.js → ModulePreviewCanvas-DIy0MZj2.js} +10 -10
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-Hx6SCCjB.js.map → ModulePreviewCanvas-DIy0MZj2.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-BImuhc9K.js → NumberWithSuffix-vPdOG2lO.js} +2 -2
  47. package/dist/cdn/chunks/{NumberWithSuffix-BImuhc9K.js.map → NumberWithSuffix-vPdOG2lO.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-K2vENidm.js → ParagraphEditor-D7znI_X1.js} +146 -146
  49. package/dist/cdn/chunks/{ParagraphEditor-K2vENidm.js.map → ParagraphEditor-D7znI_X1.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-B_w3u5lN.js → RichTextEditorContent-DVwGHbO6.js} +6 -6
  51. package/dist/cdn/chunks/{RichTextEditorContent-B_w3u5lN.js.map → RichTextEditorContent-DVwGHbO6.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-Cw-182CB.js → SaveModuleDialog-D2_qPtE9.js} +32 -31
  53. package/dist/cdn/chunks/SaveModuleDialog-D2_qPtE9.js.map +1 -0
  54. package/dist/cdn/chunks/{TitleEditor-CUKlo_Zj.js → TitleEditor-CKjZ6Cgp.js} +8 -8
  55. package/dist/cdn/chunks/{TitleEditor-CUKlo_Zj.js.map → TitleEditor-CKjZ6Cgp.js.map} +1 -1
  56. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +39 -0
  57. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +1 -0
  58. package/dist/cdn/chunks/{blockTypeIcons-Cx1FAqL6.js → blockTypeIcons-BKecgdgr.js} +8 -8
  59. package/dist/cdn/chunks/{blockTypeIcons-Cx1FAqL6.js.map → blockTypeIcons-BKecgdgr.js.map} +1 -1
  60. package/dist/cdn/chunks/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +3 -2
  61. package/dist/cdn/chunks/ca-DI1ViqMa.js.map +1 -0
  62. package/dist/{de-Cy8FB-Ii.js → cdn/chunks/de-q9lTCMre.js} +4 -1
  63. package/dist/cdn/chunks/de-q9lTCMre.js.map +1 -0
  64. package/dist/cdn/chunks/{en-Bu-zS_5o.js → en-CR4LItrX.js} +3 -2
  65. package/dist/cdn/chunks/en-CR4LItrX.js.map +1 -0
  66. package/dist/cdn/chunks/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +3 -2
  67. package/dist/cdn/chunks/es-CEt-lrGd.js.map +1 -0
  68. package/dist/cdn/chunks/{extensions-DSxG2wYf.js → extensions-OZTN_skA.js} +19 -19
  69. package/dist/cdn/chunks/{extensions-DSxG2wYf.js.map → extensions-OZTN_skA.js.map} +1 -1
  70. package/dist/cdn/chunks/{features-C-cjT_8L.js → features-Bo7H8WNI.js} +370 -368
  71. package/dist/cdn/chunks/features-Bo7H8WNI.js.map +1 -0
  72. package/dist/cdn/chunks/{icons-ay0_fN-T.js → icons-BrNSrnyT.js} +26 -26
  73. package/dist/cdn/chunks/{icons-ay0_fN-T.js.map → icons-BrNSrnyT.js.map} +1 -1
  74. package/dist/cdn/chunks/{media-library-CkmqPdO4.js → media-library-Cec5DMR3.js} +101 -101
  75. package/dist/cdn/chunks/{media-library-CkmqPdO4.js.map → media-library-Cec5DMR3.js.map} +1 -1
  76. package/dist/cdn/chunks/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +3 -2
  77. package/dist/cdn/chunks/pt-BR-DvBHY0AA.js.map +1 -0
  78. package/dist/cdn/chunks/{quality-CDNrMw2A.js → quality-Dd2iYgRf.js} +435 -435
  79. package/dist/cdn/chunks/{quality-CDNrMw2A.js.map → quality-Dd2iYgRf.js.map} +1 -1
  80. package/dist/cdn/chunks/{renderer-JQ91A09w.js → renderer-Br-qXdnQ.js} +15 -12
  81. package/dist/cdn/chunks/{renderer-JQ91A09w.js.map → renderer-Br-qXdnQ.js.map} +1 -1
  82. package/dist/cdn/chunks/{src-Cehu7Hqx.js → src-BH8PABpF.js} +4 -4
  83. package/dist/cdn/chunks/{src-Cehu7Hqx.js.map → src-BH8PABpF.js.map} +1 -1
  84. package/dist/cdn/chunks/{styles-DBjy3lz9.js → styles-nqo5BynI.js} +975 -973
  85. package/dist/cdn/chunks/styles-nqo5BynI.js.map +1 -0
  86. package/dist/cdn/editor.css +1 -1
  87. package/dist/cdn/editor.js +35 -35
  88. package/dist/{check-D1zYtCPK.js → check-Cg6Mc2pP.js} +1 -1
  89. package/dist/{chevron-down-ByXpufZD.js → chevron-down-dClfxKrJ.js} +1 -1
  90. package/dist/{circle-alert-CjcAORUw.js → circle-alert-Bhzm-fNA.js} +1 -1
  91. package/dist/{clock-5lWLadUn.js → clock-m7TwQw4b.js} +1 -1
  92. package/dist/{dist-CFOQvhSC.js → color-DhoxCSMv.js} +9 -1
  93. package/dist/{createLucideIcon-Bh9xOmlW.js → createLucideIcon-FSF4peHQ.js} +2 -2
  94. package/dist/{cdn/chunks/de-Cy8FB-Ii.js → de-q9lTCMre.js} +2 -3
  95. package/dist/{en-Bu-zS_5o.js → en-CR4LItrX.js} +2 -1
  96. package/dist/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +2 -1
  97. package/dist/{image-up-Bj_nes3f.js → image-up-CDEgJqwA.js} +1 -1
  98. package/dist/{info-BhSQCxBV.js → info-BNP8yGsK.js} +1 -1
  99. package/dist/{list-checks-CgxyUg7i.js → list-checks-jepi4iYr.js} +1 -1
  100. package/dist/{loader-circle-DFU0HPAa.js → loader-circle-BT38qSm3.js} +1 -1
  101. package/dist/{message-circle-BEBsCHnk.js → message-circle-BAHcL9S-.js} +1 -1
  102. package/dist/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +2 -1
  103. package/dist/{refresh-cw--lvWGy0_.js → refresh-cw-as5Bmg4X.js} +1 -1
  104. package/dist/{scan-line-QgyDIgn_.js → scan-line-IAMjPtRw.js} +1 -1
  105. package/dist/{send-BMyisUim.js → send-DvMay6bt.js} +1 -1
  106. package/dist/{shield-check-C49M20le.js → shield-check-YYDhGroE.js} +1 -1
  107. package/dist/{sparkles-DV7Dman6.js → sparkles-CCwQMMMZ.js} +1 -1
  108. package/dist/style.css +1 -1
  109. package/dist/{styles-mvx3k1hf.js → styles-DN4J7w-C.js} +717 -715
  110. package/dist/templatical-editor.js +9 -9
  111. package/dist/{text-align-start-BMU70uAm.js → text-align-start-BwsA6QzC.js} +11 -11
  112. package/dist/{trash-2-B6M659Ey.js → trash-2-CRBDolnR.js} +1 -1
  113. package/dist/{triangle-alert-D1lzx6ds.js → triangle-alert-B2g0ALvq.js} +1 -1
  114. package/dist/{upload-3A1oZtOR.js → upload-BKg6hDRW.js} +1 -1
  115. package/dist/{useEditorCore-DtZkR7Vk.js → useEditorCore-DBq2689h.js} +249 -255
  116. package/dist/{x-CG_NV3nP.js → x-Ctg_250T.js} +1 -1
  117. package/package.json +8 -8
  118. package/dist/ColorPicker-CXAbjTaG.js +0 -446
  119. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js +0 -443
  120. package/dist/cdn/chunks/ColorPicker-BggAWrc9.js.map +0 -1
  121. package/dist/cdn/chunks/CountdownToolbar-DYvATR0J.js +0 -212
  122. package/dist/cdn/chunks/CountdownToolbar-DYvATR0J.js.map +0 -1
  123. package/dist/cdn/chunks/SaveModuleDialog-Cw-182CB.js.map +0 -1
  124. package/dist/cdn/chunks/ca-B3eR47lE.js.map +0 -1
  125. package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +0 -1
  126. package/dist/cdn/chunks/en-Bu-zS_5o.js.map +0 -1
  127. package/dist/cdn/chunks/es-CD3ZD6hK.js.map +0 -1
  128. package/dist/cdn/chunks/features-C-cjT_8L.js.map +0 -1
  129. package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +0 -1
  130. package/dist/cdn/chunks/styles-DBjy3lz9.js.map +0 -1
@@ -1,25 +1,25 @@
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-DtZkR7Vk.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-DBq2689h.js";
5
5
  import { c as Oe, m as ke } from "./dist-DYv_Pttj.js";
6
6
  import { D as Ae, F as je, I as Me, L as Ne, N as Pe, P as Fe, T as Ie, a as Le, d as Re, f as ze, g as Be, k as Ve, m as He, n as Ue, o as We, p as Ge, s as Ke, u as qe, w as Je, x as Ye } from "./keys-BbDgCU6K.js";
7
7
  import { t as U } from "./useI18n-eR1yVW0v.js";
8
- import { t as W } from "./createLucideIcon-Bh9xOmlW.js";
9
- import { n as Xe, t as Ze } from "./scan-line-QgyDIgn_.js";
10
- import { t as Qe } from "./chevron-down-ByXpufZD.js";
11
- import { t as $e } from "./circle-alert-CjcAORUw.js";
12
- import { i as et, n as tt, r as nt, t as rt } from "./blockTypeIcons-DVJXg5si.js";
13
- import { n as it, t as at } from "./refresh-cw--lvWGy0_.js";
14
- import { t as ot } from "./image-up-Bj_nes3f.js";
15
- import { t as st } from "./info-BhSQCxBV.js";
16
- import { t as ct } from "./list-checks-CgxyUg7i.js";
17
- import { t as lt } from "./loader-circle-DFU0HPAa.js";
18
- import { t as ut } from "./sparkles-DV7Dman6.js";
19
- import { n as dt, r as ft, t as pt } from "./text-align-start-BMU70uAm.js";
20
- import { t as mt } from "./trash-2-B6M659Ey.js";
21
- import { t as ht } from "./upload-3A1oZtOR.js";
22
- import { t as gt } from "./x-CG_NV3nP.js";
8
+ import { t as W } from "./createLucideIcon-FSF4peHQ.js";
9
+ import { n as Xe, t as Ze } from "./scan-line-IAMjPtRw.js";
10
+ import { t as Qe } from "./chevron-down-dClfxKrJ.js";
11
+ import { t as $e } from "./circle-alert-Bhzm-fNA.js";
12
+ import { i as et, n as tt, r as nt, t as rt } from "./blockTypeIcons-DHcYPMB8.js";
13
+ import { n as it, t as at } from "./refresh-cw-as5Bmg4X.js";
14
+ import { t as ot } from "./image-up-CDEgJqwA.js";
15
+ import { t as st } from "./info-BNP8yGsK.js";
16
+ import { t as ct } from "./list-checks-jepi4iYr.js";
17
+ import { t as lt } from "./loader-circle-BT38qSm3.js";
18
+ import { t as ut } from "./sparkles-CCwQMMMZ.js";
19
+ import { n as dt, r as ft, t as pt } from "./text-align-start-BwsA6QzC.js";
20
+ import { t as mt } from "./trash-2-CRBDolnR.js";
21
+ import { t as ht } from "./upload-BKg6hDRW.js";
22
+ import { t as gt } from "./x-Ctg_250T.js";
23
23
  import { t as _t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
24
24
  import { t as vt } from "./useCloudI18n-WbfVWq5k.js";
25
25
  import { t as yt } from "./useMergeTag-C3GfSktg.js";
@@ -27,16 +27,17 @@ import { t as bt } from "./useAliveFlag-C43EhZFY.js";
27
27
  import { t as xt } from "./readableTextColor-f8Kykfnh.js";
28
28
  import { t as St } from "./CountdownBlock-173fiO5Z.js";
29
29
  import { t as Ct } from "./usePopoverRoot-C1j0D7cc.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-CXAbjTaG.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-Cab6U2sH.js";
31
31
  import { n as At, r as jt } from "./MergeTagSuggestion-DrT3LiZ4.js";
32
- import { n as X, r as Z, t as Mt } from "./NumberWithSuffix-BoZyUoNz.js";
33
- import { t as Nt } from "./TplModal-Ca-29YDD.js";
34
- var Pt = W("circle", [["circle", {
32
+ import { t as X } from "./ToggleSwitch-DUNuUPsZ.js";
33
+ import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-Bhm2ByHs.js";
34
+ import { t as Pt } from "./TplModal-Niu4Y96-.js";
35
+ var Ft = W("circle", [["circle", {
35
36
  cx: "12",
36
37
  cy: "12",
37
38
  r: "10",
38
39
  key: "1mglay"
39
- }]]), Ft = W("globe", [
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
- ]), It = W("layout-template", [
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
- ]), Lt = W("lock-open", [["rect", {
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
- }]]), Rt = W("lock", [["rect", {
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
- }]]), zt = W("monitor", [
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
- ]), Bt = W("moon", [["path", {
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
- }]]), Vt = W("panel-top", [["rect", {
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
- }]]), Ht = W("rotate-ccw", [["path", {
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
- }]]), Ut = W("settings", [["path", {
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
- }]]), Wt = W("smartphone", [["rect", {
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
- }]]), Gt = W("square-plus", [
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
- ]), Kt = W("square", [["rect", {
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
- }]]), qt = W("sun", [
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 Jt(e) {
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 Yt = ["aria-label"], Xt = {
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
- }, Zt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Qt = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, $t = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, en = {
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
- }, tn = {
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
- }, nn = { class: "tpl:relative" }, rn = {
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
- }, an = 96, on = /*#__PURE__*/ _t(/* @__PURE__ */ f({
255
+ }, on = 96, sn = /*#__PURE__*/ _t(/* @__PURE__ */ f({
255
256
  __name: "Canvas",
256
257
  props: {
257
258
  viewport: {},
@@ -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 + an * 2), I = C(() => {
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,14 +377,14 @@ var Yt = ["aria-label"], Xt = {
376
377
  onDragleave: V,
377
378
  onDrop: ee
378
379
  }, {
379
- default: l(() => [L.value ? (s(), m("div", Xt, [
380
- p("div", Zt, [g(b(Gt), {
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", Qt, c(b(h).canvas.noBlocks), 1),
385
- p("p", $t, c(b(h).canvas.dragHint), 1),
386
- A.value && b(_) ? (s(), m("p", en, [
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)]",
@@ -394,7 +395,7 @@ var Yt = ["aria-label"], Xt = {
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", tn, [
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)]",
@@ -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", nn, [H(e.id) ? (s(), m("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({
@@ -421,7 +422,7 @@ var Yt = ["aria-label"], Xt = {
421
422
  backgroundColor: H(e.id).color,
422
423
  color: b(xt)(H(e.id).color)
423
424
  })
424
- }, [p("span", rn, c(H(e.id).name.charAt(0)), 1), y(" " + c(H(e.id).name), 1)], 4)], 4)) : w("", !0), g(we, {
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,9 +453,9 @@ var Yt = ["aria-label"], Xt = {
452
453
  "modelValue",
453
454
  "disabled",
454
455
  "class"
455
- ])], 6)], 12, Yt)], 4));
456
+ ])], 6)], 12, Xt)], 4));
456
457
  }
457
- }), [["__scopeId", "data-v-b440d13f"]]), sn = f({
458
+ }), [["__scopeId", "data-v-b440d13f"]]), cn = f({
458
459
  name: "CustomBlockStylesheets",
459
460
  setup() {
460
461
  let e = E(ze, null);
@@ -467,7 +468,7 @@ var Yt = ["aria-label"], Xt = {
467
468
  });
468
469
  //#endregion
469
470
  //#region src/utils/resolvePaletteBlocks.ts
470
- function cn(e, t) {
471
+ function ln(e, t) {
471
472
  if (!t || t.length === 0) return {
472
473
  items: e,
473
474
  unknown: []
@@ -486,24 +487,24 @@ 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 ln = ["aria-label"], un = {
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
- }, dn = ["aria-label"], fn = {
493
+ }, fn = ["aria-label"], pn = {
493
494
  key: 0,
494
495
  class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
495
- }, pn = {
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
- }, mn = [
499
+ }, hn = [
499
500
  "data-palette-type",
500
501
  "aria-label",
501
502
  "onClick",
502
503
  "onKeydown"
503
- ], hn = { 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" }, gn = {
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
- }, _n = /* @__PURE__ */ f({
507
+ }, vn = /* @__PURE__ */ f({
507
508
  __name: "Sidebar",
508
509
  setup(n) {
509
510
  let { t: r, format: a } = U(), { t: u } = vt(), f = E(Re, []), h = E(Ve, void 0), _ = E(Le, void 0), y = E(He, null), x = E(Ke, {}), T = C(() => (x.savedModules?.moduleCount.value ?? 0) > 0), D = d(!1), O = d(!1);
@@ -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(() => cn(F.value, h)), L = C(() => I.value.items), R = /* @__PURE__ */ new Set();
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,7 +577,7 @@ 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", un, [p("button", {
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)]",
@@ -588,9 +589,9 @@ var ln = ["aria-label"], un = {
588
589
  "stroke-width": 1.5,
589
590
  class: "tpl:shrink-0"
590
591
  }),
591
- D.value ? (s(), m("span", fn, c(b(u).modules.title), 1)) : w("", !0),
592
- D.value ? (s(), m("span", pn, c(b(x).savedModules?.moduleCount.value ?? 0), 1)) : w("", !0)
593
- ], 12, dn)])) : w("", !0), g(b(fe), {
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", hn, [b(rt)[e.type] ? (s(), v(o(b(rt)[e.type]), {
618
+ }, [p("div", gn, [b(rt)[e.type] ? (s(), v(o(b(rt)[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", gn, c(e.label), 1)) : w("", !0)], 44, mn))), 128))]),
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, ln));
628
+ }, 8, ["model-value"])], 44, un));
628
629
  }
629
630
  });
630
631
  //#endregion
631
632
  //#region src/utils/mergeTagTrigger.ts
632
- function vn(e, t, n, r) {
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 yn = /* @__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(".");
646
- function bn(e, t, n) {
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 xn(e, t) {
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 yn) c[e] = l[e];
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 bn(y, h.top, h.bottom);
677
+ if (i) return xn(y, h.top, h.bottom);
677
678
  let b = h.top + p + g - e.scrollTop;
678
- return bn(y, b, b + v);
679
+ return xn(y, b, b + v);
679
680
  }
680
681
  //#endregion
681
682
  //#region src/composables/useMergeTagAutocomplete.ts
682
- var Sn = /* @__PURE__ */ new Set([
683
+ var Cn = /* @__PURE__ */ new Set([
683
684
  "ArrowLeft",
684
685
  "ArrowRight",
685
686
  "Home",
686
687
  "End"
687
688
  ]);
688
- function Cn(e) {
689
+ function wn(e) {
689
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(je, null), h = At((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", Ct()), 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 vn(t, e.selectionStart ?? t.length, d, f);
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 = () => xn(e, n.triggerStart), a = (t) => v(e, n, t);
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) : Sn.has(e.key) ? (h.close(), !1) : h.handleKeyDown(e) : !1;
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 wn(e) {
743
+ function Tn(e) {
743
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 } = yt(), { 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 = Cn({
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 Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip"], On = {
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
- }, kn = ["aria-label", "title"], An = /* @__PURE__ */ f({
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, En)) : e.type === "logicMergeTag" ? (s(), m("span", {
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,7 +907,7 @@ 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, Dn)) : (s(), m("span", On, c(e.value), 1))], 64))), 128)), p("button", {
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,
@@ -915,13 +916,13 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
915
916
  }, [g(b(gt), {
916
917
  size: 12,
917
918
  "stroke-width": 2.5
918
- })], 8, kn)], 42, Tn));
919
+ })], 8, An)], 42, En));
919
920
  }
920
- }), jn = [
921
+ }), Mn = [
921
922
  "aria-label",
922
923
  "title",
923
924
  "disabled"
924
- ], Mn = "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)]", Nn = /* @__PURE__ */ f({
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,7 +930,7 @@ 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([Mn, "tpl:mt-1.5"]),
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,
@@ -938,13 +939,13 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
938
939
  }, [g(b(Ze), {
939
940
  size: 12,
940
941
  "stroke-width": 2
941
- }), y(" " + c(b(t).mergeTag.insertShort), 1)], 42, jn));
942
+ }), y(" " + c(b(t).mergeTag.insertShort), 1)], 42, Mn));
942
943
  }
943
- }), Pn = [
944
+ }), Fn = [
944
945
  "aria-label",
945
946
  "title",
946
947
  "disabled"
947
- ], Fn = "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)]", In = /* @__PURE__ */ f({
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,7 +953,7 @@ 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([Fn, "tpl:mt-1.5"]),
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,
@@ -962,19 +963,19 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
962
963
  }, [g(b(Xe), {
963
964
  size: 12,
964
965
  "stroke-width": 2
965
- }), y(" " + c(b(t).logicTag.insertShort), 1)], 42, Pn));
966
+ }), y(" " + c(b(t).logicTag.insertShort), 1)], 42, Fn));
966
967
  }
967
- }), Ln = { key: 0 }, Rn = {
968
+ }), Rn = { key: 0 }, zn = {
968
969
  key: 0,
969
970
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
970
- }, zn = { key: 1 }, Bn = [
971
+ }, Bn = { key: 1 }, Vn = [
971
972
  "value",
972
973
  "placeholder",
973
974
  "rows"
974
- ], Vn = {
975
+ ], Hn = {
975
976
  key: 0,
976
977
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
977
- }, Hn = "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)]", Un = "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)]", Wn = /* @__PURE__ */ f({
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 } = wn({
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", Ln, [g(An, {
992
+ return (t, r) => b(c) && !b(_) ? (s(), m("div", Rn, [g(jn, {
992
993
  segments: b(o),
993
- "display-class": Un,
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", Rn, [b(l) ? (s(), v(Nn, {
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(In, {
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", zn, [p("textarea", {
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(Hn),
1012
+ class: n(Un),
1012
1013
  value: e.modelValue,
1013
1014
  placeholder: e.placeholder,
1014
1015
  rows: e.rows,
@@ -1016,17 +1017,17 @@ 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, Bn), b(l) || b(f) ? (s(), m("div", Vn, [b(l) ? (s(), v(Nn, {
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(In, {
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
- }), Gn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Kn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, qn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Jn = { class: "tpl:mb-3.5" }, Yn = { 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)]" }, Xn = ["onClick"], Zn = { class: "tpl:flex tpl:items-stretch" }, Qn = ["value"], $n = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, er = { class: "tpl:mb-3.5" }, tr = { class: "tpl:mb-3.5" }, nr = { class: "tpl:mb-3.5" }, rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-between tpl:gap-2" }, ar = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, or = ["aria-checked", "aria-label"], sr = ["value"], cr = ["value"], lr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ur = ["value"], dr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, fr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, pr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, mr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, hr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, gr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, _r = { 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)]" }, vr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, yr = { class: "tpl:mb-1 tpl:last:mb-0" }, br = { class: "tpl:mb-1 tpl:last:mb-0" }, xr = { class: "tpl:mb-1 tpl:last:mb-0" }, Sr = 150, Cr = /* @__PURE__ */ f({
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"],
@@ -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", Gn, [p("div", Kn, [
1053
+ return (i, a) => (s(), m("aside", Kn, [p("div", qn, [
1053
1054
  p("div", { class: n(b(kt)) }, [
1054
- p("div", qn, [g(b(Kt), {
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", Jn, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.widthPreset), 3), p("div", Yn, [(s(), m(S, null, e(h, (e) => p("button", {
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, Xn)), 64))])]),
1069
- p("div", null, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.customWidth), 3), p("div", Zn, [p("input", {
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, Qn), p("span", { class: n(b(q)) }, "px", 2)])])
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", $n, [g(b(Pt), {
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", er, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.backgroundColor), 3), g(Y, {
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", tr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.textColor), 3), g(Y, {
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", nr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.linkColor), 3), g(Y, {
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", rr, [p("label", ir, [p("span", ar, c(b(l).templateSettings.linkUnderline), 1), p("button", {
1100
- type: "button",
1101
- role: "switch",
1102
- "aria-checked": r.settings.linkUnderline,
1103
- "aria-label": b(l).templateSettings.linkUnderline,
1104
- class: n(["tpl:relative tpl:inline-flex tpl:h-5 tpl:w-9 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-full tpl:border-2 tpl:border-transparent tpl:transition-colors tpl:duration-200", r.settings.linkUnderline ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]"]),
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, cr))), 128))], 42, sr)])
1113
+ }, c(e.label), 9, or))), 128))], 42, ar)])
1115
1114
  ], 2),
1116
- p("div", { class: n(b(kt)) }, [p("div", lr, [g(b(Ft), {
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, ur),
1132
- p("p", dr, c(b(l).templateSettings.contentLocaleHint), 1)
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", fr, [g(b(it), {
1133
+ p("div", { class: n(b(kt)) }, [p("div", ur, [g(b(it), {
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(Wn, {
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", pr, [p("span", mr, c(b(l).templateSettings.preheaderTextHint), 1), p("span", hr, c((r.settings.preheaderText ?? "").length) + "/" + c(Sr), 1)])])], 2),
1144
- p("div", gr, [p("div", _r, [g(b(st), {
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(st), {
1145
1144
  size: 14,
1146
1145
  "stroke-width": 2
1147
- }), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul", vr, [
1148
- p("li", yr, c(b(l).templateSettings.tip1), 1),
1149
- p("li", br, c(b(l).templateSettings.tip2), 1),
1150
- p("li", xr, c(b(l).templateSettings.tip3), 1)
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
- }), wr = { key: 0 }, Tr = {
1153
+ }), Sr = { key: 0 }, Cr = {
1155
1154
  key: 0,
1156
1155
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1157
- }, Er = { key: 1 }, Dr = [
1156
+ }, wr = { key: 1 }, Tr = [
1158
1157
  "type",
1159
1158
  "value",
1160
1159
  "placeholder"
1161
- ], Or = {
1160
+ ], Er = {
1162
1161
  key: 0,
1163
1162
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1164
- }, kr = "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__*/ _t(/* @__PURE__ */ f({
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__*/ _t(/* @__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 } = wn({
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", wr, [g(An, {
1181
+ return (t, r) => b(c) && !b(_) ? (s(), m("div", Sr, [g(jn, {
1183
1182
  segments: b(o),
1184
- "display-class": kr,
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", Tr, [b(l) ? (s(), v(Nn, {
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(In, {
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", Er, [p("input", {
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, Dr), b(l) || b(f) ? (s(), m("div", Or, [b(l) ? (s(), v(Nn, {
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(In, {
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"]]), Ar = { class: "tpl:mb-3.5" }, jr = ["value"], Mr = { value: "" }, Nr = ["value"], Pr = { class: "tpl:mb-3.5" }, Fr = { class: "tpl:mb-3.5" }, Ir = {
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
- }, $r = ["value"], ei = 200, ti = /* @__PURE__ */ f({
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 : ei);
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", Ar, [p("label", { class: n(b(K)) }, c(b(o).button.fontFamily), 3), p("select", {
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", Mr, c(b(o).button.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("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, Nr))), 128))], 42, jr)]),
1264
- p("div", Pr, [p("label", { class: n(b(K)) }, c(b(o).button.text), 3), g($, {
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", Fr, [
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(), m("label", Ir, [p("input", {
1278
- type: "checkbox",
1279
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1280
- checked: t.block.openInNewTab ?? !1,
1281
- onChange: i[3] ||= (e) => u("openInNewTab", e.target.checked)
1282
- }, null, 40, Lr), y(" " + c(b(o).button.openInNewTab), 1)])) : w("", !0)
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", Rr, [p("label", { class: n(b(K)) }, c(b(o).button.background), 3), g(Y, {
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", zr, [p("label", { class: n(b(K)) }, c(b(o).button.textColor), 3), g(Y, {
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", Br, [p("div", Vr, [p("label", { class: n(b(K)) }, c(b(o).button.borderRadius), 3), p("div", Hr, [p("input", {
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, Ur), p("span", { class: n(b(q)) }, "px", 2)])]), p("div", Wr, [p("label", { class: n(b(K)) }, c(b(o).button.fontSize), 3), p("div", Gr, [p("input", {
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, Kr), p("span", { class: n(b(q)) }, "px", 2)])])]),
1307
- p("div", qr, [
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", Yr, c(b(o).button.widthAuto), 1),
1315
- p("option", Xr, c(b(o).button.fullWidth), 1),
1316
- p("option", Zr, c(b(o).button.widthCustom), 1)
1317
- ], 42, Jr),
1318
- l.value === "custom" ? (s(), m("div", Qr, [p("input", {
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 : ei,
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, $r), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
1321
+ }, null, 42, Yr), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
1325
1322
  ])
1326
1323
  ], 64));
1327
1324
  }
1328
- }), ni = { class: "spacing-control" }, ri = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ii = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ai = { class: "tpl:flex tpl:items-center" }, oi = ["aria-label"], si = ["value", "aria-label"], ci = ["aria-label"], li = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ui = { class: "tpl:flex tpl:items-center" }, di = ["aria-label"], fi = ["value", "aria-label"], pi = ["aria-label"], mi = ["aria-label", "title"], hi = { class: "tpl:flex tpl:items-center" }, gi = ["aria-label"], _i = ["value", "aria-label"], vi = ["aria-label"], yi = { class: "tpl:flex tpl:items-center" }, bi = ["aria-label"], xi = ["value", "aria-label"], Si = ["aria-label"], Ci = "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)]", wi = "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)]", Ti = /*#__PURE__*/ _t(/* @__PURE__ */ f({
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__*/ _t(/* @__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", ni, [p("label", ri, c(e.label), 1), p("div", ii, [
1376
- p("div", ai, [
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([Ci, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1376
+ class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1380
1377
  onClick: r[0] ||= (e) => f("top", -1)
1381
1378
  }, [g(b(et), {
1382
1379
  size: 12,
1383
1380
  "stroke-width": 2
1384
- })], 10, oi),
1381
+ })], 10, ni),
1385
1382
  p("input", {
1386
1383
  type: "number",
1387
- class: n(wi),
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, si),
1389
+ }, null, 40, ri),
1393
1390
  p("button", {
1394
1391
  "aria-label": b(o).spacingControl.increaseTop,
1395
- class: n([Ci, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
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, ci)
1397
+ })], 10, ii)
1401
1398
  ]),
1402
- p("div", li, [
1403
- p("div", ui, [
1399
+ p("div", ai, [
1400
+ p("div", oi, [
1404
1401
  p("button", {
1405
1402
  "aria-label": b(o).spacingControl.decreaseLeft,
1406
- class: n([Ci, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1403
+ class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1407
1404
  onClick: r[3] ||= (e) => f("left", -1)
1408
1405
  }, [g(b(et), {
1409
1406
  size: 12,
1410
1407
  "stroke-width": 2
1411
- })], 10, di),
1408
+ })], 10, si),
1412
1409
  p("input", {
1413
1410
  type: "number",
1414
- class: n(wi),
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, fi),
1416
+ }, null, 40, ci),
1420
1417
  p("button", {
1421
1418
  "aria-label": b(o).spacingControl.increaseLeft,
1422
- class: n([Ci, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
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, pi)
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(Rt), {
1431
+ }, [u.value ? (s(), v(b(zt), {
1435
1432
  key: 0,
1436
1433
  size: 14,
1437
1434
  "stroke-width": 2
1438
- })) : (s(), v(b(Lt), {
1435
+ })) : (s(), v(b(Rt), {
1439
1436
  key: 1,
1440
1437
  size: 14,
1441
1438
  "stroke-width": 2
1442
- }))], 10, mi),
1443
- p("div", hi, [
1439
+ }))], 10, ui),
1440
+ p("div", di, [
1444
1441
  p("button", {
1445
1442
  "aria-label": b(o).spacingControl.decreaseRight,
1446
- class: n([Ci, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1443
+ class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1447
1444
  onClick: r[6] ||= (e) => f("right", -1)
1448
1445
  }, [g(b(et), {
1449
1446
  size: 12,
1450
1447
  "stroke-width": 2
1451
- })], 10, gi),
1448
+ })], 10, fi),
1452
1449
  p("input", {
1453
1450
  type: "number",
1454
- class: n(wi),
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, _i),
1456
+ }, null, 40, pi),
1460
1457
  p("button", {
1461
1458
  "aria-label": b(o).spacingControl.increaseRight,
1462
- class: n([Ci, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
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, vi)
1464
+ })], 10, mi)
1468
1465
  ])
1469
1466
  ]),
1470
- p("div", yi, [
1467
+ p("div", hi, [
1471
1468
  p("button", {
1472
1469
  "aria-label": b(o).spacingControl.decreaseBottom,
1473
- class: n([Ci, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1470
+ class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1474
1471
  onClick: r[9] ||= (e) => f("bottom", -1)
1475
1472
  }, [g(b(et), {
1476
1473
  size: 12,
1477
1474
  "stroke-width": 2
1478
- })], 10, bi),
1475
+ })], 10, gi),
1479
1476
  p("input", {
1480
1477
  type: "number",
1481
- class: n(wi),
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, xi),
1483
+ }, null, 40, _i),
1487
1484
  p("button", {
1488
1485
  "aria-label": b(o).spacingControl.increaseBottom,
1489
- class: n([Ci, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
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, Si)
1491
+ })], 10, vi)
1495
1492
  ])
1496
1493
  ])]));
1497
1494
  }
1498
- }), [["__scopeId", "data-v-9a9c8a07"]]), Ei = { class: "tpl:mt-3" }, Di = /* @__PURE__ */ f({
1495
+ }), [["__scopeId", "data-v-9a9c8a07"]]), Si = { class: "tpl:mt-3" }, Ci = /* @__PURE__ */ f({
1499
1496
  __name: "CollapsibleSection",
1500
1497
  props: {
1501
1498
  title: {},
@@ -1512,21 +1509,21 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
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", Ei, [_(t.$slots, "default")], 512), [[j, e.open]])], 2));
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
- }), Oi = { class: "tpl:space-y-2" }, ki = ["checked", "onChange"], Ai = { class: "tpl:space-y-2" }, ji = ["value"], Mi = { value: "" }, Ni = ["label"], Pi = ["value"], Fi = ["value"], Ii = {
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
- }, Li = {
1517
+ }, Ni = {
1521
1518
  key: 0,
1522
1519
  class: "tpl:space-y-2"
1523
- }, Ri = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, zi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Bi = { class: "tpl:flex tpl:justify-end" }, Vi = ["disabled"], Hi = {
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
- }, Ui = { class: "tpl:space-y-1" }, Wi = { 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)]" }, Gi = {
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
- }, Ki = /* @__PURE__ */ f({
1526
+ }, Hi = /* @__PURE__ */ f({
1530
1527
  __name: "CommonBlockSettings",
1531
1528
  props: {
1532
1529
  block: {},
@@ -1536,11 +1533,11 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
1536
1533
  setup(t, { emit: r }) {
1537
1534
  let a = t, u = r, { t: f } = U(), h = E(Ge, []), _ = E(Ue, !1), T = x(/* @__PURE__ */ new Set()), D = d(!1), A = d(""), j = d(""), M = [{
1538
1535
  key: "desktop",
1539
- icon: zt,
1536
+ icon: Bt,
1540
1537
  labelKey: "showOnDesktop"
1541
1538
  }, {
1542
1539
  key: "mobile",
1543
- icon: Wt,
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(Di, {
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(Ti, {
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(Di, {
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(Di, {
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", Oi, [(s(), m(S, null, e(M, (e) => p("label", {
1622
+ default: l(() => [p("div", wi, [(s(), m(S, null, e(M, (e) => g(X, {
1626
1623
  key: e.key,
1627
- class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
1628
- }, [
1629
- p("input", {
1630
- type: "checkbox",
1631
- class: "tpl:accent-[var(--tpl-primary)]",
1632
- checked: B(e.key),
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
- y(" " + c(b(f).blockSettings[e.labelKey]), 1)
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(Di, {
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", Ai, [p("select", {
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", Mi, c(b(f).blockSettings.noCondition), 1),
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, Pi))), 128))], 8, Ni)) : (s(!0), m(S, { key: 1 }, e(t, (e) => (s(), m("option", {
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, Fi))), 128))], 64))), 128)),
1677
- b(_) ? (s(), m("option", Ii, c(b(f).blockSettings.customCondition), 1)) : w("", !0)
1678
- ], 42, ji), D.value || F.value ? (s(), m("div", Li, [
1679
- p("div", null, [p("label", Ri, c(b(f).blockSettings.customConditionBefore), 1), O(p("textarea", {
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", zi, c(b(f).blockSettings.customConditionAfter), 1), O(p("textarea", {
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", Bi, [p("button", {
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, Vi)])
1695
- ])) : t.block.displayCondition && !F.value ? (s(), m(S, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p", Hi, c(t.block.displayCondition.description), 1)) : w("", !0), p("div", Ui, [p("pre", Wi, c(t.block.displayCondition.before), 1), t.block.displayCondition.after ? (s(), m("pre", Gi, c(t.block.displayCondition.after), 1)) : w("", !0)])], 64)) : w("", !0)])]),
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
- }), qi = ["title"], Ji = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Yi = {
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 r = t, { t: i } = U();
1717
- return (t, a) => (s(), m("div", {
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(i).customBlocks.dataSource.readOnlyTooltip : void 0
1720
- }, [p("label", { class: n(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [p("span", Ji, [
1721
- y(c(e.field.label) + " ", 1),
1722
- e.readOnly ? (s(), v(b(Rt), {
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
- e.field.required ? (s(), m("span", Yi, " * ")) : w("", !0)
1728
- ]), p("button", {
1729
- type: "button",
1730
- role: "switch",
1731
- "aria-checked": e.modelValue,
1732
- "aria-label": e.field.label,
1733
- class: n([
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
- }), Qi = { class: "tpl:mb-3.5" }, $i = {
1732
+ }), Gi = { class: "tpl:mb-3.5" }, Ki = {
1743
1733
  key: 1,
1744
1734
  class: "tpl:text-[var(--tpl-danger)]"
1745
- }, ea = /* @__PURE__ */ f({
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", Qi, [p("label", { class: n(b(K)) }, [
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(Rt), {
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", $i, "*")) : w("", !0)
1750
+ e.required ? (s(), m("span", Ki, "*")) : w("", !0)
1761
1751
  ], 2), _(t.$slots, "default")]));
1762
1752
  }
1763
- }), ta = /* @__PURE__ */ f({
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(ea, {
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
- }), na = {
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
- }, ra = [
1791
+ }, Xi = [
1802
1792
  "value",
1803
1793
  "placeholder",
1804
1794
  "title"
1805
- ], ia = ["value", "placeholder"], aa = /* @__PURE__ */ f({
1795
+ ], Zi = ["value", "placeholder"], Qi = /* @__PURE__ */ f({
1806
1796
  __name: "ImageField",
1807
1797
  props: {
1808
1798
  field: {},
@@ -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(ea, {
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,7 +1837,7 @@ 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", na, [x.value ? (s(), m(S, { key: 0 }, [g(b(lt), {
1840
+ T.value && (b(O) || x.value) ? (s(), m("div", Yi, [x.value ? (s(), m(S, { key: 0 }, [g(b(lt), {
1851
1841
  class: "tpl-spinner",
1852
1842
  size: 18,
1853
1843
  "stroke-width": 2
@@ -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, ra)) : (s(), m("input", {
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, ia)),
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
- }), oa = [
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
- ], sa = /* @__PURE__ */ f({
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(ea, {
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, oa)]),
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
- }), ca = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, la = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ua = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, da = ["title", "onClick"], fa = {
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
- }, pa = /* @__PURE__ */ f({
1925
+ }, oa = /* @__PURE__ */ f({
1936
1926
  __name: "RepeatableField",
1937
1927
  props: {
1938
1928
  field: {},
@@ -1960,16 +1950,16 @@ 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(ea, {
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", ca, [
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", la, [p("span", ua, " #" + c(r + 1), 1), h.value && !t.readOnly ? (s(), m("button", {
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)]",
@@ -1978,7 +1968,7 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
1978
1968
  }, [g(b(mt), {
1979
1969
  size: 12,
1980
1970
  "stroke-width": 2
1981
- })], 8, da)) : w("", !0)]), (s(!0), m(S, null, e(t.field.fields, (e) => (s(), v(o(b(Sa)(e.type)), {
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", fa, c(b(u).customBlocks.fields.maxItemsReached), 1)) : w("", !0)
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
- }), ma = [
2001
+ }), sa = [
2012
2002
  "value",
2013
2003
  "disabled",
2014
2004
  "title"
2015
- ], ha = ["value"], ga = /* @__PURE__ */ f({
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(ea, {
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, ha))), 128))], 42, ma)]),
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
- }), _a = [
2037
+ }), ua = [
2048
2038
  "value",
2049
2039
  "placeholder",
2050
2040
  "title"
2051
- ], va = /* @__PURE__ */ f({
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(ea, {
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, _a)) : (s(), v($, {
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
- }), ya = [
2077
+ }), fa = [
2088
2078
  "value",
2089
2079
  "placeholder",
2090
2080
  "title"
2091
- ], ba = "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", xa = {
2092
- text: va,
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(ea, {
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(ba)
2116
- }, null, 8, ya)) : (s(), v(Wn, {
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,37 +2117,37 @@ var Tn = ["aria-label", "onKeydown"], En = ["data-tooltip"], Dn = ["data-tooltip
2127
2117
  ]));
2128
2118
  }
2129
2119
  }),
2130
- image: aa,
2131
- color: ta,
2132
- number: sa,
2133
- select: ga,
2134
- boolean: Zi,
2135
- repeatable: pa
2120
+ image: Qi,
2121
+ color: Ji,
2122
+ number: ea,
2123
+ select: la,
2124
+ boolean: Wi,
2125
+ repeatable: oa
2136
2126
  };
2137
- function Sa(e) {
2138
- return xa[e] ?? va;
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 Ca = {
2132
+ var ga = {
2143
2133
  key: 0,
2144
2134
  class: "tpl:p-4"
2145
- }, wa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ta = { key: 1 }, Ea = {
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
- }, Da = {
2138
+ }, ba = {
2149
2139
  key: 1,
2150
2140
  class: "tpl:mb-4"
2151
- }, Oa = {
2141
+ }, xa = {
2152
2142
  key: 1,
2153
2143
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
2154
- }, ka = {
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
- }, Aa = {
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
- }, ja = /* @__PURE__ */ f({
2150
+ }, wa = /* @__PURE__ */ f({
2161
2151
  __name: "CustomBlockToolbar",
2162
2152
  props: { block: {} },
2163
2153
  emits: ["updateFieldValues", "updateDataSourceFetched"],
@@ -2178,23 +2168,23 @@ var Ca = {
2178
2168
  [e]: t
2179
2169
  });
2180
2170
  }
2181
- return (n, r) => u.value ? (s(), m("div", Ta, [
2182
- u.value.description ? (s(), m("p", Ea, c(u.value.description), 1)) : w("", !0),
2183
- b(_) ? (s(), m("div", Da, [b(x) && !b(d) ? (s(), m("button", {
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", Oa, [b(d) ? (s(), m("div", ka, c(b(a).customBlocks.dataSource.fetching), 1)) : (s(), m("button", {
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(at), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p", Aa, [g(b($e), {
2183
+ }, [g(b(at), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p", Ca, [g(b($e), {
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(Sa)(e.type)), {
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", Ca, [p("p", wa, c(b(a).customBlocks.toolbar.noDefinition), 1)]));
2199
+ ])) : (s(), m("div", ga, [p("p", _a, c(b(a).customBlocks.toolbar.noDefinition), 1)]));
2210
2200
  }
2211
- }), Ma = { class: "tpl:mb-3.5" }, Na = { class: "tpl:mb-3.5" }, Pa = { class: "tpl:mb-3.5" }, Fa = { class: "tpl:flex tpl:items-stretch" }, Ia = ["value"], La = /* @__PURE__ */ f({
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", Ma, [p("label", { class: n(b(K)) }, c(b(i).divider.style), 3), g(Z, {
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", Na, [p("label", { class: n(b(K)) }, c(b(i).divider.color), 3), g(Y, {
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", Pa, [p("label", { class: n(b(K)) }, c(b(i).divider.thickness), 3), p("div", Fa, [p("input", {
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, Ia), p("span", { class: n(b(q)) }, "px", 2)])])
2240
+ }, null, 42, ka), p("span", { class: n(b(q)) }, "px", 2)])])
2251
2241
  ], 64));
2252
2242
  }
2253
- }), Ra = { class: "tpl:mb-3.5" }, za = ["value"], Ba = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Va = /* @__PURE__ */ f({
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", Ra, [
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,88 +2254,85 @@ 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, za),
2268
- p("p", Ba, [g(b(st), {
2257
+ }, null, 42, Ma),
2258
+ p("p", Na, [g(b(st), {
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
- }), Ha = { class: "tpl:mb-3.5" }, Ua = {
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
- }, Wa = {
2268
+ }, La = {
2279
2269
  key: 0,
2280
2270
  class: "tpl:mb-3.5"
2281
- }, Ga = ["value", "placeholder"], Ka = { class: "tpl:mb-3.5" }, qa = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, Ja = ["checked"], Ya = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Xa = { class: "tpl:mb-3.5" }, Za = ["value"], Qa = { value: "full" }, $a = { value: "custom" }, eo = {
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
- }, to = ["value"], no = { class: "tpl:mb-3.5" }, ro = { class: "tpl:mb-3.5" }, io = {
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(Ae, null), l = E(Ie, B.liquid), u = bt(), f = C(() => !!o), h = d(!1), _ = d(!1), { start: v } = ke(() => {
2293
- h.value = !1;
2294
- }, 1e3, { immediate: !1 }), x = [
2279
+ let r = e, i = t, { t: a } = U(), o = E(Ae, null), u = E(Ie, B.liquid), f = bt(), 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
- ], T = C(() => {
2285
+ ], O = C(() => {
2299
2286
  let e = r.block.width;
2300
- return e === "full" ? "full" : x.includes(e) ? String(e) : "custom";
2287
+ return e === "full" ? "full" : D.includes(e) ? String(e) : "custom";
2301
2288
  });
2302
- function D(e, t) {
2289
+ function k(e, t) {
2303
2290
  i("update", { [e]: t });
2304
2291
  }
2305
- function O(e) {
2292
+ function A(e) {
2306
2293
  if (e === "custom") {
2307
2294
  let e = r.block.width;
2308
- (typeof e != "number" || x.includes(e)) && D("width", oo);
2295
+ (typeof e != "number" || D.includes(e)) && k("width", Ya);
2309
2296
  return;
2310
2297
  }
2311
- D("width", e === "full" ? "full" : Number(e));
2298
+ k("width", e === "full" ? "full" : Number(e));
2312
2299
  }
2313
- function k(e) {
2300
+ function j(e) {
2314
2301
  let t = Number(e);
2315
- !Number.isFinite(t) || t <= 0 || D("width", t);
2302
+ !Number.isFinite(t) || t <= 0 || k("width", t);
2316
2303
  }
2317
- async function A() {
2304
+ async function M() {
2318
2305
  let e = await o?.({ accept: ["images"] });
2319
- u.alive && e && (D("src", e.url), e.alt && (D("alt", e.alt), _.value = !0), h.value = !0, v());
2306
+ f.alive && e && (k("src", e.url), e.alt && (k("alt", e.alt), x.value = !0), _.value = !0, T());
2320
2307
  }
2321
- let j = d(), M = d(!1), N = C(() => z(r.block.src, l)), P = C(() => f.value && !M.value && !N.value);
2322
- async function F(e) {
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
- M.value = !0;
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 (!u.alive) return;
2331
- t && (D("src", t.url), t.alt && (D("alt", t.alt), _.value = !0), h.value = !0, v());
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
- u.alive && (M.value = !1);
2320
+ f.alive && (P.value = !1);
2334
2321
  }
2335
2322
  }
2336
2323
  }
2337
- let { isOver: I } = me({
2338
- target: j,
2339
- enabled: P,
2340
- onFiles: F
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", Ha, [p("label", { class: n(b(K)) }, c(b(a).image.imageUrl), 3), 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: j,
2332
+ ref: N,
2346
2333
  class: "tpl:relative"
2347
2334
  }, [
2348
- P.value && (b(I) || M.value) ? (s(), m("div", Ua, [M.value ? (s(), m(S, { key: 0 }, [g(b(lt), {
2335
+ I.value && (b(R) || P.value) ? (s(), m("div", Ia, [P.value ? (s(), m(S, { key: 0 }, [g(b(lt), {
2349
2336
  class: "tpl-spinner",
2350
2337
  size: 18,
2351
2338
  "stroke-width": 2
@@ -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: h.value,
2361
- "onUpdate:modelValue": r[0] ||= (e) => D("src", 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
- f.value ? (s(), m("button", {
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: A
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(l)) ? (s(), m("div", Wa, [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", {
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) => D("placeholderUrl", e.target.value)
2387
- }, null, 42, Ga)])) : w("", !0),
2388
- p("div", Ka, [
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: _.value,
2381
+ pulse: x.value,
2395
2382
  disabled: e.block.decorative === !0,
2396
- "onUpdate:modelValue": r[2] ||= (e) => D("alt", 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
- p("label", qa, [p("input", {
2404
- type: "checkbox",
2405
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2406
- checked: e.block.decorative === !0,
2407
- onChange: r[3] ||= (e) => D("decorative", e.target.checked)
2408
- }, null, 40, Ja), p("span", null, [y(c(b(a).image.decorative) + " ", 1), p("span", Ya, c(b(a).image.decorativeHint), 1)])])
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", Xa, [
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: T.value,
2415
- onChange: r[4] ||= (e) => O(e.target.value)
2404
+ value: O.value,
2405
+ onChange: r[4] ||= (e) => A(e.target.value)
2416
2406
  }, [
2417
- p("option", Qa, c(b(a).image.fullWidth), 1),
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", $a, c(b(a).image.widthCustom), 1)
2422
- ], 42, Za),
2423
- T.value === "custom" ? (s(), m("div", eo, [p("input", {
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 : oo,
2416
+ value: typeof e.block.width == "number" ? e.block.width : Ya,
2427
2417
  min: "20",
2428
- onInput: r[5] ||= (e) => k(e.target.value)
2429
- }, null, 42, to), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
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", no, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Z, {
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) => D("align", e)
2437
+ "onUpdate:modelValue": r[6] ||= (e) => k("align", e)
2448
2438
  }, null, 8, ["options", "model-value"])]),
2449
- p("div", ro, [
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) => D("linkUrl", e)
2445
+ "onUpdate:modelValue": r[7] ||= (e) => k("linkUrl", e)
2456
2446
  }, null, 8, ["model-value", "placeholder"]),
2457
- e.block.linkUrl ? (s(), m("label", io, [p("input", {
2458
- type: "checkbox",
2459
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2460
- checked: e.block.linkOpenInNewTab ?? !1,
2461
- onChange: r[8] ||= (e) => D("linkOpenInNewTab", e.target.checked)
2462
- }, null, 40, ao), y(" " + c(b(a).image.openInNewTab), 1)])) : w("", !0)
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
- }), co = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, lo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, uo = [
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
- ], fo = ["title", "onClick"], po = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, mo = ["checked", "onChange"], ho = { class: "tpl:flex tpl:items-center tpl:gap-2" }, go = ["value"], _o = { value: "" }, vo = ["value"], yo = ["value"], bo = /* @__PURE__ */ f({
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: {},
@@ -2497,12 +2488,12 @@ var Ca = {
2497
2488
  {
2498
2489
  value: "center",
2499
2490
  label: o.title.alignCenter,
2500
- icon: dt
2491
+ icon: ft
2501
2492
  },
2502
2493
  {
2503
2494
  value: "right",
2504
2495
  label: o.title.alignRight,
2505
- icon: ft
2496
+ icon: dt
2506
2497
  }
2507
2498
  ]);
2508
2499
  function f(e, t) {
@@ -2526,29 +2517,29 @@ var Ca = {
2526
2517
  } : r);
2527
2518
  a("update", { items: r });
2528
2519
  }
2529
- function v(e) {
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(X, { label: b(o).menu.items }, {
2534
- default: l(() => [p("div", co, [(s(!0), m(S, null, e(t.block.items, (r) => (s(), m("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", lo, [p("input", {
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, uo), p("button", {
2535
+ }, null, 42, $a), p("button", {
2545
2536
  class: n(b(wt)),
2546
2537
  title: b(o).menu.removeItem,
2547
- onClick: (e) => v(r.id)
2538
+ onClick: (e) => x(r.id)
2548
2539
  }, [g(b(gt), {
2549
2540
  size: 14,
2550
2541
  "stroke-width": 2
2551
- })], 10, fo)]),
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", po, [(s(!0), m(S, null, e(u.value, (e) => (s(), m("label", {
2553
+ p("div", to, [(s(!0), m(S, null, e(u.value, (e) => (s(), v(X, {
2563
2554
  key: e.key,
2564
- class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
2565
- }, [p("input", {
2566
- type: "checkbox",
2567
- checked: r[e.key],
2568
- class: "tpl:accent-[var(--tpl-primary)]",
2569
- onChange: (t) => _(r.id, e.key, t.target.checked)
2570
- }, null, 40, mo), y(" " + c(e.label), 1)]))), 128))]),
2571
- p("div", ho, [p("label", { class: n([b(K), "tpl:!mb-0"]) }, c(b(o).menu.color), 3), g(Y, {
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(X, { label: b(o).menu.fontFamily }, {
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", _o, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("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, vo))), 128))], 42, go)]),
2585
+ }, c(e.label), 9, ao))), 128))], 42, ro)]),
2594
2586
  _: 1
2595
2587
  }, 8, ["label"]),
2596
- g(X, { label: b(o).menu.fontSize }, {
2597
- default: l(() => [g(Mt, {
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(X, { label: b(o).menu.color }, {
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(X, { label: b(o).menu.linkColor }, {
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(X, { label: b(o).menu.textAlign }, {
2621
- default: l(() => [g(Z, {
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(X, { label: b(o).menu.separator }, {
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, yo)]),
2626
+ }, null, 42, oo)]),
2635
2627
  _: 1
2636
2628
  }, 8, ["label"]),
2637
- g(X, { label: b(o).menu.separatorColor }, {
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(X, { label: b(o).menu.spacing }, {
2645
- default: l(() => [g(Mt, {
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 xo(e) {
2651
+ function co(e) {
2660
2652
  return e === "1" ? 1 : e === "3" ? 3 : 2;
2661
2653
  }
2662
- function So(e, t) {
2663
- let n = xo(t);
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 Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class: "tpl:mb-3.5" }, Do = { class: "tpl:flex tpl:items-stretch" }, Oo = ["value"], ko = { class: "tpl:mb-3.5" }, Ao = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, jo = ["checked"], Mo = {
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
- }, No = { class: "tpl:flex tpl:items-stretch" }, Po = ["value"], Fo = /* @__PURE__ */ f({
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 = So(i.block.children, t);
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 f(e) {
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 h(e) {
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
- h({ borderRadius: Number(e.target.value) });
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", Co, [p("label", { class: n(b(K)) }, c(b(o).section.columns), 3), p("select", {
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, To))), 128))], 42, wo)]),
2744
- p("div", Eo, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", Do, [p("input", {
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: d
2751
- }, null, 42, Oo), p("span", { class: n(b(q)) }, "px", 2)])]),
2752
- p("div", ko, [p("label", Ao, [p("input", {
2753
- type: "checkbox",
2754
- class: "tpl:accent-[var(--tpl-primary)]",
2755
- checked: !!t.block.wrapper,
2756
- onChange: i[0] ||= (e) => f(e.target.checked)
2757
- }, null, 40, jo), y(" " + c(b(o).section.wrapperEnable), 1)]), t.block.wrapper ? (s(), m("div", Mo, [
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[1] ||= (e) => h({ backgroundColor: e })
2764
+ "onUpdate:modelValue": i[2] ||= (e) => _({ backgroundColor: e })
2761
2765
  }, null, 8, ["model-value"])]),
2762
- g(Ti, {
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", No, [p("input", {
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: v
2779
- }, null, 42, Po), p("span", { class: n(b(q)) }, "px", 2)])])
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
- }), Io = { class: "tpl:mb-3.5" }, Lo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ro = { class: "tpl:flex tpl:items-center tpl:gap-2" }, zo = ["value", "onChange"], Bo = ["value"], Vo = ["title", "onClick"], Ho = { class: "tpl:mb-3.5" }, Uo = ["value"], Wo = { value: "solid" }, Go = { value: "outlined" }, Ko = { value: "rounded" }, qo = { value: "square" }, Jo = { value: "circle" }, Yo = { class: "tpl:mb-3.5" }, Xo = { class: "tpl:mb-3.5" }, Zo = { class: "tpl:flex tpl:items-stretch" }, Qo = ["value"], $o = { class: "tpl:mb-3.5" }, es = /* @__PURE__ */ f({
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", Io, [p("label", { class: n(b(K)) }, c(b(o).social.icons), 3), p("div", Lo, [(s(!0), m(S, null, e(t.block.icons, (t) => (s(), m("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", Ro, [p("select", {
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, Bo))), 128))], 42, zo), p("button", {
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
2830
  }, [g(b(gt), {
2827
2831
  size: 14,
2828
2832
  "stroke-width": 2
2829
- })], 10, Vo)]), g($, {
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", Ho, [p("label", { class: n(b(K)) }, c(b(o).social.style), 3), p("select", {
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", Wo, c(b(o).social.styleSolid), 1),
2851
- p("option", Go, c(b(o).social.styleOutlined), 1),
2852
- p("option", Ko, c(b(o).social.styleRounded), 1),
2853
- p("option", qo, c(b(o).social.styleSquare), 1),
2854
- p("option", Jo, c(b(o).social.styleCircle), 1)
2855
- ], 42, Uo)]),
2856
- p("div", Yo, [p("label", { class: n(b(K)) }, c(b(o).social.size), 3), g(Z, {
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,15 +2875,15 @@ 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", Xo, [p("label", { class: n(b(K)) }, c(b(o).social.spacing), 3), p("div", Zo, [p("input", {
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, Qo), p("span", { class: n(b(q)) }, "px", 2)])]),
2882
- p("div", $o, [p("label", { class: n(b(K)) }, c(b(o).social.align), 3), g(Z, {
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",
@@ -2889,12 +2893,12 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
2889
2893
  {
2890
2894
  value: "center",
2891
2895
  label: b(o).title.alignCenter,
2892
- icon: b(dt)
2896
+ icon: b(ft)
2893
2897
  },
2894
2898
  {
2895
2899
  value: "right",
2896
2900
  label: b(o).title.alignRight,
2897
- icon: b(ft)
2901
+ icon: b(dt)
2898
2902
  }
2899
2903
  ],
2900
2904
  "model-value": t.block.align,
@@ -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
- }), ts = { class: "tpl:mb-3.5" }, ns = { class: "tpl:flex tpl:items-stretch" }, rs = ["value"], is = ["value"], as = /* @__PURE__ */ f({
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", ts, [
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", ns, [p("input", {
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, rs), p("span", { class: n(b(q)) }, "px", 2)]),
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, is)
2932
+ }, null, 40, Go)
2929
2933
  ]));
2930
2934
  }
2931
- }), os = { class: "tpl:mb-3.5" }, ss = { class: "tpl:flex tpl:items-center tpl:gap-3" }, cs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ls = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, us = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ds = ["disabled"], fs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ps = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ms = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, hs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, gs = ["disabled"], _s = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, vs = { class: "tpl:mb-3.5" }, ys = { class: "tpl:mb-1.5 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, bs = ["checked"], xs = {
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
- }, Ss = { class: "tpl:mb-3.5" }, Cs = { class: "tpl:mb-3.5" }, ws = { class: "tpl:flex tpl:items-stretch" }, Ts = ["value"], Es = { class: "tpl:mb-3.5" }, Ds = { class: "tpl:flex tpl:items-stretch" }, Os = ["value"], ks = { class: "tpl:mb-3.5" }, As = ["value"], js = { value: "" }, Ms = ["value"], Ns = { class: "tpl:mb-3.5" }, Ps = { class: "tpl:flex tpl:items-stretch" }, Fs = ["value"], Is = { class: "tpl:mb-3.5" }, Ls = { class: "tpl:mb-3.5" }, Rs = /* @__PURE__ */ f({
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,7 +2978,7 @@ 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", os, [p("label", { class: n(b(K)) }, c(b(o).table.dimensions), 3), p("div", ss, [p("div", cs, [p("span", ls, c(b(o).table.rows), 1), p("div", us, [
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,
@@ -2982,8 +2986,8 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
2982
2986
  }, [g(b(et), {
2983
2987
  size: 12,
2984
2988
  "stroke-width": 2
2985
- })], 8, ds),
2986
- p("span", fs, c(t.block.rows.length), 1),
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,7 +2995,7 @@ 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", ps, [p("span", ms, c(b(o).table.columns), 1), p("div", hs, [
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,
@@ -2999,8 +3003,8 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
2999
3003
  }, [g(b(et), {
3000
3004
  size: 12,
3001
3005
  "stroke-width": 2
3002
- })], 8, gs),
3003
- p("span", _s, c(l.value), 1),
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", vs, [p("label", ys, [p("input", {
3013
- type: "checkbox",
3014
- checked: t.block.hasHeaderRow,
3015
- class: "tpl:accent-[var(--tpl-primary)]",
3016
- onChange: i[2] ||= (e) => u("hasHeaderRow", e.target.checked)
3017
- }, null, 40, bs), y(" " + c(b(o).table.hasHeaderRow), 1)])]),
3018
- t.block.hasHeaderRow ? (s(), m("div", xs, [p("label", { class: n(b(K)) }, c(b(o).table.headerBackgroundColor), 3), g(Y, {
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,47 +3029,47 @@ 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", Ss, [p("label", { class: n(b(K)) }, c(b(o).table.borderColor), 3), g(Y, {
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", Cs, [p("label", { class: n(b(K)) }, c(b(o).table.borderWidth), 3), p("div", ws, [p("input", {
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, Ts), p("span", { class: n(b(q)) }, "px", 2)])]),
3040
- p("div", Es, [p("label", { class: n(b(K)) }, c(b(o).table.cellPadding), 3), p("div", Ds, [p("input", {
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, Os), p("span", { class: n(b(q)) }, "px", 2)])]),
3048
- p("div", ks, [p("label", { class: n(b(K)) }, c(b(o).table.fontFamily), 3), p("select", {
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", js, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("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, Ms))), 128))], 42, As)]),
3056
- p("div", Ns, [p("label", { class: n(b(K)) }, c(b(o).table.fontSize), 3), p("div", Ps, [p("input", {
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, Fs), p("span", { class: n(b(q)) }, "px", 2)])]),
3064
- p("div", Is, [p("label", { class: n(b(K)) }, c(b(o).table.color), 3), g(Y, {
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", Ls, [p("label", { class: n(b(K)) }, c(b(o).table.textAlign), 3), g(Z, {
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",
@@ -3075,12 +3079,12 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
3075
3079
  {
3076
3080
  value: "center",
3077
3081
  label: b(o).title.alignCenter,
3078
- icon: b(dt)
3082
+ icon: b(ft)
3079
3083
  },
3080
3084
  {
3081
3085
  value: "right",
3082
3086
  label: b(o).title.alignRight,
3083
- icon: b(ft)
3087
+ icon: b(dt)
3084
3088
  }
3085
3089
  ],
3086
3090
  "model-value": t.block.textAlign,
@@ -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
- }), zs = { class: "tpl:mb-3.5" }, Bs = ["value"], Vs = { value: 1 }, Hs = { value: 2 }, Us = { value: 3 }, Ws = { value: 4 }, Gs = { class: "tpl:mb-3.5" }, Ks = ["value"], qs = { value: "" }, Js = ["value"], Ys = { class: "tpl:mb-3.5" }, Xs = { class: "tpl:mb-3.5" }, Zs = /* @__PURE__ */ f({
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,29 +3105,29 @@ 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", zs, [p("label", { class: n(b(K)) }, c(b(a).title.level), 3), p("select", {
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", Vs, c(b(a).title.heading1), 1),
3110
- p("option", Hs, c(b(a).title.heading2), 1),
3111
- p("option", Us, c(b(a).title.heading3), 1),
3112
- p("option", Ws, c(b(a).title.heading4), 1)
3113
- ], 42, Bs)]),
3114
- p("div", Gs, [p("label", { class: n(b(K)) }, c(b(a).title.fontFamily), 3), p("select", {
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", qs, c(b(a).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("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, Js))), 128))], 42, Ks)]),
3122
- p("div", Ys, [p("label", { class: n(b(K)) }, c(b(a).title.color), 3), g(Y, {
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", Xs, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Z, {
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",
@@ -3133,12 +3137,12 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
3133
3137
  {
3134
3138
  value: "center",
3135
3139
  label: b(a).title.alignCenter,
3136
- icon: b(dt)
3140
+ icon: b(ft)
3137
3141
  },
3138
3142
  {
3139
3143
  value: "right",
3140
3144
  label: b(a).title.alignRight,
3141
- icon: b(ft)
3145
+ icon: b(dt)
3142
3146
  }
3143
3147
  ],
3144
3148
  "model-value": t.block.textAlign,
@@ -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
- }), Qs = { class: "tpl:mb-3.5" }, $s = {
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
- }, nc = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, rc = [
3156
+ }, zs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Bs = [
3156
3157
  "value",
3157
3158
  "placeholder",
3158
3159
  "title"
3159
- ], ic = { class: "tpl:mb-3.5" }, ac = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, oc = { class: "tpl:mb-3.5" }, sc = { class: "tpl:mb-3.5" }, cc = ["value"], lc = { value: "full" }, uc = { class: "tpl:mb-3.5" }, dc = /* @__PURE__ */ f({
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(Ae, null), l = E(Ie, B.liquid), u = bt(), f = C(() => !!o), h = C(() => z(r.block.url, l)), _ = d(!1), { start: v } = ke(() => {
3165
+ let r = e, i = t, { t: a } = U(), o = E(Ae, null), l = E(Ie, B.liquid), u = bt(), 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 x(e, t) {
3168
+ function T(e, t) {
3168
3169
  i("update", { [e]: t });
3169
3170
  }
3170
- async function T() {
3171
+ async function D() {
3171
3172
  let e = await o?.({ accept: ["images"] });
3172
- u.alive && e && (x("thumbnailUrl", e.url), _.value = !0, v());
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", Qs, [
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) => x("url", e)
3182
+ "onUpdate:modelValue": r[0] ||= (e) => T("url", e)
3182
3183
  }, null, 8, ["model-value", "placeholder"]),
3183
- e.block.url ? (s(), m("label", $s, [p("input", {
3184
- type: "checkbox",
3185
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
3186
- checked: e.block.openInNewTab ?? !1,
3187
- onChange: r[1] ||= (e) => x("openInNewTab", e.target.checked)
3188
- }, null, 40, ec), y(" " + c(b(a).video.openInNewTab), 1)])) : w("", !0)
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", tc, [p("label", { class: n(b(K)) }, [y(c(b(a).video.placeholderUrl) + " ", 1), p("span", nc, c(b(a).video.optional), 1)], 2), p("input", {
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) => x("placeholderUrl", e.target.value)
3197
- }, null, 42, rc)])) : w("", !0),
3198
- p("div", ic, [
3199
- p("label", { class: n(b(K)) }, [y(c(b(a).video.customThumbnail) + " ", 1), p("span", ac, c(b(a).video.optional), 1)], 2),
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) => x("thumbnailUrl", 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: T
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", oc, [p("label", { class: n(b(K)) }, c(b(a).video.altText), 3), g($, {
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) => x("alt", e)
3231
+ "onUpdate:modelValue": r[4] ||= (e) => T("alt", e)
3230
3232
  }, null, 8, ["model-value", "placeholder"])]),
3231
- p("div", sc, [p("label", { class: n(b(K)) }, c(b(a).video.width), 3), p("select", {
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) => x("width", e.target.value === "full" ? "full" : Number(e.target.value))
3236
+ onChange: r[5] ||= (e) => T("width", e.target.value === "full" ? "full" : Number(e.target.value))
3235
3237
  }, [
3236
- p("option", lc, c(b(a).video.fullWidth), 1),
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, cc)]),
3241
- p("div", uc, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Z, {
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) => x("align", e)
3259
+ "onUpdate:modelValue": r[6] ||= (e) => T("align", e)
3258
3260
  }, null, 8, ["options", "model-value"])])
3259
3261
  ], 64));
3260
3262
  }
3261
- }), fc = ["aria-label"], pc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, mc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, hc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, gc = { class: "tpl:flex tpl:gap-1" }, _c = ["title"], vc = ["title"], yc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, bc = /*#__PURE__*/ _t(/* @__PURE__ */ f({
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__*/ _t(/* @__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-nY9H0BKd.js")), r = e, i = t, { t: a } = U(), l = Ne(Be, "Toolbar"), u = E(Re, []), d = C(() => r.block.type), f = C(() => L(r.block)), _ = C(() => {
3272
+ let n = h(() => import("./CountdownToolbar-q3umZ7TZ.js")), r = e, i = t, { t: a } = U(), l = Ne(Be, "Toolbar"), u = E(Re, []), 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", pc, [p("div", mc, [b(rt)[d.value] ? (s(), v(o(b(rt)[d.value]), {
3281
+ }, [p("div", Xs, [p("div", Zs, [b(rt)[d.value] ? (s(), v(o(b(rt)[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", hc, c(y.value), 1)]), p("div", gc, [p("button", {
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, _c), p("button", {
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
3300
  }, [g(b(mt), {
3299
3301
  size: 14,
3300
3302
  "stroke-width": 2
3301
- })], 8, vc)])]), p("div", yc, [f.value ? (s(), v(ja, {
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(Fo, {
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(Zs, {
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(so, {
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(dc, {
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(ti, {
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(La, {
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(es, {
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(bo, {
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(Rs, {
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(as, {
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(Va, {
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(Ki, {
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, fc));
3365
+ }, null, 8, ["block", "is-first-section"])])], 8, Ys));
3364
3366
  }
3365
- }), [["__scopeId", "data-v-2ac88283"]]), xc = ["aria-label"], Sc = {
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
- }, Cc = [
3370
+ }, oc = [
3369
3371
  "aria-selected",
3370
3372
  "aria-label",
3371
3373
  "title"
3372
- ], wc = { key: 0 }, Tc = [
3374
+ ], sc = { key: 0 }, cc = [
3373
3375
  "aria-selected",
3374
3376
  "aria-label",
3375
3377
  "title"
3376
- ], Ec = { key: 0 }, Dc = [
3378
+ ], lc = { key: 0 }, uc = [
3377
3379
  "aria-selected",
3378
3380
  "aria-label",
3379
3381
  "title"
3380
- ], Oc = { key: 0 }, kc = {
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
- }, Ac = {
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
- }, jc = {
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
- }, Mc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Nc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Pc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Fc = {
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
- }, Ic = {
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
- }, Lc = /* @__PURE__ */ f({
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-CQQipLQP.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Pe, null), y = C(() => _ !== null), x = C(() => _?.issues.value.length ?? 0);
3420
+ let a = h(() => import("./IssuesPanel-DltSuU6H.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Pe, 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", Sc, [
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(Vt), {
3447
+ }, [g(b(Ht), {
3446
3448
  size: 14,
3447
3449
  "stroke-width": 2
3448
- }), f.value === "content" ? (s(), m("span", wc, c(b(u).sidebar.content), 1)) : w("", !0)], 14, Cc),
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(Ut), {
3461
+ }, [g(b(Wt), {
3460
3462
  size: 14,
3461
3463
  "stroke-width": 1.5
3462
- }), f.value === "settings" ? (s(), m("span", Ec, c(b(u).sidebar.settings), 1)) : w("", !0)], 14, Tc),
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",
@@ -3476,55 +3478,55 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
3476
3478
  size: 14,
3477
3479
  "stroke-width": 1.5
3478
3480
  }),
3479
- f.value === "issues" ? (s(), m("span", Oc, c(b(u).issues.panelTabLabel), 1)) : w("", !0),
3480
- x.value > 0 ? (s(), m("span", kc, c(x.value), 1)) : w("", !0)
3481
- ], 14, Dc)) : w("", !0)
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", Ac, [e.selectedBlock ? (s(), v(bc, {
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", jc, [
3490
- p("div", Mc, [g(b(It), {
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", Nc, c(b(u).sidebar.noSelection), 1),
3495
- p("p", Pc, c(b(u).sidebar.noSelectionHint), 1)
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", Fc, [g(Cr, {
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", Ic, [g(b(a))])) : w("", !0)
3502
- ], 10, xc));
3503
+ f.value === "issues" && y.value ? (s(), m("div", yc, [g(b(a))])) : w("", !0)
3504
+ ], 10, ic));
3503
3505
  }
3504
- }), Rc = {
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
- }, zc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Bc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Vc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Hc = /* @__PURE__ */ f({
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", Rc, [
3514
- p("div", zc, [g(b(zt), {
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", Bc, c(b(t).smallScreen.title), 1),
3519
- p("p", Vc, c(b(t).smallScreen.message), 1)
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
- }), Uc = ["aria-label"], Wc = [
3524
+ }), Ec = ["aria-label"], Dc = [
3523
3525
  "aria-checked",
3524
3526
  "aria-label",
3525
3527
  "title",
3526
3528
  "onClick"
3527
- ], Gc = /* @__PURE__ */ f({
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(zt), {
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(Wt), {
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, Wc))), 128))], 12, Uc));
3579
+ })), p("span", null, c(e.label), 1)], 12, Dc))), 128))], 12, Ec));
3578
3580
  }
3579
- }), Kc = [
3581
+ }), kc = [
3580
3582
  "aria-label",
3581
3583
  "title",
3582
3584
  "aria-pressed"
3583
- ], qc = /*#__PURE__*/ _t(/* @__PURE__ */ f({
3585
+ ], Ac = /*#__PURE__*/ _t(/* @__PURE__ */ f({
3584
3586
  __name: "PreviewToggle",
3585
3587
  props: { previewMode: { type: Boolean } },
3586
3588
  emits: ["change"],
@@ -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, Kc));
3618
+ })], 12, kc));
3617
3619
  }
3618
- }), [["__scopeId", "data-v-af87d02a"]]), Jc = [
3620
+ }), [["__scopeId", "data-v-af87d02a"]]), jc = [
3619
3621
  "aria-label",
3620
3622
  "title",
3621
3623
  "aria-pressed"
3622
- ], Yc = /*#__PURE__*/ _t(/* @__PURE__ */ f({
3624
+ ], Mc = /*#__PURE__*/ _t(/* @__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(Bt), {
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(qt), {
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, Jc));
3657
+ })], 12, jc));
3656
3658
  }
3657
- }), [["__scopeId", "data-v-f8694f76"]]), Xc = {
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
- }, Zc = {
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
- }, Qc = /* @__PURE__ */ f({
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", Xc, [
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", Zc, c(b(t).footer.openSource), 1)
3692
+ p("a", Pc, c(b(t).footer.openSource), 1)
3691
3693
  ])], 2));
3692
3694
  }
3693
- }), $c = ["aria-labelledby", "data-tpl-theme"], el = { 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" }, tl = ["id"], nl = ["aria-label"], rl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, il = [
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
- ], al = {
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
- }, ol = ["data-group-name", "onClick"], sl = ["aria-label"], cl = {
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
- }, ll = {
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
- }, ul = [
3712
+ }, qc = [
3711
3713
  "aria-expanded",
3712
3714
  "data-group-name",
3713
3715
  "data-group-collapsed",
3714
3716
  "onClick"
3715
- ], dl = { class: "tpl:ml-1 tpl:font-normal" }, fl = [
3717
+ ], Jc = { class: "tpl:ml-1 tpl:font-normal" }, Yc = [
3716
3718
  "id",
3717
3719
  "aria-selected",
3718
3720
  "data-selected",
@@ -3721,10 +3723,10 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
3721
3723
  "title",
3722
3724
  "onMousemove",
3723
3725
  "onClick"
3724
- ], pl = { class: "tpl:text-sm tpl:font-medium" }, ml = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, hl = {
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
- }, gl = "tpl-merge-tag-picker-list", _l = /* @__PURE__ */ f({
3729
+ }, $c = "tpl-merge-tag-picker-list", el = /* @__PURE__ */ f({
3728
3730
  __name: "MergeTagPickerModal",
3729
3731
  setup(r) {
3730
3732
  let a = Ne(Je, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Fe, null), h = E(Me, 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());
@@ -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 `${gl}-opt-${j.value}`;
3842
+ if (B.value.length !== 0) return `${$c}-opt-${j.value}`;
3841
3843
  }
3842
3844
  function ce(e) {
3843
- return `${gl}-opt-${e}`;
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(Nt, {
3848
+ return (r, i) => (s(), v(Pt, {
3847
3849
  visible: b(a).isOpen.value,
3848
3850
  onClose: ee,
3849
3851
  onKeydown: oe
@@ -3851,16 +3853,16 @@ 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": `${gl}-title`,
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", el, [p("h2", {
3861
- id: `${gl}-title`,
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, tl), p("button", {
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,
@@ -3869,13 +3871,13 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
3869
3871
  }, [g(b(gt), {
3870
3872
  size: 16,
3871
3873
  "stroke-width": 2
3872
- })], 8, nl)]),
3873
- p("div", rl, [g(b(tt), {
3874
+ })], 8, zc)]),
3875
+ p("div", Bc, [g(b(tt), {
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: `${gl}-search`,
3880
+ id: `${$c}-search`,
3879
3881
  ref_key: "searchInputRef",
3880
3882
  ref: x,
3881
3883
  "onUpdate:modelValue": i[0] ||= (e) => _.value = e,
@@ -3883,34 +3885,34 @@ 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": gl,
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, il), [[k, _.value]])]),
3891
- de.value ? (s(), m("div", al, [(s(!0), m(S, null, e(R.value, (e) => (s(), m("button", {
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, ol))), 128))])) : w("", !0),
3900
+ }, c(e), 9, Uc))), 128))])) : w("", !0),
3899
3901
  p("div", {
3900
- id: gl,
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", cl, c(b(o).mergeTag.picker.empty), 1)) : ue.value ? (s(), m("div", ll, 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", {
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": gl,
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,
@@ -3923,8 +3925,8 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
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", dl, " (" + c(b(u)(b(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3927
- ], 8, ul)) : (s(), m("button", {
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", pl, c(e.tag.label), 1),
3943
- p("span", ml, c(e.tag.value), 1),
3944
- e.tag.description ? (s(), m("span", hl, c(e.tag.description), 1)) : w("", !0)
3945
- ], 42, fl))], 64))), 128))], 8, sl)
3946
- ], 12, $c)]),
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
- }), vl = ["data-logic-keyword"], yl = /* @__PURE__ */ f({
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, vl)) : w("", !0);
3969
+ }, c(r.value), 9, tl)) : w("", !0);
3968
3970
  }
3969
- }), bl = ["aria-labelledby", "data-tpl-theme"], xl = { 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" }, Sl = ["id"], Cl = ["aria-label"], wl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Tl = [
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
- ], El = ["aria-label"], Dl = {
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
- }, Ol = {
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
- }, kl = ["data-group-name"], Al = [
3984
+ }, fl = ["data-group-name"], pl = [
3983
3985
  "id",
3984
3986
  "aria-selected",
3985
3987
  "data-selected",
@@ -3987,16 +3989,16 @@ 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
- ], jl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Ml = { class: "tpl:text-sm tpl:font-medium" }, Nl = {
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
- }, Pl = {
3995
+ }, _l = {
3994
3996
  key: 1,
3995
3997
  class: "tpl:flex tpl:items-center tpl:gap-1"
3996
- }, Fl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Il = {
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
- }, Ll = "tpl-logic-picker-list", Rl = /* @__PURE__ */ f({
4001
+ }, bl = "tpl-logic-picker-list", xl = /* @__PURE__ */ f({
4000
4002
  __name: "LogicTagPickerModal",
4001
4003
  setup(r) {
4002
4004
  let a = Ne(Ye, "LogicTagPickerModal"), { t: o } = U(), u = E(Ie, B.liquid), f = E(Fe, null), h = E(Me, null), _ = d(""), y = Oe(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0);
@@ -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 `${Ll}-opt-${e}`;
4087
+ return `${bl}-opt-${e}`;
4086
4088
  }
4087
4089
  function se() {
4088
- return V.value.length === 0 ? void 0 : `${Ll}-opt-${j.value}`;
4090
+ return V.value.length === 0 ? void 0 : `${bl}-opt-${j.value}`;
4089
4091
  }
4090
- return (r, i) => (s(), v(Nt, {
4092
+ return (r, i) => (s(), v(Pt, {
4091
4093
  visible: b(a).isOpen.value,
4092
4094
  onClose: re,
4093
4095
  onKeydown: ae
@@ -4095,16 +4097,16 @@ 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": `${Ll}-title`,
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", xl, [p("h2", {
4105
- id: `${Ll}-title`,
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, Sl), p("button", {
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,
@@ -4113,13 +4115,13 @@ var Co = { class: "tpl:mb-3.5" }, wo = ["value"], To = ["value"], Eo = { class:
4113
4115
  }, [g(b(gt), {
4114
4116
  size: 16,
4115
4117
  "stroke-width": 2
4116
- })], 8, Cl)]),
4117
- p("div", wl, [g(b(tt), {
4118
+ })], 8, ol)]),
4119
+ p("div", sl, [g(b(tt), {
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: `${Ll}-search`,
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": Ll,
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, Tl), [[k, _.value]])]),
4136
+ }, null, 40, cl), [[k, _.value]])]),
4135
4137
  p("div", {
4136
- id: Ll,
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", Dl, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", Ol, 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", {
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, kl)) : (s(), m("button", {
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", jl, [p("span", Ml, c(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), m("span", Nl, [g(yl, {
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", Pl, [
4166
- g(yl, {
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(yl, {
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", Fl, c(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
4177
- (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span", Il, c(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
4178
- ], 42, Al))], 64))), 128))], 8, El)
4179
- ], 12, bl)]),
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 { qc as a, Lc as c, on as d, Jt as f, Yc as i, _n as l, _l as n, Gc as o, Ht as p, Qc as r, Hc as s, Rl as t, sn as u };
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 };