@templatical/editor 0.59.2 → 0.60.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 (311) hide show
  1. package/dist/{AiAltTextPopover-BhWHOOKX.js → AiAltTextPopover-DiIaqDtB.js} +1 -1
  2. package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-DIe0WBbj.js} +1 -1
  3. package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-aj2TPO9F.js} +8 -8
  4. package/dist/{AiPanels-C8M7q_vM.js → AiPanels-CRM3jf82.js} +1 -1
  5. package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-F3GyXBsk.js} +8 -8
  6. package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DlhA_I6J.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DYspUXMO.js} +19 -44
  8. package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-CAMn545-.js} +3 -3
  9. package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-CnfS8BQy.js} +1 -1
  10. package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-DufLdLQP.js} +1 -1
  11. package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-C2hFFs0o.js} +1 -1
  12. package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-CgEwxt2T.js} +10 -10
  13. package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-CNqYDevp.js} +4 -4
  14. package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-cPKhimE9.js} +9 -9
  15. package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-zxlpmw2x.js} +12 -12
  16. package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-PIfpvCCI.js} +2 -2
  17. package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-DqTkGJSR.js} +16 -16
  18. package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
  19. package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
  20. package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-Jly1Pw0v.js} +1 -1
  21. package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-5kaFLRAm.js} +4 -4
  22. package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CCfirhcR.js} +5 -5
  23. package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-DTdnxgDZ.js} +43 -43
  24. package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-cUYu3Xqs.js} +3 -3
  25. package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-Aub9tOHF.js} +4 -4
  26. package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-D_ie3uIF.js} +7 -7
  27. package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-fhSnYT1l.js} +9 -9
  28. package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-CpWkCa8G.js} +2 -2
  30. package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-BJ4a8RBr.js} +8 -8
  31. package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-BEoapoDc.js} +8 -8
  32. package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-DgyzokCf.js} +1 -1
  33. package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor-BQoSPgOi.js} +9 -9
  34. package/dist/{Toolbar-BOf7Y862.js → Toolbar-KhPpWyX1.js} +857 -756
  35. package/dist/{TplModal-DAcXzBJh.js → TplModal-F_kA7luG.js} +1 -1
  36. package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-Bz4G8cNm.js} +5 -5
  37. package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
  38. package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-BeppXZyn.js} +1 -1
  39. package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-Ds7yfbhg.js} +3 -3
  40. package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-Do1QqDjg.js} +3 -3
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -3
  43. package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-CUzIaLRK.js} +2 -2
  44. package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
  45. package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-BXBlE71X.js} +2 -2
  46. package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
  47. package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-BKydciDQ.js} +2 -2
  48. package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-De-cIZ4p.js} +2 -2
  50. package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
  51. package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C9vBUTIB.js} +6 -6
  52. package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
  53. package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-B3CTTvgw.js} +2 -2
  54. package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-B4Bj--kc.js} +20 -45
  56. package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.js.map +1 -0
  57. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -1
  58. package/dist/cdn/chunks/{CloudPanels-D8fchoYt.js → CloudPanels-CQ75I3hQ.js} +3 -3
  59. package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
  60. package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CgLea-hu.js} +2 -2
  61. package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
  62. package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CjRcbebT.js} +2 -2
  63. package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
  64. package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-D_ud9GMN.js} +2 -2
  65. package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
  66. package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-CXn1EGAI.js} +2 -2
  67. package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
  68. package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
  69. package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BOyk_4k7.js} +5 -5
  70. package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
  71. package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-DOC94ZsH.js} +4 -4
  72. package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
  73. package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-DktneIpL.js} +7 -7
  74. package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
  75. package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-B2NgnHoP.js} +2 -2
  76. package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
  77. package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-CQ8RiOou.js} +5 -5
  78. package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
  79. package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
  80. package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
  81. package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
  82. package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
  83. package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-D7FZ0ca0.js} +2 -2
  84. package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
  85. package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-CySCCEDs.js} +3 -3
  86. package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
  87. package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-DJbWTYVH.js} +7 -7
  88. package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
  89. package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-DAQUWqQJ.js} +23 -23
  90. package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
  91. package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-COTRe_rM.js} +3 -3
  92. package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
  93. package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-DeWPMd9V.js} +4 -4
  94. package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
  95. package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-adQMbKR1.js} +6 -6
  96. package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
  97. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CGIFCRAx.js} +6 -6
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
  99. package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
  100. package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
  101. package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-DmleyUrn.js} +3 -3
  102. package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
  103. package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings-Csjef99q.js} +6 -6
  104. package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
  105. package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-ClkexOtF.js} +7 -7
  106. package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
  107. package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-DYEYzhU2.js} +2 -2
  108. package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
  109. package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-opvaIgVr.js} +8 -8
  110. package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
  111. package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
  112. package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-DbqkKRXy.js} +771 -670
  113. package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
  114. package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DLV5OeMD.js} +2 -2
  115. package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
  116. package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-DBd0zwjE.js} +2 -2
  117. package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
  118. package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
  119. package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
  120. package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-D-yHxWWY.js} +2 -2
  121. package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
  122. package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-Ce_k8m_x.js} +4 -4
  123. package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
  124. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
  125. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
  126. package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-Ce3NmK9v.js} +8 -1
  127. package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
  128. package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-Brr4m0Sg.js} +566 -591
  129. package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
  130. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-QPeg45XL.js} +3 -3
  131. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
  132. package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
  133. package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
  134. package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
  135. package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
  137. package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
  138. package/dist/cdn/chunks/en-DkulseE1.js +1 -0
  139. package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
  140. package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
  141. package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
  142. package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
  143. package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BpuyqKVY.js} +5 -5
  144. package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
  145. package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-D3MjrsgQ.js} +8 -1
  146. package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
  147. package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
  148. package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
  149. package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +7 -2
  150. package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
  151. package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
  152. package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
  153. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-B81BAWKT.js} +64 -64
  154. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
  155. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-CQuaMxuv.js} +2 -2
  156. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
  157. package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
  158. package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
  159. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-BdAjvU9I.js} +2 -2
  160. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
  161. package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-Df9dNe7I.js} +495 -517
  162. package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
  163. package/dist/cdn/chunks/{src-BmzzkUf7.js → src-B3v_3j9b.js} +436 -404
  164. package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
  165. package/dist/cdn/chunks/{src-DY2kMjoD.js → src-BHgVGOTi.js} +771 -667
  166. package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
  167. package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
  168. package/dist/cdn/chunks/src-C5V_yzAU.js.map +1 -0
  169. package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
  170. package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
  171. package/dist/cdn/chunks/useLocalizedDisplay-C3lIetmX.js +33 -0
  172. package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
  173. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-DOIlsGk8.js} +2 -2
  174. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
  175. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-DUNl364g.js} +2 -2
  176. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-DUNl364g.js.map} +1 -1
  177. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-ufGLu2Vt.js} +2 -2
  178. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-ufGLu2Vt.js.map} +1 -1
  179. package/dist/cdn/editor.js +109 -109
  180. package/dist/cdn/editor.js.map +1 -1
  181. package/dist/{check-ErKdPXG6.js → check-CWq6Nfjj.js} +1 -1
  182. package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
  183. package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
  184. package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
  185. package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
  186. package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
  187. package/dist/{composables-CFTH0Nqb.js → composables-5KJV0O9T.js} +914 -939
  188. package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-BdoKeYJi.js} +2 -2
  189. package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
  190. package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
  191. package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
  192. package/dist/dist-AyAOL8Bj.js +4 -0
  193. package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
  194. package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
  195. package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
  196. package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
  197. package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
  198. package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
  199. package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
  200. package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
  201. package/dist/dist-DkPTWQuO.js +4 -0
  202. package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
  203. package/dist/{dist-CMo4K5So.js → dist-DsA7NeIy.js} +798 -696
  204. package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
  205. package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
  206. package/dist/en-DwxgN_-Y.js +1 -0
  207. package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
  208. package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
  209. package/dist/{extensions-BPVackEE.js → extensions-DCJGAZ9z.js} +73 -73
  210. package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
  211. package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -3
  212. package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
  213. package/dist/index.d.ts +37 -7
  214. package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
  215. package/dist/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -1
  216. package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
  217. package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
  218. package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
  219. package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
  220. package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
  221. package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
  222. package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
  223. package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
  224. package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-D3GzENVB.js} +3 -3
  226. package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
  227. package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
  228. package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
  229. package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-BcbjlypU.js} +6 -6
  230. package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
  231. package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
  232. package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
  233. package/dist/{socialIcons-DBHv_ntg.js → socialIcons-By2LPWOQ.js} +561 -583
  234. package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
  235. package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
  236. package/dist/templatical-editor.js +139 -139
  237. package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
  238. package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
  239. package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
  240. package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
  241. package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
  242. package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-f0SJ1Cd2.js} +1 -1
  243. package/dist/{useMergeTag-Bams_kam.js → useMergeTag-0-EudwkV.js} +3 -3
  244. package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-CtM_ydOS.js} +1 -1
  245. package/dist/withCurrentFont-BOg3jmCT.js +18 -0
  246. package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.js} +1 -1
  247. package/package.json +22 -22
  248. package/dist/cdn/chunks/AiAltTextPopover-CcX_OMUU.js.map +0 -1
  249. package/dist/cdn/chunks/AiAltTextReview-Dmm3h0jd.js.map +0 -1
  250. package/dist/cdn/chunks/AiChatPanel-DV23DJ-2.js.map +0 -1
  251. package/dist/cdn/chunks/AiPanels-CxhOpMAp.js.map +0 -1
  252. package/dist/cdn/chunks/AiRewriteMenu-87-O514r.js.map +0 -1
  253. package/dist/cdn/chunks/BlockIssueBadge-Dp06vQd3.js.map +0 -1
  254. package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +0 -1
  255. package/dist/cdn/chunks/CloudPanels-D8fchoYt.js.map +0 -1
  256. package/dist/cdn/chunks/CollaborationNotices-DNEs3g9B.js.map +0 -1
  257. package/dist/cdn/chunks/CollaboratorBar-CN6XAlbn.js.map +0 -1
  258. package/dist/cdn/chunks/CommentsPanel-CxZ1kFcK.js.map +0 -1
  259. package/dist/cdn/chunks/CommentsSidebar-DCr2mV8b.js.map +0 -1
  260. package/dist/cdn/chunks/CountdownToolbar-CUTbVPPV.js.map +0 -1
  261. package/dist/cdn/chunks/IssuesPanel-BhcSzwuL.js.map +0 -1
  262. package/dist/cdn/chunks/LanguageMenu-6wGhkyFT.js.map +0 -1
  263. package/dist/cdn/chunks/LocaleNotices-Br92Xueo.js.map +0 -1
  264. package/dist/cdn/chunks/LogicTagInsertButton-r2EVUtDU.js.map +0 -1
  265. package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
  266. package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
  267. package/dist/cdn/chunks/MergeTagInput-Dh3N6CEV.js.map +0 -1
  268. package/dist/cdn/chunks/MergeTagModeToggle-D6u3hMrI.js.map +0 -1
  269. package/dist/cdn/chunks/MergeTagTextarea-BpVtpiNL.js.map +0 -1
  270. package/dist/cdn/chunks/ParagraphEditor-DGJmPAC1.js.map +0 -1
  271. package/dist/cdn/chunks/RestoreVersionDialog-D5qeCa0F.js.map +0 -1
  272. package/dist/cdn/chunks/RichTextEditorContent-DyGiXKKI.js.map +0 -1
  273. package/dist/cdn/chunks/SaveBlockDialog-B0TJYxd8.js.map +0 -1
  274. package/dist/cdn/chunks/SavedBlocksBrowserModal-D8Ly7LrA.js.map +0 -1
  275. package/dist/cdn/chunks/SavedBlocksPanels-Co1cbWR8.js.map +0 -1
  276. package/dist/cdn/chunks/SavedBlocksPickBar-DNtVbpm-.js.map +0 -1
  277. package/dist/cdn/chunks/TemplateSettings-BRc878ZF.js.map +0 -1
  278. package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +0 -1
  279. package/dist/cdn/chunks/TestEmailPanel-vKvruW_r.js.map +0 -1
  280. package/dist/cdn/chunks/TitleEditor-BI-9Nnj3.js.map +0 -1
  281. package/dist/cdn/chunks/Toolbar-CYnnArxv.js.map +0 -1
  282. package/dist/cdn/chunks/TplModal-B3nZeGWK.js.map +0 -1
  283. package/dist/cdn/chunks/VersionHistoryMenu-CMGfAKuV.js.map +0 -1
  284. package/dist/cdn/chunks/VersionHistoryPanels-Bb2ouQg7.js.map +0 -1
  285. package/dist/cdn/chunks/VersionPreviewBanner-573UP-g4.js.map +0 -1
  286. package/dist/cdn/chunks/WrapperBlock-DVu632LD.js.map +0 -1
  287. package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
  288. package/dist/cdn/chunks/composables-DY3anqHO.js.map +0 -1
  289. package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
  290. package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
  291. package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
  292. package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
  293. package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
  294. package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
  295. package/dist/cdn/chunks/extensions-BWVlr8Ga.js.map +0 -1
  296. package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
  297. package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
  298. package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
  299. package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
  300. package/dist/cdn/chunks/socialIcons-kYhdXJ9P.js.map +0 -1
  301. package/dist/cdn/chunks/src-B7X7x_ST.js +0 -707
  302. package/dist/cdn/chunks/src-B7X7x_ST.js.map +0 -1
  303. package/dist/cdn/chunks/src-BmzzkUf7.js.map +0 -1
  304. package/dist/cdn/chunks/src-DY2kMjoD.js.map +0 -1
  305. package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
  306. package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +0 -33
  307. package/dist/dist-CkIeJEsa.js +0 -4
  308. package/dist/dist-eAgG-nCb.js +0 -4
  309. package/dist/en-DvCaYqiR.js +0 -1
  310. package/dist/useLocalizedDisplay-CbFM0cCV.js +0 -31
  311. package/dist/withCurrentFont-y0O5kOLW.js +0 -18
@@ -1,32 +1,32 @@
1
1
  import { n as e } from "./rolldown-runtime-QGRDbDUS.js";
2
2
  import { $ as t, B as n, C as r, F as i, G as a, H as o, K as s, L as c, O as l, Q as u, R as d, S as f, _ as p, b as m, ct as h, dt as g, g as _, h as v, it as y, m as b, mt as x, o as S, p as C, pt as w, s as T, tt as E, u as D, v as O, x as k } from "./draggable-IRVFEZ-b.js";
3
- import { n as A, t as j } from "./MergeTagTextarea-BpVtpiNL.js";
4
- import { c as M } from "./LogicTagInsertButton-r2EVUtDU.js";
5
- import { t as N } from "./MergeTagInput-Dh3N6CEV.js";
3
+ import { n as A, t as j } from "./MergeTagTextarea-DJbWTYVH.js";
4
+ import { c as M } from "./LogicTagInsertButton-CQ8RiOou.js";
5
+ import { t as N } from "./MergeTagInput-D7FZ0ca0.js";
6
6
  import { t as P } from "./ToggleSwitch-C0w0srN_.js";
7
- import { C as F, S as I, _ as L, b as ee, c as R, g as z, h as B, r as te, v as V, y as ne } from "./styleConstants-Br6CIRoS.js";
8
- import { $ as re, At as ie, Bt as ae, Ft as oe, H, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as U, f as pe, gt as W, h as G, it as K, lt as q, rt as J, t as Y, v as X } from "./icons-C7vjUBLn.js";
9
- import { t as Z } from "./useI18n-DPg6rPbu.js";
10
- import { Bt as me, Dn as he, En as ge, H as _e, I as ve, Sn as ye, W as be, an as xe, dn as Se, fn as Ce, g as we, hn as Te, mn as Ee, pn as De, vn as Oe, yn as ke, yt as Ae } from "./src-DY2kMjoD.js";
11
- import { n as je, t as Me } from "./withCurrentFont-B42BKo9N.js";
12
- import { t as Ne } from "./languageName-DEEOhDWI.js";
13
- import { t as Pe } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
14
- import { F as Fe, T as Ie, _ as Le, b as Re, d as ze, f as Be, g as Ve, h as He, i as Ue, l as We, m as Ge, p as Ke, r as qe, s as Je, u as Ye, v as Xe } from "./socialIcons-kYhdXJ9P.js";
15
- import { $ as Ze, B as Qe, C as $e, H as et, O as tt, T as nt, W as rt, _ as it, b as at, h as ot, p as st, r as ct, ut as lt, v as ut } from "./keys-ywH4jHJ2.js";
16
- import { t as dt } from "./logger-CqQTfJGx.js";
17
- import { c as ft, r as pt } from "./usePopoverPosition-CBp9uwjV.js";
18
- import { n as mt } from "./useLocalizedDisplay-B5wMJLru.js";
19
- import { _ as ht } from "./dist-BtWMy7UQ.js";
20
- import { t as gt } from "./blockTypeIcons-CGxNYHVA.js";
7
+ import { C as F, S as I, _ as L, b as ee, c as R, g as z, h as B, r as te, s as ne, v as V, y as H } from "./styleConstants-Br6CIRoS.js";
8
+ import { $ as re, At as ie, Bt as ae, Ft as oe, H as U, Mt as se, O as ce, R as le, _ as ue, _t as de, c as fe, et as W, f as G, gt as K, h as q, it as J, lt as Y, rt as X, t as pe, v as Z } from "./icons-BJ6AtVgu.js";
9
+ import { t as Q } from "./useI18n-DPg6rPbu.js";
10
+ import { Bt as me, Cn as he, Dn as ge, H as _e, Ht as ve, I as ye, Jt as be, Mn as xe, Nn as Se, Sn as Ce, Ut as we, Vt as Te, W as Ee, Wt as De, Yt as Oe, bn as ke, g as Ae, kn as je, qt as Me, tn as Ne, wn as Pe, xn as Fe, yt as Ie } from "./src-BHgVGOTi.js";
11
+ import { n as Le } from "./useLocalizedDisplay-C3lIetmX.js";
12
+ import { $ as Re, B as ze, C as Be, H as Ve, O as He, T as Ue, W as We, _ as Ge, b as Ke, h as qe, p as Je, r as Ye, ut as Xe, v as Ze } from "./keys-ywH4jHJ2.js";
13
+ import { F as Qe, T as $e, _ as et, b as tt, d as nt, f as rt, g as it, h as at, i as ot, l as st, m as ct, p as lt, r as ut, s as dt, u as ft, v as pt } from "./socialIcons-Df9dNe7I.js";
14
+ import { n as mt, t as ht } from "./withCurrentFont-ufGLu2Vt.js";
15
+ import { t as gt } from "./languageName-DEEOhDWI.js";
16
+ import { t as _t } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
17
+ import { t as vt } from "./logger-CqQTfJGx.js";
18
+ import { c as yt, r as bt } from "./usePopoverPosition-CBp9uwjV.js";
19
+ import { _ as xt } from "./dist-BtWMy7UQ.js";
20
+ import { t as St } from "./blockTypeIcons-DBoP1HkR.js";
21
21
  // src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
22
- var _t = [
22
+ var Ct = [
23
23
  "aria-checked",
24
24
  "aria-label",
25
25
  "disabled",
26
26
  "aria-disabled",
27
27
  "title",
28
28
  "onClick"
29
- ], vt = { key: 1 }, Q = /* @__PURE__ */ r({
29
+ ], wt = { key: 1 }, $ = /* @__PURE__ */ r({
30
30
  __name: "SlidingPillSelect",
31
31
  props: {
32
32
  options: {},
@@ -71,14 +71,14 @@ var _t = [
71
71
  key: 0,
72
72
  size: 14,
73
73
  "stroke-width": 2
74
- })) : (i(), p("span", vt, x(t.label), 1))], 12, _t))), 128))], 4));
74
+ })) : (i(), p("span", wt, x(t.label), 1))], 12, Ct))), 128))], 4));
75
75
  }
76
- }), yt = { class: "tpl:flex tpl:items-stretch" }, bt = [
76
+ }), Tt = { class: "tpl:flex tpl:items-stretch" }, Et = [
77
77
  "data-testid",
78
78
  "value",
79
79
  "min",
80
80
  "max"
81
- ], xt = /* @__PURE__ */ r({
81
+ ], Dt = /* @__PURE__ */ r({
82
82
  __name: "NumberWithSuffix",
83
83
  props: {
84
84
  modelValue: {},
@@ -94,7 +94,7 @@ var _t = [
94
94
  let t = e.target;
95
95
  t.validity?.badInput || n("update:modelValue", Number(t.value));
96
96
  }
97
- return (t, n) => (i(), p("div", yt, [b("input", {
97
+ return (t, n) => (i(), p("div", Tt, [b("input", {
98
98
  type: "number",
99
99
  "data-testid": e.testid,
100
100
  class: g(h(z)),
@@ -102,14 +102,14 @@ var _t = [
102
102
  min: e.min,
103
103
  max: e.max,
104
104
  onInput: r
105
- }, null, 42, bt), b("span", { class: g(h(L)) }, x(e.suffix), 3)]));
105
+ }, null, 42, Et), b("span", { class: g(h(L)) }, x(e.suffix), 3)]));
106
106
  }
107
- }), St = [
107
+ }), Ot = [
108
108
  "aria-pressed",
109
109
  "aria-label",
110
110
  "title",
111
111
  "data-testid"
112
- ], Ct = /* @__PURE__ */ r({
112
+ ], kt = /* @__PURE__ */ r({
113
113
  __name: "LinkToggle",
114
114
  props: {
115
115
  linked: { type: Boolean },
@@ -128,7 +128,7 @@ var _t = [
128
128
  title: e.linked ? e.unlinkLabel : e.linkLabel,
129
129
  "data-testid": e.testid,
130
130
  onClick: r[0] ||= (e) => n("toggle")
131
- }, [e.linked ? (i(), v(h(q), {
131
+ }, [e.linked ? (i(), v(h(Y), {
132
132
  key: 0,
133
133
  size: 14,
134
134
  "stroke-width": 2
@@ -136,12 +136,12 @@ var _t = [
136
136
  key: 1,
137
137
  size: 14,
138
138
  "stroke-width": 2
139
- }))], 10, St));
139
+ }))], 10, Ot));
140
140
  }
141
- }), wt = {
141
+ }), At = {
142
142
  key: 0,
143
143
  class: "tpl:mb-3.5"
144
- }, Tt = { class: "tpl:mb-3.5" }, Et = { class: "tpl:mb-3.5" }, Dt = /* @__PURE__ */ r({
144
+ }, jt = { class: "tpl:mb-3.5" }, Mt = { class: "tpl:mb-3.5" }, Nt = /* @__PURE__ */ r({
145
145
  __name: "BorderControl",
146
146
  props: {
147
147
  path: {},
@@ -150,7 +150,7 @@ var _t = [
150
150
  },
151
151
  emits: ["update:modelValue"],
152
152
  setup(e, { emit: t }) {
153
- let n = e, r = t, { t: s } = Z(), c = {
153
+ let n = e, r = t, { t: s } = Q(), c = {
154
154
  width: 0,
155
155
  style: "solid",
156
156
  color: "#000000"
@@ -160,7 +160,7 @@ var _t = [
160
160
  }
161
161
  let u = C(() => {
162
162
  let e = n.modelValue;
163
- return !e || ke.every((t) => l(e[t], e.top));
163
+ return !e || Pe.every((t) => l(e[t], e.top));
164
164
  }), d = E(u.value);
165
165
  o(u, (e) => {
166
166
  !e && d.value && (d.value = !1);
@@ -168,13 +168,13 @@ var _t = [
168
168
  let f = E("top"), m = C(() => n.modelValue?.[d.value ? "top" : f.value] ?? c), y = (e) => !!e && e.width > 0;
169
169
  function S(e) {
170
170
  if (d.value) {
171
- r("update:modelValue", y(e) ? he(e) : void 0);
171
+ r("update:modelValue", y(e) ? Se(e) : void 0);
172
172
  return;
173
173
  }
174
174
  let t = {
175
- ...n.modelValue ?? he(c),
175
+ ...n.modelValue ?? Se(c),
176
176
  [f.value]: e
177
- }, i = ke.some((e) => y(t[e]));
177
+ }, i = Pe.some((e) => y(t[e]));
178
178
  r("update:modelValue", i ? t : void 0);
179
179
  }
180
180
  function w(e) {
@@ -197,10 +197,10 @@ var _t = [
197
197
  d.value = !0;
198
198
  let e = n.modelValue;
199
199
  if (!e) return;
200
- let t = y(e[f.value]) ? e[f.value] : ke.map((t) => e[t]).find(y);
201
- r("update:modelValue", t ? he(t) : void 0);
200
+ let t = y(e[f.value]) ? e[f.value] : Pe.map((t) => e[t]).find(y);
201
+ r("update:modelValue", t ? Se(t) : void 0);
202
202
  }
203
- let j = C(() => ke.map((e) => ({
203
+ let j = C(() => Pe.map((e) => ({
204
204
  value: e,
205
205
  label: s.spacingControl[e]
206
206
  })));
@@ -208,7 +208,7 @@ var _t = [
208
208
  path: e.path,
209
209
  label: h(s).blockSettings.border
210
210
  }, {
211
- "label-actions": a(() => [k(Ct, {
211
+ "label-actions": a(() => [k(kt, {
212
212
  linked: d.value,
213
213
  "link-label": h(s).blockSettings.linkSides,
214
214
  "unlink-label": h(s).blockSettings.unlinkSides,
@@ -221,19 +221,19 @@ var _t = [
221
221
  "testid"
222
222
  ])]),
223
223
  default: a(() => [
224
- d.value ? _("", !0) : (i(), p("div", wt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderSide), 3), k(Q, {
224
+ d.value ? _("", !0) : (i(), p("div", At, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderSide), 3), k($, {
225
225
  options: j.value,
226
226
  "model-value": f.value,
227
227
  "onUpdate:modelValue": n[0] ||= (e) => f.value = e
228
228
  }, null, 8, ["options", "model-value"])])),
229
- b("div", Tt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderWidth), 3), k(xt, {
229
+ b("div", jt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderWidth), 3), k(Dt, {
230
230
  "model-value": m.value.width,
231
231
  min: 0,
232
232
  suffix: "px",
233
233
  testid: `${e.testidPrefix}-border-width-input`,
234
234
  "onUpdate:modelValue": w
235
235
  }, null, 8, ["model-value", "testid"])]),
236
- m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Et, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderStyle), 3), k(Q, {
236
+ m.value.width > 0 ? (i(), p(D, { key: 1 }, [b("div", Mt, [b("label", { class: g(h(V)) }, x(h(s).blockSettings.borderStyle), 3), k($, {
237
237
  options: [
238
238
  {
239
239
  value: "solid",
@@ -258,10 +258,10 @@ var _t = [
258
258
  _: 1
259
259
  }, 8, ["path", "label"]));
260
260
  }
261
- }), Ot = {
261
+ }), Pt = {
262
262
  key: 1,
263
263
  class: "tpl:grid tpl:grid-cols-2 tpl:gap-2"
264
- }, kt = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, At = /* @__PURE__ */ r({
264
+ }, Ft = { class: "tpl:mb-1 tpl:block tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, It = /* @__PURE__ */ r({
265
265
  __name: "RadiusControl",
266
266
  props: {
267
267
  path: {},
@@ -272,7 +272,7 @@ var _t = [
272
272
  },
273
273
  emits: ["update:modelValue"],
274
274
  setup(e, { emit: t }) {
275
- let n = e, r = t, { t: s } = Z(), l = {
275
+ let n = e, r = t, { t: s } = Q(), l = {
276
276
  topLeft: "cornerTopLeft",
277
277
  topRight: "cornerTopRight",
278
278
  bottomRight: "cornerBottomRight",
@@ -290,7 +290,7 @@ var _t = [
290
290
  bottomRight: e,
291
291
  bottomLeft: e
292
292
  } : e;
293
- }), f = C(() => Oe.every((e) => d.value[e] === d.value.topLeft)), m = E(f.value);
293
+ }), f = C(() => he.every((e) => d.value[e] === d.value.topLeft)), m = E(f.value);
294
294
  o(f, (e) => {
295
295
  !e && m.value && (m.value = !1);
296
296
  });
@@ -313,7 +313,7 @@ var _t = [
313
313
  path: e.path,
314
314
  label: e.label
315
315
  }, {
316
- "label-actions": a(() => [k(Ct, {
316
+ "label-actions": a(() => [k(kt, {
317
317
  linked: m.value,
318
318
  "link-label": h(s).blockSettings.linkCorners,
319
319
  "unlink-label": h(s).blockSettings.unlinkCorners,
@@ -325,7 +325,7 @@ var _t = [
325
325
  "unlink-label",
326
326
  "testid"
327
327
  ])]),
328
- default: a(() => [m.value ? (i(), v(xt, {
328
+ default: a(() => [m.value ? (i(), v(Dt, {
329
329
  key: 0,
330
330
  "model-value": d.value.topLeft,
331
331
  min: 0,
@@ -337,7 +337,7 @@ var _t = [
337
337
  "model-value",
338
338
  "max",
339
339
  "testid"
340
- ])) : (i(), p("div", Ot, [(i(), p(D, null, c(u, (t) => b("div", { key: t }, [b("label", kt, x(h(s).blockSettings[l[t]]), 1), k(xt, {
340
+ ])) : (i(), p("div", Pt, [(i(), p(D, null, c(u, (t) => b("div", { key: t }, [b("label", Ft, x(h(s).blockSettings[l[t]]), 1), k(Dt, {
341
341
  "model-value": d.value[t],
342
342
  min: 0,
343
343
  max: e.max,
@@ -353,10 +353,14 @@ var _t = [
353
353
  _: 1
354
354
  }, 8, ["path", "label"]));
355
355
  }
356
- }), jt = ["value"], Mt = { value: "" }, Nt = ["value"], Pt = { class: "tpl:flex tpl:items-stretch" }, Ft = ["value"], It = ["value"], Lt = { value: "auto" }, Rt = { value: "full" }, zt = { value: "custom" }, Bt = {
356
+ }), Lt = ["value"], Rt = { value: "" }, zt = ["value"], Bt = { class: "tpl:flex tpl:items-stretch" }, Vt = ["value"], Ht = ["value"], Ut = ["value"], Wt = ["value"], Gt = { value: "auto" }, Kt = { value: "full" }, qt = { value: "custom" }, Jt = {
357
357
  key: 0,
358
- class: "tpl:mt-2 tpl:flex tpl:items-stretch"
359
- }, Vt = ["value"], Ht = 200, Ut = /* @__PURE__ */ r({
358
+ class: "tpl:mt-2 tpl:flex tpl:items-stretch tpl:gap-2"
359
+ }, Yt = [
360
+ "value",
361
+ "min",
362
+ "max"
363
+ ], Xt = 200, Zt = /* @__PURE__ */ r({
360
364
  __name: "ButtonToolbar",
361
365
  props: {
362
366
  block: {},
@@ -364,19 +368,45 @@ var _t = [
364
368
  },
365
369
  emits: ["update"],
366
370
  setup(e, { emit: t }) {
367
- let n = e, r = t, { t: o } = Z(), s = C(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" ? "custom" : "auto");
368
- function l(e, t) {
371
+ let n = e, r = t, { t: o } = Q(), s = l(Ze, null), u = s ? Le(s) : null, d = l(Ue, null), f = C(() => n.block.width === "full" ? "full" : typeof n.block.width == "number" || Fe(n.block.width) !== null ? "custom" : "auto"), m = C(() => Fe(n.block.width) === null ? "px" : "%"), y = C(() => typeof n.block.width == "number" ? n.block.width : String(n.block.width).slice(0, -1)), S = C(() => u ? ot(u.content.value, n.block.id, d ?? void 0) : null);
372
+ function w(e, t) {
369
373
  r("update", { [e]: t });
370
374
  }
371
- function u(e) {
372
- e === "full" ? l("width", "full") : e === "custom" ? l("width", typeof n.block.width == "number" ? n.block.width : Ht) : l("width", void 0);
375
+ function T(e) {
376
+ e === "full" ? w("width", "full") : e === "custom" ? w("width", typeof n.block.width == "number" ? n.block.width : Xt) : w("width", void 0);
373
377
  }
374
- function d(e) {
375
- l("fontWeight", e === "bold" ? void 0 : e);
378
+ let E = C(() => String(je(n.block))), O = C(() => {
379
+ let e = E.value;
380
+ return ne.includes(e) ? ne : [...ne, e];
381
+ });
382
+ function j(e) {
383
+ let t = Number(e);
384
+ w("lineHeight", t === 1.2 ? void 0 : t);
376
385
  }
377
- function f(e) {
386
+ function F(e) {
387
+ w("fontWeight", e === "bold" ? void 0 : e);
388
+ }
389
+ function I(e) {
378
390
  let t = Number(e);
379
- !Number.isFinite(t) || t <= 0 || l("width", t);
391
+ if (m.value === "%") {
392
+ if (!Number.isInteger(t) || t < 1 || t > 100) return;
393
+ w("width", `${t}%`);
394
+ } else !Number.isFinite(t) || t <= 0 || w("width", t);
395
+ }
396
+ function ee(e) {
397
+ if (e === m.value) return;
398
+ let t = n.block.width, r = S.value;
399
+ if (e === "%") {
400
+ let e = t;
401
+ if (r === null) {
402
+ w("width", "50%");
403
+ return;
404
+ }
405
+ w("width", `${Math.min(100, Math.max(1, Math.round(e / r * 100)))}%`);
406
+ return;
407
+ }
408
+ let i = Fe(t);
409
+ r === null ? w("width", Xt) : w("width", Math.max(1, Math.round(r * i / 100)));
380
410
  }
381
411
  return (t, n) => (i(), p(D, null, [
382
412
  k(A, {
@@ -386,12 +416,12 @@ var _t = [
386
416
  }, {
387
417
  default: a(() => [b("select", {
388
418
  class: g(h(B)),
389
- value: h(Me)(e.block.fontFamily),
390
- onChange: n[0] ||= (e) => l("fontFamily", e.target.value || void 0)
391
- }, [b("option", Mt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
419
+ value: h(ht)(e.block.fontFamily),
420
+ onChange: n[0] ||= (e) => w("fontFamily", e.target.value || void 0)
421
+ }, [b("option", Rt, x(h(o).button.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
392
422
  key: e.value,
393
423
  value: e.value
394
- }, x(e.label), 9, Nt))), 128))], 42, jt)]),
424
+ }, x(e.label), 9, zt))), 128))], 42, Lt)]),
395
425
  _: 1
396
426
  }, 8, ["label"]),
397
427
  k(A, {
@@ -402,7 +432,7 @@ var _t = [
402
432
  default: a(() => [k(N, {
403
433
  "model-value": e.block.text,
404
434
  type: "text",
405
- "onUpdate:modelValue": n[1] ||= (e) => l("text", e)
435
+ "onUpdate:modelValue": n[1] ||= (e) => w("text", e)
406
436
  }, null, 8, ["model-value"])]),
407
437
  _: 1
408
438
  }, 8, ["label"]),
@@ -415,7 +445,7 @@ var _t = [
415
445
  "model-value": e.block.url,
416
446
  type: "url",
417
447
  placeholder: h(o).button.urlPlaceholder,
418
- "onUpdate:modelValue": n[2] ||= (e) => l("url", e)
448
+ "onUpdate:modelValue": n[2] ||= (e) => w("url", e)
419
449
  }, null, 8, ["model-value", "placeholder"]), e.block.url ? (i(), v(A, {
420
450
  key: 0,
421
451
  path: "openInNewTab",
@@ -427,7 +457,7 @@ var _t = [
427
457
  class: "tpl:mt-2 tpl:text-[12px] tpl:text-[var(--tpl-text-muted)]",
428
458
  "model-value": e.block.openInNewTab ?? !1,
429
459
  label: h(o).button.openInNewTab,
430
- "onUpdate:modelValue": n[3] ||= (e) => l("openInNewTab", e)
460
+ "onUpdate:modelValue": n[3] ||= (e) => w("openInNewTab", e)
431
461
  }, null, 8, [
432
462
  "control-id",
433
463
  "model-value",
@@ -445,7 +475,7 @@ var _t = [
445
475
  default: a(() => [k(M, {
446
476
  "model-value": e.block.backgroundColor,
447
477
  "allow-transparent": "",
448
- "onUpdate:modelValue": n[4] ||= (e) => l("backgroundColor", e)
478
+ "onUpdate:modelValue": n[4] ||= (e) => w("backgroundColor", e)
449
479
  }, null, 8, ["model-value"])]),
450
480
  _: 1
451
481
  }, 8, ["label"]),
@@ -456,37 +486,52 @@ var _t = [
456
486
  }, {
457
487
  default: a(() => [k(M, {
458
488
  "model-value": e.block.textColor,
459
- "onUpdate:modelValue": n[5] ||= (e) => l("textColor", e)
489
+ "onUpdate:modelValue": n[5] ||= (e) => w("textColor", e)
460
490
  }, null, 8, ["model-value"])]),
461
491
  _: 1
462
492
  }, 8, ["label"]),
463
- k(Dt, {
493
+ k(Nt, {
464
494
  path: "border",
465
495
  "model-value": e.block.border,
466
496
  "testid-prefix": "button",
467
- "onUpdate:modelValue": n[6] ||= (e) => l("border", e)
497
+ "onUpdate:modelValue": n[6] ||= (e) => w("border", e)
468
498
  }, null, 8, ["model-value"]),
469
- k(At, {
499
+ k(It, {
470
500
  path: "borderRadius",
471
501
  "model-value": e.block.borderRadius,
472
502
  label: h(o).button.borderRadius,
473
503
  max: 50,
474
504
  "testid-prefix": "button",
475
- "onUpdate:modelValue": n[7] ||= (e) => l("borderRadius", e)
505
+ "onUpdate:modelValue": n[7] ||= (e) => w("borderRadius", e)
476
506
  }, null, 8, ["model-value", "label"]),
477
507
  k(A, {
478
508
  label: h(o).button.fontSize,
479
509
  class: "tpl:mb-3.5",
480
510
  path: "fontSize"
481
511
  }, {
482
- default: a(() => [b("div", Pt, [b("input", {
512
+ default: a(() => [b("div", Bt, [b("input", {
483
513
  type: "number",
484
514
  class: g(h(z)),
485
515
  value: e.block.fontSize,
486
516
  min: "10",
487
517
  max: "36",
488
- onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
489
- }, null, 42, Ft), b("span", { class: g(h(L)) }, "px", 2)])]),
518
+ onInput: n[8] ||= (e) => w("fontSize", Number(e.target.value))
519
+ }, null, 42, Vt), b("span", { class: g(h(L)) }, "px", 2)])]),
520
+ _: 1
521
+ }, 8, ["label"]),
522
+ k(A, {
523
+ label: h(o).button.lineHeight,
524
+ class: "tpl:mb-3.5",
525
+ path: "lineHeight"
526
+ }, {
527
+ default: a(() => [b("select", {
528
+ class: g(h(B)),
529
+ value: E.value,
530
+ onChange: n[9] ||= (e) => j(e.target.value)
531
+ }, [(i(!0), p(D, null, c(O.value, (e) => (i(), p("option", {
532
+ key: e,
533
+ value: e
534
+ }, x(e), 9, Ut))), 128))], 42, Ht)]),
490
535
  _: 1
491
536
  }, 8, ["label"]),
492
537
  k(A, {
@@ -494,7 +539,7 @@ var _t = [
494
539
  class: "tpl:mb-3.5",
495
540
  path: "fontWeight"
496
541
  }, {
497
- default: a(() => [k(Q, {
542
+ default: a(() => [k($, {
498
543
  options: [
499
544
  {
500
545
  value: "regular",
@@ -510,7 +555,7 @@ var _t = [
510
555
  }
511
556
  ],
512
557
  "model-value": e.block.fontWeight ?? "bold",
513
- "onUpdate:modelValue": d
558
+ "onUpdate:modelValue": F
514
559
  }, null, 8, ["options", "model-value"])]),
515
560
  _: 1
516
561
  }, 8, ["label"]),
@@ -521,19 +566,32 @@ var _t = [
521
566
  }, {
522
567
  default: a(() => [b("select", {
523
568
  class: g(h(B)),
524
- value: s.value,
525
- onChange: n[9] ||= (e) => u(e.target.value)
569
+ value: f.value,
570
+ onChange: n[10] ||= (e) => T(e.target.value)
526
571
  }, [
527
- b("option", Lt, x(h(o).button.widthAuto), 1),
528
- b("option", Rt, x(h(o).button.fullWidth), 1),
529
- b("option", zt, x(h(o).button.widthCustom), 1)
530
- ], 42, It), s.value === "custom" ? (i(), p("div", Bt, [b("input", {
572
+ b("option", Gt, x(h(o).button.widthAuto), 1),
573
+ b("option", Kt, x(h(o).button.fullWidth), 1),
574
+ b("option", qt, x(h(o).button.widthCustom), 1)
575
+ ], 42, Wt), f.value === "custom" ? (i(), p("div", Jt, [b("input", {
531
576
  type: "number",
532
- class: g(h(z)),
533
- value: typeof e.block.width == "number" ? e.block.width : Ht,
534
- min: "20",
535
- onInput: n[10] ||= (e) => f(e.target.value)
536
- }, null, 42, Vt), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
577
+ class: g([h(B), "tpl:min-w-0 tpl:flex-1"]),
578
+ value: y.value,
579
+ min: m.value === "%" ? 1 : 20,
580
+ max: m.value === "%" ? 100 : void 0,
581
+ onInput: n[11] ||= (e) => I(e.target.value)
582
+ }, null, 42, Yt), k($, {
583
+ class: "tpl:w-24 tpl:shrink-0",
584
+ "aria-label": h(o).button.widthUnit,
585
+ options: [{
586
+ value: "px",
587
+ label: "px"
588
+ }, {
589
+ value: "%",
590
+ label: "%"
591
+ }],
592
+ "model-value": m.value,
593
+ "onUpdate:modelValue": ee
594
+ }, null, 8, ["aria-label", "model-value"])])) : _("", !0)]),
537
595
  _: 1
538
596
  }, 8, ["label"]),
539
597
  k(A, {
@@ -541,7 +599,7 @@ var _t = [
541
599
  class: "tpl:mb-3.5",
542
600
  path: "align"
543
601
  }, {
544
- default: a(() => [k(Q, {
602
+ default: a(() => [k($, {
545
603
  options: [
546
604
  {
547
605
  value: "left",
@@ -557,13 +615,13 @@ var _t = [
557
615
  }
558
616
  ],
559
617
  "model-value": e.block.align ?? "center",
560
- "onUpdate:modelValue": n[11] ||= (e) => l("align", e)
618
+ "onUpdate:modelValue": n[12] ||= (e) => w("align", e)
561
619
  }, null, 8, ["options", "model-value"])]),
562
620
  _: 1
563
621
  }, 8, ["label"])
564
622
  ], 64));
565
623
  }
566
- }), Wt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, Gt = { class: "tpl:flex tpl:items-center" }, Kt = ["aria-label"], qt = ["value", "aria-label"], Jt = ["aria-label"], Yt = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Xt = { class: "tpl:flex tpl:items-center" }, Zt = ["aria-label"], Qt = ["value", "aria-label"], $t = ["aria-label"], en = ["aria-label", "title"], tn = { class: "tpl:flex tpl:items-center" }, nn = ["aria-label"], rn = ["value", "aria-label"], an = ["aria-label"], on = { class: "tpl:flex tpl:items-center" }, sn = ["aria-label"], cn = ["value", "aria-label"], ln = ["aria-label"], $ = "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)]", un = "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)]", dn = /*#__PURE__*/ Pe(/* @__PURE__ */ r({
624
+ }), Qt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-1.5" }, $t = { class: "tpl:flex tpl:items-center" }, en = ["aria-label"], tn = ["value", "aria-label"], nn = ["aria-label"], rn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, an = { class: "tpl:flex tpl:items-center" }, on = ["aria-label"], sn = ["value", "aria-label"], cn = ["aria-label"], ln = ["aria-label", "title"], un = { class: "tpl:flex tpl:items-center" }, dn = ["aria-label"], fn = ["value", "aria-label"], pn = ["aria-label"], mn = { class: "tpl:flex tpl:items-center" }, hn = ["aria-label"], gn = ["value", "aria-label"], _n = ["aria-label"], vn = "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)]", yn = "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)]", bn = /*#__PURE__*/ _t(/* @__PURE__ */ r({
567
625
  __name: "SpacingControl",
568
626
  props: {
569
627
  path: {},
@@ -572,7 +630,7 @@ var _t = [
572
630
  },
573
631
  emits: ["update:modelValue"],
574
632
  setup(e, { emit: t }) {
575
- let n = e, r = t, { t: s } = Z(), c = C(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = E(c.value);
633
+ let n = e, r = t, { t: s } = Q(), c = C(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), l = E(c.value);
576
634
  o(c, (e) => {
577
635
  !e && l.value && (l.value = !1);
578
636
  });
@@ -616,126 +674,126 @@ var _t = [
616
674
  path: e.path,
617
675
  label: e.label
618
676
  }, {
619
- default: a(() => [b("div", Wt, [
620
- b("div", Gt, [
677
+ default: a(() => [b("div", Qt, [
678
+ b("div", $t, [
621
679
  b("button", {
622
680
  "aria-label": h(s).spacingControl.decreaseTop,
623
- class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
681
+ class: g([vn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
624
682
  onClick: n[0] ||= (e) => u("top", -1)
625
- }, [k(h(U), {
683
+ }, [k(h(W), {
626
684
  size: 12,
627
685
  "stroke-width": 2
628
- })], 10, Kt),
686
+ })], 10, en),
629
687
  b("input", {
630
688
  type: "number",
631
- class: g(un),
689
+ class: g(yn),
632
690
  value: e.modelValue.top,
633
691
  "aria-label": h(s).spacingControl.top,
634
692
  min: "0",
635
693
  onInput: n[1] ||= (e) => d("top", Number(e.target.value))
636
- }, null, 40, qt),
694
+ }, null, 40, tn),
637
695
  b("button", {
638
696
  "aria-label": h(s).spacingControl.increaseTop,
639
- class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
697
+ class: g([vn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
640
698
  onClick: n[2] ||= (e) => u("top", 1)
641
- }, [k(h(H), {
699
+ }, [k(h(U), {
642
700
  size: 12,
643
701
  "stroke-width": 2
644
- })], 10, Jt)
702
+ })], 10, nn)
645
703
  ]),
646
- b("div", Yt, [
647
- b("div", Xt, [
704
+ b("div", rn, [
705
+ b("div", an, [
648
706
  b("button", {
649
707
  "aria-label": h(s).spacingControl.decreaseLeft,
650
- class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
708
+ class: g([vn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
651
709
  onClick: n[3] ||= (e) => u("left", -1)
652
- }, [k(h(U), {
710
+ }, [k(h(W), {
653
711
  size: 12,
654
712
  "stroke-width": 2
655
- })], 10, Zt),
713
+ })], 10, on),
656
714
  b("input", {
657
715
  type: "number",
658
- class: g(un),
716
+ class: g(yn),
659
717
  value: e.modelValue.left,
660
718
  "aria-label": h(s).spacingControl.left,
661
719
  min: "0",
662
720
  onInput: n[4] ||= (e) => d("left", Number(e.target.value))
663
- }, null, 40, Qt),
721
+ }, null, 40, sn),
664
722
  b("button", {
665
723
  "aria-label": h(s).spacingControl.increaseLeft,
666
- class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
724
+ class: g([vn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
667
725
  onClick: n[5] ||= (e) => u("left", 1)
668
- }, [k(h(H), {
726
+ }, [k(h(U), {
669
727
  size: 12,
670
728
  "stroke-width": 2
671
- })], 10, $t)
729
+ })], 10, cn)
672
730
  ]),
673
731
  b("button", {
674
732
  class: g(["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)]"]),
675
733
  "aria-label": l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
676
734
  title: l.value ? h(s).spacingControl.unlock : h(s).spacingControl.lockAll,
677
735
  onClick: f
678
- }, [l.value ? (i(), v(h(J), {
736
+ }, [l.value ? (i(), v(h(X), {
679
737
  key: 0,
680
738
  size: 14,
681
739
  "stroke-width": 2
682
- })) : (i(), v(h(K), {
740
+ })) : (i(), v(h(J), {
683
741
  key: 1,
684
742
  size: 14,
685
743
  "stroke-width": 2
686
- }))], 10, en),
687
- b("div", tn, [
744
+ }))], 10, ln),
745
+ b("div", un, [
688
746
  b("button", {
689
747
  "aria-label": h(s).spacingControl.decreaseRight,
690
- class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
748
+ class: g([vn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
691
749
  onClick: n[6] ||= (e) => u("right", -1)
692
- }, [k(h(U), {
750
+ }, [k(h(W), {
693
751
  size: 12,
694
752
  "stroke-width": 2
695
- })], 10, nn),
753
+ })], 10, dn),
696
754
  b("input", {
697
755
  type: "number",
698
- class: g(un),
756
+ class: g(yn),
699
757
  value: e.modelValue.right,
700
758
  "aria-label": h(s).spacingControl.right,
701
759
  min: "0",
702
760
  onInput: n[7] ||= (e) => d("right", Number(e.target.value))
703
- }, null, 40, rn),
761
+ }, null, 40, fn),
704
762
  b("button", {
705
763
  "aria-label": h(s).spacingControl.increaseRight,
706
- class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
764
+ class: g([vn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
707
765
  onClick: n[8] ||= (e) => u("right", 1)
708
- }, [k(h(H), {
766
+ }, [k(h(U), {
709
767
  size: 12,
710
768
  "stroke-width": 2
711
- })], 10, an)
769
+ })], 10, pn)
712
770
  ])
713
771
  ]),
714
- b("div", on, [
772
+ b("div", mn, [
715
773
  b("button", {
716
774
  "aria-label": h(s).spacingControl.decreaseBottom,
717
- class: g([$, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
775
+ class: g([vn, "tpl:rounded-l-[var(--tpl-radius-sm)]"]),
718
776
  onClick: n[9] ||= (e) => u("bottom", -1)
719
- }, [k(h(U), {
777
+ }, [k(h(W), {
720
778
  size: 12,
721
779
  "stroke-width": 2
722
- })], 10, sn),
780
+ })], 10, hn),
723
781
  b("input", {
724
782
  type: "number",
725
- class: g(un),
783
+ class: g(yn),
726
784
  value: e.modelValue.bottom,
727
785
  "aria-label": h(s).spacingControl.bottom,
728
786
  min: "0",
729
787
  onInput: n[10] ||= (e) => d("bottom", Number(e.target.value))
730
- }, null, 40, cn),
788
+ }, null, 40, gn),
731
789
  b("button", {
732
790
  "aria-label": h(s).spacingControl.increaseBottom,
733
- class: g([$, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
791
+ class: g([vn, "tpl:rounded-r-[var(--tpl-radius-sm)]"]),
734
792
  onClick: n[11] ||= (e) => u("bottom", 1)
735
- }, [k(h(H), {
793
+ }, [k(h(U), {
736
794
  size: 12,
737
795
  "stroke-width": 2
738
- })], 10, ln)
796
+ })], 10, _n)
739
797
  ])
740
798
  ])]),
741
799
  _: 1
@@ -743,19 +801,19 @@ var _t = [
743
801
  }
744
802
  }), [["__scopeId", "data-v-94c2e6ff"]]);
745
803
  // src/composables/useNaturalImageSize.ts
746
- function fn(e) {
804
+ function xn(e) {
747
805
  let t = E(null), n = () => {};
748
806
  return o(e, (e) => {
749
- n(), t.value = null, e && (n = Ke(e, (e) => {
807
+ n(), t.value = null, e && (n = lt(e, (e) => {
750
808
  t.value = e;
751
809
  }));
752
810
  }, { immediate: !0 }), t;
753
811
  }
754
- function pn() {
755
- let e = l($e, null);
756
- return async (t) => Ge(e ? await mn(e, t) : t);
812
+ function Sn() {
813
+ let e = l(Be, null);
814
+ return async (t) => ct(e ? await Cn(e, t) : t);
757
815
  }
758
- function mn(e, t) {
816
+ function Cn(e, t) {
759
817
  let n = (e) => typeof e == "string" && e.length > 0 ? e : t;
760
818
  e.lookup(t);
761
819
  let r = e.get(t);
@@ -766,13 +824,13 @@ function mn(e, t) {
766
824
  }) : Promise.resolve(n(r));
767
825
  }
768
826
  // src/components/toolbar/BackgroundImageControl.vue?vue&type=script&setup=true&lang.ts
769
- var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"], vn = ["data-testid"], yn = ["aria-label", "data-testid"], bn = [
827
+ var wn = { class: "tpl:space-y-3.5" }, Tn = ["data-testid"], En = ["data-testid"], Dn = ["data-testid"], On = ["aria-label", "data-testid"], kn = [
770
828
  "aria-label",
771
829
  "title",
772
830
  "aria-pressed",
773
831
  "data-testid",
774
832
  "onClick"
775
- ], xn = ["data-testid"], Sn = /* @__PURE__ */ r({
833
+ ], An = ["data-testid"], jn = /* @__PURE__ */ r({
776
834
  __name: "BackgroundImageControl",
777
835
  props: {
778
836
  hideLabel: { type: Boolean },
@@ -783,14 +841,14 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
783
841
  },
784
842
  emits: ["update:modelValue"],
785
843
  setup(e, { emit: t }) {
786
- let n = e, r = t, { t: a } = Z(), o = l(Qe, _e.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f = pn(), y;
844
+ let n = e, r = t, { t: a } = Q(), o = l(ze, _e.liquid), s = C(() => typeof n.modelValue?.url == "string" ? n.modelValue.url : ""), d = C(() => s.value.trim() !== ""), f = Sn(), y;
787
845
  u(() => clearTimeout(y));
788
846
  function S(e) {
789
- n.measure && !be(e, o) && (y = setTimeout(async () => {
847
+ n.measure && !Ee(e, o) && (y = setTimeout(async () => {
790
848
  let t = await f(e), i = n.modelValue;
791
849
  t && i?.url === e && r("update:modelValue", {
792
850
  ...i,
793
- ...He(t)
851
+ ...at(t)
794
852
  });
795
853
  }, 300));
796
854
  }
@@ -799,11 +857,11 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
799
857
  r("update:modelValue", void 0);
800
858
  return;
801
859
  }
802
- let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? Te(e), s = n.measure ? t : null;
860
+ let { naturalWidth: i, naturalHeight: a, ...o } = n.modelValue ?? De(e), s = n.measure ? t : null;
803
861
  r("update:modelValue", {
804
862
  ...o,
805
863
  url: e,
806
- ...s ? He(s) : {}
864
+ ...s ? at(s) : {}
807
865
  }), s || S(e);
808
866
  }
809
867
  function T(e) {
@@ -835,7 +893,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
835
893
  "bottom-left": a.blockSettings.backgroundPositionBottomLeft,
836
894
  "bottom-center": a.blockSettings.backgroundPositionBottomCenter,
837
895
  "bottom-right": a.blockSettings.backgroundPositionBottomRight
838
- })), j = C(() => Ee.flatMap((e) => De.map((t) => ({
896
+ })), j = C(() => we.flatMap((e) => ve.map((t) => ({
839
897
  x: t,
840
898
  y: e,
841
899
  label: A.value[`${e}-${t}`]
@@ -843,12 +901,12 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
843
901
  function M(e) {
844
902
  return n.modelValue?.position?.x === e.x && n.modelValue?.position?.y === e.y;
845
903
  }
846
- let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = Ye({
904
+ let F = E(), { canBrowse: I, isUploading: L, showOverlay: ee, openMediaBrowser: R } = ft({
847
905
  target: F,
848
- blocked: () => be(s.value, o),
849
- apply: (e) => w(e.url, Le(e.width, e.height))
906
+ blocked: () => Ee(s.value, o),
907
+ apply: (e) => w(e.url, et(e.width, e.height))
850
908
  });
851
- return (t, n) => (i(), p("div", hn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
909
+ return (t, n) => (i(), p("div", wn, [b("div", null, [e.hideLabel ? _("", !0) : (i(), p("label", {
852
910
  key: 0,
853
911
  class: g(h(V))
854
912
  }, x(h(a).blockSettings.backgroundImage), 3)), b("div", {
@@ -857,7 +915,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
857
915
  class: "tpl:relative",
858
916
  "data-testid": `${e.testidPrefix}-bg-url`
859
917
  }, [
860
- h(ee) ? (i(), v(Be, {
918
+ h(ee) ? (i(), v(rt, {
861
919
  key: 0,
862
920
  uploading: h(L)
863
921
  }, null, 8, ["uploading"])) : _("", !0),
@@ -881,16 +939,16 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
881
939
  }, [k(h(de), {
882
940
  size: 14,
883
941
  "stroke-width": 1.5
884
- }), m(" " + x(h(a).image.browseMedia), 1)], 8, _n)) : _("", !0)
885
- ], 8, gn)]), d.value && e.modelValue ? (i(), p(D, { key: 0 }, [
942
+ }), m(" " + x(h(a).image.browseMedia), 1)], 8, En)) : _("", !0)
943
+ ], 8, Tn)]), d.value && e.modelValue ? (i(), p(D, { key: 0 }, [
886
944
  e.heroMode ? _("", !0) : (i(), p("div", {
887
945
  key: 0,
888
946
  "data-testid": `${e.testidPrefix}-bg-size`
889
- }, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundSize), 3), k(Q, {
947
+ }, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundSize), 3), k($, {
890
948
  options: O.value,
891
949
  "model-value": e.modelValue.size,
892
950
  "onUpdate:modelValue": n[1] ||= (e) => T({ size: e })
893
- }, null, 8, ["options", "model-value"])], 8, vn)),
951
+ }, null, 8, ["options", "model-value"])], 8, Dn)),
894
952
  b("div", null, [b("label", { class: g(h(V)) }, x(h(a).blockSettings.backgroundPosition), 3), b("div", {
895
953
  role: "group",
896
954
  "aria-label": h(a).blockSettings.backgroundPosition,
@@ -908,7 +966,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
908
966
  x: t.x,
909
967
  y: t.y
910
968
  } })
911
- }, [b("span", { class: g(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", M(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, bn))), 128))], 8, yn)]),
969
+ }, [b("span", { class: g(["tpl:block tpl:h-1.5 tpl:w-1.5 tpl:rounded-full", M(t) ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-text-dim)]"]) }, null, 2)], 10, kn))), 128))], 8, On)]),
912
970
  e.heroMode ? _("", !0) : (i(), p("div", {
913
971
  key: 1,
914
972
  "data-testid": `${e.testidPrefix}-bg-repeat`
@@ -917,10 +975,10 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
917
975
  "model-value": e.modelValue.repeat,
918
976
  label: h(a).blockSettings.backgroundRepeat,
919
977
  "onUpdate:modelValue": n[2] ||= (e) => T({ repeat: e })
920
- }, null, 8, ["model-value", "label"])], 8, xn))
978
+ }, null, 8, ["model-value", "label"])], 8, An))
921
979
  ], 64)) : _("", !0)]));
922
980
  }
923
- }), Cn = ["data-testid"], wn = ["data-testid"], Tn = /* @__PURE__ */ r({
981
+ }), Mn = ["data-testid"], Nn = ["data-testid"], Pn = /* @__PURE__ */ r({
924
982
  __name: "CollapsibleSection",
925
983
  props: {
926
984
  title: {},
@@ -939,29 +997,29 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
939
997
  class: g(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
940
998
  size: 12,
941
999
  "stroke-width": 2
942
- }, null, 8, ["class"]), b("span", null, x(e.title), 1)], 8, Cn), s(b("div", {
1000
+ }, null, 8, ["class"]), b("span", null, x(e.title), 1)], 8, Mn), s(b("div", {
943
1001
  class: "tpl:mt-3",
944
1002
  "data-testid": e.headerTestId ? `${e.headerTestId}-content` : void 0
945
- }, [d(t.$slots, "default")], 8, wn), [[T, e.open]])], 2));
1003
+ }, [d(t.$slots, "default")], 8, Nn), [[T, e.open]])], 2));
946
1004
  }
947
- }), En = {
1005
+ }), Fn = {
948
1006
  key: 0,
949
1007
  "data-testid": "section-hero-columns-note",
950
1008
  class: "tpl:mt-3.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
951
- }, Dn = {
1009
+ }, In = {
952
1010
  key: 1,
953
1011
  "data-testid": "section-hero",
954
1012
  class: "tpl:mt-3.5 tpl:space-y-3.5"
955
- }, On = { "data-testid": "section-hero-height" }, kn = {
1013
+ }, Ln = { "data-testid": "section-hero-height" }, Rn = {
956
1014
  key: 0,
957
1015
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
958
- }, An = {
1016
+ }, zn = {
959
1017
  key: 1,
960
1018
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
961
- }, jn = {
1019
+ }, Bn = {
962
1020
  key: 1,
963
1021
  "data-testid": "section-hero-align"
964
- }, Mn = 300, Nn = /* @__PURE__ */ r({
1022
+ }, Vn = 300, Hn = /* @__PURE__ */ r({
965
1023
  __name: "HeroControl",
966
1024
  props: { section: {} },
967
1025
  emits: ["update"],
@@ -969,7 +1027,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
969
1027
  function n(e) {
970
1028
  return typeof e == "number" && Number.isFinite(e) && e >= 1;
971
1029
  }
972
- let r = e, a = t, { t: o } = Z(), s = l(Qe, _e.liquid), c = l(ut, null), u = l(nt, void 0), d = pn(), f = C(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = C(() => f.value.trim() !== ""), y = C(() => be(f.value, s)), S = C(() => r.section.hero), w = C(() => r.section.columns === "1"), T = C(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), E = C(() => n(S.value?.height) ? S.value.height : Mn), D = C(() => [
1030
+ let r = e, a = t, { t: o } = Q(), s = l(ze, _e.liquid), c = l(Ze, null), u = l(Ue, void 0), d = Sn(), f = C(() => typeof r.section.backgroundImage?.url == "string" ? r.section.backgroundImage.url : ""), m = C(() => f.value.trim() !== ""), y = C(() => Ee(f.value, s)), S = C(() => r.section.hero), w = C(() => r.section.columns === "1"), T = C(() => S.value ? n(S.value.height) ? "fixed" : "image" : "fit"), E = C(() => n(S.value?.height) ? S.value.height : Vn), D = C(() => [
973
1031
  {
974
1032
  value: "fit",
975
1033
  label: o.blockSettings.heroHeightFit
@@ -996,9 +1054,9 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
996
1054
  value: "bottom",
997
1055
  label: o.blockSettings.heroAlignBottom
998
1056
  }
999
- ]), A = C(() => T.value === "image" && m.value && !y.value && Se(r.section.backgroundImage) === null);
1057
+ ]), A = C(() => T.value === "image" && m.value && !y.value && me(r.section.backgroundImage) === null);
1000
1058
  function j() {
1001
- return (c ? Je(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? We(c?.state.content.settings);
1059
+ return (c ? dt(c.content.value, r.section.id, u, c.activeLocale?.value ?? void 0) : null) ?? st(c?.state.content.settings);
1002
1060
  }
1003
1061
  function M(e) {
1004
1062
  let t = S.value?.verticalAlign ?? "middle";
@@ -1014,7 +1072,7 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
1014
1072
  a("update", { hero: void 0 });
1015
1073
  return;
1016
1074
  }
1017
- let n = Se(r.section.backgroundImage), i = n === null ? Mn : Math.round(j() * n);
1075
+ let n = me(r.section.backgroundImage), i = n === null ? Vn : Math.round(j() * n);
1018
1076
  a("update", { hero: {
1019
1077
  height: i,
1020
1078
  verticalAlign: t
@@ -1022,11 +1080,11 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
1022
1080
  }
1023
1081
  async function N() {
1024
1082
  let e = r.section.backgroundImage;
1025
- if (!e || !m.value || y.value || Se(e) !== null) return;
1083
+ if (!e || !m.value || y.value || me(e) !== null) return;
1026
1084
  let t = e.url, n = await d(t), i = r.section.backgroundImage;
1027
1085
  n && i && i.url === t && a("update", { backgroundImage: {
1028
1086
  ...i,
1029
- ...He(n)
1087
+ ...at(n)
1030
1088
  } });
1031
1089
  }
1032
1090
  function P(e) {
@@ -1041,17 +1099,17 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
1041
1099
  verticalAlign: e
1042
1100
  } });
1043
1101
  }
1044
- return (e, t) => !w.value && S.value ? (i(), p("p", En, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", Dn, [
1045
- b("div", On, [
1102
+ return (e, t) => !w.value && S.value ? (i(), p("p", Fn, x(h(o).section.heroNeedsOneColumn), 1)) : w.value && (m.value || S.value) ? (i(), p("div", In, [
1103
+ b("div", Ln, [
1046
1104
  b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroHeight), 3),
1047
- k(Q, {
1105
+ k($, {
1048
1106
  options: D.value,
1049
1107
  "model-value": T.value,
1050
1108
  "onUpdate:modelValue": M
1051
1109
  }, null, 8, ["options", "model-value"]),
1052
- y.value ? (i(), p("p", kn, x(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", An, x(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
1110
+ y.value ? (i(), p("p", Rn, x(h(o).blockSettings.heroMatchImageMergeTag), 1)) : A.value ? (i(), p("p", zn, x(h(o).blockSettings.heroSizeUnknown), 1)) : _("", !0)
1053
1111
  ]),
1054
- T.value === "fixed" ? (i(), v(xt, {
1112
+ T.value === "fixed" ? (i(), v(Dt, {
1055
1113
  key: 0,
1056
1114
  "model-value": E.value,
1057
1115
  min: 1,
@@ -1059,24 +1117,24 @@ var hn = { class: "tpl:space-y-3.5" }, gn = ["data-testid"], _n = ["data-testid"
1059
1117
  testid: "section-hero-height-px",
1060
1118
  "onUpdate:modelValue": P
1061
1119
  }, null, 8, ["model-value"])) : _("", !0),
1062
- S.value ? (i(), p("div", jn, [b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroAlign), 3), k(Q, {
1120
+ S.value ? (i(), p("div", Bn, [b("label", { class: g(h(V)) }, x(h(o).blockSettings.heroAlign), 3), k($, {
1063
1121
  options: O.value,
1064
1122
  "model-value": S.value.verticalAlign,
1065
1123
  "onUpdate:modelValue": F
1066
1124
  }, null, 8, ["options", "model-value"])])) : _("", !0)
1067
1125
  ])) : _("", !0);
1068
1126
  }
1069
- }), Pn = /* @__PURE__ */ new Set([
1127
+ }), Un = /* @__PURE__ */ new Set([
1070
1128
  "fullWidth",
1071
1129
  "backgroundColor",
1072
1130
  "backgroundImage",
1073
1131
  "padding",
1074
1132
  "borderRadius"
1075
1133
  ]);
1076
- function Fn(e) {
1134
+ function Wn(e) {
1077
1135
  return typeof e == "string" && e !== "";
1078
1136
  }
1079
- function In(e) {
1137
+ function Gn(e) {
1080
1138
  return e ? [
1081
1139
  e.top,
1082
1140
  e.right,
@@ -1084,40 +1142,40 @@ function In(e) {
1084
1142
  e.left
1085
1143
  ].some((e) => e !== 0) : !1;
1086
1144
  }
1087
- function Ln(e) {
1088
- return Fn(e.styles.backgroundColor) || !!e.backgroundImage;
1145
+ function Kn(e) {
1146
+ return Wn(e.styles.backgroundColor) || !!e.backgroundImage;
1089
1147
  }
1090
- function Rn(e) {
1091
- return e.fullWidth !== !0 || In(e.padding) || ge(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Pn.has(e));
1148
+ function qn(e) {
1149
+ return e.fullWidth !== !0 || Gn(e.padding) || xe(e.borderRadius) !== null ? !1 : Object.keys(e).every((e) => Un.has(e));
1092
1150
  }
1093
- function zn(e, t = {}) {
1094
- return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && we(t.layout);
1151
+ function Jn(e, t = {}) {
1152
+ return e.wrapper ? !1 : t.sectionWrapper === !1 || t.layout !== void 0 && Ae(t.layout);
1095
1153
  }
1096
- function Bn(e) {
1154
+ function Yn(e) {
1097
1155
  let t = {};
1098
- return Fn(e.styles.backgroundColor) && (t.backgroundColor = e.styles.backgroundColor), e.backgroundImage && (t.backgroundImage = e.backgroundImage), t;
1156
+ return Wn(e.styles.backgroundColor) && (t.backgroundColor = e.styles.backgroundColor), e.backgroundImage && (t.backgroundImage = e.backgroundImage), t;
1099
1157
  }
1100
- function Vn(e) {
1158
+ function Xn(e) {
1101
1159
  let t = { ...e.styles };
1102
1160
  return delete t.backgroundColor, t;
1103
1161
  }
1104
- function Hn(e, t) {
1162
+ function Zn(e, t) {
1105
1163
  if (t) return e.wrapper ? { wrapper: {
1106
1164
  ...e.wrapper,
1107
1165
  fullWidth: !0
1108
1166
  } } : {
1109
1167
  wrapper: {
1110
1168
  fullWidth: !0,
1111
- ...Bn(e)
1169
+ ...Yn(e)
1112
1170
  },
1113
- styles: Vn(e),
1171
+ styles: Xn(e),
1114
1172
  backgroundImage: void 0
1115
1173
  };
1116
1174
  let n = e.wrapper;
1117
1175
  if (!n) return {};
1118
- if (Rn(n) && !Ln(e)) {
1176
+ if (qn(n) && !Kn(e)) {
1119
1177
  let t = { ...e.styles };
1120
- return Fn(n.backgroundColor) && (t.backgroundColor = n.backgroundColor), {
1178
+ return Wn(n.backgroundColor) && (t.backgroundColor = n.backgroundColor), {
1121
1179
  wrapper: void 0,
1122
1180
  styles: t,
1123
1181
  backgroundImage: n.backgroundImage
@@ -1128,33 +1186,33 @@ function Hn(e, t) {
1128
1186
  fullWidth: !1
1129
1187
  } };
1130
1188
  }
1131
- function Un(e) {
1189
+ function Qn(e) {
1132
1190
  let t = e.wrapper;
1133
- return t && Rn(t) && !Ln(e) ? Hn(e, !1) : { wrapper: void 0 };
1191
+ return t && qn(t) && !Kn(e) ? Zn(e, !1) : { wrapper: void 0 };
1134
1192
  }
1135
1193
  // src/components/toolbar/CommonBlockSettings.vue?vue&type=script&setup=true&lang.ts
1136
- var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Kn = {
1194
+ var $n = { class: "tpl:space-y-2" }, er = { class: "tpl:flex tpl:items-center tpl:gap-2" }, tr = {
1137
1195
  key: 0,
1138
1196
  class: "tpl:space-y-2"
1139
- }, qn = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Jn = {
1197
+ }, nr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, rr = {
1140
1198
  key: 0,
1141
1199
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
1142
- }, Yn = { class: "tpl:flex tpl:gap-2" }, Xn = ["disabled"], Zn = ["disabled"], Qn = ["disabled"], $n = {
1200
+ }, ir = { class: "tpl:flex tpl:gap-2" }, ar = ["disabled"], or = ["disabled"], sr = ["disabled"], cr = {
1143
1201
  key: 1,
1144
1202
  class: "tpl:space-y-2"
1145
- }, er = ["value"], tr = { value: "" }, nr = ["label"], rr = ["value"], ir = ["value"], ar = {
1203
+ }, lr = ["value"], ur = { value: "" }, dr = ["label"], fr = ["value"], pr = ["value"], mr = {
1146
1204
  key: 0,
1147
1205
  value: "__custom__"
1148
- }, or = {
1206
+ }, hr = {
1149
1207
  key: 0,
1150
1208
  class: "tpl:space-y-2"
1151
- }, sr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, cr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, lr = { class: "tpl:flex tpl:justify-end" }, ur = ["disabled"], dr = {
1209
+ }, gr = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, _r = { class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, vr = { class: "tpl:flex tpl:justify-end" }, yr = ["disabled"], br = {
1152
1210
  key: 0,
1153
1211
  class: "tpl:text-[10px] tpl:text-[var(--tpl-text-muted)]"
1154
- }, fr = { class: "tpl:space-y-1" }, pr = { 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)]" }, mr = {
1212
+ }, xr = { class: "tpl:space-y-1" }, Sr = { 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)]" }, Cr = {
1155
1213
  key: 0,
1156
1214
  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)]"
1157
- }, hr = /* @__PURE__ */ r({
1215
+ }, wr = /* @__PURE__ */ r({
1158
1216
  __name: "CommonBlockSettings",
1159
1217
  props: {
1160
1218
  block: {},
@@ -1162,35 +1220,35 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1162
1220
  },
1163
1221
  emits: ["update"],
1164
1222
  setup(e, { emit: r }) {
1165
- let u = e, d = r, { t: f, format: w } = Z(), T = l(ut, null), O = l(tt, void 0), j = C(() => T?.activeLocale?.value), N = C(() => !!(j.value && T?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = l(it, []), L = l(ct, !1), R = l(nt, void 0), z = l(Ze, void 0), B = C(() => u.block.type === "section" || u.block.type === "wrapper"), te = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), V = C(() => u.block.type === "section" && zn(u.block, {
1223
+ let u = e, d = r, { t: f, format: w } = Q(), T = l(Ze, null), O = l(He, void 0), j = C(() => T?.activeLocale?.value), N = C(() => !!(j.value && T?.selectedBlock?.value?.l10n?.[j.value]?.hidden)), I = l(Ge, []), L = l(Ye, !1), R = l(Ue, void 0), z = l(Re, void 0), B = C(() => u.block.type === "section" || u.block.type === "wrapper"), te = C(() => u.block.type === "wrapper" ? u.block.fullWidth === !0 : u.block.type === "section" && u.block.wrapper?.fullWidth === !0), ne = C(() => u.block.type === "section" && Jn(u.block, {
1166
1224
  sectionWrapper: z,
1167
1225
  layout: R
1168
- })), ie = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
1169
- function ae(e) {
1170
- u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update", Hn(u.block, e));
1226
+ })), V = C(() => u.block.type === "wrapper" ? "layout-wrapper-full-width" : "section-background-full-width");
1227
+ function ie(e) {
1228
+ u.block.type === "wrapper" ? d("update", { fullWidth: e }) : u.block.type === "section" && d("update", Zn(u.block, e));
1171
1229
  }
1172
- let oe = C(() => u.block.type === "section" && u.block.wrapper?.fullWidth === !0), H = C(() => oe.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), se = C(() => oe.value ? "wrapper.backgroundImage" : "backgroundImage"), le = C(() => {
1230
+ let ae = C(() => u.block.type === "section" && u.block.wrapper?.fullWidth === !0), oe = C(() => ae.value ? "wrapper.backgroundColor" : "styles.backgroundColor"), U = C(() => ae.value ? "wrapper.backgroundImage" : "backgroundImage"), se = C(() => {
1173
1231
  let e = u.block;
1174
1232
  return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundColor ?? "" : e.styles.backgroundColor ?? "";
1175
- }), ue = C(() => {
1233
+ }), le = C(() => {
1176
1234
  let e = u.block;
1177
1235
  return e.type === "section" && e.wrapper?.fullWidth === !0 ? e.wrapper.backgroundImage : e.type === "section" ? e.backgroundImage : void 0;
1178
1236
  });
1179
- function de(e, t) {
1237
+ function ue(e, t) {
1180
1238
  d("update", { wrapper: {
1181
1239
  ...e,
1182
1240
  ...t
1183
1241
  } });
1184
1242
  }
1185
- function fe(e) {
1243
+ function de(e) {
1186
1244
  let t = u.block;
1187
- t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundColor: e }) : Ee("backgroundColor", e);
1245
+ t.type === "section" && t.wrapper?.fullWidth === !0 ? ue(t.wrapper, { backgroundColor: e }) : Ce("backgroundColor", e);
1188
1246
  }
1189
- function U(e) {
1247
+ function fe(e) {
1190
1248
  let t = u.block;
1191
- t.type === "section" && t.wrapper?.fullWidth === !0 ? de(t.wrapper, { backgroundImage: e }) : d("update", { backgroundImage: e });
1249
+ t.type === "section" && t.wrapper?.fullWidth === !0 ? ue(t.wrapper, { backgroundImage: e }) : d("update", { backgroundImage: e });
1192
1250
  }
1193
- let pe = l(et, null), W = ze(), G = E(!1), K = t(/* @__PURE__ */ new Set()), q = E(!1), J = E(""), Y = E(""), X = [{
1251
+ let W = l(Ve, null), G = nt(), K = E(!1), q = t(/* @__PURE__ */ new Set()), J = E(!1), Y = E(""), X = E(""), pe = [{
1194
1252
  key: "desktop",
1195
1253
  icon: re,
1196
1254
  labelKey: "showOnDesktop"
@@ -1199,49 +1257,49 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1199
1257
  icon: ce,
1200
1258
  labelKey: "showOnMobile"
1201
1259
  }];
1202
- function me(e) {
1203
- K.has(e) ? K.delete(e) : K.add(e);
1260
+ function Z(e) {
1261
+ q.has(e) ? q.delete(e) : q.add(e);
1204
1262
  }
1205
- let he = C(() => !!pe || I.length > 0 || L);
1206
- function ge(e) {
1263
+ let me = C(() => !!W || I.length > 0 || L);
1264
+ function he(e) {
1207
1265
  if (typeof e != "object" || !e || Array.isArray(e)) return !1;
1208
1266
  let t = e;
1209
1267
  return typeof t.label == "string" && typeof t.before == "string" && typeof t.after == "string";
1210
1268
  }
1211
- function _e(e, t) {
1269
+ function ge(e, t) {
1212
1270
  let n = T?.state?.selectedBlockId;
1213
1271
  u.block.id === e && (n === void 0 || n === e) ? d("update", { displayCondition: t }) : T && T.findBlockLocation(e) && T.updateBlock(e, { displayCondition: t });
1214
1272
  }
1215
- async function ve() {
1216
- if (!pe || G.value) return;
1217
- let e = u.block.id, t = T?.activeLocale?.value ?? null, n = xe(y(u.block)), r = u.block.displayCondition ? xe(y(u.block.displayCondition)) : void 0;
1218
- G.value = !0;
1273
+ async function _e() {
1274
+ if (!W || K.value) return;
1275
+ let e = u.block.id, t = T?.activeLocale?.value ?? null, n = ke(y(u.block)), r = u.block.displayCondition ? ke(y(u.block.displayCondition)) : void 0;
1276
+ K.value = !0;
1219
1277
  try {
1220
- let i = await pe(r ? {
1278
+ let i = await W(r ? {
1221
1279
  current: r,
1222
1280
  block: n
1223
1281
  } : { block: n });
1224
- if (!W.alive || (T?.activeLocale?.value ?? null) !== t || i === null) return;
1225
- if (!ge(i)) {
1226
- dt.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
1282
+ if (!G.alive || (T?.activeLocale?.value ?? null) !== t || i === null) return;
1283
+ if (!he(i)) {
1284
+ vt.warn("displayConditions.onRequest resolved a value without string label, before and after — ignoring it.");
1227
1285
  return;
1228
1286
  }
1229
- _e(e, xe(i));
1287
+ ge(e, ke(i));
1230
1288
  } finally {
1231
- W.alive && (G.value = !1);
1289
+ G.alive && (K.value = !1);
1232
1290
  }
1233
1291
  }
1234
- let ye = C(() => u.block.displayCondition ? !I.some((e) => e.label === u.block.displayCondition?.label) : !1);
1235
- function be() {
1236
- q.value = !0, ye.value && u.block.displayCondition ? (J.value = u.block.displayCondition.before, Y.value = u.block.displayCondition.after ?? "") : (J.value = "", Y.value = "");
1292
+ let ve = C(() => u.block.displayCondition ? !I.some((e) => e.label === u.block.displayCondition?.label) : !1);
1293
+ function ye() {
1294
+ J.value = !0, ve.value && u.block.displayCondition ? (Y.value = u.block.displayCondition.before, X.value = u.block.displayCondition.after ?? "") : (Y.value = "", X.value = "");
1237
1295
  }
1238
- function Se() {
1239
- let e = J.value.trim(), t = Y.value.trim();
1296
+ function be() {
1297
+ let e = Y.value.trim(), t = X.value.trim();
1240
1298
  e && (d("update", { displayCondition: {
1241
1299
  label: f.blockSettings.customCondition,
1242
1300
  before: e,
1243
1301
  after: t
1244
- } }), q.value = !1, J.value = e, Y.value = t);
1302
+ } }), J.value = !1, Y.value = e, X.value = t);
1245
1303
  }
1246
1304
  o([
1247
1305
  () => T?.state?.template?.id,
@@ -1251,44 +1309,44 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1251
1309
  () => u.block.displayCondition?.after
1252
1310
  ], () => {
1253
1311
  let e = u.block.displayCondition;
1254
- !e || !ye.value ? (q.value = !1, J.value = "", Y.value = "") : (J.value = e.before, Y.value = e.after ?? "");
1312
+ !e || !ve.value ? (J.value = !1, Y.value = "", X.value = "") : (Y.value = e.before, X.value = e.after ?? "");
1255
1313
  }, { immediate: !0 });
1256
- let we = C(() => {
1314
+ let xe = C(() => {
1257
1315
  let e = {};
1258
1316
  for (let t of I) {
1259
1317
  let n = t.group ?? "";
1260
1318
  e[n] || (e[n] = []), e[n].push(t);
1261
1319
  }
1262
1320
  return e;
1263
- }), Te = C(() => u.block.type === "section" && Ce(u.block)?.applied === !0);
1264
- function Ee(e, t) {
1321
+ }), Se = C(() => u.block.type === "section" && Te(u.block)?.applied === !0);
1322
+ function Ce(e, t) {
1265
1323
  d("update", { styles: {
1266
1324
  ...u.block.styles,
1267
1325
  [e]: t
1268
1326
  } });
1269
1327
  }
1270
- function De(e) {
1328
+ function we(e) {
1271
1329
  return u.block.visibility?.[e] !== !1;
1272
1330
  }
1273
- function Oe(e) {
1331
+ function Ee(e) {
1274
1332
  let t = {
1275
- desktop: De("desktop"),
1276
- mobile: De("mobile")
1333
+ desktop: we("desktop"),
1334
+ mobile: we("mobile")
1277
1335
  };
1278
1336
  t[e] = !t[e], d("update", { visibility: t });
1279
1337
  }
1280
1338
  return (t, r) => (i(), p("div", { class: g(["tpl:flex tpl:flex-col", e.isFirstSection ? "" : "tpl:mt-4"]) }, [
1281
- k(Tn, {
1339
+ k(Pn, {
1282
1340
  title: h(f).blockSettings.spacing,
1283
- open: K.has("spacing"),
1341
+ open: q.has("spacing"),
1284
1342
  "no-border": e.isFirstSection,
1285
- onToggle: r[1] ||= (e) => me("spacing")
1343
+ onToggle: r[1] ||= (e) => Z("spacing")
1286
1344
  }, {
1287
- default: a(() => [k(dn, {
1345
+ default: a(() => [k(bn, {
1288
1346
  path: "styles.padding",
1289
1347
  label: h(f).blockSettings.padding,
1290
1348
  "model-value": e.block.styles.padding,
1291
- "onUpdate:modelValue": r[0] ||= (e) => Ee("padding", e)
1349
+ "onUpdate:modelValue": r[0] ||= (e) => Ce("padding", e)
1292
1350
  }, null, 8, ["label", "model-value"])]),
1293
1351
  _: 1
1294
1352
  }, 8, [
@@ -1296,21 +1354,21 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1296
1354
  "open",
1297
1355
  "no-border"
1298
1356
  ]),
1299
- k(Tn, {
1357
+ k(Pn, {
1300
1358
  title: h(f).blockSettings.background,
1301
- open: K.has("bg"),
1359
+ open: q.has("bg"),
1302
1360
  "header-test-id": "block-settings-background",
1303
- onToggle: r[4] ||= (e) => me("bg")
1361
+ onToggle: r[4] ||= (e) => Z("bg")
1304
1362
  }, {
1305
1363
  default: a(() => [
1306
1364
  k(A, {
1307
- path: H.value,
1365
+ path: oe.value,
1308
1366
  label: h(f).blockSettings.color
1309
1367
  }, {
1310
1368
  default: a(() => [k(M, {
1311
- "model-value": le.value,
1369
+ "model-value": se.value,
1312
1370
  "allow-transparent": "",
1313
- "onUpdate:modelValue": fe
1371
+ "onUpdate:modelValue": de
1314
1372
  }, null, 8, ["model-value"])]),
1315
1373
  _: 1
1316
1374
  }, 8, ["path", "label"]),
@@ -1320,14 +1378,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1320
1378
  label: h(f).blockSettings.fullWidthBackground
1321
1379
  }, {
1322
1380
  "label-actions": a(({ controlId: e }) => [k(P, {
1323
- "data-testid": ie.value,
1381
+ "data-testid": V.value,
1324
1382
  "control-id": e,
1325
1383
  "hide-label": "",
1326
1384
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1327
1385
  "model-value": te.value,
1328
- disabled: V.value,
1386
+ disabled: ne.value,
1329
1387
  label: h(f).blockSettings.fullWidthBackground,
1330
- "onUpdate:modelValue": ae
1388
+ "onUpdate:modelValue": ie
1331
1389
  }, null, 8, [
1332
1390
  "data-testid",
1333
1391
  "control-id",
@@ -1339,21 +1397,21 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1339
1397
  }, 8, ["path", "label"])) : _("", !0),
1340
1398
  e.block.type === "section" ? (i(), v(A, {
1341
1399
  key: 1,
1342
- path: se.value,
1400
+ path: U.value,
1343
1401
  label: h(f).blockSettings.backgroundImage
1344
1402
  }, {
1345
- default: a(() => [k(Sn, {
1403
+ default: a(() => [k(jn, {
1346
1404
  "hide-label": "",
1347
1405
  class: "tpl:mt-3.5",
1348
- "model-value": ue.value,
1406
+ "model-value": le.value,
1349
1407
  "testid-prefix": "section",
1350
1408
  measure: "",
1351
- "hero-mode": Te.value,
1352
- "onUpdate:modelValue": U
1409
+ "hero-mode": Se.value,
1410
+ "onUpdate:modelValue": fe
1353
1411
  }, null, 8, ["model-value", "hero-mode"])]),
1354
1412
  _: 1
1355
1413
  }, 8, ["path", "label"])) : _("", !0),
1356
- oe.value ? (i(), v(A, {
1414
+ ae.value ? (i(), v(A, {
1357
1415
  key: 2,
1358
1416
  path: "styles.backgroundColor",
1359
1417
  label: h(f).blockSettings.contentBackground
@@ -1362,7 +1420,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1362
1420
  "data-testid": "section-content-background",
1363
1421
  "model-value": e.block.styles.backgroundColor ?? "",
1364
1422
  "allow-transparent": "",
1365
- "onUpdate:modelValue": r[2] ||= (e) => Ee("backgroundColor", e)
1423
+ "onUpdate:modelValue": r[2] ||= (e) => Ce("backgroundColor", e)
1366
1424
  }, null, 8, ["model-value"])]),
1367
1425
  _: 1
1368
1426
  }, 8, ["label"])) : _("", !0),
@@ -1371,7 +1429,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1371
1429
  path: "hero",
1372
1430
  label: h(f).blocks.hero
1373
1431
  }, {
1374
- default: a(() => [k(Nn, {
1432
+ default: a(() => [k(Hn, {
1375
1433
  section: e.block,
1376
1434
  onUpdate: r[3] ||= (e) => d("update", e)
1377
1435
  }, null, 8, ["section"])]),
@@ -1380,28 +1438,28 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1380
1438
  ]),
1381
1439
  _: 1
1382
1440
  }, 8, ["title", "open"]),
1383
- k(Tn, {
1441
+ k(Pn, {
1384
1442
  title: h(f).blockSettings.display,
1385
- open: K.has("display"),
1386
- onToggle: r[6] ||= (e) => me("display")
1443
+ open: q.has("display"),
1444
+ onToggle: r[6] ||= (e) => Z("display")
1387
1445
  }, {
1388
- default: a(() => [b("div", Wn, [j.value && h(O) ? (i(), v(P, {
1446
+ default: a(() => [b("div", $n, [j.value && h(O) ? (i(), v(P, {
1389
1447
  key: 0,
1390
1448
  "data-testid": "locale-hide",
1391
1449
  disabled: !h(O).locales.includes(j.value),
1392
1450
  "model-value": N.value,
1393
- label: h(w)(h(f).localization.hide, { language: h(Ne)(j.value) }),
1451
+ label: h(w)(h(f).localization.hide, { language: h(gt)(j.value) }),
1394
1452
  "onUpdate:modelValue": r[5] ||= (t) => h(T)?.setBlockHidden?.(e.block.id, t)
1395
1453
  }, null, 8, [
1396
1454
  "disabled",
1397
1455
  "model-value",
1398
1456
  "label"
1399
- ])) : _("", !0), (i(), p(D, null, c(X, (e) => k(A, {
1457
+ ])) : _("", !0), (i(), p(D, null, c(pe, (e) => k(A, {
1400
1458
  key: e.key,
1401
1459
  path: `visibility.${e.key}`,
1402
1460
  label: h(f).blockSettings[e.labelKey]
1403
1461
  }, {
1404
- label: a(() => [b("span", Gn, [(i(), v(n(e.icon), {
1462
+ label: a(() => [b("span", er, [(i(), v(n(e.icon), {
1405
1463
  size: 14,
1406
1464
  "stroke-width": 1.5
1407
1465
  })), m(" " + x(h(f).blockSettings[e.labelKey]), 1)])]),
@@ -1409,9 +1467,9 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1409
1467
  "control-id": t,
1410
1468
  "hide-label": "",
1411
1469
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
1412
- "model-value": De(e.key),
1470
+ "model-value": we(e.key),
1413
1471
  label: h(f).blockSettings[e.labelKey],
1414
- "onUpdate:modelValue": (t) => Oe(e.key)
1472
+ "onUpdate:modelValue": (t) => Ee(e.key)
1415
1473
  }, null, 8, [
1416
1474
  "control-id",
1417
1475
  "model-value",
@@ -1422,51 +1480,51 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1422
1480
  }, 1032, ["path", "label"])), 64))])]),
1423
1481
  _: 1
1424
1482
  }, 8, ["title", "open"]),
1425
- he.value ? (i(), v(Tn, {
1483
+ me.value ? (i(), v(Pn, {
1426
1484
  key: 0,
1427
1485
  "header-test-id": "display-condition-section",
1428
1486
  title: h(f).blockSettings.displayCondition,
1429
- open: K.has("condition"),
1430
- onToggle: r[11] ||= (e) => me("condition")
1487
+ open: q.has("condition"),
1488
+ onToggle: r[11] ||= (e) => Z("condition")
1431
1489
  }, {
1432
- default: a(() => [h(pe) ? (i(), p("div", Kn, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
1433
- b("p", qn, x(e.block.displayCondition.label), 1),
1434
- e.block.displayCondition.description ? (i(), p("p", Jn, x(e.block.displayCondition.description), 1)) : _("", !0),
1435
- b("div", Yn, [b("button", {
1490
+ default: a(() => [h(W) ? (i(), p("div", tr, [e.block.displayCondition ? (i(), p(D, { key: 0 }, [
1491
+ b("p", nr, x(e.block.displayCondition.label), 1),
1492
+ e.block.displayCondition.description ? (i(), p("p", rr, x(e.block.displayCondition.description), 1)) : _("", !0),
1493
+ b("div", ir, [b("button", {
1436
1494
  type: "button",
1437
1495
  "data-testid": "display-condition-edit",
1438
1496
  class: g(h(F)),
1439
- disabled: G.value,
1440
- onClick: ve
1441
- }, x(h(f).blockSettings.editCondition), 11, Xn), b("button", {
1497
+ disabled: K.value,
1498
+ onClick: _e
1499
+ }, x(h(f).blockSettings.editCondition), 11, ar), b("button", {
1442
1500
  type: "button",
1443
1501
  "data-testid": "display-condition-remove",
1444
1502
  class: g(h(F)),
1445
- disabled: G.value,
1503
+ disabled: K.value,
1446
1504
  onClick: r[7] ||= (e) => d("update", { displayCondition: void 0 })
1447
- }, x(h(f).blockSettings.removeCondition), 11, Zn)])
1505
+ }, x(h(f).blockSettings.removeCondition), 11, or)])
1448
1506
  ], 64)) : (i(), p("button", {
1449
1507
  key: 1,
1450
1508
  type: "button",
1451
1509
  "data-testid": "display-condition-request",
1452
1510
  class: g(h(F)),
1453
- disabled: G.value,
1454
- onClick: ve
1455
- }, x(h(f).blockSettings.addCondition), 11, Qn))])) : (i(), p("div", $n, [k(A, {
1511
+ disabled: K.value,
1512
+ onClick: _e
1513
+ }, x(h(f).blockSettings.addCondition), 11, sr))])) : (i(), p("div", cr, [k(A, {
1456
1514
  path: "displayCondition",
1457
1515
  label: h(f).blockSettings.displayCondition
1458
1516
  }, {
1459
1517
  default: a(() => [b("select", {
1460
1518
  "data-testid": "display-condition-select",
1461
1519
  class: g(["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)]"]),
1462
- value: q.value || ye.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1520
+ value: J.value || ve.value ? "__custom__" : e.block.displayCondition?.label ?? "",
1463
1521
  onChange: r[8] ||= (e) => {
1464
1522
  let t = e.target.value;
1465
1523
  if (t === "__custom__") {
1466
- be();
1524
+ ye();
1467
1525
  return;
1468
1526
  }
1469
- if (q.value = !1, !t) {
1527
+ if (J.value = !1, !t) {
1470
1528
  d("update", { displayCondition: void 0 });
1471
1529
  return;
1472
1530
  }
@@ -1474,43 +1532,43 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1474
1532
  n && d("update", { displayCondition: n });
1475
1533
  }
1476
1534
  }, [
1477
- b("option", tr, x(h(f).blockSettings.noCondition), 1),
1478
- (i(!0), p(D, null, c(we.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
1535
+ b("option", ur, x(h(f).blockSettings.noCondition), 1),
1536
+ (i(!0), p(D, null, c(xe.value, (e, t) => (i(), p(D, { key: t }, [t ? (i(), p("optgroup", {
1479
1537
  key: 0,
1480
1538
  label: String(t)
1481
1539
  }, [(i(!0), p(D, null, c(e, (e) => (i(), p("option", {
1482
1540
  key: e.label,
1483
1541
  value: e.label
1484
- }, x(e.label), 9, rr))), 128))], 8, nr)) : (i(!0), p(D, { key: 1 }, c(e, (e) => (i(), p("option", {
1542
+ }, x(e.label), 9, fr))), 128))], 8, dr)) : (i(!0), p(D, { key: 1 }, c(e, (e) => (i(), p("option", {
1485
1543
  key: e.label,
1486
1544
  value: e.label
1487
- }, x(e.label), 9, ir))), 128))], 64))), 128)),
1488
- h(L) ? (i(), p("option", ar, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
1489
- ], 42, er)]),
1545
+ }, x(e.label), 9, pr))), 128))], 64))), 128)),
1546
+ h(L) ? (i(), p("option", mr, x(h(f).blockSettings.customCondition), 1)) : _("", !0)
1547
+ ], 42, lr)]),
1490
1548
  _: 1
1491
- }, 8, ["label"]), q.value || ye.value ? (i(), p("div", or, [
1492
- b("div", null, [b("label", sr, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
1493
- "onUpdate:modelValue": r[9] ||= (e) => J.value = e,
1494
- rows: "2",
1495
- class: g(h(ne))
1496
- }, null, 2), [[S, J.value]])]),
1497
- b("div", null, [b("label", cr, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
1498
- "onUpdate:modelValue": r[10] ||= (e) => Y.value = e,
1549
+ }, 8, ["label"]), J.value || ve.value ? (i(), p("div", hr, [
1550
+ b("div", null, [b("label", gr, x(h(f).blockSettings.customConditionBefore), 1), s(b("textarea", {
1551
+ "onUpdate:modelValue": r[9] ||= (e) => Y.value = e,
1499
1552
  rows: "2",
1500
- class: g(h(ne))
1553
+ class: g(h(H))
1501
1554
  }, null, 2), [[S, Y.value]])]),
1502
- b("div", lr, [b("button", {
1555
+ b("div", null, [b("label", _r, x(h(f).blockSettings.customConditionAfter), 1), s(b("textarea", {
1556
+ "onUpdate:modelValue": r[10] ||= (e) => X.value = e,
1557
+ rows: "2",
1558
+ class: g(h(H))
1559
+ }, null, 2), [[S, X.value]])]),
1560
+ b("div", vr, [b("button", {
1503
1561
  type: "button",
1504
1562
  class: g(h(ee)),
1505
- disabled: !J.value.trim(),
1506
- onClick: Se
1507
- }, x(h(f).blockSettings.applyCondition), 11, ur)])
1508
- ])) : e.block.displayCondition && !ye.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", dr, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", fr, [b("pre", pr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", mr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
1563
+ disabled: !Y.value.trim(),
1564
+ onClick: be
1565
+ }, x(h(f).blockSettings.applyCondition), 11, yr)])
1566
+ ])) : e.block.displayCondition && !ve.value ? (i(), p(D, { key: 1 }, [e.block.displayCondition.description ? (i(), p("p", br, x(e.block.displayCondition.description), 1)) : _("", !0), b("div", xr, [b("pre", Sr, x(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (i(), p("pre", Cr, x(e.block.displayCondition.after), 1)) : _("", !0)])], 64)) : _("", !0)]))]),
1509
1567
  _: 1
1510
1568
  }, 8, ["title", "open"])) : _("", !0)
1511
1569
  ], 2));
1512
1570
  }
1513
- }), gr = ["title"], _r = { class: "tpl-sr-only" }, vr = ["title"], yr = { class: "tpl-sr-only" }, br = /* @__PURE__ */ r({
1571
+ }), Tr = ["title"], Er = { class: "tpl-sr-only" }, Dr = ["title"], Or = { class: "tpl-sr-only" }, kr = /* @__PURE__ */ r({
1514
1572
  __name: "FieldLabel",
1515
1573
  props: {
1516
1574
  label: {},
@@ -1518,25 +1576,25 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1518
1576
  readOnly: { type: Boolean }
1519
1577
  },
1520
1578
  setup(e) {
1521
- let { t } = Z();
1579
+ let { t } = Q();
1522
1580
  return (n, r) => (i(), p("span", null, [
1523
1581
  m(x(e.label) + " ", 1),
1524
1582
  e.readOnly ? (i(), p("span", {
1525
1583
  key: 0,
1526
1584
  title: h(t).customBlocks.dataSource.readOnlyTooltip
1527
- }, [k(h(J), {
1585
+ }, [k(h(X), {
1528
1586
  size: 12,
1529
1587
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]",
1530
1588
  "aria-hidden": "true"
1531
- }), b("span", _r, x(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, gr)) : _("", !0),
1589
+ }), b("span", Er, x(h(t).customBlocks.dataSource.readOnlyTooltip), 1)], 8, Tr)) : _("", !0),
1532
1590
  e.required ? (i(), p("span", {
1533
1591
  key: 1,
1534
1592
  class: "tpl:text-[var(--tpl-danger)]",
1535
1593
  title: h(t).customBlocks.fields.required
1536
- }, [r[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", yr, x(h(t).customBlocks.fields.required), 1)], 8, vr)) : _("", !0)
1594
+ }, [r[0] ||= b("span", { "aria-hidden": "true" }, "*", -1), b("span", Or, x(h(t).customBlocks.fields.required), 1)], 8, Dr)) : _("", !0)
1537
1595
  ]));
1538
1596
  }
1539
- }), xr = ["title"], Sr = /* @__PURE__ */ r({
1597
+ }), Ar = ["title"], jr = /* @__PURE__ */ r({
1540
1598
  __name: "BooleanField",
1541
1599
  props: {
1542
1600
  field: {},
@@ -1547,7 +1605,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1547
1605
  },
1548
1606
  emits: ["update:modelValue"],
1549
1607
  setup(e, { emit: t }) {
1550
- let n = t, { t: r } = Z();
1608
+ let n = t, { t: r } = Q();
1551
1609
  return (t, o) => (i(), p("div", {
1552
1610
  class: "tpl:mb-3.5",
1553
1611
  title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0
@@ -1561,7 +1619,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1561
1619
  disabled: e.readOnly,
1562
1620
  "onUpdate:modelValue": o[0] ||= (e) => n("update:modelValue", e)
1563
1621
  }, {
1564
- default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(J), {
1622
+ default: a(() => [m(x(e.field.label) + " ", 1), e.readOnly ? (i(), v(h(X), {
1565
1623
  key: 0,
1566
1624
  size: 12,
1567
1625
  class: "tpl:inline tpl:text-[var(--tpl-text-dim)]"
@@ -1574,9 +1632,9 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1574
1632
  "label",
1575
1633
  "required",
1576
1634
  "disabled"
1577
- ])], 8, xr));
1635
+ ])], 8, Ar));
1578
1636
  }
1579
- }), Cr = { class: "tpl:mb-3.5" }, wr = /* @__PURE__ */ r({
1637
+ }), Mr = { class: "tpl:mb-3.5" }, Nr = /* @__PURE__ */ r({
1580
1638
  __name: "FieldWrapper",
1581
1639
  props: {
1582
1640
  label: {},
@@ -1585,10 +1643,10 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1585
1643
  readOnly: { type: Boolean }
1586
1644
  },
1587
1645
  setup(e) {
1588
- return (t, n) => (i(), p("div", Cr, [e.hideLabel ? _("", !0) : (i(), p("label", {
1646
+ return (t, n) => (i(), p("div", Mr, [e.hideLabel ? _("", !0) : (i(), p("label", {
1589
1647
  key: 0,
1590
1648
  class: g(h(V))
1591
- }, [k(br, {
1649
+ }, [k(kr, {
1592
1650
  label: e.label,
1593
1651
  required: e.required,
1594
1652
  "read-only": e.readOnly
@@ -1598,7 +1656,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1598
1656
  "read-only"
1599
1657
  ])], 2)), d(t.$slots, "default")]));
1600
1658
  }
1601
- }), Tr = /* @__PURE__ */ r({
1659
+ }), Pr = /* @__PURE__ */ r({
1602
1660
  __name: "ColorField",
1603
1661
  props: {
1604
1662
  field: {},
@@ -1608,8 +1666,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1608
1666
  },
1609
1667
  emits: ["update:modelValue"],
1610
1668
  setup(e, { emit: t }) {
1611
- let n = e, r = t, { t: o } = Z(), s = l(st, pt), c = C(() => Xe(n.field, s));
1612
- return (t, n) => (i(), v(wr, {
1669
+ let n = e, r = t, { t: o } = Q(), s = l(Je, bt), c = C(() => pt(n.field, s));
1670
+ return (t, n) => (i(), v(Nr, {
1613
1671
  "hide-label": e.hideLabel,
1614
1672
  label: e.field.label,
1615
1673
  required: e.field.required,
@@ -1639,11 +1697,11 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1639
1697
  "read-only"
1640
1698
  ]));
1641
1699
  }
1642
- }), Er = [
1700
+ }), Fr = [
1643
1701
  "value",
1644
1702
  "placeholder",
1645
1703
  "title"
1646
- ], Dr = ["value", "placeholder"], Or = /* @__PURE__ */ r({
1704
+ ], Ir = ["value", "placeholder"], Lr = /* @__PURE__ */ r({
1647
1705
  __name: "ImageField",
1648
1706
  props: {
1649
1707
  field: {},
@@ -1653,12 +1711,12 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1653
1711
  },
1654
1712
  emits: ["update:modelValue"],
1655
1713
  setup(e, { emit: t }) {
1656
- let n = e, r = t, { t: o } = Z(), s = E(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = Ye({
1714
+ let n = e, r = t, { t: o } = Q(), s = E(), { canBrowse: c, isUploading: l, showOverlay: u, openMediaBrowser: d } = ft({
1657
1715
  target: s,
1658
1716
  blocked: () => !!n.readOnly,
1659
1717
  apply: (e) => r("update:modelValue", e.url)
1660
1718
  });
1661
- return (t, n) => (i(), v(wr, {
1719
+ return (t, n) => (i(), v(Nr, {
1662
1720
  "hide-label": e.hideLabel,
1663
1721
  label: e.field.label,
1664
1722
  required: e.field.required,
@@ -1669,7 +1727,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1669
1727
  ref: s,
1670
1728
  class: "tpl:relative"
1671
1729
  }, [
1672
- h(u) ? (i(), v(Be, {
1730
+ h(u) ? (i(), v(rt, {
1673
1731
  key: 0,
1674
1732
  uploading: h(l)
1675
1733
  }, null, 8, ["uploading"])) : _("", !0),
@@ -1681,14 +1739,14 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1681
1739
  placeholder: e.field.placeholder || "https://...",
1682
1740
  disabled: "",
1683
1741
  title: h(o).customBlocks.dataSource.readOnlyTooltip
1684
- }, null, 10, Er)) : (i(), p("input", {
1742
+ }, null, 10, Fr)) : (i(), p("input", {
1685
1743
  key: 2,
1686
1744
  type: "url",
1687
1745
  class: g(h(B)),
1688
1746
  value: e.modelValue,
1689
1747
  placeholder: e.field.placeholder || "https://...",
1690
1748
  onInput: n[0] ||= (e) => r("update:modelValue", e.target.value)
1691
- }, null, 42, Dr)),
1749
+ }, null, 42, Ir)),
1692
1750
  h(c) && !e.readOnly ? (i(), p("button", {
1693
1751
  key: 3,
1694
1752
  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)]",
@@ -1706,7 +1764,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1706
1764
  "read-only"
1707
1765
  ]));
1708
1766
  }
1709
- }), kr = [
1767
+ }), Rr = [
1710
1768
  "value",
1711
1769
  "placeholder",
1712
1770
  "min",
@@ -1714,7 +1772,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1714
1772
  "step",
1715
1773
  "disabled",
1716
1774
  "title"
1717
- ], Ar = /* @__PURE__ */ r({
1775
+ ], zr = /* @__PURE__ */ r({
1718
1776
  __name: "NumberField",
1719
1777
  props: {
1720
1778
  field: {},
@@ -1724,8 +1782,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1724
1782
  },
1725
1783
  emits: ["update:modelValue"],
1726
1784
  setup(e, { emit: t }) {
1727
- let n = t, { t: r } = Z();
1728
- return (t, o) => (i(), v(wr, {
1785
+ let n = t, { t: r } = Q();
1786
+ return (t, o) => (i(), v(Nr, {
1729
1787
  "hide-label": e.hideLabel,
1730
1788
  label: e.field.label,
1731
1789
  required: e.field.required,
@@ -1742,7 +1800,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1742
1800
  disabled: e.readOnly,
1743
1801
  title: e.readOnly ? h(r).customBlocks.dataSource.readOnlyTooltip : void 0,
1744
1802
  onInput: o[0] ||= (t) => !e.readOnly && n("update:modelValue", Number(t.target.value))
1745
- }, null, 42, kr)]),
1803
+ }, null, 42, Rr)]),
1746
1804
  _: 1
1747
1805
  }, 8, [
1748
1806
  "hide-label",
@@ -1751,13 +1809,13 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1751
1809
  "read-only"
1752
1810
  ]));
1753
1811
  }
1754
- }), jr = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Mr = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Nr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Pr = ["title", "onClick"], Fr = {
1812
+ }), Br = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Vr = { class: "tpl:mb-2 tpl:flex tpl:items-center tpl:justify-between" }, Hr = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]" }, Ur = ["title", "onClick"], Wr = {
1755
1813
  key: 1,
1756
1814
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1757
- }, Ir = {
1815
+ }, Gr = {
1758
1816
  key: 2,
1759
1817
  class: "tpl:m-0 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1760
- }, Lr = /* @__PURE__ */ r({
1818
+ }, Kr = /* @__PURE__ */ r({
1761
1819
  __name: "RepeatableField",
1762
1820
  props: {
1763
1821
  field: {},
@@ -1767,7 +1825,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1767
1825
  },
1768
1826
  emits: ["update:modelValue"],
1769
1827
  setup(e, { emit: t }) {
1770
- let r = e, o = t, { t: s, format: l } = Z(), u = C(() => r.modelValue || []), d = C(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = C(() => !r.field.minItems || u.value.length > r.field.minItems);
1828
+ let r = e, o = t, { t: s, format: l } = Q(), u = C(() => r.modelValue || []), d = C(() => !r.field.maxItems || u.value.length < r.field.maxItems), f = C(() => !r.field.minItems || u.value.length > r.field.minItems);
1771
1829
  function y() {
1772
1830
  if (!d.value || r.readOnly) return;
1773
1831
  let e = {};
@@ -1786,26 +1844,26 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1786
1844
  } : r);
1787
1845
  o("update:modelValue", r);
1788
1846
  }
1789
- return (t, r) => (i(), v(wr, {
1847
+ return (t, r) => (i(), v(Nr, {
1790
1848
  "hide-label": e.hideLabel,
1791
1849
  label: e.field.label,
1792
1850
  required: e.field.required,
1793
1851
  "read-only": e.readOnly
1794
1852
  }, {
1795
- default: a(() => [b("div", jr, [
1853
+ default: a(() => [b("div", Br, [
1796
1854
  (i(!0), p(D, null, c(u.value, (t, r) => (i(), p("div", {
1797
1855
  key: `${e.field.key}-${r}`,
1798
1856
  class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:p-3"
1799
- }, [b("div", Mr, [b("span", Nr, " #" + x(r + 1), 1), f.value && !e.readOnly ? (i(), p("button", {
1857
+ }, [b("div", Vr, [b("span", Hr, " #" + x(r + 1), 1), f.value && !e.readOnly ? (i(), p("button", {
1800
1858
  key: 0,
1801
1859
  type: "button",
1802
1860
  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)]",
1803
1861
  title: h(s).customBlocks.fields.removeItem,
1804
1862
  onClick: (e) => S(r)
1805
- }, [k(h(pe), {
1863
+ }, [k(h(G), {
1806
1864
  size: 12,
1807
1865
  "stroke-width": 2
1808
- })], 8, Pr)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(Kr)(a.type)), {
1866
+ })], 8, Ur)) : _("", !0)]), (i(!0), p(D, null, c(e.field.fields, (a) => (i(), v(n(h(ti)(a.type)), {
1809
1867
  key: a.key,
1810
1868
  field: a,
1811
1869
  "model-value": t[a.key],
@@ -1822,12 +1880,12 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1822
1880
  type: "button",
1823
1881
  class: g(h(R)),
1824
1882
  onClick: y
1825
- }, [k(h(H), {
1883
+ }, [k(h(U), {
1826
1884
  size: 14,
1827
1885
  "stroke-width": 2
1828
1886
  }), m(" " + x(h(s).customBlocks.fields.addItem), 1)], 2)) : _("", !0),
1829
- !d.value && !e.readOnly ? (i(), p("p", Fr, x(h(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
1830
- !f.value && !e.readOnly ? (i(), p("p", Ir, x(h(l)(h(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
1887
+ !d.value && !e.readOnly ? (i(), p("p", Wr, x(h(s).customBlocks.fields.maxItemsReached), 1)) : _("", !0),
1888
+ !f.value && !e.readOnly ? (i(), p("p", Gr, x(h(l)(h(s).customBlocks.fields.minItemsRequired, { count: e.field.minItems ?? 0 })), 1)) : _("", !0)
1831
1889
  ])]),
1832
1890
  _: 1
1833
1891
  }, 8, [
@@ -1837,11 +1895,11 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1837
1895
  "read-only"
1838
1896
  ]));
1839
1897
  }
1840
- }), Rr = [
1898
+ }), qr = [
1841
1899
  "value",
1842
1900
  "disabled",
1843
1901
  "title"
1844
- ], zr = ["value"], Br = /* @__PURE__ */ r({
1902
+ ], Jr = ["value"], Yr = /* @__PURE__ */ r({
1845
1903
  __name: "SelectField",
1846
1904
  props: {
1847
1905
  field: {},
@@ -1851,8 +1909,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1851
1909
  },
1852
1910
  emits: ["update:modelValue"],
1853
1911
  setup(e, { emit: t }) {
1854
- let n = t, { t: r } = Z();
1855
- return (t, o) => (i(), v(wr, {
1912
+ let n = t, { t: r } = Q();
1913
+ return (t, o) => (i(), v(Nr, {
1856
1914
  "hide-label": e.hideLabel,
1857
1915
  label: e.field.label,
1858
1916
  required: e.field.required,
@@ -1867,7 +1925,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1867
1925
  }, [(i(!0), p(D, null, c(e.field.options, (e) => (i(), p("option", {
1868
1926
  key: e.value,
1869
1927
  value: e.value
1870
- }, x(e.label), 9, zr))), 128))], 42, Rr)]),
1928
+ }, x(e.label), 9, Jr))), 128))], 42, qr)]),
1871
1929
  _: 1
1872
1930
  }, 8, [
1873
1931
  "hide-label",
@@ -1876,11 +1934,11 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1876
1934
  "read-only"
1877
1935
  ]));
1878
1936
  }
1879
- }), Vr = [
1937
+ }), Xr = [
1880
1938
  "value",
1881
1939
  "placeholder",
1882
1940
  "title"
1883
- ], Hr = /* @__PURE__ */ r({
1941
+ ], Zr = /* @__PURE__ */ r({
1884
1942
  __name: "TextField",
1885
1943
  props: {
1886
1944
  field: {},
@@ -1890,8 +1948,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1890
1948
  },
1891
1949
  emits: ["update:modelValue"],
1892
1950
  setup(e, { emit: t }) {
1893
- let n = t, { t: r } = Z();
1894
- return (t, o) => (i(), v(wr, {
1951
+ let n = t, { t: r } = Q();
1952
+ return (t, o) => (i(), v(Nr, {
1895
1953
  "hide-label": e.hideLabel,
1896
1954
  label: e.field.label,
1897
1955
  required: e.field.required,
@@ -1905,7 +1963,7 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1905
1963
  placeholder: e.field.placeholder,
1906
1964
  disabled: "",
1907
1965
  title: h(r).customBlocks.dataSource.readOnlyTooltip
1908
- }, null, 10, Vr)) : (i(), v(N, {
1966
+ }, null, 10, Xr)) : (i(), v(N, {
1909
1967
  key: 1,
1910
1968
  "model-value": e.modelValue,
1911
1969
  placeholder: e.field.placeholder,
@@ -1919,12 +1977,12 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1919
1977
  "read-only"
1920
1978
  ]));
1921
1979
  }
1922
- }), Ur = [
1980
+ }), Qr = [
1923
1981
  "value",
1924
1982
  "placeholder",
1925
1983
  "title"
1926
- ], Wr = "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", Gr = {
1927
- text: Hr,
1984
+ ], $r = "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", ei = {
1985
+ text: Zr,
1928
1986
  textarea: /* @__PURE__ */ r({
1929
1987
  __name: "TextareaField",
1930
1988
  props: {
@@ -1935,8 +1993,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1935
1993
  },
1936
1994
  emits: ["update:modelValue"],
1937
1995
  setup(e, { emit: t }) {
1938
- let n = t, { t: r } = Z();
1939
- return (t, o) => (i(), v(wr, {
1996
+ let n = t, { t: r } = Q();
1997
+ return (t, o) => (i(), v(Nr, {
1940
1998
  "hide-label": e.hideLabel,
1941
1999
  label: e.field.label,
1942
2000
  required: e.field.required,
@@ -1949,8 +2007,8 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1949
2007
  rows: "3",
1950
2008
  disabled: "",
1951
2009
  title: h(r).customBlocks.dataSource.readOnlyTooltip,
1952
- class: g(Wr)
1953
- }, null, 8, Ur)) : (i(), v(j, {
2010
+ class: g($r)
2011
+ }, null, 8, Qr)) : (i(), v(j, {
1954
2012
  key: 1,
1955
2013
  "model-value": e.modelValue,
1956
2014
  placeholder: e.field.placeholder,
@@ -1965,41 +2023,41 @@ var Wn = { class: "tpl:space-y-2" }, Gn = { class: "tpl:flex tpl:items-center tp
1965
2023
  ]));
1966
2024
  }
1967
2025
  }),
1968
- image: Or,
1969
- color: Tr,
1970
- number: Ar,
1971
- select: Br,
1972
- boolean: Sr,
1973
- repeatable: Lr
2026
+ image: Lr,
2027
+ color: Pr,
2028
+ number: zr,
2029
+ select: Yr,
2030
+ boolean: jr,
2031
+ repeatable: Kr
1974
2032
  };
1975
- function Kr(e) {
1976
- return Gr[e] ?? Hr;
2033
+ function ti(e) {
2034
+ return ei[e] ?? Zr;
1977
2035
  }
1978
2036
  // src/components/toolbar/CustomBlockToolbar.vue?vue&type=script&setup=true&lang.ts
1979
- var qr = {
2037
+ var ni = {
1980
2038
  key: 0,
1981
2039
  class: "tpl:p-4"
1982
- }, Jr = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Yr = { key: 1 }, Xr = {
2040
+ }, ri = { class: "tpl:m-0 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ii = { key: 1 }, ai = {
1983
2041
  key: 0,
1984
2042
  class: "tpl:m-0 tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
1985
- }, Zr = {
2043
+ }, oi = {
1986
2044
  key: 1,
1987
2045
  class: "tpl:mb-4"
1988
- }, Qr = {
2046
+ }, si = {
1989
2047
  key: 1,
1990
2048
  class: "tpl:flex tpl:h-[32px] tpl:items-center"
1991
- }, $r = {
2049
+ }, ci = {
1992
2050
  key: 0,
1993
2051
  class: "tpl:w-full tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
1994
- }, ei = {
2052
+ }, li = {
1995
2053
  key: 2,
1996
2054
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]"
1997
- }, ti = /* @__PURE__ */ r({
2055
+ }, ui = /* @__PURE__ */ r({
1998
2056
  __name: "CustomBlockToolbar",
1999
2057
  props: { block: {} },
2000
2058
  emits: ["updateFieldValues", "updateDataSourceFetched"],
2001
2059
  setup(e, { emit: t }) {
2002
- let r = e, o = t, { t: s } = Z(), u = l(ot, []), d = C(() => u.find((e) => e.type === r.block.customType)), f = C(() => r.block), { isFetching: g, fetchError: y, fetch: S, hasDataSource: w, needsFetch: T } = Fe({
2060
+ let r = e, o = t, { t: s } = Q(), u = l(qe, []), d = C(() => u.find((e) => e.type === r.block.customType)), f = C(() => r.block), { isFetching: g, fetchError: y, fetch: S, hasDataSource: w, needsFetch: T } = Qe({
2003
2061
  definition: d,
2004
2062
  block: f,
2005
2063
  onUpdate: (e, t) => {
@@ -2015,19 +2073,19 @@ var qr = {
2015
2073
  [e]: t
2016
2074
  });
2017
2075
  }
2018
- return (t, r) => d.value ? (i(), p("div", Yr, [
2019
- d.value.description ? (i(), p("p", Xr, x(d.value.description), 1)) : _("", !0),
2020
- h(w) ? (i(), p("div", Zr, [h(T) && !h(g) ? (i(), p("button", {
2076
+ return (t, r) => d.value ? (i(), p("div", ii, [
2077
+ d.value.description ? (i(), p("p", ai, x(d.value.description), 1)) : _("", !0),
2078
+ h(w) ? (i(), p("div", oi, [h(T) && !h(g) ? (i(), p("button", {
2021
2079
  key: 0,
2022
2080
  type: "button",
2023
2081
  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)]",
2024
2082
  onClick: r[0] ||= (...e) => h(S) && h(S)(...e)
2025
- }, x(d.value?.dataSource?.label || h(s).customBlocks.dataSource.fetchButton), 1)) : (i(), p("div", Qr, [h(g) ? (i(), p("div", $r, x(h(s).customBlocks.dataSource.fetching), 1)) : (i(), p("button", {
2083
+ }, x(d.value?.dataSource?.label || h(s).customBlocks.dataSource.fetchButton), 1)) : (i(), p("div", si, [h(g) ? (i(), p("div", ci, x(h(s).customBlocks.dataSource.fetching), 1)) : (i(), p("button", {
2026
2084
  key: 1,
2027
2085
  type: "button",
2028
2086
  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)]",
2029
2087
  onClick: r[1] ||= (...e) => h(S) && h(S)(...e)
2030
- }, [k(h(le), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p", ei, [k(h(oe), {
2088
+ }, [k(h(le), { size: 12 }), m(" " + x(h(s).customBlocks.dataSource.changeButton), 1)]))])), h(y) ? (i(), p("p", li, [k(h(oe), {
2031
2089
  size: 14,
2032
2090
  class: "tpl:shrink-0"
2033
2091
  }), m(" " + x(h(s).customBlocks.dataSource.fetchError), 1)])) : _("", !0)])) : _("", !0),
@@ -2036,7 +2094,7 @@ var qr = {
2036
2094
  path: `fieldValues.${t.key}`,
2037
2095
  label: t.label
2038
2096
  }, {
2039
- label: a(() => [k(br, {
2097
+ label: a(() => [k(kr, {
2040
2098
  label: t.label,
2041
2099
  required: t.required,
2042
2100
  "read-only": E(t)
@@ -2045,7 +2103,7 @@ var qr = {
2045
2103
  "required",
2046
2104
  "read-only"
2047
2105
  ])]),
2048
- default: a(({ controlId: r }) => [(i(), v(n(h(Kr)(t.type)), {
2106
+ default: a(({ controlId: r }) => [(i(), v(n(h(ti)(t.type)), {
2049
2107
  "control-id": t.type === "boolean" ? r : void 0,
2050
2108
  field: t,
2051
2109
  "hide-label": "",
@@ -2061,14 +2119,14 @@ var qr = {
2061
2119
  ]))]),
2062
2120
  _: 2
2063
2121
  }, 1032, ["path", "label"]))), 128))
2064
- ])) : (i(), p("div", qr, [b("p", Jr, x(h(s).customBlocks.toolbar.noDefinition), 1)]));
2122
+ ])) : (i(), p("div", ni, [b("p", ri, x(h(s).customBlocks.toolbar.noDefinition), 1)]));
2065
2123
  }
2066
- }), ni = { class: "tpl:flex tpl:items-stretch" }, ri = ["value"], ii = /* @__PURE__ */ r({
2124
+ }), di = { class: "tpl:flex tpl:items-stretch" }, fi = ["value"], pi = /* @__PURE__ */ r({
2067
2125
  __name: "DividerToolbar",
2068
2126
  props: { block: {} },
2069
2127
  emits: ["update"],
2070
2128
  setup(e, { emit: t }) {
2071
- let n = t, { t: r } = Z();
2129
+ let n = t, { t: r } = Q();
2072
2130
  function o(e, t) {
2073
2131
  n("update", { [e]: t });
2074
2132
  }
@@ -2078,7 +2136,7 @@ var qr = {
2078
2136
  class: "tpl:mb-3.5",
2079
2137
  path: "lineStyle"
2080
2138
  }, {
2081
- default: a(() => [k(Q, {
2139
+ default: a(() => [k($, {
2082
2140
  options: [
2083
2141
  {
2084
2142
  value: "solid",
@@ -2114,24 +2172,24 @@ var qr = {
2114
2172
  class: "tpl:mb-3.5",
2115
2173
  path: "thickness"
2116
2174
  }, {
2117
- default: a(() => [b("div", ni, [b("input", {
2175
+ default: a(() => [b("div", di, [b("input", {
2118
2176
  type: "number",
2119
2177
  class: g(h(z)),
2120
2178
  value: e.block.thickness,
2121
2179
  min: "1",
2122
2180
  max: "10",
2123
2181
  onInput: n[2] ||= (e) => o("thickness", Number(e.target.value))
2124
- }, null, 42, ri), b("span", { class: g(h(L)) }, "px", 2)])]),
2182
+ }, null, 42, fi), b("span", { class: g(h(L)) }, "px", 2)])]),
2125
2183
  _: 1
2126
2184
  }, 8, ["label"])
2127
2185
  ], 64));
2128
2186
  }
2129
- }), ai = ["value"], oi = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, si = /* @__PURE__ */ r({
2187
+ }), mi = ["value"], hi = { class: "tpl:mt-1.5 tpl:flex tpl:items-start tpl:gap-1.5 tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, gi = /* @__PURE__ */ r({
2130
2188
  __name: "HtmlToolbar",
2131
2189
  props: { block: {} },
2132
2190
  emits: ["update"],
2133
2191
  setup(e, { emit: t }) {
2134
- let n = t, { t: r } = Z();
2192
+ let n = t, { t: r } = Q();
2135
2193
  return (t, o) => (i(), v(A, {
2136
2194
  label: h(r).html.content,
2137
2195
  class: "tpl:mb-3.5",
@@ -2141,9 +2199,9 @@ var qr = {
2141
2199
  value: e.block.content,
2142
2200
  placeholder: "<div>...</div>",
2143
2201
  rows: "10",
2144
- class: g(h(ne)),
2202
+ class: g(h(H)),
2145
2203
  onInput: o[0] ||= (e) => n("update", { content: e.target.value })
2146
- }, null, 42, ai), b("p", oi, [k(h(W), {
2204
+ }, null, 42, mi), b("p", hi, [k(h(K), {
2147
2205
  size: 12,
2148
2206
  class: "tpl:mt-0.5 tpl:shrink-0"
2149
2207
  }), m(" " + x(h(r).html.sanitizationHint), 1)])]),
@@ -2152,12 +2210,12 @@ var qr = {
2152
2210
  }
2153
2211
  });
2154
2212
  // src/composables/useImageAspectLock.ts
2155
- function ci(e) {
2213
+ function _i(e) {
2156
2214
  let t = E(!1), n = E(null);
2157
2215
  o(() => e.block().id, () => {
2158
2216
  t.value = !1, n.value = null;
2159
2217
  });
2160
- let r = C(() => Ve(e.block()) ?? e.measured()), i = C(() => {
2218
+ let r = C(() => it(e.block()) ?? e.measured()), i = C(() => {
2161
2219
  let t = e.block().width;
2162
2220
  return t === "full" ? e.room() : t;
2163
2221
  }), a = C(() => {
@@ -2168,9 +2226,9 @@ function ci(e) {
2168
2226
  return t === void 0 || a.value !== null && Math.abs(a.value - t) <= 1;
2169
2227
  }), l = C(() => s.value && !t.value && c.value);
2170
2228
  function u() {
2171
- if (Ve(e.block())) return {};
2229
+ if (it(e.block())) return {};
2172
2230
  let t = e.measured();
2173
- return t ? He(t) : {};
2231
+ return t ? at(t) : {};
2174
2232
  }
2175
2233
  function d(r) {
2176
2234
  if (n.value = null, !r) return t.value = !0, null;
@@ -2212,27 +2270,27 @@ function ci(e) {
2212
2270
  };
2213
2271
  }
2214
2272
  // src/components/toolbar/ImageToolbar.vue?vue&type=script&setup=true&lang.ts
2215
- var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2273
+ var vi = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, yi = [
2216
2274
  "value",
2217
2275
  "placeholder",
2218
2276
  "title"
2219
- ], di = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, fi = ["value"], pi = { value: "full" }, mi = { value: "custom" }, hi = {
2277
+ ], bi = { class: "tpl:block tpl:text-[var(--tpl-text-dim)]" }, xi = ["value"], Si = { value: "full" }, Ci = { value: "custom" }, wi = {
2220
2278
  key: 0,
2221
2279
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2222
- }, gi = ["value"], _i = ["value"], vi = { value: "auto" }, yi = { value: "always" }, bi = { value: "never" }, xi = { class: "tpl:flex tpl:items-stretch" }, Si = ["value"], Ci = {
2280
+ }, Ti = ["value"], Ei = ["value"], Di = { value: "auto" }, Oi = { value: "always" }, ki = { value: "never" }, Ai = { class: "tpl:flex tpl:items-stretch" }, ji = ["value"], Mi = {
2223
2281
  key: 0,
2224
2282
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
2225
2283
  role: "status",
2226
2284
  "data-testid": "image-height-capped"
2227
- }, wi = ["value"], Ti = { value: "auto" }, Ei = { value: "custom" }, Di = {
2285
+ }, Ni = ["value"], Pi = { value: "auto" }, Fi = { value: "custom" }, Ii = {
2228
2286
  key: 2,
2229
2287
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
2230
- }, Oi = ["value"], ki = 350, Ai = 200, ji = /* @__PURE__ */ r({
2288
+ }, Li = ["value"], Ri = 350, zi = 200, Bi = /* @__PURE__ */ r({
2231
2289
  __name: "ImageToolbar",
2232
2290
  props: { block: {} },
2233
2291
  emits: ["update"],
2234
2292
  setup(e, { emit: t }) {
2235
- let n = e, r = t, { t: o, format: s } = Z(), c = l(Qe, _e.liquid), u = l(ut, null), d = u ? mt(u) : null, f = l(nt, void 0), y = E(!1), S = E(!1), { start: w } = ht(() => {
2293
+ let n = e, r = t, { t: o, format: s } = Q(), c = l(ze, _e.liquid), u = l(Ze, null), d = u ? Le(u) : null, f = l(Ue, void 0), y = E(!1), S = E(!1), { start: w } = xt(() => {
2236
2294
  y.value = !1, S.value = !1;
2237
2295
  }, 1e3, { immediate: !1 }), T = [
2238
2296
  300,
@@ -2248,55 +2306,55 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2248
2306
  function ee(e) {
2249
2307
  if (e === "custom") {
2250
2308
  let e = n.block.width;
2251
- (typeof e != "number" || T.includes(e)) && r("update", W.widthUpdates(ki));
2252
- } else r("update", W.widthUpdates(e === "full" ? "full" : Number(e)));
2309
+ (typeof e != "number" || T.includes(e)) && r("update", G.widthUpdates(Ri));
2310
+ } else r("update", G.widthUpdates(e === "full" ? "full" : Number(e)));
2253
2311
  }
2254
2312
  function R(e) {
2255
- I("height", e === "custom" ? Ai : void 0);
2313
+ I("height", e === "custom" ? zi : void 0);
2256
2314
  }
2257
2315
  function te(e) {
2258
2316
  I("fluidOnMobile", e === "always" || e !== "never" && void 0);
2259
2317
  }
2260
- function V(e) {
2318
+ function ne(e) {
2261
2319
  let t = Number(e);
2262
2320
  !Number.isFinite(t) || t <= 0 || I("height", t);
2263
2321
  }
2264
- function ne(e) {
2265
- I("borderRadius", ge(e) === null ? void 0 : e);
2322
+ function V(e) {
2323
+ I("borderRadius", xe(e) === null ? void 0 : e);
2266
2324
  }
2267
- function re(e) {
2325
+ function H(e) {
2268
2326
  let t = Number(e);
2269
- !Number.isFinite(t) || t <= 0 || r("update", W.widthUpdates(t));
2327
+ !Number.isFinite(t) || t <= 0 || r("update", G.widthUpdates(t));
2270
2328
  }
2271
- function ie(e) {
2329
+ function re(e) {
2272
2330
  e !== n.block.src && r("update", {
2273
2331
  src: e,
2274
- ...He(null)
2332
+ ...at(null)
2275
2333
  });
2276
2334
  }
2277
- function ae(e) {
2335
+ function ie(e) {
2278
2336
  r("update", {
2279
2337
  src: e.url,
2280
- ...He(Le(e.width, e.height))
2338
+ ...at(et(e.width, e.height))
2281
2339
  }), e.alt && (I("alt", e.alt), S.value = !0), y.value = !0, w();
2282
2340
  }
2283
- let oe = E(), H = C(() => be(n.block.src, c)), { canBrowse: se, isUploading: ce, showOverlay: le, openMediaBrowser: ue } = Ye({
2284
- target: oe,
2285
- blocked: H,
2286
- apply: ae
2287
- }), fe = Ie(() => H.value || !n.block.src || Ve(n.block) ? void 0 : n.block.src), U = fn(() => fe.value), pe = C(() => d ? Ue(d.content.value, n.block.id, f) : null), W = ci({
2341
+ let ae = E(), oe = C(() => Ee(n.block.src, c)), { canBrowse: U, isUploading: se, showOverlay: ce, openMediaBrowser: le } = ft({
2342
+ target: ae,
2343
+ blocked: oe,
2344
+ apply: ie
2345
+ }), ue = $e(() => oe.value || !n.block.src || it(n.block) ? void 0 : n.block.src), fe = xn(() => ue.value), W = C(() => d ? ot(d.content.value, n.block.id, f) : null), G = _i({
2288
2346
  block: () => n.block,
2289
- room: () => pe.value,
2290
- measured: () => U.value
2291
- }), { available: G, locked: K, derivedHeight: q, cappedHeight: J } = W;
2292
- function Y() {
2293
- let e = W.setLocked(!K.value);
2347
+ room: () => W.value,
2348
+ measured: () => fe.value
2349
+ }), { available: K, locked: q, derivedHeight: J, cappedHeight: Y } = G;
2350
+ function X() {
2351
+ let e = G.setLocked(!q.value);
2294
2352
  e && r("update", e);
2295
2353
  }
2296
- let X = E(null);
2297
- function me(e) {
2298
- X.value = e;
2299
- let t = W.heightUpdates(Number(e));
2354
+ let pe = E(null);
2355
+ function Z(e) {
2356
+ pe.value = e;
2357
+ let t = G.heightUpdates(Number(e));
2300
2358
  t && r("update", t);
2301
2359
  }
2302
2360
  return (t, n) => (i(), p(D, null, [
@@ -2307,25 +2365,25 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2307
2365
  }, {
2308
2366
  default: a(() => [b("div", {
2309
2367
  ref_key: "dropZoneRef",
2310
- ref: oe,
2368
+ ref: ae,
2311
2369
  class: "tpl:relative"
2312
2370
  }, [
2313
- h(le) ? (i(), v(Be, {
2371
+ h(ce) ? (i(), v(rt, {
2314
2372
  key: 0,
2315
- uploading: h(ce)
2373
+ uploading: h(se)
2316
2374
  }, null, 8, ["uploading"])) : _("", !0),
2317
2375
  k(N, {
2318
2376
  "model-value": e.block.src,
2319
2377
  type: "url",
2320
2378
  placeholder: h(o).image.imageUrlPlaceholder,
2321
2379
  pulse: y.value,
2322
- "onUpdate:modelValue": n[0] ||= (e) => ie(e)
2380
+ "onUpdate:modelValue": n[0] ||= (e) => re(e)
2323
2381
  }, null, 8, [
2324
2382
  "model-value",
2325
2383
  "placeholder",
2326
2384
  "pulse"
2327
2385
  ]),
2328
- h(se) ? (i(), p("button", {
2386
+ h(U) ? (i(), p("button", {
2329
2387
  key: 1,
2330
2388
  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",
2331
2389
  style: {
@@ -2333,7 +2391,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2333
2391
  color: "var(--tpl-primary)",
2334
2392
  "background-color": "var(--tpl-bg)"
2335
2393
  },
2336
- onClick: n[1] ||= (...e) => h(ue) && h(ue)(...e)
2394
+ onClick: n[1] ||= (...e) => h(le) && h(le)(...e)
2337
2395
  }, [k(h(de), {
2338
2396
  size: 14,
2339
2397
  "stroke-width": 1.5
@@ -2341,12 +2399,12 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2341
2399
  ], 512)]),
2342
2400
  _: 1
2343
2401
  }, 8, ["label"]),
2344
- h(be)(e.block.src, h(c)) ? (i(), v(A, {
2402
+ h(Ee)(e.block.src, h(c)) ? (i(), v(A, {
2345
2403
  key: 0,
2346
2404
  class: "tpl:mb-3.5",
2347
2405
  path: "placeholderUrl"
2348
2406
  }, {
2349
- label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span", li, x(h(o).image.optional), 1)]),
2407
+ label: a(() => [m(x(h(o).image.placeholderUrl) + " ", 1), b("span", vi, x(h(o).image.optional), 1)]),
2350
2408
  default: a(() => [b("input", {
2351
2409
  type: "url",
2352
2410
  class: g(h(B)),
@@ -2354,7 +2412,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2354
2412
  placeholder: h(o).image.placeholderUrlPlaceholder,
2355
2413
  title: h(o).image.placeholderUrlTooltip,
2356
2414
  onInput: n[2] ||= (e) => I("placeholderUrl", e.target.value)
2357
- }, null, 42, ui)]),
2415
+ }, null, 42, yi)]),
2358
2416
  _: 1
2359
2417
  })) : _("", !0),
2360
2418
  k(A, {
@@ -2378,7 +2436,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2378
2436
  path: "decorative",
2379
2437
  label: h(o).image.decorative
2380
2438
  }, {
2381
- label: a(() => [b("span", null, [m(x(h(o).image.decorative) + " ", 1), b("span", di, x(h(o).image.decorativeHint), 1)])]),
2439
+ label: a(() => [b("span", null, [m(x(h(o).image.decorative) + " ", 1), b("span", bi, x(h(o).image.decorativeHint), 1)])]),
2382
2440
  "label-actions": a(({ controlId: t }) => [k(P, {
2383
2441
  "control-id": t,
2384
2442
  "hide-label": "",
@@ -2406,19 +2464,19 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2406
2464
  value: j.value,
2407
2465
  onChange: n[5] ||= (e) => ee(e.target.value)
2408
2466
  }, [
2409
- b("option", pi, x(h(o).image.fullWidth), 1),
2467
+ b("option", Si, x(h(o).image.fullWidth), 1),
2410
2468
  n[16] ||= b("option", { value: "300" }, "300px", -1),
2411
2469
  n[17] ||= b("option", { value: "400" }, "400px", -1),
2412
2470
  n[18] ||= b("option", { value: "500" }, "500px", -1),
2413
- b("option", mi, x(h(o).image.widthCustom), 1)
2414
- ], 42, fi), j.value === "custom" ? (i(), p("div", hi, [b("input", {
2471
+ b("option", Ci, x(h(o).image.widthCustom), 1)
2472
+ ], 42, xi), j.value === "custom" ? (i(), p("div", wi, [b("input", {
2415
2473
  type: "number",
2416
2474
  "data-testid": "image-width-input",
2417
2475
  class: g(h(z)),
2418
- value: typeof e.block.width == "number" ? e.block.width : ki,
2476
+ value: typeof e.block.width == "number" ? e.block.width : Ri,
2419
2477
  min: "20",
2420
- onInput: n[6] ||= (e) => re(e.target.value)
2421
- }, null, 42, gi), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
2478
+ onInput: n[6] ||= (e) => H(e.target.value)
2479
+ }, null, 42, Ti), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
2422
2480
  _: 1
2423
2481
  }, 8, ["label"]),
2424
2482
  k(A, {
@@ -2432,10 +2490,10 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2432
2490
  value: F.value,
2433
2491
  onChange: n[7] ||= (e) => te(e.target.value)
2434
2492
  }, [
2435
- b("option", vi, x(h(o).image.fluidOnMobileAuto), 1),
2436
- b("option", yi, x(h(o).image.fluidOnMobileAlways), 1),
2437
- b("option", bi, x(h(o).image.fluidOnMobileNever), 1)
2438
- ], 42, _i)]),
2493
+ b("option", Di, x(h(o).image.fluidOnMobileAuto), 1),
2494
+ b("option", Oi, x(h(o).image.fluidOnMobileAlways), 1),
2495
+ b("option", ki, x(h(o).image.fluidOnMobileNever), 1)
2496
+ ], 42, Ei)]),
2439
2497
  _: 1
2440
2498
  }, 8, ["label"]),
2441
2499
  k(A, {
@@ -2444,40 +2502,40 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2444
2502
  label: h(o).image.height
2445
2503
  }, O({
2446
2504
  default: a(() => [
2447
- h(K) ? (i(), p(D, { key: 0 }, [b("div", xi, [b("input", {
2505
+ h(q) ? (i(), p(D, { key: 0 }, [b("div", Ai, [b("input", {
2448
2506
  type: "number",
2449
2507
  "data-testid": "image-locked-height-input",
2450
2508
  class: g(h(z)),
2451
- value: X.value ?? h(q) ?? "",
2509
+ value: pe.value ?? h(J) ?? "",
2452
2510
  min: "1",
2453
- onInput: n[8] ||= (e) => me(e.target.value),
2454
- onBlur: n[9] ||= (e) => X.value = null
2455
- }, null, 42, Si), b("span", { class: g(h(L)) }, "px", 2)]), h(J) === null ? _("", !0) : (i(), p("p", Ci, x(h(s)(h(o).image.heightCapped, { height: h(J) })), 1))], 64)) : _("", !0),
2456
- h(K) ? _("", !0) : (i(), p("select", {
2511
+ onInput: n[8] ||= (e) => Z(e.target.value),
2512
+ onBlur: n[9] ||= (e) => pe.value = null
2513
+ }, null, 42, ji), b("span", { class: g(h(L)) }, "px", 2)]), h(Y) === null ? _("", !0) : (i(), p("p", Mi, x(h(s)(h(o).image.heightCapped, { height: h(Y) })), 1))], 64)) : _("", !0),
2514
+ h(q) ? _("", !0) : (i(), p("select", {
2457
2515
  key: 1,
2458
2516
  class: g(h(B)),
2459
2517
  "data-testid": "image-height-mode",
2460
2518
  value: M.value,
2461
2519
  onChange: n[10] ||= (e) => R(e.target.value)
2462
- }, [b("option", Ti, x(h(o).image.heightAuto), 1), b("option", Ei, x(h(o).image.heightCustom), 1)], 42, wi)),
2463
- !h(K) && M.value === "custom" ? (i(), p("div", Di, [b("input", {
2520
+ }, [b("option", Pi, x(h(o).image.heightAuto), 1), b("option", Fi, x(h(o).image.heightCustom), 1)], 42, Ni)),
2521
+ !h(q) && M.value === "custom" ? (i(), p("div", Ii, [b("input", {
2464
2522
  type: "number",
2465
2523
  "data-testid": "image-height-input",
2466
2524
  class: g(h(z)),
2467
2525
  value: e.block.height,
2468
2526
  min: "20",
2469
- onInput: n[11] ||= (e) => V(e.target.value)
2470
- }, null, 42, Oi), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)
2527
+ onInput: n[11] ||= (e) => ne(e.target.value)
2528
+ }, null, 42, Li), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)
2471
2529
  ]),
2472
2530
  _: 2
2473
- }, [h(G) ? {
2531
+ }, [h(K) ? {
2474
2532
  name: "label-actions",
2475
- fn: a(() => [k(Ct, {
2476
- linked: h(K),
2533
+ fn: a(() => [k(kt, {
2534
+ linked: h(q),
2477
2535
  "link-label": h(o).image.lockAspectRatio,
2478
2536
  "unlink-label": h(o).image.unlockAspectRatio,
2479
2537
  testid: "image-aspect-lock",
2480
- onToggle: Y
2538
+ onToggle: X
2481
2539
  }, null, 8, [
2482
2540
  "linked",
2483
2541
  "link-label",
@@ -2485,14 +2543,14 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2485
2543
  ])]),
2486
2544
  key: "0"
2487
2545
  } : void 0]), 1032, ["label"]),
2488
- k(At, {
2546
+ k(It, {
2489
2547
  path: "borderRadius",
2490
2548
  "model-value": e.block.borderRadius,
2491
2549
  label: h(o).image.borderRadius,
2492
2550
  "testid-prefix": "image",
2493
- "onUpdate:modelValue": ne
2551
+ "onUpdate:modelValue": V
2494
2552
  }, null, 8, ["model-value", "label"]),
2495
- k(Dt, {
2553
+ k(Nt, {
2496
2554
  path: "border",
2497
2555
  "model-value": e.block.border,
2498
2556
  "testid-prefix": "image",
@@ -2503,7 +2561,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2503
2561
  class: "tpl:mb-3.5",
2504
2562
  path: "align"
2505
2563
  }, {
2506
- default: a(() => [k(Q, {
2564
+ default: a(() => [k($, {
2507
2565
  options: [
2508
2566
  {
2509
2567
  value: "left",
@@ -2556,11 +2614,11 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2556
2614
  }, 8, ["label"])
2557
2615
  ], 64));
2558
2616
  }
2559
- }), Mi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Ni = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Pi = [
2617
+ }), Vi = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, Hi = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ui = [
2560
2618
  "value",
2561
2619
  "placeholder",
2562
2620
  "onInput"
2563
- ], Fi = ["title", "onClick"], Ii = { 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)]" }, Li = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Ri = ["value"], zi = { value: "" }, Bi = ["value"], Vi = ["value"], Hi = /* @__PURE__ */ r({
2621
+ ], Wi = ["title", "onClick"], Gi = { 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)]" }, Ki = { class: "tpl:flex tpl:items-center tpl:gap-2" }, qi = ["value"], Ji = { value: "" }, Yi = ["value"], Xi = ["value"], Zi = /* @__PURE__ */ r({
2564
2622
  __name: "MenuToolbar",
2565
2623
  props: {
2566
2624
  block: {},
@@ -2568,7 +2626,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2568
2626
  },
2569
2627
  emits: ["update"],
2570
2628
  setup(e, { emit: t }) {
2571
- let n = e, r = t, { t: o } = Z(), s = C(() => [
2629
+ let n = e, r = t, { t: o } = Q(), s = C(() => [
2572
2630
  {
2573
2631
  key: "openInNewTab",
2574
2632
  label: o.menu.openInNewTab
@@ -2585,12 +2643,12 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2585
2643
  {
2586
2644
  value: "left",
2587
2645
  label: o.title.alignLeft,
2588
- icon: G
2646
+ icon: q
2589
2647
  },
2590
2648
  {
2591
2649
  value: "center",
2592
2650
  label: o.title.alignCenter,
2593
- icon: X
2651
+ icon: Z
2594
2652
  },
2595
2653
  {
2596
2654
  value: "right",
@@ -2603,7 +2661,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2603
2661
  }
2604
2662
  function d() {
2605
2663
  let e = {
2606
- id: ve(),
2664
+ id: ye(),
2607
2665
  text: "",
2608
2666
  url: "",
2609
2667
  openInNewTab: !1,
@@ -2624,11 +2682,11 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2624
2682
  }
2625
2683
  return (t, n) => (i(), p(D, null, [
2626
2684
  k(A, { label: h(o).menu.items }, {
2627
- default: a(() => [b("div", Mi, [(i(!0), p(D, null, c(e.block.items, (t) => (i(), p("div", {
2685
+ default: a(() => [b("div", Vi, [(i(!0), p(D, null, c(e.block.items, (t) => (i(), p("div", {
2628
2686
  key: t.id,
2629
2687
  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"
2630
2688
  }, [
2631
- b("div", Ni, [k(A, {
2689
+ b("div", Hi, [k(A, {
2632
2690
  path: t.id.includes(".") ? void 0 : `items.${t.id}.text`,
2633
2691
  label: h(o).menu.text
2634
2692
  }, {
@@ -2638,16 +2696,16 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2638
2696
  value: t.text,
2639
2697
  placeholder: h(o).menu.text,
2640
2698
  onInput: (e) => f(t.id, "text", e.target.value)
2641
- }, null, 42, Pi)]),
2699
+ }, null, 42, Ui)]),
2642
2700
  _: 2
2643
2701
  }, 1032, ["path", "label"]), b("button", {
2644
2702
  class: g(h(I)),
2645
2703
  title: h(o).menu.removeItem,
2646
2704
  onClick: (e) => _(t.id)
2647
- }, [k(h(Y), {
2705
+ }, [k(h(pe), {
2648
2706
  size: 14,
2649
2707
  "stroke-width": 2
2650
- })], 10, Fi)]),
2708
+ })], 10, Wi)]),
2651
2709
  k(A, {
2652
2710
  path: t.id.includes(".") ? void 0 : `items.${t.id}.url`,
2653
2711
  label: h(o).button.url
@@ -2664,7 +2722,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2664
2722
  ])]),
2665
2723
  _: 2
2666
2724
  }, 1032, ["path", "label"]),
2667
- b("div", Ii, [(i(!0), p(D, null, c(s.value, (e) => (i(), v(A, {
2725
+ b("div", Gi, [(i(!0), p(D, null, c(s.value, (e) => (i(), v(A, {
2668
2726
  key: e.key,
2669
2727
  path: t.id.includes(".") ? void 0 : `items.${t.id}.${e.key}`,
2670
2728
  label: e.label
@@ -2683,7 +2741,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2683
2741
  ])]),
2684
2742
  _: 2
2685
2743
  }, 1032, ["path", "label"]))), 128))]),
2686
- b("div", Li, [k(A, {
2744
+ b("div", Ki, [k(A, {
2687
2745
  path: t.id.includes(".") ? void 0 : `items.${t.id}.color`,
2688
2746
  label: h(o).menu.color
2689
2747
  }, {
@@ -2697,7 +2755,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2697
2755
  ]))), 128)), b("button", {
2698
2756
  class: g(h(R)),
2699
2757
  onClick: d
2700
- }, [k(h(H), {
2758
+ }, [k(h(U), {
2701
2759
  size: 14,
2702
2760
  "stroke-width": 2
2703
2761
  }), m(" " + x(h(o).menu.addItem), 1)], 2)])]),
@@ -2709,19 +2767,19 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2709
2767
  }, {
2710
2768
  default: a(() => [b("select", {
2711
2769
  class: g(h(B)),
2712
- value: h(Me)(e.block.fontFamily),
2770
+ value: h(ht)(e.block.fontFamily),
2713
2771
  onChange: n[0] ||= (e) => u("fontFamily", e.target.value || void 0)
2714
- }, [b("option", zi, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
2772
+ }, [b("option", Ji, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
2715
2773
  key: e.value,
2716
2774
  value: e.value
2717
- }, x(e.label), 9, Bi))), 128))], 42, Ri)]),
2775
+ }, x(e.label), 9, Yi))), 128))], 42, qi)]),
2718
2776
  _: 1
2719
2777
  }, 8, ["label"]),
2720
2778
  k(A, {
2721
2779
  path: "fontSize",
2722
2780
  label: h(o).menu.fontSize
2723
2781
  }, {
2724
- default: a(() => [k(xt, {
2782
+ default: a(() => [k(Dt, {
2725
2783
  "model-value": e.block.fontSize,
2726
2784
  min: 8,
2727
2785
  max: 48,
@@ -2754,7 +2812,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2754
2812
  path: "textAlign",
2755
2813
  label: h(o).menu.textAlign
2756
2814
  }, {
2757
- default: a(() => [k(Q, {
2815
+ default: a(() => [k($, {
2758
2816
  options: l.value,
2759
2817
  "model-value": e.block.textAlign,
2760
2818
  "onUpdate:modelValue": n[4] ||= (e) => u("textAlign", e)
@@ -2770,7 +2828,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2770
2828
  class: g(h(B)),
2771
2829
  value: e.block.separator,
2772
2830
  onInput: n[5] ||= (e) => u("separator", e.target.value)
2773
- }, null, 42, Vi)]),
2831
+ }, null, 42, Xi)]),
2774
2832
  _: 1
2775
2833
  }, 8, ["label"]),
2776
2834
  k(A, {
@@ -2787,7 +2845,7 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2787
2845
  path: "spacing",
2788
2846
  label: h(o).menu.spacing
2789
2847
  }, {
2790
- default: a(() => [k(xt, {
2848
+ default: a(() => [k(Dt, {
2791
2849
  "model-value": e.block.spacing,
2792
2850
  min: 0,
2793
2851
  max: 50,
@@ -2798,33 +2856,33 @@ var li = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ui = [
2798
2856
  }, 8, ["label"])
2799
2857
  ], 64));
2800
2858
  }
2801
- }), Ui = { class: "tpl:flex tpl:items-stretch" }, Wi = ["value"], Gi = /* @__PURE__ */ r({
2859
+ }), Qi = { class: "tpl:flex tpl:items-stretch" }, $i = ["value"], ea = /* @__PURE__ */ r({
2802
2860
  __name: "ParagraphToolbar",
2803
2861
  props: { block: {} },
2804
2862
  emits: ["update"],
2805
2863
  setup(e, { emit: t }) {
2806
- let n = t, { t: r } = Z();
2864
+ let n = t, { t: r } = Q();
2807
2865
  return (t, o) => (i(), v(A, {
2808
2866
  label: h(r).paragraph.paragraphSpacing,
2809
2867
  class: "tpl:mb-3.5",
2810
2868
  "data-testid": "paragraph-spacing",
2811
2869
  path: "paragraphSpacing"
2812
2870
  }, {
2813
- default: a(() => [b("div", Ui, [b("input", {
2871
+ default: a(() => [b("div", Qi, [b("input", {
2814
2872
  type: "number",
2815
2873
  class: g(h(z)),
2816
- value: e.block.paragraphSpacing ?? h(ye).paragraphGap,
2874
+ value: e.block.paragraphSpacing ?? h(ge).paragraphGap,
2817
2875
  min: "0",
2818
2876
  max: "64",
2819
2877
  onInput: o[0] ||= (e) => n("update", { paragraphSpacing: Number(e.target.value) })
2820
- }, null, 42, Wi), b("span", { class: g(h(L)) }, "px", 2)])]),
2878
+ }, null, 42, $i), b("span", { class: g(h(L)) }, "px", 2)])]),
2821
2879
  _: 1
2822
2880
  }, 8, ["label"]));
2823
2881
  }
2824
2882
  });
2825
2883
  // src/utils/rebalanceColumnChildren.ts
2826
- function Ki(e, t) {
2827
- let n = me(t);
2884
+ function ta(e, t) {
2885
+ let n = Ne(t);
2828
2886
  if (e.length === n) return e;
2829
2887
  if (e.length < n) {
2830
2888
  let t = Array.from({ length: n - e.length }, () => []);
@@ -2834,21 +2892,28 @@ function Ki(e, t) {
2834
2892
  return [...r.slice(0, n - 1), a];
2835
2893
  }
2836
2894
  // src/components/toolbar/SectionToolbar.vue?vue&type=script&setup=true&lang.ts
2837
- var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
2838
- key: 2,
2895
+ var na = { class: "tpl:mb-3.5" }, ra = ["value"], ia = ["value"], aa = {
2896
+ key: 0,
2897
+ value: "custom"
2898
+ }, oa = { class: "tpl:flex tpl:gap-2" }, sa = [
2899
+ "value",
2900
+ "aria-label",
2901
+ "onChange"
2902
+ ], ca = {
2903
+ key: 3,
2839
2904
  class: "tpl:mb-3.5"
2840
- }, Zi = {
2905
+ }, la = {
2841
2906
  key: 0,
2842
2907
  class: "tpl:mt-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
2843
- }, Qi = {
2908
+ }, ua = {
2844
2909
  key: 1,
2845
2910
  class: "tpl:mt-3 tpl:ml-0.5 tpl:space-y-3 tpl:border-l tpl:border-[var(--tpl-border)] tpl:pl-3"
2846
- }, $i = /* @__PURE__ */ r({
2911
+ }, da = /* @__PURE__ */ r({
2847
2912
  __name: "SectionToolbar",
2848
2913
  props: { block: {} },
2849
2914
  emits: ["update"],
2850
2915
  setup(e, { emit: t }) {
2851
- let n = e, r = t, { t: o } = Z(), s = l(nt, void 0), u = l(Ze, void 0), d = s !== void 0 && we(s), f = C(() => u !== !1 || !!n.block.wrapper), m = C(() => d && !n.block.wrapper), y = C(() => d && f.value), S = C(() => Ce(n.block)?.applied === !0), w = C(() => [
2916
+ let n = e, r = t, { t: o, format: s } = Q(), u = l(Ue, void 0), d = l(Re, void 0), f = u !== void 0 && Ae(u), m = C(() => d !== !1 || !!n.block.wrapper), y = C(() => f && !n.block.wrapper), S = C(() => f && m.value), w = C(() => Te(n.block)?.applied === !0), T = C(() => [
2852
2917
  {
2853
2918
  value: "1",
2854
2919
  label: o.section.column1
@@ -2885,54 +2950,90 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
2885
2950
  value: "1-2-1",
2886
2951
  label: o.section.ratio121
2887
2952
  }
2888
- ]);
2889
- function T(e) {
2890
- let t = e.target.value, i = Ki(n.block.children, t);
2953
+ ]), E = C(() => Oe(n.block)), O = C(() => n.block.columnWidths !== void 0 && be(n.block) === null), j = C(() => O.value ? "custom" : n.block.columns);
2954
+ function N(e) {
2955
+ let t = e.target.value;
2956
+ if (t === "custom") return;
2957
+ let i = t, a = ta(n.block.children, i);
2891
2958
  r("update", {
2892
- columns: t,
2893
- children: i
2959
+ columns: i,
2960
+ children: a,
2961
+ columnWidths: void 0
2894
2962
  });
2895
2963
  }
2896
- function E(e) {
2964
+ function F(e) {
2965
+ let t = Number(`${String(e)}e2`);
2966
+ return Number(`${Math.floor(t)}e-2`);
2967
+ }
2968
+ function I(e, t) {
2969
+ let i = t.target, a = i.value.trim(), o = Number(a), s = E.value;
2970
+ if (a === "" || !Number.isFinite(o)) {
2971
+ i.value = String(s[e]);
2972
+ return;
2973
+ }
2974
+ let c = s.slice(), l = e === c.length - 1 ? e - 1 : e + 1, u = c[e] + c[l], d = Math.max(.01, F(Math.min(5, u / 2))), f = Math.min(Math.max(o, d), u - d);
2975
+ c[e] = Ce(f), c[l] = Ce(u - c[e]);
2976
+ let p = Me[n.block.columns], m = p !== void 0 && p.every((e, t) => e === c[t]);
2977
+ r("update", { columnWidths: m ? void 0 : c });
2978
+ }
2979
+ function ee(e) {
2897
2980
  r("update", { stackOnMobile: e });
2898
2981
  }
2899
- function O(e) {
2982
+ function R(e) {
2900
2983
  r("update", { borderRadius: e });
2901
2984
  }
2902
- function j(e) {
2985
+ function te(e) {
2903
2986
  e ? r("update", { wrapper: { padding: {
2904
2987
  top: 20,
2905
2988
  right: 20,
2906
2989
  bottom: 20,
2907
2990
  left: 20
2908
- } } }) : r("update", Un(n.block));
2991
+ } } }) : r("update", Qn(n.block));
2909
2992
  }
2910
- function N(e) {
2911
- r("update", Hn(n.block, e));
2993
+ function ne(e) {
2994
+ r("update", Zn(n.block, e));
2912
2995
  }
2913
- function F(e) {
2996
+ function H(e) {
2914
2997
  r("update", { wrapper: {
2915
2998
  ...n.block.wrapper,
2916
2999
  ...e
2917
3000
  } });
2918
3001
  }
2919
- function I(e) {
2920
- F({ padding: e });
3002
+ function re(e) {
3003
+ H({ padding: e });
2921
3004
  }
2922
- function L(e) {
2923
- F({ borderRadius: e });
3005
+ function ie(e) {
3006
+ H({ borderRadius: e });
2924
3007
  }
2925
3008
  return (t, n) => (i(), p(D, null, [
2926
- b("div", qi, [b("label", { class: g(h(V)) }, x(h(o).section.columns), 3), b("select", {
3009
+ b("div", na, [b("label", { class: g(h(V)) }, x(h(o).section.columns), 3), b("select", {
2927
3010
  class: g(h(B)),
2928
- value: e.block.columns,
2929
- onChange: T
2930
- }, [(i(!0), p(D, null, c(w.value, (e) => (i(), p("option", {
3011
+ value: j.value,
3012
+ onChange: N
3013
+ }, [(i(!0), p(D, null, c(T.value, (e) => (i(), p("option", {
2931
3014
  key: e.value,
2932
3015
  value: e.value
2933
- }, x(e.label), 9, Yi))), 128))], 42, Ji)]),
2934
- e.block.columns === "1" ? _("", !0) : (i(), v(A, {
3016
+ }, x(e.label), 9, ia))), 128)), O.value ? (i(), p("option", aa, x(h(o).section.columnsCustom), 1)) : _("", !0)], 42, ra)]),
3017
+ E.value.length > 1 ? (i(), v(A, {
2935
3018
  key: 0,
3019
+ path: "columnWidths",
3020
+ label: h(o).section.columnWidths
3021
+ }, {
3022
+ default: a(() => [b("div", oa, [(i(!0), p(D, null, c(E.value, (e, t) => (i(), p("div", {
3023
+ key: t,
3024
+ class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-stretch"
3025
+ }, [b("input", {
3026
+ type: "number",
3027
+ step: "any",
3028
+ class: g(h(z)),
3029
+ value: e,
3030
+ "aria-label": h(s)(h(o).section.columnWidthAria, { index: t + 1 }),
3031
+ onChange: (e) => I(t, e)
3032
+ }, null, 42, sa), b("span", { class: g(h(L)) }, "%", 2)]))), 128))])]),
3033
+ _: 1
3034
+ }, 8, ["label"])) : _("", !0),
3035
+ e.block.columns === "1" ? _("", !0) : (i(), v(A, {
3036
+ key: 1,
2936
3037
  class: "tpl:mb-3.5",
2937
3038
  path: "stackOnMobile",
2938
3039
  label: h(o).section.stackOnMobile
@@ -2943,7 +3044,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
2943
3044
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2944
3045
  "model-value": e.block.stackOnMobile !== !1,
2945
3046
  label: h(o).section.stackOnMobile,
2946
- "onUpdate:modelValue": n[0] ||= (e) => E(e)
3047
+ "onUpdate:modelValue": n[0] ||= (e) => ee(e)
2947
3048
  }, null, 8, [
2948
3049
  "control-id",
2949
3050
  "model-value",
@@ -2951,22 +3052,22 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
2951
3052
  ])]),
2952
3053
  _: 1
2953
3054
  }, 8, ["label"])),
2954
- k(At, {
3055
+ k(It, {
2955
3056
  path: "borderRadius",
2956
3057
  "model-value": e.block.borderRadius,
2957
3058
  label: h(o).section.borderRadius,
2958
3059
  max: 50,
2959
3060
  "testid-prefix": "section",
2960
- "onUpdate:modelValue": O
3061
+ "onUpdate:modelValue": R
2961
3062
  }, null, 8, ["model-value", "label"]),
2962
- S.value ? _("", !0) : (i(), v(Dt, {
2963
- key: 1,
3063
+ w.value ? _("", !0) : (i(), v(Nt, {
3064
+ key: 2,
2964
3065
  path: "border",
2965
3066
  "model-value": e.block.border,
2966
3067
  "testid-prefix": "section",
2967
3068
  "onUpdate:modelValue": n[1] ||= (e) => r("update", { border: e })
2968
3069
  }, null, 8, ["model-value"])),
2969
- f.value ? (i(), p("div", Xi, [
3070
+ m.value ? (i(), p("div", ca, [
2970
3071
  k(A, {
2971
3072
  path: "wrapper",
2972
3073
  label: h(o).section.wrapperEnable
@@ -2977,8 +3078,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
2977
3078
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
2978
3079
  "model-value": !!e.block.wrapper,
2979
3080
  label: h(o).section.wrapperEnable,
2980
- disabled: m.value,
2981
- "onUpdate:modelValue": n[2] ||= (e) => j(e)
3081
+ disabled: y.value,
3082
+ "onUpdate:modelValue": n[2] ||= (e) => te(e)
2982
3083
  }, null, 8, [
2983
3084
  "control-id",
2984
3085
  "model-value",
@@ -2987,8 +3088,8 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
2987
3088
  ])]),
2988
3089
  _: 1
2989
3090
  }, 8, ["label"]),
2990
- y.value ? (i(), p("p", Zi, x(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
2991
- e.block.wrapper ? (i(), p("div", Qi, [
3091
+ S.value ? (i(), p("p", la, x(h(o).section.wrapperLayoutConflict), 1)) : _("", !0),
3092
+ e.block.wrapper ? (i(), p("div", ua, [
2992
3093
  k(A, {
2993
3094
  path: "wrapper.fullWidth",
2994
3095
  label: h(o).blockSettings.fullWidthBackground
@@ -3000,7 +3101,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3000
3101
  class: "tpl:text-xs tpl:text-[var(--tpl-text)]",
3001
3102
  "model-value": e.block.wrapper.fullWidth === !0,
3002
3103
  label: h(o).blockSettings.fullWidthBackground,
3003
- "onUpdate:modelValue": N
3104
+ "onUpdate:modelValue": ne
3004
3105
  }, null, 8, [
3005
3106
  "control-id",
3006
3107
  "model-value",
@@ -3015,7 +3116,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3015
3116
  default: a(() => [k(M, {
3016
3117
  "model-value": e.block.wrapper.backgroundColor ?? "",
3017
3118
  "allow-transparent": "",
3018
- "onUpdate:modelValue": n[3] ||= (e) => F({ backgroundColor: e })
3119
+ "onUpdate:modelValue": n[3] ||= (e) => H({ backgroundColor: e })
3019
3120
  }, null, 8, ["model-value"])]),
3020
3121
  _: 1
3021
3122
  }, 8, ["label"])]),
@@ -3023,15 +3124,15 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3023
3124
  path: "wrapper.backgroundImage",
3024
3125
  label: h(o).blockSettings.backgroundImage
3025
3126
  }, {
3026
- default: a(() => [k(Sn, {
3127
+ default: a(() => [k(jn, {
3027
3128
  "hide-label": "",
3028
3129
  "model-value": e.block.wrapper.backgroundImage,
3029
3130
  "testid-prefix": "section-wrapper",
3030
- "onUpdate:modelValue": n[4] ||= (e) => F({ backgroundImage: e })
3131
+ "onUpdate:modelValue": n[4] ||= (e) => H({ backgroundImage: e })
3031
3132
  }, null, 8, ["model-value"])]),
3032
3133
  _: 1
3033
3134
  }, 8, ["label"]),
3034
- k(dn, {
3135
+ k(bn, {
3035
3136
  path: "wrapper.padding",
3036
3137
  label: h(o).blockSettings.padding,
3037
3138
  "model-value": e.block.wrapper.padding ?? {
@@ -3040,32 +3141,32 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3040
3141
  bottom: 0,
3041
3142
  left: 0
3042
3143
  },
3043
- "onUpdate:modelValue": I
3144
+ "onUpdate:modelValue": re
3044
3145
  }, null, 8, ["label", "model-value"]),
3045
- k(At, {
3146
+ k(It, {
3046
3147
  path: "wrapper.borderRadius",
3047
3148
  "model-value": e.block.wrapper.borderRadius,
3048
3149
  label: h(o).section.borderRadius,
3049
3150
  max: 50,
3050
3151
  "testid-prefix": "section-wrapper",
3051
- "onUpdate:modelValue": L
3152
+ "onUpdate:modelValue": ie
3052
3153
  }, null, 8, ["model-value", "label"])
3053
3154
  ])) : _("", !0)
3054
3155
  ])) : _("", !0)
3055
3156
  ], 64));
3056
3157
  }
3057
- }), ea = { class: "tpl:mb-3.5" }, ta = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, na = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ra = ["value", "onChange"], ia = ["value"], aa = ["title", "onClick"], oa = ["value"], sa = { value: "solid" }, ca = { value: "outlined" }, la = { value: "rounded" }, ua = { value: "square" }, da = { value: "circle" }, fa = { value: "plain" }, pa = ["value"], ma = { value: "brand" }, ha = { value: "dark" }, ga = { value: "light" }, _a = { class: "tpl:flex tpl:items-stretch" }, va = ["value"], ya = /* @__PURE__ */ r({
3158
+ }), fa = { class: "tpl:mb-3.5" }, pa = { class: "tpl:flex tpl:flex-col tpl:gap-2" }, ma = { class: "tpl:flex tpl:items-center tpl:gap-2" }, ha = ["value", "onChange"], ga = ["value"], _a = ["title", "onClick"], va = ["value"], ya = { value: "solid" }, ba = { value: "outlined" }, xa = { value: "rounded" }, Sa = { value: "square" }, Ca = { value: "circle" }, wa = { value: "plain" }, Ta = ["value"], Ea = { value: "brand" }, Da = { value: "dark" }, Oa = { value: "light" }, ka = { class: "tpl:flex tpl:items-stretch" }, Aa = ["value"], ja = /* @__PURE__ */ r({
3058
3159
  __name: "SocialToolbar",
3059
3160
  props: { block: {} },
3060
3161
  emits: ["update"],
3061
3162
  setup(e, { emit: t }) {
3062
- let n = e, r = t, { t: o } = Z();
3163
+ let n = e, r = t, { t: o } = Q();
3063
3164
  function s(e, t) {
3064
3165
  r("update", { [e]: t });
3065
3166
  }
3066
3167
  function l() {
3067
3168
  let e = {
3068
- id: ve(),
3169
+ id: ye(),
3069
3170
  platform: "facebook",
3070
3171
  url: ""
3071
3172
  };
@@ -3082,10 +3183,10 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3082
3183
  r("update", { icons: n.block.icons.filter((t) => t.id !== e) });
3083
3184
  }
3084
3185
  return (t, n) => (i(), p(D, null, [
3085
- b("div", ea, [b("label", { class: g(h(V)) }, x(h(o).social.icons), 3), b("div", ta, [(i(!0), p(D, null, c(e.block.icons, (e) => (i(), p("div", {
3186
+ b("div", fa, [b("label", { class: g(h(V)) }, x(h(o).social.icons), 3), b("div", pa, [(i(!0), p(D, null, c(e.block.icons, (e) => (i(), p("div", {
3086
3187
  key: e.id,
3087
3188
  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"
3088
- }, [b("div", na, [k(A, {
3189
+ }, [b("div", ma, [k(A, {
3089
3190
  path: e.id.includes(".") ? void 0 : `icons.${e.id}.platform`,
3090
3191
  label: h(o).social.icons
3091
3192
  }, {
@@ -3094,19 +3195,19 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3094
3195
  class: g([h(B), "tpl:flex-1"]),
3095
3196
  value: e.platform,
3096
3197
  onChange: (t) => u(e.id, "platform", t.target.value)
3097
- }, [(i(!0), p(D, null, c(h(qe), (e) => (i(), p("option", {
3198
+ }, [(i(!0), p(D, null, c(h(ut), (e) => (i(), p("option", {
3098
3199
  key: e,
3099
3200
  value: e
3100
- }, x(h(o).social.platforms[e]), 9, ia))), 128))], 42, ra)]),
3201
+ }, x(h(o).social.platforms[e]), 9, ga))), 128))], 42, ha)]),
3101
3202
  _: 2
3102
3203
  }, 1032, ["path", "label"]), b("button", {
3103
3204
  class: g(h(I)),
3104
3205
  title: h(o).social.removeIcon,
3105
3206
  onClick: (t) => d(e.id)
3106
- }, [k(h(Y), {
3207
+ }, [k(h(pe), {
3107
3208
  size: 14,
3108
3209
  "stroke-width": 2
3109
- })], 10, aa)]), k(A, {
3210
+ })], 10, _a)]), k(A, {
3110
3211
  path: e.id.includes(".") ? void 0 : `icons.${e.id}.url`,
3111
3212
  label: h(o).button.url
3112
3213
  }, {
@@ -3124,7 +3225,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3124
3225
  }, 1032, ["path", "label"])]))), 128)), b("button", {
3125
3226
  class: g(h(R)),
3126
3227
  onClick: l
3127
- }, [k(h(H), {
3228
+ }, [k(h(U), {
3128
3229
  size: 14,
3129
3230
  "stroke-width": 2
3130
3231
  }), m(" " + x(h(o).social.addIcon), 1)], 2)])]),
@@ -3138,13 +3239,13 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3138
3239
  value: e.block.iconStyle,
3139
3240
  onChange: n[0] ||= (e) => s("iconStyle", e.target.value)
3140
3241
  }, [
3141
- b("option", sa, x(h(o).social.styleSolid), 1),
3142
- b("option", ca, x(h(o).social.styleOutlined), 1),
3143
- b("option", la, x(h(o).social.styleRounded), 1),
3144
- b("option", ua, x(h(o).social.styleSquare), 1),
3145
- b("option", da, x(h(o).social.styleCircle), 1),
3146
- b("option", fa, x(h(o).social.stylePlain), 1)
3147
- ], 42, oa)]),
3242
+ b("option", ya, x(h(o).social.styleSolid), 1),
3243
+ b("option", ba, x(h(o).social.styleOutlined), 1),
3244
+ b("option", xa, x(h(o).social.styleRounded), 1),
3245
+ b("option", Sa, x(h(o).social.styleSquare), 1),
3246
+ b("option", Ca, x(h(o).social.styleCircle), 1),
3247
+ b("option", wa, x(h(o).social.stylePlain), 1)
3248
+ ], 42, va)]),
3148
3249
  _: 1
3149
3250
  }, 8, ["label"]),
3150
3251
  k(A, {
@@ -3158,10 +3259,10 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3158
3259
  value: e.block.iconTone ?? "brand",
3159
3260
  onChange: n[1] ||= (e) => s("iconTone", e.target.value)
3160
3261
  }, [
3161
- b("option", ma, x(h(o).social.colorBrand), 1),
3162
- b("option", ha, x(h(o).social.colorDark), 1),
3163
- b("option", ga, x(h(o).social.colorLight), 1)
3164
- ], 42, pa)]),
3262
+ b("option", Ea, x(h(o).social.colorBrand), 1),
3263
+ b("option", Da, x(h(o).social.colorDark), 1),
3264
+ b("option", Oa, x(h(o).social.colorLight), 1)
3265
+ ], 42, Ta)]),
3165
3266
  _: 1
3166
3267
  }, 8, ["label"]),
3167
3268
  k(A, {
@@ -3169,7 +3270,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3169
3270
  class: "tpl:mb-3.5",
3170
3271
  path: "iconSize"
3171
3272
  }, {
3172
- default: a(() => [k(Q, {
3273
+ default: a(() => [k($, {
3173
3274
  options: [
3174
3275
  {
3175
3276
  value: "small",
@@ -3194,14 +3295,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3194
3295
  class: "tpl:mb-3.5",
3195
3296
  path: "spacing"
3196
3297
  }, {
3197
- default: a(() => [b("div", _a, [b("input", {
3298
+ default: a(() => [b("div", ka, [b("input", {
3198
3299
  type: "number",
3199
3300
  class: g(h(z)),
3200
3301
  value: e.block.spacing,
3201
3302
  min: "0",
3202
3303
  max: "50",
3203
3304
  onInput: n[3] ||= (e) => s("spacing", Number(e.target.value))
3204
- }, null, 42, va), b("span", { class: g(h(L)) }, "px", 2)])]),
3305
+ }, null, 42, Aa), b("span", { class: g(h(L)) }, "px", 2)])]),
3205
3306
  _: 1
3206
3307
  }, 8, ["label"]),
3207
3308
  k(A, {
@@ -3209,17 +3310,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3209
3310
  class: "tpl:mb-3.5",
3210
3311
  path: "align"
3211
3312
  }, {
3212
- default: a(() => [k(Q, {
3313
+ default: a(() => [k($, {
3213
3314
  options: [
3214
3315
  {
3215
3316
  value: "left",
3216
3317
  label: h(o).title.alignLeft,
3217
- icon: h(G)
3318
+ icon: h(q)
3218
3319
  },
3219
3320
  {
3220
3321
  value: "center",
3221
3322
  label: h(o).title.alignCenter,
3222
- icon: h(X)
3323
+ icon: h(Z)
3223
3324
  },
3224
3325
  {
3225
3326
  value: "right",
@@ -3234,36 +3335,36 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3234
3335
  }, 8, ["label"])
3235
3336
  ], 64));
3236
3337
  }
3237
- }), ba = { class: "tpl:flex tpl:items-stretch" }, xa = ["value"], Sa = ["value"], Ca = /* @__PURE__ */ r({
3338
+ }), Ma = { class: "tpl:flex tpl:items-stretch" }, Na = ["value"], Pa = ["value"], Fa = /* @__PURE__ */ r({
3238
3339
  __name: "SpacerToolbar",
3239
3340
  props: { block: {} },
3240
3341
  emits: ["update"],
3241
3342
  setup(e, { emit: t }) {
3242
- let n = t, { t: r } = Z();
3343
+ let n = t, { t: r } = Q();
3243
3344
  return (t, o) => (i(), v(A, {
3244
3345
  label: h(r).spacer.height,
3245
3346
  class: "tpl:mb-3.5",
3246
3347
  path: "height"
3247
3348
  }, {
3248
- default: a(() => [b("div", ba, [b("input", {
3349
+ default: a(() => [b("div", Ma, [b("input", {
3249
3350
  type: "number",
3250
3351
  class: g(h(z)),
3251
3352
  value: e.block.height,
3252
3353
  min: "10",
3253
3354
  max: "100",
3254
3355
  onInput: o[0] ||= (e) => n("update", { height: Number(e.target.value) })
3255
- }, null, 42, xa), b("span", { class: g(h(L)) }, "px", 2)]), b("input", {
3356
+ }, null, 42, Na), b("span", { class: g(h(L)) }, "px", 2)]), b("input", {
3256
3357
  type: "range",
3257
3358
  class: "tpl:mt-2 tpl:w-full tpl:accent-[var(--tpl-primary)]",
3258
3359
  value: e.block.height,
3259
3360
  min: "10",
3260
3361
  max: "100",
3261
3362
  onInput: o[1] ||= (e) => n("update", { height: Number(e.target.value) })
3262
- }, null, 40, Sa)]),
3363
+ }, null, 40, Pa)]),
3263
3364
  _: 1
3264
3365
  }, 8, ["label"]));
3265
3366
  }
3266
- }), wa = { class: "tpl:mb-3.5" }, Ta = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ea = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Da = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Oa = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ka = ["disabled"], Aa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ja = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Ma = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Na = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Pa = ["disabled"], Fa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ia = { class: "tpl:flex tpl:items-stretch" }, La = ["value"], Ra = { class: "tpl:flex tpl:items-stretch" }, za = ["value"], Ba = ["value"], Va = { value: "" }, Ha = ["value"], Ua = { class: "tpl:flex tpl:items-stretch" }, Wa = ["value"], Ga = /* @__PURE__ */ r({
3367
+ }), Ia = { class: "tpl:mb-3.5" }, La = { class: "tpl:flex tpl:items-center tpl:gap-3" }, Ra = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, za = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ba = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Va = ["disabled"], Ha = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ua = { class: "tpl:flex tpl:flex-1 tpl:items-center tpl:gap-1.5" }, Wa = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Ga = { class: "tpl:flex tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ka = ["disabled"], qa = { class: "tpl:min-w-[20px] tpl:text-center tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Ja = { class: "tpl:flex tpl:items-stretch" }, Ya = ["value"], Xa = { class: "tpl:flex tpl:items-stretch" }, Za = ["value"], Qa = ["value"], $a = { value: "" }, eo = ["value"], to = { class: "tpl:flex tpl:items-stretch" }, no = ["value"], ro = /* @__PURE__ */ r({
3267
3368
  __name: "TableToolbar",
3268
3369
  props: {
3269
3370
  block: {},
@@ -3271,15 +3372,15 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3271
3372
  },
3272
3373
  emits: ["update"],
3273
3374
  setup(e, { emit: t }) {
3274
- let n = e, r = t, { t: o } = Z(), s = C(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
3375
+ let n = e, r = t, { t: o } = Q(), s = C(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
3275
3376
  function l(e, t) {
3276
3377
  r("update", { [e]: t });
3277
3378
  }
3278
3379
  function u() {
3279
3380
  let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
3280
- id: ve(),
3381
+ id: ye(),
3281
3382
  cells: Array.from({ length: e }, () => ({
3282
- id: ve(),
3383
+ id: ye(),
3283
3384
  content: ""
3284
3385
  }))
3285
3386
  };
@@ -3292,7 +3393,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3292
3393
  let e = n.block.rows.map((e) => ({
3293
3394
  ...e,
3294
3395
  cells: [...e.cells, {
3295
- id: ve(),
3396
+ id: ye(),
3296
3397
  content: ""
3297
3398
  }]
3298
3399
  }));
@@ -3306,37 +3407,37 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3306
3407
  r("update", { rows: t });
3307
3408
  }
3308
3409
  return (t, n) => (i(), p(D, null, [
3309
- b("div", wa, [b("label", { class: g(h(V)) }, x(h(o).table.dimensions), 3), b("div", Ta, [b("div", Ea, [b("span", Da, x(h(o).table.rows), 1), b("div", Oa, [
3410
+ b("div", Ia, [b("label", { class: g(h(V)) }, x(h(o).table.dimensions), 3), b("div", La, [b("div", Ra, [b("span", za, x(h(o).table.rows), 1), b("div", Ba, [
3310
3411
  b("button", {
3311
3412
  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",
3312
3413
  disabled: e.block.rows.length <= 1,
3313
3414
  onClick: n[0] ||= (t) => d(e.block.rows[e.block.rows.length - 1].id)
3314
- }, [k(h(U), {
3415
+ }, [k(h(W), {
3315
3416
  size: 12,
3316
3417
  "stroke-width": 2
3317
- })], 8, ka),
3318
- b("span", Aa, x(e.block.rows.length), 1),
3418
+ })], 8, Va),
3419
+ b("span", Ha, x(e.block.rows.length), 1),
3319
3420
  b("button", {
3320
3421
  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)]",
3321
3422
  onClick: u
3322
- }, [k(h(H), {
3423
+ }, [k(h(U), {
3323
3424
  size: 12,
3324
3425
  "stroke-width": 2
3325
3426
  })])
3326
- ])]), b("div", ja, [b("span", Ma, x(h(o).table.columns), 1), b("div", Na, [
3427
+ ])]), b("div", Ua, [b("span", Wa, x(h(o).table.columns), 1), b("div", Ga, [
3327
3428
  b("button", {
3328
3429
  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",
3329
3430
  disabled: s.value <= 1,
3330
3431
  onClick: n[1] ||= (e) => m(s.value - 1)
3331
- }, [k(h(U), {
3432
+ }, [k(h(W), {
3332
3433
  size: 12,
3333
3434
  "stroke-width": 2
3334
- })], 8, Pa),
3335
- b("span", Fa, x(s.value), 1),
3435
+ })], 8, Ka),
3436
+ b("span", qa, x(s.value), 1),
3336
3437
  b("button", {
3337
3438
  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)]",
3338
3439
  onClick: f
3339
- }, [k(h(H), {
3440
+ }, [k(h(U), {
3340
3441
  size: 12,
3341
3442
  "stroke-width": 2
3342
3443
  })])
@@ -3394,14 +3495,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3394
3495
  class: "tpl:mb-3.5",
3395
3496
  path: "borderWidth"
3396
3497
  }, {
3397
- default: a(() => [b("div", Ia, [b("input", {
3498
+ default: a(() => [b("div", Ja, [b("input", {
3398
3499
  type: "number",
3399
3500
  class: g(h(z)),
3400
3501
  value: e.block.borderWidth,
3401
3502
  min: "0",
3402
3503
  max: "10",
3403
3504
  onInput: n[5] ||= (e) => l("borderWidth", Number(e.target.value))
3404
- }, null, 42, La), b("span", { class: g(h(L)) }, "px", 2)])]),
3505
+ }, null, 42, Ya), b("span", { class: g(h(L)) }, "px", 2)])]),
3405
3506
  _: 1
3406
3507
  }, 8, ["label"]),
3407
3508
  k(A, {
@@ -3409,14 +3510,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3409
3510
  class: "tpl:mb-3.5",
3410
3511
  path: "cellPadding"
3411
3512
  }, {
3412
- default: a(() => [b("div", Ra, [b("input", {
3513
+ default: a(() => [b("div", Xa, [b("input", {
3413
3514
  type: "number",
3414
3515
  class: g(h(z)),
3415
3516
  value: e.block.cellPadding,
3416
3517
  min: "0",
3417
3518
  max: "30",
3418
3519
  onInput: n[6] ||= (e) => l("cellPadding", Number(e.target.value))
3419
- }, null, 42, za), b("span", { class: g(h(L)) }, "px", 2)])]),
3520
+ }, null, 42, Za), b("span", { class: g(h(L)) }, "px", 2)])]),
3420
3521
  _: 1
3421
3522
  }, 8, ["label"]),
3422
3523
  k(A, {
@@ -3426,12 +3527,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3426
3527
  }, {
3427
3528
  default: a(() => [b("select", {
3428
3529
  class: g(h(B)),
3429
- value: h(Me)(e.block.fontFamily),
3530
+ value: h(ht)(e.block.fontFamily),
3430
3531
  onChange: n[7] ||= (e) => l("fontFamily", e.target.value || void 0)
3431
- }, [b("option", Va, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
3532
+ }, [b("option", $a, x(h(o).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
3432
3533
  key: e.value,
3433
3534
  value: e.value
3434
- }, x(e.label), 9, Ha))), 128))], 42, Ba)]),
3535
+ }, x(e.label), 9, eo))), 128))], 42, Qa)]),
3435
3536
  _: 1
3436
3537
  }, 8, ["label"]),
3437
3538
  k(A, {
@@ -3439,14 +3540,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3439
3540
  class: "tpl:mb-3.5",
3440
3541
  path: "fontSize"
3441
3542
  }, {
3442
- default: a(() => [b("div", Ua, [b("input", {
3543
+ default: a(() => [b("div", to, [b("input", {
3443
3544
  type: "number",
3444
3545
  class: g(h(z)),
3445
3546
  value: e.block.fontSize,
3446
3547
  min: "10",
3447
3548
  max: "32",
3448
3549
  onInput: n[8] ||= (e) => l("fontSize", Number(e.target.value))
3449
- }, null, 42, Wa), b("span", { class: g(h(L)) }, "px", 2)])]),
3550
+ }, null, 42, no), b("span", { class: g(h(L)) }, "px", 2)])]),
3450
3551
  _: 1
3451
3552
  }, 8, ["label"]),
3452
3553
  k(A, {
@@ -3465,17 +3566,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3465
3566
  class: "tpl:mb-3.5",
3466
3567
  path: "textAlign"
3467
3568
  }, {
3468
- default: a(() => [k(Q, {
3569
+ default: a(() => [k($, {
3469
3570
  options: [
3470
3571
  {
3471
3572
  value: "left",
3472
3573
  label: h(o).title.alignLeft,
3473
- icon: h(G)
3574
+ icon: h(q)
3474
3575
  },
3475
3576
  {
3476
3577
  value: "center",
3477
3578
  label: h(o).title.alignCenter,
3478
- icon: h(X)
3579
+ icon: h(Z)
3479
3580
  },
3480
3581
  {
3481
3582
  value: "right",
@@ -3490,7 +3591,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3490
3591
  }, 8, ["label"])
3491
3592
  ], 64));
3492
3593
  }
3493
- }), Ka = ["value"], qa = { value: 1 }, Ja = { value: 2 }, Ya = { value: 3 }, Xa = { value: 4 }, Za = ["value"], Qa = { value: "" }, $a = ["value"], eo = /* @__PURE__ */ r({
3594
+ }), io = ["value"], ao = { value: 1 }, oo = { value: 2 }, so = { value: 3 }, co = { value: 4 }, lo = ["value"], uo = { value: "" }, fo = ["value"], po = /* @__PURE__ */ r({
3494
3595
  __name: "TitleToolbar",
3495
3596
  props: {
3496
3597
  block: {},
@@ -3498,7 +3599,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3498
3599
  },
3499
3600
  emits: ["update"],
3500
3601
  setup(e, { emit: t }) {
3501
- let n = t, { t: r } = Z();
3602
+ let n = t, { t: r } = Q();
3502
3603
  function o(e, t) {
3503
3604
  n("update", { [e]: t });
3504
3605
  }
@@ -3513,11 +3614,11 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3513
3614
  value: e.block.level,
3514
3615
  onChange: n[0] ||= (e) => o("level", Number(e.target.value))
3515
3616
  }, [
3516
- b("option", qa, x(h(r).title.heading1), 1),
3517
- b("option", Ja, x(h(r).title.heading2), 1),
3518
- b("option", Ya, x(h(r).title.heading3), 1),
3519
- b("option", Xa, x(h(r).title.heading4), 1)
3520
- ], 42, Ka)]),
3617
+ b("option", ao, x(h(r).title.heading1), 1),
3618
+ b("option", oo, x(h(r).title.heading2), 1),
3619
+ b("option", so, x(h(r).title.heading3), 1),
3620
+ b("option", co, x(h(r).title.heading4), 1)
3621
+ ], 42, io)]),
3521
3622
  _: 1
3522
3623
  }, 8, ["label"]),
3523
3624
  k(A, {
@@ -3527,12 +3628,12 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3527
3628
  }, {
3528
3629
  default: a(() => [b("select", {
3529
3630
  class: g(h(B)),
3530
- value: h(Me)(e.block.fontFamily),
3631
+ value: h(ht)(e.block.fontFamily),
3531
3632
  onChange: n[1] ||= (e) => o("fontFamily", e.target.value || void 0)
3532
- }, [b("option", Qa, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
3633
+ }, [b("option", uo, x(h(r).title.inheritFont), 1), (i(!0), p(D, null, c(e.fontFamilies, (e) => (i(), p("option", {
3533
3634
  key: e.value,
3534
3635
  value: e.value
3535
- }, x(e.label), 9, $a))), 128))], 42, Za)]),
3636
+ }, x(e.label), 9, fo))), 128))], 42, lo)]),
3536
3637
  _: 1
3537
3638
  }, 8, ["label"]),
3538
3639
  k(A, {
@@ -3551,17 +3652,17 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3551
3652
  class: "tpl:mb-3.5",
3552
3653
  path: "textAlign"
3553
3654
  }, {
3554
- default: a(() => [k(Q, {
3655
+ default: a(() => [k($, {
3555
3656
  options: [
3556
3657
  {
3557
3658
  value: "left",
3558
3659
  label: h(r).title.alignLeft,
3559
- icon: h(G)
3660
+ icon: h(q)
3560
3661
  },
3561
3662
  {
3562
3663
  value: "center",
3563
3664
  label: h(r).title.alignCenter,
3564
- icon: h(X)
3665
+ icon: h(Z)
3565
3666
  },
3566
3667
  {
3567
3668
  value: "right",
@@ -3576,29 +3677,29 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3576
3677
  }, 8, ["label"])
3577
3678
  ], 64));
3578
3679
  }
3579
- }), to = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, no = [
3680
+ }), mo = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, ho = [
3580
3681
  "value",
3581
3682
  "placeholder",
3582
3683
  "title"
3583
- ], ro = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, io = ["value"], ao = { value: "full" }, oo = { value: "custom" }, so = {
3684
+ ], go = { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, _o = ["value"], vo = { value: "full" }, yo = { value: "custom" }, bo = {
3584
3685
  key: 0,
3585
3686
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
3586
- }, co = ["value"], lo = ["value"], uo = { value: "auto" }, fo = { value: "custom" }, po = {
3687
+ }, xo = ["value"], So = ["value"], Co = { value: "auto" }, wo = { value: "custom" }, To = {
3587
3688
  key: 0,
3588
3689
  class: "tpl:mt-2 tpl:flex tpl:items-stretch"
3589
- }, mo = ["value"], ho = 350, go = 200, _o = /* @__PURE__ */ r({
3690
+ }, Eo = ["value"], Do = 350, Oo = 200, ko = /* @__PURE__ */ r({
3590
3691
  __name: "VideoToolbar",
3591
3692
  props: { block: {} },
3592
3693
  emits: ["update"],
3593
3694
  setup(e, { emit: t }) {
3594
- let n = e, r = t, { t: o } = Z(), s = l(rt, null), c = l(Qe, _e.liquid), u = ze(), d = [
3695
+ let n = e, r = t, { t: o } = Q(), s = l(We, null), c = l(ze, _e.liquid), u = nt(), d = [
3595
3696
  300,
3596
3697
  400,
3597
3698
  500
3598
- ], f = C(() => !!s), y = C(() => be(n.block.url, c)), S = C(() => {
3699
+ ], f = C(() => !!s), y = C(() => Ee(n.block.url, c)), S = C(() => {
3599
3700
  let e = n.block.width;
3600
3701
  return e === "full" ? "full" : d.includes(e) ? String(e) : "custom";
3601
- }), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } = ht(() => {
3702
+ }), w = C(() => typeof n.block.height == "number" ? "custom" : "auto"), T = E(!1), { start: O } = xt(() => {
3602
3703
  T.value = !1;
3603
3704
  }, 1e3, { immediate: !1 });
3604
3705
  function j(e, t) {
@@ -3607,7 +3708,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3607
3708
  function M(e) {
3608
3709
  if (e === "custom") {
3609
3710
  let e = n.block.width;
3610
- (typeof e != "number" || d.includes(e)) && j("width", ho);
3711
+ (typeof e != "number" || d.includes(e)) && j("width", Do);
3611
3712
  } else j("width", e === "full" ? "full" : Number(e));
3612
3713
  }
3613
3714
  function F(e) {
@@ -3615,7 +3716,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3615
3716
  !Number.isFinite(t) || t <= 0 || j("width", t);
3616
3717
  }
3617
3718
  function I(e) {
3618
- j("height", e === "custom" ? go : void 0);
3719
+ j("height", e === "custom" ? Oo : void 0);
3619
3720
  }
3620
3721
  function ee(e) {
3621
3722
  let t = Number(e);
@@ -3662,7 +3763,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3662
3763
  class: "tpl:mb-3.5",
3663
3764
  path: "placeholderUrl"
3664
3765
  }, {
3665
- label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span", to, x(h(o).video.optional), 1)]),
3766
+ label: a(() => [m(x(h(o).video.placeholderUrl) + " ", 1), b("span", mo, x(h(o).video.optional), 1)]),
3666
3767
  default: a(() => [b("input", {
3667
3768
  type: "url",
3668
3769
  class: g(h(B)),
@@ -3670,14 +3771,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3670
3771
  placeholder: h(o).video.placeholderUrlPlaceholder,
3671
3772
  title: h(o).video.placeholderUrlTooltip,
3672
3773
  onInput: n[2] ||= (e) => j("placeholderUrl", e.target.value)
3673
- }, null, 42, no)]),
3774
+ }, null, 42, ho)]),
3674
3775
  _: 1
3675
3776
  })) : _("", !0),
3676
3777
  k(A, {
3677
3778
  class: "tpl:mb-3.5",
3678
3779
  path: "thumbnailUrl"
3679
3780
  }, {
3680
- label: a(() => [m(x(h(o).video.customThumbnail) + " ", 1), b("span", ro, x(h(o).video.optional), 1)]),
3781
+ label: a(() => [m(x(h(o).video.customThumbnail) + " ", 1), b("span", go, x(h(o).video.optional), 1)]),
3681
3782
  default: a(() => [k(N, {
3682
3783
  "model-value": e.block.thumbnailUrl,
3683
3784
  type: "url",
@@ -3727,19 +3828,19 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3727
3828
  value: S.value,
3728
3829
  onChange: n[5] ||= (e) => M(e.target.value)
3729
3830
  }, [
3730
- b("option", ao, x(h(o).video.fullWidth), 1),
3831
+ b("option", vo, x(h(o).video.fullWidth), 1),
3731
3832
  n[10] ||= b("option", { value: "300" }, "300px", -1),
3732
3833
  n[11] ||= b("option", { value: "400" }, "400px", -1),
3733
3834
  n[12] ||= b("option", { value: "500" }, "500px", -1),
3734
- b("option", oo, x(h(o).video.widthCustom), 1)
3735
- ], 42, io), S.value === "custom" ? (i(), p("div", so, [b("input", {
3835
+ b("option", yo, x(h(o).video.widthCustom), 1)
3836
+ ], 42, _o), S.value === "custom" ? (i(), p("div", bo, [b("input", {
3736
3837
  type: "number",
3737
3838
  "data-testid": "video-width-input",
3738
3839
  class: g(h(z)),
3739
3840
  value: e.block.width,
3740
3841
  min: "20",
3741
3842
  onInput: n[6] ||= (e) => F(e.target.value)
3742
- }, null, 42, co), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
3843
+ }, null, 42, xo), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
3743
3844
  _: 1
3744
3845
  }, 8, ["label"]),
3745
3846
  k(A, {
@@ -3752,14 +3853,14 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3752
3853
  "data-testid": "video-height-mode",
3753
3854
  value: w.value,
3754
3855
  onChange: n[7] ||= (e) => I(e.target.value)
3755
- }, [b("option", uo, x(h(o).video.heightAuto), 1), b("option", fo, x(h(o).video.heightCustom), 1)], 42, lo), w.value === "custom" ? (i(), p("div", po, [b("input", {
3856
+ }, [b("option", Co, x(h(o).video.heightAuto), 1), b("option", wo, x(h(o).video.heightCustom), 1)], 42, So), w.value === "custom" ? (i(), p("div", To, [b("input", {
3756
3857
  type: "number",
3757
3858
  "data-testid": "video-height-input",
3758
3859
  class: g(h(z)),
3759
3860
  value: e.block.height,
3760
3861
  min: "20",
3761
3862
  onInput: n[8] ||= (e) => ee(e.target.value)
3762
- }, null, 42, mo), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
3863
+ }, null, 42, Eo), b("span", { class: g(h(L)) }, "px", 2)])) : _("", !0)]),
3763
3864
  _: 1
3764
3865
  }, 8, ["label"]),
3765
3866
  k(A, {
@@ -3767,7 +3868,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3767
3868
  class: "tpl:mb-3.5",
3768
3869
  path: "align"
3769
3870
  }, {
3770
- default: a(() => [k(Q, {
3871
+ default: a(() => [k($, {
3771
3872
  options: [
3772
3873
  {
3773
3874
  value: "left",
@@ -3789,7 +3890,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3789
3890
  }, 8, ["label"])
3790
3891
  ], 64));
3791
3892
  }
3792
- }), vo = ["aria-label"], yo = ["disabled", "inert"], bo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, xo = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, So = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Co = { class: "tpl:flex tpl:gap-1" }, wo = ["title"], To = ["title"], Eo = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Do = /*@__PURE__*/ r({
3893
+ }), Ao = ["aria-label"], jo = ["disabled", "inert"], Mo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3.5" }, No = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-[var(--tpl-primary)]" }, Po = { class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Fo = { class: "tpl:flex tpl:gap-1" }, Io = ["title"], Lo = ["title"], Ro = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, zo = /*@__PURE__*/ r({
3793
3894
  __name: "Toolbar",
3794
3895
  props: { block: {} },
3795
3896
  emits: [
@@ -3798,9 +3899,9 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3798
3899
  "duplicate"
3799
3900
  ],
3800
3901
  setup(e, { emit: t }) {
3801
- let r = f(() => import("./CountdownToolbar-CUTbVPPV.js")), a = e, o = t, { t: s } = Z(), c = ft(), u = lt(at, "Toolbar"), d = l(ot, []), m = C(() => a.block.type), g = C(() => Ae(a.block)), y = C(() => {
3902
+ let r = f(() => import("./CountdownToolbar-BOyk_4k7.js")), a = e, o = t, { t: s } = Q(), c = yt(), u = Xe(Ke, "Toolbar"), d = l(qe, []), m = C(() => a.block.type), g = C(() => Ie(a.block)), y = C(() => {
3802
3903
  if (g.value) return d.find((e) => e.type === a.block.customType);
3803
- }), S = C(() => g.value ? y.value?.name ?? a.block.customType : Re(m.value, s)), w = C(() => je(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
3904
+ }), S = C(() => g.value ? y.value?.name ?? a.block.customType : tt(m.value, s)), w = C(() => mt(u.fonts.value, "fontFamily" in a.block ? a.block.fontFamily : void 0));
3804
3905
  function T(e) {
3805
3906
  c.value && o("update", e);
3806
3907
  }
@@ -3812,7 +3913,7 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3812
3913
  disabled: !h(c),
3813
3914
  inert: !h(c),
3814
3915
  class: "tpl:contents"
3815
- }, [b("div", bo, [b("div", xo, [h(gt)[m.value] ? (i(), v(n(h(gt)[m.value]), {
3916
+ }, [b("div", Mo, [b("div", No, [h(St)[m.value] ? (i(), v(n(h(St)[m.value]), {
3816
3917
  key: 0,
3817
3918
  size: 16,
3818
3919
  "stroke-width": 1.5
@@ -3820,74 +3921,74 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3820
3921
  key: 1,
3821
3922
  size: 16,
3822
3923
  "stroke-width": 1.5
3823
- })) : _("", !0), b("h3", So, x(S.value), 1)]), b("div", Co, [b("button", {
3924
+ })) : _("", !0), b("h3", Po, x(S.value), 1)]), b("div", Fo, [b("button", {
3824
3925
  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)]",
3825
3926
  title: h(s).toolbar.duplicate,
3826
3927
  onClick: a[0] ||= (e) => o("duplicate")
3827
3928
  }, [k(h(ie), {
3828
3929
  size: 14,
3829
3930
  "stroke-width": 2
3830
- })], 8, wo), b("button", {
3931
+ })], 8, Io), b("button", {
3831
3932
  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)]",
3832
3933
  title: h(s).toolbar.delete,
3833
3934
  onClick: a[1] ||= (e) => o("delete")
3834
- }, [k(h(pe), {
3935
+ }, [k(h(G), {
3835
3936
  size: 14,
3836
3937
  "stroke-width": 2
3837
- })], 8, To)])]), b("div", Eo, [g.value ? (i(), v(ti, {
3938
+ })], 8, Lo)])]), b("div", Ro, [g.value ? (i(), v(ui, {
3838
3939
  key: 0,
3839
3940
  block: e.block,
3840
3941
  onUpdateFieldValues: a[2] ||= (e) => o("update", { fieldValues: e }),
3841
3942
  onUpdateDataSourceFetched: a[3] ||= (e) => o("update", { dataSourceFetched: e })
3842
- }, null, 8, ["block"])) : m.value === "section" ? (i(), v($i, {
3943
+ }, null, 8, ["block"])) : m.value === "section" ? (i(), v(da, {
3843
3944
  key: 1,
3844
3945
  block: e.block,
3845
3946
  onUpdate: T
3846
- }, null, 8, ["block"])) : m.value === "title" ? (i(), v(eo, {
3947
+ }, null, 8, ["block"])) : m.value === "title" ? (i(), v(po, {
3847
3948
  key: 2,
3848
3949
  block: e.block,
3849
3950
  "font-families": w.value,
3850
3951
  onUpdate: T
3851
- }, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(Gi, {
3952
+ }, null, 8, ["block", "font-families"])) : m.value === "paragraph" ? (i(), v(ea, {
3852
3953
  key: 3,
3853
3954
  block: e.block,
3854
3955
  onUpdate: T
3855
- }, null, 8, ["block"])) : m.value === "image" ? (i(), v(ji, {
3956
+ }, null, 8, ["block"])) : m.value === "image" ? (i(), v(Bi, {
3856
3957
  key: 4,
3857
3958
  block: e.block,
3858
3959
  onUpdate: T
3859
- }, null, 8, ["block"])) : m.value === "video" ? (i(), v(_o, {
3960
+ }, null, 8, ["block"])) : m.value === "video" ? (i(), v(ko, {
3860
3961
  key: 5,
3861
3962
  block: e.block,
3862
3963
  onUpdate: T
3863
- }, null, 8, ["block"])) : m.value === "button" ? (i(), v(Ut, {
3964
+ }, null, 8, ["block"])) : m.value === "button" ? (i(), v(Zt, {
3864
3965
  key: 6,
3865
3966
  block: e.block,
3866
3967
  "font-families": w.value,
3867
3968
  onUpdate: T
3868
- }, null, 8, ["block", "font-families"])) : m.value === "divider" ? (i(), v(ii, {
3969
+ }, null, 8, ["block", "font-families"])) : m.value === "divider" ? (i(), v(pi, {
3869
3970
  key: 7,
3870
3971
  block: e.block,
3871
3972
  onUpdate: T
3872
- }, null, 8, ["block"])) : m.value === "social" ? (i(), v(ya, {
3973
+ }, null, 8, ["block"])) : m.value === "social" ? (i(), v(ja, {
3873
3974
  key: 8,
3874
3975
  block: e.block,
3875
3976
  onUpdate: T
3876
- }, null, 8, ["block"])) : m.value === "menu" ? (i(), v(Hi, {
3977
+ }, null, 8, ["block"])) : m.value === "menu" ? (i(), v(Zi, {
3877
3978
  key: 9,
3878
3979
  block: e.block,
3879
3980
  "font-families": w.value,
3880
3981
  onUpdate: T
3881
- }, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(Ga, {
3982
+ }, null, 8, ["block", "font-families"])) : m.value === "table" ? (i(), v(ro, {
3882
3983
  key: 10,
3883
3984
  block: e.block,
3884
3985
  "font-families": w.value,
3885
3986
  onUpdate: T
3886
- }, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(Ca, {
3987
+ }, null, 8, ["block", "font-families"])) : m.value === "spacer" ? (i(), v(Fa, {
3887
3988
  key: 11,
3888
3989
  block: e.block,
3889
3990
  onUpdate: T
3890
- }, null, 8, ["block"])) : m.value === "html" ? (i(), v(si, {
3991
+ }, null, 8, ["block"])) : m.value === "html" ? (i(), v(gi, {
3891
3992
  key: 12,
3892
3993
  block: e.block,
3893
3994
  onUpdate: T
@@ -3896,13 +3997,13 @@ var qi = { class: "tpl:mb-3.5" }, Ji = ["value"], Yi = ["value"], Xi = {
3896
3997
  block: e.block,
3897
3998
  "font-families": w.value,
3898
3999
  onUpdate: T
3899
- }, null, 8, ["block", "font-families"])) : _("", !0), k(hr, {
4000
+ }, null, 8, ["block", "font-families"])) : _("", !0), k(wr, {
3900
4001
  block: e.block,
3901
4002
  "is-first-section": m.value === "paragraph",
3902
4003
  onUpdate: T
3903
- }, null, 8, ["block", "is-first-section"])])], 8, yo)], 8, vo));
4004
+ }, null, 8, ["block", "is-first-section"])])], 8, jo)], 8, Ao));
3904
4005
  }
3905
- }), Oo = /* @__PURE__ */ e({ default: () => ko }), ko = /*#__PURE__*/ Pe(Do, [["__scopeId", "data-v-206f038f"]]);
3906
- export { ko as default, xt as n, Q as r, Oo as t };
4006
+ }), Bo = /* @__PURE__ */ e({ default: () => Vo }), Vo = /*#__PURE__*/ _t(zo, [["__scopeId", "data-v-206f038f"]]);
4007
+ export { Vo as default, Dt as n, $ as r, Bo as t };
3907
4008
 
3908
- //# sourceMappingURL=Toolbar-CYnnArxv.js.map
4009
+ //# sourceMappingURL=Toolbar-DbqkKRXy.js.map