@templatical/editor 0.40.0 → 0.42.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 (195) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-a8TPBAl2.js → AiChatSidebar-DqSoJAXx.js} +1 -1
  3. package/dist/{AiFeatureMenu-CbgDjLqk.js → AiFeatureMenu-CoBvE72q.js} +1 -1
  4. package/dist/{BlockPreviewCanvas-XNV83YGg.js → BlockPreviewCanvas-W6-MRpWz.js} +33 -33
  5. package/dist/{CloudHeaderExtras-C-tbLyfE.js → CloudHeaderExtras-AbsNuL9T.js} +1 -1
  6. package/dist/{CloudPanels-DnWDrgnQ.js → CloudPanels-BNL6rSeB.js} +2 -2
  7. package/dist/{CollaboratorBar-DUmeCkyD.js → CollaboratorBar-DlZ-wOL_.js} +1 -1
  8. package/dist/{CountdownToolbar-DkC-qSgq.js → CountdownToolbar-Bnq25sR-.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-OoiYJAKS.js → DesignReferenceSidebar-Cl5eE8Kn.js} +1 -1
  10. package/dist/{LogicTagInsertButton-BimKobaG.js → LogicTagInsertButton-SI6irEtn.js} +243 -219
  11. package/dist/{MediaEditModal-BFWmufJK.js → MediaEditModal-C-InB-H2.js} +1 -1
  12. package/dist/{MediaPanels-BmDda5rY.js → MediaPanels-CTosUpeo.js} +1 -1
  13. package/dist/{MergeTagInput-DqpVzhy7.js → MergeTagInput-BMQGNh1k.js} +1 -1
  14. package/dist/{MergeTagModeToggle-BkIiAgpQ.js → MergeTagModeToggle-Cm9s-w6o.js} +1 -1
  15. package/dist/{ParagraphEditor-D67Cqh-T.js → ParagraphEditor-CnBPQCVo.js} +19 -19
  16. package/dist/{RestoreVersionDialog-BaKDuPCX.js → RestoreVersionDialog-B13whpxH.js} +1 -1
  17. package/dist/{RichTextEditorContent-AEtfKvLz.js → RichTextEditorContent-DOvhgc-7.js} +3 -3
  18. package/dist/{SaveBlockDialog-BxkI52fN.js → SaveBlockDialog-b5yrQfoN.js} +5 -5
  19. package/dist/{SavedBlocksBrowserModal-C4_25Kvn.js → SavedBlocksBrowserModal-DpqK4Zqp.js} +4 -4
  20. package/dist/{SavedBlocksPanels-DQ0w9G1O.js → SavedBlocksPanels-C2wURIlT.js} +1 -1
  21. package/dist/{SavedBlocksPickBar-CtH-sfxh.js → SavedBlocksPickBar-Bx9_SXVA.js} +1 -1
  22. package/dist/{TemplateSettings-BD1WNP4C.js → TemplateSettings-Gn9ps1R6.js} +3 -3
  23. package/dist/{TestEmailModal-DZi58FU9.js → TestEmailModal-DaIaklcg.js} +5 -5
  24. package/dist/{TestEmailPanel-D__9Wvgz.js → TestEmailPanel-CKSvzakC.js} +1 -1
  25. package/dist/{TitleEditor-v5p89Djs.js → TitleEditor-C66Jk73n.js} +7 -7
  26. package/dist/{ToggleSwitch-CJfQ8u57.js → ToggleSwitch-BqttX9lY.js} +1 -1
  27. package/dist/{Toolbar-C7SjilzH.js → Toolbar-DVsKYQaC.js} +846 -553
  28. package/dist/{TplModal-B8uLyoXE.js → TplModal-DRQln7xH.js} +2 -2
  29. package/dist/{VersionHistoryPanels-DfNrRT6y.js → VersionHistoryPanels-Df5WjNah.js} +1 -1
  30. package/dist/{WrapperBlock-yGmKw0T-.js → WrapperBlock-B0cUORGz.js} +4 -4
  31. package/dist/{blockTypeIcons-B0Bq1WT1.js → blockTypeIcons-DfQNZnl7.js} +1 -1
  32. package/dist/bundle-stats.json +7 -7
  33. package/dist/{ca-Ckgw9yd0.js → ca--zGWn9AU.js} +14 -0
  34. package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js → AiChatSidebar-DD17BwXn.js} +10 -10
  35. package/dist/cdn/chunks/{AiChatSidebar-mKImUXi6.js.map → AiChatSidebar-DD17BwXn.js.map} +1 -1
  36. package/dist/cdn/chunks/{AiFeatureMenu-23HCL517.js → AiFeatureMenu-Di381OsL.js} +5 -5
  37. package/dist/cdn/chunks/{AiFeatureMenu-23HCL517.js.map → AiFeatureMenu-Di381OsL.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js → BlockIssueBadge-BR_N3nRh.js} +2 -2
  39. package/dist/cdn/chunks/{BlockIssueBadge-DS1pUf5g.js.map → BlockIssueBadge-BR_N3nRh.js.map} +1 -1
  40. package/dist/cdn/chunks/{BlockPreviewCanvas-DObWyQfh.js → BlockPreviewCanvas-BXpcAiiY.js} +28 -28
  41. package/dist/cdn/chunks/{BlockPreviewCanvas-DObWyQfh.js.map → BlockPreviewCanvas-BXpcAiiY.js.map} +1 -1
  42. package/dist/cdn/chunks/{CloudHeaderExtras-DOB_uWpt.js → CloudHeaderExtras-BEM2eWfF.js} +3 -3
  43. package/dist/cdn/chunks/{CloudHeaderExtras-DOB_uWpt.js.map → CloudHeaderExtras-BEM2eWfF.js.map} +1 -1
  44. package/dist/cdn/chunks/{CloudPanels-DcAn5QW7.js → CloudPanels-D7nK1-bm.js} +4 -4
  45. package/dist/cdn/chunks/{CloudPanels-DcAn5QW7.js.map → CloudPanels-D7nK1-bm.js.map} +1 -1
  46. package/dist/cdn/chunks/{CollaboratorBar-C0M8c2Vv.js → CollaboratorBar-D1SUwahw.js} +3 -3
  47. package/dist/cdn/chunks/{CollaboratorBar-C0M8c2Vv.js.map → CollaboratorBar-D1SUwahw.js.map} +1 -1
  48. package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js → CommentsPanel-qsLMAlJU.js} +2 -2
  49. package/dist/cdn/chunks/{CommentsPanel-BtAGZfF6.js.map → CommentsPanel-qsLMAlJU.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js → CommentsSidebar-CTwEE-s_.js} +16 -16
  51. package/dist/cdn/chunks/{CommentsSidebar-Ws07MXYj.js.map → CommentsSidebar-CTwEE-s_.js.map} +1 -1
  52. package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js → CountdownToolbar-BJTcnIQ-.js} +4 -4
  53. package/dist/cdn/chunks/{CountdownToolbar-Bu93WiS8.js.map → CountdownToolbar-BJTcnIQ-.js.map} +1 -1
  54. package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js → DesignReferenceSidebar-Dl3eEGtS.js} +9 -9
  55. package/dist/cdn/chunks/{DesignReferenceSidebar-BlSdh5B7.js.map → DesignReferenceSidebar-Dl3eEGtS.js.map} +1 -1
  56. package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js → IssuesPanel-L9Gq_T8n.js} +8 -8
  57. package/dist/cdn/chunks/{IssuesPanel-CKkv9z9g.js.map → IssuesPanel-L9Gq_T8n.js.map} +1 -1
  58. package/dist/cdn/chunks/{LogicTagInsertButton-CHc1yZ9v.js → LogicTagInsertButton-3pIbVE9p.js} +250 -226
  59. package/dist/cdn/chunks/LogicTagInsertButton-3pIbVE9p.js.map +1 -0
  60. package/dist/cdn/chunks/{MediaEditModal-CZBZviu2.js → MediaEditModal-rTjYl-fV.js} +2 -2
  61. package/dist/cdn/chunks/{MediaEditModal-CZBZviu2.js.map → MediaEditModal-rTjYl-fV.js.map} +1 -1
  62. package/dist/cdn/chunks/{MediaPanels-Bq5b-XJM.js → MediaPanels-DMXRQVqg.js} +2 -2
  63. package/dist/cdn/chunks/{MediaPanels-Bq5b-XJM.js.map → MediaPanels-DMXRQVqg.js.map} +1 -1
  64. package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js → MergeTagInput-JcBzr77a.js} +2 -2
  65. package/dist/cdn/chunks/{MergeTagInput--qTYfCWk.js.map → MergeTagInput-JcBzr77a.js.map} +1 -1
  66. package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js → MergeTagModeToggle-CYmueXS2.js} +10 -10
  67. package/dist/cdn/chunks/{MergeTagModeToggle-CdWIGo3Q.js.map → MergeTagModeToggle-CYmueXS2.js.map} +1 -1
  68. package/dist/cdn/chunks/{ParagraphEditor-BilbVtrG.js → ParagraphEditor-DbjFDnYm.js} +39 -39
  69. package/dist/cdn/chunks/{ParagraphEditor-BilbVtrG.js.map → ParagraphEditor-DbjFDnYm.js.map} +1 -1
  70. package/dist/cdn/chunks/{RestoreVersionDialog-Q-a44Vjv.js → RestoreVersionDialog-pANCWcce.js} +3 -3
  71. package/dist/cdn/chunks/{RestoreVersionDialog-Q-a44Vjv.js.map → RestoreVersionDialog-pANCWcce.js.map} +1 -1
  72. package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js → RichTextEditorContent-BtM1or8A.js} +5 -5
  73. package/dist/cdn/chunks/{RichTextEditorContent-Fzuu9pLP.js.map → RichTextEditorContent-BtM1or8A.js.map} +1 -1
  74. package/dist/cdn/chunks/{SaveBlockDialog-DeW_M6kh.js → SaveBlockDialog-CGM3mrGj.js} +38 -38
  75. package/dist/cdn/chunks/{SaveBlockDialog-DeW_M6kh.js.map → SaveBlockDialog-CGM3mrGj.js.map} +1 -1
  76. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BzQWibKG.js → SavedBlocksBrowserModal-C6Z8AvtD.js} +10 -10
  77. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BzQWibKG.js.map → SavedBlocksBrowserModal-C6Z8AvtD.js.map} +1 -1
  78. package/dist/cdn/chunks/{SavedBlocksPanels-Ce1RePjk.js → SavedBlocksPanels-DNwKmnhp.js} +2 -2
  79. package/dist/cdn/chunks/{SavedBlocksPanels-Ce1RePjk.js.map → SavedBlocksPanels-DNwKmnhp.js.map} +1 -1
  80. package/dist/cdn/chunks/{SavedBlocksPickBar-DIDl6xfy.js → SavedBlocksPickBar-D2p1ufB4.js} +3 -3
  81. package/dist/cdn/chunks/{SavedBlocksPickBar-DIDl6xfy.js.map → SavedBlocksPickBar-D2p1ufB4.js.map} +1 -1
  82. package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js → TemplateScoringPanel-BDB4RErx.js} +19 -19
  83. package/dist/cdn/chunks/{TemplateScoringPanel-d_Ppowsq.js.map → TemplateScoringPanel-BDB4RErx.js.map} +1 -1
  84. package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js → TemplateSettings-DVN1t3yF.js} +9 -9
  85. package/dist/cdn/chunks/{TemplateSettings-Dr5OJ0Gi.js.map → TemplateSettings-DVN1t3yF.js.map} +1 -1
  86. package/dist/cdn/chunks/{TestEmailModal-CWTmaJuT.js → TestEmailModal-DZBCmBtT.js} +7 -7
  87. package/dist/cdn/chunks/{TestEmailModal-CWTmaJuT.js.map → TestEmailModal-DZBCmBtT.js.map} +1 -1
  88. package/dist/cdn/chunks/{TestEmailPanel-BdYsVHXA.js → TestEmailPanel-1ibwYCUl.js} +2 -2
  89. package/dist/cdn/chunks/{TestEmailPanel-BdYsVHXA.js.map → TestEmailPanel-1ibwYCUl.js.map} +1 -1
  90. package/dist/cdn/chunks/{TitleEditor-pJeeZ-PX.js → TitleEditor-BRl2qKbd.js} +13 -13
  91. package/dist/cdn/chunks/{TitleEditor-pJeeZ-PX.js.map → TitleEditor-BRl2qKbd.js.map} +1 -1
  92. package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js → ToggleSwitch-niSL2uog.js} +2 -2
  93. package/dist/cdn/chunks/{ToggleSwitch-0dGCYnRY.js.map → ToggleSwitch-niSL2uog.js.map} +1 -1
  94. package/dist/cdn/chunks/{Toolbar-BsiHW9gY.js → Toolbar-tTl0P-rr.js} +814 -566
  95. package/dist/cdn/chunks/Toolbar-tTl0P-rr.js.map +1 -0
  96. package/dist/cdn/chunks/{TplModal-CEuGD7pt.js → TplModal-C_eIPykE.js} +3 -3
  97. package/dist/cdn/chunks/{TplModal-CEuGD7pt.js.map → TplModal-C_eIPykE.js.map} +1 -1
  98. package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js → VersionHistoryMenu-Ww57XAzj.js} +7 -7
  99. package/dist/cdn/chunks/{VersionHistoryMenu-B3-hNu9c.js.map → VersionHistoryMenu-Ww57XAzj.js.map} +1 -1
  100. package/dist/cdn/chunks/{VersionHistoryPanels-C1yck5gT.js → VersionHistoryPanels-w0EG_qVW.js} +2 -2
  101. package/dist/cdn/chunks/{VersionHistoryPanels-C1yck5gT.js.map → VersionHistoryPanels-w0EG_qVW.js.map} +1 -1
  102. package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js → VersionPreviewBanner-Bbd4C-AN.js} +2 -2
  103. package/dist/cdn/chunks/{VersionPreviewBanner-PzVQSBJE.js.map → VersionPreviewBanner-Bbd4C-AN.js.map} +1 -1
  104. package/dist/cdn/chunks/{WrapperBlock-DGkbmj06.js → WrapperBlock-Ch4KeMIb.js} +4 -4
  105. package/dist/cdn/chunks/{WrapperBlock-DGkbmj06.js.map → WrapperBlock-Ch4KeMIb.js.map} +1 -1
  106. package/dist/cdn/chunks/blockTypeIcons-CyPXFh7L.js +21 -0
  107. package/dist/cdn/chunks/{blockTypeIcons-raBjStuv.js.map → blockTypeIcons-CyPXFh7L.js.map} +1 -1
  108. package/dist/cdn/chunks/{ca-Ckgw9yd0.js → ca--zGWn9AU.js} +15 -1
  109. package/dist/cdn/chunks/ca--zGWn9AU.js.map +1 -0
  110. package/dist/cdn/chunks/{cloud-CIT4yPp4.js → cloud-De-eh1u6.js} +2 -2
  111. package/dist/cdn/chunks/{cloud-CIT4yPp4.js.map → cloud-De-eh1u6.js.map} +1 -1
  112. package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js → createCloudRuntime-DsaUaWvr.js} +3 -3
  113. package/dist/cdn/chunks/{createCloudRuntime-COUxbPvd.js.map → createCloudRuntime-DsaUaWvr.js.map} +1 -1
  114. package/dist/cdn/chunks/{de-D4dweQw8.js → de-BRNLKcDl.js} +15 -1
  115. package/dist/cdn/chunks/de-BRNLKcDl.js.map +1 -0
  116. package/dist/cdn/chunks/{editor-modal-zxvWz8R6.js → editor-modal-BdI0iA5r.js} +89 -88
  117. package/dist/cdn/chunks/{editor-modal-zxvWz8R6.js.map → editor-modal-BdI0iA5r.js.map} +1 -1
  118. package/dist/cdn/chunks/en-Cs-nw16K.js +2 -0
  119. package/dist/{en-VE7R7NyL.js → cdn/chunks/en-JJjqHMjy.js} +16 -0
  120. package/dist/cdn/chunks/en-JJjqHMjy.js.map +1 -0
  121. package/dist/cdn/chunks/{es-B9OhP8H3.js → es-BIh8BxV9.js} +15 -1
  122. package/dist/cdn/chunks/es-BIh8BxV9.js.map +1 -0
  123. package/dist/cdn/chunks/{extensions-CafoGF65.js → extensions-DK_9-6Bd.js} +4 -4
  124. package/dist/cdn/chunks/{extensions-CafoGF65.js.map → extensions-DK_9-6Bd.js.map} +1 -1
  125. package/dist/{fr-wrXhIi00.js → cdn/chunks/fr-C5VUZogP.js} +16 -0
  126. package/dist/cdn/chunks/fr-C5VUZogP.js.map +1 -0
  127. package/dist/cdn/chunks/{icons-BKkJ-5xF.js → icons-Bad3WZ3G.js} +49 -8
  128. package/dist/cdn/chunks/icons-Bad3WZ3G.js.map +1 -0
  129. package/dist/cdn/chunks/ja-DhlWUfke.js +94 -0
  130. package/dist/cdn/chunks/ja-DhlWUfke.js.map +1 -0
  131. package/dist/cdn/chunks/ja-x5JYxaCW.js +639 -0
  132. package/dist/cdn/chunks/ja-x5JYxaCW.js.map +1 -0
  133. package/dist/cdn/chunks/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +15 -1
  134. package/dist/cdn/chunks/{nl-DeFatKJe.js.map → nl-UXxFyXV6.js.map} +1 -1
  135. package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js → preRenderCustomBlocks-h4ZFBKbD.js} +2 -2
  136. package/dist/cdn/chunks/{preRenderCustomBlocks-Dpj-_cOj.js.map → preRenderCustomBlocks-h4ZFBKbD.js.map} +1 -1
  137. package/dist/cdn/chunks/{pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +15 -1
  138. package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +1 -0
  139. package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js → socialIcons-ZOCwCCyn.js} +3 -3
  140. package/dist/cdn/chunks/{socialIcons-BvYNMn1G.js.map → socialIcons-ZOCwCCyn.js.map} +1 -1
  141. package/dist/cdn/chunks/{src-DveVYoWS.js → src-BR3I3gOW.js} +265 -224
  142. package/dist/cdn/chunks/src-BR3I3gOW.js.map +1 -0
  143. package/dist/cdn/chunks/{src-CbGCES0u.js → src-BxoLKnkl.js} +178 -165
  144. package/dist/cdn/chunks/src-BxoLKnkl.js.map +1 -0
  145. package/dist/cdn/chunks/{src-Cnc5E71L.js → src-fZSLjhjy.js} +12 -12
  146. package/dist/cdn/chunks/{src-Cnc5E71L.js.map → src-fZSLjhjy.js.map} +1 -1
  147. package/dist/cdn/chunks/{useEditorCore-CQraU2s_.js → useEditorCore-yd40TFKy.js} +467 -446
  148. package/dist/cdn/chunks/useEditorCore-yd40TFKy.js.map +1 -0
  149. package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js → useLogicTag-J_i_hvZg.js} +2 -2
  150. package/dist/cdn/chunks/{useLogicTag-DF7-l66G.js.map → useLogicTag-J_i_hvZg.js.map} +1 -1
  151. package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js → useMergeTag-C5MyHYxJ.js} +2 -2
  152. package/dist/cdn/chunks/{useMergeTag-DbIHw4NG.js.map → useMergeTag-C5MyHYxJ.js.map} +1 -1
  153. package/dist/cdn/chunks/{usePopoverPosition-BJRvAb-h.js → usePopoverPosition-DGXjXKjM.js} +25 -12
  154. package/dist/cdn/chunks/usePopoverPosition-DGXjXKjM.js.map +1 -0
  155. package/dist/cdn/editor.css +1 -1
  156. package/dist/cdn/editor.js +64 -64
  157. package/dist/{cloud-DsqqUfzh.js → cloud-AO_X8T9g.js} +1 -1
  158. package/dist/{createCloudRuntime-iLflkYzP.js → createCloudRuntime-D641nhri.js} +2 -2
  159. package/dist/{de-D4dweQw8.js → de-BRNLKcDl.js} +14 -0
  160. package/dist/{dist-DbUZvK04.js → dist-iLUVPysa.js} +263 -222
  161. package/dist/{editor-modal-Czq1I8oC.js → editor-modal-qzmEVcIk.js} +3 -2
  162. package/dist/en-1tgLzB8q.js +2 -0
  163. package/dist/{cdn/chunks/en-VE7R7NyL.js → en-JJjqHMjy.js} +14 -2
  164. package/dist/{es-B9OhP8H3.js → es-BIh8BxV9.js} +14 -0
  165. package/dist/{extensions-DDhjuVKy.js → extensions-DoT2-_pz.js} +11 -11
  166. package/dist/{cdn/chunks/fr-wrXhIi00.js → fr-C5VUZogP.js} +14 -2
  167. package/dist/ja-DhlWUfke.js +92 -0
  168. package/dist/ja-x5JYxaCW.js +637 -0
  169. package/dist/{nl-DeFatKJe.js → nl-UXxFyXV6.js} +14 -0
  170. package/dist/{preRenderCustomBlocks-BBSqQgke.js → preRenderCustomBlocks-CTstI3Q-.js} +4 -4
  171. package/dist/{pt-BR-Bh1J8ey6.js → pt-BR-DHm3SP6W.js} +14 -0
  172. package/dist/{socialIcons-O7PZCW2P.js → socialIcons-CACVa6m_.js} +46 -46
  173. package/dist/style.css +1 -1
  174. package/dist/templatical-editor.js +109 -109
  175. package/dist/{useEditorCore-Dt_VWNqX.js → useEditorCore-LyNoGs0m.js} +902 -881
  176. package/dist/{useLogicTag-D9pvgxQR.js → useLogicTag-BaH8gey0.js} +1 -1
  177. package/dist/{useMergeTag-BaVFPdlq.js → useMergeTag-Cyad1yBE.js} +1 -1
  178. package/dist/{usePopoverPosition-DH7z3Ghm.js → usePopoverPosition-BYmd-lhR.js} +24 -11
  179. package/package.json +8 -8
  180. package/dist/cdn/chunks/LogicTagInsertButton-CHc1yZ9v.js.map +0 -1
  181. package/dist/cdn/chunks/Toolbar-BsiHW9gY.js.map +0 -1
  182. package/dist/cdn/chunks/blockTypeIcons-raBjStuv.js +0 -21
  183. package/dist/cdn/chunks/ca-Ckgw9yd0.js.map +0 -1
  184. package/dist/cdn/chunks/de-D4dweQw8.js.map +0 -1
  185. package/dist/cdn/chunks/en-BcQ9ovQu.js +0 -2
  186. package/dist/cdn/chunks/en-VE7R7NyL.js.map +0 -1
  187. package/dist/cdn/chunks/es-B9OhP8H3.js.map +0 -1
  188. package/dist/cdn/chunks/fr-wrXhIi00.js.map +0 -1
  189. package/dist/cdn/chunks/icons-BKkJ-5xF.js.map +0 -1
  190. package/dist/cdn/chunks/pt-BR-Bh1J8ey6.js.map +0 -1
  191. package/dist/cdn/chunks/src-CbGCES0u.js.map +0 -1
  192. package/dist/cdn/chunks/src-DveVYoWS.js.map +0 -1
  193. package/dist/cdn/chunks/useEditorCore-CQraU2s_.js.map +0 -1
  194. package/dist/cdn/chunks/usePopoverPosition-BJRvAb-h.js.map +0 -1
  195. package/dist/en-DQqmtndQ.js +0 -2
@@ -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 { 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";
3
+ import { C as D, W as O, Z as k, ft as A, ht as j, i as ee, pt as M, r as te, vt as N, yt as P } from "./src-BR3I3gOW.js";
4
+ import { a as ne, h as re, i as ie, r as F, s as ae } from "./socialIcons-ZOCwCCyn.js";
5
+ import { _ as oe } from "./dist-BRZhN8qJ.js";
6
+ import { $ as se, C as I, G as ce, L as le, P as ue, c as de, d as fe, h as pe, n as me, p as he, v as ge } from "./keys-DCWeHkSF.js";
7
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";
8
+ import { o as _e } from "./usePopoverPosition-DGXjXKjM.js";
9
+ import { B as ve, Dt as ye, Lt as be, Nt as xe, O as Se, W as R, _ as z, at as Ce, c as we, et as Te, f as Ee, ft as De, g as Oe, h as ke, it as Ae, kt as je, lt as Me, n as Ne, pt as Pe, rt as Fe, s as Ie, tt as B } from "./icons-Bad3WZ3G.js";
10
+ import { t as Le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
+ import { t as Re } from "./useAliveFlag-DAlQLbM2.js";
12
+ import { _ as ze, b as Be, c as Ve, g as V, h as H, m as U, p as W, r as He, v as Ue } from "./styleConstants-C_YAPdQS.js";
13
+ import { t as We } from "./blockTypeIcons-CyPXFh7L.js";
14
+ import { c as G } from "./LogicTagInsertButton-3pIbVE9p.js";
15
+ import { n as Ge, t as K } from "./ToggleSwitch-niSL2uog.js";
16
+ import { t as q } from "./MergeTagInput-JcBzr77a.js";
17
17
  //#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
18
- var Re = [
18
+ var Ke = [
19
19
  "aria-checked",
20
20
  "aria-label",
21
21
  "title",
22
22
  "onClick"
23
- ], ze = { key: 1 }, X = /* @__PURE__ */ l({
23
+ ], qe = { key: 1 }, J = /* @__PURE__ */ l({
24
24
  __name: "SlidingPillSelect",
25
25
  props: {
26
26
  options: {},
@@ -63,12 +63,277 @@ var Re = [
63
63
  key: 0,
64
64
  size: 14,
65
65
  "stroke-width": 2
66
- })) : (o(), g("span", ze, w(t.label), 1))], 12, Re))), 128))], 4));
66
+ })) : (o(), g("span", qe, w(t.label), 1))], 12, Ke))), 128))], 4));
67
67
  }
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 = {
68
+ }), Je = { class: "tpl:flex tpl:items-stretch" }, Ye = [
69
+ "data-testid",
70
+ "value",
71
+ "min",
72
+ "max"
73
+ ], Y = /* @__PURE__ */ l({
74
+ __name: "NumberWithSuffix",
75
+ props: {
76
+ modelValue: {},
77
+ min: {},
78
+ max: {},
79
+ suffix: {},
80
+ testid: {}
81
+ },
82
+ emits: ["update:modelValue"],
83
+ setup(e, { emit: t }) {
84
+ let n = t;
85
+ function r(e) {
86
+ let t = e.target;
87
+ t.validity?.badInput || n("update:modelValue", Number(t.value));
88
+ }
89
+ return (t, n) => (o(), g("div", Je, [x("input", {
90
+ type: "number",
91
+ "data-testid": e.testid,
92
+ class: m(f(U)),
93
+ value: e.modelValue,
94
+ min: e.min,
95
+ max: e.max,
96
+ onInput: r
97
+ }, null, 42, Ye), x("span", { class: m(f(H)) }, w(e.suffix), 3)]));
98
+ }
99
+ }), Xe = [
100
+ "aria-pressed",
101
+ "aria-label",
102
+ "title",
103
+ "data-testid"
104
+ ], Ze = /* @__PURE__ */ l({
105
+ __name: "LinkToggle",
106
+ props: {
107
+ linked: { type: Boolean },
108
+ linkLabel: {},
109
+ unlinkLabel: {},
110
+ testid: {}
111
+ },
112
+ emits: ["toggle"],
113
+ setup(e, { emit: t }) {
114
+ let n = t;
115
+ return (t, r) => (o(), g("button", {
116
+ type: "button",
117
+ class: m(["tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", e.linked ? "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)]"]),
118
+ "aria-pressed": e.linked ? "true" : "false",
119
+ "aria-label": e.linked ? e.unlinkLabel : e.linkLabel,
120
+ title: e.linked ? e.unlinkLabel : e.linkLabel,
121
+ "data-testid": e.testid,
122
+ onClick: r[0] ||= (e) => n("toggle")
123
+ }, [e.linked ? (o(), y(f(Me), {
124
+ key: 0,
125
+ size: 14,
126
+ "stroke-width": 2
127
+ })) : (o(), y(f(we), {
128
+ key: 1,
129
+ size: 14,
130
+ "stroke-width": 2
131
+ }))], 10, Xe));
132
+ }
133
+ }), Qe = { class: "tpl:mb-3.5" }, $e = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, et = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, tt = {
134
+ key: 0,
135
+ class: "tpl:mb-3.5"
136
+ }, nt = { class: "tpl:mb-3.5" }, rt = { class: "tpl:mb-3.5" }, it = /* @__PURE__ */ l({
137
+ __name: "BorderControl",
138
+ props: {
139
+ modelValue: {},
140
+ testidPrefix: {}
141
+ },
142
+ emits: ["update:modelValue"],
143
+ setup(e, { emit: n }) {
144
+ let r = e, i = n, { t: a } = L(), c = {
145
+ width: 0,
146
+ style: "solid",
147
+ color: "#000000"
148
+ };
149
+ function l(e, t) {
150
+ return e.width === t.width && e.style === t.style && e.color === t.color;
151
+ }
152
+ let u = h(() => {
153
+ let e = r.modelValue;
154
+ return !e || M.every((t) => l(e[t], e.top));
155
+ }), d = s(u.value);
156
+ t(u, (e) => {
157
+ !e && d.value && (d.value = !1);
158
+ });
159
+ let v = s("top"), y = h(() => r.modelValue?.[d.value ? "top" : v.value] ?? c), b = (e) => !!e && e.width > 0;
160
+ function S(e) {
161
+ if (d.value) {
162
+ i("update:modelValue", b(e) ? P(e) : void 0);
163
+ return;
164
+ }
165
+ let t = {
166
+ ...r.modelValue ?? P(c),
167
+ [v.value]: e
168
+ }, n = M.some((e) => b(t[e]));
169
+ i("update:modelValue", n ? t : void 0);
170
+ }
171
+ function T(e) {
172
+ S({
173
+ ...y.value,
174
+ width: e > 0 ? e : 0
175
+ });
176
+ }
177
+ function E(e) {
178
+ S({
179
+ ...y.value,
180
+ ...e
181
+ });
182
+ }
183
+ function D() {
184
+ if (d.value) {
185
+ d.value = !1;
186
+ return;
187
+ }
188
+ d.value = !0;
189
+ let e = r.modelValue;
190
+ if (!e) return;
191
+ let t = b(e[v.value]) ? e[v.value] : M.map((t) => e[t]).find(b);
192
+ i("update:modelValue", t ? P(t) : void 0);
193
+ }
194
+ let O = h(() => M.map((e) => ({
195
+ value: e,
196
+ label: a.spacingControl[e]
197
+ })));
198
+ return (t, n) => (o(), g("div", Qe, [
199
+ x("div", $e, [x("span", et, w(f(a).blockSettings.border), 1), p(Ze, {
200
+ linked: d.value,
201
+ "link-label": f(a).blockSettings.linkSides,
202
+ "unlink-label": f(a).blockSettings.unlinkSides,
203
+ testid: `${e.testidPrefix}-border-link`,
204
+ onToggle: D
205
+ }, null, 8, [
206
+ "linked",
207
+ "link-label",
208
+ "unlink-label",
209
+ "testid"
210
+ ])]),
211
+ d.value ? _("", !0) : (o(), g("div", tt, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderSide), 3), p(J, {
212
+ options: O.value,
213
+ "model-value": v.value,
214
+ "onUpdate:modelValue": n[0] ||= (e) => v.value = e
215
+ }, null, 8, ["options", "model-value"])])),
216
+ x("div", nt, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderWidth), 3), p(Y, {
217
+ "model-value": y.value.width,
218
+ min: 0,
219
+ suffix: "px",
220
+ testid: `${e.testidPrefix}-border-width-input`,
221
+ "onUpdate:modelValue": T
222
+ }, null, 8, ["model-value", "testid"])]),
223
+ y.value.width > 0 ? (o(), g(C, { key: 1 }, [x("div", rt, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderStyle), 3), p(J, {
224
+ options: [
225
+ {
226
+ value: "solid",
227
+ label: f(a).divider.solid
228
+ },
229
+ {
230
+ value: "dashed",
231
+ label: f(a).divider.dashed
232
+ },
233
+ {
234
+ value: "dotted",
235
+ label: f(a).divider.dotted
236
+ }
237
+ ],
238
+ "model-value": y.value.style,
239
+ "onUpdate:modelValue": n[1] ||= (e) => E({ style: e })
240
+ }, null, 8, ["options", "model-value"])]), x("div", null, [x("label", { class: m(f(V)) }, w(f(a).blockSettings.borderColor), 3), p(G, {
241
+ "model-value": y.value.color,
242
+ "onUpdate:modelValue": n[2] ||= (e) => E({ color: e })
243
+ }, null, 8, ["model-value"])])], 64)) : _("", !0)
244
+ ]));
245
+ }
246
+ }), at = { class: "tpl:mb-3.5" }, ot = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, st = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ct = {
247
+ key: 1,
248
+ class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
249
+ }, lt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, ut = /* @__PURE__ */ l({
250
+ __name: "RadiusControl",
251
+ props: {
252
+ modelValue: {},
253
+ label: {},
254
+ testidPrefix: {},
255
+ max: {}
256
+ },
257
+ emits: ["update:modelValue"],
258
+ setup(e, { emit: n }) {
259
+ let i = e, a = n, { t: c } = L(), l = {
260
+ topLeft: "cornerTopLeft",
261
+ topRight: "cornerTopRight",
262
+ bottomRight: "cornerBottomRight",
263
+ bottomLeft: "cornerBottomLeft"
264
+ }, u = [
265
+ "topLeft",
266
+ "topRight",
267
+ "bottomLeft",
268
+ "bottomRight"
269
+ ], d = h(() => {
270
+ let e = i.modelValue ?? 0;
271
+ return typeof e == "number" ? {
272
+ topLeft: e,
273
+ topRight: e,
274
+ bottomRight: e,
275
+ bottomLeft: e
276
+ } : e;
277
+ }), m = h(() => A.every((e) => d.value[e] === d.value.topLeft)), _ = s(m.value);
278
+ t(m, (e) => {
279
+ !e && _.value && (_.value = !1);
280
+ });
281
+ function v(e) {
282
+ return Number.isFinite(e) && e >= 0;
283
+ }
284
+ function b(e) {
285
+ v(e) && a("update:modelValue", e);
286
+ }
287
+ function S(e, t) {
288
+ v(t) && a("update:modelValue", {
289
+ ...d.value,
290
+ [e]: t
291
+ });
292
+ }
293
+ function T() {
294
+ _.value = !_.value, _.value && a("update:modelValue", d.value.topLeft);
295
+ }
296
+ return (t, n) => (o(), g("div", at, [x("div", ot, [x("span", st, w(e.label), 1), p(Ze, {
297
+ linked: _.value,
298
+ "link-label": f(c).blockSettings.linkCorners,
299
+ "unlink-label": f(c).blockSettings.unlinkCorners,
300
+ testid: `${e.testidPrefix}-border-radius-link`,
301
+ onToggle: T
302
+ }, null, 8, [
303
+ "linked",
304
+ "link-label",
305
+ "unlink-label",
306
+ "testid"
307
+ ])]), _.value ? (o(), y(Y, {
308
+ key: 0,
309
+ "model-value": d.value.topLeft,
310
+ min: 0,
311
+ max: e.max,
312
+ suffix: "px",
313
+ testid: `${e.testidPrefix}-border-radius-input`,
314
+ "onUpdate:modelValue": b
315
+ }, null, 8, [
316
+ "model-value",
317
+ "max",
318
+ "testid"
319
+ ])) : (o(), g("div", ct, [(o(), g(C, null, r(u, (t) => x("div", { key: t }, [x("label", lt, w(f(c).blockSettings[l[t]]), 1), p(Y, {
320
+ "model-value": d.value[t],
321
+ min: 0,
322
+ max: e.max,
323
+ suffix: "px",
324
+ testid: `${e.testidPrefix}-border-radius-${t}-input`,
325
+ "onUpdate:modelValue": (e) => S(t, e)
326
+ }, null, 8, [
327
+ "model-value",
328
+ "max",
329
+ "testid",
330
+ "onUpdate:modelValue"
331
+ ])])), 64))]))]));
332
+ }
333
+ }), dt = { class: "tpl:mb-3.5" }, ft = ["value"], pt = { value: "" }, mt = ["value"], ht = { class: "tpl:mb-3.5" }, gt = { class: "tpl:mb-3.5" }, _t = { class: "tpl:mb-3.5" }, vt = { class: "tpl:mb-3.5" }, yt = { class: "tpl:mb-3.5" }, bt = { class: "tpl:flex tpl:items-stretch" }, xt = ["value"], St = { class: "tpl:mb-3.5" }, Ct = ["value"], wt = { value: "auto" }, Tt = { value: "full" }, Et = { value: "custom" }, Dt = {
69
334
  key: 0,
70
335
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
71
- }, st = ["value"], ct = { class: "tpl:mb-3.5" }, lt = 200, ut = /* @__PURE__ */ l({
336
+ }, Ot = ["value"], kt = { class: "tpl:mb-3.5" }, At = 200, jt = /* @__PURE__ */ l({
72
337
  __name: "ButtonToolbar",
73
338
  props: {
74
339
  block: {},
@@ -86,7 +351,7 @@ var Re = [
86
351
  return;
87
352
  }
88
353
  if (e === "custom") {
89
- c("width", typeof n.block.width == "number" ? n.block.width : lt);
354
+ c("width", typeof n.block.width == "number" ? n.block.width : At);
90
355
  return;
91
356
  }
92
357
  c("width", void 0);
@@ -96,28 +361,28 @@ var Re = [
96
361
  !Number.isFinite(t) || t <= 0 || c("width", t);
97
362
  }
98
363
  return (t, n) => (o(), g(C, null, [
99
- x("div", Be, [x("label", { class: m(f(U)) }, w(f(a).button.fontFamily), 3), x("select", {
100
- class: m(f(K)),
364
+ x("div", dt, [x("label", { class: m(f(V)) }, w(f(a).button.fontFamily), 3), x("select", {
365
+ class: m(f(W)),
101
366
  value: e.block.fontFamily || "",
102
367
  onChange: n[0] ||= (e) => c("fontFamily", e.target.value || void 0)
103
- }, [x("option", He, w(f(a).button.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
368
+ }, [x("option", pt, w(f(a).button.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
104
369
  key: e.value,
105
370
  value: e.value
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, {
371
+ }, w(e.label), 9, mt))), 128))], 42, ft)]),
372
+ x("div", ht, [x("label", { class: m(f(V)) }, w(f(a).button.text), 3), p(q, {
108
373
  "model-value": e.block.text,
109
374
  type: "text",
110
375
  "onUpdate:modelValue": n[1] ||= (e) => c("text", e)
111
376
  }, null, 8, ["model-value"])]),
112
- x("div", Ge, [
113
- x("label", { class: m(f(U)) }, w(f(a).button.url), 3),
114
- p(Y, {
377
+ x("div", gt, [
378
+ x("label", { class: m(f(V)) }, w(f(a).button.url), 3),
379
+ p(q, {
115
380
  "model-value": e.block.url,
116
381
  type: "url",
117
382
  placeholder: f(a).button.urlPlaceholder,
118
383
  "onUpdate:modelValue": n[2] ||= (e) => c("url", e)
119
384
  }, null, 8, ["model-value", "placeholder"]),
120
- e.block.url ? (o(), y(J, {
385
+ e.block.url ? (o(), y(K, {
121
386
  key: 0,
122
387
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
123
388
  "model-value": e.block.openInNewTab ?? !1,
@@ -125,49 +390,55 @@ var Re = [
125
390
  "onUpdate:modelValue": n[3] ||= (e) => c("openInNewTab", e)
126
391
  }, null, 8, ["model-value", "label"])) : _("", !0)
127
392
  ]),
128
- x("div", Ke, [x("label", { class: m(f(U)) }, w(f(a).button.background), 3), p(q, {
393
+ x("div", _t, [x("label", { class: m(f(V)) }, w(f(a).button.background), 3), p(G, {
129
394
  "model-value": e.block.backgroundColor,
395
+ "allow-transparent": "",
130
396
  "onUpdate:modelValue": n[4] ||= (e) => c("backgroundColor", e)
131
397
  }, null, 8, ["model-value"])]),
132
- x("div", qe, [x("label", { class: m(f(U)) }, w(f(a).button.textColor), 3), p(q, {
398
+ x("div", vt, [x("label", { class: m(f(V)) }, w(f(a).button.textColor), 3), p(G, {
133
399
  "model-value": e.block.textColor,
134
400
  "onUpdate:modelValue": n[5] ||= (e) => c("textColor", e)
135
401
  }, null, 8, ["model-value"])]),
136
- x("div", Je, [x("div", Ye, [x("label", { class: m(f(U)) }, w(f(a).button.borderRadius), 3), x("div", Xe, [x("input", {
402
+ p(it, {
403
+ "model-value": e.block.border,
404
+ "testid-prefix": "button",
405
+ "onUpdate:modelValue": n[6] ||= (e) => c("border", e)
406
+ }, null, 8, ["model-value"]),
407
+ p(ut, {
408
+ "model-value": e.block.borderRadius,
409
+ label: f(a).button.borderRadius,
410
+ max: 50,
411
+ "testid-prefix": "button",
412
+ "onUpdate:modelValue": n[7] ||= (e) => c("borderRadius", e)
413
+ }, null, 8, ["model-value", "label"]),
414
+ x("div", yt, [x("label", { class: m(f(V)) }, w(f(a).button.fontSize), 3), x("div", bt, [x("input", {
137
415
  type: "number",
138
- class: m(f(G)),
139
- value: e.block.borderRadius,
140
- min: "0",
141
- max: "50",
142
- onInput: n[6] ||= (e) => c("borderRadius", Number(e.target.value))
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
- type: "number",
145
- class: m(f(G)),
416
+ class: m(f(U)),
146
417
  value: e.block.fontSize,
147
418
  min: "10",
148
419
  max: "36",
149
- onInput: n[7] ||= (e) => c("fontSize", Number(e.target.value))
150
- }, null, 42, et), x("span", { class: m(f(W)) }, "px", 2)])])]),
151
- x("div", tt, [
152
- x("label", { class: m(f(U)) }, w(f(a).button.width), 3),
420
+ onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
421
+ }, null, 42, xt), x("span", { class: m(f(H)) }, "px", 2)])]),
422
+ x("div", St, [
423
+ x("label", { class: m(f(V)) }, w(f(a).button.width), 3),
153
424
  x("select", {
154
- class: m(f(K)),
425
+ class: m(f(W)),
155
426
  value: s.value,
156
- onChange: n[8] ||= (e) => l(e.target.value)
427
+ onChange: n[9] ||= (e) => l(e.target.value)
157
428
  }, [
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", {
429
+ x("option", wt, w(f(a).button.widthAuto), 1),
430
+ x("option", Tt, w(f(a).button.fullWidth), 1),
431
+ x("option", Et, w(f(a).button.widthCustom), 1)
432
+ ], 42, Ct),
433
+ s.value === "custom" ? (o(), g("div", Dt, [x("input", {
163
434
  type: "number",
164
- class: m(f(G)),
165
- value: typeof e.block.width == "number" ? e.block.width : lt,
435
+ class: m(f(U)),
436
+ value: typeof e.block.width == "number" ? e.block.width : At,
166
437
  min: "20",
167
- onInput: n[9] ||= (e) => u(e.target.value)
168
- }, null, 42, st), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
438
+ onInput: n[10] ||= (e) => u(e.target.value)
439
+ }, null, 42, Ot), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
169
440
  ]),
170
- x("div", ct, [x("label", { class: m(f(U)) }, w(f(a).title.align), 3), p(X, {
441
+ x("div", kt, [x("label", { class: m(f(V)) }, w(f(a).title.align), 3), p(J, {
171
442
  options: [
172
443
  {
173
444
  value: "left",
@@ -183,11 +454,11 @@ var Re = [
183
454
  }
184
455
  ],
185
456
  "model-value": e.block.align ?? "center",
186
- "onUpdate:modelValue": n[10] ||= (e) => c("align", e)
457
+ "onUpdate:modelValue": n[11] ||= (e) => c("align", e)
187
458
  }, null, 8, ["options", "model-value"])])
188
459
  ], 64));
189
460
  }
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({
461
+ }), Mt = { class: "spacing-control" }, Nt = { 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" }, Ft = { class: "tpl:flex tpl:items-center" }, It = ["aria-label"], Lt = ["value", "aria-label"], Rt = ["aria-label"], zt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Bt = { class: "tpl:flex tpl:items-center" }, Vt = ["aria-label"], Ht = ["value", "aria-label"], Ut = ["aria-label"], Wt = ["aria-label", "title"], Gt = { class: "tpl:flex tpl:items-center" }, Kt = ["aria-label"], qt = ["value", "aria-label"], Jt = ["aria-label"], Yt = { class: "tpl:flex tpl:items-center" }, Xt = ["aria-label"], Zt = ["value", "aria-label"], Qt = ["aria-label"], X = "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)]", Z = "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)]", $t = /*#__PURE__*/ Le(/* @__PURE__ */ l({
191
462
  __name: "SpacingControl",
192
463
  props: {
193
464
  modelValue: {},
@@ -234,130 +505,130 @@ var Re = [
234
505
  });
235
506
  }
236
507
  }
237
- return (t, n) => (o(), g("div", dt, [x("label", ft, w(e.label), 1), x("div", pt, [
238
- x("div", mt, [
508
+ return (t, n) => (o(), g("div", Mt, [x("label", Nt, w(e.label), 1), x("div", Pt, [
509
+ x("div", Ft, [
239
510
  x("button", {
240
511
  "aria-label": f(a).spacingControl.decreaseTop,
241
- class: m([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
512
+ class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
242
513
  onClick: n[0] ||= (e) => u("top", -1)
243
- }, [p(f(z), {
514
+ }, [p(f(B), {
244
515
  size: 12,
245
516
  "stroke-width": 2
246
- })], 10, ht),
517
+ })], 10, It),
247
518
  x("input", {
248
519
  type: "number",
249
- class: m(Mt),
520
+ class: m(Z),
250
521
  value: e.modelValue.top,
251
522
  "aria-label": f(a).spacingControl.top,
252
523
  min: "0",
253
524
  onInput: n[1] ||= (e) => d("top", Number(e.target.value))
254
- }, null, 40, gt),
525
+ }, null, 40, Lt),
255
526
  x("button", {
256
527
  "aria-label": f(a).spacingControl.increaseTop,
257
- class: m([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
528
+ class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
258
529
  onClick: n[2] ||= (e) => u("top", 1)
259
530
  }, [p(f(R), {
260
531
  size: 12,
261
532
  "stroke-width": 2
262
- })], 10, _t)
533
+ })], 10, Rt)
263
534
  ]),
264
- x("div", vt, [
265
- x("div", yt, [
535
+ x("div", zt, [
536
+ x("div", Bt, [
266
537
  x("button", {
267
538
  "aria-label": f(a).spacingControl.decreaseLeft,
268
- class: m([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
539
+ class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
269
540
  onClick: n[3] ||= (e) => u("left", -1)
270
- }, [p(f(z), {
541
+ }, [p(f(B), {
271
542
  size: 12,
272
543
  "stroke-width": 2
273
- })], 10, bt),
544
+ })], 10, Vt),
274
545
  x("input", {
275
546
  type: "number",
276
- class: m(Mt),
547
+ class: m(Z),
277
548
  value: e.modelValue.left,
278
549
  "aria-label": f(a).spacingControl.left,
279
550
  min: "0",
280
551
  onInput: n[4] ||= (e) => d("left", Number(e.target.value))
281
- }, null, 40, xt),
552
+ }, null, 40, Ht),
282
553
  x("button", {
283
554
  "aria-label": f(a).spacingControl.increaseLeft,
284
- class: m([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
555
+ class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
285
556
  onClick: n[5] ||= (e) => u("left", 1)
286
557
  }, [p(f(R), {
287
558
  size: 12,
288
559
  "stroke-width": 2
289
- })], 10, St)
560
+ })], 10, Ut)
290
561
  ]),
291
562
  x("button", {
292
563
  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
564
  "aria-label": l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
294
565
  title: l.value ? f(a).spacingControl.unlock : f(a).spacingControl.lockAll,
295
566
  onClick: _
296
- }, [l.value ? (o(), y(f(Te), {
567
+ }, [l.value ? (o(), y(f(Fe), {
297
568
  key: 0,
298
569
  size: 14,
299
570
  "stroke-width": 2
300
- })) : (o(), y(f(Ee), {
571
+ })) : (o(), y(f(Ae), {
301
572
  key: 1,
302
573
  size: 14,
303
574
  "stroke-width": 2
304
- }))], 10, Ct),
305
- x("div", wt, [
575
+ }))], 10, Wt),
576
+ x("div", Gt, [
306
577
  x("button", {
307
578
  "aria-label": f(a).spacingControl.decreaseRight,
308
- class: m([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
579
+ class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
309
580
  onClick: n[6] ||= (e) => u("right", -1)
310
- }, [p(f(z), {
581
+ }, [p(f(B), {
311
582
  size: 12,
312
583
  "stroke-width": 2
313
- })], 10, Tt),
584
+ })], 10, Kt),
314
585
  x("input", {
315
586
  type: "number",
316
- class: m(Mt),
587
+ class: m(Z),
317
588
  value: e.modelValue.right,
318
589
  "aria-label": f(a).spacingControl.right,
319
590
  min: "0",
320
591
  onInput: n[7] ||= (e) => d("right", Number(e.target.value))
321
- }, null, 40, Et),
592
+ }, null, 40, qt),
322
593
  x("button", {
323
594
  "aria-label": f(a).spacingControl.increaseRight,
324
- class: m([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
595
+ class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
325
596
  onClick: n[8] ||= (e) => u("right", 1)
326
597
  }, [p(f(R), {
327
598
  size: 12,
328
599
  "stroke-width": 2
329
- })], 10, Dt)
600
+ })], 10, Jt)
330
601
  ])
331
602
  ]),
332
- x("div", Ot, [
603
+ x("div", Yt, [
333
604
  x("button", {
334
605
  "aria-label": f(a).spacingControl.decreaseBottom,
335
- class: m([Z, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
606
+ class: m([X, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
336
607
  onClick: n[9] ||= (e) => u("bottom", -1)
337
- }, [p(f(z), {
608
+ }, [p(f(B), {
338
609
  size: 12,
339
610
  "stroke-width": 2
340
- })], 10, kt),
611
+ })], 10, Xt),
341
612
  x("input", {
342
613
  type: "number",
343
- class: m(Mt),
614
+ class: m(Z),
344
615
  value: e.modelValue.bottom,
345
616
  "aria-label": f(a).spacingControl.bottom,
346
617
  min: "0",
347
618
  onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
348
- }, null, 40, At),
619
+ }, null, 40, Zt),
349
620
  x("button", {
350
621
  "aria-label": f(a).spacingControl.increaseBottom,
351
- class: m([Z, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
622
+ class: m([X, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
352
623
  onClick: n[11] ||= (e) => u("bottom", 1)
353
624
  }, [p(f(R), {
354
625
  size: 12,
355
626
  "stroke-width": 2
356
- })], 10, jt)
627
+ })], 10, Qt)
357
628
  ])
358
629
  ])]));
359
630
  }
360
- }), [["__scopeId", "data-v-69591c1e"]]), Pt = ["data-testid"], Ft = { class: "tpl:mt-3" }, It = /* @__PURE__ */ l({
631
+ }), [["__scopeId", "data-v-69591c1e"]]), en = ["data-testid"], tn = { class: "tpl:mt-3" }, nn = /* @__PURE__ */ l({
361
632
  __name: "CollapsibleSection",
362
633
  props: {
363
634
  title: {},
@@ -372,25 +643,25 @@ var Re = [
372
643
  "data-testid": e.headerTestId,
373
644
  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
645
  onClick: n[0] ||= (e) => t.$emit("toggle")
375
- }, [p(f(_e), {
646
+ }, [p(f(be), {
376
647
  class: m(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
377
648
  size: 12,
378
649
  "stroke-width": 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));
650
+ }, null, 8, ["class"]), x("span", null, w(e.title), 1)], 8, en), u(x("div", tn, [a(t.$slots, "default")], 512), [[S, e.open]])], 2));
380
651
  }
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 = {
652
+ }), rn = { class: "tpl:space-y-2" }, an = { class: "tpl:flex tpl:items-center tpl:gap-2" }, on = { class: "tpl:space-y-2" }, sn = ["value"], cn = { value: "" }, ln = ["label"], un = ["value"], dn = ["value"], fn = {
382
653
  key: 0,
383
654
  value: "__custom__"
384
- }, Kt = {
655
+ }, pn = {
385
656
  key: 0,
386
657
  class: "tpl:space-y-2"
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 = {
658
+ }, mn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, hn = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, gn = { class: "tpl:flex tpl:justify-end" }, _n = ["disabled"], vn = {
388
659
  key: 0,
389
660
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
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 = {
661
+ }, yn = { class: "tpl:space-y-1" }, bn = { 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)]" }, xn = {
391
662
  key: 0,
392
663
  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
- }, tn = /* @__PURE__ */ l({
664
+ }, Sn = /* @__PURE__ */ l({
394
665
  __name: "CommonBlockSettings",
395
666
  props: {
396
667
  block: {},
@@ -398,23 +669,23 @@ var Re = [
398
669
  },
399
670
  emits: ["update"],
400
671
  setup(e, { emit: a }) {
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 = [{
672
+ let l = e, v = a, { t: S } = L(), T = n(pe, []), D = n(me, !1), O = d(/* @__PURE__ */ new Set()), k = s(!1), A = s(""), j = s(""), ee = [{
402
673
  key: "desktop",
403
- icon: me,
674
+ icon: Te,
404
675
  labelKey: "showOnDesktop"
405
676
  }, {
406
677
  key: "mobile",
407
- icon: he,
678
+ icon: Se,
408
679
  labelKey: "showOnMobile"
409
680
  }];
410
681
  function M(e) {
411
682
  O.has(e) ? O.delete(e) : O.add(e);
412
683
  }
413
684
  let te = h(() => T.length > 0 || D), N = h(() => l.block.displayCondition ? !T.some((e) => e.label === l.block.displayCondition?.label) : !1);
414
- function ne() {
685
+ function P() {
415
686
  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
687
  }
417
- function re() {
688
+ function ne() {
418
689
  A.value.trim() && (v("update", { displayCondition: {
419
690
  label: S.blockSettings.customCondition,
420
691
  before: A.value.trim(),
@@ -428,7 +699,7 @@ var Re = [
428
699
  }
429
700
  N.value && (A.value = e.before, j.value = e.after ?? "");
430
701
  }, { immediate: !0 });
431
- let ie = h(() => {
702
+ let re = h(() => {
432
703
  let e = {};
433
704
  for (let t of T) {
434
705
  let n = t.group ?? "";
@@ -436,33 +707,33 @@ var Re = [
436
707
  }
437
708
  return e;
438
709
  });
439
- function ae(e, t) {
710
+ function ie(e, t) {
440
711
  v("update", { styles: {
441
712
  ...l.block.styles,
442
713
  [e]: t
443
714
  } });
444
715
  }
445
- function P(e) {
716
+ function F(e) {
446
717
  return l.block.visibility?.[e] !== !1;
447
718
  }
448
- function oe(e) {
719
+ function ae(e) {
449
720
  let t = {
450
- desktop: P("desktop"),
451
- mobile: P("mobile")
721
+ desktop: F("desktop"),
722
+ mobile: F("mobile")
452
723
  };
453
724
  t[e] = !t[e], v("update", { visibility: t });
454
725
  }
455
726
  return (t, n) => (o(), g("div", { class: m(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
456
- p(It, {
727
+ p(nn, {
457
728
  title: f(S).blockSettings.spacing,
458
729
  open: O.has("spacing"),
459
730
  "no-border": e.isFirstSection,
460
731
  onToggle: n[1] ||= (e) => M("spacing")
461
732
  }, {
462
- default: i(() => [p(Nt, {
733
+ default: i(() => [p($t, {
463
734
  label: f(S).blockSettings.padding,
464
735
  "model-value": e.block.styles.padding,
465
- "onUpdate:modelValue": n[0] ||= (e) => ae("padding", e)
736
+ "onUpdate:modelValue": n[0] ||= (e) => ie("padding", e)
466
737
  }, null, 8, ["label", "model-value"])]),
467
738
  _: 1
468
739
  }, 8, [
@@ -470,30 +741,31 @@ var Re = [
470
741
  "open",
471
742
  "no-border"
472
743
  ]),
473
- p(It, {
744
+ p(nn, {
474
745
  title: f(S).blockSettings.background,
475
746
  open: O.has("bg"),
476
747
  onToggle: n[3] ||= (e) => M("bg")
477
748
  }, {
478
- default: i(() => [x("label", { class: m(f(U)) }, w(f(S).blockSettings.color), 3), p(q, {
749
+ default: i(() => [x("label", { class: m(f(V)) }, w(f(S).blockSettings.color), 3), p(G, {
479
750
  "model-value": e.block.styles.backgroundColor ?? "",
480
- "onUpdate:modelValue": n[2] ||= (e) => ae("backgroundColor", e)
751
+ "allow-transparent": "",
752
+ "onUpdate:modelValue": n[2] ||= (e) => ie("backgroundColor", e)
481
753
  }, null, 8, ["model-value"])]),
482
754
  _: 1
483
755
  }, 8, ["title", "open"]),
484
- p(It, {
756
+ p(nn, {
485
757
  title: f(S).blockSettings.display,
486
758
  open: O.has("display"),
487
759
  onToggle: n[4] ||= (e) => M("display")
488
760
  }, {
489
- default: i(() => [x("div", Lt, [(o(), g(C, null, r(ee, (e) => p(J, {
761
+ default: i(() => [x("div", rn, [(o(), g(C, null, r(ee, (e) => p(K, {
490
762
  key: e.key,
491
763
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
492
- "model-value": P(e.key),
764
+ "model-value": F(e.key),
493
765
  label: f(S).blockSettings[e.labelKey],
494
- "onUpdate:modelValue": (t) => oe(e.key)
766
+ "onUpdate:modelValue": (t) => ae(e.key)
495
767
  }, {
496
- default: i(() => [x("span", Rt, [(o(), y(c(e.icon), {
768
+ default: i(() => [x("span", an, [(o(), y(c(e.icon), {
497
769
  size: 14,
498
770
  "stroke-width": 1.5
499
771
  })), E(" " + w(f(S).blockSettings[e.labelKey]), 1)])]),
@@ -505,21 +777,21 @@ var Re = [
505
777
  ])), 64))])]),
506
778
  _: 1
507
779
  }, 8, ["title", "open"]),
508
- te.value ? (o(), y(It, {
780
+ te.value ? (o(), y(nn, {
509
781
  key: 0,
510
782
  "header-test-id": "display-condition-section",
511
783
  title: f(S).blockSettings.displayCondition,
512
784
  open: O.has("condition"),
513
785
  onToggle: n[8] ||= (e) => M("condition")
514
786
  }, {
515
- default: i(() => [x("div", zt, [x("select", {
787
+ default: i(() => [x("div", on, [x("select", {
516
788
  "data-testid": "display-condition-select",
517
789
  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
790
  value: k.value || N.value ? "__custom__" : e.block.displayCondition?.label ?? "",
519
791
  onChange: n[5] ||= (e) => {
520
792
  let t = e.target.value;
521
793
  if (t === "__custom__") {
522
- ne();
794
+ P();
523
795
  return;
524
796
  }
525
797
  if (k.value = !1, !t) {
@@ -530,41 +802,41 @@ var Re = [
530
802
  n && v("update", { displayCondition: n });
531
803
  }
532
804
  }, [
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", {
805
+ x("option", cn, w(f(S).blockSettings.noCondition), 1),
806
+ (o(!0), g(C, null, r(re.value, (e, t) => (o(), g(C, { key: t }, [t ? (o(), g("optgroup", {
535
807
  key: 0,
536
808
  label: String(t)
537
809
  }, [(o(!0), g(C, null, r(e, (e) => (o(), g("option", {
538
810
  key: e.label,
539
811
  value: e.label
540
- }, w(e.label), 9, Ut))), 128))], 8, Ht)) : (o(!0), g(C, { key: 1 }, r(e, (e) => (o(), g("option", {
812
+ }, w(e.label), 9, un))), 128))], 8, ln)) : (o(!0), g(C, { key: 1 }, r(e, (e) => (o(), g("option", {
541
813
  key: e.label,
542
814
  value: e.label
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", {
815
+ }, w(e.label), 9, dn))), 128))], 64))), 128)),
816
+ f(D) ? (o(), g("option", fn, w(f(S).blockSettings.customCondition), 1)) : _("", !0)
817
+ ], 42, sn), k.value || N.value ? (o(), g("div", pn, [
818
+ x("div", null, [x("label", mn, w(f(S).blockSettings.customConditionBefore), 1), u(x("textarea", {
547
819
  "onUpdate:modelValue": n[6] ||= (e) => A.value = e,
548
820
  rows: "2",
549
- class: m(f(je))
821
+ class: m(f(ze))
550
822
  }, null, 2), [[b, A.value]])]),
551
- x("div", null, [x("label", Jt, w(f(S).blockSettings.customConditionAfter), 1), u(x("textarea", {
823
+ x("div", null, [x("label", hn, w(f(S).blockSettings.customConditionAfter), 1), u(x("textarea", {
552
824
  "onUpdate:modelValue": n[7] ||= (e) => j.value = e,
553
825
  rows: "2",
554
- class: m(f(je))
826
+ class: m(f(ze))
555
827
  }, null, 2), [[b, j.value]])]),
556
- x("div", Yt, [x("button", {
828
+ x("div", gn, [x("button", {
557
829
  type: "button",
558
- class: m(f(Fe)),
830
+ class: m(f(Ue)),
559
831
  disabled: !A.value.trim(),
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)])]),
832
+ onClick: ne
833
+ }, w(f(S).blockSettings.applyCondition), 11, _n)])
834
+ ])) : e.block.displayCondition && !N.value ? (o(), g(C, { key: 1 }, [e.block.displayCondition.description ? (o(), g("p", vn, w(e.block.displayCondition.description), 1)) : _("", !0), x("div", yn, [x("pre", bn, w(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (o(), g("pre", xn, w(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)])]),
563
835
  _: 1
564
836
  }, 8, ["title", "open"])) : _("", !0)
565
837
  ], 2));
566
838
  }
567
- }), nn = ["title"], rn = /* @__PURE__ */ l({
839
+ }), Cn = ["title"], wn = /* @__PURE__ */ l({
568
840
  __name: "BooleanField",
569
841
  props: {
570
842
  field: {},
@@ -577,7 +849,7 @@ var Re = [
577
849
  return (t, a) => (o(), g("div", {
578
850
  class: "tpl:mb-3.5",
579
851
  title: e.readOnly ? f(r).customBlocks.dataSource.readOnlyTooltip : void 0
580
- }, [p(J, {
852
+ }, [p(K, {
581
853
  class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
582
854
  "model-value": e.modelValue,
583
855
  label: e.field.label,
@@ -585,7 +857,7 @@ var Re = [
585
857
  disabled: e.readOnly,
586
858
  "onUpdate:modelValue": a[0] ||= (e) => n("update:modelValue", e)
587
859
  }, {
588
- default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(Te), {
860
+ default: i(() => [E(w(e.field.label) + " ", 1), e.readOnly ? (o(), y(f(Fe), {
589
861
  key: 0,
590
862
  size: 12,
591
863
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -596,9 +868,9 @@ var Re = [
596
868
  "label",
597
869
  "required",
598
870
  "disabled"
599
- ])], 8, nn));
871
+ ])], 8, Cn));
600
872
  }
601
- }), an = { class: "tpl:mb-3.5" }, on = ["title"], sn = { class: "tpl-sr-only" }, cn = ["title"], ln = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ l({
873
+ }), Tn = { class: "tpl:mb-3.5" }, En = ["title"], Dn = { class: "tpl-sr-only" }, On = ["title"], kn = { class: "tpl-sr-only" }, Q = /* @__PURE__ */ l({
602
874
  __name: "FieldWrapper",
603
875
  props: {
604
876
  label: {},
@@ -607,24 +879,24 @@ var Re = [
607
879
  },
608
880
  setup(e) {
609
881
  let { t } = L();
610
- return (n, r) => (o(), g("div", an, [x("label", { class: m(f(U)) }, [
882
+ return (n, r) => (o(), g("div", Tn, [x("label", { class: m(f(V)) }, [
611
883
  E(w(e.label) + " ", 1),
612
884
  e.readOnly ? (o(), g("span", {
613
885
  key: 0,
614
886
  title: f(t).customBlocks.dataSource.readOnlyTooltip
615
- }, [p(f(Te), {
887
+ }, [p(f(Fe), {
616
888
  size: 12,
617
889
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
618
890
  "aria-hidden": "true"
619
- }), x("span", sn, w(f(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, on)) : _("", !0),
891
+ }), x("span", Dn, w(f(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, En)) : _("", !0),
620
892
  e.required ? (o(), g("span", {
621
893
  key: 1,
622
894
  class: "tpl:text-[var(--tpl-danger)]",
623
895
  title: f(t).customBlocks.fields.required
624
- }, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span", ln, w(f(t).customBlocks.fields.required), 1)], 8, cn)) : _("", !0)
896
+ }, [r[0] ||= x("span", { "aria-hidden": "true" }, "*", -1), x("span", kn, w(f(t).customBlocks.fields.required), 1)], 8, On)) : _("", !0)
625
897
  ], 2), a(n.$slots, "default")]));
626
898
  }
627
- }), un = /* @__PURE__ */ l({
899
+ }), An = /* @__PURE__ */ l({
628
900
  __name: "ColorField",
629
901
  props: {
630
902
  field: {},
@@ -633,13 +905,13 @@ var Re = [
633
905
  },
634
906
  emits: ["update:modelValue"],
635
907
  setup(e, { emit: t }) {
636
- let r = e, a = t, { t: s } = L(), c = n(ue, pe), l = h(() => M(r.field, c));
908
+ let r = e, a = t, { t: s } = L(), c = n(fe, _e), l = h(() => ne(r.field, c));
637
909
  return (t, n) => (o(), y(Q, {
638
910
  label: e.field.label,
639
911
  required: e.field.required,
640
912
  "read-only": e.readOnly
641
913
  }, {
642
- default: i(() => [p(q, {
914
+ default: i(() => [p(G, {
643
915
  "model-value": e.modelValue,
644
916
  placeholder: e.field.placeholder,
645
917
  disabled: e.readOnly,
@@ -662,15 +934,15 @@ var Re = [
662
934
  "read-only"
663
935
  ]));
664
936
  }
665
- }), dn = {
937
+ }), jn = {
666
938
  key: 0,
667
939
  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
940
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
669
- }, fn = [
941
+ }, Mn = [
670
942
  "value",
671
943
  "placeholder",
672
944
  "title"
673
- ], pn = ["value", "placeholder"], mn = /* @__PURE__ */ l({
945
+ ], Nn = ["value", "placeholder"], Pn = /* @__PURE__ */ l({
674
946
  __name: "ImageField",
675
947
  props: {
676
948
  field: {},
@@ -679,7 +951,7 @@ var Re = [
679
951
  },
680
952
  emits: ["update:modelValue"],
681
953
  setup(e, { emit: t }) {
682
- let r = e, a = t, { t: c } = L(), l = n(se, null), u = n(le, null), d = Ae(), v = h(() => !!l);
954
+ let r = e, a = t, { t: c } = L(), l = n(le, null), u = n(de, null), d = Re(), v = h(() => !!l);
683
955
  async function b() {
684
956
  let e = await l?.({ accept: ["images"] });
685
957
  d.alive && e && a("update:modelValue", e.url);
@@ -700,7 +972,7 @@ var Re = [
700
972
  }
701
973
  }
702
974
  }
703
- let { isOver: k } = N({
975
+ let { isOver: k } = ie({
704
976
  target: S,
705
977
  enabled: D,
706
978
  onFiles: O
@@ -715,35 +987,35 @@ var Re = [
715
987
  ref: S,
716
988
  class: "tpl:relative"
717
989
  }, [
718
- D.value && (f(k) || T.value) ? (o(), g("div", dn, [T.value ? (o(), g(C, { key: 0 }, [p(f(Ce), {
990
+ D.value && (f(k) || T.value) ? (o(), g("div", jn, [T.value ? (o(), g(C, { key: 0 }, [p(f(Ce), {
719
991
  class: "tpl-spinner",
720
992
  size: 18,
721
993
  "stroke-width": 2
722
- }), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(De), {
994
+ }), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(Ie), {
723
995
  size: 18,
724
996
  "stroke-width": 1.5
725
997
  }), E(" " + w(f(c).image.dropToUpload), 1)], 64))])) : _("", !0),
726
998
  e.readOnly ? (o(), g("input", {
727
999
  key: 1,
728
1000
  type: "url",
729
- class: m([f(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1001
+ class: m([f(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
730
1002
  value: e.modelValue,
731
1003
  placeholder: e.field.placeholder || "https://...",
732
1004
  disabled: "",
733
1005
  title: f(c).customBlocks.dataSource.readOnlyTooltip
734
- }, null, 10, fn)) : (o(), g("input", {
1006
+ }, null, 10, Mn)) : (o(), g("input", {
735
1007
  key: 2,
736
1008
  type: "url",
737
- class: m(f(K)),
1009
+ class: m(f(W)),
738
1010
  value: e.modelValue,
739
1011
  placeholder: e.field.placeholder || "https://...",
740
1012
  onInput: n[0] ||= (e) => a("update:modelValue", e.target.value)
741
- }, null, 42, pn)),
1013
+ }, null, 42, Nn)),
742
1014
  v.value && !e.readOnly ? (o(), g("button", {
743
1015
  key: 3,
744
1016
  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
1017
  onClick: n[1] ||= (e) => b()
746
- }, [p(f(Se), {
1018
+ }, [p(f(Pe), {
747
1019
  size: 14,
748
1020
  "stroke-width": 1.5
749
1021
  }), E(" " + w(f(c).image.browseMedia), 1)])) : _("", !0)
@@ -755,7 +1027,7 @@ var Re = [
755
1027
  "read-only"
756
1028
  ]));
757
1029
  }
758
- }), hn = [
1030
+ }), Fn = [
759
1031
  "value",
760
1032
  "placeholder",
761
1033
  "min",
@@ -763,7 +1035,7 @@ var Re = [
763
1035
  "step",
764
1036
  "disabled",
765
1037
  "title"
766
- ], gn = /* @__PURE__ */ l({
1038
+ ], In = /* @__PURE__ */ l({
767
1039
  __name: "NumberField",
768
1040
  props: {
769
1041
  field: {},
@@ -780,7 +1052,7 @@ var Re = [
780
1052
  }, {
781
1053
  default: i(() => [x("input", {
782
1054
  type: "number",
783
- class: m([f(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1055
+ class: m([f(W), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
784
1056
  value: e.modelValue,
785
1057
  placeholder: e.field.placeholder,
786
1058
  min: e.field.min,
@@ -789,7 +1061,7 @@ var Re = [
789
1061
  disabled: e.readOnly,
790
1062
  title: e.readOnly ? f(r).customBlocks.dataSource.readOnlyTooltip : void 0,
791
1063
  onInput: a[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
792
- }, null, 42, hn)]),
1064
+ }, null, 42, Fn)]),
793
1065
  _: 1
794
1066
  }, 8, [
795
1067
  "label",
@@ -797,13 +1069,13 @@ var Re = [
797
1069
  "read-only"
798
1070
  ]));
799
1071
  }
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 = {
1072
+ }), Ln = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Rn = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, zn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Bn = ["title", "onClick"], Vn = {
801
1073
  key: 1,
802
1074
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
803
- }, Sn = {
1075
+ }, Hn = {
804
1076
  key: 2,
805
1077
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
806
- }, Cn = /* @__PURE__ */ l({
1078
+ }, Un = /* @__PURE__ */ l({
807
1079
  __name: "RepeatableField",
808
1080
  props: {
809
1081
  field: {},
@@ -836,20 +1108,20 @@ var Re = [
836
1108
  required: e.field.required,
837
1109
  "read-only": e.readOnly
838
1110
  }, {
839
- default: i(() => [x("div", _n, [
1111
+ default: i(() => [x("div", Ln, [
840
1112
  (o(!0), g(C, null, r(u.value, (t, n) => (o(), g("div", {
841
1113
  key: `${e.field.key}-${n}`,
842
1114
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
843
- }, [x("div", vn, [x("span", yn, " #" + w(n + 1), 1), v.value && !e.readOnly ? (o(), g("button", {
1115
+ }, [x("div", Rn, [x("span", zn, " #" + w(n + 1), 1), v.value && !e.readOnly ? (o(), g("button", {
844
1116
  key: 0,
845
1117
  type: "button",
846
1118
  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
1119
  title: f(s).customBlocks.fields.removeItem,
848
1120
  onClick: (e) => S(n)
849
- }, [p(f(be), {
1121
+ }, [p(f(Ee), {
850
1122
  size: 12,
851
1123
  "stroke-width": 2
852
- })], 8, bn)) : _("", !0)]), (o(!0), g(C, null, r(e.field.fields, (r) => (o(), y(c(f(Mn)(r.type)), {
1124
+ })], 8, Bn)) : _("", !0)]), (o(!0), g(C, null, r(e.field.fields, (r) => (o(), y(c(f(Qn)(r.type)), {
853
1125
  key: r.key,
854
1126
  field: r,
855
1127
  "model-value": t[r.key],
@@ -864,14 +1136,14 @@ var Re = [
864
1136
  d.value && !e.readOnly ? (o(), g("button", {
865
1137
  key: 0,
866
1138
  type: "button",
867
- class: m(f(Ne)),
1139
+ class: m(f(Ve)),
868
1140
  onClick: b
869
1141
  }, [p(f(R), {
870
1142
  size: 14,
871
1143
  "stroke-width": 2
872
1144
  }), E(" " + w(f(s).customBlocks.fields.addItem), 1)], 2)) : _("", !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)
1145
+ !d.value && !e.readOnly ? (o(), g("p", Vn, w(f(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
1146
+ !v.value && !e.readOnly ? (o(), g("p", Hn, w(f(l)(f(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
875
1147
  ])]),
876
1148
  _: 1
877
1149
  }, 8, [
@@ -880,11 +1152,11 @@ var Re = [
880
1152
  "read-only"
881
1153
  ]));
882
1154
  }
883
- }), wn = [
1155
+ }), Wn = [
884
1156
  "value",
885
1157
  "disabled",
886
1158
  "title"
887
- ], Tn = ["value"], En = /* @__PURE__ */ l({
1159
+ ], Gn = ["value"], Kn = /* @__PURE__ */ l({
888
1160
  __name: "SelectField",
889
1161
  props: {
890
1162
  field: {},
@@ -900,7 +1172,7 @@ var Re = [
900
1172
  "read-only": e.readOnly
901
1173
  }, {
902
1174
  default: i(() => [x("select", {
903
- class: m([f(K), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
1175
+ class: m([f(W), e.readOnly && "tpl:opacity-60 tpl:cursor-not-allowed"]),
904
1176
  value: e.modelValue,
905
1177
  disabled: e.readOnly,
906
1178
  title: e.readOnly ? f(a).customBlocks.dataSource.readOnlyTooltip : void 0,
@@ -908,7 +1180,7 @@ var Re = [
908
1180
  }, [(o(!0), g(C, null, r(e.field.options, (e) => (o(), g("option", {
909
1181
  key: e.value,
910
1182
  value: e.value
911
- }, w(e.label), 9, Tn))), 128))], 42, wn)]),
1183
+ }, w(e.label), 9, Gn))), 128))], 42, Wn)]),
912
1184
  _: 1
913
1185
  }, 8, [
914
1186
  "label",
@@ -916,11 +1188,11 @@ var Re = [
916
1188
  "read-only"
917
1189
  ]));
918
1190
  }
919
- }), Dn = [
1191
+ }), qn = [
920
1192
  "value",
921
1193
  "placeholder",
922
1194
  "title"
923
- ], On = /* @__PURE__ */ l({
1195
+ ], Jn = /* @__PURE__ */ l({
924
1196
  __name: "TextField",
925
1197
  props: {
926
1198
  field: {},
@@ -938,12 +1210,12 @@ var Re = [
938
1210
  default: i(() => [e.readOnly ? (o(), g("input", {
939
1211
  key: 0,
940
1212
  type: "text",
941
- class: m([f(K), "tpl:opacity-60 tpl:cursor-not-allowed"]),
1213
+ class: m([f(W), "tpl:opacity-60 tpl:cursor-not-allowed"]),
942
1214
  value: e.modelValue,
943
1215
  placeholder: e.field.placeholder,
944
1216
  disabled: "",
945
1217
  title: f(r).customBlocks.dataSource.readOnlyTooltip
946
- }, null, 10, Dn)) : (o(), y(Y, {
1218
+ }, null, 10, qn)) : (o(), y(q, {
947
1219
  key: 1,
948
1220
  "model-value": e.modelValue,
949
1221
  placeholder: e.field.placeholder,
@@ -956,12 +1228,12 @@ var Re = [
956
1228
  "read-only"
957
1229
  ]));
958
1230
  }
959
- }), kn = [
1231
+ }), Yn = [
960
1232
  "value",
961
1233
  "placeholder",
962
1234
  "title"
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,
1235
+ ], Xn = "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", Zn = {
1236
+ text: Jn,
965
1237
  textarea: /* @__PURE__ */ l({
966
1238
  __name: "TextareaField",
967
1239
  props: {
@@ -984,8 +1256,8 @@ var Re = [
984
1256
  rows: "3",
985
1257
  disabled: "",
986
1258
  title: f(r).customBlocks.dataSource.readOnlyTooltip,
987
- class: m(An)
988
- }, null, 8, kn)) : (o(), y(Le, {
1259
+ class: m(Xn)
1260
+ }, null, 8, Yn)) : (o(), y(Ge, {
989
1261
  key: 1,
990
1262
  "model-value": e.modelValue,
991
1263
  placeholder: e.field.placeholder,
@@ -999,42 +1271,42 @@ var Re = [
999
1271
  ]));
1000
1272
  }
1001
1273
  }),
1002
- image: mn,
1003
- color: un,
1004
- number: gn,
1005
- select: En,
1006
- boolean: rn,
1007
- repeatable: Cn
1274
+ image: Pn,
1275
+ color: An,
1276
+ number: In,
1277
+ select: Kn,
1278
+ boolean: wn,
1279
+ repeatable: Un
1008
1280
  };
1009
- function Mn(e) {
1010
- return jn[e] ?? On;
1281
+ function Qn(e) {
1282
+ return Zn[e] ?? Jn;
1011
1283
  }
1012
1284
  //#endregion
1013
1285
  //#region src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1014
- var Nn = {
1286
+ var $n = {
1015
1287
  key: 0,
1016
1288
  class: "tpl:p-4"
1017
- }, Pn = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Fn = { key: 1 }, In = {
1289
+ }, er = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, tr = { key: 1 }, nr = {
1018
1290
  key: 0,
1019
1291
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1020
- }, Ln = {
1292
+ }, rr = {
1021
1293
  key: 1,
1022
1294
  class: "tpl:mb-4"
1023
- }, Rn = {
1295
+ }, ir = {
1024
1296
  key: 1,
1025
1297
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
1026
- }, zn = {
1298
+ }, ar = {
1027
1299
  key: 0,
1028
1300
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1029
- }, Bn = {
1301
+ }, or = {
1030
1302
  key: 2,
1031
1303
  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
- }, Vn = /* @__PURE__ */ l({
1304
+ }, sr = /* @__PURE__ */ l({
1033
1305
  __name: "CustomBlockToolbar",
1034
1306
  props: { block: {} },
1035
1307
  emits: ["updateFieldValues", "updateDataSourceFetched"],
1036
1308
  setup(e, { emit: t }) {
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({
1309
+ let i = e, a = t, { t: s } = L(), l = n(he, []), u = h(() => l.find((e) => e.type === i.block.customType)), d = h(() => i.block), { isFetching: m, fetchError: v, fetch: b, hasDataSource: S, needsFetch: T } = re({
1038
1310
  definition: u,
1039
1311
  block: d,
1040
1312
  onUpdate: (e, t) => {
@@ -1050,23 +1322,23 @@ var Nn = {
1050
1322
  [e]: t
1051
1323
  });
1052
1324
  }
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", {
1325
+ return (t, n) => u.value ? (o(), g("div", tr, [
1326
+ u.value.description ? (o(), g("p", nr, w(u.value.description), 1)) : _("", !0),
1327
+ f(S) ? (o(), g("div", rr, [f(T) && !f(m) ? (o(), g("button", {
1056
1328
  key: 0,
1057
1329
  type: "button",
1058
1330
  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
1331
  onClick: n[0] ||= (...e) => f(b) && f(b)(...e)
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", {
1332
+ }, w(u.value?.dataSource?.label || f(s).customBlocks.dataSource.fetchButton), 1)) : (o(), g("div", ir, [f(m) ? (o(), g("div", ar, w(f(s).customBlocks.dataSource.fetching), 1)) : (o(), g("button", {
1061
1333
  key: 1,
1062
1334
  type: "button",
1063
1335
  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
1336
  onClick: n[1] ||= (...e) => f(b) && f(b)(...e)
1065
- }, [p(f(Oe), { size: 12 }), E(" " + w(f(s).customBlocks.dataSource.changeButton), 1)]))])), f(v) ? (o(), g("p", Bn, [p(f(ve), {
1337
+ }, [p(f(ve), { size: 12 }), E(" " + w(f(s).customBlocks.dataSource.changeButton), 1)]))])), f(v) ? (o(), g("p", or, [p(f(xe), {
1066
1338
  size: 14,
1067
1339
  class: "tpl:shrink-0"
1068
1340
  }), 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(Mn)(t.type)), {
1341
+ (o(!0), g(C, null, r(u.value.fields, (t) => (o(), y(c(f(Qn)(t.type)), {
1070
1342
  key: t.key,
1071
1343
  field: t,
1072
1344
  "model-value": e.block.fieldValues[t.key],
@@ -1078,9 +1350,9 @@ var Nn = {
1078
1350
  "read-only",
1079
1351
  "onUpdate:modelValue"
1080
1352
  ]))), 128))
1081
- ])) : (o(), g("div", Nn, [x("p", Pn, w(f(s).customBlocks.toolbar.noDefinition), 1)]));
1353
+ ])) : (o(), g("div", $n, [x("p", er, w(f(s).customBlocks.toolbar.noDefinition), 1)]));
1082
1354
  }
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({
1355
+ }), cr = { class: "tpl:mb-3.5" }, lr = { class: "tpl:mb-3.5" }, ur = { class: "tpl:mb-3.5" }, dr = { class: "tpl:flex tpl:items-stretch" }, fr = ["value"], pr = /* @__PURE__ */ l({
1084
1356
  __name: "DividerToolbar",
1085
1357
  props: { block: {} },
1086
1358
  emits: ["update"],
@@ -1090,7 +1362,7 @@ var Nn = {
1090
1362
  n("update", { [e]: t });
1091
1363
  }
1092
1364
  return (t, n) => (o(), g(C, null, [
1093
- x("div", Hn, [x("label", { class: m(f(U)) }, w(f(r).divider.style), 3), p(X, {
1365
+ x("div", cr, [x("label", { class: m(f(V)) }, w(f(r).divider.style), 3), p(J, {
1094
1366
  options: [
1095
1367
  {
1096
1368
  value: "solid",
@@ -1108,95 +1380,64 @@ var Nn = {
1108
1380
  "model-value": e.block.lineStyle,
1109
1381
  "onUpdate:modelValue": n[0] ||= (e) => i("lineStyle", e)
1110
1382
  }, null, 8, ["options", "model-value"])]),
1111
- x("div", Un, [x("label", { class: m(f(U)) }, w(f(r).divider.color), 3), p(q, {
1383
+ x("div", lr, [x("label", { class: m(f(V)) }, w(f(r).divider.color), 3), p(G, {
1112
1384
  "model-value": e.block.color,
1113
1385
  "onUpdate:modelValue": n[1] ||= (e) => i("color", e)
1114
1386
  }, null, 8, ["model-value"])]),
1115
- x("div", Wn, [x("label", { class: m(f(U)) }, w(f(r).divider.thickness), 3), x("div", Gn, [x("input", {
1387
+ x("div", ur, [x("label", { class: m(f(V)) }, w(f(r).divider.thickness), 3), x("div", dr, [x("input", {
1116
1388
  type: "number",
1117
- class: m(f(G)),
1389
+ class: m(f(U)),
1118
1390
  value: e.block.thickness,
1119
1391
  min: "1",
1120
1392
  max: "10",
1121
1393
  onInput: n[2] ||= (e) => i("thickness", Number(e.target.value))
1122
- }, null, 42, Kn), x("span", { class: m(f(W)) }, "px", 2)])])
1394
+ }, null, 42, fr), x("span", { class: m(f(H)) }, "px", 2)])])
1123
1395
  ], 64));
1124
1396
  }
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({
1397
+ }), mr = { class: "tpl:mb-3.5" }, hr = ["value"], gr = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, _r = /* @__PURE__ */ l({
1126
1398
  __name: "HtmlToolbar",
1127
1399
  props: { block: {} },
1128
1400
  emits: ["update"],
1129
1401
  setup(e, { emit: t }) {
1130
1402
  let n = t, { t: r } = L();
1131
- return (t, i) => (o(), g("div", Jn, [
1132
- x("label", { class: m(f(U)) }, w(f(r).html.content), 3),
1403
+ return (t, i) => (o(), g("div", mr, [
1404
+ x("label", { class: m(f(V)) }, w(f(r).html.content), 3),
1133
1405
  x("textarea", {
1134
1406
  value: e.block.content,
1135
1407
  placeholder: "<div>...</div>",
1136
1408
  rows: "10",
1137
- class: m(f(je)),
1409
+ class: m(f(ze)),
1138
1410
  onInput: i[0] ||= (e) => n("update", { content: e.target.value })
1139
- }, null, 42, Yn),
1140
- x("p", Xn, [p(f(xe), {
1411
+ }, null, 42, hr),
1412
+ x("p", gr, [p(f(De), {
1141
1413
  size: 12,
1142
1414
  class: "tpl:mt-0.5 tpl:shrink-0"
1143
1415
  }), E(" " + w(f(r).html.sanitizationHint), 1)])
1144
1416
  ]));
1145
1417
  }
1146
- }), Qn = { class: "tpl:flex tpl:items-stretch" }, $n = [
1147
- "data-testid",
1148
- "value",
1149
- "min",
1150
- "max"
1151
- ], er = /* @__PURE__ */ l({
1152
- __name: "NumberWithSuffix",
1153
- props: {
1154
- modelValue: {},
1155
- min: {},
1156
- max: {},
1157
- suffix: {},
1158
- testid: {}
1159
- },
1160
- emits: ["update:modelValue"],
1161
- setup(e, { emit: t }) {
1162
- let n = t;
1163
- function r(e) {
1164
- let t = e.target;
1165
- t.validity?.badInput || n("update:modelValue", Number(t.value));
1166
- }
1167
- return (t, n) => (o(), g("div", Qn, [x("input", {
1168
- type: "number",
1169
- "data-testid": e.testid,
1170
- class: m(f(G)),
1171
- value: e.modelValue,
1172
- min: e.min,
1173
- max: e.max,
1174
- onInput: r
1175
- }, null, 42, $n), x("span", { class: m(f(W)) }, w(e.suffix), 3)]));
1176
- }
1177
- }), tr = { class: "tpl:mb-3.5" }, nr = {
1418
+ }), vr = { class: "tpl:mb-3.5" }, yr = {
1178
1419
  key: 0,
1179
1420
  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
1421
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 90%, transparent)" }
1181
- }, rr = {
1422
+ }, br = {
1182
1423
  key: 0,
1183
1424
  class: "tpl:mb-3.5"
1184
- }, ir = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ar = [
1425
+ }, xr = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Sr = [
1185
1426
  "value",
1186
1427
  "placeholder",
1187
1428
  "title"
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 = {
1429
+ ], Cr = { class: "tpl:mb-3.5" }, wr = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, Tr = { class: "tpl:mb-3.5" }, Er = ["value"], Dr = { value: "full" }, Or = { value: "custom" }, kr = {
1189
1430
  key: 0,
1190
1431
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
1191
- }, pr = ["value"], mr = { class: "tpl:mb-3.5" }, hr = ["value"], gr = { value: "auto" }, _r = { value: "custom" }, vr = {
1432
+ }, Ar = ["value"], jr = { class: "tpl:mb-3.5" }, Mr = ["value"], Nr = { value: "auto" }, Pr = { value: "custom" }, Fr = {
1192
1433
  key: 0,
1193
1434
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
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({
1435
+ }, Ir = ["value"], Lr = { class: "tpl:mb-3.5" }, Rr = { class: "tpl:mb-3.5" }, zr = 350, Br = 200, Vr = /* @__PURE__ */ l({
1195
1436
  __name: "ImageToolbar",
1196
1437
  props: { block: {} },
1197
1438
  emits: ["update"],
1198
1439
  setup(e, { emit: t }) {
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(() => {
1440
+ let r = e, a = t, { t: c } = L(), l = n(le, null), u = n(de, null), d = n(ue, te.liquid), v = Re(), b = h(() => !!l), S = s(!1), T = s(!1), { start: D } = oe(() => {
1200
1441
  S.value = !1;
1201
1442
  }, 1e3, { immediate: !1 }), O = [
1202
1443
  300,
@@ -1205,77 +1446,77 @@ var Nn = {
1205
1446
  ], k = h(() => {
1206
1447
  let e = r.block.width;
1207
1448
  return e === "full" ? "full" : O.includes(e) ? String(e) : "custom";
1208
- }), j = h(() => typeof r.block.height == "number" ? "custom" : "auto");
1209
- function M(e, t) {
1449
+ }), A = h(() => typeof r.block.height == "number" ? "custom" : "auto");
1450
+ function j(e, t) {
1210
1451
  a("update", { [e]: t });
1211
1452
  }
1212
- function te(e) {
1453
+ function M(e) {
1213
1454
  if (e === "custom") {
1214
1455
  let e = r.block.width;
1215
- (typeof e != "number" || O.includes(e)) && M("width", Cr);
1456
+ (typeof e != "number" || O.includes(e)) && j("width", zr);
1216
1457
  return;
1217
1458
  }
1218
- M("width", e === "full" ? "full" : Number(e));
1459
+ j("width", e === "full" ? "full" : Number(e));
1219
1460
  }
1220
- function ne(e) {
1221
- M("height", e === "custom" ? wr : void 0);
1461
+ function P(e) {
1462
+ j("height", e === "custom" ? Br : void 0);
1222
1463
  }
1223
- function re(e) {
1464
+ function ne(e) {
1224
1465
  let t = Number(e);
1225
- !Number.isFinite(t) || t <= 0 || M("height", t);
1466
+ !Number.isFinite(t) || t <= 0 || j("height", t);
1226
1467
  }
1227
- function ae(e) {
1228
- !Number.isFinite(e) || e < 0 || M("borderRadius", e > 0 ? e : void 0);
1468
+ function re(e) {
1469
+ j("borderRadius", N(e) === null ? void 0 : e);
1229
1470
  }
1230
- function P(e) {
1471
+ function F(e) {
1231
1472
  let t = Number(e);
1232
- !Number.isFinite(t) || t <= 0 || M("width", t);
1473
+ !Number.isFinite(t) || t <= 0 || j("width", t);
1233
1474
  }
1234
- async function oe() {
1475
+ async function ae() {
1235
1476
  let e = await l?.({ accept: ["images"] });
1236
- v.alive && e && (M("src", e.url), e.alt && (M("alt", e.alt), T.value = !0), S.value = !0, D());
1477
+ v.alive && e && (j("src", e.url), e.alt && (j("alt", e.alt), T.value = !0), S.value = !0, D());
1237
1478
  }
1238
- let ue = s(), F = s(!1), de = h(() => A(r.block.src, d)), I = h(() => (u?.value ?? !!l) && !F.value && !de.value);
1239
- async function fe(e) {
1479
+ let se = s(), I = s(!1), ce = h(() => ee(r.block.src, d)), fe = h(() => (u?.value ?? !!l) && !I.value && !ce.value);
1480
+ async function pe(e) {
1240
1481
  if (l) {
1241
- F.value = !0;
1482
+ I.value = !0;
1242
1483
  try {
1243
1484
  let t = await l({
1244
1485
  accept: ["images"],
1245
1486
  files: e
1246
1487
  });
1247
1488
  if (!v.alive) return;
1248
- t && (M("src", t.url), t.alt && (M("alt", t.alt), T.value = !0), S.value = !0, D());
1489
+ t && (j("src", t.url), t.alt && (j("alt", t.alt), T.value = !0), S.value = !0, D());
1249
1490
  } finally {
1250
- v.alive && (F.value = !1);
1491
+ v.alive && (I.value = !1);
1251
1492
  }
1252
1493
  }
1253
1494
  }
1254
- let { isOver: pe } = N({
1255
- target: ue,
1256
- enabled: I,
1257
- onFiles: fe
1495
+ let { isOver: me } = ie({
1496
+ target: se,
1497
+ enabled: fe,
1498
+ onFiles: pe
1258
1499
  });
1259
1500
  return (t, n) => (o(), g(C, null, [
1260
- x("div", tr, [x("label", { class: m(f(U)) }, w(f(c).image.imageUrl), 3), x("div", {
1501
+ x("div", vr, [x("label", { class: m(f(V)) }, w(f(c).image.imageUrl), 3), x("div", {
1261
1502
  ref_key: "dropZoneRef",
1262
- ref: ue,
1503
+ ref: se,
1263
1504
  class: "tpl:relative"
1264
1505
  }, [
1265
- I.value && (f(pe) || F.value) ? (o(), g("div", nr, [F.value ? (o(), g(C, { key: 0 }, [p(f(Ce), {
1506
+ fe.value && (f(me) || I.value) ? (o(), g("div", yr, [I.value ? (o(), g(C, { key: 0 }, [p(f(Ce), {
1266
1507
  class: "tpl-spinner",
1267
1508
  size: 18,
1268
1509
  "stroke-width": 2
1269
- }), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(De), {
1510
+ }), E(" " + w(f(c).image.uploading), 1)], 64)) : (o(), g(C, { key: 1 }, [p(f(Ie), {
1270
1511
  size: 18,
1271
1512
  "stroke-width": 1.5
1272
1513
  }), E(" " + w(f(c).image.dropToUpload), 1)], 64))])) : _("", !0),
1273
- p(Y, {
1514
+ p(q, {
1274
1515
  "model-value": e.block.src,
1275
1516
  type: "url",
1276
1517
  placeholder: f(c).image.imageUrlPlaceholder,
1277
1518
  pulse: S.value,
1278
- "onUpdate:modelValue": n[0] ||= (e) => M("src", e)
1519
+ "onUpdate:modelValue": n[0] ||= (e) => j("src", e)
1279
1520
  }, null, 8, [
1280
1521
  "model-value",
1281
1522
  "placeholder",
@@ -1289,91 +1530,95 @@ var Nn = {
1289
1530
  color: "var(--tpl-primary)",
1290
1531
  "background-color": "var(--tpl-bg)"
1291
1532
  },
1292
- onClick: oe
1293
- }, [p(f(Se), {
1533
+ onClick: ae
1534
+ }, [p(f(Pe), {
1294
1535
  size: 14,
1295
1536
  "stroke-width": 1.5
1296
1537
  }), E(" " + w(f(c).image.browseMedia), 1)])) : _("", !0)
1297
1538
  ], 512)]),
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", {
1539
+ f(ee)(e.block.src, f(d)) ? (o(), g("div", br, [x("label", { class: m(f(V)) }, [E(w(f(c).image.placeholderUrl) + " ", 1), x("span", xr, w(f(c).image.optional), 1)], 2), x("input", {
1299
1540
  type: "url",
1300
- class: m(f(K)),
1541
+ class: m(f(W)),
1301
1542
  value: e.block.placeholderUrl || "",
1302
1543
  placeholder: f(c).image.placeholderUrlPlaceholder,
1303
1544
  title: f(c).image.placeholderUrlTooltip,
1304
- onInput: n[1] ||= (e) => M("placeholderUrl", e.target.value)
1305
- }, null, 42, ar)])) : _("", !0),
1306
- x("div", or, [
1307
- x("label", { class: m(f(U)) }, w(f(c).image.altText), 3),
1308
- p(Y, {
1545
+ onInput: n[1] ||= (e) => j("placeholderUrl", e.target.value)
1546
+ }, null, 42, Sr)])) : _("", !0),
1547
+ x("div", Cr, [
1548
+ x("label", { class: m(f(V)) }, w(f(c).image.altText), 3),
1549
+ p(q, {
1309
1550
  "model-value": e.block.alt,
1310
1551
  type: "text",
1311
1552
  placeholder: f(c).image.altTextPlaceholder,
1312
1553
  pulse: T.value,
1313
1554
  disabled: e.block.decorative === !0,
1314
- "onUpdate:modelValue": n[2] ||= (e) => M("alt", e)
1555
+ "onUpdate:modelValue": n[2] ||= (e) => j("alt", e)
1315
1556
  }, null, 8, [
1316
1557
  "model-value",
1317
1558
  "placeholder",
1318
1559
  "pulse",
1319
1560
  "disabled"
1320
1561
  ]),
1321
- p(J, {
1562
+ p(K, {
1322
1563
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1323
1564
  "model-value": e.block.decorative === !0,
1324
1565
  label: f(c).image.decorative,
1325
- "onUpdate:modelValue": n[3] ||= (e) => M("decorative", e)
1566
+ "onUpdate:modelValue": n[3] ||= (e) => j("decorative", e)
1326
1567
  }, {
1327
- default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span", sr, w(f(c).image.decorativeHint), 1)])]),
1568
+ default: i(() => [x("span", null, [E(w(f(c).image.decorative) + " ", 1), x("span", wr, w(f(c).image.decorativeHint), 1)])]),
1328
1569
  _: 1
1329
1570
  }, 8, ["model-value", "label"])
1330
1571
  ]),
1331
- x("div", cr, [
1332
- x("label", { class: m(f(U)) }, w(f(c).image.width), 3),
1572
+ x("div", Tr, [
1573
+ x("label", { class: m(f(V)) }, w(f(c).image.width), 3),
1333
1574
  x("select", {
1334
- class: m(f(K)),
1575
+ class: m(f(W)),
1335
1576
  value: k.value,
1336
- onChange: n[4] ||= (e) => te(e.target.value)
1577
+ onChange: n[4] ||= (e) => M(e.target.value)
1337
1578
  }, [
1338
- x("option", ur, w(f(c).image.fullWidth), 1),
1339
- n[11] ||= x("option", { value: "300" }, "300px", -1),
1340
- n[12] ||= x("option", { value: "400" }, "400px", -1),
1341
- n[13] ||= x("option", { value: "500" }, "500px", -1),
1342
- x("option", dr, w(f(c).image.widthCustom), 1)
1343
- ], 42, lr),
1344
- k.value === "custom" ? (o(), g("div", fr, [x("input", {
1579
+ x("option", Dr, w(f(c).image.fullWidth), 1),
1580
+ n[12] ||= x("option", { value: "300" }, "300px", -1),
1581
+ n[13] ||= x("option", { value: "400" }, "400px", -1),
1582
+ n[14] ||= x("option", { value: "500" }, "500px", -1),
1583
+ x("option", Or, w(f(c).image.widthCustom), 1)
1584
+ ], 42, Er),
1585
+ k.value === "custom" ? (o(), g("div", kr, [x("input", {
1345
1586
  type: "number",
1346
- class: m(f(G)),
1347
- value: typeof e.block.width == "number" ? e.block.width : Cr,
1587
+ class: m(f(U)),
1588
+ value: typeof e.block.width == "number" ? e.block.width : zr,
1348
1589
  min: "20",
1349
- onInput: n[5] ||= (e) => P(e.target.value)
1350
- }, null, 42, pr), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
1590
+ onInput: n[5] ||= (e) => F(e.target.value)
1591
+ }, null, 42, Ar), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
1351
1592
  ]),
1352
- x("div", mr, [
1353
- x("label", { class: m(f(U)) }, w(f(c).image.height), 3),
1593
+ x("div", jr, [
1594
+ x("label", { class: m(f(V)) }, w(f(c).image.height), 3),
1354
1595
  x("select", {
1355
- class: m(f(K)),
1596
+ class: m(f(W)),
1356
1597
  "data-testid": "image-height-mode",
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", {
1598
+ value: A.value,
1599
+ onChange: n[6] ||= (e) => P(e.target.value)
1600
+ }, [x("option", Nr, w(f(c).image.heightAuto), 1), x("option", Pr, w(f(c).image.heightCustom), 1)], 42, Mr),
1601
+ A.value === "custom" ? (o(), g("div", Fr, [x("input", {
1361
1602
  type: "number",
1362
1603
  "data-testid": "image-height-input",
1363
- class: m(f(G)),
1604
+ class: m(f(U)),
1364
1605
  value: e.block.height,
1365
1606
  min: "20",
1366
- onInput: n[7] ||= (e) => re(e.target.value)
1367
- }, null, 42, yr), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
1607
+ onInput: n[7] ||= (e) => ne(e.target.value)
1608
+ }, null, 42, Ir), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
1368
1609
  ]),
1369
- x("div", br, [x("label", { class: m(f(U)) }, w(f(c).image.borderRadius), 3), p(er, {
1370
- "model-value": e.block.borderRadius ?? 0,
1371
- min: 0,
1372
- suffix: "px",
1373
- testid: "image-border-radius-input",
1374
- "onUpdate:modelValue": ae
1375
- }, null, 8, ["model-value"])]),
1376
- x("div", xr, [x("label", { class: m(f(U)) }, w(f(c).title.align), 3), p(X, {
1610
+ p(ut, {
1611
+ "model-value": e.block.borderRadius,
1612
+ label: f(c).image.borderRadius,
1613
+ "testid-prefix": "image",
1614
+ "onUpdate:modelValue": re
1615
+ }, null, 8, ["model-value", "label"]),
1616
+ p(it, {
1617
+ "model-value": e.block.border,
1618
+ "testid-prefix": "image",
1619
+ "onUpdate:modelValue": n[8] ||= (e) => j("border", e)
1620
+ }, null, 8, ["model-value"]),
1621
+ x("div", Lr, [x("label", { class: m(f(V)) }, w(f(c).title.align), 3), p(J, {
1377
1622
  options: [
1378
1623
  {
1379
1624
  value: "left",
@@ -1389,40 +1634,40 @@ var Nn = {
1389
1634
  }
1390
1635
  ],
1391
1636
  "model-value": e.block.align,
1392
- "onUpdate:modelValue": n[8] ||= (e) => M("align", e)
1637
+ "onUpdate:modelValue": n[9] ||= (e) => j("align", e)
1393
1638
  }, null, 8, ["options", "model-value"])]),
1394
- x("div", Sr, [
1395
- x("label", { class: m(f(U)) }, w(f(c).image.linkUrl), 3),
1396
- p(Y, {
1639
+ x("div", Rr, [
1640
+ x("label", { class: m(f(V)) }, w(f(c).image.linkUrl), 3),
1641
+ p(q, {
1397
1642
  "model-value": e.block.linkUrl || "",
1398
1643
  type: "url",
1399
1644
  placeholder: f(c).image.imageUrlPlaceholder,
1400
- "onUpdate:modelValue": n[9] ||= (e) => M("linkUrl", e)
1645
+ "onUpdate:modelValue": n[10] ||= (e) => j("linkUrl", e)
1401
1646
  }, null, 8, ["model-value", "placeholder"]),
1402
- e.block.linkUrl ? (o(), y(J, {
1647
+ e.block.linkUrl ? (o(), y(K, {
1403
1648
  key: 0,
1404
1649
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
1405
1650
  "model-value": e.block.linkOpenInNewTab ?? !1,
1406
1651
  label: f(c).image.openInNewTab,
1407
- "onUpdate:modelValue": n[10] ||= (e) => M("linkOpenInNewTab", e)
1652
+ "onUpdate:modelValue": n[11] ||= (e) => j("linkOpenInNewTab", e)
1408
1653
  }, null, 8, ["model-value", "label"])) : _("", !0)
1409
1654
  ])
1410
1655
  ], 64));
1411
1656
  }
1412
- }), Er = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ l({
1657
+ }), Hr = { class: "tpl:mb-3.5" }, $ = /* @__PURE__ */ l({
1413
1658
  __name: "FieldRow",
1414
1659
  props: { label: {} },
1415
1660
  setup(e) {
1416
- return (t, n) => (o(), g("div", Er, [e.label ? (o(), g("label", {
1661
+ return (t, n) => (o(), g("div", Hr, [e.label ? (o(), g("label", {
1417
1662
  key: 0,
1418
- class: m(f(U))
1663
+ class: m(f(V))
1419
1664
  }, w(e.label), 3)) : _("", !0), a(t.$slots, "default")]));
1420
1665
  }
1421
- }), Dr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Or = { class: "tpl:flex tpl:items-center tpl:gap-2" }, kr = [
1666
+ }), Ur = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Wr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Gr = [
1422
1667
  "value",
1423
1668
  "placeholder",
1424
1669
  "onInput"
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({
1670
+ ], Kr = ["title", "onClick"], qr = { 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)]" }, Jr = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Yr = ["value"], Xr = { value: "" }, Zr = ["value"], Qr = ["value"], $r = /* @__PURE__ */ l({
1426
1671
  __name: "MenuToolbar",
1427
1672
  props: {
1428
1673
  block: {},
@@ -1447,17 +1692,17 @@ var Nn = {
1447
1692
  {
1448
1693
  value: "left",
1449
1694
  label: s.title.alignLeft,
1450
- icon: H
1695
+ icon: ke
1451
1696
  },
1452
1697
  {
1453
1698
  value: "center",
1454
1699
  label: s.title.alignCenter,
1455
- icon: B
1700
+ icon: z
1456
1701
  },
1457
1702
  {
1458
1703
  value: "right",
1459
1704
  label: s.title.alignRight,
1460
- icon: V
1705
+ icon: Oe
1461
1706
  }
1462
1707
  ]);
1463
1708
  function u(e, t) {
@@ -1486,25 +1731,25 @@ var Nn = {
1486
1731
  }
1487
1732
  return (t, n) => (o(), g(C, null, [
1488
1733
  p($, { label: f(s).menu.items }, {
1489
- default: i(() => [x("div", Dr, [(o(!0), g(C, null, r(e.block.items, (t) => (o(), g("div", {
1734
+ default: i(() => [x("div", Ur, [(o(!0), g(C, null, r(e.block.items, (t) => (o(), g("div", {
1490
1735
  key: t.id,
1491
1736
  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
1737
  }, [
1493
- x("div", Or, [x("input", {
1738
+ x("div", Wr, [x("input", {
1494
1739
  type: "text",
1495
- class: m([f(K), "tpl:flex-1"]),
1740
+ class: m([f(W), "tpl:flex-1"]),
1496
1741
  value: t.text,
1497
1742
  placeholder: f(s).menu.text,
1498
1743
  onInput: (e) => _(t.id, "text", e.target.value)
1499
- }, null, 42, kr), x("button", {
1500
- class: m(f(Me)),
1744
+ }, null, 42, Gr), x("button", {
1745
+ class: m(f(Be)),
1501
1746
  title: f(s).menu.removeItem,
1502
1747
  onClick: (e) => v(t.id)
1503
- }, [p(f(we), {
1748
+ }, [p(f(Ne), {
1504
1749
  size: 14,
1505
1750
  "stroke-width": 2
1506
- })], 10, Ar)]),
1507
- p(Y, {
1751
+ })], 10, Kr)]),
1752
+ p(q, {
1508
1753
  "model-value": t.url,
1509
1754
  type: "url",
1510
1755
  placeholder: f(s).menu.urlPlaceholder,
@@ -1514,7 +1759,7 @@ var Nn = {
1514
1759
  "placeholder",
1515
1760
  "onUpdate:modelValue"
1516
1761
  ]),
1517
- x("div", jr, [(o(!0), g(C, null, r(c.value, (e) => (o(), y(J, {
1762
+ x("div", qr, [(o(!0), g(C, null, r(c.value, (e) => (o(), y(K, {
1518
1763
  key: e.key,
1519
1764
  "model-value": t[e.key],
1520
1765
  label: e.label,
@@ -1524,13 +1769,13 @@ var Nn = {
1524
1769
  "label",
1525
1770
  "onUpdate:modelValue"
1526
1771
  ]))), 128))]),
1527
- x("div", Mr, [x("label", { class: m([f(U), "tpl:!mb-0"]) }, w(f(s).menu.color), 3), p(q, {
1772
+ x("div", Jr, [x("label", { class: m([f(V), "tpl:!mb-0"]) }, w(f(s).menu.color), 3), p(G, {
1528
1773
  "swatch-only": "",
1529
1774
  "model-value": t.color || e.block.linkColor || e.block.color || "",
1530
1775
  "onUpdate:modelValue": (e) => _(t.id, "color", e)
1531
1776
  }, null, 8, ["model-value", "onUpdate:modelValue"])])
1532
1777
  ]))), 128)), x("button", {
1533
- class: m(f(Ne)),
1778
+ class: m(f(Ve)),
1534
1779
  onClick: d
1535
1780
  }, [p(f(R), {
1536
1781
  size: 14,
@@ -1540,17 +1785,17 @@ var Nn = {
1540
1785
  }, 8, ["label"]),
1541
1786
  p($, { label: f(s).menu.fontFamily }, {
1542
1787
  default: i(() => [x("select", {
1543
- class: m(f(K)),
1788
+ class: m(f(W)),
1544
1789
  value: e.block.fontFamily || "",
1545
1790
  onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
1546
- }, [x("option", Pr, w(f(s).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
1791
+ }, [x("option", Xr, w(f(s).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
1547
1792
  key: e.value,
1548
1793
  value: e.value
1549
- }, w(e.label), 9, Fr))), 128))], 42, Nr)]),
1794
+ }, w(e.label), 9, Zr))), 128))], 42, Yr)]),
1550
1795
  _: 1
1551
1796
  }, 8, ["label"]),
1552
1797
  p($, { label: f(s).menu.fontSize }, {
1553
- default: i(() => [p(er, {
1798
+ default: i(() => [p(Y, {
1554
1799
  "model-value": e.block.fontSize,
1555
1800
  min: 8,
1556
1801
  max: 48,
@@ -1560,21 +1805,21 @@ var Nn = {
1560
1805
  _: 1
1561
1806
  }, 8, ["label"]),
1562
1807
  p($, { label: f(s).menu.color }, {
1563
- default: i(() => [p(q, {
1808
+ default: i(() => [p(G, {
1564
1809
  "model-value": e.block.color ?? "",
1565
1810
  "onUpdate:modelValue": n[2] ||= (e) => u("color", e || void 0)
1566
1811
  }, null, 8, ["model-value"])]),
1567
1812
  _: 1
1568
1813
  }, 8, ["label"]),
1569
1814
  p($, { label: f(s).menu.linkColor }, {
1570
- default: i(() => [p(q, {
1815
+ default: i(() => [p(G, {
1571
1816
  "model-value": e.block.linkColor || e.block.color || "",
1572
1817
  "onUpdate:modelValue": n[3] ||= (e) => u("linkColor", e || void 0)
1573
1818
  }, null, 8, ["model-value"])]),
1574
1819
  _: 1
1575
1820
  }, 8, ["label"]),
1576
1821
  p($, { label: f(s).menu.textAlign }, {
1577
- default: i(() => [p(X, {
1822
+ default: i(() => [p(J, {
1578
1823
  options: l.value,
1579
1824
  "model-value": e.block.textAlign,
1580
1825
  "onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
@@ -1584,21 +1829,21 @@ var Nn = {
1584
1829
  p($, { label: f(s).menu.separator }, {
1585
1830
  default: i(() => [x("input", {
1586
1831
  type: "text",
1587
- class: m(f(K)),
1832
+ class: m(f(W)),
1588
1833
  value: e.block.separator,
1589
1834
  onInput: n[5] ||= (e) => u("separator", e.target.value)
1590
- }, null, 42, Ir)]),
1835
+ }, null, 42, Qr)]),
1591
1836
  _: 1
1592
1837
  }, 8, ["label"]),
1593
1838
  p($, { label: f(s).menu.separatorColor }, {
1594
- default: i(() => [p(q, {
1839
+ default: i(() => [p(G, {
1595
1840
  "model-value": e.block.separatorColor,
1596
1841
  "onUpdate:modelValue": n[6] ||= (e) => u("separatorColor", e)
1597
1842
  }, null, 8, ["model-value"])]),
1598
1843
  _: 1
1599
1844
  }, 8, ["label"]),
1600
1845
  p($, { label: f(s).menu.spacing }, {
1601
- default: i(() => [p(er, {
1846
+ default: i(() => [p(Y, {
1602
1847
  "model-value": e.block.spacing,
1603
1848
  min: 0,
1604
1849
  max: 50,
@@ -1609,32 +1854,32 @@ var Nn = {
1609
1854
  }, 8, ["label"])
1610
1855
  ], 64));
1611
1856
  }
1612
- }), Rr = {
1857
+ }), ei = {
1613
1858
  class: "tpl:mb-3.5",
1614
1859
  "data-testid": "paragraph-spacing"
1615
- }, zr = { class: "tpl:flex tpl:items-stretch" }, Br = ["value"], Vr = /* @__PURE__ */ l({
1860
+ }, ti = { class: "tpl:flex tpl:items-stretch" }, ni = ["value"], ri = /* @__PURE__ */ l({
1616
1861
  __name: "ParagraphToolbar",
1617
1862
  props: { block: {} },
1618
1863
  emits: ["update"],
1619
1864
  setup(e, { emit: t }) {
1620
1865
  let n = t, { t: r } = L();
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", {
1866
+ return (t, i) => (o(), g("div", ei, [x("label", { class: m(f(V)) }, w(f(r).paragraph.paragraphSpacing), 3), x("div", ti, [x("input", {
1622
1867
  type: "number",
1623
- class: m(f(G)),
1868
+ class: m(f(U)),
1624
1869
  value: e.block.paragraphSpacing ?? f(j).paragraphGap,
1625
1870
  min: "0",
1626
1871
  max: "64",
1627
1872
  onInput: i[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
1628
- }, null, 42, Br), x("span", { class: m(f(W)) }, "px", 2)])]));
1873
+ }, null, 42, ni), x("span", { class: m(f(H)) }, "px", 2)])]));
1629
1874
  }
1630
1875
  });
1631
1876
  //#endregion
1632
1877
  //#region src/utils/rebalanceColumnChildren.ts
1633
- function Hr(e) {
1878
+ function ii(e) {
1634
1879
  return e === "1" ? 1 : e === "3" ? 3 : 2;
1635
1880
  }
1636
- function Ur(e, t) {
1637
- let n = Hr(t);
1881
+ function ai(e, t) {
1882
+ let n = ii(t);
1638
1883
  if (e.length === n) return e;
1639
1884
  if (e.length < n) {
1640
1885
  let t = Array.from({ length: n - e.length }, () => []);
@@ -1645,24 +1890,24 @@ function Ur(e, t) {
1645
1890
  }
1646
1891
  //#endregion
1647
1892
  //#region src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
1648
- var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1893
+ var oi = { class: "tpl:mb-3.5" }, si = ["value"], ci = ["value"], li = {
1649
1894
  key: 0,
1650
1895
  class: "tpl:mb-3.5"
1651
- }, Jr = { class: "tpl:mb-3.5" }, Yr = { class: "tpl:flex tpl:items-stretch" }, Xr = ["value"], Zr = {
1896
+ }, ui = {
1652
1897
  key: 1,
1653
1898
  class: "tpl:mb-3.5"
1654
- }, Qr = {
1899
+ }, di = {
1655
1900
  key: 0,
1656
1901
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1657
- }, $r = {
1902
+ }, fi = {
1658
1903
  key: 1,
1659
1904
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
1660
- }, ei = { class: "tpl:flex tpl:items-stretch" }, ti = ["value"], ni = /* @__PURE__ */ l({
1905
+ }, pi = /* @__PURE__ */ l({
1661
1906
  __name: "SectionToolbar",
1662
1907
  props: { block: {} },
1663
1908
  emits: ["update"],
1664
1909
  setup(e, { emit: t }) {
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(() => [
1910
+ let i = e, a = t, { t: s } = L(), c = n(I, void 0), l = n(ce, 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(() => [
1666
1911
  {
1667
1912
  value: "1",
1668
1913
  label: s.section.column1
@@ -1685,7 +1930,7 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1685
1930
  }
1686
1931
  ]);
1687
1932
  function S(e) {
1688
- let t = e.target.value, n = Ur(i.block.children, t);
1933
+ let t = e.target.value, n = ai(i.block.children, t);
1689
1934
  a("update", {
1690
1935
  columns: t,
1691
1936
  children: n
@@ -1695,8 +1940,7 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1695
1940
  a("update", { stackOnMobile: e });
1696
1941
  }
1697
1942
  function E(e) {
1698
- let t = Number(e.target.value);
1699
- a("update", { borderRadius: t });
1943
+ a("update", { borderRadius: e });
1700
1944
  }
1701
1945
  function O(e) {
1702
1946
  a("update", { wrapper: e ? { padding: {
@@ -1716,50 +1960,55 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1716
1960
  k({ padding: e });
1717
1961
  }
1718
1962
  function j(e) {
1719
- k({ borderRadius: Number(e.target.value) });
1963
+ k({ borderRadius: e });
1720
1964
  }
1721
1965
  return (t, n) => (o(), g(C, null, [
1722
- x("div", Wr, [x("label", { class: m(f(U)) }, w(f(s).section.columns), 3), x("select", {
1723
- class: m(f(K)),
1966
+ x("div", oi, [x("label", { class: m(f(V)) }, w(f(s).section.columns), 3), x("select", {
1967
+ class: m(f(W)),
1724
1968
  value: e.block.columns,
1725
1969
  onChange: S
1726
1970
  }, [(o(!0), g(C, null, r(b.value, (e) => (o(), g("option", {
1727
1971
  key: e.value,
1728
1972
  value: e.value
1729
- }, w(e.label), 9, Kr))), 128))], 42, Gr)]),
1730
- e.block.columns === "1" ? _("", !0) : (o(), g("div", qr, [p(J, {
1973
+ }, w(e.label), 9, ci))), 128))], 42, si)]),
1974
+ e.block.columns === "1" ? _("", !0) : (o(), g("div", li, [p(K, {
1731
1975
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1732
1976
  "model-value": e.block.stackOnMobile !== !1,
1733
1977
  label: f(s).section.stackOnMobile,
1734
1978
  "onUpdate:modelValue": n[0] ||= (e) => T(e)
1735
1979
  }, null, 8, ["model-value", "label"])])),
1736
- x("div", Jr, [x("label", { class: m(f(U)) }, w(f(s).section.borderRadius), 3), x("div", Yr, [x("input", {
1737
- type: "number",
1738
- class: m(f(G)),
1739
- value: e.block.borderRadius ?? 0,
1740
- min: "0",
1741
- max: "50",
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, {
1980
+ p(ut, {
1981
+ "model-value": e.block.borderRadius,
1982
+ label: f(s).section.borderRadius,
1983
+ max: 50,
1984
+ "testid-prefix": "section",
1985
+ "onUpdate:modelValue": E
1986
+ }, null, 8, ["model-value", "label"]),
1987
+ p(it, {
1988
+ "model-value": e.block.border,
1989
+ "testid-prefix": "section",
1990
+ "onUpdate:modelValue": n[1] ||= (e) => a("update", { border: e })
1991
+ }, null, 8, ["model-value"]),
1992
+ d.value ? (o(), g("div", ui, [
1993
+ p(K, {
1746
1994
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1747
1995
  "model-value": !!e.block.wrapper,
1748
1996
  label: f(s).section.wrapperEnable,
1749
1997
  disabled: v.value,
1750
- "onUpdate:modelValue": n[1] ||= (e) => O(e)
1998
+ "onUpdate:modelValue": n[2] ||= (e) => O(e)
1751
1999
  }, null, 8, [
1752
2000
  "model-value",
1753
2001
  "label",
1754
2002
  "disabled"
1755
2003
  ]),
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, {
2004
+ y.value ? (o(), g("p", di, w(f(s).section.wrapperLayoutConflict), 1)) : _("", !0),
2005
+ e.block.wrapper ? (o(), g("div", fi, [
2006
+ x("div", null, [x("label", { class: m(f(V)) }, w(f(s).blockSettings.color), 3), p(G, {
1759
2007
  "model-value": e.block.wrapper.backgroundColor ?? "",
1760
- "onUpdate:modelValue": n[2] ||= (e) => k({ backgroundColor: e })
2008
+ "allow-transparent": "",
2009
+ "onUpdate:modelValue": n[3] ||= (e) => k({ backgroundColor: e })
1761
2010
  }, null, 8, ["model-value"])]),
1762
- p(Nt, {
2011
+ p($t, {
1763
2012
  label: f(s).blockSettings.padding,
1764
2013
  "model-value": e.block.wrapper.padding ?? {
1765
2014
  top: 0,
@@ -1769,19 +2018,18 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1769
2018
  },
1770
2019
  "onUpdate:modelValue": A
1771
2020
  }, 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)])])
2021
+ p(ut, {
2022
+ "model-value": e.block.wrapper.borderRadius,
2023
+ label: f(s).section.borderRadius,
2024
+ max: 50,
2025
+ "testid-prefix": "section-wrapper",
2026
+ "onUpdate:modelValue": j
2027
+ }, null, 8, ["model-value", "label"])
1780
2028
  ])) : _("", !0)
1781
2029
  ])) : _("", !0)
1782
2030
  ], 64));
1783
2031
  }
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({
2032
+ }), mi = { class: "tpl:mb-3.5" }, hi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, gi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, _i = ["value", "onChange"], vi = ["value"], yi = ["title", "onClick"], bi = { class: "tpl:mb-3.5" }, xi = ["value"], Si = { value: "solid" }, Ci = { value: "outlined" }, wi = { value: "rounded" }, Ti = { value: "square" }, Ei = { value: "circle" }, Di = { class: "tpl:mb-3.5" }, Oi = { class: "tpl:mb-3.5" }, ki = { class: "tpl:flex tpl:items-stretch" }, Ai = ["value"], ji = { class: "tpl:mb-3.5" }, Mi = /* @__PURE__ */ l({
1785
2033
  __name: "SocialToolbar",
1786
2034
  props: { block: {} },
1787
2035
  emits: ["update"],
@@ -1809,25 +2057,25 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1809
2057
  i("update", { icons: n.block.icons.filter((t) => t.id !== e) });
1810
2058
  }
1811
2059
  return (t, n) => (o(), g(C, null, [
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", {
2060
+ x("div", mi, [x("label", { class: m(f(V)) }, w(f(a).social.icons), 3), x("div", hi, [(o(!0), g(C, null, r(e.block.icons, (e) => (o(), g("div", {
1813
2061
  key: e.id,
1814
2062
  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"
1815
- }, [x("div", ai, [x("select", {
2063
+ }, [x("div", gi, [x("select", {
1816
2064
  "data-testid": "social-platform-select",
1817
- class: m([f(K), "tpl:flex-1"]),
2065
+ class: m([f(W), "tpl:flex-1"]),
1818
2066
  value: e.platform,
1819
2067
  onChange: (t) => l(e.id, "platform", t.target.value)
1820
- }, [(o(!0), g(C, null, r(f(ne), (e) => (o(), g("option", {
2068
+ }, [(o(!0), g(C, null, r(f(F), (e) => (o(), g("option", {
1821
2069
  key: e,
1822
2070
  value: e
1823
- }, w(f(a).social.platforms[e]), 9, si))), 128))], 42, oi), x("button", {
1824
- class: m(f(Me)),
2071
+ }, w(f(a).social.platforms[e]), 9, vi))), 128))], 42, _i), x("button", {
2072
+ class: m(f(Be)),
1825
2073
  title: f(a).social.removeIcon,
1826
2074
  onClick: (t) => u(e.id)
1827
- }, [p(f(we), {
2075
+ }, [p(f(Ne), {
1828
2076
  size: 14,
1829
2077
  "stroke-width": 2
1830
- })], 10, ci)]), p(Y, {
2078
+ })], 10, yi)]), p(q, {
1831
2079
  "model-value": e.url,
1832
2080
  type: "url",
1833
2081
  placeholder: f(a).social.urlPlaceholder,
@@ -1837,24 +2085,24 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1837
2085
  "placeholder",
1838
2086
  "onUpdate:modelValue"
1839
2087
  ])]))), 128)), x("button", {
1840
- class: m(f(Ne)),
2088
+ class: m(f(Ve)),
1841
2089
  onClick: c
1842
2090
  }, [p(f(R), {
1843
2091
  size: 14,
1844
2092
  "stroke-width": 2
1845
2093
  }), E(" " + w(f(a).social.addIcon), 1)], 2)])]),
1846
- x("div", li, [x("label", { class: m(f(U)) }, w(f(a).social.style), 3), x("select", {
1847
- class: m(f(K)),
2094
+ x("div", bi, [x("label", { class: m(f(V)) }, w(f(a).social.style), 3), x("select", {
2095
+ class: m(f(W)),
1848
2096
  value: e.block.iconStyle,
1849
2097
  onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
1850
2098
  }, [
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, {
2099
+ x("option", Si, w(f(a).social.styleSolid), 1),
2100
+ x("option", Ci, w(f(a).social.styleOutlined), 1),
2101
+ x("option", wi, w(f(a).social.styleRounded), 1),
2102
+ x("option", Ti, w(f(a).social.styleSquare), 1),
2103
+ x("option", Ei, w(f(a).social.styleCircle), 1)
2104
+ ], 42, xi)]),
2105
+ x("div", Di, [x("label", { class: m(f(V)) }, w(f(a).social.size), 3), p(J, {
1858
2106
  options: [
1859
2107
  {
1860
2108
  value: "small",
@@ -1872,30 +2120,30 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1872
2120
  "model-value": e.block.iconSize,
1873
2121
  "onUpdate:modelValue": n[1] ||= (e) => s("iconSize", e)
1874
2122
  }, null, 8, ["options", "model-value"])]),
1875
- x("div", _i, [x("label", { class: m(f(U)) }, w(f(a).social.spacing), 3), x("div", vi, [x("input", {
2123
+ x("div", Oi, [x("label", { class: m(f(V)) }, w(f(a).social.spacing), 3), x("div", ki, [x("input", {
1876
2124
  type: "number",
1877
- class: m(f(G)),
2125
+ class: m(f(U)),
1878
2126
  value: e.block.spacing,
1879
2127
  min: "0",
1880
2128
  max: "50",
1881
2129
  onInput: n[2] ||= (e) => s("spacing", Number(e.target.value))
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, {
2130
+ }, null, 42, Ai), x("span", { class: m(f(H)) }, "px", 2)])]),
2131
+ x("div", ji, [x("label", { class: m(f(V)) }, w(f(a).social.align), 3), p(J, {
1884
2132
  options: [
1885
2133
  {
1886
2134
  value: "left",
1887
2135
  label: f(a).title.alignLeft,
1888
- icon: f(H)
2136
+ icon: f(ke)
1889
2137
  },
1890
2138
  {
1891
2139
  value: "center",
1892
2140
  label: f(a).title.alignCenter,
1893
- icon: f(B)
2141
+ icon: f(z)
1894
2142
  },
1895
2143
  {
1896
2144
  value: "right",
1897
2145
  label: f(a).title.alignRight,
1898
- icon: f(V)
2146
+ icon: f(Oe)
1899
2147
  }
1900
2148
  ],
1901
2149
  "model-value": e.block.align,
@@ -1903,22 +2151,22 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1903
2151
  }, null, 8, ["options", "model-value"])])
1904
2152
  ], 64));
1905
2153
  }
1906
- }), Si = { class: "tpl:mb-3.5" }, Ci = { class: "tpl:flex tpl:items-stretch" }, wi = ["value"], Ti = ["value"], Ei = /* @__PURE__ */ l({
2154
+ }), Ni = { class: "tpl:mb-3.5" }, Pi = { class: "tpl:flex tpl:items-stretch" }, Fi = ["value"], Ii = ["value"], Li = /* @__PURE__ */ l({
1907
2155
  __name: "SpacerToolbar",
1908
2156
  props: { block: {} },
1909
2157
  emits: ["update"],
1910
2158
  setup(e, { emit: t }) {
1911
2159
  let n = t, { t: r } = L();
1912
- return (t, i) => (o(), g("div", Si, [
1913
- x("label", { class: m(f(U)) }, w(f(r).spacer.height), 3),
1914
- x("div", Ci, [x("input", {
2160
+ return (t, i) => (o(), g("div", Ni, [
2161
+ x("label", { class: m(f(V)) }, w(f(r).spacer.height), 3),
2162
+ x("div", Pi, [x("input", {
1915
2163
  type: "number",
1916
- class: m(f(G)),
2164
+ class: m(f(U)),
1917
2165
  value: e.block.height,
1918
2166
  min: "10",
1919
2167
  max: "100",
1920
2168
  onInput: i[0] ||= (e) => n("update", { height: Number(e.target.value) })
1921
- }, null, 42, wi), x("span", { class: m(f(W)) }, "px", 2)]),
2169
+ }, null, 42, Fi), x("span", { class: m(f(H)) }, "px", 2)]),
1922
2170
  x("input", {
1923
2171
  type: "range",
1924
2172
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
@@ -1926,13 +2174,13 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1926
2174
  min: "10",
1927
2175
  max: "100",
1928
2176
  onInput: i[1] ||= (e) => n("update", { height: Number(e.target.value) })
1929
- }, null, 40, Ti)
2177
+ }, null, 40, Ii)
1930
2178
  ]));
1931
2179
  }
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 = {
2180
+ }), Ri = { class: "tpl:mb-3.5" }, zi = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Bi = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Vi = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Hi = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ui = ["disabled"], Wi = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Gi = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ki = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, qi = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ji = ["disabled"], Yi = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Xi = { class: "tpl:mb-3.5" }, Zi = {
1933
2181
  key: 0,
1934
2182
  class: "tpl:mb-3.5"
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({
2183
+ }, Qi = { class: "tpl:mb-3.5" }, $i = { class: "tpl:mb-3.5" }, ea = { class: "tpl:flex tpl:items-stretch" }, ta = ["value"], na = { class: "tpl:mb-3.5" }, ra = { class: "tpl:flex tpl:items-stretch" }, ia = ["value"], aa = { class: "tpl:mb-3.5" }, oa = ["value"], sa = { value: "" }, ca = ["value"], la = { class: "tpl:mb-3.5" }, ua = { class: "tpl:flex tpl:items-stretch" }, da = ["value"], fa = { class: "tpl:mb-3.5" }, pa = { class: "tpl:mb-3.5" }, ma = /* @__PURE__ */ l({
1936
2184
  __name: "TableToolbar",
1937
2185
  props: {
1938
2186
  block: {},
@@ -1975,16 +2223,16 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1975
2223
  i("update", { rows: t });
1976
2224
  }
1977
2225
  return (t, n) => (o(), g(C, null, [
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, [
2226
+ x("div", Ri, [x("label", { class: m(f(V)) }, w(f(a).table.dimensions), 3), x("div", zi, [x("div", Bi, [x("span", Vi, w(f(a).table.rows), 1), x("div", Hi, [
1979
2227
  x("button", {
1980
2228
  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",
1981
2229
  disabled: e.block.rows.length <= 1,
1982
2230
  onClick: n[0] ||= (t) => u(e.block.rows[e.block.rows.length - 1].id)
1983
- }, [p(f(z), {
2231
+ }, [p(f(B), {
1984
2232
  size: 12,
1985
2233
  "stroke-width": 2
1986
- })], 8, Mi),
1987
- x("span", Ni, w(e.block.rows.length), 1),
2234
+ })], 8, Ui),
2235
+ x("span", Wi, w(e.block.rows.length), 1),
1988
2236
  x("button", {
1989
2237
  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)]",
1990
2238
  onClick: l
@@ -1992,16 +2240,16 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
1992
2240
  size: 12,
1993
2241
  "stroke-width": 2
1994
2242
  })])
1995
- ])]), x("div", Pi, [x("span", Fi, w(f(a).table.columns), 1), x("div", Ii, [
2243
+ ])]), x("div", Gi, [x("span", Ki, w(f(a).table.columns), 1), x("div", qi, [
1996
2244
  x("button", {
1997
2245
  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",
1998
2246
  disabled: s.value <= 1,
1999
2247
  onClick: n[1] ||= (e) => v(s.value - 1)
2000
- }, [p(f(z), {
2248
+ }, [p(f(B), {
2001
2249
  size: 12,
2002
2250
  "stroke-width": 2
2003
- })], 8, Li),
2004
- x("span", Ri, w(s.value), 1),
2251
+ })], 8, Ji),
2252
+ x("span", Yi, w(s.value), 1),
2005
2253
  x("button", {
2006
2254
  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)]",
2007
2255
  onClick: d
@@ -2010,15 +2258,15 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2010
2258
  "stroke-width": 2
2011
2259
  })])
2012
2260
  ])])])]),
2013
- x("div", zi, [p(J, {
2261
+ x("div", Xi, [p(K, {
2014
2262
  class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
2015
2263
  "model-value": e.block.hasHeaderRow,
2016
2264
  label: f(a).table.hasHeaderRow,
2017
2265
  "onUpdate:modelValue": n[2] ||= (e) => c("hasHeaderRow", e)
2018
2266
  }, null, 8, ["model-value", "label"])]),
2019
- e.block.hasHeaderRow ? (o(), g("div", Bi, [x("label", { class: m(f(U)) }, w(f(a).table.headerBackgroundColor), 3), p(q, {
2267
+ e.block.hasHeaderRow ? (o(), g("div", Zi, [x("label", { class: m(f(V)) }, w(f(a).table.headerBackgroundColor), 3), p(G, {
2020
2268
  "model-value": e.block.headerBackgroundColor ?? "",
2021
- "seed-color": f(Pe),
2269
+ "seed-color": f(He),
2022
2270
  placeholder: f(a).table.noHeaderBg,
2023
2271
  "onUpdate:modelValue": n[3] ||= (e) => c("headerBackgroundColor", e || null)
2024
2272
  }, null, 8, [
@@ -2026,62 +2274,62 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2026
2274
  "seed-color",
2027
2275
  "placeholder"
2028
2276
  ])])) : _("", !0),
2029
- x("div", Vi, [x("label", { class: m(f(U)) }, w(f(a).table.borderColor), 3), p(q, {
2277
+ x("div", Qi, [x("label", { class: m(f(V)) }, w(f(a).table.borderColor), 3), p(G, {
2030
2278
  "model-value": e.block.borderColor,
2031
2279
  "onUpdate:modelValue": n[4] ||= (e) => c("borderColor", e)
2032
2280
  }, null, 8, ["model-value"])]),
2033
- x("div", Hi, [x("label", { class: m(f(U)) }, w(f(a).table.borderWidth), 3), x("div", Ui, [x("input", {
2281
+ x("div", $i, [x("label", { class: m(f(V)) }, w(f(a).table.borderWidth), 3), x("div", ea, [x("input", {
2034
2282
  type: "number",
2035
- class: m(f(G)),
2283
+ class: m(f(U)),
2036
2284
  value: e.block.borderWidth,
2037
2285
  min: "0",
2038
2286
  max: "10",
2039
2287
  onInput: n[5] ||= (e) => c("borderWidth", Number(e.target.value))
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", {
2288
+ }, null, 42, ta), x("span", { class: m(f(H)) }, "px", 2)])]),
2289
+ x("div", na, [x("label", { class: m(f(V)) }, w(f(a).table.cellPadding), 3), x("div", ra, [x("input", {
2042
2290
  type: "number",
2043
- class: m(f(G)),
2291
+ class: m(f(U)),
2044
2292
  value: e.block.cellPadding,
2045
2293
  min: "0",
2046
2294
  max: "30",
2047
2295
  onInput: n[6] ||= (e) => c("cellPadding", Number(e.target.value))
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", {
2050
- class: m(f(K)),
2296
+ }, null, 42, ia), x("span", { class: m(f(H)) }, "px", 2)])]),
2297
+ x("div", aa, [x("label", { class: m(f(V)) }, w(f(a).table.fontFamily), 3), x("select", {
2298
+ class: m(f(W)),
2051
2299
  value: e.block.fontFamily || "",
2052
2300
  onChange: n[7] ||= (e) => c("fontFamily", e.target.value || void 0)
2053
- }, [x("option", Xi, w(f(a).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2301
+ }, [x("option", sa, w(f(a).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2054
2302
  key: e.value,
2055
2303
  value: e.value
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", {
2304
+ }, w(e.label), 9, ca))), 128))], 42, oa)]),
2305
+ x("div", la, [x("label", { class: m(f(V)) }, w(f(a).table.fontSize), 3), x("div", ua, [x("input", {
2058
2306
  type: "number",
2059
- class: m(f(G)),
2307
+ class: m(f(U)),
2060
2308
  value: e.block.fontSize,
2061
2309
  min: "10",
2062
2310
  max: "32",
2063
2311
  onInput: n[8] ||= (e) => c("fontSize", Number(e.target.value))
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, {
2312
+ }, null, 42, da), x("span", { class: m(f(H)) }, "px", 2)])]),
2313
+ x("div", fa, [x("label", { class: m(f(V)) }, w(f(a).table.color), 3), p(G, {
2066
2314
  "model-value": e.block.color ?? "",
2067
2315
  "onUpdate:modelValue": n[9] ||= (e) => c("color", e || void 0)
2068
2316
  }, null, 8, ["model-value"])]),
2069
- x("div", na, [x("label", { class: m(f(U)) }, w(f(a).table.textAlign), 3), p(X, {
2317
+ x("div", pa, [x("label", { class: m(f(V)) }, w(f(a).table.textAlign), 3), p(J, {
2070
2318
  options: [
2071
2319
  {
2072
2320
  value: "left",
2073
2321
  label: f(a).title.alignLeft,
2074
- icon: f(H)
2322
+ icon: f(ke)
2075
2323
  },
2076
2324
  {
2077
2325
  value: "center",
2078
2326
  label: f(a).title.alignCenter,
2079
- icon: f(B)
2327
+ icon: f(z)
2080
2328
  },
2081
2329
  {
2082
2330
  value: "right",
2083
2331
  label: f(a).title.alignRight,
2084
- icon: f(V)
2332
+ icon: f(Oe)
2085
2333
  }
2086
2334
  ],
2087
2335
  "model-value": e.block.textAlign,
@@ -2089,7 +2337,7 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2089
2337
  }, null, 8, ["options", "model-value"])])
2090
2338
  ], 64));
2091
2339
  }
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({
2340
+ }), ha = { class: "tpl:mb-3.5" }, ga = ["value"], _a = { value: 1 }, va = { value: 2 }, ya = { value: 3 }, ba = { value: 4 }, xa = { class: "tpl:mb-3.5" }, Sa = ["value"], Ca = { value: "" }, wa = ["value"], Ta = { class: "tpl:mb-3.5" }, Ea = { class: "tpl:mb-3.5" }, Da = /* @__PURE__ */ l({
2093
2341
  __name: "TitleToolbar",
2094
2342
  props: {
2095
2343
  block: {},
@@ -2102,44 +2350,44 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2102
2350
  n("update", { [e]: t });
2103
2351
  }
2104
2352
  return (t, n) => (o(), g(C, null, [
2105
- x("div", ia, [x("label", { class: m(f(U)) }, w(f(i).title.level), 3), x("select", {
2106
- class: m(f(K)),
2353
+ x("div", ha, [x("label", { class: m(f(V)) }, w(f(i).title.level), 3), x("select", {
2354
+ class: m(f(W)),
2107
2355
  value: e.block.level,
2108
2356
  onChange: n[0] ||= (e) => a("level", Number(e.target.value))
2109
2357
  }, [
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", {
2116
- class: m(f(K)),
2358
+ x("option", _a, w(f(i).title.heading1), 1),
2359
+ x("option", va, w(f(i).title.heading2), 1),
2360
+ x("option", ya, w(f(i).title.heading3), 1),
2361
+ x("option", ba, w(f(i).title.heading4), 1)
2362
+ ], 42, ga)]),
2363
+ x("div", xa, [x("label", { class: m(f(V)) }, w(f(i).title.fontFamily), 3), x("select", {
2364
+ class: m(f(W)),
2117
2365
  value: e.block.fontFamily || "",
2118
2366
  onChange: n[1] ||= (e) => a("fontFamily", e.target.value || void 0)
2119
- }, [x("option", fa, w(f(i).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2367
+ }, [x("option", Ca, w(f(i).title.inheritFont), 1), (o(!0), g(C, null, r(e.fontFamilies, (e) => (o(), g("option", {
2120
2368
  key: e.value,
2121
2369
  value: e.value
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, {
2370
+ }, w(e.label), 9, wa))), 128))], 42, Sa)]),
2371
+ x("div", Ta, [x("label", { class: m(f(V)) }, w(f(i).title.color), 3), p(G, {
2124
2372
  "model-value": e.block.color ?? "",
2125
2373
  "onUpdate:modelValue": n[2] ||= (e) => a("color", e || void 0)
2126
2374
  }, null, 8, ["model-value"])]),
2127
- x("div", ha, [x("label", { class: m(f(U)) }, w(f(i).title.align), 3), p(X, {
2375
+ x("div", Ea, [x("label", { class: m(f(V)) }, w(f(i).title.align), 3), p(J, {
2128
2376
  options: [
2129
2377
  {
2130
2378
  value: "left",
2131
2379
  label: f(i).title.alignLeft,
2132
- icon: f(H)
2380
+ icon: f(ke)
2133
2381
  },
2134
2382
  {
2135
2383
  value: "center",
2136
2384
  label: f(i).title.alignCenter,
2137
- icon: f(B)
2385
+ icon: f(z)
2138
2386
  },
2139
2387
  {
2140
2388
  value: "right",
2141
2389
  label: f(i).title.alignRight,
2142
- icon: f(V)
2390
+ icon: f(Oe)
2143
2391
  }
2144
2392
  ],
2145
2393
  "model-value": e.block.textAlign,
@@ -2147,48 +2395,48 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2147
2395
  }, null, 8, ["options", "model-value"])])
2148
2396
  ], 64));
2149
2397
  }
2150
- }), _a = { class: "tpl:mb-3.5" }, va = {
2398
+ }), Oa = { class: "tpl:mb-3.5" }, ka = {
2151
2399
  key: 0,
2152
2400
  class: "tpl:mb-3.5"
2153
- }, ya = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ba = [
2401
+ }, Aa = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ja = [
2154
2402
  "value",
2155
2403
  "placeholder",
2156
2404
  "title"
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 = {
2405
+ ], Ma = { class: "tpl:mb-3.5" }, Na = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, Pa = { class: "tpl:mb-3.5" }, Fa = { class: "tpl:mb-3.5" }, Ia = ["value"], La = { value: "full" }, Ra = { class: "tpl:mb-3.5" }, za = ["value"], Ba = { value: "auto" }, Va = { value: "custom" }, Ha = {
2158
2406
  key: 0,
2159
2407
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2160
- }, Ma = ["value"], Na = { class: "tpl:mb-3.5" }, Pa = 200, Fa = /* @__PURE__ */ l({
2408
+ }, Ua = ["value"], Wa = { class: "tpl:mb-3.5" }, Ga = 200, Ka = /* @__PURE__ */ l({
2161
2409
  __name: "VideoToolbar",
2162
2410
  props: { block: {} },
2163
2411
  emits: ["update"],
2164
2412
  setup(e, { emit: t }) {
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(() => {
2413
+ let r = e, i = t, { t: a } = L(), c = n(le, null), l = n(ue, te.liquid), u = Re(), d = h(() => !!c), v = h(() => ee(r.block.url, l)), b = h(() => typeof r.block.height == "number" ? "custom" : "auto"), S = s(!1), { start: T } = oe(() => {
2166
2414
  S.value = !1;
2167
2415
  }, 1e3, { immediate: !1 });
2168
2416
  function D(e, t) {
2169
2417
  i("update", { [e]: t });
2170
2418
  }
2171
2419
  function O(e) {
2172
- D("height", e === "custom" ? Pa : void 0);
2420
+ D("height", e === "custom" ? Ga : void 0);
2173
2421
  }
2174
2422
  function k(e) {
2175
2423
  let t = Number(e);
2176
2424
  !Number.isFinite(t) || t <= 0 || D("height", t);
2177
2425
  }
2178
- async function j() {
2426
+ async function A() {
2179
2427
  let e = await c?.({ accept: ["images"] });
2180
2428
  u.alive && e && (D("thumbnailUrl", e.url), S.value = !0, T());
2181
2429
  }
2182
2430
  return (t, n) => (o(), g(C, null, [
2183
- x("div", _a, [
2184
- x("label", { class: m(f(U)) }, w(f(a).video.videoUrl), 3),
2185
- p(Y, {
2431
+ x("div", Oa, [
2432
+ x("label", { class: m(f(V)) }, w(f(a).video.videoUrl), 3),
2433
+ p(q, {
2186
2434
  "model-value": e.block.url,
2187
2435
  type: "url",
2188
2436
  placeholder: f(a).video.videoUrlPlaceholder,
2189
2437
  "onUpdate:modelValue": n[0] ||= (e) => D("url", e)
2190
2438
  }, null, 8, ["model-value", "placeholder"]),
2191
- e.block.url ? (o(), y(J, {
2439
+ e.block.url ? (o(), y(K, {
2192
2440
  key: 0,
2193
2441
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
2194
2442
  "model-value": e.block.openInNewTab ?? !1,
@@ -2196,17 +2444,17 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2196
2444
  "onUpdate:modelValue": n[1] ||= (e) => D("openInNewTab", e)
2197
2445
  }, null, 8, ["model-value", "label"])) : _("", !0)
2198
2446
  ]),
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", {
2447
+ v.value ? (o(), g("div", ka, [x("label", { class: m(f(V)) }, [E(w(f(a).video.placeholderUrl) + " ", 1), x("span", Aa, w(f(a).video.optional), 1)], 2), x("input", {
2200
2448
  type: "url",
2201
- class: m(f(K)),
2449
+ class: m(f(W)),
2202
2450
  value: e.block.placeholderUrl || "",
2203
2451
  placeholder: f(a).video.placeholderUrlPlaceholder,
2204
2452
  title: f(a).video.placeholderUrlTooltip,
2205
2453
  onInput: n[2] ||= (e) => D("placeholderUrl", e.target.value)
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),
2209
- p(Y, {
2454
+ }, null, 42, ja)])) : _("", !0),
2455
+ x("div", Ma, [
2456
+ x("label", { class: m(f(V)) }, [E(w(f(a).video.customThumbnail) + " ", 1), x("span", Na, w(f(a).video.optional), 1)], 2),
2457
+ p(q, {
2210
2458
  "model-value": e.block.thumbnailUrl,
2211
2459
  type: "url",
2212
2460
  placeholder: f(a).video.thumbnailPlaceholder,
@@ -2225,46 +2473,46 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2225
2473
  color: "var(--tpl-primary)",
2226
2474
  "background-color": "var(--tpl-bg)"
2227
2475
  },
2228
- onClick: j
2229
- }, [p(f(Se), {
2476
+ onClick: A
2477
+ }, [p(f(Pe), {
2230
2478
  size: 14,
2231
2479
  "stroke-width": 1.5
2232
2480
  }), E(" " + w(f(a).image.browseMedia), 1)])) : _("", !0)
2233
2481
  ]),
2234
- x("div", Ca, [x("label", { class: m(f(U)) }, w(f(a).video.altText), 3), p(Y, {
2482
+ x("div", Pa, [x("label", { class: m(f(V)) }, w(f(a).video.altText), 3), p(q, {
2235
2483
  "model-value": e.block.alt,
2236
2484
  type: "text",
2237
2485
  placeholder: f(a).video.altTextPlaceholder,
2238
2486
  "onUpdate:modelValue": n[4] ||= (e) => D("alt", e)
2239
2487
  }, null, 8, ["model-value", "placeholder"])]),
2240
- x("div", wa, [x("label", { class: m(f(U)) }, w(f(a).video.width), 3), x("select", {
2241
- class: m(f(K)),
2488
+ x("div", Fa, [x("label", { class: m(f(V)) }, w(f(a).video.width), 3), x("select", {
2489
+ class: m(f(W)),
2242
2490
  value: e.block.width,
2243
2491
  onChange: n[5] ||= (e) => D("width", e.target.value === "full" ? "full" : Number(e.target.value))
2244
2492
  }, [
2245
- x("option", Ea, w(f(a).video.fullWidth), 1),
2493
+ x("option", La, w(f(a).video.fullWidth), 1),
2246
2494
  n[9] ||= x("option", { value: "300" }, "300px", -1),
2247
2495
  n[10] ||= x("option", { value: "400" }, "400px", -1),
2248
2496
  n[11] ||= x("option", { value: "500" }, "500px", -1)
2249
- ], 42, Ta)]),
2250
- x("div", Da, [
2251
- x("label", { class: m(f(U)) }, w(f(a).video.height), 3),
2497
+ ], 42, Ia)]),
2498
+ x("div", Ra, [
2499
+ x("label", { class: m(f(V)) }, w(f(a).video.height), 3),
2252
2500
  x("select", {
2253
- class: m(f(K)),
2501
+ class: m(f(W)),
2254
2502
  "data-testid": "video-height-mode",
2255
2503
  value: b.value,
2256
2504
  onChange: n[6] ||= (e) => O(e.target.value)
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", {
2505
+ }, [x("option", Ba, w(f(a).video.heightAuto), 1), x("option", Va, w(f(a).video.heightCustom), 1)], 42, za),
2506
+ b.value === "custom" ? (o(), g("div", Ha, [x("input", {
2259
2507
  type: "number",
2260
2508
  "data-testid": "video-height-input",
2261
- class: m(f(G)),
2509
+ class: m(f(U)),
2262
2510
  value: e.block.height,
2263
2511
  min: "20",
2264
2512
  onInput: n[7] ||= (e) => k(e.target.value)
2265
- }, null, 42, Ma), x("span", { class: m(f(W)) }, "px", 2)])) : _("", !0)
2513
+ }, null, 42, Ua), x("span", { class: m(f(H)) }, "px", 2)])) : _("", !0)
2266
2514
  ]),
2267
- x("div", Na, [x("label", { class: m(f(U)) }, w(f(a).title.align), 3), p(X, {
2515
+ x("div", Wa, [x("label", { class: m(f(V)) }, w(f(a).title.align), 3), p(J, {
2268
2516
  options: [
2269
2517
  {
2270
2518
  value: "left",
@@ -2284,7 +2532,7 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2284
2532
  }, null, 8, ["options", "model-value"])])
2285
2533
  ], 64));
2286
2534
  }
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({
2535
+ }), qa = ["aria-label"], Ja = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, Ya = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Xa = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Za = { class: "tpl:flex tpl:gap-1" }, Qa = ["title"], $a = ["title"], eo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, to = /*@__PURE__*/ l({
2288
2536
  __name: "Toolbar",
2289
2537
  props: { block: {} },
2290
2538
  emits: [
@@ -2293,9 +2541,9 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2293
2541
  "duplicate"
2294
2542
  ],
2295
2543
  setup(e, { emit: t }) {
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(() => {
2544
+ let r = T(() => import("./CountdownToolbar-BJTcnIQ-.js")), i = e, a = t, { t: s } = L(), l = se(ge, "Toolbar"), u = n(he, []), d = h(() => i.block.type), m = h(() => k(i.block)), v = h(() => {
2297
2545
  if (m.value) return u.find((e) => e.type === i.block.customType);
2298
- }), b = h(() => m.value ? v.value?.name ?? i.block.customType : re(d.value, s)), S = l.fonts;
2546
+ }), b = h(() => m.value ? v.value?.name ?? i.block.customType : ae(d.value, s)), S = l.fonts;
2299
2547
  function C(e) {
2300
2548
  a("update", e);
2301
2549
  }
@@ -2303,82 +2551,82 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2303
2551
  "data-testid": "block-toolbar",
2304
2552
  "aria-label": f(s).landmarks.blockToolbar,
2305
2553
  class: "tpl:flex tpl:w-full tpl:flex-1 tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)]"
2306
- }, [x("div", La, [x("div", Ra, [f(Ie)[d.value] ? (o(), y(c(f(Ie)[d.value]), {
2554
+ }, [x("div", Ja, [x("div", Ya, [f(We)[d.value] ? (o(), y(c(f(We)[d.value]), {
2307
2555
  key: 0,
2308
2556
  size: 16,
2309
2557
  "stroke-width": 1.5
2310
- })) : m.value ? (o(), y(f(ye), {
2558
+ })) : m.value ? (o(), y(f(je), {
2311
2559
  key: 1,
2312
2560
  size: 16,
2313
2561
  "stroke-width": 1.5
2314
- })) : _("", !0), x("h3", za, w(b.value), 1)]), x("div", Ba, [x("button", {
2562
+ })) : _("", !0), x("h3", Xa, w(b.value), 1)]), x("div", Za, [x("button", {
2315
2563
  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)]",
2316
2564
  title: f(s).toolbar.duplicate,
2317
2565
  onClick: n[0] ||= (e) => a("duplicate")
2318
- }, [p(f(ge), {
2566
+ }, [p(f(ye), {
2319
2567
  size: 14,
2320
2568
  "stroke-width": 2
2321
- })], 8, Va), x("button", {
2569
+ })], 8, Qa), x("button", {
2322
2570
  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)]",
2323
2571
  title: f(s).toolbar.delete,
2324
2572
  onClick: n[1] ||= (e) => a("delete")
2325
- }, [p(f(be), {
2573
+ }, [p(f(Ee), {
2326
2574
  size: 14,
2327
2575
  "stroke-width": 2
2328
- })], 8, Ha)])]), x("div", Ua, [m.value ? (o(), y(Vn, {
2576
+ })], 8, $a)])]), x("div", eo, [m.value ? (o(), y(sr, {
2329
2577
  key: 0,
2330
2578
  block: e.block,
2331
2579
  onUpdateFieldValues: n[2] ||= (e) => a("update", { fieldValues: e }),
2332
2580
  onUpdateDataSourceFetched: n[3] ||= (e) => a("update", { dataSourceFetched: e })
2333
- }, null, 8, ["block"])) : d.value === "section" ? (o(), y(ni, {
2581
+ }, null, 8, ["block"])) : d.value === "section" ? (o(), y(pi, {
2334
2582
  key: 1,
2335
2583
  block: e.block,
2336
2584
  onUpdate: C
2337
- }, null, 8, ["block"])) : d.value === "title" ? (o(), y(ga, {
2585
+ }, null, 8, ["block"])) : d.value === "title" ? (o(), y(Da, {
2338
2586
  key: 2,
2339
2587
  block: e.block,
2340
2588
  "font-families": f(S),
2341
2589
  onUpdate: C
2342
- }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(Vr, {
2590
+ }, null, 8, ["block", "font-families"])) : d.value === "paragraph" ? (o(), y(ri, {
2343
2591
  key: 3,
2344
2592
  block: e.block,
2345
2593
  onUpdate: C
2346
- }, null, 8, ["block"])) : d.value === "image" ? (o(), y(Tr, {
2594
+ }, null, 8, ["block"])) : d.value === "image" ? (o(), y(Vr, {
2347
2595
  key: 4,
2348
2596
  block: e.block,
2349
2597
  onUpdate: C
2350
- }, null, 8, ["block"])) : d.value === "video" ? (o(), y(Fa, {
2598
+ }, null, 8, ["block"])) : d.value === "video" ? (o(), y(Ka, {
2351
2599
  key: 5,
2352
2600
  block: e.block,
2353
2601
  onUpdate: C
2354
- }, null, 8, ["block"])) : d.value === "button" ? (o(), y(ut, {
2602
+ }, null, 8, ["block"])) : d.value === "button" ? (o(), y(jt, {
2355
2603
  key: 6,
2356
2604
  block: e.block,
2357
2605
  "font-families": f(S),
2358
2606
  onUpdate: C
2359
- }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(qn, {
2607
+ }, null, 8, ["block", "font-families"])) : d.value === "divider" ? (o(), y(pr, {
2360
2608
  key: 7,
2361
2609
  block: e.block,
2362
2610
  onUpdate: C
2363
- }, null, 8, ["block"])) : d.value === "social" ? (o(), y(xi, {
2611
+ }, null, 8, ["block"])) : d.value === "social" ? (o(), y(Mi, {
2364
2612
  key: 8,
2365
2613
  block: e.block,
2366
2614
  onUpdate: C
2367
- }, null, 8, ["block"])) : d.value === "menu" ? (o(), y(Lr, {
2615
+ }, null, 8, ["block"])) : d.value === "menu" ? (o(), y($r, {
2368
2616
  key: 9,
2369
2617
  block: e.block,
2370
2618
  "font-families": f(S),
2371
2619
  onUpdate: C
2372
- }, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y(ra, {
2620
+ }, null, 8, ["block", "font-families"])) : d.value === "table" ? (o(), y(ma, {
2373
2621
  key: 10,
2374
2622
  block: e.block,
2375
2623
  "font-families": f(S),
2376
2624
  onUpdate: C
2377
- }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(Ei, {
2625
+ }, null, 8, ["block", "font-families"])) : d.value === "spacer" ? (o(), y(Li, {
2378
2626
  key: 11,
2379
2627
  block: e.block,
2380
2628
  onUpdate: C
2381
- }, null, 8, ["block"])) : d.value === "html" ? (o(), y(Zn, {
2629
+ }, null, 8, ["block"])) : d.value === "html" ? (o(), y(_r, {
2382
2630
  key: 12,
2383
2631
  block: e.block,
2384
2632
  onUpdate: C
@@ -2387,14 +2635,14 @@ var Wr = { class: "tpl:mb-3.5" }, Gr = ["value"], Kr = ["value"], qr = {
2387
2635
  block: e.block,
2388
2636
  "font-families": f(S),
2389
2637
  onUpdate: C
2390
- }, null, 8, ["block", "font-families"])) : _("", !0), p(tn, {
2638
+ }, null, 8, ["block", "font-families"])) : _("", !0), p(Sn, {
2391
2639
  block: e.block,
2392
2640
  "is-first-section": d.value === "paragraph",
2393
2641
  onUpdate: C
2394
- }, null, 8, ["block", "is-first-section"])])], 8, Ia));
2642
+ }, null, 8, ["block", "is-first-section"])])], 8, qa));
2395
2643
  }
2396
- }), Ga = /* @__PURE__ */ e({ default: () => Ka }), Ka = /*#__PURE__*/ ke(Wa, [["__scopeId", "data-v-1038bf62"]]);
2644
+ }), no = /* @__PURE__ */ e({ default: () => ro }), ro = /*#__PURE__*/ Le(to, [["__scopeId", "data-v-1038bf62"]]);
2397
2645
  //#endregion
2398
- export { Ka as default, X as i, $ as n, er as r, Ga as t };
2646
+ export { ro as default, J as i, $ as n, Y as r, no as t };
2399
2647
 
2400
- //# sourceMappingURL=Toolbar-BsiHW9gY.js.map
2648
+ //# sourceMappingURL=Toolbar-tTl0P-rr.js.map