@templatical/editor 0.59.2 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/dist/{AiAltTextPopover-BhWHOOKX.js → AiAltTextPopover-DiIaqDtB.js} +1 -1
  2. package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-DIe0WBbj.js} +1 -1
  3. package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-aj2TPO9F.js} +8 -8
  4. package/dist/{AiPanels-C8M7q_vM.js → AiPanels-CRM3jf82.js} +1 -1
  5. package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-F3GyXBsk.js} +8 -8
  6. package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DlhA_I6J.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DYspUXMO.js} +19 -44
  8. package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-CAMn545-.js} +3 -3
  9. package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-CnfS8BQy.js} +1 -1
  10. package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-DufLdLQP.js} +1 -1
  11. package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-C2hFFs0o.js} +1 -1
  12. package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-CgEwxt2T.js} +10 -10
  13. package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-CNqYDevp.js} +4 -4
  14. package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-cPKhimE9.js} +9 -9
  15. package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-zxlpmw2x.js} +12 -12
  16. package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-PIfpvCCI.js} +2 -2
  17. package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-DqTkGJSR.js} +16 -16
  18. package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
  19. package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
  20. package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-Jly1Pw0v.js} +1 -1
  21. package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-5kaFLRAm.js} +4 -4
  22. package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CCfirhcR.js} +5 -5
  23. package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-DTdnxgDZ.js} +43 -43
  24. package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-cUYu3Xqs.js} +3 -3
  25. package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-Aub9tOHF.js} +4 -4
  26. package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-D_ie3uIF.js} +7 -7
  27. package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-fhSnYT1l.js} +9 -9
  28. package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-CpWkCa8G.js} +2 -2
  30. package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-BJ4a8RBr.js} +8 -8
  31. package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-BEoapoDc.js} +8 -8
  32. package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-DgyzokCf.js} +1 -1
  33. package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor-BQoSPgOi.js} +9 -9
  34. package/dist/{Toolbar-BOf7Y862.js → Toolbar-KhPpWyX1.js} +857 -756
  35. package/dist/{TplModal-DAcXzBJh.js → TplModal-F_kA7luG.js} +1 -1
  36. package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-Bz4G8cNm.js} +5 -5
  37. package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
  38. package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-BeppXZyn.js} +1 -1
  39. package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-Ds7yfbhg.js} +3 -3
  40. package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-Do1QqDjg.js} +3 -3
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -3
  43. package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-CUzIaLRK.js} +2 -2
  44. package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
  45. package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-BXBlE71X.js} +2 -2
  46. package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
  47. package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-BKydciDQ.js} +2 -2
  48. package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-De-cIZ4p.js} +2 -2
  50. package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
  51. package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C9vBUTIB.js} +6 -6
  52. package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
  53. package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-B3CTTvgw.js} +2 -2
  54. package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-B4Bj--kc.js} +20 -45
  56. package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.js.map +1 -0
  57. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -1
  58. package/dist/cdn/chunks/{CloudPanels-D8fchoYt.js → CloudPanels-CQ75I3hQ.js} +3 -3
  59. package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
  60. package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CgLea-hu.js} +2 -2
  61. package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
  62. package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CjRcbebT.js} +2 -2
  63. package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
  64. package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-D_ud9GMN.js} +2 -2
  65. package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
  66. package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-CXn1EGAI.js} +2 -2
  67. package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
  68. package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
  69. package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BOyk_4k7.js} +5 -5
  70. package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
  71. package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-DOC94ZsH.js} +4 -4
  72. package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
  73. package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-DktneIpL.js} +7 -7
  74. package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
  75. package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-B2NgnHoP.js} +2 -2
  76. package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
  77. package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-CQ8RiOou.js} +5 -5
  78. package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
  79. package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
  80. package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
  81. package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
  82. package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
  83. package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-D7FZ0ca0.js} +2 -2
  84. package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
  85. package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-CySCCEDs.js} +3 -3
  86. package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
  87. package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-DJbWTYVH.js} +7 -7
  88. package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
  89. package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-DAQUWqQJ.js} +23 -23
  90. package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
  91. package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-COTRe_rM.js} +3 -3
  92. package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
  93. package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-DeWPMd9V.js} +4 -4
  94. package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
  95. package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-adQMbKR1.js} +6 -6
  96. package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
  97. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CGIFCRAx.js} +6 -6
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
  99. package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
  100. package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
  101. package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-DmleyUrn.js} +3 -3
  102. package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
  103. package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings-Csjef99q.js} +6 -6
  104. package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
  105. package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-ClkexOtF.js} +7 -7
  106. package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
  107. package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-DYEYzhU2.js} +2 -2
  108. package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
  109. package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-opvaIgVr.js} +8 -8
  110. package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
  111. package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
  112. package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-DbqkKRXy.js} +771 -670
  113. package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
  114. package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DLV5OeMD.js} +2 -2
  115. package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
  116. package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-DBd0zwjE.js} +2 -2
  117. package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
  118. package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
  119. package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
  120. package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-D-yHxWWY.js} +2 -2
  121. package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
  122. package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-Ce_k8m_x.js} +4 -4
  123. package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
  124. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
  125. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
  126. package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-Ce3NmK9v.js} +8 -1
  127. package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
  128. package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-Brr4m0Sg.js} +566 -591
  129. package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
  130. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-QPeg45XL.js} +3 -3
  131. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
  132. package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
  133. package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
  134. package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
  135. package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
  137. package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
  138. package/dist/cdn/chunks/en-DkulseE1.js +1 -0
  139. package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
  140. package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
  141. package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
  142. package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
  143. package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BpuyqKVY.js} +5 -5
  144. package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
  145. package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-D3MjrsgQ.js} +8 -1
  146. package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
  147. package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
  148. package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
  149. package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +7 -2
  150. package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
  151. package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
  152. package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
  153. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-B81BAWKT.js} +64 -64
  154. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
  155. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-CQuaMxuv.js} +2 -2
  156. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
  157. package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
  158. package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
  159. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-BdAjvU9I.js} +2 -2
  160. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
  161. package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-Df9dNe7I.js} +495 -517
  162. package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
  163. package/dist/cdn/chunks/{src-BmzzkUf7.js → src-B3v_3j9b.js} +436 -404
  164. package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
  165. package/dist/cdn/chunks/{src-DY2kMjoD.js → src-BHgVGOTi.js} +771 -667
  166. package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
  167. package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
  168. package/dist/cdn/chunks/src-C5V_yzAU.js.map +1 -0
  169. package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
  170. package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
  171. package/dist/cdn/chunks/useLocalizedDisplay-C3lIetmX.js +33 -0
  172. package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
  173. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-DOIlsGk8.js} +2 -2
  174. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
  175. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-DUNl364g.js} +2 -2
  176. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-DUNl364g.js.map} +1 -1
  177. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-ufGLu2Vt.js} +2 -2
  178. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-ufGLu2Vt.js.map} +1 -1
  179. package/dist/cdn/editor.js +109 -109
  180. package/dist/cdn/editor.js.map +1 -1
  181. package/dist/{check-ErKdPXG6.js → check-CWq6Nfjj.js} +1 -1
  182. package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
  183. package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
  184. package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
  185. package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
  186. package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
  187. package/dist/{composables-CFTH0Nqb.js → composables-5KJV0O9T.js} +914 -939
  188. package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-BdoKeYJi.js} +2 -2
  189. package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
  190. package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
  191. package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
  192. package/dist/dist-AyAOL8Bj.js +4 -0
  193. package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
  194. package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
  195. package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
  196. package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
  197. package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
  198. package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
  199. package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
  200. package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
  201. package/dist/dist-DkPTWQuO.js +4 -0
  202. package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
  203. package/dist/{dist-CMo4K5So.js → dist-DsA7NeIy.js} +798 -696
  204. package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
  205. package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
  206. package/dist/en-DwxgN_-Y.js +1 -0
  207. package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
  208. package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
  209. package/dist/{extensions-BPVackEE.js → extensions-DCJGAZ9z.js} +73 -73
  210. package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
  211. package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -3
  212. package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
  213. package/dist/index.d.ts +37 -7
  214. package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
  215. package/dist/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -1
  216. package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
  217. package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
  218. package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
  219. package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
  220. package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
  221. package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
  222. package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
  223. package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
  224. package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-D3GzENVB.js} +3 -3
  226. package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
  227. package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
  228. package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
  229. package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-BcbjlypU.js} +6 -6
  230. package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
  231. package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
  232. package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
  233. package/dist/{socialIcons-DBHv_ntg.js → socialIcons-By2LPWOQ.js} +561 -583
  234. package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
  235. package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
  236. package/dist/templatical-editor.js +139 -139
  237. package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
  238. package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
  239. package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
  240. package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
  241. package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
  242. package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-f0SJ1Cd2.js} +1 -1
  243. package/dist/{useMergeTag-Bams_kam.js → useMergeTag-0-EudwkV.js} +3 -3
  244. package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-CtM_ydOS.js} +1 -1
  245. package/dist/withCurrentFont-BOg3jmCT.js +18 -0
  246. package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.js} +1 -1
  247. package/package.json +22 -22
  248. package/dist/cdn/chunks/AiAltTextPopover-CcX_OMUU.js.map +0 -1
  249. package/dist/cdn/chunks/AiAltTextReview-Dmm3h0jd.js.map +0 -1
  250. package/dist/cdn/chunks/AiChatPanel-DV23DJ-2.js.map +0 -1
  251. package/dist/cdn/chunks/AiPanels-CxhOpMAp.js.map +0 -1
  252. package/dist/cdn/chunks/AiRewriteMenu-87-O514r.js.map +0 -1
  253. package/dist/cdn/chunks/BlockIssueBadge-Dp06vQd3.js.map +0 -1
  254. package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +0 -1
  255. package/dist/cdn/chunks/CloudPanels-D8fchoYt.js.map +0 -1
  256. package/dist/cdn/chunks/CollaborationNotices-DNEs3g9B.js.map +0 -1
  257. package/dist/cdn/chunks/CollaboratorBar-CN6XAlbn.js.map +0 -1
  258. package/dist/cdn/chunks/CommentsPanel-CxZ1kFcK.js.map +0 -1
  259. package/dist/cdn/chunks/CommentsSidebar-DCr2mV8b.js.map +0 -1
  260. package/dist/cdn/chunks/CountdownToolbar-CUTbVPPV.js.map +0 -1
  261. package/dist/cdn/chunks/IssuesPanel-BhcSzwuL.js.map +0 -1
  262. package/dist/cdn/chunks/LanguageMenu-6wGhkyFT.js.map +0 -1
  263. package/dist/cdn/chunks/LocaleNotices-Br92Xueo.js.map +0 -1
  264. package/dist/cdn/chunks/LogicTagInsertButton-r2EVUtDU.js.map +0 -1
  265. package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
  266. package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
  267. package/dist/cdn/chunks/MergeTagInput-Dh3N6CEV.js.map +0 -1
  268. package/dist/cdn/chunks/MergeTagModeToggle-D6u3hMrI.js.map +0 -1
  269. package/dist/cdn/chunks/MergeTagTextarea-BpVtpiNL.js.map +0 -1
  270. package/dist/cdn/chunks/ParagraphEditor-DGJmPAC1.js.map +0 -1
  271. package/dist/cdn/chunks/RestoreVersionDialog-D5qeCa0F.js.map +0 -1
  272. package/dist/cdn/chunks/RichTextEditorContent-DyGiXKKI.js.map +0 -1
  273. package/dist/cdn/chunks/SaveBlockDialog-B0TJYxd8.js.map +0 -1
  274. package/dist/cdn/chunks/SavedBlocksBrowserModal-D8Ly7LrA.js.map +0 -1
  275. package/dist/cdn/chunks/SavedBlocksPanels-Co1cbWR8.js.map +0 -1
  276. package/dist/cdn/chunks/SavedBlocksPickBar-DNtVbpm-.js.map +0 -1
  277. package/dist/cdn/chunks/TemplateSettings-BRc878ZF.js.map +0 -1
  278. package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +0 -1
  279. package/dist/cdn/chunks/TestEmailPanel-vKvruW_r.js.map +0 -1
  280. package/dist/cdn/chunks/TitleEditor-BI-9Nnj3.js.map +0 -1
  281. package/dist/cdn/chunks/Toolbar-CYnnArxv.js.map +0 -1
  282. package/dist/cdn/chunks/TplModal-B3nZeGWK.js.map +0 -1
  283. package/dist/cdn/chunks/VersionHistoryMenu-CMGfAKuV.js.map +0 -1
  284. package/dist/cdn/chunks/VersionHistoryPanels-Bb2ouQg7.js.map +0 -1
  285. package/dist/cdn/chunks/VersionPreviewBanner-573UP-g4.js.map +0 -1
  286. package/dist/cdn/chunks/WrapperBlock-DVu632LD.js.map +0 -1
  287. package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
  288. package/dist/cdn/chunks/composables-DY3anqHO.js.map +0 -1
  289. package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
  290. package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
  291. package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
  292. package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
  293. package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
  294. package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
  295. package/dist/cdn/chunks/extensions-BWVlr8Ga.js.map +0 -1
  296. package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
  297. package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
  298. package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
  299. package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
  300. package/dist/cdn/chunks/socialIcons-kYhdXJ9P.js.map +0 -1
  301. package/dist/cdn/chunks/src-B7X7x_ST.js +0 -707
  302. package/dist/cdn/chunks/src-B7X7x_ST.js.map +0 -1
  303. package/dist/cdn/chunks/src-BmzzkUf7.js.map +0 -1
  304. package/dist/cdn/chunks/src-DY2kMjoD.js.map +0 -1
  305. package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
  306. package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +0 -33
  307. package/dist/dist-CkIeJEsa.js +0 -4
  308. package/dist/dist-eAgG-nCb.js +0 -4
  309. package/dist/en-DvCaYqiR.js +0 -1
  310. package/dist/useLocalizedDisplay-CbFM0cCV.js +0 -31
  311. package/dist/withCurrentFont-y0O5kOLW.js +0 -18
@@ -3,30 +3,30 @@ 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,
3
3
  import { t as te } from "./useEditorRoot-D0Lp2x4_.js";
4
4
  import { t as G } from "./useI18n-DPg6rPbu.js";
5
5
  import "./useCloudI18n-BTV9uu3c.js";
6
- import { t as K } from "./useMergeTag-y3bX8M_6.js";
7
- import { _ as ne, h as q, v as re, y as ie } from "./dist-BtWMy7UQ.js";
8
- import { $ as ae, $t as oe, A as J, B as Y, C as X, Cn as Z, D as se, E as ce, En as le, G as ue, H as Q, I as de, Jt as fe, K as pe, L as me, M as he, Mt as ge, N as _e, O as ve, P as ye, Q as be, R as xe, S as Se, Sn as Ce, T as we, Tn as Te, W as Ee, X as De, Y as Oe, Z as ke, _n as Ae, a as je, an as Me, at as Ne, b as Pe, bn as Fe, cn as Ie, ct as Le, d as Re, en as ze, et as Be, fn as Ve, ft as He, gn as Ue, gt as We, ht as Ge, i as Ke, it as qe, j as Je, ln as Ye, lt as Xe, mt as Ze, nt as Qe, ot as $e, p as et, q as tt, rt as nt, t as rt, tt as it, u as at, un as ot, ut as st, w as ct, wn as lt, x as ut, xn as dt, y as ft, yt as pt } from "./src-DY2kMjoD.js";
6
+ import { t as K } from "./useMergeTag-DUNl364g.js";
7
+ import { _ as ne, h as q, v as J, y as re } from "./dist-BtWMy7UQ.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 mt, c as ht, i as gt, n as _t, o as vt, t as yt } from "./usePopoverPosition-CBp9uwjV.js";
11
- import { n as bt } from "./useLocalizedDisplay-B5wMJLru.js";
12
- import { $ as xt, A as St, B as Ct, C as wt, D as Tt, F as Et, G as Dt, H as Ot, I as kt, J as At, K as jt, L as Mt, M as Nt, N as Pt, O as Ft, P as It, R as Lt, S as Rt, T as zt, U as Bt, V as Vt, W as Ht, X as Ut, Y as Wt, Z as Gt, _ as Kt, a as qt, at as Jt, b as Yt, c as Xt, ct as Zt, d as Qt, et as $t, g as en, h as tn, i as nn, it as rn, j as an, k as on, l as sn, lt as cn, m as ln, nt as un, ot as dn, p as fn, q as pn, r as mn, rt as hn, s as gn, st as _n, u as vn, ut as yn, v as bn, w as xn, x as Sn, y as Cn, z as wn } from "./keys-ywH4jHJ2.js";
13
- import { t as Tn } from "./useLogicTag-0wkSxy3z.js";
14
- import { B as En, C as Dn, F as On, I as kn, P as An, R as jn, T as Mn, _ as Nn, a as Pn, f as Fn, h as In, n as Ln, o as Rn, t as zn, u as Bn, v as Vn, w as Hn, x as Un, y as Wn, z as Gn } from "./socialIcons-kYhdXJ9P.js";
15
- import { r as Kn, t as qn } from "./templateSettingsFields-cjlP-jdw.js";
16
- import { r as Jn, t as Yn } from "./sanitizeHtml-CLRY8s2s.js";
17
- import { At as Xn, G as Zn, Mt as Qn, Nt as $n, Ot as er, St as tr, Ut as nr, V as rr, Wt as ir, X as ar, _t as or, d as sr, f as cr, k as lr, mt as ur, nt as dr, o as fr, y as pr, yt as mr } from "./icons-C7vjUBLn.js";
18
- import { t as hr } from "./LoadingTrack-o-89hApJ.js";
19
- import { t as gr } from "./languageName-DEEOhDWI.js";
20
- import { t as _r } from "./plural-CyxrJXL1.js";
21
- import { m as vr, w as yr, x as br } from "./styleConstants-Br6CIRoS.js";
22
- import { t as xr } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
23
- import { t as Sr } 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 Cr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
26
- function wr(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(Cr)).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,8 +55,8 @@ function wr(t, n) {
55
55
  });
56
56
  }
57
57
  // src/composables/useEmoji.ts
58
- function Tr() {
59
- let [e, t] = re(!1), n = R([]), r = !1;
58
+ function Dr() {
59
+ let [e, t] = J(!1), n = R([]), r = !1;
60
60
  v(() => {
61
61
  r = !0;
62
62
  }), u(e, async (e) => {
@@ -80,7 +80,7 @@ function Tr() {
80
80
  };
81
81
  }
82
82
  // src/composables/useBlockRegistry.ts
83
- function Er() {
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 Er() {
89
89
  let r = `custom:${t.type}`;
90
90
  e.value.set(r, {
91
91
  component: n,
92
- createBlock: () => Se(t),
92
+ createBlock: () => De(t),
93
93
  definition: t
94
94
  }), B(e);
95
95
  }
@@ -114,7 +114,7 @@ function Er() {
114
114
  let t = a(e.customType);
115
115
  if (!t) return o("Block definition not found");
116
116
  try {
117
- return await me(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 Er() {
133
133
  };
134
134
  }
135
135
  // src/composables/useFonts.ts
136
- var Dr = [
136
+ var kr = [
137
137
  {
138
138
  value: "Arial",
139
139
  label: "Arial"
@@ -162,19 +162,19 @@ var Dr = [
162
162
  value: "Courier New",
163
163
  label: "Courier New"
164
164
  }
165
- ], Or = "Arial, sans-serif";
166
- function kr(e) {
167
- if (e === void 0 || e === !0) return [...Dr];
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 = Dr.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: ${Dr.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 Ar(e) {
177
- let t = H(e?.customFonts ?? []), n = H(!1), r = kr(e?.builtIns), i = I(() => e?.defaultFallback ?? Or), 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,14 +185,14 @@ function Ar(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 ?? Or.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 Or;
195
+ return Ar;
196
196
  }
197
197
  let l = I(() => c());
198
198
  function u(e) {
@@ -239,7 +239,7 @@ function Ar(e) {
239
239
  };
240
240
  }
241
241
  // src/composables/useThemeStyles.ts
242
- var jr = {
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 jr = {
263
263
  dangerLight: "--tpl-danger-light",
264
264
  canvasBg: "--tpl-canvas-bg"
265
265
  };
266
- function Mr({ 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(jr)) {
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 Mr({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
274
274
  }) };
275
275
  }
276
276
  // src/utils/mergeTagNodeSpec.ts
277
- function Nr(e, t, n) {
278
- return ke(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: ue(e, n)
282
+ keyword: le(e, n)
283
283
  }
284
284
  } : {
285
285
  type: "mergeTagNode",
@@ -290,32 +290,32 @@ function Nr(e, t, n) {
290
290
  };
291
291
  }
292
292
  // src/utils/insertLogicTag.ts
293
- function Pr(e) {
293
+ function Ir(e) {
294
294
  return "before" in e && "after" in e;
295
295
  }
296
- function Fr(e, t, n) {
297
- if (!Pr(t)) {
298
- e.chain().focus().insertContent(Nr(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 = Nr(t.before, t.label, n), i = Nr(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 Ir(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 Lr(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) => Ir(vt(e.style.color)),
316
+ parseHTML: (e) => Rr(bt(e.style.color)),
317
317
  renderHTML: (e) => {
318
- let t = Ir(e.color);
318
+ let t = Rr(e.color);
319
319
  return t ? { style: `color: ${t}` } : {};
320
320
  }
321
321
  }
@@ -323,9 +323,9 @@ function Lr(e) {
323
323
  } });
324
324
  }
325
325
  // src/composables/useRichTextLinkDialog.ts
326
- function Rr(e, t = Q.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
- wr(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 Rr(e, t = Q.liquid, n = () => !0) {
336
336
  if (i.value) {
337
337
  let t = d(i.value);
338
338
  if (t !== null) {
339
- let n = Ir(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 Rr(e, t = Q.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 = Re(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 Rr(e, t = Q.liquid, n = () => !0) {
378
378
  };
379
379
  }
380
380
  // src/composables/useRichTextEditor.ts
381
- function zr(t) {
382
- let n = g(bn, null), r = ht(), i = g(Wt, 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: _ } = Tn(), v = g(Jt, null), y = (S(v) ? v.value : v)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", b = Oe(d), x = R(null), C = n?.content ? bt(n) : null, w = () => He(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 } = Rr(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();
@@ -452,10 +452,10 @@ function zr(t) {
452
452
  value: e.value
453
453
  }).run() : x.value?.commands.focus());
454
454
  }
455
- async function re() {
455
+ async function J() {
456
456
  if (!a.value) return;
457
457
  let e = await _();
458
- !B && a.value && (e && x.value ? Fr(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,
@@ -480,29 +480,29 @@ function zr(t) {
480
480
  closeLinkDialog: j,
481
481
  handleLinkKeydown: M,
482
482
  handleAddMergeTag: q,
483
- handleAddLogicTag: re
483
+ handleAddLogicTag: J
484
484
  };
485
485
  }
486
486
  // src/utils/activeEditorTracker.ts
487
- var Br = /* @__PURE__ */ new Set(), Vr = 0, Hr = 0;
488
- function Ur() {
489
- let e = ++Hr;
490
- return Br.add(e), Vr === 0 && (Vr = 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: () => Br.size <= 1 || Vr === e,
492
+ isActive: () => Hr.size <= 1 || Ur === e,
493
493
  claim: () => {
494
- Vr = e;
494
+ Ur = e;
495
495
  },
496
496
  dispose: () => {
497
- if (Br.delete(e), Vr === e) {
498
- let e = Array.from(Br);
499
- Vr = 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 Wr(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 Wr(e) {
511
511
  };
512
512
  }
513
513
  // src/composables/usePreviewResolution.ts
514
- var Gr = 500;
515
- function Kr(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 Kr(e) {
523
523
  let c = ++o;
524
524
  r.value = !0;
525
525
  let l = {
526
- content: Me(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 Kr(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 Kr(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
- }, Gr));
549
+ }, qr));
550
550
  }
551
551
  function f() {
552
552
  t && e.isActive() && (c(), l("refresh"));
@@ -579,7 +579,7 @@ function Kr(e) {
579
579
  };
580
580
  }
581
581
  // src/composables/useMergeTagPicker.ts
582
- function qr() {
582
+ function Yr() {
583
583
  let e = H(!1), t = H([]), n = H(null), r = null;
584
584
  function i(i, a) {
585
585
  if (r) {
@@ -609,7 +609,7 @@ function qr() {
609
609
  };
610
610
  }
611
611
  // src/composables/useLogicTagPicker.ts
612
- function Jr() {
612
+ function Xr() {
613
613
  let e = H(!1), t = H([]), n = H([]), r = null;
614
614
  function i(i, a) {
615
615
  if (r) {
@@ -639,23 +639,23 @@ function Jr() {
639
639
  };
640
640
  }
641
641
  // src/composables/useTemplateLint.ts
642
- function Yr(e) {
642
+ function Zr(e) {
643
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;
644
644
  }
645
- var Xr = !1;
646
- function Zr(e) {
645
+ var Qr = !1;
646
+ function $r(e) {
647
647
  let t = H([]), n = H(0), r = H(-1), i = u(e.content, () => {
648
648
  n.value++;
649
- }, { deep: !0 }), a = H(!1), o = H(!1), s = R(null), c = Yr(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;
650
650
  c || f();
651
651
  async function f() {
652
652
  try {
653
- let t = await import("./src-BmzzkUf7.js");
653
+ let t = await import("./src-B3v_3j9b.js");
654
654
  if (d) return;
655
- s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = ie(n, p, { debounce: e.debounce ?? 500 });
655
+ s.value = { lintTemplate: t.lintTemplate }, a.value = !0, p(), l = re(n, p, { debounce: e.debounce ?? 500 });
656
656
  } catch {
657
657
  if (d) return;
658
- o.value = !0, Xr || (Xr = !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."));
659
659
  }
660
660
  }
661
661
  function p() {
@@ -694,7 +694,7 @@ function Zr(e) {
694
694
  };
695
695
  }
696
696
  // src/composables/useKeyboardReorder.ts
697
- function Qr(e, t, n = []) {
697
+ function ei(e, t, n = []) {
698
698
  let r = H(null), i = H(""), a = null;
699
699
  function o(t) {
700
700
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -721,7 +721,7 @@ function Qr(e, t, n = []) {
721
721
  let i = o(r);
722
722
  if (!i) return "";
723
723
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
724
- return a ? Wn(a, t.t, n) : "";
724
+ return a ? Kn(a, t.t, n) : "";
725
725
  }
726
726
  function c(t, n) {
727
727
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -789,14 +789,14 @@ function Qr(e, t, n = []) {
789
789
  };
790
790
  }
791
791
  // src/composables/useUiTheme.ts
792
- function $r(e) {
792
+ function ti(e) {
793
793
  let n = t("(prefers-color-scheme: dark)");
794
794
  return { resolvedTheme: I(() => e.value === "auto" ? n.value ? "dark" : "light" : e.value) };
795
795
  }
796
796
  // src/composables/useCustomBlockStylesheets.ts
797
- function ei(e, t) {
797
+ function ni(e, t) {
798
798
  return I(() => {
799
- let n = ti(e.value.blocks);
799
+ let n = ri(e.value.blocks);
800
800
  if (n.size === 0) return [];
801
801
  let r = /* @__PURE__ */ new Set(), i = [];
802
802
  for (let e of n) {
@@ -808,59 +808,59 @@ function ei(e, t) {
808
808
  return i;
809
809
  });
810
810
  }
811
- function ti(e) {
811
+ function ri(e) {
812
812
  let t = /* @__PURE__ */ new Set();
813
- return ni(e, t), t;
813
+ return ii(e, t), t;
814
814
  }
815
- function ni(e, t) {
816
- for (let n of e) if (pt(n)) t.add(n.customType);
815
+ function ii(e, t) {
816
+ for (let n of e) if (mt(n)) t.add(n.customType);
817
817
  else if (n.type === "section") {
818
818
  let e = n.children;
819
819
  if (!e) continue;
820
- for (let n of e) ni(n, t);
821
- } else ge(n) && ni(n.children, t);
820
+ for (let n of e) ii(n, t);
821
+ } else ye(n) && ii(n.children, t);
822
822
  }
823
823
  // src/utils/registerBuiltInBlocks.ts
824
- var ri = [
824
+ var ai = [
825
825
  {
826
826
  type: "section",
827
- createBlock: ve
827
+ createBlock: xe
828
828
  },
829
829
  {
830
830
  type: "title",
831
- createBlock: _e
831
+ createBlock: be
832
832
  },
833
833
  {
834
834
  type: "paragraph",
835
- createBlock: se
835
+ createBlock: Q
836
836
  },
837
837
  {
838
838
  type: "image",
839
- createBlock: we
839
+ createBlock: Oe
840
840
  },
841
841
  {
842
842
  type: "button",
843
- createBlock: Pe
843
+ createBlock: Le
844
844
  },
845
845
  {
846
846
  type: "divider",
847
- createBlock: X
847
+ createBlock: Z
848
848
  },
849
849
  {
850
850
  type: "video",
851
- createBlock: ye
851
+ createBlock: Ce
852
852
  },
853
853
  {
854
854
  type: "social",
855
- createBlock: J
855
+ createBlock: ae
856
856
  },
857
857
  {
858
858
  type: "menu",
859
- createBlock: ce
859
+ createBlock: se
860
860
  },
861
861
  {
862
862
  type: "table",
863
- createBlock: he
863
+ createBlock: _e
864
864
  },
865
865
  {
866
866
  type: "spacer",
@@ -868,15 +868,15 @@ var ri = [
868
868
  },
869
869
  {
870
870
  type: "html",
871
- createBlock: ct
871
+ createBlock: ut
872
872
  },
873
873
  {
874
874
  type: "countdown",
875
- createBlock: ut
875
+ createBlock: dt
876
876
  }
877
877
  ];
878
- function ii(e, t) {
879
- for (let n of ri) {
878
+ function oi(e, t) {
879
+ for (let n of ai) {
880
880
  let r = t[n.type];
881
881
  r && e.registerBuiltIn(n.type, {
882
882
  component: r,
@@ -885,22 +885,22 @@ function ii(e, t) {
885
885
  }
886
886
  }
887
887
  // src/utils/resolveHtmlBlockPreview.ts
888
- function ai(e) {
888
+ function si(e) {
889
889
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
890
890
  }
891
891
  // src/utils/collectOffPaletteDefaults.ts
892
- function oi(e) {
892
+ function ci(e) {
893
893
  return typeof e == "object" && !!e && !Array.isArray(e);
894
894
  }
895
- function si(e, t, n) {
896
- let r = new Set(e.map((e) => mt(e))), i = [], a = (e, t) => {
897
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(mt(o)) && i.push(`${t}.${n}: ${o}`) : oi(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}`);
898
898
  }, o = t;
899
- for (let [e, t] of Object.entries(Ze)) {
899
+ for (let [e, t] of Object.entries(et)) {
900
900
  let n = o?.[e];
901
901
  a({
902
902
  ...t,
903
- ...oi(n) ? n : {}
903
+ ...ci(n) ? n : {}
904
904
  }, e);
905
905
  }
906
906
  return a({
@@ -909,7 +909,7 @@ function si(e, t, n) {
909
909
  }, "template"), i;
910
910
  }
911
911
  // src/utils/localizedBlockDefaults.ts
912
- function ci(e) {
912
+ function ui(e) {
913
913
  return {
914
914
  title: { content: `<p>${e.blockDefaults.title}</p>` },
915
915
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -917,63 +917,63 @@ function ci(e) {
917
917
  };
918
918
  }
919
919
  // src/i18n/index.ts
920
- var li = /* #__PURE__ */ Object.assign({
921
- "./locales/ca.ts": () => import("./ca-YfIxwO1G.js"),
922
- "./locales/da.ts": () => import("./da-CM6DCvRG.js"),
923
- "./locales/de.ts": () => import("./de-Dugz1zXC.js"),
924
- "./locales/en.ts": () => import("./en-BykoFuFY.js"),
925
- "./locales/es.ts": () => import("./es-DaWsTkpj.js"),
926
- "./locales/fr.ts": () => import("./fr-DqwQHtJo.js"),
927
- "./locales/ja.ts": () => import("./ja-BH4MS1Ye.js"),
928
- "./locales/nl.ts": () => import("./nl-BQl1_UHv.js"),
929
- "./locales/pt-BR.ts": () => import("./pt-BR-eyzmU9Vs.js")
930
- }), ui = /* #__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({
931
931
  "./locales/cloud/de.ts": () => import("./de-6M4JoHoD.js"),
932
932
  "./locales/cloud/en.ts": () => import("./en-FzUuJ8HW.js"),
933
933
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-Bp92Fc6J.js")
934
934
  });
935
- function di(e) {
935
+ function pi(e) {
936
936
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
937
937
  }
938
- var fi = di(li), pi = di(ui);
939
- function mi(e) {
938
+ var mi = pi(di), hi = pi(fi);
939
+ function gi(e) {
940
940
  return e.trim().replace(/_/g, "-").toLowerCase();
941
941
  }
942
- function hi(e, t) {
943
- let n = mi(e);
944
- return t.find((e) => mi(e) === n);
942
+ function _i(e, t) {
943
+ let n = gi(e);
944
+ return t.find((e) => gi(e) === n);
945
945
  }
946
- function gi(e) {
947
- return mi(e).split("-")[0];
946
+ function vi(e) {
947
+ return gi(e).split("-")[0];
948
948
  }
949
- function _i(e, t) {
950
- return hi(e, t) ?? hi(gi(e), t);
949
+ function yi(e, t) {
950
+ return _i(e, t) ?? _i(vi(e), t);
951
951
  }
952
- function vi(e, t) {
953
- return _i(e, t) ?? "en";
952
+ function bi(e, t) {
953
+ return yi(e, t) ?? "en";
954
954
  }
955
- async function yi(e) {
956
- let t = li[`./locales/${vi(e, fi)}.ts`];
955
+ async function xi(e) {
956
+ let t = di[`./locales/${bi(e, mi)}.ts`];
957
957
  return (await t()).default;
958
958
  }
959
- async function bi(e) {
960
- let t = ui[`./locales/cloud/${vi(e, pi)}.ts`];
959
+ async function Si(e) {
960
+ let t = fi[`./locales/cloud/${bi(e, hi)}.ts`];
961
961
  return (await t()).default;
962
962
  }
963
- function xi(e) {
964
- return _i(e, fi) !== void 0;
963
+ function Ci(e) {
964
+ return yi(e, mi) !== void 0;
965
965
  }
966
- function Si(e) {
967
- return _i(e, pi) !== void 0;
966
+ function wi(e) {
967
+ return yi(e, hi) !== void 0;
968
968
  }
969
- function Ci() {
970
- return [...fi];
969
+ function Ti() {
970
+ return [...mi];
971
971
  }
972
- function wi() {
973
- return [...pi];
972
+ function Ei() {
973
+ return [...hi];
974
974
  }
975
975
  // src/i18n/contentDefaults.ts
976
- var Ti = {
976
+ var Di = {
977
977
  en: {
978
978
  video: "Video",
979
979
  days: "Days",
@@ -1046,16 +1046,16 @@ var Ti = {
1046
1046
  seconds: "Sekunder",
1047
1047
  expired: "Dette tilbud er udløbet"
1048
1048
  }
1049
- }, Ei = new Map(Object.keys(Ti).map((e) => [e.toLowerCase(), e]));
1050
- function Di(e) {
1051
- if (!e) return Ti.en;
1052
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Ei.get(t);
1053
- if (n) return Ti[n];
1054
- let r = Ei.get(gi(t));
1055
- return r ? Ti[r] : Ti.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;
1056
1056
  }
1057
- function Oi(e) {
1058
- let t = Di(e);
1057
+ function Ai(e) {
1058
+ let t = ki(e);
1059
1059
  return {
1060
1060
  video: { alt: t.video },
1061
1061
  countdown: {
@@ -1068,9 +1068,9 @@ function Oi(e) {
1068
1068
  };
1069
1069
  }
1070
1070
  // src/utils/collectColorFieldIssues.ts
1071
- function ki(e, t) {
1071
+ function ji(e, t) {
1072
1072
  let n = [], r = (r, i) => {
1073
- let a = Vn(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}`;
1074
1074
  if (a.invalidPresets.length > 0 && n.push({
1075
1075
  id: s("invalid-presets"),
1076
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." : "")
@@ -1081,8 +1081,8 @@ function ki(e, t) {
1081
1081
  id: s("allow-custom-ignored"),
1082
1082
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1083
1083
  }), !a.allowCustom && a.presets.length > 0) {
1084
- let e = r.default ?? "", t = new Set(a.presets.map((e) => mt(e)));
1085
- e !== "" && !t.has(mt(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({
1086
1086
  id: s("off-palette-default"),
1087
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.`
1088
1088
  });
@@ -1093,7 +1093,7 @@ function ki(e, t) {
1093
1093
  return n;
1094
1094
  }
1095
1095
  // src/utils/keyboardShortcuts.ts
1096
- function Ai(e) {
1096
+ function Mi(e) {
1097
1097
  for (let t of e.composedPath()) {
1098
1098
  if (!(t instanceof HTMLElement)) continue;
1099
1099
  if (t.isContentEditable) return !0;
@@ -1102,14 +1102,14 @@ function Ai(e) {
1102
1102
  }
1103
1103
  return !1;
1104
1104
  }
1105
- function ji(e, t) {
1105
+ function Ni(e, t) {
1106
1106
  let n = e.metaKey || e.ctrlKey;
1107
1107
  if (n && e.key.toLowerCase() === "s") e.preventDefault(), t.onSave?.();
1108
1108
  else if (n && e.key.toLowerCase() === "z") {
1109
- if (Ai(e)) return;
1109
+ if (Mi(e)) return;
1110
1110
  e.preventDefault(), e.shiftKey ? t.history.redo() : t.history.undo();
1111
1111
  } else {
1112
- if (t.isPicking?.() && !Ai(e)) {
1112
+ if (t.isPicking?.() && !Mi(e)) {
1113
1113
  if (e.key === "Escape") {
1114
1114
  e.preventDefault(), t.onCancelPick?.();
1115
1115
  return;
@@ -1123,129 +1123,129 @@ function ji(e, t) {
1123
1123
  return;
1124
1124
  }
1125
1125
  }
1126
- e.key === "Escape" ? t.selectBlock(null) : (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ai(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()));
1127
1127
  }
1128
1128
  }
1129
1129
  // src/utils/blockComponentResolver.ts
1130
- function Mi(e, t) {
1130
+ function Pi(e, t) {
1131
1131
  let n = { fontFamily: t(e.fontFamily) };
1132
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;
1133
1133
  }
1134
- function Ni(e, t, n) {
1134
+ function Fi(e, t, n) {
1135
1135
  if (t) {
1136
1136
  let n = t.getComponent(e);
1137
1137
  if (n) return n;
1138
1138
  }
1139
1139
  return n[e.type] ?? null;
1140
1140
  }
1141
- var Pi = "--tpl-block-bg-layer", Fi = "--tpl-email-frame-width", Ii = "tpl-has-bg-image";
1142
- function Li(e, t) {
1141
+ var Ii = "--tpl-block-bg-layer", Li = "--tpl-email-frame-width", Ri = "tpl-has-bg-image";
1142
+ function zi(e, t) {
1143
1143
  if (t === null) return {};
1144
- let n = Ae(e);
1144
+ let n = me(e);
1145
1145
  if (n === null) return {};
1146
- let r = t?.trim(), i = r ? Ue(r) : n.url;
1146
+ let r = t?.trim(), i = r ? ue(r) : n.url;
1147
1147
  return {
1148
1148
  backgroundImage: `url("${i}")`,
1149
1149
  backgroundSize: n.size,
1150
1150
  backgroundPosition: n.position,
1151
1151
  backgroundRepeat: n.repeat,
1152
- [Pi]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1152
+ [Ii]: `url("${i}") ${n.position} / ${n.size} ${n.repeat}`
1153
1153
  };
1154
1154
  }
1155
- function Ri(e) {
1156
- return e && Pi in e ? Ii : void 0;
1155
+ function Bi(e) {
1156
+ return e && Ii in e ? Ri : void 0;
1157
1157
  }
1158
- var zi = {
1158
+ var Vi = {
1159
1159
  top: "flex-start",
1160
1160
  middle: "center",
1161
1161
  bottom: "flex-end"
1162
1162
  };
1163
- function Bi(e, t) {
1164
- let n = typeof e.height == "number" ? { minHeight: `${e.height}px` } : t !== void 0 && e.aspectRatio !== null ? { minHeight: `${Vi(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}` };
1165
1165
  return {
1166
1166
  display: "flex",
1167
1167
  flexDirection: "column",
1168
- justifyContent: zi[e.verticalAlign],
1168
+ justifyContent: Vi[e.verticalAlign],
1169
1169
  boxSizing: "border-box",
1170
1170
  ...n
1171
1171
  };
1172
1172
  }
1173
- function Vi(e, t) {
1173
+ function Ui(e, t) {
1174
1174
  return Math.max(1, Math.round(Math.max(1, Math.round(e)) * t));
1175
1175
  }
1176
- function Hi(e, t = {}) {
1176
+ function Wi(e, t = {}) {
1177
1177
  if (e.type === "wrapper") return {};
1178
1178
  let { padding: n, backgroundColor: r } = e.styles, i = {
1179
1179
  padding: `${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`,
1180
1180
  backgroundColor: r || "transparent"
1181
1181
  };
1182
- if ((e.type === "paragraph" || e.type === "title") && (i["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ce.paragraphGap : Ce.paragraphGap}px`), e.type === "section") {
1183
- let n = le(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);
1184
1184
  n !== null && (i.borderRadius = n);
1185
- let r = Ve(e);
1186
- r?.applied && e.backgroundImage ? (Object.assign(i, Bi(r, t.heroBoxWidth)), Object.assign(i, Li({
1185
+ let r = ke(e);
1186
+ r?.applied && e.backgroundImage ? (Object.assign(i, Hi(r, t.heroBoxWidth)), Object.assign(i, zi({
1187
1187
  ...e.backgroundImage,
1188
1188
  size: "cover",
1189
1189
  repeat: !1
1190
- }, t.backgroundImageUrl))) : (Object.assign(i, Wi(e.border)), Object.assign(i, Li(e.backgroundImage, t.backgroundImageUrl)));
1190
+ }, t.backgroundImageUrl))) : (Object.assign(i, Ki(e.border)), Object.assign(i, zi(e.backgroundImage, t.backgroundImageUrl)));
1191
1191
  }
1192
1192
  return i;
1193
1193
  }
1194
- function Ui(e, t, n, r) {
1195
- return e.type === "section" ? Hi(e, {
1196
- backgroundImageUrl: Dn(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),
1197
1197
  heroBoxWidth: r
1198
- }) : Hi(e);
1198
+ }) : Wi(e);
1199
1199
  }
1200
- function Wi(e) {
1200
+ function Ki(e) {
1201
1201
  let t = {};
1202
- for (let [n, r] of Object.entries(Te(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;
1203
1203
  return t;
1204
1204
  }
1205
- var Gi = {
1205
+ var qi = {
1206
1206
  width: "100cqw",
1207
1207
  maxWidth: "none",
1208
1208
  marginInline: "calc(50% - 50cqw)",
1209
1209
  boxSizing: "border-box"
1210
1210
  };
1211
- function Ki(e) {
1211
+ function Ji(e) {
1212
1212
  return `${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`;
1213
1213
  }
1214
- function qi(e) {
1214
+ function Yi(e) {
1215
1215
  let t = {
1216
1216
  width: "var(--tpl-email-frame-width)",
1217
1217
  maxWidth: "100%",
1218
1218
  marginInline: "auto",
1219
1219
  boxSizing: "border-box"
1220
1220
  };
1221
- return e && (t.padding = Ki(e)), t;
1221
+ return e && (t.padding = Ji(e)), t;
1222
1222
  }
1223
- function Ji(e, t = {}) {
1223
+ function Xi(e, t = {}) {
1224
1224
  if (e.type !== "section" || !e.wrapper) return null;
1225
1225
  let n = e.wrapper, r = {};
1226
- if (n.backgroundColor && (r.backgroundColor = n.backgroundColor), n.padding && !n.fullWidth && (r.padding = Ki(n.padding)), !n.fullWidth) {
1227
- let e = le(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);
1228
1228
  e !== null && (r.borderRadius = e);
1229
1229
  }
1230
- return Object.assign(r, Li(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, Gi), r;
1230
+ return Object.assign(r, zi(n.backgroundImage, t.backgroundImageUrl)), n.fullWidth && Object.assign(r, qi), r;
1231
1231
  }
1232
- function Yi(e, t = {}) {
1232
+ function Zi(e, t = {}) {
1233
1233
  if (e.type !== "wrapper") return null;
1234
1234
  let n = {};
1235
- return e.styles.backgroundColor && (n.backgroundColor = e.styles.backgroundColor), e.styles.padding && !e.fullWidth && (n.padding = Ki(e.styles.padding)), !e.fullWidth && e.borderRadius && e.borderRadius > 0 && (n.borderRadius = `${e.borderRadius}px`), Object.assign(n, Li(e.backgroundImage, t.backgroundImageUrl)), e.fullWidth && Object.assign(n, Gi), 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;
1236
1236
  }
1237
1237
  // src/utils/mergeTagLabelSegments.ts
1238
- function Xi(e, t, n, r = !1) {
1238
+ function Qi(e, t, n, r = !1) {
1239
1239
  if (!e) return [];
1240
1240
  let i = [], a = 0;
1241
- for (let o of Qe(e, n)) {
1241
+ for (let o of tt(e, n)) {
1242
1242
  o.index > a && i.push({
1243
1243
  type: "text",
1244
1244
  value: e.slice(a, o.index)
1245
1245
  });
1246
1246
  let s = o.value;
1247
- if (be(s, n)) {
1248
- let e = r ? tt(s, t) : void 0;
1247
+ if (we(s, n)) {
1248
+ let e = r ? it(s, t) : void 0;
1249
1249
  i.push(e === void 0 ? {
1250
1250
  type: "tag",
1251
1251
  value: pe(s, t)
@@ -1253,9 +1253,9 @@ function Xi(e, t, n, r = !1) {
1253
1253
  type: "text",
1254
1254
  value: e
1255
1255
  });
1256
- } else ke(s, n) ? i.push({
1256
+ } else Pe(s, n) ? i.push({
1257
1257
  type: "tag",
1258
- value: ue(s, n)
1258
+ value: le(s, n)
1259
1259
  }) : i.push({
1260
1260
  type: "text",
1261
1261
  value: s
@@ -1268,27 +1268,27 @@ function Xi(e, t, n, r = !1) {
1268
1268
  }), i;
1269
1269
  }
1270
1270
  // src/components/MergeTagPreviewText.vue
1271
- var Zi = o({
1271
+ var $i = o({
1272
1272
  name: "MergeTagPreviewText",
1273
1273
  props: { text: {
1274
1274
  type: String,
1275
1275
  required: !0
1276
1276
  } },
1277
1277
  setup(e) {
1278
- let t = g(It, Vt), n = g(Ct, Q.liquid), r = g(cn, null), i = I(() => Xi(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));
1279
1279
  return () => i.value.map((e, t) => e.type === "tag" ? s("span", {
1280
1280
  key: t,
1281
1281
  class: "tpl-merge-tag-label"
1282
1282
  }, e.value) : e.value);
1283
1283
  }
1284
- }), Qi = ["href"], $i = /* @__PURE__ */ o({
1284
+ }), ea = ["href"], ta = /* @__PURE__ */ o({
1285
1285
  __name: "ButtonBlock",
1286
1286
  props: {
1287
1287
  block: {},
1288
1288
  viewport: {}
1289
1289
  },
1290
1290
  setup(e) {
1291
- let t = e, n = yn(Yt, "ButtonBlock");
1291
+ let t = e, n = xn(Zt, "ButtonBlock");
1292
1292
  function r(e) {
1293
1293
  return e === "regular" ? "400" : e === "medium" ? "500" : e === "bold" ? "700" : "bold";
1294
1294
  }
@@ -1299,33 +1299,33 @@ var Zi = o({
1299
1299
  backgroundColor: t.block.backgroundColor,
1300
1300
  color: t.block.textColor,
1301
1301
  fontSize: `${t.block.fontSize}px`,
1302
- lineHeight: String(Fe),
1302
+ lineHeight: String(Xe(t.block)),
1303
1303
  fontWeight: r(t.block.fontWeight),
1304
1304
  textDecoration: "none",
1305
- borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : le(t.block.borderRadius) ?? "0px",
1305
+ borderRadius: typeof t.block.borderRadius == "number" ? `${t.block.borderRadius}px` : ve(t.block.borderRadius) ?? "0px",
1306
1306
  textAlign: "center"
1307
1307
  };
1308
- return Object.assign(e, Wi(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;
1309
1309
  }), a = I(() => ({ textAlign: t.block.align ?? "center" }));
1310
1310
  return (t, n) => (c(), w("div", { style: L(a.value) }, [N("a", {
1311
1311
  href: e.block.url || "#",
1312
1312
  style: L(i.value),
1313
1313
  class: "tpl:cursor-default",
1314
1314
  onClick: n[0] ||= M(() => {}, ["prevent"])
1315
- }, [W(Zi, { text: e.block.text }, null, 8, ["text"])], 12, Qi)], 4));
1315
+ }, [W($i, { text: e.block.text }, null, 8, ["text"])], 12, ea)], 4));
1316
1316
  }
1317
- }), ea = ["innerHTML"], ta = [
1317
+ }), na = ["innerHTML"], ra = [
1318
1318
  "src",
1319
1319
  "width",
1320
1320
  "height"
1321
- ], na = /* @__PURE__ */ o({
1321
+ ], ia = /* @__PURE__ */ o({
1322
1322
  __name: "CustomBlockIcon",
1323
1323
  props: {
1324
1324
  icon: {},
1325
1325
  size: {}
1326
1326
  },
1327
1327
  setup(e) {
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 ? Jn(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 ?? "") : "");
1329
1329
  return (t, o) => r.value ? (c(), w("span", {
1330
1330
  key: 0,
1331
1331
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1334,33 +1334,33 @@ var Zi = o({
1334
1334
  height: `${n.value}px`
1335
1335
  }),
1336
1336
  innerHTML: a.value
1337
- }, null, 12, ea)) : i.value ? (c(), w("img", {
1337
+ }, null, 12, na)) : i.value ? (c(), w("img", {
1338
1338
  key: 1,
1339
1339
  src: e.icon,
1340
1340
  width: n.value,
1341
1341
  height: n.value,
1342
1342
  class: "tpl:inline-block",
1343
1343
  alt: ""
1344
- }, null, 8, ta)) : (c(), A(D(nr), {
1344
+ }, null, 8, ra)) : (c(), A(D(ir), {
1345
1345
  key: 2,
1346
1346
  size: n.value,
1347
1347
  "stroke-width": 1.5
1348
1348
  }, null, 8, ["size"]));
1349
1349
  }
1350
- }), ra = { class: "tpl:w-full" }, ia = {
1350
+ }), aa = { class: "tpl:w-full" }, oa = {
1351
1351
  key: 0,
1352
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)]"
1353
- }, aa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, oa = {
1353
+ }, sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ca = {
1354
1354
  key: 1,
1355
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)]"
1356
- }, sa = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ca = {
1356
+ }, la = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ua = {
1357
1357
  key: 2,
1358
1358
  class: "tpl:relative"
1359
- }, la = ["innerHTML"], ua = {
1359
+ }, da = ["innerHTML"], fa = {
1360
1360
  key: 0,
1361
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]",
1362
1362
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
1363
- }, da = /* @__PURE__ */ o({
1363
+ }, pa = /* @__PURE__ */ o({
1364
1364
  __name: "CustomBlock",
1365
1365
  props: {
1366
1366
  block: {},
@@ -1368,7 +1368,7 @@ var Zi = o({
1368
1368
  },
1369
1369
  emits: ["fetchData"],
1370
1370
  setup(e, { emit: t }) {
1371
- let n = e, r = t, { t: i } = G(), a = g(sn, null), o = H(""), s = I(() => Yn(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 } = On({
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({
1372
1372
  definition: d,
1373
1373
  block: p,
1374
1374
  onUpdate: (e, t) => {
@@ -1377,10 +1377,10 @@ var Zi = o({
1377
1377
  dataSourceFetched: t
1378
1378
  });
1379
1379
  }
1380
- }), b = g(It, Vt), x = g(cn, null), S = I(() => {
1380
+ }), b = g(Rt, Ut), x = g(un, null), S = I(() => {
1381
1381
  if (!x?.value) return n.block;
1382
1382
  let e = {};
1383
- for (let [t, r] of Object.entries(n.block.fieldValues)) e[t] = typeof r == "string" ? Ne(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;
1384
1384
  return {
1385
1385
  ...n.block,
1386
1386
  fieldValues: e
@@ -1404,10 +1404,10 @@ var Zi = o({
1404
1404
  E();
1405
1405
  }, { deep: !0 }), u(() => x?.value, () => {
1406
1406
  E();
1407
- }), (e, t) => (c(), w("div", ra, [f.value ? l.value ? (c(), w("div", oa, [W(D(sr), {
1407
+ }), (e, t) => (c(), w("div", aa, [f.value ? l.value ? (c(), w("div", ca, [W(D(lr), {
1408
1408
  size: 24,
1409
1409
  class: "tpl:text-[var(--tpl-danger)]"
1410
- }), N("span", sa, P(D(i).customBlocks.renderError), 1)])) : (c(), w("div", ca, [N("div", { innerHTML: s.value }, null, 8, la), D(y) && D(v) ? (c(), w("div", ua, [D(m) ? (c(), A(hr, {
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, {
1411
1411
  key: 1,
1412
1412
  class: "tpl:w-48"
1413
1413
  })) : (c(), w("button", {
@@ -1415,16 +1415,16 @@ var Zi = o({
1415
1415
  type: "button",
1416
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)]",
1417
1417
  onClick: t[0] ||= M((...e) => D(_) && D(_)(...e), ["stop"])
1418
- }, [d.value?.icon ? (c(), A(na, {
1418
+ }, [d.value?.icon ? (c(), A(ia, {
1419
1419
  key: 0,
1420
1420
  icon: d.value.icon,
1421
1421
  size: 16
1422
- }, null, 8, ["icon"])) : k("", !0), T(" " + P(d.value?.dataSource?.label || D(i).customBlocks.dataSource.fetchButton), 1)]))])) : k("", !0)])) : (c(), w("div", ia, [W(D(rr), {
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), {
1423
1423
  size: 24,
1424
1424
  class: "tpl:text-[var(--tpl-warning)]"
1425
- }), N("span", aa, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1425
+ }), N("span", sa, P(D(i).customBlocks.definitionNotFound), 1)]))]));
1426
1426
  }
1427
- }), fa = { class: "tpl:w-full" }, pa = /* @__PURE__ */ o({
1427
+ }), ma = { class: "tpl:w-full" }, ha = /* @__PURE__ */ o({
1428
1428
  __name: "DividerBlock",
1429
1429
  props: {
1430
1430
  block: {},
@@ -1436,28 +1436,28 @@ var Zi = o({
1436
1436
  width: t.block.width === "full" ? "100%" : typeof t.block.width == "number" ? `${t.block.width}px` : t.block.width,
1437
1437
  margin: t.block.width === "full" ? "0" : "0 auto"
1438
1438
  }));
1439
- return (e, t) => (c(), w("div", fa, [N("hr", {
1439
+ return (e, t) => (c(), w("div", ma, [N("hr", {
1440
1440
  class: "tpl:m-0 tpl:border-none",
1441
1441
  style: L(n.value)
1442
1442
  }, null, 4)]));
1443
1443
  }
1444
- }), ma = { class: "tpl:w-full" }, ha = ["srcdoc", "title"], ga = {
1444
+ }), ga = { class: "tpl:w-full" }, _a = ["srcdoc", "title"], va = {
1445
1445
  key: 1,
1446
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)]"
1447
- }, _a = {
1447
+ }, ya = {
1448
1448
  key: 0,
1449
1449
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
1450
- }, va = {
1450
+ }, ba = {
1451
1451
  key: 1,
1452
1452
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
1453
- }, ya = /* @__PURE__ */ o({
1453
+ }, xa = /* @__PURE__ */ o({
1454
1454
  __name: "HtmlBlock",
1455
1455
  props: {
1456
1456
  block: {},
1457
1457
  viewport: {}
1458
1458
  },
1459
1459
  setup(e) {
1460
- let t = e, { t: n } = G(), r = g(Rt, !1), i = I(() => t.block.content.trim().length > 0), a = I(() => r && i.value), o = g(It, Vt), s = g(cn, null), l = I(() => s?.value ? Ne(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;
1461
1461
  function h() {
1462
1462
  let e = d.value?.contentDocument;
1463
1463
  e && (f.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -1471,7 +1471,7 @@ var Zi = o({
1471
1471
  e || (p?.disconnect(), p = null);
1472
1472
  }), m(() => {
1473
1473
  p?.disconnect(), p = null;
1474
- }), (e, t) => (c(), w("div", ma, [a.value ? (c(), w("iframe", {
1474
+ }), (e, t) => (c(), w("div", ga, [a.value ? (c(), w("iframe", {
1475
1475
  key: 0,
1476
1476
  ref_key: "iframeRef",
1477
1477
  ref: d,
@@ -1481,18 +1481,18 @@ var Zi = o({
1481
1481
  class: "tpl:block tpl:w-full tpl:border-0",
1482
1482
  style: L({ height: `${f.value}px` }),
1483
1483
  onLoad: _
1484
- }, null, 44, ha)) : (c(), w("div", ga, [W(D(Qn), {
1484
+ }, null, 44, _a)) : (c(), w("div", va, [W(D(er), {
1485
1485
  size: 24,
1486
1486
  class: "tpl:text-[var(--tpl-text-dim)]"
1487
- }), i.value ? (c(), w("span", _a, P(D(n).html.preview), 1)) : (c(), w("span", va, 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))]))]));
1488
1488
  }
1489
- }), ba = ["data-drop-enabled"], xa = ["href"], Sa = ["src", "alt"], Ca = ["src", "alt"], wa = {
1489
+ }), Sa = ["data-drop-enabled"], Ca = ["href"], wa = ["src", "alt"], Ta = ["src", "alt"], Ea = {
1490
1490
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
1491
1491
  style: { opacity: "0.7" }
1492
- }, Ta = ["href"], Ea = ["src", "alt"], Da = ["src", "alt"], Oa = {
1492
+ }, Da = ["href"], Oa = ["src", "alt"], ka = ["src", "alt"], Aa = {
1493
1493
  key: 4,
1494
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)]"
1495
- }, ka = ["aria-label"], Aa = { key: 1 }, ja = /* @__PURE__ */ o({
1495
+ }, ja = ["aria-label"], Ma = { key: 1 }, Na = /* @__PURE__ */ o({
1496
1496
  __name: "ImageBlock",
1497
1497
  props: {
1498
1498
  block: {},
@@ -1500,20 +1500,20 @@ var Zi = o({
1500
1500
  },
1501
1501
  emits: ["update"],
1502
1502
  setup(e, { emit: t }) {
1503
- let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() => Ee(n.block.src, a));
1503
+ let n = e, r = t, { t: i } = G(), { syntax: a } = K(), o = I(() => Ae(n.block.src, a));
1504
1504
  function s(e) {
1505
1505
  let t = {
1506
1506
  src: e.url,
1507
- ...In(Nn(e.width, e.height))
1507
+ ...Rn(Fn(e.width, e.height))
1508
1508
  };
1509
1509
  e.alt && (t.alt = e.alt), r("update", t);
1510
1510
  }
1511
- let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Bn({
1511
+ let l = H(), { canBrowse: u, dropEnabled: d, isUploading: f, showOverlay: p, openMediaBrowser: m } = Hn({
1512
1512
  target: l,
1513
1513
  blocked: o,
1514
1514
  apply: s
1515
1515
  }), h = I(() => ({ textAlign: n.block.align })), g = I(() => {
1516
- let e = n.block.border, t = ["left", "right"].map((t) => lt(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);
1517
1517
  return t > 0 ? `calc(100% - ${t}px)` : "100%";
1518
1518
  }), _ = I(() => {
1519
1519
  let e = n.block.align;
@@ -1521,13 +1521,13 @@ var Zi = o({
1521
1521
  maxWidth: "100%",
1522
1522
  width: n.block.width === "full" ? g.value : `${n.block.width}px`,
1523
1523
  height: n.block.height ? `${n.block.height}px` : void 0,
1524
- borderRadius: le(n.block.borderRadius) ?? void 0,
1525
- ...Wi(n.block.border),
1524
+ borderRadius: ve(n.block.borderRadius) ?? void 0,
1525
+ ...Ki(n.block.border),
1526
1526
  display: "block",
1527
1527
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
1528
1528
  marginRight: e === "center" ? "auto" : void 0
1529
1529
  };
1530
- }), v = Mn(() => o.value ? void 0 : n.block.src), y = Mn(() => 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);
1531
1531
  return (t, n) => (c(), w("div", {
1532
1532
  ref_key: "dropZoneRef",
1533
1533
  ref: l,
@@ -1535,7 +1535,7 @@ var Zi = o({
1535
1535
  "data-drop-enabled": D(d),
1536
1536
  class: "tpl:relative tpl:w-full",
1537
1537
  style: L(h.value)
1538
- }, [D(p) ? (c(), A(Fn, {
1538
+ }, [D(p) ? (c(), A(Ln, {
1539
1539
  key: 0,
1540
1540
  uploading: D(f),
1541
1541
  size: "canvas"
@@ -1551,22 +1551,22 @@ var Zi = o({
1551
1551
  src: D(y),
1552
1552
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1553
1553
  style: L(_.value)
1554
- }, null, 12, Sa)], 8, xa)) : (c(), w("img", {
1554
+ }, null, 12, wa)], 8, Ca)) : (c(), w("img", {
1555
1555
  key: 1,
1556
1556
  class: "tpl:border-0",
1557
1557
  src: D(y),
1558
1558
  alt: e.block.alt,
1559
1559
  style: L(_.value)
1560
- }, null, 12, Ca))], 64)) : e.block.src && o.value ? (c(), w("div", {
1560
+ }, null, 12, Ta))], 64)) : e.block.src && o.value ? (c(), w("div", {
1561
1561
  key: 2,
1562
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)]",
1563
1563
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, _.value])
1564
- }, [W(D(or), {
1564
+ }, [W(D(cr), {
1565
1565
  size: 32,
1566
1566
  "stroke-width": 1.5,
1567
1567
  class: "tpl:text-[var(--tpl-primary)]",
1568
1568
  style: { opacity: "0.5" }
1569
- }), N("span", wa, [W(Zi, { 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", {
1570
1570
  key: 0,
1571
1571
  href: e.block.linkUrl,
1572
1572
  target: "_blank",
@@ -1578,33 +1578,33 @@ var Zi = o({
1578
1578
  src: D(v),
1579
1579
  alt: e.block.alt || D(i).image.altTextPlaceholder,
1580
1580
  style: L(_.value)
1581
- }, null, 12, Ea)], 8, Ta)) : (c(), w("img", {
1581
+ }, null, 12, Oa)], 8, Da)) : (c(), w("img", {
1582
1582
  key: 1,
1583
1583
  class: "tpl:border-0",
1584
1584
  src: D(v),
1585
1585
  alt: e.block.alt,
1586
1586
  style: L(_.value)
1587
- }, null, 12, Da))], 64)) : (c(), w("div", Oa, [D(u) ? (c(), w("button", {
1587
+ }, null, 12, ka))], 64)) : (c(), w("div", Aa, [D(u) ? (c(), w("button", {
1588
1588
  key: 0,
1589
1589
  "aria-label": D(i).image.browseMedia,
1590
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)]",
1591
1591
  onClick: n[2] ||= M((...e) => D(m) && D(m)(...e), ["stop"])
1592
- }, [W(D(or), {
1592
+ }, [W(D(cr), {
1593
1593
  size: 14,
1594
1594
  "stroke-width": 1.5
1595
- }), T(" " + P(D(i).image.browseMedia), 1)], 8, ka)) : (c(), w("span", Aa, P(D(i).image.clickToAdd), 1))]))], 12, ba));
1595
+ }), T(" " + P(D(i).image.browseMedia), 1)], 8, ja)) : (c(), w("span", Ma, P(D(i).image.clickToAdd), 1))]))], 12, Sa));
1596
1596
  }
1597
- }), Ma = { class: "tpl:w-full" }, Na = ["href"], Pa = {
1597
+ }), Pa = { class: "tpl:w-full" }, Fa = ["href"], Ia = {
1598
1598
  key: 1,
1599
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)]"
1600
- }, Fa = /* @__PURE__ */ o({
1600
+ }, La = /* @__PURE__ */ o({
1601
1601
  __name: "MenuBlock",
1602
1602
  props: {
1603
1603
  block: {},
1604
1604
  viewport: {}
1605
1605
  },
1606
1606
  setup(e) {
1607
- let t = e, { t: n } = G(), r = yn(Yt, "MenuBlock"), i = I(() => ({
1607
+ let t = e, { t: n } = G(), r = xn(Zt, "MenuBlock"), i = I(() => ({
1608
1608
  display: "flex",
1609
1609
  flexWrap: "wrap",
1610
1610
  gap: `0 ${t.block.spacing}px`,
@@ -1616,7 +1616,7 @@ var Zi = o({
1616
1616
  function o(e) {
1617
1617
  return e || t.block.linkColor || t.block.color;
1618
1618
  }
1619
- return (t, r) => (c(), w("div", Ma, [a.value ? (c(), w("div", {
1619
+ return (t, r) => (c(), w("div", Pa, [a.value ? (c(), w("div", {
1620
1620
  key: 0,
1621
1621
  style: L(i.value)
1622
1622
  }, [(c(!0), w(U, null, p(e.block.items, (t, n) => (c(), w(U, { key: t.id }, [N("a", {
@@ -1628,22 +1628,22 @@ var Zi = o({
1628
1628
  textDecoration: t.underline ? "underline" : "none"
1629
1629
  }),
1630
1630
  onClick: r[0] ||= M(() => {}, ["prevent"])
1631
- }, [W(Zi, { text: t.text || "..." }, null, 8, ["text"])], 12, Na), 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", {
1632
1632
  key: 0,
1633
1633
  style: L({
1634
1634
  color: e.block.separatorColor,
1635
1635
  padding: `0 ${e.block.spacing}px`
1636
1636
  })
1637
- }, P(e.block.separator), 5)) : k("", !0)], 64))), 128))], 4)) : (c(), w("div", Pa, [W(D(ar), { 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)]))]));
1638
1638
  }
1639
1639
  });
1640
1640
  // src/composables/useEditableTextBlock.ts
1641
- function Ia(e) {
1642
- let t = g(It, Vt), r = g(cn, null), i = g($t, null), a = g(Wt, null), { syntax: o } = K(), s = I(() => r?.value ? qe(e(), t.value) : Be(e(), t.value)), c = I(() => i?.value ? $e(e(), t.value, o) : ae(s.value, o)), l = I(() => je(Yn(c.value))), d = H(!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
1643
  u(() => a?.value, (e) => {
1644
1644
  e && (d.value = !1);
1645
1645
  });
1646
- let f = H(null), { top: p, left: m } = n(f), { toLocal: h } = yt(), _ = I(() => h({
1646
+ let f = H(null), { top: p, left: m } = n(f), { toLocal: h } = xt(), _ = I(() => h({
1647
1647
  top: p.value - 8,
1648
1648
  left: m.value
1649
1649
  }));
@@ -1663,14 +1663,14 @@ function Ia(e) {
1663
1663
  };
1664
1664
  }
1665
1665
  // src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
1666
- var La = ["innerHTML"], Ra = /* @__PURE__ */ o({
1666
+ var za = ["innerHTML"], Ba = /* @__PURE__ */ o({
1667
1667
  __name: "ParagraphBlock",
1668
1668
  props: {
1669
1669
  block: {},
1670
1670
  viewport: {}
1671
1671
  },
1672
1672
  setup(e) {
1673
- let t = e, n = b(() => import("./ParagraphEditor-DGJmPAC1.js").then((e) => e.t)), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: l } = Ia(() => 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);
1674
1674
  return (t, u) => (c(), w("div", {
1675
1675
  ref_key: "blockRef",
1676
1676
  ref: i,
@@ -1689,11 +1689,11 @@ var La = ["innerHTML"], Ra = /* @__PURE__ */ o({
1689
1689
  key: 1,
1690
1690
  class: "tpl-text-content tpl:outline-none",
1691
1691
  innerHTML: D(o)
1692
- }, null, 8, La))], 544));
1692
+ }, null, 8, za))], 544));
1693
1693
  }
1694
1694
  });
1695
1695
  // src/utils/updateBlockList.ts
1696
- function za(e, t, n, r = 0, i) {
1696
+ function Va(e, t, n, r = 0, i) {
1697
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);
1698
1698
  if (o.some((e) => !s.includes(e.id))) return;
1699
1699
  let c = t.filter((e) => !o.some((t) => t.id === e.id)), l, u = -1;
@@ -1706,19 +1706,19 @@ function za(e, t, n, r = 0, i) {
1706
1706
  l && (e.findBlockLocation(l.id) ? e.moveBlock(l.id, u, n, r) : e.addBlock(JSON.parse(JSON.stringify(l)), n, r, u));
1707
1707
  }
1708
1708
  // src/utils/mergeTagTokens.ts
1709
- function Ba(e, t, n) {
1709
+ function Ha(e, t, n) {
1710
1710
  let r = [], i = "\0MT";
1711
1711
  for (; e.includes(i);) i += "_";
1712
- let a = n === "html" ? Le(e, (e) => {
1712
+ let a = n === "html" ? ze(e, (e) => {
1713
1713
  let t = r.push(e) - 1;
1714
1714
  return `${i}${t}\u0000`;
1715
1715
  }) : e, o = Array.from(a.matchAll(RegExp(`${i}\\d+\u0000`, "g")), (e) => ({
1716
1716
  start: e.index,
1717
1717
  end: e.index + e[0].length
1718
- })), s = [], c = nt(a, t, "logic"), l = [], u = 0;
1718
+ })), s = [], c = at(a, t, "logic"), l = [], u = 0;
1719
1719
  for (let e of ["logic", "value"]) {
1720
1720
  let r = 0;
1721
- for (let i of e === "logic" ? c : nt(a, t, "value")) {
1721
+ for (let i of e === "logic" ? c : at(a, t, "value")) {
1722
1722
  let t = i.index, a = t + i.value.length;
1723
1723
  for (; o[r]?.end <= t;) r++;
1724
1724
  let c = o[r];
@@ -1734,51 +1734,51 @@ function Ba(e, t, n) {
1734
1734
  }), s.push({
1735
1735
  start: t,
1736
1736
  end: a,
1737
- value: n === "html" ? Xe(i.value) : i.value
1737
+ value: n === "html" ? Qe(i.value) : i.value
1738
1738
  });
1739
1739
  }
1740
1740
  }
1741
1741
  }
1742
1742
  return [...r, ...s.map((e) => e.value)].sort();
1743
1743
  }
1744
- function Va(e, t, n, r) {
1745
- return JSON.stringify(Ba(e, n, r)) !== JSON.stringify(Ba(t, n, r));
1744
+ function Ua(e, t, n, r) {
1745
+ return JSON.stringify(Ha(e, n, r)) !== JSON.stringify(Ha(t, n, r));
1746
1746
  }
1747
1747
  // src/components/localization/LocaleStatusChip.vue?vue&type=script&setup=true&lang.ts
1748
- var Ha = [
1748
+ var Wa = [
1749
1749
  "data-state",
1750
1750
  "aria-label",
1751
1751
  "title",
1752
1752
  "aria-expanded",
1753
1753
  "aria-controls",
1754
1754
  "onKeydown"
1755
- ], Ua = [
1755
+ ], Ga = [
1756
1756
  "aria-label",
1757
1757
  "aria-labelledby",
1758
1758
  "aria-describedby",
1759
1759
  "onKeydown"
1760
- ], Wa = ["id"], Ga = ["id"], Ka = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, qa = ["disabled"], Ja = {
1760
+ ], Ka = ["id"], qa = ["id"], Ja = { class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Ya = ["disabled"], Xa = {
1761
1761
  key: 0,
1762
1762
  class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:font-medium"
1763
- }, Ya = {
1763
+ }, Za = {
1764
1764
  key: 1,
1765
1765
  class: "tpl:m-0"
1766
- }, Xa = { class: "tpl:m-0" }, Za = { class: "tpl:mt-2 tpl:mb-0 tpl:break-words tpl:text-[var(--tpl-chrome-text-muted)]" }, Qa = {
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 = {
1767
1767
  key: 3,
1768
1768
  class: "tpl:m-0"
1769
- }, $a = {
1769
+ }, to = {
1770
1770
  key: 4,
1771
1771
  class: "tpl:m-0"
1772
- }, eo = {
1772
+ }, no = {
1773
1773
  key: 5,
1774
1774
  class: "tpl:m-0"
1775
- }, to = {
1775
+ }, ro = {
1776
1776
  key: 6,
1777
1777
  class: "tpl:m-0 tpl:list-none tpl:p-0"
1778
- }, no = ["onClick"], ro = {
1778
+ }, io = ["onClick"], ao = {
1779
1779
  key: 7,
1780
1780
  class: "tpl:mt-2 tpl:flex tpl:flex-wrap tpl:gap-1"
1781
- }, io = ["data-testid", "disabled"], ao = /*#__PURE__*/ xr(/* @__PURE__ */ o({
1781
+ }, oo = ["data-testid", "disabled"], so = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
1782
1782
  __name: "LocaleStatusChip",
1783
1783
  props: {
1784
1784
  blockId: {},
@@ -1798,32 +1798,32 @@ var Ha = [
1798
1798
  },
1799
1799
  emits: ["target"],
1800
1800
  setup(e, { emit: t }) {
1801
- let n = e, r = t, i = g(bn, null), o = g(dn, null), s = g(Tt, null), l = g(_n, "en") ?? "en", { t: d, format: f } = G(), m = te(), h = _t(), { toLocal: v } = yt(), 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({
1802
1802
  top: 0,
1803
1803
  left: 0
1804
1804
  }), z = H({
1805
1805
  maxHeight: 0,
1806
1806
  maxWidth: 0
1807
- }), B = `tpl-locale-popover-${de()}`, V = I(() => gr(i?.activeLocale?.value ?? "")), W = I(() => gr(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"));
1808
1808
  function K(e, t) {
1809
1809
  switch (e) {
1810
1810
  case "tags-differ": return d.localization.tagsDiffer;
1811
1811
  case "hidden": return f(d.localization.hidden, { language: V.value });
1812
1812
  case "changed": return f(d.localization.changed, { language: V.value });
1813
- case "default-stale": return _r(d.localization.staleLanguages, t, l);
1814
- case "missing": return t === 1 ? d.localization.notTranslated : _r(d.localization.notTranslatedCount, t, l);
1815
- default: return t === 1 ? d.localization.outOfDate : _r(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);
1816
1816
  }
1817
1817
  }
1818
- let ne = I(() => K(n.state, n.count)), q = I(() => n.popoverState ?? n.state), re = I(() => n.popoverCount ?? n.count), ie = I(() => K(q.value, re.value)), ae = I(() => n.state === "hidden" ? er : n.state === "changed" ? Zn : n.state === "default-stale" ? ur : n.state === "stale" ? $n : sr), oe = I(() => q.value === "default-stale" || (q.value === "missing" || q.value === "stale") && re.value > 1), J = I(() => n.editable && n.eligibleGaps && o?.isAvailable.value);
1819
- function Y(e = !1) {
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);
1819
+ function X(e = !1) {
1820
1820
  x.value = !1, S.value = !1, F = null, e && y.value?.focus({ preventScroll: !0 });
1821
1821
  }
1822
- async function X() {
1823
- if (x.value) return Y();
1824
- h.value && (x.value = !0, await Z());
1825
- }
1826
1822
  async function Z() {
1823
+ if (x.value) return X();
1824
+ h.value && (x.value = !0, await Q());
1825
+ }
1826
+ async function Q() {
1827
1827
  let e = h.value;
1828
1828
  if (!e || !x.value) return;
1829
1829
  let t = e.ownerDocument.defaultView, n = t?.visualViewport, r = n?.offsetTop ?? 0, i = n?.offsetLeft ?? 0, a = r + (n?.height ?? t?.innerHeight ?? 0), o = i + (n?.width ?? t?.innerWidth ?? 0), s = e.parentElement?.getBoundingClientRect(), c = Math.max(r, s?.height ? s.top : r) + 8, l = Math.max(i, s?.width ? s.left : i) + 8, u = Math.max(c, Math.min(a, s?.height ? s.bottom : a) - 8), d = Math.max(l, Math.min(o, s?.width ? s.right : o) - 8);
@@ -1843,53 +1843,53 @@ var Ha = [
1843
1843
  }), await j(), x.value && (S.value ? T.value : b.value)?.focus({ preventScroll: !0 });
1844
1844
  }
1845
1845
  u(S, async () => {
1846
- x.value && (await Z(), x.value && !S.value && C.value?.focus({ preventScroll: !0 }));
1846
+ x.value && (await Q(), x.value && !S.value && C.value?.focus({ preventScroll: !0 }));
1847
1847
  });
1848
- function se(e) {
1848
+ function oe(e) {
1849
1849
  let t = e.composedPath();
1850
- !t.includes(y.value) && !t.includes(b.value) && Y();
1850
+ !t.includes(y.value) && !t.includes(b.value) && X();
1851
1851
  }
1852
- function ce(e) {
1852
+ function se(e) {
1853
1853
  if (e.composedPath().includes(b.value)) return;
1854
1854
  let t = y.value?.getBoundingClientRect();
1855
- t && F && t.top === F.top && t.right === F.right || Y();
1855
+ t && F && t.top === F.top && t.right === F.right || X();
1856
1856
  }
1857
- function le() {
1858
- m.removeEventListener("click", se, !0), m.removeEventListener("scroll", ce, !0);
1857
+ function ce() {
1858
+ m.removeEventListener("click", oe, !0), m.removeEventListener("scroll", se, !0);
1859
1859
  }
1860
1860
  u(x, (e) => {
1861
- le(), e ? (m.addEventListener("click", se, !0), m.addEventListener("scroll", ce, !0)) : r("target", null);
1861
+ ce(), e ? (m.addEventListener("click", oe, !0), m.addEventListener("scroll", se, !0)) : r("target", null);
1862
1862
  }, { flush: "sync" }), u(q, () => {
1863
- S.value = !1, x.value && Z();
1863
+ S.value = !1, x.value && Q();
1864
1864
  }), u([
1865
1865
  () => n.blockId,
1866
1866
  () => n.state,
1867
1867
  () => i?.activeLocale?.value,
1868
1868
  () => i?.state.template?.id,
1869
1869
  () => i?.loadVersion?.value
1870
- ], () => Y()), _(le);
1871
- let ue = (e) => {
1872
- (x.value || h.value) && (r("target", e ?? null), x.value || X());
1870
+ ], () => X()), _(ce);
1871
+ let le = (e) => {
1872
+ (x.value || h.value) && (r("target", e ?? null), x.value || Z());
1873
1873
  };
1874
1874
  u(() => n.blockId, (e, t) => {
1875
- t && s?.get(t) === ue && s.delete(t), s?.set(e, ue);
1875
+ t && s?.get(t) === le && s.delete(t), s?.set(e, le);
1876
1876
  }, { immediate: !0 }), _(() => {
1877
- s?.get(n.blockId) === ue && s.delete(n.blockId);
1877
+ s?.get(n.blockId) === le && s.delete(n.blockId);
1878
1878
  });
1879
- function Q() {
1880
- i?.keepTranslations?.(n.blockId, n.stale), Y(!0);
1879
+ function ue() {
1880
+ i?.keepTranslations?.(n.blockId, n.stale), X(!0);
1881
1881
  }
1882
- function fe(e) {
1883
- i?.resetLocaleFields?.(n.blockId, e), Y(!0);
1882
+ function de(e) {
1883
+ i?.resetLocaleFields?.(n.blockId, e), X(!0);
1884
1884
  }
1885
1885
  function pe() {
1886
- i?.setBlockHidden?.(n.blockId, !1), Y(!0);
1886
+ i?.setBlockHidden?.(n.blockId, !1), X(!0);
1887
1887
  }
1888
1888
  function me(e) {
1889
- i?.setActiveLocale?.(e), Y();
1889
+ i?.setActiveLocale?.(e), X();
1890
1890
  }
1891
1891
  function he() {
1892
- J.value && !o?.running.value && (q.value === "tags-differ" && n.replacesCurrent ? S.value = !0 : o?.translate({
1892
+ Y.value && !o?.running.value && (q.value === "tags-differ" && n.replacesCurrent ? S.value = !0 : o?.translate({
1893
1893
  only: q.value === "tags-differ" ? "all" : "gaps",
1894
1894
  blockId: n.blockId
1895
1895
  }));
@@ -1898,10 +1898,10 @@ var Ha = [
1898
1898
  S.value = !1;
1899
1899
  }
1900
1900
  function _e() {
1901
- S.value ? ge() : Y(!0);
1901
+ S.value ? ge() : X(!0);
1902
1902
  }
1903
1903
  function ve() {
1904
- J.value && !o?.running.value && n.translationCount && (S.value = !1, o?.translate({
1904
+ Y.value && !o?.running.value && n.translationCount && (S.value = !1, o?.translate({
1905
1905
  only: "all",
1906
1906
  blockId: n.blockId
1907
1907
  }));
@@ -1918,13 +1918,13 @@ var Ha = [
1918
1918
  "aria-controls": x.value ? B : void 0,
1919
1919
  "aria-haspopup": "dialog",
1920
1920
  class: "tpl-locale-chip tpl:flex tpl:size-5 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-full tpl:border-none tpl:p-0 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:ring-1 tpl:ring-[var(--tpl-border)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:shadow-[var(--tpl-shadow-sm)] tpl:focus-visible:outline-none tpl:focus-visible:shadow-[var(--tpl-ring)] tpl:hover:focus-visible:shadow-[var(--tpl-ring),var(--tpl-shadow-sm)]",
1921
- onClick: M(X, ["stop"]),
1922
- onKeydown: [E(M(X, ["stop", "prevent"]), ["enter"]), E(M(_e, ["stop", "prevent"]), ["esc"])]
1923
- }, [(c(), A(a(ae.value), {
1921
+ onClick: M(Z, ["stop"]),
1922
+ onKeydown: [E(M(Z, ["stop", "prevent"]), ["enter"]), E(M(_e, ["stop", "prevent"]), ["esc"])]
1923
+ }, [(c(), A(a(ie.value), {
1924
1924
  size: 12,
1925
1925
  "stroke-width": 2,
1926
1926
  "aria-hidden": "true"
1927
- }))], 40, Ha), D(h) && x.value ? (c(), A(ee, {
1927
+ }))], 40, Wa), D(h) && x.value ? (c(), A(ee, {
1928
1928
  key: 0,
1929
1929
  to: D(h)
1930
1930
  }, [N("div", {
@@ -1932,7 +1932,7 @@ var Ha = [
1932
1932
  ref_key: "popover",
1933
1933
  ref: b,
1934
1934
  role: "dialog",
1935
- "aria-label": S.value ? void 0 : ie.value,
1935
+ "aria-label": S.value ? void 0 : re.value,
1936
1936
  "aria-labelledby": S.value ? `${B}-question` : void 0,
1937
1937
  "aria-describedby": S.value ? `${B}-warning` : void 0,
1938
1938
  tabindex: "-1",
@@ -1950,80 +1950,80 @@ var Ha = [
1950
1950
  N("h3", {
1951
1951
  id: `${B}-question`,
1952
1952
  class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
1953
- }, P(D(_r)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Wa),
1953
+ }, P(D(yr)(D(d).localization.translationConfirmation, e.translationCount ?? 0, D(l))), 9, Ka),
1954
1954
  N("p", {
1955
1955
  id: `${B}-warning`,
1956
1956
  class: "tpl:m-0 tpl:text-[var(--tpl-text-muted)]"
1957
- }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, Ga),
1958
- N("div", Ka, [N("button", {
1957
+ }, P(D(f)(D(d).localization.translationDescription, { language: V.value })), 9, qa),
1958
+ N("div", Ja, [N("button", {
1959
1959
  ref_key: "confirmationCancel",
1960
1960
  ref: T,
1961
1961
  type: "button",
1962
1962
  "data-testid": "translation-confirm-cancel",
1963
- class: O(D(yr)),
1963
+ class: O(D(xr)),
1964
1964
  onClick: ge
1965
1965
  }, P(D(d).localization.cancel), 3), N("button", {
1966
1966
  type: "button",
1967
1967
  "data-testid": "translation-confirm",
1968
- class: O(D(br)),
1969
- disabled: !J.value || !!D(o)?.running.value || !e.translationCount,
1968
+ class: O(D(Sr)),
1969
+ disabled: !Y.value || !!D(o)?.running.value || !e.translationCount,
1970
1970
  onClick: ve
1971
- }, P(D(_r)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, qa)])
1971
+ }, P(D(yr)(D(d).localization.translateAllFields, e.translationCount ?? 0, D(l))), 11, Ya)])
1972
1972
  ], 64)) : (c(), w(U, { key: 1 }, [
1973
- oe.value ? (c(), w("p", Ja, P(ie.value), 1)) : k("", !0),
1974
- q.value === "missing" ? (c(), w("p", Ya, P(D(f)(D(d).localization.missingExplanation, { default: W.value })), 1)) : q.value === "stale" ? (c(), w(U, { key: 2 }, [N("p", Xa, P(D(f)(D(d).localization.staleExplanation, { default: W.value })), 1), N("p", Za, P(D(f)(D(d).localization.currentExcerpt, { excerpt: e.excerpt })), 1)], 64)) : q.value === "tags-differ" ? (c(), w("p", Qa, P(D(f)(D(d).localization.tagsDifferExplanation, { default: W.value })), 1)) : q.value === "changed" ? (c(), w("p", $a, P(D(_r)(D(d).localization.changedProperties, re.value, D(l), { default: W.value })), 1)) : q.value === "hidden" ? (c(), w("p", eo, P(D(f)(D(d).localization.hiddenExplanation, { language: V.value })), 1)) : (c(), w("ul", to, [(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", {
1975
1975
  key: e,
1976
1976
  class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3"
1977
- }, [N("span", null, P(D(gr)(e)), 1), N("button", {
1977
+ }, [N("span", null, P(D(vr)(e)), 1), N("button", {
1978
1978
  type: "button",
1979
- class: O(D(vr)),
1979
+ class: O(D(br)),
1980
1980
  onClick: (t) => me(e)
1981
- }, P(D(d).localization.open), 11, no)]))), 128))])),
1982
- e.editable && q.value !== "default-stale" ? (c(), w("div", ro, [
1983
- J.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
1981
+ }, P(D(d).localization.open), 11, io)]))), 128))])),
1982
+ e.editable && q.value !== "default-stale" ? (c(), w("div", ao, [
1983
+ Y.value && (q.value === "missing" || q.value === "stale" || q.value === "tags-differ") ? (c(), w("button", {
1984
1984
  key: 0,
1985
1985
  type: "button",
1986
1986
  ref_key: "retranslate",
1987
1987
  ref: C,
1988
1988
  "data-testid": q.value === "missing" ? "locale-translate" : "locale-retranslate",
1989
- class: O(D(yr)),
1989
+ class: O(D(xr)),
1990
1990
  disabled: !!D(o)?.running.value,
1991
1991
  onClick: he
1992
- }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, io)) : k("", !0),
1992
+ }, P(q.value === "missing" ? D(d).localization.translate : D(d).localization.retranslate), 11, oo)) : k("", !0),
1993
1993
  q.value === "stale" || q.value === "tags-differ" ? (c(), w(U, { key: 1 }, [q.value === "stale" ? (c(), w("button", {
1994
1994
  key: 0,
1995
1995
  type: "button",
1996
1996
  "data-testid": "locale-keep",
1997
- class: O(D(J.value ? vr : yr)),
1998
- onClick: Q
1997
+ class: O(D(Y.value ? br : xr)),
1998
+ onClick: ue
1999
1999
  }, P(D(d).localization.keep), 3)) : k("", !0), N("button", {
2000
2000
  type: "button",
2001
2001
  "data-testid": "locale-use-default",
2002
- class: O(D(q.value === "tags-differ" && !J.value ? yr : vr)),
2003
- 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)
2004
2004
  }, P(D(f)(D(d).localization.useDefaultLanguage, { default: W.value })), 3)], 64)) : k("", !0),
2005
2005
  q.value === "changed" ? (c(), w("button", {
2006
2006
  key: 2,
2007
2007
  type: "button",
2008
2008
  "data-testid": "locale-reset",
2009
- class: O(D(yr)),
2010
- onClick: n[1] ||= (t) => fe(e.setPaths)
2009
+ class: O(D(xr)),
2010
+ onClick: n[1] ||= (t) => de(e.setPaths)
2011
2011
  }, P(D(d).localization.resetChanges), 3)) : k("", !0),
2012
2012
  q.value === "hidden" ? (c(), w("button", {
2013
2013
  key: 3,
2014
2014
  type: "button",
2015
2015
  "data-testid": "locale-show",
2016
- class: O(D(yr)),
2016
+ class: O(D(xr)),
2017
2017
  onClick: pe
2018
2018
  }, P(D(d).localization.show), 3)) : k("", !0)
2019
2019
  ])) : k("", !0)
2020
- ], 64))], 44, Ua)], 8, ["to"])) : k("", !0)], 64));
2020
+ ], 64))], 44, Ga)], 8, ["to"])) : k("", !0)], 64));
2021
2021
  }
2022
- }), [["__scopeId", "data-v-3343ae7d"]]), oo = /* @__PURE__ */ o({
2022
+ }), [["__scopeId", "data-v-3343ae7d"]]), co = /* @__PURE__ */ o({
2023
2023
  __name: "LocaleMarkers",
2024
2024
  props: { block: {} },
2025
2025
  setup(e) {
2026
- let t = e, n = g(bn, null), r = g(Ft, void 0), i = g(tn, []), a = g(Ct, Q.liquid), o = g(nn, 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(() => ({
2027
2027
  blocks: [t.block.type === "section" || t.block.type === "wrapper" ? {
2028
2028
  ...t.block,
2029
2029
  children: []
@@ -2032,14 +2032,14 @@ var Ha = [
2032
2032
  locale: n.content.value.settings.locale,
2033
2033
  locales: n.content.value.settings.locales
2034
2034
  }
2035
- })), f = I(() => n && s.value && !o.value.has(s.value) ? fe(d.value, s.value, i) : {
2035
+ })), f = I(() => n && s.value && !o.value.has(s.value) ? Ze(d.value, s.value, i) : {
2036
2036
  missing: [],
2037
2037
  stale: [],
2038
2038
  translated: []
2039
2039
  }), p = I(() => f.value.stale.map((e) => e.slice(t.block.id.length + 1))), m = I(() => f.value.translated.flatMap((e) => {
2040
- let n = e.slice(t.block.id.length + 1), r = oe(t.block, n), i = l.value?.text?.[n]?.value, o = t.block.type === "html" || xe[t.block.type]?.includes(n) ? "html" : "text";
2041
- return typeof r == "string" && i !== void 0 && Va(r, i, a, o) ? [n] : [];
2042
- })), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? Y(d.value, s.value, {
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] : [];
2042
+ })), h = H(null), _ = I(() => n && s.value && !o.value.has(s.value) ? X(d.value, s.value, {
2043
2043
  syntax: a,
2044
2044
  definitions: i,
2045
2045
  doNotTranslate: r?.doNotTranslate,
@@ -2049,9 +2049,9 @@ var Ha = [
2049
2049
  let n = e.slice(t.block.id.length + 1);
2050
2050
  return f.value.translated.includes(e) && !m.value.includes(n);
2051
2051
  })), y = I(() => Object.keys(l.value?.set ?? {}).filter((e) => {
2052
- let n = e.split("."), r = n.pop(), i = n.length ? oe(t.block, n.join(".")) : t.block;
2053
- return Array.isArray(i) ? oe(i, r) !== void 0 : i !== void 0;
2054
- })), b = I(() => !s.value && n ? (n.content.value.settings.locales ?? []).filter((e) => !o.value.has(e) && fe(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);
2055
2055
  function S(e) {
2056
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;
2057
2057
  }
@@ -2060,12 +2060,12 @@ var Ha = [
2060
2060
  h.value = null;
2061
2061
  });
2062
2062
  let E = I(() => {
2063
- let e = oe(t.block, p.value[0] ?? "");
2063
+ let e = $e(t.block, p.value[0] ?? "");
2064
2064
  if (typeof e != "string") return "";
2065
2065
  let n = e.split(/<[^>]*>/).join("");
2066
2066
  return Array.from(n).slice(0, 60).join("");
2067
2067
  });
2068
- return (t, n) => D(r) && x.value ? (c(), A(ao, {
2068
+ return (t, n) => D(r) && x.value ? (c(), A(so, {
2069
2069
  key: 0,
2070
2070
  "block-id": e.block.id,
2071
2071
  state: x.value,
@@ -2099,21 +2099,21 @@ var Ha = [
2099
2099
  "editable"
2100
2100
  ])) : k("", !0);
2101
2101
  }
2102
- }), so = [
2102
+ }), lo = [
2103
2103
  "data-block-id",
2104
2104
  "data-block-type",
2105
2105
  "data-tpl-picked"
2106
- ], co = ["aria-label"], lo = ["data-lock-holder"], uo = ["aria-label"], fo = [
2106
+ ], uo = ["aria-label"], fo = ["data-lock-holder"], po = ["aria-label"], mo = [
2107
2107
  "aria-label",
2108
2108
  "aria-pressed",
2109
2109
  "title"
2110
- ], po = ["aria-label", "title"], mo = ["aria-label", "title"], ho = ["aria-label", "title"], go = {
2110
+ ], ho = ["aria-label", "title"], go = ["aria-label", "title"], _o = ["aria-label", "title"], vo = {
2111
2111
  key: 3,
2112
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"
2113
- }, _o = { 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)]" }, vo = {
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 = {
2114
2114
  key: 4,
2115
2115
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2116
- }, yo = ["aria-label", "title"], bo = /*#__PURE__*/ xr(/* @__PURE__ */ o({
2116
+ }, xo = ["aria-label", "title"], So = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
2117
2117
  __name: "BlockWrapper",
2118
2118
  props: {
2119
2119
  block: {},
@@ -2126,33 +2126,33 @@ var Ha = [
2126
2126
  },
2127
2127
  emits: ["select"],
2128
2128
  setup(t, { emit: n }) {
2129
- let i = b(() => import("./BlockIssueBadge-Dp06vQd3.js")), a = t, o = I(() => a.displayBlock ?? a.block), s = n, { t: l, format: d } = G(), f = g(xn, 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);
2130
2130
  async function _() {
2131
2131
  await j(), p.value?.focus();
2132
2132
  }
2133
2133
  function v(e) {
2134
2134
  f && (e.key === " " || e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), m.value ? f.drop(a.block.id) : f.lift(a.block.id)) : m.value && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), f.cancel(), _()) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), f.moveUp(a.block.id), _()) : e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), f.moveDown(a.block.id), _())));
2135
2135
  }
2136
- let S = I(() => !a.viewport || !o.value.visibility ? !1 : o.value.visibility[a.viewport] === !1), C = I(() => !!(Q?.activeLocale?.value && a.block.l10n?.[Q.activeLocale.value]?.hidden)), E = I(() => a.previewMode === !0 && (S.value || C.value)), ee = I(() => a.viewport ? {
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 ? {
2137
2137
  desktop: l.viewport.desktop,
2138
2138
  mobile: l.viewport.mobile
2139
- }[a.viewport] ?? a.viewport : ""), F = I(() => !!o.value.displayCondition), R = g(gn, null), z = g(ln, null), B = g(Qt, {}), 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), re = H(null), ie = H(null), ae = 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({
2140
2140
  left: "calc(100% + 8px)",
2141
2141
  top: "50%"
2142
- }), oe = H(!1), J = I(() => q.value ?? ie.value), Y = I(() => J.value?.closest(".tpl-body"));
2143
- function X() {
2144
- let e = oe.value, t = q.value, n = ie.value, r = ne.value;
2142
+ }), ae = H(!1), Y = I(() => q.value ?? re.value), X = I(() => Y.value?.closest(".tpl-body"));
2143
+ function Z() {
2144
+ let e = ae.value, t = q.value, n = re.value, r = ne.value;
2145
2145
  if (!t && !n || !r?.offsetWidth) return;
2146
- let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = Y.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2146
+ let i = r.getBoundingClientRect(), a = i.width / r.offsetWidth || 1, o = X.value, s = o ? (o.getBoundingClientRect().left - i.left) / a + o.clientLeft : -Infinity, c = o ? s + o.clientWidth : Infinity, l = getComputedStyle(r).direction === "rtl";
2147
2147
  if (n?.offsetWidth) {
2148
2148
  let t = l ? -4 - n.offsetWidth : r.offsetWidth + 4, i = t >= s + 4 && t + n.offsetWidth + 4 <= c;
2149
2149
  if (e === i) {
2150
- oe.value = !i, j(X);
2150
+ ae.value = !i, j(Z);
2151
2151
  return;
2152
2152
  }
2153
2153
  }
2154
2154
  if (!t?.offsetWidth) return;
2155
- let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = re.value, f = Math.max(28, d?.offsetHeight ? d.offsetTop + d.offsetHeight + 4 : 0), p = Math.max(f + t.offsetHeight / 2, r.offsetHeight / 2), m = u < r.offsetWidth && p + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${p}px` : "50%";
2155
+ let u = Math.max(s + 4, Math.min(r.offsetWidth + 8, c - t.offsetWidth - 4)), d = J.value, f = Math.max(28, d?.offsetHeight ? d.offsetTop + d.offsetHeight + 4 : 0), p = Math.max(f + t.offsetHeight / 2, r.offsetHeight / 2), m = u < r.offsetWidth && p + t.offsetHeight / 2 <= r.offsetHeight + 8 ? `${p}px` : "50%";
2156
2156
  if (u >= r.offsetWidth && n?.offsetWidth && !e && !l) {
2157
2157
  let e = (n.getBoundingClientRect().bottom - i.top) / a + 4 + t.offsetHeight / 2;
2158
2158
  e > r.offsetHeight / 2 && (m = `${e}px`);
@@ -2164,27 +2164,27 @@ var Ha = [
2164
2164
  u = Math.max(s + 4, Math.min(n, c - t.offsetWidth - 4));
2165
2165
  }
2166
2166
  }
2167
- (ae.value.left !== `${u}px` || ae.value.top !== m) && (ae.value = {
2167
+ (ie.value.left !== `${u}px` || ie.value.top !== m) && (ie.value = {
2168
2168
  left: `${u}px`,
2169
2169
  top: m
2170
2170
  });
2171
2171
  }
2172
- x(X), r(I(() => J.value ? [
2172
+ x(Z), r(I(() => Y.value ? [
2173
2173
  ne.value,
2174
2174
  q.value,
2175
+ J.value,
2175
2176
  re.value,
2176
- ie.value,
2177
- Y.value
2178
- ].filter((e) => !!e) : []), X), e(Y, "scroll", X, { passive: !0 });
2179
- let Z = I(() => B.collaboration?.lockOf(a.block.id) ?? null), se = I(() => Z.value?.holder.type === "guest" ? l.collaboration.guest : Z.value?.holder.name ?? ""), ce = I(() => B.collaboration?.agentHighlightOf(a.block.id) ?? B.ai?.highlightOf(a.block.id) ?? null), le = Hn(() => o.value.type === "section" ? o.value.backgroundImage : void 0), ue = Hn(() => o.value.type === "section" ? o.value.wrapper?.backgroundImage : void 0), Q = g(bn, null), de = Q ? bt(Q) : null, fe = g(on, null) ?? de?.content ?? null;
2180
- u([() => Q?.activeLocale?.value, () => de && He(de.settings.value)], X, { flush: "post" });
2181
- let pe = g(zt, void 0), me = I(() => Hi(o.value, {
2182
- backgroundImageUrl: le.value,
2183
- heroBoxWidth: Pn(o.value) ? Rn(o.value, fe?.value, pe) : void 0
2184
- })), he = I(() => Ji(o.value, { backgroundImageUrl: ue.value })), ge = I(() => {
2177
+ X.value
2178
+ ].filter((e) => !!e) : []), Z), e(X, "scroll", Z, { passive: !0 });
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, {
2182
+ backgroundImageUrl: ce.value,
2183
+ heroBoxWidth: In(o.value) ? Bn(o.value, fe?.value, pe) : void 0
2184
+ })), he = I(() => Xi(o.value, { backgroundImageUrl: le.value })), ge = I(() => {
2185
2185
  let e = o.value;
2186
2186
  return e.type === "section" && e.wrapper?.fullWidth === !0 ? e : void 0;
2187
- }), _e = I(() => qi(ge.value?.wrapper?.padding));
2187
+ }), _e = I(() => Yi(ge.value?.wrapper?.padding));
2188
2188
  function ve(e) {
2189
2189
  a.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), s("select"));
2190
2190
  }
@@ -2218,44 +2218,44 @@ var Ha = [
2218
2218
  }, [
2219
2219
  N("div", {
2220
2220
  ref_key: "badgesElement",
2221
- ref: re,
2221
+ ref: J,
2222
2222
  class: "tpl-block-badges tpl:absolute tpl:top-1 tpl:inset-e-1 tpl:z-10 tpl:flex tpl:gap-1"
2223
2223
  }, [
2224
2224
  K.value > 0 && !S.value ? (c(), w("button", {
2225
2225
  key: 0,
2226
2226
  ref_key: "commentElement",
2227
- ref: ie,
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)]", oe.value ? void 0 : "tpl:absolute tpl:-top-2 tpl:inset-s-full tpl:ms-2"]),
2227
+ ref: re,
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"]),
2229
2229
  "aria-label": D(d)(D(l).blockActions.comments, { count: String(K.value) }),
2230
2230
  onClick: n[0] ||= M((e) => D(B).comments?.openForBlock(t.block.id), ["stop"])
2231
- }, [W(D(dr), {
2231
+ }, [W(D(pr), {
2232
2232
  size: 12,
2233
2233
  "stroke-width": 2.5
2234
- }), T(" " + P(K.value), 1)], 10, co)) : k("", !0),
2234
+ }), T(" " + P(K.value), 1)], 10, uo)) : k("", !0),
2235
2235
  W(D(i), { "block-id": t.block.id }, null, 8, ["block-id"]),
2236
- t.previewMode ? k("", !0) : (c(), A(oo, {
2236
+ t.previewMode ? k("", !0) : (c(), A(co, {
2237
2237
  key: 1,
2238
2238
  block: t.block
2239
2239
  }, null, 8, ["block"]))
2240
2240
  ], 512),
2241
- Z.value ? (c(), w("div", {
2241
+ Q.value ? (c(), w("div", {
2242
2242
  key: 0,
2243
2243
  "data-testid": "block-lock",
2244
- "data-lock-holder": Z.value.holder.sessionId,
2244
+ "data-lock-holder": Q.value.holder.sessionId,
2245
2245
  class: "tpl-block-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
2246
2246
  style: L({
2247
- outline: `2px solid ${Z.value.holder.color}`,
2247
+ outline: `2px solid ${Q.value.holder.color}`,
2248
2248
  outlineOffset: "-1px"
2249
2249
  })
2250
2250
  }, [N("span", {
2251
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",
2252
2252
  style: L({
2253
- backgroundColor: Z.value.holder.color,
2254
- color: D(Sr)(Z.value.holder.color)
2253
+ backgroundColor: Q.value.holder.color,
2254
+ color: D(wr)(Q.value.holder.color)
2255
2255
  })
2256
- }, P(D(d)(D(l).collaboration.editing, { name: se.value })), 5)], 12, lo)) : k("", !0),
2257
- ce.value === null ? k("", !0) : (c(), w("div", {
2258
- key: ce.value,
2256
+ }, P(D(d)(D(l).collaboration.editing, { name: oe.value })), 5)], 12, fo)) : k("", !0),
2257
+ se.value === null ? k("", !0) : (c(), w("div", {
2258
+ key: se.value,
2259
2259
  "data-testid": "block-agent-highlight",
2260
2260
  "aria-hidden": "true",
2261
2261
  class: "tpl-block-agent-highlight tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm"
@@ -2264,7 +2264,7 @@ var Ha = [
2264
2264
  key: 2,
2265
2265
  ref_key: "actionsElement",
2266
2266
  ref: q,
2267
- style: L(ae.value),
2267
+ style: L(ie.value),
2268
2268
  role: "toolbar",
2269
2269
  "aria-label": D(l).blockActions.drag,
2270
2270
  class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:top-1/2 tpl:z-20 tpl:flex tpl:-translate-y-1/2 tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-chrome-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
@@ -2278,81 +2278,81 @@ var Ha = [
2278
2278
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2279
2279
  title: D(l).blockActions.drag,
2280
2280
  onKeydown: v
2281
- }, [W(D(mr), {
2281
+ }, [W(D(gr), {
2282
2282
  size: 14,
2283
2283
  "stroke-width": 1.5
2284
- })], 40, fo),
2284
+ })], 40, mo),
2285
2285
  N("button", {
2286
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",
2287
2287
  "aria-label": D(l).blockActions.duplicate,
2288
2288
  title: D(l).blockActions.duplicate,
2289
2289
  onClick: M(be, ["stop"])
2290
- }, [W(D(Xn), {
2290
+ }, [W(D(Qn), {
2291
2291
  size: 14,
2292
2292
  "stroke-width": 1.5
2293
- })], 8, po),
2293
+ })], 8, ho),
2294
2294
  U.value ? (c(), w("button", {
2295
2295
  key: 0,
2296
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",
2297
2297
  "aria-label": D(l).blockActions.saveAsBlock,
2298
2298
  title: D(l).blockActions.saveAsBlock,
2299
2299
  onClick: M(xe, ["stop"])
2300
- }, [W(D(ir), {
2300
+ }, [W(D(or), {
2301
2301
  size: 14,
2302
2302
  "stroke-width": 1.5
2303
- })], 8, mo)) : k("", !0),
2303
+ })], 8, go)) : k("", !0),
2304
2304
  N("button", {
2305
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",
2306
2306
  "aria-label": D(l).blockActions.delete,
2307
2307
  title: D(l).blockActions.delete,
2308
2308
  onClick: M(ye, ["stop"])
2309
- }, [W(D(cr), {
2309
+ }, [W(D(ur), {
2310
2310
  size: 14,
2311
2311
  "stroke-width": 1.5
2312
- })], 8, ho)
2313
- ], 12, uo)) : k("", !0),
2314
- S.value ? (c(), w("div", go, [N("span", _o, [W(D(er), {
2312
+ })], 8, _o)
2313
+ ], 12, po)) : k("", !0),
2314
+ S.value ? (c(), w("div", vo, [N("span", yo, [W(D(nr), {
2315
2315
  size: 12,
2316
2316
  "stroke-width": 1.5
2317
2317
  }), T(" " + P(D(d)(D(l).blockActions.hiddenOnViewport, { viewport: ee.value })), 1)])])) : k("", !0),
2318
- F.value && !S.value ? (c(), w("div", vo, [N("button", {
2318
+ F.value && !S.value ? (c(), w("div", bo, [N("button", {
2319
2319
  "data-testid": "condition-toggle",
2320
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)]",
2321
2321
  "aria-label": D(l).blockActions.conditionToggle,
2322
2322
  title: t.block.displayCondition?.label,
2323
2323
  onClick: M(Se, ["stop"])
2324
- }, [W(D(tr), {
2324
+ }, [W(D(rr), {
2325
2325
  size: 12,
2326
2326
  "stroke-width": 2
2327
- })], 8, yo)])) : k("", !0),
2327
+ })], 8, xo)])) : k("", !0),
2328
2328
  he.value ? (c(), w("div", {
2329
2329
  key: 5,
2330
- class: O(["tpl-section-wrapper tpl-email-surface", D(Ri)(he.value)]),
2330
+ class: O(["tpl-section-wrapper tpl-email-surface", D(Bi)(he.value)]),
2331
2331
  style: L(he.value)
2332
2332
  }, [ge.value ? (c(), w("div", {
2333
2333
  key: 0,
2334
2334
  class: "tpl-band-frame",
2335
2335
  style: L(_e.value)
2336
2336
  }, [N("div", {
2337
- class: O(["tpl-block-content tpl-email-surface", D(Ri)(me.value)]),
2337
+ class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
2338
2338
  style: L(me.value)
2339
2339
  }, [y(e.$slots, "default", {}, void 0, !0)], 6)], 4)) : (c(), w("div", {
2340
2340
  key: 1,
2341
- class: O(["tpl-block-content tpl-email-surface", D(Ri)(me.value)]),
2341
+ class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
2342
2342
  style: L(me.value)
2343
2343
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))], 6)) : (c(), w("div", {
2344
2344
  key: 6,
2345
- class: O(["tpl-block-content tpl-email-surface", D(Ri)(me.value)]),
2345
+ class: O(["tpl-block-content tpl-email-surface", D(Bi)(me.value)]),
2346
2346
  style: L(me.value)
2347
2347
  }, [y(e.$slots, "default", {}, void 0, !0)], 6))
2348
- ], 10, so));
2348
+ ], 10, lo));
2349
2349
  }
2350
2350
  }), [["__scopeId", "data-v-872194d3"]]);
2351
2351
  // src/utils/unwrapParagraph.ts
2352
- function xo(e) {
2352
+ function Co(e) {
2353
2353
  let t = /^\s*<p\b/.exec(e);
2354
2354
  if (!t) return e;
2355
- let n = st(e, t[0].length);
2355
+ let n = lt(e, t[0].length);
2356
2356
  if (n === -1) return e;
2357
2357
  let r = /<\/p>\s*$/.exec(e);
2358
2358
  if (!r || r.index <= n) return e;
@@ -2360,22 +2360,22 @@ function xo(e) {
2360
2360
  return /<\/p>\s*<p\b/i.test(i) ? e : i;
2361
2361
  }
2362
2362
  // src/components/blocks/TitleBlock.vue
2363
- var So = /* @__PURE__ */ o({
2363
+ var wo = /* @__PURE__ */ o({
2364
2364
  __name: "TitleBlock",
2365
2365
  props: {
2366
2366
  block: {},
2367
2367
  viewport: {}
2368
2368
  },
2369
2369
  setup(e) {
2370
- let t = e, n = b(() => import("./TitleEditor-BI-9Nnj3.js")), r = yn(Yt, "TitleBlock"), { isEditing: i, blockRef: o, toolbarPosition: s, resolvedContent: l, handleDoubleClick: u, handleEditorDone: d } = Ia(() => 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(() => {
2371
2371
  let e = {
2372
- fontSize: `${dt[t.block.level]}px`,
2373
- lineHeight: String(Z),
2372
+ fontSize: `${ce[t.block.level]}px`,
2373
+ lineHeight: String(Se),
2374
2374
  fontWeight: "700",
2375
2375
  textAlign: t.block.textAlign
2376
2376
  };
2377
2377
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = r.resolveFontFamily(t.block.fontFamily)), e;
2378
- }), p = I(() => `h${t.block.level}`), m = I(() => Yn(xo(l.value)));
2378
+ }), p = I(() => `h${t.block.level}`), m = I(() => Zn(Co(l.value)));
2379
2379
  return (t, r) => (c(), w("div", {
2380
2380
  ref_key: "blockRef",
2381
2381
  ref: o,
@@ -2401,14 +2401,14 @@ var So = /* @__PURE__ */ o({
2401
2401
  innerHTML: m.value
2402
2402
  }, null, 8, ["innerHTML"]))], 36));
2403
2403
  }
2404
- }), Co = "hero", wo = "#1f2937", To = "#ffffff";
2405
- function Eo(e, t) {
2406
- let n = ft("title", e);
2407
- n.color = To, n.textAlign = "center";
2408
- let r = ft("paragraph", e);
2409
- r.content = `<p style="text-align: center"><span style="color: ${To}">${Do(t)}</span></p>`;
2410
- let i = ft("button", e);
2411
- return i.align = "center", ve({
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({
2412
2412
  columns: "1",
2413
2413
  children: [[
2414
2414
  n,
@@ -2426,28 +2426,28 @@ function Eo(e, t) {
2426
2426
  bottom: 48,
2427
2427
  left: 24
2428
2428
  },
2429
- backgroundColor: wo
2429
+ backgroundColor: Eo
2430
2430
  }
2431
2431
  });
2432
2432
  }
2433
- function Do(e) {
2433
+ function ko(e) {
2434
2434
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
2435
2435
  }
2436
2436
  // src/utils/sectionColumnDrop.ts
2437
- var Oo = /* @__PURE__ */ new Set(["section", Co]);
2438
- function ko(e) {
2439
- return e.dataset.blockType !== "section" && !Oo.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 ?? "");
2440
2440
  }
2441
2441
  // src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
2442
- var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2442
+ var Mo = { class: "tpl:relative tpl:w-full" }, No = {
2443
2443
  key: 0,
2444
2444
  "data-testid": "hero-image-hint",
2445
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)]"
2446
- }, Mo = {
2446
+ }, Po = {
2447
2447
  key: 0,
2448
2448
  "data-testid": "section-drop-hint",
2449
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)]"
2450
- }, No = /* @__PURE__ */ o({
2450
+ }, Fo = /* @__PURE__ */ o({
2451
2451
  __name: "SectionBlock",
2452
2452
  props: {
2453
2453
  block: {},
@@ -2456,46 +2456,21 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2456
2456
  },
2457
2457
  setup(e) {
2458
2458
  let t = {
2459
- title: So,
2460
- paragraph: Ra,
2461
- image: ja,
2462
- button: $i,
2463
- divider: pa,
2464
- custom: da
2465
- }, n = e, { t: r } = G(), o = yn(bn, "SectionBlock"), { displayBlock: s } = bt(o), u = I(() => n.sourceBlock ?? n.block), m = g(nn, I(() => /* @__PURE__ */ new Set()));
2466
- d(nn, I(() => /* @__PURE__ */ new Set([...m.value, ...Object.entries(u.value.l10n ?? {}).filter(([, e]) => e.hidden).map(([e]) => e)])));
2467
- let h = g(ln, null), _ = g(sn, null), v = g(Qt, {}), y = g(Wt, null), b = g(qt, 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);
2468
2468
  function x(e) {
2469
2469
  if (y?.value) return;
2470
2470
  let t = v.savedBlocks;
2471
2471
  t?.isPicking.value ? t.togglePick(n.block.id) : o.selectBlock(e);
2472
2472
  }
2473
- let S = I(() => {
2474
- switch (n.block.columns) {
2475
- case "2": return ["50%", "50%"];
2476
- case "3": return [
2477
- "33.33%",
2478
- "33.33%",
2479
- "33.33%"
2480
- ];
2481
- case "4": return [
2482
- "25%",
2483
- "25%",
2484
- "25%",
2485
- "25%"
2486
- ];
2487
- case "1-2": return ["33.33%", "66.67%"];
2488
- case "2-1": return ["66.67%", "33.33%"];
2489
- case "1-3": return ["25%", "75%"];
2490
- case "3-1": return ["75%", "25%"];
2491
- case "1-2-1": return [
2492
- "25%",
2493
- "50%",
2494
- "25%"
2495
- ];
2496
- default: return ["100%"];
2497
- }
2498
- }), C = I(() => {
2473
+ let S = I(() => Ne(n.block).map((e) => `${e}%`)), C = I(() => {
2499
2474
  let e = S.value.length, t = [...(o.state.previewMode ? n.block : u.value).children];
2500
2475
  for (; t.length < e;) t.push([]);
2501
2476
  return t.slice(0, e);
@@ -2515,7 +2490,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2515
2490
  }
2516
2491
  let R = I(() => {
2517
2492
  if (o.state.previewMode) return !1;
2518
- let e = Ve(n.block);
2493
+ let e = ke(n.block);
2519
2494
  return e !== null && !e.applied && e.reason === "image";
2520
2495
  });
2521
2496
  function B(e) {
@@ -2525,10 +2500,10 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2525
2500
  return E(e).length === 0 && o.state.previewMode;
2526
2501
  }
2527
2502
  function K(e, t) {
2528
- y?.value || za(o, t, n.block.id, e);
2503
+ y?.value || Va(o, t, n.block.id, e);
2529
2504
  }
2530
2505
  function ne(e) {
2531
- return Ni(e, _, t);
2506
+ return Fi(e, _, t);
2532
2507
  }
2533
2508
  function q(e, t) {
2534
2509
  y?.value || e.type !== "custom" || o.updateBlock(e.id, {
@@ -2536,7 +2511,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2536
2511
  dataSourceFetched: t.dataSourceFetched
2537
2512
  });
2538
2513
  }
2539
- return (t, u) => (c(), w("div", Ao, [R.value ? (c(), w("div", jo, [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", {
2540
2515
  key: d,
2541
2516
  class: O(["tpl:relative tpl:flex tpl:flex-col tpl:rounded", B(d) ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
2542
2517
  style: L({ width: T.value ? "100%" : S.value[d] })
@@ -2546,7 +2521,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2546
2521
  group: {
2547
2522
  name: "blocks",
2548
2523
  pull: !0,
2549
- put: (e, t, n) => D(ko)(n)
2524
+ put: (e, t, n) => D(jo)(n)
2550
2525
  },
2551
2526
  animation: 150,
2552
2527
  "ghost-class": "tpl-ghost",
@@ -2560,12 +2535,12 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2560
2535
  "tpl:min-h-[60px]": F(d),
2561
2536
  "tpl:min-h-[34px]": te(d)
2562
2537
  }]),
2563
- onUpdate: (e) => !D(y) && D(za)(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),
2564
2539
  onStart: (e) => M.value = d,
2565
2540
  onEnd: u[0] ||= (e) => M.value = null,
2566
2541
  "onUpdate:modelValue": (e) => K(d, e)
2567
2542
  }, {
2568
- default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(bo, {
2543
+ default: l(() => [(c(!0), w(U, null, p(E(d), (t) => f((c(), w("div", { key: t.id }, [W(So, {
2569
2544
  block: t,
2570
2545
  "display-block": D(s)(t),
2571
2546
  "is-selected": D(o).state.selectedBlockId === t.id,
@@ -2602,14 +2577,14 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2602
2577
  "onUpdate",
2603
2578
  "onStart",
2604
2579
  "onUpdate:modelValue"
2605
- ]), B(d) ? (c(), w("div", Mo, [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)]));
2606
2581
  }
2607
- }), Po = ["width", "height"], Fo = [
2582
+ }), Io = ["width", "height"], Lo = [
2608
2583
  "d",
2609
2584
  "stroke",
2610
2585
  "stroke-opacity",
2611
2586
  "stroke-width"
2612
- ], Io = ["d", "fill"], Lo = /* @__PURE__ */ o({
2587
+ ], Ro = ["d", "fill"], zo = /* @__PURE__ */ o({
2613
2588
  __name: "SocialIconSvg",
2614
2589
  props: {
2615
2590
  platform: {},
@@ -2618,7 +2593,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2618
2593
  iconSize: {}
2619
2594
  },
2620
2595
  setup(e) {
2621
- let t = e, n = I(() => Ln[t.platform]), r = I(() => zn[t.iconSize]), i = I(() => Ie(t.platform, t.iconTone)), a = I(() => ot(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(() => {
2622
2597
  let e = {
2623
2598
  display: "inline-flex",
2624
2599
  alignItems: "center",
@@ -2656,7 +2631,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2656
2631
  };
2657
2632
  default: return e;
2658
2633
  }
2659
- }), s = I(() => Ye(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
2634
+ }), s = I(() => Ee(t.iconStyle)), l = I(() => Math.floor(r.value * s.value));
2660
2635
  function u(e) {
2661
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}`;
2662
2637
  return `0 0 0 ${t} ${i}, inset 0 0 0 ${t} ${i}`;
@@ -2677,15 +2652,15 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2677
2652
  "stroke-opacity": a.value.opacity,
2678
2653
  "stroke-width": a.value.width / s.value,
2679
2654
  "stroke-linejoin": "round"
2680
- }, null, 8, Fo)) : k("", !0), N("path", {
2655
+ }, null, 8, Lo)) : k("", !0), N("path", {
2681
2656
  d: n.value.path,
2682
2657
  fill: d.value
2683
- }, null, 8, Io)], 8, Po))], 4));
2658
+ }, null, 8, Ro)], 8, Io))], 4));
2684
2659
  }
2685
- }), Ro = { class: "tpl:w-full" }, zo = ["href"], Bo = {
2660
+ }), Bo = { class: "tpl:w-full" }, Vo = ["href"], Ho = {
2686
2661
  key: 1,
2687
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)]"
2688
- }, Vo = /* @__PURE__ */ o({
2663
+ }, Uo = /* @__PURE__ */ o({
2689
2664
  __name: "SocialIconsBlock",
2690
2665
  props: {
2691
2666
  block: {},
@@ -2698,7 +2673,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2698
2673
  gap: `${t.block.spacing}px`,
2699
2674
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
2700
2675
  })), i = I(() => t.block.icons.length > 0);
2701
- return (t, a) => (c(), w("div", Ro, [i.value ? (c(), w("div", {
2676
+ return (t, a) => (c(), w("div", Bo, [i.value ? (c(), w("div", {
2702
2677
  key: 0,
2703
2678
  style: L(r.value)
2704
2679
  }, [(c(!0), w(U, null, p(e.block.icons, (t) => (c(), w("a", {
@@ -2706,7 +2681,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2706
2681
  href: t.url || "#",
2707
2682
  class: "tpl:cursor-default",
2708
2683
  onClick: a[0] ||= M(() => {}, ["prevent"])
2709
- }, [W(Lo, {
2684
+ }, [W(zo, {
2710
2685
  platform: t.platform,
2711
2686
  "icon-style": e.block.iconStyle,
2712
2687
  "icon-tone": e.block.iconTone,
@@ -2716,46 +2691,46 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2716
2691
  "icon-style",
2717
2692
  "icon-tone",
2718
2693
  "icon-size"
2719
- ])], 8, zo))), 128))], 4)) : (c(), w("div", Bo, [W(D(lr), { 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)]))]));
2720
2695
  }
2721
- }), Ho = { class: "tpl:w-full" }, Uo = {
2696
+ }), Wo = { class: "tpl:w-full" }, Go = {
2722
2697
  key: 0,
2723
2698
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
2724
2699
  style: {
2725
2700
  "background-color": "var(--tpl-bg-hover)",
2726
2701
  color: "var(--tpl-text-dim)"
2727
2702
  }
2728
- }, Wo = /* @__PURE__ */ o({
2703
+ }, Ko = /* @__PURE__ */ o({
2729
2704
  __name: "SpacerBlock",
2730
2705
  props: {
2731
2706
  block: {},
2732
2707
  viewport: {}
2733
2708
  },
2734
2709
  setup(e) {
2735
- let t = e, n = yn(bn, "SpacerBlock"), r = I(() => ({
2710
+ let t = e, n = xn(Sn, "SpacerBlock"), r = I(() => ({
2736
2711
  height: `${t.block.height}px`,
2737
2712
  minHeight: `${t.block.height}px`,
2738
2713
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
2739
2714
  }));
2740
- return (t, i) => (c(), w("div", Ho, [N("div", {
2715
+ return (t, i) => (c(), w("div", Wo, [N("div", {
2741
2716
  style: L(r.value),
2742
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 }])
2743
- }, [D(n).state.previewMode ? k("", !0) : (c(), w("span", Uo, 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)]));
2744
2719
  }
2745
- }), Go = { class: "tpl:w-full" }, Ko = { key: 0 }, qo = [
2720
+ }), qo = { class: "tpl:w-full" }, Jo = { key: 0 }, Yo = [
2746
2721
  "aria-label",
2747
2722
  "contenteditable",
2748
2723
  "data-placeholder",
2749
2724
  "onBlur"
2750
- ], Jo = [
2725
+ ], Xo = [
2751
2726
  "aria-label",
2752
2727
  "contenteditable",
2753
2728
  "data-placeholder",
2754
2729
  "onBlur"
2755
- ], Yo = {
2730
+ ], Zo = {
2756
2731
  key: 1,
2757
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)]"
2758
- }, Xo = /*#__PURE__*/ xr(/* @__PURE__ */ o({
2733
+ }, Qo = /*#__PURE__*/ Cr(/* @__PURE__ */ o({
2759
2734
  __name: "TableBlock",
2760
2735
  props: {
2761
2736
  block: {},
@@ -2769,7 +2744,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2769
2744
  updated(e, t) {
2770
2745
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
2771
2746
  }
2772
- }, n = e, { t: r } = G(), i = yn(bn, "TableBlock"), a = yn(Yt, "TableBlock"), o = g(Wt, 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(() => {
2773
2748
  let e = {
2774
2749
  width: "100%",
2775
2750
  borderCollapse: "collapse",
@@ -2801,11 +2776,11 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2801
2776
  } : n);
2802
2777
  i.updateBlock(n.block.id, { rows: s });
2803
2778
  }
2804
- return (e, n) => (c(), w("div", Go, [s.value ? (c(), w("table", {
2779
+ return (e, n) => (c(), w("div", qo, [s.value ? (c(), w("table", {
2805
2780
  key: 0,
2806
2781
  style: L(l.value),
2807
2782
  class: "tpl-table-editable"
2808
- }, [m.value ? (c(), w("thead", Ko, [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", {
2809
2784
  key: e.id,
2810
2785
  style: L(d.value),
2811
2786
  "aria-label": D(r).table.cellPlaceholder,
@@ -2814,7 +2789,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2814
2789
  onBlur: (t) => v(m.value.id, e.id, t),
2815
2790
  onKeydown: n[0] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2816
2791
  onClick: M(_, ["stop"])
2817
- }, null, 44, qo)), [[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", {
2818
2793
  key: i.id,
2819
2794
  style: L(u.value),
2820
2795
  "aria-label": D(r).table.cellPlaceholder,
@@ -2823,9 +2798,9 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2823
2798
  onBlur: (t) => v(e.id, i.id, t),
2824
2799
  onKeydown: n[1] ||= E(M((e) => e.target.blur(), ["prevent"]), ["enter"]),
2825
2800
  onClick: M(_, ["stop"])
2826
- }, null, 44, Jo)), [[t, i.content]])), 128))]))), 128))])], 4)) : (c(), w("div", Yo, [W(D(pr), { 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)]))]));
2827
2802
  }
2828
- }), [["__scopeId", "data-v-73b9f5e5"]]), Zo = /* @__PURE__ */ o({
2803
+ }), [["__scopeId", "data-v-73b9f5e5"]]), $o = /* @__PURE__ */ o({
2829
2804
  __name: "VideoPlayButton",
2830
2805
  props: { hoverEffect: {
2831
2806
  type: Boolean,
@@ -2842,7 +2817,7 @@ var Ao = { class: "tpl:relative tpl:w-full" }, jo = {
2842
2817
  }
2843
2818
  });
2844
2819
  // src/utils/videoThumbnail.ts
2845
- function Qo(e) {
2820
+ function es(e) {
2846
2821
  if (!e) return {
2847
2822
  platform: "unknown",
2848
2823
  videoId: null,
@@ -2874,24 +2849,24 @@ function Qo(e) {
2874
2849
  thumbnailUrl: null
2875
2850
  };
2876
2851
  }
2877
- function $o(e, t) {
2878
- return t || Qo(e).thumbnailUrl;
2852
+ function ts(e, t) {
2853
+ return t || es(e).thumbnailUrl;
2879
2854
  }
2880
2855
  // src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
2881
- var es = ["src", "alt"], ts = {
2856
+ var ns = ["src", "alt"], rs = {
2882
2857
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2883
2858
  style: { opacity: "0.7" }
2884
- }, ns = ["href"], rs = ["src", "alt"], is = ["src", "alt"], as = {
2859
+ }, is = ["href"], as = ["src", "alt"], os = ["src", "alt"], ss = {
2885
2860
  key: 3,
2886
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)]"
2887
- }, os = /* @__PURE__ */ o({
2862
+ }, cs = /* @__PURE__ */ o({
2888
2863
  __name: "VideoBlock",
2889
2864
  props: {
2890
2865
  block: {},
2891
2866
  viewport: {}
2892
2867
  },
2893
2868
  setup(e) {
2894
- let t = e, { t: n } = G(), { syntax: r } = K(), i = I(() => Ee(t.block.url, r) || Ee(t.block.thumbnailUrl, r)), a = Mn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Mn(() => i.value ? t.block.placeholderUrl : void 0), s = I(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : $o(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(() => {
2895
2870
  let e = t.block.align;
2896
2871
  return {
2897
2872
  maxWidth: "100%",
@@ -2901,7 +2876,7 @@ var es = ["src", "alt"], ts = {
2901
2876
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2902
2877
  marginRight: e === "center" ? "auto" : void 0
2903
2878
  };
2904
- }), d = I(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = I(() => Ee(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);
2905
2880
  return (t, r) => (c(), w("div", {
2906
2881
  class: "tpl:w-full",
2907
2882
  style: L(l.value)
@@ -2914,16 +2889,16 @@ var es = ["src", "alt"], ts = {
2914
2889
  src: D(o),
2915
2890
  alt: e.block.alt,
2916
2891
  style: L(d.value)
2917
- }, null, 12, es), W(Zo)], 4)) : i.value ? (c(), w("div", {
2892
+ }, null, 12, ns), W($o)], 4)) : i.value ? (c(), w("div", {
2918
2893
  key: 1,
2919
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)]",
2920
2895
  style: L([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
2921
- }, [W(D(fr), {
2896
+ }, [W(D(mr), {
2922
2897
  size: 36,
2923
2898
  "stroke-width": 1.5,
2924
2899
  class: "tpl:text-[var(--tpl-primary)]",
2925
2900
  style: { opacity: "0.5" }
2926
- }), N("span", ts, [W(Zi, { 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", {
2927
2902
  key: 0,
2928
2903
  href: e.block.url,
2929
2904
  target: "_blank",
@@ -2936,7 +2911,7 @@ var es = ["src", "alt"], ts = {
2936
2911
  src: s.value,
2937
2912
  alt: e.block.alt,
2938
2913
  style: L(d.value)
2939
- }, null, 12, rs), W(Zo, { "hover-effect": "" })], 12, ns)) : (c(), w("div", {
2914
+ }, null, 12, as), W($o, { "hover-effect": "" })], 12, is)) : (c(), w("div", {
2940
2915
  key: 1,
2941
2916
  class: "tpl:relative tpl:inline-block",
2942
2917
  style: L(u.value)
@@ -2945,53 +2920,53 @@ var es = ["src", "alt"], ts = {
2945
2920
  src: s.value,
2946
2921
  alt: e.block.alt,
2947
2922
  style: L(d.value)
2948
- }, null, 12, is), W(Zo)], 4))], 64)) : (c(), w("div", as, [W(D(fr), {
2923
+ }, null, 12, os), W($o)], 4))], 64)) : (c(), w("div", ss, [W(D(mr), {
2949
2924
  size: 40,
2950
2925
  "stroke-width": 1.5,
2951
2926
  class: "tpl:text-[var(--tpl-border-light)]"
2952
2927
  }), N("span", null, P(D(n).video.addVideo), 1)]))], 4));
2953
2928
  }
2954
- }), ss = {
2955
- section: No,
2956
- title: So,
2957
- paragraph: Ra,
2958
- image: ja,
2959
- button: $i,
2960
- divider: pa,
2961
- video: os,
2962
- social: Vo,
2963
- menu: Fa,
2964
- table: Xo,
2965
- spacer: Wo,
2966
- html: ya,
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,
2967
2942
  countdown: b(() => import("./CountdownBlock--hlKE2aj.js"))
2968
2943
  };
2969
- function cs(t) {
2970
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: s } = G(i), c = I(() => We(We(We(ci(i), Oi(n.content.value.settings?.locale)), He(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" ? {
2971
2946
  title: { textAlign: "right" },
2972
2947
  table: { textAlign: "right" }
2973
2948
  } : {}), r.blockDefaults ?? {}));
2974
2949
  n.setUiTheme(r.uiTheme ?? "auto");
2975
- let { resolvedTheme: l } = $r(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Mr({
2950
+ let { resolvedTheme: l } = ti(I(() => n.state.uiTheme)), f = H(r.theme ?? {}), { themeStyles: p } = Pr({
2976
2951
  themeOverrides: f,
2977
2952
  resolvedTheme: l,
2978
2953
  extraStyles: () => ({
2979
2954
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
2980
2955
  ...t.themeExtraStyles?.()
2981
2956
  })
2982
- }), m = t.history ?? En({
2957
+ }), m = t.history ?? On({
2983
2958
  content: n.content,
2984
2959
  setContent: (e, t) => n.setContent(e, t)
2985
2960
  });
2986
- t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : An(n, m);
2987
- let h = Gn({
2961
+ t.history ? n.contentReplaced && u(n.contentReplaced, () => m.clear(), { flush: "sync" }) : Mn(n, m);
2962
+ let h = qn({
2988
2963
  addBlock: n.addBlock,
2989
2964
  removeBlock: n.removeBlock,
2990
2965
  updateBlock: n.updateBlock,
2991
2966
  selectBlock: n.selectBlock,
2992
2967
  findBlockLocation: n.findBlockLocation,
2993
2968
  blockDefaults: () => c.value
2994
- }), g = kn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? jn({
2969
+ }), g = jn(n), _ = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? Nn({
2995
2970
  content: n.content,
2996
2971
  isDirty: () => n.state.isDirty,
2997
2972
  ...t.autoSaveOptions
@@ -2999,27 +2974,27 @@ function cs(t) {
2999
2974
  _ && (y = u(m.isNavigating, (e) => {
3000
2975
  e ? _.pause() : _.resume();
3001
2976
  }));
3002
- let b = Qr(n, {
2977
+ let b = ei(n, {
3003
2978
  t: o,
3004
2979
  format: s
3005
- }, r.customBlocks ?? []), x = gt(r.colors);
2980
+ }, r.customBlocks ?? []), x = vt(r.colors);
3006
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) {
3007
- let e = si(x.presets, r.blockDefaults, r.templateDefaults);
2982
+ let e = li(x.presets, r.blockDefaults, r.templateDefaults);
3008
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.`);
3009
2984
  }
3010
- let S = Kn(r.templateSettings);
3011
- for (let e of S.unknown) $.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${qn.join(", ")}) — skipping it.`);
3012
- let w = Er();
3013
- ii(w, ss);
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);
3014
2989
  let T = /* @__PURE__ */ new Set();
3015
2990
  function E(e) {
3016
2991
  for (let t of e) {
3017
- w.registerCustom(t, da);
3018
- for (let e of ki(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));
3019
2994
  }
3020
2995
  }
3021
2996
  r.customBlocks?.length && E(r.customBlocks);
3022
- let D = Ur();
2997
+ let D = Gr();
3023
2998
  if (C() && v(D.dispose), t.containerEl) {
3024
2999
  let n = t.containerEl;
3025
3000
  e(document, "pointerdown", (e) => {
@@ -3032,7 +3007,7 @@ function cs(t) {
3032
3007
  e ? e.save() : _?.flush();
3033
3008
  }
3034
3009
  function ee(e) {
3035
- D.isActive() && ji(e, {
3010
+ D.isActive() && Ni(e, {
3036
3011
  history: m,
3037
3012
  selectBlock: (e) => n.selectBlock(e),
3038
3013
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -3045,45 +3020,45 @@ function cs(t) {
3045
3020
  }
3046
3021
  e(document, "keydown", ee);
3047
3022
  let k = H(null), A = t.editorRoot ?? document;
3048
- d(Cn, A), d(pn, k), d(Tt, /* @__PURE__ */ new Map()), d(Jt, i), d(bn, n), d(Sn, m), d(gn, h), d(ln, g), d(Yt, a), d(rn, p), d(Zt, l), d(Xt, c), d(_n, r.locale), d(sn, w), d(tn, r.customBlocks ?? []), d(jt, r.paletteBlocks), d(Rt, ai(r.htmlBlockPreview)), d(zt, r.layout), d(xt, r.sectionWrapper), d(fn, x), d(hn, S.fields), d(en, ei(n.content, w));
3049
- 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);
3050
3025
  for (let e of ["opener", "closer"]) {
3051
3026
  let t = j[e];
3052
3027
  typeof t == "string" && t.trim() === "" && $.warn(`config.mergeTags.syntax.${e} is blank — ignoring it.`);
3053
3028
  }
3054
- typeof j.opener != "string" && typeof j.closer == "string" && j.closer.trim() !== "" && Oe(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.");
3055
3030
  let M = R(r.mergeTags?.tags ?? []);
3056
3031
  function N(e) {
3057
3032
  Array.isArray(e) ? M.value = e : $.warn(`setMergeTags() expects an array of merge tags, received ${typeof e} — ignoring.`);
3058
3033
  }
3059
- d(It, M), d(Ct, j), d(Dt, r.mergeTags?.onRequest ?? null), d(Et, r.mergeTags?.autocomplete !== !1), d(wn, r.mergeTags?.showRawValue !== !1);
3060
- let P = H(De(r.mergeTags?.tags ?? []));
3061
- d(Lt, P);
3062
- let F = Kr({
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({
3063
3038
  resolvePreview: r.resolvePreview,
3064
3039
  surface: "preview",
3065
3040
  getContent: () => {
3066
3041
  let e = n.content.value;
3067
3042
  if (!n.state.previewMode) return e;
3068
- let t = n.activeLocale?.value ?? e.settings.locale ?? "en", i = ze(e, t);
3069
- return r.layout ? et(ze(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;
3070
3045
  },
3071
3046
  isActive: () => n.state.previewMode,
3072
3047
  getLocale: () => n.activeLocale?.value ?? n.content.value.settings.locale
3073
3048
  });
3074
- d(At, F), d(Gt, r.resolvePreview);
3049
+ d(Mt, F), d(qt, r.resolvePreview);
3075
3050
  let L = null;
3076
- d(Ut, (e) => (L = e, () => {
3051
+ d(Gt, (e) => (L = e, () => {
3077
3052
  L === e && (L = null);
3078
3053
  }));
3079
3054
  let z = () => (L ?? F.refresh)(), B = I(() => !(n.state.previewMode && F.isConfigured));
3080
- d(qt, B);
3081
- let V = qr();
3082
- d(kt, V), d(Mt, H(!1)), d(Pt, H(!1)), d(an, r.logicTags?.tags ?? []), d(St, r.logicTags?.pairs ?? []), d(Bt, r.logicTags?.onRequest ?? null), d(Nt, Jr()), d(Ht, r.onRequestMedia ?? null), d(vn, r.canDropMedia ?? null), d(wt, r.resolveImageUrl ? Un(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(Kt, r.displayConditions?.conditions ?? []), d(mn, r.displayConditions?.allowCustom ?? !1), d(Ot, r.displayConditions?.onRequest ?? null), d(Qt, t.capabilities ?? {}), d(xn, b);
3083
- let U = Yr(r.lint) ? null : Zr({
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({
3084
3059
  content: n.content,
3085
3060
  get options() {
3086
- return Wr({
3061
+ return Kr({
3087
3062
  ...r,
3088
3063
  content: n.content.value,
3089
3064
  contentLocale: n.activeLocale?.value ?? void 0
@@ -3095,7 +3070,7 @@ function cs(t) {
3095
3070
  updateSettings: n.updateSettings,
3096
3071
  removeBlock: n.removeBlock
3097
3072
  });
3098
- d(un, U);
3073
+ d(fn, U);
3099
3074
  function W() {
3100
3075
  y?.(), U?.destroy(), _?.destroy(), m.destroy();
3101
3076
  }
@@ -3126,14 +3101,14 @@ function cs(t) {
3126
3101
  };
3127
3102
  }
3128
3103
  // src/composables/useSmallScreenNotice.ts
3129
- var ls = "(max-width: 767px)";
3130
- function us(e) {
3131
- let n = t(ls);
3104
+ var ds = "(max-width: 767px)";
3105
+ function fs(e) {
3106
+ let n = t(ds);
3132
3107
  return {
3133
3108
  isSmallScreen: n,
3134
3109
  showNotice: I(() => (F(e) ?? !0) && n.value)
3135
3110
  };
3136
3111
  }
3137
- export { wi as A, Ar as B, qi as C, Yi as D, Mi as E, yi as F, wr as H, Kr as I, Wr as L, Si as M, xi as N, Ni as O, bi as P, zr as R, Ri as S, Ui as T, Tr as V, pa as _, Wo as a, $i as b, Co as c, bo as d, za as f, ya as g, ja as h, Xo as i, Ci as j, gi as k, Eo as l, Fa as m, cs as n, Vo as o, Ra as p, os as r, No as s, us as t, So as u, da as v, Hi as w, Fi as x, na as y, Lr 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 };
3138
3113
 
3139
- //# sourceMappingURL=composables-DY3anqHO.js.map
3114
+ //# sourceMappingURL=composables-Brr4m0Sg.js.map