@templatical/editor 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/{AiChatSidebar-Bru6-ziQ.js → AiChatSidebar-Nq-jrGaf.js} +2 -2
  2. package/dist/{AiFeatureMenu-CcqjRMFW.js → AiFeatureMenu-tg_zMKMK.js} +3 -3
  3. package/dist/{BlockIssueBadge-Dmj9rVra.js → BlockIssueBadge-Bd94kIiw.js} +2 -2
  4. package/dist/BlockPreviewCanvas-B34aMhHe.js +117 -0
  5. package/dist/{CloudEditor-iK4vkpNm.js → CloudEditor-DjN_9Yso.js} +124 -119
  6. package/dist/{CollaboratorBar-C_1SF7Xf.js → CollaboratorBar-Bhazzcg-.js} +2 -2
  7. package/dist/{ColorPicker-s9GHXjZs.js → ColorPicker-DXGrcJxJ.js} +5 -5
  8. package/dist/{CommentsSidebar-DvNEdugN.js → CommentsSidebar-ku1kt10u.js} +3 -3
  9. package/dist/{CountdownBlock-J_Q9JRQM.js → CountdownBlock-CN9Lc23W.js} +1 -1
  10. package/dist/{CountdownToolbar-DPRcv3Fu.js → CountdownToolbar-VEsIyKV6.js} +3 -3
  11. package/dist/{DesignReferenceSidebar-BxPo0zyx.js → DesignReferenceSidebar-C4pTMzQE.js} +3 -3
  12. package/dist/{IssuesPanel-CEnEGFtd.js → IssuesPanel-CEfzOpS_.js} +2 -2
  13. package/dist/MergeTagModeToggle-C3V2xGAg.js +180 -0
  14. package/dist/{MergeTagSuggestion-D9eCryMC.js → MergeTagSuggestion-Dn8ww9nV.js} +2 -2
  15. package/dist/{NumberWithSuffix-CCPN_oCh.js → NumberWithSuffix-BGocZkj9.js} +1 -1
  16. package/dist/{ParagraphEditor-MKJYyWN9.js → ParagraphEditor-D-fz0kUb.js} +19 -19
  17. package/dist/{RichTextEditorContent-FbnWsh46.js → RichTextEditorContent-DydrqFts.js} +5 -5
  18. package/dist/{SaveBlockDialog-CFAJHP3v.js → SaveBlockDialog-BDDFbAWF.js} +6 -6
  19. package/dist/{SavedBlocksBrowserModal-C_-Xcm0Q.js → SavedBlocksBrowserModal-Djik_fJh.js} +6 -6
  20. package/dist/{SavedBlocksPanels-CRf7zzFn.js → SavedBlocksPanels-CxemyPxL.js} +1 -1
  21. package/dist/{SavedBlocksPickBar-C1FTJP-I.js → SavedBlocksPickBar-Dlhipmob.js} +2 -2
  22. package/dist/{SnapshotHistory-DWlQ3Eh0.js → SnapshotHistory-DPbM4ons.js} +4 -4
  23. package/dist/{TemplateScoringPanel-ifGGGWs5.js → TemplateScoringPanel-BFYgweDX.js} +2 -2
  24. package/dist/{TestEmailModal-D90-3Yex.js → TestEmailModal-IZfwgya-.js} +71 -59
  25. package/dist/{TestEmailPanel-B0u_Yd3X.js → TestEmailPanel-QEEx_PkN.js} +1 -1
  26. package/dist/{TitleEditor-DzsPxKv4.js → TitleEditor-BB4YlIBF.js} +10 -10
  27. package/dist/{TplModal-CykwWFhF.js → TplModal-DPH4vV8M.js} +3 -3
  28. package/dist/{blockTypeIcons-CpKkI47V.js → blockTypeIcons-Wzd7W_2x.js} +1 -1
  29. package/dist/bundle-stats.json +6 -6
  30. package/dist/{ca-D47BxSGu.js → ca-CO4nq6TX.js} +8 -1
  31. package/dist/cdn/chunks/{AiChatSidebar-BMnsF8G6.js → AiChatSidebar-CN-0DIuA.js} +11 -11
  32. package/dist/cdn/chunks/{AiChatSidebar-BMnsF8G6.js.map → AiChatSidebar-CN-0DIuA.js.map} +1 -1
  33. package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js → AiFeatureMenu-B5pV6Iux.js} +8 -8
  34. package/dist/cdn/chunks/{AiFeatureMenu-hWgWQg11.js.map → AiFeatureMenu-B5pV6Iux.js.map} +1 -1
  35. package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js → BlockIssueBadge-aanOjeyi.js} +4 -4
  36. package/dist/cdn/chunks/{BlockIssueBadge-Da4yR-mh.js.map → BlockIssueBadge-aanOjeyi.js.map} +1 -1
  37. package/dist/cdn/chunks/BlockPreviewCanvas-Dc4F4HzY.js +119 -0
  38. package/dist/cdn/chunks/BlockPreviewCanvas-Dc4F4HzY.js.map +1 -0
  39. package/dist/cdn/chunks/{CloudEditor-S8zLHtKb.js → CloudEditor-CeKaWWO5.js} +129 -124
  40. package/dist/cdn/chunks/CloudEditor-CeKaWWO5.js.map +1 -0
  41. package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js → CollaboratorBar-CEdKr0A2.js} +4 -4
  42. package/dist/cdn/chunks/{CollaboratorBar-mkJVAkSh.js.map → CollaboratorBar-CEdKr0A2.js.map} +1 -1
  43. package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js → ColorPicker-BckwEfcN.js} +7 -7
  44. package/dist/cdn/chunks/{ColorPicker-DZSzZ5ZP.js.map → ColorPicker-BckwEfcN.js.map} +1 -1
  45. package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js → CommentsSidebar-6PfpJKh-.js} +18 -18
  46. package/dist/cdn/chunks/{CommentsSidebar-DHdRiGPX.js.map → CommentsSidebar-6PfpJKh-.js.map} +1 -1
  47. package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js → CountdownBlock-CoBmvQKv.js} +2 -2
  48. package/dist/cdn/chunks/{CountdownBlock-Bffpoppw.js.map → CountdownBlock-CoBmvQKv.js.map} +1 -1
  49. package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js → CountdownToolbar-CdV8RTQu.js} +4 -4
  50. package/dist/cdn/chunks/{CountdownToolbar-DAnmIZjq.js.map → CountdownToolbar-CdV8RTQu.js.map} +1 -1
  51. package/dist/cdn/chunks/{DesignReferenceSidebar-CM-k15pd.js → DesignReferenceSidebar-BjlaP69l.js} +90 -90
  52. package/dist/cdn/chunks/{DesignReferenceSidebar-CM-k15pd.js.map → DesignReferenceSidebar-BjlaP69l.js.map} +1 -1
  53. package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js → IssuesPanel-CkkEnhxZ.js} +9 -9
  54. package/dist/cdn/chunks/{IssuesPanel-D80JedOj.js.map → IssuesPanel-CkkEnhxZ.js.map} +1 -1
  55. package/dist/cdn/chunks/MergeTagModeToggle-DmtR300G.js +127 -0
  56. package/dist/cdn/chunks/MergeTagModeToggle-DmtR300G.js.map +1 -0
  57. package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js → MergeTagSuggestion-Cvlkw_PM.js} +2 -2
  58. package/dist/cdn/chunks/{MergeTagSuggestion-BM349_QH.js.map → MergeTagSuggestion-Cvlkw_PM.js.map} +1 -1
  59. package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js → NumberWithSuffix-BOcMN26z.js} +2 -2
  60. package/dist/cdn/chunks/{NumberWithSuffix-CjlVNIEe.js.map → NumberWithSuffix-BOcMN26z.js.map} +1 -1
  61. package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js → ParagraphEditor-CX1yks4N.js} +35 -35
  62. package/dist/cdn/chunks/{ParagraphEditor-J-1RLyi7.js.map → ParagraphEditor-CX1yks4N.js.map} +1 -1
  63. package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js → RichTextEditorContent-z9s7qxs3.js} +7 -7
  64. package/dist/cdn/chunks/{RichTextEditorContent-BbdgJqWM.js.map → RichTextEditorContent-z9s7qxs3.js.map} +1 -1
  65. package/dist/cdn/chunks/{SaveBlockDialog-Bi_Z3kuA.js → SaveBlockDialog-D2CtW4lC.js} +8 -8
  66. package/dist/cdn/chunks/{SaveBlockDialog-Bi_Z3kuA.js.map → SaveBlockDialog-D2CtW4lC.js.map} +1 -1
  67. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CesYxFsH.js → SavedBlocksBrowserModal-DdUKJzzF.js} +8 -8
  68. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CesYxFsH.js.map → SavedBlocksBrowserModal-DdUKJzzF.js.map} +1 -1
  69. package/dist/cdn/chunks/{SavedBlocksPanels-BsSpJwrW.js → SavedBlocksPanels-1kVbqdpc.js} +2 -2
  70. package/dist/cdn/chunks/{SavedBlocksPanels-BsSpJwrW.js.map → SavedBlocksPanels-1kVbqdpc.js.map} +1 -1
  71. package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js → SavedBlocksPickBar--noDJIyN.js} +6 -6
  72. package/dist/cdn/chunks/{SavedBlocksPickBar-CduR1Cpb.js.map → SavedBlocksPickBar--noDJIyN.js.map} +1 -1
  73. package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js → SnapshotHistory-DFuNJRc9.js} +8 -8
  74. package/dist/cdn/chunks/{SnapshotHistory-DO-gzr3i.js.map → SnapshotHistory-DFuNJRc9.js.map} +1 -1
  75. package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js → TemplateScoringPanel-DG1dAjQk.js} +52 -52
  76. package/dist/cdn/chunks/{TemplateScoringPanel-CTk8WwxU.js.map → TemplateScoringPanel-DG1dAjQk.js.map} +1 -1
  77. package/dist/cdn/chunks/TestEmailModal-CiPfOn2v.js +174 -0
  78. package/dist/cdn/chunks/TestEmailModal-CiPfOn2v.js.map +1 -0
  79. package/dist/cdn/chunks/{TestEmailPanel-048m0kxX.js → TestEmailPanel-saOfnpjz.js} +2 -2
  80. package/dist/cdn/chunks/{TestEmailPanel-048m0kxX.js.map → TestEmailPanel-saOfnpjz.js.map} +1 -1
  81. package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js → TitleEditor-08KM_VzZ.js} +18 -18
  82. package/dist/cdn/chunks/{TitleEditor-J1vgU_J6.js.map → TitleEditor-08KM_VzZ.js.map} +1 -1
  83. package/dist/cdn/chunks/{TplModal-BN53d9Se.js → TplModal-Cu4tBBnF.js} +4 -4
  84. package/dist/cdn/chunks/{TplModal-BN53d9Se.js.map → TplModal-Cu4tBBnF.js.map} +1 -1
  85. package/dist/cdn/chunks/blockTypeIcons-DvohkXqi.js +21 -0
  86. package/dist/cdn/chunks/{blockTypeIcons-etMMQoVv.js.map → blockTypeIcons-DvohkXqi.js.map} +1 -1
  87. package/dist/cdn/chunks/{ca-D47BxSGu.js → ca-CO4nq6TX.js} +9 -2
  88. package/dist/cdn/chunks/{ca-D47BxSGu.js.map → ca-CO4nq6TX.js.map} +1 -1
  89. package/dist/cdn/chunks/{cloud-F-aVi9hj.js → cloud-C2I0P9qj.js} +2 -2
  90. package/dist/cdn/chunks/{cloud-F-aVi9hj.js.map → cloud-C2I0P9qj.js.map} +1 -1
  91. package/dist/{de-CnnxBwh7.js → cdn/chunks/de-CUeaFJph.js} +10 -1
  92. package/dist/cdn/chunks/{de-CnnxBwh7.js.map → de-CUeaFJph.js.map} +1 -1
  93. package/dist/{en-5gW-bYy2.js → cdn/chunks/en-zCYIPAL5.js} +10 -1
  94. package/dist/cdn/chunks/{en-5gW-bYy2.js.map → en-zCYIPAL5.js.map} +1 -1
  95. package/dist/cdn/chunks/{es-sQ9SdI0l.js → es-BSiH7YkP.js} +9 -2
  96. package/dist/cdn/chunks/{es-sQ9SdI0l.js.map → es-BSiH7YkP.js.map} +1 -1
  97. package/dist/cdn/chunks/{extensions-C49c51P1.js → extensions-DBWF_lxx.js} +16 -16
  98. package/dist/cdn/chunks/{extensions-C49c51P1.js.map → extensions-DBWF_lxx.js.map} +1 -1
  99. package/dist/{fr-DBZ5w21C.js → cdn/chunks/fr-DTVJ3det.js} +10 -1
  100. package/dist/cdn/chunks/fr-DTVJ3det.js.map +1 -0
  101. package/dist/cdn/chunks/{icons-CYWw8Xfp.js → icons-Cqxvwgz7.js} +35 -14
  102. package/dist/cdn/chunks/icons-Cqxvwgz7.js.map +1 -0
  103. package/dist/cdn/chunks/keys-B5uoP9P7.js +12 -0
  104. package/dist/cdn/chunks/keys-B5uoP9P7.js.map +1 -0
  105. package/dist/cdn/chunks/{nl-DOL7Fnfo.js → nl-BqSquFS3.js} +9 -2
  106. package/dist/cdn/chunks/nl-BqSquFS3.js.map +1 -0
  107. package/dist/{pt-BR-DRCdHX1d.js → cdn/chunks/pt-BR-CMljK37h.js} +10 -1
  108. package/dist/cdn/chunks/{pt-BR-DRCdHX1d.js.map → pt-BR-CMljK37h.js.map} +1 -1
  109. package/dist/cdn/chunks/{src-BKI1x1k7.js → src-BCJna-6p.js} +183 -165
  110. package/dist/cdn/chunks/{src-BKI1x1k7.js.map → src-BCJna-6p.js.map} +1 -1
  111. package/dist/cdn/chunks/{src-SluTVSz_.js → src-C45kfA2t.js} +17 -17
  112. package/dist/cdn/chunks/{src-SluTVSz_.js.map → src-C45kfA2t.js.map} +1 -1
  113. package/dist/cdn/chunks/{src-CzoMNRq4.js → src-XQmI_Xs1.js} +33 -33
  114. package/dist/cdn/chunks/{src-CzoMNRq4.js.map → src-XQmI_Xs1.js.map} +1 -1
  115. package/dist/cdn/chunks/{src-CM0gCvAS.js → src-YVsPFLNJ.js} +251 -251
  116. package/dist/cdn/chunks/{src-CM0gCvAS.js.map → src-YVsPFLNJ.js.map} +1 -1
  117. package/dist/cdn/chunks/{styles-BbfU2w9R.js → styles-BohMfIBd.js} +700 -693
  118. package/dist/cdn/chunks/styles-BohMfIBd.js.map +1 -0
  119. package/dist/cdn/chunks/{tiptap-DUTbZTeR.js → tiptap-DRKu__AX.js} +5 -5
  120. package/dist/cdn/chunks/{tiptap-DUTbZTeR.js.map → tiptap-DRKu__AX.js.map} +1 -1
  121. package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js → useCloudI18n-Bem8DUjH.js} +2 -2
  122. package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js.map → useCloudI18n-Bem8DUjH.js.map} +1 -1
  123. package/dist/cdn/chunks/{useEditorCore-CzMhD6Gd.js → useEditorCore-B_vwuKdI.js} +434 -414
  124. package/dist/cdn/chunks/useEditorCore-B_vwuKdI.js.map +1 -0
  125. package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js → useI18n-graz19nI.js} +2 -2
  126. package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js.map → useI18n-graz19nI.js.map} +1 -1
  127. package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js → useMergeTag-rTzAFMlr.js} +4 -4
  128. package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js.map → useMergeTag-rTzAFMlr.js.map} +1 -1
  129. package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js → usePopoverPosition-BaFxLP3w.js} +2 -2
  130. package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js.map → usePopoverPosition-BaFxLP3w.js.map} +1 -1
  131. package/dist/cdn/editor.css +1 -1
  132. package/dist/cdn/editor.js +144 -139
  133. package/dist/cdn/editor.js.map +1 -1
  134. package/dist/{cloud-CeZPgo1V.js → cloud-DsUct4Zq.js} +1 -1
  135. package/dist/{cdn/chunks/de-CnnxBwh7.js → de-CUeaFJph.js} +8 -3
  136. package/dist/{dist-CL_CfQ3Q.js → dist-9uhI32Q4.js} +2 -2
  137. package/dist/{dist-3DHaYEiT.js → dist-BAkGuPYm.js} +2 -2
  138. package/dist/dist-BIYm-U9x.js +5 -0
  139. package/dist/{dist-3HenmYIg.js → dist-ByJVlKWy.js} +1 -1
  140. package/dist/{dist-DKWoZJAV.js → dist-C5tigvDF.js} +2 -2
  141. package/dist/{dist-bivrM-nS.js → dist-CQiAZlTt.js} +2 -2
  142. package/dist/{dist-Ih7ejWzn.js → dist-C_kAE1sC.js} +2 -2
  143. package/dist/{dist-CclnU_v0.js → dist-CkCVlKj_.js} +2 -2
  144. package/dist/{dist-B_etKYyh.js → dist-DFO896yT.js} +5 -5
  145. package/dist/{dist-BJbqgyPn.js → dist-DPHqs0Yh.js} +105 -87
  146. package/dist/{dist-DOtLGnLr.js → dist-DWu9QWFl.js} +2 -2
  147. package/dist/{dist-BCnJcAQc.js → dist-IGetXrbO.js} +2 -2
  148. package/dist/dist-JXOq1hib.js +5 -0
  149. package/dist/{cdn/chunks/en-5gW-bYy2.js → en-zCYIPAL5.js} +8 -3
  150. package/dist/{es-sQ9SdI0l.js → es-BSiH7YkP.js} +8 -1
  151. package/dist/{extensions-3870a_3R.js → extensions-C0DXnYdA.js} +13 -13
  152. package/dist/{cdn/chunks/fr-DBZ5w21C.js → fr-DTVJ3det.js} +8 -3
  153. package/dist/keys-BVlG5Ozc.js +10 -0
  154. package/dist/{nl-DOL7Fnfo.js → nl-BqSquFS3.js} +8 -1
  155. package/dist/{cdn/chunks/pt-BR-DRCdHX1d.js → pt-BR-CMljK37h.js} +8 -3
  156. package/dist/style.css +1 -1
  157. package/dist/{styles-BWTIgN5L.js → styles-BTTD0Je4.js} +856 -849
  158. package/dist/templatical-editor.js +92 -87
  159. package/dist/{useCloudI18n-BmiygEM4.js → useCloudI18n-DGr3b2SX.js} +1 -1
  160. package/dist/{useEditorCore-CuMMIfiS.js → useEditorCore-DOrGex_t.js} +917 -897
  161. package/dist/{useI18n-D2L9Mkik.js → useI18n-BhAejA-x.js} +1 -1
  162. package/dist/{useMergeTag-BTdDq5DC.js → useMergeTag-Ce95YIOO.js} +3 -3
  163. package/dist/{usePopoverPosition-BO2LNy5n.js → usePopoverPosition-vjKJaqJf.js} +1 -1
  164. package/package.json +20 -20
  165. package/dist/BlockPreviewCanvas-MD9BGuXV.js +0 -115
  166. package/dist/ViewportToggle-BjmbNoao.js +0 -97
  167. package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js +0 -117
  168. package/dist/cdn/chunks/BlockPreviewCanvas-eASrdFSN.js.map +0 -1
  169. package/dist/cdn/chunks/CloudEditor-S8zLHtKb.js.map +0 -1
  170. package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js +0 -162
  171. package/dist/cdn/chunks/TestEmailModal-CCWEVrE2.js.map +0 -1
  172. package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js +0 -66
  173. package/dist/cdn/chunks/ViewportToggle-CFmF-N4i.js.map +0 -1
  174. package/dist/cdn/chunks/blockTypeIcons-etMMQoVv.js +0 -21
  175. package/dist/cdn/chunks/fr-DBZ5w21C.js.map +0 -1
  176. package/dist/cdn/chunks/icons-CYWw8Xfp.js.map +0 -1
  177. package/dist/cdn/chunks/keys-D7kUmfpE.js +0 -12
  178. package/dist/cdn/chunks/keys-D7kUmfpE.js.map +0 -1
  179. package/dist/cdn/chunks/nl-DOL7Fnfo.js.map +0 -1
  180. package/dist/cdn/chunks/styles-BbfU2w9R.js.map +0 -1
  181. package/dist/cdn/chunks/useEditorCore-CzMhD6Gd.js.map +0 -1
  182. package/dist/dist-CcQLJeWV.js +0 -5
  183. package/dist/dist-DerdmERj.js +0 -5
  184. package/dist/keys-CHPcp-Nz.js +0 -10
@@ -1,24 +1,24 @@
1
1
  import { C as e, F as t, G as n, H as r, J as i, K as a, L as o, M as s, 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-D840DIZB.js";
2
- import { A as I, F as L, c as R, h as z, i as B, m as V, n as ee, o as te, r as H, s as ne, v as U } from "./src-BKI1x1k7.js";
3
- import { A as re, C as ie, F as ae, I as oe, 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-CzMhD6Gd.js";
2
+ import { P as I, S as L, c as R, i as z, n as B, r as V, s as H, u as ee, v as te, y as ne, z as re } from "./src-BCJna-6p.js";
3
+ import { A as ie, C as U, F as ae, I as oe, 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-B_vwuKdI.js";
4
4
  import { _ as Oe, d as ke } from "./dist-CiBEt0VR.js";
5
- import { A as Ae, B as je, D as Me, I as Ne, L as Pe, M as Fe, O as Ie, P as Le, R as Re, _ as ze, a as Be, d as Ve, f as He, h as Ue, l as We, m as Ge, n as Ke, o as qe, p as Je, s as Ye, w as Xe, z as Ze } from "./keys-D7kUmfpE.js";
6
- import { t as W } from "./useI18n-8Wd7G-cq.js";
7
- import { a as Qe, n as $e } from "./usePopoverPosition-Bx0QewTv.js";
8
- import { $ as et, A as tt, At as nt, C as rt, Ct as it, E as at, Et as ot, H as G, It as st, J as ct, K as lt, M as ut, N as dt, Ot as ft, Pt as pt, Q as mt, R as ht, S as gt, St as _t, Z as vt, ct as yt, d as bt, dt as xt, ft as St, gt as Ct, h as wt, m as Tt, n as Et, nt as Dt, ot as Ot, p as kt, rt as At, s as jt, tt as Mt, ut as Nt, v as Pt, w as Ft, wt as It } from "./icons-CYWw8Xfp.js";
9
- import { t as Lt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
10
- import { t as Rt } from "./useCloudI18n-BjNENqkM.js";
11
- import { t as zt } from "./useMergeTag-C7G31KV-.js";
12
- import { t as Bt } from "./useAliveFlag-aanU8uqB.js";
13
- import { n as Vt, t as Ht } from "./emailFrameWidth-BmFCN2dp.js";
14
- import { t as Ut } from "./readableTextColor-f8Kykfnh.js";
15
- import { t as Wt } from "./blockTypeIcons-etMMQoVv.js";
16
- import { _ as Gt, f as K, g as Kt, h as q, i as qt, l as Jt, m as J, n as Yt, p as Y, t as X, u as Xt } from "./ColorPicker-DZSzZ5ZP.js";
17
- import { n as Zt, r as Qt } from "./MergeTagSuggestion-BM349_QH.js";
18
- import { i as Z, n as Q, r as $t, t as en } from "./NumberWithSuffix-CjlVNIEe.js";
19
- import { t as tn } from "./TplModal-BN53d9Se.js";
5
+ import { B as Ae, D as je, F as Me, H as Ne, L as Pe, N as Fe, O as Ie, R as Le, V as Re, _ as ze, a as Be, d as Ve, f as He, h as Ue, j as We, k as Ge, l as Ke, m as qe, n as Je, o as Ye, p as Xe, s as Ze, w as Qe, z as $e } from "./keys-B5uoP9P7.js";
6
+ import { t as W } from "./useI18n-graz19nI.js";
7
+ import { a as et, n as tt } from "./usePopoverPosition-BaFxLP3w.js";
8
+ import { $ as nt, C as rt, Ct as it, D as at, Dt as ot, Ft as st, Lt as ct, N as lt, P as ut, Q as dt, T as ft, Tt as pt, U as G, Y as mt, _t as ht, d as gt, dt as _t, et as vt, ft as yt, g as bt, h as xt, it as St, j as Ct, jt as wt, kt as Tt, lt as Et, m as Dt, n as Ot, nt as kt, pt as At, q as jt, rt as Mt, s as Nt, st as Pt, w as Ft, wt as It, y as Lt, z as Rt } from "./icons-Cqxvwgz7.js";
9
+ import { t as zt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
10
+ import { t as Bt } from "./useCloudI18n-Bem8DUjH.js";
11
+ import { t as Vt } from "./useMergeTag-rTzAFMlr.js";
12
+ import { t as Ht } from "./useAliveFlag-aanU8uqB.js";
13
+ import { n as Ut, t as Wt } from "./emailFrameWidth-BmFCN2dp.js";
14
+ import { t as Gt } from "./readableTextColor-f8Kykfnh.js";
15
+ import { t as Kt } from "./blockTypeIcons-DvohkXqi.js";
16
+ import { _ as qt, f as K, g as Jt, h as q, i as Yt, l as Xt, m as J, n as Zt, p as Y, t as X, u as Qt } from "./ColorPicker-BckwEfcN.js";
17
+ import { n as $t, r as en } from "./MergeTagSuggestion-Cvlkw_PM.js";
18
+ import { i as Z, n as Q, r as tn, t as nn } from "./NumberWithSuffix-BOcMN26z.js";
19
+ import { t as rn } from "./TplModal-Cu4tBBnF.js";
20
20
  //#region src/composables/useSavedBlocksFeature.ts
21
- function nn(e) {
21
+ function an(e) {
22
22
  let { provider: t, editor: n } = e, r = ae({
23
23
  provider: t,
24
24
  onError: e.onError
@@ -54,7 +54,7 @@ function nn(e) {
54
54
  }
55
55
  function x(e, t) {
56
56
  for (let r = 0; r < e.content.length; r++) {
57
- let i = V(e.content[r]), a = t === void 0 ? void 0 : t + r;
57
+ let i = te(e.content[r]), a = t === void 0 ? void 0 : t + r;
58
58
  n.addBlock(i, void 0, void 0, a);
59
59
  }
60
60
  a.value = !1;
@@ -63,7 +63,7 @@ function nn(e) {
63
63
  r.load().catch(() => {});
64
64
  }
65
65
  let C = v(() => r.savedBlocks.value.length), w = v(() => e.isAvailable?.() ?? !0);
66
- return c(Le, r), {
66
+ return c(Me, r), {
67
67
  headless: r,
68
68
  isPicking: l,
69
69
  pickedIds: s,
@@ -100,15 +100,15 @@ function nn(e) {
100
100
  }
101
101
  //#endregion
102
102
  //#region src/utils/toMjml.ts
103
- async function rn() {
103
+ async function on() {
104
104
  try {
105
- return await import("./src-SluTVSz_.js");
105
+ return await import("./src-C45kfA2t.js");
106
106
  } catch {
107
107
  return null;
108
108
  }
109
109
  }
110
- async function an(e) {
111
- let t = await rn();
110
+ async function sn(e) {
111
+ let t = await on();
112
112
  if (!t) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
113
113
  let n = e.getCustomBlockStylesheet;
114
114
  return t.renderToMjml(e.getContent(), {
@@ -118,8 +118,8 @@ async function an(e) {
118
118
  }
119
119
  //#endregion
120
120
  //#region src/composables/useTestEmailFeature.ts
121
- var on = 1200;
122
- function sn(e) {
121
+ var cn = 1200;
122
+ function ln(e) {
123
123
  let { provider: t } = e, n = m(!1), r = m(!1), a = m(!1), o = m(null), s = null, c = !1;
124
124
  function l() {
125
125
  s !== null && (clearTimeout(s), s = null);
@@ -141,7 +141,7 @@ function sn(e) {
141
141
  if (!(!t.includeMjml || !e.renderMjml)) try {
142
142
  return await e.renderMjml();
143
143
  } catch (e) {
144
- if (await rn() === null) {
144
+ if (await on() === null) {
145
145
  c || (c = !0, _e.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
146
146
  return;
147
147
  }
@@ -163,7 +163,7 @@ function sn(e) {
163
163
  content: e.getContent(),
164
164
  ...r === void 0 ? {} : { mjml: r },
165
165
  ...i === void 0 ? {} : { allowedRecipients: i }
166
- }), a.value = !0, s = setTimeout(h, on);
166
+ }), a.value = !0, s = setTimeout(h, cn);
167
167
  } catch (t) {
168
168
  let n = t instanceof Error ? t : Error(String(t));
169
169
  o.value = {
@@ -193,7 +193,7 @@ function sn(e) {
193
193
  }
194
194
  //#endregion
195
195
  //#region src/utils/resolveLintOptions.ts
196
- function cn(e) {
196
+ function un(e) {
197
197
  return {
198
198
  ...e.lint,
199
199
  locale: e.locale
@@ -201,19 +201,19 @@ function cn(e) {
201
201
  }
202
202
  //#endregion
203
203
  //#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
204
- var ln = ["aria-label"], un = {
204
+ var dn = ["aria-label"], fn = {
205
205
  key: 0,
206
206
  class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
207
- }, dn = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, fn = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, pn = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, mn = {
207
+ }, pn = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, mn = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, hn = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, gn = {
208
208
  key: 0,
209
209
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
210
- }, hn = {
210
+ }, _n = {
211
211
  key: 1,
212
212
  class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
213
- }, gn = { class: "tpl:relative" }, _n = {
213
+ }, vn = { class: "tpl:relative" }, yn = {
214
214
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
215
215
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
216
- }, vn = 96, yn = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
216
+ }, bn = 96, xn = /*#__PURE__*/ zt(/* @__PURE__ */ N({
217
217
  __name: "Canvas",
218
218
  props: {
219
219
  viewport: {},
@@ -243,48 +243,50 @@ var ln = ["aria-label"], un = {
243
243
  table: we,
244
244
  video: xe,
245
245
  custom: De
246
- }, i = e, a = t, { t: c } = W(), { t: l } = Rt(), p = je(Ue, "Canvas"), h = d(Ve, null), g = d(qe, null), S = d(Ye, {}), w = v(() => (S.plan?.hasFeature("ai_generation") ?? !1) && (S.ai?.isFeatureEnabled("chat") ?? !1)), T = v(() => (S.plan?.hasFeature("ai_generation") ?? !1) && (S.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = v({
246
+ }, i = e, a = t, { t: l } = W(), { t: p } = Bt(), h = Ne(Ue, "Canvas"), g = d(Ve, null), S = d(Ye, null), w = d(Ze, {}), T = d(Ie, null);
247
+ c(Re, v(() => i.previewMode && (T?.value ?? !1)));
248
+ let N = v(() => (w.plan?.hasFeature("ai_generation") ?? !1) && (w.ai?.isFeatureEnabled("chat") ?? !1)), F = v(() => (w.plan?.hasFeature("ai_generation") ?? !1) && (w.ai?.isFeatureEnabled("designToTemplate") ?? !1)), I = v({
247
249
  get: () => i.content.blocks,
248
250
  set: (e) => {
249
- p.setContent({
251
+ h.setContent({
250
252
  ...i.content,
251
253
  blocks: e
252
254
  });
253
255
  }
254
- }), F = v(() => Vt(i.content.settings, i.viewport)), I = v(() => F.value + vn * 2), L = v(() => fe(i.content.settings)), R = v(() => N.value.length === 0 && !i.previewMode), z = m(0), B = v(() => R.value && z.value > 0);
255
- function V() {
256
- R.value && (z.value += 1);
257
- }
256
+ }), L = v(() => Ut(i.content.settings, i.viewport)), R = v(() => L.value + bn * 2), z = v(() => fe(i.content.settings)), B = v(() => I.value.length === 0 && !i.previewMode), V = m(0), H = v(() => B.value && V.value > 0);
258
257
  function ee() {
259
- R.value && (z.value = Math.max(0, z.value - 1));
258
+ B.value && (V.value += 1);
260
259
  }
261
260
  function te() {
262
- z.value = 0;
261
+ B.value && (V.value = Math.max(0, V.value - 1));
263
262
  }
264
- function H(e) {
265
- i.previewMode || S.savedBlocks?.isPicking.value || e.target === e.currentTarget && a("select-block", null);
263
+ function ne() {
264
+ V.value = 0;
266
265
  }
267
- function ne(e) {
268
- return pe(e, g, n);
266
+ function re(e) {
267
+ i.previewMode || w.savedBlocks?.isPicking.value || e.target === e.currentTarget && a("select-block", null);
268
+ }
269
+ function ie(e) {
270
+ return pe(e, S, n);
269
271
  }
270
272
  function U(e) {
271
273
  return i.lockedBlocks?.get(e) ?? null;
272
274
  }
273
- function re(e) {
275
+ function ae(e) {
274
276
  if (i.previewMode || U(e)) return;
275
- let t = S.savedBlocks;
277
+ let t = w.savedBlocks;
276
278
  if (t?.isPicking.value) {
277
279
  t.togglePick(e);
278
280
  return;
279
281
  }
280
282
  a("select-block", e);
281
283
  }
282
- function ie(e) {
283
- return S.savedBlocks?.isPicked(e) ?? !1;
284
+ function oe(e) {
285
+ return w.savedBlocks?.isPicked(e) ?? !1;
284
286
  }
285
- let ae = v(() => S.savedBlocks?.isPicking.value === !0);
286
- function oe(e, t) {
287
- e.type === "custom" && p.updateBlock(e.id, {
287
+ let se = v(() => w.savedBlocks?.isPicking.value === !0);
288
+ function ce(e, t) {
289
+ e.type === "custom" && h.updateBlock(e.id, {
288
290
  fieldValues: t.fieldValues,
289
291
  dataSourceFetched: t.dataSourceFetched
290
292
  });
@@ -292,9 +294,9 @@ var ln = ["aria-label"], un = {
292
294
  return (t, n) => (s(), y("div", {
293
295
  class: "tpl-canvas-stage tpl:relative tpl:flex tpl:justify-center tpl:rounded-lg",
294
296
  style: k({
295
- width: `${I.value}px`,
297
+ width: `${R.value}px`,
296
298
  boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
297
- transition: x(Ht)
299
+ transition: x(Wt)
298
300
  })
299
301
  }, [D("div", {
300
302
  class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
@@ -306,22 +308,22 @@ var ln = ["aria-label"], un = {
306
308
  }, null, 4), D("div", {
307
309
  "data-testid": "canvas-wrapper",
308
310
  role: "region",
309
- "aria-label": x(c).landmarks.canvas,
311
+ "aria-label": x(l).landmarks.canvas,
310
312
  class: "tpl-canvas-wrapper tpl:relative",
311
313
  style: k({
312
- width: `${F.value}px`,
313
- transition: x(Ht)
314
+ width: `${L.value}px`,
315
+ transition: x(Wt)
314
316
  })
315
317
  }, [D("div", {
316
318
  class: E(["tpl-canvas tpl:relative tpl:rounded-lg", {
317
319
  "tpl-canvas--dark-mode": e.darkMode,
318
320
  "tpl-preview-mode": e.previewMode
319
321
  }]),
320
- style: k(L.value),
321
- onClick: H
322
+ style: k(z.value),
323
+ onClick: re
322
324
  }, [P(x(A), {
323
- modelValue: N.value,
324
- "onUpdate:modelValue": n[2] ||= (e) => N.value = e,
325
+ modelValue: I.value,
326
+ "onUpdate:modelValue": n[2] ||= (e) => I.value = e,
325
327
  group: "blocks",
326
328
  animation: 150,
327
329
  "ghost-class": "tpl-ghost",
@@ -334,47 +336,47 @@ var ln = ["aria-label"], un = {
334
336
  "force-fallback": !0,
335
337
  class: E([
336
338
  "tpl-canvas-blocks",
337
- R.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
338
- R.value && B.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
339
- R.value && !B.value ? "tpl:border-[var(--tpl-primary)]" : ""
339
+ B.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors tpl:duration-150" : "",
340
+ B.value && H.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
341
+ B.value && !H.value ? "tpl:border-[var(--tpl-primary)]" : ""
340
342
  ]),
341
- onDragenter: V,
342
- onDragleave: ee,
343
- onDrop: te
343
+ onDragenter: ee,
344
+ onDragleave: te,
345
+ onDrop: ne
344
346
  }, {
345
- default: f(() => [R.value ? (s(), y("div", un, [
346
- D("div", dn, [P(x(rt), {
347
+ default: f(() => [B.value ? (s(), y("div", fn, [
348
+ D("div", pn, [P(x(Ft), {
347
349
  size: 48,
348
350
  "stroke-width": 1
349
351
  })]),
350
- D("p", fn, _(x(c).canvas.noBlocks), 1),
351
- D("p", pn, _(x(c).canvas.dragHint), 1),
352
- w.value && x(l) ? (s(), y("p", mn, [
353
- M(_(x(c).canvas.aiHintChat) + " ", 1),
352
+ D("p", mn, _(x(l).canvas.noBlocks), 1),
353
+ D("p", hn, _(x(l).canvas.dragHint), 1),
354
+ N.value && x(p) ? (s(), y("p", gn, [
355
+ M(_(x(l).canvas.aiHintChat) + " ", 1),
354
356
  D("button", {
355
357
  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)]",
356
358
  onClick: n[0] ||= (e) => a("open-ai-chat")
357
- }, [P(x(Ft), {
359
+ }, [P(x(ft), {
358
360
  size: 14,
359
361
  "stroke-width": 2
360
- }), M(" " + _(x(l).aiMenu.aiAssistant), 1)]),
361
- M(" " + _(x(c).canvas.aiHintChatSuffix), 1)
362
+ }), M(" " + _(x(p).aiMenu.aiAssistant), 1)]),
363
+ M(" " + _(x(l).canvas.aiHintChatSuffix), 1)
362
364
  ])) : b("", !0),
363
- T.value && x(l) ? (s(), y("p", hn, [
364
- M(_(x(c).canvas.aiHintDesign) + " ", 1),
365
+ F.value && x(p) ? (s(), y("p", _n, [
366
+ M(_(x(l).canvas.aiHintDesign) + " ", 1),
365
367
  D("button", {
366
368
  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)]",
367
369
  onClick: n[1] ||= (e) => a("open-design-reference")
368
- }, [P(x(St), {
370
+ }, [P(x(At), {
369
371
  size: 14,
370
372
  "stroke-width": 2
371
- }), M(" " + _(x(l).aiMenu.designToTemplate), 1)]),
372
- M(" " + _(x(c).canvas.aiHintDesignSuffix), 1)
373
+ }), M(" " + _(x(p).aiMenu.designToTemplate), 1)]),
374
+ M(" " + _(x(l).canvas.aiHintDesignSuffix), 1)
373
375
  ])) : b("", !0)
374
- ])) : b("", !0), (s(!0), y(j, null, u(N.value, (t) => r((s(), y("div", {
376
+ ])) : b("", !0), (s(!0), y(j, null, u(I.value, (t) => r((s(), y("div", {
375
377
  key: t.id,
376
378
  class: "tpl-block-item"
377
- }, [D("div", gn, [U(t.id) ? (s(), y("div", {
379
+ }, [D("div", vn, [U(t.id) ? (s(), y("div", {
378
380
  key: 0,
379
381
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
380
382
  style: k({
@@ -385,21 +387,21 @@ var ln = ["aria-label"], un = {
385
387
  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",
386
388
  style: k({
387
389
  backgroundColor: U(t.id).color,
388
- color: x(Ut)(U(t.id).color)
390
+ color: x(Gt)(U(t.id).color)
389
391
  })
390
- }, [D("span", _n, _(U(t.id).name.charAt(0)), 1), M(" " + _(U(t.id).name), 1)], 4)], 4)) : b("", !0), P(ye, {
392
+ }, [D("span", yn, _(U(t.id).name.charAt(0)), 1), M(" " + _(U(t.id).name), 1)], 4)], 4)) : b("", !0), P(ye, {
391
393
  block: t,
392
- "is-selected": !e.previewMode && !ae.value && e.selectedBlockId === t.id && !U(t.id),
393
- picked: ie(t.id),
394
+ "is-selected": !e.previewMode && !se.value && e.selectedBlockId === t.id && !U(t.id),
395
+ picked: oe(t.id),
394
396
  viewport: e.viewport,
395
397
  "preview-mode": e.previewMode,
396
- onSelect: (e) => re(t.id)
398
+ onSelect: (e) => ae(t.id)
397
399
  }, {
398
- default: f(() => [(s(), C(o(ne(t)), {
400
+ default: f(() => [(s(), C(o(ie(t)), {
399
401
  block: t,
400
402
  viewport: e.viewport,
401
- onFetchData: (e) => oe(t, e),
402
- onUpdate: (e) => x(p).updateBlock(t.id, e)
403
+ onFetchData: (e) => ce(t, e),
404
+ onUpdate: (e) => x(h).updateBlock(t.id, e)
403
405
  }, null, 40, [
404
406
  "block",
405
407
  "viewport",
@@ -414,18 +416,18 @@ var ln = ["aria-label"], un = {
414
416
  "viewport",
415
417
  "preview-mode",
416
418
  "onSelect"
417
- ])])])), [[O, !x(h)?.isHidden(t.id)]])), 128))]),
419
+ ])])])), [[O, !x(g)?.isHidden(t.id)]])), 128))]),
418
420
  _: 1
419
421
  }, 8, [
420
422
  "modelValue",
421
423
  "disabled",
422
424
  "class"
423
- ])], 6)], 12, ln)], 4));
425
+ ])], 6)], 12, dn)], 4));
424
426
  }
425
- }), [["__scopeId", "data-v-b0046c4c"]]), bn = N({
427
+ }), [["__scopeId", "data-v-236bcafd"]]), Sn = N({
426
428
  name: "CustomBlockStylesheets",
427
429
  setup() {
428
- let t = d(Je, null);
430
+ let t = d(Xe, null);
429
431
  return () => t ? t.value.map((t, n) => e("style", {
430
432
  key: n,
431
433
  "data-tpl-custom-block-stylesheet": "",
@@ -435,7 +437,7 @@ var ln = ["aria-label"], un = {
435
437
  });
436
438
  //#endregion
437
439
  //#region src/utils/resolvePaletteBlocks.ts
438
- function xn(e, t) {
440
+ function Cn(e, t) {
439
441
  if (!t || t.length === 0) return {
440
442
  items: e,
441
443
  unknown: []
@@ -454,24 +456,24 @@ function xn(e, t) {
454
456
  }
455
457
  //#endregion
456
458
  //#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
457
- var Sn = ["aria-label"], Cn = {
459
+ var wn = ["aria-label"], Tn = {
458
460
  key: 0,
459
461
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
460
- }, wn = ["aria-label"], Tn = {
462
+ }, En = ["aria-label"], Dn = {
461
463
  key: 0,
462
464
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
463
- }, En = [
465
+ }, On = [
464
466
  "data-palette-type",
465
467
  "aria-label",
466
468
  "onClick",
467
469
  "onKeydown"
468
- ], Dn = { 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" }, On = {
470
+ ], kn = { 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" }, An = {
469
471
  key: 0,
470
472
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
471
- }, kn = /* @__PURE__ */ N({
473
+ }, jn = /* @__PURE__ */ N({
472
474
  __name: "Sidebar",
473
475
  setup(e) {
474
- let { t, format: n } = W(), r = d(He, []), i = d(Fe, void 0), a = d(Be, void 0), c = d(Ue, null), l = d(Ye, {}), p = v(() => l.savedBlocks?.isAvailable.value === !0), h = m(!1), g = m(!1);
476
+ let { t, format: n } = W(), r = d(He, []), i = d(Fe, void 0), a = d(Be, void 0), c = d(Ue, null), l = d(Ze, {}), p = v(() => l.savedBlocks?.isAvailable.value === !0), h = m(!1), g = m(!1);
475
477
  function S() {
476
478
  g.value || (h.value = !1);
477
479
  }
@@ -508,23 +510,23 @@ var Sn = ["aria-label"], Cn = {
508
510
  label: e.name,
509
511
  isCustom: !0,
510
512
  icon: e.icon
511
- }))), N = v(() => [...O.value, ...M.value]), I = v(() => xn(N.value, i)), L = v(() => I.value.items), R = /* @__PURE__ */ new Set();
513
+ }))), N = v(() => [...O.value, ...M.value]), I = v(() => Cn(N.value, i)), R = v(() => I.value.items), z = /* @__PURE__ */ new Set();
512
514
  F(() => I.value.unknown, (e) => {
513
- 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.`));
515
+ 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.`));
514
516
  }, { immediate: !0 });
515
517
  function B(e) {
516
518
  if (e.isCustom) {
517
519
  let t = e.type.replace("custom:", ""), n = r.find((e) => e.type === t);
518
- if (n) return U(n);
520
+ if (n) return L(n);
519
521
  }
520
- return z(e.type, a);
522
+ return ne(e.type, a);
521
523
  }
522
524
  function V(e) {
523
525
  if (!c) return;
524
526
  let t = B(e);
525
527
  c.addBlock(t), c.selectBlock(t.id);
526
528
  }
527
- function ee(e, t) {
529
+ function H(e, t) {
528
530
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), V(t));
529
531
  }
530
532
  return (e, r) => (s(), y("aside", {
@@ -541,18 +543,18 @@ var Sn = ["aria-label"], Cn = {
541
543
  onMouseleave: S,
542
544
  onFocusin: r[2] ||= (e) => h.value = !0,
543
545
  onFocusout: r[3] ||= (e) => h.value = !1
544
- }, [p.value ? (s(), y("div", Cn, [D("button", {
546
+ }, [p.value ? (s(), y("div", Tn, [D("button", {
545
547
  type: "button",
546
548
  "aria-label": x(t).sidebarNav.browseSavedBlocks,
547
549
  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)]",
548
550
  style: k({ justifyContent: h.value ? "flex-start" : "center" }),
549
551
  onClick: r[0] ||= (e) => x(l).savedBlocks?.openBrowser()
550
- }, [P(x(ct), {
552
+ }, [P(x(mt), {
551
553
  size: 20,
552
554
  "stroke-width": 1.5,
553
555
  class: "tpl:shrink-0"
554
- }), h.value ? (s(), y("span", Tn, _(x(t).savedBlocks.title), 1)) : b("", !0)], 12, wn)])) : b("", !0), P(x(A), {
555
- "model-value": L.value,
556
+ }), h.value ? (s(), y("span", Dn, _(x(t).savedBlocks.title), 1)) : b("", !0)], 12, En)])) : b("", !0), P(x(A), {
557
+ "model-value": R.value,
556
558
  group: {
557
559
  name: "blocks",
558
560
  pull: "clone",
@@ -566,7 +568,7 @@ var Sn = ["aria-label"], Cn = {
566
568
  onChoose: w,
567
569
  onEnd: T
568
570
  }, {
569
- default: f(() => [(s(!0), y(j, null, u(L.value, (e) => (s(), y("button", {
571
+ default: f(() => [(s(!0), y(j, null, u(R.value, (e) => (s(), y("button", {
570
572
  key: e.type,
571
573
  type: "button",
572
574
  "data-palette-type": e.type,
@@ -574,8 +576,8 @@ var Sn = ["aria-label"], Cn = {
574
576
  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",
575
577
  style: k({ justifyContent: h.value ? "flex-start" : "center" }),
576
578
  onClick: (t) => V(e),
577
- onKeydown: (t) => ee(t, e)
578
- }, [D("div", Dn, [x(Wt)[e.type] ? (s(), C(o(x(Wt)[e.type]), {
579
+ onKeydown: (t) => H(t, e)
580
+ }, [D("div", kn, [x(Kt)[e.type] ? (s(), C(o(x(Kt)[e.type]), {
579
581
  key: 0,
580
582
  size: 20,
581
583
  "stroke-width": 1.5
@@ -583,14 +585,14 @@ var Sn = ["aria-label"], Cn = {
583
585
  key: 1,
584
586
  icon: e.icon,
585
587
  size: 20
586
- }, null, 8, ["icon"])) : b("", !0)]), h.value ? (s(), y("span", On, _(e.label), 1)) : b("", !0)], 44, En))), 128))]),
588
+ }, null, 8, ["icon"])) : b("", !0)]), h.value ? (s(), y("span", An, _(e.label), 1)) : b("", !0)], 44, On))), 128))]),
587
589
  _: 1
588
- }, 8, ["model-value"])], 44, Sn));
590
+ }, 8, ["model-value"])], 44, wn));
589
591
  }
590
592
  });
591
593
  //#endregion
592
594
  //#region src/utils/mergeTagTrigger.ts
593
- function An(e, t, n, r) {
595
+ function Mn(e, t, n, r) {
594
596
  if (!n) return null;
595
597
  let i = e.slice(0, t), a = i.lastIndexOf(n);
596
598
  if (a === -1) return null;
@@ -603,8 +605,8 @@ function An(e, t, n, r) {
603
605
  }
604
606
  //#endregion
605
607
  //#region src/utils/textFieldCaret.ts
606
- var jn = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
607
- function Mn(e, t, n) {
608
+ var Nn = /* @__PURE__ */ "boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderStyle.paddingTop.paddingRight.paddingBottom.paddingLeft.fontStyle.fontVariant.fontWeight.fontStretch.fontSize.lineHeight.fontFamily.textAlign.textTransform.textIndent.letterSpacing.wordSpacing.tabSize.whiteSpace.wordWrap.wordBreak".split(".");
609
+ function Pn(e, t, n) {
608
610
  return {
609
611
  left: e,
610
612
  top: t,
@@ -617,7 +619,7 @@ function Mn(e, t, n) {
617
619
  toJSON: () => ({})
618
620
  };
619
621
  }
620
- function Nn(e, t) {
622
+ function Fn(e, t) {
621
623
  let n = e.ownerDocument, r = n.defaultView;
622
624
  if (!r) return null;
623
625
  let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
@@ -625,7 +627,7 @@ function Nn(e, t) {
625
627
  let s = o.style;
626
628
  s.position = "absolute", s.visibility = "hidden", s.top = "0", s.left = "0", s.overflow = "hidden", s.whiteSpace = i ? "pre" : "pre-wrap", s.wordWrap = i ? "normal" : "break-word";
627
629
  let c = s, l = a;
628
- for (let e of jn) c[e] = l[e];
630
+ for (let e of Nn) c[e] = l[e];
629
631
  i && (s.width = "auto", s.whiteSpace = "pre");
630
632
  let u = e.value, d = u.slice(0, t);
631
633
  i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
@@ -634,26 +636,26 @@ function Nn(e, t) {
634
636
  let p = f.offsetTop, m = f.offsetLeft;
635
637
  n.body.removeChild(o);
636
638
  let h = e.getBoundingClientRect(), g = parseFloat(a.borderTopWidth) || 0, _ = parseFloat(a.borderLeftWidth) || 0, v = parseFloat(a.lineHeight) || parseFloat(a.fontSize) || 0, y = h.left + m + _ - e.scrollLeft;
637
- if (i) return Mn(y, h.top, h.bottom);
639
+ if (i) return Pn(y, h.top, h.bottom);
638
640
  let b = h.top + p + g - e.scrollTop;
639
- return Mn(y, b, b + v);
641
+ return Pn(y, b, b + v);
640
642
  }
641
643
  //#endregion
642
644
  //#region src/composables/useMergeTagAutocomplete.ts
643
- var Pn = /* @__PURE__ */ new Set([
645
+ var In = /* @__PURE__ */ new Set([
644
646
  "ArrowLeft",
645
647
  "ArrowRight",
646
648
  "Home",
647
649
  "End"
648
650
  ]);
649
- function Fn(e) {
650
- let { elementRef: t, modelValue: r, emit: o, mergeTags: s, syntax: c, enabled: u, onInsert: f } = e, p = ne(c), m = te(c), h = u && p !== null && s.length > 0, g = d(Re, null), _ = Zt((a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", $e()), v = !1;
651
+ function Ln(e) {
652
+ let { elementRef: t, modelValue: r, emit: o, mergeTags: s, syntax: c, enabled: u, onInsert: f } = e, p = R(c), m = H(c), h = u && p !== null && s.length > 0, g = d($e, null), _ = $t((a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", tt()), v = !1;
651
653
  n() && i(() => {
652
654
  v = !0, _.close();
653
655
  });
654
656
  function y(e) {
655
657
  let t = e.value ?? "";
656
- return An(t, e.selectionStart ?? t.length, p, m);
658
+ return Mn(t, e.selectionStart ?? t.length, p, m);
657
659
  }
658
660
  function b(e, n, i) {
659
661
  let a = e.value ?? r(), s = a.slice(n.caret), c = m && s.startsWith(m) ? m.length : 0, u = a.slice(0, n.triggerStart), d = a.slice(n.caret + c), p = u + i.value + d, h = u.length + i.value.length;
@@ -675,7 +677,7 @@ function Fn(e) {
675
677
  _.close();
676
678
  return;
677
679
  }
678
- let r = Qt(s, n.query), i = () => Nn(e, n.triggerStart), a = (t) => b(e, n, t);
680
+ let r = en(s, n.query), i = () => Fn(e, n.triggerStart), a = (t) => b(e, n, t);
679
681
  _.isOpen() ? _.update({
680
682
  items: r,
681
683
  getRect: i,
@@ -688,7 +690,7 @@ function Fn(e) {
688
690
  });
689
691
  }
690
692
  function S(e) {
691
- return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : Pn.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
693
+ return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : In.has(e.key) ? (_.close(), !1) : _.handleKeyDown(e) : !1;
692
694
  }
693
695
  return {
694
696
  available: h,
@@ -700,12 +702,12 @@ function Fn(e) {
700
702
  }
701
703
  //#endregion
702
704
  //#region src/composables/useMergeTagField.ts
703
- function In(e) {
704
- let { modelValue: t, emit: r, elementRef: a } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagLabel: d, requestMergeTag: f, syntax: p, autocomplete: h } = zt(), { canInsertLogicTag: g, isRequesting: _, requestLogicTag: y } = ie(), b = m(!1), x = !1, S = !1;
705
+ function Rn(e) {
706
+ let { modelValue: t, emit: r, elementRef: a } = e, { mergeTags: o, canRequestMergeTag: s, isRequesting: c, isMergeTagValue: u, getMergeTagLabel: d, requestMergeTag: f, syntax: p, autocomplete: h } = Vt(), { canInsertLogicTag: g, isRequesting: _, requestLogicTag: y } = U(), b = m(!1), x = !1, S = !1;
705
707
  n() && i(() => {
706
708
  S = !0;
707
709
  });
708
- let C = Fn({
710
+ let C = Ln({
709
711
  elementRef: a,
710
712
  modelValue: t,
711
713
  emit: r,
@@ -729,10 +731,10 @@ function In(e) {
729
731
  type: "mergeTag",
730
732
  value: t,
731
733
  label: d(t)
732
- }) : R(t, p) ? n.push({
734
+ }) : ee(t, p) ? n.push({
733
735
  type: "logicMergeTag",
734
736
  value: t,
735
- keyword: B(t, p)
737
+ keyword: z(t, p)
736
738
  }) : n.push({
737
739
  type: "text",
738
740
  value: t
@@ -827,10 +829,10 @@ function In(e) {
827
829
  }
828
830
  //#endregion
829
831
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
830
- var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip"], Bn = {
832
+ var zn = ["aria-label", "onKeydown"], Bn = ["data-tooltip"], Vn = ["data-tooltip"], Hn = {
831
833
  key: 2,
832
834
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
833
- }, Vn = ["aria-label", "title"], Hn = /* @__PURE__ */ N({
835
+ }, Un = ["aria-label", "title"], Wn = /* @__PURE__ */ N({
834
836
  __name: "MergeTagSegments",
835
837
  props: {
836
838
  segments: {},
@@ -858,7 +860,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
858
860
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
859
861
  color: "var(--tpl-primary)"
860
862
  }
861
- }, _(e.label), 9, Rn)) : e.type === "logicMergeTag" ? (s(), y("span", {
863
+ }, _(e.label), 9, Bn)) : e.type === "logicMergeTag" ? (s(), y("span", {
862
864
  key: 1,
863
865
  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",
864
866
  "data-tooltip": e.value,
@@ -867,22 +869,22 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
867
869
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
868
870
  color: "var(--tpl-primary)"
869
871
  }
870
- }, _(e.keyword), 9, zn)) : (s(), y("span", Bn, _(e.value), 1))], 64))), 128)), D("button", {
872
+ }, _(e.keyword), 9, Vn)) : (s(), y("span", Hn, _(e.value), 1))], 64))), 128)), D("button", {
871
873
  type: "button",
872
874
  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",
873
875
  "aria-label": x(r).mergeTag.remove,
874
876
  title: x(r).mergeTag.remove,
875
877
  onClick: a[0] ||= S((e) => n("clear"), ["stop"])
876
- }, [P(x(Et), {
878
+ }, [P(x(Ot), {
877
879
  size: 12,
878
880
  "stroke-width": 2.5
879
- })], 8, Vn)], 42, Ln));
881
+ })], 8, Un)], 42, zn));
880
882
  }
881
- }), Un = [
883
+ }), Gn = [
882
884
  "aria-label",
883
885
  "title",
884
886
  "disabled"
885
- ], Wn = "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)]", Gn = /* @__PURE__ */ N({
887
+ ], Kn = "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)]", qn = /* @__PURE__ */ N({
886
888
  __name: "MergeTagInsertButton",
887
889
  props: { disabled: { type: Boolean } },
888
890
  emits: ["insert"],
@@ -890,22 +892,22 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
890
892
  let { t } = W();
891
893
  return (n, r) => (s(), y("button", {
892
894
  type: "button",
893
- class: E([Wn, "tpl:mt-1.5"]),
895
+ class: E([Kn, "tpl:mt-1.5"]),
894
896
  "aria-label": x(t).mergeTag.insert,
895
897
  title: x(t).mergeTag.insert,
896
898
  disabled: e.disabled,
897
899
  onMousedown: r[0] ||= S(() => {}, ["prevent"]),
898
900
  onClick: r[1] ||= (e) => n.$emit("insert")
899
- }, [P(x(dt), {
901
+ }, [P(x(ut), {
900
902
  size: 12,
901
903
  "stroke-width": 2
902
- }), M(" " + _(x(t).mergeTag.insertShort), 1)], 42, Un));
904
+ }), M(" " + _(x(t).mergeTag.insertShort), 1)], 42, Gn));
903
905
  }
904
- }), Kn = [
906
+ }), Jn = [
905
907
  "aria-label",
906
908
  "title",
907
909
  "disabled"
908
- ], qn = "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)]", Jn = /* @__PURE__ */ N({
910
+ ], Yn = "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)]", Xn = /* @__PURE__ */ N({
909
911
  __name: "LogicTagInsertButton",
910
912
  props: { disabled: { type: Boolean } },
911
913
  emits: ["insert"],
@@ -913,29 +915,29 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
913
915
  let { t } = W();
914
916
  return (n, r) => (s(), y("button", {
915
917
  type: "button",
916
- class: E([qn, "tpl:mt-1.5"]),
918
+ class: E([Yn, "tpl:mt-1.5"]),
917
919
  "aria-label": x(t).logicTag.insert,
918
920
  title: x(t).logicTag.insert,
919
921
  disabled: e.disabled,
920
922
  "data-testid": "field-insert-logic-button",
921
923
  onMousedown: r[0] ||= S(() => {}, ["prevent"]),
922
924
  onClick: r[1] ||= (e) => n.$emit("insert")
923
- }, [P(x(st), {
925
+ }, [P(x(ct), {
924
926
  size: 12,
925
927
  "stroke-width": 2
926
- }), M(" " + _(x(t).logicTag.insertShort), 1)], 42, Kn));
928
+ }), M(" " + _(x(t).logicTag.insertShort), 1)], 42, Jn));
927
929
  }
928
- }), Yn = { key: 0 }, Xn = {
930
+ }), Zn = { key: 0 }, Qn = {
929
931
  key: 0,
930
932
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
931
- }, Zn = { key: 1 }, Qn = [
933
+ }, $n = { key: 1 }, er = [
932
934
  "value",
933
935
  "placeholder",
934
936
  "rows"
935
- ], $n = {
937
+ ], tr = {
936
938
  key: 0,
937
939
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
938
- }, er = "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)]", tr = "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)]", nr = /* @__PURE__ */ N({
940
+ }, nr = "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)]", rr = "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)]", ir = /* @__PURE__ */ N({
939
941
  __name: "MergeTagTextarea",
940
942
  props: {
941
943
  modelValue: {},
@@ -944,32 +946,32 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
944
946
  },
945
947
  emits: ["update:modelValue"],
946
948
  setup(e, { emit: t }) {
947
- 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 } = In({
949
+ 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 } = Rn({
948
950
  modelValue: () => n.modelValue,
949
951
  emit: (e) => r("update:modelValue", e),
950
952
  elementRef: i
951
953
  });
952
- return (t, n) => x(o) && !x(f) ? (s(), y("div", Yn, [P(Hn, {
954
+ return (t, n) => x(o) && !x(f) ? (s(), y("div", Zn, [P(Wn, {
953
955
  segments: x(a),
954
- "display-class": tr,
956
+ "display-class": rr,
955
957
  onEdit: x(p),
956
958
  onClear: x(S)
957
959
  }, null, 8, [
958
960
  "segments",
959
961
  "onEdit",
960
962
  "onClear"
961
- ]), x(c) || x(u) ? (s(), y("div", Xn, [x(c) ? (s(), C(Gn, {
963
+ ]), x(c) || x(u) ? (s(), y("div", Qn, [x(c) ? (s(), C(qn, {
962
964
  key: 0,
963
965
  disabled: x(l),
964
966
  onInsert: x(w)
965
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Jn, {
967
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Xn, {
966
968
  key: 1,
967
969
  disabled: x(d),
968
970
  onInsert: x(T)
969
- }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Zn, [D("textarea", {
971
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", $n, [D("textarea", {
970
972
  ref_key: "textareaRef",
971
973
  ref: i,
972
- class: E(er),
974
+ class: E(nr),
973
975
  value: e.modelValue,
974
976
  placeholder: e.placeholder,
975
977
  rows: e.rows,
@@ -977,22 +979,22 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
977
979
  onKeydown: n[1] ||= (...e) => x(g) && x(g)(...e),
978
980
  onClick: n[2] ||= (...e) => x(_) && x(_)(...e),
979
981
  onBlur: n[3] ||= (...e) => x(v) && x(v)(...e)
980
- }, null, 40, Qn), x(c) || x(u) ? (s(), y("div", $n, [x(c) ? (s(), C(Gn, {
982
+ }, null, 40, er), x(c) || x(u) ? (s(), y("div", tr, [x(c) ? (s(), C(qn, {
981
983
  key: 0,
982
984
  disabled: x(l),
983
985
  onInsert: x(w)
984
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Jn, {
986
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Xn, {
985
987
  key: 1,
986
988
  disabled: x(d),
987
989
  onInsert: x(T)
988
990
  }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)]));
989
991
  }
990
- }), rr = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, ir = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, ar = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, or = { class: "tpl:mb-3.5" }, sr = { 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)]" }, cr = ["onClick"], lr = { class: "tpl:flex tpl:items-stretch" }, ur = ["value"], 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:mb-3.5" }, mr = { class: "tpl:mb-3.5" }, hr = { class: "tpl:mb-3.5" }, gr = ["value"], _r = ["value"], vr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, yr = ["value"], br = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, xr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Sr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Cr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, wr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Tr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Er = { class: "tpl:mb-2.5 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text-muted)]" }, Dr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Or = { class: "tpl:mb-1 tpl:last:mb-0" }, kr = { class: "tpl:mb-1 tpl:last:mb-0" }, Ar = { class: "tpl:mb-1 tpl:last:mb-0" }, jr = 150, Mr = /* @__PURE__ */ N({
992
+ }), ar = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, or = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, sr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, cr = { class: "tpl:mb-3.5" }, lr = { 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)]" }, ur = ["onClick"], dr = { class: "tpl:flex tpl:items-stretch" }, fr = ["value"], pr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, mr = { class: "tpl:mb-3.5" }, hr = { class: "tpl:mb-3.5" }, gr = { class: "tpl:mb-3.5" }, _r = { class: "tpl:mb-3.5" }, vr = ["value"], yr = ["value"], br = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, xr = ["value"], Sr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Cr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, Tr = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Er = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, Dr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, Or = { 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)]" }, kr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Ar = { class: "tpl:mb-1 tpl:last:mb-0" }, jr = { class: "tpl:mb-1 tpl:last:mb-0" }, Mr = { class: "tpl:mb-1 tpl:last:mb-0" }, Nr = 150, Pr = /* @__PURE__ */ N({
991
993
  __name: "TemplateSettings",
992
994
  props: { settings: {} },
993
995
  emits: ["update"],
994
996
  setup(e, { emit: t }) {
995
- let n = e, r = t, { t: i } = W(), a = je(ze, "TemplateSettings"), o = v(() => a.fonts.value), c = v(() => o.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), l = [
997
+ let n = e, r = t, { t: i } = W(), a = Ne(ze, "TemplateSettings"), o = v(() => a.fonts.value), c = v(() => o.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), l = [
996
998
  {
997
999
  value: 480,
998
1000
  label: "480px"
@@ -1010,14 +1012,14 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1010
1012
  label: "800px"
1011
1013
  }
1012
1014
  ];
1013
- return (t, n) => (s(), y("aside", rr, [D("div", ir, [
1014
- D("div", { class: E(x(Xt)) }, [
1015
- D("div", ar, [P(x(gt), {
1015
+ return (t, n) => (s(), y("aside", ar, [D("div", or, [
1016
+ D("div", { class: E(x(Qt)) }, [
1017
+ D("div", sr, [P(x(rt), {
1016
1018
  class: "tpl:text-[var(--tpl-text-muted)]",
1017
1019
  size: 14,
1018
1020
  "stroke-width": 2
1019
1021
  }), D("span", null, _(x(i).templateSettings.layout), 1)]),
1020
- D("div", or, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.widthPreset), 3), D("div", sr, [(s(), y(j, null, u(l, (t) => D("button", {
1022
+ D("div", cr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.widthPreset), 3), D("div", lr, [(s(), y(j, null, u(l, (t) => D("button", {
1021
1023
  key: t.value,
1022
1024
  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)]",
1023
1025
  style: k({
@@ -1026,38 +1028,38 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1026
1028
  boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
1027
1029
  }),
1028
1030
  onClick: (e) => r("update", { width: t.value })
1029
- }, _(t.label), 13, cr)), 64))])]),
1030
- D("div", null, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.customWidth), 3), D("div", lr, [D("input", {
1031
+ }, _(t.label), 13, ur)), 64))])]),
1032
+ D("div", null, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.customWidth), 3), D("div", dr, [D("input", {
1031
1033
  type: "number",
1032
1034
  class: E(x(Y)),
1033
1035
  value: e.settings.width,
1034
1036
  min: "300",
1035
1037
  max: "900",
1036
1038
  onInput: n[0] ||= (e) => r("update", { width: Number(e.target.value) })
1037
- }, null, 42, ur), D("span", { class: E(x(J)) }, "px", 2)])])
1039
+ }, null, 42, fr), D("span", { class: E(x(J)) }, "px", 2)])])
1038
1040
  ], 2),
1039
- D("div", { class: E(x(Xt)) }, [
1040
- D("div", dr, [P(x(ft), {
1041
+ D("div", { class: E(x(Qt)) }, [
1042
+ D("div", pr, [P(x(Tt), {
1041
1043
  class: "tpl:text-[var(--tpl-text-muted)]",
1042
1044
  size: 14,
1043
1045
  "stroke-width": 2
1044
1046
  }), D("span", null, _(x(i).templateSettings.appearance), 1)]),
1045
- D("div", fr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.backgroundColor), 3), P(X, {
1047
+ D("div", mr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.backgroundColor), 3), P(X, {
1046
1048
  "model-value": e.settings.backgroundColor,
1047
- placeholder: x(Yt),
1049
+ placeholder: x(Zt),
1048
1050
  "onUpdate:modelValue": n[1] ||= (e) => r("update", { backgroundColor: e })
1049
1051
  }, null, 8, ["model-value", "placeholder"])]),
1050
- D("div", pr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.textColor), 3), P(X, {
1052
+ D("div", hr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.textColor), 3), P(X, {
1051
1053
  "model-value": e.settings.textColor ?? "",
1052
1054
  "seed-color": "#1a1a1a",
1053
1055
  "onUpdate:modelValue": n[2] ||= (e) => r("update", { textColor: e })
1054
1056
  }, null, 8, ["model-value"])]),
1055
- D("div", mr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.linkColor), 3), P(X, {
1057
+ D("div", gr, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.linkColor), 3), P(X, {
1056
1058
  "model-value": e.settings.linkColor ?? "",
1057
1059
  "seed-color": "#0066cc",
1058
1060
  "onUpdate:modelValue": n[3] ||= (e) => r("update", { linkColor: e || void 0 })
1059
1061
  }, null, 8, ["model-value"])]),
1060
- D("div", hr, [P(Z, {
1062
+ D("div", _r, [P(Z, {
1061
1063
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
1062
1064
  "model-value": e.settings.linkUnderline,
1063
1065
  label: x(i).templateSettings.linkUnderline,
@@ -1070,9 +1072,9 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1070
1072
  }, [(s(!0), y(j, null, u(o.value, (e) => (s(), y("option", {
1071
1073
  key: e.value,
1072
1074
  value: e.value
1073
- }, _(e.label), 9, _r))), 128))], 42, gr)])
1075
+ }, _(e.label), 9, yr))), 128))], 42, vr)])
1074
1076
  ], 2),
1075
- D("div", { class: E(x(Xt)) }, [D("div", vr, [P(x(Ct), {
1077
+ D("div", { class: E(x(Qt)) }, [D("div", br, [P(x(ht), {
1076
1078
  class: "tpl:text-[var(--tpl-text-muted)]",
1077
1079
  size: 14,
1078
1080
  "stroke-width": 2
@@ -1087,40 +1089,40 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1087
1089
  autocapitalize: "off",
1088
1090
  autocomplete: "off",
1089
1091
  onInput: n[6] ||= (e) => r("update", { locale: e.target.value.trim() || void 0 })
1090
- }, null, 42, yr),
1091
- D("p", br, _(x(i).templateSettings.contentLocaleHint), 1)
1092
+ }, null, 42, xr),
1093
+ D("p", Sr, _(x(i).templateSettings.contentLocaleHint), 1)
1092
1094
  ])], 2),
1093
- D("div", { class: E(x(Xt)) }, [D("div", xr, [P(x(_t), {
1095
+ D("div", { class: E(x(Qt)) }, [D("div", Cr, [P(x(it), {
1094
1096
  class: "tpl:text-[var(--tpl-text-muted)]",
1095
1097
  size: 14,
1096
1098
  "stroke-width": 2
1097
- }), D("span", null, _(x(i).templateSettings.preheaderText), 1)]), D("div", null, [P(nr, {
1099
+ }), D("span", null, _(x(i).templateSettings.preheaderText), 1)]), D("div", null, [P(ir, {
1098
1100
  "model-value": e.settings.preheaderText ?? "",
1099
1101
  placeholder: x(i).templateSettings.preheaderTextPlaceholder,
1100
1102
  rows: 2,
1101
1103
  "onUpdate:modelValue": n[7] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
1102
- }, null, 8, ["model-value", "placeholder"]), D("div", Sr, [D("span", Cr, _(x(i).templateSettings.preheaderTextHint), 1), D("span", wr, _((e.settings.preheaderText ?? "").length) + "/" + _(jr), 1)])])], 2),
1103
- D("div", Tr, [D("div", Er, [P(x(Nt), {
1104
+ }, null, 8, ["model-value", "placeholder"]), D("div", wr, [D("span", Tr, _(x(i).templateSettings.preheaderTextHint), 1), D("span", Er, _((e.settings.preheaderText ?? "").length) + "/" + _(Nr), 1)])])], 2),
1105
+ D("div", Dr, [D("div", Or, [P(x(_t), {
1104
1106
  size: 14,
1105
1107
  "stroke-width": 2
1106
- }), D("span", null, _(x(i).templateSettings.tips), 1)]), D("ul", Dr, [
1107
- D("li", Or, _(x(i).templateSettings.tip1), 1),
1108
- D("li", kr, _(x(i).templateSettings.tip2), 1),
1109
- D("li", Ar, _(x(i).templateSettings.tip3), 1)
1108
+ }), D("span", null, _(x(i).templateSettings.tips), 1)]), D("ul", kr, [
1109
+ D("li", Ar, _(x(i).templateSettings.tip1), 1),
1110
+ D("li", jr, _(x(i).templateSettings.tip2), 1),
1111
+ D("li", Mr, _(x(i).templateSettings.tip3), 1)
1110
1112
  ])])
1111
1113
  ])]));
1112
1114
  }
1113
- }), Nr = { key: 0 }, Pr = {
1115
+ }), Fr = { key: 0 }, Ir = {
1114
1116
  key: 0,
1115
1117
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1116
- }, Fr = { key: 1 }, Ir = [
1118
+ }, Lr = { key: 1 }, Rr = [
1117
1119
  "type",
1118
1120
  "value",
1119
1121
  "placeholder"
1120
- ], Lr = {
1122
+ ], zr = {
1121
1123
  key: 0,
1122
1124
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1123
- }, Rr = "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__*/ Lt(/* @__PURE__ */ N({
1125
+ }, Br = "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__*/ zt(/* @__PURE__ */ N({
1124
1126
  __name: "MergeTagInput",
1125
1127
  props: {
1126
1128
  modelValue: {},
@@ -1133,14 +1135,14 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1133
1135
  },
1134
1136
  emits: ["update:modelValue"],
1135
1137
  setup(e, { emit: t }) {
1136
- 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 } = In({
1138
+ 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 } = Rn({
1137
1139
  modelValue: () => n.modelValue,
1138
1140
  emit: (e) => r("update:modelValue", e),
1139
1141
  elementRef: i
1140
1142
  });
1141
- return (t, n) => x(o) && !x(f) ? (s(), y("div", Nr, [P(Hn, {
1143
+ return (t, n) => x(o) && !x(f) ? (s(), y("div", Fr, [P(Wn, {
1142
1144
  segments: x(a),
1143
- "display-class": Rr,
1145
+ "display-class": Br,
1144
1146
  pulse: e.pulse,
1145
1147
  onEdit: x(p),
1146
1148
  onClear: x(S)
@@ -1149,15 +1151,15 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1149
1151
  "pulse",
1150
1152
  "onEdit",
1151
1153
  "onClear"
1152
- ]), x(c) || x(u) ? (s(), y("div", Pr, [x(c) ? (s(), C(Gn, {
1154
+ ]), x(c) || x(u) ? (s(), y("div", Ir, [x(c) ? (s(), C(qn, {
1153
1155
  key: 0,
1154
1156
  disabled: x(l),
1155
1157
  onInsert: x(w)
1156
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Jn, {
1158
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Xn, {
1157
1159
  key: 1,
1158
1160
  disabled: x(d),
1159
1161
  onInsert: x(T)
1160
- }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Fr, [D("input", {
1162
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Lr, [D("input", {
1161
1163
  ref_key: "inputRef",
1162
1164
  ref: i,
1163
1165
  type: e.type,
@@ -1168,20 +1170,20 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1168
1170
  onKeydown: n[1] ||= (...e) => x(g) && x(g)(...e),
1169
1171
  onClick: n[2] ||= (...e) => x(_) && x(_)(...e),
1170
1172
  onBlur: n[3] ||= (...e) => x(v) && x(v)(...e)
1171
- }, null, 42, Ir), x(c) || x(u) ? (s(), y("div", Lr, [x(c) ? (s(), C(Gn, {
1173
+ }, null, 42, Rr), x(c) || x(u) ? (s(), y("div", zr, [x(c) ? (s(), C(qn, {
1172
1174
  key: 0,
1173
1175
  disabled: x(l),
1174
1176
  onInsert: x(w)
1175
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Jn, {
1177
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Xn, {
1176
1178
  key: 1,
1177
1179
  disabled: x(d),
1178
1180
  onInsert: x(T)
1179
1181
  }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)]));
1180
1182
  }
1181
- }), [["__scopeId", "data-v-d6563be6"]]), zr = { class: "tpl:mb-3.5" }, Br = ["value"], Vr = { value: "" }, Hr = ["value"], Ur = { class: "tpl:mb-3.5" }, Wr = { class: "tpl:mb-3.5" }, Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Jr = { class: "tpl:mb-3.5" }, Yr = { class: "tpl:flex tpl:items-stretch" }, Xr = ["value"], Zr = { class: "tpl:mb-3.5" }, Qr = { class: "tpl:flex tpl:items-stretch" }, $r = ["value"], ei = { class: "tpl:mb-3.5" }, ti = ["value"], ni = { value: "auto" }, ri = { value: "full" }, ii = { value: "custom" }, ai = {
1183
+ }), [["__scopeId", "data-v-d6563be6"]]), Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = { value: "" }, Wr = ["value"], Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:mb-3.5" }, qr = { class: "tpl:mb-3.5" }, Jr = { class: "tpl:mb-3.5" }, Yr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Xr = { class: "tpl:mb-3.5" }, Zr = { class: "tpl:flex tpl:items-stretch" }, Qr = ["value"], $r = { class: "tpl:mb-3.5" }, ei = { class: "tpl:flex tpl:items-stretch" }, ti = ["value"], ni = { class: "tpl:mb-3.5" }, ri = ["value"], ii = { value: "auto" }, ai = { value: "full" }, oi = { value: "custom" }, si = {
1182
1184
  key: 0,
1183
1185
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1184
- }, oi = ["value"], si = 200, ci = /* @__PURE__ */ N({
1186
+ }, ci = ["value"], li = 200, ui = /* @__PURE__ */ N({
1185
1187
  __name: "ButtonToolbar",
1186
1188
  props: {
1187
1189
  block: {},
@@ -1199,7 +1201,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1199
1201
  return;
1200
1202
  }
1201
1203
  if (e === "custom") {
1202
- o("width", typeof n.block.width == "number" ? n.block.width : si);
1204
+ o("width", typeof n.block.width == "number" ? n.block.width : li);
1203
1205
  return;
1204
1206
  }
1205
1207
  o("width", void 0);
@@ -1209,20 +1211,20 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1209
1211
  !Number.isFinite(t) || t <= 0 || o("width", t);
1210
1212
  }
1211
1213
  return (t, n) => (s(), y(j, null, [
1212
- D("div", zr, [D("label", { class: E(x(q)) }, _(x(i).button.fontFamily), 3), D("select", {
1214
+ D("div", Vr, [D("label", { class: E(x(q)) }, _(x(i).button.fontFamily), 3), D("select", {
1213
1215
  class: E(x(K)),
1214
1216
  value: e.block.fontFamily || "",
1215
1217
  onChange: n[0] ||= (e) => o("fontFamily", e.target.value || void 0)
1216
- }, [D("option", Vr, _(x(i).button.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
1218
+ }, [D("option", Ur, _(x(i).button.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
1217
1219
  key: e.value,
1218
1220
  value: e.value
1219
- }, _(e.label), 9, Hr))), 128))], 42, Br)]),
1220
- D("div", Ur, [D("label", { class: E(x(q)) }, _(x(i).button.text), 3), P($, {
1221
+ }, _(e.label), 9, Wr))), 128))], 42, Hr)]),
1222
+ D("div", Gr, [D("label", { class: E(x(q)) }, _(x(i).button.text), 3), P($, {
1221
1223
  "model-value": e.block.text,
1222
1224
  type: "text",
1223
1225
  "onUpdate:modelValue": n[1] ||= (e) => o("text", e)
1224
1226
  }, null, 8, ["model-value"])]),
1225
- D("div", Wr, [
1227
+ D("div", Kr, [
1226
1228
  D("label", { class: E(x(q)) }, _(x(i).button.url), 3),
1227
1229
  P($, {
1228
1230
  "model-value": e.block.url,
@@ -1238,51 +1240,51 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1238
1240
  "onUpdate:modelValue": n[3] ||= (e) => o("openInNewTab", e)
1239
1241
  }, null, 8, ["model-value", "label"])) : b("", !0)
1240
1242
  ]),
1241
- D("div", Gr, [D("label", { class: E(x(q)) }, _(x(i).button.background), 3), P(X, {
1243
+ D("div", qr, [D("label", { class: E(x(q)) }, _(x(i).button.background), 3), P(X, {
1242
1244
  "model-value": e.block.backgroundColor,
1243
1245
  "onUpdate:modelValue": n[4] ||= (e) => o("backgroundColor", e)
1244
1246
  }, null, 8, ["model-value"])]),
1245
- D("div", Kr, [D("label", { class: E(x(q)) }, _(x(i).button.textColor), 3), P(X, {
1247
+ D("div", Jr, [D("label", { class: E(x(q)) }, _(x(i).button.textColor), 3), P(X, {
1246
1248
  "model-value": e.block.textColor,
1247
1249
  "onUpdate:modelValue": n[5] ||= (e) => o("textColor", e)
1248
1250
  }, null, 8, ["model-value"])]),
1249
- D("div", qr, [D("div", Jr, [D("label", { class: E(x(q)) }, _(x(i).button.borderRadius), 3), D("div", Yr, [D("input", {
1251
+ D("div", Yr, [D("div", Xr, [D("label", { class: E(x(q)) }, _(x(i).button.borderRadius), 3), D("div", Zr, [D("input", {
1250
1252
  type: "number",
1251
1253
  class: E(x(Y)),
1252
1254
  value: e.block.borderRadius,
1253
1255
  min: "0",
1254
1256
  max: "50",
1255
1257
  onInput: n[6] ||= (e) => o("borderRadius", Number(e.target.value))
1256
- }, null, 42, Xr), D("span", { class: E(x(J)) }, "px", 2)])]), D("div", Zr, [D("label", { class: E(x(q)) }, _(x(i).button.fontSize), 3), D("div", Qr, [D("input", {
1258
+ }, null, 42, Qr), D("span", { class: E(x(J)) }, "px", 2)])]), D("div", $r, [D("label", { class: E(x(q)) }, _(x(i).button.fontSize), 3), D("div", ei, [D("input", {
1257
1259
  type: "number",
1258
1260
  class: E(x(Y)),
1259
1261
  value: e.block.fontSize,
1260
1262
  min: "10",
1261
1263
  max: "36",
1262
1264
  onInput: n[7] ||= (e) => o("fontSize", Number(e.target.value))
1263
- }, null, 42, $r), D("span", { class: E(x(J)) }, "px", 2)])])]),
1264
- D("div", ei, [
1265
+ }, null, 42, ti), D("span", { class: E(x(J)) }, "px", 2)])])]),
1266
+ D("div", ni, [
1265
1267
  D("label", { class: E(x(q)) }, _(x(i).button.width), 3),
1266
1268
  D("select", {
1267
1269
  class: E(x(K)),
1268
1270
  value: a.value,
1269
1271
  onChange: n[8] ||= (e) => c(e.target.value)
1270
1272
  }, [
1271
- D("option", ni, _(x(i).button.widthAuto), 1),
1272
- D("option", ri, _(x(i).button.fullWidth), 1),
1273
- D("option", ii, _(x(i).button.widthCustom), 1)
1274
- ], 42, ti),
1275
- a.value === "custom" ? (s(), y("div", ai, [D("input", {
1273
+ D("option", ii, _(x(i).button.widthAuto), 1),
1274
+ D("option", ai, _(x(i).button.fullWidth), 1),
1275
+ D("option", oi, _(x(i).button.widthCustom), 1)
1276
+ ], 42, ri),
1277
+ a.value === "custom" ? (s(), y("div", si, [D("input", {
1276
1278
  type: "number",
1277
1279
  class: E(x(Y)),
1278
- value: typeof e.block.width == "number" ? e.block.width : si,
1280
+ value: typeof e.block.width == "number" ? e.block.width : li,
1279
1281
  min: "20",
1280
1282
  onInput: n[9] ||= (e) => l(e.target.value)
1281
- }, null, 42, oi), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
1283
+ }, null, 42, ci), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
1282
1284
  ])
1283
1285
  ], 64));
1284
1286
  }
1285
- }), li = { class: "spacing-control" }, ui = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, di = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, fi = { class: "tpl:flex tpl:items-center" }, pi = ["aria-label"], mi = ["value", "aria-label"], hi = ["aria-label"], gi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _i = { class: "tpl:flex tpl:items-center" }, vi = ["aria-label"], yi = ["value", "aria-label"], bi = ["aria-label"], xi = ["aria-label", "title"], Si = { class: "tpl:flex tpl:items-center" }, Ci = ["aria-label"], wi = ["value", "aria-label"], Ti = ["aria-label"], Ei = { class: "tpl:flex tpl:items-center" }, Di = ["aria-label"], Oi = ["value", "aria-label"], ki = ["aria-label"], Ai = "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)]", ji = "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)]", Mi = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
1287
+ }), di = { class: "spacing-control" }, fi = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, pi = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, mi = { class: "tpl:flex tpl:items-center" }, hi = ["aria-label"], gi = ["value", "aria-label"], _i = ["aria-label"], vi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, yi = { class: "tpl:flex tpl:items-center" }, bi = ["aria-label"], xi = ["value", "aria-label"], Si = ["aria-label"], Ci = ["aria-label", "title"], wi = { class: "tpl:flex tpl:items-center" }, Ti = ["aria-label"], Ei = ["value", "aria-label"], Di = ["aria-label"], Oi = { class: "tpl:flex tpl:items-center" }, ki = ["aria-label"], Ai = ["value", "aria-label"], ji = ["aria-label"], Mi = "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)]", Ni = "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)]", Pi = /*#__PURE__*/ zt(/* @__PURE__ */ N({
1286
1288
  __name: "SpacingControl",
1287
1289
  props: {
1288
1290
  modelValue: {},
@@ -1329,130 +1331,130 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1329
1331
  });
1330
1332
  }
1331
1333
  }
1332
- return (t, n) => (s(), y("div", li, [D("label", ui, _(e.label), 1), D("div", di, [
1333
- D("div", fi, [
1334
+ return (t, n) => (s(), y("div", di, [D("label", fi, _(e.label), 1), D("div", pi, [
1335
+ D("div", mi, [
1334
1336
  D("button", {
1335
1337
  "aria-label": x(i).spacingControl.decreaseTop,
1336
- class: E([Ai, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1338
+ class: E([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1337
1339
  onClick: n[0] ||= (e) => c("top", -1)
1338
- }, [P(x(et), {
1340
+ }, [P(x(vt), {
1339
1341
  size: 12,
1340
1342
  "stroke-width": 2
1341
- })], 10, pi),
1343
+ })], 10, hi),
1342
1344
  D("input", {
1343
1345
  type: "number",
1344
- class: E(ji),
1346
+ class: E(Ni),
1345
1347
  value: e.modelValue.top,
1346
1348
  "aria-label": x(i).spacingControl.top,
1347
1349
  min: "0",
1348
1350
  onInput: n[1] ||= (e) => l("top", Number(e.target.value))
1349
- }, null, 40, mi),
1351
+ }, null, 40, gi),
1350
1352
  D("button", {
1351
1353
  "aria-label": x(i).spacingControl.increaseTop,
1352
- class: E([Ai, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1354
+ class: E([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1353
1355
  onClick: n[2] ||= (e) => c("top", 1)
1354
1356
  }, [P(x(G), {
1355
1357
  size: 12,
1356
1358
  "stroke-width": 2
1357
- })], 10, hi)
1359
+ })], 10, _i)
1358
1360
  ]),
1359
- D("div", gi, [
1360
- D("div", _i, [
1361
+ D("div", vi, [
1362
+ D("div", yi, [
1361
1363
  D("button", {
1362
1364
  "aria-label": x(i).spacingControl.decreaseLeft,
1363
- class: E([Ai, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1365
+ class: E([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1364
1366
  onClick: n[3] ||= (e) => c("left", -1)
1365
- }, [P(x(et), {
1367
+ }, [P(x(vt), {
1366
1368
  size: 12,
1367
1369
  "stroke-width": 2
1368
- })], 10, vi),
1370
+ })], 10, bi),
1369
1371
  D("input", {
1370
1372
  type: "number",
1371
- class: E(ji),
1373
+ class: E(Ni),
1372
1374
  value: e.modelValue.left,
1373
1375
  "aria-label": x(i).spacingControl.left,
1374
1376
  min: "0",
1375
1377
  onInput: n[4] ||= (e) => l("left", Number(e.target.value))
1376
- }, null, 40, yi),
1378
+ }, null, 40, xi),
1377
1379
  D("button", {
1378
1380
  "aria-label": x(i).spacingControl.increaseLeft,
1379
- class: E([Ai, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1381
+ class: E([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1380
1382
  onClick: n[5] ||= (e) => c("left", 1)
1381
1383
  }, [P(x(G), {
1382
1384
  size: 12,
1383
1385
  "stroke-width": 2
1384
- })], 10, bi)
1386
+ })], 10, Si)
1385
1387
  ]),
1386
1388
  D("button", {
1387
1389
  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)]"]),
1388
1390
  "aria-label": o.value ? x(i).spacingControl.unlock : x(i).spacingControl.lockAll,
1389
1391
  title: o.value ? x(i).spacingControl.unlock : x(i).spacingControl.lockAll,
1390
1392
  onClick: u
1391
- }, [o.value ? (s(), C(x(Mt), {
1393
+ }, [o.value ? (s(), C(x(kt), {
1392
1394
  key: 0,
1393
1395
  size: 14,
1394
1396
  "stroke-width": 2
1395
- })) : (s(), C(x(Dt), {
1397
+ })) : (s(), C(x(Mt), {
1396
1398
  key: 1,
1397
1399
  size: 14,
1398
1400
  "stroke-width": 2
1399
- }))], 10, xi),
1400
- D("div", Si, [
1401
+ }))], 10, Ci),
1402
+ D("div", wi, [
1401
1403
  D("button", {
1402
1404
  "aria-label": x(i).spacingControl.decreaseRight,
1403
- class: E([Ai, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1405
+ class: E([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1404
1406
  onClick: n[6] ||= (e) => c("right", -1)
1405
- }, [P(x(et), {
1407
+ }, [P(x(vt), {
1406
1408
  size: 12,
1407
1409
  "stroke-width": 2
1408
- })], 10, Ci),
1410
+ })], 10, Ti),
1409
1411
  D("input", {
1410
1412
  type: "number",
1411
- class: E(ji),
1413
+ class: E(Ni),
1412
1414
  value: e.modelValue.right,
1413
1415
  "aria-label": x(i).spacingControl.right,
1414
1416
  min: "0",
1415
1417
  onInput: n[7] ||= (e) => l("right", Number(e.target.value))
1416
- }, null, 40, wi),
1418
+ }, null, 40, Ei),
1417
1419
  D("button", {
1418
1420
  "aria-label": x(i).spacingControl.increaseRight,
1419
- class: E([Ai, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1421
+ class: E([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1420
1422
  onClick: n[8] ||= (e) => c("right", 1)
1421
1423
  }, [P(x(G), {
1422
1424
  size: 12,
1423
1425
  "stroke-width": 2
1424
- })], 10, Ti)
1426
+ })], 10, Di)
1425
1427
  ])
1426
1428
  ]),
1427
- D("div", Ei, [
1429
+ D("div", Oi, [
1428
1430
  D("button", {
1429
1431
  "aria-label": x(i).spacingControl.decreaseBottom,
1430
- class: E([Ai, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1432
+ class: E([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1431
1433
  onClick: n[9] ||= (e) => c("bottom", -1)
1432
- }, [P(x(et), {
1434
+ }, [P(x(vt), {
1433
1435
  size: 12,
1434
1436
  "stroke-width": 2
1435
- })], 10, Di),
1437
+ })], 10, ki),
1436
1438
  D("input", {
1437
1439
  type: "number",
1438
- class: E(ji),
1440
+ class: E(Ni),
1439
1441
  value: e.modelValue.bottom,
1440
1442
  "aria-label": x(i).spacingControl.bottom,
1441
1443
  min: "0",
1442
1444
  onInput: n[10] ||= (e) => l("bottom", Number(e.target.value))
1443
- }, null, 40, Oi),
1445
+ }, null, 40, Ai),
1444
1446
  D("button", {
1445
1447
  "aria-label": x(i).spacingControl.increaseBottom,
1446
- class: E([Ai, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1448
+ class: E([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1447
1449
  onClick: n[11] ||= (e) => c("bottom", 1)
1448
1450
  }, [P(x(G), {
1449
1451
  size: 12,
1450
1452
  "stroke-width": 2
1451
- })], 10, ki)
1453
+ })], 10, ji)
1452
1454
  ])
1453
1455
  ])]));
1454
1456
  }
1455
- }), [["__scopeId", "data-v-9a9c8a07"]]), Ni = { class: "tpl:mt-3" }, Pi = /* @__PURE__ */ N({
1457
+ }), [["__scopeId", "data-v-9a9c8a07"]]), Fi = { class: "tpl:mt-3" }, Ii = /* @__PURE__ */ N({
1456
1458
  __name: "CollapsibleSection",
1457
1459
  props: {
1458
1460
  title: {},
@@ -1465,25 +1467,25 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1465
1467
  type: "button",
1466
1468
  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)]",
1467
1469
  onClick: i[0] ||= (e) => n.$emit("toggle")
1468
- }, [P(x(pt), {
1470
+ }, [P(x(st), {
1469
1471
  class: E(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1470
1472
  size: 12,
1471
1473
  "stroke-width": 2
1472
- }, null, 8, ["class"]), D("span", null, _(e.title), 1)]), r(D("div", Ni, [t(n.$slots, "default")], 512), [[O, e.open]])], 2));
1474
+ }, null, 8, ["class"]), D("span", null, _(e.title), 1)]), r(D("div", Fi, [t(n.$slots, "default")], 512), [[O, e.open]])], 2));
1473
1475
  }
1474
- }), Fi = { class: "tpl:space-y-2" }, Ii = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Li = { class: "tpl:space-y-2" }, Ri = ["value"], zi = { value: "" }, Bi = ["label"], Vi = ["value"], Hi = ["value"], Ui = {
1476
+ }), Li = { class: "tpl:space-y-2" }, Ri = { class: "tpl:flex tpl:items-center tpl:gap-2" }, zi = { class: "tpl:space-y-2" }, Bi = ["value"], Vi = { value: "" }, Hi = ["label"], Ui = ["value"], Wi = ["value"], Gi = {
1475
1477
  key: 0,
1476
1478
  value: "__custom__"
1477
- }, Wi = {
1479
+ }, Ki = {
1478
1480
  key: 0,
1479
1481
  class: "tpl:space-y-2"
1480
- }, Gi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ki = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, qi = { class: "tpl:flex tpl:justify-end" }, Ji = ["disabled"], Yi = {
1482
+ }, qi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Ji = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Yi = { class: "tpl:flex tpl:justify-end" }, Xi = ["disabled"], Zi = {
1481
1483
  key: 0,
1482
1484
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1483
- }, Xi = { class: "tpl:space-y-1" }, Zi = { 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)]" }, Qi = {
1485
+ }, Qi = { class: "tpl:space-y-1" }, $i = { 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)]" }, ea = {
1484
1486
  key: 0,
1485
1487
  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)]"
1486
- }, $i = /* @__PURE__ */ N({
1488
+ }, ta = /* @__PURE__ */ N({
1487
1489
  __name: "CommonBlockSettings",
1488
1490
  props: {
1489
1491
  block: {},
@@ -1491,9 +1493,9 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1491
1493
  },
1492
1494
  emits: ["update"],
1493
1495
  setup(e, { emit: t }) {
1494
- let n = e, i = t, { t: a } = W(), c = d(Ge, []), l = d(Ke, !1), h = p(/* @__PURE__ */ new Set()), g = m(!1), S = m(""), w = m(""), O = [{
1496
+ let n = e, i = t, { t: a } = W(), c = d(qe, []), l = d(Je, !1), h = p(/* @__PURE__ */ new Set()), g = m(!1), S = m(""), w = m(""), O = [{
1495
1497
  key: "desktop",
1496
- icon: mt,
1498
+ icon: nt,
1497
1499
  labelKey: "showOnDesktop"
1498
1500
  }, {
1499
1501
  key: "mobile",
@@ -1546,13 +1548,13 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1546
1548
  t[e] = !t[e], i("update", { visibility: t });
1547
1549
  }
1548
1550
  return (t, n) => (s(), y("div", { class: E(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1549
- P(Pi, {
1551
+ P(Ii, {
1550
1552
  title: x(a).blockSettings.spacing,
1551
1553
  open: h.has("spacing"),
1552
1554
  "no-border": e.isFirstSection,
1553
1555
  onToggle: n[1] ||= (e) => k("spacing")
1554
1556
  }, {
1555
- default: f(() => [P(Mi, {
1557
+ default: f(() => [P(Pi, {
1556
1558
  label: x(a).blockSettings.padding,
1557
1559
  "model-value": e.block.styles.padding,
1558
1560
  "onUpdate:modelValue": n[0] ||= (e) => z("padding", e)
@@ -1563,7 +1565,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1563
1565
  "open",
1564
1566
  "no-border"
1565
1567
  ]),
1566
- P(Pi, {
1568
+ P(Ii, {
1567
1569
  title: x(a).blockSettings.background,
1568
1570
  open: h.has("bg"),
1569
1571
  onToggle: n[3] ||= (e) => k("bg")
@@ -1574,19 +1576,19 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1574
1576
  }, null, 8, ["model-value"])]),
1575
1577
  _: 1
1576
1578
  }, 8, ["title", "open"]),
1577
- P(Pi, {
1579
+ P(Ii, {
1578
1580
  title: x(a).blockSettings.display,
1579
1581
  open: h.has("display"),
1580
1582
  onToggle: n[4] ||= (e) => k("display")
1581
1583
  }, {
1582
- default: f(() => [D("div", Fi, [(s(), y(j, null, u(O, (e) => P(Z, {
1584
+ default: f(() => [D("div", Li, [(s(), y(j, null, u(O, (e) => P(Z, {
1583
1585
  key: e.key,
1584
1586
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1585
1587
  "model-value": B(e.key),
1586
1588
  label: x(a).blockSettings[e.labelKey],
1587
1589
  "onUpdate:modelValue": (t) => V(e.key)
1588
1590
  }, {
1589
- default: f(() => [D("span", Ii, [(s(), C(o(e.icon), {
1591
+ default: f(() => [D("span", Ri, [(s(), C(o(e.icon), {
1590
1592
  size: 14,
1591
1593
  "stroke-width": 1.5
1592
1594
  })), M(" " + _(x(a).blockSettings[e.labelKey]), 1)])]),
@@ -1598,13 +1600,13 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1598
1600
  ])), 64))])]),
1599
1601
  _: 1
1600
1602
  }, 8, ["title", "open"]),
1601
- A.value ? (s(), C(Pi, {
1603
+ A.value ? (s(), C(Ii, {
1602
1604
  key: 0,
1603
1605
  title: x(a).blockSettings.displayCondition,
1604
1606
  open: h.has("condition"),
1605
1607
  onToggle: n[8] ||= (e) => k("condition")
1606
1608
  }, {
1607
- default: f(() => [D("div", Li, [D("select", {
1609
+ default: f(() => [D("div", zi, [D("select", {
1608
1610
  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)]"]),
1609
1611
  value: g.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1610
1612
  onChange: n[5] ||= (e) => {
@@ -1621,41 +1623,41 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1621
1623
  n && i("update", { displayCondition: n });
1622
1624
  }
1623
1625
  }, [
1624
- D("option", zi, _(x(a).blockSettings.noCondition), 1),
1626
+ D("option", Vi, _(x(a).blockSettings.noCondition), 1),
1625
1627
  (s(!0), y(j, null, u(R.value, (e, t) => (s(), y(j, { key: t }, [t ? (s(), y("optgroup", {
1626
1628
  key: 0,
1627
1629
  label: String(t)
1628
1630
  }, [(s(!0), y(j, null, u(e, (e) => (s(), y("option", {
1629
1631
  key: e.label,
1630
1632
  value: e.label
1631
- }, _(e.label), 9, Vi))), 128))], 8, Bi)) : (s(!0), y(j, { key: 1 }, u(e, (e) => (s(), y("option", {
1633
+ }, _(e.label), 9, Ui))), 128))], 8, Hi)) : (s(!0), y(j, { key: 1 }, u(e, (e) => (s(), y("option", {
1632
1634
  key: e.label,
1633
1635
  value: e.label
1634
- }, _(e.label), 9, Hi))), 128))], 64))), 128)),
1635
- x(l) ? (s(), y("option", Ui, _(x(a).blockSettings.customCondition), 1)) : b("", !0)
1636
- ], 42, Ri), g.value || N.value ? (s(), y("div", Wi, [
1637
- D("div", null, [D("label", Gi, _(x(a).blockSettings.customConditionBefore), 1), r(D("textarea", {
1636
+ }, _(e.label), 9, Wi))), 128))], 64))), 128)),
1637
+ x(l) ? (s(), y("option", Gi, _(x(a).blockSettings.customCondition), 1)) : b("", !0)
1638
+ ], 42, Bi), g.value || N.value ? (s(), y("div", Ki, [
1639
+ D("div", null, [D("label", qi, _(x(a).blockSettings.customConditionBefore), 1), r(D("textarea", {
1638
1640
  "onUpdate:modelValue": n[6] ||= (e) => S.value = e,
1639
1641
  rows: "2",
1640
- class: E(x(Kt))
1642
+ class: E(x(Jt))
1641
1643
  }, null, 2), [[T, S.value]])]),
1642
- D("div", null, [D("label", Ki, _(x(a).blockSettings.customConditionAfter), 1), r(D("textarea", {
1644
+ D("div", null, [D("label", Ji, _(x(a).blockSettings.customConditionAfter), 1), r(D("textarea", {
1643
1645
  "onUpdate:modelValue": n[7] ||= (e) => w.value = e,
1644
1646
  rows: "2",
1645
- class: E(x(Kt))
1647
+ class: E(x(Jt))
1646
1648
  }, null, 2), [[T, w.value]])]),
1647
- D("div", qi, [D("button", {
1649
+ D("div", Yi, [D("button", {
1648
1650
  type: "button",
1649
1651
  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",
1650
1652
  disabled: !S.value.trim(),
1651
1653
  onClick: L
1652
- }, _(x(a).blockSettings.applyCondition), 9, Ji)])
1653
- ])) : e.block.displayCondition && !N.value ? (s(), y(j, { key: 1 }, [e.block.displayCondition.description ? (s(), y("p", Yi, _(e.block.displayCondition.description), 1)) : b("", !0), D("div", Xi, [D("pre", Zi, _(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), y("pre", Qi, _(e.block.displayCondition.after), 1)) : b("", !0)])], 64)) : b("", !0)])]),
1654
+ }, _(x(a).blockSettings.applyCondition), 9, Xi)])
1655
+ ])) : e.block.displayCondition && !N.value ? (s(), y(j, { key: 1 }, [e.block.displayCondition.description ? (s(), y("p", Zi, _(e.block.displayCondition.description), 1)) : b("", !0), D("div", Qi, [D("pre", $i, _(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), y("pre", ea, _(e.block.displayCondition.after), 1)) : b("", !0)])], 64)) : b("", !0)])]),
1654
1656
  _: 1
1655
1657
  }, 8, ["title", "open"])) : b("", !0)
1656
1658
  ], 2));
1657
1659
  }
1658
- }), ea = ["title"], ta = /* @__PURE__ */ N({
1660
+ }), na = ["title"], ra = /* @__PURE__ */ N({
1659
1661
  __name: "BooleanField",
1660
1662
  props: {
1661
1663
  field: {},
@@ -1676,7 +1678,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1676
1678
  disabled: e.readOnly,
1677
1679
  "onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
1678
1680
  }, {
1679
- default: f(() => [M(_(e.field.label) + " ", 1), e.readOnly ? (s(), C(x(Mt), {
1681
+ default: f(() => [M(_(e.field.label) + " ", 1), e.readOnly ? (s(), C(x(kt), {
1680
1682
  key: 0,
1681
1683
  size: 12,
1682
1684
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -1687,12 +1689,12 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1687
1689
  "label",
1688
1690
  "required",
1689
1691
  "disabled"
1690
- ])], 8, ea));
1692
+ ])], 8, na));
1691
1693
  }
1692
- }), na = { class: "tpl:mb-3.5" }, ra = {
1694
+ }), ia = { class: "tpl:mb-3.5" }, aa = {
1693
1695
  key: 1,
1694
1696
  class: "tpl:text-[var(--tpl-danger)]"
1695
- }, ia = /* @__PURE__ */ N({
1697
+ }, oa = /* @__PURE__ */ N({
1696
1698
  __name: "FieldWrapper",
1697
1699
  props: {
1698
1700
  label: {},
@@ -1700,17 +1702,17 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1700
1702
  readOnly: { type: Boolean }
1701
1703
  },
1702
1704
  setup(e) {
1703
- return (n, r) => (s(), y("div", na, [D("label", { class: E(x(q)) }, [
1705
+ return (n, r) => (s(), y("div", ia, [D("label", { class: E(x(q)) }, [
1704
1706
  M(_(e.label) + " ", 1),
1705
- e.readOnly ? (s(), C(x(Mt), {
1707
+ e.readOnly ? (s(), C(x(kt), {
1706
1708
  key: 0,
1707
1709
  size: 12,
1708
1710
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1709
1711
  })) : b("", !0),
1710
- e.required ? (s(), y("span", ra, "*")) : b("", !0)
1712
+ e.required ? (s(), y("span", aa, "*")) : b("", !0)
1711
1713
  ], 2), t(n.$slots, "default")]));
1712
1714
  }
1713
- }), aa = /* @__PURE__ */ N({
1715
+ }), sa = /* @__PURE__ */ N({
1714
1716
  __name: "ColorField",
1715
1717
  props: {
1716
1718
  field: {},
@@ -1719,8 +1721,8 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1719
1721
  },
1720
1722
  emits: ["update:modelValue"],
1721
1723
  setup(e, { emit: t }) {
1722
- let n = e, r = t, { t: i } = W(), a = d(We, Qe), o = v(() => re(n.field, a));
1723
- return (t, n) => (s(), C(ia, {
1724
+ let n = e, r = t, { t: i } = W(), a = d(Ke, et), o = v(() => ie(n.field, a));
1725
+ return (t, n) => (s(), C(oa, {
1724
1726
  label: e.field.label,
1725
1727
  required: e.field.required,
1726
1728
  "read-only": e.readOnly
@@ -1748,15 +1750,15 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1748
1750
  "read-only"
1749
1751
  ]));
1750
1752
  }
1751
- }), oa = {
1753
+ }), ca = {
1752
1754
  key: 0,
1753
1755
  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)]",
1754
1756
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1755
- }, sa = [
1757
+ }, la = [
1756
1758
  "value",
1757
1759
  "placeholder",
1758
1760
  "title"
1759
- ], ca = ["value", "placeholder"], la = /* @__PURE__ */ N({
1761
+ ], ua = ["value", "placeholder"], da = /* @__PURE__ */ N({
1760
1762
  __name: "ImageField",
1761
1763
  props: {
1762
1764
  field: {},
@@ -1765,7 +1767,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1765
1767
  },
1766
1768
  emits: ["update:modelValue"],
1767
1769
  setup(e, { emit: t }) {
1768
- let n = e, r = t, { t: i } = W(), a = d(Ae, null), o = Bt(), c = v(() => !!a);
1770
+ let n = e, r = t, { t: i } = W(), a = d(We, null), o = Ht(), c = v(() => !!a);
1769
1771
  async function l() {
1770
1772
  let e = await a?.({ accept: ["images"] });
1771
1773
  o.alive && e && r("update:modelValue", e.url);
@@ -1791,7 +1793,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1791
1793
  enabled: h,
1792
1794
  onFiles: g
1793
1795
  });
1794
- return (t, n) => (s(), C(ia, {
1796
+ return (t, n) => (s(), C(oa, {
1795
1797
  label: e.field.label,
1796
1798
  required: e.field.required,
1797
1799
  "read-only": e.readOnly
@@ -1801,11 +1803,11 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1801
1803
  ref: u,
1802
1804
  class: "tpl:relative"
1803
1805
  }, [
1804
- h.value && (x(S) || p.value) ? (s(), y("div", oa, [p.value ? (s(), y(j, { key: 0 }, [P(x(At), {
1806
+ h.value && (x(S) || p.value) ? (s(), y("div", ca, [p.value ? (s(), y(j, { key: 0 }, [P(x(St), {
1805
1807
  class: "tpl-spinner",
1806
1808
  size: 18,
1807
1809
  "stroke-width": 2
1808
- }), M(" " + _(x(i).image.uploading), 1)], 64)) : (s(), y(j, { key: 1 }, [P(x(jt), {
1810
+ }), M(" " + _(x(i).image.uploading), 1)], 64)) : (s(), y(j, { key: 1 }, [P(x(Nt), {
1809
1811
  size: 18,
1810
1812
  "stroke-width": 1.5
1811
1813
  }), M(" " + _(x(i).image.dropToUpload), 1)], 64))])) : b("", !0),
@@ -1817,19 +1819,19 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1817
1819
  placeholder: e.field.placeholder || "https://...",
1818
1820
  disabled: "",
1819
1821
  title: x(i).customBlocks.dataSource.readOnlyTooltip
1820
- }, null, 10, sa)) : (s(), y("input", {
1822
+ }, null, 10, la)) : (s(), y("input", {
1821
1823
  key: 2,
1822
1824
  type: "url",
1823
1825
  class: E(x(K)),
1824
1826
  value: e.modelValue,
1825
1827
  placeholder: e.field.placeholder || "https://...",
1826
1828
  onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
1827
- }, null, 42, ca)),
1829
+ }, null, 42, ua)),
1828
1830
  c.value && !e.readOnly ? (s(), y("button", {
1829
1831
  key: 3,
1830
1832
  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)]",
1831
1833
  onClick: n[1] ||= (e) => l()
1832
- }, [P(x(xt), {
1834
+ }, [P(x(yt), {
1833
1835
  size: 14,
1834
1836
  "stroke-width": 1.5
1835
1837
  }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
@@ -1841,7 +1843,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1841
1843
  "read-only"
1842
1844
  ]));
1843
1845
  }
1844
- }), ua = [
1846
+ }), fa = [
1845
1847
  "value",
1846
1848
  "placeholder",
1847
1849
  "min",
@@ -1849,7 +1851,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1849
1851
  "step",
1850
1852
  "disabled",
1851
1853
  "title"
1852
- ], da = /* @__PURE__ */ N({
1854
+ ], pa = /* @__PURE__ */ N({
1853
1855
  __name: "NumberField",
1854
1856
  props: {
1855
1857
  field: {},
@@ -1859,7 +1861,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1859
1861
  emits: ["update:modelValue"],
1860
1862
  setup(e, { emit: t }) {
1861
1863
  let n = t, { t: r } = W();
1862
- return (t, i) => (s(), C(ia, {
1864
+ return (t, i) => (s(), C(oa, {
1863
1865
  label: e.field.label,
1864
1866
  required: e.field.required,
1865
1867
  "read-only": e.readOnly
@@ -1875,7 +1877,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1875
1877
  disabled: e.readOnly,
1876
1878
  title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1877
1879
  onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
1878
- }, null, 42, ua)]),
1880
+ }, null, 42, fa)]),
1879
1881
  _: 1
1880
1882
  }, 8, [
1881
1883
  "label",
@@ -1883,10 +1885,10 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1883
1885
  "read-only"
1884
1886
  ]));
1885
1887
  }
1886
- }), fa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, pa = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ma = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, ha = ["title", "onClick"], ga = {
1888
+ }), ma = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ha = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ga = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, _a = ["title", "onClick"], va = {
1887
1889
  key: 1,
1888
1890
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1889
- }, _a = /* @__PURE__ */ N({
1891
+ }, ya = /* @__PURE__ */ N({
1890
1892
  __name: "RepeatableField",
1891
1893
  props: {
1892
1894
  field: {},
@@ -1914,25 +1916,25 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1914
1916
  } : r);
1915
1917
  r("update:modelValue", i);
1916
1918
  }
1917
- return (t, n) => (s(), C(ia, {
1919
+ return (t, n) => (s(), C(oa, {
1918
1920
  label: e.field.label,
1919
1921
  required: e.field.required,
1920
1922
  "read-only": e.readOnly
1921
1923
  }, {
1922
- default: f(() => [D("div", fa, [
1924
+ default: f(() => [D("div", ma, [
1923
1925
  (s(!0), y(j, null, u(a.value, (t, n) => (s(), y("div", {
1924
1926
  key: `${e.field.key}-${n}`,
1925
1927
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1926
- }, [D("div", pa, [D("span", ma, " #" + _(n + 1), 1), l.value && !e.readOnly ? (s(), y("button", {
1928
+ }, [D("div", ha, [D("span", ga, " #" + _(n + 1), 1), l.value && !e.readOnly ? (s(), y("button", {
1927
1929
  key: 0,
1928
1930
  type: "button",
1929
1931
  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)]",
1930
1932
  title: x(i).customBlocks.fields.removeItem,
1931
1933
  onClick: (e) => p(n)
1932
- }, [P(x(bt), {
1934
+ }, [P(x(gt), {
1933
1935
  size: 12,
1934
1936
  "stroke-width": 2
1935
- })], 8, ha)) : b("", !0)]), (s(!0), y(j, null, u(e.field.fields, (r) => (s(), C(o(x(Ea)(r.type)), {
1937
+ })], 8, _a)) : b("", !0)]), (s(!0), y(j, null, u(e.field.fields, (r) => (s(), C(o(x(Oa)(r.type)), {
1936
1938
  key: r.key,
1937
1939
  field: r,
1938
1940
  "model-value": t[r.key],
@@ -1947,13 +1949,13 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1947
1949
  c.value && !e.readOnly ? (s(), y("button", {
1948
1950
  key: 0,
1949
1951
  type: "button",
1950
- class: E(x(Jt)),
1952
+ class: E(x(Xt)),
1951
1953
  onClick: d
1952
1954
  }, [P(x(G), {
1953
1955
  size: 14,
1954
1956
  "stroke-width": 2
1955
1957
  }), M(" " + _(x(i).customBlocks.fields.addItem), 1)], 2)) : b("", !0),
1956
- !c.value && !e.readOnly ? (s(), y("p", ga, _(x(i).customBlocks.fields.maxItemsReached), 1)) : b("", !0)
1958
+ !c.value && !e.readOnly ? (s(), y("p", va, _(x(i).customBlocks.fields.maxItemsReached), 1)) : b("", !0)
1957
1959
  ])]),
1958
1960
  _: 1
1959
1961
  }, 8, [
@@ -1962,11 +1964,11 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1962
1964
  "read-only"
1963
1965
  ]));
1964
1966
  }
1965
- }), va = [
1967
+ }), ba = [
1966
1968
  "value",
1967
1969
  "disabled",
1968
1970
  "title"
1969
- ], ya = ["value"], ba = /* @__PURE__ */ N({
1971
+ ], xa = ["value"], Sa = /* @__PURE__ */ N({
1970
1972
  __name: "SelectField",
1971
1973
  props: {
1972
1974
  field: {},
@@ -1976,7 +1978,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1976
1978
  emits: ["update:modelValue"],
1977
1979
  setup(e, { emit: t }) {
1978
1980
  let n = t, { t: r } = W();
1979
- return (t, i) => (s(), C(ia, {
1981
+ return (t, i) => (s(), C(oa, {
1980
1982
  label: e.field.label,
1981
1983
  required: e.field.required,
1982
1984
  "read-only": e.readOnly
@@ -1990,7 +1992,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1990
1992
  }, [(s(!0), y(j, null, u(e.field.options, (e) => (s(), y("option", {
1991
1993
  key: e.value,
1992
1994
  value: e.value
1993
- }, _(e.label), 9, ya))), 128))], 42, va)]),
1995
+ }, _(e.label), 9, xa))), 128))], 42, ba)]),
1994
1996
  _: 1
1995
1997
  }, 8, [
1996
1998
  "label",
@@ -1998,11 +2000,11 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
1998
2000
  "read-only"
1999
2001
  ]));
2000
2002
  }
2001
- }), xa = [
2003
+ }), Ca = [
2002
2004
  "value",
2003
2005
  "placeholder",
2004
2006
  "title"
2005
- ], Sa = /* @__PURE__ */ N({
2007
+ ], wa = /* @__PURE__ */ N({
2006
2008
  __name: "TextField",
2007
2009
  props: {
2008
2010
  field: {},
@@ -2012,7 +2014,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
2012
2014
  emits: ["update:modelValue"],
2013
2015
  setup(e, { emit: t }) {
2014
2016
  let n = t, { t: r } = W();
2015
- return (t, i) => (s(), C(ia, {
2017
+ return (t, i) => (s(), C(oa, {
2016
2018
  label: e.field.label,
2017
2019
  required: e.field.required,
2018
2020
  "read-only": e.readOnly
@@ -2025,7 +2027,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
2025
2027
  placeholder: e.field.placeholder,
2026
2028
  disabled: "",
2027
2029
  title: x(r).customBlocks.dataSource.readOnlyTooltip
2028
- }, null, 10, xa)) : (s(), C($, {
2030
+ }, null, 10, Ca)) : (s(), C($, {
2029
2031
  key: 1,
2030
2032
  "model-value": e.modelValue,
2031
2033
  placeholder: e.field.placeholder,
@@ -2038,12 +2040,12 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
2038
2040
  "read-only"
2039
2041
  ]));
2040
2042
  }
2041
- }), Ca = [
2043
+ }), Ta = [
2042
2044
  "value",
2043
2045
  "placeholder",
2044
2046
  "title"
2045
- ], wa = "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", Ta = {
2046
- text: Sa,
2047
+ ], Ea = "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", Da = {
2048
+ text: wa,
2047
2049
  textarea: /* @__PURE__ */ N({
2048
2050
  __name: "TextareaField",
2049
2051
  props: {
@@ -2054,7 +2056,7 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
2054
2056
  emits: ["update:modelValue"],
2055
2057
  setup(e, { emit: t }) {
2056
2058
  let n = t, { t: r } = W();
2057
- return (t, i) => (s(), C(ia, {
2059
+ return (t, i) => (s(), C(oa, {
2058
2060
  label: e.field.label,
2059
2061
  required: e.field.required,
2060
2062
  "read-only": e.readOnly
@@ -2066,8 +2068,8 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
2066
2068
  rows: "3",
2067
2069
  disabled: "",
2068
2070
  title: x(r).customBlocks.dataSource.readOnlyTooltip,
2069
- class: E(wa)
2070
- }, null, 8, Ca)) : (s(), C(nr, {
2071
+ class: E(Ea)
2072
+ }, null, 8, Ta)) : (s(), C(ir, {
2071
2073
  key: 1,
2072
2074
  "model-value": e.modelValue,
2073
2075
  placeholder: e.field.placeholder,
@@ -2081,37 +2083,37 @@ var Ln = ["aria-label", "onKeydown"], Rn = ["data-tooltip"], zn = ["data-tooltip
2081
2083
  ]));
2082
2084
  }
2083
2085
  }),
2084
- image: la,
2085
- color: aa,
2086
- number: da,
2087
- select: ba,
2088
- boolean: ta,
2089
- repeatable: _a
2086
+ image: da,
2087
+ color: sa,
2088
+ number: pa,
2089
+ select: Sa,
2090
+ boolean: ra,
2091
+ repeatable: ya
2090
2092
  };
2091
- function Ea(e) {
2092
- return Ta[e] ?? Sa;
2093
+ function Oa(e) {
2094
+ return Da[e] ?? wa;
2093
2095
  }
2094
2096
  //#endregion
2095
2097
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
2096
- var Da = {
2098
+ var ka = {
2097
2099
  key: 0,
2098
2100
  class: "tpl:p-4"
2099
- }, Oa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ka = { key: 1 }, Aa = {
2101
+ }, Aa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ja = { key: 1 }, Ma = {
2100
2102
  key: 0,
2101
2103
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
2102
- }, ja = {
2104
+ }, Na = {
2103
2105
  key: 1,
2104
2106
  class: "tpl:mb-4"
2105
- }, Ma = {
2107
+ }, Pa = {
2106
2108
  key: 1,
2107
2109
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
2108
- }, Na = {
2110
+ }, Fa = {
2109
2111
  key: 0,
2110
2112
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2111
- }, Pa = {
2113
+ }, Ia = {
2112
2114
  key: 2,
2113
2115
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
2114
- }, Fa = /* @__PURE__ */ N({
2116
+ }, La = /* @__PURE__ */ N({
2115
2117
  __name: "CustomBlockToolbar",
2116
2118
  props: { block: {} },
2117
2119
  emits: ["updateFieldValues", "updateDataSourceFetched"],
@@ -2132,23 +2134,23 @@ var Da = {
2132
2134
  [e]: t
2133
2135
  });
2134
2136
  }
2135
- return (t, n) => c.value ? (s(), y("div", ka, [
2136
- c.value.description ? (s(), y("p", Aa, _(c.value.description), 1)) : b("", !0),
2137
- x(m) ? (s(), y("div", ja, [x(h) && !x(l) ? (s(), y("button", {
2137
+ return (t, n) => c.value ? (s(), y("div", ja, [
2138
+ c.value.description ? (s(), y("p", Ma, _(c.value.description), 1)) : b("", !0),
2139
+ x(m) ? (s(), y("div", Na, [x(h) && !x(l) ? (s(), y("button", {
2138
2140
  key: 0,
2139
2141
  type: "button",
2140
2142
  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)]",
2141
2143
  onClick: n[0] ||= (...e) => x(p) && x(p)(...e)
2142
- }, _(c.value?.dataSource?.label || x(i).customBlocks.dataSource.fetchButton), 1)) : (s(), y("div", Ma, [x(l) ? (s(), y("div", Na, _(x(i).customBlocks.dataSource.fetching), 1)) : (s(), y("button", {
2144
+ }, _(c.value?.dataSource?.label || x(i).customBlocks.dataSource.fetchButton), 1)) : (s(), y("div", Pa, [x(l) ? (s(), y("div", Fa, _(x(i).customBlocks.dataSource.fetching), 1)) : (s(), y("button", {
2143
2145
  key: 1,
2144
2146
  type: "button",
2145
2147
  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)]",
2146
2148
  onClick: n[1] ||= (...e) => x(p) && x(p)(...e)
2147
- }, [P(x(ht), { size: 12 }), M(" " + _(x(i).customBlocks.dataSource.changeButton), 1)]))])), x(f) ? (s(), y("p", Pa, [P(x(nt), {
2149
+ }, [P(x(Rt), { size: 12 }), M(" " + _(x(i).customBlocks.dataSource.changeButton), 1)]))])), x(f) ? (s(), y("p", Ia, [P(x(wt), {
2148
2150
  size: 14,
2149
2151
  class: "tpl:shrink-0"
2150
2152
  }), M(" " + _(x(i).customBlocks.dataSource.fetchError), 1)])) : b("", !0)])) : b("", !0),
2151
- (s(!0), y(j, null, u(c.value.fields, (t) => (s(), C(o(x(Ea)(t.type)), {
2153
+ (s(!0), y(j, null, u(c.value.fields, (t) => (s(), C(o(x(Oa)(t.type)), {
2152
2154
  key: t.key,
2153
2155
  field: t,
2154
2156
  "model-value": e.block.fieldValues[t.key],
@@ -2160,9 +2162,9 @@ var Da = {
2160
2162
  "read-only",
2161
2163
  "onUpdate:modelValue"
2162
2164
  ]))), 128))
2163
- ])) : (s(), y("div", Da, [D("p", Oa, _(x(i).customBlocks.toolbar.noDefinition), 1)]));
2165
+ ])) : (s(), y("div", ka, [D("p", Aa, _(x(i).customBlocks.toolbar.noDefinition), 1)]));
2164
2166
  }
2165
- }), Ia = { class: "tpl:mb-3.5" }, La = { class: "tpl:mb-3.5" }, Ra = { class: "tpl:mb-3.5" }, za = { class: "tpl:flex tpl:items-stretch" }, Ba = ["value"], Va = /* @__PURE__ */ N({
2167
+ }), Ra = { class: "tpl:mb-3.5" }, za = { class: "tpl:mb-3.5" }, Ba = { class: "tpl:mb-3.5" }, Va = { class: "tpl:flex tpl:items-stretch" }, Ha = ["value"], Ua = /* @__PURE__ */ N({
2166
2168
  __name: "DividerToolbar",
2167
2169
  props: { block: {} },
2168
2170
  emits: ["update"],
@@ -2172,7 +2174,7 @@ var Da = {
2172
2174
  n("update", { [e]: t });
2173
2175
  }
2174
2176
  return (t, n) => (s(), y(j, null, [
2175
- D("div", Ia, [D("label", { class: E(x(q)) }, _(x(r).divider.style), 3), P($t, {
2177
+ D("div", Ra, [D("label", { class: E(x(q)) }, _(x(r).divider.style), 3), P(tn, {
2176
2178
  options: [
2177
2179
  {
2178
2180
  value: "solid",
@@ -2190,57 +2192,57 @@ var Da = {
2190
2192
  "model-value": e.block.lineStyle,
2191
2193
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
2192
2194
  }, null, 8, ["options", "model-value"])]),
2193
- D("div", La, [D("label", { class: E(x(q)) }, _(x(r).divider.color), 3), P(X, {
2195
+ D("div", za, [D("label", { class: E(x(q)) }, _(x(r).divider.color), 3), P(X, {
2194
2196
  "model-value": e.block.color,
2195
2197
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
2196
2198
  }, null, 8, ["model-value"])]),
2197
- D("div", Ra, [D("label", { class: E(x(q)) }, _(x(r).divider.thickness), 3), D("div", za, [D("input", {
2199
+ D("div", Ba, [D("label", { class: E(x(q)) }, _(x(r).divider.thickness), 3), D("div", Va, [D("input", {
2198
2200
  type: "number",
2199
2201
  class: E(x(Y)),
2200
2202
  value: e.block.thickness,
2201
2203
  min: "1",
2202
2204
  max: "10",
2203
2205
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
2204
- }, null, 42, Ba), D("span", { class: E(x(J)) }, "px", 2)])])
2206
+ }, null, 42, Ha), D("span", { class: E(x(J)) }, "px", 2)])])
2205
2207
  ], 64));
2206
2208
  }
2207
- }), Ha = { class: "tpl:mb-3.5" }, Ua = ["value"], Wa = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Ga = /* @__PURE__ */ N({
2209
+ }), Wa = { class: "tpl:mb-3.5" }, Ga = ["value"], Ka = { 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({
2208
2210
  __name: "HtmlToolbar",
2209
2211
  props: { block: {} },
2210
2212
  emits: ["update"],
2211
2213
  setup(e, { emit: t }) {
2212
2214
  let n = t, { t: r } = W();
2213
- return (t, i) => (s(), y("div", Ha, [
2215
+ return (t, i) => (s(), y("div", Wa, [
2214
2216
  D("label", { class: E(x(q)) }, _(x(r).html.content), 3),
2215
2217
  D("textarea", {
2216
2218
  value: e.block.content,
2217
2219
  placeholder: "<div>...</div>",
2218
2220
  rows: "10",
2219
- class: E(x(Kt)),
2221
+ class: E(x(Jt)),
2220
2222
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
2221
- }, null, 42, Ua),
2222
- D("p", Wa, [P(x(Nt), {
2223
+ }, null, 42, Ga),
2224
+ D("p", Ka, [P(x(_t), {
2223
2225
  size: 12,
2224
2226
  class: "tpl:mt-0.5 tpl:shrink-0"
2225
2227
  }), M(" " + _(x(r).html.sanitizationHint), 1)])
2226
2228
  ]));
2227
2229
  }
2228
- }), Ka = { class: "tpl:mb-3.5" }, qa = {
2230
+ }), Ja = { class: "tpl:mb-3.5" }, Ya = {
2229
2231
  key: 0,
2230
2232
  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)]",
2231
2233
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
2232
- }, Ja = {
2234
+ }, Xa = {
2233
2235
  key: 0,
2234
2236
  class: "tpl:mb-3.5"
2235
- }, Ya = ["value", "placeholder"], Xa = { class: "tpl:mb-3.5" }, Za = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Qa = { class: "tpl:mb-3.5" }, $a = ["value"], eo = { value: "full" }, to = { value: "custom" }, no = {
2237
+ }, Za = ["value", "placeholder"], Qa = { class: "tpl:mb-3.5" }, $a = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, eo = { class: "tpl:mb-3.5" }, to = ["value"], no = { value: "full" }, ro = { value: "custom" }, io = {
2236
2238
  key: 0,
2237
2239
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2238
- }, ro = ["value"], io = { class: "tpl:mb-3.5" }, ao = { class: "tpl:mb-3.5" }, oo = 350, so = /* @__PURE__ */ N({
2240
+ }, ao = ["value"], oo = { class: "tpl:mb-3.5" }, so = { class: "tpl:mb-3.5" }, co = 350, lo = /* @__PURE__ */ N({
2239
2241
  __name: "ImageToolbar",
2240
2242
  props: { block: {} },
2241
2243
  emits: ["update"],
2242
2244
  setup(e, { emit: t }) {
2243
- let n = e, r = t, { t: i } = W(), a = d(Ae, null), o = d(Ie, ee.liquid), c = Bt(), l = v(() => !!a), u = m(!1), p = m(!1), { start: h } = Oe(() => {
2245
+ let n = e, r = t, { t: i } = W(), a = d(We, null), o = d(Ge, B.liquid), c = Ht(), l = v(() => !!a), u = m(!1), p = m(!1), { start: h } = Oe(() => {
2244
2246
  u.value = !1;
2245
2247
  }, 1e3, { immediate: !1 }), g = [
2246
2248
  300,
@@ -2256,7 +2258,7 @@ var Da = {
2256
2258
  function T(e) {
2257
2259
  if (e === "custom") {
2258
2260
  let e = n.block.width;
2259
- (typeof e != "number" || g.includes(e)) && w("width", oo);
2261
+ (typeof e != "number" || g.includes(e)) && w("width", co);
2260
2262
  return;
2261
2263
  }
2262
2264
  w("width", e === "full" ? "full" : Number(e));
@@ -2269,7 +2271,7 @@ var Da = {
2269
2271
  let e = await a?.({ accept: ["images"] });
2270
2272
  c.alive && e && (w("src", e.url), e.alt && (w("alt", e.alt), p.value = !0), u.value = !0, h());
2271
2273
  }
2272
- let A = m(), N = m(!1), F = v(() => H(n.block.src, o)), I = v(() => l.value && !N.value && !F.value);
2274
+ let A = m(), N = m(!1), F = v(() => V(n.block.src, o)), I = v(() => l.value && !N.value && !F.value);
2273
2275
  async function L(e) {
2274
2276
  if (a) {
2275
2277
  N.value = !0;
@@ -2291,16 +2293,16 @@ var Da = {
2291
2293
  onFiles: L
2292
2294
  });
2293
2295
  return (t, n) => (s(), y(j, null, [
2294
- D("div", Ka, [D("label", { class: E(x(q)) }, _(x(i).image.imageUrl), 3), D("div", {
2296
+ D("div", Ja, [D("label", { class: E(x(q)) }, _(x(i).image.imageUrl), 3), D("div", {
2295
2297
  ref_key: "dropZoneRef",
2296
2298
  ref: A,
2297
2299
  class: "tpl:relative"
2298
2300
  }, [
2299
- I.value && (x(R) || N.value) ? (s(), y("div", qa, [N.value ? (s(), y(j, { key: 0 }, [P(x(At), {
2301
+ I.value && (x(R) || N.value) ? (s(), y("div", Ya, [N.value ? (s(), y(j, { key: 0 }, [P(x(St), {
2300
2302
  class: "tpl-spinner",
2301
2303
  size: 18,
2302
2304
  "stroke-width": 2
2303
- }), M(" " + _(x(i).image.uploading), 1)], 64)) : (s(), y(j, { key: 1 }, [P(x(jt), {
2305
+ }), M(" " + _(x(i).image.uploading), 1)], 64)) : (s(), y(j, { key: 1 }, [P(x(Nt), {
2304
2306
  size: 18,
2305
2307
  "stroke-width": 1.5
2306
2308
  }), M(" " + _(x(i).image.dropToUpload), 1)], 64))])) : b("", !0),
@@ -2324,19 +2326,19 @@ var Da = {
2324
2326
  "background-color": "var(--tpl-bg)"
2325
2327
  },
2326
2328
  onClick: k
2327
- }, [P(x(xt), {
2329
+ }, [P(x(yt), {
2328
2330
  size: 14,
2329
2331
  "stroke-width": 1.5
2330
2332
  }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
2331
2333
  ], 512)]),
2332
- x(H)(e.block.src, x(o)) ? (s(), y("div", Ja, [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", {
2334
+ x(V)(e.block.src, x(o)) ? (s(), y("div", Xa, [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", {
2333
2335
  type: "url",
2334
2336
  class: E(x(K)),
2335
2337
  value: e.block.placeholderUrl || "",
2336
2338
  placeholder: x(i).image.placeholderUrlPlaceholder,
2337
2339
  onInput: n[1] ||= (e) => w("placeholderUrl", e.target.value)
2338
- }, null, 42, Ya)])) : b("", !0),
2339
- D("div", Xa, [
2340
+ }, null, 42, Za)])) : b("", !0),
2341
+ D("div", Qa, [
2340
2342
  D("label", { class: E(x(q)) }, _(x(i).image.altText), 3),
2341
2343
  P($, {
2342
2344
  "model-value": e.block.alt,
@@ -2357,32 +2359,32 @@ var Da = {
2357
2359
  label: x(i).image.decorative,
2358
2360
  "onUpdate:modelValue": n[3] ||= (e) => w("decorative", e)
2359
2361
  }, {
2360
- default: f(() => [D("span", null, [M(_(x(i).image.decorative) + " ", 1), D("span", Za, _(x(i).image.decorativeHint), 1)])]),
2362
+ default: f(() => [D("span", null, [M(_(x(i).image.decorative) + " ", 1), D("span", $a, _(x(i).image.decorativeHint), 1)])]),
2361
2363
  _: 1
2362
2364
  }, 8, ["model-value", "label"])
2363
2365
  ]),
2364
- D("div", Qa, [
2366
+ D("div", eo, [
2365
2367
  D("label", { class: E(x(q)) }, _(x(i).image.width), 3),
2366
2368
  D("select", {
2367
2369
  class: E(x(K)),
2368
2370
  value: S.value,
2369
2371
  onChange: n[4] ||= (e) => T(e.target.value)
2370
2372
  }, [
2371
- D("option", eo, _(x(i).image.fullWidth), 1),
2373
+ D("option", no, _(x(i).image.fullWidth), 1),
2372
2374
  n[10] ||= D("option", { value: "300" }, "300px", -1),
2373
2375
  n[11] ||= D("option", { value: "400" }, "400px", -1),
2374
2376
  n[12] ||= D("option", { value: "500" }, "500px", -1),
2375
- D("option", to, _(x(i).image.widthCustom), 1)
2376
- ], 42, $a),
2377
- S.value === "custom" ? (s(), y("div", no, [D("input", {
2377
+ D("option", ro, _(x(i).image.widthCustom), 1)
2378
+ ], 42, to),
2379
+ S.value === "custom" ? (s(), y("div", io, [D("input", {
2378
2380
  type: "number",
2379
2381
  class: E(x(Y)),
2380
- value: typeof e.block.width == "number" ? e.block.width : oo,
2382
+ value: typeof e.block.width == "number" ? e.block.width : co,
2381
2383
  min: "20",
2382
2384
  onInput: n[5] ||= (e) => O(e.target.value)
2383
- }, null, 42, ro), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
2385
+ }, null, 42, ao), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
2384
2386
  ]),
2385
- D("div", io, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P($t, {
2387
+ D("div", oo, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P(tn, {
2386
2388
  options: [
2387
2389
  {
2388
2390
  value: "left",
@@ -2400,7 +2402,7 @@ var Da = {
2400
2402
  "model-value": e.block.align,
2401
2403
  "onUpdate:modelValue": n[6] ||= (e) => w("align", e)
2402
2404
  }, null, 8, ["options", "model-value"])]),
2403
- D("div", ao, [
2405
+ D("div", so, [
2404
2406
  D("label", { class: E(x(q)) }, _(x(i).image.linkUrl), 3),
2405
2407
  P($, {
2406
2408
  "model-value": e.block.linkUrl || "",
@@ -2418,11 +2420,11 @@ var Da = {
2418
2420
  ])
2419
2421
  ], 64));
2420
2422
  }
2421
- }), co = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, lo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, uo = [
2423
+ }), uo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, fo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, po = [
2422
2424
  "value",
2423
2425
  "placeholder",
2424
2426
  "onInput"
2425
- ], fo = ["title", "onClick"], po = { 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)]" }, mo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ho = ["value"], go = { value: "" }, _o = ["value"], vo = ["value"], yo = /* @__PURE__ */ N({
2427
+ ], mo = ["title", "onClick"], ho = { 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)]" }, go = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _o = ["value"], vo = { value: "" }, yo = ["value"], bo = ["value"], xo = /* @__PURE__ */ N({
2426
2428
  __name: "MenuToolbar",
2427
2429
  props: {
2428
2430
  block: {},
@@ -2447,17 +2449,17 @@ var Da = {
2447
2449
  {
2448
2450
  value: "left",
2449
2451
  label: i.title.alignLeft,
2450
- icon: kt
2452
+ icon: Dt
2451
2453
  },
2452
2454
  {
2453
2455
  value: "center",
2454
2456
  label: i.title.alignCenter,
2455
- icon: wt
2457
+ icon: bt
2456
2458
  },
2457
2459
  {
2458
2460
  value: "right",
2459
2461
  label: i.title.alignRight,
2460
- icon: Tt
2462
+ icon: xt
2461
2463
  }
2462
2464
  ]);
2463
2465
  function c(e, t) {
@@ -2486,24 +2488,24 @@ var Da = {
2486
2488
  }
2487
2489
  return (t, n) => (s(), y(j, null, [
2488
2490
  P(Q, { label: x(i).menu.items }, {
2489
- default: f(() => [D("div", co, [(s(!0), y(j, null, u(e.block.items, (t) => (s(), y("div", {
2491
+ default: f(() => [D("div", uo, [(s(!0), y(j, null, u(e.block.items, (t) => (s(), y("div", {
2490
2492
  key: t.id,
2491
2493
  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"
2492
2494
  }, [
2493
- D("div", lo, [D("input", {
2495
+ D("div", fo, [D("input", {
2494
2496
  type: "text",
2495
2497
  class: E([x(K), "tpl:flex-1"]),
2496
2498
  value: t.text,
2497
2499
  placeholder: x(i).menu.text,
2498
2500
  onInput: (e) => d(t.id, "text", e.target.value)
2499
- }, null, 42, uo), D("button", {
2500
- class: E(x(Gt)),
2501
+ }, null, 42, po), D("button", {
2502
+ class: E(x(qt)),
2501
2503
  title: x(i).menu.removeItem,
2502
2504
  onClick: (e) => p(t.id)
2503
- }, [P(x(Et), {
2505
+ }, [P(x(Ot), {
2504
2506
  size: 14,
2505
2507
  "stroke-width": 2
2506
- })], 10, fo)]),
2508
+ })], 10, mo)]),
2507
2509
  P($, {
2508
2510
  "model-value": t.url,
2509
2511
  type: "url",
@@ -2514,7 +2516,7 @@ var Da = {
2514
2516
  "placeholder",
2515
2517
  "onUpdate:modelValue"
2516
2518
  ]),
2517
- D("div", po, [(s(!0), y(j, null, u(a.value, (e) => (s(), C(Z, {
2519
+ D("div", ho, [(s(!0), y(j, null, u(a.value, (e) => (s(), C(Z, {
2518
2520
  key: e.key,
2519
2521
  "model-value": t[e.key],
2520
2522
  label: e.label,
@@ -2524,13 +2526,13 @@ var Da = {
2524
2526
  "label",
2525
2527
  "onUpdate:modelValue"
2526
2528
  ]))), 128))]),
2527
- D("div", mo, [D("label", { class: E([x(q), "tpl:!mb-0"]) }, _(x(i).menu.color), 3), P(X, {
2529
+ D("div", go, [D("label", { class: E([x(q), "tpl:!mb-0"]) }, _(x(i).menu.color), 3), P(X, {
2528
2530
  "swatch-only": "",
2529
2531
  "model-value": t.color || e.block.linkColor || e.block.color || "",
2530
2532
  "onUpdate:modelValue": (e) => d(t.id, "color", e)
2531
2533
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
2532
2534
  ]))), 128)), D("button", {
2533
- class: E(x(Jt)),
2535
+ class: E(x(Xt)),
2534
2536
  onClick: l
2535
2537
  }, [P(x(G), {
2536
2538
  size: 14,
@@ -2543,14 +2545,14 @@ var Da = {
2543
2545
  class: E(x(K)),
2544
2546
  value: e.block.fontFamily || "",
2545
2547
  onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
2546
- }, [D("option", go, _(x(i).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
2548
+ }, [D("option", vo, _(x(i).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
2547
2549
  key: e.value,
2548
2550
  value: e.value
2549
- }, _(e.label), 9, _o))), 128))], 42, ho)]),
2551
+ }, _(e.label), 9, yo))), 128))], 42, _o)]),
2550
2552
  _: 1
2551
2553
  }, 8, ["label"]),
2552
2554
  P(Q, { label: x(i).menu.fontSize }, {
2553
- default: f(() => [P(en, {
2555
+ default: f(() => [P(nn, {
2554
2556
  "model-value": e.block.fontSize,
2555
2557
  min: 8,
2556
2558
  max: 48,
@@ -2574,7 +2576,7 @@ var Da = {
2574
2576
  _: 1
2575
2577
  }, 8, ["label"]),
2576
2578
  P(Q, { label: x(i).menu.textAlign }, {
2577
- default: f(() => [P($t, {
2579
+ default: f(() => [P(tn, {
2578
2580
  options: o.value,
2579
2581
  "model-value": e.block.textAlign,
2580
2582
  "onUpdate:modelValue": n[4] ||= (e) => c("textAlign", e)
@@ -2587,7 +2589,7 @@ var Da = {
2587
2589
  class: E(x(K)),
2588
2590
  value: e.block.separator,
2589
2591
  onInput: n[5] ||= (e) => c("separator", e.target.value)
2590
- }, null, 42, vo)]),
2592
+ }, null, 42, bo)]),
2591
2593
  _: 1
2592
2594
  }, 8, ["label"]),
2593
2595
  P(Q, { label: x(i).menu.separatorColor }, {
@@ -2598,7 +2600,7 @@ var Da = {
2598
2600
  _: 1
2599
2601
  }, 8, ["label"]),
2600
2602
  P(Q, { label: x(i).menu.spacing }, {
2601
- default: f(() => [P(en, {
2603
+ default: f(() => [P(nn, {
2602
2604
  "model-value": e.block.spacing,
2603
2605
  min: 0,
2604
2606
  max: 50,
@@ -2612,11 +2614,11 @@ var Da = {
2612
2614
  });
2613
2615
  //#endregion
2614
2616
  //#region src/utils/rebalanceColumnChildren.ts
2615
- function bo(e) {
2617
+ function So(e) {
2616
2618
  return e === "1" ? 1 : e === "3" ? 3 : 2;
2617
2619
  }
2618
- function xo(e, t) {
2619
- let n = bo(t);
2620
+ function Co(e, t) {
2621
+ let n = So(t);
2620
2622
  if (e.length === n) return e;
2621
2623
  if (e.length < n) {
2622
2624
  let t = Array.from({ length: n - e.length }, () => []);
@@ -2627,13 +2629,13 @@ function xo(e, t) {
2627
2629
  }
2628
2630
  //#endregion
2629
2631
  //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
2630
- var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2632
+ var wo = { class: "tpl:mb-3.5" }, To = ["value"], Eo = ["value"], Do = {
2631
2633
  key: 0,
2632
2634
  class: "tpl:mb-3.5"
2633
- }, Eo = { class: "tpl:mb-3.5" }, Do = { class: "tpl:flex tpl:items-stretch" }, Oo = ["value"], ko = { class: "tpl:mb-3.5" }, Ao = {
2635
+ }, Oo = { class: "tpl:mb-3.5" }, ko = { class: "tpl:flex tpl:items-stretch" }, Ao = ["value"], jo = { class: "tpl:mb-3.5" }, Mo = {
2634
2636
  key: 0,
2635
2637
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
2636
- }, jo = { class: "tpl:flex tpl:items-stretch" }, Mo = ["value"], No = /* @__PURE__ */ N({
2638
+ }, No = { class: "tpl:flex tpl:items-stretch" }, Po = ["value"], Fo = /* @__PURE__ */ N({
2637
2639
  __name: "SectionToolbar",
2638
2640
  props: { block: {} },
2639
2641
  emits: ["update"],
@@ -2661,7 +2663,7 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2661
2663
  }
2662
2664
  ]);
2663
2665
  function o(e) {
2664
- let t = e.target.value, i = xo(n.block.children, t);
2666
+ let t = e.target.value, i = Co(n.block.children, t);
2665
2667
  r("update", {
2666
2668
  columns: t,
2667
2669
  children: i
@@ -2695,39 +2697,39 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2695
2697
  f({ borderRadius: Number(e.target.value) });
2696
2698
  }
2697
2699
  return (t, n) => (s(), y(j, null, [
2698
- D("div", So, [D("label", { class: E(x(q)) }, _(x(i).section.columns), 3), D("select", {
2700
+ D("div", wo, [D("label", { class: E(x(q)) }, _(x(i).section.columns), 3), D("select", {
2699
2701
  class: E(x(K)),
2700
2702
  value: e.block.columns,
2701
2703
  onChange: o
2702
2704
  }, [(s(!0), y(j, null, u(a.value, (e) => (s(), y("option", {
2703
2705
  key: e.value,
2704
2706
  value: e.value
2705
- }, _(e.label), 9, wo))), 128))], 42, Co)]),
2706
- e.block.columns === "1" ? b("", !0) : (s(), y("div", To, [P(Z, {
2707
+ }, _(e.label), 9, Eo))), 128))], 42, To)]),
2708
+ e.block.columns === "1" ? b("", !0) : (s(), y("div", Do, [P(Z, {
2707
2709
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2708
2710
  "model-value": e.block.stackOnMobile !== !1,
2709
2711
  label: x(i).section.stackOnMobile,
2710
2712
  "onUpdate:modelValue": n[0] ||= (e) => c(e)
2711
2713
  }, null, 8, ["model-value", "label"])])),
2712
- D("div", Eo, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", Do, [D("input", {
2714
+ D("div", Oo, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", ko, [D("input", {
2713
2715
  type: "number",
2714
2716
  class: E(x(Y)),
2715
2717
  value: e.block.borderRadius ?? 0,
2716
2718
  min: "0",
2717
2719
  max: "50",
2718
2720
  onInput: l
2719
- }, null, 42, Oo), D("span", { class: E(x(J)) }, "px", 2)])]),
2720
- D("div", ko, [P(Z, {
2721
+ }, null, 42, Ao), D("span", { class: E(x(J)) }, "px", 2)])]),
2722
+ D("div", jo, [P(Z, {
2721
2723
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2722
2724
  "model-value": !!e.block.wrapper,
2723
2725
  label: x(i).section.wrapperEnable,
2724
2726
  "onUpdate:modelValue": n[1] ||= (e) => d(e)
2725
- }, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), y("div", Ao, [
2727
+ }, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), y("div", Mo, [
2726
2728
  D("div", null, [D("label", { class: E(x(q)) }, _(x(i).blockSettings.color), 3), P(X, {
2727
2729
  "model-value": e.block.wrapper.backgroundColor ?? "",
2728
2730
  "onUpdate:modelValue": n[2] ||= (e) => f({ backgroundColor: e })
2729
2731
  }, null, 8, ["model-value"])]),
2730
- P(Mi, {
2732
+ P(Pi, {
2731
2733
  label: x(i).blockSettings.padding,
2732
2734
  "model-value": e.block.wrapper.padding ?? {
2733
2735
  top: 0,
@@ -2737,18 +2739,18 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2737
2739
  },
2738
2740
  "onUpdate:modelValue": p
2739
2741
  }, null, 8, ["label", "model-value"]),
2740
- D("div", null, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", jo, [D("input", {
2742
+ D("div", null, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", No, [D("input", {
2741
2743
  type: "number",
2742
2744
  class: E(x(Y)),
2743
2745
  value: e.block.wrapper.borderRadius ?? 0,
2744
2746
  min: "0",
2745
2747
  max: "50",
2746
2748
  onInput: m
2747
- }, null, 42, Mo), D("span", { class: E(x(J)) }, "px", 2)])])
2749
+ }, null, 42, Po), D("span", { class: E(x(J)) }, "px", 2)])])
2748
2750
  ])) : b("", !0)])
2749
2751
  ], 64));
2750
2752
  }
2751
- }), Po = { class: "tpl:mb-3.5" }, Fo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Io = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Lo = ["value", "onChange"], Ro = ["value"], zo = ["title", "onClick"], Bo = { class: "tpl:mb-3.5" }, Vo = ["value"], Ho = { value: "solid" }, Uo = { value: "outlined" }, Wo = { value: "rounded" }, Go = { value: "square" }, Ko = { value: "circle" }, qo = { class: "tpl:mb-3.5" }, Jo = { class: "tpl:mb-3.5" }, Yo = { class: "tpl:flex tpl:items-stretch" }, Xo = ["value"], Zo = { class: "tpl:mb-3.5" }, Qo = /* @__PURE__ */ N({
2753
+ }), Io = { class: "tpl:mb-3.5" }, Lo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ro = { class: "tpl:flex tpl:items-center tpl:gap-2" }, zo = ["value", "onChange"], Bo = ["value"], Vo = ["title", "onClick"], Ho = { class: "tpl:mb-3.5" }, Uo = ["value"], Wo = { value: "solid" }, Go = { value: "outlined" }, Ko = { value: "rounded" }, qo = { value: "square" }, Jo = { value: "circle" }, Yo = { class: "tpl:mb-3.5" }, Xo = { class: "tpl:mb-3.5" }, Zo = { class: "tpl:flex tpl:items-stretch" }, Qo = ["value"], $o = { class: "tpl:mb-3.5" }, es = /* @__PURE__ */ N({
2752
2754
  __name: "SocialToolbar",
2753
2755
  props: { block: {} },
2754
2756
  emits: ["update"],
@@ -2776,10 +2778,10 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2776
2778
  r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2777
2779
  }
2778
2780
  return (t, n) => (s(), y(j, null, [
2779
- D("div", Po, [D("label", { class: E(x(q)) }, _(x(i).social.icons), 3), D("div", Fo, [(s(!0), y(j, null, u(e.block.icons, (e) => (s(), y("div", {
2781
+ D("div", Io, [D("label", { class: E(x(q)) }, _(x(i).social.icons), 3), D("div", Lo, [(s(!0), y(j, null, u(e.block.icons, (e) => (s(), y("div", {
2780
2782
  key: e.id,
2781
2783
  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"
2782
- }, [D("div", Io, [D("select", {
2784
+ }, [D("div", Ro, [D("select", {
2783
2785
  "data-testid": "social-platform-select",
2784
2786
  class: E([x(K), "tpl:flex-1"]),
2785
2787
  value: e.platform,
@@ -2787,14 +2789,14 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2787
2789
  }, [(s(!0), y(j, null, u(x(Se), (e) => (s(), y("option", {
2788
2790
  key: e,
2789
2791
  value: e
2790
- }, _(x(i).social.platforms[e]), 9, Ro))), 128))], 42, Lo), D("button", {
2791
- class: E(x(Gt)),
2792
+ }, _(x(i).social.platforms[e]), 9, Bo))), 128))], 42, zo), D("button", {
2793
+ class: E(x(qt)),
2792
2794
  title: x(i).social.removeIcon,
2793
2795
  onClick: (t) => l(e.id)
2794
- }, [P(x(Et), {
2796
+ }, [P(x(Ot), {
2795
2797
  size: 14,
2796
2798
  "stroke-width": 2
2797
- })], 10, zo)]), P($, {
2799
+ })], 10, Vo)]), P($, {
2798
2800
  "model-value": e.url,
2799
2801
  type: "url",
2800
2802
  placeholder: x(i).social.urlPlaceholder,
@@ -2804,24 +2806,24 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2804
2806
  "placeholder",
2805
2807
  "onUpdate:modelValue"
2806
2808
  ])]))), 128)), D("button", {
2807
- class: E(x(Jt)),
2809
+ class: E(x(Xt)),
2808
2810
  onClick: o
2809
2811
  }, [P(x(G), {
2810
2812
  size: 14,
2811
2813
  "stroke-width": 2
2812
2814
  }), M(" " + _(x(i).social.addIcon), 1)], 2)])]),
2813
- D("div", Bo, [D("label", { class: E(x(q)) }, _(x(i).social.style), 3), D("select", {
2815
+ D("div", Ho, [D("label", { class: E(x(q)) }, _(x(i).social.style), 3), D("select", {
2814
2816
  class: E(x(K)),
2815
2817
  value: e.block.iconStyle,
2816
2818
  onChange: n[0] ||= (e) => a("iconStyle", e.target.value)
2817
2819
  }, [
2818
- D("option", Ho, _(x(i).social.styleSolid), 1),
2819
- D("option", Uo, _(x(i).social.styleOutlined), 1),
2820
- D("option", Wo, _(x(i).social.styleRounded), 1),
2821
- D("option", Go, _(x(i).social.styleSquare), 1),
2822
- D("option", Ko, _(x(i).social.styleCircle), 1)
2823
- ], 42, Vo)]),
2824
- D("div", qo, [D("label", { class: E(x(q)) }, _(x(i).social.size), 3), P($t, {
2820
+ D("option", Wo, _(x(i).social.styleSolid), 1),
2821
+ D("option", Go, _(x(i).social.styleOutlined), 1),
2822
+ D("option", Ko, _(x(i).social.styleRounded), 1),
2823
+ D("option", qo, _(x(i).social.styleSquare), 1),
2824
+ D("option", Jo, _(x(i).social.styleCircle), 1)
2825
+ ], 42, Uo)]),
2826
+ D("div", Yo, [D("label", { class: E(x(q)) }, _(x(i).social.size), 3), P(tn, {
2825
2827
  options: [
2826
2828
  {
2827
2829
  value: "small",
@@ -2839,30 +2841,30 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2839
2841
  "model-value": e.block.iconSize,
2840
2842
  "onUpdate:modelValue": n[1] ||= (e) => a("iconSize", e)
2841
2843
  }, null, 8, ["options", "model-value"])]),
2842
- D("div", Jo, [D("label", { class: E(x(q)) }, _(x(i).social.spacing), 3), D("div", Yo, [D("input", {
2844
+ D("div", Xo, [D("label", { class: E(x(q)) }, _(x(i).social.spacing), 3), D("div", Zo, [D("input", {
2843
2845
  type: "number",
2844
2846
  class: E(x(Y)),
2845
2847
  value: e.block.spacing,
2846
2848
  min: "0",
2847
2849
  max: "50",
2848
2850
  onInput: n[2] ||= (e) => a("spacing", Number(e.target.value))
2849
- }, null, 42, Xo), D("span", { class: E(x(J)) }, "px", 2)])]),
2850
- D("div", Zo, [D("label", { class: E(x(q)) }, _(x(i).social.align), 3), P($t, {
2851
+ }, null, 42, Qo), D("span", { class: E(x(J)) }, "px", 2)])]),
2852
+ D("div", $o, [D("label", { class: E(x(q)) }, _(x(i).social.align), 3), P(tn, {
2851
2853
  options: [
2852
2854
  {
2853
2855
  value: "left",
2854
2856
  label: x(i).title.alignLeft,
2855
- icon: x(kt)
2857
+ icon: x(Dt)
2856
2858
  },
2857
2859
  {
2858
2860
  value: "center",
2859
2861
  label: x(i).title.alignCenter,
2860
- icon: x(wt)
2862
+ icon: x(bt)
2861
2863
  },
2862
2864
  {
2863
2865
  value: "right",
2864
2866
  label: x(i).title.alignRight,
2865
- icon: x(Tt)
2867
+ icon: x(xt)
2866
2868
  }
2867
2869
  ],
2868
2870
  "model-value": e.block.align,
@@ -2870,22 +2872,22 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2870
2872
  }, null, 8, ["options", "model-value"])])
2871
2873
  ], 64));
2872
2874
  }
2873
- }), $o = { class: "tpl:mb-3.5" }, es = { class: "tpl:flex tpl:items-stretch" }, ts = ["value"], ns = ["value"], rs = /* @__PURE__ */ N({
2875
+ }), ts = { class: "tpl:mb-3.5" }, ns = { class: "tpl:flex tpl:items-stretch" }, rs = ["value"], is = ["value"], as = /* @__PURE__ */ N({
2874
2876
  __name: "SpacerToolbar",
2875
2877
  props: { block: {} },
2876
2878
  emits: ["update"],
2877
2879
  setup(e, { emit: t }) {
2878
2880
  let n = t, { t: r } = W();
2879
- return (t, i) => (s(), y("div", $o, [
2881
+ return (t, i) => (s(), y("div", ts, [
2880
2882
  D("label", { class: E(x(q)) }, _(x(r).spacer.height), 3),
2881
- D("div", es, [D("input", {
2883
+ D("div", ns, [D("input", {
2882
2884
  type: "number",
2883
2885
  class: E(x(Y)),
2884
2886
  value: e.block.height,
2885
2887
  min: "10",
2886
2888
  max: "100",
2887
2889
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
2888
- }, null, 42, ts), D("span", { class: E(x(J)) }, "px", 2)]),
2890
+ }, null, 42, rs), D("span", { class: E(x(J)) }, "px", 2)]),
2889
2891
  D("input", {
2890
2892
  type: "range",
2891
2893
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -2893,13 +2895,13 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2893
2895
  min: "10",
2894
2896
  max: "100",
2895
2897
  onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
2896
- }, null, 40, ns)
2898
+ }, null, 40, is)
2897
2899
  ]));
2898
2900
  }
2899
- }), is = { class: "tpl:mb-3.5" }, as = { class: "tpl:flex tpl:items-center tpl:gap-3" }, os = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ss = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, cs = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ls = ["disabled"], us = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ds = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, fs = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ps = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ms = ["disabled"], hs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, gs = { class: "tpl:mb-3.5" }, _s = {
2901
+ }), os = { class: "tpl:mb-3.5" }, ss = { class: "tpl:flex tpl:items-center tpl:gap-3" }, cs = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ls = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, us = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ds = ["disabled"], fs = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, 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:mb-3.5" }, ys = {
2900
2902
  key: 0,
2901
2903
  class: "tpl:mb-3.5"
2902
- }, vs = { class: "tpl:mb-3.5" }, ys = { class: "tpl:mb-3.5" }, bs = { class: "tpl:flex tpl:items-stretch" }, xs = ["value"], Ss = { class: "tpl:mb-3.5" }, Cs = { class: "tpl:flex tpl:items-stretch" }, ws = ["value"], Ts = { class: "tpl:mb-3.5" }, Es = ["value"], Ds = { value: "" }, Os = ["value"], ks = { class: "tpl:mb-3.5" }, As = { class: "tpl:flex tpl:items-stretch" }, js = ["value"], Ms = { class: "tpl:mb-3.5" }, Ns = { class: "tpl:mb-3.5" }, Ps = /* @__PURE__ */ N({
2904
+ }, bs = { class: "tpl:mb-3.5" }, xs = { class: "tpl:mb-3.5" }, Ss = { class: "tpl:flex tpl:items-stretch" }, Cs = ["value"], ws = { class: "tpl:mb-3.5" }, Ts = { class: "tpl:flex tpl:items-stretch" }, Es = ["value"], Ds = { class: "tpl:mb-3.5" }, Os = ["value"], ks = { value: "" }, As = ["value"], js = { class: "tpl:mb-3.5" }, Ms = { class: "tpl:flex tpl:items-stretch" }, Ns = ["value"], Ps = { class: "tpl:mb-3.5" }, Fs = { class: "tpl:mb-3.5" }, Is = /* @__PURE__ */ N({
2903
2905
  __name: "TableToolbar",
2904
2906
  props: {
2905
2907
  block: {},
@@ -2942,16 +2944,16 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2942
2944
  r("update", { rows: t });
2943
2945
  }
2944
2946
  return (t, n) => (s(), y(j, null, [
2945
- D("div", is, [D("label", { class: E(x(q)) }, _(x(i).table.dimensions), 3), D("div", as, [D("div", os, [D("span", ss, _(x(i).table.rows), 1), D("div", cs, [
2947
+ D("div", os, [D("label", { class: E(x(q)) }, _(x(i).table.dimensions), 3), D("div", ss, [D("div", cs, [D("span", ls, _(x(i).table.rows), 1), D("div", us, [
2946
2948
  D("button", {
2947
2949
  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",
2948
2950
  disabled: e.block.rows.length <= 1,
2949
2951
  onClick: n[0] ||= (t) => l(e.block.rows[e.block.rows.length - 1].id)
2950
- }, [P(x(et), {
2952
+ }, [P(x(vt), {
2951
2953
  size: 12,
2952
2954
  "stroke-width": 2
2953
- })], 8, ls),
2954
- D("span", us, _(e.block.rows.length), 1),
2955
+ })], 8, ds),
2956
+ D("span", fs, _(e.block.rows.length), 1),
2955
2957
  D("button", {
2956
2958
  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)]",
2957
2959
  onClick: c
@@ -2959,16 +2961,16 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2959
2961
  size: 12,
2960
2962
  "stroke-width": 2
2961
2963
  })])
2962
- ])]), D("div", ds, [D("span", fs, _(x(i).table.columns), 1), D("div", ps, [
2964
+ ])]), D("div", ps, [D("span", ms, _(x(i).table.columns), 1), D("div", hs, [
2963
2965
  D("button", {
2964
2966
  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",
2965
2967
  disabled: a.value <= 1,
2966
2968
  onClick: n[1] ||= (e) => f(a.value - 1)
2967
- }, [P(x(et), {
2969
+ }, [P(x(vt), {
2968
2970
  size: 12,
2969
2971
  "stroke-width": 2
2970
- })], 8, ms),
2971
- D("span", hs, _(a.value), 1),
2972
+ })], 8, gs),
2973
+ D("span", _s, _(a.value), 1),
2972
2974
  D("button", {
2973
2975
  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)]",
2974
2976
  onClick: d
@@ -2977,15 +2979,15 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2977
2979
  "stroke-width": 2
2978
2980
  })])
2979
2981
  ])])])]),
2980
- D("div", gs, [P(Z, {
2982
+ D("div", vs, [P(Z, {
2981
2983
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
2982
2984
  "model-value": e.block.hasHeaderRow,
2983
2985
  label: x(i).table.hasHeaderRow,
2984
2986
  "onUpdate:modelValue": n[2] ||= (e) => o("hasHeaderRow", e)
2985
2987
  }, null, 8, ["model-value", "label"])]),
2986
- e.block.hasHeaderRow ? (s(), y("div", _s, [D("label", { class: E(x(q)) }, _(x(i).table.headerBackgroundColor), 3), P(X, {
2988
+ e.block.hasHeaderRow ? (s(), y("div", ys, [D("label", { class: E(x(q)) }, _(x(i).table.headerBackgroundColor), 3), P(X, {
2987
2989
  "model-value": e.block.headerBackgroundColor ?? "",
2988
- "seed-color": x(qt),
2990
+ "seed-color": x(Yt),
2989
2991
  placeholder: x(i).table.noHeaderBg,
2990
2992
  "onUpdate:modelValue": n[3] ||= (e) => o("headerBackgroundColor", e || null)
2991
2993
  }, null, 8, [
@@ -2993,62 +2995,62 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
2993
2995
  "seed-color",
2994
2996
  "placeholder"
2995
2997
  ])])) : b("", !0),
2996
- D("div", vs, [D("label", { class: E(x(q)) }, _(x(i).table.borderColor), 3), P(X, {
2998
+ D("div", bs, [D("label", { class: E(x(q)) }, _(x(i).table.borderColor), 3), P(X, {
2997
2999
  "model-value": e.block.borderColor,
2998
3000
  "onUpdate:modelValue": n[4] ||= (e) => o("borderColor", e)
2999
3001
  }, null, 8, ["model-value"])]),
3000
- D("div", ys, [D("label", { class: E(x(q)) }, _(x(i).table.borderWidth), 3), D("div", bs, [D("input", {
3002
+ D("div", xs, [D("label", { class: E(x(q)) }, _(x(i).table.borderWidth), 3), D("div", Ss, [D("input", {
3001
3003
  type: "number",
3002
3004
  class: E(x(Y)),
3003
3005
  value: e.block.borderWidth,
3004
3006
  min: "0",
3005
3007
  max: "10",
3006
3008
  onInput: n[5] ||= (e) => o("borderWidth", Number(e.target.value))
3007
- }, null, 42, xs), D("span", { class: E(x(J)) }, "px", 2)])]),
3008
- D("div", Ss, [D("label", { class: E(x(q)) }, _(x(i).table.cellPadding), 3), D("div", Cs, [D("input", {
3009
+ }, null, 42, Cs), D("span", { class: E(x(J)) }, "px", 2)])]),
3010
+ D("div", ws, [D("label", { class: E(x(q)) }, _(x(i).table.cellPadding), 3), D("div", Ts, [D("input", {
3009
3011
  type: "number",
3010
3012
  class: E(x(Y)),
3011
3013
  value: e.block.cellPadding,
3012
3014
  min: "0",
3013
3015
  max: "30",
3014
3016
  onInput: n[6] ||= (e) => o("cellPadding", Number(e.target.value))
3015
- }, null, 42, ws), D("span", { class: E(x(J)) }, "px", 2)])]),
3016
- D("div", Ts, [D("label", { class: E(x(q)) }, _(x(i).table.fontFamily), 3), D("select", {
3017
+ }, null, 42, Es), D("span", { class: E(x(J)) }, "px", 2)])]),
3018
+ D("div", Ds, [D("label", { class: E(x(q)) }, _(x(i).table.fontFamily), 3), D("select", {
3017
3019
  class: E(x(K)),
3018
3020
  value: e.block.fontFamily || "",
3019
3021
  onChange: n[7] ||= (e) => o("fontFamily", e.target.value || void 0)
3020
- }, [D("option", Ds, _(x(i).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
3022
+ }, [D("option", ks, _(x(i).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
3021
3023
  key: e.value,
3022
3024
  value: e.value
3023
- }, _(e.label), 9, Os))), 128))], 42, Es)]),
3024
- D("div", ks, [D("label", { class: E(x(q)) }, _(x(i).table.fontSize), 3), D("div", As, [D("input", {
3025
+ }, _(e.label), 9, As))), 128))], 42, Os)]),
3026
+ D("div", js, [D("label", { class: E(x(q)) }, _(x(i).table.fontSize), 3), D("div", Ms, [D("input", {
3025
3027
  type: "number",
3026
3028
  class: E(x(Y)),
3027
3029
  value: e.block.fontSize,
3028
3030
  min: "10",
3029
3031
  max: "32",
3030
3032
  onInput: n[8] ||= (e) => o("fontSize", Number(e.target.value))
3031
- }, null, 42, js), D("span", { class: E(x(J)) }, "px", 2)])]),
3032
- D("div", Ms, [D("label", { class: E(x(q)) }, _(x(i).table.color), 3), P(X, {
3033
+ }, null, 42, Ns), D("span", { class: E(x(J)) }, "px", 2)])]),
3034
+ D("div", Ps, [D("label", { class: E(x(q)) }, _(x(i).table.color), 3), P(X, {
3033
3035
  "model-value": e.block.color ?? "",
3034
3036
  "onUpdate:modelValue": n[9] ||= (e) => o("color", e || void 0)
3035
3037
  }, null, 8, ["model-value"])]),
3036
- D("div", Ns, [D("label", { class: E(x(q)) }, _(x(i).table.textAlign), 3), P($t, {
3038
+ D("div", Fs, [D("label", { class: E(x(q)) }, _(x(i).table.textAlign), 3), P(tn, {
3037
3039
  options: [
3038
3040
  {
3039
3041
  value: "left",
3040
3042
  label: x(i).title.alignLeft,
3041
- icon: x(kt)
3043
+ icon: x(Dt)
3042
3044
  },
3043
3045
  {
3044
3046
  value: "center",
3045
3047
  label: x(i).title.alignCenter,
3046
- icon: x(wt)
3048
+ icon: x(bt)
3047
3049
  },
3048
3050
  {
3049
3051
  value: "right",
3050
3052
  label: x(i).title.alignRight,
3051
- icon: x(Tt)
3053
+ icon: x(xt)
3052
3054
  }
3053
3055
  ],
3054
3056
  "model-value": e.block.textAlign,
@@ -3056,7 +3058,7 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3056
3058
  }, null, 8, ["options", "model-value"])])
3057
3059
  ], 64));
3058
3060
  }
3059
- }), Fs = { class: "tpl:mb-3.5" }, Is = ["value"], Ls = { value: 1 }, Rs = { value: 2 }, zs = { value: 3 }, Bs = { value: 4 }, Vs = { class: "tpl:mb-3.5" }, Hs = ["value"], Us = { value: "" }, Ws = ["value"], Gs = { class: "tpl:mb-3.5" }, Ks = { class: "tpl:mb-3.5" }, qs = /* @__PURE__ */ N({
3061
+ }), Ls = { class: "tpl:mb-3.5" }, Rs = ["value"], zs = { value: 1 }, Bs = { value: 2 }, Vs = { value: 3 }, Hs = { value: 4 }, Us = { class: "tpl:mb-3.5" }, Ws = ["value"], Gs = { value: "" }, Ks = ["value"], qs = { class: "tpl:mb-3.5" }, Js = { class: "tpl:mb-3.5" }, Ys = /* @__PURE__ */ N({
3060
3062
  __name: "TitleToolbar",
3061
3063
  props: {
3062
3064
  block: {},
@@ -3069,44 +3071,44 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3069
3071
  n("update", { [e]: t });
3070
3072
  }
3071
3073
  return (t, n) => (s(), y(j, null, [
3072
- D("div", Fs, [D("label", { class: E(x(q)) }, _(x(r).title.level), 3), D("select", {
3074
+ D("div", Ls, [D("label", { class: E(x(q)) }, _(x(r).title.level), 3), D("select", {
3073
3075
  class: E(x(K)),
3074
3076
  value: e.block.level,
3075
3077
  onChange: n[0] ||= (e) => i("level", Number(e.target.value))
3076
3078
  }, [
3077
- D("option", Ls, _(x(r).title.heading1), 1),
3078
- D("option", Rs, _(x(r).title.heading2), 1),
3079
- D("option", zs, _(x(r).title.heading3), 1),
3080
- D("option", Bs, _(x(r).title.heading4), 1)
3081
- ], 42, Is)]),
3082
- D("div", Vs, [D("label", { class: E(x(q)) }, _(x(r).title.fontFamily), 3), D("select", {
3079
+ D("option", zs, _(x(r).title.heading1), 1),
3080
+ D("option", Bs, _(x(r).title.heading2), 1),
3081
+ D("option", Vs, _(x(r).title.heading3), 1),
3082
+ D("option", Hs, _(x(r).title.heading4), 1)
3083
+ ], 42, Rs)]),
3084
+ D("div", Us, [D("label", { class: E(x(q)) }, _(x(r).title.fontFamily), 3), D("select", {
3083
3085
  class: E(x(K)),
3084
3086
  value: e.block.fontFamily || "",
3085
3087
  onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
3086
- }, [D("option", Us, _(x(r).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
3088
+ }, [D("option", Gs, _(x(r).title.inheritFont), 1), (s(!0), y(j, null, u(e.fontFamilies, (e) => (s(), y("option", {
3087
3089
  key: e.value,
3088
3090
  value: e.value
3089
- }, _(e.label), 9, Ws))), 128))], 42, Hs)]),
3090
- D("div", Gs, [D("label", { class: E(x(q)) }, _(x(r).title.color), 3), P(X, {
3091
+ }, _(e.label), 9, Ks))), 128))], 42, Ws)]),
3092
+ D("div", qs, [D("label", { class: E(x(q)) }, _(x(r).title.color), 3), P(X, {
3091
3093
  "model-value": e.block.color ?? "",
3092
3094
  "onUpdate:modelValue": n[2] ||= (e) => i("color", e || void 0)
3093
3095
  }, null, 8, ["model-value"])]),
3094
- D("div", Ks, [D("label", { class: E(x(q)) }, _(x(r).title.align), 3), P($t, {
3096
+ D("div", Js, [D("label", { class: E(x(q)) }, _(x(r).title.align), 3), P(tn, {
3095
3097
  options: [
3096
3098
  {
3097
3099
  value: "left",
3098
3100
  label: x(r).title.alignLeft,
3099
- icon: x(kt)
3101
+ icon: x(Dt)
3100
3102
  },
3101
3103
  {
3102
3104
  value: "center",
3103
3105
  label: x(r).title.alignCenter,
3104
- icon: x(wt)
3106
+ icon: x(bt)
3105
3107
  },
3106
3108
  {
3107
3109
  value: "right",
3108
3110
  label: x(r).title.alignRight,
3109
- icon: x(Tt)
3111
+ icon: x(xt)
3110
3112
  }
3111
3113
  ],
3112
3114
  "model-value": e.block.textAlign,
@@ -3114,19 +3116,19 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3114
3116
  }, null, 8, ["options", "model-value"])])
3115
3117
  ], 64));
3116
3118
  }
3117
- }), Js = { class: "tpl:mb-3.5" }, Ys = {
3119
+ }), Xs = { class: "tpl:mb-3.5" }, Zs = {
3118
3120
  key: 0,
3119
3121
  class: "tpl:mb-3.5"
3120
- }, Xs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Zs = [
3122
+ }, Qs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, $s = [
3121
3123
  "value",
3122
3124
  "placeholder",
3123
3125
  "title"
3124
- ], Qs = { class: "tpl:mb-3.5" }, $s = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ec = { class: "tpl:mb-3.5" }, tc = { class: "tpl:mb-3.5" }, nc = ["value"], rc = { value: "full" }, ic = { class: "tpl:mb-3.5" }, ac = /* @__PURE__ */ N({
3126
+ ], ec = { class: "tpl:mb-3.5" }, tc = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, nc = { class: "tpl:mb-3.5" }, rc = { class: "tpl:mb-3.5" }, ic = ["value"], ac = { value: "full" }, oc = { class: "tpl:mb-3.5" }, sc = /* @__PURE__ */ N({
3125
3127
  __name: "VideoToolbar",
3126
3128
  props: { block: {} },
3127
3129
  emits: ["update"],
3128
3130
  setup(e, { emit: t }) {
3129
- let n = e, r = t, { t: i } = W(), a = d(Ae, null), o = d(Ie, ee.liquid), c = Bt(), l = v(() => !!a), u = v(() => H(n.block.url, o)), f = m(!1), { start: p } = Oe(() => {
3131
+ let n = e, r = t, { t: i } = W(), a = d(We, null), o = d(Ge, B.liquid), c = Ht(), l = v(() => !!a), u = v(() => V(n.block.url, o)), f = m(!1), { start: p } = Oe(() => {
3130
3132
  f.value = !1;
3131
3133
  }, 1e3, { immediate: !1 });
3132
3134
  function h(e, t) {
@@ -3137,7 +3139,7 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3137
3139
  c.alive && e && (h("thumbnailUrl", e.url), f.value = !0, p());
3138
3140
  }
3139
3141
  return (t, n) => (s(), y(j, null, [
3140
- D("div", Js, [
3142
+ D("div", Xs, [
3141
3143
  D("label", { class: E(x(q)) }, _(x(i).video.videoUrl), 3),
3142
3144
  P($, {
3143
3145
  "model-value": e.block.url,
@@ -3153,16 +3155,16 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3153
3155
  "onUpdate:modelValue": n[1] ||= (e) => h("openInNewTab", e)
3154
3156
  }, null, 8, ["model-value", "label"])) : b("", !0)
3155
3157
  ]),
3156
- u.value ? (s(), y("div", Ys, [D("label", { class: E(x(q)) }, [M(_(x(i).video.placeholderUrl) + " ", 1), D("span", Xs, _(x(i).video.optional), 1)], 2), D("input", {
3158
+ u.value ? (s(), y("div", Zs, [D("label", { class: E(x(q)) }, [M(_(x(i).video.placeholderUrl) + " ", 1), D("span", Qs, _(x(i).video.optional), 1)], 2), D("input", {
3157
3159
  type: "url",
3158
3160
  class: E(x(K)),
3159
3161
  value: e.block.placeholderUrl || "",
3160
3162
  placeholder: x(i).video.placeholderUrlPlaceholder,
3161
3163
  title: x(i).video.placeholderUrlTooltip,
3162
3164
  onInput: n[2] ||= (e) => h("placeholderUrl", e.target.value)
3163
- }, null, 42, Zs)])) : b("", !0),
3164
- D("div", Qs, [
3165
- D("label", { class: E(x(q)) }, [M(_(x(i).video.customThumbnail) + " ", 1), D("span", $s, _(x(i).video.optional), 1)], 2),
3165
+ }, null, 42, $s)])) : b("", !0),
3166
+ D("div", ec, [
3167
+ D("label", { class: E(x(q)) }, [M(_(x(i).video.customThumbnail) + " ", 1), D("span", tc, _(x(i).video.optional), 1)], 2),
3166
3168
  P($, {
3167
3169
  "model-value": e.block.thumbnailUrl,
3168
3170
  type: "url",
@@ -3183,28 +3185,28 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3183
3185
  "background-color": "var(--tpl-bg)"
3184
3186
  },
3185
3187
  onClick: g
3186
- }, [P(x(xt), {
3188
+ }, [P(x(yt), {
3187
3189
  size: 14,
3188
3190
  "stroke-width": 1.5
3189
3191
  }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
3190
3192
  ]),
3191
- D("div", ec, [D("label", { class: E(x(q)) }, _(x(i).video.altText), 3), P($, {
3193
+ D("div", nc, [D("label", { class: E(x(q)) }, _(x(i).video.altText), 3), P($, {
3192
3194
  "model-value": e.block.alt,
3193
3195
  type: "text",
3194
3196
  placeholder: x(i).video.altTextPlaceholder,
3195
3197
  "onUpdate:modelValue": n[4] ||= (e) => h("alt", e)
3196
3198
  }, null, 8, ["model-value", "placeholder"])]),
3197
- D("div", tc, [D("label", { class: E(x(q)) }, _(x(i).video.width), 3), D("select", {
3199
+ D("div", rc, [D("label", { class: E(x(q)) }, _(x(i).video.width), 3), D("select", {
3198
3200
  class: E(x(K)),
3199
3201
  value: e.block.width,
3200
3202
  onChange: n[5] ||= (e) => h("width", e.target.value === "full" ? "full" : Number(e.target.value))
3201
3203
  }, [
3202
- D("option", rc, _(x(i).video.fullWidth), 1),
3204
+ D("option", ac, _(x(i).video.fullWidth), 1),
3203
3205
  n[7] ||= D("option", { value: "300" }, "300px", -1),
3204
3206
  n[8] ||= D("option", { value: "400" }, "400px", -1),
3205
3207
  n[9] ||= D("option", { value: "500" }, "500px", -1)
3206
- ], 42, nc)]),
3207
- D("div", ic, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P($t, {
3208
+ ], 42, ic)]),
3209
+ D("div", oc, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P(tn, {
3208
3210
  options: [
3209
3211
  {
3210
3212
  value: "left",
@@ -3224,7 +3226,7 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3224
3226
  }, null, 8, ["options", "model-value"])])
3225
3227
  ], 64));
3226
3228
  }
3227
- }), oc = ["aria-label"], sc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, cc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, lc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, uc = { class: "tpl:flex tpl:gap-1" }, dc = ["title"], fc = ["title"], pc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, mc = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
3229
+ }), cc = ["aria-label"], lc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, uc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, dc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, fc = { class: "tpl:flex tpl:gap-1" }, pc = ["title"], mc = ["title"], hc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, gc = /*#__PURE__*/ zt(/* @__PURE__ */ N({
3228
3230
  __name: "Toolbar",
3229
3231
  props: { block: {} },
3230
3232
  emits: [
@@ -3233,7 +3235,7 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3233
3235
  "duplicate"
3234
3236
  ],
3235
3237
  setup(e, { emit: t }) {
3236
- let n = h(() => import("./CountdownToolbar-DAnmIZjq.js")), r = e, i = t, { t: a } = W(), c = je(ze, "Toolbar"), l = d(He, []), u = v(() => r.block.type), f = v(() => L(r.block)), p = v(() => {
3238
+ let n = h(() => import("./CountdownToolbar-CdV8RTQu.js")), r = e, i = t, { t: a } = W(), c = Ne(ze, "Toolbar"), l = d(He, []), u = v(() => r.block.type), f = v(() => re(r.block)), p = v(() => {
3237
3239
  if (f.value) return l.find((e) => e.type === r.block.customType);
3238
3240
  }), m = v(() => f.value ? p.value?.name ?? r.block.customType : se(u.value, a)), g = c.fonts;
3239
3241
  function S(e) {
@@ -3242,7 +3244,7 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3242
3244
  return (t, r) => (s(), y("aside", {
3243
3245
  "aria-label": x(a).landmarks.blockToolbar,
3244
3246
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
3245
- }, [D("div", sc, [D("div", cc, [x(Wt)[u.value] ? (s(), C(o(x(Wt)[u.value]), {
3247
+ }, [D("div", lc, [D("div", uc, [x(Kt)[u.value] ? (s(), C(o(x(Kt)[u.value]), {
3246
3248
  key: 0,
3247
3249
  size: 16,
3248
3250
  "stroke-width": 1.5
@@ -3250,70 +3252,70 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3250
3252
  key: 1,
3251
3253
  size: 16,
3252
3254
  "stroke-width": 1.5
3253
- })) : b("", !0), D("h3", lc, _(m.value), 1)]), D("div", uc, [D("button", {
3255
+ })) : b("", !0), D("h3", dc, _(m.value), 1)]), D("div", fc, [D("button", {
3254
3256
  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)]",
3255
3257
  title: x(a).toolbar.duplicate,
3256
3258
  onClick: r[0] ||= (e) => i("duplicate")
3257
- }, [P(x(It), {
3259
+ }, [P(x(pt), {
3258
3260
  size: 14,
3259
3261
  "stroke-width": 2
3260
- })], 8, dc), D("button", {
3262
+ })], 8, pc), D("button", {
3261
3263
  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)]",
3262
3264
  title: x(a).toolbar.delete,
3263
3265
  onClick: r[1] ||= (e) => i("delete")
3264
- }, [P(x(bt), {
3266
+ }, [P(x(gt), {
3265
3267
  size: 14,
3266
3268
  "stroke-width": 2
3267
- })], 8, fc)])]), D("div", pc, [f.value ? (s(), C(Fa, {
3269
+ })], 8, mc)])]), D("div", hc, [f.value ? (s(), C(La, {
3268
3270
  key: 0,
3269
3271
  block: e.block,
3270
3272
  onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
3271
3273
  onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
3272
- }, null, 8, ["block"])) : u.value === "section" ? (s(), C(No, {
3274
+ }, null, 8, ["block"])) : u.value === "section" ? (s(), C(Fo, {
3273
3275
  key: 1,
3274
3276
  block: e.block,
3275
3277
  onUpdate: S
3276
- }, null, 8, ["block"])) : u.value === "title" ? (s(), C(qs, {
3278
+ }, null, 8, ["block"])) : u.value === "title" ? (s(), C(Ys, {
3277
3279
  key: 2,
3278
3280
  block: e.block,
3279
3281
  "font-families": x(g),
3280
3282
  onUpdate: S
3281
- }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), y(j, { key: 3 }, [], 64)) : u.value === "image" ? (s(), C(so, {
3283
+ }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), y(j, { key: 3 }, [], 64)) : u.value === "image" ? (s(), C(lo, {
3282
3284
  key: 4,
3283
3285
  block: e.block,
3284
3286
  onUpdate: S
3285
- }, null, 8, ["block"])) : u.value === "video" ? (s(), C(ac, {
3287
+ }, null, 8, ["block"])) : u.value === "video" ? (s(), C(sc, {
3286
3288
  key: 5,
3287
3289
  block: e.block,
3288
3290
  onUpdate: S
3289
- }, null, 8, ["block"])) : u.value === "button" ? (s(), C(ci, {
3291
+ }, null, 8, ["block"])) : u.value === "button" ? (s(), C(ui, {
3290
3292
  key: 6,
3291
3293
  block: e.block,
3292
3294
  "font-families": x(g),
3293
3295
  onUpdate: S
3294
- }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), C(Va, {
3296
+ }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), C(Ua, {
3295
3297
  key: 7,
3296
3298
  block: e.block,
3297
3299
  onUpdate: S
3298
- }, null, 8, ["block"])) : u.value === "social" ? (s(), C(Qo, {
3300
+ }, null, 8, ["block"])) : u.value === "social" ? (s(), C(es, {
3299
3301
  key: 8,
3300
3302
  block: e.block,
3301
3303
  onUpdate: S
3302
- }, null, 8, ["block"])) : u.value === "menu" ? (s(), C(yo, {
3304
+ }, null, 8, ["block"])) : u.value === "menu" ? (s(), C(xo, {
3303
3305
  key: 9,
3304
3306
  block: e.block,
3305
3307
  "font-families": x(g),
3306
3308
  onUpdate: S
3307
- }, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), C(Ps, {
3309
+ }, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), C(Is, {
3308
3310
  key: 10,
3309
3311
  block: e.block,
3310
3312
  "font-families": x(g),
3311
3313
  onUpdate: S
3312
- }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), C(rs, {
3314
+ }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), C(as, {
3313
3315
  key: 11,
3314
3316
  block: e.block,
3315
3317
  onUpdate: S
3316
- }, null, 8, ["block"])) : u.value === "html" ? (s(), C(Ga, {
3318
+ }, null, 8, ["block"])) : u.value === "html" ? (s(), C(qa, {
3317
3319
  key: 12,
3318
3320
  block: e.block,
3319
3321
  onUpdate: S
@@ -3322,52 +3324,52 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3322
3324
  block: e.block,
3323
3325
  "font-families": x(g),
3324
3326
  onUpdate: S
3325
- }, null, 8, ["block", "font-families"])) : b("", !0), P($i, {
3327
+ }, null, 8, ["block", "font-families"])) : b("", !0), P(ta, {
3326
3328
  block: e.block,
3327
3329
  "is-first-section": u.value === "paragraph",
3328
3330
  onUpdate: S
3329
- }, null, 8, ["block", "is-first-section"])])], 8, oc));
3331
+ }, null, 8, ["block", "is-first-section"])])], 8, cc));
3330
3332
  }
3331
- }), [["__scopeId", "data-v-2ac88283"]]), hc = ["aria-label"], gc = {
3333
+ }), [["__scopeId", "data-v-2ac88283"]]), _c = ["aria-label"], vc = {
3332
3334
  role: "tablist",
3333
3335
  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"
3334
- }, _c = [
3336
+ }, yc = [
3335
3337
  "aria-selected",
3336
3338
  "aria-label",
3337
3339
  "title"
3338
- ], vc = { key: 0 }, yc = [
3340
+ ], bc = { key: 0 }, xc = [
3339
3341
  "aria-selected",
3340
3342
  "aria-label",
3341
3343
  "title"
3342
- ], bc = { key: 0 }, xc = [
3344
+ ], Sc = { key: 0 }, Cc = [
3343
3345
  "aria-selected",
3344
3346
  "aria-label",
3345
3347
  "title"
3346
- ], Sc = { key: 0 }, Cc = {
3348
+ ], wc = { key: 0 }, Tc = {
3347
3349
  key: 1,
3348
3350
  class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
3349
- }, wc = {
3351
+ }, Ec = {
3350
3352
  key: 0,
3351
3353
  id: "tpl-tabpanel-content",
3352
3354
  role: "tabpanel",
3353
3355
  "aria-labelledby": "tpl-tab-content",
3354
3356
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3355
- }, Tc = {
3357
+ }, Dc = {
3356
3358
  key: 1,
3357
3359
  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)]"
3358
- }, Ec = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, Dc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Oc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, kc = {
3360
+ }, Oc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, kc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ac = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, jc = {
3359
3361
  key: 1,
3360
3362
  id: "tpl-tabpanel-settings",
3361
3363
  role: "tabpanel",
3362
3364
  "aria-labelledby": "tpl-tab-settings",
3363
3365
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3364
- }, Ac = {
3366
+ }, Mc = {
3365
3367
  key: 2,
3366
3368
  id: "tpl-tabpanel-issues",
3367
3369
  role: "tabpanel",
3368
3370
  "aria-labelledby": "tpl-tab-issues",
3369
3371
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3370
- }, jc = /* @__PURE__ */ N({
3372
+ }, Nc = /* @__PURE__ */ N({
3371
3373
  __name: "RightSidebar",
3372
3374
  props: {
3373
3375
  selectedBlock: {},
@@ -3381,7 +3383,7 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3381
3383
  "update-settings"
3382
3384
  ],
3383
3385
  setup(e, { emit: t }) {
3384
- let n = h(() => import("./IssuesPanel-D80JedOj.js")), r = e, i = t, { t: a } = W(), o = m("content"), c = d(Ne, null), l = v(() => c !== null), u = v(() => c?.issues.value.length ?? 0);
3386
+ let n = h(() => import("./IssuesPanel-CkkEnhxZ.js")), r = e, i = t, { t: a } = W(), o = m("content"), c = d(Pe, null), l = v(() => c !== null), u = v(() => c?.issues.value.length ?? 0);
3385
3387
  function f(e) {
3386
3388
  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)]";
3387
3389
  }
@@ -3397,7 +3399,7 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3397
3399
  "aria-label": x(a).landmarks.rightSidebar,
3398
3400
  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"])
3399
3401
  }, [
3400
- D("div", gc, [
3402
+ D("div", vc, [
3401
3403
  D("button", {
3402
3404
  id: "tpl-tab-content",
3403
3405
  role: "tab",
@@ -3408,10 +3410,10 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3408
3410
  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")]),
3409
3411
  style: k(p("content")),
3410
3412
  onClick: r[0] ||= (e) => o.value = "content"
3411
- }, [P(x(lt), {
3413
+ }, [P(x(jt), {
3412
3414
  size: 14,
3413
3415
  "stroke-width": 2
3414
- }), o.value === "content" ? (s(), y("span", vc, _(x(a).sidebar.content), 1)) : b("", !0)], 14, _c),
3416
+ }), o.value === "content" ? (s(), y("span", bc, _(x(a).sidebar.content), 1)) : b("", !0)], 14, yc),
3415
3417
  D("button", {
3416
3418
  id: "tpl-tab-settings",
3417
3419
  role: "tab",
@@ -3422,10 +3424,10 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3422
3424
  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")]),
3423
3425
  style: k(p("settings")),
3424
3426
  onClick: r[1] ||= (e) => o.value = "settings"
3425
- }, [P(x(tt), {
3427
+ }, [P(x(Ct), {
3426
3428
  size: 14,
3427
3429
  "stroke-width": 1.5
3428
- }), o.value === "settings" ? (s(), y("span", bc, _(x(a).sidebar.settings), 1)) : b("", !0)], 14, yc),
3430
+ }), o.value === "settings" ? (s(), y("span", Sc, _(x(a).sidebar.settings), 1)) : b("", !0)], 14, xc),
3429
3431
  l.value ? (s(), y("button", {
3430
3432
  key: 0,
3431
3433
  id: "tpl-tab-issues",
@@ -3438,58 +3440,58 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3438
3440
  style: k(p("issues")),
3439
3441
  onClick: r[2] ||= (e) => o.value = "issues"
3440
3442
  }, [
3441
- P(x(Ot), {
3443
+ P(x(Pt), {
3442
3444
  size: 14,
3443
3445
  "stroke-width": 1.5
3444
3446
  }),
3445
- o.value === "issues" ? (s(), y("span", Sc, _(x(a).issues.panelTabLabel), 1)) : b("", !0),
3446
- u.value > 0 ? (s(), y("span", Cc, _(u.value), 1)) : b("", !0)
3447
- ], 14, xc)) : b("", !0)
3447
+ o.value === "issues" ? (s(), y("span", wc, _(x(a).issues.panelTabLabel), 1)) : b("", !0),
3448
+ u.value > 0 ? (s(), y("span", Tc, _(u.value), 1)) : b("", !0)
3449
+ ], 14, Cc)) : b("", !0)
3448
3450
  ]),
3449
- o.value === "content" ? (s(), y("div", wc, [e.selectedBlock ? (s(), C(mc, {
3451
+ o.value === "content" ? (s(), y("div", Ec, [e.selectedBlock ? (s(), C(gc, {
3450
3452
  key: 0,
3451
3453
  block: e.selectedBlock,
3452
3454
  onUpdate: r[3] ||= (e) => i("update-block", e),
3453
3455
  onDelete: r[4] ||= (e) => i("delete-block"),
3454
3456
  onDuplicate: r[5] ||= (e) => i("duplicate-block")
3455
- }, null, 8, ["block"])) : (s(), y("div", Tc, [
3456
- D("div", Ec, [P(x(yt), {
3457
+ }, null, 8, ["block"])) : (s(), y("div", Dc, [
3458
+ D("div", Oc, [P(x(Et), {
3457
3459
  size: 40,
3458
3460
  "stroke-width": 1.5
3459
3461
  })]),
3460
- D("h3", Dc, _(x(a).sidebar.noSelection), 1),
3461
- D("p", Oc, _(x(a).sidebar.noSelectionHint), 1)
3462
+ D("h3", kc, _(x(a).sidebar.noSelection), 1),
3463
+ D("p", Ac, _(x(a).sidebar.noSelectionHint), 1)
3462
3464
  ]))])) : b("", !0),
3463
- o.value === "settings" ? (s(), y("div", kc, [P(Mr, {
3465
+ o.value === "settings" ? (s(), y("div", jc, [P(Pr, {
3464
3466
  settings: e.settings,
3465
3467
  onUpdate: r[6] ||= (e) => i("update-settings", e)
3466
3468
  }, null, 8, ["settings"])])) : b("", !0),
3467
- o.value === "issues" && l.value ? (s(), y("div", Ac, [P(x(n))])) : b("", !0)
3468
- ], 10, hc));
3469
+ o.value === "issues" && l.value ? (s(), y("div", Mc, [P(x(n))])) : b("", !0)
3470
+ ], 10, _c));
3469
3471
  }
3470
- }), Mc = {
3472
+ }), Pc = {
3471
3473
  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)]",
3472
3474
  style: { "z-index": "10001" },
3473
3475
  role: "status",
3474
3476
  "data-testid": "small-screen-notice"
3475
- }, Nc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Pc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Ic = /* @__PURE__ */ N({
3477
+ }, Fc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Ic = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Lc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Rc = /* @__PURE__ */ N({
3476
3478
  __name: "SmallScreenNotice",
3477
3479
  setup(e) {
3478
3480
  let { t } = W();
3479
- return (e, n) => (s(), y("div", Mc, [
3480
- D("div", Nc, [P(x(mt), {
3481
+ return (e, n) => (s(), y("div", Pc, [
3482
+ D("div", Fc, [P(x(nt), {
3481
3483
  size: 48,
3482
3484
  "stroke-width": 1.5
3483
3485
  })]),
3484
- D("h2", Pc, _(x(t).smallScreen.title), 1),
3485
- D("p", Fc, _(x(t).smallScreen.message), 1)
3486
+ D("h2", Ic, _(x(t).smallScreen.title), 1),
3487
+ D("p", Lc, _(x(t).smallScreen.message), 1)
3486
3488
  ]));
3487
3489
  }
3488
- }), Lc = [
3490
+ }), zc = [
3489
3491
  "aria-label",
3490
3492
  "title",
3491
3493
  "aria-pressed"
3492
- ], Rc = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
3494
+ ], Bc = /*#__PURE__*/ zt(/* @__PURE__ */ N({
3493
3495
  __name: "PreviewToggle",
3494
3496
  props: { previewMode: { type: Boolean } },
3495
3497
  emits: ["change"],
@@ -3512,23 +3514,23 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3512
3514
  "leave-to-class": "tpl-icon-leave-to",
3513
3515
  mode: "out-in"
3514
3516
  }, {
3515
- default: f(() => [e.previewMode ? (s(), C(x(_t), {
3517
+ default: f(() => [e.previewMode ? (s(), C(x(it), {
3516
3518
  key: "eye",
3517
3519
  size: 18,
3518
3520
  "stroke-width": 1.5
3519
- })) : (s(), C(x(it), {
3521
+ })) : (s(), C(x(It), {
3520
3522
  key: "eye-off",
3521
3523
  size: 18,
3522
3524
  "stroke-width": 1.5
3523
3525
  }))]),
3524
3526
  _: 1
3525
- })], 12, Lc));
3527
+ })], 12, zc));
3526
3528
  }
3527
- }), [["__scopeId", "data-v-af87d02a"]]), zc = [
3529
+ }), [["__scopeId", "data-v-af87d02a"]]), Vc = [
3528
3530
  "aria-label",
3529
3531
  "title",
3530
3532
  "aria-pressed"
3531
- ], Bc = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
3533
+ ], Hc = /*#__PURE__*/ zt(/* @__PURE__ */ N({
3532
3534
  __name: "DarkModeToggle",
3533
3535
  props: { darkMode: { type: Boolean } },
3534
3536
  emits: ["change"],
@@ -3551,37 +3553,37 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3551
3553
  "leave-to-class": "tpl-icon-leave-to",
3552
3554
  mode: "out-in"
3553
3555
  }, {
3554
- default: f(() => [e.darkMode ? (s(), C(x(vt), {
3556
+ default: f(() => [e.darkMode ? (s(), C(x(dt), {
3555
3557
  key: "moon",
3556
3558
  size: 18,
3557
3559
  "stroke-width": 1.5
3558
- })) : (s(), C(x(Pt), {
3560
+ })) : (s(), C(x(Lt), {
3559
3561
  key: "sun",
3560
3562
  size: 18,
3561
3563
  "stroke-width": 1.5
3562
3564
  }))]),
3563
3565
  _: 1
3564
- })], 12, zc));
3566
+ })], 12, Vc));
3565
3567
  }
3566
- }), [["__scopeId", "data-v-f8694f76"]]), Vc = {
3568
+ }), [["__scopeId", "data-v-f8694f76"]]), Uc = {
3567
3569
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
3568
3570
  style: {
3569
3571
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
3570
3572
  "backdrop-filter": "blur(8px)",
3571
3573
  "-webkit-backdrop-filter": "blur(8px)"
3572
3574
  }
3573
- }, Hc = {
3575
+ }, Wc = {
3574
3576
  href: "https://github.com/templatical/sdk",
3575
3577
  target: "_blank",
3576
3578
  rel: "noopener noreferrer",
3577
3579
  class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
3578
3580
  style: { "text-decoration": "none" }
3579
- }, Uc = /* @__PURE__ */ N({
3581
+ }, Gc = /* @__PURE__ */ N({
3580
3582
  __name: "EditorFooter",
3581
3583
  props: { positionClass: {} },
3582
3584
  setup(e) {
3583
3585
  let { t } = W();
3584
- 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", Vc, [
3586
+ 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", Uc, [
3585
3587
  D("span", null, _(x(t).footer.poweredBy), 1),
3586
3588
  r[0] ||= D("a", {
3587
3589
  href: "https://templatical.com",
@@ -3596,32 +3598,32 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3596
3598
  alt: ""
3597
3599
  }), M(" Templatical ")], -1),
3598
3600
  r[1] ||= D("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3599
- D("a", Hc, _(x(t).footer.openSource), 1)
3601
+ D("a", Wc, _(x(t).footer.openSource), 1)
3600
3602
  ])], 2));
3601
3603
  }
3602
- }), Wc = ["aria-labelledby", "data-tpl-theme"], Gc = { 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" }, Kc = ["id"], qc = ["aria-label"], Jc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Yc = [
3604
+ }), Kc = ["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" }, Jc = ["id"], Yc = ["aria-label"], Xc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Zc = [
3603
3605
  "id",
3604
3606
  "placeholder",
3605
3607
  "aria-label",
3606
3608
  "aria-activedescendant"
3607
- ], Xc = {
3609
+ ], Qc = {
3608
3610
  key: 0,
3609
3611
  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",
3610
3612
  "data-testid": "merge-tag-picker-group-pills"
3611
- }, Zc = ["data-group-name", "onClick"], Qc = ["aria-label"], $c = {
3613
+ }, $c = ["data-group-name", "onClick"], el = ["aria-label"], tl = {
3612
3614
  key: 0,
3613
3615
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3614
3616
  "data-testid": "merge-tag-picker-empty"
3615
- }, el = {
3617
+ }, nl = {
3616
3618
  key: 1,
3617
3619
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3618
3620
  "data-testid": "merge-tag-picker-empty"
3619
- }, tl = [
3621
+ }, rl = [
3620
3622
  "aria-expanded",
3621
3623
  "data-group-name",
3622
3624
  "data-group-collapsed",
3623
3625
  "onClick"
3624
- ], nl = { class: "tpl:ml-1 tpl:font-normal" }, rl = [
3626
+ ], il = { class: "tpl:ml-1 tpl:font-normal" }, al = [
3625
3627
  "id",
3626
3628
  "aria-selected",
3627
3629
  "data-selected",
@@ -3630,13 +3632,17 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3630
3632
  "title",
3631
3633
  "onMousemove",
3632
3634
  "onClick"
3633
- ], il = { class: "tpl:text-sm tpl:font-medium" }, al = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, ol = {
3635
+ ], ol = { class: "tpl:text-sm tpl:font-medium" }, sl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, cl = {
3634
3636
  key: 0,
3635
3637
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3636
- }, sl = "tpl-merge-tag-picker-list", cl = /* @__PURE__ */ N({
3638
+ }, ll = {
3639
+ key: 1,
3640
+ "data-testid": "merge-tag-picker-sample",
3641
+ class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3642
+ }, ul = "tpl-merge-tag-picker-list", dl = /* @__PURE__ */ N({
3637
3643
  __name: "MergeTagPickerModal",
3638
3644
  setup(e) {
3639
- let t = je(Me, "MergeTagPickerModal"), { t: n, format: i } = W(), a = d(Pe, null), o = d(Ze, 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());
3645
+ let t = Ne(je, "MergeTagPickerModal"), { t: n, format: i } = W(), a = d(Le, null), o = d(Ae, 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());
3640
3646
  function N(e) {
3641
3647
  return M.value.has(e);
3642
3648
  }
@@ -3696,31 +3702,31 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3696
3702
  function V(e) {
3697
3703
  t.resolve(e);
3698
3704
  }
3699
- function ee() {
3705
+ function H() {
3700
3706
  t.resolve(null);
3701
3707
  }
3702
- function te(e) {
3708
+ function ee(e) {
3703
3709
  if (B.value.length === 0) return;
3704
3710
  let t = O.value + e;
3705
- O.value = Math.max(0, Math.min(B.value.length - 1, t)), re();
3711
+ O.value = Math.max(0, Math.min(B.value.length - 1, t)), ie();
3706
3712
  }
3707
- let H = m(null), ne = m({});
3708
- function U(e, t) {
3713
+ let te = m(null), ne = m({});
3714
+ function re(e, t) {
3709
3715
  ne.value[e] = t ?? null;
3710
3716
  }
3711
- function re() {
3717
+ function ie() {
3712
3718
  l(() => {
3713
- let e = H.value;
3719
+ let e = te.value;
3714
3720
  e && e.querySelector(`[data-merge-tag-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
3715
3721
  });
3716
3722
  }
3717
- function ie(e) {
3723
+ function U(e) {
3718
3724
  if (M.value.has(e)) {
3719
3725
  let t = new Set(M.value);
3720
3726
  t.delete(e), M.value = t;
3721
3727
  }
3722
3728
  l(() => {
3723
- let t = H.value;
3729
+ let t = te.value;
3724
3730
  if (!t) return;
3725
3731
  let n = 0, r = !1;
3726
3732
  for (let i of Array.from(t.children)) {
@@ -3737,8 +3743,8 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3737
3743
  });
3738
3744
  }
3739
3745
  function ae(e) {
3740
- if (e.key === "ArrowDown") e.preventDefault(), te(1);
3741
- else if (e.key === "ArrowUp") e.preventDefault(), te(-1);
3746
+ if (e.key === "ArrowDown") e.preventDefault(), ee(1);
3747
+ else if (e.key === "ArrowUp") e.preventDefault(), ee(-1);
3742
3748
  else if (e.key === "Enter") {
3743
3749
  e.preventDefault();
3744
3750
  let t = B.value[O.value];
@@ -3746,45 +3752,45 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3746
3752
  }
3747
3753
  }
3748
3754
  function oe() {
3749
- if (B.value.length !== 0) return `${sl}-opt-${O.value}`;
3755
+ if (B.value.length !== 0) return `${ul}-opt-${O.value}`;
3750
3756
  }
3751
3757
  function se(e) {
3752
- return `${sl}-opt-${e}`;
3758
+ return `${ul}-opt-${e}`;
3753
3759
  }
3754
3760
  let ce = v(() => t.tags.value.length === 0), le = v(() => !ce.value && L.value.length === 0), ue = v(() => A.value && R.value.length > 1 && !w.value);
3755
- return (e, l) => (s(), C(tn, {
3761
+ return (e, l) => (s(), C(rn, {
3756
3762
  visible: x(t).isOpen.value,
3757
- onClose: ee,
3763
+ onClose: H,
3758
3764
  onKeydown: ae
3759
3765
  }, {
3760
3766
  default: f(() => [D("div", {
3761
3767
  role: "dialog",
3762
3768
  "aria-modal": "true",
3763
- "aria-labelledby": `${sl}-title`,
3769
+ "aria-labelledby": `${ul}-title`,
3764
3770
  "data-tpl-theme": x(o),
3765
3771
  "data-testid": "merge-tag-picker-modal",
3766
3772
  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)]",
3767
3773
  style: k(x(a))
3768
3774
  }, [
3769
- D("header", Gc, [D("h2", {
3770
- id: `${sl}-title`,
3775
+ D("header", qc, [D("h2", {
3776
+ id: `${ul}-title`,
3771
3777
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3772
- }, _(x(n).mergeTag.picker.title), 9, Kc), D("button", {
3778
+ }, _(x(n).mergeTag.picker.title), 9, Jc), D("button", {
3773
3779
  type: "button",
3774
3780
  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)]",
3775
3781
  "aria-label": x(n).mergeTag.picker.close,
3776
3782
  "data-testid": "merge-tag-picker-close",
3777
- onClick: ee
3778
- }, [P(x(Et), {
3783
+ onClick: H
3784
+ }, [P(x(Ot), {
3779
3785
  size: 16,
3780
3786
  "stroke-width": 2
3781
- })], 8, qc)]),
3782
- D("div", Jc, [P(x(ut), {
3787
+ })], 8, Yc)]),
3788
+ D("div", Xc, [P(x(lt), {
3783
3789
  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)]",
3784
3790
  size: 14,
3785
3791
  "stroke-width": 2
3786
3792
  }), r(D("input", {
3787
- id: `${sl}-search`,
3793
+ id: `${ul}-search`,
3788
3794
  ref_key: "searchInputRef",
3789
3795
  ref: h,
3790
3796
  "onUpdate:modelValue": l[0] ||= (e) => c.value = e,
@@ -3792,48 +3798,48 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3792
3798
  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)]",
3793
3799
  placeholder: x(n).mergeTag.picker.searchPlaceholder,
3794
3800
  "aria-label": x(n).mergeTag.picker.searchAriaLabel,
3795
- "aria-controls": sl,
3801
+ "aria-controls": ul,
3796
3802
  "aria-activedescendant": oe(),
3797
3803
  "data-testid": "merge-tag-picker-search",
3798
3804
  onKeydown: l[1] ||= g(S(() => {}, ["prevent"]), ["enter"])
3799
- }, null, 40, Yc), [[T, c.value]])]),
3800
- ue.value ? (s(), y("div", Xc, [(s(!0), y(j, null, u(R.value, (e) => (s(), y("button", {
3805
+ }, null, 40, Zc), [[T, c.value]])]),
3806
+ ue.value ? (s(), y("div", Qc, [(s(!0), y(j, null, u(R.value, (e) => (s(), y("button", {
3801
3807
  key: e,
3802
3808
  type: "button",
3803
3809
  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)]",
3804
3810
  "data-testid": "merge-tag-picker-group-pill",
3805
3811
  "data-group-name": e,
3806
- onClick: (t) => ie(e)
3807
- }, _(e), 9, Zc))), 128))])) : b("", !0),
3812
+ onClick: (t) => U(e)
3813
+ }, _(e), 9, $c))), 128))])) : b("", !0),
3808
3814
  D("div", {
3809
- id: sl,
3815
+ id: ul,
3810
3816
  ref_key: "listRef",
3811
- ref: H,
3817
+ ref: te,
3812
3818
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3813
3819
  role: "listbox",
3814
3820
  "aria-label": x(n).mergeTag.picker.title,
3815
3821
  "data-testid": "merge-tag-picker-list"
3816
- }, [ce.value ? (s(), y("div", $c, _(x(n).mergeTag.picker.empty), 1)) : le.value ? (s(), y("div", el, _(x(n).mergeTag.picker.noResults), 1)) : (s(!0), y(j, { key: 2 }, u(z.value, (e, t) => (s(), y(j, { key: t }, [e.kind === "header" ? (s(), y("button", {
3822
+ }, [ce.value ? (s(), y("div", tl, _(x(n).mergeTag.picker.empty), 1)) : le.value ? (s(), y("div", nl, _(x(n).mergeTag.picker.noResults), 1)) : (s(!0), y(j, { key: 2 }, u(z.value, (e, t) => (s(), y(j, { key: t }, [e.kind === "header" ? (s(), y("button", {
3817
3823
  key: 0,
3818
3824
  ref_for: !0,
3819
- ref: (t) => U(e.group, t),
3825
+ ref: (t) => re(e.group, t),
3820
3826
  type: "button",
3821
3827
  "aria-expanded": !N(e.group),
3822
- "aria-controls": sl,
3828
+ "aria-controls": ul,
3823
3829
  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)]",
3824
3830
  "data-testid": "merge-tag-picker-group-header",
3825
3831
  "data-group-name": e.group,
3826
3832
  "data-group-collapsed": N(e.group) ? "true" : "false",
3827
3833
  onClick: (t) => I(e.group)
3828
3834
  }, [
3829
- P(x(pt), {
3835
+ P(x(st), {
3830
3836
  size: 12,
3831
3837
  "stroke-width": 2,
3832
3838
  class: E(["tpl:transition-transform", N(e.group) ? "tpl:-rotate-90" : ""])
3833
3839
  }, null, 8, ["class"]),
3834
3840
  D("span", null, _(e.group), 1),
3835
- D("span", nl, " (" + _(x(i)(x(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3836
- ], 8, tl)) : (s(), y("button", {
3841
+ D("span", il, " (" + _(x(i)(x(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3842
+ ], 8, rl)) : (s(), y("button", {
3837
3843
  key: 1,
3838
3844
  id: se(e.index),
3839
3845
  type: "button",
@@ -3848,22 +3854,23 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3848
3854
  onMousemove: (t) => O.value = e.index,
3849
3855
  onClick: (t) => V(e.tag)
3850
3856
  }, [
3851
- D("span", il, _(e.tag.label), 1),
3852
- D("span", al, _(e.tag.value), 1),
3853
- e.tag.description ? (s(), y("span", ol, _(e.tag.description), 1)) : b("", !0)
3854
- ], 42, rl))], 64))), 128))], 8, Qc)
3855
- ], 12, Wc)]),
3857
+ D("span", ol, _(e.tag.label), 1),
3858
+ D("span", sl, _(e.tag.value), 1),
3859
+ e.tag.description ? (s(), y("span", cl, _(e.tag.description), 1)) : b("", !0),
3860
+ e.tag.sample === void 0 ? b("", !0) : (s(), y("span", ll, _(x(i)(x(n).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
3861
+ ], 42, al))], 64))), 128))], 8, el)
3862
+ ], 12, Kc)]),
3856
3863
  _: 1
3857
3864
  }, 8, ["visible"]));
3858
3865
  }
3859
- }), ll = ["data-logic-keyword"], ul = /* @__PURE__ */ N({
3866
+ }), fl = ["data-logic-keyword"], pl = /* @__PURE__ */ N({
3860
3867
  __name: "LogicTagBadge",
3861
3868
  props: {
3862
3869
  value: {},
3863
3870
  syntax: {}
3864
3871
  },
3865
3872
  setup(e) {
3866
- let t = e, n = v(() => R(t.value, t.syntax)), r = v(() => B(t.value, t.syntax));
3873
+ let t = e, n = v(() => ee(t.value, t.syntax)), r = v(() => z(t.value, t.syntax));
3867
3874
  return (e, t) => n.value ? (s(), y("span", {
3868
3875
  key: 0,
3869
3876
  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",
@@ -3873,22 +3880,22 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3873
3880
  },
3874
3881
  "data-testid": "merge-tag-logic-badge",
3875
3882
  "data-logic-keyword": r.value
3876
- }, _(r.value), 9, ll)) : b("", !0);
3883
+ }, _(r.value), 9, fl)) : b("", !0);
3877
3884
  }
3878
- }), dl = ["aria-labelledby", "data-tpl-theme"], fl = { 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" }, pl = ["id"], ml = ["aria-label"], hl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, gl = [
3885
+ }), ml = ["aria-labelledby", "data-tpl-theme"], hl = { 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" }, gl = ["id"], _l = ["aria-label"], vl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, yl = [
3879
3886
  "id",
3880
3887
  "placeholder",
3881
3888
  "aria-label",
3882
3889
  "aria-activedescendant"
3883
- ], _l = ["aria-label"], vl = {
3890
+ ], bl = ["aria-label"], xl = {
3884
3891
  key: 0,
3885
3892
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3886
3893
  "data-testid": "logic-picker-empty"
3887
- }, yl = {
3894
+ }, Sl = {
3888
3895
  key: 1,
3889
3896
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3890
3897
  "data-testid": "logic-picker-empty"
3891
- }, bl = ["data-group-name"], xl = [
3898
+ }, Cl = ["data-group-name"], wl = [
3892
3899
  "id",
3893
3900
  "aria-selected",
3894
3901
  "data-selected",
@@ -3896,19 +3903,19 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3896
3903
  "data-logic-kind",
3897
3904
  "onMousemove",
3898
3905
  "onClick"
3899
- ], Sl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Cl = { class: "tpl:text-sm tpl:font-medium" }, wl = {
3906
+ ], Tl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, El = { class: "tpl:text-sm tpl:font-medium" }, Dl = {
3900
3907
  key: 0,
3901
3908
  class: "tpl:flex tpl:items-center"
3902
- }, Tl = {
3909
+ }, Ol = {
3903
3910
  key: 1,
3904
3911
  class: "tpl:flex tpl:items-center tpl:gap-1"
3905
- }, El = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Dl = {
3912
+ }, kl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Al = {
3906
3913
  key: 0,
3907
3914
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3908
- }, Ol = "tpl-logic-picker-list", kl = /* @__PURE__ */ N({
3915
+ }, jl = "tpl-logic-picker-list", Ml = /* @__PURE__ */ N({
3909
3916
  __name: "LogicTagPickerModal",
3910
3917
  setup(e) {
3911
- let t = je(Xe, "LogicTagPickerModal"), { t: n } = W(), i = d(Ie, ee.liquid), a = d(Pe, null), o = d(Ze, null), c = m(""), p = ke(c, 200), h = m(null), w = v(() => p.value.trim().length > 0), O = m(0);
3918
+ let t = Ne(Qe, "LogicTagPickerModal"), { t: n } = W(), i = d(Ge, B.liquid), a = d(Le, null), o = d(Ae, null), c = m(""), p = ke(c, 200), h = m(null), w = v(() => p.value.trim().length > 0), O = m(0);
3912
3919
  function A(e) {
3913
3920
  let t = p.value.trim().toLowerCase();
3914
3921
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -3963,72 +3970,72 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
3963
3970
  rows: e,
3964
3971
  items: t
3965
3972
  };
3966
- }), B = v(() => z.value.items), V = v(() => t.tags.value.length === 0 && t.pairs.value.length === 0), te = v(() => !V.value && B.value.length === 0);
3973
+ }), V = v(() => z.value.items), H = v(() => t.tags.value.length === 0 && t.pairs.value.length === 0), ee = v(() => !H.value && V.value.length === 0);
3967
3974
  F(() => t.isOpen.value, (e) => {
3968
3975
  e && (c.value = "", O.value = 0, l(() => h.value?.focus()));
3969
- }), F(B, (e) => {
3976
+ }), F(V, (e) => {
3970
3977
  O.value >= e.length && (O.value = Math.max(0, e.length - 1));
3971
3978
  });
3972
- let H = m(null);
3979
+ let te = m(null);
3973
3980
  function ne(e) {
3974
3981
  t.resolve(e);
3975
3982
  }
3976
- function U() {
3983
+ function re() {
3977
3984
  t.resolve(null);
3978
3985
  }
3979
- function re(e) {
3980
- B.value.length !== 0 && (O.value = Math.max(0, Math.min(B.value.length - 1, O.value + e)), l(() => {
3981
- H.value?.querySelector(`[data-logic-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
3986
+ function ie(e) {
3987
+ V.value.length !== 0 && (O.value = Math.max(0, Math.min(V.value.length - 1, O.value + e)), l(() => {
3988
+ te.value?.querySelector(`[data-logic-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
3982
3989
  }));
3983
3990
  }
3984
- function ie(e) {
3985
- if (e.key === "ArrowDown") e.preventDefault(), re(1);
3986
- else if (e.key === "ArrowUp") e.preventDefault(), re(-1);
3991
+ function U(e) {
3992
+ if (e.key === "ArrowDown") e.preventDefault(), ie(1);
3993
+ else if (e.key === "ArrowUp") e.preventDefault(), ie(-1);
3987
3994
  else if (e.key === "Enter") {
3988
3995
  e.preventDefault();
3989
- let t = B.value[O.value];
3996
+ let t = V.value[O.value];
3990
3997
  t && ne(t);
3991
3998
  }
3992
3999
  }
3993
4000
  function ae(e) {
3994
- return `${Ol}-opt-${e}`;
4001
+ return `${jl}-opt-${e}`;
3995
4002
  }
3996
4003
  function oe() {
3997
- return B.value.length === 0 ? void 0 : `${Ol}-opt-${O.value}`;
4004
+ return V.value.length === 0 ? void 0 : `${jl}-opt-${O.value}`;
3998
4005
  }
3999
- return (e, l) => (s(), C(tn, {
4006
+ return (e, l) => (s(), C(rn, {
4000
4007
  visible: x(t).isOpen.value,
4001
- onClose: U,
4002
- onKeydown: ie
4008
+ onClose: re,
4009
+ onKeydown: U
4003
4010
  }, {
4004
4011
  default: f(() => [D("div", {
4005
4012
  role: "dialog",
4006
4013
  "aria-modal": "true",
4007
- "aria-labelledby": `${Ol}-title`,
4014
+ "aria-labelledby": `${jl}-title`,
4008
4015
  "data-tpl-theme": x(o),
4009
4016
  "data-testid": "logic-picker-modal",
4010
4017
  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)]",
4011
4018
  style: k(x(a))
4012
4019
  }, [
4013
- D("header", fl, [D("h2", {
4014
- id: `${Ol}-title`,
4020
+ D("header", hl, [D("h2", {
4021
+ id: `${jl}-title`,
4015
4022
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
4016
- }, _(x(n).logicTag.picker.title), 9, pl), D("button", {
4023
+ }, _(x(n).logicTag.picker.title), 9, gl), D("button", {
4017
4024
  type: "button",
4018
4025
  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)]",
4019
4026
  "aria-label": x(n).logicTag.picker.close,
4020
4027
  "data-testid": "logic-picker-close",
4021
- onClick: U
4022
- }, [P(x(Et), {
4028
+ onClick: re
4029
+ }, [P(x(Ot), {
4023
4030
  size: 16,
4024
4031
  "stroke-width": 2
4025
- })], 8, ml)]),
4026
- D("div", hl, [P(x(ut), {
4032
+ })], 8, _l)]),
4033
+ D("div", vl, [P(x(lt), {
4027
4034
  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)]",
4028
4035
  size: 14,
4029
4036
  "stroke-width": 2
4030
4037
  }), r(D("input", {
4031
- id: `${Ol}-search`,
4038
+ id: `${jl}-search`,
4032
4039
  ref_key: "searchInputRef",
4033
4040
  ref: h,
4034
4041
  "onUpdate:modelValue": l[0] ||= (e) => c.value = e,
@@ -4036,25 +4043,25 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
4036
4043
  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)]",
4037
4044
  placeholder: x(n).logicTag.picker.searchPlaceholder,
4038
4045
  "aria-label": x(n).logicTag.picker.searchAriaLabel,
4039
- "aria-controls": Ol,
4046
+ "aria-controls": jl,
4040
4047
  "aria-activedescendant": oe(),
4041
4048
  "data-testid": "logic-picker-search",
4042
4049
  onKeydown: l[1] ||= g(S(() => {}, ["prevent"]), ["enter"])
4043
- }, null, 40, gl), [[T, c.value]])]),
4050
+ }, null, 40, yl), [[T, c.value]])]),
4044
4051
  D("div", {
4045
- id: Ol,
4052
+ id: jl,
4046
4053
  ref_key: "listRef",
4047
- ref: H,
4054
+ ref: te,
4048
4055
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
4049
4056
  role: "listbox",
4050
4057
  "aria-label": x(n).logicTag.picker.title,
4051
4058
  "data-testid": "logic-picker-list"
4052
- }, [V.value ? (s(), y("div", vl, _(x(n).logicTag.picker.empty), 1)) : te.value ? (s(), y("div", yl, _(x(n).logicTag.picker.noResults), 1)) : (s(!0), y(j, { key: 2 }, u(z.value.rows, (e, t) => (s(), y(j, { key: t }, [e.kind === "header" ? (s(), y("div", {
4059
+ }, [H.value ? (s(), y("div", xl, _(x(n).logicTag.picker.empty), 1)) : ee.value ? (s(), y("div", Sl, _(x(n).logicTag.picker.noResults), 1)) : (s(!0), y(j, { key: 2 }, u(z.value.rows, (e, t) => (s(), y(j, { key: t }, [e.kind === "header" ? (s(), y("div", {
4053
4060
  key: 0,
4054
4061
  class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
4055
4062
  "data-testid": "logic-picker-header",
4056
4063
  "data-group-name": e.label
4057
- }, _(e.label), 9, bl)) : (s(), y("button", {
4064
+ }, _(e.label), 9, Cl)) : (s(), y("button", {
4058
4065
  key: 1,
4059
4066
  id: ae(e.index),
4060
4067
  type: "button",
@@ -4068,29 +4075,29 @@ var So = { class: "tpl:mb-3.5" }, Co = ["value"], wo = ["value"], To = {
4068
4075
  onMousemove: (t) => O.value = e.index,
4069
4076
  onClick: (t) => ne(e.kind === "tag" ? e.tag : e.pair)
4070
4077
  }, [
4071
- D("span", Sl, [D("span", Cl, _(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), y("span", wl, [P(ul, {
4078
+ D("span", Tl, [D("span", El, _(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), y("span", Dl, [P(pl, {
4072
4079
  value: e.tag.value,
4073
4080
  syntax: x(i)
4074
- }, null, 8, ["value", "syntax"])])) : (s(), y("span", Tl, [
4075
- P(ul, {
4081
+ }, null, 8, ["value", "syntax"])])) : (s(), y("span", Ol, [
4082
+ P(pl, {
4076
4083
  value: e.pair.before,
4077
4084
  syntax: x(i)
4078
4085
  }, null, 8, ["value", "syntax"]),
4079
4086
  l[2] ||= D("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
4080
- P(ul, {
4087
+ P(pl, {
4081
4088
  value: e.pair.after,
4082
4089
  syntax: x(i)
4083
4090
  }, null, 8, ["value", "syntax"])
4084
4091
  ]))]),
4085
- D("span", El, _(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
4086
- (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), y("span", Dl, _(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : b("", !0)
4087
- ], 42, xl))], 64))), 128))], 8, _l)
4088
- ], 12, dl)]),
4092
+ D("span", kl, _(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
4093
+ (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), y("span", Al, _(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : b("", !0)
4094
+ ], 42, wl))], 64))), 128))], 8, bl)
4095
+ ], 12, ml)]),
4089
4096
  _: 1
4090
4097
  }, 8, ["visible"]));
4091
4098
  }
4092
4099
  });
4093
4100
  //#endregion
4094
- export { Rc as a, kn as c, cn as d, sn as f, Bc as i, bn as l, nn as m, cl as n, Ic as o, an as p, Uc as r, jc as s, kl as t, yn as u };
4101
+ export { Bc as a, jn as c, un as d, ln as f, Hc as i, Sn as l, an as m, dl as n, Rc as o, sn as p, Gc as r, Nc as s, Ml as t, xn as u };
4095
4102
 
4096
- //# sourceMappingURL=styles-BbfU2w9R.js.map
4103
+ //# sourceMappingURL=styles-BohMfIBd.js.map