@templatical/editor 0.15.1 → 0.16.1

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