@templatical/editor 0.39.4 → 0.41.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 (230) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-5qqrS6uy.js → AiChatSidebar-a8TPBAl2.js} +3 -3
  3. package/dist/{AiFeatureMenu-BBO_Ojlp.js → AiFeatureMenu-CroDMqRG.js} +3 -3
  4. package/dist/{BlockIssueBadge-D5oGxOQP.js → BlockIssueBadge-D8KsGWY6.js} +2 -2
  5. package/dist/BlockPreviewCanvas-Z9SZIgfA.js +133 -0
  6. package/dist/{CloudHeaderExtras-Cg6uF-yQ.js → CloudHeaderExtras-CVqHeqc6.js} +2 -2
  7. package/dist/{CloudPanels-D1Gg4qrG.js → CloudPanels-CmEpQUJB.js} +4 -4
  8. package/dist/{CollaboratorBar-Cmn0LccS.js → CollaboratorBar-AIQC9fEF.js} +2 -2
  9. package/dist/{CommentsPanel-twNhYUqZ.js → CommentsPanel-9k1q-79y.js} +1 -1
  10. package/dist/{CommentsSidebar-DDO0Qx8U.js → CommentsSidebar-Bc7nORmD.js} +2 -2
  11. package/dist/{CountdownBlock-DSvbf3qU.js → CountdownBlock-C6R-hn7D.js} +1 -1
  12. package/dist/{CountdownToolbar-nvHxu8Gu.js → CountdownToolbar-DkC-qSgq.js} +4 -4
  13. package/dist/{DesignReferenceSidebar-C8ohNhOd.js → DesignReferenceSidebar-OoiYJAKS.js} +3 -3
  14. package/dist/{IssuesPanel-Ck0EGoV5.js → IssuesPanel-Dnns3O9z.js} +3 -3
  15. package/dist/{LogicTagInsertButton-D8IwH-9Z.js → LogicTagInsertButton-BimKobaG.js} +67 -67
  16. package/dist/{MediaEditModal-BFWmufJK.js → MediaEditModal-C-InB-H2.js} +1 -1
  17. package/dist/{MediaPanels-BmDda5rY.js → MediaPanels-CTosUpeo.js} +1 -1
  18. package/dist/{MergeTagInput-QI-5KG2R.js → MergeTagInput-DqpVzhy7.js} +1 -1
  19. package/dist/{MergeTagModeToggle-D793Bj_E.js → MergeTagModeToggle-BkIiAgpQ.js} +4 -4
  20. package/dist/{ParagraphEditor-D6FRxr8Y.js → ParagraphEditor-DaZ03d1U.js} +19 -19
  21. package/dist/{RestoreVersionDialog--b0qfNaK.js → RestoreVersionDialog-DHb1mPoF.js} +2 -2
  22. package/dist/{RichTextEditorContent-BC5UTVnb.js → RichTextEditorContent-AEtfKvLz.js} +5 -5
  23. package/dist/{SaveBlockDialog-C0BdEGeL.js → SaveBlockDialog-hGwLDWfE.js} +8 -8
  24. package/dist/{SavedBlocksBrowserModal-BzDgXtr4.js → SavedBlocksBrowserModal-C0lYVBFi.js} +6 -6
  25. package/dist/{SavedBlocksPanels-DN-bDZzy.js → SavedBlocksPanels-CaTbeVDv.js} +1 -1
  26. package/dist/{SavedBlocksPickBar-pEi9Et8Q.js → SavedBlocksPickBar-DR2afid2.js} +2 -2
  27. package/dist/{TemplateScoringPanel-B1wcfE0w.js → TemplateScoringPanel-Cs0TGtRF.js} +3 -3
  28. package/dist/{TemplateSettings-C_5leDdF.js → TemplateSettings-BD1WNP4C.js} +7 -7
  29. package/dist/{TestEmailModal-maM8SLBV.js → TestEmailModal-DqoosG1u.js} +70 -65
  30. package/dist/{TestEmailPanel-8iAZYpCK.js → TestEmailPanel-DpozqyHF.js} +1 -1
  31. package/dist/{TitleEditor-L26QXwna.js → TitleEditor-BCBdZLt_.js} +9 -9
  32. package/dist/{ToggleSwitch-JvQ_CmI1.js → ToggleSwitch-CJfQ8u57.js} +1 -1
  33. package/dist/{Toolbar-B2kDLFhn.js → Toolbar-C7SjilzH.js} +540 -525
  34. package/dist/{TplModal-DVMS_nAn.js → TplModal-CVO-2KrU.js} +3 -3
  35. package/dist/{VersionHistoryMenu-BVQityes.js → VersionHistoryMenu-b0A8mS2_.js} +2 -2
  36. package/dist/{VersionHistoryPanels-D8f8KvKX.js → VersionHistoryPanels-BzF7dmwa.js} +1 -1
  37. package/dist/{VersionPreviewBanner-BaMSgA1O.js → VersionPreviewBanner-xB9r83r0.js} +1 -1
  38. package/dist/WrapperBlock-BDjOn3fY.js +34 -0
  39. package/dist/{blockTypeIcons-CdXugKyV.js → blockTypeIcons-B0Bq1WT1.js} +1 -1
  40. package/dist/bundle-stats.json +7 -7
  41. package/dist/{ca-Bqeygp1_.js → ca-Ckgw9yd0.js} +1 -0
  42. package/dist/cdn/chunks/{AiChatSidebar-ctfIU4i0.js → AiChatSidebar-mKImUXi6.js} +7 -7
  43. package/dist/cdn/chunks/{AiChatSidebar-ctfIU4i0.js.map → AiChatSidebar-mKImUXi6.js.map} +1 -1
  44. package/dist/cdn/chunks/{AiFeatureMenu-ByygdH_9.js → AiFeatureMenu-Cx3qdStQ.js} +4 -4
  45. package/dist/cdn/chunks/{AiFeatureMenu-ByygdH_9.js.map → AiFeatureMenu-Cx3qdStQ.js.map} +1 -1
  46. package/dist/cdn/chunks/{BlockIssueBadge-9hHpaXb9.js → BlockIssueBadge-DS1pUf5g.js} +3 -3
  47. package/dist/cdn/chunks/{BlockIssueBadge-9hHpaXb9.js.map → BlockIssueBadge-DS1pUf5g.js.map} +1 -1
  48. package/dist/cdn/chunks/BlockPreviewCanvas-D31TNib3.js +135 -0
  49. package/dist/cdn/chunks/BlockPreviewCanvas-D31TNib3.js.map +1 -0
  50. package/dist/cdn/chunks/{CloudHeaderExtras-BxsMpvVr.js → CloudHeaderExtras-0zdlKiq7.js} +3 -3
  51. package/dist/cdn/chunks/{CloudHeaderExtras-BxsMpvVr.js.map → CloudHeaderExtras-0zdlKiq7.js.map} +1 -1
  52. package/dist/cdn/chunks/{CloudPanels-DmxmqAS_.js → CloudPanels-DPh71yOO.js} +5 -5
  53. package/dist/cdn/chunks/{CloudPanels-DmxmqAS_.js.map → CloudPanels-DPh71yOO.js.map} +1 -1
  54. package/dist/cdn/chunks/{CollaboratorBar-B8ttqAqX.js → CollaboratorBar-lCZU8qkg.js} +3 -3
  55. package/dist/cdn/chunks/{CollaboratorBar-B8ttqAqX.js.map → CollaboratorBar-lCZU8qkg.js.map} +1 -1
  56. package/dist/cdn/chunks/{CommentsPanel-C8ibhaiK.js → CommentsPanel-BtAGZfF6.js} +2 -2
  57. package/dist/cdn/chunks/{CommentsPanel-C8ibhaiK.js.map → CommentsPanel-BtAGZfF6.js.map} +1 -1
  58. package/dist/cdn/chunks/{CommentsSidebar-CybWfZ3V.js → CommentsSidebar-Ws07MXYj.js} +3 -3
  59. package/dist/cdn/chunks/{CommentsSidebar-CybWfZ3V.js.map → CommentsSidebar-Ws07MXYj.js.map} +1 -1
  60. package/dist/cdn/chunks/{CountdownBlock-DdC8Lg5F.js → CountdownBlock-sVDjKkRw.js} +2 -2
  61. package/dist/cdn/chunks/{CountdownBlock-DdC8Lg5F.js.map → CountdownBlock-sVDjKkRw.js.map} +1 -1
  62. package/dist/cdn/chunks/{CountdownToolbar-DRESXiVD.js → CountdownToolbar-Bu93WiS8.js} +5 -5
  63. package/dist/cdn/chunks/{CountdownToolbar-DRESXiVD.js.map → CountdownToolbar-Bu93WiS8.js.map} +1 -1
  64. package/dist/cdn/chunks/{DesignReferenceSidebar-CtaoY-hl.js → DesignReferenceSidebar-BlSdh5B7.js} +4 -4
  65. package/dist/cdn/chunks/{DesignReferenceSidebar-CtaoY-hl.js.map → DesignReferenceSidebar-BlSdh5B7.js.map} +1 -1
  66. package/dist/cdn/chunks/{IssuesPanel-C6RlIxoi.js → IssuesPanel-CKkv9z9g.js} +4 -4
  67. package/dist/cdn/chunks/{IssuesPanel-C6RlIxoi.js.map → IssuesPanel-CKkv9z9g.js.map} +1 -1
  68. package/dist/cdn/chunks/{LogicTagInsertButton-DpyPozop.js → LogicTagInsertButton-CHc1yZ9v.js} +165 -165
  69. package/dist/cdn/chunks/{LogicTagInsertButton-DpyPozop.js.map → LogicTagInsertButton-CHc1yZ9v.js.map} +1 -1
  70. package/dist/cdn/chunks/{MediaEditModal-CZBZviu2.js → MediaEditModal-Cw9MhjVz.js} +2 -2
  71. package/dist/cdn/chunks/{MediaEditModal-CZBZviu2.js.map → MediaEditModal-Cw9MhjVz.js.map} +1 -1
  72. package/dist/cdn/chunks/{MediaPanels-Bq5b-XJM.js → MediaPanels-FD_aX3H5.js} +2 -2
  73. package/dist/cdn/chunks/{MediaPanels-Bq5b-XJM.js.map → MediaPanels-FD_aX3H5.js.map} +1 -1
  74. package/dist/cdn/chunks/{MergeTagInput-ERJr7bP_.js → MergeTagInput--qTYfCWk.js} +2 -2
  75. package/dist/cdn/chunks/{MergeTagInput-ERJr7bP_.js.map → MergeTagInput--qTYfCWk.js.map} +1 -1
  76. package/dist/cdn/chunks/{MergeTagModeToggle-n3nvSNeQ.js → MergeTagModeToggle-CdWIGo3Q.js} +5 -5
  77. package/dist/cdn/chunks/{MergeTagModeToggle-n3nvSNeQ.js.map → MergeTagModeToggle-CdWIGo3Q.js.map} +1 -1
  78. package/dist/cdn/chunks/{ParagraphEditor-R2ph_UOo.js → ParagraphEditor-w2qEZTkM.js} +17 -17
  79. package/dist/cdn/chunks/{ParagraphEditor-R2ph_UOo.js.map → ParagraphEditor-w2qEZTkM.js.map} +1 -1
  80. package/dist/cdn/chunks/{RestoreVersionDialog-C-dwbb7T.js → RestoreVersionDialog-cnWVN3nX.js} +3 -3
  81. package/dist/cdn/chunks/{RestoreVersionDialog-C-dwbb7T.js.map → RestoreVersionDialog-cnWVN3nX.js.map} +1 -1
  82. package/dist/cdn/chunks/{RichTextEditorContent-Ch5zeyZ7.js → RichTextEditorContent-Fzuu9pLP.js} +6 -6
  83. package/dist/cdn/chunks/{RichTextEditorContent-Ch5zeyZ7.js.map → RichTextEditorContent-Fzuu9pLP.js.map} +1 -1
  84. package/dist/cdn/chunks/{SaveBlockDialog-C_BPjVv6.js → SaveBlockDialog-jxQtKnVs.js} +9 -9
  85. package/dist/cdn/chunks/{SaveBlockDialog-C_BPjVv6.js.map → SaveBlockDialog-jxQtKnVs.js.map} +1 -1
  86. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CrrGEfFb.js → SavedBlocksBrowserModal-DpXWf4Pi.js} +6 -6
  87. package/dist/cdn/chunks/{SavedBlocksBrowserModal-CrrGEfFb.js.map → SavedBlocksBrowserModal-DpXWf4Pi.js.map} +1 -1
  88. package/dist/cdn/chunks/{SavedBlocksPanels-DfTaMPAr.js → SavedBlocksPanels-B-ASmf1P.js} +2 -2
  89. package/dist/cdn/chunks/{SavedBlocksPanels-DfTaMPAr.js.map → SavedBlocksPanels-B-ASmf1P.js.map} +1 -1
  90. package/dist/cdn/chunks/{SavedBlocksPickBar-DziwHYSu.js → SavedBlocksPickBar-CEFIQ8Nd.js} +3 -3
  91. package/dist/cdn/chunks/{SavedBlocksPickBar-DziwHYSu.js.map → SavedBlocksPickBar-CEFIQ8Nd.js.map} +1 -1
  92. package/dist/cdn/chunks/{TemplateScoringPanel-CR6RG6dZ.js → TemplateScoringPanel-d_Ppowsq.js} +49 -49
  93. package/dist/cdn/chunks/{TemplateScoringPanel-CR6RG6dZ.js.map → TemplateScoringPanel-d_Ppowsq.js.map} +1 -1
  94. package/dist/cdn/chunks/{TemplateSettings-DjXiiiNr.js → TemplateSettings-Dr5OJ0Gi.js} +8 -8
  95. package/dist/cdn/chunks/{TemplateSettings-DjXiiiNr.js.map → TemplateSettings-Dr5OJ0Gi.js.map} +1 -1
  96. package/dist/cdn/chunks/{TestEmailModal-DId9Og-N.js → TestEmailModal-CrjzVw8e.js} +56 -51
  97. package/dist/cdn/chunks/TestEmailModal-CrjzVw8e.js.map +1 -0
  98. package/dist/cdn/chunks/{TestEmailPanel-B8LwXmeX.js → TestEmailPanel-k9vdulTu.js} +2 -2
  99. package/dist/cdn/chunks/{TestEmailPanel-B8LwXmeX.js.map → TestEmailPanel-k9vdulTu.js.map} +1 -1
  100. package/dist/cdn/chunks/{TitleEditor-C7KMzX1e.js → TitleEditor-laILWfKh.js} +9 -9
  101. package/dist/cdn/chunks/{TitleEditor-C7KMzX1e.js.map → TitleEditor-laILWfKh.js.map} +1 -1
  102. package/dist/cdn/chunks/{ToggleSwitch-CDy8OfcB.js → ToggleSwitch-0dGCYnRY.js} +2 -2
  103. package/dist/cdn/chunks/{ToggleSwitch-CDy8OfcB.js.map → ToggleSwitch-0dGCYnRY.js.map} +1 -1
  104. package/dist/cdn/chunks/{Toolbar-DqFhWxgW.js → Toolbar-BsiHW9gY.js} +493 -478
  105. package/dist/cdn/chunks/{Toolbar-DqFhWxgW.js.map → Toolbar-BsiHW9gY.js.map} +1 -1
  106. package/dist/cdn/chunks/{TplModal-BKqDFLq3.js → TplModal-D8DoPbFa.js} +4 -4
  107. package/dist/cdn/chunks/{TplModal-BKqDFLq3.js.map → TplModal-D8DoPbFa.js.map} +1 -1
  108. package/dist/cdn/chunks/{VersionHistoryMenu-Dij1pTEb.js → VersionHistoryMenu-B3-hNu9c.js} +3 -3
  109. package/dist/cdn/chunks/{VersionHistoryMenu-Dij1pTEb.js.map → VersionHistoryMenu-B3-hNu9c.js.map} +1 -1
  110. package/dist/cdn/chunks/{VersionHistoryPanels-DcCFFDK6.js → VersionHistoryPanels-zw1AtzGN.js} +2 -2
  111. package/dist/cdn/chunks/{VersionHistoryPanels-DcCFFDK6.js.map → VersionHistoryPanels-zw1AtzGN.js.map} +1 -1
  112. package/dist/cdn/chunks/{VersionPreviewBanner-Df3FVlig.js → VersionPreviewBanner-PzVQSBJE.js} +2 -2
  113. package/dist/cdn/chunks/{VersionPreviewBanner-Df3FVlig.js.map → VersionPreviewBanner-PzVQSBJE.js.map} +1 -1
  114. package/dist/cdn/chunks/WrapperBlock-CpRvfAV0.js +36 -0
  115. package/dist/cdn/chunks/WrapperBlock-CpRvfAV0.js.map +1 -0
  116. package/dist/cdn/chunks/{ca-Bqeygp1_.js → ca-Ckgw9yd0.js} +2 -1
  117. package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +1 -0
  118. package/dist/cdn/chunks/{cloud-eaXyxZ8l.js → cloud-CIT4yPp4.js} +2 -2
  119. package/dist/cdn/chunks/{cloud-eaXyxZ8l.js.map → cloud-CIT4yPp4.js.map} +1 -1
  120. package/dist/cdn/chunks/{createCloudRuntime-D5bXzcTe.js → createCloudRuntime-COUxbPvd.js} +49 -40
  121. package/dist/cdn/chunks/createCloudRuntime-COUxbPvd.js.map +1 -0
  122. package/dist/cdn/chunks/{de-CY6SlqBx.js → de-D4dweQw8.js} +2 -1
  123. package/dist/cdn/chunks/de-D4dweQw8.js.map +1 -0
  124. package/dist/cdn/chunks/{editor-modal-zxvWz8R6.js → editor-modal-CKu8HhiB.js} +4 -3
  125. package/dist/cdn/chunks/{editor-modal-zxvWz8R6.js.map → editor-modal-CKu8HhiB.js.map} +1 -1
  126. package/dist/cdn/chunks/en-DqzAdO8F.js +2 -0
  127. package/dist/{en-8V-2kDcp.js → cdn/chunks/en-VE7R7NyL.js} +3 -0
  128. package/dist/cdn/chunks/en-VE7R7NyL.js.map +1 -0
  129. package/dist/{es-Cmn1rT3l.js → cdn/chunks/es-B9OhP8H3.js} +3 -0
  130. package/dist/cdn/chunks/es-B9OhP8H3.js.map +1 -0
  131. package/dist/cdn/chunks/{extensions-Bhu8UEE5.js → extensions-CafoGF65.js} +5 -5
  132. package/dist/cdn/chunks/{extensions-Bhu8UEE5.js.map → extensions-CafoGF65.js.map} +1 -1
  133. package/dist/cdn/chunks/{fr-2yDa4zXM.js → fr-wrXhIi00.js} +2 -1
  134. package/dist/cdn/chunks/fr-wrXhIi00.js.map +1 -0
  135. package/dist/cdn/chunks/ja-DhlWUfke.js +94 -0
  136. package/dist/cdn/chunks/ja-DhlWUfke.js.map +1 -0
  137. package/dist/cdn/chunks/ja-fKnVWXHC.js +625 -0
  138. package/dist/cdn/chunks/ja-fKnVWXHC.js.map +1 -0
  139. package/dist/cdn/chunks/keys-DCWeHkSF.js +12 -0
  140. package/dist/cdn/chunks/keys-DCWeHkSF.js.map +1 -0
  141. package/dist/{nl-Bzk2zRI8.js → cdn/chunks/nl-DeFatKJe.js} +3 -0
  142. package/dist/cdn/chunks/nl-DeFatKJe.js.map +1 -0
  143. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js +21 -0
  144. package/dist/cdn/chunks/preRenderCustomBlocks-Dpj-_cOj.js.map +1 -0
  145. package/dist/cdn/chunks/{pt-BR-DqtSCTUi.js → pt-BR-Bh1J8ey6.js} +2 -1
  146. package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +1 -0
  147. package/dist/cdn/chunks/{socialIcons-9VrG8X3m.js → socialIcons-BvYNMn1G.js} +264 -258
  148. package/dist/cdn/chunks/socialIcons-BvYNMn1G.js.map +1 -0
  149. package/dist/cdn/chunks/{src-CaNsA_WX.js → src-Cnc5E71L.js} +258 -247
  150. package/dist/cdn/chunks/src-Cnc5E71L.js.map +1 -0
  151. package/dist/cdn/chunks/{src-Dwgq7hf4.js → src-DveVYoWS.js} +281 -181
  152. package/dist/cdn/chunks/src-DveVYoWS.js.map +1 -0
  153. package/dist/cdn/chunks/{src-CqYYKcCI.js → src-L6HEdwFn.js} +175 -168
  154. package/dist/cdn/chunks/src-L6HEdwFn.js.map +1 -0
  155. package/dist/cdn/chunks/{useCloudI18n-C09JcFS0.js → useCloudI18n-CrjWbpbu.js} +2 -2
  156. package/dist/cdn/chunks/{useCloudI18n-C09JcFS0.js.map → useCloudI18n-CrjWbpbu.js.map} +1 -1
  157. package/dist/cdn/chunks/{useEditorCore-CXYI14ux.js → useEditorCore-DZmtKwJh.js} +431 -409
  158. package/dist/cdn/chunks/useEditorCore-DZmtKwJh.js.map +1 -0
  159. package/dist/cdn/chunks/{useEditorRoot-DFx2fXJP.js → useEditorRoot-CshefZLP.js} +2 -2
  160. package/dist/cdn/chunks/{useEditorRoot-DFx2fXJP.js.map → useEditorRoot-CshefZLP.js.map} +1 -1
  161. package/dist/cdn/chunks/{useI18n-DTZ9sIcv.js → useI18n-CyO_Nmca.js} +2 -2
  162. package/dist/cdn/chunks/{useI18n-DTZ9sIcv.js.map → useI18n-CyO_Nmca.js.map} +1 -1
  163. package/dist/cdn/chunks/{useLogicTag-E2V0Xdcb.js → useLogicTag-DF7-l66G.js} +4 -4
  164. package/dist/cdn/chunks/{useLogicTag-E2V0Xdcb.js.map → useLogicTag-DF7-l66G.js.map} +1 -1
  165. package/dist/cdn/chunks/{useMergeTag-BE8oDoha.js → useMergeTag-DbIHw4NG.js} +4 -4
  166. package/dist/cdn/chunks/{useMergeTag-BE8oDoha.js.map → useMergeTag-DbIHw4NG.js.map} +1 -1
  167. package/dist/cdn/chunks/{usePopoverPosition-gB9q-ql7.js → usePopoverPosition-BJRvAb-h.js} +2 -2
  168. package/dist/cdn/chunks/{usePopoverPosition-gB9q-ql7.js.map → usePopoverPosition-BJRvAb-h.js.map} +1 -1
  169. package/dist/cdn/chunks/{useScrollToBlock-CtTXwmiU.js → useScrollToBlock-DgHZJvID.js} +2 -2
  170. package/dist/cdn/chunks/{useScrollToBlock-CtTXwmiU.js.map → useScrollToBlock-DgHZJvID.js.map} +1 -1
  171. package/dist/cdn/editor.css +1 -1
  172. package/dist/cdn/editor.js +484 -460
  173. package/dist/cdn/editor.js.map +1 -1
  174. package/dist/{cloud-C9xWZXhg.js → cloud-DsqqUfzh.js} +1 -1
  175. package/dist/{createCloudRuntime-BGd5--Bq.js → createCloudRuntime-iLflkYzP.js} +47 -38
  176. package/dist/{de-CY6SlqBx.js → de-D4dweQw8.js} +1 -0
  177. package/dist/{dist-tGkjkX-v.js → dist-DbUZvK04.js} +277 -176
  178. package/dist/{editor-modal-Czq1I8oC.js → editor-modal-qzmEVcIk.js} +3 -2
  179. package/dist/en-1tgLzB8q.js +2 -0
  180. package/dist/{cdn/chunks/en-8V-2kDcp.js → en-VE7R7NyL.js} +1 -2
  181. package/dist/{cdn/chunks/es-Cmn1rT3l.js → es-B9OhP8H3.js} +1 -2
  182. package/dist/{extensions-DRN-elXT.js → extensions-DDhjuVKy.js} +4 -4
  183. package/dist/{fr-2yDa4zXM.js → fr-wrXhIi00.js} +1 -0
  184. package/dist/index.d.ts +65 -0
  185. package/dist/ja-DhlWUfke.js +92 -0
  186. package/dist/ja-fKnVWXHC.js +623 -0
  187. package/dist/keys-CDqfZIRt.js +10 -0
  188. package/dist/{cdn/chunks/nl-Bzk2zRI8.js → nl-DeFatKJe.js} +1 -2
  189. package/dist/preRenderCustomBlocks-BBSqQgke.js +19 -0
  190. package/dist/{pt-BR-DqtSCTUi.js → pt-BR-Bh1J8ey6.js} +1 -0
  191. package/dist/{socialIcons-DkGcpEwC.js → socialIcons-O7PZCW2P.js} +245 -239
  192. package/dist/style.css +1 -1
  193. package/dist/templatical-editor.js +520 -496
  194. package/dist/{useCloudI18n-D1iedlP3.js → useCloudI18n-DpEsiLeR.js} +1 -1
  195. package/dist/{useEditorCore-BUVbQgwb.js → useEditorCore-dcdHB_7H.js} +826 -804
  196. package/dist/{useEditorRoot-BOxn5EfP.js → useEditorRoot-CkB_5d0h.js} +1 -1
  197. package/dist/{useI18n-Ds_-druD.js → useI18n-B_CdcBwG.js} +1 -1
  198. package/dist/{useLogicTag-DoHfc08B.js → useLogicTag-D9pvgxQR.js} +3 -3
  199. package/dist/{useMergeTag-DXyum3kG.js → useMergeTag-BaVFPdlq.js} +5 -5
  200. package/dist/{usePopoverPosition-Du-Ah8E9.js → usePopoverPosition-DH7z3Ghm.js} +1 -1
  201. package/dist/{useScrollToBlock-DXQYPCnJ.js → useScrollToBlock-Dj4v3rxr.js} +1 -1
  202. package/package.json +8 -8
  203. package/dist/BlockPreviewCanvas-BMC16_QU.js +0 -131
  204. package/dist/cdn/chunks/BlockPreviewCanvas-DeS7Sa--.js +0 -133
  205. package/dist/cdn/chunks/BlockPreviewCanvas-DeS7Sa--.js.map +0 -1
  206. package/dist/cdn/chunks/TestEmailModal-DId9Og-N.js.map +0 -1
  207. package/dist/cdn/chunks/ca-Bqeygp1_.js.map +0 -1
  208. package/dist/cdn/chunks/createCloudRuntime-D5bXzcTe.js.map +0 -1
  209. package/dist/cdn/chunks/de-CY6SlqBx.js.map +0 -1
  210. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js +0 -8
  211. package/dist/cdn/chunks/emailFrameWidth-BmFCN2dp.js.map +0 -1
  212. package/dist/cdn/chunks/en-8V-2kDcp.js.map +0 -1
  213. package/dist/cdn/chunks/en-BcQ9ovQu.js +0 -2
  214. package/dist/cdn/chunks/es-Cmn1rT3l.js.map +0 -1
  215. package/dist/cdn/chunks/fr-2yDa4zXM.js.map +0 -1
  216. package/dist/cdn/chunks/keys-dJbD1QPs.js +0 -12
  217. package/dist/cdn/chunks/keys-dJbD1QPs.js.map +0 -1
  218. package/dist/cdn/chunks/nl-Bzk2zRI8.js.map +0 -1
  219. package/dist/cdn/chunks/preRenderCustomBlocks-Bdpiiw4A.js +0 -23
  220. package/dist/cdn/chunks/preRenderCustomBlocks-Bdpiiw4A.js.map +0 -1
  221. package/dist/cdn/chunks/pt-BR-DqtSCTUi.js.map +0 -1
  222. package/dist/cdn/chunks/socialIcons-9VrG8X3m.js.map +0 -1
  223. package/dist/cdn/chunks/src-CaNsA_WX.js.map +0 -1
  224. package/dist/cdn/chunks/src-CqYYKcCI.js.map +0 -1
  225. package/dist/cdn/chunks/src-Dwgq7hf4.js.map +0 -1
  226. package/dist/cdn/chunks/useEditorCore-CXYI14ux.js.map +0 -1
  227. package/dist/emailFrameWidth-BmFCN2dp.js +0 -6
  228. package/dist/en-DQqmtndQ.js +0 -2
  229. package/dist/keys-BdoSgsz9.js +0 -10
  230. package/dist/preRenderCustomBlocks-DFXH54Zr.js +0 -21
@@ -1,26 +1,26 @@
1
1
  import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
2
2
  import { B as t, E as n, F as r, H as i, I as a, N as o, Q as s, R as c, S as l, U as u, X as d, at as f, b as p, ct as m, f as h, g, h as _, lt as v, m as y, o as b, p as x, s as S, u as C, ut as w, x as T, y as E } from "./draggable-IB4x6w2O.js";
3
- import { L as D, W as O, i as k, it as A, r as j } from "./src-Dwgq7hf4.js";
4
- import { a as M, h as N, i as ee, r as P, s as te } from "./socialIcons-9VrG8X3m.js";
5
- import { _ as ne } from "./dist-BRZhN8qJ.js";
6
- import { I as re, N as ie, Z as F, c as ae, d as oe, h as se, n as ce, p as le, v as I } from "./keys-dJbD1QPs.js";
7
- import { t as L } from "./useI18n-DTZ9sIcv.js";
8
- import { a as ue } from "./usePopoverPosition-gB9q-ql7.js";
9
- import { $ as de, D as fe, Et as pe, It as me, Mt as he, Ot as ge, U as R, d as _e, dt as ve, et as z, ft as ye, g as B, h as V, it as be, m as H, n as xe, nt as Se, rt as Ce, s as we, z as Te } from "./icons-BKkJ-5xF.js";
10
- import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
- import { t as De } from "./useAliveFlag-DAlQLbM2.js";
12
- import { _ as Oe, b as ke, c as Ae, g as U, h as W, m as G, p as K, r as je, v as Me } from "./styleConstants-C_YAPdQS.js";
13
- import { t as Ne } from "./blockTypeIcons-raBjStuv.js";
14
- import { c as q } from "./LogicTagInsertButton-DpyPozop.js";
15
- import { n as Pe, t as J } from "./ToggleSwitch-CDy8OfcB.js";
16
- import { t as Y } from "./MergeTagInput-ERJr7bP_.js";
3
+ import { C as D, W as O, Z as k, i as A, pt as j, r as ee } from "./src-DveVYoWS.js";
4
+ import { a as M, h as te, i as N, r as ne, s as re } from "./socialIcons-BvYNMn1G.js";
5
+ import { _ as ie } from "./dist-BRZhN8qJ.js";
6
+ import { $ as ae, C as P, G as oe, L as se, P as ce, c as le, d as ue, h as F, n as de, p as I, v as fe } from "./keys-DCWeHkSF.js";
7
+ import { t as L } from "./useI18n-CyO_Nmca.js";
8
+ import { a as pe } from "./usePopoverPosition-BJRvAb-h.js";
9
+ import { $ as me, D as he, Et as ge, It as _e, Mt as ve, Ot as ye, U as R, d as be, dt as xe, et as z, ft as Se, g as B, h as V, it as Ce, m as H, n as we, nt as Te, rt as Ee, s as De, z as Oe } from "./icons-BKkJ-5xF.js";
10
+ import { t as ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
+ import { t as Ae } from "./useAliveFlag-DAlQLbM2.js";
12
+ import { _ as je, b as Me, c as Ne, g as U, h as W, m as G, p as K, r as Pe, v as Fe } from "./styleConstants-C_YAPdQS.js";
13
+ import { t as Ie } from "./blockTypeIcons-raBjStuv.js";
14
+ import { c as q } from "./LogicTagInsertButton-CHc1yZ9v.js";
15
+ import { n as Le, t as J } from "./ToggleSwitch-0dGCYnRY.js";
16
+ import { t as Y } from "./MergeTagInput--qTYfCWk.js";
17
17
  //#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
18
- var Fe = [
18
+ var Re = [
19
19
  "aria-checked",
20
20
  "aria-label",
21
21
  "title",
22
22
  "onClick"
23
- ], Ie = { key: 1 }, X = /* @__PURE__ */ l({
23
+ ], ze = { key: 1 }, X = /* @__PURE__ */ l({
24
24
  __name: "SlidingPillSelect",
25
25
  props: {
26
26
  options: {},
@@ -63,12 +63,12 @@ var Fe = [
63
63
  key: 0,
64
64
  size: 14,
65
65
  "stroke-width": 2
66
- })) : (o(), g("span", Ie, w(t.label), 1))], 12, Fe))), 128))], 4));
66
+ })) : (o(), g("span", ze, w(t.label), 1))], 12, Re))), 128))], 4));
67
67
  }
68
- }), Le = { class: "tpl:mb-3.5" }, Re = ["value"], ze = { value: "" }, Be = ["value"], Ve = { class: "tpl:mb-3.5" }, He = { class: "tpl:mb-3.5" }, Ue = { class: "tpl:mb-3.5" }, We = { class: "tpl:mb-3.5" }, Ge = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Ke = { class: "tpl:mb-3.5" }, qe = { class: "tpl:flex tpl:items-stretch" }, Je = ["value"], Ye = { class: "tpl:mb-3.5" }, Xe = { class: "tpl:flex tpl:items-stretch" }, Ze = ["value"], Qe = { class: "tpl:mb-3.5" }, $e = ["value"], et = { value: "auto" }, tt = { value: "full" }, nt = { value: "custom" }, rt = {
68
+ }), Be = { class: "tpl:mb-3.5" }, Ve = ["value"], He = { value: "" }, Ue = ["value"], We = { class: "tpl:mb-3.5" }, Ge = { class: "tpl:mb-3.5" }, Ke = { class: "tpl:mb-3.5" }, qe = { class: "tpl:mb-3.5" }, Je = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, Ye = { class: "tpl:mb-3.5" }, Xe = { class: "tpl:flex tpl:items-stretch" }, Ze = ["value"], Qe = { class: "tpl:mb-3.5" }, $e = { class: "tpl:flex tpl:items-stretch" }, et = ["value"], tt = { class: "tpl:mb-3.5" }, nt = ["value"], rt = { value: "auto" }, it = { value: "full" }, at = { value: "custom" }, ot = {
69
69
  key: 0,
70
70
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
71
- }, it = ["value"], at = { class: "tpl:mb-3.5" }, ot = 200, st = /* @__PURE__ */ l({
71
+ }, st = ["value"], ct = { class: "tpl:mb-3.5" }, lt = 200, ut = /* @__PURE__ */ l({
72
72
  __name: "ButtonToolbar",
73
73
  props: {
74
74
  block: {},
@@ -86,7 +86,7 @@ var Fe = [
86
86
  return;
87
87
  }
88
88
  if (e === "custom") {
89
- c("width", typeof n.block.width == "number" ? n.block.width : ot);
89
+ c("width", typeof n.block.width == "number" ? n.block.width : lt);
90
90
  return;
91
91
  }
92
92
  c("width", void 0);
@@ -96,20 +96,20 @@ var Fe = [
96
96
  !Number.isFinite(t) || t <= 0 || c("width", t);
97
97
  }
98
98
  return (t, n) => (o(), g(C, null, [
99
- x("div", Le, [x("label", { class: m(f(U)) }, w(f(a).button.fontFamily), 3), x("select", {
99
+ x("div", Be, [x("label", { class: m(f(U)) }, w(f(a).button.fontFamily), 3), x("select", {
100
100
  class: m(f(K)),
101
101
  value: e.block.fontFamily || "",
102
102
  onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
103
- }, [x("option", ze, w(f(a).button.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
103
+ }, [x("option", He, w(f(a).button.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
104
104
  key: e.value,
105
105
  value: e.value
106
- }, w(e.label), 9, Be))), 128))], 42, Re)]),
107
- x("div", Ve, [x("label", { class: m(f(U)) }, w(f(a).button.text), 3), p(Y, {
106
+ }, w(e.label), 9, Ue))), 128))], 42, Ve)]),
107
+ x("div", We, [x("label", { class: m(f(U)) }, w(f(a).button.text), 3), p(Y, {
108
108
  "model-value": e.block.text,
109
109
  type: "text",
110
110
  "onUpdate:modelValue": n[1] ||= (e) => c("text", e)
111
111
  }, null, 8, ["model-value"])]),
112
- x("div", He, [
112
+ x("div", Ge, [
113
113
  x("label", { class: m(f(U)) }, w(f(a).button.url), 3),
114
114
  p(Y, {
115
115
  "model-value": e.block.url,
@@ -125,49 +125,49 @@ var Fe = [
125
125
  "onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
126
126
  }, null, 8, ["model-value", "label"])) : _("", !0)
127
127
  ]),
128
- x("div", Ue, [x("label", { class: m(f(U)) }, w(f(a).button.background), 3), p(q, {
128
+ x("div", Ke, [x("label", { class: m(f(U)) }, w(f(a).button.background), 3), p(q, {
129
129
  "model-value": e.block.backgroundColor,
130
130
  "onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
131
131
  }, null, 8, ["model-value"])]),
132
- x("div", We, [x("label", { class: m(f(U)) }, w(f(a).button.textColor), 3), p(q, {
132
+ x("div", qe, [x("label", { class: m(f(U)) }, w(f(a).button.textColor), 3), p(q, {
133
133
  "model-value": e.block.textColor,
134
134
  "onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
135
135
  }, null, 8, ["model-value"])]),
136
- x("div", Ge, [x("div", Ke, [x("label", { class: m(f(U)) }, w(f(a).button.borderRadius), 3), x("div", qe, [x("input", {
136
+ x("div", Je, [x("div", Ye, [x("label", { class: m(f(U)) }, w(f(a).button.borderRadius), 3), x("div", Xe, [x("input", {
137
137
  type: "number",
138
138
  class: m(f(G)),
139
139
  value: e.block.borderRadius,
140
140
  min: "0",
141
141
  max: "50",
142
142
  onInput: n[6] ||= (e) => c("borderRadius", Number(e.target.value))
143
- }, null, 42, Je), x("span", { class: m(f(W)) }, "px", 2)])]), x("div", Ye, [x("label", { class: m(f(U)) }, w(f(a).button.fontSize), 3), x("div", Xe, [x("input", {
143
+ }, null, 42, Ze), x("span", { class: m(f(W)) }, "px", 2)])]), x("div", Qe, [x("label", { class: m(f(U)) }, w(f(a).button.fontSize), 3), x("div", $e, [x("input", {
144
144
  type: "number",
145
145
  class: m(f(G)),
146
146
  value: e.block.fontSize,
147
147
  min: "10",
148
148
  max: "36",
149
149
  onInput: n[7] ||= (e) => c("fontSize", Number(e.target.value))
150
- }, null, 42, Ze), x("span", { class: m(f(W)) }, "px", 2)])])]),
151
- x("div", Qe, [
150
+ }, null, 42, et), x("span", { class: m(f(W)) }, "px", 2)])])]),
151
+ x("div", tt, [
152
152
  x("label", { class: m(f(U)) }, w(f(a).button.width), 3),
153
153
  x("select", {
154
154
  class: m(f(K)),
155
155
  value: s.value,
156
156
  onChange: n[8] ||= (e) => l(e.target.value)
157
157
  }, [
158
- x("option", et, w(f(a).button.widthAuto), 1),
159
- x("option", tt, w(f(a).button.fullWidth), 1),
160
- x("option", nt, w(f(a).button.widthCustom), 1)
161
- ], 42, $e),
162
- s.value === "custom" ? (o(), g("div", rt, [x("input", {
158
+ x("option", rt, w(f(a).button.widthAuto), 1),
159
+ x("option", it, w(f(a).button.fullWidth), 1),
160
+ x("option", at, w(f(a).button.widthCustom), 1)
161
+ ], 42, nt),
162
+ s.value === "custom" ? (o(), g("div", ot, [x("input", {
163
163
  type: "number",
164
164
  class: m(f(G)),
165
- value: typeof e.block.width == "number" ? e.block.width : ot,
165
+ value: typeof e.block.width == "number" ? e.block.width : lt,
166
166
  min: "20",
167
167
  onInput: n[9] ||= (e) => u(e.target.value)
168
- }, null, 42, it), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
168
+ }, null, 42, st), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
169
169
  ]),
170
- x("div", at, [x("label", { class: m(f(U)) }, w(f(a).title.align), 3), p(X, {
170
+ x("div", ct, [x("label", { class: m(f(U)) }, w(f(a).title.align), 3), p(X, {
171
171
  options: [
172
172
  {
173
173
  value: "left",
@@ -187,7 +187,7 @@ var Fe = [
187
187
  }, null, 8, ["options", "model-value"])])
188
188
  ], 64));
189
189
  }
190
- }), ct = { class: "spacing-control" }, lt = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ut = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, dt = { class: "tpl:flex tpl:items-center" }, ft = ["aria-label"], pt = ["value", "aria-label"], mt = ["aria-label"], ht = { class: "tpl:flex tpl:items-center tpl:gap-2" }, gt = { class: "tpl:flex tpl:items-center" }, _t = ["aria-label"], vt = ["value", "aria-label"], yt = ["aria-label"], bt = ["aria-label", "title"], xt = { class: "tpl:flex tpl:items-center" }, St = ["aria-label"], Ct = ["value", "aria-label"], wt = ["aria-label"], Tt = { class: "tpl:flex tpl:items-center" }, Et = ["aria-label"], Dt = ["value", "aria-label"], Ot = ["aria-label"], Z = "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)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", kt = "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] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", At = /*#__PURE__*/ Ee(/* @__PURE__ */ l({
190
+ }), dt = { class: "spacing-control" }, ft = { class: "tpl:mb-2 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, pt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, mt = { class: "tpl:flex tpl:items-center" }, ht = ["aria-label"], gt = ["value", "aria-label"], _t = ["aria-label"], vt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, yt = { class: "tpl:flex tpl:items-center" }, bt = ["aria-label"], xt = ["value", "aria-label"], St = ["aria-label"], Ct = ["aria-label", "title"], wt = { class: "tpl:flex tpl:items-center" }, Tt = ["aria-label"], Et = ["value", "aria-label"], Dt = ["aria-label"], Ot = { class: "tpl:flex tpl:items-center" }, kt = ["aria-label"], At = ["value", "aria-label"], jt = ["aria-label"], Z = "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)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)] tpl:active:bg-[var(--tpl-bg-active)]", Mt = "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] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]", Nt = /*#__PURE__*/ ke(/* @__PURE__ */ l({
191
191
  __name: "SpacingControl",
192
192
  props: {
193
193
  modelValue: {},
@@ -234,8 +234,8 @@ var Fe = [
234
234
  });
235
235
  }
236
236
  }
237
- return (t, n) => (o(), g("div", ct, [x("label", lt, w(e.label), 1), x("div", ut, [
238
- x("div", dt, [
237
+ return (t, n) => (o(), g("div", dt, [x("label", ft, w(e.label), 1), x("div", pt, [
238
+ x("div", mt, [
239
239
  x("button", {
240
240
  "aria-label": f(a).spacingControl.decreaseTop,
241
241
  class: m([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
@@ -243,15 +243,15 @@ var Fe = [
243
243
  }, [p(f(z), {
244
244
  size: 12,
245
245
  "stroke-width": 2
246
- })], 10, ft),
246
+ })], 10, ht),
247
247
  x("input", {
248
248
  type: "number",
249
- class: m(kt),
249
+ class: m(Mt),
250
250
  value: e.modelValue.top,
251
251
  "aria-label": f(a).spacingControl.top,
252
252
  min: "0",
253
253
  onInput: n[1] ||= (e) => d("top", Number(e.target.value))
254
- }, null, 40, pt),
254
+ }, null, 40, gt),
255
255
  x("button", {
256
256
  "aria-label": f(a).spacingControl.increaseTop,
257
257
  class: m([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
@@ -259,10 +259,10 @@ var Fe = [
259
259
  }, [p(f(R), {
260
260
  size: 12,
261
261
  "stroke-width": 2
262
- })], 10, mt)
262
+ })], 10, _t)
263
263
  ]),
264
- x("div", ht, [
265
- x("div", gt, [
264
+ x("div", vt, [
265
+ x("div", yt, [
266
266
  x("button", {
267
267
  "aria-label": f(a).spacingControl.decreaseLeft,
268
268
  class: m([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
@@ -270,15 +270,15 @@ var Fe = [
270
270
  }, [p(f(z), {
271
271
  size: 12,
272
272
  "stroke-width": 2
273
- })], 10, _t),
273
+ })], 10, bt),
274
274
  x("input", {
275
275
  type: "number",
276
- class: m(kt),
276
+ class: m(Mt),
277
277
  value: e.modelValue.left,
278
278
  "aria-label": f(a).spacingControl.left,
279
279
  min: "0",
280
280
  onInput: n[4] ||= (e) => d("left", Number(e.target.value))
281
- }, null, 40, vt),
281
+ }, null, 40, xt),
282
282
  x("button", {
283
283
  "aria-label": f(a).spacingControl.increaseLeft,
284
284
  class: m([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
@@ -286,23 +286,23 @@ var Fe = [
286
286
  }, [p(f(R), {
287
287
  size: 12,
288
288
  "stroke-width": 2
289
- })], 10, yt)
289
+ })], 10, St)
290
290
  ]),
291
291
  x("button", {
292
292
  class: m(["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)]", l.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)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
293
293
  "aria-label": l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
294
294
  title: l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
295
295
  onClick: _
296
- }, [l.value ? (o(), y(f(Se), {
296
+ }, [l.value ? (o(), y(f(Te), {
297
297
  key: 0,
298
298
  size: 14,
299
299
  "stroke-width": 2
300
- })) : (o(), y(f(Ce), {
300
+ })) : (o(), y(f(Ee), {
301
301
  key: 1,
302
302
  size: 14,
303
303
  "stroke-width": 2
304
- }))], 10, bt),
305
- x("div", xt, [
304
+ }))], 10, Ct),
305
+ x("div", wt, [
306
306
  x("button", {
307
307
  "aria-label": f(a).spacingControl.decreaseRight,
308
308
  class: m([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
@@ -310,15 +310,15 @@ var Fe = [
310
310
  }, [p(f(z), {
311
311
  size: 12,
312
312
  "stroke-width": 2
313
- })], 10, St),
313
+ })], 10, Tt),
314
314
  x("input", {
315
315
  type: "number",
316
- class: m(kt),
316
+ class: m(Mt),
317
317
  value: e.modelValue.right,
318
318
  "aria-label": f(a).spacingControl.right,
319
319
  min: "0",
320
320
  onInput: n[7] ||= (e) => d("right", Number(e.target.value))
321
- }, null, 40, Ct),
321
+ }, null, 40, Et),
322
322
  x("button", {
323
323
  "aria-label": f(a).spacingControl.increaseRight,
324
324
  class: m([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
@@ -326,10 +326,10 @@ var Fe = [
326
326
  }, [p(f(R), {
327
327
  size: 12,
328
328
  "stroke-width": 2
329
- })], 10, wt)
329
+ })], 10, Dt)
330
330
  ])
331
331
  ]),
332
- x("div", Tt, [
332
+ x("div", Ot, [
333
333
  x("button", {
334
334
  "aria-label": f(a).spacingControl.decreaseBottom,
335
335
  class: m([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
@@ -337,15 +337,15 @@ var Fe = [
337
337
  }, [p(f(z), {
338
338
  size: 12,
339
339
  "stroke-width": 2
340
- })], 10, Et),
340
+ })], 10, kt),
341
341
  x("input", {
342
342
  type: "number",
343
- class: m(kt),
343
+ class: m(Mt),
344
344
  value: e.modelValue.bottom,
345
345
  "aria-label": f(a).spacingControl.bottom,
346
346
  min: "0",
347
347
  onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
348
- }, null, 40, Dt),
348
+ }, null, 40, At),
349
349
  x("button", {
350
350
  "aria-label": f(a).spacingControl.increaseBottom,
351
351
  class: m([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
@@ -353,11 +353,11 @@ var Fe = [
353
353
  }, [p(f(R), {
354
354
  size: 12,
355
355
  "stroke-width": 2
356
- })], 10, Ot)
356
+ })], 10, jt)
357
357
  ])
358
358
  ])]));
359
359
  }
360
- }), [["__scopeId", "data-v-69591c1e"]]), jt = ["data-testid"], Mt = { class: "tpl:mt-3" }, Nt = /* @__PURE__ */ l({
360
+ }), [["__scopeId", "data-v-69591c1e"]]), Pt = ["data-testid"], Ft = { class: "tpl:mt-3" }, It = /* @__PURE__ */ l({
361
361
  __name: "CollapsibleSection",
362
362
  props: {
363
363
  title: {},
@@ -372,25 +372,25 @@ var Fe = [
372
372
  "data-testid": e.headerTestId,
373
373
  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)]",
374
374
  onClick: n[0] ||= (e) => t.$emit("toggle")
375
- }, [p(f(me), {
375
+ }, [p(f(_e), {
376
376
  class: m(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
377
377
  size: 12,
378
378
  "stroke-width": 2
379
- }, null, 8, ["class"]), x("span", null, w(e.title), 1)], 8, jt), u(x("div", Mt, [a(t.$slots, "default")], 512), [[S, e.open]])], 2));
379
+ }, null, 8, ["class"]), x("span", null, w(e.title), 1)], 8, Pt), u(x("div", Ft, [a(t.$slots, "default")], 512), [[S, e.open]])], 2));
380
380
  }
381
- }), Pt = { class: "tpl:space-y-2" }, Ft = { class: "tpl:flex tpl:items-center tpl:gap-2" }, It = { class: "tpl:space-y-2" }, Lt = ["value"], Rt = { value: "" }, zt = ["label"], Bt = ["value"], Vt = ["value"], Ht = {
381
+ }), Lt = { class: "tpl:space-y-2" }, Rt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, zt = { class: "tpl:space-y-2" }, Bt = ["value"], Vt = { value: "" }, Ht = ["label"], Ut = ["value"], Wt = ["value"], Gt = {
382
382
  key: 0,
383
383
  value: "__custom__"
384
- }, Ut = {
384
+ }, Kt = {
385
385
  key: 0,
386
386
  class: "tpl:space-y-2"
387
- }, Wt = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Gt = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Kt = { class: "tpl:flex tpl:justify-end" }, qt = ["disabled"], Jt = {
387
+ }, qt = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Jt = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Yt = { class: "tpl:flex tpl:justify-end" }, Xt = ["disabled"], Zt = {
388
388
  key: 0,
389
389
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
390
- }, Yt = { class: "tpl:space-y-1" }, Xt = { 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)]" }, Zt = {
390
+ }, Qt = { class: "tpl:space-y-1" }, $t = { 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)]" }, en = {
391
391
  key: 0,
392
392
  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)]"
393
- }, Qt = /* @__PURE__ */ l({
393
+ }, tn = /* @__PURE__ */ l({
394
394
  __name: "CommonBlockSettings",
395
395
  props: {
396
396
  block: {},
@@ -398,23 +398,23 @@ var Fe = [
398
398
  },
399
399
  emits: ["update"],
400
400
  setup(e, { emit: a }) {
401
- let l = e, v = a, { t: S } = L(), T = n(se, []), D = n(ce, !1), O = d(/* @__PURE__ */ new Set()), k = s(!1), A = s(""), j = s(""), M = [{
401
+ let l = e, v = a, { t: S } = L(), T = n(F, []), D = n(de, !1), O = d(/* @__PURE__ */ new Set()), k = s(!1), A = s(""), j = s(""), ee = [{
402
402
  key: "desktop",
403
- icon: de,
403
+ icon: me,
404
404
  labelKey: "showOnDesktop"
405
405
  }, {
406
406
  key: "mobile",
407
- icon: fe,
407
+ icon: he,
408
408
  labelKey: "showOnMobile"
409
409
  }];
410
- function N(e) {
410
+ function M(e) {
411
411
  O.has(e) ? O.delete(e) : O.add(e);
412
412
  }
413
- let ee = h(() => T.length > 0 || D), P = h(() => l.block.displayCondition ? !T.some((e) => e.label === l.block.displayCondition?.label) : !1);
414
- function te() {
415
- k.value = !0, P.value && l.block.displayCondition ? (A.value = l.block.displayCondition.before, j.value = l.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
416
- }
413
+ let te = h(() => T.length > 0 || D), N = h(() => l.block.displayCondition ? !T.some((e) => e.label === l.block.displayCondition?.label) : !1);
417
414
  function ne() {
415
+ k.value = !0, N.value && l.block.displayCondition ? (A.value = l.block.displayCondition.before, j.value = l.block.displayCondition.after ?? "") : (A.value = "", j.value = "");
416
+ }
417
+ function re() {
418
418
  A.value.trim() && (v("update", { displayCondition: {
419
419
  label: S.blockSettings.customCondition,
420
420
  before: A.value.trim(),
@@ -426,9 +426,9 @@ var Fe = [
426
426
  k.value = !1, A.value = "", j.value = "";
427
427
  return;
428
428
  }
429
- P.value && (A.value = e.before, j.value = e.after ?? "");
429
+ N.value && (A.value = e.before, j.value = e.after ?? "");
430
430
  }, { immediate: !0 });
431
- let re = h(() => {
431
+ let ie = h(() => {
432
432
  let e = {};
433
433
  for (let t of T) {
434
434
  let n = t.group ?? "";
@@ -436,33 +436,33 @@ var Fe = [
436
436
  }
437
437
  return e;
438
438
  });
439
- function ie(e, t) {
439
+ function ae(e, t) {
440
440
  v("update", { styles: {
441
441
  ...l.block.styles,
442
442
  [e]: t
443
443
  } });
444
444
  }
445
- function F(e) {
445
+ function P(e) {
446
446
  return l.block.visibility?.[e] !== !1;
447
447
  }
448
- function ae(e) {
448
+ function oe(e) {
449
449
  let t = {
450
- desktop: F("desktop"),
451
- mobile: F("mobile")
450
+ desktop: P("desktop"),
451
+ mobile: P("mobile")
452
452
  };
453
453
  t[e] = !t[e], v("update", { visibility: t });
454
454
  }
455
455
  return (t, n) => (o(), g("div", { class: m(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
456
- p(Nt, {
456
+ p(It, {
457
457
  title: f(S).blockSettings.spacing,
458
458
  open: O.has("spacing"),
459
459
  "no-border": e.isFirstSection,
460
- onToggle: n[1] ||= (e) => N("spacing")
460
+ onToggle: n[1] ||= (e) => M("spacing")
461
461
  }, {
462
- default: i(() => [p(At, {
462
+ default: i(() => [p(Nt, {
463
463
  label: f(S).blockSettings.padding,
464
464
  "model-value": e.block.styles.padding,
465
- "onUpdate:modelValue": n[0] ||= (e) => ie("padding", e)
465
+ "onUpdate:modelValue": n[0] ||= (e) => ae("padding", e)
466
466
  }, null, 8, ["label", "model-value"])]),
467
467
  _: 1
468
468
  }, 8, [
@@ -470,30 +470,30 @@ var Fe = [
470
470
  "open",
471
471
  "no-border"
472
472
  ]),
473
- p(Nt, {
473
+ p(It, {
474
474
  title: f(S).blockSettings.background,
475
475
  open: O.has("bg"),
476
- onToggle: n[3] ||= (e) => N("bg")
476
+ onToggle: n[3] ||= (e) => M("bg")
477
477
  }, {
478
478
  default: i(() => [x("label", { class: m(f(U)) }, w(f(S).blockSettings.color), 3), p(q, {
479
479
  "model-value": e.block.styles.backgroundColor ?? "",
480
- "onUpdate:modelValue": n[2] ||= (e) => ie("backgroundColor", e)
480
+ "onUpdate:modelValue": n[2] ||= (e) => ae("backgroundColor", e)
481
481
  }, null, 8, ["model-value"])]),
482
482
  _: 1
483
483
  }, 8, ["title", "open"]),
484
- p(Nt, {
484
+ p(It, {
485
485
  title: f(S).blockSettings.display,
486
486
  open: O.has("display"),
487
- onToggle: n[4] ||= (e) => N("display")
487
+ onToggle: n[4] ||= (e) => M("display")
488
488
  }, {
489
- default: i(() => [x("div", Pt, [(o(), g(C, null, r(M, (e) => p(J, {
489
+ default: i(() => [x("div", Lt, [(o(), g(C, null, r(ee, (e) => p(J, {
490
490
  key: e.key,
491
491
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
492
- "model-value": F(e.key),
492
+ "model-value": P(e.key),
493
493
  label: f(S).blockSettings[e.labelKey],
494
- "onUpdate:modelValue": (t) => ae(e.key)
494
+ "onUpdate:modelValue": (t) => oe(e.key)
495
495
  }, {
496
- default: i(() => [x("span", Ft, [(o(), y(c(e.icon), {
496
+ default: i(() => [x("span", Rt, [(o(), y(c(e.icon), {
497
497
  size: 14,
498
498
  "stroke-width": 1.5
499
499
  })), E(" " + w(f(S).blockSettings[e.labelKey]), 1)])]),
@@ -505,21 +505,21 @@ var Fe = [
505
505
  ])), 64))])]),
506
506
  _: 1
507
507
  }, 8, ["title", "open"]),
508
- ee.value ? (o(), y(Nt, {
508
+ te.value ? (o(), y(It, {
509
509
  key: 0,
510
510
  "header-test-id": "display-condition-section",
511
511
  title: f(S).blockSettings.displayCondition,
512
512
  open: O.has("condition"),
513
- onToggle: n[8] ||= (e) => N("condition")
513
+ onToggle: n[8] ||= (e) => M("condition")
514
514
  }, {
515
- default: i(() => [x("div", It, [x("select", {
515
+ default: i(() => [x("div", zt, [x("select", {
516
516
  "data-testid": "display-condition-select",
517
517
  class: m(["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: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)]"]),
518
- value: k.value || P.value ? "__custom__" : e.block.displayCondition?.label ?? "",
518
+ value: k.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
519
519
  onChange: n[5] ||= (e) => {
520
520
  let t = e.target.value;
521
521
  if (t === "__custom__") {
522
- te();
522
+ ne();
523
523
  return;
524
524
  }
525
525
  if (k.value = !1, !t) {
@@ -530,41 +530,41 @@ var Fe = [
530
530
  n && v("update", { displayCondition: n });
531
531
  }
532
532
  }, [
533
- x("option", Rt, w(f(S).blockSettings.noCondition), 1),
534
- (o(!0), g(C, null, r(re.value, (e, t) => (o(), g(C, { key: t }, [t ? (o(), g("optgroup", {
533
+ x("option", Vt, w(f(S).blockSettings.noCondition), 1),
534
+ (o(!0), g(C, null, r(ie.value, (e, t) => (o(), g(C, { key: t }, [t ? (o(), g("optgroup", {
535
535
  key: 0,
536
536
  label: String(t)
537
537
  }, [(o(!0), g(C, null, r(e, (e) => (o(), g("option", {
538
538
  key: e.label,
539
539
  value: e.label
540
- }, w(e.label), 9, Bt))), 128))], 8, zt)) : (o(!0), g(C, { key: 1 }, r(e, (e) => (o(), g("option", {
540
+ }, w(e.label), 9, Ut))), 128))], 8, Ht)) : (o(!0), g(C, { key: 1 }, r(e, (e) => (o(), g("option", {
541
541
  key: e.label,
542
542
  value: e.label
543
- }, w(e.label), 9, Vt))), 128))], 64))), 128)),
544
- f(D) ? (o(), g("option", Ht, w(f(S).blockSettings.customCondition), 1)) : _("", !0)
545
- ], 42, Lt), k.value || P.value ? (o(), g("div", Ut, [
546
- x("div", null, [x("label", Wt, w(f(S).blockSettings.customConditionBefore), 1), u(x("textarea", {
543
+ }, w(e.label), 9, Wt))), 128))], 64))), 128)),
544
+ f(D) ? (o(), g("option", Gt, w(f(S).blockSettings.customCondition), 1)) : _("", !0)
545
+ ], 42, Bt), k.value || N.value ? (o(), g("div", Kt, [
546
+ x("div", null, [x("label", qt, w(f(S).blockSettings.customConditionBefore), 1), u(x("textarea", {
547
547
  "onUpdate:modelValue": n[6] ||= (e) => A.value = e,
548
548
  rows: "2",
549
- class: m(f(Oe))
549
+ class: m(f(je))
550
550
  }, null, 2), [[b, A.value]])]),
551
- x("div", null, [x("label", Gt, w(f(S).blockSettings.customConditionAfter), 1), u(x("textarea", {
551
+ x("div", null, [x("label", Jt, w(f(S).blockSettings.customConditionAfter), 1), u(x("textarea", {
552
552
  "onUpdate:modelValue": n[7] ||= (e) => j.value = e,
553
553
  rows: "2",
554
- class: m(f(Oe))
554
+ class: m(f(je))
555
555
  }, null, 2), [[b, j.value]])]),
556
- x("div", Kt, [x("button", {
556
+ x("div", Yt, [x("button", {
557
557
  type: "button",
558
- class: m(f(Me)),
558
+ class: m(f(Fe)),
559
559
  disabled: !A.value.trim(),
560
- onClick: ne
561
- }, w(f(S).blockSettings.applyCondition), 11, qt)])
562
- ])) : e.block.displayCondition && !P.value ? (o(), g(C, { key: 1 }, [e.block.displayCondition.description ? (o(), g("p", Jt, w(e.block.displayCondition.description), 1)) : _("", !0), x("div", Yt, [x("pre", Xt, w(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), g("pre", Zt, w(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
560
+ onClick: re
561
+ }, w(f(S).blockSettings.applyCondition), 11, Xt)])
562
+ ])) : e.block.displayCondition && !N.value ? (o(), g(C, { key: 1 }, [e.block.displayCondition.description ? (o(), g("p", Zt, w(e.block.displayCondition.description), 1)) : _("", !0), x("div", Qt, [x("pre", $t, w(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), g("pre", en, w(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
563
563
  _: 1
564
564
  }, 8, ["title", "open"])) : _("", !0)
565
565
  ], 2));
566
566
  }
567
- }), $t = ["title"], en = /* @__PURE__ */ l({
567
+ }), nn = ["title"], rn = /* @__PURE__ */ l({
568
568
  __name: "BooleanField",
569
569
  props: {
570
570
  field: {},
@@ -585,7 +585,7 @@ var Fe = [
585
585
  disabled: e.readOnly,
586
586
  "onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
587
587
  }, {
588
- default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(Se), {
588
+ default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(Te), {
589
589
  key: 0,
590
590
  size: 12,
591
591
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -596,9 +596,9 @@ var Fe = [
596
596
  "label",
597
597
  "required",
598
598
  "disabled"
599
- ])], 8, $t));
599
+ ])], 8, nn));
600
600
  }
601
- }), tn = { class: "tpl:mb-3.5" }, nn = ["title"], rn = { class: "tpl-sr-only" }, an = ["title"], on = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ l({
601
+ }), an = { class: "tpl:mb-3.5" }, on = ["title"], sn = { class: "tpl-sr-only" }, cn = ["title"], ln = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ l({
602
602
  __name: "FieldWrapper",
603
603
  props: {
604
604
  label: {},
@@ -607,24 +607,24 @@ var Fe = [
607
607
  },
608
608
  setup(e) {
609
609
  let { t } = L();
610
- return (n, r) => (o(), g("div", tn, [x("label", { class: m(f(U)) }, [
610
+ return (n, r) => (o(), g("div", an, [x("label", { class: m(f(U)) }, [
611
611
  E(w(e.label) + " ", 1),
612
612
  e.readOnly ? (o(), g("span", {
613
613
  key: 0,
614
614
  title: f(t).customBlocks.dataSource.readOnlyTooltip
615
- }, [p(f(Se), {
615
+ }, [p(f(Te), {
616
616
  size: 12,
617
617
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
618
618
  "aria-hidden": "true"
619
- }), x("span", rn, w(f(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, nn)) : _("", !0),
619
+ }), x("span", sn, w(f(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, on)) : _("", !0),
620
620
  e.required ? (o(), g("span", {
621
621
  key: 1,
622
622
  class: "tpl:text-[var(--tpl-danger)]",
623
623
  title: f(t).customBlocks.fields.required
624
- }, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span", on, w(f(t).customBlocks.fields.required), 1)], 8, an)) : _("", !0)
624
+ }, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span", ln, w(f(t).customBlocks.fields.required), 1)], 8, cn)) : _("", !0)
625
625
  ], 2), a(n.$slots, "default")]));
626
626
  }
627
- }), sn = /* @__PURE__ */ l({
627
+ }), un = /* @__PURE__ */ l({
628
628
  __name: "ColorField",
629
629
  props: {
630
630
  field: {},
@@ -633,7 +633,7 @@ var Fe = [
633
633
  },
634
634
  emits: ["update:modelValue"],
635
635
  setup(e, { emit: t }) {
636
- let r = e, a = t, { t: s } = L(), c = n(oe, ue), l = h(() => M(r.field, c));
636
+ let r = e, a = t, { t: s } = L(), c = n(ue, pe), l = h(() => M(r.field, c));
637
637
  return (t, n) => (o(), y(Q, {
638
638
  label: e.field.label,
639
639
  required: e.field.required,
@@ -662,15 +662,15 @@ var Fe = [
662
662
  "read-only"
663
663
  ]));
664
664
  }
665
- }), cn = {
665
+ }), dn = {
666
666
  key: 0,
667
667
  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)]",
668
668
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
669
- }, ln = [
669
+ }, fn = [
670
670
  "value",
671
671
  "placeholder",
672
672
  "title"
673
- ], un = ["value", "placeholder"], dn = /* @__PURE__ */ l({
673
+ ], pn = ["value", "placeholder"], mn = /* @__PURE__ */ l({
674
674
  __name: "ImageField",
675
675
  props: {
676
676
  field: {},
@@ -679,7 +679,7 @@ var Fe = [
679
679
  },
680
680
  emits: ["update:modelValue"],
681
681
  setup(e, { emit: t }) {
682
- let r = e, a = t, { t: c } = L(), l = n(re, null), u = n(ae, null), d = De(), v = h(() => !!l);
682
+ let r = e, a = t, { t: c } = L(), l = n(se, null), u = n(le, null), d = Ae(), v = h(() => !!l);
683
683
  async function b() {
684
684
  let e = await l?.({ accept: ["images"] });
685
685
  d.alive && e && a("update:modelValue", e.url);
@@ -700,7 +700,7 @@ var Fe = [
700
700
  }
701
701
  }
702
702
  }
703
- let { isOver: k } = ee({
703
+ let { isOver: k } = N({
704
704
  target: S,
705
705
  enabled: D,
706
706
  onFiles: O
@@ -715,11 +715,11 @@ var Fe = [
715
715
  ref: S,
716
716
  class: "tpl:relative"
717
717
  }, [
718
- D.value && (f(k) || T.value) ? (o(), g("div", cn, [T.value ? (o(), g(C, { key: 0 }, [p(f(be), {
718
+ D.value && (f(k) || T.value) ? (o(), g("div", dn, [T.value ? (o(), g(C, { key: 0 }, [p(f(Ce), {
719
719
  class: "tpl-spinner",
720
720
  size: 18,
721
721
  "stroke-width": 2
722
- }), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(we), {
722
+ }), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(De), {
723
723
  size: 18,
724
724
  "stroke-width": 1.5
725
725
  }), E(" " + w(f(c).image.dropToUpload), 1)], 64))])) : _("", !0),
@@ -731,19 +731,19 @@ var Fe = [
731
731
  placeholder: e.field.placeholder || "https://...",
732
732
  disabled: "",
733
733
  title: f(c).customBlocks.dataSource.readOnlyTooltip
734
- }, null, 10, ln)) : (o(), g("input", {
734
+ }, null, 10, fn)) : (o(), g("input", {
735
735
  key: 2,
736
736
  type: "url",
737
737
  class: m(f(K)),
738
738
  value: e.modelValue,
739
739
  placeholder: e.field.placeholder || "https://...",
740
740
  onInput: n[0] ||= (e) => a("update:modelValue", e.target.value)
741
- }, null, 42, un)),
741
+ }, null, 42, pn)),
742
742
  v.value && !e.readOnly ? (o(), g("button", {
743
743
  key: 3,
744
744
  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:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
745
745
  onClick: n[1] ||= (e) => b()
746
- }, [p(f(ye), {
746
+ }, [p(f(Se), {
747
747
  size: 14,
748
748
  "stroke-width": 1.5
749
749
  }), E(" " + w(f(c).image.browseMedia), 1)])) : _("", !0)
@@ -755,7 +755,7 @@ var Fe = [
755
755
  "read-only"
756
756
  ]));
757
757
  }
758
- }), fn = [
758
+ }), hn = [
759
759
  "value",
760
760
  "placeholder",
761
761
  "min",
@@ -763,7 +763,7 @@ var Fe = [
763
763
  "step",
764
764
  "disabled",
765
765
  "title"
766
- ], pn = /* @__PURE__ */ l({
766
+ ], gn = /* @__PURE__ */ l({
767
767
  __name: "NumberField",
768
768
  props: {
769
769
  field: {},
@@ -789,7 +789,7 @@ var Fe = [
789
789
  disabled: e.readOnly,
790
790
  title: e.readOnly ? f(r).customBlocks.dataSource.readOnlyTooltip : void 0,
791
791
  onInput: a[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
792
- }, null, 42, fn)]),
792
+ }, null, 42, hn)]),
793
793
  _: 1
794
794
  }, 8, [
795
795
  "label",
@@ -797,13 +797,13 @@ var Fe = [
797
797
  "read-only"
798
798
  ]));
799
799
  }
800
- }), mn = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, hn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, gn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, _n = ["title", "onClick"], vn = {
800
+ }), _n = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, vn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, yn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, bn = ["title", "onClick"], xn = {
801
801
  key: 1,
802
802
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
803
- }, yn = {
803
+ }, Sn = {
804
804
  key: 2,
805
805
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
806
- }, bn = /* @__PURE__ */ l({
806
+ }, Cn = /* @__PURE__ */ l({
807
807
  __name: "RepeatableField",
808
808
  props: {
809
809
  field: {},
@@ -836,20 +836,20 @@ var Fe = [
836
836
  required: e.field.required,
837
837
  "read-only": e.readOnly
838
838
  }, {
839
- default: i(() => [x("div", mn, [
839
+ default: i(() => [x("div", _n, [
840
840
  (o(!0), g(C, null, r(u.value, (t, n) => (o(), g("div", {
841
841
  key: `${e.field.key}-${n}`,
842
842
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
843
- }, [x("div", hn, [x("span", gn, " #" + w(n + 1), 1), v.value && !e.readOnly ? (o(), g("button", {
843
+ }, [x("div", vn, [x("span", yn, " #" + w(n + 1), 1), v.value && !e.readOnly ? (o(), g("button", {
844
844
  key: 0,
845
845
  type: "button",
846
846
  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:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
847
847
  title: f(s).customBlocks.fields.removeItem,
848
848
  onClick: (e) => S(n)
849
- }, [p(f(_e), {
849
+ }, [p(f(be), {
850
850
  size: 12,
851
851
  "stroke-width": 2
852
- })], 8, _n)) : _("", !0)]), (o(!0), g(C, null, r(e.field.fields, (r) => (o(), y(c(f(kn)(r.type)), {
852
+ })], 8, bn)) : _("", !0)]), (o(!0), g(C, null, r(e.field.fields, (r) => (o(), y(c(f(Mn)(r.type)), {
853
853
  key: r.key,
854
854
  field: r,
855
855
  "model-value": t[r.key],
@@ -864,14 +864,14 @@ var Fe = [
864
864
  d.value && !e.readOnly ? (o(), g("button", {
865
865
  key: 0,
866
866
  type: "button",
867
- class: m(f(Ae)),
867
+ class: m(f(Ne)),
868
868
  onClick: b
869
869
  }, [p(f(R), {
870
870
  size: 14,
871
871
  "stroke-width": 2
872
872
  }), E(" " + w(f(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
873
- !d.value && !e.readOnly ? (o(), g("p", vn, w(f(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
874
- !v.value && !e.readOnly ? (o(), g("p", yn, w(f(l)(f(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
873
+ !d.value && !e.readOnly ? (o(), g("p", xn, w(f(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
874
+ !v.value && !e.readOnly ? (o(), g("p", Sn, w(f(l)(f(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
875
875
  ])]),
876
876
  _: 1
877
877
  }, 8, [
@@ -880,11 +880,11 @@ var Fe = [
880
880
  "read-only"
881
881
  ]));
882
882
  }
883
- }), xn = [
883
+ }), wn = [
884
884
  "value",
885
885
  "disabled",
886
886
  "title"
887
- ], Sn = ["value"], Cn = /* @__PURE__ */ l({
887
+ ], Tn = ["value"], En = /* @__PURE__ */ l({
888
888
  __name: "SelectField",
889
889
  props: {
890
890
  field: {},
@@ -908,7 +908,7 @@ var Fe = [
908
908
  }, [(o(!0), g(C, null, r(e.field.options, (e) => (o(), g("option", {
909
909
  key: e.value,
910
910
  value: e.value
911
- }, w(e.label), 9, Sn))), 128))], 42, xn)]),
911
+ }, w(e.label), 9, Tn))), 128))], 42, wn)]),
912
912
  _: 1
913
913
  }, 8, [
914
914
  "label",
@@ -916,11 +916,11 @@ var Fe = [
916
916
  "read-only"
917
917
  ]));
918
918
  }
919
- }), wn = [
919
+ }), Dn = [
920
920
  "value",
921
921
  "placeholder",
922
922
  "title"
923
- ], Tn = /* @__PURE__ */ l({
923
+ ], On = /* @__PURE__ */ l({
924
924
  __name: "TextField",
925
925
  props: {
926
926
  field: {},
@@ -943,7 +943,7 @@ var Fe = [
943
943
  placeholder: e.field.placeholder,
944
944
  disabled: "",
945
945
  title: f(r).customBlocks.dataSource.readOnlyTooltip
946
- }, null, 10, wn)) : (o(), y(Y, {
946
+ }, null, 10, Dn)) : (o(), y(Y, {
947
947
  key: 1,
948
948
  "model-value": e.modelValue,
949
949
  placeholder: e.field.placeholder,
@@ -956,12 +956,12 @@ var Fe = [
956
956
  "read-only"
957
957
  ]));
958
958
  }
959
- }), En = [
959
+ }), kn = [
960
960
  "value",
961
961
  "placeholder",
962
962
  "title"
963
- ], Dn = "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", On = {
964
- text: Tn,
963
+ ], An = "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", jn = {
964
+ text: On,
965
965
  textarea: /* @__PURE__ */ l({
966
966
  __name: "TextareaField",
967
967
  props: {
@@ -984,8 +984,8 @@ var Fe = [
984
984
  rows: "3",
985
985
  disabled: "",
986
986
  title: f(r).customBlocks.dataSource.readOnlyTooltip,
987
- class: m(Dn)
988
- }, null, 8, En)) : (o(), y(Pe, {
987
+ class: m(An)
988
+ }, null, 8, kn)) : (o(), y(Le, {
989
989
  key: 1,
990
990
  "model-value": e.modelValue,
991
991
  placeholder: e.field.placeholder,
@@ -999,42 +999,42 @@ var Fe = [
999
999
  ]));
1000
1000
  }
1001
1001
  }),
1002
- image: dn,
1003
- color: sn,
1004
- number: pn,
1005
- select: Cn,
1006
- boolean: en,
1007
- repeatable: bn
1002
+ image: mn,
1003
+ color: un,
1004
+ number: gn,
1005
+ select: En,
1006
+ boolean: rn,
1007
+ repeatable: Cn
1008
1008
  };
1009
- function kn(e) {
1010
- return On[e] ?? Tn;
1009
+ function Mn(e) {
1010
+ return jn[e] ?? On;
1011
1011
  }
1012
1012
  //#endregion
1013
1013
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1014
- var An = {
1014
+ var Nn = {
1015
1015
  key: 0,
1016
1016
  class: "tpl:p-4"
1017
- }, jn = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Mn = { key: 1 }, Nn = {
1017
+ }, Pn = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Fn = { key: 1 }, In = {
1018
1018
  key: 0,
1019
1019
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1020
- }, Pn = {
1020
+ }, Ln = {
1021
1021
  key: 1,
1022
1022
  class: "tpl:mb-4"
1023
- }, Fn = {
1023
+ }, Rn = {
1024
1024
  key: 1,
1025
1025
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
1026
- }, In = {
1026
+ }, zn = {
1027
1027
  key: 0,
1028
1028
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1029
- }, Ln = {
1029
+ }, Bn = {
1030
1030
  key: 2,
1031
1031
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
1032
- }, Rn = /* @__PURE__ */ l({
1032
+ }, Vn = /* @__PURE__ */ l({
1033
1033
  __name: "CustomBlockToolbar",
1034
1034
  props: { block: {} },
1035
1035
  emits: ["updateFieldValues", "updateDataSourceFetched"],
1036
1036
  setup(e, { emit: t }) {
1037
- let i = e, a = t, { t: s } = L(), l = n(le, []), u = h(() => l.find((e) => e.type === i.block.customType)), d = h(() => i.block), { isFetching: m, fetchError: v, fetch: b, hasDataSource: S, needsFetch: T } = N({
1037
+ let i = e, a = t, { t: s } = L(), l = n(I, []), u = h(() => l.find((e) => e.type === i.block.customType)), d = h(() => i.block), { isFetching: m, fetchError: v, fetch: b, hasDataSource: S, needsFetch: T } = te({
1038
1038
  definition: u,
1039
1039
  block: d,
1040
1040
  onUpdate: (e, t) => {
@@ -1050,23 +1050,23 @@ var An = {
1050
1050
  [e]: t
1051
1051
  });
1052
1052
  }
1053
- return (t, n) => u.value ? (o(), g("div", Mn, [
1054
- u.value.description ? (o(), g("p", Nn, w(u.value.description), 1)) : _("", !0),
1055
- f(S) ? (o(), g("div", Pn, [f(T) && !f(m) ? (o(), g("button", {
1053
+ return (t, n) => u.value ? (o(), g("div", Fn, [
1054
+ u.value.description ? (o(), g("p", In, w(u.value.description), 1)) : _("", !0),
1055
+ f(S) ? (o(), g("div", Ln, [f(T) && !f(m) ? (o(), g("button", {
1056
1056
  key: 0,
1057
1057
  type: "button",
1058
1058
  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-on-primary)] tpl:transition-all tpl:bg-[var(--tpl-primary)]",
1059
1059
  onClick: n[0] ||= (...e) => f(b) && f(b)(...e)
1060
- }, w(u.value?.dataSource?.label || f(s).customBlocks.dataSource.fetchButton), 1)) : (o(), g("div", Fn, [f(m) ? (o(), g("div", In, w(f(s).customBlocks.dataSource.fetching), 1)) : (o(), g("button", {
1060
+ }, w(u.value?.dataSource?.label || f(s).customBlocks.dataSource.fetchButton), 1)) : (o(), g("div", Rn, [f(m) ? (o(), g("div", zn, w(f(s).customBlocks.dataSource.fetching), 1)) : (o(), g("button", {
1061
1061
  key: 1,
1062
1062
  type: "button",
1063
1063
  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:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
1064
1064
  onClick: n[1] ||= (...e) => f(b) && f(b)(...e)
1065
- }, [p(f(Te), { size: 12 }), E(" " + w(f(s).customBlocks.dataSource.changeButton), 1)]))])), f(v) ? (o(), g("p", Ln, [p(f(he), {
1065
+ }, [p(f(Oe), { size: 12 }), E(" " + w(f(s).customBlocks.dataSource.changeButton), 1)]))])), f(v) ? (o(), g("p", Bn, [p(f(ve), {
1066
1066
  size: 14,
1067
1067
  class: "tpl:shrink-0"
1068
1068
  }), E(" " + w(f(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
1069
- (o(!0), g(C, null, r(u.value.fields, (t) => (o(), y(c(f(kn)(t.type)), {
1069
+ (o(!0), g(C, null, r(u.value.fields, (t) => (o(), y(c(f(Mn)(t.type)), {
1070
1070
  key: t.key,
1071
1071
  field: t,
1072
1072
  "model-value": e.block.fieldValues[t.key],
@@ -1078,9 +1078,9 @@ var An = {
1078
1078
  "read-only",
1079
1079
  "onUpdate:modelValue"
1080
1080
  ]))), 128))
1081
- ])) : (o(), g("div", An, [x("p", jn, w(f(s).customBlocks.toolbar.noDefinition), 1)]));
1081
+ ])) : (o(), g("div", Nn, [x("p", Pn, w(f(s).customBlocks.toolbar.noDefinition), 1)]));
1082
1082
  }
1083
- }), zn = { class: "tpl:mb-3.5" }, Bn = { class: "tpl:mb-3.5" }, Vn = { class: "tpl:mb-3.5" }, Hn = { class: "tpl:flex tpl:items-stretch" }, Un = ["value"], Wn = /* @__PURE__ */ l({
1083
+ }), Hn = { class: "tpl:mb-3.5" }, Un = { class: "tpl:mb-3.5" }, Wn = { class: "tpl:mb-3.5" }, Gn = { class: "tpl:flex tpl:items-stretch" }, Kn = ["value"], qn = /* @__PURE__ */ l({
1084
1084
  __name: "DividerToolbar",
1085
1085
  props: { block: {} },
1086
1086
  emits: ["update"],
@@ -1090,7 +1090,7 @@ var An = {
1090
1090
  n("update", { [e]: t });
1091
1091
  }
1092
1092
  return (t, n) => (o(), g(C, null, [
1093
- x("div", zn, [x("label", { class: m(f(U)) }, w(f(r).divider.style), 3), p(X, {
1093
+ x("div", Hn, [x("label", { class: m(f(U)) }, w(f(r).divider.style), 3), p(X, {
1094
1094
  options: [
1095
1095
  {
1096
1096
  value: "solid",
@@ -1108,47 +1108,47 @@ var An = {
1108
1108
  "model-value": e.block.lineStyle,
1109
1109
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
1110
1110
  }, null, 8, ["options", "model-value"])]),
1111
- x("div", Bn, [x("label", { class: m(f(U)) }, w(f(r).divider.color), 3), p(q, {
1111
+ x("div", Un, [x("label", { class: m(f(U)) }, w(f(r).divider.color), 3), p(q, {
1112
1112
  "model-value": e.block.color,
1113
1113
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
1114
1114
  }, null, 8, ["model-value"])]),
1115
- x("div", Vn, [x("label", { class: m(f(U)) }, w(f(r).divider.thickness), 3), x("div", Hn, [x("input", {
1115
+ x("div", Wn, [x("label", { class: m(f(U)) }, w(f(r).divider.thickness), 3), x("div", Gn, [x("input", {
1116
1116
  type: "number",
1117
1117
  class: m(f(G)),
1118
1118
  value: e.block.thickness,
1119
1119
  min: "1",
1120
1120
  max: "10",
1121
1121
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
1122
- }, null, 42, Un), x("span", { class: m(f(W)) }, "px", 2)])])
1122
+ }, null, 42, Kn), x("span", { class: m(f(W)) }, "px", 2)])])
1123
1123
  ], 64));
1124
1124
  }
1125
- }), Gn = { class: "tpl:mb-3.5" }, Kn = ["value"], qn = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Jn = /* @__PURE__ */ l({
1125
+ }), Jn = { class: "tpl:mb-3.5" }, Yn = ["value"], Xn = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Zn = /* @__PURE__ */ l({
1126
1126
  __name: "HtmlToolbar",
1127
1127
  props: { block: {} },
1128
1128
  emits: ["update"],
1129
1129
  setup(e, { emit: t }) {
1130
1130
  let n = t, { t: r } = L();
1131
- return (t, i) => (o(), g("div", Gn, [
1131
+ return (t, i) => (o(), g("div", Jn, [
1132
1132
  x("label", { class: m(f(U)) }, w(f(r).html.content), 3),
1133
1133
  x("textarea", {
1134
1134
  value: e.block.content,
1135
1135
  placeholder: "<div>...</div>",
1136
1136
  rows: "10",
1137
- class: m(f(Oe)),
1137
+ class: m(f(je)),
1138
1138
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
1139
- }, null, 42, Kn),
1140
- x("p", qn, [p(f(ve), {
1139
+ }, null, 42, Yn),
1140
+ x("p", Xn, [p(f(xe), {
1141
1141
  size: 12,
1142
1142
  class: "tpl:mt-0.5 tpl:shrink-0"
1143
1143
  }), E(" " + w(f(r).html.sanitizationHint), 1)])
1144
1144
  ]));
1145
1145
  }
1146
- }), Yn = { class: "tpl:flex tpl:items-stretch" }, Xn = [
1146
+ }), Qn = { class: "tpl:flex tpl:items-stretch" }, $n = [
1147
1147
  "data-testid",
1148
1148
  "value",
1149
1149
  "min",
1150
1150
  "max"
1151
- ], Zn = /* @__PURE__ */ l({
1151
+ ], er = /* @__PURE__ */ l({
1152
1152
  __name: "NumberWithSuffix",
1153
1153
  props: {
1154
1154
  modelValue: {},
@@ -1164,7 +1164,7 @@ var An = {
1164
1164
  let t = e.target;
1165
1165
  t.validity?.badInput || n("update:modelValue", Number(t.value));
1166
1166
  }
1167
- return (t, n) => (o(), g("div", Yn, [x("input", {
1167
+ return (t, n) => (o(), g("div", Qn, [x("input", {
1168
1168
  type: "number",
1169
1169
  "data-testid": e.testid,
1170
1170
  class: m(f(G)),
@@ -1172,101 +1172,101 @@ var An = {
1172
1172
  min: e.min,
1173
1173
  max: e.max,
1174
1174
  onInput: r
1175
- }, null, 42, Xn), x("span", { class: m(f(W)) }, w(e.suffix), 3)]));
1175
+ }, null, 42, $n), x("span", { class: m(f(W)) }, w(e.suffix), 3)]));
1176
1176
  }
1177
- }), Qn = { class: "tpl:mb-3.5" }, $n = {
1177
+ }), tr = { class: "tpl:mb-3.5" }, nr = {
1178
1178
  key: 0,
1179
1179
  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)]",
1180
1180
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1181
- }, er = {
1181
+ }, rr = {
1182
1182
  key: 0,
1183
1183
  class: "tpl:mb-3.5"
1184
- }, tr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, nr = [
1184
+ }, ir = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ar = [
1185
1185
  "value",
1186
1186
  "placeholder",
1187
1187
  "title"
1188
- ], rr = { class: "tpl:mb-3.5" }, ir = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, ar = { class: "tpl:mb-3.5" }, or = ["value"], sr = { value: "full" }, cr = { value: "custom" }, lr = {
1188
+ ], or = { class: "tpl:mb-3.5" }, sr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, cr = { class: "tpl:mb-3.5" }, lr = ["value"], ur = { value: "full" }, dr = { value: "custom" }, fr = {
1189
1189
  key: 0,
1190
1190
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1191
- }, ur = ["value"], dr = { class: "tpl:mb-3.5" }, fr = ["value"], pr = { value: "auto" }, mr = { value: "custom" }, hr = {
1191
+ }, pr = ["value"], mr = { class: "tpl:mb-3.5" }, hr = ["value"], gr = { value: "auto" }, _r = { value: "custom" }, vr = {
1192
1192
  key: 0,
1193
1193
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1194
- }, gr = ["value"], _r = { class: "tpl:mb-3.5" }, vr = { class: "tpl:mb-3.5" }, yr = { class: "tpl:mb-3.5" }, br = 350, xr = 200, Sr = /* @__PURE__ */ l({
1194
+ }, yr = ["value"], br = { class: "tpl:mb-3.5" }, xr = { class: "tpl:mb-3.5" }, Sr = { class: "tpl:mb-3.5" }, Cr = 350, wr = 200, Tr = /* @__PURE__ */ l({
1195
1195
  __name: "ImageToolbar",
1196
1196
  props: { block: {} },
1197
1197
  emits: ["update"],
1198
1198
  setup(e, { emit: t }) {
1199
- let r = e, a = t, { t: c } = L(), l = n(re, null), u = n(ae, null), d = n(ie, j.liquid), v = De(), b = h(() => !!l), S = s(!1), T = s(!1), { start: D } = ne(() => {
1199
+ let r = e, a = t, { t: c } = L(), l = n(se, null), u = n(le, null), d = n(ce, ee.liquid), v = Ae(), b = h(() => !!l), S = s(!1), T = s(!1), { start: D } = ie(() => {
1200
1200
  S.value = !1;
1201
1201
  }, 1e3, { immediate: !1 }), O = [
1202
1202
  300,
1203
1203
  400,
1204
1204
  500
1205
- ], A = h(() => {
1205
+ ], k = h(() => {
1206
1206
  let e = r.block.width;
1207
1207
  return e === "full" ? "full" : O.includes(e) ? String(e) : "custom";
1208
- }), M = h(() => typeof r.block.height == "number" ? "custom" : "auto");
1209
- function N(e, t) {
1208
+ }), j = h(() => typeof r.block.height == "number" ? "custom" : "auto");
1209
+ function M(e, t) {
1210
1210
  a("update", { [e]: t });
1211
1211
  }
1212
- function P(e) {
1212
+ function te(e) {
1213
1213
  if (e === "custom") {
1214
1214
  let e = r.block.width;
1215
- (typeof e != "number" || O.includes(e)) && N("width", br);
1215
+ (typeof e != "number" || O.includes(e)) && M("width", Cr);
1216
1216
  return;
1217
1217
  }
1218
- N("width", e === "full" ? "full" : Number(e));
1218
+ M("width", e === "full" ? "full" : Number(e));
1219
1219
  }
1220
- function te(e) {
1221
- N("height", e === "custom" ? xr : void 0);
1220
+ function ne(e) {
1221
+ M("height", e === "custom" ? wr : void 0);
1222
1222
  }
1223
- function F(e) {
1223
+ function re(e) {
1224
1224
  let t = Number(e);
1225
- !Number.isFinite(t) || t <= 0 || N("height", t);
1225
+ !Number.isFinite(t) || t <= 0 || M("height", t);
1226
1226
  }
1227
- function oe(e) {
1228
- !Number.isFinite(e) || e < 0 || N("borderRadius", e > 0 ? e : void 0);
1227
+ function ae(e) {
1228
+ !Number.isFinite(e) || e < 0 || M("borderRadius", e > 0 ? e : void 0);
1229
1229
  }
1230
- function se(e) {
1230
+ function P(e) {
1231
1231
  let t = Number(e);
1232
- !Number.isFinite(t) || t <= 0 || N("width", t);
1232
+ !Number.isFinite(t) || t <= 0 || M("width", t);
1233
1233
  }
1234
- async function ce() {
1234
+ async function oe() {
1235
1235
  let e = await l?.({ accept: ["images"] });
1236
- v.alive && e && (N("src", e.url), e.alt && (N("alt", e.alt), T.value = !0), S.value = !0, D());
1236
+ v.alive && e && (M("src", e.url), e.alt && (M("alt", e.alt), T.value = !0), S.value = !0, D());
1237
1237
  }
1238
- let le = s(), I = s(!1), ue = h(() => k(r.block.src, d)), de = h(() => (u?.value ?? !!l) && !I.value && !ue.value);
1238
+ let ue = s(), F = s(!1), de = h(() => A(r.block.src, d)), I = h(() => (u?.value ?? !!l) && !F.value && !de.value);
1239
1239
  async function fe(e) {
1240
1240
  if (l) {
1241
- I.value = !0;
1241
+ F.value = !0;
1242
1242
  try {
1243
1243
  let t = await l({
1244
1244
  accept: ["images"],
1245
1245
  files: e
1246
1246
  });
1247
1247
  if (!v.alive) return;
1248
- t && (N("src", t.url), t.alt && (N("alt", t.alt), T.value = !0), S.value = !0, D());
1248
+ t && (M("src", t.url), t.alt && (M("alt", t.alt), T.value = !0), S.value = !0, D());
1249
1249
  } finally {
1250
- v.alive && (I.value = !1);
1250
+ v.alive && (F.value = !1);
1251
1251
  }
1252
1252
  }
1253
1253
  }
1254
- let { isOver: pe } = ee({
1255
- target: le,
1256
- enabled: de,
1254
+ let { isOver: pe } = N({
1255
+ target: ue,
1256
+ enabled: I,
1257
1257
  onFiles: fe
1258
1258
  });
1259
1259
  return (t, n) => (o(), g(C, null, [
1260
- x("div", Qn, [x("label", { class: m(f(U)) }, w(f(c).image.imageUrl), 3), x("div", {
1260
+ x("div", tr, [x("label", { class: m(f(U)) }, w(f(c).image.imageUrl), 3), x("div", {
1261
1261
  ref_key: "dropZoneRef",
1262
- ref: le,
1262
+ ref: ue,
1263
1263
  class: "tpl:relative"
1264
1264
  }, [
1265
- de.value && (f(pe) || I.value) ? (o(), g("div", $n, [I.value ? (o(), g(C, { key: 0 }, [p(f(be), {
1265
+ I.value && (f(pe) || F.value) ? (o(), g("div", nr, [F.value ? (o(), g(C, { key: 0 }, [p(f(Ce), {
1266
1266
  class: "tpl-spinner",
1267
1267
  size: 18,
1268
1268
  "stroke-width": 2
1269
- }), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(we), {
1269
+ }), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(De), {
1270
1270
  size: 18,
1271
1271
  "stroke-width": 1.5
1272
1272
  }), E(" " + w(f(c).image.dropToUpload), 1)], 64))])) : _("", !0),
@@ -1275,7 +1275,7 @@ var An = {
1275
1275
  type: "url",
1276
1276
  placeholder: f(c).image.imageUrlPlaceholder,
1277
1277
  pulse: S.value,
1278
- "onUpdate:modelValue": n[0] ||= (e) => N("src", e)
1278
+ "onUpdate:modelValue": n[0] ||= (e) => M("src", e)
1279
1279
  }, null, 8, [
1280
1280
  "model-value",
1281
1281
  "placeholder",
@@ -1289,21 +1289,21 @@ var An = {
1289
1289
  color: "var(--tpl-primary)",
1290
1290
  "background-color": "var(--tpl-bg)"
1291
1291
  },
1292
- onClick: ce
1293
- }, [p(f(ye), {
1292
+ onClick: oe
1293
+ }, [p(f(Se), {
1294
1294
  size: 14,
1295
1295
  "stroke-width": 1.5
1296
1296
  }), E(" " + w(f(c).image.browseMedia), 1)])) : _("", !0)
1297
1297
  ], 512)]),
1298
- f(k)(e.block.src, f(d)) ? (o(), g("div", er, [x("label", { class: m(f(U)) }, [E(w(f(c).image.placeholderUrl) + " ", 1), x("span", tr, w(f(c).image.optional), 1)], 2), x("input", {
1298
+ f(A)(e.block.src, f(d)) ? (o(), g("div", rr, [x("label", { class: m(f(U)) }, [E(w(f(c).image.placeholderUrl) + " ", 1), x("span", ir, w(f(c).image.optional), 1)], 2), x("input", {
1299
1299
  type: "url",
1300
1300
  class: m(f(K)),
1301
1301
  value: e.block.placeholderUrl || "",
1302
1302
  placeholder: f(c).image.placeholderUrlPlaceholder,
1303
1303
  title: f(c).image.placeholderUrlTooltip,
1304
- onInput: n[1] ||= (e) => N("placeholderUrl", e.target.value)
1305
- }, null, 42, nr)])) : _("", !0),
1306
- x("div", rr, [
1304
+ onInput: n[1] ||= (e) => M("placeholderUrl", e.target.value)
1305
+ }, null, 42, ar)])) : _("", !0),
1306
+ x("div", or, [
1307
1307
  x("label", { class: m(f(U)) }, w(f(c).image.altText), 3),
1308
1308
  p(Y, {
1309
1309
  "model-value": e.block.alt,
@@ -1311,7 +1311,7 @@ var An = {
1311
1311
  placeholder: f(c).image.altTextPlaceholder,
1312
1312
  pulse: T.value,
1313
1313
  disabled: e.block.decorative === !0,
1314
- "onUpdate:modelValue": n[2] ||= (e) => N("alt", e)
1314
+ "onUpdate:modelValue": n[2] ||= (e) => M("alt", e)
1315
1315
  }, null, 8, [
1316
1316
  "model-value",
1317
1317
  "placeholder",
@@ -1322,58 +1322,58 @@ var An = {
1322
1322
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1323
1323
  "model-value": e.block.decorative === !0,
1324
1324
  label: f(c).image.decorative,
1325
- "onUpdate:modelValue": n[3] ||= (e) => N("decorative", e)
1325
+ "onUpdate:modelValue": n[3] ||= (e) => M("decorative", e)
1326
1326
  }, {
1327
- default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span", ir, w(f(c).image.decorativeHint), 1)])]),
1327
+ default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span", sr, w(f(c).image.decorativeHint), 1)])]),
1328
1328
  _: 1
1329
1329
  }, 8, ["model-value", "label"])
1330
1330
  ]),
1331
- x("div", ar, [
1331
+ x("div", cr, [
1332
1332
  x("label", { class: m(f(U)) }, w(f(c).image.width), 3),
1333
1333
  x("select", {
1334
1334
  class: m(f(K)),
1335
- value: A.value,
1336
- onChange: n[4] ||= (e) => P(e.target.value)
1335
+ value: k.value,
1336
+ onChange: n[4] ||= (e) => te(e.target.value)
1337
1337
  }, [
1338
- x("option", sr, w(f(c).image.fullWidth), 1),
1338
+ x("option", ur, w(f(c).image.fullWidth), 1),
1339
1339
  n[11] ||= x("option", { value: "300" }, "300px", -1),
1340
1340
  n[12] ||= x("option", { value: "400" }, "400px", -1),
1341
1341
  n[13] ||= x("option", { value: "500" }, "500px", -1),
1342
- x("option", cr, w(f(c).image.widthCustom), 1)
1343
- ], 42, or),
1344
- A.value === "custom" ? (o(), g("div", lr, [x("input", {
1342
+ x("option", dr, w(f(c).image.widthCustom), 1)
1343
+ ], 42, lr),
1344
+ k.value === "custom" ? (o(), g("div", fr, [x("input", {
1345
1345
  type: "number",
1346
1346
  class: m(f(G)),
1347
- value: typeof e.block.width == "number" ? e.block.width : br,
1347
+ value: typeof e.block.width == "number" ? e.block.width : Cr,
1348
1348
  min: "20",
1349
- onInput: n[5] ||= (e) => se(e.target.value)
1350
- }, null, 42, ur), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
1349
+ onInput: n[5] ||= (e) => P(e.target.value)
1350
+ }, null, 42, pr), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
1351
1351
  ]),
1352
- x("div", dr, [
1352
+ x("div", mr, [
1353
1353
  x("label", { class: m(f(U)) }, w(f(c).image.height), 3),
1354
1354
  x("select", {
1355
1355
  class: m(f(K)),
1356
1356
  "data-testid": "image-height-mode",
1357
- value: M.value,
1358
- onChange: n[6] ||= (e) => te(e.target.value)
1359
- }, [x("option", pr, w(f(c).image.heightAuto), 1), x("option", mr, w(f(c).image.heightCustom), 1)], 42, fr),
1360
- M.value === "custom" ? (o(), g("div", hr, [x("input", {
1357
+ value: j.value,
1358
+ onChange: n[6] ||= (e) => ne(e.target.value)
1359
+ }, [x("option", gr, w(f(c).image.heightAuto), 1), x("option", _r, w(f(c).image.heightCustom), 1)], 42, hr),
1360
+ j.value === "custom" ? (o(), g("div", vr, [x("input", {
1361
1361
  type: "number",
1362
1362
  "data-testid": "image-height-input",
1363
1363
  class: m(f(G)),
1364
1364
  value: e.block.height,
1365
1365
  min: "20",
1366
- onInput: n[7] ||= (e) => F(e.target.value)
1367
- }, null, 42, gr), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
1366
+ onInput: n[7] ||= (e) => re(e.target.value)
1367
+ }, null, 42, yr), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
1368
1368
  ]),
1369
- x("div", _r, [x("label", { class: m(f(U)) }, w(f(c).image.borderRadius), 3), p(Zn, {
1369
+ x("div", br, [x("label", { class: m(f(U)) }, w(f(c).image.borderRadius), 3), p(er, {
1370
1370
  "model-value": e.block.borderRadius ?? 0,
1371
1371
  min: 0,
1372
1372
  suffix: "px",
1373
1373
  testid: "image-border-radius-input",
1374
- "onUpdate:modelValue": oe
1374
+ "onUpdate:modelValue": ae
1375
1375
  }, null, 8, ["model-value"])]),
1376
- x("div", vr, [x("label", { class: m(f(U)) }, w(f(c).title.align), 3), p(X, {
1376
+ x("div", xr, [x("label", { class: m(f(U)) }, w(f(c).title.align), 3), p(X, {
1377
1377
  options: [
1378
1378
  {
1379
1379
  value: "left",
@@ -1389,40 +1389,40 @@ var An = {
1389
1389
  }
1390
1390
  ],
1391
1391
  "model-value": e.block.align,
1392
- "onUpdate:modelValue": n[8] ||= (e) => N("align", e)
1392
+ "onUpdate:modelValue": n[8] ||= (e) => M("align", e)
1393
1393
  }, null, 8, ["options", "model-value"])]),
1394
- x("div", yr, [
1394
+ x("div", Sr, [
1395
1395
  x("label", { class: m(f(U)) }, w(f(c).image.linkUrl), 3),
1396
1396
  p(Y, {
1397
1397
  "model-value": e.block.linkUrl || "",
1398
1398
  type: "url",
1399
1399
  placeholder: f(c).image.imageUrlPlaceholder,
1400
- "onUpdate:modelValue": n[9] ||= (e) => N("linkUrl", e)
1400
+ "onUpdate:modelValue": n[9] ||= (e) => M("linkUrl", e)
1401
1401
  }, null, 8, ["model-value", "placeholder"]),
1402
1402
  e.block.linkUrl ? (o(), y(J, {
1403
1403
  key: 0,
1404
1404
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1405
1405
  "model-value": e.block.linkOpenInNewTab ?? !1,
1406
1406
  label: f(c).image.openInNewTab,
1407
- "onUpdate:modelValue": n[10] ||= (e) => N("linkOpenInNewTab", e)
1407
+ "onUpdate:modelValue": n[10] ||= (e) => M("linkOpenInNewTab", e)
1408
1408
  }, null, 8, ["model-value", "label"])) : _("", !0)
1409
1409
  ])
1410
1410
  ], 64));
1411
1411
  }
1412
- }), Cr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ l({
1412
+ }), Er = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ l({
1413
1413
  __name: "FieldRow",
1414
1414
  props: { label: {} },
1415
1415
  setup(e) {
1416
- return (t, n) => (o(), g("div", Cr, [e.label ? (o(), g("label", {
1416
+ return (t, n) => (o(), g("div", Er, [e.label ? (o(), g("label", {
1417
1417
  key: 0,
1418
1418
  class: m(f(U))
1419
1419
  }, w(e.label), 3)) : _("", !0), a(t.$slots, "default")]));
1420
1420
  }
1421
- }), wr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Tr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Er = [
1421
+ }), Dr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Or = { class: "tpl:flex tpl:items-center tpl:gap-2" }, kr = [
1422
1422
  "value",
1423
1423
  "placeholder",
1424
1424
  "onInput"
1425
- ], Dr = ["title", "onClick"], Or = { 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)]" }, kr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ar = ["value"], jr = { value: "" }, Mr = ["value"], Nr = ["value"], Pr = /* @__PURE__ */ l({
1425
+ ], Ar = ["title", "onClick"], jr = { 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)]" }, Mr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Nr = ["value"], Pr = { value: "" }, Fr = ["value"], Ir = ["value"], Lr = /* @__PURE__ */ l({
1426
1426
  __name: "MenuToolbar",
1427
1427
  props: {
1428
1428
  block: {},
@@ -1465,7 +1465,7 @@ var An = {
1465
1465
  }
1466
1466
  function d() {
1467
1467
  let e = {
1468
- id: D(),
1468
+ id: O(),
1469
1469
  text: "",
1470
1470
  url: "",
1471
1471
  openInNewTab: !1,
@@ -1486,24 +1486,24 @@ var An = {
1486
1486
  }
1487
1487
  return (t, n) => (o(), g(C, null, [
1488
1488
  p($, { label: f(s).menu.items }, {
1489
- default: i(() => [x("div", wr, [(o(!0), g(C, null, r(e.block.items, (t) => (o(), g("div", {
1489
+ default: i(() => [x("div", Dr, [(o(!0), g(C, null, r(e.block.items, (t) => (o(), g("div", {
1490
1490
  key: t.id,
1491
1491
  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"
1492
1492
  }, [
1493
- x("div", Tr, [x("input", {
1493
+ x("div", Or, [x("input", {
1494
1494
  type: "text",
1495
1495
  class: m([f(K), "tpl:flex-1"]),
1496
1496
  value: t.text,
1497
1497
  placeholder: f(s).menu.text,
1498
1498
  onInput: (e) => _(t.id, "text", e.target.value)
1499
- }, null, 42, Er), x("button", {
1500
- class: m(f(ke)),
1499
+ }, null, 42, kr), x("button", {
1500
+ class: m(f(Me)),
1501
1501
  title: f(s).menu.removeItem,
1502
1502
  onClick: (e) => v(t.id)
1503
- }, [p(f(xe), {
1503
+ }, [p(f(we), {
1504
1504
  size: 14,
1505
1505
  "stroke-width": 2
1506
- })], 10, Dr)]),
1506
+ })], 10, Ar)]),
1507
1507
  p(Y, {
1508
1508
  "model-value": t.url,
1509
1509
  type: "url",
@@ -1514,7 +1514,7 @@ var An = {
1514
1514
  "placeholder",
1515
1515
  "onUpdate:modelValue"
1516
1516
  ]),
1517
- x("div", Or, [(o(!0), g(C, null, r(c.value, (e) => (o(), y(J, {
1517
+ x("div", jr, [(o(!0), g(C, null, r(c.value, (e) => (o(), y(J, {
1518
1518
  key: e.key,
1519
1519
  "model-value": t[e.key],
1520
1520
  label: e.label,
@@ -1524,13 +1524,13 @@ var An = {
1524
1524
  "label",
1525
1525
  "onUpdate:modelValue"
1526
1526
  ]))), 128))]),
1527
- x("div", kr, [x("label", { class: m([f(U), "tpl:!mb-0"]) }, w(f(s).menu.color), 3), p(q, {
1527
+ x("div", Mr, [x("label", { class: m([f(U), "tpl:!mb-0"]) }, w(f(s).menu.color), 3), p(q, {
1528
1528
  "swatch-only": "",
1529
1529
  "model-value": t.color || e.block.linkColor || e.block.color || "",
1530
1530
  "onUpdate:modelValue": (e) => _(t.id, "color", e)
1531
1531
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
1532
1532
  ]))), 128)), x("button", {
1533
- class: m(f(Ae)),
1533
+ class: m(f(Ne)),
1534
1534
  onClick: d
1535
1535
  }, [p(f(R), {
1536
1536
  size: 14,
@@ -1543,14 +1543,14 @@ var An = {
1543
1543
  class: m(f(K)),
1544
1544
  value: e.block.fontFamily || "",
1545
1545
  onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
1546
- }, [x("option", jr, w(f(s).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
1546
+ }, [x("option", Pr, w(f(s).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
1547
1547
  key: e.value,
1548
1548
  value: e.value
1549
- }, w(e.label), 9, Mr))), 128))], 42, Ar)]),
1549
+ }, w(e.label), 9, Fr))), 128))], 42, Nr)]),
1550
1550
  _: 1
1551
1551
  }, 8, ["label"]),
1552
1552
  p($, { label: f(s).menu.fontSize }, {
1553
- default: i(() => [p(Zn, {
1553
+ default: i(() => [p(er, {
1554
1554
  "model-value": e.block.fontSize,
1555
1555
  min: 8,
1556
1556
  max: 48,
@@ -1587,7 +1587,7 @@ var An = {
1587
1587
  class: m(f(K)),
1588
1588
  value: e.block.separator,
1589
1589
  onInput: n[5] ||= (e) => u("separator", e.target.value)
1590
- }, null, 42, Nr)]),
1590
+ }, null, 42, Ir)]),
1591
1591
  _: 1
1592
1592
  }, 8, ["label"]),
1593
1593
  p($, { label: f(s).menu.separatorColor }, {
@@ -1598,7 +1598,7 @@ var An = {
1598
1598
  _: 1
1599
1599
  }, 8, ["label"]),
1600
1600
  p($, { label: f(s).menu.spacing }, {
1601
- default: i(() => [p(Zn, {
1601
+ default: i(() => [p(er, {
1602
1602
  "model-value": e.block.spacing,
1603
1603
  min: 0,
1604
1604
  max: 50,
@@ -1609,32 +1609,32 @@ var An = {
1609
1609
  }, 8, ["label"])
1610
1610
  ], 64));
1611
1611
  }
1612
- }), Fr = {
1612
+ }), Rr = {
1613
1613
  class: "tpl:mb-3.5",
1614
1614
  "data-testid": "paragraph-spacing"
1615
- }, Ir = { class: "tpl:flex tpl:items-stretch" }, Lr = ["value"], Rr = /* @__PURE__ */ l({
1615
+ }, zr = { class: "tpl:flex tpl:items-stretch" }, Br = ["value"], Vr = /* @__PURE__ */ l({
1616
1616
  __name: "ParagraphToolbar",
1617
1617
  props: { block: {} },
1618
1618
  emits: ["update"],
1619
1619
  setup(e, { emit: t }) {
1620
1620
  let n = t, { t: r } = L();
1621
- return (t, i) => (o(), g("div", Fr, [x("label", { class: m(f(U)) }, w(f(r).paragraph.paragraphSpacing), 3), x("div", Ir, [x("input", {
1621
+ return (t, i) => (o(), g("div", Rr, [x("label", { class: m(f(U)) }, w(f(r).paragraph.paragraphSpacing), 3), x("div", zr, [x("input", {
1622
1622
  type: "number",
1623
1623
  class: m(f(G)),
1624
- value: e.block.paragraphSpacing ?? f(A).paragraphGap,
1624
+ value: e.block.paragraphSpacing ?? f(j).paragraphGap,
1625
1625
  min: "0",
1626
1626
  max: "64",
1627
1627
  onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
1628
- }, null, 42, Lr), x("span", { class: m(f(W)) }, "px", 2)])]));
1628
+ }, null, 42, Br), x("span", { class: m(f(W)) }, "px", 2)])]));
1629
1629
  }
1630
1630
  });
1631
1631
  //#endregion
1632
1632
  //#region src/utils/rebalanceColumnChildren.ts
1633
- function zr(e) {
1633
+ function Hr(e) {
1634
1634
  return e === "1" ? 1 : e === "3" ? 3 : 2;
1635
1635
  }
1636
- function Br(e, t) {
1637
- let n = zr(t);
1636
+ function Ur(e, t) {
1637
+ let n = Hr(t);
1638
1638
  if (e.length === n) return e;
1639
1639
  if (e.length < n) {
1640
1640
  let t = Array.from({ length: n - e.length }, () => []);
@@ -1645,128 +1645,143 @@ function Br(e, t) {
1645
1645
  }
1646
1646
  //#endregion
1647
1647
  //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
1648
- var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1648
+ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1649
1649
  key: 0,
1650
1650
  class: "tpl:mb-3.5"
1651
- }, Gr = { class: "tpl:mb-3.5" }, Kr = { class: "tpl:flex tpl:items-stretch" }, qr = ["value"], Jr = { class: "tpl:mb-3.5" }, Yr = {
1651
+ }, Jr = { class: "tpl:mb-3.5" }, Yr = { class: "tpl:flex tpl:items-stretch" }, Xr = ["value"], Zr = {
1652
+ key: 1,
1653
+ class: "tpl:mb-3.5"
1654
+ }, Qr = {
1652
1655
  key: 0,
1656
+ class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1657
+ }, $r = {
1658
+ key: 1,
1653
1659
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
1654
- }, Xr = { class: "tpl:flex tpl:items-stretch" }, Zr = ["value"], Qr = /* @__PURE__ */ l({
1660
+ }, ei = { class: "tpl:flex tpl:items-stretch" }, ti = ["value"], ni = /* @__PURE__ */ l({
1655
1661
  __name: "SectionToolbar",
1656
1662
  props: { block: {} },
1657
1663
  emits: ["update"],
1658
1664
  setup(e, { emit: t }) {
1659
- let n = e, i = t, { t: a } = L(), s = h(() => [
1665
+ let i = e, a = t, { t: s } = L(), c = n(P, void 0), l = n(oe, void 0), u = c !== void 0 && D(c), d = h(() => l !== !1 || !!i.block.wrapper), v = h(() => u && !i.block.wrapper), y = h(() => u && d.value), b = h(() => [
1660
1666
  {
1661
1667
  value: "1",
1662
- label: a.section.column1
1668
+ label: s.section.column1
1663
1669
  },
1664
1670
  {
1665
1671
  value: "2",
1666
- label: a.section.column2
1672
+ label: s.section.column2
1667
1673
  },
1668
1674
  {
1669
1675
  value: "3",
1670
- label: a.section.column3
1676
+ label: s.section.column3
1671
1677
  },
1672
1678
  {
1673
1679
  value: "1-2",
1674
- label: a.section.ratio12
1680
+ label: s.section.ratio12
1675
1681
  },
1676
1682
  {
1677
1683
  value: "2-1",
1678
- label: a.section.ratio21
1684
+ label: s.section.ratio21
1679
1685
  }
1680
1686
  ]);
1681
- function c(e) {
1682
- let t = e.target.value, r = Br(n.block.children, t);
1683
- i("update", {
1687
+ function S(e) {
1688
+ let t = e.target.value, n = Ur(i.block.children, t);
1689
+ a("update", {
1684
1690
  columns: t,
1685
- children: r
1691
+ children: n
1686
1692
  });
1687
1693
  }
1688
- function l(e) {
1689
- i("update", { stackOnMobile: e });
1694
+ function T(e) {
1695
+ a("update", { stackOnMobile: e });
1690
1696
  }
1691
- function u(e) {
1697
+ function E(e) {
1692
1698
  let t = Number(e.target.value);
1693
- i("update", { borderRadius: t });
1699
+ a("update", { borderRadius: t });
1694
1700
  }
1695
- function d(e) {
1696
- i("update", { wrapper: e ? { padding: {
1701
+ function O(e) {
1702
+ a("update", { wrapper: e ? { padding: {
1697
1703
  top: 20,
1698
1704
  right: 20,
1699
1705
  bottom: 20,
1700
1706
  left: 20
1701
1707
  } } : void 0 });
1702
1708
  }
1703
- function v(e) {
1704
- i("update", { wrapper: {
1705
- ...n.block.wrapper,
1709
+ function k(e) {
1710
+ a("update", { wrapper: {
1711
+ ...i.block.wrapper,
1706
1712
  ...e
1707
1713
  } });
1708
1714
  }
1709
- function y(e) {
1710
- v({ padding: e });
1715
+ function A(e) {
1716
+ k({ padding: e });
1711
1717
  }
1712
- function b(e) {
1713
- v({ borderRadius: Number(e.target.value) });
1718
+ function j(e) {
1719
+ k({ borderRadius: Number(e.target.value) });
1714
1720
  }
1715
1721
  return (t, n) => (o(), g(C, null, [
1716
- x("div", Vr, [x("label", { class: m(f(U)) }, w(f(a).section.columns), 3), x("select", {
1722
+ x("div", Wr, [x("label", { class: m(f(U)) }, w(f(s).section.columns), 3), x("select", {
1717
1723
  class: m(f(K)),
1718
1724
  value: e.block.columns,
1719
- onChange: c
1720
- }, [(o(!0), g(C, null, r(s.value, (e) => (o(), g("option", {
1725
+ onChange: S
1726
+ }, [(o(!0), g(C, null, r(b.value, (e) => (o(), g("option", {
1721
1727
  key: e.value,
1722
1728
  value: e.value
1723
- }, w(e.label), 9, Ur))), 128))], 42, Hr)]),
1724
- e.block.columns === "1" ? _("", !0) : (o(), g("div", Wr, [p(J, {
1729
+ }, w(e.label), 9, Kr))), 128))], 42, Gr)]),
1730
+ e.block.columns === "1" ? _("", !0) : (o(), g("div", qr, [p(J, {
1725
1731
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1726
1732
  "model-value": e.block.stackOnMobile !== !1,
1727
- label: f(a).section.stackOnMobile,
1728
- "onUpdate:modelValue": n[0] ||= (e) => l(e)
1733
+ label: f(s).section.stackOnMobile,
1734
+ "onUpdate:modelValue": n[0] ||= (e) => T(e)
1729
1735
  }, null, 8, ["model-value", "label"])])),
1730
- x("div", Gr, [x("label", { class: m(f(U)) }, w(f(a).section.borderRadius), 3), x("div", Kr, [x("input", {
1736
+ x("div", Jr, [x("label", { class: m(f(U)) }, w(f(s).section.borderRadius), 3), x("div", Yr, [x("input", {
1731
1737
  type: "number",
1732
1738
  class: m(f(G)),
1733
1739
  value: e.block.borderRadius ?? 0,
1734
1740
  min: "0",
1735
1741
  max: "50",
1736
- onInput: u
1737
- }, null, 42, qr), x("span", { class: m(f(W)) }, "px", 2)])]),
1738
- x("div", Jr, [p(J, {
1739
- class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1740
- "model-value": !!e.block.wrapper,
1741
- label: f(a).section.wrapperEnable,
1742
- "onUpdate:modelValue": n[1] ||= (e) => d(e)
1743
- }, null, 8, ["model-value", "label"]), e.block.wrapper ? (o(), g("div", Yr, [
1744
- x("div", null, [x("label", { class: m(f(U)) }, w(f(a).blockSettings.color), 3), p(q, {
1745
- "model-value": e.block.wrapper.backgroundColor ?? "",
1746
- "onUpdate:modelValue": n[2] ||= (e) => v({ backgroundColor: e })
1747
- }, null, 8, ["model-value"])]),
1748
- p(At, {
1749
- label: f(a).blockSettings.padding,
1750
- "model-value": e.block.wrapper.padding ?? {
1751
- top: 0,
1752
- right: 0,
1753
- bottom: 0,
1754
- left: 0
1755
- },
1756
- "onUpdate:modelValue": y
1757
- }, null, 8, ["label", "model-value"]),
1758
- x("div", null, [x("label", { class: m(f(U)) }, w(f(a).section.borderRadius), 3), x("div", Xr, [x("input", {
1759
- type: "number",
1760
- class: m(f(G)),
1761
- value: e.block.wrapper.borderRadius ?? 0,
1762
- min: "0",
1763
- max: "50",
1764
- onInput: b
1765
- }, null, 42, Zr), x("span", { class: m(f(W)) }, "px", 2)])])
1766
- ])) : _("", !0)])
1742
+ onInput: E
1743
+ }, null, 42, Xr), x("span", { class: m(f(W)) }, "px", 2)])]),
1744
+ d.value ? (o(), g("div", Zr, [
1745
+ p(J, {
1746
+ class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1747
+ "model-value": !!e.block.wrapper,
1748
+ label: f(s).section.wrapperEnable,
1749
+ disabled: v.value,
1750
+ "onUpdate:modelValue": n[1] ||= (e) => O(e)
1751
+ }, null, 8, [
1752
+ "model-value",
1753
+ "label",
1754
+ "disabled"
1755
+ ]),
1756
+ y.value ? (o(), g("p", Qr, w(f(s).section.wrapperLayoutConflict), 1)) : _("", !0),
1757
+ e.block.wrapper ? (o(), g("div", $r, [
1758
+ x("div", null, [x("label", { class: m(f(U)) }, w(f(s).blockSettings.color), 3), p(q, {
1759
+ "model-value": e.block.wrapper.backgroundColor ?? "",
1760
+ "onUpdate:modelValue": n[2] ||= (e) => k({ backgroundColor: e })
1761
+ }, null, 8, ["model-value"])]),
1762
+ p(Nt, {
1763
+ label: f(s).blockSettings.padding,
1764
+ "model-value": e.block.wrapper.padding ?? {
1765
+ top: 0,
1766
+ right: 0,
1767
+ bottom: 0,
1768
+ left: 0
1769
+ },
1770
+ "onUpdate:modelValue": A
1771
+ }, null, 8, ["label", "model-value"]),
1772
+ x("div", null, [x("label", { class: m(f(U)) }, w(f(s).section.borderRadius), 3), x("div", ei, [x("input", {
1773
+ type: "number",
1774
+ class: m(f(G)),
1775
+ value: e.block.wrapper.borderRadius ?? 0,
1776
+ min: "0",
1777
+ max: "50",
1778
+ onInput: j
1779
+ }, null, 42, ti), x("span", { class: m(f(W)) }, "px", 2)])])
1780
+ ])) : _("", !0)
1781
+ ])) : _("", !0)
1767
1782
  ], 64));
1768
1783
  }
1769
- }), $r = { class: "tpl:mb-3.5" }, ei = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ti = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ni = ["value", "onChange"], ri = ["value"], ii = ["title", "onClick"], ai = { class: "tpl:mb-3.5" }, oi = ["value"], si = { value: "solid" }, ci = { value: "outlined" }, li = { value: "rounded" }, ui = { value: "square" }, di = { value: "circle" }, fi = { class: "tpl:mb-3.5" }, pi = { class: "tpl:mb-3.5" }, mi = { class: "tpl:flex tpl:items-stretch" }, hi = ["value"], gi = { class: "tpl:mb-3.5" }, _i = /* @__PURE__ */ l({
1784
+ }), ri = { class: "tpl:mb-3.5" }, ii = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ai = { class: "tpl:flex tpl:items-center tpl:gap-2" }, oi = ["value", "onChange"], si = ["value"], ci = ["title", "onClick"], li = { class: "tpl:mb-3.5" }, ui = ["value"], di = { value: "solid" }, fi = { value: "outlined" }, pi = { value: "rounded" }, mi = { value: "square" }, hi = { value: "circle" }, gi = { class: "tpl:mb-3.5" }, _i = { class: "tpl:mb-3.5" }, vi = { class: "tpl:flex tpl:items-stretch" }, yi = ["value"], bi = { class: "tpl:mb-3.5" }, xi = /* @__PURE__ */ l({
1770
1785
  __name: "SocialToolbar",
1771
1786
  props: { block: {} },
1772
1787
  emits: ["update"],
@@ -1777,7 +1792,7 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1777
1792
  }
1778
1793
  function c() {
1779
1794
  let e = {
1780
- id: D(),
1795
+ id: O(),
1781
1796
  platform: "facebook",
1782
1797
  url: ""
1783
1798
  };
@@ -1794,25 +1809,25 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1794
1809
  i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
1795
1810
  }
1796
1811
  return (t, n) => (o(), g(C, null, [
1797
- x("div", $r, [x("label", { class: m(f(U)) }, w(f(a).social.icons), 3), x("div", ei, [(o(!0), g(C, null, r(e.block.icons, (e) => (o(), g("div", {
1812
+ x("div", ri, [x("label", { class: m(f(U)) }, w(f(a).social.icons), 3), x("div", ii, [(o(!0), g(C, null, r(e.block.icons, (e) => (o(), g("div", {
1798
1813
  key: e.id,
1799
1814
  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"
1800
- }, [x("div", ti, [x("select", {
1815
+ }, [x("div", ai, [x("select", {
1801
1816
  "data-testid": "social-platform-select",
1802
1817
  class: m([f(K), "tpl:flex-1"]),
1803
1818
  value: e.platform,
1804
1819
  onChange: (t) => l(e.id, "platform", t.target.value)
1805
- }, [(o(!0), g(C, null, r(f(P), (e) => (o(), g("option", {
1820
+ }, [(o(!0), g(C, null, r(f(ne), (e) => (o(), g("option", {
1806
1821
  key: e,
1807
1822
  value: e
1808
- }, w(f(a).social.platforms[e]), 9, ri))), 128))], 42, ni), x("button", {
1809
- class: m(f(ke)),
1823
+ }, w(f(a).social.platforms[e]), 9, si))), 128))], 42, oi), x("button", {
1824
+ class: m(f(Me)),
1810
1825
  title: f(a).social.removeIcon,
1811
1826
  onClick: (t) => u(e.id)
1812
- }, [p(f(xe), {
1827
+ }, [p(f(we), {
1813
1828
  size: 14,
1814
1829
  "stroke-width": 2
1815
- })], 10, ii)]), p(Y, {
1830
+ })], 10, ci)]), p(Y, {
1816
1831
  "model-value": e.url,
1817
1832
  type: "url",
1818
1833
  placeholder: f(a).social.urlPlaceholder,
@@ -1822,24 +1837,24 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1822
1837
  "placeholder",
1823
1838
  "onUpdate:modelValue"
1824
1839
  ])]))), 128)), x("button", {
1825
- class: m(f(Ae)),
1840
+ class: m(f(Ne)),
1826
1841
  onClick: c
1827
1842
  }, [p(f(R), {
1828
1843
  size: 14,
1829
1844
  "stroke-width": 2
1830
1845
  }), E(" " + w(f(a).social.addIcon), 1)], 2)])]),
1831
- x("div", ai, [x("label", { class: m(f(U)) }, w(f(a).social.style), 3), x("select", {
1846
+ x("div", li, [x("label", { class: m(f(U)) }, w(f(a).social.style), 3), x("select", {
1832
1847
  class: m(f(K)),
1833
1848
  value: e.block.iconStyle,
1834
1849
  onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
1835
1850
  }, [
1836
- x("option", si, w(f(a).social.styleSolid), 1),
1837
- x("option", ci, w(f(a).social.styleOutlined), 1),
1838
- x("option", li, w(f(a).social.styleRounded), 1),
1839
- x("option", ui, w(f(a).social.styleSquare), 1),
1840
- x("option", di, w(f(a).social.styleCircle), 1)
1841
- ], 42, oi)]),
1842
- x("div", fi, [x("label", { class: m(f(U)) }, w(f(a).social.size), 3), p(X, {
1851
+ x("option", di, w(f(a).social.styleSolid), 1),
1852
+ x("option", fi, w(f(a).social.styleOutlined), 1),
1853
+ x("option", pi, w(f(a).social.styleRounded), 1),
1854
+ x("option", mi, w(f(a).social.styleSquare), 1),
1855
+ x("option", hi, w(f(a).social.styleCircle), 1)
1856
+ ], 42, ui)]),
1857
+ x("div", gi, [x("label", { class: m(f(U)) }, w(f(a).social.size), 3), p(X, {
1843
1858
  options: [
1844
1859
  {
1845
1860
  value: "small",
@@ -1857,15 +1872,15 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1857
1872
  "model-value": e.block.iconSize,
1858
1873
  "onUpdate:modelValue": n[1] ||= (e) => s("iconSize", e)
1859
1874
  }, null, 8, ["options", "model-value"])]),
1860
- x("div", pi, [x("label", { class: m(f(U)) }, w(f(a).social.spacing), 3), x("div", mi, [x("input", {
1875
+ x("div", _i, [x("label", { class: m(f(U)) }, w(f(a).social.spacing), 3), x("div", vi, [x("input", {
1861
1876
  type: "number",
1862
1877
  class: m(f(G)),
1863
1878
  value: e.block.spacing,
1864
1879
  min: "0",
1865
1880
  max: "50",
1866
1881
  onInput: n[2] ||= (e) => s("spacing", Number(e.target.value))
1867
- }, null, 42, hi), x("span", { class: m(f(W)) }, "px", 2)])]),
1868
- x("div", gi, [x("label", { class: m(f(U)) }, w(f(a).social.align), 3), p(X, {
1882
+ }, null, 42, yi), x("span", { class: m(f(W)) }, "px", 2)])]),
1883
+ x("div", bi, [x("label", { class: m(f(U)) }, w(f(a).social.align), 3), p(X, {
1869
1884
  options: [
1870
1885
  {
1871
1886
  value: "left",
@@ -1888,22 +1903,22 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1888
1903
  }, null, 8, ["options", "model-value"])])
1889
1904
  ], 64));
1890
1905
  }
1891
- }), vi = { class: "tpl:mb-3.5" }, yi = { class: "tpl:flex tpl:items-stretch" }, bi = ["value"], xi = ["value"], Si = /* @__PURE__ */ l({
1906
+ }), Si = { class: "tpl:mb-3.5" }, Ci = { class: "tpl:flex tpl:items-stretch" }, wi = ["value"], Ti = ["value"], Ei = /* @__PURE__ */ l({
1892
1907
  __name: "SpacerToolbar",
1893
1908
  props: { block: {} },
1894
1909
  emits: ["update"],
1895
1910
  setup(e, { emit: t }) {
1896
1911
  let n = t, { t: r } = L();
1897
- return (t, i) => (o(), g("div", vi, [
1912
+ return (t, i) => (o(), g("div", Si, [
1898
1913
  x("label", { class: m(f(U)) }, w(f(r).spacer.height), 3),
1899
- x("div", yi, [x("input", {
1914
+ x("div", Ci, [x("input", {
1900
1915
  type: "number",
1901
1916
  class: m(f(G)),
1902
1917
  value: e.block.height,
1903
1918
  min: "10",
1904
1919
  max: "100",
1905
1920
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
1906
- }, null, 42, bi), x("span", { class: m(f(W)) }, "px", 2)]),
1921
+ }, null, 42, wi), x("span", { class: m(f(W)) }, "px", 2)]),
1907
1922
  x("input", {
1908
1923
  type: "range",
1909
1924
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -1911,13 +1926,13 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1911
1926
  min: "10",
1912
1927
  max: "100",
1913
1928
  onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
1914
- }, null, 40, xi)
1929
+ }, null, 40, Ti)
1915
1930
  ]));
1916
1931
  }
1917
- }), Ci = { class: "tpl:mb-3.5" }, wi = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ti = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ei = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Di = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Oi = ["disabled"], ki = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ai = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, ji = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Mi = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ni = ["disabled"], Pi = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Fi = { class: "tpl:mb-3.5" }, Ii = {
1932
+ }), Di = { class: "tpl:mb-3.5" }, Oi = { class: "tpl:flex tpl:items-center tpl:gap-3" }, ki = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ai = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, ji = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Mi = ["disabled"], Ni = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Pi = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Fi = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ii = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Li = ["disabled"], Ri = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, zi = { class: "tpl:mb-3.5" }, Bi = {
1918
1933
  key: 0,
1919
1934
  class: "tpl:mb-3.5"
1920
- }, Li = { class: "tpl:mb-3.5" }, Ri = { class: "tpl:mb-3.5" }, zi = { class: "tpl:flex tpl:items-stretch" }, Bi = ["value"], Vi = { class: "tpl:mb-3.5" }, Hi = { class: "tpl:flex tpl:items-stretch" }, Ui = ["value"], Wi = { class: "tpl:mb-3.5" }, Gi = ["value"], Ki = { value: "" }, qi = ["value"], Ji = { class: "tpl:mb-3.5" }, Yi = { class: "tpl:flex tpl:items-stretch" }, Xi = ["value"], Zi = { class: "tpl:mb-3.5" }, Qi = { class: "tpl:mb-3.5" }, $i = /* @__PURE__ */ l({
1935
+ }, Vi = { class: "tpl:mb-3.5" }, Hi = { class: "tpl:mb-3.5" }, Ui = { class: "tpl:flex tpl:items-stretch" }, Wi = ["value"], Gi = { class: "tpl:mb-3.5" }, Ki = { class: "tpl:flex tpl:items-stretch" }, qi = ["value"], Ji = { class: "tpl:mb-3.5" }, Yi = ["value"], Xi = { value: "" }, Zi = ["value"], Qi = { class: "tpl:mb-3.5" }, $i = { class: "tpl:flex tpl:items-stretch" }, ea = ["value"], ta = { class: "tpl:mb-3.5" }, na = { class: "tpl:mb-3.5" }, ra = /* @__PURE__ */ l({
1921
1936
  __name: "TableToolbar",
1922
1937
  props: {
1923
1938
  block: {},
@@ -1931,9 +1946,9 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1931
1946
  }
1932
1947
  function l() {
1933
1948
  let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
1934
- id: D(),
1949
+ id: O(),
1935
1950
  cells: Array.from({ length: e }, () => ({
1936
- id: D(),
1951
+ id: O(),
1937
1952
  content: ""
1938
1953
  }))
1939
1954
  };
@@ -1946,7 +1961,7 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1946
1961
  let e = n.block.rows.map((e) => ({
1947
1962
  ...e,
1948
1963
  cells: [...e.cells, {
1949
- id: D(),
1964
+ id: O(),
1950
1965
  content: ""
1951
1966
  }]
1952
1967
  }));
@@ -1960,7 +1975,7 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1960
1975
  i("update", { rows: t });
1961
1976
  }
1962
1977
  return (t, n) => (o(), g(C, null, [
1963
- x("div", Ci, [x("label", { class: m(f(U)) }, w(f(a).table.dimensions), 3), x("div", wi, [x("div", Ti, [x("span", Ei, w(f(a).table.rows), 1), x("div", Di, [
1978
+ x("div", Di, [x("label", { class: m(f(U)) }, w(f(a).table.dimensions), 3), x("div", Oi, [x("div", ki, [x("span", Ai, w(f(a).table.rows), 1), x("div", ji, [
1964
1979
  x("button", {
1965
1980
  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:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
1966
1981
  disabled: e.block.rows.length <= 1,
@@ -1968,8 +1983,8 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1968
1983
  }, [p(f(z), {
1969
1984
  size: 12,
1970
1985
  "stroke-width": 2
1971
- })], 8, Oi),
1972
- x("span", ki, w(e.block.rows.length), 1),
1986
+ })], 8, Mi),
1987
+ x("span", Ni, w(e.block.rows.length), 1),
1973
1988
  x("button", {
1974
1989
  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:hover:text-[var(--tpl-primary)]",
1975
1990
  onClick: l
@@ -1977,7 +1992,7 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1977
1992
  size: 12,
1978
1993
  "stroke-width": 2
1979
1994
  })])
1980
- ])]), x("div", Ai, [x("span", ji, w(f(a).table.columns), 1), x("div", Mi, [
1995
+ ])]), x("div", Pi, [x("span", Fi, w(f(a).table.columns), 1), x("div", Ii, [
1981
1996
  x("button", {
1982
1997
  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:hover:text-[var(--tpl-primary)] tpl:disabled:opacity-30",
1983
1998
  disabled: s.value <= 1,
@@ -1985,8 +2000,8 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1985
2000
  }, [p(f(z), {
1986
2001
  size: 12,
1987
2002
  "stroke-width": 2
1988
- })], 8, Ni),
1989
- x("span", Pi, w(s.value), 1),
2003
+ })], 8, Li),
2004
+ x("span", Ri, w(s.value), 1),
1990
2005
  x("button", {
1991
2006
  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:hover:text-[var(--tpl-primary)]",
1992
2007
  onClick: d
@@ -1995,15 +2010,15 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
1995
2010
  "stroke-width": 2
1996
2011
  })])
1997
2012
  ])])])]),
1998
- x("div", Fi, [p(J, {
2013
+ x("div", zi, [p(J, {
1999
2014
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
2000
2015
  "model-value": e.block.hasHeaderRow,
2001
2016
  label: f(a).table.hasHeaderRow,
2002
2017
  "onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
2003
2018
  }, null, 8, ["model-value", "label"])]),
2004
- e.block.hasHeaderRow ? (o(), g("div", Ii, [x("label", { class: m(f(U)) }, w(f(a).table.headerBackgroundColor), 3), p(q, {
2019
+ e.block.hasHeaderRow ? (o(), g("div", Bi, [x("label", { class: m(f(U)) }, w(f(a).table.headerBackgroundColor), 3), p(q, {
2005
2020
  "model-value": e.block.headerBackgroundColor ?? "",
2006
- "seed-color": f(je),
2021
+ "seed-color": f(Pe),
2007
2022
  placeholder: f(a).table.noHeaderBg,
2008
2023
  "onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
2009
2024
  }, null, 8, [
@@ -2011,47 +2026,47 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2011
2026
  "seed-color",
2012
2027
  "placeholder"
2013
2028
  ])])) : _("", !0),
2014
- x("div", Li, [x("label", { class: m(f(U)) }, w(f(a).table.borderColor), 3), p(q, {
2029
+ x("div", Vi, [x("label", { class: m(f(U)) }, w(f(a).table.borderColor), 3), p(q, {
2015
2030
  "model-value": e.block.borderColor,
2016
2031
  "onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
2017
2032
  }, null, 8, ["model-value"])]),
2018
- x("div", Ri, [x("label", { class: m(f(U)) }, w(f(a).table.borderWidth), 3), x("div", zi, [x("input", {
2033
+ x("div", Hi, [x("label", { class: m(f(U)) }, w(f(a).table.borderWidth), 3), x("div", Ui, [x("input", {
2019
2034
  type: "number",
2020
2035
  class: m(f(G)),
2021
2036
  value: e.block.borderWidth,
2022
2037
  min: "0",
2023
2038
  max: "10",
2024
2039
  onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
2025
- }, null, 42, Bi), x("span", { class: m(f(W)) }, "px", 2)])]),
2026
- x("div", Vi, [x("label", { class: m(f(U)) }, w(f(a).table.cellPadding), 3), x("div", Hi, [x("input", {
2040
+ }, null, 42, Wi), x("span", { class: m(f(W)) }, "px", 2)])]),
2041
+ x("div", Gi, [x("label", { class: m(f(U)) }, w(f(a).table.cellPadding), 3), x("div", Ki, [x("input", {
2027
2042
  type: "number",
2028
2043
  class: m(f(G)),
2029
2044
  value: e.block.cellPadding,
2030
2045
  min: "0",
2031
2046
  max: "30",
2032
2047
  onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
2033
- }, null, 42, Ui), x("span", { class: m(f(W)) }, "px", 2)])]),
2034
- x("div", Wi, [x("label", { class: m(f(U)) }, w(f(a).table.fontFamily), 3), x("select", {
2048
+ }, null, 42, qi), x("span", { class: m(f(W)) }, "px", 2)])]),
2049
+ x("div", Ji, [x("label", { class: m(f(U)) }, w(f(a).table.fontFamily), 3), x("select", {
2035
2050
  class: m(f(K)),
2036
2051
  value: e.block.fontFamily || "",
2037
2052
  onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
2038
- }, [x("option", Ki, w(f(a).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2053
+ }, [x("option", Xi, w(f(a).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2039
2054
  key: e.value,
2040
2055
  value: e.value
2041
- }, w(e.label), 9, qi))), 128))], 42, Gi)]),
2042
- x("div", Ji, [x("label", { class: m(f(U)) }, w(f(a).table.fontSize), 3), x("div", Yi, [x("input", {
2056
+ }, w(e.label), 9, Zi))), 128))], 42, Yi)]),
2057
+ x("div", Qi, [x("label", { class: m(f(U)) }, w(f(a).table.fontSize), 3), x("div", $i, [x("input", {
2043
2058
  type: "number",
2044
2059
  class: m(f(G)),
2045
2060
  value: e.block.fontSize,
2046
2061
  min: "10",
2047
2062
  max: "32",
2048
2063
  onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
2049
- }, null, 42, Xi), x("span", { class: m(f(W)) }, "px", 2)])]),
2050
- x("div", Zi, [x("label", { class: m(f(U)) }, w(f(a).table.color), 3), p(q, {
2064
+ }, null, 42, ea), x("span", { class: m(f(W)) }, "px", 2)])]),
2065
+ x("div", ta, [x("label", { class: m(f(U)) }, w(f(a).table.color), 3), p(q, {
2051
2066
  "model-value": e.block.color ?? "",
2052
2067
  "onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
2053
2068
  }, null, 8, ["model-value"])]),
2054
- x("div", Qi, [x("label", { class: m(f(U)) }, w(f(a).table.textAlign), 3), p(X, {
2069
+ x("div", na, [x("label", { class: m(f(U)) }, w(f(a).table.textAlign), 3), p(X, {
2055
2070
  options: [
2056
2071
  {
2057
2072
  value: "left",
@@ -2074,7 +2089,7 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2074
2089
  }, null, 8, ["options", "model-value"])])
2075
2090
  ], 64));
2076
2091
  }
2077
- }), ea = { class: "tpl:mb-3.5" }, ta = ["value"], na = { value: 1 }, ra = { value: 2 }, ia = { value: 3 }, aa = { value: 4 }, oa = { class: "tpl:mb-3.5" }, sa = ["value"], ca = { value: "" }, la = ["value"], ua = { class: "tpl:mb-3.5" }, da = { class: "tpl:mb-3.5" }, fa = /* @__PURE__ */ l({
2092
+ }), ia = { class: "tpl:mb-3.5" }, aa = ["value"], oa = { value: 1 }, sa = { value: 2 }, ca = { value: 3 }, la = { value: 4 }, ua = { class: "tpl:mb-3.5" }, da = ["value"], fa = { value: "" }, pa = ["value"], ma = { class: "tpl:mb-3.5" }, ha = { class: "tpl:mb-3.5" }, ga = /* @__PURE__ */ l({
2078
2093
  __name: "TitleToolbar",
2079
2094
  props: {
2080
2095
  block: {},
@@ -2087,29 +2102,29 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2087
2102
  n("update", { [e]: t });
2088
2103
  }
2089
2104
  return (t, n) => (o(), g(C, null, [
2090
- x("div", ea, [x("label", { class: m(f(U)) }, w(f(i).title.level), 3), x("select", {
2105
+ x("div", ia, [x("label", { class: m(f(U)) }, w(f(i).title.level), 3), x("select", {
2091
2106
  class: m(f(K)),
2092
2107
  value: e.block.level,
2093
2108
  onChange: n[0] ||= (e) => a("level", Number(e.target.value))
2094
2109
  }, [
2095
- x("option", na, w(f(i).title.heading1), 1),
2096
- x("option", ra, w(f(i).title.heading2), 1),
2097
- x("option", ia, w(f(i).title.heading3), 1),
2098
- x("option", aa, w(f(i).title.heading4), 1)
2099
- ], 42, ta)]),
2100
- x("div", oa, [x("label", { class: m(f(U)) }, w(f(i).title.fontFamily), 3), x("select", {
2110
+ x("option", oa, w(f(i).title.heading1), 1),
2111
+ x("option", sa, w(f(i).title.heading2), 1),
2112
+ x("option", ca, w(f(i).title.heading3), 1),
2113
+ x("option", la, w(f(i).title.heading4), 1)
2114
+ ], 42, aa)]),
2115
+ x("div", ua, [x("label", { class: m(f(U)) }, w(f(i).title.fontFamily), 3), x("select", {
2101
2116
  class: m(f(K)),
2102
2117
  value: e.block.fontFamily || "",
2103
2118
  onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
2104
- }, [x("option", ca, w(f(i).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2119
+ }, [x("option", fa, w(f(i).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2105
2120
  key: e.value,
2106
2121
  value: e.value
2107
- }, w(e.label), 9, la))), 128))], 42, sa)]),
2108
- x("div", ua, [x("label", { class: m(f(U)) }, w(f(i).title.color), 3), p(q, {
2122
+ }, w(e.label), 9, pa))), 128))], 42, da)]),
2123
+ x("div", ma, [x("label", { class: m(f(U)) }, w(f(i).title.color), 3), p(q, {
2109
2124
  "model-value": e.block.color ?? "",
2110
2125
  "onUpdate:modelValue": n[2] ||= (e) => a("color", e || void 0)
2111
2126
  }, null, 8, ["model-value"])]),
2112
- x("div", da, [x("label", { class: m(f(U)) }, w(f(i).title.align), 3), p(X, {
2127
+ x("div", ha, [x("label", { class: m(f(U)) }, w(f(i).title.align), 3), p(X, {
2113
2128
  options: [
2114
2129
  {
2115
2130
  value: "left",
@@ -2132,40 +2147,40 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2132
2147
  }, null, 8, ["options", "model-value"])])
2133
2148
  ], 64));
2134
2149
  }
2135
- }), pa = { class: "tpl:mb-3.5" }, ma = {
2150
+ }), _a = { class: "tpl:mb-3.5" }, va = {
2136
2151
  key: 0,
2137
2152
  class: "tpl:mb-3.5"
2138
- }, ha = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ga = [
2153
+ }, ya = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ba = [
2139
2154
  "value",
2140
2155
  "placeholder",
2141
2156
  "title"
2142
- ], _a = { class: "tpl:mb-3.5" }, va = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ya = { class: "tpl:mb-3.5" }, ba = { class: "tpl:mb-3.5" }, xa = ["value"], Sa = { value: "full" }, Ca = { class: "tpl:mb-3.5" }, wa = ["value"], Ta = { value: "auto" }, Ea = { value: "custom" }, Da = {
2157
+ ], xa = { class: "tpl:mb-3.5" }, Sa = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Ca = { class: "tpl:mb-3.5" }, wa = { class: "tpl:mb-3.5" }, Ta = ["value"], Ea = { value: "full" }, Da = { class: "tpl:mb-3.5" }, Oa = ["value"], ka = { value: "auto" }, Aa = { value: "custom" }, ja = {
2143
2158
  key: 0,
2144
2159
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2145
- }, Oa = ["value"], ka = { class: "tpl:mb-3.5" }, Aa = 200, ja = /* @__PURE__ */ l({
2160
+ }, Ma = ["value"], Na = { class: "tpl:mb-3.5" }, Pa = 200, Fa = /* @__PURE__ */ l({
2146
2161
  __name: "VideoToolbar",
2147
2162
  props: { block: {} },
2148
2163
  emits: ["update"],
2149
2164
  setup(e, { emit: t }) {
2150
- let r = e, i = t, { t: a } = L(), c = n(re, null), l = n(ie, j.liquid), u = De(), d = h(() => !!c), v = h(() => k(r.block.url, l)), b = h(() => typeof r.block.height == "number" ? "custom" : "auto"), S = s(!1), { start: T } = ne(() => {
2165
+ let r = e, i = t, { t: a } = L(), c = n(se, null), l = n(ce, ee.liquid), u = Ae(), d = h(() => !!c), v = h(() => A(r.block.url, l)), b = h(() => typeof r.block.height == "number" ? "custom" : "auto"), S = s(!1), { start: T } = ie(() => {
2151
2166
  S.value = !1;
2152
2167
  }, 1e3, { immediate: !1 });
2153
2168
  function D(e, t) {
2154
2169
  i("update", { [e]: t });
2155
2170
  }
2156
2171
  function O(e) {
2157
- D("height", e === "custom" ? Aa : void 0);
2172
+ D("height", e === "custom" ? Pa : void 0);
2158
2173
  }
2159
- function A(e) {
2174
+ function k(e) {
2160
2175
  let t = Number(e);
2161
2176
  !Number.isFinite(t) || t <= 0 || D("height", t);
2162
2177
  }
2163
- async function M() {
2178
+ async function j() {
2164
2179
  let e = await c?.({ accept: ["images"] });
2165
2180
  u.alive && e && (D("thumbnailUrl", e.url), S.value = !0, T());
2166
2181
  }
2167
2182
  return (t, n) => (o(), g(C, null, [
2168
- x("div", pa, [
2183
+ x("div", _a, [
2169
2184
  x("label", { class: m(f(U)) }, w(f(a).video.videoUrl), 3),
2170
2185
  p(Y, {
2171
2186
  "model-value": e.block.url,
@@ -2181,16 +2196,16 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2181
2196
  "onUpdate:modelValue": n[1] ||= (e) => D("openInNewTab", e)
2182
2197
  }, null, 8, ["model-value", "label"])) : _("", !0)
2183
2198
  ]),
2184
- v.value ? (o(), g("div", ma, [x("label", { class: m(f(U)) }, [E(w(f(a).video.placeholderUrl) + " ", 1), x("span", ha, w(f(a).video.optional), 1)], 2), x("input", {
2199
+ v.value ? (o(), g("div", va, [x("label", { class: m(f(U)) }, [E(w(f(a).video.placeholderUrl) + " ", 1), x("span", ya, w(f(a).video.optional), 1)], 2), x("input", {
2185
2200
  type: "url",
2186
2201
  class: m(f(K)),
2187
2202
  value: e.block.placeholderUrl || "",
2188
2203
  placeholder: f(a).video.placeholderUrlPlaceholder,
2189
2204
  title: f(a).video.placeholderUrlTooltip,
2190
2205
  onInput: n[2] ||= (e) => D("placeholderUrl", e.target.value)
2191
- }, null, 42, ga)])) : _("", !0),
2192
- x("div", _a, [
2193
- x("label", { class: m(f(U)) }, [E(w(f(a).video.customThumbnail) + " ", 1), x("span", va, w(f(a).video.optional), 1)], 2),
2206
+ }, null, 42, ba)])) : _("", !0),
2207
+ x("div", xa, [
2208
+ x("label", { class: m(f(U)) }, [E(w(f(a).video.customThumbnail) + " ", 1), x("span", Sa, w(f(a).video.optional), 1)], 2),
2194
2209
  p(Y, {
2195
2210
  "model-value": e.block.thumbnailUrl,
2196
2211
  type: "url",
@@ -2210,46 +2225,46 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2210
2225
  color: "var(--tpl-primary)",
2211
2226
  "background-color": "var(--tpl-bg)"
2212
2227
  },
2213
- onClick: M
2214
- }, [p(f(ye), {
2228
+ onClick: j
2229
+ }, [p(f(Se), {
2215
2230
  size: 14,
2216
2231
  "stroke-width": 1.5
2217
2232
  }), E(" " + w(f(a).image.browseMedia), 1)])) : _("", !0)
2218
2233
  ]),
2219
- x("div", ya, [x("label", { class: m(f(U)) }, w(f(a).video.altText), 3), p(Y, {
2234
+ x("div", Ca, [x("label", { class: m(f(U)) }, w(f(a).video.altText), 3), p(Y, {
2220
2235
  "model-value": e.block.alt,
2221
2236
  type: "text",
2222
2237
  placeholder: f(a).video.altTextPlaceholder,
2223
2238
  "onUpdate:modelValue": n[4] ||= (e) => D("alt", e)
2224
2239
  }, null, 8, ["model-value", "placeholder"])]),
2225
- x("div", ba, [x("label", { class: m(f(U)) }, w(f(a).video.width), 3), x("select", {
2240
+ x("div", wa, [x("label", { class: m(f(U)) }, w(f(a).video.width), 3), x("select", {
2226
2241
  class: m(f(K)),
2227
2242
  value: e.block.width,
2228
2243
  onChange: n[5] ||= (e) => D("width", e.target.value === "full" ? "full" : Number(e.target.value))
2229
2244
  }, [
2230
- x("option", Sa, w(f(a).video.fullWidth), 1),
2245
+ x("option", Ea, w(f(a).video.fullWidth), 1),
2231
2246
  n[9] ||= x("option", { value: "300" }, "300px", -1),
2232
2247
  n[10] ||= x("option", { value: "400" }, "400px", -1),
2233
2248
  n[11] ||= x("option", { value: "500" }, "500px", -1)
2234
- ], 42, xa)]),
2235
- x("div", Ca, [
2249
+ ], 42, Ta)]),
2250
+ x("div", Da, [
2236
2251
  x("label", { class: m(f(U)) }, w(f(a).video.height), 3),
2237
2252
  x("select", {
2238
2253
  class: m(f(K)),
2239
2254
  "data-testid": "video-height-mode",
2240
2255
  value: b.value,
2241
2256
  onChange: n[6] ||= (e) => O(e.target.value)
2242
- }, [x("option", Ta, w(f(a).video.heightAuto), 1), x("option", Ea, w(f(a).video.heightCustom), 1)], 42, wa),
2243
- b.value === "custom" ? (o(), g("div", Da, [x("input", {
2257
+ }, [x("option", ka, w(f(a).video.heightAuto), 1), x("option", Aa, w(f(a).video.heightCustom), 1)], 42, Oa),
2258
+ b.value === "custom" ? (o(), g("div", ja, [x("input", {
2244
2259
  type: "number",
2245
2260
  "data-testid": "video-height-input",
2246
2261
  class: m(f(G)),
2247
2262
  value: e.block.height,
2248
2263
  min: "20",
2249
- onInput: n[7] ||= (e) => A(e.target.value)
2250
- }, null, 42, Oa), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
2264
+ onInput: n[7] ||= (e) => k(e.target.value)
2265
+ }, null, 42, Ma), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
2251
2266
  ]),
2252
- x("div", ka, [x("label", { class: m(f(U)) }, w(f(a).title.align), 3), p(X, {
2267
+ x("div", Na, [x("label", { class: m(f(U)) }, w(f(a).title.align), 3), p(X, {
2253
2268
  options: [
2254
2269
  {
2255
2270
  value: "left",
@@ -2269,7 +2284,7 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2269
2284
  }, null, 8, ["options", "model-value"])])
2270
2285
  ], 64));
2271
2286
  }
2272
- }), Ma = ["aria-label"], Na = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Pa = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Fa = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ia = { class: "tpl:flex tpl:gap-1" }, La = ["title"], Ra = ["title"], za = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Ba = /*@__PURE__*/ l({
2287
+ }), Ia = ["aria-label"], La = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ra = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, za = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ba = { class: "tpl:flex tpl:gap-1" }, Va = ["title"], Ha = ["title"], Ua = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Wa = /*@__PURE__*/ l({
2273
2288
  __name: "Toolbar",
2274
2289
  props: { block: {} },
2275
2290
  emits: [
@@ -2278,9 +2293,9 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2278
2293
  "duplicate"
2279
2294
  ],
2280
2295
  setup(e, { emit: t }) {
2281
- let r = T(() => import("./CountdownToolbar-DRESXiVD.js")), i = e, a = t, { t: s } = L(), l = F(I, "Toolbar"), u = n(le, []), d = h(() => i.block.type), m = h(() => O(i.block)), v = h(() => {
2296
+ let r = T(() => import("./CountdownToolbar-Bu93WiS8.js")), i = e, a = t, { t: s } = L(), l = ae(fe, "Toolbar"), u = n(I, []), d = h(() => i.block.type), m = h(() => k(i.block)), v = h(() => {
2282
2297
  if (m.value) return u.find((e) => e.type === i.block.customType);
2283
- }), b = h(() => m.value ? v.value?.name ?? i.block.customType : te(d.value, s)), S = l.fonts;
2298
+ }), b = h(() => m.value ? v.value?.name ?? i.block.customType : re(d.value, s)), S = l.fonts;
2284
2299
  function C(e) {
2285
2300
  a("update", e);
2286
2301
  }
@@ -2288,82 +2303,82 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2288
2303
  "data-testid": "block-toolbar",
2289
2304
  "aria-label": f(s).landmarks.blockToolbar,
2290
2305
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
2291
- }, [x("div", Na, [x("div", Pa, [f(Ne)[d.value] ? (o(), y(c(f(Ne)[d.value]), {
2306
+ }, [x("div", La, [x("div", Ra, [f(Ie)[d.value] ? (o(), y(c(f(Ie)[d.value]), {
2292
2307
  key: 0,
2293
2308
  size: 16,
2294
2309
  "stroke-width": 1.5
2295
- })) : m.value ? (o(), y(f(ge), {
2310
+ })) : m.value ? (o(), y(f(ye), {
2296
2311
  key: 1,
2297
2312
  size: 16,
2298
2313
  "stroke-width": 1.5
2299
- })) : _("", !0), x("h3", Fa, w(b.value), 1)]), x("div", Ia, [x("button", {
2314
+ })) : _("", !0), x("h3", za, w(b.value), 1)]), x("div", Ba, [x("button", {
2300
2315
  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:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
2301
2316
  title: f(s).toolbar.duplicate,
2302
2317
  onClick: n[0] ||= (e) => a("duplicate")
2303
- }, [p(f(pe), {
2318
+ }, [p(f(ge), {
2304
2319
  size: 14,
2305
2320
  "stroke-width": 2
2306
- })], 8, La), x("button", {
2321
+ })], 8, Va), x("button", {
2307
2322
  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:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
2308
2323
  title: f(s).toolbar.delete,
2309
2324
  onClick: n[1] ||= (e) => a("delete")
2310
- }, [p(f(_e), {
2325
+ }, [p(f(be), {
2311
2326
  size: 14,
2312
2327
  "stroke-width": 2
2313
- })], 8, Ra)])]), x("div", za, [m.value ? (o(), y(Rn, {
2328
+ })], 8, Ha)])]), x("div", Ua, [m.value ? (o(), y(Vn, {
2314
2329
  key: 0,
2315
2330
  block: e.block,
2316
2331
  onUpdateFieldValues: n[2] ||= (e) => a("update", { fieldValues: e }),
2317
2332
  onUpdateDataSourceFetched: n[3] ||= (e) => a("update", { dataSourceFetched: e })
2318
- }, null, 8, ["block"])) : d.value === "section" ? (o(), y(Qr, {
2333
+ }, null, 8, ["block"])) : d.value === "section" ? (o(), y(ni, {
2319
2334
  key: 1,
2320
2335
  block: e.block,
2321
2336
  onUpdate: C
2322
- }, null, 8, ["block"])) : d.value === "title" ? (o(), y(fa, {
2337
+ }, null, 8, ["block"])) : d.value === "title" ? (o(), y(ga, {
2323
2338
  key: 2,
2324
2339
  block: e.block,
2325
2340
  "font-families": f(S),
2326
2341
  onUpdate: C
2327
- }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(Rr, {
2342
+ }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(Vr, {
2328
2343
  key: 3,
2329
2344
  block: e.block,
2330
2345
  onUpdate: C
2331
- }, null, 8, ["block"])) : d.value === "image" ? (o(), y(Sr, {
2346
+ }, null, 8, ["block"])) : d.value === "image" ? (o(), y(Tr, {
2332
2347
  key: 4,
2333
2348
  block: e.block,
2334
2349
  onUpdate: C
2335
- }, null, 8, ["block"])) : d.value === "video" ? (o(), y(ja, {
2350
+ }, null, 8, ["block"])) : d.value === "video" ? (o(), y(Fa, {
2336
2351
  key: 5,
2337
2352
  block: e.block,
2338
2353
  onUpdate: C
2339
- }, null, 8, ["block"])) : d.value === "button" ? (o(), y(st, {
2354
+ }, null, 8, ["block"])) : d.value === "button" ? (o(), y(ut, {
2340
2355
  key: 6,
2341
2356
  block: e.block,
2342
2357
  "font-families": f(S),
2343
2358
  onUpdate: C
2344
- }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(Wn, {
2359
+ }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(qn, {
2345
2360
  key: 7,
2346
2361
  block: e.block,
2347
2362
  onUpdate: C
2348
- }, null, 8, ["block"])) : d.value === "social" ? (o(), y(_i, {
2363
+ }, null, 8, ["block"])) : d.value === "social" ? (o(), y(xi, {
2349
2364
  key: 8,
2350
2365
  block: e.block,
2351
2366
  onUpdate: C
2352
- }, null, 8, ["block"])) : d.value === "menu" ? (o(), y(Pr, {
2367
+ }, null, 8, ["block"])) : d.value === "menu" ? (o(), y(Lr, {
2353
2368
  key: 9,
2354
2369
  block: e.block,
2355
2370
  "font-families": f(S),
2356
2371
  onUpdate: C
2357
- }, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y($i, {
2372
+ }, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y(ra, {
2358
2373
  key: 10,
2359
2374
  block: e.block,
2360
2375
  "font-families": f(S),
2361
2376
  onUpdate: C
2362
- }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(Si, {
2377
+ }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(Ei, {
2363
2378
  key: 11,
2364
2379
  block: e.block,
2365
2380
  onUpdate: C
2366
- }, null, 8, ["block"])) : d.value === "html" ? (o(), y(Jn, {
2381
+ }, null, 8, ["block"])) : d.value === "html" ? (o(), y(Zn, {
2367
2382
  key: 12,
2368
2383
  block: e.block,
2369
2384
  onUpdate: C
@@ -2372,14 +2387,14 @@ var Vr = { class: "tpl:mb-3.5" }, Hr = ["value"], Ur = ["value"], Wr = {
2372
2387
  block: e.block,
2373
2388
  "font-families": f(S),
2374
2389
  onUpdate: C
2375
- }, null, 8, ["block", "font-families"])) : _("", !0), p(Qt, {
2390
+ }, null, 8, ["block", "font-families"])) : _("", !0), p(tn, {
2376
2391
  block: e.block,
2377
2392
  "is-first-section": d.value === "paragraph",
2378
2393
  onUpdate: C
2379
- }, null, 8, ["block", "is-first-section"])])], 8, Ma));
2394
+ }, null, 8, ["block", "is-first-section"])])], 8, Ia));
2380
2395
  }
2381
- }), Va = /* @__PURE__ */ e({ default: () => Ha }), Ha = /*#__PURE__*/ Ee(Ba, [["__scopeId", "data-v-1038bf62"]]);
2396
+ }), Ga = /* @__PURE__ */ e({ default: () => Ka }), Ka = /*#__PURE__*/ ke(Wa, [["__scopeId", "data-v-1038bf62"]]);
2382
2397
  //#endregion
2383
- export { Ha as default, X as i, $ as n, Zn as r, Va as t };
2398
+ export { Ka as default, X as i, $ as n, er as r, Ga as t };
2384
2399
 
2385
- //# sourceMappingURL=Toolbar-DqFhWxgW.js.map
2400
+ //# sourceMappingURL=Toolbar-BsiHW9gY.js.map