@templatical/editor 0.22.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 (201) hide show
  1. package/dist/{AiChatSidebar-K_AehWc-.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-BVH7D1Ka.js → CloudEditor-DjN_9Yso.js} +285 -284
  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-DNmK3dxp.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-B_5KBaXW.js → SaveBlockDialog-BDDFbAWF.js} +100 -99
  19. package/dist/{SavedBlocksBrowserModal-DoJBoYPk.js → SavedBlocksBrowserModal-Djik_fJh.js} +6 -6
  20. package/dist/{SavedBlocksPanels-3Af5dMaf.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-IZfwgya-.js +174 -0
  25. package/dist/TestEmailPanel-QEEx_PkN.js +33 -0
  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 +7 -7
  30. package/dist/{ca-BBgad6y5.js → ca-CO4nq6TX.js} +22 -1
  31. package/dist/cdn/chunks/{AiChatSidebar-A1CuWGY0.js → AiChatSidebar-CN-0DIuA.js} +11 -11
  32. package/dist/cdn/chunks/{AiChatSidebar-A1CuWGY0.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-FCS53UcZ.js → CloudEditor-CeKaWWO5.js} +264 -263
  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-Dre99DTH.js → DesignReferenceSidebar-BjlaP69l.js} +90 -90
  52. package/dist/cdn/chunks/{DesignReferenceSidebar-Dre99DTH.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-CSeD3gn9.js → SaveBlockDialog-D2CtW4lC.js} +100 -99
  66. package/dist/cdn/chunks/SaveBlockDialog-D2CtW4lC.js.map +1 -0
  67. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B2x5WRPN.js → SavedBlocksBrowserModal-DdUKJzzF.js} +8 -8
  68. package/dist/cdn/chunks/SavedBlocksBrowserModal-DdUKJzzF.js.map +1 -0
  69. package/dist/cdn/chunks/{SavedBlocksPanels-BzMTZxf2.js → SavedBlocksPanels-1kVbqdpc.js} +2 -2
  70. package/dist/cdn/chunks/{SavedBlocksPanels-BzMTZxf2.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-saOfnpjz.js +35 -0
  80. package/dist/cdn/chunks/TestEmailPanel-saOfnpjz.js.map +1 -0
  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-BBgad6y5.js → ca-CO4nq6TX.js} +23 -2
  88. package/dist/cdn/chunks/{ca-BBgad6y5.js.map → ca-CO4nq6TX.js.map} +1 -1
  89. package/dist/cdn/chunks/{cloud-BJlbXGTJ.js → cloud-C2I0P9qj.js} +46 -42
  90. package/dist/cdn/chunks/cloud-C2I0P9qj.js.map +1 -0
  91. package/dist/{de-D7WbpFBR.js → cdn/chunks/de-CUeaFJph.js} +24 -1
  92. package/dist/cdn/chunks/{de-D7WbpFBR.js.map → de-CUeaFJph.js.map} +1 -1
  93. package/dist/{de-Bw6fB5JU.js → cdn/chunks/de-uVoSP1xF.js} +2 -9
  94. package/dist/cdn/chunks/de-uVoSP1xF.js.map +1 -0
  95. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js +8 -0
  96. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +1 -0
  97. package/dist/{en-DAdHJz7h.js → cdn/chunks/en-CjhsJxb-.js} +2 -9
  98. package/dist/cdn/chunks/en-CjhsJxb-.js.map +1 -0
  99. package/dist/{en-BrZ0uGK2.js → cdn/chunks/en-zCYIPAL5.js} +24 -1
  100. package/dist/cdn/chunks/{en-BrZ0uGK2.js.map → en-zCYIPAL5.js.map} +1 -1
  101. package/dist/{es-tLSLysPs.js → cdn/chunks/es-BSiH7YkP.js} +24 -1
  102. package/dist/cdn/chunks/{es-tLSLysPs.js.map → es-BSiH7YkP.js.map} +1 -1
  103. package/dist/cdn/chunks/{extensions-C49c51P1.js → extensions-DBWF_lxx.js} +16 -16
  104. package/dist/cdn/chunks/{extensions-C49c51P1.js.map → extensions-DBWF_lxx.js.map} +1 -1
  105. package/dist/{fr-BMWOPztQ.js → cdn/chunks/fr-DTVJ3det.js} +24 -1
  106. package/dist/cdn/chunks/fr-DTVJ3det.js.map +1 -0
  107. package/dist/cdn/chunks/{icons-CYWw8Xfp.js → icons-Cqxvwgz7.js} +35 -14
  108. package/dist/cdn/chunks/icons-Cqxvwgz7.js.map +1 -0
  109. package/dist/cdn/chunks/keys-B5uoP9P7.js +12 -0
  110. package/dist/cdn/chunks/keys-B5uoP9P7.js.map +1 -0
  111. package/dist/{nl-Dhctu7JL.js → cdn/chunks/nl-BqSquFS3.js} +24 -1
  112. package/dist/cdn/chunks/nl-BqSquFS3.js.map +1 -0
  113. package/dist/cdn/chunks/{pt-BR-BWFokdTU.js → pt-BR-CMljK37h.js} +23 -2
  114. package/dist/cdn/chunks/{pt-BR-BWFokdTU.js.map → pt-BR-CMljK37h.js.map} +1 -1
  115. package/dist/{pt-BR-w2sGzHNX.js → cdn/chunks/pt-BR-CTzHTqJD.js} +2 -9
  116. package/dist/cdn/chunks/pt-BR-CTzHTqJD.js.map +1 -0
  117. package/dist/cdn/chunks/{src-BKI1x1k7.js → src-BCJna-6p.js} +183 -165
  118. package/dist/cdn/chunks/{src-BKI1x1k7.js.map → src-BCJna-6p.js.map} +1 -1
  119. package/dist/cdn/chunks/{src-MA8DWI8O.js → src-C45kfA2t.js} +17 -17
  120. package/dist/cdn/chunks/{src-MA8DWI8O.js.map → src-C45kfA2t.js.map} +1 -1
  121. package/dist/cdn/chunks/{src-ByWL5K1f.js → src-XQmI_Xs1.js} +48 -48
  122. package/dist/cdn/chunks/{src-ByWL5K1f.js.map → src-XQmI_Xs1.js.map} +1 -1
  123. package/dist/cdn/chunks/{src-CM0gCvAS.js → src-YVsPFLNJ.js} +251 -251
  124. package/dist/cdn/chunks/{src-CM0gCvAS.js.map → src-YVsPFLNJ.js.map} +1 -1
  125. package/dist/cdn/chunks/{styles-BkXzQ4-n.js → styles-BohMfIBd.js} +785 -746
  126. package/dist/cdn/chunks/styles-BohMfIBd.js.map +1 -0
  127. package/dist/cdn/chunks/{tiptap-DUTbZTeR.js → tiptap-DRKu__AX.js} +5 -5
  128. package/dist/cdn/chunks/{tiptap-DUTbZTeR.js.map → tiptap-DRKu__AX.js.map} +1 -1
  129. package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js → useCloudI18n-Bem8DUjH.js} +2 -2
  130. package/dist/cdn/chunks/{useCloudI18n-BjNENqkM.js.map → useCloudI18n-Bem8DUjH.js.map} +1 -1
  131. package/dist/cdn/chunks/{useEditorCore-CzMhD6Gd.js → useEditorCore-B_vwuKdI.js} +434 -414
  132. package/dist/cdn/chunks/useEditorCore-B_vwuKdI.js.map +1 -0
  133. package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js → useI18n-graz19nI.js} +2 -2
  134. package/dist/cdn/chunks/{useI18n-8Wd7G-cq.js.map → useI18n-graz19nI.js.map} +1 -1
  135. package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js → useMergeTag-rTzAFMlr.js} +4 -4
  136. package/dist/cdn/chunks/{useMergeTag-C7G31KV-.js.map → useMergeTag-rTzAFMlr.js.map} +1 -1
  137. package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js → usePopoverPosition-BaFxLP3w.js} +2 -2
  138. package/dist/cdn/chunks/{usePopoverPosition-Bx0QewTv.js.map → usePopoverPosition-BaFxLP3w.js.map} +1 -1
  139. package/dist/cdn/editor.css +1 -1
  140. package/dist/cdn/editor.js +172 -150
  141. package/dist/cdn/editor.js.map +1 -1
  142. package/dist/{cloud-Du7mnkz2.js → cloud-DsUct4Zq.js} +42 -40
  143. package/dist/{cdn/chunks/de-D7WbpFBR.js → de-CUeaFJph.js} +22 -3
  144. package/dist/{cdn/chunks/de-Bw6fB5JU.js → de-uVoSP1xF.js} +0 -11
  145. package/dist/{dist-CL_CfQ3Q.js → dist-9uhI32Q4.js} +2 -2
  146. package/dist/{dist-3DHaYEiT.js → dist-BAkGuPYm.js} +2 -2
  147. package/dist/dist-BIYm-U9x.js +5 -0
  148. package/dist/{dist-3HenmYIg.js → dist-ByJVlKWy.js} +1 -1
  149. package/dist/{dist-DKWoZJAV.js → dist-C5tigvDF.js} +2 -2
  150. package/dist/{dist-bivrM-nS.js → dist-CQiAZlTt.js} +2 -2
  151. package/dist/{dist-Ih7ejWzn.js → dist-C_kAE1sC.js} +2 -2
  152. package/dist/{dist-CclnU_v0.js → dist-CkCVlKj_.js} +2 -2
  153. package/dist/{dist-B_etKYyh.js → dist-DFO896yT.js} +5 -5
  154. package/dist/{dist-BJbqgyPn.js → dist-DPHqs0Yh.js} +105 -87
  155. package/dist/{dist-DOtLGnLr.js → dist-DWu9QWFl.js} +2 -2
  156. package/dist/{dist-BCnJcAQc.js → dist-IGetXrbO.js} +2 -2
  157. package/dist/dist-JXOq1hib.js +5 -0
  158. package/dist/emailFrameWidth-BmFCN2dp.js +6 -0
  159. package/dist/{cdn/chunks/en-DAdHJz7h.js → en-CjhsJxb-.js} +0 -11
  160. package/dist/{cdn/chunks/en-BrZ0uGK2.js → en-zCYIPAL5.js} +22 -3
  161. package/dist/{cdn/chunks/es-tLSLysPs.js → es-BSiH7YkP.js} +22 -3
  162. package/dist/{extensions-3870a_3R.js → extensions-C0DXnYdA.js} +13 -13
  163. package/dist/{cdn/chunks/fr-BMWOPztQ.js → fr-DTVJ3det.js} +22 -3
  164. package/dist/index.d.ts +74 -0
  165. package/dist/keys-BVlG5Ozc.js +10 -0
  166. package/dist/{cdn/chunks/nl-Dhctu7JL.js → nl-BqSquFS3.js} +22 -3
  167. package/dist/{pt-BR-BWFokdTU.js → pt-BR-CMljK37h.js} +22 -1
  168. package/dist/{cdn/chunks/pt-BR-w2sGzHNX.js → pt-BR-CTzHTqJD.js} +0 -11
  169. package/dist/style.css +1 -1
  170. package/dist/{styles-AxBd7CgB.js → styles-BTTD0Je4.js} +941 -935
  171. package/dist/templatical-editor.js +112 -89
  172. package/dist/{useCloudI18n-BmiygEM4.js → useCloudI18n-DGr3b2SX.js} +1 -1
  173. package/dist/{useEditorCore-CuMMIfiS.js → useEditorCore-DOrGex_t.js} +917 -897
  174. package/dist/{useI18n-D2L9Mkik.js → useI18n-BhAejA-x.js} +1 -1
  175. package/dist/{useMergeTag-BTdDq5DC.js → useMergeTag-Ce95YIOO.js} +3 -3
  176. package/dist/{usePopoverPosition-BO2LNy5n.js → usePopoverPosition-vjKJaqJf.js} +1 -1
  177. package/package.json +20 -20
  178. package/dist/SavedBlockPreviewCanvas-DXkGDYph.js +0 -109
  179. package/dist/TestEmailModal-DComAFpR.js +0 -95
  180. package/dist/cdn/chunks/CloudEditor-FCS53UcZ.js.map +0 -1
  181. package/dist/cdn/chunks/SaveBlockDialog-CSeD3gn9.js.map +0 -1
  182. package/dist/cdn/chunks/SavedBlockPreviewCanvas-DgLOKtR_.js +0 -111
  183. package/dist/cdn/chunks/SavedBlockPreviewCanvas-DgLOKtR_.js.map +0 -1
  184. package/dist/cdn/chunks/SavedBlocksBrowserModal-B2x5WRPN.js.map +0 -1
  185. package/dist/cdn/chunks/TestEmailModal-DT37w7i_.js +0 -96
  186. package/dist/cdn/chunks/TestEmailModal-DT37w7i_.js.map +0 -1
  187. package/dist/cdn/chunks/blockTypeIcons-etMMQoVv.js +0 -21
  188. package/dist/cdn/chunks/cloud-BJlbXGTJ.js.map +0 -1
  189. package/dist/cdn/chunks/de-Bw6fB5JU.js.map +0 -1
  190. package/dist/cdn/chunks/en-DAdHJz7h.js.map +0 -1
  191. package/dist/cdn/chunks/fr-BMWOPztQ.js.map +0 -1
  192. package/dist/cdn/chunks/icons-CYWw8Xfp.js.map +0 -1
  193. package/dist/cdn/chunks/keys-D7kUmfpE.js +0 -12
  194. package/dist/cdn/chunks/keys-D7kUmfpE.js.map +0 -1
  195. package/dist/cdn/chunks/nl-Dhctu7JL.js.map +0 -1
  196. package/dist/cdn/chunks/pt-BR-w2sGzHNX.js.map +0 -1
  197. package/dist/cdn/chunks/styles-BkXzQ4-n.js.map +0 -1
  198. package/dist/cdn/chunks/useEditorCore-CzMhD6Gd.js.map +0 -1
  199. package/dist/dist-CcQLJeWV.js +0 -5
  200. package/dist/dist-DerdmERj.js +0 -5
  201. package/dist/keys-CHPcp-Nz.js +0 -10
@@ -1,23 +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 { t as Vt } from "./readableTextColor-f8Kykfnh.js";
14
- import { t as Ht } from "./blockTypeIcons-etMMQoVv.js";
15
- import { _ as Ut, f as K, g as Wt, h as q, i as Gt, l as Kt, m as J, n as qt, p as Y, t as X, u as Jt } from "./ColorPicker-DZSzZ5ZP.js";
16
- import { n as Yt, r as Xt } from "./MergeTagSuggestion-BM349_QH.js";
17
- import { i as Z, n as Q, r as Zt, t as Qt } from "./NumberWithSuffix-CjlVNIEe.js";
18
- import { t as $t } 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";
19
20
  //#region src/composables/useSavedBlocksFeature.ts
20
- function en(e) {
21
+ function an(e) {
21
22
  let { provider: t, editor: n } = e, r = ae({
22
23
  provider: t,
23
24
  onError: e.onError
@@ -53,7 +54,7 @@ function en(e) {
53
54
  }
54
55
  function x(e, t) {
55
56
  for (let r = 0; r < e.content.length; r++) {
56
- 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;
57
58
  n.addBlock(i, void 0, void 0, a);
58
59
  }
59
60
  a.value = !1;
@@ -62,7 +63,7 @@ function en(e) {
62
63
  r.load().catch(() => {});
63
64
  }
64
65
  let C = v(() => r.savedBlocks.value.length), w = v(() => e.isAvailable?.() ?? !0);
65
- return c(Le, r), {
66
+ return c(Me, r), {
66
67
  headless: r,
67
68
  isPicking: l,
68
69
  pickedIds: s,
@@ -98,8 +99,101 @@ function en(e) {
98
99
  };
99
100
  }
100
101
  //#endregion
102
+ //#region src/utils/toMjml.ts
103
+ async function on() {
104
+ try {
105
+ return await import("./src-C45kfA2t.js");
106
+ } catch {
107
+ return null;
108
+ }
109
+ }
110
+ async function sn(e) {
111
+ let t = await on();
112
+ if (!t) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
113
+ let n = e.getCustomBlockStylesheet;
114
+ return t.renderToMjml(e.getContent(), {
115
+ renderCustomBlock: e.renderCustomBlock,
116
+ ...n ? { getCustomBlockStylesheet: (e) => n(e) } : {}
117
+ });
118
+ }
119
+ //#endregion
120
+ //#region src/composables/useTestEmailFeature.ts
121
+ var cn = 1200;
122
+ function ln(e) {
123
+ let { provider: t } = e, n = m(!1), r = m(!1), a = m(!1), o = m(null), s = null, c = !1;
124
+ function l() {
125
+ s !== null && (clearTimeout(s), s = null);
126
+ }
127
+ i(l);
128
+ let u = v(() => t.allowedRecipients), d = v(() => {
129
+ let e = t.defaultRecipient;
130
+ if (e === void 0) return;
131
+ let n = u.value;
132
+ if (!(n && !n.includes(e))) return e;
133
+ }), f = v(() => u.value?.length === 0 ? !1 : e.isAvailable?.() ?? !0);
134
+ function p() {
135
+ f.value && (o.value = null, a.value = !1, l(), n.value = !0);
136
+ }
137
+ function h() {
138
+ l(), n.value = !1, a.value = !1;
139
+ }
140
+ async function g() {
141
+ if (!(!t.includeMjml || !e.renderMjml)) try {
142
+ return await e.renderMjml();
143
+ } catch (e) {
144
+ if (await on() === null) {
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
+ return;
147
+ }
148
+ throw e;
149
+ }
150
+ }
151
+ async function _(n) {
152
+ if (r.value) return;
153
+ let i = u.value;
154
+ if (i && !i.includes(n)) {
155
+ o.value = { kind: "recipientNotAllowed" };
156
+ return;
157
+ }
158
+ r.value = !0, o.value = null;
159
+ try {
160
+ let r = await g();
161
+ await t.send({
162
+ recipient: n,
163
+ content: e.getContent(),
164
+ ...r === void 0 ? {} : { mjml: r },
165
+ ...i === void 0 ? {} : { allowedRecipients: i }
166
+ }), a.value = !0, s = setTimeout(h, cn);
167
+ } catch (t) {
168
+ let n = t instanceof Error ? t : Error(String(t));
169
+ o.value = {
170
+ kind: "provider",
171
+ message: n.message
172
+ }, e.onError?.(n);
173
+ } finally {
174
+ r.value = !1;
175
+ }
176
+ }
177
+ return {
178
+ isModalOpen: n,
179
+ open: p,
180
+ close: h,
181
+ isSending: r,
182
+ justSent: a,
183
+ error: o,
184
+ send: _,
185
+ allowedRecipients: u,
186
+ defaultRecipient: d,
187
+ isAvailable: f,
188
+ capability: {
189
+ open: p,
190
+ isAvailable: f
191
+ }
192
+ };
193
+ }
194
+ //#endregion
101
195
  //#region src/utils/resolveLintOptions.ts
102
- function tn(e) {
196
+ function un(e) {
103
197
  return {
104
198
  ...e.lint,
105
199
  locale: e.locale
@@ -107,19 +201,19 @@ function tn(e) {
107
201
  }
108
202
  //#endregion
109
203
  //#region src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
110
- var nn = ["aria-label"], rn = {
204
+ var dn = ["aria-label"], fn = {
111
205
  key: 0,
112
206
  class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
113
- }, an = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, on = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, sn = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, cn = {
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 = {
114
208
  key: 0,
115
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)]"
116
- }, ln = {
210
+ }, _n = {
117
211
  key: 1,
118
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)]"
119
- }, un = { class: "tpl:relative" }, dn = {
213
+ }, vn = { class: "tpl:relative" }, yn = {
120
214
  class: "tpl:inline-flex tpl:size-3 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[8px] tpl:font-bold",
121
215
  style: { "background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 30%,\n transparent\n )" }
122
- }, fn = 96, pn = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
216
+ }, bn = 96, xn = /*#__PURE__*/ zt(/* @__PURE__ */ N({
123
217
  __name: "Canvas",
124
218
  props: {
125
219
  viewport: {},
@@ -149,53 +243,50 @@ var nn = ["aria-label"], rn = {
149
243
  table: we,
150
244
  video: xe,
151
245
  custom: De
152
- }, 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({
153
249
  get: () => i.content.blocks,
154
250
  set: (e) => {
155
- p.setContent({
251
+ h.setContent({
156
252
  ...i.content,
157
253
  blocks: e
158
254
  });
159
255
  }
160
- }), F = v(() => {
161
- switch (i.viewport) {
162
- case "mobile": return 375;
163
- default: return i.content.settings.width;
164
- }
165
- }), I = v(() => F.value + fn * 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);
166
- function V() {
167
- R.value && (z.value += 1);
168
- }
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);
169
257
  function ee() {
170
- R.value && (z.value = Math.max(0, z.value - 1));
258
+ B.value && (V.value += 1);
171
259
  }
172
260
  function te() {
173
- z.value = 0;
261
+ B.value && (V.value = Math.max(0, V.value - 1));
174
262
  }
175
- function H(e) {
176
- i.previewMode || S.savedBlocks?.isPicking.value || e.target === e.currentTarget && a("select-block", null);
263
+ function ne() {
264
+ V.value = 0;
177
265
  }
178
- function ne(e) {
179
- 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);
180
271
  }
181
272
  function U(e) {
182
273
  return i.lockedBlocks?.get(e) ?? null;
183
274
  }
184
- function re(e) {
275
+ function ae(e) {
185
276
  if (i.previewMode || U(e)) return;
186
- let t = S.savedBlocks;
277
+ let t = w.savedBlocks;
187
278
  if (t?.isPicking.value) {
188
279
  t.togglePick(e);
189
280
  return;
190
281
  }
191
282
  a("select-block", e);
192
283
  }
193
- function ie(e) {
194
- return S.savedBlocks?.isPicked(e) ?? !1;
284
+ function oe(e) {
285
+ return w.savedBlocks?.isPicked(e) ?? !1;
195
286
  }
196
- let ae = v(() => S.savedBlocks?.isPicking.value === !0);
197
- function oe(e, t) {
198
- 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, {
199
290
  fieldValues: t.fieldValues,
200
291
  dataSourceFetched: t.dataSourceFetched
201
292
  });
@@ -203,9 +294,9 @@ var nn = ["aria-label"], rn = {
203
294
  return (t, n) => (s(), y("div", {
204
295
  class: "tpl-canvas-stage tpl:relative tpl:flex tpl:justify-center tpl:rounded-lg",
205
296
  style: k({
206
- width: `${I.value}px`,
297
+ width: `${R.value}px`,
207
298
  boxShadow: e.darkMode ? "none" : "var(--tpl-shadow-xl)",
208
- transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
299
+ transition: x(Wt)
209
300
  })
210
301
  }, [D("div", {
211
302
  class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
@@ -217,22 +308,22 @@ var nn = ["aria-label"], rn = {
217
308
  }, null, 4), D("div", {
218
309
  "data-testid": "canvas-wrapper",
219
310
  role: "region",
220
- "aria-label": x(c).landmarks.canvas,
311
+ "aria-label": x(l).landmarks.canvas,
221
312
  class: "tpl-canvas-wrapper tpl:relative",
222
313
  style: k({
223
- width: `${F.value}px`,
224
- transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1)"
314
+ width: `${L.value}px`,
315
+ transition: x(Wt)
225
316
  })
226
317
  }, [D("div", {
227
318
  class: E(["tpl-canvas tpl:relative tpl:rounded-lg", {
228
319
  "tpl-canvas--dark-mode": e.darkMode,
229
320
  "tpl-preview-mode": e.previewMode
230
321
  }]),
231
- style: k(L.value),
232
- onClick: H
322
+ style: k(z.value),
323
+ onClick: re
233
324
  }, [P(x(A), {
234
- modelValue: N.value,
235
- "onUpdate:modelValue": n[2] ||= (e) => N.value = e,
325
+ modelValue: I.value,
326
+ "onUpdate:modelValue": n[2] ||= (e) => I.value = e,
236
327
  group: "blocks",
237
328
  animation: 150,
238
329
  "ghost-class": "tpl-ghost",
@@ -245,47 +336,47 @@ var nn = ["aria-label"], rn = {
245
336
  "force-fallback": !0,
246
337
  class: E([
247
338
  "tpl-canvas-blocks",
248
- 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" : "",
249
- R.value && B.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
250
- 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)]" : ""
251
342
  ]),
252
- onDragenter: V,
253
- onDragleave: ee,
254
- onDrop: te
343
+ onDragenter: ee,
344
+ onDragleave: te,
345
+ onDrop: ne
255
346
  }, {
256
- default: f(() => [R.value ? (s(), y("div", rn, [
257
- D("div", an, [P(x(rt), {
347
+ default: f(() => [B.value ? (s(), y("div", fn, [
348
+ D("div", pn, [P(x(Ft), {
258
349
  size: 48,
259
350
  "stroke-width": 1
260
351
  })]),
261
- D("p", on, _(x(c).canvas.noBlocks), 1),
262
- D("p", sn, _(x(c).canvas.dragHint), 1),
263
- w.value && x(l) ? (s(), y("p", cn, [
264
- 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),
265
356
  D("button", {
266
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)]",
267
358
  onClick: n[0] ||= (e) => a("open-ai-chat")
268
- }, [P(x(Ft), {
359
+ }, [P(x(ft), {
269
360
  size: 14,
270
361
  "stroke-width": 2
271
- }), M(" " + _(x(l).aiMenu.aiAssistant), 1)]),
272
- M(" " + _(x(c).canvas.aiHintChatSuffix), 1)
362
+ }), M(" " + _(x(p).aiMenu.aiAssistant), 1)]),
363
+ M(" " + _(x(l).canvas.aiHintChatSuffix), 1)
273
364
  ])) : b("", !0),
274
- T.value && x(l) ? (s(), y("p", ln, [
275
- M(_(x(c).canvas.aiHintDesign) + " ", 1),
365
+ F.value && x(p) ? (s(), y("p", _n, [
366
+ M(_(x(l).canvas.aiHintDesign) + " ", 1),
276
367
  D("button", {
277
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)]",
278
369
  onClick: n[1] ||= (e) => a("open-design-reference")
279
- }, [P(x(St), {
370
+ }, [P(x(At), {
280
371
  size: 14,
281
372
  "stroke-width": 2
282
- }), M(" " + _(x(l).aiMenu.designToTemplate), 1)]),
283
- M(" " + _(x(c).canvas.aiHintDesignSuffix), 1)
373
+ }), M(" " + _(x(p).aiMenu.designToTemplate), 1)]),
374
+ M(" " + _(x(l).canvas.aiHintDesignSuffix), 1)
284
375
  ])) : b("", !0)
285
- ])) : 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", {
286
377
  key: t.id,
287
378
  class: "tpl-block-item"
288
- }, [D("div", un, [U(t.id) ? (s(), y("div", {
379
+ }, [D("div", vn, [U(t.id) ? (s(), y("div", {
289
380
  key: 0,
290
381
  class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
291
382
  style: k({
@@ -296,21 +387,21 @@ var nn = ["aria-label"], rn = {
296
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",
297
388
  style: k({
298
389
  backgroundColor: U(t.id).color,
299
- color: x(Vt)(U(t.id).color)
390
+ color: x(Gt)(U(t.id).color)
300
391
  })
301
- }, [D("span", dn, _(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, {
302
393
  block: t,
303
- "is-selected": !e.previewMode && !ae.value && e.selectedBlockId === t.id && !U(t.id),
304
- picked: ie(t.id),
394
+ "is-selected": !e.previewMode && !se.value && e.selectedBlockId === t.id && !U(t.id),
395
+ picked: oe(t.id),
305
396
  viewport: e.viewport,
306
397
  "preview-mode": e.previewMode,
307
- onSelect: (e) => re(t.id)
398
+ onSelect: (e) => ae(t.id)
308
399
  }, {
309
- default: f(() => [(s(), C(o(ne(t)), {
400
+ default: f(() => [(s(), C(o(ie(t)), {
310
401
  block: t,
311
402
  viewport: e.viewport,
312
- onFetchData: (e) => oe(t, e),
313
- onUpdate: (e) => x(p).updateBlock(t.id, e)
403
+ onFetchData: (e) => ce(t, e),
404
+ onUpdate: (e) => x(h).updateBlock(t.id, e)
314
405
  }, null, 40, [
315
406
  "block",
316
407
  "viewport",
@@ -325,18 +416,18 @@ var nn = ["aria-label"], rn = {
325
416
  "viewport",
326
417
  "preview-mode",
327
418
  "onSelect"
328
- ])])])), [[O, !x(h)?.isHidden(t.id)]])), 128))]),
419
+ ])])])), [[O, !x(g)?.isHidden(t.id)]])), 128))]),
329
420
  _: 1
330
421
  }, 8, [
331
422
  "modelValue",
332
423
  "disabled",
333
424
  "class"
334
- ])], 6)], 12, nn)], 4));
425
+ ])], 6)], 12, dn)], 4));
335
426
  }
336
- }), [["__scopeId", "data-v-68d53416"]]), mn = N({
427
+ }), [["__scopeId", "data-v-236bcafd"]]), Sn = N({
337
428
  name: "CustomBlockStylesheets",
338
429
  setup() {
339
- let t = d(Je, null);
430
+ let t = d(Xe, null);
340
431
  return () => t ? t.value.map((t, n) => e("style", {
341
432
  key: n,
342
433
  "data-tpl-custom-block-stylesheet": "",
@@ -346,7 +437,7 @@ var nn = ["aria-label"], rn = {
346
437
  });
347
438
  //#endregion
348
439
  //#region src/utils/resolvePaletteBlocks.ts
349
- function hn(e, t) {
440
+ function Cn(e, t) {
350
441
  if (!t || t.length === 0) return {
351
442
  items: e,
352
443
  unknown: []
@@ -365,24 +456,24 @@ function hn(e, t) {
365
456
  }
366
457
  //#endregion
367
458
  //#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
368
- var gn = ["aria-label"], _n = {
459
+ var wn = ["aria-label"], Tn = {
369
460
  key: 0,
370
461
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
371
- }, vn = ["aria-label"], yn = {
462
+ }, En = ["aria-label"], Dn = {
372
463
  key: 0,
373
464
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
374
- }, bn = [
465
+ }, On = [
375
466
  "data-palette-type",
376
467
  "aria-label",
377
468
  "onClick",
378
469
  "onKeydown"
379
- ], xn = { 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" }, Sn = {
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 = {
380
471
  key: 0,
381
472
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
382
- }, Cn = /* @__PURE__ */ N({
473
+ }, jn = /* @__PURE__ */ N({
383
474
  __name: "Sidebar",
384
475
  setup(e) {
385
- 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);
386
477
  function S() {
387
478
  g.value || (h.value = !1);
388
479
  }
@@ -419,23 +510,23 @@ var gn = ["aria-label"], _n = {
419
510
  label: e.name,
420
511
  isCustom: !0,
421
512
  icon: e.icon
422
- }))), N = v(() => [...O.value, ...M.value]), I = v(() => hn(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();
423
514
  F(() => I.value.unknown, (e) => {
424
- 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.`));
425
516
  }, { immediate: !0 });
426
517
  function B(e) {
427
518
  if (e.isCustom) {
428
519
  let t = e.type.replace("custom:", ""), n = r.find((e) => e.type === t);
429
- if (n) return U(n);
520
+ if (n) return L(n);
430
521
  }
431
- return z(e.type, a);
522
+ return ne(e.type, a);
432
523
  }
433
524
  function V(e) {
434
525
  if (!c) return;
435
526
  let t = B(e);
436
527
  c.addBlock(t), c.selectBlock(t.id);
437
528
  }
438
- function ee(e, t) {
529
+ function H(e, t) {
439
530
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), V(t));
440
531
  }
441
532
  return (e, r) => (s(), y("aside", {
@@ -452,18 +543,18 @@ var gn = ["aria-label"], _n = {
452
543
  onMouseleave: S,
453
544
  onFocusin: r[2] ||= (e) => h.value = !0,
454
545
  onFocusout: r[3] ||= (e) => h.value = !1
455
- }, [p.value ? (s(), y("div", _n, [D("button", {
546
+ }, [p.value ? (s(), y("div", Tn, [D("button", {
456
547
  type: "button",
457
548
  "aria-label": x(t).sidebarNav.browseSavedBlocks,
458
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)]",
459
550
  style: k({ justifyContent: h.value ? "flex-start" : "center" }),
460
551
  onClick: r[0] ||= (e) => x(l).savedBlocks?.openBrowser()
461
- }, [P(x(ct), {
552
+ }, [P(x(mt), {
462
553
  size: 20,
463
554
  "stroke-width": 1.5,
464
555
  class: "tpl:shrink-0"
465
- }), h.value ? (s(), y("span", yn, _(x(t).savedBlocks.title), 1)) : b("", !0)], 12, vn)])) : b("", !0), P(x(A), {
466
- "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,
467
558
  group: {
468
559
  name: "blocks",
469
560
  pull: "clone",
@@ -477,7 +568,7 @@ var gn = ["aria-label"], _n = {
477
568
  onChoose: w,
478
569
  onEnd: T
479
570
  }, {
480
- 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", {
481
572
  key: e.type,
482
573
  type: "button",
483
574
  "data-palette-type": e.type,
@@ -485,8 +576,8 @@ var gn = ["aria-label"], _n = {
485
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",
486
577
  style: k({ justifyContent: h.value ? "flex-start" : "center" }),
487
578
  onClick: (t) => V(e),
488
- onKeydown: (t) => ee(t, e)
489
- }, [D("div", xn, [x(Ht)[e.type] ? (s(), C(o(x(Ht)[e.type]), {
579
+ onKeydown: (t) => H(t, e)
580
+ }, [D("div", kn, [x(Kt)[e.type] ? (s(), C(o(x(Kt)[e.type]), {
490
581
  key: 0,
491
582
  size: 20,
492
583
  "stroke-width": 1.5
@@ -494,14 +585,14 @@ var gn = ["aria-label"], _n = {
494
585
  key: 1,
495
586
  icon: e.icon,
496
587
  size: 20
497
- }, null, 8, ["icon"])) : b("", !0)]), h.value ? (s(), y("span", Sn, _(e.label), 1)) : b("", !0)], 44, bn))), 128))]),
588
+ }, null, 8, ["icon"])) : b("", !0)]), h.value ? (s(), y("span", An, _(e.label), 1)) : b("", !0)], 44, On))), 128))]),
498
589
  _: 1
499
- }, 8, ["model-value"])], 44, gn));
590
+ }, 8, ["model-value"])], 44, wn));
500
591
  }
501
592
  });
502
593
  //#endregion
503
594
  //#region src/utils/mergeTagTrigger.ts
504
- function wn(e, t, n, r) {
595
+ function Mn(e, t, n, r) {
505
596
  if (!n) return null;
506
597
  let i = e.slice(0, t), a = i.lastIndexOf(n);
507
598
  if (a === -1) return null;
@@ -514,8 +605,8 @@ function wn(e, t, n, r) {
514
605
  }
515
606
  //#endregion
516
607
  //#region src/utils/textFieldCaret.ts
517
- var Tn = /* @__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(".");
518
- function En(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) {
519
610
  return {
520
611
  left: e,
521
612
  top: t,
@@ -528,7 +619,7 @@ function En(e, t, n) {
528
619
  toJSON: () => ({})
529
620
  };
530
621
  }
531
- function Dn(e, t) {
622
+ function Fn(e, t) {
532
623
  let n = e.ownerDocument, r = n.defaultView;
533
624
  if (!r) return null;
534
625
  let i = e.tagName === "INPUT", a = r.getComputedStyle(e), o = n.createElement("div");
@@ -536,7 +627,7 @@ function Dn(e, t) {
536
627
  let s = o.style;
537
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";
538
629
  let c = s, l = a;
539
- for (let e of Tn) c[e] = l[e];
630
+ for (let e of Nn) c[e] = l[e];
540
631
  i && (s.width = "auto", s.whiteSpace = "pre");
541
632
  let u = e.value, d = u.slice(0, t);
542
633
  i && (d = d.replace(/\s/g, "\xA0")), o.textContent = d;
@@ -545,26 +636,26 @@ function Dn(e, t) {
545
636
  let p = f.offsetTop, m = f.offsetLeft;
546
637
  n.body.removeChild(o);
547
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;
548
- if (i) return En(y, h.top, h.bottom);
639
+ if (i) return Pn(y, h.top, h.bottom);
549
640
  let b = h.top + p + g - e.scrollTop;
550
- return En(y, b, b + v);
641
+ return Pn(y, b, b + v);
551
642
  }
552
643
  //#endregion
553
644
  //#region src/composables/useMergeTagAutocomplete.ts
554
- var On = /* @__PURE__ */ new Set([
645
+ var In = /* @__PURE__ */ new Set([
555
646
  "ArrowLeft",
556
647
  "ArrowRight",
557
648
  "Home",
558
649
  "End"
559
650
  ]);
560
- function kn(e) {
561
- 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), _ = Yt((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;
562
653
  n() && i(() => {
563
654
  v = !0, _.close();
564
655
  });
565
656
  function y(e) {
566
657
  let t = e.value ?? "";
567
- return wn(t, e.selectionStart ?? t.length, p, m);
658
+ return Mn(t, e.selectionStart ?? t.length, p, m);
568
659
  }
569
660
  function b(e, n, i) {
570
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;
@@ -586,7 +677,7 @@ function kn(e) {
586
677
  _.close();
587
678
  return;
588
679
  }
589
- let r = Xt(s, n.query), i = () => Dn(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);
590
681
  _.isOpen() ? _.update({
591
682
  items: r,
592
683
  getRect: i,
@@ -599,7 +690,7 @@ function kn(e) {
599
690
  });
600
691
  }
601
692
  function S(e) {
602
- return _.isOpen() ? e.key === "Escape" ? (_.close(), !0) : On.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;
603
694
  }
604
695
  return {
605
696
  available: h,
@@ -611,12 +702,12 @@ function kn(e) {
611
702
  }
612
703
  //#endregion
613
704
  //#region src/composables/useMergeTagField.ts
614
- function An(e) {
615
- 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;
616
707
  n() && i(() => {
617
708
  S = !0;
618
709
  });
619
- let C = kn({
710
+ let C = Ln({
620
711
  elementRef: a,
621
712
  modelValue: t,
622
713
  emit: r,
@@ -640,10 +731,10 @@ function An(e) {
640
731
  type: "mergeTag",
641
732
  value: t,
642
733
  label: d(t)
643
- }) : R(t, p) ? n.push({
734
+ }) : ee(t, p) ? n.push({
644
735
  type: "logicMergeTag",
645
736
  value: t,
646
- keyword: B(t, p)
737
+ keyword: z(t, p)
647
738
  }) : n.push({
648
739
  type: "text",
649
740
  value: t
@@ -738,10 +829,10 @@ function An(e) {
738
829
  }
739
830
  //#endregion
740
831
  //#region src/components/MergeTagSegments.vue?vue&type=script&setup=true&lang.ts
741
- var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip"], Pn = {
832
+ var zn = ["aria-label", "onKeydown"], Bn = ["data-tooltip"], Vn = ["data-tooltip"], Hn = {
742
833
  key: 2,
743
834
  class: "tpl:text-sm tpl:text-[var(--tpl-text)]"
744
- }, Fn = ["aria-label", "title"], In = /* @__PURE__ */ N({
835
+ }, Un = ["aria-label", "title"], Wn = /* @__PURE__ */ N({
745
836
  __name: "MergeTagSegments",
746
837
  props: {
747
838
  segments: {},
@@ -769,7 +860,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
769
860
  "background-color": "color-mix(\n in srgb,\n var(--tpl-primary) 20%,\n transparent\n )",
770
861
  color: "var(--tpl-primary)"
771
862
  }
772
- }, _(e.label), 9, Mn)) : e.type === "logicMergeTag" ? (s(), y("span", {
863
+ }, _(e.label), 9, Bn)) : e.type === "logicMergeTag" ? (s(), y("span", {
773
864
  key: 1,
774
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",
775
866
  "data-tooltip": e.value,
@@ -778,22 +869,22 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
778
869
  border: "1.5px solid\n color-mix(in srgb, var(--tpl-primary) 50%, transparent)",
779
870
  color: "var(--tpl-primary)"
780
871
  }
781
- }, _(e.keyword), 9, Nn)) : (s(), y("span", Pn, _(e.value), 1))], 64))), 128)), D("button", {
872
+ }, _(e.keyword), 9, Vn)) : (s(), y("span", Hn, _(e.value), 1))], 64))), 128)), D("button", {
782
873
  type: "button",
783
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",
784
875
  "aria-label": x(r).mergeTag.remove,
785
876
  title: x(r).mergeTag.remove,
786
877
  onClick: a[0] ||= S((e) => n("clear"), ["stop"])
787
- }, [P(x(Et), {
878
+ }, [P(x(Ot), {
788
879
  size: 12,
789
880
  "stroke-width": 2.5
790
- })], 8, Fn)], 42, jn));
881
+ })], 8, Un)], 42, zn));
791
882
  }
792
- }), Ln = [
883
+ }), Gn = [
793
884
  "aria-label",
794
885
  "title",
795
886
  "disabled"
796
- ], Rn = "tpl:flex tpl:items-center tpl:justify-center tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] hover:tpl:border-[var(--tpl-primary)]", zn = /* @__PURE__ */ N({
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({
797
888
  __name: "MergeTagInsertButton",
798
889
  props: { disabled: { type: Boolean } },
799
890
  emits: ["insert"],
@@ -801,22 +892,22 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
801
892
  let { t } = W();
802
893
  return (n, r) => (s(), y("button", {
803
894
  type: "button",
804
- class: E([Rn, "tpl:mt-1.5"]),
895
+ class: E([Kn, "tpl:mt-1.5"]),
805
896
  "aria-label": x(t).mergeTag.insert,
806
897
  title: x(t).mergeTag.insert,
807
898
  disabled: e.disabled,
808
899
  onMousedown: r[0] ||= S(() => {}, ["prevent"]),
809
900
  onClick: r[1] ||= (e) => n.$emit("insert")
810
- }, [P(x(dt), {
901
+ }, [P(x(ut), {
811
902
  size: 12,
812
903
  "stroke-width": 2
813
- }), M(" " + _(x(t).mergeTag.insertShort), 1)], 42, Ln));
904
+ }), M(" " + _(x(t).mergeTag.insertShort), 1)], 42, Gn));
814
905
  }
815
- }), Bn = [
906
+ }), Jn = [
816
907
  "aria-label",
817
908
  "title",
818
909
  "disabled"
819
- ], Vn = "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)]", Hn = /* @__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({
820
911
  __name: "LogicTagInsertButton",
821
912
  props: { disabled: { type: Boolean } },
822
913
  emits: ["insert"],
@@ -824,29 +915,29 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
824
915
  let { t } = W();
825
916
  return (n, r) => (s(), y("button", {
826
917
  type: "button",
827
- class: E([Vn, "tpl:mt-1.5"]),
918
+ class: E([Yn, "tpl:mt-1.5"]),
828
919
  "aria-label": x(t).logicTag.insert,
829
920
  title: x(t).logicTag.insert,
830
921
  disabled: e.disabled,
831
922
  "data-testid": "field-insert-logic-button",
832
923
  onMousedown: r[0] ||= S(() => {}, ["prevent"]),
833
924
  onClick: r[1] ||= (e) => n.$emit("insert")
834
- }, [P(x(st), {
925
+ }, [P(x(ct), {
835
926
  size: 12,
836
927
  "stroke-width": 2
837
- }), M(" " + _(x(t).logicTag.insertShort), 1)], 42, Bn));
928
+ }), M(" " + _(x(t).logicTag.insertShort), 1)], 42, Jn));
838
929
  }
839
- }), Un = { key: 0 }, Wn = {
930
+ }), Zn = { key: 0 }, Qn = {
840
931
  key: 0,
841
932
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
842
- }, Gn = { key: 1 }, Kn = [
933
+ }, $n = { key: 1 }, er = [
843
934
  "value",
844
935
  "placeholder",
845
936
  "rows"
846
- ], qn = {
937
+ ], tr = {
847
938
  key: 0,
848
939
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
849
- }, Jn = "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)]", Yn = "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)]", Xn = /* @__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({
850
941
  __name: "MergeTagTextarea",
851
942
  props: {
852
943
  modelValue: {},
@@ -855,32 +946,32 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
855
946
  },
856
947
  emits: ["update:modelValue"],
857
948
  setup(e, { emit: t }) {
858
- 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 } = An({
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({
859
950
  modelValue: () => n.modelValue,
860
951
  emit: (e) => r("update:modelValue", e),
861
952
  elementRef: i
862
953
  });
863
- return (t, n) => x(o) && !x(f) ? (s(), y("div", Un, [P(In, {
954
+ return (t, n) => x(o) && !x(f) ? (s(), y("div", Zn, [P(Wn, {
864
955
  segments: x(a),
865
- "display-class": Yn,
956
+ "display-class": rr,
866
957
  onEdit: x(p),
867
958
  onClear: x(S)
868
959
  }, null, 8, [
869
960
  "segments",
870
961
  "onEdit",
871
962
  "onClear"
872
- ]), x(c) || x(u) ? (s(), y("div", Wn, [x(c) ? (s(), C(zn, {
963
+ ]), x(c) || x(u) ? (s(), y("div", Qn, [x(c) ? (s(), C(qn, {
873
964
  key: 0,
874
965
  disabled: x(l),
875
966
  onInsert: x(w)
876
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Hn, {
967
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Xn, {
877
968
  key: 1,
878
969
  disabled: x(d),
879
970
  onInsert: x(T)
880
- }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Gn, [D("textarea", {
971
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", $n, [D("textarea", {
881
972
  ref_key: "textareaRef",
882
973
  ref: i,
883
- class: E(Jn),
974
+ class: E(nr),
884
975
  value: e.modelValue,
885
976
  placeholder: e.placeholder,
886
977
  rows: e.rows,
@@ -888,22 +979,22 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
888
979
  onKeydown: n[1] ||= (...e) => x(g) && x(g)(...e),
889
980
  onClick: n[2] ||= (...e) => x(_) && x(_)(...e),
890
981
  onBlur: n[3] ||= (...e) => x(v) && x(v)(...e)
891
- }, null, 40, Kn), x(c) || x(u) ? (s(), y("div", qn, [x(c) ? (s(), C(zn, {
982
+ }, null, 40, er), x(c) || x(u) ? (s(), y("div", tr, [x(c) ? (s(), C(qn, {
892
983
  key: 0,
893
984
  disabled: x(l),
894
985
  onInsert: x(w)
895
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Hn, {
986
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Xn, {
896
987
  key: 1,
897
988
  disabled: x(d),
898
989
  onInsert: x(T)
899
990
  }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)]));
900
991
  }
901
- }), Zn = { class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]" }, Qn = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:gap-3 tpl:overflow-y-auto tpl:p-4" }, $n = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, er = { class: "tpl:mb-3.5" }, tr = { class: "tpl:grid tpl:grid-cols-4 tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, nr = ["onClick"], rr = { class: "tpl:flex tpl:items-stretch" }, ir = ["value"], ar = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, or = { class: "tpl:mb-3.5" }, sr = { class: "tpl:mb-3.5" }, cr = { class: "tpl:mb-3.5" }, lr = { class: "tpl:mb-3.5" }, ur = ["value"], dr = ["value"], fr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, pr = ["value"], mr = { class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, hr = { class: "tpl:mb-3.5 tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, gr = { class: "tpl:mt-1 tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, _r = { class: "tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, vr = { class: "tpl:shrink-0 tpl:text-xs tpl:tabular-nums tpl:text-[var(--tpl-text-dim)]" }, yr = { class: "tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3" }, br = { 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)]" }, xr = { class: "tpl:m-0 tpl:pl-[18px] tpl:text-xs tpl:leading-relaxed tpl:text-[var(--tpl-text-dim)]" }, Sr = { class: "tpl:mb-1 tpl:last:mb-0" }, Cr = { class: "tpl:mb-1 tpl:last:mb-0" }, wr = { class: "tpl:mb-1 tpl:last:mb-0" }, Tr = 150, Er = /* @__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({
902
993
  __name: "TemplateSettings",
903
994
  props: { settings: {} },
904
995
  emits: ["update"],
905
996
  setup(e, { emit: t }) {
906
- 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 = [
907
998
  {
908
999
  value: 480,
909
1000
  label: "480px"
@@ -921,14 +1012,14 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
921
1012
  label: "800px"
922
1013
  }
923
1014
  ];
924
- return (t, n) => (s(), y("aside", Zn, [D("div", Qn, [
925
- D("div", { class: E(x(Jt)) }, [
926
- D("div", $n, [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), {
927
1018
  class: "tpl:text-[var(--tpl-text-muted)]",
928
1019
  size: 14,
929
1020
  "stroke-width": 2
930
1021
  }), D("span", null, _(x(i).templateSettings.layout), 1)]),
931
- D("div", er, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.widthPreset), 3), D("div", tr, [(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", {
932
1023
  key: t.value,
933
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)]",
934
1025
  style: k({
@@ -937,38 +1028,38 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
937
1028
  boxShadow: e.settings.width === t.value ? "var(--tpl-shadow)" : "none"
938
1029
  }),
939
1030
  onClick: (e) => r("update", { width: t.value })
940
- }, _(t.label), 13, nr)), 64))])]),
941
- D("div", null, [D("label", { class: E(x(q)) }, _(x(i).templateSettings.customWidth), 3), D("div", rr, [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", {
942
1033
  type: "number",
943
1034
  class: E(x(Y)),
944
1035
  value: e.settings.width,
945
1036
  min: "300",
946
1037
  max: "900",
947
1038
  onInput: n[0] ||= (e) => r("update", { width: Number(e.target.value) })
948
- }, null, 42, ir), D("span", { class: E(x(J)) }, "px", 2)])])
1039
+ }, null, 42, fr), D("span", { class: E(x(J)) }, "px", 2)])])
949
1040
  ], 2),
950
- D("div", { class: E(x(Jt)) }, [
951
- D("div", ar, [P(x(ft), {
1041
+ D("div", { class: E(x(Qt)) }, [
1042
+ D("div", pr, [P(x(Tt), {
952
1043
  class: "tpl:text-[var(--tpl-text-muted)]",
953
1044
  size: 14,
954
1045
  "stroke-width": 2
955
1046
  }), D("span", null, _(x(i).templateSettings.appearance), 1)]),
956
- D("div", or, [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, {
957
1048
  "model-value": e.settings.backgroundColor,
958
- placeholder: x(qt),
1049
+ placeholder: x(Zt),
959
1050
  "onUpdate:modelValue": n[1] ||= (e) => r("update", { backgroundColor: e })
960
1051
  }, null, 8, ["model-value", "placeholder"])]),
961
- D("div", sr, [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, {
962
1053
  "model-value": e.settings.textColor ?? "",
963
1054
  "seed-color": "#1a1a1a",
964
1055
  "onUpdate:modelValue": n[2] ||= (e) => r("update", { textColor: e })
965
1056
  }, null, 8, ["model-value"])]),
966
- D("div", cr, [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, {
967
1058
  "model-value": e.settings.linkColor ?? "",
968
1059
  "seed-color": "#0066cc",
969
1060
  "onUpdate:modelValue": n[3] ||= (e) => r("update", { linkColor: e || void 0 })
970
1061
  }, null, 8, ["model-value"])]),
971
- D("div", lr, [P(Z, {
1062
+ D("div", _r, [P(Z, {
972
1063
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
973
1064
  "model-value": e.settings.linkUnderline,
974
1065
  label: x(i).templateSettings.linkUnderline,
@@ -981,9 +1072,9 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
981
1072
  }, [(s(!0), y(j, null, u(o.value, (e) => (s(), y("option", {
982
1073
  key: e.value,
983
1074
  value: e.value
984
- }, _(e.label), 9, dr))), 128))], 42, ur)])
1075
+ }, _(e.label), 9, yr))), 128))], 42, vr)])
985
1076
  ], 2),
986
- D("div", { class: E(x(Jt)) }, [D("div", fr, [P(x(Ct), {
1077
+ D("div", { class: E(x(Qt)) }, [D("div", br, [P(x(ht), {
987
1078
  class: "tpl:text-[var(--tpl-text-muted)]",
988
1079
  size: 14,
989
1080
  "stroke-width": 2
@@ -998,40 +1089,40 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
998
1089
  autocapitalize: "off",
999
1090
  autocomplete: "off",
1000
1091
  onInput: n[6] ||= (e) => r("update", { locale: e.target.value.trim() || void 0 })
1001
- }, null, 42, pr),
1002
- D("p", mr, _(x(i).templateSettings.contentLocaleHint), 1)
1092
+ }, null, 42, xr),
1093
+ D("p", Sr, _(x(i).templateSettings.contentLocaleHint), 1)
1003
1094
  ])], 2),
1004
- D("div", { class: E(x(Jt)) }, [D("div", hr, [P(x(_t), {
1095
+ D("div", { class: E(x(Qt)) }, [D("div", Cr, [P(x(it), {
1005
1096
  class: "tpl:text-[var(--tpl-text-muted)]",
1006
1097
  size: 14,
1007
1098
  "stroke-width": 2
1008
- }), D("span", null, _(x(i).templateSettings.preheaderText), 1)]), D("div", null, [P(Xn, {
1099
+ }), D("span", null, _(x(i).templateSettings.preheaderText), 1)]), D("div", null, [P(ir, {
1009
1100
  "model-value": e.settings.preheaderText ?? "",
1010
1101
  placeholder: x(i).templateSettings.preheaderTextPlaceholder,
1011
1102
  rows: 2,
1012
1103
  "onUpdate:modelValue": n[7] ||= (e) => r("update", { preheaderText: e.replace(/[\r\n]/g, " ") || void 0 })
1013
- }, null, 8, ["model-value", "placeholder"]), D("div", gr, [D("span", _r, _(x(i).templateSettings.preheaderTextHint), 1), D("span", vr, _((e.settings.preheaderText ?? "").length) + "/" + _(Tr), 1)])])], 2),
1014
- D("div", yr, [D("div", br, [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), {
1015
1106
  size: 14,
1016
1107
  "stroke-width": 2
1017
- }), D("span", null, _(x(i).templateSettings.tips), 1)]), D("ul", xr, [
1018
- D("li", Sr, _(x(i).templateSettings.tip1), 1),
1019
- D("li", Cr, _(x(i).templateSettings.tip2), 1),
1020
- D("li", wr, _(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)
1021
1112
  ])])
1022
1113
  ])]));
1023
1114
  }
1024
- }), Dr = { key: 0 }, Or = {
1115
+ }), Fr = { key: 0 }, Ir = {
1025
1116
  key: 0,
1026
1117
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1027
- }, kr = { key: 1 }, Ar = [
1118
+ }, Lr = { key: 1 }, Rr = [
1028
1119
  "type",
1029
1120
  "value",
1030
1121
  "placeholder"
1031
- ], jr = {
1122
+ ], zr = {
1032
1123
  key: 0,
1033
1124
  class: "tpl:flex tpl:flex-wrap tpl:gap-1.5"
1034
- }, Mr = "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({
1035
1126
  __name: "MergeTagInput",
1036
1127
  props: {
1037
1128
  modelValue: {},
@@ -1044,14 +1135,14 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1044
1135
  },
1045
1136
  emits: ["update:modelValue"],
1046
1137
  setup(e, { emit: t }) {
1047
- 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 } = An({
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({
1048
1139
  modelValue: () => n.modelValue,
1049
1140
  emit: (e) => r("update:modelValue", e),
1050
1141
  elementRef: i
1051
1142
  });
1052
- return (t, n) => x(o) && !x(f) ? (s(), y("div", Dr, [P(In, {
1143
+ return (t, n) => x(o) && !x(f) ? (s(), y("div", Fr, [P(Wn, {
1053
1144
  segments: x(a),
1054
- "display-class": Mr,
1145
+ "display-class": Br,
1055
1146
  pulse: e.pulse,
1056
1147
  onEdit: x(p),
1057
1148
  onClear: x(S)
@@ -1060,15 +1151,15 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1060
1151
  "pulse",
1061
1152
  "onEdit",
1062
1153
  "onClear"
1063
- ]), x(c) || x(u) ? (s(), y("div", Or, [x(c) ? (s(), C(zn, {
1154
+ ]), x(c) || x(u) ? (s(), y("div", Ir, [x(c) ? (s(), C(qn, {
1064
1155
  key: 0,
1065
1156
  disabled: x(l),
1066
1157
  onInsert: x(w)
1067
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Hn, {
1158
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Xn, {
1068
1159
  key: 1,
1069
1160
  disabled: x(d),
1070
1161
  onInsert: x(T)
1071
- }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", kr, [D("input", {
1162
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)])) : (s(), y("div", Lr, [D("input", {
1072
1163
  ref_key: "inputRef",
1073
1164
  ref: i,
1074
1165
  type: e.type,
@@ -1079,20 +1170,20 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1079
1170
  onKeydown: n[1] ||= (...e) => x(g) && x(g)(...e),
1080
1171
  onClick: n[2] ||= (...e) => x(_) && x(_)(...e),
1081
1172
  onBlur: n[3] ||= (...e) => x(v) && x(v)(...e)
1082
- }, null, 42, Ar), x(c) || x(u) ? (s(), y("div", jr, [x(c) ? (s(), C(zn, {
1173
+ }, null, 42, Rr), x(c) || x(u) ? (s(), y("div", zr, [x(c) ? (s(), C(qn, {
1083
1174
  key: 0,
1084
1175
  disabled: x(l),
1085
1176
  onInsert: x(w)
1086
- }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Hn, {
1177
+ }, null, 8, ["disabled", "onInsert"])) : b("", !0), x(u) ? (s(), C(Xn, {
1087
1178
  key: 1,
1088
1179
  disabled: x(d),
1089
1180
  onInsert: x(T)
1090
1181
  }, null, 8, ["disabled", "onInsert"])) : b("", !0)])) : b("", !0)]));
1091
1182
  }
1092
- }), [["__scopeId", "data-v-d6563be6"]]), Nr = { class: "tpl:mb-3.5" }, Pr = ["value"], Fr = { value: "" }, Ir = ["value"], Lr = { class: "tpl:mb-3.5" }, Rr = { class: "tpl:mb-3.5" }, zr = { class: "tpl:mb-3.5" }, Br = { class: "tpl:mb-3.5" }, Vr = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Hr = { class: "tpl:mb-3.5" }, Ur = { class: "tpl:flex tpl:items-stretch" }, Wr = ["value"], Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:flex tpl:items-stretch" }, qr = ["value"], Jr = { class: "tpl:mb-3.5" }, Yr = ["value"], Xr = { value: "auto" }, Zr = { value: "full" }, Qr = { value: "custom" }, $r = {
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 = {
1093
1184
  key: 0,
1094
1185
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1095
- }, ei = ["value"], ti = 200, ni = /* @__PURE__ */ N({
1186
+ }, ci = ["value"], li = 200, ui = /* @__PURE__ */ N({
1096
1187
  __name: "ButtonToolbar",
1097
1188
  props: {
1098
1189
  block: {},
@@ -1110,7 +1201,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1110
1201
  return;
1111
1202
  }
1112
1203
  if (e === "custom") {
1113
- o("width", typeof n.block.width == "number" ? n.block.width : ti);
1204
+ o("width", typeof n.block.width == "number" ? n.block.width : li);
1114
1205
  return;
1115
1206
  }
1116
1207
  o("width", void 0);
@@ -1120,20 +1211,20 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1120
1211
  !Number.isFinite(t) || t <= 0 || o("width", t);
1121
1212
  }
1122
1213
  return (t, n) => (s(), y(j, null, [
1123
- D("div", Nr, [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", {
1124
1215
  class: E(x(K)),
1125
1216
  value: e.block.fontFamily || "",
1126
1217
  onChange: n[0] ||= (e) => o("fontFamily", e.target.value || void 0)
1127
- }, [D("option", Fr, _(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", {
1128
1219
  key: e.value,
1129
1220
  value: e.value
1130
- }, _(e.label), 9, Ir))), 128))], 42, Pr)]),
1131
- D("div", Lr, [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($, {
1132
1223
  "model-value": e.block.text,
1133
1224
  type: "text",
1134
1225
  "onUpdate:modelValue": n[1] ||= (e) => o("text", e)
1135
1226
  }, null, 8, ["model-value"])]),
1136
- D("div", Rr, [
1227
+ D("div", Kr, [
1137
1228
  D("label", { class: E(x(q)) }, _(x(i).button.url), 3),
1138
1229
  P($, {
1139
1230
  "model-value": e.block.url,
@@ -1149,51 +1240,51 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1149
1240
  "onUpdate:modelValue": n[3] ||= (e) => o("openInNewTab", e)
1150
1241
  }, null, 8, ["model-value", "label"])) : b("", !0)
1151
1242
  ]),
1152
- D("div", zr, [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, {
1153
1244
  "model-value": e.block.backgroundColor,
1154
1245
  "onUpdate:modelValue": n[4] ||= (e) => o("backgroundColor", e)
1155
1246
  }, null, 8, ["model-value"])]),
1156
- D("div", Br, [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, {
1157
1248
  "model-value": e.block.textColor,
1158
1249
  "onUpdate:modelValue": n[5] ||= (e) => o("textColor", e)
1159
1250
  }, null, 8, ["model-value"])]),
1160
- D("div", Vr, [D("div", Hr, [D("label", { class: E(x(q)) }, _(x(i).button.borderRadius), 3), D("div", Ur, [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", {
1161
1252
  type: "number",
1162
1253
  class: E(x(Y)),
1163
1254
  value: e.block.borderRadius,
1164
1255
  min: "0",
1165
1256
  max: "50",
1166
1257
  onInput: n[6] ||= (e) => o("borderRadius", Number(e.target.value))
1167
- }, null, 42, Wr), D("span", { class: E(x(J)) }, "px", 2)])]), D("div", Gr, [D("label", { class: E(x(q)) }, _(x(i).button.fontSize), 3), D("div", Kr, [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", {
1168
1259
  type: "number",
1169
1260
  class: E(x(Y)),
1170
1261
  value: e.block.fontSize,
1171
1262
  min: "10",
1172
1263
  max: "36",
1173
1264
  onInput: n[7] ||= (e) => o("fontSize", Number(e.target.value))
1174
- }, null, 42, qr), D("span", { class: E(x(J)) }, "px", 2)])])]),
1175
- D("div", Jr, [
1265
+ }, null, 42, ti), D("span", { class: E(x(J)) }, "px", 2)])])]),
1266
+ D("div", ni, [
1176
1267
  D("label", { class: E(x(q)) }, _(x(i).button.width), 3),
1177
1268
  D("select", {
1178
1269
  class: E(x(K)),
1179
1270
  value: a.value,
1180
1271
  onChange: n[8] ||= (e) => c(e.target.value)
1181
1272
  }, [
1182
- D("option", Xr, _(x(i).button.widthAuto), 1),
1183
- D("option", Zr, _(x(i).button.fullWidth), 1),
1184
- D("option", Qr, _(x(i).button.widthCustom), 1)
1185
- ], 42, Yr),
1186
- a.value === "custom" ? (s(), y("div", $r, [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", {
1187
1278
  type: "number",
1188
1279
  class: E(x(Y)),
1189
- value: typeof e.block.width == "number" ? e.block.width : ti,
1280
+ value: typeof e.block.width == "number" ? e.block.width : li,
1190
1281
  min: "20",
1191
1282
  onInput: n[9] ||= (e) => l(e.target.value)
1192
- }, null, 42, ei), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
1283
+ }, null, 42, ci), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
1193
1284
  ])
1194
1285
  ], 64));
1195
1286
  }
1196
- }), ri = { class: "spacing-control" }, ii = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ai = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, oi = { class: "tpl:flex tpl:items-center" }, si = ["aria-label"], ci = ["value", "aria-label"], li = ["aria-label"], ui = { class: "tpl:flex tpl:items-center tpl:gap-2" }, di = { class: "tpl:flex tpl:items-center" }, fi = ["aria-label"], pi = ["value", "aria-label"], mi = ["aria-label"], hi = ["aria-label", "title"], gi = { class: "tpl:flex tpl:items-center" }, _i = ["aria-label"], vi = ["value", "aria-label"], yi = ["aria-label"], bi = { class: "tpl:flex tpl:items-center" }, xi = ["aria-label"], Si = ["value", "aria-label"], Ci = ["aria-label"], wi = "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)]", Ti = "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)]", Ei = /*#__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({
1197
1288
  __name: "SpacingControl",
1198
1289
  props: {
1199
1290
  modelValue: {},
@@ -1240,130 +1331,130 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1240
1331
  });
1241
1332
  }
1242
1333
  }
1243
- return (t, n) => (s(), y("div", ri, [D("label", ii, _(e.label), 1), D("div", ai, [
1244
- D("div", oi, [
1334
+ return (t, n) => (s(), y("div", di, [D("label", fi, _(e.label), 1), D("div", pi, [
1335
+ D("div", mi, [
1245
1336
  D("button", {
1246
1337
  "aria-label": x(i).spacingControl.decreaseTop,
1247
- class: E([wi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1338
+ class: E([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1248
1339
  onClick: n[0] ||= (e) => c("top", -1)
1249
- }, [P(x(et), {
1340
+ }, [P(x(vt), {
1250
1341
  size: 12,
1251
1342
  "stroke-width": 2
1252
- })], 10, si),
1343
+ })], 10, hi),
1253
1344
  D("input", {
1254
1345
  type: "number",
1255
- class: E(Ti),
1346
+ class: E(Ni),
1256
1347
  value: e.modelValue.top,
1257
1348
  "aria-label": x(i).spacingControl.top,
1258
1349
  min: "0",
1259
1350
  onInput: n[1] ||= (e) => l("top", Number(e.target.value))
1260
- }, null, 40, ci),
1351
+ }, null, 40, gi),
1261
1352
  D("button", {
1262
1353
  "aria-label": x(i).spacingControl.increaseTop,
1263
- class: E([wi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1354
+ class: E([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1264
1355
  onClick: n[2] ||= (e) => c("top", 1)
1265
1356
  }, [P(x(G), {
1266
1357
  size: 12,
1267
1358
  "stroke-width": 2
1268
- })], 10, li)
1359
+ })], 10, _i)
1269
1360
  ]),
1270
- D("div", ui, [
1271
- D("div", di, [
1361
+ D("div", vi, [
1362
+ D("div", yi, [
1272
1363
  D("button", {
1273
1364
  "aria-label": x(i).spacingControl.decreaseLeft,
1274
- class: E([wi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1365
+ class: E([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1275
1366
  onClick: n[3] ||= (e) => c("left", -1)
1276
- }, [P(x(et), {
1367
+ }, [P(x(vt), {
1277
1368
  size: 12,
1278
1369
  "stroke-width": 2
1279
- })], 10, fi),
1370
+ })], 10, bi),
1280
1371
  D("input", {
1281
1372
  type: "number",
1282
- class: E(Ti),
1373
+ class: E(Ni),
1283
1374
  value: e.modelValue.left,
1284
1375
  "aria-label": x(i).spacingControl.left,
1285
1376
  min: "0",
1286
1377
  onInput: n[4] ||= (e) => l("left", Number(e.target.value))
1287
- }, null, 40, pi),
1378
+ }, null, 40, xi),
1288
1379
  D("button", {
1289
1380
  "aria-label": x(i).spacingControl.increaseLeft,
1290
- class: E([wi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1381
+ class: E([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1291
1382
  onClick: n[5] ||= (e) => c("left", 1)
1292
1383
  }, [P(x(G), {
1293
1384
  size: 12,
1294
1385
  "stroke-width": 2
1295
- })], 10, mi)
1386
+ })], 10, Si)
1296
1387
  ]),
1297
1388
  D("button", {
1298
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)]"]),
1299
1390
  "aria-label": o.value ? x(i).spacingControl.unlock : x(i).spacingControl.lockAll,
1300
1391
  title: o.value ? x(i).spacingControl.unlock : x(i).spacingControl.lockAll,
1301
1392
  onClick: u
1302
- }, [o.value ? (s(), C(x(Mt), {
1393
+ }, [o.value ? (s(), C(x(kt), {
1303
1394
  key: 0,
1304
1395
  size: 14,
1305
1396
  "stroke-width": 2
1306
- })) : (s(), C(x(Dt), {
1397
+ })) : (s(), C(x(Mt), {
1307
1398
  key: 1,
1308
1399
  size: 14,
1309
1400
  "stroke-width": 2
1310
- }))], 10, hi),
1311
- D("div", gi, [
1401
+ }))], 10, Ci),
1402
+ D("div", wi, [
1312
1403
  D("button", {
1313
1404
  "aria-label": x(i).spacingControl.decreaseRight,
1314
- class: E([wi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1405
+ class: E([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1315
1406
  onClick: n[6] ||= (e) => c("right", -1)
1316
- }, [P(x(et), {
1407
+ }, [P(x(vt), {
1317
1408
  size: 12,
1318
1409
  "stroke-width": 2
1319
- })], 10, _i),
1410
+ })], 10, Ti),
1320
1411
  D("input", {
1321
1412
  type: "number",
1322
- class: E(Ti),
1413
+ class: E(Ni),
1323
1414
  value: e.modelValue.right,
1324
1415
  "aria-label": x(i).spacingControl.right,
1325
1416
  min: "0",
1326
1417
  onInput: n[7] ||= (e) => l("right", Number(e.target.value))
1327
- }, null, 40, vi),
1418
+ }, null, 40, Ei),
1328
1419
  D("button", {
1329
1420
  "aria-label": x(i).spacingControl.increaseRight,
1330
- class: E([wi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1421
+ class: E([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1331
1422
  onClick: n[8] ||= (e) => c("right", 1)
1332
1423
  }, [P(x(G), {
1333
1424
  size: 12,
1334
1425
  "stroke-width": 2
1335
- })], 10, yi)
1426
+ })], 10, Di)
1336
1427
  ])
1337
1428
  ]),
1338
- D("div", bi, [
1429
+ D("div", Oi, [
1339
1430
  D("button", {
1340
1431
  "aria-label": x(i).spacingControl.decreaseBottom,
1341
- class: E([wi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1432
+ class: E([Mi, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
1342
1433
  onClick: n[9] ||= (e) => c("bottom", -1)
1343
- }, [P(x(et), {
1434
+ }, [P(x(vt), {
1344
1435
  size: 12,
1345
1436
  "stroke-width": 2
1346
- })], 10, xi),
1437
+ })], 10, ki),
1347
1438
  D("input", {
1348
1439
  type: "number",
1349
- class: E(Ti),
1440
+ class: E(Ni),
1350
1441
  value: e.modelValue.bottom,
1351
1442
  "aria-label": x(i).spacingControl.bottom,
1352
1443
  min: "0",
1353
1444
  onInput: n[10] ||= (e) => l("bottom", Number(e.target.value))
1354
- }, null, 40, Si),
1445
+ }, null, 40, Ai),
1355
1446
  D("button", {
1356
1447
  "aria-label": x(i).spacingControl.increaseBottom,
1357
- class: E([wi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1448
+ class: E([Mi, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
1358
1449
  onClick: n[11] ||= (e) => c("bottom", 1)
1359
1450
  }, [P(x(G), {
1360
1451
  size: 12,
1361
1452
  "stroke-width": 2
1362
- })], 10, Ci)
1453
+ })], 10, ji)
1363
1454
  ])
1364
1455
  ])]));
1365
1456
  }
1366
- }), [["__scopeId", "data-v-9a9c8a07"]]), Di = { class: "tpl:mt-3" }, Oi = /* @__PURE__ */ N({
1457
+ }), [["__scopeId", "data-v-9a9c8a07"]]), Fi = { class: "tpl:mt-3" }, Ii = /* @__PURE__ */ N({
1367
1458
  __name: "CollapsibleSection",
1368
1459
  props: {
1369
1460
  title: {},
@@ -1376,25 +1467,25 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1376
1467
  type: "button",
1377
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)]",
1378
1469
  onClick: i[0] ||= (e) => n.$emit("toggle")
1379
- }, [P(x(pt), {
1470
+ }, [P(x(st), {
1380
1471
  class: E(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
1381
1472
  size: 12,
1382
1473
  "stroke-width": 2
1383
- }, null, 8, ["class"]), D("span", null, _(e.title), 1)]), r(D("div", Di, [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));
1384
1475
  }
1385
- }), ki = { class: "tpl:space-y-2" }, Ai = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ji = { class: "tpl:space-y-2" }, Mi = ["value"], Ni = { value: "" }, Pi = ["label"], Fi = ["value"], Ii = ["value"], Li = {
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 = {
1386
1477
  key: 0,
1387
1478
  value: "__custom__"
1388
- }, Ri = {
1479
+ }, Ki = {
1389
1480
  key: 0,
1390
1481
  class: "tpl:space-y-2"
1391
- }, zi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Bi = { class: "tpl:mb-1 tpl:block tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Vi = { class: "tpl:flex tpl:justify-end" }, Hi = ["disabled"], Ui = {
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 = {
1392
1483
  key: 0,
1393
1484
  class: "tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]"
1394
- }, Wi = { class: "tpl:space-y-1" }, Gi = { 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)]" }, Ki = {
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 = {
1395
1486
  key: 0,
1396
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)]"
1397
- }, qi = /* @__PURE__ */ N({
1488
+ }, ta = /* @__PURE__ */ N({
1398
1489
  __name: "CommonBlockSettings",
1399
1490
  props: {
1400
1491
  block: {},
@@ -1402,9 +1493,9 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1402
1493
  },
1403
1494
  emits: ["update"],
1404
1495
  setup(e, { emit: t }) {
1405
- 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 = [{
1406
1497
  key: "desktop",
1407
- icon: mt,
1498
+ icon: nt,
1408
1499
  labelKey: "showOnDesktop"
1409
1500
  }, {
1410
1501
  key: "mobile",
@@ -1457,13 +1548,13 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1457
1548
  t[e] = !t[e], i("update", { visibility: t });
1458
1549
  }
1459
1550
  return (t, n) => (s(), y("div", { class: E(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1460
- P(Oi, {
1551
+ P(Ii, {
1461
1552
  title: x(a).blockSettings.spacing,
1462
1553
  open: h.has("spacing"),
1463
1554
  "no-border": e.isFirstSection,
1464
1555
  onToggle: n[1] ||= (e) => k("spacing")
1465
1556
  }, {
1466
- default: f(() => [P(Ei, {
1557
+ default: f(() => [P(Pi, {
1467
1558
  label: x(a).blockSettings.padding,
1468
1559
  "model-value": e.block.styles.padding,
1469
1560
  "onUpdate:modelValue": n[0] ||= (e) => z("padding", e)
@@ -1474,7 +1565,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1474
1565
  "open",
1475
1566
  "no-border"
1476
1567
  ]),
1477
- P(Oi, {
1568
+ P(Ii, {
1478
1569
  title: x(a).blockSettings.background,
1479
1570
  open: h.has("bg"),
1480
1571
  onToggle: n[3] ||= (e) => k("bg")
@@ -1485,19 +1576,19 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1485
1576
  }, null, 8, ["model-value"])]),
1486
1577
  _: 1
1487
1578
  }, 8, ["title", "open"]),
1488
- P(Oi, {
1579
+ P(Ii, {
1489
1580
  title: x(a).blockSettings.display,
1490
1581
  open: h.has("display"),
1491
1582
  onToggle: n[4] ||= (e) => k("display")
1492
1583
  }, {
1493
- default: f(() => [D("div", ki, [(s(), y(j, null, u(O, (e) => P(Z, {
1584
+ default: f(() => [D("div", Li, [(s(), y(j, null, u(O, (e) => P(Z, {
1494
1585
  key: e.key,
1495
1586
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1496
1587
  "model-value": B(e.key),
1497
1588
  label: x(a).blockSettings[e.labelKey],
1498
1589
  "onUpdate:modelValue": (t) => V(e.key)
1499
1590
  }, {
1500
- default: f(() => [D("span", Ai, [(s(), C(o(e.icon), {
1591
+ default: f(() => [D("span", Ri, [(s(), C(o(e.icon), {
1501
1592
  size: 14,
1502
1593
  "stroke-width": 1.5
1503
1594
  })), M(" " + _(x(a).blockSettings[e.labelKey]), 1)])]),
@@ -1509,13 +1600,13 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1509
1600
  ])), 64))])]),
1510
1601
  _: 1
1511
1602
  }, 8, ["title", "open"]),
1512
- A.value ? (s(), C(Oi, {
1603
+ A.value ? (s(), C(Ii, {
1513
1604
  key: 0,
1514
1605
  title: x(a).blockSettings.displayCondition,
1515
1606
  open: h.has("condition"),
1516
1607
  onToggle: n[8] ||= (e) => k("condition")
1517
1608
  }, {
1518
- default: f(() => [D("div", ji, [D("select", {
1609
+ default: f(() => [D("div", zi, [D("select", {
1519
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)]"]),
1520
1611
  value: g.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1521
1612
  onChange: n[5] ||= (e) => {
@@ -1532,41 +1623,41 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1532
1623
  n && i("update", { displayCondition: n });
1533
1624
  }
1534
1625
  }, [
1535
- D("option", Ni, _(x(a).blockSettings.noCondition), 1),
1626
+ D("option", Vi, _(x(a).blockSettings.noCondition), 1),
1536
1627
  (s(!0), y(j, null, u(R.value, (e, t) => (s(), y(j, { key: t }, [t ? (s(), y("optgroup", {
1537
1628
  key: 0,
1538
1629
  label: String(t)
1539
1630
  }, [(s(!0), y(j, null, u(e, (e) => (s(), y("option", {
1540
1631
  key: e.label,
1541
1632
  value: e.label
1542
- }, _(e.label), 9, Fi))), 128))], 8, Pi)) : (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", {
1543
1634
  key: e.label,
1544
1635
  value: e.label
1545
- }, _(e.label), 9, Ii))), 128))], 64))), 128)),
1546
- x(l) ? (s(), y("option", Li, _(x(a).blockSettings.customCondition), 1)) : b("", !0)
1547
- ], 42, Mi), g.value || N.value ? (s(), y("div", Ri, [
1548
- D("div", null, [D("label", zi, _(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", {
1549
1640
  "onUpdate:modelValue": n[6] ||= (e) => S.value = e,
1550
1641
  rows: "2",
1551
- class: E(x(Wt))
1642
+ class: E(x(Jt))
1552
1643
  }, null, 2), [[T, S.value]])]),
1553
- D("div", null, [D("label", Bi, _(x(a).blockSettings.customConditionAfter), 1), r(D("textarea", {
1644
+ D("div", null, [D("label", Ji, _(x(a).blockSettings.customConditionAfter), 1), r(D("textarea", {
1554
1645
  "onUpdate:modelValue": n[7] ||= (e) => w.value = e,
1555
1646
  rows: "2",
1556
- class: E(x(Wt))
1647
+ class: E(x(Jt))
1557
1648
  }, null, 2), [[T, w.value]])]),
1558
- D("div", Vi, [D("button", {
1649
+ D("div", Yi, [D("button", {
1559
1650
  type: "button",
1560
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",
1561
1652
  disabled: !S.value.trim(),
1562
1653
  onClick: L
1563
- }, _(x(a).blockSettings.applyCondition), 9, Hi)])
1564
- ])) : e.block.displayCondition && !N.value ? (s(), y(j, { key: 1 }, [e.block.displayCondition.description ? (s(), y("p", Ui, _(e.block.displayCondition.description), 1)) : b("", !0), D("div", Wi, [D("pre", Gi, _(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (s(), y("pre", Ki, _(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)])]),
1565
1656
  _: 1
1566
1657
  }, 8, ["title", "open"])) : b("", !0)
1567
1658
  ], 2));
1568
1659
  }
1569
- }), Ji = ["title"], Yi = /* @__PURE__ */ N({
1660
+ }), na = ["title"], ra = /* @__PURE__ */ N({
1570
1661
  __name: "BooleanField",
1571
1662
  props: {
1572
1663
  field: {},
@@ -1587,7 +1678,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1587
1678
  disabled: e.readOnly,
1588
1679
  "onUpdate:modelValue": i[0] ||= (e) => n("update:modelValue", e)
1589
1680
  }, {
1590
- 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), {
1591
1682
  key: 0,
1592
1683
  size: 12,
1593
1684
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -1598,12 +1689,12 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1598
1689
  "label",
1599
1690
  "required",
1600
1691
  "disabled"
1601
- ])], 8, Ji));
1692
+ ])], 8, na));
1602
1693
  }
1603
- }), Xi = { class: "tpl:mb-3.5" }, Zi = {
1694
+ }), ia = { class: "tpl:mb-3.5" }, aa = {
1604
1695
  key: 1,
1605
1696
  class: "tpl:text-[var(--tpl-danger)]"
1606
- }, Qi = /* @__PURE__ */ N({
1697
+ }, oa = /* @__PURE__ */ N({
1607
1698
  __name: "FieldWrapper",
1608
1699
  props: {
1609
1700
  label: {},
@@ -1611,17 +1702,17 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1611
1702
  readOnly: { type: Boolean }
1612
1703
  },
1613
1704
  setup(e) {
1614
- return (n, r) => (s(), y("div", Xi, [D("label", { class: E(x(q)) }, [
1705
+ return (n, r) => (s(), y("div", ia, [D("label", { class: E(x(q)) }, [
1615
1706
  M(_(e.label) + " ", 1),
1616
- e.readOnly ? (s(), C(x(Mt), {
1707
+ e.readOnly ? (s(), C(x(kt), {
1617
1708
  key: 0,
1618
1709
  size: 12,
1619
1710
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
1620
1711
  })) : b("", !0),
1621
- e.required ? (s(), y("span", Zi, "*")) : b("", !0)
1712
+ e.required ? (s(), y("span", aa, "*")) : b("", !0)
1622
1713
  ], 2), t(n.$slots, "default")]));
1623
1714
  }
1624
- }), $i = /* @__PURE__ */ N({
1715
+ }), sa = /* @__PURE__ */ N({
1625
1716
  __name: "ColorField",
1626
1717
  props: {
1627
1718
  field: {},
@@ -1630,8 +1721,8 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1630
1721
  },
1631
1722
  emits: ["update:modelValue"],
1632
1723
  setup(e, { emit: t }) {
1633
- let n = e, r = t, { t: i } = W(), a = d(We, Qe), o = v(() => re(n.field, a));
1634
- return (t, n) => (s(), C(Qi, {
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, {
1635
1726
  label: e.field.label,
1636
1727
  required: e.field.required,
1637
1728
  "read-only": e.readOnly
@@ -1659,15 +1750,15 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1659
1750
  "read-only"
1660
1751
  ]));
1661
1752
  }
1662
- }), ea = {
1753
+ }), ca = {
1663
1754
  key: 0,
1664
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)]",
1665
1756
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1666
- }, ta = [
1757
+ }, la = [
1667
1758
  "value",
1668
1759
  "placeholder",
1669
1760
  "title"
1670
- ], na = ["value", "placeholder"], ra = /* @__PURE__ */ N({
1761
+ ], ua = ["value", "placeholder"], da = /* @__PURE__ */ N({
1671
1762
  __name: "ImageField",
1672
1763
  props: {
1673
1764
  field: {},
@@ -1676,7 +1767,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1676
1767
  },
1677
1768
  emits: ["update:modelValue"],
1678
1769
  setup(e, { emit: t }) {
1679
- 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);
1680
1771
  async function l() {
1681
1772
  let e = await a?.({ accept: ["images"] });
1682
1773
  o.alive && e && r("update:modelValue", e.url);
@@ -1702,7 +1793,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1702
1793
  enabled: h,
1703
1794
  onFiles: g
1704
1795
  });
1705
- return (t, n) => (s(), C(Qi, {
1796
+ return (t, n) => (s(), C(oa, {
1706
1797
  label: e.field.label,
1707
1798
  required: e.field.required,
1708
1799
  "read-only": e.readOnly
@@ -1712,11 +1803,11 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1712
1803
  ref: u,
1713
1804
  class: "tpl:relative"
1714
1805
  }, [
1715
- h.value && (x(S) || p.value) ? (s(), y("div", ea, [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), {
1716
1807
  class: "tpl-spinner",
1717
1808
  size: 18,
1718
1809
  "stroke-width": 2
1719
- }), 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), {
1720
1811
  size: 18,
1721
1812
  "stroke-width": 1.5
1722
1813
  }), M(" " + _(x(i).image.dropToUpload), 1)], 64))])) : b("", !0),
@@ -1728,19 +1819,19 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1728
1819
  placeholder: e.field.placeholder || "https://...",
1729
1820
  disabled: "",
1730
1821
  title: x(i).customBlocks.dataSource.readOnlyTooltip
1731
- }, null, 10, ta)) : (s(), y("input", {
1822
+ }, null, 10, la)) : (s(), y("input", {
1732
1823
  key: 2,
1733
1824
  type: "url",
1734
1825
  class: E(x(K)),
1735
1826
  value: e.modelValue,
1736
1827
  placeholder: e.field.placeholder || "https://...",
1737
1828
  onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
1738
- }, null, 42, na)),
1829
+ }, null, 42, ua)),
1739
1830
  c.value && !e.readOnly ? (s(), y("button", {
1740
1831
  key: 3,
1741
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)]",
1742
1833
  onClick: n[1] ||= (e) => l()
1743
- }, [P(x(xt), {
1834
+ }, [P(x(yt), {
1744
1835
  size: 14,
1745
1836
  "stroke-width": 1.5
1746
1837
  }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
@@ -1752,7 +1843,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1752
1843
  "read-only"
1753
1844
  ]));
1754
1845
  }
1755
- }), ia = [
1846
+ }), fa = [
1756
1847
  "value",
1757
1848
  "placeholder",
1758
1849
  "min",
@@ -1760,7 +1851,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1760
1851
  "step",
1761
1852
  "disabled",
1762
1853
  "title"
1763
- ], aa = /* @__PURE__ */ N({
1854
+ ], pa = /* @__PURE__ */ N({
1764
1855
  __name: "NumberField",
1765
1856
  props: {
1766
1857
  field: {},
@@ -1770,7 +1861,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1770
1861
  emits: ["update:modelValue"],
1771
1862
  setup(e, { emit: t }) {
1772
1863
  let n = t, { t: r } = W();
1773
- return (t, i) => (s(), C(Qi, {
1864
+ return (t, i) => (s(), C(oa, {
1774
1865
  label: e.field.label,
1775
1866
  required: e.field.required,
1776
1867
  "read-only": e.readOnly
@@ -1786,7 +1877,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1786
1877
  disabled: e.readOnly,
1787
1878
  title: e.readOnly ? x(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1788
1879
  onInput: i[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
1789
- }, null, 42, ia)]),
1880
+ }, null, 42, fa)]),
1790
1881
  _: 1
1791
1882
  }, 8, [
1792
1883
  "label",
@@ -1794,10 +1885,10 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1794
1885
  "read-only"
1795
1886
  ]));
1796
1887
  }
1797
- }), oa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, sa = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, ca = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, la = ["title", "onClick"], ua = {
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 = {
1798
1889
  key: 1,
1799
1890
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1800
- }, da = /* @__PURE__ */ N({
1891
+ }, ya = /* @__PURE__ */ N({
1801
1892
  __name: "RepeatableField",
1802
1893
  props: {
1803
1894
  field: {},
@@ -1825,25 +1916,25 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1825
1916
  } : r);
1826
1917
  r("update:modelValue", i);
1827
1918
  }
1828
- return (t, n) => (s(), C(Qi, {
1919
+ return (t, n) => (s(), C(oa, {
1829
1920
  label: e.field.label,
1830
1921
  required: e.field.required,
1831
1922
  "read-only": e.readOnly
1832
1923
  }, {
1833
- default: f(() => [D("div", oa, [
1924
+ default: f(() => [D("div", ma, [
1834
1925
  (s(!0), y(j, null, u(a.value, (t, n) => (s(), y("div", {
1835
1926
  key: `${e.field.key}-${n}`,
1836
1927
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1837
- }, [D("div", sa, [D("span", ca, " #" + _(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", {
1838
1929
  key: 0,
1839
1930
  type: "button",
1840
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)]",
1841
1932
  title: x(i).customBlocks.fields.removeItem,
1842
1933
  onClick: (e) => p(n)
1843
- }, [P(x(bt), {
1934
+ }, [P(x(gt), {
1844
1935
  size: 12,
1845
1936
  "stroke-width": 2
1846
- })], 8, la)) : b("", !0)]), (s(!0), y(j, null, u(e.field.fields, (r) => (s(), C(o(x(ba)(r.type)), {
1937
+ })], 8, _a)) : b("", !0)]), (s(!0), y(j, null, u(e.field.fields, (r) => (s(), C(o(x(Oa)(r.type)), {
1847
1938
  key: r.key,
1848
1939
  field: r,
1849
1940
  "model-value": t[r.key],
@@ -1858,13 +1949,13 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1858
1949
  c.value && !e.readOnly ? (s(), y("button", {
1859
1950
  key: 0,
1860
1951
  type: "button",
1861
- class: E(x(Kt)),
1952
+ class: E(x(Xt)),
1862
1953
  onClick: d
1863
1954
  }, [P(x(G), {
1864
1955
  size: 14,
1865
1956
  "stroke-width": 2
1866
1957
  }), M(" " + _(x(i).customBlocks.fields.addItem), 1)], 2)) : b("", !0),
1867
- !c.value && !e.readOnly ? (s(), y("p", ua, _(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)
1868
1959
  ])]),
1869
1960
  _: 1
1870
1961
  }, 8, [
@@ -1873,11 +1964,11 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1873
1964
  "read-only"
1874
1965
  ]));
1875
1966
  }
1876
- }), fa = [
1967
+ }), ba = [
1877
1968
  "value",
1878
1969
  "disabled",
1879
1970
  "title"
1880
- ], pa = ["value"], ma = /* @__PURE__ */ N({
1971
+ ], xa = ["value"], Sa = /* @__PURE__ */ N({
1881
1972
  __name: "SelectField",
1882
1973
  props: {
1883
1974
  field: {},
@@ -1887,7 +1978,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1887
1978
  emits: ["update:modelValue"],
1888
1979
  setup(e, { emit: t }) {
1889
1980
  let n = t, { t: r } = W();
1890
- return (t, i) => (s(), C(Qi, {
1981
+ return (t, i) => (s(), C(oa, {
1891
1982
  label: e.field.label,
1892
1983
  required: e.field.required,
1893
1984
  "read-only": e.readOnly
@@ -1901,7 +1992,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1901
1992
  }, [(s(!0), y(j, null, u(e.field.options, (e) => (s(), y("option", {
1902
1993
  key: e.value,
1903
1994
  value: e.value
1904
- }, _(e.label), 9, pa))), 128))], 42, fa)]),
1995
+ }, _(e.label), 9, xa))), 128))], 42, ba)]),
1905
1996
  _: 1
1906
1997
  }, 8, [
1907
1998
  "label",
@@ -1909,11 +2000,11 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1909
2000
  "read-only"
1910
2001
  ]));
1911
2002
  }
1912
- }), ha = [
2003
+ }), Ca = [
1913
2004
  "value",
1914
2005
  "placeholder",
1915
2006
  "title"
1916
- ], ga = /* @__PURE__ */ N({
2007
+ ], wa = /* @__PURE__ */ N({
1917
2008
  __name: "TextField",
1918
2009
  props: {
1919
2010
  field: {},
@@ -1923,7 +2014,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1923
2014
  emits: ["update:modelValue"],
1924
2015
  setup(e, { emit: t }) {
1925
2016
  let n = t, { t: r } = W();
1926
- return (t, i) => (s(), C(Qi, {
2017
+ return (t, i) => (s(), C(oa, {
1927
2018
  label: e.field.label,
1928
2019
  required: e.field.required,
1929
2020
  "read-only": e.readOnly
@@ -1936,7 +2027,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1936
2027
  placeholder: e.field.placeholder,
1937
2028
  disabled: "",
1938
2029
  title: x(r).customBlocks.dataSource.readOnlyTooltip
1939
- }, null, 10, ha)) : (s(), C($, {
2030
+ }, null, 10, Ca)) : (s(), C($, {
1940
2031
  key: 1,
1941
2032
  "model-value": e.modelValue,
1942
2033
  placeholder: e.field.placeholder,
@@ -1949,12 +2040,12 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1949
2040
  "read-only"
1950
2041
  ]));
1951
2042
  }
1952
- }), _a = [
2043
+ }), Ta = [
1953
2044
  "value",
1954
2045
  "placeholder",
1955
2046
  "title"
1956
- ], va = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:opacity-60 tpl:cursor-not-allowed", ya = {
1957
- text: ga,
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,
1958
2049
  textarea: /* @__PURE__ */ N({
1959
2050
  __name: "TextareaField",
1960
2051
  props: {
@@ -1965,7 +2056,7 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1965
2056
  emits: ["update:modelValue"],
1966
2057
  setup(e, { emit: t }) {
1967
2058
  let n = t, { t: r } = W();
1968
- return (t, i) => (s(), C(Qi, {
2059
+ return (t, i) => (s(), C(oa, {
1969
2060
  label: e.field.label,
1970
2061
  required: e.field.required,
1971
2062
  "read-only": e.readOnly
@@ -1977,8 +2068,8 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1977
2068
  rows: "3",
1978
2069
  disabled: "",
1979
2070
  title: x(r).customBlocks.dataSource.readOnlyTooltip,
1980
- class: E(va)
1981
- }, null, 8, _a)) : (s(), C(Xn, {
2071
+ class: E(Ea)
2072
+ }, null, 8, Ta)) : (s(), C(ir, {
1982
2073
  key: 1,
1983
2074
  "model-value": e.modelValue,
1984
2075
  placeholder: e.field.placeholder,
@@ -1992,37 +2083,37 @@ var jn = ["aria-label", "onKeydown"], Mn = ["data-tooltip"], Nn = ["data-tooltip
1992
2083
  ]));
1993
2084
  }
1994
2085
  }),
1995
- image: ra,
1996
- color: $i,
1997
- number: aa,
1998
- select: ma,
1999
- boolean: Yi,
2000
- repeatable: da
2086
+ image: da,
2087
+ color: sa,
2088
+ number: pa,
2089
+ select: Sa,
2090
+ boolean: ra,
2091
+ repeatable: ya
2001
2092
  };
2002
- function ba(e) {
2003
- return ya[e] ?? ga;
2093
+ function Oa(e) {
2094
+ return Da[e] ?? wa;
2004
2095
  }
2005
2096
  //#endregion
2006
2097
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
2007
- var xa = {
2098
+ var ka = {
2008
2099
  key: 0,
2009
2100
  class: "tpl:p-4"
2010
- }, Sa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ca = { key: 1 }, wa = {
2101
+ }, Aa = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ja = { key: 1 }, Ma = {
2011
2102
  key: 0,
2012
2103
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
2013
- }, Ta = {
2104
+ }, Na = {
2014
2105
  key: 1,
2015
2106
  class: "tpl:mb-4"
2016
- }, Ea = {
2107
+ }, Pa = {
2017
2108
  key: 1,
2018
2109
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
2019
- }, Da = {
2110
+ }, Fa = {
2020
2111
  key: 0,
2021
2112
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2022
- }, Oa = {
2113
+ }, Ia = {
2023
2114
  key: 2,
2024
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)]"
2025
- }, ka = /* @__PURE__ */ N({
2116
+ }, La = /* @__PURE__ */ N({
2026
2117
  __name: "CustomBlockToolbar",
2027
2118
  props: { block: {} },
2028
2119
  emits: ["updateFieldValues", "updateDataSourceFetched"],
@@ -2043,23 +2134,23 @@ var xa = {
2043
2134
  [e]: t
2044
2135
  });
2045
2136
  }
2046
- return (t, n) => c.value ? (s(), y("div", Ca, [
2047
- c.value.description ? (s(), y("p", wa, _(c.value.description), 1)) : b("", !0),
2048
- x(m) ? (s(), y("div", Ta, [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", {
2049
2140
  key: 0,
2050
2141
  type: "button",
2051
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)]",
2052
2143
  onClick: n[0] ||= (...e) => x(p) && x(p)(...e)
2053
- }, _(c.value?.dataSource?.label || x(i).customBlocks.dataSource.fetchButton), 1)) : (s(), y("div", Ea, [x(l) ? (s(), y("div", Da, _(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", {
2054
2145
  key: 1,
2055
2146
  type: "button",
2056
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)]",
2057
2148
  onClick: n[1] ||= (...e) => x(p) && x(p)(...e)
2058
- }, [P(x(ht), { size: 12 }), M(" " + _(x(i).customBlocks.dataSource.changeButton), 1)]))])), x(f) ? (s(), y("p", Oa, [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), {
2059
2150
  size: 14,
2060
2151
  class: "tpl:shrink-0"
2061
2152
  }), M(" " + _(x(i).customBlocks.dataSource.fetchError), 1)])) : b("", !0)])) : b("", !0),
2062
- (s(!0), y(j, null, u(c.value.fields, (t) => (s(), C(o(x(ba)(t.type)), {
2153
+ (s(!0), y(j, null, u(c.value.fields, (t) => (s(), C(o(x(Oa)(t.type)), {
2063
2154
  key: t.key,
2064
2155
  field: t,
2065
2156
  "model-value": e.block.fieldValues[t.key],
@@ -2071,9 +2162,9 @@ var xa = {
2071
2162
  "read-only",
2072
2163
  "onUpdate:modelValue"
2073
2164
  ]))), 128))
2074
- ])) : (s(), y("div", xa, [D("p", Sa, _(x(i).customBlocks.toolbar.noDefinition), 1)]));
2165
+ ])) : (s(), y("div", ka, [D("p", Aa, _(x(i).customBlocks.toolbar.noDefinition), 1)]));
2075
2166
  }
2076
- }), Aa = { class: "tpl:mb-3.5" }, ja = { class: "tpl:mb-3.5" }, Ma = { class: "tpl:mb-3.5" }, Na = { class: "tpl:flex tpl:items-stretch" }, Pa = ["value"], Fa = /* @__PURE__ */ 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({
2077
2168
  __name: "DividerToolbar",
2078
2169
  props: { block: {} },
2079
2170
  emits: ["update"],
@@ -2083,7 +2174,7 @@ var xa = {
2083
2174
  n("update", { [e]: t });
2084
2175
  }
2085
2176
  return (t, n) => (s(), y(j, null, [
2086
- D("div", Aa, [D("label", { class: E(x(q)) }, _(x(r).divider.style), 3), P(Zt, {
2177
+ D("div", Ra, [D("label", { class: E(x(q)) }, _(x(r).divider.style), 3), P(tn, {
2087
2178
  options: [
2088
2179
  {
2089
2180
  value: "solid",
@@ -2101,57 +2192,57 @@ var xa = {
2101
2192
  "model-value": e.block.lineStyle,
2102
2193
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
2103
2194
  }, null, 8, ["options", "model-value"])]),
2104
- D("div", ja, [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, {
2105
2196
  "model-value": e.block.color,
2106
2197
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
2107
2198
  }, null, 8, ["model-value"])]),
2108
- D("div", Ma, [D("label", { class: E(x(q)) }, _(x(r).divider.thickness), 3), D("div", Na, [D("input", {
2199
+ D("div", Ba, [D("label", { class: E(x(q)) }, _(x(r).divider.thickness), 3), D("div", Va, [D("input", {
2109
2200
  type: "number",
2110
2201
  class: E(x(Y)),
2111
2202
  value: e.block.thickness,
2112
2203
  min: "1",
2113
2204
  max: "10",
2114
2205
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
2115
- }, null, 42, Pa), D("span", { class: E(x(J)) }, "px", 2)])])
2206
+ }, null, 42, Ha), D("span", { class: E(x(J)) }, "px", 2)])])
2116
2207
  ], 64));
2117
2208
  }
2118
- }), Ia = { class: "tpl:mb-3.5" }, La = ["value"], Ra = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, za = /* @__PURE__ */ 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({
2119
2210
  __name: "HtmlToolbar",
2120
2211
  props: { block: {} },
2121
2212
  emits: ["update"],
2122
2213
  setup(e, { emit: t }) {
2123
2214
  let n = t, { t: r } = W();
2124
- return (t, i) => (s(), y("div", Ia, [
2215
+ return (t, i) => (s(), y("div", Wa, [
2125
2216
  D("label", { class: E(x(q)) }, _(x(r).html.content), 3),
2126
2217
  D("textarea", {
2127
2218
  value: e.block.content,
2128
2219
  placeholder: "<div>...</div>",
2129
2220
  rows: "10",
2130
- class: E(x(Wt)),
2221
+ class: E(x(Jt)),
2131
2222
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
2132
- }, null, 42, La),
2133
- D("p", Ra, [P(x(Nt), {
2223
+ }, null, 42, Ga),
2224
+ D("p", Ka, [P(x(_t), {
2134
2225
  size: 12,
2135
2226
  class: "tpl:mt-0.5 tpl:shrink-0"
2136
2227
  }), M(" " + _(x(r).html.sanitizationHint), 1)])
2137
2228
  ]));
2138
2229
  }
2139
- }), Ba = { class: "tpl:mb-3.5" }, Va = {
2230
+ }), Ja = { class: "tpl:mb-3.5" }, Ya = {
2140
2231
  key: 0,
2141
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)]",
2142
2233
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
2143
- }, Ha = {
2234
+ }, Xa = {
2144
2235
  key: 0,
2145
2236
  class: "tpl:mb-3.5"
2146
- }, Ua = ["value", "placeholder"], Wa = { class: "tpl:mb-3.5" }, Ga = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Ka = { class: "tpl:mb-3.5" }, qa = ["value"], Ja = { value: "full" }, Ya = { value: "custom" }, Xa = {
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 = {
2147
2238
  key: 0,
2148
2239
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2149
- }, Za = ["value"], Qa = { class: "tpl:mb-3.5" }, $a = { class: "tpl:mb-3.5" }, eo = 350, to = /* @__PURE__ */ N({
2240
+ }, ao = ["value"], oo = { class: "tpl:mb-3.5" }, so = { class: "tpl:mb-3.5" }, co = 350, lo = /* @__PURE__ */ N({
2150
2241
  __name: "ImageToolbar",
2151
2242
  props: { block: {} },
2152
2243
  emits: ["update"],
2153
2244
  setup(e, { emit: t }) {
2154
- 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(() => {
2155
2246
  u.value = !1;
2156
2247
  }, 1e3, { immediate: !1 }), g = [
2157
2248
  300,
@@ -2167,7 +2258,7 @@ var xa = {
2167
2258
  function T(e) {
2168
2259
  if (e === "custom") {
2169
2260
  let e = n.block.width;
2170
- (typeof e != "number" || g.includes(e)) && w("width", eo);
2261
+ (typeof e != "number" || g.includes(e)) && w("width", co);
2171
2262
  return;
2172
2263
  }
2173
2264
  w("width", e === "full" ? "full" : Number(e));
@@ -2180,7 +2271,7 @@ var xa = {
2180
2271
  let e = await a?.({ accept: ["images"] });
2181
2272
  c.alive && e && (w("src", e.url), e.alt && (w("alt", e.alt), p.value = !0), u.value = !0, h());
2182
2273
  }
2183
- 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);
2184
2275
  async function L(e) {
2185
2276
  if (a) {
2186
2277
  N.value = !0;
@@ -2202,16 +2293,16 @@ var xa = {
2202
2293
  onFiles: L
2203
2294
  });
2204
2295
  return (t, n) => (s(), y(j, null, [
2205
- D("div", Ba, [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", {
2206
2297
  ref_key: "dropZoneRef",
2207
2298
  ref: A,
2208
2299
  class: "tpl:relative"
2209
2300
  }, [
2210
- I.value && (x(R) || N.value) ? (s(), y("div", Va, [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), {
2211
2302
  class: "tpl-spinner",
2212
2303
  size: 18,
2213
2304
  "stroke-width": 2
2214
- }), 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), {
2215
2306
  size: 18,
2216
2307
  "stroke-width": 1.5
2217
2308
  }), M(" " + _(x(i).image.dropToUpload), 1)], 64))])) : b("", !0),
@@ -2235,19 +2326,19 @@ var xa = {
2235
2326
  "background-color": "var(--tpl-bg)"
2236
2327
  },
2237
2328
  onClick: k
2238
- }, [P(x(xt), {
2329
+ }, [P(x(yt), {
2239
2330
  size: 14,
2240
2331
  "stroke-width": 1.5
2241
2332
  }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
2242
2333
  ], 512)]),
2243
- x(H)(e.block.src, x(o)) ? (s(), y("div", Ha, [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", {
2244
2335
  type: "url",
2245
2336
  class: E(x(K)),
2246
2337
  value: e.block.placeholderUrl || "",
2247
2338
  placeholder: x(i).image.placeholderUrlPlaceholder,
2248
2339
  onInput: n[1] ||= (e) => w("placeholderUrl", e.target.value)
2249
- }, null, 42, Ua)])) : b("", !0),
2250
- D("div", Wa, [
2340
+ }, null, 42, Za)])) : b("", !0),
2341
+ D("div", Qa, [
2251
2342
  D("label", { class: E(x(q)) }, _(x(i).image.altText), 3),
2252
2343
  P($, {
2253
2344
  "model-value": e.block.alt,
@@ -2268,32 +2359,32 @@ var xa = {
2268
2359
  label: x(i).image.decorative,
2269
2360
  "onUpdate:modelValue": n[3] ||= (e) => w("decorative", e)
2270
2361
  }, {
2271
- default: f(() => [D("span", null, [M(_(x(i).image.decorative) + " ", 1), D("span", Ga, _(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)])]),
2272
2363
  _: 1
2273
2364
  }, 8, ["model-value", "label"])
2274
2365
  ]),
2275
- D("div", Ka, [
2366
+ D("div", eo, [
2276
2367
  D("label", { class: E(x(q)) }, _(x(i).image.width), 3),
2277
2368
  D("select", {
2278
2369
  class: E(x(K)),
2279
2370
  value: S.value,
2280
2371
  onChange: n[4] ||= (e) => T(e.target.value)
2281
2372
  }, [
2282
- D("option", Ja, _(x(i).image.fullWidth), 1),
2373
+ D("option", no, _(x(i).image.fullWidth), 1),
2283
2374
  n[10] ||= D("option", { value: "300" }, "300px", -1),
2284
2375
  n[11] ||= D("option", { value: "400" }, "400px", -1),
2285
2376
  n[12] ||= D("option", { value: "500" }, "500px", -1),
2286
- D("option", Ya, _(x(i).image.widthCustom), 1)
2287
- ], 42, qa),
2288
- S.value === "custom" ? (s(), y("div", Xa, [D("input", {
2377
+ D("option", ro, _(x(i).image.widthCustom), 1)
2378
+ ], 42, to),
2379
+ S.value === "custom" ? (s(), y("div", io, [D("input", {
2289
2380
  type: "number",
2290
2381
  class: E(x(Y)),
2291
- value: typeof e.block.width == "number" ? e.block.width : eo,
2382
+ value: typeof e.block.width == "number" ? e.block.width : co,
2292
2383
  min: "20",
2293
2384
  onInput: n[5] ||= (e) => O(e.target.value)
2294
- }, null, 42, Za), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
2385
+ }, null, 42, ao), D("span", { class: E(x(J)) }, "px", 2)])) : b("", !0)
2295
2386
  ]),
2296
- D("div", Qa, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P(Zt, {
2387
+ D("div", oo, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P(tn, {
2297
2388
  options: [
2298
2389
  {
2299
2390
  value: "left",
@@ -2311,7 +2402,7 @@ var xa = {
2311
2402
  "model-value": e.block.align,
2312
2403
  "onUpdate:modelValue": n[6] ||= (e) => w("align", e)
2313
2404
  }, null, 8, ["options", "model-value"])]),
2314
- D("div", $a, [
2405
+ D("div", so, [
2315
2406
  D("label", { class: E(x(q)) }, _(x(i).image.linkUrl), 3),
2316
2407
  P($, {
2317
2408
  "model-value": e.block.linkUrl || "",
@@ -2329,11 +2420,11 @@ var xa = {
2329
2420
  ])
2330
2421
  ], 64));
2331
2422
  }
2332
- }), no = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ro = { class: "tpl:flex tpl:items-center tpl:gap-2" }, io = [
2423
+ }), uo = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, fo = { class: "tpl:flex tpl:items-center tpl:gap-2" }, po = [
2333
2424
  "value",
2334
2425
  "placeholder",
2335
2426
  "onInput"
2336
- ], ao = ["title", "onClick"], oo = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, so = { class: "tpl:flex tpl:items-center tpl:gap-2" }, co = ["value"], lo = { value: "" }, uo = ["value"], fo = ["value"], po = /* @__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({
2337
2428
  __name: "MenuToolbar",
2338
2429
  props: {
2339
2430
  block: {},
@@ -2358,17 +2449,17 @@ var xa = {
2358
2449
  {
2359
2450
  value: "left",
2360
2451
  label: i.title.alignLeft,
2361
- icon: kt
2452
+ icon: Dt
2362
2453
  },
2363
2454
  {
2364
2455
  value: "center",
2365
2456
  label: i.title.alignCenter,
2366
- icon: wt
2457
+ icon: bt
2367
2458
  },
2368
2459
  {
2369
2460
  value: "right",
2370
2461
  label: i.title.alignRight,
2371
- icon: Tt
2462
+ icon: xt
2372
2463
  }
2373
2464
  ]);
2374
2465
  function c(e, t) {
@@ -2397,24 +2488,24 @@ var xa = {
2397
2488
  }
2398
2489
  return (t, n) => (s(), y(j, null, [
2399
2490
  P(Q, { label: x(i).menu.items }, {
2400
- default: f(() => [D("div", no, [(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", {
2401
2492
  key: t.id,
2402
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"
2403
2494
  }, [
2404
- D("div", ro, [D("input", {
2495
+ D("div", fo, [D("input", {
2405
2496
  type: "text",
2406
2497
  class: E([x(K), "tpl:flex-1"]),
2407
2498
  value: t.text,
2408
2499
  placeholder: x(i).menu.text,
2409
2500
  onInput: (e) => d(t.id, "text", e.target.value)
2410
- }, null, 42, io), D("button", {
2411
- class: E(x(Ut)),
2501
+ }, null, 42, po), D("button", {
2502
+ class: E(x(qt)),
2412
2503
  title: x(i).menu.removeItem,
2413
2504
  onClick: (e) => p(t.id)
2414
- }, [P(x(Et), {
2505
+ }, [P(x(Ot), {
2415
2506
  size: 14,
2416
2507
  "stroke-width": 2
2417
- })], 10, ao)]),
2508
+ })], 10, mo)]),
2418
2509
  P($, {
2419
2510
  "model-value": t.url,
2420
2511
  type: "url",
@@ -2425,7 +2516,7 @@ var xa = {
2425
2516
  "placeholder",
2426
2517
  "onUpdate:modelValue"
2427
2518
  ]),
2428
- D("div", oo, [(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, {
2429
2520
  key: e.key,
2430
2521
  "model-value": t[e.key],
2431
2522
  label: e.label,
@@ -2435,13 +2526,13 @@ var xa = {
2435
2526
  "label",
2436
2527
  "onUpdate:modelValue"
2437
2528
  ]))), 128))]),
2438
- D("div", so, [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, {
2439
2530
  "swatch-only": "",
2440
2531
  "model-value": t.color || e.block.linkColor || e.block.color || "",
2441
2532
  "onUpdate:modelValue": (e) => d(t.id, "color", e)
2442
2533
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
2443
2534
  ]))), 128)), D("button", {
2444
- class: E(x(Kt)),
2535
+ class: E(x(Xt)),
2445
2536
  onClick: l
2446
2537
  }, [P(x(G), {
2447
2538
  size: 14,
@@ -2454,14 +2545,14 @@ var xa = {
2454
2545
  class: E(x(K)),
2455
2546
  value: e.block.fontFamily || "",
2456
2547
  onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
2457
- }, [D("option", lo, _(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", {
2458
2549
  key: e.value,
2459
2550
  value: e.value
2460
- }, _(e.label), 9, uo))), 128))], 42, co)]),
2551
+ }, _(e.label), 9, yo))), 128))], 42, _o)]),
2461
2552
  _: 1
2462
2553
  }, 8, ["label"]),
2463
2554
  P(Q, { label: x(i).menu.fontSize }, {
2464
- default: f(() => [P(Qt, {
2555
+ default: f(() => [P(nn, {
2465
2556
  "model-value": e.block.fontSize,
2466
2557
  min: 8,
2467
2558
  max: 48,
@@ -2485,7 +2576,7 @@ var xa = {
2485
2576
  _: 1
2486
2577
  }, 8, ["label"]),
2487
2578
  P(Q, { label: x(i).menu.textAlign }, {
2488
- default: f(() => [P(Zt, {
2579
+ default: f(() => [P(tn, {
2489
2580
  options: o.value,
2490
2581
  "model-value": e.block.textAlign,
2491
2582
  "onUpdate:modelValue": n[4] ||= (e) => c("textAlign", e)
@@ -2498,7 +2589,7 @@ var xa = {
2498
2589
  class: E(x(K)),
2499
2590
  value: e.block.separator,
2500
2591
  onInput: n[5] ||= (e) => c("separator", e.target.value)
2501
- }, null, 42, fo)]),
2592
+ }, null, 42, bo)]),
2502
2593
  _: 1
2503
2594
  }, 8, ["label"]),
2504
2595
  P(Q, { label: x(i).menu.separatorColor }, {
@@ -2509,7 +2600,7 @@ var xa = {
2509
2600
  _: 1
2510
2601
  }, 8, ["label"]),
2511
2602
  P(Q, { label: x(i).menu.spacing }, {
2512
- default: f(() => [P(Qt, {
2603
+ default: f(() => [P(nn, {
2513
2604
  "model-value": e.block.spacing,
2514
2605
  min: 0,
2515
2606
  max: 50,
@@ -2523,11 +2614,11 @@ var xa = {
2523
2614
  });
2524
2615
  //#endregion
2525
2616
  //#region src/utils/rebalanceColumnChildren.ts
2526
- function mo(e) {
2617
+ function So(e) {
2527
2618
  return e === "1" ? 1 : e === "3" ? 3 : 2;
2528
2619
  }
2529
- function ho(e, t) {
2530
- let n = mo(t);
2620
+ function Co(e, t) {
2621
+ let n = So(t);
2531
2622
  if (e.length === n) return e;
2532
2623
  if (e.length < n) {
2533
2624
  let t = Array.from({ length: n - e.length }, () => []);
@@ -2538,13 +2629,13 @@ function ho(e, t) {
2538
2629
  }
2539
2630
  //#endregion
2540
2631
  //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
2541
- var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2632
+ var wo = { class: "tpl:mb-3.5" }, To = ["value"], Eo = ["value"], Do = {
2542
2633
  key: 0,
2543
2634
  class: "tpl:mb-3.5"
2544
- }, bo = { class: "tpl:mb-3.5" }, xo = { class: "tpl:flex tpl:items-stretch" }, So = ["value"], Co = { class: "tpl:mb-3.5" }, wo = {
2635
+ }, Oo = { class: "tpl:mb-3.5" }, ko = { class: "tpl:flex tpl:items-stretch" }, Ao = ["value"], jo = { class: "tpl:mb-3.5" }, Mo = {
2545
2636
  key: 0,
2546
2637
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
2547
- }, To = { class: "tpl:flex tpl:items-stretch" }, Eo = ["value"], Do = /* @__PURE__ */ N({
2638
+ }, No = { class: "tpl:flex tpl:items-stretch" }, Po = ["value"], Fo = /* @__PURE__ */ N({
2548
2639
  __name: "SectionToolbar",
2549
2640
  props: { block: {} },
2550
2641
  emits: ["update"],
@@ -2572,7 +2663,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2572
2663
  }
2573
2664
  ]);
2574
2665
  function o(e) {
2575
- let t = e.target.value, i = ho(n.block.children, t);
2666
+ let t = e.target.value, i = Co(n.block.children, t);
2576
2667
  r("update", {
2577
2668
  columns: t,
2578
2669
  children: i
@@ -2606,39 +2697,39 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2606
2697
  f({ borderRadius: Number(e.target.value) });
2607
2698
  }
2608
2699
  return (t, n) => (s(), y(j, null, [
2609
- D("div", go, [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", {
2610
2701
  class: E(x(K)),
2611
2702
  value: e.block.columns,
2612
2703
  onChange: o
2613
2704
  }, [(s(!0), y(j, null, u(a.value, (e) => (s(), y("option", {
2614
2705
  key: e.value,
2615
2706
  value: e.value
2616
- }, _(e.label), 9, vo))), 128))], 42, _o)]),
2617
- e.block.columns === "1" ? b("", !0) : (s(), y("div", yo, [P(Z, {
2707
+ }, _(e.label), 9, Eo))), 128))], 42, To)]),
2708
+ e.block.columns === "1" ? b("", !0) : (s(), y("div", Do, [P(Z, {
2618
2709
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2619
2710
  "model-value": e.block.stackOnMobile !== !1,
2620
2711
  label: x(i).section.stackOnMobile,
2621
2712
  "onUpdate:modelValue": n[0] ||= (e) => c(e)
2622
2713
  }, null, 8, ["model-value", "label"])])),
2623
- D("div", bo, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", xo, [D("input", {
2714
+ D("div", Oo, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", ko, [D("input", {
2624
2715
  type: "number",
2625
2716
  class: E(x(Y)),
2626
2717
  value: e.block.borderRadius ?? 0,
2627
2718
  min: "0",
2628
2719
  max: "50",
2629
2720
  onInput: l
2630
- }, null, 42, So), D("span", { class: E(x(J)) }, "px", 2)])]),
2631
- D("div", Co, [P(Z, {
2721
+ }, null, 42, Ao), D("span", { class: E(x(J)) }, "px", 2)])]),
2722
+ D("div", jo, [P(Z, {
2632
2723
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2633
2724
  "model-value": !!e.block.wrapper,
2634
2725
  label: x(i).section.wrapperEnable,
2635
2726
  "onUpdate:modelValue": n[1] ||= (e) => d(e)
2636
- }, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), y("div", wo, [
2727
+ }, null, 8, ["model-value", "label"]), e.block.wrapper ? (s(), y("div", Mo, [
2637
2728
  D("div", null, [D("label", { class: E(x(q)) }, _(x(i).blockSettings.color), 3), P(X, {
2638
2729
  "model-value": e.block.wrapper.backgroundColor ?? "",
2639
2730
  "onUpdate:modelValue": n[2] ||= (e) => f({ backgroundColor: e })
2640
2731
  }, null, 8, ["model-value"])]),
2641
- P(Ei, {
2732
+ P(Pi, {
2642
2733
  label: x(i).blockSettings.padding,
2643
2734
  "model-value": e.block.wrapper.padding ?? {
2644
2735
  top: 0,
@@ -2648,18 +2739,18 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2648
2739
  },
2649
2740
  "onUpdate:modelValue": p
2650
2741
  }, null, 8, ["label", "model-value"]),
2651
- D("div", null, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", To, [D("input", {
2742
+ D("div", null, [D("label", { class: E(x(q)) }, _(x(i).section.borderRadius), 3), D("div", No, [D("input", {
2652
2743
  type: "number",
2653
2744
  class: E(x(Y)),
2654
2745
  value: e.block.wrapper.borderRadius ?? 0,
2655
2746
  min: "0",
2656
2747
  max: "50",
2657
2748
  onInput: m
2658
- }, null, 42, Eo), D("span", { class: E(x(J)) }, "px", 2)])])
2749
+ }, null, 42, Po), D("span", { class: E(x(J)) }, "px", 2)])])
2659
2750
  ])) : b("", !0)])
2660
2751
  ], 64));
2661
2752
  }
2662
- }), Oo = { class: "tpl:mb-3.5" }, ko = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ao = { class: "tpl:flex tpl:items-center tpl:gap-2" }, jo = ["value", "onChange"], Mo = ["value"], No = ["title", "onClick"], Po = { class: "tpl:mb-3.5" }, Fo = ["value"], Io = { value: "solid" }, Lo = { value: "outlined" }, Ro = { value: "rounded" }, zo = { value: "square" }, Bo = { value: "circle" }, Vo = { class: "tpl:mb-3.5" }, Ho = { class: "tpl:mb-3.5" }, Uo = { class: "tpl:flex tpl:items-stretch" }, Wo = ["value"], Go = { class: "tpl:mb-3.5" }, Ko = /* @__PURE__ */ 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({
2663
2754
  __name: "SocialToolbar",
2664
2755
  props: { block: {} },
2665
2756
  emits: ["update"],
@@ -2687,10 +2778,10 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2687
2778
  r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
2688
2779
  }
2689
2780
  return (t, n) => (s(), y(j, null, [
2690
- D("div", Oo, [D("label", { class: E(x(q)) }, _(x(i).social.icons), 3), D("div", ko, [(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", {
2691
2782
  key: e.id,
2692
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"
2693
- }, [D("div", Ao, [D("select", {
2784
+ }, [D("div", Ro, [D("select", {
2694
2785
  "data-testid": "social-platform-select",
2695
2786
  class: E([x(K), "tpl:flex-1"]),
2696
2787
  value: e.platform,
@@ -2698,14 +2789,14 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2698
2789
  }, [(s(!0), y(j, null, u(x(Se), (e) => (s(), y("option", {
2699
2790
  key: e,
2700
2791
  value: e
2701
- }, _(x(i).social.platforms[e]), 9, Mo))), 128))], 42, jo), D("button", {
2702
- class: E(x(Ut)),
2792
+ }, _(x(i).social.platforms[e]), 9, Bo))), 128))], 42, zo), D("button", {
2793
+ class: E(x(qt)),
2703
2794
  title: x(i).social.removeIcon,
2704
2795
  onClick: (t) => l(e.id)
2705
- }, [P(x(Et), {
2796
+ }, [P(x(Ot), {
2706
2797
  size: 14,
2707
2798
  "stroke-width": 2
2708
- })], 10, No)]), P($, {
2799
+ })], 10, Vo)]), P($, {
2709
2800
  "model-value": e.url,
2710
2801
  type: "url",
2711
2802
  placeholder: x(i).social.urlPlaceholder,
@@ -2715,24 +2806,24 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2715
2806
  "placeholder",
2716
2807
  "onUpdate:modelValue"
2717
2808
  ])]))), 128)), D("button", {
2718
- class: E(x(Kt)),
2809
+ class: E(x(Xt)),
2719
2810
  onClick: o
2720
2811
  }, [P(x(G), {
2721
2812
  size: 14,
2722
2813
  "stroke-width": 2
2723
2814
  }), M(" " + _(x(i).social.addIcon), 1)], 2)])]),
2724
- D("div", Po, [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", {
2725
2816
  class: E(x(K)),
2726
2817
  value: e.block.iconStyle,
2727
2818
  onChange: n[0] ||= (e) => a("iconStyle", e.target.value)
2728
2819
  }, [
2729
- D("option", Io, _(x(i).social.styleSolid), 1),
2730
- D("option", Lo, _(x(i).social.styleOutlined), 1),
2731
- D("option", Ro, _(x(i).social.styleRounded), 1),
2732
- D("option", zo, _(x(i).social.styleSquare), 1),
2733
- D("option", Bo, _(x(i).social.styleCircle), 1)
2734
- ], 42, Fo)]),
2735
- D("div", Vo, [D("label", { class: E(x(q)) }, _(x(i).social.size), 3), P(Zt, {
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, {
2736
2827
  options: [
2737
2828
  {
2738
2829
  value: "small",
@@ -2750,30 +2841,30 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2750
2841
  "model-value": e.block.iconSize,
2751
2842
  "onUpdate:modelValue": n[1] ||= (e) => a("iconSize", e)
2752
2843
  }, null, 8, ["options", "model-value"])]),
2753
- D("div", Ho, [D("label", { class: E(x(q)) }, _(x(i).social.spacing), 3), D("div", Uo, [D("input", {
2844
+ D("div", Xo, [D("label", { class: E(x(q)) }, _(x(i).social.spacing), 3), D("div", Zo, [D("input", {
2754
2845
  type: "number",
2755
2846
  class: E(x(Y)),
2756
2847
  value: e.block.spacing,
2757
2848
  min: "0",
2758
2849
  max: "50",
2759
2850
  onInput: n[2] ||= (e) => a("spacing", Number(e.target.value))
2760
- }, null, 42, Wo), D("span", { class: E(x(J)) }, "px", 2)])]),
2761
- D("div", Go, [D("label", { class: E(x(q)) }, _(x(i).social.align), 3), P(Zt, {
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, {
2762
2853
  options: [
2763
2854
  {
2764
2855
  value: "left",
2765
2856
  label: x(i).title.alignLeft,
2766
- icon: x(kt)
2857
+ icon: x(Dt)
2767
2858
  },
2768
2859
  {
2769
2860
  value: "center",
2770
2861
  label: x(i).title.alignCenter,
2771
- icon: x(wt)
2862
+ icon: x(bt)
2772
2863
  },
2773
2864
  {
2774
2865
  value: "right",
2775
2866
  label: x(i).title.alignRight,
2776
- icon: x(Tt)
2867
+ icon: x(xt)
2777
2868
  }
2778
2869
  ],
2779
2870
  "model-value": e.block.align,
@@ -2781,22 +2872,22 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2781
2872
  }, null, 8, ["options", "model-value"])])
2782
2873
  ], 64));
2783
2874
  }
2784
- }), qo = { class: "tpl:mb-3.5" }, Jo = { class: "tpl:flex tpl:items-stretch" }, Yo = ["value"], Xo = ["value"], Zo = /* @__PURE__ */ N({
2875
+ }), ts = { class: "tpl:mb-3.5" }, ns = { class: "tpl:flex tpl:items-stretch" }, rs = ["value"], is = ["value"], as = /* @__PURE__ */ N({
2785
2876
  __name: "SpacerToolbar",
2786
2877
  props: { block: {} },
2787
2878
  emits: ["update"],
2788
2879
  setup(e, { emit: t }) {
2789
2880
  let n = t, { t: r } = W();
2790
- return (t, i) => (s(), y("div", qo, [
2881
+ return (t, i) => (s(), y("div", ts, [
2791
2882
  D("label", { class: E(x(q)) }, _(x(r).spacer.height), 3),
2792
- D("div", Jo, [D("input", {
2883
+ D("div", ns, [D("input", {
2793
2884
  type: "number",
2794
2885
  class: E(x(Y)),
2795
2886
  value: e.block.height,
2796
2887
  min: "10",
2797
2888
  max: "100",
2798
2889
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
2799
- }, null, 42, Yo), D("span", { class: E(x(J)) }, "px", 2)]),
2890
+ }, null, 42, rs), D("span", { class: E(x(J)) }, "px", 2)]),
2800
2891
  D("input", {
2801
2892
  type: "range",
2802
2893
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -2804,13 +2895,13 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2804
2895
  min: "10",
2805
2896
  max: "100",
2806
2897
  onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
2807
- }, null, 40, Xo)
2898
+ }, null, 40, is)
2808
2899
  ]));
2809
2900
  }
2810
- }), Qo = { class: "tpl:mb-3.5" }, $o = { class: "tpl:flex tpl:items-center tpl:gap-3" }, es = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ts = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ns = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, rs = ["disabled"], is = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, as = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, os = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ss = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, cs = ["disabled"], ls = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, us = { class: "tpl:mb-3.5" }, ds = {
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 = {
2811
2902
  key: 0,
2812
2903
  class: "tpl:mb-3.5"
2813
- }, fs = { class: "tpl:mb-3.5" }, ps = { class: "tpl:mb-3.5" }, ms = { class: "tpl:flex tpl:items-stretch" }, hs = ["value"], gs = { class: "tpl:mb-3.5" }, _s = { class: "tpl:flex tpl:items-stretch" }, vs = ["value"], ys = { class: "tpl:mb-3.5" }, bs = ["value"], xs = { value: "" }, Ss = ["value"], Cs = { class: "tpl:mb-3.5" }, ws = { class: "tpl:flex tpl:items-stretch" }, Ts = ["value"], Es = { class: "tpl:mb-3.5" }, Ds = { class: "tpl:mb-3.5" }, Os = /* @__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({
2814
2905
  __name: "TableToolbar",
2815
2906
  props: {
2816
2907
  block: {},
@@ -2853,16 +2944,16 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2853
2944
  r("update", { rows: t });
2854
2945
  }
2855
2946
  return (t, n) => (s(), y(j, null, [
2856
- D("div", Qo, [D("label", { class: E(x(q)) }, _(x(i).table.dimensions), 3), D("div", $o, [D("div", es, [D("span", ts, _(x(i).table.rows), 1), D("div", ns, [
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, [
2857
2948
  D("button", {
2858
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",
2859
2950
  disabled: e.block.rows.length <= 1,
2860
2951
  onClick: n[0] ||= (t) => l(e.block.rows[e.block.rows.length - 1].id)
2861
- }, [P(x(et), {
2952
+ }, [P(x(vt), {
2862
2953
  size: 12,
2863
2954
  "stroke-width": 2
2864
- })], 8, rs),
2865
- D("span", is, _(e.block.rows.length), 1),
2955
+ })], 8, ds),
2956
+ D("span", fs, _(e.block.rows.length), 1),
2866
2957
  D("button", {
2867
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)]",
2868
2959
  onClick: c
@@ -2870,16 +2961,16 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2870
2961
  size: 12,
2871
2962
  "stroke-width": 2
2872
2963
  })])
2873
- ])]), D("div", as, [D("span", os, _(x(i).table.columns), 1), D("div", ss, [
2964
+ ])]), D("div", ps, [D("span", ms, _(x(i).table.columns), 1), D("div", hs, [
2874
2965
  D("button", {
2875
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",
2876
2967
  disabled: a.value <= 1,
2877
2968
  onClick: n[1] ||= (e) => f(a.value - 1)
2878
- }, [P(x(et), {
2969
+ }, [P(x(vt), {
2879
2970
  size: 12,
2880
2971
  "stroke-width": 2
2881
- })], 8, cs),
2882
- D("span", ls, _(a.value), 1),
2972
+ })], 8, gs),
2973
+ D("span", _s, _(a.value), 1),
2883
2974
  D("button", {
2884
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)]",
2885
2976
  onClick: d
@@ -2888,15 +2979,15 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2888
2979
  "stroke-width": 2
2889
2980
  })])
2890
2981
  ])])])]),
2891
- D("div", us, [P(Z, {
2982
+ D("div", vs, [P(Z, {
2892
2983
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
2893
2984
  "model-value": e.block.hasHeaderRow,
2894
2985
  label: x(i).table.hasHeaderRow,
2895
2986
  "onUpdate:modelValue": n[2] ||= (e) => o("hasHeaderRow", e)
2896
2987
  }, null, 8, ["model-value", "label"])]),
2897
- e.block.hasHeaderRow ? (s(), y("div", ds, [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, {
2898
2989
  "model-value": e.block.headerBackgroundColor ?? "",
2899
- "seed-color": x(Gt),
2990
+ "seed-color": x(Yt),
2900
2991
  placeholder: x(i).table.noHeaderBg,
2901
2992
  "onUpdate:modelValue": n[3] ||= (e) => o("headerBackgroundColor", e || null)
2902
2993
  }, null, 8, [
@@ -2904,62 +2995,62 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2904
2995
  "seed-color",
2905
2996
  "placeholder"
2906
2997
  ])])) : b("", !0),
2907
- D("div", fs, [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, {
2908
2999
  "model-value": e.block.borderColor,
2909
3000
  "onUpdate:modelValue": n[4] ||= (e) => o("borderColor", e)
2910
3001
  }, null, 8, ["model-value"])]),
2911
- D("div", ps, [D("label", { class: E(x(q)) }, _(x(i).table.borderWidth), 3), D("div", ms, [D("input", {
3002
+ D("div", xs, [D("label", { class: E(x(q)) }, _(x(i).table.borderWidth), 3), D("div", Ss, [D("input", {
2912
3003
  type: "number",
2913
3004
  class: E(x(Y)),
2914
3005
  value: e.block.borderWidth,
2915
3006
  min: "0",
2916
3007
  max: "10",
2917
3008
  onInput: n[5] ||= (e) => o("borderWidth", Number(e.target.value))
2918
- }, null, 42, hs), D("span", { class: E(x(J)) }, "px", 2)])]),
2919
- D("div", gs, [D("label", { class: E(x(q)) }, _(x(i).table.cellPadding), 3), D("div", _s, [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", {
2920
3011
  type: "number",
2921
3012
  class: E(x(Y)),
2922
3013
  value: e.block.cellPadding,
2923
3014
  min: "0",
2924
3015
  max: "30",
2925
3016
  onInput: n[6] ||= (e) => o("cellPadding", Number(e.target.value))
2926
- }, null, 42, vs), D("span", { class: E(x(J)) }, "px", 2)])]),
2927
- D("div", ys, [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", {
2928
3019
  class: E(x(K)),
2929
3020
  value: e.block.fontFamily || "",
2930
3021
  onChange: n[7] ||= (e) => o("fontFamily", e.target.value || void 0)
2931
- }, [D("option", xs, _(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", {
2932
3023
  key: e.value,
2933
3024
  value: e.value
2934
- }, _(e.label), 9, Ss))), 128))], 42, bs)]),
2935
- D("div", Cs, [D("label", { class: E(x(q)) }, _(x(i).table.fontSize), 3), D("div", ws, [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", {
2936
3027
  type: "number",
2937
3028
  class: E(x(Y)),
2938
3029
  value: e.block.fontSize,
2939
3030
  min: "10",
2940
3031
  max: "32",
2941
3032
  onInput: n[8] ||= (e) => o("fontSize", Number(e.target.value))
2942
- }, null, 42, Ts), D("span", { class: E(x(J)) }, "px", 2)])]),
2943
- D("div", Es, [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, {
2944
3035
  "model-value": e.block.color ?? "",
2945
3036
  "onUpdate:modelValue": n[9] ||= (e) => o("color", e || void 0)
2946
3037
  }, null, 8, ["model-value"])]),
2947
- D("div", Ds, [D("label", { class: E(x(q)) }, _(x(i).table.textAlign), 3), P(Zt, {
3038
+ D("div", Fs, [D("label", { class: E(x(q)) }, _(x(i).table.textAlign), 3), P(tn, {
2948
3039
  options: [
2949
3040
  {
2950
3041
  value: "left",
2951
3042
  label: x(i).title.alignLeft,
2952
- icon: x(kt)
3043
+ icon: x(Dt)
2953
3044
  },
2954
3045
  {
2955
3046
  value: "center",
2956
3047
  label: x(i).title.alignCenter,
2957
- icon: x(wt)
3048
+ icon: x(bt)
2958
3049
  },
2959
3050
  {
2960
3051
  value: "right",
2961
3052
  label: x(i).title.alignRight,
2962
- icon: x(Tt)
3053
+ icon: x(xt)
2963
3054
  }
2964
3055
  ],
2965
3056
  "model-value": e.block.textAlign,
@@ -2967,7 +3058,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2967
3058
  }, null, 8, ["options", "model-value"])])
2968
3059
  ], 64));
2969
3060
  }
2970
- }), ks = { class: "tpl:mb-3.5" }, As = ["value"], js = { value: 1 }, Ms = { value: 2 }, Ns = { value: 3 }, Ps = { value: 4 }, Fs = { class: "tpl:mb-3.5" }, Is = ["value"], Ls = { value: "" }, Rs = ["value"], zs = { class: "tpl:mb-3.5" }, Bs = { class: "tpl:mb-3.5" }, Vs = /* @__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({
2971
3062
  __name: "TitleToolbar",
2972
3063
  props: {
2973
3064
  block: {},
@@ -2980,44 +3071,44 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
2980
3071
  n("update", { [e]: t });
2981
3072
  }
2982
3073
  return (t, n) => (s(), y(j, null, [
2983
- D("div", ks, [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", {
2984
3075
  class: E(x(K)),
2985
3076
  value: e.block.level,
2986
3077
  onChange: n[0] ||= (e) => i("level", Number(e.target.value))
2987
3078
  }, [
2988
- D("option", js, _(x(r).title.heading1), 1),
2989
- D("option", Ms, _(x(r).title.heading2), 1),
2990
- D("option", Ns, _(x(r).title.heading3), 1),
2991
- D("option", Ps, _(x(r).title.heading4), 1)
2992
- ], 42, As)]),
2993
- D("div", Fs, [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", {
2994
3085
  class: E(x(K)),
2995
3086
  value: e.block.fontFamily || "",
2996
3087
  onChange: n[1] ||= (e) => i("fontFamily", e.target.value || void 0)
2997
- }, [D("option", Ls, _(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", {
2998
3089
  key: e.value,
2999
3090
  value: e.value
3000
- }, _(e.label), 9, Rs))), 128))], 42, Is)]),
3001
- D("div", zs, [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, {
3002
3093
  "model-value": e.block.color ?? "",
3003
3094
  "onUpdate:modelValue": n[2] ||= (e) => i("color", e || void 0)
3004
3095
  }, null, 8, ["model-value"])]),
3005
- D("div", Bs, [D("label", { class: E(x(q)) }, _(x(r).title.align), 3), P(Zt, {
3096
+ D("div", Js, [D("label", { class: E(x(q)) }, _(x(r).title.align), 3), P(tn, {
3006
3097
  options: [
3007
3098
  {
3008
3099
  value: "left",
3009
3100
  label: x(r).title.alignLeft,
3010
- icon: x(kt)
3101
+ icon: x(Dt)
3011
3102
  },
3012
3103
  {
3013
3104
  value: "center",
3014
3105
  label: x(r).title.alignCenter,
3015
- icon: x(wt)
3106
+ icon: x(bt)
3016
3107
  },
3017
3108
  {
3018
3109
  value: "right",
3019
3110
  label: x(r).title.alignRight,
3020
- icon: x(Tt)
3111
+ icon: x(xt)
3021
3112
  }
3022
3113
  ],
3023
3114
  "model-value": e.block.textAlign,
@@ -3025,19 +3116,19 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3025
3116
  }, null, 8, ["options", "model-value"])])
3026
3117
  ], 64));
3027
3118
  }
3028
- }), Hs = { class: "tpl:mb-3.5" }, Us = {
3119
+ }), Xs = { class: "tpl:mb-3.5" }, Zs = {
3029
3120
  key: 0,
3030
3121
  class: "tpl:mb-3.5"
3031
- }, Ws = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Gs = [
3122
+ }, Qs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, $s = [
3032
3123
  "value",
3033
3124
  "placeholder",
3034
3125
  "title"
3035
- ], Ks = { class: "tpl:mb-3.5" }, qs = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Js = { class: "tpl:mb-3.5" }, Ys = { class: "tpl:mb-3.5" }, Xs = ["value"], Zs = { value: "full" }, Qs = { class: "tpl:mb-3.5" }, $s = /* @__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({
3036
3127
  __name: "VideoToolbar",
3037
3128
  props: { block: {} },
3038
3129
  emits: ["update"],
3039
3130
  setup(e, { emit: t }) {
3040
- 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(() => {
3041
3132
  f.value = !1;
3042
3133
  }, 1e3, { immediate: !1 });
3043
3134
  function h(e, t) {
@@ -3048,7 +3139,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3048
3139
  c.alive && e && (h("thumbnailUrl", e.url), f.value = !0, p());
3049
3140
  }
3050
3141
  return (t, n) => (s(), y(j, null, [
3051
- D("div", Hs, [
3142
+ D("div", Xs, [
3052
3143
  D("label", { class: E(x(q)) }, _(x(i).video.videoUrl), 3),
3053
3144
  P($, {
3054
3145
  "model-value": e.block.url,
@@ -3064,16 +3155,16 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3064
3155
  "onUpdate:modelValue": n[1] ||= (e) => h("openInNewTab", e)
3065
3156
  }, null, 8, ["model-value", "label"])) : b("", !0)
3066
3157
  ]),
3067
- u.value ? (s(), y("div", Us, [D("label", { class: E(x(q)) }, [M(_(x(i).video.placeholderUrl) + " ", 1), D("span", Ws, _(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", {
3068
3159
  type: "url",
3069
3160
  class: E(x(K)),
3070
3161
  value: e.block.placeholderUrl || "",
3071
3162
  placeholder: x(i).video.placeholderUrlPlaceholder,
3072
3163
  title: x(i).video.placeholderUrlTooltip,
3073
3164
  onInput: n[2] ||= (e) => h("placeholderUrl", e.target.value)
3074
- }, null, 42, Gs)])) : b("", !0),
3075
- D("div", Ks, [
3076
- D("label", { class: E(x(q)) }, [M(_(x(i).video.customThumbnail) + " ", 1), D("span", qs, _(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),
3077
3168
  P($, {
3078
3169
  "model-value": e.block.thumbnailUrl,
3079
3170
  type: "url",
@@ -3094,28 +3185,28 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3094
3185
  "background-color": "var(--tpl-bg)"
3095
3186
  },
3096
3187
  onClick: g
3097
- }, [P(x(xt), {
3188
+ }, [P(x(yt), {
3098
3189
  size: 14,
3099
3190
  "stroke-width": 1.5
3100
3191
  }), M(" " + _(x(i).image.browseMedia), 1)])) : b("", !0)
3101
3192
  ]),
3102
- D("div", Js, [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($, {
3103
3194
  "model-value": e.block.alt,
3104
3195
  type: "text",
3105
3196
  placeholder: x(i).video.altTextPlaceholder,
3106
3197
  "onUpdate:modelValue": n[4] ||= (e) => h("alt", e)
3107
3198
  }, null, 8, ["model-value", "placeholder"])]),
3108
- D("div", Ys, [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", {
3109
3200
  class: E(x(K)),
3110
3201
  value: e.block.width,
3111
3202
  onChange: n[5] ||= (e) => h("width", e.target.value === "full" ? "full" : Number(e.target.value))
3112
3203
  }, [
3113
- D("option", Zs, _(x(i).video.fullWidth), 1),
3204
+ D("option", ac, _(x(i).video.fullWidth), 1),
3114
3205
  n[7] ||= D("option", { value: "300" }, "300px", -1),
3115
3206
  n[8] ||= D("option", { value: "400" }, "400px", -1),
3116
3207
  n[9] ||= D("option", { value: "500" }, "500px", -1)
3117
- ], 42, Xs)]),
3118
- D("div", Qs, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P(Zt, {
3208
+ ], 42, ic)]),
3209
+ D("div", oc, [D("label", { class: E(x(q)) }, _(x(i).title.align), 3), P(tn, {
3119
3210
  options: [
3120
3211
  {
3121
3212
  value: "left",
@@ -3135,7 +3226,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3135
3226
  }, null, 8, ["options", "model-value"])])
3136
3227
  ], 64));
3137
3228
  }
3138
- }), ec = ["aria-label"], tc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, nc = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, rc = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ic = { class: "tpl:flex tpl:gap-1" }, ac = ["title"], oc = ["title"], sc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, cc = /*#__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({
3139
3230
  __name: "Toolbar",
3140
3231
  props: { block: {} },
3141
3232
  emits: [
@@ -3144,7 +3235,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3144
3235
  "duplicate"
3145
3236
  ],
3146
3237
  setup(e, { emit: t }) {
3147
- 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(() => {
3148
3239
  if (f.value) return l.find((e) => e.type === r.block.customType);
3149
3240
  }), m = v(() => f.value ? p.value?.name ?? r.block.customType : se(u.value, a)), g = c.fonts;
3150
3241
  function S(e) {
@@ -3153,7 +3244,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3153
3244
  return (t, r) => (s(), y("aside", {
3154
3245
  "aria-label": x(a).landmarks.blockToolbar,
3155
3246
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
3156
- }, [D("div", tc, [D("div", nc, [x(Ht)[u.value] ? (s(), C(o(x(Ht)[u.value]), {
3247
+ }, [D("div", lc, [D("div", uc, [x(Kt)[u.value] ? (s(), C(o(x(Kt)[u.value]), {
3157
3248
  key: 0,
3158
3249
  size: 16,
3159
3250
  "stroke-width": 1.5
@@ -3161,70 +3252,70 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3161
3252
  key: 1,
3162
3253
  size: 16,
3163
3254
  "stroke-width": 1.5
3164
- })) : b("", !0), D("h3", rc, _(m.value), 1)]), D("div", ic, [D("button", {
3255
+ })) : b("", !0), D("h3", dc, _(m.value), 1)]), D("div", fc, [D("button", {
3165
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)]",
3166
3257
  title: x(a).toolbar.duplicate,
3167
3258
  onClick: r[0] ||= (e) => i("duplicate")
3168
- }, [P(x(It), {
3259
+ }, [P(x(pt), {
3169
3260
  size: 14,
3170
3261
  "stroke-width": 2
3171
- })], 8, ac), D("button", {
3262
+ })], 8, pc), D("button", {
3172
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)]",
3173
3264
  title: x(a).toolbar.delete,
3174
3265
  onClick: r[1] ||= (e) => i("delete")
3175
- }, [P(x(bt), {
3266
+ }, [P(x(gt), {
3176
3267
  size: 14,
3177
3268
  "stroke-width": 2
3178
- })], 8, oc)])]), D("div", sc, [f.value ? (s(), C(ka, {
3269
+ })], 8, mc)])]), D("div", hc, [f.value ? (s(), C(La, {
3179
3270
  key: 0,
3180
3271
  block: e.block,
3181
3272
  onUpdateFieldValues: r[2] ||= (e) => i("update", { fieldValues: e }),
3182
3273
  onUpdateDataSourceFetched: r[3] ||= (e) => i("update", { dataSourceFetched: e })
3183
- }, null, 8, ["block"])) : u.value === "section" ? (s(), C(Do, {
3274
+ }, null, 8, ["block"])) : u.value === "section" ? (s(), C(Fo, {
3184
3275
  key: 1,
3185
3276
  block: e.block,
3186
3277
  onUpdate: S
3187
- }, null, 8, ["block"])) : u.value === "title" ? (s(), C(Vs, {
3278
+ }, null, 8, ["block"])) : u.value === "title" ? (s(), C(Ys, {
3188
3279
  key: 2,
3189
3280
  block: e.block,
3190
3281
  "font-families": x(g),
3191
3282
  onUpdate: S
3192
- }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), y(j, { key: 3 }, [], 64)) : u.value === "image" ? (s(), C(to, {
3283
+ }, null, 8, ["block", "font-families"])) : u.value === "paragraph" ? (s(), y(j, { key: 3 }, [], 64)) : u.value === "image" ? (s(), C(lo, {
3193
3284
  key: 4,
3194
3285
  block: e.block,
3195
3286
  onUpdate: S
3196
- }, null, 8, ["block"])) : u.value === "video" ? (s(), C($s, {
3287
+ }, null, 8, ["block"])) : u.value === "video" ? (s(), C(sc, {
3197
3288
  key: 5,
3198
3289
  block: e.block,
3199
3290
  onUpdate: S
3200
- }, null, 8, ["block"])) : u.value === "button" ? (s(), C(ni, {
3291
+ }, null, 8, ["block"])) : u.value === "button" ? (s(), C(ui, {
3201
3292
  key: 6,
3202
3293
  block: e.block,
3203
3294
  "font-families": x(g),
3204
3295
  onUpdate: S
3205
- }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), C(Fa, {
3296
+ }, null, 8, ["block", "font-families"])) : u.value === "divider" ? (s(), C(Ua, {
3206
3297
  key: 7,
3207
3298
  block: e.block,
3208
3299
  onUpdate: S
3209
- }, null, 8, ["block"])) : u.value === "social" ? (s(), C(Ko, {
3300
+ }, null, 8, ["block"])) : u.value === "social" ? (s(), C(es, {
3210
3301
  key: 8,
3211
3302
  block: e.block,
3212
3303
  onUpdate: S
3213
- }, null, 8, ["block"])) : u.value === "menu" ? (s(), C(po, {
3304
+ }, null, 8, ["block"])) : u.value === "menu" ? (s(), C(xo, {
3214
3305
  key: 9,
3215
3306
  block: e.block,
3216
3307
  "font-families": x(g),
3217
3308
  onUpdate: S
3218
- }, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), C(Os, {
3309
+ }, null, 8, ["block", "font-families"])) : u.value === "table" ? (s(), C(Is, {
3219
3310
  key: 10,
3220
3311
  block: e.block,
3221
3312
  "font-families": x(g),
3222
3313
  onUpdate: S
3223
- }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), C(Zo, {
3314
+ }, null, 8, ["block", "font-families"])) : u.value === "spacer" ? (s(), C(as, {
3224
3315
  key: 11,
3225
3316
  block: e.block,
3226
3317
  onUpdate: S
3227
- }, null, 8, ["block"])) : u.value === "html" ? (s(), C(za, {
3318
+ }, null, 8, ["block"])) : u.value === "html" ? (s(), C(qa, {
3228
3319
  key: 12,
3229
3320
  block: e.block,
3230
3321
  onUpdate: S
@@ -3233,52 +3324,52 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3233
3324
  block: e.block,
3234
3325
  "font-families": x(g),
3235
3326
  onUpdate: S
3236
- }, null, 8, ["block", "font-families"])) : b("", !0), P(qi, {
3327
+ }, null, 8, ["block", "font-families"])) : b("", !0), P(ta, {
3237
3328
  block: e.block,
3238
3329
  "is-first-section": u.value === "paragraph",
3239
3330
  onUpdate: S
3240
- }, null, 8, ["block", "is-first-section"])])], 8, ec));
3331
+ }, null, 8, ["block", "is-first-section"])])], 8, cc));
3241
3332
  }
3242
- }), [["__scopeId", "data-v-2ac88283"]]), lc = ["aria-label"], uc = {
3333
+ }), [["__scopeId", "data-v-2ac88283"]]), _c = ["aria-label"], vc = {
3243
3334
  role: "tablist",
3244
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"
3245
- }, dc = [
3336
+ }, yc = [
3246
3337
  "aria-selected",
3247
3338
  "aria-label",
3248
3339
  "title"
3249
- ], fc = { key: 0 }, pc = [
3340
+ ], bc = { key: 0 }, xc = [
3250
3341
  "aria-selected",
3251
3342
  "aria-label",
3252
3343
  "title"
3253
- ], mc = { key: 0 }, hc = [
3344
+ ], Sc = { key: 0 }, Cc = [
3254
3345
  "aria-selected",
3255
3346
  "aria-label",
3256
3347
  "title"
3257
- ], gc = { key: 0 }, _c = {
3348
+ ], wc = { key: 0 }, Tc = {
3258
3349
  key: 1,
3259
3350
  class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
3260
- }, vc = {
3351
+ }, Ec = {
3261
3352
  key: 0,
3262
3353
  id: "tpl-tabpanel-content",
3263
3354
  role: "tabpanel",
3264
3355
  "aria-labelledby": "tpl-tab-content",
3265
3356
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3266
- }, yc = {
3357
+ }, Dc = {
3267
3358
  key: 1,
3268
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)]"
3269
- }, bc = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, xc = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Sc = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, Cc = {
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 = {
3270
3361
  key: 1,
3271
3362
  id: "tpl-tabpanel-settings",
3272
3363
  role: "tabpanel",
3273
3364
  "aria-labelledby": "tpl-tab-settings",
3274
3365
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3275
- }, wc = {
3366
+ }, Mc = {
3276
3367
  key: 2,
3277
3368
  id: "tpl-tabpanel-issues",
3278
3369
  role: "tabpanel",
3279
3370
  "aria-labelledby": "tpl-tab-issues",
3280
3371
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
3281
- }, Tc = /* @__PURE__ */ N({
3372
+ }, Nc = /* @__PURE__ */ N({
3282
3373
  __name: "RightSidebar",
3283
3374
  props: {
3284
3375
  selectedBlock: {},
@@ -3292,7 +3383,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3292
3383
  "update-settings"
3293
3384
  ],
3294
3385
  setup(e, { emit: t }) {
3295
- 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);
3296
3387
  function f(e) {
3297
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)]";
3298
3389
  }
@@ -3308,7 +3399,7 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3308
3399
  "aria-label": x(a).landmarks.rightSidebar,
3309
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"])
3310
3401
  }, [
3311
- D("div", uc, [
3402
+ D("div", vc, [
3312
3403
  D("button", {
3313
3404
  id: "tpl-tab-content",
3314
3405
  role: "tab",
@@ -3319,10 +3410,10 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3319
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")]),
3320
3411
  style: k(p("content")),
3321
3412
  onClick: r[0] ||= (e) => o.value = "content"
3322
- }, [P(x(lt), {
3413
+ }, [P(x(jt), {
3323
3414
  size: 14,
3324
3415
  "stroke-width": 2
3325
- }), o.value === "content" ? (s(), y("span", fc, _(x(a).sidebar.content), 1)) : b("", !0)], 14, dc),
3416
+ }), o.value === "content" ? (s(), y("span", bc, _(x(a).sidebar.content), 1)) : b("", !0)], 14, yc),
3326
3417
  D("button", {
3327
3418
  id: "tpl-tab-settings",
3328
3419
  role: "tab",
@@ -3333,10 +3424,10 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3333
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")]),
3334
3425
  style: k(p("settings")),
3335
3426
  onClick: r[1] ||= (e) => o.value = "settings"
3336
- }, [P(x(tt), {
3427
+ }, [P(x(Ct), {
3337
3428
  size: 14,
3338
3429
  "stroke-width": 1.5
3339
- }), o.value === "settings" ? (s(), y("span", mc, _(x(a).sidebar.settings), 1)) : b("", !0)], 14, pc),
3430
+ }), o.value === "settings" ? (s(), y("span", Sc, _(x(a).sidebar.settings), 1)) : b("", !0)], 14, xc),
3340
3431
  l.value ? (s(), y("button", {
3341
3432
  key: 0,
3342
3433
  id: "tpl-tab-issues",
@@ -3349,115 +3440,58 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3349
3440
  style: k(p("issues")),
3350
3441
  onClick: r[2] ||= (e) => o.value = "issues"
3351
3442
  }, [
3352
- P(x(Ot), {
3443
+ P(x(Pt), {
3353
3444
  size: 14,
3354
3445
  "stroke-width": 1.5
3355
3446
  }),
3356
- o.value === "issues" ? (s(), y("span", gc, _(x(a).issues.panelTabLabel), 1)) : b("", !0),
3357
- u.value > 0 ? (s(), y("span", _c, _(u.value), 1)) : b("", !0)
3358
- ], 14, hc)) : 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)
3359
3450
  ]),
3360
- o.value === "content" ? (s(), y("div", vc, [e.selectedBlock ? (s(), C(cc, {
3451
+ o.value === "content" ? (s(), y("div", Ec, [e.selectedBlock ? (s(), C(gc, {
3361
3452
  key: 0,
3362
3453
  block: e.selectedBlock,
3363
3454
  onUpdate: r[3] ||= (e) => i("update-block", e),
3364
3455
  onDelete: r[4] ||= (e) => i("delete-block"),
3365
3456
  onDuplicate: r[5] ||= (e) => i("duplicate-block")
3366
- }, null, 8, ["block"])) : (s(), y("div", yc, [
3367
- D("div", bc, [P(x(yt), {
3457
+ }, null, 8, ["block"])) : (s(), y("div", Dc, [
3458
+ D("div", Oc, [P(x(Et), {
3368
3459
  size: 40,
3369
3460
  "stroke-width": 1.5
3370
3461
  })]),
3371
- D("h3", xc, _(x(a).sidebar.noSelection), 1),
3372
- D("p", Sc, _(x(a).sidebar.noSelectionHint), 1)
3462
+ D("h3", kc, _(x(a).sidebar.noSelection), 1),
3463
+ D("p", Ac, _(x(a).sidebar.noSelectionHint), 1)
3373
3464
  ]))])) : b("", !0),
3374
- o.value === "settings" ? (s(), y("div", Cc, [P(Er, {
3465
+ o.value === "settings" ? (s(), y("div", jc, [P(Pr, {
3375
3466
  settings: e.settings,
3376
3467
  onUpdate: r[6] ||= (e) => i("update-settings", e)
3377
3468
  }, null, 8, ["settings"])])) : b("", !0),
3378
- o.value === "issues" && l.value ? (s(), y("div", wc, [P(x(n))])) : b("", !0)
3379
- ], 10, lc));
3469
+ o.value === "issues" && l.value ? (s(), y("div", Mc, [P(x(n))])) : b("", !0)
3470
+ ], 10, _c));
3380
3471
  }
3381
- }), Ec = {
3472
+ }), Pc = {
3382
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)]",
3383
3474
  style: { "z-index": "10001" },
3384
3475
  role: "status",
3385
3476
  "data-testid": "small-screen-notice"
3386
- }, Dc = { class: "tpl:text-[var(--tpl-text-dim)]" }, Oc = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, kc = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, Ac = /* @__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({
3387
3478
  __name: "SmallScreenNotice",
3388
3479
  setup(e) {
3389
3480
  let { t } = W();
3390
- return (e, n) => (s(), y("div", Ec, [
3391
- D("div", Dc, [P(x(mt), {
3481
+ return (e, n) => (s(), y("div", Pc, [
3482
+ D("div", Fc, [P(x(nt), {
3392
3483
  size: 48,
3393
3484
  "stroke-width": 1.5
3394
3485
  })]),
3395
- D("h2", Oc, _(x(t).smallScreen.title), 1),
3396
- D("p", kc, _(x(t).smallScreen.message), 1)
3486
+ D("h2", Ic, _(x(t).smallScreen.title), 1),
3487
+ D("p", Lc, _(x(t).smallScreen.message), 1)
3397
3488
  ]));
3398
3489
  }
3399
- }), jc = ["aria-label"], Mc = [
3400
- "aria-checked",
3401
- "aria-label",
3402
- "title",
3403
- "onClick"
3404
- ], Nc = /* @__PURE__ */ N({
3405
- __name: "ViewportToggle",
3406
- props: { viewport: {} },
3407
- emits: ["change"],
3408
- setup(e, { emit: t }) {
3409
- let n = e, r = t, { t: i } = W(), a = v(() => [{
3410
- value: "desktop",
3411
- label: i.viewport.desktop
3412
- }, {
3413
- value: "mobile",
3414
- label: i.viewport.mobile
3415
- }]), o = v(() => `translateX(${a.value.findIndex((e) => e.value === n.viewport) * 100}%)`);
3416
- return (t, n) => (s(), y("div", {
3417
- role: "radiogroup",
3418
- "aria-label": x(i).viewport.label,
3419
- class: "tpl:relative tpl:grid tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1",
3420
- style: k({
3421
- gridTemplateColumns: `repeat(${a.value.length}, 1fr)`,
3422
- backgroundColor: "var(--tpl-bg-hover)"
3423
- })
3424
- }, [D("div", {
3425
- class: "tpl:absolute tpl:inset-y-1 tpl:rounded-[var(--tpl-radius-sm)]",
3426
- style: k({
3427
- left: "4px",
3428
- width: `calc((100% - 8px) / ${a.value.length})`,
3429
- transform: o.value,
3430
- backgroundColor: "var(--tpl-bg)",
3431
- boxShadow: "var(--tpl-shadow)",
3432
- transition: "transform 120ms cubic-bezier(0.16, 1, 0.3, 1)"
3433
- })
3434
- }, null, 4), (s(!0), y(j, null, u(a.value, (t) => (s(), y("button", {
3435
- key: t.value,
3436
- role: "radio",
3437
- "aria-checked": e.viewport === t.value,
3438
- "aria-label": t.label,
3439
- class: "tpl:relative tpl:z-10 tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium",
3440
- style: k({
3441
- color: e.viewport === t.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
3442
- transition: "color 120ms cubic-bezier(0.16, 1, 0.3, 1)"
3443
- }),
3444
- title: t.label,
3445
- onClick: (e) => r("change", t.value)
3446
- }, [t.value === "desktop" ? (s(), C(x(mt), {
3447
- key: 0,
3448
- size: 18,
3449
- "stroke-width": 1.5
3450
- })) : (s(), C(x(at), {
3451
- key: 1,
3452
- size: 18,
3453
- "stroke-width": 1.5
3454
- })), D("span", null, _(t.label), 1)], 12, Mc))), 128))], 12, jc));
3455
- }
3456
- }), Pc = [
3490
+ }), zc = [
3457
3491
  "aria-label",
3458
3492
  "title",
3459
3493
  "aria-pressed"
3460
- ], Fc = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
3494
+ ], Bc = /*#__PURE__*/ zt(/* @__PURE__ */ N({
3461
3495
  __name: "PreviewToggle",
3462
3496
  props: { previewMode: { type: Boolean } },
3463
3497
  emits: ["change"],
@@ -3480,23 +3514,23 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3480
3514
  "leave-to-class": "tpl-icon-leave-to",
3481
3515
  mode: "out-in"
3482
3516
  }, {
3483
- default: f(() => [e.previewMode ? (s(), C(x(_t), {
3517
+ default: f(() => [e.previewMode ? (s(), C(x(it), {
3484
3518
  key: "eye",
3485
3519
  size: 18,
3486
3520
  "stroke-width": 1.5
3487
- })) : (s(), C(x(it), {
3521
+ })) : (s(), C(x(It), {
3488
3522
  key: "eye-off",
3489
3523
  size: 18,
3490
3524
  "stroke-width": 1.5
3491
3525
  }))]),
3492
3526
  _: 1
3493
- })], 12, Pc));
3527
+ })], 12, zc));
3494
3528
  }
3495
- }), [["__scopeId", "data-v-af87d02a"]]), Ic = [
3529
+ }), [["__scopeId", "data-v-af87d02a"]]), Vc = [
3496
3530
  "aria-label",
3497
3531
  "title",
3498
3532
  "aria-pressed"
3499
- ], Lc = /*#__PURE__*/ Lt(/* @__PURE__ */ N({
3533
+ ], Hc = /*#__PURE__*/ zt(/* @__PURE__ */ N({
3500
3534
  __name: "DarkModeToggle",
3501
3535
  props: { darkMode: { type: Boolean } },
3502
3536
  emits: ["change"],
@@ -3519,37 +3553,37 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3519
3553
  "leave-to-class": "tpl-icon-leave-to",
3520
3554
  mode: "out-in"
3521
3555
  }, {
3522
- default: f(() => [e.darkMode ? (s(), C(x(vt), {
3556
+ default: f(() => [e.darkMode ? (s(), C(x(dt), {
3523
3557
  key: "moon",
3524
3558
  size: 18,
3525
3559
  "stroke-width": 1.5
3526
- })) : (s(), C(x(Pt), {
3560
+ })) : (s(), C(x(Lt), {
3527
3561
  key: "sun",
3528
3562
  size: 18,
3529
3563
  "stroke-width": 1.5
3530
3564
  }))]),
3531
3565
  _: 1
3532
- })], 12, Ic));
3566
+ })], 12, Vc));
3533
3567
  }
3534
- }), [["__scopeId", "data-v-f8694f76"]]), Rc = {
3568
+ }), [["__scopeId", "data-v-f8694f76"]]), Uc = {
3535
3569
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
3536
3570
  style: {
3537
3571
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
3538
3572
  "backdrop-filter": "blur(8px)",
3539
3573
  "-webkit-backdrop-filter": "blur(8px)"
3540
3574
  }
3541
- }, zc = {
3575
+ }, Wc = {
3542
3576
  href: "https://github.com/templatical/sdk",
3543
3577
  target: "_blank",
3544
3578
  rel: "noopener noreferrer",
3545
3579
  class: "tpl:transition-colors tpl:duration-150 hover:tpl:opacity-80 tpl:text-[var(--tpl-text-dim)]",
3546
3580
  style: { "text-decoration": "none" }
3547
- }, Bc = /* @__PURE__ */ N({
3581
+ }, Gc = /* @__PURE__ */ N({
3548
3582
  __name: "EditorFooter",
3549
3583
  props: { positionClass: {} },
3550
3584
  setup(e) {
3551
3585
  let { t } = W();
3552
- 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", Rc, [
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, [
3553
3587
  D("span", null, _(x(t).footer.poweredBy), 1),
3554
3588
  r[0] ||= D("a", {
3555
3589
  href: "https://templatical.com",
@@ -3564,32 +3598,32 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3564
3598
  alt: ""
3565
3599
  }), M(" Templatical ")], -1),
3566
3600
  r[1] ||= D("span", { class: "tpl:text-[var(--tpl-border)]" }, "·", -1),
3567
- D("a", zc, _(x(t).footer.openSource), 1)
3601
+ D("a", Wc, _(x(t).footer.openSource), 1)
3568
3602
  ])], 2));
3569
3603
  }
3570
- }), Vc = ["aria-labelledby", "data-tpl-theme"], Hc = { 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" }, Uc = ["id"], Wc = ["aria-label"], Gc = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Kc = [
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 = [
3571
3605
  "id",
3572
3606
  "placeholder",
3573
3607
  "aria-label",
3574
3608
  "aria-activedescendant"
3575
- ], qc = {
3609
+ ], Qc = {
3576
3610
  key: 0,
3577
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",
3578
3612
  "data-testid": "merge-tag-picker-group-pills"
3579
- }, Jc = ["data-group-name", "onClick"], Yc = ["aria-label"], Xc = {
3613
+ }, $c = ["data-group-name", "onClick"], el = ["aria-label"], tl = {
3580
3614
  key: 0,
3581
3615
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3582
3616
  "data-testid": "merge-tag-picker-empty"
3583
- }, Zc = {
3617
+ }, nl = {
3584
3618
  key: 1,
3585
3619
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3586
3620
  "data-testid": "merge-tag-picker-empty"
3587
- }, Qc = [
3621
+ }, rl = [
3588
3622
  "aria-expanded",
3589
3623
  "data-group-name",
3590
3624
  "data-group-collapsed",
3591
3625
  "onClick"
3592
- ], $c = { class: "tpl:ml-1 tpl:font-normal" }, el = [
3626
+ ], il = { class: "tpl:ml-1 tpl:font-normal" }, al = [
3593
3627
  "id",
3594
3628
  "aria-selected",
3595
3629
  "data-selected",
@@ -3598,13 +3632,17 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3598
3632
  "title",
3599
3633
  "onMousemove",
3600
3634
  "onClick"
3601
- ], tl = { class: "tpl:text-sm tpl:font-medium" }, nl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, rl = {
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 = {
3602
3636
  key: 0,
3603
3637
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3604
- }, il = "tpl-merge-tag-picker-list", al = /* @__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({
3605
3643
  __name: "MergeTagPickerModal",
3606
3644
  setup(e) {
3607
- 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());
3608
3646
  function N(e) {
3609
3647
  return M.value.has(e);
3610
3648
  }
@@ -3664,31 +3702,31 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3664
3702
  function V(e) {
3665
3703
  t.resolve(e);
3666
3704
  }
3667
- function ee() {
3705
+ function H() {
3668
3706
  t.resolve(null);
3669
3707
  }
3670
- function te(e) {
3708
+ function ee(e) {
3671
3709
  if (B.value.length === 0) return;
3672
3710
  let t = O.value + e;
3673
- 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();
3674
3712
  }
3675
- let H = m(null), ne = m({});
3676
- function U(e, t) {
3713
+ let te = m(null), ne = m({});
3714
+ function re(e, t) {
3677
3715
  ne.value[e] = t ?? null;
3678
3716
  }
3679
- function re() {
3717
+ function ie() {
3680
3718
  l(() => {
3681
- let e = H.value;
3719
+ let e = te.value;
3682
3720
  e && e.querySelector(`[data-merge-tag-index="${O.value}"]`)?.scrollIntoView({ block: "nearest" });
3683
3721
  });
3684
3722
  }
3685
- function ie(e) {
3723
+ function U(e) {
3686
3724
  if (M.value.has(e)) {
3687
3725
  let t = new Set(M.value);
3688
3726
  t.delete(e), M.value = t;
3689
3727
  }
3690
3728
  l(() => {
3691
- let t = H.value;
3729
+ let t = te.value;
3692
3730
  if (!t) return;
3693
3731
  let n = 0, r = !1;
3694
3732
  for (let i of Array.from(t.children)) {
@@ -3705,8 +3743,8 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3705
3743
  });
3706
3744
  }
3707
3745
  function ae(e) {
3708
- if (e.key === "ArrowDown") e.preventDefault(), te(1);
3709
- 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);
3710
3748
  else if (e.key === "Enter") {
3711
3749
  e.preventDefault();
3712
3750
  let t = B.value[O.value];
@@ -3714,45 +3752,45 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3714
3752
  }
3715
3753
  }
3716
3754
  function oe() {
3717
- if (B.value.length !== 0) return `${il}-opt-${O.value}`;
3755
+ if (B.value.length !== 0) return `${ul}-opt-${O.value}`;
3718
3756
  }
3719
3757
  function se(e) {
3720
- return `${il}-opt-${e}`;
3758
+ return `${ul}-opt-${e}`;
3721
3759
  }
3722
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);
3723
- return (e, l) => (s(), C($t, {
3761
+ return (e, l) => (s(), C(rn, {
3724
3762
  visible: x(t).isOpen.value,
3725
- onClose: ee,
3763
+ onClose: H,
3726
3764
  onKeydown: ae
3727
3765
  }, {
3728
3766
  default: f(() => [D("div", {
3729
3767
  role: "dialog",
3730
3768
  "aria-modal": "true",
3731
- "aria-labelledby": `${il}-title`,
3769
+ "aria-labelledby": `${ul}-title`,
3732
3770
  "data-tpl-theme": x(o),
3733
3771
  "data-testid": "merge-tag-picker-modal",
3734
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)]",
3735
3773
  style: k(x(a))
3736
3774
  }, [
3737
- D("header", Hc, [D("h2", {
3738
- id: `${il}-title`,
3775
+ D("header", qc, [D("h2", {
3776
+ id: `${ul}-title`,
3739
3777
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3740
- }, _(x(n).mergeTag.picker.title), 9, Uc), D("button", {
3778
+ }, _(x(n).mergeTag.picker.title), 9, Jc), D("button", {
3741
3779
  type: "button",
3742
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)]",
3743
3781
  "aria-label": x(n).mergeTag.picker.close,
3744
3782
  "data-testid": "merge-tag-picker-close",
3745
- onClick: ee
3746
- }, [P(x(Et), {
3783
+ onClick: H
3784
+ }, [P(x(Ot), {
3747
3785
  size: 16,
3748
3786
  "stroke-width": 2
3749
- })], 8, Wc)]),
3750
- D("div", Gc, [P(x(ut), {
3787
+ })], 8, Yc)]),
3788
+ D("div", Xc, [P(x(lt), {
3751
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)]",
3752
3790
  size: 14,
3753
3791
  "stroke-width": 2
3754
3792
  }), r(D("input", {
3755
- id: `${il}-search`,
3793
+ id: `${ul}-search`,
3756
3794
  ref_key: "searchInputRef",
3757
3795
  ref: h,
3758
3796
  "onUpdate:modelValue": l[0] ||= (e) => c.value = e,
@@ -3760,48 +3798,48 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3760
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)]",
3761
3799
  placeholder: x(n).mergeTag.picker.searchPlaceholder,
3762
3800
  "aria-label": x(n).mergeTag.picker.searchAriaLabel,
3763
- "aria-controls": il,
3801
+ "aria-controls": ul,
3764
3802
  "aria-activedescendant": oe(),
3765
3803
  "data-testid": "merge-tag-picker-search",
3766
3804
  onKeydown: l[1] ||= g(S(() => {}, ["prevent"]), ["enter"])
3767
- }, null, 40, Kc), [[T, c.value]])]),
3768
- ue.value ? (s(), y("div", qc, [(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", {
3769
3807
  key: e,
3770
3808
  type: "button",
3771
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)]",
3772
3810
  "data-testid": "merge-tag-picker-group-pill",
3773
3811
  "data-group-name": e,
3774
- onClick: (t) => ie(e)
3775
- }, _(e), 9, Jc))), 128))])) : b("", !0),
3812
+ onClick: (t) => U(e)
3813
+ }, _(e), 9, $c))), 128))])) : b("", !0),
3776
3814
  D("div", {
3777
- id: il,
3815
+ id: ul,
3778
3816
  ref_key: "listRef",
3779
- ref: H,
3817
+ ref: te,
3780
3818
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3781
3819
  role: "listbox",
3782
3820
  "aria-label": x(n).mergeTag.picker.title,
3783
3821
  "data-testid": "merge-tag-picker-list"
3784
- }, [ce.value ? (s(), y("div", Xc, _(x(n).mergeTag.picker.empty), 1)) : le.value ? (s(), y("div", Zc, _(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", {
3785
3823
  key: 0,
3786
3824
  ref_for: !0,
3787
- ref: (t) => U(e.group, t),
3825
+ ref: (t) => re(e.group, t),
3788
3826
  type: "button",
3789
3827
  "aria-expanded": !N(e.group),
3790
- "aria-controls": il,
3828
+ "aria-controls": ul,
3791
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)]",
3792
3830
  "data-testid": "merge-tag-picker-group-header",
3793
3831
  "data-group-name": e.group,
3794
3832
  "data-group-collapsed": N(e.group) ? "true" : "false",
3795
3833
  onClick: (t) => I(e.group)
3796
3834
  }, [
3797
- P(x(pt), {
3835
+ P(x(st), {
3798
3836
  size: 12,
3799
3837
  "stroke-width": 2,
3800
3838
  class: E(["tpl:transition-transform", N(e.group) ? "tpl:-rotate-90" : ""])
3801
3839
  }, null, 8, ["class"]),
3802
3840
  D("span", null, _(e.group), 1),
3803
- D("span", $c, " (" + _(x(i)(x(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3804
- ], 8, Qc)) : (s(), y("button", {
3841
+ D("span", il, " (" + _(x(i)(x(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3842
+ ], 8, rl)) : (s(), y("button", {
3805
3843
  key: 1,
3806
3844
  id: se(e.index),
3807
3845
  type: "button",
@@ -3816,22 +3854,23 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3816
3854
  onMousemove: (t) => O.value = e.index,
3817
3855
  onClick: (t) => V(e.tag)
3818
3856
  }, [
3819
- D("span", tl, _(e.tag.label), 1),
3820
- D("span", nl, _(e.tag.value), 1),
3821
- e.tag.description ? (s(), y("span", rl, _(e.tag.description), 1)) : b("", !0)
3822
- ], 42, el))], 64))), 128))], 8, Yc)
3823
- ], 12, Vc)]),
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)]),
3824
3863
  _: 1
3825
3864
  }, 8, ["visible"]));
3826
3865
  }
3827
- }), ol = ["data-logic-keyword"], sl = /* @__PURE__ */ N({
3866
+ }), fl = ["data-logic-keyword"], pl = /* @__PURE__ */ N({
3828
3867
  __name: "LogicTagBadge",
3829
3868
  props: {
3830
3869
  value: {},
3831
3870
  syntax: {}
3832
3871
  },
3833
3872
  setup(e) {
3834
- 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));
3835
3874
  return (e, t) => n.value ? (s(), y("span", {
3836
3875
  key: 0,
3837
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",
@@ -3841,22 +3880,22 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3841
3880
  },
3842
3881
  "data-testid": "merge-tag-logic-badge",
3843
3882
  "data-logic-keyword": r.value
3844
- }, _(r.value), 9, ol)) : b("", !0);
3883
+ }, _(r.value), 9, fl)) : b("", !0);
3845
3884
  }
3846
- }), cl = ["aria-labelledby", "data-tpl-theme"], ll = { 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" }, ul = ["id"], dl = ["aria-label"], fl = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, pl = [
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 = [
3847
3886
  "id",
3848
3887
  "placeholder",
3849
3888
  "aria-label",
3850
3889
  "aria-activedescendant"
3851
- ], ml = ["aria-label"], hl = {
3890
+ ], bl = ["aria-label"], xl = {
3852
3891
  key: 0,
3853
3892
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3854
3893
  "data-testid": "logic-picker-empty"
3855
- }, gl = {
3894
+ }, Sl = {
3856
3895
  key: 1,
3857
3896
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3858
3897
  "data-testid": "logic-picker-empty"
3859
- }, _l = ["data-group-name"], vl = [
3898
+ }, Cl = ["data-group-name"], wl = [
3860
3899
  "id",
3861
3900
  "aria-selected",
3862
3901
  "data-selected",
@@ -3864,19 +3903,19 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3864
3903
  "data-logic-kind",
3865
3904
  "onMousemove",
3866
3905
  "onClick"
3867
- ], yl = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, bl = { class: "tpl:text-sm tpl:font-medium" }, xl = {
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 = {
3868
3907
  key: 0,
3869
3908
  class: "tpl:flex tpl:items-center"
3870
- }, Sl = {
3909
+ }, Ol = {
3871
3910
  key: 1,
3872
3911
  class: "tpl:flex tpl:items-center tpl:gap-1"
3873
- }, Cl = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, wl = {
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 = {
3874
3913
  key: 0,
3875
3914
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3876
- }, Tl = "tpl-logic-picker-list", El = /* @__PURE__ */ N({
3915
+ }, jl = "tpl-logic-picker-list", Ml = /* @__PURE__ */ N({
3877
3916
  __name: "LogicTagPickerModal",
3878
3917
  setup(e) {
3879
- 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);
3880
3919
  function A(e) {
3881
3920
  let t = p.value.trim().toLowerCase();
3882
3921
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -3931,72 +3970,72 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
3931
3970
  rows: e,
3932
3971
  items: t
3933
3972
  };
3934
- }), 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);
3935
3974
  F(() => t.isOpen.value, (e) => {
3936
3975
  e && (c.value = "", O.value = 0, l(() => h.value?.focus()));
3937
- }), F(B, (e) => {
3976
+ }), F(V, (e) => {
3938
3977
  O.value >= e.length && (O.value = Math.max(0, e.length - 1));
3939
3978
  });
3940
- let H = m(null);
3979
+ let te = m(null);
3941
3980
  function ne(e) {
3942
3981
  t.resolve(e);
3943
3982
  }
3944
- function U() {
3983
+ function re() {
3945
3984
  t.resolve(null);
3946
3985
  }
3947
- function re(e) {
3948
- B.value.length !== 0 && (O.value = Math.max(0, Math.min(B.value.length - 1, O.value + e)), l(() => {
3949
- 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" });
3950
3989
  }));
3951
3990
  }
3952
- function ie(e) {
3953
- if (e.key === "ArrowDown") e.preventDefault(), re(1);
3954
- 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);
3955
3994
  else if (e.key === "Enter") {
3956
3995
  e.preventDefault();
3957
- let t = B.value[O.value];
3996
+ let t = V.value[O.value];
3958
3997
  t && ne(t);
3959
3998
  }
3960
3999
  }
3961
4000
  function ae(e) {
3962
- return `${Tl}-opt-${e}`;
4001
+ return `${jl}-opt-${e}`;
3963
4002
  }
3964
4003
  function oe() {
3965
- return B.value.length === 0 ? void 0 : `${Tl}-opt-${O.value}`;
4004
+ return V.value.length === 0 ? void 0 : `${jl}-opt-${O.value}`;
3966
4005
  }
3967
- return (e, l) => (s(), C($t, {
4006
+ return (e, l) => (s(), C(rn, {
3968
4007
  visible: x(t).isOpen.value,
3969
- onClose: U,
3970
- onKeydown: ie
4008
+ onClose: re,
4009
+ onKeydown: U
3971
4010
  }, {
3972
4011
  default: f(() => [D("div", {
3973
4012
  role: "dialog",
3974
4013
  "aria-modal": "true",
3975
- "aria-labelledby": `${Tl}-title`,
4014
+ "aria-labelledby": `${jl}-title`,
3976
4015
  "data-tpl-theme": x(o),
3977
4016
  "data-testid": "logic-picker-modal",
3978
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)]",
3979
4018
  style: k(x(a))
3980
4019
  }, [
3981
- D("header", ll, [D("h2", {
3982
- id: `${Tl}-title`,
4020
+ D("header", hl, [D("h2", {
4021
+ id: `${jl}-title`,
3983
4022
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3984
- }, _(x(n).logicTag.picker.title), 9, ul), D("button", {
4023
+ }, _(x(n).logicTag.picker.title), 9, gl), D("button", {
3985
4024
  type: "button",
3986
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)]",
3987
4026
  "aria-label": x(n).logicTag.picker.close,
3988
4027
  "data-testid": "logic-picker-close",
3989
- onClick: U
3990
- }, [P(x(Et), {
4028
+ onClick: re
4029
+ }, [P(x(Ot), {
3991
4030
  size: 16,
3992
4031
  "stroke-width": 2
3993
- })], 8, dl)]),
3994
- D("div", fl, [P(x(ut), {
4032
+ })], 8, _l)]),
4033
+ D("div", vl, [P(x(lt), {
3995
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)]",
3996
4035
  size: 14,
3997
4036
  "stroke-width": 2
3998
4037
  }), r(D("input", {
3999
- id: `${Tl}-search`,
4038
+ id: `${jl}-search`,
4000
4039
  ref_key: "searchInputRef",
4001
4040
  ref: h,
4002
4041
  "onUpdate:modelValue": l[0] ||= (e) => c.value = e,
@@ -4004,25 +4043,25 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
4004
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)]",
4005
4044
  placeholder: x(n).logicTag.picker.searchPlaceholder,
4006
4045
  "aria-label": x(n).logicTag.picker.searchAriaLabel,
4007
- "aria-controls": Tl,
4046
+ "aria-controls": jl,
4008
4047
  "aria-activedescendant": oe(),
4009
4048
  "data-testid": "logic-picker-search",
4010
4049
  onKeydown: l[1] ||= g(S(() => {}, ["prevent"]), ["enter"])
4011
- }, null, 40, pl), [[T, c.value]])]),
4050
+ }, null, 40, yl), [[T, c.value]])]),
4012
4051
  D("div", {
4013
- id: Tl,
4052
+ id: jl,
4014
4053
  ref_key: "listRef",
4015
- ref: H,
4054
+ ref: te,
4016
4055
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
4017
4056
  role: "listbox",
4018
4057
  "aria-label": x(n).logicTag.picker.title,
4019
4058
  "data-testid": "logic-picker-list"
4020
- }, [V.value ? (s(), y("div", hl, _(x(n).logicTag.picker.empty), 1)) : te.value ? (s(), y("div", gl, _(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", {
4021
4060
  key: 0,
4022
4061
  class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
4023
4062
  "data-testid": "logic-picker-header",
4024
4063
  "data-group-name": e.label
4025
- }, _(e.label), 9, _l)) : (s(), y("button", {
4064
+ }, _(e.label), 9, Cl)) : (s(), y("button", {
4026
4065
  key: 1,
4027
4066
  id: ae(e.index),
4028
4067
  type: "button",
@@ -4036,29 +4075,29 @@ var go = { class: "tpl:mb-3.5" }, _o = ["value"], vo = ["value"], yo = {
4036
4075
  onMousemove: (t) => O.value = e.index,
4037
4076
  onClick: (t) => ne(e.kind === "tag" ? e.tag : e.pair)
4038
4077
  }, [
4039
- D("span", yl, [D("span", bl, _(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (s(), y("span", xl, [P(sl, {
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, {
4040
4079
  value: e.tag.value,
4041
4080
  syntax: x(i)
4042
- }, null, 8, ["value", "syntax"])])) : (s(), y("span", Sl, [
4043
- P(sl, {
4081
+ }, null, 8, ["value", "syntax"])])) : (s(), y("span", Ol, [
4082
+ P(pl, {
4044
4083
  value: e.pair.before,
4045
4084
  syntax: x(i)
4046
4085
  }, null, 8, ["value", "syntax"]),
4047
4086
  l[2] ||= D("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
4048
- P(sl, {
4087
+ P(pl, {
4049
4088
  value: e.pair.after,
4050
4089
  syntax: x(i)
4051
4090
  }, null, 8, ["value", "syntax"])
4052
4091
  ]))]),
4053
- D("span", Cl, _(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
4054
- (e.kind === "tag" ? e.tag.description : e.pair.description) ? (s(), y("span", wl, _(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : b("", !0)
4055
- ], 42, vl))], 64))), 128))], 8, ml)
4056
- ], 12, cl)]),
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)]),
4057
4096
  _: 1
4058
4097
  }, 8, ["visible"]));
4059
4098
  }
4060
4099
  });
4061
4100
  //#endregion
4062
- export { Fc as a, Tc as c, pn as d, tn as f, Lc as i, Cn as l, al as n, Nc as o, en as p, Bc as r, Ac as s, El as t, mn 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 };
4063
4102
 
4064
- //# sourceMappingURL=styles-BkXzQ4-n.js.map
4103
+ //# sourceMappingURL=styles-BohMfIBd.js.map