@templatical/editor 0.59.2 → 0.60.1

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