@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,32 +1,32 @@
1
1
  import { a as e, c as t, i as n, l as r } from "./dist-zu1jwYIS.js";
2
2
  import { A as i, B as a, C as o, E as s, F as c, G as l, H as u, I as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, W as x, X as S, Y as C, _ as w, b as T, c as E, ct as D, dt as O, f as ee, g as k, h as A, j, l as M, m as N, mt as P, ot as F, p as I, pt as L, rt as R, s as z, st as B, t as V, tt as H, u as U, x as W } from "./draggable-IRVFEZ-b.js";
3
- import { t as te } from "./useEditorRoot-BA4vV7sK.js";
4
- import { t as G } from "./useI18n-JsIdvX-i.js";
5
- import "./useCloudI18n-CWgySYuJ.js";
6
- import { t as K } from "./useMergeTag-Dd26TcvH.js";
3
+ import { t as te } from "./useEditorRoot-D0Lp2x4_.js";
4
+ import { t as G } from "./useI18n-DPg6rPbu.js";
5
+ import "./useCloudI18n-BTV9uu3c.js";
6
+ import { t as K } from "./useMergeTag-DUNl364g.js";
7
7
  import { _ as ne, h as q, v as J, y as re } from "./dist-BtWMy7UQ.js";
8
- import { $ as ie, $t as ae, A as Y, B as X, C as Z, Cn as Q, D as oe, E as se, G as ce, H as le, I as ue, K as de, L as fe, M as pe, N as me, O as he, P as ge, Q as _e, Qt as ve, R as ye, S as be, Sn as xe, T as Se, Tn as Ce, W as we, X as Te, Y as Ee, Z as De, a as Oe, at as ke, b as Ae, bn as je, cn as Me, ct as Ne, d as Pe, dn as Fe, dt as Ie, et as Le, gn as Re, hn as ze, ht as Be, i as Ve, in as He, it as Ue, j as We, jt as Ge, ln as Ke, lt as qe, mt as Je, nt as Ye, p as Xe, pt as Ze, q as Qe, qt as $e, rt as et, sn as tt, st as nt, t as rt, tt as it, u as at, vt as ot, w as st, wn as ct, x as lt, xn as ut, y as dt, yn as ft } from "./src-CVHGPKSW.js";
8
+ import { $ as ie, A as ae, An as Y, B as X, C as Z, D as Q, Dn as oe, E as se, En as ce, G as le, Gt as ue, H as de, I as fe, K as pe, Kt as me, L as he, Lt as ge, M as _e, Mn as ve, Mt as ye, N as be, O as xe, On as Se, P as Ce, Q as we, R as Te, Rt as Ee, S as De, T as Oe, Vt as ke, W as Ae, X as je, Y as Me, Yt as Ne, Z as Pe, a as Fe, at as Ie, b as Le, bn as Re, ct as ze, d as Be, et as Ve, ft as He, gt as Ue, hn as We, ht as Ge, i as Ke, it as qe, j as Je, jn as Ye, kn as Xe, ln as Ze, lt as Qe, mn as $e, mt as et, nt as tt, ot as nt, p as rt, q as it, rt as at, t as ot, tt as st, u as ct, ut as lt, w as ut, x as dt, xn as ft, y as pt, yt as mt, zt as ht } from "./src-BHgVGOTi.js";
9
9
  import { t as $ } from "./logger-CqQTfJGx.js";
10
- import { a as pt, c as mt, i as ht, n as gt, o as _t, t as vt } from "./usePopoverPosition-DWRQRT2P.js";
11
- import { n as yt } from "./useLocalizedDisplay-7iwZ1UhB.js";
12
- import { $ as bt, A as xt, B as St, C as Ct, D as wt, F as Tt, G as Et, H as Dt, I as Ot, J as kt, K as At, L as jt, M as Mt, N as Nt, O as Pt, P as Ft, R as It, S as Lt, T as Rt, U as zt, V as Bt, W as Vt, X as Ht, Y as Ut, Z as Wt, _ as Gt, a as Kt, at as qt, b as Jt, c as Yt, ct as Xt, d as Zt, g as Qt, h as $t, i as en, it as tn, j as nn, k as rn, l as an, lt as on, m as sn, nt as cn, ot as ln, p as un, q as dn, r as fn, rt as pn, s as mn, st as hn, tt as gn, u as _n, v as vn, w as yn, x as bn, y as xn, z as Sn } from "./keys-DNv3xXxI.js";
13
- import { t as Cn } from "./useLogicTag-C10Wef7d.js";
14
- import { B as wn, C as Tn, F as En, I as Dn, P as On, R as kn, T as An, _ as jn, a as Mn, f as Nn, h as Pn, n as Fn, o as In, t as Ln, u as Rn, v as zn, w as Bn, x as Vn, y as Hn, z as Un } from "./socialIcons-bvQ57o1m.js";
15
- import { r as Wn, t as Gn } from "./templateSettingsFields-cjlP-jdw.js";
16
- import { r as Kn, t as qn } from "./sanitizeHtml-5T_KaDcp.js";
17
- import { At as Jn, G as Yn, Mt as Xn, Nt as Zn, Ot as Qn, St as $n, Ut as er, V as tr, Wt as nr, X as rr, _t as ir, d as ar, f as or, k as sr, mt as cr, nt as lr, o as ur, y as dr, yt as fr } from "./icons-C7vjUBLn.js";
18
- import { t as pr } from "./LoadingTrack-o-89hApJ.js";
19
- import { t as mr } from "./languageName-DEEOhDWI.js";
20
- import { t as hr } from "./plural-CyxrJXL1.js";
21
- import { m as gr, w as _r, x as vr } from "./styleConstants-Br6CIRoS.js";
22
- import { t as yr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
23
- import { t as br } from "./readableTextColor-BfZUGnVj.js";
10
+ import { a as gt, c as _t, i as vt, n as yt, o as bt, t as xt } from "./usePopoverPosition-CBp9uwjV.js";
11
+ import { n as St } from "./useLocalizedDisplay-C3lIetmX.js";
12
+ import { $ as Ct, A as wt, B as Tt, C as Et, D as Dt, F as Ot, G as kt, H as At, I as jt, J as Mt, K as Nt, L as Pt, M as Ft, N as It, O as Lt, P as Rt, R as zt, S as Bt, T as Vt, U as Ht, V as Ut, W as Wt, X as Gt, Y as Kt, Z as qt, _ as Jt, a as Yt, at as Xt, b as Zt, c as Qt, ct as $t, d as en, et as tn, g as nn, h as rn, i as an, it as on, j as sn, k as cn, l as ln, lt as un, m as dn, nt as fn, ot as pn, p as mn, q as hn, r as gn, rt as _n, s as vn, st as yn, u as bn, ut as xn, v as Sn, w as Cn, x as wn, y as Tn, z as En } from "./keys-ywH4jHJ2.js";
13
+ import { t as Dn } from "./useLogicTag-DOIlsGk8.js";
14
+ import { B as On, C as kn, F as An, I as jn, P as Mn, R as Nn, T as Pn, _ as Fn, a as In, f as Ln, h as Rn, n as zn, o as Bn, t as Vn, u as Hn, v as Un, w as Wn, x as Gn, y as Kn, z as qn } from "./socialIcons-Df9dNe7I.js";
15
+ import { r as Jn, t as Yn } from "./templateSettingsFields-cjlP-jdw.js";
16
+ import { r as Xn, t as Zn } from "./sanitizeHtml-BdAjvU9I.js";
17
+ import { At as Qn, G as $n, Mt as er, Nt as tr, Ot as nr, St as rr, Ut as ir, V as ar, Wt as or, X as sr, _t as cr, d as lr, f as ur, k as dr, mt as fr, nt as pr, o as mr, y as hr, yt as gr } from "./icons-BJ6AtVgu.js";
18
+ import { t as _r } from "./LoadingTrack-o-89hApJ.js";
19
+ import { t as vr } from "./languageName-DEEOhDWI.js";
20
+ import { t as yr } from "./plural-CyxrJXL1.js";
21
+ import { m as br, w as xr, x as Sr } from "./styleConstants-Br6CIRoS.js";
22
+ import { t as Cr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
23
+ import { t as wr } from "./readableTextColor-BfZUGnVj.js";
24
24
  // src/composables/useFocusTrap.ts
25
- var xr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
- function Sr(t, n) {
25
+ var Tr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
+ function Er(t, n) {
27
27
  let r = te(), i = null, a = null, o = null;
28
28
  function s() {
29
- return t.value ? Array.from(t.value.querySelectorAll(xr)).filter((e) => e.offsetParent !== null) : [];
29
+ return t.value ? Array.from(t.value.querySelectorAll(Tr)).filter((e) => e.offsetParent !== null) : [];
30
30
  }
31
31
  function c(e) {
32
32
  if (e.key !== "Tab") return;
@@ -55,7 +55,7 @@ function Sr(t, n) {
55
55
  });
56
56
  }
57
57
  // src/composables/useEmoji.ts
58
- function Cr() {
58
+ function Dr() {
59
59
  let [e, t] = J(!1), n = R([]), r = !1;
60
60
  v(() => {
61
61
  r = !0;
@@ -80,7 +80,7 @@ function Cr() {
80
80
  };
81
81
  }
82
82
  // src/composables/useBlockRegistry.ts
83
- function wr() {
83
+ function Or() {
84
84
  let e = R(/* @__PURE__ */ new Map());
85
85
  function t(t, n) {
86
86
  e.value.set(t, n), B(e);
@@ -89,7 +89,7 @@ function wr() {
89
89
  let r = `custom:${t.type}`;
90
90
  e.value.set(r, {
91
91
  component: n,
92
- createBlock: () => be(t),
92
+ createBlock: () => De(t),
93
93
  definition: t
94
94
  }), B(e);
95
95
  }
@@ -114,7 +114,7 @@ function wr() {
114
114
  let t = a(e.customType);
115
115
  if (!t) return o("Block definition not found");
116
116
  try {
117
- return await fe(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
117
+ return await he(await import("./liquid.browser-rubac0VA.js")).parseAndRender(t.template, e.fieldValues);
118
118
  } catch (t) {
119
119
  return $.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
120
120
  }
@@ -133,7 +133,7 @@ function wr() {
133
133
  };
134
134
  }
135
135
  // src/composables/useFonts.ts
136
- var Tr = [
136
+ var kr = [
137
137
  {
138
138
  value: "Arial",
139
139
  label: "Arial"
@@ -162,19 +162,19 @@ var Tr = [
162
162
  value: "Courier New",
163
163
  label: "Courier New"
164
164
  }
165
- ], Er = "Arial, sans-serif";
166
- function Dr(e) {
167
- if (e === void 0 || e === !0) return [...Tr];
165
+ ], Ar = "Arial, sans-serif";
166
+ function jr(e) {
167
+ if (e === void 0 || e === !0) return [...kr];
168
168
  if (e === !1) return [];
169
169
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
170
170
  for (let i of e) {
171
- let e = i.toLowerCase(), a = Tr.find((t) => t.value.toLowerCase() === e);
172
- a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Tr.map((e) => e.value).join(", ")}.`));
171
+ let e = i.toLowerCase(), a = kr.find((t) => t.value.toLowerCase() === e);
172
+ a ? n.has(a.value) || (n.add(a.value), t.push(a)) : r.has(e) || (r.add(e), $.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${kr.map((e) => e.value).join(", ")}.`));
173
173
  }
174
174
  return t;
175
175
  }
176
- function Or(e) {
177
- let t = H(e?.customFonts ?? []), n = H(!1), r = Dr(e?.builtIns), i = I(() => e?.defaultFallback ?? Er), a = I(() => {
176
+ function Mr(e) {
177
+ let t = H(e?.customFonts ?? []), n = H(!1), r = jr(e?.builtIns), i = I(() => e?.defaultFallback ?? Ar), a = I(() => {
178
178
  let e = [...r], n = t.value.map((e) => ({
179
179
  value: e.name,
180
180
  label: e.name,
@@ -185,18 +185,18 @@ function Or(e) {
185
185
  function o(e) {
186
186
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
187
187
  }
188
- let s = e?.defaultFont ?? Er.split(",")[0].trim();
188
+ let s = e?.defaultFont ?? Ar.split(",")[0].trim();
189
189
  o(s) || $.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
190
190
  function c() {
191
191
  if (e?.defaultFont && o(e.defaultFont)) {
192
192
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
193
193
  if (t) return t.value;
194
194
  }
195
- return Er;
195
+ return Ar;
196
196
  }
197
197
  let l = I(() => c());
198
198
  function u(e) {
199
- return Ve(e, {
199
+ return Ke(e, {
200
200
  customFonts: t.value,
201
201
  defaultFallback: i.value
202
202
  });
@@ -239,7 +239,7 @@ function Or(e) {
239
239
  };
240
240
  }
241
241
  // src/composables/useThemeStyles.ts
242
- var kr = {
242
+ var Nr = {
243
243
  bg: "--tpl-bg",
244
244
  bgElevated: "--tpl-bg-elevated",
245
245
  bgHover: "--tpl-bg-hover",
@@ -263,10 +263,10 @@ var kr = {
263
263
  dangerLight: "--tpl-danger-light",
264
264
  canvasBg: "--tpl-canvas-bg"
265
265
  };
266
- function Ar({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
266
+ function Pr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
267
267
  return { themeStyles: I(() => {
268
268
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
269
- if (a) for (let [e, t] of Object.entries(kr)) {
269
+ if (a) for (let [e, t] of Object.entries(Nr)) {
270
270
  let n = a[e];
271
271
  n && (r[t] = n);
272
272
  }
@@ -274,12 +274,12 @@ function Ar({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
274
274
  }) };
275
275
  }
276
276
  // src/utils/mergeTagNodeSpec.ts
277
- function jr(e, t, n) {
278
- return De(e, n) ? {
277
+ function Fr(e, t, n) {
278
+ return Pe(e, n) ? {
279
279
  type: "logicMergeTagNode",
280
280
  attrs: {
281
281
  value: e,
282
- keyword: ce(e, n)
282
+ keyword: le(e, n)
283
283
  }
284
284
  } : {
285
285
  type: "mergeTagNode",
@@ -290,32 +290,32 @@ function jr(e, t, n) {
290
290
  };
291
291
  }
292
292
  // src/utils/insertLogicTag.ts
293
- function Mr(e) {
293
+ function Ir(e) {
294
294
  return "before" in e && "after" in e;
295
295
  }
296
- function Nr(e, t, n) {
297
- if (!Mr(t)) {
298
- e.chain().focus().insertContent(jr(t.value, t.label, n)).run();
296
+ function Lr(e, t, n) {
297
+ if (!Ir(t)) {
298
+ e.chain().focus().insertContent(Fr(t.value, t.label, n)).run();
299
299
  return;
300
300
  }
301
- let r = jr(t.before, t.label, n), i = jr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
301
+ let r = Fr(t.before, t.label, n), i = Fr(t.after, t.label, n), { from: a, to: o } = e.state.selection;
302
302
  a === o ? e.chain().focus().insertContentAt(a, [r, i]).setTextSelection(a + 1).run() : e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
303
303
  }
304
304
  // src/utils/linkColorExtension.ts
305
- function Pr(e) {
305
+ function Rr(e) {
306
306
  if (!e) return null;
307
307
  let t = e.trim();
308
308
  return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
309
309
  }
310
- function Fr(e) {
310
+ function zr(e) {
311
311
  return e.extend({ addAttributes() {
312
312
  return {
313
313
  ...this.parent?.(),
314
314
  color: {
315
315
  default: null,
316
- parseHTML: (e) => Pr(_t(e.style.color)),
316
+ parseHTML: (e) => Rr(bt(e.style.color)),
317
317
  renderHTML: (e) => {
318
- let t = Pr(e.color);
318
+ let t = Rr(e.color);
319
319
  return t ? { style: `color: ${t}` } : {};
320
320
  }
321
321
  }
@@ -323,9 +323,9 @@ function Fr(e) {
323
323
  } });
324
324
  }
325
325
  // src/composables/useRichTextLinkDialog.ts
326
- function Ir(e, t = le.liquid, n = () => !0) {
326
+ function Br(e, t = de.liquid, n = () => !0) {
327
327
  let r = H(!1), i = H(""), a = H(""), o = H(null);
328
- Sr(o, r);
328
+ Er(o, r);
329
329
  function s() {
330
330
  if (!n()) return;
331
331
  let t = e.value?.getAttributes("link") ?? {};
@@ -336,7 +336,7 @@ function Ir(e, t = le.liquid, n = () => !0) {
336
336
  if (i.value) {
337
337
  let t = d(i.value);
338
338
  if (t !== null) {
339
- let n = Pr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
339
+ let n = Rr(a.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
340
340
  n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
341
341
  }
342
342
  }
@@ -353,8 +353,8 @@ function Ir(e, t = le.liquid, n = () => !0) {
353
353
  if (t.startsWith("#")) return t;
354
354
  if (t.startsWith("//")) return `https:${t}`;
355
355
  if (l.test(t)) return t;
356
- let n = Pe(t);
357
- return n ? at.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
356
+ let n = Be(t);
357
+ return n ? ct.some((e) => e === n) ? t : null : u(t) ? t : `https://${t}`;
358
358
  }
359
359
  function f() {
360
360
  n() && (e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), p());
@@ -378,13 +378,13 @@ function Ir(e, t = le.liquid, n = () => !0) {
378
378
  };
379
379
  }
380
380
  // src/composables/useRichTextEditor.ts
381
- function Lr(t) {
382
- let n = g(vn, null), r = mt(), i = g(Ut, null), a = I(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: c, requestMergeTag: l, syntax: d, autocomplete: f } = K(), { canInsertLogicTag: p, isRequesting: h, requestLogicTag: _ } = Cn(), v = g(tn, null), y = (S(v) ? v.value : v)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", b = Ee(d), x = R(null), C = n?.content ? yt(n) : null, w = () => Ie(C?.settings.value ?? { locale: "en" });
381
+ function Vr(t) {
382
+ let n = g(Sn, null), r = _t(), i = g(Kt, null), a = I(() => r.value && !i?.value), { mergeTags: o, canRequestMergeTag: s, isRequesting: c, requestMergeTag: l, syntax: d, autocomplete: f } = K(), { canInsertLogicTag: p, isRequesting: h, requestLogicTag: _ } = Dn(), v = g(Xt, null), y = (S(v) ? v.value : v)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", b = Me(d), x = R(null), C = n?.content ? St(n) : null, w = () => He(C?.settings.value ?? { locale: "en" });
383
383
  u(w, (e) => {
384
384
  let t = x.value?.view.dom;
385
385
  t && t.setAttribute("dir", e);
386
386
  });
387
- let { showLinkDialog: T, linkUrl: E, linkColor: D, linkDialogRef: O, openLinkDialog: ee, insertLink: k, removeLink: A, closeLinkDialog: j, handleLinkKeydown: M } = Ir(x, d, () => a.value);
387
+ let { showLinkDialog: T, linkUrl: E, linkColor: D, linkDialogRef: O, openLinkDialog: ee, insertLink: k, removeLink: A, closeLinkDialog: j, handleLinkKeydown: M } = Br(x, d, () => a.value);
388
388
  u(a, (e) => {
389
389
  if (x.value?.setEditable(e, !1), !e) {
390
390
  j();
@@ -455,7 +455,7 @@ function Lr(t) {
455
455
  async function J() {
456
456
  if (!a.value) return;
457
457
  let e = await _();
458
- !B && a.value && (e && x.value ? Nr(x.value, e, d) : x.value?.commands.focus());
458
+ !B && a.value && (e && x.value ? Lr(x.value, e, d) : x.value?.commands.focus());
459
459
  }
460
460
  return {
461
461
  editor: x,
@@ -484,25 +484,25 @@ function Lr(t) {
484
484
  };
485
485
  }
486
486
  // src/utils/activeEditorTracker.ts
487
- var Rr = /* @__PURE__ */ new Set(), zr = 0, Br = 0;
488
- function Vr() {
489
- let e = ++Br;
490
- return Rr.add(e), zr === 0 && (zr = e), {
487
+ var Hr = /* @__PURE__ */ new Set(), Ur = 0, Wr = 0;
488
+ function Gr() {
489
+ let e = ++Wr;
490
+ return Hr.add(e), Ur === 0 && (Ur = e), {
491
491
  id: e,
492
- isActive: () => Rr.size <= 1 || zr === e,
492
+ isActive: () => Hr.size <= 1 || Ur === e,
493
493
  claim: () => {
494
- zr = e;
494
+ Ur = e;
495
495
  },
496
496
  dispose: () => {
497
- if (Rr.delete(e), zr === e) {
498
- let e = Array.from(Rr);
499
- zr = e[e.length - 1] ?? 0;
497
+ if (Hr.delete(e), Ur === e) {
498
+ let e = Array.from(Hr);
499
+ Ur = e[e.length - 1] ?? 0;
500
500
  }
501
501
  }
502
502
  };
503
503
  }
504
504
  // src/utils/resolveLintOptions.ts
505
- function Hr(e) {
505
+ function Kr(e) {
506
506
  let t = e.contentLocale ?? e.content?.settings.locale;
507
507
  return {
508
508
  ...e.lint,
@@ -511,8 +511,8 @@ function Hr(e) {
511
511
  };
512
512
  }
513
513
  // src/composables/usePreviewResolution.ts
514
- var Ur = 500;
515
- function Wr(e) {
514
+ var qr = 500;
515
+ function Jr(e) {
516
516
  let t = typeof e.resolvePreview == "function", n = H(null), r = H(!1), i = H(!1), a = H(!1), o = 0, s = null;
517
517
  function c() {
518
518
  s !== null && (clearTimeout(s), s = null);
@@ -523,7 +523,7 @@ function Wr(e) {
523
523
  let c = ++o;
524
524
  r.value = !0;
525
525
  let l = {
526
- content: He(e.getContent()),
526
+ content: Re(e.getContent()),
527
527
  surface: e.surface,
528
528
  trigger: t,
529
529
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
@@ -531,7 +531,7 @@ function Wr(e) {
531
531
  try {
532
532
  let e = await s(l);
533
533
  if (c !== o) return;
534
- if (!rt(e)) {
534
+ if (!ot(e)) {
535
535
  i.value = !0, n.value = null;
536
536
  return;
537
537
  }
@@ -546,7 +546,7 @@ function Wr(e) {
546
546
  function d(e) {
547
547
  t && (c(), !a.value && e !== "recipient" ? l(e) : s = setTimeout(() => {
548
548
  s = null, l(e);
549
- }, Ur));
549
+ }, qr));
550
550
  }
551
551
  function f() {
552
552
  t && e.isActive() && (c(), l("refresh"));
@@ -573,12 +573,13 @@ function Wr(e) {
573
573
  isResolving: r,
574
574
  isInitialResolve: I(() => r.value && !a.value),
575
575
  hasFailed: i,
576
+ isShowingResolved: I(() => n.value !== null),
576
577
  supersedesSamples: I(() => t),
577
578
  refresh: f
578
579
  };
579
580
  }
580
581
  // src/composables/useMergeTagPicker.ts
581
- function Gr() {
582
+ function Yr() {
582
583
  let e = H(!1), t = H([]), n = H(null), r = null;
583
584
  function i(i, a) {
584
585
  if (r) {
@@ -608,7 +609,7 @@ function Gr() {
608
609
  };
609
610
  }
610
611
  // src/composables/useLogicTagPicker.ts
611
- function Kr() {
612
+ function Xr() {
612
613
  let e = H(!1), t = H([]), n = H([]), r = null;
613
614
  function i(i, a) {
614
615
  if (r) {
@@ -638,23 +639,23 @@ function Kr() {
638
639
  };
639
640
  }
640
641
  // src/composables/useTemplateLint.ts
641
- function qr(e) {
642
+ function Zr(e) {
642
643
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 && e.deliverability === !1 && e.compatibility === !1 && e.localization === !1 : !1;
643
644
  }
644
- var Jr = !1;
645
- function Yr(e) {
645
+ var Qr = !1;
646
+ function $r(e) {
646
647
  let t = H([]), n = H(0), r = H(-1), i = u(e.content, () => {
647
648
  n.value++;
648
- }, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = qr(e.options), l = null, d = !1;
649
+ }, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = Zr(e.options), l = null, d = !1;
649
650
  c || f();
650
651
  async function f() {
651
652
  try {
652
- let t = await import("./src-BRyzUujm.js");
653
+ let t = await import("./src-B3v_3j9b.js");
653
654
  if (d) return;
654
655
  s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = re(n, p, { debounce: e.debounce ?? 500 });
655
656
  } catch {
656
657
  if (d) return;
657
- o.value = !0, Jr || (Jr = !0, $.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
658
+ o.value = !0, Qr || (Qr = !0, $.info("@templatical/quality isn't installed, so the Issues panel and its lint badges are off. Add @templatical/quality to your dependencies to turn them on."));
658
659
  }
659
660
  }
660
661
  function p() {
@@ -693,7 +694,7 @@ function Yr(e) {
693
694
  };
694
695
  }
695
696
  // src/composables/useKeyboardReorder.ts
696
- function Xr(e, t, n = []) {
697
+ function ei(e, t, n = []) {
697
698
  let r = H(null), i = H(""), a = null;
698
699
  function o(t) {
699
700
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -720,7 +721,7 @@ function Xr(e, t, n = []) {
720
721
  let i = o(r);
721
722
  if (!i) return "";
722
723
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
723
- return a ? Hn(a, t.t, n) : "";
724
+ return a ? Kn(a, t.t, n) : "";
724
725
  }
725
726
  function c(t, n) {
726
727
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -788,14 +789,14 @@ function Xr(e, t, n = []) {
788
789
  };
789
790
  }
790
791
  // src/composables/useUiTheme.ts
791
- function Zr(e) {
792
+ function ti(e) {
792
793
  let n = t("(prefers-color-scheme: dark)");
793
794
  return { resolvedTheme: I(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
794
795
  }
795
796
  // src/composables/useCustomBlockStylesheets.ts
796
- function Qr(e, t) {
797
+ function ni(e, t) {
797
798
  return I(() => {
798
- let n = $r(e.value.blocks);
799
+ let n = ri(e.value.blocks);
799
800
  if (n.size === 0) return [];
800
801
  let r = /* @__PURE__ */ new Set(), i = [];
801
802
  for (let e of n) {
@@ -807,39 +808,39 @@ function Qr(e, t) {
807
808
  return i;
808
809
  });
809
810
  }
810
- function $r(e) {
811
+ function ri(e) {
811
812
  let t = /* @__PURE__ */ new Set();
812
- return ei(e, t), t;
813
+ return ii(e, t), t;
813
814
  }
814
- function ei(e, t) {
815
- for (let n of e) if (ot(n)) t.add(n.customType);
815
+ function ii(e, t) {
816
+ for (let n of e) if (mt(n)) t.add(n.customType);
816
817
  else if (n.type === "section") {
817
818
  let e = n.children;
818
819
  if (!e) continue;
819
- for (let n of e) ei(n, t);
820
- } else Ge(n) && ei(n.children, t);
820
+ for (let n of e) ii(n, t);
821
+ } else ye(n) && ii(n.children, t);
821
822
  }
822
823
  // src/utils/registerBuiltInBlocks.ts
823
- var ti = [
824
+ var ai = [
824
825
  {
825
826
  type: "section",
826
- createBlock: he
827
+ createBlock: xe
827
828
  },
828
829
  {
829
830
  type: "title",
830
- createBlock: me
831
+ createBlock: be
831
832
  },
832
833
  {
833
834
  type: "paragraph",
834
- createBlock: oe
835
+ createBlock: Q
835
836
  },
836
837
  {
837
838
  type: "image",
838
- createBlock: Se
839
+ createBlock: Oe
839
840
  },
840
841
  {
841
842
  type: "button",
842
- createBlock: Ae
843
+ createBlock: Le
843
844
  },
844
845
  {
845
846
  type: "divider",
@@ -847,11 +848,11 @@ var ti = [
847
848
  },
848
849
  {
849
850
  type: "video",
850
- createBlock: ge
851
+ createBlock: Ce
851
852
  },
852
853
  {
853
854
  type: "social",
854
- createBlock: Y
855
+ createBlock: ae
855
856
  },
856
857
  {
857
858
  type: "menu",
@@ -859,23 +860,23 @@ var ti = [
859
860
  },
860
861
  {
861
862
  type: "table",
862
- createBlock: pe
863
+ createBlock: _e
863
864
  },
864
865
  {
865
866
  type: "spacer",
866
- createBlock: We
867
+ createBlock: Je
867
868
  },
868
869
  {
869
870
  type: "html",
870
- createBlock: st
871
+ createBlock: ut
871
872
  },
872
873
  {
873
874
  type: "countdown",
874
- createBlock: lt
875
+ createBlock: dt
875
876
  }
876
877
  ];
877
- function ni(e, t) {
878
- for (let n of ti) {
878
+ function oi(e, t) {
879
+ for (let n of ai) {
879
880
  let r = t[n.type];
880
881
  r && e.registerBuiltIn(n.type, {
881
882
  component: r,
@@ -884,31 +885,31 @@ function ni(e, t) {
884
885
  }
885
886
  }
886
887
  // src/utils/resolveHtmlBlockPreview.ts
887
- function ri(e) {
888
+ function si(e) {
888
889
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
889
890
  }
890
891
  // src/utils/collectOffPaletteDefaults.ts
891
- function ii(e) {
892
+ function ci(e) {
892
893
  return typeof e == "object" && !!e && !Array.isArray(e);
893
894
  }
894
- function ai(e, t, n) {
895
- let r = new Set(e.map((e) => pt(e))), i = [], a = (e, t) => {
896
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(pt(o)) && i.push(`${t}.${n}: ${o}`) : ii(o) && a(o, `${t}.${n}`);
895
+ function li(e, t, n) {
896
+ let r = new Set(e.map((e) => gt(e))), i = [], a = (e, t) => {
897
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(gt(o)) && i.push(`${t}.${n}: ${o}`) : ci(o) && a(o, `${t}.${n}`);
897
898
  }, o = t;
898
- for (let [e, t] of Object.entries(Ze)) {
899
+ for (let [e, t] of Object.entries(et)) {
899
900
  let n = o?.[e];
900
901
  a({
901
902
  ...t,
902
- ...ii(n) ? n : {}
903
+ ...ci(n) ? n : {}
903
904
  }, e);
904
905
  }
905
906
  return a({
906
- ...Je,
907
+ ...Ge,
907
908
  ...n ?? {}
908
909
  }, "template"), i;
909
910
  }
910
911
  // src/utils/localizedBlockDefaults.ts
911
- function oi(e) {
912
+ function ui(e) {
912
913
  return {
913
914
  title: { content: `<p>${e.blockDefaults.title}</p>` },
914
915
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -916,63 +917,63 @@ function oi(e) {
916
917
  };
917
918
  }
918
919
  // src/i18n/index.ts
919
- var si = /* #__PURE__ */ Object.assign({
920
- "./locales/ca.ts": () => import("./ca-YfIxwO1G.js"),
921
- "./locales/da.ts": () => import("./da-CM6DCvRG.js"),
922
- "./locales/de.ts": () => import("./de-Dugz1zXC.js"),
923
- "./locales/en.ts": () => import("./en-BykoFuFY.js"),
924
- "./locales/es.ts": () => import("./es-DaWsTkpj.js"),
925
- "./locales/fr.ts": () => import("./fr-DqwQHtJo.js"),
926
- "./locales/ja.ts": () => import("./ja-BH4MS1Ye.js"),
927
- "./locales/nl.ts": () => import("./nl-BQl1_UHv.js"),
928
- "./locales/pt-BR.ts": () => import("./pt-BR-eyzmU9Vs.js")
929
- }), ci = /* #__PURE__ */ Object.assign({
920
+ var di = /* #__PURE__ */ Object.assign({
921
+ "./locales/ca.ts": () => import("./ca-Ce3NmK9v.js"),
922
+ "./locales/da.ts": () => import("./da-4YwDAuEr.js"),
923
+ "./locales/de.ts": () => import("./de-BlQ0vdZJ.js"),
924
+ "./locales/en.ts": () => import("./en-MlNeQVSG.js"),
925
+ "./locales/es.ts": () => import("./es-2s8x4OM2.js"),
926
+ "./locales/fr.ts": () => import("./fr-D3MjrsgQ.js"),
927
+ "./locales/ja.ts": () => import("./ja-B4Kx7uBX.js"),
928
+ "./locales/nl.ts": () => import("./nl-U65iX7wN.js"),
929
+ "./locales/pt-BR.ts": () => import("./pt-BR-_jsX1xLv.js")
930
+ }), fi = /* #__PURE__ */ Object.assign({
930
931
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
931
932
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
932
933
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
933
934
  });
934
- function li(e) {
935
+ function pi(e) {
935
936
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
936
937
  }
937
- var ui = li(si), di = li(ci);
938
- function fi(e) {
938
+ var mi = pi(di), hi = pi(fi);
939
+ function gi(e) {
939
940
  return e.trim().replace(/_/g, "-").toLowerCase();
940
941
  }
941
- function pi(e, t) {
942
- let n = fi(e);
943
- return t.find((e) => fi(e) === n);
942
+ function _i(e, t) {
943
+ let n = gi(e);
944
+ return t.find((e) => gi(e) === n);
944
945
  }
945
- function mi(e) {
946
- return fi(e).split("-")[0];
946
+ function vi(e) {
947
+ return gi(e).split("-")[0];
947
948
  }
948
- function hi(e, t) {
949
- return pi(e, t) ?? pi(mi(e), t);
949
+ function yi(e, t) {
950
+ return _i(e, t) ?? _i(vi(e), t);
950
951
  }
951
- function gi(e, t) {
952
- return hi(e, t) ?? "en";
952
+ function bi(e, t) {
953
+ return yi(e, t) ?? "en";
953
954
  }
954
- async function _i(e) {
955
- let t = si[`./locales/${gi(e, ui)}.ts`];
955
+ async function xi(e) {
956
+ let t = di[`./locales/${bi(e, mi)}.ts`];
956
957
  return (await t()).default;
957
958
  }
958
- async function vi(e) {
959
- let t = ci[`./locales/cloud/${gi(e, di)}.ts`];
959
+ async function Si(e) {
960
+ let t = fi[`./locales/cloud/${bi(e, hi)}.ts`];
960
961
  return (await t()).default;
961
962
  }
962
- function yi(e) {
963
- return hi(e, ui) !== void 0;
963
+ function Ci(e) {
964
+ return yi(e, mi) !== void 0;
964
965
  }
965
- function bi(e) {
966
- return hi(e, di) !== void 0;
966
+ function wi(e) {
967
+ return yi(e, hi) !== void 0;
967
968
  }
968
- function xi() {
969
- return [...ui];
969
+ function Ti() {
970
+ return [...mi];
970
971
  }
971
- function Si() {
972
- return [...di];
972
+ function Ei() {
973
+ return [...hi];
973
974
  }
974
975
  // src/i18n/contentDefaults.ts
975
- var Ci = {
976
+ var Di = {
976
977
  en: {
977
978
  video: "Video",
978
979
  days: "Days",
@@ -1045,16 +1046,16 @@ var Ci = {
1045
1046
  seconds: "Sekunder",
1046
1047
  expired: "Dette tilbud er udløbet"
1047
1048
  }
1048
- }, wi = new Map(Object.keys(Ci).map((e) => [e.toLowerCase(), e]));
1049
- function Ti(e) {
1050
- if (!e) return Ci.en;
1051
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = wi.get(t);
1052
- if (n) return Ci[n];
1053
- let r = wi.get(mi(t));
1054
- return r ? Ci[r] : Ci.en;
1049
+ }, Oi = new Map(Object.keys(Di).map((e) => [e.toLowerCase(), e]));
1050
+ function ki(e) {
1051
+ if (!e) return Di.en;
1052
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Oi.get(t);
1053
+ if (n) return Di[n];
1054
+ let r = Oi.get(vi(t));
1055
+ return r ? Di[r] : Di.en;
1055
1056
  }
1056
- function Ei(e) {
1057
- let t = Ti(e);
1057
+ function Ai(e) {
1058
+ let t = ki(e);
1058
1059
  return {
1059
1060
  video: { alt: t.video },
1060
1061
  countdown: {
@@ -1067,9 +1068,9 @@ function Ei(e) {
1067
1068
  };
1068
1069
  }
1069
1070
  // src/utils/collectColorFieldIssues.ts
1070
- function Di(e, t) {
1071
+ function ji(e, t) {
1071
1072
  let n = [], r = (r, i) => {
1072
- let a = zn(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1073
+ let a = Un(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1073
1074
  if (a.invalidPresets.length > 0 && n.push({
1074
1075
  id: s("invalid-presets"),
1075
1076
  message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
@@ -1080,8 +1081,8 @@ function Di(e, t) {
1080
1081
  id: s("allow-custom-ignored"),
1081
1082
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1082
1083
  }), !a.allowCustom && a.presets.length > 0) {
1083
- let e = r.default ?? "", t = new Set(a.presets.map((e) => pt(e)));
1084
- e !== "" && !t.has(pt(e)) && n.push({
1084
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => gt(e)));
1085
+ e !== "" && !t.has(gt(e)) && n.push({
1085
1086
  id: s("off-palette-default"),
1086
1087
  message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
1087
1088
  });
@@ -1092,7 +1093,7 @@ function Di(e, t) {
1092
1093
  return n;
1093
1094
  }
1094
1095
  // src/utils/keyboardShortcuts.ts
1095
- function Oi(e) {
1096
+ function Mi(e) {
1096
1097
  for (let t of e.composedPath()) {
1097
1098
  if (!(t instanceof HTMLElement)) continue;
1098
1099
  if (t.isContentEditable) return !0;
@@ -1101,14 +1102,14 @@ function Oi(e) {
1101
1102
  }
1102
1103
  return !1;
1103
1104
  }
1104
- function ki(e, t) {
1105
+ function Ni(e, t) {
1105
1106
  let n = e.metaKey || e.ctrlKey;
1106
1107
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1107
1108
  else if (n && e.key.toLowerCase() === "z") {
1108
- if (Oi(e)) return;
1109
+ if (Mi(e)) return;
1109
1110
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1110
1111
  } else {
1111
- if (t.isPicking?.() && !Oi(e)) {
1112
+ if (t.isPicking?.() && !Mi(e)) {
1112
1113
  if (e.key === "Escape") {
1113
1114
  e.preventDefault(), t.onCancelPick?.();
1114
1115
  return;
@@ -1122,139 +1123,139 @@ function ki(e, t) {
1122
1123
  return;
1123
1124
  }
1124
1125
  }
1125
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Oi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1126
+ e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Mi(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1126
1127
  }
1127
1128
  }
1128
1129
  // src/utils/blockComponentResolver.ts
1129
- function Ai(e, t) {
1130
+ function Pi(e, t) {
1130
1131
  let n = { fontFamily: t(e.fontFamily) };
1131
1132
  return e.textColor && (n.color = e.textColor), e.linkColor && (n["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (n["--tpl-doc-link-underline"] = "underline"), n;
1132
1133
  }
1133
- function ji(e, t, n) {
1134
+ function Fi(e, t, n) {
1134
1135
  if (t) {
1135
1136
  let n = t.getComponent(e);
1136
1137
  if (n) return n;
1137
1138
  }
1138
1139
  return n[e.type] ?? null;
1139
1140
  }
1140
- var Mi = "--tpl-block-bg-layer", Ni = "--tpl-email-frame-width", Pi = "tpl-has-bg-image";
1141
- function Fi(e, t) {
1141
+ var Ii = "--tpl-block-bg-layer", Li = "--tpl-email-frame-width", Ri = "tpl-has-bg-image";
1142
+ function zi(e, t) {
1142
1143
  if (t === null) return {};
1143
- let n = Re(e);
1144
+ let n = me(e);
1144
1145
  if (n === null) return {};
1145
- let r = t?.trim(), i = r ? ze(r) : n.url;
1146
+ let r = t?.trim(), i = r ? ue(r) : n.url;
1146
1147
  return {
1147
1148
  backgroundImage: `url("${i}")`,
1148
1149
  backgroundSize: n.size,
1149
1150
  backgroundPosition: n.position,
1150
1151
  backgroundRepeat: n.repeat,
1151
- [Mi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1152
+ [Ii]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1152
1153
  };
1153
1154
  }
1154
- function Ii(e) {
1155
- return e && Mi in e ? Pi : void 0;
1155
+ function Bi(e) {
1156
+ return e && Ii in e ? Ri : void 0;
1156
1157
  }
1157
- var Li = {
1158
+ var Vi = {
1158
1159
  top: "flex-start",
1159
1160
  middle: "center",
1160
1161
  bottom: "flex-end"
1161
1162
  };
1162
- function Ri(e, t) {
1163
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${zi(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1163
+ function Hi(e, t) {
1164
+ let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Ui(t, e.aspectRatio)}px` } : { aspectRatio: `1 / ${e.aspectRatio ?? 1}` };
1164
1165
  return {
1165
1166
  display: "flex",
1166
1167
  flexDirection: "column",
1167
- justifyContent: Li[e.verticalAlign],
1168
+ justifyContent: Vi[e.verticalAlign],
1168
1169
  boxSizing: "border-box",
1169
1170
  ...n
1170
1171
  };
1171
1172
  }
1172
- function zi(e, t) {
1173
+ function Ui(e, t) {
1173
1174
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1174
1175
  }
1175
- function Bi(e, t = {}) {
1176
+ function Wi(e, t = {}) {
1176
1177
  if (e.type === "wrapper") return {};
1177
1178
  let { padding: n, backgroundColor: r } = e.styles, i = {
1178
1179
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
1179
1180
  backgroundColor: r || "transparent"
1180
1181
  };
1181
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? ut.paragraphGap : ut.paragraphGap}px`), e.type === "section") {
1182
- let n = Ce(e.borderRadius);
1182
+ if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? oe.paragraphGap : oe.paragraphGap}px`), e.type === "section") {
1183
+ let n = ve(e.borderRadius);
1183
1184
  n !== null && (i.borderRadius = n);
1184
- let r = Fe(e);
1185
- r?.applied && e.backgroundImage ? (Object.assign(i, Ri(r, t.heroBoxWidth)), Object.assign(i, Fi({
1185
+ let r = ke(e);
1186
+ r?.applied && e.backgroundImage ? (Object.assign(i, Hi(r, t.heroBoxWidth)), Object.assign(i, zi({
1186
1187
  ...e.backgroundImage,
1187
1188
  size: "cover",
1188
1189
  repeat: !1
1189
- }, t.backgroundImageUrl))) : (Object.assign(i, Hi(e.border)), Object.assign(i, Fi(e.backgroundImage, t.backgroundImageUrl)));
1190
+ }, t.backgroundImageUrl))) : (Object.assign(i, Ki(e.border)), Object.assign(i, zi(e.backgroundImage, t.backgroundImageUrl)));
1190
1191
  }
1191
1192
  return i;
1192
1193
  }
1193
- function Vi(e, t, n, r) {
1194
- return e.type === "section" ? Bi(e, {
1195
- backgroundImageUrl: Tn(t, e.backgroundImage, n),
1194
+ function Gi(e, t, n, r) {
1195
+ return e.type === "section" ? Wi(e, {
1196
+ backgroundImageUrl: kn(t, e.backgroundImage, n),
1196
1197
  heroBoxWidth: r
1197
- }) : Bi(e);
1198
+ }) : Wi(e);
1198
1199
  }
1199
- function Hi(e) {
1200
+ function Ki(e) {
1200
1201
  let t = {};
1201
- for (let [n, r] of Object.entries(ct(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1202
+ for (let [n, r] of Object.entries(Ye(e))) t[n.replace(/-(\w)/g, (e, t) => t.toUpperCase())] = r;
1202
1203
  return t;
1203
1204
  }
1204
- var Ui = {
1205
+ var qi = {
1205
1206
  width: "100cqw",
1206
1207
  maxWidth: "none",
1207
1208
  marginInline: "calc(50% - 50cqw)",
1208
1209
  boxSizing: "border-box"
1209
1210
  };
1210
- function Wi(e) {
1211
+ function Ji(e) {
1211
1212
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
1212
1213
  }
1213
- function Gi(e) {
1214
+ function Yi(e) {
1214
1215
  let t = {
1215
1216
  width: "var(--tpl-email-frame-width)",
1216
1217
  maxWidth: "100%",
1217
1218
  marginInline: "auto",
1218
1219
  boxSizing: "border-box"
1219
1220
  };
1220
- return e && (t.padding = Wi(e)), t;
1221
+ return e && (t.padding = Ji(e)), t;
1221
1222
  }
1222
- function Ki(e, t = {}) {
1223
+ function Xi(e, t = {}) {
1223
1224
  if (e.type !== "section" || !e.wrapper) return null;
1224
1225
  let n = e.wrapper, r = {};
1225
- if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Wi(n.padding)), !n.fullWidth) {
1226
- let e = Ce(n.borderRadius);
1226
+ if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Ji(n.padding)), !n.fullWidth) {
1227
+ let e = ve(n.borderRadius);
1227
1228
  e !== null && (r.borderRadius = e);
1228
1229
  }
1229
- return Object.assign(r, Fi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Ui), r;
1230
+ return Object.assign(r, zi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, qi), r;
1230
1231
  }
1231
- function qi(e, t = {}) {
1232
+ function Zi(e, t = {}) {
1232
1233
  if (e.type !== "wrapper") return null;
1233
1234
  let n = {};
1234
- return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Wi(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Fi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Ui), n;
1235
+ return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Ji(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, zi(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, qi), n;
1235
1236
  }
1236
1237
  // src/utils/mergeTagLabelSegments.ts
1237
- function Ji(e, t, n, r = !1) {
1238
+ function Qi(e, t, n, r = !1) {
1238
1239
  if (!e) return [];
1239
1240
  let i = [], a = 0;
1240
- for (let o of Ye(e, n)) {
1241
+ for (let o of tt(e, n)) {
1241
1242
  o.index > a && i.push({
1242
1243
  type: "text",
1243
1244
  value: e.slice(a, o.index)
1244
1245
  });
1245
1246
  let s = o.value;
1246
- if (_e(s, n)) {
1247
- let e = r ? Qe(s, t) : void 0;
1247
+ if (we(s, n)) {
1248
+ let e = r ? it(s, t) : void 0;
1248
1249
  i.push(e === void 0 ? {
1249
1250
  type: "tag",
1250
- value: de(s, t)
1251
+ value: pe(s, t)
1251
1252
  } : {
1252
1253
  type: "text",
1253
1254
  value: e
1254
1255
  });
1255
- } else De(s, n) ? i.push({
1256
+ } else Pe(s, n) ? i.push({
1256
1257
  type: "tag",
1257
- value: ce(s, n)
1258
+ value: le(s, n)
1258
1259
  }) : i.push({
1259
1260
  type: "text",
1260
1261
  value: s
@@ -1267,27 +1268,27 @@ function Ji(e, t, n, r = !1) {
1267
1268
  }), i;
1268
1269
  }
1269
1270
  // src/components/MergeTagPreviewText.vue
1270
- var Yi = o({
1271
+ var $i = o({
1271
1272
  name: "MergeTagPreviewText",
1272
1273
  props: { text: {
1273
1274
  type: String,
1274
1275
  required: !0
1275
1276
  } },
1276
1277
  setup(e) {
1277
- let t = g(Ft, Bt), n = g(St, le.liquid), r = g(Xt, null), i = I(() => Ji(e.text, t.value, n, r?.value ?? !1));
1278
+ let t = g(Rt, Ut), n = g(Tt, de.liquid), r = g(un, null), i = I(() => Qi(e.text, t.value, n, r?.value ?? !1));
1278
1279
  return () => i.value.map((e, t) => e.type === "tag" ? s("span", {
1279
1280
  key: t,
1280
1281
  class: "tpl-merge-tag-label"
1281
1282
  }, e.value) : e.value);
1282
1283
  }
1283
- }), Xi = ["href"], Zi = /* @__PURE__ */ o({
1284
+ }), ea = ["href"], ta = /* @__PURE__ */ o({
1284
1285
  __name: "ButtonBlock",
1285
1286
  props: {
1286
1287
  block: {},
1287
1288
  viewport: {}
1288
1289
  },
1289
1290
  setup(e) {
1290
- let t = e, n = on(Jt, "ButtonBlock");
1291
+ let t = e, n = xn(Zt, "ButtonBlock");
1291
1292
  function r(e) {
1292
1293
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1293
1294
  }
@@ -1298,33 +1299,33 @@ var Yi = o({
1298
1299
  backgroundColor: t.block.backgroundColor,
1299
1300
  color: t.block.textColor,
1300
1301
  fontSize: `${t.block.fontSize}px`,
1301
- lineHeight: String(ft),
1302
+ lineHeight: String(Xe(t.block)),
1302
1303
  fontWeight: r(t.block.fontWeight),
1303
1304
  textDecoration: "none",
1304
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : Ce(t.block.borderRadius) ?? "0px",
1305
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ve(t.block.borderRadius) ?? "0px",
1305
1306
  textAlign: "center"
1306
1307
  };
1307
- return Object.assign(e, Hi(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1308
+ return Object.assign(e, Ki(t.block.border)), t.block.fontFamily && (e.fontFamily = n.resolveFontFamily(t.block.fontFamily)), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" ? (e.width = `${t.block.width}px`, e.boxSizing = "border-box") : typeof t.block.width == "string" && ft(t.block.width) !== null && (e.width = t.block.width, e.boxSizing = "border-box"), e;
1308
1309
  }), a = I(() => ({ textAlign: t.block.align ?? "center" }));
1309
1310
  return (t, n) => (c(), w("div", { style: L(a.value) }, [N("a", {
1310
1311
  href: e.block.url || "#",
1311
1312
  style: L(i.value),
1312
1313
  class: "tpl:cursor-default",
1313
1314
  onClick: n[0] ||= M(() => {}, ["prevent"])
1314
- }, [W(Yi, { text: e.block.text }, null, 8, ["text"])], 12, Xi)], 4));
1315
+ }, [W($i, { text: e.block.text }, null, 8, ["text"])], 12, ea)], 4));
1315
1316
  }
1316
- }), Qi = ["innerHTML"], $i = [
1317
+ }), na = ["innerHTML"], ra = [
1317
1318
  "src",
1318
1319
  "width",
1319
1320
  "height"
1320
- ], ea = /* @__PURE__ */ o({
1321
+ ], ia = /* @__PURE__ */ o({
1321
1322
  __name: "CustomBlockIcon",
1322
1323
  props: {
1323
1324
  icon: {},
1324
1325
  size: {}
1325
1326
  },
1326
1327
  setup(e) {
1327
- let t = e, n = I(() => t.size ?? 20), r = I(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = I(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = I(() => r.value ? Kn(t.icon ?? "") : "");
1328
+ let t = e, n = I(() => t.size ?? 20), r = I(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = I(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/"))), a = I(() => r.value ? Xn(t.icon ?? "") : "");
1328
1329
  return (t, o) => r.value ? (c(), w("span", {
1329
1330
  key: 0,
1330
1331
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1333,33 +1334,33 @@ var Yi = o({
1333
1334
  height: `${n.value}px`
1334
1335
  }),
1335
1336
  innerHTML: a.value
1336
- }, null, 12, Qi)) : i.value ? (c(), w("img", {
1337
+ }, null, 12, na)) : i.value ? (c(), w("img", {
1337
1338
  key: 1,
1338
1339
  src: e.icon,
1339
1340
  width: n.value,
1340
1341
  height: n.value,
1341
1342
  class: "tpl:inline-block",
1342
1343
  alt: ""
1343
- }, null, 8, $i)) : (c(), A(D(er), {
1344
+ }, null, 8, ra)) : (c(), A(D(ir), {
1344
1345
  key: 2,
1345
1346
  size: n.value,
1346
1347
  "stroke-width": 1.5
1347
1348
  }, null, 8, ["size"]));
1348
1349
  }
1349
- }), ta = { class: "tpl:w-full" }, na = {
1350
+ }), aa = { class: "tpl:w-full" }, oa = {
1350
1351
  key: 0,
1351
1352
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
1352
- }, ra = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ia = {
1353
+ }, sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ca = {
1353
1354
  key: 1,
1354
1355
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
1355
- }, aa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, oa = {
1356
+ }, la = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ua = {
1356
1357
  key: 2,
1357
1358
  class: "tpl:relative"
1358
- }, sa = ["innerHTML"], ca = {
1359
+ }, da = ["innerHTML"], fa = {
1359
1360
  key: 0,
1360
1361
  class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
1361
1362
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1362
- }, la = /* @__PURE__ */ o({
1363
+ }, pa = /* @__PURE__ */ o({
1363
1364
  __name: "CustomBlock",
1364
1365
  props: {
1365
1366
  block: {},
@@ -1367,7 +1368,7 @@ var Yi = o({
1367
1368
  },
1368
1369
  emits: ["fetchData"],
1369
1370
  setup(e, { emit: t }) {
1370
- let n = e, r = t, { t: i } = G(), a = g(an, null), o = H(""), s = I(() => qn(o.value)), l = H(!1), d = I(() => a?.getDefinition(n.block.customType)), f = I(() => !!d.value), p = I(() => n.block), { isFetching: m, fetch: _, needsFetch: v, hasDataSource: y } = En({
1371
+ let n = e, r = t, { t: i } = G(), a = g(ln, null), o = H(""), s = I(() => Zn(o.value)), l = H(!1), d = I(() => a?.getDefinition(n.block.customType)), f = I(() => !!d.value), p = I(() => n.block), { isFetching: m, fetch: _, needsFetch: v, hasDataSource: y } = An({
1371
1372
  definition: d,
1372
1373
  block: p,
1373
1374
  onUpdate: (e, t) => {
@@ -1376,10 +1377,10 @@ var Yi = o({
1376
1377
  dataSourceFetched: t
1377
1378
  });
1378
1379
  }
1379
- }), b = g(Ft, Bt), x = g(Xt, null), S = I(() => {
1380
+ }), b = g(Rt, Ut), x = g(un, null), S = I(() => {
1380
1381
  if (!x?.value) return n.block;
1381
1382
  let e = {};
1382
- for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? ke(r, b.value) : r;
1383
+ for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? Ie(r, b.value) : r;
1383
1384
  return {
1384
1385
  ...n.block,
1385
1386
  fieldValues: e
@@ -1403,10 +1404,10 @@ var Yi = o({
1403
1404
  E();
1404
1405
  }, { deep: !0 }), u(() => x?.value, () => {
1405
1406
  E();
1406
- }), (e, t) => (c(), w("div", ta, [f.value ? l.value ? (c(), w("div", ia, [W(D(ar), {
1407
+ }), (e, t) => (c(), w("div", aa, [f.value ? l.value ? (c(), w("div", ca, [W(D(lr), {
1407
1408
  size: 24,
1408
1409
  class: "tpl:text-[var(--tpl-danger)]"
1409
- }), N("span", aa, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", oa, [N("div", { innerHTML: s.value }, null, 8, sa), D(y) && D(v) ? (c(), w("div", ca, [D(m) ? (c(), A(pr, {
1410
+ }), N("span", la, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", ua, [N("div", { innerHTML: s.value }, null, 8, da), D(y) && D(v) ? (c(), w("div", fa, [D(m) ? (c(), A(_r, {
1410
1411
  key: 1,
1411
1412
  class: "tpl:w-48"
1412
1413
  })) : (c(), w("button", {
@@ -1414,16 +1415,16 @@ var Yi = o({
1414
1415
  type: "button",
1415
1416
  class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
1416
1417
  onClick: t[0] ||= M((...e) => D(_) && D(_)(...e), ["stop"])
1417
- }, [d.value?.icon ? (c(), A(ea, {
1418
+ }, [d.value?.icon ? (c(), A(ia, {
1418
1419
  key: 0,
1419
1420
  icon: d.value.icon,
1420
1421
  size: 16
1421
- }, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", na, [W(D(tr), {
1422
+ }, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", oa, [W(D(ar), {
1422
1423
  size: 24,
1423
1424
  class: "tpl:text-[var(--tpl-warning)]"
1424
- }), N("span", ra, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1425
+ }), N("span", sa, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1425
1426
  }
1426
- }), ua = { class: "tpl:w-full" }, da = /* @__PURE__ */ o({
1427
+ }), ma = { class: "tpl:w-full" }, ha = /* @__PURE__ */ o({
1427
1428
  __name: "DividerBlock",
1428
1429
  props: {
1429
1430
  block: {},
@@ -1435,28 +1436,28 @@ var Yi = o({
1435
1436
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1436
1437
  margin: t.block.width === "full" ? "0" : "0 auto"
1437
1438
  }));
1438
- return (e, t) => (c(), w("div", ua, [N("hr", {
1439
+ return (e, t) => (c(), w("div", ma, [N("hr", {
1439
1440
  class: "tpl:m-0 tpl:border-none",
1440
1441
  style: L(n.value)
1441
1442
  }, null, 4)]));
1442
1443
  }
1443
- }), fa = { class: "tpl:w-full" }, pa = ["srcdoc", "title"], ma = {
1444
+ }), ga = { class: "tpl:w-full" }, _a = ["srcdoc", "title"], va = {
1444
1445
  key: 1,
1445
1446
  class: "tpl:flex tpl:box-border tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]"
1446
- }, ha = {
1447
+ }, ya = {
1447
1448
  key: 0,
1448
1449
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1449
- }, ga = {
1450
+ }, ba = {
1450
1451
  key: 1,
1451
1452
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1452
- }, _a = /* @__PURE__ */ o({
1453
+ }, xa = /* @__PURE__ */ o({
1453
1454
  __name: "HtmlBlock",
1454
1455
  props: {
1455
1456
  block: {},
1456
1457
  viewport: {}
1457
1458
  },
1458
1459
  setup(e) {
1459
- let t = e, { t: n } = G(), r = g(Lt, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(Ft, Bt), s = g(Xt, null), l = I(() => s?.value ? ke(t.block.content, o.value) : t.block.content), d = H(null), f = H(60), p = null;
1460
+ let t = e, { t: n } = G(), r = g(Bt, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(Rt, Ut), s = g(un, null), l = I(() => s?.value ? Ie(t.block.content, o.value) : t.block.content), d = H(null), f = H(60), p = null;
1460
1461
  function h() {
1461
1462
  let e = d.value?.contentDocument;
1462
1463
  e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1470,7 +1471,7 @@ var Yi = o({
1470
1471
  e || (p?.disconnect(), p = null);
1471
1472
  }), m(() => {
1472
1473
  p?.disconnect(), p = null;
1473
- }), (e, t) => (c(), w("div", fa, [a.value ? (c(), w("iframe", {
1474
+ }), (e, t) => (c(), w("div", ga, [a.value ? (c(), w("iframe", {
1474
1475
  key: 0,
1475
1476
  ref_key: "iframeRef",
1476
1477
  ref: d,
@@ -1480,18 +1481,18 @@ var Yi = o({
1480
1481
  class: "tpl:block tpl:w-full tpl:border-0",
1481
1482
  style: L({ height: `${f.value}px` }),
1482
1483
  onLoad: _
1483
- }, null, 44, pa)) : (c(), w("div", ma, [W(D(Xn), {
1484
+ }, null, 44, _a)) : (c(), w("div", va, [W(D(er), {
1484
1485
  size: 24,
1485
1486
  class: "tpl:text-[var(--tpl-text-dim)]"
1486
- }), i.value ? (c(), w("span", ha, P(D(n).html.preview), 1)) : (c(), w("span", ga, P(D(n).html.empty), 1))]))]));
1487
+ }), i.value ? (c(), w("span", ya, P(D(n).html.preview), 1)) : (c(), w("span", ba, P(D(n).html.empty), 1))]))]));
1487
1488
  }
1488
- }), va = ["data-drop-enabled"], ya = ["href"], ba = ["src", "alt"], xa = ["src", "alt"], Sa = {
1489
+ }), Sa = ["data-drop-enabled"], Ca = ["href"], wa = ["src", "alt"], Ta = ["src", "alt"], Ea = {
1489
1490
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1490
1491
  style: { opacity: "0.7" }
1491
- }, Ca = ["href"], wa = ["src", "alt"], Ta = ["src", "alt"], Ea = {
1492
+ }, Da = ["href"], Oa = ["src", "alt"], ka = ["src", "alt"], Aa = {
1492
1493
  key: 4,
1493
1494
  class: "tpl:flex tpl:box-border tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
1494
- }, Da = ["aria-label"], Oa = { key: 1 }, ka = /* @__PURE__ */ o({
1495
+ }, ja = ["aria-label"], Ma = { key: 1 }, Na = /* @__PURE__ */ o({
1495
1496
  __name: "ImageBlock",
1496
1497
  props: {
1497
1498
  block: {},
@@ -1499,20 +1500,20 @@ var Yi = o({
1499
1500
  },
1500
1501
  emits: ["update"],
1501
1502
  setup(e, { emit: t }) {
1502
- let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() => we(n.block.src, a));
1503
+ let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() => Ae(n.block.src, a));
1503
1504
  function s(e) {
1504
1505
  let t = {
1505
1506
  src: e.url,
1506
- ...Pn(jn(e.width, e.height))
1507
+ ...Rn(Fn(e.width, e.height))
1507
1508
  };
1508
1509
  e.alt && (t.alt = e.alt), r("update", t);
1509
1510
  }
1510
- let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Rn({
1511
+ let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Hn({
1511
1512
  target: l,
1512
1513
  blocked: o,
1513
1514
  apply: s
1514
1515
  }), h = I(() => ({ textAlign: n.block.align })), g = I(() => {
1515
- let e = n.block.border, t = ["left", "right"].map((t) => Q(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1516
+ let e = n.block.border, t = ["left", "right"].map((t) => Y(e?.[t]) === null ? 0 : e[t].width).reduce((e, t) => e + t, 0);
1516
1517
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1517
1518
  }), _ = I(() => {
1518
1519
  let e = n.block.align;
@@ -1520,13 +1521,13 @@ var Yi = o({
1520
1521
  maxWidth: "100%",
1521
1522
  width: n.block.width === "full" ? g.value : `${n.block.width}px`,
1522
1523
  height: n.block.height ? `${n.block.height}px` : void 0,
1523
- borderRadius: Ce(n.block.borderRadius) ?? void 0,
1524
- ...Hi(n.block.border),
1524
+ borderRadius: ve(n.block.borderRadius) ?? void 0,
1525
+ ...Ki(n.block.border),
1525
1526
  display: "block",
1526
1527
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1527
1528
  marginRight: e === "center" ? "auto" : void 0
1528
1529
  };
1529
- }), v = An(() => o.value ? void 0 : n.block.src), y = An(() => o.value ? n.block.placeholderUrl : void 0);
1530
+ }), v = Pn(() => o.value ? void 0 : n.block.src), y = Pn(() => o.value ? n.block.placeholderUrl : void 0);
1530
1531
  return (t, n) => (c(), w("div", {
1531
1532
  ref_key: "dropZoneRef",
1532
1533
  ref: l,
@@ -1534,7 +1535,7 @@ var Yi = o({
1534
1535
  "data-drop-enabled": D(d),
1535
1536
  class: "tpl:relative tpl:w-full",
1536
1537
  style: L(h.value)
1537
- }, [D(p) ? (c(), A(Nn, {
1538
+ }, [D(p) ? (c(), A(Ln, {
1538
1539
  key: 0,
1539
1540
  uploading: D(f),
1540
1541
  size: "canvas"
@@ -1550,22 +1551,22 @@ var Yi = o({
1550
1551
  src: D(y),
1551
1552
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1552
1553
  style: L(_.value)
1553
- }, null, 12, ba)], 8, ya)) : (c(), w("img", {
1554
+ }, null, 12, wa)], 8, Ca)) : (c(), w("img", {
1554
1555
  key: 1,
1555
1556
  class: "tpl:border-0",
1556
1557
  src: D(y),
1557
1558
  alt: e.block.alt,
1558
1559
  style: L(_.value)
1559
- }, null, 12, xa))], 64)) : e.block.src && o.value ? (c(), w("div", {
1560
+ }, null, 12, Ta))], 64)) : e.block.src && o.value ? (c(), w("div", {
1560
1561
  key: 2,
1561
1562
  class: "tpl:!flex tpl:box-border tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
1562
1563
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
1563
- }, [W(D(ir), {
1564
+ }, [W(D(cr), {
1564
1565
  size: 32,
1565
1566
  "stroke-width": 1.5,
1566
1567
  class: "tpl:text-[var(--tpl-primary)]",
1567
1568
  style: { opacity: "0.5" }
1568
- }), N("span", Sa, [W(Yi, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(U, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
1569
+ }), N("span", Ea, [W($i, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (c(), w(U, { key: 3 }, [e.block.linkUrl ? (c(), w("a", {
1569
1570
  key: 0,
1570
1571
  href: e.block.linkUrl,
1571
1572
  target: "_blank",
@@ -1577,33 +1578,33 @@ var Yi = o({
1577
1578
  src: D(v),
1578
1579
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1579
1580
  style: L(_.value)
1580
- }, null, 12, wa)], 8, Ca)) : (c(), w("img", {
1581
+ }, null, 12, Oa)], 8, Da)) : (c(), w("img", {
1581
1582
  key: 1,
1582
1583
  class: "tpl:border-0",
1583
1584
  src: D(v),
1584
1585
  alt: e.block.alt,
1585
1586
  style: L(_.value)
1586
- }, null, 12, Ta))], 64)) : (c(), w("div", Ea, [D(u) ? (c(), w("button", {
1587
+ }, null, 12, ka))], 64)) : (c(), w("div", Aa, [D(u) ? (c(), w("button", {
1587
1588
  key: 0,
1588
1589
  "aria-label": D(i).image.browseMedia,
1589
1590
  class: "tpl:flex tpl:items-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:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
1590
1591
  onClick: n[2] ||= M((...e) => D(m) && D(m)(...e), ["stop"])
1591
- }, [W(D(ir), {
1592
+ }, [W(D(cr), {
1592
1593
  size: 14,
1593
1594
  "stroke-width": 1.5
1594
- }), T(" " + P(D(i).image.browseMedia), 1)], 8, Da)) : (c(), w("span", Oa, P(D(i).image.clickToAdd), 1))]))], 12, va));
1595
+ }), T(" " + P(D(i).image.browseMedia), 1)], 8, ja)) : (c(), w("span", Ma, P(D(i).image.clickToAdd), 1))]))], 12, Sa));
1595
1596
  }
1596
- }), Aa = { class: "tpl:w-full" }, ja = ["href"], Ma = {
1597
+ }), Pa = { class: "tpl:w-full" }, Fa = ["href"], Ia = {
1597
1598
  key: 1,
1598
1599
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
1599
- }, Na = /* @__PURE__ */ o({
1600
+ }, La = /* @__PURE__ */ o({
1600
1601
  __name: "MenuBlock",
1601
1602
  props: {
1602
1603
  block: {},
1603
1604
  viewport: {}
1604
1605
  },
1605
1606
  setup(e) {
1606
- let t = e, { t: n } = G(), r = on(Jt, "MenuBlock"), i = I(() => ({
1607
+ let t = e, { t: n } = G(), r = xn(Zt, "MenuBlock"), i = I(() => ({
1607
1608
  display: "flex",
1608
1609
  flexWrap: "wrap",
1609
1610
  gap: `0 ${t.block.spacing}px`,
@@ -1615,7 +1616,7 @@ var Yi = o({
1615
1616
  function o(e) {
1616
1617
  return e || t.block.linkColor || t.block.color;
1617
1618
  }
1618
- return (t, r) => (c(), w("div", Aa, [a.value ? (c(), w("div", {
1619
+ return (t, r) => (c(), w("div", Pa, [a.value ? (c(), w("div", {
1619
1620
  key: 0,
1620
1621
  style: L(i.value)
1621
1622
  }, [(c(!0), w(U, null, p(e.block.items, (t, n) => (c(), w(U, { key: t.id }, [N("a", {
@@ -1627,49 +1628,49 @@ var Yi = o({
1627
1628
  textDecoration: t.underline ? "underline" : "none"
1628
1629
  }),
1629
1630
  onClick: r[0] ||= M(() => {}, ["prevent"])
1630
- }, [W(Yi, { text: t.text || "..." }, null, 8, ["text"])], 12, ja), n < e.block.items.length - 1 ? (c(), w("span", {
1631
+ }, [W($i, { text: t.text || "..." }, null, 8, ["text"])], 12, Fa), n < e.block.items.length - 1 ? (c(), w("span", {
1631
1632
  key: 0,
1632
1633
  style: L({
1633
1634
  color: e.block.separatorColor,
1634
1635
  padding: `0 ${e.block.spacing}px`
1635
1636
  })
1636
- }, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", Ma, [W(D(rr), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
1637
+ }, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", Ia, [W(D(sr), { size: 16 }), N("span", null, P(D(n).menu.addLinks), 1)]))]));
1637
1638
  }
1638
1639
  });
1639
1640
  // src/composables/useEditableTextBlock.ts
1640
- function Pa(e) {
1641
- let t = g(Ft, Bt), r = g(Xt, null), i = g(Ut, null), { syntax: a } = K(), o = I(() => r?.value ? Ue(e(), t.value) : Le(e(), t.value)), s = I(() => Oe(qn(ie(o.value, a)))), c = H(!1);
1642
- u(() => i?.value, (e) => {
1643
- e && (c.value = !1);
1641
+ function Ra(e) {
1642
+ let t = g(Rt, Ut), r = g(un, null), i = g(tn, null), a = g(Kt, null), { syntax: o } = K(), s = I(() => r?.value ? qe(e(), t.value) : Ve(e(), t.value)), c = I(() => i?.value ? nt(e(), t.value, o) : ie(s.value, o)), l = I(() => Fe(Zn(c.value))), d = H(!1);
1643
+ u(() => a?.value, (e) => {
1644
+ e && (d.value = !1);
1644
1645
  });
1645
- let l = H(null), { top: d, left: f } = n(l), { toLocal: p } = vt(), m = I(() => p({
1646
- top: d.value - 8,
1647
- left: f.value
1646
+ let f = H(null), { top: p, left: m } = n(f), { toLocal: h } = xt(), _ = I(() => h({
1647
+ top: p.value - 8,
1648
+ left: m.value
1648
1649
  }));
1649
- function h() {
1650
- i?.value || (c.value = !0);
1650
+ function v() {
1651
+ a?.value || (d.value = !0);
1651
1652
  }
1652
- function _() {
1653
- c.value = !1;
1653
+ function y() {
1654
+ d.value = !1;
1654
1655
  }
1655
1656
  return {
1656
- isEditing: c,
1657
- blockRef: l,
1658
- toolbarPosition: m,
1659
- resolvedContent: s,
1660
- handleDoubleClick: h,
1661
- handleEditorDone: _
1657
+ isEditing: d,
1658
+ blockRef: f,
1659
+ toolbarPosition: _,
1660
+ resolvedContent: l,
1661
+ handleDoubleClick: v,
1662
+ handleEditorDone: y
1662
1663
  };
1663
1664
  }
1664
1665
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1665
- var Fa = ["innerHTML"], Ia = /* @__PURE__ */ o({
1666
+ var za = ["innerHTML"], Ba = /* @__PURE__ */ o({
1666
1667
  __name: "ParagraphBlock",
1667
1668
  props: {
1668
1669
  block: {},
1669
1670
  viewport: {}
1670
1671
  },
1671
1672
  setup(e) {
1672
- let t = e, n = b(() => import("./ParagraphEditor-BoGELRr-.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Pa(() => t.block.content);
1673
+ let t = e, n = b(() => import("./ParagraphEditor-DAQUWqQJ.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Ra(() => t.block.content);
1673
1674
  return (t, u) => (c(), w("div", {
1674
1675
  ref_key: "blockRef",
1675
1676
  ref: i,
@@ -1688,11 +1689,11 @@ var Fa = ["innerHTML"], Ia = /* @__PURE__ */ o({
1688
1689
  key: 1,
1689
1690
  class: "tpl-text-content tpl:outline-none",
1690
1691
  innerHTML: D(o)
1691
- }, null, 8, Fa))], 544));
1692
+ }, null, 8, za))], 544));
1692
1693
  }
1693
1694
  });
1694
1695
  // src/utils/updateBlockList.ts
1695
- function La(e, t, n, r = 0, i) {
1696
+ function Va(e, t, n, r = 0, i) {
1696
1697
  let a = n ? e.content.value.blocks.find((e) => e.id === n) : void 0, o = n ? a?.type === "section" ? a.children[r] ?? [] : [] : e.content.value.blocks, s = t.map((e) => e.id);
1697
1698
  if (o.some((e) => !s.includes(e.id))) return;
1698
1699
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1705,19 +1706,19 @@ function La(e, t, n, r = 0, i) {
1705
1706
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1706
1707
  }
1707
1708
  // src/utils/mergeTagTokens.ts
1708
- function Ra(e, t, n) {
1709
+ function Ha(e, t, n) {
1709
1710
  let r = [], i = "\0MT";
1710
1711
  for (; e.includes(i);) i += "_";
1711
- let a = n === "html" ? nt(e, (e) => {
1712
+ let a = n === "html" ? ze(e, (e) => {
1712
1713
  let t = r.push(e) - 1;
1713
1714
  return `${i}${t}\u0000`;
1714
1715
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1715
1716
  start: e.index,
1716
1717
  end: e.index + e[0].length
1717
- })), s = [], c = et(a, t, "logic"), l = [], u = 0;
1718
+ })), s = [], c = at(a, t, "logic"), l = [], u = 0;
1718
1719
  for (let e of ["logic", "value"]) {
1719
1720
  let r = 0;
1720
- for (let i of e === "logic" ? c : et(a, t, "value")) {
1721
+ for (let i of e === "logic" ? c : at(a, t, "value")) {
1721
1722
  let t = i.index, a = t + i.value.length;
1722
1723
  for (; o[r]?.end <= t;) r++;
1723
1724
  let c = o[r];
@@ -1733,51 +1734,51 @@ function Ra(e, t, n) {
1733
1734
  }), s.push({
1734
1735
  start: t,
1735
1736
  end: a,
1736
- value: n === "html" ? Ne(i.value) : i.value
1737
+ value: n === "html" ? Qe(i.value) : i.value
1737
1738
  });
1738
1739
  }
1739
1740
  }
1740
1741
  }
1741
1742
  return [...r, ...s.map((e) => e.value)].sort();
1742
1743
  }
1743
- function za(e, t, n, r) {
1744
- return JSON.stringify(Ra(e, n, r)) !== JSON.stringify(Ra(t, n, r));
1744
+ function Ua(e, t, n, r) {
1745
+ return JSON.stringify(Ha(e, n, r)) !== JSON.stringify(Ha(t, n, r));
1745
1746
  }
1746
1747
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1747
- var Ba = [
1748
+ var Wa = [
1748
1749
  "data-state",
1749
1750
  "aria-label",
1750
1751
  "title",
1751
1752
  "aria-expanded",
1752
1753
  "aria-controls",
1753
1754
  "onKeydown"
1754
- ], Va = [
1755
+ ], Ga = [
1755
1756
  "aria-label",
1756
1757
  "aria-labelledby",
1757
1758
  "aria-describedby",
1758
1759
  "onKeydown"
1759
- ], Ha = ["id"], Ua = ["id"], Wa = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ga = ["disabled"], Ka = {
1760
+ ], Ka = ["id"], qa = ["id"], Ja = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ya = ["disabled"], Xa = {
1760
1761
  key: 0,
1761
1762
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1762
- }, qa = {
1763
+ }, Za = {
1763
1764
  key: 1,
1764
1765
  class: "tpl:m-0"
1765
- }, Ja = { class: "tpl:m-0" }, Ya = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Xa = {
1766
+ }, Qa = { class: "tpl:m-0" }, $a = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, eo = {
1766
1767
  key: 3,
1767
1768
  class: "tpl:m-0"
1768
- }, Za = {
1769
+ }, to = {
1769
1770
  key: 4,
1770
1771
  class: "tpl:m-0"
1771
- }, Qa = {
1772
+ }, no = {
1772
1773
  key: 5,
1773
1774
  class: "tpl:m-0"
1774
- }, $a = {
1775
+ }, ro = {
1775
1776
  key: 6,
1776
1777
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1777
- }, eo = ["onClick"], to = {
1778
+ }, io = ["onClick"], ao = {
1778
1779
  key: 7,
1779
1780
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1780
- }, no = ["data-testid", "disabled"], ro = /*#__PURE__*/ yr(/* @__PURE__ */ o({
1781
+ }, oo = ["data-testid", "disabled"], so = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
1781
1782
  __name: "LocaleStatusChip",
1782
1783
  props: {
1783
1784
  blockId: {},
@@ -1797,24 +1798,24 @@ var Ba = [
1797
1798
  },
1798
1799
  emits: ["target"],
1799
1800
  setup(e, { emit: t }) {
1800
- let n = e, r = t, i = g(vn, null), o = g(qt, null), s = g(wt, null), l = g(ln, "en") ?? "en", { t: d, format: f } = G(), m = te(), h = gt(), { toLocal: v } = vt(), y = H(null), b = H(null), x = H(!1), S = H(!1), C = H(null), T = H(null), F = null, R = H({
1801
+ let n = e, r = t, i = g(Sn, null), o = g(pn, null), s = g(Dt, null), l = g(yn, "en") ?? "en", { t: d, format: f } = G(), m = te(), h = yt(), { toLocal: v } = xt(), y = H(null), b = H(null), x = H(!1), S = H(!1), C = H(null), T = H(null), F = null, R = H({
1801
1802
  top: 0,
1802
1803
  left: 0
1803
1804
  }), z = H({
1804
1805
  maxHeight: 0,
1805
1806
  maxWidth: 0
1806
- }), B = `tpl-locale-popover-${ue()}`, V = I(() => mr(i?.activeLocale?.value ?? "")), W = I(() => mr(i?.content.value.settings.locale ?? "en"));
1807
+ }), B = `tpl-locale-popover-${fe()}`, V = I(() => vr(i?.activeLocale?.value ?? "")), W = I(() => vr(i?.content.value.settings.locale ?? "en"));
1807
1808
  function K(e, t) {
1808
1809
  switch (e) {
1809
1810
  case "tags-differ": return d.localization.tagsDiffer;
1810
1811
  case "hidden": return f(d.localization.hidden, { language: V.value });
1811
1812
  case "changed": return f(d.localization.changed, { language: V.value });
1812
- case "default-stale": return hr(d.localization.staleLanguages, t, l);
1813
- case "missing": return t === 1 ? d.localization.notTranslated : hr(d.localization.notTranslatedCount, t, l);
1814
- default: return t === 1 ? d.localization.outOfDate : hr(d.localization.staleCount, t, l);
1813
+ case "default-stale": return yr(d.localization.staleLanguages, t, l);
1814
+ case "missing": return t === 1 ? d.localization.notTranslated : yr(d.localization.notTranslatedCount, t, l);
1815
+ default: return t === 1 ? d.localization.outOfDate : yr(d.localization.staleCount, t, l);
1815
1816
  }
1816
1817
  }
1817
- let ne = I(() => K(n.state, n.count)), q = I(() => n.popoverState ?? n.state), J = I(() => n.popoverCount ?? n.count), re = I(() => K(q.value, J.value)), ie = I(() => n.state === "hidden" ? Qn : n.state === "changed" ? Yn : n.state === "default-stale" ? cr : n.state === "stale" ? Zn : ar), ae = I(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && J.value > 1), Y = I(() => n.editable && n.eligibleGaps && o?.isAvailable.value);
1818
+ let ne = I(() => K(n.state, n.count)), q = I(() => n.popoverState ?? n.state), J = I(() => n.popoverCount ?? n.count), re = I(() => K(q.value, J.value)), ie = I(() => n.state === "hidden" ? nr : n.state === "changed" ? $n : n.state === "default-stale" ? fr : n.state === "stale" ? tr : lr), ae = I(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && J.value > 1), Y = I(() => n.editable && n.eligibleGaps && o?.isAvailable.value);
1818
1819
  function X(e = !1) {
1819
1820
  x.value = !1, S.value = !1, F = null, e && y.value?.focus({ preventScroll: !0 });
1820
1821
  }
@@ -1875,10 +1876,10 @@ var Ba = [
1875
1876
  }, { immediate: !0 }), _(() => {
1876
1877
  s?.get(n.blockId) === le && s.delete(n.blockId);
1877
1878
  });
1878
- function de() {
1879
+ function ue() {
1879
1880
  i?.keepTranslations?.(n.blockId, n.stale), X(!0);
1880
1881
  }
1881
- function fe(e) {
1882
+ function de(e) {
1882
1883
  i?.resetLocaleFields?.(n.blockId, e), X(!0);
1883
1884
  }
1884
1885
  function pe() {
@@ -1923,7 +1924,7 @@ var Ba = [
1923
1924
  size: 12,
1924
1925
  "stroke-width": 2,
1925
1926
  "aria-hidden": "true"
1926
- }))], 40, Ba), D(h) && x.value ? (c(), A(ee, {
1927
+ }))], 40, Wa), D(h) && x.value ? (c(), A(ee, {
1927
1928
  key: 0,
1928
1929
  to: D(h)
1929
1930
  }, [N("div", {
@@ -1949,80 +1950,80 @@ var Ba = [
1949
1950
  N("h3", {
1950
1951
  id: `${B}-question`,
1951
1952
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
1952
- }, P(D(hr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Ha),
1953
+ }, P(D(yr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Ka),
1953
1954
  N("p", {
1954
1955
  id: `${B}-warning`,
1955
1956
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
1956
- }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, Ua),
1957
- N("div", Wa, [N("button", {
1957
+ }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, qa),
1958
+ N("div", Ja, [N("button", {
1958
1959
  ref_key: "confirmationCancel",
1959
1960
  ref: T,
1960
1961
  type: "button",
1961
1962
  "data-testid": "translation-confirm-cancel",
1962
- class: O(D(_r)),
1963
+ class: O(D(xr)),
1963
1964
  onClick: ge
1964
1965
  }, P(D(d).localization.cancel), 3), N("button", {
1965
1966
  type: "button",
1966
1967
  "data-testid": "translation-confirm",
1967
- class: O(D(vr)),
1968
+ class: O(D(Sr)),
1968
1969
  disabled: !Y.value || !!D(o)?.running.value || !e.translationCount,
1969
1970
  onClick: ve
1970
- }, P(D(hr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Ga)])
1971
+ }, P(D(yr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Ya)])
1971
1972
  ], 64)) : (c(), w(U, { key: 1 }, [
1972
- ae.value ? (c(), w("p", Ka, P(re.value), 1)) : k("", !0),
1973
- q.value === "missing" ? (c(), w("p", qa, P(D(f)(D(d).localization.missingExplanation, { default: W.value })), 1)) : q.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", Ja, P(D(f)(D(d).localization.staleExplanation, { default: W.value })), 1), N("p", Ya, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (c(), w("p", Xa, P(D(f)(D(d).localization.tagsDifferExplanation, { default: W.value })), 1)) : q.value === "changed" ? (c(), w("p", Za, P(D(hr)(D(d).localization.changedProperties, J.value, D(l), { default: W.value })), 1)) : q.value === "hidden" ? (c(), w("p", Qa, P(D(f)(D(d).localization.hiddenExplanation, { language: V.value })), 1)) : (c(), w("ul", $a, [(c(!0), w(U, null, p(e.staleLocales, (e) => (c(), w("li", {
1973
+ ae.value ? (c(), w("p", Xa, P(re.value), 1)) : k("", !0),
1974
+ q.value === "missing" ? (c(), w("p", Za, P(D(f)(D(d).localization.missingExplanation, { default: W.value })), 1)) : q.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", Qa, P(D(f)(D(d).localization.staleExplanation, { default: W.value })), 1), N("p", $a, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (c(), w("p", eo, P(D(f)(D(d).localization.tagsDifferExplanation, { default: W.value })), 1)) : q.value === "changed" ? (c(), w("p", to, P(D(yr)(D(d).localization.changedProperties, J.value, D(l), { default: W.value })), 1)) : q.value === "hidden" ? (c(), w("p", no, P(D(f)(D(d).localization.hiddenExplanation, { language: V.value })), 1)) : (c(), w("ul", ro, [(c(!0), w(U, null, p(e.staleLocales, (e) => (c(), w("li", {
1974
1975
  key: e,
1975
1976
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
1976
- }, [N("span", null, P(D(mr)(e)), 1), N("button", {
1977
+ }, [N("span", null, P(D(vr)(e)), 1), N("button", {
1977
1978
  type: "button",
1978
- class: O(D(gr)),
1979
+ class: O(D(br)),
1979
1980
  onClick: (t) => me(e)
1980
- }, P(D(d).localization.open), 11, eo)]))), 128))])),
1981
- e.editable && q.value !== "default-stale" ? (c(), w("div", to, [
1981
+ }, P(D(d).localization.open), 11, io)]))), 128))])),
1982
+ e.editable && q.value !== "default-stale" ? (c(), w("div", ao, [
1982
1983
  Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
1983
1984
  key: 0,
1984
1985
  type: "button",
1985
1986
  ref_key: "retranslate",
1986
1987
  ref: C,
1987
1988
  "data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
1988
- class: O(D(_r)),
1989
+ class: O(D(xr)),
1989
1990
  disabled: !!D(o)?.running.value,
1990
1991
  onClick: he
1991
- }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, no)) : k("", !0),
1992
+ }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, oo)) : k("", !0),
1992
1993
  q.value === "stale" || q.value === "tags-differ" ? (c(), w(U, { key: 1 }, [q.value === "stale" ? (c(), w("button", {
1993
1994
  key: 0,
1994
1995
  type: "button",
1995
1996
  "data-testid": "locale-keep",
1996
- class: O(D(Y.value ? gr : _r)),
1997
- onClick: de
1997
+ class: O(D(Y.value ? br : xr)),
1998
+ onClick: ue
1998
1999
  }, P(D(d).localization.keep), 3)) : k("", !0), N("button", {
1999
2000
  type: "button",
2000
2001
  "data-testid": "locale-use-default",
2001
- class: O(D(q.value === "tags-differ" && !Y.value ? _r : gr)),
2002
- onClick: n[0] ||= (t) => fe(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
2002
+ class: O(D(q.value === "tags-differ" && !Y.value ? xr : br)),
2003
+ onClick: n[0] ||= (t) => de(q.value === "tags-differ" ? e.tagsDiffer ?? [] : e.stale)
2003
2004
  }, P(D(f)(D(d).localization.useDefaultLanguage, { default: W.value })), 3)], 64)) : k("", !0),
2004
2005
  q.value === "changed" ? (c(), w("button", {
2005
2006
  key: 2,
2006
2007
  type: "button",
2007
2008
  "data-testid": "locale-reset",
2008
- class: O(D(_r)),
2009
- onClick: n[1] ||= (t) => fe(e.setPaths)
2009
+ class: O(D(xr)),
2010
+ onClick: n[1] ||= (t) => de(e.setPaths)
2010
2011
  }, P(D(d).localization.resetChanges), 3)) : k("", !0),
2011
2012
  q.value === "hidden" ? (c(), w("button", {
2012
2013
  key: 3,
2013
2014
  type: "button",
2014
2015
  "data-testid": "locale-show",
2015
- class: O(D(_r)),
2016
+ class: O(D(xr)),
2016
2017
  onClick: pe
2017
2018
  }, P(D(d).localization.show), 3)) : k("", !0)
2018
2019
  ])) : k("", !0)
2019
- ], 64))], 44, Va)], 8, ["to"])) : k("", !0)], 64));
2020
+ ], 64))], 44, Ga)], 8, ["to"])) : k("", !0)], 64));
2020
2021
  }
2021
- }), [["__scopeId", "data-v-3343ae7d"]]), io = /* @__PURE__ */ o({
2022
+ }), [["__scopeId", "data-v-3343ae7d"]]), co = /* @__PURE__ */ o({
2022
2023
  __name: "LocaleMarkers",
2023
2024
  props: { block: {} },
2024
2025
  setup(e) {
2025
- let t = e, n = g(vn, null), r = g(Pt, void 0), i = g($t, []), a = g(St, le.liquid), o = g(en, I(() => /* @__PURE__ */ new Set())), s = I(() => n?.activeLocale?.value), l = I(() => s.value ? t.block.l10n?.[s.value] : void 0), d = I(() => ({
2026
+ let t = e, n = g(Sn, null), r = g(Lt, void 0), i = g(rn, []), a = g(Tt, de.liquid), o = g(an, I(() => /* @__PURE__ */ new Set())), s = I(() => n?.activeLocale?.value), l = I(() => s.value ? t.block.l10n?.[s.value] : void 0), d = I(() => ({
2026
2027
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
2027
2028
  ...t.block,
2028
2029
  children: []
@@ -2031,13 +2032,13 @@ var Ba = [
2031
2032
  locale: n.content.value.settings.locale,
2032
2033
  locales: n.content.value.settings.locales
2033
2034
  }
2034
- })), f = I(() => n && s.value && !o.value.has(s.value) ? $e(d.value, s.value, i) : {
2035
+ })), f = I(() => n && s.value && !o.value.has(s.value) ? Ze(d.value, s.value, i) : {
2035
2036
  missing: [],
2036
2037
  stale: [],
2037
2038
  translated: []
2038
2039
  }), p = I(() => f.value.stale.map((e) => e.slice(t.block.id.length + 1))), m = I(() => f.value.translated.flatMap((e) => {
2039
- let n = e.slice(t.block.id.length + 1), r = ve(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || ye[t.block.type]?.includes(n) ? "html" : "text";
2040
- return typeof r == "string" && i !== void 0 && za(r, i, a, o) ? [n] : [];
2040
+ let n = e.slice(t.block.id.length + 1), r = $e(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || Te[t.block.type]?.includes(n) ? "html" : "text";
2041
+ return typeof r == "string" && i !== void 0 && Ua(r, i, a, o) ? [n] : [];
2041
2042
  })), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? X(d.value, s.value, {
2042
2043
  syntax: a,
2043
2044
  definitions: i,
@@ -2048,9 +2049,9 @@ var Ba = [
2048
2049
  let n = e.slice(t.block.id.length + 1);
2049
2050
  return f.value.translated.includes(e) && !m.value.includes(n);
2050
2051
  })), y = I(() => Object.keys(l.value?.set ?? {}).filter((e) => {
2051
- let n = e.split("."), r = n.pop(), i = n.length ? ve(t.block, n.join(".")) : t.block;
2052
- return Array.isArray(i) ? ve(i, r) !== void 0 : i !== void 0;
2053
- })), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && $e(d.value, e, i).stale.length > 0) : []), x = I(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2052
+ let n = e.split("."), r = n.pop(), i = n.length ? $e(t.block, n.join(".")) : t.block;
2053
+ return Array.isArray(i) ? $e(i, r) !== void 0 : i !== void 0;
2054
+ })), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && Ze(d.value, e, i).stale.length > 0) : []), x = I(() => s.value ? o.value.has(s.value) ? null : l.value?.hidden ? "hidden" : f.value.missing.length ? "missing" : p.value.length ? "stale" : m.value.length ? "tags-differ" : y.value.length ? "changed" : null : b.value.length ? "default-stale" : null);
2054
2055
  function S(e) {
2055
2056
  return e === "missing" ? f.value.missing.length : e === "stale" ? p.value.length : e === "tags-differ" ? m.value.length : e === "default-stale" ? b.value.length : y.value.length;
2056
2057
  }
@@ -2059,12 +2060,12 @@ var Ba = [
2059
2060
  h.value = null;
2060
2061
  });
2061
2062
  let E = I(() => {
2062
- let e = ve(t.block, p.value[0] ?? "");
2063
+ let e = $e(t.block, p.value[0] ?? "");
2063
2064
  if (typeof e != "string") return "";
2064
2065
  let n = e.split(/<[^>]*>/).join("");
2065
2066
  return Array.from(n).slice(0, 60).join("");
2066
2067
  });
2067
- return (t, n) => D(r) && x.value ? (c(), A(ro, {
2068
+ return (t, n) => D(r) && x.value ? (c(), A(so, {
2068
2069
  key: 0,
2069
2070
  "block-id": e.block.id,
2070
2071
  state: x.value,
@@ -2098,21 +2099,21 @@ var Ba = [
2098
2099
  "editable"
2099
2100
  ])) : k("", !0);
2100
2101
  }
2101
- }), ao = [
2102
+ }), lo = [
2102
2103
  "data-block-id",
2103
2104
  "data-block-type",
2104
2105
  "data-tpl-picked"
2105
- ], oo = ["aria-label"], so = ["data-lock-holder"], co = ["aria-label"], lo = [
2106
+ ], uo = ["aria-label"], fo = ["data-lock-holder"], po = ["aria-label"], mo = [
2106
2107
  "aria-label",
2107
2108
  "aria-pressed",
2108
2109
  "title"
2109
- ], uo = ["aria-label", "title"], fo = ["aria-label", "title"], po = ["aria-label", "title"], mo = {
2110
+ ], ho = ["aria-label", "title"], go = ["aria-label", "title"], _o = ["aria-label", "title"], vo = {
2110
2111
  key: 3,
2111
2112
  class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
2112
- }, ho = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, go = {
2113
+ }, yo = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, bo = {
2113
2114
  key: 4,
2114
2115
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2115
- }, _o = ["aria-label", "title"], vo = /*#__PURE__*/ yr(/* @__PURE__ */ o({
2116
+ }, xo = ["aria-label", "title"], So = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
2116
2117
  __name: "BlockWrapper",
2117
2118
  props: {
2118
2119
  block: {},
@@ -2125,7 +2126,7 @@ var Ba = [
2125
2126
  },
2126
2127
  emits: ["select"],
2127
2128
  setup(t, { emit: n }) {
2128
- let i = b(() => import("./BlockIssueBadge-BKO4Mr8f.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = G(), f = g(yn, null), p = H(null), m = I(() => f?.liftedBlockId.value === a.block.id), h = I(() => m.value ? d(l.blockActions.dragLifted, { block: a.block.type }) : l.blockActions.drag);
2129
+ let i = b(() => import("./BlockIssueBadge-B3CTTvgw.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = G(), f = g(Cn, null), p = H(null), m = I(() => f?.liftedBlockId.value === a.block.id), h = I(() => m.value ? d(l.blockActions.dragLifted, { block: a.block.type }) : l.blockActions.drag);
2129
2130
  async function _() {
2130
2131
  await j(), p.value?.focus();
2131
2132
  }
@@ -2135,7 +2136,7 @@ var Ba = [
2135
2136
  let S = I(() => !a.viewport || !o.value.visibility ? !1 : o.value.visibility[a.viewport] === !1), C = I(() => !!(ue?.activeLocale?.value && a.block.l10n?.[ue.activeLocale.value]?.hidden)), E = I(() => a.previewMode === !0 && (S.value || C.value)), ee = I(() => a.viewport ? {
2136
2137
  desktop: l.viewport.desktop,
2137
2138
  mobile: l.viewport.mobile
2138
- }[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(mn, null), z = g(sn, null), B = g(Zt, {}), V = I(() => B.savedBlocks?.isPicking.value === !0), U = I(() => !a.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), te = I(() => a.isSelected && !V.value), K = I(() => B.comments?.getBlockCount(a.block.id) ?? 0), ne = H(null), q = H(null), J = H(null), re = H(null), ie = H({
2139
+ }[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(vn, null), z = g(dn, null), B = g(en, {}), V = I(() => B.savedBlocks?.isPicking.value === !0), U = I(() => !a.nested && B.savedBlocks?.isAvailable.value === !0 && B.savedBlocks?.canCreate.value === !0), te = I(() => a.isSelected && !V.value), K = I(() => B.comments?.getBlockCount(a.block.id) ?? 0), ne = H(null), q = H(null), J = H(null), re = H(null), ie = H({
2139
2140
  left: "calc(100% + 8px)",
2140
2141
  top: "50%"
2141
2142
  }), ae = H(!1), Y = I(() => q.value ?? re.value), X = I(() => Y.value?.closest(".tpl-body"));
@@ -2175,15 +2176,15 @@ var Ba = [
2175
2176
  re.value,
2176
2177
  X.value
2177
2178
  ].filter((e) => !!e) : []), Z), e(X, "scroll", Z, { passive: !0 });
2178
- let Q = I(() => B.collaboration?.lockOf(a.block.id) ?? null), oe = I(() => Q.value?.holder.type === "guest" ? l.collaboration.guest : Q.value?.holder.name ?? ""), se = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), ce = Bn(() => o.value.type === "section" ? o.value.backgroundImage : void 0), le = Bn(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), ue = g(vn, null), de = ue ? yt(ue) : null, fe = g(rn, null) ?? de?.content ?? null;
2179
- u([() => ue?.activeLocale?.value, () => de && Ie(de.settings.value)], Z, { flush: "post" });
2180
- let pe = g(Rt, void 0), me = I(() => Bi(o.value, {
2179
+ let Q = I(() => B.collaboration?.lockOf(a.block.id) ?? null), oe = I(() => Q.value?.holder.type === "guest" ? l.collaboration.guest : Q.value?.holder.name ?? ""), se = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), ce = Wn(() => o.value.type === "section" ? o.value.backgroundImage : void 0), le = Wn(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), ue = g(Sn, null), de = ue ? St(ue) : null, fe = g(cn, null) ?? de?.content ?? null;
2180
+ u([() => ue?.activeLocale?.value, () => de && He(de.settings.value)], Z, { flush: "post" });
2181
+ let pe = g(Vt, void 0), me = I(() => Wi(o.value, {
2181
2182
  backgroundImageUrl: ce.value,
2182
- heroBoxWidth: Mn(o.value) ? In(o.value, fe?.value, pe) : void 0
2183
- })), he = I(() => Ki(o.value, { backgroundImageUrl: le.value })), ge = I(() => {
2183
+ heroBoxWidth: In(o.value) ? Bn(o.value, fe?.value, pe) : void 0
2184
+ })), he = I(() => Xi(o.value, { backgroundImageUrl: le.value })), ge = I(() => {
2184
2185
  let e = o.value;
2185
2186
  return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
2186
- }), _e = I(() => Gi(ge.value?.wrapper?.padding));
2187
+ }), _e = I(() => Yi(ge.value?.wrapper?.padding));
2187
2188
  function ve(e) {
2188
2189
  a.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
2189
2190
  }
@@ -2227,12 +2228,12 @@ var Ba = [
2227
2228
  class: O(["tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]", ae.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2228
2229
  "aria-label": D(d)(D(l).blockActions.comments, { count: String(K.value) }),
2229
2230
  onClick: n[0] ||= M((e) => D(B).comments?.openForBlock(t.block.id), ["stop"])
2230
- }, [W(D(lr), {
2231
+ }, [W(D(pr), {
2231
2232
  size: 12,
2232
2233
  "stroke-width": 2.5
2233
- }), T(" " + P(K.value), 1)], 10, oo)) : k("", !0),
2234
+ }), T(" " + P(K.value), 1)], 10, uo)) : k("", !0),
2234
2235
  W(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
2235
- t.previewMode ? k("", !0) : (c(), A(io, {
2236
+ t.previewMode ? k("", !0) : (c(), A(co, {
2236
2237
  key: 1,
2237
2238
  block: t.block
2238
2239
  }, null, 8, ["block"]))
@@ -2250,9 +2251,9 @@ var Ba = [
2250
2251
  class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:-translate-x-1/2 tpl:-translate-y-full tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
2251
2252
  style: L({
2252
2253
  backgroundColor: Q.value.holder.color,
2253
- color: D(br)(Q.value.holder.color)
2254
+ color: D(wr)(Q.value.holder.color)
2254
2255
  })
2255
- }, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, so)) : k("", !0),
2256
+ }, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, fo)) : k("", !0),
2256
2257
  se.value === null ? k("", !0) : (c(), w("div", {
2257
2258
  key: se.value,
2258
2259
  "data-testid": "block-agent-highlight",
@@ -2277,81 +2278,81 @@ var Ba = [
2277
2278
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2278
2279
  title: D(l).blockActions.drag,
2279
2280
  onKeydown: v
2280
- }, [W(D(fr), {
2281
+ }, [W(D(gr), {
2281
2282
  size: 14,
2282
2283
  "stroke-width": 1.5
2283
- })], 40, lo),
2284
+ })], 40, mo),
2284
2285
  N("button", {
2285
2286
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2286
2287
  "aria-label": D(l).blockActions.duplicate,
2287
2288
  title: D(l).blockActions.duplicate,
2288
2289
  onClick: M(be, ["stop"])
2289
- }, [W(D(Jn), {
2290
+ }, [W(D(Qn), {
2290
2291
  size: 14,
2291
2292
  "stroke-width": 1.5
2292
- })], 8, uo),
2293
+ })], 8, ho),
2293
2294
  U.value ? (c(), w("button", {
2294
2295
  key: 0,
2295
2296
  class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2296
2297
  "aria-label": D(l).blockActions.saveAsBlock,
2297
2298
  title: D(l).blockActions.saveAsBlock,
2298
2299
  onClick: M(xe, ["stop"])
2299
- }, [W(D(nr), {
2300
+ }, [W(D(or), {
2300
2301
  size: 14,
2301
2302
  "stroke-width": 1.5
2302
- })], 8, fo)) : k("", !0),
2303
+ })], 8, go)) : k("", !0),
2303
2304
  N("button", {
2304
2305
  class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors",
2305
2306
  "aria-label": D(l).blockActions.delete,
2306
2307
  title: D(l).blockActions.delete,
2307
2308
  onClick: M(ye, ["stop"])
2308
- }, [W(D(or), {
2309
+ }, [W(D(ur), {
2309
2310
  size: 14,
2310
2311
  "stroke-width": 1.5
2311
- })], 8, po)
2312
- ], 12, co)) : k("", !0),
2313
- S.value ? (c(), w("div", mo, [N("span", ho, [W(D(Qn), {
2312
+ })], 8, _o)
2313
+ ], 12, po)) : k("", !0),
2314
+ S.value ? (c(), w("div", vo, [N("span", yo, [W(D(nr), {
2314
2315
  size: 12,
2315
2316
  "stroke-width": 1.5
2316
2317
  }), T(" " + P(D(d)(D(l).blockActions.hiddenOnViewport, { viewport: ee.value })), 1)])])) : k("", !0),
2317
- F.value && !S.value ? (c(), w("div", go, [N("button", {
2318
+ F.value && !S.value ? (c(), w("div", bo, [N("button", {
2318
2319
  "data-testid": "condition-toggle",
2319
2320
  class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
2320
2321
  "aria-label": D(l).blockActions.conditionToggle,
2321
2322
  title: t.block.displayCondition?.label,
2322
2323
  onClick: M(Se, ["stop"])
2323
- }, [W(D($n), {
2324
+ }, [W(D(rr), {
2324
2325
  size: 12,
2325
2326
  "stroke-width": 2
2326
- })], 8, _o)])) : k("", !0),
2327
+ })], 8, xo)])) : k("", !0),
2327
2328
  he.value ? (c(), w("div", {
2328
2329
  key: 5,
2329
- class: O(["tpl-section-wrapper tpl-email-surface", D(Ii)(he.value)]),
2330
+ class: O(["tpl-section-wrapper tpl-email-surface", D(Bi)(he.value)]),
2330
2331
  style: L(he.value)
2331
2332
  }, [ge.value ? (c(), w("div", {
2332
2333
  key: 0,
2333
2334
  class: "tpl-band-frame",
2334
2335
  style: L(_e.value)
2335
2336
  }, [N("div", {
2336
- class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2337
+ class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
2337
2338
  style: L(me.value)
2338
2339
  }, [y(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (c(), w("div", {
2339
2340
  key: 1,
2340
- class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2341
+ class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
2341
2342
  style: L(me.value)
2342
2343
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (c(), w("div", {
2343
2344
  key: 6,
2344
- class: O(["tpl-block-content tpl-email-surface", D(Ii)(me.value)]),
2345
+ class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
2345
2346
  style: L(me.value)
2346
2347
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))
2347
- ], 10, ao));
2348
+ ], 10, lo));
2348
2349
  }
2349
2350
  }), [["__scopeId", "data-v-872194d3"]]);
2350
2351
  // src/utils/unwrapParagraph.ts
2351
- function yo(e) {
2352
+ function Co(e) {
2352
2353
  let t = /^\s*<p\b/.exec(e);
2353
2354
  if (!t) return e;
2354
- let n = qe(e, t[0].length);
2355
+ let n = lt(e, t[0].length);
2355
2356
  if (n === -1) return e;
2356
2357
  let r = /<\/p>\s*$/.exec(e);
2357
2358
  if (!r || r.index <= n) return e;
@@ -2359,22 +2360,22 @@ function yo(e) {
2359
2360
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
2360
2361
  }
2361
2362
  // src/components/blocks/TitleBlock.vue
2362
- var bo = /* @__PURE__ */ o({
2363
+ var wo = /* @__PURE__ */ o({
2363
2364
  __name: "TitleBlock",
2364
2365
  props: {
2365
2366
  block: {},
2366
2367
  viewport: {}
2367
2368
  },
2368
2369
  setup(e) {
2369
- let t = e, n = b(() => import("./TitleEditor-Cn4fnSpa.js")), r = on(Jt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Pa(() => t.block.content), f = I(() => {
2370
+ let t = e, n = b(() => import("./TitleEditor-opvaIgVr.js")), r = xn(Zt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ra(() => t.block.content), f = I(() => {
2370
2371
  let e = {
2371
- fontSize: `${je[t.block.level]}px`,
2372
- lineHeight: String(xe),
2372
+ fontSize: `${ce[t.block.level]}px`,
2373
+ lineHeight: String(Se),
2373
2374
  fontWeight: "700",
2374
2375
  textAlign: t.block.textAlign
2375
2376
  };
2376
2377
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
2377
- }), p = I(() => `h${t.block.level}`), m = I(() => qn(yo(l.value)));
2378
+ }), p = I(() => `h${t.block.level}`), m = I(() => Zn(Co(l.value)));
2378
2379
  return (t, r) => (c(), w("div", {
2379
2380
  ref_key: "blockRef",
2380
2381
  ref: o,
@@ -2400,14 +2401,14 @@ var bo = /* @__PURE__ */ o({
2400
2401
  innerHTML: m.value
2401
2402
  }, null, 8, ["innerHTML"]))], 36));
2402
2403
  }
2403
- }), xo = "hero", So = "#1f2937", Co = "#ffffff";
2404
- function wo(e, t) {
2405
- let n = dt("title", e);
2406
- n.color = Co, n.textAlign = "center";
2407
- let r = dt("paragraph", e);
2408
- r.content = `<p style="text-align: center"><span style="color: ${Co}">${To(t)}</span></p>`;
2409
- let i = dt("button", e);
2410
- return i.align = "center", he({
2404
+ }), To = "hero", Eo = "#1f2937", Do = "#ffffff";
2405
+ function Oo(e, t) {
2406
+ let n = pt("title", e);
2407
+ n.color = Do, n.textAlign = "center";
2408
+ let r = pt("paragraph", e);
2409
+ r.content = `<p style="text-align: center"><span style="color: ${Do}">${ko(t)}</span></p>`;
2410
+ let i = pt("button", e);
2411
+ return i.align = "center", xe({
2411
2412
  columns: "1",
2412
2413
  children: [[
2413
2414
  n,
@@ -2425,28 +2426,28 @@ function wo(e, t) {
2425
2426
  bottom: 48,
2426
2427
  left: 24
2427
2428
  },
2428
- backgroundColor: So
2429
+ backgroundColor: Eo
2429
2430
  }
2430
2431
  });
2431
2432
  }
2432
- function To(e) {
2433
+ function ko(e) {
2433
2434
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2434
2435
  }
2435
2436
  // src/utils/sectionColumnDrop.ts
2436
- var Eo = /* @__PURE__ */ new Set(["section", xo]);
2437
- function Do(e) {
2438
- return e.dataset.blockType !== "section" && !Eo.has(e.dataset.paletteType ?? "");
2437
+ var Ao = /* @__PURE__ */ new Set(["section", To]);
2438
+ function jo(e) {
2439
+ return e.dataset.blockType !== "section" && !Ao.has(e.dataset.paletteType ?? "");
2439
2440
  }
2440
2441
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2441
- var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2442
+ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
2442
2443
  key: 0,
2443
2444
  "data-testid": "hero-image-hint",
2444
2445
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-x-0 tpl:bottom-full tpl:mb-2 tpl:flex tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
2445
- }, Ao = {
2446
+ }, Po = {
2446
2447
  key: 0,
2447
2448
  "data-testid": "section-drop-hint",
2448
2449
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
2449
- }, jo = /* @__PURE__ */ o({
2450
+ }, Fo = /* @__PURE__ */ o({
2450
2451
  __name: "SectionBlock",
2451
2452
  props: {
2452
2453
  block: {},
@@ -2455,46 +2456,21 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2455
2456
  },
2456
2457
  setup(e) {
2457
2458
  let t = {
2458
- title: bo,
2459
- paragraph: Ia,
2460
- image: ka,
2461
- button: Zi,
2462
- divider: da,
2463
- custom: la
2464
- }, n = e, { t: r } = G(), o = on(vn, "SectionBlock"), { displayBlock: s } = yt(o), u = I(() => n.sourceBlock ?? n.block), m = g(en, I(() => /* @__PURE__ */ new Set()));
2465
- d(en, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2466
- let h = g(sn, null), _ = g(an, null), v = g(Zt, {}), y = g(Ut, null), b = g(Kt, null);
2459
+ title: wo,
2460
+ paragraph: Ba,
2461
+ image: Na,
2462
+ button: ta,
2463
+ divider: ha,
2464
+ custom: pa
2465
+ }, n = e, { t: r } = G(), o = xn(Sn, "SectionBlock"), { displayBlock: s } = St(o), u = I(() => n.sourceBlock ?? n.block), m = g(an, I(() => /* @__PURE__ */ new Set()));
2466
+ d(an, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2467
+ let h = g(dn, null), _ = g(ln, null), v = g(en, {}), y = g(Kt, null), b = g(Yt, null);
2467
2468
  function x(e) {
2468
2469
  if (y?.value) return;
2469
2470
  let t = v.savedBlocks;
2470
2471
  t?.isPicking.value ? t.togglePick(n.block.id) : o.selectBlock(e);
2471
2472
  }
2472
- let S = I(() => {
2473
- switch (n.block.columns) {
2474
- case "2": return ["50%", "50%"];
2475
- case "3": return [
2476
- "33.33%",
2477
- "33.33%",
2478
- "33.33%"
2479
- ];
2480
- case "4": return [
2481
- "25%",
2482
- "25%",
2483
- "25%",
2484
- "25%"
2485
- ];
2486
- case "1-2": return ["33.33%", "66.67%"];
2487
- case "2-1": return ["66.67%", "33.33%"];
2488
- case "1-3": return ["25%", "75%"];
2489
- case "3-1": return ["75%", "25%"];
2490
- case "1-2-1": return [
2491
- "25%",
2492
- "50%",
2493
- "25%"
2494
- ];
2495
- default: return ["100%"];
2496
- }
2497
- }), C = I(() => {
2473
+ let S = I(() => Ne(n.block).map((e) => `${e}%`)), C = I(() => {
2498
2474
  let e = S.value.length, t = [...(o.state.previewMode ? n.block : u.value).children];
2499
2475
  for (; t.length < e;) t.push([]);
2500
2476
  return t.slice(0, e);
@@ -2514,7 +2490,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2514
2490
  }
2515
2491
  let R = I(() => {
2516
2492
  if (o.state.previewMode) return !1;
2517
- let e = Fe(n.block);
2493
+ let e = ke(n.block);
2518
2494
  return e !== null && !e.applied && e.reason === "image";
2519
2495
  });
2520
2496
  function B(e) {
@@ -2524,10 +2500,10 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2524
2500
  return E(e).length === 0 && o.state.previewMode;
2525
2501
  }
2526
2502
  function K(e, t) {
2527
- y?.value || La(o, t, n.block.id, e);
2503
+ y?.value || Va(o, t, n.block.id, e);
2528
2504
  }
2529
2505
  function ne(e) {
2530
- return ji(e, _, t);
2506
+ return Fi(e, _, t);
2531
2507
  }
2532
2508
  function q(e, t) {
2533
2509
  y?.value || e.type !== "custom" || o.updateBlock(e.id, {
@@ -2535,7 +2511,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2535
2511
  dataSourceFetched: t.dataSourceFetched
2536
2512
  });
2537
2513
  }
2538
- return (t, u) => (c(), w("div", Oo, [R.value ? (c(), w("div", ko, [N("span", null, P(D(r).section.heroAddImage), 1)])) : k("", !0), N("div", { class: O(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(c(!0), w(U, null, p(C.value, (t, d) => (c(), w("div", {
2514
+ return (t, u) => (c(), w("div", Mo, [R.value ? (c(), w("div", No, [N("span", null, P(D(r).section.heroAddImage), 1)])) : k("", !0), N("div", { class: O(["tpl:flex tpl:gap-0", { "tpl:flex-col": T.value }]) }, [(c(!0), w(U, null, p(C.value, (t, d) => (c(), w("div", {
2539
2515
  key: d,
2540
2516
  class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2541
2517
  style: L({ width: T.value ? "100%" : S.value[d] })
@@ -2545,7 +2521,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2545
2521
  group: {
2546
2522
  name: "blocks",
2547
2523
  pull: !0,
2548
- put: (e, t, n) => D(Do)(n)
2524
+ put: (e, t, n) => D(jo)(n)
2549
2525
  },
2550
2526
  animation: 150,
2551
2527
  "ghost-class": "tpl-ghost",
@@ -2559,12 +2535,12 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2559
2535
  "tpl:min-h-[60px]": F(d),
2560
2536
  "tpl:min-h-[34px]": te(d)
2561
2537
  }]),
2562
- onUpdate: (e) => !D(y) && D(La)(D(o), E(d), n.block.id, d, e),
2538
+ onUpdate: (e) => !D(y) && D(Va)(D(o), E(d), n.block.id, d, e),
2563
2539
  onStart: (e) => M.value = d,
2564
2540
  onEnd: u[0] ||= (e) => M.value = null,
2565
2541
  "onUpdate:modelValue": (e) => K(d, e)
2566
2542
  }, {
2567
- default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(vo, {
2543
+ default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(So, {
2568
2544
  block: t,
2569
2545
  "display-block": D(s)(t),
2570
2546
  "is-selected": D(o).state.selectedBlockId === t.id,
@@ -2601,14 +2577,14 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2601
2577
  "onUpdate",
2602
2578
  "onStart",
2603
2579
  "onUpdate:modelValue"
2604
- ]), B(d) ? (c(), w("div", Ao, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
2580
+ ]), B(d) ? (c(), w("div", Po, [N("span", null, P(D(r).section.dropHere), 1)])) : k("", !0)], 6))), 128))], 2)]));
2605
2581
  }
2606
- }), Mo = ["width", "height"], No = [
2582
+ }), Io = ["width", "height"], Lo = [
2607
2583
  "d",
2608
2584
  "stroke",
2609
2585
  "stroke-opacity",
2610
2586
  "stroke-width"
2611
- ], Po = ["d", "fill"], Fo = /* @__PURE__ */ o({
2587
+ ], Ro = ["d", "fill"], zo = /* @__PURE__ */ o({
2612
2588
  __name: "SocialIconSvg",
2613
2589
  props: {
2614
2590
  platform: {},
@@ -2617,7 +2593,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2617
2593
  iconSize: {}
2618
2594
  },
2619
2595
  setup(e) {
2620
- let t = e, n = I(() => Fn[t.platform]), r = I(() => Ln[t.iconSize]), i = I(() => tt(t.platform, t.iconTone)), a = I(() => Ke(t.iconStyle, t.iconTone)), o = I(() => {
2596
+ let t = e, n = I(() => zn[t.platform]), r = I(() => Vn[t.iconSize]), i = I(() => ge(t.platform, t.iconTone)), a = I(() => ht(t.iconStyle, t.iconTone)), o = I(() => {
2621
2597
  let e = {
2622
2598
  display: "inline-flex",
2623
2599
  alignItems: "center",
@@ -2655,7 +2631,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2655
2631
  };
2656
2632
  default: return e;
2657
2633
  }
2658
- }), s = I(() => Me(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
2634
+ }), s = I(() => Ee(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
2659
2635
  function u(e) {
2660
2636
  let t = `${e.width / 2 * r.value / 24}px`, n = Math.round(e.opacity * 255).toString(16).padStart(2, "0"), i = `${e.color}${n}`;
2661
2637
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -2676,15 +2652,15 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2676
2652
  "stroke-opacity": a.value.opacity,
2677
2653
  "stroke-width": a.value.width / s.value,
2678
2654
  "stroke-linejoin": "round"
2679
- }, null, 8, No)) : k("", !0), N("path", {
2655
+ }, null, 8, Lo)) : k("", !0), N("path", {
2680
2656
  d: n.value.path,
2681
2657
  fill: d.value
2682
- }, null, 8, Po)], 8, Mo))], 4));
2658
+ }, null, 8, Ro)], 8, Io))], 4));
2683
2659
  }
2684
- }), Io = { class: "tpl:w-full" }, Lo = ["href"], Ro = {
2660
+ }), Bo = { class: "tpl:w-full" }, Vo = ["href"], Ho = {
2685
2661
  key: 1,
2686
2662
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
2687
- }, zo = /* @__PURE__ */ o({
2663
+ }, Uo = /* @__PURE__ */ o({
2688
2664
  __name: "SocialIconsBlock",
2689
2665
  props: {
2690
2666
  block: {},
@@ -2697,7 +2673,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2697
2673
  gap: `${t.block.spacing}px`,
2698
2674
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2699
2675
  })), i = I(() => t.block.icons.length > 0);
2700
- return (t, a) => (c(), w("div", Io, [i.value ? (c(), w("div", {
2676
+ return (t, a) => (c(), w("div", Bo, [i.value ? (c(), w("div", {
2701
2677
  key: 0,
2702
2678
  style: L(r.value)
2703
2679
  }, [(c(!0), w(U, null, p(e.block.icons, (t) => (c(), w("a", {
@@ -2705,7 +2681,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2705
2681
  href: t.url || "#",
2706
2682
  class: "tpl:cursor-default",
2707
2683
  onClick: a[0] ||= M(() => {}, ["prevent"])
2708
- }, [W(Fo, {
2684
+ }, [W(zo, {
2709
2685
  platform: t.platform,
2710
2686
  "icon-style": e.block.iconStyle,
2711
2687
  "icon-tone": e.block.iconTone,
@@ -2715,46 +2691,46 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2715
2691
  "icon-style",
2716
2692
  "icon-tone",
2717
2693
  "icon-size"
2718
- ])], 8, Lo))), 128))], 4)) : (c(), w("div", Ro, [W(D(sr), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
2694
+ ])], 8, Vo))), 128))], 4)) : (c(), w("div", Ho, [W(D(dr), { size: 16 }), N("span", null, P(D(n).social.addIcons), 1)]))]));
2719
2695
  }
2720
- }), Bo = { class: "tpl:w-full" }, Vo = {
2696
+ }), Wo = { class: "tpl:w-full" }, Go = {
2721
2697
  key: 0,
2722
2698
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2723
2699
  style: {
2724
2700
  "background-color": "var(--tpl-bg-hover)",
2725
2701
  color: "var(--tpl-text-dim)"
2726
2702
  }
2727
- }, Ho = /* @__PURE__ */ o({
2703
+ }, Ko = /* @__PURE__ */ o({
2728
2704
  __name: "SpacerBlock",
2729
2705
  props: {
2730
2706
  block: {},
2731
2707
  viewport: {}
2732
2708
  },
2733
2709
  setup(e) {
2734
- let t = e, n = on(vn, "SpacerBlock"), r = I(() => ({
2710
+ let t = e, n = xn(Sn, "SpacerBlock"), r = I(() => ({
2735
2711
  height: `${t.block.height}px`,
2736
2712
  minHeight: `${t.block.height}px`,
2737
2713
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2738
2714
  }));
2739
- return (t, i) => (c(), w("div", Bo, [N("div", {
2715
+ return (t, i) => (c(), w("div", Wo, [N("div", {
2740
2716
  style: L(r.value),
2741
2717
  class: O(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:box-border tpl:border-y tpl:border-x-0 tpl:border-dashed": !D(n).state.previewMode }])
2742
- }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Vo, P(e.block.height) + "px ", 1))], 6)]));
2718
+ }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Go, P(e.block.height) + "px ", 1))], 6)]));
2743
2719
  }
2744
- }), Uo = { class: "tpl:w-full" }, Wo = { key: 0 }, Go = [
2720
+ }), qo = { class: "tpl:w-full" }, Jo = { key: 0 }, Yo = [
2745
2721
  "aria-label",
2746
2722
  "contenteditable",
2747
2723
  "data-placeholder",
2748
2724
  "onBlur"
2749
- ], Ko = [
2725
+ ], Xo = [
2750
2726
  "aria-label",
2751
2727
  "contenteditable",
2752
2728
  "data-placeholder",
2753
2729
  "onBlur"
2754
- ], qo = {
2730
+ ], Zo = {
2755
2731
  key: 1,
2756
2732
  class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
2757
- }, Jo = /*#__PURE__*/ yr(/* @__PURE__ */ o({
2733
+ }, Qo = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
2758
2734
  __name: "TableBlock",
2759
2735
  props: {
2760
2736
  block: {},
@@ -2768,7 +2744,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2768
2744
  updated(e, t) {
2769
2745
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2770
2746
  }
2771
- }, n = e, { t: r } = G(), i = on(vn, "TableBlock"), a = on(Jt, "TableBlock"), o = g(Ut, null), s = I(() => n.block.rows.length > 0), l = I(() => {
2747
+ }, n = e, { t: r } = G(), i = xn(Sn, "TableBlock"), a = xn(Zt, "TableBlock"), o = g(Kt, null), s = I(() => n.block.rows.length > 0), l = I(() => {
2772
2748
  let e = {
2773
2749
  width: "100%",
2774
2750
  borderCollapse: "collapse",
@@ -2800,11 +2776,11 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2800
2776
  } : n);
2801
2777
  i.updateBlock(n.block.id, { rows: s });
2802
2778
  }
2803
- return (e, n) => (c(), w("div", Uo, [s.value ? (c(), w("table", {
2779
+ return (e, n) => (c(), w("div", qo, [s.value ? (c(), w("table", {
2804
2780
  key: 0,
2805
2781
  style: L(l.value),
2806
2782
  class: "tpl-table-editable"
2807
- }, [m.value ? (c(), w("thead", Wo, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
2783
+ }, [m.value ? (c(), w("thead", Jo, [N("tr", null, [(c(!0), w(U, null, p(m.value.cells, (e) => f((c(), w("th", {
2808
2784
  key: e.id,
2809
2785
  style: L(d.value),
2810
2786
  "aria-label": D(r).table.cellPlaceholder,
@@ -2813,7 +2789,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2813
2789
  onBlur: (t) => v(m.value.id, e.id, t),
2814
2790
  onKeydown: n[0] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2815
2791
  onClick: M(_, ["stop"])
2816
- }, null, 44, Go)), [[t, e.content]])), 128))])])) : k("", !0), N("tbody", null, [(c(!0), w(U, null, p(h.value, (e) => (c(), w("tr", { key: e.id }, [(c(!0), w(U, null, p(e.cells, (i) => f((c(), w("td", {
2792
+ }, null, 44, Yo)), [[t, e.content]])), 128))])])) : k("", !0), N("tbody", null, [(c(!0), w(U, null, p(h.value, (e) => (c(), w("tr", { key: e.id }, [(c(!0), w(U, null, p(e.cells, (i) => f((c(), w("td", {
2817
2793
  key: i.id,
2818
2794
  style: L(u.value),
2819
2795
  "aria-label": D(r).table.cellPlaceholder,
@@ -2822,9 +2798,9 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2822
2798
  onBlur: (t) => v(e.id, i.id, t),
2823
2799
  onKeydown: n[1] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2824
2800
  onClick: M(_, ["stop"])
2825
- }, null, 44, Ko)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", qo, [W(D(dr), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
2801
+ }, null, 44, Xo)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", Zo, [W(D(hr), { size: 16 }), N("span", null, P(D(r).table.empty), 1)]))]));
2826
2802
  }
2827
- }), [["__scopeId", "data-v-73b9f5e5"]]), Yo = /* @__PURE__ */ o({
2803
+ }), [["__scopeId", "data-v-73b9f5e5"]]), $o = /* @__PURE__ */ o({
2828
2804
  __name: "VideoPlayButton",
2829
2805
  props: { hoverEffect: {
2830
2806
  type: Boolean,
@@ -2841,7 +2817,7 @@ var Oo = { class: "tpl:relative tpl:w-full" }, ko = {
2841
2817
  }
2842
2818
  });
2843
2819
  // src/utils/videoThumbnail.ts
2844
- function Xo(e) {
2820
+ function es(e) {
2845
2821
  if (!e) return {
2846
2822
  platform: "unknown",
2847
2823
  videoId: null,
@@ -2873,24 +2849,24 @@ function Xo(e) {
2873
2849
  thumbnailUrl: null
2874
2850
  };
2875
2851
  }
2876
- function Zo(e, t) {
2877
- return t || Xo(e).thumbnailUrl;
2852
+ function ts(e, t) {
2853
+ return t || es(e).thumbnailUrl;
2878
2854
  }
2879
2855
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2880
- var Qo = ["src", "alt"], $o = {
2856
+ var ns = ["src", "alt"], rs = {
2881
2857
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2882
2858
  style: { opacity: "0.7" }
2883
- }, es = ["href"], ts = ["src", "alt"], ns = ["src", "alt"], rs = {
2859
+ }, is = ["href"], as = ["src", "alt"], os = ["src", "alt"], ss = {
2884
2860
  key: 3,
2885
2861
  class: "tpl:flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
2886
- }, is = /* @__PURE__ */ o({
2862
+ }, cs = /* @__PURE__ */ o({
2887
2863
  __name: "VideoBlock",
2888
2864
  props: {
2889
2865
  block: {},
2890
2866
  viewport: {}
2891
2867
  },
2892
2868
  setup(e) {
2893
- let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => we(t.block.url, r) || we(t.block.thumbnailUrl, r)), a = An(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = An(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Zo(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
2869
+ let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => Ae(t.block.url, r) || Ae(t.block.thumbnailUrl, r)), a = Pn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Pn(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : ts(t.block.url)), l = I(() => ({ textAlign: t.block.align })), u = I(() => {
2894
2870
  let e = t.block.align;
2895
2871
  return {
2896
2872
  maxWidth: "100%",
@@ -2900,7 +2876,7 @@ var Qo = ["src", "alt"], $o = {
2900
2876
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2901
2877
  marginRight: e === "center" ? "auto" : void 0
2902
2878
  };
2903
- }), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => we(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2879
+ }), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => Ae(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
2904
2880
  return (t, r) => (c(), w("div", {
2905
2881
  class: "tpl:w-full",
2906
2882
  style: L(l.value)
@@ -2913,16 +2889,16 @@ var Qo = ["src", "alt"], $o = {
2913
2889
  src: D(o),
2914
2890
  alt: e.block.alt,
2915
2891
  style: L(d.value)
2916
- }, null, 12, Qo), W(Yo)], 4)) : i.value ? (c(), w("div", {
2892
+ }, null, 12, ns), W($o)], 4)) : i.value ? (c(), w("div", {
2917
2893
  key: 1,
2918
2894
  class: "tpl:relative tpl:!flex tpl:box-border tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
2919
2895
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2920
- }, [W(D(ur), {
2896
+ }, [W(D(mr), {
2921
2897
  size: 36,
2922
2898
  "stroke-width": 1.5,
2923
2899
  class: "tpl:text-[var(--tpl-primary)]",
2924
2900
  style: { opacity: "0.5" }
2925
- }), N("span", $o, [W(Yi, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(U, { key: 2 }, [e.block.url ? (c(), w("a", {
2901
+ }), N("span", rs, [W($i, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (c(), w(U, { key: 2 }, [e.block.url ? (c(), w("a", {
2926
2902
  key: 0,
2927
2903
  href: e.block.url,
2928
2904
  target: "_blank",
@@ -2935,7 +2911,7 @@ var Qo = ["src", "alt"], $o = {
2935
2911
  src: s.value,
2936
2912
  alt: e.block.alt,
2937
2913
  style: L(d.value)
2938
- }, null, 12, ts), W(Yo, { "hover-effect": "" })], 12, es)) : (c(), w("div", {
2914
+ }, null, 12, as), W($o, { "hover-effect": "" })], 12, is)) : (c(), w("div", {
2939
2915
  key: 1,
2940
2916
  class: "tpl:relative tpl:inline-block",
2941
2917
  style: L(u.value)
@@ -2944,53 +2920,53 @@ var Qo = ["src", "alt"], $o = {
2944
2920
  src: s.value,
2945
2921
  alt: e.block.alt,
2946
2922
  style: L(d.value)
2947
- }, null, 12, ns), W(Yo)], 4))], 64)) : (c(), w("div", rs, [W(D(ur), {
2923
+ }, null, 12, os), W($o)], 4))], 64)) : (c(), w("div", ss, [W(D(mr), {
2948
2924
  size: 40,
2949
2925
  "stroke-width": 1.5,
2950
2926
  class: "tpl:text-[var(--tpl-border-light)]"
2951
2927
  }), N("span", null, P(D(n).video.addVideo), 1)]))], 4));
2952
2928
  }
2953
- }), as = {
2954
- section: jo,
2955
- title: bo,
2956
- paragraph: Ia,
2957
- image: ka,
2958
- button: Zi,
2959
- divider: da,
2960
- video: is,
2961
- social: zo,
2962
- menu: Na,
2963
- table: Jo,
2964
- spacer: Ho,
2965
- html: _a,
2966
- countdown: b(() => import("./CountdownBlock-DGgnPUlu.js"))
2929
+ }), ls = {
2930
+ section: Fo,
2931
+ title: wo,
2932
+ paragraph: Ba,
2933
+ image: Na,
2934
+ button: ta,
2935
+ divider: ha,
2936
+ video: cs,
2937
+ social: Uo,
2938
+ menu: La,
2939
+ table: Qo,
2940
+ spacer: Ko,
2941
+ html: xa,
2942
+ countdown: b(() => import("./CountdownBlock--hlKE2aj.js"))
2967
2943
  };
2968
- function os(t) {
2969
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => Be(Be(Be(oi(i), Ei(n.content.value.settings?.locale)), Ie(n.content.value.settings) === "rtl" ? {
2944
+ function us(t) {
2945
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => Ue(Ue(Ue(ui(i), Ai(n.content.value.settings?.locale)), He(n.content.value.settings) === "rtl" ? {
2970
2946
  title: { textAlign: "right" },
2971
2947
  table: { textAlign: "right" }
2972
2948
  } : {}), r.blockDefaults ?? {}));
2973
2949
  n.setUiTheme(r.uiTheme ?? "auto");
2974
- let { resolvedTheme: l } = Zr(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Ar({
2950
+ let { resolvedTheme: l } = ti(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Pr({
2975
2951
  themeOverrides: f,
2976
2952
  resolvedTheme: l,
2977
2953
  extraStyles: () => ({
2978
2954
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
2979
2955
  ...t.themeExtraStyles?.()
2980
2956
  })
2981
- }), m = t.history ?? wn({
2957
+ }), m = t.history ?? On({
2982
2958
  content: n.content,
2983
2959
  setContent: (e, t) => n.setContent(e, t)
2984
2960
  });
2985
- t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : On(n, m);
2986
- let h = Un({
2961
+ t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : Mn(n, m);
2962
+ let h = qn({
2987
2963
  addBlock: n.addBlock,
2988
2964
  removeBlock: n.removeBlock,
2989
2965
  updateBlock: n.updateBlock,
2990
2966
  selectBlock: n.selectBlock,
2991
2967
  findBlockLocation: n.findBlockLocation,
2992
2968
  blockDefaults: () => c.value
2993
- }), g = Dn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? kn({
2969
+ }), g = jn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Nn({
2994
2970
  content: n.content,
2995
2971
  isDirty: () => n.state.isDirty,
2996
2972
  ...t.autoSaveOptions
@@ -2998,27 +2974,27 @@ function os(t) {
2998
2974
  _ && (y = u(m.isNavigating, (e) => {
2999
2975
  e ? _.pause() : _.resume();
3000
2976
  }));
3001
- let b = Xr(n, {
2977
+ let b = ei(n, {
3002
2978
  t: o,
3003
2979
  format: s
3004
- }, r.customBlocks ?? []), x = ht(r.colors);
2980
+ }, r.customBlocks ?? []), x = vt(r.colors);
3005
2981
  if (x.allowCustomIgnored && $.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && $.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
3006
- let e = ai(x.presets, r.blockDefaults, r.templateDefaults);
2982
+ let e = li(x.presets, r.blockDefaults, r.templateDefaults);
3007
2983
  e.length > 0 && $.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
3008
2984
  }
3009
- let S = Wn(r.templateSettings);
3010
- for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Gn.join(", ")}) — skipping it.`);
3011
- let w = wr();
3012
- ni(w, as);
2985
+ let S = Jn(r.templateSettings);
2986
+ for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${Yn.join(", ")}) — skipping it.`);
2987
+ let w = Or();
2988
+ oi(w, ls);
3013
2989
  let T = /* @__PURE__ */ new Set();
3014
2990
  function E(e) {
3015
2991
  for (let t of e) {
3016
- w.registerCustom(t, la);
3017
- for (let e of Di(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
2992
+ w.registerCustom(t, pa);
2993
+ for (let e of ji(t, x)) T.has(e.id) || (T.add(e.id), $.warn(e.message));
3018
2994
  }
3019
2995
  }
3020
2996
  r.customBlocks?.length && E(r.customBlocks);
3021
- let D = Vr();
2997
+ let D = Gr();
3022
2998
  if (C() && v(D.dispose), t.containerEl) {
3023
2999
  let n = t.containerEl;
3024
3000
  e(document, "pointerdown", (e) => {
@@ -3031,7 +3007,7 @@ function os(t) {
3031
3007
  e ? e.save() : _?.flush();
3032
3008
  }
3033
3009
  function ee(e) {
3034
- D.isActive() && ki(e, {
3010
+ D.isActive() && Ni(e, {
3035
3011
  history: m,
3036
3012
  selectBlock: (e) => n.selectBlock(e),
3037
3013
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -3044,45 +3020,45 @@ function os(t) {
3044
3020
  }
3045
3021
  e(document, "keydown", ee);
3046
3022
  let k = H(null), A = t.editorRoot ?? document;
3047
- d(xn, A), d(dn, k), d(wt, /* @__PURE__ */ new Map()), d(tn, i), d(vn, n), d(bn, m), d(mn, h), d(sn, g), d(Jt, a), d(pn, p), d(hn, l), d(Yt, c), d(ln, r.locale), d(an, w), d($t, r.customBlocks ?? []), d(At, r.paletteBlocks), d(Lt, ri(r.htmlBlockPreview)), d(Rt, r.layout), d(bt, r.sectionWrapper), d(un, x), d(cn, S.fields), d(Qt, Qr(n.content, w));
3048
- let j = it(r.mergeTags?.syntax);
3023
+ d(Tn, A), d(hn, k), d(Dt, /* @__PURE__ */ new Map()), d(Xt, i), d(Sn, n), d(wn, m), d(vn, h), d(dn, g), d(Zt, a), d(on, p), d($t, l), d(Qt, c), d(yn, r.locale), d(ln, w), d(rn, r.customBlocks ?? []), d(Nt, r.paletteBlocks), d(Bt, si(r.htmlBlockPreview)), d(Vt, r.layout), d(Ct, r.sectionWrapper), d(mn, x), d(_n, S.fields), d(nn, ni(n.content, w));
3024
+ let j = st(r.mergeTags?.syntax);
3049
3025
  for (let e of ["opener", "closer"]) {
3050
3026
  let t = j[e];
3051
3027
  typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
3052
3028
  }
3053
- typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Ee(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
3029
+ typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Me(j) === null && $.warn("config.mergeTags.syntax.closer has no effect without an opener — set opener to turn on autocomplete for this syntax.");
3054
3030
  let M = R(r.mergeTags?.tags ?? []);
3055
3031
  function N(e) {
3056
3032
  Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
3057
3033
  }
3058
- d(Ft, M), d(St, j), d(Et, r.mergeTags?.onRequest ?? null), d(Tt, r.mergeTags?.autocomplete !== !1), d(Sn, r.mergeTags?.showRawValue !== !1);
3059
- let P = H(Te(r.mergeTags?.tags ?? []));
3060
- d(It, P);
3061
- let F = Wr({
3034
+ d(Rt, M), d(Tt, j), d(kt, r.mergeTags?.onRequest ?? null), d(Ot, r.mergeTags?.autocomplete !== !1), d(En, r.mergeTags?.showRawValue !== !1);
3035
+ let P = H(je(r.mergeTags?.tags ?? []));
3036
+ d(zt, P);
3037
+ let F = Jr({
3062
3038
  resolvePreview: r.resolvePreview,
3063
3039
  surface: "preview",
3064
3040
  getContent: () => {
3065
3041
  let e = n.content.value;
3066
3042
  if (!n.state.previewMode) return e;
3067
- let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = ae(e, t);
3068
- return r.layout ? Xe(ae(r.layout, t, { missing: "default" }), i) : i;
3043
+ let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = We(e, t);
3044
+ return r.layout ? rt(We(r.layout, t, { missing: "default" }), i) : i;
3069
3045
  },
3070
3046
  isActive: () => n.state.previewMode,
3071
3047
  getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
3072
3048
  });
3073
- d(kt, F), d(Wt, r.resolvePreview);
3049
+ d(Mt, F), d(qt, r.resolvePreview);
3074
3050
  let L = null;
3075
- d(Ht, (e) => (L = e, () => {
3051
+ d(Gt, (e) => (L = e, () => {
3076
3052
  L === e && (L = null);
3077
3053
  }));
3078
3054
  let z = () => (L ?? F.refresh)(), B = I(() => !(n.state.previewMode && F.isConfigured));
3079
- d(Kt, B);
3080
- let V = Gr();
3081
- d(Ot, V), d(jt, H(!1)), d(Nt, H(!1)), d(nn, r.logicTags?.tags ?? []), d(xt, r.logicTags?.pairs ?? []), d(zt, r.logicTags?.onRequest ?? null), d(Mt, Kr()), d(Vt, r.onRequestMedia ?? null), d(_n, r.canDropMedia ?? null), d(Ct, r.resolveImageUrl ? Vn(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && $.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), d(Gt, r.displayConditions?.conditions ?? []), d(fn, r.displayConditions?.allowCustom ?? !1), d(Dt, r.displayConditions?.onRequest ?? null), d(Zt, t.capabilities ?? {}), d(yn, b);
3082
- let U = qr(r.lint) ? null : Yr({
3055
+ d(Yt, B);
3056
+ let V = Yr();
3057
+ d(jt, V), d(Pt, H(!1)), d(It, H(!1)), d(sn, r.logicTags?.tags ?? []), d(wt, r.logicTags?.pairs ?? []), d(Ht, r.logicTags?.onRequest ?? null), d(Ft, Xr()), d(Wt, r.onRequestMedia ?? null), d(bn, r.canDropMedia ?? null), d(Et, r.resolveImageUrl ? Gn(r.resolveImageUrl) : null), r.displayConditions?.onRequest && (r.displayConditions.conditions !== void 0 || r.displayConditions.allowCustom !== void 0) && $.warn("config.displayConditions.onRequest replaces the built-in condition list — conditions and allowCustom are ignored."), d(Jt, r.displayConditions?.conditions ?? []), d(gn, r.displayConditions?.allowCustom ?? !1), d(At, r.displayConditions?.onRequest ?? null), d(en, t.capabilities ?? {}), d(Cn, b);
3058
+ let U = Zr(r.lint) ? null : $r({
3083
3059
  content: n.content,
3084
3060
  get options() {
3085
- return Hr({
3061
+ return Kr({
3086
3062
  ...r,
3087
3063
  content: n.content.value,
3088
3064
  contentLocale: n.activeLocale?.value ?? void 0
@@ -3094,7 +3070,7 @@ function os(t) {
3094
3070
  updateSettings: n.updateSettings,
3095
3071
  removeBlock: n.removeBlock
3096
3072
  });
3097
- d(gn, U);
3073
+ d(fn, U);
3098
3074
  function W() {
3099
3075
  y?.(), U?.destroy(), _?.destroy(), m.destroy();
3100
3076
  }
@@ -3125,14 +3101,14 @@ function os(t) {
3125
3101
  };
3126
3102
  }
3127
3103
  // src/composables/useSmallScreenNotice.ts
3128
- var ss = "(max-width: 767px)";
3129
- function cs(e) {
3130
- let n = t(ss);
3104
+ var ds = "(max-width: 767px)";
3105
+ function fs(e) {
3106
+ let n = t(ds);
3131
3107
  return {
3132
3108
  isSmallScreen: n,
3133
3109
  showNotice: I(() => (F(e) ?? !0) && n.value)
3134
3110
  };
3135
3111
  }
3136
- export { Si as A, Or as B, Gi as C, qi as D, Ai as E, _i as F, Sr as H, Wr as I, Hr as L, bi as M, yi as N, ji as O, vi as P, Lr as R, Ii as S, Vi as T, Cr as V, da as _, Ho as a, Zi as b, xo as c, vo as d, La as f, _a as g, ka as h, Jo as i, xi as j, mi as k, wo as l, Na as m, os as n, zo as o, Ia as p, is as r, jo as s, cs as t, bo as u, la as v, Bi as w, Ni as x, ea as y, Fr as z };
3112
+ export { Ei as A, Mr as B, Yi as C, Zi as D, Pi as E, xi as F, Er as H, Jr as I, Kr as L, wi as M, Ci as N, Fi as O, Si as P, Vr as R, Bi as S, Gi as T, Dr as V, ha as _, Ko as a, ta as b, To as c, So as d, Va as f, xa as g, Na as h, Qo as i, Ti as j, vi as k, Oo as l, La as m, us as n, Uo as o, Ba as p, cs as r, Fo as s, fs as t, wo as u, pa as v, Wi as w, Li as x, ia as y, zr as z };
3137
3113
 
3138
- //# sourceMappingURL=composables-Cp6gZ7qV.js.map
3114
+ //# sourceMappingURL=composables-Brr4m0Sg.js.map