@templatical/editor 0.59.2 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/dist/{AiAltTextPopover-BhWHOOKX.js → AiAltTextPopover-DiIaqDtB.js} +1 -1
  2. package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-DIe0WBbj.js} +1 -1
  3. package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-aj2TPO9F.js} +8 -8
  4. package/dist/{AiPanels-C8M7q_vM.js → AiPanels-CRM3jf82.js} +1 -1
  5. package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-F3GyXBsk.js} +8 -8
  6. package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DlhA_I6J.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DYspUXMO.js} +19 -44
  8. package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-CAMn545-.js} +3 -3
  9. package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-CnfS8BQy.js} +1 -1
  10. package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-DufLdLQP.js} +1 -1
  11. package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-C2hFFs0o.js} +1 -1
  12. package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-CgEwxt2T.js} +10 -10
  13. package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-CNqYDevp.js} +4 -4
  14. package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-cPKhimE9.js} +9 -9
  15. package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-zxlpmw2x.js} +12 -12
  16. package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-PIfpvCCI.js} +2 -2
  17. package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-DqTkGJSR.js} +16 -16
  18. package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
  19. package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
  20. package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-Jly1Pw0v.js} +1 -1
  21. package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-5kaFLRAm.js} +4 -4
  22. package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CCfirhcR.js} +5 -5
  23. package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-DTdnxgDZ.js} +43 -43
  24. package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-cUYu3Xqs.js} +3 -3
  25. package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-Aub9tOHF.js} +4 -4
  26. package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-D_ie3uIF.js} +7 -7
  27. package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-fhSnYT1l.js} +9 -9
  28. package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-CpWkCa8G.js} +2 -2
  30. package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-BJ4a8RBr.js} +8 -8
  31. package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-BEoapoDc.js} +8 -8
  32. package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-DgyzokCf.js} +1 -1
  33. package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor-BQoSPgOi.js} +9 -9
  34. package/dist/{Toolbar-BOf7Y862.js → Toolbar-KhPpWyX1.js} +857 -756
  35. package/dist/{TplModal-DAcXzBJh.js → TplModal-F_kA7luG.js} +1 -1
  36. package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-Bz4G8cNm.js} +5 -5
  37. package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
  38. package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-BeppXZyn.js} +1 -1
  39. package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-Ds7yfbhg.js} +3 -3
  40. package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-Do1QqDjg.js} +3 -3
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -3
  43. package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-CUzIaLRK.js} +2 -2
  44. package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
  45. package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-BXBlE71X.js} +2 -2
  46. package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
  47. package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-BKydciDQ.js} +2 -2
  48. package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-De-cIZ4p.js} +2 -2
  50. package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
  51. package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C9vBUTIB.js} +6 -6
  52. package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
  53. package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-B3CTTvgw.js} +2 -2
  54. package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-B4Bj--kc.js} +20 -45
  56. package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.js.map +1 -0
  57. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -1
  58. package/dist/cdn/chunks/{CloudPanels-D8fchoYt.js → CloudPanels-CQ75I3hQ.js} +3 -3
  59. package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
  60. package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CgLea-hu.js} +2 -2
  61. package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
  62. package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CjRcbebT.js} +2 -2
  63. package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
  64. package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-D_ud9GMN.js} +2 -2
  65. package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
  66. package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-CXn1EGAI.js} +2 -2
  67. package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
  68. package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
  69. package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BOyk_4k7.js} +5 -5
  70. package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
  71. package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-DOC94ZsH.js} +4 -4
  72. package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
  73. package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-DktneIpL.js} +7 -7
  74. package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
  75. package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-B2NgnHoP.js} +2 -2
  76. package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
  77. package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-CQ8RiOou.js} +5 -5
  78. package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
  79. package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
  80. package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
  81. package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
  82. package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
  83. package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-D7FZ0ca0.js} +2 -2
  84. package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
  85. package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-CySCCEDs.js} +3 -3
  86. package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
  87. package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-DJbWTYVH.js} +7 -7
  88. package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
  89. package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-DAQUWqQJ.js} +23 -23
  90. package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
  91. package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-COTRe_rM.js} +3 -3
  92. package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
  93. package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-DeWPMd9V.js} +4 -4
  94. package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
  95. package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-adQMbKR1.js} +6 -6
  96. package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
  97. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CGIFCRAx.js} +6 -6
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
  99. package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
  100. package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
  101. package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-DmleyUrn.js} +3 -3
  102. package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
  103. package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings-Csjef99q.js} +6 -6
  104. package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
  105. package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-ClkexOtF.js} +7 -7
  106. package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
  107. package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-DYEYzhU2.js} +2 -2
  108. package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
  109. package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-opvaIgVr.js} +8 -8
  110. package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
  111. package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
  112. package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-DbqkKRXy.js} +771 -670
  113. package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
  114. package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DLV5OeMD.js} +2 -2
  115. package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
  116. package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-DBd0zwjE.js} +2 -2
  117. package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
  118. package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
  119. package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
  120. package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-D-yHxWWY.js} +2 -2
  121. package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
  122. package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-Ce_k8m_x.js} +4 -4
  123. package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
  124. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
  125. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
  126. package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-Ce3NmK9v.js} +8 -1
  127. package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
  128. package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-Brr4m0Sg.js} +566 -591
  129. package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
  130. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-QPeg45XL.js} +3 -3
  131. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
  132. package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
  133. package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
  134. package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
  135. package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
  137. package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
  138. package/dist/cdn/chunks/en-DkulseE1.js +1 -0
  139. package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
  140. package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
  141. package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
  142. package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
  143. package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BpuyqKVY.js} +5 -5
  144. package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
  145. package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-D3MjrsgQ.js} +8 -1
  146. package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
  147. package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
  148. package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
  149. package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +7 -2
  150. package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
  151. package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
  152. package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
  153. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-B81BAWKT.js} +64 -64
  154. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
  155. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-CQuaMxuv.js} +2 -2
  156. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
  157. package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
  158. package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
  159. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-BdAjvU9I.js} +2 -2
  160. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
  161. package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-Df9dNe7I.js} +495 -517
  162. package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
  163. package/dist/cdn/chunks/{src-BmzzkUf7.js → src-B3v_3j9b.js} +436 -404
  164. package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
  165. package/dist/cdn/chunks/{src-DY2kMjoD.js → src-BHgVGOTi.js} +771 -667
  166. package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
  167. package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
  168. package/dist/cdn/chunks/src-C5V_yzAU.js.map +1 -0
  169. package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
  170. package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
  171. package/dist/cdn/chunks/useLocalizedDisplay-C3lIetmX.js +33 -0
  172. package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
  173. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-DOIlsGk8.js} +2 -2
  174. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
  175. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-DUNl364g.js} +2 -2
  176. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-DUNl364g.js.map} +1 -1
  177. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-ufGLu2Vt.js} +2 -2
  178. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-ufGLu2Vt.js.map} +1 -1
  179. package/dist/cdn/editor.js +109 -109
  180. package/dist/cdn/editor.js.map +1 -1
  181. package/dist/{check-ErKdPXG6.js → check-CWq6Nfjj.js} +1 -1
  182. package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
  183. package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
  184. package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
  185. package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
  186. package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
  187. package/dist/{composables-CFTH0Nqb.js → composables-5KJV0O9T.js} +914 -939
  188. package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-BdoKeYJi.js} +2 -2
  189. package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
  190. package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
  191. package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
  192. package/dist/dist-AyAOL8Bj.js +4 -0
  193. package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
  194. package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
  195. package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
  196. package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
  197. package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
  198. package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
  199. package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
  200. package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
  201. package/dist/dist-DkPTWQuO.js +4 -0
  202. package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
  203. package/dist/{dist-CMo4K5So.js → dist-DsA7NeIy.js} +798 -696
  204. package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
  205. package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
  206. package/dist/en-DwxgN_-Y.js +1 -0
  207. package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
  208. package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
  209. package/dist/{extensions-BPVackEE.js → extensions-DCJGAZ9z.js} +73 -73
  210. package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
  211. package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -3
  212. package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
  213. package/dist/index.d.ts +37 -7
  214. package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
  215. package/dist/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -1
  216. package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
  217. package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
  218. package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
  219. package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
  220. package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
  221. package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
  222. package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
  223. package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
  224. package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-D3GzENVB.js} +3 -3
  226. package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
  227. package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
  228. package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
  229. package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-BcbjlypU.js} +6 -6
  230. package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
  231. package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
  232. package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
  233. package/dist/{socialIcons-DBHv_ntg.js → socialIcons-By2LPWOQ.js} +561 -583
  234. package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
  235. package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
  236. package/dist/templatical-editor.js +139 -139
  237. package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
  238. package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
  239. package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
  240. package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
  241. package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
  242. package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-f0SJ1Cd2.js} +1 -1
  243. package/dist/{useMergeTag-Bams_kam.js → useMergeTag-0-EudwkV.js} +3 -3
  244. package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-CtM_ydOS.js} +1 -1
  245. package/dist/withCurrentFont-BOg3jmCT.js +18 -0
  246. package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.js} +1 -1
  247. package/package.json +22 -22
  248. package/dist/cdn/chunks/AiAltTextPopover-CcX_OMUU.js.map +0 -1
  249. package/dist/cdn/chunks/AiAltTextReview-Dmm3h0jd.js.map +0 -1
  250. package/dist/cdn/chunks/AiChatPanel-DV23DJ-2.js.map +0 -1
  251. package/dist/cdn/chunks/AiPanels-CxhOpMAp.js.map +0 -1
  252. package/dist/cdn/chunks/AiRewriteMenu-87-O514r.js.map +0 -1
  253. package/dist/cdn/chunks/BlockIssueBadge-Dp06vQd3.js.map +0 -1
  254. package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +0 -1
  255. package/dist/cdn/chunks/CloudPanels-D8fchoYt.js.map +0 -1
  256. package/dist/cdn/chunks/CollaborationNotices-DNEs3g9B.js.map +0 -1
  257. package/dist/cdn/chunks/CollaboratorBar-CN6XAlbn.js.map +0 -1
  258. package/dist/cdn/chunks/CommentsPanel-CxZ1kFcK.js.map +0 -1
  259. package/dist/cdn/chunks/CommentsSidebar-DCr2mV8b.js.map +0 -1
  260. package/dist/cdn/chunks/CountdownToolbar-CUTbVPPV.js.map +0 -1
  261. package/dist/cdn/chunks/IssuesPanel-BhcSzwuL.js.map +0 -1
  262. package/dist/cdn/chunks/LanguageMenu-6wGhkyFT.js.map +0 -1
  263. package/dist/cdn/chunks/LocaleNotices-Br92Xueo.js.map +0 -1
  264. package/dist/cdn/chunks/LogicTagInsertButton-r2EVUtDU.js.map +0 -1
  265. package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
  266. package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
  267. package/dist/cdn/chunks/MergeTagInput-Dh3N6CEV.js.map +0 -1
  268. package/dist/cdn/chunks/MergeTagModeToggle-D6u3hMrI.js.map +0 -1
  269. package/dist/cdn/chunks/MergeTagTextarea-BpVtpiNL.js.map +0 -1
  270. package/dist/cdn/chunks/ParagraphEditor-DGJmPAC1.js.map +0 -1
  271. package/dist/cdn/chunks/RestoreVersionDialog-D5qeCa0F.js.map +0 -1
  272. package/dist/cdn/chunks/RichTextEditorContent-DyGiXKKI.js.map +0 -1
  273. package/dist/cdn/chunks/SaveBlockDialog-B0TJYxd8.js.map +0 -1
  274. package/dist/cdn/chunks/SavedBlocksBrowserModal-D8Ly7LrA.js.map +0 -1
  275. package/dist/cdn/chunks/SavedBlocksPanels-Co1cbWR8.js.map +0 -1
  276. package/dist/cdn/chunks/SavedBlocksPickBar-DNtVbpm-.js.map +0 -1
  277. package/dist/cdn/chunks/TemplateSettings-BRc878ZF.js.map +0 -1
  278. package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +0 -1
  279. package/dist/cdn/chunks/TestEmailPanel-vKvruW_r.js.map +0 -1
  280. package/dist/cdn/chunks/TitleEditor-BI-9Nnj3.js.map +0 -1
  281. package/dist/cdn/chunks/Toolbar-CYnnArxv.js.map +0 -1
  282. package/dist/cdn/chunks/TplModal-B3nZeGWK.js.map +0 -1
  283. package/dist/cdn/chunks/VersionHistoryMenu-CMGfAKuV.js.map +0 -1
  284. package/dist/cdn/chunks/VersionHistoryPanels-Bb2ouQg7.js.map +0 -1
  285. package/dist/cdn/chunks/VersionPreviewBanner-573UP-g4.js.map +0 -1
  286. package/dist/cdn/chunks/WrapperBlock-DVu632LD.js.map +0 -1
  287. package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
  288. package/dist/cdn/chunks/composables-DY3anqHO.js.map +0 -1
  289. package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
  290. package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
  291. package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
  292. package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
  293. package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
  294. package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
  295. package/dist/cdn/chunks/extensions-BWVlr8Ga.js.map +0 -1
  296. package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
  297. package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
  298. package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
  299. package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
  300. package/dist/cdn/chunks/socialIcons-kYhdXJ9P.js.map +0 -1
  301. package/dist/cdn/chunks/src-B7X7x_ST.js +0 -707
  302. package/dist/cdn/chunks/src-B7X7x_ST.js.map +0 -1
  303. package/dist/cdn/chunks/src-BmzzkUf7.js.map +0 -1
  304. package/dist/cdn/chunks/src-DY2kMjoD.js.map +0 -1
  305. package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
  306. package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +0 -33
  307. package/dist/dist-CkIeJEsa.js +0 -4
  308. package/dist/dist-eAgG-nCb.js +0 -4
  309. package/dist/en-DvCaYqiR.js +0 -1
  310. package/dist/useLocalizedDisplay-CbFM0cCV.js +0 -31
  311. package/dist/withCurrentFont-y0O5kOLW.js +0 -18
@@ -1,31 +1,31 @@
1
1
  import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, V as _, Y as v, _ as y, b, c as x, ct as S, dt as C, g as w, h as T, it as E, j as D, k as O, l as k, m as A, mt as j, n as M, nt as N, o as ee, p as P, pt as F, r as I, rt as L, s as te, t as R, tt as z, u as B, v as V, x as H, y as U } from "./chunks/draggable-IRVFEZ-b.js";
2
- import { A as ne, D as W, E as G, M as K, N as q, O as J, V as re, _ as ie, b as ae, c as oe, j as se, k as Y, l as ce } from "./chunks/socialIcons-kYhdXJ9P.js";
3
- import { B as le, D as ue, Et as de, F as X, Ft as fe, G as pe, H as me, Ht as he, Jt as ge, Lt as _e, Mt as ve, Nt as ye, Pt as be, S as xe, U as Se, Ut as Z, V as Ce, Wt as we, Z as Te, _ as Ee, an as De, en as Oe, ft as ke, g as Ae, h as je, in as Me, k as Ne, m as Pe, p as Fe, pt as Ie, rn as Q, v as Le, y as Re, z as ze } from "./chunks/src-DY2kMjoD.js";
2
+ import { A as ne, D as W, E as G, M as K, N as q, O as J, V as re, _ as ie, b as ae, c as oe, j as se, k as Y, l as ce } from "./chunks/socialIcons-Df9dNe7I.js";
3
+ import { B as le, D as ue, Et as de, F as X, G as fe, H as pe, Mt as me, Nt as he, Pt as ge, Qt as _e, S as ve, U as ye, V as be, Xt as xe, Z as Se, _ as Ce, an as we, bn as Te, ft as Ee, g as De, h as Oe, hn as ke, in as Z, k as Ae, ln as je, m as Me, p as Ne, pt as Pe, rn as Fe, v as Ie, vn as Q, y as Le, yn as Re, z as ze } from "./chunks/src-BHgVGOTi.js";
4
4
  import { t as Be } from "./chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
5
- import { $ as Ve, A as He, Bt as Ue, D as We, Dt as Ge, E as Ke, F as qe, Ft as Je, M as Ye, Ot as Xe, P as Ze, Q as Qe, R as $e, Vt as et, Y as tt, at as nt, ct as rt, ft as it, j as at, mt as ot, nt as st, q as ct, t as lt, vt as ut, x as dt } from "./chunks/icons-C7vjUBLn.js";
5
+ import { $ as Ve, A as He, Bt as Ue, D as We, Dt as Ge, E as Ke, F as qe, Ft as Je, M as Ye, Ot as Xe, P as Ze, Q as Qe, R as $e, Vt as et, Y as tt, at as nt, ct as rt, ft as it, j as at, mt as ot, nt as st, q as ct, t as lt, vt as ut, x as dt } from "./chunks/icons-BJ6AtVgu.js";
6
6
  import { t as $ } from "./chunks/useI18n-DPg6rPbu.js";
7
- import { n as ft, t as pt } from "./chunks/useLocalizedDisplay-B5wMJLru.js";
7
+ import { n as ft, t as pt } from "./chunks/useLocalizedDisplay-C3lIetmX.js";
8
8
  import { B as mt, E as ht, I as gt, J as _t, K as vt, M as yt, O as bt, Q as xt, R as St, Y as Ct, a as wt, b as Tt, c as Et, ct as Dt, d as Ot, et as kt, g as At, h as jt, it as Mt, k as Nt, l as Pt, lt as Ft, m as It, n as Lt, nt as Rt, ot as zt, rt as Bt, st as Vt, t as Ht, tt as Ut, ut as Wt, v as Gt, z as Kt } from "./chunks/keys-ywH4jHJ2.js";
9
9
  import { t as qt } from "./chunks/plural-CyxrJXL1.js";
10
10
  import { t as Jt } from "./chunks/languageName-DEEOhDWI.js";
11
11
  import { C as Yt, E as Xt, T as Zt, b as Qt, h as $t, m as en, w as tn, x as nn } from "./chunks/styleConstants-Br6CIRoS.js";
12
- import { t as rn } from "./chunks/TplModal-B3nZeGWK.js";
13
- import { n as an } from "./chunks/sanitizeHtml-CLRY8s2s.js";
14
- import { A as on, B as sn, E as cn, F as ln, L as un, M as dn, N as fn, O as pn, P as mn, _ as hn, a as gn, b as _n, c as vn, d as yn, f as bn, g as xn, h as Sn, i as Cn, j as wn, k as Tn, l as En, m as Dn, n as On, o as kn, p as An, r as jn, s as Mn, t as Nn, u as Pn, v as Fn, x as In, y as Ln } from "./chunks/composables-DY3anqHO.js";
15
- import { a as Rn, i as zn, n as Bn, o as Vn, t as Hn } from "./chunks/normalizeMergeTagMarkup-Dw3rFvyd.js";
12
+ import { t as rn } from "./chunks/TplModal-DLV5OeMD.js";
13
+ import { n as an } from "./chunks/sanitizeHtml-BdAjvU9I.js";
14
+ import { A as on, B as sn, E as cn, F as ln, L as un, M as dn, N as fn, O as pn, P as mn, _ as hn, a as gn, b as _n, c as vn, d as yn, f as bn, g as xn, h as Sn, i as Cn, j as wn, k as Tn, l as En, m as Dn, n as On, o as kn, p as An, r as jn, s as Mn, t as Nn, u as Pn, v as Fn, x as In, y as Ln } from "./chunks/composables-Brr4m0Sg.js";
15
+ import { a as Rn, i as zn, n as Bn, o as Vn, t as Hn } from "./chunks/normalizeMergeTagMarkup-B81BAWKT.js";
16
16
  import { t as Un } from "./chunks/aiErrors-C3QEMB0x.js";
17
17
  import { n as Wn, t as Gn } from "./chunks/aiImageContext-BQ5mQ6B5.js";
18
18
  import { i as Kn, n as qn, r as Jn, t as Yn } from "./chunks/useScrollToBlock-32EnuMwu.js";
19
19
  import { a as Xn } from "./chunks/dist-zu1jwYIS.js";
20
20
  import { t as Zn } from "./chunks/logger-CqQTfJGx.js";
21
- import { t as Qn } from "./chunks/WrapperBlock-DVu632LD.js";
22
- import { t as $n } from "./chunks/blockTypeIcons-CGxNYHVA.js";
21
+ import { t as Qn } from "./chunks/WrapperBlock-Ce_k8m_x.js";
22
+ import { t as $n } from "./chunks/blockTypeIcons-DBoP1HkR.js";
23
23
  import { t as er } from "./chunks/templateSettingsFields-cjlP-jdw.js";
24
- import { n as tr, t as nr } from "./chunks/MergeTagModeToggle-D6u3hMrI.js";
24
+ import { n as tr, t as nr } from "./chunks/MergeTagModeToggle-CySCCEDs.js";
25
25
  import { _ as rr, d as ir, g as ar } from "./chunks/dist-BtWMy7UQ.js";
26
26
  import { t as or } from "./chunks/formatAbsoluteDateTime-Ck2_zXra.js";
27
27
  import { t as sr } from "./chunks/formatRelativeTime-BTD8Ktt-.js";
28
- import { t as cr } from "./chunks/preRenderCustomBlocks-BGtb8Xbp.js";
28
+ import { t as cr } from "./chunks/preRenderCustomBlocks-CQuaMxuv.js";
29
29
  // src/utils/resolveTemplateDefaults.ts
30
30
  var lr = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
31
31
  function ur(e) {
@@ -196,9 +196,9 @@ function Pr(e) {
196
196
  return { setDefaultLocale(n) {
197
197
  let r;
198
198
  try {
199
- r = [t.createSetDefaultLocaleOperation(n)], e.collaboration || be(t.content.value, r);
199
+ r = [t.createSetDefaultLocaleOperation(n)], e.collaboration || ge(t.content.value, r);
200
200
  } catch (e) {
201
- if (e instanceof fe) return {
201
+ if (e instanceof xe) return {
202
202
  applied: !1,
203
203
  error: e
204
204
  };
@@ -258,7 +258,7 @@ function Br(e) {
258
258
  gaps: 0,
259
259
  all: 0
260
260
  };
261
- let n = t.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? ge(t.content.value, n, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = le(t.content.value, n, {
261
+ let n = t.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? je(t.content.value, n, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = le(t.content.value, n, {
262
262
  definitions: r,
263
263
  syntax: e.syntax(),
264
264
  doNotTranslate: e.localization?.doNotTranslate,
@@ -289,7 +289,7 @@ function Br(e) {
289
289
  if (!s.value) throw new Q("Translation isn't available in this language.", 403, "feature_unavailable");
290
290
  let o = e.collaboration?.core;
291
291
  o?.flush();
292
- let c = t.activeLocale.value, l = t.state.template?.id ?? null, u = Z(t.content.value), d = De(E([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = le(t.content.value, c, {
292
+ let c = t.activeLocale.value, l = t.state.template?.id ?? null, u = Z(t.content.value), d = Te(E([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = le(t.content.value, c, {
293
293
  ...a,
294
294
  definitions: d,
295
295
  syntax: f,
@@ -348,8 +348,8 @@ function Br(e) {
348
348
  h.missing.push(e.id);
349
349
  continue;
350
350
  }
351
- let n = m.tokens[e.id], r = Ce(t.text, n);
352
- r === null || e.format === "html" && !Lr(r, Ce(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
351
+ let n = m.tokens[e.id], r = be(t.text, n);
352
+ r === null || e.format === "html" && !Lr(r, be(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
353
353
  id: e.id,
354
354
  text: e.format === "html" ? Rr(t.text) : t.text,
355
355
  sourceHash: e.sourceHash
@@ -392,7 +392,7 @@ function Br(e) {
392
392
  let t = o.locksOf(e.blockId).some((e) => e.holder.sessionId !== o.sessionId && (e.locale == null || e.locale === c));
393
393
  return t && h.skippedLocked.push(...Object.keys(e.text ?? {}).map((t) => `${e.blockId}/${t}`)), !t;
394
394
  });
395
- s.length && (be(E(t.content.value), s), e.history().record(), _e(t.content.value, s), t.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), t.activeLocale.value === c && (r.value = h);
395
+ s.length && (ge(E(t.content.value), s), e.history().record(), _e(t.content.value, s), t.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), t.activeLocale.value === c && (r.value = h);
396
396
  }
397
397
  } finally {
398
398
  i = null, n.value = null;
@@ -637,7 +637,7 @@ function Kr(e) {
637
637
  // src/composables/useAiFeature.ts
638
638
  var qr = 3e3, Jr = 1e3;
639
639
  function Yr(e) {
640
- return De(E(e));
640
+ return Te(E(e));
641
641
  }
642
642
  var Xr = (e) => e instanceof Error && e.name === "AbortError";
643
643
  function Zr(e) {
@@ -723,12 +723,12 @@ function ti(e) {
723
723
  a(e);
724
724
  return;
725
725
  } finally {
726
- t.active = null, t.busy.value = !1, --f === 0 && ke(), B(t);
726
+ t.active = null, t.busy.value = !1, --f === 0 && Oe(), B(t);
727
727
  }
728
728
  i(e);
729
729
  }
730
730
  };
731
- t.queue.push(o), f++ === 0 && ke(), B(t);
731
+ t.queue.push(o), f++ === 0 && Oe(), B(t);
732
732
  }) : Promise.resolve().then(r);
733
733
  }
734
734
  function B(e) {
@@ -795,7 +795,7 @@ function ti(e) {
795
795
  r && await Promise.race([r.core.settle().catch(() => {}), new Promise((t) => W(e, t, qr))]);
796
796
  }
797
797
  function re(t) {
798
- let i = E(n.content.value), o = n.activeLocale?.value ?? null, s = Oe(i, o ?? Z(i));
798
+ let i = E(n.content.value), o = n.activeLocale?.value ?? null, s = ke(i, o ?? Z(i));
799
799
  if (o === null && i.settings.locale === void 0 && delete s.settings.locale, new TextEncoder().encode(JSON.stringify(s)).length > 2e5) throw new Q("This template is too large for AI.", 413, "content_too_large");
800
800
  return {
801
801
  templateId: t,
@@ -819,7 +819,7 @@ function ti(e) {
819
819
  try {
820
820
  o = e.normalize(t, E(n.content.value));
821
821
  } catch (e) {
822
- if (e instanceof fe) return ei(e);
822
+ if (e instanceof xe) return ei(e);
823
823
  throw e;
824
824
  }
825
825
  if (o.length === 0) return {
@@ -839,14 +839,14 @@ function ti(e) {
839
839
  }
840
840
  let c;
841
841
  try {
842
- c = be(E(n.content.value), o);
842
+ c = ge(E(n.content.value), o);
843
843
  } catch (e) {
844
- if (e instanceof fe) return ei(e);
844
+ if (e instanceof xe) return ei(e);
845
845
  throw e;
846
846
  }
847
847
  a.lastRecordedTurn !== i && (e.history().record(), a.lastRecordedTurn = i), d = !0;
848
848
  try {
849
- _e(n.content.value, De(o)), n.markDirty();
849
+ _e(n.content.value, Te(o)), n.markDirty();
850
850
  } finally {
851
851
  d = !1;
852
852
  }
@@ -860,11 +860,11 @@ function ti(e) {
860
860
  let o = t;
861
861
  try {
862
862
  if (a !== null) {
863
- if (e.localization && !e.localization.locales.includes(a)) throw new fe("invalid_operation", 0, `Locale "${a}" is not enabled.`);
863
+ if (e.localization && !e.localization.locales.includes(a)) throw new xe("invalid_operation", 0, `Locale "${a}" is not enabled.`);
864
864
  o = q(E(n.content.value), a, t, e.customBlockDefinitions?.());
865
865
  }
866
866
  } catch (e) {
867
- if (e instanceof fe) return ei(e);
867
+ if (e instanceof xe) return ei(e);
868
868
  throw e;
869
869
  }
870
870
  let s = ae(o, r, i);
@@ -936,7 +936,7 @@ function ti(e) {
936
936
  try {
937
937
  let n;
938
938
  do
939
- n = _, !r && e.reload && await U(t, !0, d.authorVersion), i && await me(t, !0, !0);
939
+ n = _, !r && e.reload && await U(t, !0, d.authorVersion), i && await pe(t, !0, !0);
940
940
  while (T(u) && n !== _);
941
941
  } catch (e) {
942
942
  T(u) && G(e);
@@ -953,7 +953,7 @@ function ti(e) {
953
953
  onOperations: async (e) => {
954
954
  V(d), S(c);
955
955
  let t = r ? Yr(n.content.value) : null, i = oe(e, m, u, l);
956
- return i.applied && i.inverse.length > 0 && (x.inverse = [...i.inverse, ...x.inverse], r && (x.view = x.view === void 0 || x.view !== null && Me(x.view, t) ? Yr(n.content.value) : null), _ += e.length, D({ operationCount: _ })), i;
956
+ return i.applied && i.inverse.length > 0 && (x.inverse = [...i.inverse, ...x.inverse], r && (x.view = x.view === void 0 || x.view !== null && Re(x.view, t) ? Yr(n.content.value) : null), _ += e.length, D({ operationCount: _ })), i;
957
957
  },
958
958
  onApplied: (t) => {
959
959
  if (!T(u)) throw new DOMException("The template changed.", "AbortError");
@@ -963,7 +963,7 @@ function ti(e) {
963
963
  };
964
964
  try {
965
965
  try {
966
- await me(d), V(d), S(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
966
+ await pe(d), V(d), S(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
967
967
  let e = (/* @__PURE__ */ new Date()).toISOString();
968
968
  p.records.set(g, x), p.items = [
969
969
  ...p.items,
@@ -1043,7 +1043,7 @@ function ti(e) {
1043
1043
  if (n = _, x.serverApplied && !r && e.reload && T(u) && await U(d, !0).catch((e) => {
1044
1044
  T(u) && G(e);
1045
1045
  }), i && p.recoveries.has(m) && T(u)) {
1046
- await me(d, !0, !0);
1046
+ await pe(d, !0, !0);
1047
1047
  let e = p.recoveries.get(m);
1048
1048
  e && (C.messageId = e.item.id, C.text = e.item.text);
1049
1049
  }
@@ -1088,7 +1088,7 @@ function ti(e) {
1088
1088
  } });
1089
1089
  }
1090
1090
  if (!T(s)) return;
1091
- if (!e.applied) throw new ye(e.message, {
1091
+ if (!e.applied) throw new he(e.message, {
1092
1092
  code: e.code,
1093
1093
  opIndex: e.opIndex
1094
1094
  });
@@ -1106,9 +1106,9 @@ function ti(e) {
1106
1106
  if (u.undone !== (o === "redo")) return;
1107
1107
  let e = o === "undo" ? f?.inverse : f?.redo;
1108
1108
  if (!f || f.serverApplied || !e || e.length === 0) return;
1109
- if (r && e.some((e) => e.op === "setContent") && (!f.view || !Me(f.view, E(n.content.value)))) throw new ye(`The template changed since this message's changes, so ${o === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
1109
+ if (r && e.some((e) => e.op === "setContent") && (!f.view || !Re(f.view, E(n.content.value)))) throw new he(`The template changed since this message's changes, so ${o === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
1110
1110
  let i = ae(e, `${o}:${t}:${crypto.randomUUID()}`, s);
1111
- if (!i.applied) throw new ye(i.message, {
1111
+ if (!i.applied) throw new he(i.message, {
1112
1112
  code: i.code,
1113
1113
  opIndex: i.opIndex
1114
1114
  });
@@ -1147,7 +1147,7 @@ function ti(e) {
1147
1147
  ...ce(n, t)
1148
1148
  };
1149
1149
  }
1150
- function pe(e, t) {
1150
+ function fe(e, t) {
1151
1151
  for (let n of e) t.storedIds.add(n.id);
1152
1152
  let n = new Map(t.items.map((e) => [e.id, e])), r = e.map((e) => {
1153
1153
  let r = X(e, t), i = n.get(r.id);
@@ -1174,7 +1174,7 @@ function ti(e) {
1174
1174
  }
1175
1175
  return r;
1176
1176
  }
1177
- async function me(e, t = !1, n = !1, r = e.scope.historyGeneration) {
1177
+ async function pe(e, t = !1, n = !1, r = e.scope.historyGeneration) {
1178
1178
  let { scope: a } = e;
1179
1179
  if (!T(a) || r !== a.historyGeneration || !n && e.controller.signal.aborted || !t && a.loaded) return;
1180
1180
  let o = a.memory;
@@ -1183,7 +1183,7 @@ function ti(e) {
1183
1183
  a.isLoadingHistory.value = !0, a.loaded = !1;
1184
1184
  try {
1185
1185
  await H(i.list(a.id).then((t) => {
1186
- !l && o.generation === a.generation && r === a.historyGeneration && (n || T(a) && !e.controller.signal.aborted) && (o.items = pe(t, o), a.messages.value = o.items, a.loaded = !0, a.failure.value?.context === "history" && (a.failure.value = null));
1186
+ !l && o.generation === a.generation && r === a.historyGeneration && (n || T(a) && !e.controller.signal.aborted) && (o.items = fe(t, o), a.messages.value = o.items, a.loaded = !0, a.failure.value?.context === "history" && (a.failure.value = null));
1187
1187
  }), n ? a.lifetime.signal : e.controller.signal);
1188
1188
  } catch (e) {
1189
1189
  if (!T(a) || r !== a.historyGeneration || Xr(e)) return;
@@ -1196,7 +1196,7 @@ function ti(e) {
1196
1196
  }
1197
1197
  }
1198
1198
  }
1199
- function he(e = w()) {
1199
+ function me(e = w()) {
1200
1200
  if (!e || !T(e)) return Promise.resolve();
1201
1201
  if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
1202
1202
  if (e.loaded) return Promise.resolve();
@@ -1204,11 +1204,11 @@ function ti(e) {
1204
1204
  generation: t,
1205
1205
  promise: Promise.resolve()
1206
1206
  };
1207
- return n.promise = R("history", e, (e) => me(e, !1, !1, t), () => {}).finally(() => {
1207
+ return n.promise = R("history", e, (e) => pe(e, !1, !1, t), () => {}).finally(() => {
1208
1208
  e.pendingHistory === n && (e.pendingHistory = null);
1209
1209
  }), e.pendingHistory = n, n.promise;
1210
1210
  }
1211
- function ge() {
1211
+ function ve() {
1212
1212
  let e = w();
1213
1213
  return !e || i && typeof i.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (te(e), e.active?.controller.abort(), R("clear", e, async () => {
1214
1214
  try {
@@ -1223,15 +1223,15 @@ function ti(e) {
1223
1223
  }
1224
1224
  }, () => {}));
1225
1225
  }
1226
- function ve(e) {
1227
- T(e) && he(e);
1226
+ function ye(e) {
1227
+ T(e) && me(e);
1228
1228
  }
1229
- function xe(t) {
1229
+ function be(t) {
1230
1230
  let n = w();
1231
- n && T(n) && (s.value !== t && n.busy.value && Te(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && ve(n));
1231
+ n && T(n) && (s.value !== t && n.busy.value && Ee(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && ye(n));
1232
1232
  }
1233
1233
  function Se(e) {
1234
- e.length !== 0 && C("chatAttachments") && (I.value = [...e], xe("chat"));
1234
+ e.length !== 0 && C("chatAttachments") && (I.value = [...e], be("chat"));
1235
1235
  }
1236
1236
  function Ce(e) {
1237
1237
  e.active?.controller.abort();
@@ -1242,14 +1242,14 @@ function ti(e) {
1242
1242
  for (let t of e.timers) clearTimeout(t);
1243
1243
  e.timers.clear();
1244
1244
  }
1245
- function Te() {
1245
+ function Ee() {
1246
1246
  let e = w();
1247
1247
  e && Ce(e);
1248
1248
  }
1249
- function Ee() {
1250
- Te(), s.value = null;
1249
+ function De() {
1250
+ Ee(), s.value = null;
1251
1251
  }
1252
- function ke() {
1252
+ function Oe() {
1253
1253
  if (l) return;
1254
1254
  p?.();
1255
1255
  let e = f === 0, t = () => o(n.content, () => {
@@ -1261,12 +1261,12 @@ function ti(e) {
1261
1261
  });
1262
1262
  p = m?.active ? m.run(t) : t();
1263
1263
  }
1264
- ke();
1264
+ Oe();
1265
1265
  let Ae = [() => p?.(), o(() => n.state.isDirty, (e, t) => {
1266
1266
  t === !0 && e === !1 && n.state.isSaving && (N.value = !1);
1267
1267
  }, { flush: "sync" })];
1268
1268
  e.commentsOpen && Ae.push(o(e.commentsOpen, (e) => {
1269
- e && Ee();
1269
+ e && De();
1270
1270
  })), Ae.push(o(() => n.loadVersion?.value ?? g.value, () => {
1271
1271
  if (l) return;
1272
1272
  let e = _.value;
@@ -1276,13 +1276,13 @@ function ti(e) {
1276
1276
  }
1277
1277
  e && we(e);
1278
1278
  let t = g.value, n = t === null ? null : h(t);
1279
- _.value = n, n && s.value === "chat" && ve(n);
1279
+ _.value = n, n && s.value === "chat" && ye(n);
1280
1280
  }, { flush: "sync" }));
1281
1281
  async function je(i, o) {
1282
1282
  let s = b, c = w(), l = t.altText, u = new AbortController(), d = () => u.abort(o?.reason), f = () => u.abort();
1283
1283
  try {
1284
1284
  if (o?.throwIfAborted(), !c || typeof l != "function") throw new Q("This AI feature isn't available.", 403, "feature_unavailable");
1285
- let t = E(n.content.value), p = n.activeLocale?.value ?? null, m = Oe(t, p ?? Z(t)), h = Gn(m, i);
1285
+ let t = E(n.content.value), p = n.activeLocale?.value ?? null, m = ke(t, p ?? Z(t)), h = Gn(m, i);
1286
1286
  if (!h) throw new Q("The image is no longer available.", 409, "block_missing");
1287
1287
  o?.addEventListener("abort", d, { once: !0 }), c.lifetime.signal.addEventListener("abort", f, { once: !0 });
1288
1288
  let { url: g, ..._ } = h, v = await H(l({
@@ -1302,10 +1302,10 @@ function ti(e) {
1302
1302
  o?.removeEventListener("abort", d), c?.lifetime.signal.removeEventListener("abort", f);
1303
1303
  }
1304
1304
  }
1305
- function Ne(e) {
1305
+ function Me(e) {
1306
1306
  let t = b, r = w();
1307
1307
  if (!r || e.length === 0) return Promise.resolve();
1308
- let i = n.activeLocale?.value ?? null, a = E(n.content.value), o = Oe(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
1308
+ let i = n.activeLocale?.value ?? null, a = E(n.content.value), o = ke(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
1309
1309
  op: "updateBlock",
1310
1310
  blockId: e,
1311
1311
  expect: { ...r ?? Wn(o, e) ?? {
@@ -1325,7 +1325,7 @@ function ti(e) {
1325
1325
  for (let t = 0; t < s.length; t += 100) {
1326
1326
  V(e);
1327
1327
  let a = oe(s.slice(t, t + 100), n, r, i);
1328
- if (!a.applied) throw new ye(a.message, {
1328
+ if (!a.applied) throw new he(a.message, {
1329
1329
  code: a.code,
1330
1330
  opIndex: a.opIndex
1331
1331
  });
@@ -1338,13 +1338,13 @@ function ti(e) {
1338
1338
  return {
1339
1339
  capability: {
1340
1340
  isFeatureEnabled: (e) => y.value && C(e),
1341
- open: xe,
1341
+ open: be,
1342
1342
  startImport: Se,
1343
1343
  highlightOf: (e) => _.value?.highlights.value.get(e) ?? null
1344
1344
  },
1345
1345
  panel: s,
1346
- open: xe,
1347
- close: Ee,
1346
+ open: be,
1347
+ close: De,
1348
1348
  has: C,
1349
1349
  templateId: g,
1350
1350
  sessionIdentity: P(() => _.value),
@@ -1397,8 +1397,8 @@ function ti(e) {
1397
1397
  failed: !0
1398
1398
  });
1399
1399
  },
1400
- stop: Te,
1401
- newChat: ge,
1400
+ stop: Ee,
1401
+ newChat: ve,
1402
1402
  undoMessage: (e) => de(e, "undo"),
1403
1403
  redoMessage: (e) => de(e, "redo"),
1404
1404
  rewrite: (e, n, r) => {
@@ -1425,7 +1425,7 @@ function ti(e) {
1425
1425
  });
1426
1426
  },
1427
1427
  draftAltText: je,
1428
- applyAltTexts: Ne,
1428
+ applyAltTexts: Me,
1429
1429
  destroy: () => {
1430
1430
  if (l) return;
1431
1431
  l = !0;
@@ -1449,7 +1449,7 @@ function ri(e, t) {
1449
1449
  return n.length > t ? n.slice(0, t).join("") : e;
1450
1450
  }
1451
1451
  function ii(e) {
1452
- return Se(e) ?? "custom";
1452
+ return ye(e) ?? "custom";
1453
1453
  }
1454
1454
  function ai(e, t) {
1455
1455
  let n = [];
@@ -1576,7 +1576,7 @@ function ui(e) {
1576
1576
  }
1577
1577
  function b(e, t) {
1578
1578
  for (let r = 0; r < e.content.length; r++) {
1579
- let i = Le(e.content[r]), a = t === void 0 ? void 0 : t + r;
1579
+ let i = Ie(e.content[r]), a = t === void 0 ? void 0 : t + r;
1580
1580
  n.addBlock(i, void 0, void 0, a);
1581
1581
  }
1582
1582
  a.value = !1;
@@ -1725,7 +1725,7 @@ function fi(e) {
1725
1725
  // src/utils/toMjml.ts
1726
1726
  async function pi() {
1727
1727
  try {
1728
- return await import("./chunks/src-B7X7x_ST.js");
1728
+ return await import("./chunks/src-C5V_yzAU.js");
1729
1729
  } catch {
1730
1730
  return null;
1731
1731
  }
@@ -1857,7 +1857,7 @@ function vi(e) {
1857
1857
  return;
1858
1858
  }
1859
1859
  let t = await s.resolveContent(e);
1860
- f || (l.value = De(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
1860
+ f || (l.value = Te(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
1861
1861
  }
1862
1862
  async function E() {
1863
1863
  c.value && (n.state.isDirty ? u.value = !0 : await A());
@@ -2052,7 +2052,7 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2052
2052
  set: (e) => {
2053
2053
  u.previewMode || bn(m, e);
2054
2054
  }
2055
- }), U = P(() => ce(g.value, u.viewport)), ne = P(() => U.value + 192), W = P(() => cn(g.value, _.resolveFontFamily)), G = P(() => g.value?.locale?.trim() || void 0), K = P(() => ke(g.value)), q = P(() => V.value.length === 0 && !u.previewMode), J = z(0), re = P(() => q.value && J.value > 0);
2055
+ }), U = P(() => ce(g.value, u.viewport)), ne = P(() => U.value + 192), W = P(() => cn(g.value, _.resolveFontFamily)), G = P(() => g.value?.locale?.trim() || void 0), K = P(() => Ee(g.value)), q = P(() => V.value.length === 0 && !u.previewMode), J = z(0), re = P(() => q.value && J.value > 0);
2056
2056
  function ie() {
2057
2057
  q.value && (J.value += 1);
2058
2058
  }
@@ -2357,9 +2357,9 @@ var Ri = ["aria-label"], zi = {
2357
2357
  function K(e) {
2358
2358
  if (e.isCustom) {
2359
2359
  let t = e.type.replace("custom:", ""), n = s.find((e) => e.type === t);
2360
- if (n) return xe(n);
2360
+ if (n) return ve(n);
2361
2361
  }
2362
- return e.type === "hero" ? En(u?.value, n.blockDefaults.paragraph) : Re(e.type, u?.value);
2362
+ return e.type === "hero" ? En(u?.value, n.blockDefaults.paragraph) : Le(e.type, u?.value);
2363
2363
  }
2364
2364
  function q(e) {
2365
2365
  if (!d) return;
@@ -2493,7 +2493,7 @@ var Ri = ["aria-label"], zi = {
2493
2493
  "update-settings"
2494
2494
  ], ["update:tab"]),
2495
2495
  setup(e, { emit: t }) {
2496
- let n = g(() => import("./chunks/Toolbar-CYnnArxv.js").then((e) => e.t)), r = g(() => import("./chunks/TemplateSettings-BRc878ZF.js")), a = g(() => import("./chunks/IssuesPanel-BhcSzwuL.js")), s = e, c = t, { t: l } = $(), u = _(e, "tab"), d = f(Rt, null), p = P(() => d !== null && !d.unavailable.value), m = P(() => d?.issues.value.length ?? 0), h = f(Bt, new Set(er)), v = P(() => h.size > 0);
2496
+ let n = g(() => import("./chunks/Toolbar-DbqkKRXy.js").then((e) => e.t)), r = g(() => import("./chunks/TemplateSettings-Csjef99q.js")), a = g(() => import("./chunks/IssuesPanel-DOC94ZsH.js")), s = e, c = t, { t: l } = $(), u = _(e, "tab"), d = f(Rt, null), p = P(() => d !== null && !d.unavailable.value), m = P(() => d?.issues.value.length ?? 0), h = f(Bt, new Set(er)), v = P(() => h.size > 0);
2497
2497
  function b(e) {
2498
2498
  return u.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]";
2499
2499
  }
@@ -3040,7 +3040,7 @@ var xa = [
3040
3040
  ai: {}
3041
3041
  },
3042
3042
  setup(e) {
3043
- let n = g(() => import("./chunks/VersionHistoryMenu-CMGfAKuV.js")), r = g(() => import("./chunks/LanguageMenu-6wGhkyFT.js")), a = g(() => import("./chunks/CollaboratorBar-CN6XAlbn.js")), s = L(null), c = L(null), l = L(null), f = e, p = f.header?.actions, m = f.header?.viewportToggle !== !1, _ = f.header?.darkModeToggle !== !1, v = f.header?.previewToggle !== !1, { compact: b, fullWidth: x, statusLabel: E, invalidateContent: D } = ba(s, c, p), O = p?.getAttribute("slot"), k = null;
3043
+ let n = g(() => import("./chunks/VersionHistoryMenu-DBd0zwjE.js")), r = g(() => import("./chunks/LanguageMenu-DktneIpL.js")), a = g(() => import("./chunks/CollaboratorBar-CjRcbebT.js")), s = L(null), c = L(null), l = L(null), f = e, p = f.header?.actions, m = f.header?.viewportToggle !== !1, _ = f.header?.darkModeToggle !== !1, v = f.header?.previewToggle !== !1, { compact: b, fullWidth: x, statusLabel: E, invalidateContent: D } = ba(s, c, p), O = p?.getAttribute("slot"), k = null;
3044
3044
  return p && o([b, () => f.core.resolvedTheme.value], ([e, t]) => {
3045
3045
  p.setAttribute("data-tpl-compact", String(e)), p.setAttribute("data-tpl-theme", t === "dark" ? "dark" : "light");
3046
3046
  }, {
@@ -3500,7 +3500,7 @@ var xa = [
3500
3500
  syntax: {}
3501
3501
  },
3502
3502
  setup(e) {
3503
- let t = e, n = P(() => Te(t.value, t.syntax)), r = P(() => pe(t.value, t.syntax));
3503
+ let t = e, n = P(() => Se(t.value, t.syntax)), r = P(() => fe(t.value, t.syntax));
3504
3504
  return (e, t) => n.value ? (i(), y("span", {
3505
3505
  key: 0,
3506
3506
  class: "tpl:inline-flex tpl:flex-shrink-0 tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:leading-none tpl:font-bold tpl:tracking-wide tpl:uppercase",
@@ -3545,7 +3545,7 @@ var xa = [
3545
3545
  }, Fo = "tpl-logic-picker-list", Io = /* @__PURE__ */ n({
3546
3546
  __name: "LogicTagPickerModal",
3547
3547
  setup(e) {
3548
- let t = Wt(yt, "LogicTagPickerModal"), { t: n } = $(), r = f(mt, me.liquid), s = f(Mt, null), u = f(Dt, null), d = z(""), p = ir(d, 200), m = z(null), h = P(() => p.value.trim().length > 0), g = z(0);
3548
+ let t = Wt(yt, "LogicTagPickerModal"), { t: n } = $(), r = f(mt, pe.liquid), s = f(Mt, null), u = f(Dt, null), d = z(""), p = ir(d, 200), m = z(null), h = P(() => p.value.trim().length > 0), g = z(0);
3549
3549
  function _(e) {
3550
3550
  let t = p.value.trim().toLowerCase();
3551
3551
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -3774,7 +3774,7 @@ var xa = [
3774
3774
  let e = h.state.template;
3775
3775
  return e ? {
3776
3776
  ...E(e),
3777
- content: De(E(h.content.value))
3777
+ content: Te(E(h.content.value))
3778
3778
  } : null;
3779
3779
  }) : l, m = z(0);
3780
3780
  s(bt, n.config.localization);
@@ -3806,19 +3806,19 @@ var xa = [
3806
3806
  editor: h,
3807
3807
  onError: n.config.onError,
3808
3808
  isAvailable: n.cloud ? () => n.cloud.isSavedBlocksAvailable() : void 0
3809
- }) : null, N = g(() => import("./chunks/SavedBlocksPanels-Co1cbWR8.js")), ee = n.config.media || n.config.onRequestMedia ? ci({
3809
+ }) : null, N = g(() => import("./chunks/SavedBlocksPanels-Du0RYlEf.js")), ee = n.config.media || n.config.onRequestMedia ? ci({
3810
3810
  provider: n.config.media,
3811
3811
  onRequestMedia: n.config.onRequestMedia,
3812
3812
  getTemplateId: () => h.state.template?.id,
3813
3813
  onError: n.config.onError
3814
- }) : null, I = g(() => import("./chunks/MediaPanels-Cb5vsgb-.js")), L = n.config.testEmail ? _i({
3814
+ }) : null, I = g(() => import("./chunks/MediaPanels-BeekGmql.js")), L = n.config.testEmail ? _i({
3815
3815
  provider: n.config.testEmail,
3816
3816
  getContent: () => h.content.value,
3817
3817
  renderMjml: n.renderMjml,
3818
3818
  usesLocalRenderer: n.usesLocalRenderer,
3819
3819
  onError: n.config.onError,
3820
3820
  isAvailable: n.cloud ? () => n.cloud.isTestEmailAvailable() : void 0
3821
- }) : null, R = g(() => import("./chunks/TestEmailPanel-vKvruW_r.js")), B = n.config.comments ? Kr({
3821
+ }) : null, R = g(() => import("./chunks/TestEmailPanel-DYEYzhU2.js")), B = n.config.comments ? Kr({
3822
3822
  provider: n.config.comments,
3823
3823
  editor: h,
3824
3824
  user: n.config.user,
@@ -3826,7 +3826,7 @@ var xa = [
3826
3826
  onError: n.config.onError,
3827
3827
  isAvailable: n.cloud ? () => n.cloud.isCommentsAvailable() : void 0,
3828
3828
  isBlockSaved: n.cloud ? (e) => n.cloud.isBlockSaved(e) : void 0
3829
- }) : null, U = g(() => import("./chunks/CommentsPanel-CxZ1kFcK.js")), ne = g(() => import("./chunks/AiPanels-CxhOpMAp.js")), W = n.config.ai ? ti({
3829
+ }) : null, U = g(() => import("./chunks/CommentsPanel-D_ud9GMN.js")), ne = g(() => import("./chunks/AiPanels-De-cIZ4p.js")), W = n.config.ai ? ti({
3830
3830
  provider: n.config.ai,
3831
3831
  editor: h,
3832
3832
  localization: n.config.localization ?? { locales: [] },
@@ -3872,11 +3872,11 @@ var xa = [
3872
3872
  let t = {
3873
3873
  language: e,
3874
3874
  old: Z(h.content.value),
3875
- count: he(h.content.value, e, n.config.customBlocks).length
3875
+ count: Fe(h.content.value, e, n.config.customBlocks).length
3876
3876
  }, r = J.setDefaultLocale(e);
3877
3877
  return r.applied && (q.value = t), r;
3878
3878
  } });
3879
- let ie = g(() => import("./chunks/LocaleNotices-Br92Xueo.js")), ae = g(() => import("./chunks/CollaborationNotices-DNEs3g9B.js")), oe = g(() => import("./chunks/CloudPanels-D8fchoYt.js")), se = g(() => import("./chunks/CloudHeaderExtras-Cd-ePldd.js")), Y = g(() => import("./chunks/VersionHistoryPanels-Bb2ouQg7.js")), ce = yi(n.config.templates?.autoSave, !1), le = ce && x !== null;
3879
+ let ie = g(() => import("./chunks/LocaleNotices-B2NgnHoP.js")), ae = g(() => import("./chunks/CollaborationNotices-CgLea-hu.js")), oe = g(() => import("./chunks/CloudPanels-CQ75I3hQ.js")), se = g(() => import("./chunks/CloudHeaderExtras-Cd-ePldd.js")), Y = g(() => import("./chunks/VersionHistoryPanels-hy_Ybxie.js")), ce = yi(n.config.templates?.autoSave, !1), le = ce && x !== null;
3880
3880
  ce && x !== null && !x.canSave.value && Zn.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), n.config.changeDebounce !== void 0 && x !== null && n.config.templates?.autoSave === void 0 && !n.config.onChange && Zn.warn("config.changeDebounce is set but nothing will use it — config.templates.autoSave is unset and there is no onChange either, so the timer has no consumer. Set config.templates.autoSave, or add onChange, so the debounce takes effect.");
3881
3881
  let ue = n.config.onChange || le ? {
3882
3882
  onChange: () => {
@@ -3947,19 +3947,19 @@ var xa = [
3947
3947
  onError: n.config.onError
3948
3948
  }) : null;
3949
3949
  me && (de.versionHistory = me.capability);
3950
- let ge = P(() => B?.isOpen.value === !0 || W !== null && W.panel.value !== null || v?.panelState.rightPanelOpen.value === !0), _e = P(() => h.state.previewMode ? "tpl:left-0 tpl:right-0" : ge.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), ve = z(null), ye = z(0), be = P(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ye.value}px)` })), xe;
3950
+ let he = P(() => B?.isOpen.value === !0 || W !== null && W.panel.value !== null || v?.panelState.rightPanelOpen.value === !0), ge = P(() => h.state.previewMode ? "tpl:left-0 tpl:right-0" : he.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), _e = z(null), ve = z(0), ye = P(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ve.value}px)` })), be;
3951
3951
  d(() => {
3952
- ye.value = ve.value?.offsetHeight ?? 0, ve.value && typeof ResizeObserver < "u" && (xe = new ResizeObserver(([e]) => {
3953
- e && (ye.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
3954
- }), xe.observe(ve.value));
3955
- }), p(() => xe?.disconnect());
3956
- let { showNotice: Se } = Nn(() => n.config.smallScreenNotice);
3952
+ ve.value = _e.value?.offsetHeight ?? 0, _e.value && typeof ResizeObserver < "u" && (be = new ResizeObserver(([e]) => {
3953
+ e && (ve.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
3954
+ }), be.observe(_e.value));
3955
+ }), p(() => be?.disconnect());
3956
+ let { showNotice: xe } = Nn(() => n.config.smallScreenNotice);
3957
3957
  d(async () => {
3958
3958
  await n.fontsManager.loadCustomFonts();
3959
3959
  }), p(() => {
3960
3960
  n.fontsManager.cleanupFontLinks(), W?.destroy(), n.cloud?.destroy(), X.destroy();
3961
3961
  });
3962
- let Ce = x ?? h, we = Yn(X.editorRoot);
3962
+ let Se = x ?? h, Ce = Yn(X.editorRoot);
3963
3963
  return t({
3964
3964
  refreshPreview: X.refreshPreview,
3965
3965
  getLocale: () => h.activeLocale.value ?? Z(h.content.value),
@@ -3970,15 +3970,15 @@ var xa = [
3970
3970
  },
3971
3971
  insertBlock: (e) => {
3972
3972
  if (h.state.previewMode) return Zn.warn("insertBlock() does nothing in preview mode."), null;
3973
- let t = Le(e);
3974
- return xi(h, t) ? (we(t.id), t.id) : null;
3973
+ let t = Ie(e);
3974
+ return xi(h, t) ? (Ce(t.id), t.id) : null;
3975
3975
  },
3976
3976
  setTheme: (e) => h.setUiTheme(e),
3977
3977
  setMergeTags: X.setMergeTags,
3978
3978
  isDirty: () => h.state.isDirty,
3979
- create: Ce.create,
3980
- load: Ce.load,
3981
- save: Ce.save,
3979
+ create: Se.create,
3980
+ load: Se.load,
3981
+ save: Se.save,
3982
3982
  renderCustomBlock: X.registry.renderCustomBlock,
3983
3983
  getCustomBlockStylesheet: (e) => X.registry.getDefinition(e)?.stylesheet
3984
3984
  }), (t, r) => (i(), y("div", {
@@ -4033,10 +4033,10 @@ var xa = [
4033
4033
  "header",
4034
4034
  "shadow-root"
4035
4035
  ]),
4036
- c(H(Ki, { style: F(be.value) }, null, 8, ["style"]), [[te, !S(h).state.previewMode]]),
4036
+ c(H(Ki, { style: F(ye.value) }, null, 8, ["style"]), [[te, !S(h).state.previewMode]]),
4037
4037
  A("div", {
4038
- class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", _e.value]),
4039
- style: F(be.value)
4038
+ class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", ge.value]),
4039
+ style: F(ye.value)
4040
4040
  }, [A("div", zo, [A("div", Bo, [
4041
4041
  H(M, { name: "tpl-preview-pill" }, {
4042
4042
  default: a(() => [S(h).state.previewMode && !S(X).previewResolution.supersedesSamples.value ? (i(), y("div", Vo, [H(nr, {
@@ -4090,7 +4090,7 @@ var xa = [
4090
4090
  ])])], 6),
4091
4091
  e.config.branding === !1 ? w("", !0) : (i(), T(ga, {
4092
4092
  key: 0,
4093
- "position-class": [_e.value]
4093
+ "position-class": [ge.value]
4094
4094
  }, null, 8, ["position-class"])),
4095
4095
  A("div", {
4096
4096
  class: "tpl-sr-only",
@@ -4102,10 +4102,10 @@ var xa = [
4102
4102
  c(H(la, {
4103
4103
  tab: fe.value,
4104
4104
  "onUpdate:tab": r[3] ||= (e) => fe.value = e,
4105
- style: F(be.value),
4105
+ style: F(ye.value),
4106
4106
  "selected-block": S(h).selectedBlock.value ? S(_).displayBlock(S(h).selectedBlock.value) : null,
4107
4107
  settings: S(_).settings.value,
4108
- "shifted-left": ge.value,
4108
+ "shifted-left": he.value,
4109
4109
  onUpdateBlock: r[4] ||= (e) => S(h).updateBlock(S(h).state.selectedBlockId, e),
4110
4110
  onDeleteBlock: r[5] ||= () => {
4111
4111
  S(h).state.selectedBlockId && S(X).blockActions.deleteBlock(S(h).state.selectedBlockId);
@@ -4123,7 +4123,7 @@ var xa = [
4123
4123
  ]), [[te, !S(h).state.previewMode]]),
4124
4124
  A("div", {
4125
4125
  ref_key: "topChrome",
4126
- ref: ve,
4126
+ ref: _e,
4127
4127
  class: "tpl-top-chrome tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40"
4128
4128
  }, [S(me)?.isAvailable.value ? (i(), T(S(Y), {
4129
4129
  key: 0,
@@ -4202,7 +4202,7 @@ var xa = [
4202
4202
  "cloud",
4203
4203
  "ready"
4204
4204
  ])) : w("", !0),
4205
- S(Se) ? (i(), T(ma, { key: 7 })) : w("", !0)
4205
+ S(xe) ? (i(), T(ma, { key: 7 })) : w("", !0)
4206
4206
  ], 46, Lo));
4207
4207
  }
4208
4208
  }), [["__scopeId", "data-v-0dfeea75"]]), qo = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
@@ -4217,8 +4217,8 @@ function Yo(e) {
4217
4217
  };
4218
4218
  }
4219
4219
  async function Xo(e, t) {
4220
- let n = De(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? Oe(n, r) : n, a = e.getLayout?.(), o = a ? Fe(Oe(a, r, { missing: "default" }), i) : i;
4221
- return a || (Pe(o), je(o)), await cr(o, {
4220
+ let n = Te(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? ke(n, r) : n, a = e.getLayout?.(), o = a ? Ne(ke(a, r, { missing: "default" }), i) : i;
4221
+ return a || (Me(o), Oe(o)), await cr(o, {
4222
4222
  renderCustomBlock: e.renderCustomBlock,
4223
4223
  getCustomBlockStylesheet: e.getCustomBlockStylesheet
4224
4224
  }), {
@@ -4293,7 +4293,7 @@ function cs(e, t) {
4293
4293
  n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), rs.delete(e), is === e && (is = null)));
4294
4294
  }
4295
4295
  function ls(e) {
4296
- e.layout && (e.layout = Bn(e.layout, e.mergeTags), Ee(e.layout)), e.content && (e.content = Bn(e.content, e.mergeTags), Pe(e.content), je(e.content));
4296
+ e.layout && (e.layout = Bn(e.layout, e.mergeTags), Ce(e.layout)), e.content && (e.content = Bn(e.content, e.mergeTags), Me(e.content), Oe(e.content));
4297
4297
  }
4298
4298
  async function us(e) {
4299
4299
  let t = { ...e };
@@ -4343,7 +4343,7 @@ async function ds(e, { container: t, token: n }, i) {
4343
4343
  function fs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4344
4344
  let i = {
4345
4345
  getContent() {
4346
- return De(t.value ? t.value.getContent() : e.content ?? Ie(e.fonts?.defaultFont, ur(e)));
4346
+ return Te(t.value ? t.value.getContent() : e.content ?? Pe(e.fonts?.defaultFont, ur(e)));
4347
4347
  },
4348
4348
  getLocale() {
4349
4349
  return t.value?.getLocale() ?? Z(i.getContent());
@@ -4362,7 +4362,7 @@ function fs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4362
4362
  },
4363
4363
  insertBlock(n) {
4364
4364
  let r = { blocks: [n] };
4365
- return Pe(r), je(r), t.value ? t.value.insertBlock(Hn(n, e.mergeTags)) : null;
4365
+ return Me(r), Oe(r), t.value ? t.value.insertBlock(Hn(n, e.mergeTags)) : null;
4366
4366
  },
4367
4367
  setTheme(e) {
4368
4368
  t.value && t.value.setTheme(e);
@@ -4427,7 +4427,7 @@ async function ps(e) {
4427
4427
  mergeTags: e.mergeTags
4428
4428
  };
4429
4429
  ls(t);
4430
- let n = ss(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./chunks/createCloudRuntime-B5numxlW.js"), mn(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
4430
+ let n = ss(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./chunks/createCloudRuntime-QPeg45XL.js"), mn(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
4431
4431
  config: e,
4432
4432
  cloudTranslations: i
4433
4433
  });
@@ -4479,6 +4479,6 @@ async function ps(e) {
4479
4479
  function ms() {
4480
4480
  is && cs(is);
4481
4481
  }
4482
- export { qn as AI_ALT_TEXT_RULES, Jn as AI_FIXABLE_RULES, Fe as applyLayout, Ie as createDefaultTemplateContent, Y as createLocalStorageMediaProvider, ne as createLocalStorageSavedBlocksProvider, ue as createParagraphBlock, Ne as createSlotBlock, X as createWrapperBlock, Tn as getBaseLocale, on as getSupportedCloudLocales, wn as getSupportedLocales, us as init, ps as initCloud, dn as isCloudLocaleSupported, fn as isLocaleSupported, de as isSlot, ve as isWrapper, Ae as layoutWrapsSlot, ms as unmount, Ee as validateLayout };
4482
+ export { qn as AI_ALT_TEXT_RULES, Jn as AI_FIXABLE_RULES, Ne as applyLayout, Pe as createDefaultTemplateContent, Y as createLocalStorageMediaProvider, ne as createLocalStorageSavedBlocksProvider, ue as createParagraphBlock, Ae as createSlotBlock, X as createWrapperBlock, Tn as getBaseLocale, on as getSupportedCloudLocales, wn as getSupportedLocales, us as init, ps as initCloud, dn as isCloudLocaleSupported, fn as isLocaleSupported, de as isSlot, me as isWrapper, De as layoutWrapsSlot, ms as unmount, Ce as validateLayout };
4483
4483
 
4484
4484
  //# sourceMappingURL=editor.js.map