@templatical/editor 0.52.0 → 0.53.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 (400) hide show
  1. package/README.md +1 -1
  2. package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
  3. package/dist/{AiAltTextReview-DE8t8Rud.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
  4. package/dist/{AiChatPanel-7ftS7d40.js → AiChatPanel-DdhtfsmO.js} +223 -210
  5. package/dist/{AiPanels-CxGp6klr.js → AiPanels-HBx7xoJR.js} +6 -6
  6. package/dist/{AiRewriteMenu-DNI-5CUj.js → AiRewriteMenu-DPzSekZt.js} +78 -107
  7. package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
  8. package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
  9. package/dist/{CloudHeaderExtras-CsgyNNV1.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
  10. package/dist/{CloudPanels-BDV4XQ_l.js → CloudPanels-i2kZdrdP.js} +44 -44
  11. package/dist/CollaborationNotices-DANsjl7c.js +65 -0
  12. package/dist/{CollaboratorBar-EeqqWcX6.js → CollaboratorBar-CbbAA0m1.js} +24 -24
  13. package/dist/CommentsPanel-CYW3LWis.js +16 -0
  14. package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
  15. package/dist/{CountdownBlock-BT3ZTH1F.js → CountdownBlock-BMezkFbJ.js} +21 -21
  16. package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
  17. package/dist/{IssuesPanel-BHFQ3wrP.js → IssuesPanel-BMAG9042.js} +141 -129
  18. package/dist/LanguageMenu-FlP_Jbup.js +403 -0
  19. package/dist/{LoadingTrack-DZA5AoP9.js → LoadingTrack-BG8cg9xi.js} +2 -2
  20. package/dist/LocaleNotices-DAnVszWu.js +46 -0
  21. package/dist/{LogicTagInsertButton-CSD9cfJB.js → LogicTagInsertButton-BjYs-UQX.js} +439 -430
  22. package/dist/{MediaEditModal-DQl5w44r.js → MediaEditModal-LnG-cF_S.js} +160 -160
  23. package/dist/{MediaPanels-BFWYuJot.js → MediaPanels-C2r5fiFo.js} +4 -4
  24. package/dist/{cdn/chunks/MergeTagInput-CFu9VXPS.js → MergeTagInput-BsnogCeY.js} +32 -34
  25. package/dist/{MergeTagModeToggle-DvD0ne7N.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
  26. package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
  27. package/dist/{ParagraphEditor-D-nqs82g.js → ParagraphEditor-qgBp5yIB.js} +286 -257
  28. package/dist/{RestoreVersionDialog-DqUPsLB9.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
  29. package/dist/{RichTextEditorContent-Xq9D0Zs3.js → RichTextEditorContent-C5MAzx3E.js} +54 -53
  30. package/dist/{SaveBlockDialog-DAPv70p4.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
  31. package/dist/SavedBlocksBrowserModal-D2QHd2Yp.js +359 -0
  32. package/dist/{SavedBlocksPanels-ChbL9v9x.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
  33. package/dist/{SavedBlocksPickBar-hRaiLNdu.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
  34. package/dist/TemplateSettings-BKJrdZcH.js +294 -0
  35. package/dist/TestEmailModal-DQotJg6g.js +212 -0
  36. package/dist/{TestEmailPanel-COJQa2A9.js → TestEmailPanel-CwiTzJsh.js} +4 -4
  37. package/dist/TitleEditor-CzSvsPAn.js +202 -0
  38. package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
  39. package/dist/Toolbar-Cd75ci5W.js +3711 -0
  40. package/dist/{TplModal-9IndEYk5.js → TplModal-ZoXu40T9.js} +17 -17
  41. package/dist/{VersionHistoryMenu-BG5qayvg.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
  42. package/dist/{VersionHistoryPanels-hPg7Q5-f.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
  43. package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
  44. package/dist/WrapperBlock-D4fPwO0t.js +44 -0
  45. package/dist/{blockTypeIcons-yt7SLzub.js → blockTypeIcons-BXMxu86H.js} +27 -26
  46. package/dist/bundle-stats.json +8 -8
  47. package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
  48. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
  49. package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
  50. package/dist/cdn/chunks/{AiAltTextReview-BafAtBoA.js → AiAltTextReview-Dtm3A2cD.js} +71 -69
  51. package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
  52. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
  53. package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
  54. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js → AiPanels-BV5D1itk.js} +11 -11
  55. package/dist/cdn/chunks/{AiPanels-B4uAVRoO.js.map → AiPanels-BV5D1itk.js.map} +1 -1
  56. package/dist/cdn/chunks/{AiRewriteMenu-4F6vwhJ5.js → AiRewriteMenu-D3jkh6Xb.js} +80 -80
  57. package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
  58. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
  59. package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
  60. package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
  61. package/dist/cdn/chunks/{BlockPreviewCanvas-Ny1X_mee.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
  62. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js → CloudHeaderExtras-BtqdN777.js} +4 -4
  63. package/dist/cdn/chunks/{CloudHeaderExtras-DtMORiLS.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
  64. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js → CloudPanels-BSJ-Z5Hw.js} +43 -43
  65. package/dist/cdn/chunks/{CloudPanels-BkmLc2Fl.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
  66. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
  67. package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
  68. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js → CollaboratorBar-Bc9914Az.js} +16 -16
  69. package/dist/cdn/chunks/{CollaboratorBar-II8eYtKu.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
  70. package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
  71. package/dist/cdn/chunks/{CommentsPanel-CAiwilM2.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
  72. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
  73. package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
  74. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js → CountdownBlock-CjMhMhnv.js} +26 -26
  75. package/dist/cdn/chunks/{CountdownBlock-Dyr5P0IP.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
  76. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
  77. package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
  78. package/dist/cdn/chunks/{IssuesPanel-pr7_nuLI.js → IssuesPanel-CUmI4HMm.js} +132 -120
  79. package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
  80. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
  81. package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
  82. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js → LoadingTrack-DUYcDHOV.js} +2 -2
  83. package/dist/cdn/chunks/{LoadingTrack-DfJ_C33G.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
  84. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
  85. package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
  86. package/dist/cdn/chunks/{LogicTagInsertButton-B_ldj3TO.js → LogicTagInsertButton-5Z3fFzjc.js} +465 -456
  87. package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
  88. package/dist/cdn/chunks/{MediaEditModal-CGfzcHwP.js → MediaEditModal-DDCIwr9U.js} +439 -439
  89. package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
  90. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js → MediaPanels-Dz79oy8P.js} +5 -5
  91. package/dist/cdn/chunks/{MediaPanels-D0BdxdqP.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
  92. package/dist/cdn/chunks/MergeTagInput-CIWy-cXf.js +82 -0
  93. package/dist/cdn/chunks/{MergeTagInput-CFu9VXPS.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
  94. package/dist/cdn/chunks/{MergeTagModeToggle-BFpK5dxg.js → MergeTagModeToggle-BrP5GR-x.js} +50 -50
  95. package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
  96. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
  97. package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
  98. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
  99. package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
  100. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js → RestoreVersionDialog-Crj1DBqC.js} +18 -18
  101. package/dist/cdn/chunks/{RestoreVersionDialog-B866zFP0.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
  102. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js → RichTextEditorContent-rCCqFlwJ.js} +43 -43
  103. package/dist/cdn/chunks/{RichTextEditorContent-DaY63kye.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
  104. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js → SaveBlockDialog-C34RW1aM.js} +71 -71
  105. package/dist/cdn/chunks/{SaveBlockDialog-B7nftAAS.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
  106. package/dist/cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js +356 -0
  107. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B9XCjDfm.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
  108. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
  109. package/dist/cdn/chunks/{SavedBlocksPanels-C3nK90pz.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
  111. package/dist/cdn/chunks/{SavedBlocksPickBar-B166Mek9.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
  112. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
  113. package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
  114. package/dist/cdn/chunks/{TestEmailModal-DcwKhFnI.js → TestEmailModal-BXeCtTjU.js} +81 -78
  115. package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
  116. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js → TestEmailPanel-CpZcpB9D.js} +5 -5
  117. package/dist/cdn/chunks/{TestEmailPanel-BDBAvAfI.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
  118. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
  119. package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
  120. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
  121. package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
  122. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
  123. package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
  124. package/dist/cdn/chunks/{TplModal-BDyeS69p.js → TplModal-DDDUDMYC.js} +19 -19
  125. package/dist/cdn/chunks/{TplModal-BDyeS69p.js.map → TplModal-DDDUDMYC.js.map} +1 -1
  126. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js → VersionHistoryMenu-DSElv3Sv.js} +36 -36
  127. package/dist/cdn/chunks/{VersionHistoryMenu-CmpgUI4Q.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
  128. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
  129. package/dist/cdn/chunks/{VersionHistoryPanels-DB_FZyyg.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
  130. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
  131. package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
  132. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
  133. package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
  134. package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js +21 -0
  135. package/dist/cdn/chunks/blockTypeIcons-DMgLcuI8.js.map +1 -0
  136. package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
  137. package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
  138. package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
  139. package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
  140. package/dist/cdn/chunks/{createCloudRuntime-D6niZ2Rc.js → createCloudRuntime-BdsclY8_.js} +85 -83
  141. package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
  142. package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
  143. package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
  144. package/dist/{dist-CEdyyDn7.js → cdn/chunks/dist-BzXULHvI.js} +63 -61
  145. package/dist/cdn/chunks/{dist-C2epoAwW.js.map → dist-BzXULHvI.js.map} +1 -1
  146. package/dist/{dist-BA-jTQgw.js → cdn/chunks/dist-DqGgijFI.js} +108 -109
  147. package/dist/cdn/chunks/{dist-CONcGNwy.js.map → dist-DqGgijFI.js.map} +1 -1
  148. package/dist/cdn/chunks/{draggable-B8hTTYFO.js → draggable-DepKdldn.js} +1384 -1376
  149. package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
  150. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js → editor-modal-CPbgthOv.js} +986 -986
  151. package/dist/cdn/chunks/{editor-modal-cvYkpbHD.js.map → editor-modal-CPbgthOv.js.map} +1 -1
  152. package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
  153. package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
  154. package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
  155. package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
  156. package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
  157. package/dist/cdn/chunks/{extensions-ClDhn88e.js → extensions-Uh9vuFfK.js} +57 -57
  158. package/dist/cdn/chunks/{extensions-ClDhn88e.js.map → extensions-Uh9vuFfK.js.map} +1 -1
  159. package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
  160. package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
  161. package/dist/cdn/chunks/{icons-HCBP93Ch.js → icons-CSSMtbGK.js} +187 -144
  162. package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
  163. package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
  164. package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
  165. package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
  166. package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
  167. package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
  168. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
  169. package/dist/cdn/chunks/{liquid.browser-DkLBNrft.js → liquid.browser-rubac0VA.js} +782 -746
  170. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  171. package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
  172. package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
  173. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
  174. package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
  175. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
  176. package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
  177. package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
  178. package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
  179. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
  180. package/dist/cdn/chunks/{preRenderCustomBlocks-D-dsBq5t.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
  181. package/dist/cdn/chunks/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +115 -1
  182. package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
  183. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
  184. package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
  185. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
  186. package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
  187. package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
  188. package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
  189. package/dist/cdn/chunks/{src-CUH_EI7k.js → src-Ddpm4HsS.js} +225 -259
  190. package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
  191. package/dist/cdn/chunks/{src-BKpAis_q.js → src-DheBmnvF.js} +635 -478
  192. package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
  193. package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
  194. package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
  195. package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
  196. package/dist/cdn/chunks/{tiptap-ChSZybTi.js → tiptap-Dipw_zOQ.js} +48 -48
  197. package/dist/cdn/chunks/{tiptap-ChSZybTi.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
  198. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js → useCloudI18n-Cc5NZqiI.js} +3 -3
  199. package/dist/cdn/chunks/{useCloudI18n-RJXyVnIf.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
  200. package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
  201. package/dist/cdn/chunks/{useEditorRoot-BT3c9CXj.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
  202. package/dist/cdn/chunks/{useI18n-11iqzC6m.js → useI18n-BnJYydPv.js} +3 -3
  203. package/dist/cdn/chunks/{useI18n-11iqzC6m.js.map → useI18n-BnJYydPv.js.map} +1 -1
  204. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
  205. package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
  206. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js → useLogicTag-B7RpqVFQ.js} +5 -5
  207. package/dist/cdn/chunks/{useLogicTag-vy5KGg5D.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
  208. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js → useMergeTag-C-32ETjj.js} +6 -6
  209. package/dist/cdn/chunks/{useMergeTag-BFBBjnwh.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
  210. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
  211. package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
  212. package/dist/cdn/chunks/{useScrollToBlock-C0dawxGr.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
  213. package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
  214. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js → withCurrentFont-D33ZXoWp.js} +2 -2
  215. package/dist/cdn/chunks/{withCurrentFont-C3CquBQN.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
  216. package/dist/cdn/editor.css +1 -1
  217. package/dist/cdn/editor.js +2503 -1809
  218. package/dist/cdn/editor.js.map +1 -1
  219. package/dist/{check-N3x4z_rH.js → check-ChQ0l8EQ.js} +1 -1
  220. package/dist/{chevron-down-gXu9qNwO.js → chevron-down-Bh6cp6PI.js} +1 -1
  221. package/dist/{chevron-right-rL0ayGk5.js → chevron-right-LUgdqdoW.js} +1 -1
  222. package/dist/{chevron-up-0ugh8HnW.js → chevron-up-XsDeJxQN.js} +1 -1
  223. package/dist/{circle-alert-B9Ls75B5.js → circle-alert-lODfDsrj.js} +1 -1
  224. package/dist/{clock-BqHBaCLm.js → clock-DrqFEZkT.js} +1 -1
  225. package/dist/composables-BOP3ERRP.js +4517 -0
  226. package/dist/{createCloudRuntime-B5VIdnwz.js → createCloudRuntime-DGV5a5Af.js} +47 -45
  227. package/dist/{createLucideIcon-BV7Gwz_Z.js → createLucideIcon-Dw5e5gVE.js} +16 -16
  228. package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
  229. package/dist/{cdn/chunks/dist-CONcGNwy.js → dist-0alKVRc_.js} +100 -99
  230. package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
  231. package/dist/dist-6DU0me3E.js +4 -0
  232. package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
  233. package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
  234. package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
  235. package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
  236. package/dist/{cdn/chunks/dist-C2epoAwW.js → dist-CX7skkvG.js} +29 -31
  237. package/dist/dist-CcOn7WCo.js +4 -0
  238. package/dist/dist-Cdkm20M6.js +2542 -0
  239. package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
  240. package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
  241. package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
  242. package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
  243. package/dist/{dist-DDN7yR-w.js → dist-fqSers8_.js} +131 -131
  244. package/dist/{editor-modal-Du9VI9q4.js → editor-modal-B_2EAOjN.js} +907 -906
  245. package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
  246. package/dist/en-DTtwco2Q.js +1 -0
  247. package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
  248. package/dist/{extensions-FRYhx7qa.js → extensions-DOLZkLzV.js} +173 -173
  249. package/dist/{eye-BKj9Tfnc.js → eye-DChfk0gi.js} +1 -1
  250. package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
  251. package/dist/{image-DNdvdTla.js → image--Hj2by1G.js} +1 -1
  252. package/dist/index.d.ts +182 -14
  253. package/dist/{info-Bx-kBkbH.js → info-BbXgy82f.js} +1 -1
  254. package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
  255. package/dist/keys-BCqskl51.js +9 -0
  256. package/dist/languageName-DEEOhDWI.js +10 -0
  257. package/dist/{link-D8-rYdIQ.js → link-C2_8yJno.js} +1 -1
  258. package/dist/{liquid.browser-D1RxawkY.js → liquid.browser-DUXEekoN.js} +781 -745
  259. package/dist/{list-BneisA27.js → list-DLGs2n0V.js} +1 -1
  260. package/dist/{loader-circle-DBEXphyx.js → loader-circle-BbDItE_O.js} +1 -1
  261. package/dist/{message-circle-Bg4xInCM.js → message-circle-NAModq0p.js} +1 -1
  262. package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
  263. package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
  264. package/dist/noticeTones-D7BPu-Le.js +14 -0
  265. package/dist/{package-B40Vkfsp.js → package-BuzsfRyH.js} +1 -1
  266. package/dist/{pencil-CYdAHTds.js → pencil-BTUUECH4.js} +1 -1
  267. package/dist/plural-CyxrJXL1.js +15 -0
  268. package/dist/plus-Dm7DN65T.js +13 -0
  269. package/dist/{preRenderCustomBlocks-AbZArwkR.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
  270. package/dist/{pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -0
  271. package/dist/{refresh-cw-Bb1FWrU0.js → refresh-cw-xMURqGWi.js} +2 -12
  272. package/dist/rotate-ccw-DqVcEIn5.js +13 -0
  273. package/dist/{runtime-dom.esm-bundler-CLGymEyk.js → runtime-dom.esm-bundler-DlHp8xgy.js} +167 -167
  274. package/dist/sanitizeHtml-mKgNUdME.js +962 -0
  275. package/dist/{search-BZEo08gi.js → search-Cfr3W44N.js} +1 -1
  276. package/dist/{send-DHtrnXQs.js → send-CH1SrvyB.js} +1 -1
  277. package/dist/{smartphone-dlN3vpA3.js → smartphone-pAkvzjdI.js} +1 -1
  278. package/dist/socialIcons-Dqr4DJOz.js +2705 -0
  279. package/dist/{sparkles-NOttoDnJ.js → sparkles-CRO0cCnp.js} +1 -1
  280. package/dist/{square-B1CJgdt2.js → square-CaQWMntx.js} +1 -1
  281. package/dist/style.css +1 -1
  282. package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
  283. package/dist/templatical-editor.js +2294 -1608
  284. package/dist/{text-align-start-zpoXmb-Z.js → text-align-start-BQ39AaRK.js} +1 -1
  285. package/dist/{trash-CGbk4Sgt.js → trash-BL5gEFHN.js} +1 -1
  286. package/dist/{triangle-alert-CKLMyGVp.js → triangle-alert-BYbKu7zZ.js} +1 -1
  287. package/dist/{upload-DQoackAn.js → upload-BhmL4Vqx.js} +1 -1
  288. package/dist/{useCloudI18n-DcLtxOQZ.js → useCloudI18n-Dh2iydo1.js} +4 -4
  289. package/dist/useEditorRoot-DY3mgcHm.js +7 -0
  290. package/dist/{useI18n-CeTm777E.js → useI18n-CgtvtF4C.js} +4 -4
  291. package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
  292. package/dist/{useLogicTag-DFDYJeMN.js → useLogicTag-BXXXQQmi.js} +4 -4
  293. package/dist/{useMergeTag-B46vACAG.js → useMergeTag-C9Okr87y.js} +5 -5
  294. package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
  295. package/dist/{useScrollToBlock-C-NzvjeO.js → useScrollToBlock-C0Kapxdh.js} +5 -5
  296. package/dist/{vue.runtime.esm-bundler-CrlI8j5R.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1247 -1239
  297. package/dist/withCurrentFont-DJiQqZzL.js +18 -0
  298. package/dist/{x-zcrnmcmU.js → x-B7NZYzhx.js} +1 -1
  299. package/package.json +23 -23
  300. package/dist/AiAltTextPopover-Cm11CsKH.js +0 -105
  301. package/dist/BlockIssueBadge-6Ri2FfX-.js +0 -33
  302. package/dist/BlockPreviewCanvas-Df9iz7sK.js +0 -140
  303. package/dist/CollaborationNotices-JQ3vQoqO.js +0 -75
  304. package/dist/CommentsPanel-BuftXc0U.js +0 -16
  305. package/dist/CommentsSidebar-Co3x4uH0.js +0 -499
  306. package/dist/CountdownToolbar-CrL4WKy9.js +0 -197
  307. package/dist/MergeTagInput-DE7kWwXx.js +0 -80
  308. package/dist/MergeTagTextarea-DVPQkiYY.js +0 -69
  309. package/dist/SavedBlocksBrowserModal-SRtN5h9q.js +0 -359
  310. package/dist/TemplateSettings-D0XcH32O.js +0 -236
  311. package/dist/TestEmailModal-Cb5t0yB2.js +0 -209
  312. package/dist/TitleEditor-BYk_9SpQ.js +0 -198
  313. package/dist/ToggleSwitch-poGWbduy.js +0 -36
  314. package/dist/Toolbar-Dku_pZni.js +0 -3145
  315. package/dist/VersionPreviewBanner-CSs7zum_.js +0 -37
  316. package/dist/WrapperBlock-DwjK_IdJ.js +0 -44
  317. package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js +0 -106
  318. package/dist/cdn/chunks/AiAltTextPopover-DjMoJCgU.js.map +0 -1
  319. package/dist/cdn/chunks/AiAltTextReview-BafAtBoA.js.map +0 -1
  320. package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js +0 -474
  321. package/dist/cdn/chunks/AiChatPanel-DXeZgc7D.js.map +0 -1
  322. package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +0 -1
  323. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js +0 -34
  324. package/dist/cdn/chunks/BlockIssueBadge-DIJDqqcY.js.map +0 -1
  325. package/dist/cdn/chunks/BlockPreviewCanvas-Ny1X_mee.js +0 -142
  326. package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js +0 -77
  327. package/dist/cdn/chunks/CollaborationNotices-Hf8r08Sw.js.map +0 -1
  328. package/dist/cdn/chunks/CommentsPanel-CAiwilM2.js +0 -18
  329. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js +0 -469
  330. package/dist/cdn/chunks/CommentsSidebar-Dj8sDiLN.js.map +0 -1
  331. package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js +0 -199
  332. package/dist/cdn/chunks/CountdownToolbar-CguFJdqn.js.map +0 -1
  333. package/dist/cdn/chunks/IssuesPanel-pr7_nuLI.js.map +0 -1
  334. package/dist/cdn/chunks/LogicTagInsertButton-B_ldj3TO.js.map +0 -1
  335. package/dist/cdn/chunks/MediaEditModal-CGfzcHwP.js.map +0 -1
  336. package/dist/cdn/chunks/MergeTagModeToggle-BFpK5dxg.js.map +0 -1
  337. package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js +0 -71
  338. package/dist/cdn/chunks/MergeTagTextarea-Zo0mYWbf.js.map +0 -1
  339. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js +0 -631
  340. package/dist/cdn/chunks/ParagraphEditor-DsPLVAgm.js.map +0 -1
  341. package/dist/cdn/chunks/SavedBlocksBrowserModal-B9XCjDfm.js +0 -356
  342. package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js +0 -208
  343. package/dist/cdn/chunks/TemplateSettings-jWpmuWDR.js.map +0 -1
  344. package/dist/cdn/chunks/TestEmailModal-DcwKhFnI.js.map +0 -1
  345. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js +0 -198
  346. package/dist/cdn/chunks/TitleEditor-R2lQw6WA.js.map +0 -1
  347. package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js +0 -38
  348. package/dist/cdn/chunks/ToggleSwitch-BDMugNES.js.map +0 -1
  349. package/dist/cdn/chunks/Toolbar-CnvfW72e.js +0 -3061
  350. package/dist/cdn/chunks/Toolbar-CnvfW72e.js.map +0 -1
  351. package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js +0 -39
  352. package/dist/cdn/chunks/VersionPreviewBanner-CZ--HOoa.js.map +0 -1
  353. package/dist/cdn/chunks/WrapperBlock-D3obNGab.js +0 -46
  354. package/dist/cdn/chunks/WrapperBlock-D3obNGab.js.map +0 -1
  355. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js +0 -21
  356. package/dist/cdn/chunks/blockTypeIcons-DFf7AyqI.js.map +0 -1
  357. package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
  358. package/dist/cdn/chunks/createCloudRuntime-D6niZ2Rc.js.map +0 -1
  359. package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
  360. package/dist/cdn/chunks/draggable-B8hTTYFO.js.map +0 -1
  361. package/dist/cdn/chunks/en-CKAXAo3Z.js +0 -1
  362. package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
  363. package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
  364. package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
  365. package/dist/cdn/chunks/icons-HCBP93Ch.js.map +0 -1
  366. package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
  367. package/dist/cdn/chunks/keys-BF9gazbd.js +0 -11
  368. package/dist/cdn/chunks/keys-BF9gazbd.js.map +0 -1
  369. package/dist/cdn/chunks/liquid.browser-DkLBNrft.js.map +0 -1
  370. package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
  371. package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js +0 -198
  372. package/dist/cdn/chunks/normalizeMergeTagMarkup-DpHCSESZ.js.map +0 -1
  373. package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
  374. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js +0 -72
  375. package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +0 -1
  376. package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js +0 -2008
  377. package/dist/cdn/chunks/socialIcons-rJoqO1TJ.js.map +0 -1
  378. package/dist/cdn/chunks/src-BKpAis_q.js.map +0 -1
  379. package/dist/cdn/chunks/src-C9DTvn1H.js +0 -1423
  380. package/dist/cdn/chunks/src-C9DTvn1H.js.map +0 -1
  381. package/dist/cdn/chunks/src-CUH_EI7k.js.map +0 -1
  382. package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
  383. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js +0 -2534
  384. package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +0 -1
  385. package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +0 -9
  386. package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js +0 -70
  387. package/dist/cdn/chunks/usePopoverPosition-AnVIwiVv.js.map +0 -1
  388. package/dist/cdn/chunks/useScrollToBlock-C0dawxGr.js.map +0 -1
  389. package/dist/dist-CzrLYq2s.js +0 -1363
  390. package/dist/dist-DyFArF_G.js +0 -4
  391. package/dist/dist-pA3ooG6N.js +0 -4
  392. package/dist/en-CyEE7FPY.js +0 -1
  393. package/dist/keys-DBjrQkYH.js +0 -9
  394. package/dist/normalizeMergeTagMarkup-IH8COHzd.js +0 -196
  395. package/dist/sanitizeHtml-CnOA1efV.js +0 -942
  396. package/dist/socialIcons-B_d52_eS.js +0 -2075
  397. package/dist/useEditorCore-DG9UvWUm.js +0 -4011
  398. package/dist/useEditorRoot-BKr6nNkC.js +0 -7
  399. package/dist/usePopoverPosition-C42kD7zt.js +0 -68
  400. package/dist/withCurrentFont-v_a4Oso8.js +0 -18
@@ -1,21 +1,22 @@
1
- import { At as e, C as t, D as n, H as r, Mt as i, N as a, P as o, Q as s, V as c, _ as l, c as u, d, f, g as p, j as m, l as h, ot as g, r as _, u as v, y, z as b } from "./vue.runtime.esm-bundler-CrlI8j5R.js";
2
- import { a as ee } from "./runtime-dom.esm-bundler-CLGymEyk.js";
3
- import { _ as te, g as ne } from "./dist-CEdyyDn7.js";
4
- import { X as re } from "./keys-DBjrQkYH.js";
5
- import { t as x } from "./useI18n-CeTm777E.js";
6
- import { t as S } from "./createLucideIcon-BV7Gwz_Z.js";
7
- import { t as ie } from "./circle-alert-B9Ls75B5.js";
8
- import { t as C } from "./image-DNdvdTla.js";
9
- import { t as ae } from "./loader-circle-DBEXphyx.js";
10
- import { t as oe } from "./send-DHtrnXQs.js";
11
- import { t as w } from "./sparkles-NOttoDnJ.js";
12
- import { t as se } from "./square-B1CJgdt2.js";
13
- import { t as T } from "./x-zcrnmcmU.js";
14
- import { t as ce } from "./LoadingTrack-DZA5AoP9.js";
15
- import { t as E } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
1
+ import { B as e, F as t, Ft as n, M as r, Mt as i, O as a, P as o, U as s, W as ee, _ as c, c as l, ct as u, d, et as f, f as p, g as m, l as h, r as g, u as _, w as v, y } from "./vue.runtime.esm-bundler-BJXc_Mri.js";
2
+ import { a as te } from "./runtime-dom.esm-bundler-DlHp8xgy.js";
3
+ import { t as b } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
4
+ import { t as x } from "./createLucideIcon-Dw5e5gVE.js";
5
+ import { t as ne } from "./circle-alert-lODfDsrj.js";
6
+ import { t as S } from "./image--Hj2by1G.js";
7
+ import { t as re } from "./loader-circle-BbDItE_O.js";
8
+ import { t as ie } from "./send-CH1SrvyB.js";
9
+ import { t as C } from "./sparkles-CRO0cCnp.js";
10
+ import { t as ae } from "./square-CaQWMntx.js";
11
+ import { t as w } from "./x-B7NZYzhx.js";
12
+ import { rt as oe, v as se } from "./keys-BCqskl51.js";
13
+ import { t as ce } from "./useI18n-CgtvtF4C.js";
14
+ import { t as T } from "./languageName-DEEOhDWI.js";
15
+ import { w as E } from "./styleConstants-CgiNKdnc.js";
16
+ import { _ as le, g as ue } from "./dist-CX7skkvG.js";
17
+ import { t as de } from "./LoadingTrack-BG8cg9xi.js";
16
18
  import { n as D } from "./aiErrors-C3QEMB0x.js";
17
- import { S as O } from "./styleConstants-B8xVRiwX.js";
18
- var k = S({
19
+ var O = x({
19
20
  name: "file-text",
20
21
  size: 24,
21
22
  node: [
@@ -40,7 +41,7 @@ var k = S({
40
41
  key: "z1uh3a"
41
42
  }]
42
43
  ]
43
- }), le = S({
44
+ }), fe = x({
44
45
  name: "message-square-plus",
45
46
  size: 24,
46
47
  node: [
@@ -57,14 +58,14 @@ var k = S({
57
58
  key: "1fldmi"
58
59
  }]
59
60
  ]
60
- }), ue = S({
61
+ }), k = x({
61
62
  name: "paperclip",
62
63
  size: 24,
63
64
  node: [["path", {
64
65
  d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",
65
66
  key: "1miecu"
66
67
  }]]
67
- }), de = S({
68
+ }), pe = x({
68
69
  name: "redo-2",
69
70
  size: 24,
70
71
  node: [["path", {
@@ -74,7 +75,7 @@ var k = S({
74
75
  d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",
75
76
  key: "6uklza"
76
77
  }]]
77
- }), fe = S({
78
+ }), me = x({
78
79
  name: "undo-2",
79
80
  size: 24,
80
81
  node: [["path", {
@@ -97,32 +98,32 @@ var k = S({
97
98
  closeLabel: {}
98
99
  },
99
100
  emits: ["close"],
100
- setup(e, { emit: t }) {
101
- let n = t;
102
- return (t, r) => (m(), f("div", {
101
+ setup(e, { emit: i }) {
102
+ let a = i;
103
+ return (i, o) => (r(), p("div", {
103
104
  role: "complementary",
104
105
  "aria-label": e.title,
105
106
  "data-testid": e.testid,
106
107
  class: "tpl-ai-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
107
108
  }, [
108
- h("div", j, [h("div", M, [h("div", N, [l(g(w), {
109
+ h("div", j, [h("div", M, [h("div", N, [c(u(C), {
109
110
  size: 13,
110
111
  "stroke-width": 2,
111
112
  "aria-hidden": "true"
112
- }), h("span", P, i(e.title), 1)]), e.subtitle ? (m(), f("p", F, i(e.subtitle), 1)) : d("", !0)]), h("div", I, [o(t.$slots, "actions"), h("button", {
113
+ }), h("span", P, n(e.title), 1)]), e.subtitle ? (r(), p("p", F, n(e.subtitle), 1)) : d("", !0)]), h("div", I, [t(i.$slots, "actions"), h("button", {
113
114
  type: "button",
114
115
  "data-testid": "ai-panel-close",
115
116
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)]",
116
117
  "aria-label": e.closeLabel,
117
118
  title: e.closeLabel,
118
- onClick: r[0] ||= (e) => n("close")
119
- }, [l(g(T), {
119
+ onClick: o[0] ||= (e) => a("close")
120
+ }, [c(u(w), {
120
121
  size: 14,
121
122
  "stroke-width": 2,
122
123
  "aria-hidden": "true"
123
124
  })], 8, L)])]),
124
- h("div", R, [o(t.$slots, "default")]),
125
- o(t.$slots, "footer")
125
+ h("div", R, [t(i.$slots, "default")]),
126
+ t(i.$slots, "footer")
126
127
  ], 8, A));
127
128
  }
128
129
  }), B = /* @__PURE__ */ new Set([
@@ -132,7 +133,7 @@ var k = S({
132
133
  "image/gif",
133
134
  "application/pdf"
134
135
  ]);
135
- function V(e, t) {
136
+ function he(e, t) {
136
137
  let n = [...e], r = [], i = e.reduce((e, t) => e + t.size, 0);
137
138
  for (let e of t) {
138
139
  let t = n.length >= 4 ? "tooMany" : B.has(e.type) ? e.size > 5242880 ? "tooLarge" : i + e.size > 10485760 ? "totalTooLarge" : null : "wrongType";
@@ -147,25 +148,29 @@ function V(e, t) {
147
148
  };
148
149
  }
149
150
  // src/components/ai/AiChatPanel.vue?vue&type=script&setup=true&lang.ts
150
- var pe = [
151
+ var ge = [
151
152
  "aria-label",
152
153
  "title",
153
154
  "disabled"
154
- ], me = {
155
+ ], _e = {
155
156
  key: 0,
156
157
  "data-testid": "ai-chat-drop-hint",
157
158
  class: "tpl:absolute tpl:inset-0 tpl:z-20 tpl:flex tpl:items-center tpl:justify-center tpl:border-2 tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:text-center tpl:text-sm tpl:text-[var(--tpl-primary)] tpl:pointer-events-none"
158
- }, he = {
159
+ }, ve = {
159
160
  key: 0,
160
161
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
161
- }, ge = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, _e = {
162
+ }, ye = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, be = {
162
163
  key: 1,
163
164
  class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
164
- }, ve = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ye = {
165
+ }, xe = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Se = {
165
166
  key: 2,
166
167
  class: "tpl:flex tpl:flex-col tpl:gap-4"
167
- }, be = {
168
+ }, Ce = {
168
169
  key: 0,
170
+ "data-testid": "ai-chat-language",
171
+ class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
172
+ }, we = {
173
+ key: 1,
169
174
  "data-testid": "ai-chat-prompt",
170
175
  class: "tpl:self-end tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
171
176
  style: {
@@ -174,10 +179,10 @@ var pe = [
174
179
  "max-width": "85%",
175
180
  "box-shadow": "var(--tpl-shadow)"
176
181
  }
177
- }, xe = {
178
- key: 1,
182
+ }, Te = {
183
+ key: 2,
179
184
  class: "tpl:flex tpl:flex-col tpl:gap-2"
180
- }, Se = {
185
+ }, Ee = {
181
186
  key: 1,
182
187
  "data-testid": "ai-chat-reply",
183
188
  class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
@@ -187,40 +192,40 @@ var pe = [
187
192
  color: "var(--tpl-text)",
188
193
  "box-shadow": "var(--tpl-shadow)"
189
194
  }
190
- }, Ce = {
195
+ }, De = {
191
196
  key: 2,
192
197
  "data-testid": "ai-chat-applied",
193
198
  class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
194
- }, we = ["disabled", "onClick"], Te = {
199
+ }, Oe = ["disabled", "onClick"], ke = {
195
200
  key: 3,
196
201
  role: "alert",
197
202
  "data-testid": "ai-chat-item-error",
198
203
  class: "tpl:m-0 tpl:text-xs tpl:text-[var(--tpl-danger)]"
199
- }, Ee = {
204
+ }, Ae = {
200
205
  key: 1,
201
206
  class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
202
207
  style: {
203
208
  "background-color": "color-mix(in srgb, var(--tpl-bg) 50%, transparent)",
204
209
  "backdrop-filter": "blur(2px)"
205
210
  }
206
- }, De = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Oe = ["onClick"], ke = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Ae = ["disabled"], je = {
211
+ }, je = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Me = ["onClick"], Ne = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, Pe = ["disabled"], Fe = {
207
212
  key: 0,
208
213
  class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
209
- }, H = { class: "tpl:truncate" }, Me = [
214
+ }, V = { class: "tpl:truncate" }, Ie = [
210
215
  "aria-label",
211
216
  "disabled",
212
217
  "onClick"
213
- ], Ne = {
218
+ ], Le = {
214
219
  key: 1,
215
220
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
216
- }, Pe = {
221
+ }, Re = {
217
222
  "aria-live": "polite",
218
223
  class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
219
- }, Fe = {
224
+ }, ze = {
220
225
  key: 1,
221
226
  role: "status",
222
227
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
223
- }, Ie = ["disabled"], Le = {
228
+ }, Be = ["disabled"], Ve = {
224
229
  key: 2,
225
230
  role: "alert",
226
231
  "data-testid": "ai-chat-error",
@@ -229,65 +234,69 @@ var pe = [
229
234
  "background-color": "var(--tpl-danger-light)",
230
235
  color: "var(--tpl-danger)"
231
236
  }
232
- }, Re = { class: "tpl-ai-input-wrapper tpl-focus-ring-host tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, ze = [
237
+ }, He = { class: "tpl-ai-input-wrapper tpl-focus-ring-host tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, Ue = {
238
+ key: 0,
239
+ "data-testid": "ai-active-language",
240
+ class: "tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
241
+ }, We = [
233
242
  "placeholder",
234
243
  "aria-label",
235
244
  "disabled"
236
- ], Be = { class: "tpl:flex tpl:items-center tpl:justify-between" }, Ve = [
245
+ ], Ge = { class: "tpl:flex tpl:items-center tpl:justify-between" }, Ke = [
237
246
  "aria-label",
238
247
  "title",
239
248
  "disabled"
240
- ], He = ["aria-label", "title"], Ue = [
249
+ ], qe = ["aria-label", "title"], Je = [
241
250
  "aria-label",
242
251
  "title",
243
252
  "disabled"
244
- ], We = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, U = /*#__PURE__*/ E(/* @__PURE__ */ y({
253
+ ], Ye = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, H = /*#__PURE__*/ b(/* @__PURE__ */ y({
245
254
  __name: "AiChatPanel",
246
255
  props: { feature: {} },
247
256
  emits: ["close"],
248
- setup(o, { emit: y }) {
249
- let S = o, E = y, { t: A, format: j } = x(), M = t(re, void 0), N = s(""), P = s(null), F = s(null), I = s([]), L = s([]), R = s(0);
250
- b(() => S.feature.templateSession.value, () => {
251
- N.value = "", I.value = [], L.value = [], R.value = 0;
257
+ setup(t, { emit: y }) {
258
+ let b = t, x = y, { t: A, format: j } = ce(), M = v(se, null), N = v(oe, void 0), P = f(""), F = f(null), I = f(null), L = f([]), R = f([]), B = f(0);
259
+ e(() => b.feature.templateSession.value, () => {
260
+ P.value = "", L.value = [], R.value = [], B.value = 0;
252
261
  }, { flush: "sync" });
253
- let B = u(() => S.feature.has("chatAttachments"));
262
+ let H = l(() => b.feature.has("chatAttachments"));
254
263
  function U(e) {
255
- let t = V(I.value, e);
256
- I.value = t.accepted;
264
+ let t = he(L.value, e);
265
+ L.value = t.accepted;
257
266
  let n = {
258
267
  tooMany: "attachTooMany",
259
268
  tooLarge: "attachTooLarge",
260
269
  totalTooLarge: "attachTotalTooLarge",
261
270
  wrongType: "attachWrongType"
262
271
  };
263
- L.value = t.errors.map((e) => j(A.ai.chat[n[e.reason]], { name: e.name }));
272
+ R.value = t.errors.map((e) => j(A.ai.chat[n[e.reason]], { name: e.name }));
264
273
  }
265
- function Ge(e) {
274
+ function Xe(e) {
266
275
  let t = e.target;
267
- !Y.value && B.value && U(Array.from(t.files ?? [])), t.value = "";
276
+ !Y.value && H.value && U(Array.from(t.files ?? [])), t.value = "";
268
277
  }
269
- function Ke(e) {
270
- Y.value || (I.value.splice(e, 1), L.value = []);
278
+ function Ze(e) {
279
+ Y.value || (L.value.splice(e, 1), R.value = []);
271
280
  }
272
281
  function W(e) {
273
282
  return Array.from(e.dataTransfer?.types ?? []).includes("Files");
274
283
  }
275
- function qe(e) {
276
- B.value && !Y.value && W(e) && (e.preventDefault(), R.value++);
284
+ function Qe(e) {
285
+ H.value && !Y.value && W(e) && (e.preventDefault(), B.value++);
277
286
  }
278
- function Je(e) {
279
- W(e) && (R.value = Math.max(0, R.value - 1));
287
+ function $e(e) {
288
+ W(e) && (B.value = Math.max(0, B.value - 1));
280
289
  }
281
- function Ye(e) {
282
- B.value && W(e) && e.preventDefault();
290
+ function et(e) {
291
+ H.value && W(e) && e.preventDefault();
283
292
  }
284
- function Xe(e) {
285
- R.value = 0, B.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
293
+ function tt(e) {
294
+ B.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
286
295
  }
287
- b(() => S.feature.importQueue.value, (e) => {
288
- B.value && e.length && (U(e), N.value.trim() || (N.value = A.ai.import.prompt), S.feature.importQueue.value = [], n(() => P.value?.focus()));
296
+ e(() => b.feature.importQueue.value, (e) => {
297
+ H.value && e.length && (U(e), P.value.trim() || (P.value = A.ai.import.prompt), b.feature.importQueue.value = [], a(() => F.value?.focus()));
289
298
  }, { immediate: !0 });
290
- let G = s(null), K = s(0), q = u(() => S.feature.isTemplateEmpty.value ? [
299
+ let G = f(null), K = f(0), q = l(() => b.feature.isTemplateEmpty.value ? [
291
300
  A.ai.starters.emptyWelcome,
292
301
  A.ai.starters.emptyLaunch,
293
302
  A.ai.starters.emptyNewsletter
@@ -296,246 +305,250 @@ var pe = [
296
305
  A.ai.starters.filledFriendlier,
297
306
  A.ai.starters.filledDates,
298
307
  A.ai.starters.filledCta
299
- ]), J = u(() => S.feature.messages.value), Y = u(() => S.feature.isRunning.value), X = u(() => {
300
- let e = S.feature.failure.value;
301
- return e ? D(e.error, A.ai.errors, j, M, e.context) : "";
302
- }), { pause: Z, resume: Ze } = ne(() => {
308
+ ]), J = l(() => b.feature.messages.value), Y = l(() => b.feature.isRunning.value), X = l(() => {
309
+ let e = b.feature.failure.value;
310
+ return e ? D(e.error, A.ai.errors, j, N, e.context) : "";
311
+ }), { pause: Z, resume: nt } = ue(() => {
303
312
  K.value < q.value.length ? K.value++ : Z();
304
- }, 150, { immediate: !1 }), { start: Qe } = te(() => Ze(), 100, { immediate: !1 });
305
- b(() => q.value.length, (e) => {
306
- Z(), K.value = 0, e > 0 && Qe();
313
+ }, 150, { immediate: !1 }), { start: rt } = le(() => nt(), 100, { immediate: !1 });
314
+ e(() => q.value.length, (e) => {
315
+ Z(), K.value = 0, e > 0 && rt();
307
316
  }, { immediate: !0 });
308
317
  function Q() {
309
- n(() => {
318
+ a(() => {
310
319
  G.value && (G.value.scrollTop = G.value.scrollHeight);
311
320
  });
312
321
  }
313
- b(() => J.value.length, Q), b(() => [S.feature.failedPrompt.value, S.feature.failedAttachments.value], ([e, t]) => {
314
- e && (N.value = e, I.value = [...t]);
322
+ e(() => J.value.length, Q), e(() => [b.feature.failedPrompt.value, b.feature.failedAttachments.value], ([e, t]) => {
323
+ e && (P.value = e, L.value = [...t]);
315
324
  }, { immediate: !0 });
316
325
  async function $() {
317
- let e = N.value.trim();
326
+ let e = P.value.trim();
318
327
  if (!e || Y.value) return;
319
- let t = [...I.value];
320
- N.value = "", I.value = [], L.value = [], Q(), await S.feature.send(e, t), Q();
328
+ let t = [...L.value];
329
+ P.value = "", L.value = [], R.value = [], Q(), await b.feature.send(e, t), Q();
321
330
  }
322
- function $e(e) {
331
+ function it(e) {
323
332
  return e.undone ? A.ai.chat.undone : e.operationCount === 1 ? A.ai.chat.appliedChange : j(A.ai.chat.appliedChanges, { count: e.operationCount });
324
333
  }
325
- function et(e) {
326
- return e.failure ? D(e.failure.error, A.ai.errors, j, M, e.failure.context) : "";
334
+ function at(e) {
335
+ return e.failure ? D(e.failure.error, A.ai.errors, j, N, e.failure.context) : "";
327
336
  }
328
- function tt(e) {
329
- e.undone ? S.feature.redoMessage(e.id) : S.feature.undoMessage(e.id);
337
+ function ot(e) {
338
+ e.undone ? b.feature.redoMessage(e.id) : b.feature.undoMessage(e.id);
330
339
  }
331
- function nt(e) {
332
- Z(), N.value = e, $();
340
+ function st(e) {
341
+ Z(), P.value = e, $();
333
342
  }
334
- function rt(e) {
343
+ function ct(e) {
335
344
  e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
336
345
  }
337
- return (t, n) => (m(), f("div", {
346
+ return (e, a) => (r(), p("div", {
338
347
  class: "tpl:contents",
339
348
  "data-testid": "ai-chat-dropzone",
340
- onDragenter: qe,
341
- onDragleave: Je,
342
- onDragover: Ye,
343
- onDrop: Xe
344
- }, [l(z, {
345
- title: g(A).ai.chat.title,
346
- subtitle: g(A).ai.chat.notice,
349
+ onDragenter: Qe,
350
+ onDragleave: $e,
351
+ onDragover: et,
352
+ onDrop: tt
353
+ }, [c(z, {
354
+ title: u(A).ai.chat.title,
355
+ subtitle: u(A).ai.chat.notice,
347
356
  testid: "ai-panel-chat",
348
- "close-label": g(A).ai.chat.close,
349
- onClose: n[5] ||= (e) => E("close")
357
+ "close-label": u(A).ai.chat.close,
358
+ onClose: a[5] ||= (e) => x("close")
350
359
  }, {
351
- actions: c(() => [o.feature.canClear && J.value.length > 0 ? (m(), f("button", {
360
+ actions: s(() => [t.feature.canClear && J.value.length > 0 ? (r(), p("button", {
352
361
  key: 0,
353
362
  type: "button",
354
363
  "data-testid": "ai-chat-new",
355
364
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
356
- "aria-label": g(A).ai.chat.newChat,
357
- title: g(A).ai.chat.newChat,
365
+ "aria-label": u(A).ai.chat.newChat,
366
+ title: u(A).ai.chat.newChat,
358
367
  disabled: Y.value,
359
- onClick: n[0] ||= (e) => o.feature.newChat()
360
- }, [l(g(le), {
368
+ onClick: a[0] ||= (e) => t.feature.newChat()
369
+ }, [c(u(fe), {
361
370
  size: 14,
362
371
  "stroke-width": 2,
363
372
  "aria-hidden": "true"
364
- })], 8, pe)) : d("", !0)]),
365
- footer: c(() => [h("div", ke, [
366
- B.value ? (m(), f(_, { key: 0 }, [
373
+ })], 8, ge)) : d("", !0)]),
374
+ footer: s(() => [h("div", Ne, [
375
+ H.value ? (r(), p(g, { key: 0 }, [
367
376
  h("input", {
368
377
  ref_key: "fileInput",
369
- ref: F,
378
+ ref: I,
370
379
  "data-testid": "ai-chat-files",
371
380
  type: "file",
372
381
  multiple: "",
373
382
  accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
374
383
  hidden: "",
375
384
  disabled: Y.value,
376
- onChange: Ge
377
- }, null, 40, Ae),
378
- I.value.length ? (m(), f("div", je, [(m(!0), f(_, null, a(I.value, (e, t) => (m(), f("span", {
385
+ onChange: Xe
386
+ }, null, 40, Pe),
387
+ L.value.length ? (r(), p("div", Fe, [(r(!0), p(g, null, o(L.value, (e, t) => (r(), p("span", {
379
388
  key: t,
380
389
  "data-testid": "ai-chat-attachment",
381
390
  class: "tpl:flex tpl:max-w-full tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs tpl:text-[var(--tpl-text)]"
382
391
  }, [
383
- e.type === "application/pdf" ? (m(), v(g(k), {
392
+ e.type === "application/pdf" ? (r(), _(u(O), {
384
393
  key: 0,
385
394
  size: 12,
386
395
  "aria-hidden": "true"
387
- })) : (m(), v(g(C), {
396
+ })) : (r(), _(u(S), {
388
397
  key: 1,
389
398
  size: 12,
390
399
  "aria-hidden": "true"
391
400
  })),
392
- h("span", H, i(e.name), 1),
401
+ h("span", V, n(e.name), 1),
393
402
  h("button", {
394
403
  type: "button",
395
- "aria-label": g(j)(g(A).ai.chat.removeAttachment, { name: e.name }),
404
+ "aria-label": u(j)(u(A).ai.chat.removeAttachment, { name: e.name }),
396
405
  disabled: Y.value,
397
406
  class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
398
- onClick: (e) => Ke(t)
399
- }, [l(g(T), {
407
+ onClick: (e) => Ze(t)
408
+ }, [c(u(w), {
400
409
  size: 12,
401
410
  "aria-hidden": "true"
402
- })], 8, Me)
411
+ })], 8, Ie)
403
412
  ]))), 128))])) : d("", !0),
404
- I.value.length ? (m(), f("p", Ne, i(g(A).ai.import.placeholderNote), 1)) : d("", !0),
405
- h("div", Pe, [(m(!0), f(_, null, a(L.value, (e, t) => (m(), f("p", {
413
+ L.value.length ? (r(), p("p", Le, n(u(A).ai.import.placeholderNote), 1)) : d("", !0),
414
+ h("div", Re, [(r(!0), p(g, null, o(R.value, (e, t) => (r(), p("p", {
406
415
  key: t,
407
416
  class: "tpl:mb-2"
408
- }, i(e), 1))), 128))])
417
+ }, n(e), 1))), 128))])
409
418
  ], 64)) : d("", !0),
410
- o.feature.keptYourVersion.value ? (m(), f("div", Fe, [h("p", null, i(g(A).ai.chat.keptYourVersion), 1), h("button", {
419
+ t.feature.keptYourVersion.value ? (r(), p("div", ze, [h("p", null, n(u(A).ai.chat.keptYourVersion), 1), h("button", {
411
420
  type: "button",
412
421
  disabled: Y.value,
413
- class: e(g(O)),
414
- onClick: n[1] ||= (e) => o.feature.reloadTemplate()
415
- }, i(g(A).ai.chat.reload), 11, Ie)])) : d("", !0),
416
- X.value ? (m(), f("div", Le, [l(g(ie), {
422
+ class: i(u(E)),
423
+ onClick: a[1] ||= (e) => t.feature.reloadTemplate()
424
+ }, n(u(A).ai.chat.reload), 11, Be)])) : d("", !0),
425
+ X.value ? (r(), p("div", Ve, [c(u(ne), {
417
426
  size: 14,
418
427
  "stroke-width": 2,
419
428
  class: "tpl:mt-0.5 tpl:shrink-0",
420
429
  "aria-hidden": "true"
421
- }), h("span", null, i(X.value), 1)])) : d("", !0),
422
- h("div", Re, [r(h("textarea", {
423
- ref_key: "composer",
424
- ref: P,
425
- "onUpdate:modelValue": n[2] ||= (e) => N.value = e,
426
- "data-testid": "ai-chat-input",
427
- class: "tpl:max-h-32 tpl:min-h-[44px] tpl:w-full tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
428
- placeholder: g(A).ai.chat.inputPlaceholder,
429
- "aria-label": g(A).ai.chat.inputPlaceholder,
430
- disabled: Y.value,
431
- maxlength: "4000",
432
- rows: "3",
433
- onKeydown: rt
434
- }, null, 40, ze), [[ee, N.value]]), h("div", Be, [B.value ? (m(), f("button", {
435
- key: 0,
436
- type: "button",
437
- "aria-label": g(A).ai.chat.attach,
438
- title: g(A).ai.chat.attach,
439
- disabled: Y.value,
440
- class: "tpl:-ml-1.5 tpl:shrink-0 tpl:rounded-md tpl:p-1.5 tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
441
- onClick: n[3] ||= (e) => F.value?.click()
442
- }, [l(g(ue), {
443
- size: 16,
444
- "aria-hidden": "true"
445
- })], 8, Ve)) : d("", !0), Y.value ? (m(), f("button", {
446
- key: 1,
447
- type: "button",
448
- "data-testid": "ai-chat-stop",
449
- class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:text-[var(--tpl-primary)]",
450
- "aria-label": g(A).ai.chat.stop,
451
- title: g(A).ai.chat.stop,
452
- onClick: n[4] ||= (e) => o.feature.stop()
453
- }, [l(g(se), {
454
- size: 16,
455
- "stroke-width": 2,
456
- "aria-hidden": "true"
457
- })], 8, He)) : (m(), f("button", {
458
- key: 2,
459
- type: "button",
460
- "data-testid": "ai-chat-send",
461
- class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
462
- "aria-label": g(A).ai.chat.send,
463
- title: g(A).ai.chat.send,
464
- disabled: !N.value.trim(),
465
- onClick: $
466
- }, [l(g(oe), {
467
- size: 16,
468
- "stroke-width": 2,
469
- "aria-hidden": "true"
470
- })], 8, Ue))])]),
471
- h("p", We, i(g(A).ai.chat.disclaimer), 1)
430
+ }), h("span", null, n(X.value), 1)])) : d("", !0),
431
+ h("div", He, [
432
+ u(M)?.activeLocale?.value ? (r(), p("p", Ue, n(u(j)(u(A).localization.aiActiveLanguage, { language: u(T)(u(M).activeLocale.value) })), 1)) : d("", !0),
433
+ ee(h("textarea", {
434
+ ref_key: "composer",
435
+ ref: F,
436
+ "onUpdate:modelValue": a[2] ||= (e) => P.value = e,
437
+ "data-testid": "ai-chat-input",
438
+ class: "tpl:max-h-32 tpl:min-h-[44px] tpl:w-full tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
439
+ placeholder: u(A).ai.chat.inputPlaceholder,
440
+ "aria-label": u(A).ai.chat.inputPlaceholder,
441
+ disabled: Y.value,
442
+ maxlength: "4000",
443
+ rows: "3",
444
+ onKeydown: ct
445
+ }, null, 40, We), [[te, P.value]]),
446
+ h("div", Ge, [H.value ? (r(), p("button", {
447
+ key: 0,
448
+ type: "button",
449
+ "aria-label": u(A).ai.chat.attach,
450
+ title: u(A).ai.chat.attach,
451
+ disabled: Y.value,
452
+ class: "tpl:-ml-1.5 tpl:shrink-0 tpl:rounded-md tpl:p-1.5 tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
453
+ onClick: a[3] ||= (e) => I.value?.click()
454
+ }, [c(u(k), {
455
+ size: 16,
456
+ "aria-hidden": "true"
457
+ })], 8, Ke)) : d("", !0), Y.value ? (r(), p("button", {
458
+ key: 1,
459
+ type: "button",
460
+ "data-testid": "ai-chat-stop",
461
+ class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:text-[var(--tpl-primary)]",
462
+ "aria-label": u(A).ai.chat.stop,
463
+ title: u(A).ai.chat.stop,
464
+ onClick: a[4] ||= (e) => t.feature.stop()
465
+ }, [c(u(ae), {
466
+ size: 16,
467
+ "stroke-width": 2,
468
+ "aria-hidden": "true"
469
+ })], 8, qe)) : (r(), p("button", {
470
+ key: 2,
471
+ type: "button",
472
+ "data-testid": "ai-chat-send",
473
+ class: "tpl-ai-send-btn tpl:ml-auto tpl:-mr-1.5 tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
474
+ "aria-label": u(A).ai.chat.send,
475
+ title: u(A).ai.chat.send,
476
+ disabled: !P.value.trim(),
477
+ onClick: $
478
+ }, [c(u(ie), {
479
+ size: 16,
480
+ "stroke-width": 2,
481
+ "aria-hidden": "true"
482
+ })], 8, Je))])
483
+ ]),
484
+ h("p", Ye, n(u(A).ai.chat.disclaimer), 1)
472
485
  ])]),
473
- default: c(() => [
474
- B.value && R.value > 0 && !Y.value ? (m(), f("div", me, i(g(A).ai.chat.dropHint), 1)) : d("", !0),
486
+ default: s(() => [
487
+ H.value && B.value > 0 && !Y.value ? (r(), p("div", _e, n(u(A).ai.chat.dropHint), 1)) : d("", !0),
475
488
  h("div", {
476
489
  ref_key: "messagesContainer",
477
490
  ref: G,
478
491
  class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
479
- }, [o.feature.isLoadingHistory.value ? (m(), f("div", he, [l(g(ae), {
492
+ }, [t.feature.isLoadingHistory.value ? (r(), p("div", ve, [c(u(re), {
480
493
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
481
494
  size: 24,
482
495
  "stroke-width": 2,
483
496
  "aria-hidden": "true"
484
- }), h("p", ge, i(g(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (m(), f("div", _e, [l(g(w), {
497
+ }), h("p", ye, n(u(A).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (r(), p("div", be, [c(u(C), {
485
498
  size: 32,
486
499
  "stroke-width": 1.5,
487
500
  class: "tpl:text-[var(--tpl-text-dim)]",
488
501
  "aria-hidden": "true"
489
- }), h("p", ve, i(g(A).ai.chat.placeholder), 1)])) : (m(), f("div", ye, [(m(!0), f(_, null, a(J.value, (t) => (m(), f("div", {
490
- key: t.id,
502
+ }), h("p", xe, n(u(A).ai.chat.placeholder), 1)])) : (r(), p("div", Se, [(r(!0), p(g, null, o(J.value, (e) => (r(), p("div", {
503
+ key: e.id,
491
504
  class: "tpl:flex tpl:flex-col tpl:gap-2"
492
- }, [t.role === "user" ? (m(), f("div", be, [p(i(t.text) + " ", 1), (m(!0), f(_, null, a(t.attachments, (e, t) => (m(), f("span", {
505
+ }, [typeof e.locale == "string" ? (r(), p("span", Ce, n(u(T)(e.locale)), 1)) : d("", !0), e.role === "user" ? (r(), p("div", we, [m(n(e.text) + " ", 1), (r(!0), p(g, null, o(e.attachments, (e, t) => (r(), p("span", {
493
506
  key: t,
494
507
  "data-testid": "ai-chat-history-attachment",
495
508
  class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:px-2 tpl:py-1 tpl:text-xs"
496
- }, [e.kind === "pdf" ? (m(), v(g(k), {
509
+ }, [e.kind === "pdf" ? (r(), _(u(O), {
497
510
  key: 0,
498
511
  size: 12,
499
512
  "aria-hidden": "true"
500
- })) : (m(), v(g(C), {
513
+ })) : (r(), _(u(S), {
501
514
  key: 1,
502
515
  size: 12,
503
516
  "aria-hidden": "true"
504
- })), p(i(e.name), 1)]))), 128))])) : (m(), f("div", xe, [
505
- t.text === "" && t.status === "streaming" ? (m(), v(ce, { key: 0 })) : t.text === "" ? d("", !0) : (m(), f("div", Se, i(t.text), 1)),
506
- t.operationCount > 0 ? (m(), f("div", Ce, [h("span", null, i($e(t)), 1), (t.undone ? t.canRedo : t.canUndo) ? (m(), f("button", {
517
+ })), m(n(e.name), 1)]))), 128))])) : (r(), p("div", Te, [
518
+ e.text === "" && e.status === "streaming" ? (r(), _(de, { key: 0 })) : e.text === "" ? d("", !0) : (r(), p("div", Ee, n(e.text), 1)),
519
+ e.operationCount > 0 ? (r(), p("div", De, [h("span", null, n(it(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (r(), p("button", {
507
520
  key: 0,
508
521
  type: "button",
509
522
  "data-testid": "ai-chat-undo",
510
- class: e(g(O)),
523
+ class: i(u(E)),
511
524
  disabled: Y.value,
512
- onClick: (e) => tt(t)
513
- }, [t.undone ? (m(), v(g(de), {
525
+ onClick: (t) => ot(e)
526
+ }, [e.undone ? (r(), _(u(pe), {
514
527
  key: 0,
515
528
  size: 12,
516
529
  "stroke-width": 2,
517
530
  "aria-hidden": "true"
518
- })) : (m(), v(g(fe), {
531
+ })) : (r(), _(u(me), {
519
532
  key: 1,
520
533
  size: 12,
521
534
  "stroke-width": 2,
522
535
  "aria-hidden": "true"
523
- })), p(" " + i(t.undone ? g(A).ai.chat.redo : g(A).ai.chat.undo), 1)], 10, we)) : d("", !0)])) : d("", !0),
524
- t.failure ? (m(), f("p", Te, i(et(t)), 1)) : d("", !0)
536
+ })), m(" " + n(e.undone ? u(A).ai.chat.redo : u(A).ai.chat.undo), 1)], 10, Oe)) : d("", !0)])) : d("", !0),
537
+ e.failure ? (r(), p("p", ke, n(at(e)), 1)) : d("", !0)
525
538
  ]))]))), 128))]))], 512),
526
- J.value.length === 0 && q.value.length > 0 ? (m(), f("div", Ee, [h("div", De, [(m(!0), f(_, null, a(q.value, (t, n) => (m(), f("button", {
527
- key: n,
539
+ J.value.length === 0 && q.value.length > 0 ? (r(), p("div", Ae, [h("div", je, [(r(!0), p(g, null, o(q.value, (e, t) => (r(), p("button", {
540
+ key: t,
528
541
  type: "button",
529
542
  "data-testid": "ai-chat-starter",
530
- class: e(["tpl-starter-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", q.value.length - 1 - n < K.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
543
+ class: i(["tpl-starter-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", q.value.length - 1 - t < K.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
531
544
  style: {
532
545
  "border-color": "var(--tpl-border)",
533
546
  color: "var(--tpl-primary)",
534
547
  "background-color": "var(--tpl-bg)",
535
548
  "box-shadow": "var(--tpl-shadow)"
536
549
  },
537
- onClick: (e) => nt(t)
538
- }, i(t), 11, Oe))), 128))])])) : d("", !0)
550
+ onClick: (t) => st(e)
551
+ }, n(e), 11, Me))), 128))])])) : d("", !0)
539
552
  ]),
540
553
  _: 1
541
554
  }, 8, [
@@ -544,5 +557,5 @@ var pe = [
544
557
  "close-label"
545
558
  ])], 32));
546
559
  }
547
- }), [["__scopeId", "data-v-e0f79f23"]]);
548
- export { U as default };
560
+ }), [["__scopeId", "data-v-d3e3a1af"]]);
561
+ export { H as default };