@templatical/editor 0.18.0 → 0.20.0

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 (135) hide show
  1. package/dist/{AiChatSidebar-BWIzNePR.js → AiChatSidebar-ChrE6pUq.js} +10 -10
  2. package/dist/{AiFeatureMenu-IoLW8c6m.js → AiFeatureMenu-DkQ9HhQ6.js} +7 -7
  3. package/dist/{BlockIssueBadge-FbyZBJlf.js → BlockIssueBadge-B4QjePax.js} +4 -4
  4. package/dist/{CloudEditor-txLsdvcR.js → CloudEditor-CfX-aMiV.js} +24 -22
  5. package/dist/{CollaboratorBar-CpLOFt43.js → CollaboratorBar-DTibhQ1j.js} +3 -3
  6. package/dist/ColorPicker-4vDYhdGe.js +552 -0
  7. package/dist/{CommentsSidebar-C8xFu9qy.js → CommentsSidebar-D-o5Stlg.js} +12 -12
  8. package/dist/{CountdownBlock-CaU40Htk.js → CountdownBlock-Bn5w7C-p.js} +1 -1
  9. package/dist/{CountdownToolbar-CBbGAxmF.js → CountdownToolbar-D7yQqnA2.js} +3 -3
  10. package/dist/{DesignReferenceSidebar-BWZgqmT-.js → DesignReferenceSidebar-DnO6ZdwS.js} +10 -10
  11. package/dist/{IssuesPanel-CBzfmzRM.js → IssuesPanel-X_vkNGrs.js} +7 -7
  12. package/dist/{ModuleBrowserModal-C9qHpjaS.js → ModuleBrowserModal-AJt--JPh.js} +9 -9
  13. package/dist/{ModulePreviewCanvas-xEMWMJwf.js → ModulePreviewCanvas-BKYOcVCh.js} +2 -2
  14. package/dist/{NumberWithSuffix-BreqtON_.js → NumberWithSuffix-Bf3rNxza.js} +1 -1
  15. package/dist/{ParagraphEditor-iRJI_YbA.js → ParagraphEditor-C5ixOIYb.js} +46 -46
  16. package/dist/{RichTextEditorContent-DkXai9qP.js → RichTextEditorContent-DwhDnMsG.js} +7 -7
  17. package/dist/{SaveModuleDialog-DqDmk0rO.js → SaveModuleDialog-B4QX9eiv.js} +7 -7
  18. package/dist/{SnapshotHistory-BVe5aCHi.js → SnapshotHistory-DaVueFv6.js} +8 -8
  19. package/dist/{TemplateScoringPanel-CRqt9-T5.js → TemplateScoringPanel-B0UHoTLx.js} +77 -77
  20. package/dist/{TestEmailModal-jpy4hnYZ.js → TestEmailModal-BkauxF7j.js} +4 -4
  21. package/dist/{TitleEditor-Bf6Jv2qI.js → TitleEditor-n6WDVDjW.js} +9 -9
  22. package/dist/{TplModal-DAtccv6o.js → TplModal-BDDyvT-C.js} +3 -3
  23. package/dist/{blockTypeIcons-CnlwyvkL.js → blockTypeIcons-4D0aFXNg.js} +2 -2
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +2 -1
  26. package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js → AiFeatureMenu-CIBHAGSz.js} +5 -5
  27. package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js.map → AiFeatureMenu-CIBHAGSz.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js → BlockIssueBadge-CxMiLo3p.js} +4 -4
  29. package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js.map → BlockIssueBadge-CxMiLo3p.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-BRO-2CcF.js → CloudEditor-CEa3Xgqh.js} +133 -131
  31. package/dist/cdn/chunks/CloudEditor-CEa3Xgqh.js.map +1 -0
  32. package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js → CollaboratorBar-Bk1gD02G.js} +3 -3
  33. package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js.map → CollaboratorBar-Bk1gD02G.js.map} +1 -1
  34. package/dist/cdn/chunks/ColorPicker-ll8pynws.js +550 -0
  35. package/dist/cdn/chunks/ColorPicker-ll8pynws.js.map +1 -0
  36. package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js → CountdownBlock-eGUE7hhw.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js.map → CountdownBlock-eGUE7hhw.js.map} +1 -1
  38. package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js → CountdownToolbar-C1bkSjUR.js} +4 -4
  39. package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js.map → CountdownToolbar-C1bkSjUR.js.map} +1 -1
  40. package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js → IssuesPanel-Csasylf_.js} +7 -7
  41. package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js.map → IssuesPanel-Csasylf_.js.map} +1 -1
  42. package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js → ModuleBrowserModal-DznWWtBI.js} +8 -8
  43. package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js.map → ModuleBrowserModal-DznWWtBI.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js → ModulePreviewCanvas-D-h7fr87.js} +8 -8
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js.map → ModulePreviewCanvas-D-h7fr87.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js → NumberWithSuffix-Dt-0odUN.js} +2 -2
  47. package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js.map → NumberWithSuffix-Dt-0odUN.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js → ParagraphEditor-v0_XEL-v.js} +110 -110
  49. package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js.map → ParagraphEditor-v0_XEL-v.js.map} +1 -1
  50. package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js → RichTextEditorContent-NQExNsaV.js} +5 -5
  51. package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js.map → RichTextEditorContent-NQExNsaV.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js → SaveModuleDialog-BpFhTi-k.js} +5 -5
  53. package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js.map → SaveModuleDialog-BpFhTi-k.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js → TitleEditor-CS-_MzYs.js} +8 -8
  55. package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js.map → TitleEditor-CS-_MzYs.js.map} +1 -1
  56. package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js → blockTypeIcons-B0Hjh42a.js} +7 -7
  57. package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js.map → blockTypeIcons-B0Hjh42a.js.map} +1 -1
  58. package/dist/cdn/chunks/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +3 -2
  59. package/dist/cdn/chunks/{ca-CSl--oWR.js.map → ca-DbWoy4rG.js.map} +1 -1
  60. package/dist/{de-ZaffrKDP.js → cdn/chunks/de-CgGOnerg.js} +4 -1
  61. package/dist/cdn/chunks/{de-ZaffrKDP.js.map → de-CgGOnerg.js.map} +1 -1
  62. package/dist/cdn/chunks/{en-CHuXeJDt.js → en-DrUV9xth.js} +3 -2
  63. package/dist/cdn/chunks/{en-CHuXeJDt.js.map → en-DrUV9xth.js.map} +1 -1
  64. package/dist/{es-CaC8VQjO.js → cdn/chunks/es-DwbKjU7q.js} +4 -1
  65. package/dist/cdn/chunks/{es-CaC8VQjO.js.map → es-DwbKjU7q.js.map} +1 -1
  66. package/dist/cdn/chunks/{extensions-B3M4IqhZ.js → extensions-Di3hdIRT.js} +25 -25
  67. package/dist/cdn/chunks/{extensions-B3M4IqhZ.js.map → extensions-Di3hdIRT.js.map} +1 -1
  68. package/dist/cdn/chunks/{features-HBwOEo4D.js → features-CLIZ7Q-Y.js} +1129 -1002
  69. package/dist/cdn/chunks/features-CLIZ7Q-Y.js.map +1 -0
  70. package/dist/cdn/chunks/{icons-D4vTsN4p.js → icons-GX40Qm2W.js} +2 -2
  71. package/dist/cdn/chunks/{icons-D4vTsN4p.js.map → icons-GX40Qm2W.js.map} +1 -1
  72. package/dist/cdn/chunks/{media-library-CfExuiSG.js → media-library-yYAkAagU.js} +537 -537
  73. package/dist/cdn/chunks/{media-library-CfExuiSG.js.map → media-library-yYAkAagU.js.map} +1 -1
  74. package/dist/cdn/chunks/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +3 -2
  75. package/dist/cdn/chunks/{pt-BR-C74zfEWH.js.map → pt-BR-Bcc5Tjed.js.map} +1 -1
  76. package/dist/cdn/chunks/{pusher-CIwiKF8H.js → pusher-R0v5p99W.js} +27 -22
  77. package/dist/cdn/chunks/pusher-R0v5p99W.js.map +1 -0
  78. package/dist/cdn/chunks/quality-DffYv9j5.js +2180 -0
  79. package/dist/cdn/chunks/{quality-nh1R42eb.js.map → quality-DffYv9j5.js.map} +1 -1
  80. package/dist/cdn/chunks/{renderer-BLvlUayY.js → renderer-DpBGiXOg.js} +16 -16
  81. package/dist/cdn/chunks/{renderer-BLvlUayY.js.map → renderer-DpBGiXOg.js.map} +1 -1
  82. package/dist/cdn/chunks/{src-Cks4RrLL.js → src-9K6uFiuK.js} +6 -6
  83. package/dist/cdn/chunks/{src-Cks4RrLL.js.map → src-9K6uFiuK.js.map} +1 -1
  84. package/dist/cdn/chunks/{styles-CPCN13az.js → styles-DHSmjlpX.js} +820 -816
  85. package/dist/cdn/chunks/styles-DHSmjlpX.js.map +1 -0
  86. package/dist/cdn/editor.css +1 -1
  87. package/dist/cdn/editor.js +54 -52
  88. package/dist/cdn/editor.js.map +1 -1
  89. package/dist/{check-Cg6Mc2pP.js → check-Bl4J_tYV.js} +1 -1
  90. package/dist/{chevron-down-dClfxKrJ.js → chevron-down-COEcl2iP.js} +1 -1
  91. package/dist/{circle-alert-Bhzm-fNA.js → circle-alert-CvHi5etc.js} +1 -1
  92. package/dist/{clock-m7TwQw4b.js → clock-CZZw62e8.js} +1 -1
  93. package/dist/{cloud-BogxOeZu.js → cloud-B-RebwxI.js} +5 -5
  94. package/dist/{createLucideIcon-FSF4peHQ.js → createLucideIcon-_peTZQtY.js} +2 -2
  95. package/dist/{cdn/chunks/de-ZaffrKDP.js → de-CgGOnerg.js} +2 -3
  96. package/dist/{dist-DoRIUsfz.js → dist-BJbqgyPn.js} +108 -94
  97. package/dist/{en-CHuXeJDt.js → en-DrUV9xth.js} +2 -1
  98. package/dist/{cdn/chunks/es-CaC8VQjO.js → es-DwbKjU7q.js} +2 -3
  99. package/dist/{extensions-gpFdCinj.js → extensions-BCA9pyer.js} +11 -11
  100. package/dist/{image-up-CDEgJqwA.js → image-up-D26rNdfX.js} +1 -1
  101. package/dist/index.d.ts +31 -0
  102. package/dist/{info-BNP8yGsK.js → info-CE3JSTqk.js} +1 -1
  103. package/dist/keys-DFaIbGR8.js +10 -0
  104. package/dist/{list-checks-jepi4iYr.js → list-checks-BQsLrtBB.js} +1 -1
  105. package/dist/{loader-circle-BT38qSm3.js → loader-circle-s9Rh5lLd.js} +1 -1
  106. package/dist/{message-circle-BAHcL9S-.js → message-circle-CI62d690.js} +1 -1
  107. package/dist/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +2 -1
  108. package/dist/{refresh-cw-as5Bmg4X.js → refresh-cw-DlYfl65Y.js} +1 -1
  109. package/dist/{scan-line-IAMjPtRw.js → scan-line-CHadrYVb.js} +1 -1
  110. package/dist/{send-DvMay6bt.js → send-CbP40otC.js} +1 -1
  111. package/dist/{shield-check-YYDhGroE.js → shield-check-Bnj9aRoJ.js} +1 -1
  112. package/dist/{sparkles-CCwQMMMZ.js → sparkles-CncWT57a.js} +1 -1
  113. package/dist/style.css +1 -1
  114. package/dist/{styles-CJ6WmkYL.js → styles-DkF_-uX8.js} +677 -673
  115. package/dist/templatical-editor.js +14 -12
  116. package/dist/{text-align-start-BwsA6QzC.js → text-align-start-B458vzYw.js} +1 -1
  117. package/dist/{trash-2-CRBDolnR.js → trash-2-DO0yjSU1.js} +1 -1
  118. package/dist/{triangle-alert-B2g0ALvq.js → triangle-alert-C18_ima6.js} +1 -1
  119. package/dist/{upload-y4gxiFp5.js → upload-DsCd2zTR.js} +1 -1
  120. package/dist/{useCloudI18n-DIn74fK2.js → useCloudI18n-PCDOC2kz.js} +1 -1
  121. package/dist/{useEditorCore-LJJNXXqC.js → useEditorCore-kKUemYY6.js} +1047 -961
  122. package/dist/{useI18n-OaMLWqhY.js → useI18n-BNMzZTM5.js} +1 -1
  123. package/dist/{useMergeTag-CZMgwVvr.js → useMergeTag-DfEY0eK5.js} +5 -5
  124. package/dist/{usePopoverPosition-QDY09q9H.js → usePopoverPosition-F9STHRIr.js} +33 -6
  125. package/dist/{x-Ctg_250T.js → x-BCFQuE_q.js} +1 -1
  126. package/package.json +10 -10
  127. package/dist/ColorPicker-BXCcUYsZ.js +0 -473
  128. package/dist/cdn/chunks/CloudEditor-BRO-2CcF.js.map +0 -1
  129. package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js +0 -471
  130. package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js.map +0 -1
  131. package/dist/cdn/chunks/features-HBwOEo4D.js.map +0 -1
  132. package/dist/cdn/chunks/pusher-CIwiKF8H.js.map +0 -1
  133. package/dist/cdn/chunks/quality-nh1R42eb.js +0 -2180
  134. package/dist/cdn/chunks/styles-CPCN13az.js.map +0 -1
  135. package/dist/keys-DAxnnmXs.js +0 -10
@@ -1,43 +1,43 @@
1
1
  import { A as e, Dt as t, Et as n, H as r, I as i, K as a, N as o, O as s, Ot as c, R as l, W as u, Y as d, _ as f, c as p, d as m, g as h, h as g, j as _, l as v, m as y, nt as b, q as x, r as S, s as C, u as w, w as T, x as E, y as D, z as O } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
2
2
  import { a as k, c as A, o as j, s as M, t as N } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
3
- import { t as P } from "./upload-y4gxiFp5.js";
4
- import { C as F, D as I, E as L, O as R, k as z, o as B, r as V, s as ee, u as te, w as ne } from "./dist-DoRIUsfz.js";
5
- import { C as H, F as re, I as ie, L as ae, M as oe, N as se, O as ce, P as le, R as ue, _ as de, a as fe, c as pe, f as me, g as he, h as ge, i as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, u as Te, v as Ee, y as De, z as Oe } from "./useEditorCore-LJJNXXqC.js";
6
- import { c as ke, m as Ae } from "./dist-DYv_Pttj.js";
7
- import { n as je } from "./usePopoverPosition-QDY09q9H.js";
8
- import { C as Me, D as Ne, E as Pe, F as Fe, I as Ie, L as Le, R as Re, a as ze, d as Be, f as Ve, g as He, j as Ue, k as We, m as Ge, n as Ke, o as qe, p as Je, s as Ye, u as Xe, z as Ze } from "./keys-DAxnnmXs.js";
9
- import { t as U } from "./useI18n-OaMLWqhY.js";
10
- import { t as W } from "./createLucideIcon-FSF4peHQ.js";
11
- import { n as Qe, t as $e } from "./scan-line-IAMjPtRw.js";
12
- import { t as et } from "./chevron-down-dClfxKrJ.js";
13
- import { t as tt } from "./circle-alert-Bhzm-fNA.js";
14
- import { i as nt, n as rt, r as it, t as at } from "./blockTypeIcons-CnlwyvkL.js";
15
- import { n as ot, t as st } from "./refresh-cw-as5Bmg4X.js";
16
- import { t as ct } from "./image-up-CDEgJqwA.js";
17
- import { t as lt } from "./info-BNP8yGsK.js";
18
- import { t as ut } from "./list-checks-jepi4iYr.js";
19
- import { t as dt } from "./loader-circle-BT38qSm3.js";
20
- import { t as ft } from "./sparkles-CCwQMMMZ.js";
21
- import { n as pt, r as mt, t as ht } from "./text-align-start-BwsA6QzC.js";
22
- import { t as gt } from "./trash-2-CRBDolnR.js";
23
- import { t as _t } from "./x-Ctg_250T.js";
24
- import { t as vt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
25
- import { t as yt } from "./useCloudI18n-DIn74fK2.js";
26
- import { t as bt } from "./useMergeTag-CZMgwVvr.js";
27
- import { t as xt } from "./useAliveFlag-C43EhZFY.js";
28
- import { t as St } from "./readableTextColor-f8Kykfnh.js";
29
- import { t as Ct } from "./CountdownBlock-CaU40Htk.js";
30
- import { _ as wt, f as G, g as Tt, h as K, i as Et, l as Dt, m as q, n as Ot, p as J, t as Y, u as kt } from "./ColorPicker-BXCcUYsZ.js";
31
- import { n as At, r as jt } from "./MergeTagSuggestion-DCuaSOPQ.js";
3
+ import { t as P } from "./upload-DsCd2zTR.js";
4
+ import { A as F, E as I, O as L, T as R, a as z, c as B, f as V, j as ee, k as te, l as ne } from "./dist-BJbqgyPn.js";
5
+ import { B as H, C as re, F as ie, I as ae, L as oe, M as se, N as ce, O as le, P as ue, R as de, _ as fe, a as pe, c as me, f as he, g as ge, h as _e, i as ve, l as ye, m as be, n as xe, o as Se, p as Ce, r as we, s as Te, u as Ee, v as De, y as Oe, z as ke } from "./useEditorCore-kKUemYY6.js";
6
+ import { c as Ae, m as je } from "./dist-DYv_Pttj.js";
7
+ import { a as Me, n as Ne } from "./usePopoverPosition-F9STHRIr.js";
8
+ import { A as Pe, B as Fe, D as Ie, I as Le, L as Re, M as ze, O as Be, R as Ve, _ as He, a as Ue, d as We, f as Ge, h as Ke, l as qe, m as Je, n as Ye, o as Xe, p as Ze, s as Qe, w as $e, z as et } from "./keys-DFaIbGR8.js";
9
+ import { t as U } from "./useI18n-BNMzZTM5.js";
10
+ import { t as W } from "./createLucideIcon-_peTZQtY.js";
11
+ import { n as tt, t as nt } from "./scan-line-CHadrYVb.js";
12
+ import { t as rt } from "./chevron-down-COEcl2iP.js";
13
+ import { t as it } from "./circle-alert-CvHi5etc.js";
14
+ import { i as at, n as ot, r as st, t as ct } from "./blockTypeIcons-4D0aFXNg.js";
15
+ import { n as lt, t as ut } from "./refresh-cw-DlYfl65Y.js";
16
+ import { t as dt } from "./image-up-D26rNdfX.js";
17
+ import { t as ft } from "./info-CE3JSTqk.js";
18
+ import { t as pt } from "./list-checks-BQsLrtBB.js";
19
+ import { t as mt } from "./loader-circle-s9Rh5lLd.js";
20
+ import { t as ht } from "./sparkles-CncWT57a.js";
21
+ import { n as gt, r as _t, t as vt } from "./text-align-start-B458vzYw.js";
22
+ import { t as yt } from "./trash-2-DO0yjSU1.js";
23
+ import { t as bt } from "./x-BCFQuE_q.js";
24
+ import { t as xt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
25
+ import { t as St } from "./useCloudI18n-PCDOC2kz.js";
26
+ import { t as Ct } from "./useMergeTag-DfEY0eK5.js";
27
+ import { t as wt } from "./useAliveFlag-C43EhZFY.js";
28
+ import { t as Tt } from "./readableTextColor-f8Kykfnh.js";
29
+ import { t as Et } from "./CountdownBlock-Bn5w7C-p.js";
30
+ import { _ as Dt, f as G, g as Ot, h as K, i as kt, l as At, m as q, n as jt, p as J, t as Y, u as Mt } from "./ColorPicker-4vDYhdGe.js";
31
+ import { n as Nt, r as Pt } from "./MergeTagSuggestion-DCuaSOPQ.js";
32
32
  import { t as X } from "./ToggleSwitch-DUNuUPsZ.js";
33
- import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-BreqtON_.js";
34
- import { t as Pt } from "./TplModal-DAtccv6o.js";
35
- var Ft = W("circle", [["circle", {
33
+ import { n as Z, r as Ft, t as It } from "./NumberWithSuffix-Bf3rNxza.js";
34
+ import { t as Lt } from "./TplModal-BDDyvT-C.js";
35
+ var Rt = W("circle", [["circle", {
36
36
  cx: "12",
37
37
  cy: "12",
38
38
  r: "10",
39
39
  key: "1mglay"
40
- }]]), It = W("globe", [
40
+ }]]), zt = W("globe", [
41
41
  ["circle", {
42
42
  cx: "12",
43
43
  cy: "12",
@@ -52,7 +52,7 @@ var Ft = W("circle", [["circle", {
52
52
  d: "M2 12h20",
53
53
  key: "9i4pu4"
54
54
  }]
55
- ]), Lt = W("layout-template", [
55
+ ]), Bt = W("layout-template", [
56
56
  ["rect", {
57
57
  width: "18",
58
58
  height: "7",
@@ -77,7 +77,7 @@ var Ft = W("circle", [["circle", {
77
77
  rx: "1",
78
78
  key: "q5h2i8"
79
79
  }]
80
- ]), Rt = W("lock-open", [["rect", {
80
+ ]), Vt = W("lock-open", [["rect", {
81
81
  width: "18",
82
82
  height: "11",
83
83
  x: "3",
@@ -88,7 +88,7 @@ var Ft = W("circle", [["circle", {
88
88
  }], ["path", {
89
89
  d: "M7 11V7a5 5 0 0 1 9.9-1",
90
90
  key: "1mm8w8"
91
- }]]), zt = W("lock", [["rect", {
91
+ }]]), Ht = W("lock", [["rect", {
92
92
  width: "18",
93
93
  height: "11",
94
94
  x: "3",
@@ -99,7 +99,7 @@ var Ft = W("circle", [["circle", {
99
99
  }], ["path", {
100
100
  d: "M7 11V7a5 5 0 0 1 10 0v4",
101
101
  key: "fwvmzm"
102
- }]]), Bt = W("monitor", [
102
+ }]]), Ut = W("monitor", [
103
103
  ["rect", {
104
104
  width: "20",
105
105
  height: "14",
@@ -122,10 +122,10 @@ var Ft = W("circle", [["circle", {
122
122
  y2: "21",
123
123
  key: "vw1qmm"
124
124
  }]
125
- ]), Vt = W("moon", [["path", {
125
+ ]), Wt = W("moon", [["path", {
126
126
  d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",
127
127
  key: "kfwtm"
128
- }]]), Ht = W("panel-top", [["rect", {
128
+ }]]), Gt = W("panel-top", [["rect", {
129
129
  width: "18",
130
130
  height: "18",
131
131
  x: "3",
@@ -141,13 +141,13 @@ var Ft = W("circle", [["circle", {
141
141
  }], ["path", {
142
142
  d: "M12 5v14",
143
143
  key: "s699le"
144
- }]]), Ut = W("rotate-ccw", [["path", {
144
+ }]]), Kt = W("rotate-ccw", [["path", {
145
145
  d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",
146
146
  key: "1357e3"
147
147
  }], ["path", {
148
148
  d: "M3 3v5h5",
149
149
  key: "1xhq8a"
150
- }]]), Wt = W("settings", [["path", {
150
+ }]]), qt = W("settings", [["path", {
151
151
  d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
152
152
  key: "1i5ecw"
153
153
  }], ["circle", {
@@ -155,7 +155,7 @@ var Ft = W("circle", [["circle", {
155
155
  cy: "12",
156
156
  r: "3",
157
157
  key: "1v7zrd"
158
- }]]), Gt = W("smartphone", [["rect", {
158
+ }]]), Jt = W("smartphone", [["rect", {
159
159
  width: "14",
160
160
  height: "20",
161
161
  x: "5",
@@ -166,7 +166,7 @@ var Ft = W("circle", [["circle", {
166
166
  }], ["path", {
167
167
  d: "M12 18h.01",
168
168
  key: "mhygvu"
169
- }]]), Kt = W("square-plus", [
169
+ }]]), Yt = W("square-plus", [
170
170
  ["rect", {
171
171
  width: "18",
172
172
  height: "18",
@@ -183,14 +183,14 @@ var Ft = W("circle", [["circle", {
183
183
  d: "M12 8v8",
184
184
  key: "napkw2"
185
185
  }]
186
- ]), qt = W("square", [["rect", {
186
+ ]), Xt = W("square", [["rect", {
187
187
  width: "18",
188
188
  height: "18",
189
189
  x: "3",
190
190
  y: "3",
191
191
  rx: "2",
192
192
  key: "afitv7"
193
- }]]), Jt = W("sun", [
193
+ }]]), Zt = W("sun", [
194
194
  ["circle", {
195
195
  cx: "12",
196
196
  cy: "12",
@@ -232,7 +232,7 @@ var Ft = W("circle", [["circle", {
232
232
  ]);
233
233
  //#endregion
234
234
  //#region src/utils/resolveLintOptions.ts
235
- function Yt(e) {
235
+ function Qt(e) {
236
236
  return {
237
237
  ...e.lint,
238
238
  locale: e.locale
@@ -240,19 +240,19 @@ function Yt(e) {
240
240
  }
241
241
  //#endregion
242
242
  //#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
243
- var Xt = ["aria-label"], Zt = {
243
+ var $t = ["aria-label"], en = {
244
244
  key: 0,
245
245
  class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
246
- }, Qt = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, $t = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, en = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, tn = {
246
+ }, tn = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, nn = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, rn = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, an = {
247
247
  key: 0,
248
248
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
249
- }, nn = {
249
+ }, on = {
250
250
  key: 1,
251
251
  class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
252
- }, rn = { class: "tpl:relative" }, an = {
252
+ }, sn = { class: "tpl:relative" }, cn = {
253
253
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
254
254
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
255
- }, on = 96, sn = /*#__PURE__*/ vt(/* @__PURE__ */ f({
255
+ }, ln = 96, un = /*#__PURE__*/ xt(/* @__PURE__ */ f({
256
256
  __name: "Canvas",
257
257
  props: {
258
258
  viewport: {},
@@ -269,21 +269,21 @@ var Xt = ["aria-label"], Zt = {
269
269
  ],
270
270
  setup(r, { emit: i }) {
271
271
  let a = {
272
- section: we,
273
- title: ve,
274
- paragraph: Se,
275
- image: ge,
276
- button: ie,
277
- divider: Ee,
278
- spacer: _e,
279
- html: de,
280
- social: fe,
281
- menu: ye,
282
- table: Ce,
283
- video: be,
284
- countdown: Ct,
285
- custom: De
286
- }, u = r, f = i, { t: h } = U(), { t: _ } = yt(), x = Ze(Ge, "Canvas"), T = E(Xe, null), D = E(qe, null), k = E(Ye, {}), A = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("chat") ?? !1)), M = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = C({
272
+ section: Te,
273
+ title: ye,
274
+ paragraph: Ce,
275
+ image: _e,
276
+ button: ae,
277
+ divider: De,
278
+ spacer: ve,
279
+ html: fe,
280
+ social: pe,
281
+ menu: be,
282
+ table: we,
283
+ video: xe,
284
+ countdown: Et,
285
+ custom: Oe
286
+ }, u = r, f = i, { t: h } = U(), { t: _ } = St(), x = Fe(Ke, "Canvas"), T = E(We, null), D = E(Xe, null), k = E(Qe, {}), A = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("chat") ?? !1)), M = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = C({
287
287
  get: () => u.content.blocks,
288
288
  set: (e) => {
289
289
  x.setContent({
@@ -296,7 +296,7 @@ var Xt = ["aria-label"], Zt = {
296
296
  case "mobile": return 375;
297
297
  default: return u.content.settings.width;
298
298
  }
299
- }), F = C(() => P.value + on * 2), I = C(() => {
299
+ }), F = C(() => P.value + ln * 2), I = C(() => {
300
300
  let e = { fontFamily: u.content.settings.fontFamily };
301
301
  return u.content.settings.textColor && (e.color = u.content.settings.textColor), u.content.settings.linkColor && (e["--tpl-doc-link-color"] = u.content.settings.linkColor), u.content.settings.linkUnderline && (e["--tpl-doc-link-underline"] = "underline"), e;
302
302
  }), L = C(() => N.value.length === 0 && !u.previewMode), R = d(0), z = C(() => L.value && R.value > 0);
@@ -313,7 +313,7 @@ var Xt = ["aria-label"], Zt = {
313
313
  u.previewMode || e.target === e.currentTarget && f("select-block", null);
314
314
  }
315
315
  function ne(e) {
316
- return me(e, D, a);
316
+ return he(e, D, a);
317
317
  }
318
318
  function H(e) {
319
319
  return u.lockedBlocks?.get(e) ?? null;
@@ -354,7 +354,7 @@ var Xt = ["aria-label"], Zt = {
354
354
  }]),
355
355
  style: t(I.value),
356
356
  onClick: te
357
- }, [g(b(pe), {
357
+ }, [g(b(me), {
358
358
  modelValue: N.value,
359
359
  "onUpdate:modelValue": a[2] ||= (e) => N.value = e,
360
360
  group: "blocks",
@@ -377,30 +377,30 @@ var Xt = ["aria-label"], Zt = {
377
377
  onDragleave: V,
378
378
  onDrop: ee
379
379
  }, {
380
- default: l(() => [L.value ? (s(), m("div", Zt, [
381
- p("div", Qt, [g(b(Kt), {
380
+ default: l(() => [L.value ? (s(), m("div", en, [
381
+ p("div", tn, [g(b(Yt), {
382
382
  size: 48,
383
383
  "stroke-width": 1
384
384
  })]),
385
- p("p", $t, c(b(h).canvas.noBlocks), 1),
386
- p("p", en, c(b(h).canvas.dragHint), 1),
387
- A.value && b(_) ? (s(), m("p", tn, [
385
+ p("p", nn, c(b(h).canvas.noBlocks), 1),
386
+ p("p", rn, c(b(h).canvas.dragHint), 1),
387
+ A.value && b(_) ? (s(), m("p", an, [
388
388
  y(c(b(h).canvas.aiHintChat) + " ", 1),
389
389
  p("button", {
390
390
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
391
391
  onClick: a[0] ||= (e) => f("open-ai-chat")
392
- }, [g(b(ft), {
392
+ }, [g(b(ht), {
393
393
  size: 14,
394
394
  "stroke-width": 2
395
395
  }), y(" " + c(b(_).aiMenu.aiAssistant), 1)]),
396
396
  y(" " + c(b(h).canvas.aiHintChatSuffix), 1)
397
397
  ])) : w("", !0),
398
- M.value && b(_) ? (s(), m("p", nn, [
398
+ M.value && b(_) ? (s(), m("p", on, [
399
399
  y(c(b(h).canvas.aiHintDesign) + " ", 1),
400
400
  p("button", {
401
401
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
402
402
  onClick: a[1] ||= (e) => f("open-design-reference")
403
- }, [g(b(ct), {
403
+ }, [g(b(dt), {
404
404
  size: 14,
405
405
  "stroke-width": 2
406
406
  }), y(" " + c(b(_).aiMenu.designToTemplate), 1)]),
@@ -409,7 +409,7 @@ var Xt = ["aria-label"], Zt = {
409
409
  ])) : w("", !0), (s(!0), m(S, null, e(N.value, (e) => O((s(), m("div", {
410
410
  key: e.id,
411
411
  class: "tpl-block-item"
412
- }, [p("div", rn, [H(e.id) ? (s(), m("div", {
412
+ }, [p("div", sn, [H(e.id) ? (s(), m("div", {
413
413
  key: 0,
414
414
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
415
415
  style: t({
@@ -420,9 +420,9 @@ var Xt = ["aria-label"], Zt = {
420
420
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
421
421
  style: t({
422
422
  backgroundColor: H(e.id).color,
423
- color: b(St)(H(e.id).color)
423
+ color: b(Tt)(H(e.id).color)
424
424
  })
425
- }, [p("span", an, c(H(e.id).name.charAt(0)), 1), y(" " + c(H(e.id).name), 1)], 4)], 4)) : w("", !0), g(Te, {
425
+ }, [p("span", cn, c(H(e.id).name.charAt(0)), 1), y(" " + c(H(e.id).name), 1)], 4)], 4)) : w("", !0), g(Ee, {
426
426
  block: e,
427
427
  "is-selected": !r.previewMode && r.selectedBlockId === e.id && !H(e.id),
428
428
  viewport: r.viewport,
@@ -453,12 +453,12 @@ var Xt = ["aria-label"], Zt = {
453
453
  "modelValue",
454
454
  "disabled",
455
455
  "class"
456
- ])], 6)], 12, Xt)], 4));
456
+ ])], 6)], 12, $t)], 4));
457
457
  }
458
- }), [["__scopeId", "data-v-b440d13f"]]), cn = f({
458
+ }), [["__scopeId", "data-v-b440d13f"]]), dn = f({
459
459
  name: "CustomBlockStylesheets",
460
460
  setup() {
461
- let e = E(Ve, null);
461
+ let e = E(Ze, null);
462
462
  return () => e ? e.value.map((e, t) => D("style", {
463
463
  key: t,
464
464
  "data-tpl-custom-block-stylesheet": "",
@@ -468,7 +468,7 @@ var Xt = ["aria-label"], Zt = {
468
468
  });
469
469
  //#endregion
470
470
  //#region src/utils/resolvePaletteBlocks.ts
471
- function ln(e, t) {
471
+ function fn(e, t) {
472
472
  if (!t || t.length === 0) return {
473
473
  items: e,
474
474
  unknown: []
@@ -487,27 +487,27 @@ function ln(e, t) {
487
487
  }
488
488
  //#endregion
489
489
  //#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
490
- var un = ["aria-label"], dn = {
490
+ var pn = ["aria-label"], mn = {
491
491
  key: 0,
492
492
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
493
- }, fn = ["aria-label"], pn = {
493
+ }, hn = ["aria-label"], gn = {
494
494
  key: 0,
495
495
  class: "tpl:flex-1 tpl:truncate tpl:text-sm tpl:font-medium"
496
- }, mn = {
496
+ }, _n = {
497
497
  key: 1,
498
498
  class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]"
499
- }, hn = [
499
+ }, vn = [
500
500
  "data-palette-type",
501
501
  "aria-label",
502
502
  "onClick",
503
503
  "onKeydown"
504
- ], gn = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:scale-105" }, _n = {
504
+ ], yn = { 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" }, bn = {
505
505
  key: 0,
506
506
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
507
- }, vn = /* @__PURE__ */ f({
507
+ }, xn = /* @__PURE__ */ f({
508
508
  __name: "Sidebar",
509
509
  setup(n) {
510
- let { t: r, format: a } = U(), { t: u } = yt(), f = E(Be, []), h = E(Ue, void 0), _ = E(ze, void 0), y = E(Ge, null), x = E(Ye, {}), T = C(() => (x.savedModules?.moduleCount.value ?? 0) > 0), D = d(!1), O = d(!1);
510
+ let { t: r, format: a } = U(), { t: u } = St(), f = E(Ge, []), h = E(ze, void 0), _ = E(Ue, void 0), y = E(Ke, null), x = E(Qe, {}), T = C(() => (x.savedModules?.moduleCount.value ?? 0) > 0), D = d(!1), O = d(!1);
511
511
  function k() {
512
512
  O.value || (D.value = !1);
513
513
  }
@@ -533,34 +533,34 @@ var un = ["aria-label"], dn = {
533
533
  ], N = C(() => {
534
534
  let e = M.map((e) => ({
535
535
  type: e,
536
- label: ue(e, r)
536
+ label: ke(e, r)
537
537
  }));
538
538
  return x.plan && e.splice(-1, 0, {
539
539
  type: "countdown",
540
- label: ue("countdown", r)
540
+ label: ke("countdown", r)
541
541
  }), e;
542
542
  }), P = C(() => f.map((e) => ({
543
543
  type: `custom:${e.type}`,
544
544
  label: e.name,
545
545
  isCustom: !0,
546
546
  icon: e.icon
547
- }))), F = C(() => [...N.value, ...P.value]), I = C(() => ln(F.value, h)), L = C(() => I.value.items), R = /* @__PURE__ */ new Set();
547
+ }))), F = C(() => [...N.value, ...P.value]), I = C(() => fn(F.value, h)), L = C(() => I.value.items), R = /* @__PURE__ */ new Set();
548
548
  i(() => I.value.unknown, (e) => {
549
- for (let t of e) R.has(t) || (R.add(t), ae.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
549
+ for (let t of e) R.has(t) || (R.add(t), de.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.`));
550
550
  }, { immediate: !0 });
551
551
  function z(e) {
552
552
  if (e.isCustom) {
553
553
  let t = e.type.replace("custom:", ""), n = f.find((e) => e.type === t);
554
- if (n) return te(n);
554
+ if (n) return V(n);
555
555
  }
556
- return ee(e.type, _);
556
+ return ne(e.type, _);
557
557
  }
558
558
  function B(e) {
559
559
  if (!y) return;
560
560
  let t = z(e);
561
561
  y.addBlock(t), y.selectBlock(t.id);
562
562
  }
563
- function V(e, t) {
563
+ function ee(e, t) {
564
564
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), B(t));
565
565
  }
566
566
  return (n, i) => (s(), m("aside", {
@@ -577,21 +577,21 @@ var un = ["aria-label"], dn = {
577
577
  onMouseleave: k,
578
578
  onFocusin: i[2] ||= (e) => D.value = !0,
579
579
  onFocusout: i[3] ||= (e) => D.value = !1
580
- }, [T.value && b(u) ? (s(), m("div", dn, [p("button", {
580
+ }, [T.value && b(u) ? (s(), m("div", mn, [p("button", {
581
581
  type: "button",
582
582
  "aria-label": b(r).sidebarNav.browseModules,
583
583
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)]",
584
584
  style: t({ justifyContent: D.value ? "flex-start" : "center" }),
585
585
  onClick: i[0] ||= (e) => b(x).savedModules?.openBrowser()
586
586
  }, [
587
- g(b(it), {
587
+ g(b(st), {
588
588
  size: 20,
589
589
  "stroke-width": 1.5,
590
590
  class: "tpl:shrink-0"
591
591
  }),
592
- D.value ? (s(), m("span", pn, c(b(u).modules.title), 1)) : w("", !0),
593
- D.value ? (s(), m("span", mn, c(b(x).savedModules?.moduleCount.value ?? 0), 1)) : w("", !0)
594
- ], 12, fn)])) : w("", !0), g(b(pe), {
592
+ D.value ? (s(), m("span", gn, c(b(u).modules.title), 1)) : w("", !0),
593
+ D.value ? (s(), m("span", _n, c(b(x).savedModules?.moduleCount.value ?? 0), 1)) : w("", !0)
594
+ ], 12, hn)])) : w("", !0), g(b(me), {
595
595
  "model-value": L.value,
596
596
  group: {
597
597
  name: "blocks",
@@ -614,23 +614,23 @@ var un = ["aria-label"], dn = {
614
614
  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",
615
615
  style: t({ justifyContent: D.value ? "flex-start" : "center" }),
616
616
  onClick: (t) => B(e),
617
- onKeydown: (t) => V(t, e)
618
- }, [p("div", gn, [b(at)[e.type] ? (s(), v(o(b(at)[e.type]), {
617
+ onKeydown: (t) => ee(t, e)
618
+ }, [p("div", yn, [b(ct)[e.type] ? (s(), v(o(b(ct)[e.type]), {
619
619
  key: 0,
620
620
  size: 20,
621
621
  "stroke-width": 1.5
622
- })) : e.isCustom ? (s(), v(ce, {
622
+ })) : e.isCustom ? (s(), v(le, {
623
623
  key: 1,
624
624
  icon: e.icon,
625
625
  size: 20
626
- }, null, 8, ["icon"])) : w("", !0)]), D.value ? (s(), m("span", _n, c(e.label), 1)) : w("", !0)], 44, hn))), 128))]),
626
+ }, null, 8, ["icon"])) : w("", !0)]), D.value ? (s(), m("span", bn, c(e.label), 1)) : w("", !0)], 44, vn))), 128))]),
627
627
  _: 1
628
- }, 8, ["model-value"])], 44, un));
628
+ }, 8, ["model-value"])], 44, pn));
629
629
  }
630
630
  });
631
631
  //#endregion
632
632
  //#region src/utils/mergeTagTrigger.ts
633
- function yn(e, t, n, r) {
633
+ function Sn(e, t, n, r) {
634
634
  if (!n) return null;
635
635
  let i = e.slice(0, t), a = i.lastIndexOf(n);
636
636
  if (a === -1) return null;
@@ -643,8 +643,8 @@ function yn(e, t, n, r) {
643
643
  }
644
644
  //#endregion
645
645
  //#region src/utils/textFieldCaret.ts
646
- var bn = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
647
- function xn(e, t, n) {
646
+ var Cn = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
647
+ function wn(e, t, n) {
648
648
  return {
649
649
  left: e,
650
650
  top: t,
@@ -657,7 +657,7 @@ function xn(e, t, n) {
657
657
  toJSON: () => ({})
658
658
  };
659
659
  }
660
- function Sn(e, t) {
660
+ function Tn(e, t) {
661
661
  let n = e.ownerDocument, r = n.defaultView;
662
662
  if (!r) return null;
663
663
  let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
@@ -665,7 +665,7 @@ function Sn(e, t) {
665
665
  let s = o.style;
666
666
  s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
667
667
  let c = s, l = a;
668
- for (let e of bn) c[e] = l[e];
668
+ for (let e of Cn) c[e] = l[e];
669
669
  i && (s.width = "auto", s.whiteSpace = "pre");
670
670
  let u = e.value, d = u.slice(0, t);
671
671
  i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
@@ -674,26 +674,26 @@ function Sn(e, t) {
674
674
  let p = f.offsetTop, m = f.offsetLeft;
675
675
  n.body.removeChild(o);
676
676
  let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
677
- if (i) return xn(y, h.top, h.bottom);
677
+ if (i) return wn(y, h.top, h.bottom);
678
678
  let b = h.top + p + g - e.scrollTop;
679
- return xn(y, b, b + v);
679
+ return wn(y, b, b + v);
680
680
  }
681
681
  //#endregion
682
682
  //#region src/composables/useMergeTagAutocomplete.ts
683
- var Cn = /* @__PURE__ */ new Set([
683
+ var En = /* @__PURE__ */ new Set([
684
684
  "ArrowLeft",
685
685
  "ArrowRight",
686
686
  "Home",
687
687
  "End"
688
688
  ]);
689
- function wn(e) {
690
- let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = I(s), f = L(s), p = c && d !== null && o.length > 0, m = E(Le, null), h = At((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", je()), g = !1;
689
+ function Dn(e) {
690
+ let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = te(s), f = L(s), p = c && d !== null && o.length > 0, m = E(Ve, null), h = Nt((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", Ne()), g = !1;
691
691
  r() && a(() => {
692
692
  g = !0, h.close();
693
693
  });
694
694
  function _(e) {
695
695
  let t = e.value ?? "";
696
- return yn(t, e.selectionStart ?? t.length, d, f);
696
+ return Sn(t, e.selectionStart ?? t.length, d, f);
697
697
  }
698
698
  function v(e, r, a) {
699
699
  let o = e.value ?? n(), s = o.slice(r.caret), c = f && s.startsWith(f) ? f.length : 0, u = o.slice(0, r.triggerStart), d = o.slice(r.caret + c), p = u + a.value + d, m = u.length + a.value.length;
@@ -715,7 +715,7 @@ function wn(e) {
715
715
  h.close();
716
716
  return;
717
717
  }
718
- let r = jt(o, n.query), i = () => Sn(e, n.triggerStart), a = (t) => v(e, n, t);
718
+ let r = Pt(o, n.query), i = () => Tn(e, n.triggerStart), a = (t) => v(e, n, t);
719
719
  h.isOpen() ? h.update({
720
720
  items: r,
721
721
  getRect: i,
@@ -728,7 +728,7 @@ function wn(e) {
728
728
  });
729
729
  }
730
730
  function b(e) {
731
- return h.isOpen() ? e.key === "Escape" ? (h.close(), !0) : Cn.has(e.key) ? (h.close(), !1) : h.handleKeyDown(e) : !1;
731
+ return h.isOpen() ? e.key === "Escape" ? (h.close(), !0) : En.has(e.key) ? (h.close(), !1) : h.handleKeyDown(e) : !1;
732
732
  }
733
733
  return {
734
734
  available: p,
@@ -740,12 +740,12 @@ function wn(e) {
740
740
  }
741
741
  //#endregion
742
742
  //#region src/composables/useMergeTagField.ts
743
- function Tn(e) {
744
- let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } = bt(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = H(), v = d(!1), y = !1, b = !1;
743
+ function On(e) {
744
+ let { modelValue: t, emit: n, elementRef: i } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: l, getMergeTagLabel: u, requestMergeTag: f, syntax: p, autocomplete: m } = Ct(), { canInsertLogicTag: h, isRequesting: g, requestLogicTag: _ } = re(), v = d(!1), y = !1, b = !1;
745
745
  r() && a(() => {
746
746
  b = !0;
747
747
  });
748
- let x = wn({
748
+ let x = Dn({
749
749
  elementRef: i,
750
750
  modelValue: t,
751
751
  emit: n,
@@ -769,10 +769,10 @@ function Tn(e) {
769
769
  type: "mergeTag",
770
770
  value: t,
771
771
  label: u(t)
772
- }) : z(t, p) ? n.push({
772
+ }) : ee(t, p) ? n.push({
773
773
  type: "logicMergeTag",
774
774
  value: t,
775
- keyword: ne(t, p)
775
+ keyword: I(t, p)
776
776
  }) : n.push({
777
777
  type: "text",
778
778
  value: t
@@ -867,10 +867,10 @@ function Tn(e) {
867
867
  }
868
868
  //#endregion
869
869
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
870
- var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip"], kn = {
870
+ var kn = ["aria-label", "onKeydown"], An = ["data-tooltip"], jn = ["data-tooltip"], Mn = {
871
871
  key: 2,
872
872
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
873
- }, An = ["aria-label", "title"], jn = /* @__PURE__ */ f({
873
+ }, Nn = ["aria-label", "title"], Pn = /* @__PURE__ */ f({
874
874
  __name: "MergeTagSegments",
875
875
  props: {
876
876
  segments: {},
@@ -898,7 +898,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
898
898
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
899
899
  color: "var(--tpl-primary)"
900
900
  }
901
- }, c(e.label), 9, Dn)) : e.type === "logicMergeTag" ? (s(), m("span", {
901
+ }, c(e.label), 9, An)) : e.type === "logicMergeTag" ? (s(), m("span", {
902
902
  key: 1,
903
903
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.8em] tpl:font-bold tpl:tracking-wide tpl:uppercase",
904
904
  "data-tooltip": e.value,
@@ -907,22 +907,22 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
907
907
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
908
908
  color: "var(--tpl-primary)"
909
909
  }
910
- }, c(e.keyword), 9, On)) : (s(), m("span", kn, c(e.value), 1))], 64))), 128)), p("button", {
910
+ }, c(e.keyword), 9, jn)) : (s(), m("span", Mn, c(e.value), 1))], 64))), 128)), p("button", {
911
911
  type: "button",
912
912
  class: "tpl:ml-auto tpl:flex tpl:size-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-dim)] tpl:opacity-60 tpl:transition-all hover:tpl:text-[var(--tpl-danger)] hover:tpl:opacity-100",
913
913
  "aria-label": b(a).mergeTag.remove,
914
914
  title: b(a).mergeTag.remove,
915
915
  onClick: l[0] ||= A((e) => i("clear"), ["stop"])
916
- }, [g(b(_t), {
916
+ }, [g(b(bt), {
917
917
  size: 12,
918
918
  "stroke-width": 2.5
919
- })], 8, An)], 42, En));
919
+ })], 8, Nn)], 42, kn));
920
920
  }
921
- }), Mn = [
921
+ }), Fn = [
922
922
  "aria-label",
923
923
  "title",
924
924
  "disabled"
925
- ], Nn = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Pn = /* @__PURE__ */ f({
925
+ ], In = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Ln = /* @__PURE__ */ f({
926
926
  __name: "MergeTagInsertButton",
927
927
  props: { disabled: { type: Boolean } },
928
928
  emits: ["insert"],
@@ -930,22 +930,22 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
930
930
  let { t } = U();
931
931
  return (r, i) => (s(), m("button", {
932
932
  type: "button",
933
- class: n([Nn, "tpl:mt-1.5"]),
933
+ class: n([In, "tpl:mt-1.5"]),
934
934
  "aria-label": b(t).mergeTag.insert,
935
935
  title: b(t).mergeTag.insert,
936
936
  disabled: e.disabled,
937
937
  onMousedown: i[0] ||= A(() => {}, ["prevent"]),
938
938
  onClick: i[1] ||= (e) => r.$emit("insert")
939
- }, [g(b($e), {
939
+ }, [g(b(nt), {
940
940
  size: 12,
941
941
  "stroke-width": 2
942
- }), y(" " + c(b(t).mergeTag.insertShort), 1)], 42, Mn));
942
+ }), y(" " + c(b(t).mergeTag.insertShort), 1)], 42, Fn));
943
943
  }
944
- }), Fn = [
944
+ }), Rn = [
945
945
  "aria-label",
946
946
  "title",
947
947
  "disabled"
948
- ], In = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", Ln = /* @__PURE__ */ f({
948
+ ], zn = "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)]", Bn = /* @__PURE__ */ f({
949
949
  __name: "LogicTagInsertButton",
950
950
  props: { disabled: { type: Boolean } },
951
951
  emits: ["insert"],
@@ -953,29 +953,29 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
953
953
  let { t } = U();
954
954
  return (r, i) => (s(), m("button", {
955
955
  type: "button",
956
- class: n([In, "tpl:mt-1.5"]),
956
+ class: n([zn, "tpl:mt-1.5"]),
957
957
  "aria-label": b(t).logicTag.insert,
958
958
  title: b(t).logicTag.insert,
959
959
  disabled: e.disabled,
960
960
  "data-testid": "field-insert-logic-button",
961
961
  onMousedown: i[0] ||= A(() => {}, ["prevent"]),
962
962
  onClick: i[1] ||= (e) => r.$emit("insert")
963
- }, [g(b(Qe), {
963
+ }, [g(b(tt), {
964
964
  size: 12,
965
965
  "stroke-width": 2
966
- }), y(" " + c(b(t).logicTag.insertShort), 1)], 42, Fn));
966
+ }), y(" " + c(b(t).logicTag.insertShort), 1)], 42, Rn));
967
967
  }
968
- }), Rn = { key: 0 }, zn = {
968
+ }), Vn = { key: 0 }, Hn = {
969
969
  key: 0,
970
970
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
971
- }, Bn = { key: 1 }, Vn = [
971
+ }, Un = { key: 1 }, Wn = [
972
972
  "value",
973
973
  "placeholder",
974
974
  "rows"
975
- ], Hn = {
975
+ ], Gn = {
976
976
  key: 0,
977
977
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
978
- }, Un = "tpl:w-full tpl:resize-y tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Wn = "tpl:flex tpl:w-full tpl:min-h-20 tpl:cursor-pointer tpl:items-start tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", Gn = /* @__PURE__ */ f({
978
+ }, Kn = "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)]", qn = "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)]", Jn = /* @__PURE__ */ f({
979
979
  __name: "MergeTagTextarea",
980
980
  props: {
981
981
  modelValue: {},
@@ -984,32 +984,32 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
984
984
  },
985
985
  emits: ["update:modelValue"],
986
986
  setup(e, { emit: t }) {
987
- let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: y, handleInput: x, handleKeydown: S, handleClick: C, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = Tn({
987
+ let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: y, handleInput: x, handleKeydown: S, handleClick: C, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = On({
988
988
  modelValue: () => r.modelValue,
989
989
  emit: (e) => i("update:modelValue", e),
990
990
  elementRef: a
991
991
  });
992
- return (t, r) => b(c) && !b(_) ? (s(), m("div", Rn, [g(jn, {
992
+ return (t, r) => b(c) && !b(_) ? (s(), m("div", Vn, [g(Pn, {
993
993
  segments: b(o),
994
- "display-class": Wn,
994
+ "display-class": qn,
995
995
  onEdit: b(y),
996
996
  onClear: b(E)
997
997
  }, null, 8, [
998
998
  "segments",
999
999
  "onEdit",
1000
1000
  "onClear"
1001
- ]), b(l) || b(f) ? (s(), m("div", zn, [b(l) ? (s(), v(Pn, {
1001
+ ]), b(l) || b(f) ? (s(), m("div", Hn, [b(l) ? (s(), v(Ln, {
1002
1002
  key: 0,
1003
1003
  disabled: b(u),
1004
1004
  onInsert: b(D)
1005
- }, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Ln, {
1005
+ }, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Bn, {
1006
1006
  key: 1,
1007
1007
  disabled: b(h),
1008
1008
  onInsert: b(O)
1009
- }, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div", Bn, [p("textarea", {
1009
+ }, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div", Un, [p("textarea", {
1010
1010
  ref_key: "textareaRef",
1011
1011
  ref: a,
1012
- class: n(Un),
1012
+ class: n(Kn),
1013
1013
  value: e.modelValue,
1014
1014
  placeholder: e.placeholder,
1015
1015
  rows: e.rows,
@@ -1017,22 +1017,22 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1017
1017
  onKeydown: r[1] ||= (...e) => b(S) && b(S)(...e),
1018
1018
  onClick: r[2] ||= (...e) => b(C) && b(C)(...e),
1019
1019
  onBlur: r[3] ||= (...e) => b(T) && b(T)(...e)
1020
- }, null, 40, Vn), b(l) || b(f) ? (s(), m("div", Hn, [b(l) ? (s(), v(Pn, {
1020
+ }, null, 40, Wn), b(l) || b(f) ? (s(), m("div", Gn, [b(l) ? (s(), v(Ln, {
1021
1021
  key: 0,
1022
1022
  disabled: b(u),
1023
1023
  onInsert: b(D)
1024
- }, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Ln, {
1024
+ }, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Bn, {
1025
1025
  key: 1,
1026
1026
  disabled: b(h),
1027
1027
  onInsert: b(O)
1028
1028
  }, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)]));
1029
1029
  }
1030
- }), Kn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, qn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, Jn = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Yn = { class: "tpl:mb-3.5" }, Xn = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, Zn = ["onClick"], Qn = { class: "tpl:flex tpl:items-stretch" }, $n = ["value"], er = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, tr = { class: "tpl:mb-3.5" }, nr = { class: "tpl:mb-3.5" }, rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:mb-3.5" }, ar = ["value"], or = ["value"], sr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, cr = ["value"], lr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, ur = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, dr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, fr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, pr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, mr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, hr = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, gr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, _r = { class: "tpl:mb-1 tpl:last:mb-0" }, vr = { class: "tpl:mb-1 tpl:last:mb-0" }, yr = { class: "tpl:mb-1 tpl:last:mb-0" }, br = 150, xr = /* @__PURE__ */ f({
1030
+ }), Yn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Xn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, Zn = { 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" }, $n = { 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)]" }, er = ["onClick"], tr = { class: "tpl:flex tpl:items-stretch" }, nr = ["value"], rr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ir = { class: "tpl:mb-3.5" }, ar = { class: "tpl:mb-3.5" }, or = { class: "tpl:mb-3.5" }, sr = { class: "tpl:mb-3.5" }, cr = ["value"], lr = ["value"], ur = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, dr = ["value"], fr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, pr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, mr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, hr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, gr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, _r = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, vr = { 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)]" }, yr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, br = { class: "tpl:mb-1 tpl:last:mb-0" }, xr = { class: "tpl:mb-1 tpl:last:mb-0" }, Sr = { class: "tpl:mb-1 tpl:last:mb-0" }, Cr = 150, wr = /* @__PURE__ */ f({
1031
1031
  __name: "TemplateSettings",
1032
1032
  props: { settings: {} },
1033
1033
  emits: ["update"],
1034
1034
  setup(r, { emit: i }) {
1035
- let a = r, o = i, { t: l } = U(), u = Ze(He, "TemplateSettings"), d = C(() => u.fonts.value), f = C(() => d.value.some((e) => e.value === a.settings.fontFamily) ? a.settings.fontFamily : u.defaultFont.value), h = [
1035
+ let a = r, o = i, { t: l } = U(), u = Fe(He, "TemplateSettings"), d = C(() => u.fonts.value), f = C(() => d.value.some((e) => e.value === a.settings.fontFamily) ? a.settings.fontFamily : u.defaultFont.value), h = [
1036
1036
  {
1037
1037
  value: 480,
1038
1038
  label: "480px"
@@ -1050,14 +1050,14 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1050
1050
  label: "800px"
1051
1051
  }
1052
1052
  ];
1053
- return (i, a) => (s(), m("aside", Kn, [p("div", qn, [
1054
- p("div", { class: n(b(kt)) }, [
1055
- p("div", Jn, [g(b(qt), {
1053
+ return (i, a) => (s(), m("aside", Yn, [p("div", Xn, [
1054
+ p("div", { class: n(b(Mt)) }, [
1055
+ p("div", Zn, [g(b(Xt), {
1056
1056
  class: "tpl:text-[var(--tpl-text-muted)]",
1057
1057
  size: 14,
1058
1058
  "stroke-width": 2
1059
1059
  }), p("span", null, c(b(l).templateSettings.layout), 1)]),
1060
- p("div", Yn, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.widthPreset), 3), p("div", Xn, [(s(), m(S, null, e(h, (e) => p("button", {
1060
+ p("div", Qn, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.widthPreset), 3), p("div", $n, [(s(), m(S, null, e(h, (e) => p("button", {
1061
1061
  key: e.value,
1062
1062
  class: "tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]",
1063
1063
  style: t({
@@ -1066,38 +1066,38 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1066
1066
  boxShadow: r.settings.width === e.value ? "var(--tpl-shadow)" : "none"
1067
1067
  }),
1068
1068
  onClick: (t) => o("update", { width: e.value })
1069
- }, c(e.label), 13, Zn)), 64))])]),
1070
- p("div", null, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.customWidth), 3), p("div", Qn, [p("input", {
1069
+ }, c(e.label), 13, er)), 64))])]),
1070
+ p("div", null, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.customWidth), 3), p("div", tr, [p("input", {
1071
1071
  type: "number",
1072
1072
  class: n(b(J)),
1073
1073
  value: r.settings.width,
1074
1074
  min: "300",
1075
1075
  max: "900",
1076
1076
  onInput: a[0] ||= (e) => o("update", { width: Number(e.target.value) })
1077
- }, null, 42, $n), p("span", { class: n(b(q)) }, "px", 2)])])
1077
+ }, null, 42, nr), p("span", { class: n(b(q)) }, "px", 2)])])
1078
1078
  ], 2),
1079
- p("div", { class: n(b(kt)) }, [
1080
- p("div", er, [g(b(Ft), {
1079
+ p("div", { class: n(b(Mt)) }, [
1080
+ p("div", rr, [g(b(Rt), {
1081
1081
  class: "tpl:text-[var(--tpl-text-muted)]",
1082
1082
  size: 14,
1083
1083
  "stroke-width": 2
1084
1084
  }), p("span", null, c(b(l).templateSettings.appearance), 1)]),
1085
- p("div", tr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.backgroundColor), 3), g(Y, {
1085
+ p("div", ir, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.backgroundColor), 3), g(Y, {
1086
1086
  "model-value": r.settings.backgroundColor,
1087
- placeholder: b(Ot),
1087
+ placeholder: b(jt),
1088
1088
  "onUpdate:modelValue": a[1] ||= (e) => o("update", { backgroundColor: e })
1089
1089
  }, null, 8, ["model-value", "placeholder"])]),
1090
- p("div", nr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.textColor), 3), g(Y, {
1090
+ p("div", ar, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.textColor), 3), g(Y, {
1091
1091
  "model-value": r.settings.textColor ?? "",
1092
1092
  "seed-color": "#1a1a1a",
1093
1093
  "onUpdate:modelValue": a[2] ||= (e) => o("update", { textColor: e })
1094
1094
  }, null, 8, ["model-value"])]),
1095
- p("div", rr, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.linkColor), 3), g(Y, {
1095
+ p("div", or, [p("label", { class: n(b(K)) }, c(b(l).templateSettings.linkColor), 3), g(Y, {
1096
1096
  "model-value": r.settings.linkColor ?? "",
1097
1097
  "seed-color": "#0066cc",
1098
1098
  "onUpdate:modelValue": a[3] ||= (e) => o("update", { linkColor: e || void 0 })
1099
1099
  }, null, 8, ["model-value"])]),
1100
- p("div", ir, [g(X, {
1100
+ p("div", sr, [g(X, {
1101
1101
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1102
1102
  "model-value": r.settings.linkUnderline,
1103
1103
  label: b(l).templateSettings.linkUnderline,
@@ -1110,9 +1110,9 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1110
1110
  }, [(s(!0), m(S, null, e(d.value, (e) => (s(), m("option", {
1111
1111
  key: e.value,
1112
1112
  value: e.value
1113
- }, c(e.label), 9, or))), 128))], 42, ar)])
1113
+ }, c(e.label), 9, lr))), 128))], 42, cr)])
1114
1114
  ], 2),
1115
- p("div", { class: n(b(kt)) }, [p("div", sr, [g(b(It), {
1115
+ p("div", { class: n(b(Mt)) }, [p("div", ur, [g(b(zt), {
1116
1116
  class: "tpl:text-[var(--tpl-text-muted)]",
1117
1117
  size: 14,
1118
1118
  "stroke-width": 2
@@ -1127,40 +1127,40 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1127
1127
  autocapitalize: "off",
1128
1128
  autocomplete: "off",
1129
1129
  onInput: a[6] ||= (e) => o("update", { locale: e.target.value.trim() || void 0 })
1130
- }, null, 42, cr),
1131
- p("p", lr, c(b(l).templateSettings.contentLocaleHint), 1)
1130
+ }, null, 42, dr),
1131
+ p("p", fr, c(b(l).templateSettings.contentLocaleHint), 1)
1132
1132
  ])], 2),
1133
- p("div", { class: n(b(kt)) }, [p("div", ur, [g(b(ot), {
1133
+ p("div", { class: n(b(Mt)) }, [p("div", pr, [g(b(lt), {
1134
1134
  class: "tpl:text-[var(--tpl-text-muted)]",
1135
1135
  size: 14,
1136
1136
  "stroke-width": 2
1137
- }), p("span", null, c(b(l).templateSettings.preheaderText), 1)]), p("div", null, [g(Gn, {
1137
+ }), p("span", null, c(b(l).templateSettings.preheaderText), 1)]), p("div", null, [g(Jn, {
1138
1138
  "model-value": r.settings.preheaderText ?? "",
1139
1139
  placeholder: b(l).templateSettings.preheaderTextPlaceholder,
1140
1140
  rows: 2,
1141
1141
  "onUpdate:modelValue": a[7] ||= (e) => o("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
1142
- }, null, 8, ["model-value", "placeholder"]), p("div", dr, [p("span", fr, c(b(l).templateSettings.preheaderTextHint), 1), p("span", pr, c((r.settings.preheaderText ?? "").length) + "/" + c(br), 1)])])], 2),
1143
- p("div", mr, [p("div", hr, [g(b(lt), {
1142
+ }, null, 8, ["model-value", "placeholder"]), p("div", mr, [p("span", hr, c(b(l).templateSettings.preheaderTextHint), 1), p("span", gr, c((r.settings.preheaderText ?? "").length) + "/" + c(Cr), 1)])])], 2),
1143
+ p("div", _r, [p("div", vr, [g(b(ft), {
1144
1144
  size: 14,
1145
1145
  "stroke-width": 2
1146
- }), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul", gr, [
1147
- p("li", _r, c(b(l).templateSettings.tip1), 1),
1148
- p("li", vr, c(b(l).templateSettings.tip2), 1),
1149
- p("li", yr, c(b(l).templateSettings.tip3), 1)
1146
+ }), p("span", null, c(b(l).templateSettings.tips), 1)]), p("ul", yr, [
1147
+ p("li", br, c(b(l).templateSettings.tip1), 1),
1148
+ p("li", xr, c(b(l).templateSettings.tip2), 1),
1149
+ p("li", Sr, c(b(l).templateSettings.tip3), 1)
1150
1150
  ])])
1151
1151
  ])]));
1152
1152
  }
1153
- }), Sr = { key: 0 }, Cr = {
1153
+ }), Tr = { key: 0 }, Er = {
1154
1154
  key: 0,
1155
1155
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1156
- }, wr = { key: 1 }, Tr = [
1156
+ }, Dr = { key: 1 }, Or = [
1157
1157
  "type",
1158
1158
  "value",
1159
1159
  "placeholder"
1160
- ], Er = {
1160
+ ], kr = {
1161
1161
  key: 0,
1162
1162
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1163
- }, Dr = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", $ = /*#__PURE__*/ vt(/* @__PURE__ */ f({
1163
+ }, Ar = "tpl:flex tpl:w-full tpl:min-h-10 tpl:cursor-pointer tpl:items-center tpl:flex-wrap tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:shadow-xs tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:px-3.5 tpl:py-1.5 tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", $ = /*#__PURE__*/ xt(/* @__PURE__ */ f({
1164
1164
  __name: "MergeTagInput",
1165
1165
  props: {
1166
1166
  modelValue: {},
@@ -1173,14 +1173,14 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1173
1173
  },
1174
1174
  emits: ["update:modelValue"],
1175
1175
  setup(e, { emit: t }) {
1176
- let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: y, handleInput: x, handleKeydown: S, handleClick: C, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = Tn({
1176
+ let r = e, i = t, a = d(null), { segments: o, hasMergeTags: c, canRequestMergeTag: l, isRequestingMergeTag: u, canInsertLogicTag: f, isRequestingLogicTag: h, isEditing: _, startEditing: y, handleInput: x, handleKeydown: S, handleClick: C, handleBlur: T, clearValue: E, insertMergeTag: D, insertLogicTag: O } = On({
1177
1177
  modelValue: () => r.modelValue,
1178
1178
  emit: (e) => i("update:modelValue", e),
1179
1179
  elementRef: a
1180
1180
  });
1181
- return (t, r) => b(c) && !b(_) ? (s(), m("div", Sr, [g(jn, {
1181
+ return (t, r) => b(c) && !b(_) ? (s(), m("div", Tr, [g(Pn, {
1182
1182
  segments: b(o),
1183
- "display-class": Dr,
1183
+ "display-class": Ar,
1184
1184
  pulse: e.pulse,
1185
1185
  onEdit: b(y),
1186
1186
  onClear: b(E)
@@ -1189,15 +1189,15 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1189
1189
  "pulse",
1190
1190
  "onEdit",
1191
1191
  "onClear"
1192
- ]), b(l) || b(f) ? (s(), m("div", Cr, [b(l) ? (s(), v(Pn, {
1192
+ ]), b(l) || b(f) ? (s(), m("div", Er, [b(l) ? (s(), v(Ln, {
1193
1193
  key: 0,
1194
1194
  disabled: b(u),
1195
1195
  onInsert: b(D)
1196
- }, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Ln, {
1196
+ }, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Bn, {
1197
1197
  key: 1,
1198
1198
  disabled: b(h),
1199
1199
  onInsert: b(O)
1200
- }, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div", wr, [p("input", {
1200
+ }, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)])) : (s(), m("div", Dr, [p("input", {
1201
1201
  ref_key: "inputRef",
1202
1202
  ref: a,
1203
1203
  type: e.type,
@@ -1208,20 +1208,20 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1208
1208
  onKeydown: r[1] ||= (...e) => b(S) && b(S)(...e),
1209
1209
  onClick: r[2] ||= (...e) => b(C) && b(C)(...e),
1210
1210
  onBlur: r[3] ||= (...e) => b(T) && b(T)(...e)
1211
- }, null, 42, Tr), b(l) || b(f) ? (s(), m("div", Er, [b(l) ? (s(), v(Pn, {
1211
+ }, null, 42, Or), b(l) || b(f) ? (s(), m("div", kr, [b(l) ? (s(), v(Ln, {
1212
1212
  key: 0,
1213
1213
  disabled: b(u),
1214
1214
  onInsert: b(D)
1215
- }, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Ln, {
1215
+ }, null, 8, ["disabled", "onInsert"])) : w("", !0), b(f) ? (s(), v(Bn, {
1216
1216
  key: 1,
1217
1217
  disabled: b(h),
1218
1218
  onInsert: b(O)
1219
1219
  }, null, 8, ["disabled", "onInsert"])) : w("", !0)])) : w("", !0)]));
1220
1220
  }
1221
- }), [["__scopeId", "data-v-d6563be6"]]), Or = { class: "tpl:mb-3.5" }, kr = ["value"], Ar = { value: "" }, jr = ["value"], Mr = { class: "tpl:mb-3.5" }, Nr = { class: "tpl:mb-3.5" }, Pr = { class: "tpl:mb-3.5" }, Fr = { class: "tpl:mb-3.5" }, Ir = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Lr = { class: "tpl:mb-3.5" }, Rr = { class: "tpl:flex tpl:items-stretch" }, zr = ["value"], Br = { class: "tpl:mb-3.5" }, Vr = { class: "tpl:flex tpl:items-stretch" }, Hr = ["value"], Ur = { class: "tpl:mb-3.5" }, Wr = ["value"], Gr = { value: "auto" }, Kr = { value: "full" }, qr = { value: "custom" }, Jr = {
1221
+ }), [["__scopeId", "data-v-d6563be6"]]), jr = { class: "tpl:mb-3.5" }, Mr = ["value"], Nr = { value: "" }, Pr = ["value"], Fr = { class: "tpl:mb-3.5" }, Ir = { class: "tpl:mb-3.5" }, Lr = { class: "tpl:mb-3.5" }, Rr = { class: "tpl:mb-3.5" }, zr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Br = { class: "tpl:mb-3.5" }, Vr = { class: "tpl:flex tpl:items-stretch" }, Hr = ["value"], Ur = { class: "tpl:mb-3.5" }, Wr = { class: "tpl:flex tpl:items-stretch" }, Gr = ["value"], Kr = { class: "tpl:mb-3.5" }, qr = ["value"], Jr = { value: "auto" }, Yr = { value: "full" }, Xr = { value: "custom" }, Zr = {
1222
1222
  key: 0,
1223
1223
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1224
- }, Yr = ["value"], Xr = 200, Zr = /* @__PURE__ */ f({
1224
+ }, Qr = ["value"], $r = 200, ei = /* @__PURE__ */ f({
1225
1225
  __name: "ButtonToolbar",
1226
1226
  props: {
1227
1227
  block: {},
@@ -1239,7 +1239,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1239
1239
  return;
1240
1240
  }
1241
1241
  if (e === "custom") {
1242
- u("width", typeof i.block.width == "number" ? i.block.width : Xr);
1242
+ u("width", typeof i.block.width == "number" ? i.block.width : $r);
1243
1243
  return;
1244
1244
  }
1245
1245
  u("width", void 0);
@@ -1249,20 +1249,20 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1249
1249
  !Number.isFinite(t) || t <= 0 || u("width", t);
1250
1250
  }
1251
1251
  return (r, i) => (s(), m(S, null, [
1252
- p("div", Or, [p("label", { class: n(b(K)) }, c(b(o).button.fontFamily), 3), p("select", {
1252
+ p("div", jr, [p("label", { class: n(b(K)) }, c(b(o).button.fontFamily), 3), p("select", {
1253
1253
  class: n(b(G)),
1254
1254
  value: t.block.fontFamily || "",
1255
1255
  onChange: i[0] ||= (e) => u("fontFamily", e.target.value || void 0)
1256
- }, [p("option", Ar, c(b(o).button.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
1256
+ }, [p("option", Nr, c(b(o).button.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
1257
1257
  key: e.value,
1258
1258
  value: e.value
1259
- }, c(e.label), 9, jr))), 128))], 42, kr)]),
1260
- p("div", Mr, [p("label", { class: n(b(K)) }, c(b(o).button.text), 3), g($, {
1259
+ }, c(e.label), 9, Pr))), 128))], 42, Mr)]),
1260
+ p("div", Fr, [p("label", { class: n(b(K)) }, c(b(o).button.text), 3), g($, {
1261
1261
  "model-value": t.block.text,
1262
1262
  type: "text",
1263
1263
  "onUpdate:modelValue": i[1] ||= (e) => u("text", e)
1264
1264
  }, null, 8, ["model-value"])]),
1265
- p("div", Nr, [
1265
+ p("div", Ir, [
1266
1266
  p("label", { class: n(b(K)) }, c(b(o).button.url), 3),
1267
1267
  g($, {
1268
1268
  "model-value": t.block.url,
@@ -1278,51 +1278,51 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1278
1278
  "onUpdate:modelValue": i[3] ||= (e) => u("openInNewTab", e)
1279
1279
  }, null, 8, ["model-value", "label"])) : w("", !0)
1280
1280
  ]),
1281
- p("div", Pr, [p("label", { class: n(b(K)) }, c(b(o).button.background), 3), g(Y, {
1281
+ p("div", Lr, [p("label", { class: n(b(K)) }, c(b(o).button.background), 3), g(Y, {
1282
1282
  "model-value": t.block.backgroundColor,
1283
1283
  "onUpdate:modelValue": i[4] ||= (e) => u("backgroundColor", e)
1284
1284
  }, null, 8, ["model-value"])]),
1285
- p("div", Fr, [p("label", { class: n(b(K)) }, c(b(o).button.textColor), 3), g(Y, {
1285
+ p("div", Rr, [p("label", { class: n(b(K)) }, c(b(o).button.textColor), 3), g(Y, {
1286
1286
  "model-value": t.block.textColor,
1287
1287
  "onUpdate:modelValue": i[5] ||= (e) => u("textColor", e)
1288
1288
  }, null, 8, ["model-value"])]),
1289
- p("div", Ir, [p("div", Lr, [p("label", { class: n(b(K)) }, c(b(o).button.borderRadius), 3), p("div", Rr, [p("input", {
1289
+ p("div", zr, [p("div", Br, [p("label", { class: n(b(K)) }, c(b(o).button.borderRadius), 3), p("div", Vr, [p("input", {
1290
1290
  type: "number",
1291
1291
  class: n(b(J)),
1292
1292
  value: t.block.borderRadius,
1293
1293
  min: "0",
1294
1294
  max: "50",
1295
1295
  onInput: i[6] ||= (e) => u("borderRadius", Number(e.target.value))
1296
- }, null, 42, zr), p("span", { class: n(b(q)) }, "px", 2)])]), p("div", Br, [p("label", { class: n(b(K)) }, c(b(o).button.fontSize), 3), p("div", Vr, [p("input", {
1296
+ }, null, 42, Hr), p("span", { class: n(b(q)) }, "px", 2)])]), p("div", Ur, [p("label", { class: n(b(K)) }, c(b(o).button.fontSize), 3), p("div", Wr, [p("input", {
1297
1297
  type: "number",
1298
1298
  class: n(b(J)),
1299
1299
  value: t.block.fontSize,
1300
1300
  min: "10",
1301
1301
  max: "36",
1302
1302
  onInput: i[7] ||= (e) => u("fontSize", Number(e.target.value))
1303
- }, null, 42, Hr), p("span", { class: n(b(q)) }, "px", 2)])])]),
1304
- p("div", Ur, [
1303
+ }, null, 42, Gr), p("span", { class: n(b(q)) }, "px", 2)])])]),
1304
+ p("div", Kr, [
1305
1305
  p("label", { class: n(b(K)) }, c(b(o).button.width), 3),
1306
1306
  p("select", {
1307
1307
  class: n(b(G)),
1308
1308
  value: l.value,
1309
1309
  onChange: i[8] ||= (e) => d(e.target.value)
1310
1310
  }, [
1311
- p("option", Gr, c(b(o).button.widthAuto), 1),
1312
- p("option", Kr, c(b(o).button.fullWidth), 1),
1313
- p("option", qr, c(b(o).button.widthCustom), 1)
1314
- ], 42, Wr),
1315
- l.value === "custom" ? (s(), m("div", Jr, [p("input", {
1311
+ p("option", Jr, c(b(o).button.widthAuto), 1),
1312
+ p("option", Yr, c(b(o).button.fullWidth), 1),
1313
+ p("option", Xr, c(b(o).button.widthCustom), 1)
1314
+ ], 42, qr),
1315
+ l.value === "custom" ? (s(), m("div", Zr, [p("input", {
1316
1316
  type: "number",
1317
1317
  class: n(b(J)),
1318
- value: typeof t.block.width == "number" ? t.block.width : Xr,
1318
+ value: typeof t.block.width == "number" ? t.block.width : $r,
1319
1319
  min: "20",
1320
1320
  onInput: i[9] ||= (e) => f(e.target.value)
1321
- }, null, 42, Yr), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
1321
+ }, null, 42, Qr), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
1322
1322
  ])
1323
1323
  ], 64));
1324
1324
  }
1325
- }), Qr = { class: "spacing-control" }, $r = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ei = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ti = { class: "tpl:flex tpl:items-center" }, ni = ["aria-label"], ri = ["value", "aria-label"], ii = ["aria-label"], ai = { class: "tpl:flex tpl:items-center tpl:gap-2" }, oi = { class: "tpl:flex tpl:items-center" }, si = ["aria-label"], ci = ["value", "aria-label"], li = ["aria-label"], ui = ["aria-label", "title"], di = { class: "tpl:flex tpl:items-center" }, fi = ["aria-label"], pi = ["value", "aria-label"], mi = ["aria-label"], hi = { class: "tpl:flex tpl:items-center" }, gi = ["aria-label"], _i = ["value", "aria-label"], vi = ["aria-label"], yi = "tpl:flex tpl:items-center tpl:justify-center tpl:w-8 tpl:h-8 tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg)] tpl:border tpl:border-[var(--tpl-border)] tpl:cursor-pointer tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] active:tpl:bg-[var(--tpl-bg-active)]", bi = "tpl:w-10 tpl:h-8 tpl:text-center tpl:text-xs tpl:font-medium tpl:border-y tpl:border-x-0 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:outline-none tpl:transition-all tpl:duration-[120ms] focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", xi = /*#__PURE__*/ vt(/* @__PURE__ */ f({
1325
+ }), ti = { class: "spacing-control" }, ni = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ri = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, ii = { class: "tpl:flex tpl:items-center" }, ai = ["aria-label"], oi = ["value", "aria-label"], si = ["aria-label"], ci = { class: "tpl:flex tpl:items-center tpl:gap-2" }, li = { class: "tpl:flex tpl:items-center" }, ui = ["aria-label"], di = ["value", "aria-label"], fi = ["aria-label"], pi = ["aria-label", "title"], mi = { class: "tpl:flex tpl:items-center" }, hi = ["aria-label"], gi = ["value", "aria-label"], _i = ["aria-label"], vi = { class: "tpl:flex tpl:items-center" }, yi = ["aria-label"], bi = ["value", "aria-label"], xi = ["aria-label"], Si = "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__*/ xt(/* @__PURE__ */ f({
1326
1326
  __name: "SpacingControl",
1327
1327
  props: {
1328
1328
  modelValue: {},
@@ -1369,130 +1369,130 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1369
1369
  });
1370
1370
  }
1371
1371
  }
1372
- return (t, r) => (s(), m("div", Qr, [p("label", $r, c(e.label), 1), p("div", ei, [
1373
- p("div", ti, [
1372
+ return (t, r) => (s(), m("div", ti, [p("label", ni, c(e.label), 1), p("div", ri, [
1373
+ p("div", ii, [
1374
1374
  p("button", {
1375
1375
  "aria-label": b(o).spacingControl.decreaseTop,
1376
- class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1376
+ class: n([Si, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1377
1377
  onClick: r[0] ||= (e) => f("top", -1)
1378
- }, [g(b(nt), {
1378
+ }, [g(b(at), {
1379
1379
  size: 12,
1380
1380
  "stroke-width": 2
1381
- })], 10, ni),
1381
+ })], 10, ai),
1382
1382
  p("input", {
1383
1383
  type: "number",
1384
- class: n(bi),
1384
+ class: n(Ci),
1385
1385
  value: e.modelValue.top,
1386
1386
  "aria-label": b(o).spacingControl.top,
1387
1387
  min: "0",
1388
1388
  onInput: r[1] ||= (e) => h("top", Number(e.target.value))
1389
- }, null, 40, ri),
1389
+ }, null, 40, oi),
1390
1390
  p("button", {
1391
1391
  "aria-label": b(o).spacingControl.increaseTop,
1392
- class: n([yi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1392
+ class: n([Si, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1393
1393
  onClick: r[2] ||= (e) => f("top", 1)
1394
1394
  }, [g(b(Q), {
1395
1395
  size: 12,
1396
1396
  "stroke-width": 2
1397
- })], 10, ii)
1397
+ })], 10, si)
1398
1398
  ]),
1399
- p("div", ai, [
1400
- p("div", oi, [
1399
+ p("div", ci, [
1400
+ p("div", li, [
1401
1401
  p("button", {
1402
1402
  "aria-label": b(o).spacingControl.decreaseLeft,
1403
- class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1403
+ class: n([Si, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1404
1404
  onClick: r[3] ||= (e) => f("left", -1)
1405
- }, [g(b(nt), {
1405
+ }, [g(b(at), {
1406
1406
  size: 12,
1407
1407
  "stroke-width": 2
1408
- })], 10, si),
1408
+ })], 10, ui),
1409
1409
  p("input", {
1410
1410
  type: "number",
1411
- class: n(bi),
1411
+ class: n(Ci),
1412
1412
  value: e.modelValue.left,
1413
1413
  "aria-label": b(o).spacingControl.left,
1414
1414
  min: "0",
1415
1415
  onInput: r[4] ||= (e) => h("left", Number(e.target.value))
1416
- }, null, 40, ci),
1416
+ }, null, 40, di),
1417
1417
  p("button", {
1418
1418
  "aria-label": b(o).spacingControl.increaseLeft,
1419
- class: n([yi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1419
+ class: n([Si, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1420
1420
  onClick: r[5] ||= (e) => f("left", 1)
1421
1421
  }, [g(b(Q), {
1422
1422
  size: 12,
1423
1423
  "stroke-width": 2
1424
- })], 10, li)
1424
+ })], 10, fi)
1425
1425
  ]),
1426
1426
  p("button", {
1427
1427
  class: n(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", u.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
1428
1428
  "aria-label": u.value ? b(o).spacingControl.unlock : b(o).spacingControl.lockAll,
1429
1429
  title: u.value ? b(o).spacingControl.unlock : b(o).spacingControl.lockAll,
1430
1430
  onClick: _
1431
- }, [u.value ? (s(), v(b(zt), {
1431
+ }, [u.value ? (s(), v(b(Ht), {
1432
1432
  key: 0,
1433
1433
  size: 14,
1434
1434
  "stroke-width": 2
1435
- })) : (s(), v(b(Rt), {
1435
+ })) : (s(), v(b(Vt), {
1436
1436
  key: 1,
1437
1437
  size: 14,
1438
1438
  "stroke-width": 2
1439
- }))], 10, ui),
1440
- p("div", di, [
1439
+ }))], 10, pi),
1440
+ p("div", mi, [
1441
1441
  p("button", {
1442
1442
  "aria-label": b(o).spacingControl.decreaseRight,
1443
- class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1443
+ class: n([Si, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1444
1444
  onClick: r[6] ||= (e) => f("right", -1)
1445
- }, [g(b(nt), {
1445
+ }, [g(b(at), {
1446
1446
  size: 12,
1447
1447
  "stroke-width": 2
1448
- })], 10, fi),
1448
+ })], 10, hi),
1449
1449
  p("input", {
1450
1450
  type: "number",
1451
- class: n(bi),
1451
+ class: n(Ci),
1452
1452
  value: e.modelValue.right,
1453
1453
  "aria-label": b(o).spacingControl.right,
1454
1454
  min: "0",
1455
1455
  onInput: r[7] ||= (e) => h("right", Number(e.target.value))
1456
- }, null, 40, pi),
1456
+ }, null, 40, gi),
1457
1457
  p("button", {
1458
1458
  "aria-label": b(o).spacingControl.increaseRight,
1459
- class: n([yi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1459
+ class: n([Si, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1460
1460
  onClick: r[8] ||= (e) => f("right", 1)
1461
1461
  }, [g(b(Q), {
1462
1462
  size: 12,
1463
1463
  "stroke-width": 2
1464
- })], 10, mi)
1464
+ })], 10, _i)
1465
1465
  ])
1466
1466
  ]),
1467
- p("div", hi, [
1467
+ p("div", vi, [
1468
1468
  p("button", {
1469
1469
  "aria-label": b(o).spacingControl.decreaseBottom,
1470
- class: n([yi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1470
+ class: n([Si, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1471
1471
  onClick: r[9] ||= (e) => f("bottom", -1)
1472
- }, [g(b(nt), {
1472
+ }, [g(b(at), {
1473
1473
  size: 12,
1474
1474
  "stroke-width": 2
1475
- })], 10, gi),
1475
+ })], 10, yi),
1476
1476
  p("input", {
1477
1477
  type: "number",
1478
- class: n(bi),
1478
+ class: n(Ci),
1479
1479
  value: e.modelValue.bottom,
1480
1480
  "aria-label": b(o).spacingControl.bottom,
1481
1481
  min: "0",
1482
1482
  onInput: r[10] ||= (e) => h("bottom", Number(e.target.value))
1483
- }, null, 40, _i),
1483
+ }, null, 40, bi),
1484
1484
  p("button", {
1485
1485
  "aria-label": b(o).spacingControl.increaseBottom,
1486
- class: n([yi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1486
+ class: n([Si, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1487
1487
  onClick: r[11] ||= (e) => f("bottom", 1)
1488
1488
  }, [g(b(Q), {
1489
1489
  size: 12,
1490
1490
  "stroke-width": 2
1491
- })], 10, vi)
1491
+ })], 10, xi)
1492
1492
  ])
1493
1493
  ])]));
1494
1494
  }
1495
- }), [["__scopeId", "data-v-9a9c8a07"]]), Si = { class: "tpl:mt-3" }, Ci = /* @__PURE__ */ f({
1495
+ }), [["__scopeId", "data-v-9a9c8a07"]]), Ti = { class: "tpl:mt-3" }, Ei = /* @__PURE__ */ f({
1496
1496
  __name: "CollapsibleSection",
1497
1497
  props: {
1498
1498
  title: {},
@@ -1505,25 +1505,25 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1505
1505
  type: "button",
1506
1506
  class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1507
1507
  onClick: r[0] ||= (e) => t.$emit("toggle")
1508
- }, [g(b(et), {
1508
+ }, [g(b(rt), {
1509
1509
  class: n(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1510
1510
  size: 12,
1511
1511
  "stroke-width": 2
1512
- }, null, 8, ["class"]), p("span", null, c(e.title), 1)]), O(p("div", Si, [_(t.$slots, "default")], 512), [[j, e.open]])], 2));
1512
+ }, null, 8, ["class"]), p("span", null, c(e.title), 1)]), O(p("div", Ti, [_(t.$slots, "default")], 512), [[j, e.open]])], 2));
1513
1513
  }
1514
- }), wi = { class: "tpl:space-y-2" }, Ti = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ei = { class: "tpl:space-y-2" }, Di = ["value"], Oi = { value: "" }, ki = ["label"], Ai = ["value"], ji = ["value"], Mi = {
1514
+ }), Di = { class: "tpl:space-y-2" }, Oi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ki = { class: "tpl:space-y-2" }, Ai = ["value"], ji = { value: "" }, Mi = ["label"], Ni = ["value"], Pi = ["value"], Fi = {
1515
1515
  key: 0,
1516
1516
  value: "__custom__"
1517
- }, Ni = {
1517
+ }, Ii = {
1518
1518
  key: 0,
1519
1519
  class: "tpl:space-y-2"
1520
- }, Pi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Fi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ii = { class: "tpl:flex tpl:justify-end" }, Li = ["disabled"], Ri = {
1520
+ }, 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 = {
1521
1521
  key: 0,
1522
1522
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1523
- }, zi = { class: "tpl:space-y-1" }, Bi = { class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]" }, Vi = {
1523
+ }, 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 = {
1524
1524
  key: 0,
1525
1525
  class: "tpl:m-0 tpl:overflow-x-auto tpl:rounded tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
1526
- }, Hi = /* @__PURE__ */ f({
1526
+ }, Gi = /* @__PURE__ */ f({
1527
1527
  __name: "CommonBlockSettings",
1528
1528
  props: {
1529
1529
  block: {},
@@ -1531,13 +1531,13 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1531
1531
  },
1532
1532
  emits: ["update"],
1533
1533
  setup(t, { emit: r }) {
1534
- let a = t, u = r, { t: f } = U(), h = E(Je, []), _ = E(Ke, !1), T = x(/* @__PURE__ */ new Set()), D = d(!1), A = d(""), j = d(""), M = [{
1534
+ let a = t, u = r, { t: f } = U(), h = E(Je, []), _ = E(Ye, !1), T = x(/* @__PURE__ */ new Set()), D = d(!1), A = d(""), j = d(""), M = [{
1535
1535
  key: "desktop",
1536
- icon: Bt,
1536
+ icon: Ut,
1537
1537
  labelKey: "showOnDesktop"
1538
1538
  }, {
1539
1539
  key: "mobile",
1540
- icon: Gt,
1540
+ icon: Jt,
1541
1541
  labelKey: "showOnMobile"
1542
1542
  }];
1543
1543
  function N(e) {
@@ -1586,13 +1586,13 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1586
1586
  t[e] = !t[e], u("update", { visibility: t });
1587
1587
  }
1588
1588
  return (r, i) => (s(), m("div", { class: n(["tpl:flex tpl:flex-col", t.isFirstSection ? "" : "tpl:mt-4"]) }, [
1589
- g(Ci, {
1589
+ g(Ei, {
1590
1590
  title: b(f).blockSettings.spacing,
1591
1591
  open: T.has("spacing"),
1592
1592
  "no-border": t.isFirstSection,
1593
1593
  onToggle: i[1] ||= (e) => N("spacing")
1594
1594
  }, {
1595
- default: l(() => [g(xi, {
1595
+ default: l(() => [g(wi, {
1596
1596
  label: b(f).blockSettings.padding,
1597
1597
  "model-value": t.block.styles.padding,
1598
1598
  "onUpdate:modelValue": i[0] ||= (e) => z("padding", e)
@@ -1603,7 +1603,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1603
1603
  "open",
1604
1604
  "no-border"
1605
1605
  ]),
1606
- g(Ci, {
1606
+ g(Ei, {
1607
1607
  title: b(f).blockSettings.background,
1608
1608
  open: T.has("bg"),
1609
1609
  onToggle: i[3] ||= (e) => N("bg")
@@ -1614,19 +1614,19 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1614
1614
  }, null, 8, ["model-value"])]),
1615
1615
  _: 1
1616
1616
  }, 8, ["title", "open"]),
1617
- g(Ci, {
1617
+ g(Ei, {
1618
1618
  title: b(f).blockSettings.display,
1619
1619
  open: T.has("display"),
1620
1620
  onToggle: i[4] ||= (e) => N("display")
1621
1621
  }, {
1622
- default: l(() => [p("div", wi, [(s(), m(S, null, e(M, (e) => g(X, {
1622
+ default: l(() => [p("div", Di, [(s(), m(S, null, e(M, (e) => g(X, {
1623
1623
  key: e.key,
1624
1624
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1625
1625
  "model-value": B(e.key),
1626
1626
  label: b(f).blockSettings[e.labelKey],
1627
1627
  "onUpdate:modelValue": (t) => V(e.key)
1628
1628
  }, {
1629
- default: l(() => [p("span", Ti, [(s(), v(o(e.icon), {
1629
+ default: l(() => [p("span", Oi, [(s(), v(o(e.icon), {
1630
1630
  size: 14,
1631
1631
  "stroke-width": 1.5
1632
1632
  })), y(" " + c(b(f).blockSettings[e.labelKey]), 1)])]),
@@ -1638,13 +1638,13 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1638
1638
  ])), 64))])]),
1639
1639
  _: 1
1640
1640
  }, 8, ["title", "open"]),
1641
- P.value ? (s(), v(Ci, {
1641
+ P.value ? (s(), v(Ei, {
1642
1642
  key: 0,
1643
1643
  title: b(f).blockSettings.displayCondition,
1644
1644
  open: T.has("condition"),
1645
1645
  onToggle: i[8] ||= (e) => N("condition")
1646
1646
  }, {
1647
- default: l(() => [p("div", Ei, [p("select", {
1647
+ default: l(() => [p("div", ki, [p("select", {
1648
1648
  class: n(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", t.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
1649
1649
  value: D.value || F.value ? "__custom__" : t.block.displayCondition?.label ?? "",
1650
1650
  onChange: i[5] ||= (e) => {
@@ -1661,41 +1661,41 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1661
1661
  n && u("update", { displayCondition: n });
1662
1662
  }
1663
1663
  }, [
1664
- p("option", Oi, c(b(f).blockSettings.noCondition), 1),
1664
+ p("option", ji, c(b(f).blockSettings.noCondition), 1),
1665
1665
  (s(!0), m(S, null, e(R.value, (t, n) => (s(), m(S, { key: n }, [n ? (s(), m("optgroup", {
1666
1666
  key: 0,
1667
1667
  label: String(n)
1668
1668
  }, [(s(!0), m(S, null, e(t, (e) => (s(), m("option", {
1669
1669
  key: e.label,
1670
1670
  value: e.label
1671
- }, c(e.label), 9, Ai))), 128))], 8, ki)) : (s(!0), m(S, { key: 1 }, e(t, (e) => (s(), m("option", {
1671
+ }, c(e.label), 9, Ni))), 128))], 8, Mi)) : (s(!0), m(S, { key: 1 }, e(t, (e) => (s(), m("option", {
1672
1672
  key: e.label,
1673
1673
  value: e.label
1674
- }, c(e.label), 9, ji))), 128))], 64))), 128)),
1675
- b(_) ? (s(), m("option", Mi, c(b(f).blockSettings.customCondition), 1)) : w("", !0)
1676
- ], 42, Di), D.value || F.value ? (s(), m("div", Ni, [
1677
- p("div", null, [p("label", Pi, c(b(f).blockSettings.customConditionBefore), 1), O(p("textarea", {
1674
+ }, c(e.label), 9, Pi))), 128))], 64))), 128)),
1675
+ b(_) ? (s(), m("option", Fi, c(b(f).blockSettings.customCondition), 1)) : w("", !0)
1676
+ ], 42, Ai), D.value || F.value ? (s(), m("div", Ii, [
1677
+ p("div", null, [p("label", Li, c(b(f).blockSettings.customConditionBefore), 1), O(p("textarea", {
1678
1678
  "onUpdate:modelValue": i[6] ||= (e) => A.value = e,
1679
1679
  rows: "2",
1680
- class: n(b(Tt))
1680
+ class: n(b(Ot))
1681
1681
  }, null, 2), [[k, A.value]])]),
1682
- p("div", null, [p("label", Fi, c(b(f).blockSettings.customConditionAfter), 1), O(p("textarea", {
1682
+ p("div", null, [p("label", Ri, c(b(f).blockSettings.customConditionAfter), 1), O(p("textarea", {
1683
1683
  "onUpdate:modelValue": i[7] ||= (e) => j.value = e,
1684
1684
  rows: "2",
1685
- class: n(b(Tt))
1685
+ class: n(b(Ot))
1686
1686
  }, null, 2), [[k, j.value]])]),
1687
- p("div", Ii, [p("button", {
1687
+ p("div", zi, [p("button", {
1688
1688
  type: "button",
1689
1689
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:opacity-50",
1690
1690
  disabled: !A.value.trim(),
1691
1691
  onClick: L
1692
- }, c(b(f).blockSettings.applyCondition), 9, Li)])
1693
- ])) : t.block.displayCondition && !F.value ? (s(), m(S, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p", Ri, c(t.block.displayCondition.description), 1)) : w("", !0), p("div", zi, [p("pre", Bi, c(t.block.displayCondition.before), 1), t.block.displayCondition.after ? (s(), m("pre", Vi, c(t.block.displayCondition.after), 1)) : w("", !0)])], 64)) : w("", !0)])]),
1692
+ }, c(b(f).blockSettings.applyCondition), 9, Bi)])
1693
+ ])) : t.block.displayCondition && !F.value ? (s(), m(S, { key: 1 }, [t.block.displayCondition.description ? (s(), m("p", Vi, c(t.block.displayCondition.description), 1)) : w("", !0), p("div", Hi, [p("pre", Ui, c(t.block.displayCondition.before), 1), t.block.displayCondition.after ? (s(), m("pre", Wi, c(t.block.displayCondition.after), 1)) : w("", !0)])], 64)) : w("", !0)])]),
1694
1694
  _: 1
1695
1695
  }, 8, ["title", "open"])) : w("", !0)
1696
1696
  ], 2));
1697
1697
  }
1698
- }), Ui = ["title"], Wi = /* @__PURE__ */ f({
1698
+ }), Ki = ["title"], qi = /* @__PURE__ */ f({
1699
1699
  __name: "BooleanField",
1700
1700
  props: {
1701
1701
  field: {},
@@ -1716,7 +1716,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1716
1716
  disabled: e.readOnly,
1717
1717
  "onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
1718
1718
  }, {
1719
- default: l(() => [y(c(e.field.label) + " ", 1), e.readOnly ? (s(), v(b(zt), {
1719
+ default: l(() => [y(c(e.field.label) + " ", 1), e.readOnly ? (s(), v(b(Ht), {
1720
1720
  key: 0,
1721
1721
  size: 12,
1722
1722
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -1727,12 +1727,12 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1727
1727
  "label",
1728
1728
  "required",
1729
1729
  "disabled"
1730
- ])], 8, Ui));
1730
+ ])], 8, Ki));
1731
1731
  }
1732
- }), Gi = { class: "tpl:mb-3.5" }, Ki = {
1732
+ }), Ji = { class: "tpl:mb-3.5" }, Yi = {
1733
1733
  key: 1,
1734
1734
  class: "tpl:text-[var(--tpl-danger)]"
1735
- }, qi = /* @__PURE__ */ f({
1735
+ }, Xi = /* @__PURE__ */ f({
1736
1736
  __name: "FieldWrapper",
1737
1737
  props: {
1738
1738
  label: {},
@@ -1740,17 +1740,17 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1740
1740
  readOnly: { type: Boolean }
1741
1741
  },
1742
1742
  setup(e) {
1743
- return (t, r) => (s(), m("div", Gi, [p("label", { class: n(b(K)) }, [
1743
+ return (t, r) => (s(), m("div", Ji, [p("label", { class: n(b(K)) }, [
1744
1744
  y(c(e.label) + " ", 1),
1745
- e.readOnly ? (s(), v(b(zt), {
1745
+ e.readOnly ? (s(), v(b(Ht), {
1746
1746
  key: 0,
1747
1747
  size: 12,
1748
1748
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1749
1749
  })) : w("", !0),
1750
- e.required ? (s(), m("span", Ki, "*")) : w("", !0)
1750
+ e.required ? (s(), m("span", Yi, "*")) : w("", !0)
1751
1751
  ], 2), _(t.$slots, "default")]));
1752
1752
  }
1753
- }), Ji = /* @__PURE__ */ f({
1753
+ }), Zi = /* @__PURE__ */ f({
1754
1754
  __name: "ColorField",
1755
1755
  props: {
1756
1756
  field: {},
@@ -1759,8 +1759,8 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1759
1759
  },
1760
1760
  emits: ["update:modelValue"],
1761
1761
  setup(e, { emit: t }) {
1762
- let n = t, { t: r } = U();
1763
- return (t, i) => (s(), v(qi, {
1762
+ let n = e, r = t, { t: i } = U(), a = E(qe, Me), o = C(() => oe(n.field, a));
1763
+ return (t, n) => (s(), v(Xi, {
1764
1764
  label: e.field.label,
1765
1765
  required: e.field.required,
1766
1766
  "read-only": e.readOnly
@@ -1769,12 +1769,16 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1769
1769
  "model-value": e.modelValue,
1770
1770
  placeholder: e.field.placeholder,
1771
1771
  disabled: e.readOnly,
1772
- title: e.readOnly ? b(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1773
- "onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
1772
+ presets: o.value.presets,
1773
+ "allow-custom": o.value.allowCustom,
1774
+ title: e.readOnly ? b(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1775
+ "onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
1774
1776
  }, null, 8, [
1775
1777
  "model-value",
1776
1778
  "placeholder",
1777
1779
  "disabled",
1780
+ "presets",
1781
+ "allow-custom",
1778
1782
  "title"
1779
1783
  ])]),
1780
1784
  _: 1
@@ -1784,15 +1788,15 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1784
1788
  "read-only"
1785
1789
  ]));
1786
1790
  }
1787
- }), Yi = {
1791
+ }), Qi = {
1788
1792
  key: 0,
1789
1793
  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)]",
1790
1794
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1791
- }, Xi = [
1795
+ }, $i = [
1792
1796
  "value",
1793
1797
  "placeholder",
1794
1798
  "title"
1795
- ], Zi = ["value", "placeholder"], Qi = /* @__PURE__ */ f({
1799
+ ], ea = ["value", "placeholder"], ta = /* @__PURE__ */ f({
1796
1800
  __name: "ImageField",
1797
1801
  props: {
1798
1802
  field: {},
@@ -1801,7 +1805,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1801
1805
  },
1802
1806
  emits: ["update:modelValue"],
1803
1807
  setup(e, { emit: t }) {
1804
- let r = e, i = t, { t: a } = U(), o = E(We, null), u = xt(), f = C(() => !!o);
1808
+ let r = e, i = t, { t: a } = U(), o = E(Pe, null), u = wt(), f = C(() => !!o);
1805
1809
  async function h() {
1806
1810
  let e = await o?.({ accept: ["images"] });
1807
1811
  u.alive && e && i("update:modelValue", e.url);
@@ -1822,12 +1826,12 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1822
1826
  }
1823
1827
  }
1824
1828
  }
1825
- let { isOver: O } = he({
1829
+ let { isOver: O } = ge({
1826
1830
  target: _,
1827
1831
  enabled: T,
1828
1832
  onFiles: D
1829
1833
  });
1830
- return (t, r) => (s(), v(qi, {
1834
+ return (t, r) => (s(), v(Xi, {
1831
1835
  label: e.field.label,
1832
1836
  required: e.field.required,
1833
1837
  "read-only": e.readOnly
@@ -1837,7 +1841,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1837
1841
  ref: _,
1838
1842
  class: "tpl:relative"
1839
1843
  }, [
1840
- T.value && (b(O) || x.value) ? (s(), m("div", Yi, [x.value ? (s(), m(S, { key: 0 }, [g(b(dt), {
1844
+ T.value && (b(O) || x.value) ? (s(), m("div", Qi, [x.value ? (s(), m(S, { key: 0 }, [g(b(mt), {
1841
1845
  class: "tpl-spinner",
1842
1846
  size: 18,
1843
1847
  "stroke-width": 2
@@ -1853,19 +1857,19 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1853
1857
  placeholder: e.field.placeholder || "https://...",
1854
1858
  disabled: "",
1855
1859
  title: b(a).customBlocks.dataSource.readOnlyTooltip
1856
- }, null, 10, Xi)) : (s(), m("input", {
1860
+ }, null, 10, $i)) : (s(), m("input", {
1857
1861
  key: 2,
1858
1862
  type: "url",
1859
1863
  class: n(b(G)),
1860
1864
  value: e.modelValue,
1861
1865
  placeholder: e.field.placeholder || "https://...",
1862
1866
  onInput: r[0] ||= (e) => i("update:modelValue", e.target.value)
1863
- }, null, 42, Zi)),
1867
+ }, null, 42, ea)),
1864
1868
  f.value && !e.readOnly ? (s(), m("button", {
1865
1869
  key: 3,
1866
1870
  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)]",
1867
1871
  onClick: r[1] ||= (e) => h()
1868
- }, [g(b(oe), {
1872
+ }, [g(b(se), {
1869
1873
  size: 14,
1870
1874
  "stroke-width": 1.5
1871
1875
  }), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
@@ -1877,7 +1881,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1877
1881
  "read-only"
1878
1882
  ]));
1879
1883
  }
1880
- }), $i = [
1884
+ }), na = [
1881
1885
  "value",
1882
1886
  "placeholder",
1883
1887
  "min",
@@ -1885,7 +1889,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1885
1889
  "step",
1886
1890
  "disabled",
1887
1891
  "title"
1888
- ], ea = /* @__PURE__ */ f({
1892
+ ], ra = /* @__PURE__ */ f({
1889
1893
  __name: "NumberField",
1890
1894
  props: {
1891
1895
  field: {},
@@ -1895,7 +1899,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1895
1899
  emits: ["update:modelValue"],
1896
1900
  setup(e, { emit: t }) {
1897
1901
  let r = t, { t: i } = U();
1898
- return (t, a) => (s(), v(qi, {
1902
+ return (t, a) => (s(), v(Xi, {
1899
1903
  label: e.field.label,
1900
1904
  required: e.field.required,
1901
1905
  "read-only": e.readOnly
@@ -1911,7 +1915,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1911
1915
  disabled: e.readOnly,
1912
1916
  title: e.readOnly ? b(i).customBlocks.dataSource.readOnlyTooltip : void 0,
1913
1917
  onInput: a[0] ||= (t) => !e.readOnly && r("update:modelValue", Number(t.target.value))
1914
- }, null, 42, $i)]),
1918
+ }, null, 42, na)]),
1915
1919
  _: 1
1916
1920
  }, 8, [
1917
1921
  "label",
@@ -1919,10 +1923,10 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1919
1923
  "read-only"
1920
1924
  ]));
1921
1925
  }
1922
- }), ta = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, na = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ra = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, ia = ["title", "onClick"], aa = {
1926
+ }), ia = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, aa = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, oa = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, sa = ["title", "onClick"], ca = {
1923
1927
  key: 1,
1924
1928
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1925
- }, oa = /* @__PURE__ */ f({
1929
+ }, la = /* @__PURE__ */ f({
1926
1930
  __name: "RepeatableField",
1927
1931
  props: {
1928
1932
  field: {},
@@ -1950,25 +1954,25 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1950
1954
  } : r);
1951
1955
  a("update:modelValue", r);
1952
1956
  }
1953
- return (r, i) => (s(), v(qi, {
1957
+ return (r, i) => (s(), v(Xi, {
1954
1958
  label: t.field.label,
1955
1959
  required: t.field.required,
1956
1960
  "read-only": t.readOnly
1957
1961
  }, {
1958
- default: l(() => [p("div", ta, [
1962
+ default: l(() => [p("div", ia, [
1959
1963
  (s(!0), m(S, null, e(d.value, (n, r) => (s(), m("div", {
1960
1964
  key: `${t.field.key}-${r}`,
1961
1965
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1962
- }, [p("div", na, [p("span", ra, " #" + c(r + 1), 1), h.value && !t.readOnly ? (s(), m("button", {
1966
+ }, [p("div", aa, [p("span", oa, " #" + c(r + 1), 1), h.value && !t.readOnly ? (s(), m("button", {
1963
1967
  key: 0,
1964
1968
  type: "button",
1965
1969
  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)]",
1966
1970
  title: b(u).customBlocks.fields.removeItem,
1967
1971
  onClick: (e) => x(r)
1968
- }, [g(b(gt), {
1972
+ }, [g(b(yt), {
1969
1973
  size: 12,
1970
1974
  "stroke-width": 2
1971
- })], 8, ia)) : w("", !0)]), (s(!0), m(S, null, e(t.field.fields, (e) => (s(), v(o(b(ha)(e.type)), {
1975
+ })], 8, sa)) : w("", !0)]), (s(!0), m(S, null, e(t.field.fields, (e) => (s(), v(o(b(va)(e.type)), {
1972
1976
  key: e.key,
1973
1977
  field: e,
1974
1978
  "model-value": n[e.key],
@@ -1983,13 +1987,13 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1983
1987
  f.value && !t.readOnly ? (s(), m("button", {
1984
1988
  key: 0,
1985
1989
  type: "button",
1986
- class: n(b(Dt)),
1990
+ class: n(b(At)),
1987
1991
  onClick: _
1988
1992
  }, [g(b(Q), {
1989
1993
  size: 14,
1990
1994
  "stroke-width": 2
1991
1995
  }), y(" " + c(b(u).customBlocks.fields.addItem), 1)], 2)) : w("", !0),
1992
- !f.value && !t.readOnly ? (s(), m("p", aa, c(b(u).customBlocks.fields.maxItemsReached), 1)) : w("", !0)
1996
+ !f.value && !t.readOnly ? (s(), m("p", ca, c(b(u).customBlocks.fields.maxItemsReached), 1)) : w("", !0)
1993
1997
  ])]),
1994
1998
  _: 1
1995
1999
  }, 8, [
@@ -1998,11 +2002,11 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
1998
2002
  "read-only"
1999
2003
  ]));
2000
2004
  }
2001
- }), sa = [
2005
+ }), ua = [
2002
2006
  "value",
2003
2007
  "disabled",
2004
2008
  "title"
2005
- ], ca = ["value"], la = /* @__PURE__ */ f({
2009
+ ], da = ["value"], fa = /* @__PURE__ */ f({
2006
2010
  __name: "SelectField",
2007
2011
  props: {
2008
2012
  field: {},
@@ -2012,7 +2016,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2012
2016
  emits: ["update:modelValue"],
2013
2017
  setup(t, { emit: r }) {
2014
2018
  let i = r, { t: a } = U();
2015
- return (r, o) => (s(), v(qi, {
2019
+ return (r, o) => (s(), v(Xi, {
2016
2020
  label: t.field.label,
2017
2021
  required: t.field.required,
2018
2022
  "read-only": t.readOnly
@@ -2026,7 +2030,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2026
2030
  }, [(s(!0), m(S, null, e(t.field.options, (e) => (s(), m("option", {
2027
2031
  key: e.value,
2028
2032
  value: e.value
2029
- }, c(e.label), 9, ca))), 128))], 42, sa)]),
2033
+ }, c(e.label), 9, da))), 128))], 42, ua)]),
2030
2034
  _: 1
2031
2035
  }, 8, [
2032
2036
  "label",
@@ -2034,11 +2038,11 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2034
2038
  "read-only"
2035
2039
  ]));
2036
2040
  }
2037
- }), ua = [
2041
+ }), pa = [
2038
2042
  "value",
2039
2043
  "placeholder",
2040
2044
  "title"
2041
- ], da = /* @__PURE__ */ f({
2045
+ ], ma = /* @__PURE__ */ f({
2042
2046
  __name: "TextField",
2043
2047
  props: {
2044
2048
  field: {},
@@ -2048,7 +2052,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2048
2052
  emits: ["update:modelValue"],
2049
2053
  setup(e, { emit: t }) {
2050
2054
  let r = t, { t: i } = U();
2051
- return (t, a) => (s(), v(qi, {
2055
+ return (t, a) => (s(), v(Xi, {
2052
2056
  label: e.field.label,
2053
2057
  required: e.field.required,
2054
2058
  "read-only": e.readOnly
@@ -2061,7 +2065,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2061
2065
  placeholder: e.field.placeholder,
2062
2066
  disabled: "",
2063
2067
  title: b(i).customBlocks.dataSource.readOnlyTooltip
2064
- }, null, 10, ua)) : (s(), v($, {
2068
+ }, null, 10, pa)) : (s(), v($, {
2065
2069
  key: 1,
2066
2070
  "model-value": e.modelValue,
2067
2071
  placeholder: e.field.placeholder,
@@ -2074,12 +2078,12 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2074
2078
  "read-only"
2075
2079
  ]));
2076
2080
  }
2077
- }), fa = [
2081
+ }), ha = [
2078
2082
  "value",
2079
2083
  "placeholder",
2080
2084
  "title"
2081
- ], pa = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", ma = {
2082
- text: da,
2085
+ ], ga = "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", _a = {
2086
+ text: ma,
2083
2087
  textarea: /* @__PURE__ */ f({
2084
2088
  __name: "TextareaField",
2085
2089
  props: {
@@ -2090,7 +2094,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2090
2094
  emits: ["update:modelValue"],
2091
2095
  setup(e, { emit: t }) {
2092
2096
  let r = t, { t: i } = U();
2093
- return (t, a) => (s(), v(qi, {
2097
+ return (t, a) => (s(), v(Xi, {
2094
2098
  label: e.field.label,
2095
2099
  required: e.field.required,
2096
2100
  "read-only": e.readOnly
@@ -2102,8 +2106,8 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2102
2106
  rows: "3",
2103
2107
  disabled: "",
2104
2108
  title: b(i).customBlocks.dataSource.readOnlyTooltip,
2105
- class: n(pa)
2106
- }, null, 8, fa)) : (s(), v(Gn, {
2109
+ class: n(ga)
2110
+ }, null, 8, ha)) : (s(), v(Jn, {
2107
2111
  key: 1,
2108
2112
  "model-value": e.modelValue,
2109
2113
  placeholder: e.field.placeholder,
@@ -2117,42 +2121,42 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
2117
2121
  ]));
2118
2122
  }
2119
2123
  }),
2120
- image: Qi,
2121
- color: Ji,
2122
- number: ea,
2123
- select: la,
2124
- boolean: Wi,
2125
- repeatable: oa
2124
+ image: ta,
2125
+ color: Zi,
2126
+ number: ra,
2127
+ select: fa,
2128
+ boolean: qi,
2129
+ repeatable: la
2126
2130
  };
2127
- function ha(e) {
2128
- return ma[e] ?? da;
2131
+ function va(e) {
2132
+ return _a[e] ?? ma;
2129
2133
  }
2130
2134
  //#endregion
2131
2135
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
2132
- var ga = {
2136
+ var ya = {
2133
2137
  key: 0,
2134
2138
  class: "tpl:p-4"
2135
- }, _a = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, va = { key: 1 }, ya = {
2139
+ }, ba = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xa = { key: 1 }, Sa = {
2136
2140
  key: 0,
2137
2141
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
2138
- }, ba = {
2142
+ }, Ca = {
2139
2143
  key: 1,
2140
2144
  class: "tpl:mb-4"
2141
- }, xa = {
2145
+ }, wa = {
2142
2146
  key: 1,
2143
2147
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
2144
- }, Sa = {
2148
+ }, Ta = {
2145
2149
  key: 0,
2146
2150
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2147
- }, Ca = {
2151
+ }, Ea = {
2148
2152
  key: 2,
2149
2153
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
2150
- }, wa = /* @__PURE__ */ f({
2154
+ }, Da = /* @__PURE__ */ f({
2151
2155
  __name: "CustomBlockToolbar",
2152
2156
  props: { block: {} },
2153
2157
  emits: ["updateFieldValues", "updateDataSourceFetched"],
2154
2158
  setup(t, { emit: n }) {
2155
- let r = t, i = n, { t: a } = U(), l = E(Be, []), u = C(() => l.find((e) => e.type === r.block.customType)), { isFetching: d, fetchError: f, fetch: h, hasDataSource: _, needsFetch: x } = Oe({
2159
+ let r = t, i = n, { t: a } = U(), l = E(Ge, []), u = C(() => l.find((e) => e.type === r.block.customType)), { isFetching: d, fetchError: f, fetch: h, hasDataSource: _, needsFetch: x } = H({
2156
2160
  definition: u,
2157
2161
  block: C(() => r.block),
2158
2162
  onUpdate: (e, t) => {
@@ -2168,23 +2172,23 @@ var ga = {
2168
2172
  [e]: t
2169
2173
  });
2170
2174
  }
2171
- return (n, r) => u.value ? (s(), m("div", va, [
2172
- u.value.description ? (s(), m("p", ya, c(u.value.description), 1)) : w("", !0),
2173
- b(_) ? (s(), m("div", ba, [b(x) && !b(d) ? (s(), m("button", {
2175
+ return (n, r) => u.value ? (s(), m("div", xa, [
2176
+ u.value.description ? (s(), m("p", Sa, c(u.value.description), 1)) : w("", !0),
2177
+ b(_) ? (s(), m("div", Ca, [b(x) && !b(d) ? (s(), m("button", {
2174
2178
  key: 0,
2175
2179
  type: "button",
2176
2180
  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)]",
2177
2181
  onClick: r[0] ||= (...e) => b(h) && b(h)(...e)
2178
- }, c(u.value?.dataSource?.label || b(a).customBlocks.dataSource.fetchButton), 1)) : (s(), m("div", xa, [b(d) ? (s(), m("div", Sa, c(b(a).customBlocks.dataSource.fetching), 1)) : (s(), m("button", {
2182
+ }, c(u.value?.dataSource?.label || b(a).customBlocks.dataSource.fetchButton), 1)) : (s(), m("div", wa, [b(d) ? (s(), m("div", Ta, c(b(a).customBlocks.dataSource.fetching), 1)) : (s(), m("button", {
2179
2183
  key: 1,
2180
2184
  type: "button",
2181
2185
  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)]",
2182
2186
  onClick: r[1] ||= (...e) => b(h) && b(h)(...e)
2183
- }, [g(b(st), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p", Ca, [g(b(tt), {
2187
+ }, [g(b(ut), { size: 12 }), y(" " + c(b(a).customBlocks.dataSource.changeButton), 1)]))])), b(f) ? (s(), m("p", Ea, [g(b(it), {
2184
2188
  size: 14,
2185
2189
  class: "tpl:shrink-0"
2186
2190
  }), y(" " + c(b(a).customBlocks.dataSource.fetchError), 1)])) : w("", !0)])) : w("", !0),
2187
- (s(!0), m(S, null, e(u.value.fields, (e) => (s(), v(o(b(ha)(e.type)), {
2191
+ (s(!0), m(S, null, e(u.value.fields, (e) => (s(), v(o(b(va)(e.type)), {
2188
2192
  key: e.key,
2189
2193
  field: e,
2190
2194
  "model-value": t.block.fieldValues[e.key],
@@ -2196,9 +2200,9 @@ var ga = {
2196
2200
  "read-only",
2197
2201
  "onUpdate:modelValue"
2198
2202
  ]))), 128))
2199
- ])) : (s(), m("div", ga, [p("p", _a, c(b(a).customBlocks.toolbar.noDefinition), 1)]));
2203
+ ])) : (s(), m("div", ya, [p("p", ba, c(b(a).customBlocks.toolbar.noDefinition), 1)]));
2200
2204
  }
2201
- }), Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:mb-3.5" }, Da = { class: "tpl:mb-3.5" }, Oa = { class: "tpl:flex tpl:items-stretch" }, ka = ["value"], Aa = /* @__PURE__ */ f({
2205
+ }), Oa = { class: "tpl:mb-3.5" }, ka = { class: "tpl:mb-3.5" }, Aa = { class: "tpl:mb-3.5" }, ja = { class: "tpl:flex tpl:items-stretch" }, Ma = ["value"], Na = /* @__PURE__ */ f({
2202
2206
  __name: "DividerToolbar",
2203
2207
  props: { block: {} },
2204
2208
  emits: ["update"],
@@ -2208,7 +2212,7 @@ var ga = {
2208
2212
  r("update", { [e]: t });
2209
2213
  }
2210
2214
  return (t, r) => (s(), m(S, null, [
2211
- p("div", Ta, [p("label", { class: n(b(K)) }, c(b(i).divider.style), 3), g(Mt, {
2215
+ p("div", Oa, [p("label", { class: n(b(K)) }, c(b(i).divider.style), 3), g(Ft, {
2212
2216
  options: [
2213
2217
  {
2214
2218
  value: "solid",
@@ -2226,57 +2230,57 @@ var ga = {
2226
2230
  "model-value": e.block.lineStyle,
2227
2231
  "onUpdate:modelValue": r[0] ||= (e) => a("lineStyle", e)
2228
2232
  }, null, 8, ["options", "model-value"])]),
2229
- p("div", Ea, [p("label", { class: n(b(K)) }, c(b(i).divider.color), 3), g(Y, {
2233
+ p("div", ka, [p("label", { class: n(b(K)) }, c(b(i).divider.color), 3), g(Y, {
2230
2234
  "model-value": e.block.color,
2231
2235
  "onUpdate:modelValue": r[1] ||= (e) => a("color", e)
2232
2236
  }, null, 8, ["model-value"])]),
2233
- p("div", Da, [p("label", { class: n(b(K)) }, c(b(i).divider.thickness), 3), p("div", Oa, [p("input", {
2237
+ p("div", Aa, [p("label", { class: n(b(K)) }, c(b(i).divider.thickness), 3), p("div", ja, [p("input", {
2234
2238
  type: "number",
2235
2239
  class: n(b(J)),
2236
2240
  value: e.block.thickness,
2237
2241
  min: "1",
2238
2242
  max: "10",
2239
2243
  onInput: r[2] ||= (e) => a("thickness", Number(e.target.value))
2240
- }, null, 42, ka), p("span", { class: n(b(q)) }, "px", 2)])])
2244
+ }, null, 42, Ma), p("span", { class: n(b(q)) }, "px", 2)])])
2241
2245
  ], 64));
2242
2246
  }
2243
- }), ja = { class: "tpl:mb-3.5" }, Ma = ["value"], Na = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Pa = /* @__PURE__ */ f({
2247
+ }), Pa = { class: "tpl:mb-3.5" }, Fa = ["value"], Ia = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, La = /* @__PURE__ */ f({
2244
2248
  __name: "HtmlToolbar",
2245
2249
  props: { block: {} },
2246
2250
  emits: ["update"],
2247
2251
  setup(e, { emit: t }) {
2248
2252
  let r = t, { t: i } = U();
2249
- return (t, a) => (s(), m("div", ja, [
2253
+ return (t, a) => (s(), m("div", Pa, [
2250
2254
  p("label", { class: n(b(K)) }, c(b(i).html.content), 3),
2251
2255
  p("textarea", {
2252
2256
  value: e.block.content,
2253
2257
  placeholder: "<div>...</div>",
2254
2258
  rows: "10",
2255
- class: n(b(Tt)),
2259
+ class: n(b(Ot)),
2256
2260
  onInput: a[0] ||= (e) => r("update", { content: e.target.value })
2257
- }, null, 42, Ma),
2258
- p("p", Na, [g(b(lt), {
2261
+ }, null, 42, Fa),
2262
+ p("p", Ia, [g(b(ft), {
2259
2263
  size: 12,
2260
2264
  class: "tpl:mt-0.5 tpl:shrink-0"
2261
2265
  }), y(" " + c(b(i).html.sanitizationHint), 1)])
2262
2266
  ]));
2263
2267
  }
2264
- }), Fa = { class: "tpl:mb-3.5" }, Ia = {
2268
+ }), Ra = { class: "tpl:mb-3.5" }, za = {
2265
2269
  key: 0,
2266
2270
  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)]",
2267
2271
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
2268
- }, La = {
2272
+ }, Ba = {
2269
2273
  key: 0,
2270
2274
  class: "tpl:mb-3.5"
2271
- }, Ra = ["value", "placeholder"], za = { class: "tpl:mb-3.5" }, Ba = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Va = { class: "tpl:mb-3.5" }, Ha = ["value"], Ua = { value: "full" }, Wa = { value: "custom" }, Ga = {
2275
+ }, Va = ["value", "placeholder"], Ha = { class: "tpl:mb-3.5" }, Ua = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Wa = { class: "tpl:mb-3.5" }, Ga = ["value"], Ka = { value: "full" }, qa = { value: "custom" }, Ja = {
2272
2276
  key: 0,
2273
2277
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2274
- }, Ka = ["value"], qa = { class: "tpl:mb-3.5" }, Ja = { class: "tpl:mb-3.5" }, Ya = 350, Xa = /* @__PURE__ */ f({
2278
+ }, Ya = ["value"], Xa = { class: "tpl:mb-3.5" }, Za = { class: "tpl:mb-3.5" }, Qa = 350, $a = /* @__PURE__ */ f({
2275
2279
  __name: "ImageToolbar",
2276
2280
  props: { block: {} },
2277
2281
  emits: ["update"],
2278
2282
  setup(e, { emit: t }) {
2279
- let r = e, i = t, { t: a } = U(), o = E(We, null), u = E(Ne, V.liquid), f = xt(), h = C(() => !!o), _ = d(!1), x = d(!1), { start: T } = Ae(() => {
2283
+ let r = e, i = t, { t: a } = U(), o = E(Pe, null), u = E(Be, z.liquid), f = wt(), h = C(() => !!o), _ = d(!1), x = d(!1), { start: T } = je(() => {
2280
2284
  _.value = !1;
2281
2285
  }, 1e3, { immediate: !1 }), D = [
2282
2286
  300,
@@ -2292,7 +2296,7 @@ var ga = {
2292
2296
  function A(e) {
2293
2297
  if (e === "custom") {
2294
2298
  let e = r.block.width;
2295
- (typeof e != "number" || D.includes(e)) && k("width", Ya);
2299
+ (typeof e != "number" || D.includes(e)) && k("width", Qa);
2296
2300
  return;
2297
2301
  }
2298
2302
  k("width", e === "full" ? "full" : Number(e));
@@ -2321,18 +2325,18 @@ var ga = {
2321
2325
  }
2322
2326
  }
2323
2327
  }
2324
- let { isOver: z } = he({
2328
+ let { isOver: V } = ge({
2325
2329
  target: N,
2326
2330
  enabled: L,
2327
2331
  onFiles: R
2328
2332
  });
2329
2333
  return (t, r) => (s(), m(S, null, [
2330
- p("div", Fa, [p("label", { class: n(b(K)) }, c(b(a).image.imageUrl), 3), p("div", {
2334
+ p("div", Ra, [p("label", { class: n(b(K)) }, c(b(a).image.imageUrl), 3), p("div", {
2331
2335
  ref_key: "dropZoneRef",
2332
2336
  ref: N,
2333
2337
  class: "tpl:relative"
2334
2338
  }, [
2335
- L.value && (b(z) || F.value) ? (s(), m("div", Ia, [F.value ? (s(), m(S, { key: 0 }, [g(b(dt), {
2339
+ L.value && (b(V) || F.value) ? (s(), m("div", za, [F.value ? (s(), m(S, { key: 0 }, [g(b(mt), {
2336
2340
  class: "tpl-spinner",
2337
2341
  size: 18,
2338
2342
  "stroke-width": 2
@@ -2360,19 +2364,19 @@ var ga = {
2360
2364
  "background-color": "var(--tpl-bg)"
2361
2365
  },
2362
2366
  onClick: M
2363
- }, [g(b(oe), {
2367
+ }, [g(b(se), {
2364
2368
  size: 14,
2365
2369
  "stroke-width": 1.5
2366
2370
  }), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
2367
2371
  ], 512)]),
2368
- b(B)(e.block.src, b(u)) ? (s(), m("div", La, [p("label", { class: n(b(K)) }, [y(c(b(a).image.placeholderUrl) + " ", 1), r[9] ||= p("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, c("(optional)"), -1)], 2), p("input", {
2372
+ b(B)(e.block.src, b(u)) ? (s(), m("div", Ba, [p("label", { class: n(b(K)) }, [y(c(b(a).image.placeholderUrl) + " ", 1), r[9] ||= p("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, c("(optional)"), -1)], 2), p("input", {
2369
2373
  type: "url",
2370
2374
  class: n(b(G)),
2371
2375
  value: e.block.placeholderUrl || "",
2372
2376
  placeholder: b(a).image.placeholderUrlPlaceholder,
2373
2377
  onInput: r[1] ||= (e) => k("placeholderUrl", e.target.value)
2374
- }, null, 42, Ra)])) : w("", !0),
2375
- p("div", za, [
2378
+ }, null, 42, Va)])) : w("", !0),
2379
+ p("div", Ha, [
2376
2380
  p("label", { class: n(b(K)) }, c(b(a).image.altText), 3),
2377
2381
  g($, {
2378
2382
  "model-value": e.block.alt,
@@ -2393,32 +2397,32 @@ var ga = {
2393
2397
  label: b(a).image.decorative,
2394
2398
  "onUpdate:modelValue": r[3] ||= (e) => k("decorative", e)
2395
2399
  }, {
2396
- default: l(() => [p("span", null, [y(c(b(a).image.decorative) + " ", 1), p("span", Ba, c(b(a).image.decorativeHint), 1)])]),
2400
+ default: l(() => [p("span", null, [y(c(b(a).image.decorative) + " ", 1), p("span", Ua, c(b(a).image.decorativeHint), 1)])]),
2397
2401
  _: 1
2398
2402
  }, 8, ["model-value", "label"])
2399
2403
  ]),
2400
- p("div", Va, [
2404
+ p("div", Wa, [
2401
2405
  p("label", { class: n(b(K)) }, c(b(a).image.width), 3),
2402
2406
  p("select", {
2403
2407
  class: n(b(G)),
2404
2408
  value: O.value,
2405
2409
  onChange: r[4] ||= (e) => A(e.target.value)
2406
2410
  }, [
2407
- p("option", Ua, c(b(a).image.fullWidth), 1),
2411
+ p("option", Ka, c(b(a).image.fullWidth), 1),
2408
2412
  r[10] ||= p("option", { value: "300" }, "300px", -1),
2409
2413
  r[11] ||= p("option", { value: "400" }, "400px", -1),
2410
2414
  r[12] ||= p("option", { value: "500" }, "500px", -1),
2411
- p("option", Wa, c(b(a).image.widthCustom), 1)
2412
- ], 42, Ha),
2413
- O.value === "custom" ? (s(), m("div", Ga, [p("input", {
2415
+ p("option", qa, c(b(a).image.widthCustom), 1)
2416
+ ], 42, Ga),
2417
+ O.value === "custom" ? (s(), m("div", Ja, [p("input", {
2414
2418
  type: "number",
2415
2419
  class: n(b(J)),
2416
- value: typeof e.block.width == "number" ? e.block.width : Ya,
2420
+ value: typeof e.block.width == "number" ? e.block.width : Qa,
2417
2421
  min: "20",
2418
2422
  onInput: r[5] ||= (e) => j(e.target.value)
2419
- }, null, 42, Ka), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
2423
+ }, null, 42, Ya), p("span", { class: n(b(q)) }, "px", 2)])) : w("", !0)
2420
2424
  ]),
2421
- p("div", qa, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Mt, {
2425
+ p("div", Xa, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Ft, {
2422
2426
  options: [
2423
2427
  {
2424
2428
  value: "left",
@@ -2436,7 +2440,7 @@ var ga = {
2436
2440
  "model-value": e.block.align,
2437
2441
  "onUpdate:modelValue": r[6] ||= (e) => k("align", e)
2438
2442
  }, null, 8, ["options", "model-value"])]),
2439
- p("div", Ja, [
2443
+ p("div", Za, [
2440
2444
  p("label", { class: n(b(K)) }, c(b(a).image.linkUrl), 3),
2441
2445
  g($, {
2442
2446
  "model-value": e.block.linkUrl || "",
@@ -2454,11 +2458,11 @@ var ga = {
2454
2458
  ])
2455
2459
  ], 64));
2456
2460
  }
2457
- }), Za = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Qa = { class: "tpl:flex tpl:items-center tpl:gap-2" }, $a = [
2461
+ }), eo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, to = { class: "tpl:flex tpl:items-center tpl:gap-2" }, no = [
2458
2462
  "value",
2459
2463
  "placeholder",
2460
2464
  "onInput"
2461
- ], eo = ["title", "onClick"], to = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, no = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ro = ["value"], io = { value: "" }, ao = ["value"], oo = ["value"], so = /* @__PURE__ */ f({
2465
+ ], ro = ["title", "onClick"], io = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ao = { class: "tpl:flex tpl:items-center tpl:gap-2" }, oo = ["value"], so = { value: "" }, co = ["value"], lo = ["value"], uo = /* @__PURE__ */ f({
2462
2466
  __name: "MenuToolbar",
2463
2467
  props: {
2464
2468
  block: {},
@@ -2483,17 +2487,17 @@ var ga = {
2483
2487
  {
2484
2488
  value: "left",
2485
2489
  label: o.title.alignLeft,
2486
- icon: ht
2490
+ icon: vt
2487
2491
  },
2488
2492
  {
2489
2493
  value: "center",
2490
2494
  label: o.title.alignCenter,
2491
- icon: mt
2495
+ icon: _t
2492
2496
  },
2493
2497
  {
2494
2498
  value: "right",
2495
2499
  label: o.title.alignRight,
2496
- icon: pt
2500
+ icon: gt
2497
2501
  }
2498
2502
  ]);
2499
2503
  function f(e, t) {
@@ -2501,7 +2505,7 @@ var ga = {
2501
2505
  }
2502
2506
  function h() {
2503
2507
  let e = {
2504
- id: F(),
2508
+ id: R(),
2505
2509
  text: "",
2506
2510
  url: "",
2507
2511
  openInNewTab: !1,
@@ -2522,24 +2526,24 @@ var ga = {
2522
2526
  }
2523
2527
  return (r, i) => (s(), m(S, null, [
2524
2528
  g(Z, { label: b(o).menu.items }, {
2525
- default: l(() => [p("div", Za, [(s(!0), m(S, null, e(t.block.items, (r) => (s(), m("div", {
2529
+ default: l(() => [p("div", eo, [(s(!0), m(S, null, e(t.block.items, (r) => (s(), m("div", {
2526
2530
  key: r.id,
2527
2531
  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"
2528
2532
  }, [
2529
- p("div", Qa, [p("input", {
2533
+ p("div", to, [p("input", {
2530
2534
  type: "text",
2531
2535
  class: n([b(G), "tpl:flex-1"]),
2532
2536
  value: r.text,
2533
2537
  placeholder: b(o).menu.text,
2534
2538
  onInput: (e) => _(r.id, "text", e.target.value)
2535
- }, null, 42, $a), p("button", {
2536
- class: n(b(wt)),
2539
+ }, null, 42, no), p("button", {
2540
+ class: n(b(Dt)),
2537
2541
  title: b(o).menu.removeItem,
2538
2542
  onClick: (e) => x(r.id)
2539
- }, [g(b(_t), {
2543
+ }, [g(b(bt), {
2540
2544
  size: 14,
2541
2545
  "stroke-width": 2
2542
- })], 10, eo)]),
2546
+ })], 10, ro)]),
2543
2547
  g($, {
2544
2548
  "model-value": r.url,
2545
2549
  type: "url",
@@ -2550,7 +2554,7 @@ var ga = {
2550
2554
  "placeholder",
2551
2555
  "onUpdate:modelValue"
2552
2556
  ]),
2553
- p("div", to, [(s(!0), m(S, null, e(u.value, (e) => (s(), v(X, {
2557
+ p("div", io, [(s(!0), m(S, null, e(u.value, (e) => (s(), v(X, {
2554
2558
  key: e.key,
2555
2559
  "model-value": r[e.key],
2556
2560
  label: e.label,
@@ -2560,13 +2564,13 @@ var ga = {
2560
2564
  "label",
2561
2565
  "onUpdate:modelValue"
2562
2566
  ]))), 128))]),
2563
- p("div", no, [p("label", { class: n([b(K), "tpl:!mb-0"]) }, c(b(o).menu.color), 3), g(Y, {
2567
+ p("div", ao, [p("label", { class: n([b(K), "tpl:!mb-0"]) }, c(b(o).menu.color), 3), g(Y, {
2564
2568
  "swatch-only": "",
2565
2569
  "model-value": r.color || t.block.linkColor || t.block.color || "",
2566
2570
  "onUpdate:modelValue": (e) => _(r.id, "color", e)
2567
2571
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
2568
2572
  ]))), 128)), p("button", {
2569
- class: n(b(Dt)),
2573
+ class: n(b(At)),
2570
2574
  onClick: h
2571
2575
  }, [g(b(Q), {
2572
2576
  size: 14,
@@ -2579,14 +2583,14 @@ var ga = {
2579
2583
  class: n(b(G)),
2580
2584
  value: t.block.fontFamily || "",
2581
2585
  onChange: i[0] ||= (e) => f("fontFamily", e.target.value || void 0)
2582
- }, [p("option", io, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
2586
+ }, [p("option", so, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
2583
2587
  key: e.value,
2584
2588
  value: e.value
2585
- }, c(e.label), 9, ao))), 128))], 42, ro)]),
2589
+ }, c(e.label), 9, co))), 128))], 42, oo)]),
2586
2590
  _: 1
2587
2591
  }, 8, ["label"]),
2588
2592
  g(Z, { label: b(o).menu.fontSize }, {
2589
- default: l(() => [g(Nt, {
2593
+ default: l(() => [g(It, {
2590
2594
  "model-value": t.block.fontSize,
2591
2595
  min: 8,
2592
2596
  max: 48,
@@ -2610,7 +2614,7 @@ var ga = {
2610
2614
  _: 1
2611
2615
  }, 8, ["label"]),
2612
2616
  g(Z, { label: b(o).menu.textAlign }, {
2613
- default: l(() => [g(Mt, {
2617
+ default: l(() => [g(Ft, {
2614
2618
  options: d.value,
2615
2619
  "model-value": t.block.textAlign,
2616
2620
  "onUpdate:modelValue": i[4] ||= (e) => f("textAlign", e)
@@ -2623,7 +2627,7 @@ var ga = {
2623
2627
  class: n(b(G)),
2624
2628
  value: t.block.separator,
2625
2629
  onInput: i[5] ||= (e) => f("separator", e.target.value)
2626
- }, null, 42, oo)]),
2630
+ }, null, 42, lo)]),
2627
2631
  _: 1
2628
2632
  }, 8, ["label"]),
2629
2633
  g(Z, { label: b(o).menu.separatorColor }, {
@@ -2634,7 +2638,7 @@ var ga = {
2634
2638
  _: 1
2635
2639
  }, 8, ["label"]),
2636
2640
  g(Z, { label: b(o).menu.spacing }, {
2637
- default: l(() => [g(Nt, {
2641
+ default: l(() => [g(It, {
2638
2642
  "model-value": t.block.spacing,
2639
2643
  min: 0,
2640
2644
  max: 50,
@@ -2648,11 +2652,11 @@ var ga = {
2648
2652
  });
2649
2653
  //#endregion
2650
2654
  //#region src/utils/rebalanceColumnChildren.ts
2651
- function co(e) {
2655
+ function fo(e) {
2652
2656
  return e === "1" ? 1 : e === "3" ? 3 : 2;
2653
2657
  }
2654
- function lo(e, t) {
2655
- let n = co(t);
2658
+ function po(e, t) {
2659
+ let n = fo(t);
2656
2660
  if (e.length === n) return e;
2657
2661
  if (e.length < n) {
2658
2662
  let t = Array.from({ length: n - e.length }, () => []);
@@ -2663,13 +2667,13 @@ function lo(e, t) {
2663
2667
  }
2664
2668
  //#endregion
2665
2669
  //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
2666
- var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2670
+ var mo = { class: "tpl:mb-3.5" }, ho = ["value"], go = ["value"], _o = {
2667
2671
  key: 0,
2668
2672
  class: "tpl:mb-3.5"
2669
- }, ho = { class: "tpl:mb-3.5" }, go = { class: "tpl:flex tpl:items-stretch" }, _o = ["value"], vo = { class: "tpl:mb-3.5" }, yo = {
2673
+ }, vo = { class: "tpl:mb-3.5" }, yo = { class: "tpl:flex tpl:items-stretch" }, bo = ["value"], xo = { class: "tpl:mb-3.5" }, So = {
2670
2674
  key: 0,
2671
2675
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
2672
- }, bo = { class: "tpl:flex tpl:items-stretch" }, xo = ["value"], So = /* @__PURE__ */ f({
2676
+ }, Co = { class: "tpl:flex tpl:items-stretch" }, wo = ["value"], To = /* @__PURE__ */ f({
2673
2677
  __name: "SectionToolbar",
2674
2678
  props: { block: {} },
2675
2679
  emits: ["update"],
@@ -2697,7 +2701,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2697
2701
  }
2698
2702
  ]);
2699
2703
  function u(e) {
2700
- let t = e.target.value, n = lo(i.block.children, t);
2704
+ let t = e.target.value, n = po(i.block.children, t);
2701
2705
  a("update", {
2702
2706
  columns: t,
2703
2707
  children: n
@@ -2731,39 +2735,39 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2731
2735
  _({ borderRadius: Number(e.target.value) });
2732
2736
  }
2733
2737
  return (r, i) => (s(), m(S, null, [
2734
- p("div", uo, [p("label", { class: n(b(K)) }, c(b(o).section.columns), 3), p("select", {
2738
+ p("div", mo, [p("label", { class: n(b(K)) }, c(b(o).section.columns), 3), p("select", {
2735
2739
  class: n(b(G)),
2736
2740
  value: t.block.columns,
2737
2741
  onChange: u
2738
2742
  }, [(s(!0), m(S, null, e(l.value, (e) => (s(), m("option", {
2739
2743
  key: e.value,
2740
2744
  value: e.value
2741
- }, c(e.label), 9, po))), 128))], 42, fo)]),
2742
- t.block.columns === "1" ? w("", !0) : (s(), m("div", mo, [g(X, {
2745
+ }, c(e.label), 9, go))), 128))], 42, ho)]),
2746
+ t.block.columns === "1" ? w("", !0) : (s(), m("div", _o, [g(X, {
2743
2747
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2744
2748
  "model-value": t.block.stackOnMobile !== !1,
2745
2749
  label: b(o).section.stackOnMobile,
2746
2750
  "onUpdate:modelValue": i[0] ||= (e) => d(e)
2747
2751
  }, null, 8, ["model-value", "label"])])),
2748
- p("div", ho, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", go, [p("input", {
2752
+ p("div", vo, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", yo, [p("input", {
2749
2753
  type: "number",
2750
2754
  class: n(b(J)),
2751
2755
  value: t.block.borderRadius ?? 0,
2752
2756
  min: "0",
2753
2757
  max: "50",
2754
2758
  onInput: f
2755
- }, null, 42, _o), p("span", { class: n(b(q)) }, "px", 2)])]),
2756
- p("div", vo, [g(X, {
2759
+ }, null, 42, bo), p("span", { class: n(b(q)) }, "px", 2)])]),
2760
+ p("div", xo, [g(X, {
2757
2761
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2758
2762
  "model-value": !!t.block.wrapper,
2759
2763
  label: b(o).section.wrapperEnable,
2760
2764
  "onUpdate:modelValue": i[1] ||= (e) => h(e)
2761
- }, null, 8, ["model-value", "label"]), t.block.wrapper ? (s(), m("div", yo, [
2765
+ }, null, 8, ["model-value", "label"]), t.block.wrapper ? (s(), m("div", So, [
2762
2766
  p("div", null, [p("label", { class: n(b(K)) }, c(b(o).blockSettings.color), 3), g(Y, {
2763
2767
  "model-value": t.block.wrapper.backgroundColor ?? "",
2764
2768
  "onUpdate:modelValue": i[2] ||= (e) => _({ backgroundColor: e })
2765
2769
  }, null, 8, ["model-value"])]),
2766
- g(xi, {
2770
+ g(wi, {
2767
2771
  label: b(o).blockSettings.padding,
2768
2772
  "model-value": t.block.wrapper.padding ?? {
2769
2773
  top: 0,
@@ -2773,18 +2777,18 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2773
2777
  },
2774
2778
  "onUpdate:modelValue": v
2775
2779
  }, null, 8, ["label", "model-value"]),
2776
- p("div", null, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", bo, [p("input", {
2780
+ p("div", null, [p("label", { class: n(b(K)) }, c(b(o).section.borderRadius), 3), p("div", Co, [p("input", {
2777
2781
  type: "number",
2778
2782
  class: n(b(J)),
2779
2783
  value: t.block.wrapper.borderRadius ?? 0,
2780
2784
  min: "0",
2781
2785
  max: "50",
2782
2786
  onInput: y
2783
- }, null, 42, xo), p("span", { class: n(b(q)) }, "px", 2)])])
2787
+ }, null, 42, wo), p("span", { class: n(b(q)) }, "px", 2)])])
2784
2788
  ])) : w("", !0)])
2785
2789
  ], 64));
2786
2790
  }
2787
- }), Co = { class: "tpl:mb-3.5" }, wo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, To = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Eo = ["value", "onChange"], Do = ["value"], Oo = ["title", "onClick"], ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = { value: "solid" }, Mo = { value: "outlined" }, No = { value: "rounded" }, Po = { value: "square" }, Fo = { value: "circle" }, Io = { class: "tpl:mb-3.5" }, Lo = { class: "tpl:mb-3.5" }, Ro = { class: "tpl:flex tpl:items-stretch" }, zo = ["value"], Bo = { class: "tpl:mb-3.5" }, Vo = /* @__PURE__ */ f({
2791
+ }), Eo = { class: "tpl:mb-3.5" }, Do = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Oo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ko = ["value", "onChange"], Ao = ["value"], jo = ["title", "onClick"], Mo = { class: "tpl:mb-3.5" }, No = ["value"], Po = { value: "solid" }, Fo = { value: "outlined" }, Io = { value: "rounded" }, Lo = { value: "square" }, Ro = { value: "circle" }, zo = { class: "tpl:mb-3.5" }, Bo = { class: "tpl:mb-3.5" }, Vo = { class: "tpl:flex tpl:items-stretch" }, Ho = ["value"], Uo = { class: "tpl:mb-3.5" }, Wo = /* @__PURE__ */ f({
2788
2792
  __name: "SocialToolbar",
2789
2793
  props: { block: {} },
2790
2794
  emits: ["update"],
@@ -2795,7 +2799,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2795
2799
  }
2796
2800
  function u() {
2797
2801
  let e = {
2798
- id: F(),
2802
+ id: R(),
2799
2803
  platform: "facebook",
2800
2804
  url: ""
2801
2805
  };
@@ -2812,25 +2816,25 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2812
2816
  a("update", { icons: i.block.icons.filter((t) => t.id !== e) });
2813
2817
  }
2814
2818
  return (r, i) => (s(), m(S, null, [
2815
- p("div", Co, [p("label", { class: n(b(K)) }, c(b(o).social.icons), 3), p("div", wo, [(s(!0), m(S, null, e(t.block.icons, (t) => (s(), m("div", {
2819
+ p("div", Eo, [p("label", { class: n(b(K)) }, c(b(o).social.icons), 3), p("div", Do, [(s(!0), m(S, null, e(t.block.icons, (t) => (s(), m("div", {
2816
2820
  key: t.id,
2817
2821
  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"
2818
- }, [p("div", To, [p("select", {
2822
+ }, [p("div", Oo, [p("select", {
2819
2823
  "data-testid": "social-platform-select",
2820
2824
  class: n([b(G), "tpl:flex-1"]),
2821
2825
  value: t.platform,
2822
2826
  onChange: (e) => d(t.id, "platform", e.target.value)
2823
- }, [(s(!0), m(S, null, e(b(xe), (e) => (s(), m("option", {
2827
+ }, [(s(!0), m(S, null, e(b(Se), (e) => (s(), m("option", {
2824
2828
  key: e,
2825
2829
  value: e
2826
- }, c(b(o).social.platforms[e]), 9, Do))), 128))], 42, Eo), p("button", {
2827
- class: n(b(wt)),
2830
+ }, c(b(o).social.platforms[e]), 9, Ao))), 128))], 42, ko), p("button", {
2831
+ class: n(b(Dt)),
2828
2832
  title: b(o).social.removeIcon,
2829
2833
  onClick: (e) => f(t.id)
2830
- }, [g(b(_t), {
2834
+ }, [g(b(bt), {
2831
2835
  size: 14,
2832
2836
  "stroke-width": 2
2833
- })], 10, Oo)]), g($, {
2837
+ })], 10, jo)]), g($, {
2834
2838
  "model-value": t.url,
2835
2839
  type: "url",
2836
2840
  placeholder: b(o).social.urlPlaceholder,
@@ -2840,24 +2844,24 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2840
2844
  "placeholder",
2841
2845
  "onUpdate:modelValue"
2842
2846
  ])]))), 128)), p("button", {
2843
- class: n(b(Dt)),
2847
+ class: n(b(At)),
2844
2848
  onClick: u
2845
2849
  }, [g(b(Q), {
2846
2850
  size: 14,
2847
2851
  "stroke-width": 2
2848
2852
  }), y(" " + c(b(o).social.addIcon), 1)], 2)])]),
2849
- p("div", ko, [p("label", { class: n(b(K)) }, c(b(o).social.style), 3), p("select", {
2853
+ p("div", Mo, [p("label", { class: n(b(K)) }, c(b(o).social.style), 3), p("select", {
2850
2854
  class: n(b(G)),
2851
2855
  value: t.block.iconStyle,
2852
2856
  onChange: i[0] ||= (e) => l("iconStyle", e.target.value)
2853
2857
  }, [
2854
- p("option", jo, c(b(o).social.styleSolid), 1),
2855
- p("option", Mo, c(b(o).social.styleOutlined), 1),
2856
- p("option", No, c(b(o).social.styleRounded), 1),
2857
- p("option", Po, c(b(o).social.styleSquare), 1),
2858
- p("option", Fo, c(b(o).social.styleCircle), 1)
2859
- ], 42, Ao)]),
2860
- p("div", Io, [p("label", { class: n(b(K)) }, c(b(o).social.size), 3), g(Mt, {
2858
+ p("option", Po, c(b(o).social.styleSolid), 1),
2859
+ p("option", Fo, c(b(o).social.styleOutlined), 1),
2860
+ p("option", Io, c(b(o).social.styleRounded), 1),
2861
+ p("option", Lo, c(b(o).social.styleSquare), 1),
2862
+ p("option", Ro, c(b(o).social.styleCircle), 1)
2863
+ ], 42, No)]),
2864
+ p("div", zo, [p("label", { class: n(b(K)) }, c(b(o).social.size), 3), g(Ft, {
2861
2865
  options: [
2862
2866
  {
2863
2867
  value: "small",
@@ -2875,30 +2879,30 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2875
2879
  "model-value": t.block.iconSize,
2876
2880
  "onUpdate:modelValue": i[1] ||= (e) => l("iconSize", e)
2877
2881
  }, null, 8, ["options", "model-value"])]),
2878
- p("div", Lo, [p("label", { class: n(b(K)) }, c(b(o).social.spacing), 3), p("div", Ro, [p("input", {
2882
+ p("div", Bo, [p("label", { class: n(b(K)) }, c(b(o).social.spacing), 3), p("div", Vo, [p("input", {
2879
2883
  type: "number",
2880
2884
  class: n(b(J)),
2881
2885
  value: t.block.spacing,
2882
2886
  min: "0",
2883
2887
  max: "50",
2884
2888
  onInput: i[2] ||= (e) => l("spacing", Number(e.target.value))
2885
- }, null, 42, zo), p("span", { class: n(b(q)) }, "px", 2)])]),
2886
- p("div", Bo, [p("label", { class: n(b(K)) }, c(b(o).social.align), 3), g(Mt, {
2889
+ }, null, 42, Ho), p("span", { class: n(b(q)) }, "px", 2)])]),
2890
+ p("div", Uo, [p("label", { class: n(b(K)) }, c(b(o).social.align), 3), g(Ft, {
2887
2891
  options: [
2888
2892
  {
2889
2893
  value: "left",
2890
2894
  label: b(o).title.alignLeft,
2891
- icon: b(ht)
2895
+ icon: b(vt)
2892
2896
  },
2893
2897
  {
2894
2898
  value: "center",
2895
2899
  label: b(o).title.alignCenter,
2896
- icon: b(mt)
2900
+ icon: b(_t)
2897
2901
  },
2898
2902
  {
2899
2903
  value: "right",
2900
2904
  label: b(o).title.alignRight,
2901
- icon: b(pt)
2905
+ icon: b(gt)
2902
2906
  }
2903
2907
  ],
2904
2908
  "model-value": t.block.align,
@@ -2906,22 +2910,22 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2906
2910
  }, null, 8, ["options", "model-value"])])
2907
2911
  ], 64));
2908
2912
  }
2909
- }), Ho = { class: "tpl:mb-3.5" }, Uo = { class: "tpl:flex tpl:items-stretch" }, Wo = ["value"], Go = ["value"], Ko = /* @__PURE__ */ f({
2913
+ }), Go = { class: "tpl:mb-3.5" }, Ko = { class: "tpl:flex tpl:items-stretch" }, qo = ["value"], Jo = ["value"], Yo = /* @__PURE__ */ f({
2910
2914
  __name: "SpacerToolbar",
2911
2915
  props: { block: {} },
2912
2916
  emits: ["update"],
2913
2917
  setup(e, { emit: t }) {
2914
2918
  let r = t, { t: i } = U();
2915
- return (t, a) => (s(), m("div", Ho, [
2919
+ return (t, a) => (s(), m("div", Go, [
2916
2920
  p("label", { class: n(b(K)) }, c(b(i).spacer.height), 3),
2917
- p("div", Uo, [p("input", {
2921
+ p("div", Ko, [p("input", {
2918
2922
  type: "number",
2919
2923
  class: n(b(J)),
2920
2924
  value: e.block.height,
2921
2925
  min: "10",
2922
2926
  max: "100",
2923
2927
  onInput: a[0] ||= (e) => r("update", { height: Number(e.target.value) })
2924
- }, null, 42, Wo), p("span", { class: n(b(q)) }, "px", 2)]),
2928
+ }, null, 42, qo), p("span", { class: n(b(q)) }, "px", 2)]),
2925
2929
  p("input", {
2926
2930
  type: "range",
2927
2931
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -2929,13 +2933,13 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2929
2933
  min: "10",
2930
2934
  max: "100",
2931
2935
  onInput: a[1] ||= (e) => r("update", { height: Number(e.target.value) })
2932
- }, null, 40, Go)
2936
+ }, null, 40, Jo)
2933
2937
  ]));
2934
2938
  }
2935
- }), qo = { class: "tpl:mb-3.5" }, Jo = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Yo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Xo = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Zo = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Qo = ["disabled"], $o = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, es = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ts = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ns = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, rs = ["disabled"], is = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, as = { class: "tpl:mb-3.5" }, os = {
2939
+ }), Xo = { class: "tpl:mb-3.5" }, Zo = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Qo = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, $o = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, es = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ts = ["disabled"], ns = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, rs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, is = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, as = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, os = ["disabled"], ss = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, cs = { class: "tpl:mb-3.5" }, ls = {
2936
2940
  key: 0,
2937
2941
  class: "tpl:mb-3.5"
2938
- }, ss = { class: "tpl:mb-3.5" }, cs = { class: "tpl:mb-3.5" }, ls = { class: "tpl:flex tpl:items-stretch" }, us = ["value"], ds = { class: "tpl:mb-3.5" }, fs = { class: "tpl:flex tpl:items-stretch" }, ps = ["value"], ms = { class: "tpl:mb-3.5" }, hs = ["value"], gs = { value: "" }, _s = ["value"], vs = { class: "tpl:mb-3.5" }, ys = { class: "tpl:flex tpl:items-stretch" }, bs = ["value"], xs = { class: "tpl:mb-3.5" }, Ss = { class: "tpl:mb-3.5" }, Cs = /* @__PURE__ */ f({
2942
+ }, us = { class: "tpl:mb-3.5" }, ds = { class: "tpl:mb-3.5" }, fs = { class: "tpl:flex tpl:items-stretch" }, ps = ["value"], ms = { class: "tpl:mb-3.5" }, hs = { class: "tpl:flex tpl:items-stretch" }, gs = ["value"], _s = { class: "tpl:mb-3.5" }, vs = ["value"], ys = { value: "" }, bs = ["value"], xs = { class: "tpl:mb-3.5" }, Ss = { class: "tpl:flex tpl:items-stretch" }, Cs = ["value"], ws = { class: "tpl:mb-3.5" }, Ts = { class: "tpl:mb-3.5" }, Es = /* @__PURE__ */ f({
2939
2943
  __name: "TableToolbar",
2940
2944
  props: {
2941
2945
  block: {},
@@ -2949,9 +2953,9 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2949
2953
  }
2950
2954
  function d() {
2951
2955
  let e = i.block.rows.length > 0 ? i.block.rows[0].cells.length : 3, t = {
2952
- id: F(),
2956
+ id: R(),
2953
2957
  cells: Array.from({ length: e }, () => ({
2954
- id: F(),
2958
+ id: R(),
2955
2959
  content: ""
2956
2960
  }))
2957
2961
  };
@@ -2964,7 +2968,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2964
2968
  let e = i.block.rows.map((e) => ({
2965
2969
  ...e,
2966
2970
  cells: [...e.cells, {
2967
- id: F(),
2971
+ id: R(),
2968
2972
  content: ""
2969
2973
  }]
2970
2974
  }));
@@ -2978,16 +2982,16 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2978
2982
  a("update", { rows: t });
2979
2983
  }
2980
2984
  return (r, i) => (s(), m(S, null, [
2981
- p("div", qo, [p("label", { class: n(b(K)) }, c(b(o).table.dimensions), 3), p("div", Jo, [p("div", Yo, [p("span", Xo, c(b(o).table.rows), 1), p("div", Zo, [
2985
+ p("div", Xo, [p("label", { class: n(b(K)) }, c(b(o).table.dimensions), 3), p("div", Zo, [p("div", Qo, [p("span", $o, c(b(o).table.rows), 1), p("div", es, [
2982
2986
  p("button", {
2983
2987
  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",
2984
2988
  disabled: t.block.rows.length <= 1,
2985
2989
  onClick: i[0] ||= (e) => f(t.block.rows[t.block.rows.length - 1].id)
2986
- }, [g(b(nt), {
2990
+ }, [g(b(at), {
2987
2991
  size: 12,
2988
2992
  "stroke-width": 2
2989
- })], 8, Qo),
2990
- p("span", $o, c(t.block.rows.length), 1),
2993
+ })], 8, ts),
2994
+ p("span", ns, c(t.block.rows.length), 1),
2991
2995
  p("button", {
2992
2996
  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)]",
2993
2997
  onClick: d
@@ -2995,16 +2999,16 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
2995
2999
  size: 12,
2996
3000
  "stroke-width": 2
2997
3001
  })])
2998
- ])]), p("div", es, [p("span", ts, c(b(o).table.columns), 1), p("div", ns, [
3002
+ ])]), p("div", rs, [p("span", is, c(b(o).table.columns), 1), p("div", as, [
2999
3003
  p("button", {
3000
3004
  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",
3001
3005
  disabled: l.value <= 1,
3002
3006
  onClick: i[1] ||= (e) => _(l.value - 1)
3003
- }, [g(b(nt), {
3007
+ }, [g(b(at), {
3004
3008
  size: 12,
3005
3009
  "stroke-width": 2
3006
- })], 8, rs),
3007
- p("span", is, c(l.value), 1),
3010
+ })], 8, os),
3011
+ p("span", ss, c(l.value), 1),
3008
3012
  p("button", {
3009
3013
  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)]",
3010
3014
  onClick: h
@@ -3013,15 +3017,15 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3013
3017
  "stroke-width": 2
3014
3018
  })])
3015
3019
  ])])])]),
3016
- p("div", as, [g(X, {
3020
+ p("div", cs, [g(X, {
3017
3021
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
3018
3022
  "model-value": t.block.hasHeaderRow,
3019
3023
  label: b(o).table.hasHeaderRow,
3020
3024
  "onUpdate:modelValue": i[2] ||= (e) => u("hasHeaderRow", e)
3021
3025
  }, null, 8, ["model-value", "label"])]),
3022
- t.block.hasHeaderRow ? (s(), m("div", os, [p("label", { class: n(b(K)) }, c(b(o).table.headerBackgroundColor), 3), g(Y, {
3026
+ t.block.hasHeaderRow ? (s(), m("div", ls, [p("label", { class: n(b(K)) }, c(b(o).table.headerBackgroundColor), 3), g(Y, {
3023
3027
  "model-value": t.block.headerBackgroundColor ?? "",
3024
- "seed-color": b(Et),
3028
+ "seed-color": b(kt),
3025
3029
  placeholder: b(o).table.noHeaderBg,
3026
3030
  "onUpdate:modelValue": i[3] ||= (e) => u("headerBackgroundColor", e || null)
3027
3031
  }, null, 8, [
@@ -3029,62 +3033,62 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3029
3033
  "seed-color",
3030
3034
  "placeholder"
3031
3035
  ])])) : w("", !0),
3032
- p("div", ss, [p("label", { class: n(b(K)) }, c(b(o).table.borderColor), 3), g(Y, {
3036
+ p("div", us, [p("label", { class: n(b(K)) }, c(b(o).table.borderColor), 3), g(Y, {
3033
3037
  "model-value": t.block.borderColor,
3034
3038
  "onUpdate:modelValue": i[4] ||= (e) => u("borderColor", e)
3035
3039
  }, null, 8, ["model-value"])]),
3036
- p("div", cs, [p("label", { class: n(b(K)) }, c(b(o).table.borderWidth), 3), p("div", ls, [p("input", {
3040
+ p("div", ds, [p("label", { class: n(b(K)) }, c(b(o).table.borderWidth), 3), p("div", fs, [p("input", {
3037
3041
  type: "number",
3038
3042
  class: n(b(J)),
3039
3043
  value: t.block.borderWidth,
3040
3044
  min: "0",
3041
3045
  max: "10",
3042
3046
  onInput: i[5] ||= (e) => u("borderWidth", Number(e.target.value))
3043
- }, null, 42, us), p("span", { class: n(b(q)) }, "px", 2)])]),
3044
- p("div", ds, [p("label", { class: n(b(K)) }, c(b(o).table.cellPadding), 3), p("div", fs, [p("input", {
3047
+ }, null, 42, ps), p("span", { class: n(b(q)) }, "px", 2)])]),
3048
+ p("div", ms, [p("label", { class: n(b(K)) }, c(b(o).table.cellPadding), 3), p("div", hs, [p("input", {
3045
3049
  type: "number",
3046
3050
  class: n(b(J)),
3047
3051
  value: t.block.cellPadding,
3048
3052
  min: "0",
3049
3053
  max: "30",
3050
3054
  onInput: i[6] ||= (e) => u("cellPadding", Number(e.target.value))
3051
- }, null, 42, ps), p("span", { class: n(b(q)) }, "px", 2)])]),
3052
- p("div", ms, [p("label", { class: n(b(K)) }, c(b(o).table.fontFamily), 3), p("select", {
3055
+ }, null, 42, gs), p("span", { class: n(b(q)) }, "px", 2)])]),
3056
+ p("div", _s, [p("label", { class: n(b(K)) }, c(b(o).table.fontFamily), 3), p("select", {
3053
3057
  class: n(b(G)),
3054
3058
  value: t.block.fontFamily || "",
3055
3059
  onChange: i[7] ||= (e) => u("fontFamily", e.target.value || void 0)
3056
- }, [p("option", gs, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
3060
+ }, [p("option", ys, c(b(o).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
3057
3061
  key: e.value,
3058
3062
  value: e.value
3059
- }, c(e.label), 9, _s))), 128))], 42, hs)]),
3060
- p("div", vs, [p("label", { class: n(b(K)) }, c(b(o).table.fontSize), 3), p("div", ys, [p("input", {
3063
+ }, c(e.label), 9, bs))), 128))], 42, vs)]),
3064
+ p("div", xs, [p("label", { class: n(b(K)) }, c(b(o).table.fontSize), 3), p("div", Ss, [p("input", {
3061
3065
  type: "number",
3062
3066
  class: n(b(J)),
3063
3067
  value: t.block.fontSize,
3064
3068
  min: "10",
3065
3069
  max: "32",
3066
3070
  onInput: i[8] ||= (e) => u("fontSize", Number(e.target.value))
3067
- }, null, 42, bs), p("span", { class: n(b(q)) }, "px", 2)])]),
3068
- p("div", xs, [p("label", { class: n(b(K)) }, c(b(o).table.color), 3), g(Y, {
3071
+ }, null, 42, Cs), p("span", { class: n(b(q)) }, "px", 2)])]),
3072
+ p("div", ws, [p("label", { class: n(b(K)) }, c(b(o).table.color), 3), g(Y, {
3069
3073
  "model-value": t.block.color ?? "",
3070
3074
  "onUpdate:modelValue": i[9] ||= (e) => u("color", e || void 0)
3071
3075
  }, null, 8, ["model-value"])]),
3072
- p("div", Ss, [p("label", { class: n(b(K)) }, c(b(o).table.textAlign), 3), g(Mt, {
3076
+ p("div", Ts, [p("label", { class: n(b(K)) }, c(b(o).table.textAlign), 3), g(Ft, {
3073
3077
  options: [
3074
3078
  {
3075
3079
  value: "left",
3076
3080
  label: b(o).title.alignLeft,
3077
- icon: b(ht)
3081
+ icon: b(vt)
3078
3082
  },
3079
3083
  {
3080
3084
  value: "center",
3081
3085
  label: b(o).title.alignCenter,
3082
- icon: b(mt)
3086
+ icon: b(_t)
3083
3087
  },
3084
3088
  {
3085
3089
  value: "right",
3086
3090
  label: b(o).title.alignRight,
3087
- icon: b(pt)
3091
+ icon: b(gt)
3088
3092
  }
3089
3093
  ],
3090
3094
  "model-value": t.block.textAlign,
@@ -3092,7 +3096,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3092
3096
  }, null, 8, ["options", "model-value"])])
3093
3097
  ], 64));
3094
3098
  }
3095
- }), ws = { class: "tpl:mb-3.5" }, Ts = ["value"], Es = { value: 1 }, Ds = { value: 2 }, Os = { value: 3 }, ks = { value: 4 }, As = { class: "tpl:mb-3.5" }, js = ["value"], Ms = { value: "" }, Ns = ["value"], Ps = { class: "tpl:mb-3.5" }, Fs = { class: "tpl:mb-3.5" }, Is = /* @__PURE__ */ f({
3099
+ }), Ds = { class: "tpl:mb-3.5" }, Os = ["value"], ks = { value: 1 }, As = { value: 2 }, js = { value: 3 }, Ms = { value: 4 }, Ns = { class: "tpl:mb-3.5" }, Ps = ["value"], Fs = { value: "" }, Is = ["value"], Ls = { class: "tpl:mb-3.5" }, Rs = { class: "tpl:mb-3.5" }, zs = /* @__PURE__ */ f({
3096
3100
  __name: "TitleToolbar",
3097
3101
  props: {
3098
3102
  block: {},
@@ -3105,44 +3109,44 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3105
3109
  i("update", { [e]: t });
3106
3110
  }
3107
3111
  return (r, i) => (s(), m(S, null, [
3108
- p("div", ws, [p("label", { class: n(b(K)) }, c(b(a).title.level), 3), p("select", {
3112
+ p("div", Ds, [p("label", { class: n(b(K)) }, c(b(a).title.level), 3), p("select", {
3109
3113
  class: n(b(G)),
3110
3114
  value: t.block.level,
3111
3115
  onChange: i[0] ||= (e) => o("level", Number(e.target.value))
3112
3116
  }, [
3113
- p("option", Es, c(b(a).title.heading1), 1),
3114
- p("option", Ds, c(b(a).title.heading2), 1),
3115
- p("option", Os, c(b(a).title.heading3), 1),
3116
- p("option", ks, c(b(a).title.heading4), 1)
3117
- ], 42, Ts)]),
3118
- p("div", As, [p("label", { class: n(b(K)) }, c(b(a).title.fontFamily), 3), p("select", {
3117
+ p("option", ks, c(b(a).title.heading1), 1),
3118
+ p("option", As, c(b(a).title.heading2), 1),
3119
+ p("option", js, c(b(a).title.heading3), 1),
3120
+ p("option", Ms, c(b(a).title.heading4), 1)
3121
+ ], 42, Os)]),
3122
+ p("div", Ns, [p("label", { class: n(b(K)) }, c(b(a).title.fontFamily), 3), p("select", {
3119
3123
  class: n(b(G)),
3120
3124
  value: t.block.fontFamily || "",
3121
3125
  onChange: i[1] ||= (e) => o("fontFamily", e.target.value || void 0)
3122
- }, [p("option", Ms, c(b(a).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
3126
+ }, [p("option", Fs, c(b(a).title.inheritFont), 1), (s(!0), m(S, null, e(t.fontFamilies, (e) => (s(), m("option", {
3123
3127
  key: e.value,
3124
3128
  value: e.value
3125
- }, c(e.label), 9, Ns))), 128))], 42, js)]),
3126
- p("div", Ps, [p("label", { class: n(b(K)) }, c(b(a).title.color), 3), g(Y, {
3129
+ }, c(e.label), 9, Is))), 128))], 42, Ps)]),
3130
+ p("div", Ls, [p("label", { class: n(b(K)) }, c(b(a).title.color), 3), g(Y, {
3127
3131
  "model-value": t.block.color ?? "",
3128
3132
  "onUpdate:modelValue": i[2] ||= (e) => o("color", e || void 0)
3129
3133
  }, null, 8, ["model-value"])]),
3130
- p("div", Fs, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Mt, {
3134
+ p("div", Rs, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Ft, {
3131
3135
  options: [
3132
3136
  {
3133
3137
  value: "left",
3134
3138
  label: b(a).title.alignLeft,
3135
- icon: b(ht)
3139
+ icon: b(vt)
3136
3140
  },
3137
3141
  {
3138
3142
  value: "center",
3139
3143
  label: b(a).title.alignCenter,
3140
- icon: b(mt)
3144
+ icon: b(_t)
3141
3145
  },
3142
3146
  {
3143
3147
  value: "right",
3144
3148
  label: b(a).title.alignRight,
3145
- icon: b(pt)
3149
+ icon: b(gt)
3146
3150
  }
3147
3151
  ],
3148
3152
  "model-value": t.block.textAlign,
@@ -3150,19 +3154,19 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3150
3154
  }, null, 8, ["options", "model-value"])])
3151
3155
  ], 64));
3152
3156
  }
3153
- }), Ls = { class: "tpl:mb-3.5" }, Rs = {
3157
+ }), Bs = { class: "tpl:mb-3.5" }, Vs = {
3154
3158
  key: 0,
3155
3159
  class: "tpl:mb-3.5"
3156
- }, zs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Bs = [
3160
+ }, Hs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Us = [
3157
3161
  "value",
3158
3162
  "placeholder",
3159
3163
  "title"
3160
- ], Vs = { class: "tpl:mb-3.5" }, Hs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Us = { class: "tpl:mb-3.5" }, Ws = { class: "tpl:mb-3.5" }, Gs = ["value"], Ks = { value: "full" }, qs = { class: "tpl:mb-3.5" }, Js = /* @__PURE__ */ f({
3164
+ ], Ws = { class: "tpl:mb-3.5" }, Gs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ks = { class: "tpl:mb-3.5" }, qs = { class: "tpl:mb-3.5" }, Js = ["value"], Ys = { value: "full" }, Xs = { class: "tpl:mb-3.5" }, Zs = /* @__PURE__ */ f({
3161
3165
  __name: "VideoToolbar",
3162
3166
  props: { block: {} },
3163
3167
  emits: ["update"],
3164
3168
  setup(e, { emit: t }) {
3165
- let r = e, i = t, { t: a } = U(), o = E(We, null), l = E(Ne, V.liquid), u = xt(), f = C(() => !!o), h = C(() => B(r.block.url, l)), _ = d(!1), { start: x } = Ae(() => {
3169
+ let r = e, i = t, { t: a } = U(), o = E(Pe, null), l = E(Be, z.liquid), u = wt(), f = C(() => !!o), h = C(() => B(r.block.url, l)), _ = d(!1), { start: x } = je(() => {
3166
3170
  _.value = !1;
3167
3171
  }, 1e3, { immediate: !1 });
3168
3172
  function T(e, t) {
@@ -3173,7 +3177,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3173
3177
  u.alive && e && (T("thumbnailUrl", e.url), _.value = !0, x());
3174
3178
  }
3175
3179
  return (t, r) => (s(), m(S, null, [
3176
- p("div", Ls, [
3180
+ p("div", Bs, [
3177
3181
  p("label", { class: n(b(K)) }, c(b(a).video.videoUrl), 3),
3178
3182
  g($, {
3179
3183
  "model-value": e.block.url,
@@ -3189,16 +3193,16 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3189
3193
  "onUpdate:modelValue": r[1] ||= (e) => T("openInNewTab", e)
3190
3194
  }, null, 8, ["model-value", "label"])) : w("", !0)
3191
3195
  ]),
3192
- h.value ? (s(), m("div", Rs, [p("label", { class: n(b(K)) }, [y(c(b(a).video.placeholderUrl) + " ", 1), p("span", zs, c(b(a).video.optional), 1)], 2), p("input", {
3196
+ h.value ? (s(), m("div", Vs, [p("label", { class: n(b(K)) }, [y(c(b(a).video.placeholderUrl) + " ", 1), p("span", Hs, c(b(a).video.optional), 1)], 2), p("input", {
3193
3197
  type: "url",
3194
3198
  class: n(b(G)),
3195
3199
  value: e.block.placeholderUrl || "",
3196
3200
  placeholder: b(a).video.placeholderUrlPlaceholder,
3197
3201
  title: b(a).video.placeholderUrlTooltip,
3198
3202
  onInput: r[2] ||= (e) => T("placeholderUrl", e.target.value)
3199
- }, null, 42, Bs)])) : w("", !0),
3200
- p("div", Vs, [
3201
- p("label", { class: n(b(K)) }, [y(c(b(a).video.customThumbnail) + " ", 1), p("span", Hs, c(b(a).video.optional), 1)], 2),
3203
+ }, null, 42, Us)])) : w("", !0),
3204
+ p("div", Ws, [
3205
+ p("label", { class: n(b(K)) }, [y(c(b(a).video.customThumbnail) + " ", 1), p("span", Gs, c(b(a).video.optional), 1)], 2),
3202
3206
  g($, {
3203
3207
  "model-value": e.block.thumbnailUrl,
3204
3208
  type: "url",
@@ -3219,28 +3223,28 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3219
3223
  "background-color": "var(--tpl-bg)"
3220
3224
  },
3221
3225
  onClick: D
3222
- }, [g(b(oe), {
3226
+ }, [g(b(se), {
3223
3227
  size: 14,
3224
3228
  "stroke-width": 1.5
3225
3229
  }), y(" " + c(b(a).image.browseMedia), 1)])) : w("", !0)
3226
3230
  ]),
3227
- p("div", Us, [p("label", { class: n(b(K)) }, c(b(a).video.altText), 3), g($, {
3231
+ p("div", Ks, [p("label", { class: n(b(K)) }, c(b(a).video.altText), 3), g($, {
3228
3232
  "model-value": e.block.alt,
3229
3233
  type: "text",
3230
3234
  placeholder: b(a).video.altTextPlaceholder,
3231
3235
  "onUpdate:modelValue": r[4] ||= (e) => T("alt", e)
3232
3236
  }, null, 8, ["model-value", "placeholder"])]),
3233
- p("div", Ws, [p("label", { class: n(b(K)) }, c(b(a).video.width), 3), p("select", {
3237
+ p("div", qs, [p("label", { class: n(b(K)) }, c(b(a).video.width), 3), p("select", {
3234
3238
  class: n(b(G)),
3235
3239
  value: e.block.width,
3236
3240
  onChange: r[5] ||= (e) => T("width", e.target.value === "full" ? "full" : Number(e.target.value))
3237
3241
  }, [
3238
- p("option", Ks, c(b(a).video.fullWidth), 1),
3242
+ p("option", Ys, c(b(a).video.fullWidth), 1),
3239
3243
  r[7] ||= p("option", { value: "300" }, "300px", -1),
3240
3244
  r[8] ||= p("option", { value: "400" }, "400px", -1),
3241
3245
  r[9] ||= p("option", { value: "500" }, "500px", -1)
3242
- ], 42, Gs)]),
3243
- p("div", qs, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Mt, {
3246
+ ], 42, Js)]),
3247
+ p("div", Xs, [p("label", { class: n(b(K)) }, c(b(a).title.align), 3), g(Ft, {
3244
3248
  options: [
3245
3249
  {
3246
3250
  value: "left",
@@ -3260,7 +3264,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3260
3264
  }, null, 8, ["options", "model-value"])])
3261
3265
  ], 64));
3262
3266
  }
3263
- }), Ys = ["aria-label"], Xs = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Zs = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Qs = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, $s = { class: "tpl:flex tpl:gap-1" }, ec = ["title"], tc = ["title"], nc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, rc = /*#__PURE__*/ vt(/* @__PURE__ */ f({
3267
+ }), Qs = ["aria-label"], $s = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, ec = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, tc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, nc = { class: "tpl:flex tpl:gap-1" }, rc = ["title"], ic = ["title"], ac = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, oc = /*#__PURE__*/ xt(/* @__PURE__ */ f({
3264
3268
  __name: "Toolbar",
3265
3269
  props: { block: {} },
3266
3270
  emits: [
@@ -3269,87 +3273,87 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3269
3273
  "duplicate"
3270
3274
  ],
3271
3275
  setup(e, { emit: t }) {
3272
- let n = h(() => import("./CountdownToolbar-CBbGAxmF.js")), r = e, i = t, { t: a } = U(), l = Ze(He, "Toolbar"), u = E(Be, []), d = C(() => r.block.type), f = C(() => R(r.block)), _ = C(() => {
3276
+ let n = h(() => import("./CountdownToolbar-D7yQqnA2.js")), r = e, i = t, { t: a } = U(), l = Fe(He, "Toolbar"), u = E(Ge, []), d = C(() => r.block.type), f = C(() => F(r.block)), _ = C(() => {
3273
3277
  if (f.value) return u.find((e) => e.type === r.block.customType);
3274
- }), y = C(() => f.value ? _.value?.name ?? r.block.customType : ue(d.value, a)), x = l.fonts;
3278
+ }), y = C(() => f.value ? _.value?.name ?? r.block.customType : ke(d.value, a)), x = l.fonts;
3275
3279
  function T(e) {
3276
3280
  i("update", e);
3277
3281
  }
3278
3282
  return (t, r) => (s(), m("aside", {
3279
3283
  "aria-label": b(a).landmarks.blockToolbar,
3280
3284
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
3281
- }, [p("div", Xs, [p("div", Zs, [b(at)[d.value] ? (s(), v(o(b(at)[d.value]), {
3285
+ }, [p("div", $s, [p("div", ec, [b(ct)[d.value] ? (s(), v(o(b(ct)[d.value]), {
3282
3286
  key: 0,
3283
3287
  size: 16,
3284
3288
  "stroke-width": 1.5
3285
- })) : f.value ? (s(), v(b(re), {
3289
+ })) : f.value ? (s(), v(b(ie), {
3286
3290
  key: 1,
3287
3291
  size: 16,
3288
3292
  "stroke-width": 1.5
3289
- })) : w("", !0), p("h3", Qs, c(y.value), 1)]), p("div", $s, [p("button", {
3293
+ })) : w("", !0), p("h3", tc, c(y.value), 1)]), p("div", nc, [p("button", {
3290
3294
  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)]",
3291
3295
  title: b(a).toolbar.duplicate,
3292
3296
  onClick: r[0] ||= (e) => i("duplicate")
3293
- }, [g(b(le), {
3297
+ }, [g(b(ue), {
3294
3298
  size: 14,
3295
3299
  "stroke-width": 2
3296
- })], 8, ec), p("button", {
3300
+ })], 8, rc), p("button", {
3297
3301
  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)]",
3298
3302
  title: b(a).toolbar.delete,
3299
3303
  onClick: r[1] ||= (e) => i("delete")
3300
- }, [g(b(gt), {
3304
+ }, [g(b(yt), {
3301
3305
  size: 14,
3302
3306
  "stroke-width": 2
3303
- })], 8, tc)])]), p("div", nc, [f.value ? (s(), v(wa, {
3307
+ })], 8, ic)])]), p("div", ac, [f.value ? (s(), v(Da, {
3304
3308
  key: 0,
3305
3309
  block: e.block,
3306
3310
  onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
3307
3311
  onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
3308
- }, null, 8, ["block"])) : d.value === "section" ? (s(), v(So, {
3312
+ }, null, 8, ["block"])) : d.value === "section" ? (s(), v(To, {
3309
3313
  key: 1,
3310
3314
  block: e.block,
3311
3315
  onUpdate: T
3312
- }, null, 8, ["block"])) : d.value === "title" ? (s(), v(Is, {
3316
+ }, null, 8, ["block"])) : d.value === "title" ? (s(), v(zs, {
3313
3317
  key: 2,
3314
3318
  block: e.block,
3315
3319
  "font-families": b(x),
3316
3320
  onUpdate: T
3317
- }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), m(S, { key: 3 }, [], 64)) : d.value === "image" ? (s(), v(Xa, {
3321
+ }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (s(), m(S, { key: 3 }, [], 64)) : d.value === "image" ? (s(), v($a, {
3318
3322
  key: 4,
3319
3323
  block: e.block,
3320
3324
  onUpdate: T
3321
- }, null, 8, ["block"])) : d.value === "video" ? (s(), v(Js, {
3325
+ }, null, 8, ["block"])) : d.value === "video" ? (s(), v(Zs, {
3322
3326
  key: 5,
3323
3327
  block: e.block,
3324
3328
  onUpdate: T
3325
- }, null, 8, ["block"])) : d.value === "button" ? (s(), v(Zr, {
3329
+ }, null, 8, ["block"])) : d.value === "button" ? (s(), v(ei, {
3326
3330
  key: 6,
3327
3331
  block: e.block,
3328
3332
  "font-families": b(x),
3329
3333
  onUpdate: T
3330
- }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), v(Aa, {
3334
+ }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (s(), v(Na, {
3331
3335
  key: 7,
3332
3336
  block: e.block,
3333
3337
  onUpdate: T
3334
- }, null, 8, ["block"])) : d.value === "social" ? (s(), v(Vo, {
3338
+ }, null, 8, ["block"])) : d.value === "social" ? (s(), v(Wo, {
3335
3339
  key: 8,
3336
3340
  block: e.block,
3337
3341
  onUpdate: T
3338
- }, null, 8, ["block"])) : d.value === "menu" ? (s(), v(so, {
3342
+ }, null, 8, ["block"])) : d.value === "menu" ? (s(), v(uo, {
3339
3343
  key: 9,
3340
3344
  block: e.block,
3341
3345
  "font-families": b(x),
3342
3346
  onUpdate: T
3343
- }, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), v(Cs, {
3347
+ }, null, 8, ["block", "font-families"])) : d.value === "table" ? (s(), v(Es, {
3344
3348
  key: 10,
3345
3349
  block: e.block,
3346
3350
  "font-families": b(x),
3347
3351
  onUpdate: T
3348
- }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), v(Ko, {
3352
+ }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (s(), v(Yo, {
3349
3353
  key: 11,
3350
3354
  block: e.block,
3351
3355
  onUpdate: T
3352
- }, null, 8, ["block"])) : d.value === "html" ? (s(), v(Pa, {
3356
+ }, null, 8, ["block"])) : d.value === "html" ? (s(), v(La, {
3353
3357
  key: 12,
3354
3358
  block: e.block,
3355
3359
  onUpdate: T
@@ -3358,52 +3362,52 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3358
3362
  block: e.block,
3359
3363
  "font-families": b(x),
3360
3364
  onUpdate: T
3361
- }, null, 8, ["block", "font-families"])) : w("", !0), g(Hi, {
3365
+ }, null, 8, ["block", "font-families"])) : w("", !0), g(Gi, {
3362
3366
  block: e.block,
3363
3367
  "is-first-section": d.value === "paragraph",
3364
3368
  onUpdate: T
3365
- }, null, 8, ["block", "is-first-section"])])], 8, Ys));
3369
+ }, null, 8, ["block", "is-first-section"])])], 8, Qs));
3366
3370
  }
3367
- }), [["__scopeId", "data-v-2ac88283"]]), ic = ["aria-label"], ac = {
3371
+ }), [["__scopeId", "data-v-2ac88283"]]), sc = ["aria-label"], cc = {
3368
3372
  role: "tablist",
3369
3373
  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"
3370
- }, oc = [
3374
+ }, lc = [
3371
3375
  "aria-selected",
3372
3376
  "aria-label",
3373
3377
  "title"
3374
- ], sc = { key: 0 }, cc = [
3378
+ ], uc = { key: 0 }, dc = [
3375
3379
  "aria-selected",
3376
3380
  "aria-label",
3377
3381
  "title"
3378
- ], lc = { key: 0 }, uc = [
3382
+ ], fc = { key: 0 }, pc = [
3379
3383
  "aria-selected",
3380
3384
  "aria-label",
3381
3385
  "title"
3382
- ], dc = { key: 0 }, fc = {
3386
+ ], mc = { key: 0 }, hc = {
3383
3387
  key: 1,
3384
3388
  class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
3385
- }, pc = {
3389
+ }, gc = {
3386
3390
  key: 0,
3387
3391
  id: "tpl-tabpanel-content",
3388
3392
  role: "tabpanel",
3389
3393
  "aria-labelledby": "tpl-tab-content",
3390
3394
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3391
- }, mc = {
3395
+ }, _c = {
3392
3396
  key: 1,
3393
3397
  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)]"
3394
- }, hc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, gc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _c = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, vc = {
3398
+ }, vc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, yc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, bc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, xc = {
3395
3399
  key: 1,
3396
3400
  id: "tpl-tabpanel-settings",
3397
3401
  role: "tabpanel",
3398
3402
  "aria-labelledby": "tpl-tab-settings",
3399
3403
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3400
- }, yc = {
3404
+ }, Sc = {
3401
3405
  key: 2,
3402
3406
  id: "tpl-tabpanel-issues",
3403
3407
  role: "tabpanel",
3404
3408
  "aria-labelledby": "tpl-tab-issues",
3405
3409
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3406
- }, bc = /* @__PURE__ */ f({
3410
+ }, Cc = /* @__PURE__ */ f({
3407
3411
  __name: "RightSidebar",
3408
3412
  props: {
3409
3413
  selectedBlock: {},
@@ -3417,7 +3421,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3417
3421
  "update-settings"
3418
3422
  ],
3419
3423
  setup(e, { emit: r }) {
3420
- let a = h(() => import("./IssuesPanel-CBzfmzRM.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Fe, null), y = C(() => _ !== null), x = C(() => _?.issues.value.length ?? 0);
3424
+ let a = h(() => import("./IssuesPanel-X_vkNGrs.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Le, null), y = C(() => _ !== null), x = C(() => _?.issues.value.length ?? 0);
3421
3425
  function S(e) {
3422
3426
  return f.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
3423
3427
  }
@@ -3433,7 +3437,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3433
3437
  "aria-label": b(u).landmarks.rightSidebar,
3434
3438
  class: n(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:transition-all tpl:duration-200 tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
3435
3439
  }, [
3436
- p("div", ac, [
3440
+ p("div", cc, [
3437
3441
  p("button", {
3438
3442
  id: "tpl-tab-content",
3439
3443
  role: "tab",
@@ -3444,10 +3448,10 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3444
3448
  class: n(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", S("content")]),
3445
3449
  style: t(T("content")),
3446
3450
  onClick: i[0] ||= (e) => f.value = "content"
3447
- }, [g(b(Ht), {
3451
+ }, [g(b(Gt), {
3448
3452
  size: 14,
3449
3453
  "stroke-width": 2
3450
- }), f.value === "content" ? (s(), m("span", sc, c(b(u).sidebar.content), 1)) : w("", !0)], 14, oc),
3454
+ }), f.value === "content" ? (s(), m("span", uc, c(b(u).sidebar.content), 1)) : w("", !0)], 14, lc),
3451
3455
  p("button", {
3452
3456
  id: "tpl-tab-settings",
3453
3457
  role: "tab",
@@ -3458,10 +3462,10 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3458
3462
  class: n(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", S("settings")]),
3459
3463
  style: t(T("settings")),
3460
3464
  onClick: i[1] ||= (e) => f.value = "settings"
3461
- }, [g(b(Wt), {
3465
+ }, [g(b(qt), {
3462
3466
  size: 14,
3463
3467
  "stroke-width": 1.5
3464
- }), f.value === "settings" ? (s(), m("span", lc, c(b(u).sidebar.settings), 1)) : w("", !0)], 14, cc),
3468
+ }), f.value === "settings" ? (s(), m("span", fc, c(b(u).sidebar.settings), 1)) : w("", !0)], 14, dc),
3465
3469
  y.value ? (s(), m("button", {
3466
3470
  key: 0,
3467
3471
  id: "tpl-tab-issues",
@@ -3474,59 +3478,59 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3474
3478
  style: t(T("issues")),
3475
3479
  onClick: i[2] ||= (e) => f.value = "issues"
3476
3480
  }, [
3477
- g(b(ut), {
3481
+ g(b(pt), {
3478
3482
  size: 14,
3479
3483
  "stroke-width": 1.5
3480
3484
  }),
3481
- f.value === "issues" ? (s(), m("span", dc, c(b(u).issues.panelTabLabel), 1)) : w("", !0),
3482
- x.value > 0 ? (s(), m("span", fc, c(x.value), 1)) : w("", !0)
3483
- ], 14, uc)) : w("", !0)
3485
+ f.value === "issues" ? (s(), m("span", mc, c(b(u).issues.panelTabLabel), 1)) : w("", !0),
3486
+ x.value > 0 ? (s(), m("span", hc, c(x.value), 1)) : w("", !0)
3487
+ ], 14, pc)) : w("", !0)
3484
3488
  ]),
3485
- f.value === "content" ? (s(), m("div", pc, [e.selectedBlock ? (s(), v(rc, {
3489
+ f.value === "content" ? (s(), m("div", gc, [e.selectedBlock ? (s(), v(oc, {
3486
3490
  key: 0,
3487
3491
  block: e.selectedBlock,
3488
3492
  onUpdate: i[3] ||= (e) => l("update-block", e),
3489
3493
  onDelete: i[4] ||= (e) => l("delete-block"),
3490
3494
  onDuplicate: i[5] ||= (e) => l("duplicate-block")
3491
- }, null, 8, ["block"])) : (s(), m("div", mc, [
3492
- p("div", hc, [g(b(Lt), {
3495
+ }, null, 8, ["block"])) : (s(), m("div", _c, [
3496
+ p("div", vc, [g(b(Bt), {
3493
3497
  size: 40,
3494
3498
  "stroke-width": 1.5
3495
3499
  })]),
3496
- p("h3", gc, c(b(u).sidebar.noSelection), 1),
3497
- p("p", _c, c(b(u).sidebar.noSelectionHint), 1)
3500
+ p("h3", yc, c(b(u).sidebar.noSelection), 1),
3501
+ p("p", bc, c(b(u).sidebar.noSelectionHint), 1)
3498
3502
  ]))])) : w("", !0),
3499
- f.value === "settings" ? (s(), m("div", vc, [g(xr, {
3503
+ f.value === "settings" ? (s(), m("div", xc, [g(wr, {
3500
3504
  settings: e.settings,
3501
3505
  onUpdate: i[6] ||= (e) => l("update-settings", e)
3502
3506
  }, null, 8, ["settings"])])) : w("", !0),
3503
- f.value === "issues" && y.value ? (s(), m("div", yc, [g(b(a))])) : w("", !0)
3504
- ], 10, ic));
3507
+ f.value === "issues" && y.value ? (s(), m("div", Sc, [g(b(a))])) : w("", !0)
3508
+ ], 10, sc));
3505
3509
  }
3506
- }), xc = {
3510
+ }), wc = {
3507
3511
  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)]",
3508
3512
  style: { "z-index": "10001" },
3509
3513
  role: "status",
3510
3514
  "data-testid": "small-screen-notice"
3511
- }, Sc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Cc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Tc = /* @__PURE__ */ f({
3515
+ }, Tc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Ec = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Dc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Oc = /* @__PURE__ */ f({
3512
3516
  __name: "SmallScreenNotice",
3513
3517
  setup(e) {
3514
3518
  let { t } = U();
3515
- return (e, n) => (s(), m("div", xc, [
3516
- p("div", Sc, [g(b(Bt), {
3519
+ return (e, n) => (s(), m("div", wc, [
3520
+ p("div", Tc, [g(b(Ut), {
3517
3521
  size: 48,
3518
3522
  "stroke-width": 1.5
3519
3523
  })]),
3520
- p("h2", Cc, c(b(t).smallScreen.title), 1),
3521
- p("p", wc, c(b(t).smallScreen.message), 1)
3524
+ p("h2", Ec, c(b(t).smallScreen.title), 1),
3525
+ p("p", Dc, c(b(t).smallScreen.message), 1)
3522
3526
  ]));
3523
3527
  }
3524
- }), Ec = ["aria-label"], Dc = [
3528
+ }), kc = ["aria-label"], Ac = [
3525
3529
  "aria-checked",
3526
3530
  "aria-label",
3527
3531
  "title",
3528
3532
  "onClick"
3529
- ], Oc = /* @__PURE__ */ f({
3533
+ ], jc = /* @__PURE__ */ f({
3530
3534
  __name: "ViewportToggle",
3531
3535
  props: { viewport: {} },
3532
3536
  emits: ["change"],
@@ -3568,21 +3572,21 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3568
3572
  }),
3569
3573
  title: e.label,
3570
3574
  onClick: (t) => a("change", e.value)
3571
- }, [e.value === "desktop" ? (s(), v(b(Bt), {
3575
+ }, [e.value === "desktop" ? (s(), v(b(Ut), {
3572
3576
  key: 0,
3573
3577
  size: 18,
3574
3578
  "stroke-width": 1.5
3575
- })) : (s(), v(b(Gt), {
3579
+ })) : (s(), v(b(Jt), {
3576
3580
  key: 1,
3577
3581
  size: 18,
3578
3582
  "stroke-width": 1.5
3579
- })), p("span", null, c(e.label), 1)], 12, Dc))), 128))], 12, Ec));
3583
+ })), p("span", null, c(e.label), 1)], 12, Ac))), 128))], 12, kc));
3580
3584
  }
3581
- }), kc = [
3585
+ }), Mc = [
3582
3586
  "aria-label",
3583
3587
  "title",
3584
3588
  "aria-pressed"
3585
- ], Ac = /*#__PURE__*/ vt(/* @__PURE__ */ f({
3589
+ ], Nc = /*#__PURE__*/ xt(/* @__PURE__ */ f({
3586
3590
  __name: "PreviewToggle",
3587
3591
  props: { previewMode: { type: Boolean } },
3588
3592
  emits: ["change"],
@@ -3605,23 +3609,23 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3605
3609
  "leave-to-class": "tpl-icon-leave-to",
3606
3610
  mode: "out-in"
3607
3611
  }, {
3608
- default: l(() => [e.previewMode ? (s(), v(b(ot), {
3612
+ default: l(() => [e.previewMode ? (s(), v(b(lt), {
3609
3613
  key: "eye",
3610
3614
  size: 18,
3611
3615
  "stroke-width": 1.5
3612
- })) : (s(), v(b(se), {
3616
+ })) : (s(), v(b(ce), {
3613
3617
  key: "eye-off",
3614
3618
  size: 18,
3615
3619
  "stroke-width": 1.5
3616
3620
  }))]),
3617
3621
  _: 1
3618
- })], 12, kc));
3622
+ })], 12, Mc));
3619
3623
  }
3620
- }), [["__scopeId", "data-v-af87d02a"]]), jc = [
3624
+ }), [["__scopeId", "data-v-af87d02a"]]), Pc = [
3621
3625
  "aria-label",
3622
3626
  "title",
3623
3627
  "aria-pressed"
3624
- ], Mc = /*#__PURE__*/ vt(/* @__PURE__ */ f({
3628
+ ], Fc = /*#__PURE__*/ xt(/* @__PURE__ */ f({
3625
3629
  __name: "DarkModeToggle",
3626
3630
  props: { darkMode: { type: Boolean } },
3627
3631
  emits: ["change"],
@@ -3644,37 +3648,37 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3644
3648
  "leave-to-class": "tpl-icon-leave-to",
3645
3649
  mode: "out-in"
3646
3650
  }, {
3647
- default: l(() => [e.darkMode ? (s(), v(b(Vt), {
3651
+ default: l(() => [e.darkMode ? (s(), v(b(Wt), {
3648
3652
  key: "moon",
3649
3653
  size: 18,
3650
3654
  "stroke-width": 1.5
3651
- })) : (s(), v(b(Jt), {
3655
+ })) : (s(), v(b(Zt), {
3652
3656
  key: "sun",
3653
3657
  size: 18,
3654
3658
  "stroke-width": 1.5
3655
3659
  }))]),
3656
3660
  _: 1
3657
- })], 12, jc));
3661
+ })], 12, Pc));
3658
3662
  }
3659
- }), [["__scopeId", "data-v-f8694f76"]]), Nc = {
3663
+ }), [["__scopeId", "data-v-f8694f76"]]), Ic = {
3660
3664
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
3661
3665
  style: {
3662
3666
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
3663
3667
  "backdrop-filter": "blur(8px)",
3664
3668
  "-webkit-backdrop-filter": "blur(8px)"
3665
3669
  }
3666
- }, Pc = {
3670
+ }, Lc = {
3667
3671
  href: "https://github.com/templatical/sdk",
3668
3672
  target: "_blank",
3669
3673
  rel: "noopener noreferrer",
3670
3674
  class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
3671
3675
  style: { "text-decoration": "none" }
3672
- }, Fc = /* @__PURE__ */ f({
3676
+ }, Rc = /* @__PURE__ */ f({
3673
3677
  __name: "EditorFooter",
3674
3678
  props: { positionClass: {} },
3675
3679
  setup(e) {
3676
3680
  let { t } = U();
3677
- return (r, i) => (s(), m("footer", { class: n(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [p("div", Nc, [
3681
+ return (r, i) => (s(), m("footer", { class: n(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [p("div", Ic, [
3678
3682
  p("span", null, c(b(t).footer.poweredBy), 1),
3679
3683
  i[0] ||= p("a", {
3680
3684
  href: "https://templatical.com",
@@ -3689,32 +3693,32 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3689
3693
  alt: ""
3690
3694
  }), y(" Templatical ")], -1),
3691
3695
  i[1] ||= p("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3692
- p("a", Pc, c(b(t).footer.openSource), 1)
3696
+ p("a", Lc, c(b(t).footer.openSource), 1)
3693
3697
  ])], 2));
3694
3698
  }
3695
- }), Ic = ["aria-labelledby", "data-tpl-theme"], Lc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Rc = ["id"], zc = ["aria-label"], Bc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Vc = [
3699
+ }), zc = ["aria-labelledby", "data-tpl-theme"], Bc = { 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" }, Vc = ["id"], Hc = ["aria-label"], Uc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Wc = [
3696
3700
  "id",
3697
3701
  "placeholder",
3698
3702
  "aria-label",
3699
3703
  "aria-activedescendant"
3700
- ], Hc = {
3704
+ ], Gc = {
3701
3705
  key: 0,
3702
3706
  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",
3703
3707
  "data-testid": "merge-tag-picker-group-pills"
3704
- }, Uc = ["data-group-name", "onClick"], Wc = ["aria-label"], Gc = {
3708
+ }, Kc = ["data-group-name", "onClick"], qc = ["aria-label"], Jc = {
3705
3709
  key: 0,
3706
3710
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3707
3711
  "data-testid": "merge-tag-picker-empty"
3708
- }, Kc = {
3712
+ }, Yc = {
3709
3713
  key: 1,
3710
3714
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3711
3715
  "data-testid": "merge-tag-picker-empty"
3712
- }, qc = [
3716
+ }, Xc = [
3713
3717
  "aria-expanded",
3714
3718
  "data-group-name",
3715
3719
  "data-group-collapsed",
3716
3720
  "onClick"
3717
- ], Jc = { class: "tpl:ml-1 tpl:font-normal" }, Yc = [
3721
+ ], Zc = { class: "tpl:ml-1 tpl:font-normal" }, Qc = [
3718
3722
  "id",
3719
3723
  "aria-selected",
3720
3724
  "data-selected",
@@ -3723,13 +3727,13 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3723
3727
  "title",
3724
3728
  "onMousemove",
3725
3729
  "onClick"
3726
- ], Xc = { class: "tpl:text-sm tpl:font-medium" }, Zc = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Qc = {
3730
+ ], $c = { class: "tpl:text-sm tpl:font-medium" }, el = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, tl = {
3727
3731
  key: 0,
3728
3732
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3729
- }, $c = "tpl-merge-tag-picker-list", el = /* @__PURE__ */ f({
3733
+ }, nl = "tpl-merge-tag-picker-list", rl = /* @__PURE__ */ f({
3730
3734
  __name: "MergeTagPickerModal",
3731
3735
  setup(r) {
3732
- let a = Ze(Pe, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Ie, null), h = E(Re, null), _ = d(""), y = ke(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0), N = C(() => a.tags.value.some((e) => !!e.group)), P = d(/* @__PURE__ */ new Set());
3736
+ let a = Fe(Ie, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Re, null), h = E(et, null), _ = d(""), y = Ae(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0), N = C(() => a.tags.value.some((e) => !!e.group)), P = d(/* @__PURE__ */ new Set());
3733
3737
  function F(e) {
3734
3738
  return P.value.has(e);
3735
3739
  }
@@ -3839,13 +3843,13 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3839
3843
  }
3840
3844
  }
3841
3845
  function se() {
3842
- if (B.value.length !== 0) return `${$c}-opt-${j.value}`;
3846
+ if (B.value.length !== 0) return `${nl}-opt-${j.value}`;
3843
3847
  }
3844
3848
  function ce(e) {
3845
- return `${$c}-opt-${e}`;
3849
+ return `${nl}-opt-${e}`;
3846
3850
  }
3847
3851
  let le = C(() => a.tags.value.length === 0), ue = C(() => !le.value && L.value.length === 0), de = C(() => N.value && R.value.length > 1 && !D.value);
3848
- return (r, i) => (s(), v(Pt, {
3852
+ return (r, i) => (s(), v(Lt, {
3849
3853
  visible: b(a).isOpen.value,
3850
3854
  onClose: ee,
3851
3855
  onKeydown: oe
@@ -3853,31 +3857,31 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3853
3857
  default: l(() => [p("div", {
3854
3858
  role: "dialog",
3855
3859
  "aria-modal": "true",
3856
- "aria-labelledby": `${$c}-title`,
3860
+ "aria-labelledby": `${nl}-title`,
3857
3861
  "data-tpl-theme": b(h),
3858
3862
  "data-testid": "merge-tag-picker-modal",
3859
3863
  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)]",
3860
3864
  style: t(b(f))
3861
3865
  }, [
3862
- p("header", Lc, [p("h2", {
3863
- id: `${$c}-title`,
3866
+ p("header", Bc, [p("h2", {
3867
+ id: `${nl}-title`,
3864
3868
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3865
- }, c(b(o).mergeTag.picker.title), 9, Rc), p("button", {
3869
+ }, c(b(o).mergeTag.picker.title), 9, Vc), p("button", {
3866
3870
  type: "button",
3867
3871
  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)]",
3868
3872
  "aria-label": b(o).mergeTag.picker.close,
3869
3873
  "data-testid": "merge-tag-picker-close",
3870
3874
  onClick: ee
3871
- }, [g(b(_t), {
3875
+ }, [g(b(bt), {
3872
3876
  size: 16,
3873
3877
  "stroke-width": 2
3874
- })], 8, zc)]),
3875
- p("div", Bc, [g(b(rt), {
3878
+ })], 8, Hc)]),
3879
+ p("div", Uc, [g(b(ot), {
3876
3880
  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)]",
3877
3881
  size: 14,
3878
3882
  "stroke-width": 2
3879
3883
  }), O(p("input", {
3880
- id: `${$c}-search`,
3884
+ id: `${nl}-search`,
3881
3885
  ref_key: "searchInputRef",
3882
3886
  ref: x,
3883
3887
  "onUpdate:modelValue": i[0] ||= (e) => _.value = e,
@@ -3885,48 +3889,48 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3885
3889
  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)]",
3886
3890
  placeholder: b(o).mergeTag.picker.searchPlaceholder,
3887
3891
  "aria-label": b(o).mergeTag.picker.searchAriaLabel,
3888
- "aria-controls": $c,
3892
+ "aria-controls": nl,
3889
3893
  "aria-activedescendant": se(),
3890
3894
  "data-testid": "merge-tag-picker-search",
3891
3895
  onKeydown: i[1] ||= M(A(() => {}, ["prevent"]), ["enter"])
3892
- }, null, 40, Vc), [[k, _.value]])]),
3893
- de.value ? (s(), m("div", Hc, [(s(!0), m(S, null, e(R.value, (e) => (s(), m("button", {
3896
+ }, null, 40, Wc), [[k, _.value]])]),
3897
+ de.value ? (s(), m("div", Gc, [(s(!0), m(S, null, e(R.value, (e) => (s(), m("button", {
3894
3898
  key: e,
3895
3899
  type: "button",
3896
3900
  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)]",
3897
3901
  "data-testid": "merge-tag-picker-group-pill",
3898
3902
  "data-group-name": e,
3899
3903
  onClick: (t) => ae(e)
3900
- }, c(e), 9, Uc))), 128))])) : w("", !0),
3904
+ }, c(e), 9, Kc))), 128))])) : w("", !0),
3901
3905
  p("div", {
3902
- id: $c,
3906
+ id: nl,
3903
3907
  ref_key: "listRef",
3904
3908
  ref: ne,
3905
3909
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3906
3910
  role: "listbox",
3907
3911
  "aria-label": b(o).mergeTag.picker.title,
3908
3912
  "data-testid": "merge-tag-picker-list"
3909
- }, [le.value ? (s(), m("div", Gc, c(b(o).mergeTag.picker.empty), 1)) : ue.value ? (s(), m("div", Kc, c(b(o).mergeTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(z.value, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("button", {
3913
+ }, [le.value ? (s(), m("div", Jc, c(b(o).mergeTag.picker.empty), 1)) : ue.value ? (s(), m("div", Yc, c(b(o).mergeTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(z.value, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("button", {
3910
3914
  key: 0,
3911
3915
  ref_for: !0,
3912
3916
  ref: (t) => re(e.group, t),
3913
3917
  type: "button",
3914
3918
  "aria-expanded": !F(e.group),
3915
- "aria-controls": $c,
3919
+ "aria-controls": nl,
3916
3920
  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)]",
3917
3921
  "data-testid": "merge-tag-picker-group-header",
3918
3922
  "data-group-name": e.group,
3919
3923
  "data-group-collapsed": F(e.group) ? "true" : "false",
3920
3924
  onClick: (t) => I(e.group)
3921
3925
  }, [
3922
- g(b(et), {
3926
+ g(b(rt), {
3923
3927
  size: 12,
3924
3928
  "stroke-width": 2,
3925
3929
  class: n(["tpl:transition-transform", F(e.group) ? "tpl:-rotate-90" : ""])
3926
3930
  }, null, 8, ["class"]),
3927
3931
  p("span", null, c(e.group), 1),
3928
- p("span", Jc, " (" + c(b(u)(b(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3929
- ], 8, qc)) : (s(), m("button", {
3932
+ p("span", Zc, " (" + c(b(u)(b(o).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3933
+ ], 8, Xc)) : (s(), m("button", {
3930
3934
  key: 1,
3931
3935
  id: ce(e.index),
3932
3936
  type: "button",
@@ -3941,22 +3945,22 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3941
3945
  onMousemove: (t) => j.value = e.index,
3942
3946
  onClick: (t) => V(e.tag)
3943
3947
  }, [
3944
- p("span", Xc, c(e.tag.label), 1),
3945
- p("span", Zc, c(e.tag.value), 1),
3946
- e.tag.description ? (s(), m("span", Qc, c(e.tag.description), 1)) : w("", !0)
3947
- ], 42, Yc))], 64))), 128))], 8, Wc)
3948
- ], 12, Ic)]),
3948
+ p("span", $c, c(e.tag.label), 1),
3949
+ p("span", el, c(e.tag.value), 1),
3950
+ e.tag.description ? (s(), m("span", tl, c(e.tag.description), 1)) : w("", !0)
3951
+ ], 42, Qc))], 64))), 128))], 8, qc)
3952
+ ], 12, zc)]),
3949
3953
  _: 1
3950
3954
  }, 8, ["visible"]));
3951
3955
  }
3952
- }), tl = ["data-logic-keyword"], nl = /* @__PURE__ */ f({
3956
+ }), il = ["data-logic-keyword"], al = /* @__PURE__ */ f({
3953
3957
  __name: "LogicTagBadge",
3954
3958
  props: {
3955
3959
  value: {},
3956
3960
  syntax: {}
3957
3961
  },
3958
3962
  setup(e) {
3959
- let t = e, n = C(() => z(t.value, t.syntax)), r = C(() => ne(t.value, t.syntax));
3963
+ let t = e, n = C(() => ee(t.value, t.syntax)), r = C(() => I(t.value, t.syntax));
3960
3964
  return (e, t) => n.value ? (s(), m("span", {
3961
3965
  key: 0,
3962
3966
  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",
@@ -3966,22 +3970,22 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3966
3970
  },
3967
3971
  "data-testid": "merge-tag-logic-badge",
3968
3972
  "data-logic-keyword": r.value
3969
- }, c(r.value), 9, tl)) : w("", !0);
3973
+ }, c(r.value), 9, il)) : w("", !0);
3970
3974
  }
3971
- }), rl = ["aria-labelledby", "data-tpl-theme"], il = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, al = ["id"], ol = ["aria-label"], sl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, cl = [
3975
+ }), ol = ["aria-labelledby", "data-tpl-theme"], sl = { 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" }, cl = ["id"], ll = ["aria-label"], ul = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, dl = [
3972
3976
  "id",
3973
3977
  "placeholder",
3974
3978
  "aria-label",
3975
3979
  "aria-activedescendant"
3976
- ], ll = ["aria-label"], ul = {
3980
+ ], fl = ["aria-label"], pl = {
3977
3981
  key: 0,
3978
3982
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3979
3983
  "data-testid": "logic-picker-empty"
3980
- }, dl = {
3984
+ }, ml = {
3981
3985
  key: 1,
3982
3986
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3983
3987
  "data-testid": "logic-picker-empty"
3984
- }, fl = ["data-group-name"], pl = [
3988
+ }, hl = ["data-group-name"], gl = [
3985
3989
  "id",
3986
3990
  "aria-selected",
3987
3991
  "data-selected",
@@ -3989,19 +3993,19 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
3989
3993
  "data-logic-kind",
3990
3994
  "onMousemove",
3991
3995
  "onClick"
3992
- ], ml = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, hl = { class: "tpl:text-sm tpl:font-medium" }, gl = {
3996
+ ], _l = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, vl = { class: "tpl:text-sm tpl:font-medium" }, yl = {
3993
3997
  key: 0,
3994
3998
  class: "tpl:flex tpl:items-center"
3995
- }, _l = {
3999
+ }, bl = {
3996
4000
  key: 1,
3997
4001
  class: "tpl:flex tpl:items-center tpl:gap-1"
3998
- }, vl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, yl = {
4002
+ }, xl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Sl = {
3999
4003
  key: 0,
4000
4004
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
4001
- }, bl = "tpl-logic-picker-list", xl = /* @__PURE__ */ f({
4005
+ }, Cl = "tpl-logic-picker-list", wl = /* @__PURE__ */ f({
4002
4006
  __name: "LogicTagPickerModal",
4003
4007
  setup(r) {
4004
- let a = Ze(Me, "LogicTagPickerModal"), { t: o } = U(), u = E(Ne, V.liquid), f = E(Ie, null), h = E(Re, null), _ = d(""), y = ke(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0);
4008
+ let a = Fe($e, "LogicTagPickerModal"), { t: o } = U(), u = E(Be, z.liquid), f = E(Re, null), h = E(et, null), _ = d(""), y = Ae(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0);
4005
4009
  function N(e) {
4006
4010
  let t = y.value.trim().toLowerCase();
4007
4011
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -4032,7 +4036,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4032
4036
  }
4033
4037
  return r.map((e) => [e, n.get(e)]);
4034
4038
  }
4035
- let z = C(() => {
4039
+ let B = C(() => {
4036
4040
  let e = [], t = [], n = 0, r = (r) => {
4037
4041
  r.kind === "tag" ? (e.push({
4038
4042
  kind: "tag",
@@ -4056,10 +4060,10 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4056
4060
  rows: e,
4057
4061
  items: t
4058
4062
  };
4059
- }), B = C(() => z.value.items), ee = C(() => a.tags.value.length === 0 && a.pairs.value.length === 0), te = C(() => !ee.value && B.value.length === 0);
4063
+ }), V = C(() => B.value.items), ee = C(() => a.tags.value.length === 0 && a.pairs.value.length === 0), te = C(() => !ee.value && V.value.length === 0);
4060
4064
  i(() => a.isOpen.value, (e) => {
4061
4065
  e && (_.value = "", j.value = 0, T(() => x.value?.focus()));
4062
- }), i(B, (e) => {
4066
+ }), i(V, (e) => {
4063
4067
  j.value >= e.length && (j.value = Math.max(0, e.length - 1));
4064
4068
  });
4065
4069
  let ne = d(null);
@@ -4070,7 +4074,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4070
4074
  a.resolve(null);
4071
4075
  }
4072
4076
  function ie(e) {
4073
- B.value.length !== 0 && (j.value = Math.max(0, Math.min(B.value.length - 1, j.value + e)), T(() => {
4077
+ V.value.length !== 0 && (j.value = Math.max(0, Math.min(V.value.length - 1, j.value + e)), T(() => {
4074
4078
  ne.value?.querySelector(`[data-logic-index="${j.value}"]`)?.scrollIntoView({ block: "nearest" });
4075
4079
  }));
4076
4080
  }
@@ -4079,17 +4083,17 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4079
4083
  else if (e.key === "ArrowUp") e.preventDefault(), ie(-1);
4080
4084
  else if (e.key === "Enter") {
4081
4085
  e.preventDefault();
4082
- let t = B.value[j.value];
4086
+ let t = V.value[j.value];
4083
4087
  t && H(t);
4084
4088
  }
4085
4089
  }
4086
4090
  function oe(e) {
4087
- return `${bl}-opt-${e}`;
4091
+ return `${Cl}-opt-${e}`;
4088
4092
  }
4089
4093
  function se() {
4090
- return B.value.length === 0 ? void 0 : `${bl}-opt-${j.value}`;
4094
+ return V.value.length === 0 ? void 0 : `${Cl}-opt-${j.value}`;
4091
4095
  }
4092
- return (r, i) => (s(), v(Pt, {
4096
+ return (r, i) => (s(), v(Lt, {
4093
4097
  visible: b(a).isOpen.value,
4094
4098
  onClose: re,
4095
4099
  onKeydown: ae
@@ -4097,31 +4101,31 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4097
4101
  default: l(() => [p("div", {
4098
4102
  role: "dialog",
4099
4103
  "aria-modal": "true",
4100
- "aria-labelledby": `${bl}-title`,
4104
+ "aria-labelledby": `${Cl}-title`,
4101
4105
  "data-tpl-theme": b(h),
4102
4106
  "data-testid": "logic-picker-modal",
4103
4107
  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)]",
4104
4108
  style: t(b(f))
4105
4109
  }, [
4106
- p("header", il, [p("h2", {
4107
- id: `${bl}-title`,
4110
+ p("header", sl, [p("h2", {
4111
+ id: `${Cl}-title`,
4108
4112
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
4109
- }, c(b(o).logicTag.picker.title), 9, al), p("button", {
4113
+ }, c(b(o).logicTag.picker.title), 9, cl), p("button", {
4110
4114
  type: "button",
4111
4115
  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)]",
4112
4116
  "aria-label": b(o).logicTag.picker.close,
4113
4117
  "data-testid": "logic-picker-close",
4114
4118
  onClick: re
4115
- }, [g(b(_t), {
4119
+ }, [g(b(bt), {
4116
4120
  size: 16,
4117
4121
  "stroke-width": 2
4118
- })], 8, ol)]),
4119
- p("div", sl, [g(b(rt), {
4122
+ })], 8, ll)]),
4123
+ p("div", ul, [g(b(ot), {
4120
4124
  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)]",
4121
4125
  size: 14,
4122
4126
  "stroke-width": 2
4123
4127
  }), O(p("input", {
4124
- id: `${bl}-search`,
4128
+ id: `${Cl}-search`,
4125
4129
  ref_key: "searchInputRef",
4126
4130
  ref: x,
4127
4131
  "onUpdate:modelValue": i[0] ||= (e) => _.value = e,
@@ -4129,25 +4133,25 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4129
4133
  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)]",
4130
4134
  placeholder: b(o).logicTag.picker.searchPlaceholder,
4131
4135
  "aria-label": b(o).logicTag.picker.searchAriaLabel,
4132
- "aria-controls": bl,
4136
+ "aria-controls": Cl,
4133
4137
  "aria-activedescendant": se(),
4134
4138
  "data-testid": "logic-picker-search",
4135
4139
  onKeydown: i[1] ||= M(A(() => {}, ["prevent"]), ["enter"])
4136
- }, null, 40, cl), [[k, _.value]])]),
4140
+ }, null, 40, dl), [[k, _.value]])]),
4137
4141
  p("div", {
4138
- id: bl,
4142
+ id: Cl,
4139
4143
  ref_key: "listRef",
4140
4144
  ref: ne,
4141
4145
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
4142
4146
  role: "listbox",
4143
4147
  "aria-label": b(o).logicTag.picker.title,
4144
4148
  "data-testid": "logic-picker-list"
4145
- }, [ee.value ? (s(), m("div", ul, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", dl, c(b(o).logicTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(z.value.rows, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("div", {
4149
+ }, [ee.value ? (s(), m("div", pl, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", ml, c(b(o).logicTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(B.value.rows, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("div", {
4146
4150
  key: 0,
4147
4151
  class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
4148
4152
  "data-testid": "logic-picker-header",
4149
4153
  "data-group-name": e.label
4150
- }, c(e.label), 9, fl)) : (s(), m("button", {
4154
+ }, c(e.label), 9, hl)) : (s(), m("button", {
4151
4155
  key: 1,
4152
4156
  id: oe(e.index),
4153
4157
  type: "button",
@@ -4161,27 +4165,27 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
4161
4165
  onMousemove: (t) => j.value = e.index,
4162
4166
  onClick: (t) => H(e.kind === "tag" ? e.tag : e.pair)
4163
4167
  }, [
4164
- p("span", ml, [p("span", hl, c(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), m("span", gl, [g(nl, {
4168
+ p("span", _l, [p("span", vl, c(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), m("span", yl, [g(al, {
4165
4169
  value: e.tag.value,
4166
4170
  syntax: b(u)
4167
- }, null, 8, ["value", "syntax"])])) : (s(), m("span", _l, [
4168
- g(nl, {
4171
+ }, null, 8, ["value", "syntax"])])) : (s(), m("span", bl, [
4172
+ g(al, {
4169
4173
  value: e.pair.before,
4170
4174
  syntax: b(u)
4171
4175
  }, null, 8, ["value", "syntax"]),
4172
4176
  i[2] ||= p("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
4173
- g(nl, {
4177
+ g(al, {
4174
4178
  value: e.pair.after,
4175
4179
  syntax: b(u)
4176
4180
  }, null, 8, ["value", "syntax"])
4177
4181
  ]))]),
4178
- p("span", vl, c(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
4179
- (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span", yl, c(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
4180
- ], 42, pl))], 64))), 128))], 8, ll)
4181
- ], 12, rl)]),
4182
+ p("span", xl, c(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
4183
+ (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), m("span", Sl, c(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
4184
+ ], 42, gl))], 64))), 128))], 8, fl)
4185
+ ], 12, ol)]),
4182
4186
  _: 1
4183
4187
  }, 8, ["visible"]));
4184
4188
  }
4185
4189
  });
4186
4190
  //#endregion
4187
- export { Ac as a, bc as c, sn as d, Yt as f, Mc as i, vn as l, el as n, Oc as o, Ut as p, Fc as r, Tc as s, xl as t, cn as u };
4191
+ export { Nc as a, Cc as c, un as d, Qt as f, Fc as i, xn as l, rl as n, jc as o, Kt as p, Rc as r, Oc as s, wl as t, dn as u };