@templatical/editor 0.7.2 → 0.7.3

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 (109) hide show
  1. package/dist/{AiChatSidebar-DWRONNm6.js → AiChatSidebar-H7SIsxeC.js} +49 -59
  2. package/dist/{AiFeatureMenu-U7b4Z8OV.js → AiFeatureMenu-CJGX-fP5.js} +1 -1
  3. package/dist/{CloudEditor-DgiUCNMn.js → CloudEditor-BBs3p-mW.js} +124 -120
  4. package/dist/{CollaboratorBar-BgeaMhrV.js → CollaboratorBar-CiEo25lb.js} +2 -2
  5. package/dist/{CommentsSidebar-BiRtaXYD.js → CommentsSidebar-DikjSLtH.js} +1 -1
  6. package/dist/{CountdownToolbar-CojjlZet.js → CountdownToolbar-Bn4RwJVN.js} +2 -2
  7. package/dist/{DesignReferenceSidebar-C1W02bYt.js → DesignReferenceSidebar-D08CLZPA.js} +1 -1
  8. package/dist/{ModuleBrowserModal-Bjh99_5c.js → ModuleBrowserModal-D6637s8j.js} +4 -4
  9. package/dist/{ModulePreviewCanvas-DDDQmUI_.js → ModulePreviewCanvas-DBFmwq-y.js} +1 -1
  10. package/dist/{NumberWithSuffix-CLTBb2Rj.js → NumberWithSuffix-CyFX9w1e.js} +1 -1
  11. package/dist/{ParagraphEditor-BSaEdasm.js → ParagraphEditor-DC2jOjNh.js} +16 -16
  12. package/dist/{RichTextEditorContent-C3QSg7gd.js → RichTextEditorContent-8NkjTIua.js} +1 -1
  13. package/dist/{SaveModuleDialog-9fX6oSxf.js → SaveModuleDialog-NKT7bWWs.js} +2 -2
  14. package/dist/{SnapshotHistory-gYW-IXkE.js → SnapshotHistory-XNqYxPBj.js} +2 -2
  15. package/dist/{TestEmailModal-B_Rmnngq.js → TestEmailModal-B_-Qo5Us.js} +2 -2
  16. package/dist/{TitleEditor-XbFuw1Vy.js → TitleEditor-DnH3yyTr.js} +7 -7
  17. package/dist/{TplModal-LY9rkDph.js → TplModal-BoEZFe3U.js} +2 -2
  18. package/dist/{blockTypeIcons-CLT2H0yU.js → blockTypeIcons-CUcYuWAO.js} +1 -1
  19. package/dist/bundle-stats.json +7 -7
  20. package/dist/cdn/chunks/{AccessibilityPanel-DaqF4Xzy.js → AccessibilityPanel-CQt87OMk.js} +5 -5
  21. package/dist/cdn/chunks/{AccessibilityPanel-DaqF4Xzy.js.map → AccessibilityPanel-CQt87OMk.js.map} +1 -1
  22. package/dist/cdn/chunks/{AiFeatureMenu-WhZ7G-Wr.js → AiFeatureMenu-SxIqfqA0.js} +8 -8
  23. package/dist/cdn/chunks/{AiFeatureMenu-WhZ7G-Wr.js.map → AiFeatureMenu-SxIqfqA0.js.map} +1 -1
  24. package/dist/cdn/chunks/{BlockA11yBadge-BLKyO0lH.js → BlockA11yBadge-QqW6nomn.js} +3 -3
  25. package/dist/cdn/chunks/{BlockA11yBadge-BLKyO0lH.js.map → BlockA11yBadge-QqW6nomn.js.map} +1 -1
  26. package/dist/cdn/chunks/{CloudEditor-BKEXPt3g.js → CloudEditor-ChWUIMw7.js} +165 -161
  27. package/dist/cdn/chunks/CloudEditor-ChWUIMw7.js.map +1 -0
  28. package/dist/cdn/chunks/{CollaboratorBar-ASDiTitQ.js → CollaboratorBar-73LfbzqF.js} +3 -3
  29. package/dist/cdn/chunks/{CollaboratorBar-ASDiTitQ.js.map → CollaboratorBar-73LfbzqF.js.map} +1 -1
  30. package/dist/cdn/chunks/{CountdownBlock-LAlYJYWL.js → CountdownBlock-WYz9b9Ex.js} +2 -2
  31. package/dist/cdn/chunks/{CountdownBlock-LAlYJYWL.js.map → CountdownBlock-WYz9b9Ex.js.map} +1 -1
  32. package/dist/cdn/chunks/{CountdownToolbar-CbIKGP7u.js → CountdownToolbar-B9fPfFqp.js} +3 -3
  33. package/dist/cdn/chunks/{CountdownToolbar-CbIKGP7u.js.map → CountdownToolbar-B9fPfFqp.js.map} +1 -1
  34. package/dist/cdn/chunks/{ModuleBrowserModal-BjmdleNq.js → ModuleBrowserModal-DfnJQBkM.js} +8 -8
  35. package/dist/cdn/chunks/{ModuleBrowserModal-BjmdleNq.js.map → ModuleBrowserModal-DfnJQBkM.js.map} +1 -1
  36. package/dist/cdn/chunks/{ModulePreviewCanvas-DsmACAdb.js → ModulePreviewCanvas-DE4_oHA_.js} +20 -20
  37. package/dist/cdn/chunks/{ModulePreviewCanvas-DsmACAdb.js.map → ModulePreviewCanvas-DE4_oHA_.js.map} +1 -1
  38. package/dist/cdn/chunks/{NumberWithSuffix-EEDNj1my.js → NumberWithSuffix-BST0yRor.js} +2 -2
  39. package/dist/cdn/chunks/{NumberWithSuffix-EEDNj1my.js.map → NumberWithSuffix-BST0yRor.js.map} +1 -1
  40. package/dist/cdn/chunks/{ParagraphEditor-D6Dw5RtX.js → ParagraphEditor-CQfijF3i.js} +36 -36
  41. package/dist/cdn/chunks/{ParagraphEditor-D6Dw5RtX.js.map → ParagraphEditor-CQfijF3i.js.map} +1 -1
  42. package/dist/cdn/chunks/{RichTextEditorContent-C2yj_yPM.js → RichTextEditorContent-CBds8dnm.js} +5 -5
  43. package/dist/cdn/chunks/{RichTextEditorContent-C2yj_yPM.js.map → RichTextEditorContent-CBds8dnm.js.map} +1 -1
  44. package/dist/cdn/chunks/{SaveModuleDialog-DCcvwYat.js → SaveModuleDialog-DXhuZgZ4.js} +13 -13
  45. package/dist/cdn/chunks/{SaveModuleDialog-DCcvwYat.js.map → SaveModuleDialog-DXhuZgZ4.js.map} +1 -1
  46. package/dist/cdn/chunks/{TitleEditor-isN_t0MJ.js → TitleEditor-BdQvH7eK.js} +7 -7
  47. package/dist/cdn/chunks/{TitleEditor-isN_t0MJ.js.map → TitleEditor-BdQvH7eK.js.map} +1 -1
  48. package/dist/cdn/chunks/{blockTypeIcons-Bgn69Q1-.js → blockTypeIcons-D3CGFW5P.js} +8 -8
  49. package/dist/cdn/chunks/{blockTypeIcons-Bgn69Q1-.js.map → blockTypeIcons-D3CGFW5P.js.map} +1 -1
  50. package/dist/cdn/chunks/{extensions-BPsjY5N8.js → extensions-BE81zpqP.js} +50 -48
  51. package/dist/cdn/chunks/{extensions-BPsjY5N8.js.map → extensions-BE81zpqP.js.map} +1 -1
  52. package/dist/cdn/chunks/{features-BouLRfOO.js → features-CXF_YKlL.js} +1258 -1113
  53. package/dist/cdn/chunks/features-CXF_YKlL.js.map +1 -0
  54. package/dist/cdn/chunks/{icons-BBuZkqC3.js → icons-KbmhF7rg.js} +2 -2
  55. package/dist/cdn/chunks/{icons-BBuZkqC3.js.map → icons-KbmhF7rg.js.map} +1 -1
  56. package/dist/cdn/chunks/{media-library-C-DcHE6w.js → media-library-BERe10wA.js} +103 -103
  57. package/dist/cdn/chunks/{media-library-C-DcHE6w.js.map → media-library-BERe10wA.js.map} +1 -1
  58. package/dist/cdn/chunks/{quality-ConWSEB6.js → quality-CmkY1kMU.js} +309 -309
  59. package/dist/cdn/chunks/{quality-ConWSEB6.js.map → quality-CmkY1kMU.js.map} +1 -1
  60. package/dist/cdn/chunks/{renderer-F8cxEe3t.js → renderer-OttGEYkY.js} +50 -50
  61. package/dist/cdn/chunks/{renderer-F8cxEe3t.js.map → renderer-OttGEYkY.js.map} +1 -1
  62. package/dist/cdn/chunks/{src-C9rMok-R.js → src-C21GI0p6.js} +6 -6
  63. package/dist/cdn/chunks/{src-C9rMok-R.js.map → src-C21GI0p6.js.map} +1 -1
  64. package/dist/cdn/chunks/styles-Cy-My9zK.js +2976 -0
  65. package/dist/cdn/chunks/styles-Cy-My9zK.js.map +1 -0
  66. package/dist/cdn/editor.css +1 -1
  67. package/dist/cdn/editor.js +109 -106
  68. package/dist/cdn/editor.js.map +1 -1
  69. package/dist/{dist-DDJIWTRY.js → dist-B2jcQhv8.js} +1 -1
  70. package/dist/{dist-wzMIGj-D.js → dist-BYt3jdCR.js} +1 -1
  71. package/dist/{dist-aRzjfSRN.js → dist-CISFttkF.js} +1 -1
  72. package/dist/{dist-D6uC2xhi.js → dist-CfQPBf15.js} +1 -1
  73. package/dist/{dist-DjviJBCi.js → dist-DD-9hatO.js} +1 -1
  74. package/dist/{dist-KoBJjK1G.js → dist-DUvhjQ2-.js} +1 -1
  75. package/dist/{dist-BaQIYPsn.js → dist-DVwOAodp.js} +1 -1
  76. package/dist/{dist-Cp0zXPAD.js → dist-DxD1kSdH.js} +1 -1
  77. package/dist/{dist-Pk4MhWMP.js → dist-U5guDm2w.js} +1 -1
  78. package/dist/{dist-D90y8dvT.js → dist-hfu7I2rO.js} +3 -3
  79. package/dist/{dist-us-RpCWN.js → dist-v8h02hhE.js} +1 -1
  80. package/dist/{extensions-D-J02CiP.js → extensions-p6UBqXfg.js} +30 -28
  81. package/dist/index.d.ts +8 -8
  82. package/dist/style.css +1 -1
  83. package/dist/{styles-j_3bu0Bo.js → styles-BP15QmP3.js} +1058 -1052
  84. package/dist/templatical-editor.js +108 -105
  85. package/dist/useAliveFlag-D8GoB4VE.js +10 -0
  86. package/dist/{useEditorCore-B1XrI6fY.js → useEditorCore-_rbu6iMu.js} +921 -778
  87. package/package.json +7 -7
  88. package/dist/cdn/chunks/CloudEditor-BKEXPt3g.js.map +0 -1
  89. package/dist/cdn/chunks/features-BouLRfOO.js.map +0 -1
  90. package/dist/cdn/chunks/styles-BRN0i_zg.js +0 -2971
  91. package/dist/cdn/chunks/styles-BRN0i_zg.js.map +0 -1
  92. /package/dist/{AccessibilityPanel-D-PqmHdH.js → AccessibilityPanel-BeUibrUb.js} +0 -0
  93. /package/dist/{BlockA11yBadge-BFIw0h1m.js → BlockA11yBadge-BhyoMZJ9.js} +0 -0
  94. /package/dist/{CountdownBlock-Cq8A8WrM.js → CountdownBlock-ByJ0_8Pk.js} +0 -0
  95. /package/dist/{TemplateScoringPanel-V79yrEPC.js → TemplateScoringPanel-kYOGtac3.js} +0 -0
  96. /package/dist/{cloud-CTmfCSqf.js → cloud-k0DgeCo2.js} +0 -0
  97. /package/dist/{de-BhIWu_bO.js → de-C9hp3n_a.js} +0 -0
  98. /package/dist/{de-Di4MEjjx.js → de-GOtR9DwW.js} +0 -0
  99. /package/dist/{dist-iLBdeBDR.js → dist-CQQS9SRN.js} +0 -0
  100. /package/dist/{emojiData-DX3E0XT-.js → emojiData-DrBuvEoP.js} +0 -0
  101. /package/dist/{en-D7HRbYah.js → en-Dv776AqL.js} +0 -0
  102. /package/dist/{en-BSuzi-Pd.js → en-dFFQVzNn.js} +0 -0
  103. /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-bvx5sFh5.js} +0 -0
  104. /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-DX8ZHRdq.js} +0 -0
  105. /package/dist/{pt-BR-K32lt6YP.js → pt-BR-6n58Fl_q.js} +0 -0
  106. /package/dist/{pt-BR-CCVBRais.js → pt-BR-iOr79aDg.js} +0 -0
  107. /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-CXzrEnNb.js} +0 -0
  108. /package/dist/{styleConstants-fWzlIIwN.js → styleConstants-DkfOPzGu.js} +0 -0
  109. /package/dist/{usePopoverRoot-BxJrqnMD.js → usePopoverRoot-BwzFSPLy.js} +0 -0
@@ -1,35 +1,36 @@
1
- import { A as e, B as t, E as n, F as r, J as i, L as a, M as o, N as s, X as c, _ as l, a as u, at as d, b as f, c as p, d as m, f as h, h as g, l as _, m as v, o as y, ot as b, p as x, rt as S, s as C, st as w, t as T, v as E, w as D, y as O, z as k } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
- import { C as A, D as j, E as ee, S as M, a as te, l as N, n as P, o as F } from "./dist-DJmnUmW9.js";
3
- import { A as ne, F as I, I as L, M as re, N as ie, T as ae, _ as oe, a as se, c as ce, d as le, g as ue, h as de, i as fe, j as pe, k as R, l as me, m as he, n as ge, o as _e, p as ve, r as ye, s as be, u as xe, v as Se, y as Ce } from "./useEditorCore-B1XrI6fY.js";
4
- import { s as we } from "./dist-BzRLLpfq.js";
5
- import { A as Te, S as Ee, c as De, d as Oe, f as ke, g as Ae, m as je, o as Me, p as Ne, r as Pe, s as Fe, t as Ie, x as Le } from "./keys-B5SJtPWf.js";
1
+ import { A as e, B as t, E as n, F as r, J as i, L as a, M as o, N as s, U as c, X as l, _ as u, a as d, at as f, b as p, c as m, d as h, f as g, h as _, l as v, m as y, o as b, ot as x, p as S, q as C, rt as w, s as T, st as E, t as D, v as O, w as k, y as A, z as j } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
2
+ import { C as ee, D as M, E as te, S as N, a as P, l as F, n as ne, o as I } from "./dist-DJmnUmW9.js";
3
+ import { A as L, F as re, I as ie, M as ae, N as oe, T as R, _ as se, a as ce, c as le, d as ue, g as de, h as fe, i as pe, j as me, k as he, l as ge, m as _e, n as ve, o as ye, p as be, r as xe, s as Se, u as Ce, v as we, y as Te } from "./useEditorCore-_rbu6iMu.js";
4
+ import { s as Ee } from "./dist-BzRLLpfq.js";
5
+ import { A as De, S as Oe, c as ke, d as Ae, f as je, g as Me, m as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, x as ze } from "./keys-B5SJtPWf.js";
6
6
  import { t as z } from "./useI18n-PEB8ioi_.js";
7
7
  import { t as B } from "./createLucideIcon-Di4mqmGn.js";
8
- import { t as Re } from "./accessibility-BgUEA-Ai.js";
9
- import { t as ze } from "./chevron-down-tee-ghFi.js";
10
- import { t as Be } from "./circle-alert-C0L9pUQ4.js";
11
- import { n as Ve, r as V, t as He } from "./blockTypeIcons-CLT2H0yU.js";
12
- import { n as Ue, t as We } from "./refresh-cw-BNAhAmtL.js";
13
- import { t as Ge } from "./image-up-1D_3XDdO.js";
14
- import { t as Ke } from "./info-DTGrc0Bx.js";
15
- import { t as qe } from "./scan-line-DUEg6DoT.js";
16
- import { t as Je } from "./sparkles-D1IGi_cC.js";
17
- import { n as Ye, r as Xe, t as Ze } from "./text-align-start-DG3aAH7Y.js";
18
- import { t as Qe } from "./trash-2-424iqbpN.js";
19
- import { t as $e } from "./x-Dlaenqta.js";
8
+ import { t as Be } from "./accessibility-BgUEA-Ai.js";
9
+ import { t as Ve } from "./chevron-down-tee-ghFi.js";
10
+ import { t as He } from "./circle-alert-C0L9pUQ4.js";
11
+ import { n as Ue, r as V, t as We } from "./blockTypeIcons-CUcYuWAO.js";
12
+ import { n as Ge, t as Ke } from "./refresh-cw-BNAhAmtL.js";
13
+ import { t as qe } from "./image-up-1D_3XDdO.js";
14
+ import { t as Je } from "./info-DTGrc0Bx.js";
15
+ import { t as Ye } from "./scan-line-DUEg6DoT.js";
16
+ import { t as Xe } from "./sparkles-D1IGi_cC.js";
17
+ import { n as Ze, r as Qe, t as $e } from "./text-align-start-DG3aAH7Y.js";
18
+ import { t as et } from "./trash-2-424iqbpN.js";
19
+ import { t as tt } from "./x-Dlaenqta.js";
20
20
  import { t as H } from "./_plugin-vue_export-helper-B0hnzhyu.js";
21
- import { t as et } from "./useCloudI18n-ByEMykjO.js";
22
- import { t as tt } from "./useMergeTag-C47xwU7X.js";
23
- import { t as nt } from "./readableTextColor-CY3SiRnt.js";
24
- import { t as rt } from "./CountdownBlock-Cq8A8WrM.js";
25
- import { _ as it, c as at, f as U, g as ot, h as W, l as st, m as G, p as K, t as ct } from "./styleConstants-fWzlIIwN.js";
26
- import { i as q, n as J, r as Y, t as lt } from "./NumberWithSuffix-CLTBb2Rj.js";
27
- var ut = B("circle", [["circle", {
21
+ import { t as nt } from "./useCloudI18n-ByEMykjO.js";
22
+ import { t as rt } from "./useMergeTag-C47xwU7X.js";
23
+ import { t as it } from "./useAliveFlag-D8GoB4VE.js";
24
+ import { t as at } from "./readableTextColor-CXzrEnNb.js";
25
+ import { t as ot } from "./CountdownBlock-ByJ0_8Pk.js";
26
+ import { _ as st, c as ct, f as U, g as lt, h as W, l as ut, m as G, p as K, t as dt } from "./styleConstants-DkfOPzGu.js";
27
+ import { i as q, n as J, r as Y, t as ft } from "./NumberWithSuffix-CyFX9w1e.js";
28
+ var pt = B("circle", [["circle", {
28
29
  cx: "12",
29
30
  cy: "12",
30
31
  r: "10",
31
32
  key: "1mglay"
32
- }]]), dt = B("globe", [
33
+ }]]), mt = B("globe", [
33
34
  ["circle", {
34
35
  cx: "12",
35
36
  cy: "12",
@@ -44,7 +45,7 @@ var ut = B("circle", [["circle", {
44
45
  d: "M2 12h20",
45
46
  key: "9i4pu4"
46
47
  }]
47
- ]), ft = B("layout-template", [
48
+ ]), ht = B("layout-template", [
48
49
  ["rect", {
49
50
  width: "18",
50
51
  height: "7",
@@ -69,7 +70,7 @@ var ut = B("circle", [["circle", {
69
70
  rx: "1",
70
71
  key: "q5h2i8"
71
72
  }]
72
- ]), pt = B("lock-open", [["rect", {
73
+ ]), gt = B("lock-open", [["rect", {
73
74
  width: "18",
74
75
  height: "11",
75
76
  x: "3",
@@ -80,7 +81,7 @@ var ut = B("circle", [["circle", {
80
81
  }], ["path", {
81
82
  d: "M7 11V7a5 5 0 0 1 9.9-1",
82
83
  key: "1mm8w8"
83
- }]]), mt = B("lock", [["rect", {
84
+ }]]), _t = B("lock", [["rect", {
84
85
  width: "18",
85
86
  height: "11",
86
87
  x: "3",
@@ -91,7 +92,7 @@ var ut = B("circle", [["circle", {
91
92
  }], ["path", {
92
93
  d: "M7 11V7a5 5 0 0 1 10 0v4",
93
94
  key: "fwvmzm"
94
- }]]), ht = B("monitor", [
95
+ }]]), vt = B("monitor", [
95
96
  ["rect", {
96
97
  width: "20",
97
98
  height: "14",
@@ -114,10 +115,10 @@ var ut = B("circle", [["circle", {
114
115
  y2: "21",
115
116
  key: "vw1qmm"
116
117
  }]
117
- ]), gt = B("moon", [["path", {
118
+ ]), yt = B("moon", [["path", {
118
119
  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",
119
120
  key: "kfwtm"
120
- }]]), _t = B("panel-top", [["rect", {
121
+ }]]), bt = B("panel-top", [["rect", {
121
122
  width: "18",
122
123
  height: "18",
123
124
  x: "3",
@@ -133,13 +134,13 @@ var ut = B("circle", [["circle", {
133
134
  }], ["path", {
134
135
  d: "M12 5v14",
135
136
  key: "s699le"
136
- }]]), vt = B("rotate-ccw", [["path", {
137
+ }]]), xt = B("rotate-ccw", [["path", {
137
138
  d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
138
139
  key: "1357e3"
139
140
  }], ["path", {
140
141
  d: "M3 3v5h5",
141
142
  key: "1xhq8a"
142
- }]]), yt = B("settings", [["path", {
143
+ }]]), St = B("settings", [["path", {
143
144
  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",
144
145
  key: "1i5ecw"
145
146
  }], ["circle", {
@@ -147,7 +148,7 @@ var ut = B("circle", [["circle", {
147
148
  cy: "12",
148
149
  r: "3",
149
150
  key: "1v7zrd"
150
- }]]), bt = B("smartphone", [["rect", {
151
+ }]]), Ct = B("smartphone", [["rect", {
151
152
  width: "14",
152
153
  height: "20",
153
154
  x: "5",
@@ -158,7 +159,7 @@ var ut = B("circle", [["circle", {
158
159
  }], ["path", {
159
160
  d: "M12 18h.01",
160
161
  key: "mhygvu"
161
- }]]), xt = B("square-plus", [
162
+ }]]), wt = B("square-plus", [
162
163
  ["rect", {
163
164
  width: "18",
164
165
  height: "18",
@@ -175,14 +176,14 @@ var ut = B("circle", [["circle", {
175
176
  d: "M12 8v8",
176
177
  key: "napkw2"
177
178
  }]
178
- ]), St = B("square", [["rect", {
179
+ ]), Tt = B("square", [["rect", {
179
180
  width: "18",
180
181
  height: "18",
181
182
  x: "3",
182
183
  y: "3",
183
184
  rx: "2",
184
185
  key: "afitv7"
185
- }]]), Ct = B("sun", [
186
+ }]]), Et = B("sun", [
186
187
  ["circle", {
187
188
  cx: "12",
188
189
  cy: "12",
@@ -221,7 +222,7 @@ var ut = B("circle", [["circle", {
221
222
  d: "m19.07 4.93-1.41 1.41",
222
223
  key: "1shlcs"
223
224
  }]
224
- ]), wt = B("tablet", [["rect", {
225
+ ]), Dt = B("tablet", [["rect", {
225
226
  width: "16",
226
227
  height: "20",
227
228
  x: "4",
@@ -238,7 +239,7 @@ var ut = B("circle", [["circle", {
238
239
  }]]);
239
240
  //#endregion
240
241
  //#region src/utils/resolveAccessibilityOptions.ts
241
- function Tt(e) {
242
+ function Ot(e) {
242
243
  return {
243
244
  ...e.accessibility,
244
245
  locale: e.locale
@@ -246,19 +247,19 @@ function Tt(e) {
246
247
  }
247
248
  //#endregion
248
249
  //#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
249
- var Et = ["aria-label"], Dt = {
250
+ var kt = ["aria-label"], At = {
250
251
  key: 0,
251
252
  class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
252
- }, Ot = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, kt = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, At = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, jt = {
253
+ }, jt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Mt = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Nt = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Pt = {
253
254
  key: 0,
254
255
  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)]"
255
- }, Mt = {
256
+ }, Ft = {
256
257
  key: 1,
257
258
  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)]"
258
- }, Nt = { class: "tpl:relative" }, Pt = {
259
+ }, It = { class: "tpl:relative" }, Lt = {
259
260
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
260
261
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
261
- }, Ft = /* @__PURE__ */ H(/* @__PURE__ */ f({
262
+ }, Rt = /* @__PURE__ */ H(/* @__PURE__ */ p({
262
263
  __name: "Canvas",
263
264
  props: {
264
265
  viewport: {},
@@ -275,35 +276,35 @@ var Et = ["aria-label"], Dt = {
275
276
  ],
276
277
  setup(n, { emit: i }) {
277
278
  let a = {
278
- section: ce,
279
- title: xe,
280
- paragraph: he,
281
- image: ue,
282
- button: ie,
283
- divider: Se,
284
- spacer: fe,
285
- html: oe,
286
- social: se,
287
- menu: de,
288
- table: ye,
289
- video: ge,
290
- countdown: rt,
291
- custom: Ce
292
- }, s = n, u = i, { t: f } = z(), { t: p } = et(), C = Te(je, "Canvas"), T = D(Oe, null), O = D(Fe, null), A = D(De, {}), j = m(() => (A.plan?.hasFeature("ai_generation") ?? !1) && (A.ai?.isFeatureEnabled("chat") ?? !1)), ee = m(() => (A.plan?.hasFeature("ai_generation") ?? !1) && (A.ai?.isFeatureEnabled("designToTemplate") ?? !1)), M = m({
279
+ section: le,
280
+ title: Ce,
281
+ paragraph: _e,
282
+ image: de,
283
+ button: oe,
284
+ divider: we,
285
+ spacer: pe,
286
+ html: se,
287
+ social: ce,
288
+ menu: fe,
289
+ table: xe,
290
+ video: ve,
291
+ countdown: ot,
292
+ custom: Te
293
+ }, s = n, c = i, { t: d } = z(), { t: p } = nt(), m = De(Ne, "Canvas"), C = k(Ae, null), T = k(Le, null), D = k(ke, {}), A = h(() => (D.plan?.hasFeature("ai_generation") ?? !1) && (D.ai?.isFeatureEnabled("chat") ?? !1)), ee = h(() => (D.plan?.hasFeature("ai_generation") ?? !1) && (D.ai?.isFeatureEnabled("designToTemplate") ?? !1)), M = h({
293
294
  get: () => s.content.blocks,
294
295
  set: (e) => {
295
- C.setContent({
296
+ m.setContent({
296
297
  ...s.content,
297
298
  blocks: e
298
299
  });
299
300
  }
300
- }), te = m(() => {
301
+ }), te = h(() => {
301
302
  switch (s.viewport) {
302
303
  case "mobile": return 375;
303
304
  case "tablet": return 768;
304
305
  default: return s.content.settings.width;
305
306
  }
306
- }), N = m(() => ({ fontFamily: s.content.settings.fontFamily })), P = m(() => M.value.length === 0 && !s.previewMode), F = c(0), ne = m(() => P.value && F.value > 0);
307
+ }), N = h(() => ({ fontFamily: s.content.settings.fontFamily })), P = h(() => M.value.length === 0 && !s.previewMode), F = l(0), ne = h(() => P.value && F.value > 0);
307
308
  function I() {
308
309
  P.value && (F.value += 1);
309
310
  }
@@ -313,46 +314,46 @@ var Et = ["aria-label"], Dt = {
313
314
  function re() {
314
315
  F.value = 0;
315
316
  }
316
- function ae(e) {
317
- s.previewMode || e.target === e.currentTarget && u("select-block", null);
317
+ function ie(e) {
318
+ s.previewMode || e.target === e.currentTarget && c("select-block", null);
318
319
  }
319
- function pe(e) {
320
- return ve(e, O, a);
320
+ function ae(e) {
321
+ return be(e, T, a);
321
322
  }
322
323
  function R(e) {
323
324
  return s.lockedBlocks?.get(e) ?? null;
324
325
  }
325
- function _e(e, t) {
326
- e.type === "custom" && C.updateBlock(e.id, {
326
+ function me(e, t) {
327
+ e.type === "custom" && m.updateBlock(e.id, {
327
328
  fieldValues: t.fieldValues,
328
329
  dataSourceFetched: t.dataSourceFetched
329
330
  });
330
331
  }
331
- return (i, a) => (e(), g("div", {
332
+ return (i, a) => (e(), _("div", {
332
333
  "data-testid": "canvas-wrapper",
333
334
  role: "region",
334
- "aria-label": S(f).landmarks.canvas,
335
+ "aria-label": w(d).landmarks.canvas,
335
336
  class: "tpl-canvas-wrapper tpl:relative tpl:rounded-lg",
336
- style: b({
337
+ style: x({
337
338
  width: `${te.value}px`,
338
339
  boxShadow: n.darkMode ? "none" : "var(--tpl-shadow-xl)",
339
340
  transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
340
341
  })
341
- }, [h("div", {
342
+ }, [g("div", {
342
343
  class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
343
- style: b({
344
+ style: x({
344
345
  backgroundColor: n.content.settings.backgroundColor,
345
346
  ...n.darkMode ? { filter: "invert(1) hue-rotate(180deg)" } : {},
346
347
  transition: "filter 300ms ease"
347
348
  })
348
- }, null, 4), h("div", {
349
- class: d(["tpl-canvas tpl:relative tpl:rounded-lg", {
349
+ }, null, 4), g("div", {
350
+ class: f(["tpl-canvas tpl:relative tpl:rounded-lg", {
350
351
  "tpl-canvas--dark-mode": n.darkMode,
351
352
  "tpl-preview-mode": n.previewMode
352
353
  }]),
353
- style: b(N.value),
354
- onClick: ae
355
- }, [E(S(me), {
354
+ style: x(N.value),
355
+ onClick: ie
356
+ }, [O(w(ge), {
356
357
  modelValue: M.value,
357
358
  "onUpdate:modelValue": a[2] ||= (e) => M.value = e,
358
359
  group: "blocks",
@@ -365,7 +366,7 @@ var Et = ["aria-label"], Dt = {
365
366
  disabled: n.previewMode,
366
367
  draggable: ".tpl-block-item",
367
368
  "force-fallback": !0,
368
- class: d([
369
+ class: f([
369
370
  "tpl-canvas-blocks",
370
371
  P.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
371
372
  P.value && ne.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
@@ -375,63 +376,63 @@ var Et = ["aria-label"], Dt = {
375
376
  onDragleave: L,
376
377
  onDrop: re
377
378
  }, {
378
- default: k(() => [P.value ? (e(), g("div", Dt, [
379
- h("div", Ot, [E(S(xt), {
379
+ default: j(() => [P.value ? (e(), _("div", At, [
380
+ g("div", jt, [O(w(wt), {
380
381
  size: 48,
381
382
  "stroke-width": 1
382
383
  })]),
383
- h("p", kt, w(S(f).canvas.noBlocks), 1),
384
- h("p", At, w(S(f).canvas.dragHint), 1),
385
- j.value && S(p) ? (e(), g("p", jt, [
386
- l(w(S(f).canvas.aiHintChat) + " ", 1),
387
- h("button", {
384
+ g("p", Mt, E(w(d).canvas.noBlocks), 1),
385
+ g("p", Nt, E(w(d).canvas.dragHint), 1),
386
+ A.value && w(p) ? (e(), _("p", Pt, [
387
+ u(E(w(d).canvas.aiHintChat) + " ", 1),
388
+ g("button", {
388
389
  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)]",
389
- onClick: a[0] ||= (e) => u("open-ai-chat")
390
- }, [E(S(Je), {
390
+ onClick: a[0] ||= (e) => c("open-ai-chat")
391
+ }, [O(w(Xe), {
391
392
  size: 14,
392
393
  "stroke-width": 2
393
- }), l(" " + w(S(p).aiMenu.aiAssistant), 1)]),
394
- l(" " + w(S(f).canvas.aiHintChatSuffix), 1)
395
- ])) : v("", !0),
396
- ee.value && S(p) ? (e(), g("p", Mt, [
397
- l(w(S(f).canvas.aiHintDesign) + " ", 1),
398
- h("button", {
394
+ }), u(" " + E(w(p).aiMenu.aiAssistant), 1)]),
395
+ u(" " + E(w(d).canvas.aiHintChatSuffix), 1)
396
+ ])) : y("", !0),
397
+ ee.value && w(p) ? (e(), _("p", Ft, [
398
+ u(E(w(d).canvas.aiHintDesign) + " ", 1),
399
+ g("button", {
399
400
  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)]",
400
- onClick: a[1] ||= (e) => u("open-design-reference")
401
- }, [E(S(Ge), {
401
+ onClick: a[1] ||= (e) => c("open-design-reference")
402
+ }, [O(w(qe), {
402
403
  size: 14,
403
404
  "stroke-width": 2
404
- }), l(" " + w(S(p).aiMenu.designToTemplate), 1)]),
405
- l(" " + w(S(f).canvas.aiHintDesignSuffix), 1)
406
- ])) : v("", !0)
407
- ])) : v("", !0), (e(!0), g(_, null, o(M.value, (i) => t((e(), g("div", {
405
+ }), u(" " + E(w(p).aiMenu.designToTemplate), 1)]),
406
+ u(" " + E(w(d).canvas.aiHintDesignSuffix), 1)
407
+ ])) : y("", !0)
408
+ ])) : y("", !0), (e(!0), _(v, null, o(M.value, (i) => t((e(), _("div", {
408
409
  key: i.id,
409
410
  class: "tpl-block-item"
410
- }, [h("div", Nt, [R(i.id) ? (e(), g("div", {
411
+ }, [g("div", It, [R(i.id) ? (e(), _("div", {
411
412
  key: 0,
412
413
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
413
- style: b({
414
+ style: x({
414
415
  outline: `2px solid ${R(i.id).color}`,
415
416
  outlineOffset: "-1px"
416
417
  })
417
- }, [h("span", {
418
+ }, [g("span", {
418
419
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
419
- style: b({
420
+ style: x({
420
421
  backgroundColor: R(i.id).color,
421
- color: S(nt)(R(i.id).color)
422
+ color: w(at)(R(i.id).color)
422
423
  })
423
- }, [h("span", Pt, w(R(i.id).name.charAt(0)), 1), l(" " + w(R(i.id).name), 1)], 4)], 4)) : v("", !0), E(le, {
424
+ }, [g("span", Lt, E(R(i.id).name.charAt(0)), 1), u(" " + E(R(i.id).name), 1)], 4)], 4)) : y("", !0), O(ue, {
424
425
  block: i,
425
426
  "is-selected": !n.previewMode && n.selectedBlockId === i.id && !R(i.id),
426
427
  viewport: n.viewport,
427
428
  "preview-mode": n.previewMode,
428
- onSelect: (e) => n.previewMode || R(i.id) ? void 0 : u("select-block", i.id)
429
+ onSelect: (e) => n.previewMode || R(i.id) ? void 0 : c("select-block", i.id)
429
430
  }, {
430
- default: k(() => [(e(), x(r(pe(i)), {
431
+ default: j(() => [(e(), S(r(ae(i)), {
431
432
  block: i,
432
433
  viewport: n.viewport,
433
- onFetchData: (e) => _e(i, e),
434
- onUpdate: (e) => S(C).updateBlock(i.id, e)
434
+ onFetchData: (e) => me(i, e),
435
+ onUpdate: (e) => w(m).updateBlock(i.id, e)
435
436
  }, null, 40, [
436
437
  "block",
437
438
  "viewport",
@@ -445,45 +446,45 @@ var Et = ["aria-label"], Dt = {
445
446
  "viewport",
446
447
  "preview-mode",
447
448
  "onSelect"
448
- ])])])), [[y, !S(T)?.isHidden(i.id)]])), 128))]),
449
+ ])])])), [[b, !w(C)?.isHidden(i.id)]])), 128))]),
449
450
  _: 1
450
451
  }, 8, [
451
452
  "modelValue",
452
453
  "disabled",
453
454
  "class"
454
- ])], 6)], 12, Et));
455
+ ])], 6)], 12, kt));
455
456
  }
456
- }), [["__scopeId", "data-v-a4d3fa2d"]]), It = ["aria-label"], Lt = {
457
+ }), [["__scopeId", "data-v-a4d3fa2d"]]), zt = ["aria-label"], Bt = {
457
458
  key: 0,
458
459
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
459
- }, Rt = ["aria-label"], zt = {
460
+ }, Vt = ["aria-label"], Ht = {
460
461
  key: 0,
461
462
  class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
462
- }, Bt = {
463
+ }, Ut = {
463
464
  key: 1,
464
465
  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)]"
465
- }, Vt = [
466
+ }, Wt = [
466
467
  "data-palette-type",
467
468
  "aria-label",
468
469
  "onClick",
469
470
  "onKeydown"
470
- ], Ht = { 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" }, Ut = {
471
+ ], Gt = { 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" }, Kt = {
471
472
  key: 0,
472
473
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
473
- }, Wt = /* @__PURE__ */ f({
474
+ }, qt = /* @__PURE__ */ p({
474
475
  __name: "Sidebar",
475
476
  setup(t) {
476
- let { t: n, format: i } = z(), { t: a } = et(), s = D(ke, []), l = D(Me, void 0), u = D(je, null), d = D(De, {}), f = m(() => (d.savedModules?.moduleCount.value ?? 0) > 0), p = c(!1), y = c(!1);
477
+ let { t: n, format: i } = z(), { t: a } = nt(), s = k(je, []), c = k(Pe, void 0), u = k(Ne, null), d = k(ke, {}), f = h(() => (d.savedModules?.moduleCount.value ?? 0) > 0), p = l(!1), m = l(!1);
478
+ function b() {
479
+ m.value || (p.value = !1);
480
+ }
477
481
  function C() {
478
- y.value || (p.value = !1);
482
+ m.value = !0;
479
483
  }
480
484
  function T() {
481
- y.value = !0;
482
- }
483
- function O() {
484
- y.value = !1;
485
+ m.value = !1;
485
486
  }
486
- let A = [
487
+ let D = [
487
488
  "section",
488
489
  "image",
489
490
  "title",
@@ -496,40 +497,40 @@ var Et = ["aria-label"], Dt = {
496
497
  "table",
497
498
  "spacer",
498
499
  "html"
499
- ], j = m(() => {
500
- let e = A.map((e) => ({
500
+ ], A = h(() => {
501
+ let e = D.map((e) => ({
501
502
  type: e,
502
- label: I(e, n)
503
+ label: re(e, n)
503
504
  }));
504
505
  return d.plan && e.splice(-1, 0, {
505
506
  type: "countdown",
506
- label: I("countdown", n)
507
+ label: re("countdown", n)
507
508
  }), e;
508
- }), ee = m(() => s.map((e) => ({
509
+ }), ee = h(() => s.map((e) => ({
509
510
  type: `custom:${e.type}`,
510
511
  label: e.name,
511
512
  isCustom: !0,
512
513
  icon: e.icon
513
- }))), M = m(() => [...j.value, ...ee.value]);
514
+ }))), M = h(() => [...A.value, ...ee.value]);
514
515
  function te(e) {
515
516
  if (e.isCustom) {
516
517
  let t = e.type.replace("custom:", ""), n = s.find((e) => e.type === t);
517
- if (n) return N(n);
518
+ if (n) return F(n);
518
519
  }
519
- return F(e.type, l);
520
+ return I(e.type, c);
520
521
  }
521
- function P(e) {
522
+ function N(e) {
522
523
  if (!u) return;
523
524
  let t = te(e);
524
525
  u.addBlock(t), u.selectBlock(t.id);
525
526
  }
526
- function ne(e, t) {
527
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), P(t));
527
+ function P(e, t) {
528
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), N(t));
528
529
  }
529
- return (t, s) => (e(), g("aside", {
530
- "aria-label": S(n).sidebarNav.palette,
530
+ return (t, s) => (e(), _("aside", {
531
+ "aria-label": w(n).sidebarNav.palette,
531
532
  class: "tpl-sidebar-rail tpl:absolute tpl:top-14 tpl:bottom-0 tpl:left-0 tpl:z-40 tpl:overflow-hidden",
532
- style: b({
533
+ style: x({
533
534
  width: p.value ? "200px" : "48px",
534
535
  backgroundColor: "var(--tpl-bg-elevated)",
535
536
  borderRight: "1px solid var(--tpl-border)",
@@ -537,24 +538,24 @@ var Et = ["aria-label"], Dt = {
537
538
  transition: "width 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1)"
538
539
  }),
539
540
  onMouseenter: s[1] ||= (e) => p.value = !0,
540
- onMouseleave: C,
541
+ onMouseleave: b,
541
542
  onFocusin: s[2] ||= (e) => p.value = !0,
542
543
  onFocusout: s[3] ||= (e) => p.value = !1
543
- }, [f.value && S(a) ? (e(), g("div", Lt, [h("button", {
544
+ }, [f.value && w(a) ? (e(), _("div", Bt, [g("button", {
544
545
  type: "button",
545
- "aria-label": S(n).sidebarNav.browseModules,
546
+ "aria-label": w(n).sidebarNav.browseModules,
546
547
  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)]",
547
- style: b({ justifyContent: p.value ? "flex-start" : "center" }),
548
- onClick: s[0] ||= (e) => S(d).savedModules?.openBrowser()
548
+ style: x({ justifyContent: p.value ? "flex-start" : "center" }),
549
+ onClick: s[0] ||= (e) => w(d).savedModules?.openBrowser()
549
550
  }, [
550
- E(S(Ve), {
551
+ O(w(Ue), {
551
552
  size: 20,
552
553
  "stroke-width": 1.5,
553
554
  class: "tpl:shrink-0"
554
555
  }),
555
- p.value ? (e(), g("span", zt, w(S(a).modules.title), 1)) : v("", !0),
556
- p.value ? (e(), g("span", Bt, w(S(d).savedModules?.moduleCount.value ?? 0), 1)) : v("", !0)
557
- ], 12, Rt)])) : v("", !0), E(S(me), {
556
+ p.value ? (e(), _("span", Ht, E(w(a).modules.title), 1)) : y("", !0),
557
+ p.value ? (e(), _("span", Ut, E(w(d).savedModules?.moduleCount.value ?? 0), 1)) : y("", !0)
558
+ ], 12, Vt)])) : y("", !0), O(w(ge), {
558
559
  "model-value": M.value,
559
560
  group: {
560
561
  name: "blocks",
@@ -567,38 +568,42 @@ var Et = ["aria-label"], Dt = {
567
568
  "ghost-class": "tpl-ghost",
568
569
  "force-fallback": !0,
569
570
  class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:p-1",
570
- onChoose: T,
571
- onEnd: O
571
+ onChoose: C,
572
+ onEnd: T
572
573
  }, {
573
- default: k(() => [(e(!0), g(_, null, o(M.value, (t) => (e(), g("button", {
574
+ default: j(() => [(e(!0), _(v, null, o(M.value, (t) => (e(), _("button", {
574
575
  key: t.type,
575
576
  type: "button",
576
577
  "data-palette-type": t.type,
577
- "aria-label": S(i)(S(n).sidebarNav.insertBlock, { block: t.label }),
578
+ "aria-label": w(i)(w(n).sidebarNav.insertBlock, { block: t.label }),
578
579
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] active:tpl:cursor-grabbing",
579
- style: b({ justifyContent: p.value ? "flex-start" : "center" }),
580
- onClick: (e) => P(t),
581
- onKeydown: (e) => ne(e, t)
582
- }, [h("div", Ht, [S(He)[t.type] ? (e(), x(r(S(He)[t.type]), {
580
+ style: x({ justifyContent: p.value ? "flex-start" : "center" }),
581
+ onClick: (e) => N(t),
582
+ onKeydown: (e) => P(e, t)
583
+ }, [g("div", Gt, [w(We)[t.type] ? (e(), S(r(w(We)[t.type]), {
583
584
  key: 0,
584
585
  size: 20,
585
586
  "stroke-width": 1.5
586
- })) : t.isCustom ? (e(), x(ae, {
587
+ })) : t.isCustom ? (e(), S(R, {
587
588
  key: 1,
588
589
  icon: t.icon,
589
590
  size: 20
590
- }, null, 8, ["icon"])) : v("", !0)]), p.value ? (e(), g("span", Ut, w(t.label), 1)) : v("", !0)], 44, Vt))), 128))]),
591
+ }, null, 8, ["icon"])) : y("", !0)]), p.value ? (e(), _("span", Kt, E(t.label), 1)) : y("", !0)], 44, Wt))), 128))]),
591
592
  _: 1
592
- }, 8, ["model-value"])], 44, It));
593
+ }, 8, ["model-value"])], 44, zt));
593
594
  }
594
595
  });
595
596
  //#endregion
596
597
  //#region src/composables/useMergeTagField.ts
597
- function Gt(e) {
598
- let { modelValue: t, emit: r, elementRef: i } = e, { canRequestMergeTag: a, isRequesting: o, isMergeTagValue: s, getMergeTagLabel: l, requestMergeTag: u, syntax: d } = tt(), f = c(!1), p = !1, h = m(() => {
598
+ function Jt(e) {
599
+ let { modelValue: t, emit: r, elementRef: i } = e, { canRequestMergeTag: a, isRequesting: o, isMergeTagValue: s, getMergeTagLabel: u, requestMergeTag: d, syntax: f } = rt(), p = l(!1), m = !1, g = !1;
600
+ c() && C(() => {
601
+ g = !0;
602
+ });
603
+ let _ = h(() => {
599
604
  let e = t();
600
605
  if (!e) return [];
601
- let n = [], r = `(${d.value.source}|${d.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
606
+ let n = [], r = `(${f.value.source}|${f.logic.source})`, i = new RegExp(r, "g"), a = 0, o;
602
607
  for (; (o = i.exec(e)) !== null;) {
603
608
  o.index > a && n.push({
604
609
  type: "text",
@@ -608,11 +613,11 @@ function Gt(e) {
608
613
  s(t) ? n.push({
609
614
  type: "mergeTag",
610
615
  value: t,
611
- label: l(t)
612
- }) : j(t, d) ? n.push({
616
+ label: u(t)
617
+ }) : M(t, f) ? n.push({
613
618
  type: "logicMergeTag",
614
619
  value: t,
615
- keyword: A(t, d)
620
+ keyword: ee(t, f)
616
621
  }) : n.push({
617
622
  type: "text",
618
623
  value: t
@@ -622,59 +627,60 @@ function Gt(e) {
622
627
  type: "text",
623
628
  value: e.slice(a)
624
629
  }), n;
625
- }), g = m(() => h.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
626
- function _() {
627
- f.value = !0, n(() => {
630
+ }), v = h(() => _.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
631
+ function y() {
632
+ p.value = !0, n(() => {
628
633
  i.value?.focus();
629
634
  let e = t()?.length || 0;
630
635
  i.value?.setSelectionRange(e, e);
631
636
  });
632
637
  }
633
- function v() {
634
- p || (f.value = !1);
638
+ function b() {
639
+ m || (p.value = !1);
635
640
  }
636
- function y(e) {
641
+ function x(e) {
637
642
  r(e.target.value);
638
643
  }
639
- function b() {
644
+ function S() {
640
645
  r("");
641
646
  }
642
- async function x() {
643
- let e = f.value && i.value ? i.value.selectionStart ?? t().length : t().length;
644
- p = !0;
647
+ async function w() {
648
+ let e = p.value && i.value ? i.value.selectionStart ?? t().length : t().length;
649
+ m = !0;
645
650
  let a;
646
651
  try {
647
- a = await u();
652
+ a = await d();
648
653
  } finally {
649
- p = !1;
654
+ m = !1;
650
655
  }
651
- if (a) {
656
+ if (!g && a) {
652
657
  let o = t().slice(0, e), s = t().slice(e);
653
- r(o + a.value + s), f.value = !0, n(() => {
658
+ r(o + a.value + s), p.value = !0, n(() => {
659
+ if (g) return;
654
660
  let t = e + a.value.length;
655
661
  i.value?.focus(), i.value?.setSelectionRange(t, t);
656
662
  });
657
663
  }
658
664
  }
659
665
  return {
660
- segments: h,
661
- hasMergeTags: g,
666
+ segments: _,
667
+ hasMergeTags: v,
662
668
  canRequestMergeTag: a,
663
669
  isRequestingMergeTag: o,
664
- isEditing: f,
665
- startEditing: _,
666
- stopEditing: v,
667
- handleInput: y,
668
- clearValue: b,
669
- insertMergeTag: x
670
+ isEditing: p,
671
+ startEditing: y,
672
+ stopEditing: b,
673
+ handleInput: x,
674
+ clearValue: S,
675
+ insertMergeTag: w
670
676
  };
671
677
  }
672
678
  //#endregion
673
679
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
674
- var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip"], Yt = {
680
+ var Yt = ["aria-label", "onKeydown"], Xt = ["data-tooltip"], Zt = ["data-tooltip"], Qt = {
675
681
  key: 2,
676
682
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
677
- }, Xt = ["aria-label", "title"], Zt = /* @__PURE__ */ f({
683
+ }, $t = ["aria-label", "title"], en = /* @__PURE__ */ p({
678
684
  __name: "MergeTagSegments",
679
685
  props: {
680
686
  segments: {},
@@ -687,14 +693,14 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
687
693
  function a() {
688
694
  r("edit");
689
695
  }
690
- return (n, s) => (e(), g("div", {
696
+ return (n, s) => (e(), _("div", {
691
697
  role: "button",
692
698
  tabindex: "0",
693
- "aria-label": S(i).mergeTag.clickToEdit,
694
- class: d([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
699
+ "aria-label": w(i).mergeTag.clickToEdit,
700
+ class: f([t.displayClass, { "tpl-pulse-fill": t.pulse }]),
695
701
  onClick: a,
696
- onKeydown: [C(a, ["enter"]), C(p(a, ["prevent"]), ["space"])]
697
- }, [(e(!0), g(_, null, o(t.segments, (t, n) => (e(), g(_, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" ? (e(), g("span", {
702
+ onKeydown: [T(a, ["enter"]), T(m(a, ["prevent"]), ["space"])]
703
+ }, [(e(!0), _(v, null, o(t.segments, (t, n) => (e(), _(v, { key: `${t.type}-${n}-${t.value}` }, [t.type === "mergeTag" ? (e(), _("span", {
698
704
  key: 0,
699
705
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium",
700
706
  "data-tooltip": t.value,
@@ -702,7 +708,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
702
708
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
703
709
  color: "var(--tpl-primary)"
704
710
  }
705
- }, w(t.label), 9, qt)) : t.type === "logicMergeTag" ? (e(), g("span", {
711
+ }, E(t.label), 9, Xt)) : t.type === "logicMergeTag" ? (e(), _("span", {
706
712
  key: 1,
707
713
  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",
708
714
  "data-tooltip": t.value,
@@ -711,44 +717,44 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
711
717
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
712
718
  color: "var(--tpl-primary)"
713
719
  }
714
- }, w(t.keyword), 9, Jt)) : (e(), g("span", Yt, w(t.value), 1))], 64))), 128)), h("button", {
720
+ }, E(t.keyword), 9, Zt)) : (e(), _("span", Qt, E(t.value), 1))], 64))), 128)), g("button", {
715
721
  type: "button",
716
722
  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",
717
- "aria-label": S(i).mergeTag.remove,
718
- title: S(i).mergeTag.remove,
719
- onClick: s[0] ||= p((e) => r("clear"), ["stop"])
720
- }, [E(S($e), {
723
+ "aria-label": w(i).mergeTag.remove,
724
+ title: w(i).mergeTag.remove,
725
+ onClick: s[0] ||= m((e) => r("clear"), ["stop"])
726
+ }, [O(w(tt), {
721
727
  size: 12,
722
728
  "stroke-width": 2.5
723
- })], 8, Xt)], 42, Kt));
729
+ })], 8, $t)], 42, Yt));
724
730
  }
725
- }), Qt = [
731
+ }), tn = [
726
732
  "aria-label",
727
733
  "title",
728
734
  "disabled"
729
- ], $t = "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)]", en = /* @__PURE__ */ f({
735
+ ], 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)]", rn = /* @__PURE__ */ p({
730
736
  __name: "MergeTagInsertButton",
731
737
  props: { disabled: { type: Boolean } },
732
738
  emits: ["insert"],
733
739
  setup(t) {
734
740
  let { t: n } = z();
735
- return (r, i) => (e(), g("button", {
741
+ return (r, i) => (e(), _("button", {
736
742
  type: "button",
737
- class: d([$t, "tpl:mt-1.5"]),
738
- "aria-label": S(n).mergeTag.insert,
739
- title: S(n).mergeTag.insert,
743
+ class: f([nn, "tpl:mt-1.5"]),
744
+ "aria-label": w(n).mergeTag.insert,
745
+ title: w(n).mergeTag.insert,
740
746
  disabled: t.disabled,
741
747
  onClick: i[0] ||= (e) => r.$emit("insert")
742
- }, [E(S(qe), {
748
+ }, [O(w(Ye), {
743
749
  size: 12,
744
750
  "stroke-width": 2
745
- }), l(" " + w(S(n).mergeTag.insert), 1)], 10, Qt));
751
+ }), u(" " + E(w(n).mergeTag.insert), 1)], 10, tn));
746
752
  }
747
- }), tn = { key: 0 }, nn = { key: 1 }, rn = [
753
+ }), an = { key: 0 }, on = { key: 1 }, sn = [
748
754
  "value",
749
755
  "placeholder",
750
756
  "rows"
751
- ], an = "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)]", on = "tpl:flex tpl:w-full tpl:min-h-[5rem] 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)]", sn = /* @__PURE__ */ f({
757
+ ], cn = "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)]", ln = "tpl:flex tpl:w-full tpl:min-h-[5rem] 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)]", un = /* @__PURE__ */ p({
752
758
  __name: "MergeTagTextarea",
753
759
  props: {
754
760
  modelValue: {},
@@ -757,46 +763,46 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
757
763
  },
758
764
  emits: ["update:modelValue"],
759
765
  setup(t, { emit: n }) {
760
- let r = t, i = n, a = c(null), { segments: o, hasMergeTags: s, canRequestMergeTag: l, isRequestingMergeTag: u, isEditing: f, startEditing: p, stopEditing: m, handleInput: _, clearValue: y, insertMergeTag: b } = Gt({
766
+ let r = t, i = n, a = l(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: u, isEditing: d, startEditing: p, stopEditing: m, handleInput: h, clearValue: v, insertMergeTag: b } = Jt({
761
767
  modelValue: () => r.modelValue,
762
768
  emit: (e) => i("update:modelValue", e),
763
769
  elementRef: a
764
770
  });
765
- return (n, r) => S(s) && !S(f) ? (e(), g("div", tn, [E(Zt, {
766
- segments: S(o),
767
- "display-class": on,
768
- onEdit: S(p),
769
- onClear: S(y)
771
+ return (n, r) => w(s) && !w(d) ? (e(), _("div", an, [O(en, {
772
+ segments: w(o),
773
+ "display-class": ln,
774
+ onEdit: w(p),
775
+ onClear: w(v)
770
776
  }, null, 8, [
771
777
  "segments",
772
778
  "onEdit",
773
779
  "onClear"
774
- ]), S(l) ? (e(), x(en, {
780
+ ]), w(c) ? (e(), S(rn, {
775
781
  key: 0,
776
- disabled: S(u),
777
- onInsert: S(b)
778
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (e(), g("div", nn, [h("textarea", {
782
+ disabled: w(u),
783
+ onInsert: w(b)
784
+ }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : (e(), _("div", on, [g("textarea", {
779
785
  ref_key: "textareaRef",
780
786
  ref: a,
781
- class: d(an),
787
+ class: f(cn),
782
788
  value: t.modelValue,
783
789
  placeholder: t.placeholder,
784
790
  rows: t.rows,
785
- onInput: r[0] ||= (...e) => S(_) && S(_)(...e),
786
- onBlur: r[1] ||= (...e) => S(m) && S(m)(...e),
787
- onKeydown: r[2] ||= C((...e) => S(m) && S(m)(...e), ["escape"])
788
- }, null, 40, rn), S(l) ? (e(), x(en, {
791
+ onInput: r[0] ||= (...e) => w(h) && w(h)(...e),
792
+ onBlur: r[1] ||= (...e) => w(m) && w(m)(...e),
793
+ onKeydown: r[2] ||= T((...e) => w(m) && w(m)(...e), ["escape"])
794
+ }, null, 40, sn), w(c) ? (e(), S(rn, {
789
795
  key: 0,
790
- disabled: S(u),
791
- onInsert: S(b)
792
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)]));
796
+ disabled: w(u),
797
+ onInsert: w(b)
798
+ }, null, 8, ["disabled", "onInsert"])) : y("", !0)]));
793
799
  }
794
- }), cn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, ln = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, un = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, dn = { class: "tpl:mb-3.5" }, fn = { 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)]" }, pn = ["onClick"], mn = { class: "tpl:flex tpl:items-stretch" }, hn = ["value"], gn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _n = { class: "tpl:mb-3.5" }, vn = ["value"], yn = ["value"], bn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, xn = ["value"], Sn = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Cn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wn = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Tn = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, En = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Dn = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, On = { 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)]" }, kn = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, An = { class: "tpl:mb-1 tpl:last:mb-0" }, jn = { class: "tpl:mb-1 tpl:last:mb-0" }, Mn = { class: "tpl:mb-1 tpl:last:mb-0" }, Nn = 150, Pn = /* @__PURE__ */ f({
800
+ }), dn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, fn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, pn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, mn = { class: "tpl:mb-3.5" }, hn = { 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)]" }, gn = ["onClick"], _n = { class: "tpl:flex tpl:items-stretch" }, vn = ["value"], yn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, bn = { class: "tpl:mb-3.5" }, xn = ["value"], Sn = ["value"], Cn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wn = ["value"], Tn = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, En = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Dn = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, On = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, kn = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, An = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, jn = { 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)]" }, Mn = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Nn = { class: "tpl:mb-1 tpl:last:mb-0" }, Pn = { class: "tpl:mb-1 tpl:last:mb-0" }, Fn = { class: "tpl:mb-1 tpl:last:mb-0" }, In = 150, Ln = /* @__PURE__ */ p({
795
801
  __name: "TemplateSettings",
796
802
  props: { settings: {} },
797
803
  emits: ["update"],
798
804
  setup(t, { emit: n }) {
799
- let r = t, i = n, { t: a } = z(), s = Te(Ae, "TemplateSettings"), c = m(() => s.fonts.value), l = m(() => c.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : s.defaultFont.value), u = [
805
+ let r = t, i = n, { t: a } = z(), s = De(Me, "TemplateSettings"), c = h(() => s.fonts.value), l = h(() => c.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : s.defaultFont.value), u = [
800
806
  {
801
807
  value: 480,
802
808
  label: "480px"
@@ -814,95 +820,95 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
814
820
  label: "800px"
815
821
  }
816
822
  ];
817
- return (n, r) => (e(), g("aside", cn, [h("div", ln, [
818
- h("div", { class: d(S(st)) }, [
819
- h("div", un, [E(S(St), {
823
+ return (n, r) => (e(), _("aside", dn, [g("div", fn, [
824
+ g("div", { class: f(w(ut)) }, [
825
+ g("div", pn, [O(w(Tt), {
820
826
  class: "tpl:text-[var(--tpl-text-muted)]",
821
827
  size: 14,
822
828
  "stroke-width": 2
823
- }), h("span", null, w(S(a).templateSettings.layout), 1)]),
824
- h("div", dn, [h("label", { class: d(S(W)) }, w(S(a).templateSettings.widthPreset), 3), h("div", fn, [(e(), g(_, null, o(u, (e) => h("button", {
829
+ }), g("span", null, E(w(a).templateSettings.layout), 1)]),
830
+ g("div", mn, [g("label", { class: f(w(W)) }, E(w(a).templateSettings.widthPreset), 3), g("div", hn, [(e(), _(v, null, o(u, (e) => g("button", {
825
831
  key: e.value,
826
832
  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)]",
827
- style: b({
833
+ style: x({
828
834
  backgroundColor: t.settings.width === e.value ? "var(--tpl-bg)" : "transparent",
829
835
  color: t.settings.width === e.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
830
836
  boxShadow: t.settings.width === e.value ? "var(--tpl-shadow)" : "none"
831
837
  }),
832
838
  onClick: (t) => i("update", { width: e.value })
833
- }, w(e.label), 13, pn)), 64))])]),
834
- h("div", null, [h("label", { class: d(S(W)) }, w(S(a).templateSettings.customWidth), 3), h("div", mn, [h("input", {
839
+ }, E(e.label), 13, gn)), 64))])]),
840
+ g("div", null, [g("label", { class: f(w(W)) }, E(w(a).templateSettings.customWidth), 3), g("div", _n, [g("input", {
835
841
  type: "number",
836
- class: d(S(K)),
842
+ class: f(w(K)),
837
843
  value: t.settings.width,
838
844
  min: "300",
839
845
  max: "900",
840
846
  onInput: r[0] ||= (e) => i("update", { width: Number(e.target.value) })
841
- }, null, 42, hn), h("span", { class: d(S(G)) }, "px", 2)])])
847
+ }, null, 42, vn), g("span", { class: f(w(G)) }, "px", 2)])])
842
848
  ], 2),
843
- h("div", { class: d(S(st)) }, [
844
- h("div", gn, [E(S(ut), {
849
+ g("div", { class: f(w(ut)) }, [
850
+ g("div", yn, [O(w(pt), {
845
851
  class: "tpl:text-[var(--tpl-text-muted)]",
846
852
  size: 14,
847
853
  "stroke-width": 2
848
- }), h("span", null, w(S(a).templateSettings.appearance), 1)]),
849
- h("div", _n, [h("label", { class: d(S(W)) }, w(S(a).templateSettings.backgroundColor), 3), E(q, {
854
+ }), g("span", null, E(w(a).templateSettings.appearance), 1)]),
855
+ g("div", bn, [g("label", { class: f(w(W)) }, E(w(a).templateSettings.backgroundColor), 3), O(q, {
850
856
  "model-value": t.settings.backgroundColor,
851
- placeholder: S(ct),
857
+ placeholder: w(dt),
852
858
  "onUpdate:modelValue": r[1] ||= (e) => i("update", { backgroundColor: e })
853
859
  }, null, 8, ["model-value", "placeholder"])]),
854
- h("div", null, [h("label", { class: d(S(W)) }, w(S(a).templateSettings.fontFamily), 3), h("select", {
855
- class: d(S(U)),
860
+ g("div", null, [g("label", { class: f(w(W)) }, E(w(a).templateSettings.fontFamily), 3), g("select", {
861
+ class: f(w(U)),
856
862
  value: l.value,
857
863
  onChange: r[2] ||= (e) => i("update", { fontFamily: e.target.value })
858
- }, [(e(!0), g(_, null, o(c.value, (t) => (e(), g("option", {
864
+ }, [(e(!0), _(v, null, o(c.value, (t) => (e(), _("option", {
859
865
  key: t.value,
860
866
  value: t.value
861
- }, w(t.label), 9, yn))), 128))], 42, vn)])
867
+ }, E(t.label), 9, Sn))), 128))], 42, xn)])
862
868
  ], 2),
863
- h("div", { class: d(S(st)) }, [h("div", bn, [E(S(dt), {
869
+ g("div", { class: f(w(ut)) }, [g("div", Cn, [O(w(mt), {
864
870
  class: "tpl:text-[var(--tpl-text-muted)]",
865
871
  size: 14,
866
872
  "stroke-width": 2
867
- }), h("span", null, w(S(a).templateSettings.language), 1)]), h("div", null, [
868
- h("label", { class: d(S(W)) }, w(S(a).templateSettings.contentLocale), 3),
869
- h("input", {
873
+ }), g("span", null, E(w(a).templateSettings.language), 1)]), g("div", null, [
874
+ g("label", { class: f(w(W)) }, E(w(a).templateSettings.contentLocale), 3),
875
+ g("input", {
870
876
  type: "text",
871
- class: d(S(U)),
877
+ class: f(w(U)),
872
878
  value: t.settings.locale ?? "",
873
879
  placeholder: "en",
874
880
  spellcheck: "false",
875
881
  autocapitalize: "off",
876
882
  autocomplete: "off",
877
883
  onInput: r[3] ||= (e) => i("update", { locale: e.target.value.trim() || void 0 })
878
- }, null, 42, xn),
879
- h("p", Sn, w(S(a).templateSettings.contentLocaleHint), 1)
884
+ }, null, 42, wn),
885
+ g("p", Tn, E(w(a).templateSettings.contentLocaleHint), 1)
880
886
  ])], 2),
881
- h("div", { class: d(S(st)) }, [h("div", Cn, [E(S(Ue), {
887
+ g("div", { class: f(w(ut)) }, [g("div", En, [O(w(Ge), {
882
888
  class: "tpl:text-[var(--tpl-text-muted)]",
883
889
  size: 14,
884
890
  "stroke-width": 2
885
- }), h("span", null, w(S(a).templateSettings.preheaderText), 1)]), h("div", null, [E(sn, {
891
+ }), g("span", null, E(w(a).templateSettings.preheaderText), 1)]), g("div", null, [O(un, {
886
892
  "model-value": t.settings.preheaderText ?? "",
887
- placeholder: S(a).templateSettings.preheaderTextPlaceholder,
893
+ placeholder: w(a).templateSettings.preheaderTextPlaceholder,
888
894
  rows: 2,
889
895
  "onUpdate:modelValue": r[4] ||= (e) => i("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
890
- }, null, 8, ["model-value", "placeholder"]), h("div", wn, [h("span", Tn, w(S(a).templateSettings.preheaderTextHint), 1), h("span", En, w((t.settings.preheaderText ?? "").length) + "/" + w(Nn), 1)])])], 2),
891
- h("div", Dn, [h("div", On, [E(S(Ke), {
896
+ }, null, 8, ["model-value", "placeholder"]), g("div", Dn, [g("span", On, E(w(a).templateSettings.preheaderTextHint), 1), g("span", kn, E((t.settings.preheaderText ?? "").length) + "/" + E(In), 1)])])], 2),
897
+ g("div", An, [g("div", jn, [O(w(Je), {
892
898
  size: 14,
893
899
  "stroke-width": 2
894
- }), h("span", null, w(S(a).templateSettings.tips), 1)]), h("ul", kn, [
895
- h("li", An, w(S(a).templateSettings.tip1), 1),
896
- h("li", jn, w(S(a).templateSettings.tip2), 1),
897
- h("li", Mn, w(S(a).templateSettings.tip3), 1)
900
+ }), g("span", null, E(w(a).templateSettings.tips), 1)]), g("ul", Mn, [
901
+ g("li", Nn, E(w(a).templateSettings.tip1), 1),
902
+ g("li", Pn, E(w(a).templateSettings.tip2), 1),
903
+ g("li", Fn, E(w(a).templateSettings.tip3), 1)
898
904
  ])])
899
905
  ])]));
900
906
  }
901
- }), Fn = { key: 0 }, In = { key: 1 }, Ln = [
907
+ }), Rn = { key: 0 }, zn = { key: 1 }, Bn = [
902
908
  "type",
903
909
  "value",
904
910
  "placeholder"
905
- ], Rn = "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)]", Z = /* @__PURE__ */ H(/* @__PURE__ */ f({
911
+ ], Vn = "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)]", Z = /* @__PURE__ */ H(/* @__PURE__ */ p({
906
912
  __name: "MergeTagInput",
907
913
  props: {
908
914
  modelValue: {},
@@ -915,46 +921,46 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
915
921
  },
916
922
  emits: ["update:modelValue"],
917
923
  setup(t, { emit: n }) {
918
- let r = t, i = n, a = c(null), { segments: o, hasMergeTags: s, canRequestMergeTag: l, isRequestingMergeTag: u, isEditing: f, startEditing: p, stopEditing: m, handleInput: _, clearValue: y, insertMergeTag: b } = Gt({
924
+ let r = t, i = n, a = l(null), { segments: o, hasMergeTags: s, canRequestMergeTag: c, isRequestingMergeTag: u, isEditing: d, startEditing: p, stopEditing: m, handleInput: h, clearValue: v, insertMergeTag: b } = Jt({
919
925
  modelValue: () => r.modelValue,
920
926
  emit: (e) => i("update:modelValue", e),
921
927
  elementRef: a
922
928
  });
923
- return (n, r) => S(s) && !S(f) ? (e(), g("div", Fn, [E(Zt, {
924
- segments: S(o),
925
- "display-class": Rn,
929
+ return (n, r) => w(s) && !w(d) ? (e(), _("div", Rn, [O(en, {
930
+ segments: w(o),
931
+ "display-class": Vn,
926
932
  pulse: t.pulse,
927
- onEdit: S(p),
928
- onClear: S(y)
933
+ onEdit: w(p),
934
+ onClear: w(v)
929
935
  }, null, 8, [
930
936
  "segments",
931
937
  "pulse",
932
938
  "onEdit",
933
939
  "onClear"
934
- ]), S(l) ? (e(), x(en, {
940
+ ]), w(c) ? (e(), S(rn, {
935
941
  key: 0,
936
- disabled: S(u),
937
- onInsert: S(b)
938
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)])) : (e(), g("div", In, [h("input", {
942
+ disabled: w(u),
943
+ onInsert: w(b)
944
+ }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : (e(), _("div", zn, [g("input", {
939
945
  ref_key: "inputRef",
940
946
  ref: a,
941
947
  type: t.type,
942
- class: d([S(U), { "tpl-pulse-fill": t.pulse }]),
948
+ class: f([w(U), { "tpl-pulse-fill": t.pulse }]),
943
949
  value: t.modelValue,
944
950
  placeholder: t.placeholder,
945
- onInput: r[0] ||= (...e) => S(_) && S(_)(...e),
946
- onBlur: r[1] ||= (...e) => S(m) && S(m)(...e),
947
- onKeydown: r[2] ||= C((...e) => S(m) && S(m)(...e), ["escape"])
948
- }, null, 42, Ln), S(l) ? (e(), x(en, {
951
+ onInput: r[0] ||= (...e) => w(h) && w(h)(...e),
952
+ onBlur: r[1] ||= (...e) => w(m) && w(m)(...e),
953
+ onKeydown: r[2] ||= T((...e) => w(m) && w(m)(...e), ["escape"])
954
+ }, null, 42, Bn), w(c) ? (e(), S(rn, {
949
955
  key: 0,
950
- disabled: S(u),
951
- onInsert: S(b)
952
- }, null, 8, ["disabled", "onInsert"])) : v("", !0)]));
956
+ disabled: w(u),
957
+ onInsert: w(b)
958
+ }, null, 8, ["disabled", "onInsert"])) : y("", !0)]));
953
959
  }
954
- }), [["__scopeId", "data-v-358207dd"]]), zn = { class: "tpl:mb-3.5" }, Bn = ["value"], Vn = { value: "" }, Hn = ["value"], Un = { class: "tpl:mb-3.5" }, Wn = { class: "tpl:mb-3.5" }, Gn = {
960
+ }), [["__scopeId", "data-v-358207dd"]]), Hn = { class: "tpl:mb-3.5" }, Un = ["value"], Wn = { value: "" }, Gn = ["value"], Kn = { class: "tpl:mb-3.5" }, qn = { class: "tpl:mb-3.5" }, Jn = {
955
961
  key: 0,
956
962
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
957
- }, Kn = ["checked"], qn = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Jn = { class: "tpl:mb-3.5" }, Yn = { class: "tpl:mb-3.5" }, Xn = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Zn = { class: "tpl:mb-3.5" }, Qn = { class: "tpl:flex tpl:items-stretch" }, $n = ["value"], er = { class: "tpl:mb-3.5" }, tr = { class: "tpl:flex tpl:items-stretch" }, nr = ["value"], rr = /* @__PURE__ */ f({
963
+ }, Yn = ["checked"], Xn = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Zn = { class: "tpl:mb-3.5" }, Qn = { class: "tpl:mb-3.5" }, $n = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, er = { class: "tpl:mb-3.5" }, tr = { class: "tpl:flex tpl:items-stretch" }, nr = ["value"], rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:flex tpl:items-stretch" }, ar = ["value"], or = /* @__PURE__ */ p({
958
964
  __name: "ButtonToolbar",
959
965
  props: {
960
966
  block: {},
@@ -966,60 +972,60 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
966
972
  function a(e, t) {
967
973
  r("update", { [e]: t });
968
974
  }
969
- return (n, r) => (e(), g(_, null, [
970
- h("div", zn, [h("label", { class: d(S(W)) }, w(S(i).button.fontFamily), 3), h("select", {
971
- class: d(S(U)),
975
+ return (n, r) => (e(), _(v, null, [
976
+ g("div", Hn, [g("label", { class: f(w(W)) }, E(w(i).button.fontFamily), 3), g("select", {
977
+ class: f(w(U)),
972
978
  value: t.block.fontFamily || "",
973
979
  onChange: r[0] ||= (e) => a("fontFamily", e.target.value || void 0)
974
- }, [h("option", Vn, w(S(i).button.inheritFont), 1), (e(!0), g(_, null, o(t.fontFamilies, (t) => (e(), g("option", {
980
+ }, [g("option", Wn, E(w(i).button.inheritFont), 1), (e(!0), _(v, null, o(t.fontFamilies, (t) => (e(), _("option", {
975
981
  key: t.value,
976
982
  value: t.value
977
- }, w(t.label), 9, Hn))), 128))], 42, Bn)]),
978
- h("div", Un, [h("label", { class: d(S(W)) }, w(S(i).button.text), 3), E(Z, {
983
+ }, E(t.label), 9, Gn))), 128))], 42, Un)]),
984
+ g("div", Kn, [g("label", { class: f(w(W)) }, E(w(i).button.text), 3), O(Z, {
979
985
  "model-value": t.block.text,
980
986
  type: "text",
981
987
  "onUpdate:modelValue": r[1] ||= (e) => a("text", e)
982
988
  }, null, 8, ["model-value"])]),
983
- h("div", Wn, [
984
- h("label", { class: d(S(W)) }, w(S(i).button.url), 3),
985
- E(Z, {
989
+ g("div", qn, [
990
+ g("label", { class: f(w(W)) }, E(w(i).button.url), 3),
991
+ O(Z, {
986
992
  "model-value": t.block.url,
987
993
  type: "url",
988
- placeholder: S(i).button.urlPlaceholder,
994
+ placeholder: w(i).button.urlPlaceholder,
989
995
  "onUpdate:modelValue": r[2] ||= (e) => a("url", e)
990
996
  }, null, 8, ["model-value", "placeholder"]),
991
- t.block.url ? (e(), g("label", Gn, [h("input", {
997
+ t.block.url ? (e(), _("label", Jn, [g("input", {
992
998
  type: "checkbox",
993
999
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
994
1000
  checked: t.block.openInNewTab ?? !1,
995
1001
  onChange: r[3] ||= (e) => a("openInNewTab", e.target.checked)
996
- }, null, 40, Kn), l(" " + w(S(i).button.openInNewTab), 1)])) : v("", !0)
1002
+ }, null, 40, Yn), u(" " + E(w(i).button.openInNewTab), 1)])) : y("", !0)
997
1003
  ]),
998
- h("div", qn, [h("div", Jn, [h("label", { class: d(S(W)) }, w(S(i).button.background), 3), E(q, {
1004
+ g("div", Xn, [g("div", Zn, [g("label", { class: f(w(W)) }, E(w(i).button.background), 3), O(q, {
999
1005
  "model-value": t.block.backgroundColor,
1000
1006
  "onUpdate:modelValue": r[4] ||= (e) => a("backgroundColor", e)
1001
- }, null, 8, ["model-value"])]), h("div", Yn, [h("label", { class: d(S(W)) }, w(S(i).button.textColor), 3), E(q, {
1007
+ }, null, 8, ["model-value"])]), g("div", Qn, [g("label", { class: f(w(W)) }, E(w(i).button.textColor), 3), O(q, {
1002
1008
  "model-value": t.block.textColor,
1003
1009
  "onUpdate:modelValue": r[5] ||= (e) => a("textColor", e)
1004
1010
  }, null, 8, ["model-value"])])]),
1005
- h("div", Xn, [h("div", Zn, [h("label", { class: d(S(W)) }, w(S(i).button.borderRadius), 3), h("div", Qn, [h("input", {
1011
+ g("div", $n, [g("div", er, [g("label", { class: f(w(W)) }, E(w(i).button.borderRadius), 3), g("div", tr, [g("input", {
1006
1012
  type: "number",
1007
- class: d(S(K)),
1013
+ class: f(w(K)),
1008
1014
  value: t.block.borderRadius,
1009
1015
  min: "0",
1010
1016
  max: "50",
1011
1017
  onInput: r[6] ||= (e) => a("borderRadius", Number(e.target.value))
1012
- }, null, 42, $n), h("span", { class: d(S(G)) }, "px", 2)])]), h("div", er, [h("label", { class: d(S(W)) }, w(S(i).button.fontSize), 3), h("div", tr, [h("input", {
1018
+ }, null, 42, nr), g("span", { class: f(w(G)) }, "px", 2)])]), g("div", rr, [g("label", { class: f(w(W)) }, E(w(i).button.fontSize), 3), g("div", ir, [g("input", {
1013
1019
  type: "number",
1014
- class: d(S(K)),
1020
+ class: f(w(K)),
1015
1021
  value: t.block.fontSize,
1016
1022
  min: "10",
1017
1023
  max: "36",
1018
1024
  onInput: r[7] ||= (e) => a("fontSize", Number(e.target.value))
1019
- }, null, 42, nr), h("span", { class: d(S(G)) }, "px", 2)])])])
1025
+ }, null, 42, ar), g("span", { class: f(w(G)) }, "px", 2)])])])
1020
1026
  ], 64));
1021
1027
  }
1022
- }), ir = { class: "spacing-control" }, ar = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, or = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, sr = { class: "tpl:flex tpl:items-center" }, cr = ["aria-label"], lr = ["value", "aria-label"], ur = ["aria-label"], dr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, fr = { class: "tpl:flex tpl:items-center" }, pr = ["aria-label"], mr = ["value", "aria-label"], hr = ["aria-label"], gr = ["aria-label", "title"], _r = { class: "tpl:flex tpl:items-center" }, vr = ["aria-label"], yr = ["value", "aria-label"], br = ["aria-label"], xr = { class: "tpl:flex tpl:items-center" }, Sr = ["aria-label"], Cr = ["value", "aria-label"], wr = ["aria-label"], Q = "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)]", Tr = "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)]", Er = /* @__PURE__ */ H(/* @__PURE__ */ f({
1028
+ }), sr = { class: "spacing-control" }, cr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, lr = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ur = { class: "tpl:flex tpl:items-center" }, dr = ["aria-label"], fr = ["value", "aria-label"], pr = ["aria-label"], mr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, hr = { class: "tpl:flex tpl:items-center" }, gr = ["aria-label"], _r = ["value", "aria-label"], vr = ["aria-label"], yr = ["aria-label", "title"], br = { class: "tpl:flex tpl:items-center" }, xr = ["aria-label"], Sr = ["value", "aria-label"], Cr = ["aria-label"], wr = { class: "tpl:flex tpl:items-center" }, Tr = ["aria-label"], Er = ["value", "aria-label"], Dr = ["aria-label"], Q = "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)]", Or = "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)]", kr = /* @__PURE__ */ H(/* @__PURE__ */ p({
1023
1029
  __name: "SpacingControl",
1024
1030
  props: {
1025
1031
  modelValue: {},
@@ -1027,13 +1033,13 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1027
1033
  },
1028
1034
  emits: ["update:modelValue"],
1029
1035
  setup(t, { emit: n }) {
1030
- let r = t, i = n, { t: o } = z(), s = m(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), l = c(s.value);
1036
+ let r = t, i = n, { t: o } = z(), s = h(() => r.modelValue.top === r.modelValue.right && r.modelValue.right === r.modelValue.bottom && r.modelValue.bottom === r.modelValue.left), c = l(s.value);
1031
1037
  a(s, (e) => {
1032
- !e && l.value && (l.value = !1);
1038
+ !e && c.value && (c.value = !1);
1033
1039
  });
1034
1040
  function u(e, t) {
1035
1041
  let n = r.modelValue[e], a = Math.max(0, n + t);
1036
- l.value ? i("update:modelValue", {
1042
+ c.value ? i("update:modelValue", {
1037
1043
  top: a,
1038
1044
  right: a,
1039
1045
  bottom: a,
@@ -1043,9 +1049,9 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1043
1049
  [e]: a
1044
1050
  });
1045
1051
  }
1046
- function f(e, t) {
1052
+ function d(e, t) {
1047
1053
  let n = Math.max(0, t);
1048
- l.value ? i("update:modelValue", {
1054
+ c.value ? i("update:modelValue", {
1049
1055
  top: n,
1050
1056
  right: n,
1051
1057
  bottom: n,
@@ -1056,7 +1062,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1056
1062
  });
1057
1063
  }
1058
1064
  function p() {
1059
- if (l.value = !l.value, l.value) {
1065
+ if (c.value = !c.value, c.value) {
1060
1066
  let e = r.modelValue.top;
1061
1067
  i("update:modelValue", {
1062
1068
  top: e,
@@ -1066,130 +1072,130 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1066
1072
  });
1067
1073
  }
1068
1074
  }
1069
- return (n, r) => (e(), g("div", ir, [h("label", ar, w(t.label), 1), h("div", or, [
1070
- h("div", sr, [
1071
- h("button", {
1072
- "aria-label": S(o).spacingControl.decreaseTop,
1073
- class: d([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1075
+ return (n, r) => (e(), _("div", sr, [g("label", cr, E(t.label), 1), g("div", lr, [
1076
+ g("div", ur, [
1077
+ g("button", {
1078
+ "aria-label": w(o).spacingControl.decreaseTop,
1079
+ class: f([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1074
1080
  onClick: r[0] ||= (e) => u("top", -1)
1075
- }, [E(S(V), {
1081
+ }, [O(w(V), {
1076
1082
  size: 12,
1077
1083
  "stroke-width": 2
1078
- })], 10, cr),
1079
- h("input", {
1084
+ })], 10, dr),
1085
+ g("input", {
1080
1086
  type: "number",
1081
- class: d(Tr),
1087
+ class: f(Or),
1082
1088
  value: t.modelValue.top,
1083
- "aria-label": S(o).spacingControl.top,
1089
+ "aria-label": w(o).spacingControl.top,
1084
1090
  min: "0",
1085
- onInput: r[1] ||= (e) => f("top", Number(e.target.value))
1086
- }, null, 40, lr),
1087
- h("button", {
1088
- "aria-label": S(o).spacingControl.increaseTop,
1089
- class: d([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1091
+ onInput: r[1] ||= (e) => d("top", Number(e.target.value))
1092
+ }, null, 40, fr),
1093
+ g("button", {
1094
+ "aria-label": w(o).spacingControl.increaseTop,
1095
+ class: f([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1090
1096
  onClick: r[2] ||= (e) => u("top", 1)
1091
- }, [E(S(X), {
1097
+ }, [O(w(X), {
1092
1098
  size: 12,
1093
1099
  "stroke-width": 2
1094
- })], 10, ur)
1100
+ })], 10, pr)
1095
1101
  ]),
1096
- h("div", dr, [
1097
- h("div", fr, [
1098
- h("button", {
1099
- "aria-label": S(o).spacingControl.decreaseLeft,
1100
- class: d([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1102
+ g("div", mr, [
1103
+ g("div", hr, [
1104
+ g("button", {
1105
+ "aria-label": w(o).spacingControl.decreaseLeft,
1106
+ class: f([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1101
1107
  onClick: r[3] ||= (e) => u("left", -1)
1102
- }, [E(S(V), {
1108
+ }, [O(w(V), {
1103
1109
  size: 12,
1104
1110
  "stroke-width": 2
1105
- })], 10, pr),
1106
- h("input", {
1111
+ })], 10, gr),
1112
+ g("input", {
1107
1113
  type: "number",
1108
- class: d(Tr),
1114
+ class: f(Or),
1109
1115
  value: t.modelValue.left,
1110
- "aria-label": S(o).spacingControl.left,
1116
+ "aria-label": w(o).spacingControl.left,
1111
1117
  min: "0",
1112
- onInput: r[4] ||= (e) => f("left", Number(e.target.value))
1113
- }, null, 40, mr),
1114
- h("button", {
1115
- "aria-label": S(o).spacingControl.increaseLeft,
1116
- class: d([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1118
+ onInput: r[4] ||= (e) => d("left", Number(e.target.value))
1119
+ }, null, 40, _r),
1120
+ g("button", {
1121
+ "aria-label": w(o).spacingControl.increaseLeft,
1122
+ class: f([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1117
1123
  onClick: r[5] ||= (e) => u("left", 1)
1118
- }, [E(S(X), {
1124
+ }, [O(w(X), {
1119
1125
  size: 12,
1120
1126
  "stroke-width": 2
1121
- })], 10, hr)
1127
+ })], 10, vr)
1122
1128
  ]),
1123
- h("button", {
1124
- class: d(["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)]", l.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)]"]),
1125
- "aria-label": l.value ? S(o).spacingControl.unlock : S(o).spacingControl.lockAll,
1126
- title: l.value ? S(o).spacingControl.unlock : S(o).spacingControl.lockAll,
1129
+ g("button", {
1130
+ class: f(["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)]", c.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)]"]),
1131
+ "aria-label": c.value ? w(o).spacingControl.unlock : w(o).spacingControl.lockAll,
1132
+ title: c.value ? w(o).spacingControl.unlock : w(o).spacingControl.lockAll,
1127
1133
  onClick: p
1128
- }, [l.value ? (e(), x(S(mt), {
1134
+ }, [c.value ? (e(), S(w(_t), {
1129
1135
  key: 0,
1130
1136
  size: 14,
1131
1137
  "stroke-width": 2
1132
- })) : (e(), x(S(pt), {
1138
+ })) : (e(), S(w(gt), {
1133
1139
  key: 1,
1134
1140
  size: 14,
1135
1141
  "stroke-width": 2
1136
- }))], 10, gr),
1137
- h("div", _r, [
1138
- h("button", {
1139
- "aria-label": S(o).spacingControl.decreaseRight,
1140
- class: d([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1142
+ }))], 10, yr),
1143
+ g("div", br, [
1144
+ g("button", {
1145
+ "aria-label": w(o).spacingControl.decreaseRight,
1146
+ class: f([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1141
1147
  onClick: r[6] ||= (e) => u("right", -1)
1142
- }, [E(S(V), {
1148
+ }, [O(w(V), {
1143
1149
  size: 12,
1144
1150
  "stroke-width": 2
1145
- })], 10, vr),
1146
- h("input", {
1151
+ })], 10, xr),
1152
+ g("input", {
1147
1153
  type: "number",
1148
- class: d(Tr),
1154
+ class: f(Or),
1149
1155
  value: t.modelValue.right,
1150
- "aria-label": S(o).spacingControl.right,
1156
+ "aria-label": w(o).spacingControl.right,
1151
1157
  min: "0",
1152
- onInput: r[7] ||= (e) => f("right", Number(e.target.value))
1153
- }, null, 40, yr),
1154
- h("button", {
1155
- "aria-label": S(o).spacingControl.increaseRight,
1156
- class: d([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1158
+ onInput: r[7] ||= (e) => d("right", Number(e.target.value))
1159
+ }, null, 40, Sr),
1160
+ g("button", {
1161
+ "aria-label": w(o).spacingControl.increaseRight,
1162
+ class: f([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1157
1163
  onClick: r[8] ||= (e) => u("right", 1)
1158
- }, [E(S(X), {
1164
+ }, [O(w(X), {
1159
1165
  size: 12,
1160
1166
  "stroke-width": 2
1161
- })], 10, br)
1167
+ })], 10, Cr)
1162
1168
  ])
1163
1169
  ]),
1164
- h("div", xr, [
1165
- h("button", {
1166
- "aria-label": S(o).spacingControl.decreaseBottom,
1167
- class: d([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1170
+ g("div", wr, [
1171
+ g("button", {
1172
+ "aria-label": w(o).spacingControl.decreaseBottom,
1173
+ class: f([Q, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1168
1174
  onClick: r[9] ||= (e) => u("bottom", -1)
1169
- }, [E(S(V), {
1175
+ }, [O(w(V), {
1170
1176
  size: 12,
1171
1177
  "stroke-width": 2
1172
- })], 10, Sr),
1173
- h("input", {
1178
+ })], 10, Tr),
1179
+ g("input", {
1174
1180
  type: "number",
1175
- class: d(Tr),
1181
+ class: f(Or),
1176
1182
  value: t.modelValue.bottom,
1177
- "aria-label": S(o).spacingControl.bottom,
1183
+ "aria-label": w(o).spacingControl.bottom,
1178
1184
  min: "0",
1179
- onInput: r[10] ||= (e) => f("bottom", Number(e.target.value))
1180
- }, null, 40, Cr),
1181
- h("button", {
1182
- "aria-label": S(o).spacingControl.increaseBottom,
1183
- class: d([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1185
+ onInput: r[10] ||= (e) => d("bottom", Number(e.target.value))
1186
+ }, null, 40, Er),
1187
+ g("button", {
1188
+ "aria-label": w(o).spacingControl.increaseBottom,
1189
+ class: f([Q, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1184
1190
  onClick: r[11] ||= (e) => u("bottom", 1)
1185
- }, [E(S(X), {
1191
+ }, [O(w(X), {
1186
1192
  size: 12,
1187
1193
  "stroke-width": 2
1188
- })], 10, wr)
1194
+ })], 10, Dr)
1189
1195
  ])
1190
1196
  ])]));
1191
1197
  }
1192
- }), [["__scopeId", "data-v-9a9c8a07"]]), Dr = { class: "tpl:mt-3" }, Or = /* @__PURE__ */ f({
1198
+ }), [["__scopeId", "data-v-9a9c8a07"]]), Ar = { class: "tpl:mt-3" }, jr = /* @__PURE__ */ p({
1193
1199
  __name: "CollapsibleSection",
1194
1200
  props: {
1195
1201
  title: {},
@@ -1198,29 +1204,29 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1198
1204
  },
1199
1205
  emits: ["toggle"],
1200
1206
  setup(n) {
1201
- return (r, i) => (e(), g("div", { class: d(["tpl:py-3", n.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [h("button", {
1207
+ return (r, i) => (e(), _("div", { class: f(["tpl:py-3", n.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [g("button", {
1202
1208
  type: "button",
1203
1209
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1204
1210
  onClick: i[0] ||= (e) => r.$emit("toggle")
1205
- }, [E(S(ze), {
1206
- class: d(["tpl:transition-transform tpl:duration-200", n.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1211
+ }, [O(w(Ve), {
1212
+ class: f(["tpl:transition-transform tpl:duration-200", n.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1207
1213
  size: 12,
1208
1214
  "stroke-width": 2
1209
- }, null, 8, ["class"]), h("span", null, w(n.title), 1)]), t(h("div", Dr, [s(r.$slots, "default")], 512), [[y, n.open]])], 2));
1215
+ }, null, 8, ["class"]), g("span", null, E(n.title), 1)]), t(g("div", Ar, [s(r.$slots, "default")], 512), [[b, n.open]])], 2));
1210
1216
  }
1211
- }), kr = { class: "tpl:mt-4" }, Ar = { class: "tpl:space-y-2" }, jr = ["checked", "onChange"], Mr = ["value", "placeholder"], Nr = { class: "tpl:space-y-2" }, Pr = ["value"], Fr = { value: "" }, Ir = ["label"], Lr = ["value"], Rr = ["value"], zr = {
1217
+ }), Mr = { class: "tpl:mt-4" }, Nr = { class: "tpl:space-y-2" }, Pr = ["checked", "onChange"], Fr = ["value", "placeholder"], Ir = { class: "tpl:space-y-2" }, Lr = ["value"], Rr = { value: "" }, zr = ["label"], Br = ["value"], Vr = ["value"], Hr = {
1212
1218
  key: 0,
1213
1219
  value: "__custom__"
1214
- }, Br = {
1220
+ }, Ur = {
1215
1221
  key: 0,
1216
1222
  class: "tpl:space-y-2"
1217
- }, Vr = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Hr = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ur = { class: "tpl:flex tpl:justify-end" }, Wr = ["disabled"], Gr = {
1223
+ }, Wr = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Gr = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Kr = { class: "tpl:flex tpl:justify-end" }, qr = ["disabled"], Jr = {
1218
1224
  key: 0,
1219
1225
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1220
- }, Kr = { class: "tpl:space-y-1" }, qr = { 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)]" }, Jr = {
1226
+ }, Yr = { class: "tpl:space-y-1" }, Xr = { 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)]" }, Zr = {
1221
1227
  key: 0,
1222
1228
  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)]"
1223
- }, Yr = /* @__PURE__ */ f({
1229
+ }, Qr = /* @__PURE__ */ p({
1224
1230
  __name: "CommonBlockSettings",
1225
1231
  props: {
1226
1232
  block: {},
@@ -1228,45 +1234,45 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1228
1234
  },
1229
1235
  emits: ["update"],
1230
1236
  setup(n, { emit: s }) {
1231
- let f = n, p = s, { t: y } = z(), b = D(Ne, []), C = D(Pe, !1), T = i(/* @__PURE__ */ new Set()), O = c(!1), A = c(""), j = c(""), ee = [
1237
+ let c = n, p = s, { t: m } = z(), b = k(Fe, []), x = k(Ie, !1), C = i(/* @__PURE__ */ new Set()), T = l(!1), D = l(""), A = l(""), ee = [
1232
1238
  {
1233
1239
  key: "desktop",
1234
- icon: ht,
1240
+ icon: vt,
1235
1241
  labelKey: "showOnDesktop"
1236
1242
  },
1237
1243
  {
1238
1244
  key: "tablet",
1239
- icon: wt,
1245
+ icon: Dt,
1240
1246
  labelKey: "showOnTablet"
1241
1247
  },
1242
1248
  {
1243
1249
  key: "mobile",
1244
- icon: bt,
1250
+ icon: Ct,
1245
1251
  labelKey: "showOnMobile"
1246
1252
  }
1247
1253
  ];
1248
1254
  function M(e) {
1249
- T.has(e) ? T.delete(e) : T.add(e);
1255
+ C.has(e) ? C.delete(e) : C.add(e);
1250
1256
  }
1251
- let te = m(() => b.length > 0 || C), N = m(() => f.block.displayCondition ? !b.some((e) => e.label === f.block.displayCondition?.label) : !1);
1257
+ let te = h(() => b.length > 0 || x), N = h(() => c.block.displayCondition ? !b.some((e) => e.label === c.block.displayCondition?.label) : !1);
1252
1258
  function P() {
1253
- O.value = !0, N.value && f.block.displayCondition ? (A.value = f.block.displayCondition.before, j.value = f.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
1259
+ T.value = !0, N.value && c.block.displayCondition ? (D.value = c.block.displayCondition.before, A.value = c.block.displayCondition.after ?? "") : (D.value = "", A.value = "");
1254
1260
  }
1255
1261
  function F() {
1256
- A.value.trim() && (p("update", { displayCondition: {
1257
- label: y.blockSettings.customCondition,
1258
- before: A.value.trim(),
1259
- after: j.value.trim()
1260
- } }), O.value = !1, A.value = "", j.value = "");
1262
+ D.value.trim() && (p("update", { displayCondition: {
1263
+ label: m.blockSettings.customCondition,
1264
+ before: D.value.trim(),
1265
+ after: A.value.trim()
1266
+ } }), T.value = !1, D.value = "", A.value = "");
1261
1267
  }
1262
- a(() => f.block.displayCondition, (e) => {
1268
+ a(() => c.block.displayCondition, (e) => {
1263
1269
  if (!e) {
1264
- O.value = !1, A.value = "", j.value = "";
1270
+ T.value = !1, D.value = "", A.value = "";
1265
1271
  return;
1266
1272
  }
1267
- N.value && (A.value = e.before, j.value = e.after ?? "");
1273
+ N.value && (D.value = e.before, A.value = e.after ?? "");
1268
1274
  }, { immediate: !0 });
1269
- let ne = m(() => {
1275
+ let ne = h(() => {
1270
1276
  let e = {};
1271
1277
  for (let t of b) {
1272
1278
  let n = t.group ?? "";
@@ -1276,12 +1282,12 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1276
1282
  });
1277
1283
  function I(e, t) {
1278
1284
  p("update", { styles: {
1279
- ...f.block.styles,
1285
+ ...c.block.styles,
1280
1286
  [e]: t
1281
1287
  } });
1282
1288
  }
1283
1289
  function L(e) {
1284
- return f.block.visibility?.[e] !== !1;
1290
+ return c.block.visibility?.[e] !== !1;
1285
1291
  }
1286
1292
  function re(e) {
1287
1293
  let t = {
@@ -1291,19 +1297,19 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1291
1297
  };
1292
1298
  t[e] = !t[e], p("update", { visibility: t });
1293
1299
  }
1294
- return (i, a) => (e(), g("div", { class: d(["tpl:flex tpl:flex-col", n.isFirstSection ? "" : "tpl:mt-4"]) }, [
1295
- E(Or, {
1296
- title: S(y).blockSettings.spacing,
1297
- open: T.has("spacing"),
1300
+ return (i, a) => (e(), _("div", { class: f(["tpl:flex tpl:flex-col", n.isFirstSection ? "" : "tpl:mt-4"]) }, [
1301
+ O(jr, {
1302
+ title: w(m).blockSettings.spacing,
1303
+ open: C.has("spacing"),
1298
1304
  "no-border": n.isFirstSection,
1299
1305
  onToggle: a[2] ||= (e) => M("spacing")
1300
1306
  }, {
1301
- default: k(() => [E(Er, {
1302
- label: S(y).blockSettings.padding,
1307
+ default: j(() => [O(kr, {
1308
+ label: w(m).blockSettings.padding,
1303
1309
  "model-value": n.block.styles.padding,
1304
1310
  "onUpdate:modelValue": a[0] ||= (e) => I("padding", e)
1305
- }, null, 8, ["label", "model-value"]), h("div", kr, [E(Er, {
1306
- label: S(y).blockSettings.margin,
1311
+ }, null, 8, ["label", "model-value"]), g("div", Mr, [O(kr, {
1312
+ label: w(m).blockSettings.margin,
1307
1313
  "model-value": n.block.styles.margin,
1308
1314
  "onUpdate:modelValue": a[1] ||= (e) => I("margin", e)
1309
1315
  }, null, 8, ["label", "model-value"])])]),
@@ -1313,120 +1319,120 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1313
1319
  "open",
1314
1320
  "no-border"
1315
1321
  ]),
1316
- E(Or, {
1317
- title: S(y).blockSettings.background,
1318
- open: T.has("bg"),
1322
+ O(jr, {
1323
+ title: w(m).blockSettings.background,
1324
+ open: C.has("bg"),
1319
1325
  onToggle: a[4] ||= (e) => M("bg")
1320
1326
  }, {
1321
- default: k(() => [h("label", { class: d(S(W)) }, w(S(y).blockSettings.color), 3), E(q, {
1327
+ default: j(() => [g("label", { class: f(w(W)) }, E(w(m).blockSettings.color), 3), O(q, {
1322
1328
  size: "large",
1323
- "model-value": n.block.styles.backgroundColor || S("#ffffff"),
1329
+ "model-value": n.block.styles.backgroundColor || w("#ffffff"),
1324
1330
  "onUpdate:modelValue": a[3] ||= (e) => I("backgroundColor", e)
1325
1331
  }, null, 8, ["model-value"])]),
1326
1332
  _: 1
1327
1333
  }, 8, ["title", "open"]),
1328
- E(Or, {
1329
- title: S(y).blockSettings.display,
1330
- open: T.has("display"),
1334
+ O(jr, {
1335
+ title: w(m).blockSettings.display,
1336
+ open: C.has("display"),
1331
1337
  onToggle: a[5] ||= (e) => M("display")
1332
1338
  }, {
1333
- default: k(() => [h("div", Ar, [(e(), g(_, null, o(ee, (t) => h("label", {
1339
+ default: j(() => [g("div", Nr, [(e(), _(v, null, o(ee, (t) => g("label", {
1334
1340
  key: t.key,
1335
1341
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
1336
1342
  }, [
1337
- h("input", {
1343
+ g("input", {
1338
1344
  type: "checkbox",
1339
1345
  class: "tpl:accent-[var(--tpl-primary)]",
1340
1346
  checked: L(t.key),
1341
1347
  onChange: (e) => re(t.key)
1342
- }, null, 40, jr),
1343
- (e(), x(r(t.icon), {
1348
+ }, null, 40, Pr),
1349
+ (e(), S(r(t.icon), {
1344
1350
  size: 14,
1345
1351
  "stroke-width": 1.5
1346
1352
  })),
1347
- l(" " + w(S(y).blockSettings[t.labelKey]), 1)
1353
+ u(" " + E(w(m).blockSettings[t.labelKey]), 1)
1348
1354
  ])), 64))])]),
1349
1355
  _: 1
1350
1356
  }, 8, ["title", "open"]),
1351
- E(Or, {
1352
- title: S(y).blockSettings.customCss,
1353
- open: T.has("css"),
1357
+ O(jr, {
1358
+ title: w(m).blockSettings.customCss,
1359
+ open: C.has("css"),
1354
1360
  onToggle: a[7] ||= (e) => M("css")
1355
1361
  }, {
1356
- default: k(() => [h("label", { class: d(S(W)) }, w(S(y).blockSettings.css), 3), h("textarea", {
1362
+ default: j(() => [g("label", { class: f(w(W)) }, E(w(m).blockSettings.css), 3), g("textarea", {
1357
1363
  value: n.block.customCss || "",
1358
- placeholder: S(y).blockSettings.cssPlaceholder,
1364
+ placeholder: w(m).blockSettings.cssPlaceholder,
1359
1365
  rows: "3",
1360
- class: d(S(ot)),
1366
+ class: f(w(lt)),
1361
1367
  onInput: a[6] ||= (e) => p("update", { customCss: e.target.value })
1362
- }, null, 42, Mr)]),
1368
+ }, null, 42, Fr)]),
1363
1369
  _: 1
1364
1370
  }, 8, ["title", "open"]),
1365
- te.value ? (e(), x(Or, {
1371
+ te.value ? (e(), S(jr, {
1366
1372
  key: 0,
1367
- title: S(y).blockSettings.displayCondition,
1368
- open: T.has("condition"),
1373
+ title: w(m).blockSettings.displayCondition,
1374
+ open: C.has("condition"),
1369
1375
  onToggle: a[11] ||= (e) => M("condition")
1370
1376
  }, {
1371
- default: k(() => [h("div", Nr, [h("select", {
1372
- class: d(["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)]", n.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)]"]),
1373
- value: O.value || N.value ? "__custom__" : n.block.displayCondition?.label ?? "",
1377
+ default: j(() => [g("div", Ir, [g("select", {
1378
+ class: f(["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)]", n.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)]"]),
1379
+ value: T.value || N.value ? "__custom__" : n.block.displayCondition?.label ?? "",
1374
1380
  onChange: a[8] ||= (e) => {
1375
1381
  let t = e.target.value;
1376
1382
  if (t === "__custom__") {
1377
1383
  P();
1378
1384
  return;
1379
1385
  }
1380
- if (O.value = !1, !t) {
1386
+ if (T.value = !1, !t) {
1381
1387
  p("update", { displayCondition: void 0 });
1382
1388
  return;
1383
1389
  }
1384
- let n = S(b).find((e) => e.label === t);
1390
+ let n = w(b).find((e) => e.label === t);
1385
1391
  n && p("update", { displayCondition: n });
1386
1392
  }
1387
1393
  }, [
1388
- h("option", Fr, w(S(y).blockSettings.noCondition), 1),
1389
- (e(!0), g(_, null, o(ne.value, (t, n) => (e(), g(_, { key: n }, [n ? (e(), g("optgroup", {
1394
+ g("option", Rr, E(w(m).blockSettings.noCondition), 1),
1395
+ (e(!0), _(v, null, o(ne.value, (t, n) => (e(), _(v, { key: n }, [n ? (e(), _("optgroup", {
1390
1396
  key: 0,
1391
1397
  label: String(n)
1392
- }, [(e(!0), g(_, null, o(t, (t) => (e(), g("option", {
1398
+ }, [(e(!0), _(v, null, o(t, (t) => (e(), _("option", {
1393
1399
  key: t.label,
1394
1400
  value: t.label
1395
- }, w(t.label), 9, Lr))), 128))], 8, Ir)) : (e(!0), g(_, { key: 1 }, o(t, (t) => (e(), g("option", {
1401
+ }, E(t.label), 9, Br))), 128))], 8, zr)) : (e(!0), _(v, { key: 1 }, o(t, (t) => (e(), _("option", {
1396
1402
  key: t.label,
1397
1403
  value: t.label
1398
- }, w(t.label), 9, Rr))), 128))], 64))), 128)),
1399
- S(C) ? (e(), g("option", zr, w(S(y).blockSettings.customCondition), 1)) : v("", !0)
1400
- ], 42, Pr), O.value || N.value ? (e(), g("div", Br, [
1401
- h("div", null, [h("label", Vr, w(S(y).blockSettings.customConditionBefore), 1), t(h("textarea", {
1402
- "onUpdate:modelValue": a[9] ||= (e) => A.value = e,
1404
+ }, E(t.label), 9, Vr))), 128))], 64))), 128)),
1405
+ w(x) ? (e(), _("option", Hr, E(w(m).blockSettings.customCondition), 1)) : y("", !0)
1406
+ ], 42, Lr), T.value || N.value ? (e(), _("div", Ur, [
1407
+ g("div", null, [g("label", Wr, E(w(m).blockSettings.customConditionBefore), 1), t(g("textarea", {
1408
+ "onUpdate:modelValue": a[9] ||= (e) => D.value = e,
1403
1409
  rows: "2",
1404
- class: d(S(ot))
1405
- }, null, 2), [[u, A.value]])]),
1406
- h("div", null, [h("label", Hr, w(S(y).blockSettings.customConditionAfter), 1), t(h("textarea", {
1407
- "onUpdate:modelValue": a[10] ||= (e) => j.value = e,
1410
+ class: f(w(lt))
1411
+ }, null, 2), [[d, D.value]])]),
1412
+ g("div", null, [g("label", Gr, E(w(m).blockSettings.customConditionAfter), 1), t(g("textarea", {
1413
+ "onUpdate:modelValue": a[10] ||= (e) => A.value = e,
1408
1414
  rows: "2",
1409
- class: d(S(ot))
1410
- }, null, 2), [[u, j.value]])]),
1411
- h("div", Ur, [h("button", {
1415
+ class: f(w(lt))
1416
+ }, null, 2), [[d, A.value]])]),
1417
+ g("div", Kr, [g("button", {
1412
1418
  type: "button",
1413
1419
  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",
1414
- disabled: !A.value.trim(),
1420
+ disabled: !D.value.trim(),
1415
1421
  onClick: F
1416
- }, w(S(y).blockSettings.applyCondition), 9, Wr)])
1417
- ])) : n.block.displayCondition && !N.value ? (e(), g(_, { key: 1 }, [n.block.displayCondition.description ? (e(), g("p", Gr, w(n.block.displayCondition.description), 1)) : v("", !0), h("div", Kr, [h("pre", qr, w(n.block.displayCondition.before), 1), n.block.displayCondition.after ? (e(), g("pre", Jr, w(n.block.displayCondition.after), 1)) : v("", !0)])], 64)) : v("", !0)])]),
1422
+ }, E(w(m).blockSettings.applyCondition), 9, qr)])
1423
+ ])) : n.block.displayCondition && !N.value ? (e(), _(v, { key: 1 }, [n.block.displayCondition.description ? (e(), _("p", Jr, E(n.block.displayCondition.description), 1)) : y("", !0), g("div", Yr, [g("pre", Xr, E(n.block.displayCondition.before), 1), n.block.displayCondition.after ? (e(), _("pre", Zr, E(n.block.displayCondition.after), 1)) : y("", !0)])], 64)) : y("", !0)])]),
1418
1424
  _: 1
1419
- }, 8, ["title", "open"])) : v("", !0)
1425
+ }, 8, ["title", "open"])) : y("", !0)
1420
1426
  ], 2));
1421
1427
  }
1422
- }), Xr = ["title"], Zr = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Qr = {
1428
+ }), $r = ["title"], ei = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ti = {
1423
1429
  key: 1,
1424
1430
  class: "tpl:text-[var(--tpl-danger)]"
1425
- }, $r = [
1431
+ }, ni = [
1426
1432
  "aria-checked",
1427
1433
  "aria-label",
1428
1434
  "disabled"
1429
- ], ei = /* @__PURE__ */ f({
1435
+ ], ri = /* @__PURE__ */ p({
1430
1436
  __name: "BooleanField",
1431
1437
  props: {
1432
1438
  field: {},
@@ -1436,35 +1442,35 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1436
1442
  emits: ["update:modelValue"],
1437
1443
  setup(t, { emit: n }) {
1438
1444
  let r = n, { t: i } = z();
1439
- return (n, a) => (e(), g("div", {
1445
+ return (n, a) => (e(), _("div", {
1440
1446
  class: "tpl:mb-3.5",
1441
- title: t.readOnly ? S(i).customBlocks.dataSource.readOnlyTooltip : void 0
1442
- }, [h("label", { class: d(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", t.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [h("span", Zr, [
1443
- l(w(t.field.label) + " ", 1),
1444
- t.readOnly ? (e(), x(S(mt), {
1447
+ title: t.readOnly ? w(i).customBlocks.dataSource.readOnlyTooltip : void 0
1448
+ }, [g("label", { class: f(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", t.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [g("span", ei, [
1449
+ u(E(t.field.label) + " ", 1),
1450
+ t.readOnly ? (e(), S(w(_t), {
1445
1451
  key: 0,
1446
1452
  size: 12,
1447
1453
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1448
- })) : v("", !0),
1449
- t.field.required ? (e(), g("span", Qr, " * ")) : v("", !0)
1450
- ]), h("button", {
1454
+ })) : y("", !0),
1455
+ t.field.required ? (e(), _("span", ti, " * ")) : y("", !0)
1456
+ ]), g("button", {
1451
1457
  type: "button",
1452
1458
  role: "switch",
1453
1459
  "aria-checked": t.modelValue,
1454
1460
  "aria-label": t.field.label,
1455
- class: d([
1461
+ class: f([
1456
1462
  "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",
1457
1463
  t.modelValue ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]",
1458
1464
  t.readOnly ? "tpl:opacity-60 tpl:cursor-not-allowed" : "tpl:cursor-pointer"
1459
1465
  ]),
1460
1466
  disabled: t.readOnly,
1461
1467
  onClick: a[0] ||= (e) => !t.readOnly && r("update:modelValue", !t.modelValue)
1462
- }, [h("span", { class: d(["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", t.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, $r)], 2)], 8, Xr));
1468
+ }, [g("span", { class: f(["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", t.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, ni)], 2)], 8, $r));
1463
1469
  }
1464
- }), ti = { class: "tpl:mb-3.5" }, ni = {
1470
+ }), ii = { class: "tpl:mb-3.5" }, ai = {
1465
1471
  key: 1,
1466
1472
  class: "tpl:text-[var(--tpl-danger)]"
1467
- }, $ = /* @__PURE__ */ f({
1473
+ }, $ = /* @__PURE__ */ p({
1468
1474
  __name: "FieldWrapper",
1469
1475
  props: {
1470
1476
  label: {},
@@ -1472,17 +1478,17 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1472
1478
  readOnly: { type: Boolean }
1473
1479
  },
1474
1480
  setup(t) {
1475
- return (n, r) => (e(), g("div", ti, [h("label", { class: d(S(W)) }, [
1476
- l(w(t.label) + " ", 1),
1477
- t.readOnly ? (e(), x(S(mt), {
1481
+ return (n, r) => (e(), _("div", ii, [g("label", { class: f(w(W)) }, [
1482
+ u(E(t.label) + " ", 1),
1483
+ t.readOnly ? (e(), S(w(_t), {
1478
1484
  key: 0,
1479
1485
  size: 12,
1480
1486
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1481
- })) : v("", !0),
1482
- t.required ? (e(), g("span", ni, "*")) : v("", !0)
1487
+ })) : y("", !0),
1488
+ t.required ? (e(), _("span", ai, "*")) : y("", !0)
1483
1489
  ], 2), s(n.$slots, "default")]));
1484
1490
  }
1485
- }), ri = /* @__PURE__ */ f({
1491
+ }), oi = /* @__PURE__ */ p({
1486
1492
  __name: "ColorField",
1487
1493
  props: {
1488
1494
  field: {},
@@ -1492,16 +1498,16 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1492
1498
  emits: ["update:modelValue"],
1493
1499
  setup(t, { emit: n }) {
1494
1500
  let r = n, { t: i } = z();
1495
- return (n, a) => (e(), x($, {
1501
+ return (n, a) => (e(), S($, {
1496
1502
  label: t.field.label,
1497
1503
  required: t.field.required,
1498
1504
  "read-only": t.readOnly
1499
1505
  }, {
1500
- default: k(() => [E(q, {
1501
- "model-value": t.modelValue || S("#000000"),
1502
- placeholder: t.field.placeholder || S("#000000"),
1506
+ default: j(() => [O(q, {
1507
+ "model-value": t.modelValue || w("#000000"),
1508
+ placeholder: t.field.placeholder || w("#000000"),
1503
1509
  disabled: t.readOnly,
1504
- title: t.readOnly ? S(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1510
+ title: t.readOnly ? w(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1505
1511
  "onUpdate:modelValue": a[0] ||= (e) => r("update:modelValue", e)
1506
1512
  }, null, 8, [
1507
1513
  "model-value",
@@ -1516,11 +1522,11 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1516
1522
  "read-only"
1517
1523
  ]));
1518
1524
  }
1519
- }), ii = [
1525
+ }), si = [
1520
1526
  "value",
1521
1527
  "placeholder",
1522
1528
  "title"
1523
- ], ai = ["value", "placeholder"], oi = /* @__PURE__ */ f({
1529
+ ], ci = ["value", "placeholder"], li = /* @__PURE__ */ p({
1524
1530
  __name: "ImageField",
1525
1531
  props: {
1526
1532
  field: {},
@@ -1529,39 +1535,39 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1529
1535
  },
1530
1536
  emits: ["update:modelValue"],
1531
1537
  setup(t, { emit: n }) {
1532
- let r = n, { t: i } = z(), a = D(Ee, null), o = m(() => !!a);
1533
- async function s() {
1538
+ let r = n, { t: i } = z(), a = k(Oe, null), o = it(), s = h(() => !!a);
1539
+ async function c() {
1534
1540
  let e = await a?.({ accept: ["images"] });
1535
- e && r("update:modelValue", e.url);
1541
+ o.alive && e && r("update:modelValue", e.url);
1536
1542
  }
1537
- return (n, a) => (e(), x($, {
1543
+ return (n, a) => (e(), S($, {
1538
1544
  label: t.field.label,
1539
1545
  required: t.field.required,
1540
1546
  "read-only": t.readOnly
1541
1547
  }, {
1542
- default: k(() => [t.readOnly ? (e(), g("input", {
1548
+ default: j(() => [t.readOnly ? (e(), _("input", {
1543
1549
  key: 0,
1544
1550
  type: "url",
1545
- class: d([S(U), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1551
+ class: f([w(U), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1546
1552
  value: t.modelValue,
1547
1553
  placeholder: t.field.placeholder || "https://...",
1548
1554
  disabled: "",
1549
- title: S(i).customBlocks.dataSource.readOnlyTooltip
1550
- }, null, 10, ii)) : (e(), g("input", {
1555
+ title: w(i).customBlocks.dataSource.readOnlyTooltip
1556
+ }, null, 10, si)) : (e(), _("input", {
1551
1557
  key: 1,
1552
1558
  type: "url",
1553
- class: d(S(U)),
1559
+ class: f(w(U)),
1554
1560
  value: t.modelValue,
1555
1561
  placeholder: t.field.placeholder || "https://...",
1556
1562
  onInput: a[0] ||= (e) => r("update:modelValue", e.target.value)
1557
- }, null, 42, ai)), o.value && !t.readOnly ? (e(), g("button", {
1563
+ }, null, 42, ci)), s.value && !t.readOnly ? (e(), _("button", {
1558
1564
  key: 2,
1559
1565
  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)]",
1560
- onClick: a[1] ||= (e) => s()
1561
- }, [E(S(R), {
1566
+ onClick: a[1] ||= (e) => c()
1567
+ }, [O(w(he), {
1562
1568
  size: 14,
1563
1569
  "stroke-width": 1.5
1564
- }), l(" " + w(S(i).image.browseMedia), 1)])) : v("", !0)]),
1570
+ }), u(" " + E(w(i).image.browseMedia), 1)])) : y("", !0)]),
1565
1571
  _: 1
1566
1572
  }, 8, [
1567
1573
  "label",
@@ -1569,7 +1575,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1569
1575
  "read-only"
1570
1576
  ]));
1571
1577
  }
1572
- }), si = [
1578
+ }), ui = [
1573
1579
  "value",
1574
1580
  "placeholder",
1575
1581
  "min",
@@ -1577,7 +1583,7 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1577
1583
  "step",
1578
1584
  "disabled",
1579
1585
  "title"
1580
- ], ci = /* @__PURE__ */ f({
1586
+ ], di = /* @__PURE__ */ p({
1581
1587
  __name: "NumberField",
1582
1588
  props: {
1583
1589
  field: {},
@@ -1587,23 +1593,23 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1587
1593
  emits: ["update:modelValue"],
1588
1594
  setup(t, { emit: n }) {
1589
1595
  let r = n, { t: i } = z();
1590
- return (n, a) => (e(), x($, {
1596
+ return (n, a) => (e(), S($, {
1591
1597
  label: t.field.label,
1592
1598
  required: t.field.required,
1593
1599
  "read-only": t.readOnly
1594
1600
  }, {
1595
- default: k(() => [h("input", {
1601
+ default: j(() => [g("input", {
1596
1602
  type: "number",
1597
- class: d([S(U), t.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1603
+ class: f([w(U), t.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1598
1604
  value: t.modelValue,
1599
1605
  placeholder: t.field.placeholder,
1600
1606
  min: t.field.min,
1601
1607
  max: t.field.max,
1602
1608
  step: t.field.step,
1603
1609
  disabled: t.readOnly,
1604
- title: t.readOnly ? S(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1610
+ title: t.readOnly ? w(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1605
1611
  onInput: a[0] ||= (e) => !t.readOnly && r("update:modelValue", Number(e.target.value))
1606
- }, null, 42, si)]),
1612
+ }, null, 42, ui)]),
1607
1613
  _: 1
1608
1614
  }, 8, [
1609
1615
  "label",
@@ -1611,10 +1617,10 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1611
1617
  "read-only"
1612
1618
  ]));
1613
1619
  }
1614
- }), li = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ui = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, di = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, fi = ["title", "onClick"], pi = {
1620
+ }), fi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, pi = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, mi = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, hi = ["title", "onClick"], gi = {
1615
1621
  key: 1,
1616
1622
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1617
- }, mi = /* @__PURE__ */ f({
1623
+ }, _i = /* @__PURE__ */ p({
1618
1624
  __name: "RepeatableField",
1619
1625
  props: {
1620
1626
  field: {},
@@ -1623,15 +1629,15 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1623
1629
  },
1624
1630
  emits: ["update:modelValue"],
1625
1631
  setup(t, { emit: n }) {
1626
- let i = t, a = n, { t: s } = z(), c = m(() => i.modelValue || []), u = m(() => !i.field.maxItems || c.value.length < i.field.maxItems), f = m(() => !i.field.minItems || c.value.length > i.field.minItems);
1632
+ let i = t, a = n, { t: s } = z(), c = h(() => i.modelValue || []), l = h(() => !i.field.maxItems || c.value.length < i.field.maxItems), d = h(() => !i.field.minItems || c.value.length > i.field.minItems);
1627
1633
  function p() {
1628
- if (!u.value || i.readOnly) return;
1634
+ if (!l.value || i.readOnly) return;
1629
1635
  let e = {};
1630
1636
  for (let t of i.field.fields) e[t.key] = t.default ?? "";
1631
1637
  a("update:modelValue", [...c.value, e]);
1632
1638
  }
1633
- function y(e) {
1634
- if (!f.value || i.readOnly) return;
1639
+ function m(e) {
1640
+ if (!d.value || i.readOnly) return;
1635
1641
  let t = [...c.value];
1636
1642
  t.splice(e, 1), a("update:modelValue", t);
1637
1643
  }
@@ -1641,25 +1647,25 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1641
1647
  [t]: n
1642
1648
  } : r));
1643
1649
  }
1644
- return (n, i) => (e(), x($, {
1650
+ return (n, i) => (e(), S($, {
1645
1651
  label: t.field.label,
1646
1652
  required: t.field.required,
1647
1653
  "read-only": t.readOnly
1648
1654
  }, {
1649
- default: k(() => [h("div", li, [
1650
- (e(!0), g(_, null, o(c.value, (n, i) => (e(), g("div", {
1655
+ default: j(() => [g("div", fi, [
1656
+ (e(!0), _(v, null, o(c.value, (n, i) => (e(), _("div", {
1651
1657
  key: `${t.field.key}-${i}`,
1652
1658
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1653
- }, [h("div", ui, [h("span", di, " #" + w(i + 1), 1), f.value && !t.readOnly ? (e(), g("button", {
1659
+ }, [g("div", pi, [g("span", mi, " #" + E(i + 1), 1), d.value && !t.readOnly ? (e(), _("button", {
1654
1660
  key: 0,
1655
1661
  type: "button",
1656
1662
  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)]",
1657
- title: S(s).customBlocks.fields.removeItem,
1658
- onClick: (e) => y(i)
1659
- }, [E(S(Qe), {
1663
+ title: w(s).customBlocks.fields.removeItem,
1664
+ onClick: (e) => m(i)
1665
+ }, [O(w(et), {
1660
1666
  size: 12,
1661
1667
  "stroke-width": 2
1662
- })], 8, fi)) : v("", !0)]), (e(!0), g(_, null, o(t.field.fields, (a) => (e(), x(r(S(Ci)(a.type)), {
1668
+ })], 8, hi)) : y("", !0)]), (e(!0), _(v, null, o(t.field.fields, (a) => (e(), S(r(w(Ei)(a.type)), {
1663
1669
  key: a.key,
1664
1670
  field: a,
1665
1671
  "model-value": n[a.key],
@@ -1671,16 +1677,16 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1671
1677
  "read-only",
1672
1678
  "onUpdate:modelValue"
1673
1679
  ]))), 128))]))), 128)),
1674
- u.value && !t.readOnly ? (e(), g("button", {
1680
+ l.value && !t.readOnly ? (e(), _("button", {
1675
1681
  key: 0,
1676
1682
  type: "button",
1677
- class: d(S(at)),
1683
+ class: f(w(ct)),
1678
1684
  onClick: p
1679
- }, [E(S(X), {
1685
+ }, [O(w(X), {
1680
1686
  size: 14,
1681
1687
  "stroke-width": 2
1682
- }), l(" " + w(S(s).customBlocks.fields.addItem), 1)], 2)) : v("", !0),
1683
- !u.value && !t.readOnly ? (e(), g("p", pi, w(S(s).customBlocks.fields.maxItemsReached), 1)) : v("", !0)
1688
+ }), u(" " + E(w(s).customBlocks.fields.addItem), 1)], 2)) : y("", !0),
1689
+ !l.value && !t.readOnly ? (e(), _("p", gi, E(w(s).customBlocks.fields.maxItemsReached), 1)) : y("", !0)
1684
1690
  ])]),
1685
1691
  _: 1
1686
1692
  }, 8, [
@@ -1689,11 +1695,11 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1689
1695
  "read-only"
1690
1696
  ]));
1691
1697
  }
1692
- }), hi = [
1698
+ }), vi = [
1693
1699
  "value",
1694
1700
  "disabled",
1695
1701
  "title"
1696
- ], gi = ["value"], _i = /* @__PURE__ */ f({
1702
+ ], yi = ["value"], bi = /* @__PURE__ */ p({
1697
1703
  __name: "SelectField",
1698
1704
  props: {
1699
1705
  field: {},
@@ -1703,21 +1709,21 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1703
1709
  emits: ["update:modelValue"],
1704
1710
  setup(t, { emit: n }) {
1705
1711
  let r = n, { t: i } = z();
1706
- return (n, a) => (e(), x($, {
1712
+ return (n, a) => (e(), S($, {
1707
1713
  label: t.field.label,
1708
1714
  required: t.field.required,
1709
1715
  "read-only": t.readOnly
1710
1716
  }, {
1711
- default: k(() => [h("select", {
1712
- class: d([S(U), t.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1717
+ default: j(() => [g("select", {
1718
+ class: f([w(U), t.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1713
1719
  value: t.modelValue,
1714
1720
  disabled: t.readOnly,
1715
- title: t.readOnly ? S(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1721
+ title: t.readOnly ? w(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1716
1722
  onChange: a[0] ||= (e) => !t.readOnly && r("update:modelValue", e.target.value)
1717
- }, [(e(!0), g(_, null, o(t.field.options, (t) => (e(), g("option", {
1723
+ }, [(e(!0), _(v, null, o(t.field.options, (t) => (e(), _("option", {
1718
1724
  key: t.value,
1719
1725
  value: t.value
1720
- }, w(t.label), 9, gi))), 128))], 42, hi)]),
1726
+ }, E(t.label), 9, yi))), 128))], 42, vi)]),
1721
1727
  _: 1
1722
1728
  }, 8, [
1723
1729
  "label",
@@ -1725,11 +1731,11 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1725
1731
  "read-only"
1726
1732
  ]));
1727
1733
  }
1728
- }), vi = [
1734
+ }), xi = [
1729
1735
  "value",
1730
1736
  "placeholder",
1731
1737
  "title"
1732
- ], yi = /* @__PURE__ */ f({
1738
+ ], Si = /* @__PURE__ */ p({
1733
1739
  __name: "TextField",
1734
1740
  props: {
1735
1741
  field: {},
@@ -1739,20 +1745,20 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1739
1745
  emits: ["update:modelValue"],
1740
1746
  setup(t, { emit: n }) {
1741
1747
  let r = n, { t: i } = z();
1742
- return (n, a) => (e(), x($, {
1748
+ return (n, a) => (e(), S($, {
1743
1749
  label: t.field.label,
1744
1750
  required: t.field.required,
1745
1751
  "read-only": t.readOnly
1746
1752
  }, {
1747
- default: k(() => [t.readOnly ? (e(), g("input", {
1753
+ default: j(() => [t.readOnly ? (e(), _("input", {
1748
1754
  key: 0,
1749
1755
  type: "text",
1750
- class: d([S(U), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1756
+ class: f([w(U), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1751
1757
  value: t.modelValue,
1752
1758
  placeholder: t.field.placeholder,
1753
1759
  disabled: "",
1754
- title: S(i).customBlocks.dataSource.readOnlyTooltip
1755
- }, null, 10, vi)) : (e(), x(Z, {
1760
+ title: w(i).customBlocks.dataSource.readOnlyTooltip
1761
+ }, null, 10, xi)) : (e(), S(Z, {
1756
1762
  key: 1,
1757
1763
  "model-value": t.modelValue,
1758
1764
  placeholder: t.field.placeholder,
@@ -1765,13 +1771,13 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1765
1771
  "read-only"
1766
1772
  ]));
1767
1773
  }
1768
- }), bi = [
1774
+ }), Ci = [
1769
1775
  "value",
1770
1776
  "placeholder",
1771
1777
  "title"
1772
- ], xi = "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", Si = {
1773
- text: yi,
1774
- textarea: /* @__PURE__ */ f({
1778
+ ], wi = "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", Ti = {
1779
+ text: Si,
1780
+ textarea: /* @__PURE__ */ p({
1775
1781
  __name: "TextareaField",
1776
1782
  props: {
1777
1783
  field: {},
@@ -1781,20 +1787,20 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1781
1787
  emits: ["update:modelValue"],
1782
1788
  setup(t, { emit: n }) {
1783
1789
  let r = n, { t: i } = z();
1784
- return (n, a) => (e(), x($, {
1790
+ return (n, a) => (e(), S($, {
1785
1791
  label: t.field.label,
1786
1792
  required: t.field.required,
1787
1793
  "read-only": t.readOnly
1788
1794
  }, {
1789
- default: k(() => [t.readOnly ? (e(), g("textarea", {
1795
+ default: j(() => [t.readOnly ? (e(), _("textarea", {
1790
1796
  key: 0,
1791
1797
  value: t.modelValue,
1792
1798
  placeholder: t.field.placeholder,
1793
1799
  rows: "3",
1794
1800
  disabled: "",
1795
- title: S(i).customBlocks.dataSource.readOnlyTooltip,
1796
- class: d(xi)
1797
- }, null, 8, bi)) : (e(), x(sn, {
1801
+ title: w(i).customBlocks.dataSource.readOnlyTooltip,
1802
+ class: f(wi)
1803
+ }, null, 8, Ci)) : (e(), S(un, {
1798
1804
  key: 1,
1799
1805
  "model-value": t.modelValue,
1800
1806
  placeholder: t.field.placeholder,
@@ -1808,88 +1814,88 @@ var Kt = ["aria-label", "onKeydown"], qt = ["data-tooltip"], Jt = ["data-tooltip
1808
1814
  ]));
1809
1815
  }
1810
1816
  }),
1811
- image: oi,
1812
- color: ri,
1813
- number: ci,
1814
- select: _i,
1815
- boolean: ei,
1816
- repeatable: mi
1817
+ image: li,
1818
+ color: oi,
1819
+ number: di,
1820
+ select: bi,
1821
+ boolean: ri,
1822
+ repeatable: _i
1817
1823
  };
1818
- function Ci(e) {
1819
- return Si[e] ?? yi;
1824
+ function Ei(e) {
1825
+ return Ti[e] ?? Si;
1820
1826
  }
1821
1827
  //#endregion
1822
1828
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1823
- var wi = {
1829
+ var Di = {
1824
1830
  key: 0,
1825
1831
  class: "tpl:p-4"
1826
- }, Ti = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ei = { key: 1 }, Di = {
1832
+ }, Oi = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ki = { key: 1 }, Ai = {
1827
1833
  key: 0,
1828
1834
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1829
- }, Oi = {
1835
+ }, ji = {
1830
1836
  key: 1,
1831
1837
  class: "tpl:mb-4"
1832
- }, ki = {
1838
+ }, Mi = {
1833
1839
  key: 1,
1834
1840
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
1835
- }, Ai = {
1841
+ }, Ni = {
1836
1842
  key: 0,
1837
1843
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1838
- }, ji = {
1844
+ }, Pi = {
1839
1845
  key: 2,
1840
1846
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
1841
- }, Mi = /* @__PURE__ */ f({
1847
+ }, Fi = /* @__PURE__ */ p({
1842
1848
  __name: "CustomBlockToolbar",
1843
1849
  props: { block: {} },
1844
1850
  emits: ["updateFieldValues", "updateDataSourceFetched"],
1845
1851
  setup(t, { emit: n }) {
1846
- let i = t, a = n, { t: s } = z(), c = D(ke, []), u = m(() => c.find((e) => e.type === i.block.customType)), { isFetching: d, fetchError: f, fetch: p, hasDataSource: y, needsFetch: b } = L({
1847
- definition: u,
1848
- block: m(() => i.block),
1852
+ let i = t, a = n, { t: s } = z(), c = k(je, []), l = h(() => c.find((e) => e.type === i.block.customType)), { isFetching: d, fetchError: f, fetch: p, hasDataSource: m, needsFetch: b } = ie({
1853
+ definition: l,
1854
+ block: h(() => i.block),
1849
1855
  onUpdate: (e, t) => {
1850
1856
  a("updateFieldValues", e), a("updateDataSourceFetched", t);
1851
1857
  }
1852
1858
  });
1853
- function C(e) {
1854
- return e.readOnly === !0 && y.value && !!i.block.dataSourceFetched;
1859
+ function x(e) {
1860
+ return e.readOnly === !0 && m.value && !!i.block.dataSourceFetched;
1855
1861
  }
1856
- function T(e, t) {
1862
+ function C(e, t) {
1857
1863
  a("updateFieldValues", {
1858
1864
  ...i.block.fieldValues,
1859
1865
  [e]: t
1860
1866
  });
1861
1867
  }
1862
- return (n, i) => u.value ? (e(), g("div", Ei, [
1863
- u.value.description ? (e(), g("p", Di, w(u.value.description), 1)) : v("", !0),
1864
- S(y) ? (e(), g("div", Oi, [S(b) && !S(d) ? (e(), g("button", {
1868
+ return (n, i) => l.value ? (e(), _("div", ki, [
1869
+ l.value.description ? (e(), _("p", Ai, E(l.value.description), 1)) : y("", !0),
1870
+ w(m) ? (e(), _("div", ji, [w(b) && !w(d) ? (e(), _("button", {
1865
1871
  key: 0,
1866
1872
  type: "button",
1867
1873
  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)]",
1868
- onClick: i[0] ||= (...e) => S(p) && S(p)(...e)
1869
- }, w(u.value?.dataSource?.label || S(s).customBlocks.dataSource.fetchButton), 1)) : (e(), g("div", ki, [S(d) ? (e(), g("div", Ai, w(S(s).customBlocks.dataSource.fetching), 1)) : (e(), g("button", {
1874
+ onClick: i[0] ||= (...e) => w(p) && w(p)(...e)
1875
+ }, E(l.value?.dataSource?.label || w(s).customBlocks.dataSource.fetchButton), 1)) : (e(), _("div", Mi, [w(d) ? (e(), _("div", Ni, E(w(s).customBlocks.dataSource.fetching), 1)) : (e(), _("button", {
1870
1876
  key: 1,
1871
1877
  type: "button",
1872
1878
  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)]",
1873
- onClick: i[1] ||= (...e) => S(p) && S(p)(...e)
1874
- }, [E(S(We), { size: 12 }), l(" " + w(S(s).customBlocks.dataSource.changeButton), 1)]))])), S(f) ? (e(), g("p", ji, [E(S(Be), {
1879
+ onClick: i[1] ||= (...e) => w(p) && w(p)(...e)
1880
+ }, [O(w(Ke), { size: 12 }), u(" " + E(w(s).customBlocks.dataSource.changeButton), 1)]))])), w(f) ? (e(), _("p", Pi, [O(w(He), {
1875
1881
  size: 14,
1876
1882
  class: "tpl:shrink-0"
1877
- }), l(" " + w(S(s).customBlocks.dataSource.fetchError), 1)])) : v("", !0)])) : v("", !0),
1878
- (e(!0), g(_, null, o(u.value.fields, (n) => (e(), x(r(S(Ci)(n.type)), {
1883
+ }), u(" " + E(w(s).customBlocks.dataSource.fetchError), 1)])) : y("", !0)])) : y("", !0),
1884
+ (e(!0), _(v, null, o(l.value.fields, (n) => (e(), S(r(w(Ei)(n.type)), {
1879
1885
  key: n.key,
1880
1886
  field: n,
1881
1887
  "model-value": t.block.fieldValues[n.key],
1882
- "read-only": C(n),
1883
- "onUpdate:modelValue": (e) => T(n.key, e)
1888
+ "read-only": x(n),
1889
+ "onUpdate:modelValue": (e) => C(n.key, e)
1884
1890
  }, null, 8, [
1885
1891
  "field",
1886
1892
  "model-value",
1887
1893
  "read-only",
1888
1894
  "onUpdate:modelValue"
1889
1895
  ]))), 128))
1890
- ])) : (e(), g("div", wi, [h("p", Ti, w(S(s).customBlocks.toolbar.noDefinition), 1)]));
1896
+ ])) : (e(), _("div", Di, [g("p", Oi, E(w(s).customBlocks.toolbar.noDefinition), 1)]));
1891
1897
  }
1892
- }), Ni = { class: "tpl:mb-3.5" }, Pi = { class: "tpl:mb-3.5" }, Fi = { class: "tpl:mb-3.5" }, Ii = { class: "tpl:flex tpl:items-stretch" }, Li = ["value"], Ri = /* @__PURE__ */ f({
1898
+ }), Ii = { class: "tpl:mb-3.5" }, Li = { class: "tpl:mb-3.5" }, Ri = { class: "tpl:mb-3.5" }, zi = { class: "tpl:flex tpl:items-stretch" }, Bi = ["value"], Vi = /* @__PURE__ */ p({
1893
1899
  __name: "DividerToolbar",
1894
1900
  props: { block: {} },
1895
1901
  emits: ["update"],
@@ -1898,96 +1904,96 @@ var wi = {
1898
1904
  function a(e, t) {
1899
1905
  r("update", { [e]: t });
1900
1906
  }
1901
- return (n, r) => (e(), g(_, null, [
1902
- h("div", Ni, [h("label", { class: d(S(W)) }, w(S(i).divider.style), 3), E(Y, {
1907
+ return (n, r) => (e(), _(v, null, [
1908
+ g("div", Ii, [g("label", { class: f(w(W)) }, E(w(i).divider.style), 3), O(Y, {
1903
1909
  options: [
1904
1910
  {
1905
1911
  value: "solid",
1906
- label: S(i).divider.solid
1912
+ label: w(i).divider.solid
1907
1913
  },
1908
1914
  {
1909
1915
  value: "dashed",
1910
- label: S(i).divider.dashed
1916
+ label: w(i).divider.dashed
1911
1917
  },
1912
1918
  {
1913
1919
  value: "dotted",
1914
- label: S(i).divider.dotted
1920
+ label: w(i).divider.dotted
1915
1921
  }
1916
1922
  ],
1917
1923
  "model-value": t.block.lineStyle,
1918
1924
  "onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
1919
1925
  }, null, 8, ["options", "model-value"])]),
1920
- h("div", Pi, [h("label", { class: d(S(W)) }, w(S(i).divider.color), 3), E(q, {
1926
+ g("div", Li, [g("label", { class: f(w(W)) }, E(w(i).divider.color), 3), O(q, {
1921
1927
  "model-value": t.block.color,
1922
1928
  "onUpdate:modelValue": r[1] ||= (e) => a("color", e)
1923
1929
  }, null, 8, ["model-value"])]),
1924
- h("div", Fi, [h("label", { class: d(S(W)) }, w(S(i).divider.thickness), 3), h("div", Ii, [h("input", {
1930
+ g("div", Ri, [g("label", { class: f(w(W)) }, E(w(i).divider.thickness), 3), g("div", zi, [g("input", {
1925
1931
  type: "number",
1926
- class: d(S(K)),
1932
+ class: f(w(K)),
1927
1933
  value: t.block.thickness,
1928
1934
  min: "1",
1929
1935
  max: "10",
1930
1936
  onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
1931
- }, null, 42, Li), h("span", { class: d(S(G)) }, "px", 2)])])
1937
+ }, null, 42, Bi), g("span", { class: f(w(G)) }, "px", 2)])])
1932
1938
  ], 64));
1933
1939
  }
1934
- }), zi = { class: "tpl:mb-3.5" }, Bi = ["value"], Vi = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Hi = /* @__PURE__ */ f({
1940
+ }), Hi = { class: "tpl:mb-3.5" }, Ui = ["value"], Wi = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Gi = /* @__PURE__ */ p({
1935
1941
  __name: "HtmlToolbar",
1936
1942
  props: { block: {} },
1937
1943
  emits: ["update"],
1938
1944
  setup(t, { emit: n }) {
1939
1945
  let r = n, { t: i } = z();
1940
- return (n, a) => (e(), g("div", zi, [
1941
- h("label", { class: d(S(W)) }, w(S(i).html.content), 3),
1942
- h("textarea", {
1946
+ return (n, a) => (e(), _("div", Hi, [
1947
+ g("label", { class: f(w(W)) }, E(w(i).html.content), 3),
1948
+ g("textarea", {
1943
1949
  value: t.block.content,
1944
1950
  placeholder: "<div>...</div>",
1945
1951
  rows: "10",
1946
- class: d(S(ot)),
1952
+ class: f(w(lt)),
1947
1953
  onInput: a[0] ||= (e) => r("update", { content: e.target.value })
1948
- }, null, 42, Bi),
1949
- h("p", Vi, [E(S(Ke), {
1954
+ }, null, 42, Ui),
1955
+ g("p", Wi, [O(w(Je), {
1950
1956
  size: 12,
1951
1957
  class: "tpl:mt-0.5 tpl:shrink-0"
1952
- }), l(" " + w(S(i).html.sanitizationHint), 1)])
1958
+ }), u(" " + E(w(i).html.sanitizationHint), 1)])
1953
1959
  ]));
1954
1960
  }
1955
- }), Ui = { class: "tpl:mb-3.5" }, Wi = {
1961
+ }), Ki = { class: "tpl:mb-3.5" }, qi = {
1956
1962
  key: 0,
1957
1963
  class: "tpl:mb-3.5"
1958
- }, Gi = ["value", "placeholder"], Ki = { class: "tpl:mb-3.5" }, qi = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, Ji = ["checked"], Yi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Xi = { class: "tpl:mb-3.5" }, Zi = ["value"], Qi = { value: "full" }, $i = { class: "tpl:mb-3.5" }, ea = { class: "tpl:mb-3.5" }, ta = {
1964
+ }, Ji = ["value", "placeholder"], Yi = { class: "tpl:mb-3.5" }, Xi = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, Zi = ["checked"], Qi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, $i = { class: "tpl:mb-3.5" }, ea = ["value"], ta = { value: "full" }, na = { class: "tpl:mb-3.5" }, ra = { class: "tpl:mb-3.5" }, ia = {
1959
1965
  key: 0,
1960
1966
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
1961
- }, na = ["checked"], ra = /* @__PURE__ */ f({
1967
+ }, aa = ["checked"], oa = /* @__PURE__ */ p({
1962
1968
  __name: "ImageToolbar",
1963
1969
  props: { block: {} },
1964
1970
  emits: ["update"],
1965
1971
  setup(t, { emit: n }) {
1966
- let r = n, { t: i } = z(), a = D(Ee, null), o = D(Le, P.liquid), s = m(() => !!a), u = c(!1), f = c(!1), { start: p } = we(() => {
1967
- u.value = !1;
1972
+ let r = n, { t: i } = z(), a = k(Oe, null), o = k(ze, ne.liquid), s = it(), c = h(() => !!a), d = l(!1), p = l(!1), { start: m } = Ee(() => {
1973
+ d.value = !1;
1968
1974
  }, 1e3, { immediate: !1 });
1969
- function y(e, t) {
1975
+ function b(e, t) {
1970
1976
  r("update", { [e]: t });
1971
1977
  }
1972
- async function b() {
1978
+ async function x() {
1973
1979
  let e = await a?.({ accept: ["images"] });
1974
- e && (y("src", e.url), e.alt && (y("alt", e.alt), f.value = !0), u.value = !0, p());
1980
+ s.alive && e && (b("src", e.url), e.alt && (b("alt", e.alt), p.value = !0), d.value = !0, m());
1975
1981
  }
1976
- return (n, r) => (e(), g(_, null, [
1977
- h("div", Ui, [
1978
- h("label", { class: d(S(W)) }, w(S(i).image.imageUrl), 3),
1979
- E(Z, {
1982
+ return (n, r) => (e(), _(v, null, [
1983
+ g("div", Ki, [
1984
+ g("label", { class: f(w(W)) }, E(w(i).image.imageUrl), 3),
1985
+ O(Z, {
1980
1986
  "model-value": t.block.src,
1981
1987
  type: "url",
1982
- placeholder: S(i).image.imageUrlPlaceholder,
1983
- pulse: u.value,
1984
- "onUpdate:modelValue": r[0] ||= (e) => y("src", e)
1988
+ placeholder: w(i).image.imageUrlPlaceholder,
1989
+ pulse: d.value,
1990
+ "onUpdate:modelValue": r[0] ||= (e) => b("src", e)
1985
1991
  }, null, 8, [
1986
1992
  "model-value",
1987
1993
  "placeholder",
1988
1994
  "pulse"
1989
1995
  ]),
1990
- s.value ? (e(), g("button", {
1996
+ c.value ? (e(), _("button", {
1991
1997
  key: 0,
1992
1998
  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",
1993
1999
  style: {
@@ -1995,91 +2001,91 @@ var wi = {
1995
2001
  color: "var(--tpl-primary)",
1996
2002
  "background-color": "var(--tpl-bg)"
1997
2003
  },
1998
- onClick: b
1999
- }, [E(S(R), {
2004
+ onClick: x
2005
+ }, [O(w(he), {
2000
2006
  size: 14,
2001
2007
  "stroke-width": 1.5
2002
- }), l(" " + w(S(i).image.browseMedia), 1)])) : v("", !0)
2008
+ }), u(" " + E(w(i).image.browseMedia), 1)])) : y("", !0)
2003
2009
  ]),
2004
- S(te)(t.block.src, S(o)) ? (e(), g("div", Wi, [h("label", { class: d(S(W)) }, [l(w(S(i).image.placeholderUrl) + " ", 1), r[8] ||= h("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, w("(optional)"), -1)], 2), h("input", {
2010
+ w(P)(t.block.src, w(o)) ? (e(), _("div", qi, [g("label", { class: f(w(W)) }, [u(E(w(i).image.placeholderUrl) + " ", 1), r[8] ||= g("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, E("(optional)"), -1)], 2), g("input", {
2005
2011
  type: "url",
2006
- class: d(S(U)),
2012
+ class: f(w(U)),
2007
2013
  value: t.block.placeholderUrl || "",
2008
- placeholder: S(i).image.placeholderUrlPlaceholder,
2009
- onInput: r[1] ||= (e) => y("placeholderUrl", e.target.value)
2010
- }, null, 42, Gi)])) : v("", !0),
2011
- h("div", Ki, [
2012
- h("label", { class: d(S(W)) }, w(S(i).image.altText), 3),
2013
- E(Z, {
2014
+ placeholder: w(i).image.placeholderUrlPlaceholder,
2015
+ onInput: r[1] ||= (e) => b("placeholderUrl", e.target.value)
2016
+ }, null, 42, Ji)])) : y("", !0),
2017
+ g("div", Yi, [
2018
+ g("label", { class: f(w(W)) }, E(w(i).image.altText), 3),
2019
+ O(Z, {
2014
2020
  "model-value": t.block.alt,
2015
2021
  type: "text",
2016
- placeholder: S(i).image.altTextPlaceholder,
2017
- pulse: f.value,
2022
+ placeholder: w(i).image.altTextPlaceholder,
2023
+ pulse: p.value,
2018
2024
  disabled: t.block.decorative === !0,
2019
- "onUpdate:modelValue": r[2] ||= (e) => y("alt", e)
2025
+ "onUpdate:modelValue": r[2] ||= (e) => b("alt", e)
2020
2026
  }, null, 8, [
2021
2027
  "model-value",
2022
2028
  "placeholder",
2023
2029
  "pulse",
2024
2030
  "disabled"
2025
2031
  ]),
2026
- h("label", qi, [h("input", {
2032
+ g("label", Xi, [g("input", {
2027
2033
  type: "checkbox",
2028
2034
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2029
2035
  checked: t.block.decorative === !0,
2030
- onChange: r[3] ||= (e) => y("decorative", e.target.checked)
2031
- }, null, 40, Ji), h("span", null, [l(w(S(i).image.decorative) + " ", 1), h("span", Yi, w(S(i).image.decorativeHint), 1)])])
2036
+ onChange: r[3] ||= (e) => b("decorative", e.target.checked)
2037
+ }, null, 40, Zi), g("span", null, [u(E(w(i).image.decorative) + " ", 1), g("span", Qi, E(w(i).image.decorativeHint), 1)])])
2032
2038
  ]),
2033
- h("div", Xi, [h("label", { class: d(S(W)) }, w(S(i).image.width), 3), h("select", {
2034
- class: d(S(U)),
2039
+ g("div", $i, [g("label", { class: f(w(W)) }, E(w(i).image.width), 3), g("select", {
2040
+ class: f(w(U)),
2035
2041
  value: t.block.width,
2036
- onChange: r[4] ||= (e) => y("width", e.target.value === "full" ? "full" : Number(e.target.value))
2042
+ onChange: r[4] ||= (e) => b("width", e.target.value === "full" ? "full" : Number(e.target.value))
2037
2043
  }, [
2038
- h("option", Qi, w(S(i).image.fullWidth), 1),
2039
- r[9] ||= h("option", { value: "300" }, "300px", -1),
2040
- r[10] ||= h("option", { value: "400" }, "400px", -1),
2041
- r[11] ||= h("option", { value: "500" }, "500px", -1)
2042
- ], 42, Zi)]),
2043
- h("div", $i, [h("label", { class: d(S(W)) }, w(S(i).title.align), 3), E(Y, {
2044
+ g("option", ta, E(w(i).image.fullWidth), 1),
2045
+ r[9] ||= g("option", { value: "300" }, "300px", -1),
2046
+ r[10] ||= g("option", { value: "400" }, "400px", -1),
2047
+ r[11] ||= g("option", { value: "500" }, "500px", -1)
2048
+ ], 42, ea)]),
2049
+ g("div", na, [g("label", { class: f(w(W)) }, E(w(i).title.align), 3), O(Y, {
2044
2050
  options: [
2045
2051
  {
2046
2052
  value: "left",
2047
- label: S(i).title.alignLeft
2053
+ label: w(i).title.alignLeft
2048
2054
  },
2049
2055
  {
2050
2056
  value: "center",
2051
- label: S(i).title.alignCenter
2057
+ label: w(i).title.alignCenter
2052
2058
  },
2053
2059
  {
2054
2060
  value: "right",
2055
- label: S(i).title.alignRight
2061
+ label: w(i).title.alignRight
2056
2062
  }
2057
2063
  ],
2058
2064
  "model-value": t.block.align,
2059
- "onUpdate:modelValue": r[5] ||= (e) => y("align", e)
2065
+ "onUpdate:modelValue": r[5] ||= (e) => b("align", e)
2060
2066
  }, null, 8, ["options", "model-value"])]),
2061
- h("div", ea, [
2062
- h("label", { class: d(S(W)) }, w(S(i).image.linkUrl), 3),
2063
- E(Z, {
2067
+ g("div", ra, [
2068
+ g("label", { class: f(w(W)) }, E(w(i).image.linkUrl), 3),
2069
+ O(Z, {
2064
2070
  "model-value": t.block.linkUrl || "",
2065
2071
  type: "url",
2066
- placeholder: S(i).image.imageUrlPlaceholder,
2067
- "onUpdate:modelValue": r[6] ||= (e) => y("linkUrl", e)
2072
+ placeholder: w(i).image.imageUrlPlaceholder,
2073
+ "onUpdate:modelValue": r[6] ||= (e) => b("linkUrl", e)
2068
2074
  }, null, 8, ["model-value", "placeholder"]),
2069
- t.block.linkUrl ? (e(), g("label", ta, [h("input", {
2075
+ t.block.linkUrl ? (e(), _("label", ia, [g("input", {
2070
2076
  type: "checkbox",
2071
2077
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2072
2078
  checked: t.block.linkOpenInNewTab ?? !1,
2073
- onChange: r[7] ||= (e) => y("linkOpenInNewTab", e.target.checked)
2074
- }, null, 40, na), l(" " + w(S(i).image.openInNewTab), 1)])) : v("", !0)
2079
+ onChange: r[7] ||= (e) => b("linkOpenInNewTab", e.target.checked)
2080
+ }, null, 40, aa), u(" " + E(w(i).image.openInNewTab), 1)])) : y("", !0)
2075
2081
  ])
2076
2082
  ], 64));
2077
2083
  }
2078
- }), ia = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, aa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, oa = [
2084
+ }), sa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ca = { class: "tpl:flex tpl:items-center tpl:gap-2" }, la = [
2079
2085
  "value",
2080
2086
  "placeholder",
2081
2087
  "onInput"
2082
- ], sa = ["title", "onClick"], ca = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, la = ["checked", "onChange"], ua = { class: "tpl:flex tpl:items-center tpl:gap-2" }, da = ["value"], fa = { value: "" }, pa = ["value"], ma = ["value"], ha = /* @__PURE__ */ f({
2088
+ ], ua = ["title", "onClick"], da = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, fa = ["checked", "onChange"], pa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ma = ["value"], ha = { value: "" }, ga = ["value"], _a = ["value"], va = /* @__PURE__ */ p({
2083
2089
  __name: "MenuToolbar",
2084
2090
  props: {
2085
2091
  block: {},
@@ -2087,7 +2093,7 @@ var wi = {
2087
2093
  },
2088
2094
  emits: ["update"],
2089
2095
  setup(t, { emit: n }) {
2090
- let r = t, i = n, { t: a } = z(), s = m(() => [
2096
+ let r = t, i = n, { t: a } = z(), s = h(() => [
2091
2097
  {
2092
2098
  key: "openInNewTab",
2093
2099
  label: a.menu.openInNewTab
@@ -2100,29 +2106,29 @@ var wi = {
2100
2106
  key: "underline",
2101
2107
  label: a.menu.underline
2102
2108
  }
2103
- ]), c = m(() => [
2109
+ ]), c = h(() => [
2104
2110
  {
2105
2111
  value: "left",
2106
2112
  label: a.title.alignLeft,
2107
- icon: Ze
2113
+ icon: $e
2108
2114
  },
2109
2115
  {
2110
2116
  value: "center",
2111
2117
  label: a.title.alignCenter,
2112
- icon: Xe
2118
+ icon: Qe
2113
2119
  },
2114
2120
  {
2115
2121
  value: "right",
2116
2122
  label: a.title.alignRight,
2117
- icon: Ye
2123
+ icon: Ze
2118
2124
  }
2119
2125
  ]);
2120
- function u(e, t) {
2126
+ function l(e, t) {
2121
2127
  i("update", { [e]: t });
2122
2128
  }
2123
- function f() {
2129
+ function d() {
2124
2130
  let e = {
2125
- id: M(),
2131
+ id: N(),
2126
2132
  text: "",
2127
2133
  url: "",
2128
2134
  openInNewTab: !1,
@@ -2137,139 +2143,139 @@ var wi = {
2137
2143
  [t]: n
2138
2144
  } : r) });
2139
2145
  }
2140
- function v(e) {
2146
+ function m(e) {
2141
2147
  i("update", { items: r.block.items.filter((t) => t.id !== e) });
2142
2148
  }
2143
- return (n, r) => (e(), g(_, null, [
2144
- E(J, { label: S(a).menu.items }, {
2145
- default: k(() => [h("div", ia, [(e(!0), g(_, null, o(t.block.items, (n) => (e(), g("div", {
2149
+ return (n, r) => (e(), _(v, null, [
2150
+ O(J, { label: w(a).menu.items }, {
2151
+ default: j(() => [g("div", sa, [(e(!0), _(v, null, o(t.block.items, (n) => (e(), _("div", {
2146
2152
  key: n.id,
2147
2153
  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"
2148
2154
  }, [
2149
- h("div", aa, [h("input", {
2155
+ g("div", ca, [g("input", {
2150
2156
  type: "text",
2151
- class: d([S(U), "tpl:flex-1"]),
2157
+ class: f([w(U), "tpl:flex-1"]),
2152
2158
  value: n.text,
2153
- placeholder: S(a).menu.text,
2159
+ placeholder: w(a).menu.text,
2154
2160
  onInput: (e) => p(n.id, "text", e.target.value)
2155
- }, null, 42, oa), h("button", {
2156
- class: d(S(it)),
2157
- title: S(a).menu.removeItem,
2158
- onClick: (e) => v(n.id)
2159
- }, [E(S($e), {
2161
+ }, null, 42, la), g("button", {
2162
+ class: f(w(st)),
2163
+ title: w(a).menu.removeItem,
2164
+ onClick: (e) => m(n.id)
2165
+ }, [O(w(tt), {
2160
2166
  size: 14,
2161
2167
  "stroke-width": 2
2162
- })], 10, sa)]),
2163
- E(Z, {
2168
+ })], 10, ua)]),
2169
+ O(Z, {
2164
2170
  "model-value": n.url,
2165
2171
  type: "url",
2166
- placeholder: S(a).menu.urlPlaceholder,
2172
+ placeholder: w(a).menu.urlPlaceholder,
2167
2173
  "onUpdate:modelValue": (e) => p(n.id, "url", e)
2168
2174
  }, null, 8, [
2169
2175
  "model-value",
2170
2176
  "placeholder",
2171
2177
  "onUpdate:modelValue"
2172
2178
  ]),
2173
- h("div", ca, [(e(!0), g(_, null, o(s.value, (t) => (e(), g("label", {
2179
+ g("div", da, [(e(!0), _(v, null, o(s.value, (t) => (e(), _("label", {
2174
2180
  key: t.key,
2175
2181
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
2176
- }, [h("input", {
2182
+ }, [g("input", {
2177
2183
  type: "checkbox",
2178
2184
  checked: n[t.key],
2179
2185
  class: "tpl:accent-[var(--tpl-primary)]",
2180
2186
  onChange: (e) => p(n.id, t.key, e.target.checked)
2181
- }, null, 40, la), l(" " + w(t.label), 1)]))), 128))]),
2182
- h("div", ua, [h("label", { class: d([S(W), "tpl:!mb-0"]) }, w(S(a).menu.color), 3), E(q, {
2187
+ }, null, 40, fa), u(" " + E(t.label), 1)]))), 128))]),
2188
+ g("div", pa, [g("label", { class: f([w(W), "tpl:!mb-0"]) }, E(w(a).menu.color), 3), O(q, {
2183
2189
  "swatch-only": "",
2184
2190
  "model-value": n.color || t.block.linkColor || t.block.color,
2185
2191
  "onUpdate:modelValue": (e) => p(n.id, "color", e)
2186
2192
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
2187
- ]))), 128)), h("button", {
2188
- class: d(S(at)),
2189
- onClick: f
2190
- }, [E(S(X), {
2193
+ ]))), 128)), g("button", {
2194
+ class: f(w(ct)),
2195
+ onClick: d
2196
+ }, [O(w(X), {
2191
2197
  size: 14,
2192
2198
  "stroke-width": 2
2193
- }), l(" " + w(S(a).menu.addItem), 1)], 2)])]),
2199
+ }), u(" " + E(w(a).menu.addItem), 1)], 2)])]),
2194
2200
  _: 1
2195
2201
  }, 8, ["label"]),
2196
- E(J, { label: S(a).menu.fontFamily }, {
2197
- default: k(() => [h("select", {
2198
- class: d(S(U)),
2202
+ O(J, { label: w(a).menu.fontFamily }, {
2203
+ default: j(() => [g("select", {
2204
+ class: f(w(U)),
2199
2205
  value: t.block.fontFamily || "",
2200
- onChange: r[0] ||= (e) => u("fontFamily", e.target.value || void 0)
2201
- }, [h("option", fa, w(S(a).title.inheritFont), 1), (e(!0), g(_, null, o(t.fontFamilies, (t) => (e(), g("option", {
2206
+ onChange: r[0] ||= (e) => l("fontFamily", e.target.value || void 0)
2207
+ }, [g("option", ha, E(w(a).title.inheritFont), 1), (e(!0), _(v, null, o(t.fontFamilies, (t) => (e(), _("option", {
2202
2208
  key: t.value,
2203
2209
  value: t.value
2204
- }, w(t.label), 9, pa))), 128))], 42, da)]),
2210
+ }, E(t.label), 9, ga))), 128))], 42, ma)]),
2205
2211
  _: 1
2206
2212
  }, 8, ["label"]),
2207
- E(J, { label: S(a).menu.fontSize }, {
2208
- default: k(() => [E(lt, {
2213
+ O(J, { label: w(a).menu.fontSize }, {
2214
+ default: j(() => [O(ft, {
2209
2215
  "model-value": t.block.fontSize,
2210
2216
  min: 8,
2211
2217
  max: 48,
2212
2218
  suffix: "px",
2213
- "onUpdate:modelValue": r[1] ||= (e) => u("fontSize", e)
2219
+ "onUpdate:modelValue": r[1] ||= (e) => l("fontSize", e)
2214
2220
  }, null, 8, ["model-value"])]),
2215
2221
  _: 1
2216
2222
  }, 8, ["label"]),
2217
- E(J, { label: S(a).menu.color }, {
2218
- default: k(() => [E(q, {
2223
+ O(J, { label: w(a).menu.color }, {
2224
+ default: j(() => [O(q, {
2219
2225
  "model-value": t.block.color,
2220
- "onUpdate:modelValue": r[2] ||= (e) => u("color", e)
2226
+ "onUpdate:modelValue": r[2] ||= (e) => l("color", e)
2221
2227
  }, null, 8, ["model-value"])]),
2222
2228
  _: 1
2223
2229
  }, 8, ["label"]),
2224
- E(J, { label: S(a).menu.linkColor }, {
2225
- default: k(() => [E(q, {
2230
+ O(J, { label: w(a).menu.linkColor }, {
2231
+ default: j(() => [O(q, {
2226
2232
  "model-value": t.block.linkColor || t.block.color,
2227
- "onUpdate:modelValue": r[3] ||= (e) => u("linkColor", e || void 0)
2233
+ "onUpdate:modelValue": r[3] ||= (e) => l("linkColor", e || void 0)
2228
2234
  }, null, 8, ["model-value"])]),
2229
2235
  _: 1
2230
2236
  }, 8, ["label"]),
2231
- E(J, { label: S(a).menu.textAlign }, {
2232
- default: k(() => [E(Y, {
2237
+ O(J, { label: w(a).menu.textAlign }, {
2238
+ default: j(() => [O(Y, {
2233
2239
  options: c.value,
2234
2240
  "model-value": t.block.textAlign,
2235
- "onUpdate:modelValue": r[4] ||= (e) => u("textAlign", e)
2241
+ "onUpdate:modelValue": r[4] ||= (e) => l("textAlign", e)
2236
2242
  }, null, 8, ["options", "model-value"])]),
2237
2243
  _: 1
2238
2244
  }, 8, ["label"]),
2239
- E(J, { label: S(a).menu.separator }, {
2240
- default: k(() => [h("input", {
2245
+ O(J, { label: w(a).menu.separator }, {
2246
+ default: j(() => [g("input", {
2241
2247
  type: "text",
2242
- class: d(S(U)),
2248
+ class: f(w(U)),
2243
2249
  value: t.block.separator,
2244
- onInput: r[5] ||= (e) => u("separator", e.target.value)
2245
- }, null, 42, ma)]),
2250
+ onInput: r[5] ||= (e) => l("separator", e.target.value)
2251
+ }, null, 42, _a)]),
2246
2252
  _: 1
2247
2253
  }, 8, ["label"]),
2248
- E(J, { label: S(a).menu.separatorColor }, {
2249
- default: k(() => [E(q, {
2254
+ O(J, { label: w(a).menu.separatorColor }, {
2255
+ default: j(() => [O(q, {
2250
2256
  "model-value": t.block.separatorColor,
2251
- "onUpdate:modelValue": r[6] ||= (e) => u("separatorColor", e)
2257
+ "onUpdate:modelValue": r[6] ||= (e) => l("separatorColor", e)
2252
2258
  }, null, 8, ["model-value"])]),
2253
2259
  _: 1
2254
2260
  }, 8, ["label"]),
2255
- E(J, { label: S(a).menu.spacing }, {
2256
- default: k(() => [E(lt, {
2261
+ O(J, { label: w(a).menu.spacing }, {
2262
+ default: j(() => [O(ft, {
2257
2263
  "model-value": t.block.spacing,
2258
2264
  min: 0,
2259
2265
  max: 50,
2260
2266
  suffix: "px",
2261
- "onUpdate:modelValue": r[7] ||= (e) => u("spacing", e)
2267
+ "onUpdate:modelValue": r[7] ||= (e) => l("spacing", e)
2262
2268
  }, null, 8, ["model-value"])]),
2263
2269
  _: 1
2264
2270
  }, 8, ["label"])
2265
2271
  ], 64));
2266
2272
  }
2267
- }), ga = { class: "tpl:mb-3.5" }, _a = ["value"], va = ["value"], ya = /* @__PURE__ */ f({
2273
+ }), ya = { class: "tpl:mb-3.5" }, ba = ["value"], xa = ["value"], Sa = /* @__PURE__ */ p({
2268
2274
  __name: "SectionToolbar",
2269
2275
  props: { block: {} },
2270
2276
  emits: ["update"],
2271
2277
  setup(t, { emit: n }) {
2272
- let r = n, { t: i } = z(), a = m(() => [
2278
+ let r = n, { t: i } = z(), a = h(() => [
2273
2279
  {
2274
2280
  value: "1",
2275
2281
  label: i.section.column1
@@ -2291,16 +2297,16 @@ var wi = {
2291
2297
  label: i.section.ratio21
2292
2298
  }
2293
2299
  ]);
2294
- return (n, s) => (e(), g("div", ga, [h("label", { class: d(S(W)) }, w(S(i).section.columns), 3), h("select", {
2295
- class: d(S(U)),
2300
+ return (n, s) => (e(), _("div", ya, [g("label", { class: f(w(W)) }, E(w(i).section.columns), 3), g("select", {
2301
+ class: f(w(U)),
2296
2302
  value: t.block.columns,
2297
2303
  onChange: s[0] ||= (e) => r("update", { columns: e.target.value })
2298
- }, [(e(!0), g(_, null, o(a.value, (t) => (e(), g("option", {
2304
+ }, [(e(!0), _(v, null, o(a.value, (t) => (e(), _("option", {
2299
2305
  key: t.value,
2300
2306
  value: t.value
2301
- }, w(t.label), 9, va))), 128))], 42, _a)]));
2307
+ }, E(t.label), 9, xa))), 128))], 42, ba)]));
2302
2308
  }
2303
- }), ba = { class: "tpl:mb-3.5" }, xa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Sa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ca = ["value", "onChange"], wa = ["value"], Ta = ["title", "onClick"], Ea = { class: "tpl:mb-3.5" }, Da = ["value"], Oa = { value: "solid" }, ka = { value: "outlined" }, Aa = { value: "rounded" }, ja = { value: "square" }, Ma = { value: "circle" }, Na = { class: "tpl:mb-3.5" }, Pa = { class: "tpl:mb-3.5" }, Fa = { class: "tpl:flex tpl:items-stretch" }, Ia = ["value"], La = { class: "tpl:mb-3.5" }, Ra = /* @__PURE__ */ f({
2309
+ }), Ca = { class: "tpl:mb-3.5" }, wa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ta = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ea = ["value", "onChange"], Da = ["value"], Oa = ["title", "onClick"], ka = { class: "tpl:mb-3.5" }, Aa = ["value"], ja = { value: "solid" }, Ma = { value: "outlined" }, Na = { value: "rounded" }, Pa = { value: "square" }, Fa = { value: "circle" }, Ia = { class: "tpl:mb-3.5" }, La = { class: "tpl:mb-3.5" }, Ra = { class: "tpl:flex tpl:items-stretch" }, za = ["value"], Ba = { class: "tpl:mb-3.5" }, Va = /* @__PURE__ */ p({
2304
2310
  __name: "SocialToolbar",
2305
2311
  props: { block: {} },
2306
2312
  emits: ["update"],
@@ -2311,109 +2317,109 @@ var wi = {
2311
2317
  }
2312
2318
  function c() {
2313
2319
  let e = {
2314
- id: M(),
2320
+ id: N(),
2315
2321
  platform: "facebook",
2316
2322
  url: ""
2317
2323
  };
2318
2324
  i("update", { icons: [...r.block.icons, e] });
2319
2325
  }
2320
- function u(e, t, n) {
2326
+ function l(e, t, n) {
2321
2327
  i("update", { icons: r.block.icons.map((r) => r.id === e ? {
2322
2328
  ...r,
2323
2329
  [t]: n
2324
2330
  } : r) });
2325
2331
  }
2326
- function f(e) {
2332
+ function d(e) {
2327
2333
  i("update", { icons: r.block.icons.filter((t) => t.id !== e) });
2328
2334
  }
2329
- return (n, r) => (e(), g(_, null, [
2330
- h("div", ba, [h("label", { class: d(S(W)) }, w(S(a).social.icons), 3), h("div", xa, [(e(!0), g(_, null, o(t.block.icons, (t) => (e(), g("div", {
2335
+ return (n, r) => (e(), _(v, null, [
2336
+ g("div", Ca, [g("label", { class: f(w(W)) }, E(w(a).social.icons), 3), g("div", wa, [(e(!0), _(v, null, o(t.block.icons, (t) => (e(), _("div", {
2331
2337
  key: t.id,
2332
2338
  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"
2333
- }, [h("div", Sa, [h("select", {
2339
+ }, [g("div", Ta, [g("select", {
2334
2340
  "data-testid": "social-platform-select",
2335
- class: d([S(U), "tpl:flex-1"]),
2341
+ class: f([w(U), "tpl:flex-1"]),
2336
2342
  value: t.platform,
2337
- onChange: (e) => u(t.id, "platform", e.target.value)
2338
- }, [(e(!0), g(_, null, o(S(be), (t) => (e(), g("option", {
2343
+ onChange: (e) => l(t.id, "platform", e.target.value)
2344
+ }, [(e(!0), _(v, null, o(w(Se), (t) => (e(), _("option", {
2339
2345
  key: t,
2340
2346
  value: t
2341
- }, w(S(_e)[t].name), 9, wa))), 128))], 42, Ca), h("button", {
2342
- class: d(S(it)),
2343
- title: S(a).social.removeIcon,
2344
- onClick: (e) => f(t.id)
2345
- }, [E(S($e), {
2347
+ }, E(w(ye)[t].name), 9, Da))), 128))], 42, Ea), g("button", {
2348
+ class: f(w(st)),
2349
+ title: w(a).social.removeIcon,
2350
+ onClick: (e) => d(t.id)
2351
+ }, [O(w(tt), {
2346
2352
  size: 14,
2347
2353
  "stroke-width": 2
2348
- })], 10, Ta)]), E(Z, {
2354
+ })], 10, Oa)]), O(Z, {
2349
2355
  "model-value": t.url,
2350
2356
  type: "url",
2351
- placeholder: S(a).social.urlPlaceholder,
2352
- "onUpdate:modelValue": (e) => u(t.id, "url", e)
2357
+ placeholder: w(a).social.urlPlaceholder,
2358
+ "onUpdate:modelValue": (e) => l(t.id, "url", e)
2353
2359
  }, null, 8, [
2354
2360
  "model-value",
2355
2361
  "placeholder",
2356
2362
  "onUpdate:modelValue"
2357
- ])]))), 128)), h("button", {
2358
- class: d(S(at)),
2363
+ ])]))), 128)), g("button", {
2364
+ class: f(w(ct)),
2359
2365
  onClick: c
2360
- }, [E(S(X), {
2366
+ }, [O(w(X), {
2361
2367
  size: 14,
2362
2368
  "stroke-width": 2
2363
- }), l(" " + w(S(a).social.addIcon), 1)], 2)])]),
2364
- h("div", Ea, [h("label", { class: d(S(W)) }, w(S(a).social.style), 3), h("select", {
2365
- class: d(S(U)),
2369
+ }), u(" " + E(w(a).social.addIcon), 1)], 2)])]),
2370
+ g("div", ka, [g("label", { class: f(w(W)) }, E(w(a).social.style), 3), g("select", {
2371
+ class: f(w(U)),
2366
2372
  value: t.block.iconStyle,
2367
2373
  onChange: r[0] ||= (e) => s("iconStyle", e.target.value)
2368
2374
  }, [
2369
- h("option", Oa, w(S(a).social.styleSolid), 1),
2370
- h("option", ka, w(S(a).social.styleOutlined), 1),
2371
- h("option", Aa, w(S(a).social.styleRounded), 1),
2372
- h("option", ja, w(S(a).social.styleSquare), 1),
2373
- h("option", Ma, w(S(a).social.styleCircle), 1)
2374
- ], 42, Da)]),
2375
- h("div", Na, [h("label", { class: d(S(W)) }, w(S(a).social.size), 3), E(Y, {
2375
+ g("option", ja, E(w(a).social.styleSolid), 1),
2376
+ g("option", Ma, E(w(a).social.styleOutlined), 1),
2377
+ g("option", Na, E(w(a).social.styleRounded), 1),
2378
+ g("option", Pa, E(w(a).social.styleSquare), 1),
2379
+ g("option", Fa, E(w(a).social.styleCircle), 1)
2380
+ ], 42, Aa)]),
2381
+ g("div", Ia, [g("label", { class: f(w(W)) }, E(w(a).social.size), 3), O(Y, {
2376
2382
  options: [
2377
2383
  {
2378
2384
  value: "small",
2379
- label: S(a).social.sizeSmall
2385
+ label: w(a).social.sizeSmall
2380
2386
  },
2381
2387
  {
2382
2388
  value: "medium",
2383
- label: S(a).social.sizeMedium
2389
+ label: w(a).social.sizeMedium
2384
2390
  },
2385
2391
  {
2386
2392
  value: "large",
2387
- label: S(a).social.sizeLarge
2393
+ label: w(a).social.sizeLarge
2388
2394
  }
2389
2395
  ],
2390
2396
  "model-value": t.block.iconSize,
2391
2397
  "onUpdate:modelValue": r[1] ||= (e) => s("iconSize", e)
2392
2398
  }, null, 8, ["options", "model-value"])]),
2393
- h("div", Pa, [h("label", { class: d(S(W)) }, w(S(a).social.spacing), 3), h("div", Fa, [h("input", {
2399
+ g("div", La, [g("label", { class: f(w(W)) }, E(w(a).social.spacing), 3), g("div", Ra, [g("input", {
2394
2400
  type: "number",
2395
- class: d(S(K)),
2401
+ class: f(w(K)),
2396
2402
  value: t.block.spacing,
2397
2403
  min: "0",
2398
2404
  max: "50",
2399
2405
  onInput: r[2] ||= (e) => s("spacing", Number(e.target.value))
2400
- }, null, 42, Ia), h("span", { class: d(S(G)) }, "px", 2)])]),
2401
- h("div", La, [h("label", { class: d(S(W)) }, w(S(a).social.align), 3), E(Y, {
2406
+ }, null, 42, za), g("span", { class: f(w(G)) }, "px", 2)])]),
2407
+ g("div", Ba, [g("label", { class: f(w(W)) }, E(w(a).social.align), 3), O(Y, {
2402
2408
  options: [
2403
2409
  {
2404
2410
  value: "left",
2405
- label: S(a).title.alignLeft,
2406
- icon: S(Ze)
2411
+ label: w(a).title.alignLeft,
2412
+ icon: w($e)
2407
2413
  },
2408
2414
  {
2409
2415
  value: "center",
2410
- label: S(a).title.alignCenter,
2411
- icon: S(Xe)
2416
+ label: w(a).title.alignCenter,
2417
+ icon: w(Qe)
2412
2418
  },
2413
2419
  {
2414
2420
  value: "right",
2415
- label: S(a).title.alignRight,
2416
- icon: S(Ye)
2421
+ label: w(a).title.alignRight,
2422
+ icon: w(Ze)
2417
2423
  }
2418
2424
  ],
2419
2425
  "model-value": t.block.align,
@@ -2421,36 +2427,36 @@ var wi = {
2421
2427
  }, null, 8, ["options", "model-value"])])
2422
2428
  ], 64));
2423
2429
  }
2424
- }), za = { class: "tpl:mb-3.5" }, Ba = { class: "tpl:flex tpl:items-stretch" }, Va = ["value"], Ha = ["value"], Ua = /* @__PURE__ */ f({
2430
+ }), Ha = { class: "tpl:mb-3.5" }, Ua = { class: "tpl:flex tpl:items-stretch" }, Wa = ["value"], Ga = ["value"], Ka = /* @__PURE__ */ p({
2425
2431
  __name: "SpacerToolbar",
2426
2432
  props: { block: {} },
2427
2433
  emits: ["update"],
2428
2434
  setup(t, { emit: n }) {
2429
2435
  let r = n, { t: i } = z();
2430
- return (n, a) => (e(), g("div", za, [
2431
- h("label", { class: d(S(W)) }, w(S(i).spacer.height), 3),
2432
- h("div", Ba, [h("input", {
2436
+ return (n, a) => (e(), _("div", Ha, [
2437
+ g("label", { class: f(w(W)) }, E(w(i).spacer.height), 3),
2438
+ g("div", Ua, [g("input", {
2433
2439
  type: "number",
2434
- class: d(S(K)),
2440
+ class: f(w(K)),
2435
2441
  value: t.block.height,
2436
2442
  min: "10",
2437
2443
  max: "100",
2438
2444
  onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
2439
- }, null, 42, Va), h("span", { class: d(S(G)) }, "px", 2)]),
2440
- h("input", {
2445
+ }, null, 42, Wa), g("span", { class: f(w(G)) }, "px", 2)]),
2446
+ g("input", {
2441
2447
  type: "range",
2442
2448
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
2443
2449
  value: t.block.height,
2444
2450
  min: "10",
2445
2451
  max: "100",
2446
2452
  onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
2447
- }, null, 40, Ha)
2453
+ }, null, 40, Ga)
2448
2454
  ]));
2449
2455
  }
2450
- }), Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ka = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, qa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ja = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ya = ["disabled"], Xa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Za = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Qa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, $a = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, eo = ["disabled"], to = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, no = { class: "tpl:mb-3.5" }, ro = { 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)]" }, io = ["checked"], ao = {
2456
+ }), qa = { class: "tpl:mb-3.5" }, Ja = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ya = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Xa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Za = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Qa = ["disabled"], $a = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, eo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, to = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, no = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ro = ["disabled"], io = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ao = { class: "tpl:mb-3.5" }, oo = { 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)]" }, so = ["checked"], co = {
2451
2457
  key: 0,
2452
2458
  class: "tpl:mb-3.5"
2453
- }, oo = { class: "tpl:mb-3.5" }, so = { class: "tpl:mb-3.5" }, co = { class: "tpl:flex tpl:items-stretch" }, lo = ["value"], uo = { class: "tpl:mb-3.5" }, fo = { class: "tpl:flex tpl:items-stretch" }, po = ["value"], mo = { class: "tpl:mb-3.5" }, ho = ["value"], go = { value: "" }, _o = ["value"], vo = { class: "tpl:mb-3.5" }, yo = { class: "tpl:flex tpl:items-stretch" }, bo = ["value"], xo = { class: "tpl:mb-3.5" }, So = { class: "tpl:mb-3.5" }, Co = /* @__PURE__ */ f({
2459
+ }, lo = { class: "tpl:mb-3.5" }, uo = { class: "tpl:mb-3.5" }, fo = { class: "tpl:flex tpl:items-stretch" }, po = ["value"], mo = { class: "tpl:mb-3.5" }, ho = { class: "tpl:flex tpl:items-stretch" }, go = ["value"], _o = { class: "tpl:mb-3.5" }, vo = ["value"], yo = { value: "" }, bo = ["value"], xo = { class: "tpl:mb-3.5" }, So = { class: "tpl:flex tpl:items-stretch" }, Co = ["value"], wo = { class: "tpl:mb-3.5" }, To = { class: "tpl:mb-3.5" }, Eo = /* @__PURE__ */ p({
2454
2460
  __name: "TableToolbar",
2455
2461
  props: {
2456
2462
  block: {},
@@ -2458,141 +2464,141 @@ var wi = {
2458
2464
  },
2459
2465
  emits: ["update"],
2460
2466
  setup(t, { emit: n }) {
2461
- let r = t, i = n, { t: a } = z(), s = m(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
2467
+ let r = t, i = n, { t: a } = z(), s = h(() => r.block.rows.length > 0 ? r.block.rows[0].cells.length : 0);
2462
2468
  function c(e, t) {
2463
2469
  i("update", { [e]: t });
2464
2470
  }
2465
- function u() {
2471
+ function l() {
2466
2472
  let e = r.block.rows.length > 0 ? r.block.rows[0].cells.length : 3, t = {
2467
- id: M(),
2473
+ id: N(),
2468
2474
  cells: Array.from({ length: e }, () => ({
2469
- id: M(),
2475
+ id: N(),
2470
2476
  content: ""
2471
2477
  }))
2472
2478
  };
2473
2479
  i("update", { rows: [...r.block.rows, t] });
2474
2480
  }
2475
- function f(e) {
2481
+ function d(e) {
2476
2482
  i("update", { rows: r.block.rows.filter((t) => t.id !== e) });
2477
2483
  }
2478
2484
  function p() {
2479
2485
  i("update", { rows: r.block.rows.map((e) => ({
2480
2486
  ...e,
2481
2487
  cells: [...e.cells, {
2482
- id: M(),
2488
+ id: N(),
2483
2489
  content: ""
2484
2490
  }]
2485
2491
  })) });
2486
2492
  }
2487
- function y(e) {
2493
+ function m(e) {
2488
2494
  i("update", { rows: r.block.rows.map((t) => ({
2489
2495
  ...t,
2490
2496
  cells: t.cells.filter((t, n) => n !== e)
2491
2497
  })) });
2492
2498
  }
2493
- return (n, r) => (e(), g(_, null, [
2494
- h("div", Wa, [h("label", { class: d(S(W)) }, w(S(a).table.dimensions), 3), h("div", Ga, [h("div", Ka, [h("span", qa, w(S(a).table.rows), 1), h("div", Ja, [
2495
- h("button", {
2499
+ return (n, r) => (e(), _(v, null, [
2500
+ g("div", qa, [g("label", { class: f(w(W)) }, E(w(a).table.dimensions), 3), g("div", Ja, [g("div", Ya, [g("span", Xa, E(w(a).table.rows), 1), g("div", Za, [
2501
+ g("button", {
2496
2502
  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",
2497
2503
  disabled: t.block.rows.length <= 1,
2498
- onClick: r[0] ||= (e) => f(t.block.rows[t.block.rows.length - 1].id)
2499
- }, [E(S(V), {
2504
+ onClick: r[0] ||= (e) => d(t.block.rows[t.block.rows.length - 1].id)
2505
+ }, [O(w(V), {
2500
2506
  size: 12,
2501
2507
  "stroke-width": 2
2502
- })], 8, Ya),
2503
- h("span", Xa, w(t.block.rows.length), 1),
2504
- h("button", {
2508
+ })], 8, Qa),
2509
+ g("span", $a, E(t.block.rows.length), 1),
2510
+ g("button", {
2505
2511
  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)]",
2506
- onClick: u
2507
- }, [E(S(X), {
2512
+ onClick: l
2513
+ }, [O(w(X), {
2508
2514
  size: 12,
2509
2515
  "stroke-width": 2
2510
2516
  })])
2511
- ])]), h("div", Za, [h("span", Qa, w(S(a).table.columns), 1), h("div", $a, [
2512
- h("button", {
2517
+ ])]), g("div", eo, [g("span", to, E(w(a).table.columns), 1), g("div", no, [
2518
+ g("button", {
2513
2519
  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",
2514
2520
  disabled: s.value <= 1,
2515
- onClick: r[1] ||= (e) => y(s.value - 1)
2516
- }, [E(S(V), {
2521
+ onClick: r[1] ||= (e) => m(s.value - 1)
2522
+ }, [O(w(V), {
2517
2523
  size: 12,
2518
2524
  "stroke-width": 2
2519
- })], 8, eo),
2520
- h("span", to, w(s.value), 1),
2521
- h("button", {
2525
+ })], 8, ro),
2526
+ g("span", io, E(s.value), 1),
2527
+ g("button", {
2522
2528
  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)]",
2523
2529
  onClick: p
2524
- }, [E(S(X), {
2530
+ }, [O(w(X), {
2525
2531
  size: 12,
2526
2532
  "stroke-width": 2
2527
2533
  })])
2528
2534
  ])])])]),
2529
- h("div", no, [h("label", ro, [h("input", {
2535
+ g("div", ao, [g("label", oo, [g("input", {
2530
2536
  type: "checkbox",
2531
2537
  checked: t.block.hasHeaderRow,
2532
2538
  class: "tpl:accent-[var(--tpl-primary)]",
2533
2539
  onChange: r[2] ||= (e) => c("hasHeaderRow", e.target.checked)
2534
- }, null, 40, io), l(" " + w(S(a).table.hasHeaderRow), 1)])]),
2535
- t.block.hasHeaderRow ? (e(), g("div", ao, [h("label", { class: d(S(W)) }, w(S(a).table.headerBackgroundColor), 3), E(q, {
2536
- "model-value": t.block.headerBackgroundColor || S("#f2f2f2"),
2537
- placeholder: S(a).table.noHeaderBg,
2540
+ }, null, 40, so), u(" " + E(w(a).table.hasHeaderRow), 1)])]),
2541
+ t.block.hasHeaderRow ? (e(), _("div", co, [g("label", { class: f(w(W)) }, E(w(a).table.headerBackgroundColor), 3), O(q, {
2542
+ "model-value": t.block.headerBackgroundColor || w("#f2f2f2"),
2543
+ placeholder: w(a).table.noHeaderBg,
2538
2544
  "onUpdate:modelValue": r[3] ||= (e) => c("headerBackgroundColor", e || null)
2539
- }, null, 8, ["model-value", "placeholder"])])) : v("", !0),
2540
- h("div", oo, [h("label", { class: d(S(W)) }, w(S(a).table.borderColor), 3), E(q, {
2545
+ }, null, 8, ["model-value", "placeholder"])])) : y("", !0),
2546
+ g("div", lo, [g("label", { class: f(w(W)) }, E(w(a).table.borderColor), 3), O(q, {
2541
2547
  "model-value": t.block.borderColor,
2542
2548
  "onUpdate:modelValue": r[4] ||= (e) => c("borderColor", e)
2543
2549
  }, null, 8, ["model-value"])]),
2544
- h("div", so, [h("label", { class: d(S(W)) }, w(S(a).table.borderWidth), 3), h("div", co, [h("input", {
2550
+ g("div", uo, [g("label", { class: f(w(W)) }, E(w(a).table.borderWidth), 3), g("div", fo, [g("input", {
2545
2551
  type: "number",
2546
- class: d(S(K)),
2552
+ class: f(w(K)),
2547
2553
  value: t.block.borderWidth,
2548
2554
  min: "0",
2549
2555
  max: "10",
2550
2556
  onInput: r[5] ||= (e) => c("borderWidth", Number(e.target.value))
2551
- }, null, 42, lo), h("span", { class: d(S(G)) }, "px", 2)])]),
2552
- h("div", uo, [h("label", { class: d(S(W)) }, w(S(a).table.cellPadding), 3), h("div", fo, [h("input", {
2557
+ }, null, 42, po), g("span", { class: f(w(G)) }, "px", 2)])]),
2558
+ g("div", mo, [g("label", { class: f(w(W)) }, E(w(a).table.cellPadding), 3), g("div", ho, [g("input", {
2553
2559
  type: "number",
2554
- class: d(S(K)),
2560
+ class: f(w(K)),
2555
2561
  value: t.block.cellPadding,
2556
2562
  min: "0",
2557
2563
  max: "30",
2558
2564
  onInput: r[6] ||= (e) => c("cellPadding", Number(e.target.value))
2559
- }, null, 42, po), h("span", { class: d(S(G)) }, "px", 2)])]),
2560
- h("div", mo, [h("label", { class: d(S(W)) }, w(S(a).table.fontFamily), 3), h("select", {
2561
- class: d(S(U)),
2565
+ }, null, 42, go), g("span", { class: f(w(G)) }, "px", 2)])]),
2566
+ g("div", _o, [g("label", { class: f(w(W)) }, E(w(a).table.fontFamily), 3), g("select", {
2567
+ class: f(w(U)),
2562
2568
  value: t.block.fontFamily || "",
2563
2569
  onChange: r[7] ||= (e) => c("fontFamily", e.target.value || void 0)
2564
- }, [h("option", go, w(S(a).title.inheritFont), 1), (e(!0), g(_, null, o(t.fontFamilies, (t) => (e(), g("option", {
2570
+ }, [g("option", yo, E(w(a).title.inheritFont), 1), (e(!0), _(v, null, o(t.fontFamilies, (t) => (e(), _("option", {
2565
2571
  key: t.value,
2566
2572
  value: t.value
2567
- }, w(t.label), 9, _o))), 128))], 42, ho)]),
2568
- h("div", vo, [h("label", { class: d(S(W)) }, w(S(a).table.fontSize), 3), h("div", yo, [h("input", {
2573
+ }, E(t.label), 9, bo))), 128))], 42, vo)]),
2574
+ g("div", xo, [g("label", { class: f(w(W)) }, E(w(a).table.fontSize), 3), g("div", So, [g("input", {
2569
2575
  type: "number",
2570
- class: d(S(K)),
2576
+ class: f(w(K)),
2571
2577
  value: t.block.fontSize,
2572
2578
  min: "10",
2573
2579
  max: "32",
2574
2580
  onInput: r[8] ||= (e) => c("fontSize", Number(e.target.value))
2575
- }, null, 42, bo), h("span", { class: d(S(G)) }, "px", 2)])]),
2576
- h("div", xo, [h("label", { class: d(S(W)) }, w(S(a).table.color), 3), E(q, {
2581
+ }, null, 42, Co), g("span", { class: f(w(G)) }, "px", 2)])]),
2582
+ g("div", wo, [g("label", { class: f(w(W)) }, E(w(a).table.color), 3), O(q, {
2577
2583
  "model-value": t.block.color,
2578
2584
  "onUpdate:modelValue": r[9] ||= (e) => c("color", e)
2579
2585
  }, null, 8, ["model-value"])]),
2580
- h("div", So, [h("label", { class: d(S(W)) }, w(S(a).table.textAlign), 3), E(Y, {
2586
+ g("div", To, [g("label", { class: f(w(W)) }, E(w(a).table.textAlign), 3), O(Y, {
2581
2587
  options: [
2582
2588
  {
2583
2589
  value: "left",
2584
- label: S(a).title.alignLeft,
2585
- icon: S(Ze)
2590
+ label: w(a).title.alignLeft,
2591
+ icon: w($e)
2586
2592
  },
2587
2593
  {
2588
2594
  value: "center",
2589
- label: S(a).title.alignCenter,
2590
- icon: S(Xe)
2595
+ label: w(a).title.alignCenter,
2596
+ icon: w(Qe)
2591
2597
  },
2592
2598
  {
2593
2599
  value: "right",
2594
- label: S(a).title.alignRight,
2595
- icon: S(Ye)
2600
+ label: w(a).title.alignRight,
2601
+ icon: w(Ze)
2596
2602
  }
2597
2603
  ],
2598
2604
  "model-value": t.block.textAlign,
@@ -2600,7 +2606,7 @@ var wi = {
2600
2606
  }, null, 8, ["options", "model-value"])])
2601
2607
  ], 64));
2602
2608
  }
2603
- }), wo = { class: "tpl:mb-3.5" }, To = ["value"], Eo = { value: 1 }, Do = { value: 2 }, Oo = { value: 3 }, ko = { value: 4 }, Ao = { class: "tpl:mb-3.5" }, jo = ["value"], Mo = { value: "" }, No = ["value"], Po = { class: "tpl:mb-3.5" }, Fo = { class: "tpl:mb-3.5" }, Io = /* @__PURE__ */ f({
2609
+ }), Do = { class: "tpl:mb-3.5" }, Oo = ["value"], ko = { value: 1 }, Ao = { value: 2 }, jo = { value: 3 }, Mo = { value: 4 }, No = { class: "tpl:mb-3.5" }, Po = ["value"], Fo = { value: "" }, Io = ["value"], Lo = { class: "tpl:mb-3.5" }, Ro = { class: "tpl:mb-3.5" }, zo = /* @__PURE__ */ p({
2604
2610
  __name: "TitleToolbar",
2605
2611
  props: {
2606
2612
  block: {},
@@ -2612,45 +2618,45 @@ var wi = {
2612
2618
  function a(e, t) {
2613
2619
  r("update", { [e]: t });
2614
2620
  }
2615
- return (n, r) => (e(), g(_, null, [
2616
- h("div", wo, [h("label", { class: d(S(W)) }, w(S(i).title.level), 3), h("select", {
2617
- class: d(S(U)),
2621
+ return (n, r) => (e(), _(v, null, [
2622
+ g("div", Do, [g("label", { class: f(w(W)) }, E(w(i).title.level), 3), g("select", {
2623
+ class: f(w(U)),
2618
2624
  value: t.block.level,
2619
2625
  onChange: r[0] ||= (e) => a("level", Number(e.target.value))
2620
2626
  }, [
2621
- h("option", Eo, w(S(i).title.heading1), 1),
2622
- h("option", Do, w(S(i).title.heading2), 1),
2623
- h("option", Oo, w(S(i).title.heading3), 1),
2624
- h("option", ko, w(S(i).title.heading4), 1)
2625
- ], 42, To)]),
2626
- h("div", Ao, [h("label", { class: d(S(W)) }, w(S(i).title.fontFamily), 3), h("select", {
2627
- class: d(S(U)),
2627
+ g("option", ko, E(w(i).title.heading1), 1),
2628
+ g("option", Ao, E(w(i).title.heading2), 1),
2629
+ g("option", jo, E(w(i).title.heading3), 1),
2630
+ g("option", Mo, E(w(i).title.heading4), 1)
2631
+ ], 42, Oo)]),
2632
+ g("div", No, [g("label", { class: f(w(W)) }, E(w(i).title.fontFamily), 3), g("select", {
2633
+ class: f(w(U)),
2628
2634
  value: t.block.fontFamily || "",
2629
2635
  onChange: r[1] ||= (e) => a("fontFamily", e.target.value || void 0)
2630
- }, [h("option", Mo, w(S(i).title.inheritFont), 1), (e(!0), g(_, null, o(t.fontFamilies, (t) => (e(), g("option", {
2636
+ }, [g("option", Fo, E(w(i).title.inheritFont), 1), (e(!0), _(v, null, o(t.fontFamilies, (t) => (e(), _("option", {
2631
2637
  key: t.value,
2632
2638
  value: t.value
2633
- }, w(t.label), 9, No))), 128))], 42, jo)]),
2634
- h("div", Po, [h("label", { class: d(S(W)) }, w(S(i).title.color), 3), E(q, {
2639
+ }, E(t.label), 9, Io))), 128))], 42, Po)]),
2640
+ g("div", Lo, [g("label", { class: f(w(W)) }, E(w(i).title.color), 3), O(q, {
2635
2641
  "model-value": t.block.color,
2636
2642
  "onUpdate:modelValue": r[2] ||= (e) => a("color", e)
2637
2643
  }, null, 8, ["model-value"])]),
2638
- h("div", Fo, [h("label", { class: d(S(W)) }, w(S(i).title.align), 3), E(Y, {
2644
+ g("div", Ro, [g("label", { class: f(w(W)) }, E(w(i).title.align), 3), O(Y, {
2639
2645
  options: [
2640
2646
  {
2641
2647
  value: "left",
2642
- label: S(i).title.alignLeft,
2643
- icon: S(Ze)
2648
+ label: w(i).title.alignLeft,
2649
+ icon: w($e)
2644
2650
  },
2645
2651
  {
2646
2652
  value: "center",
2647
- label: S(i).title.alignCenter,
2648
- icon: S(Xe)
2653
+ label: w(i).title.alignCenter,
2654
+ icon: w(Qe)
2649
2655
  },
2650
2656
  {
2651
2657
  value: "right",
2652
- label: S(i).title.alignRight,
2653
- icon: S(Ye)
2658
+ label: w(i).title.alignRight,
2659
+ icon: w(Ze)
2654
2660
  }
2655
2661
  ],
2656
2662
  "model-value": t.block.textAlign,
@@ -2658,69 +2664,69 @@ var wi = {
2658
2664
  }, null, 8, ["options", "model-value"])])
2659
2665
  ], 64));
2660
2666
  }
2661
- }), Lo = { class: "tpl:mb-3.5" }, Ro = {
2667
+ }), Bo = { class: "tpl:mb-3.5" }, Vo = {
2662
2668
  key: 0,
2663
2669
  class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
2664
- }, zo = ["checked"], Bo = {
2670
+ }, Ho = ["checked"], Uo = {
2665
2671
  key: 0,
2666
2672
  class: "tpl:mb-3.5"
2667
- }, Vo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ho = [
2673
+ }, Wo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Go = [
2668
2674
  "value",
2669
2675
  "placeholder",
2670
2676
  "title"
2671
- ], Uo = { class: "tpl:mb-3.5" }, Wo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Go = { class: "tpl:mb-3.5" }, Ko = { class: "tpl:mb-3.5" }, qo = ["value"], Jo = { value: "full" }, Yo = { class: "tpl:mb-3.5" }, Xo = /* @__PURE__ */ f({
2677
+ ], Ko = { class: "tpl:mb-3.5" }, qo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Jo = { class: "tpl:mb-3.5" }, Yo = { class: "tpl:mb-3.5" }, Xo = ["value"], Zo = { value: "full" }, Qo = { class: "tpl:mb-3.5" }, $o = /* @__PURE__ */ p({
2672
2678
  __name: "VideoToolbar",
2673
2679
  props: { block: {} },
2674
2680
  emits: ["update"],
2675
2681
  setup(t, { emit: n }) {
2676
- let r = t, i = n, { t: a } = z(), o = D(Ee, null), s = D(Le, P.liquid), u = m(() => !!o), f = m(() => te(r.block.url, s)), p = c(!1), { start: y } = we(() => {
2677
- p.value = !1;
2682
+ let r = t, i = n, { t: a } = z(), o = k(Oe, null), s = k(ze, ne.liquid), c = it(), d = h(() => !!o), p = h(() => P(r.block.url, s)), m = l(!1), { start: b } = Ee(() => {
2683
+ m.value = !1;
2678
2684
  }, 1e3, { immediate: !1 });
2679
- function b(e, t) {
2685
+ function x(e, t) {
2680
2686
  i("update", { [e]: t });
2681
2687
  }
2682
- async function x() {
2688
+ async function S() {
2683
2689
  let e = await o?.({ accept: ["images"] });
2684
- e && (b("thumbnailUrl", e.url), p.value = !0, y());
2690
+ c.alive && e && (x("thumbnailUrl", e.url), m.value = !0, b());
2685
2691
  }
2686
- return (n, r) => (e(), g(_, null, [
2687
- h("div", Lo, [
2688
- h("label", { class: d(S(W)) }, w(S(a).video.videoUrl), 3),
2689
- E(Z, {
2692
+ return (n, r) => (e(), _(v, null, [
2693
+ g("div", Bo, [
2694
+ g("label", { class: f(w(W)) }, E(w(a).video.videoUrl), 3),
2695
+ O(Z, {
2690
2696
  "model-value": t.block.url,
2691
2697
  type: "url",
2692
- placeholder: S(a).video.videoUrlPlaceholder,
2693
- "onUpdate:modelValue": r[0] ||= (e) => b("url", e)
2698
+ placeholder: w(a).video.videoUrlPlaceholder,
2699
+ "onUpdate:modelValue": r[0] ||= (e) => x("url", e)
2694
2700
  }, null, 8, ["model-value", "placeholder"]),
2695
- t.block.url ? (e(), g("label", Ro, [h("input", {
2701
+ t.block.url ? (e(), _("label", Vo, [g("input", {
2696
2702
  type: "checkbox",
2697
2703
  class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2698
2704
  checked: t.block.openInNewTab ?? !1,
2699
- onChange: r[1] ||= (e) => b("openInNewTab", e.target.checked)
2700
- }, null, 40, zo), l(" " + w(S(a).video.openInNewTab), 1)])) : v("", !0)
2705
+ onChange: r[1] ||= (e) => x("openInNewTab", e.target.checked)
2706
+ }, null, 40, Ho), u(" " + E(w(a).video.openInNewTab), 1)])) : y("", !0)
2701
2707
  ]),
2702
- f.value ? (e(), g("div", Bo, [h("label", { class: d(S(W)) }, [l(w(S(a).video.placeholderUrl) + " ", 1), h("span", Vo, w(S(a).video.optional), 1)], 2), h("input", {
2708
+ p.value ? (e(), _("div", Uo, [g("label", { class: f(w(W)) }, [u(E(w(a).video.placeholderUrl) + " ", 1), g("span", Wo, E(w(a).video.optional), 1)], 2), g("input", {
2703
2709
  type: "url",
2704
- class: d(S(U)),
2710
+ class: f(w(U)),
2705
2711
  value: t.block.placeholderUrl || "",
2706
- placeholder: S(a).video.placeholderUrlPlaceholder,
2707
- title: S(a).video.placeholderUrlTooltip,
2708
- onInput: r[2] ||= (e) => b("placeholderUrl", e.target.value)
2709
- }, null, 42, Ho)])) : v("", !0),
2710
- h("div", Uo, [
2711
- h("label", { class: d(S(W)) }, [l(w(S(a).video.customThumbnail) + " ", 1), h("span", Wo, w(S(a).video.optional), 1)], 2),
2712
- E(Z, {
2712
+ placeholder: w(a).video.placeholderUrlPlaceholder,
2713
+ title: w(a).video.placeholderUrlTooltip,
2714
+ onInput: r[2] ||= (e) => x("placeholderUrl", e.target.value)
2715
+ }, null, 42, Go)])) : y("", !0),
2716
+ g("div", Ko, [
2717
+ g("label", { class: f(w(W)) }, [u(E(w(a).video.customThumbnail) + " ", 1), g("span", qo, E(w(a).video.optional), 1)], 2),
2718
+ O(Z, {
2713
2719
  "model-value": t.block.thumbnailUrl,
2714
2720
  type: "url",
2715
- placeholder: S(a).video.thumbnailPlaceholder,
2716
- pulse: p.value,
2717
- "onUpdate:modelValue": r[3] ||= (e) => b("thumbnailUrl", e)
2721
+ placeholder: w(a).video.thumbnailPlaceholder,
2722
+ pulse: m.value,
2723
+ "onUpdate:modelValue": r[3] ||= (e) => x("thumbnailUrl", e)
2718
2724
  }, null, 8, [
2719
2725
  "model-value",
2720
2726
  "placeholder",
2721
2727
  "pulse"
2722
2728
  ]),
2723
- u.value ? (e(), g("button", {
2729
+ d.value ? (e(), _("button", {
2724
2730
  key: 0,
2725
2731
  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",
2726
2732
  style: {
@@ -2728,49 +2734,49 @@ var wi = {
2728
2734
  color: "var(--tpl-primary)",
2729
2735
  "background-color": "var(--tpl-bg)"
2730
2736
  },
2731
- onClick: x
2732
- }, [E(S(R), {
2737
+ onClick: S
2738
+ }, [O(w(he), {
2733
2739
  size: 14,
2734
2740
  "stroke-width": 1.5
2735
- }), l(" " + w(S(a).image.browseMedia), 1)])) : v("", !0)
2741
+ }), u(" " + E(w(a).image.browseMedia), 1)])) : y("", !0)
2736
2742
  ]),
2737
- h("div", Go, [h("label", { class: d(S(W)) }, w(S(a).video.altText), 3), E(Z, {
2743
+ g("div", Jo, [g("label", { class: f(w(W)) }, E(w(a).video.altText), 3), O(Z, {
2738
2744
  "model-value": t.block.alt,
2739
2745
  type: "text",
2740
- placeholder: S(a).video.altTextPlaceholder,
2741
- "onUpdate:modelValue": r[4] ||= (e) => b("alt", e)
2746
+ placeholder: w(a).video.altTextPlaceholder,
2747
+ "onUpdate:modelValue": r[4] ||= (e) => x("alt", e)
2742
2748
  }, null, 8, ["model-value", "placeholder"])]),
2743
- h("div", Ko, [h("label", { class: d(S(W)) }, w(S(a).video.width), 3), h("select", {
2744
- class: d(S(U)),
2749
+ g("div", Yo, [g("label", { class: f(w(W)) }, E(w(a).video.width), 3), g("select", {
2750
+ class: f(w(U)),
2745
2751
  value: t.block.width,
2746
- onChange: r[5] ||= (e) => b("width", e.target.value === "full" ? "full" : Number(e.target.value))
2752
+ onChange: r[5] ||= (e) => x("width", e.target.value === "full" ? "full" : Number(e.target.value))
2747
2753
  }, [
2748
- h("option", Jo, w(S(a).video.fullWidth), 1),
2749
- r[7] ||= h("option", { value: "300" }, "300px", -1),
2750
- r[8] ||= h("option", { value: "400" }, "400px", -1),
2751
- r[9] ||= h("option", { value: "500" }, "500px", -1)
2752
- ], 42, qo)]),
2753
- h("div", Yo, [h("label", { class: d(S(W)) }, w(S(a).title.align), 3), E(Y, {
2754
+ g("option", Zo, E(w(a).video.fullWidth), 1),
2755
+ r[7] ||= g("option", { value: "300" }, "300px", -1),
2756
+ r[8] ||= g("option", { value: "400" }, "400px", -1),
2757
+ r[9] ||= g("option", { value: "500" }, "500px", -1)
2758
+ ], 42, Xo)]),
2759
+ g("div", Qo, [g("label", { class: f(w(W)) }, E(w(a).title.align), 3), O(Y, {
2754
2760
  options: [
2755
2761
  {
2756
2762
  value: "left",
2757
- label: S(a).title.alignLeft
2763
+ label: w(a).title.alignLeft
2758
2764
  },
2759
2765
  {
2760
2766
  value: "center",
2761
- label: S(a).title.alignCenter
2767
+ label: w(a).title.alignCenter
2762
2768
  },
2763
2769
  {
2764
2770
  value: "right",
2765
- label: S(a).title.alignRight
2771
+ label: w(a).title.alignRight
2766
2772
  }
2767
2773
  ],
2768
2774
  "model-value": t.block.align,
2769
- "onUpdate:modelValue": r[6] ||= (e) => b("align", e)
2775
+ "onUpdate:modelValue": r[6] ||= (e) => x("align", e)
2770
2776
  }, null, 8, ["options", "model-value"])])
2771
2777
  ], 64));
2772
2778
  }
2773
- }), Zo = ["aria-label"], Qo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, $o = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, es = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ts = { class: "tpl:flex tpl:gap-1" }, ns = ["title"], rs = ["title"], is = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, as = /* @__PURE__ */ H(/* @__PURE__ */ f({
2779
+ }), es = ["aria-label"], ts = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, ns = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, rs = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, is = { class: "tpl:flex tpl:gap-1" }, as = ["title"], os = ["title"], ss = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, cs = /* @__PURE__ */ H(/* @__PURE__ */ p({
2774
2780
  __name: "Toolbar",
2775
2781
  props: { block: {} },
2776
2782
  emits: [
@@ -2779,141 +2785,141 @@ var wi = {
2779
2785
  "duplicate"
2780
2786
  ],
2781
2787
  setup(t, { emit: n }) {
2782
- let i = O(() => import("./CountdownToolbar-CojjlZet.js")), a = t, o = n, { t: s } = z(), c = Te(Ae, "Toolbar"), l = D(ke, []), u = m(() => a.block.type), d = m(() => ee(a.block)), f = m(() => {
2788
+ let i = A(() => import("./CountdownToolbar-Bn4RwJVN.js")), a = t, o = n, { t: s } = z(), c = De(Me, "Toolbar"), l = k(je, []), u = h(() => a.block.type), d = h(() => te(a.block)), f = h(() => {
2783
2789
  if (d.value) return l.find((e) => e.type === a.block.customType);
2784
- }), p = m(() => d.value ? f.value?.name ?? a.block.customType : I(u.value, s)), y = c.fonts;
2790
+ }), p = h(() => d.value ? f.value?.name ?? a.block.customType : re(u.value, s)), m = c.fonts;
2785
2791
  function b(e) {
2786
2792
  o("update", e);
2787
2793
  }
2788
- return (n, a) => (e(), g("aside", {
2789
- "aria-label": S(s).landmarks.blockToolbar,
2794
+ return (n, a) => (e(), _("aside", {
2795
+ "aria-label": w(s).landmarks.blockToolbar,
2790
2796
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
2791
- }, [h("div", Qo, [h("div", $o, [S(He)[u.value] ? (e(), x(r(S(He)[u.value]), {
2797
+ }, [g("div", ts, [g("div", ns, [w(We)[u.value] ? (e(), S(r(w(We)[u.value]), {
2792
2798
  key: 0,
2793
2799
  size: 16,
2794
2800
  "stroke-width": 1.5
2795
- })) : d.value ? (e(), x(S(re), {
2801
+ })) : d.value ? (e(), S(w(ae), {
2796
2802
  key: 1,
2797
2803
  size: 16,
2798
2804
  "stroke-width": 1.5
2799
- })) : v("", !0), h("h3", es, w(p.value), 1)]), h("div", ts, [h("button", {
2805
+ })) : y("", !0), g("h3", rs, E(p.value), 1)]), g("div", is, [g("button", {
2800
2806
  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)]",
2801
- title: S(s).toolbar.duplicate,
2807
+ title: w(s).toolbar.duplicate,
2802
2808
  onClick: a[0] ||= (e) => o("duplicate")
2803
- }, [E(S(pe), {
2809
+ }, [O(w(me), {
2804
2810
  size: 14,
2805
2811
  "stroke-width": 2
2806
- })], 8, ns), h("button", {
2812
+ })], 8, as), g("button", {
2807
2813
  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)]",
2808
- title: S(s).toolbar.delete,
2814
+ title: w(s).toolbar.delete,
2809
2815
  onClick: a[1] ||= (e) => o("delete")
2810
- }, [E(S(Qe), {
2816
+ }, [O(w(et), {
2811
2817
  size: 14,
2812
2818
  "stroke-width": 2
2813
- })], 8, rs)])]), h("div", is, [d.value ? (e(), x(Mi, {
2819
+ })], 8, os)])]), g("div", ss, [d.value ? (e(), S(Fi, {
2814
2820
  key: 0,
2815
2821
  block: t.block,
2816
2822
  onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
2817
2823
  onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
2818
- }, null, 8, ["block"])) : u.value === "section" ? (e(), x(ya, {
2824
+ }, null, 8, ["block"])) : u.value === "section" ? (e(), S(Sa, {
2819
2825
  key: 1,
2820
2826
  block: t.block,
2821
2827
  onUpdate: b
2822
- }, null, 8, ["block"])) : u.value === "title" ? (e(), x(Io, {
2828
+ }, null, 8, ["block"])) : u.value === "title" ? (e(), S(zo, {
2823
2829
  key: 2,
2824
2830
  block: t.block,
2825
- "font-families": S(y),
2831
+ "font-families": w(m),
2826
2832
  onUpdate: b
2827
- }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (e(), g(_, { key: 3 }, [], 64)) : u.value === "image" ? (e(), x(ra, {
2833
+ }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (e(), _(v, { key: 3 }, [], 64)) : u.value === "image" ? (e(), S(oa, {
2828
2834
  key: 4,
2829
2835
  block: t.block,
2830
2836
  onUpdate: b
2831
- }, null, 8, ["block"])) : u.value === "video" ? (e(), x(Xo, {
2837
+ }, null, 8, ["block"])) : u.value === "video" ? (e(), S($o, {
2832
2838
  key: 5,
2833
2839
  block: t.block,
2834
2840
  onUpdate: b
2835
- }, null, 8, ["block"])) : u.value === "button" ? (e(), x(rr, {
2841
+ }, null, 8, ["block"])) : u.value === "button" ? (e(), S(or, {
2836
2842
  key: 6,
2837
2843
  block: t.block,
2838
- "font-families": S(y),
2844
+ "font-families": w(m),
2839
2845
  onUpdate: b
2840
- }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (e(), x(Ri, {
2846
+ }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (e(), S(Vi, {
2841
2847
  key: 7,
2842
2848
  block: t.block,
2843
2849
  onUpdate: b
2844
- }, null, 8, ["block"])) : u.value === "social" ? (e(), x(Ra, {
2850
+ }, null, 8, ["block"])) : u.value === "social" ? (e(), S(Va, {
2845
2851
  key: 8,
2846
2852
  block: t.block,
2847
2853
  onUpdate: b
2848
- }, null, 8, ["block"])) : u.value === "menu" ? (e(), x(ha, {
2854
+ }, null, 8, ["block"])) : u.value === "menu" ? (e(), S(va, {
2849
2855
  key: 9,
2850
2856
  block: t.block,
2851
- "font-families": S(y),
2857
+ "font-families": w(m),
2852
2858
  onUpdate: b
2853
- }, null, 8, ["block", "font-families"])) : u.value === "table" ? (e(), x(Co, {
2859
+ }, null, 8, ["block", "font-families"])) : u.value === "table" ? (e(), S(Eo, {
2854
2860
  key: 10,
2855
2861
  block: t.block,
2856
- "font-families": S(y),
2862
+ "font-families": w(m),
2857
2863
  onUpdate: b
2858
- }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (e(), x(Ua, {
2864
+ }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (e(), S(Ka, {
2859
2865
  key: 11,
2860
2866
  block: t.block,
2861
2867
  onUpdate: b
2862
- }, null, 8, ["block"])) : u.value === "html" ? (e(), x(Hi, {
2868
+ }, null, 8, ["block"])) : u.value === "html" ? (e(), S(Gi, {
2863
2869
  key: 12,
2864
2870
  block: t.block,
2865
2871
  onUpdate: b
2866
- }, null, 8, ["block"])) : u.value === "countdown" ? (e(), x(S(i), {
2872
+ }, null, 8, ["block"])) : u.value === "countdown" ? (e(), S(w(i), {
2867
2873
  key: 13,
2868
2874
  block: t.block,
2869
- "font-families": S(y),
2875
+ "font-families": w(m),
2870
2876
  onUpdate: b
2871
- }, null, 8, ["block", "font-families"])) : v("", !0), E(Yr, {
2877
+ }, null, 8, ["block", "font-families"])) : y("", !0), O(Qr, {
2872
2878
  block: t.block,
2873
2879
  "is-first-section": u.value === "paragraph",
2874
2880
  onUpdate: b
2875
- }, null, 8, ["block", "is-first-section"])])], 8, Zo));
2881
+ }, null, 8, ["block", "is-first-section"])])], 8, es));
2876
2882
  }
2877
- }), [["__scopeId", "data-v-2ac88283"]]), os = ["aria-label"], ss = {
2883
+ }), [["__scopeId", "data-v-2ac88283"]]), ls = ["aria-label"], us = {
2878
2884
  role: "tablist",
2879
2885
  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"
2880
- }, cs = [
2886
+ }, ds = [
2881
2887
  "aria-selected",
2882
2888
  "aria-label",
2883
2889
  "title"
2884
- ], ls = { key: 0 }, us = [
2890
+ ], fs = { key: 0 }, ps = [
2885
2891
  "aria-selected",
2886
2892
  "aria-label",
2887
2893
  "title"
2888
- ], ds = { key: 0 }, fs = [
2894
+ ], ms = { key: 0 }, hs = [
2889
2895
  "aria-selected",
2890
2896
  "aria-label",
2891
2897
  "title"
2892
- ], ps = { key: 0 }, ms = {
2898
+ ], gs = { key: 0 }, _s = {
2893
2899
  key: 1,
2894
2900
  class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
2895
- }, hs = {
2901
+ }, vs = {
2896
2902
  key: 0,
2897
2903
  id: "tpl-tabpanel-content",
2898
2904
  role: "tabpanel",
2899
2905
  "aria-labelledby": "tpl-tab-content",
2900
2906
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2901
- }, gs = {
2907
+ }, ys = {
2902
2908
  key: 1,
2903
2909
  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)]"
2904
- }, _s = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, vs = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ys = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, bs = {
2910
+ }, bs = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, xs = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ss = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Cs = {
2905
2911
  key: 1,
2906
2912
  id: "tpl-tabpanel-settings",
2907
2913
  role: "tabpanel",
2908
2914
  "aria-labelledby": "tpl-tab-settings",
2909
2915
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2910
- }, xs = {
2916
+ }, ws = {
2911
2917
  key: 2,
2912
2918
  id: "tpl-tabpanel-accessibility",
2913
2919
  role: "tabpanel",
2914
2920
  "aria-labelledby": "tpl-tab-accessibility",
2915
2921
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2916
- }, Ss = /* @__PURE__ */ f({
2922
+ }, Ts = /* @__PURE__ */ p({
2917
2923
  __name: "RightSidebar",
2918
2924
  props: {
2919
2925
  selectedBlock: {},
@@ -2927,103 +2933,103 @@ var wi = {
2927
2933
  "update-settings"
2928
2934
  ],
2929
2935
  setup(t, { emit: n }) {
2930
- let r = O(() => import("./AccessibilityPanel-D-PqmHdH.js")), i = t, o = n, { t: s } = z(), l = c("content"), u = D(Ie, null), f = m(() => u !== null), p = m(() => u?.issues.value.length ?? 0);
2931
- function _(e) {
2932
- return l.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)]";
2936
+ let r = A(() => import("./AccessibilityPanel-BeUibrUb.js")), i = t, o = n, { t: s } = z(), c = l("content"), u = k(Re, null), d = h(() => u !== null), p = h(() => u?.issues.value.length ?? 0);
2937
+ function m(e) {
2938
+ return c.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
2933
2939
  }
2934
- function y(e) {
2935
- return l.value === e ? {
2940
+ function v(e) {
2941
+ return c.value === e ? {
2936
2942
  backgroundColor: "var(--tpl-bg)",
2937
2943
  boxShadow: "var(--tpl-shadow-md)"
2938
2944
  } : { backgroundColor: "transparent" };
2939
2945
  }
2940
2946
  return a(() => i.selectedBlock, (e) => {
2941
- e && (l.value = "content");
2942
- }), (n, i) => (e(), g("aside", {
2943
- "aria-label": S(s).landmarks.rightSidebar,
2944
- class: d(["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)]", t.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
2947
+ e && (c.value = "content");
2948
+ }), (n, i) => (e(), _("aside", {
2949
+ "aria-label": w(s).landmarks.rightSidebar,
2950
+ class: f(["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)]", t.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
2945
2951
  }, [
2946
- h("div", ss, [
2947
- h("button", {
2952
+ g("div", us, [
2953
+ g("button", {
2948
2954
  id: "tpl-tab-content",
2949
2955
  role: "tab",
2950
- "aria-selected": l.value === "content",
2956
+ "aria-selected": c.value === "content",
2951
2957
  "aria-controls": "tpl-tabpanel-content",
2952
- "aria-label": S(s).sidebar.content,
2953
- title: S(s).sidebar.content,
2954
- class: d(["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)]", _("content")]),
2955
- style: b(y("content")),
2956
- onClick: i[0] ||= (e) => l.value = "content"
2957
- }, [E(S(_t), {
2958
+ "aria-label": w(s).sidebar.content,
2959
+ title: w(s).sidebar.content,
2960
+ class: f(["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)]", m("content")]),
2961
+ style: x(v("content")),
2962
+ onClick: i[0] ||= (e) => c.value = "content"
2963
+ }, [O(w(bt), {
2958
2964
  size: 14,
2959
2965
  "stroke-width": 2
2960
- }), l.value === "content" ? (e(), g("span", ls, w(S(s).sidebar.content), 1)) : v("", !0)], 14, cs),
2961
- h("button", {
2966
+ }), c.value === "content" ? (e(), _("span", fs, E(w(s).sidebar.content), 1)) : y("", !0)], 14, ds),
2967
+ g("button", {
2962
2968
  id: "tpl-tab-settings",
2963
2969
  role: "tab",
2964
- "aria-selected": l.value === "settings",
2970
+ "aria-selected": c.value === "settings",
2965
2971
  "aria-controls": "tpl-tabpanel-settings",
2966
- "aria-label": S(s).sidebar.settings,
2967
- title: S(s).sidebar.settings,
2968
- class: d(["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)]", _("settings")]),
2969
- style: b(y("settings")),
2970
- onClick: i[1] ||= (e) => l.value = "settings"
2971
- }, [E(S(yt), {
2972
+ "aria-label": w(s).sidebar.settings,
2973
+ title: w(s).sidebar.settings,
2974
+ class: f(["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)]", m("settings")]),
2975
+ style: x(v("settings")),
2976
+ onClick: i[1] ||= (e) => c.value = "settings"
2977
+ }, [O(w(St), {
2972
2978
  size: 14,
2973
2979
  "stroke-width": 1.5
2974
- }), l.value === "settings" ? (e(), g("span", ds, w(S(s).sidebar.settings), 1)) : v("", !0)], 14, us),
2975
- f.value ? (e(), g("button", {
2980
+ }), c.value === "settings" ? (e(), _("span", ms, E(w(s).sidebar.settings), 1)) : y("", !0)], 14, ps),
2981
+ d.value ? (e(), _("button", {
2976
2982
  key: 0,
2977
2983
  id: "tpl-tab-accessibility",
2978
2984
  role: "tab",
2979
- "aria-selected": l.value === "accessibility",
2985
+ "aria-selected": c.value === "accessibility",
2980
2986
  "aria-controls": "tpl-tabpanel-accessibility",
2981
- "aria-label": S(s).accessibility.panelTabLabel,
2982
- title: S(s).accessibility.panelTabLabel,
2983
- class: d(["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)]", _("accessibility")]),
2984
- style: b(y("accessibility")),
2985
- onClick: i[2] ||= (e) => l.value = "accessibility"
2987
+ "aria-label": w(s).accessibility.panelTabLabel,
2988
+ title: w(s).accessibility.panelTabLabel,
2989
+ class: f(["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)]", m("accessibility")]),
2990
+ style: x(v("accessibility")),
2991
+ onClick: i[2] ||= (e) => c.value = "accessibility"
2986
2992
  }, [
2987
- E(S(Re), {
2993
+ O(w(Be), {
2988
2994
  size: 14,
2989
2995
  "stroke-width": 1.5
2990
2996
  }),
2991
- l.value === "accessibility" ? (e(), g("span", ps, w(S(s).accessibility.panelTabLabel), 1)) : v("", !0),
2992
- p.value > 0 ? (e(), g("span", ms, w(p.value), 1)) : v("", !0)
2993
- ], 14, fs)) : v("", !0)
2997
+ c.value === "accessibility" ? (e(), _("span", gs, E(w(s).accessibility.panelTabLabel), 1)) : y("", !0),
2998
+ p.value > 0 ? (e(), _("span", _s, E(p.value), 1)) : y("", !0)
2999
+ ], 14, hs)) : y("", !0)
2994
3000
  ]),
2995
- l.value === "content" ? (e(), g("div", hs, [t.selectedBlock ? (e(), x(as, {
3001
+ c.value === "content" ? (e(), _("div", vs, [t.selectedBlock ? (e(), S(cs, {
2996
3002
  key: 0,
2997
3003
  block: t.selectedBlock,
2998
3004
  onUpdate: i[3] ||= (e) => o("update-block", e),
2999
3005
  onDelete: i[4] ||= (e) => o("delete-block"),
3000
3006
  onDuplicate: i[5] ||= (e) => o("duplicate-block")
3001
- }, null, 8, ["block"])) : (e(), g("div", gs, [
3002
- h("div", _s, [E(S(ft), {
3007
+ }, null, 8, ["block"])) : (e(), _("div", ys, [
3008
+ g("div", bs, [O(w(ht), {
3003
3009
  size: 40,
3004
3010
  "stroke-width": 1.5
3005
3011
  })]),
3006
- h("h3", vs, w(S(s).sidebar.noSelection), 1),
3007
- h("p", ys, w(S(s).sidebar.noSelectionHint), 1)
3008
- ]))])) : v("", !0),
3009
- l.value === "settings" ? (e(), g("div", bs, [E(Pn, {
3012
+ g("h3", xs, E(w(s).sidebar.noSelection), 1),
3013
+ g("p", Ss, E(w(s).sidebar.noSelectionHint), 1)
3014
+ ]))])) : y("", !0),
3015
+ c.value === "settings" ? (e(), _("div", Cs, [O(Ln, {
3010
3016
  settings: t.settings,
3011
3017
  onUpdate: i[6] ||= (e) => o("update-settings", e)
3012
- }, null, 8, ["settings"])])) : v("", !0),
3013
- l.value === "accessibility" && f.value ? (e(), g("div", xs, [E(S(r))])) : v("", !0)
3014
- ], 10, os));
3018
+ }, null, 8, ["settings"])])) : y("", !0),
3019
+ c.value === "accessibility" && d.value ? (e(), _("div", ws, [O(w(r))])) : y("", !0)
3020
+ ], 10, ls));
3015
3021
  }
3016
- }), Cs = ["aria-label"], ws = [
3022
+ }), Es = ["aria-label"], Ds = [
3017
3023
  "aria-checked",
3018
3024
  "aria-label",
3019
3025
  "title",
3020
3026
  "onClick"
3021
- ], Ts = /* @__PURE__ */ f({
3027
+ ], Os = /* @__PURE__ */ p({
3022
3028
  __name: "ViewportToggle",
3023
3029
  props: { viewport: {} },
3024
3030
  emits: ["change"],
3025
3031
  setup(t, { emit: n }) {
3026
- let r = t, i = n, { t: a } = z(), s = m(() => [
3032
+ let r = t, i = n, { t: a } = z(), s = h(() => [
3027
3033
  {
3028
3034
  value: "desktop",
3029
3035
  label: a.viewport.desktop
@@ -3036,18 +3042,18 @@ var wi = {
3036
3042
  value: "mobile",
3037
3043
  label: a.viewport.mobile
3038
3044
  }
3039
- ]), c = m(() => `translateX(${s.value.findIndex((e) => e.value === r.viewport) * 100}%)`);
3040
- return (n, r) => (e(), g("div", {
3045
+ ]), c = h(() => `translateX(${s.value.findIndex((e) => e.value === r.viewport) * 100}%)`);
3046
+ return (n, r) => (e(), _("div", {
3041
3047
  role: "radiogroup",
3042
- "aria-label": S(a).viewport.label,
3048
+ "aria-label": w(a).viewport.label,
3043
3049
  class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
3044
- style: b({
3050
+ style: x({
3045
3051
  gridTemplateColumns: `repeat(${s.value.length}, 1fr)`,
3046
3052
  backgroundColor: "var(--tpl-bg-hover)"
3047
3053
  })
3048
- }, [h("div", {
3054
+ }, [g("div", {
3049
3055
  class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
3050
- style: b({
3056
+ style: x({
3051
3057
  left: "4px",
3052
3058
  width: `calc((100% - 8px) / ${s.value.length})`,
3053
3059
  transform: c.value,
@@ -3055,146 +3061,146 @@ var wi = {
3055
3061
  boxShadow: "var(--tpl-shadow)",
3056
3062
  transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
3057
3063
  })
3058
- }, null, 4), (e(!0), g(_, null, o(s.value, (n) => (e(), g("button", {
3064
+ }, null, 4), (e(!0), _(v, null, o(s.value, (n) => (e(), _("button", {
3059
3065
  key: n.value,
3060
3066
  role: "radio",
3061
3067
  "aria-checked": t.viewport === n.value,
3062
3068
  "aria-label": n.label,
3063
3069
  class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium",
3064
- style: b({
3070
+ style: x({
3065
3071
  color: t.viewport === n.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
3066
3072
  transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
3067
3073
  }),
3068
3074
  title: n.label,
3069
3075
  onClick: (e) => i("change", n.value)
3070
- }, [n.value === "desktop" ? (e(), x(S(ht), {
3076
+ }, [n.value === "desktop" ? (e(), S(w(vt), {
3071
3077
  key: 0,
3072
3078
  size: 18,
3073
3079
  "stroke-width": 1.5
3074
- })) : n.value === "tablet" ? (e(), x(S(wt), {
3080
+ })) : n.value === "tablet" ? (e(), S(w(Dt), {
3075
3081
  key: 1,
3076
3082
  size: 18,
3077
3083
  "stroke-width": 1.5
3078
- })) : (e(), x(S(bt), {
3084
+ })) : (e(), S(w(Ct), {
3079
3085
  key: 2,
3080
3086
  size: 18,
3081
3087
  "stroke-width": 1.5
3082
- })), h("span", null, w(n.label), 1)], 12, ws))), 128))], 12, Cs));
3088
+ })), g("span", null, E(n.label), 1)], 12, Ds))), 128))], 12, Es));
3083
3089
  }
3084
- }), Es = [
3090
+ }), ks = [
3085
3091
  "aria-label",
3086
3092
  "title",
3087
3093
  "aria-pressed"
3088
- ], Ds = /* @__PURE__ */ H(/* @__PURE__ */ f({
3094
+ ], As = /* @__PURE__ */ H(/* @__PURE__ */ p({
3089
3095
  __name: "PreviewToggle",
3090
3096
  props: { previewMode: { type: Boolean } },
3091
3097
  emits: ["change"],
3092
3098
  setup(t, { emit: n }) {
3093
3099
  let r = n, { t: i } = z();
3094
- return (n, a) => (e(), g("button", {
3100
+ return (n, a) => (e(), _("button", {
3095
3101
  class: "tpl-preview-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
3096
- style: b({
3102
+ style: x({
3097
3103
  color: t.previewMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
3098
3104
  backgroundColor: t.previewMode ? "var(--tpl-primary-light)" : "transparent"
3099
3105
  }),
3100
- "aria-label": t.previewMode ? S(i).previewMode.disable : S(i).previewMode.enable,
3101
- title: t.previewMode ? S(i).previewMode.disable : S(i).previewMode.enable,
3106
+ "aria-label": t.previewMode ? w(i).previewMode.disable : w(i).previewMode.enable,
3107
+ title: t.previewMode ? w(i).previewMode.disable : w(i).previewMode.enable,
3102
3108
  "aria-pressed": t.previewMode,
3103
3109
  onClick: a[0] ||= (e) => r("change", !t.previewMode)
3104
- }, [E(T, {
3110
+ }, [O(D, {
3105
3111
  "enter-active-class": "tpl-icon-enter-active",
3106
3112
  "leave-active-class": "tpl-icon-leave-active",
3107
3113
  "enter-from-class": "tpl-icon-enter-from",
3108
3114
  "leave-to-class": "tpl-icon-leave-to",
3109
3115
  mode: "out-in"
3110
3116
  }, {
3111
- default: k(() => [t.previewMode ? (e(), x(S(Ue), {
3117
+ default: j(() => [t.previewMode ? (e(), S(w(Ge), {
3112
3118
  key: "eye",
3113
3119
  size: 18,
3114
3120
  "stroke-width": 1.5
3115
- })) : (e(), x(S(ne), {
3121
+ })) : (e(), S(w(L), {
3116
3122
  key: "eye-off",
3117
3123
  size: 18,
3118
3124
  "stroke-width": 1.5
3119
3125
  }))]),
3120
3126
  _: 1
3121
- })], 12, Es));
3127
+ })], 12, ks));
3122
3128
  }
3123
- }), [["__scopeId", "data-v-af87d02a"]]), Os = [
3129
+ }), [["__scopeId", "data-v-af87d02a"]]), js = [
3124
3130
  "aria-label",
3125
3131
  "title",
3126
3132
  "aria-pressed"
3127
- ], ks = /* @__PURE__ */ H(/* @__PURE__ */ f({
3133
+ ], Ms = /* @__PURE__ */ H(/* @__PURE__ */ p({
3128
3134
  __name: "DarkModeToggle",
3129
3135
  props: { darkMode: { type: Boolean } },
3130
3136
  emits: ["change"],
3131
3137
  setup(t, { emit: n }) {
3132
3138
  let r = n, { t: i } = z();
3133
- return (n, a) => (e(), g("button", {
3139
+ return (n, a) => (e(), _("button", {
3134
3140
  class: "tpl-dark-mode-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
3135
- style: b({
3141
+ style: x({
3136
3142
  color: t.darkMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
3137
3143
  backgroundColor: t.darkMode ? "var(--tpl-primary-light)" : "transparent"
3138
3144
  }),
3139
- "aria-label": t.darkMode ? S(i).darkMode.disable : S(i).darkMode.enable,
3140
- title: t.darkMode ? S(i).darkMode.disable : S(i).darkMode.enable,
3145
+ "aria-label": t.darkMode ? w(i).darkMode.disable : w(i).darkMode.enable,
3146
+ title: t.darkMode ? w(i).darkMode.disable : w(i).darkMode.enable,
3141
3147
  "aria-pressed": t.darkMode,
3142
3148
  onClick: a[0] ||= (e) => r("change", !t.darkMode)
3143
- }, [E(T, {
3149
+ }, [O(D, {
3144
3150
  "enter-active-class": "tpl-icon-enter-active",
3145
3151
  "leave-active-class": "tpl-icon-leave-active",
3146
3152
  "enter-from-class": "tpl-icon-enter-from",
3147
3153
  "leave-to-class": "tpl-icon-leave-to",
3148
3154
  mode: "out-in"
3149
3155
  }, {
3150
- default: k(() => [t.darkMode ? (e(), x(S(gt), {
3156
+ default: j(() => [t.darkMode ? (e(), S(w(yt), {
3151
3157
  key: "moon",
3152
3158
  size: 18,
3153
3159
  "stroke-width": 1.5
3154
- })) : (e(), x(S(Ct), {
3160
+ })) : (e(), S(w(Et), {
3155
3161
  key: "sun",
3156
3162
  size: 18,
3157
3163
  "stroke-width": 1.5
3158
3164
  }))]),
3159
3165
  _: 1
3160
- })], 12, Os));
3166
+ })], 12, js));
3161
3167
  }
3162
- }), [["__scopeId", "data-v-f8694f76"]]), As = {
3168
+ }), [["__scopeId", "data-v-f8694f76"]]), Ns = {
3163
3169
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
3164
3170
  style: {
3165
3171
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
3166
3172
  "backdrop-filter": "blur(8px)",
3167
3173
  "-webkit-backdrop-filter": "blur(8px)"
3168
3174
  }
3169
- }, js = {
3175
+ }, Ps = {
3170
3176
  href: "https://github.com/templatical/sdk",
3171
3177
  target: "_blank",
3172
3178
  rel: "noopener noreferrer",
3173
3179
  class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
3174
3180
  style: { "text-decoration": "none" }
3175
- }, Ms = /* @__PURE__ */ f({
3181
+ }, Fs = /* @__PURE__ */ p({
3176
3182
  __name: "EditorFooter",
3177
3183
  props: { positionClass: {} },
3178
3184
  setup(t) {
3179
3185
  let { t: n } = z();
3180
- return (r, i) => (e(), g("footer", { class: d(["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)]", t.positionClass]) }, [h("div", As, [
3181
- h("span", null, w(S(n).footer.poweredBy), 1),
3182
- i[0] ||= h("a", {
3186
+ return (r, i) => (e(), _("footer", { class: f(["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)]", t.positionClass]) }, [g("div", Ns, [
3187
+ g("span", null, E(w(n).footer.poweredBy), 1),
3188
+ i[0] ||= g("a", {
3183
3189
  href: "https://templatical.com",
3184
3190
  target: "_blank",
3185
3191
  rel: "noopener noreferrer",
3186
3192
  class: "tpl:inline-flex tpl:items-center tpl:gap-1 tpl:font-medium tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-muted)]",
3187
3193
  style: { "text-decoration": "none" }
3188
- }, [h("img", {
3194
+ }, [g("img", {
3189
3195
  width: "14",
3190
3196
  height: "14",
3191
3197
  src: "https://templatical.com/logo.svg",
3192
3198
  alt: ""
3193
- }), l(" Templatical ")], -1),
3194
- i[1] ||= h("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3195
- h("a", js, w(S(n).footer.openSource), 1)
3199
+ }), u(" Templatical ")], -1),
3200
+ i[1] ||= g("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3201
+ g("a", Ps, E(w(n).footer.openSource), 1)
3196
3202
  ])], 2));
3197
3203
  }
3198
3204
  });
3199
3205
  //#endregion
3200
- export { Ss as a, Tt as c, Ts as i, vt as l, ks as n, Wt as o, Ds as r, Ft as s, Ms as t };
3206
+ export { Ts as a, Ot as c, Os as i, xt as l, Ms as n, qt as o, As as r, Rt as s, Fs as t };