@templatical/editor 0.59.1 → 0.60.0

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