@ckeditor/ckeditor5-ai 47.5.0 → 47.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (515) hide show
  1. package/build/966.ai.js +5 -0
  2. package/build/ai.js +1 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/en.js +1 -0
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/dist/index-editor.css +387 -403
  77. package/dist/index.css +441 -413
  78. package/dist/index.js +5 -5
  79. package/dist/translations/af.js +1 -1
  80. package/dist/translations/af.umd.js +1 -1
  81. package/dist/translations/ar.js +1 -1
  82. package/dist/translations/ar.umd.js +1 -1
  83. package/dist/translations/ast.js +1 -1
  84. package/dist/translations/ast.umd.js +1 -1
  85. package/dist/translations/az.js +1 -1
  86. package/dist/translations/az.umd.js +1 -1
  87. package/dist/translations/be.js +1 -1
  88. package/dist/translations/be.umd.js +1 -1
  89. package/dist/translations/bg.js +1 -1
  90. package/dist/translations/bg.umd.js +1 -1
  91. package/dist/translations/bn.js +1 -1
  92. package/dist/translations/bn.umd.js +1 -1
  93. package/dist/translations/bs.js +1 -1
  94. package/dist/translations/bs.umd.js +1 -1
  95. package/dist/translations/ca.js +1 -1
  96. package/dist/translations/ca.umd.js +1 -1
  97. package/dist/translations/cs.js +1 -1
  98. package/dist/translations/cs.umd.js +1 -1
  99. package/dist/translations/da.js +1 -1
  100. package/dist/translations/da.umd.js +1 -1
  101. package/dist/translations/de-ch.js +1 -1
  102. package/dist/translations/de-ch.umd.js +1 -1
  103. package/dist/translations/de.js +1 -1
  104. package/dist/translations/de.umd.js +1 -1
  105. package/dist/translations/el.js +1 -1
  106. package/dist/translations/el.umd.js +1 -1
  107. package/dist/translations/en-au.js +1 -1
  108. package/dist/translations/en-au.umd.js +1 -1
  109. package/dist/translations/en-gb.js +1 -1
  110. package/dist/translations/en-gb.umd.js +1 -1
  111. package/dist/translations/en.js +1 -1
  112. package/dist/translations/en.umd.js +1 -1
  113. package/dist/translations/eo.js +1 -1
  114. package/dist/translations/eo.umd.js +1 -1
  115. package/dist/translations/es-co.js +1 -1
  116. package/dist/translations/es-co.umd.js +1 -1
  117. package/dist/translations/es.js +1 -1
  118. package/dist/translations/es.umd.js +1 -1
  119. package/dist/translations/et.js +1 -1
  120. package/dist/translations/et.umd.js +1 -1
  121. package/dist/translations/eu.js +1 -1
  122. package/dist/translations/eu.umd.js +1 -1
  123. package/dist/translations/fa.js +1 -1
  124. package/dist/translations/fa.umd.js +1 -1
  125. package/dist/translations/fi.js +1 -1
  126. package/dist/translations/fi.umd.js +1 -1
  127. package/dist/translations/fr.js +1 -1
  128. package/dist/translations/fr.umd.js +1 -1
  129. package/dist/translations/gl.js +1 -1
  130. package/dist/translations/gl.umd.js +1 -1
  131. package/dist/translations/gu.js +1 -1
  132. package/dist/translations/gu.umd.js +1 -1
  133. package/dist/translations/he.js +1 -1
  134. package/dist/translations/he.umd.js +1 -1
  135. package/dist/translations/hi.js +1 -1
  136. package/dist/translations/hi.umd.js +1 -1
  137. package/dist/translations/hr.js +1 -1
  138. package/dist/translations/hr.umd.js +1 -1
  139. package/dist/translations/hu.js +1 -1
  140. package/dist/translations/hu.umd.js +1 -1
  141. package/dist/translations/hy.js +1 -1
  142. package/dist/translations/hy.umd.js +1 -1
  143. package/dist/translations/id.js +1 -1
  144. package/dist/translations/id.umd.js +1 -1
  145. package/dist/translations/it.js +1 -1
  146. package/dist/translations/it.umd.js +1 -1
  147. package/dist/translations/ja.js +1 -1
  148. package/dist/translations/ja.umd.js +1 -1
  149. package/dist/translations/jv.js +1 -1
  150. package/dist/translations/jv.umd.js +1 -1
  151. package/dist/translations/kk.js +1 -1
  152. package/dist/translations/kk.umd.js +1 -1
  153. package/dist/translations/km.js +1 -1
  154. package/dist/translations/km.umd.js +1 -1
  155. package/dist/translations/kn.js +1 -1
  156. package/dist/translations/kn.umd.js +1 -1
  157. package/dist/translations/ko.js +1 -1
  158. package/dist/translations/ko.umd.js +1 -1
  159. package/dist/translations/ku.js +1 -1
  160. package/dist/translations/ku.umd.js +1 -1
  161. package/dist/translations/lt.js +1 -1
  162. package/dist/translations/lt.umd.js +1 -1
  163. package/dist/translations/lv.js +1 -1
  164. package/dist/translations/lv.umd.js +1 -1
  165. package/dist/translations/ms.js +1 -1
  166. package/dist/translations/ms.umd.js +1 -1
  167. package/dist/translations/nb.js +1 -1
  168. package/dist/translations/nb.umd.js +1 -1
  169. package/dist/translations/ne.js +1 -1
  170. package/dist/translations/ne.umd.js +1 -1
  171. package/dist/translations/nl.js +1 -1
  172. package/dist/translations/nl.umd.js +1 -1
  173. package/dist/translations/no.js +1 -1
  174. package/dist/translations/no.umd.js +1 -1
  175. package/dist/translations/oc.js +1 -1
  176. package/dist/translations/oc.umd.js +1 -1
  177. package/dist/translations/pl.js +1 -1
  178. package/dist/translations/pl.umd.js +1 -1
  179. package/dist/translations/pt-br.js +1 -1
  180. package/dist/translations/pt-br.umd.js +1 -1
  181. package/dist/translations/pt.js +1 -1
  182. package/dist/translations/pt.umd.js +1 -1
  183. package/dist/translations/ro.js +1 -1
  184. package/dist/translations/ro.umd.js +1 -1
  185. package/dist/translations/ru.js +1 -1
  186. package/dist/translations/ru.umd.js +1 -1
  187. package/dist/translations/si.js +1 -1
  188. package/dist/translations/si.umd.js +1 -1
  189. package/dist/translations/sk.js +1 -1
  190. package/dist/translations/sk.umd.js +1 -1
  191. package/dist/translations/sl.js +1 -1
  192. package/dist/translations/sl.umd.js +1 -1
  193. package/dist/translations/sq.js +1 -1
  194. package/dist/translations/sq.umd.js +1 -1
  195. package/dist/translations/sr-latn.js +1 -1
  196. package/dist/translations/sr-latn.umd.js +1 -1
  197. package/dist/translations/sr.js +1 -1
  198. package/dist/translations/sr.umd.js +1 -1
  199. package/dist/translations/sv.js +1 -1
  200. package/dist/translations/sv.umd.js +1 -1
  201. package/dist/translations/th.js +1 -1
  202. package/dist/translations/th.umd.js +1 -1
  203. package/dist/translations/ti.js +1 -1
  204. package/dist/translations/ti.umd.js +1 -1
  205. package/dist/translations/tk.js +1 -1
  206. package/dist/translations/tk.umd.js +1 -1
  207. package/dist/translations/tr.js +1 -1
  208. package/dist/translations/tr.umd.js +1 -1
  209. package/dist/translations/tt.js +1 -1
  210. package/dist/translations/tt.umd.js +1 -1
  211. package/dist/translations/ug.js +1 -1
  212. package/dist/translations/ug.umd.js +1 -1
  213. package/dist/translations/uk.js +1 -1
  214. package/dist/translations/uk.umd.js +1 -1
  215. package/dist/translations/ur.js +1 -1
  216. package/dist/translations/ur.umd.js +1 -1
  217. package/dist/translations/uz.js +1 -1
  218. package/dist/translations/uz.umd.js +1 -1
  219. package/dist/translations/vi.js +1 -1
  220. package/dist/translations/vi.umd.js +1 -1
  221. package/dist/translations/zh-cn.js +1 -1
  222. package/dist/translations/zh-cn.umd.js +1 -1
  223. package/dist/translations/zh.js +1 -1
  224. package/dist/translations/zh.umd.js +1 -1
  225. package/lang/contexts.json +1 -0
  226. package/lang/translations/af.po +8 -4
  227. package/lang/translations/ar.po +8 -4
  228. package/lang/translations/ast.po +8 -4
  229. package/lang/translations/az.po +8 -4
  230. package/lang/translations/be.po +8 -4
  231. package/lang/translations/bg.po +8 -4
  232. package/lang/translations/bn.po +8 -4
  233. package/lang/translations/bs.po +8 -4
  234. package/lang/translations/ca.po +8 -4
  235. package/lang/translations/cs.po +8 -4
  236. package/lang/translations/da.po +8 -4
  237. package/lang/translations/de-ch.po +8 -4
  238. package/lang/translations/de.po +8 -4
  239. package/lang/translations/el.po +8 -4
  240. package/lang/translations/en-au.po +8 -4
  241. package/lang/translations/en-gb.po +8 -4
  242. package/lang/translations/en.po +8 -4
  243. package/lang/translations/eo.po +8 -4
  244. package/lang/translations/es-co.po +8 -4
  245. package/lang/translations/es.po +8 -4
  246. package/lang/translations/et.po +8 -4
  247. package/lang/translations/eu.po +8 -4
  248. package/lang/translations/fa.po +8 -4
  249. package/lang/translations/fi.po +8 -4
  250. package/lang/translations/fr.po +8 -4
  251. package/lang/translations/gl.po +8 -4
  252. package/lang/translations/gu.po +8 -4
  253. package/lang/translations/he.po +8 -4
  254. package/lang/translations/hi.po +8 -4
  255. package/lang/translations/hr.po +8 -4
  256. package/lang/translations/hu.po +8 -4
  257. package/lang/translations/hy.po +8 -4
  258. package/lang/translations/id.po +8 -4
  259. package/lang/translations/it.po +8 -4
  260. package/lang/translations/ja.po +8 -4
  261. package/lang/translations/jv.po +8 -4
  262. package/lang/translations/kk.po +8 -4
  263. package/lang/translations/km.po +8 -4
  264. package/lang/translations/kn.po +8 -4
  265. package/lang/translations/ko.po +8 -4
  266. package/lang/translations/ku.po +8 -4
  267. package/lang/translations/lt.po +8 -4
  268. package/lang/translations/lv.po +8 -4
  269. package/lang/translations/ms.po +8 -4
  270. package/lang/translations/nb.po +8 -4
  271. package/lang/translations/ne.po +8 -4
  272. package/lang/translations/nl.po +8 -4
  273. package/lang/translations/no.po +8 -4
  274. package/lang/translations/oc.po +8 -4
  275. package/lang/translations/pl.po +8 -4
  276. package/lang/translations/pt-br.po +8 -4
  277. package/lang/translations/pt.po +8 -4
  278. package/lang/translations/ro.po +8 -4
  279. package/lang/translations/ru.po +8 -4
  280. package/lang/translations/si.po +8 -4
  281. package/lang/translations/sk.po +8 -4
  282. package/lang/translations/sl.po +8 -4
  283. package/lang/translations/sq.po +8 -4
  284. package/lang/translations/sr-latn.po +8 -4
  285. package/lang/translations/sr.po +8 -4
  286. package/lang/translations/sv.po +8 -4
  287. package/lang/translations/th.po +8 -4
  288. package/lang/translations/ti.po +8 -4
  289. package/lang/translations/tk.po +8 -4
  290. package/lang/translations/tr.po +8 -4
  291. package/lang/translations/tt.po +8 -4
  292. package/lang/translations/ug.po +8 -4
  293. package/lang/translations/uk.po +8 -4
  294. package/lang/translations/ur.po +8 -4
  295. package/lang/translations/uz.po +8 -4
  296. package/lang/translations/vi.po +8 -4
  297. package/lang/translations/zh-cn.po +8 -4
  298. package/lang/translations/zh.po +8 -4
  299. package/package.json +21 -21
  300. package/src/aiactions/aiactions.js +1 -1
  301. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  302. package/src/aiactions/model/aiactionsreply.js +1 -1
  303. package/src/aiassistant/adapters/aiadapter.js +1 -1
  304. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  305. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  306. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  307. package/src/aiassistant/aiassistant.js +1 -1
  308. package/src/aiassistant/aiassistantediting.js +1 -1
  309. package/src/aiassistant/aiassistantui.js +1 -1
  310. package/src/aiassistant/legacyerrors.js +1 -1
  311. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  312. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  313. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  316. package/src/aiassistant/ui/form/aiformview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  318. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  319. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  320. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  321. package/src/aiassistant/utils/common-translations.js +1 -1
  322. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoonview.js +1 -1
  325. package/src/aichat/aichat.d.ts +12 -8
  326. package/src/aichat/aichat.js +1 -1
  327. package/src/aichat/aichatballoon.js +1 -1
  328. package/src/aichat/aichatcontroller.d.ts +4 -0
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.d.ts +24 -1
  331. package/src/aichat/aichatui.js +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.d.ts +13 -0
  334. package/src/aichat/model/aichatconversation.js +1 -1
  335. package/src/aichat/model/aichatinteraction.js +1 -1
  336. package/src/aichat/ui/aichatballoonview.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.d.ts +5 -1
  338. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  339. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  340. package/src/aichat/ui/aichatfeedview.js +1 -1
  341. package/src/aichat/ui/aichatheaderview.js +1 -1
  342. package/src/aichat/ui/aichatview.js +1 -1
  343. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  346. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  349. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +5 -0
  350. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  351. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  354. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  355. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  356. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  362. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  366. package/src/aichat/utils/eventnames.js +1 -1
  367. package/src/aichat/utils/promisequeue.js +1 -1
  368. package/src/aichathistory/aichathistory.js +1 -1
  369. package/src/aichathistory/aichathistorycontroller.js +1 -1
  370. package/src/aichathistory/aichathistoryui.js +1 -1
  371. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  372. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  374. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  375. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  376. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  377. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  378. package/src/aichatshortcuts/aichatshortcuts.d.ts +324 -0
  379. package/src/aichatshortcuts/aichatshortcuts.js +23 -0
  380. package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
  381. package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
  382. package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
  383. package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
  384. package/src/aiconfig.d.ts +7 -0
  385. package/src/aicore/aiconnector.js +1 -1
  386. package/src/aicore/aiediting.js +1 -1
  387. package/src/aicore/model/aicapabilities.d.ts +8 -0
  388. package/src/aicore/model/aicapabilities.js +1 -1
  389. package/src/aicore/model/aicontext.d.ts +7 -1
  390. package/src/aicore/model/aicontext.js +1 -1
  391. package/src/aicore/model/aiinteraction.js +1 -1
  392. package/src/aicore/model/aimodels.js +1 -1
  393. package/src/aicore/model/aireply.js +1 -1
  394. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  395. package/src/aicore/pipeline/airesponseparser.js +2 -2
  396. package/src/aicore/ui/aidisclaimerview.js +1 -1
  397. package/src/aicore/ui/aiskeleton.js +1 -1
  398. package/src/aicore/ui/aispinner.js +1 -1
  399. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  400. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  401. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  404. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  408. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.d.ts +1 -0
  412. package/src/aicore/utils/createresizebutton.js +1 -1
  413. package/src/aicore/utils/documentposition.js +1 -1
  414. package/src/aicore/utils/documentrange.js +1 -1
  415. package/src/aicore/utils/eventnames.js +1 -1
  416. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aicore/utils/scrollmanager.js +1 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  433. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  434. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  435. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  436. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  437. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  438. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  439. package/src/aireviewcore/aireviewcoreui.js +1 -1
  440. package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
  441. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  442. package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
  443. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  444. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  445. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  447. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  448. package/src/aireviewcore/types.d.ts +11 -2
  449. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  450. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  451. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  452. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  453. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  454. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  455. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  456. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  457. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  458. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  459. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  460. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  461. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  462. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
  463. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  464. package/src/aireviewmode/aireviewmode.d.ts +95 -0
  465. package/src/aireviewmode/aireviewmode.js +1 -1
  466. package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
  467. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  468. package/src/aireviewmode/aireviewmodeui.js +1 -1
  469. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
  470. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  471. package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
  472. package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
  473. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
  474. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  475. package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
  476. package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
  477. package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
  478. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  479. package/src/aitabs/aitabs.js +1 -1
  480. package/src/aitabs/aitabsmainview.js +1 -1
  481. package/src/aitabs/tabs/aitabsview.js +1 -1
  482. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  483. package/src/aitabs/tabs/tabpanelview.js +1 -1
  484. package/src/aitranslate/aitranslate.js +1 -1
  485. package/src/aitranslate/aitranslatecontroller.js +1 -1
  486. package/src/aitranslate/aitranslateui.js +1 -1
  487. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  488. package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
  489. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  490. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  491. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  492. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  493. package/src/augmentation.d.ts +2 -0
  494. package/src/errors.js +1 -1
  495. package/src/errorsmap.js +1 -1
  496. package/src/index.d.ts +2 -1
  497. package/src/index.js +1 -1
  498. package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
  499. package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
  500. package/theme/aichat/aichat-controls/prompt-input.css +23 -0
  501. package/theme/aichat/aichat-controls.css +0 -19
  502. package/theme/aichat/aichathistory.css +1 -1
  503. package/theme/aichat/aiminitoolbar.css +0 -16
  504. package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
  505. package/theme/aieditorintegration/aitogglebutton.css +5 -11
  506. package/theme/aiquickactions/aiquickactions.css +6 -11
  507. package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
  508. package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
  509. package/theme/aireviewcore/aireviewcore.css +4 -4
  510. package/theme/aitabs/aitabsresizebutton.css +14 -0
  511. package/theme/aitranslate/aitranslate.css +4 -0
  512. package/theme/common/aibutton.css +56 -67
  513. package/theme/common/aiheader.css +1 -1
  514. package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
  515. package/theme/common/aisuggestionstreamablecontent.css +4 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37d39d=_0x5a82;(function(_0x794c3d,_0x36fe15){const _0x4ef2e9=_0x5a82,_0x4321c8=_0x794c3d();while(!![]){try{const _0xecb842=parseInt(_0x4ef2e9(0x11c))/0x1+parseInt(_0x4ef2e9(0x126))/0x2*(parseInt(_0x4ef2e9(0x16c))/0x3)+parseInt(_0x4ef2e9(0x16b))/0x4+-parseInt(_0x4ef2e9(0x127))/0x5+parseInt(_0x4ef2e9(0x14e))/0x6*(parseInt(_0x4ef2e9(0x121))/0x7)+-parseInt(_0x4ef2e9(0x16f))/0x8*(-parseInt(_0x4ef2e9(0x14d))/0x9)+-parseInt(_0x4ef2e9(0x164))/0xa;if(_0xecb842===_0x36fe15)break;else _0x4321c8['push'](_0x4321c8['shift']());}catch(_0x49470f){_0x4321c8['push'](_0x4321c8['shift']());}}}(_0x4a42,0x3d338));import{ContextPlugin as _0x4c32ea}from'ckeditor5/src/core.js';function _0x4a42(){const _0x348dc1=['removeItem','editConversationTitle','AI_CHAT_HISTORY_CATEGORY_LATER','init','_generateErrorMessage','getGroupId','removeHistoryItem','remove','pinned','error','_clearItemLoading','listenTo','29668DShmpG','title','get','AI_CHAT_HISTORY_UNPIN_ACTION','updateItemLoadingState','241493pXEsQJ','chat','selectConversation','history','_updateHistoryItemsUI','322QSlAwI','252665nzkAev','items','AI_CHAT_HISTORY_CATEGORY_PINNED','_setIsMaximized','_aiChatHistoryUi','pin','_getCategorizedItems','change:activeConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','view','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','itemUpdated','context','_handleHistoryErrorUI','resizedTabs','rename','AI_CHAT_HISTORY_ERROR_GENERIC','resize','loadItems','_showConversationHistory','resizeTabs','getMonth','AI_CHAT_HISTORY_CATEGORY_TODAY','itemId','isOfficialPlugin','handleRemovedConversation','length','isPremiumPlugin','push','locale','createdAt','getItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','getDate','_handleEditTitle','openChat','_setItemLoading','setLoadingSkeleton','9tBrRDU','66ZlDZbk','itemRemoved','pluginName','loadConversation','updates','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','setConversationPinned','_aiConnector','unpin','activateTab:history','setIsMaximized','map','getFullYear','activeConversation','_handleTogglePin','AIChatHistoryController','toLocaleDateString','plugins','setDate','itemsLoaded','AI_CHAT_HISTORY_PIN_ACTION','_handleRemove','12133980zLbtPH','_handleSelectConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','activateTab','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','updateItemPinned','1323120adEuSr','5631QbZAUz','requires','showError','3779816gURfeC','operation','removeConversation','updateItemTitle','_aiChatController','getItem','updateItems'];_0x4a42=function(){return _0x348dc1;};return _0x4a42();}import{AIConnector as _0x2979bd}from'../aicore/aiconnector.js';import{AIChatController as _0x2b0acb}from'../aichat/aichatcontroller.js';import{AITabs as _0x55f83b}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x2f3ec5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x463b79}from'./model/aichathistoryconversations.js';import{getTranslation as _0x2f031c}from'../aicore/utils/common-translations.js';function _0x5a82(_0x47801c,_0x326e75){const _0x4a4259=_0x4a42();return _0x5a82=function(_0x5a82ee,_0x23ec32){_0x5a82ee=_0x5a82ee-0x113;let _0x2bebf9=_0x4a4259[_0x5a82ee];return _0x2bebf9;},_0x5a82(_0x47801c,_0x326e75);}export class AIChatHistoryController extends _0x4c32ea{[_0x37d39d(0x155)];[_0x37d39d(0x12b)];[_0x37d39d(0x173)];static get[_0x37d39d(0x16d)](){return[_0x2979bd,_0x2b0acb,_0x2f3ec5,_0x55f83b];}static get[_0x37d39d(0x150)](){const _0x13dc54=_0x37d39d;return _0x13dc54(0x15d);}static get[_0x37d39d(0x13f)](){return!0x0;}static get[_0x37d39d(0x142)](){return!0x0;}[_0x37d39d(0x113)](){const _0x1d7963=_0x37d39d;this[_0x1d7963(0x155)]=this[_0x1d7963(0x133)][_0x1d7963(0x15f)][_0x1d7963(0x11e)](_0x2979bd),this[_0x1d7963(0x12b)]=this[_0x1d7963(0x133)][_0x1d7963(0x15f)][_0x1d7963(0x11e)](_0x2f3ec5),this[_0x1d7963(0x173)]=this[_0x1d7963(0x133)][_0x1d7963(0x15f)][_0x1d7963(0x11e)](_0x2b0acb);const _0x42f843=this[_0x1d7963(0x133)][_0x1d7963(0x15f)][_0x1d7963(0x11e)](_0x55f83b);try{const _0x5dc53f=this[_0x1d7963(0x173)][_0x1d7963(0x115)]();this[_0x1d7963(0x124)]=new _0x463b79({'connector':this[_0x1d7963(0x155)],'group':_0x5dc53f}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x171),(_0xc6b3ba,_0x47ece7)=>{const _0x1122dc=_0x1d7963;this[_0x1122dc(0x14b)](_0x47ece7['id'],_0x1122dc(0x117)),this[_0x1122dc(0x163)](_0x47ece7['id']);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x177),(_0x230d55,_0x10b8fc)=>{const _0x4d8364=_0x1d7963;this[_0x4d8364(0x14b)](_0x10b8fc['id'],_0x4d8364(0x136)),this[_0x4d8364(0x149)](_0x10b8fc['id'],_0x10b8fc[_0x4d8364(0x11d)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x124)],_0x1d7963(0x132),(_0x3e7140,_0x4af38e)=>{const _0x5f5554=_0x1d7963;void 0x0!==_0x4af38e[_0x5f5554(0x152)][_0x5f5554(0x11d)]&&this[_0x5f5554(0x12b)][_0x5f5554(0x172)](_0x4af38e[_0x5f5554(0x13e)],_0x4af38e[_0x5f5554(0x152)][_0x5f5554(0x11d)]),void 0x0!==_0x4af38e[_0x5f5554(0x152)][_0x5f5554(0x118)]&&this[_0x5f5554(0x125)](),this[_0x5f5554(0x11a)](_0x4af38e[_0x5f5554(0x13e)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x124)],_0x1d7963(0x14f),(_0x318253,_0x16aaea)=>{const _0x27d43f=_0x1d7963;this[_0x27d43f(0x173)][_0x27d43f(0x140)](_0x16aaea[_0x27d43f(0x13e)]),this[_0x27d43f(0x12b)][_0x27d43f(0x116)](_0x16aaea[_0x27d43f(0x13e)]),this[_0x27d43f(0x11a)](_0x16aaea[_0x27d43f(0x13e)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x124)],_0x1d7963(0x161),()=>{const _0x1873b5=_0x1d7963;this[_0x1873b5(0x125)]();}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x124)],_0x1d7963(0x119),(_0x1f8433,_0x43327f)=>{const _0x18c9e1=_0x1d7963;this[_0x18c9e1(0x134)](_0x43327f[_0x18c9e1(0x119)],_0x43327f[_0x18c9e1(0x170)],_0x43327f[_0x18c9e1(0x13e)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x123),(_0x564a99,_0x562799)=>{const _0x3bd419=_0x1d7963;this[_0x3bd419(0x165)](_0x562799['id']);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x154),(_0x593bb2,_0x4f1dec)=>{const _0x5a83b7=_0x1d7963,_0x1ab59a=_0x4f1dec[_0x5a83b7(0x118)]?_0x5a83b7(0x12c):_0x5a83b7(0x156);this[_0x5a83b7(0x14b)](_0x4f1dec['id'],_0x1ab59a),this[_0x5a83b7(0x15c)](_0x4f1dec['id'],_0x4f1dec[_0x5a83b7(0x118)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x14a),()=>{const _0x366d9f=_0x1d7963;_0x42f843[_0x366d9f(0x130)][_0x366d9f(0x167)](_0x366d9f(0x122));}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x173)],_0x1d7963(0x12e),()=>{const _0x217e5a=_0x1d7963;this[_0x217e5a(0x125)]();}),_0x42f843[_0x1d7963(0x130)]['on'](_0x1d7963(0x157),()=>{const _0x22d2ef=_0x1d7963;this[_0x22d2ef(0x13a)]();}),this[_0x1d7963(0x11b)](_0x42f843,_0x1d7963(0x135),(_0x97430e,_0x3d527a)=>{const _0x277b90=_0x1d7963;this[_0x277b90(0x12a)](_0x3d527a);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x13b),()=>{const _0x18fd1b=_0x1d7963;_0x42f843[_0x18fd1b(0x138)]();});}catch(_0x25ee2d){this[_0x1d7963(0x134)](_0x25ee2d,_0x1d7963(0x113));}}async[_0x37d39d(0x149)](_0x1c8d3c,_0x42e282){const _0x458799=_0x37d39d;await this[_0x458799(0x124)][_0x458799(0x172)](_0x1c8d3c,_0x42e282);}async[_0x37d39d(0x15c)](_0x331000,_0x3a5bda){const _0xc87515=_0x37d39d;await this[_0xc87515(0x124)][_0xc87515(0x16a)](_0x331000,_0x3a5bda);}async[_0x37d39d(0x163)](_0x2e7bb3){const _0x1464f3=_0x37d39d;await this[_0x1464f3(0x124)][_0x1464f3(0x176)](_0x2e7bb3);}async[_0x37d39d(0x165)](_0x5b1f3b){const _0x2ac807=_0x37d39d;await this[_0x2ac807(0x173)][_0x2ac807(0x151)](_0x5b1f3b);}async[_0x37d39d(0x13a)](){const _0x3a2078=_0x37d39d;this[_0x3a2078(0x12b)][_0x3a2078(0x16e)](''),this[_0x3a2078(0x12b)][_0x3a2078(0x14c)](!0x0),await this[_0x3a2078(0x124)][_0x3a2078(0x113)](),this[_0x3a2078(0x12b)][_0x3a2078(0x14c)](!0x1);}[_0x37d39d(0x125)](){const _0x515978=_0x37d39d,_0x1ef6f0=this[_0x515978(0x173)][_0x515978(0x15b)]?.['id'],_0x29841b=this[_0x515978(0x12d)]()[_0x515978(0x159)](_0x1a3469=>({'title':_0x1a3469[_0x515978(0x11d)],'items':_0x1a3469[_0x515978(0x128)][_0x515978(0x159)](_0x1f53a5=>({'id':_0x1f53a5['id'],'title':_0x1f53a5[_0x515978(0x11d)]||_0x2f031c(this[_0x515978(0x133)][_0x515978(0x144)],_0x515978(0x168)),'createdAt':new Date(_0x1f53a5[_0x515978(0x145)])[_0x515978(0x15e)](),'active':_0x1f53a5['id']===_0x1ef6f0,'pinned':_0x1f53a5[_0x515978(0x118)]}))}));this[_0x515978(0x12b)][_0x515978(0x175)](_0x29841b);}[_0x37d39d(0x14b)](_0x88738d,_0x154577){const _0x42e672=_0x37d39d;this[_0x42e672(0x12b)][_0x42e672(0x120)](_0x88738d,_0x154577,!0x0);}[_0x37d39d(0x11a)](_0x377a47){const _0x3db354=_0x37d39d;this[_0x3db354(0x12b)][_0x3db354(0x120)](_0x377a47,null,!0x1);}[_0x37d39d(0x134)](_0x46a323,_0x127c69,_0x464f05){const _0x19e203=_0x37d39d,_0x8e1c29=this[_0x19e203(0x114)](_0x127c69,_0x464f05);this[_0x19e203(0x12b)][_0x19e203(0x16e)](_0x8e1c29),_0x464f05&&this[_0x19e203(0x11a)](_0x464f05),this[_0x19e203(0x12b)][_0x19e203(0x14c)](!0x1);}[_0x37d39d(0x114)](_0x44a57f,_0x592e9e){const _0x44d1d1=_0x37d39d,_0x4e1304=_0x592e9e?this[_0x44d1d1(0x124)][_0x44d1d1(0x174)](_0x592e9e):null,_0x141e90=_0x4e1304?.[_0x44d1d1(0x11d)]||_0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x168));switch(_0x44a57f){case _0x44d1d1(0x172):return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x169),_0x141e90);case _0x44d1d1(0x16a):{const _0x541f5f=_0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x4e1304?.[_0x44d1d1(0x118)]?_0x44d1d1(0x11f):_0x44d1d1(0x162));return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x166),[_0x541f5f,_0x141e90]);}case _0x44d1d1(0x176):return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x12f),_0x141e90);case _0x44d1d1(0x113):case _0x44d1d1(0x139):return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x147));default:return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x137));}}[_0x37d39d(0x12d)](){const _0x2e0b45=_0x37d39d,_0x560413=new Date(),_0x49e564=new Date(_0x560413[_0x2e0b45(0x15a)](),_0x560413[_0x2e0b45(0x13c)](),_0x560413[_0x2e0b45(0x148)]()),_0x32be19=new Date(_0x49e564);_0x32be19[_0x2e0b45(0x160)](_0x32be19[_0x2e0b45(0x148)]()-0x1);const _0xe111dc=new Date(_0x49e564);_0xe111dc[_0x2e0b45(0x160)](_0xe111dc[_0x2e0b45(0x148)]()-0xe);const _0x43dd5d=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'pinned':!0x0}),_0x504954=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'from':_0x49e564,'to':_0x49e564}),_0x34a05b=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'from':_0x32be19,'to':_0x32be19}),_0x874a3e=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'from':_0xe111dc,'to':_0x32be19}),_0x585bb1=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'to':_0xe111dc}),_0x19b743=[];return _0x43dd5d[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x129)),'items':_0x43dd5d}),_0x504954[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x13d)),'items':_0x504954}),_0x34a05b[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x153)),'items':_0x34a05b}),_0x874a3e[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x131)),'items':_0x874a3e}),_0x585bb1[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x178)),'items':_0x585bb1}),_0x19b743;}[_0x37d39d(0x12a)](_0x154503){const _0x356ffb=_0x37d39d;this[_0x356ffb(0x12b)][_0x356ffb(0x158)](_0x154503);}}
23
+ const _0x5856c9=_0x536e;(function(_0x23c6fc,_0x215f71){const _0x12c1ae=_0x536e,_0x4ea8bc=_0x23c6fc();while(!![]){try{const _0x1e5146=-parseInt(_0x12c1ae(0x1e0))/0x1+-parseInt(_0x12c1ae(0x21c))/0x2+parseInt(_0x12c1ae(0x211))/0x3*(parseInt(_0x12c1ae(0x1f8))/0x4)+parseInt(_0x12c1ae(0x22b))/0x5+-parseInt(_0x12c1ae(0x1f9))/0x6*(-parseInt(_0x12c1ae(0x20a))/0x7)+-parseInt(_0x12c1ae(0x205))/0x8*(-parseInt(_0x12c1ae(0x217))/0x9)+-parseInt(_0x12c1ae(0x1db))/0xa*(parseInt(_0x12c1ae(0x216))/0xb);if(_0x1e5146===_0x215f71)break;else _0x4ea8bc['push'](_0x4ea8bc['shift']());}catch(_0x13e6b7){_0x4ea8bc['push'](_0x4ea8bc['shift']());}}}(_0x3c0d,0xa176c));import{ContextPlugin as _0x4aab20}from'ckeditor5/src/core.js';import{AIConnector as _0x1e4776}from'../aicore/aiconnector.js';import{AIChatController as _0x9e3fe}from'../aichat/aichatcontroller.js';import{AITabs as _0x1dabb0}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xef35ad}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x6bfee7}from'./model/aichathistoryconversations.js';function _0x536e(_0x2e7336,_0x502034){const _0x3c0db9=_0x3c0d();return _0x536e=function(_0x536ee6,_0x547627){_0x536ee6=_0x536ee6-0x1c7;let _0x3d7460=_0x3c0db9[_0x536ee6];return _0x3d7460;},_0x536e(_0x2e7336,_0x502034);}import{getTranslation as _0x3a2e5d}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x4aab20{[_0x5856c9(0x225)];[_0x5856c9(0x1cf)];[_0x5856c9(0x1c9)];static get[_0x5856c9(0x220)](){return[_0x1e4776,_0x9e3fe,_0xef35ad,_0x1dabb0];}static get[_0x5856c9(0x1df)](){const _0x123030=_0x5856c9;return _0x123030(0x1f5);}static get[_0x5856c9(0x1d5)](){return!0x0;}static get[_0x5856c9(0x219)](){return!0x0;}[_0x5856c9(0x1ca)](){const _0x4378dc=_0x5856c9;this[_0x4378dc(0x225)]=this[_0x4378dc(0x1f1)][_0x4378dc(0x206)][_0x4378dc(0x1ee)](_0x1e4776),this[_0x4378dc(0x1cf)]=this[_0x4378dc(0x1f1)][_0x4378dc(0x206)][_0x4378dc(0x1ee)](_0xef35ad),this[_0x4378dc(0x1c9)]=this[_0x4378dc(0x1f1)][_0x4378dc(0x206)][_0x4378dc(0x1ee)](_0x9e3fe);const _0x43c7d8=this[_0x4378dc(0x1f1)][_0x4378dc(0x206)][_0x4378dc(0x1ee)](_0x1dabb0);try{const _0x4fde74=this[_0x4378dc(0x1c9)][_0x4378dc(0x1e5)]();this[_0x4378dc(0x226)]=new _0x6bfee7({'connector':this[_0x4378dc(0x225)],'group':_0x4fde74}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x1cf)],_0x4378dc(0x21b),(_0x246c8e,_0x5606bf)=>{const _0x113377=_0x4378dc;this[_0x113377(0x1cd)](_0x5606bf['id'],_0x113377(0x1f3)),this[_0x113377(0x1dd)](_0x5606bf['id']);}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x1cf)],_0x4378dc(0x208),(_0x3b8d2f,_0x198c62)=>{const _0x8d0949=_0x4378dc;this[_0x8d0949(0x1cd)](_0x198c62['id'],_0x8d0949(0x1d8)),this[_0x8d0949(0x22c)](_0x198c62['id'],_0x198c62[_0x8d0949(0x1f6)]);}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x226)],_0x4378dc(0x1d3),(_0x310370,_0x4d33c1)=>{const _0x6808ae=_0x4378dc;void 0x0!==_0x4d33c1[_0x6808ae(0x1d1)][_0x6808ae(0x1f6)]&&this[_0x6808ae(0x1cf)][_0x6808ae(0x1c8)](_0x4d33c1[_0x6808ae(0x1fa)],_0x4d33c1[_0x6808ae(0x1d1)][_0x6808ae(0x1f6)]),void 0x0!==_0x4d33c1[_0x6808ae(0x1d1)][_0x6808ae(0x228)]&&this[_0x6808ae(0x212)](),this[_0x6808ae(0x20e)](_0x4d33c1[_0x6808ae(0x1fa)]);}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x226)],_0x4378dc(0x1d0),(_0x46ad6d,_0x12188d)=>{const _0x2cb702=_0x4378dc;this[_0x2cb702(0x1c9)][_0x2cb702(0x218)](_0x12188d[_0x2cb702(0x1fa)]),this[_0x2cb702(0x1cf)][_0x2cb702(0x1d9)](_0x12188d[_0x2cb702(0x1fa)]),this[_0x2cb702(0x20e)](_0x12188d[_0x2cb702(0x1fa)]);}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x226)],_0x4378dc(0x1fc),()=>{const _0x4c7bcd=_0x4378dc;this[_0x4c7bcd(0x212)]();}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x226)],_0x4378dc(0x1ef),(_0x3aca3d,_0x340b22)=>{const _0x58a295=_0x4378dc;this[_0x58a295(0x1fd)](_0x340b22[_0x58a295(0x1ef)],_0x340b22[_0x58a295(0x1c7)],_0x340b22[_0x58a295(0x1fa)]);}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x1cf)],_0x4378dc(0x1e3),(_0x5bd5,_0x1841f4)=>{const _0x430075=_0x4378dc;this[_0x430075(0x1f2)](_0x1841f4['id']);}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x1cf)],_0x4378dc(0x200),(_0x2d2b18,_0x16ba75)=>{const _0x372b74=_0x4378dc,_0x43112e=_0x16ba75[_0x372b74(0x228)]?_0x372b74(0x1f0):_0x372b74(0x204);this[_0x372b74(0x1cd)](_0x16ba75['id'],_0x43112e),this[_0x372b74(0x1e6)](_0x16ba75['id'],_0x16ba75[_0x372b74(0x228)]);}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x1cf)],_0x4378dc(0x1d2),()=>{const _0x5c8d12=_0x4378dc;_0x43c7d8[_0x5c8d12(0x1ff)][_0x5c8d12(0x214)](_0x5c8d12(0x1e8));}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x1c9)],_0x4378dc(0x229),()=>{const _0x3bfe9e=_0x4378dc;this[_0x3bfe9e(0x212)]();}),_0x43c7d8[_0x4378dc(0x1ff)]['on'](_0x4378dc(0x215),()=>{const _0x485a66=_0x4378dc;this[_0x485a66(0x221)]();}),this[_0x4378dc(0x20b)](_0x43c7d8,_0x4378dc(0x203),(_0x108f9b,_0x36c86f)=>{const _0x2da9c2=_0x4378dc;this[_0x2da9c2(0x20c)](_0x36c86f);}),this[_0x4378dc(0x20b)](this[_0x4378dc(0x1cf)],_0x4378dc(0x1e7),()=>{const _0x2afb4a=_0x4378dc;_0x43c7d8[_0x2afb4a(0x1cc)]();});}catch(_0x4aeed8){this[_0x4378dc(0x1fd)](_0x4aeed8,_0x4378dc(0x1ca));}}async[_0x5856c9(0x22c)](_0x3e75bd,_0x15bf5b){const _0x4e439d=_0x5856c9;await this[_0x4e439d(0x226)][_0x4e439d(0x1c8)](_0x3e75bd,_0x15bf5b);}async[_0x5856c9(0x1e6)](_0x3de010,_0x17991f){const _0x34683f=_0x5856c9;await this[_0x34683f(0x226)][_0x34683f(0x20d)](_0x3de010,_0x17991f);}async[_0x5856c9(0x1dd)](_0x48e5c8){const _0x2d721a=_0x5856c9;await this[_0x2d721a(0x226)][_0x2d721a(0x1e4)](_0x48e5c8);}async[_0x5856c9(0x1f2)](_0x3d0533){const _0x254608=_0x5856c9;await this[_0x254608(0x1c9)][_0x254608(0x1d7)](_0x3d0533);}async[_0x5856c9(0x221)](){const _0x5becee=_0x5856c9;this[_0x5becee(0x1cf)][_0x5becee(0x1e1)](''),this[_0x5becee(0x1cf)][_0x5becee(0x209)](!0x0),await this[_0x5becee(0x226)][_0x5becee(0x1ca)](),this[_0x5becee(0x1cf)][_0x5becee(0x209)](!0x1);}[_0x5856c9(0x212)](){const _0x5e0a37=_0x5856c9,_0x2f04f7=this[_0x5e0a37(0x1c9)][_0x5e0a37(0x223)]?.['id'],_0x5de8f9=this[_0x5e0a37(0x21d)]()[_0x5e0a37(0x1e2)](_0x468aff=>({'title':_0x468aff[_0x5e0a37(0x1f6)],'items':_0x468aff[_0x5e0a37(0x1ea)][_0x5e0a37(0x1e2)](_0xb24ca=>({'id':_0xb24ca['id'],'title':_0xb24ca[_0x5e0a37(0x1f6)]||_0x3a2e5d(this[_0x5e0a37(0x1f1)][_0x5e0a37(0x1eb)],_0x5e0a37(0x1cb)),'createdAt':new Date(_0xb24ca[_0x5e0a37(0x210)])[_0x5e0a37(0x1f4)](),'active':_0xb24ca['id']===_0x2f04f7,'pinned':_0xb24ca[_0x5e0a37(0x228)]}))}));this[_0x5e0a37(0x1cf)][_0x5e0a37(0x1da)](_0x5de8f9);}[_0x5856c9(0x1cd)](_0x9a1a3,_0xc454af){const _0x20dcf2=_0x5856c9;this[_0x20dcf2(0x1cf)][_0x20dcf2(0x201)](_0x9a1a3,_0xc454af,!0x0);}[_0x5856c9(0x20e)](_0x4ee891){const _0x84aba0=_0x5856c9;this[_0x84aba0(0x1cf)][_0x84aba0(0x201)](_0x4ee891,null,!0x1);}[_0x5856c9(0x1fd)](_0x55a16e,_0x1be8f0,_0x284a3a){const _0xc9ff1e=_0x5856c9,_0x3c514a=this[_0xc9ff1e(0x1ec)](_0x1be8f0,_0x284a3a);this[_0xc9ff1e(0x1cf)][_0xc9ff1e(0x1e1)](_0x3c514a),_0x284a3a&&this[_0xc9ff1e(0x20e)](_0x284a3a),this[_0xc9ff1e(0x1cf)][_0xc9ff1e(0x209)](!0x1);}[_0x5856c9(0x1ec)](_0x5234ec,_0x1b2bcb){const _0x190a45=_0x5856c9,_0x292ffa=_0x1b2bcb?this[_0x190a45(0x226)][_0x190a45(0x222)](_0x1b2bcb):null,_0x57abf8=_0x292ffa?.[_0x190a45(0x1f6)]||_0x3a2e5d(this[_0x190a45(0x1f1)][_0x190a45(0x1eb)],_0x190a45(0x1cb));switch(_0x5234ec){case _0x190a45(0x1c8):return _0x3a2e5d(this[_0x190a45(0x1f1)][_0x190a45(0x1eb)],_0x190a45(0x213),_0x57abf8);case _0x190a45(0x20d):{const _0x371764=_0x3a2e5d(this[_0x190a45(0x1f1)][_0x190a45(0x1eb)],_0x292ffa?.[_0x190a45(0x228)]?_0x190a45(0x1ce):_0x190a45(0x21e));return _0x3a2e5d(this[_0x190a45(0x1f1)][_0x190a45(0x1eb)],_0x190a45(0x224),[_0x371764,_0x57abf8]);}case _0x190a45(0x1e4):return _0x3a2e5d(this[_0x190a45(0x1f1)][_0x190a45(0x1eb)],_0x190a45(0x22d),_0x57abf8);case _0x190a45(0x1ca):case _0x190a45(0x1fb):return _0x3a2e5d(this[_0x190a45(0x1f1)][_0x190a45(0x1eb)],_0x190a45(0x1dc));default:return _0x3a2e5d(this[_0x190a45(0x1f1)][_0x190a45(0x1eb)],_0x190a45(0x20f));}}[_0x5856c9(0x21d)](){const _0x574afa=_0x5856c9,_0x1c459b=new Date(),_0x37d68c=new Date(_0x1c459b[_0x574afa(0x202)](),_0x1c459b[_0x574afa(0x1f7)](),_0x1c459b[_0x574afa(0x1d4)]()),_0x1c23e4=new Date(_0x37d68c);_0x1c23e4[_0x574afa(0x1fe)](_0x1c23e4[_0x574afa(0x1d4)]()-0x1);const _0x4c8965=new Date(_0x37d68c);_0x4c8965[_0x574afa(0x1fe)](_0x4c8965[_0x574afa(0x1d4)]()-0xe);const _0x17ca77=this[_0x574afa(0x226)][_0x574afa(0x21f)]({'pinned':!0x0}),_0x3979b4=this[_0x574afa(0x226)][_0x574afa(0x21f)]({'from':_0x37d68c,'to':_0x37d68c}),_0x4b1479=this[_0x574afa(0x226)][_0x574afa(0x21f)]({'from':_0x1c23e4,'to':_0x1c23e4}),_0x2d8199=this[_0x574afa(0x226)][_0x574afa(0x21f)]({'from':_0x4c8965,'to':_0x1c23e4}),_0x17ce05=this[_0x574afa(0x226)][_0x574afa(0x21f)]({'to':_0x4c8965}),_0x4b45f6=[];return _0x17ca77[_0x574afa(0x21a)]>0x0&&_0x4b45f6[_0x574afa(0x22a)]({'title':_0x3a2e5d(this[_0x574afa(0x1f1)][_0x574afa(0x1eb)],_0x574afa(0x1d6)),'items':_0x17ca77}),_0x3979b4[_0x574afa(0x21a)]>0x0&&_0x4b45f6[_0x574afa(0x22a)]({'title':_0x3a2e5d(this[_0x574afa(0x1f1)][_0x574afa(0x1eb)],_0x574afa(0x1de)),'items':_0x3979b4}),_0x4b1479[_0x574afa(0x21a)]>0x0&&_0x4b45f6[_0x574afa(0x22a)]({'title':_0x3a2e5d(this[_0x574afa(0x1f1)][_0x574afa(0x1eb)],_0x574afa(0x227)),'items':_0x4b1479}),_0x2d8199[_0x574afa(0x21a)]>0x0&&_0x4b45f6[_0x574afa(0x22a)]({'title':_0x3a2e5d(this[_0x574afa(0x1f1)][_0x574afa(0x1eb)],_0x574afa(0x1ed)),'items':_0x2d8199}),_0x17ce05[_0x574afa(0x21a)]>0x0&&_0x4b45f6[_0x574afa(0x22a)]({'title':_0x3a2e5d(this[_0x574afa(0x1f1)][_0x574afa(0x1eb)],_0x574afa(0x1e9)),'items':_0x17ce05}),_0x4b45f6;}[_0x5856c9(0x20c)](_0x5e6d16){const _0x1445fe=_0x5856c9;this[_0x1445fe(0x1cf)][_0x1445fe(0x207)](_0x5e6d16);}}function _0x3c0d(){const _0x3b0fd1=['updateItemTitle','_aiChatController','init','AI_CHAT_UNTITLED_CONVERSATION','resize','_setItemLoading','AI_CHAT_HISTORY_UNPIN_ACTION','_aiChatHistoryUi','itemRemoved','updates','openChat','itemUpdated','getDate','isOfficialPlugin','AI_CHAT_HISTORY_CATEGORY_PINNED','loadConversation','rename','removeHistoryItem','updateItems','321610cBrsEH','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_handleRemove','AI_CHAT_HISTORY_CATEGORY_TODAY','pluginName','488571mcvFEm','showError','map','selectConversation','removeItem','getGroupId','_handleTogglePin','resizeTabs','chat','AI_CHAT_HISTORY_CATEGORY_LATER','items','locale','_generateErrorMessage','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','get','error','pin','context','_handleSelectConversation','remove','toLocaleDateString','AIChatHistoryController','title','getMonth','222812RqWxRZ','12bCCPuw','itemId','loadItems','itemsLoaded','_handleHistoryErrorUI','setDate','view','setConversationPinned','updateItemLoadingState','getFullYear','resizedTabs','unpin','16160iADBeY','plugins','setIsMaximized','editConversationTitle','setLoadingSkeleton','4186238tJhBnz','listenTo','_setIsMaximized','updateItemPinned','_clearItemLoading','AI_CHAT_HISTORY_ERROR_GENERIC','createdAt','57dsTnHg','_updateHistoryItemsUI','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','activateTab','activateTab:history','627QugMSf','1143dCQimi','handleRemovedConversation','isPremiumPlugin','length','removeConversation','628570zYYuTr','_getCategorizedItems','AI_CHAT_HISTORY_PIN_ACTION','getItems','requires','_showConversationHistory','getItem','activeConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_aiConnector','history','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','pinned','change:activeConversation','push','3932120nXoyoA','_handleEditTitle','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','operation'];_0x3c0d=function(){return _0x3b0fd1;};return _0x3c0d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43f4b7=_0xeca8;(function(_0x803bd9,_0x24871b){const _0x235cf2=_0xeca8,_0x48fab8=_0x803bd9();while(!![]){try{const _0x371c44=parseInt(_0x235cf2(0x1ae))/0x1+parseInt(_0x235cf2(0x19c))/0x2*(parseInt(_0x235cf2(0x1a4))/0x3)+-parseInt(_0x235cf2(0x18e))/0x4*(parseInt(_0x235cf2(0x18f))/0x5)+-parseInt(_0x235cf2(0x197))/0x6+-parseInt(_0x235cf2(0x199))/0x7+parseInt(_0x235cf2(0x1ac))/0x8*(-parseInt(_0x235cf2(0x1aa))/0x9)+parseInt(_0x235cf2(0x1a3))/0xa*(parseInt(_0x235cf2(0x1a2))/0xb);if(_0x371c44===_0x24871b)break;else _0x48fab8['push'](_0x48fab8['shift']());}catch(_0x1e1972){_0x48fab8['push'](_0x48fab8['shift']());}}}(_0x1030,0x43c75));import{ContextPlugin as _0x2c7016}from'ckeditor5/src/core.js';import{AITabs as _0xfd5362}from'../aitabs/aitabs.js';import{IconAIHistory as _0x55c17e}from'ckeditor5/src/icons.js';function _0xeca8(_0x5495e6,_0x288565){const _0x103056=_0x1030();return _0xeca8=function(_0xeca811,_0x4c21c2){_0xeca811=_0xeca811-0x18d;let _0x502b77=_0x103056[_0xeca811];return _0x502b77;},_0xeca8(_0x5495e6,_0x288565);}import{AIChatHistoryView as _0x489ee7}from'./ui/aichathistoryview.js';import{getTranslation as _0x525f78}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x1030(){const _0x284df1=['234MYLbuP','addTab','11360CrlNJv','updateItems','61901jAADbr','openChat','showError','showResizeButton','context','showConversationHistory','updateHistoryItemsWithCategories','editConversationTitle','AIChatHistoryUI','history','removeConversation','AITabs','pluginName','_historyView','isMaximized','4252XJEInZ','2455EAERbz','setConversationPinned','selectConversation','updateItemTitle','updateItemLoadingState','locale','view','resizeTabs','1291248qnAdmq','hideError','3062766NvMPTe','isLoading','plugins','951394jrsYKK','AI_CHAT_HISTORY_HEADING','delegate','isOfficialPlugin','get','setIsMaximized','1495406VnYqRV','70GcwwOJ','3eDPvAZ','errorMessage','removeHistoryItem','setLoadingSkeleton','requires','isPremiumPlugin'];_0x1030=function(){return _0x284df1;};return _0x1030();}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x43f4b7(0x1b3),_0x43f4b7(0x1b8),_0x43f4b7(0x1b5),_0x43f4b7(0x190),_0x43f4b7(0x191),_0x43f4b7(0x1af),_0x43f4b7(0x196)];export class AIChatHistoryUI extends _0x2c7016{static get[_0x43f4b7(0x1a8)](){return[_0xfd5362];}[_0x43f4b7(0x1bb)];static get[_0x43f4b7(0x1ba)](){const _0x3957b5=_0x43f4b7;return _0x3957b5(0x1b6);}static get[_0x43f4b7(0x19f)](){return!0x0;}static get[_0x43f4b7(0x1a9)](){return!0x0;}constructor(_0x2e3cd9){const _0x3d3abf=_0x43f4b7;super(_0x2e3cd9);const _0x24c89b=this[_0x3d3abf(0x1b2)][_0x3d3abf(0x19b)][_0x3d3abf(0x1a0)](_0x3d3abf(0x1b9));this[_0x3d3abf(0x1bb)]=new _0x489ee7(this[_0x3d3abf(0x1b2)][_0x3d3abf(0x194)],_0x24c89b[_0x3d3abf(0x1b1)]),this[_0x3d3abf(0x1bb)][_0x3d3abf(0x19e)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x24c89b[_0x3d3abf(0x195)][_0x3d3abf(0x1ab)]({'id':_0x3d3abf(0x1b7),'buttonLabel':_0x525f78(this[_0x3d3abf(0x1b2)][_0x3d3abf(0x194)],_0x3d3abf(0x19d)),'buttonIcon':_0x55c17e,'order':0x0,'content':this[_0x3d3abf(0x1bb)]});}[_0x43f4b7(0x1a6)](_0xe23538){const _0xe8e949=_0x43f4b7;this[_0xe8e949(0x1bb)][_0xe8e949(0x1a6)](_0xe23538);}[_0x43f4b7(0x1ad)](_0x28ac4e){const _0x308a1c=_0x43f4b7;this[_0x308a1c(0x1bb)][_0x308a1c(0x1b4)](_0x28ac4e);}[_0x43f4b7(0x192)](_0x4f385f,_0x4d4f9c){const _0xbe641=_0x43f4b7;this[_0xbe641(0x1bb)][_0xbe641(0x192)](_0x4f385f,_0x4d4f9c);}[_0x43f4b7(0x193)](_0x24263d,_0x5776f2,_0xc43885){const _0x25d06e=_0x43f4b7;this[_0x25d06e(0x1bb)][_0x25d06e(0x193)](_0x24263d,_0x5776f2,_0xc43885);}[_0x43f4b7(0x1a7)](_0x37ddb5){const _0x4e21bf=_0x43f4b7;this[_0x4e21bf(0x1bb)][_0x4e21bf(0x19a)]=_0x37ddb5;}[_0x43f4b7(0x1b0)](_0x17d05b){const _0x3303b5=_0x43f4b7;this[_0x3303b5(0x1bb)][_0x3303b5(0x1a5)]=_0x17d05b;}[_0x43f4b7(0x198)](){const _0x538da3=_0x43f4b7;this[_0x538da3(0x1bb)][_0x538da3(0x1a5)]='';}[_0x43f4b7(0x1a1)](_0x5adfcd){const _0x2c9e80=_0x43f4b7;this[_0x2c9e80(0x1bb)][_0x2c9e80(0x18d)]=_0x5adfcd;}}
23
+ const _0x537ff4=_0x156c;(function(_0xa6f4c8,_0x4f5268){const _0x4be544=_0x156c,_0x4d4d41=_0xa6f4c8();while(!![]){try{const _0x5bc0df=-parseInt(_0x4be544(0x108))/0x1*(parseInt(_0x4be544(0x100))/0x2)+parseInt(_0x4be544(0xda))/0x3*(-parseInt(_0x4be544(0xea))/0x4)+-parseInt(_0x4be544(0xe1))/0x5*(parseInt(_0x4be544(0x105))/0x6)+-parseInt(_0x4be544(0xe2))/0x7*(parseInt(_0x4be544(0xf5))/0x8)+parseInt(_0x4be544(0xf6))/0x9*(parseInt(_0x4be544(0xf9))/0xa)+-parseInt(_0x4be544(0xdb))/0xb*(parseInt(_0x4be544(0xfb))/0xc)+parseInt(_0x4be544(0xe6))/0xd;if(_0x5bc0df===_0x4f5268)break;else _0x4d4d41['push'](_0x4d4d41['shift']());}catch(_0x37c017){_0x4d4d41['push'](_0x4d4d41['shift']());}}}(_0x4b45,0x482fa));function _0x4b45(){const _0x1bf882=['editConversationTitle','82788IlzTIW','updateItemLoadingState','isMaximized','AITabs','delegate','4pmUGCC','hideError','context','removeHistoryItem','AIChatHistoryUI','42138rVQgBb','resizeTabs','errorMessage','206155HsncXg','openChat','showConversationHistory','12717qsZDKo','737uylHJX','get','isPremiumPlugin','showResizeButton','removeConversation','updateHistoryItemsWithCategories','335xejgcr','7XyoujY','selectConversation','showError','_historyView','20274709lQfcXf','view','setLoadingSkeleton','locale','204hNpvPq','addTab','isOfficialPlugin','plugins','setIsMaximized','AI_CHAT_HISTORY_HEADING','pluginName','isLoading','setConversationPinned','requires','updateItemTitle','1562328TVIPvZ','295587kTThhx','history','updateItems','150pnRgVN'];_0x4b45=function(){return _0x1bf882;};return _0x4b45();}function _0x156c(_0x18f54e,_0x4bf4fa){const _0x4b45b9=_0x4b45();return _0x156c=function(_0x156ce2,_0x1d8386){_0x156ce2=_0x156ce2-0xd9;let _0x57533a=_0x4b45b9[_0x156ce2];return _0x57533a;},_0x156c(_0x18f54e,_0x4bf4fa);}import{ContextPlugin as _0x32b927}from'ckeditor5/src/core.js';import{AITabs as _0x42e992}from'../aitabs/aitabs.js';import{IconAIHistory as _0x12c129}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xcbd6c0}from'./ui/aichathistoryview.js';import{getTranslation as _0x354b6b}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x537ff4(0xd9),_0x537ff4(0xdf),_0x537ff4(0xfa),_0x537ff4(0xf2),_0x537ff4(0xe3),_0x537ff4(0x109),_0x537ff4(0x106)];export class AIChatHistoryUI extends _0x32b927{static get[_0x537ff4(0xf3)](){return[_0x42e992];}[_0x537ff4(0xe5)];static get[_0x537ff4(0xf0)](){const _0x4faaad=_0x537ff4;return _0x4faaad(0x104);}static get[_0x537ff4(0xec)](){return!0x0;}static get[_0x537ff4(0xdd)](){return!0x0;}constructor(_0x338bda){const _0x40a8ef=_0x537ff4;super(_0x338bda);const _0x4d215c=this[_0x40a8ef(0x102)][_0x40a8ef(0xed)][_0x40a8ef(0xdc)](_0x40a8ef(0xfe));this[_0x40a8ef(0xe5)]=new _0xcbd6c0(this[_0x40a8ef(0x102)][_0x40a8ef(0xe9)],_0x4d215c[_0x40a8ef(0xde)]),this[_0x40a8ef(0xe5)][_0x40a8ef(0xff)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4d215c[_0x40a8ef(0xe7)][_0x40a8ef(0xeb)]({'id':_0x40a8ef(0xf7),'buttonLabel':_0x354b6b(this[_0x40a8ef(0x102)][_0x40a8ef(0xe9)],_0x40a8ef(0xef)),'buttonIcon':_0x12c129,'order':0x0,'content':this[_0x40a8ef(0xe5)]});}[_0x537ff4(0x103)](_0x4464ca){const _0xb8a0cd=_0x537ff4;this[_0xb8a0cd(0xe5)][_0xb8a0cd(0x103)](_0x4464ca);}[_0x537ff4(0xf8)](_0x361653){const _0x17d623=_0x537ff4;this[_0x17d623(0xe5)][_0x17d623(0xe0)](_0x361653);}[_0x537ff4(0xf4)](_0x11cd7d,_0x50342c){const _0x15e872=_0x537ff4;this[_0x15e872(0xe5)][_0x15e872(0xf4)](_0x11cd7d,_0x50342c);}[_0x537ff4(0xfc)](_0x273771,_0x1a3c6d,_0x4c8b1b){const _0x52a91f=_0x537ff4;this[_0x52a91f(0xe5)][_0x52a91f(0xfc)](_0x273771,_0x1a3c6d,_0x4c8b1b);}[_0x537ff4(0xe8)](_0x3112b3){const _0x5706b5=_0x537ff4;this[_0x5706b5(0xe5)][_0x5706b5(0xf1)]=_0x3112b3;}[_0x537ff4(0xe4)](_0x500f1b){const _0x704b13=_0x537ff4;this[_0x704b13(0xe5)][_0x704b13(0x107)]=_0x500f1b;}[_0x537ff4(0x101)](){const _0x387cf4=_0x537ff4;this[_0x387cf4(0xe5)][_0x387cf4(0x107)]='';}[_0x537ff4(0xee)](_0x420f49){const _0x527a19=_0x537ff4;this[_0x527a19(0xe5)][_0x527a19(0xfd)]=_0x420f49;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x224b15=_0x4f37;(function(_0x11174f,_0x4b753f){const _0xb770c0=_0x4f37,_0x3cd8ea=_0x11174f();while(!![]){try{const _0x145972=parseInt(_0xb770c0(0xef))/0x1*(parseInt(_0xb770c0(0xc6))/0x2)+parseInt(_0xb770c0(0xd6))/0x3+parseInt(_0xb770c0(0xc3))/0x4+-parseInt(_0xb770c0(0xca))/0x5*(parseInt(_0xb770c0(0xdd))/0x6)+parseInt(_0xb770c0(0xdc))/0x7+parseInt(_0xb770c0(0xe2))/0x8*(-parseInt(_0xb770c0(0xd7))/0x9)+parseInt(_0xb770c0(0xce))/0xa*(-parseInt(_0xb770c0(0xd5))/0xb);if(_0x145972===_0x4b753f)break;else _0x3cd8ea['push'](_0x3cd8ea['shift']());}catch(_0x59ce6e){_0x3cd8ea['push'](_0x3cd8ea['shift']());}}}(_0x311e,0x1c119));import{EmitterMixin as _0x207839}from'ckeditor5/src/utils.js';function _0x4f37(_0x3c4971,_0x6eaab5){const _0x311e28=_0x311e();return _0x4f37=function(_0x4f37c4,_0x240650){_0x4f37c4=_0x4f37c4-0xc1;let _0x56582d=_0x311e28[_0x4f37c4];return _0x56582d;},_0x4f37(_0x3c4971,_0x6eaab5);}import{AIChatHistoryItem as _0x45e68b}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x207839(){[_0x224b15(0xdb)]=[];[_0x224b15(0xd0)];[_0x224b15(0xed)];constructor({connector:_0x1430d1,group:_0x31c38c}){const _0x215352=_0x224b15;super(),this[_0x215352(0xd0)]=_0x1430d1,this[_0x215352(0xed)]=_0x31c38c;}async[_0x224b15(0xc5)](){const _0x1b93bc=_0x224b15;try{const _0x4e0c21=this[_0x1b93bc(0xd0)][_0x1b93bc(0xcb)](this[_0x1b93bc(0xed)]),_0x487bf0=await _0x4e0c21[_0x1b93bc(0xeb)]();this[_0x1b93bc(0xc8)](_0x487bf0);}catch(_0x589948){this[_0x1b93bc(0xe0)](_0x1b93bc(0xde),{'error':_0x589948,'operation':_0x1b93bc(0xc5)});}}[_0x224b15(0xe5)](_0x502134){const _0x4bdea2=_0x224b15;this[_0x4bdea2(0xdb)][_0x4bdea2(0xec)](_0x502134);}async[_0x224b15(0xe1)](_0x5e9782){const _0x3db2d5=_0x224b15,_0x18204f=this[_0x3db2d5(0xdb)][_0x3db2d5(0xe4)](_0x54193c=>_0x54193c['id']===_0x5e9782);if(-0x1===_0x18204f)return!0x1;try{return await this[_0x3db2d5(0xd0)][_0x3db2d5(0xdf)](_0x5e9782)[_0x3db2d5(0xcc)](),this[_0x3db2d5(0xdb)][_0x3db2d5(0xda)](_0x18204f,0x1),this[_0x3db2d5(0xe0)](_0x3db2d5(0xea),{'itemId':_0x5e9782}),!0x0;}catch(_0x5ad244){return this[_0x3db2d5(0xe0)](_0x3db2d5(0xde),{'error':_0x5ad244,'operation':_0x3db2d5(0xe1),'itemId':_0x5e9782}),!0x1;}}[_0x224b15(0xd2)](_0x14e153){const _0x5dd867=_0x224b15;return this[_0x5dd867(0xdb)][_0x5dd867(0xe6)](_0x1b4e4c=>_0x1b4e4c['id']===_0x14e153);}async[_0x224b15(0xc9)](_0x114577,_0x1c00bf){const _0x330a11=_0x224b15,_0x57ba66=this[_0x330a11(0xd2)](_0x114577);if(!_0x57ba66)return!0x1;try{return await this[_0x330a11(0xd0)][_0x330a11(0xc1)](_0x114577,{'title':_0x1c00bf})[_0x330a11(0xc4)](),_0x57ba66[_0x330a11(0xd1)](_0x1c00bf),this[_0x330a11(0xe0)](_0x330a11(0xd3),{'itemId':_0x114577,'updates':{'title':_0x1c00bf}}),!0x0;}catch(_0x4dbc48){return this[_0x330a11(0xe0)](_0x330a11(0xde),{'error':_0x4dbc48,'operation':_0x330a11(0xc9),'itemId':_0x114577}),!0x1;}}async[_0x224b15(0xe9)](_0x1ced30,_0x5b1386){const _0x3f603b=_0x224b15,_0xc0e00a=this[_0x3f603b(0xd2)](_0x1ced30);if(!_0xc0e00a)return!0x1;try{return await this[_0x3f603b(0xd0)][_0x3f603b(0xc1)](_0x1ced30,{'pinned':_0x5b1386})[_0x3f603b(0xc4)](),_0xc0e00a[_0x3f603b(0xf0)](_0x5b1386),this[_0x3f603b(0xe0)](_0x3f603b(0xd3),{'itemId':_0x1ced30,'updates':{'pinned':_0x5b1386}}),!0x0;}catch(_0x51fcea){return this[_0x3f603b(0xe0)](_0x3f603b(0xde),{'error':_0x51fcea,'operation':_0x3f603b(0xe9),'itemId':_0x1ced30}),!0x1;}}[_0x224b15(0xc8)](_0xc70f34){const _0x2c543b=_0x224b15;try{this[_0x2c543b(0xdb)]=[],_0xc70f34[_0x2c543b(0xd9)](_0x31e623=>{const _0xb0f572=_0x2c543b;this[_0xb0f572(0xe5)](new _0x45e68b(_0x31e623));}),this[_0x2c543b(0xe0)](_0x2c543b(0xe8),{'items':[...this[_0x2c543b(0xdb)]]});}catch(_0x3f554a){this[_0x2c543b(0xe0)](_0x2c543b(0xde),{'error':_0x3f554a,'operation':_0x2c543b(0xc8)});}}[_0x224b15(0xcf)](_0x3f5d57={}){const _0x212a6d=_0x224b15,_0x287daf=void 0x0!==_0x3f5d57[_0x212a6d(0xc7)]&&_0x3f5d57[_0x212a6d(0xc7)],_0x36e8e3=_0x3f5d57[_0x212a6d(0xcd)]?new Date(_0x3f5d57[_0x212a6d(0xcd)][_0x212a6d(0xc2)](),_0x3f5d57[_0x212a6d(0xcd)][_0x212a6d(0xd4)](),_0x3f5d57[_0x212a6d(0xcd)][_0x212a6d(0xd8)]()):null,_0x5ceccf=_0x3f5d57['to']?new Date(_0x3f5d57['to'][_0x212a6d(0xc2)](),_0x3f5d57['to'][_0x212a6d(0xd4)](),_0x3f5d57['to'][_0x212a6d(0xd8)]()):null;return this[_0x212a6d(0xdb)][_0x212a6d(0xe7)](_0x45323c=>{const _0x5a38fc=_0x212a6d;if(_0x45323c[_0x5a38fc(0xc7)]!==_0x287daf)return!0x1;if(_0x5ceccf){const _0x1b1298=new Date(_0x45323c[_0x5a38fc(0xee)][_0x5a38fc(0xc2)](),_0x45323c[_0x5a38fc(0xee)][_0x5a38fc(0xd4)](),_0x45323c[_0x5a38fc(0xee)][_0x5a38fc(0xd8)]());return _0x36e8e3?_0x36e8e3[_0x5a38fc(0xe3)]()===_0x5ceccf[_0x5a38fc(0xe3)]()?_0x1b1298[_0x5a38fc(0xe3)]()===_0x36e8e3[_0x5a38fc(0xe3)]():_0x1b1298<_0x5ceccf&&_0x1b1298>=_0x36e8e3:_0x1b1298<_0x5ceccf;}return!0x0;});}}function _0x311e(){const _0x13e8ac=['getTime','findIndex','addItem','find','filter','itemsLoaded','updateItemPinned','itemRemoved','getConversations','push','group','createdAt','38156rKHeJz','updatePinned','updateConversation','getFullYear','877112nIZCoH','getResult','init','8SigGNa','pinned','loadItems','updateItemTitle','46505rLZLCA','fetchConversations','execute','from','2007730obTRef','getItems','connector','updateTitle','getItem','itemUpdated','getMonth','11BzQNoA','74223KtwYLc','36VJasdi','getDate','map','splice','items','1191050BZpJzp','114jEdZtD','error','deleteConversation','fire','removeItem','148664dMuTpE'];_0x311e=function(){return _0x13e8ac;};return _0x311e();}
23
+ const _0xb0134e=_0x1a2e;(function(_0xd076d7,_0x472148){const _0x385f0b=_0x1a2e,_0x44a9da=_0xd076d7();while(!![]){try{const _0x1fc9f8=parseInt(_0x385f0b(0x180))/0x1+-parseInt(_0x385f0b(0x16a))/0x2+-parseInt(_0x385f0b(0x162))/0x3+-parseInt(_0x385f0b(0x17c))/0x4+parseInt(_0x385f0b(0x165))/0x5+-parseInt(_0x385f0b(0x184))/0x6*(-parseInt(_0x385f0b(0x17d))/0x7)+parseInt(_0x385f0b(0x183))/0x8;if(_0x1fc9f8===_0x472148)break;else _0x44a9da['push'](_0x44a9da['shift']());}catch(_0x241997){_0x44a9da['push'](_0x44a9da['shift']());}}}(_0x5979,0x488be));import{EmitterMixin as _0x2b4c27}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x349f15}from'./aichathistoryitem.js';function _0x1a2e(_0x50a33b,_0xfb530e){const _0x597917=_0x5979();return _0x1a2e=function(_0x1a2e93,_0x235dfb){_0x1a2e93=_0x1a2e93-0x15c;let _0x401e11=_0x597917[_0x1a2e93];return _0x401e11;},_0x1a2e(_0x50a33b,_0xfb530e);}function _0x5979(){const _0x14a0f4=['push','createdAt','deleteConversation','updateConversation','511644NzucuP','updatePinned','fire','2250985eoBbWD','getDate','execute','removeItem','updateTitle','139060XMGiZn','loadItems','group','find','pinned','filter','itemsLoaded','updateItemPinned','getConversations','fetchConversations','getItems','getResult','error','init','itemUpdated','map','itemRemoved','connector','1240708xgSGbm','6937upmSyW','items','getTime','208134ofTOiI','getMonth','getFullYear','553304utNNJF','726EpLvle','getItem','splice','from','updateItemTitle','findIndex','addItem'];_0x5979=function(){return _0x14a0f4;};return _0x5979();}export class AIChatHistoryConversations extends _0x2b4c27(){[_0xb0134e(0x17e)]=[];[_0xb0134e(0x17b)];[_0xb0134e(0x16c)];constructor({connector:_0x352040,group:_0x45bb9b}){const _0x18a471=_0xb0134e;super(),this[_0x18a471(0x17b)]=_0x352040,this[_0x18a471(0x16c)]=_0x45bb9b;}async[_0xb0134e(0x177)](){const _0x2224b0=_0xb0134e;try{const _0x141d39=this[_0x2224b0(0x17b)][_0x2224b0(0x173)](this[_0x2224b0(0x16c)]),_0x412b93=await _0x141d39[_0x2224b0(0x172)]();this[_0x2224b0(0x16b)](_0x412b93);}catch(_0x4dd696){this[_0x2224b0(0x164)](_0x2224b0(0x176),{'error':_0x4dd696,'operation':_0x2224b0(0x177)});}}[_0xb0134e(0x15d)](_0x12fb8e){const _0x69e342=_0xb0134e;this[_0x69e342(0x17e)][_0x69e342(0x15e)](_0x12fb8e);}async[_0xb0134e(0x168)](_0x3278de){const _0x2d7f3f=_0xb0134e,_0x484a07=this[_0x2d7f3f(0x17e)][_0x2d7f3f(0x15c)](_0x3aeee0=>_0x3aeee0['id']===_0x3278de);if(-0x1===_0x484a07)return!0x1;try{return await this[_0x2d7f3f(0x17b)][_0x2d7f3f(0x160)](_0x3278de)[_0x2d7f3f(0x167)](),this[_0x2d7f3f(0x17e)][_0x2d7f3f(0x186)](_0x484a07,0x1),this[_0x2d7f3f(0x164)](_0x2d7f3f(0x17a),{'itemId':_0x3278de}),!0x0;}catch(_0x379215){return this[_0x2d7f3f(0x164)](_0x2d7f3f(0x176),{'error':_0x379215,'operation':_0x2d7f3f(0x168),'itemId':_0x3278de}),!0x1;}}[_0xb0134e(0x185)](_0x7535c5){const _0x29c0b3=_0xb0134e;return this[_0x29c0b3(0x17e)][_0x29c0b3(0x16d)](_0x372f43=>_0x372f43['id']===_0x7535c5);}async[_0xb0134e(0x188)](_0x1b9dad,_0xff9e4a){const _0x5c55eb=_0xb0134e,_0xf3f858=this[_0x5c55eb(0x185)](_0x1b9dad);if(!_0xf3f858)return!0x1;try{return await this[_0x5c55eb(0x17b)][_0x5c55eb(0x161)](_0x1b9dad,{'title':_0xff9e4a})[_0x5c55eb(0x175)](),_0xf3f858[_0x5c55eb(0x169)](_0xff9e4a),this[_0x5c55eb(0x164)](_0x5c55eb(0x178),{'itemId':_0x1b9dad,'updates':{'title':_0xff9e4a}}),!0x0;}catch(_0x1bd187){return this[_0x5c55eb(0x164)](_0x5c55eb(0x176),{'error':_0x1bd187,'operation':_0x5c55eb(0x188),'itemId':_0x1b9dad}),!0x1;}}async[_0xb0134e(0x171)](_0x15545e,_0x389244){const _0x4fe7f9=_0xb0134e,_0x326112=this[_0x4fe7f9(0x185)](_0x15545e);if(!_0x326112)return!0x1;try{return await this[_0x4fe7f9(0x17b)][_0x4fe7f9(0x161)](_0x15545e,{'pinned':_0x389244})[_0x4fe7f9(0x175)](),_0x326112[_0x4fe7f9(0x163)](_0x389244),this[_0x4fe7f9(0x164)](_0x4fe7f9(0x178),{'itemId':_0x15545e,'updates':{'pinned':_0x389244}}),!0x0;}catch(_0x3061c9){return this[_0x4fe7f9(0x164)](_0x4fe7f9(0x176),{'error':_0x3061c9,'operation':_0x4fe7f9(0x171),'itemId':_0x15545e}),!0x1;}}[_0xb0134e(0x16b)](_0x33d311){const _0x551f49=_0xb0134e;try{this[_0x551f49(0x17e)]=[],_0x33d311[_0x551f49(0x179)](_0x15bb07=>{const _0x1dca01=_0x551f49;this[_0x1dca01(0x15d)](new _0x349f15(_0x15bb07));}),this[_0x551f49(0x164)](_0x551f49(0x170),{'items':[...this[_0x551f49(0x17e)]]});}catch(_0x4fd1cf){this[_0x551f49(0x164)](_0x551f49(0x176),{'error':_0x4fd1cf,'operation':_0x551f49(0x16b)});}}[_0xb0134e(0x174)](_0x55c9f1={}){const _0xe79ed3=_0xb0134e,_0x3685d1=void 0x0!==_0x55c9f1[_0xe79ed3(0x16e)]&&_0x55c9f1[_0xe79ed3(0x16e)],_0x418eb3=_0x55c9f1[_0xe79ed3(0x187)]?new Date(_0x55c9f1[_0xe79ed3(0x187)][_0xe79ed3(0x182)](),_0x55c9f1[_0xe79ed3(0x187)][_0xe79ed3(0x181)](),_0x55c9f1[_0xe79ed3(0x187)][_0xe79ed3(0x166)]()):null,_0x4c44e5=_0x55c9f1['to']?new Date(_0x55c9f1['to'][_0xe79ed3(0x182)](),_0x55c9f1['to'][_0xe79ed3(0x181)](),_0x55c9f1['to'][_0xe79ed3(0x166)]()):null;return this[_0xe79ed3(0x17e)][_0xe79ed3(0x16f)](_0x34fc08=>{const _0x307e25=_0xe79ed3;if(_0x34fc08[_0x307e25(0x16e)]!==_0x3685d1)return!0x1;if(_0x4c44e5){const _0x16024e=new Date(_0x34fc08[_0x307e25(0x15f)][_0x307e25(0x182)](),_0x34fc08[_0x307e25(0x15f)][_0x307e25(0x181)](),_0x34fc08[_0x307e25(0x15f)][_0x307e25(0x166)]());return _0x418eb3?_0x418eb3[_0x307e25(0x17f)]()===_0x4c44e5[_0x307e25(0x17f)]()?_0x16024e[_0x307e25(0x17f)]()===_0x418eb3[_0x307e25(0x17f)]():_0x16024e<_0x4c44e5&&_0x16024e>=_0x418eb3:_0x16024e<_0x4c44e5;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2dcc25=_0x187d;(function(_0x51db8e,_0x5adade){var _0x316ac2=_0x187d,_0x182c8d=_0x51db8e();while(!![]){try{var _0x202119=-parseInt(_0x316ac2(0x143))/0x1+-parseInt(_0x316ac2(0x149))/0x2*(-parseInt(_0x316ac2(0x144))/0x3)+parseInt(_0x316ac2(0x141))/0x4+parseInt(_0x316ac2(0x140))/0x5+-parseInt(_0x316ac2(0x13d))/0x6+-parseInt(_0x316ac2(0x147))/0x7+parseInt(_0x316ac2(0x146))/0x8;if(_0x202119===_0x5adade)break;else _0x182c8d['push'](_0x182c8d['shift']());}catch(_0x2278d5){_0x182c8d['push'](_0x182c8d['shift']());}}}(_0x2d96,0xb5a31));import{ObservableMixin as _0x520e2c}from'ckeditor5/src/utils.js';function _0x187d(_0x4e34c0,_0x2bfde5){var _0x2d96e5=_0x2d96();return _0x187d=function(_0x187d55,_0x5579ab){_0x187d55=_0x187d55-0x13d;var _0x58cdb5=_0x2d96e5[_0x187d55];return _0x58cdb5;},_0x187d(_0x4e34c0,_0x2bfde5);}function _0x2d96(){var _0x4f8d73=['2BeVqbi','createdAt','title','3062388TchLRr','updatePinned','pinned','3167615LxVQLN','5607552ZxBwPZ','set','1419121lzcDsV','1216509IOXsAY','updatedAt','5595904HcOUFT','3268286gJQaIT','updateTitle'];_0x2d96=function(){return _0x4f8d73;};return _0x2d96();}import{escape as _0x5308ba}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x520e2c(){['id'];[_0x2dcc25(0x14a)];constructor({id:_0x4898bd,title:_0x5c3429,createdAt:_0x2f9a03,updatedAt:_0x5de851,pinned:_0x66d753}){var _0x57fed6=_0x2dcc25;super(),this['id']=_0x4898bd,this[_0x57fed6(0x14a)]=new Date(_0x2f9a03),this[_0x57fed6(0x142)](_0x57fed6(0x14b),_0x5c3429),this[_0x57fed6(0x142)](_0x57fed6(0x145),_0x5de851?new Date(_0x5de851):null),this[_0x57fed6(0x142)](_0x57fed6(0x13f),_0x66d753||!0x1);}[_0x2dcc25(0x148)](_0x54e792){var _0x2c511c=_0x2dcc25;this[_0x2c511c(0x142)](_0x2c511c(0x14b),_0x5308ba(_0x54e792)),this[_0x2c511c(0x145)]=new Date();}[_0x2dcc25(0x13e)](_0x390929){var _0x50767f=_0x2dcc25;this[_0x50767f(0x142)](_0x50767f(0x13f),_0x390929),this[_0x50767f(0x145)]=new Date();}}
23
+ var _0x42b34c=_0x4967;(function(_0x527cda,_0x20d509){var _0x1cb5ad=_0x4967,_0x29570d=_0x527cda();while(!![]){try{var _0x4a4d46=-parseInt(_0x1cb5ad(0xcf))/0x1+parseInt(_0x1cb5ad(0xd6))/0x2+parseInt(_0x1cb5ad(0xd9))/0x3+-parseInt(_0x1cb5ad(0xcb))/0x4*(-parseInt(_0x1cb5ad(0xd5))/0x5)+parseInt(_0x1cb5ad(0xd7))/0x6+parseInt(_0x1cb5ad(0xd2))/0x7*(-parseInt(_0x1cb5ad(0xda))/0x8)+-parseInt(_0x1cb5ad(0xd1))/0x9;if(_0x4a4d46===_0x20d509)break;else _0x29570d['push'](_0x29570d['shift']());}catch(_0x4ade28){_0x29570d['push'](_0x29570d['shift']());}}}(_0x5c5a,0x1bbd8));import{ObservableMixin as _0x14bba1}from'ckeditor5/src/utils.js';function _0x5c5a(){var _0x45a370=['229276LFWZqA','1214100TAIdGj','set','250911FfcFcW','56MvFKGz','4dWCWNB','pinned','createdAt','updateTitle','163916OhoCsj','updatedAt','1382112scQaxd','30898WnrVFL','updatePinned','title','306905xjaDPZ'];_0x5c5a=function(){return _0x45a370;};return _0x5c5a();}import{escape as _0x43ad0b}from'es-toolkit/compat';function _0x4967(_0x1a0918,_0x4f4363){var _0x5c5a87=_0x5c5a();return _0x4967=function(_0x4967b6,_0x4c48d4){_0x4967b6=_0x4967b6-0xcb;var _0x13634f=_0x5c5a87[_0x4967b6];return _0x13634f;},_0x4967(_0x1a0918,_0x4f4363);}export class AIChatHistoryItem extends _0x14bba1(){['id'];[_0x42b34c(0xcd)];constructor({id:_0x44dfa9,title:_0x4c483e,createdAt:_0x13ad94,updatedAt:_0x34182a,pinned:_0x395ed6}){var _0x4ef5de=_0x42b34c;super(),this['id']=_0x44dfa9,this[_0x4ef5de(0xcd)]=new Date(_0x13ad94),this[_0x4ef5de(0xd8)](_0x4ef5de(0xd4),_0x4c483e),this[_0x4ef5de(0xd8)](_0x4ef5de(0xd0),_0x34182a?new Date(_0x34182a):null),this[_0x4ef5de(0xd8)](_0x4ef5de(0xcc),_0x395ed6||!0x1);}[_0x42b34c(0xce)](_0x13dd66){var _0x13f886=_0x42b34c;this[_0x13f886(0xd8)](_0x13f886(0xd4),_0x43ad0b(_0x13dd66)),this[_0x13f886(0xd0)]=new Date();}[_0x42b34c(0xd3)](_0x56c7ac){var _0x4b583a=_0x42b34c;this[_0x4b583a(0xd8)](_0x4b583a(0xcc),_0x56c7ac),this[_0x4b583a(0xd0)]=new Date();}}
@@ -13,7 +13,7 @@ interface AIChatHistoryListItemViewConfig {
13
13
  pinned?: boolean;
14
14
  id: string;
15
15
  }
16
- declare const AIChatHistoryListItemView_base: import("ckeditor5/src/utils.js").Mixed<typeof ListItemView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
16
+ declare const AIChatHistoryListItemView_base: import("ckeditor5").Mixed<typeof ListItemView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
17
17
  export declare class AIChatHistoryListItemView extends /* #__PURE__ -- @preserve */ AIChatHistoryListItemView_base {
18
18
  id: string;
19
19
  isVisible: boolean;
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x553997=_0x2f90;function _0x2972(){const _0x27bb7d=['ck-ai-chat-history__item-check','removeConversation','13797113dsrkLM','items','extendTemplate','buttonView','344UXfGjb','ck-ai-chat-history__item-main-content','isVisible','locale','ck-ai-chat-history__item--edit','editConversationTitle','_titleView','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-date','children','value','bindTemplate','highlightText','panelView','_commitEditInputValue','26656UGeMNG','ck-hidden','div','addMany','fire','add','set','execute','updateLoadingState','8EDVzSA','match','AI_CHAT_HISTORY_LOADING_PINNING','515885LcWAFm','bind','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_LOADING_UNPINNING','panelPosition','showConfirm','AI_CHAT_HISTORY_REMOVE','_createPinButtonView','pinned','AI_CHAT_HISTORY_LOADING_REMOVING','listitem','mainContent','actions','_createEditInputView','text','Enter','isMatching','ck-confirm-view-submit','element','createCollection','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item','setConversationPinned','ck-ai-chat-history__item-row','span','isEdit','updateTitle','tiny','1110530XuYVes','label','change:isEdit','click','AI_CHAT_HISTORY_EDIT_NAME','focus','2322006egucXd','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_PIN_BUTTON','setTemplate','4QcQGSO','then','string','_createAcceptEditButtonView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-loader__text','isOn','ck-confirm-view-cancel','withText','LOADING_LABELS','clear','ck-ai-loader','9tpdFrx','_createCheckView','selectConversation','ck-ai-chat-history__item-check-container','73639xJLrvO','695745KqcsBk','key','ck-ai-chat-history__item--active','loadingState','_createSpinnerView','_createCancelEditButtonView','_createMenuDropdownView','ck-ai-chat-history__item-content','edit:cancel'];_0x2972=function(){return _0x27bb7d;};return _0x2972();}(function(_0x3949b4,_0x470a21){const _0x194f16=_0x2f90,_0x451f8c=_0x3949b4();while(!![]){try{const _0x386771=-parseInt(_0x194f16(0x117))/0x1*(parseInt(_0x194f16(0x107))/0x2)+-parseInt(_0x194f16(0x118))/0x3+parseInt(_0x194f16(0xdc))/0x4*(-parseInt(_0x194f16(0xdf))/0x5)+-parseInt(_0x194f16(0x102))/0x6+parseInt(_0x194f16(0x136))/0x7*(-parseInt(_0x194f16(0x127))/0x8)+parseInt(_0x194f16(0x113))/0x9*(parseInt(_0x194f16(0xfc))/0xa)+parseInt(_0x194f16(0x123))/0xb;if(_0x386771===_0x470a21)break;else _0x451f8c['push'](_0x451f8c['shift']());}catch(_0x10323c){_0x451f8c['push'](_0x451f8c['shift']());}}}(_0x2972,0x37eb4));import{ListItemView as _0x302fbf,HighlightedTextView as _0x3b1193,ButtonView as _0x5ee210,ListView as _0x3a4eac,IconView as _0x50f5e8,createDropdown as _0x3e78cd,InputTextView as _0x490ba7}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1ba7de,IconPin as _0x9a4c6f,IconCheck as _0x2db247,IconCancel as _0x3e4b92}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1ec615,ConfirmMixin as _0x23b4c4}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x2843e6}from'es-toolkit/compat';function _0x2f90(_0x471217,_0x3ed32b){const _0x29723b=_0x2972();return _0x2f90=function(_0x2f907a,_0x6c1a21){_0x2f907a=_0x2f907a-0xd7;let _0x2e0dd6=_0x29723b[_0x2f907a];return _0x2e0dd6;},_0x2f90(_0x471217,_0x3ed32b);}import{AISpinnerView as _0xe18f81}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x480ff1}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x23b4c4(_0x302fbf){['id'];static [_0x553997(0x110)]={'remove':_0x553997(0xe9),'rename':_0x553997(0x103),'pin':_0x553997(0xde),'unpin':_0x553997(0xe3)};[_0x553997(0xec)];[_0x553997(0xeb)];[_0x553997(0x12d)];constructor(_0x17c042,_0x532329){const _0x9c5efb=_0x553997;super(_0x17c042);const _0x3cde93=this[_0x9c5efb(0x132)];this[_0x9c5efb(0xd9)](_0x9c5efb(0xf9),!0x1),this[_0x9c5efb(0xd9)](_0x9c5efb(0x129),!0x0),this[_0x9c5efb(0xd9)](_0x9c5efb(0xe8),!!_0x532329[_0x9c5efb(0xe8)]),this[_0x9c5efb(0xd9)](_0x9c5efb(0x11b),null),this['id']=_0x532329['id'];const {title:_0x58dfe6,createdAt:_0x1eff18,active:_0x39e11a=!0x1}=_0x532329;this[_0x9c5efb(0x12d)]=new _0x3b1193(),this[_0x9c5efb(0x12d)][_0x9c5efb(0xee)]=_0x58dfe6,this[_0x9c5efb(0x12d)][_0x9c5efb(0x125)]({'attributes':{'class':[_0x9c5efb(0xe2)]}});const _0x3f93e3=this[_0x9c5efb(0x114)](),_0xf54bbd=this[_0x9c5efb(0xe7)](_0x17c042),_0x2e8db0=this[_0x9c5efb(0x11e)](),_0x2000ab=this[_0x9c5efb(0xed)](_0x17c042,_0x58dfe6),_0x32e587=this[_0x9c5efb(0x10a)](_0x17c042,_0x2000ab),_0x1cf223=this[_0x9c5efb(0x11d)](_0x17c042,_0x2000ab);this[_0x9c5efb(0xec)]=this[_0x9c5efb(0xf3)](),this[_0x9c5efb(0xeb)]=this[_0x9c5efb(0xf3)](),this[_0x9c5efb(0xeb)][_0x9c5efb(0xd8)](this[_0x9c5efb(0x12d)]),this[_0x9c5efb(0xec)][_0x9c5efb(0xd8)](_0xf54bbd),this[_0x9c5efb(0xec)][_0x9c5efb(0xd8)](_0x2e8db0),this['on'](_0x9c5efb(0xfe),(_0xf35a21,_0x4dc89d,_0x3a1cdf)=>{const _0xdb3a41=_0x9c5efb;this[_0xdb3a41(0xec)][_0xdb3a41(0x111)](),this[_0xdb3a41(0xeb)][_0xdb3a41(0x111)](),_0x3a1cdf?(this[_0xdb3a41(0xec)][_0xdb3a41(0xd8)](_0x32e587),this[_0xdb3a41(0xec)][_0xdb3a41(0xd8)](_0x1cf223),this[_0xdb3a41(0xeb)][_0xdb3a41(0xd8)](_0x2000ab),_0x2000ab[_0xdb3a41(0xf2)][_0xdb3a41(0x101)]()):(this[_0xdb3a41(0xec)][_0xdb3a41(0xd8)](_0xf54bbd),this[_0xdb3a41(0xec)][_0xdb3a41(0xd8)](_0x2e8db0),this[_0xdb3a41(0xeb)][_0xdb3a41(0xd8)](this[_0xdb3a41(0x12d)]));}),this[_0x9c5efb(0x106)]({'tag':'li','attributes':{'class':[_0x9c5efb(0xf5),_0x39e11a?_0x9c5efb(0x11a):'',_0x3cde93['if'](_0x9c5efb(0x129),_0x9c5efb(0x137),_0x334b32=>!_0x334b32),_0x3cde93['if'](_0x9c5efb(0xf9),_0x9c5efb(0x12b))],'role':_0x9c5efb(0xea)},'children':[{'tag':_0x9c5efb(0xf8),'attributes':{'class':[_0x9c5efb(0x116)]},'children':[{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x121),_0x3cde93['if'](_0x9c5efb(0x11b),_0x9c5efb(0x137),_0x39045f=>!!_0x39045f)]},'children':_0x39e11a?[_0x3f93e3]:[]},{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x112),_0x3cde93['if'](_0x9c5efb(0x11b),_0x9c5efb(0x137),_0x4c457b=>!_0x4c457b)]},'children':[this[_0x9c5efb(0x11c)]()]}]},{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0xf7)]},'children':[{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x11f)]},'on':{'click':this[_0x9c5efb(0x132)]['to'](_0x9c5efb(0xff))},'children':[{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x128)]},'children':[{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0xe2),_0x3cde93['if'](_0x9c5efb(0x11b),_0x9c5efb(0x137),_0xb06584=>!!_0xb06584)]},'children':this[_0x9c5efb(0xeb)]},{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x10c),_0x3cde93['if'](_0x9c5efb(0x11b),_0x9c5efb(0x137),_0x5c84b5=>!_0x5c84b5)]},'children':[{'text':_0x3cde93['to'](_0x9c5efb(0x11b),_0x389549=>_0x389549?_0x480ff1(this[_0x9c5efb(0x12a)],AIChatHistoryListItemView[_0x9c5efb(0x110)][_0x389549]):'')}]}]},{'tag':_0x9c5efb(0xf8),'attributes':{'class':[_0x9c5efb(0x12f)]},'children':[_0x1eff18]}]},{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x12e)]},'children':this[_0x9c5efb(0xec)]}]}]}),this['on'](_0x9c5efb(0xff),()=>{const _0x23f225=_0x9c5efb;this[_0x23f225(0xf9)]||this[_0x23f225(0xd7)](_0x23f225(0x115),{'id':this['id']});});}[_0x553997(0xfa)](_0x559e3b){const _0x1d48dc=_0x553997;this[_0x1d48dc(0x12d)][_0x1d48dc(0xee)]=_0x2843e6(_0x559e3b);}[_0x553997(0xdb)](_0x537d1b,_0x728f01){const _0x5f443d=_0x553997;this[_0x5f443d(0xd9)](_0x5f443d(0x11b),_0x728f01?_0x537d1b:null);}[_0x553997(0x114)](){const _0x934201=_0x553997,_0x2fda1b=new _0x50f5e8();return _0x2fda1b[_0x934201(0xd9)]({'content':_0x2db247}),_0x2fda1b;}[_0x553997(0xe7)](_0x56efe1){const _0x422407=_0x553997,_0x712e81=new _0x5ee210(_0x56efe1);return _0x712e81[_0x422407(0xd9)]({'label':_0x480ff1(_0x56efe1,_0x422407(0x105)),'icon':_0x9a4c6f,'withText':!0x1,'tooltip':!0x0}),_0x712e81[_0x422407(0xe0)](_0x422407(0x10d))['to'](this,_0x422407(0xe8)),_0x712e81['on'](_0x422407(0xda),()=>{const _0x5c05bc=_0x422407,_0x10673e=!this[_0x5c05bc(0xe8)];this[_0x5c05bc(0xd7)](_0x5c05bc(0xf6),{'id':this['id'],'pinned':_0x10673e});}),_0x712e81;}[_0x553997(0x11e)](){const _0x2c911b=_0x553997,_0x20cae2=_0x3e78cd(this[_0x2c911b(0x12a)],_0x1ec615),_0x558c3c=_0x20cae2[_0x2c911b(0x134)][_0x2c911b(0x130)];_0x20cae2[_0x2c911b(0x126)][_0x2c911b(0xd9)]({'label':_0x480ff1(this[_0x2c911b(0x12a)],_0x2c911b(0x10b)),'icon':_0x1ba7de}),_0x20cae2[_0x2c911b(0xe4)]='sw';const _0x5d7f3f=new _0x5ee210(this[_0x2c911b(0x12a)]);_0x5d7f3f[_0x2c911b(0xfd)]=_0x480ff1(this[_0x2c911b(0x12a)],_0x2c911b(0x100)),_0x5d7f3f[_0x2c911b(0x10f)]=!0x0,_0x5d7f3f['on'](_0x2c911b(0xda),()=>{const _0x435105=_0x2c911b;this[_0x435105(0xf9)]=!0x0;});const _0x5915e2=new _0x5ee210(this[_0x2c911b(0x12a)]);_0x5915e2[_0x2c911b(0xfd)]=_0x480ff1(this[_0x2c911b(0x12a)],_0x2c911b(0xe6)),_0x5915e2[_0x2c911b(0x10f)]=!0x0,_0x5915e2['on'](_0x2c911b(0xda),()=>{const _0x2464ff=_0x2c911b;this[_0x2464ff(0xe5)](_0x480ff1(this[_0x2464ff(0x12a)],_0x2464ff(0xf4)),this[_0x2464ff(0xf2)])[_0x2464ff(0x108)](()=>{const _0x19c48a=_0x2464ff;this[_0x19c48a(0xd7)](_0x19c48a(0x122),{'id':this['id']});});});const _0x2185d7=new _0x3a4eac(this[_0x2c911b(0x12a)]),_0x573953=new _0x302fbf(this[_0x2c911b(0x12a)]);_0x573953[_0x2c911b(0x130)][_0x2c911b(0xd8)](_0x5d7f3f);const _0x1488ed=new _0x302fbf(this[_0x2c911b(0x12a)]);return _0x1488ed[_0x2c911b(0x130)][_0x2c911b(0xd8)](_0x5915e2),_0x2185d7[_0x2c911b(0x124)][_0x2c911b(0x139)]([_0x573953,_0x1488ed]),_0x558c3c[_0x2c911b(0xd8)](_0x2185d7),_0x20cae2;}[_0x553997(0xed)](_0x537ae7,_0x446030){const _0xf4877c=_0x553997,_0x2a2243=new _0x490ba7(_0x537ae7),_0x2df8de=_0x2a2243[_0xf4877c(0x132)];return _0x2a2243[_0xf4877c(0x131)]=_0x446030,_0x2a2243[_0xf4877c(0x125)]({'on':{'keydown':_0x2df8de['to'](_0x14ebd1=>{const _0x2509df=_0xf4877c;_0x2509df(0xef)==_0x14ebd1[_0x2509df(0x119)]&&this[_0x2509df(0x135)](_0x2a2243);})}}),_0x2a2243;}[_0x553997(0x10a)](_0x4b5fe2,_0x3ad561){const _0x35753c=_0x553997,_0x566d52=new _0x5ee210(_0x4b5fe2);return _0x566d52[_0x35753c(0xd9)]({'icon':_0x2db247,'withText':!0x1,'tooltip':_0x480ff1(_0x4b5fe2,_0x35753c(0x104))}),_0x566d52[_0x35753c(0x125)]({'attributes':{'class':[_0x35753c(0xf1)]}}),_0x566d52['on'](_0x35753c(0xda),()=>{const _0x48e6ff=_0x35753c;this[_0x48e6ff(0x135)](_0x3ad561);}),_0x566d52;}[_0x553997(0x135)](_0x435e9c){const _0xa5843c=_0x553997,_0x8772c8=_0x435e9c[_0xa5843c(0xf2)][_0xa5843c(0x131)]||'';this[_0xa5843c(0x12d)][_0xa5843c(0xee)]=_0x8772c8,this[_0xa5843c(0xf9)]=!0x1,this[_0xa5843c(0xd7)](_0xa5843c(0x12c),{'id':this['id'],'title':_0x8772c8});}[_0x553997(0x11d)](_0x2d7e2e,_0x210a49){const _0x526ec8=_0x553997,_0x4b901f=new _0x5ee210(_0x2d7e2e);return _0x4b901f[_0x526ec8(0xd9)]({'icon':_0x3e4b92,'withText':!0x1,'tooltip':_0x480ff1(_0x2d7e2e,_0x526ec8(0xe1))}),_0x4b901f[_0x526ec8(0x125)]({'attributes':{'class':[_0x526ec8(0x10e)]}}),_0x4b901f['on'](_0x526ec8(0xda),()=>{const _0x475319=_0x526ec8;this[_0x475319(0xf9)]=!0x1,_0x210a49[_0x475319(0x131)]=this[_0x475319(0x12d)][_0x475319(0xee)]||'',this[_0x475319(0xd7)](_0x475319(0x120));}),_0x4b901f;}[_0x553997(0x11c)](){const _0x1a9abf=_0x553997,_0xd1c9=new _0xe18f81(_0x1a9abf(0xfb));return _0xd1c9[_0x1a9abf(0x129)]=!0x0,_0xd1c9;}[_0x553997(0xf0)](_0x357bf2){const _0x23418b=_0x553997;return this[_0x23418b(0x12d)]&&_0x23418b(0x109)==typeof this[_0x23418b(0x12d)][_0x23418b(0xee)]&&this[_0x23418b(0x12d)][_0x23418b(0xee)][_0x23418b(0xdd)](_0x357bf2)?{'title':!0x0}:null;}[_0x553997(0x133)](_0x4029ee){const _0x4c9368=_0x553997;this[_0x4c9368(0x12d)][_0x4c9368(0x133)](_0x4029ee);}}
23
+ function _0x42d3(_0x1b2152,_0x470ccd){const _0x599bba=_0x599b();return _0x42d3=function(_0x42d3ce,_0x341ca6){_0x42d3ce=_0x42d3ce-0x79;let _0x9715f3=_0x599bba[_0x42d3ce];return _0x9715f3;},_0x42d3(_0x1b2152,_0x470ccd);}const _0x5ebece=_0x42d3;(function(_0x2c7e2f,_0x6e80){const _0x393e7a=_0x42d3,_0x2cf18d=_0x2c7e2f();while(!![]){try{const _0x19f759=parseInt(_0x393e7a(0x86))/0x1*(parseInt(_0x393e7a(0x8f))/0x2)+-parseInt(_0x393e7a(0xc0))/0x3+-parseInt(_0x393e7a(0xa7))/0x4+-parseInt(_0x393e7a(0xb8))/0x5+parseInt(_0x393e7a(0xa0))/0x6+-parseInt(_0x393e7a(0xc9))/0x7*(parseInt(_0x393e7a(0xd3))/0x8)+parseInt(_0x393e7a(0xb4))/0x9*(parseInt(_0x393e7a(0x8b))/0xa);if(_0x19f759===_0x6e80)break;else _0x2cf18d['push'](_0x2cf18d['shift']());}catch(_0x20796b){_0x2cf18d['push'](_0x2cf18d['shift']());}}}(_0x599b,0x58310));import{ListItemView as _0x2207c4,HighlightedTextView as _0x7929a6,ButtonView as _0x33156c,ListView as _0x11c97c,IconView as _0x42fe81,createDropdown as _0x3104ae,InputTextView as _0xdeab0e}from'ckeditor5/src/ui.js';function _0x599b(){const _0x258ee2=['isEdit','updateTitle','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','AI_CHAT_HISTORY_LOADING_RENAMING','_titleView','Enter','children','loadingState','764322kRogzJ','bindTemplate','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_LOADING_PINNING','setConversationPinned','AI_CHAT_HISTORY_LOADING_REMOVING','2001196PQRymn','clear','items','ck-ai-loader__text','ck-ai-chat-history__item-title','ck-confirm-view-submit','span','createCollection','addMany','setTemplate','value','ck-ai-chat-history__item-content','actions','18GrGONj','bind','updateLoadingState','ck-hidden','1530625vPGzTn','removeConversation','element','_createMenuDropdownView','pinned','_commitEditInputValue','ck-ai-loader','AI_CHAT_HISTORY_REMOVE','403755vdqtqA','highlightText','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item--edit','match','_createSpinnerView','_createAcceptEditButtonView','AI_CHAT_HISTORY_ACCEPT','fire','217vHwQYC','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_LOADING_UNPINNING','withText','ck-ai-chat-history__item--active','locale','ck-ai-chat-history__item-main-content','ck-ai-chat-history__item-check','panelView','buttonView','181928vsnSoO','string','tiny','text','label','selectConversation','ck-confirm-view-cancel','mainContent','ck-ai-chat-history__item-check-container','isVisible','set','div','AI_CHAT_HISTORY_PIN_BUTTON','click','_createPinButtonView','editConversationTitle','panelPosition','focus','_createCheckView','isOn','isMatching','2661vHkpBX','ck-ai-chat-history__item','key','edit:cancel','extendTemplate','6219230NOWUXI','ck-ai-chat-history__item-actions','then','_createCancelEditButtonView','478MyEcJA','change:isEdit','showConfirm','LOADING_LABELS','ck-ai-chat-history__item-row','_createEditInputView','add','listitem','execute'];_0x599b=function(){return _0x258ee2;};return _0x599b();}import{IconThreeHorizontalDots as _0x4e3388,IconPin as _0x345911,IconCheck as _0x2b4f68,IconCancel as _0x57380f}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x169e9f,ConfirmMixin as _0x3b9897}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x393ec6}from'es-toolkit/compat';import{AISpinnerView as _0x3e4533}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x49b09b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x3b9897(_0x2207c4){['id'];static [_0x5ebece(0x92)]={'remove':_0x5ebece(0xa6),'rename':_0x5ebece(0x9b),'pin':_0x5ebece(0xa4),'unpin':_0x5ebece(0xcb)};[_0x5ebece(0xb3)];[_0x5ebece(0xda)];[_0x5ebece(0x9c)];constructor(_0x458d02,_0x58327a){const _0x347b64=_0x5ebece;super(_0x458d02);const _0x32e191=this[_0x347b64(0xa1)];this[_0x347b64(0x7b)](_0x347b64(0x98),!0x1),this[_0x347b64(0x7b)](_0x347b64(0x7a),!0x0),this[_0x347b64(0x7b)](_0x347b64(0xbc),!!_0x58327a[_0x347b64(0xbc)]),this[_0x347b64(0x7b)](_0x347b64(0x9f),null),this['id']=_0x58327a['id'];const {title:_0x2a0559,createdAt:_0x42feb8,active:_0x25e1f7=!0x1}=_0x58327a;this[_0x347b64(0x9c)]=new _0x7929a6(),this[_0x347b64(0x9c)][_0x347b64(0xd6)]=_0x2a0559,this[_0x347b64(0x9c)][_0x347b64(0x8a)]({'attributes':{'class':[_0x347b64(0xab)]}});const _0x43c607=this[_0x347b64(0x83)](),_0xfa85b6=this[_0x347b64(0x7f)](_0x458d02),_0x569ba6=this[_0x347b64(0xbb)](),_0x2d016d=this[_0x347b64(0x94)](_0x458d02,_0x2a0559),_0x48dce7=this[_0x347b64(0xc6)](_0x458d02,_0x2d016d),_0x4ffe59=this[_0x347b64(0x8e)](_0x458d02,_0x2d016d);this[_0x347b64(0xb3)]=this[_0x347b64(0xae)](),this[_0x347b64(0xda)]=this[_0x347b64(0xae)](),this[_0x347b64(0xda)][_0x347b64(0x95)](this[_0x347b64(0x9c)]),this[_0x347b64(0xb3)][_0x347b64(0x95)](_0xfa85b6),this[_0x347b64(0xb3)][_0x347b64(0x95)](_0x569ba6),this['on'](_0x347b64(0x90),(_0x2376f5,_0x47e6e7,_0x4ccbb2)=>{const _0x9c6d3e=_0x347b64;this[_0x9c6d3e(0xb3)][_0x9c6d3e(0xa8)](),this[_0x9c6d3e(0xda)][_0x9c6d3e(0xa8)](),_0x4ccbb2?(this[_0x9c6d3e(0xb3)][_0x9c6d3e(0x95)](_0x48dce7),this[_0x9c6d3e(0xb3)][_0x9c6d3e(0x95)](_0x4ffe59),this[_0x9c6d3e(0xda)][_0x9c6d3e(0x95)](_0x2d016d),_0x2d016d[_0x9c6d3e(0xba)][_0x9c6d3e(0x82)]()):(this[_0x9c6d3e(0xb3)][_0x9c6d3e(0x95)](_0xfa85b6),this[_0x9c6d3e(0xb3)][_0x9c6d3e(0x95)](_0x569ba6),this[_0x9c6d3e(0xda)][_0x9c6d3e(0x95)](this[_0x9c6d3e(0x9c)]));}),this[_0x347b64(0xb0)]({'tag':'li','attributes':{'class':[_0x347b64(0x87),_0x25e1f7?_0x347b64(0xcd):'',_0x32e191['if'](_0x347b64(0x7a),_0x347b64(0xb7),_0x1c5567=>!_0x1c5567),_0x32e191['if'](_0x347b64(0x98),_0x347b64(0xc3))],'role':_0x347b64(0x96)},'children':[{'tag':_0x347b64(0xad),'attributes':{'class':[_0x347b64(0x79)]},'children':[{'tag':_0x347b64(0x7c),'attributes':{'class':[_0x347b64(0xd0),_0x32e191['if'](_0x347b64(0x9f),_0x347b64(0xb7),_0x253919=>!!_0x253919)]},'children':_0x25e1f7?[_0x43c607]:[]},{'tag':_0x347b64(0x7c),'attributes':{'class':[_0x347b64(0xbe),_0x32e191['if'](_0x347b64(0x9f),_0x347b64(0xb7),_0xf61eae=>!_0xf61eae)]},'children':[this[_0x347b64(0xc5)]()]}]},{'tag':_0x347b64(0x7c),'attributes':{'class':[_0x347b64(0x93)]},'children':[{'tag':_0x347b64(0x7c),'attributes':{'class':[_0x347b64(0xb2)]},'on':{'click':this[_0x347b64(0xa1)]['to'](_0x347b64(0x7e))},'children':[{'tag':_0x347b64(0x7c),'attributes':{'class':[_0x347b64(0xcf)]},'children':[{'tag':_0x347b64(0x7c),'attributes':{'class':[_0x347b64(0xab),_0x32e191['if'](_0x347b64(0x9f),_0x347b64(0xb7),_0x49d4b8=>!!_0x49d4b8)]},'children':this[_0x347b64(0xda)]},{'tag':_0x347b64(0x7c),'attributes':{'class':[_0x347b64(0xaa),_0x32e191['if'](_0x347b64(0x9f),_0x347b64(0xb7),_0x5ea0b7=>!_0x5ea0b7)]},'children':[{'text':_0x32e191['to'](_0x347b64(0x9f),_0x556cb9=>_0x556cb9?_0x49b09b(this[_0x347b64(0xce)],AIChatHistoryListItemView[_0x347b64(0x92)][_0x556cb9]):'')}]}]},{'tag':_0x347b64(0xad),'attributes':{'class':[_0x347b64(0xca)]},'children':[_0x42feb8]}]},{'tag':_0x347b64(0x7c),'attributes':{'class':[_0x347b64(0x8c)]},'children':this[_0x347b64(0xb3)]}]}]}),this['on'](_0x347b64(0x7e),()=>{const _0x2e1630=_0x347b64;this[_0x2e1630(0x98)]||this[_0x2e1630(0xc8)](_0x2e1630(0xd8),{'id':this['id']});});}[_0x5ebece(0x99)](_0x51dd0a){const _0x164fd0=_0x5ebece;this[_0x164fd0(0x9c)][_0x164fd0(0xd6)]=_0x393ec6(_0x51dd0a);}[_0x5ebece(0xb6)](_0x409680,_0x5af963){const _0x137b97=_0x5ebece;this[_0x137b97(0x7b)](_0x137b97(0x9f),_0x5af963?_0x409680:null);}[_0x5ebece(0x83)](){const _0x2cb621=_0x5ebece,_0x4ced00=new _0x42fe81();return _0x4ced00[_0x2cb621(0x7b)]({'content':_0x2b4f68}),_0x4ced00;}[_0x5ebece(0x7f)](_0x539fab){const _0x540383=_0x5ebece,_0x19a140=new _0x33156c(_0x539fab);return _0x19a140[_0x540383(0x7b)]({'label':_0x49b09b(_0x539fab,_0x540383(0x7d)),'icon':_0x345911,'withText':!0x1,'tooltip':!0x0}),_0x19a140[_0x540383(0xb5)](_0x540383(0x84))['to'](this,_0x540383(0xbc)),_0x19a140['on'](_0x540383(0x97),()=>{const _0x14f74f=_0x540383,_0x3775a2=!this[_0x14f74f(0xbc)];this[_0x14f74f(0xc8)](_0x14f74f(0xa5),{'id':this['id'],'pinned':_0x3775a2});}),_0x19a140;}[_0x5ebece(0xbb)](){const _0x196d37=_0x5ebece,_0x1eae4b=_0x3104ae(this[_0x196d37(0xce)],_0x169e9f),_0x54cd62=_0x1eae4b[_0x196d37(0xd1)][_0x196d37(0x9e)];_0x1eae4b[_0x196d37(0xd2)][_0x196d37(0x7b)]({'label':_0x49b09b(this[_0x196d37(0xce)],_0x196d37(0x9a)),'icon':_0x4e3388}),_0x1eae4b[_0x196d37(0x81)]='sw';const _0x21e87b=new _0x33156c(this[_0x196d37(0xce)]);_0x21e87b[_0x196d37(0xd7)]=_0x49b09b(this[_0x196d37(0xce)],_0x196d37(0xa3)),_0x21e87b[_0x196d37(0xcc)]=!0x0,_0x21e87b['on'](_0x196d37(0x97),()=>{const _0x4c0fed=_0x196d37;this[_0x4c0fed(0x98)]=!0x0;});const _0x96f166=new _0x33156c(this[_0x196d37(0xce)]);_0x96f166[_0x196d37(0xd7)]=_0x49b09b(this[_0x196d37(0xce)],_0x196d37(0xbf)),_0x96f166[_0x196d37(0xcc)]=!0x0,_0x96f166['on'](_0x196d37(0x97),()=>{const _0x4dfb64=_0x196d37;this[_0x4dfb64(0x91)](_0x49b09b(this[_0x4dfb64(0xce)],_0x4dfb64(0xc2)),this[_0x4dfb64(0xba)])[_0x4dfb64(0x8d)](()=>{const _0x1edc49=_0x4dfb64;this[_0x1edc49(0xc8)](_0x1edc49(0xb9),{'id':this['id']});});});const _0x270ee2=new _0x11c97c(this[_0x196d37(0xce)]),_0x36c607=new _0x2207c4(this[_0x196d37(0xce)]);_0x36c607[_0x196d37(0x9e)][_0x196d37(0x95)](_0x21e87b);const _0x2d13a6=new _0x2207c4(this[_0x196d37(0xce)]);return _0x2d13a6[_0x196d37(0x9e)][_0x196d37(0x95)](_0x96f166),_0x270ee2[_0x196d37(0xa9)][_0x196d37(0xaf)]([_0x36c607,_0x2d13a6]),_0x54cd62[_0x196d37(0x95)](_0x270ee2),_0x1eae4b;}[_0x5ebece(0x94)](_0xf92ca8,_0x3a9e52){const _0x36c681=_0x5ebece,_0x587107=new _0xdeab0e(_0xf92ca8),_0x560cc6=_0x587107[_0x36c681(0xa1)];return _0x587107[_0x36c681(0xb1)]=_0x3a9e52,_0x587107[_0x36c681(0x8a)]({'on':{'keydown':_0x560cc6['to'](_0xb9a187=>{const _0x410317=_0x36c681;_0x410317(0x9d)==_0xb9a187[_0x410317(0x88)]&&this[_0x410317(0xbd)](_0x587107);})}}),_0x587107;}[_0x5ebece(0xc6)](_0x520e89,_0x3a0028){const _0x22be3f=_0x5ebece,_0x2716cf=new _0x33156c(_0x520e89);return _0x2716cf[_0x22be3f(0x7b)]({'icon':_0x2b4f68,'withText':!0x1,'tooltip':_0x49b09b(_0x520e89,_0x22be3f(0xc7))}),_0x2716cf[_0x22be3f(0x8a)]({'attributes':{'class':[_0x22be3f(0xac)]}}),_0x2716cf['on'](_0x22be3f(0x97),()=>{const _0x44148b=_0x22be3f;this[_0x44148b(0xbd)](_0x3a0028);}),_0x2716cf;}[_0x5ebece(0xbd)](_0x3fb4c0){const _0x1f713a=_0x5ebece,_0x260fe8=_0x3fb4c0[_0x1f713a(0xba)][_0x1f713a(0xb1)]||'';this[_0x1f713a(0x9c)][_0x1f713a(0xd6)]=_0x260fe8,this[_0x1f713a(0x98)]=!0x1,this[_0x1f713a(0xc8)](_0x1f713a(0x80),{'id':this['id'],'title':_0x260fe8});}[_0x5ebece(0x8e)](_0x44a67e,_0x4caf12){const _0x1dc044=_0x5ebece,_0x5340e0=new _0x33156c(_0x44a67e);return _0x5340e0[_0x1dc044(0x7b)]({'icon':_0x57380f,'withText':!0x1,'tooltip':_0x49b09b(_0x44a67e,_0x1dc044(0xa2))}),_0x5340e0[_0x1dc044(0x8a)]({'attributes':{'class':[_0x1dc044(0xd9)]}}),_0x5340e0['on'](_0x1dc044(0x97),()=>{const _0x2fc3b4=_0x1dc044;this[_0x2fc3b4(0x98)]=!0x1,_0x4caf12[_0x2fc3b4(0xb1)]=this[_0x2fc3b4(0x9c)][_0x2fc3b4(0xd6)]||'',this[_0x2fc3b4(0xc8)](_0x2fc3b4(0x89));}),_0x5340e0;}[_0x5ebece(0xc5)](){const _0xe2ae86=_0x5ebece,_0x44f1a6=new _0x3e4533(_0xe2ae86(0xd5));return _0x44f1a6[_0xe2ae86(0x7a)]=!0x0,_0x44f1a6;}[_0x5ebece(0x85)](_0xf0c378){const _0x2aaba0=_0x5ebece;return this[_0x2aaba0(0x9c)]&&_0x2aaba0(0xd4)==typeof this[_0x2aaba0(0x9c)][_0x2aaba0(0xd6)]&&this[_0x2aaba0(0x9c)][_0x2aaba0(0xd6)][_0x2aaba0(0xc4)](_0xf0c378)?{'title':!0x0}:null;}[_0x5ebece(0xc1)](_0x14b7b8){const _0x472a89=_0x5ebece;this[_0x472a89(0x9c)][_0x472a89(0xc1)](_0x14b7b8);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x425cb4=_0x5c60;function _0x5c60(_0x243311,_0xbbaa1e){const _0x2f5dee=_0x2f5d();return _0x5c60=function(_0x5c60f8,_0x455637){_0x5c60f8=_0x5c60f8-0xd4;let _0x260e69=_0x2f5dee[_0x5c60f8];return _0x260e69;},_0x5c60(_0x243311,_0xbbaa1e);}(function(_0x4b75c8,_0x302ac7){const _0x26eb0f=_0x5c60,_0x354e66=_0x4b75c8();while(!![]){try{const _0x50cadf=-parseInt(_0x26eb0f(0xeb))/0x1+-parseInt(_0x26eb0f(0xea))/0x2*(parseInt(_0x26eb0f(0xe8))/0x3)+-parseInt(_0x26eb0f(0xdc))/0x4+parseInt(_0x26eb0f(0xec))/0x5*(parseInt(_0x26eb0f(0xf3))/0x6)+-parseInt(_0x26eb0f(0xf4))/0x7*(-parseInt(_0x26eb0f(0xde))/0x8)+-parseInt(_0x26eb0f(0xed))/0x9+parseInt(_0x26eb0f(0xe1))/0xa;if(_0x50cadf===_0x302ac7)break;else _0x354e66['push'](_0x354e66['shift']());}catch(_0x166dca){_0x354e66['push'](_0x354e66['shift']());}}}(_0x2f5d,0x3d2cf));function _0x2f5d(){const _0x37c563=['417726hyIoqL','1086765doaImh','2180016FLwOtw','title','ck-ai-chat-history__section-title','addMany','length','setTemplate','12qHxBeG','583450LctEWg','find','ck-hidden','isMatching','removeItem','itemsViews','set','highlightText','div','170992CkgpTm','isVisible','24QeHAzI','getItem','indexOf','4134550AvawlU','remove','_itemsListView','bindTemplate','splice','filter','ck-ai-chat-history__section','217407zbxqvD','items','4VrTrEp'];_0x2f5d=function(){return _0x37c563;};return _0x2f5d();}import{ListItemView as _0x2d32b9,View as _0x3ebb94,ListView as _0x259c62}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2d32b9{[_0x425cb4(0xee)];[_0x425cb4(0xd8)];[_0x425cb4(0xe3)];constructor(_0x32e85b,{title:_0x5939a4,items:_0x43baa4}){const _0x2befdb=_0x425cb4;super(_0x32e85b);const _0x38c0aa=this[_0x2befdb(0xe4)];this[_0x2befdb(0xd9)](_0x2befdb(0xdd),!0x0),this[_0x2befdb(0xee)]=_0x5939a4,this[_0x2befdb(0xd8)]=_0x43baa4;const _0x24bc32=new _0x3ebb94(_0x32e85b);_0x24bc32[_0x2befdb(0xf2)]({'tag':_0x2befdb(0xdb),'attributes':{'class':[_0x2befdb(0xef)]},'children':[this[_0x2befdb(0xee)]]}),this[_0x2befdb(0xe3)]=new _0x259c62(_0x32e85b),this[_0x2befdb(0xe3)][_0x2befdb(0xe9)][_0x2befdb(0xf0)](this[_0x2befdb(0xd8)]),this[_0x2befdb(0xf2)]({'tag':'li','attributes':{'class':[_0x2befdb(0xe7),_0x38c0aa['if'](_0x2befdb(0xdd),_0x2befdb(0xd5),_0x536672=>!_0x536672)]},'children':[_0x24bc32,this[_0x2befdb(0xe3)]]});}[_0x425cb4(0xe6)](_0x2817fd){const _0x18b197=_0x425cb4,_0x26b8b2=this[_0x18b197(0xd8)][_0x18b197(0xf1)];let _0x4e9590=0x0;for(const _0x369324 of this[_0x18b197(0xd8)]){if(_0x2817fd){const _0x3c86c8=_0x369324[_0x18b197(0xd6)](_0x2817fd);_0x369324[_0x18b197(0xdd)]=!!_0x3c86c8,_0x369324[_0x18b197(0xda)](_0x2817fd);}else _0x369324[_0x18b197(0xdd)]=!0x0,_0x369324[_0x18b197(0xda)](null);_0x369324[_0x18b197(0xdd)]&&_0x4e9590++;}return this[_0x18b197(0xdd)]=_0x4e9590>0x0,{'resultsCount':_0x4e9590,'totalItemsCount':_0x26b8b2};}[_0x425cb4(0xdf)](_0x28ac17){const _0x408d00=_0x425cb4;return this[_0x408d00(0xd8)][_0x408d00(0xd4)](_0x322e96=>_0x322e96['id']===_0x28ac17);}[_0x425cb4(0xd7)](_0x4eeb35){const _0x889e0e=_0x425cb4,_0x3d2b26=this[_0x889e0e(0xd8)][_0x889e0e(0xe0)](_0x4eeb35);-0x1!==_0x3d2b26&&(this[_0x889e0e(0xd8)][_0x889e0e(0xe5)](_0x3d2b26,0x1),this[_0x889e0e(0xe3)][_0x889e0e(0xe9)][_0x889e0e(0xe2)](_0x4eeb35));}}
23
+ const _0x2df593=_0x42e0;function _0x22ee(){const _0xae5e7=['removeItem','items','4RCVCmq','setTemplate','6018605GRTHSd','length','1339062OtqVPz','title','find','709536UKOdBy','ck-hidden','filter','div','ck-ai-chat-history__section-title','bindTemplate','getItem','indexOf','8335482ffmLDd','32898078ydxcSM','isMatching','remove','_itemsListView','10337712Hvsspf','splice','9791166WImpsy','itemsViews','3GZzaiK','highlightText','isVisible','ck-ai-chat-history__section','set','addMany'];_0x22ee=function(){return _0xae5e7;};return _0x22ee();}function _0x42e0(_0xb25ea7,_0xf06b64){const _0x22ee58=_0x22ee();return _0x42e0=function(_0x42e0d1,_0x58d230){_0x42e0d1=_0x42e0d1-0x1ca;let _0x46113d=_0x22ee58[_0x42e0d1];return _0x46113d;},_0x42e0(_0xb25ea7,_0xf06b64);}(function(_0x583c33,_0x110b45){const _0x5eb434=_0x42e0,_0x1809e6=_0x583c33();while(!![]){try{const _0x24dc4c=parseInt(_0x5eb434(0x1ce))/0x1+-parseInt(_0x5eb434(0x1d1))/0x2*(-parseInt(_0x5eb434(0x1e2))/0x3)+-parseInt(_0x5eb434(0x1ca))/0x4*(-parseInt(_0x5eb434(0x1cc))/0x5)+parseInt(_0x5eb434(0x1d9))/0x6+parseInt(_0x5eb434(0x1e0))/0x7+-parseInt(_0x5eb434(0x1de))/0x8+-parseInt(_0x5eb434(0x1da))/0x9;if(_0x24dc4c===_0x110b45)break;else _0x1809e6['push'](_0x1809e6['shift']());}catch(_0x1430e6){_0x1809e6['push'](_0x1809e6['shift']());}}}(_0x22ee,0xb42bc));import{ListItemView as _0x2d8acf,View as _0x104965,ListView as _0x456bb6}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2d8acf{[_0x2df593(0x1cf)];[_0x2df593(0x1e1)];[_0x2df593(0x1dd)];constructor(_0xd40887,{title:_0x4182a2,items:_0x3f87e8}){const _0x1ef3df=_0x2df593;super(_0xd40887);const _0x2ec2f1=this[_0x1ef3df(0x1d6)];this[_0x1ef3df(0x1e6)](_0x1ef3df(0x1e4),!0x0),this[_0x1ef3df(0x1cf)]=_0x4182a2,this[_0x1ef3df(0x1e1)]=_0x3f87e8;const _0x3fff56=new _0x104965(_0xd40887);_0x3fff56[_0x1ef3df(0x1cb)]({'tag':_0x1ef3df(0x1d4),'attributes':{'class':[_0x1ef3df(0x1d5)]},'children':[this[_0x1ef3df(0x1cf)]]}),this[_0x1ef3df(0x1dd)]=new _0x456bb6(_0xd40887),this[_0x1ef3df(0x1dd)][_0x1ef3df(0x1e9)][_0x1ef3df(0x1e7)](this[_0x1ef3df(0x1e1)]),this[_0x1ef3df(0x1cb)]({'tag':'li','attributes':{'class':[_0x1ef3df(0x1e5),_0x2ec2f1['if'](_0x1ef3df(0x1e4),_0x1ef3df(0x1d2),_0x56f90b=>!_0x56f90b)]},'children':[_0x3fff56,this[_0x1ef3df(0x1dd)]]});}[_0x2df593(0x1d3)](_0x1ee9cd){const _0x3d1a69=_0x2df593,_0xb848df=this[_0x3d1a69(0x1e1)][_0x3d1a69(0x1cd)];let _0x4cf978=0x0;for(const _0x54f491 of this[_0x3d1a69(0x1e1)]){if(_0x1ee9cd){const _0x5bde37=_0x54f491[_0x3d1a69(0x1db)](_0x1ee9cd);_0x54f491[_0x3d1a69(0x1e4)]=!!_0x5bde37,_0x54f491[_0x3d1a69(0x1e3)](_0x1ee9cd);}else _0x54f491[_0x3d1a69(0x1e4)]=!0x0,_0x54f491[_0x3d1a69(0x1e3)](null);_0x54f491[_0x3d1a69(0x1e4)]&&_0x4cf978++;}return this[_0x3d1a69(0x1e4)]=_0x4cf978>0x0,{'resultsCount':_0x4cf978,'totalItemsCount':_0xb848df};}[_0x2df593(0x1d7)](_0x237d5f){const _0x623927=_0x2df593;return this[_0x623927(0x1e1)][_0x623927(0x1d0)](_0x18cf73=>_0x18cf73['id']===_0x237d5f);}[_0x2df593(0x1e8)](_0x3b0bd1){const _0x1d41c7=_0x2df593,_0x3209eb=this[_0x1d41c7(0x1e1)][_0x1d41c7(0x1d8)](_0x3b0bd1);-0x1!==_0x3209eb&&(this[_0x1d41c7(0x1e1)][_0x1d41c7(0x1df)](_0x3209eb,0x1),this[_0x1d41c7(0x1dd)][_0x1d41c7(0x1e9)][_0x1d41c7(0x1dc)](_0x3b0bd1));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5d27(_0x422404,_0x3a8f23){const _0x4640ac=_0x4640();return _0x5d27=function(_0x5d2726,_0x134d8d){_0x5d2726=_0x5d2726-0x1b9;let _0x25e859=_0x4640ac[_0x5d2726];return _0x25e859;},_0x5d27(_0x422404,_0x3a8f23);}const _0x5ce91b=_0x5d27;function _0x4640(){const _0x3496ca=['879083dNFOLK','2203258yydCHY','addMany','extendTemplate','sections','3638298YcVHRH','ck-ai-chat-history__sections','22610232MblCrQ','3aFyZIp','5dlqpnl','724692GCvHrl','3409016xedgRj','5486607eZSdyx','items','filter'];_0x4640=function(){return _0x3496ca;};return _0x4640();}(function(_0x41cb42,_0x249a9c){const _0x56881c=_0x5d27,_0x3af6a1=_0x41cb42();while(!![]){try{const _0x3b2682=-parseInt(_0x56881c(0x1be))/0x1+parseInt(_0x56881c(0x1bf))/0x2*(parseInt(_0x56881c(0x1c6))/0x3)+-parseInt(_0x56881c(0x1b9))/0x4+-parseInt(_0x56881c(0x1c7))/0x5*(parseInt(_0x56881c(0x1c3))/0x6)+-parseInt(_0x56881c(0x1bb))/0x7+-parseInt(_0x56881c(0x1ba))/0x8+parseInt(_0x56881c(0x1c5))/0x9;if(_0x3b2682===_0x249a9c)break;else _0x3af6a1['push'](_0x3af6a1['shift']());}catch(_0x37001f){_0x3af6a1['push'](_0x3af6a1['shift']());}}}(_0x4640,0xb401e));import{ListView as _0x4fe8c4}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x4fe8c4{[_0x5ce91b(0x1c2)];constructor(_0x3daa4c,_0x3bccc7){const _0x1fec11=_0x5ce91b;super(_0x3daa4c),this[_0x1fec11(0x1c2)]=_0x3bccc7,this[_0x1fec11(0x1bc)][_0x1fec11(0x1c0)](this[_0x1fec11(0x1c2)]),this[_0x1fec11(0x1c1)]({'attributes':{'class':[_0x1fec11(0x1c4)]}});}[_0x5ce91b(0x1bd)](_0xa9b04b){const _0x1c0d4b=_0x5ce91b;let _0xeb82c0=0x0,_0x13c17d=0x0;for(const _0xd63caf of this[_0x1c0d4b(0x1c2)]){const {resultsCount:_0x4832e6,totalItemsCount:_0x681a7f}=_0xd63caf[_0x1c0d4b(0x1bd)](_0xa9b04b);_0xeb82c0+=_0x4832e6,_0x13c17d+=_0x681a7f;}return{'resultsCount':_0xeb82c0,'totalItemsCount':_0x13c17d};}}
23
+ function _0x5280(){const _0x27f00e=['754414wpioNq','extendTemplate','7Wpjjzd','1340829kfkMkR','110BcGdtj','ck-ai-chat-history__sections','7402568dzCuzk','items','35783qillAz','6036SiThOl','6483366GAcqtK','1wAvITK','50iRYxmt','filter','6363nRETVU','424604ERPHCw','sections','addMany'];_0x5280=function(){return _0x27f00e;};return _0x5280();}const _0x446f6e=_0x631f;function _0x631f(_0x159163,_0xcaae2a){const _0x52809e=_0x5280();return _0x631f=function(_0x631f1d,_0x6871d0){_0x631f1d=_0x631f1d-0xaa;let _0x1ef0b0=_0x52809e[_0x631f1d];return _0x1ef0b0;},_0x631f(_0x159163,_0xcaae2a);}(function(_0x5256c5,_0x12792f){const _0x3f8990=_0x631f,_0x565f95=_0x5256c5();while(!![]){try{const _0x42d6b3=parseInt(_0x3f8990(0xbb))/0x1*(-parseInt(_0x3f8990(0xb0))/0x2)+-parseInt(_0x3f8990(0xb3))/0x3+parseInt(_0x3f8990(0xad))/0x4*(parseInt(_0x3f8990(0xaa))/0x5)+-parseInt(_0x3f8990(0xba))/0x6*(-parseInt(_0x3f8990(0xb2))/0x7)+parseInt(_0x3f8990(0xb6))/0x8+-parseInt(_0x3f8990(0xac))/0x9*(parseInt(_0x3f8990(0xb4))/0xa)+-parseInt(_0x3f8990(0xb8))/0xb*(parseInt(_0x3f8990(0xb9))/0xc);if(_0x42d6b3===_0x12792f)break;else _0x565f95['push'](_0x565f95['shift']());}catch(_0x14b28b){_0x565f95['push'](_0x565f95['shift']());}}}(_0x5280,0x924a6));import{ListView as _0x2357d5}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x2357d5{[_0x446f6e(0xae)];constructor(_0x3774c6,_0x5da531){const _0x5a1618=_0x446f6e;super(_0x3774c6),this[_0x5a1618(0xae)]=_0x5da531,this[_0x5a1618(0xb7)][_0x5a1618(0xaf)](this[_0x5a1618(0xae)]),this[_0x5a1618(0xb1)]({'attributes':{'class':[_0x5a1618(0xb5)]}});}[_0x446f6e(0xab)](_0x2bbf64){const _0x46e992=_0x446f6e;let _0x3700af=0x0,_0x47f759=0x0;for(const _0x48f515 of this[_0x46e992(0xae)]){const {resultsCount:_0x3d458e,totalItemsCount:_0x94b7ea}=_0x48f515[_0x46e992(0xab)](_0x2bbf64);_0x3700af+=_0x3d458e,_0x47f759+=_0x94b7ea;}return{'resultsCount':_0x3700af,'totalItemsCount':_0x47f759};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x553b28=_0x36ab;(function(_0x213bde,_0x31d657){const _0x37cdc6=_0x36ab,_0x5bbdda=_0x213bde();while(!![]){try{const _0x2da507=-parseInt(_0x37cdc6(0xf8))/0x1+parseInt(_0x37cdc6(0x113))/0x2*(-parseInt(_0x37cdc6(0xd0))/0x3)+-parseInt(_0x37cdc6(0xfc))/0x4+-parseInt(_0x37cdc6(0xf3))/0x5+-parseInt(_0x37cdc6(0xf2))/0x6*(parseInt(_0x37cdc6(0xd1))/0x7)+-parseInt(_0x37cdc6(0xe9))/0x8+parseInt(_0x37cdc6(0xd2))/0x9;if(_0x2da507===_0x31d657)break;else _0x5bbdda['push'](_0x5bbdda['shift']());}catch(_0x9e098c){_0x5bbdda['push'](_0x5bbdda['shift']());}}}(_0x2322,0xdf935));function _0x2322(){const _0x1e3b1e=['delegate','_createSkeletonView','isEmptyViewVisible','238379ubDDUY','div','ck-rounded-corners','itemsViews','710764xeRyNR','some','ck-ai-chat-history','AI_CHAT_HISTORY_EMPTY_MESSAGE','extendTemplate','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_SEARCH_LABEL','change:hasItems','getItem','ck-ai-notification_error__dismiss-button','addMany','removeHistoryItem','children','items','isMainErrorViewVisible','updateItemTitle','_updateViewVisibility','emptyView','removeItem','locale','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','1783534vTgRkf','resizeButton','sectionsView','length','_createErrorView','ck-ai-chat__start-conversation','search','title','mainErrorView','AI_CHAT_HISTORY_HEADING','indexOf','value','fire','fieldView','element','ck-hidden','isLoading','sections','queryView','isMaximized','set','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_refreshSearch','errorMessage','setTemplate','3NzpIny','7SCjkxO','48913839KZpECX','aiHistory','hasItems','ck-reset_all','bindTemplate','ck-ai-notification','openChat','change:isLoading','ck-ai-chat-history__empty','execute','render','splice','add','isVisible','remove','clear','change:errorMessage','ltr','isSearchViewVisible','_createSearchView','bind','skeletonView','_createListItemViews','3123544RvjLpc','updateLoadingState','push','updateHistoryItemsWithCategories','ck-ai-chat-history__content','ck-ai-header\x20ck-ai-header_history','_createEmptyStateView','ck-ai-chat-history__empty-message','updateItemLoadingState','10363194HvqemS','5468135sPwuwe','ck-ai-notification_error'];_0x2322=function(){return _0x1e3b1e;};return _0x2322();}import{View as _0x48b2d8,SearchTextView as _0x1ab128,FormHeaderView as _0x199888,ButtonView as _0x2fa184}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3c49b8,IconCancel as _0x31c827,IconPlus as _0x16c437}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x42be3}from'./aichathistorysectionlistview.js';function _0x36ab(_0x34ed0e,_0x3695a1){const _0x232231=_0x2322();return _0x36ab=function(_0x36ab5c,_0x549d76){_0x36ab5c=_0x36ab5c-0xba;let _0x542e47=_0x232231[_0x36ab5c];return _0x542e47;},_0x36ab(_0x34ed0e,_0x3695a1);}import{AIChatHistoryListView as _0x5cd017}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x53b7d6}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3f576f}from'../aichathistoryui.js';import{AISkeletonView as _0x17b369,SKELETON_DEFINITIONS as _0x18df14}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x448f46}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2c6206}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x48b2d8{[_0x553b28(0x110)];[_0x553b28(0xbf)];[_0x553b28(0xe7)];[_0x553b28(0x10d)];[_0x553b28(0x115)];[_0x553b28(0x114)];constructor(_0x46646d,_0x2022f6){const _0xb52310=_0x553b28;super(_0x46646d),this[_0xb52310(0xcb)](_0xb52310(0xd4),!0x1),this[_0xb52310(0xcb)](_0xb52310(0xc7),!0x0),this[_0xb52310(0xcb)](_0xb52310(0xce),''),this[_0xb52310(0xcb)](_0xb52310(0xca),!0x1),this[_0xb52310(0xcb)](_0xb52310(0xe4),!0x1),this[_0xb52310(0xcb)](_0xb52310(0xf7),!0x1),this[_0xb52310(0xcb)](_0xb52310(0x10a),!0x1);const _0x356f70=new _0x199888(_0x46646d,{'label':_0x2c6206(_0x46646d,_0xb52310(0xc0)),'icon':_0x3c49b8,'class':_0xb52310(0xee)});_0x2022f6&&(this[_0xb52310(0x114)]=_0x448f46(_0x46646d,this),_0x356f70[_0xb52310(0x108)][_0xb52310(0xde)](this[_0xb52310(0x114)])),this[_0xb52310(0x115)]=new _0x42be3(_0x46646d,[]),this[_0xb52310(0x115)][_0xb52310(0xf5)](..._0x3f576f)['to'](this),this[_0xb52310(0xbf)]=this[_0xb52310(0xbb)](),this[_0xb52310(0xe7)]=this[_0xb52310(0xf6)](),this[_0xb52310(0x10d)]=this[_0xb52310(0xef)](),this[_0xb52310(0x110)]=this[_0xb52310(0xe5)](),this[_0xb52310(0xbf)][_0xb52310(0x100)]({'attributes':{'class':[this[_0xb52310(0xd6)]['if'](_0xb52310(0x10a),_0xb52310(0xc6),_0x4d439b=>!_0x4d439b)]}}),this['on'](_0xb52310(0xd9),()=>this[_0xb52310(0x10c)]()),this['on'](_0xb52310(0x103),()=>this[_0xb52310(0x10c)]()),this['on'](_0xb52310(0xe2),()=>this[_0xb52310(0x10c)]()),this[_0xb52310(0xcf)]({'tag':_0xb52310(0xf9),'attributes':{'class':['ck',_0xb52310(0xd5),_0xb52310(0xfe),_0xb52310(0xfa)],'dir':_0xb52310(0xe3)},'children':[_0x356f70,{'tag':_0xb52310(0xf9),'attributes':{'class':[_0xb52310(0xed)]},'children':[this[_0xb52310(0xe7)],this[_0xb52310(0xbf)],this[_0xb52310(0x10d)],this[_0xb52310(0x110)]]}]});}[_0x553b28(0x10c)](){const _0x20d601=_0x553b28;this[_0x20d601(0xe4)]=!this[_0x20d601(0xc7)]&&this[_0x20d601(0xd4)],this[_0x20d601(0xf7)]=!this[_0x20d601(0xc7)]&&!this[_0x20d601(0xd4)]&&!this[_0x20d601(0xce)],this[_0x20d601(0x10a)]=!this[_0x20d601(0xe4)]&&!!this[_0x20d601(0xce)];}[_0x553b28(0xe5)](){const _0x3e6a88=_0x553b28,_0x5d9fa5=new _0x1ab128(this[_0x3e6a88(0x10f)],{'filteredView':this[_0x3e6a88(0x115)],'queryView':{'label':_0x2c6206(this[_0x3e6a88(0x10f)],_0x3e6a88(0x102))},'infoView':{'text':{'notFound':{'primary':_0x4bb328=>_0x2c6206(this[_0x3e6a88(0x10f)],_0x3e6a88(0xcc),_0x4bb328),'secondary':_0x2c6206(this[_0x3e6a88(0x10f)],_0x3e6a88(0x111))}}}}),_0x249a95=this[_0x3e6a88(0xbb)]();return _0x249a95[_0x3e6a88(0x100)]({'attributes':{'class':[this[_0x3e6a88(0xd6)]['if'](_0x3e6a88(0xce),_0x3e6a88(0xc6),_0x35b9da=>!_0x35b9da)]}}),_0x5d9fa5['on'](_0x3e6a88(0xdc),()=>{const _0x3821cf=_0x3e6a88;_0x5d9fa5[_0x3821cf(0x108)][_0x3821cf(0xde)](_0x249a95,0x1);}),_0x5d9fa5[_0x3e6a88(0x100)]({'attributes':{'class':[this[_0x3e6a88(0xd6)]['if'](_0x3e6a88(0xe4),_0x3e6a88(0xc6),_0x299a83=>!_0x299a83)]}}),_0x5d9fa5;}[_0x553b28(0xf6)](){const _0x5de911=_0x553b28,_0x2e4d7b=new _0x17b369(this[_0x5de911(0x10f)],_0x18df14[_0x5de911(0xd3)]);return _0x2e4d7b[_0x5de911(0x100)]({'attributes':{'class':[this[_0x5de911(0xd6)]['if'](_0x5de911(0xc7),_0x5de911(0xc6),_0x3033fc=>!_0x3033fc)]}}),_0x2e4d7b;}[_0x553b28(0xbb)](){const _0x506e1c=_0x553b28,_0x1b70e8=new _0x48b2d8(this[_0x506e1c(0x10f)]),_0xc738cf=new _0x2fa184(this[_0x506e1c(0x10f)]);_0xc738cf[_0x506e1c(0xcb)]({'withText':!0x1,'icon':_0x31c827,'class':_0x506e1c(0x105)}),_0xc738cf[_0x506e1c(0xe6)](_0x506e1c(0xdf))['to'](this,_0x506e1c(0xd4),_0x4cf1e1=>!!_0x4cf1e1),_0xc738cf['on'](_0x506e1c(0xdb),()=>{const _0x2e6e64=_0x506e1c;this[_0x2e6e64(0xce)]='';});const _0x2e512f=this[_0x506e1c(0xd6)];return _0x1b70e8[_0x506e1c(0xcf)]({'tag':_0x506e1c(0xf9),'attributes':{'class':['ck',_0x506e1c(0xd7),_0x506e1c(0xf4)]},'children':[{'tag':'p','children':[{'text':_0x2e512f['to'](_0x506e1c(0xce))}]},_0xc738cf]}),_0x1b70e8;}[_0x553b28(0xef)](){const _0x1ae3c8=_0x553b28,_0x46beb1=new _0x2fa184(this[_0x1ae3c8(0x10f)]);_0x46beb1[_0x1ae3c8(0xcb)]({'label':_0x2c6206(this[_0x1ae3c8(0x10f)],_0x1ae3c8(0x101)),'withText':!0x0,'icon':_0x16c437,'class':_0x1ae3c8(0xbc)}),_0x46beb1['on'](_0x1ae3c8(0xdb),()=>{const _0x2f7874=_0x1ae3c8;this[_0x2f7874(0xc3)](_0x2f7874(0xd8));});const _0x1c50ca=new _0x48b2d8(this[_0x1ae3c8(0x10f)]);return _0x1c50ca[_0x1ae3c8(0xcf)]({'tag':_0x1ae3c8(0xf9),'attributes':{'class':[_0x1ae3c8(0xda),this[_0x1ae3c8(0xd6)]['if'](_0x1ae3c8(0xf7),_0x1ae3c8(0xc6),_0x51de77=>!_0x51de77)]},'children':[{'tag':'p','attributes':{'class':[_0x1ae3c8(0xf0)]},'children':[_0x2c6206(this[_0x1ae3c8(0x10f)],_0x1ae3c8(0xff))]},_0x46beb1]}),_0x1c50ca;}[_0x553b28(0xe8)](_0x3f7e9a,_0xc5da99){const _0x10e960=_0x553b28,_0x50abfb=[];for(const _0x4e51a8 of _0x3f7e9a){const _0x5163d9=new _0x53b7d6(_0xc5da99,_0x4e51a8);_0x5163d9[_0x10e960(0xf5)](..._0x3f576f)['to'](this),_0x50abfb[_0x10e960(0xeb)](_0x5163d9);}return _0x50abfb;}[_0x553b28(0xec)](_0x7583f4){const _0x4f9f47=_0x553b28,_0x38e722=this[_0x4f9f47(0x10f)]||'en',_0x5022b3=[];for(const _0x4b47ce of _0x7583f4){const _0x57cfc5=this[_0x4f9f47(0xe8)](_0x4b47ce[_0x4f9f47(0x109)],_0x38e722);_0x5022b3[_0x4f9f47(0xeb)](new _0x5cd017(_0x38e722,{'title':_0x4b47ce[_0x4f9f47(0xbe)],'items':_0x57cfc5}));}this[_0x4f9f47(0x115)][_0x4f9f47(0xc8)]=_0x5022b3,this[_0x4f9f47(0x115)][_0x4f9f47(0x109)][_0x4f9f47(0xe1)](),this[_0x4f9f47(0x115)][_0x4f9f47(0x109)][_0x4f9f47(0x106)](_0x5022b3),this[_0x4f9f47(0xd4)]=_0x7583f4[_0x4f9f47(0xfd)](_0x1304d0=>_0x1304d0[_0x4f9f47(0x109)][_0x4f9f47(0xba)]>0x0),this[_0x4f9f47(0xcd)]();}[_0x553b28(0x107)](_0x53ce96){const _0x402cf2=_0x553b28;for(const _0x235504 of this[_0x402cf2(0x115)][_0x402cf2(0xc8)]){const _0x33ab89=_0x235504[_0x402cf2(0x104)](_0x53ce96);if(_0x33ab89){if(_0x235504[_0x402cf2(0x10e)](_0x33ab89),0x0===_0x235504[_0x402cf2(0xfb)][_0x402cf2(0xba)]){const _0x10c9c8=this[_0x402cf2(0x115)][_0x402cf2(0xc8)][_0x402cf2(0xc1)](_0x235504);-0x1!==_0x10c9c8&&(this[_0x402cf2(0x115)][_0x402cf2(0xc8)][_0x402cf2(0xdd)](_0x10c9c8,0x1),this[_0x402cf2(0x115)][_0x402cf2(0x109)][_0x402cf2(0xe0)](_0x235504));}this[_0x402cf2(0xd4)]=this[_0x402cf2(0x115)][_0x402cf2(0xc8)][_0x402cf2(0xba)]>0x0,this[_0x402cf2(0xcd)]();break;}}}[_0x553b28(0x10b)](_0x3fbbec,_0x596cac){const _0x5f2eae=_0x553b28;for(const _0x5efa2b of this[_0x5f2eae(0x115)][_0x5f2eae(0xc8)]){const _0x1a0909=_0x5efa2b[_0x5f2eae(0x104)](_0x3fbbec);if(_0x1a0909){_0x1a0909[_0x5f2eae(0x112)](_0x596cac);break;}}}[_0x553b28(0xf1)](_0x80f7a3,_0x1cf4fb,_0x2c6d7f){const _0x2bf68b=_0x553b28;for(const _0x5845d0 of this[_0x2bf68b(0x115)][_0x2bf68b(0xc8)]){const _0x2217a8=_0x5845d0[_0x2bf68b(0x104)](_0x80f7a3);if(_0x2217a8){_0x2217a8[_0x2bf68b(0xea)](_0x1cf4fb,_0x2c6d7f);break;}}}[_0x553b28(0xcd)](){const _0x17c0aa=_0x553b28;if(this[_0x17c0aa(0xd4)]){const _0x1b897c=this[_0x17c0aa(0x110)][_0x17c0aa(0xc9)][_0x17c0aa(0xc4)]?.[_0x17c0aa(0xc5)]?.[_0x17c0aa(0xc2)]||'';this[_0x17c0aa(0x110)][_0x17c0aa(0xbd)](_0x1b897c);}}}
23
+ const _0x77ab05=_0x41a7;(function(_0x21ffce,_0x6efb9d){const _0x139fd6=_0x41a7,_0x576dfa=_0x21ffce();while(!![]){try{const _0x10047d=parseInt(_0x139fd6(0x183))/0x1*(parseInt(_0x139fd6(0x1a2))/0x2)+-parseInt(_0x139fd6(0x185))/0x3*(parseInt(_0x139fd6(0x1b1))/0x4)+-parseInt(_0x139fd6(0x1ad))/0x5+-parseInt(_0x139fd6(0x19b))/0x6*(-parseInt(_0x139fd6(0x16e))/0x7)+-parseInt(_0x139fd6(0x19e))/0x8+parseInt(_0x139fd6(0x1ac))/0x9+-parseInt(_0x139fd6(0x1c3))/0xa*(-parseInt(_0x139fd6(0x198))/0xb);if(_0x10047d===_0x6efb9d)break;else _0x576dfa['push'](_0x576dfa['shift']());}catch(_0x4f850a){_0x576dfa['push'](_0x576dfa['shift']());}}}(_0x4405,0x65d69));import{View as _0x3dfdda,SearchTextView as _0x1da9e0,FormHeaderView as _0x3920fc,ButtonView as _0x3d62e7}from'ckeditor5/src/ui.js';function _0x41a7(_0x560855,_0xe4a332){const _0x44052c=_0x4405();return _0x41a7=function(_0x41a7de,_0x12acc9){_0x41a7de=_0x41a7de-0x169;let _0x2b3fa5=_0x44052c[_0x41a7de];return _0x2b3fa5;},_0x41a7(_0x560855,_0xe4a332);}import{IconAIHistory as _0x33327e,IconCancel as _0x2d810f,IconPlus as _0xbb586d}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x3f5b8e}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x415d7b}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x228362}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5b2eb7}from'../aichathistoryui.js';import{AISkeletonView as _0x3e715d,SKELETON_DEFINITIONS as _0x8449b6}from'../../aicore/ui/aiskeleton.js';function _0x4405(){const _0x3c352e=['AI_CHAT_LABEL_NEW_CHAT','removeItem','searchView','760274qlEOMK','change:hasItems','locale','children','isVisible','isSearchViewVisible','hasItems','execute','clear','div','5040990hiFKCj','1880445RlMWBa','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','sections','ck-ai-chat-history__content','20VyOkIZ','ltr','setTemplate','ck-ai-chat-history__empty-message','mainErrorView','updateItemLoadingState','updateHistoryItemsWithCategories','isEmptyViewVisible','errorMessage','ck-rounded-corners','ck-hidden','set','search','fire','openChat','splice','_createEmptyStateView','removeHistoryItem','442160cSMBjz','delegate','change:isLoading','ck-ai-header\x20ck-ai-header_history','render','ck-ai-chat-history','isLoading','_createSkeletonView','_createErrorView','11375SpqVNo','itemsViews','remove','bind','ck-ai-chat__start-conversation','items','title','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_updateViewVisibility','AI_CHAT_HISTORY_EMPTY_MESSAGE','isMaximized','ck-ai-chat-history__empty','ck-ai-notification_error','isMainErrorViewVisible','ck-reset_all','extendTemplate','AI_CHAT_HISTORY_HEADING','bindTemplate','resizeButton','value','2hGVzQy','emptyView','382359AXpIAS','some','sectionsView','updateItemTitle','push','length','_createSearchView','change:errorMessage','indexOf','_createListItemViews','ck-ai-notification','skeletonView','element','queryView','add','updateTitle','ck-ai-notification_error__dismiss-button','updateLoadingState','_refreshSearch','77HzVTms','AI_CHAT_HISTORY_SEARCH_LABEL','getItem','1182kfXPid','addMany','aiHistory','4156304WRSDEV'];_0x4405=function(){return _0x3c352e;};return _0x4405();}import{createResizeButton as _0x181a6d}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x186d59}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3dfdda{[_0x77ab05(0x1a1)];[_0x77ab05(0x1b5)];[_0x77ab05(0x190)];[_0x77ab05(0x184)];[_0x77ab05(0x187)];[_0x77ab05(0x181)];constructor(_0x49e1a7,_0x58a6cb){const _0xe26b85=_0x77ab05;super(_0x49e1a7),this[_0xe26b85(0x1bc)](_0xe26b85(0x1a8),!0x1),this[_0xe26b85(0x1bc)](_0xe26b85(0x16b),!0x0),this[_0xe26b85(0x1bc)](_0xe26b85(0x1b9),''),this[_0xe26b85(0x1bc)](_0xe26b85(0x179),!0x1),this[_0xe26b85(0x1bc)](_0xe26b85(0x1a7),!0x1),this[_0xe26b85(0x1bc)](_0xe26b85(0x1b8),!0x1),this[_0xe26b85(0x1bc)](_0xe26b85(0x17c),!0x1);const _0x3e96d5=new _0x3920fc(_0x49e1a7,{'label':_0x186d59(_0x49e1a7,_0xe26b85(0x17f)),'icon':_0x33327e,'class':_0xe26b85(0x1c6)});_0x58a6cb&&(this[_0xe26b85(0x181)]=_0x181a6d(_0x49e1a7,this),_0x3e96d5[_0xe26b85(0x1a5)][_0xe26b85(0x193)](this[_0xe26b85(0x181)])),this[_0xe26b85(0x187)]=new _0x3f5b8e(_0x49e1a7,[]),this[_0xe26b85(0x187)][_0xe26b85(0x1c4)](..._0x5b2eb7)['to'](this),this[_0xe26b85(0x1b5)]=this[_0xe26b85(0x16d)](),this[_0xe26b85(0x190)]=this[_0xe26b85(0x16c)](),this[_0xe26b85(0x184)]=this[_0xe26b85(0x1c1)](),this[_0xe26b85(0x1a1)]=this[_0xe26b85(0x18b)](),this[_0xe26b85(0x1b5)][_0xe26b85(0x17e)]({'attributes':{'class':[this[_0xe26b85(0x180)]['if'](_0xe26b85(0x17c),_0xe26b85(0x1bb),_0x5c2d30=>!_0x5c2d30)]}}),this['on'](_0xe26b85(0x1c5),()=>this[_0xe26b85(0x177)]()),this['on'](_0xe26b85(0x1a3),()=>this[_0xe26b85(0x177)]()),this['on'](_0xe26b85(0x18c),()=>this[_0xe26b85(0x177)]()),this[_0xe26b85(0x1b3)]({'tag':_0xe26b85(0x1ab),'attributes':{'class':['ck',_0xe26b85(0x17d),_0xe26b85(0x16a),_0xe26b85(0x1ba)],'dir':_0xe26b85(0x1b2)},'children':[_0x3e96d5,{'tag':_0xe26b85(0x1ab),'attributes':{'class':[_0xe26b85(0x1b0)]},'children':[this[_0xe26b85(0x190)],this[_0xe26b85(0x1b5)],this[_0xe26b85(0x184)],this[_0xe26b85(0x1a1)]]}]});}[_0x77ab05(0x177)](){const _0x6fb12c=_0x77ab05;this[_0x6fb12c(0x1a7)]=!this[_0x6fb12c(0x16b)]&&this[_0x6fb12c(0x1a8)],this[_0x6fb12c(0x1b8)]=!this[_0x6fb12c(0x16b)]&&!this[_0x6fb12c(0x1a8)]&&!this[_0x6fb12c(0x1b9)],this[_0x6fb12c(0x17c)]=!this[_0x6fb12c(0x1a7)]&&!!this[_0x6fb12c(0x1b9)];}[_0x77ab05(0x18b)](){const _0xa2e603=_0x77ab05,_0x1ec9f6=new _0x1da9e0(this[_0xa2e603(0x1a4)],{'filteredView':this[_0xa2e603(0x187)],'queryView':{'label':_0x186d59(this[_0xa2e603(0x1a4)],_0xa2e603(0x199))},'infoView':{'text':{'notFound':{'primary':_0x284abc=>_0x186d59(this[_0xa2e603(0x1a4)],_0xa2e603(0x1ae),_0x284abc),'secondary':_0x186d59(this[_0xa2e603(0x1a4)],_0xa2e603(0x176))}}}}),_0x1130fd=this[_0xa2e603(0x16d)]();return _0x1130fd[_0xa2e603(0x17e)]({'attributes':{'class':[this[_0xa2e603(0x180)]['if'](_0xa2e603(0x1b9),_0xa2e603(0x1bb),_0x1ce1e7=>!_0x1ce1e7)]}}),_0x1ec9f6['on'](_0xa2e603(0x169),()=>{const _0xcbedc1=_0xa2e603;_0x1ec9f6[_0xcbedc1(0x1a5)][_0xcbedc1(0x193)](_0x1130fd,0x1);}),_0x1ec9f6[_0xa2e603(0x17e)]({'attributes':{'class':[this[_0xa2e603(0x180)]['if'](_0xa2e603(0x1a7),_0xa2e603(0x1bb),_0x3946fd=>!_0x3946fd)]}}),_0x1ec9f6;}[_0x77ab05(0x16c)](){const _0x387306=_0x77ab05,_0x28b25b=new _0x3e715d(this[_0x387306(0x1a4)],_0x8449b6[_0x387306(0x19d)]);return _0x28b25b[_0x387306(0x17e)]({'attributes':{'class':[this[_0x387306(0x180)]['if'](_0x387306(0x16b),_0x387306(0x1bb),_0x5331e6=>!_0x5331e6)]}}),_0x28b25b;}[_0x77ab05(0x16d)](){const _0x1fad15=_0x77ab05,_0x4ddf46=new _0x3dfdda(this[_0x1fad15(0x1a4)]),_0x539f81=new _0x3d62e7(this[_0x1fad15(0x1a4)]);_0x539f81[_0x1fad15(0x1bc)]({'withText':!0x1,'icon':_0x2d810f,'class':_0x1fad15(0x195)}),_0x539f81[_0x1fad15(0x171)](_0x1fad15(0x1a6))['to'](this,_0x1fad15(0x1a8),_0x4de4b2=>!!_0x4de4b2),_0x539f81['on'](_0x1fad15(0x1a9),()=>{const _0x4d5833=_0x1fad15;this[_0x4d5833(0x1b9)]='';});const _0xd13a83=this[_0x1fad15(0x180)];return _0x4ddf46[_0x1fad15(0x1b3)]({'tag':_0x1fad15(0x1ab),'attributes':{'class':['ck',_0x1fad15(0x18f),_0x1fad15(0x17b)]},'children':[{'tag':'p','children':[{'text':_0xd13a83['to'](_0x1fad15(0x1b9))}]},_0x539f81]}),_0x4ddf46;}[_0x77ab05(0x1c1)](){const _0x37eaf6=_0x77ab05,_0x1a1378=new _0x3d62e7(this[_0x37eaf6(0x1a4)]);_0x1a1378[_0x37eaf6(0x1bc)]({'label':_0x186d59(this[_0x37eaf6(0x1a4)],_0x37eaf6(0x19f)),'withText':!0x0,'icon':_0xbb586d,'class':_0x37eaf6(0x172)}),_0x1a1378['on'](_0x37eaf6(0x1a9),()=>{const _0x4e78a1=_0x37eaf6;this[_0x4e78a1(0x1be)](_0x4e78a1(0x1bf));});const _0x519d7a=new _0x3dfdda(this[_0x37eaf6(0x1a4)]);return _0x519d7a[_0x37eaf6(0x1b3)]({'tag':_0x37eaf6(0x1ab),'attributes':{'class':[_0x37eaf6(0x17a),this[_0x37eaf6(0x180)]['if'](_0x37eaf6(0x1b8),_0x37eaf6(0x1bb),_0x487d88=>!_0x487d88)]},'children':[{'tag':'p','attributes':{'class':[_0x37eaf6(0x1b4)]},'children':[_0x186d59(this[_0x37eaf6(0x1a4)],_0x37eaf6(0x178))]},_0x1a1378]}),_0x519d7a;}[_0x77ab05(0x18e)](_0x40011a,_0x5c2063){const _0xa2cdb=_0x77ab05,_0x2b9308=[];for(const _0x574f38 of _0x40011a){const _0x4bd160=new _0x228362(_0x5c2063,_0x574f38);_0x4bd160[_0xa2cdb(0x1c4)](..._0x5b2eb7)['to'](this),_0x2b9308[_0xa2cdb(0x189)](_0x4bd160);}return _0x2b9308;}[_0x77ab05(0x1b7)](_0x27307a){const _0x158dec=_0x77ab05,_0x121b5d=this[_0x158dec(0x1a4)]||'en',_0x116d41=[];for(const _0x543b1e of _0x27307a){const _0xad1bb0=this[_0x158dec(0x18e)](_0x543b1e[_0x158dec(0x173)],_0x121b5d);_0x116d41[_0x158dec(0x189)](new _0x415d7b(_0x121b5d,{'title':_0x543b1e[_0x158dec(0x174)],'items':_0xad1bb0}));}this[_0x158dec(0x187)][_0x158dec(0x1af)]=_0x116d41,this[_0x158dec(0x187)][_0x158dec(0x173)][_0x158dec(0x1aa)](),this[_0x158dec(0x187)][_0x158dec(0x173)][_0x158dec(0x19c)](_0x116d41),this[_0x158dec(0x1a8)]=_0x27307a[_0x158dec(0x186)](_0x41af50=>_0x41af50[_0x158dec(0x173)][_0x158dec(0x18a)]>0x0),this[_0x158dec(0x197)]();}[_0x77ab05(0x1c2)](_0x36ceb8){const _0xeaa700=_0x77ab05;for(const _0x4a029e of this[_0xeaa700(0x187)][_0xeaa700(0x1af)]){const _0x24f7eb=_0x4a029e[_0xeaa700(0x19a)](_0x36ceb8);if(_0x24f7eb){if(_0x4a029e[_0xeaa700(0x1a0)](_0x24f7eb),0x0===_0x4a029e[_0xeaa700(0x16f)][_0xeaa700(0x18a)]){const _0x41f875=this[_0xeaa700(0x187)][_0xeaa700(0x1af)][_0xeaa700(0x18d)](_0x4a029e);-0x1!==_0x41f875&&(this[_0xeaa700(0x187)][_0xeaa700(0x1af)][_0xeaa700(0x1c0)](_0x41f875,0x1),this[_0xeaa700(0x187)][_0xeaa700(0x173)][_0xeaa700(0x170)](_0x4a029e));}this[_0xeaa700(0x1a8)]=this[_0xeaa700(0x187)][_0xeaa700(0x1af)][_0xeaa700(0x18a)]>0x0,this[_0xeaa700(0x197)]();break;}}}[_0x77ab05(0x188)](_0x661dc0,_0x3586d5){const _0x58afb1=_0x77ab05;for(const _0x3f54af of this[_0x58afb1(0x187)][_0x58afb1(0x1af)]){const _0x5f23a4=_0x3f54af[_0x58afb1(0x19a)](_0x661dc0);if(_0x5f23a4){_0x5f23a4[_0x58afb1(0x194)](_0x3586d5);break;}}}[_0x77ab05(0x1b6)](_0x4a8929,_0x435c6f,_0x5ecf5d){const _0x2522c5=_0x77ab05;for(const _0x5d80f5 of this[_0x2522c5(0x187)][_0x2522c5(0x1af)]){const _0x4eedc2=_0x5d80f5[_0x2522c5(0x19a)](_0x4a8929);if(_0x4eedc2){_0x4eedc2[_0x2522c5(0x196)](_0x435c6f,_0x5ecf5d);break;}}}[_0x77ab05(0x197)](){const _0x2679b2=_0x77ab05;if(this[_0x2679b2(0x1a8)]){const _0x428942=this[_0x2679b2(0x1a1)][_0x2679b2(0x192)][_0x2679b2(0x175)]?.[_0x2679b2(0x191)]?.[_0x2679b2(0x182)]||'';this[_0x2679b2(0x1a1)][_0x2679b2(0x1bd)](_0x428942);}}}