@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,46 +1,46 @@
1
1
  import { A as e, B as t, D as n, E as r, F as i, Ft as a, L as o, M as s, Mt as c, N as l, O as u, P as d, Pt as f, R as p, S as m, U as h, W as g, Z as _, _ as v, c as y, ct as b, d as x, et as S, f as C, g as w, h as T, j as E, k as D, l as O, m as k, nt as A, q as j, r as M, rt as N, tt as P, u as F, v as I, w as L, y as R } from "./vue.runtime.esm-bundler-BE5V8ADU.js";
2
2
  import { a as z, c as B, n as V, o as H, s as U, t as W } from "./runtime-dom.esm-bundler-nN-jsqr1.js";
3
- import { G, I as ee, L as K, M as q, N as J, R as Y, V as te, W as ne, _ as re, b as ie, c as ae, j as oe, l as se } from "./socialIcons-DBHv_ntg.js";
4
- import { A as ce, At as le, C as ue, D as de, Dt as fe, E as X, Ht as pe, I as me, K as he, Mt as ge, N as _e, Pt as ve, Q as ye, R as be, S as xe, T as Se, U as Ce, Yt as we, _ as Te, bt as Ee, dn as De, dt as Oe, et as ke, f as Ae, jt as je, k as Me, ln as Ne, nt as Pe, o as Fe, qt as Ie, rt as Z, v as Q, vt as Le, xt as Re } from "./dist-CMo4K5So.js";
3
+ import { G, I as ee, L as K, M as q, N as J, R as Y, V as te, W as ne, _ as re, b as ie, c as ae, j as oe, l as se } from "./socialIcons-By2LPWOQ.js";
4
+ import { A as ce, At as le, C as ue, Ct as de, D as X, E as fe, Ft as pe, I as me, K as he, Kt as ge, Lt as _e, M as ve, Nt as ye, O as be, Pt as xe, V as Se, Y as Ce, Zt as we, _n as Te, at as Ee, en as De, hn as Oe, mt as ke, ot as Z, p as Ae, rt as je, s as Me, tt as Ne, v as Pe, w as Fe, wt as Ie, xt as Le, y as Q, z as Re } from "./dist-DsA7NeIy.js";
5
5
  import { t as ze } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
6
- import { i as Be, n as Ve } from "./sanitizeHtml-DVdfdxOz.js";
7
- import { t as He } from "./x-CTKOxIyZ.js";
6
+ import { i as Be, n as Ve } from "./sanitizeHtml-BcbjlypU.js";
7
+ import { t as He } from "./x-C0X5MoK3.js";
8
8
  import { t as $ } from "./useI18n-Cx9W7OWb.js";
9
- import { n as Ue, t as We } from "./useLocalizedDisplay-CbFM0cCV.js";
9
+ import { n as Ue, t as We } from "./useLocalizedDisplay-_P6-hXaO.js";
10
10
  import { B as Ge, E as Ke, I as qe, J as Je, K as Ye, M as Xe, O as Ze, Q as Qe, R as $e, Y as et, a as tt, b as nt, c as rt, ct as it, d as at, et as ot, g as st, h as ct, it as lt, k as ut, l as dt, lt as ft, m as pt, n as mt, nt as ht, ot as gt, rt as _t, st as vt, t as yt, tt as bt, ut as xt, v as St, z as Ct } from "./keys-B4DimcgX.js";
11
11
  import { t as wt } from "./plural-CyxrJXL1.js";
12
12
  import { t as Tt } from "./languageName-DEEOhDWI.js";
13
13
  import { C as Et, E as Dt, T as Ot, b as kt, h as At, m as jt, w as Mt, x as Nt } from "./styleConstants-Br6CIRoS.js";
14
- import { t as Pt } from "./TplModal-DAcXzBJh.js";
15
- import { A as Ft, D as It, F as Lt, G as Rt, I as zt, M as Bt, N as Vt, P as Ht, R as Ut, S as Wt, V as Gt, _ as Kt, a as qt, b as Jt, c as Yt, d as Xt, f as Zt, g as Qt, h as $t, i as en, j as tn, k as nn, l as rn, m as an, n as on, o as sn, p as cn, r as ln, s as un, t as dn, u as fn, v as pn, x as mn, y as hn } from "./composables-CFTH0Nqb.js";
16
- import { a as gn, i as _n, n as vn, o as yn, t as bn } from "./normalizeMergeTagMarkup-PQqrbfmt.js";
14
+ import { t as Pt } from "./TplModal-F_kA7luG.js";
15
+ import { A as Ft, D as It, F as Lt, G as Rt, I as zt, M as Bt, N as Vt, P as Ht, R as Ut, S as Wt, V as Gt, _ as Kt, a as qt, b as Jt, c as Yt, d as Xt, f as Zt, g as Qt, h as $t, i as en, j as tn, k as nn, l as rn, m as an, n as on, o as sn, p as cn, r as ln, s as un, t as dn, u as fn, v as pn, x as mn, y as hn } from "./composables-5KJV0O9T.js";
16
+ import { a as gn, i as _n, n as vn, o as yn, t as bn } from "./normalizeMergeTagMarkup-B7n_-4Dz.js";
17
17
  import { t as xn } from "./aiErrors-C3QEMB0x.js";
18
18
  import { n as Sn, t as Cn } from "./aiImageContext-BQ5mQ6B5.js";
19
- import { i as wn, n as Tn, o as En, r as Dn, t as On } from "./useScrollToBlock-CwUQ_nKz.js";
19
+ import { i as wn, n as Tn, o as En, r as Dn, t as On } from "./useScrollToBlock-CtM_ydOS.js";
20
20
  import { a as kn } from "./dist-B6ptxfPo.js";
21
21
  import { t as An } from "./logger-BOu7oEtk.js";
22
- import { t as jn } from "./refresh-cw-Ryg1j66N.js";
23
- import { t as Mn } from "./rotate-ccw-D8j7gXXv.js";
24
- import { t as Nn } from "./createLucideIcon-CssArtUe.js";
25
- import { t as Pn } from "./sparkles-Dc3Undp5.js";
26
- import { t as Fn } from "./WrapperBlock-BZenrXM6.js";
27
- import { t as In } from "./package-D2fov5PU.js";
28
- import { t as Ln } from "./blockTypeIcons-DdYZy8yG.js";
22
+ import { t as jn } from "./refresh-cw-BwaO0ioc.js";
23
+ import { t as Mn } from "./rotate-ccw-C3E0W5q-.js";
24
+ import { t as Nn } from "./createLucideIcon-B6Zkn9r0.js";
25
+ import { t as Pn } from "./sparkles-DSi61skE.js";
26
+ import { t as Fn } from "./WrapperBlock-Ds7yfbhg.js";
27
+ import { t as In } from "./package-By1au8Wi.js";
28
+ import { t as Ln } from "./blockTypeIcons-Do1QqDjg.js";
29
29
  import { t as Rn } from "./templateSettingsFields-cjlP-jdw.js";
30
- import { n as zn } from "./smartphone-Co8m0LLg.js";
31
- import { t as Bn } from "./loader-circle-BMc3fVpa.js";
32
- import { t as Vn } from "./message-circle-D_TpvAJh.js";
33
- import { t as Hn } from "./send-BLR1b-p5.js";
34
- import { n as Un, t as Wn } from "./MergeTagModeToggle-Bd0svGQm.js";
35
- import { t as Gn } from "./eye-DK4--qHk.js";
30
+ import { n as zn } from "./smartphone-BlYU_z_x.js";
31
+ import { t as Bn } from "./loader-circle-DCkSXApP.js";
32
+ import { t as Vn } from "./message-circle-Bj4F9bBO.js";
33
+ import { t as Hn } from "./send-FRC7Giap.js";
34
+ import { n as Un, t as Wn } from "./MergeTagModeToggle-5kaFLRAm.js";
35
+ import { t as Gn } from "./eye-BE-DeEqG.js";
36
36
  import { _ as Kn, d as qn, g as Jn } from "./dist-A328tG0Z.js";
37
37
  import { t as Yn } from "./formatAbsoluteDateTime-Ck2_zXra.js";
38
38
  import { t as Xn } from "./formatRelativeTime-BTD8Ktt-.js";
39
- import { t as Zn } from "./check-ErKdPXG6.js";
40
- import { t as Qn } from "./circle-exclamation-point-CIYHx5Tw.js";
41
- import { t as $n } from "./chevron-down-C_vv5fZE.js";
42
- import { t as er } from "./search-CX2JkSHz.js";
43
- import { t as tr } from "./preRenderCustomBlocks-Dg5GBNi2.js";
39
+ import { t as Zn } from "./check-CWq6Nfjj.js";
40
+ import { t as Qn } from "./circle-exclamation-point-B1tbhkNb.js";
41
+ import { t as $n } from "./chevron-down-B9t0SK_-.js";
42
+ import { t as er } from "./search-DfExisVv.js";
43
+ import { t as tr } from "./preRenderCustomBlocks-D3GzENVB.js";
44
44
  // src/utils/resolveTemplateDefaults.ts
45
45
  var nr = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
46
46
  function rr(e) {
@@ -389,7 +389,7 @@ function Fr(e) {
389
389
  if (e.collaboration) {
390
390
  let t = e.collaboration.core.applyOperations(r, {});
391
391
  if (!t.applied) return t;
392
- } else e.history().record(), Se(t.content.value, r), t.markDirty();
392
+ } else e.history().record(), fe(t.content.value, r), t.markDirty();
393
393
  return t.setActiveLocale(n), { applied: !0 };
394
394
  } };
395
395
  }
@@ -440,7 +440,7 @@ function Vr(e) {
440
440
  gaps: 0,
441
441
  all: 0
442
442
  };
443
- let t = n.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? ge(n.content.value, t, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = ve(n.content.value, t, {
443
+ let t = n.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? pe(n.content.value, t, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = _e(n.content.value, t, {
444
444
  definitions: r,
445
445
  syntax: e.syntax(),
446
446
  doNotTranslate: e.localization?.doNotTranslate,
@@ -471,7 +471,7 @@ function Vr(e) {
471
471
  if (!s.value) throw new Q("Translation isn't available in this language.", 403, "feature_unavailable");
472
472
  let o = e.collaboration?.core;
473
473
  o?.flush();
474
- let c = n.activeLocale.value, l = n.state.template?.id ?? null, u = Z(n.content.value), d = we(N([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = ve(n.content.value, c, {
474
+ let c = n.activeLocale.value, l = n.state.template?.id ?? null, u = Z(n.content.value), d = De(N([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = _e(n.content.value, c, {
475
475
  ...t,
476
476
  definitions: d,
477
477
  syntax: f,
@@ -530,8 +530,8 @@ function Vr(e) {
530
530
  h.missing.push(e.id);
531
531
  continue;
532
532
  }
533
- let n = m.tokens[e.id], r = Ne(t.text, n);
534
- r === null || e.format === "html" && !Rr(r, Ne(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
533
+ let n = m.tokens[e.id], r = Oe(t.text, n);
534
+ r === null || e.format === "html" && !Rr(r, Oe(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
535
535
  id: e.id,
536
536
  text: e.format === "html" ? zr(t.text) : t.text,
537
537
  sourceHash: e.sourceHash
@@ -551,7 +551,7 @@ function Vr(e) {
551
551
  try {
552
552
  if (!g.discarded) {
553
553
  o?.flush();
554
- let t = ue(n.content.value, c, _, {
554
+ let t = Fe(n.content.value, c, _, {
555
555
  definitions: d,
556
556
  syntax: f,
557
557
  doNotTranslate: p,
@@ -574,7 +574,7 @@ function Vr(e) {
574
574
  let t = o.locksOf(e.blockId).some((e) => e.holder.sessionId !== o.sessionId && (e.locale == null || e.locale === c));
575
575
  return t && h.skippedLocked.push(...Object.keys(e.text ?? {}).map((t) => `${e.blockId}/${t}`)), !t;
576
576
  });
577
- s.length && (Le(N(n.content.value), s), e.history().record(), Se(n.content.value, s), n.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), n.activeLocale.value === c && (i.value = h);
577
+ s.length && (Le(N(n.content.value), s), e.history().record(), fe(n.content.value, s), n.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), n.activeLocale.value === c && (i.value = h);
578
578
  }
579
579
  } finally {
580
580
  a = null, r.value = null;
@@ -819,7 +819,7 @@ function qr(e) {
819
819
  // src/composables/useAiFeature.ts
820
820
  var Jr = 3e3, Yr = 1e3;
821
821
  function Xr(e) {
822
- return we(N(e));
822
+ return De(N(e));
823
823
  }
824
824
  var Zr = (e) => e instanceof Error && e.name === "AbortError";
825
825
  function Qr(e) {
@@ -977,7 +977,7 @@ function ni(e) {
977
977
  i && await Promise.race([i.core.settle().catch(() => {}), new Promise((t) => K(e, t, Jr))]);
978
978
  }
979
979
  function ne(t) {
980
- let n = N(r.content.value), a = r.activeLocale?.value ?? null, s = Ie(n, a ?? Z(n));
980
+ let n = N(r.content.value), a = r.activeLocale?.value ?? null, s = we(n, a ?? Z(n));
981
981
  if (a === null && n.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");
982
982
  return {
983
983
  templateId: t,
@@ -1028,7 +1028,7 @@ function ni(e) {
1028
1028
  }
1029
1029
  a.lastRecordedTurn !== n && (e.history().record(), a.lastRecordedTurn = n), d = !0;
1030
1030
  try {
1031
- Se(r.content.value, we(o)), r.markDirty();
1031
+ fe(r.content.value, De(o)), r.markDirty();
1032
1032
  } finally {
1033
1033
  d = !1;
1034
1034
  }
@@ -1118,7 +1118,7 @@ function ni(e) {
1118
1118
  try {
1119
1119
  let n;
1120
1120
  do
1121
- n = _, !i && e.reload && await G(t, !0, d.authorVersion), a && await pe(t, !0, !0);
1121
+ n = _, !i && e.reload && await G(t, !0, d.authorVersion), a && await me(t, !0, !0);
1122
1122
  while (E(u) && n !== _);
1123
1123
  } catch (e) {
1124
1124
  E(u) && q(e);
@@ -1135,7 +1135,7 @@ function ni(e) {
1135
1135
  onOperations: async (e) => {
1136
1136
  U(d), C(c);
1137
1137
  let t = i ? Xr(r.content.value) : null, n = ae(e, m, u, l);
1138
- return n.applied && n.inverse.length > 0 && (x.inverse = [...n.inverse, ...x.inverse], i && (x.view = x.view === void 0 || x.view !== null && ke(x.view, t) ? Xr(r.content.value) : null), _ += e.length, D({ operationCount: _ })), n;
1138
+ return n.applied && n.inverse.length > 0 && (x.inverse = [...n.inverse, ...x.inverse], i && (x.view = x.view === void 0 || x.view !== null && je(x.view, t) ? Xr(r.content.value) : null), _ += e.length, D({ operationCount: _ })), n;
1139
1139
  },
1140
1140
  onApplied: (t) => {
1141
1141
  if (!E(u)) throw new DOMException("The template changed.", "AbortError");
@@ -1145,7 +1145,7 @@ function ni(e) {
1145
1145
  };
1146
1146
  try {
1147
1147
  try {
1148
- await pe(d), U(d), C(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
1148
+ await me(d), U(d), C(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
1149
1149
  let e = (/* @__PURE__ */ new Date()).toISOString();
1150
1150
  p.records.set(g, x), p.items = [
1151
1151
  ...p.items,
@@ -1225,7 +1225,7 @@ function ni(e) {
1225
1225
  if (r = _, x.serverApplied && !i && e.reload && E(u) && await G(d, !0).catch((e) => {
1226
1226
  E(u) && q(e);
1227
1227
  }), a && p.recoveries.has(m) && E(u)) {
1228
- await pe(d, !0, !0);
1228
+ await me(d, !0, !0);
1229
1229
  let e = p.recoveries.get(m);
1230
1230
  e && (S.messageId = e.item.id, S.text = e.item.text);
1231
1231
  }
@@ -1270,7 +1270,7 @@ function ni(e) {
1270
1270
  } });
1271
1271
  }
1272
1272
  if (!E(s)) return;
1273
- if (!e.applied) throw new Fe(e.message, {
1273
+ if (!e.applied) throw new Me(e.message, {
1274
1274
  code: e.code,
1275
1275
  opIndex: e.opIndex
1276
1276
  });
@@ -1288,9 +1288,9 @@ function ni(e) {
1288
1288
  if (u.undone !== (n === "redo")) return;
1289
1289
  let e = n === "undo" ? f?.inverse : f?.redo;
1290
1290
  if (!f || f.serverApplied || !e || e.length === 0) return;
1291
- if (i && e.some((e) => e.op === "setContent") && (!f.view || !ke(f.view, N(r.content.value)))) throw new Fe(`The template changed since this message's changes, so ${n === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
1291
+ if (i && e.some((e) => e.op === "setContent") && (!f.view || !je(f.view, N(r.content.value)))) throw new Me(`The template changed since this message's changes, so ${n === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
1292
1292
  let a = ie(e, `${n}:${t}:${crypto.randomUUID()}`, s);
1293
- if (!a.applied) throw new Fe(a.message, {
1293
+ if (!a.applied) throw new Me(a.message, {
1294
1294
  code: a.code,
1295
1295
  opIndex: a.opIndex
1296
1296
  });
@@ -1309,7 +1309,7 @@ function ni(e) {
1309
1309
  }
1310
1310
  }, () => {});
1311
1311
  }
1312
- function fe(e, t) {
1312
+ function X(e, t) {
1313
1313
  let n = {
1314
1314
  id: e.id,
1315
1315
  role: e.role,
@@ -1329,10 +1329,10 @@ function ni(e) {
1329
1329
  ...ce(n, t)
1330
1330
  };
1331
1331
  }
1332
- function X(e, t) {
1332
+ function pe(e, t) {
1333
1333
  for (let n of e) t.storedIds.add(n.id);
1334
1334
  let n = new Map(t.items.map((e) => [e.id, e])), r = e.map((e) => {
1335
- let r = fe(e, t), i = n.get(r.id);
1335
+ let r = X(e, t), i = n.get(r.id);
1336
1336
  return i?.status === "failed" ? {
1337
1337
  ...r,
1338
1338
  status: i.status,
@@ -1344,7 +1344,7 @@ function ni(e) {
1344
1344
  if (s) {
1345
1345
  t.records.delete(i.id), t.records.set(s.id, a);
1346
1346
  let e = {
1347
- ...fe(s, t),
1347
+ ...X(s, t),
1348
1348
  status: i.status,
1349
1349
  failure: i.failure
1350
1350
  };
@@ -1356,7 +1356,7 @@ function ni(e) {
1356
1356
  }
1357
1357
  return r;
1358
1358
  }
1359
- async function pe(e, t = !1, n = !1, r = e.scope.historyGeneration) {
1359
+ async function me(e, t = !1, n = !1, r = e.scope.historyGeneration) {
1360
1360
  let { scope: i } = e;
1361
1361
  if (!E(i) || r !== i.historyGeneration || !n && e.controller.signal.aborted || !t && i.loaded) return;
1362
1362
  let o = i.memory;
@@ -1365,7 +1365,7 @@ function ni(e) {
1365
1365
  i.isLoadingHistory.value = !0, i.loaded = !1;
1366
1366
  try {
1367
1367
  await W(a.list(i.id).then((t) => {
1368
- !l && o.generation === i.generation && r === i.historyGeneration && (n || E(i) && !e.controller.signal.aborted) && (o.items = X(t, o), i.messages.value = o.items, i.loaded = !0, i.failure.value?.context === "history" && (i.failure.value = null));
1368
+ !l && o.generation === i.generation && r === i.historyGeneration && (n || E(i) && !e.controller.signal.aborted) && (o.items = pe(t, o), i.messages.value = o.items, i.loaded = !0, i.failure.value?.context === "history" && (i.failure.value = null));
1369
1369
  }), n ? i.lifetime.signal : e.controller.signal);
1370
1370
  } catch (e) {
1371
1371
  if (!E(i) || r !== i.historyGeneration || Zr(e)) return;
@@ -1378,7 +1378,7 @@ function ni(e) {
1378
1378
  }
1379
1379
  }
1380
1380
  }
1381
- function me(e = T()) {
1381
+ function he(e = T()) {
1382
1382
  if (!e || !E(e)) return Promise.resolve();
1383
1383
  if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
1384
1384
  if (e.loaded) return Promise.resolve();
@@ -1386,11 +1386,11 @@ function ni(e) {
1386
1386
  generation: t,
1387
1387
  promise: Promise.resolve()
1388
1388
  };
1389
- return n.promise = V("history", e, (e) => pe(e, !1, !1, t), () => {}).finally(() => {
1389
+ return n.promise = V("history", e, (e) => me(e, !1, !1, t), () => {}).finally(() => {
1390
1390
  e.pendingHistory === n && (e.pendingHistory = null);
1391
1391
  }), e.pendingHistory = n, n.promise;
1392
1392
  }
1393
- function he() {
1393
+ function ge() {
1394
1394
  let e = T();
1395
1395
  return !e || a && typeof a.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (B(e), e.active?.controller.abort(), V("clear", e, async () => {
1396
1396
  try {
@@ -1405,31 +1405,31 @@ function ni(e) {
1405
1405
  }
1406
1406
  }, () => {}));
1407
1407
  }
1408
- function ge(e) {
1409
- E(e) && me(e);
1408
+ function _e(e) {
1409
+ E(e) && he(e);
1410
1410
  }
1411
- function _e(t) {
1411
+ function ve(t) {
1412
1412
  let n = T();
1413
- n && E(n) && (s.value !== t && n.busy.value && xe(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && ge(n));
1414
- }
1415
- function ve(e) {
1416
- e.length !== 0 && w("chatAttachments") && (z.value = [...e], _e("chat"));
1413
+ n && E(n) && (s.value !== t && n.busy.value && Se(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && _e(n));
1417
1414
  }
1418
1415
  function ye(e) {
1416
+ e.length !== 0 && w("chatAttachments") && (z.value = [...e], ve("chat"));
1417
+ }
1418
+ function be(e) {
1419
1419
  e.active?.controller.abort();
1420
1420
  for (let t of e.queue) t.kind !== "reconcile" && t.controller.abort();
1421
1421
  }
1422
- function be(e) {
1423
- e.lifetime.abort(), ye(e), e.busy.value = !1, e.isLoadingHistory.value = !1;
1422
+ function xe(e) {
1423
+ e.lifetime.abort(), be(e), e.busy.value = !1, e.isLoadingHistory.value = !1;
1424
1424
  for (let t of e.timers) clearTimeout(t);
1425
1425
  e.timers.clear();
1426
1426
  }
1427
- function xe() {
1427
+ function Se() {
1428
1428
  let e = T();
1429
- e && ye(e);
1429
+ e && be(e);
1430
1430
  }
1431
1431
  function Ce() {
1432
- xe(), s.value = null;
1432
+ Se(), s.value = null;
1433
1433
  }
1434
1434
  function Te() {
1435
1435
  if (l) return;
@@ -1456,15 +1456,15 @@ function ni(e) {
1456
1456
  e.committingReload = !1;
1457
1457
  return;
1458
1458
  }
1459
- e && be(e);
1459
+ e && xe(e);
1460
1460
  let t = g.value, n = t === null ? null : h(t);
1461
- _.value = n, n && s.value === "chat" && ge(n);
1461
+ _.value = n, n && s.value === "chat" && _e(n);
1462
1462
  }, { flush: "sync" }));
1463
- async function De(t, a) {
1463
+ async function Oe(t, a) {
1464
1464
  let s = b, c = T(), l = n.altText, u = new AbortController(), d = () => u.abort(a?.reason), f = () => u.abort();
1465
1465
  try {
1466
1466
  if (a?.throwIfAborted(), !c || typeof l != "function") throw new Q("This AI feature isn't available.", 403, "feature_unavailable");
1467
- let n = N(r.content.value), p = r.activeLocale?.value ?? null, m = Ie(n, p ?? Z(n)), h = Cn(m, t);
1467
+ let n = N(r.content.value), p = r.activeLocale?.value ?? null, m = we(n, p ?? Z(n)), h = Cn(m, t);
1468
1468
  if (!h) throw new Q("The image is no longer available.", 409, "block_missing");
1469
1469
  a?.addEventListener("abort", d, { once: !0 }), c.lifetime.signal.addEventListener("abort", f, { once: !0 });
1470
1470
  let { url: g, ..._ } = h, v = await W(l({
@@ -1484,10 +1484,10 @@ function ni(e) {
1484
1484
  a?.removeEventListener("abort", d), c?.lifetime.signal.removeEventListener("abort", f);
1485
1485
  }
1486
1486
  }
1487
- function Oe(e) {
1487
+ function ke(e) {
1488
1488
  let t = b, n = T();
1489
1489
  if (!n || e.length === 0) return Promise.resolve();
1490
- let i = r.activeLocale?.value ?? null, a = N(r.content.value), o = Ie(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
1490
+ let i = r.activeLocale?.value ?? null, a = N(r.content.value), o = we(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
1491
1491
  op: "updateBlock",
1492
1492
  blockId: e,
1493
1493
  expect: { ...r ?? Sn(o, e) ?? {
@@ -1507,7 +1507,7 @@ function ni(e) {
1507
1507
  for (let t = 0; t < s.length; t += 100) {
1508
1508
  U(e);
1509
1509
  let a = ae(s.slice(t, t + 100), r, n, i);
1510
- if (!a.applied) throw new Fe(a.message, {
1510
+ if (!a.applied) throw new Me(a.message, {
1511
1511
  code: a.code,
1512
1512
  opIndex: a.opIndex
1513
1513
  });
@@ -1520,12 +1520,12 @@ function ni(e) {
1520
1520
  return {
1521
1521
  capability: {
1522
1522
  isFeatureEnabled: (e) => v.value && w(e),
1523
- open: _e,
1524
- startImport: ve,
1523
+ open: ve,
1524
+ startImport: ye,
1525
1525
  highlightOf: (e) => _.value?.highlights.value.get(e) ?? null
1526
1526
  },
1527
1527
  panel: s,
1528
- open: _e,
1528
+ open: ve,
1529
1529
  close: Ce,
1530
1530
  has: w,
1531
1531
  templateId: g,
@@ -1547,7 +1547,7 @@ function ni(e) {
1547
1547
  failedPrompt: L,
1548
1548
  failedAttachments: R,
1549
1549
  importQueue: z,
1550
- startImport: ve,
1550
+ startImport: ye,
1551
1551
  isTemplateEmpty: k,
1552
1552
  send: (e, t = []) => {
1553
1553
  let r = n.chat;
@@ -1579,8 +1579,8 @@ function ni(e) {
1579
1579
  failed: !0
1580
1580
  });
1581
1581
  },
1582
- stop: xe,
1583
- newChat: he,
1582
+ stop: Se,
1583
+ newChat: ge,
1584
1584
  undoMessage: (e) => de(e, "undo"),
1585
1585
  redoMessage: (e) => de(e, "redo"),
1586
1586
  rewrite: (e, t, r) => {
@@ -1606,13 +1606,13 @@ function ni(e) {
1606
1606
  throw new DOMException("Rewrite stopped.", "AbortError");
1607
1607
  });
1608
1608
  },
1609
- draftAltText: De,
1610
- applyAltTexts: Oe,
1609
+ draftAltText: Oe,
1610
+ applyAltTexts: ke,
1611
1611
  destroy: () => {
1612
1612
  if (l) return;
1613
1613
  l = !0;
1614
1614
  let e = _.value;
1615
- e && be(e), _.value = null, x();
1615
+ e && xe(e), _.value = null, x();
1616
1616
  for (let e of Ee) e();
1617
1617
  Ee.length = 0;
1618
1618
  }
@@ -1631,7 +1631,7 @@ function ii(e, t) {
1631
1631
  return n.length > t ? n.slice(0, t).join("") : e;
1632
1632
  }
1633
1633
  function ai(e) {
1634
- return Me(e) ?? "custom";
1634
+ return ce(e) ?? "custom";
1635
1635
  }
1636
1636
  function oi(e, t) {
1637
1637
  let n = [];
@@ -1760,7 +1760,7 @@ function di(e) {
1760
1760
  }
1761
1761
  function x(e, t) {
1762
1762
  for (let n = 0; n < e.content.length; n++) {
1763
- let i = ce(e.content[n]), a = t === void 0 ? void 0 : t + n;
1763
+ let i = ve(e.content[n]), a = t === void 0 ? void 0 : t + n;
1764
1764
  r.addBlock(i, void 0, void 0, a);
1765
1765
  }
1766
1766
  o.value = !1;
@@ -2041,7 +2041,7 @@ function yi(e) {
2041
2041
  return;
2042
2042
  }
2043
2043
  let t = await s.resolveContent(e);
2044
- f || (l.value = we(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
2044
+ f || (l.value = De(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
2045
2045
  }
2046
2046
  async function O() {
2047
2047
  c.value && (n.state.isDirty ? u.value = !0 : await M());
@@ -2236,7 +2236,7 @@ var wi = ["aria-label"], Ti = ["lang", "dir"], Ei = {
2236
2236
  set: (e) => {
2237
2237
  i.previewMode || cn(m, e);
2238
2238
  }
2239
- }), W = y(() => se(T.value, i.viewport)), G = y(() => W.value + 192), ee = y(() => It(T.value, E.resolveFontFamily)), K = y(() => T.value?.locale?.trim() || void 0), q = y(() => pe(T.value)), J = y(() => U.value.length === 0 && !i.previewMode), Y = S(0), te = y(() => J.value && Y.value > 0);
2239
+ }), W = y(() => se(T.value, i.viewport)), G = y(() => W.value + 192), ee = y(() => It(T.value, E.resolveFontFamily)), K = y(() => T.value?.locale?.trim() || void 0), q = y(() => ge(T.value)), J = y(() => U.value.length === 0 && !i.previewMode), Y = S(0), te = y(() => J.value && Y.value > 0);
2240
2240
  function ne() {
2241
2241
  J.value && (Y.value += 1);
2242
2242
  }
@@ -2263,8 +2263,8 @@ var wi = ["aria-label"], Ti = ["lang", "dir"], Ei = {
2263
2263
  function de(e) {
2264
2264
  return A.savedBlocks?.isPicked(e) ?? !1;
2265
2265
  }
2266
- let fe = y(() => A.savedBlocks?.isPicking.value === !0);
2267
- function X(e, t) {
2266
+ let X = y(() => A.savedBlocks?.isPicking.value === !0);
2267
+ function fe(e, t) {
2268
2268
  i.previewMode || e.type !== "custom" || m.updateBlock(e.id, {
2269
2269
  fieldValues: t.fieldValues,
2270
2270
  dataSourceFetched: t.dataSourceFetched
@@ -2387,7 +2387,7 @@ var wi = ["aria-label"], Ti = ["lang", "dir"], Ei = {
2387
2387
  key: 1,
2388
2388
  block: t,
2389
2389
  "display-block": b(_)(t),
2390
- "is-selected": !e.previewMode && !fe.value && e.selectedBlockId === t.id && !le(t.id),
2390
+ "is-selected": !e.previewMode && !X.value && e.selectedBlockId === t.id && !le(t.id),
2391
2391
  picked: de(t.id),
2392
2392
  viewport: e.viewport,
2393
2393
  "preview-mode": e.previewMode,
@@ -2395,7 +2395,7 @@ var wi = ["aria-label"], Ti = ["lang", "dir"], Ei = {
2395
2395
  }, {
2396
2396
  default: h(() => [(s(), F(o(ce(t)), n({ block: b(_)(t) }, { ref_for: !0 }, t.type === "section" ? { sourceBlock: t } : {}, {
2397
2397
  viewport: e.viewport,
2398
- onFetchData: (e) => X(t, e),
2398
+ onFetchData: (e) => fe(t, e),
2399
2399
  onUpdate: (n) => !e.previewMode && b(m).updateBlock(t.id, n)
2400
2400
  }), null, 16, [
2401
2401
  "block",
@@ -2541,9 +2541,9 @@ var zi = ["aria-label"], Bi = {
2541
2541
  function q(e) {
2542
2542
  if (e.isCustom) {
2543
2543
  let t = e.type.replace("custom:", ""), n = i.find((e) => e.type === t);
2544
- if (n) return me(n);
2544
+ if (n) return Re(n);
2545
2545
  }
2546
- return e.type === "hero" ? fn(l?.value, n.blockDefaults.paragraph) : _e(e.type, l?.value);
2546
+ return e.type === "hero" ? fn(l?.value, n.blockDefaults.paragraph) : me(e.type, l?.value);
2547
2547
  }
2548
2548
  function J(e) {
2549
2549
  if (!u) return;
@@ -2677,7 +2677,7 @@ var zi = ["aria-label"], Bi = {
2677
2677
  "update-settings"
2678
2678
  ], ["update:tab"]),
2679
2679
  setup(e, { emit: n }) {
2680
- let r = I(() => import("./Toolbar-BOf7Y862.js").then((e) => e.t)), i = I(() => import("./TemplateSettings-CuN9Vkl_.js")), o = I(() => import("./IssuesPanel-BwnvXxBC.js")), l = e, u = n, { t: d } = $(), m = p(e, "tab"), h = L(ht, null), g = y(() => h !== null && !h.unavailable.value), _ = y(() => h?.issues.value.length ?? 0), S = L(_t, new Set(Rn)), w = y(() => S.size > 0);
2680
+ let r = I(() => import("./Toolbar-KhPpWyX1.js").then((e) => e.t)), i = I(() => import("./TemplateSettings-BJ4a8RBr.js")), o = I(() => import("./IssuesPanel-cPKhimE9.js")), l = e, u = n, { t: d } = $(), m = p(e, "tab"), h = L(ht, null), g = y(() => h !== null && !h.unavailable.value), _ = y(() => h?.issues.value.length ?? 0), S = L(_t, new Set(Rn)), w = y(() => S.size > 0);
2681
2681
  function T(e) {
2682
2682
  return m.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)]";
2683
2683
  }
@@ -3225,7 +3225,7 @@ var Sa = [
3225
3225
  ai: {}
3226
3226
  },
3227
3227
  setup(n) {
3228
- let r = I(() => import("./VersionHistoryMenu-TbIGteNi.js")), l = I(() => import("./LanguageMenu-Cf5bKocE.js")), u = I(() => import("./CollaboratorBar-TsK872uC.js")), d = A(null), p = A(null), m = A(null), h = n, g = h.header?.actions, _ = h.header?.viewportToggle !== !1, y = h.header?.darkModeToggle !== !1, S = h.header?.previewToggle !== !1, { compact: w, fullWidth: T, statusLabel: E, invalidateContent: k } = xa(d, p, g), j = g?.getAttribute("slot"), M = null;
3228
+ let r = I(() => import("./VersionHistoryMenu-Bz4G8cNm.js")), l = I(() => import("./LanguageMenu-zxlpmw2x.js")), u = I(() => import("./CollaboratorBar-DufLdLQP.js")), d = A(null), p = A(null), m = A(null), h = n, g = h.header?.actions, _ = h.header?.viewportToggle !== !1, y = h.header?.darkModeToggle !== !1, S = h.header?.previewToggle !== !1, { compact: w, fullWidth: T, statusLabel: E, invalidateContent: k } = xa(d, p, g), j = g?.getAttribute("slot"), M = null;
3229
3229
  return g && t([w, () => h.core.resolvedTheme.value], ([e, t]) => {
3230
3230
  g.setAttribute("data-tpl-compact", String(e)), g.setAttribute("data-tpl-theme", t === "dark" ? "dark" : "light");
3231
3231
  }, {
@@ -3685,7 +3685,7 @@ var Sa = [
3685
3685
  syntax: {}
3686
3686
  },
3687
3687
  setup(e) {
3688
- let t = e, n = y(() => Re(t.value, t.syntax)), r = y(() => Oe(t.value, t.syntax));
3688
+ let t = e, n = y(() => Ie(t.value, t.syntax)), r = y(() => ke(t.value, t.syntax));
3689
3689
  return (e, t) => n.value ? (s(), C("span", {
3690
3690
  key: 0,
3691
3691
  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",
@@ -3730,7 +3730,7 @@ var Sa = [
3730
3730
  }, Io = "tpl-logic-picker-list", Lo = /* @__PURE__ */ R({
3731
3731
  __name: "LogicTagPickerModal",
3732
3732
  setup(e) {
3733
- let n = xt(Xe, "LogicTagPickerModal"), { t: r } = $(), i = L(Ge, Te.liquid), o = L(lt, null), l = L(it, null), p = S(""), m = qn(p, 200), _ = S(null), w = y(() => m.value.trim().length > 0), T = S(0);
3733
+ let n = xt(Xe, "LogicTagPickerModal"), { t: r } = $(), i = L(Ge, Pe.liquid), o = L(lt, null), l = L(it, null), p = S(""), m = qn(p, 200), _ = S(null), w = y(() => m.value.trim().length > 0), T = S(0);
3734
3734
  function E(e) {
3735
3735
  let t = m.value.trim().toLowerCase();
3736
3736
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -3959,7 +3959,7 @@ var Sa = [
3959
3959
  let e = _.state.template;
3960
3960
  return e ? {
3961
3961
  ...N(e),
3962
- content: we(N(_.content.value))
3962
+ content: De(N(_.content.value))
3963
3963
  } : null;
3964
3964
  }) : u, m = S(0);
3965
3965
  l(Ze, i.config.localization);
@@ -3991,19 +3991,19 @@ var Sa = [
3991
3991
  editor: _,
3992
3992
  onError: i.config.onError,
3993
3993
  isAvailable: i.cloud ? () => i.cloud.isSavedBlocksAvailable() : void 0
3994
- }) : null, P = I(() => import("./SavedBlocksPanels-BH2f7jm-.js")), L = i.config.media || i.config.onRequestMedia ? li({
3994
+ }) : null, P = I(() => import("./SavedBlocksPanels-Lklqy4XI.js")), L = i.config.media || i.config.onRequestMedia ? li({
3995
3995
  provider: i.config.media,
3996
3996
  onRequestMedia: i.config.onRequestMedia,
3997
3997
  getTemplateId: () => _.state.template?.id,
3998
3998
  onError: i.config.onError
3999
- }) : null, R = I(() => import("./MediaPanels-C-XrldMu.js")), z = i.config.testEmail ? vi({
3999
+ }) : null, R = I(() => import("./MediaPanels-BAZByHRA.js")), z = i.config.testEmail ? vi({
4000
4000
  provider: i.config.testEmail,
4001
4001
  getContent: () => _.content.value,
4002
4002
  renderMjml: i.renderMjml,
4003
4003
  usesLocalRenderer: i.usesLocalRenderer,
4004
4004
  onError: i.config.onError,
4005
4005
  isAvailable: i.cloud ? () => i.cloud.isTestEmailAvailable() : void 0
4006
- }) : null, V = I(() => import("./TestEmailPanel-DoMcVJSE.js")), U = i.config.comments ? qr({
4006
+ }) : null, V = I(() => import("./TestEmailPanel-DgyzokCf.js")), U = i.config.comments ? qr({
4007
4007
  provider: i.config.comments,
4008
4008
  editor: _,
4009
4009
  user: i.config.user,
@@ -4011,7 +4011,7 @@ var Sa = [
4011
4011
  onError: i.config.onError,
4012
4012
  isAvailable: i.cloud ? () => i.cloud.isCommentsAvailable() : void 0,
4013
4013
  isBlockSaved: i.cloud ? (e) => i.cloud.isBlockSaved(e) : void 0
4014
- }) : null, G = I(() => import("./CommentsPanel-BX8JVrXU.js")), ee = I(() => import("./AiPanels-C8M7q_vM.js")), K = i.config.ai ? ni({
4014
+ }) : null, G = I(() => import("./CommentsPanel-C2hFFs0o.js")), ee = I(() => import("./AiPanels-CRM3jf82.js")), K = i.config.ai ? ni({
4015
4015
  provider: i.config.ai,
4016
4016
  editor: _,
4017
4017
  localization: i.config.localization ?? { locales: [] },
@@ -4057,18 +4057,18 @@ var Sa = [
4057
4057
  let t = {
4058
4058
  language: e,
4059
4059
  old: Z(_.content.value),
4060
- count: Pe(_.content.value, e, i.config.customBlocks).length
4060
+ count: Ee(_.content.value, e, i.config.customBlocks).length
4061
4061
  }, n = ne.setDefaultLocale(e);
4062
4062
  return n.applied && (Y.value = t), n;
4063
4063
  } });
4064
- let re = I(() => import("./LocaleNotices-CGEp0pQ8.js")), ie = I(() => import("./CollaborationNotices-DrMrP73M.js")), ae = I(() => import("./CloudPanels-CD0lsL0R.js")), oe = I(() => import("./CloudHeaderExtras-DC_oNrxz.js")), se = I(() => import("./VersionHistoryPanels-Ia6ipOqG.js")), le = bi(i.config.templates?.autoSave, !1), ue = le && A !== null;
4065
- le && A !== null && !A.canSave.value && An.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."), i.config.changeDebounce !== void 0 && A !== null && i.config.templates?.autoSave === void 0 && !i.config.onChange && An.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.");
4066
- let de = i.config.onChange || ue ? {
4064
+ let re = I(() => import("./LocaleNotices-PIfpvCCI.js")), ie = I(() => import("./CollaborationNotices-CnfS8BQy.js")), ae = I(() => import("./CloudPanels-CAMn545-.js")), oe = I(() => import("./CloudHeaderExtras-DC_oNrxz.js")), se = I(() => import("./VersionHistoryPanels-DmVRyWv9.js")), ce = bi(i.config.templates?.autoSave, !1), le = ce && A !== null;
4065
+ ce && A !== null && !A.canSave.value && An.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."), i.config.changeDebounce !== void 0 && A !== null && i.config.templates?.autoSave === void 0 && !i.config.onChange && An.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.");
4066
+ let ue = i.config.onChange || le ? {
4067
4067
  onChange: () => {
4068
- i.config.onChange?.(JSON.parse(JSON.stringify(_.state.content))), ue && A.requestAutoSave();
4068
+ i.config.onChange?.(JSON.parse(JSON.stringify(_.state.content))), le && A.requestAutoSave();
4069
4069
  },
4070
4070
  ...i.config.changeDebounce === void 0 ? {} : { debounce: i.config.changeDebounce }
4071
- } : null, fe = {
4071
+ } : null, de = {
4072
4072
  ...M ? { savedBlocks: M.capability } : {},
4073
4073
  ...A ? { templates: A.capability } : {},
4074
4074
  ...z ? { testEmail: z.capability } : {},
@@ -4102,18 +4102,18 @@ var Sa = [
4102
4102
  },
4103
4103
  translations: i.translations,
4104
4104
  fontsManager: i.fontsManager,
4105
- autoSaveOptions: de,
4106
- capabilities: fe,
4105
+ autoSaveOptions: ue,
4106
+ capabilities: de,
4107
4107
  editorRoot: i.shadowRoot,
4108
4108
  history: d?.history
4109
- }), pe = S("content");
4109
+ }), fe = S("content");
4110
4110
  t(() => _.state.template?.id, () => {
4111
- _.selectedBlock.value && (pe.value = "content");
4111
+ _.selectedBlock.value && (fe.value = "content");
4112
4112
  });
4113
- let me = i.cloud && D ? i.cloud.ready({
4113
+ let pe = i.cloud && D ? i.cloud.ready({
4114
4114
  core: X,
4115
- capabilities: fe
4116
- }) : null, he = i.config.versionHistory ? yi({
4115
+ capabilities: de
4116
+ }) : null, me = i.config.versionHistory ? yi({
4117
4117
  provider: i.config.versionHistory,
4118
4118
  editor: gn(_, o),
4119
4119
  history: X.history,
@@ -4131,12 +4131,12 @@ var Sa = [
4131
4131
  } : null,
4132
4132
  onError: i.config.onError
4133
4133
  }) : null;
4134
- he && (fe.versionHistory = he.capability);
4135
- let ge = y(() => U?.isOpen.value === !0 || K !== null && K.panel.value !== null || D?.panelState.rightPanelOpen.value === !0), _e = y(() => _.state.previewMode ? "tpl:left-0 tpl:right-0" : ge.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), ve = S(null), ye = S(0), be = y(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ye.value}px)` })), xe;
4134
+ me && (de.versionHistory = me.capability);
4135
+ let he = y(() => U?.isOpen.value === !0 || K !== null && K.panel.value !== null || D?.panelState.rightPanelOpen.value === !0), ge = y(() => _.state.previewMode ? "tpl:left-0 tpl:right-0" : he.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), _e = S(null), ye = S(0), be = y(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ye.value}px)` })), xe;
4136
4136
  e(() => {
4137
- ye.value = ve.value?.offsetHeight ?? 0, ve.value && typeof ResizeObserver < "u" && (xe = new ResizeObserver(([e]) => {
4137
+ ye.value = _e.value?.offsetHeight ?? 0, _e.value && typeof ResizeObserver < "u" && (xe = new ResizeObserver(([e]) => {
4138
4138
  e && (ye.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
4139
- }), xe.observe(ve.value));
4139
+ }), xe.observe(_e.value));
4140
4140
  }), E(() => xe?.disconnect());
4141
4141
  let { showNotice: Se } = dn(() => i.config.smallScreenNotice);
4142
4142
  e(async () => {
@@ -4144,7 +4144,7 @@ var Sa = [
4144
4144
  }), E(() => {
4145
4145
  i.fontsManager.cleanupFontLinks(), K?.destroy(), i.cloud?.destroy(), X.destroy();
4146
4146
  });
4147
- let Ce = A ?? _, Te = On(X.editorRoot);
4147
+ let Ce = A ?? _, we = On(X.editorRoot);
4148
4148
  return r({
4149
4149
  refreshPreview: X.refreshPreview,
4150
4150
  getLocale: () => _.activeLocale.value ?? Z(_.content.value),
@@ -4155,8 +4155,8 @@ var Sa = [
4155
4155
  },
4156
4156
  insertBlock: (e) => {
4157
4157
  if (_.state.previewMode) return An.warn("insertBlock() does nothing in preview mode."), null;
4158
- let t = ce(e);
4159
- return Si(_, t) ? (Te(t.id), t.id) : null;
4158
+ let t = ve(e);
4159
+ return Si(_, t) ? (we(t.id), t.id) : null;
4160
4160
  },
4161
4161
  setTheme: (e) => _.setUiTheme(e),
4162
4162
  setMergeTags: X.setMergeTags,
@@ -4184,7 +4184,7 @@ var Sa = [
4184
4184
  templates: b(A),
4185
4185
  "show-template-name": n.config.templates?.nameField !== !1,
4186
4186
  "test-email": b(z),
4187
- "version-history": b(he),
4187
+ "version-history": b(me),
4188
4188
  comments: b(U),
4189
4189
  collaboration: b(d),
4190
4190
  ai: b(K),
@@ -4220,7 +4220,7 @@ var Sa = [
4220
4220
  ]),
4221
4221
  g(v(qi, { style: f(be.value) }, null, 8, ["style"]), [[H, !b(_).state.previewMode]]),
4222
4222
  O("div", {
4223
- class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", _e.value]),
4223
+ class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", ge.value]),
4224
4224
  style: f(be.value)
4225
4225
  }, [O("div", Bo, [O("div", Vo, [
4226
4226
  v(W, { name: "tpl-preview-pill" }, {
@@ -4275,7 +4275,7 @@ var Sa = [
4275
4275
  ])])], 6),
4276
4276
  n.config.branding === !1 ? x("", !0) : (s(), F(_a, {
4277
4277
  key: 0,
4278
- "position-class": [_e.value]
4278
+ "position-class": [ge.value]
4279
4279
  }, null, 8, ["position-class"])),
4280
4280
  O("div", {
4281
4281
  class: "tpl-sr-only",
@@ -4285,12 +4285,12 @@ var Sa = [
4285
4285
  "aria-label": b(X).t.landmarks.reorderAnnouncements
4286
4286
  }, a(b(X).keyboardReorder.announcement.value), 9, Ko),
4287
4287
  g(v(ua, {
4288
- tab: pe.value,
4289
- "onUpdate:tab": t[3] ||= (e) => pe.value = e,
4288
+ tab: fe.value,
4289
+ "onUpdate:tab": t[3] ||= (e) => fe.value = e,
4290
4290
  style: f(be.value),
4291
4291
  "selected-block": b(_).selectedBlock.value ? b(T).displayBlock(b(_).selectedBlock.value) : null,
4292
4292
  settings: b(T).settings.value,
4293
- "shifted-left": ge.value,
4293
+ "shifted-left": he.value,
4294
4294
  onUpdateBlock: t[4] ||= (e) => b(_).updateBlock(b(_).state.selectedBlockId, e),
4295
4295
  onDeleteBlock: t[5] ||= () => {
4296
4296
  b(_).state.selectedBlockId && b(X).blockActions.deleteBlock(b(_).state.selectedBlockId);
@@ -4308,11 +4308,11 @@ var Sa = [
4308
4308
  ]), [[H, !b(_).state.previewMode]]),
4309
4309
  O("div", {
4310
4310
  ref_key: "topChrome",
4311
- ref: ve,
4311
+ ref: _e,
4312
4312
  class: "tpl-top-chrome tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40"
4313
- }, [b(he)?.isAvailable.value ? (s(), F(b(se), {
4313
+ }, [b(me)?.isAvailable.value ? (s(), F(b(se), {
4314
4314
  key: 0,
4315
- feature: b(he)
4315
+ feature: b(me)
4316
4316
  }, null, 8, ["feature"])) : x("", !0), n.config.localization ? (s(), F(Pr, {
4317
4317
  key: 1,
4318
4318
  editor: b(_),
@@ -4373,13 +4373,13 @@ var Sa = [
4373
4373
  }, null, 8, ["notice"])) : x("", !0)]),
4374
4374
  _: 1
4375
4375
  })) : x("", !0),
4376
- n.cloud && b(D) && b(me) ? (s(), F(b(ae), {
4376
+ n.cloud && b(D) && b(pe) ? (s(), F(b(ae), {
4377
4377
  key: 6,
4378
4378
  editor: b(_),
4379
4379
  core: b(X),
4380
4380
  runtime: n.cloud,
4381
4381
  cloud: b(D),
4382
- ready: b(me)
4382
+ ready: b(pe)
4383
4383
  }, null, 8, [
4384
4384
  "editor",
4385
4385
  "core",
@@ -4402,8 +4402,8 @@ function Xo(e) {
4402
4402
  };
4403
4403
  }
4404
4404
  async function Zo(e, t) {
4405
- let n = we(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? Ie(n, r) : n, a = e.getLayout?.(), o = a ? xe(Ie(a, r, { missing: "default" }), i) : i;
4406
- return a || (X(o), de(o)), await tr(o, {
4405
+ let n = De(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? we(n, r) : n, a = e.getLayout?.(), o = a ? ue(we(a, r, { missing: "default" }), i) : i;
4406
+ return a || (X(o), be(o)), await tr(o, {
4407
4407
  renderCustomBlock: e.renderCustomBlock,
4408
4408
  getCustomBlockStylesheet: e.getCustomBlockStylesheet
4409
4409
  }), {
@@ -4478,12 +4478,12 @@ function ls(e, t) {
4478
4478
  n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), is.delete(e), as === e && (as = null)));
4479
4479
  }
4480
4480
  function us(e) {
4481
- e.layout && (e.layout = vn(e.layout, e.mergeTags), De(e.layout)), e.content && (e.content = vn(e.content, e.mergeTags), X(e.content), de(e.content));
4481
+ e.layout && (e.layout = vn(e.layout, e.mergeTags), Te(e.layout)), e.content && (e.content = vn(e.content, e.mergeTags), X(e.content), be(e.content));
4482
4482
  }
4483
4483
  async function ds(e) {
4484
4484
  let t = { ...e };
4485
4485
  if (t.translation !== void 0 && (t.translation === null || typeof t.translation != "object" || typeof t.translation.translate != "function")) throw new Q("translation must be an object with a translate function.");
4486
- for (let e of t.localization?.locales ?? []) if (!Ee(e)) throw new Q(`Invalid localization locale "${e}".`);
4486
+ for (let e of t.localization?.locales ?? []) if (!de(e)) throw new Q(`Invalid localization locale "${e}".`);
4487
4487
  let n = t.localization?.doNotTranslate;
4488
4488
  if (n !== void 0 && (!Array.isArray(n) || n.length > 500 || n.some((e) => typeof e != "string" || e.trim().length < 1 || e.trim().length > 100))) throw new Q("localization.doNotTranslate must be an array of at most 500 terms, each 1–100 characters.");
4489
4489
  return us(t), fs(t, cs(t.container));
@@ -4528,7 +4528,7 @@ async function fs(e, { container: t, token: n }, r) {
4528
4528
  function ps({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4529
4529
  let i = {
4530
4530
  getContent() {
4531
- return t.value ? we(t.value.getContent()) : we(e.content ?? be(e.fonts?.defaultFont, rr(e)));
4531
+ return t.value ? De(t.value.getContent()) : De(e.content ?? Se(e.fonts?.defaultFont, rr(e)));
4532
4532
  },
4533
4533
  getLocale() {
4534
4534
  return t.value?.getLocale() ?? Z(i.getContent());
@@ -4547,7 +4547,7 @@ function ps({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4547
4547
  },
4548
4548
  insertBlock(n) {
4549
4549
  let r = { blocks: [n] };
4550
- return X(r), de(r), t.value ? t.value.insertBlock(bn(n, e.mergeTags)) : null;
4550
+ return X(r), be(r), t.value ? t.value.insertBlock(bn(n, e.mergeTags)) : null;
4551
4551
  },
4552
4552
  setTheme(e) {
4553
4553
  t.value && t.value.setTheme(e);
@@ -4612,7 +4612,7 @@ async function ms(e) {
4612
4612
  mergeTags: e.mergeTags
4613
4613
  };
4614
4614
  us(t);
4615
- let n = cs(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./createCloudRuntime-BvWlm_38.js"), Lt(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
4615
+ let n = cs(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./createCloudRuntime-BdoKeYJi.js"), Lt(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
4616
4616
  config: e,
4617
4617
  cloudTranslations: i
4618
4618
  });
@@ -4664,4 +4664,4 @@ async function ms(e) {
4664
4664
  function hs() {
4665
4665
  as && ls(as);
4666
4666
  }
4667
- export { Tn as AI_ALT_TEXT_RULES, Dn as AI_FIXABLE_RULES, xe as applyLayout, be as createDefaultTemplateContent, oe as createLocalStorageMediaProvider, q as createLocalStorageSavedBlocksProvider, Ce as createParagraphBlock, he as createSlotBlock, ye as createWrapperBlock, Ft as getBaseLocale, tn as getSupportedCloudLocales, Bt as getSupportedLocales, ds as init, ms as initCloud, Vt as isCloudLocaleSupported, Ht as isLocaleSupported, fe as isSlot, le as isWrapper, je as layoutWrapsSlot, hs as unmount, De as validateLayout };
4667
+ export { Tn as AI_ALT_TEXT_RULES, Dn as AI_FIXABLE_RULES, ue as applyLayout, Se as createDefaultTemplateContent, oe as createLocalStorageMediaProvider, q as createLocalStorageSavedBlocksProvider, he as createParagraphBlock, Ce as createSlotBlock, Ne as createWrapperBlock, Ft as getBaseLocale, tn as getSupportedCloudLocales, Bt as getSupportedLocales, ds as init, ms as initCloud, Vt as isCloudLocaleSupported, Ht as isLocaleSupported, le as isSlot, ye as isWrapper, xe as layoutWrapsSlot, hs as unmount, Te as validateLayout };