@templatical/editor 0.56.0 → 0.56.1

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 (171) hide show
  1. package/dist/{AiAltTextPopover-DdsvhE78.js → AiAltTextPopover-CpZ7UeAZ.js} +3 -3
  2. package/dist/{AiAltTextReview-P6to1_0t.js → AiAltTextReview-LYxvn7Qe.js} +4 -4
  3. package/dist/{AiChatPanel-BSlmzMRC.js → AiChatPanel-Cy05P-iO.js} +53 -53
  4. package/dist/{AiPanels-DAsnX-a3.js → AiPanels-CwKmXzyr.js} +1 -1
  5. package/dist/{AiRewriteMenu-DIISOR6U.js → AiRewriteMenu-DgqJHnza.js} +8 -8
  6. package/dist/{BlockIssueBadge-Bmtc50BQ.js → BlockIssueBadge-CxHJmuOh.js} +3 -3
  7. package/dist/{BlockPreviewCanvas-BYIzNn-9.js → BlockPreviewCanvas-DEmNZkEG.js} +44 -44
  8. package/dist/{CloudPanels-w34W8_BP.js → CloudPanels-Bmlf05Il.js} +11 -11
  9. package/dist/{CollaborationNotices-HTbCebjV.js → CollaborationNotices-C27GCMvK.js} +7 -7
  10. package/dist/{CommentsPanel-C5qG17Ki.js → CommentsPanel-B5NqPMmY.js} +1 -1
  11. package/dist/{CommentsSidebar-C7CWcUYZ.js → CommentsSidebar-BDrcrDxS.js} +42 -42
  12. package/dist/{CountdownBlock-BTXcCvjZ.js → CountdownBlock-D8dqjm3F.js} +6 -6
  13. package/dist/{CountdownToolbar-CP-pkntQ.js → CountdownToolbar-IjpCOjCd.js} +30 -30
  14. package/dist/{IssuesPanel-CiiNBzH0.js → IssuesPanel-uwuzeMSW.js} +87 -87
  15. package/dist/LanguageMenu-C-eQ0lFy.js +403 -0
  16. package/dist/{LocaleNotices-CTCZ7BYv.js → LocaleNotices-CDK_9D7P.js} +8 -8
  17. package/dist/{LogicTagInsertButton-DEOPc4RC.js → LogicTagInsertButton-BSolF7Fd.js} +3 -3
  18. package/dist/{MediaEditModal-DJsPLTwP.js → MediaEditModal-C8yc9dxt.js} +7 -7
  19. package/dist/{MediaPanels-D2WD2aE2.js → MediaPanels-FI4I8asn.js} +1 -1
  20. package/dist/{MergeTagInput-C9icdxw7.js → MergeTagInput-B1nl2ZMT.js} +12 -12
  21. package/dist/{MergeTagTextarea-CrAcmT3A.js → MergeTagTextarea-DJlf3VbS.js} +1 -1
  22. package/dist/{ParagraphEditor-BWBQ3jKz.js → ParagraphEditor-Dqco128s.js} +156 -156
  23. package/dist/{RestoreVersionDialog-CqAp16yQ.js → RestoreVersionDialog-hqLCuGV5.js} +12 -12
  24. package/dist/{RichTextEditorContent-xbBjVPVQ.js → RichTextEditorContent-xIEF0Y3Z.js} +2 -2
  25. package/dist/{SaveBlockDialog-pebNJBTc.js → SaveBlockDialog-CQlCP_XC.js} +46 -46
  26. package/dist/{SavedBlocksBrowserModal-CvagMcv7.js → SavedBlocksBrowserModal-BXA32Fx6.js} +23 -23
  27. package/dist/{SavedBlocksPanels-B9AAVBDm.js → SavedBlocksPanels-BKUzbamj.js} +1 -1
  28. package/dist/{SavedBlocksPickBar-BIANWe3i.js → SavedBlocksPickBar-BlvF-4UF.js} +9 -9
  29. package/dist/{TemplateSettings-ORq4PbCN.js → TemplateSettings-CYFtR8zv.js} +41 -41
  30. package/dist/{TestEmailModal-DRjCpcPl.js → TestEmailModal-BbaL17HO.js} +20 -20
  31. package/dist/{TestEmailPanel-H0v8El__.js → TestEmailPanel-DhB1CSpg.js} +1 -1
  32. package/dist/{TitleEditor-CEGbJXeU.js → TitleEditor-3BRl8u5l.js} +21 -21
  33. package/dist/{Toolbar-XT-uGA9J.js → Toolbar-pzNIakGM.js} +656 -656
  34. package/dist/{TplModal-7NQq5-VW.js → TplModal-WNuWhHZm.js} +4 -4
  35. package/dist/{VersionHistoryMenu-C8BE3Pr-.js → VersionHistoryMenu--T-Qp_mH.js} +15 -15
  36. package/dist/{VersionHistoryPanels-CuKuOSJG.js → VersionHistoryPanels-BPubvYIE.js} +1 -1
  37. package/dist/{VersionPreviewBanner-BVFBkveR.js → VersionPreviewBanner-ClL3Wkln.js} +7 -7
  38. package/dist/{WrapperBlock-Bdw-072t.js → WrapperBlock-CjfCPceb.js} +11 -11
  39. package/dist/{blockTypeIcons-CGplGmmr.js → blockTypeIcons-12OMwVyN.js} +1 -1
  40. package/dist/bundle-stats.json +6 -6
  41. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js → AiAltTextPopover-PFjTrl0y.js} +4 -4
  42. package/dist/cdn/chunks/{AiAltTextPopover-x999Gimz.js.map → AiAltTextPopover-PFjTrl0y.js.map} +1 -1
  43. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js → AiAltTextReview-BMjzvApH.js} +5 -5
  44. package/dist/cdn/chunks/{AiAltTextReview-DjnFz1wO.js.map → AiAltTextReview-BMjzvApH.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js → AiChatPanel-C2gpq4kP.js} +107 -107
  46. package/dist/cdn/chunks/{AiChatPanel-DKDu9cs7.js.map → AiChatPanel-C2gpq4kP.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js → AiPanels-Cx3PE2mE.js} +2 -2
  48. package/dist/cdn/chunks/{AiPanels-jMLVaiKx.js.map → AiPanels-Cx3PE2mE.js.map} +1 -1
  49. package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js → AiRewriteMenu-CnkyjPEu.js} +11 -11
  50. package/dist/cdn/chunks/{AiRewriteMenu-s79rmHFy.js.map → AiRewriteMenu-CnkyjPEu.js.map} +1 -1
  51. package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js → BlockIssueBadge-DncZ-HDf.js} +4 -4
  52. package/dist/cdn/chunks/{BlockIssueBadge-Bnmq_M4G.js.map → BlockIssueBadge-DncZ-HDf.js.map} +1 -1
  53. package/dist/cdn/chunks/BlockPreviewCanvas-CCSEzL46.js +156 -0
  54. package/dist/cdn/chunks/{BlockPreviewCanvas-B3HkuENF.js.map → BlockPreviewCanvas-CCSEzL46.js.map} +1 -1
  55. package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js → CloudPanels-CRztnw4M.js} +2 -2
  56. package/dist/cdn/chunks/{CloudPanels-DQnlH_YJ.js.map → CloudPanels-CRztnw4M.js.map} +1 -1
  57. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js → CollaborationNotices-IuLYT2x7.js} +8 -8
  58. package/dist/cdn/chunks/{CollaborationNotices-CHqUGhOZ.js.map → CollaborationNotices-IuLYT2x7.js.map} +1 -1
  59. package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js → CommentsPanel-lgjJNrrY.js} +2 -2
  60. package/dist/cdn/chunks/{CommentsPanel-EtdTzTmq.js.map → CommentsPanel-lgjJNrrY.js.map} +1 -1
  61. package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js → CommentsSidebar-DTold7iy.js} +214 -214
  62. package/dist/cdn/chunks/{CommentsSidebar-Qmj049QX.js.map → CommentsSidebar-DTold7iy.js.map} +1 -1
  63. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js → CountdownBlock-8aPSExrv.js} +7 -7
  64. package/dist/cdn/chunks/{CountdownBlock-DyGsh92b.js.map → CountdownBlock-8aPSExrv.js.map} +1 -1
  65. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js → CountdownToolbar-CnWQEW5g.js} +50 -50
  66. package/dist/cdn/chunks/{CountdownToolbar-Ddj2erNm.js.map → CountdownToolbar-CnWQEW5g.js.map} +1 -1
  67. package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js → IssuesPanel-CrplCzo8.js} +11 -11
  68. package/dist/cdn/chunks/{IssuesPanel-DnSnEh1X.js.map → IssuesPanel-CrplCzo8.js.map} +1 -1
  69. package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js → LanguageMenu-B6MNInCL.js} +110 -110
  70. package/dist/cdn/chunks/{LanguageMenu-C2I_yTL5.js.map → LanguageMenu-B6MNInCL.js.map} +1 -1
  71. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js → LocaleNotices-TxeAl8Iq.js} +9 -9
  72. package/dist/cdn/chunks/{LocaleNotices-Dr9LRCAg.js.map → LocaleNotices-TxeAl8Iq.js.map} +1 -1
  73. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js → LogicTagInsertButton-DvSVx2DB.js} +4 -4
  74. package/dist/cdn/chunks/{LogicTagInsertButton-BdzE9-l7.js.map → LogicTagInsertButton-DvSVx2DB.js.map} +1 -1
  75. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js → MediaEditModal-tGK6htBl.js} +8 -8
  76. package/dist/cdn/chunks/{MediaEditModal-CMJFXu_o.js.map → MediaEditModal-tGK6htBl.js.map} +1 -1
  77. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js → MediaPanels-BVrQYz2C.js} +2 -2
  78. package/dist/cdn/chunks/{MediaPanels-C790ZXuY.js.map → MediaPanels-BVrQYz2C.js.map} +1 -1
  79. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js → MergeTagInput-DeuNH3re.js} +13 -13
  80. package/dist/cdn/chunks/{MergeTagInput-CmrX8Md6.js.map → MergeTagInput-DeuNH3re.js.map} +1 -1
  81. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js → MergeTagTextarea-B2xxIU3e.js} +2 -2
  82. package/dist/cdn/chunks/{MergeTagTextarea-KOnd2teB.js.map → MergeTagTextarea-B2xxIU3e.js.map} +1 -1
  83. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js → ParagraphEditor-Bx_Hlw8d.js} +106 -106
  84. package/dist/cdn/chunks/{ParagraphEditor-I9lbKaPk.js.map → ParagraphEditor-Bx_Hlw8d.js.map} +1 -1
  85. package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js → RestoreVersionDialog-CPrrWTsT.js} +12 -12
  86. package/dist/cdn/chunks/{RestoreVersionDialog-DqbULAbc.js.map → RestoreVersionDialog-CPrrWTsT.js.map} +1 -1
  87. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js → RichTextEditorContent-Dze4C9VI.js} +3 -3
  88. package/dist/cdn/chunks/{RichTextEditorContent-_O22z0pn.js.map → RichTextEditorContent-Dze4C9VI.js.map} +1 -1
  89. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js → SaveBlockDialog-CXVwnfsy.js} +51 -51
  90. package/dist/cdn/chunks/{SaveBlockDialog-CClRLXgF.js.map → SaveBlockDialog-CXVwnfsy.js.map} +1 -1
  91. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js → SavedBlocksBrowserModal-BDTmenOE.js} +23 -23
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BIaxaxw9.js.map → SavedBlocksBrowserModal-BDTmenOE.js.map} +1 -1
  93. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js → SavedBlocksPanels-B41Rk_v1.js} +2 -2
  94. package/dist/cdn/chunks/{SavedBlocksPanels-Dfu9N6YW.js.map → SavedBlocksPanels-B41Rk_v1.js.map} +1 -1
  95. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js → SavedBlocksPickBar-B97z_rFH.js} +11 -11
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-DiMW_dbJ.js.map → SavedBlocksPickBar-B97z_rFH.js.map} +1 -1
  97. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js → TemplateSettings-YwwRbxPc.js} +102 -102
  98. package/dist/cdn/chunks/{TemplateSettings-JMUo0LIV.js.map → TemplateSettings-YwwRbxPc.js.map} +1 -1
  99. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js → TestEmailModal-BiFP2Cbx.js} +20 -20
  100. package/dist/cdn/chunks/{TestEmailModal-D52VtwBZ.js.map → TestEmailModal-BiFP2Cbx.js.map} +1 -1
  101. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js → TestEmailPanel-BrivPMk2.js} +2 -2
  102. package/dist/cdn/chunks/{TestEmailPanel-D9ezVDHd.js.map → TestEmailPanel-BrivPMk2.js.map} +1 -1
  103. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js → TitleEditor-CzPkkL2s.js} +19 -19
  104. package/dist/cdn/chunks/{TitleEditor-D04vvbUc.js.map → TitleEditor-CzPkkL2s.js.map} +1 -1
  105. package/dist/cdn/chunks/{Toolbar-C_Hfsher.js → Toolbar-VH07SzX7.js} +550 -550
  106. package/dist/cdn/chunks/{Toolbar-C_Hfsher.js.map → Toolbar-VH07SzX7.js.map} +1 -1
  107. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js → TplModal-DMe6J811.js} +6 -6
  108. package/dist/cdn/chunks/{TplModal-d6fEZGJ5.js.map → TplModal-DMe6J811.js.map} +1 -1
  109. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js → VersionHistoryMenu-DkwbKhBl.js} +15 -15
  110. package/dist/cdn/chunks/{VersionHistoryMenu-C8ucm43v.js.map → VersionHistoryMenu-DkwbKhBl.js.map} +1 -1
  111. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js → VersionHistoryPanels-CgxhMRAl.js} +2 -2
  112. package/dist/cdn/chunks/{VersionHistoryPanels-BAdzmhvH.js.map → VersionHistoryPanels-CgxhMRAl.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js → VersionPreviewBanner-WVBDBrwQ.js} +8 -8
  114. package/dist/cdn/chunks/{VersionPreviewBanner-BWuovbFc.js.map → VersionPreviewBanner-WVBDBrwQ.js.map} +1 -1
  115. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js → WrapperBlock-CCCIcqe2.js} +12 -12
  116. package/dist/cdn/chunks/{WrapperBlock-TXDSDXUP.js.map → WrapperBlock-CCCIcqe2.js.map} +1 -1
  117. package/dist/cdn/chunks/{composables-CsfQlmcf.js → composables-D3lsO7Io.js} +925 -925
  118. package/dist/cdn/chunks/composables-D3lsO7Io.js.map +1 -0
  119. package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js → createCloudRuntime-CE79GB1H.js} +15 -15
  120. package/dist/cdn/chunks/{createCloudRuntime-PpIFCDfj.js.map → createCloudRuntime-CE79GB1H.js.map} +1 -1
  121. package/dist/cdn/chunks/dist-Cf1pSluo.js +405 -0
  122. package/dist/cdn/chunks/{dist-DqGgijFI.js.map → dist-Cf1pSluo.js.map} +1 -1
  123. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js → editor-modal-CN69NlOK.js} +170 -170
  124. package/dist/cdn/chunks/{editor-modal-B8UE9V8B.js.map → editor-modal-CN69NlOK.js.map} +1 -1
  125. package/dist/cdn/chunks/en-Bcz4gS9U.js +1 -0
  126. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js → extensions-8dlM-fU4.js} +96 -96
  127. package/dist/cdn/chunks/{extensions-BM6ZSnsQ.js.map → extensions-8dlM-fU4.js.map} +1 -1
  128. package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js → sanitizeHtml-B3njfkSy.js} +11 -11
  129. package/dist/cdn/chunks/{sanitizeHtml-DJI7vvET.js.map → sanitizeHtml-B3njfkSy.js.map} +1 -1
  130. package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js → socialIcons-BFgc3qqJ.js} +2 -2
  131. package/dist/cdn/chunks/{socialIcons-Qw9rHc8C.js.map → socialIcons-BFgc3qqJ.js.map} +1 -1
  132. package/dist/cdn/chunks/{src-Bfj1jHnn.js → src-GgKlXNxy.js} +2 -2
  133. package/dist/cdn/chunks/{src-Bfj1jHnn.js.map → src-GgKlXNxy.js.map} +1 -1
  134. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js → tiptap-C940SvId.js} +3 -3
  135. package/dist/cdn/chunks/{tiptap-Dipw_zOQ.js.map → tiptap-C940SvId.js.map} +1 -1
  136. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js → useLogicTag-B0PDeDxl.js} +4 -4
  137. package/dist/cdn/chunks/{useLogicTag-DLvWzWsp.js.map → useLogicTag-B0PDeDxl.js.map} +1 -1
  138. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js → useMergeTag-BSU75bKk.js} +7 -7
  139. package/dist/cdn/chunks/{useMergeTag-B4FHCGGm.js.map → useMergeTag-BSU75bKk.js.map} +1 -1
  140. package/dist/cdn/editor.js +325 -325
  141. package/dist/cdn/editor.js.map +1 -1
  142. package/dist/{composables-CRX6rncm.js → composables-DreAt_0A.js} +1031 -1031
  143. package/dist/{createCloudRuntime-DplyIlsy.js → createCloudRuntime-CL4tUlDC.js} +14 -14
  144. package/dist/{dist-ChOb5XHW.js → dist-0GWMyHtM.js} +1 -1
  145. package/dist/{dist-6DU0me3E.js → dist-B_0FPmoy.js} +1 -1
  146. package/dist/{dist-B8dY8drK.js → dist-BjzK1g4Z.js} +1 -1
  147. package/dist/{dist-54VCNoC0.js → dist-BsumKKh9.js} +1 -1
  148. package/dist/{dist-BWflWcpW.js → dist-C3avsUq9.js} +2 -2
  149. package/dist/{dist-fqSers8_.js → dist-CCLRTtJP.js} +197 -197
  150. package/dist/dist-CiYotUR8.js +406 -0
  151. package/dist/{dist-C3hu_C3w.js → dist-Cr1CLCmx.js} +1 -1
  152. package/dist/{dist-D_XrUEET.js → dist-CsknfjrZ.js} +3 -3
  153. package/dist/{dist-TAv500j6.js → dist-DDytHU_6.js} +1 -1
  154. package/dist/{dist-CcOn7WCo.js → dist-DKV9m4Uu.js} +1 -1
  155. package/dist/{dist-B9a7iVye.js → dist-Dq9VnANT.js} +1 -1
  156. package/dist/{dist-DZ3X-uB8.js → dist-ZrT0vAB6.js} +1 -1
  157. package/dist/{editor-modal-D9HT9bD6.js → editor-modal-BD32TXws.js} +106 -106
  158. package/dist/en-Dgs_-NBw.js +1 -0
  159. package/dist/{extensions-Cm6K4SRX.js → extensions-DKxHlSd7.js} +179 -179
  160. package/dist/{socialIcons-CJD6OsI7.js → socialIcons-oo4uL16Y.js} +1 -1
  161. package/dist/templatical-editor.js +526 -526
  162. package/dist/{useLogicTag-DLkYos2Q.js → useLogicTag-B4Zpk3eo.js} +3 -3
  163. package/dist/{useMergeTag-IoWOO679.js → useMergeTag-B5qlq8px.js} +7 -7
  164. package/package.json +7 -7
  165. package/dist/LanguageMenu-B981Av-6.js +0 -403
  166. package/dist/cdn/chunks/BlockPreviewCanvas-B3HkuENF.js +0 -156
  167. package/dist/cdn/chunks/composables-CsfQlmcf.js.map +0 -1
  168. package/dist/cdn/chunks/dist-DqGgijFI.js +0 -405
  169. package/dist/cdn/chunks/en-CVxNoHww.js +0 -1
  170. package/dist/dist-0alKVRc_.js +0 -406
  171. package/dist/en-De3uAutQ.js +0 -1
@@ -1,13 +1,13 @@
1
1
  import { C as e, F as t, G as n, H as r, K as i, L as a, O as o, R as s, _ as c, b as l, ct as u, dt as d, g as f, h as p, j as m, m as h, mt as g, o as _, p as v, tt as y, u as b, x } from "./draggable-DepKdldn.js";
2
- import { t as S } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
3
- import { D as C, It as ee, K as te, T as ne, Tt as w, _t as T, at as re, j as ie, l as ae, t as E, tt as oe, z as se } from "./icons-DHExFLlT.js";
4
- import { it as ce, v as le } from "./keys-BUmIvYy3.js";
5
- import { t as ue } from "./useI18n-D8s7HtTn.js";
2
+ import { D as S, It as ee, K as te, T as ne, Tt as C, _t as w, at as re, j as ie, l as ae, t as T, tt as oe, z as se } from "./icons-DHExFLlT.js";
3
+ import { _ as ce, g as le } from "./dist-BzXULHvI.js";
4
+ import { t as ue } from "./LoadingTrack-DUYcDHOV.js";
5
+ import { t as de } from "./useI18n-D8s7HtTn.js";
6
+ import { w as E } from "./styleConstants-CgiNKdnc.js";
7
+ import { it as fe, v as pe } from "./keys-BUmIvYy3.js";
6
8
  import { t as D } from "./languageName-DEEOhDWI.js";
7
- import { w as O } from "./styleConstants-CgiNKdnc.js";
8
- import { _ as de, g as fe } from "./dist-BzXULHvI.js";
9
- import { t as pe } from "./LoadingTrack-DUYcDHOV.js";
10
- import { n as k } from "./aiErrors-C3QEMB0x.js";
9
+ import { n as O } from "./aiErrors-C3QEMB0x.js";
10
+ import { t as k } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
11
11
  // src/components/ai/AiPanelShell.vue?vue&type=script&setup=true&lang.ts
12
12
  var A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, M = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, N = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, P = { "data-testid": "ai-panel-title" }, F = {
13
13
  key: 0,
@@ -30,7 +30,7 @@ var A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tp
30
30
  "data-testid": e.testid,
31
31
  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)]"
32
32
  }, [
33
- h("div", j, [h("div", M, [h("div", N, [x(u(C), {
33
+ h("div", j, [h("div", M, [h("div", N, [x(u(S), {
34
34
  size: 13,
35
35
  "stroke-width": 2,
36
36
  "aria-hidden": "true"
@@ -41,7 +41,7 @@ var A = ["aria-label", "data-testid"], j = { class: "tpl:flex tpl:items-start tp
41
41
  "aria-label": e.closeLabel,
42
42
  title: e.closeLabel,
43
43
  onClick: i[0] ||= (e) => r("close")
44
- }, [x(u(E), {
44
+ }, [x(u(T), {
45
45
  size: 14,
46
46
  "stroke-width": 2,
47
47
  "aria-hidden": "true"
@@ -135,21 +135,21 @@ var ge = [
135
135
  }, 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 = {
136
136
  key: 0,
137
137
  class: "tpl:mb-2 tpl:flex tpl:flex-wrap tpl:gap-1"
138
- }, Ie = { class: "tpl:truncate" }, Le = [
138
+ }, B = { class: "tpl:truncate" }, Ie = [
139
139
  "aria-label",
140
140
  "disabled",
141
141
  "onClick"
142
- ], Re = {
142
+ ], Le = {
143
143
  key: 1,
144
144
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
145
- }, ze = {
145
+ }, Re = {
146
146
  "aria-live": "polite",
147
147
  class: "tpl:text-xs tpl:text-[var(--tpl-danger)]"
148
- }, Be = {
148
+ }, ze = {
149
149
  key: 1,
150
150
  role: "status",
151
151
  class: "tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
152
- }, Ve = ["disabled"], He = {
152
+ }, Be = ["disabled"], Ve = {
153
153
  key: 2,
154
154
  role: "alert",
155
155
  "data-testid": "ai-chat-error",
@@ -158,33 +158,33 @@ var ge = [
158
158
  "background-color": "var(--tpl-danger-light)",
159
159
  color: "var(--tpl-danger)"
160
160
  }
161
- }, Ue = { 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)]" }, We = {
161
+ }, 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 = {
162
162
  key: 0,
163
163
  "data-testid": "ai-active-language",
164
164
  class: "tpl:text-xs tpl:text-[var(--tpl-chrome-text-dim)]"
165
- }, Ge = [
165
+ }, We = [
166
166
  "placeholder",
167
167
  "aria-label",
168
168
  "disabled"
169
- ], Ke = { class: "tpl:flex tpl:items-center tpl:justify-between" }, qe = [
169
+ ], Ge = { class: "tpl:flex tpl:items-center tpl:justify-between" }, Ke = [
170
170
  "aria-label",
171
171
  "title",
172
172
  "disabled"
173
- ], Je = ["aria-label", "title"], Ye = [
173
+ ], qe = ["aria-label", "title"], Je = [
174
174
  "aria-label",
175
175
  "title",
176
176
  "disabled"
177
- ], Xe = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, B = /*#__PURE__*/ S(/* @__PURE__ */ e({
177
+ ], Ye = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, V = /*#__PURE__*/ k(/* @__PURE__ */ e({
178
178
  __name: "AiChatPanel",
179
179
  props: { feature: {} },
180
180
  emits: ["close"],
181
181
  setup(e, { emit: s }) {
182
- let S = e, A = s, { t: j, format: M } = ue(), N = o(le, null), P = o(ce, void 0), F = y(""), I = y(null), L = y(null), R = y([]), z = y([]), B = y(0);
183
- r(() => S.feature.templateSession.value, () => {
184
- F.value = "", R.value = [], z.value = [], B.value = 0;
182
+ let k = e, A = s, { t: j, format: M } = de(), N = o(pe, null), P = o(fe, void 0), F = y(""), I = y(null), L = y(null), R = y([]), z = y([]), V = y(0);
183
+ r(() => k.feature.templateSession.value, () => {
184
+ F.value = "", R.value = [], z.value = [], V.value = 0;
185
185
  }, { flush: "sync" });
186
- let V = v(() => S.feature.has("chatAttachments"));
187
- function H(e) {
186
+ let H = v(() => k.feature.has("chatAttachments"));
187
+ function U(e) {
188
188
  let t = he(R.value, e);
189
189
  R.value = t.accepted;
190
190
  let n = {
@@ -195,32 +195,32 @@ var ge = [
195
195
  };
196
196
  z.value = t.errors.map((e) => M(j.ai.chat[n[e.reason]], { name: e.name }));
197
197
  }
198
- function Ze(e) {
198
+ function Xe(e) {
199
199
  let t = e.target;
200
- !J.value && V.value && H(Array.from(t.files ?? [])), t.value = "";
200
+ !Y.value && H.value && U(Array.from(t.files ?? [])), t.value = "";
201
201
  }
202
- function Qe(e) {
203
- J.value || (R.value.splice(e, 1), z.value = []);
202
+ function Ze(e) {
203
+ Y.value || (R.value.splice(e, 1), z.value = []);
204
204
  }
205
- function U(e) {
205
+ function W(e) {
206
206
  return Array.from(e.dataTransfer?.types ?? []).includes("Files");
207
207
  }
208
+ function Qe(e) {
209
+ H.value && !Y.value && W(e) && (e.preventDefault(), V.value++);
210
+ }
208
211
  function $e(e) {
209
- V.value && !J.value && U(e) && (e.preventDefault(), B.value++);
212
+ W(e) && (V.value = Math.max(0, V.value - 1));
210
213
  }
211
214
  function et(e) {
212
- U(e) && (B.value = Math.max(0, B.value - 1));
215
+ H.value && W(e) && e.preventDefault();
213
216
  }
214
217
  function tt(e) {
215
- V.value && U(e) && e.preventDefault();
216
- }
217
- function nt(e) {
218
- B.value = 0, V.value && U(e) && (e.preventDefault(), J.value || H(Array.from(e.dataTransfer?.files ?? [])));
218
+ V.value = 0, H.value && W(e) && (e.preventDefault(), Y.value || U(Array.from(e.dataTransfer?.files ?? [])));
219
219
  }
220
- r(() => S.feature.importQueue.value, (e) => {
221
- V.value && e.length && (H(e), F.value.trim() || (F.value = j.ai.import.prompt), S.feature.importQueue.value = [], m(() => I.value?.focus()));
220
+ r(() => k.feature.importQueue.value, (e) => {
221
+ H.value && e.length && (U(e), F.value.trim() || (F.value = j.ai.import.prompt), k.feature.importQueue.value = [], m(() => I.value?.focus()));
222
222
  }, { immediate: !0 });
223
- let W = y(null), G = y(0), K = v(() => S.feature.isTemplateEmpty.value ? [
223
+ let G = y(null), K = y(0), q = v(() => k.feature.isTemplateEmpty.value ? [
224
224
  j.ai.starters.emptyWelcome,
225
225
  j.ai.starters.emptyLaunch,
226
226
  j.ai.starters.emptyNewsletter
@@ -229,51 +229,51 @@ var ge = [
229
229
  j.ai.starters.filledFriendlier,
230
230
  j.ai.starters.filledDates,
231
231
  j.ai.starters.filledCta
232
- ]), q = v(() => S.feature.messages.value), J = v(() => S.feature.isRunning.value), Y = v(() => {
233
- let e = S.feature.failure.value;
234
- return e ? k(e.error, j.ai.errors, M, P, e.context) : "";
235
- }), { pause: X, resume: rt } = fe(() => {
236
- G.value < K.value.length ? G.value++ : X();
237
- }, 150, { immediate: !1 }), { start: it } = de(() => rt(), 100, { immediate: !1 });
238
- r(() => K.value.length, (e) => {
239
- X(), G.value = 0, e > 0 && it();
232
+ ]), J = v(() => k.feature.messages.value), Y = v(() => k.feature.isRunning.value), X = v(() => {
233
+ let e = k.feature.failure.value;
234
+ return e ? O(e.error, j.ai.errors, M, P, e.context) : "";
235
+ }), { pause: Z, resume: nt } = le(() => {
236
+ K.value < q.value.length ? K.value++ : Z();
237
+ }, 150, { immediate: !1 }), { start: rt } = ce(() => nt(), 100, { immediate: !1 });
238
+ r(() => q.value.length, (e) => {
239
+ Z(), K.value = 0, e > 0 && rt();
240
240
  }, { immediate: !0 });
241
- function Z() {
241
+ function Q() {
242
242
  m(() => {
243
- W.value && (W.value.scrollTop = W.value.scrollHeight);
243
+ G.value && (G.value.scrollTop = G.value.scrollHeight);
244
244
  });
245
245
  }
246
- r(() => q.value.length, Z), r(() => [S.feature.failedPrompt.value, S.feature.failedAttachments.value], ([e, t]) => {
246
+ r(() => J.value.length, Q), r(() => [k.feature.failedPrompt.value, k.feature.failedAttachments.value], ([e, t]) => {
247
247
  e && (F.value = e, R.value = [...t]);
248
248
  }, { immediate: !0 });
249
- async function Q() {
249
+ async function $() {
250
250
  let e = F.value.trim();
251
- if (!e || J.value) return;
251
+ if (!e || Y.value) return;
252
252
  let t = [...R.value];
253
- F.value = "", R.value = [], z.value = [], Z(), await S.feature.send(e, t), Z();
253
+ F.value = "", R.value = [], z.value = [], Q(), await k.feature.send(e, t), Q();
254
254
  }
255
- function $(e) {
255
+ function it(e) {
256
256
  return e.undone ? j.ai.chat.undone : e.operationCount === 1 ? j.ai.chat.appliedChange : M(j.ai.chat.appliedChanges, { count: e.operationCount });
257
257
  }
258
258
  function at(e) {
259
- return e.failure ? k(e.failure.error, j.ai.errors, M, P, e.failure.context) : "";
259
+ return e.failure ? O(e.failure.error, j.ai.errors, M, P, e.failure.context) : "";
260
260
  }
261
261
  function ot(e) {
262
- e.undone ? S.feature.redoMessage(e.id) : S.feature.undoMessage(e.id);
262
+ e.undone ? k.feature.redoMessage(e.id) : k.feature.undoMessage(e.id);
263
263
  }
264
264
  function st(e) {
265
- X(), F.value = e, Q();
265
+ Z(), F.value = e, $();
266
266
  }
267
267
  function ct(e) {
268
- e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q());
268
+ e.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), $());
269
269
  }
270
270
  return (r, o) => (t(), c("div", {
271
271
  class: "tpl:contents",
272
272
  "data-testid": "ai-chat-dropzone",
273
- onDragenter: $e,
274
- onDragleave: et,
275
- onDragover: tt,
276
- onDrop: nt
273
+ onDragenter: Qe,
274
+ onDragleave: $e,
275
+ onDragover: et,
276
+ onDrop: tt
277
277
  }, [x(me, {
278
278
  title: u(j).ai.chat.title,
279
279
  subtitle: u(j).ai.chat.notice,
@@ -281,14 +281,14 @@ var ge = [
281
281
  "close-label": u(j).ai.chat.close,
282
282
  onClose: o[5] ||= (e) => A("close")
283
283
  }, {
284
- actions: n(() => [e.feature.canClear && q.value.length > 0 ? (t(), c("button", {
284
+ actions: n(() => [e.feature.canClear && J.value.length > 0 ? (t(), c("button", {
285
285
  key: 0,
286
286
  type: "button",
287
287
  "data-testid": "ai-chat-new",
288
288
  class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:text-[var(--tpl-text-muted)] tpl:disabled:opacity-40",
289
289
  "aria-label": u(j).ai.chat.newChat,
290
290
  title: u(j).ai.chat.newChat,
291
- disabled: J.value,
291
+ disabled: Y.value,
292
292
  onClick: o[0] ||= (t) => e.feature.newChat()
293
293
  }, [x(u(oe), {
294
294
  size: 14,
@@ -296,7 +296,7 @@ var ge = [
296
296
  "aria-hidden": "true"
297
297
  })], 8, ge)) : f("", !0)]),
298
298
  footer: n(() => [h("div", Ne, [
299
- V.value ? (t(), c(b, { key: 0 }, [
299
+ H.value ? (t(), c(b, { key: 0 }, [
300
300
  h("input", {
301
301
  ref_key: "fileInput",
302
302
  ref: L,
@@ -305,55 +305,55 @@ var ge = [
305
305
  multiple: "",
306
306
  accept: "image/png,image/jpeg,image/webp,image/gif,application/pdf",
307
307
  hidden: "",
308
- disabled: J.value,
309
- onChange: Ze
308
+ disabled: Y.value,
309
+ onChange: Xe
310
310
  }, null, 40, Pe),
311
311
  R.value.length ? (t(), c("div", Fe, [(t(!0), c(b, null, a(R.value, (e, n) => (t(), c("span", {
312
312
  key: n,
313
313
  "data-testid": "ai-chat-attachment",
314
314
  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)]"
315
315
  }, [
316
- e.type === "application/pdf" ? (t(), p(u(w), {
316
+ e.type === "application/pdf" ? (t(), p(u(C), {
317
317
  key: 0,
318
318
  size: 12,
319
319
  "aria-hidden": "true"
320
- })) : (t(), p(u(T), {
320
+ })) : (t(), p(u(w), {
321
321
  key: 1,
322
322
  size: 12,
323
323
  "aria-hidden": "true"
324
324
  })),
325
- h("span", Ie, g(e.name), 1),
325
+ h("span", B, g(e.name), 1),
326
326
  h("button", {
327
327
  type: "button",
328
328
  "aria-label": u(M)(u(j).ai.chat.removeAttachment, { name: e.name }),
329
- disabled: J.value,
329
+ disabled: Y.value,
330
330
  class: "tpl:shrink-0 tpl:rounded tpl:p-0.5 tpl:disabled:opacity-40",
331
- onClick: (e) => Qe(n)
332
- }, [x(u(E), {
331
+ onClick: (e) => Ze(n)
332
+ }, [x(u(T), {
333
333
  size: 12,
334
334
  "aria-hidden": "true"
335
- })], 8, Le)
335
+ })], 8, Ie)
336
336
  ]))), 128))])) : f("", !0),
337
- R.value.length ? (t(), c("p", Re, g(u(j).ai.import.placeholderNote), 1)) : f("", !0),
338
- h("div", ze, [(t(!0), c(b, null, a(z.value, (e, n) => (t(), c("p", {
337
+ R.value.length ? (t(), c("p", Le, g(u(j).ai.import.placeholderNote), 1)) : f("", !0),
338
+ h("div", Re, [(t(!0), c(b, null, a(z.value, (e, n) => (t(), c("p", {
339
339
  key: n,
340
340
  class: "tpl:mb-2"
341
341
  }, g(e), 1))), 128))])
342
342
  ], 64)) : f("", !0),
343
- e.feature.keptYourVersion.value ? (t(), c("div", Be, [h("p", null, g(u(j).ai.chat.keptYourVersion), 1), h("button", {
343
+ e.feature.keptYourVersion.value ? (t(), c("div", ze, [h("p", null, g(u(j).ai.chat.keptYourVersion), 1), h("button", {
344
344
  type: "button",
345
- disabled: J.value,
346
- class: d(u(O)),
345
+ disabled: Y.value,
346
+ class: d(u(E)),
347
347
  onClick: o[1] ||= (t) => e.feature.reloadTemplate()
348
- }, g(u(j).ai.chat.reload), 11, Ve)])) : f("", !0),
349
- Y.value ? (t(), c("div", He, [x(u(ee), {
348
+ }, g(u(j).ai.chat.reload), 11, Be)])) : f("", !0),
349
+ X.value ? (t(), c("div", Ve, [x(u(ee), {
350
350
  size: 14,
351
351
  "stroke-width": 2,
352
352
  class: "tpl:mt-0.5 tpl:shrink-0",
353
353
  "aria-hidden": "true"
354
- }), h("span", null, g(Y.value), 1)])) : f("", !0),
355
- h("div", Ue, [
356
- u(N)?.activeLocale?.value ? (t(), c("p", We, g(u(M)(u(j).localization.aiActiveLanguage, { language: u(D)(u(N).activeLocale.value) })), 1)) : f("", !0),
354
+ }), h("span", null, g(X.value), 1)])) : f("", !0),
355
+ h("div", He, [
356
+ u(N)?.activeLocale?.value ? (t(), c("p", Ue, g(u(M)(u(j).localization.aiActiveLanguage, { language: u(D)(u(N).activeLocale.value) })), 1)) : f("", !0),
357
357
  i(h("textarea", {
358
358
  ref_key: "composer",
359
359
  ref: I,
@@ -362,23 +362,23 @@ var ge = [
362
362
  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)]",
363
363
  placeholder: u(j).ai.chat.inputPlaceholder,
364
364
  "aria-label": u(j).ai.chat.inputPlaceholder,
365
- disabled: J.value,
365
+ disabled: Y.value,
366
366
  maxlength: "4000",
367
367
  rows: "3",
368
368
  onKeydown: ct
369
- }, null, 40, Ge), [[_, F.value]]),
370
- h("div", Ke, [V.value ? (t(), c("button", {
369
+ }, null, 40, We), [[_, F.value]]),
370
+ h("div", Ge, [H.value ? (t(), c("button", {
371
371
  key: 0,
372
372
  type: "button",
373
373
  "aria-label": u(j).ai.chat.attach,
374
374
  title: u(j).ai.chat.attach,
375
- disabled: J.value,
375
+ disabled: Y.value,
376
376
  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",
377
377
  onClick: o[3] ||= (e) => L.value?.click()
378
378
  }, [x(u(te), {
379
379
  size: 16,
380
380
  "aria-hidden": "true"
381
- })], 8, qe)) : f("", !0), J.value ? (t(), c("button", {
381
+ })], 8, Ke)) : f("", !0), Y.value ? (t(), c("button", {
382
382
  key: 1,
383
383
  type: "button",
384
384
  "data-testid": "ai-chat-stop",
@@ -390,7 +390,7 @@ var ge = [
390
390
  size: 16,
391
391
  "stroke-width": 2,
392
392
  "aria-hidden": "true"
393
- })], 8, Je)) : (t(), c("button", {
393
+ })], 8, qe)) : (t(), c("button", {
394
394
  key: 2,
395
395
  type: "button",
396
396
  "data-testid": "ai-chat-send",
@@ -398,54 +398,54 @@ var ge = [
398
398
  "aria-label": u(j).ai.chat.send,
399
399
  title: u(j).ai.chat.send,
400
400
  disabled: !F.value.trim(),
401
- onClick: Q
401
+ onClick: $
402
402
  }, [x(u(ie), {
403
403
  size: 16,
404
404
  "stroke-width": 2,
405
405
  "aria-hidden": "true"
406
- })], 8, Ye))])
406
+ })], 8, Je))])
407
407
  ]),
408
- h("p", Xe, g(u(j).ai.chat.disclaimer), 1)
408
+ h("p", Ye, g(u(j).ai.chat.disclaimer), 1)
409
409
  ])]),
410
410
  default: n(() => [
411
- V.value && B.value > 0 && !J.value ? (t(), c("div", _e, g(u(j).ai.chat.dropHint), 1)) : f("", !0),
411
+ H.value && V.value > 0 && !Y.value ? (t(), c("div", _e, g(u(j).ai.chat.dropHint), 1)) : f("", !0),
412
412
  h("div", {
413
413
  ref_key: "messagesContainer",
414
- ref: W,
414
+ ref: G,
415
415
  class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
416
416
  }, [e.feature.isLoadingHistory.value ? (t(), c("div", ve, [x(u(re), {
417
417
  class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
418
418
  size: 24,
419
419
  "stroke-width": 2,
420
420
  "aria-hidden": "true"
421
- }), h("p", ye, g(u(j).ai.chat.loadingHistory), 1)])) : q.value.length === 0 ? (t(), c("div", be, [x(u(C), {
421
+ }), h("p", ye, g(u(j).ai.chat.loadingHistory), 1)])) : J.value.length === 0 ? (t(), c("div", be, [x(u(S), {
422
422
  size: 32,
423
423
  "stroke-width": 1.5,
424
424
  class: "tpl:text-[var(--tpl-text-dim)]",
425
425
  "aria-hidden": "true"
426
- }), h("p", xe, g(u(j).ai.chat.placeholder), 1)])) : (t(), c("div", Se, [(t(!0), c(b, null, a(q.value, (e) => (t(), c("div", {
426
+ }), h("p", xe, g(u(j).ai.chat.placeholder), 1)])) : (t(), c("div", Se, [(t(!0), c(b, null, a(J.value, (e) => (t(), c("div", {
427
427
  key: e.id,
428
428
  class: "tpl:flex tpl:flex-col tpl:gap-2"
429
429
  }, [typeof e.locale == "string" ? (t(), c("span", Ce, g(u(D)(e.locale)), 1)) : f("", !0), e.role === "user" ? (t(), c("div", we, [l(g(e.text) + " ", 1), (t(!0), c(b, null, a(e.attachments, (e, n) => (t(), c("span", {
430
430
  key: n,
431
431
  "data-testid": "ai-chat-history-attachment",
432
432
  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"
433
- }, [e.kind === "pdf" ? (t(), p(u(w), {
433
+ }, [e.kind === "pdf" ? (t(), p(u(C), {
434
434
  key: 0,
435
435
  size: 12,
436
436
  "aria-hidden": "true"
437
- })) : (t(), p(u(T), {
437
+ })) : (t(), p(u(w), {
438
438
  key: 1,
439
439
  size: 12,
440
440
  "aria-hidden": "true"
441
441
  })), l(g(e.name), 1)]))), 128))])) : (t(), c("div", Te, [
442
- e.text === "" && e.status === "streaming" ? (t(), p(pe, { key: 0 })) : e.text === "" ? f("", !0) : (t(), c("div", Ee, g(e.text), 1)),
443
- e.operationCount > 0 ? (t(), c("div", De, [h("span", null, g($(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (t(), c("button", {
442
+ e.text === "" && e.status === "streaming" ? (t(), p(ue, { key: 0 })) : e.text === "" ? f("", !0) : (t(), c("div", Ee, g(e.text), 1)),
443
+ e.operationCount > 0 ? (t(), c("div", De, [h("span", null, g(it(e)), 1), (e.undone ? e.canRedo : e.canUndo) ? (t(), c("button", {
444
444
  key: 0,
445
445
  type: "button",
446
446
  "data-testid": "ai-chat-undo",
447
- class: d(u(O)),
448
- disabled: J.value,
447
+ class: d(u(E)),
448
+ disabled: Y.value,
449
449
  onClick: (t) => ot(e)
450
450
  }, [e.undone ? (t(), p(u(se), {
451
451
  key: 0,
@@ -460,11 +460,11 @@ var ge = [
460
460
  })), l(" " + g(e.undone ? u(j).ai.chat.redo : u(j).ai.chat.undo), 1)], 10, Oe)) : f("", !0)])) : f("", !0),
461
461
  e.failure ? (t(), c("p", ke, g(at(e)), 1)) : f("", !0)
462
462
  ]))]))), 128))]))], 512),
463
- q.value.length === 0 && K.value.length > 0 ? (t(), c("div", Ae, [h("div", je, [(t(!0), c(b, null, a(K.value, (e, n) => (t(), c("button", {
463
+ J.value.length === 0 && q.value.length > 0 ? (t(), c("div", Ae, [h("div", je, [(t(!0), c(b, null, a(q.value, (e, n) => (t(), c("button", {
464
464
  key: n,
465
465
  type: "button",
466
466
  "data-testid": "ai-chat-starter",
467
- class: d(["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", K.value.length - 1 - n < G.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
467
+ class: d(["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"]),
468
468
  style: {
469
469
  "border-color": "var(--tpl-border)",
470
470
  color: "var(--tpl-primary)",
@@ -482,6 +482,6 @@ var ge = [
482
482
  ])], 32));
483
483
  }
484
484
  }), [["__scopeId", "data-v-d3e3a1af"]]);
485
- export { B as default };
485
+ export { V as default };
486
486
 
487
- //# sourceMappingURL=AiChatPanel-DKDu9cs7.js.map
487
+ //# sourceMappingURL=AiChatPanel-C2gpq4kP.js.map