@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.7

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 (327) hide show
  1. package/LICENSE.md +4 -0
  2. package/build/ai.js +1 -1
  3. package/ckeditor5-metadata.json +14 -0
  4. package/dist/index-editor.css +70 -19
  5. package/dist/index.css +80 -19
  6. package/dist/index.js +4 -4
  7. package/dist/translations/af.js +1 -1
  8. package/dist/translations/af.umd.js +1 -1
  9. package/dist/translations/ar.js +1 -1
  10. package/dist/translations/ar.umd.js +1 -1
  11. package/dist/translations/ast.js +1 -1
  12. package/dist/translations/ast.umd.js +1 -1
  13. package/dist/translations/az.js +1 -1
  14. package/dist/translations/az.umd.js +1 -1
  15. package/dist/translations/be.js +1 -1
  16. package/dist/translations/be.umd.js +1 -1
  17. package/dist/translations/bg.js +1 -1
  18. package/dist/translations/bg.umd.js +1 -1
  19. package/dist/translations/bn.js +1 -1
  20. package/dist/translations/bn.umd.js +1 -1
  21. package/dist/translations/bs.js +1 -1
  22. package/dist/translations/bs.umd.js +1 -1
  23. package/dist/translations/ca.js +1 -1
  24. package/dist/translations/ca.umd.js +1 -1
  25. package/dist/translations/cs.js +1 -1
  26. package/dist/translations/cs.umd.js +1 -1
  27. package/dist/translations/da.js +1 -1
  28. package/dist/translations/da.umd.js +1 -1
  29. package/dist/translations/de-ch.js +1 -1
  30. package/dist/translations/de-ch.umd.js +1 -1
  31. package/dist/translations/de.js +1 -1
  32. package/dist/translations/de.umd.js +1 -1
  33. package/dist/translations/el.js +1 -1
  34. package/dist/translations/el.umd.js +1 -1
  35. package/dist/translations/en-au.js +1 -1
  36. package/dist/translations/en-au.umd.js +1 -1
  37. package/dist/translations/en-gb.js +1 -1
  38. package/dist/translations/en-gb.umd.js +1 -1
  39. package/dist/translations/en.js +1 -1
  40. package/dist/translations/en.umd.js +1 -1
  41. package/dist/translations/eo.js +1 -1
  42. package/dist/translations/eo.umd.js +1 -1
  43. package/dist/translations/es-co.js +1 -1
  44. package/dist/translations/es-co.umd.js +1 -1
  45. package/dist/translations/es.js +1 -1
  46. package/dist/translations/es.umd.js +1 -1
  47. package/dist/translations/et.js +1 -1
  48. package/dist/translations/et.umd.js +1 -1
  49. package/dist/translations/eu.js +1 -1
  50. package/dist/translations/eu.umd.js +1 -1
  51. package/dist/translations/fa.js +1 -1
  52. package/dist/translations/fa.umd.js +1 -1
  53. package/dist/translations/fi.js +1 -1
  54. package/dist/translations/fi.umd.js +1 -1
  55. package/dist/translations/fr.js +1 -1
  56. package/dist/translations/fr.umd.js +1 -1
  57. package/dist/translations/gl.js +1 -1
  58. package/dist/translations/gl.umd.js +1 -1
  59. package/dist/translations/gu.js +1 -1
  60. package/dist/translations/gu.umd.js +1 -1
  61. package/dist/translations/he.js +1 -1
  62. package/dist/translations/he.umd.js +1 -1
  63. package/dist/translations/hi.js +1 -1
  64. package/dist/translations/hi.umd.js +1 -1
  65. package/dist/translations/hr.js +1 -1
  66. package/dist/translations/hr.umd.js +1 -1
  67. package/dist/translations/hu.js +1 -1
  68. package/dist/translations/hu.umd.js +1 -1
  69. package/dist/translations/hy.js +1 -1
  70. package/dist/translations/hy.umd.js +1 -1
  71. package/dist/translations/id.js +1 -1
  72. package/dist/translations/id.umd.js +1 -1
  73. package/dist/translations/it.js +1 -1
  74. package/dist/translations/it.umd.js +1 -1
  75. package/dist/translations/ja.js +1 -1
  76. package/dist/translations/ja.umd.js +1 -1
  77. package/dist/translations/jv.js +1 -1
  78. package/dist/translations/jv.umd.js +1 -1
  79. package/dist/translations/kk.js +1 -1
  80. package/dist/translations/kk.umd.js +1 -1
  81. package/dist/translations/km.js +1 -1
  82. package/dist/translations/km.umd.js +1 -1
  83. package/dist/translations/kn.js +1 -1
  84. package/dist/translations/kn.umd.js +1 -1
  85. package/dist/translations/ko.js +1 -1
  86. package/dist/translations/ko.umd.js +1 -1
  87. package/dist/translations/ku.js +1 -1
  88. package/dist/translations/ku.umd.js +1 -1
  89. package/dist/translations/lt.js +1 -1
  90. package/dist/translations/lt.umd.js +1 -1
  91. package/dist/translations/lv.js +1 -1
  92. package/dist/translations/lv.umd.js +1 -1
  93. package/dist/translations/ms.js +1 -1
  94. package/dist/translations/ms.umd.js +1 -1
  95. package/dist/translations/nb.js +1 -1
  96. package/dist/translations/nb.umd.js +1 -1
  97. package/dist/translations/ne.js +1 -1
  98. package/dist/translations/ne.umd.js +1 -1
  99. package/dist/translations/nl.js +1 -1
  100. package/dist/translations/nl.umd.js +1 -1
  101. package/dist/translations/no.js +1 -1
  102. package/dist/translations/no.umd.js +1 -1
  103. package/dist/translations/oc.js +1 -1
  104. package/dist/translations/oc.umd.js +1 -1
  105. package/dist/translations/pl.js +1 -1
  106. package/dist/translations/pl.umd.js +1 -1
  107. package/dist/translations/pt-br.js +1 -1
  108. package/dist/translations/pt-br.umd.js +1 -1
  109. package/dist/translations/pt.js +1 -1
  110. package/dist/translations/pt.umd.js +1 -1
  111. package/dist/translations/ro.js +1 -1
  112. package/dist/translations/ro.umd.js +1 -1
  113. package/dist/translations/ru.js +1 -1
  114. package/dist/translations/ru.umd.js +1 -1
  115. package/dist/translations/si.js +1 -1
  116. package/dist/translations/si.umd.js +1 -1
  117. package/dist/translations/sk.js +1 -1
  118. package/dist/translations/sk.umd.js +1 -1
  119. package/dist/translations/sl.js +1 -1
  120. package/dist/translations/sl.umd.js +1 -1
  121. package/dist/translations/sq.js +1 -1
  122. package/dist/translations/sq.umd.js +1 -1
  123. package/dist/translations/sr-latn.js +1 -1
  124. package/dist/translations/sr-latn.umd.js +1 -1
  125. package/dist/translations/sr.js +1 -1
  126. package/dist/translations/sr.umd.js +1 -1
  127. package/dist/translations/sv.js +1 -1
  128. package/dist/translations/sv.umd.js +1 -1
  129. package/dist/translations/th.js +1 -1
  130. package/dist/translations/th.umd.js +1 -1
  131. package/dist/translations/ti.js +1 -1
  132. package/dist/translations/ti.umd.js +1 -1
  133. package/dist/translations/tk.js +1 -1
  134. package/dist/translations/tk.umd.js +1 -1
  135. package/dist/translations/tr.js +1 -1
  136. package/dist/translations/tr.umd.js +1 -1
  137. package/dist/translations/tt.js +1 -1
  138. package/dist/translations/tt.umd.js +1 -1
  139. package/dist/translations/ug.js +1 -1
  140. package/dist/translations/ug.umd.js +1 -1
  141. package/dist/translations/uk.js +1 -1
  142. package/dist/translations/uk.umd.js +1 -1
  143. package/dist/translations/ur.js +1 -1
  144. package/dist/translations/ur.umd.js +1 -1
  145. package/dist/translations/uz.js +1 -1
  146. package/dist/translations/uz.umd.js +1 -1
  147. package/dist/translations/vi.js +1 -1
  148. package/dist/translations/vi.umd.js +1 -1
  149. package/dist/translations/zh-cn.js +1 -1
  150. package/dist/translations/zh-cn.umd.js +1 -1
  151. package/dist/translations/zh.js +1 -1
  152. package/dist/translations/zh.umd.js +1 -1
  153. package/lang/contexts.json +6 -0
  154. package/package.json +15 -15
  155. package/src/aiactions/aiactions.d.ts +0 -2
  156. package/src/aiactions/aiactions.js +1 -1
  157. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
  158. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  159. package/src/aiactions/model/aiactionsreply.js +1 -1
  160. package/src/aiassistant/adapters/aiadapter.js +1 -1
  161. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  162. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  163. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  164. package/src/aiassistant/aiassistant.js +1 -1
  165. package/src/aiassistant/aiassistantediting.js +1 -1
  166. package/src/aiassistant/aiassistantui.js +1 -1
  167. package/src/aiassistant/legacyerrors.js +1 -1
  168. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  169. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  170. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  171. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  172. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  173. package/src/aiassistant/ui/form/aiformview.js +1 -1
  174. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  175. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  176. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  177. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  178. package/src/aiassistant/utils/common-translations.js +1 -1
  179. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  180. package/src/aiballoon/aiballoon.js +1 -1
  181. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  182. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  183. package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
  184. package/src/aiballoon/ui/aiballoonview.js +1 -1
  185. package/src/aichat/aichat.js +1 -1
  186. package/src/aichat/aichatcontroller.d.ts +4 -0
  187. package/src/aichat/aichatcontroller.js +1 -1
  188. package/src/aichat/aichatui.d.ts +9 -2
  189. package/src/aichat/aichatui.js +1 -1
  190. package/src/aichat/model/aichatcontext.js +1 -1
  191. package/src/aichat/model/aichatconversation.js +1 -1
  192. package/src/aichat/model/aichatinteraction.js +1 -1
  193. package/src/aichat/model/aichatmodels.js +1 -1
  194. package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
  195. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  196. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  197. package/src/aichat/ui/aichatfeedview.js +1 -1
  198. package/src/aichat/ui/aichatheaderview.js +1 -1
  199. package/src/aichat/ui/aichatview.js +1 -1
  200. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  202. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  203. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  204. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  205. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  206. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  207. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  210. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  211. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  212. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
  216. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  218. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  219. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
  220. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  221. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
  222. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  223. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  224. package/src/aichat/utils/eventnames.js +1 -1
  225. package/src/aichat/utils/promisequeue.js +1 -1
  226. package/src/aichat/utils/scrollmanager.js +1 -1
  227. package/src/aichathistory/aichathistory.js +1 -1
  228. package/src/aichathistory/aichathistorycontroller.js +1 -1
  229. package/src/aichathistory/aichathistoryui.js +1 -1
  230. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  231. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  232. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  233. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  234. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  235. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  236. package/src/aiconfig.d.ts +17 -0
  237. package/src/aicore/aiconnector.d.ts +13 -0
  238. package/src/aicore/aiconnector.js +1 -1
  239. package/src/aicore/aiediting.js +1 -1
  240. package/src/aicore/model/aicapabilities.js +1 -1
  241. package/src/aicore/model/aicontext.js +1 -1
  242. package/src/aicore/model/aiinteraction.d.ts +41 -1
  243. package/src/aicore/model/aiinteraction.js +1 -1
  244. package/src/aicore/model/aireply.d.ts +2 -2
  245. package/src/aicore/model/aireply.js +1 -1
  246. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  247. package/src/aicore/pipeline/airesponseparser.js +2 -2
  248. package/src/aicore/ui/aidisclaimerview.js +1 -1
  249. package/src/aicore/ui/aiskeleton.js +1 -1
  250. package/src/aicore/ui/aispinner.js +1 -1
  251. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  252. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  253. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
  254. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  255. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  256. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  257. package/src/aicore/utils/common-translations.js +1 -1
  258. package/src/aicore/utils/createresizebutton.js +1 -1
  259. package/src/aicore/utils/documentposition.js +1 -1
  260. package/src/aicore/utils/documentrange.js +1 -1
  261. package/src/aicore/utils/eventnames.js +1 -1
  262. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  263. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  264. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  265. package/src/aicore/utils/htmlparser.js +1 -1
  266. package/src/aicore/utils/htmlstreamer.js +1 -1
  267. package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
  268. package/src/aieditorintegration/aieditorintegration.js +23 -0
  269. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
  270. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
  271. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
  272. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
  273. package/src/aiquickactions/aiquickactions.js +1 -1
  274. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  275. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  276. package/src/aiquickactions/aiquickactionsui.js +1 -1
  277. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  278. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  279. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  280. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  281. package/src/aireviewmode/aireviewmode.js +1 -1
  282. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  283. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  284. package/src/aireviewmode/aireviewmodeui.js +1 -1
  285. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  286. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  287. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  288. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  289. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  290. package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
  291. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  292. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  293. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  294. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  295. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  296. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  303. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  306. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  307. package/src/aitabs/aitabs.js +1 -1
  308. package/src/aitabs/aitabsmainview.d.ts +6 -0
  309. package/src/aitabs/aitabsmainview.js +1 -1
  310. package/src/aitabs/tabs/aitabsview.js +1 -1
  311. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  312. package/src/aitabs/tabs/tabpanelview.js +1 -1
  313. package/src/augmentation.d.ts +6 -0
  314. package/src/index.d.ts +4 -1
  315. package/src/index.js +1 -1
  316. package/theme/aiballoon/aiballoon.css +17 -4
  317. package/theme/aichat/aichat-controls.css +6 -0
  318. package/theme/aichat/aichat.css +2 -0
  319. package/theme/aichat/aichathistory.css +26 -9
  320. package/theme/aichat/aiminitoolbar.css +8 -0
  321. package/theme/aichat/aisuggestioncontainer.css +14 -2
  322. package/theme/aireviewmode/aireviewmode-check-run-result.css +6 -0
  323. package/theme/aitabs/aitabsview.css +6 -1
  324. package/theme/common/aibutton.css +0 -4
  325. package/theme/common/aiheader.css +1 -0
  326. package/src/aiquickactions/utils/common-translations.d.ts +0 -9
  327. package/src/aiquickactions/utils/common-translations.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x432215,_0x1427ab){const _0x2eff36=_0x1355,_0x43c307=_0x432215();while(!![]){try{const _0x5390fe=parseInt(_0x2eff36(0xaa))/0x1*(-parseInt(_0x2eff36(0x99))/0x2)+-parseInt(_0x2eff36(0x9c))/0x3+-parseInt(_0x2eff36(0x96))/0x4*(-parseInt(_0x2eff36(0xa2))/0x5)+parseInt(_0x2eff36(0x94))/0x6+-parseInt(_0x2eff36(0x9d))/0x7+parseInt(_0x2eff36(0x9b))/0x8+-parseInt(_0x2eff36(0xa7))/0x9*(parseInt(_0x2eff36(0x9f))/0xa);if(_0x5390fe===_0x1427ab)break;else _0x43c307['push'](_0x43c307['shift']());}catch(_0x587220){_0x43c307['push'](_0x43c307['shift']());}}}(_0xacc8,0x509b4));function _0x1355(_0x555eb9,_0x10103b){const _0xacc8db=_0xacc8();return _0x1355=function(_0x135540,_0x27a6d9){_0x135540=_0x135540-0x91;let _0x3ef46c=_0xacc8db[_0x135540];return _0x3ef46c;},_0x1355(_0x555eb9,_0x10103b);}import{IconBulb as _0x3e9d1c,IconWeb as _0x301964}from'@ckeditor/ckeditor5-icons';import{IconView as _0x320410,View as _0x5c46e4}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x7bbd4}from'./aichatfeeditemview.js';function _0xacc8(){const _0x9175a8=['ck-ai-chat__feed__interaction-header','116910XQKbSz','content','push','1385wFOBOc','span','ck-hidden','setTemplate','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','9gbgpgl','ck-ai-chat__feed__interaction-header__capabilities__text','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','1002EqlKRO','capabilities','children','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','2719146APtpnT','add','5508ceZlnj','ck-ai-chat__feed__interaction-header__capabilities','extendTemplate','86UPNTcU','div','633680MjROdy','60297osjGDX','3561530XkBPdy'];_0xacc8=function(){return _0x9175a8;};return _0xacc8();}import{getTranslation as _0x1213bd}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x7bbd4{constructor(_0x169eab,_0x46a45e){const _0x36fdac=_0x1355;super(_0x46a45e);const {isWebSearchEnabled:_0x297172,isReasoningEnabled:_0x24560d}=_0x46a45e[_0x36fdac(0x91)],_0x46e9ef=[];let _0x4d230b='';_0x297172&&_0x24560d?(_0x4d230b=_0x1213bd(_0x169eab,_0x36fdac(0xa9)),_0x46e9ef[_0x36fdac(0xa1)](e_(_0x301964)),_0x46e9ef[_0x36fdac(0xa1)](e_(_0x3e9d1c))):_0x297172?(_0x4d230b=_0x1213bd(_0x169eab,_0x36fdac(0xa6)),_0x46e9ef[_0x36fdac(0xa1)](e_(_0x301964))):_0x24560d&&(_0x4d230b=_0x1213bd(_0x169eab,_0x36fdac(0x93)),_0x46e9ef[_0x36fdac(0xa1)](e_(_0x3e9d1c))),this[_0x36fdac(0x98)]({'attributes':{'class':[_0x36fdac(0x9e),_0x4d230b?'':_0x36fdac(0xa4)]}});const _0x36bfea=new _0x5c46e4();_0x36bfea[_0x36fdac(0xa5)]({'tag':_0x36fdac(0x9a),'attributes':{'class':['ck',_0x36fdac(0x97)]},'children':[..._0x46e9ef,{'tag':_0x36fdac(0xa3),'attributes':{'class':[_0x36fdac(0xa8)]},'children':[_0x4d230b]}]}),this[_0x36fdac(0x92)][_0x36fdac(0x95)](_0x36bfea);}}function e_(_0x1d2e3f){const _0x473e92=_0x1355,_0x5c3e38=new _0x320410();return _0x5c3e38[_0x473e92(0xa0)]=_0x1d2e3f,_0x5c3e38;}
23
+ const _0x36be17=_0x2b06;(function(_0x302142,_0x177514){const _0x219dfb=_0x2b06,_0x3c8bcf=_0x302142();while(!![]){try{const _0x5a2949=-parseInt(_0x219dfb(0x94))/0x1*(-parseInt(_0x219dfb(0x8e))/0x2)+parseInt(_0x219dfb(0xab))/0x3*(parseInt(_0x219dfb(0x9b))/0x4)+-parseInt(_0x219dfb(0xaa))/0x5*(-parseInt(_0x219dfb(0xa3))/0x6)+parseInt(_0x219dfb(0xa6))/0x7*(parseInt(_0x219dfb(0xa9))/0x8)+parseInt(_0x219dfb(0x90))/0x9*(parseInt(_0x219dfb(0x92))/0xa)+parseInt(_0x219dfb(0xa4))/0xb*(-parseInt(_0x219dfb(0x96))/0xc)+-parseInt(_0x219dfb(0xa5))/0xd*(parseInt(_0x219dfb(0x97))/0xe);if(_0x5a2949===_0x177514)break;else _0x3c8bcf['push'](_0x3c8bcf['shift']());}catch(_0x55ca39){_0x3c8bcf['push'](_0x3c8bcf['shift']());}}}(_0x2a63,0x5109f));import{IconBulb as _0x1f29be,IconWeb as _0x18065c}from'@ckeditor/ckeditor5-icons';function _0x2a63(){const _0x51dca1=['2900628qJxXMm','1794947uQwELQ','355979kHacPV','21dsirzR','children','ck-hidden','1418248kUidrn','5yckCsJ','153xwjceB','30042cggEeP','add','4946436VjqFjs','capabilities','10ZoPecC','div','10ZyfwXV','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','12NLzPnJ','672yVoqCZ','ck-ai-chat__feed__interaction-header__capabilities','span','ck-ai-chat__feed__interaction-header','7404FAZGWs','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','content','ck-ai-chat__feed__interaction-header__capabilities__text','setTemplate','extendTemplate'];_0x2a63=function(){return _0x51dca1;};return _0x2a63();}import{IconView as _0x4dc0cf,View as _0x1c2881}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x4a4a27}from'./aichatfeeditemview.js';import{getTranslation as _0x376303}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x4a4a27{[_0x36be17(0x91)];constructor(_0x2f4872,_0x5c517b){const _0x252501=_0x36be17;super(_0x5c517b);const {isWebSearchEnabled:_0x406742,isReasoningEnabled:_0x58b4aa}=_0x5c517b[_0x252501(0x91)],_0x722b2e=[];let _0x20c8b1='';_0x406742&&_0x58b4aa?(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x95)),_0x722b2e[_0x252501(0x9d)](ia(_0x18065c)),_0x722b2e[_0x252501(0x9d)](ia(_0x1f29be))):_0x406742?(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x9c)),_0x722b2e[_0x252501(0x9d)](ia(_0x18065c))):_0x58b4aa&&(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x9e)),_0x722b2e[_0x252501(0x9d)](ia(_0x1f29be))),this[_0x252501(0xa2)]({'attributes':{'class':[_0x252501(0x9a),_0x20c8b1?'':_0x252501(0xa8)]}});const _0x21c0fc=new _0x1c2881();_0x21c0fc[_0x252501(0xa1)]({'tag':_0x252501(0x93),'attributes':{'class':['ck',_0x252501(0x98)]},'children':[..._0x722b2e,{'tag':_0x252501(0x99),'attributes':{'class':[_0x252501(0xa0)]},'children':[_0x20c8b1]}]}),this[_0x252501(0xa7)][_0x252501(0x8f)](_0x21c0fc),this[_0x252501(0x91)]=_0x5c517b[_0x252501(0x91)];}}function _0x2b06(_0x2b244c,_0x26ac51){const _0x2a63ab=_0x2a63();return _0x2b06=function(_0x2b0694,_0x2c76f2){_0x2b0694=_0x2b0694-0x8e;let _0xd17227=_0x2a63ab[_0x2b0694];return _0xd17227;},_0x2b06(_0x2b244c,_0x26ac51);}function ia(_0x4e3fb3){const _0x426d29=_0x36be17,_0x402865=new _0x4dc0cf();return _0x402865[_0x426d29(0x9f)]=_0x4e3fb3,_0x402865;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x580738=_0x3e96;(function(_0x2f1dac,_0x57de87){const _0x37a47e=_0x3e96,_0x45b4f8=_0x2f1dac();while(!![]){try{const _0x51c4db=-parseInt(_0x37a47e(0x204))/0x1+-parseInt(_0x37a47e(0x207))/0x2+-parseInt(_0x37a47e(0x20c))/0x3+parseInt(_0x37a47e(0x1f8))/0x4*(-parseInt(_0x37a47e(0x20f))/0x5)+-parseInt(_0x37a47e(0x1f5))/0x6+-parseInt(_0x37a47e(0x202))/0x7+parseInt(_0x37a47e(0x203))/0x8;if(_0x51c4db===_0x57de87)break;else _0x45b4f8['push'](_0x45b4f8['shift']());}catch(_0x33af9c){_0x45b4f8['push'](_0x45b4f8['shift']());}}}(_0x1f16,0x2de7a));import{View as _0x4dcd90}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x3bee73}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x4dcd90{[_0x580738(0x1ef)];[_0x580738(0x209)]='';[_0x580738(0x1fb)];[_0x580738(0x20d)];constructor(_0x1df692){const _0x402ffb=_0x580738;super();const _0x428cd0=this[_0x402ffb(0x20a)];this[_0x402ffb(0x20e)](_0x402ffb(0x1f9),!0x1),this[_0x402ffb(0x20e)](_0x402ffb(0x1fd),!0x0),this[_0x402ffb(0x1fb)]=new _0x3bee73({'textNodeStyle':_0x402ffb(0x208),'delay':0x14}),this[_0x402ffb(0x1ef)]=_0x1df692,this[_0x402ffb(0x20d)]=this[_0x402ffb(0x1ff)](),this[_0x402ffb(0x1f6)]({'tag':_0x402ffb(0x1f7),'attributes':{'class':['ck',_0x402ffb(0x1f4),_0x428cd0['if'](_0x402ffb(0x1f9),_0x402ffb(0x1f0)),_0x428cd0['if'](_0x402ffb(0x1fd),_0x402ffb(0x1f3),_0x1d6a05=>!_0x1d6a05),_0x402ffb(0x206)],'data-cke-ai-id':this[_0x402ffb(0x1ef)]['id']},'children':this[_0x402ffb(0x20d)]});}[_0x580738(0x1fe)](){const _0xfaf082=_0x580738;this[_0xfaf082(0x1fb)][_0xfaf082(0x1f1)]({'targetElement':this[_0xfaf082(0x1f2)]}),this[_0xfaf082(0x1f2)][_0xfaf082(0x1ee)](_0xfaf082(0x20b))[_0xfaf082(0x205)](_0x37b364=>{const _0x3be08e=_0xfaf082;_0x37b364[_0x3be08e(0x200)](_0x3be08e(0x1fa));}),this[_0xfaf082(0x1f9)]=!0x0;}async[_0x580738(0x1fc)](_0x47f4bf,_0x204cc2,_0x134092){const _0x197b0c=_0x580738;await this[_0x197b0c(0x1fb)][_0x197b0c(0x201)]({'document':_0x47f4bf,'targetElement':_0x204cc2,'abortSignal':_0x134092});}}function _0x3e96(_0x227838,_0x5b532a){const _0x1f16dc=_0x1f16();return _0x3e96=function(_0x3e96d6,_0x18c24a){_0x3e96d6=_0x3e96d6-0x1ee;let _0x2e40df=_0x1f16dc[_0x3e96d6];return _0x2e40df;},_0x3e96(_0x227838,_0x5b532a);}function _0x1f16(){const _0x59610d=['245226qpdmSN','forEach','ck-ai-chat__feed__text-item','697182rBdZSC','animation:\x20ck-html-streamer-fade-in\x20.5s','content','bindTemplate','[data-id]','405114oZXsUL','children','set','614785bJSpbx','querySelectorAll','options','ck-ai-chat__feed__item_done','cleanUpAnimations','element','ck-hidden','ck-ai-chat__feed__item','140520ZRPqfu','setTemplate','div','4YfxjYv','isDone','data-id','htmlStreamer','streamIntoElement','isVisible','markAsDone','createCollection','removeAttribute','stream','2468221slRxQF','11326888pnygOi'];_0x1f16=function(){return _0x59610d;};return _0x1f16();}
23
+ const _0x3f79cc=_0xe7eb;(function(_0x400d61,_0x3140aa){const _0x2908c7=_0xe7eb,_0xe24016=_0x400d61();while(!![]){try{const _0x4dc923=parseInt(_0x2908c7(0xc2))/0x1*(-parseInt(_0x2908c7(0xda))/0x2)+-parseInt(_0x2908c7(0xb9))/0x3*(-parseInt(_0x2908c7(0xcf))/0x4)+-parseInt(_0x2908c7(0xc3))/0x5*(parseInt(_0x2908c7(0xd8))/0x6)+-parseInt(_0x2908c7(0xd0))/0x7+-parseInt(_0x2908c7(0xb7))/0x8+-parseInt(_0x2908c7(0xbf))/0x9*(parseInt(_0x2908c7(0xb6))/0xa)+-parseInt(_0x2908c7(0xbc))/0xb*(-parseInt(_0x2908c7(0xd7))/0xc);if(_0x4dc923===_0x3140aa)break;else _0xe24016['push'](_0xe24016['shift']());}catch(_0x2fe9ee){_0xe24016['push'](_0xe24016['shift']());}}}(_0x3263,0x7deda));import{View as _0x246fc4}from'ckeditor5/src/ui.js';function _0xe7eb(_0x161831,_0xd7eed0){const _0x326350=_0x3263();return _0xe7eb=function(_0xe7eb02,_0x277087){_0xe7eb02=_0xe7eb02-0xb5;let _0x21f23c=_0x326350[_0xe7eb02];return _0x21f23c;},_0xe7eb(_0x161831,_0xd7eed0);}import{HTMLStreamer as _0x1fc81d}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x246fc4{[_0x3f79cc(0xd3)];[_0x3f79cc(0xc7)]='';[_0x3f79cc(0xc5)];[_0x3f79cc(0xbb)];constructor(_0x1f3040){const _0x52a7ce=_0x3f79cc;super();const _0x454809=this[_0x52a7ce(0xb5)];this[_0x52a7ce(0xd1)](_0x52a7ce(0xba),!0x1),this[_0x52a7ce(0xd1)](_0x52a7ce(0xc6),!0x0),this[_0x52a7ce(0xc5)]=new _0x1fc81d({'textNodeStyle':_0x52a7ce(0xcb),'delay':0x14}),this[_0x52a7ce(0xd3)]=_0x1f3040,this[_0x52a7ce(0xbb)]=this[_0x52a7ce(0xd5)](),this[_0x52a7ce(0xce)]({'tag':_0x52a7ce(0xd2),'attributes':{'class':['ck',_0x52a7ce(0xc9),_0x454809['if'](_0x52a7ce(0xba),_0x52a7ce(0xbe)),_0x454809['if'](_0x52a7ce(0xc6),_0x52a7ce(0xc1),_0x439a82=>!_0x439a82),_0x52a7ce(0xd4)],'data-cke-ai-id':this[_0x52a7ce(0xd3)]['id']},'children':this[_0x52a7ce(0xbb)]});}[_0x3f79cc(0xbd)](){const _0x2714d8=_0x3f79cc;this[_0x2714d8(0xc5)][_0x2714d8(0xd6)]({'targetElement':this[_0x2714d8(0xcd)]}),this[_0x2714d8(0xcd)][_0x2714d8(0xc0)](_0x2714d8(0xca))[_0x2714d8(0xb8)](_0x39ad87=>{const _0x1c50eb=_0x2714d8;_0x39ad87[_0x1c50eb(0xc8)](_0x1c50eb(0xcc));}),this[_0x2714d8(0xba)]=!0x0;}async[_0x3f79cc(0xd9)](_0x3310b7,_0x11cf59,_0x5e8a0d){const _0xd939c=_0x3f79cc;await this[_0xd939c(0xc5)][_0xd939c(0xc4)]({'document':_0x3310b7,'targetElement':_0x11cf59,'abortSignal':_0x5e8a0d});}}function _0x3263(){const _0x399bf4=['[data-id]','animation:\x20ck-html-streamer-fade-in\x20.5s','data-id','element','setTemplate','244WiPAzC','4502911lJunmr','set','div','options','ck-ai-chat__feed__text-item','createCollection','cleanUpAnimations','18168OXUwpz','1506qSyzCQ','streamIntoElement','84FgLZSH','bindTemplate','10OfHOvs','6262032ZPXwEJ','forEach','13674sPTBRU','isDone','children','22363qpVfLu','markAsDone','ck-ai-chat__feed__item_done','1547982waorYn','querySelectorAll','ck-hidden','20677GyNzjb','7445GmKFjr','stream','htmlStreamer','isVisible','content','removeAttribute','ck-ai-chat__feed__item'];_0x3263=function(){return _0x399bf4;};return _0x3263();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2d71(_0x3ffdb2,_0x36212b){const _0x4b224d=_0x4b22();return _0x2d71=function(_0x2d717e,_0x1798fc){_0x2d717e=_0x2d717e-0xf2;let _0x4b39a1=_0x4b224d[_0x2d717e];return _0x4b39a1;},_0x2d71(_0x3ffdb2,_0x36212b);}const _0x401527=_0x2d71;function _0x4b22(){const _0x15488c=['84820oFWfsG','914181scgimT','replyContainer','updateContent','248bztEVG','224pHlcpj','addMany','5849250ioTqCa','static','div','setTemplate','streaming','ck-ai-chat__feed__ai-reply','add','locale','map','1514905hgakru','children','element','ck-ai-chat__feed__ai-reply-container','streamIntoElement','markAsDone','options','6WEOOno','updateSources','extendTemplate','initialContent','ck-reset_all-excluded','render','53703wzvWPo','4755lxNQOw','797022LplMDM','isVisible','innerHTML'];_0x4b22=function(){return _0x15488c;};return _0x4b22();}(function(_0x15ed75,_0x2e47df){const _0x557a82=_0x2d71,_0x7d6d8f=_0x15ed75();while(!![]){try{const _0x2255f4=-parseInt(_0x557a82(0x107))/0x1+parseInt(_0x557a82(0x104))/0x2+-parseInt(_0x557a82(0x108))/0x3+parseInt(_0x557a82(0x10c))/0x4*(parseInt(_0x557a82(0x103))/0x5)+-parseInt(_0x557a82(0xfc))/0x6*(parseInt(_0x557a82(0xf5))/0x7)+-parseInt(_0x557a82(0x10b))/0x8*(parseInt(_0x557a82(0x102))/0x9)+parseInt(_0x557a82(0x10e))/0xa;if(_0x2255f4===_0x2e47df)break;else _0x7d6d8f['push'](_0x7d6d8f['shift']());}catch(_0x2492c1){_0x7d6d8f['push'](_0x7d6d8f['shift']());}}}(_0x4b22,0x3bff9));import{AIChatFeedItemView as _0x3d9dde}from'./aichatfeeditemview.js';import{parse as _0x54aa6d,render as _0x1d9a9f}from'../../../aicore/utils/htmlparser.js';import{View as _0x5ba9eb}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x9b7432,AIWebSourceView as _0x131ffc}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x3d9dde{[_0x401527(0x109)];constructor(_0x68f667,_0x540ff1){const _0xbc9cda=_0x401527;super(_0x540ff1),this[_0xbc9cda(0xf3)]=_0x68f667,this[_0xbc9cda(0xfe)]({'attributes':{'class':[_0xbc9cda(0x113)]}}),this[_0xbc9cda(0x109)]=new _0x5ba9eb(),this[_0xbc9cda(0x109)][_0xbc9cda(0x111)]({'tag':_0xbc9cda(0x110),'attributes':{'class':['ck',_0xbc9cda(0x100),_0xbc9cda(0xf8)]}}),this[_0xbc9cda(0xf6)][_0xbc9cda(0xf2)](this[_0xbc9cda(0x109)]);}async[_0x401527(0x101)](){const _0x412e1a=_0x401527;super[_0x412e1a(0x101)](),this[_0x412e1a(0xfb)][_0x412e1a(0xff)]&&(await this[_0x412e1a(0x10a)]({'parsedContent':_0x54aa6d(this[_0x412e1a(0xfb)][_0x412e1a(0xff)]),'renderingStrategy':_0x412e1a(0x10f)}),this[_0x412e1a(0xfa)]());}async[_0x401527(0x10a)]({parsedContent:_0x573b27,renderingStrategy:_0x4638c0,abortSignal:_0x47bf14}){const _0x10443a=_0x401527;_0x10443a(0x112)===_0x4638c0?await this[_0x10443a(0xf9)](_0x573b27,this[_0x10443a(0x109)][_0x10443a(0xf7)],_0x47bf14):this[_0x10443a(0x109)][_0x10443a(0xf7)][_0x10443a(0x106)]=_0x1d9a9f(_0x573b27);}[_0x401527(0xfd)](_0xfebad3){const _0x28251f=_0x401527,_0x33da85=new _0x9b7432(this[_0x28251f(0xf3)]);_0x33da85[_0x28251f(0xf6)][_0x28251f(0x10d)](_0xfebad3[_0x28251f(0xf4)](_0x2707e3=>new _0x131ffc(this[_0x28251f(0xf3)],_0x2707e3))),_0x33da85[_0x28251f(0x105)]=!0x0,this[_0x28251f(0xf6)][_0x28251f(0xf2)](_0x33da85);}}
23
+ const _0x52060e=_0x4fa4;function _0x4fa4(_0x607753,_0x3bc92f){const _0x15d6b0=_0x15d6();return _0x4fa4=function(_0x4fa4f1,_0x35b585){_0x4fa4f1=_0x4fa4f1-0x95;let _0x58a051=_0x15d6b0[_0x4fa4f1];return _0x58a051;},_0x4fa4(_0x607753,_0x3bc92f);}(function(_0x1773df,_0x206482){const _0x55b265=_0x4fa4,_0x1b6097=_0x1773df();while(!![]){try{const _0x3e67ab=parseInt(_0x55b265(0xb8))/0x1*(-parseInt(_0x55b265(0xac))/0x2)+parseInt(_0x55b265(0xb4))/0x3*(parseInt(_0x55b265(0xae))/0x4)+-parseInt(_0x55b265(0xaa))/0x5+-parseInt(_0x55b265(0x98))/0x6*(parseInt(_0x55b265(0x9f))/0x7)+-parseInt(_0x55b265(0xa7))/0x8*(parseInt(_0x55b265(0x96))/0x9)+parseInt(_0x55b265(0x9a))/0xa*(-parseInt(_0x55b265(0xb7))/0xb)+-parseInt(_0x55b265(0x9d))/0xc*(-parseInt(_0x55b265(0xa3))/0xd);if(_0x3e67ab===_0x206482)break;else _0x1b6097['push'](_0x1b6097['shift']());}catch(_0x565cdf){_0x1b6097['push'](_0x1b6097['shift']());}}}(_0x15d6,0xb2615));import{AIChatFeedItemView as _0x237785}from'./aichatfeeditemview.js';import{parse as _0x1b9be9,render as _0x5e9a61}from'../../../aicore/utils/htmlparser.js';import{View as _0x53445a}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x21c3de,AIWebSourceView as _0x34f3b1}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x15d6(){const _0x2db9a8=['12037131tWuNpd','element','250026EoByDK','isVisible','2071270nyZMxu','map','initialContent','6552lJYBBG','updateContent','147ftlAzo','options','streaming','div','116363JiFZLi','replyContainer','addMany','innerHTML','8yaWScc','setTemplate','children','4396380jBNLSi','streamIntoElement','7870QOEbhA','static','1181228WQmvDJ','extendTemplate','add','ck-ai-chat__feed__ai-reply-container','ck-reset_all-excluded','render','3DPBfIG','updateSources','ck-ai-chat__feed__ai-reply','11RYxBVs','293rEhGXj','locale','markAsDone'];_0x15d6=function(){return _0x2db9a8;};return _0x15d6();}export class AIChatFeedReplyItemView extends _0x237785{[_0x52060e(0xa4)];constructor(_0x38723b,_0x5ec12e){const _0x5b7325=_0x52060e;super(_0x5ec12e),this[_0x5b7325(0xb9)]=_0x38723b,this[_0x5b7325(0xaf)]({'attributes':{'class':[_0x5b7325(0xb6)]}}),this[_0x5b7325(0xa4)]=new _0x53445a(),this[_0x5b7325(0xa4)][_0x5b7325(0xa8)]({'tag':_0x5b7325(0xa2),'attributes':{'class':['ck',_0x5b7325(0xb2),_0x5b7325(0xb1)]}}),this[_0x5b7325(0xa9)][_0x5b7325(0xb0)](this[_0x5b7325(0xa4)]);}async[_0x52060e(0xb3)](){const _0x3a2d26=_0x52060e;super[_0x3a2d26(0xb3)](),this[_0x3a2d26(0xa0)][_0x3a2d26(0x9c)]&&(await this[_0x3a2d26(0x9e)]({'parsedContent':_0x1b9be9(this[_0x3a2d26(0xa0)][_0x3a2d26(0x9c)]),'renderingStrategy':_0x3a2d26(0xad)}),this[_0x3a2d26(0x95)]());}async[_0x52060e(0x9e)]({parsedContent:_0x2a9633,renderingStrategy:_0x51bc7d,abortSignal:_0x4fff3d}){const _0x2110ac=_0x52060e;_0x2110ac(0xa1)===_0x51bc7d?await this[_0x2110ac(0xab)](_0x2a9633,this[_0x2110ac(0xa4)][_0x2110ac(0x97)],_0x4fff3d):this[_0x2110ac(0xa4)][_0x2110ac(0x97)][_0x2110ac(0xa6)]=_0x5e9a61(_0x2a9633);}[_0x52060e(0xb5)](_0x3f4730){const _0x3ce745=_0x52060e,_0x1e1438=new _0x21c3de(this[_0x3ce745(0xb9)]);_0x1e1438[_0x3ce745(0xa9)][_0x3ce745(0xa5)](_0x3f4730[_0x3ce745(0x9b)](_0x49562b=>new _0x34f3b1(this[_0x3ce745(0xb9)],_0x49562b))),_0x1e1438[_0x3ce745(0x99)]=!0x0,this[_0x3ce745(0xa9)][_0x3ce745(0xb0)](_0x1e1438);}}
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { View } from 'ckeditor5/src/ui.js';
10
+ export declare const ACTIONS: readonly ["applySuggestion", "insertSuggestion", "showChangeInText"];
10
11
  /**
11
12
  * A view for the actions of an AI suggestion item in the AI chat feed.
12
13
  *
@@ -21,14 +22,18 @@ export declare class AIChatFeedSuggestionItemActionsView extends View {
21
22
  * Specifies whether the view should be visible or not.
22
23
  */
23
24
  isVisible: boolean;
25
+ /**
26
+ * @observable
27
+ */
28
+ isTrackChangesOn: boolean;
24
29
  /**
25
30
  * @inheritDoc
26
31
  */
27
- constructor(locale: Locale);
32
+ constructor(locale: Locale, dropdownConfig?: Array<AISuggestionActionName>);
28
33
  /**
29
34
  * Updates the labels of the actions based on the number of parts in the suggestion.
30
35
  */
31
- updateLabels(partsCount: number): void;
36
+ updateLabels(partsCount?: number): void;
32
37
  }
33
38
  export type AIShowChangeInTextEvent = {
34
39
  name: 'showChangeInText';
@@ -72,3 +77,4 @@ export type AIMouseLeaveSuggestionEvent = {
72
77
  partIndex: number;
73
78
  }];
74
79
  };
80
+ export type AISuggestionActionName = typeof ACTIONS[number];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x472b(_0x2fd8ca,_0x49b69a){const _0x4c4660=_0x4c46();return _0x472b=function(_0x472be5,_0x36ba7a){_0x472be5=_0x472be5-0x17e;let _0x1f0993=_0x4c4660[_0x472be5];return _0x1f0993;},_0x472b(_0x2fd8ca,_0x49b69a);}const _0x516ffc=_0x472b;(function(_0x25d79a,_0x31c190){const _0x12080c=_0x472b,_0x368962=_0x25d79a();while(!![]){try{const _0x55ef5d=-parseInt(_0x12080c(0x19e))/0x1+parseInt(_0x12080c(0x198))/0x2*(-parseInt(_0x12080c(0x1a1))/0x3)+parseInt(_0x12080c(0x193))/0x4*(-parseInt(_0x12080c(0x18d))/0x5)+parseInt(_0x12080c(0x18c))/0x6*(parseInt(_0x12080c(0x1a8))/0x7)+-parseInt(_0x12080c(0x1c7))/0x8*(parseInt(_0x12080c(0x1ab))/0x9)+parseInt(_0x12080c(0x195))/0xa*(-parseInt(_0x12080c(0x196))/0xb)+parseInt(_0x12080c(0x1b8))/0xc;if(_0x55ef5d===_0x31c190)break;else _0x368962['push'](_0x368962['shift']());}catch(_0x525d10){_0x368962['push'](_0x368962['shift']());}}}(_0x4c46,0x8d9f7));import{KeystrokeHandler as _0x21c117}from'ckeditor5/src/utils.js';function _0x4c46(){const _0x3f94e6=['attachToDom','8vRInNh','insertSuggestionModel','balloonPanelClass','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','balloonPanelView','createCollection','esc','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions__balloon','button','showChangeInText','Apply','actionsDropdown','delegate','add','listItemModels','bind','unbind','763068PWNLaS','5HjaACv','children','pin','items','element','actionName','2889148GGAESp','locale','10vZKydP','9890859ZViSDT','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','4262RUwkpD','tooltip','fire','applySuggestion','_setUpList','execute','155260uRiblh','ck-ai-chat__feed__ai-suggestion__actions','setTemplate','765FRQJgT','listenTo','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','open','div','_setUpKeystrokes','destroy','28eOWqhz','detachFromDom','left','7576263TUBnnV','isVisible','class','updateLabels','ck-hidden','source','insertSuggestion','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','ltr','content','keys','arrowView','width','38799636RrJQym','uiLanguageDirection','label','set','keystrokeHandler','listView','hide','focus','bodyCollection','bindTemplate','isEnabled','arrowless','bottom','showChangeInTextModel'];_0x4c46=function(){return _0x3f94e6;};return _0x4c46();}import{BalloonPanelView as _0x5eb328,BodyCollection as _0x5edc62,clickOutsideHandler as _0x7ab566,ListItemButtonView as _0x592944,ListItemView as _0x2411f3,ListView as _0x4d9e15,SplitButtonView as _0x3e8475,UIModel as _0x6905ba,View as _0x47e1c0}from'ckeditor5/src/ui.js';import{IconAddComment as _0x482ce3,IconDocumentWithLoupe as _0xf01713}from'ckeditor5/src/icons.js';import{getTranslation as _0x15a69d}from'../../../aicore/utils/common-translations.js';export class AIChatFeedSuggestionItemActionsView extends _0x47e1c0{[_0x516ffc(0x186)];[_0x516ffc(0x18e)];[_0x516ffc(0x1c5)];[_0x516ffc(0x1c8)];constructor(_0x148217){const _0x5b1a03=_0x516ffc;super(_0x148217);const _0xa9bf35=this[_0x5b1a03(0x1c1)];this[_0x5b1a03(0x1bb)](_0x5b1a03(0x1c2),!0x0),this[_0x5b1a03(0x1bb)](_0x5b1a03(0x1ac),!0x0),this[_0x5b1a03(0x1c5)]=new _0x6905ba({'label':_0x15a69d(_0x148217,_0x5b1a03(0x1a3)),'icon':_0xf01713,'withText':!0x0,'type':_0x5b1a03(0x183),'actionName':_0x5b1a03(0x184)}),this[_0x5b1a03(0x1c8)]=new _0x6905ba({'label':_0x15a69d(_0x148217,_0x5b1a03(0x197)),'icon':_0x482ce3,'withText':!0x0,'type':_0x5b1a03(0x183),'actionName':_0x5b1a03(0x1b1)}),this[_0x5b1a03(0x186)]=new Ko(_0x148217,{'listItemModels':[this[_0x5b1a03(0x1c5)],this[_0x5b1a03(0x1c8)]]}),this[_0x5b1a03(0x186)]['on'](_0x5b1a03(0x19d),()=>{const _0xf7b4e0=_0x5b1a03;this[_0xf7b4e0(0x19a)](_0xf7b4e0(0x19b));}),this[_0x5b1a03(0x186)]['on'](_0x5b1a03(0x184),()=>{const _0x52e568=_0x5b1a03;this[_0x52e568(0x19a)](_0x52e568(0x184));}),this[_0x5b1a03(0x186)]['on'](_0x5b1a03(0x1b1),()=>{const _0x4d30af=_0x5b1a03;this[_0x4d30af(0x19a)](_0x4d30af(0x1b1));}),this[_0x5b1a03(0x186)][_0x5b1a03(0x1bb)]({'label':_0x5b1a03(0x185),'tooltip':_0x15a69d(this[_0x5b1a03(0x194)],_0x5b1a03(0x1b2)),'withText':!0x0,'class':_0x5b1a03(0x19f),'balloonPanelClass':_0x5b1a03(0x182)}),this[_0x5b1a03(0x186)][_0x5b1a03(0x18a)](_0x5b1a03(0x1c2))['to'](this),this[_0x5b1a03(0x18e)]=this[_0x5b1a03(0x17f)]([this[_0x5b1a03(0x186)]]),this[_0x5b1a03(0x1a0)]({'tag':_0x5b1a03(0x1a5),'attributes':{'class':['ck',_0x5b1a03(0x19f),_0xa9bf35['if'](_0x5b1a03(0x1ac),_0x5b1a03(0x1af),_0x53809b=>!_0x53809b)]},'children':[this[_0x5b1a03(0x186)]]});}[_0x516ffc(0x1ae)](_0x279aab){const _0x3a7008=_0x516ffc,_0x27b195=this[_0x3a7008(0x194)];this[_0x3a7008(0x186)][_0x3a7008(0x1bb)]({'label':_0x15a69d(_0x27b195,_0x3a7008(0x1ca),_0x279aab),'tooltip':_0x15a69d(_0x27b195,_0x3a7008(0x1b2),_0x279aab)}),this[_0x3a7008(0x1c5)][_0x3a7008(0x1ba)]=_0x15a69d(_0x27b195,_0x3a7008(0x1a3),_0x279aab),this[_0x3a7008(0x1c8)][_0x3a7008(0x1ba)]=_0x15a69d(_0x27b195,_0x3a7008(0x197),_0x279aab);}}class Ko extends _0x3e8475{[_0x516ffc(0x1c0)];[_0x516ffc(0x17e)];[_0x516ffc(0x1bd)];[_0x516ffc(0x1bc)];constructor(_0xf7e26b,_0x558bce){const _0x320324=_0x516ffc;super(_0xf7e26b),this[_0x320324(0x17e)]=new _0x5eb328(this[_0x320324(0x194)]),this[_0x320324(0x1c0)]=new _0x5edc62(this[_0x320324(0x194)]),this[_0x320324(0x1c0)][_0x320324(0x1c6)](),this[_0x320324(0x1bb)](_0x320324(0x1c9),''),this[_0x320324(0x17e)][_0x320324(0x18a)](_0x320324(0x1ad))['to'](this,_0x320324(0x1c9)),this[_0x320324(0x1bd)]=this[_0x320324(0x19c)](_0x558bce[_0x320324(0x189)]),this[_0x320324(0x1c0)][_0x320324(0x188)](this[_0x320324(0x17e)]),this[_0x320324(0x17e)][_0x320324(0x1b4)][_0x320324(0x188)](this[_0x320324(0x1bd)]),this[_0x320324(0x1b6)][_0x320324(0x18b)](_0x320324(0x199)),this[_0x320324(0x1b6)][_0x320324(0x1bb)](_0x320324(0x199),_0x15a69d(this[_0x320324(0x194)],_0x320324(0x181))),this[_0x320324(0x1a6)](),this['on'](_0x320324(0x19d),()=>{const _0x473f56=_0x320324;this[_0x473f56(0x17e)][_0x473f56(0x1be)](),this[_0x473f56(0x1b6)][_0x473f56(0x1bf)]();}),this['on'](_0x320324(0x1a4),()=>{const _0x3e0f9e=_0x320324;this[_0x3e0f9e(0x17e)][_0x3e0f9e(0x1ac)]?(this[_0x3e0f9e(0x17e)][_0x3e0f9e(0x1be)](),this[_0x3e0f9e(0x1b6)][_0x3e0f9e(0x1bf)]()):(this[_0x3e0f9e(0x17e)][_0x3e0f9e(0x18f)]({'target':this[_0x3e0f9e(0x191)],'positions':[_0x3e0f9e(0x1b3)===this[_0x3e0f9e(0x194)][_0x3e0f9e(0x1b9)]?qo:zo]}),this[_0x3e0f9e(0x1bd)][_0x3e0f9e(0x1bf)]());}),_0x7ab566({'emitter':this[_0x320324(0x17e)],'callback':()=>{const _0x5f4c3b=_0x320324;this[_0x5f4c3b(0x17e)][_0x5f4c3b(0x1be)]();},'activator':()=>this[_0x320324(0x17e)][_0x320324(0x1ac)],'contextElements':()=>[this[_0x320324(0x191)],this[_0x320324(0x17e)][_0x320324(0x191)]]});}[_0x516ffc(0x19c)](_0x337a37){const _0x5bf8ff=_0x516ffc,_0x35975a=this[_0x5bf8ff(0x194)],_0x175129=new _0x4d9e15(_0x35975a);for(const _0x462e66 of _0x337a37){const _0x4267b0=new _0x2411f3(_0x35975a),_0x9b16e4=new _0x592944(_0x35975a);_0x9b16e4[_0x5bf8ff(0x18a)](...Object[_0x5bf8ff(0x1b5)](_0x462e66))['to'](_0x462e66),_0x9b16e4[_0x5bf8ff(0x187)](_0x5bf8ff(0x19d))['to'](_0x175129),_0x4267b0[_0x5bf8ff(0x18e)][_0x5bf8ff(0x188)](_0x9b16e4),_0x175129[_0x5bf8ff(0x190)][_0x5bf8ff(0x188)](_0x4267b0);}return _0x175129[_0x5bf8ff(0x190)][_0x5bf8ff(0x187)](_0x5bf8ff(0x19d))['to'](this),_0x175129['on'](_0x5bf8ff(0x19d),_0x477825=>{const _0xba5c9f=_0x5bf8ff,_0x431f31=_0x477825[_0xba5c9f(0x1b0)];this[_0xba5c9f(0x19a)](_0x431f31[_0xba5c9f(0x192)]),this[_0xba5c9f(0x17e)][_0xba5c9f(0x1be)](),this[_0xba5c9f(0x1b6)][_0xba5c9f(0x1bf)]();}),_0x175129;}[_0x516ffc(0x1a6)](){const _0x2478f0=_0x516ffc;this[_0x2478f0(0x1bc)]=new _0x21c117(),this[_0x2478f0(0x1bc)][_0x2478f0(0x1a2)](this[_0x2478f0(0x17e)][_0x2478f0(0x191)]),this[_0x2478f0(0x1bc)][_0x2478f0(0x1bb)](_0x2478f0(0x180),(_0x29d577,_0x48f84f)=>{const _0x1f7dfb=_0x2478f0;this[_0x1f7dfb(0x17e)][_0x1f7dfb(0x1be)](),this[_0x1f7dfb(0x1b6)][_0x1f7dfb(0x1bf)](),_0x48f84f();});}[_0x516ffc(0x1a7)](){const _0x1e38d3=_0x516ffc;super[_0x1e38d3(0x1a7)](),this[_0x1e38d3(0x1bc)][_0x1e38d3(0x1a7)](),this[_0x1e38d3(0x17e)][_0x1e38d3(0x1a7)](),this[_0x1e38d3(0x1c0)][_0x1e38d3(0x1a9)]();}}function qo(_0x1527cf){const _0x4b8930=_0x516ffc;return{'top':_0x1527cf[_0x4b8930(0x1c4)],'left':_0x1527cf[_0x4b8930(0x1aa)],'name':_0x4b8930(0x1c3),'config':{'withArrow':!0x1}};}function zo(_0x4fe647,_0x1408b0){const _0x48d8ef=_0x516ffc;return{'top':_0x4fe647[_0x48d8ef(0x1c4)],'left':_0x4fe647[_0x48d8ef(0x1aa)]-(_0x1408b0[_0x48d8ef(0x1b7)]-_0x4fe647[_0x48d8ef(0x1b7)]),'name':_0x48d8ef(0x1c3),'config':{'withArrow':!0x1}};}
23
+ const _0x57e2c4=_0x1d80;(function(_0x388a9e,_0x48b5cd){const _0xbd7e6=_0x1d80,_0x602f0=_0x388a9e();while(!![]){try{const _0x246759=parseInt(_0xbd7e6(0xe8))/0x1*(parseInt(_0xbd7e6(0xf9))/0x2)+parseInt(_0xbd7e6(0xde))/0x3+-parseInt(_0xbd7e6(0x10d))/0x4*(-parseInt(_0xbd7e6(0xf1))/0x5)+parseInt(_0xbd7e6(0x107))/0x6+parseInt(_0xbd7e6(0x11b))/0x7+-parseInt(_0xbd7e6(0x119))/0x8*(parseInt(_0xbd7e6(0x132))/0x9)+-parseInt(_0xbd7e6(0x110))/0xa*(parseInt(_0xbd7e6(0x104))/0xb);if(_0x246759===_0x48b5cd)break;else _0x602f0['push'](_0x602f0['shift']());}catch(_0x142447){_0x602f0['push'](_0x602f0['shift']());}}}(_0x1e63,0x9901d));import{KeystrokeHandler as _0x16479b}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x14dbba,BodyCollection as _0x11ac39,ButtonView as _0x28aa8b,clickOutsideHandler as _0x31c236,ListItemButtonView as _0x15ba81,ListItemView as _0x37a4c2,ListView as _0x21ef8c,SplitButtonView as _0x1af947,UIModel as _0x4463ff,View as _0x575270}from'ckeditor5/src/ui.js';import{IconCheck as _0x414bff,IconAddComment as _0x275645,IconDocumentWithLoupe as _0x5288e3}from'ckeditor5/src/icons.js';import{getTranslation as _0x335515}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x57e2c4(0xe9),_0x57e2c4(0xfc),_0x57e2c4(0xe7)];function _0x1d80(_0x58e7dd,_0x5904a7){const _0x1e63a7=_0x1e63();return _0x1d80=function(_0x1d800f,_0x1ee234){_0x1d800f=_0x1d800f-0xde;let _0x3a7c0a=_0x1e63a7[_0x1d800f];return _0x3a7c0a;},_0x1d80(_0x58e7dd,_0x5904a7);}function _0x1e63(){const _0x3caff3=['ck-ai-button-primary','listenTo','remove','_updateDropdownActions','_partsCount','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','destroy','source','_setUpKeystrokes','insertSuggestionModel','ck-hidden','open','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','slice','attachToDom','esc','width','actionName','detachFromDom','523773cRpgFc','ck-ai-chat__feed__ai-suggestion__actions','createCollection','balloonPanelView','change:isTrackChangesOn','keys','arrowView','content','element','locale','3157026bLrlnA','ltr','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','bindTemplate','focus','isEnabled','listView','keystrokeHandler','bind','showChangeInText','773rXCiLI','applySuggestion','arrowless','_createActionsDropdownOrButton','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','isVisible','map','items','_createActionsButton','732345MUhTua','updateLabels','unbind','children','ck-ai-chat__feed__ai-suggestion__actions__balloon','bodyCollection','tooltip','has','2828mXRFVM','label','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','insertSuggestion','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','left','filter','length','div','isTrackChangesOn','add','7343897hVcNvN','actionsButton','hide','1051878AZPVst','listItemModels','balloonPanelClass','class','button','_createActionsDropdown','8KpYzWF','bottom','pin','30opTZcQ','set','applySuggestionModel','_dropdownOriginalConfig','uiLanguageDirection','setTemplate','delegate','execute','_dropdownCurrentConfig','48PLyDoo','showChangeInTextModel','2556155xdTMdl','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','_setUpList','fire'];_0x1e63=function(){return _0x3caff3;};return _0x1e63();}export class AIChatFeedSuggestionItemActionsView extends _0x575270{[_0x57e2c4(0x105)];[_0x57e2c4(0xf4)];[_0x57e2c4(0x112)];[_0x57e2c4(0x11a)];[_0x57e2c4(0x128)];[_0x57e2c4(0x123)]=0x1;[_0x57e2c4(0x113)];[_0x57e2c4(0x118)];constructor(_0x130db8,_0x1b5a0e){const _0x140d67=_0x57e2c4;super(_0x130db8),this[_0x140d67(0x113)]=_0x1b5a0e||[...ACTIONS],this[_0x140d67(0x118)]=[...this[_0x140d67(0x113)]];const _0x4ee512=this[_0x140d67(0xe1)];this[_0x140d67(0x111)](_0x140d67(0xe3),!0x0),this[_0x140d67(0x111)](_0x140d67(0xed),!0x0),this[_0x140d67(0x112)]=new _0x4463ff({'label':An(_0x140d67(0xe9),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x414bff,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xe9)}),this[_0x140d67(0x11a)]=new _0x4463ff({'label':An(_0x140d67(0xe7),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x5288e3,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xe7)}),this[_0x140d67(0x128)]=new _0x4463ff({'label':An(_0x140d67(0xfc),_0x130db8,this[_0x140d67(0x123)]),'icon':_0x275645,'withText':!0x0,'type':_0x140d67(0x10b),'actionName':_0x140d67(0xfc)}),this[_0x140d67(0x105)]=this[_0x140d67(0xeb)](_0x130db8),this[_0x140d67(0xf4)]=this[_0x140d67(0x134)]([this[_0x140d67(0x105)]]),this[_0x140d67(0x115)]({'tag':_0x140d67(0x101),'attributes':{'class':['ck',_0x140d67(0x133),_0x4ee512['if'](_0x140d67(0xed),_0x140d67(0x129),_0x31e78d=>!_0x31e78d)]},'children':this[_0x140d67(0xf4)]}),this[_0x140d67(0x120)](this,_0x140d67(0x136),()=>{const _0x186466=_0x140d67;this[_0x186466(0x118)]=this[_0x186466(0x102)]?this[_0x186466(0x113)][_0x186466(0xff)](_0x5883b1=>_0x186466(0xe9)!==_0x5883b1):[...this[_0x186466(0x113)]],this[_0x186466(0x122)](_0x130db8);});}[_0x57e2c4(0x122)](_0x2f7704){const _0x9d244f=_0x57e2c4;this[_0x9d244f(0xf4)][_0x9d244f(0xf8)](this[_0x9d244f(0x105)])&&(this[_0x9d244f(0xf4)][_0x9d244f(0x121)](this[_0x9d244f(0x105)]),this[_0x9d244f(0x105)][_0x9d244f(0x125)]()),0x0!=this[_0x9d244f(0x118)][_0x9d244f(0x100)]&&(this[_0x9d244f(0x105)]=this[_0x9d244f(0xeb)](_0x2f7704),this[_0x9d244f(0xf4)][_0x9d244f(0x103)](this[_0x9d244f(0x105)]));}[_0x57e2c4(0xeb)](_0x4faf07){const _0x1f883f=_0x57e2c4,_0x14446b=0x1===this[_0x1f883f(0x118)][_0x1f883f(0x100)]?this[_0x1f883f(0xf0)](_0x4faf07):this[_0x1f883f(0x10c)](_0x4faf07);_0x14446b[_0x1f883f(0x111)]({'label':An(this[_0x1f883f(0x118)][0x0],_0x4faf07,this[_0x1f883f(0x123)]),'tooltip':Cn(this[_0x1f883f(0x118)][0x0],_0x4faf07,this[_0x1f883f(0x123)]),'withText':!0x0,'class':_0x1f883f(0x133)});for(const _0x2d55c2 of this[_0x1f883f(0x118)])_0x14446b['on'](_0x2d55c2,()=>{const _0x262aad=_0x1f883f;this[_0x262aad(0x11e)](_0x2d55c2);});return _0x14446b;}[_0x57e2c4(0xf0)](_0xda5208){const _0x4c3734=_0x57e2c4,_0x3647aa=new _0x28aa8b(_0xda5208);return _0x3647aa[_0x4c3734(0x111)]({'class':_0x4c3734(0x11f),'withText':!0x0}),_0x3647aa['on'](_0x4c3734(0x117),()=>{const _0xaaaa8b=_0x4c3734;_0x3647aa[_0xaaaa8b(0x11e)](this[_0xaaaa8b(0x118)][0x0]);}),_0x3647aa;}[_0x57e2c4(0x10c)](_0x36ce42){const _0x4804cd=_0x57e2c4,_0x1c133b=new In(_0x36ce42,{'listItemModels':this[_0x4804cd(0x118)][_0x4804cd(0xee)](_0x5ed829=>{const _0x897039=_0x4804cd;switch(_0x5ed829){case _0x897039(0xe9):return this[_0x897039(0x112)];case _0x897039(0xe7):return this[_0x897039(0x11a)];case _0x897039(0xfc):return this[_0x897039(0x128)];}})});return _0x1c133b[_0x4804cd(0x111)]({'label':An(this[_0x4804cd(0x118)][0x0],_0x36ce42,this[_0x4804cd(0x123)]),'tooltip':Cn(this[_0x4804cd(0x118)][0x0],_0x36ce42,this[_0x4804cd(0x123)]),'withText':!0x0,'class':_0x4804cd(0x133),'balloonPanelClass':_0x4804cd(0xf5)}),_0x1c133b[_0x4804cd(0xe6)](_0x4804cd(0xe3))['to'](this),_0x1c133b;}[_0x57e2c4(0xf2)](_0x58e76a){const _0x5533fc=_0x57e2c4,_0x930f25=this[_0x5533fc(0x13b)];this[_0x5533fc(0x123)]=_0x58e76a||this[_0x5533fc(0x123)],this[_0x5533fc(0x105)][_0x5533fc(0x111)]({'label':An(this[_0x5533fc(0x118)][0x0],_0x930f25,this[_0x5533fc(0x123)]),'tooltip':Cn(this[_0x5533fc(0x118)][0x0],_0x930f25,this[_0x5533fc(0x123)])}),this[_0x5533fc(0x112)][_0x5533fc(0xfa)]=An(_0x5533fc(0xe9),_0x930f25,this[_0x5533fc(0x123)]),this[_0x5533fc(0x11a)][_0x5533fc(0xfa)]=An(_0x5533fc(0xe7),_0x930f25,this[_0x5533fc(0x123)]),this[_0x5533fc(0x128)][_0x5533fc(0xfa)]=An(_0x5533fc(0xfc),_0x930f25,this[_0x5533fc(0x123)]);}}class In extends _0x1af947{[_0x57e2c4(0xf6)];[_0x57e2c4(0x135)];[_0x57e2c4(0xe4)];[_0x57e2c4(0xe5)];constructor(_0x296c06,_0x14b668){const _0x39f649=_0x57e2c4;super(_0x296c06),this[_0x39f649(0x135)]=new _0x14dbba(this[_0x39f649(0x13b)]),this[_0x39f649(0xf6)]=new _0x11ac39(this[_0x39f649(0x13b)]),this[_0x39f649(0xf6)][_0x39f649(0x12d)](),this[_0x39f649(0x111)](_0x39f649(0x109),''),this[_0x39f649(0x135)][_0x39f649(0xe6)](_0x39f649(0x10a))['to'](this,_0x39f649(0x109)),this[_0x39f649(0xe4)]=this[_0x39f649(0x11d)](_0x14b668[_0x39f649(0x108)][_0x39f649(0x12c)](0x1)),this[_0x39f649(0xf6)][_0x39f649(0x103)](this[_0x39f649(0x135)]),this[_0x39f649(0x135)][_0x39f649(0x139)][_0x39f649(0x103)](this[_0x39f649(0xe4)]),this[_0x39f649(0x138)][_0x39f649(0xf3)](_0x39f649(0xf7)),this[_0x39f649(0x138)][_0x39f649(0x111)](_0x39f649(0xf7),_0x335515(this[_0x39f649(0x13b)],_0x39f649(0x124))),this[_0x39f649(0x127)](),this['on'](_0x39f649(0x117),()=>{const _0x12f801=_0x39f649,_0x565958=_0x14b668[_0x12f801(0x108)][0x0][_0x12f801(0x130)];this[_0x12f801(0x11e)](_0x565958),this[_0x12f801(0x135)][_0x12f801(0x106)](),this[_0x12f801(0x138)][_0x12f801(0xe2)]();}),this['on'](_0x39f649(0x12a),()=>{const _0x4ca31c=_0x39f649;this[_0x4ca31c(0x135)][_0x4ca31c(0xed)]?(this[_0x4ca31c(0x135)][_0x4ca31c(0x106)](),this[_0x4ca31c(0x138)][_0x4ca31c(0xe2)]()):(this[_0x4ca31c(0x135)][_0x4ca31c(0x10f)]({'target':this[_0x4ca31c(0x13a)],'positions':[_0x4ca31c(0xdf)===this[_0x4ca31c(0x13b)][_0x4ca31c(0x114)]?Sn:wn]}),this[_0x4ca31c(0xe4)][_0x4ca31c(0xe2)]());}),_0x31c236({'emitter':this[_0x39f649(0x135)],'callback':()=>{const _0x4eced7=_0x39f649;this[_0x4eced7(0x135)][_0x4eced7(0x106)]();},'activator':()=>this[_0x39f649(0x135)][_0x39f649(0xed)],'contextElements':()=>[this[_0x39f649(0x13a)],this[_0x39f649(0x135)][_0x39f649(0x13a)]]});}[_0x57e2c4(0x11d)](_0xc15030){const _0x5a4e78=_0x57e2c4,_0x29f75e=this[_0x5a4e78(0x13b)],_0xdc34f2=new _0x21ef8c(_0x29f75e);for(const _0x4dbca8 of _0xc15030){const _0x270ec2=new _0x37a4c2(_0x29f75e),_0x13bf99=new _0x15ba81(_0x29f75e);_0x13bf99[_0x5a4e78(0xe6)](...Object[_0x5a4e78(0x137)](_0x4dbca8))['to'](_0x4dbca8),_0x13bf99[_0x5a4e78(0x116)](_0x5a4e78(0x117))['to'](_0xdc34f2),_0x270ec2[_0x5a4e78(0xf4)][_0x5a4e78(0x103)](_0x13bf99),_0xdc34f2[_0x5a4e78(0xef)][_0x5a4e78(0x103)](_0x270ec2);}return _0xdc34f2[_0x5a4e78(0xef)][_0x5a4e78(0x116)](_0x5a4e78(0x117))['to'](this),_0xdc34f2['on'](_0x5a4e78(0x117),_0x53c296=>{const _0x5e26e8=_0x5a4e78,_0x5c28ca=_0x53c296[_0x5e26e8(0x126)];this[_0x5e26e8(0x11e)](_0x5c28ca[_0x5e26e8(0x130)]),this[_0x5e26e8(0x135)][_0x5e26e8(0x106)](),this[_0x5e26e8(0x138)][_0x5e26e8(0xe2)]();}),_0xdc34f2;}[_0x57e2c4(0x127)](){const _0xe80577=_0x57e2c4;this[_0xe80577(0xe5)]=new _0x16479b(),this[_0xe80577(0xe5)][_0xe80577(0x120)](this[_0xe80577(0x135)][_0xe80577(0x13a)]),this[_0xe80577(0xe5)][_0xe80577(0x111)](_0xe80577(0x12e),(_0x433114,_0x3e26dd)=>{const _0x55d2ba=_0xe80577;this[_0x55d2ba(0x135)][_0x55d2ba(0x106)](),this[_0x55d2ba(0x138)][_0x55d2ba(0xe2)](),_0x3e26dd();});}[_0x57e2c4(0x125)](){const _0x39f0be=_0x57e2c4;super[_0x39f0be(0x125)](),this[_0x39f0be(0xe5)][_0x39f0be(0x125)](),this[_0x39f0be(0x135)][_0x39f0be(0x125)](),this[_0x39f0be(0xf6)][_0x39f0be(0x131)]();}}function Sn(_0xb93abd){const _0x354f74=_0x57e2c4;return{'top':_0xb93abd[_0x354f74(0x10e)],'left':_0xb93abd[_0x354f74(0xfe)],'name':_0x354f74(0xea),'config':{'withArrow':!0x1}};}function wn(_0x13861c,_0x57ffa1){const _0x4206f9=_0x57e2c4;return{'top':_0x13861c[_0x4206f9(0x10e)],'left':_0x13861c[_0x4206f9(0xfe)]-(_0x57ffa1[_0x4206f9(0x12f)]-_0x13861c[_0x4206f9(0x12f)]),'name':_0x4206f9(0xea),'config':{'withArrow':!0x1}};}function An(_0x423fa8,_0x18e40f,_0x16def5){const _0x34b8ba=_0x57e2c4;switch(_0x423fa8){case _0x34b8ba(0xe9):return _0x335515(_0x18e40f,_0x34b8ba(0xec),_0x16def5);case _0x34b8ba(0xe7):return _0x335515(_0x18e40f,_0x34b8ba(0xe0),_0x16def5);case _0x34b8ba(0xfc):return _0x335515(_0x18e40f,_0x34b8ba(0xfb),_0x16def5);}}function Cn(_0x3350f8,_0xc20865,_0x2a5996){const _0x17e185=_0x57e2c4;switch(_0x3350f8){case _0x17e185(0xe9):return _0x335515(_0xc20865,_0x17e185(0x11c),_0x2a5996);case _0x17e185(0xe7):return _0x335515(_0xc20865,_0x17e185(0xfd),_0x2a5996);case _0x17e185(0xfc):return _0x335515(_0xc20865,_0x17e185(0x12b),_0x2a5996);}}
@@ -8,6 +8,7 @@
8
8
  import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
10
10
  import { type AISuggestionContentPartDefinition } from '../../../aicore/utils/getsuggestionpartsfromreply.js';
11
+ import { type AISuggestionActionName } from './aichatfeedsuggestionitemactionsview.js';
11
12
  import { type AIReplySource } from '../../../aicore/model/aireply.js';
12
13
  import { type AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
13
14
  /**
@@ -22,6 +23,10 @@ export declare class AIChatFeedSuggestionItemView extends AIChatFeedItemView {
22
23
  * @inheritDoc
23
24
  */
24
25
  options: AIChatFeedSuggestionItemViewOptions;
26
+ /**
27
+ * @observable
28
+ */
29
+ isTrackChangesOn: boolean;
25
30
  /**
26
31
  * @inheritDoc
27
32
  */
@@ -71,4 +76,8 @@ export interface AIChatFeedSuggestionItemViewOptions extends AIChatItemViewOptio
71
76
  * A flag indicating whether the suggestion should show the diff or final suggestion.
72
77
  */
73
78
  showDiff: boolean;
79
+ /**
80
+ * The configuration of the advanced reply dropdown in the AI chat feed.
81
+ */
82
+ dropdownConfig?: Array<AISuggestionActionName>;
74
83
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xa703d9=_0x47ea;function _0x47ea(_0x293459,_0x3a72d4){var _0x4755a0=_0x4755();return _0x47ea=function(_0x47ea10,_0x367a27){_0x47ea10=_0x47ea10-0x7c;var _0x9a6bb5=_0x4755a0[_0x47ea10];return _0x9a6bb5;},_0x47ea(_0x293459,_0x3a72d4);}function _0x4755(){var _0x333712=['areActionsDisabled','337563yhWLPD','6HSZUvX','applySuggestion','629368afTPSo','actionsView','showChangeInText','isVisible','bind','insertSuggestion','isEnabled','2421433oHpimm','fire','872580JZXPhf','updateLabels','ck-ai-chat__feed__ai-suggestion','markAsDone','toggleSuggestionDisplayMode','hasPendingParts','partsCount','bodyView','children','rejectSuggestion','getPartView','like','updatePartState','containerView','3716448Nwbfjg','updateSources','145188LIcTwq','1402002qWKCdF','130tHBgbu','mouseOverSuggestion','mouseLeaveSuggestion','dislike','extendTemplate','70jBjoTe','addMany','options','showDiff','updateContent','hasNonEmptyParts'];_0x4755=function(){return _0x333712;};return _0x4755();}(function(_0x2689a2,_0xcf267c){var _0x5e93c0=_0x47ea,_0x4373a3=_0x2689a2();while(!![]){try{var _0x3f049=parseInt(_0x5e93c0(0x8c))/0x1+parseInt(_0x5e93c0(0x83))/0x2+parseInt(_0x5e93c0(0x9d))/0x3+parseInt(_0x5e93c0(0x9c))/0x4*(-parseInt(_0x5e93c0(0x9e))/0x5)+-parseInt(_0x5e93c0(0x81))/0x6*(parseInt(_0x5e93c0(0x8a))/0x7)+parseInt(_0x5e93c0(0x9a))/0x8+parseInt(_0x5e93c0(0x80))/0x9*(-parseInt(_0x5e93c0(0xa3))/0xa);if(_0x3f049===_0xcf267c)break;else _0x4373a3['push'](_0x4373a3['shift']());}catch(_0x202e12){_0x4373a3['push'](_0x4373a3['shift']());}}}(_0x4755,0x8a6b4));import{AIChatFeedItemView as _0x518962}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x3ceefd}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x15d503}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x518962{[_0xa703d9(0x99)];[_0xa703d9(0x84)];constructor(_0x49530,_0x146943){var _0x1e81d7=_0xa703d9;super(_0x146943),this[_0x1e81d7(0x99)]=new _0x3ceefd(_0x49530,{'showDiff':_0x146943[_0x1e81d7(0x7c)],'areActionsDisabled':_0x146943[_0x1e81d7(0x7f)]}),this[_0x1e81d7(0x99)]['on'](_0x1e81d7(0x90),(_0x58879c,_0xb3e4fe)=>{var _0x3c2783=_0x1e81d7;this[_0x3c2783(0x8b)](_0x3c2783(0x90),{'replyId':this[_0x3c2783(0xa5)]['id'],'showDiff':_0xb3e4fe[_0x3c2783(0x7c)]});}),this[_0x1e81d7(0x99)]['on'](_0x1e81d7(0x97),()=>{var _0x3043b7=_0x1e81d7;this[_0x3043b7(0x8b)](_0x3043b7(0x97),{'replyId':this[_0x3043b7(0xa5)]['id']});}),this[_0x1e81d7(0x99)]['on'](_0x1e81d7(0xa1),()=>{var _0x1ee5f1=_0x1e81d7;this[_0x1ee5f1(0x8b)](_0x1ee5f1(0xa1),{'replyId':this[_0x1ee5f1(0xa5)]['id']});}),this[_0x1e81d7(0x99)]['on'](_0x1e81d7(0x85),(_0x827003,{index:_0x540ffb})=>{var _0x202d9d=_0x1e81d7;this[_0x202d9d(0x8b)](_0x202d9d(0x85),{'replyId':this[_0x202d9d(0xa5)]['id'],'partIndex':_0x540ffb});}),this[_0x1e81d7(0x99)]['on'](_0x1e81d7(0x88),(_0x533abc,{index:_0x46e274})=>{var _0x25eb7e=_0x1e81d7;this[_0x25eb7e(0x8b)](_0x25eb7e(0x88),{'replyId':this[_0x25eb7e(0xa5)]['id'],'partIndex':_0x46e274});}),this[_0x1e81d7(0x99)]['on'](_0x1e81d7(0x95),(_0x4a2cea,{index:_0x89b1e9})=>{var _0x2d0854=_0x1e81d7;this[_0x2d0854(0x8b)](_0x2d0854(0x95),{'replyId':this[_0x2d0854(0xa5)]['id'],'partIndex':_0x89b1e9});}),this[_0x1e81d7(0x99)]['on'](_0x1e81d7(0x9f),(_0x45e3c4,{index:_0x5689ba})=>{var _0x448746=_0x1e81d7;this[_0x448746(0x8b)](_0x448746(0x9f),{'replyId':this[_0x448746(0xa5)]['id'],'partIndex':_0x5689ba});}),this[_0x1e81d7(0x99)]['on'](_0x1e81d7(0xa0),(_0x3eb3f3,{index:_0x5cf1c2})=>{var _0x3cd2cc=_0x1e81d7;this[_0x3cd2cc(0x8b)](_0x3cd2cc(0xa0),{'replyId':this[_0x3cd2cc(0xa5)]['id'],'partIndex':_0x5cf1c2});}),this[_0x1e81d7(0x84)]=new _0x15d503(_0x49530),this[_0x1e81d7(0x84)]['on'](_0x1e81d7(0x85),()=>{var _0xd86d1f=_0x1e81d7;this[_0xd86d1f(0x8b)](_0xd86d1f(0x85),{'replyId':this[_0xd86d1f(0xa5)]['id']});}),this[_0x1e81d7(0x84)]['on'](_0x1e81d7(0x88),()=>{var _0x81ce38=_0x1e81d7;this[_0x81ce38(0x8b)](_0x81ce38(0x88),{'replyId':this[_0x81ce38(0xa5)]['id']});}),this[_0x1e81d7(0x84)]['on'](_0x1e81d7(0x82),()=>{var _0x37bfdf=_0x1e81d7;this[_0x37bfdf(0x8b)](_0x37bfdf(0x82),{'replyId':this[_0x37bfdf(0xa5)]['id']});}),_0x146943[_0x1e81d7(0x7f)]?this[_0x1e81d7(0x84)][_0x1e81d7(0x89)]=!0x1:this[_0x1e81d7(0x84)][_0x1e81d7(0x87)](_0x1e81d7(0x89))['to'](this[_0x1e81d7(0x99)][_0x1e81d7(0x93)],_0x1e81d7(0x91)),this[_0x1e81d7(0x94)][_0x1e81d7(0xa4)]([this[_0x1e81d7(0x99)],this[_0x1e81d7(0x84)]]),this[_0x1e81d7(0xa2)]({'attributes':{'class':[_0x1e81d7(0x8e)]}});}async[_0xa703d9(0x7d)](_0x4e2147){var _0x42f366=_0xa703d9;await this[_0x42f366(0x99)][_0x42f366(0x7d)](_0x4e2147),this[_0x42f366(0x84)][_0x42f366(0x8d)](this[_0x42f366(0x99)][_0x42f366(0x93)][_0x42f366(0x92)]);}[_0xa703d9(0x98)](_0x40f420,_0x2790e0){var _0x2f19a7=_0xa703d9;this[_0x2f19a7(0x99)][_0x2f19a7(0x93)][_0x2f19a7(0x98)](_0x40f420,_0x2790e0);}[_0xa703d9(0x9b)](_0x80e36b){var _0x46c643=_0xa703d9;this[_0x46c643(0x99)][_0x46c643(0x9b)](_0x80e36b);}[_0xa703d9(0x96)](_0x16c8e8){var _0x1e2250=_0xa703d9;return this[_0x1e2250(0x99)][_0x1e2250(0x93)][_0x1e2250(0x96)](_0x16c8e8);}[_0xa703d9(0x8f)](){var _0x50296a=_0xa703d9;super[_0x50296a(0x8f)](),this[_0x50296a(0x99)][_0x50296a(0x8f)](),this[_0x50296a(0x84)][_0x50296a(0x86)]=this[_0x50296a(0x99)][_0x50296a(0x93)][_0x50296a(0x7e)];}}
23
+ function _0x4bc4(_0x7dca98,_0xe3d182){var _0x1d514a=_0x1d51();return _0x4bc4=function(_0x4bc4f3,_0x15abae){_0x4bc4f3=_0x4bc4f3-0x91;var _0x1b86d1=_0x1d514a[_0x4bc4f3];return _0x1b86d1;},_0x4bc4(_0x7dca98,_0xe3d182);}var _0x6c4f86=_0x4bc4;(function(_0x5b8021,_0x3d9968){var _0x2a262c=_0x4bc4,_0x1b7708=_0x5b8021();while(!![]){try{var _0x559abd=-parseInt(_0x2a262c(0xa3))/0x1+parseInt(_0x2a262c(0xb3))/0x2*(-parseInt(_0x2a262c(0x95))/0x3)+-parseInt(_0x2a262c(0xad))/0x4+parseInt(_0x2a262c(0xa2))/0x5+-parseInt(_0x2a262c(0xa5))/0x6+parseInt(_0x2a262c(0xa4))/0x7+parseInt(_0x2a262c(0xaf))/0x8*(parseInt(_0x2a262c(0xb2))/0x9);if(_0x559abd===_0x3d9968)break;else _0x1b7708['push'](_0x1b7708['shift']());}catch(_0x138ae0){_0x1b7708['push'](_0x1b7708['shift']());}}}(_0x1d51,0x71174));import{AIChatFeedItemView as _0x1c1b71}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x5d48cf}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x1d51(){var _0x1bb600=['showChangeInText','updateContent','331311ngGVbi','extendTemplate','actionsView','areActionsDisabled','isTrackChangesOn','ck-ai-chat__feed__ai-suggestion','children','rejectSuggestion','dropdownConfig','dislike','options','hasNonEmptyParts','insertSuggestion','4577325YcpHYG','632827hacTfF','391419JtMNJR','5539140ajSbMd','getPartView','toggleSuggestionDisplayMode','hasPendingParts','mouseOverSuggestion','updateSources','showDiff','updateLabels','1398512amdmBw','markAsDone','1578576DfTdFe','mouseLeaveSuggestion','isEnabled','99MhfmjT','14GWQxaF','isVisible','applySuggestion','like','partsCount','bind','addMany','updatePartState','bodyView','containerView','fire'];_0x1d51=function(){return _0x1bb600;};return _0x1d51();}import{AIChatFeedSuggestionItemActionsView as _0x18c055}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x1c1b71{[_0x6c4f86(0x91)];[_0x6c4f86(0x97)];constructor(_0x1bb664,_0x4b5c6e){var _0x2752b1=_0x6c4f86;super(_0x4b5c6e),this[_0x2752b1(0x91)]=new _0x5d48cf(_0x1bb664,{'showDiff':_0x4b5c6e[_0x2752b1(0xab)],'areActionsDisabled':_0x4b5c6e[_0x2752b1(0x98)]}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa7),(_0x580e2c,_0x446c80)=>{var _0x529b55=_0x2752b1;this[_0x529b55(0x92)](_0x529b55(0xa7),{'replyId':this[_0x529b55(0x9f)]['id'],'showDiff':_0x446c80[_0x529b55(0xab)]});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xb6),()=>{var _0x552647=_0x2752b1;this[_0x552647(0x92)](_0x552647(0xb6),{'replyId':this[_0x552647(0x9f)]['id']});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x9e),()=>{var _0x3ea189=_0x2752b1;this[_0x3ea189(0x92)](_0x3ea189(0x9e),{'replyId':this[_0x3ea189(0x9f)]['id']});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x93),(_0x3e0ecb,{index:_0x1023df})=>{var _0x3b48a0=_0x2752b1;this[_0x3b48a0(0x92)](_0x3b48a0(0x93),{'replyId':this[_0x3b48a0(0x9f)]['id'],'partIndex':_0x1023df});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa1),(_0x10d406,{index:_0x4b5e01})=>{var _0x2b8bec=_0x2752b1;this[_0x2b8bec(0x92)](_0x2b8bec(0xa1),{'replyId':this[_0x2b8bec(0x9f)]['id'],'partIndex':_0x4b5e01});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0x9c),(_0x5aa73b,{index:_0x5682ba})=>{var _0x22098a=_0x2752b1;this[_0x22098a(0x92)](_0x22098a(0x9c),{'replyId':this[_0x22098a(0x9f)]['id'],'partIndex':_0x5682ba});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xa9),(_0x3f2d09,{index:_0x2d71bc})=>{var _0x16e713=_0x2752b1;this[_0x16e713(0x92)](_0x16e713(0xa9),{'replyId':this[_0x16e713(0x9f)]['id'],'partIndex':_0x2d71bc});}),this[_0x2752b1(0x91)]['on'](_0x2752b1(0xb0),(_0x34fd53,{index:_0x366020})=>{var _0xc05c28=_0x2752b1;this[_0xc05c28(0x92)](_0xc05c28(0xb0),{'replyId':this[_0xc05c28(0x9f)]['id'],'partIndex':_0x366020});}),this[_0x2752b1(0x97)]=new _0x18c055(_0x1bb664,this[_0x2752b1(0x9f)][_0x2752b1(0x9d)]),this[_0x2752b1(0x97)][_0x2752b1(0xb8)](_0x2752b1(0x99))['to'](this,_0x2752b1(0x99)),this[_0x2752b1(0x97)]['on'](_0x2752b1(0x93),()=>{var _0x1fd568=_0x2752b1;this[_0x1fd568(0x92)](_0x1fd568(0x93),{'replyId':this[_0x1fd568(0x9f)]['id']});}),this[_0x2752b1(0x97)]['on'](_0x2752b1(0xa1),()=>{var _0x99f810=_0x2752b1;this[_0x99f810(0x92)](_0x99f810(0xa1),{'replyId':this[_0x99f810(0x9f)]['id']});}),this[_0x2752b1(0x97)]['on'](_0x2752b1(0xb5),()=>{var _0x39cba7=_0x2752b1;this[_0x39cba7(0x92)](_0x39cba7(0xb5),{'replyId':this[_0x39cba7(0x9f)]['id']});}),_0x4b5c6e[_0x2752b1(0x98)]?this[_0x2752b1(0x97)][_0x2752b1(0xb1)]=!0x1:this[_0x2752b1(0x97)][_0x2752b1(0xb8)](_0x2752b1(0xb1))['to'](this[_0x2752b1(0x91)][_0x2752b1(0xbb)],_0x2752b1(0xa8)),this[_0x2752b1(0x9b)][_0x2752b1(0xb9)]([this[_0x2752b1(0x91)],this[_0x2752b1(0x97)]]),this[_0x2752b1(0x96)]({'attributes':{'class':[_0x2752b1(0x9a)]}});}async[_0x6c4f86(0x94)](_0x423597){var _0xd2f056=_0x6c4f86;await this[_0xd2f056(0x91)][_0xd2f056(0x94)](_0x423597),this[_0xd2f056(0x97)][_0xd2f056(0xac)](this[_0xd2f056(0x91)][_0xd2f056(0xbb)][_0xd2f056(0xb7)]);}[_0x6c4f86(0xba)](_0x3c7472,_0x4dc8ac){var _0x28d1e6=_0x6c4f86;this[_0x28d1e6(0x91)][_0x28d1e6(0xbb)][_0x28d1e6(0xba)](_0x3c7472,_0x4dc8ac);}[_0x6c4f86(0xaa)](_0xd6e458){var _0x4b559b=_0x6c4f86;this[_0x4b559b(0x91)][_0x4b559b(0xaa)](_0xd6e458);}[_0x6c4f86(0xa6)](_0x3a2f5f){var _0x22ba4a=_0x6c4f86;return this[_0x22ba4a(0x91)][_0x22ba4a(0xbb)][_0x22ba4a(0xa6)](_0x3a2f5f);}[_0x6c4f86(0xae)](){var _0x521546=_0x6c4f86;super[_0x521546(0xae)](),this[_0x521546(0x91)][_0x521546(0xae)](),this[_0x521546(0x97)][_0x521546(0xb4)]=this[_0x521546(0x91)][_0x521546(0xbb)][_0x521546(0xa0)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x9800c3=_0x8462;function _0x1b37(){var _0x58c166=['_contextChipsView','_createMessageContentView','51290yKffug','innerHTML','_messageContentView','_locale','options','_createContextChipsView','942gwoqoe','contextItems','4421169usMSFj','_bodyCollection','8clXfNc','children','render','add','ck-ai-chat__feed__context-chips','hidden','32675MJXHqO','6HysdaQ','markAsDone','filter','7206227ztMOsc','ck-ai-chat__feed__message-content','ck-ai-chat__feed__user-message','477178GpapVq','div','extendTemplate','element','10243024aborcA','length','1705oiKTyE','initialContent','setTemplate','880288VQezSi'];_0x1b37=function(){return _0x58c166;};return _0x1b37();}(function(_0x33e496,_0x4431c6){var _0x359456=_0x8462,_0xc84cd0=_0x33e496();while(!![]){try{var _0x417d69=parseInt(_0x359456(0xa5))/0x1*(parseInt(_0x359456(0x98))/0x2)+parseInt(_0x359456(0x9f))/0x3*(-parseInt(_0x359456(0xae))/0x4)+parseInt(_0x359456(0x9e))/0x5*(parseInt(_0x359456(0x94))/0x6)+parseInt(_0x359456(0xa2))/0x7+-parseInt(_0x359456(0xa9))/0x8+-parseInt(_0x359456(0x96))/0x9+-parseInt(_0x359456(0xb1))/0xa*(parseInt(_0x359456(0xab))/0xb);if(_0x417d69===_0x4431c6)break;else _0xc84cd0['push'](_0xc84cd0['shift']());}catch(_0x511904){_0xc84cd0['push'](_0xc84cd0['shift']());}}}(_0x1b37,0xe9be2));import{AIChatFeedItemView as _0x3d3500}from'./aichatfeeditemview.js';function _0x8462(_0x5dfd92,_0x14cea7){var _0x1b3734=_0x1b37();return _0x8462=function(_0x846231,_0x40b622){_0x846231=_0x846231-0x93;var _0x1870e8=_0x1b3734[_0x846231];return _0x1870e8;},_0x8462(_0x5dfd92,_0x14cea7);}import{AIChatFeedContextChipsView as _0x1880bf}from'./aichatfeedcontextchipsview.js';import{View as _0x49ff6f}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x3d3500{[_0x9800c3(0xaf)]=null;[_0x9800c3(0xb4)];[_0x9800c3(0x97)];[_0x9800c3(0xb3)];constructor(_0x19c902,_0x3f3be9,_0x1fa26d){var _0x146224=_0x9800c3;super(_0x3f3be9),this[_0x146224(0xb4)]=_0x19c902,this[_0x146224(0x97)]=_0x1fa26d,this[_0x146224(0x93)](),this[_0x146224(0xb0)](),this[_0x146224(0xa7)]({'attributes':{'class':[_0x146224(0xa4)]}});}[_0x9800c3(0x93)](){var _0x44e3a6=_0x9800c3;this[_0x44e3a6(0xb5)][_0x44e3a6(0x95)]&&this[_0x44e3a6(0xb5)][_0x44e3a6(0x95)][_0x44e3a6(0xaa)]>0x0&&(this[_0x44e3a6(0xaf)]=new _0x1880bf(this[_0x44e3a6(0xb4)],this[_0x44e3a6(0xb5)][_0x44e3a6(0x95)][_0x44e3a6(0xa1)](_0x5f5d42=>!_0x5f5d42[_0x44e3a6(0x9d)]),this[_0x44e3a6(0x97)]),this[_0x44e3a6(0xaf)][_0x44e3a6(0xa7)]({'attributes':{'class':_0x44e3a6(0x9c)}}),this[_0x44e3a6(0x99)][_0x44e3a6(0x9b)](this[_0x44e3a6(0xaf)]));}[_0x9800c3(0xb0)](){var _0xef8f25=_0x9800c3;this[_0xef8f25(0xb3)]=new _0x49ff6f(this[_0xef8f25(0xb4)]),this[_0xef8f25(0xb3)][_0xef8f25(0xad)]({'tag':_0xef8f25(0xa6),'attributes':{'class':_0xef8f25(0xa3)}}),this[_0xef8f25(0x99)][_0xef8f25(0x9b)](this[_0xef8f25(0xb3)]);}[_0x9800c3(0x9a)](){var _0x531192=_0x9800c3;super[_0x531192(0x9a)](),this[_0x531192(0xb3)][_0x531192(0xa8)][_0x531192(0xb2)]=this[_0x531192(0xb5)][_0x531192(0xac)],this[_0x531192(0xa0)]();}}
23
+ function _0x4810(_0x39b6af,_0x18d312){var _0x4ebe79=_0x4ebe();return _0x4810=function(_0x481038,_0x223509){_0x481038=_0x481038-0xf5;var _0x346ced=_0x4ebe79[_0x481038];return _0x346ced;},_0x4810(_0x39b6af,_0x18d312);}var _0x520251=_0x4810;(function(_0x36ed0b,_0x531489){var _0x79a894=_0x4810,_0x542e08=_0x36ed0b();while(!![]){try{var _0x51382a=parseInt(_0x79a894(0x114))/0x1*(-parseInt(_0x79a894(0x10c))/0x2)+-parseInt(_0x79a894(0x116))/0x3*(parseInt(_0x79a894(0x105))/0x4)+parseInt(_0x79a894(0xfe))/0x5*(-parseInt(_0x79a894(0xfc))/0x6)+parseInt(_0x79a894(0x10a))/0x7+parseInt(_0x79a894(0xf5))/0x8*(-parseInt(_0x79a894(0x110))/0x9)+-parseInt(_0x79a894(0x107))/0xa+parseInt(_0x79a894(0x10b))/0xb;if(_0x51382a===_0x531489)break;else _0x542e08['push'](_0x542e08['shift']());}catch(_0x1f02ba){_0x542e08['push'](_0x542e08['shift']());}}}(_0x4ebe,0x97bda));function _0x4ebe(){var _0xa277f7=['278343XWkIkP','add','ck-ai-chat__feed__message-content','innerHTML','55oAhNOV','length','887781ozrqNx','children','80hEdVWb','render','div','markAsDone','_contextChipsView','_bodyCollection','_createMessageContentView','494826SbwaVY','ck-ai-chat__feed__context-chips','20QQloUi','setTemplate','contextItems','extendTemplate','ck-ai-chat__feed__user-message','filter','_messageContentView','12zFAxAP','element','3525710RJBCvE','_locale','_createContextChipsView','3030650GwcJHf','26159936aWVqCr','11276hSqvUy','hidden','options','initialContent'];_0x4ebe=function(){return _0xa277f7;};return _0x4ebe();}import{AIChatFeedItemView as _0x51ac4a}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x31e205}from'./aichatfeedcontextchipsview.js';import{View as _0x551cd6}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x51ac4a{[_0x520251(0xf9)]=null;[_0x520251(0x108)];[_0x520251(0xfa)];[_0x520251(0x104)];constructor(_0x5ec082,_0x4cc64e,_0x2959a1){var _0x2a3049=_0x520251;super(_0x4cc64e),this[_0x2a3049(0x108)]=_0x5ec082,this[_0x2a3049(0xfa)]=_0x2959a1,this[_0x2a3049(0x109)](),this[_0x2a3049(0xfb)](),this[_0x2a3049(0x101)]({'attributes':{'class':[_0x2a3049(0x102)]}});}[_0x520251(0x109)](){var _0x568832=_0x520251;this[_0x568832(0x10e)][_0x568832(0x100)]&&this[_0x568832(0x10e)][_0x568832(0x100)][_0x568832(0x115)]>0x0&&(this[_0x568832(0xf9)]=new _0x31e205(this[_0x568832(0x108)],this[_0x568832(0x10e)][_0x568832(0x100)][_0x568832(0x103)](_0x476049=>!_0x476049[_0x568832(0x10d)]),this[_0x568832(0xfa)]),this[_0x568832(0xf9)][_0x568832(0x101)]({'attributes':{'class':_0x568832(0xfd)}}),this[_0x568832(0x117)][_0x568832(0x111)](this[_0x568832(0xf9)]));}[_0x520251(0xfb)](){var _0x42d50e=_0x520251;this[_0x42d50e(0x104)]=new _0x551cd6(this[_0x42d50e(0x108)]),this[_0x42d50e(0x104)][_0x42d50e(0xff)]({'tag':_0x42d50e(0xf7),'attributes':{'class':_0x42d50e(0x112)}}),this[_0x42d50e(0x117)][_0x42d50e(0x111)](this[_0x42d50e(0x104)]);}[_0x520251(0xf6)](){var _0x1f7285=_0x520251;super[_0x1f7285(0xf6)](),this[_0x1f7285(0x104)][_0x1f7285(0x106)][_0x1f7285(0x113)]=this[_0x1f7285(0x10e)][_0x1f7285(0x10f)],this[_0x1f7285(0xf8)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1bcc(){const _0x24cec0=['removeContextItem','43977DeoJuK','262610BXTJLT','startConversation','1301629dqxcZl','loadSourceResources','570yLmFFe','resizeTabs','addUrlToContext','1ugaqLi','1361046gUwbNC','abortPromptStream','toggleWebSearch','addFileToContext','toggleReasoning','selectModel','38286HlGbMY','102082wkWDvo','addResourceToContext','addDocumentToContext','1658512NtEVKR','sendUserMessage','4JXwMCe'];_0x1bcc=function(){return _0x24cec0;};return _0x1bcc();}function _0x3a10(_0x4d7909,_0x34a3e4){const _0x1bcc22=_0x1bcc();return _0x3a10=function(_0x3a107e,_0x48e226){_0x3a107e=_0x3a107e-0x84;let _0x476c00=_0x1bcc22[_0x3a107e];return _0x476c00;},_0x3a10(_0x4d7909,_0x34a3e4);}const _0x2748f6=_0x3a10;(function(_0x2ae36c,_0xea63bf){const _0x4e3c84=_0x3a10,_0x2ed0a9=_0x2ae36c();while(!![]){try{const _0x5b8fa3=parseInt(_0x4e3c84(0x99))/0x1*(parseInt(_0x4e3c84(0x8a))/0x2)+-parseInt(_0x4e3c84(0x91))/0x3+-parseInt(_0x4e3c84(0x8f))/0x4*(-parseInt(_0x4e3c84(0x92))/0x5)+-parseInt(_0x4e3c84(0x9a))/0x6+-parseInt(_0x4e3c84(0x94))/0x7+parseInt(_0x4e3c84(0x8d))/0x8+-parseInt(_0x4e3c84(0x89))/0x9*(-parseInt(_0x4e3c84(0x96))/0xa);if(_0x5b8fa3===_0xea63bf)break;else _0x2ed0a9['push'](_0x2ed0a9['shift']());}catch(_0x5b44ad){_0x2ed0a9['push'](_0x2ed0a9['shift']());}}}(_0x1bcc,0x1ebd4));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x549f06}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x549f06,_0x2748f6(0x93),_0x2748f6(0x97),_0x2748f6(0x8e),_0x2748f6(0x84),_0x2748f6(0x8c),_0x2748f6(0x86),_0x2748f6(0x98),_0x2748f6(0x8b),_0x2748f6(0x90),_0x2748f6(0x95),_0x2748f6(0x85),_0x2748f6(0x87),_0x2748f6(0x88)];
23
+ const _0x15cb60=_0x329c;(function(_0x1d98ff,_0x14a8cc){const _0x5669fb=_0x329c,_0xd2a84e=_0x1d98ff();while(!![]){try{const _0x20a6bb=parseInt(_0x5669fb(0x174))/0x1*(-parseInt(_0x5669fb(0x176))/0x2)+-parseInt(_0x5669fb(0x188))/0x3+parseInt(_0x5669fb(0x17b))/0x4*(-parseInt(_0x5669fb(0x178))/0x5)+parseInt(_0x5669fb(0x187))/0x6*(parseInt(_0x5669fb(0x18a))/0x7)+parseInt(_0x5669fb(0x180))/0x8+-parseInt(_0x5669fb(0x17a))/0x9*(-parseInt(_0x5669fb(0x17e))/0xa)+parseInt(_0x5669fb(0x179))/0xb*(parseInt(_0x5669fb(0x17c))/0xc);if(_0x20a6bb===_0x14a8cc)break;else _0xd2a84e['push'](_0xd2a84e['shift']());}catch(_0x1cde02){_0xd2a84e['push'](_0xd2a84e['shift']());}}}(_0x1004,0x4b0e5));function _0x329c(_0x238c2e,_0x59d977){const _0x1004ad=_0x1004();return _0x329c=function(_0x329c0a,_0x321fef){_0x329c0a=_0x329c0a-0x172;let _0x4c0aad=_0x1004ad[_0x329c0a];return _0x4c0aad;},_0x329c(_0x238c2e,_0x59d977);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x60b96e}from'../../aicore/utils/eventnames.js';function _0x1004(){const _0x223b94=['removeContextItem','sendUserMessage','addDocumentToContext','addFileToContext','selectModel','addResourceToContext','1086tZZvSk','1426131LLoUxi','startConversation','6867ogIMAJ','toggleWebSearch','loadSourceResources','165891ukFhcb','toggleReasoning','2lOkLZZ','resizeTabs','86425oCUCoy','6479lVJkVc','1136907fSxppW','92udVazd','18984FxHWUD','addUrlToContext','10FEsEUl','abortPromptStream','884560UqRxmd'];_0x1004=function(){return _0x223b94;};return _0x1004();}export const AI_CHAT_UI_EVENT_NAMES=[..._0x60b96e,_0x15cb60(0x189),_0x15cb60(0x177),_0x15cb60(0x182),_0x15cb60(0x17f),_0x15cb60(0x183),_0x15cb60(0x184),_0x15cb60(0x17d),_0x15cb60(0x186),_0x15cb60(0x181),_0x15cb60(0x173),_0x15cb60(0x172),_0x15cb60(0x175),_0x15cb60(0x185)];
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x36e8(_0x17e8c9,_0x1d27ba){const _0xda5cd8=_0xda5c();return _0x36e8=function(_0x36e819,_0x461b00){_0x36e819=_0x36e819-0x11c;let _0x5343ba=_0xda5cd8[_0x36e819];return _0x5343ba;},_0x36e8(_0x17e8c9,_0x1d27ba);}const _0x7606d=_0x36e8;(function(_0x165a9b,_0x4f1599){const _0x2ee058=_0x36e8,_0x2ed4f1=_0x165a9b();while(!![]){try{const _0x36081e=-parseInt(_0x2ee058(0x123))/0x1*(-parseInt(_0x2ee058(0x136))/0x2)+-parseInt(_0x2ee058(0x133))/0x3+parseInt(_0x2ee058(0x11f))/0x4+parseInt(_0x2ee058(0x12f))/0x5*(-parseInt(_0x2ee058(0x12c))/0x6)+parseInt(_0x2ee058(0x127))/0x7+parseInt(_0x2ee058(0x11c))/0x8+-parseInt(_0x2ee058(0x12e))/0x9;if(_0x36081e===_0x4f1599)break;else _0x2ed4f1['push'](_0x2ed4f1['shift']());}catch(_0x3bac52){_0x2ed4f1['push'](_0x2ed4f1['shift']());}}}(_0xda5c,0xb9822));import{EmitterMixin as _0x63c5c3}from'ckeditor5/src/utils.js';function _0xda5c(){const _0x5eb6e7=['reject','_abortController','_queueEmpty','7196644SwOGrr','abort','once','_processQueue','createTask','42tkYTcO','queue','17489124xGbVOS','198340hEPiZt','fire','push','resolve','747729bYYeTb','callback','signal','14sriGsU','length','1835544hSnuyw','shift','completePromise','2551620JxYMJo','enqueue','isProcessing','queueEmptyPromise','190651SGtyqh'];_0xda5c=function(){return _0x5eb6e7;};return _0xda5c();}export class PromiseQueue extends _0x63c5c3(){[_0x7606d(0x12d)]=[];[_0x7606d(0x121)]=!0x1;[_0x7606d(0x125)];async[_0x7606d(0x120)](_0x2dbc6f){const _0x39ae5f=_0x7606d,_0x46e803=this[_0x39ae5f(0x12b)](_0x2dbc6f);return this[_0x39ae5f(0x12d)][_0x39ae5f(0x131)](_0x46e803),this[_0x39ae5f(0x12a)](),_0x46e803[_0x39ae5f(0x11e)];}[_0x7606d(0x128)](){const _0x237570=_0x7606d;this[_0x237570(0x121)]&&(this[_0x237570(0x125)][_0x237570(0x128)](),this[_0x237570(0x125)]=void 0x0,this[_0x237570(0x12d)]=[],this[_0x237570(0x130)](_0x237570(0x126)),this[_0x237570(0x121)]=!0x1);}get[_0x7606d(0x122)](){const _0x549161=_0x7606d;return this[_0x549161(0x12d)][_0x549161(0x137)]||this[_0x549161(0x121)]?new Promise(_0x37abed=>{const _0x498730=_0x549161;this[_0x498730(0x129)](_0x498730(0x126),()=>{_0x37abed();});}):Promise[_0x549161(0x132)]();}async[_0x7606d(0x12a)](){const _0x524e3d=_0x7606d;if(!this[_0x524e3d(0x121)]){this[_0x524e3d(0x125)]=new AbortController(),this[_0x524e3d(0x121)]=!0x0;try{for(;this[_0x524e3d(0x12d)][_0x524e3d(0x137)]&&this[_0x524e3d(0x121)];){const _0x3ca863=this[_0x524e3d(0x12d)][_0x524e3d(0x11d)]();try{await _0x3ca863[_0x524e3d(0x134)](this[_0x524e3d(0x125)][_0x524e3d(0x135)]),_0x3ca863[_0x524e3d(0x132)]();}catch(_0x3b29b9){_0x3ca863[_0x524e3d(0x124)](_0x3b29b9);}}}finally{this[_0x524e3d(0x121)]=!0x1,this[_0x524e3d(0x125)]=void 0x0;}this[_0x524e3d(0x130)](_0x524e3d(0x126));}}[_0x7606d(0x12b)](_0x1b9ed1){let _0x352570,_0x4528a9;const _0x47da2f=new Promise((_0x2e181f,_0x16b5f7)=>{_0x352570=_0x2e181f,_0x4528a9=_0x16b5f7;});return{'callback':_0x1b9ed1,'resolve':_0x352570,'reject':_0x4528a9,'completePromise':_0x47da2f};}}
23
+ const _0x2b5e42=_0x9371;function _0x9371(_0x4295c6,_0x16ab54){const _0x44d8d8=_0x44d8();return _0x9371=function(_0x93711f,_0x36a1d4){_0x93711f=_0x93711f-0x1a3;let _0x5e5ab3=_0x44d8d8[_0x93711f];return _0x5e5ab3;},_0x9371(_0x4295c6,_0x16ab54);}function _0x44d8(){const _0x29deee=['3320KrSXdj','length','5051928CjHogi','_processQueue','enqueue','10OsZsqj','93890FcDwYy','reject','_abortController','once','11tnpfLA','2373024IIwUOR','shift','push','3031040nsSdPa','isProcessing','1608906yEMOBF','abort','828GLRZiS','queueEmptyPromise','13972rZCxgW','completePromise','signal','fire','14fUXbiu','resolve','createTask','_queueEmpty','queue','19324sQuHnB','callback'];_0x44d8=function(){return _0x29deee;};return _0x44d8();}(function(_0x40177a,_0x14b3f6){const _0x4a9eac=_0x9371,_0x222b3f=_0x40177a();while(!![]){try{const _0x18b849=parseInt(_0x4a9eac(0x1b1))/0x1*(-parseInt(_0x4a9eac(0x1ac))/0x2)+parseInt(_0x4a9eac(0x1be))/0x3+parseInt(_0x4a9eac(0x1c1))/0x4+parseInt(_0x4a9eac(0x1b8))/0x5*(-parseInt(_0x4a9eac(0x1a4))/0x6)+-parseInt(_0x4a9eac(0x1a8))/0x7*(parseInt(_0x4a9eac(0x1b3))/0x8)+parseInt(_0x4a9eac(0x1a6))/0x9*(parseInt(_0x4a9eac(0x1b9))/0xa)+parseInt(_0x4a9eac(0x1bd))/0xb*(-parseInt(_0x4a9eac(0x1b5))/0xc);if(_0x18b849===_0x14b3f6)break;else _0x222b3f['push'](_0x222b3f['shift']());}catch(_0x1a88b4){_0x222b3f['push'](_0x222b3f['shift']());}}}(_0x44d8,0x78084));import{EmitterMixin as _0x383ac8}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x383ac8(){[_0x2b5e42(0x1b0)]=[];[_0x2b5e42(0x1a3)]=!0x1;[_0x2b5e42(0x1bb)];async[_0x2b5e42(0x1b7)](_0x271734){const _0x2edc38=_0x2b5e42,_0x38064f=this[_0x2edc38(0x1ae)](_0x271734);return this[_0x2edc38(0x1b0)][_0x2edc38(0x1c0)](_0x38064f),this[_0x2edc38(0x1b6)](),_0x38064f[_0x2edc38(0x1a9)];}[_0x2b5e42(0x1a5)](){const _0x54be51=_0x2b5e42;this[_0x54be51(0x1a3)]&&(this[_0x54be51(0x1bb)][_0x54be51(0x1a5)](),this[_0x54be51(0x1bb)]=void 0x0,this[_0x54be51(0x1b0)]=[],this[_0x54be51(0x1ab)](_0x54be51(0x1af)),this[_0x54be51(0x1a3)]=!0x1);}get[_0x2b5e42(0x1a7)](){const _0x496419=_0x2b5e42;return this[_0x496419(0x1b0)][_0x496419(0x1b4)]||this[_0x496419(0x1a3)]?new Promise(_0x3ea76f=>{const _0x1505cf=_0x496419;this[_0x1505cf(0x1bc)](_0x1505cf(0x1af),()=>{_0x3ea76f();});}):Promise[_0x496419(0x1ad)]();}async[_0x2b5e42(0x1b6)](){const _0x589b21=_0x2b5e42;if(!this[_0x589b21(0x1a3)]){this[_0x589b21(0x1bb)]=new AbortController(),this[_0x589b21(0x1a3)]=!0x0;try{for(;this[_0x589b21(0x1b0)][_0x589b21(0x1b4)]&&this[_0x589b21(0x1a3)];){const _0x1c105d=this[_0x589b21(0x1b0)][_0x589b21(0x1bf)]();try{await _0x1c105d[_0x589b21(0x1b2)](this[_0x589b21(0x1bb)][_0x589b21(0x1aa)]),_0x1c105d[_0x589b21(0x1ad)]();}catch(_0x351728){_0x1c105d[_0x589b21(0x1ba)](_0x351728);}}}finally{this[_0x589b21(0x1a3)]=!0x1,this[_0x589b21(0x1bb)]=void 0x0;}this[_0x589b21(0x1ab)](_0x589b21(0x1af));}}[_0x2b5e42(0x1ae)](_0x4d5c64){let _0x4538d0,_0x41693b;const _0x2abf6a=new Promise((_0x596d29,_0x318745)=>{_0x4538d0=_0x596d29,_0x41693b=_0x318745;});return{'callback':_0x4d5c64,'resolve':_0x4538d0,'reject':_0x41693b,'completePromise':_0x2abf6a};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1947c4=_0x4ac6;function _0x4ac6(_0x6668d,_0x1f484e){const _0x3329fd=_0x3329();return _0x4ac6=function(_0x4ac629,_0xb96c9d){_0x4ac629=_0x4ac629-0x1cf;let _0x5d4fb4=_0x3329fd[_0x4ac629];return _0x5d4fb4;},_0x4ac6(_0x6668d,_0x1f484e);}(function(_0x1274dd,_0x23e583){const _0x5af2e8=_0x4ac6,_0xe411b3=_0x1274dd();while(!![]){try{const _0x4dbec9=parseInt(_0x5af2e8(0x1ea))/0x1+-parseInt(_0x5af2e8(0x1de))/0x2+-parseInt(_0x5af2e8(0x1e5))/0x3*(-parseInt(_0x5af2e8(0x1d2))/0x4)+parseInt(_0x5af2e8(0x1e9))/0x5*(-parseInt(_0x5af2e8(0x1cf))/0x6)+parseInt(_0x5af2e8(0x1f6))/0x7+-parseInt(_0x5af2e8(0x1d4))/0x8+-parseInt(_0x5af2e8(0x1dc))/0x9*(-parseInt(_0x5af2e8(0x1da))/0xa);if(_0x4dbec9===_0x23e583)break;else _0xe411b3['push'](_0xe411b3['shift']());}catch(_0x18384e){_0xe411b3['push'](_0xe411b3['shift']());}}}(_0x3329,0x4c81d));function _0x3329(){const _0x207bd3=['isUserPaused','1041754JozjgJ','deltaY','animationFrameId','abortController','PageDown','End','_isAtBottom','3iAvrrP','start','ArrowUp','_stop','1226525gbFlPB','193769pEltUt','key','_onUserEvent','pointerdown','includes','addEventListener','abort','PageUp','_rafUpdate','isRunning','stop','scrollHeight','1259272VvuAiA','scrollTo','auto','Home','6VqTBeG','wheel','signal','580564RqDMrB','destroy','1500256PnpdFn','keydown','ArrowDown','type','element','bind','2494270OVLcya','touchstart','27OEmrws'];_0x3329=function(){return _0x207bd3;};return _0x3329();}const ts=[_0x1947c4(0x1d0),_0x1947c4(0x1db),_0x1947c4(0x1ed),_0x1947c4(0x1d5)],ss=[_0x1947c4(0x1e7),_0x1947c4(0x1d6),_0x1947c4(0x1f1),_0x1947c4(0x1e2),_0x1947c4(0x1f9),_0x1947c4(0x1e3),'\x20'];export class ScrollManager{[_0x1947c4(0x1d8)];[_0x1947c4(0x1e0)];[_0x1947c4(0x1f3)];[_0x1947c4(0x1e1)];[_0x1947c4(0x1dd)];constructor(_0x575f50){const _0x211746=_0x1947c4;this[_0x211746(0x1d8)]=_0x575f50,this[_0x211746(0x1e0)]=null,this[_0x211746(0x1f3)]=!0x1,this[_0x211746(0x1e1)]=new AbortController(),this[_0x211746(0x1dd)]=!0x1;for(const _0x16c1a6 of ts){const _0x590272=_0x211746(0x1d5)!==_0x16c1a6;this[_0x211746(0x1d8)][_0x211746(0x1ef)](_0x16c1a6,this[_0x211746(0x1ec)][_0x211746(0x1d9)](this),{'passive':_0x590272,'signal':this[_0x211746(0x1e1)][_0x211746(0x1d1)]});}}[_0x1947c4(0x1e6)](){const _0x21306e=_0x1947c4;this[_0x21306e(0x1f3)]||(this[_0x21306e(0x1f3)]=!0x0,this[_0x21306e(0x1dd)]=!0x1,this[_0x21306e(0x1e0)]=requestAnimationFrame(this[_0x21306e(0x1f2)][_0x21306e(0x1d9)](this)));}[_0x1947c4(0x1f4)](){requestAnimationFrame(()=>{const _0x4ca49e=_0x4ac6;this[_0x4ca49e(0x1e8)]();});}[_0x1947c4(0x1d3)](){const _0x3a6593=_0x1947c4;this[_0x3a6593(0x1e8)](),this[_0x3a6593(0x1e1)][_0x3a6593(0x1f0)]();}[_0x1947c4(0x1e8)](){const _0x43470c=_0x1947c4;null!==this[_0x43470c(0x1e0)]&&(cancelAnimationFrame(this[_0x43470c(0x1e0)]),this[_0x43470c(0x1e0)]=null),this[_0x43470c(0x1f3)]&&(this[_0x43470c(0x1f3)]=!0x1),this[_0x43470c(0x1dd)]=!0x1;}[_0x1947c4(0x1ec)](_0x27e76a){const _0x130150=_0x1947c4;if(this[_0x130150(0x1f3)]){if(_0x130150(0x1d5)===_0x27e76a[_0x130150(0x1d7)]){const _0x196942=_0x27e76a[_0x130150(0x1eb)];if(!ss[_0x130150(0x1ee)](_0x196942))return;}_0x27e76a instanceof WheelEvent?_0x27e76a[_0x130150(0x1df)]<0x0?this[_0x130150(0x1dd)]=!0x0:this[_0x130150(0x1dd)]=!this[_0x130150(0x1e4)]():this[_0x130150(0x1dd)]=!0x0;}}[_0x1947c4(0x1e4)](){const _0x3a6e33=_0x1947c4,{scrollTop:_0x56bebd,scrollHeight:_0x2a7723,clientHeight:_0x9d2675}=this[_0x3a6e33(0x1d8)];return _0x2a7723-_0x56bebd-_0x9d2675<=0x5;}[_0x1947c4(0x1f2)](){const _0x25d726=_0x1947c4;this[_0x25d726(0x1f3)]&&(this[_0x25d726(0x1dd)]||this[_0x25d726(0x1d8)][_0x25d726(0x1f7)]({'top':this[_0x25d726(0x1d8)][_0x25d726(0x1f5)],'behavior':_0x25d726(0x1f8)}),this[_0x25d726(0x1e0)]=requestAnimationFrame(this[_0x25d726(0x1f2)][_0x25d726(0x1d9)](this)));}}
23
+ const _0x502a0f=_0x417e;(function(_0x5a8055,_0x5c9518){const _0x16c78c=_0x417e,_0x49a3da=_0x5a8055();while(!![]){try{const _0xfab65a=-parseInt(_0x16c78c(0x1ff))/0x1*(parseInt(_0x16c78c(0x1e7))/0x2)+parseInt(_0x16c78c(0x1fa))/0x3+-parseInt(_0x16c78c(0x202))/0x4*(-parseInt(_0x16c78c(0x209))/0x5)+-parseInt(_0x16c78c(0x1e8))/0x6*(parseInt(_0x16c78c(0x1e2))/0x7)+parseInt(_0x16c78c(0x1f2))/0x8+-parseInt(_0x16c78c(0x206))/0x9*(-parseInt(_0x16c78c(0x201))/0xa)+-parseInt(_0x16c78c(0x1ef))/0xb;if(_0xfab65a===_0x5c9518)break;else _0x49a3da['push'](_0x49a3da['shift']());}catch(_0x1aef7c){_0x49a3da['push'](_0x49a3da['shift']());}}}(_0x23a4,0x1eafb));const ls=[_0x502a0f(0x208),_0x502a0f(0x20c),_0x502a0f(0x1e1),_0x502a0f(0x1f7)],ms=[_0x502a0f(0x1fe),_0x502a0f(0x1f0),_0x502a0f(0x1e5),_0x502a0f(0x1fc),_0x502a0f(0x1f9),_0x502a0f(0x204),'\x20'];function _0x23a4(){const _0x432dbb=['signal','scrollHeight','isRunning','_isAtBottom','keydown','start','Home','552666lMTUwF','_onUserEvent','PageDown','includes','ArrowUp','5LOCtQc','stop','1630GXlsVw','239516AkSBDx','_rafUpdate','End','abortController','8739skOOuG','addEventListener','wheel','5JaPgCl','isUserPaused','bind','touchstart','pointerdown','631043DOUYli','destroy','element','PageUp','type','79448WFJtKI','6aajyOI','auto','scrollTo','deltaY','abort','key','animationFrameId','2159674VlbaRR','ArrowDown','_stop','1667360CTxLqU'];_0x23a4=function(){return _0x432dbb;};return _0x23a4();}function _0x417e(_0x509368,_0x1b6d4e){const _0x23a470=_0x23a4();return _0x417e=function(_0x417e22,_0x36f659){_0x417e22=_0x417e22-0x1e1;let _0x4471cb=_0x23a470[_0x417e22];return _0x4471cb;},_0x417e(_0x509368,_0x1b6d4e);}export class ScrollManager{[_0x502a0f(0x1e4)];[_0x502a0f(0x1ee)];[_0x502a0f(0x1f5)];[_0x502a0f(0x205)];[_0x502a0f(0x20a)];constructor(_0x338fec){const _0x241ba3=_0x502a0f;this[_0x241ba3(0x1e4)]=_0x338fec,this[_0x241ba3(0x1ee)]=null,this[_0x241ba3(0x1f5)]=!0x1,this[_0x241ba3(0x205)]=new AbortController(),this[_0x241ba3(0x20a)]=!0x1;for(const _0xd7dd7d of ls){const _0x571a59=_0x241ba3(0x1f7)!==_0xd7dd7d;this[_0x241ba3(0x1e4)][_0x241ba3(0x207)](_0xd7dd7d,this[_0x241ba3(0x1fb)][_0x241ba3(0x20b)](this),{'passive':_0x571a59,'signal':this[_0x241ba3(0x205)][_0x241ba3(0x1f3)]});}}[_0x502a0f(0x1f8)](){const _0x1d0d03=_0x502a0f;this[_0x1d0d03(0x1f5)]||(this[_0x1d0d03(0x1f5)]=!0x0,this[_0x1d0d03(0x20a)]=!0x1,this[_0x1d0d03(0x1ee)]=requestAnimationFrame(this[_0x1d0d03(0x203)][_0x1d0d03(0x20b)](this)));}[_0x502a0f(0x200)](){requestAnimationFrame(()=>{const _0x5cb6cf=_0x417e;this[_0x5cb6cf(0x1f1)]();});}[_0x502a0f(0x1e3)](){const _0x456134=_0x502a0f;this[_0x456134(0x1f1)](),this[_0x456134(0x205)][_0x456134(0x1ec)]();}[_0x502a0f(0x1f1)](){const _0x4fc69a=_0x502a0f;null!==this[_0x4fc69a(0x1ee)]&&(cancelAnimationFrame(this[_0x4fc69a(0x1ee)]),this[_0x4fc69a(0x1ee)]=null),this[_0x4fc69a(0x1f5)]&&(this[_0x4fc69a(0x1f5)]=!0x1),this[_0x4fc69a(0x20a)]=!0x1;}[_0x502a0f(0x1fb)](_0x12194b){const _0x25cd0b=_0x502a0f;if(this[_0x25cd0b(0x1f5)]){if(_0x25cd0b(0x1f7)===_0x12194b[_0x25cd0b(0x1e6)]){const _0x526938=_0x12194b[_0x25cd0b(0x1ed)];if(!ms[_0x25cd0b(0x1fd)](_0x526938))return;}_0x12194b instanceof WheelEvent?_0x12194b[_0x25cd0b(0x1eb)]<0x0?this[_0x25cd0b(0x20a)]=!0x0:this[_0x25cd0b(0x20a)]=!this[_0x25cd0b(0x1f6)]():this[_0x25cd0b(0x20a)]=!0x0;}}[_0x502a0f(0x1f6)](){const _0x4981ef=_0x502a0f,{scrollTop:_0x1e8858,scrollHeight:_0x4511a6,clientHeight:_0x3c928b}=this[_0x4981ef(0x1e4)];return _0x4511a6-_0x1e8858-_0x3c928b<=0x5;}[_0x502a0f(0x203)](){const _0x286d7b=_0x502a0f;this[_0x286d7b(0x1f5)]&&(this[_0x286d7b(0x20a)]||this[_0x286d7b(0x1e4)][_0x286d7b(0x1ea)]({'top':this[_0x286d7b(0x1e4)][_0x286d7b(0x1f4)],'behavior':_0x286d7b(0x1e9)}),this[_0x286d7b(0x1ee)]=requestAnimationFrame(this[_0x286d7b(0x203)][_0x286d7b(0x20b)](this)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3776eb=_0x527c;(function(_0x470edf,_0x5d46f6){var _0x2a48a2=_0x527c,_0x3d304c=_0x470edf();while(!![]){try{var _0x1cb197=parseInt(_0x2a48a2(0x14c))/0x1+parseInt(_0x2a48a2(0x143))/0x2*(parseInt(_0x2a48a2(0x14b))/0x3)+-parseInt(_0x2a48a2(0x141))/0x4+parseInt(_0x2a48a2(0x14a))/0x5*(-parseInt(_0x2a48a2(0x146))/0x6)+parseInt(_0x2a48a2(0x144))/0x7*(parseInt(_0x2a48a2(0x149))/0x8)+-parseInt(_0x2a48a2(0x13f))/0x9+parseInt(_0x2a48a2(0x13d))/0xa*(parseInt(_0x2a48a2(0x13e))/0xb);if(_0x1cb197===_0x5d46f6)break;else _0x3d304c['push'](_0x3d304c['shift']());}catch(_0x52c7ff){_0x3d304c['push'](_0x3d304c['shift']());}}}(_0x3714,0x43ea1));function _0x527c(_0x255a49,_0x5346b6){var _0x371439=_0x3714();return _0x527c=function(_0x527c61,_0x302cb3){_0x527c61=_0x527c61-0x13d;var _0x527956=_0x371439[_0x527c61];return _0x527956;},_0x527c(_0x255a49,_0x5346b6);}import{ContextPlugin as _0x3598ae}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0xbe7694}from'./aichathistorycontroller.js';function _0x3714(){var _0x48a379=['1059138UusoNj','requires','1818872ZTIVbN','isPremiumPlugin','16ndrcHs','1533djPspk','pluginName','6gGTFMH','isOfficialPlugin','AIChatHistory','17192pGFADL','1640250HWCepR','118860CeKGLd','113033KknHmS','10iRwBWE','3058033gwaqIP'];_0x3714=function(){return _0x48a379;};return _0x3714();}import{AIChatHistoryUI as _0x58c3a5}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x3598ae{static get[_0x3776eb(0x140)](){return[_0xbe7694,_0x58c3a5];}static get[_0x3776eb(0x145)](){var _0x428f95=_0x3776eb;return _0x428f95(0x148);}static get[_0x3776eb(0x147)](){return!0x0;}static get[_0x3776eb(0x142)](){return!0x0;}}
23
+ var _0x3c307a=_0x1675;(function(_0x397506,_0x401896){var _0x576f19=_0x1675,_0x1476eb=_0x397506();while(!![]){try{var _0x1b8089=parseInt(_0x576f19(0x1d1))/0x1+-parseInt(_0x576f19(0x1d7))/0x2+-parseInt(_0x576f19(0x1d9))/0x3+-parseInt(_0x576f19(0x1ce))/0x4*(-parseInt(_0x576f19(0x1d6))/0x5)+-parseInt(_0x576f19(0x1d2))/0x6*(-parseInt(_0x576f19(0x1d0))/0x7)+parseInt(_0x576f19(0x1db))/0x8+-parseInt(_0x576f19(0x1d4))/0x9;if(_0x1b8089===_0x401896)break;else _0x1476eb['push'](_0x1476eb['shift']());}catch(_0xa2a61f){_0x1476eb['push'](_0x1476eb['shift']());}}}(_0x402a,0x1b9c9));function _0x402a(){var _0x52f13c=['pluginName','1073672CBxBhG','142684VvsbHA','isPremiumPlugin','14kgnyVo','143688ixRvGx','636534kHGMUc','requires','281952wMVxVM','isOfficialPlugin','5HDSVre','387068RjSeqv','AIChatHistory','563361GRRnqC'];_0x402a=function(){return _0x52f13c;};return _0x402a();}import{ContextPlugin as _0xed26df}from'ckeditor5/src/core.js';function _0x1675(_0x597eab,_0x302de7){var _0x402a6c=_0x402a();return _0x1675=function(_0x16753b,_0x3630d4){_0x16753b=_0x16753b-0x1ce;var _0x5bfcd6=_0x402a6c[_0x16753b];return _0x5bfcd6;},_0x1675(_0x597eab,_0x302de7);}import{AIChatHistoryController as _0x526f86}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x371bcc}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0xed26df{static get[_0x3c307a(0x1d3)](){return[_0x526f86,_0x371bcc];}static get[_0x3c307a(0x1da)](){var _0x16eb02=_0x3c307a;return _0x16eb02(0x1d8);}static get[_0x3c307a(0x1d5)](){return!0x0;}static get[_0x3c307a(0x1cf)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cb046=_0x40e1;(function(_0x2de25c,_0x23d4a3){const _0x137f07=_0x40e1,_0x13d1ba=_0x2de25c();while(!![]){try{const _0x47849f=parseInt(_0x137f07(0x11d))/0x1*(parseInt(_0x137f07(0x153))/0x2)+-parseInt(_0x137f07(0xf2))/0x3*(parseInt(_0x137f07(0x117))/0x4)+parseInt(_0x137f07(0x149))/0x5*(parseInt(_0x137f07(0x138))/0x6)+-parseInt(_0x137f07(0x104))/0x7*(-parseInt(_0x137f07(0x14a))/0x8)+-parseInt(_0x137f07(0x11b))/0x9+parseInt(_0x137f07(0x107))/0xa*(-parseInt(_0x137f07(0x137))/0xb)+-parseInt(_0x137f07(0x151))/0xc*(parseInt(_0x137f07(0x13e))/0xd);if(_0x47849f===_0x23d4a3)break;else _0x13d1ba['push'](_0x13d1ba['shift']());}catch(_0x56d6a0){_0x13d1ba['push'](_0x13d1ba['shift']());}}}(_0x50ac,0x440e7));import{ContextPlugin as _0x525851}from'ckeditor5/src/core.js';import{AIConnector as _0x27b29e}from'../aicore/aiconnector.js';import{AIChatController as _0x521ca8}from'../aichat/aichatcontroller.js';import{AITabs as _0x55d834}from'../aitabs/aitabs.js';function _0x50ac(){const _0x1b6c06=['updateItemLoadingState','_setItemLoading','2471436dtGker','chat','1rejUGB','items','history','requires','AI_CHAT_HISTORY_CATEGORY_LATER','itemRemoved','_getCategorizedItems','getItem','_showConversationHistory','_generateErrorMessage','pin','pluginName','plugins','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getDate','_handleEditTitle','updates','setIsMaximized','locale','rename','loadConversation','_clearItemLoading','view','AI_CHAT_HISTORY_CATEGORY_TODAY','AI_CHAT_HISTORY_UNPIN_ACTION','updateItemTitle','355894VpizdI','11478RchOTL','resize','AIChatHistoryController','_handleTogglePin','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getFullYear','13559bpGgDb','operation','openChat','_handleSelectConversation','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_GENERIC','_updateHistoryItemsUI','pinned','init','length','unpin','905iBgyjq','726096VkZnsy','_aiChatHistoryUi','getMonth','get','change:activeConversation','setLoadingSkeleton','selectConversation','3108EIDSCs','_handleHistoryErrorUI','1091576kEpHpG','AI_CHAT_UNTITLED_CONVERSATION','error','remove','removeItem','setConversationPinned','_aiConnector','showError','380847JyHgnp','itemsLoaded','handleRemovedConversation','updateItems','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_PIN_ACTION','createdAt','_handleRemove','map','loadItems','editConversationTitle','activeConversation','getGroupId','push','setDate','removeHistoryItem','itemId','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','7vlCfFw','resizeTabs','toLocaleDateString','10ZsrGZs','title','context','listenTo','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','isPremiumPlugin','activateTab','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_CATEGORY_PINNED','getItems','resizedTabs','removeConversation','_setIsMaximized','itemUpdated','_aiChatController','activateTab:history','4cjYaGU','updateItemPinned'];_0x50ac=function(){return _0x1b6c06;};return _0x50ac();}import{AIChatHistoryUI as _0x4d55ea}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x23ba21}from'./model/aichathistoryconversations.js';import{getTranslation as _0x9a32b0}from'../aicore/utils/common-translations.js';function _0x40e1(_0x557e5f,_0x5a4a15){const _0x50ac1b=_0x50ac();return _0x40e1=function(_0x40e1ef,_0x2356aa){_0x40e1ef=_0x40e1ef-0xf1;let _0x516c17=_0x50ac1b[_0x40e1ef];return _0x516c17;},_0x40e1(_0x557e5f,_0x5a4a15);}export class AIChatHistoryController extends _0x525851{[_0x1cb046(0x159)];[_0x1cb046(0x14b)];[_0x1cb046(0x115)];static get[_0x1cb046(0x120)](){return[_0x27b29e,_0x521ca8,_0x4d55ea,_0x55d834];}static get[_0x1cb046(0x128)](){const _0x1bc99e=_0x1cb046;return _0x1bc99e(0x13a);}static get[_0x1cb046(0x142)](){return!0x0;}static get[_0x1cb046(0x10c)](){return!0x0;}[_0x1cb046(0x146)](){const _0x57a640=_0x1cb046;this[_0x57a640(0x159)]=this[_0x57a640(0x109)][_0x57a640(0x129)][_0x57a640(0x14d)](_0x27b29e),this[_0x57a640(0x14b)]=this[_0x57a640(0x109)][_0x57a640(0x129)][_0x57a640(0x14d)](_0x4d55ea),this[_0x57a640(0x115)]=this[_0x57a640(0x109)][_0x57a640(0x129)][_0x57a640(0x14d)](_0x521ca8);const _0x584f22=this[_0x57a640(0x109)][_0x57a640(0x129)][_0x57a640(0x14d)](_0x55d834),_0x381408=this[_0x57a640(0x115)][_0x57a640(0xfe)]();this[_0x57a640(0x11f)]=new _0x23ba21({'connector':this[_0x57a640(0x159)],'group':_0x381408}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x112),(_0x26d0ec,_0x398a17)=>{const _0x137702=_0x57a640;this[_0x137702(0x11a)](_0x398a17['id'],_0x137702(0x156)),this[_0x137702(0xf9)](_0x398a17['id']);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0xfc),(_0x22c37c,_0x4af3b6)=>{const _0x47f1d7=_0x57a640;this[_0x47f1d7(0x11a)](_0x4af3b6['id'],_0x47f1d7(0x130)),this[_0x47f1d7(0x12c)](_0x4af3b6['id'],_0x4af3b6[_0x47f1d7(0x108)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x11f)],_0x57a640(0x114),(_0x2a9633,_0x4a451c)=>{const _0x253de6=_0x57a640;void 0x0!==_0x4a451c[_0x253de6(0x12d)][_0x253de6(0x108)]&&this[_0x253de6(0x14b)][_0x253de6(0x136)](_0x4a451c[_0x253de6(0x102)],_0x4a451c[_0x253de6(0x12d)][_0x253de6(0x108)]),void 0x0!==_0x4a451c[_0x253de6(0x12d)][_0x253de6(0x145)]&&this[_0x253de6(0x144)](),this[_0x253de6(0x132)](_0x4a451c[_0x253de6(0x102)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x11f)],_0x57a640(0x122),(_0x31e940,_0x56cd26)=>{const _0x13c758=_0x57a640;this[_0x13c758(0x115)][_0x13c758(0xf4)](_0x56cd26[_0x13c758(0x102)]),this[_0x13c758(0x14b)][_0x13c758(0x101)](_0x56cd26[_0x13c758(0x102)]),this[_0x13c758(0x132)](_0x56cd26[_0x13c758(0x102)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x11f)],_0x57a640(0xf3),()=>{const _0x42586b=_0x57a640;this[_0x42586b(0x144)]();}),this[_0x57a640(0x10a)](this[_0x57a640(0x11f)],_0x57a640(0x155),(_0x163bee,_0xefe69d)=>{const _0x579afa=_0x57a640;this[_0x579afa(0x152)](_0xefe69d[_0x579afa(0x155)],_0xefe69d[_0x579afa(0x13f)],_0xefe69d[_0x579afa(0x102)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x150),(_0x5b4d99,_0x3ca962)=>{const _0x5c2055=_0x57a640;this[_0x5c2055(0x141)](_0x3ca962['id']);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x158),(_0xff4170,_0x540a76)=>{const _0x4d83b4=_0x57a640,_0x3e1d0c=_0x540a76[_0x4d83b4(0x145)]?_0x4d83b4(0x127):_0x4d83b4(0x148);this[_0x4d83b4(0x11a)](_0x540a76['id'],_0x3e1d0c),this[_0x4d83b4(0x13b)](_0x540a76['id'],_0x540a76[_0x4d83b4(0x145)]);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x140),()=>{const _0x19a378=_0x57a640;_0x584f22[_0x19a378(0x133)][_0x19a378(0x10d)](_0x19a378(0x11c));}),this[_0x57a640(0x10a)](this[_0x57a640(0x115)],_0x57a640(0x14e),()=>{const _0x3c7f65=_0x57a640;this[_0x3c7f65(0x144)]();}),_0x584f22[_0x57a640(0x133)]['on'](_0x57a640(0x116),()=>{const _0x2cb73d=_0x57a640;this[_0x2cb73d(0x125)]();}),this[_0x57a640(0x10a)](_0x584f22,_0x57a640(0x111),(_0x5af5ed,_0x30df3d)=>{const _0x3f24c0=_0x57a640;this[_0x3f24c0(0x113)](_0x30df3d);}),this[_0x57a640(0x10a)](this[_0x57a640(0x14b)],_0x57a640(0x105),()=>{const _0x12d199=_0x57a640;_0x584f22[_0x12d199(0x139)]();});}async[_0x1cb046(0x12c)](_0xe47f17,_0x1916bd){const _0x3d3421=_0x1cb046;await this[_0x3d3421(0x11f)][_0x3d3421(0x136)](_0xe47f17,_0x1916bd);}async[_0x1cb046(0x13b)](_0x4befd5,_0x3c4350){const _0x3e36b2=_0x1cb046;await this[_0x3e36b2(0x11f)][_0x3e36b2(0x118)](_0x4befd5,_0x3c4350);}async[_0x1cb046(0xf9)](_0x304b40){const _0x5dd04d=_0x1cb046;await this[_0x5dd04d(0x11f)][_0x5dd04d(0x157)](_0x304b40);}async[_0x1cb046(0x141)](_0x4bec93){const _0x5b858d=_0x1cb046;await this[_0x5b858d(0x115)][_0x5b858d(0x131)](_0x4bec93);}async[_0x1cb046(0x125)](){const _0x42dbc1=_0x1cb046;this[_0x42dbc1(0x14b)][_0x42dbc1(0xf1)](''),this[_0x42dbc1(0x14b)][_0x42dbc1(0x14f)](!0x0),await this[_0x42dbc1(0x11f)][_0x42dbc1(0x146)](),this[_0x42dbc1(0x14b)][_0x42dbc1(0x14f)](!0x1);}[_0x1cb046(0x144)](){const _0x51c476=_0x1cb046,_0xfa3d99=this[_0x51c476(0x115)][_0x51c476(0xfd)]?.['id'],_0x4f0163=this[_0x51c476(0x123)]()[_0x51c476(0xfa)](_0x4410da=>({'title':_0x4410da[_0x51c476(0x108)],'items':_0x4410da[_0x51c476(0x11e)][_0x51c476(0xfa)](_0x4a7509=>({'id':_0x4a7509['id'],'title':_0x4a7509[_0x51c476(0x108)]||_0x9a32b0(this[_0x51c476(0x109)][_0x51c476(0x12f)],_0x51c476(0x154)),'createdAt':new Date(_0x4a7509[_0x51c476(0xf8)])[_0x51c476(0x106)](),'active':_0x4a7509['id']===_0xfa3d99,'pinned':_0x4a7509[_0x51c476(0x145)]}))}));this[_0x51c476(0x14b)][_0x51c476(0xf5)](_0x4f0163);}[_0x1cb046(0x11a)](_0x3cf3ab,_0x3d917d){const _0x15e28f=_0x1cb046;this[_0x15e28f(0x14b)][_0x15e28f(0x119)](_0x3cf3ab,_0x3d917d,!0x0);}[_0x1cb046(0x132)](_0x5fee95){const _0xef57c4=_0x1cb046;this[_0xef57c4(0x14b)][_0xef57c4(0x119)](_0x5fee95,null,!0x1);}[_0x1cb046(0x152)](_0xcce371,_0x8d3c9f,_0x9c70a7){const _0x5e3fbc=_0x1cb046,_0xca471=this[_0x5e3fbc(0x126)](_0x8d3c9f,_0x9c70a7);this[_0x5e3fbc(0x14b)][_0x5e3fbc(0xf1)](_0xca471),_0x9c70a7&&this[_0x5e3fbc(0x132)](_0x9c70a7),this[_0x5e3fbc(0x14b)][_0x5e3fbc(0x14f)](!0x1);}[_0x1cb046(0x126)](_0x49b16c,_0x3d6e72){const _0x65606c=_0x1cb046,_0x29204f=_0x3d6e72?this[_0x65606c(0x11f)][_0x65606c(0x124)](_0x3d6e72):null,_0x31cc4e=_0x29204f?.[_0x65606c(0x108)]||_0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x154));switch(_0x49b16c){case _0x65606c(0x136):return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x103),_0x31cc4e);case _0x65606c(0x118):{const _0x36f4d8=_0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x29204f?.[_0x65606c(0x145)]?_0x65606c(0x135):_0x65606c(0xf7));return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0xf6),[_0x36f4d8,_0x31cc4e]);}case _0x65606c(0x157):return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x12a),_0x31cc4e);case _0x65606c(0x146):case _0x65606c(0xfb):return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x10b));default:return _0x9a32b0(this[_0x65606c(0x109)][_0x65606c(0x12f)],_0x65606c(0x143));}}[_0x1cb046(0x123)](){const _0x384888=_0x1cb046,_0x5f4458=new Date(),_0x3ec2fa=new Date(_0x5f4458[_0x384888(0x13d)](),_0x5f4458[_0x384888(0x14c)](),_0x5f4458[_0x384888(0x12b)]()),_0x4025d3=new Date(_0x3ec2fa);_0x4025d3[_0x384888(0x100)](_0x4025d3[_0x384888(0x12b)]()-0x1);const _0x745ec7=new Date(_0x3ec2fa);_0x745ec7[_0x384888(0x100)](_0x745ec7[_0x384888(0x12b)]()-0xe);const _0x26801d=this[_0x384888(0x11f)][_0x384888(0x110)]({'pinned':!0x0}),_0x5bd1a7=this[_0x384888(0x11f)][_0x384888(0x110)]({'from':_0x3ec2fa,'to':_0x3ec2fa}),_0x13c8cb=this[_0x384888(0x11f)][_0x384888(0x110)]({'from':_0x4025d3,'to':_0x4025d3}),_0x4fdef8=this[_0x384888(0x11f)][_0x384888(0x110)]({'from':_0x745ec7,'to':_0x4025d3}),_0x277ebe=this[_0x384888(0x11f)][_0x384888(0x110)]({'to':_0x745ec7}),_0x483c9e=[];return _0x26801d[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x10f)),'items':_0x26801d}),_0x5bd1a7[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x134)),'items':_0x5bd1a7}),_0x13c8cb[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x13c)),'items':_0x13c8cb}),_0x4fdef8[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x10e)),'items':_0x4fdef8}),_0x277ebe[_0x384888(0x147)]>0x0&&_0x483c9e[_0x384888(0xff)]({'title':_0x9a32b0(this[_0x384888(0x109)][_0x384888(0x12f)],_0x384888(0x121)),'items':_0x277ebe}),_0x483c9e;}[_0x1cb046(0x113)](_0x410017){const _0x38c6b5=_0x1cb046;this[_0x38c6b5(0x14b)][_0x38c6b5(0x12e)](_0x410017);}}
23
+ const _0x26ff02=_0xefa6;(function(_0x47effa,_0x1dbf06){const _0x80e1c=_0xefa6,_0x1fbd2f=_0x47effa();while(!![]){try{const _0x5b9c64=-parseInt(_0x80e1c(0x180))/0x1+parseInt(_0x80e1c(0x146))/0x2+parseInt(_0x80e1c(0x18f))/0x3+-parseInt(_0x80e1c(0x173))/0x4*(-parseInt(_0x80e1c(0x179))/0x5)+parseInt(_0x80e1c(0x150))/0x6+parseInt(_0x80e1c(0x18d))/0x7+-parseInt(_0x80e1c(0x192))/0x8;if(_0x5b9c64===_0x1dbf06)break;else _0x1fbd2f['push'](_0x1fbd2f['shift']());}catch(_0x2052af){_0x1fbd2f['push'](_0x1fbd2f['shift']());}}}(_0x1642,0x97223));import{ContextPlugin as _0x465f46}from'ckeditor5/src/core.js';import{AIConnector as _0x31ed61}from'../aicore/aiconnector.js';import{AIChatController as _0x1332b7}from'../aichat/aichatcontroller.js';import{AITabs as _0x5dd48c}from'../aitabs/aitabs.js';function _0x1642(){const _0x9de2b6=['itemUpdated','AIChatHistoryController','rename','_setIsMaximized','AI_CHAT_HISTORY_UNPIN_ACTION','updateItems','getItem','setLoadingSkeleton','loadItems','_aiConnector','_updateHistoryItemsUI','removeHistoryItem','updateItemTitle','push','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','updates','length','view','pin','resize','operation','get','AI_CHAT_HISTORY_CATEGORY_TODAY','itemId','updateItemLoadingState','setConversationPinned','4dXbskk','resizeTabs','pluginName','setDate','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','1963690yfsYfH','items','_handleTogglePin','pinned','removeConversation','plugins','resizedTabs','735976RJUSRY','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','unpin','_handleHistoryErrorUI','activateTab','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_showConversationHistory','itemsLoaded','getMonth','setIsMaximized','openChat','updateItemPinned','_aiChatHistoryUi','926604ikfPGD','handleRemovedConversation','3073641DWsAIh','_handleSelectConversation','itemRemoved','18514176vRLBLd','createdAt','_clearItemLoading','init','activateTab:history','_generateErrorMessage','chat','getDate','editConversationTitle','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','remove','context','history','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','listenTo','AI_CHAT_HISTORY_CATEGORY_PINNED','removeItem','error','_aiChatController','AI_CHAT_HISTORY_CATEGORY_LATER','change:activeConversation','activeConversation','requires','2019056EIyWQP','locale','getItems','loadConversation','_handleRemove','isPremiumPlugin','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_GENERIC','selectConversation','6660636BXTYaT','map','_getCategorizedItems','_setItemLoading','toLocaleDateString','getFullYear','title','showError','getGroupId'];_0x1642=function(){return _0x9de2b6;};return _0x1642();}import{AIChatHistoryUI as _0x550075}from'./aichathistoryui.js';function _0xefa6(_0x1d582c,_0x4fedb8){const _0x164298=_0x1642();return _0xefa6=function(_0xefa6e5,_0xfc1e71){_0xefa6e5=_0xefa6e5-0x146;let _0x25d033=_0x164298[_0xefa6e5];return _0x25d033;},_0xefa6(_0x1d582c,_0x4fedb8);}import{AIChatHistoryConversations as _0xebc9a1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x6a4575}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x465f46{[_0x26ff02(0x162)];[_0x26ff02(0x18c)];[_0x26ff02(0x1a5)];static get[_0x26ff02(0x1a9)](){return[_0x31ed61,_0x1332b7,_0x550075,_0x5dd48c];}static get[_0x26ff02(0x175)](){const _0x35958b=_0x26ff02;return _0x35958b(0x15a);}static get[_0x26ff02(0x14c)](){return!0x0;}static get[_0x26ff02(0x14b)](){return!0x0;}[_0x26ff02(0x195)](){const _0x34492c=_0x26ff02;this[_0x34492c(0x162)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x31ed61),this[_0x34492c(0x18c)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x550075),this[_0x34492c(0x1a5)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x1332b7);const _0x38a1e8=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x5dd48c),_0x2a50f7=this[_0x34492c(0x1a5)][_0x34492c(0x158)]();this[_0x34492c(0x19f)]=new _0xebc9a1({'connector':this[_0x34492c(0x162)],'group':_0x2a50f7}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x17d),(_0x2578f8,_0x49d1b4)=>{const _0x24e470=_0x34492c;this[_0x24e470(0x153)](_0x49d1b4['id'],_0x24e470(0x19d)),this[_0x24e470(0x14a)](_0x49d1b4['id']);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x19a),(_0x12a136,_0x1abee1)=>{const _0x2abc3d=_0x34492c;this[_0x2abc3d(0x153)](_0x1abee1['id'],_0x2abc3d(0x15b)),this[_0x2abc3d(0x177)](_0x1abee1['id'],_0x1abee1[_0x2abc3d(0x156)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x159),(_0x2e0272,_0x1a49e2)=>{const _0x16431a=_0x34492c;void 0x0!==_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x156)]&&this[_0x16431a(0x18c)][_0x16431a(0x165)](_0x1a49e2[_0x16431a(0x170)],_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x156)]),void 0x0!==_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x17c)]&&this[_0x16431a(0x163)](),this[_0x16431a(0x194)](_0x1a49e2[_0x16431a(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x191),(_0x246934,_0x4edfe5)=>{const _0x41726e=_0x34492c;this[_0x41726e(0x1a5)][_0x41726e(0x18e)](_0x4edfe5[_0x41726e(0x170)]),this[_0x41726e(0x18c)][_0x41726e(0x164)](_0x4edfe5[_0x41726e(0x170)]),this[_0x41726e(0x194)](_0x4edfe5[_0x41726e(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x187),()=>{const _0x4bbf05=_0x34492c;this[_0x4bbf05(0x163)]();}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x1a4),(_0x1aaf19,_0x56dab8)=>{const _0x47412c=_0x34492c;this[_0x47412c(0x183)](_0x56dab8[_0x47412c(0x1a4)],_0x56dab8[_0x47412c(0x16d)],_0x56dab8[_0x47412c(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x14f),(_0x124f0c,_0x1fd148)=>{const _0x8979df=_0x34492c;this[_0x8979df(0x190)](_0x1fd148['id']);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x172),(_0x3c43b9,_0x561613)=>{const _0x2a9102=_0x34492c,_0xee5a05=_0x561613[_0x2a9102(0x17c)]?_0x2a9102(0x16b):_0x2a9102(0x182);this[_0x2a9102(0x153)](_0x561613['id'],_0xee5a05),this[_0x2a9102(0x17b)](_0x561613['id'],_0x561613[_0x2a9102(0x17c)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x18a),()=>{const _0x244cde=_0x34492c;_0x38a1e8[_0x244cde(0x16a)][_0x244cde(0x184)](_0x244cde(0x198));}),this[_0x34492c(0x1a1)](this[_0x34492c(0x1a5)],_0x34492c(0x1a7),()=>{const _0x14fff8=_0x34492c;this[_0x14fff8(0x163)]();}),_0x38a1e8[_0x34492c(0x16a)]['on'](_0x34492c(0x196),()=>{const _0x519e26=_0x34492c;this[_0x519e26(0x186)]();}),this[_0x34492c(0x1a1)](_0x38a1e8,_0x34492c(0x17f),(_0x5cd596,_0x52ce83)=>{const _0x54c718=_0x34492c;this[_0x54c718(0x15c)](_0x52ce83);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x174),()=>{const _0xf74fb5=_0x34492c;_0x38a1e8[_0xf74fb5(0x16c)]();});}async[_0x26ff02(0x177)](_0x39a77a,_0x5cefa3){const _0x2d71f3=_0x26ff02;await this[_0x2d71f3(0x19f)][_0x2d71f3(0x165)](_0x39a77a,_0x5cefa3);}async[_0x26ff02(0x17b)](_0x51a546,_0x4d6f3b){const _0x58e057=_0x26ff02;await this[_0x58e057(0x19f)][_0x58e057(0x18b)](_0x51a546,_0x4d6f3b);}async[_0x26ff02(0x14a)](_0x431bc4){const _0x2e6be1=_0x26ff02;await this[_0x2e6be1(0x19f)][_0x2e6be1(0x1a3)](_0x431bc4);}async[_0x26ff02(0x190)](_0xc0a1e5){const _0x1e627c=_0x26ff02;await this[_0x1e627c(0x1a5)][_0x1e627c(0x149)](_0xc0a1e5);}async[_0x26ff02(0x186)](){const _0x1b94ac=_0x26ff02;this[_0x1b94ac(0x18c)][_0x1b94ac(0x157)](''),this[_0x1b94ac(0x18c)][_0x1b94ac(0x160)](!0x0),await this[_0x1b94ac(0x19f)][_0x1b94ac(0x195)](),this[_0x1b94ac(0x18c)][_0x1b94ac(0x160)](!0x1);}[_0x26ff02(0x163)](){const _0x10d13e=_0x26ff02,_0x541a46=this[_0x10d13e(0x1a5)][_0x10d13e(0x1a8)]?.['id'],_0x1f9838=this[_0x10d13e(0x152)]()[_0x10d13e(0x151)](_0x1e0548=>({'title':_0x1e0548[_0x10d13e(0x156)],'items':_0x1e0548[_0x10d13e(0x17a)][_0x10d13e(0x151)](_0x10bf0e=>({'id':_0x10bf0e['id'],'title':_0x10bf0e[_0x10d13e(0x156)]||_0x6a4575(this[_0x10d13e(0x19e)][_0x10d13e(0x147)],_0x10d13e(0x19b)),'createdAt':new Date(_0x10bf0e[_0x10d13e(0x193)])[_0x10d13e(0x154)](),'active':_0x10bf0e['id']===_0x541a46,'pinned':_0x10bf0e[_0x10d13e(0x17c)]}))}));this[_0x10d13e(0x18c)][_0x10d13e(0x15e)](_0x1f9838);}[_0x26ff02(0x153)](_0x25a3ec,_0x5ca4fe){const _0x1ed475=_0x26ff02;this[_0x1ed475(0x18c)][_0x1ed475(0x171)](_0x25a3ec,_0x5ca4fe,!0x0);}[_0x26ff02(0x194)](_0x5dc68f){const _0x4d3968=_0x26ff02;this[_0x4d3968(0x18c)][_0x4d3968(0x171)](_0x5dc68f,null,!0x1);}[_0x26ff02(0x183)](_0x5c31f6,_0x1d79ff,_0x7b2cab){const _0x451051=_0x26ff02,_0x34fcd2=this[_0x451051(0x197)](_0x1d79ff,_0x7b2cab);this[_0x451051(0x18c)][_0x451051(0x157)](_0x34fcd2),_0x7b2cab&&this[_0x451051(0x194)](_0x7b2cab),this[_0x451051(0x18c)][_0x451051(0x160)](!0x1);}[_0x26ff02(0x197)](_0x5e4d7e,_0x56b4d5){const _0xb2b71a=_0x26ff02,_0xf9dbcc=_0x56b4d5?this[_0xb2b71a(0x19f)][_0xb2b71a(0x15f)](_0x56b4d5):null,_0x40cbed=_0xf9dbcc?.[_0xb2b71a(0x156)]||_0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x19b));switch(_0x5e4d7e){case _0xb2b71a(0x165):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x1a0),_0x40cbed);case _0xb2b71a(0x18b):{const _0x16ca61=_0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xf9dbcc?.[_0xb2b71a(0x17c)]?_0xb2b71a(0x15d):_0xb2b71a(0x14d));return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x167),[_0x16ca61,_0x40cbed]);}case _0xb2b71a(0x1a3):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x181),_0x40cbed);case _0xb2b71a(0x195):case _0xb2b71a(0x161):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x185));default:return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x14e));}}[_0x26ff02(0x152)](){const _0x4f1260=_0x26ff02,_0x4d5ac3=new Date(),_0x49ba20=new Date(_0x4d5ac3[_0x4f1260(0x155)](),_0x4d5ac3[_0x4f1260(0x188)](),_0x4d5ac3[_0x4f1260(0x199)]()),_0x40641f=new Date(_0x49ba20);_0x40641f[_0x4f1260(0x176)](_0x40641f[_0x4f1260(0x199)]()-0x1);const _0x5370d9=new Date(_0x49ba20);_0x5370d9[_0x4f1260(0x176)](_0x5370d9[_0x4f1260(0x199)]()-0xe);const _0xb723b=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'pinned':!0x0}),_0x8589c4=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x49ba20,'to':_0x49ba20}),_0x1d8285=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x40641f,'to':_0x40641f}),_0x2592fb=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x5370d9,'to':_0x40641f}),_0x2cfd4c=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'to':_0x5370d9}),_0x3c1a9a=[];return _0xb723b[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x1a2)),'items':_0xb723b}),_0x8589c4[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x16f)),'items':_0x8589c4}),_0x1d8285[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x19c)),'items':_0x1d8285}),_0x2592fb[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x178)),'items':_0x2592fb}),_0x2cfd4c[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x1a6)),'items':_0x2cfd4c}),_0x3c1a9a;}[_0x26ff02(0x15c)](_0x280735){const _0x1d4df5=_0x26ff02;this[_0x1d4df5(0x18c)][_0x1d4df5(0x189)](_0x280735);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xba9275=_0x8f4c;(function(_0x5b3f77,_0x2e7a07){const _0x35bd65=_0x8f4c,_0x2dfc96=_0x5b3f77();while(!![]){try{const _0x4d89a2=-parseInt(_0x35bd65(0x144))/0x1*(parseInt(_0x35bd65(0x157))/0x2)+parseInt(_0x35bd65(0x135))/0x3*(-parseInt(_0x35bd65(0x134))/0x4)+parseInt(_0x35bd65(0x143))/0x5+parseInt(_0x35bd65(0x13f))/0x6*(-parseInt(_0x35bd65(0x15f))/0x7)+parseInt(_0x35bd65(0x14c))/0x8*(parseInt(_0x35bd65(0x153))/0x9)+parseInt(_0x35bd65(0x141))/0xa*(-parseInt(_0x35bd65(0x148))/0xb)+-parseInt(_0x35bd65(0x158))/0xc*(-parseInt(_0x35bd65(0x142))/0xd);if(_0x4d89a2===_0x2e7a07)break;else _0x2dfc96['push'](_0x2dfc96['shift']());}catch(_0x56ee07){_0x2dfc96['push'](_0x2dfc96['shift']());}}}(_0x5822,0x78f61));import{ContextPlugin as _0x5dfa40}from'ckeditor5/src/core.js';import{AITabs as _0x6438d4}from'../aitabs/aitabs.js';import{IconAIHistory as _0x18e46b}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x47154f}from'./ui/aichathistoryview.js';function _0x8f4c(_0xc79d09,_0x4e6198){const _0x582283=_0x5822();return _0x8f4c=function(_0x8f4c40,_0x26840a){_0x8f4c40=_0x8f4c40-0x131;let _0x476478=_0x582283[_0x8f4c40];return _0x476478;},_0x8f4c(_0xc79d09,_0x4e6198);}import{getTranslation as _0x3a314a}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0xba9275(0x150),_0xba9275(0x15d),_0xba9275(0x15e),_0xba9275(0x13b),_0xba9275(0x14f),_0xba9275(0x15b),_0xba9275(0x14a)];export class AIChatHistoryUI extends _0x5dfa40{static get[_0xba9275(0x15a)](){return[_0x6438d4];}[_0xba9275(0x133)];static get[_0xba9275(0x138)](){const _0x4a95ff=_0xba9275;return _0x4a95ff(0x145);}static get[_0xba9275(0x154)](){return!0x0;}static get[_0xba9275(0x159)](){return!0x0;}constructor(_0x3fcbdb){const _0x4fb380=_0xba9275;super(_0x3fcbdb);const _0x5d8c9a=this[_0x4fb380(0x139)][_0x4fb380(0x137)][_0x4fb380(0x140)](_0x4fb380(0x149));this[_0x4fb380(0x133)]=new _0x47154f(this[_0x4fb380(0x139)][_0x4fb380(0x14b)],_0x5d8c9a[_0x4fb380(0x132)]),this[_0x4fb380(0x133)][_0x4fb380(0x15c)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x5d8c9a[_0x4fb380(0x161)][_0x4fb380(0x131)]({'id':_0x4fb380(0x147),'buttonLabel':_0x3a314a(this[_0x4fb380(0x139)][_0x4fb380(0x14b)],_0x4fb380(0x13c)),'buttonIcon':_0x18e46b,'order':0x0,'content':this[_0x4fb380(0x133)]});}[_0xba9275(0x136)](_0x3a9eb5){const _0x26c2f2=_0xba9275;this[_0x26c2f2(0x133)][_0x26c2f2(0x136)](_0x3a9eb5);}[_0xba9275(0x13d)](_0x56728a){const _0x2cc31f=_0xba9275;this[_0x2cc31f(0x133)][_0x2cc31f(0x14d)](_0x56728a);}[_0xba9275(0x156)](_0x11aad6,_0x43c77a){const _0x44a34c=_0xba9275;this[_0x44a34c(0x133)][_0x44a34c(0x156)](_0x11aad6,_0x43c77a);}[_0xba9275(0x160)](_0x45227f,_0x50490e,_0x1d5105){const _0x16eeb2=_0xba9275;this[_0x16eeb2(0x133)][_0x16eeb2(0x160)](_0x45227f,_0x50490e,_0x1d5105);}[_0xba9275(0x155)](_0x206388){const _0x3eba14=_0xba9275;this[_0x3eba14(0x133)][_0x3eba14(0x151)]=_0x206388;}[_0xba9275(0x152)](_0x5ac9bd){const _0x5d2e2b=_0xba9275;this[_0x5d2e2b(0x133)][_0x5d2e2b(0x146)]=_0x5ac9bd;}[_0xba9275(0x13a)](){const _0x3da6fb=_0xba9275;this[_0x3da6fb(0x133)][_0x3da6fb(0x146)]='';}[_0xba9275(0x13e)](_0x292a90){const _0xd06460=_0xba9275;this[_0xd06460(0x133)][_0xd06460(0x14e)]=_0x292a90;}}function _0x5822(){const _0x580453=['updateItems','setIsMaximized','534GWRQfV','get','1740BTexnk','2279459fyKVrv','3500885IPDBis','2082hRqskY','AIChatHistoryUI','errorMessage','history','49599FbewuC','AITabs','resizeTabs','locale','24useiur','updateHistoryItemsWithCategories','isMaximized','selectConversation','showConversationHistory','isLoading','showError','2167749zPdKbb','isOfficialPlugin','setLoadingSkeleton','updateItemTitle','158zTpiIk','72mukttB','isPremiumPlugin','requires','openChat','delegate','removeConversation','editConversationTitle','57197hUcIEa','updateItemLoadingState','view','addTab','showResizeButton','_historyView','1212392RZGVPy','3gLvzNc','removeHistoryItem','plugins','pluginName','context','hideError','setConversationPinned','AI_CHAT_HISTORY_HEADING'];_0x5822=function(){return _0x580453;};return _0x5822();}
23
+ const _0x3d0d1b=_0xc984;(function(_0x52afaf,_0x20ecb4){const _0x1cdbc3=_0xc984,_0x4edd0b=_0x52afaf();while(!![]){try{const _0x4d311f=parseInt(_0x1cdbc3(0x1c1))/0x1*(-parseInt(_0x1cdbc3(0x1c9))/0x2)+-parseInt(_0x1cdbc3(0x1ce))/0x3+-parseInt(_0x1cdbc3(0x1b3))/0x4+-parseInt(_0x1cdbc3(0x1c8))/0x5*(-parseInt(_0x1cdbc3(0x1b1))/0x6)+-parseInt(_0x1cdbc3(0x1b5))/0x7*(-parseInt(_0x1cdbc3(0x1b8))/0x8)+-parseInt(_0x1cdbc3(0x1d4))/0x9+parseInt(_0x1cdbc3(0x1d8))/0xa*(parseInt(_0x1cdbc3(0x1d0))/0xb);if(_0x4d311f===_0x20ecb4)break;else _0x4edd0b['push'](_0x4edd0b['shift']());}catch(_0x21fe44){_0x4edd0b['push'](_0x4edd0b['shift']());}}}(_0x235f,0xcb483));import{ContextPlugin as _0x1161b2}from'ckeditor5/src/core.js';function _0xc984(_0x473760,_0x24d72f){const _0x235fd5=_0x235f();return _0xc984=function(_0xc98493,_0x1155c8){_0xc98493=_0xc98493-0x1b0;let _0x503d72=_0x235fd5[_0xc98493];return _0x503d72;},_0xc984(_0x473760,_0x24d72f);}import{AITabs as _0x3f729d}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3d6fca}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x162d9f}from'./ui/aichathistoryview.js';import{getTranslation as _0x25a04f}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3d0d1b(0x1c0),_0x3d0d1b(0x1c5),_0x3d0d1b(0x1bb),_0x3d0d1b(0x1da),_0x3d0d1b(0x1b2),_0x3d0d1b(0x1b6),_0x3d0d1b(0x1bd)];export class AIChatHistoryUI extends _0x1161b2{static get[_0x3d0d1b(0x1cd)](){return[_0x3f729d];}[_0x3d0d1b(0x1d5)];static get[_0x3d0d1b(0x1dd)](){const _0x4c36ba=_0x3d0d1b;return _0x4c36ba(0x1de);}static get[_0x3d0d1b(0x1b0)](){return!0x0;}static get[_0x3d0d1b(0x1cb)](){return!0x0;}constructor(_0x24a312){const _0x44262=_0x3d0d1b;super(_0x24a312);const _0x287fba=this[_0x44262(0x1b7)][_0x44262(0x1be)][_0x44262(0x1ca)](_0x44262(0x1d7));this[_0x44262(0x1d5)]=new _0x162d9f(this[_0x44262(0x1b7)][_0x44262(0x1b4)],_0x287fba[_0x44262(0x1ba)]),this[_0x44262(0x1d5)][_0x44262(0x1d2)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x287fba[_0x44262(0x1cc)][_0x44262(0x1c6)]({'id':_0x44262(0x1db),'buttonLabel':_0x25a04f(this[_0x44262(0x1b7)][_0x44262(0x1b4)],_0x44262(0x1cf)),'buttonIcon':_0x3d6fca,'order':0x0,'content':this[_0x44262(0x1d5)]});}[_0x3d0d1b(0x1d3)](_0x4b9d28){const _0x1099ea=_0x3d0d1b;this[_0x1099ea(0x1d5)][_0x1099ea(0x1d3)](_0x4b9d28);}[_0x3d0d1b(0x1c7)](_0x2b4f6d){const _0x2c6337=_0x3d0d1b;this[_0x2c6337(0x1d5)][_0x2c6337(0x1d9)](_0x2b4f6d);}[_0x3d0d1b(0x1b9)](_0x2ed138,_0x378488){const _0xb4d390=_0x3d0d1b;this[_0xb4d390(0x1d5)][_0xb4d390(0x1b9)](_0x2ed138,_0x378488);}[_0x3d0d1b(0x1d6)](_0x3d7368,_0x3132c1,_0x2ceb33){const _0x2dd3c7=_0x3d0d1b;this[_0x2dd3c7(0x1d5)][_0x2dd3c7(0x1d6)](_0x3d7368,_0x3132c1,_0x2ceb33);}[_0x3d0d1b(0x1bc)](_0xde587e){const _0x173145=_0x3d0d1b;this[_0x173145(0x1d5)][_0x173145(0x1bf)]=_0xde587e;}[_0x3d0d1b(0x1c4)](_0x138e08){const _0x8fa188=_0x3d0d1b;this[_0x8fa188(0x1d5)][_0x8fa188(0x1c2)]=_0x138e08;}[_0x3d0d1b(0x1c3)](){const _0x279c86=_0x3d0d1b;this[_0x279c86(0x1d5)][_0x279c86(0x1c2)]='';}[_0x3d0d1b(0x1dc)](_0x1729ab){const _0x5252ac=_0x3d0d1b;this[_0x5252ac(0x1d5)][_0x5252ac(0x1d1)]=_0x1729ab;}}function _0x235f(){const _0x48ad32=['showConversationHistory','499epFZKP','errorMessage','hideError','showError','removeConversation','addTab','updateItems','25BQHtrx','6170uTViip','get','isPremiumPlugin','view','requires','1927884rZDENo','AI_CHAT_HISTORY_HEADING','319SZhrKx','isMaximized','delegate','removeHistoryItem','243999mcAGUN','_historyView','updateItemLoadingState','AITabs','1180390xRlFvg','updateHistoryItemsWithCategories','setConversationPinned','history','setIsMaximized','pluginName','AIChatHistoryUI','isOfficialPlugin','136326NscwwW','selectConversation','6099548QADjMw','locale','14ZWWrIa','openChat','context','4119792bOlivf','updateItemTitle','showResizeButton','editConversationTitle','setLoadingSkeleton','resizeTabs','plugins','isLoading'];_0x235f=function(){return _0x48ad32;};return _0x235f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d8a0f=_0x359d;(function(_0x2f3d44,_0x2ca296){const _0x58d500=_0x359d,_0x9cba31=_0x2f3d44();while(!![]){try{const _0x5a88d0=-parseInt(_0x58d500(0xaa))/0x1+parseInt(_0x58d500(0xa0))/0x2+-parseInt(_0x58d500(0xc0))/0x3+parseInt(_0x58d500(0x9f))/0x4+-parseInt(_0x58d500(0xb8))/0x5+parseInt(_0x58d500(0xb5))/0x6*(parseInt(_0x58d500(0xa8))/0x7)+parseInt(_0x58d500(0xca))/0x8;if(_0x5a88d0===_0x2ca296)break;else _0x9cba31['push'](_0x9cba31['shift']());}catch(_0x2b81b9){_0x9cba31['push'](_0x9cba31['shift']());}}}(_0x3380,0x1a719));import{EmitterMixin as _0x46c559}from'ckeditor5/src/utils.js';function _0x3380(){const _0x4df884=['itemsLoaded','splice','getItem','updatePinned','getFullYear','deleteConversation','fire','3493njILDi','map','160013gxenUo','removeItem','updateTitle','updateConversation','group','pinned','findIndex','find','itemUpdated','getConversations','getItems','1902xkYodq','updateItemTitle','filter','1013485OfTxua','init','createdAt','updateItemPinned','itemRemoved','addItem','loadItems','push','191904yraxWE','fetchConversations','getMonth','getResult','getDate','execute','connector','from','items','error','1563672qxCFAz','getTime','360332XXQxhW','182532MAPCDi'];_0x3380=function(){return _0x4df884;};return _0x3380();}function _0x359d(_0x4a379d,_0x1f6e1c){const _0x3380c5=_0x3380();return _0x359d=function(_0x359dc7,_0x55959e){_0x359dc7=_0x359dc7-0x9e;let _0x1cbb78=_0x3380c5[_0x359dc7];return _0x1cbb78;},_0x359d(_0x4a379d,_0x1f6e1c);}import{AIChatHistoryItem as _0x2611b3}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x46c559(){[_0x2d8a0f(0xc8)]=[];[_0x2d8a0f(0xc6)];[_0x2d8a0f(0xae)];constructor({connector:_0x5783f3,group:_0x2d02e1}){const _0x2dd0a4=_0x2d8a0f;super(),this[_0x2dd0a4(0xc6)]=_0x5783f3,this[_0x2dd0a4(0xae)]=_0x2d02e1;}async[_0x2d8a0f(0xb9)](){const _0x1305d2=_0x2d8a0f;try{const _0x19115d=this[_0x1305d2(0xc6)][_0x1305d2(0xc1)](this[_0x1305d2(0xae)]),_0x3902d8=await _0x19115d[_0x1305d2(0xb3)]();this[_0x1305d2(0xbe)](_0x3902d8);}catch(_0x301ec6){this[_0x1305d2(0xa7)](_0x1305d2(0xc9),{'error':_0x301ec6,'operation':_0x1305d2(0xb9)});}}[_0x2d8a0f(0xbd)](_0x18cb8e){const _0x276e5e=_0x2d8a0f;this[_0x276e5e(0xc8)][_0x276e5e(0xbf)](_0x18cb8e);}async[_0x2d8a0f(0xab)](_0x9403f0){const _0x3661b7=_0x2d8a0f,_0x3e9ad5=this[_0x3661b7(0xc8)][_0x3661b7(0xb0)](_0x4311ed=>_0x4311ed['id']===_0x9403f0);if(-0x1===_0x3e9ad5)return!0x1;try{return await this[_0x3661b7(0xc6)][_0x3661b7(0xa6)](_0x9403f0)[_0x3661b7(0xc5)](),this[_0x3661b7(0xc8)][_0x3661b7(0xa2)](_0x3e9ad5,0x1),this[_0x3661b7(0xa7)](_0x3661b7(0xbc),{'itemId':_0x9403f0}),!0x0;}catch(_0x542117){return this[_0x3661b7(0xa7)](_0x3661b7(0xc9),{'error':_0x542117,'operation':_0x3661b7(0xab),'itemId':_0x9403f0}),!0x1;}}[_0x2d8a0f(0xa3)](_0x2e30b2){const _0x5ce9ac=_0x2d8a0f;return this[_0x5ce9ac(0xc8)][_0x5ce9ac(0xb1)](_0x34fa4e=>_0x34fa4e['id']===_0x2e30b2);}async[_0x2d8a0f(0xb6)](_0x4e7ddd,_0x4e4d92){const _0x29267c=_0x2d8a0f,_0x512131=this[_0x29267c(0xa3)](_0x4e7ddd);if(!_0x512131)return!0x1;try{return await this[_0x29267c(0xc6)][_0x29267c(0xad)](_0x4e7ddd,{'title':_0x4e4d92})[_0x29267c(0xc3)](),_0x512131[_0x29267c(0xac)](_0x4e4d92),this[_0x29267c(0xa7)](_0x29267c(0xb2),{'itemId':_0x4e7ddd,'updates':{'title':_0x4e4d92}}),!0x0;}catch(_0x29ffad){return this[_0x29267c(0xa7)](_0x29267c(0xc9),{'error':_0x29ffad,'operation':_0x29267c(0xb6),'itemId':_0x4e7ddd}),!0x1;}}async[_0x2d8a0f(0xbb)](_0xbff32a,_0x240d25){const _0xa45210=_0x2d8a0f,_0x3476d0=this[_0xa45210(0xa3)](_0xbff32a);if(!_0x3476d0)return!0x1;try{return await this[_0xa45210(0xc6)][_0xa45210(0xad)](_0xbff32a,{'pinned':_0x240d25})[_0xa45210(0xc3)](),_0x3476d0[_0xa45210(0xa4)](_0x240d25),this[_0xa45210(0xa7)](_0xa45210(0xb2),{'itemId':_0xbff32a,'updates':{'pinned':_0x240d25}}),!0x0;}catch(_0x5dd987){return this[_0xa45210(0xa7)](_0xa45210(0xc9),{'error':_0x5dd987,'operation':_0xa45210(0xbb),'itemId':_0xbff32a}),!0x1;}}[_0x2d8a0f(0xbe)](_0x329ffc){const _0x3aa96f=_0x2d8a0f;try{this[_0x3aa96f(0xc8)]=[],_0x329ffc[_0x3aa96f(0xa9)](_0x332636=>{const _0x5535e0=_0x3aa96f;this[_0x5535e0(0xbd)](new _0x2611b3(_0x332636));}),this[_0x3aa96f(0xa7)](_0x3aa96f(0xa1),{'items':[...this[_0x3aa96f(0xc8)]]});}catch(_0x15ac38){this[_0x3aa96f(0xa7)](_0x3aa96f(0xc9),{'error':_0x15ac38,'operation':_0x3aa96f(0xbe)});}}[_0x2d8a0f(0xb4)](_0x799524={}){const _0x56c0ef=_0x2d8a0f,_0x233def=void 0x0!==_0x799524[_0x56c0ef(0xaf)]&&_0x799524[_0x56c0ef(0xaf)],_0x53c194=_0x799524[_0x56c0ef(0xc7)]?new Date(_0x799524[_0x56c0ef(0xc7)][_0x56c0ef(0xa5)](),_0x799524[_0x56c0ef(0xc7)][_0x56c0ef(0xc2)](),_0x799524[_0x56c0ef(0xc7)][_0x56c0ef(0xc4)]()):null,_0x51a28d=_0x799524['to']?new Date(_0x799524['to'][_0x56c0ef(0xa5)](),_0x799524['to'][_0x56c0ef(0xc2)](),_0x799524['to'][_0x56c0ef(0xc4)]()):null;return this[_0x56c0ef(0xc8)][_0x56c0ef(0xb7)](_0x8c10dc=>{const _0x19e493=_0x56c0ef;if(_0x8c10dc[_0x19e493(0xaf)]!==_0x233def)return!0x1;if(_0x51a28d){const _0x4a067e=new Date(_0x8c10dc[_0x19e493(0xba)][_0x19e493(0xa5)](),_0x8c10dc[_0x19e493(0xba)][_0x19e493(0xc2)](),_0x8c10dc[_0x19e493(0xba)][_0x19e493(0xc4)]());return _0x53c194?_0x53c194[_0x19e493(0x9e)]()===_0x51a28d[_0x19e493(0x9e)]()?_0x4a067e[_0x19e493(0x9e)]()===_0x53c194[_0x19e493(0x9e)]():_0x4a067e<_0x51a28d&&_0x4a067e>=_0x53c194:_0x4a067e<_0x51a28d;}return!0x0;});}}
23
+ function _0x23d5(_0x199fdf,_0x59d21e){const _0x2610fb=_0x2610();return _0x23d5=function(_0x23d5c2,_0x184371){_0x23d5c2=_0x23d5c2-0x12b;let _0x4a7000=_0x2610fb[_0x23d5c2];return _0x4a7000;},_0x23d5(_0x199fdf,_0x59d21e);}const _0x2310ac=_0x23d5;(function(_0x5eecf9,_0x5071a7){const _0x1e1252=_0x23d5,_0x3dc659=_0x5eecf9();while(!![]){try{const _0x5a7c77=parseInt(_0x1e1252(0x133))/0x1+parseInt(_0x1e1252(0x137))/0x2+-parseInt(_0x1e1252(0x130))/0x3*(-parseInt(_0x1e1252(0x150))/0x4)+-parseInt(_0x1e1252(0x141))/0x5+parseInt(_0x1e1252(0x144))/0x6+-parseInt(_0x1e1252(0x13d))/0x7*(parseInt(_0x1e1252(0x159))/0x8)+parseInt(_0x1e1252(0x12f))/0x9*(-parseInt(_0x1e1252(0x13a))/0xa);if(_0x5a7c77===_0x5071a7)break;else _0x3dc659['push'](_0x3dc659['shift']());}catch(_0x33e9e0){_0x3dc659['push'](_0x3dc659['shift']());}}}(_0x2610,0xe2b8b));import{EmitterMixin as _0x123bd6}from'ckeditor5/src/utils.js';function _0x2610(){const _0x4424c2=['group','removeItem','itemsLoaded','updateConversation','connector','init','getItem','getMonth','find','map','loadItems','4GIgPSm','getDate','findIndex','getResult','getConversations','createdAt','pinned','error','itemRemoved','16KnGmMS','execute','splice','getItems','fetchConversations','68832xTVewc','1978401lEzYuH','itemUpdated','getFullYear','255049QkMFYO','updateItemTitle','updateTitle','items','3710492NYznEe','getTime','updateItemPinned','1600DITeUo','addItem','push','2319618wBzHYo','from','updatePinned','fire','8595020bfpwmR','deleteConversation','filter','10585926tfppye'];_0x2610=function(){return _0x4424c2;};return _0x2610();}import{AIChatHistoryItem as _0x9708ea}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x123bd6(){[_0x2310ac(0x136)]=[];[_0x2310ac(0x149)];[_0x2310ac(0x145)];constructor({connector:_0x8e5eae,group:_0x55d069}){const _0x103d89=_0x2310ac;super(),this[_0x103d89(0x149)]=_0x8e5eae,this[_0x103d89(0x145)]=_0x55d069;}async[_0x2310ac(0x14a)](){const _0x4c60fe=_0x2310ac;try{const _0x39868d=this[_0x4c60fe(0x149)][_0x4c60fe(0x12e)](this[_0x4c60fe(0x145)]),_0x58c6a1=await _0x39868d[_0x4c60fe(0x154)]();this[_0x4c60fe(0x14f)](_0x58c6a1);}catch(_0x2ecde0){this[_0x4c60fe(0x140)](_0x4c60fe(0x157),{'error':_0x2ecde0,'operation':_0x4c60fe(0x14a)});}}[_0x2310ac(0x13b)](_0x138615){const _0xc58899=_0x2310ac;this[_0xc58899(0x136)][_0xc58899(0x13c)](_0x138615);}async[_0x2310ac(0x146)](_0x31beb2){const _0x4f6aa6=_0x2310ac,_0x23c840=this[_0x4f6aa6(0x136)][_0x4f6aa6(0x152)](_0x461c0c=>_0x461c0c['id']===_0x31beb2);if(-0x1===_0x23c840)return!0x1;try{return await this[_0x4f6aa6(0x149)][_0x4f6aa6(0x142)](_0x31beb2)[_0x4f6aa6(0x12b)](),this[_0x4f6aa6(0x136)][_0x4f6aa6(0x12c)](_0x23c840,0x1),this[_0x4f6aa6(0x140)](_0x4f6aa6(0x158),{'itemId':_0x31beb2}),!0x0;}catch(_0x2b1d27){return this[_0x4f6aa6(0x140)](_0x4f6aa6(0x157),{'error':_0x2b1d27,'operation':_0x4f6aa6(0x146),'itemId':_0x31beb2}),!0x1;}}[_0x2310ac(0x14b)](_0x283620){const _0x1aa847=_0x2310ac;return this[_0x1aa847(0x136)][_0x1aa847(0x14d)](_0x4e2641=>_0x4e2641['id']===_0x283620);}async[_0x2310ac(0x134)](_0x4e26eb,_0x563e91){const _0x18bb2a=_0x2310ac,_0x2acb11=this[_0x18bb2a(0x14b)](_0x4e26eb);if(!_0x2acb11)return!0x1;try{return await this[_0x18bb2a(0x149)][_0x18bb2a(0x148)](_0x4e26eb,{'title':_0x563e91})[_0x18bb2a(0x153)](),_0x2acb11[_0x18bb2a(0x135)](_0x563e91),this[_0x18bb2a(0x140)](_0x18bb2a(0x131),{'itemId':_0x4e26eb,'updates':{'title':_0x563e91}}),!0x0;}catch(_0x28f381){return this[_0x18bb2a(0x140)](_0x18bb2a(0x157),{'error':_0x28f381,'operation':_0x18bb2a(0x134),'itemId':_0x4e26eb}),!0x1;}}async[_0x2310ac(0x139)](_0x3329c7,_0x5a16c7){const _0x5cb89a=_0x2310ac,_0x1461b1=this[_0x5cb89a(0x14b)](_0x3329c7);if(!_0x1461b1)return!0x1;try{return await this[_0x5cb89a(0x149)][_0x5cb89a(0x148)](_0x3329c7,{'pinned':_0x5a16c7})[_0x5cb89a(0x153)](),_0x1461b1[_0x5cb89a(0x13f)](_0x5a16c7),this[_0x5cb89a(0x140)](_0x5cb89a(0x131),{'itemId':_0x3329c7,'updates':{'pinned':_0x5a16c7}}),!0x0;}catch(_0x83a32a){return this[_0x5cb89a(0x140)](_0x5cb89a(0x157),{'error':_0x83a32a,'operation':_0x5cb89a(0x139),'itemId':_0x3329c7}),!0x1;}}[_0x2310ac(0x14f)](_0x1da50c){const _0xfdc710=_0x2310ac;try{this[_0xfdc710(0x136)]=[],_0x1da50c[_0xfdc710(0x14e)](_0x527692=>{const _0x384bf9=_0xfdc710;this[_0x384bf9(0x13b)](new _0x9708ea(_0x527692));}),this[_0xfdc710(0x140)](_0xfdc710(0x147),{'items':[...this[_0xfdc710(0x136)]]});}catch(_0x2e16a3){this[_0xfdc710(0x140)](_0xfdc710(0x157),{'error':_0x2e16a3,'operation':_0xfdc710(0x14f)});}}[_0x2310ac(0x12d)](_0x72b506={}){const _0x2df8f3=_0x2310ac,_0x371e75=void 0x0!==_0x72b506[_0x2df8f3(0x156)]&&_0x72b506[_0x2df8f3(0x156)],_0x1fa8f3=_0x72b506[_0x2df8f3(0x13e)]?new Date(_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x132)](),_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x14c)](),_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x151)]()):null,_0x2dd2c5=_0x72b506['to']?new Date(_0x72b506['to'][_0x2df8f3(0x132)](),_0x72b506['to'][_0x2df8f3(0x14c)](),_0x72b506['to'][_0x2df8f3(0x151)]()):null;return this[_0x2df8f3(0x136)][_0x2df8f3(0x143)](_0x5a731c=>{const _0x4f0002=_0x2df8f3;if(_0x5a731c[_0x4f0002(0x156)]!==_0x371e75)return!0x1;if(_0x2dd2c5){const _0x31baf7=new Date(_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x132)](),_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x14c)](),_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x151)]());return _0x1fa8f3?_0x1fa8f3[_0x4f0002(0x138)]()===_0x2dd2c5[_0x4f0002(0x138)]()?_0x31baf7[_0x4f0002(0x138)]()===_0x1fa8f3[_0x4f0002(0x138)]():_0x31baf7<_0x2dd2c5&&_0x31baf7>=_0x1fa8f3:_0x31baf7<_0x2dd2c5;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x51276f=_0x53ee;(function(_0x11df91,_0x4168a3){var _0x8dadf5=_0x53ee,_0x47413e=_0x11df91();while(!![]){try{var _0x303ab5=parseInt(_0x8dadf5(0x1c8))/0x1*(-parseInt(_0x8dadf5(0x1c7))/0x2)+-parseInt(_0x8dadf5(0x1d1))/0x3*(-parseInt(_0x8dadf5(0x1cc))/0x4)+-parseInt(_0x8dadf5(0x1c9))/0x5*(-parseInt(_0x8dadf5(0x1ce))/0x6)+-parseInt(_0x8dadf5(0x1c2))/0x7*(-parseInt(_0x8dadf5(0x1c0))/0x8)+parseInt(_0x8dadf5(0x1cd))/0x9*(-parseInt(_0x8dadf5(0x1d2))/0xa)+parseInt(_0x8dadf5(0x1d3))/0xb*(parseInt(_0x8dadf5(0x1cb))/0xc)+-parseInt(_0x8dadf5(0x1d4))/0xd*(parseInt(_0x8dadf5(0x1cf))/0xe);if(_0x303ab5===_0x4168a3)break;else _0x47413e['push'](_0x47413e['shift']());}catch(_0x47f47e){_0x47413e['push'](_0x47413e['shift']());}}}(_0x37f8,0xb9f5c));import{ObservableMixin as _0x3adeea}from'ckeditor5/src/utils.js';function _0x53ee(_0x454040,_0x2842eb){var _0x37f87f=_0x37f8();return _0x53ee=function(_0x53eed1,_0x40d91d){_0x53eed1=_0x53eed1-0x1c0;var _0x28d04f=_0x37f87f[_0x53eed1];return _0x28d04f;},_0x53ee(_0x454040,_0x2842eb);}import{escape as _0x5e9d94}from'es-toolkit/compat';function _0x37f8(){var _0x1a6e85=['6458uKyHIB','389FYtlBi','11745IRflJC','updatePinned','12QmeHZb','4dKMmVa','4599657ohXHaO','426kCHPdI','14VnTtCB','createdAt','4089678HBiWve','10eRZBGe','9058489FNPObz','4714697pOIwCY','24hhKeoo','title','1255359PaxVDQ','pinned','updatedAt','set','updateTitle'];_0x37f8=function(){return _0x1a6e85;};return _0x37f8();}export class AIChatHistoryItem extends _0x3adeea(){['id'];[_0x51276f(0x1d0)];constructor({id:_0x5c26fd,title:_0x56ebc7,createdAt:_0x171817,updatedAt:_0x392636,pinned:_0xca9f02}){var _0x2269b3=_0x51276f;super(),this['id']=_0x5c26fd,this[_0x2269b3(0x1d0)]=new Date(_0x171817),this[_0x2269b3(0x1c5)](_0x2269b3(0x1c1),_0x56ebc7),this[_0x2269b3(0x1c5)](_0x2269b3(0x1c4),_0x392636?new Date(_0x392636):null),this[_0x2269b3(0x1c5)](_0x2269b3(0x1c3),_0xca9f02||!0x1);}[_0x51276f(0x1c6)](_0x333f04){var _0x72b796=_0x51276f;this[_0x72b796(0x1c5)](_0x72b796(0x1c1),_0x5e9d94(_0x333f04)),this[_0x72b796(0x1c4)]=new Date();}[_0x51276f(0x1ca)](_0x3febc5){var _0x505dd1=_0x51276f;this[_0x505dd1(0x1c5)](_0x505dd1(0x1c3),_0x3febc5),this[_0x505dd1(0x1c4)]=new Date();}}
23
+ var _0x25145f=_0x4791;(function(_0x346075,_0x178b01){var _0x4059cf=_0x4791,_0x5b12d8=_0x346075();while(!![]){try{var _0x498c68=-parseInt(_0x4059cf(0xda))/0x1+-parseInt(_0x4059cf(0xe2))/0x2+-parseInt(_0x4059cf(0xe6))/0x3*(-parseInt(_0x4059cf(0xdf))/0x4)+parseInt(_0x4059cf(0xdd))/0x5*(parseInt(_0x4059cf(0xe3))/0x6)+-parseInt(_0x4059cf(0xea))/0x7*(-parseInt(_0x4059cf(0xe1))/0x8)+parseInt(_0x4059cf(0xe4))/0x9*(-parseInt(_0x4059cf(0xe7))/0xa)+parseInt(_0x4059cf(0xe9))/0xb;if(_0x498c68===_0x178b01)break;else _0x5b12d8['push'](_0x5b12d8['shift']());}catch(_0x5d6b3b){_0x5b12d8['push'](_0x5b12d8['shift']());}}}(_0x493d,0x4dd56));function _0x4791(_0x39c841,_0x11aadf){var _0x493dae=_0x493d();return _0x4791=function(_0x47913e,_0xcc0d8c){_0x47913e=_0x47913e-0xd9;var _0x2ed3fa=_0x493dae[_0x47913e];return _0x2ed3fa;},_0x4791(_0x39c841,_0x11aadf);}import{ObservableMixin as _0x487228}from'ckeditor5/src/utils.js';function _0x493d(){var _0x11eb8c=['46313CtyKwC','title','updatedAt','4075qsltzu','set','64508eMuedp','updatePinned','16776keeSYe','504298YiGhag','1464jxEqnm','54ESoQAo','updateTitle','15mrtuip','666310rvqaQa','pinned','5967918nLYaFx','651VBzIuO','createdAt'];_0x493d=function(){return _0x11eb8c;};return _0x493d();}import{escape as _0x2673cf}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x487228(){['id'];[_0x25145f(0xd9)];constructor({id:_0x40a1e3,title:_0x25ff1c,createdAt:_0x6f263a,updatedAt:_0x239613,pinned:_0x4c7238}){var _0x49efb0=_0x25145f;super(),this['id']=_0x40a1e3,this[_0x49efb0(0xd9)]=new Date(_0x6f263a),this[_0x49efb0(0xde)](_0x49efb0(0xdb),_0x25ff1c),this[_0x49efb0(0xde)](_0x49efb0(0xdc),_0x239613?new Date(_0x239613):null),this[_0x49efb0(0xde)](_0x49efb0(0xe8),_0x4c7238||!0x1);}[_0x25145f(0xe5)](_0x33019b){var _0x3c0646=_0x25145f;this[_0x3c0646(0xde)](_0x3c0646(0xdb),_0x2673cf(_0x33019b)),this[_0x3c0646(0xdc)]=new Date();}[_0x25145f(0xe0)](_0x312c0e){var _0x597a05=_0x25145f;this[_0x597a05(0xde)](_0x597a05(0xe8),_0x312c0e),this[_0x597a05(0xdc)]=new Date();}}