@templatical/editor 0.25.2 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/{AiChatSidebar-JLsbPnsH.js → AiChatSidebar-B_fwa6zc.js} +8 -8
  2. package/dist/{AiFeatureMenu-BvA-lViN.js → AiFeatureMenu-BBBKsYD4.js} +4 -4
  3. package/dist/{BlockIssueBadge-Cf0-GC3o.js → BlockIssueBadge-Buk3_6QF.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-CnJIM5TO.js → BlockPreviewCanvas-zyyq2de0.js} +1 -1
  5. package/dist/{CloudEditor-Caq7z4-7.js → CloudEditor-DM3RRCVn.js} +19 -19
  6. package/dist/{CollaboratorBar-BFz4LgA0.js → CollaboratorBar-Coj8Ebwf.js} +2 -2
  7. package/dist/{ColorPicker-B5xXWWX5.js → ColorPicker-ClETsjA3.js} +1 -1
  8. package/dist/{CommentsSidebar-CGihWwn9.js → CommentsSidebar-CdRCCSDD.js} +10 -10
  9. package/dist/{CountdownToolbar-DpNCZAUI.js → CountdownToolbar-CBE9wRaV.js} +2 -2
  10. package/dist/{DesignReferenceSidebar-CiIHHiil.js → DesignReferenceSidebar-hDXOvGoV.js} +6 -6
  11. package/dist/{IssuesPanel-CUkmAC_S.js → IssuesPanel-Do7RLXsP.js} +5 -5
  12. package/dist/{MergeTagModeToggle-C6nS3qri.js → MergeTagModeToggle-D0t5NHBZ.js} +3 -3
  13. package/dist/{MergeTagSuggestion-98fAcuM-.js → MergeTagSuggestion-BJ43ihWR.js} +9 -9
  14. package/dist/{NumberWithSuffix-DB-1GNvx.js → NumberWithSuffix-D37ZWiZh.js} +1 -1
  15. package/dist/{ParagraphEditor-NgW-T9YV.js → ParagraphEditor-B-CYrQMY.js} +19 -19
  16. package/dist/{RichTextEditorContent-CN7OVR6u.js → RichTextEditorContent-fbYJXAio.js} +3 -3
  17. package/dist/{SaveBlockDialog-lgcmhAsO.js → SaveBlockDialog-CoVPZfUv.js} +6 -6
  18. package/dist/{SavedBlocksBrowserModal-3u247V2z.js → SavedBlocksBrowserModal-DX13xw0O.js} +7 -7
  19. package/dist/{SavedBlocksPanels-Dh6dABJt.js → SavedBlocksPanels-B7pBiZcc.js} +1 -1
  20. package/dist/{SavedBlocksPickBar-Bo82D3Qy.js → SavedBlocksPickBar-ZfqXByph.js} +2 -2
  21. package/dist/{SnapshotHistory-Dsb1i40w.js → SnapshotHistory-BxABntv5.js} +11 -11
  22. package/dist/{TemplateScoringPanel-Bzd_YSag.js → TemplateScoringPanel-BZUsb3FD.js} +10 -10
  23. package/dist/{TestEmailModal-DvqDTOcO.js → TestEmailModal-Db4qheuy.js} +7 -7
  24. package/dist/{TestEmailPanel-BXoVnAqu.js → TestEmailPanel-B-SXSnRg.js} +1 -1
  25. package/dist/{TitleEditor-DWSi998C.js → TitleEditor-DmoaKooA.js} +8 -8
  26. package/dist/{TplModal-DKn0h2qe.js → TplModal-Bym-Kf_i.js} +1 -1
  27. package/dist/{blockTypeIcons-DKlza6aR.js → blockTypeIcons-BnCXsB2I.js} +2 -2
  28. package/dist/bundle-stats.json +6 -6
  29. package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js → AiChatSidebar-CFvS4-EZ.js} +35 -35
  30. package/dist/cdn/chunks/{AiChatSidebar-BY1Iy-e8.js.map → AiChatSidebar-CFvS4-EZ.js.map} +1 -1
  31. package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js → AiFeatureMenu-a0gBZiJ9.js} +11 -11
  32. package/dist/cdn/chunks/{AiFeatureMenu-BS4Rek6j.js.map → AiFeatureMenu-a0gBZiJ9.js.map} +1 -1
  33. package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js → BlockIssueBadge-BEEY9o2o.js} +5 -5
  34. package/dist/cdn/chunks/{BlockIssueBadge-BcIQUe_Q.js.map → BlockIssueBadge-BEEY9o2o.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js → BlockPreviewCanvas-C27XK2q0.js} +22 -22
  36. package/dist/cdn/chunks/{BlockPreviewCanvas-oND1iXLL.js.map → BlockPreviewCanvas-C27XK2q0.js.map} +1 -1
  37. package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js → CloudEditor-Ddnatfuw.js} +65 -65
  38. package/dist/cdn/chunks/{CloudEditor-BaqiFbf0.js.map → CloudEditor-Ddnatfuw.js.map} +1 -1
  39. package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js → CollaboratorBar-C5Xf6Mz9.js} +12 -12
  40. package/dist/cdn/chunks/{CollaboratorBar-DF02nTwF.js.map → CollaboratorBar-C5Xf6Mz9.js.map} +1 -1
  41. package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js → ColorPicker-W_UyiVGc.js} +131 -131
  42. package/dist/cdn/chunks/{ColorPicker-BXH44v2H.js.map → ColorPicker-W_UyiVGc.js.map} +1 -1
  43. package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js → CommentsSidebar-BLRZRSSC.js} +112 -112
  44. package/dist/cdn/chunks/{CommentsSidebar-B9bWvvbl.js.map → CommentsSidebar-BLRZRSSC.js.map} +1 -1
  45. package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js → CountdownBlock-vLTkTI9e.js} +11 -11
  46. package/dist/cdn/chunks/{CountdownBlock-BTpRd0Hn.js.map → CountdownBlock-vLTkTI9e.js.map} +1 -1
  47. package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js → CountdownToolbar-DPjcgcVR.js} +41 -41
  48. package/dist/cdn/chunks/{CountdownToolbar-CW10rbWt.js.map → CountdownToolbar-DPjcgcVR.js.map} +1 -1
  49. package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js → DesignReferenceSidebar-CZiP00JN.js} +28 -28
  50. package/dist/cdn/chunks/{DesignReferenceSidebar-BXjH47QC.js.map → DesignReferenceSidebar-CZiP00JN.js.map} +1 -1
  51. package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js → IssuesPanel-DKTS4QVb.js} +32 -32
  52. package/dist/cdn/chunks/{IssuesPanel-DStHCHfr.js.map → IssuesPanel-DKTS4QVb.js.map} +1 -1
  53. package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js → LoadingTrack-C52ZGL5q.js} +2 -2
  54. package/dist/cdn/chunks/{LoadingTrack-DQowK3MV.js.map → LoadingTrack-C52ZGL5q.js.map} +1 -1
  55. package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js → MergeTagModeToggle-ClGdRNpZ.js} +20 -20
  56. package/dist/cdn/chunks/{MergeTagModeToggle-BCmQg4Qe.js.map → MergeTagModeToggle-ClGdRNpZ.js.map} +1 -1
  57. package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js → MergeTagSuggestion-Dn8dExNa.js} +18 -18
  58. package/dist/cdn/chunks/{MergeTagSuggestion-BgExdloL.js.map → MergeTagSuggestion-Dn8dExNa.js.map} +1 -1
  59. package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js → NumberWithSuffix-BXrRdfq1.js} +22 -22
  60. package/dist/cdn/chunks/{NumberWithSuffix-BANVbpT0.js.map → NumberWithSuffix-BXrRdfq1.js.map} +1 -1
  61. package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js → ParagraphEditor-BNc146Pp.js} +43 -43
  62. package/dist/cdn/chunks/{ParagraphEditor-DqilB4_f.js.map → ParagraphEditor-BNc146Pp.js.map} +1 -1
  63. package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js → RichTextEditorContent-DtL49Jpo.js} +20 -20
  64. package/dist/cdn/chunks/{RichTextEditorContent-BeJx4LVH.js.map → RichTextEditorContent-DtL49Jpo.js.map} +1 -1
  65. package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js → SaveBlockDialog-ogieDQp7.js} +43 -43
  66. package/dist/cdn/chunks/{SaveBlockDialog-Dm31xRZy.js.map → SaveBlockDialog-ogieDQp7.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js → SavedBlocksBrowserModal-DSpZcT_T.js} +62 -62
  68. package/dist/cdn/chunks/{SavedBlocksBrowserModal-Tp37b4y7.js.map → SavedBlocksBrowserModal-DSpZcT_T.js.map} +1 -1
  69. package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js → SavedBlocksPanels-WYrSyf-l.js} +3 -3
  70. package/dist/cdn/chunks/{SavedBlocksPanels-ElerTTa_.js.map → SavedBlocksPanels-WYrSyf-l.js.map} +1 -1
  71. package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js → SavedBlocksPickBar-DGbLBG5P.js} +12 -12
  72. package/dist/cdn/chunks/{SavedBlocksPickBar-QHJ-Mjx0.js.map → SavedBlocksPickBar-DGbLBG5P.js.map} +1 -1
  73. package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js → SnapshotHistory-VyL4tJwn.js} +26 -26
  74. package/dist/cdn/chunks/{SnapshotHistory-jogWGLB-.js.map → SnapshotHistory-VyL4tJwn.js.map} +1 -1
  75. package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js → TemplateScoringPanel-NucRtAP0.js} +34 -34
  76. package/dist/cdn/chunks/{TemplateScoringPanel-B2XIOTl-.js.map → TemplateScoringPanel-NucRtAP0.js.map} +1 -1
  77. package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js → TestEmailModal-DRte11oT.js} +31 -31
  78. package/dist/cdn/chunks/{TestEmailModal-BcPjQygV.js.map → TestEmailModal-DRte11oT.js.map} +1 -1
  79. package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js → TestEmailPanel-CpK5t4E3.js} +3 -3
  80. package/dist/cdn/chunks/{TestEmailPanel-1zxRa00s.js.map → TestEmailPanel-CpK5t4E3.js.map} +1 -1
  81. package/dist/cdn/chunks/{TitleEditor-DTrmublj.js → TitleEditor-EkDchueW.js} +35 -35
  82. package/dist/cdn/chunks/{TitleEditor-DTrmublj.js.map → TitleEditor-EkDchueW.js.map} +1 -1
  83. package/dist/cdn/chunks/{TplModal-By50gtwa.js → TplModal-BGLstO3F.js} +17 -17
  84. package/dist/cdn/chunks/{TplModal-By50gtwa.js.map → TplModal-BGLstO3F.js.map} +1 -1
  85. package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js → blockTypeIcons-FXlMM3PL.js} +2 -2
  86. package/dist/cdn/chunks/{blockTypeIcons-BhFhHuFt.js.map → blockTypeIcons-FXlMM3PL.js.map} +1 -1
  87. package/dist/cdn/chunks/{cloud-B0f7Ub8f.js → cloud-CNpvDuv7.js} +3 -3
  88. package/dist/cdn/chunks/{cloud-B0f7Ub8f.js.map → cloud-CNpvDuv7.js.map} +1 -1
  89. package/dist/cdn/chunks/{dist-H51neg3K.js → dist-B2HKGHnc.js} +3 -3
  90. package/dist/cdn/chunks/{dist-H51neg3K.js.map → dist-B2HKGHnc.js.map} +1 -1
  91. package/dist/cdn/chunks/{dist-B4VIlp1g.js → dist-C6z8AjBC.js} +2 -2
  92. package/dist/cdn/chunks/{dist-B4VIlp1g.js.map → dist-C6z8AjBC.js.map} +1 -1
  93. package/dist/cdn/chunks/{draggable-Z4XXmbPC.js → draggable-DCs9qL-b.js} +2 -2
  94. package/dist/cdn/chunks/{draggable-Z4XXmbPC.js.map → draggable-DCs9qL-b.js.map} +1 -1
  95. package/dist/cdn/chunks/{extensions-Dq0D79tq.js → extensions-CZAB08kD.js} +22 -22
  96. package/dist/cdn/chunks/{extensions-Dq0D79tq.js.map → extensions-CZAB08kD.js.map} +1 -1
  97. package/dist/cdn/chunks/{icons-C_kRN0_C.js → icons-CvYN6zrM.js} +8 -8
  98. package/dist/cdn/chunks/{icons-C_kRN0_C.js.map → icons-CvYN6zrM.js.map} +1 -1
  99. package/dist/cdn/chunks/{keys-DsoX52o_.js → keys-Cmc2Yl3D.js} +2 -2
  100. package/dist/cdn/chunks/{keys-DsoX52o_.js.map → keys-Cmc2Yl3D.js.map} +1 -1
  101. package/dist/cdn/chunks/{liquid.browser-DrGys_ek.js → liquid.browser-UlAOKBjI.js} +99 -91
  102. package/dist/cdn/chunks/liquid.browser-UlAOKBjI.js.map +1 -0
  103. package/dist/cdn/chunks/{src-CRvTVX4F.js → src-BRRRFqXr.js} +201 -201
  104. package/dist/cdn/chunks/{src-CRvTVX4F.js.map → src-BRRRFqXr.js.map} +1 -1
  105. package/dist/cdn/chunks/{src-Aea1Vl1H.js → src-COnW7gMq.js} +123 -123
  106. package/dist/cdn/chunks/src-COnW7gMq.js.map +1 -0
  107. package/dist/cdn/chunks/{src-CZjSXPYq.js → src-DsvVSm7Z.js} +221 -166
  108. package/dist/cdn/chunks/src-DsvVSm7Z.js.map +1 -0
  109. package/dist/cdn/chunks/{src-_GNJgPcS.js → src-DzH5U9Vm.js} +79 -79
  110. package/dist/cdn/chunks/{src-_GNJgPcS.js.map → src-DzH5U9Vm.js.map} +1 -1
  111. package/dist/cdn/chunks/{styles-znpPfrFd.js → styles-DEU_sn3k.js} +935 -917
  112. package/dist/cdn/chunks/styles-DEU_sn3k.js.map +1 -0
  113. package/dist/cdn/chunks/{tiptap-C5vzWlHv.js → tiptap-C44S1Cmh.js} +3480 -2806
  114. package/dist/cdn/chunks/tiptap-C44S1Cmh.js.map +1 -0
  115. package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js → useAliveFlag-Dxwgo6P4.js} +2 -2
  116. package/dist/cdn/chunks/{useAliveFlag-4IDYQRNu.js.map → useAliveFlag-Dxwgo6P4.js.map} +1 -1
  117. package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js → useCloudI18n-8wkJtuJD.js} +3 -3
  118. package/dist/cdn/chunks/{useCloudI18n-D4JpHTPk.js.map → useCloudI18n-8wkJtuJD.js.map} +1 -1
  119. package/dist/cdn/chunks/{useEditorCore-BMXBmdd8.js → useEditorCore-fyFmWS3D.js} +297 -297
  120. package/dist/cdn/chunks/useEditorCore-fyFmWS3D.js.map +1 -0
  121. package/dist/cdn/chunks/{useI18n-BvcEYzrI.js → useI18n-UMs0F71x.js} +3 -3
  122. package/dist/cdn/chunks/{useI18n-BvcEYzrI.js.map → useI18n-UMs0F71x.js.map} +1 -1
  123. package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js → useMergeTag-DjQoCGEz.js} +4 -4
  124. package/dist/cdn/chunks/{useMergeTag-BSdxMUzg.js.map → useMergeTag-DjQoCGEz.js.map} +1 -1
  125. package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js → usePopoverPosition-cf8Y-ynK.js} +3 -3
  126. package/dist/cdn/chunks/{usePopoverPosition-ig-71caO.js.map → usePopoverPosition-cf8Y-ynK.js.map} +1 -1
  127. package/dist/cdn/editor.js +47 -47
  128. package/dist/cdn/editor.js.map +1 -1
  129. package/dist/{check-COV27dGb.js → check-On4TSac-.js} +1 -1
  130. package/dist/{chevron-down-vsU88vcr.js → chevron-down-69EiBGoB.js} +1 -1
  131. package/dist/{chevron-up-RrZ0Rjn9.js → chevron-up-Dh3MG1Dw.js} +1 -1
  132. package/dist/{circle-alert-B6GlHmmi.js → circle-alert-cilwzafX.js} +1 -1
  133. package/dist/{clock-egOt8zjQ.js → clock-Dt0APH92.js} +1 -1
  134. package/dist/{cloud-D-2StbvU.js → cloud-4SuOLNTK.js} +1 -1
  135. package/dist/{createLucideIcon-D6cqT5Pm.js → createLucideIcon-C8WzBYCv.js} +2 -2
  136. package/dist/dist-6YJAWMuf.js +5 -0
  137. package/dist/dist-8vlm9kfO.js +5 -0
  138. package/dist/{dist-DHwnYYx0.js → dist-BImfm-46.js} +2 -2
  139. package/dist/{dist-CQ0fVBQ3.js → dist-BvYvG5SQ.js} +110 -57
  140. package/dist/{dist-DzzTB4eE.js → dist-C08jiemd.js} +7 -7
  141. package/dist/{dist-CqV4XslQ.js → dist-C27SeFL5.js} +15 -15
  142. package/dist/{dist-MwT7T6Xp.js → dist-CYx-E82k.js} +2 -2
  143. package/dist/{dist-CHxPjcxA.js → dist-ChYLhoJ4.js} +2143 -1583
  144. package/dist/{dist-UkG5ZJ1P.js → dist-Cl8J0IES.js} +258 -172
  145. package/dist/{dist-D4GoAr2g.js → dist-DMJRSouD.js} +464 -436
  146. package/dist/{dist-GUZZpDK3.js → dist-DfpeSdmE.js} +2 -2
  147. package/dist/{dist-Du95Y9M3.js → dist-M7m1lYRe.js} +47 -47
  148. package/dist/{dist-vpuiQ7_Q.js → dist-g6cbzhZW.js} +2 -2
  149. package/dist/{extensions-y6KjLr9t.js → extensions-Dz5jj0wf.js} +16 -16
  150. package/dist/{image-up-CycES-MQ.js → image-up-Ceggh_R3.js} +1 -1
  151. package/dist/{info-BUdvm046.js → info-DO5odBcZ.js} +1 -1
  152. package/dist/{liquid.browser-Di5zMIEx.js → liquid.browser-B-rGrnrQ.js} +98 -90
  153. package/dist/{list-checks-BAeuuATD.js → list-checks-BSkPKbuI.js} +1 -1
  154. package/dist/{loader-circle-L5yuAx_j.js → loader-circle-bO7o7_HD.js} +1 -1
  155. package/dist/{message-circle-DRdaapVc.js → message-circle-BEkAk65X.js} +1 -1
  156. package/dist/{pencil-BfErVPf_.js → pencil-t6m0EtKL.js} +1 -1
  157. package/dist/{refresh-cw-D0PYatER.js → refresh-cw-CkOYVzK5.js} +1 -1
  158. package/dist/{scan-line-Byi3fJcr.js → scan-line-DwSVj25O.js} +1 -1
  159. package/dist/{send-DuyNexMY.js → send-CWsWN8PQ.js} +1 -1
  160. package/dist/{shield-check-BkkN_1qw.js → shield-check-qje8Kufw.js} +1 -1
  161. package/dist/{sparkles-DAw2sBXk.js → sparkles-DumaWRW-.js} +1 -1
  162. package/dist/{styles-BzwheHH_.js → styles-DbP2S8Z1.js} +446 -428
  163. package/dist/templatical-editor.js +9 -9
  164. package/dist/{text-align-start-Ba3xJKn6.js → text-align-start-Ir8Ah4mT.js} +1 -1
  165. package/dist/{trash-2-CapEBXBI.js → trash-2-CklAFCmO.js} +1 -1
  166. package/dist/{triangle-alert-52pdw8jI.js → triangle-alert-BBi4n93g.js} +1 -1
  167. package/dist/{upload-oAgigC31.js → upload-sVqqppuv.js} +1 -1
  168. package/dist/{useEditorCore-BhjEMSeE.js → useEditorCore-CbcmGpwp.js} +889 -889
  169. package/dist/{useMergeTag-DTSOQnyr.js → useMergeTag-B9xG9EJ7.js} +1 -1
  170. package/dist/{x-DvBgbDuf.js → x-Mby7KlhS.js} +1 -1
  171. package/package.json +23 -23
  172. package/dist/cdn/chunks/liquid.browser-DrGys_ek.js.map +0 -1
  173. package/dist/cdn/chunks/src-Aea1Vl1H.js.map +0 -1
  174. package/dist/cdn/chunks/src-CZjSXPYq.js.map +0 -1
  175. package/dist/cdn/chunks/styles-znpPfrFd.js.map +0 -1
  176. package/dist/cdn/chunks/tiptap-C5vzWlHv.js.map +0 -1
  177. package/dist/cdn/chunks/useEditorCore-BMXBmdd8.js.map +0 -1
  178. package/dist/dist-B56SufAv.js +0 -5
  179. package/dist/dist-BQZkRg05.js +0 -5
@@ -1,22 +1,22 @@
1
- import { C as e, F as t, G as n, H as r, J as i, K as a, L as o, M as s, N as c, O as l, P as u, T as d, V as f, Y as p, Z as m, b as h, c as g, ct as _, f as v, g as y, h as b, it as x, l as S, m as C, n as w, o as T, ot as E, p as D, s as O, st as k, t as A, u as j, v as M, x as N, y as P, z as F } from "./draggable-Z4XXmbPC.js";
2
- import { B as I, C as ee, F as L, a as R, b as z, c as B, d as V, i as H, l as te, r as ne, y as re } from "./src-CZjSXPYq.js";
3
- import { A as ie, C as ae, I as oe, L as U, N as se, O as ce, _ as le, a as ue, c as de, d as fe, f as pe, g as me, h as he, i as ge, j as _e, k as ve, l as ye, m as be, n as xe, o as Se, p as Ce, r as we, s as Te, v as Ee, y as De } from "./useEditorCore-BMXBmdd8.js";
4
- import { _ as Oe, d as ke } from "./dist-B4VIlp1g.js";
5
- import { A as Ae, B as je, G as Me, H as Ne, I as Pe, M as Fe, O as Ie, P as Le, R as Re, T as ze, U as Be, V as Ve, W as He, c as Ue, f as We, g as Ge, h as Ke, k as qe, m as Je, n as Ye, o as Xe, p as Ze, r as Qe, s as $e, u as et, v as tt } from "./keys-DsoX52o_.js";
6
- import { t as W } from "./useI18n-BvcEYzrI.js";
7
- import { a as nt, n as rt } from "./usePopoverPosition-ig-71caO.js";
8
- import { $ as it, At as at, D as ot, E as st, Et as ct, It as lt, Mt as ut, N as dt, Ot as ft, P as pt, Q as mt, Rt as ht, T as gt, Tt as _t, U as G, Y as vt, _ as yt, _t as bt, b as xt, d as St, dt as Ct, et as wt, ft as Tt, g as Et, it as Dt, j as Ot, lt as kt, m as At, n as jt, nt as Mt, pt as Nt, q as Pt, rt as Ft, s as It, st as Lt, w as Rt, wt as zt, z as Bt } from "./icons-C_kRN0_C.js";
1
+ import { C as e, F as t, G as n, H as r, J as i, K as a, L as o, M as s, N as c, O as l, P as u, T as d, V as f, Y as p, Z as m, b as h, c as g, ct as _, f as v, g as y, h as b, it as x, l as S, lt as C, m as w, n as T, o as ee, p as E, s as D, st as O, t as k, u as A, v as j, x as M, y as N, z as P } from "./draggable-DCs9qL-b.js";
2
+ import { H as F, L as I, S as L, T as R, a as z, c as B, d as V, i as H, l as te, r as ne, x as re } from "./src-DsvVSm7Z.js";
3
+ import { A as ie, C as ae, I as oe, L as U, N as se, O as ce, _ as le, a as ue, c as de, d as fe, f as pe, g as me, h as he, i as ge, j as _e, k as ve, l as ye, m as be, n as xe, o as Se, p as Ce, r as we, s as Te, v as Ee, y as De } from "./useEditorCore-fyFmWS3D.js";
4
+ import { _ as Oe, d as ke } from "./dist-C6z8AjBC.js";
5
+ import { A as Ae, B as je, G as Me, H as Ne, I as Pe, M as Fe, O as Ie, P as Le, R as Re, T as ze, U as Be, V as Ve, W as He, c as Ue, f as We, g as Ge, h as Ke, k as qe, m as Je, n as Ye, o as Xe, p as Ze, r as Qe, s as $e, u as et, v as tt } from "./keys-Cmc2Yl3D.js";
6
+ import { t as W } from "./useI18n-UMs0F71x.js";
7
+ import { a as nt, n as rt } from "./usePopoverPosition-cf8Y-ynK.js";
8
+ import { $ as it, At as at, D as ot, E as st, Et as ct, It as lt, Mt as ut, N as dt, Ot as ft, P as pt, Q as mt, Rt as ht, T as gt, Tt as _t, U as G, Y as vt, _ as yt, _t as bt, b as xt, d as St, dt as Ct, et as wt, ft as Tt, g as Et, it as Dt, j as Ot, lt as kt, m as At, n as jt, nt as Mt, pt as Nt, q as Pt, rt as Ft, s as It, st as Lt, w as Rt, wt as zt, z as Bt } from "./icons-CvYN6zrM.js";
9
9
  import { t as Vt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
10
- import { t as Ht } from "./useCloudI18n-D4JpHTPk.js";
11
- import { t as Ut } from "./useMergeTag-BSdxMUzg.js";
12
- import { t as Wt } from "./useAliveFlag-4IDYQRNu.js";
10
+ import { t as Ht } from "./useCloudI18n-8wkJtuJD.js";
11
+ import { t as Ut } from "./useMergeTag-DjQoCGEz.js";
12
+ import { t as Wt } from "./useAliveFlag-Dxwgo6P4.js";
13
13
  import { n as Gt, t as Kt } from "./emailFrameWidth-BmFCN2dp.js";
14
14
  import { t as qt } from "./readableTextColor-f8Kykfnh.js";
15
- import { t as Jt } from "./blockTypeIcons-BhFhHuFt.js";
16
- import { _ as Yt, f as K, g as Xt, h as q, i as Zt, l as Qt, m as J, n as $t, p as Y, t as X, u as en } from "./ColorPicker-BXH44v2H.js";
17
- import { n as tn, r as nn } from "./MergeTagSuggestion-BgExdloL.js";
18
- import { i as Z, n as Q, r as rn, t as an } from "./NumberWithSuffix-BANVbpT0.js";
19
- import { t as on } from "./TplModal-By50gtwa.js";
15
+ import { t as Jt } from "./blockTypeIcons-FXlMM3PL.js";
16
+ import { _ as Yt, f as K, g as Xt, h as q, i as Zt, l as Qt, m as J, n as $t, p as Y, t as X, u as en } from "./ColorPicker-W_UyiVGc.js";
17
+ import { n as tn, r as nn } from "./MergeTagSuggestion-Dn8dExNa.js";
18
+ import { i as Z, n as Q, r as rn, t as an } from "./NumberWithSuffix-BXrRdfq1.js";
19
+ import { t as on } from "./TplModal-BGLstO3F.js";
20
20
  //#region src/composables/useSavedBlocksFeature.ts
21
21
  function sn(e) {
22
22
  let { provider: t, editor: n } = e, r = oe({
@@ -43,7 +43,7 @@ function sn(e) {
43
43
  function _() {
44
44
  i.value = !1, s.value = /* @__PURE__ */ new Set();
45
45
  }
46
- F(() => n.state.previewMode, (e) => {
46
+ P(() => n.state.previewMode, (e) => {
47
47
  e && o.value && h();
48
48
  });
49
49
  function y() {
@@ -102,7 +102,7 @@ function sn(e) {
102
102
  //#region src/utils/toMjml.ts
103
103
  async function cn() {
104
104
  try {
105
- return await import("./src-Aea1Vl1H.js");
105
+ return await import("./src-COnW7gMq.js");
106
106
  } catch {
107
107
  return null;
108
108
  }
@@ -224,7 +224,7 @@ var pn = ["aria-label"], mn = {
224
224
  }, Cn = { class: "tpl:relative" }, wn = {
225
225
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
226
226
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
227
- }, Tn = /*#__PURE__*/ Vt(/* @__PURE__ */ N({
227
+ }, Tn = /*#__PURE__*/ Vt(/* @__PURE__ */ M({
228
228
  __name: "Canvas",
229
229
  props: {
230
230
  viewport: {},
@@ -254,9 +254,9 @@ var pn = ["aria-label"], mn = {
254
254
  table: we,
255
255
  video: xe,
256
256
  custom: De
257
- }, i = e, a = t, { t: l } = W(), { t: p } = Ht(), h = Me(Ge, "Canvas"), g = d(We, null), S = d($e, null), w = d(Ue, {}), T = d(qe, null), N = d(Pe, null);
258
- c(He, v(() => i.previewMode && (T?.value ?? !1) && !N?.isConfigured));
259
- let F = v(() => (w.plan?.hasFeature("ai_generation") ?? !1) && (w.ai?.isFeatureEnabled("chat") ?? !1)), I = v(() => (w.plan?.hasFeature("ai_generation") ?? !1) && (w.ai?.isFeatureEnabled("designToTemplate") ?? !1)), ee = d(Qe, null), L = v({
257
+ }, i = e, a = t, { t: l } = W(), { t: p } = Ht(), h = Me(Ge, "Canvas"), g = d(We, null), S = d($e, null), T = d(Ue, {}), ee = d(qe, null), M = d(Pe, null);
258
+ c(He, v(() => i.previewMode && (ee?.value ?? !1) && !M?.isConfigured));
259
+ let P = v(() => (T.plan?.hasFeature("ai_generation") ?? !1) && (T.ai?.isFeatureEnabled("chat") ?? !1)), F = v(() => (T.plan?.hasFeature("ai_generation") ?? !1) && (T.ai?.isFeatureEnabled("designToTemplate") ?? !1)), I = d(Qe, null), L = v({
260
260
  get: () => i.content.blocks,
261
261
  set: (e) => {
262
262
  h.setContent({
@@ -275,7 +275,7 @@ var pn = ["aria-label"], mn = {
275
275
  H.value = 0;
276
276
  }
277
277
  function ae(e) {
278
- i.previewMode || w.savedBlocks?.isPicking.value || e.target === e.currentTarget && a("select-block", null);
278
+ i.previewMode || T.savedBlocks?.isPicking.value || e.target === e.currentTarget && a("select-block", null);
279
279
  }
280
280
  function oe(e) {
281
281
  return pe(e, S, n);
@@ -285,7 +285,7 @@ var pn = ["aria-label"], mn = {
285
285
  }
286
286
  function se(e) {
287
287
  if (i.previewMode || U(e)) return;
288
- let t = w.savedBlocks;
288
+ let t = T.savedBlocks;
289
289
  if (t?.isPicking.value) {
290
290
  t.togglePick(e);
291
291
  return;
@@ -293,9 +293,9 @@ var pn = ["aria-label"], mn = {
293
293
  a("select-block", e);
294
294
  }
295
295
  function ce(e) {
296
- return w.savedBlocks?.isPicked(e) ?? !1;
296
+ return T.savedBlocks?.isPicked(e) ?? !1;
297
297
  }
298
- let me = v(() => w.savedBlocks?.isPicking.value === !0);
298
+ let me = v(() => T.savedBlocks?.isPicking.value === !0);
299
299
  function _e(e, t) {
300
300
  e.type === "custom" && h.updateBlock(e.id, {
301
301
  fieldValues: t.fieldValues,
@@ -304,39 +304,39 @@ var pn = ["aria-label"], mn = {
304
304
  }
305
305
  return (t, n) => (s(), y("div", {
306
306
  class: "tpl-canvas-stage tpl:relative tpl:flex tpl:justify-center tpl:rounded-lg",
307
- style: k({
307
+ style: _({
308
308
  width: `${z.value}px`,
309
309
  boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
310
310
  transition: x(Kt)
311
311
  })
312
- }, [D("div", {
312
+ }, [E("div", {
313
313
  class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
314
- style: k({
314
+ style: _({
315
315
  backgroundColor: e.content.settings.backgroundColor,
316
316
  ...e.darkMode ? { filter: "invert(1) hue-rotate(180deg)" } : {},
317
317
  transition: "filter 300ms ease"
318
318
  })
319
- }, null, 4), D("div", {
319
+ }, null, 4), E("div", {
320
320
  "data-testid": "canvas-wrapper",
321
321
  role: "region",
322
322
  "aria-label": x(l).landmarks.canvas,
323
323
  class: "tpl-canvas-wrapper tpl:relative",
324
- style: k({
324
+ style: _({
325
325
  width: `${R.value}px`,
326
326
  transition: x(Kt)
327
327
  })
328
- }, [D("div", {
329
- class: E(["tpl-canvas tpl:relative tpl:rounded-lg", {
328
+ }, [E("div", {
329
+ class: O(["tpl-canvas tpl:relative tpl:rounded-lg", {
330
330
  "tpl-canvas--dark-mode": e.darkMode,
331
331
  "tpl-preview-mode": e.previewMode
332
332
  }]),
333
- style: k(B.value),
333
+ style: _(B.value),
334
334
  onClick: ae
335
- }, [x(N)?.isInitialResolve.value ? (s(), y("div", mn, [D("span", hn, _(x(l).previewResolution.resolving), 1), (s(), y(j, null, u(3, (e) => D("div", {
335
+ }, [x(M)?.isInitialResolve.value ? (s(), y("div", mn, [E("span", hn, C(x(l).previewResolution.resolving), 1), (s(), y(A, null, u(3, (e) => E("div", {
336
336
  key: e,
337
337
  "aria-hidden": "true",
338
338
  class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
339
- })), 64))])) : x(N)?.hasFailed.value ? (s(), y("p", gn, _(x(l).previewResolution.failed), 1)) : b("", !0), r(P(x(A), {
339
+ })), 64))])) : x(M)?.hasFailed.value ? (s(), y("p", gn, C(x(l).previewResolution.failed), 1)) : b("", !0), r(N(x(k), {
340
340
  modelValue: L.value,
341
341
  "onUpdate:modelValue": n[2] ||= (e) => L.value = e,
342
342
  group: "blocks",
@@ -349,7 +349,7 @@ var pn = ["aria-label"], mn = {
349
349
  disabled: e.previewMode,
350
350
  draggable: ".tpl-block-item",
351
351
  "force-fallback": !0,
352
- class: E([
352
+ class: O([
353
353
  "tpl-canvas-blocks",
354
354
  V.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
355
355
  V.value && te.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
@@ -360,51 +360,51 @@ var pn = ["aria-label"], mn = {
360
360
  onDrop: ie
361
361
  }, {
362
362
  default: f(() => [V.value ? (s(), y("div", _n, [
363
- D("div", vn, [P(x(gt), {
363
+ E("div", vn, [N(x(gt), {
364
364
  size: 48,
365
365
  "stroke-width": 1
366
366
  })]),
367
- D("p", yn, _(x(l).canvas.noBlocks), 1),
368
- D("p", bn, _(x(l).canvas.dragHint), 1),
369
- F.value && x(p) ? (s(), y("p", xn, [
370
- M(_(x(l).canvas.aiHintChat) + " ", 1),
371
- D("button", {
367
+ E("p", yn, C(x(l).canvas.noBlocks), 1),
368
+ E("p", bn, C(x(l).canvas.dragHint), 1),
369
+ P.value && x(p) ? (s(), y("p", xn, [
370
+ j(C(x(l).canvas.aiHintChat) + " ", 1),
371
+ E("button", {
372
372
  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)]",
373
373
  onClick: n[0] ||= (e) => a("open-ai-chat")
374
- }, [P(x(st), {
374
+ }, [N(x(st), {
375
375
  size: 14,
376
376
  "stroke-width": 2
377
- }), M(" " + _(x(p).aiMenu.aiAssistant), 1)]),
378
- M(" " + _(x(l).canvas.aiHintChatSuffix), 1)
377
+ }), j(" " + C(x(p).aiMenu.aiAssistant), 1)]),
378
+ j(" " + C(x(l).canvas.aiHintChatSuffix), 1)
379
379
  ])) : b("", !0),
380
- I.value && x(p) ? (s(), y("p", Sn, [
381
- M(_(x(l).canvas.aiHintDesign) + " ", 1),
382
- D("button", {
380
+ F.value && x(p) ? (s(), y("p", Sn, [
381
+ j(C(x(l).canvas.aiHintDesign) + " ", 1),
382
+ E("button", {
383
383
  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)]",
384
384
  onClick: n[1] ||= (e) => a("open-design-reference")
385
- }, [P(x(Nt), {
385
+ }, [N(x(Nt), {
386
386
  size: 14,
387
387
  "stroke-width": 2
388
- }), M(" " + _(x(p).aiMenu.designToTemplate), 1)]),
389
- M(" " + _(x(l).canvas.aiHintDesignSuffix), 1)
388
+ }), j(" " + C(x(p).aiMenu.designToTemplate), 1)]),
389
+ j(" " + C(x(l).canvas.aiHintDesignSuffix), 1)
390
390
  ])) : b("", !0)
391
- ])) : b("", !0), (s(!0), y(j, null, u(L.value, (t) => r((s(), y("div", {
391
+ ])) : b("", !0), (s(!0), y(A, null, u(L.value, (t) => r((s(), y("div", {
392
392
  key: t.id,
393
393
  class: "tpl-block-item"
394
- }, [D("div", Cn, [U(t.id) ? (s(), y("div", {
394
+ }, [E("div", Cn, [U(t.id) ? (s(), y("div", {
395
395
  key: 0,
396
396
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
397
- style: k({
397
+ style: _({
398
398
  outline: `2px solid ${U(t.id).color}`,
399
399
  outlineOffset: "-1px"
400
400
  })
401
- }, [D("span", {
401
+ }, [E("span", {
402
402
  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",
403
- style: k({
403
+ style: _({
404
404
  backgroundColor: U(t.id).color,
405
405
  color: x(qt)(U(t.id).color)
406
406
  })
407
- }, [D("span", wn, _(U(t.id).name.charAt(0)), 1), M(" " + _(U(t.id).name), 1)], 4)], 4)) : b("", !0), P(ye, {
407
+ }, [E("span", wn, C(U(t.id).name.charAt(0)), 1), j(" " + C(U(t.id).name), 1)], 4)], 4)) : b("", !0), N(ye, {
408
408
  block: t,
409
409
  "is-selected": !e.previewMode && !me.value && e.selectedBlockId === t.id && !U(t.id),
410
410
  picked: ce(t.id),
@@ -412,7 +412,7 @@ var pn = ["aria-label"], mn = {
412
412
  "preview-mode": e.previewMode,
413
413
  onSelect: (e) => se(t.id)
414
414
  }, {
415
- default: f(() => [(s(), C(o(oe(t)), {
415
+ default: f(() => [(s(), w(o(oe(t)), {
416
416
  block: t,
417
417
  viewport: e.viewport,
418
418
  onFetchData: (e) => _e(t, e),
@@ -431,15 +431,15 @@ var pn = ["aria-label"], mn = {
431
431
  "viewport",
432
432
  "preview-mode",
433
433
  "onSelect"
434
- ])])])), [[O, x(ee) === !1 || !x(g)?.isHidden(t.id)]])), 128))]),
434
+ ])])])), [[D, x(I) === !1 || !x(g)?.isHidden(t.id)]])), 128))]),
435
435
  _: 1
436
436
  }, 8, [
437
437
  "modelValue",
438
438
  "disabled",
439
439
  "class"
440
- ]), [[O, !x(N)?.isInitialResolve.value]])], 6)], 12, pn)], 4));
440
+ ]), [[D, !x(M)?.isInitialResolve.value]])], 6)], 12, pn)], 4));
441
441
  }
442
- }), [["__scopeId", "data-v-0af1c100"]]), En = N({
442
+ }), [["__scopeId", "data-v-0af1c100"]]), En = M({
443
443
  name: "CustomBlockStylesheets",
444
444
  setup() {
445
445
  let t = d(Je, null);
@@ -485,20 +485,20 @@ var On = ["aria-label"], kn = {
485
485
  ], Nn = { 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" }, Pn = {
486
486
  key: 0,
487
487
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
488
- }, Fn = /* @__PURE__ */ N({
488
+ }, Fn = /* @__PURE__ */ M({
489
489
  __name: "Sidebar",
490
490
  setup(e) {
491
491
  let { t, format: n } = W(), r = d(Ze, []), i = d(Le, void 0), a = d(Xe, void 0), c = d(Ge, null), l = d(Ue, {}), p = v(() => l.savedBlocks?.isAvailable.value === !0), h = m(!1), g = m(!1);
492
492
  function S() {
493
493
  g.value || (h.value = !1);
494
494
  }
495
- function w() {
495
+ function T() {
496
496
  g.value = !0;
497
497
  }
498
- function T() {
498
+ function ee() {
499
499
  g.value = !1, h.value = !1;
500
500
  }
501
- let E = [
501
+ let D = [
502
502
  "section",
503
503
  "image",
504
504
  "title",
@@ -512,7 +512,7 @@ var On = ["aria-label"], kn = {
512
512
  "spacer",
513
513
  "html"
514
514
  ], O = v(() => {
515
- let e = E.map((e) => ({
515
+ let e = D.map((e) => ({
516
516
  type: e,
517
517
  label: se(e, t)
518
518
  }));
@@ -520,21 +520,21 @@ var On = ["aria-label"], kn = {
520
520
  type: "countdown",
521
521
  label: se("countdown", t)
522
522
  }), e;
523
- }), M = v(() => r.map((e) => ({
523
+ }), j = v(() => r.map((e) => ({
524
524
  type: `custom:${e.type}`,
525
525
  label: e.name,
526
526
  isCustom: !0,
527
527
  icon: e.icon
528
- }))), N = v(() => [...O.value, ...M.value]), I = v(() => Dn(N.value, i)), L = v(() => I.value.items), R = /* @__PURE__ */ new Set();
529
- F(() => I.value.unknown, (e) => {
530
- for (let t of e) R.has(t) || (R.add(t), _e.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.`));
528
+ }))), M = v(() => [...O.value, ...j.value]), F = v(() => Dn(M.value, i)), I = v(() => F.value.items), z = /* @__PURE__ */ new Set();
529
+ P(() => F.value.unknown, (e) => {
530
+ for (let t of e) z.has(t) || (z.add(t), _e.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.`));
531
531
  }, { immediate: !0 });
532
532
  function B(e) {
533
533
  if (e.isCustom) {
534
534
  let t = e.type.replace("custom:", ""), n = r.find((e) => e.type === t);
535
- if (n) return ee(n);
535
+ if (n) return R(n);
536
536
  }
537
- return z(e.type, a);
537
+ return L(e.type, a);
538
538
  }
539
539
  function V(e) {
540
540
  if (!c) return;
@@ -547,7 +547,7 @@ var On = ["aria-label"], kn = {
547
547
  return (e, r) => (s(), y("aside", {
548
548
  "aria-label": x(t).sidebarNav.palette,
549
549
  class: "tpl-sidebar-rail tpl:absolute tpl:top-14 tpl:bottom-0 tpl:left-0 tpl:z-40 tpl:flex tpl:flex-col tpl:overflow-hidden",
550
- style: k({
550
+ style: _({
551
551
  width: h.value ? "200px" : "48px",
552
552
  backgroundColor: "var(--tpl-bg-elevated)",
553
553
  borderRight: "1px solid var(--tpl-border)",
@@ -558,18 +558,18 @@ var On = ["aria-label"], kn = {
558
558
  onMouseleave: S,
559
559
  onFocusin: r[2] ||= (e) => h.value = !0,
560
560
  onFocusout: r[3] ||= (e) => h.value = !1
561
- }, [p.value ? (s(), y("div", kn, [D("button", {
561
+ }, [p.value ? (s(), y("div", kn, [E("button", {
562
562
  type: "button",
563
563
  "aria-label": x(t).sidebarNav.browseSavedBlocks,
564
564
  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)]",
565
- style: k({ justifyContent: h.value ? "flex-start" : "center" }),
565
+ style: _({ justifyContent: h.value ? "flex-start" : "center" }),
566
566
  onClick: r[0] ||= (e) => x(l).savedBlocks?.openBrowser()
567
- }, [P(x(vt), {
567
+ }, [N(x(vt), {
568
568
  size: 20,
569
569
  "stroke-width": 1.5,
570
570
  class: "tpl:shrink-0"
571
- }), h.value ? (s(), y("span", jn, _(x(t).savedBlocks.title), 1)) : b("", !0)], 12, An)])) : b("", !0), P(x(A), {
572
- "model-value": L.value,
571
+ }), h.value ? (s(), y("span", jn, C(x(t).savedBlocks.title), 1)) : b("", !0)], 12, An)])) : b("", !0), N(x(k), {
572
+ "model-value": I.value,
573
573
  group: {
574
574
  name: "blocks",
575
575
  pull: "clone",
@@ -580,27 +580,27 @@ var On = ["aria-label"], kn = {
580
580
  animation: 150,
581
581
  "force-fallback": !0,
582
582
  class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
583
- onChoose: w,
584
- onEnd: T
583
+ onChoose: T,
584
+ onEnd: ee
585
585
  }, {
586
- default: f(() => [(s(!0), y(j, null, u(L.value, (e) => (s(), y("button", {
586
+ default: f(() => [(s(!0), y(A, null, u(I.value, (e) => (s(), y("button", {
587
587
  key: e.type,
588
588
  type: "button",
589
589
  "data-palette-type": e.type,
590
590
  "aria-label": x(n)(x(t).sidebarNav.insertBlock, { block: e.label }),
591
591
  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",
592
- style: k({ justifyContent: h.value ? "flex-start" : "center" }),
592
+ style: _({ justifyContent: h.value ? "flex-start" : "center" }),
593
593
  onClick: (t) => V(e),
594
594
  onKeydown: (t) => H(t, e)
595
- }, [D("div", Nn, [x(Jt)[e.type] ? (s(), C(o(x(Jt)[e.type]), {
595
+ }, [E("div", Nn, [x(Jt)[e.type] ? (s(), w(o(x(Jt)[e.type]), {
596
596
  key: 0,
597
597
  size: 20,
598
598
  "stroke-width": 1.5
599
- })) : e.isCustom ? (s(), C(ce, {
599
+ })) : e.isCustom ? (s(), w(ce, {
600
600
  key: 1,
601
601
  icon: e.icon,
602
602
  size: 20
603
- }, null, 8, ["icon"])) : b("", !0)]), h.value ? (s(), y("span", Pn, _(e.label), 1)) : b("", !0)], 44, Mn))), 128))]),
603
+ }, null, 8, ["icon"])) : b("", !0)]), h.value ? (s(), y("span", Pn, C(e.label), 1)) : b("", !0)], 44, Mn))), 128))]),
604
604
  _: 1
605
605
  }, 8, ["model-value"])], 44, On));
606
606
  }
@@ -749,7 +749,7 @@ function Hn(e) {
749
749
  }) : V(t, p) ? n.push({
750
750
  type: "logicMergeTag",
751
751
  value: t,
752
- keyword: R(t, p)
752
+ keyword: z(t, p)
753
753
  }) : n.push({
754
754
  type: "text",
755
755
  value: t
@@ -760,36 +760,36 @@ function Hn(e) {
760
760
  value: e.slice(a)
761
761
  }), n;
762
762
  }), T = v(() => w.value.some((e) => e.type === "mergeTag" || e.type === "logicMergeTag"));
763
- function E() {
763
+ function ee() {
764
764
  b.value = !0, l(() => {
765
765
  a.value?.focus();
766
766
  let e = t()?.length || 0;
767
767
  a.value?.setSelectionRange(e, e);
768
768
  });
769
769
  }
770
- function D() {
770
+ function E() {
771
771
  x || (b.value = !1);
772
772
  }
773
- function O(e) {
773
+ function D(e) {
774
774
  r(e.target.value), C.refresh();
775
775
  }
776
- function k(e) {
776
+ function O(e) {
777
777
  if (C.handleKeydown(e)) {
778
778
  e.preventDefault();
779
779
  return;
780
780
  }
781
- e.key === "Escape" && D();
781
+ e.key === "Escape" && E();
782
782
  }
783
- function A() {
783
+ function k() {
784
784
  C.refresh();
785
785
  }
786
- function j() {
787
- C.close(), D();
786
+ function A() {
787
+ C.close(), E();
788
788
  }
789
- function M() {
789
+ function j() {
790
790
  r("");
791
791
  }
792
- async function N() {
792
+ async function M() {
793
793
  let e = b.value && a.value ? a.value.selectionStart ?? t().length : t().length;
794
794
  x = !0;
795
795
  let n;
@@ -807,7 +807,7 @@ function Hn(e) {
807
807
  });
808
808
  }
809
809
  }
810
- async function P() {
810
+ async function N() {
811
811
  let e = a.value, n = e?.selectionStart ?? t().length, i = e?.selectionEnd ?? n;
812
812
  x = !0;
813
813
  let o;
@@ -830,15 +830,15 @@ function Hn(e) {
830
830
  canInsertLogicTag: g,
831
831
  isRequestingLogicTag: _,
832
832
  isEditing: b,
833
- startEditing: E,
834
- stopEditing: D,
835
- handleInput: O,
836
- handleKeydown: k,
837
- handleClick: A,
838
- handleBlur: j,
839
- clearValue: M,
840
- insertMergeTag: N,
841
- insertLogicTag: P,
833
+ startEditing: ee,
834
+ stopEditing: E,
835
+ handleInput: D,
836
+ handleKeydown: O,
837
+ handleClick: k,
838
+ handleBlur: A,
839
+ clearValue: j,
840
+ insertMergeTag: M,
841
+ insertLogicTag: N,
842
842
  autocompleteAvailable: C.available
843
843
  };
844
844
  }
@@ -847,7 +847,7 @@ function Hn(e) {
847
847
  var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip"], Kn = {
848
848
  key: 2,
849
849
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
850
- }, qn = ["aria-label", "title"], Jn = /* @__PURE__ */ N({
850
+ }, qn = ["aria-label", "title"], Jn = /* @__PURE__ */ M({
851
851
  __name: "MergeTagSegments",
852
852
  props: {
853
853
  segments: {},
@@ -864,10 +864,10 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
864
864
  role: "button",
865
865
  tabindex: "0",
866
866
  "aria-label": x(r).mergeTag.clickToEdit,
867
- class: E([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
867
+ class: O([e.displayClass, { "tpl-pulse-fill": e.pulse }]),
868
868
  onClick: i,
869
869
  onKeydown: [g(i, ["enter"]), g(S(i, ["prevent"]), ["space"])]
870
- }, [(s(!0), y(j, null, u(e.segments, (e, t) => (s(), y(j, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" ? (s(), y("span", {
870
+ }, [(s(!0), y(A, null, u(e.segments, (e, t) => (s(), y(A, { key: `${e.type}-${t}-${e.value}` }, [e.type === "mergeTag" ? (s(), y("span", {
871
871
  key: 0,
872
872
  class: "tpl-tooltip tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[0.9em] tpl:font-medium",
873
873
  "data-tooltip": e.value,
@@ -875,7 +875,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
875
875
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
876
876
  color: "var(--tpl-primary)"
877
877
  }
878
- }, _(e.label), 9, Wn)) : e.type === "logicMergeTag" ? (s(), y("span", {
878
+ }, C(e.label), 9, Wn)) : e.type === "logicMergeTag" ? (s(), y("span", {
879
879
  key: 1,
880
880
  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",
881
881
  "data-tooltip": e.value,
@@ -884,13 +884,13 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
884
884
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
885
885
  color: "var(--tpl-primary)"
886
886
  }
887
- }, _(e.keyword), 9, Gn)) : (s(), y("span", Kn, _(e.value), 1))], 64))), 128)), D("button", {
887
+ }, C(e.keyword), 9, Gn)) : (s(), y("span", Kn, C(e.value), 1))], 64))), 128)), E("button", {
888
888
  type: "button",
889
889
  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",
890
890
  "aria-label": x(r).mergeTag.remove,
891
891
  title: x(r).mergeTag.remove,
892
892
  onClick: a[0] ||= S((e) => n("clear"), ["stop"])
893
- }, [P(x(jt), {
893
+ }, [N(x(jt), {
894
894
  size: 12,
895
895
  "stroke-width": 2.5
896
896
  })], 8, qn)], 42, Un));
@@ -899,7 +899,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
899
899
  "aria-label",
900
900
  "title",
901
901
  "disabled"
902
- ], Xn = "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)]", Zn = /* @__PURE__ */ N({
902
+ ], Xn = "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)]", Zn = /* @__PURE__ */ M({
903
903
  __name: "MergeTagInsertButton",
904
904
  props: { disabled: { type: Boolean } },
905
905
  emits: ["insert"],
@@ -907,22 +907,22 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
907
907
  let { t } = W();
908
908
  return (n, r) => (s(), y("button", {
909
909
  type: "button",
910
- class: E([Xn, "tpl:mt-1.5"]),
910
+ class: O([Xn, "tpl:mt-1.5"]),
911
911
  "aria-label": x(t).mergeTag.insert,
912
912
  title: x(t).mergeTag.insert,
913
913
  disabled: e.disabled,
914
914
  onMousedown: r[0] ||= S(() => {}, ["prevent"]),
915
915
  onClick: r[1] ||= (e) => n.$emit("insert")
916
- }, [P(x(pt), {
916
+ }, [N(x(pt), {
917
917
  size: 12,
918
918
  "stroke-width": 2
919
- }), M(" " + _(x(t).mergeTag.insertShort), 1)], 42, Yn));
919
+ }), j(" " + C(x(t).mergeTag.insertShort), 1)], 42, Yn));
920
920
  }
921
921
  }), Qn = [
922
922
  "aria-label",
923
923
  "title",
924
924
  "disabled"
925
- ], $n = "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)]", er = /* @__PURE__ */ N({
925
+ ], $n = "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)]", er = /* @__PURE__ */ M({
926
926
  __name: "LogicTagInsertButton",
927
927
  props: { disabled: { type: Boolean } },
928
928
  emits: ["insert"],
@@ -930,17 +930,17 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
930
930
  let { t } = W();
931
931
  return (n, r) => (s(), y("button", {
932
932
  type: "button",
933
- class: E([$n, "tpl:mt-1.5"]),
933
+ class: O([$n, "tpl:mt-1.5"]),
934
934
  "aria-label": x(t).logicTag.insert,
935
935
  title: x(t).logicTag.insert,
936
936
  disabled: e.disabled,
937
937
  "data-testid": "field-insert-logic-button",
938
938
  onMousedown: r[0] ||= S(() => {}, ["prevent"]),
939
939
  onClick: r[1] ||= (e) => n.$emit("insert")
940
- }, [P(x(ht), {
940
+ }, [N(x(ht), {
941
941
  size: 12,
942
942
  "stroke-width": 2
943
- }), M(" " + _(x(t).logicTag.insertShort), 1)], 42, Qn));
943
+ }), j(" " + C(x(t).logicTag.insertShort), 1)], 42, Qn));
944
944
  }
945
945
  }), tr = { key: 0 }, nr = {
946
946
  key: 0,
@@ -952,7 +952,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
952
952
  ], ar = {
953
953
  key: 0,
954
954
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
955
- }, or = "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)]", sr = "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)]", cr = /* @__PURE__ */ N({
955
+ }, or = "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)]", sr = "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)]", cr = /* @__PURE__ */ M({
956
956
  __name: "MergeTagTextarea",
957
957
  props: {
958
958
  modelValue: {},
@@ -961,12 +961,12 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
961
961
  },
962
962
  emits: ["update:modelValue"],
963
963
  setup(e, { emit: t }) {
964
- let n = e, r = t, i = m(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: l, canInsertLogicTag: u, isRequestingLogicTag: d, isEditing: f, startEditing: p, handleInput: h, handleKeydown: g, handleClick: _, handleBlur: v, clearValue: S, insertMergeTag: w, insertLogicTag: T } = Hn({
964
+ let n = e, r = t, i = m(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: l, canInsertLogicTag: u, isRequestingLogicTag: d, isEditing: f, startEditing: p, handleInput: h, handleKeydown: g, handleClick: _, handleBlur: v, clearValue: S, insertMergeTag: C, insertLogicTag: T } = Hn({
965
965
  modelValue: () => n.modelValue,
966
966
  emit: (e) => r("update:modelValue", e),
967
967
  elementRef: i
968
968
  });
969
- return (t, n) => x(o) && !x(f) ? (s(), y("div", tr, [P(Jn, {
969
+ return (t, n) => x(o) && !x(f) ? (s(), y("div", tr, [N(Jn, {
970
970
  segments: x(a),
971
971
  "display-class": sr,
972
972
  onEdit: x(p),
@@ -975,18 +975,18 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
975
975
  "segments",
976
976
  "onEdit",
977
977
  "onClear"
978
- ]), x(c) || x(u) ? (s(), y("div", nr, [x(c) ? (s(), C(Zn, {
978
+ ]), x(c) || x(u) ? (s(), y("div", nr, [x(c) ? (s(), w(Zn, {
979
979
  key: 0,
980
980
  disabled: x(l),
981
- onInsert: x(w)
982
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(er, {
981
+ onInsert: x(C)
982
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), w(er, {
983
983
  key: 1,
984
984
  disabled: x(d),
985
985
  onInsert: x(T)
986
- }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", rr, [D("textarea", {
986
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", rr, [E("textarea", {
987
987
  ref_key: "textareaRef",
988
988
  ref: i,
989
- class: E(or),
989
+ class: O(or),
990
990
  value: e.modelValue,
991
991
  placeholder: e.placeholder,
992
992
  rows: e.rows,
@@ -994,17 +994,17 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
994
994
  onKeydown: n[1] ||= (...e) => x(g) && x(g)(...e),
995
995
  onClick: n[2] ||= (...e) => x(_) && x(_)(...e),
996
996
  onBlur: n[3] ||= (...e) => x(v) && x(v)(...e)
997
- }, null, 40, ir), x(c) || x(u) ? (s(), y("div", ar, [x(c) ? (s(), C(Zn, {
997
+ }, null, 40, ir), x(c) || x(u) ? (s(), y("div", ar, [x(c) ? (s(), w(Zn, {
998
998
  key: 0,
999
999
  disabled: x(l),
1000
- onInsert: x(w)
1001
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(er, {
1000
+ onInsert: x(C)
1001
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), w(er, {
1002
1002
  key: 1,
1003
1003
  disabled: x(d),
1004
1004
  onInsert: x(T)
1005
1005
  }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)]));
1006
1006
  }
1007
- }), lr = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, ur = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, dr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, fr = { class: "tpl:mb-3.5" }, pr = { 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)]" }, mr = ["onClick"], hr = { class: "tpl:flex tpl:items-stretch" }, gr = ["value"], _r = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, vr = { class: "tpl:mb-3.5" }, yr = { class: "tpl:mb-3.5" }, br = { class: "tpl:mb-3.5" }, xr = { class: "tpl:mb-3.5" }, Sr = ["value"], Cr = ["value"], wr = { 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 = ["value"], Er = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Dr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Or = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, kr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Ar = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, jr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Mr = { 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)]" }, Nr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Pr = { class: "tpl:mb-1 tpl:last:mb-0" }, Fr = { class: "tpl:mb-1 tpl:last:mb-0" }, Ir = { class: "tpl:mb-1 tpl:last:mb-0" }, Lr = 150, Rr = /* @__PURE__ */ N({
1007
+ }), lr = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, ur = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, dr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, fr = { class: "tpl:mb-3.5" }, pr = { 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)]" }, mr = ["onClick"], hr = { class: "tpl:flex tpl:items-stretch" }, gr = ["value"], _r = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, vr = { class: "tpl:mb-3.5" }, yr = { class: "tpl:mb-3.5" }, br = { class: "tpl:mb-3.5" }, xr = { class: "tpl:mb-3.5" }, Sr = ["value"], Cr = ["value"], wr = { 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 = ["value"], Er = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Dr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Or = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, kr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Ar = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, jr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Mr = { 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)]" }, Nr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Pr = { class: "tpl:mb-1 tpl:last:mb-0" }, Fr = { class: "tpl:mb-1 tpl:last:mb-0" }, Ir = { class: "tpl:mb-1 tpl:last:mb-0" }, Lr = 150, Rr = /* @__PURE__ */ M({
1008
1008
  __name: "TemplateSettings",
1009
1009
  props: { settings: {} },
1010
1010
  emits: ["update"],
@@ -1027,77 +1027,77 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1027
1027
  label: "800px"
1028
1028
  }
1029
1029
  ];
1030
- return (t, n) => (s(), y("aside", lr, [D("div", ur, [
1031
- D("div", { class: E(x(en)) }, [
1032
- D("div", dr, [P(x(Rt), {
1030
+ return (t, n) => (s(), y("aside", lr, [E("div", ur, [
1031
+ E("div", { class: O(x(en)) }, [
1032
+ E("div", dr, [N(x(Rt), {
1033
1033
  class: "tpl:text-[var(--tpl-text-muted)]",
1034
1034
  size: 14,
1035
1035
  "stroke-width": 2
1036
- }), D("span", null, _(x(i).templateSettings.layout), 1)]),
1037
- D("div", fr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.widthPreset), 3), D("div", pr, [(s(), y(j, null, u(l, (t) => D("button", {
1036
+ }), E("span", null, C(x(i).templateSettings.layout), 1)]),
1037
+ E("div", fr, [E("label", { class: O(x(q)) }, C(x(i).templateSettings.widthPreset), 3), E("div", pr, [(s(), y(A, null, u(l, (t) => E("button", {
1038
1038
  key: t.value,
1039
1039
  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)]",
1040
- style: k({
1040
+ style: _({
1041
1041
  backgroundColor: e.settings.width === t.value ? "var(--tpl-bg)" : "transparent",
1042
1042
  color: e.settings.width === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
1043
1043
  boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
1044
1044
  }),
1045
1045
  onClick: (e) => r("update", { width: t.value })
1046
- }, _(t.label), 13, mr)), 64))])]),
1047
- D("div", null, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.customWidth), 3), D("div", hr, [D("input", {
1046
+ }, C(t.label), 13, mr)), 64))])]),
1047
+ E("div", null, [E("label", { class: O(x(q)) }, C(x(i).templateSettings.customWidth), 3), E("div", hr, [E("input", {
1048
1048
  type: "number",
1049
- class: E(x(Y)),
1049
+ class: O(x(Y)),
1050
1050
  value: e.settings.width,
1051
1051
  min: "300",
1052
1052
  max: "900",
1053
1053
  onInput: n[0] ||= (e) => r("update", { width: Number(e.target.value) })
1054
- }, null, 42, gr), D("span", { class: E(x(J)) }, "px", 2)])])
1054
+ }, null, 42, gr), E("span", { class: O(x(J)) }, "px", 2)])])
1055
1055
  ], 2),
1056
- D("div", { class: E(x(en)) }, [
1057
- D("div", _r, [P(x(at), {
1056
+ E("div", { class: O(x(en)) }, [
1057
+ E("div", _r, [N(x(at), {
1058
1058
  class: "tpl:text-[var(--tpl-text-muted)]",
1059
1059
  size: 14,
1060
1060
  "stroke-width": 2
1061
- }), D("span", null, _(x(i).templateSettings.appearance), 1)]),
1062
- D("div", vr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.backgroundColor), 3), P(X, {
1061
+ }), E("span", null, C(x(i).templateSettings.appearance), 1)]),
1062
+ E("div", vr, [E("label", { class: O(x(q)) }, C(x(i).templateSettings.backgroundColor), 3), N(X, {
1063
1063
  "model-value": e.settings.backgroundColor,
1064
1064
  placeholder: x($t),
1065
1065
  "onUpdate:modelValue": n[1] ||= (e) => r("update", { backgroundColor: e })
1066
1066
  }, null, 8, ["model-value", "placeholder"])]),
1067
- D("div", yr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.textColor), 3), P(X, {
1067
+ E("div", yr, [E("label", { class: O(x(q)) }, C(x(i).templateSettings.textColor), 3), N(X, {
1068
1068
  "model-value": e.settings.textColor ?? "",
1069
1069
  "seed-color": "#1a1a1a",
1070
1070
  "onUpdate:modelValue": n[2] ||= (e) => r("update", { textColor: e })
1071
1071
  }, null, 8, ["model-value"])]),
1072
- D("div", br, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.linkColor), 3), P(X, {
1072
+ E("div", br, [E("label", { class: O(x(q)) }, C(x(i).templateSettings.linkColor), 3), N(X, {
1073
1073
  "model-value": e.settings.linkColor ?? "",
1074
1074
  "seed-color": "#0066cc",
1075
1075
  "onUpdate:modelValue": n[3] ||= (e) => r("update", { linkColor: e || void 0 })
1076
1076
  }, null, 8, ["model-value"])]),
1077
- D("div", xr, [P(Z, {
1077
+ E("div", xr, [N(Z, {
1078
1078
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1079
1079
  "model-value": e.settings.linkUnderline,
1080
1080
  label: x(i).templateSettings.linkUnderline,
1081
1081
  "onUpdate:modelValue": n[4] ||= (e) => r("update", { linkUnderline: e })
1082
1082
  }, null, 8, ["model-value", "label"])]),
1083
- D("div", null, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.fontFamily), 3), D("select", {
1084
- class: E(x(K)),
1083
+ E("div", null, [E("label", { class: O(x(q)) }, C(x(i).templateSettings.fontFamily), 3), E("select", {
1084
+ class: O(x(K)),
1085
1085
  value: c.value,
1086
1086
  onChange: n[5] ||= (e) => r("update", { fontFamily: e.target.value })
1087
- }, [(s(!0), y(j, null, u(o.value, (e) => (s(), y("option", {
1087
+ }, [(s(!0), y(A, null, u(o.value, (e) => (s(), y("option", {
1088
1088
  key: e.value,
1089
1089
  value: e.value
1090
- }, _(e.label), 9, Cr))), 128))], 42, Sr)])
1090
+ }, C(e.label), 9, Cr))), 128))], 42, Sr)])
1091
1091
  ], 2),
1092
- D("div", { class: E(x(en)) }, [D("div", wr, [P(x(bt), {
1092
+ E("div", { class: O(x(en)) }, [E("div", wr, [N(x(bt), {
1093
1093
  class: "tpl:text-[var(--tpl-text-muted)]",
1094
1094
  size: 14,
1095
1095
  "stroke-width": 2
1096
- }), D("span", null, _(x(i).templateSettings.language), 1)]), D("div", null, [
1097
- D("label", { class: E(x(q)) }, _(x(i).templateSettings.contentLocale), 3),
1098
- D("input", {
1096
+ }), E("span", null, C(x(i).templateSettings.language), 1)]), E("div", null, [
1097
+ E("label", { class: O(x(q)) }, C(x(i).templateSettings.contentLocale), 3),
1098
+ E("input", {
1099
1099
  type: "text",
1100
- class: E(x(K)),
1100
+ class: O(x(K)),
1101
1101
  value: e.settings.locale ?? "",
1102
1102
  placeholder: "en",
1103
1103
  spellcheck: "false",
@@ -1105,25 +1105,25 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1105
1105
  autocomplete: "off",
1106
1106
  onInput: n[6] ||= (e) => r("update", { locale: e.target.value.trim() || void 0 })
1107
1107
  }, null, 42, Tr),
1108
- D("p", Er, _(x(i).templateSettings.contentLocaleHint), 1)
1108
+ E("p", Er, C(x(i).templateSettings.contentLocaleHint), 1)
1109
1109
  ])], 2),
1110
- D("div", { class: E(x(en)) }, [D("div", Dr, [P(x(zt), {
1110
+ E("div", { class: O(x(en)) }, [E("div", Dr, [N(x(zt), {
1111
1111
  class: "tpl:text-[var(--tpl-text-muted)]",
1112
1112
  size: 14,
1113
1113
  "stroke-width": 2
1114
- }), D("span", null, _(x(i).templateSettings.preheaderText), 1)]), D("div", null, [P(cr, {
1114
+ }), E("span", null, C(x(i).templateSettings.preheaderText), 1)]), E("div", null, [N(cr, {
1115
1115
  "model-value": e.settings.preheaderText ?? "",
1116
1116
  placeholder: x(i).templateSettings.preheaderTextPlaceholder,
1117
1117
  rows: 2,
1118
1118
  "onUpdate:modelValue": n[7] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
1119
- }, null, 8, ["model-value", "placeholder"]), D("div", Or, [D("span", kr, _(x(i).templateSettings.preheaderTextHint), 1), D("span", Ar, _((e.settings.preheaderText ?? "").length) + "/" + _(Lr), 1)])])], 2),
1120
- D("div", jr, [D("div", Mr, [P(x(Ct), {
1119
+ }, null, 8, ["model-value", "placeholder"]), E("div", Or, [E("span", kr, C(x(i).templateSettings.preheaderTextHint), 1), E("span", Ar, C((e.settings.preheaderText ?? "").length) + "/" + C(Lr), 1)])])], 2),
1120
+ E("div", jr, [E("div", Mr, [N(x(Ct), {
1121
1121
  size: 14,
1122
1122
  "stroke-width": 2
1123
- }), D("span", null, _(x(i).templateSettings.tips), 1)]), D("ul", Nr, [
1124
- D("li", Pr, _(x(i).templateSettings.tip1), 1),
1125
- D("li", Fr, _(x(i).templateSettings.tip2), 1),
1126
- D("li", Ir, _(x(i).templateSettings.tip3), 1)
1123
+ }), E("span", null, C(x(i).templateSettings.tips), 1)]), E("ul", Nr, [
1124
+ E("li", Pr, C(x(i).templateSettings.tip1), 1),
1125
+ E("li", Fr, C(x(i).templateSettings.tip2), 1),
1126
+ E("li", Ir, C(x(i).templateSettings.tip3), 1)
1127
1127
  ])])
1128
1128
  ])]));
1129
1129
  }
@@ -1137,7 +1137,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1137
1137
  ], Ur = {
1138
1138
  key: 0,
1139
1139
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1140
- }, Wr = "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__ */ N({
1140
+ }, Wr = "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__ */ M({
1141
1141
  __name: "MergeTagInput",
1142
1142
  props: {
1143
1143
  modelValue: {},
@@ -1150,12 +1150,12 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1150
1150
  },
1151
1151
  emits: ["update:modelValue"],
1152
1152
  setup(e, { emit: t }) {
1153
- let n = e, r = t, i = m(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: l, canInsertLogicTag: u, isRequestingLogicTag: d, isEditing: f, startEditing: p, handleInput: h, handleKeydown: g, handleClick: _, handleBlur: v, clearValue: S, insertMergeTag: w, insertLogicTag: T } = Hn({
1153
+ let n = e, r = t, i = m(null), { segments: a, hasMergeTags: o, canRequestMergeTag: c, isRequestingMergeTag: l, canInsertLogicTag: u, isRequestingLogicTag: d, isEditing: f, startEditing: p, handleInput: h, handleKeydown: g, handleClick: _, handleBlur: v, clearValue: S, insertMergeTag: C, insertLogicTag: T } = Hn({
1154
1154
  modelValue: () => n.modelValue,
1155
1155
  emit: (e) => r("update:modelValue", e),
1156
1156
  elementRef: i
1157
1157
  });
1158
- return (t, n) => x(o) && !x(f) ? (s(), y("div", zr, [P(Jn, {
1158
+ return (t, n) => x(o) && !x(f) ? (s(), y("div", zr, [N(Jn, {
1159
1159
  segments: x(a),
1160
1160
  "display-class": Wr,
1161
1161
  pulse: e.pulse,
@@ -1166,30 +1166,30 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1166
1166
  "pulse",
1167
1167
  "onEdit",
1168
1168
  "onClear"
1169
- ]), x(c) || x(u) ? (s(), y("div", Br, [x(c) ? (s(), C(Zn, {
1169
+ ]), x(c) || x(u) ? (s(), y("div", Br, [x(c) ? (s(), w(Zn, {
1170
1170
  key: 0,
1171
1171
  disabled: x(l),
1172
- onInsert: x(w)
1173
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(er, {
1172
+ onInsert: x(C)
1173
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), w(er, {
1174
1174
  key: 1,
1175
1175
  disabled: x(d),
1176
1176
  onInsert: x(T)
1177
- }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Vr, [D("input", {
1177
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Vr, [E("input", {
1178
1178
  ref_key: "inputRef",
1179
1179
  ref: i,
1180
1180
  type: e.type,
1181
- class: E([x(K), { "tpl-pulse-fill": e.pulse }]),
1181
+ class: O([x(K), { "tpl-pulse-fill": e.pulse }]),
1182
1182
  value: e.modelValue,
1183
1183
  placeholder: e.placeholder,
1184
1184
  onInput: n[0] ||= (...e) => x(h) && x(h)(...e),
1185
1185
  onKeydown: n[1] ||= (...e) => x(g) && x(g)(...e),
1186
1186
  onClick: n[2] ||= (...e) => x(_) && x(_)(...e),
1187
1187
  onBlur: n[3] ||= (...e) => x(v) && x(v)(...e)
1188
- }, null, 42, Hr), x(c) || x(u) ? (s(), y("div", Ur, [x(c) ? (s(), C(Zn, {
1188
+ }, null, 42, Hr), x(c) || x(u) ? (s(), y("div", Ur, [x(c) ? (s(), w(Zn, {
1189
1189
  key: 0,
1190
1190
  disabled: x(l),
1191
- onInsert: x(w)
1192
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(er, {
1191
+ onInsert: x(C)
1192
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), w(er, {
1193
1193
  key: 1,
1194
1194
  disabled: x(d),
1195
1195
  onInsert: x(T)
@@ -1198,7 +1198,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1198
1198
  }), [["__scopeId", "data-v-d6563be6"]]), Gr = { class: "tpl:mb-3.5" }, Kr = ["value"], qr = { value: "" }, Jr = ["value"], Yr = { class: "tpl:mb-3.5" }, Xr = { class: "tpl:mb-3.5" }, Zr = { class: "tpl:mb-3.5" }, Qr = { class: "tpl:mb-3.5" }, $r = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, ei = { class: "tpl:mb-3.5" }, ti = { class: "tpl:flex tpl:items-stretch" }, ni = ["value"], ri = { class: "tpl:mb-3.5" }, ii = { class: "tpl:flex tpl:items-stretch" }, ai = ["value"], oi = { class: "tpl:mb-3.5" }, si = ["value"], ci = { value: "auto" }, li = { value: "full" }, ui = { value: "custom" }, di = {
1199
1199
  key: 0,
1200
1200
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1201
- }, fi = ["value"], pi = 200, mi = /* @__PURE__ */ N({
1201
+ }, fi = ["value"], pi = { class: "tpl:mb-3.5" }, mi = 200, hi = /* @__PURE__ */ M({
1202
1202
  __name: "ButtonToolbar",
1203
1203
  props: {
1204
1204
  block: {},
@@ -1216,7 +1216,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1216
1216
  return;
1217
1217
  }
1218
1218
  if (e === "custom") {
1219
- o("width", typeof n.block.width == "number" ? n.block.width : pi);
1219
+ o("width", typeof n.block.width == "number" ? n.block.width : mi);
1220
1220
  return;
1221
1221
  }
1222
1222
  o("width", void 0);
@@ -1225,29 +1225,29 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1225
1225
  let t = Number(e);
1226
1226
  !Number.isFinite(t) || t <= 0 || o("width", t);
1227
1227
  }
1228
- return (t, n) => (s(), y(j, null, [
1229
- D("div", Gr, [D("label", { class: E(x(q)) }, _(x(i).button.fontFamily), 3), D("select", {
1230
- class: E(x(K)),
1228
+ return (t, n) => (s(), y(A, null, [
1229
+ E("div", Gr, [E("label", { class: O(x(q)) }, C(x(i).button.fontFamily), 3), E("select", {
1230
+ class: O(x(K)),
1231
1231
  value: e.block.fontFamily || "",
1232
1232
  onChange: n[0] ||= (e) => o("fontFamily", e.target.value || void 0)
1233
- }, [D("option", qr, _(x(i).button.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
1233
+ }, [E("option", qr, C(x(i).button.inheritFont), 1), (s(!0), y(A, null, u(e.fontFamilies, (e) => (s(), y("option", {
1234
1234
  key: e.value,
1235
1235
  value: e.value
1236
- }, _(e.label), 9, Jr))), 128))], 42, Kr)]),
1237
- D("div", Yr, [D("label", { class: E(x(q)) }, _(x(i).button.text), 3), P($, {
1236
+ }, C(e.label), 9, Jr))), 128))], 42, Kr)]),
1237
+ E("div", Yr, [E("label", { class: O(x(q)) }, C(x(i).button.text), 3), N($, {
1238
1238
  "model-value": e.block.text,
1239
1239
  type: "text",
1240
1240
  "onUpdate:modelValue": n[1] ||= (e) => o("text", e)
1241
1241
  }, null, 8, ["model-value"])]),
1242
- D("div", Xr, [
1243
- D("label", { class: E(x(q)) }, _(x(i).button.url), 3),
1244
- P($, {
1242
+ E("div", Xr, [
1243
+ E("label", { class: O(x(q)) }, C(x(i).button.url), 3),
1244
+ N($, {
1245
1245
  "model-value": e.block.url,
1246
1246
  type: "url",
1247
1247
  placeholder: x(i).button.urlPlaceholder,
1248
1248
  "onUpdate:modelValue": n[2] ||= (e) => o("url", e)
1249
1249
  }, null, 8, ["model-value", "placeholder"]),
1250
- e.block.url ? (s(), C(Z, {
1250
+ e.block.url ? (s(), w(Z, {
1251
1251
  key: 0,
1252
1252
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1253
1253
  "model-value": e.block.openInNewTab ?? !1,
@@ -1255,51 +1255,69 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1255
1255
  "onUpdate:modelValue": n[3] ||= (e) => o("openInNewTab", e)
1256
1256
  }, null, 8, ["model-value", "label"])) : b("", !0)
1257
1257
  ]),
1258
- D("div", Zr, [D("label", { class: E(x(q)) }, _(x(i).button.background), 3), P(X, {
1258
+ E("div", Zr, [E("label", { class: O(x(q)) }, C(x(i).button.background), 3), N(X, {
1259
1259
  "model-value": e.block.backgroundColor,
1260
1260
  "onUpdate:modelValue": n[4] ||= (e) => o("backgroundColor", e)
1261
1261
  }, null, 8, ["model-value"])]),
1262
- D("div", Qr, [D("label", { class: E(x(q)) }, _(x(i).button.textColor), 3), P(X, {
1262
+ E("div", Qr, [E("label", { class: O(x(q)) }, C(x(i).button.textColor), 3), N(X, {
1263
1263
  "model-value": e.block.textColor,
1264
1264
  "onUpdate:modelValue": n[5] ||= (e) => o("textColor", e)
1265
1265
  }, null, 8, ["model-value"])]),
1266
- D("div", $r, [D("div", ei, [D("label", { class: E(x(q)) }, _(x(i).button.borderRadius), 3), D("div", ti, [D("input", {
1266
+ E("div", $r, [E("div", ei, [E("label", { class: O(x(q)) }, C(x(i).button.borderRadius), 3), E("div", ti, [E("input", {
1267
1267
  type: "number",
1268
- class: E(x(Y)),
1268
+ class: O(x(Y)),
1269
1269
  value: e.block.borderRadius,
1270
1270
  min: "0",
1271
1271
  max: "50",
1272
1272
  onInput: n[6] ||= (e) => o("borderRadius", Number(e.target.value))
1273
- }, null, 42, ni), D("span", { class: E(x(J)) }, "px", 2)])]), D("div", ri, [D("label", { class: E(x(q)) }, _(x(i).button.fontSize), 3), D("div", ii, [D("input", {
1273
+ }, null, 42, ni), E("span", { class: O(x(J)) }, "px", 2)])]), E("div", ri, [E("label", { class: O(x(q)) }, C(x(i).button.fontSize), 3), E("div", ii, [E("input", {
1274
1274
  type: "number",
1275
- class: E(x(Y)),
1275
+ class: O(x(Y)),
1276
1276
  value: e.block.fontSize,
1277
1277
  min: "10",
1278
1278
  max: "36",
1279
1279
  onInput: n[7] ||= (e) => o("fontSize", Number(e.target.value))
1280
- }, null, 42, ai), D("span", { class: E(x(J)) }, "px", 2)])])]),
1281
- D("div", oi, [
1282
- D("label", { class: E(x(q)) }, _(x(i).button.width), 3),
1283
- D("select", {
1284
- class: E(x(K)),
1280
+ }, null, 42, ai), E("span", { class: O(x(J)) }, "px", 2)])])]),
1281
+ E("div", oi, [
1282
+ E("label", { class: O(x(q)) }, C(x(i).button.width), 3),
1283
+ E("select", {
1284
+ class: O(x(K)),
1285
1285
  value: a.value,
1286
1286
  onChange: n[8] ||= (e) => c(e.target.value)
1287
1287
  }, [
1288
- D("option", ci, _(x(i).button.widthAuto), 1),
1289
- D("option", li, _(x(i).button.fullWidth), 1),
1290
- D("option", ui, _(x(i).button.widthCustom), 1)
1288
+ E("option", ci, C(x(i).button.widthAuto), 1),
1289
+ E("option", li, C(x(i).button.fullWidth), 1),
1290
+ E("option", ui, C(x(i).button.widthCustom), 1)
1291
1291
  ], 42, si),
1292
- a.value === "custom" ? (s(), y("div", di, [D("input", {
1292
+ a.value === "custom" ? (s(), y("div", di, [E("input", {
1293
1293
  type: "number",
1294
- class: E(x(Y)),
1295
- value: typeof e.block.width == "number" ? e.block.width : pi,
1294
+ class: O(x(Y)),
1295
+ value: typeof e.block.width == "number" ? e.block.width : mi,
1296
1296
  min: "20",
1297
1297
  onInput: n[9] ||= (e) => l(e.target.value)
1298
- }, null, 42, fi), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
1299
- ])
1298
+ }, null, 42, fi), E("span", { class: O(x(J)) }, "px", 2)])) : b("", !0)
1299
+ ]),
1300
+ E("div", pi, [E("label", { class: O(x(q)) }, C(x(i).title.align), 3), N(rn, {
1301
+ options: [
1302
+ {
1303
+ value: "left",
1304
+ label: x(i).title.alignLeft
1305
+ },
1306
+ {
1307
+ value: "center",
1308
+ label: x(i).title.alignCenter
1309
+ },
1310
+ {
1311
+ value: "right",
1312
+ label: x(i).title.alignRight
1313
+ }
1314
+ ],
1315
+ "model-value": e.block.align ?? "center",
1316
+ "onUpdate:modelValue": n[10] ||= (e) => o("align", e)
1317
+ }, null, 8, ["options", "model-value"])])
1300
1318
  ], 64));
1301
1319
  }
1302
- }), hi = { class: "spacing-control" }, gi = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, _i = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, vi = { class: "tpl:flex tpl:items-center" }, yi = ["aria-label"], bi = ["value", "aria-label"], xi = ["aria-label"], Si = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ci = { class: "tpl:flex tpl:items-center" }, wi = ["aria-label"], Ti = ["value", "aria-label"], Ei = ["aria-label"], Di = ["aria-label", "title"], Oi = { class: "tpl:flex tpl:items-center" }, ki = ["aria-label"], Ai = ["value", "aria-label"], ji = ["aria-label"], Mi = { class: "tpl:flex tpl:items-center" }, Ni = ["aria-label"], Pi = ["value", "aria-label"], Fi = ["aria-label"], Ii = "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)]", Li = "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)]", Ri = /*#__PURE__*/ Vt(/* @__PURE__ */ N({
1320
+ }), gi = { class: "spacing-control" }, _i = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vi = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, yi = { class: "tpl:flex tpl:items-center" }, bi = ["aria-label"], xi = ["value", "aria-label"], Si = ["aria-label"], Ci = { class: "tpl:flex tpl:items-center tpl:gap-2" }, wi = { class: "tpl:flex tpl:items-center" }, Ti = ["aria-label"], Ei = ["value", "aria-label"], Di = ["aria-label"], Oi = ["aria-label", "title"], ki = { class: "tpl:flex tpl:items-center" }, Ai = ["aria-label"], ji = ["value", "aria-label"], Mi = ["aria-label"], Ni = { class: "tpl:flex tpl:items-center" }, Pi = ["aria-label"], Fi = ["value", "aria-label"], Ii = ["aria-label"], Li = "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)]", Ri = "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)]", zi = /*#__PURE__*/ Vt(/* @__PURE__ */ M({
1303
1321
  __name: "SpacingControl",
1304
1322
  props: {
1305
1323
  modelValue: {},
@@ -1308,7 +1326,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1308
1326
  emits: ["update:modelValue"],
1309
1327
  setup(e, { emit: t }) {
1310
1328
  let n = e, r = t, { t: i } = W(), a = v(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), o = m(a.value);
1311
- F(a, (e) => {
1329
+ P(a, (e) => {
1312
1330
  !e && o.value && (o.value = !1);
1313
1331
  });
1314
1332
  function c(e, t) {
@@ -1346,130 +1364,130 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1346
1364
  });
1347
1365
  }
1348
1366
  }
1349
- return (t, n) => (s(), y("div", hi, [D("label", gi, _(e.label), 1), D("div", _i, [
1350
- D("div", vi, [
1351
- D("button", {
1367
+ return (t, n) => (s(), y("div", gi, [E("label", _i, C(e.label), 1), E("div", vi, [
1368
+ E("div", yi, [
1369
+ E("button", {
1352
1370
  "aria-label": x(i).spacingControl.decreaseTop,
1353
- class: E([Ii, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1371
+ class: O([Li, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1354
1372
  onClick: n[0] ||= (e) => c("top", -1)
1355
- }, [P(x(wt), {
1373
+ }, [N(x(wt), {
1356
1374
  size: 12,
1357
1375
  "stroke-width": 2
1358
- })], 10, yi),
1359
- D("input", {
1376
+ })], 10, bi),
1377
+ E("input", {
1360
1378
  type: "number",
1361
- class: E(Li),
1379
+ class: O(Ri),
1362
1380
  value: e.modelValue.top,
1363
1381
  "aria-label": x(i).spacingControl.top,
1364
1382
  min: "0",
1365
1383
  onInput: n[1] ||= (e) => l("top", Number(e.target.value))
1366
- }, null, 40, bi),
1367
- D("button", {
1384
+ }, null, 40, xi),
1385
+ E("button", {
1368
1386
  "aria-label": x(i).spacingControl.increaseTop,
1369
- class: E([Ii, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1387
+ class: O([Li, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1370
1388
  onClick: n[2] ||= (e) => c("top", 1)
1371
- }, [P(x(G), {
1389
+ }, [N(x(G), {
1372
1390
  size: 12,
1373
1391
  "stroke-width": 2
1374
- })], 10, xi)
1392
+ })], 10, Si)
1375
1393
  ]),
1376
- D("div", Si, [
1377
- D("div", Ci, [
1378
- D("button", {
1394
+ E("div", Ci, [
1395
+ E("div", wi, [
1396
+ E("button", {
1379
1397
  "aria-label": x(i).spacingControl.decreaseLeft,
1380
- class: E([Ii, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1398
+ class: O([Li, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1381
1399
  onClick: n[3] ||= (e) => c("left", -1)
1382
- }, [P(x(wt), {
1400
+ }, [N(x(wt), {
1383
1401
  size: 12,
1384
1402
  "stroke-width": 2
1385
- })], 10, wi),
1386
- D("input", {
1403
+ })], 10, Ti),
1404
+ E("input", {
1387
1405
  type: "number",
1388
- class: E(Li),
1406
+ class: O(Ri),
1389
1407
  value: e.modelValue.left,
1390
1408
  "aria-label": x(i).spacingControl.left,
1391
1409
  min: "0",
1392
1410
  onInput: n[4] ||= (e) => l("left", Number(e.target.value))
1393
- }, null, 40, Ti),
1394
- D("button", {
1411
+ }, null, 40, Ei),
1412
+ E("button", {
1395
1413
  "aria-label": x(i).spacingControl.increaseLeft,
1396
- class: E([Ii, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1414
+ class: O([Li, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1397
1415
  onClick: n[5] ||= (e) => c("left", 1)
1398
- }, [P(x(G), {
1416
+ }, [N(x(G), {
1399
1417
  size: 12,
1400
1418
  "stroke-width": 2
1401
- })], 10, Ei)
1419
+ })], 10, Di)
1402
1420
  ]),
1403
- D("button", {
1404
- class: E(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", o.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
1421
+ E("button", {
1422
+ class: O(["tpl:flex tpl:h-8 tpl:w-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", o.value ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)]"]),
1405
1423
  "aria-label": o.value ? x(i).spacingControl.unlock : x(i).spacingControl.lockAll,
1406
1424
  title: o.value ? x(i).spacingControl.unlock : x(i).spacingControl.lockAll,
1407
1425
  onClick: u
1408
- }, [o.value ? (s(), C(x(Mt), {
1426
+ }, [o.value ? (s(), w(x(Mt), {
1409
1427
  key: 0,
1410
1428
  size: 14,
1411
1429
  "stroke-width": 2
1412
- })) : (s(), C(x(Ft), {
1430
+ })) : (s(), w(x(Ft), {
1413
1431
  key: 1,
1414
1432
  size: 14,
1415
1433
  "stroke-width": 2
1416
- }))], 10, Di),
1417
- D("div", Oi, [
1418
- D("button", {
1434
+ }))], 10, Oi),
1435
+ E("div", ki, [
1436
+ E("button", {
1419
1437
  "aria-label": x(i).spacingControl.decreaseRight,
1420
- class: E([Ii, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1438
+ class: O([Li, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1421
1439
  onClick: n[6] ||= (e) => c("right", -1)
1422
- }, [P(x(wt), {
1440
+ }, [N(x(wt), {
1423
1441
  size: 12,
1424
1442
  "stroke-width": 2
1425
- })], 10, ki),
1426
- D("input", {
1443
+ })], 10, Ai),
1444
+ E("input", {
1427
1445
  type: "number",
1428
- class: E(Li),
1446
+ class: O(Ri),
1429
1447
  value: e.modelValue.right,
1430
1448
  "aria-label": x(i).spacingControl.right,
1431
1449
  min: "0",
1432
1450
  onInput: n[7] ||= (e) => l("right", Number(e.target.value))
1433
- }, null, 40, Ai),
1434
- D("button", {
1451
+ }, null, 40, ji),
1452
+ E("button", {
1435
1453
  "aria-label": x(i).spacingControl.increaseRight,
1436
- class: E([Ii, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1454
+ class: O([Li, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1437
1455
  onClick: n[8] ||= (e) => c("right", 1)
1438
- }, [P(x(G), {
1456
+ }, [N(x(G), {
1439
1457
  size: 12,
1440
1458
  "stroke-width": 2
1441
- })], 10, ji)
1459
+ })], 10, Mi)
1442
1460
  ])
1443
1461
  ]),
1444
- D("div", Mi, [
1445
- D("button", {
1462
+ E("div", Ni, [
1463
+ E("button", {
1446
1464
  "aria-label": x(i).spacingControl.decreaseBottom,
1447
- class: E([Ii, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1465
+ class: O([Li, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1448
1466
  onClick: n[9] ||= (e) => c("bottom", -1)
1449
- }, [P(x(wt), {
1467
+ }, [N(x(wt), {
1450
1468
  size: 12,
1451
1469
  "stroke-width": 2
1452
- })], 10, Ni),
1453
- D("input", {
1470
+ })], 10, Pi),
1471
+ E("input", {
1454
1472
  type: "number",
1455
- class: E(Li),
1473
+ class: O(Ri),
1456
1474
  value: e.modelValue.bottom,
1457
1475
  "aria-label": x(i).spacingControl.bottom,
1458
1476
  min: "0",
1459
1477
  onInput: n[10] ||= (e) => l("bottom", Number(e.target.value))
1460
- }, null, 40, Pi),
1461
- D("button", {
1478
+ }, null, 40, Fi),
1479
+ E("button", {
1462
1480
  "aria-label": x(i).spacingControl.increaseBottom,
1463
- class: E([Ii, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1481
+ class: O([Li, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1464
1482
  onClick: n[11] ||= (e) => c("bottom", 1)
1465
- }, [P(x(G), {
1483
+ }, [N(x(G), {
1466
1484
  size: 12,
1467
1485
  "stroke-width": 2
1468
- })], 10, Fi)
1486
+ })], 10, Ii)
1469
1487
  ])
1470
1488
  ])]));
1471
1489
  }
1472
- }), [["__scopeId", "data-v-9a9c8a07"]]), zi = ["data-testid"], Bi = { class: "tpl:mt-3" }, Vi = /* @__PURE__ */ N({
1490
+ }), [["__scopeId", "data-v-9a9c8a07"]]), Bi = ["data-testid"], Vi = { class: "tpl:mt-3" }, Hi = /* @__PURE__ */ M({
1473
1491
  __name: "CollapsibleSection",
1474
1492
  props: {
1475
1493
  title: {},
@@ -1479,30 +1497,30 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1479
1497
  },
1480
1498
  emits: ["toggle"],
1481
1499
  setup(e) {
1482
- return (n, i) => (s(), y("div", { class: E(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [D("button", {
1500
+ return (n, i) => (s(), y("div", { class: O(["tpl:py-3", e.noBorder ? "" : "tpl:border-t tpl:border-[var(--tpl-border)]"]) }, [E("button", {
1483
1501
  type: "button",
1484
1502
  "data-testid": e.headerTestId,
1485
1503
  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)]",
1486
1504
  onClick: i[0] ||= (e) => n.$emit("toggle")
1487
- }, [P(x(lt), {
1488
- class: E(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1505
+ }, [N(x(lt), {
1506
+ class: O(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1489
1507
  size: 12,
1490
1508
  "stroke-width": 2
1491
- }, null, 8, ["class"]), D("span", null, _(e.title), 1)], 8, zi), r(D("div", Bi, [t(n.$slots, "default")], 512), [[O, e.open]])], 2));
1509
+ }, null, 8, ["class"]), E("span", null, C(e.title), 1)], 8, Bi), r(E("div", Vi, [t(n.$slots, "default")], 512), [[D, e.open]])], 2));
1492
1510
  }
1493
- }), Hi = { class: "tpl:space-y-2" }, Ui = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Wi = { class: "tpl:space-y-2" }, Gi = ["value"], Ki = { value: "" }, qi = ["label"], Ji = ["value"], Yi = ["value"], Xi = {
1511
+ }), Ui = { class: "tpl:space-y-2" }, Wi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Gi = { class: "tpl:space-y-2" }, Ki = ["value"], qi = { value: "" }, Ji = ["label"], Yi = ["value"], Xi = ["value"], Zi = {
1494
1512
  key: 0,
1495
1513
  value: "__custom__"
1496
- }, Zi = {
1514
+ }, Qi = {
1497
1515
  key: 0,
1498
1516
  class: "tpl:space-y-2"
1499
- }, Qi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, $i = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ea = { class: "tpl:flex tpl:justify-end" }, ta = ["disabled"], na = {
1517
+ }, $i = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ea = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ta = { class: "tpl:flex tpl:justify-end" }, na = ["disabled"], ra = {
1500
1518
  key: 0,
1501
1519
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1502
- }, ra = { class: "tpl:space-y-1" }, ia = { 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)]" }, aa = {
1520
+ }, ia = { class: "tpl:space-y-1" }, aa = { 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)]" }, oa = {
1503
1521
  key: 0,
1504
1522
  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)]"
1505
- }, oa = /* @__PURE__ */ N({
1523
+ }, sa = /* @__PURE__ */ M({
1506
1524
  __name: "CommonBlockSettings",
1507
1525
  props: {
1508
1526
  block: {},
@@ -1510,7 +1528,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1510
1528
  },
1511
1529
  emits: ["update"],
1512
1530
  setup(e, { emit: t }) {
1513
- let n = e, i = t, { t: a } = W(), c = d(Ke, []), l = d(Ye, !1), h = p(/* @__PURE__ */ new Set()), g = m(!1), S = m(""), w = m(""), O = [{
1531
+ let n = e, i = t, { t: a } = W(), c = d(Ke, []), l = d(Ye, !1), h = p(/* @__PURE__ */ new Set()), g = m(!1), _ = m(""), S = m(""), T = [{
1514
1532
  key: "desktop",
1515
1533
  icon: it,
1516
1534
  labelKey: "showOnDesktop"
@@ -1519,26 +1537,26 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1519
1537
  icon: ot,
1520
1538
  labelKey: "showOnMobile"
1521
1539
  }];
1522
- function k(e) {
1540
+ function D(e) {
1523
1541
  h.has(e) ? h.delete(e) : h.add(e);
1524
1542
  }
1525
- let A = v(() => c.length > 0 || l), N = v(() => n.block.displayCondition ? !c.some((e) => e.label === n.block.displayCondition?.label) : !1);
1526
- function I() {
1527
- g.value = !0, N.value && n.block.displayCondition ? (S.value = n.block.displayCondition.before, w.value = n.block.displayCondition.after ?? "") : (S.value = "", w.value = "");
1543
+ let k = v(() => c.length > 0 || l), M = v(() => n.block.displayCondition ? !c.some((e) => e.label === n.block.displayCondition?.label) : !1);
1544
+ function F() {
1545
+ g.value = !0, M.value && n.block.displayCondition ? (_.value = n.block.displayCondition.before, S.value = n.block.displayCondition.after ?? "") : (_.value = "", S.value = "");
1528
1546
  }
1529
- function ee() {
1530
- S.value.trim() && (i("update", { displayCondition: {
1547
+ function I() {
1548
+ _.value.trim() && (i("update", { displayCondition: {
1531
1549
  label: a.blockSettings.customCondition,
1532
- before: S.value.trim(),
1533
- after: w.value.trim()
1534
- } }), g.value = !1, S.value = "", w.value = "");
1550
+ before: _.value.trim(),
1551
+ after: S.value.trim()
1552
+ } }), g.value = !1, _.value = "", S.value = "");
1535
1553
  }
1536
- F(() => n.block.displayCondition, (e) => {
1554
+ P(() => n.block.displayCondition, (e) => {
1537
1555
  if (!e) {
1538
- g.value = !1, S.value = "", w.value = "";
1556
+ g.value = !1, _.value = "", S.value = "";
1539
1557
  return;
1540
1558
  }
1541
- N.value && (S.value = e.before, w.value = e.after ?? "");
1559
+ M.value && (_.value = e.before, S.value = e.after ?? "");
1542
1560
  }, { immediate: !0 });
1543
1561
  let L = v(() => {
1544
1562
  let e = {};
@@ -1564,14 +1582,14 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1564
1582
  };
1565
1583
  t[e] = !t[e], i("update", { visibility: t });
1566
1584
  }
1567
- return (t, n) => (s(), y("div", { class: E(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1568
- P(Vi, {
1585
+ return (t, n) => (s(), y("div", { class: O(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1586
+ N(Hi, {
1569
1587
  title: x(a).blockSettings.spacing,
1570
1588
  open: h.has("spacing"),
1571
1589
  "no-border": e.isFirstSection,
1572
- onToggle: n[1] ||= (e) => k("spacing")
1590
+ onToggle: n[1] ||= (e) => D("spacing")
1573
1591
  }, {
1574
- default: f(() => [P(Ri, {
1592
+ default: f(() => [N(zi, {
1575
1593
  label: x(a).blockSettings.padding,
1576
1594
  "model-value": e.block.styles.padding,
1577
1595
  "onUpdate:modelValue": n[0] ||= (e) => R("padding", e)
@@ -1582,33 +1600,33 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1582
1600
  "open",
1583
1601
  "no-border"
1584
1602
  ]),
1585
- P(Vi, {
1603
+ N(Hi, {
1586
1604
  title: x(a).blockSettings.background,
1587
1605
  open: h.has("bg"),
1588
- onToggle: n[3] ||= (e) => k("bg")
1606
+ onToggle: n[3] ||= (e) => D("bg")
1589
1607
  }, {
1590
- default: f(() => [D("label", { class: E(x(q)) }, _(x(a).blockSettings.color), 3), P(X, {
1608
+ default: f(() => [E("label", { class: O(x(q)) }, C(x(a).blockSettings.color), 3), N(X, {
1591
1609
  "model-value": e.block.styles.backgroundColor ?? "",
1592
1610
  "onUpdate:modelValue": n[2] ||= (e) => R("backgroundColor", e)
1593
1611
  }, null, 8, ["model-value"])]),
1594
1612
  _: 1
1595
1613
  }, 8, ["title", "open"]),
1596
- P(Vi, {
1614
+ N(Hi, {
1597
1615
  title: x(a).blockSettings.display,
1598
1616
  open: h.has("display"),
1599
- onToggle: n[4] ||= (e) => k("display")
1617
+ onToggle: n[4] ||= (e) => D("display")
1600
1618
  }, {
1601
- default: f(() => [D("div", Hi, [(s(), y(j, null, u(O, (e) => P(Z, {
1619
+ default: f(() => [E("div", Ui, [(s(), y(A, null, u(T, (e) => N(Z, {
1602
1620
  key: e.key,
1603
1621
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1604
1622
  "model-value": z(e.key),
1605
1623
  label: x(a).blockSettings[e.labelKey],
1606
1624
  "onUpdate:modelValue": (t) => B(e.key)
1607
1625
  }, {
1608
- default: f(() => [D("span", Ui, [(s(), C(o(e.icon), {
1626
+ default: f(() => [E("span", Wi, [(s(), w(o(e.icon), {
1609
1627
  size: 14,
1610
1628
  "stroke-width": 1.5
1611
- })), M(" " + _(x(a).blockSettings[e.labelKey]), 1)])]),
1629
+ })), j(" " + C(x(a).blockSettings[e.labelKey]), 1)])]),
1612
1630
  _: 2
1613
1631
  }, 1032, [
1614
1632
  "model-value",
@@ -1617,21 +1635,21 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1617
1635
  ])), 64))])]),
1618
1636
  _: 1
1619
1637
  }, 8, ["title", "open"]),
1620
- A.value ? (s(), C(Vi, {
1638
+ k.value ? (s(), w(Hi, {
1621
1639
  key: 0,
1622
1640
  "header-test-id": "display-condition-section",
1623
1641
  title: x(a).blockSettings.displayCondition,
1624
1642
  open: h.has("condition"),
1625
- onToggle: n[8] ||= (e) => k("condition")
1643
+ onToggle: n[8] ||= (e) => D("condition")
1626
1644
  }, {
1627
- default: f(() => [D("div", Wi, [D("select", {
1645
+ default: f(() => [E("div", Gi, [E("select", {
1628
1646
  "data-testid": "display-condition-select",
1629
- class: E(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
1630
- value: g.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1647
+ class: O(["tpl:w-full tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:outline-none tpl:transition-all tpl:duration-150 tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", e.block.displayCondition ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"]),
1648
+ value: g.value || M.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1631
1649
  onChange: n[5] ||= (e) => {
1632
1650
  let t = e.target.value;
1633
1651
  if (t === "__custom__") {
1634
- I();
1652
+ F();
1635
1653
  return;
1636
1654
  }
1637
1655
  if (g.value = !1, !t) {
@@ -1642,41 +1660,41 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1642
1660
  n && i("update", { displayCondition: n });
1643
1661
  }
1644
1662
  }, [
1645
- D("option", Ki, _(x(a).blockSettings.noCondition), 1),
1646
- (s(!0), y(j, null, u(L.value, (e, t) => (s(), y(j, { key: t }, [t ? (s(), y("optgroup", {
1663
+ E("option", qi, C(x(a).blockSettings.noCondition), 1),
1664
+ (s(!0), y(A, null, u(L.value, (e, t) => (s(), y(A, { key: t }, [t ? (s(), y("optgroup", {
1647
1665
  key: 0,
1648
1666
  label: String(t)
1649
- }, [(s(!0), y(j, null, u(e, (e) => (s(), y("option", {
1667
+ }, [(s(!0), y(A, null, u(e, (e) => (s(), y("option", {
1650
1668
  key: e.label,
1651
1669
  value: e.label
1652
- }, _(e.label), 9, Ji))), 128))], 8, qi)) : (s(!0), y(j, { key: 1 }, u(e, (e) => (s(), y("option", {
1670
+ }, C(e.label), 9, Yi))), 128))], 8, Ji)) : (s(!0), y(A, { key: 1 }, u(e, (e) => (s(), y("option", {
1653
1671
  key: e.label,
1654
1672
  value: e.label
1655
- }, _(e.label), 9, Yi))), 128))], 64))), 128)),
1656
- x(l) ? (s(), y("option", Xi, _(x(a).blockSettings.customCondition), 1)) : b("", !0)
1657
- ], 42, Gi), g.value || N.value ? (s(), y("div", Zi, [
1658
- D("div", null, [D("label", Qi, _(x(a).blockSettings.customConditionBefore), 1), r(D("textarea", {
1659
- "onUpdate:modelValue": n[6] ||= (e) => S.value = e,
1673
+ }, C(e.label), 9, Xi))), 128))], 64))), 128)),
1674
+ x(l) ? (s(), y("option", Zi, C(x(a).blockSettings.customCondition), 1)) : b("", !0)
1675
+ ], 42, Ki), g.value || M.value ? (s(), y("div", Qi, [
1676
+ E("div", null, [E("label", $i, C(x(a).blockSettings.customConditionBefore), 1), r(E("textarea", {
1677
+ "onUpdate:modelValue": n[6] ||= (e) => _.value = e,
1660
1678
  rows: "2",
1661
- class: E(x(Xt))
1662
- }, null, 2), [[T, S.value]])]),
1663
- D("div", null, [D("label", $i, _(x(a).blockSettings.customConditionAfter), 1), r(D("textarea", {
1664
- "onUpdate:modelValue": n[7] ||= (e) => w.value = e,
1679
+ class: O(x(Xt))
1680
+ }, null, 2), [[ee, _.value]])]),
1681
+ E("div", null, [E("label", ea, C(x(a).blockSettings.customConditionAfter), 1), r(E("textarea", {
1682
+ "onUpdate:modelValue": n[7] ||= (e) => S.value = e,
1665
1683
  rows: "2",
1666
- class: E(x(Xt))
1667
- }, null, 2), [[T, w.value]])]),
1668
- D("div", ea, [D("button", {
1684
+ class: O(x(Xt))
1685
+ }, null, 2), [[ee, S.value]])]),
1686
+ E("div", ta, [E("button", {
1669
1687
  type: "button",
1670
1688
  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",
1671
- disabled: !S.value.trim(),
1672
- onClick: ee
1673
- }, _(x(a).blockSettings.applyCondition), 9, ta)])
1674
- ])) : e.block.displayCondition && !N.value ? (s(), y(j, { key: 1 }, [e.block.displayCondition.description ? (s(), y("p", na, _(e.block.displayCondition.description), 1)) : b("", !0), D("div", ra, [D("pre", ia, _(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), y("pre", aa, _(e.block.displayCondition.after), 1)) : b("", !0)])], 64)) : b("", !0)])]),
1689
+ disabled: !_.value.trim(),
1690
+ onClick: I
1691
+ }, C(x(a).blockSettings.applyCondition), 9, na)])
1692
+ ])) : e.block.displayCondition && !M.value ? (s(), y(A, { key: 1 }, [e.block.displayCondition.description ? (s(), y("p", ra, C(e.block.displayCondition.description), 1)) : b("", !0), E("div", ia, [E("pre", aa, C(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), y("pre", oa, C(e.block.displayCondition.after), 1)) : b("", !0)])], 64)) : b("", !0)])]),
1675
1693
  _: 1
1676
1694
  }, 8, ["title", "open"])) : b("", !0)
1677
1695
  ], 2));
1678
1696
  }
1679
- }), sa = ["title"], ca = /* @__PURE__ */ N({
1697
+ }), ca = ["title"], la = /* @__PURE__ */ M({
1680
1698
  __name: "BooleanField",
1681
1699
  props: {
1682
1700
  field: {},
@@ -1689,7 +1707,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1689
1707
  return (t, i) => (s(), y("div", {
1690
1708
  class: "tpl:mb-3.5",
1691
1709
  title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0
1692
- }, [P(Z, {
1710
+ }, [N(Z, {
1693
1711
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1694
1712
  "model-value": e.modelValue,
1695
1713
  label: e.field.label,
@@ -1697,7 +1715,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1697
1715
  disabled: e.readOnly,
1698
1716
  "onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
1699
1717
  }, {
1700
- default: f(() => [M(_(e.field.label) + " ", 1), e.readOnly ? (s(), C(x(Mt), {
1718
+ default: f(() => [j(C(e.field.label) + " ", 1), e.readOnly ? (s(), w(x(Mt), {
1701
1719
  key: 0,
1702
1720
  size: 12,
1703
1721
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -1708,12 +1726,12 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1708
1726
  "label",
1709
1727
  "required",
1710
1728
  "disabled"
1711
- ])], 8, sa));
1729
+ ])], 8, ca));
1712
1730
  }
1713
- }), la = { class: "tpl:mb-3.5" }, ua = {
1731
+ }), ua = { class: "tpl:mb-3.5" }, da = {
1714
1732
  key: 1,
1715
1733
  class: "tpl:text-[var(--tpl-danger)]"
1716
- }, da = /* @__PURE__ */ N({
1734
+ }, fa = /* @__PURE__ */ M({
1717
1735
  __name: "FieldWrapper",
1718
1736
  props: {
1719
1737
  label: {},
@@ -1721,17 +1739,17 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1721
1739
  readOnly: { type: Boolean }
1722
1740
  },
1723
1741
  setup(e) {
1724
- return (n, r) => (s(), y("div", la, [D("label", { class: E(x(q)) }, [
1725
- M(_(e.label) + " ", 1),
1726
- e.readOnly ? (s(), C(x(Mt), {
1742
+ return (n, r) => (s(), y("div", ua, [E("label", { class: O(x(q)) }, [
1743
+ j(C(e.label) + " ", 1),
1744
+ e.readOnly ? (s(), w(x(Mt), {
1727
1745
  key: 0,
1728
1746
  size: 12,
1729
1747
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1730
1748
  })) : b("", !0),
1731
- e.required ? (s(), y("span", ua, "*")) : b("", !0)
1749
+ e.required ? (s(), y("span", da, "*")) : b("", !0)
1732
1750
  ], 2), t(n.$slots, "default")]));
1733
1751
  }
1734
- }), fa = /* @__PURE__ */ N({
1752
+ }), pa = /* @__PURE__ */ M({
1735
1753
  __name: "ColorField",
1736
1754
  props: {
1737
1755
  field: {},
@@ -1741,12 +1759,12 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1741
1759
  emits: ["update:modelValue"],
1742
1760
  setup(e, { emit: t }) {
1743
1761
  let n = e, r = t, { t: i } = W(), a = d(et, nt), o = v(() => ie(n.field, a));
1744
- return (t, n) => (s(), C(da, {
1762
+ return (t, n) => (s(), w(fa, {
1745
1763
  label: e.field.label,
1746
1764
  required: e.field.required,
1747
1765
  "read-only": e.readOnly
1748
1766
  }, {
1749
- default: f(() => [P(X, {
1767
+ default: f(() => [N(X, {
1750
1768
  "model-value": e.modelValue,
1751
1769
  placeholder: e.field.placeholder,
1752
1770
  disabled: e.readOnly,
@@ -1769,15 +1787,15 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1769
1787
  "read-only"
1770
1788
  ]));
1771
1789
  }
1772
- }), pa = {
1790
+ }), ma = {
1773
1791
  key: 0,
1774
1792
  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)]",
1775
1793
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1776
- }, ma = [
1794
+ }, ha = [
1777
1795
  "value",
1778
1796
  "placeholder",
1779
1797
  "title"
1780
- ], ha = ["value", "placeholder"], ga = /* @__PURE__ */ N({
1798
+ ], ga = ["value", "placeholder"], _a = /* @__PURE__ */ M({
1781
1799
  __name: "ImageField",
1782
1800
  props: {
1783
1801
  field: {},
@@ -1807,53 +1825,53 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1807
1825
  }
1808
1826
  }
1809
1827
  }
1810
- let { isOver: S } = me({
1828
+ let { isOver: _ } = me({
1811
1829
  target: u,
1812
1830
  enabled: h,
1813
1831
  onFiles: g
1814
1832
  });
1815
- return (t, n) => (s(), C(da, {
1833
+ return (t, n) => (s(), w(fa, {
1816
1834
  label: e.field.label,
1817
1835
  required: e.field.required,
1818
1836
  "read-only": e.readOnly
1819
1837
  }, {
1820
- default: f(() => [D("div", {
1838
+ default: f(() => [E("div", {
1821
1839
  ref_key: "dropZoneRef",
1822
1840
  ref: u,
1823
1841
  class: "tpl:relative"
1824
1842
  }, [
1825
- h.value && (x(S) || p.value) ? (s(), y("div", pa, [p.value ? (s(), y(j, { key: 0 }, [P(x(Dt), {
1843
+ h.value && (x(_) || p.value) ? (s(), y("div", ma, [p.value ? (s(), y(A, { key: 0 }, [N(x(Dt), {
1826
1844
  class: "tpl-spinner",
1827
1845
  size: 18,
1828
1846
  "stroke-width": 2
1829
- }), M(" " + _(x(i).image.uploading), 1)], 64)) : (s(), y(j, { key: 1 }, [P(x(It), {
1847
+ }), j(" " + C(x(i).image.uploading), 1)], 64)) : (s(), y(A, { key: 1 }, [N(x(It), {
1830
1848
  size: 18,
1831
1849
  "stroke-width": 1.5
1832
- }), M(" " + _(x(i).image.dropToUpload), 1)], 64))])) : b("", !0),
1850
+ }), j(" " + C(x(i).image.dropToUpload), 1)], 64))])) : b("", !0),
1833
1851
  e.readOnly ? (s(), y("input", {
1834
1852
  key: 1,
1835
1853
  type: "url",
1836
- class: E([x(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1854
+ class: O([x(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1837
1855
  value: e.modelValue,
1838
1856
  placeholder: e.field.placeholder || "https://...",
1839
1857
  disabled: "",
1840
1858
  title: x(i).customBlocks.dataSource.readOnlyTooltip
1841
- }, null, 10, ma)) : (s(), y("input", {
1859
+ }, null, 10, ha)) : (s(), y("input", {
1842
1860
  key: 2,
1843
1861
  type: "url",
1844
- class: E(x(K)),
1862
+ class: O(x(K)),
1845
1863
  value: e.modelValue,
1846
1864
  placeholder: e.field.placeholder || "https://...",
1847
1865
  onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
1848
- }, null, 42, ha)),
1866
+ }, null, 42, ga)),
1849
1867
  c.value && !e.readOnly ? (s(), y("button", {
1850
1868
  key: 3,
1851
1869
  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)]",
1852
1870
  onClick: n[1] ||= (e) => l()
1853
- }, [P(x(Tt), {
1871
+ }, [N(x(Tt), {
1854
1872
  size: 14,
1855
1873
  "stroke-width": 1.5
1856
- }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
1874
+ }), j(" " + C(x(i).image.browseMedia), 1)])) : b("", !0)
1857
1875
  ], 512)]),
1858
1876
  _: 1
1859
1877
  }, 8, [
@@ -1862,7 +1880,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1862
1880
  "read-only"
1863
1881
  ]));
1864
1882
  }
1865
- }), _a = [
1883
+ }), va = [
1866
1884
  "value",
1867
1885
  "placeholder",
1868
1886
  "min",
@@ -1870,7 +1888,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1870
1888
  "step",
1871
1889
  "disabled",
1872
1890
  "title"
1873
- ], va = /* @__PURE__ */ N({
1891
+ ], ya = /* @__PURE__ */ M({
1874
1892
  __name: "NumberField",
1875
1893
  props: {
1876
1894
  field: {},
@@ -1880,14 +1898,14 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1880
1898
  emits: ["update:modelValue"],
1881
1899
  setup(e, { emit: t }) {
1882
1900
  let n = t, { t: r } = W();
1883
- return (t, i) => (s(), C(da, {
1901
+ return (t, i) => (s(), w(fa, {
1884
1902
  label: e.field.label,
1885
1903
  required: e.field.required,
1886
1904
  "read-only": e.readOnly
1887
1905
  }, {
1888
- default: f(() => [D("input", {
1906
+ default: f(() => [E("input", {
1889
1907
  type: "number",
1890
- class: E([x(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1908
+ class: O([x(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1891
1909
  value: e.modelValue,
1892
1910
  placeholder: e.field.placeholder,
1893
1911
  min: e.field.min,
@@ -1896,7 +1914,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1896
1914
  disabled: e.readOnly,
1897
1915
  title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1898
1916
  onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
1899
- }, null, 42, _a)]),
1917
+ }, null, 42, va)]),
1900
1918
  _: 1
1901
1919
  }, 8, [
1902
1920
  "label",
@@ -1904,10 +1922,10 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1904
1922
  "read-only"
1905
1923
  ]));
1906
1924
  }
1907
- }), ya = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ba = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, xa = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Sa = ["title", "onClick"], Ca = {
1925
+ }), ba = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, xa = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Sa = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Ca = ["title", "onClick"], wa = {
1908
1926
  key: 1,
1909
1927
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1910
- }, wa = /* @__PURE__ */ N({
1928
+ }, Ta = /* @__PURE__ */ M({
1911
1929
  __name: "RepeatableField",
1912
1930
  props: {
1913
1931
  field: {},
@@ -1935,25 +1953,25 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1935
1953
  } : r);
1936
1954
  r("update:modelValue", i);
1937
1955
  }
1938
- return (t, n) => (s(), C(da, {
1956
+ return (t, n) => (s(), w(fa, {
1939
1957
  label: e.field.label,
1940
1958
  required: e.field.required,
1941
1959
  "read-only": e.readOnly
1942
1960
  }, {
1943
- default: f(() => [D("div", ya, [
1944
- (s(!0), y(j, null, u(a.value, (t, n) => (s(), y("div", {
1961
+ default: f(() => [E("div", ba, [
1962
+ (s(!0), y(A, null, u(a.value, (t, n) => (s(), y("div", {
1945
1963
  key: `${e.field.key}-${n}`,
1946
1964
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1947
- }, [D("div", ba, [D("span", xa, " #" + _(n + 1), 1), l.value && !e.readOnly ? (s(), y("button", {
1965
+ }, [E("div", xa, [E("span", Sa, " #" + C(n + 1), 1), l.value && !e.readOnly ? (s(), y("button", {
1948
1966
  key: 0,
1949
1967
  type: "button",
1950
1968
  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)]",
1951
1969
  title: x(i).customBlocks.fields.removeItem,
1952
1970
  onClick: (e) => p(n)
1953
- }, [P(x(St), {
1971
+ }, [N(x(St), {
1954
1972
  size: 12,
1955
1973
  "stroke-width": 2
1956
- })], 8, Sa)) : b("", !0)]), (s(!0), y(j, null, u(e.field.fields, (r) => (s(), C(o(x(Na)(r.type)), {
1974
+ })], 8, Ca)) : b("", !0)]), (s(!0), y(A, null, u(e.field.fields, (r) => (s(), w(o(x(Pa)(r.type)), {
1957
1975
  key: r.key,
1958
1976
  field: r,
1959
1977
  "model-value": t[r.key],
@@ -1968,13 +1986,13 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1968
1986
  c.value && !e.readOnly ? (s(), y("button", {
1969
1987
  key: 0,
1970
1988
  type: "button",
1971
- class: E(x(Qt)),
1989
+ class: O(x(Qt)),
1972
1990
  onClick: d
1973
- }, [P(x(G), {
1991
+ }, [N(x(G), {
1974
1992
  size: 14,
1975
1993
  "stroke-width": 2
1976
- }), M(" " + _(x(i).customBlocks.fields.addItem), 1)], 2)) : b("", !0),
1977
- !c.value && !e.readOnly ? (s(), y("p", Ca, _(x(i).customBlocks.fields.maxItemsReached), 1)) : b("", !0)
1994
+ }), j(" " + C(x(i).customBlocks.fields.addItem), 1)], 2)) : b("", !0),
1995
+ !c.value && !e.readOnly ? (s(), y("p", wa, C(x(i).customBlocks.fields.maxItemsReached), 1)) : b("", !0)
1978
1996
  ])]),
1979
1997
  _: 1
1980
1998
  }, 8, [
@@ -1983,11 +2001,11 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1983
2001
  "read-only"
1984
2002
  ]));
1985
2003
  }
1986
- }), Ta = [
2004
+ }), Ea = [
1987
2005
  "value",
1988
2006
  "disabled",
1989
2007
  "title"
1990
- ], Ea = ["value"], Da = /* @__PURE__ */ N({
2008
+ ], Da = ["value"], Oa = /* @__PURE__ */ M({
1991
2009
  __name: "SelectField",
1992
2010
  props: {
1993
2011
  field: {},
@@ -1997,21 +2015,21 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
1997
2015
  emits: ["update:modelValue"],
1998
2016
  setup(e, { emit: t }) {
1999
2017
  let n = t, { t: r } = W();
2000
- return (t, i) => (s(), C(da, {
2018
+ return (t, i) => (s(), w(fa, {
2001
2019
  label: e.field.label,
2002
2020
  required: e.field.required,
2003
2021
  "read-only": e.readOnly
2004
2022
  }, {
2005
- default: f(() => [D("select", {
2006
- class: E([x(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
2023
+ default: f(() => [E("select", {
2024
+ class: O([x(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
2007
2025
  value: e.modelValue,
2008
2026
  disabled: e.readOnly,
2009
2027
  title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0,
2010
2028
  onChange: i[0] ||= (t) => !e.readOnly && n("update:modelValue", t.target.value)
2011
- }, [(s(!0), y(j, null, u(e.field.options, (e) => (s(), y("option", {
2029
+ }, [(s(!0), y(A, null, u(e.field.options, (e) => (s(), y("option", {
2012
2030
  key: e.value,
2013
2031
  value: e.value
2014
- }, _(e.label), 9, Ea))), 128))], 42, Ta)]),
2032
+ }, C(e.label), 9, Da))), 128))], 42, Ea)]),
2015
2033
  _: 1
2016
2034
  }, 8, [
2017
2035
  "label",
@@ -2019,11 +2037,11 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
2019
2037
  "read-only"
2020
2038
  ]));
2021
2039
  }
2022
- }), Oa = [
2040
+ }), ka = [
2023
2041
  "value",
2024
2042
  "placeholder",
2025
2043
  "title"
2026
- ], ka = /* @__PURE__ */ N({
2044
+ ], Aa = /* @__PURE__ */ M({
2027
2045
  __name: "TextField",
2028
2046
  props: {
2029
2047
  field: {},
@@ -2033,7 +2051,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
2033
2051
  emits: ["update:modelValue"],
2034
2052
  setup(e, { emit: t }) {
2035
2053
  let n = t, { t: r } = W();
2036
- return (t, i) => (s(), C(da, {
2054
+ return (t, i) => (s(), w(fa, {
2037
2055
  label: e.field.label,
2038
2056
  required: e.field.required,
2039
2057
  "read-only": e.readOnly
@@ -2041,12 +2059,12 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
2041
2059
  default: f(() => [e.readOnly ? (s(), y("input", {
2042
2060
  key: 0,
2043
2061
  type: "text",
2044
- class: E([x(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
2062
+ class: O([x(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
2045
2063
  value: e.modelValue,
2046
2064
  placeholder: e.field.placeholder,
2047
2065
  disabled: "",
2048
2066
  title: x(r).customBlocks.dataSource.readOnlyTooltip
2049
- }, null, 10, Oa)) : (s(), C($, {
2067
+ }, null, 10, ka)) : (s(), w($, {
2050
2068
  key: 1,
2051
2069
  "model-value": e.modelValue,
2052
2070
  placeholder: e.field.placeholder,
@@ -2059,13 +2077,13 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
2059
2077
  "read-only"
2060
2078
  ]));
2061
2079
  }
2062
- }), Aa = [
2080
+ }), ja = [
2063
2081
  "value",
2064
2082
  "placeholder",
2065
2083
  "title"
2066
- ], ja = "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 = {
2067
- text: ka,
2068
- textarea: /* @__PURE__ */ N({
2084
+ ], Ma = "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", Na = {
2085
+ text: Aa,
2086
+ textarea: /* @__PURE__ */ M({
2069
2087
  __name: "TextareaField",
2070
2088
  props: {
2071
2089
  field: {},
@@ -2075,7 +2093,7 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
2075
2093
  emits: ["update:modelValue"],
2076
2094
  setup(e, { emit: t }) {
2077
2095
  let n = t, { t: r } = W();
2078
- return (t, i) => (s(), C(da, {
2096
+ return (t, i) => (s(), w(fa, {
2079
2097
  label: e.field.label,
2080
2098
  required: e.field.required,
2081
2099
  "read-only": e.readOnly
@@ -2087,8 +2105,8 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
2087
2105
  rows: "3",
2088
2106
  disabled: "",
2089
2107
  title: x(r).customBlocks.dataSource.readOnlyTooltip,
2090
- class: E(ja)
2091
- }, null, 8, Aa)) : (s(), C(cr, {
2108
+ class: O(Ma)
2109
+ }, null, 8, ja)) : (s(), w(cr, {
2092
2110
  key: 1,
2093
2111
  "model-value": e.modelValue,
2094
2112
  placeholder: e.field.placeholder,
@@ -2102,37 +2120,37 @@ var Un = ["aria-label", "onKeydown"], Wn = ["data-tooltip"], Gn = ["data-tooltip
2102
2120
  ]));
2103
2121
  }
2104
2122
  }),
2105
- image: ga,
2106
- color: fa,
2107
- number: va,
2108
- select: Da,
2109
- boolean: ca,
2110
- repeatable: wa
2123
+ image: _a,
2124
+ color: pa,
2125
+ number: ya,
2126
+ select: Oa,
2127
+ boolean: la,
2128
+ repeatable: Ta
2111
2129
  };
2112
- function Na(e) {
2113
- return Ma[e] ?? ka;
2130
+ function Pa(e) {
2131
+ return Na[e] ?? Aa;
2114
2132
  }
2115
2133
  //#endregion
2116
2134
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
2117
- var Pa = {
2135
+ var Fa = {
2118
2136
  key: 0,
2119
2137
  class: "tpl:p-4"
2120
- }, Fa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ia = { key: 1 }, La = {
2138
+ }, Ia = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, La = { key: 1 }, Ra = {
2121
2139
  key: 0,
2122
2140
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
2123
- }, Ra = {
2141
+ }, za = {
2124
2142
  key: 1,
2125
2143
  class: "tpl:mb-4"
2126
- }, za = {
2144
+ }, Ba = {
2127
2145
  key: 1,
2128
2146
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
2129
- }, Ba = {
2147
+ }, Va = {
2130
2148
  key: 0,
2131
2149
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2132
- }, Va = {
2150
+ }, Ha = {
2133
2151
  key: 2,
2134
2152
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
2135
- }, Ha = /* @__PURE__ */ N({
2153
+ }, Ua = /* @__PURE__ */ M({
2136
2154
  __name: "CustomBlockToolbar",
2137
2155
  props: { block: {} },
2138
2156
  emits: ["updateFieldValues", "updateDataSourceFetched"],
@@ -2144,46 +2162,46 @@ var Pa = {
2144
2162
  r("updateFieldValues", e), r("updateDataSourceFetched", t);
2145
2163
  }
2146
2164
  });
2147
- function S(e) {
2165
+ function _(e) {
2148
2166
  return e.readOnly === !0 && h.value && !!n.block.dataSourceFetched;
2149
2167
  }
2150
- function w(e, t) {
2168
+ function S(e, t) {
2151
2169
  r("updateFieldValues", {
2152
2170
  ...n.block.fieldValues,
2153
2171
  [e]: t
2154
2172
  });
2155
2173
  }
2156
- return (t, n) => c.value ? (s(), y("div", Ia, [
2157
- c.value.description ? (s(), y("p", La, _(c.value.description), 1)) : b("", !0),
2158
- x(h) ? (s(), y("div", Ra, [x(g) && !x(f) ? (s(), y("button", {
2174
+ return (t, n) => c.value ? (s(), y("div", La, [
2175
+ c.value.description ? (s(), y("p", Ra, C(c.value.description), 1)) : b("", !0),
2176
+ x(h) ? (s(), y("div", za, [x(g) && !x(f) ? (s(), y("button", {
2159
2177
  key: 0,
2160
2178
  type: "button",
2161
2179
  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)]",
2162
2180
  onClick: n[0] ||= (...e) => x(m) && x(m)(...e)
2163
- }, _(c.value?.dataSource?.label || x(i).customBlocks.dataSource.fetchButton), 1)) : (s(), y("div", za, [x(f) ? (s(), y("div", Ba, _(x(i).customBlocks.dataSource.fetching), 1)) : (s(), y("button", {
2181
+ }, C(c.value?.dataSource?.label || x(i).customBlocks.dataSource.fetchButton), 1)) : (s(), y("div", Ba, [x(f) ? (s(), y("div", Va, C(x(i).customBlocks.dataSource.fetching), 1)) : (s(), y("button", {
2164
2182
  key: 1,
2165
2183
  type: "button",
2166
2184
  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)]",
2167
2185
  onClick: n[1] ||= (...e) => x(m) && x(m)(...e)
2168
- }, [P(x(Bt), { size: 12 }), M(" " + _(x(i).customBlocks.dataSource.changeButton), 1)]))])), x(p) ? (s(), y("p", Va, [P(x(ut), {
2186
+ }, [N(x(Bt), { size: 12 }), j(" " + C(x(i).customBlocks.dataSource.changeButton), 1)]))])), x(p) ? (s(), y("p", Ha, [N(x(ut), {
2169
2187
  size: 14,
2170
2188
  class: "tpl:shrink-0"
2171
- }), M(" " + _(x(i).customBlocks.dataSource.fetchError), 1)])) : b("", !0)])) : b("", !0),
2172
- (s(!0), y(j, null, u(c.value.fields, (t) => (s(), C(o(x(Na)(t.type)), {
2189
+ }), j(" " + C(x(i).customBlocks.dataSource.fetchError), 1)])) : b("", !0)])) : b("", !0),
2190
+ (s(!0), y(A, null, u(c.value.fields, (t) => (s(), w(o(x(Pa)(t.type)), {
2173
2191
  key: t.key,
2174
2192
  field: t,
2175
2193
  "model-value": e.block.fieldValues[t.key],
2176
- "read-only": S(t),
2177
- "onUpdate:modelValue": (e) => w(t.key, e)
2194
+ "read-only": _(t),
2195
+ "onUpdate:modelValue": (e) => S(t.key, e)
2178
2196
  }, null, 8, [
2179
2197
  "field",
2180
2198
  "model-value",
2181
2199
  "read-only",
2182
2200
  "onUpdate:modelValue"
2183
2201
  ]))), 128))
2184
- ])) : (s(), y("div", Pa, [D("p", Fa, _(x(i).customBlocks.toolbar.noDefinition), 1)]));
2202
+ ])) : (s(), y("div", Fa, [E("p", Ia, C(x(i).customBlocks.toolbar.noDefinition), 1)]));
2185
2203
  }
2186
- }), Ua = { class: "tpl:mb-3.5" }, Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:flex tpl:items-stretch" }, qa = ["value"], Ja = /* @__PURE__ */ N({
2204
+ }), Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:mb-3.5" }, Ka = { class: "tpl:mb-3.5" }, qa = { class: "tpl:flex tpl:items-stretch" }, Ja = ["value"], Ya = /* @__PURE__ */ M({
2187
2205
  __name: "DividerToolbar",
2188
2206
  props: { block: {} },
2189
2207
  emits: ["update"],
@@ -2192,8 +2210,8 @@ var Pa = {
2192
2210
  function i(e, t) {
2193
2211
  n("update", { [e]: t });
2194
2212
  }
2195
- return (t, n) => (s(), y(j, null, [
2196
- D("div", Ua, [D("label", { class: E(x(q)) }, _(x(r).divider.style), 3), P(rn, {
2213
+ return (t, n) => (s(), y(A, null, [
2214
+ E("div", Wa, [E("label", { class: O(x(q)) }, C(x(r).divider.style), 3), N(rn, {
2197
2215
  options: [
2198
2216
  {
2199
2217
  value: "solid",
@@ -2211,52 +2229,52 @@ var Pa = {
2211
2229
  "model-value": e.block.lineStyle,
2212
2230
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
2213
2231
  }, null, 8, ["options", "model-value"])]),
2214
- D("div", Wa, [D("label", { class: E(x(q)) }, _(x(r).divider.color), 3), P(X, {
2232
+ E("div", Ga, [E("label", { class: O(x(q)) }, C(x(r).divider.color), 3), N(X, {
2215
2233
  "model-value": e.block.color,
2216
2234
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
2217
2235
  }, null, 8, ["model-value"])]),
2218
- D("div", Ga, [D("label", { class: E(x(q)) }, _(x(r).divider.thickness), 3), D("div", Ka, [D("input", {
2236
+ E("div", Ka, [E("label", { class: O(x(q)) }, C(x(r).divider.thickness), 3), E("div", qa, [E("input", {
2219
2237
  type: "number",
2220
- class: E(x(Y)),
2238
+ class: O(x(Y)),
2221
2239
  value: e.block.thickness,
2222
2240
  min: "1",
2223
2241
  max: "10",
2224
2242
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
2225
- }, null, 42, qa), D("span", { class: E(x(J)) }, "px", 2)])])
2243
+ }, null, 42, Ja), E("span", { class: O(x(J)) }, "px", 2)])])
2226
2244
  ], 64));
2227
2245
  }
2228
- }), Ya = { class: "tpl:mb-3.5" }, Xa = ["value"], Za = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Qa = /* @__PURE__ */ N({
2246
+ }), Xa = { class: "tpl:mb-3.5" }, Za = ["value"], Qa = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, $a = /* @__PURE__ */ M({
2229
2247
  __name: "HtmlToolbar",
2230
2248
  props: { block: {} },
2231
2249
  emits: ["update"],
2232
2250
  setup(e, { emit: t }) {
2233
2251
  let n = t, { t: r } = W();
2234
- return (t, i) => (s(), y("div", Ya, [
2235
- D("label", { class: E(x(q)) }, _(x(r).html.content), 3),
2236
- D("textarea", {
2252
+ return (t, i) => (s(), y("div", Xa, [
2253
+ E("label", { class: O(x(q)) }, C(x(r).html.content), 3),
2254
+ E("textarea", {
2237
2255
  value: e.block.content,
2238
2256
  placeholder: "<div>...</div>",
2239
2257
  rows: "10",
2240
- class: E(x(Xt)),
2258
+ class: O(x(Xt)),
2241
2259
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
2242
- }, null, 42, Xa),
2243
- D("p", Za, [P(x(Ct), {
2260
+ }, null, 42, Za),
2261
+ E("p", Qa, [N(x(Ct), {
2244
2262
  size: 12,
2245
2263
  class: "tpl:mt-0.5 tpl:shrink-0"
2246
- }), M(" " + _(x(r).html.sanitizationHint), 1)])
2264
+ }), j(" " + C(x(r).html.sanitizationHint), 1)])
2247
2265
  ]));
2248
2266
  }
2249
- }), $a = { class: "tpl:mb-3.5" }, eo = {
2267
+ }), eo = { class: "tpl:mb-3.5" }, to = {
2250
2268
  key: 0,
2251
2269
  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)]",
2252
2270
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
2253
- }, to = {
2271
+ }, no = {
2254
2272
  key: 0,
2255
2273
  class: "tpl:mb-3.5"
2256
- }, no = ["value", "placeholder"], ro = { class: "tpl:mb-3.5" }, io = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, ao = { class: "tpl:mb-3.5" }, oo = ["value"], so = { value: "full" }, co = { value: "custom" }, lo = {
2274
+ }, ro = ["value", "placeholder"], io = { class: "tpl:mb-3.5" }, ao = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, oo = { class: "tpl:mb-3.5" }, so = ["value"], co = { value: "full" }, lo = { value: "custom" }, uo = {
2257
2275
  key: 0,
2258
2276
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2259
- }, uo = ["value"], fo = { class: "tpl:mb-3.5" }, po = { class: "tpl:mb-3.5" }, mo = 350, ho = /* @__PURE__ */ N({
2277
+ }, fo = ["value"], po = { class: "tpl:mb-3.5" }, mo = { class: "tpl:mb-3.5" }, ho = 350, go = /* @__PURE__ */ M({
2260
2278
  __name: "ImageToolbar",
2261
2279
  props: { block: {} },
2262
2280
  emits: ["update"],
@@ -2267,70 +2285,70 @@ var Pa = {
2267
2285
  300,
2268
2286
  400,
2269
2287
  500
2270
- ], S = v(() => {
2288
+ ], _ = v(() => {
2271
2289
  let e = n.block.width;
2272
2290
  return e === "full" ? "full" : g.includes(e) ? String(e) : "custom";
2273
2291
  });
2274
- function w(e, t) {
2292
+ function S(e, t) {
2275
2293
  r("update", { [e]: t });
2276
2294
  }
2277
2295
  function T(e) {
2278
2296
  if (e === "custom") {
2279
2297
  let e = n.block.width;
2280
- (typeof e != "number" || g.includes(e)) && w("width", mo);
2298
+ (typeof e != "number" || g.includes(e)) && S("width", ho);
2281
2299
  return;
2282
2300
  }
2283
- w("width", e === "full" ? "full" : Number(e));
2301
+ S("width", e === "full" ? "full" : Number(e));
2284
2302
  }
2285
- function O(e) {
2303
+ function ee(e) {
2286
2304
  let t = Number(e);
2287
- !Number.isFinite(t) || t <= 0 || w("width", t);
2305
+ !Number.isFinite(t) || t <= 0 || S("width", t);
2288
2306
  }
2289
- async function k() {
2307
+ async function D() {
2290
2308
  let e = await a?.({ accept: ["images"] });
2291
- c.alive && e && (w("src", e.url), e.alt && (w("alt", e.alt), p.value = !0), u.value = !0, h());
2309
+ c.alive && e && (S("src", e.url), e.alt && (S("alt", e.alt), p.value = !0), u.value = !0, h());
2292
2310
  }
2293
- let A = m(), N = m(!1), F = v(() => H(n.block.src, o)), I = v(() => l.value && !N.value && !F.value);
2294
- async function ee(e) {
2311
+ let k = m(), M = m(!1), P = v(() => H(n.block.src, o)), F = v(() => l.value && !M.value && !P.value);
2312
+ async function I(e) {
2295
2313
  if (a) {
2296
- N.value = !0;
2314
+ M.value = !0;
2297
2315
  try {
2298
2316
  let t = await a({
2299
2317
  accept: ["images"],
2300
2318
  files: e
2301
2319
  });
2302
2320
  if (!c.alive) return;
2303
- t && (w("src", t.url), t.alt && (w("alt", t.alt), p.value = !0), u.value = !0, h());
2321
+ t && (S("src", t.url), t.alt && (S("alt", t.alt), p.value = !0), u.value = !0, h());
2304
2322
  } finally {
2305
- c.alive && (N.value = !1);
2323
+ c.alive && (M.value = !1);
2306
2324
  }
2307
2325
  }
2308
2326
  }
2309
2327
  let { isOver: L } = me({
2310
- target: A,
2311
- enabled: I,
2312
- onFiles: ee
2328
+ target: k,
2329
+ enabled: F,
2330
+ onFiles: I
2313
2331
  });
2314
- return (t, n) => (s(), y(j, null, [
2315
- D("div", $a, [D("label", { class: E(x(q)) }, _(x(i).image.imageUrl), 3), D("div", {
2332
+ return (t, n) => (s(), y(A, null, [
2333
+ E("div", eo, [E("label", { class: O(x(q)) }, C(x(i).image.imageUrl), 3), E("div", {
2316
2334
  ref_key: "dropZoneRef",
2317
- ref: A,
2335
+ ref: k,
2318
2336
  class: "tpl:relative"
2319
2337
  }, [
2320
- I.value && (x(L) || N.value) ? (s(), y("div", eo, [N.value ? (s(), y(j, { key: 0 }, [P(x(Dt), {
2338
+ F.value && (x(L) || M.value) ? (s(), y("div", to, [M.value ? (s(), y(A, { key: 0 }, [N(x(Dt), {
2321
2339
  class: "tpl-spinner",
2322
2340
  size: 18,
2323
2341
  "stroke-width": 2
2324
- }), M(" " + _(x(i).image.uploading), 1)], 64)) : (s(), y(j, { key: 1 }, [P(x(It), {
2342
+ }), j(" " + C(x(i).image.uploading), 1)], 64)) : (s(), y(A, { key: 1 }, [N(x(It), {
2325
2343
  size: 18,
2326
2344
  "stroke-width": 1.5
2327
- }), M(" " + _(x(i).image.dropToUpload), 1)], 64))])) : b("", !0),
2328
- P($, {
2345
+ }), j(" " + C(x(i).image.dropToUpload), 1)], 64))])) : b("", !0),
2346
+ N($, {
2329
2347
  "model-value": e.block.src,
2330
2348
  type: "url",
2331
2349
  placeholder: x(i).image.imageUrlPlaceholder,
2332
2350
  pulse: u.value,
2333
- "onUpdate:modelValue": n[0] ||= (e) => w("src", e)
2351
+ "onUpdate:modelValue": n[0] ||= (e) => S("src", e)
2334
2352
  }, null, 8, [
2335
2353
  "model-value",
2336
2354
  "placeholder",
@@ -2344,66 +2362,66 @@ var Pa = {
2344
2362
  color: "var(--tpl-primary)",
2345
2363
  "background-color": "var(--tpl-bg)"
2346
2364
  },
2347
- onClick: k
2348
- }, [P(x(Tt), {
2365
+ onClick: D
2366
+ }, [N(x(Tt), {
2349
2367
  size: 14,
2350
2368
  "stroke-width": 1.5
2351
- }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
2369
+ }), j(" " + C(x(i).image.browseMedia), 1)])) : b("", !0)
2352
2370
  ], 512)]),
2353
- x(H)(e.block.src, x(o)) ? (s(), y("div", to, [D("label", { class: E(x(q)) }, [M(_(x(i).image.placeholderUrl) + " ", 1), n[9] ||= D("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, _("(optional)"), -1)], 2), D("input", {
2371
+ x(H)(e.block.src, x(o)) ? (s(), y("div", no, [E("label", { class: O(x(q)) }, [j(C(x(i).image.placeholderUrl) + " ", 1), n[9] ||= E("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, C("(optional)"), -1)], 2), E("input", {
2354
2372
  type: "url",
2355
- class: E(x(K)),
2373
+ class: O(x(K)),
2356
2374
  value: e.block.placeholderUrl || "",
2357
2375
  placeholder: x(i).image.placeholderUrlPlaceholder,
2358
- onInput: n[1] ||= (e) => w("placeholderUrl", e.target.value)
2359
- }, null, 42, no)])) : b("", !0),
2360
- D("div", ro, [
2361
- D("label", { class: E(x(q)) }, _(x(i).image.altText), 3),
2362
- P($, {
2376
+ onInput: n[1] ||= (e) => S("placeholderUrl", e.target.value)
2377
+ }, null, 42, ro)])) : b("", !0),
2378
+ E("div", io, [
2379
+ E("label", { class: O(x(q)) }, C(x(i).image.altText), 3),
2380
+ N($, {
2363
2381
  "model-value": e.block.alt,
2364
2382
  type: "text",
2365
2383
  placeholder: x(i).image.altTextPlaceholder,
2366
2384
  pulse: p.value,
2367
2385
  disabled: e.block.decorative === !0,
2368
- "onUpdate:modelValue": n[2] ||= (e) => w("alt", e)
2386
+ "onUpdate:modelValue": n[2] ||= (e) => S("alt", e)
2369
2387
  }, null, 8, [
2370
2388
  "model-value",
2371
2389
  "placeholder",
2372
2390
  "pulse",
2373
2391
  "disabled"
2374
2392
  ]),
2375
- P(Z, {
2393
+ N(Z, {
2376
2394
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2377
2395
  "model-value": e.block.decorative === !0,
2378
2396
  label: x(i).image.decorative,
2379
- "onUpdate:modelValue": n[3] ||= (e) => w("decorative", e)
2397
+ "onUpdate:modelValue": n[3] ||= (e) => S("decorative", e)
2380
2398
  }, {
2381
- default: f(() => [D("span", null, [M(_(x(i).image.decorative) + " ", 1), D("span", io, _(x(i).image.decorativeHint), 1)])]),
2399
+ default: f(() => [E("span", null, [j(C(x(i).image.decorative) + " ", 1), E("span", ao, C(x(i).image.decorativeHint), 1)])]),
2382
2400
  _: 1
2383
2401
  }, 8, ["model-value", "label"])
2384
2402
  ]),
2385
- D("div", ao, [
2386
- D("label", { class: E(x(q)) }, _(x(i).image.width), 3),
2387
- D("select", {
2388
- class: E(x(K)),
2389
- value: S.value,
2403
+ E("div", oo, [
2404
+ E("label", { class: O(x(q)) }, C(x(i).image.width), 3),
2405
+ E("select", {
2406
+ class: O(x(K)),
2407
+ value: _.value,
2390
2408
  onChange: n[4] ||= (e) => T(e.target.value)
2391
2409
  }, [
2392
- D("option", so, _(x(i).image.fullWidth), 1),
2393
- n[10] ||= D("option", { value: "300" }, "300px", -1),
2394
- n[11] ||= D("option", { value: "400" }, "400px", -1),
2395
- n[12] ||= D("option", { value: "500" }, "500px", -1),
2396
- D("option", co, _(x(i).image.widthCustom), 1)
2397
- ], 42, oo),
2398
- S.value === "custom" ? (s(), y("div", lo, [D("input", {
2410
+ E("option", co, C(x(i).image.fullWidth), 1),
2411
+ n[10] ||= E("option", { value: "300" }, "300px", -1),
2412
+ n[11] ||= E("option", { value: "400" }, "400px", -1),
2413
+ n[12] ||= E("option", { value: "500" }, "500px", -1),
2414
+ E("option", lo, C(x(i).image.widthCustom), 1)
2415
+ ], 42, so),
2416
+ _.value === "custom" ? (s(), y("div", uo, [E("input", {
2399
2417
  type: "number",
2400
- class: E(x(Y)),
2401
- value: typeof e.block.width == "number" ? e.block.width : mo,
2418
+ class: O(x(Y)),
2419
+ value: typeof e.block.width == "number" ? e.block.width : ho,
2402
2420
  min: "20",
2403
- onInput: n[5] ||= (e) => O(e.target.value)
2404
- }, null, 42, uo), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
2421
+ onInput: n[5] ||= (e) => ee(e.target.value)
2422
+ }, null, 42, fo), E("span", { class: O(x(J)) }, "px", 2)])) : b("", !0)
2405
2423
  ]),
2406
- D("div", fo, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P(rn, {
2424
+ E("div", po, [E("label", { class: O(x(q)) }, C(x(i).title.align), 3), N(rn, {
2407
2425
  options: [
2408
2426
  {
2409
2427
  value: "left",
@@ -2419,31 +2437,31 @@ var Pa = {
2419
2437
  }
2420
2438
  ],
2421
2439
  "model-value": e.block.align,
2422
- "onUpdate:modelValue": n[6] ||= (e) => w("align", e)
2440
+ "onUpdate:modelValue": n[6] ||= (e) => S("align", e)
2423
2441
  }, null, 8, ["options", "model-value"])]),
2424
- D("div", po, [
2425
- D("label", { class: E(x(q)) }, _(x(i).image.linkUrl), 3),
2426
- P($, {
2442
+ E("div", mo, [
2443
+ E("label", { class: O(x(q)) }, C(x(i).image.linkUrl), 3),
2444
+ N($, {
2427
2445
  "model-value": e.block.linkUrl || "",
2428
2446
  type: "url",
2429
2447
  placeholder: x(i).image.imageUrlPlaceholder,
2430
- "onUpdate:modelValue": n[7] ||= (e) => w("linkUrl", e)
2448
+ "onUpdate:modelValue": n[7] ||= (e) => S("linkUrl", e)
2431
2449
  }, null, 8, ["model-value", "placeholder"]),
2432
- e.block.linkUrl ? (s(), C(Z, {
2450
+ e.block.linkUrl ? (s(), w(Z, {
2433
2451
  key: 0,
2434
2452
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2435
2453
  "model-value": e.block.linkOpenInNewTab ?? !1,
2436
2454
  label: x(i).image.openInNewTab,
2437
- "onUpdate:modelValue": n[8] ||= (e) => w("linkOpenInNewTab", e)
2455
+ "onUpdate:modelValue": n[8] ||= (e) => S("linkOpenInNewTab", e)
2438
2456
  }, null, 8, ["model-value", "label"])) : b("", !0)
2439
2457
  ])
2440
2458
  ], 64));
2441
2459
  }
2442
- }), go = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, _o = { class: "tpl:flex tpl:items-center tpl:gap-2" }, vo = [
2460
+ }), _o = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, vo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, yo = [
2443
2461
  "value",
2444
2462
  "placeholder",
2445
2463
  "onInput"
2446
- ], yo = ["title", "onClick"], bo = { 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)]" }, xo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, So = ["value"], Co = { value: "" }, wo = ["value"], To = ["value"], Eo = /* @__PURE__ */ N({
2464
+ ], bo = ["title", "onClick"], xo = { 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)]" }, So = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Co = ["value"], wo = { value: "" }, To = ["value"], Eo = ["value"], Do = /* @__PURE__ */ M({
2447
2465
  __name: "MenuToolbar",
2448
2466
  props: {
2449
2467
  block: {},
@@ -2486,7 +2504,7 @@ var Pa = {
2486
2504
  }
2487
2505
  function l() {
2488
2506
  let e = {
2489
- id: L(),
2507
+ id: I(),
2490
2508
  text: "",
2491
2509
  url: "",
2492
2510
  openInNewTab: !1,
@@ -2505,27 +2523,27 @@ var Pa = {
2505
2523
  function p(e) {
2506
2524
  r("update", { items: n.block.items.filter((t) => t.id !== e) });
2507
2525
  }
2508
- return (t, n) => (s(), y(j, null, [
2509
- P(Q, { label: x(i).menu.items }, {
2510
- default: f(() => [D("div", go, [(s(!0), y(j, null, u(e.block.items, (t) => (s(), y("div", {
2526
+ return (t, n) => (s(), y(A, null, [
2527
+ N(Q, { label: x(i).menu.items }, {
2528
+ default: f(() => [E("div", _o, [(s(!0), y(A, null, u(e.block.items, (t) => (s(), y("div", {
2511
2529
  key: t.id,
2512
2530
  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"
2513
2531
  }, [
2514
- D("div", _o, [D("input", {
2532
+ E("div", vo, [E("input", {
2515
2533
  type: "text",
2516
- class: E([x(K), "tpl:flex-1"]),
2534
+ class: O([x(K), "tpl:flex-1"]),
2517
2535
  value: t.text,
2518
2536
  placeholder: x(i).menu.text,
2519
2537
  onInput: (e) => d(t.id, "text", e.target.value)
2520
- }, null, 42, vo), D("button", {
2521
- class: E(x(Yt)),
2538
+ }, null, 42, yo), E("button", {
2539
+ class: O(x(Yt)),
2522
2540
  title: x(i).menu.removeItem,
2523
2541
  onClick: (e) => p(t.id)
2524
- }, [P(x(jt), {
2542
+ }, [N(x(jt), {
2525
2543
  size: 14,
2526
2544
  "stroke-width": 2
2527
- })], 10, yo)]),
2528
- P($, {
2545
+ })], 10, bo)]),
2546
+ N($, {
2529
2547
  "model-value": t.url,
2530
2548
  type: "url",
2531
2549
  placeholder: x(i).menu.urlPlaceholder,
@@ -2535,7 +2553,7 @@ var Pa = {
2535
2553
  "placeholder",
2536
2554
  "onUpdate:modelValue"
2537
2555
  ]),
2538
- D("div", bo, [(s(!0), y(j, null, u(a.value, (e) => (s(), C(Z, {
2556
+ E("div", xo, [(s(!0), y(A, null, u(a.value, (e) => (s(), w(Z, {
2539
2557
  key: e.key,
2540
2558
  "model-value": t[e.key],
2541
2559
  label: e.label,
@@ -2545,33 +2563,33 @@ var Pa = {
2545
2563
  "label",
2546
2564
  "onUpdate:modelValue"
2547
2565
  ]))), 128))]),
2548
- D("div", xo, [D("label", { class: E([x(q), "tpl:!mb-0"]) }, _(x(i).menu.color), 3), P(X, {
2566
+ E("div", So, [E("label", { class: O([x(q), "tpl:!mb-0"]) }, C(x(i).menu.color), 3), N(X, {
2549
2567
  "swatch-only": "",
2550
2568
  "model-value": t.color || e.block.linkColor || e.block.color || "",
2551
2569
  "onUpdate:modelValue": (e) => d(t.id, "color", e)
2552
2570
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
2553
- ]))), 128)), D("button", {
2554
- class: E(x(Qt)),
2571
+ ]))), 128)), E("button", {
2572
+ class: O(x(Qt)),
2555
2573
  onClick: l
2556
- }, [P(x(G), {
2574
+ }, [N(x(G), {
2557
2575
  size: 14,
2558
2576
  "stroke-width": 2
2559
- }), M(" " + _(x(i).menu.addItem), 1)], 2)])]),
2577
+ }), j(" " + C(x(i).menu.addItem), 1)], 2)])]),
2560
2578
  _: 1
2561
2579
  }, 8, ["label"]),
2562
- P(Q, { label: x(i).menu.fontFamily }, {
2563
- default: f(() => [D("select", {
2564
- class: E(x(K)),
2580
+ N(Q, { label: x(i).menu.fontFamily }, {
2581
+ default: f(() => [E("select", {
2582
+ class: O(x(K)),
2565
2583
  value: e.block.fontFamily || "",
2566
2584
  onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
2567
- }, [D("option", Co, _(x(i).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
2585
+ }, [E("option", wo, C(x(i).title.inheritFont), 1), (s(!0), y(A, null, u(e.fontFamilies, (e) => (s(), y("option", {
2568
2586
  key: e.value,
2569
2587
  value: e.value
2570
- }, _(e.label), 9, wo))), 128))], 42, So)]),
2588
+ }, C(e.label), 9, To))), 128))], 42, Co)]),
2571
2589
  _: 1
2572
2590
  }, 8, ["label"]),
2573
- P(Q, { label: x(i).menu.fontSize }, {
2574
- default: f(() => [P(an, {
2591
+ N(Q, { label: x(i).menu.fontSize }, {
2592
+ default: f(() => [N(an, {
2575
2593
  "model-value": e.block.fontSize,
2576
2594
  min: 8,
2577
2595
  max: 48,
@@ -2580,46 +2598,46 @@ var Pa = {
2580
2598
  }, null, 8, ["model-value"])]),
2581
2599
  _: 1
2582
2600
  }, 8, ["label"]),
2583
- P(Q, { label: x(i).menu.color }, {
2584
- default: f(() => [P(X, {
2601
+ N(Q, { label: x(i).menu.color }, {
2602
+ default: f(() => [N(X, {
2585
2603
  "model-value": e.block.color ?? "",
2586
2604
  "onUpdate:modelValue": n[2] ||= (e) => c("color", e || void 0)
2587
2605
  }, null, 8, ["model-value"])]),
2588
2606
  _: 1
2589
2607
  }, 8, ["label"]),
2590
- P(Q, { label: x(i).menu.linkColor }, {
2591
- default: f(() => [P(X, {
2608
+ N(Q, { label: x(i).menu.linkColor }, {
2609
+ default: f(() => [N(X, {
2592
2610
  "model-value": e.block.linkColor || e.block.color || "",
2593
2611
  "onUpdate:modelValue": n[3] ||= (e) => c("linkColor", e || void 0)
2594
2612
  }, null, 8, ["model-value"])]),
2595
2613
  _: 1
2596
2614
  }, 8, ["label"]),
2597
- P(Q, { label: x(i).menu.textAlign }, {
2598
- default: f(() => [P(rn, {
2615
+ N(Q, { label: x(i).menu.textAlign }, {
2616
+ default: f(() => [N(rn, {
2599
2617
  options: o.value,
2600
2618
  "model-value": e.block.textAlign,
2601
2619
  "onUpdate:modelValue": n[4] ||= (e) => c("textAlign", e)
2602
2620
  }, null, 8, ["options", "model-value"])]),
2603
2621
  _: 1
2604
2622
  }, 8, ["label"]),
2605
- P(Q, { label: x(i).menu.separator }, {
2606
- default: f(() => [D("input", {
2623
+ N(Q, { label: x(i).menu.separator }, {
2624
+ default: f(() => [E("input", {
2607
2625
  type: "text",
2608
- class: E(x(K)),
2626
+ class: O(x(K)),
2609
2627
  value: e.block.separator,
2610
2628
  onInput: n[5] ||= (e) => c("separator", e.target.value)
2611
- }, null, 42, To)]),
2629
+ }, null, 42, Eo)]),
2612
2630
  _: 1
2613
2631
  }, 8, ["label"]),
2614
- P(Q, { label: x(i).menu.separatorColor }, {
2615
- default: f(() => [P(X, {
2632
+ N(Q, { label: x(i).menu.separatorColor }, {
2633
+ default: f(() => [N(X, {
2616
2634
  "model-value": e.block.separatorColor,
2617
2635
  "onUpdate:modelValue": n[6] ||= (e) => c("separatorColor", e)
2618
2636
  }, null, 8, ["model-value"])]),
2619
2637
  _: 1
2620
2638
  }, 8, ["label"]),
2621
- P(Q, { label: x(i).menu.spacing }, {
2622
- default: f(() => [P(an, {
2639
+ N(Q, { label: x(i).menu.spacing }, {
2640
+ default: f(() => [N(an, {
2623
2641
  "model-value": e.block.spacing,
2624
2642
  min: 0,
2625
2643
  max: 50,
@@ -2633,11 +2651,11 @@ var Pa = {
2633
2651
  });
2634
2652
  //#endregion
2635
2653
  //#region src/utils/rebalanceColumnChildren.ts
2636
- function Do(e) {
2654
+ function Oo(e) {
2637
2655
  return e === "1" ? 1 : e === "3" ? 3 : 2;
2638
2656
  }
2639
- function Oo(e, t) {
2640
- let n = Do(t);
2657
+ function ko(e, t) {
2658
+ let n = Oo(t);
2641
2659
  if (e.length === n) return e;
2642
2660
  if (e.length < n) {
2643
2661
  let t = Array.from({ length: n - e.length }, () => []);
@@ -2648,13 +2666,13 @@ function Oo(e, t) {
2648
2666
  }
2649
2667
  //#endregion
2650
2668
  //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
2651
- var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2669
+ var Ao = { class: "tpl:mb-3.5" }, jo = ["value"], Mo = ["value"], No = {
2652
2670
  key: 0,
2653
2671
  class: "tpl:mb-3.5"
2654
- }, No = { class: "tpl:mb-3.5" }, Po = { class: "tpl:flex tpl:items-stretch" }, Fo = ["value"], Io = { class: "tpl:mb-3.5" }, Lo = {
2672
+ }, Po = { class: "tpl:mb-3.5" }, Fo = { class: "tpl:flex tpl:items-stretch" }, Io = ["value"], Lo = { class: "tpl:mb-3.5" }, Ro = {
2655
2673
  key: 0,
2656
2674
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
2657
- }, Ro = { class: "tpl:flex tpl:items-stretch" }, zo = ["value"], Bo = /* @__PURE__ */ N({
2675
+ }, zo = { class: "tpl:flex tpl:items-stretch" }, Bo = ["value"], Vo = /* @__PURE__ */ M({
2658
2676
  __name: "SectionToolbar",
2659
2677
  props: { block: {} },
2660
2678
  emits: ["update"],
@@ -2682,7 +2700,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2682
2700
  }
2683
2701
  ]);
2684
2702
  function o(e) {
2685
- let t = e.target.value, i = Oo(n.block.children, t);
2703
+ let t = e.target.value, i = ko(n.block.children, t);
2686
2704
  r("update", {
2687
2705
  columns: t,
2688
2706
  children: i
@@ -2715,40 +2733,40 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2715
2733
  function m(e) {
2716
2734
  f({ borderRadius: Number(e.target.value) });
2717
2735
  }
2718
- return (t, n) => (s(), y(j, null, [
2719
- D("div", ko, [D("label", { class: E(x(q)) }, _(x(i).section.columns), 3), D("select", {
2720
- class: E(x(K)),
2736
+ return (t, n) => (s(), y(A, null, [
2737
+ E("div", Ao, [E("label", { class: O(x(q)) }, C(x(i).section.columns), 3), E("select", {
2738
+ class: O(x(K)),
2721
2739
  value: e.block.columns,
2722
2740
  onChange: o
2723
- }, [(s(!0), y(j, null, u(a.value, (e) => (s(), y("option", {
2741
+ }, [(s(!0), y(A, null, u(a.value, (e) => (s(), y("option", {
2724
2742
  key: e.value,
2725
2743
  value: e.value
2726
- }, _(e.label), 9, jo))), 128))], 42, Ao)]),
2727
- e.block.columns === "1" ? b("", !0) : (s(), y("div", Mo, [P(Z, {
2744
+ }, C(e.label), 9, Mo))), 128))], 42, jo)]),
2745
+ e.block.columns === "1" ? b("", !0) : (s(), y("div", No, [N(Z, {
2728
2746
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2729
2747
  "model-value": e.block.stackOnMobile !== !1,
2730
2748
  label: x(i).section.stackOnMobile,
2731
2749
  "onUpdate:modelValue": n[0] ||= (e) => c(e)
2732
2750
  }, null, 8, ["model-value", "label"])])),
2733
- D("div", No, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", Po, [D("input", {
2751
+ E("div", Po, [E("label", { class: O(x(q)) }, C(x(i).section.borderRadius), 3), E("div", Fo, [E("input", {
2734
2752
  type: "number",
2735
- class: E(x(Y)),
2753
+ class: O(x(Y)),
2736
2754
  value: e.block.borderRadius ?? 0,
2737
2755
  min: "0",
2738
2756
  max: "50",
2739
2757
  onInput: l
2740
- }, null, 42, Fo), D("span", { class: E(x(J)) }, "px", 2)])]),
2741
- D("div", Io, [P(Z, {
2758
+ }, null, 42, Io), E("span", { class: O(x(J)) }, "px", 2)])]),
2759
+ E("div", Lo, [N(Z, {
2742
2760
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2743
2761
  "model-value": !!e.block.wrapper,
2744
2762
  label: x(i).section.wrapperEnable,
2745
2763
  "onUpdate:modelValue": n[1] ||= (e) => d(e)
2746
- }, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), y("div", Lo, [
2747
- D("div", null, [D("label", { class: E(x(q)) }, _(x(i).blockSettings.color), 3), P(X, {
2764
+ }, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), y("div", Ro, [
2765
+ E("div", null, [E("label", { class: O(x(q)) }, C(x(i).blockSettings.color), 3), N(X, {
2748
2766
  "model-value": e.block.wrapper.backgroundColor ?? "",
2749
2767
  "onUpdate:modelValue": n[2] ||= (e) => f({ backgroundColor: e })
2750
2768
  }, null, 8, ["model-value"])]),
2751
- P(Ri, {
2769
+ N(zi, {
2752
2770
  label: x(i).blockSettings.padding,
2753
2771
  "model-value": e.block.wrapper.padding ?? {
2754
2772
  top: 0,
@@ -2758,18 +2776,18 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2758
2776
  },
2759
2777
  "onUpdate:modelValue": p
2760
2778
  }, null, 8, ["label", "model-value"]),
2761
- D("div", null, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", Ro, [D("input", {
2779
+ E("div", null, [E("label", { class: O(x(q)) }, C(x(i).section.borderRadius), 3), E("div", zo, [E("input", {
2762
2780
  type: "number",
2763
- class: E(x(Y)),
2781
+ class: O(x(Y)),
2764
2782
  value: e.block.wrapper.borderRadius ?? 0,
2765
2783
  min: "0",
2766
2784
  max: "50",
2767
2785
  onInput: m
2768
- }, null, 42, zo), D("span", { class: E(x(J)) }, "px", 2)])])
2786
+ }, null, 42, Bo), E("span", { class: O(x(J)) }, "px", 2)])])
2769
2787
  ])) : b("", !0)])
2770
2788
  ], 64));
2771
2789
  }
2772
- }), Vo = { class: "tpl:mb-3.5" }, Ho = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Uo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Wo = ["value", "onChange"], Go = ["value"], Ko = ["title", "onClick"], qo = { class: "tpl:mb-3.5" }, Jo = ["value"], Yo = { value: "solid" }, Xo = { value: "outlined" }, Zo = { value: "rounded" }, Qo = { value: "square" }, $o = { value: "circle" }, es = { class: "tpl:mb-3.5" }, ts = { class: "tpl:mb-3.5" }, ns = { class: "tpl:flex tpl:items-stretch" }, rs = ["value"], is = { class: "tpl:mb-3.5" }, as = /* @__PURE__ */ N({
2790
+ }), Ho = { class: "tpl:mb-3.5" }, Uo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Wo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Go = ["value", "onChange"], Ko = ["value"], qo = ["title", "onClick"], Jo = { class: "tpl:mb-3.5" }, Yo = ["value"], Xo = { value: "solid" }, Zo = { value: "outlined" }, Qo = { value: "rounded" }, $o = { value: "square" }, es = { value: "circle" }, ts = { class: "tpl:mb-3.5" }, ns = { class: "tpl:mb-3.5" }, rs = { class: "tpl:flex tpl:items-stretch" }, is = ["value"], as = { class: "tpl:mb-3.5" }, os = /* @__PURE__ */ M({
2773
2791
  __name: "SocialToolbar",
2774
2792
  props: { block: {} },
2775
2793
  emits: ["update"],
@@ -2780,7 +2798,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2780
2798
  }
2781
2799
  function o() {
2782
2800
  let e = {
2783
- id: L(),
2801
+ id: I(),
2784
2802
  platform: "facebook",
2785
2803
  url: ""
2786
2804
  };
@@ -2796,26 +2814,26 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2796
2814
  function l(e) {
2797
2815
  r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2798
2816
  }
2799
- return (t, n) => (s(), y(j, null, [
2800
- D("div", Vo, [D("label", { class: E(x(q)) }, _(x(i).social.icons), 3), D("div", Ho, [(s(!0), y(j, null, u(e.block.icons, (e) => (s(), y("div", {
2817
+ return (t, n) => (s(), y(A, null, [
2818
+ E("div", Ho, [E("label", { class: O(x(q)) }, C(x(i).social.icons), 3), E("div", Uo, [(s(!0), y(A, null, u(e.block.icons, (e) => (s(), y("div", {
2801
2819
  key: e.id,
2802
2820
  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"
2803
- }, [D("div", Uo, [D("select", {
2821
+ }, [E("div", Wo, [E("select", {
2804
2822
  "data-testid": "social-platform-select",
2805
- class: E([x(K), "tpl:flex-1"]),
2823
+ class: O([x(K), "tpl:flex-1"]),
2806
2824
  value: e.platform,
2807
2825
  onChange: (t) => c(e.id, "platform", t.target.value)
2808
- }, [(s(!0), y(j, null, u(x(Se), (e) => (s(), y("option", {
2826
+ }, [(s(!0), y(A, null, u(x(Se), (e) => (s(), y("option", {
2809
2827
  key: e,
2810
2828
  value: e
2811
- }, _(x(i).social.platforms[e]), 9, Go))), 128))], 42, Wo), D("button", {
2812
- class: E(x(Yt)),
2829
+ }, C(x(i).social.platforms[e]), 9, Ko))), 128))], 42, Go), E("button", {
2830
+ class: O(x(Yt)),
2813
2831
  title: x(i).social.removeIcon,
2814
2832
  onClick: (t) => l(e.id)
2815
- }, [P(x(jt), {
2833
+ }, [N(x(jt), {
2816
2834
  size: 14,
2817
2835
  "stroke-width": 2
2818
- })], 10, Ko)]), P($, {
2836
+ })], 10, qo)]), N($, {
2819
2837
  "model-value": e.url,
2820
2838
  type: "url",
2821
2839
  placeholder: x(i).social.urlPlaceholder,
@@ -2824,25 +2842,25 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2824
2842
  "model-value",
2825
2843
  "placeholder",
2826
2844
  "onUpdate:modelValue"
2827
- ])]))), 128)), D("button", {
2828
- class: E(x(Qt)),
2845
+ ])]))), 128)), E("button", {
2846
+ class: O(x(Qt)),
2829
2847
  onClick: o
2830
- }, [P(x(G), {
2848
+ }, [N(x(G), {
2831
2849
  size: 14,
2832
2850
  "stroke-width": 2
2833
- }), M(" " + _(x(i).social.addIcon), 1)], 2)])]),
2834
- D("div", qo, [D("label", { class: E(x(q)) }, _(x(i).social.style), 3), D("select", {
2835
- class: E(x(K)),
2851
+ }), j(" " + C(x(i).social.addIcon), 1)], 2)])]),
2852
+ E("div", Jo, [E("label", { class: O(x(q)) }, C(x(i).social.style), 3), E("select", {
2853
+ class: O(x(K)),
2836
2854
  value: e.block.iconStyle,
2837
2855
  onChange: n[0] ||= (e) => a("iconStyle", e.target.value)
2838
2856
  }, [
2839
- D("option", Yo, _(x(i).social.styleSolid), 1),
2840
- D("option", Xo, _(x(i).social.styleOutlined), 1),
2841
- D("option", Zo, _(x(i).social.styleRounded), 1),
2842
- D("option", Qo, _(x(i).social.styleSquare), 1),
2843
- D("option", $o, _(x(i).social.styleCircle), 1)
2844
- ], 42, Jo)]),
2845
- D("div", es, [D("label", { class: E(x(q)) }, _(x(i).social.size), 3), P(rn, {
2857
+ E("option", Xo, C(x(i).social.styleSolid), 1),
2858
+ E("option", Zo, C(x(i).social.styleOutlined), 1),
2859
+ E("option", Qo, C(x(i).social.styleRounded), 1),
2860
+ E("option", $o, C(x(i).social.styleSquare), 1),
2861
+ E("option", es, C(x(i).social.styleCircle), 1)
2862
+ ], 42, Yo)]),
2863
+ E("div", ts, [E("label", { class: O(x(q)) }, C(x(i).social.size), 3), N(rn, {
2846
2864
  options: [
2847
2865
  {
2848
2866
  value: "small",
@@ -2860,15 +2878,15 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2860
2878
  "model-value": e.block.iconSize,
2861
2879
  "onUpdate:modelValue": n[1] ||= (e) => a("iconSize", e)
2862
2880
  }, null, 8, ["options", "model-value"])]),
2863
- D("div", ts, [D("label", { class: E(x(q)) }, _(x(i).social.spacing), 3), D("div", ns, [D("input", {
2881
+ E("div", ns, [E("label", { class: O(x(q)) }, C(x(i).social.spacing), 3), E("div", rs, [E("input", {
2864
2882
  type: "number",
2865
- class: E(x(Y)),
2883
+ class: O(x(Y)),
2866
2884
  value: e.block.spacing,
2867
2885
  min: "0",
2868
2886
  max: "50",
2869
2887
  onInput: n[2] ||= (e) => a("spacing", Number(e.target.value))
2870
- }, null, 42, rs), D("span", { class: E(x(J)) }, "px", 2)])]),
2871
- D("div", is, [D("label", { class: E(x(q)) }, _(x(i).social.align), 3), P(rn, {
2888
+ }, null, 42, is), E("span", { class: O(x(J)) }, "px", 2)])]),
2889
+ E("div", as, [E("label", { class: O(x(q)) }, C(x(i).social.align), 3), N(rn, {
2872
2890
  options: [
2873
2891
  {
2874
2892
  value: "left",
@@ -2891,36 +2909,36 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2891
2909
  }, null, 8, ["options", "model-value"])])
2892
2910
  ], 64));
2893
2911
  }
2894
- }), os = { class: "tpl:mb-3.5" }, ss = { class: "tpl:flex tpl:items-stretch" }, cs = ["value"], ls = ["value"], us = /* @__PURE__ */ N({
2912
+ }), ss = { class: "tpl:mb-3.5" }, cs = { class: "tpl:flex tpl:items-stretch" }, ls = ["value"], us = ["value"], ds = /* @__PURE__ */ M({
2895
2913
  __name: "SpacerToolbar",
2896
2914
  props: { block: {} },
2897
2915
  emits: ["update"],
2898
2916
  setup(e, { emit: t }) {
2899
2917
  let n = t, { t: r } = W();
2900
- return (t, i) => (s(), y("div", os, [
2901
- D("label", { class: E(x(q)) }, _(x(r).spacer.height), 3),
2902
- D("div", ss, [D("input", {
2918
+ return (t, i) => (s(), y("div", ss, [
2919
+ E("label", { class: O(x(q)) }, C(x(r).spacer.height), 3),
2920
+ E("div", cs, [E("input", {
2903
2921
  type: "number",
2904
- class: E(x(Y)),
2922
+ class: O(x(Y)),
2905
2923
  value: e.block.height,
2906
2924
  min: "10",
2907
2925
  max: "100",
2908
2926
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
2909
- }, null, 42, cs), D("span", { class: E(x(J)) }, "px", 2)]),
2910
- D("input", {
2927
+ }, null, 42, ls), E("span", { class: O(x(J)) }, "px", 2)]),
2928
+ E("input", {
2911
2929
  type: "range",
2912
2930
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
2913
2931
  value: e.block.height,
2914
2932
  min: "10",
2915
2933
  max: "100",
2916
2934
  onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
2917
- }, null, 40, ls)
2935
+ }, null, 40, us)
2918
2936
  ]));
2919
2937
  }
2920
- }), ds = { class: "tpl:mb-3.5" }, fs = { class: "tpl:flex tpl:items-center tpl:gap-3" }, ps = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ms = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, hs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, gs = ["disabled"], _s = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, vs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ys = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, bs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, xs = ["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" }, ws = {
2938
+ }), fs = { class: "tpl:mb-3.5" }, ps = { class: "tpl:flex tpl:items-center tpl:gap-3" }, ms = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, hs = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, gs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, _s = ["disabled"], vs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ys = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, bs = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, xs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ss = ["disabled"], Cs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ws = { class: "tpl:mb-3.5" }, Ts = {
2921
2939
  key: 0,
2922
2940
  class: "tpl:mb-3.5"
2923
- }, Ts = { class: "tpl:mb-3.5" }, Es = { class: "tpl:mb-3.5" }, Ds = { class: "tpl:flex tpl:items-stretch" }, Os = ["value"], ks = { class: "tpl:mb-3.5" }, As = { class: "tpl:flex tpl:items-stretch" }, js = ["value"], Ms = { class: "tpl:mb-3.5" }, Ns = ["value"], Ps = { value: "" }, Fs = ["value"], Is = { class: "tpl:mb-3.5" }, Ls = { class: "tpl:flex tpl:items-stretch" }, Rs = ["value"], zs = { class: "tpl:mb-3.5" }, Bs = { class: "tpl:mb-3.5" }, Vs = /* @__PURE__ */ N({
2941
+ }, Es = { class: "tpl:mb-3.5" }, Ds = { class: "tpl:mb-3.5" }, Os = { class: "tpl:flex tpl:items-stretch" }, ks = ["value"], As = { class: "tpl:mb-3.5" }, js = { class: "tpl:flex tpl:items-stretch" }, Ms = ["value"], Ns = { class: "tpl:mb-3.5" }, Ps = ["value"], Fs = { value: "" }, Is = ["value"], Ls = { class: "tpl:mb-3.5" }, Rs = { class: "tpl:flex tpl:items-stretch" }, zs = ["value"], Bs = { class: "tpl:mb-3.5" }, Vs = { class: "tpl:mb-3.5" }, Hs = /* @__PURE__ */ M({
2924
2942
  __name: "TableToolbar",
2925
2943
  props: {
2926
2944
  block: {},
@@ -2934,9 +2952,9 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2934
2952
  }
2935
2953
  function c() {
2936
2954
  let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
2937
- id: L(),
2955
+ id: I(),
2938
2956
  cells: Array.from({ length: e }, () => ({
2939
- id: L(),
2957
+ id: I(),
2940
2958
  content: ""
2941
2959
  }))
2942
2960
  };
@@ -2949,7 +2967,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2949
2967
  let e = n.block.rows.map((e) => ({
2950
2968
  ...e,
2951
2969
  cells: [...e.cells, {
2952
- id: L(),
2970
+ id: I(),
2953
2971
  content: ""
2954
2972
  }]
2955
2973
  }));
@@ -2962,49 +2980,49 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
2962
2980
  }));
2963
2981
  r("update", { rows: t });
2964
2982
  }
2965
- return (t, n) => (s(), y(j, null, [
2966
- D("div", ds, [D("label", { class: E(x(q)) }, _(x(i).table.dimensions), 3), D("div", fs, [D("div", ps, [D("span", ms, _(x(i).table.rows), 1), D("div", hs, [
2967
- D("button", {
2983
+ return (t, n) => (s(), y(A, null, [
2984
+ E("div", fs, [E("label", { class: O(x(q)) }, C(x(i).table.dimensions), 3), E("div", ps, [E("div", ms, [E("span", hs, C(x(i).table.rows), 1), E("div", gs, [
2985
+ E("button", {
2968
2986
  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",
2969
2987
  disabled: e.block.rows.length <= 1,
2970
2988
  onClick: n[0] ||= (t) => l(e.block.rows[e.block.rows.length - 1].id)
2971
- }, [P(x(wt), {
2989
+ }, [N(x(wt), {
2972
2990
  size: 12,
2973
2991
  "stroke-width": 2
2974
- })], 8, gs),
2975
- D("span", _s, _(e.block.rows.length), 1),
2976
- D("button", {
2992
+ })], 8, _s),
2993
+ E("span", vs, C(e.block.rows.length), 1),
2994
+ E("button", {
2977
2995
  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)]",
2978
2996
  onClick: c
2979
- }, [P(x(G), {
2997
+ }, [N(x(G), {
2980
2998
  size: 12,
2981
2999
  "stroke-width": 2
2982
3000
  })])
2983
- ])]), D("div", vs, [D("span", ys, _(x(i).table.columns), 1), D("div", bs, [
2984
- D("button", {
3001
+ ])]), E("div", ys, [E("span", bs, C(x(i).table.columns), 1), E("div", xs, [
3002
+ E("button", {
2985
3003
  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",
2986
3004
  disabled: a.value <= 1,
2987
3005
  onClick: n[1] ||= (e) => f(a.value - 1)
2988
- }, [P(x(wt), {
3006
+ }, [N(x(wt), {
2989
3007
  size: 12,
2990
3008
  "stroke-width": 2
2991
- })], 8, xs),
2992
- D("span", Ss, _(a.value), 1),
2993
- D("button", {
3009
+ })], 8, Ss),
3010
+ E("span", Cs, C(a.value), 1),
3011
+ E("button", {
2994
3012
  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)]",
2995
3013
  onClick: d
2996
- }, [P(x(G), {
3014
+ }, [N(x(G), {
2997
3015
  size: 12,
2998
3016
  "stroke-width": 2
2999
3017
  })])
3000
3018
  ])])])]),
3001
- D("div", Cs, [P(Z, {
3019
+ E("div", ws, [N(Z, {
3002
3020
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
3003
3021
  "model-value": e.block.hasHeaderRow,
3004
3022
  label: x(i).table.hasHeaderRow,
3005
3023
  "onUpdate:modelValue": n[2] ||= (e) => o("hasHeaderRow", e)
3006
3024
  }, null, 8, ["model-value", "label"])]),
3007
- e.block.hasHeaderRow ? (s(), y("div", ws, [D("label", { class: E(x(q)) }, _(x(i).table.headerBackgroundColor), 3), P(X, {
3025
+ e.block.hasHeaderRow ? (s(), y("div", Ts, [E("label", { class: O(x(q)) }, C(x(i).table.headerBackgroundColor), 3), N(X, {
3008
3026
  "model-value": e.block.headerBackgroundColor ?? "",
3009
3027
  "seed-color": x(Zt),
3010
3028
  placeholder: x(i).table.noHeaderBg,
@@ -3014,47 +3032,47 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3014
3032
  "seed-color",
3015
3033
  "placeholder"
3016
3034
  ])])) : b("", !0),
3017
- D("div", Ts, [D("label", { class: E(x(q)) }, _(x(i).table.borderColor), 3), P(X, {
3035
+ E("div", Es, [E("label", { class: O(x(q)) }, C(x(i).table.borderColor), 3), N(X, {
3018
3036
  "model-value": e.block.borderColor,
3019
3037
  "onUpdate:modelValue": n[4] ||= (e) => o("borderColor", e)
3020
3038
  }, null, 8, ["model-value"])]),
3021
- D("div", Es, [D("label", { class: E(x(q)) }, _(x(i).table.borderWidth), 3), D("div", Ds, [D("input", {
3039
+ E("div", Ds, [E("label", { class: O(x(q)) }, C(x(i).table.borderWidth), 3), E("div", Os, [E("input", {
3022
3040
  type: "number",
3023
- class: E(x(Y)),
3041
+ class: O(x(Y)),
3024
3042
  value: e.block.borderWidth,
3025
3043
  min: "0",
3026
3044
  max: "10",
3027
3045
  onInput: n[5] ||= (e) => o("borderWidth", Number(e.target.value))
3028
- }, null, 42, Os), D("span", { class: E(x(J)) }, "px", 2)])]),
3029
- D("div", ks, [D("label", { class: E(x(q)) }, _(x(i).table.cellPadding), 3), D("div", As, [D("input", {
3046
+ }, null, 42, ks), E("span", { class: O(x(J)) }, "px", 2)])]),
3047
+ E("div", As, [E("label", { class: O(x(q)) }, C(x(i).table.cellPadding), 3), E("div", js, [E("input", {
3030
3048
  type: "number",
3031
- class: E(x(Y)),
3049
+ class: O(x(Y)),
3032
3050
  value: e.block.cellPadding,
3033
3051
  min: "0",
3034
3052
  max: "30",
3035
3053
  onInput: n[6] ||= (e) => o("cellPadding", Number(e.target.value))
3036
- }, null, 42, js), D("span", { class: E(x(J)) }, "px", 2)])]),
3037
- D("div", Ms, [D("label", { class: E(x(q)) }, _(x(i).table.fontFamily), 3), D("select", {
3038
- class: E(x(K)),
3054
+ }, null, 42, Ms), E("span", { class: O(x(J)) }, "px", 2)])]),
3055
+ E("div", Ns, [E("label", { class: O(x(q)) }, C(x(i).table.fontFamily), 3), E("select", {
3056
+ class: O(x(K)),
3039
3057
  value: e.block.fontFamily || "",
3040
3058
  onChange: n[7] ||= (e) => o("fontFamily", e.target.value || void 0)
3041
- }, [D("option", Ps, _(x(i).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
3059
+ }, [E("option", Fs, C(x(i).title.inheritFont), 1), (s(!0), y(A, null, u(e.fontFamilies, (e) => (s(), y("option", {
3042
3060
  key: e.value,
3043
3061
  value: e.value
3044
- }, _(e.label), 9, Fs))), 128))], 42, Ns)]),
3045
- D("div", Is, [D("label", { class: E(x(q)) }, _(x(i).table.fontSize), 3), D("div", Ls, [D("input", {
3062
+ }, C(e.label), 9, Is))), 128))], 42, Ps)]),
3063
+ E("div", Ls, [E("label", { class: O(x(q)) }, C(x(i).table.fontSize), 3), E("div", Rs, [E("input", {
3046
3064
  type: "number",
3047
- class: E(x(Y)),
3065
+ class: O(x(Y)),
3048
3066
  value: e.block.fontSize,
3049
3067
  min: "10",
3050
3068
  max: "32",
3051
3069
  onInput: n[8] ||= (e) => o("fontSize", Number(e.target.value))
3052
- }, null, 42, Rs), D("span", { class: E(x(J)) }, "px", 2)])]),
3053
- D("div", zs, [D("label", { class: E(x(q)) }, _(x(i).table.color), 3), P(X, {
3070
+ }, null, 42, zs), E("span", { class: O(x(J)) }, "px", 2)])]),
3071
+ E("div", Bs, [E("label", { class: O(x(q)) }, C(x(i).table.color), 3), N(X, {
3054
3072
  "model-value": e.block.color ?? "",
3055
3073
  "onUpdate:modelValue": n[9] ||= (e) => o("color", e || void 0)
3056
3074
  }, null, 8, ["model-value"])]),
3057
- D("div", Bs, [D("label", { class: E(x(q)) }, _(x(i).table.textAlign), 3), P(rn, {
3075
+ E("div", Vs, [E("label", { class: O(x(q)) }, C(x(i).table.textAlign), 3), N(rn, {
3058
3076
  options: [
3059
3077
  {
3060
3078
  value: "left",
@@ -3077,7 +3095,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3077
3095
  }, null, 8, ["options", "model-value"])])
3078
3096
  ], 64));
3079
3097
  }
3080
- }), Hs = { class: "tpl:mb-3.5" }, Us = ["value"], Ws = { value: 1 }, Gs = { value: 2 }, Ks = { value: 3 }, qs = { value: 4 }, Js = { class: "tpl:mb-3.5" }, Ys = ["value"], Xs = { value: "" }, Zs = ["value"], Qs = { class: "tpl:mb-3.5" }, $s = { class: "tpl:mb-3.5" }, ec = /* @__PURE__ */ N({
3098
+ }), Us = { class: "tpl:mb-3.5" }, Ws = ["value"], Gs = { value: 1 }, Ks = { value: 2 }, qs = { value: 3 }, Js = { value: 4 }, Ys = { class: "tpl:mb-3.5" }, Xs = ["value"], Zs = { value: "" }, Qs = ["value"], $s = { class: "tpl:mb-3.5" }, ec = { class: "tpl:mb-3.5" }, tc = /* @__PURE__ */ M({
3081
3099
  __name: "TitleToolbar",
3082
3100
  props: {
3083
3101
  block: {},
@@ -3089,30 +3107,30 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3089
3107
  function i(e, t) {
3090
3108
  n("update", { [e]: t });
3091
3109
  }
3092
- return (t, n) => (s(), y(j, null, [
3093
- D("div", Hs, [D("label", { class: E(x(q)) }, _(x(r).title.level), 3), D("select", {
3094
- class: E(x(K)),
3110
+ return (t, n) => (s(), y(A, null, [
3111
+ E("div", Us, [E("label", { class: O(x(q)) }, C(x(r).title.level), 3), E("select", {
3112
+ class: O(x(K)),
3095
3113
  value: e.block.level,
3096
3114
  onChange: n[0] ||= (e) => i("level", Number(e.target.value))
3097
3115
  }, [
3098
- D("option", Ws, _(x(r).title.heading1), 1),
3099
- D("option", Gs, _(x(r).title.heading2), 1),
3100
- D("option", Ks, _(x(r).title.heading3), 1),
3101
- D("option", qs, _(x(r).title.heading4), 1)
3102
- ], 42, Us)]),
3103
- D("div", Js, [D("label", { class: E(x(q)) }, _(x(r).title.fontFamily), 3), D("select", {
3104
- class: E(x(K)),
3116
+ E("option", Gs, C(x(r).title.heading1), 1),
3117
+ E("option", Ks, C(x(r).title.heading2), 1),
3118
+ E("option", qs, C(x(r).title.heading3), 1),
3119
+ E("option", Js, C(x(r).title.heading4), 1)
3120
+ ], 42, Ws)]),
3121
+ E("div", Ys, [E("label", { class: O(x(q)) }, C(x(r).title.fontFamily), 3), E("select", {
3122
+ class: O(x(K)),
3105
3123
  value: e.block.fontFamily || "",
3106
3124
  onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
3107
- }, [D("option", Xs, _(x(r).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
3125
+ }, [E("option", Zs, C(x(r).title.inheritFont), 1), (s(!0), y(A, null, u(e.fontFamilies, (e) => (s(), y("option", {
3108
3126
  key: e.value,
3109
3127
  value: e.value
3110
- }, _(e.label), 9, Zs))), 128))], 42, Ys)]),
3111
- D("div", Qs, [D("label", { class: E(x(q)) }, _(x(r).title.color), 3), P(X, {
3128
+ }, C(e.label), 9, Qs))), 128))], 42, Xs)]),
3129
+ E("div", $s, [E("label", { class: O(x(q)) }, C(x(r).title.color), 3), N(X, {
3112
3130
  "model-value": e.block.color ?? "",
3113
3131
  "onUpdate:modelValue": n[2] ||= (e) => i("color", e || void 0)
3114
3132
  }, null, 8, ["model-value"])]),
3115
- D("div", $s, [D("label", { class: E(x(q)) }, _(x(r).title.align), 3), P(rn, {
3133
+ E("div", ec, [E("label", { class: O(x(q)) }, C(x(r).title.align), 3), N(rn, {
3116
3134
  options: [
3117
3135
  {
3118
3136
  value: "left",
@@ -3135,14 +3153,14 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3135
3153
  }, null, 8, ["options", "model-value"])])
3136
3154
  ], 64));
3137
3155
  }
3138
- }), tc = { class: "tpl:mb-3.5" }, nc = {
3156
+ }), nc = { class: "tpl:mb-3.5" }, rc = {
3139
3157
  key: 0,
3140
3158
  class: "tpl:mb-3.5"
3141
- }, rc = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ic = [
3159
+ }, ic = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ac = [
3142
3160
  "value",
3143
3161
  "placeholder",
3144
3162
  "title"
3145
- ], ac = { class: "tpl:mb-3.5" }, oc = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, sc = { class: "tpl:mb-3.5" }, cc = { class: "tpl:mb-3.5" }, lc = ["value"], uc = { value: "full" }, dc = { class: "tpl:mb-3.5" }, fc = /* @__PURE__ */ N({
3163
+ ], oc = { class: "tpl:mb-3.5" }, sc = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, cc = { class: "tpl:mb-3.5" }, lc = { class: "tpl:mb-3.5" }, uc = ["value"], dc = { value: "full" }, fc = { class: "tpl:mb-3.5" }, pc = /* @__PURE__ */ M({
3146
3164
  __name: "VideoToolbar",
3147
3165
  props: { block: {} },
3148
3166
  emits: ["update"],
@@ -3157,16 +3175,16 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3157
3175
  let e = await a?.({ accept: ["images"] });
3158
3176
  c.alive && e && (h("thumbnailUrl", e.url), f.value = !0, p());
3159
3177
  }
3160
- return (t, n) => (s(), y(j, null, [
3161
- D("div", tc, [
3162
- D("label", { class: E(x(q)) }, _(x(i).video.videoUrl), 3),
3163
- P($, {
3178
+ return (t, n) => (s(), y(A, null, [
3179
+ E("div", nc, [
3180
+ E("label", { class: O(x(q)) }, C(x(i).video.videoUrl), 3),
3181
+ N($, {
3164
3182
  "model-value": e.block.url,
3165
3183
  type: "url",
3166
3184
  placeholder: x(i).video.videoUrlPlaceholder,
3167
3185
  "onUpdate:modelValue": n[0] ||= (e) => h("url", e)
3168
3186
  }, null, 8, ["model-value", "placeholder"]),
3169
- e.block.url ? (s(), C(Z, {
3187
+ e.block.url ? (s(), w(Z, {
3170
3188
  key: 0,
3171
3189
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
3172
3190
  "model-value": e.block.openInNewTab ?? !1,
@@ -3174,17 +3192,17 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3174
3192
  "onUpdate:modelValue": n[1] ||= (e) => h("openInNewTab", e)
3175
3193
  }, null, 8, ["model-value", "label"])) : b("", !0)
3176
3194
  ]),
3177
- u.value ? (s(), y("div", nc, [D("label", { class: E(x(q)) }, [M(_(x(i).video.placeholderUrl) + " ", 1), D("span", rc, _(x(i).video.optional), 1)], 2), D("input", {
3195
+ u.value ? (s(), y("div", rc, [E("label", { class: O(x(q)) }, [j(C(x(i).video.placeholderUrl) + " ", 1), E("span", ic, C(x(i).video.optional), 1)], 2), E("input", {
3178
3196
  type: "url",
3179
- class: E(x(K)),
3197
+ class: O(x(K)),
3180
3198
  value: e.block.placeholderUrl || "",
3181
3199
  placeholder: x(i).video.placeholderUrlPlaceholder,
3182
3200
  title: x(i).video.placeholderUrlTooltip,
3183
3201
  onInput: n[2] ||= (e) => h("placeholderUrl", e.target.value)
3184
- }, null, 42, ic)])) : b("", !0),
3185
- D("div", ac, [
3186
- D("label", { class: E(x(q)) }, [M(_(x(i).video.customThumbnail) + " ", 1), D("span", oc, _(x(i).video.optional), 1)], 2),
3187
- P($, {
3202
+ }, null, 42, ac)])) : b("", !0),
3203
+ E("div", oc, [
3204
+ E("label", { class: O(x(q)) }, [j(C(x(i).video.customThumbnail) + " ", 1), E("span", sc, C(x(i).video.optional), 1)], 2),
3205
+ N($, {
3188
3206
  "model-value": e.block.thumbnailUrl,
3189
3207
  type: "url",
3190
3208
  placeholder: x(i).video.thumbnailPlaceholder,
@@ -3204,28 +3222,28 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3204
3222
  "background-color": "var(--tpl-bg)"
3205
3223
  },
3206
3224
  onClick: g
3207
- }, [P(x(Tt), {
3225
+ }, [N(x(Tt), {
3208
3226
  size: 14,
3209
3227
  "stroke-width": 1.5
3210
- }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
3228
+ }), j(" " + C(x(i).image.browseMedia), 1)])) : b("", !0)
3211
3229
  ]),
3212
- D("div", sc, [D("label", { class: E(x(q)) }, _(x(i).video.altText), 3), P($, {
3230
+ E("div", cc, [E("label", { class: O(x(q)) }, C(x(i).video.altText), 3), N($, {
3213
3231
  "model-value": e.block.alt,
3214
3232
  type: "text",
3215
3233
  placeholder: x(i).video.altTextPlaceholder,
3216
3234
  "onUpdate:modelValue": n[4] ||= (e) => h("alt", e)
3217
3235
  }, null, 8, ["model-value", "placeholder"])]),
3218
- D("div", cc, [D("label", { class: E(x(q)) }, _(x(i).video.width), 3), D("select", {
3219
- class: E(x(K)),
3236
+ E("div", lc, [E("label", { class: O(x(q)) }, C(x(i).video.width), 3), E("select", {
3237
+ class: O(x(K)),
3220
3238
  value: e.block.width,
3221
3239
  onChange: n[5] ||= (e) => h("width", e.target.value === "full" ? "full" : Number(e.target.value))
3222
3240
  }, [
3223
- D("option", uc, _(x(i).video.fullWidth), 1),
3224
- n[7] ||= D("option", { value: "300" }, "300px", -1),
3225
- n[8] ||= D("option", { value: "400" }, "400px", -1),
3226
- n[9] ||= D("option", { value: "500" }, "500px", -1)
3227
- ], 42, lc)]),
3228
- D("div", dc, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P(rn, {
3241
+ E("option", dc, C(x(i).video.fullWidth), 1),
3242
+ n[7] ||= E("option", { value: "300" }, "300px", -1),
3243
+ n[8] ||= E("option", { value: "400" }, "400px", -1),
3244
+ n[9] ||= E("option", { value: "500" }, "500px", -1)
3245
+ ], 42, uc)]),
3246
+ E("div", fc, [E("label", { class: O(x(q)) }, C(x(i).title.align), 3), N(rn, {
3229
3247
  options: [
3230
3248
  {
3231
3249
  value: "left",
@@ -3245,7 +3263,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3245
3263
  }, null, 8, ["options", "model-value"])])
3246
3264
  ], 64));
3247
3265
  }
3248
- }), pc = ["aria-label"], mc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, hc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, gc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, _c = { class: "tpl:flex tpl:gap-1" }, vc = ["title"], yc = ["title"], bc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, xc = /*#__PURE__*/ Vt(/* @__PURE__ */ N({
3266
+ }), mc = ["aria-label"], hc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, gc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, _c = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, vc = { class: "tpl:flex tpl:gap-1" }, yc = ["title"], bc = ["title"], xc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Sc = /*#__PURE__*/ Vt(/* @__PURE__ */ M({
3249
3267
  __name: "Toolbar",
3250
3268
  props: { block: {} },
3251
3269
  emits: [
@@ -3254,141 +3272,141 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3254
3272
  "duplicate"
3255
3273
  ],
3256
3274
  setup(e, { emit: t }) {
3257
- let n = h(() => import("./CountdownToolbar-CW10rbWt.js")), r = e, i = t, { t: a } = W(), c = Me(tt, "Toolbar"), l = d(Ze, []), u = v(() => r.block.type), f = v(() => I(r.block)), p = v(() => {
3275
+ let n = h(() => import("./CountdownToolbar-DPjcgcVR.js")), r = e, i = t, { t: a } = W(), c = Me(tt, "Toolbar"), l = d(Ze, []), u = v(() => r.block.type), f = v(() => F(r.block)), p = v(() => {
3258
3276
  if (f.value) return l.find((e) => e.type === r.block.customType);
3259
3277
  }), m = v(() => f.value ? p.value?.name ?? r.block.customType : se(u.value, a)), g = c.fonts;
3260
- function S(e) {
3278
+ function _(e) {
3261
3279
  i("update", e);
3262
3280
  }
3263
3281
  return (t, r) => (s(), y("aside", {
3264
3282
  "aria-label": x(a).landmarks.blockToolbar,
3265
3283
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
3266
- }, [D("div", mc, [D("div", hc, [x(Jt)[u.value] ? (s(), C(o(x(Jt)[u.value]), {
3284
+ }, [E("div", hc, [E("div", gc, [x(Jt)[u.value] ? (s(), w(o(x(Jt)[u.value]), {
3267
3285
  key: 0,
3268
3286
  size: 16,
3269
3287
  "stroke-width": 1.5
3270
- })) : f.value ? (s(), C(x(ft), {
3288
+ })) : f.value ? (s(), w(x(ft), {
3271
3289
  key: 1,
3272
3290
  size: 16,
3273
3291
  "stroke-width": 1.5
3274
- })) : b("", !0), D("h3", gc, _(m.value), 1)]), D("div", _c, [D("button", {
3292
+ })) : b("", !0), E("h3", _c, C(m.value), 1)]), E("div", vc, [E("button", {
3275
3293
  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)]",
3276
3294
  title: x(a).toolbar.duplicate,
3277
3295
  onClick: r[0] ||= (e) => i("duplicate")
3278
- }, [P(x(ct), {
3296
+ }, [N(x(ct), {
3279
3297
  size: 14,
3280
3298
  "stroke-width": 2
3281
- })], 8, vc), D("button", {
3299
+ })], 8, yc), E("button", {
3282
3300
  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)]",
3283
3301
  title: x(a).toolbar.delete,
3284
3302
  onClick: r[1] ||= (e) => i("delete")
3285
- }, [P(x(St), {
3303
+ }, [N(x(St), {
3286
3304
  size: 14,
3287
3305
  "stroke-width": 2
3288
- })], 8, yc)])]), D("div", bc, [f.value ? (s(), C(Ha, {
3306
+ })], 8, bc)])]), E("div", xc, [f.value ? (s(), w(Ua, {
3289
3307
  key: 0,
3290
3308
  block: e.block,
3291
3309
  onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
3292
3310
  onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
3293
- }, null, 8, ["block"])) : u.value === "section" ? (s(), C(Bo, {
3311
+ }, null, 8, ["block"])) : u.value === "section" ? (s(), w(Vo, {
3294
3312
  key: 1,
3295
3313
  block: e.block,
3296
- onUpdate: S
3297
- }, null, 8, ["block"])) : u.value === "title" ? (s(), C(ec, {
3314
+ onUpdate: _
3315
+ }, null, 8, ["block"])) : u.value === "title" ? (s(), w(tc, {
3298
3316
  key: 2,
3299
3317
  block: e.block,
3300
3318
  "font-families": x(g),
3301
- onUpdate: S
3302
- }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), y(j, { key: 3 }, [], 64)) : u.value === "image" ? (s(), C(ho, {
3319
+ onUpdate: _
3320
+ }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), y(A, { key: 3 }, [], 64)) : u.value === "image" ? (s(), w(go, {
3303
3321
  key: 4,
3304
3322
  block: e.block,
3305
- onUpdate: S
3306
- }, null, 8, ["block"])) : u.value === "video" ? (s(), C(fc, {
3323
+ onUpdate: _
3324
+ }, null, 8, ["block"])) : u.value === "video" ? (s(), w(pc, {
3307
3325
  key: 5,
3308
3326
  block: e.block,
3309
- onUpdate: S
3310
- }, null, 8, ["block"])) : u.value === "button" ? (s(), C(mi, {
3327
+ onUpdate: _
3328
+ }, null, 8, ["block"])) : u.value === "button" ? (s(), w(hi, {
3311
3329
  key: 6,
3312
3330
  block: e.block,
3313
3331
  "font-families": x(g),
3314
- onUpdate: S
3315
- }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), C(Ja, {
3332
+ onUpdate: _
3333
+ }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), w(Ya, {
3316
3334
  key: 7,
3317
3335
  block: e.block,
3318
- onUpdate: S
3319
- }, null, 8, ["block"])) : u.value === "social" ? (s(), C(as, {
3336
+ onUpdate: _
3337
+ }, null, 8, ["block"])) : u.value === "social" ? (s(), w(os, {
3320
3338
  key: 8,
3321
3339
  block: e.block,
3322
- onUpdate: S
3323
- }, null, 8, ["block"])) : u.value === "menu" ? (s(), C(Eo, {
3340
+ onUpdate: _
3341
+ }, null, 8, ["block"])) : u.value === "menu" ? (s(), w(Do, {
3324
3342
  key: 9,
3325
3343
  block: e.block,
3326
3344
  "font-families": x(g),
3327
- onUpdate: S
3328
- }, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), C(Vs, {
3345
+ onUpdate: _
3346
+ }, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), w(Hs, {
3329
3347
  key: 10,
3330
3348
  block: e.block,
3331
3349
  "font-families": x(g),
3332
- onUpdate: S
3333
- }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), C(us, {
3350
+ onUpdate: _
3351
+ }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), w(ds, {
3334
3352
  key: 11,
3335
3353
  block: e.block,
3336
- onUpdate: S
3337
- }, null, 8, ["block"])) : u.value === "html" ? (s(), C(Qa, {
3354
+ onUpdate: _
3355
+ }, null, 8, ["block"])) : u.value === "html" ? (s(), w($a, {
3338
3356
  key: 12,
3339
3357
  block: e.block,
3340
- onUpdate: S
3341
- }, null, 8, ["block"])) : u.value === "countdown" ? (s(), C(x(n), {
3358
+ onUpdate: _
3359
+ }, null, 8, ["block"])) : u.value === "countdown" ? (s(), w(x(n), {
3342
3360
  key: 13,
3343
3361
  block: e.block,
3344
3362
  "font-families": x(g),
3345
- onUpdate: S
3346
- }, null, 8, ["block", "font-families"])) : b("", !0), P(oa, {
3363
+ onUpdate: _
3364
+ }, null, 8, ["block", "font-families"])) : b("", !0), N(sa, {
3347
3365
  block: e.block,
3348
3366
  "is-first-section": u.value === "paragraph",
3349
- onUpdate: S
3350
- }, null, 8, ["block", "is-first-section"])])], 8, pc));
3367
+ onUpdate: _
3368
+ }, null, 8, ["block", "is-first-section"])])], 8, mc));
3351
3369
  }
3352
- }), [["__scopeId", "data-v-2ac88283"]]), Sc = ["aria-label"], Cc = {
3370
+ }), [["__scopeId", "data-v-2ac88283"]]), Cc = ["aria-label"], wc = {
3353
3371
  role: "tablist",
3354
3372
  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"
3355
- }, wc = [
3373
+ }, Tc = [
3356
3374
  "aria-selected",
3357
3375
  "aria-label",
3358
3376
  "title"
3359
- ], Tc = { key: 0 }, Ec = [
3377
+ ], Ec = { key: 0 }, Dc = [
3360
3378
  "aria-selected",
3361
3379
  "aria-label",
3362
3380
  "title"
3363
- ], Dc = { key: 0 }, Oc = [
3381
+ ], Oc = { key: 0 }, kc = [
3364
3382
  "aria-selected",
3365
3383
  "aria-label",
3366
3384
  "title"
3367
- ], kc = { key: 0 }, Ac = {
3385
+ ], Ac = { key: 0 }, jc = {
3368
3386
  key: 1,
3369
3387
  class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
3370
- }, jc = {
3388
+ }, Mc = {
3371
3389
  key: 0,
3372
3390
  id: "tpl-tabpanel-content",
3373
3391
  role: "tabpanel",
3374
3392
  "aria-labelledby": "tpl-tab-content",
3375
3393
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3376
- }, Mc = {
3394
+ }, Nc = {
3377
3395
  key: 1,
3378
3396
  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)]"
3379
- }, Nc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Pc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Ic = {
3397
+ }, Pc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Fc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ic = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Lc = {
3380
3398
  key: 1,
3381
3399
  id: "tpl-tabpanel-settings",
3382
3400
  role: "tabpanel",
3383
3401
  "aria-labelledby": "tpl-tab-settings",
3384
3402
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3385
- }, Lc = {
3403
+ }, Rc = {
3386
3404
  key: 2,
3387
3405
  id: "tpl-tabpanel-issues",
3388
3406
  role: "tabpanel",
3389
3407
  "aria-labelledby": "tpl-tab-issues",
3390
3408
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3391
- }, Rc = /* @__PURE__ */ N({
3409
+ }, zc = /* @__PURE__ */ M({
3392
3410
  __name: "RightSidebar",
3393
3411
  props: {
3394
3412
  selectedBlock: {},
@@ -3402,7 +3420,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3402
3420
  "update-settings"
3403
3421
  ],
3404
3422
  setup(e, { emit: t }) {
3405
- let n = h(() => import("./IssuesPanel-DStHCHfr.js")), r = e, i = t, { t: a } = W(), o = m("content"), c = d(je, null), l = v(() => c !== null), u = v(() => c?.issues.value.length ?? 0);
3423
+ let n = h(() => import("./IssuesPanel-DKTS4QVb.js")), r = e, i = t, { t: a } = W(), o = m("content"), c = d(je, null), l = v(() => c !== null), u = v(() => c?.issues.value.length ?? 0);
3406
3424
  function f(e) {
3407
3425
  return o.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
3408
3426
  }
@@ -3412,41 +3430,41 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3412
3430
  boxShadow: "var(--tpl-shadow-md)"
3413
3431
  } : { backgroundColor: "transparent" };
3414
3432
  }
3415
- return F(() => r.selectedBlock, (e) => {
3433
+ return P(() => r.selectedBlock, (e) => {
3416
3434
  e && (o.value = "content");
3417
3435
  }), (t, r) => (s(), y("aside", {
3418
3436
  "aria-label": x(a).landmarks.rightSidebar,
3419
- class: E(["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"])
3437
+ class: O(["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"])
3420
3438
  }, [
3421
- D("div", Cc, [
3422
- D("button", {
3439
+ E("div", wc, [
3440
+ E("button", {
3423
3441
  id: "tpl-tab-content",
3424
3442
  role: "tab",
3425
3443
  "aria-selected": o.value === "content",
3426
3444
  "aria-controls": "tpl-tabpanel-content",
3427
3445
  "aria-label": x(a).sidebar.content,
3428
3446
  title: x(a).sidebar.content,
3429
- class: E(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", f("content")]),
3430
- style: k(p("content")),
3447
+ class: O(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", f("content")]),
3448
+ style: _(p("content")),
3431
3449
  onClick: r[0] ||= (e) => o.value = "content"
3432
- }, [P(x(Pt), {
3450
+ }, [N(x(Pt), {
3433
3451
  size: 14,
3434
3452
  "stroke-width": 2
3435
- }), o.value === "content" ? (s(), y("span", Tc, _(x(a).sidebar.content), 1)) : b("", !0)], 14, wc),
3436
- D("button", {
3453
+ }), o.value === "content" ? (s(), y("span", Ec, C(x(a).sidebar.content), 1)) : b("", !0)], 14, Tc),
3454
+ E("button", {
3437
3455
  id: "tpl-tab-settings",
3438
3456
  role: "tab",
3439
3457
  "aria-selected": o.value === "settings",
3440
3458
  "aria-controls": "tpl-tabpanel-settings",
3441
3459
  "aria-label": x(a).sidebar.settings,
3442
3460
  title: x(a).sidebar.settings,
3443
- class: E(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", f("settings")]),
3444
- style: k(p("settings")),
3461
+ class: O(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", f("settings")]),
3462
+ style: _(p("settings")),
3445
3463
  onClick: r[1] ||= (e) => o.value = "settings"
3446
- }, [P(x(Ot), {
3464
+ }, [N(x(Ot), {
3447
3465
  size: 14,
3448
3466
  "stroke-width": 1.5
3449
- }), o.value === "settings" ? (s(), y("span", Dc, _(x(a).sidebar.settings), 1)) : b("", !0)], 14, Ec),
3467
+ }), o.value === "settings" ? (s(), y("span", Oc, C(x(a).sidebar.settings), 1)) : b("", !0)], 14, Dc),
3450
3468
  l.value ? (s(), y("button", {
3451
3469
  key: 0,
3452
3470
  id: "tpl-tab-issues",
@@ -3455,62 +3473,62 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3455
3473
  "aria-controls": "tpl-tabpanel-issues",
3456
3474
  "aria-label": x(a).issues.panelTabLabel,
3457
3475
  title: x(a).issues.panelTabLabel,
3458
- class: E(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", f("issues")]),
3459
- style: k(p("issues")),
3476
+ class: O(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", f("issues")]),
3477
+ style: _(p("issues")),
3460
3478
  onClick: r[2] ||= (e) => o.value = "issues"
3461
3479
  }, [
3462
- P(x(Lt), {
3480
+ N(x(Lt), {
3463
3481
  size: 14,
3464
3482
  "stroke-width": 1.5
3465
3483
  }),
3466
- o.value === "issues" ? (s(), y("span", kc, _(x(a).issues.panelTabLabel), 1)) : b("", !0),
3467
- u.value > 0 ? (s(), y("span", Ac, _(u.value), 1)) : b("", !0)
3468
- ], 14, Oc)) : b("", !0)
3484
+ o.value === "issues" ? (s(), y("span", Ac, C(x(a).issues.panelTabLabel), 1)) : b("", !0),
3485
+ u.value > 0 ? (s(), y("span", jc, C(u.value), 1)) : b("", !0)
3486
+ ], 14, kc)) : b("", !0)
3469
3487
  ]),
3470
- o.value === "content" ? (s(), y("div", jc, [e.selectedBlock ? (s(), C(xc, {
3488
+ o.value === "content" ? (s(), y("div", Mc, [e.selectedBlock ? (s(), w(Sc, {
3471
3489
  key: 0,
3472
3490
  block: e.selectedBlock,
3473
3491
  onUpdate: r[3] ||= (e) => i("update-block", e),
3474
3492
  onDelete: r[4] ||= (e) => i("delete-block"),
3475
3493
  onDuplicate: r[5] ||= (e) => i("duplicate-block")
3476
- }, null, 8, ["block"])) : (s(), y("div", Mc, [
3477
- D("div", Nc, [P(x(kt), {
3494
+ }, null, 8, ["block"])) : (s(), y("div", Nc, [
3495
+ E("div", Pc, [N(x(kt), {
3478
3496
  size: 40,
3479
3497
  "stroke-width": 1.5
3480
3498
  })]),
3481
- D("h3", Pc, _(x(a).sidebar.noSelection), 1),
3482
- D("p", Fc, _(x(a).sidebar.noSelectionHint), 1)
3499
+ E("h3", Fc, C(x(a).sidebar.noSelection), 1),
3500
+ E("p", Ic, C(x(a).sidebar.noSelectionHint), 1)
3483
3501
  ]))])) : b("", !0),
3484
- o.value === "settings" ? (s(), y("div", Ic, [P(Rr, {
3502
+ o.value === "settings" ? (s(), y("div", Lc, [N(Rr, {
3485
3503
  settings: e.settings,
3486
3504
  onUpdate: r[6] ||= (e) => i("update-settings", e)
3487
3505
  }, null, 8, ["settings"])])) : b("", !0),
3488
- o.value === "issues" && l.value ? (s(), y("div", Lc, [P(x(n))])) : b("", !0)
3489
- ], 10, Sc));
3506
+ o.value === "issues" && l.value ? (s(), y("div", Rc, [N(x(n))])) : b("", !0)
3507
+ ], 10, Cc));
3490
3508
  }
3491
- }), zc = {
3509
+ }), Bc = {
3492
3510
  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)]",
3493
3511
  style: { "z-index": "10001" },
3494
3512
  role: "status",
3495
3513
  "data-testid": "small-screen-notice"
3496
- }, Bc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Vc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Hc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Uc = /* @__PURE__ */ N({
3514
+ }, Vc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Hc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Uc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Wc = /* @__PURE__ */ M({
3497
3515
  __name: "SmallScreenNotice",
3498
3516
  setup(e) {
3499
3517
  let { t } = W();
3500
- return (e, n) => (s(), y("div", zc, [
3501
- D("div", Bc, [P(x(it), {
3518
+ return (e, n) => (s(), y("div", Bc, [
3519
+ E("div", Vc, [N(x(it), {
3502
3520
  size: 48,
3503
3521
  "stroke-width": 1.5
3504
3522
  })]),
3505
- D("h2", Vc, _(x(t).smallScreen.title), 1),
3506
- D("p", Hc, _(x(t).smallScreen.message), 1)
3523
+ E("h2", Hc, C(x(t).smallScreen.title), 1),
3524
+ E("p", Uc, C(x(t).smallScreen.message), 1)
3507
3525
  ]));
3508
3526
  }
3509
- }), Wc = [
3527
+ }), Gc = [
3510
3528
  "aria-label",
3511
3529
  "title",
3512
3530
  "aria-pressed"
3513
- ], Gc = /*#__PURE__*/ Vt(/* @__PURE__ */ N({
3531
+ ], Kc = /*#__PURE__*/ Vt(/* @__PURE__ */ M({
3514
3532
  __name: "PreviewToggle",
3515
3533
  props: { previewMode: { type: Boolean } },
3516
3534
  emits: ["change"],
@@ -3518,7 +3536,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3518
3536
  let n = t, { t: r } = W();
3519
3537
  return (t, i) => (s(), y("button", {
3520
3538
  class: "tpl-preview-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
3521
- style: k({
3539
+ style: _({
3522
3540
  color: e.previewMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
3523
3541
  backgroundColor: e.previewMode ? "var(--tpl-primary-light)" : "transparent"
3524
3542
  }),
@@ -3526,30 +3544,30 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3526
3544
  title: e.previewMode ? x(r).previewMode.disable : x(r).previewMode.enable,
3527
3545
  "aria-pressed": e.previewMode,
3528
3546
  onClick: i[0] ||= (t) => n("change", !e.previewMode)
3529
- }, [P(w, {
3547
+ }, [N(T, {
3530
3548
  "enter-active-class": "tpl-icon-enter-active",
3531
3549
  "leave-active-class": "tpl-icon-leave-active",
3532
3550
  "enter-from-class": "tpl-icon-enter-from",
3533
3551
  "leave-to-class": "tpl-icon-leave-to",
3534
3552
  mode: "out-in"
3535
3553
  }, {
3536
- default: f(() => [e.previewMode ? (s(), C(x(zt), {
3554
+ default: f(() => [e.previewMode ? (s(), w(x(zt), {
3537
3555
  key: "eye",
3538
3556
  size: 18,
3539
3557
  "stroke-width": 1.5
3540
- })) : (s(), C(x(_t), {
3558
+ })) : (s(), w(x(_t), {
3541
3559
  key: "eye-off",
3542
3560
  size: 18,
3543
3561
  "stroke-width": 1.5
3544
3562
  }))]),
3545
3563
  _: 1
3546
- })], 12, Wc));
3564
+ })], 12, Gc));
3547
3565
  }
3548
- }), [["__scopeId", "data-v-af87d02a"]]), Kc = [
3566
+ }), [["__scopeId", "data-v-af87d02a"]]), qc = [
3549
3567
  "aria-label",
3550
3568
  "title",
3551
3569
  "aria-pressed"
3552
- ], qc = /*#__PURE__*/ Vt(/* @__PURE__ */ N({
3570
+ ], Jc = /*#__PURE__*/ Vt(/* @__PURE__ */ M({
3553
3571
  __name: "DarkModeToggle",
3554
3572
  props: { darkMode: { type: Boolean } },
3555
3573
  emits: ["change"],
@@ -3557,7 +3575,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3557
3575
  let n = t, { t: r } = W();
3558
3576
  return (t, i) => (s(), y("button", {
3559
3577
  class: "tpl-dark-mode-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
3560
- style: k({
3578
+ style: _({
3561
3579
  color: e.darkMode ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
3562
3580
  backgroundColor: e.darkMode ? "var(--tpl-primary-light)" : "transparent"
3563
3581
  }),
@@ -3565,84 +3583,84 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3565
3583
  title: e.darkMode ? x(r).darkMode.disable : x(r).darkMode.enable,
3566
3584
  "aria-pressed": e.darkMode,
3567
3585
  onClick: i[0] ||= (t) => n("change", !e.darkMode)
3568
- }, [P(w, {
3586
+ }, [N(T, {
3569
3587
  "enter-active-class": "tpl-icon-enter-active",
3570
3588
  "leave-active-class": "tpl-icon-leave-active",
3571
3589
  "enter-from-class": "tpl-icon-enter-from",
3572
3590
  "leave-to-class": "tpl-icon-leave-to",
3573
3591
  mode: "out-in"
3574
3592
  }, {
3575
- default: f(() => [e.darkMode ? (s(), C(x(mt), {
3593
+ default: f(() => [e.darkMode ? (s(), w(x(mt), {
3576
3594
  key: "moon",
3577
3595
  size: 18,
3578
3596
  "stroke-width": 1.5
3579
- })) : (s(), C(x(xt), {
3597
+ })) : (s(), w(x(xt), {
3580
3598
  key: "sun",
3581
3599
  size: 18,
3582
3600
  "stroke-width": 1.5
3583
3601
  }))]),
3584
3602
  _: 1
3585
- })], 12, Kc));
3603
+ })], 12, qc));
3586
3604
  }
3587
- }), [["__scopeId", "data-v-f8694f76"]]), Jc = {
3605
+ }), [["__scopeId", "data-v-f8694f76"]]), Yc = {
3588
3606
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
3589
3607
  style: {
3590
3608
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
3591
3609
  "backdrop-filter": "blur(8px)",
3592
3610
  "-webkit-backdrop-filter": "blur(8px)"
3593
3611
  }
3594
- }, Yc = {
3612
+ }, Xc = {
3595
3613
  href: "https://github.com/templatical/sdk",
3596
3614
  target: "_blank",
3597
3615
  rel: "noopener noreferrer",
3598
3616
  class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
3599
3617
  style: { "text-decoration": "none" }
3600
- }, Xc = /* @__PURE__ */ N({
3618
+ }, Zc = /* @__PURE__ */ M({
3601
3619
  __name: "EditorFooter",
3602
3620
  props: { positionClass: {} },
3603
3621
  setup(e) {
3604
3622
  let { t } = W();
3605
- return (n, r) => (s(), y("footer", { class: E(["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]) }, [D("div", Jc, [
3606
- D("span", null, _(x(t).footer.poweredBy), 1),
3607
- r[0] ||= D("a", {
3623
+ return (n, r) => (s(), y("footer", { class: O(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [E("div", Yc, [
3624
+ E("span", null, C(x(t).footer.poweredBy), 1),
3625
+ r[0] ||= E("a", {
3608
3626
  href: "https://templatical.com",
3609
3627
  target: "_blank",
3610
3628
  rel: "noopener noreferrer",
3611
3629
  class: "tpl:inline-flex tpl:items-center tpl:gap-1 tpl:font-medium tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-muted)]",
3612
3630
  style: { "text-decoration": "none" }
3613
- }, [D("img", {
3631
+ }, [E("img", {
3614
3632
  width: "14",
3615
3633
  height: "14",
3616
3634
  src: "https://templatical.com/logo.svg",
3617
3635
  alt: ""
3618
- }), M(" Templatical ")], -1),
3619
- r[1] ||= D("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3620
- D("a", Yc, _(x(t).footer.openSource), 1)
3636
+ }), j(" Templatical ")], -1),
3637
+ r[1] ||= E("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3638
+ E("a", Xc, C(x(t).footer.openSource), 1)
3621
3639
  ])], 2));
3622
3640
  }
3623
- }), Zc = ["aria-labelledby", "data-tpl-theme"], Qc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, $c = ["id"], el = ["aria-label"], tl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, nl = [
3641
+ }), Qc = ["aria-labelledby", "data-tpl-theme"], $c = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, el = ["id"], tl = ["aria-label"], nl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, rl = [
3624
3642
  "id",
3625
3643
  "placeholder",
3626
3644
  "aria-label",
3627
3645
  "aria-activedescendant"
3628
- ], rl = {
3646
+ ], il = {
3629
3647
  key: 0,
3630
3648
  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",
3631
3649
  "data-testid": "merge-tag-picker-group-pills"
3632
- }, il = ["data-group-name", "onClick"], al = ["aria-label"], ol = {
3650
+ }, al = ["data-group-name", "onClick"], ol = ["aria-label"], sl = {
3633
3651
  key: 0,
3634
3652
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3635
3653
  "data-testid": "merge-tag-picker-empty"
3636
- }, sl = {
3654
+ }, cl = {
3637
3655
  key: 1,
3638
3656
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3639
3657
  "data-testid": "merge-tag-picker-empty"
3640
- }, cl = [
3658
+ }, ll = [
3641
3659
  "aria-expanded",
3642
3660
  "data-group-name",
3643
3661
  "data-group-collapsed",
3644
3662
  "onClick"
3645
- ], ll = { class: "tpl:ml-1 tpl:font-normal" }, ul = [
3663
+ ], ul = { class: "tpl:ml-1 tpl:font-normal" }, dl = [
3646
3664
  "id",
3647
3665
  "aria-selected",
3648
3666
  "data-selected",
@@ -3651,25 +3669,25 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3651
3669
  "title",
3652
3670
  "onMousemove",
3653
3671
  "onClick"
3654
- ], dl = { class: "tpl:text-sm tpl:font-medium" }, fl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, pl = {
3672
+ ], fl = { class: "tpl:text-sm tpl:font-medium" }, pl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, ml = {
3655
3673
  key: 0,
3656
3674
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3657
- }, ml = {
3675
+ }, hl = {
3658
3676
  key: 1,
3659
3677
  "data-testid": "merge-tag-picker-sample",
3660
3678
  class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3661
- }, hl = "tpl-merge-tag-picker-list", gl = /* @__PURE__ */ N({
3679
+ }, gl = "tpl-merge-tag-picker-list", _l = /* @__PURE__ */ M({
3662
3680
  __name: "MergeTagPickerModal",
3663
3681
  setup(e) {
3664
- let t = Me(Ie, "MergeTagPickerModal"), { t: n, format: i } = W(), a = d(Ve, null), o = d(Be, null), c = m(""), p = ke(c, 200), h = m(null), w = v(() => p.value.trim().length > 0), O = m(0), A = v(() => t.tags.value.some((e) => !!e.group)), M = m(/* @__PURE__ */ new Set());
3665
- function N(e) {
3666
- return M.value.has(e);
3682
+ let t = Me(Ie, "MergeTagPickerModal"), { t: n, format: i } = W(), a = d(Ve, null), o = d(Be, null), c = m(""), p = ke(c, 200), h = m(null), T = v(() => p.value.trim().length > 0), D = m(0), k = v(() => t.tags.value.some((e) => !!e.group)), j = m(/* @__PURE__ */ new Set());
3683
+ function M(e) {
3684
+ return j.value.has(e);
3667
3685
  }
3668
- function I(e) {
3669
- let t = new Set(M.value);
3670
- t.has(e) ? t.delete(e) : t.add(e), M.value = t, O.value = 0;
3686
+ function F(e) {
3687
+ let t = new Set(j.value);
3688
+ t.has(e) ? t.delete(e) : t.add(e), j.value = t, D.value = 0;
3671
3689
  }
3672
- let ee = v(() => {
3690
+ let I = v(() => {
3673
3691
  let e = p.value.trim().toLowerCase();
3674
3692
  return e ? t.tags.value.filter((t) => [
3675
3693
  t.label,
@@ -3677,7 +3695,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3677
3695
  t.description ?? ""
3678
3696
  ].join(" ").toLowerCase().includes(e)) : t.tags.value;
3679
3697
  }), L = v(() => {
3680
- if (!A.value) return [];
3698
+ if (!k.value) return [];
3681
3699
  let e = n.mergeTag.picker.otherGroup, r = /* @__PURE__ */ new Set(), i = [];
3682
3700
  for (let n of t.tags.value) {
3683
3701
  let t = n.group ?? e;
@@ -3685,8 +3703,8 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3685
3703
  }
3686
3704
  return i;
3687
3705
  }), R = v(() => {
3688
- let e = ee.value;
3689
- if (!A.value || w.value) return e.map((e, t) => ({
3706
+ let e = I.value;
3707
+ if (!k.value || T.value) return e.map((e, t) => ({
3690
3708
  kind: "tag",
3691
3709
  tag: e,
3692
3710
  index: t
@@ -3703,7 +3721,7 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3703
3721
  kind: "header",
3704
3722
  group: e,
3705
3723
  count: t.length
3706
- }), !M.value.has(e)) for (let e of t) a.push({
3724
+ }), !j.value.has(e)) for (let e of t) a.push({
3707
3725
  kind: "tag",
3708
3726
  tag: e,
3709
3727
  index: o
@@ -3711,12 +3729,12 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3711
3729
  }
3712
3730
  return a;
3713
3731
  }), z = v(() => R.value.flatMap((e) => e.kind === "tag" ? [e.tag] : []));
3714
- F(() => t.isOpen.value, (e) => {
3715
- e && (c.value = "", O.value = 0, M.value = /* @__PURE__ */ new Set(), l(() => {
3732
+ P(() => t.isOpen.value, (e) => {
3733
+ e && (c.value = "", D.value = 0, j.value = /* @__PURE__ */ new Set(), l(() => {
3716
3734
  h.value?.focus();
3717
3735
  }));
3718
- }), F(z, (e) => {
3719
- O.value >= e.length && (O.value = Math.max(0, e.length - 1));
3736
+ }), P(z, (e) => {
3737
+ D.value >= e.length && (D.value = Math.max(0, e.length - 1));
3720
3738
  });
3721
3739
  function B(e) {
3722
3740
  t.resolve(e);
@@ -3726,8 +3744,8 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3726
3744
  }
3727
3745
  function H(e) {
3728
3746
  if (z.value.length === 0) return;
3729
- let t = O.value + e;
3730
- O.value = Math.max(0, Math.min(z.value.length - 1, t)), ie();
3747
+ let t = D.value + e;
3748
+ D.value = Math.max(0, Math.min(z.value.length - 1, t)), ie();
3731
3749
  }
3732
3750
  let te = m(null), ne = m({});
3733
3751
  function re(e, t) {
@@ -3736,13 +3754,13 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3736
3754
  function ie() {
3737
3755
  l(() => {
3738
3756
  let e = te.value;
3739
- e && e.querySelector(`[data-merge-tag-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
3757
+ e && e.querySelector(`[data-merge-tag-index="${D.value}"]`)?.scrollIntoView({ block: "nearest" });
3740
3758
  });
3741
3759
  }
3742
3760
  function ae(e) {
3743
- if (M.value.has(e)) {
3744
- let t = new Set(M.value);
3745
- t.delete(e), M.value = t;
3761
+ if (j.value.has(e)) {
3762
+ let t = new Set(j.value);
3763
+ t.delete(e), j.value = t;
3746
3764
  }
3747
3765
  l(() => {
3748
3766
  let t = te.value;
@@ -3766,50 +3784,50 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3766
3784
  else if (e.key === "ArrowUp") e.preventDefault(), H(-1);
3767
3785
  else if (e.key === "Enter") {
3768
3786
  e.preventDefault();
3769
- let t = z.value[O.value];
3787
+ let t = z.value[D.value];
3770
3788
  t && B(t);
3771
3789
  }
3772
3790
  }
3773
3791
  function U() {
3774
- if (z.value.length !== 0) return `${hl}-opt-${O.value}`;
3792
+ if (z.value.length !== 0) return `${gl}-opt-${D.value}`;
3775
3793
  }
3776
3794
  function se(e) {
3777
- return `${hl}-opt-${e}`;
3795
+ return `${gl}-opt-${e}`;
3778
3796
  }
3779
- let ce = v(() => t.tags.value.length === 0), le = v(() => !ce.value && ee.value.length === 0), ue = v(() => A.value && L.value.length > 1 && !w.value);
3780
- return (e, l) => (s(), C(on, {
3797
+ let ce = v(() => t.tags.value.length === 0), le = v(() => !ce.value && I.value.length === 0), ue = v(() => k.value && L.value.length > 1 && !T.value);
3798
+ return (e, l) => (s(), w(on, {
3781
3799
  visible: x(t).isOpen.value,
3782
3800
  onClose: V,
3783
3801
  onKeydown: oe
3784
3802
  }, {
3785
- default: f(() => [D("div", {
3803
+ default: f(() => [E("div", {
3786
3804
  role: "dialog",
3787
3805
  "aria-modal": "true",
3788
- "aria-labelledby": `${hl}-title`,
3806
+ "aria-labelledby": `${gl}-title`,
3789
3807
  "data-tpl-theme": x(o),
3790
3808
  "data-testid": "merge-tag-picker-modal",
3791
3809
  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)]",
3792
- style: k(x(a))
3810
+ style: _(x(a))
3793
3811
  }, [
3794
- D("header", Qc, [D("h2", {
3795
- id: `${hl}-title`,
3812
+ E("header", $c, [E("h2", {
3813
+ id: `${gl}-title`,
3796
3814
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3797
- }, _(x(n).mergeTag.picker.title), 9, $c), D("button", {
3815
+ }, C(x(n).mergeTag.picker.title), 9, el), E("button", {
3798
3816
  type: "button",
3799
3817
  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)]",
3800
3818
  "aria-label": x(n).mergeTag.picker.close,
3801
3819
  "data-testid": "merge-tag-picker-close",
3802
3820
  onClick: V
3803
- }, [P(x(jt), {
3821
+ }, [N(x(jt), {
3804
3822
  size: 16,
3805
3823
  "stroke-width": 2
3806
- })], 8, el)]),
3807
- D("div", tl, [P(x(dt), {
3824
+ })], 8, tl)]),
3825
+ E("div", nl, [N(x(dt), {
3808
3826
  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)]",
3809
3827
  size: 14,
3810
3828
  "stroke-width": 2
3811
- }), r(D("input", {
3812
- id: `${hl}-search`,
3829
+ }), r(E("input", {
3830
+ id: `${gl}-search`,
3813
3831
  ref_key: "searchInputRef",
3814
3832
  ref: h,
3815
3833
  "onUpdate:modelValue": l[0] ||= (e) => c.value = e,
@@ -3817,79 +3835,79 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3817
3835
  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)]",
3818
3836
  placeholder: x(n).mergeTag.picker.searchPlaceholder,
3819
3837
  "aria-label": x(n).mergeTag.picker.searchAriaLabel,
3820
- "aria-controls": hl,
3838
+ "aria-controls": gl,
3821
3839
  "aria-activedescendant": U(),
3822
3840
  "data-testid": "merge-tag-picker-search",
3823
3841
  onKeydown: l[1] ||= g(S(() => {}, ["prevent"]), ["enter"])
3824
- }, null, 40, nl), [[T, c.value]])]),
3825
- ue.value ? (s(), y("div", rl, [(s(!0), y(j, null, u(L.value, (e) => (s(), y("button", {
3842
+ }, null, 40, rl), [[ee, c.value]])]),
3843
+ ue.value ? (s(), y("div", il, [(s(!0), y(A, null, u(L.value, (e) => (s(), y("button", {
3826
3844
  key: e,
3827
3845
  type: "button",
3828
3846
  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)]",
3829
3847
  "data-testid": "merge-tag-picker-group-pill",
3830
3848
  "data-group-name": e,
3831
3849
  onClick: (t) => ae(e)
3832
- }, _(e), 9, il))), 128))])) : b("", !0),
3833
- D("div", {
3834
- id: hl,
3850
+ }, C(e), 9, al))), 128))])) : b("", !0),
3851
+ E("div", {
3852
+ id: gl,
3835
3853
  ref_key: "listRef",
3836
3854
  ref: te,
3837
3855
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3838
3856
  role: "listbox",
3839
3857
  "aria-label": x(n).mergeTag.picker.title,
3840
3858
  "data-testid": "merge-tag-picker-list"
3841
- }, [ce.value ? (s(), y("div", ol, _(x(n).mergeTag.picker.empty), 1)) : le.value ? (s(), y("div", sl, _(x(n).mergeTag.picker.noResults), 1)) : (s(!0), y(j, { key: 2 }, u(R.value, (e, t) => (s(), y(j, { key: t }, [e.kind === "header" ? (s(), y("button", {
3859
+ }, [ce.value ? (s(), y("div", sl, C(x(n).mergeTag.picker.empty), 1)) : le.value ? (s(), y("div", cl, C(x(n).mergeTag.picker.noResults), 1)) : (s(!0), y(A, { key: 2 }, u(R.value, (e, t) => (s(), y(A, { key: t }, [e.kind === "header" ? (s(), y("button", {
3842
3860
  key: 0,
3843
3861
  ref_for: !0,
3844
3862
  ref: (t) => re(e.group, t),
3845
3863
  type: "button",
3846
- "aria-expanded": !N(e.group),
3847
- "aria-controls": hl,
3864
+ "aria-expanded": !M(e.group),
3865
+ "aria-controls": gl,
3848
3866
  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)]",
3849
3867
  "data-testid": "merge-tag-picker-group-header",
3850
3868
  "data-group-name": e.group,
3851
- "data-group-collapsed": N(e.group) ? "true" : "false",
3852
- onClick: (t) => I(e.group)
3869
+ "data-group-collapsed": M(e.group) ? "true" : "false",
3870
+ onClick: (t) => F(e.group)
3853
3871
  }, [
3854
- P(x(lt), {
3872
+ N(x(lt), {
3855
3873
  size: 12,
3856
3874
  "stroke-width": 2,
3857
- class: E(["tpl:transition-transform", N(e.group) ? "tpl:-rotate-90" : ""])
3875
+ class: O(["tpl:transition-transform", M(e.group) ? "tpl:-rotate-90" : ""])
3858
3876
  }, null, 8, ["class"]),
3859
- D("span", null, _(e.group), 1),
3860
- D("span", ll, " (" + _(x(i)(x(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3861
- ], 8, cl)) : (s(), y("button", {
3877
+ E("span", null, C(e.group), 1),
3878
+ E("span", ul, " (" + C(x(i)(x(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3879
+ ], 8, ll)) : (s(), y("button", {
3862
3880
  key: 1,
3863
3881
  id: se(e.index),
3864
3882
  type: "button",
3865
3883
  role: "option",
3866
- "aria-selected": e.index === O.value,
3867
- "data-selected": e.index === O.value ? "true" : "false",
3884
+ "aria-selected": e.index === D.value,
3885
+ "data-selected": e.index === D.value ? "true" : "false",
3868
3886
  "data-merge-tag-index": e.index,
3869
3887
  "data-merge-tag-value": e.tag.value,
3870
3888
  title: e.tag.description ? `${e.tag.value} — ${e.tag.description}` : e.tag.value,
3871
- class: E(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === O.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
3889
+ class: O(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === D.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
3872
3890
  "data-testid": "merge-tag-picker-item",
3873
- onMousemove: (t) => O.value = e.index,
3891
+ onMousemove: (t) => D.value = e.index,
3874
3892
  onClick: (t) => B(e.tag)
3875
3893
  }, [
3876
- D("span", dl, _(e.tag.label), 1),
3877
- D("span", fl, _(e.tag.value), 1),
3878
- e.tag.description ? (s(), y("span", pl, _(e.tag.description), 1)) : b("", !0),
3879
- e.tag.sample === void 0 ? b("", !0) : (s(), y("span", ml, _(x(i)(x(n).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
3880
- ], 42, ul))], 64))), 128))], 8, al)
3881
- ], 12, Zc)]),
3894
+ E("span", fl, C(e.tag.label), 1),
3895
+ E("span", pl, C(e.tag.value), 1),
3896
+ e.tag.description ? (s(), y("span", ml, C(e.tag.description), 1)) : b("", !0),
3897
+ e.tag.sample === void 0 ? b("", !0) : (s(), y("span", hl, C(x(i)(x(n).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
3898
+ ], 42, dl))], 64))), 128))], 8, ol)
3899
+ ], 12, Qc)]),
3882
3900
  _: 1
3883
3901
  }, 8, ["visible"]));
3884
3902
  }
3885
- }), _l = ["data-logic-keyword"], vl = /* @__PURE__ */ N({
3903
+ }), vl = ["data-logic-keyword"], yl = /* @__PURE__ */ M({
3886
3904
  __name: "LogicTagBadge",
3887
3905
  props: {
3888
3906
  value: {},
3889
3907
  syntax: {}
3890
3908
  },
3891
3909
  setup(e) {
3892
- let t = e, n = v(() => V(t.value, t.syntax)), r = v(() => R(t.value, t.syntax));
3910
+ let t = e, n = v(() => V(t.value, t.syntax)), r = v(() => z(t.value, t.syntax));
3893
3911
  return (e, t) => n.value ? (s(), y("span", {
3894
3912
  key: 0,
3895
3913
  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",
@@ -3899,22 +3917,22 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3899
3917
  },
3900
3918
  "data-testid": "merge-tag-logic-badge",
3901
3919
  "data-logic-keyword": r.value
3902
- }, _(r.value), 9, _l)) : b("", !0);
3920
+ }, C(r.value), 9, vl)) : b("", !0);
3903
3921
  }
3904
- }), yl = ["aria-labelledby", "data-tpl-theme"], bl = { 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" }, xl = ["id"], Sl = ["aria-label"], Cl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, wl = [
3922
+ }), bl = ["aria-labelledby", "data-tpl-theme"], xl = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Sl = ["id"], Cl = ["aria-label"], wl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Tl = [
3905
3923
  "id",
3906
3924
  "placeholder",
3907
3925
  "aria-label",
3908
3926
  "aria-activedescendant"
3909
- ], Tl = ["aria-label"], El = {
3927
+ ], El = ["aria-label"], Dl = {
3910
3928
  key: 0,
3911
3929
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3912
3930
  "data-testid": "logic-picker-empty"
3913
- }, Dl = {
3931
+ }, Ol = {
3914
3932
  key: 1,
3915
3933
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3916
3934
  "data-testid": "logic-picker-empty"
3917
- }, Ol = ["data-group-name"], kl = [
3935
+ }, kl = ["data-group-name"], Al = [
3918
3936
  "id",
3919
3937
  "aria-selected",
3920
3938
  "data-selected",
@@ -3922,41 +3940,41 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3922
3940
  "data-logic-kind",
3923
3941
  "onMousemove",
3924
3942
  "onClick"
3925
- ], Al = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, jl = { class: "tpl:text-sm tpl:font-medium" }, Ml = {
3943
+ ], jl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Ml = { class: "tpl:text-sm tpl:font-medium" }, Nl = {
3926
3944
  key: 0,
3927
3945
  class: "tpl:flex tpl:items-center"
3928
- }, Nl = {
3946
+ }, Pl = {
3929
3947
  key: 1,
3930
3948
  class: "tpl:flex tpl:items-center tpl:gap-1"
3931
- }, Pl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Fl = {
3949
+ }, Fl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Il = {
3932
3950
  key: 0,
3933
3951
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3934
- }, Il = "tpl-logic-picker-list", Ll = /* @__PURE__ */ N({
3952
+ }, Ll = "tpl-logic-picker-list", Rl = /* @__PURE__ */ M({
3935
3953
  __name: "LogicTagPickerModal",
3936
3954
  setup(e) {
3937
- let t = Me(ze, "LogicTagPickerModal"), { t: n } = W(), i = d(Ae, ne.liquid), a = d(Ve, null), o = d(Be, null), c = m(""), p = ke(c, 200), h = m(null), w = v(() => p.value.trim().length > 0), O = m(0);
3938
- function A(e) {
3955
+ let t = Me(ze, "LogicTagPickerModal"), { t: n } = W(), i = d(Ae, ne.liquid), a = d(Ve, null), o = d(Be, null), c = m(""), p = ke(c, 200), h = m(null), T = v(() => p.value.trim().length > 0), D = m(0);
3956
+ function k(e) {
3939
3957
  let t = p.value.trim().toLowerCase();
3940
3958
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
3941
3959
  }
3942
- let M = v(() => t.tags.value.filter((e) => A([
3960
+ let j = v(() => t.tags.value.filter((e) => k([
3943
3961
  e.label,
3944
3962
  e.value,
3945
3963
  e.description
3946
- ]))), N = v(() => t.pairs.value.filter((e) => A([
3964
+ ]))), M = v(() => t.pairs.value.filter((e) => k([
3947
3965
  e.label,
3948
3966
  e.before,
3949
3967
  e.after,
3950
3968
  e.description
3951
- ]))), I = v(() => [...N.value.map((e) => ({
3969
+ ]))), F = v(() => [...M.value.map((e) => ({
3952
3970
  kind: "pair",
3953
3971
  pair: e,
3954
3972
  group: e.group
3955
- })), ...M.value.map((e) => ({
3973
+ })), ...j.value.map((e) => ({
3956
3974
  kind: "tag",
3957
3975
  tag: e,
3958
3976
  group: e.group
3959
- }))]), ee = v(() => t.tags.value.some((e) => !!e.group) || t.pairs.value.some((e) => !!e.group));
3977
+ }))]), I = v(() => t.tags.value.some((e) => !!e.group) || t.pairs.value.some((e) => !!e.group));
3960
3978
  function L(e) {
3961
3979
  let t = n.logicTag.picker.otherGroup, r = /* @__PURE__ */ new Map(), i = [];
3962
3980
  for (let n of e) {
@@ -3976,8 +3994,8 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3976
3994
  pair: r.pair,
3977
3995
  index: n
3978
3996
  }), t.push(r.pair)), n++;
3979
- }, i = I.value;
3980
- if (w.value || !ee.value) for (let e of i) r(e);
3997
+ }, i = F.value;
3998
+ if (T.value || !I.value) for (let e of i) r(e);
3981
3999
  else for (let [t, n] of L(i)) {
3982
4000
  e.push({
3983
4001
  kind: "header",
@@ -3990,10 +4008,10 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
3990
4008
  items: t
3991
4009
  };
3992
4010
  }), z = v(() => R.value.items), B = v(() => t.tags.value.length === 0 && t.pairs.value.length === 0), V = v(() => !B.value && z.value.length === 0);
3993
- F(() => t.isOpen.value, (e) => {
3994
- e && (c.value = "", O.value = 0, l(() => h.value?.focus()));
3995
- }), F(z, (e) => {
3996
- O.value >= e.length && (O.value = Math.max(0, e.length - 1));
4011
+ P(() => t.isOpen.value, (e) => {
4012
+ e && (c.value = "", D.value = 0, l(() => h.value?.focus()));
4013
+ }), P(z, (e) => {
4014
+ D.value >= e.length && (D.value = Math.max(0, e.length - 1));
3997
4015
  });
3998
4016
  let H = m(null);
3999
4017
  function te(e) {
@@ -4003,8 +4021,8 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
4003
4021
  t.resolve(null);
4004
4022
  }
4005
4023
  function ie(e) {
4006
- z.value.length !== 0 && (O.value = Math.max(0, Math.min(z.value.length - 1, O.value + e)), l(() => {
4007
- H.value?.querySelector(`[data-logic-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
4024
+ z.value.length !== 0 && (D.value = Math.max(0, Math.min(z.value.length - 1, D.value + e)), l(() => {
4025
+ H.value?.querySelector(`[data-logic-index="${D.value}"]`)?.scrollIntoView({ block: "nearest" });
4008
4026
  }));
4009
4027
  }
4010
4028
  function ae(e) {
@@ -4012,49 +4030,49 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
4012
4030
  else if (e.key === "ArrowUp") e.preventDefault(), ie(-1);
4013
4031
  else if (e.key === "Enter") {
4014
4032
  e.preventDefault();
4015
- let t = z.value[O.value];
4033
+ let t = z.value[D.value];
4016
4034
  t && te(t);
4017
4035
  }
4018
4036
  }
4019
4037
  function oe(e) {
4020
- return `${Il}-opt-${e}`;
4038
+ return `${Ll}-opt-${e}`;
4021
4039
  }
4022
4040
  function U() {
4023
- return z.value.length === 0 ? void 0 : `${Il}-opt-${O.value}`;
4041
+ return z.value.length === 0 ? void 0 : `${Ll}-opt-${D.value}`;
4024
4042
  }
4025
- return (e, l) => (s(), C(on, {
4043
+ return (e, l) => (s(), w(on, {
4026
4044
  visible: x(t).isOpen.value,
4027
4045
  onClose: re,
4028
4046
  onKeydown: ae
4029
4047
  }, {
4030
- default: f(() => [D("div", {
4048
+ default: f(() => [E("div", {
4031
4049
  role: "dialog",
4032
4050
  "aria-modal": "true",
4033
- "aria-labelledby": `${Il}-title`,
4051
+ "aria-labelledby": `${Ll}-title`,
4034
4052
  "data-tpl-theme": x(o),
4035
4053
  "data-testid": "logic-picker-modal",
4036
4054
  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)]",
4037
- style: k(x(a))
4055
+ style: _(x(a))
4038
4056
  }, [
4039
- D("header", bl, [D("h2", {
4040
- id: `${Il}-title`,
4057
+ E("header", xl, [E("h2", {
4058
+ id: `${Ll}-title`,
4041
4059
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
4042
- }, _(x(n).logicTag.picker.title), 9, xl), D("button", {
4060
+ }, C(x(n).logicTag.picker.title), 9, Sl), E("button", {
4043
4061
  type: "button",
4044
4062
  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)]",
4045
4063
  "aria-label": x(n).logicTag.picker.close,
4046
4064
  "data-testid": "logic-picker-close",
4047
4065
  onClick: re
4048
- }, [P(x(jt), {
4066
+ }, [N(x(jt), {
4049
4067
  size: 16,
4050
4068
  "stroke-width": 2
4051
- })], 8, Sl)]),
4052
- D("div", Cl, [P(x(dt), {
4069
+ })], 8, Cl)]),
4070
+ E("div", wl, [N(x(dt), {
4053
4071
  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)]",
4054
4072
  size: 14,
4055
4073
  "stroke-width": 2
4056
- }), r(D("input", {
4057
- id: `${Il}-search`,
4074
+ }), r(E("input", {
4075
+ id: `${Ll}-search`,
4058
4076
  ref_key: "searchInputRef",
4059
4077
  ref: h,
4060
4078
  "onUpdate:modelValue": l[0] ||= (e) => c.value = e,
@@ -4062,61 +4080,61 @@ var ko = { class: "tpl:mb-3.5" }, Ao = ["value"], jo = ["value"], Mo = {
4062
4080
  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)]",
4063
4081
  placeholder: x(n).logicTag.picker.searchPlaceholder,
4064
4082
  "aria-label": x(n).logicTag.picker.searchAriaLabel,
4065
- "aria-controls": Il,
4083
+ "aria-controls": Ll,
4066
4084
  "aria-activedescendant": U(),
4067
4085
  "data-testid": "logic-picker-search",
4068
4086
  onKeydown: l[1] ||= g(S(() => {}, ["prevent"]), ["enter"])
4069
- }, null, 40, wl), [[T, c.value]])]),
4070
- D("div", {
4071
- id: Il,
4087
+ }, null, 40, Tl), [[ee, c.value]])]),
4088
+ E("div", {
4089
+ id: Ll,
4072
4090
  ref_key: "listRef",
4073
4091
  ref: H,
4074
4092
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
4075
4093
  role: "listbox",
4076
4094
  "aria-label": x(n).logicTag.picker.title,
4077
4095
  "data-testid": "logic-picker-list"
4078
- }, [B.value ? (s(), y("div", El, _(x(n).logicTag.picker.empty), 1)) : V.value ? (s(), y("div", Dl, _(x(n).logicTag.picker.noResults), 1)) : (s(!0), y(j, { key: 2 }, u(R.value.rows, (e, t) => (s(), y(j, { key: t }, [e.kind === "header" ? (s(), y("div", {
4096
+ }, [B.value ? (s(), y("div", Dl, C(x(n).logicTag.picker.empty), 1)) : V.value ? (s(), y("div", Ol, C(x(n).logicTag.picker.noResults), 1)) : (s(!0), y(A, { key: 2 }, u(R.value.rows, (e, t) => (s(), y(A, { key: t }, [e.kind === "header" ? (s(), y("div", {
4079
4097
  key: 0,
4080
4098
  class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
4081
4099
  "data-testid": "logic-picker-header",
4082
4100
  "data-group-name": e.label
4083
- }, _(e.label), 9, Ol)) : (s(), y("button", {
4101
+ }, C(e.label), 9, kl)) : (s(), y("button", {
4084
4102
  key: 1,
4085
4103
  id: oe(e.index),
4086
4104
  type: "button",
4087
4105
  role: "option",
4088
- "aria-selected": e.index === O.value,
4089
- "data-selected": e.index === O.value ? "true" : "false",
4106
+ "aria-selected": e.index === D.value,
4107
+ "data-selected": e.index === D.value ? "true" : "false",
4090
4108
  "data-logic-index": e.index,
4091
4109
  "data-logic-kind": e.kind,
4092
- class: E(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === O.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
4110
+ class: O(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === D.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
4093
4111
  "data-testid": "logic-picker-item",
4094
- onMousemove: (t) => O.value = e.index,
4112
+ onMousemove: (t) => D.value = e.index,
4095
4113
  onClick: (t) => te(e.kind === "tag" ? e.tag : e.pair)
4096
4114
  }, [
4097
- D("span", Al, [D("span", jl, _(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), y("span", Ml, [P(vl, {
4115
+ E("span", jl, [E("span", Ml, C(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), y("span", Nl, [N(yl, {
4098
4116
  value: e.tag.value,
4099
4117
  syntax: x(i)
4100
- }, null, 8, ["value", "syntax"])])) : (s(), y("span", Nl, [
4101
- P(vl, {
4118
+ }, null, 8, ["value", "syntax"])])) : (s(), y("span", Pl, [
4119
+ N(yl, {
4102
4120
  value: e.pair.before,
4103
4121
  syntax: x(i)
4104
4122
  }, null, 8, ["value", "syntax"]),
4105
- l[2] ||= D("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
4106
- P(vl, {
4123
+ l[2] ||= E("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
4124
+ N(yl, {
4107
4125
  value: e.pair.after,
4108
4126
  syntax: x(i)
4109
4127
  }, null, 8, ["value", "syntax"])
4110
4128
  ]))]),
4111
- D("span", Pl, _(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
4112
- (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), y("span", Fl, _(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : b("", !0)
4113
- ], 42, kl))], 64))), 128))], 8, Tl)
4114
- ], 12, yl)]),
4129
+ E("span", Fl, C(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
4130
+ (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), y("span", Il, C(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : b("", !0)
4131
+ ], 42, Al))], 64))), 128))], 8, El)
4132
+ ], 12, bl)]),
4115
4133
  _: 1
4116
4134
  }, 8, ["visible"]));
4117
4135
  }
4118
4136
  });
4119
4137
  //#endregion
4120
- export { Gc as a, Fn as c, fn as d, dn as f, qc as i, En as l, sn as m, gl as n, Uc as o, ln as p, Xc as r, Rc as s, Ll as t, Tn as u };
4138
+ export { Kc as a, Fn as c, fn as d, dn as f, Jc as i, En as l, sn as m, _l as n, Wc as o, ln as p, Zc as r, zc as s, Rl as t, Tn as u };
4121
4139
 
4122
- //# sourceMappingURL=styles-znpPfrFd.js.map
4140
+ //# sourceMappingURL=styles-DEU_sn3k.js.map