@templatical/editor 0.16.3 → 0.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/dist/{AiChatSidebar-EaPCeDXr.js → AiChatSidebar-CYAbVB2G.js} +7 -7
  2. package/dist/{AiFeatureMenu-CcGRd1xE.js → AiFeatureMenu-B1oEJebq.js} +4 -4
  3. package/dist/{BlockIssueBadge-CZYgn-qg.js → BlockIssueBadge-BLytBabN.js} +2 -2
  4. package/dist/{CloudEditor-CUIWUMp5.js → CloudEditor-D6KNL6VU.js} +15 -15
  5. package/dist/{CollaboratorBar-DmxqeBYZ.js → CollaboratorBar-C_EhXQ5R.js} +2 -2
  6. package/dist/{ColorPicker-Gs4BMVog.js → ColorPicker-CppJgX_T.js} +58 -59
  7. package/dist/{CommentsSidebar-DDKiFsSq.js → CommentsSidebar-C_XLBbo3.js} +8 -8
  8. package/dist/{CountdownToolbar-92w1YySJ.js → CountdownToolbar-D5GaA_lt.js} +53 -67
  9. package/dist/{DesignReferenceSidebar-D6TfC176.js → DesignReferenceSidebar-Bh9uAZ4B.js} +5 -5
  10. package/dist/{IssuesPanel-CQQipLQP.js → IssuesPanel-DltSuU6H.js} +5 -5
  11. package/dist/{MergeTagSuggestion-DrT3LiZ4.js → MergeTagSuggestion-jIpT_jmz.js} +7 -5
  12. package/dist/{ModuleBrowserModal-DsehjLvh.js → ModuleBrowserModal-CXy8Bbv9.js} +6 -6
  13. package/dist/{ModulePreviewCanvas-BBfuS8VW.js → ModulePreviewCanvas-CJC9kyZN.js} +1 -1
  14. package/dist/{NumberWithSuffix-BxSRfI8b.js → NumberWithSuffix-DNi-v4l1.js} +1 -1
  15. package/dist/{ParagraphEditor-vgvQxicC.js → ParagraphEditor-nk5Vvr7M.js} +57 -58
  16. package/dist/{RichTextEditorContent-Dza2oPvh.js → RichTextEditorContent-DBaCrvH0.js} +13 -13
  17. package/dist/{SaveModuleDialog-DNWGCHlS.js → SaveModuleDialog-CYu5PhBz.js} +24 -23
  18. package/dist/{SnapshotHistory-BLmnNLg1.js → SnapshotHistory-B38ImqMO.js} +6 -6
  19. package/dist/{TemplateScoringPanel-C8VOC6gn.js → TemplateScoringPanel-ZhObHWeb.js} +10 -10
  20. package/dist/{TestEmailModal-D6v1hgY2.js → TestEmailModal-DbstIzEf.js} +3 -3
  21. package/dist/{TitleEditor-DPdzOQpq.js → TitleEditor-CmfkOHJT.js} +18 -18
  22. package/dist/ToggleSwitch-DUNuUPsZ.js +37 -0
  23. package/dist/{TplModal-DObT0uxf.js → TplModal-BXnx3sLr.js} +4 -4
  24. package/dist/{blockTypeIcons-B9f5fH_5.js → blockTypeIcons-BVIEw0XJ.js} +2 -2
  25. package/dist/bundle-stats.json +6 -6
  26. package/dist/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +2 -1
  27. package/dist/cdn/chunks/{AiFeatureMenu-CyUCHd9I.js → AiFeatureMenu-CuIg4yrB.js} +6 -6
  28. package/dist/cdn/chunks/{AiFeatureMenu-CyUCHd9I.js.map → AiFeatureMenu-CuIg4yrB.js.map} +1 -1
  29. package/dist/cdn/chunks/{BlockIssueBadge-BAa_dI-c.js → BlockIssueBadge-BHEl_Hs7.js} +4 -4
  30. package/dist/cdn/chunks/{BlockIssueBadge-BAa_dI-c.js.map → BlockIssueBadge-BHEl_Hs7.js.map} +1 -1
  31. package/dist/cdn/chunks/{CloudEditor-ClfgLU48.js → CloudEditor-1Ms0w691.js} +130 -130
  32. package/dist/cdn/chunks/{CloudEditor-ClfgLU48.js.map → CloudEditor-1Ms0w691.js.map} +1 -1
  33. package/dist/cdn/chunks/{CollaboratorBar-DCc5SL0P.js → CollaboratorBar-C0a5P64z.js} +3 -3
  34. package/dist/cdn/chunks/{CollaboratorBar-DCc5SL0P.js.map → CollaboratorBar-C0a5P64z.js.map} +1 -1
  35. package/dist/cdn/chunks/{ColorPicker-Pi-1fR8c.js → ColorPicker-bsMmT-_B.js} +144 -144
  36. package/dist/cdn/chunks/ColorPicker-bsMmT-_B.js.map +1 -0
  37. package/dist/cdn/chunks/{CountdownBlock-Bj7aoBUU.js → CountdownBlock-8053oz4k.js} +4 -4
  38. package/dist/cdn/chunks/{CountdownBlock-Bj7aoBUU.js.map → CountdownBlock-8053oz4k.js.map} +1 -1
  39. package/dist/cdn/chunks/CountdownToolbar-DQ_zrorh.js +198 -0
  40. package/dist/cdn/chunks/CountdownToolbar-DQ_zrorh.js.map +1 -0
  41. package/dist/cdn/chunks/{IssuesPanel-BXLVRo-c.js → IssuesPanel-CwQ376nf.js} +7 -7
  42. package/dist/cdn/chunks/{IssuesPanel-BXLVRo-c.js.map → IssuesPanel-CwQ376nf.js.map} +1 -1
  43. package/dist/cdn/chunks/{MergeTagSuggestion-jesxS7An.js → MergeTagSuggestion-rpZ6Ol-i.js} +8 -6
  44. package/dist/cdn/chunks/MergeTagSuggestion-rpZ6Ol-i.js.map +1 -0
  45. package/dist/cdn/chunks/{ModuleBrowserModal-C7BkJvzf.js → ModuleBrowserModal-DUegB2Jk.js} +8 -8
  46. package/dist/cdn/chunks/{ModuleBrowserModal-C7BkJvzf.js.map → ModuleBrowserModal-DUegB2Jk.js.map} +1 -1
  47. package/dist/cdn/chunks/{ModulePreviewCanvas-BJn-ZHlC.js → ModulePreviewCanvas-f4h8r9Lh.js} +32 -32
  48. package/dist/cdn/chunks/{ModulePreviewCanvas-BJn-ZHlC.js.map → ModulePreviewCanvas-f4h8r9Lh.js.map} +1 -1
  49. package/dist/cdn/chunks/{NumberWithSuffix-CkOxH3F7.js → NumberWithSuffix-Bu_nHJuD.js} +2 -2
  50. package/dist/cdn/chunks/{NumberWithSuffix-CkOxH3F7.js.map → NumberWithSuffix-Bu_nHJuD.js.map} +1 -1
  51. package/dist/cdn/chunks/{ParagraphEditor-4cMKKC-V.js → ParagraphEditor-IpZsg8qo.js} +75 -75
  52. package/dist/cdn/chunks/ParagraphEditor-IpZsg8qo.js.map +1 -0
  53. package/dist/cdn/chunks/{RichTextEditorContent-7RZe4tbj.js → RichTextEditorContent-DDnqZ9cB.js} +6 -6
  54. package/dist/cdn/chunks/{RichTextEditorContent-7RZe4tbj.js.map → RichTextEditorContent-DDnqZ9cB.js.map} +1 -1
  55. package/dist/cdn/chunks/{SaveModuleDialog-mr9A4j6G.js → SaveModuleDialog-CVA5HPCi.js} +31 -30
  56. package/dist/cdn/chunks/SaveModuleDialog-CVA5HPCi.js.map +1 -0
  57. package/dist/cdn/chunks/{TitleEditor-Cqw2jvuc.js → TitleEditor-DU8wm0Rh.js} +9 -9
  58. package/dist/cdn/chunks/TitleEditor-DU8wm0Rh.js.map +1 -0
  59. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +39 -0
  60. package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +1 -0
  61. package/dist/cdn/chunks/{blockTypeIcons-B_xRBxSU.js → blockTypeIcons-Dm5Oosjp.js} +7 -7
  62. package/dist/cdn/chunks/{blockTypeIcons-B_xRBxSU.js.map → blockTypeIcons-Dm5Oosjp.js.map} +1 -1
  63. package/dist/cdn/chunks/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +3 -2
  64. package/dist/cdn/chunks/ca-DI1ViqMa.js.map +1 -0
  65. package/dist/cdn/chunks/{de-Cy8FB-Ii.js → de-q9lTCMre.js} +3 -2
  66. package/dist/cdn/chunks/de-q9lTCMre.js.map +1 -0
  67. package/dist/cdn/chunks/{en-Bu-zS_5o.js → en-CR4LItrX.js} +3 -2
  68. package/dist/cdn/chunks/en-CR4LItrX.js.map +1 -0
  69. package/dist/cdn/chunks/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +3 -2
  70. package/dist/cdn/chunks/es-CEt-lrGd.js.map +1 -0
  71. package/dist/cdn/chunks/{extensions-Btyx_IMf.js → extensions-BGUoo2a5.js} +29 -29
  72. package/dist/cdn/chunks/{extensions-Btyx_IMf.js.map → extensions-BGUoo2a5.js.map} +1 -1
  73. package/dist/cdn/chunks/{features-Dwb5aTLg.js → features-BSpDuFFR.js} +145 -126
  74. package/dist/cdn/chunks/features-BSpDuFFR.js.map +1 -0
  75. package/dist/cdn/chunks/{icons-Dhqh5lYQ.js → icons-k3XVoRvc.js} +26 -26
  76. package/dist/cdn/chunks/{icons-Dhqh5lYQ.js.map → icons-k3XVoRvc.js.map} +1 -1
  77. package/dist/cdn/chunks/{media-library-DRodsf2D.js → media-library-iDq3otm6.js} +451 -451
  78. package/dist/cdn/chunks/{media-library-DRodsf2D.js.map → media-library-iDq3otm6.js.map} +1 -1
  79. package/dist/cdn/chunks/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +3 -2
  80. package/dist/cdn/chunks/pt-BR-DvBHY0AA.js.map +1 -0
  81. package/dist/cdn/chunks/{quality-A_V2Iqu_.js → quality-Bb7vN32U.js} +512 -512
  82. package/dist/cdn/chunks/{quality-A_V2Iqu_.js.map → quality-Bb7vN32U.js.map} +1 -1
  83. package/dist/cdn/chunks/{renderer-BM_-zceB.js → renderer-cOvtk8HM.js} +20 -17
  84. package/dist/cdn/chunks/{renderer-BM_-zceB.js.map → renderer-cOvtk8HM.js.map} +1 -1
  85. package/dist/cdn/chunks/{src-DSomxPI-.js → src-Ddp969zE.js} +6 -6
  86. package/dist/cdn/chunks/{src-DSomxPI-.js.map → src-Ddp969zE.js.map} +1 -1
  87. package/dist/cdn/chunks/{styles--UXn88wH.js → styles-CW_gRVVR.js} +893 -891
  88. package/dist/cdn/chunks/styles-CW_gRVVR.js.map +1 -0
  89. package/dist/cdn/editor.css +1 -1
  90. package/dist/cdn/editor.js +51 -51
  91. package/dist/cdn/editor.js.map +1 -1
  92. package/dist/{check-D1zYtCPK.js → check-Cg6Mc2pP.js} +1 -1
  93. package/dist/{chevron-down-ByXpufZD.js → chevron-down-dClfxKrJ.js} +1 -1
  94. package/dist/{circle-alert-CjcAORUw.js → circle-alert-Bhzm-fNA.js} +1 -1
  95. package/dist/{clock-5lWLadUn.js → clock-m7TwQw4b.js} +1 -1
  96. package/dist/{createLucideIcon-Bh9xOmlW.js → createLucideIcon-FSF4peHQ.js} +2 -2
  97. package/dist/{de-Cy8FB-Ii.js → de-q9lTCMre.js} +2 -1
  98. package/dist/{en-Bu-zS_5o.js → en-CR4LItrX.js} +2 -1
  99. package/dist/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +2 -1
  100. package/dist/{extensions-B2poxDIo.js → extensions-Cjd-VAII.js} +1 -1
  101. package/dist/{image-up-Bj_nes3f.js → image-up-CDEgJqwA.js} +1 -1
  102. package/dist/index.d.ts +12 -0
  103. package/dist/{info-BhSQCxBV.js → info-BNP8yGsK.js} +1 -1
  104. package/dist/{list-checks-CgxyUg7i.js → list-checks-jepi4iYr.js} +1 -1
  105. package/dist/{loader-circle-DFU0HPAa.js → loader-circle-BT38qSm3.js} +1 -1
  106. package/dist/{message-circle-BEBsCHnk.js → message-circle-BAHcL9S-.js} +1 -1
  107. package/dist/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +2 -1
  108. package/dist/{refresh-cw--lvWGy0_.js → refresh-cw-as5Bmg4X.js} +1 -1
  109. package/dist/{scan-line-QgyDIgn_.js → scan-line-IAMjPtRw.js} +1 -1
  110. package/dist/{send-BMyisUim.js → send-DvMay6bt.js} +1 -1
  111. package/dist/{shield-check-C49M20le.js → shield-check-YYDhGroE.js} +1 -1
  112. package/dist/{sparkles-DV7Dman6.js → sparkles-CCwQMMMZ.js} +1 -1
  113. package/dist/style.css +1 -1
  114. package/dist/{styles-CPt6RYEc.js → styles-DJfTblY7.js} +764 -762
  115. package/dist/templatical-editor.js +9 -9
  116. package/dist/{text-align-start-BMU70uAm.js → text-align-start-BwsA6QzC.js} +11 -11
  117. package/dist/{trash-2-B6M659Ey.js → trash-2-CRBDolnR.js} +1 -1
  118. package/dist/{triangle-alert-D1lzx6ds.js → triangle-alert-B2g0ALvq.js} +1 -1
  119. package/dist/{upload-3A1oZtOR.js → upload-BKg6hDRW.js} +1 -1
  120. package/dist/{useEditorCore-CSfeEwCj.js → useEditorCore-DnOG2a_b.js} +656 -656
  121. package/dist/usePopoverPosition-B3Byo68F.js +281 -0
  122. package/dist/{x-CG_NV3nP.js → x-Ctg_250T.js} +1 -1
  123. package/package.json +8 -8
  124. package/dist/cdn/chunks/ColorPicker-Pi-1fR8c.js.map +0 -1
  125. package/dist/cdn/chunks/CountdownToolbar-B1oniVq1.js +0 -212
  126. package/dist/cdn/chunks/CountdownToolbar-B1oniVq1.js.map +0 -1
  127. package/dist/cdn/chunks/MergeTagSuggestion-jesxS7An.js.map +0 -1
  128. package/dist/cdn/chunks/ParagraphEditor-4cMKKC-V.js.map +0 -1
  129. package/dist/cdn/chunks/SaveModuleDialog-mr9A4j6G.js.map +0 -1
  130. package/dist/cdn/chunks/TitleEditor-Cqw2jvuc.js.map +0 -1
  131. package/dist/cdn/chunks/ca-B3eR47lE.js.map +0 -1
  132. package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +0 -1
  133. package/dist/cdn/chunks/en-Bu-zS_5o.js.map +0 -1
  134. package/dist/cdn/chunks/es-CD3ZD6hK.js.map +0 -1
  135. package/dist/cdn/chunks/features-Dwb5aTLg.js.map +0 -1
  136. package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +0 -1
  137. package/dist/cdn/chunks/styles--UXn88wH.js.map +0 -1
  138. package/dist/color-DhoxCSMv.js +0 -259
  139. package/dist/usePopoverRoot-C1j0D7cc.js +0 -8
@@ -1,12 +1,13 @@
1
1
  import { C as e, F as t, G as n, H as r, J as i, K as a, L as o, M as s, O as c, P as l, T as u, V as d, Y as f, Z as p, b as m, c as h, ct as g, f as _, g as v, h as y, it as b, l as x, m as S, n as C, o as w, ot as T, p as E, s as D, st as O, t as k, u as A, v as j, x as M, y as N, z as P } from "./draggable-D840DIZB.js";
2
- import { $ as F, $t as I, An as L, B as ee, Ct as R, Dt as z, En as B, Et as te, F as ne, Fn as V, G as re, Gt as ie, H as ae, I as oe, It as se, J as ce, Jt as le, K as ue, L as de, Lt as fe, M as pe, N as me, Nn as H, Nt as he, O as ge, On as _e, Ot as ve, P as ye, Pn as be, Qt as xe, R as Se, Rn as Ce, Rt as we, Sn as Te, St as Ee, Tn as De, Tt as Oe, U as ke, Ut as Ae, V as je, Vt as Me, W as Ne, Wt as Pe, Xt as Fe, Yt as Ie, Zt as Le, cn as Re, ct as ze, dn as Be, en as Ve, ft as He, in as Ue, it as We, j as Ge, jt as Ke, k as qe, kn as Je, kt as Ye, ln as Xe, lt as Ze, mt as Qe, nn as $e, q as et, rn as tt, rt as nt, sn as rt, st as it, tn as at, un as ot, ut as st, vn as ct, vt as lt, wn as ut, wt as dt, xn as ft, zt as U } from "./features-Dwb5aTLg.js";
3
- import { A as pt, F as mt, G as ht, I as gt, M as _t, N as vt, O as yt, P as bt, T as W, V as xt, X as St, Y as Ct, _ as wt, b as Tt, c as Et, h as Dt, m as Ot, o as kt, s as At, u as jt, v as Mt, y as Nt, z as Pt } from "./icons-Dhqh5lYQ.js";
4
- import { t as Ft } from "./readableTextColor-f8Kykfnh.js";
5
- import { t as It } from "./CountdownBlock-Bj7aoBUU.js";
6
- import { t as Lt } from "./blockTypeIcons-B_xRBxSU.js";
7
- import { _ as Rt, f as G, g as zt, h as K, i as Bt, l as Vt, m as q, n as Ht, p as J, t as Y, u as Ut } from "./ColorPicker-Pi-1fR8c.js";
8
- import { n as Wt, r as Gt } from "./MergeTagSuggestion-jesxS7An.js";
9
- import { n as X, r as Z, t as Kt } from "./NumberWithSuffix-CkOxH3F7.js";
2
+ import { $t as F, A as ee, An as I, At as L, B as te, Bt as R, Cn as z, Ct as B, Dn as V, Dt as H, En as U, Et as ne, F as re, Fn as ie, G as ae, Gt as oe, H as se, Ht as ce, I as le, In as W, J as ue, K as de, Kt as fe, L as pe, Lt as me, M as he, Mt as ge, N as _e, O as ve, Ot as ye, P as be, Pn as xe, Pt as Se, Qt as Ce, Rt as we, Sn as Te, Tn as Ee, Tt as De, U as Oe, W as ke, Wt as Ae, Xt as je, Y as Me, Yt as Ne, Zt as Pe, an as Fe, at as Ie, cn as Le, ct as Re, dn as ze, dt as Be, en as Ve, et as He, fn as Ue, ht as We, in as Ge, it as Ke, j as qe, jn as Je, kn as Ye, kt as Xe, ln as Ze, lt as Qe, nn as $e, pt as et, q as tt, rn as nt, tn as rt, un as it, ut as at, wt as ot, yn as st, yt as ct, z as lt, zn as ut, zt as dt } from "./features-BSpDuFFR.js";
3
+ import { A as ft, F as pt, G as mt, I as ht, M as gt, N as _t, O as vt, P as yt, T as G, V as bt, X as xt, Y as St, _ as Ct, b as wt, c as Tt, h as Et, m as Dt, o as Ot, s as kt, u as At, v as jt, y as Mt, z as Nt } from "./icons-k3XVoRvc.js";
4
+ import { t as Pt } from "./readableTextColor-f8Kykfnh.js";
5
+ import { t as Ft } from "./CountdownBlock-8053oz4k.js";
6
+ import { t as It } from "./blockTypeIcons-Dm5Oosjp.js";
7
+ import { _ as Lt, f as K, g as Rt, h as q, i as zt, l as Bt, m as J, n as Vt, p as Y, t as X, u as Ht } from "./ColorPicker-bsMmT-_B.js";
8
+ import { n as Ut, r as Wt } from "./MergeTagSuggestion-rpZ6Ol-i.js";
9
+ import { t as Z } from "./ToggleSwitch-OrmX_w18.js";
10
+ import { n as Q, r as Gt, t as Kt } from "./NumberWithSuffix-Bu_nHJuD.js";
10
11
  //#region src/utils/resolveLintOptions.ts
11
12
  function qt(e) {
12
13
  return {
@@ -28,7 +29,7 @@ var Jt = ["aria-label"], Yt = {
28
29
  }, tn = { class: "tpl:relative" }, nn = {
29
30
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
30
31
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
31
- }, rn = 96, an = /*#__PURE__*/ it(/* @__PURE__ */ M({
32
+ }, rn = 96, an = /*#__PURE__*/ Re(/* @__PURE__ */ M({
32
33
  __name: "Canvas",
33
34
  props: {
34
35
  viewport: {},
@@ -45,21 +46,21 @@ var Jt = ["aria-label"], Yt = {
45
46
  ],
46
47
  setup(e, { emit: t }) {
47
48
  let n = {
48
- section: oe,
49
- title: de,
50
- paragraph: je,
49
+ section: re,
50
+ title: le,
51
+ paragraph: te,
51
52
  image: ke,
52
- button: se,
53
- divider: et,
54
- spacer: me,
55
- html: ue,
56
- social: ye,
57
- menu: ae,
58
- table: pe,
59
- video: Ge,
60
- countdown: It,
61
- custom: ce
62
- }, i = e, a = t, { t: c } = U(), { t: f } = We(), m = Be(xe, "Canvas"), h = u(le, null), x = u(Pe, null), C = u(ie, {}), w = _(() => (C.plan?.hasFeature("ai_generation") ?? !1) && (C.ai?.isFeatureEnabled("chat") ?? !1)), M = _(() => (C.plan?.hasFeature("ai_generation") ?? !1) && (C.ai?.isFeatureEnabled("designToTemplate") ?? !1)), P = _({
53
+ button: me,
54
+ divider: ue,
55
+ spacer: he,
56
+ html: tt,
57
+ social: _e,
58
+ menu: Oe,
59
+ table: qe,
60
+ video: ee,
61
+ countdown: Ft,
62
+ custom: Me
63
+ }, i = e, a = t, { t: c } = R(), { t: f } = Ie(), m = Ue(F, "Canvas"), h = u(Ne, null), x = u(oe, null), C = u(fe, {}), w = _(() => (C.plan?.hasFeature("ai_generation") ?? !1) && (C.ai?.isFeatureEnabled("chat") ?? !1)), M = _(() => (C.plan?.hasFeature("ai_generation") ?? !1) && (C.ai?.isFeatureEnabled("designToTemplate") ?? !1)), P = _({
63
64
  get: () => i.content.blocks,
64
65
  set: (e) => {
65
66
  m.setContent({
@@ -67,34 +68,34 @@ var Jt = ["aria-label"], Yt = {
67
68
  blocks: e
68
69
  });
69
70
  }
70
- }), F = _(() => {
71
+ }), I = _(() => {
71
72
  switch (i.viewport) {
72
73
  case "mobile": return 375;
73
74
  default: return i.content.settings.width;
74
75
  }
75
- }), I = _(() => F.value + rn * 2), L = _(() => {
76
+ }), L = _(() => I.value + rn * 2), z = _(() => {
76
77
  let e = { fontFamily: i.content.settings.fontFamily };
77
78
  return i.content.settings.textColor && (e.color = i.content.settings.textColor), i.content.settings.linkColor && (e["--tpl-doc-link-color"] = i.content.settings.linkColor), i.content.settings.linkUnderline && (e["--tpl-doc-link-underline"] = "underline"), e;
78
- }), R = _(() => P.value.length === 0 && !i.previewMode), z = p(0), B = _(() => R.value && z.value > 0);
79
- function te() {
80
- R.value && (z.value += 1);
79
+ }), B = _(() => P.value.length === 0 && !i.previewMode), V = p(0), H = _(() => B.value && V.value > 0);
80
+ function U() {
81
+ B.value && (V.value += 1);
81
82
  }
82
- function ne() {
83
- R.value && (z.value = Math.max(0, z.value - 1));
83
+ function ie() {
84
+ B.value && (V.value = Math.max(0, V.value - 1));
84
85
  }
85
- function V() {
86
- z.value = 0;
86
+ function ae() {
87
+ V.value = 0;
87
88
  }
88
- function re(e) {
89
+ function se(e) {
89
90
  i.previewMode || e.target === e.currentTarget && a("select-block", null);
90
91
  }
91
- function fe(e) {
92
- return ee(e, x, n);
92
+ function ce(e) {
93
+ return lt(e, x, n);
93
94
  }
94
- function H(e) {
95
+ function W(e) {
95
96
  return i.lockedBlocks?.get(e) ?? null;
96
97
  }
97
- function he(e, t) {
98
+ function de(e, t) {
98
99
  e.type === "custom" && m.updateBlock(e.id, {
99
100
  fieldValues: t.fieldValues,
100
101
  dataSourceFetched: t.dataSourceFetched
@@ -103,7 +104,7 @@ var Jt = ["aria-label"], Yt = {
103
104
  return (t, n) => (s(), v("div", {
104
105
  class: "tpl-canvas-stage tpl:relative tpl:flex tpl:justify-center tpl:rounded-lg",
105
106
  style: O({
106
- width: `${I.value}px`,
107
+ width: `${L.value}px`,
107
108
  boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
108
109
  transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
109
110
  })
@@ -120,7 +121,7 @@ var Jt = ["aria-label"], Yt = {
120
121
  "aria-label": b(c).landmarks.canvas,
121
122
  class: "tpl-canvas-wrapper tpl:relative",
122
123
  style: O({
123
- width: `${F.value}px`,
124
+ width: `${I.value}px`,
124
125
  transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
125
126
  })
126
127
  }, [E("div", {
@@ -128,8 +129,8 @@ var Jt = ["aria-label"], Yt = {
128
129
  "tpl-canvas--dark-mode": e.darkMode,
129
130
  "tpl-preview-mode": e.previewMode
130
131
  }]),
131
- style: O(L.value),
132
- onClick: re
132
+ style: O(z.value),
133
+ onClick: se
133
134
  }, [N(b(k), {
134
135
  modelValue: P.value,
135
136
  "onUpdate:modelValue": n[2] ||= (e) => P.value = e,
@@ -145,16 +146,16 @@ var Jt = ["aria-label"], Yt = {
145
146
  "force-fallback": !0,
146
147
  class: T([
147
148
  "tpl-canvas-blocks",
148
- R.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" : "",
149
- R.value && B.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
150
- R.value && !B.value ? "tpl:border-[var(--tpl-primary)]" : ""
149
+ B.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" : "",
150
+ B.value && H.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
151
+ B.value && !H.value ? "tpl:border-[var(--tpl-primary)]" : ""
151
152
  ]),
152
- onDragenter: te,
153
- onDragleave: ne,
154
- onDrop: V
153
+ onDragenter: U,
154
+ onDragleave: ie,
155
+ onDrop: ae
155
156
  }, {
156
- default: d(() => [R.value ? (s(), v("div", Yt, [
157
- E("div", Xt, [N(b(Dt), {
157
+ default: d(() => [B.value ? (s(), v("div", Yt, [
158
+ E("div", Xt, [N(b(Et), {
158
159
  size: 48,
159
160
  "stroke-width": 1
160
161
  })]),
@@ -165,7 +166,7 @@ var Jt = ["aria-label"], Yt = {
165
166
  E("button", {
166
167
  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)]",
167
168
  onClick: n[0] ||= (e) => a("open-ai-chat")
168
- }, [N(b(Qe), {
169
+ }, [N(b(We), {
169
170
  size: 14,
170
171
  "stroke-width": 2
171
172
  }), j(" " + g(b(f).aiMenu.aiAssistant), 1)]),
@@ -176,7 +177,7 @@ var Jt = ["aria-label"], Yt = {
176
177
  E("button", {
177
178
  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)]",
178
179
  onClick: n[1] ||= (e) => a("open-design-reference")
179
- }, [N(b(Oe), {
180
+ }, [N(b(ne), {
180
181
  size: 14,
181
182
  "stroke-width": 2
182
183
  }), j(" " + g(b(f).aiMenu.designToTemplate), 1)]),
@@ -185,30 +186,30 @@ var Jt = ["aria-label"], Yt = {
185
186
  ])) : y("", !0), (s(!0), v(A, null, l(P.value, (t) => r((s(), v("div", {
186
187
  key: t.id,
187
188
  class: "tpl-block-item"
188
- }, [E("div", tn, [H(t.id) ? (s(), v("div", {
189
+ }, [E("div", tn, [W(t.id) ? (s(), v("div", {
189
190
  key: 0,
190
191
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
191
192
  style: O({
192
- outline: `2px solid ${H(t.id).color}`,
193
+ outline: `2px solid ${W(t.id).color}`,
193
194
  outlineOffset: "-1px"
194
195
  })
195
196
  }, [E("span", {
196
197
  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",
197
198
  style: O({
198
- backgroundColor: H(t.id).color,
199
- color: b(Ft)(H(t.id).color)
199
+ backgroundColor: W(t.id).color,
200
+ color: b(Pt)(W(t.id).color)
200
201
  })
201
- }, [E("span", nn, g(H(t.id).name.charAt(0)), 1), j(" " + g(H(t.id).name), 1)], 4)], 4)) : y("", !0), N(Se, {
202
+ }, [E("span", nn, g(W(t.id).name.charAt(0)), 1), j(" " + g(W(t.id).name), 1)], 4)], 4)) : y("", !0), N(pe, {
202
203
  block: t,
203
- "is-selected": !e.previewMode && e.selectedBlockId === t.id && !H(t.id),
204
+ "is-selected": !e.previewMode && e.selectedBlockId === t.id && !W(t.id),
204
205
  viewport: e.viewport,
205
206
  "preview-mode": e.previewMode,
206
- onSelect: (n) => e.previewMode || H(t.id) ? void 0 : a("select-block", t.id)
207
+ onSelect: (n) => e.previewMode || W(t.id) ? void 0 : a("select-block", t.id)
207
208
  }, {
208
- default: d(() => [(s(), S(o(fe(t)), {
209
+ default: d(() => [(s(), S(o(ce(t)), {
209
210
  block: t,
210
211
  viewport: e.viewport,
211
- onFetchData: (e) => he(t, e),
212
+ onFetchData: (e) => de(t, e),
212
213
  onUpdate: (e) => b(m).updateBlock(t.id, e)
213
214
  }, null, 40, [
214
215
  "block",
@@ -234,7 +235,7 @@ var Jt = ["aria-label"], Yt = {
234
235
  }), [["__scopeId", "data-v-b440d13f"]]), on = M({
235
236
  name: "CustomBlockStylesheets",
236
237
  setup() {
237
- let t = u(Fe, null);
238
+ let t = u(Pe, null);
238
239
  return () => t ? t.value.map((t, n) => e("style", {
239
240
  key: n,
240
241
  "data-tpl-custom-block-stylesheet": "",
@@ -283,7 +284,7 @@ var cn = ["aria-label"], ln = {
283
284
  }, gn = /* @__PURE__ */ M({
284
285
  __name: "Sidebar",
285
286
  setup(e) {
286
- let { t, format: n } = U(), { t: r } = We(), i = u(Ie, []), a = u(Ue, void 0), c = u(Ae, void 0), f = u(xe, null), m = u(ie, {}), h = _(() => (m.savedModules?.moduleCount.value ?? 0) > 0), x = p(!1), C = p(!1);
287
+ let { t, format: n } = R(), { t: r } = Ie(), i = u(je, []), a = u(Fe, void 0), c = u(Ae, void 0), f = u(F, null), m = u(fe, {}), h = _(() => (m.savedModules?.moduleCount.value ?? 0) > 0), x = p(!1), C = p(!1);
287
288
  function w() {
288
289
  C.value || (x.value = !1);
289
290
  }
@@ -291,7 +292,7 @@ var cn = ["aria-label"], ln = {
291
292
  C.value = !0;
292
293
  }
293
294
  function D() {
294
- C.value = !1;
295
+ C.value = !1, x.value = !1;
295
296
  }
296
297
  let j = [
297
298
  "section",
@@ -309,35 +310,35 @@ var cn = ["aria-label"], ln = {
309
310
  ], M = _(() => {
310
311
  let e = j.map((e) => ({
311
312
  type: e,
312
- label: we(e, t)
313
+ label: dt(e, t)
313
314
  }));
314
315
  return m.plan && e.splice(-1, 0, {
315
316
  type: "countdown",
316
- label: we("countdown", t)
317
+ label: dt("countdown", t)
317
318
  }), e;
318
- }), F = _(() => i.map((e) => ({
319
+ }), ee = _(() => i.map((e) => ({
319
320
  type: `custom:${e.type}`,
320
321
  label: e.name,
321
322
  isCustom: !0,
322
323
  icon: e.icon
323
- }))), I = _(() => [...M.value, ...F.value]), L = _(() => sn(I.value, a)), ee = _(() => L.value.items), R = /* @__PURE__ */ new Set();
324
+ }))), I = _(() => [...M.value, ...ee.value]), L = _(() => sn(I.value, a)), te = _(() => L.value.items), z = /* @__PURE__ */ new Set();
324
325
  P(() => L.value.unknown, (e) => {
325
- for (let t of e) R.has(t) || (R.add(t), fe.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
326
+ for (let t of e) z.has(t) || (z.add(t), we.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
326
327
  }, { immediate: !0 });
327
- function z(e) {
328
+ function B(e) {
328
329
  if (e.isCustom) {
329
330
  let t = e.type.replace("custom:", ""), n = i.find((e) => e.type === t);
330
- if (n) return be(n);
331
+ if (n) return ie(n);
331
332
  }
332
- return H(e.type, c);
333
+ return xe(e.type, c);
333
334
  }
334
- function B(e) {
335
+ function V(e) {
335
336
  if (!f) return;
336
- let t = z(e);
337
+ let t = B(e);
337
338
  f.addBlock(t), f.selectBlock(t.id);
338
339
  }
339
- function te(e, t) {
340
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), B(t));
340
+ function H(e, t) {
341
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), V(t));
341
342
  }
342
343
  return (e, i) => (s(), v("aside", {
343
344
  "aria-label": b(t).sidebarNav.palette,
@@ -360,7 +361,7 @@ var cn = ["aria-label"], ln = {
360
361
  style: O({ justifyContent: x.value ? "flex-start" : "center" }),
361
362
  onClick: i[0] ||= (e) => b(m).savedModules?.openBrowser()
362
363
  }, [
363
- N(b(pt), {
364
+ N(b(ft), {
364
365
  size: 20,
365
366
  "stroke-width": 1.5,
366
367
  class: "tpl:shrink-0"
@@ -368,13 +369,13 @@ var cn = ["aria-label"], ln = {
368
369
  x.value ? (s(), v("span", dn, g(b(r).modules.title), 1)) : y("", !0),
369
370
  x.value ? (s(), v("span", fn, g(b(m).savedModules?.moduleCount.value ?? 0), 1)) : y("", !0)
370
371
  ], 12, un)])) : y("", !0), N(b(k), {
371
- "model-value": ee.value,
372
+ "model-value": te.value,
372
373
  group: {
373
374
  name: "blocks",
374
375
  pull: "clone",
375
376
  put: !1
376
377
  },
377
- clone: z,
378
+ clone: B,
378
379
  sort: !1,
379
380
  animation: 150,
380
381
  "force-fallback": !0,
@@ -382,20 +383,20 @@ var cn = ["aria-label"], ln = {
382
383
  onChoose: T,
383
384
  onEnd: D
384
385
  }, {
385
- default: d(() => [(s(!0), v(A, null, l(ee.value, (e) => (s(), v("button", {
386
+ default: d(() => [(s(!0), v(A, null, l(te.value, (e) => (s(), v("button", {
386
387
  key: e.type,
387
388
  type: "button",
388
389
  "data-palette-type": e.type,
389
390
  "aria-label": b(n)(b(t).sidebarNav.insertBlock, { block: e.label }),
390
391
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:shrink-0 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",
391
392
  style: O({ justifyContent: x.value ? "flex-start" : "center" }),
392
- onClick: (t) => B(e),
393
- onKeydown: (t) => te(t, e)
394
- }, [E("div", mn, [b(Lt)[e.type] ? (s(), S(o(b(Lt)[e.type]), {
393
+ onClick: (t) => V(e),
394
+ onKeydown: (t) => H(t, e)
395
+ }, [E("div", mn, [b(It)[e.type] ? (s(), S(o(b(It)[e.type]), {
395
396
  key: 0,
396
397
  size: 20,
397
398
  "stroke-width": 1.5
398
- })) : e.isCustom ? (s(), S(ze, {
399
+ })) : e.isCustom ? (s(), S(Qe, {
399
400
  key: 1,
400
401
  icon: e.icon,
401
402
  size: 20
@@ -463,7 +464,7 @@ var xn = /* @__PURE__ */ new Set([
463
464
  "End"
464
465
  ]);
465
466
  function Sn(e) {
466
- let { elementRef: t, modelValue: r, emit: o, mergeTags: s, syntax: l, enabled: d, onInsert: f } = e, p = Je(l), m = _e(l), h = d && p !== null && s.length > 0, g = u(Xe, null), _ = Wt((a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", qe()), v = !1;
467
+ let { elementRef: t, modelValue: r, emit: o, mergeTags: s, syntax: l, enabled: d, onInsert: f } = e, p = I(l), m = Ye(l), h = d && p !== null && s.length > 0, g = u(it, null), _ = Ut((a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", se()), v = !1;
467
468
  n() && i(() => {
468
469
  v = !0, _.close();
469
470
  });
@@ -491,7 +492,7 @@ function Sn(e) {
491
492
  _.close();
492
493
  return;
493
494
  }
494
- let r = Gt(s, n.query), i = () => bn(e, n.triggerStart), a = (t) => b(e, n, t);
495
+ let r = Wt(s, n.query), i = () => bn(e, n.triggerStart), a = (t) => b(e, n, t);
495
496
  _.isOpen() ? _.update({
496
497
  items: r,
497
498
  getRect: i,
@@ -517,7 +518,7 @@ function Sn(e) {
517
518
  //#endregion
518
519
  //#region src/composables/useMergeTagField.ts
519
520
  function Cn(e) {
520
- let { modelValue: t, emit: r, elementRef: a } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: l, isMergeTagValue: u, getMergeTagLabel: d, requestMergeTag: f, syntax: m, autocomplete: h } = nt(), { canInsertLogicTag: g, isRequesting: v, requestLogicTag: y } = F(), b = p(!1), x = !1, S = !1;
521
+ let { modelValue: t, emit: r, elementRef: a } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: l, isMergeTagValue: u, getMergeTagLabel: d, requestMergeTag: f, syntax: m, autocomplete: h } = Ke(), { canInsertLogicTag: g, isRequesting: v, requestLogicTag: y } = He(), b = p(!1), x = !1, S = !1;
521
522
  n() && i(() => {
522
523
  S = !0;
523
524
  });
@@ -545,10 +546,10 @@ function Cn(e) {
545
546
  type: "mergeTag",
546
547
  value: t,
547
548
  label: d(t)
548
- }) : L(t, m) ? n.push({
549
+ }) : Je(t, m) ? n.push({
549
550
  type: "logicMergeTag",
550
551
  value: t,
551
- keyword: B(t, m)
552
+ keyword: V(t, m)
552
553
  }) : n.push({
553
554
  type: "text",
554
555
  value: t
@@ -655,7 +656,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
655
656
  },
656
657
  emits: ["edit", "clear"],
657
658
  setup(e, { emit: t }) {
658
- let n = t, { t: r } = U();
659
+ let n = t, { t: r } = R();
659
660
  function i() {
660
661
  n("edit");
661
662
  }
@@ -689,7 +690,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
689
690
  "aria-label": b(r).mergeTag.remove,
690
691
  title: b(r).mergeTag.remove,
691
692
  onClick: a[0] ||= x((e) => n("clear"), ["stop"])
692
- }, [N(b(Ze), {
693
+ }, [N(b(at), {
693
694
  size: 12,
694
695
  "stroke-width": 2.5
695
696
  })], 8, On)], 42, wn));
@@ -703,7 +704,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
703
704
  props: { disabled: { type: Boolean } },
704
705
  emits: ["insert"],
705
706
  setup(e) {
706
- let { t } = U();
707
+ let { t } = R();
707
708
  return (n, r) => (s(), v("button", {
708
709
  type: "button",
709
710
  class: T([jn, "tpl:mt-1.5"]),
@@ -712,7 +713,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
712
713
  disabled: e.disabled,
713
714
  onMousedown: r[0] ||= x(() => {}, ["prevent"]),
714
715
  onClick: r[1] ||= (e) => n.$emit("insert")
715
- }, [N(b(Tt), {
716
+ }, [N(b(wt), {
716
717
  size: 12,
717
718
  "stroke-width": 2
718
719
  }), j(" " + g(b(t).mergeTag.insertShort), 1)], 42, An));
@@ -726,7 +727,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
726
727
  props: { disabled: { type: Boolean } },
727
728
  emits: ["insert"],
728
729
  setup(e) {
729
- let { t } = U();
730
+ let { t } = R();
730
731
  return (n, r) => (s(), v("button", {
731
732
  type: "button",
732
733
  class: T([Pn, "tpl:mt-1.5"]),
@@ -736,7 +737,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
736
737
  "data-testid": "field-insert-logic-button",
737
738
  onMousedown: r[0] ||= x(() => {}, ["prevent"]),
738
739
  onClick: r[1] ||= (e) => n.$emit("insert")
739
- }, [N(b(St), {
740
+ }, [N(b(xt), {
740
741
  size: 12,
741
742
  "stroke-width": 2
742
743
  }), j(" " + g(b(t).logicTag.insertShort), 1)], 42, Nn));
@@ -803,12 +804,12 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
803
804
  onInsert: b(D)
804
805
  }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : y("", !0)]));
805
806
  }
806
- }), Wn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Gn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, Kn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, qn = { class: "tpl:mb-3.5" }, Jn = { 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)]" }, Yn = ["onClick"], Xn = { class: "tpl:flex tpl:items-stretch" }, Zn = ["value"], Qn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $n = { class: "tpl:mb-3.5" }, er = { class: "tpl:mb-3.5" }, tr = { class: "tpl:mb-3.5" }, nr = { class: "tpl:mb-3.5" }, rr = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-between tpl:gap-2" }, ir = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ar = ["aria-checked", "aria-label"], or = ["value"], sr = ["value"], cr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, lr = ["value"], ur = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, dr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, fr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, pr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, mr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, hr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, gr = { 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)]" }, _r = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, vr = { class: "tpl:mb-1 tpl:last:mb-0" }, yr = { class: "tpl:mb-1 tpl:last:mb-0" }, br = { class: "tpl:mb-1 tpl:last:mb-0" }, xr = 150, Sr = /* @__PURE__ */ M({
807
+ }), Wn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Gn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, Kn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, qn = { class: "tpl:mb-3.5" }, Jn = { 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)]" }, Yn = ["onClick"], Xn = { class: "tpl:flex tpl:items-stretch" }, Zn = ["value"], Qn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $n = { class: "tpl:mb-3.5" }, er = { class: "tpl:mb-3.5" }, tr = { class: "tpl:mb-3.5" }, nr = { class: "tpl:mb-3.5" }, rr = ["value"], ir = ["value"], ar = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, or = ["value"], sr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, cr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, lr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, ur = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, dr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, fr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, pr = { 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)]" }, mr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, hr = { class: "tpl:mb-1 tpl:last:mb-0" }, gr = { class: "tpl:mb-1 tpl:last:mb-0" }, _r = { class: "tpl:mb-1 tpl:last:mb-0" }, vr = 150, yr = /* @__PURE__ */ M({
807
808
  __name: "TemplateSettings",
808
809
  props: { settings: {} },
809
810
  emits: ["update"],
810
811
  setup(e, { emit: t }) {
811
- let n = e, r = t, { t: i } = U(), a = Be(I, "TemplateSettings"), o = _(() => a.fonts.value), c = _(() => o.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), u = [
812
+ let n = e, r = t, { t: i } = R(), a = Ue(Ve, "TemplateSettings"), o = _(() => a.fonts.value), c = _(() => o.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), u = [
812
813
  {
813
814
  value: 480,
814
815
  label: "480px"
@@ -827,13 +828,13 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
827
828
  }
828
829
  ];
829
830
  return (t, n) => (s(), v("aside", Wn, [E("div", Gn, [
830
- E("div", { class: T(b(Ut)) }, [
831
- E("div", Kn, [N(b(Ot), {
831
+ E("div", { class: T(b(Ht)) }, [
832
+ E("div", Kn, [N(b(Dt), {
832
833
  class: "tpl:text-[var(--tpl-text-muted)]",
833
834
  size: 14,
834
835
  "stroke-width": 2
835
836
  }), E("span", null, g(b(i).templateSettings.layout), 1)]),
836
- E("div", qn, [E("label", { class: T(b(K)) }, g(b(i).templateSettings.widthPreset), 3), E("div", Jn, [(s(), v(A, null, l(u, (t) => E("button", {
837
+ E("div", qn, [E("label", { class: T(b(q)) }, g(b(i).templateSettings.widthPreset), 3), E("div", Jn, [(s(), v(A, null, l(u, (t) => E("button", {
837
838
  key: t.value,
838
839
  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)]",
839
840
  style: O({
@@ -843,72 +844,70 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
843
844
  }),
844
845
  onClick: (e) => r("update", { width: t.value })
845
846
  }, g(t.label), 13, Yn)), 64))])]),
846
- E("div", null, [E("label", { class: T(b(K)) }, g(b(i).templateSettings.customWidth), 3), E("div", Xn, [E("input", {
847
+ E("div", null, [E("label", { class: T(b(q)) }, g(b(i).templateSettings.customWidth), 3), E("div", Xn, [E("input", {
847
848
  type: "number",
848
- class: T(b(J)),
849
+ class: T(b(Y)),
849
850
  value: e.settings.width,
850
851
  min: "300",
851
852
  max: "900",
852
853
  onInput: n[0] ||= (e) => r("update", { width: Number(e.target.value) })
853
- }, null, 42, Zn), E("span", { class: T(b(q)) }, "px", 2)])])
854
+ }, null, 42, Zn), E("span", { class: T(b(J)) }, "px", 2)])])
854
855
  ], 2),
855
- E("div", { class: T(b(Ut)) }, [
856
- E("div", Qn, [N(b(Ct), {
856
+ E("div", { class: T(b(Ht)) }, [
857
+ E("div", Qn, [N(b(St), {
857
858
  class: "tpl:text-[var(--tpl-text-muted)]",
858
859
  size: 14,
859
860
  "stroke-width": 2
860
861
  }), E("span", null, g(b(i).templateSettings.appearance), 1)]),
861
- E("div", $n, [E("label", { class: T(b(K)) }, g(b(i).templateSettings.backgroundColor), 3), N(Y, {
862
+ E("div", $n, [E("label", { class: T(b(q)) }, g(b(i).templateSettings.backgroundColor), 3), N(X, {
862
863
  "model-value": e.settings.backgroundColor,
863
- placeholder: b(Ht),
864
+ placeholder: b(Vt),
864
865
  "onUpdate:modelValue": n[1] ||= (e) => r("update", { backgroundColor: e })
865
866
  }, null, 8, ["model-value", "placeholder"])]),
866
- E("div", er, [E("label", { class: T(b(K)) }, g(b(i).templateSettings.textColor), 3), N(Y, {
867
+ E("div", er, [E("label", { class: T(b(q)) }, g(b(i).templateSettings.textColor), 3), N(X, {
867
868
  "model-value": e.settings.textColor ?? "",
868
869
  "seed-color": "#1a1a1a",
869
870
  "onUpdate:modelValue": n[2] ||= (e) => r("update", { textColor: e })
870
871
  }, null, 8, ["model-value"])]),
871
- E("div", tr, [E("label", { class: T(b(K)) }, g(b(i).templateSettings.linkColor), 3), N(Y, {
872
+ E("div", tr, [E("label", { class: T(b(q)) }, g(b(i).templateSettings.linkColor), 3), N(X, {
872
873
  "model-value": e.settings.linkColor ?? "",
873
874
  "seed-color": "#0066cc",
874
875
  "onUpdate:modelValue": n[3] ||= (e) => r("update", { linkColor: e || void 0 })
875
876
  }, null, 8, ["model-value"])]),
876
- E("div", nr, [E("label", rr, [E("span", ir, g(b(i).templateSettings.linkUnderline), 1), E("button", {
877
- type: "button",
878
- role: "switch",
879
- "aria-checked": e.settings.linkUnderline,
880
- "aria-label": b(i).templateSettings.linkUnderline,
881
- class: T(["tpl:relative tpl:inline-flex tpl:h-5 tpl:w-9 tpl:shrink-0 tpl:cursor-pointer tpl:rounded-full tpl:border-2 tpl:border-transparent tpl:transition-colors tpl:duration-200", e.settings.linkUnderline ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]"]),
882
- onClick: n[4] ||= (t) => r("update", { linkUnderline: !e.settings.linkUnderline })
883
- }, [E("span", { class: T(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.settings.linkUnderline ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, ar)])]),
884
- E("div", null, [E("label", { class: T(b(K)) }, g(b(i).templateSettings.fontFamily), 3), E("select", {
885
- class: T(b(G)),
877
+ E("div", nr, [N(Z, {
878
+ class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
879
+ "model-value": e.settings.linkUnderline,
880
+ label: b(i).templateSettings.linkUnderline,
881
+ "onUpdate:modelValue": n[4] ||= (e) => r("update", { linkUnderline: e })
882
+ }, null, 8, ["model-value", "label"])]),
883
+ E("div", null, [E("label", { class: T(b(q)) }, g(b(i).templateSettings.fontFamily), 3), E("select", {
884
+ class: T(b(K)),
886
885
  value: c.value,
887
886
  onChange: n[5] ||= (e) => r("update", { fontFamily: e.target.value })
888
887
  }, [(s(!0), v(A, null, l(o.value, (e) => (s(), v("option", {
889
888
  key: e.value,
890
889
  value: e.value
891
- }, g(e.label), 9, sr))), 128))], 42, or)])
890
+ }, g(e.label), 9, ir))), 128))], 42, rr)])
892
891
  ], 2),
893
- E("div", { class: T(b(Ut)) }, [E("div", cr, [N(b(ht), {
892
+ E("div", { class: T(b(Ht)) }, [E("div", ar, [N(b(mt), {
894
893
  class: "tpl:text-[var(--tpl-text-muted)]",
895
894
  size: 14,
896
895
  "stroke-width": 2
897
896
  }), E("span", null, g(b(i).templateSettings.language), 1)]), E("div", null, [
898
- E("label", { class: T(b(K)) }, g(b(i).templateSettings.contentLocale), 3),
897
+ E("label", { class: T(b(q)) }, g(b(i).templateSettings.contentLocale), 3),
899
898
  E("input", {
900
899
  type: "text",
901
- class: T(b(G)),
900
+ class: T(b(K)),
902
901
  value: e.settings.locale ?? "",
903
902
  placeholder: "en",
904
903
  spellcheck: "false",
905
904
  autocapitalize: "off",
906
905
  autocomplete: "off",
907
906
  onInput: n[6] ||= (e) => r("update", { locale: e.target.value.trim() || void 0 })
908
- }, null, 42, lr),
909
- E("p", ur, g(b(i).templateSettings.contentLocaleHint), 1)
907
+ }, null, 42, or),
908
+ E("p", sr, g(b(i).templateSettings.contentLocaleHint), 1)
910
909
  ])], 2),
911
- E("div", { class: T(b(Ut)) }, [E("div", dr, [N(b(te), {
910
+ E("div", { class: T(b(Ht)) }, [E("div", cr, [N(b(H), {
912
911
  class: "tpl:text-[var(--tpl-text-muted)]",
913
912
  size: 14,
914
913
  "stroke-width": 2
@@ -917,28 +916,28 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
917
916
  placeholder: b(i).templateSettings.preheaderTextPlaceholder,
918
917
  rows: 2,
919
918
  "onUpdate:modelValue": n[7] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
920
- }, null, 8, ["model-value", "placeholder"]), E("div", fr, [E("span", pr, g(b(i).templateSettings.preheaderTextHint), 1), E("span", mr, g((e.settings.preheaderText ?? "").length) + "/" + g(xr), 1)])])], 2),
921
- E("div", hr, [E("div", gr, [N(b(R), {
919
+ }, null, 8, ["model-value", "placeholder"]), E("div", lr, [E("span", ur, g(b(i).templateSettings.preheaderTextHint), 1), E("span", dr, g((e.settings.preheaderText ?? "").length) + "/" + g(vr), 1)])])], 2),
920
+ E("div", fr, [E("div", pr, [N(b(ot), {
922
921
  size: 14,
923
922
  "stroke-width": 2
924
- }), E("span", null, g(b(i).templateSettings.tips), 1)]), E("ul", _r, [
925
- E("li", vr, g(b(i).templateSettings.tip1), 1),
926
- E("li", yr, g(b(i).templateSettings.tip2), 1),
927
- E("li", br, g(b(i).templateSettings.tip3), 1)
923
+ }), E("span", null, g(b(i).templateSettings.tips), 1)]), E("ul", mr, [
924
+ E("li", hr, g(b(i).templateSettings.tip1), 1),
925
+ E("li", gr, g(b(i).templateSettings.tip2), 1),
926
+ E("li", _r, g(b(i).templateSettings.tip3), 1)
928
927
  ])])
929
928
  ])]));
930
929
  }
931
- }), Cr = { key: 0 }, wr = {
930
+ }), br = { key: 0 }, xr = {
932
931
  key: 0,
933
932
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
934
- }, Tr = { key: 1 }, Er = [
933
+ }, Sr = { key: 1 }, Cr = [
935
934
  "type",
936
935
  "value",
937
936
  "placeholder"
938
- ], Dr = {
937
+ ], wr = {
939
938
  key: 0,
940
939
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
941
- }, Or = "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)]", Q = /*#__PURE__*/ it(/* @__PURE__ */ M({
940
+ }, Tr = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", $ = /*#__PURE__*/ Re(/* @__PURE__ */ M({
942
941
  __name: "MergeTagInput",
943
942
  props: {
944
943
  modelValue: {},
@@ -956,9 +955,9 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
956
955
  emit: (e) => r("update:modelValue", e),
957
956
  elementRef: i
958
957
  });
959
- return (t, n) => b(o) && !b(f) ? (s(), v("div", Cr, [N(kn, {
958
+ return (t, n) => b(o) && !b(f) ? (s(), v("div", br, [N(kn, {
960
959
  segments: b(a),
961
- "display-class": Or,
960
+ "display-class": Tr,
962
961
  pulse: e.pulse,
963
962
  onEdit: b(m),
964
963
  onClear: b(C)
@@ -967,7 +966,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
967
966
  "pulse",
968
967
  "onEdit",
969
968
  "onClear"
970
- ]), b(c) || b(u) ? (s(), v("div", wr, [b(c) ? (s(), S(Mn, {
969
+ ]), b(c) || b(u) ? (s(), v("div", xr, [b(c) ? (s(), S(Mn, {
971
970
  key: 0,
972
971
  disabled: b(l),
973
972
  onInsert: b(w)
@@ -975,18 +974,18 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
975
974
  key: 1,
976
975
  disabled: b(d),
977
976
  onInsert: b(D)
978
- }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : y("", !0)])) : (s(), v("div", Tr, [E("input", {
977
+ }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : y("", !0)])) : (s(), v("div", Sr, [E("input", {
979
978
  ref_key: "inputRef",
980
979
  ref: i,
981
980
  type: e.type,
982
- class: T([b(G), { "tpl-pulse-fill": e.pulse }]),
981
+ class: T([b(K), { "tpl-pulse-fill": e.pulse }]),
983
982
  value: e.modelValue,
984
983
  placeholder: e.placeholder,
985
984
  onInput: n[0] ||= (...e) => b(h) && b(h)(...e),
986
985
  onKeydown: n[1] ||= (...e) => b(g) && b(g)(...e),
987
986
  onClick: n[2] ||= (...e) => b(_) && b(_)(...e),
988
987
  onBlur: n[3] ||= (...e) => b(x) && b(x)(...e)
989
- }, null, 42, Er), b(c) || b(u) ? (s(), v("div", Dr, [b(c) ? (s(), S(Mn, {
988
+ }, null, 42, Cr), b(c) || b(u) ? (s(), v("div", wr, [b(c) ? (s(), S(Mn, {
990
989
  key: 0,
991
990
  disabled: b(l),
992
991
  onInsert: b(w)
@@ -996,13 +995,10 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
996
995
  onInsert: b(D)
997
996
  }, null, 8, ["disabled", "onInsert"])) : y("", !0)])) : y("", !0)]));
998
997
  }
999
- }), [["__scopeId", "data-v-d6563be6"]]), kr = { class: "tpl:mb-3.5" }, Ar = ["value"], jr = { value: "" }, Mr = ["value"], Nr = { class: "tpl:mb-3.5" }, Pr = { class: "tpl:mb-3.5" }, Fr = {
1000
- key: 0,
1001
- class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
1002
- }, Ir = ["checked"], Lr = { class: "tpl:mb-3.5" }, Rr = { class: "tpl:mb-3.5" }, zr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Br = { class: "tpl:mb-3.5" }, Vr = { class: "tpl:flex tpl:items-stretch" }, Hr = ["value"], Ur = { class: "tpl:mb-3.5" }, Wr = { class: "tpl:flex tpl:items-stretch" }, Gr = ["value"], Kr = { class: "tpl:mb-3.5" }, qr = ["value"], Jr = { value: "auto" }, Yr = { value: "full" }, Xr = { value: "custom" }, Zr = {
998
+ }), [["__scopeId", "data-v-d6563be6"]]), Er = { class: "tpl:mb-3.5" }, Dr = ["value"], Or = { value: "" }, kr = ["value"], Ar = { class: "tpl:mb-3.5" }, jr = { class: "tpl:mb-3.5" }, Mr = { class: "tpl:mb-3.5" }, Nr = { class: "tpl:mb-3.5" }, Pr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Fr = { class: "tpl:mb-3.5" }, Ir = { class: "tpl:flex tpl:items-stretch" }, Lr = ["value"], Rr = { class: "tpl:mb-3.5" }, zr = { class: "tpl:flex tpl:items-stretch" }, Br = ["value"], Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = { value: "auto" }, Wr = { value: "full" }, Gr = { value: "custom" }, Kr = {
1003
999
  key: 0,
1004
1000
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1005
- }, Qr = ["value"], $r = 200, ei = /* @__PURE__ */ M({
1001
+ }, qr = ["value"], Jr = 200, Yr = /* @__PURE__ */ M({
1006
1002
  __name: "ButtonToolbar",
1007
1003
  props: {
1008
1004
  block: {},
@@ -1010,7 +1006,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1010
1006
  },
1011
1007
  emits: ["update"],
1012
1008
  setup(e, { emit: t }) {
1013
- let n = e, r = t, { t: i } = U(), a = _(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
1009
+ let n = e, r = t, { t: i } = R(), a = _(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
1014
1010
  function o(e, t) {
1015
1011
  r("update", { [e]: t });
1016
1012
  }
@@ -1020,7 +1016,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1020
1016
  return;
1021
1017
  }
1022
1018
  if (e === "custom") {
1023
- o("width", typeof n.block.width == "number" ? n.block.width : $r);
1019
+ o("width", typeof n.block.width == "number" ? n.block.width : Jr);
1024
1020
  return;
1025
1021
  }
1026
1022
  o("width", void 0);
@@ -1030,79 +1026,80 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1030
1026
  !Number.isFinite(t) || t <= 0 || o("width", t);
1031
1027
  }
1032
1028
  return (t, n) => (s(), v(A, null, [
1033
- E("div", kr, [E("label", { class: T(b(K)) }, g(b(i).button.fontFamily), 3), E("select", {
1034
- class: T(b(G)),
1029
+ E("div", Er, [E("label", { class: T(b(q)) }, g(b(i).button.fontFamily), 3), E("select", {
1030
+ class: T(b(K)),
1035
1031
  value: e.block.fontFamily || "",
1036
1032
  onChange: n[0] ||= (e) => o("fontFamily", e.target.value || void 0)
1037
- }, [E("option", jr, g(b(i).button.inheritFont), 1), (s(!0), v(A, null, l(e.fontFamilies, (e) => (s(), v("option", {
1033
+ }, [E("option", Or, g(b(i).button.inheritFont), 1), (s(!0), v(A, null, l(e.fontFamilies, (e) => (s(), v("option", {
1038
1034
  key: e.value,
1039
1035
  value: e.value
1040
- }, g(e.label), 9, Mr))), 128))], 42, Ar)]),
1041
- E("div", Nr, [E("label", { class: T(b(K)) }, g(b(i).button.text), 3), N(Q, {
1036
+ }, g(e.label), 9, kr))), 128))], 42, Dr)]),
1037
+ E("div", Ar, [E("label", { class: T(b(q)) }, g(b(i).button.text), 3), N($, {
1042
1038
  "model-value": e.block.text,
1043
1039
  type: "text",
1044
1040
  "onUpdate:modelValue": n[1] ||= (e) => o("text", e)
1045
1041
  }, null, 8, ["model-value"])]),
1046
- E("div", Pr, [
1047
- E("label", { class: T(b(K)) }, g(b(i).button.url), 3),
1048
- N(Q, {
1042
+ E("div", jr, [
1043
+ E("label", { class: T(b(q)) }, g(b(i).button.url), 3),
1044
+ N($, {
1049
1045
  "model-value": e.block.url,
1050
1046
  type: "url",
1051
1047
  placeholder: b(i).button.urlPlaceholder,
1052
1048
  "onUpdate:modelValue": n[2] ||= (e) => o("url", e)
1053
1049
  }, null, 8, ["model-value", "placeholder"]),
1054
- e.block.url ? (s(), v("label", Fr, [E("input", {
1055
- type: "checkbox",
1056
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
1057
- checked: e.block.openInNewTab ?? !1,
1058
- onChange: n[3] ||= (e) => o("openInNewTab", e.target.checked)
1059
- }, null, 40, Ir), j(" " + g(b(i).button.openInNewTab), 1)])) : y("", !0)
1050
+ e.block.url ? (s(), S(Z, {
1051
+ key: 0,
1052
+ class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1053
+ "model-value": e.block.openInNewTab ?? !1,
1054
+ label: b(i).button.openInNewTab,
1055
+ "onUpdate:modelValue": n[3] ||= (e) => o("openInNewTab", e)
1056
+ }, null, 8, ["model-value", "label"])) : y("", !0)
1060
1057
  ]),
1061
- E("div", Lr, [E("label", { class: T(b(K)) }, g(b(i).button.background), 3), N(Y, {
1058
+ E("div", Mr, [E("label", { class: T(b(q)) }, g(b(i).button.background), 3), N(X, {
1062
1059
  "model-value": e.block.backgroundColor,
1063
1060
  "onUpdate:modelValue": n[4] ||= (e) => o("backgroundColor", e)
1064
1061
  }, null, 8, ["model-value"])]),
1065
- E("div", Rr, [E("label", { class: T(b(K)) }, g(b(i).button.textColor), 3), N(Y, {
1062
+ E("div", Nr, [E("label", { class: T(b(q)) }, g(b(i).button.textColor), 3), N(X, {
1066
1063
  "model-value": e.block.textColor,
1067
1064
  "onUpdate:modelValue": n[5] ||= (e) => o("textColor", e)
1068
1065
  }, null, 8, ["model-value"])]),
1069
- E("div", zr, [E("div", Br, [E("label", { class: T(b(K)) }, g(b(i).button.borderRadius), 3), E("div", Vr, [E("input", {
1066
+ E("div", Pr, [E("div", Fr, [E("label", { class: T(b(q)) }, g(b(i).button.borderRadius), 3), E("div", Ir, [E("input", {
1070
1067
  type: "number",
1071
- class: T(b(J)),
1068
+ class: T(b(Y)),
1072
1069
  value: e.block.borderRadius,
1073
1070
  min: "0",
1074
1071
  max: "50",
1075
1072
  onInput: n[6] ||= (e) => o("borderRadius", Number(e.target.value))
1076
- }, null, 42, Hr), E("span", { class: T(b(q)) }, "px", 2)])]), E("div", Ur, [E("label", { class: T(b(K)) }, g(b(i).button.fontSize), 3), E("div", Wr, [E("input", {
1073
+ }, null, 42, Lr), E("span", { class: T(b(J)) }, "px", 2)])]), E("div", Rr, [E("label", { class: T(b(q)) }, g(b(i).button.fontSize), 3), E("div", zr, [E("input", {
1077
1074
  type: "number",
1078
- class: T(b(J)),
1075
+ class: T(b(Y)),
1079
1076
  value: e.block.fontSize,
1080
1077
  min: "10",
1081
1078
  max: "36",
1082
1079
  onInput: n[7] ||= (e) => o("fontSize", Number(e.target.value))
1083
- }, null, 42, Gr), E("span", { class: T(b(q)) }, "px", 2)])])]),
1084
- E("div", Kr, [
1085
- E("label", { class: T(b(K)) }, g(b(i).button.width), 3),
1080
+ }, null, 42, Br), E("span", { class: T(b(J)) }, "px", 2)])])]),
1081
+ E("div", Vr, [
1082
+ E("label", { class: T(b(q)) }, g(b(i).button.width), 3),
1086
1083
  E("select", {
1087
- class: T(b(G)),
1084
+ class: T(b(K)),
1088
1085
  value: a.value,
1089
1086
  onChange: n[8] ||= (e) => c(e.target.value)
1090
1087
  }, [
1091
- E("option", Jr, g(b(i).button.widthAuto), 1),
1092
- E("option", Yr, g(b(i).button.fullWidth), 1),
1093
- E("option", Xr, g(b(i).button.widthCustom), 1)
1094
- ], 42, qr),
1095
- a.value === "custom" ? (s(), v("div", Zr, [E("input", {
1088
+ E("option", Ur, g(b(i).button.widthAuto), 1),
1089
+ E("option", Wr, g(b(i).button.fullWidth), 1),
1090
+ E("option", Gr, g(b(i).button.widthCustom), 1)
1091
+ ], 42, Hr),
1092
+ a.value === "custom" ? (s(), v("div", Kr, [E("input", {
1096
1093
  type: "number",
1097
- class: T(b(J)),
1098
- value: typeof e.block.width == "number" ? e.block.width : $r,
1094
+ class: T(b(Y)),
1095
+ value: typeof e.block.width == "number" ? e.block.width : Jr,
1099
1096
  min: "20",
1100
1097
  onInput: n[9] ||= (e) => u(e.target.value)
1101
- }, null, 42, Qr), E("span", { class: T(b(q)) }, "px", 2)])) : y("", !0)
1098
+ }, null, 42, qr), E("span", { class: T(b(J)) }, "px", 2)])) : y("", !0)
1102
1099
  ])
1103
1100
  ], 64));
1104
1101
  }
1105
- }), ti = { class: "spacing-control" }, ni = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ri = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ii = { class: "tpl:flex tpl:items-center" }, ai = ["aria-label"], oi = ["value", "aria-label"], si = ["aria-label"], ci = { class: "tpl:flex tpl:items-center tpl:gap-2" }, li = { class: "tpl:flex tpl:items-center" }, ui = ["aria-label"], di = ["value", "aria-label"], fi = ["aria-label"], pi = ["aria-label", "title"], mi = { class: "tpl:flex tpl:items-center" }, hi = ["aria-label"], gi = ["value", "aria-label"], _i = ["aria-label"], vi = { class: "tpl:flex tpl:items-center" }, yi = ["aria-label"], bi = ["value", "aria-label"], xi = ["aria-label"], $ = "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)]", Si = "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)]", Ci = /*#__PURE__*/ it(/* @__PURE__ */ M({
1102
+ }), Xr = { class: "spacing-control" }, Zr = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Qr = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, $r = { class: "tpl:flex tpl:items-center" }, ei = ["aria-label"], ti = ["value", "aria-label"], ni = ["aria-label"], ri = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ii = { class: "tpl:flex tpl:items-center" }, ai = ["aria-label"], oi = ["value", "aria-label"], si = ["aria-label"], ci = ["aria-label", "title"], li = { class: "tpl:flex tpl:items-center" }, ui = ["aria-label"], di = ["value", "aria-label"], fi = ["aria-label"], pi = { class: "tpl:flex tpl:items-center" }, mi = ["aria-label"], hi = ["value", "aria-label"], gi = ["aria-label"], _i = "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)]", vi = "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)]", yi = /*#__PURE__*/ Re(/* @__PURE__ */ M({
1106
1103
  __name: "SpacingControl",
1107
1104
  props: {
1108
1105
  modelValue: {},
@@ -1110,7 +1107,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1110
1107
  },
1111
1108
  emits: ["update:modelValue"],
1112
1109
  setup(e, { emit: t }) {
1113
- let n = e, r = t, { t: i } = U(), a = _(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), o = p(a.value);
1110
+ let n = e, r = t, { t: i } = R(), a = _(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), o = p(a.value);
1114
1111
  P(a, (e) => {
1115
1112
  !e && o.value && (o.value = !1);
1116
1113
  });
@@ -1149,130 +1146,130 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1149
1146
  });
1150
1147
  }
1151
1148
  }
1152
- return (t, n) => (s(), v("div", ti, [E("label", ni, g(e.label), 1), E("div", ri, [
1153
- E("div", ii, [
1149
+ return (t, n) => (s(), v("div", Xr, [E("label", Zr, g(e.label), 1), E("div", Qr, [
1150
+ E("div", $r, [
1154
1151
  E("button", {
1155
1152
  "aria-label": b(i).spacingControl.decreaseTop,
1156
- class: T([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1153
+ class: T([_i, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1157
1154
  onClick: n[0] ||= (e) => c("top", -1)
1158
- }, [N(b(bt), {
1155
+ }, [N(b(yt), {
1159
1156
  size: 12,
1160
1157
  "stroke-width": 2
1161
- })], 10, ai),
1158
+ })], 10, ei),
1162
1159
  E("input", {
1163
1160
  type: "number",
1164
- class: T(Si),
1161
+ class: T(vi),
1165
1162
  value: e.modelValue.top,
1166
1163
  "aria-label": b(i).spacingControl.top,
1167
1164
  min: "0",
1168
1165
  onInput: n[1] ||= (e) => l("top", Number(e.target.value))
1169
- }, null, 40, oi),
1166
+ }, null, 40, ti),
1170
1167
  E("button", {
1171
1168
  "aria-label": b(i).spacingControl.increaseTop,
1172
- class: T([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1169
+ class: T([_i, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1173
1170
  onClick: n[2] ||= (e) => c("top", 1)
1174
- }, [N(b(W), {
1171
+ }, [N(b(G), {
1175
1172
  size: 12,
1176
1173
  "stroke-width": 2
1177
- })], 10, si)
1174
+ })], 10, ni)
1178
1175
  ]),
1179
- E("div", ci, [
1180
- E("div", li, [
1176
+ E("div", ri, [
1177
+ E("div", ii, [
1181
1178
  E("button", {
1182
1179
  "aria-label": b(i).spacingControl.decreaseLeft,
1183
- class: T([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1180
+ class: T([_i, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1184
1181
  onClick: n[3] ||= (e) => c("left", -1)
1185
- }, [N(b(bt), {
1182
+ }, [N(b(yt), {
1186
1183
  size: 12,
1187
1184
  "stroke-width": 2
1188
- })], 10, ui),
1185
+ })], 10, ai),
1189
1186
  E("input", {
1190
1187
  type: "number",
1191
- class: T(Si),
1188
+ class: T(vi),
1192
1189
  value: e.modelValue.left,
1193
1190
  "aria-label": b(i).spacingControl.left,
1194
1191
  min: "0",
1195
1192
  onInput: n[4] ||= (e) => l("left", Number(e.target.value))
1196
- }, null, 40, di),
1193
+ }, null, 40, oi),
1197
1194
  E("button", {
1198
1195
  "aria-label": b(i).spacingControl.increaseLeft,
1199
- class: T([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1196
+ class: T([_i, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1200
1197
  onClick: n[5] ||= (e) => c("left", 1)
1201
- }, [N(b(W), {
1198
+ }, [N(b(G), {
1202
1199
  size: 12,
1203
1200
  "stroke-width": 2
1204
- })], 10, fi)
1201
+ })], 10, si)
1205
1202
  ]),
1206
1203
  E("button", {
1207
1204
  class: T(["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)]", o.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)]"]),
1208
1205
  "aria-label": o.value ? b(i).spacingControl.unlock : b(i).spacingControl.lockAll,
1209
1206
  title: o.value ? b(i).spacingControl.unlock : b(i).spacingControl.lockAll,
1210
1207
  onClick: u
1211
- }, [o.value ? (s(), S(b(mt), {
1208
+ }, [o.value ? (s(), S(b(pt), {
1212
1209
  key: 0,
1213
1210
  size: 14,
1214
1211
  "stroke-width": 2
1215
- })) : (s(), S(b(gt), {
1212
+ })) : (s(), S(b(ht), {
1216
1213
  key: 1,
1217
1214
  size: 14,
1218
1215
  "stroke-width": 2
1219
- }))], 10, pi),
1220
- E("div", mi, [
1216
+ }))], 10, ci),
1217
+ E("div", li, [
1221
1218
  E("button", {
1222
1219
  "aria-label": b(i).spacingControl.decreaseRight,
1223
- class: T([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1220
+ class: T([_i, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1224
1221
  onClick: n[6] ||= (e) => c("right", -1)
1225
- }, [N(b(bt), {
1222
+ }, [N(b(yt), {
1226
1223
  size: 12,
1227
1224
  "stroke-width": 2
1228
- })], 10, hi),
1225
+ })], 10, ui),
1229
1226
  E("input", {
1230
1227
  type: "number",
1231
- class: T(Si),
1228
+ class: T(vi),
1232
1229
  value: e.modelValue.right,
1233
1230
  "aria-label": b(i).spacingControl.right,
1234
1231
  min: "0",
1235
1232
  onInput: n[7] ||= (e) => l("right", Number(e.target.value))
1236
- }, null, 40, gi),
1233
+ }, null, 40, di),
1237
1234
  E("button", {
1238
1235
  "aria-label": b(i).spacingControl.increaseRight,
1239
- class: T([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1236
+ class: T([_i, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1240
1237
  onClick: n[8] ||= (e) => c("right", 1)
1241
- }, [N(b(W), {
1238
+ }, [N(b(G), {
1242
1239
  size: 12,
1243
1240
  "stroke-width": 2
1244
- })], 10, _i)
1241
+ })], 10, fi)
1245
1242
  ])
1246
1243
  ]),
1247
- E("div", vi, [
1244
+ E("div", pi, [
1248
1245
  E("button", {
1249
1246
  "aria-label": b(i).spacingControl.decreaseBottom,
1250
- class: T([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1247
+ class: T([_i, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1251
1248
  onClick: n[9] ||= (e) => c("bottom", -1)
1252
- }, [N(b(bt), {
1249
+ }, [N(b(yt), {
1253
1250
  size: 12,
1254
1251
  "stroke-width": 2
1255
- })], 10, yi),
1252
+ })], 10, mi),
1256
1253
  E("input", {
1257
1254
  type: "number",
1258
- class: T(Si),
1255
+ class: T(vi),
1259
1256
  value: e.modelValue.bottom,
1260
1257
  "aria-label": b(i).spacingControl.bottom,
1261
1258
  min: "0",
1262
1259
  onInput: n[10] ||= (e) => l("bottom", Number(e.target.value))
1263
- }, null, 40, bi),
1260
+ }, null, 40, hi),
1264
1261
  E("button", {
1265
1262
  "aria-label": b(i).spacingControl.increaseBottom,
1266
- class: T([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1263
+ class: T([_i, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1267
1264
  onClick: n[11] ||= (e) => c("bottom", 1)
1268
- }, [N(b(W), {
1265
+ }, [N(b(G), {
1269
1266
  size: 12,
1270
1267
  "stroke-width": 2
1271
- })], 10, xi)
1268
+ })], 10, gi)
1272
1269
  ])
1273
1270
  ])]));
1274
1271
  }
1275
- }), [["__scopeId", "data-v-9a9c8a07"]]), wi = { class: "tpl:mt-3" }, Ti = /* @__PURE__ */ M({
1272
+ }), [["__scopeId", "data-v-9a9c8a07"]]), bi = { class: "tpl:mt-3" }, xi = /* @__PURE__ */ M({
1276
1273
  __name: "CollapsibleSection",
1277
1274
  props: {
1278
1275
  title: {},
@@ -1285,25 +1282,25 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1285
1282
  type: "button",
1286
1283
  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)]",
1287
1284
  onClick: i[0] ||= (e) => n.$emit("toggle")
1288
- }, [N(b(he), {
1285
+ }, [N(b(Se), {
1289
1286
  class: T(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1290
1287
  size: 12,
1291
1288
  "stroke-width": 2
1292
- }, null, 8, ["class"]), E("span", null, g(e.title), 1)]), r(E("div", wi, [t(n.$slots, "default")], 512), [[D, e.open]])], 2));
1289
+ }, null, 8, ["class"]), E("span", null, g(e.title), 1)]), r(E("div", bi, [t(n.$slots, "default")], 512), [[D, e.open]])], 2));
1293
1290
  }
1294
- }), Ei = { class: "tpl:space-y-2" }, Di = ["checked", "onChange"], Oi = { class: "tpl:space-y-2" }, ki = ["value"], Ai = { value: "" }, ji = ["label"], Mi = ["value"], Ni = ["value"], Pi = {
1291
+ }), Si = { class: "tpl:space-y-2" }, Ci = { class: "tpl:flex tpl:items-center tpl:gap-2" }, wi = { class: "tpl:space-y-2" }, Ti = ["value"], Ei = { value: "" }, Di = ["label"], Oi = ["value"], ki = ["value"], Ai = {
1295
1292
  key: 0,
1296
1293
  value: "__custom__"
1297
- }, Fi = {
1294
+ }, ji = {
1298
1295
  key: 0,
1299
1296
  class: "tpl:space-y-2"
1300
- }, Ii = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Li = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ri = { class: "tpl:flex tpl:justify-end" }, zi = ["disabled"], Bi = {
1297
+ }, Mi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ni = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Pi = { class: "tpl:flex tpl:justify-end" }, Fi = ["disabled"], Ii = {
1301
1298
  key: 0,
1302
1299
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1303
- }, Vi = { class: "tpl:space-y-1" }, Hi = { 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)]" }, Ui = {
1300
+ }, Li = { class: "tpl:space-y-1" }, Ri = { 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)]" }, zi = {
1304
1301
  key: 0,
1305
1302
  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)]"
1306
- }, Wi = /* @__PURE__ */ M({
1303
+ }, Bi = /* @__PURE__ */ M({
1307
1304
  __name: "CommonBlockSettings",
1308
1305
  props: {
1309
1306
  block: {},
@@ -1311,23 +1308,23 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1311
1308
  },
1312
1309
  emits: ["update"],
1313
1310
  setup(e, { emit: t }) {
1314
- let n = e, i = t, { t: a } = U(), c = u(Le, []), m = u(Me, !1), h = f(/* @__PURE__ */ new Set()), x = p(!1), C = p(""), D = p(""), O = [{
1311
+ let n = e, i = t, { t: a } = R(), c = u(Ce, []), m = u(ce, !1), h = f(/* @__PURE__ */ new Set()), x = p(!1), C = p(""), D = p(""), O = [{
1315
1312
  key: "desktop",
1316
- icon: vt,
1313
+ icon: _t,
1317
1314
  labelKey: "showOnDesktop"
1318
1315
  }, {
1319
1316
  key: "mobile",
1320
- icon: wt,
1317
+ icon: Ct,
1321
1318
  labelKey: "showOnMobile"
1322
1319
  }];
1323
1320
  function k(e) {
1324
1321
  h.has(e) ? h.delete(e) : h.add(e);
1325
1322
  }
1326
1323
  let M = _(() => c.length > 0 || m), F = _(() => n.block.displayCondition ? !c.some((e) => e.label === n.block.displayCondition?.label) : !1);
1327
- function I() {
1324
+ function ee() {
1328
1325
  x.value = !0, F.value && n.block.displayCondition ? (C.value = n.block.displayCondition.before, D.value = n.block.displayCondition.after ?? "") : (C.value = "", D.value = "");
1329
1326
  }
1330
- function L() {
1327
+ function I() {
1331
1328
  C.value.trim() && (i("update", { displayCondition: {
1332
1329
  label: a.blockSettings.customCondition,
1333
1330
  before: C.value.trim(),
@@ -1341,7 +1338,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1341
1338
  }
1342
1339
  F.value && (C.value = e.before, D.value = e.after ?? "");
1343
1340
  }, { immediate: !0 });
1344
- let ee = _(() => {
1341
+ let L = _(() => {
1345
1342
  let e = {};
1346
1343
  for (let t of c) {
1347
1344
  let n = t.group ?? "";
@@ -1349,7 +1346,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1349
1346
  }
1350
1347
  return e;
1351
1348
  });
1352
- function R(e, t) {
1349
+ function te(e, t) {
1353
1350
  i("update", { styles: {
1354
1351
  ...n.block.styles,
1355
1352
  [e]: t
@@ -1366,16 +1363,16 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1366
1363
  t[e] = !t[e], i("update", { visibility: t });
1367
1364
  }
1368
1365
  return (t, n) => (s(), v("div", { class: T(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1369
- N(Ti, {
1366
+ N(xi, {
1370
1367
  title: b(a).blockSettings.spacing,
1371
1368
  open: h.has("spacing"),
1372
1369
  "no-border": e.isFirstSection,
1373
1370
  onToggle: n[1] ||= (e) => k("spacing")
1374
1371
  }, {
1375
- default: d(() => [N(Ci, {
1372
+ default: d(() => [N(yi, {
1376
1373
  label: b(a).blockSettings.padding,
1377
1374
  "model-value": e.block.styles.padding,
1378
- "onUpdate:modelValue": n[0] ||= (e) => R("padding", e)
1375
+ "onUpdate:modelValue": n[0] ||= (e) => te("padding", e)
1379
1376
  }, null, 8, ["label", "model-value"])]),
1380
1377
  _: 1
1381
1378
  }, 8, [
@@ -1383,53 +1380,54 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1383
1380
  "open",
1384
1381
  "no-border"
1385
1382
  ]),
1386
- N(Ti, {
1383
+ N(xi, {
1387
1384
  title: b(a).blockSettings.background,
1388
1385
  open: h.has("bg"),
1389
1386
  onToggle: n[3] ||= (e) => k("bg")
1390
1387
  }, {
1391
- default: d(() => [E("label", { class: T(b(K)) }, g(b(a).blockSettings.color), 3), N(Y, {
1388
+ default: d(() => [E("label", { class: T(b(q)) }, g(b(a).blockSettings.color), 3), N(X, {
1392
1389
  "model-value": e.block.styles.backgroundColor ?? "",
1393
- "onUpdate:modelValue": n[2] ||= (e) => R("backgroundColor", e)
1390
+ "onUpdate:modelValue": n[2] ||= (e) => te("backgroundColor", e)
1394
1391
  }, null, 8, ["model-value"])]),
1395
1392
  _: 1
1396
1393
  }, 8, ["title", "open"]),
1397
- N(Ti, {
1394
+ N(xi, {
1398
1395
  title: b(a).blockSettings.display,
1399
1396
  open: h.has("display"),
1400
1397
  onToggle: n[4] ||= (e) => k("display")
1401
1398
  }, {
1402
- default: d(() => [E("div", Ei, [(s(), v(A, null, l(O, (e) => E("label", {
1399
+ default: d(() => [E("div", Si, [(s(), v(A, null, l(O, (e) => N(Z, {
1403
1400
  key: e.key,
1404
- class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]"
1405
- }, [
1406
- E("input", {
1407
- type: "checkbox",
1408
- class: "tpl:accent-[var(--tpl-primary)]",
1409
- checked: z(e.key),
1410
- onChange: (t) => B(e.key)
1411
- }, null, 40, Di),
1412
- (s(), S(o(e.icon), {
1401
+ class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1402
+ "model-value": z(e.key),
1403
+ label: b(a).blockSettings[e.labelKey],
1404
+ "onUpdate:modelValue": (t) => B(e.key)
1405
+ }, {
1406
+ default: d(() => [E("span", Ci, [(s(), S(o(e.icon), {
1413
1407
  size: 14,
1414
1408
  "stroke-width": 1.5
1415
- })),
1416
- j(" " + g(b(a).blockSettings[e.labelKey]), 1)
1409
+ })), j(" " + g(b(a).blockSettings[e.labelKey]), 1)])]),
1410
+ _: 2
1411
+ }, 1032, [
1412
+ "model-value",
1413
+ "label",
1414
+ "onUpdate:modelValue"
1417
1415
  ])), 64))])]),
1418
1416
  _: 1
1419
1417
  }, 8, ["title", "open"]),
1420
- M.value ? (s(), S(Ti, {
1418
+ M.value ? (s(), S(xi, {
1421
1419
  key: 0,
1422
1420
  title: b(a).blockSettings.displayCondition,
1423
1421
  open: h.has("condition"),
1424
1422
  onToggle: n[8] ||= (e) => k("condition")
1425
1423
  }, {
1426
- default: d(() => [E("div", Oi, [E("select", {
1424
+ default: d(() => [E("div", wi, [E("select", {
1427
1425
  class: T(["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)]", e.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)]"]),
1428
1426
  value: x.value || F.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1429
1427
  onChange: n[5] ||= (e) => {
1430
1428
  let t = e.target.value;
1431
1429
  if (t === "__custom__") {
1432
- I();
1430
+ ee();
1433
1431
  return;
1434
1432
  }
1435
1433
  if (x.value = !1, !t) {
@@ -1440,48 +1438,41 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1440
1438
  n && i("update", { displayCondition: n });
1441
1439
  }
1442
1440
  }, [
1443
- E("option", Ai, g(b(a).blockSettings.noCondition), 1),
1444
- (s(!0), v(A, null, l(ee.value, (e, t) => (s(), v(A, { key: t }, [t ? (s(), v("optgroup", {
1441
+ E("option", Ei, g(b(a).blockSettings.noCondition), 1),
1442
+ (s(!0), v(A, null, l(L.value, (e, t) => (s(), v(A, { key: t }, [t ? (s(), v("optgroup", {
1445
1443
  key: 0,
1446
1444
  label: String(t)
1447
1445
  }, [(s(!0), v(A, null, l(e, (e) => (s(), v("option", {
1448
1446
  key: e.label,
1449
1447
  value: e.label
1450
- }, g(e.label), 9, Mi))), 128))], 8, ji)) : (s(!0), v(A, { key: 1 }, l(e, (e) => (s(), v("option", {
1448
+ }, g(e.label), 9, Oi))), 128))], 8, Di)) : (s(!0), v(A, { key: 1 }, l(e, (e) => (s(), v("option", {
1451
1449
  key: e.label,
1452
1450
  value: e.label
1453
- }, g(e.label), 9, Ni))), 128))], 64))), 128)),
1454
- b(m) ? (s(), v("option", Pi, g(b(a).blockSettings.customCondition), 1)) : y("", !0)
1455
- ], 42, ki), x.value || F.value ? (s(), v("div", Fi, [
1456
- E("div", null, [E("label", Ii, g(b(a).blockSettings.customConditionBefore), 1), r(E("textarea", {
1451
+ }, g(e.label), 9, ki))), 128))], 64))), 128)),
1452
+ b(m) ? (s(), v("option", Ai, g(b(a).blockSettings.customCondition), 1)) : y("", !0)
1453
+ ], 42, Ti), x.value || F.value ? (s(), v("div", ji, [
1454
+ E("div", null, [E("label", Mi, g(b(a).blockSettings.customConditionBefore), 1), r(E("textarea", {
1457
1455
  "onUpdate:modelValue": n[6] ||= (e) => C.value = e,
1458
1456
  rows: "2",
1459
- class: T(b(zt))
1457
+ class: T(b(Rt))
1460
1458
  }, null, 2), [[w, C.value]])]),
1461
- E("div", null, [E("label", Li, g(b(a).blockSettings.customConditionAfter), 1), r(E("textarea", {
1459
+ E("div", null, [E("label", Ni, g(b(a).blockSettings.customConditionAfter), 1), r(E("textarea", {
1462
1460
  "onUpdate:modelValue": n[7] ||= (e) => D.value = e,
1463
1461
  rows: "2",
1464
- class: T(b(zt))
1462
+ class: T(b(Rt))
1465
1463
  }, null, 2), [[w, D.value]])]),
1466
- E("div", Ri, [E("button", {
1464
+ E("div", Pi, [E("button", {
1467
1465
  type: "button",
1468
1466
  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",
1469
1467
  disabled: !C.value.trim(),
1470
- onClick: L
1471
- }, g(b(a).blockSettings.applyCondition), 9, zi)])
1472
- ])) : e.block.displayCondition && !F.value ? (s(), v(A, { key: 1 }, [e.block.displayCondition.description ? (s(), v("p", Bi, g(e.block.displayCondition.description), 1)) : y("", !0), E("div", Vi, [E("pre", Hi, g(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), v("pre", Ui, g(e.block.displayCondition.after), 1)) : y("", !0)])], 64)) : y("", !0)])]),
1468
+ onClick: I
1469
+ }, g(b(a).blockSettings.applyCondition), 9, Fi)])
1470
+ ])) : e.block.displayCondition && !F.value ? (s(), v(A, { key: 1 }, [e.block.displayCondition.description ? (s(), v("p", Ii, g(e.block.displayCondition.description), 1)) : y("", !0), E("div", Li, [E("pre", Ri, g(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), v("pre", zi, g(e.block.displayCondition.after), 1)) : y("", !0)])], 64)) : y("", !0)])]),
1473
1471
  _: 1
1474
1472
  }, 8, ["title", "open"])) : y("", !0)
1475
1473
  ], 2));
1476
1474
  }
1477
- }), Gi = ["title"], Ki = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, qi = {
1478
- key: 1,
1479
- class: "tpl:text-[var(--tpl-danger)]"
1480
- }, Ji = [
1481
- "aria-checked",
1482
- "aria-label",
1483
- "disabled"
1484
- ], Yi = /* @__PURE__ */ M({
1475
+ }), Vi = ["title"], Hi = /* @__PURE__ */ M({
1485
1476
  __name: "BooleanField",
1486
1477
  props: {
1487
1478
  field: {},
@@ -1490,36 +1481,35 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1490
1481
  },
1491
1482
  emits: ["update:modelValue"],
1492
1483
  setup(e, { emit: t }) {
1493
- let n = t, { t: r } = U();
1484
+ let n = t, { t: r } = R();
1494
1485
  return (t, i) => (s(), v("div", {
1495
1486
  class: "tpl:mb-3.5",
1496
1487
  title: e.readOnly ? b(r).customBlocks.dataSource.readOnlyTooltip : void 0
1497
- }, [E("label", { class: T(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", e.readOnly ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [E("span", Ki, [
1498
- j(g(e.field.label) + " ", 1),
1499
- e.readOnly ? (s(), S(b(mt), {
1488
+ }, [N(Z, {
1489
+ class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1490
+ "model-value": e.modelValue,
1491
+ label: e.field.label,
1492
+ required: e.field.required,
1493
+ disabled: e.readOnly,
1494
+ "onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
1495
+ }, {
1496
+ default: d(() => [j(g(e.field.label) + " ", 1), e.readOnly ? (s(), S(b(pt), {
1500
1497
  key: 0,
1501
1498
  size: 12,
1502
1499
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1503
- })) : y("", !0),
1504
- e.field.required ? (s(), v("span", qi, " * ")) : y("", !0)
1505
- ]), E("button", {
1506
- type: "button",
1507
- role: "switch",
1508
- "aria-checked": e.modelValue,
1509
- "aria-label": e.field.label,
1510
- class: T([
1511
- "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",
1512
- e.modelValue ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]",
1513
- e.readOnly ? "tpl:opacity-60 tpl:cursor-not-allowed" : "tpl:cursor-pointer"
1514
- ]),
1515
- disabled: e.readOnly,
1516
- onClick: i[0] ||= (t) => !e.readOnly && n("update:modelValue", !e.modelValue)
1517
- }, [E("span", { class: T(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", e.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, Ji)], 2)], 8, Gi));
1500
+ })) : y("", !0)]),
1501
+ _: 1
1502
+ }, 8, [
1503
+ "model-value",
1504
+ "label",
1505
+ "required",
1506
+ "disabled"
1507
+ ])], 8, Vi));
1518
1508
  }
1519
- }), Xi = { class: "tpl:mb-3.5" }, Zi = {
1509
+ }), Ui = { class: "tpl:mb-3.5" }, Wi = {
1520
1510
  key: 1,
1521
1511
  class: "tpl:text-[var(--tpl-danger)]"
1522
- }, Qi = /* @__PURE__ */ M({
1512
+ }, Gi = /* @__PURE__ */ M({
1523
1513
  __name: "FieldWrapper",
1524
1514
  props: {
1525
1515
  label: {},
@@ -1527,17 +1517,17 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1527
1517
  readOnly: { type: Boolean }
1528
1518
  },
1529
1519
  setup(e) {
1530
- return (n, r) => (s(), v("div", Xi, [E("label", { class: T(b(K)) }, [
1520
+ return (n, r) => (s(), v("div", Ui, [E("label", { class: T(b(q)) }, [
1531
1521
  j(g(e.label) + " ", 1),
1532
- e.readOnly ? (s(), S(b(mt), {
1522
+ e.readOnly ? (s(), S(b(pt), {
1533
1523
  key: 0,
1534
1524
  size: 12,
1535
1525
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1536
1526
  })) : y("", !0),
1537
- e.required ? (s(), v("span", Zi, "*")) : y("", !0)
1527
+ e.required ? (s(), v("span", Wi, "*")) : y("", !0)
1538
1528
  ], 2), t(n.$slots, "default")]));
1539
1529
  }
1540
- }), $i = /* @__PURE__ */ M({
1530
+ }), Ki = /* @__PURE__ */ M({
1541
1531
  __name: "ColorField",
1542
1532
  props: {
1543
1533
  field: {},
@@ -1546,13 +1536,13 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1546
1536
  },
1547
1537
  emits: ["update:modelValue"],
1548
1538
  setup(e, { emit: t }) {
1549
- let n = t, { t: r } = U();
1550
- return (t, i) => (s(), S(Qi, {
1539
+ let n = t, { t: r } = R();
1540
+ return (t, i) => (s(), S(Gi, {
1551
1541
  label: e.field.label,
1552
1542
  required: e.field.required,
1553
1543
  "read-only": e.readOnly
1554
1544
  }, {
1555
- default: d(() => [N(Y, {
1545
+ default: d(() => [N(X, {
1556
1546
  "model-value": e.modelValue,
1557
1547
  placeholder: e.field.placeholder,
1558
1548
  disabled: e.readOnly,
@@ -1571,15 +1561,15 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1571
1561
  "read-only"
1572
1562
  ]));
1573
1563
  }
1574
- }), ea = {
1564
+ }), qi = {
1575
1565
  key: 0,
1576
1566
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
1577
1567
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1578
- }, ta = [
1568
+ }, Ji = [
1579
1569
  "value",
1580
1570
  "placeholder",
1581
1571
  "title"
1582
- ], na = ["value", "placeholder"], ra = /* @__PURE__ */ M({
1572
+ ], Yi = ["value", "placeholder"], Xi = /* @__PURE__ */ M({
1583
1573
  __name: "ImageField",
1584
1574
  props: {
1585
1575
  field: {},
@@ -1588,7 +1578,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1588
1578
  },
1589
1579
  emits: ["update:modelValue"],
1590
1580
  setup(e, { emit: t }) {
1591
- let n = e, r = t, { t: i } = U(), a = u(tt, null), o = re(), c = _(() => !!a);
1581
+ let n = e, r = t, { t: i } = R(), a = u(Ge, null), o = de(), c = _(() => !!a);
1592
1582
  async function l() {
1593
1583
  let e = await a?.({ accept: ["images"] });
1594
1584
  o.alive && e && r("update:modelValue", e.url);
@@ -1609,12 +1599,12 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1609
1599
  }
1610
1600
  }
1611
1601
  }
1612
- let { isOver: C } = Ne({
1602
+ let { isOver: C } = ae({
1613
1603
  target: f,
1614
1604
  enabled: h,
1615
1605
  onFiles: x
1616
1606
  });
1617
- return (t, n) => (s(), S(Qi, {
1607
+ return (t, n) => (s(), S(Gi, {
1618
1608
  label: e.field.label,
1619
1609
  required: e.field.required,
1620
1610
  "read-only": e.readOnly
@@ -1624,35 +1614,35 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1624
1614
  ref: f,
1625
1615
  class: "tpl:relative"
1626
1616
  }, [
1627
- h.value && (b(C) || m.value) ? (s(), v("div", ea, [m.value ? (s(), v(A, { key: 0 }, [N(b(Ee), {
1617
+ h.value && (b(C) || m.value) ? (s(), v("div", qi, [m.value ? (s(), v(A, { key: 0 }, [N(b(B), {
1628
1618
  class: "tpl-spinner",
1629
1619
  size: 18,
1630
1620
  "stroke-width": 2
1631
- }), j(" " + g(b(i).image.uploading), 1)], 64)) : (s(), v(A, { key: 1 }, [N(b(st), {
1621
+ }), j(" " + g(b(i).image.uploading), 1)], 64)) : (s(), v(A, { key: 1 }, [N(b(Be), {
1632
1622
  size: 18,
1633
1623
  "stroke-width": 1.5
1634
1624
  }), j(" " + g(b(i).image.dropToUpload), 1)], 64))])) : y("", !0),
1635
1625
  e.readOnly ? (s(), v("input", {
1636
1626
  key: 1,
1637
1627
  type: "url",
1638
- class: T([b(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1628
+ class: T([b(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1639
1629
  value: e.modelValue,
1640
1630
  placeholder: e.field.placeholder || "https://...",
1641
1631
  disabled: "",
1642
1632
  title: b(i).customBlocks.dataSource.readOnlyTooltip
1643
- }, null, 10, ta)) : (s(), v("input", {
1633
+ }, null, 10, Ji)) : (s(), v("input", {
1644
1634
  key: 2,
1645
1635
  type: "url",
1646
- class: T(b(G)),
1636
+ class: T(b(K)),
1647
1637
  value: e.modelValue,
1648
1638
  placeholder: e.field.placeholder || "https://...",
1649
1639
  onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
1650
- }, null, 42, na)),
1640
+ }, null, 42, Yi)),
1651
1641
  c.value && !e.readOnly ? (s(), v("button", {
1652
1642
  key: 3,
1653
1643
  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)]",
1654
1644
  onClick: n[1] ||= (e) => l()
1655
- }, [N(b(dt), {
1645
+ }, [N(b(De), {
1656
1646
  size: 14,
1657
1647
  "stroke-width": 1.5
1658
1648
  }), j(" " + g(b(i).image.browseMedia), 1)])) : y("", !0)
@@ -1664,7 +1654,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1664
1654
  "read-only"
1665
1655
  ]));
1666
1656
  }
1667
- }), ia = [
1657
+ }), Zi = [
1668
1658
  "value",
1669
1659
  "placeholder",
1670
1660
  "min",
@@ -1672,7 +1662,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1672
1662
  "step",
1673
1663
  "disabled",
1674
1664
  "title"
1675
- ], aa = /* @__PURE__ */ M({
1665
+ ], Qi = /* @__PURE__ */ M({
1676
1666
  __name: "NumberField",
1677
1667
  props: {
1678
1668
  field: {},
@@ -1681,15 +1671,15 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1681
1671
  },
1682
1672
  emits: ["update:modelValue"],
1683
1673
  setup(e, { emit: t }) {
1684
- let n = t, { t: r } = U();
1685
- return (t, i) => (s(), S(Qi, {
1674
+ let n = t, { t: r } = R();
1675
+ return (t, i) => (s(), S(Gi, {
1686
1676
  label: e.field.label,
1687
1677
  required: e.field.required,
1688
1678
  "read-only": e.readOnly
1689
1679
  }, {
1690
1680
  default: d(() => [E("input", {
1691
1681
  type: "number",
1692
- class: T([b(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1682
+ class: T([b(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1693
1683
  value: e.modelValue,
1694
1684
  placeholder: e.field.placeholder,
1695
1685
  min: e.field.min,
@@ -1698,7 +1688,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1698
1688
  disabled: e.readOnly,
1699
1689
  title: e.readOnly ? b(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1700
1690
  onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
1701
- }, null, 42, ia)]),
1691
+ }, null, 42, Zi)]),
1702
1692
  _: 1
1703
1693
  }, 8, [
1704
1694
  "label",
@@ -1706,10 +1696,10 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1706
1696
  "read-only"
1707
1697
  ]));
1708
1698
  }
1709
- }), oa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, sa = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ca = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, la = ["title", "onClick"], ua = {
1699
+ }), $i = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ea = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ta = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, na = ["title", "onClick"], ra = {
1710
1700
  key: 1,
1711
1701
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1712
- }, da = /* @__PURE__ */ M({
1702
+ }, ia = /* @__PURE__ */ M({
1713
1703
  __name: "RepeatableField",
1714
1704
  props: {
1715
1705
  field: {},
@@ -1718,7 +1708,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1718
1708
  },
1719
1709
  emits: ["update:modelValue"],
1720
1710
  setup(e, { emit: t }) {
1721
- let n = e, r = t, { t: i } = U(), a = _(() => n.modelValue || []), c = _(() => !n.field.maxItems || a.value.length < n.field.maxItems), u = _(() => !n.field.minItems || a.value.length > n.field.minItems);
1711
+ let n = e, r = t, { t: i } = R(), a = _(() => n.modelValue || []), c = _(() => !n.field.maxItems || a.value.length < n.field.maxItems), u = _(() => !n.field.minItems || a.value.length > n.field.minItems);
1722
1712
  function f() {
1723
1713
  if (!c.value || n.readOnly) return;
1724
1714
  let e = {};
@@ -1737,25 +1727,25 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1737
1727
  } : r);
1738
1728
  r("update:modelValue", i);
1739
1729
  }
1740
- return (t, n) => (s(), S(Qi, {
1730
+ return (t, n) => (s(), S(Gi, {
1741
1731
  label: e.field.label,
1742
1732
  required: e.field.required,
1743
1733
  "read-only": e.readOnly
1744
1734
  }, {
1745
- default: d(() => [E("div", oa, [
1735
+ default: d(() => [E("div", $i, [
1746
1736
  (s(!0), v(A, null, l(a.value, (t, n) => (s(), v("div", {
1747
1737
  key: `${e.field.key}-${n}`,
1748
1738
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1749
- }, [E("div", sa, [E("span", ca, " #" + g(n + 1), 1), u.value && !e.readOnly ? (s(), v("button", {
1739
+ }, [E("div", ea, [E("span", ta, " #" + g(n + 1), 1), u.value && !e.readOnly ? (s(), v("button", {
1750
1740
  key: 0,
1751
1741
  type: "button",
1752
1742
  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)]",
1753
1743
  title: b(i).customBlocks.fields.removeItem,
1754
1744
  onClick: (e) => p(n)
1755
- }, [N(b(He), {
1745
+ }, [N(b(et), {
1756
1746
  size: 12,
1757
1747
  "stroke-width": 2
1758
- })], 8, la)) : y("", !0)]), (s(!0), v(A, null, l(e.field.fields, (r) => (s(), S(o(b(ba)(r.type)), {
1748
+ })], 8, na)) : y("", !0)]), (s(!0), v(A, null, l(e.field.fields, (r) => (s(), S(o(b(pa)(r.type)), {
1759
1749
  key: r.key,
1760
1750
  field: r,
1761
1751
  "model-value": t[r.key],
@@ -1770,13 +1760,13 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1770
1760
  c.value && !e.readOnly ? (s(), v("button", {
1771
1761
  key: 0,
1772
1762
  type: "button",
1773
- class: T(b(Vt)),
1763
+ class: T(b(Bt)),
1774
1764
  onClick: f
1775
- }, [N(b(W), {
1765
+ }, [N(b(G), {
1776
1766
  size: 14,
1777
1767
  "stroke-width": 2
1778
1768
  }), j(" " + g(b(i).customBlocks.fields.addItem), 1)], 2)) : y("", !0),
1779
- !c.value && !e.readOnly ? (s(), v("p", ua, g(b(i).customBlocks.fields.maxItemsReached), 1)) : y("", !0)
1769
+ !c.value && !e.readOnly ? (s(), v("p", ra, g(b(i).customBlocks.fields.maxItemsReached), 1)) : y("", !0)
1780
1770
  ])]),
1781
1771
  _: 1
1782
1772
  }, 8, [
@@ -1785,11 +1775,11 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1785
1775
  "read-only"
1786
1776
  ]));
1787
1777
  }
1788
- }), fa = [
1778
+ }), aa = [
1789
1779
  "value",
1790
1780
  "disabled",
1791
1781
  "title"
1792
- ], pa = ["value"], ma = /* @__PURE__ */ M({
1782
+ ], oa = ["value"], sa = /* @__PURE__ */ M({
1793
1783
  __name: "SelectField",
1794
1784
  props: {
1795
1785
  field: {},
@@ -1798,14 +1788,14 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1798
1788
  },
1799
1789
  emits: ["update:modelValue"],
1800
1790
  setup(e, { emit: t }) {
1801
- let n = t, { t: r } = U();
1802
- return (t, i) => (s(), S(Qi, {
1791
+ let n = t, { t: r } = R();
1792
+ return (t, i) => (s(), S(Gi, {
1803
1793
  label: e.field.label,
1804
1794
  required: e.field.required,
1805
1795
  "read-only": e.readOnly
1806
1796
  }, {
1807
1797
  default: d(() => [E("select", {
1808
- class: T([b(G), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1798
+ class: T([b(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1809
1799
  value: e.modelValue,
1810
1800
  disabled: e.readOnly,
1811
1801
  title: e.readOnly ? b(r).customBlocks.dataSource.readOnlyTooltip : void 0,
@@ -1813,7 +1803,7 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1813
1803
  }, [(s(!0), v(A, null, l(e.field.options, (e) => (s(), v("option", {
1814
1804
  key: e.value,
1815
1805
  value: e.value
1816
- }, g(e.label), 9, pa))), 128))], 42, fa)]),
1806
+ }, g(e.label), 9, oa))), 128))], 42, aa)]),
1817
1807
  _: 1
1818
1808
  }, 8, [
1819
1809
  "label",
@@ -1821,11 +1811,11 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1821
1811
  "read-only"
1822
1812
  ]));
1823
1813
  }
1824
- }), ha = [
1814
+ }), ca = [
1825
1815
  "value",
1826
1816
  "placeholder",
1827
1817
  "title"
1828
- ], ga = /* @__PURE__ */ M({
1818
+ ], la = /* @__PURE__ */ M({
1829
1819
  __name: "TextField",
1830
1820
  props: {
1831
1821
  field: {},
@@ -1834,8 +1824,8 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1834
1824
  },
1835
1825
  emits: ["update:modelValue"],
1836
1826
  setup(e, { emit: t }) {
1837
- let n = t, { t: r } = U();
1838
- return (t, i) => (s(), S(Qi, {
1827
+ let n = t, { t: r } = R();
1828
+ return (t, i) => (s(), S(Gi, {
1839
1829
  label: e.field.label,
1840
1830
  required: e.field.required,
1841
1831
  "read-only": e.readOnly
@@ -1843,12 +1833,12 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1843
1833
  default: d(() => [e.readOnly ? (s(), v("input", {
1844
1834
  key: 0,
1845
1835
  type: "text",
1846
- class: T([b(G), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1836
+ class: T([b(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1847
1837
  value: e.modelValue,
1848
1838
  placeholder: e.field.placeholder,
1849
1839
  disabled: "",
1850
1840
  title: b(r).customBlocks.dataSource.readOnlyTooltip
1851
- }, null, 10, ha)) : (s(), S(Q, {
1841
+ }, null, 10, ca)) : (s(), S($, {
1852
1842
  key: 1,
1853
1843
  "model-value": e.modelValue,
1854
1844
  placeholder: e.field.placeholder,
@@ -1861,12 +1851,12 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1861
1851
  "read-only"
1862
1852
  ]));
1863
1853
  }
1864
- }), _a = [
1854
+ }), ua = [
1865
1855
  "value",
1866
1856
  "placeholder",
1867
1857
  "title"
1868
- ], va = "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", ya = {
1869
- text: ga,
1858
+ ], da = "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", fa = {
1859
+ text: la,
1870
1860
  textarea: /* @__PURE__ */ M({
1871
1861
  __name: "TextareaField",
1872
1862
  props: {
@@ -1876,8 +1866,8 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1876
1866
  },
1877
1867
  emits: ["update:modelValue"],
1878
1868
  setup(e, { emit: t }) {
1879
- let n = t, { t: r } = U();
1880
- return (t, i) => (s(), S(Qi, {
1869
+ let n = t, { t: r } = R();
1870
+ return (t, i) => (s(), S(Gi, {
1881
1871
  label: e.field.label,
1882
1872
  required: e.field.required,
1883
1873
  "read-only": e.readOnly
@@ -1889,8 +1879,8 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1889
1879
  rows: "3",
1890
1880
  disabled: "",
1891
1881
  title: b(r).customBlocks.dataSource.readOnlyTooltip,
1892
- class: T(va)
1893
- }, null, 8, _a)) : (s(), S(Un, {
1882
+ class: T(da)
1883
+ }, null, 8, ua)) : (s(), S(Un, {
1894
1884
  key: 1,
1895
1885
  "model-value": e.modelValue,
1896
1886
  placeholder: e.field.placeholder,
@@ -1904,42 +1894,42 @@ var wn = ["aria-label", "onKeydown"], Tn = ["data-tooltip"], En = ["data-tooltip
1904
1894
  ]));
1905
1895
  }
1906
1896
  }),
1907
- image: ra,
1908
- color: $i,
1909
- number: aa,
1910
- select: ma,
1911
- boolean: Yi,
1912
- repeatable: da
1897
+ image: Xi,
1898
+ color: Ki,
1899
+ number: Qi,
1900
+ select: sa,
1901
+ boolean: Hi,
1902
+ repeatable: ia
1913
1903
  };
1914
- function ba(e) {
1915
- return ya[e] ?? ga;
1904
+ function pa(e) {
1905
+ return fa[e] ?? la;
1916
1906
  }
1917
1907
  //#endregion
1918
1908
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1919
- var xa = {
1909
+ var ma = {
1920
1910
  key: 0,
1921
1911
  class: "tpl:p-4"
1922
- }, Sa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ca = { key: 1 }, wa = {
1912
+ }, ha = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ga = { key: 1 }, _a = {
1923
1913
  key: 0,
1924
1914
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1925
- }, Ta = {
1915
+ }, va = {
1926
1916
  key: 1,
1927
1917
  class: "tpl:mb-4"
1928
- }, Ea = {
1918
+ }, ya = {
1929
1919
  key: 1,
1930
1920
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
1931
- }, Da = {
1921
+ }, ba = {
1932
1922
  key: 0,
1933
1923
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1934
- }, Oa = {
1924
+ }, xa = {
1935
1925
  key: 2,
1936
1926
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
1937
- }, ka = /* @__PURE__ */ M({
1927
+ }, Sa = /* @__PURE__ */ M({
1938
1928
  __name: "CustomBlockToolbar",
1939
1929
  props: { block: {} },
1940
1930
  emits: ["updateFieldValues", "updateDataSourceFetched"],
1941
1931
  setup(e, { emit: t }) {
1942
- let n = e, r = t, { t: i } = U(), a = u(Ie, []), c = _(() => a.find((e) => e.type === n.block.customType)), { isFetching: d, fetchError: f, fetch: p, hasDataSource: m, needsFetch: h } = Te({
1932
+ let n = e, r = t, { t: i } = R(), a = u(je, []), c = _(() => a.find((e) => e.type === n.block.customType)), { isFetching: d, fetchError: f, fetch: p, hasDataSource: m, needsFetch: h } = z({
1943
1933
  definition: c,
1944
1934
  block: _(() => n.block),
1945
1935
  onUpdate: (e, t) => {
@@ -1955,23 +1945,23 @@ var xa = {
1955
1945
  [e]: t
1956
1946
  });
1957
1947
  }
1958
- return (t, n) => c.value ? (s(), v("div", Ca, [
1959
- c.value.description ? (s(), v("p", wa, g(c.value.description), 1)) : y("", !0),
1960
- b(m) ? (s(), v("div", Ta, [b(h) && !b(d) ? (s(), v("button", {
1948
+ return (t, n) => c.value ? (s(), v("div", ga, [
1949
+ c.value.description ? (s(), v("p", _a, g(c.value.description), 1)) : y("", !0),
1950
+ b(m) ? (s(), v("div", va, [b(h) && !b(d) ? (s(), v("button", {
1961
1951
  key: 0,
1962
1952
  type: "button",
1963
1953
  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)]",
1964
1954
  onClick: n[0] ||= (...e) => b(p) && b(p)(...e)
1965
- }, g(c.value?.dataSource?.label || b(i).customBlocks.dataSource.fetchButton), 1)) : (s(), v("div", Ea, [b(d) ? (s(), v("div", Da, g(b(i).customBlocks.dataSource.fetching), 1)) : (s(), v("button", {
1955
+ }, g(c.value?.dataSource?.label || b(i).customBlocks.dataSource.fetchButton), 1)) : (s(), v("div", ya, [b(d) ? (s(), v("div", ba, g(b(i).customBlocks.dataSource.fetching), 1)) : (s(), v("button", {
1966
1956
  key: 1,
1967
1957
  type: "button",
1968
1958
  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)]",
1969
1959
  onClick: n[1] ||= (...e) => b(p) && b(p)(...e)
1970
- }, [N(b(lt), { size: 12 }), j(" " + g(b(i).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), v("p", Oa, [N(b(Ke), {
1960
+ }, [N(b(ct), { size: 12 }), j(" " + g(b(i).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), v("p", xa, [N(b(ge), {
1971
1961
  size: 14,
1972
1962
  class: "tpl:shrink-0"
1973
1963
  }), j(" " + g(b(i).customBlocks.dataSource.fetchError), 1)])) : y("", !0)])) : y("", !0),
1974
- (s(!0), v(A, null, l(c.value.fields, (t) => (s(), S(o(b(ba)(t.type)), {
1964
+ (s(!0), v(A, null, l(c.value.fields, (t) => (s(), S(o(b(pa)(t.type)), {
1975
1965
  key: t.key,
1976
1966
  field: t,
1977
1967
  "model-value": e.block.fieldValues[t.key],
@@ -1983,19 +1973,19 @@ var xa = {
1983
1973
  "read-only",
1984
1974
  "onUpdate:modelValue"
1985
1975
  ]))), 128))
1986
- ])) : (s(), v("div", xa, [E("p", Sa, g(b(i).customBlocks.toolbar.noDefinition), 1)]));
1976
+ ])) : (s(), v("div", ma, [E("p", ha, g(b(i).customBlocks.toolbar.noDefinition), 1)]));
1987
1977
  }
1988
- }), Aa = { class: "tpl:mb-3.5" }, ja = { class: "tpl:mb-3.5" }, Ma = { class: "tpl:mb-3.5" }, Na = { class: "tpl:flex tpl:items-stretch" }, Pa = ["value"], Fa = /* @__PURE__ */ M({
1978
+ }), Ca = { class: "tpl:mb-3.5" }, wa = { class: "tpl:mb-3.5" }, Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:flex tpl:items-stretch" }, Da = ["value"], Oa = /* @__PURE__ */ M({
1989
1979
  __name: "DividerToolbar",
1990
1980
  props: { block: {} },
1991
1981
  emits: ["update"],
1992
1982
  setup(e, { emit: t }) {
1993
- let n = t, { t: r } = U();
1983
+ let n = t, { t: r } = R();
1994
1984
  function i(e, t) {
1995
1985
  n("update", { [e]: t });
1996
1986
  }
1997
1987
  return (t, n) => (s(), v(A, null, [
1998
- E("div", Aa, [E("label", { class: T(b(K)) }, g(b(r).divider.style), 3), N(Z, {
1988
+ E("div", Ca, [E("label", { class: T(b(q)) }, g(b(r).divider.style), 3), N(Gt, {
1999
1989
  options: [
2000
1990
  {
2001
1991
  value: "solid",
@@ -2013,129 +2003,126 @@ var xa = {
2013
2003
  "model-value": e.block.lineStyle,
2014
2004
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
2015
2005
  }, null, 8, ["options", "model-value"])]),
2016
- E("div", ja, [E("label", { class: T(b(K)) }, g(b(r).divider.color), 3), N(Y, {
2006
+ E("div", wa, [E("label", { class: T(b(q)) }, g(b(r).divider.color), 3), N(X, {
2017
2007
  "model-value": e.block.color,
2018
2008
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
2019
2009
  }, null, 8, ["model-value"])]),
2020
- E("div", Ma, [E("label", { class: T(b(K)) }, g(b(r).divider.thickness), 3), E("div", Na, [E("input", {
2010
+ E("div", Ta, [E("label", { class: T(b(q)) }, g(b(r).divider.thickness), 3), E("div", Ea, [E("input", {
2021
2011
  type: "number",
2022
- class: T(b(J)),
2012
+ class: T(b(Y)),
2023
2013
  value: e.block.thickness,
2024
2014
  min: "1",
2025
2015
  max: "10",
2026
2016
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
2027
- }, null, 42, Pa), E("span", { class: T(b(q)) }, "px", 2)])])
2017
+ }, null, 42, Da), E("span", { class: T(b(J)) }, "px", 2)])])
2028
2018
  ], 64));
2029
2019
  }
2030
- }), Ia = { class: "tpl:mb-3.5" }, La = ["value"], Ra = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, za = /* @__PURE__ */ M({
2020
+ }), ka = { class: "tpl:mb-3.5" }, Aa = ["value"], ja = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Ma = /* @__PURE__ */ M({
2031
2021
  __name: "HtmlToolbar",
2032
2022
  props: { block: {} },
2033
2023
  emits: ["update"],
2034
2024
  setup(e, { emit: t }) {
2035
- let n = t, { t: r } = U();
2036
- return (t, i) => (s(), v("div", Ia, [
2037
- E("label", { class: T(b(K)) }, g(b(r).html.content), 3),
2025
+ let n = t, { t: r } = R();
2026
+ return (t, i) => (s(), v("div", ka, [
2027
+ E("label", { class: T(b(q)) }, g(b(r).html.content), 3),
2038
2028
  E("textarea", {
2039
2029
  value: e.block.content,
2040
2030
  placeholder: "<div>...</div>",
2041
2031
  rows: "10",
2042
- class: T(b(zt)),
2032
+ class: T(b(Rt)),
2043
2033
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
2044
- }, null, 42, La),
2045
- E("p", Ra, [N(b(R), {
2034
+ }, null, 42, Aa),
2035
+ E("p", ja, [N(b(ot), {
2046
2036
  size: 12,
2047
2037
  class: "tpl:mt-0.5 tpl:shrink-0"
2048
2038
  }), j(" " + g(b(r).html.sanitizationHint), 1)])
2049
2039
  ]));
2050
2040
  }
2051
- }), Ba = { class: "tpl:mb-3.5" }, Va = {
2041
+ }), Na = { class: "tpl:mb-3.5" }, Pa = {
2052
2042
  key: 0,
2053
2043
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
2054
2044
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
2055
- }, Ha = {
2045
+ }, Fa = {
2056
2046
  key: 0,
2057
2047
  class: "tpl:mb-3.5"
2058
- }, Ua = ["value", "placeholder"], Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]" }, Ka = ["checked"], qa = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Ja = { class: "tpl:mb-3.5" }, Ya = ["value"], Xa = { value: "full" }, Za = { value: "custom" }, Qa = {
2048
+ }, Ia = ["value", "placeholder"], La = { class: "tpl:mb-3.5" }, Ra = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, za = { class: "tpl:mb-3.5" }, Ba = ["value"], Va = { value: "full" }, Ha = { value: "custom" }, Ua = {
2059
2049
  key: 0,
2060
2050
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2061
- }, $a = ["value"], eo = { class: "tpl:mb-3.5" }, to = { class: "tpl:mb-3.5" }, no = {
2062
- key: 0,
2063
- class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
2064
- }, ro = ["checked"], io = 350, ao = /* @__PURE__ */ M({
2051
+ }, Wa = ["value"], Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:mb-3.5" }, qa = 350, Ja = /* @__PURE__ */ M({
2065
2052
  __name: "ImageToolbar",
2066
2053
  props: { block: {} },
2067
2054
  emits: ["update"],
2068
2055
  setup(e, { emit: t }) {
2069
- let n = e, r = t, { t: i } = U(), a = u(tt, null), o = u($e, ut.liquid), c = re(), l = _(() => !!a), d = p(!1), f = p(!1), { start: m } = ft(() => {
2070
- d.value = !1;
2071
- }, 1e3, { immediate: !1 }), h = [
2056
+ let n = e, r = t, { t: i } = R(), a = u(Ge, null), o = u(nt, Ee.liquid), c = de(), l = _(() => !!a), f = p(!1), m = p(!1), { start: h } = Te(() => {
2057
+ f.value = !1;
2058
+ }, 1e3, { immediate: !1 }), x = [
2072
2059
  300,
2073
2060
  400,
2074
2061
  500
2075
- ], x = _(() => {
2062
+ ], C = _(() => {
2076
2063
  let e = n.block.width;
2077
- return e === "full" ? "full" : h.includes(e) ? String(e) : "custom";
2064
+ return e === "full" ? "full" : x.includes(e) ? String(e) : "custom";
2078
2065
  });
2079
- function S(e, t) {
2066
+ function w(e, t) {
2080
2067
  r("update", { [e]: t });
2081
2068
  }
2082
- function C(e) {
2069
+ function D(e) {
2083
2070
  if (e === "custom") {
2084
2071
  let e = n.block.width;
2085
- (typeof e != "number" || h.includes(e)) && S("width", io);
2072
+ (typeof e != "number" || x.includes(e)) && w("width", qa);
2086
2073
  return;
2087
2074
  }
2088
- S("width", e === "full" ? "full" : Number(e));
2075
+ w("width", e === "full" ? "full" : Number(e));
2089
2076
  }
2090
- function w(e) {
2077
+ function O(e) {
2091
2078
  let t = Number(e);
2092
- !Number.isFinite(t) || t <= 0 || S("width", t);
2079
+ !Number.isFinite(t) || t <= 0 || w("width", t);
2093
2080
  }
2094
- async function D() {
2081
+ async function k() {
2095
2082
  let e = await a?.({ accept: ["images"] });
2096
- c.alive && e && (S("src", e.url), e.alt && (S("alt", e.alt), f.value = !0), d.value = !0, m());
2083
+ c.alive && e && (w("src", e.url), e.alt && (w("alt", e.alt), m.value = !0), f.value = !0, h());
2097
2084
  }
2098
- let O = p(), k = p(!1), M = _(() => De(n.block.src, o)), P = _(() => l.value && !k.value && !M.value);
2099
- async function F(e) {
2085
+ let M = p(), P = p(!1), F = _(() => U(n.block.src, o)), ee = _(() => l.value && !P.value && !F.value);
2086
+ async function I(e) {
2100
2087
  if (a) {
2101
- k.value = !0;
2088
+ P.value = !0;
2102
2089
  try {
2103
2090
  let t = await a({
2104
2091
  accept: ["images"],
2105
2092
  files: e
2106
2093
  });
2107
2094
  if (!c.alive) return;
2108
- t && (S("src", t.url), t.alt && (S("alt", t.alt), f.value = !0), d.value = !0, m());
2095
+ t && (w("src", t.url), t.alt && (w("alt", t.alt), m.value = !0), f.value = !0, h());
2109
2096
  } finally {
2110
- c.alive && (k.value = !1);
2097
+ c.alive && (P.value = !1);
2111
2098
  }
2112
2099
  }
2113
2100
  }
2114
- let { isOver: I } = Ne({
2115
- target: O,
2116
- enabled: P,
2117
- onFiles: F
2101
+ let { isOver: L } = ae({
2102
+ target: M,
2103
+ enabled: ee,
2104
+ onFiles: I
2118
2105
  });
2119
2106
  return (t, n) => (s(), v(A, null, [
2120
- E("div", Ba, [E("label", { class: T(b(K)) }, g(b(i).image.imageUrl), 3), E("div", {
2107
+ E("div", Na, [E("label", { class: T(b(q)) }, g(b(i).image.imageUrl), 3), E("div", {
2121
2108
  ref_key: "dropZoneRef",
2122
- ref: O,
2109
+ ref: M,
2123
2110
  class: "tpl:relative"
2124
2111
  }, [
2125
- P.value && (b(I) || k.value) ? (s(), v("div", Va, [k.value ? (s(), v(A, { key: 0 }, [N(b(Ee), {
2112
+ ee.value && (b(L) || P.value) ? (s(), v("div", Pa, [P.value ? (s(), v(A, { key: 0 }, [N(b(B), {
2126
2113
  class: "tpl-spinner",
2127
2114
  size: 18,
2128
2115
  "stroke-width": 2
2129
- }), j(" " + g(b(i).image.uploading), 1)], 64)) : (s(), v(A, { key: 1 }, [N(b(st), {
2116
+ }), j(" " + g(b(i).image.uploading), 1)], 64)) : (s(), v(A, { key: 1 }, [N(b(Be), {
2130
2117
  size: 18,
2131
2118
  "stroke-width": 1.5
2132
2119
  }), j(" " + g(b(i).image.dropToUpload), 1)], 64))])) : y("", !0),
2133
- N(Q, {
2120
+ N($, {
2134
2121
  "model-value": e.block.src,
2135
2122
  type: "url",
2136
2123
  placeholder: b(i).image.imageUrlPlaceholder,
2137
- pulse: d.value,
2138
- "onUpdate:modelValue": n[0] ||= (e) => S("src", e)
2124
+ pulse: f.value,
2125
+ "onUpdate:modelValue": n[0] ||= (e) => w("src", e)
2139
2126
  }, null, 8, [
2140
2127
  "model-value",
2141
2128
  "placeholder",
@@ -2149,63 +2136,66 @@ var xa = {
2149
2136
  color: "var(--tpl-primary)",
2150
2137
  "background-color": "var(--tpl-bg)"
2151
2138
  },
2152
- onClick: D
2153
- }, [N(b(dt), {
2139
+ onClick: k
2140
+ }, [N(b(De), {
2154
2141
  size: 14,
2155
2142
  "stroke-width": 1.5
2156
2143
  }), j(" " + g(b(i).image.browseMedia), 1)])) : y("", !0)
2157
2144
  ], 512)]),
2158
- b(De)(e.block.src, b(o)) ? (s(), v("div", Ha, [E("label", { class: T(b(K)) }, [j(g(b(i).image.placeholderUrl) + " ", 1), n[9] ||= E("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, g("(optional)"), -1)], 2), E("input", {
2145
+ b(U)(e.block.src, b(o)) ? (s(), v("div", Fa, [E("label", { class: T(b(q)) }, [j(g(b(i).image.placeholderUrl) + " ", 1), n[9] ||= E("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, g("(optional)"), -1)], 2), E("input", {
2159
2146
  type: "url",
2160
- class: T(b(G)),
2147
+ class: T(b(K)),
2161
2148
  value: e.block.placeholderUrl || "",
2162
2149
  placeholder: b(i).image.placeholderUrlPlaceholder,
2163
- onInput: n[1] ||= (e) => S("placeholderUrl", e.target.value)
2164
- }, null, 42, Ua)])) : y("", !0),
2165
- E("div", Wa, [
2166
- E("label", { class: T(b(K)) }, g(b(i).image.altText), 3),
2167
- N(Q, {
2150
+ onInput: n[1] ||= (e) => w("placeholderUrl", e.target.value)
2151
+ }, null, 42, Ia)])) : y("", !0),
2152
+ E("div", La, [
2153
+ E("label", { class: T(b(q)) }, g(b(i).image.altText), 3),
2154
+ N($, {
2168
2155
  "model-value": e.block.alt,
2169
2156
  type: "text",
2170
2157
  placeholder: b(i).image.altTextPlaceholder,
2171
- pulse: f.value,
2158
+ pulse: m.value,
2172
2159
  disabled: e.block.decorative === !0,
2173
- "onUpdate:modelValue": n[2] ||= (e) => S("alt", e)
2160
+ "onUpdate:modelValue": n[2] ||= (e) => w("alt", e)
2174
2161
  }, null, 8, [
2175
2162
  "model-value",
2176
2163
  "placeholder",
2177
2164
  "pulse",
2178
2165
  "disabled"
2179
2166
  ]),
2180
- E("label", Ga, [E("input", {
2181
- type: "checkbox",
2182
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2183
- checked: e.block.decorative === !0,
2184
- onChange: n[3] ||= (e) => S("decorative", e.target.checked)
2185
- }, null, 40, Ka), E("span", null, [j(g(b(i).image.decorative) + " ", 1), E("span", qa, g(b(i).image.decorativeHint), 1)])])
2167
+ N(Z, {
2168
+ class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2169
+ "model-value": e.block.decorative === !0,
2170
+ label: b(i).image.decorative,
2171
+ "onUpdate:modelValue": n[3] ||= (e) => w("decorative", e)
2172
+ }, {
2173
+ default: d(() => [E("span", null, [j(g(b(i).image.decorative) + " ", 1), E("span", Ra, g(b(i).image.decorativeHint), 1)])]),
2174
+ _: 1
2175
+ }, 8, ["model-value", "label"])
2186
2176
  ]),
2187
- E("div", Ja, [
2188
- E("label", { class: T(b(K)) }, g(b(i).image.width), 3),
2177
+ E("div", za, [
2178
+ E("label", { class: T(b(q)) }, g(b(i).image.width), 3),
2189
2179
  E("select", {
2190
- class: T(b(G)),
2191
- value: x.value,
2192
- onChange: n[4] ||= (e) => C(e.target.value)
2180
+ class: T(b(K)),
2181
+ value: C.value,
2182
+ onChange: n[4] ||= (e) => D(e.target.value)
2193
2183
  }, [
2194
- E("option", Xa, g(b(i).image.fullWidth), 1),
2184
+ E("option", Va, g(b(i).image.fullWidth), 1),
2195
2185
  n[10] ||= E("option", { value: "300" }, "300px", -1),
2196
2186
  n[11] ||= E("option", { value: "400" }, "400px", -1),
2197
2187
  n[12] ||= E("option", { value: "500" }, "500px", -1),
2198
- E("option", Za, g(b(i).image.widthCustom), 1)
2199
- ], 42, Ya),
2200
- x.value === "custom" ? (s(), v("div", Qa, [E("input", {
2188
+ E("option", Ha, g(b(i).image.widthCustom), 1)
2189
+ ], 42, Ba),
2190
+ C.value === "custom" ? (s(), v("div", Ua, [E("input", {
2201
2191
  type: "number",
2202
- class: T(b(J)),
2203
- value: typeof e.block.width == "number" ? e.block.width : io,
2192
+ class: T(b(Y)),
2193
+ value: typeof e.block.width == "number" ? e.block.width : qa,
2204
2194
  min: "20",
2205
- onInput: n[5] ||= (e) => w(e.target.value)
2206
- }, null, 42, $a), E("span", { class: T(b(q)) }, "px", 2)])) : y("", !0)
2195
+ onInput: n[5] ||= (e) => O(e.target.value)
2196
+ }, null, 42, Wa), E("span", { class: T(b(J)) }, "px", 2)])) : y("", !0)
2207
2197
  ]),
2208
- E("div", eo, [E("label", { class: T(b(K)) }, g(b(i).title.align), 3), N(Z, {
2198
+ E("div", Ga, [E("label", { class: T(b(q)) }, g(b(i).title.align), 3), N(Gt, {
2209
2199
  options: [
2210
2200
  {
2211
2201
  value: "left",
@@ -2221,30 +2211,31 @@ var xa = {
2221
2211
  }
2222
2212
  ],
2223
2213
  "model-value": e.block.align,
2224
- "onUpdate:modelValue": n[6] ||= (e) => S("align", e)
2214
+ "onUpdate:modelValue": n[6] ||= (e) => w("align", e)
2225
2215
  }, null, 8, ["options", "model-value"])]),
2226
- E("div", to, [
2227
- E("label", { class: T(b(K)) }, g(b(i).image.linkUrl), 3),
2228
- N(Q, {
2216
+ E("div", Ka, [
2217
+ E("label", { class: T(b(q)) }, g(b(i).image.linkUrl), 3),
2218
+ N($, {
2229
2219
  "model-value": e.block.linkUrl || "",
2230
2220
  type: "url",
2231
2221
  placeholder: b(i).image.imageUrlPlaceholder,
2232
- "onUpdate:modelValue": n[7] ||= (e) => S("linkUrl", e)
2222
+ "onUpdate:modelValue": n[7] ||= (e) => w("linkUrl", e)
2233
2223
  }, null, 8, ["model-value", "placeholder"]),
2234
- e.block.linkUrl ? (s(), v("label", no, [E("input", {
2235
- type: "checkbox",
2236
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2237
- checked: e.block.linkOpenInNewTab ?? !1,
2238
- onChange: n[8] ||= (e) => S("linkOpenInNewTab", e.target.checked)
2239
- }, null, 40, ro), j(" " + g(b(i).image.openInNewTab), 1)])) : y("", !0)
2224
+ e.block.linkUrl ? (s(), S(Z, {
2225
+ key: 0,
2226
+ class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2227
+ "model-value": e.block.linkOpenInNewTab ?? !1,
2228
+ label: b(i).image.openInNewTab,
2229
+ "onUpdate:modelValue": n[8] ||= (e) => w("linkOpenInNewTab", e)
2230
+ }, null, 8, ["model-value", "label"])) : y("", !0)
2240
2231
  ])
2241
2232
  ], 64));
2242
2233
  }
2243
- }), oo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, so = { class: "tpl:flex tpl:items-center tpl:gap-2" }, co = [
2234
+ }), Ya = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Xa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Za = [
2244
2235
  "value",
2245
2236
  "placeholder",
2246
2237
  "onInput"
2247
- ], lo = ["title", "onClick"], uo = { class: "tpl:flex tpl:items-center tpl:gap-3 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, fo = ["checked", "onChange"], po = { class: "tpl:flex tpl:items-center tpl:gap-2" }, mo = ["value"], ho = { value: "" }, go = ["value"], _o = ["value"], vo = /* @__PURE__ */ M({
2238
+ ], Qa = ["title", "onClick"], $a = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, eo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, to = ["value"], no = { value: "" }, ro = ["value"], io = ["value"], ao = /* @__PURE__ */ M({
2248
2239
  __name: "MenuToolbar",
2249
2240
  props: {
2250
2241
  block: {},
@@ -2252,7 +2243,7 @@ var xa = {
2252
2243
  },
2253
2244
  emits: ["update"],
2254
2245
  setup(e, { emit: t }) {
2255
- let n = e, r = t, { t: i } = U(), a = _(() => [
2246
+ let n = e, r = t, { t: i } = R(), a = _(() => [
2256
2247
  {
2257
2248
  key: "openInNewTab",
2258
2249
  label: i.menu.openInNewTab
@@ -2269,17 +2260,17 @@ var xa = {
2269
2260
  {
2270
2261
  value: "left",
2271
2262
  label: i.title.alignLeft,
2272
- icon: kt
2263
+ icon: Ot
2273
2264
  },
2274
2265
  {
2275
2266
  value: "center",
2276
2267
  label: i.title.alignCenter,
2277
- icon: At
2268
+ icon: Tt
2278
2269
  },
2279
2270
  {
2280
2271
  value: "right",
2281
2272
  label: i.title.alignRight,
2282
- icon: Et
2273
+ icon: kt
2283
2274
  }
2284
2275
  ]);
2285
2276
  function c(e, t) {
@@ -2287,7 +2278,7 @@ var xa = {
2287
2278
  }
2288
2279
  function u() {
2289
2280
  let e = {
2290
- id: V(),
2281
+ id: W(),
2291
2282
  text: "",
2292
2283
  url: "",
2293
2284
  openInNewTab: !1,
@@ -2307,26 +2298,26 @@ var xa = {
2307
2298
  r("update", { items: n.block.items.filter((t) => t.id !== e) });
2308
2299
  }
2309
2300
  return (t, n) => (s(), v(A, null, [
2310
- N(X, { label: b(i).menu.items }, {
2311
- default: d(() => [E("div", oo, [(s(!0), v(A, null, l(e.block.items, (t) => (s(), v("div", {
2301
+ N(Q, { label: b(i).menu.items }, {
2302
+ default: d(() => [E("div", Ya, [(s(!0), v(A, null, l(e.block.items, (t) => (s(), v("div", {
2312
2303
  key: t.id,
2313
2304
  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"
2314
2305
  }, [
2315
- E("div", so, [E("input", {
2306
+ E("div", Xa, [E("input", {
2316
2307
  type: "text",
2317
- class: T([b(G), "tpl:flex-1"]),
2308
+ class: T([b(K), "tpl:flex-1"]),
2318
2309
  value: t.text,
2319
2310
  placeholder: b(i).menu.text,
2320
2311
  onInput: (e) => f(t.id, "text", e.target.value)
2321
- }, null, 42, co), E("button", {
2322
- class: T(b(Rt)),
2312
+ }, null, 42, Za), E("button", {
2313
+ class: T(b(Lt)),
2323
2314
  title: b(i).menu.removeItem,
2324
2315
  onClick: (e) => p(t.id)
2325
- }, [N(b(Ze), {
2316
+ }, [N(b(at), {
2326
2317
  size: 14,
2327
2318
  "stroke-width": 2
2328
- })], 10, lo)]),
2329
- N(Q, {
2319
+ })], 10, Qa)]),
2320
+ N($, {
2330
2321
  "model-value": t.url,
2331
2322
  type: "url",
2332
2323
  placeholder: b(i).menu.urlPlaceholder,
@@ -2336,41 +2327,42 @@ var xa = {
2336
2327
  "placeholder",
2337
2328
  "onUpdate:modelValue"
2338
2329
  ]),
2339
- E("div", uo, [(s(!0), v(A, null, l(a.value, (e) => (s(), v("label", {
2330
+ E("div", $a, [(s(!0), v(A, null, l(a.value, (e) => (s(), S(Z, {
2340
2331
  key: e.key,
2341
- class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1"
2342
- }, [E("input", {
2343
- type: "checkbox",
2344
- checked: t[e.key],
2345
- class: "tpl:accent-[var(--tpl-primary)]",
2346
- onChange: (n) => f(t.id, e.key, n.target.checked)
2347
- }, null, 40, fo), j(" " + g(e.label), 1)]))), 128))]),
2348
- E("div", po, [E("label", { class: T([b(K), "tpl:!mb-0"]) }, g(b(i).menu.color), 3), N(Y, {
2332
+ "model-value": t[e.key],
2333
+ label: e.label,
2334
+ "onUpdate:modelValue": (n) => f(t.id, e.key, n)
2335
+ }, null, 8, [
2336
+ "model-value",
2337
+ "label",
2338
+ "onUpdate:modelValue"
2339
+ ]))), 128))]),
2340
+ E("div", eo, [E("label", { class: T([b(q), "tpl:!mb-0"]) }, g(b(i).menu.color), 3), N(X, {
2349
2341
  "swatch-only": "",
2350
2342
  "model-value": t.color || e.block.linkColor || e.block.color || "",
2351
2343
  "onUpdate:modelValue": (e) => f(t.id, "color", e)
2352
2344
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
2353
2345
  ]))), 128)), E("button", {
2354
- class: T(b(Vt)),
2346
+ class: T(b(Bt)),
2355
2347
  onClick: u
2356
- }, [N(b(W), {
2348
+ }, [N(b(G), {
2357
2349
  size: 14,
2358
2350
  "stroke-width": 2
2359
2351
  }), j(" " + g(b(i).menu.addItem), 1)], 2)])]),
2360
2352
  _: 1
2361
2353
  }, 8, ["label"]),
2362
- N(X, { label: b(i).menu.fontFamily }, {
2354
+ N(Q, { label: b(i).menu.fontFamily }, {
2363
2355
  default: d(() => [E("select", {
2364
- class: T(b(G)),
2356
+ class: T(b(K)),
2365
2357
  value: e.block.fontFamily || "",
2366
2358
  onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
2367
- }, [E("option", ho, g(b(i).title.inheritFont), 1), (s(!0), v(A, null, l(e.fontFamilies, (e) => (s(), v("option", {
2359
+ }, [E("option", no, g(b(i).title.inheritFont), 1), (s(!0), v(A, null, l(e.fontFamilies, (e) => (s(), v("option", {
2368
2360
  key: e.value,
2369
2361
  value: e.value
2370
- }, g(e.label), 9, go))), 128))], 42, mo)]),
2362
+ }, g(e.label), 9, ro))), 128))], 42, to)]),
2371
2363
  _: 1
2372
2364
  }, 8, ["label"]),
2373
- N(X, { label: b(i).menu.fontSize }, {
2365
+ N(Q, { label: b(i).menu.fontSize }, {
2374
2366
  default: d(() => [N(Kt, {
2375
2367
  "model-value": e.block.fontSize,
2376
2368
  min: 8,
@@ -2380,45 +2372,45 @@ var xa = {
2380
2372
  }, null, 8, ["model-value"])]),
2381
2373
  _: 1
2382
2374
  }, 8, ["label"]),
2383
- N(X, { label: b(i).menu.color }, {
2384
- default: d(() => [N(Y, {
2375
+ N(Q, { label: b(i).menu.color }, {
2376
+ default: d(() => [N(X, {
2385
2377
  "model-value": e.block.color ?? "",
2386
2378
  "onUpdate:modelValue": n[2] ||= (e) => c("color", e || void 0)
2387
2379
  }, null, 8, ["model-value"])]),
2388
2380
  _: 1
2389
2381
  }, 8, ["label"]),
2390
- N(X, { label: b(i).menu.linkColor }, {
2391
- default: d(() => [N(Y, {
2382
+ N(Q, { label: b(i).menu.linkColor }, {
2383
+ default: d(() => [N(X, {
2392
2384
  "model-value": e.block.linkColor || e.block.color || "",
2393
2385
  "onUpdate:modelValue": n[3] ||= (e) => c("linkColor", e || void 0)
2394
2386
  }, null, 8, ["model-value"])]),
2395
2387
  _: 1
2396
2388
  }, 8, ["label"]),
2397
- N(X, { label: b(i).menu.textAlign }, {
2398
- default: d(() => [N(Z, {
2389
+ N(Q, { label: b(i).menu.textAlign }, {
2390
+ default: d(() => [N(Gt, {
2399
2391
  options: o.value,
2400
2392
  "model-value": e.block.textAlign,
2401
2393
  "onUpdate:modelValue": n[4] ||= (e) => c("textAlign", e)
2402
2394
  }, null, 8, ["options", "model-value"])]),
2403
2395
  _: 1
2404
2396
  }, 8, ["label"]),
2405
- N(X, { label: b(i).menu.separator }, {
2397
+ N(Q, { label: b(i).menu.separator }, {
2406
2398
  default: d(() => [E("input", {
2407
2399
  type: "text",
2408
- class: T(b(G)),
2400
+ class: T(b(K)),
2409
2401
  value: e.block.separator,
2410
2402
  onInput: n[5] ||= (e) => c("separator", e.target.value)
2411
- }, null, 42, _o)]),
2403
+ }, null, 42, io)]),
2412
2404
  _: 1
2413
2405
  }, 8, ["label"]),
2414
- N(X, { label: b(i).menu.separatorColor }, {
2415
- default: d(() => [N(Y, {
2406
+ N(Q, { label: b(i).menu.separatorColor }, {
2407
+ default: d(() => [N(X, {
2416
2408
  "model-value": e.block.separatorColor,
2417
2409
  "onUpdate:modelValue": n[6] ||= (e) => c("separatorColor", e)
2418
2410
  }, null, 8, ["model-value"])]),
2419
2411
  _: 1
2420
2412
  }, 8, ["label"]),
2421
- N(X, { label: b(i).menu.spacing }, {
2413
+ N(Q, { label: b(i).menu.spacing }, {
2422
2414
  default: d(() => [N(Kt, {
2423
2415
  "model-value": e.block.spacing,
2424
2416
  min: 0,
@@ -2433,11 +2425,11 @@ var xa = {
2433
2425
  });
2434
2426
  //#endregion
2435
2427
  //#region src/utils/rebalanceColumnChildren.ts
2436
- function yo(e) {
2428
+ function oo(e) {
2437
2429
  return e === "1" ? 1 : e === "3" ? 3 : 2;
2438
2430
  }
2439
- function bo(e, t) {
2440
- let n = yo(t);
2431
+ function so(e, t) {
2432
+ let n = oo(t);
2441
2433
  if (e.length === n) return e;
2442
2434
  if (e.length < n) {
2443
2435
  let t = Array.from({ length: n - e.length }, () => []);
@@ -2448,15 +2440,18 @@ function bo(e, t) {
2448
2440
  }
2449
2441
  //#endregion
2450
2442
  //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
2451
- var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class: "tpl:mb-3.5" }, To = { class: "tpl:flex tpl:items-stretch" }, Eo = ["value"], Do = { class: "tpl:mb-3.5" }, Oo = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, ko = ["checked"], Ao = {
2443
+ var co = { class: "tpl:mb-3.5" }, lo = ["value"], uo = ["value"], fo = {
2444
+ key: 0,
2445
+ class: "tpl:mb-3.5"
2446
+ }, po = { class: "tpl:mb-3.5" }, mo = { class: "tpl:flex tpl:items-stretch" }, ho = ["value"], go = { class: "tpl:mb-3.5" }, _o = {
2452
2447
  key: 0,
2453
2448
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
2454
- }, jo = { class: "tpl:flex tpl:items-stretch" }, Mo = ["value"], No = /* @__PURE__ */ M({
2449
+ }, vo = { class: "tpl:flex tpl:items-stretch" }, yo = ["value"], bo = /* @__PURE__ */ M({
2455
2450
  __name: "SectionToolbar",
2456
2451
  props: { block: {} },
2457
2452
  emits: ["update"],
2458
2453
  setup(e, { emit: t }) {
2459
- let n = e, r = t, { t: i } = U(), a = _(() => [
2454
+ let n = e, r = t, { t: i } = R(), a = _(() => [
2460
2455
  {
2461
2456
  value: "1",
2462
2457
  label: i.section.column1
@@ -2479,17 +2474,20 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2479
2474
  }
2480
2475
  ]);
2481
2476
  function o(e) {
2482
- let t = e.target.value, i = bo(n.block.children, t);
2477
+ let t = e.target.value, i = so(n.block.children, t);
2483
2478
  r("update", {
2484
2479
  columns: t,
2485
2480
  children: i
2486
2481
  });
2487
2482
  }
2488
2483
  function c(e) {
2484
+ r("update", { stackOnMobile: e });
2485
+ }
2486
+ function u(e) {
2489
2487
  let t = Number(e.target.value);
2490
2488
  r("update", { borderRadius: t });
2491
2489
  }
2492
- function u(e) {
2490
+ function d(e) {
2493
2491
  r("update", { wrapper: e ? { padding: {
2494
2492
  top: 20,
2495
2493
  right: 20,
@@ -2497,46 +2495,52 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2497
2495
  left: 20
2498
2496
  } } : void 0 });
2499
2497
  }
2500
- function d(e) {
2498
+ function f(e) {
2501
2499
  r("update", { wrapper: {
2502
2500
  ...n.block.wrapper,
2503
2501
  ...e
2504
2502
  } });
2505
2503
  }
2506
- function f(e) {
2507
- d({ padding: e });
2508
- }
2509
2504
  function p(e) {
2510
- d({ borderRadius: Number(e.target.value) });
2505
+ f({ padding: e });
2506
+ }
2507
+ function m(e) {
2508
+ f({ borderRadius: Number(e.target.value) });
2511
2509
  }
2512
2510
  return (t, n) => (s(), v(A, null, [
2513
- E("div", xo, [E("label", { class: T(b(K)) }, g(b(i).section.columns), 3), E("select", {
2514
- class: T(b(G)),
2511
+ E("div", co, [E("label", { class: T(b(q)) }, g(b(i).section.columns), 3), E("select", {
2512
+ class: T(b(K)),
2515
2513
  value: e.block.columns,
2516
2514
  onChange: o
2517
2515
  }, [(s(!0), v(A, null, l(a.value, (e) => (s(), v("option", {
2518
2516
  key: e.value,
2519
2517
  value: e.value
2520
- }, g(e.label), 9, Co))), 128))], 42, So)]),
2521
- E("div", wo, [E("label", { class: T(b(K)) }, g(b(i).section.borderRadius), 3), E("div", To, [E("input", {
2518
+ }, g(e.label), 9, uo))), 128))], 42, lo)]),
2519
+ e.block.columns === "1" ? y("", !0) : (s(), v("div", fo, [N(Z, {
2520
+ class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2521
+ "model-value": e.block.stackOnMobile !== !1,
2522
+ label: b(i).section.stackOnMobile,
2523
+ "onUpdate:modelValue": n[0] ||= (e) => c(e)
2524
+ }, null, 8, ["model-value", "label"])])),
2525
+ E("div", po, [E("label", { class: T(b(q)) }, g(b(i).section.borderRadius), 3), E("div", mo, [E("input", {
2522
2526
  type: "number",
2523
- class: T(b(J)),
2527
+ class: T(b(Y)),
2524
2528
  value: e.block.borderRadius ?? 0,
2525
2529
  min: "0",
2526
2530
  max: "50",
2527
- onInput: c
2528
- }, null, 42, Eo), E("span", { class: T(b(q)) }, "px", 2)])]),
2529
- E("div", Do, [E("label", Oo, [E("input", {
2530
- type: "checkbox",
2531
- class: "tpl:accent-[var(--tpl-primary)]",
2532
- checked: !!e.block.wrapper,
2533
- onChange: n[0] ||= (e) => u(e.target.checked)
2534
- }, null, 40, ko), j(" " + g(b(i).section.wrapperEnable), 1)]), e.block.wrapper ? (s(), v("div", Ao, [
2535
- E("div", null, [E("label", { class: T(b(K)) }, g(b(i).blockSettings.color), 3), N(Y, {
2531
+ onInput: u
2532
+ }, null, 42, ho), E("span", { class: T(b(J)) }, "px", 2)])]),
2533
+ E("div", go, [N(Z, {
2534
+ class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2535
+ "model-value": !!e.block.wrapper,
2536
+ label: b(i).section.wrapperEnable,
2537
+ "onUpdate:modelValue": n[1] ||= (e) => d(e)
2538
+ }, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), v("div", _o, [
2539
+ E("div", null, [E("label", { class: T(b(q)) }, g(b(i).blockSettings.color), 3), N(X, {
2536
2540
  "model-value": e.block.wrapper.backgroundColor ?? "",
2537
- "onUpdate:modelValue": n[1] ||= (e) => d({ backgroundColor: e })
2541
+ "onUpdate:modelValue": n[2] ||= (e) => f({ backgroundColor: e })
2538
2542
  }, null, 8, ["model-value"])]),
2539
- N(Ci, {
2543
+ N(yi, {
2540
2544
  label: b(i).blockSettings.padding,
2541
2545
  "model-value": e.block.wrapper.padding ?? {
2542
2546
  top: 0,
@@ -2544,31 +2548,31 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2544
2548
  bottom: 0,
2545
2549
  left: 0
2546
2550
  },
2547
- "onUpdate:modelValue": f
2551
+ "onUpdate:modelValue": p
2548
2552
  }, null, 8, ["label", "model-value"]),
2549
- E("div", null, [E("label", { class: T(b(K)) }, g(b(i).section.borderRadius), 3), E("div", jo, [E("input", {
2553
+ E("div", null, [E("label", { class: T(b(q)) }, g(b(i).section.borderRadius), 3), E("div", vo, [E("input", {
2550
2554
  type: "number",
2551
- class: T(b(J)),
2555
+ class: T(b(Y)),
2552
2556
  value: e.block.wrapper.borderRadius ?? 0,
2553
2557
  min: "0",
2554
2558
  max: "50",
2555
- onInput: p
2556
- }, null, 42, Mo), E("span", { class: T(b(q)) }, "px", 2)])])
2559
+ onInput: m
2560
+ }, null, 42, yo), E("span", { class: T(b(J)) }, "px", 2)])])
2557
2561
  ])) : y("", !0)])
2558
2562
  ], 64));
2559
2563
  }
2560
- }), Po = { class: "tpl:mb-3.5" }, Fo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Io = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Lo = ["value", "onChange"], Ro = ["value"], zo = ["title", "onClick"], Bo = { class: "tpl:mb-3.5" }, Vo = ["value"], Ho = { value: "solid" }, Uo = { value: "outlined" }, Wo = { value: "rounded" }, Go = { value: "square" }, Ko = { value: "circle" }, qo = { class: "tpl:mb-3.5" }, Jo = { class: "tpl:mb-3.5" }, Yo = { class: "tpl:flex tpl:items-stretch" }, Xo = ["value"], Zo = { class: "tpl:mb-3.5" }, Qo = /* @__PURE__ */ M({
2564
+ }), xo = { class: "tpl:mb-3.5" }, So = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Co = { class: "tpl:flex tpl:items-center tpl:gap-2" }, wo = ["value", "onChange"], To = ["value"], Eo = ["title", "onClick"], Do = { class: "tpl:mb-3.5" }, Oo = ["value"], ko = { value: "solid" }, Ao = { value: "outlined" }, jo = { value: "rounded" }, Mo = { value: "square" }, No = { value: "circle" }, Po = { class: "tpl:mb-3.5" }, Fo = { class: "tpl:mb-3.5" }, Io = { class: "tpl:flex tpl:items-stretch" }, Lo = ["value"], Ro = { class: "tpl:mb-3.5" }, zo = /* @__PURE__ */ M({
2561
2565
  __name: "SocialToolbar",
2562
2566
  props: { block: {} },
2563
2567
  emits: ["update"],
2564
2568
  setup(e, { emit: t }) {
2565
- let n = e, r = t, { t: i } = U();
2569
+ let n = e, r = t, { t: i } = R();
2566
2570
  function a(e, t) {
2567
2571
  r("update", { [e]: t });
2568
2572
  }
2569
2573
  function o() {
2570
2574
  let e = {
2571
- id: V(),
2575
+ id: W(),
2572
2576
  platform: "facebook",
2573
2577
  url: ""
2574
2578
  };
@@ -2585,25 +2589,25 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2585
2589
  r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2586
2590
  }
2587
2591
  return (t, n) => (s(), v(A, null, [
2588
- E("div", Po, [E("label", { class: T(b(K)) }, g(b(i).social.icons), 3), E("div", Fo, [(s(!0), v(A, null, l(e.block.icons, (e) => (s(), v("div", {
2592
+ E("div", xo, [E("label", { class: T(b(q)) }, g(b(i).social.icons), 3), E("div", So, [(s(!0), v(A, null, l(e.block.icons, (e) => (s(), v("div", {
2589
2593
  key: e.id,
2590
2594
  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"
2591
- }, [E("div", Io, [E("select", {
2595
+ }, [E("div", Co, [E("select", {
2592
2596
  "data-testid": "social-platform-select",
2593
- class: T([b(G), "tpl:flex-1"]),
2597
+ class: T([b(K), "tpl:flex-1"]),
2594
2598
  value: e.platform,
2595
2599
  onChange: (t) => c(e.id, "platform", t.target.value)
2596
- }, [(s(!0), v(A, null, l(b(ne), (e) => (s(), v("option", {
2600
+ }, [(s(!0), v(A, null, l(b(be), (e) => (s(), v("option", {
2597
2601
  key: e,
2598
2602
  value: e
2599
- }, g(b(i).social.platforms[e]), 9, Ro))), 128))], 42, Lo), E("button", {
2600
- class: T(b(Rt)),
2603
+ }, g(b(i).social.platforms[e]), 9, To))), 128))], 42, wo), E("button", {
2604
+ class: T(b(Lt)),
2601
2605
  title: b(i).social.removeIcon,
2602
2606
  onClick: (t) => u(e.id)
2603
- }, [N(b(Ze), {
2607
+ }, [N(b(at), {
2604
2608
  size: 14,
2605
2609
  "stroke-width": 2
2606
- })], 10, zo)]), N(Q, {
2610
+ })], 10, Eo)]), N($, {
2607
2611
  "model-value": e.url,
2608
2612
  type: "url",
2609
2613
  placeholder: b(i).social.urlPlaceholder,
@@ -2613,24 +2617,24 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2613
2617
  "placeholder",
2614
2618
  "onUpdate:modelValue"
2615
2619
  ])]))), 128)), E("button", {
2616
- class: T(b(Vt)),
2620
+ class: T(b(Bt)),
2617
2621
  onClick: o
2618
- }, [N(b(W), {
2622
+ }, [N(b(G), {
2619
2623
  size: 14,
2620
2624
  "stroke-width": 2
2621
2625
  }), j(" " + g(b(i).social.addIcon), 1)], 2)])]),
2622
- E("div", Bo, [E("label", { class: T(b(K)) }, g(b(i).social.style), 3), E("select", {
2623
- class: T(b(G)),
2626
+ E("div", Do, [E("label", { class: T(b(q)) }, g(b(i).social.style), 3), E("select", {
2627
+ class: T(b(K)),
2624
2628
  value: e.block.iconStyle,
2625
2629
  onChange: n[0] ||= (e) => a("iconStyle", e.target.value)
2626
2630
  }, [
2627
- E("option", Ho, g(b(i).social.styleSolid), 1),
2628
- E("option", Uo, g(b(i).social.styleOutlined), 1),
2629
- E("option", Wo, g(b(i).social.styleRounded), 1),
2630
- E("option", Go, g(b(i).social.styleSquare), 1),
2631
- E("option", Ko, g(b(i).social.styleCircle), 1)
2632
- ], 42, Vo)]),
2633
- E("div", qo, [E("label", { class: T(b(K)) }, g(b(i).social.size), 3), N(Z, {
2631
+ E("option", ko, g(b(i).social.styleSolid), 1),
2632
+ E("option", Ao, g(b(i).social.styleOutlined), 1),
2633
+ E("option", jo, g(b(i).social.styleRounded), 1),
2634
+ E("option", Mo, g(b(i).social.styleSquare), 1),
2635
+ E("option", No, g(b(i).social.styleCircle), 1)
2636
+ ], 42, Oo)]),
2637
+ E("div", Po, [E("label", { class: T(b(q)) }, g(b(i).social.size), 3), N(Gt, {
2634
2638
  options: [
2635
2639
  {
2636
2640
  value: "small",
@@ -2648,30 +2652,30 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2648
2652
  "model-value": e.block.iconSize,
2649
2653
  "onUpdate:modelValue": n[1] ||= (e) => a("iconSize", e)
2650
2654
  }, null, 8, ["options", "model-value"])]),
2651
- E("div", Jo, [E("label", { class: T(b(K)) }, g(b(i).social.spacing), 3), E("div", Yo, [E("input", {
2655
+ E("div", Fo, [E("label", { class: T(b(q)) }, g(b(i).social.spacing), 3), E("div", Io, [E("input", {
2652
2656
  type: "number",
2653
- class: T(b(J)),
2657
+ class: T(b(Y)),
2654
2658
  value: e.block.spacing,
2655
2659
  min: "0",
2656
2660
  max: "50",
2657
2661
  onInput: n[2] ||= (e) => a("spacing", Number(e.target.value))
2658
- }, null, 42, Xo), E("span", { class: T(b(q)) }, "px", 2)])]),
2659
- E("div", Zo, [E("label", { class: T(b(K)) }, g(b(i).social.align), 3), N(Z, {
2662
+ }, null, 42, Lo), E("span", { class: T(b(J)) }, "px", 2)])]),
2663
+ E("div", Ro, [E("label", { class: T(b(q)) }, g(b(i).social.align), 3), N(Gt, {
2660
2664
  options: [
2661
2665
  {
2662
2666
  value: "left",
2663
2667
  label: b(i).title.alignLeft,
2664
- icon: b(kt)
2668
+ icon: b(Ot)
2665
2669
  },
2666
2670
  {
2667
2671
  value: "center",
2668
2672
  label: b(i).title.alignCenter,
2669
- icon: b(At)
2673
+ icon: b(Tt)
2670
2674
  },
2671
2675
  {
2672
2676
  value: "right",
2673
2677
  label: b(i).title.alignRight,
2674
- icon: b(Et)
2678
+ icon: b(kt)
2675
2679
  }
2676
2680
  ],
2677
2681
  "model-value": e.block.align,
@@ -2679,22 +2683,22 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2679
2683
  }, null, 8, ["options", "model-value"])])
2680
2684
  ], 64));
2681
2685
  }
2682
- }), $o = { class: "tpl:mb-3.5" }, es = { class: "tpl:flex tpl:items-stretch" }, ts = ["value"], ns = ["value"], rs = /* @__PURE__ */ M({
2686
+ }), Bo = { class: "tpl:mb-3.5" }, Vo = { class: "tpl:flex tpl:items-stretch" }, Ho = ["value"], Uo = ["value"], Wo = /* @__PURE__ */ M({
2683
2687
  __name: "SpacerToolbar",
2684
2688
  props: { block: {} },
2685
2689
  emits: ["update"],
2686
2690
  setup(e, { emit: t }) {
2687
- let n = t, { t: r } = U();
2688
- return (t, i) => (s(), v("div", $o, [
2689
- E("label", { class: T(b(K)) }, g(b(r).spacer.height), 3),
2690
- E("div", es, [E("input", {
2691
+ let n = t, { t: r } = R();
2692
+ return (t, i) => (s(), v("div", Bo, [
2693
+ E("label", { class: T(b(q)) }, g(b(r).spacer.height), 3),
2694
+ E("div", Vo, [E("input", {
2691
2695
  type: "number",
2692
- class: T(b(J)),
2696
+ class: T(b(Y)),
2693
2697
  value: e.block.height,
2694
2698
  min: "10",
2695
2699
  max: "100",
2696
2700
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
2697
- }, null, 42, ts), E("span", { class: T(b(q)) }, "px", 2)]),
2701
+ }, null, 42, Ho), E("span", { class: T(b(J)) }, "px", 2)]),
2698
2702
  E("input", {
2699
2703
  type: "range",
2700
2704
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -2702,13 +2706,13 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2702
2706
  min: "10",
2703
2707
  max: "100",
2704
2708
  onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
2705
- }, null, 40, ns)
2709
+ }, null, 40, Uo)
2706
2710
  ]));
2707
2711
  }
2708
- }), is = { class: "tpl:mb-3.5" }, as = { class: "tpl:flex tpl:items-center tpl:gap-3" }, os = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ss = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, cs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ls = ["disabled"], us = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ds = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, fs = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ps = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ms = ["disabled"], hs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, gs = { class: "tpl:mb-3.5" }, _s = { 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)]" }, vs = ["checked"], ys = {
2712
+ }), Go = { class: "tpl:mb-3.5" }, Ko = { class: "tpl:flex tpl:items-center tpl:gap-3" }, qo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Jo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Yo = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Xo = ["disabled"], Zo = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Qo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, $o = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, es = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ts = ["disabled"], ns = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, rs = { class: "tpl:mb-3.5" }, is = {
2709
2713
  key: 0,
2710
2714
  class: "tpl:mb-3.5"
2711
- }, bs = { class: "tpl:mb-3.5" }, xs = { class: "tpl:mb-3.5" }, Ss = { class: "tpl:flex tpl:items-stretch" }, Cs = ["value"], ws = { class: "tpl:mb-3.5" }, Ts = { class: "tpl:flex tpl:items-stretch" }, Es = ["value"], Ds = { class: "tpl:mb-3.5" }, Os = ["value"], ks = { value: "" }, As = ["value"], js = { class: "tpl:mb-3.5" }, Ms = { class: "tpl:flex tpl:items-stretch" }, Ns = ["value"], Ps = { class: "tpl:mb-3.5" }, Fs = { class: "tpl:mb-3.5" }, Is = /* @__PURE__ */ M({
2715
+ }, as = { class: "tpl:mb-3.5" }, os = { class: "tpl:mb-3.5" }, ss = { class: "tpl:flex tpl:items-stretch" }, cs = ["value"], ls = { class: "tpl:mb-3.5" }, us = { class: "tpl:flex tpl:items-stretch" }, ds = ["value"], fs = { class: "tpl:mb-3.5" }, ps = ["value"], ms = { value: "" }, hs = ["value"], gs = { class: "tpl:mb-3.5" }, _s = { class: "tpl:flex tpl:items-stretch" }, vs = ["value"], ys = { class: "tpl:mb-3.5" }, bs = { class: "tpl:mb-3.5" }, xs = /* @__PURE__ */ M({
2712
2716
  __name: "TableToolbar",
2713
2717
  props: {
2714
2718
  block: {},
@@ -2716,15 +2720,15 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2716
2720
  },
2717
2721
  emits: ["update"],
2718
2722
  setup(e, { emit: t }) {
2719
- let n = e, r = t, { t: i } = U(), a = _(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
2723
+ let n = e, r = t, { t: i } = R(), a = _(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
2720
2724
  function o(e, t) {
2721
2725
  r("update", { [e]: t });
2722
2726
  }
2723
2727
  function c() {
2724
2728
  let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
2725
- id: V(),
2729
+ id: W(),
2726
2730
  cells: Array.from({ length: e }, () => ({
2727
- id: V(),
2731
+ id: W(),
2728
2732
  content: ""
2729
2733
  }))
2730
2734
  };
@@ -2737,7 +2741,7 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2737
2741
  let e = n.block.rows.map((e) => ({
2738
2742
  ...e,
2739
2743
  cells: [...e.cells, {
2740
- id: V(),
2744
+ id: W(),
2741
2745
  content: ""
2742
2746
  }]
2743
2747
  }));
@@ -2751,50 +2755,50 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2751
2755
  r("update", { rows: t });
2752
2756
  }
2753
2757
  return (t, n) => (s(), v(A, null, [
2754
- E("div", is, [E("label", { class: T(b(K)) }, g(b(i).table.dimensions), 3), E("div", as, [E("div", os, [E("span", ss, g(b(i).table.rows), 1), E("div", cs, [
2758
+ E("div", Go, [E("label", { class: T(b(q)) }, g(b(i).table.dimensions), 3), E("div", Ko, [E("div", qo, [E("span", Jo, g(b(i).table.rows), 1), E("div", Yo, [
2755
2759
  E("button", {
2756
2760
  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",
2757
2761
  disabled: e.block.rows.length <= 1,
2758
2762
  onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
2759
- }, [N(b(bt), {
2763
+ }, [N(b(yt), {
2760
2764
  size: 12,
2761
2765
  "stroke-width": 2
2762
- })], 8, ls),
2763
- E("span", us, g(e.block.rows.length), 1),
2766
+ })], 8, Xo),
2767
+ E("span", Zo, g(e.block.rows.length), 1),
2764
2768
  E("button", {
2765
2769
  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)]",
2766
2770
  onClick: c
2767
- }, [N(b(W), {
2771
+ }, [N(b(G), {
2768
2772
  size: 12,
2769
2773
  "stroke-width": 2
2770
2774
  })])
2771
- ])]), E("div", ds, [E("span", fs, g(b(i).table.columns), 1), E("div", ps, [
2775
+ ])]), E("div", Qo, [E("span", $o, g(b(i).table.columns), 1), E("div", es, [
2772
2776
  E("button", {
2773
2777
  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",
2774
2778
  disabled: a.value <= 1,
2775
2779
  onClick: n[1] ||= (e) => f(a.value - 1)
2776
- }, [N(b(bt), {
2780
+ }, [N(b(yt), {
2777
2781
  size: 12,
2778
2782
  "stroke-width": 2
2779
- })], 8, ms),
2780
- E("span", hs, g(a.value), 1),
2783
+ })], 8, ts),
2784
+ E("span", ns, g(a.value), 1),
2781
2785
  E("button", {
2782
2786
  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)]",
2783
2787
  onClick: d
2784
- }, [N(b(W), {
2788
+ }, [N(b(G), {
2785
2789
  size: 12,
2786
2790
  "stroke-width": 2
2787
2791
  })])
2788
2792
  ])])])]),
2789
- E("div", gs, [E("label", _s, [E("input", {
2790
- type: "checkbox",
2791
- checked: e.block.hasHeaderRow,
2792
- class: "tpl:accent-[var(--tpl-primary)]",
2793
- onChange: n[2] ||= (e) => o("hasHeaderRow", e.target.checked)
2794
- }, null, 40, vs), j(" " + g(b(i).table.hasHeaderRow), 1)])]),
2795
- e.block.hasHeaderRow ? (s(), v("div", ys, [E("label", { class: T(b(K)) }, g(b(i).table.headerBackgroundColor), 3), N(Y, {
2793
+ E("div", rs, [N(Z, {
2794
+ class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
2795
+ "model-value": e.block.hasHeaderRow,
2796
+ label: b(i).table.hasHeaderRow,
2797
+ "onUpdate:modelValue": n[2] ||= (e) => o("hasHeaderRow", e)
2798
+ }, null, 8, ["model-value", "label"])]),
2799
+ e.block.hasHeaderRow ? (s(), v("div", is, [E("label", { class: T(b(q)) }, g(b(i).table.headerBackgroundColor), 3), N(X, {
2796
2800
  "model-value": e.block.headerBackgroundColor ?? "",
2797
- "seed-color": b(Bt),
2801
+ "seed-color": b(zt),
2798
2802
  placeholder: b(i).table.noHeaderBg,
2799
2803
  "onUpdate:modelValue": n[3] ||= (e) => o("headerBackgroundColor", e || null)
2800
2804
  }, null, 8, [
@@ -2802,62 +2806,62 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2802
2806
  "seed-color",
2803
2807
  "placeholder"
2804
2808
  ])])) : y("", !0),
2805
- E("div", bs, [E("label", { class: T(b(K)) }, g(b(i).table.borderColor), 3), N(Y, {
2809
+ E("div", as, [E("label", { class: T(b(q)) }, g(b(i).table.borderColor), 3), N(X, {
2806
2810
  "model-value": e.block.borderColor,
2807
2811
  "onUpdate:modelValue": n[4] ||= (e) => o("borderColor", e)
2808
2812
  }, null, 8, ["model-value"])]),
2809
- E("div", xs, [E("label", { class: T(b(K)) }, g(b(i).table.borderWidth), 3), E("div", Ss, [E("input", {
2813
+ E("div", os, [E("label", { class: T(b(q)) }, g(b(i).table.borderWidth), 3), E("div", ss, [E("input", {
2810
2814
  type: "number",
2811
- class: T(b(J)),
2815
+ class: T(b(Y)),
2812
2816
  value: e.block.borderWidth,
2813
2817
  min: "0",
2814
2818
  max: "10",
2815
2819
  onInput: n[5] ||= (e) => o("borderWidth", Number(e.target.value))
2816
- }, null, 42, Cs), E("span", { class: T(b(q)) }, "px", 2)])]),
2817
- E("div", ws, [E("label", { class: T(b(K)) }, g(b(i).table.cellPadding), 3), E("div", Ts, [E("input", {
2820
+ }, null, 42, cs), E("span", { class: T(b(J)) }, "px", 2)])]),
2821
+ E("div", ls, [E("label", { class: T(b(q)) }, g(b(i).table.cellPadding), 3), E("div", us, [E("input", {
2818
2822
  type: "number",
2819
- class: T(b(J)),
2823
+ class: T(b(Y)),
2820
2824
  value: e.block.cellPadding,
2821
2825
  min: "0",
2822
2826
  max: "30",
2823
2827
  onInput: n[6] ||= (e) => o("cellPadding", Number(e.target.value))
2824
- }, null, 42, Es), E("span", { class: T(b(q)) }, "px", 2)])]),
2825
- E("div", Ds, [E("label", { class: T(b(K)) }, g(b(i).table.fontFamily), 3), E("select", {
2826
- class: T(b(G)),
2828
+ }, null, 42, ds), E("span", { class: T(b(J)) }, "px", 2)])]),
2829
+ E("div", fs, [E("label", { class: T(b(q)) }, g(b(i).table.fontFamily), 3), E("select", {
2830
+ class: T(b(K)),
2827
2831
  value: e.block.fontFamily || "",
2828
2832
  onChange: n[7] ||= (e) => o("fontFamily", e.target.value || void 0)
2829
- }, [E("option", ks, g(b(i).title.inheritFont), 1), (s(!0), v(A, null, l(e.fontFamilies, (e) => (s(), v("option", {
2833
+ }, [E("option", ms, g(b(i).title.inheritFont), 1), (s(!0), v(A, null, l(e.fontFamilies, (e) => (s(), v("option", {
2830
2834
  key: e.value,
2831
2835
  value: e.value
2832
- }, g(e.label), 9, As))), 128))], 42, Os)]),
2833
- E("div", js, [E("label", { class: T(b(K)) }, g(b(i).table.fontSize), 3), E("div", Ms, [E("input", {
2836
+ }, g(e.label), 9, hs))), 128))], 42, ps)]),
2837
+ E("div", gs, [E("label", { class: T(b(q)) }, g(b(i).table.fontSize), 3), E("div", _s, [E("input", {
2834
2838
  type: "number",
2835
- class: T(b(J)),
2839
+ class: T(b(Y)),
2836
2840
  value: e.block.fontSize,
2837
2841
  min: "10",
2838
2842
  max: "32",
2839
2843
  onInput: n[8] ||= (e) => o("fontSize", Number(e.target.value))
2840
- }, null, 42, Ns), E("span", { class: T(b(q)) }, "px", 2)])]),
2841
- E("div", Ps, [E("label", { class: T(b(K)) }, g(b(i).table.color), 3), N(Y, {
2844
+ }, null, 42, vs), E("span", { class: T(b(J)) }, "px", 2)])]),
2845
+ E("div", ys, [E("label", { class: T(b(q)) }, g(b(i).table.color), 3), N(X, {
2842
2846
  "model-value": e.block.color ?? "",
2843
2847
  "onUpdate:modelValue": n[9] ||= (e) => o("color", e || void 0)
2844
2848
  }, null, 8, ["model-value"])]),
2845
- E("div", Fs, [E("label", { class: T(b(K)) }, g(b(i).table.textAlign), 3), N(Z, {
2849
+ E("div", bs, [E("label", { class: T(b(q)) }, g(b(i).table.textAlign), 3), N(Gt, {
2846
2850
  options: [
2847
2851
  {
2848
2852
  value: "left",
2849
2853
  label: b(i).title.alignLeft,
2850
- icon: b(kt)
2854
+ icon: b(Ot)
2851
2855
  },
2852
2856
  {
2853
2857
  value: "center",
2854
2858
  label: b(i).title.alignCenter,
2855
- icon: b(At)
2859
+ icon: b(Tt)
2856
2860
  },
2857
2861
  {
2858
2862
  value: "right",
2859
2863
  label: b(i).title.alignRight,
2860
- icon: b(Et)
2864
+ icon: b(kt)
2861
2865
  }
2862
2866
  ],
2863
2867
  "model-value": e.block.textAlign,
@@ -2865,7 +2869,7 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2865
2869
  }, null, 8, ["options", "model-value"])])
2866
2870
  ], 64));
2867
2871
  }
2868
- }), Ls = { class: "tpl:mb-3.5" }, Rs = ["value"], zs = { value: 1 }, Bs = { value: 2 }, Vs = { value: 3 }, Hs = { value: 4 }, Us = { class: "tpl:mb-3.5" }, Ws = ["value"], Gs = { value: "" }, Ks = ["value"], qs = { class: "tpl:mb-3.5" }, Js = { class: "tpl:mb-3.5" }, Ys = /* @__PURE__ */ M({
2872
+ }), Ss = { class: "tpl:mb-3.5" }, Cs = ["value"], ws = { value: 1 }, Ts = { value: 2 }, Es = { value: 3 }, Ds = { value: 4 }, Os = { class: "tpl:mb-3.5" }, ks = ["value"], As = { value: "" }, js = ["value"], Ms = { class: "tpl:mb-3.5" }, Ns = { class: "tpl:mb-3.5" }, Ps = /* @__PURE__ */ M({
2869
2873
  __name: "TitleToolbar",
2870
2874
  props: {
2871
2875
  block: {},
@@ -2873,49 +2877,49 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2873
2877
  },
2874
2878
  emits: ["update"],
2875
2879
  setup(e, { emit: t }) {
2876
- let n = t, { t: r } = U();
2880
+ let n = t, { t: r } = R();
2877
2881
  function i(e, t) {
2878
2882
  n("update", { [e]: t });
2879
2883
  }
2880
2884
  return (t, n) => (s(), v(A, null, [
2881
- E("div", Ls, [E("label", { class: T(b(K)) }, g(b(r).title.level), 3), E("select", {
2882
- class: T(b(G)),
2885
+ E("div", Ss, [E("label", { class: T(b(q)) }, g(b(r).title.level), 3), E("select", {
2886
+ class: T(b(K)),
2883
2887
  value: e.block.level,
2884
2888
  onChange: n[0] ||= (e) => i("level", Number(e.target.value))
2885
2889
  }, [
2886
- E("option", zs, g(b(r).title.heading1), 1),
2887
- E("option", Bs, g(b(r).title.heading2), 1),
2888
- E("option", Vs, g(b(r).title.heading3), 1),
2889
- E("option", Hs, g(b(r).title.heading4), 1)
2890
- ], 42, Rs)]),
2891
- E("div", Us, [E("label", { class: T(b(K)) }, g(b(r).title.fontFamily), 3), E("select", {
2892
- class: T(b(G)),
2890
+ E("option", ws, g(b(r).title.heading1), 1),
2891
+ E("option", Ts, g(b(r).title.heading2), 1),
2892
+ E("option", Es, g(b(r).title.heading3), 1),
2893
+ E("option", Ds, g(b(r).title.heading4), 1)
2894
+ ], 42, Cs)]),
2895
+ E("div", Os, [E("label", { class: T(b(q)) }, g(b(r).title.fontFamily), 3), E("select", {
2896
+ class: T(b(K)),
2893
2897
  value: e.block.fontFamily || "",
2894
2898
  onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
2895
- }, [E("option", Gs, g(b(r).title.inheritFont), 1), (s(!0), v(A, null, l(e.fontFamilies, (e) => (s(), v("option", {
2899
+ }, [E("option", As, g(b(r).title.inheritFont), 1), (s(!0), v(A, null, l(e.fontFamilies, (e) => (s(), v("option", {
2896
2900
  key: e.value,
2897
2901
  value: e.value
2898
- }, g(e.label), 9, Ks))), 128))], 42, Ws)]),
2899
- E("div", qs, [E("label", { class: T(b(K)) }, g(b(r).title.color), 3), N(Y, {
2902
+ }, g(e.label), 9, js))), 128))], 42, ks)]),
2903
+ E("div", Ms, [E("label", { class: T(b(q)) }, g(b(r).title.color), 3), N(X, {
2900
2904
  "model-value": e.block.color ?? "",
2901
2905
  "onUpdate:modelValue": n[2] ||= (e) => i("color", e || void 0)
2902
2906
  }, null, 8, ["model-value"])]),
2903
- E("div", Js, [E("label", { class: T(b(K)) }, g(b(r).title.align), 3), N(Z, {
2907
+ E("div", Ns, [E("label", { class: T(b(q)) }, g(b(r).title.align), 3), N(Gt, {
2904
2908
  options: [
2905
2909
  {
2906
2910
  value: "left",
2907
2911
  label: b(r).title.alignLeft,
2908
- icon: b(kt)
2912
+ icon: b(Ot)
2909
2913
  },
2910
2914
  {
2911
2915
  value: "center",
2912
2916
  label: b(r).title.alignCenter,
2913
- icon: b(At)
2917
+ icon: b(Tt)
2914
2918
  },
2915
2919
  {
2916
2920
  value: "right",
2917
2921
  label: b(r).title.alignRight,
2918
- icon: b(Et)
2922
+ icon: b(kt)
2919
2923
  }
2920
2924
  ],
2921
2925
  "model-value": e.block.textAlign,
@@ -2923,22 +2927,19 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2923
2927
  }, null, 8, ["options", "model-value"])])
2924
2928
  ], 64));
2925
2929
  }
2926
- }), Xs = { class: "tpl:mb-3.5" }, Zs = {
2927
- key: 0,
2928
- class: "tpl:mt-2 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]"
2929
- }, Qs = ["checked"], $s = {
2930
+ }), Fs = { class: "tpl:mb-3.5" }, Is = {
2930
2931
  key: 0,
2931
2932
  class: "tpl:mb-3.5"
2932
- }, ec = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, tc = [
2933
+ }, Ls = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Rs = [
2933
2934
  "value",
2934
2935
  "placeholder",
2935
2936
  "title"
2936
- ], nc = { class: "tpl:mb-3.5" }, rc = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ic = { class: "tpl:mb-3.5" }, ac = { class: "tpl:mb-3.5" }, oc = ["value"], sc = { value: "full" }, cc = { class: "tpl:mb-3.5" }, lc = /* @__PURE__ */ M({
2937
+ ], zs = { class: "tpl:mb-3.5" }, Bs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Vs = { class: "tpl:mb-3.5" }, Hs = { class: "tpl:mb-3.5" }, Us = ["value"], Ws = { value: "full" }, Gs = { class: "tpl:mb-3.5" }, Ks = /* @__PURE__ */ M({
2937
2938
  __name: "VideoToolbar",
2938
2939
  props: { block: {} },
2939
2940
  emits: ["update"],
2940
2941
  setup(e, { emit: t }) {
2941
- let n = e, r = t, { t: i } = U(), a = u(tt, null), o = u($e, ut.liquid), c = re(), l = _(() => !!a), d = _(() => De(n.block.url, o)), f = p(!1), { start: m } = ft(() => {
2942
+ let n = e, r = t, { t: i } = R(), a = u(Ge, null), o = u(nt, Ee.liquid), c = de(), l = _(() => !!a), d = _(() => U(n.block.url, o)), f = p(!1), { start: m } = Te(() => {
2942
2943
  f.value = !1;
2943
2944
  }, 1e3, { immediate: !1 });
2944
2945
  function h(e, t) {
@@ -2949,32 +2950,33 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2949
2950
  c.alive && e && (h("thumbnailUrl", e.url), f.value = !0, m());
2950
2951
  }
2951
2952
  return (t, n) => (s(), v(A, null, [
2952
- E("div", Xs, [
2953
- E("label", { class: T(b(K)) }, g(b(i).video.videoUrl), 3),
2954
- N(Q, {
2953
+ E("div", Fs, [
2954
+ E("label", { class: T(b(q)) }, g(b(i).video.videoUrl), 3),
2955
+ N($, {
2955
2956
  "model-value": e.block.url,
2956
2957
  type: "url",
2957
2958
  placeholder: b(i).video.videoUrlPlaceholder,
2958
2959
  "onUpdate:modelValue": n[0] ||= (e) => h("url", e)
2959
2960
  }, null, 8, ["model-value", "placeholder"]),
2960
- e.block.url ? (s(), v("label", Zs, [E("input", {
2961
- type: "checkbox",
2962
- class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
2963
- checked: e.block.openInNewTab ?? !1,
2964
- onChange: n[1] ||= (e) => h("openInNewTab", e.target.checked)
2965
- }, null, 40, Qs), j(" " + g(b(i).video.openInNewTab), 1)])) : y("", !0)
2961
+ e.block.url ? (s(), S(Z, {
2962
+ key: 0,
2963
+ class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2964
+ "model-value": e.block.openInNewTab ?? !1,
2965
+ label: b(i).video.openInNewTab,
2966
+ "onUpdate:modelValue": n[1] ||= (e) => h("openInNewTab", e)
2967
+ }, null, 8, ["model-value", "label"])) : y("", !0)
2966
2968
  ]),
2967
- d.value ? (s(), v("div", $s, [E("label", { class: T(b(K)) }, [j(g(b(i).video.placeholderUrl) + " ", 1), E("span", ec, g(b(i).video.optional), 1)], 2), E("input", {
2969
+ d.value ? (s(), v("div", Is, [E("label", { class: T(b(q)) }, [j(g(b(i).video.placeholderUrl) + " ", 1), E("span", Ls, g(b(i).video.optional), 1)], 2), E("input", {
2968
2970
  type: "url",
2969
- class: T(b(G)),
2971
+ class: T(b(K)),
2970
2972
  value: e.block.placeholderUrl || "",
2971
2973
  placeholder: b(i).video.placeholderUrlPlaceholder,
2972
2974
  title: b(i).video.placeholderUrlTooltip,
2973
2975
  onInput: n[2] ||= (e) => h("placeholderUrl", e.target.value)
2974
- }, null, 42, tc)])) : y("", !0),
2975
- E("div", nc, [
2976
- E("label", { class: T(b(K)) }, [j(g(b(i).video.customThumbnail) + " ", 1), E("span", rc, g(b(i).video.optional), 1)], 2),
2977
- N(Q, {
2976
+ }, null, 42, Rs)])) : y("", !0),
2977
+ E("div", zs, [
2978
+ E("label", { class: T(b(q)) }, [j(g(b(i).video.customThumbnail) + " ", 1), E("span", Bs, g(b(i).video.optional), 1)], 2),
2979
+ N($, {
2978
2980
  "model-value": e.block.thumbnailUrl,
2979
2981
  type: "url",
2980
2982
  placeholder: b(i).video.thumbnailPlaceholder,
@@ -2994,28 +2996,28 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
2994
2996
  "background-color": "var(--tpl-bg)"
2995
2997
  },
2996
2998
  onClick: x
2997
- }, [N(b(dt), {
2999
+ }, [N(b(De), {
2998
3000
  size: 14,
2999
3001
  "stroke-width": 1.5
3000
3002
  }), j(" " + g(b(i).image.browseMedia), 1)])) : y("", !0)
3001
3003
  ]),
3002
- E("div", ic, [E("label", { class: T(b(K)) }, g(b(i).video.altText), 3), N(Q, {
3004
+ E("div", Vs, [E("label", { class: T(b(q)) }, g(b(i).video.altText), 3), N($, {
3003
3005
  "model-value": e.block.alt,
3004
3006
  type: "text",
3005
3007
  placeholder: b(i).video.altTextPlaceholder,
3006
3008
  "onUpdate:modelValue": n[4] ||= (e) => h("alt", e)
3007
3009
  }, null, 8, ["model-value", "placeholder"])]),
3008
- E("div", ac, [E("label", { class: T(b(K)) }, g(b(i).video.width), 3), E("select", {
3009
- class: T(b(G)),
3010
+ E("div", Hs, [E("label", { class: T(b(q)) }, g(b(i).video.width), 3), E("select", {
3011
+ class: T(b(K)),
3010
3012
  value: e.block.width,
3011
3013
  onChange: n[5] ||= (e) => h("width", e.target.value === "full" ? "full" : Number(e.target.value))
3012
3014
  }, [
3013
- E("option", sc, g(b(i).video.fullWidth), 1),
3015
+ E("option", Ws, g(b(i).video.fullWidth), 1),
3014
3016
  n[7] ||= E("option", { value: "300" }, "300px", -1),
3015
3017
  n[8] ||= E("option", { value: "400" }, "400px", -1),
3016
3018
  n[9] ||= E("option", { value: "500" }, "500px", -1)
3017
- ], 42, oc)]),
3018
- E("div", cc, [E("label", { class: T(b(K)) }, g(b(i).title.align), 3), N(Z, {
3019
+ ], 42, Us)]),
3020
+ E("div", Gs, [E("label", { class: T(b(q)) }, g(b(i).title.align), 3), N(Gt, {
3019
3021
  options: [
3020
3022
  {
3021
3023
  value: "left",
@@ -3035,7 +3037,7 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3035
3037
  }, null, 8, ["options", "model-value"])])
3036
3038
  ], 64));
3037
3039
  }
3038
- }), uc = ["aria-label"], dc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, fc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, pc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, mc = { class: "tpl:flex tpl:gap-1" }, hc = ["title"], gc = ["title"], _c = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, vc = /*#__PURE__*/ it(/* @__PURE__ */ M({
3040
+ }), qs = ["aria-label"], Js = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ys = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Xs = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Zs = { class: "tpl:flex tpl:gap-1" }, Qs = ["title"], $s = ["title"], ec = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, tc = /*#__PURE__*/ Re(/* @__PURE__ */ M({
3039
3041
  __name: "Toolbar",
3040
3042
  props: { block: {} },
3041
3043
  emits: [
@@ -3044,87 +3046,87 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3044
3046
  "duplicate"
3045
3047
  ],
3046
3048
  setup(e, { emit: t }) {
3047
- let n = m(() => import("./CountdownToolbar-B1oniVq1.js")), r = e, i = t, { t: a } = U(), c = Be(I, "Toolbar"), l = u(Ie, []), d = _(() => r.block.type), f = _(() => Ce(r.block)), p = _(() => {
3049
+ let n = m(() => import("./CountdownToolbar-DQ_zrorh.js")), r = e, i = t, { t: a } = R(), c = Ue(Ve, "Toolbar"), l = u(je, []), d = _(() => r.block.type), f = _(() => ut(r.block)), p = _(() => {
3048
3050
  if (f.value) return l.find((e) => e.type === r.block.customType);
3049
- }), h = _(() => f.value ? p.value?.name ?? r.block.customType : we(d.value, a)), x = c.fonts;
3051
+ }), h = _(() => f.value ? p.value?.name ?? r.block.customType : dt(d.value, a)), x = c.fonts;
3050
3052
  function C(e) {
3051
3053
  i("update", e);
3052
3054
  }
3053
3055
  return (t, r) => (s(), v("aside", {
3054
3056
  "aria-label": b(a).landmarks.blockToolbar,
3055
3057
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
3056
- }, [E("div", dc, [E("div", fc, [b(Lt)[d.value] ? (s(), S(o(b(Lt)[d.value]), {
3058
+ }, [E("div", Js, [E("div", Ys, [b(It)[d.value] ? (s(), S(o(b(It)[d.value]), {
3057
3059
  key: 0,
3058
3060
  size: 16,
3059
3061
  "stroke-width": 1.5
3060
- })) : f.value ? (s(), S(b(Ye), {
3062
+ })) : f.value ? (s(), S(b(L), {
3061
3063
  key: 1,
3062
3064
  size: 16,
3063
3065
  "stroke-width": 1.5
3064
- })) : y("", !0), E("h3", pc, g(h.value), 1)]), E("div", mc, [E("button", {
3066
+ })) : y("", !0), E("h3", Xs, g(h.value), 1)]), E("div", Zs, [E("button", {
3065
3067
  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)]",
3066
3068
  title: b(a).toolbar.duplicate,
3067
3069
  onClick: r[0] ||= (e) => i("duplicate")
3068
- }, [N(b(ve), {
3070
+ }, [N(b(Xe), {
3069
3071
  size: 14,
3070
3072
  "stroke-width": 2
3071
- })], 8, hc), E("button", {
3073
+ })], 8, Qs), E("button", {
3072
3074
  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)]",
3073
3075
  title: b(a).toolbar.delete,
3074
3076
  onClick: r[1] ||= (e) => i("delete")
3075
- }, [N(b(He), {
3077
+ }, [N(b(et), {
3076
3078
  size: 14,
3077
3079
  "stroke-width": 2
3078
- })], 8, gc)])]), E("div", _c, [f.value ? (s(), S(ka, {
3080
+ })], 8, $s)])]), E("div", ec, [f.value ? (s(), S(Sa, {
3079
3081
  key: 0,
3080
3082
  block: e.block,
3081
3083
  onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
3082
3084
  onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
3083
- }, null, 8, ["block"])) : d.value === "section" ? (s(), S(No, {
3085
+ }, null, 8, ["block"])) : d.value === "section" ? (s(), S(bo, {
3084
3086
  key: 1,
3085
3087
  block: e.block,
3086
3088
  onUpdate: C
3087
- }, null, 8, ["block"])) : d.value === "title" ? (s(), S(Ys, {
3089
+ }, null, 8, ["block"])) : d.value === "title" ? (s(), S(Ps, {
3088
3090
  key: 2,
3089
3091
  block: e.block,
3090
3092
  "font-families": b(x),
3091
3093
  onUpdate: C
3092
- }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), v(A, { key: 3 }, [], 64)) : d.value === "image" ? (s(), S(ao, {
3094
+ }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), v(A, { key: 3 }, [], 64)) : d.value === "image" ? (s(), S(Ja, {
3093
3095
  key: 4,
3094
3096
  block: e.block,
3095
3097
  onUpdate: C
3096
- }, null, 8, ["block"])) : d.value === "video" ? (s(), S(lc, {
3098
+ }, null, 8, ["block"])) : d.value === "video" ? (s(), S(Ks, {
3097
3099
  key: 5,
3098
3100
  block: e.block,
3099
3101
  onUpdate: C
3100
- }, null, 8, ["block"])) : d.value === "button" ? (s(), S(ei, {
3102
+ }, null, 8, ["block"])) : d.value === "button" ? (s(), S(Yr, {
3101
3103
  key: 6,
3102
3104
  block: e.block,
3103
3105
  "font-families": b(x),
3104
3106
  onUpdate: C
3105
- }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), S(Fa, {
3107
+ }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), S(Oa, {
3106
3108
  key: 7,
3107
3109
  block: e.block,
3108
3110
  onUpdate: C
3109
- }, null, 8, ["block"])) : d.value === "social" ? (s(), S(Qo, {
3111
+ }, null, 8, ["block"])) : d.value === "social" ? (s(), S(zo, {
3110
3112
  key: 8,
3111
3113
  block: e.block,
3112
3114
  onUpdate: C
3113
- }, null, 8, ["block"])) : d.value === "menu" ? (s(), S(vo, {
3115
+ }, null, 8, ["block"])) : d.value === "menu" ? (s(), S(ao, {
3114
3116
  key: 9,
3115
3117
  block: e.block,
3116
3118
  "font-families": b(x),
3117
3119
  onUpdate: C
3118
- }, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), S(Is, {
3120
+ }, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), S(xs, {
3119
3121
  key: 10,
3120
3122
  block: e.block,
3121
3123
  "font-families": b(x),
3122
3124
  onUpdate: C
3123
- }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), S(rs, {
3125
+ }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), S(Wo, {
3124
3126
  key: 11,
3125
3127
  block: e.block,
3126
3128
  onUpdate: C
3127
- }, null, 8, ["block"])) : d.value === "html" ? (s(), S(za, {
3129
+ }, null, 8, ["block"])) : d.value === "html" ? (s(), S(Ma, {
3128
3130
  key: 12,
3129
3131
  block: e.block,
3130
3132
  onUpdate: C
@@ -3133,52 +3135,52 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3133
3135
  block: e.block,
3134
3136
  "font-families": b(x),
3135
3137
  onUpdate: C
3136
- }, null, 8, ["block", "font-families"])) : y("", !0), N(Wi, {
3138
+ }, null, 8, ["block", "font-families"])) : y("", !0), N(Bi, {
3137
3139
  block: e.block,
3138
3140
  "is-first-section": d.value === "paragraph",
3139
3141
  onUpdate: C
3140
- }, null, 8, ["block", "is-first-section"])])], 8, uc));
3142
+ }, null, 8, ["block", "is-first-section"])])], 8, qs));
3141
3143
  }
3142
- }), [["__scopeId", "data-v-2ac88283"]]), yc = ["aria-label"], bc = {
3144
+ }), [["__scopeId", "data-v-2ac88283"]]), nc = ["aria-label"], rc = {
3143
3145
  role: "tablist",
3144
3146
  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"
3145
- }, xc = [
3147
+ }, ic = [
3146
3148
  "aria-selected",
3147
3149
  "aria-label",
3148
3150
  "title"
3149
- ], Sc = { key: 0 }, Cc = [
3151
+ ], ac = { key: 0 }, oc = [
3150
3152
  "aria-selected",
3151
3153
  "aria-label",
3152
3154
  "title"
3153
- ], wc = { key: 0 }, Tc = [
3155
+ ], sc = { key: 0 }, cc = [
3154
3156
  "aria-selected",
3155
3157
  "aria-label",
3156
3158
  "title"
3157
- ], Ec = { key: 0 }, Dc = {
3159
+ ], lc = { key: 0 }, uc = {
3158
3160
  key: 1,
3159
3161
  class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
3160
- }, Oc = {
3162
+ }, dc = {
3161
3163
  key: 0,
3162
3164
  id: "tpl-tabpanel-content",
3163
3165
  role: "tabpanel",
3164
3166
  "aria-labelledby": "tpl-tab-content",
3165
3167
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3166
- }, kc = {
3168
+ }, fc = {
3167
3169
  key: 1,
3168
3170
  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)]"
3169
- }, Ac = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, jc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Mc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Nc = {
3171
+ }, pc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, mc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, hc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, gc = {
3170
3172
  key: 1,
3171
3173
  id: "tpl-tabpanel-settings",
3172
3174
  role: "tabpanel",
3173
3175
  "aria-labelledby": "tpl-tab-settings",
3174
3176
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3175
- }, Pc = {
3177
+ }, _c = {
3176
3178
  key: 2,
3177
3179
  id: "tpl-tabpanel-issues",
3178
3180
  role: "tabpanel",
3179
3181
  "aria-labelledby": "tpl-tab-issues",
3180
3182
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3181
- }, Fc = /* @__PURE__ */ M({
3183
+ }, vc = /* @__PURE__ */ M({
3182
3184
  __name: "RightSidebar",
3183
3185
  props: {
3184
3186
  selectedBlock: {},
@@ -3192,7 +3194,7 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3192
3194
  "update-settings"
3193
3195
  ],
3194
3196
  setup(e, { emit: t }) {
3195
- let n = m(() => import("./IssuesPanel-BXLVRo-c.js")), r = e, i = t, { t: a } = U(), o = p("content"), c = u(rt, null), l = _(() => c !== null), d = _(() => c?.issues.value.length ?? 0);
3197
+ let n = m(() => import("./IssuesPanel-CwQ376nf.js")), r = e, i = t, { t: a } = R(), o = p("content"), c = u(Le, null), l = _(() => c !== null), d = _(() => c?.issues.value.length ?? 0);
3196
3198
  function f(e) {
3197
3199
  return o.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)]";
3198
3200
  }
@@ -3208,7 +3210,7 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3208
3210
  "aria-label": b(a).landmarks.rightSidebar,
3209
3211
  class: T(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
3210
3212
  }, [
3211
- E("div", bc, [
3213
+ E("div", rc, [
3212
3214
  E("button", {
3213
3215
  id: "tpl-tab-content",
3214
3216
  role: "tab",
@@ -3219,10 +3221,10 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3219
3221
  class: T(["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)]", f("content")]),
3220
3222
  style: O(h("content")),
3221
3223
  onClick: r[0] ||= (e) => o.value = "content"
3222
- }, [N(b(yt), {
3224
+ }, [N(b(vt), {
3223
3225
  size: 14,
3224
3226
  "stroke-width": 2
3225
- }), o.value === "content" ? (s(), v("span", Sc, g(b(a).sidebar.content), 1)) : y("", !0)], 14, xc),
3227
+ }), o.value === "content" ? (s(), v("span", ac, g(b(a).sidebar.content), 1)) : y("", !0)], 14, ic),
3226
3228
  E("button", {
3227
3229
  id: "tpl-tab-settings",
3228
3230
  role: "tab",
@@ -3233,10 +3235,10 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3233
3235
  class: T(["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)]", f("settings")]),
3234
3236
  style: O(h("settings")),
3235
3237
  onClick: r[1] ||= (e) => o.value = "settings"
3236
- }, [N(b(Mt), {
3238
+ }, [N(b(jt), {
3237
3239
  size: 14,
3238
3240
  "stroke-width": 1.5
3239
- }), o.value === "settings" ? (s(), v("span", wc, g(b(a).sidebar.settings), 1)) : y("", !0)], 14, Cc),
3241
+ }), o.value === "settings" ? (s(), v("span", sc, g(b(a).sidebar.settings), 1)) : y("", !0)], 14, oc),
3240
3242
  l.value ? (s(), v("button", {
3241
3243
  key: 0,
3242
3244
  id: "tpl-tab-issues",
@@ -3249,64 +3251,64 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3249
3251
  style: O(h("issues")),
3250
3252
  onClick: r[2] ||= (e) => o.value = "issues"
3251
3253
  }, [
3252
- N(b(Pt), {
3254
+ N(b(Nt), {
3253
3255
  size: 14,
3254
3256
  "stroke-width": 1.5
3255
3257
  }),
3256
- o.value === "issues" ? (s(), v("span", Ec, g(b(a).issues.panelTabLabel), 1)) : y("", !0),
3257
- d.value > 0 ? (s(), v("span", Dc, g(d.value), 1)) : y("", !0)
3258
- ], 14, Tc)) : y("", !0)
3258
+ o.value === "issues" ? (s(), v("span", lc, g(b(a).issues.panelTabLabel), 1)) : y("", !0),
3259
+ d.value > 0 ? (s(), v("span", uc, g(d.value), 1)) : y("", !0)
3260
+ ], 14, cc)) : y("", !0)
3259
3261
  ]),
3260
- o.value === "content" ? (s(), v("div", Oc, [e.selectedBlock ? (s(), S(vc, {
3262
+ o.value === "content" ? (s(), v("div", dc, [e.selectedBlock ? (s(), S(tc, {
3261
3263
  key: 0,
3262
3264
  block: e.selectedBlock,
3263
3265
  onUpdate: r[3] ||= (e) => i("update-block", e),
3264
3266
  onDelete: r[4] ||= (e) => i("delete-block"),
3265
3267
  onDuplicate: r[5] ||= (e) => i("duplicate-block")
3266
- }, null, 8, ["block"])) : (s(), v("div", kc, [
3267
- E("div", Ac, [N(b(xt), {
3268
+ }, null, 8, ["block"])) : (s(), v("div", fc, [
3269
+ E("div", pc, [N(b(bt), {
3268
3270
  size: 40,
3269
3271
  "stroke-width": 1.5
3270
3272
  })]),
3271
- E("h3", jc, g(b(a).sidebar.noSelection), 1),
3272
- E("p", Mc, g(b(a).sidebar.noSelectionHint), 1)
3273
+ E("h3", mc, g(b(a).sidebar.noSelection), 1),
3274
+ E("p", hc, g(b(a).sidebar.noSelectionHint), 1)
3273
3275
  ]))])) : y("", !0),
3274
- o.value === "settings" ? (s(), v("div", Nc, [N(Sr, {
3276
+ o.value === "settings" ? (s(), v("div", gc, [N(yr, {
3275
3277
  settings: e.settings,
3276
3278
  onUpdate: r[6] ||= (e) => i("update-settings", e)
3277
3279
  }, null, 8, ["settings"])])) : y("", !0),
3278
- o.value === "issues" && l.value ? (s(), v("div", Pc, [N(b(n))])) : y("", !0)
3279
- ], 10, yc));
3280
+ o.value === "issues" && l.value ? (s(), v("div", _c, [N(b(n))])) : y("", !0)
3281
+ ], 10, nc));
3280
3282
  }
3281
- }), Ic = {
3283
+ }), yc = {
3282
3284
  class: "tpl-small-screen-notice tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-6 tpl:py-10 tpl:text-center tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)]",
3283
3285
  style: { "z-index": "10001" },
3284
3286
  role: "status",
3285
3287
  "data-testid": "small-screen-notice"
3286
- }, Lc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Rc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, zc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Bc = /* @__PURE__ */ M({
3288
+ }, bc = { class: "tpl:text-[var(--tpl-text-dim)]" }, xc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Sc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Cc = /* @__PURE__ */ M({
3287
3289
  __name: "SmallScreenNotice",
3288
3290
  setup(e) {
3289
- let { t } = U();
3290
- return (e, n) => (s(), v("div", Ic, [
3291
- E("div", Lc, [N(b(vt), {
3291
+ let { t } = R();
3292
+ return (e, n) => (s(), v("div", yc, [
3293
+ E("div", bc, [N(b(_t), {
3292
3294
  size: 48,
3293
3295
  "stroke-width": 1.5
3294
3296
  })]),
3295
- E("h2", Rc, g(b(t).smallScreen.title), 1),
3296
- E("p", zc, g(b(t).smallScreen.message), 1)
3297
+ E("h2", xc, g(b(t).smallScreen.title), 1),
3298
+ E("p", Sc, g(b(t).smallScreen.message), 1)
3297
3299
  ]));
3298
3300
  }
3299
- }), Vc = ["aria-label"], Hc = [
3301
+ }), wc = ["aria-label"], Tc = [
3300
3302
  "aria-checked",
3301
3303
  "aria-label",
3302
3304
  "title",
3303
3305
  "onClick"
3304
- ], Uc = /* @__PURE__ */ M({
3306
+ ], Ec = /* @__PURE__ */ M({
3305
3307
  __name: "ViewportToggle",
3306
3308
  props: { viewport: {} },
3307
3309
  emits: ["change"],
3308
3310
  setup(e, { emit: t }) {
3309
- let n = e, r = t, { t: i } = U(), a = _(() => [{
3311
+ let n = e, r = t, { t: i } = R(), a = _(() => [{
3310
3312
  value: "desktop",
3311
3313
  label: i.viewport.desktop
3312
3314
  }, {
@@ -3343,26 +3345,26 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3343
3345
  }),
3344
3346
  title: t.label,
3345
3347
  onClick: (e) => r("change", t.value)
3346
- }, [t.value === "desktop" ? (s(), S(b(vt), {
3348
+ }, [t.value === "desktop" ? (s(), S(b(_t), {
3347
3349
  key: 0,
3348
3350
  size: 18,
3349
3351
  "stroke-width": 1.5
3350
- })) : (s(), S(b(wt), {
3352
+ })) : (s(), S(b(Ct), {
3351
3353
  key: 1,
3352
3354
  size: 18,
3353
3355
  "stroke-width": 1.5
3354
- })), E("span", null, g(t.label), 1)], 12, Hc))), 128))], 12, Vc));
3356
+ })), E("span", null, g(t.label), 1)], 12, Tc))), 128))], 12, wc));
3355
3357
  }
3356
- }), Wc = [
3358
+ }), Dc = [
3357
3359
  "aria-label",
3358
3360
  "title",
3359
3361
  "aria-pressed"
3360
- ], Gc = /*#__PURE__*/ it(/* @__PURE__ */ M({
3362
+ ], Oc = /*#__PURE__*/ Re(/* @__PURE__ */ M({
3361
3363
  __name: "PreviewToggle",
3362
3364
  props: { previewMode: { type: Boolean } },
3363
3365
  emits: ["change"],
3364
3366
  setup(e, { emit: t }) {
3365
- let n = t, { t: r } = U();
3367
+ let n = t, { t: r } = R();
3366
3368
  return (t, i) => (s(), v("button", {
3367
3369
  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",
3368
3370
  style: O({
@@ -3380,28 +3382,28 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3380
3382
  "leave-to-class": "tpl-icon-leave-to",
3381
3383
  mode: "out-in"
3382
3384
  }, {
3383
- default: d(() => [e.previewMode ? (s(), S(b(te), {
3385
+ default: d(() => [e.previewMode ? (s(), S(b(H), {
3384
3386
  key: "eye",
3385
3387
  size: 18,
3386
3388
  "stroke-width": 1.5
3387
- })) : (s(), S(b(z), {
3389
+ })) : (s(), S(b(ye), {
3388
3390
  key: "eye-off",
3389
3391
  size: 18,
3390
3392
  "stroke-width": 1.5
3391
3393
  }))]),
3392
3394
  _: 1
3393
- })], 12, Wc));
3395
+ })], 12, Dc));
3394
3396
  }
3395
- }), [["__scopeId", "data-v-af87d02a"]]), Kc = [
3397
+ }), [["__scopeId", "data-v-af87d02a"]]), kc = [
3396
3398
  "aria-label",
3397
3399
  "title",
3398
3400
  "aria-pressed"
3399
- ], qc = /*#__PURE__*/ it(/* @__PURE__ */ M({
3401
+ ], Ac = /*#__PURE__*/ Re(/* @__PURE__ */ M({
3400
3402
  __name: "DarkModeToggle",
3401
3403
  props: { darkMode: { type: Boolean } },
3402
3404
  emits: ["change"],
3403
3405
  setup(e, { emit: t }) {
3404
- let n = t, { t: r } = U();
3406
+ let n = t, { t: r } = R();
3405
3407
  return (t, i) => (s(), v("button", {
3406
3408
  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",
3407
3409
  style: O({
@@ -3419,37 +3421,37 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3419
3421
  "leave-to-class": "tpl-icon-leave-to",
3420
3422
  mode: "out-in"
3421
3423
  }, {
3422
- default: d(() => [e.darkMode ? (s(), S(b(_t), {
3424
+ default: d(() => [e.darkMode ? (s(), S(b(gt), {
3423
3425
  key: "moon",
3424
3426
  size: 18,
3425
3427
  "stroke-width": 1.5
3426
- })) : (s(), S(b(jt), {
3428
+ })) : (s(), S(b(At), {
3427
3429
  key: "sun",
3428
3430
  size: 18,
3429
3431
  "stroke-width": 1.5
3430
3432
  }))]),
3431
3433
  _: 1
3432
- })], 12, Kc));
3434
+ })], 12, kc));
3433
3435
  }
3434
- }), [["__scopeId", "data-v-f8694f76"]]), Jc = {
3436
+ }), [["__scopeId", "data-v-f8694f76"]]), jc = {
3435
3437
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
3436
3438
  style: {
3437
3439
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
3438
3440
  "backdrop-filter": "blur(8px)",
3439
3441
  "-webkit-backdrop-filter": "blur(8px)"
3440
3442
  }
3441
- }, Yc = {
3443
+ }, Mc = {
3442
3444
  href: "https://github.com/templatical/sdk",
3443
3445
  target: "_blank",
3444
3446
  rel: "noopener noreferrer",
3445
3447
  class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
3446
3448
  style: { "text-decoration": "none" }
3447
- }, Xc = /* @__PURE__ */ M({
3449
+ }, Nc = /* @__PURE__ */ M({
3448
3450
  __name: "EditorFooter",
3449
3451
  props: { positionClass: {} },
3450
3452
  setup(e) {
3451
- let { t } = U();
3452
- return (n, r) => (s(), v("footer", { class: T(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [E("div", Jc, [
3453
+ let { t } = R();
3454
+ return (n, r) => (s(), v("footer", { class: T(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [E("div", jc, [
3453
3455
  E("span", null, g(b(t).footer.poweredBy), 1),
3454
3456
  r[0] ||= E("a", {
3455
3457
  href: "https://templatical.com",
@@ -3464,32 +3466,32 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3464
3466
  alt: ""
3465
3467
  }), j(" Templatical ")], -1),
3466
3468
  r[1] ||= E("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3467
- E("a", Yc, g(b(t).footer.openSource), 1)
3469
+ E("a", Mc, g(b(t).footer.openSource), 1)
3468
3470
  ])], 2));
3469
3471
  }
3470
- }), Zc = ["aria-labelledby", "data-tpl-theme"], Qc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, $c = ["id"], el = ["aria-label"], tl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, nl = [
3472
+ }), Pc = ["aria-labelledby", "data-tpl-theme"], Fc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Ic = ["id"], Lc = ["aria-label"], Rc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, zc = [
3471
3473
  "id",
3472
3474
  "placeholder",
3473
3475
  "aria-label",
3474
3476
  "aria-activedescendant"
3475
- ], rl = {
3477
+ ], Bc = {
3476
3478
  key: 0,
3477
3479
  class: "tpl:flex tpl:gap-1.5 tpl:overflow-x-auto tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2",
3478
3480
  "data-testid": "merge-tag-picker-group-pills"
3479
- }, il = ["data-group-name", "onClick"], al = ["aria-label"], ol = {
3481
+ }, Vc = ["data-group-name", "onClick"], Hc = ["aria-label"], Uc = {
3480
3482
  key: 0,
3481
3483
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3482
3484
  "data-testid": "merge-tag-picker-empty"
3483
- }, sl = {
3485
+ }, Wc = {
3484
3486
  key: 1,
3485
3487
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3486
3488
  "data-testid": "merge-tag-picker-empty"
3487
- }, cl = [
3489
+ }, Gc = [
3488
3490
  "aria-expanded",
3489
3491
  "data-group-name",
3490
3492
  "data-group-collapsed",
3491
3493
  "onClick"
3492
- ], ll = { class: "tpl:ml-1 tpl:font-normal" }, ul = [
3494
+ ], Kc = { class: "tpl:ml-1 tpl:font-normal" }, qc = [
3493
3495
  "id",
3494
3496
  "aria-selected",
3495
3497
  "data-selected",
@@ -3498,28 +3500,28 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3498
3500
  "title",
3499
3501
  "onMousemove",
3500
3502
  "onClick"
3501
- ], dl = { class: "tpl:text-sm tpl:font-medium" }, fl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, pl = {
3503
+ ], Jc = { class: "tpl:text-sm tpl:font-medium" }, Yc = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Xc = {
3502
3504
  key: 0,
3503
3505
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3504
- }, ml = "tpl-merge-tag-picker-list", hl = /* @__PURE__ */ M({
3506
+ }, Zc = "tpl-merge-tag-picker-list", Qc = /* @__PURE__ */ M({
3505
3507
  __name: "MergeTagPickerModal",
3506
3508
  setup(e) {
3507
- let t = Be(at, "MergeTagPickerModal"), { t: n, format: i } = U(), a = u(Re, null), o = u(ot, null), f = p(""), m = ct(f, 200), C = p(null), D = _(() => m.value.trim().length > 0), k = p(0), j = _(() => t.tags.value.some((e) => !!e.group)), M = p(/* @__PURE__ */ new Set());
3509
+ let t = Ue($e, "MergeTagPickerModal"), { t: n, format: i } = R(), a = u(Ze, null), o = u(ze, null), f = p(""), m = st(f, 200), C = p(null), D = _(() => m.value.trim().length > 0), k = p(0), j = _(() => t.tags.value.some((e) => !!e.group)), M = p(/* @__PURE__ */ new Set());
3508
3510
  function F(e) {
3509
3511
  return M.value.has(e);
3510
3512
  }
3511
- function I(e) {
3513
+ function ee(e) {
3512
3514
  let t = new Set(M.value);
3513
3515
  t.has(e) ? t.delete(e) : t.add(e), M.value = t, k.value = 0;
3514
3516
  }
3515
- let L = _(() => {
3517
+ let I = _(() => {
3516
3518
  let e = m.value.trim().toLowerCase();
3517
3519
  return e ? t.tags.value.filter((t) => [
3518
3520
  t.label,
3519
3521
  t.value,
3520
3522
  t.description ?? ""
3521
3523
  ].join(" ").toLowerCase().includes(e)) : t.tags.value;
3522
- }), ee = _(() => {
3524
+ }), L = _(() => {
3523
3525
  if (!j.value) return [];
3524
3526
  let e = n.mergeTag.picker.otherGroup, r = /* @__PURE__ */ new Set(), i = [];
3525
3527
  for (let n of t.tags.value) {
@@ -3527,8 +3529,8 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3527
3529
  r.has(t) || (r.add(t), i.push(t));
3528
3530
  }
3529
3531
  return i;
3530
- }), R = _(() => {
3531
- let e = L.value;
3532
+ }), te = _(() => {
3533
+ let e = I.value;
3532
3534
  if (!j.value || D.value) return e.map((e, t) => ({
3533
3535
  kind: "tag",
3534
3536
  tag: e,
@@ -3553,7 +3555,7 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3553
3555
  }), o++;
3554
3556
  }
3555
3557
  return a;
3556
- }), z = _(() => R.value.flatMap((e) => e.kind === "tag" ? [e.tag] : []));
3558
+ }), z = _(() => te.value.flatMap((e) => e.kind === "tag" ? [e.tag] : []));
3557
3559
  P(() => t.isOpen.value, (e) => {
3558
3560
  e && (f.value = "", k.value = 0, M.value = /* @__PURE__ */ new Set(), c(() => {
3559
3561
  C.value?.focus();
@@ -3564,31 +3566,31 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3564
3566
  function B(e) {
3565
3567
  t.resolve(e);
3566
3568
  }
3567
- function te() {
3569
+ function V() {
3568
3570
  t.resolve(null);
3569
3571
  }
3570
- function ne(e) {
3572
+ function H(e) {
3571
3573
  if (z.value.length === 0) return;
3572
3574
  let t = k.value + e;
3573
- k.value = Math.max(0, Math.min(z.value.length - 1, t)), ae();
3575
+ k.value = Math.max(0, Math.min(z.value.length - 1, t)), ie();
3574
3576
  }
3575
- let V = p(null), re = p({});
3576
- function ie(e, t) {
3577
- re.value[e] = t ?? null;
3577
+ let U = p(null), ne = p({});
3578
+ function re(e, t) {
3579
+ ne.value[e] = t ?? null;
3578
3580
  }
3579
- function ae() {
3581
+ function ie() {
3580
3582
  c(() => {
3581
- let e = V.value;
3583
+ let e = U.value;
3582
3584
  e && e.querySelector(`[data-merge-tag-index="${k.value}"]`)?.scrollIntoView({ block: "nearest" });
3583
3585
  });
3584
3586
  }
3585
- function oe(e) {
3587
+ function ae(e) {
3586
3588
  if (M.value.has(e)) {
3587
3589
  let t = new Set(M.value);
3588
3590
  t.delete(e), M.value = t;
3589
3591
  }
3590
3592
  c(() => {
3591
- let t = V.value;
3593
+ let t = U.value;
3592
3594
  if (!t) return;
3593
3595
  let n = 0, r = !1;
3594
3596
  for (let i of Array.from(t.children)) {
@@ -3604,55 +3606,55 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3604
3606
  });
3605
3607
  });
3606
3608
  }
3607
- function se(e) {
3608
- if (e.key === "ArrowDown") e.preventDefault(), ne(1);
3609
- else if (e.key === "ArrowUp") e.preventDefault(), ne(-1);
3609
+ function oe(e) {
3610
+ if (e.key === "ArrowDown") e.preventDefault(), H(1);
3611
+ else if (e.key === "ArrowUp") e.preventDefault(), H(-1);
3610
3612
  else if (e.key === "Enter") {
3611
3613
  e.preventDefault();
3612
3614
  let t = z.value[k.value];
3613
3615
  t && B(t);
3614
3616
  }
3615
3617
  }
3616
- function ce() {
3617
- if (z.value.length !== 0) return `${ml}-opt-${k.value}`;
3618
+ function se() {
3619
+ if (z.value.length !== 0) return `${Zc}-opt-${k.value}`;
3618
3620
  }
3619
- function le(e) {
3620
- return `${ml}-opt-${e}`;
3621
+ function ce(e) {
3622
+ return `${Zc}-opt-${e}`;
3621
3623
  }
3622
- let ue = _(() => t.tags.value.length === 0), de = _(() => !ue.value && L.value.length === 0), fe = _(() => j.value && ee.value.length > 1 && !D.value);
3623
- return (e, c) => (s(), S(ge, {
3624
+ let le = _(() => t.tags.value.length === 0), W = _(() => !le.value && I.value.length === 0), ue = _(() => j.value && L.value.length > 1 && !D.value);
3625
+ return (e, c) => (s(), S(ve, {
3624
3626
  visible: b(t).isOpen.value,
3625
- onClose: te,
3626
- onKeydown: se
3627
+ onClose: V,
3628
+ onKeydown: oe
3627
3629
  }, {
3628
3630
  default: d(() => [E("div", {
3629
3631
  role: "dialog",
3630
3632
  "aria-modal": "true",
3631
- "aria-labelledby": `${ml}-title`,
3633
+ "aria-labelledby": `${Zc}-title`,
3632
3634
  "data-tpl-theme": b(o),
3633
3635
  "data-testid": "merge-tag-picker-modal",
3634
3636
  class: "tpl tpl:flex tpl:max-h-[80vh] tpl:w-[min(420px,92vw)] tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-lg)]",
3635
3637
  style: O(b(a))
3636
3638
  }, [
3637
- E("header", Qc, [E("h2", {
3638
- id: `${ml}-title`,
3639
+ E("header", Fc, [E("h2", {
3640
+ id: `${Zc}-title`,
3639
3641
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3640
- }, g(b(n).mergeTag.picker.title), 9, $c), E("button", {
3642
+ }, g(b(n).mergeTag.picker.title), 9, Ic), E("button", {
3641
3643
  type: "button",
3642
3644
  class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
3643
3645
  "aria-label": b(n).mergeTag.picker.close,
3644
3646
  "data-testid": "merge-tag-picker-close",
3645
- onClick: te
3646
- }, [N(b(Ze), {
3647
+ onClick: V
3648
+ }, [N(b(at), {
3647
3649
  size: 16,
3648
3650
  "stroke-width": 2
3649
- })], 8, el)]),
3650
- E("div", tl, [N(b(Nt), {
3651
+ })], 8, Lc)]),
3652
+ E("div", Rc, [N(b(Mt), {
3651
3653
  class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
3652
3654
  size: 14,
3653
3655
  "stroke-width": 2
3654
3656
  }), r(E("input", {
3655
- id: `${ml}-search`,
3657
+ id: `${Zc}-search`,
3656
3658
  ref_key: "searchInputRef",
3657
3659
  ref: C,
3658
3660
  "onUpdate:modelValue": c[0] ||= (e) => f.value = e,
@@ -3660,50 +3662,50 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3660
3662
  class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)]",
3661
3663
  placeholder: b(n).mergeTag.picker.searchPlaceholder,
3662
3664
  "aria-label": b(n).mergeTag.picker.searchAriaLabel,
3663
- "aria-controls": ml,
3664
- "aria-activedescendant": ce(),
3665
+ "aria-controls": Zc,
3666
+ "aria-activedescendant": se(),
3665
3667
  "data-testid": "merge-tag-picker-search",
3666
3668
  onKeydown: c[1] ||= h(x(() => {}, ["prevent"]), ["enter"])
3667
- }, null, 40, nl), [[w, f.value]])]),
3668
- fe.value ? (s(), v("div", rl, [(s(!0), v(A, null, l(ee.value, (e) => (s(), v("button", {
3669
+ }, null, 40, zc), [[w, f.value]])]),
3670
+ ue.value ? (s(), v("div", Bc, [(s(!0), v(A, null, l(L.value, (e) => (s(), v("button", {
3669
3671
  key: e,
3670
3672
  type: "button",
3671
3673
  class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
3672
3674
  "data-testid": "merge-tag-picker-group-pill",
3673
3675
  "data-group-name": e,
3674
- onClick: (t) => oe(e)
3675
- }, g(e), 9, il))), 128))])) : y("", !0),
3676
+ onClick: (t) => ae(e)
3677
+ }, g(e), 9, Vc))), 128))])) : y("", !0),
3676
3678
  E("div", {
3677
- id: ml,
3679
+ id: Zc,
3678
3680
  ref_key: "listRef",
3679
- ref: V,
3681
+ ref: U,
3680
3682
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3681
3683
  role: "listbox",
3682
3684
  "aria-label": b(n).mergeTag.picker.title,
3683
3685
  "data-testid": "merge-tag-picker-list"
3684
- }, [ue.value ? (s(), v("div", ol, g(b(n).mergeTag.picker.empty), 1)) : de.value ? (s(), v("div", sl, g(b(n).mergeTag.picker.noResults), 1)) : (s(!0), v(A, { key: 2 }, l(R.value, (e, t) => (s(), v(A, { key: t }, [e.kind === "header" ? (s(), v("button", {
3686
+ }, [le.value ? (s(), v("div", Uc, g(b(n).mergeTag.picker.empty), 1)) : W.value ? (s(), v("div", Wc, g(b(n).mergeTag.picker.noResults), 1)) : (s(!0), v(A, { key: 2 }, l(te.value, (e, t) => (s(), v(A, { key: t }, [e.kind === "header" ? (s(), v("button", {
3685
3687
  key: 0,
3686
3688
  ref_for: !0,
3687
- ref: (t) => ie(e.group, t),
3689
+ ref: (t) => re(e.group, t),
3688
3690
  type: "button",
3689
3691
  "aria-expanded": !F(e.group),
3690
- "aria-controls": ml,
3692
+ "aria-controls": Zc,
3691
3693
  class: "tpl:sticky tpl:top-0 tpl:z-10 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-left tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)]",
3692
3694
  "data-testid": "merge-tag-picker-group-header",
3693
3695
  "data-group-name": e.group,
3694
3696
  "data-group-collapsed": F(e.group) ? "true" : "false",
3695
- onClick: (t) => I(e.group)
3697
+ onClick: (t) => ee(e.group)
3696
3698
  }, [
3697
- N(b(he), {
3699
+ N(b(Se), {
3698
3700
  size: 12,
3699
3701
  "stroke-width": 2,
3700
3702
  class: T(["tpl:transition-transform", F(e.group) ? "tpl:-rotate-90" : ""])
3701
3703
  }, null, 8, ["class"]),
3702
3704
  E("span", null, g(e.group), 1),
3703
- E("span", ll, " (" + g(b(i)(b(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3704
- ], 8, cl)) : (s(), v("button", {
3705
+ E("span", Kc, " (" + g(b(i)(b(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3706
+ ], 8, Gc)) : (s(), v("button", {
3705
3707
  key: 1,
3706
- id: le(e.index),
3708
+ id: ce(e.index),
3707
3709
  type: "button",
3708
3710
  role: "option",
3709
3711
  "aria-selected": e.index === k.value,
@@ -3716,22 +3718,22 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3716
3718
  onMousemove: (t) => k.value = e.index,
3717
3719
  onClick: (t) => B(e.tag)
3718
3720
  }, [
3719
- E("span", dl, g(e.tag.label), 1),
3720
- E("span", fl, g(e.tag.value), 1),
3721
- e.tag.description ? (s(), v("span", pl, g(e.tag.description), 1)) : y("", !0)
3722
- ], 42, ul))], 64))), 128))], 8, al)
3723
- ], 12, Zc)]),
3721
+ E("span", Jc, g(e.tag.label), 1),
3722
+ E("span", Yc, g(e.tag.value), 1),
3723
+ e.tag.description ? (s(), v("span", Xc, g(e.tag.description), 1)) : y("", !0)
3724
+ ], 42, qc))], 64))), 128))], 8, Hc)
3725
+ ], 12, Pc)]),
3724
3726
  _: 1
3725
3727
  }, 8, ["visible"]));
3726
3728
  }
3727
- }), gl = ["data-logic-keyword"], _l = /* @__PURE__ */ M({
3729
+ }), $c = ["data-logic-keyword"], el = /* @__PURE__ */ M({
3728
3730
  __name: "LogicTagBadge",
3729
3731
  props: {
3730
3732
  value: {},
3731
3733
  syntax: {}
3732
3734
  },
3733
3735
  setup(e) {
3734
- let t = e, n = _(() => L(t.value, t.syntax)), r = _(() => B(t.value, t.syntax));
3736
+ let t = e, n = _(() => Je(t.value, t.syntax)), r = _(() => V(t.value, t.syntax));
3735
3737
  return (e, t) => n.value ? (s(), v("span", {
3736
3738
  key: 0,
3737
3739
  class: "tpl:inline-flex tpl:flex-shrink-0 tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:leading-none tpl:font-bold tpl:tracking-wide tpl:uppercase",
@@ -3741,22 +3743,22 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3741
3743
  },
3742
3744
  "data-testid": "merge-tag-logic-badge",
3743
3745
  "data-logic-keyword": r.value
3744
- }, g(r.value), 9, gl)) : y("", !0);
3746
+ }, g(r.value), 9, $c)) : y("", !0);
3745
3747
  }
3746
- }), vl = ["aria-labelledby", "data-tpl-theme"], yl = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, bl = ["id"], xl = ["aria-label"], Sl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Cl = [
3748
+ }), tl = ["aria-labelledby", "data-tpl-theme"], nl = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, rl = ["id"], il = ["aria-label"], al = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, ol = [
3747
3749
  "id",
3748
3750
  "placeholder",
3749
3751
  "aria-label",
3750
3752
  "aria-activedescendant"
3751
- ], wl = ["aria-label"], Tl = {
3753
+ ], sl = ["aria-label"], cl = {
3752
3754
  key: 0,
3753
3755
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3754
3756
  "data-testid": "logic-picker-empty"
3755
- }, El = {
3757
+ }, ll = {
3756
3758
  key: 1,
3757
3759
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3758
3760
  "data-testid": "logic-picker-empty"
3759
- }, Dl = ["data-group-name"], Ol = [
3761
+ }, ul = ["data-group-name"], dl = [
3760
3762
  "id",
3761
3763
  "aria-selected",
3762
3764
  "data-selected",
@@ -3764,19 +3766,19 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3764
3766
  "data-logic-kind",
3765
3767
  "onMousemove",
3766
3768
  "onClick"
3767
- ], kl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Al = { class: "tpl:text-sm tpl:font-medium" }, jl = {
3769
+ ], fl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, pl = { class: "tpl:text-sm tpl:font-medium" }, ml = {
3768
3770
  key: 0,
3769
3771
  class: "tpl:flex tpl:items-center"
3770
- }, Ml = {
3772
+ }, hl = {
3771
3773
  key: 1,
3772
3774
  class: "tpl:flex tpl:items-center tpl:gap-1"
3773
- }, Nl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Pl = {
3775
+ }, gl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, _l = {
3774
3776
  key: 0,
3775
3777
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3776
- }, Fl = "tpl-logic-picker-list", Il = /* @__PURE__ */ M({
3778
+ }, vl = "tpl-logic-picker-list", yl = /* @__PURE__ */ M({
3777
3779
  __name: "LogicTagPickerModal",
3778
3780
  setup(e) {
3779
- let t = Be(Ve, "LogicTagPickerModal"), { t: n } = U(), i = u($e, ut.liquid), a = u(Re, null), o = u(ot, null), f = p(""), m = ct(f, 200), C = p(null), D = _(() => m.value.trim().length > 0), k = p(0);
3781
+ let t = Ue(rt, "LogicTagPickerModal"), { t: n } = R(), i = u(nt, Ee.liquid), a = u(Ze, null), o = u(ze, null), f = p(""), m = st(f, 200), C = p(null), D = _(() => m.value.trim().length > 0), k = p(0);
3780
3782
  function j(e) {
3781
3783
  let t = m.value.trim().toLowerCase();
3782
3784
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -3790,7 +3792,7 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3790
3792
  e.before,
3791
3793
  e.after,
3792
3794
  e.description
3793
- ]))), I = _(() => [...F.value.map((e) => ({
3795
+ ]))), ee = _(() => [...F.value.map((e) => ({
3794
3796
  kind: "pair",
3795
3797
  pair: e,
3796
3798
  group: e.group
@@ -3798,8 +3800,8 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3798
3800
  kind: "tag",
3799
3801
  tag: e,
3800
3802
  group: e.group
3801
- }))]), L = _(() => t.tags.value.some((e) => !!e.group) || t.pairs.value.some((e) => !!e.group));
3802
- function ee(e) {
3803
+ }))]), I = _(() => t.tags.value.some((e) => !!e.group) || t.pairs.value.some((e) => !!e.group));
3804
+ function L(e) {
3803
3805
  let t = n.logicTag.picker.otherGroup, r = /* @__PURE__ */ new Map(), i = [];
3804
3806
  for (let n of e) {
3805
3807
  let e = n.group ?? t;
@@ -3807,7 +3809,7 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3807
3809
  }
3808
3810
  return i.map((e) => [e, r.get(e)]);
3809
3811
  }
3810
- let R = _(() => {
3812
+ let te = _(() => {
3811
3813
  let e = [], t = [], n = 0, r = (r) => {
3812
3814
  r.kind === "tag" ? (e.push({
3813
3815
  kind: "tag",
@@ -3818,9 +3820,9 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3818
3820
  pair: r.pair,
3819
3821
  index: n
3820
3822
  }), t.push(r.pair)), n++;
3821
- }, i = I.value;
3822
- if (D.value || !L.value) for (let e of i) r(e);
3823
- else for (let [t, n] of ee(i)) {
3823
+ }, i = ee.value;
3824
+ if (D.value || !I.value) for (let e of i) r(e);
3825
+ else for (let [t, n] of L(i)) {
3824
3826
  e.push({
3825
3827
  kind: "header",
3826
3828
  label: t
@@ -3831,72 +3833,72 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3831
3833
  rows: e,
3832
3834
  items: t
3833
3835
  };
3834
- }), z = _(() => R.value.items), B = _(() => t.tags.value.length === 0 && t.pairs.value.length === 0), te = _(() => !B.value && z.value.length === 0);
3836
+ }), z = _(() => te.value.items), B = _(() => t.tags.value.length === 0 && t.pairs.value.length === 0), V = _(() => !B.value && z.value.length === 0);
3835
3837
  P(() => t.isOpen.value, (e) => {
3836
3838
  e && (f.value = "", k.value = 0, c(() => C.value?.focus()));
3837
3839
  }), P(z, (e) => {
3838
3840
  k.value >= e.length && (k.value = Math.max(0, e.length - 1));
3839
3841
  });
3840
- let ne = p(null);
3841
- function V(e) {
3842
+ let H = p(null);
3843
+ function U(e) {
3842
3844
  t.resolve(e);
3843
3845
  }
3844
- function re() {
3846
+ function ne() {
3845
3847
  t.resolve(null);
3846
3848
  }
3847
- function ie(e) {
3849
+ function re(e) {
3848
3850
  z.value.length !== 0 && (k.value = Math.max(0, Math.min(z.value.length - 1, k.value + e)), c(() => {
3849
- ne.value?.querySelector(`[data-logic-index="${k.value}"]`)?.scrollIntoView({ block: "nearest" });
3851
+ H.value?.querySelector(`[data-logic-index="${k.value}"]`)?.scrollIntoView({ block: "nearest" });
3850
3852
  }));
3851
3853
  }
3852
- function ae(e) {
3853
- if (e.key === "ArrowDown") e.preventDefault(), ie(1);
3854
- else if (e.key === "ArrowUp") e.preventDefault(), ie(-1);
3854
+ function ie(e) {
3855
+ if (e.key === "ArrowDown") e.preventDefault(), re(1);
3856
+ else if (e.key === "ArrowUp") e.preventDefault(), re(-1);
3855
3857
  else if (e.key === "Enter") {
3856
3858
  e.preventDefault();
3857
3859
  let t = z.value[k.value];
3858
- t && V(t);
3860
+ t && U(t);
3859
3861
  }
3860
3862
  }
3861
- function oe(e) {
3862
- return `${Fl}-opt-${e}`;
3863
+ function ae(e) {
3864
+ return `${vl}-opt-${e}`;
3863
3865
  }
3864
- function se() {
3865
- return z.value.length === 0 ? void 0 : `${Fl}-opt-${k.value}`;
3866
+ function oe() {
3867
+ return z.value.length === 0 ? void 0 : `${vl}-opt-${k.value}`;
3866
3868
  }
3867
- return (e, c) => (s(), S(ge, {
3869
+ return (e, c) => (s(), S(ve, {
3868
3870
  visible: b(t).isOpen.value,
3869
- onClose: re,
3870
- onKeydown: ae
3871
+ onClose: ne,
3872
+ onKeydown: ie
3871
3873
  }, {
3872
3874
  default: d(() => [E("div", {
3873
3875
  role: "dialog",
3874
3876
  "aria-modal": "true",
3875
- "aria-labelledby": `${Fl}-title`,
3877
+ "aria-labelledby": `${vl}-title`,
3876
3878
  "data-tpl-theme": b(o),
3877
3879
  "data-testid": "logic-picker-modal",
3878
3880
  class: "tpl tpl:flex tpl:max-h-[80vh] tpl:w-[min(420px,92vw)] tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-lg)]",
3879
3881
  style: O(b(a))
3880
3882
  }, [
3881
- E("header", yl, [E("h2", {
3882
- id: `${Fl}-title`,
3883
+ E("header", nl, [E("h2", {
3884
+ id: `${vl}-title`,
3883
3885
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3884
- }, g(b(n).logicTag.picker.title), 9, bl), E("button", {
3886
+ }, g(b(n).logicTag.picker.title), 9, rl), E("button", {
3885
3887
  type: "button",
3886
3888
  class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
3887
3889
  "aria-label": b(n).logicTag.picker.close,
3888
3890
  "data-testid": "logic-picker-close",
3889
- onClick: re
3890
- }, [N(b(Ze), {
3891
+ onClick: ne
3892
+ }, [N(b(at), {
3891
3893
  size: 16,
3892
3894
  "stroke-width": 2
3893
- })], 8, xl)]),
3894
- E("div", Sl, [N(b(Nt), {
3895
+ })], 8, il)]),
3896
+ E("div", al, [N(b(Mt), {
3895
3897
  class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
3896
3898
  size: 14,
3897
3899
  "stroke-width": 2
3898
3900
  }), r(E("input", {
3899
- id: `${Fl}-search`,
3901
+ id: `${vl}-search`,
3900
3902
  ref_key: "searchInputRef",
3901
3903
  ref: C,
3902
3904
  "onUpdate:modelValue": c[0] ||= (e) => f.value = e,
@@ -3904,27 +3906,27 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3904
3906
  class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)]",
3905
3907
  placeholder: b(n).logicTag.picker.searchPlaceholder,
3906
3908
  "aria-label": b(n).logicTag.picker.searchAriaLabel,
3907
- "aria-controls": Fl,
3908
- "aria-activedescendant": se(),
3909
+ "aria-controls": vl,
3910
+ "aria-activedescendant": oe(),
3909
3911
  "data-testid": "logic-picker-search",
3910
3912
  onKeydown: c[1] ||= h(x(() => {}, ["prevent"]), ["enter"])
3911
- }, null, 40, Cl), [[w, f.value]])]),
3913
+ }, null, 40, ol), [[w, f.value]])]),
3912
3914
  E("div", {
3913
- id: Fl,
3915
+ id: vl,
3914
3916
  ref_key: "listRef",
3915
- ref: ne,
3917
+ ref: H,
3916
3918
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3917
3919
  role: "listbox",
3918
3920
  "aria-label": b(n).logicTag.picker.title,
3919
3921
  "data-testid": "logic-picker-list"
3920
- }, [B.value ? (s(), v("div", Tl, g(b(n).logicTag.picker.empty), 1)) : te.value ? (s(), v("div", El, g(b(n).logicTag.picker.noResults), 1)) : (s(!0), v(A, { key: 2 }, l(R.value.rows, (e, t) => (s(), v(A, { key: t }, [e.kind === "header" ? (s(), v("div", {
3922
+ }, [B.value ? (s(), v("div", cl, g(b(n).logicTag.picker.empty), 1)) : V.value ? (s(), v("div", ll, g(b(n).logicTag.picker.noResults), 1)) : (s(!0), v(A, { key: 2 }, l(te.value.rows, (e, t) => (s(), v(A, { key: t }, [e.kind === "header" ? (s(), v("div", {
3921
3923
  key: 0,
3922
3924
  class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
3923
3925
  "data-testid": "logic-picker-header",
3924
3926
  "data-group-name": e.label
3925
- }, g(e.label), 9, Dl)) : (s(), v("button", {
3927
+ }, g(e.label), 9, ul)) : (s(), v("button", {
3926
3928
  key: 1,
3927
- id: oe(e.index),
3929
+ id: ae(e.index),
3928
3930
  type: "button",
3929
3931
  role: "option",
3930
3932
  "aria-selected": e.index === k.value,
@@ -3934,31 +3936,31 @@ var xo = { class: "tpl:mb-3.5" }, So = ["value"], Co = ["value"], wo = { class:
3934
3936
  class: T(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === k.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
3935
3937
  "data-testid": "logic-picker-item",
3936
3938
  onMousemove: (t) => k.value = e.index,
3937
- onClick: (t) => V(e.kind === "tag" ? e.tag : e.pair)
3939
+ onClick: (t) => U(e.kind === "tag" ? e.tag : e.pair)
3938
3940
  }, [
3939
- E("span", kl, [E("span", Al, g(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), v("span", jl, [N(_l, {
3941
+ E("span", fl, [E("span", pl, g(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), v("span", ml, [N(el, {
3940
3942
  value: e.tag.value,
3941
3943
  syntax: b(i)
3942
- }, null, 8, ["value", "syntax"])])) : (s(), v("span", Ml, [
3943
- N(_l, {
3944
+ }, null, 8, ["value", "syntax"])])) : (s(), v("span", hl, [
3945
+ N(el, {
3944
3946
  value: e.pair.before,
3945
3947
  syntax: b(i)
3946
3948
  }, null, 8, ["value", "syntax"]),
3947
3949
  c[2] ||= E("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
3948
- N(_l, {
3950
+ N(el, {
3949
3951
  value: e.pair.after,
3950
3952
  syntax: b(i)
3951
3953
  }, null, 8, ["value", "syntax"])
3952
3954
  ]))]),
3953
- E("span", Nl, g(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
3954
- (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), v("span", Pl, g(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : y("", !0)
3955
- ], 42, Ol))], 64))), 128))], 8, wl)
3956
- ], 12, vl)]),
3955
+ E("span", gl, g(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
3956
+ (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), v("span", _l, g(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : y("", !0)
3957
+ ], 42, dl))], 64))), 128))], 8, sl)
3958
+ ], 12, tl)]),
3957
3959
  _: 1
3958
3960
  }, 8, ["visible"]));
3959
3961
  }
3960
3962
  });
3961
3963
  //#endregion
3962
- export { Gc as a, Fc as c, an as d, qt as f, qc as i, gn as l, hl as n, Uc as o, Xc as r, Bc as s, Il as t, on as u };
3964
+ export { Oc as a, vc as c, an as d, qt as f, Ac as i, gn as l, Qc as n, Ec as o, Nc as r, Cc as s, yl as t, on as u };
3963
3965
 
3964
- //# sourceMappingURL=styles--UXn88wH.js.map
3966
+ //# sourceMappingURL=styles-CW_gRVVR.js.map