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

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 (467) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/dist/index-editor.css +93 -5
  75. package/dist/index.css +118 -5
  76. package/dist/index.js +4 -4
  77. package/dist/translations/af.js +1 -1
  78. package/dist/translations/af.umd.js +1 -1
  79. package/dist/translations/ar.js +1 -1
  80. package/dist/translations/ar.umd.js +1 -1
  81. package/dist/translations/ast.js +1 -1
  82. package/dist/translations/ast.umd.js +1 -1
  83. package/dist/translations/az.js +1 -1
  84. package/dist/translations/az.umd.js +1 -1
  85. package/dist/translations/be.js +1 -1
  86. package/dist/translations/be.umd.js +1 -1
  87. package/dist/translations/bg.js +1 -1
  88. package/dist/translations/bg.umd.js +1 -1
  89. package/dist/translations/bn.js +1 -1
  90. package/dist/translations/bn.umd.js +1 -1
  91. package/dist/translations/bs.js +1 -1
  92. package/dist/translations/bs.umd.js +1 -1
  93. package/dist/translations/ca.js +1 -1
  94. package/dist/translations/ca.umd.js +1 -1
  95. package/dist/translations/cs.js +1 -1
  96. package/dist/translations/cs.umd.js +1 -1
  97. package/dist/translations/da.js +1 -1
  98. package/dist/translations/da.umd.js +1 -1
  99. package/dist/translations/de-ch.js +1 -1
  100. package/dist/translations/de-ch.umd.js +1 -1
  101. package/dist/translations/de.js +1 -1
  102. package/dist/translations/de.umd.js +1 -1
  103. package/dist/translations/el.js +1 -1
  104. package/dist/translations/el.umd.js +1 -1
  105. package/dist/translations/en-au.js +1 -1
  106. package/dist/translations/en-au.umd.js +1 -1
  107. package/dist/translations/en-gb.js +1 -1
  108. package/dist/translations/en-gb.umd.js +1 -1
  109. package/dist/translations/en.js +1 -1
  110. package/dist/translations/en.umd.js +1 -1
  111. package/dist/translations/eo.js +1 -1
  112. package/dist/translations/eo.umd.js +1 -1
  113. package/dist/translations/es-co.js +1 -1
  114. package/dist/translations/es-co.umd.js +1 -1
  115. package/dist/translations/es.js +1 -1
  116. package/dist/translations/es.umd.js +1 -1
  117. package/dist/translations/et.js +1 -1
  118. package/dist/translations/et.umd.js +1 -1
  119. package/dist/translations/eu.js +1 -1
  120. package/dist/translations/eu.umd.js +1 -1
  121. package/dist/translations/fa.js +1 -1
  122. package/dist/translations/fa.umd.js +1 -1
  123. package/dist/translations/fi.js +1 -1
  124. package/dist/translations/fi.umd.js +1 -1
  125. package/dist/translations/fr.js +1 -1
  126. package/dist/translations/fr.umd.js +1 -1
  127. package/dist/translations/gl.js +1 -1
  128. package/dist/translations/gl.umd.js +1 -1
  129. package/dist/translations/gu.js +1 -1
  130. package/dist/translations/gu.umd.js +1 -1
  131. package/dist/translations/he.js +1 -1
  132. package/dist/translations/he.umd.js +1 -1
  133. package/dist/translations/hi.js +1 -1
  134. package/dist/translations/hi.umd.js +1 -1
  135. package/dist/translations/hr.js +1 -1
  136. package/dist/translations/hr.umd.js +1 -1
  137. package/dist/translations/hu.js +1 -1
  138. package/dist/translations/hu.umd.js +1 -1
  139. package/dist/translations/hy.js +1 -1
  140. package/dist/translations/hy.umd.js +1 -1
  141. package/dist/translations/id.js +1 -1
  142. package/dist/translations/id.umd.js +1 -1
  143. package/dist/translations/it.js +1 -1
  144. package/dist/translations/it.umd.js +1 -1
  145. package/dist/translations/ja.js +1 -1
  146. package/dist/translations/ja.umd.js +1 -1
  147. package/dist/translations/jv.js +1 -1
  148. package/dist/translations/jv.umd.js +1 -1
  149. package/dist/translations/kk.js +1 -1
  150. package/dist/translations/kk.umd.js +1 -1
  151. package/dist/translations/km.js +1 -1
  152. package/dist/translations/km.umd.js +1 -1
  153. package/dist/translations/kn.js +1 -1
  154. package/dist/translations/kn.umd.js +1 -1
  155. package/dist/translations/ko.js +1 -1
  156. package/dist/translations/ko.umd.js +1 -1
  157. package/dist/translations/ku.js +1 -1
  158. package/dist/translations/ku.umd.js +1 -1
  159. package/dist/translations/lt.js +1 -1
  160. package/dist/translations/lt.umd.js +1 -1
  161. package/dist/translations/lv.js +1 -1
  162. package/dist/translations/lv.umd.js +1 -1
  163. package/dist/translations/ms.js +1 -1
  164. package/dist/translations/ms.umd.js +1 -1
  165. package/dist/translations/nb.js +1 -1
  166. package/dist/translations/nb.umd.js +1 -1
  167. package/dist/translations/ne.js +1 -1
  168. package/dist/translations/ne.umd.js +1 -1
  169. package/dist/translations/nl.js +1 -1
  170. package/dist/translations/nl.umd.js +1 -1
  171. package/dist/translations/no.js +1 -1
  172. package/dist/translations/no.umd.js +1 -1
  173. package/dist/translations/oc.js +1 -1
  174. package/dist/translations/oc.umd.js +1 -1
  175. package/dist/translations/pl.js +1 -1
  176. package/dist/translations/pl.umd.js +1 -1
  177. package/dist/translations/pt-br.js +1 -1
  178. package/dist/translations/pt-br.umd.js +1 -1
  179. package/dist/translations/pt.js +1 -1
  180. package/dist/translations/pt.umd.js +1 -1
  181. package/dist/translations/ro.js +1 -1
  182. package/dist/translations/ro.umd.js +1 -1
  183. package/dist/translations/ru.js +1 -1
  184. package/dist/translations/ru.umd.js +1 -1
  185. package/dist/translations/si.js +1 -1
  186. package/dist/translations/si.umd.js +1 -1
  187. package/dist/translations/sk.js +1 -1
  188. package/dist/translations/sk.umd.js +1 -1
  189. package/dist/translations/sl.js +1 -1
  190. package/dist/translations/sl.umd.js +1 -1
  191. package/dist/translations/sq.js +1 -1
  192. package/dist/translations/sq.umd.js +1 -1
  193. package/dist/translations/sr-latn.js +1 -1
  194. package/dist/translations/sr-latn.umd.js +1 -1
  195. package/dist/translations/sr.js +1 -1
  196. package/dist/translations/sr.umd.js +1 -1
  197. package/dist/translations/sv.js +1 -1
  198. package/dist/translations/sv.umd.js +1 -1
  199. package/dist/translations/th.js +1 -1
  200. package/dist/translations/th.umd.js +1 -1
  201. package/dist/translations/ti.js +1 -1
  202. package/dist/translations/ti.umd.js +1 -1
  203. package/dist/translations/tk.js +1 -1
  204. package/dist/translations/tk.umd.js +1 -1
  205. package/dist/translations/tr.js +1 -1
  206. package/dist/translations/tr.umd.js +1 -1
  207. package/dist/translations/tt.js +1 -1
  208. package/dist/translations/tt.umd.js +1 -1
  209. package/dist/translations/ug.js +1 -1
  210. package/dist/translations/ug.umd.js +1 -1
  211. package/dist/translations/uk.js +1 -1
  212. package/dist/translations/uk.umd.js +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.js +1 -1
  216. package/dist/translations/uz.umd.js +1 -1
  217. package/dist/translations/vi.js +1 -1
  218. package/dist/translations/vi.umd.js +1 -1
  219. package/dist/translations/zh-cn.js +1 -1
  220. package/dist/translations/zh-cn.umd.js +1 -1
  221. package/dist/translations/zh.js +1 -1
  222. package/dist/translations/zh.umd.js +1 -1
  223. package/lang/translations/af.po +224 -0
  224. package/lang/translations/ar.po +232 -0
  225. package/lang/translations/ast.po +224 -0
  226. package/lang/translations/az.po +224 -0
  227. package/lang/translations/be.po +226 -0
  228. package/lang/translations/bg.po +224 -0
  229. package/lang/translations/bn.po +224 -0
  230. package/lang/translations/bs.po +226 -0
  231. package/lang/translations/ca.po +224 -0
  232. package/lang/translations/cs.po +226 -0
  233. package/lang/translations/da.po +224 -0
  234. package/lang/translations/de-ch.po +224 -0
  235. package/lang/translations/de.po +224 -0
  236. package/lang/translations/el.po +224 -0
  237. package/lang/translations/en-au.po +224 -0
  238. package/lang/translations/en-gb.po +224 -0
  239. package/lang/translations/en.po +224 -0
  240. package/lang/translations/eo.po +224 -0
  241. package/lang/translations/es-co.po +224 -0
  242. package/lang/translations/es.po +224 -0
  243. package/lang/translations/et.po +224 -0
  244. package/lang/translations/eu.po +224 -0
  245. package/lang/translations/fa.po +222 -0
  246. package/lang/translations/fi.po +224 -0
  247. package/lang/translations/fr.po +224 -0
  248. package/lang/translations/gl.po +224 -0
  249. package/lang/translations/gu.po +224 -0
  250. package/lang/translations/he.po +224 -0
  251. package/lang/translations/hi.po +224 -0
  252. package/lang/translations/hr.po +226 -0
  253. package/lang/translations/hu.po +224 -0
  254. package/lang/translations/hy.po +224 -0
  255. package/lang/translations/id.po +222 -0
  256. package/lang/translations/it.po +224 -0
  257. package/lang/translations/ja.po +222 -0
  258. package/lang/translations/jv.po +224 -0
  259. package/lang/translations/kk.po +224 -0
  260. package/lang/translations/km.po +222 -0
  261. package/lang/translations/kn.po +224 -0
  262. package/lang/translations/ko.po +222 -0
  263. package/lang/translations/ku.po +224 -0
  264. package/lang/translations/lt.po +226 -0
  265. package/lang/translations/lv.po +226 -0
  266. package/lang/translations/ms.po +222 -0
  267. package/lang/translations/nb.po +224 -0
  268. package/lang/translations/ne.po +224 -0
  269. package/lang/translations/nl.po +224 -0
  270. package/lang/translations/no.po +224 -0
  271. package/lang/translations/oc.po +224 -0
  272. package/lang/translations/pl.po +226 -0
  273. package/lang/translations/pt-br.po +224 -0
  274. package/lang/translations/pt.po +224 -0
  275. package/lang/translations/ro.po +226 -0
  276. package/lang/translations/ru.po +226 -0
  277. package/lang/translations/si.po +224 -0
  278. package/lang/translations/sk.po +226 -0
  279. package/lang/translations/sl.po +228 -0
  280. package/lang/translations/sq.po +224 -0
  281. package/lang/translations/sr-latn.po +226 -0
  282. package/lang/translations/sr.po +226 -0
  283. package/lang/translations/sv.po +224 -0
  284. package/lang/translations/th.po +222 -0
  285. package/lang/translations/ti.po +224 -0
  286. package/lang/translations/tk.po +224 -0
  287. package/lang/translations/tr.po +224 -0
  288. package/lang/translations/tt.po +222 -0
  289. package/lang/translations/ug.po +222 -0
  290. package/lang/translations/uk.po +226 -0
  291. package/lang/translations/ur.po +224 -0
  292. package/lang/translations/uz.po +224 -0
  293. package/lang/translations/vi.po +222 -0
  294. package/lang/translations/zh-cn.po +222 -0
  295. package/lang/translations/zh.po +222 -0
  296. package/package.json +15 -15
  297. package/src/aiactions/aiactions.js +1 -1
  298. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  299. package/src/aiactions/model/aiactionsreply.js +1 -1
  300. package/src/aiassistant/adapters/aiadapter.js +1 -1
  301. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  302. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  303. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  304. package/src/aiassistant/aiassistant.js +1 -1
  305. package/src/aiassistant/aiassistantediting.js +1 -1
  306. package/src/aiassistant/aiassistantui.js +1 -1
  307. package/src/aiassistant/legacyerrors.js +1 -1
  308. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  309. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  310. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  311. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  312. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformview.js +1 -1
  314. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  315. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  316. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  317. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  318. package/src/aiassistant/utils/common-translations.js +1 -1
  319. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  320. package/src/aiballoon/aiballoon.js +1 -1
  321. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  322. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  323. package/src/aiballoon/ui/aiballoonview.js +1 -1
  324. package/src/aichat/aichat.d.ts +12 -4
  325. package/src/aichat/aichat.js +1 -1
  326. package/src/aichat/aichatcontroller.d.ts +0 -1
  327. package/src/aichat/aichatcontroller.js +1 -1
  328. package/src/aichat/aichatui.d.ts +0 -1
  329. package/src/aichat/aichatui.js +1 -1
  330. package/src/aichat/model/aichatcontext.d.ts +1 -227
  331. package/src/aichat/model/aichatcontext.js +1 -1
  332. package/src/aichat/model/aichatconversation.js +1 -1
  333. package/src/aichat/model/aichatinteraction.d.ts +3 -0
  334. package/src/aichat/model/aichatinteraction.js +1 -1
  335. package/src/aichat/model/aichatmodels.d.ts +0 -30
  336. package/src/aichat/model/aichatmodels.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  338. package/src/aichat/ui/aichatfeedview.js +1 -1
  339. package/src/aichat/ui/aichatheaderview.js +1 -1
  340. package/src/aichat/ui/aichatview.js +1 -1
  341. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  342. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  343. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  346. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  347. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  349. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  350. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  351. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  354. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  355. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  356. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  362. package/src/aichat/utils/eventnames.js +1 -1
  363. package/src/aichat/utils/promisequeue.js +1 -1
  364. package/src/aichat/utils/scrollmanager.js +1 -1
  365. package/src/aichathistory/aichathistory.js +1 -1
  366. package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
  367. package/src/aichathistory/aichathistorycontroller.js +1 -1
  368. package/src/aichathistory/aichathistoryui.d.ts +0 -1
  369. package/src/aichathistory/aichathistoryui.js +1 -1
  370. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  371. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  372. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  374. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  375. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  376. package/src/aiconfig.d.ts +47 -9
  377. package/src/aicore/aiconnector.d.ts +2 -3
  378. package/src/aicore/aiconnector.js +1 -1
  379. package/src/aicore/aiediting.d.ts +0 -1
  380. package/src/aicore/aiediting.js +1 -1
  381. package/src/aicore/model/aicapabilities.js +1 -1
  382. package/src/aicore/model/aicontext.js +1 -1
  383. package/src/aicore/model/aiinteraction.js +1 -1
  384. package/src/aicore/model/aireply.js +1 -1
  385. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  386. package/src/aicore/pipeline/airesponseparser.js +2 -2
  387. package/src/aicore/ui/aidisclaimerview.js +1 -1
  388. package/src/aicore/ui/aiskeleton.js +1 -1
  389. package/src/aicore/ui/aispinner.js +1 -1
  390. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  391. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  392. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  393. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  394. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  395. package/src/aicore/utils/common-translations.js +1 -1
  396. package/src/aicore/utils/createresizebutton.js +1 -1
  397. package/src/aicore/utils/documentposition.js +1 -1
  398. package/src/aicore/utils/documentrange.js +1 -1
  399. package/src/aicore/utils/eventnames.d.ts +0 -1
  400. package/src/aicore/utils/eventnames.js +1 -1
  401. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  402. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  403. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  404. package/src/aicore/utils/htmlparser.js +1 -1
  405. package/src/aicore/utils/htmlstreamer.js +1 -1
  406. package/src/aieditorintegration/aieditorintegration.js +1 -1
  407. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
  408. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  409. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  410. package/src/aiquickactions/aiquickactions.d.ts +164 -1
  411. package/src/aiquickactions/aiquickactions.js +1 -1
  412. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  413. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  414. package/src/aiquickactions/aiquickactionsui.d.ts +0 -49
  415. package/src/aiquickactions/aiquickactionsui.js +1 -1
  416. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  417. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  418. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  419. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
  420. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  421. package/src/aireviewmode/aireviewmode.d.ts +29 -0
  422. package/src/aireviewmode/aireviewmode.js +1 -1
  423. package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
  424. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  425. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
  426. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  427. package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
  428. package/src/aireviewmode/aireviewmodeui.js +1 -1
  429. package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
  430. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  431. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
  432. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  433. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  434. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  435. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  436. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  437. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
  438. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  439. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  440. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
  441. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  442. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  443. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  444. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  445. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  446. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  447. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  448. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  449. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  450. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  451. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  452. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  453. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  454. package/src/aitabs/aitabs.d.ts +6 -16
  455. package/src/aitabs/aitabs.js +1 -1
  456. package/src/aitabs/aitabsmainview.js +1 -1
  457. package/src/aitabs/tabs/aitabsview.js +1 -1
  458. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  459. package/src/aitabs/tabs/tabpanelview.js +1 -1
  460. package/src/index.js +1 -1
  461. package/theme/aichat/aichat.css +1 -0
  462. package/theme/aichat/aichatfeed.css +39 -0
  463. package/theme/aieditorintegration/aitogglebutton.css +23 -0
  464. package/theme/aiquickactions/aiquickactions.css +23 -4
  465. package/theme/aireviewmode/aireviewmode.css +23 -0
  466. package/theme/common/aibutton.css +1 -1
  467. package/theme/common/aitrackchanges.css +13 -0
@@ -4,7 +4,6 @@
4
4
  */
5
5
  /**
6
6
  * @module ai/aichathistory/aichathistorycontroller
7
- * @publicApi
8
7
  */
9
8
  import { ContextPlugin } from 'ckeditor5/src/core.js';
10
9
  import { AIConnector } from '../aicore/aiconnector.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26ff02=_0xefa6;(function(_0x47effa,_0x1dbf06){const _0x80e1c=_0xefa6,_0x1fbd2f=_0x47effa();while(!![]){try{const _0x5b9c64=-parseInt(_0x80e1c(0x180))/0x1+parseInt(_0x80e1c(0x146))/0x2+parseInt(_0x80e1c(0x18f))/0x3+-parseInt(_0x80e1c(0x173))/0x4*(-parseInt(_0x80e1c(0x179))/0x5)+parseInt(_0x80e1c(0x150))/0x6+parseInt(_0x80e1c(0x18d))/0x7+-parseInt(_0x80e1c(0x192))/0x8;if(_0x5b9c64===_0x1dbf06)break;else _0x1fbd2f['push'](_0x1fbd2f['shift']());}catch(_0x2052af){_0x1fbd2f['push'](_0x1fbd2f['shift']());}}}(_0x1642,0x97223));import{ContextPlugin as _0x465f46}from'ckeditor5/src/core.js';import{AIConnector as _0x31ed61}from'../aicore/aiconnector.js';import{AIChatController as _0x1332b7}from'../aichat/aichatcontroller.js';import{AITabs as _0x5dd48c}from'../aitabs/aitabs.js';function _0x1642(){const _0x9de2b6=['itemUpdated','AIChatHistoryController','rename','_setIsMaximized','AI_CHAT_HISTORY_UNPIN_ACTION','updateItems','getItem','setLoadingSkeleton','loadItems','_aiConnector','_updateHistoryItemsUI','removeHistoryItem','updateItemTitle','push','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','updates','length','view','pin','resize','operation','get','AI_CHAT_HISTORY_CATEGORY_TODAY','itemId','updateItemLoadingState','setConversationPinned','4dXbskk','resizeTabs','pluginName','setDate','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','1963690yfsYfH','items','_handleTogglePin','pinned','removeConversation','plugins','resizedTabs','735976RJUSRY','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','unpin','_handleHistoryErrorUI','activateTab','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_showConversationHistory','itemsLoaded','getMonth','setIsMaximized','openChat','updateItemPinned','_aiChatHistoryUi','926604ikfPGD','handleRemovedConversation','3073641DWsAIh','_handleSelectConversation','itemRemoved','18514176vRLBLd','createdAt','_clearItemLoading','init','activateTab:history','_generateErrorMessage','chat','getDate','editConversationTitle','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','remove','context','history','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','listenTo','AI_CHAT_HISTORY_CATEGORY_PINNED','removeItem','error','_aiChatController','AI_CHAT_HISTORY_CATEGORY_LATER','change:activeConversation','activeConversation','requires','2019056EIyWQP','locale','getItems','loadConversation','_handleRemove','isPremiumPlugin','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_GENERIC','selectConversation','6660636BXTYaT','map','_getCategorizedItems','_setItemLoading','toLocaleDateString','getFullYear','title','showError','getGroupId'];_0x1642=function(){return _0x9de2b6;};return _0x1642();}import{AIChatHistoryUI as _0x550075}from'./aichathistoryui.js';function _0xefa6(_0x1d582c,_0x4fedb8){const _0x164298=_0x1642();return _0xefa6=function(_0xefa6e5,_0xfc1e71){_0xefa6e5=_0xefa6e5-0x146;let _0x25d033=_0x164298[_0xefa6e5];return _0x25d033;},_0xefa6(_0x1d582c,_0x4fedb8);}import{AIChatHistoryConversations as _0xebc9a1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x6a4575}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x465f46{[_0x26ff02(0x162)];[_0x26ff02(0x18c)];[_0x26ff02(0x1a5)];static get[_0x26ff02(0x1a9)](){return[_0x31ed61,_0x1332b7,_0x550075,_0x5dd48c];}static get[_0x26ff02(0x175)](){const _0x35958b=_0x26ff02;return _0x35958b(0x15a);}static get[_0x26ff02(0x14c)](){return!0x0;}static get[_0x26ff02(0x14b)](){return!0x0;}[_0x26ff02(0x195)](){const _0x34492c=_0x26ff02;this[_0x34492c(0x162)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x31ed61),this[_0x34492c(0x18c)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x550075),this[_0x34492c(0x1a5)]=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x1332b7);const _0x38a1e8=this[_0x34492c(0x19e)][_0x34492c(0x17e)][_0x34492c(0x16e)](_0x5dd48c),_0x2a50f7=this[_0x34492c(0x1a5)][_0x34492c(0x158)]();this[_0x34492c(0x19f)]=new _0xebc9a1({'connector':this[_0x34492c(0x162)],'group':_0x2a50f7}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x17d),(_0x2578f8,_0x49d1b4)=>{const _0x24e470=_0x34492c;this[_0x24e470(0x153)](_0x49d1b4['id'],_0x24e470(0x19d)),this[_0x24e470(0x14a)](_0x49d1b4['id']);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x19a),(_0x12a136,_0x1abee1)=>{const _0x2abc3d=_0x34492c;this[_0x2abc3d(0x153)](_0x1abee1['id'],_0x2abc3d(0x15b)),this[_0x2abc3d(0x177)](_0x1abee1['id'],_0x1abee1[_0x2abc3d(0x156)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x159),(_0x2e0272,_0x1a49e2)=>{const _0x16431a=_0x34492c;void 0x0!==_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x156)]&&this[_0x16431a(0x18c)][_0x16431a(0x165)](_0x1a49e2[_0x16431a(0x170)],_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x156)]),void 0x0!==_0x1a49e2[_0x16431a(0x168)][_0x16431a(0x17c)]&&this[_0x16431a(0x163)](),this[_0x16431a(0x194)](_0x1a49e2[_0x16431a(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x191),(_0x246934,_0x4edfe5)=>{const _0x41726e=_0x34492c;this[_0x41726e(0x1a5)][_0x41726e(0x18e)](_0x4edfe5[_0x41726e(0x170)]),this[_0x41726e(0x18c)][_0x41726e(0x164)](_0x4edfe5[_0x41726e(0x170)]),this[_0x41726e(0x194)](_0x4edfe5[_0x41726e(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x187),()=>{const _0x4bbf05=_0x34492c;this[_0x4bbf05(0x163)]();}),this[_0x34492c(0x1a1)](this[_0x34492c(0x19f)],_0x34492c(0x1a4),(_0x1aaf19,_0x56dab8)=>{const _0x47412c=_0x34492c;this[_0x47412c(0x183)](_0x56dab8[_0x47412c(0x1a4)],_0x56dab8[_0x47412c(0x16d)],_0x56dab8[_0x47412c(0x170)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x14f),(_0x124f0c,_0x1fd148)=>{const _0x8979df=_0x34492c;this[_0x8979df(0x190)](_0x1fd148['id']);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x172),(_0x3c43b9,_0x561613)=>{const _0x2a9102=_0x34492c,_0xee5a05=_0x561613[_0x2a9102(0x17c)]?_0x2a9102(0x16b):_0x2a9102(0x182);this[_0x2a9102(0x153)](_0x561613['id'],_0xee5a05),this[_0x2a9102(0x17b)](_0x561613['id'],_0x561613[_0x2a9102(0x17c)]);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x18a),()=>{const _0x244cde=_0x34492c;_0x38a1e8[_0x244cde(0x16a)][_0x244cde(0x184)](_0x244cde(0x198));}),this[_0x34492c(0x1a1)](this[_0x34492c(0x1a5)],_0x34492c(0x1a7),()=>{const _0x14fff8=_0x34492c;this[_0x14fff8(0x163)]();}),_0x38a1e8[_0x34492c(0x16a)]['on'](_0x34492c(0x196),()=>{const _0x519e26=_0x34492c;this[_0x519e26(0x186)]();}),this[_0x34492c(0x1a1)](_0x38a1e8,_0x34492c(0x17f),(_0x5cd596,_0x52ce83)=>{const _0x54c718=_0x34492c;this[_0x54c718(0x15c)](_0x52ce83);}),this[_0x34492c(0x1a1)](this[_0x34492c(0x18c)],_0x34492c(0x174),()=>{const _0xf74fb5=_0x34492c;_0x38a1e8[_0xf74fb5(0x16c)]();});}async[_0x26ff02(0x177)](_0x39a77a,_0x5cefa3){const _0x2d71f3=_0x26ff02;await this[_0x2d71f3(0x19f)][_0x2d71f3(0x165)](_0x39a77a,_0x5cefa3);}async[_0x26ff02(0x17b)](_0x51a546,_0x4d6f3b){const _0x58e057=_0x26ff02;await this[_0x58e057(0x19f)][_0x58e057(0x18b)](_0x51a546,_0x4d6f3b);}async[_0x26ff02(0x14a)](_0x431bc4){const _0x2e6be1=_0x26ff02;await this[_0x2e6be1(0x19f)][_0x2e6be1(0x1a3)](_0x431bc4);}async[_0x26ff02(0x190)](_0xc0a1e5){const _0x1e627c=_0x26ff02;await this[_0x1e627c(0x1a5)][_0x1e627c(0x149)](_0xc0a1e5);}async[_0x26ff02(0x186)](){const _0x1b94ac=_0x26ff02;this[_0x1b94ac(0x18c)][_0x1b94ac(0x157)](''),this[_0x1b94ac(0x18c)][_0x1b94ac(0x160)](!0x0),await this[_0x1b94ac(0x19f)][_0x1b94ac(0x195)](),this[_0x1b94ac(0x18c)][_0x1b94ac(0x160)](!0x1);}[_0x26ff02(0x163)](){const _0x10d13e=_0x26ff02,_0x541a46=this[_0x10d13e(0x1a5)][_0x10d13e(0x1a8)]?.['id'],_0x1f9838=this[_0x10d13e(0x152)]()[_0x10d13e(0x151)](_0x1e0548=>({'title':_0x1e0548[_0x10d13e(0x156)],'items':_0x1e0548[_0x10d13e(0x17a)][_0x10d13e(0x151)](_0x10bf0e=>({'id':_0x10bf0e['id'],'title':_0x10bf0e[_0x10d13e(0x156)]||_0x6a4575(this[_0x10d13e(0x19e)][_0x10d13e(0x147)],_0x10d13e(0x19b)),'createdAt':new Date(_0x10bf0e[_0x10d13e(0x193)])[_0x10d13e(0x154)](),'active':_0x10bf0e['id']===_0x541a46,'pinned':_0x10bf0e[_0x10d13e(0x17c)]}))}));this[_0x10d13e(0x18c)][_0x10d13e(0x15e)](_0x1f9838);}[_0x26ff02(0x153)](_0x25a3ec,_0x5ca4fe){const _0x1ed475=_0x26ff02;this[_0x1ed475(0x18c)][_0x1ed475(0x171)](_0x25a3ec,_0x5ca4fe,!0x0);}[_0x26ff02(0x194)](_0x5dc68f){const _0x4d3968=_0x26ff02;this[_0x4d3968(0x18c)][_0x4d3968(0x171)](_0x5dc68f,null,!0x1);}[_0x26ff02(0x183)](_0x5c31f6,_0x1d79ff,_0x7b2cab){const _0x451051=_0x26ff02,_0x34fcd2=this[_0x451051(0x197)](_0x1d79ff,_0x7b2cab);this[_0x451051(0x18c)][_0x451051(0x157)](_0x34fcd2),_0x7b2cab&&this[_0x451051(0x194)](_0x7b2cab),this[_0x451051(0x18c)][_0x451051(0x160)](!0x1);}[_0x26ff02(0x197)](_0x5e4d7e,_0x56b4d5){const _0xb2b71a=_0x26ff02,_0xf9dbcc=_0x56b4d5?this[_0xb2b71a(0x19f)][_0xb2b71a(0x15f)](_0x56b4d5):null,_0x40cbed=_0xf9dbcc?.[_0xb2b71a(0x156)]||_0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x19b));switch(_0x5e4d7e){case _0xb2b71a(0x165):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x1a0),_0x40cbed);case _0xb2b71a(0x18b):{const _0x16ca61=_0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xf9dbcc?.[_0xb2b71a(0x17c)]?_0xb2b71a(0x15d):_0xb2b71a(0x14d));return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x167),[_0x16ca61,_0x40cbed]);}case _0xb2b71a(0x1a3):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x181),_0x40cbed);case _0xb2b71a(0x195):case _0xb2b71a(0x161):return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x185));default:return _0x6a4575(this[_0xb2b71a(0x19e)][_0xb2b71a(0x147)],_0xb2b71a(0x14e));}}[_0x26ff02(0x152)](){const _0x4f1260=_0x26ff02,_0x4d5ac3=new Date(),_0x49ba20=new Date(_0x4d5ac3[_0x4f1260(0x155)](),_0x4d5ac3[_0x4f1260(0x188)](),_0x4d5ac3[_0x4f1260(0x199)]()),_0x40641f=new Date(_0x49ba20);_0x40641f[_0x4f1260(0x176)](_0x40641f[_0x4f1260(0x199)]()-0x1);const _0x5370d9=new Date(_0x49ba20);_0x5370d9[_0x4f1260(0x176)](_0x5370d9[_0x4f1260(0x199)]()-0xe);const _0xb723b=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'pinned':!0x0}),_0x8589c4=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x49ba20,'to':_0x49ba20}),_0x1d8285=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x40641f,'to':_0x40641f}),_0x2592fb=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'from':_0x5370d9,'to':_0x40641f}),_0x2cfd4c=this[_0x4f1260(0x19f)][_0x4f1260(0x148)]({'to':_0x5370d9}),_0x3c1a9a=[];return _0xb723b[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x1a2)),'items':_0xb723b}),_0x8589c4[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x16f)),'items':_0x8589c4}),_0x1d8285[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x19c)),'items':_0x1d8285}),_0x2592fb[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x178)),'items':_0x2592fb}),_0x2cfd4c[_0x4f1260(0x169)]>0x0&&_0x3c1a9a[_0x4f1260(0x166)]({'title':_0x6a4575(this[_0x4f1260(0x19e)][_0x4f1260(0x147)],_0x4f1260(0x1a6)),'items':_0x2cfd4c}),_0x3c1a9a;}[_0x26ff02(0x15c)](_0x280735){const _0x1d4df5=_0x26ff02;this[_0x1d4df5(0x18c)][_0x1d4df5(0x189)](_0x280735);}}
23
+ const _0x5931df=_0x27b6;function _0x9d61(){const _0x113a4d=['unpin','operation','selectConversation','itemId','updateItemLoadingState','activeConversation','updateItemTitle','624xflChC','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_LATER','get','openChat','toLocaleDateString','getGroupId','context','4UrVLFX','1662930SVPWOY','setLoadingSkeleton','getItems','_handleHistoryErrorUI','10603934qfxKbH','_setIsMaximized','AI_CHAT_UNTITLED_CONVERSATION','itemRemoved','_clearItemLoading','itemsLoaded','_showConversationHistory','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','rename','_handleRemove','_aiChatController','resize','_generateErrorMessage','view','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_UNPIN_ACTION','isOfficialPlugin','_setItemLoading','updateItems','3689BYnvrz','length','showError','getItem','isPremiumPlugin','getFullYear','resizedTabs','activateTab','editConversationTitle','plugins','AI_CHAT_HISTORY_CATEGORY_TODAY','5704IxqEAk','push','816200aszbhE','remove','chat','_handleSelectConversation','items','getDate','setDate','resizeTabs','removeConversation','listenTo','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_getCategorizedItems','setIsMaximized','history','map','updates','_updateHistoryItemsUI','updateItemPinned','activateTab:history','loadConversation','pin','locale','createdAt','_handleTogglePin','pinned','532878IMHPCR','AI_CHAT_HISTORY_ERROR_GENERIC','AI_CHAT_HISTORY_PIN_ACTION','error','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','change:activeConversation','title','pluginName','16955vywHNE','AIChatHistoryController','getMonth','itemUpdated','init','AI_CHAT_HISTORY_CATEGORY_PINNED','_aiChatHistoryUi','removeHistoryItem','requires','4090404kPJJtw','handleRemovedConversation','30BKmjKG','setConversationPinned','_handleEditTitle','removeItem','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','loadItems','_aiConnector'];_0x9d61=function(){return _0x113a4d;};return _0x9d61();}(function(_0x36d52a,_0x3161ec){const _0x18960b=_0x27b6,_0x5bd68e=_0x36d52a();while(!![]){try{const _0x4e3f61=-parseInt(_0x18960b(0x113))/0x1+-parseInt(_0x18960b(0x155))/0x2*(parseInt(_0x18960b(0x12c))/0x3)+-parseInt(_0x18960b(0x13d))/0x4+parseInt(_0x18960b(0x134))/0x5*(-parseInt(_0x18960b(0x14d))/0x6)+parseInt(_0x18960b(0x106))/0x7*(parseInt(_0x18960b(0x111))/0x8)+-parseInt(_0x18960b(0x156))/0x9+-parseInt(_0x18960b(0x13f))/0xa*(-parseInt(_0x18960b(0x15a))/0xb);if(_0x4e3f61===_0x3161ec)break;else _0x5bd68e['push'](_0x5bd68e['shift']());}catch(_0x2004a0){_0x5bd68e['push'](_0x5bd68e['shift']());}}}(_0x9d61,0x82eb6));function _0x27b6(_0x1dbeaa,_0x5e617a){const _0x9d6190=_0x9d61();return _0x27b6=function(_0x27b695,_0x40c9c4){_0x27b695=_0x27b695-0xff;let _0x5490da=_0x9d6190[_0x27b695];return _0x5490da;},_0x27b6(_0x1dbeaa,_0x5e617a);}import{ContextPlugin as _0x3226e5}from'ckeditor5/src/core.js';import{AIConnector as _0x140f49}from'../aicore/aiconnector.js';import{AIChatController as _0x72ca44}from'../aichat/aichatcontroller.js';import{AITabs as _0x3c1c78}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x380b52}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1752c3}from'./model/aichathistoryconversations.js';import{getTranslation as _0x48c4e6}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x3226e5{[_0x5931df(0x145)];[_0x5931df(0x13a)];[_0x5931df(0x164)];static get[_0x5931df(0x13c)](){return[_0x140f49,_0x72ca44,_0x380b52,_0x3c1c78];}static get[_0x5931df(0x133)](){const _0x457a63=_0x5931df;return _0x457a63(0x135);}static get[_0x5931df(0x103)](){return!0x0;}static get[_0x5931df(0x10a)](){return!0x0;}[_0x5931df(0x138)](){const _0x1c4ee6=_0x5931df;this[_0x1c4ee6(0x145)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x140f49),this[_0x1c4ee6(0x13a)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x380b52),this[_0x1c4ee6(0x164)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x72ca44);const _0x496ee3=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x3c1c78),_0x467acd=this[_0x1c4ee6(0x164)][_0x1c4ee6(0x153)]();this[_0x1c4ee6(0x120)]=new _0x1752c3({'connector':this[_0x1c4ee6(0x145)],'group':_0x467acd}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x11b),(_0x5e5156,_0x26d69a)=>{const _0x454ed2=_0x1c4ee6;this[_0x454ed2(0x104)](_0x26d69a['id'],_0x454ed2(0x114)),this[_0x454ed2(0x163)](_0x26d69a['id']);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x10e),(_0x51bed8,_0x49fd96)=>{const _0x4f3d12=_0x1c4ee6;this[_0x4f3d12(0x104)](_0x49fd96['id'],_0x4f3d12(0x162)),this[_0x4f3d12(0x141)](_0x49fd96['id'],_0x49fd96[_0x4f3d12(0x132)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x137),(_0x517c9e,_0x10f9c8)=>{const _0x133781=_0x1c4ee6;void 0x0!==_0x10f9c8[_0x133781(0x122)][_0x133781(0x132)]&&this[_0x133781(0x13a)][_0x133781(0x14c)](_0x10f9c8[_0x133781(0x149)],_0x10f9c8[_0x133781(0x122)][_0x133781(0x132)]),void 0x0!==_0x10f9c8[_0x133781(0x122)][_0x133781(0x12b)]&&this[_0x133781(0x123)](),this[_0x133781(0x15e)](_0x10f9c8[_0x133781(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x15d),(_0x27bc2a,_0x35a453)=>{const _0x5a24e9=_0x1c4ee6;this[_0x5a24e9(0x164)][_0x5a24e9(0x13e)](_0x35a453[_0x5a24e9(0x149)]),this[_0x5a24e9(0x13a)][_0x5a24e9(0x13b)](_0x35a453[_0x5a24e9(0x149)]),this[_0x5a24e9(0x15e)](_0x35a453[_0x5a24e9(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x15f),()=>{const _0x53ebe4=_0x1c4ee6;this[_0x53ebe4(0x123)]();}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x12f),(_0xa6a676,_0x2cb063)=>{const _0x4eab04=_0x1c4ee6;this[_0x4eab04(0x159)](_0x2cb063[_0x4eab04(0x12f)],_0x2cb063[_0x4eab04(0x147)],_0x2cb063[_0x4eab04(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x148),(_0x1c6146,_0x28ef29)=>{const _0x2b0ac7=_0x1c4ee6;this[_0x2b0ac7(0x116)](_0x28ef29['id']);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x140),(_0x4903bf,_0x2bed83)=>{const _0x25a27e=_0x1c4ee6,_0x45d851=_0x2bed83[_0x25a27e(0x12b)]?_0x25a27e(0x127):_0x25a27e(0x146);this[_0x25a27e(0x104)](_0x2bed83['id'],_0x45d851),this[_0x25a27e(0x12a)](_0x2bed83['id'],_0x2bed83[_0x25a27e(0x12b)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x151),()=>{const _0x4178bd=_0x1c4ee6;_0x496ee3[_0x4178bd(0x100)][_0x4178bd(0x10d)](_0x4178bd(0x115));}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x164)],_0x1c4ee6(0x131),()=>{const _0x7e8f16=_0x1c4ee6;this[_0x7e8f16(0x123)]();}),_0x496ee3[_0x1c4ee6(0x100)]['on'](_0x1c4ee6(0x125),()=>{const _0x17c012=_0x1c4ee6;this[_0x17c012(0x160)]();}),this[_0x1c4ee6(0x11c)](_0x496ee3,_0x1c4ee6(0x10c),(_0x3e8564,_0x34d5c1)=>{const _0x6d9e00=_0x1c4ee6;this[_0x6d9e00(0x15b)](_0x34d5c1);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x11a),()=>{const _0x5eafc2=_0x1c4ee6;_0x496ee3[_0x5eafc2(0x165)]();});}async[_0x5931df(0x141)](_0x29242a,_0x53ffd3){const _0x211e63=_0x5931df;await this[_0x211e63(0x120)][_0x211e63(0x14c)](_0x29242a,_0x53ffd3);}async[_0x5931df(0x12a)](_0x108421,_0x3ede99){const _0x26ad0e=_0x5931df;await this[_0x26ad0e(0x120)][_0x26ad0e(0x124)](_0x108421,_0x3ede99);}async[_0x5931df(0x163)](_0xa12917){const _0x2a7e84=_0x5931df;await this[_0x2a7e84(0x120)][_0x2a7e84(0x142)](_0xa12917);}async[_0x5931df(0x116)](_0x3b1a07){const _0xef1a45=_0x5931df;await this[_0xef1a45(0x164)][_0xef1a45(0x126)](_0x3b1a07);}async[_0x5931df(0x160)](){const _0x5c1d43=_0x5931df;this[_0x5c1d43(0x13a)][_0x5c1d43(0x108)](''),this[_0x5c1d43(0x13a)][_0x5c1d43(0x157)](!0x0),await this[_0x5c1d43(0x120)][_0x5c1d43(0x138)](),this[_0x5c1d43(0x13a)][_0x5c1d43(0x157)](!0x1);}[_0x5931df(0x123)](){const _0x36bdcf=_0x5931df,_0x3fbae3=this[_0x36bdcf(0x164)][_0x36bdcf(0x14b)]?.['id'],_0x3741bb=this[_0x36bdcf(0x11e)]()[_0x36bdcf(0x121)](_0x26b501=>({'title':_0x26b501[_0x36bdcf(0x132)],'items':_0x26b501[_0x36bdcf(0x117)][_0x36bdcf(0x121)](_0x5d5e9b=>({'id':_0x5d5e9b['id'],'title':_0x5d5e9b[_0x36bdcf(0x132)]||_0x48c4e6(this[_0x36bdcf(0x154)][_0x36bdcf(0x128)],_0x36bdcf(0x15c)),'createdAt':new Date(_0x5d5e9b[_0x36bdcf(0x129)])[_0x36bdcf(0x152)](),'active':_0x5d5e9b['id']===_0x3fbae3,'pinned':_0x5d5e9b[_0x36bdcf(0x12b)]}))}));this[_0x36bdcf(0x13a)][_0x36bdcf(0x105)](_0x3741bb);}[_0x5931df(0x104)](_0x3910fa,_0x4d9ad0){const _0x18954c=_0x5931df;this[_0x18954c(0x13a)][_0x18954c(0x14a)](_0x3910fa,_0x4d9ad0,!0x0);}[_0x5931df(0x15e)](_0x48233f){const _0x316793=_0x5931df;this[_0x316793(0x13a)][_0x316793(0x14a)](_0x48233f,null,!0x1);}[_0x5931df(0x159)](_0x561ee9,_0x499735,_0x53e72f){const _0x14f49c=_0x5931df,_0x4aadda=this[_0x14f49c(0xff)](_0x499735,_0x53e72f);this[_0x14f49c(0x13a)][_0x14f49c(0x108)](_0x4aadda),_0x53e72f&&this[_0x14f49c(0x15e)](_0x53e72f),this[_0x14f49c(0x13a)][_0x14f49c(0x157)](!0x1);}[_0x5931df(0xff)](_0x5ac482,_0x2767fe){const _0x160ff9=_0x5931df,_0x45539e=_0x2767fe?this[_0x160ff9(0x120)][_0x160ff9(0x109)](_0x2767fe):null,_0x79131c=_0x45539e?.[_0x160ff9(0x132)]||_0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x15c));switch(_0x5ac482){case _0x160ff9(0x14c):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x101),_0x79131c);case _0x160ff9(0x124):{const _0x3b1a1e=_0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x45539e?.[_0x160ff9(0x12b)]?_0x160ff9(0x102):_0x160ff9(0x12e));return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x14e),[_0x3b1a1e,_0x79131c]);}case _0x160ff9(0x142):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x161),_0x79131c);case _0x160ff9(0x138):case _0x160ff9(0x144):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x11d));default:return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x12d));}}[_0x5931df(0x11e)](){const _0x427618=_0x5931df,_0x127d89=new Date(),_0x50321b=new Date(_0x127d89[_0x427618(0x10b)](),_0x127d89[_0x427618(0x136)](),_0x127d89[_0x427618(0x118)]()),_0x363070=new Date(_0x50321b);_0x363070[_0x427618(0x119)](_0x363070[_0x427618(0x118)]()-0x1);const _0xd992d=new Date(_0x50321b);_0xd992d[_0x427618(0x119)](_0xd992d[_0x427618(0x118)]()-0xe);const _0xc05930=this[_0x427618(0x120)][_0x427618(0x158)]({'pinned':!0x0}),_0x55991b=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0x50321b,'to':_0x50321b}),_0xb372a6=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0x363070,'to':_0x363070}),_0x384dec=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0xd992d,'to':_0x363070}),_0x544ed5=this[_0x427618(0x120)][_0x427618(0x158)]({'to':_0xd992d}),_0x45ffd4=[];return _0xc05930[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x139)),'items':_0xc05930}),_0x55991b[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x110)),'items':_0x55991b}),_0xb372a6[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x130)),'items':_0xb372a6}),_0x384dec[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x143)),'items':_0x384dec}),_0x544ed5[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x14f)),'items':_0x544ed5}),_0x45ffd4;}[_0x5931df(0x15b)](_0x465633){const _0x70959d=_0x5931df;this[_0x70959d(0x13a)][_0x70959d(0x11f)](_0x465633);}}
@@ -4,7 +4,6 @@
4
4
  */
5
5
  /**
6
6
  * @module ai/aichathistory/aichathistoryui
7
- * @publicApi
8
7
  */
9
8
  import { type Context, type Editor, ContextPlugin } from 'ckeditor5/src/core.js';
10
9
  import { AITabs } from '../aitabs/aitabs.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d0d1b=_0xc984;(function(_0x52afaf,_0x20ecb4){const _0x1cdbc3=_0xc984,_0x4edd0b=_0x52afaf();while(!![]){try{const _0x4d311f=parseInt(_0x1cdbc3(0x1c1))/0x1*(-parseInt(_0x1cdbc3(0x1c9))/0x2)+-parseInt(_0x1cdbc3(0x1ce))/0x3+-parseInt(_0x1cdbc3(0x1b3))/0x4+-parseInt(_0x1cdbc3(0x1c8))/0x5*(-parseInt(_0x1cdbc3(0x1b1))/0x6)+-parseInt(_0x1cdbc3(0x1b5))/0x7*(-parseInt(_0x1cdbc3(0x1b8))/0x8)+-parseInt(_0x1cdbc3(0x1d4))/0x9+parseInt(_0x1cdbc3(0x1d8))/0xa*(parseInt(_0x1cdbc3(0x1d0))/0xb);if(_0x4d311f===_0x20ecb4)break;else _0x4edd0b['push'](_0x4edd0b['shift']());}catch(_0x21fe44){_0x4edd0b['push'](_0x4edd0b['shift']());}}}(_0x235f,0xcb483));import{ContextPlugin as _0x1161b2}from'ckeditor5/src/core.js';function _0xc984(_0x473760,_0x24d72f){const _0x235fd5=_0x235f();return _0xc984=function(_0xc98493,_0x1155c8){_0xc98493=_0xc98493-0x1b0;let _0x503d72=_0x235fd5[_0xc98493];return _0x503d72;},_0xc984(_0x473760,_0x24d72f);}import{AITabs as _0x3f729d}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3d6fca}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x162d9f}from'./ui/aichathistoryview.js';import{getTranslation as _0x25a04f}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3d0d1b(0x1c0),_0x3d0d1b(0x1c5),_0x3d0d1b(0x1bb),_0x3d0d1b(0x1da),_0x3d0d1b(0x1b2),_0x3d0d1b(0x1b6),_0x3d0d1b(0x1bd)];export class AIChatHistoryUI extends _0x1161b2{static get[_0x3d0d1b(0x1cd)](){return[_0x3f729d];}[_0x3d0d1b(0x1d5)];static get[_0x3d0d1b(0x1dd)](){const _0x4c36ba=_0x3d0d1b;return _0x4c36ba(0x1de);}static get[_0x3d0d1b(0x1b0)](){return!0x0;}static get[_0x3d0d1b(0x1cb)](){return!0x0;}constructor(_0x24a312){const _0x44262=_0x3d0d1b;super(_0x24a312);const _0x287fba=this[_0x44262(0x1b7)][_0x44262(0x1be)][_0x44262(0x1ca)](_0x44262(0x1d7));this[_0x44262(0x1d5)]=new _0x162d9f(this[_0x44262(0x1b7)][_0x44262(0x1b4)],_0x287fba[_0x44262(0x1ba)]),this[_0x44262(0x1d5)][_0x44262(0x1d2)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x287fba[_0x44262(0x1cc)][_0x44262(0x1c6)]({'id':_0x44262(0x1db),'buttonLabel':_0x25a04f(this[_0x44262(0x1b7)][_0x44262(0x1b4)],_0x44262(0x1cf)),'buttonIcon':_0x3d6fca,'order':0x0,'content':this[_0x44262(0x1d5)]});}[_0x3d0d1b(0x1d3)](_0x4b9d28){const _0x1099ea=_0x3d0d1b;this[_0x1099ea(0x1d5)][_0x1099ea(0x1d3)](_0x4b9d28);}[_0x3d0d1b(0x1c7)](_0x2b4f6d){const _0x2c6337=_0x3d0d1b;this[_0x2c6337(0x1d5)][_0x2c6337(0x1d9)](_0x2b4f6d);}[_0x3d0d1b(0x1b9)](_0x2ed138,_0x378488){const _0xb4d390=_0x3d0d1b;this[_0xb4d390(0x1d5)][_0xb4d390(0x1b9)](_0x2ed138,_0x378488);}[_0x3d0d1b(0x1d6)](_0x3d7368,_0x3132c1,_0x2ceb33){const _0x2dd3c7=_0x3d0d1b;this[_0x2dd3c7(0x1d5)][_0x2dd3c7(0x1d6)](_0x3d7368,_0x3132c1,_0x2ceb33);}[_0x3d0d1b(0x1bc)](_0xde587e){const _0x173145=_0x3d0d1b;this[_0x173145(0x1d5)][_0x173145(0x1bf)]=_0xde587e;}[_0x3d0d1b(0x1c4)](_0x138e08){const _0x8fa188=_0x3d0d1b;this[_0x8fa188(0x1d5)][_0x8fa188(0x1c2)]=_0x138e08;}[_0x3d0d1b(0x1c3)](){const _0x279c86=_0x3d0d1b;this[_0x279c86(0x1d5)][_0x279c86(0x1c2)]='';}[_0x3d0d1b(0x1dc)](_0x1729ab){const _0x5252ac=_0x3d0d1b;this[_0x5252ac(0x1d5)][_0x5252ac(0x1d1)]=_0x1729ab;}}function _0x235f(){const _0x48ad32=['showConversationHistory','499epFZKP','errorMessage','hideError','showError','removeConversation','addTab','updateItems','25BQHtrx','6170uTViip','get','isPremiumPlugin','view','requires','1927884rZDENo','AI_CHAT_HISTORY_HEADING','319SZhrKx','isMaximized','delegate','removeHistoryItem','243999mcAGUN','_historyView','updateItemLoadingState','AITabs','1180390xRlFvg','updateHistoryItemsWithCategories','setConversationPinned','history','setIsMaximized','pluginName','AIChatHistoryUI','isOfficialPlugin','136326NscwwW','selectConversation','6099548QADjMw','locale','14ZWWrIa','openChat','context','4119792bOlivf','updateItemTitle','showResizeButton','editConversationTitle','setLoadingSkeleton','resizeTabs','plugins','isLoading'];_0x235f=function(){return _0x48ad32;};return _0x235f();}
23
+ const _0x492313=_0x3382;(function(_0xcca3f,_0x459252){const _0x51ea5b=_0x3382,_0x46c154=_0xcca3f();while(!![]){try{const _0x43919f=-parseInt(_0x51ea5b(0x1ef))/0x1*(-parseInt(_0x51ea5b(0x21a))/0x2)+parseInt(_0x51ea5b(0x208))/0x3+-parseInt(_0x51ea5b(0x212))/0x4+-parseInt(_0x51ea5b(0x20b))/0x5*(-parseInt(_0x51ea5b(0x205))/0x6)+parseInt(_0x51ea5b(0x210))/0x7+-parseInt(_0x51ea5b(0x206))/0x8*(parseInt(_0x51ea5b(0x201))/0x9)+parseInt(_0x51ea5b(0x1f0))/0xa*(-parseInt(_0x51ea5b(0x1f6))/0xb);if(_0x43919f===_0x459252)break;else _0x46c154['push'](_0x46c154['shift']());}catch(_0x5dff68){_0x46c154['push'](_0x46c154['shift']());}}}(_0x5149,0xbf627));import{ContextPlugin as _0x4c8a0c}from'ckeditor5/src/core.js';import{AITabs as _0x5771da}from'../aitabs/aitabs.js';import{IconAIHistory as _0x11ea2c}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xfe36f2}from'./ui/aichathistoryview.js';function _0x3382(_0x1450b6,_0x4fee5d){const _0x514933=_0x5149();return _0x3382=function(_0x3382df,_0x17aa65){_0x3382df=_0x3382df-0x1ef;let _0x3857d1=_0x514933[_0x3382df];return _0x3857d1;},_0x3382(_0x1450b6,_0x4fee5d);}import{getTranslation as _0x286e9b}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x492313(0x219),_0x492313(0x1f2),_0x492313(0x21d),_0x492313(0x20f),_0x492313(0x1fd),_0x492313(0x1fb),_0x492313(0x1f1)];function _0x5149(){const _0x4cd263=['setConversationPinned','10650206ZOvTBf','showResizeButton','2161292BHbuSe','AI_CHAT_HISTORY_HEADING','updateItemTitle','requires','isPremiumPlugin','updateHistoryItemsWithCategories','locale','showConversationHistory','2YgWlsH','updateItems','_historyView','editConversationTitle','98030QVklui','10BMSRhO','resizeTabs','removeConversation','context','setLoadingSkeleton','isOfficialPlugin','12420496cwThDy','pluginName','errorMessage','get','showError','openChat','view','selectConversation','hideError','updateItemLoadingState','addTab','1917CKtVQv','isMaximized','delegate','plugins','6MwScsc','33896cCUaeF','setIsMaximized','3878094WSCcgI','isLoading','removeHistoryItem','2218325dEpBuW','AIChatHistoryUI','AITabs','history'];_0x5149=function(){return _0x4cd263;};return _0x5149();}export class AIChatHistoryUI extends _0x4c8a0c{static get[_0x492313(0x215)](){return[_0x5771da];}[_0x492313(0x21c)];static get[_0x492313(0x1f7)](){const _0x26febf=_0x492313;return _0x26febf(0x20c);}static get[_0x492313(0x1f5)](){return!0x0;}static get[_0x492313(0x216)](){return!0x0;}constructor(_0x22ef36){const _0x4f5ced=_0x492313;super(_0x22ef36);const _0x32281d=this[_0x4f5ced(0x1f3)][_0x4f5ced(0x204)][_0x4f5ced(0x1f9)](_0x4f5ced(0x20d));this[_0x4f5ced(0x21c)]=new _0xfe36f2(this[_0x4f5ced(0x1f3)][_0x4f5ced(0x218)],_0x32281d[_0x4f5ced(0x211)]),this[_0x4f5ced(0x21c)][_0x4f5ced(0x203)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x32281d[_0x4f5ced(0x1fc)][_0x4f5ced(0x200)]({'id':_0x4f5ced(0x20e),'buttonLabel':_0x286e9b(this[_0x4f5ced(0x1f3)][_0x4f5ced(0x218)],_0x4f5ced(0x213)),'buttonIcon':_0x11ea2c,'order':0x0,'content':this[_0x4f5ced(0x21c)]});}[_0x492313(0x20a)](_0x21c81b){const _0x4fab34=_0x492313;this[_0x4fab34(0x21c)][_0x4fab34(0x20a)](_0x21c81b);}[_0x492313(0x21b)](_0x2cbd6d){const _0x441a5f=_0x492313;this[_0x441a5f(0x21c)][_0x441a5f(0x217)](_0x2cbd6d);}[_0x492313(0x214)](_0x4611bf,_0x58d515){const _0x366eb2=_0x492313;this[_0x366eb2(0x21c)][_0x366eb2(0x214)](_0x4611bf,_0x58d515);}[_0x492313(0x1ff)](_0x1838cd,_0x22c846,_0x464987){const _0x95210a=_0x492313;this[_0x95210a(0x21c)][_0x95210a(0x1ff)](_0x1838cd,_0x22c846,_0x464987);}[_0x492313(0x1f4)](_0x2a20ed){const _0xdaed1b=_0x492313;this[_0xdaed1b(0x21c)][_0xdaed1b(0x209)]=_0x2a20ed;}[_0x492313(0x1fa)](_0x5233df){const _0x21355a=_0x492313;this[_0x21355a(0x21c)][_0x21355a(0x1f8)]=_0x5233df;}[_0x492313(0x1fe)](){const _0x248061=_0x492313;this[_0x248061(0x21c)][_0x248061(0x1f8)]='';}[_0x492313(0x207)](_0x2e1af6){const _0x15f60=_0x492313;this[_0x15f60(0x21c)][_0x15f60(0x202)]=_0x2e1af6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x23d5(_0x199fdf,_0x59d21e){const _0x2610fb=_0x2610();return _0x23d5=function(_0x23d5c2,_0x184371){_0x23d5c2=_0x23d5c2-0x12b;let _0x4a7000=_0x2610fb[_0x23d5c2];return _0x4a7000;},_0x23d5(_0x199fdf,_0x59d21e);}const _0x2310ac=_0x23d5;(function(_0x5eecf9,_0x5071a7){const _0x1e1252=_0x23d5,_0x3dc659=_0x5eecf9();while(!![]){try{const _0x5a7c77=parseInt(_0x1e1252(0x133))/0x1+parseInt(_0x1e1252(0x137))/0x2+-parseInt(_0x1e1252(0x130))/0x3*(-parseInt(_0x1e1252(0x150))/0x4)+-parseInt(_0x1e1252(0x141))/0x5+parseInt(_0x1e1252(0x144))/0x6+-parseInt(_0x1e1252(0x13d))/0x7*(parseInt(_0x1e1252(0x159))/0x8)+parseInt(_0x1e1252(0x12f))/0x9*(-parseInt(_0x1e1252(0x13a))/0xa);if(_0x5a7c77===_0x5071a7)break;else _0x3dc659['push'](_0x3dc659['shift']());}catch(_0x33e9e0){_0x3dc659['push'](_0x3dc659['shift']());}}}(_0x2610,0xe2b8b));import{EmitterMixin as _0x123bd6}from'ckeditor5/src/utils.js';function _0x2610(){const _0x4424c2=['group','removeItem','itemsLoaded','updateConversation','connector','init','getItem','getMonth','find','map','loadItems','4GIgPSm','getDate','findIndex','getResult','getConversations','createdAt','pinned','error','itemRemoved','16KnGmMS','execute','splice','getItems','fetchConversations','68832xTVewc','1978401lEzYuH','itemUpdated','getFullYear','255049QkMFYO','updateItemTitle','updateTitle','items','3710492NYznEe','getTime','updateItemPinned','1600DITeUo','addItem','push','2319618wBzHYo','from','updatePinned','fire','8595020bfpwmR','deleteConversation','filter','10585926tfppye'];_0x2610=function(){return _0x4424c2;};return _0x2610();}import{AIChatHistoryItem as _0x9708ea}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x123bd6(){[_0x2310ac(0x136)]=[];[_0x2310ac(0x149)];[_0x2310ac(0x145)];constructor({connector:_0x8e5eae,group:_0x55d069}){const _0x103d89=_0x2310ac;super(),this[_0x103d89(0x149)]=_0x8e5eae,this[_0x103d89(0x145)]=_0x55d069;}async[_0x2310ac(0x14a)](){const _0x4c60fe=_0x2310ac;try{const _0x39868d=this[_0x4c60fe(0x149)][_0x4c60fe(0x12e)](this[_0x4c60fe(0x145)]),_0x58c6a1=await _0x39868d[_0x4c60fe(0x154)]();this[_0x4c60fe(0x14f)](_0x58c6a1);}catch(_0x2ecde0){this[_0x4c60fe(0x140)](_0x4c60fe(0x157),{'error':_0x2ecde0,'operation':_0x4c60fe(0x14a)});}}[_0x2310ac(0x13b)](_0x138615){const _0xc58899=_0x2310ac;this[_0xc58899(0x136)][_0xc58899(0x13c)](_0x138615);}async[_0x2310ac(0x146)](_0x31beb2){const _0x4f6aa6=_0x2310ac,_0x23c840=this[_0x4f6aa6(0x136)][_0x4f6aa6(0x152)](_0x461c0c=>_0x461c0c['id']===_0x31beb2);if(-0x1===_0x23c840)return!0x1;try{return await this[_0x4f6aa6(0x149)][_0x4f6aa6(0x142)](_0x31beb2)[_0x4f6aa6(0x12b)](),this[_0x4f6aa6(0x136)][_0x4f6aa6(0x12c)](_0x23c840,0x1),this[_0x4f6aa6(0x140)](_0x4f6aa6(0x158),{'itemId':_0x31beb2}),!0x0;}catch(_0x2b1d27){return this[_0x4f6aa6(0x140)](_0x4f6aa6(0x157),{'error':_0x2b1d27,'operation':_0x4f6aa6(0x146),'itemId':_0x31beb2}),!0x1;}}[_0x2310ac(0x14b)](_0x283620){const _0x1aa847=_0x2310ac;return this[_0x1aa847(0x136)][_0x1aa847(0x14d)](_0x4e2641=>_0x4e2641['id']===_0x283620);}async[_0x2310ac(0x134)](_0x4e26eb,_0x563e91){const _0x18bb2a=_0x2310ac,_0x2acb11=this[_0x18bb2a(0x14b)](_0x4e26eb);if(!_0x2acb11)return!0x1;try{return await this[_0x18bb2a(0x149)][_0x18bb2a(0x148)](_0x4e26eb,{'title':_0x563e91})[_0x18bb2a(0x153)](),_0x2acb11[_0x18bb2a(0x135)](_0x563e91),this[_0x18bb2a(0x140)](_0x18bb2a(0x131),{'itemId':_0x4e26eb,'updates':{'title':_0x563e91}}),!0x0;}catch(_0x28f381){return this[_0x18bb2a(0x140)](_0x18bb2a(0x157),{'error':_0x28f381,'operation':_0x18bb2a(0x134),'itemId':_0x4e26eb}),!0x1;}}async[_0x2310ac(0x139)](_0x3329c7,_0x5a16c7){const _0x5cb89a=_0x2310ac,_0x1461b1=this[_0x5cb89a(0x14b)](_0x3329c7);if(!_0x1461b1)return!0x1;try{return await this[_0x5cb89a(0x149)][_0x5cb89a(0x148)](_0x3329c7,{'pinned':_0x5a16c7})[_0x5cb89a(0x153)](),_0x1461b1[_0x5cb89a(0x13f)](_0x5a16c7),this[_0x5cb89a(0x140)](_0x5cb89a(0x131),{'itemId':_0x3329c7,'updates':{'pinned':_0x5a16c7}}),!0x0;}catch(_0x83a32a){return this[_0x5cb89a(0x140)](_0x5cb89a(0x157),{'error':_0x83a32a,'operation':_0x5cb89a(0x139),'itemId':_0x3329c7}),!0x1;}}[_0x2310ac(0x14f)](_0x1da50c){const _0xfdc710=_0x2310ac;try{this[_0xfdc710(0x136)]=[],_0x1da50c[_0xfdc710(0x14e)](_0x527692=>{const _0x384bf9=_0xfdc710;this[_0x384bf9(0x13b)](new _0x9708ea(_0x527692));}),this[_0xfdc710(0x140)](_0xfdc710(0x147),{'items':[...this[_0xfdc710(0x136)]]});}catch(_0x2e16a3){this[_0xfdc710(0x140)](_0xfdc710(0x157),{'error':_0x2e16a3,'operation':_0xfdc710(0x14f)});}}[_0x2310ac(0x12d)](_0x72b506={}){const _0x2df8f3=_0x2310ac,_0x371e75=void 0x0!==_0x72b506[_0x2df8f3(0x156)]&&_0x72b506[_0x2df8f3(0x156)],_0x1fa8f3=_0x72b506[_0x2df8f3(0x13e)]?new Date(_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x132)](),_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x14c)](),_0x72b506[_0x2df8f3(0x13e)][_0x2df8f3(0x151)]()):null,_0x2dd2c5=_0x72b506['to']?new Date(_0x72b506['to'][_0x2df8f3(0x132)](),_0x72b506['to'][_0x2df8f3(0x14c)](),_0x72b506['to'][_0x2df8f3(0x151)]()):null;return this[_0x2df8f3(0x136)][_0x2df8f3(0x143)](_0x5a731c=>{const _0x4f0002=_0x2df8f3;if(_0x5a731c[_0x4f0002(0x156)]!==_0x371e75)return!0x1;if(_0x2dd2c5){const _0x31baf7=new Date(_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x132)](),_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x14c)](),_0x5a731c[_0x4f0002(0x155)][_0x4f0002(0x151)]());return _0x1fa8f3?_0x1fa8f3[_0x4f0002(0x138)]()===_0x2dd2c5[_0x4f0002(0x138)]()?_0x31baf7[_0x4f0002(0x138)]()===_0x1fa8f3[_0x4f0002(0x138)]():_0x31baf7<_0x2dd2c5&&_0x31baf7>=_0x1fa8f3:_0x31baf7<_0x2dd2c5;}return!0x0;});}}
23
+ function _0x7e3d(_0x325910,_0x2e8b46){const _0x453c99=_0x453c();return _0x7e3d=function(_0x7e3d43,_0x30e5b0){_0x7e3d43=_0x7e3d43-0x185;let _0x709724=_0x453c99[_0x7e3d43];return _0x709724;},_0x7e3d(_0x325910,_0x2e8b46);}function _0x453c(){const _0xcc5006=['getFullYear','getMonth','push','error','1962030KowbFY','connector','updatePinned','getTime','loadItems','removeItem','deleteConversation','createdAt','7366HatXHq','getDate','findIndex','updateItemPinned','updateItemTitle','2753502DSQsmS','pinned','execute','fetchConversations','group','getItems','215kHsKNa','itemRemoved','updateConversation','762592QfgYiG','17878230SzBtkb','4084328kBrQma','splice','updateTitle','init','from','addItem','map','itemUpdated','3592780PSgJZN','getResult','56PaYWiv','items','getItem','getConversations','itemsLoaded','filter','find','fire'];_0x453c=function(){return _0xcc5006;};return _0x453c();}const _0x763b8b=_0x7e3d;(function(_0x21cda4,_0x4d97d4){const _0x2c3a4b=_0x7e3d,_0x133eae=_0x21cda4();while(!![]){try{const _0x20e8f2=-parseInt(_0x2c3a4b(0x1ab))/0x1*(-parseInt(_0x2c3a4b(0x1a0))/0x2)+-parseInt(_0x2c3a4b(0x1a5))/0x3+-parseInt(_0x2c3a4b(0x1b0))/0x4+-parseInt(_0x2c3a4b(0x18a))/0x5+-parseInt(_0x2c3a4b(0x198))/0x6+-parseInt(_0x2c3a4b(0x18c))/0x7*(-parseInt(_0x2c3a4b(0x1ae))/0x8)+parseInt(_0x2c3a4b(0x1af))/0x9;if(_0x20e8f2===_0x4d97d4)break;else _0x133eae['push'](_0x133eae['shift']());}catch(_0x129b99){_0x133eae['push'](_0x133eae['shift']());}}}(_0x453c,0x87d8e));import{EmitterMixin as _0x513568}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x227e25}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x513568(){[_0x763b8b(0x18d)]=[];[_0x763b8b(0x199)];[_0x763b8b(0x1a9)];constructor({connector:_0x200935,group:_0x19df55}){const _0x1317db=_0x763b8b;super(),this[_0x1317db(0x199)]=_0x200935,this[_0x1317db(0x1a9)]=_0x19df55;}async[_0x763b8b(0x185)](){const _0x2843a2=_0x763b8b;try{const _0x26a9d3=this[_0x2843a2(0x199)][_0x2843a2(0x1a8)](this[_0x2843a2(0x1a9)]),_0x4bef37=await _0x26a9d3[_0x2843a2(0x18f)]();this[_0x2843a2(0x19c)](_0x4bef37);}catch(_0x3938ba){this[_0x2843a2(0x193)](_0x2843a2(0x197),{'error':_0x3938ba,'operation':_0x2843a2(0x185)});}}[_0x763b8b(0x187)](_0x2c86af){const _0x9933a3=_0x763b8b;this[_0x9933a3(0x18d)][_0x9933a3(0x196)](_0x2c86af);}async[_0x763b8b(0x19d)](_0x23565b){const _0x1fd9cb=_0x763b8b,_0x3ba845=this[_0x1fd9cb(0x18d)][_0x1fd9cb(0x1a2)](_0x4c7982=>_0x4c7982['id']===_0x23565b);if(-0x1===_0x3ba845)return!0x1;try{return await this[_0x1fd9cb(0x199)][_0x1fd9cb(0x19e)](_0x23565b)[_0x1fd9cb(0x1a7)](),this[_0x1fd9cb(0x18d)][_0x1fd9cb(0x1b1)](_0x3ba845,0x1),this[_0x1fd9cb(0x193)](_0x1fd9cb(0x1ac),{'itemId':_0x23565b}),!0x0;}catch(_0x47d92c){return this[_0x1fd9cb(0x193)](_0x1fd9cb(0x197),{'error':_0x47d92c,'operation':_0x1fd9cb(0x19d),'itemId':_0x23565b}),!0x1;}}[_0x763b8b(0x18e)](_0x37486f){const _0x347ec9=_0x763b8b;return this[_0x347ec9(0x18d)][_0x347ec9(0x192)](_0xe89a9=>_0xe89a9['id']===_0x37486f);}async[_0x763b8b(0x1a4)](_0x4c1f3b,_0x3fd05a){const _0x25506e=_0x763b8b,_0x376f79=this[_0x25506e(0x18e)](_0x4c1f3b);if(!_0x376f79)return!0x1;try{return await this[_0x25506e(0x199)][_0x25506e(0x1ad)](_0x4c1f3b,{'title':_0x3fd05a})[_0x25506e(0x18b)](),_0x376f79[_0x25506e(0x1b2)](_0x3fd05a),this[_0x25506e(0x193)](_0x25506e(0x189),{'itemId':_0x4c1f3b,'updates':{'title':_0x3fd05a}}),!0x0;}catch(_0x29527a){return this[_0x25506e(0x193)](_0x25506e(0x197),{'error':_0x29527a,'operation':_0x25506e(0x1a4),'itemId':_0x4c1f3b}),!0x1;}}async[_0x763b8b(0x1a3)](_0xc811be,_0x5f329b){const _0x2bf3e0=_0x763b8b,_0x1dcd97=this[_0x2bf3e0(0x18e)](_0xc811be);if(!_0x1dcd97)return!0x1;try{return await this[_0x2bf3e0(0x199)][_0x2bf3e0(0x1ad)](_0xc811be,{'pinned':_0x5f329b})[_0x2bf3e0(0x18b)](),_0x1dcd97[_0x2bf3e0(0x19a)](_0x5f329b),this[_0x2bf3e0(0x193)](_0x2bf3e0(0x189),{'itemId':_0xc811be,'updates':{'pinned':_0x5f329b}}),!0x0;}catch(_0x54b993){return this[_0x2bf3e0(0x193)](_0x2bf3e0(0x197),{'error':_0x54b993,'operation':_0x2bf3e0(0x1a3),'itemId':_0xc811be}),!0x1;}}[_0x763b8b(0x19c)](_0x41a115){const _0x3f05bf=_0x763b8b;try{this[_0x3f05bf(0x18d)]=[],_0x41a115[_0x3f05bf(0x188)](_0x44d73c=>{const _0x2d4a5b=_0x3f05bf;this[_0x2d4a5b(0x187)](new _0x227e25(_0x44d73c));}),this[_0x3f05bf(0x193)](_0x3f05bf(0x190),{'items':[...this[_0x3f05bf(0x18d)]]});}catch(_0x2f72ae){this[_0x3f05bf(0x193)](_0x3f05bf(0x197),{'error':_0x2f72ae,'operation':_0x3f05bf(0x19c)});}}[_0x763b8b(0x1aa)](_0x4669a4={}){const _0x355279=_0x763b8b,_0x19fcac=void 0x0!==_0x4669a4[_0x355279(0x1a6)]&&_0x4669a4[_0x355279(0x1a6)],_0x4c5ab0=_0x4669a4[_0x355279(0x186)]?new Date(_0x4669a4[_0x355279(0x186)][_0x355279(0x194)](),_0x4669a4[_0x355279(0x186)][_0x355279(0x195)](),_0x4669a4[_0x355279(0x186)][_0x355279(0x1a1)]()):null,_0x18323a=_0x4669a4['to']?new Date(_0x4669a4['to'][_0x355279(0x194)](),_0x4669a4['to'][_0x355279(0x195)](),_0x4669a4['to'][_0x355279(0x1a1)]()):null;return this[_0x355279(0x18d)][_0x355279(0x191)](_0x3999a0=>{const _0x366539=_0x355279;if(_0x3999a0[_0x366539(0x1a6)]!==_0x19fcac)return!0x1;if(_0x18323a){const _0x1df78d=new Date(_0x3999a0[_0x366539(0x19f)][_0x366539(0x194)](),_0x3999a0[_0x366539(0x19f)][_0x366539(0x195)](),_0x3999a0[_0x366539(0x19f)][_0x366539(0x1a1)]());return _0x4c5ab0?_0x4c5ab0[_0x366539(0x19b)]()===_0x18323a[_0x366539(0x19b)]()?_0x1df78d[_0x366539(0x19b)]()===_0x4c5ab0[_0x366539(0x19b)]():_0x1df78d<_0x18323a&&_0x1df78d>=_0x4c5ab0:_0x1df78d<_0x18323a;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x25145f=_0x4791;(function(_0x346075,_0x178b01){var _0x4059cf=_0x4791,_0x5b12d8=_0x346075();while(!![]){try{var _0x498c68=-parseInt(_0x4059cf(0xda))/0x1+-parseInt(_0x4059cf(0xe2))/0x2+-parseInt(_0x4059cf(0xe6))/0x3*(-parseInt(_0x4059cf(0xdf))/0x4)+parseInt(_0x4059cf(0xdd))/0x5*(parseInt(_0x4059cf(0xe3))/0x6)+-parseInt(_0x4059cf(0xea))/0x7*(-parseInt(_0x4059cf(0xe1))/0x8)+parseInt(_0x4059cf(0xe4))/0x9*(-parseInt(_0x4059cf(0xe7))/0xa)+parseInt(_0x4059cf(0xe9))/0xb;if(_0x498c68===_0x178b01)break;else _0x5b12d8['push'](_0x5b12d8['shift']());}catch(_0x5d6b3b){_0x5b12d8['push'](_0x5b12d8['shift']());}}}(_0x493d,0x4dd56));function _0x4791(_0x39c841,_0x11aadf){var _0x493dae=_0x493d();return _0x4791=function(_0x47913e,_0xcc0d8c){_0x47913e=_0x47913e-0xd9;var _0x2ed3fa=_0x493dae[_0x47913e];return _0x2ed3fa;},_0x4791(_0x39c841,_0x11aadf);}import{ObservableMixin as _0x487228}from'ckeditor5/src/utils.js';function _0x493d(){var _0x11eb8c=['46313CtyKwC','title','updatedAt','4075qsltzu','set','64508eMuedp','updatePinned','16776keeSYe','504298YiGhag','1464jxEqnm','54ESoQAo','updateTitle','15mrtuip','666310rvqaQa','pinned','5967918nLYaFx','651VBzIuO','createdAt'];_0x493d=function(){return _0x11eb8c;};return _0x493d();}import{escape as _0x2673cf}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x487228(){['id'];[_0x25145f(0xd9)];constructor({id:_0x40a1e3,title:_0x25ff1c,createdAt:_0x6f263a,updatedAt:_0x239613,pinned:_0x4c7238}){var _0x49efb0=_0x25145f;super(),this['id']=_0x40a1e3,this[_0x49efb0(0xd9)]=new Date(_0x6f263a),this[_0x49efb0(0xde)](_0x49efb0(0xdb),_0x25ff1c),this[_0x49efb0(0xde)](_0x49efb0(0xdc),_0x239613?new Date(_0x239613):null),this[_0x49efb0(0xde)](_0x49efb0(0xe8),_0x4c7238||!0x1);}[_0x25145f(0xe5)](_0x33019b){var _0x3c0646=_0x25145f;this[_0x3c0646(0xde)](_0x3c0646(0xdb),_0x2673cf(_0x33019b)),this[_0x3c0646(0xdc)]=new Date();}[_0x25145f(0xe0)](_0x312c0e){var _0x597a05=_0x25145f;this[_0x597a05(0xde)](_0x597a05(0xe8),_0x312c0e),this[_0x597a05(0xdc)]=new Date();}}
23
+ var _0x213b4a=_0x56ec;function _0x56ec(_0x1d825e,_0x2abad0){var _0x5294ad=_0x5294();return _0x56ec=function(_0x56ec2a,_0x10e767){_0x56ec2a=_0x56ec2a-0xdc;var _0x3272b9=_0x5294ad[_0x56ec2a];return _0x3272b9;},_0x56ec(_0x1d825e,_0x2abad0);}(function(_0x21e1bf,_0x2ecc49){var _0x210ccd=_0x56ec,_0x45fac0=_0x21e1bf();while(!![]){try{var _0x3d37ee=-parseInt(_0x210ccd(0xe7))/0x1+-parseInt(_0x210ccd(0xe3))/0x2+-parseInt(_0x210ccd(0xdf))/0x3*(parseInt(_0x210ccd(0xe4))/0x4)+parseInt(_0x210ccd(0xdc))/0x5*(-parseInt(_0x210ccd(0xe0))/0x6)+parseInt(_0x210ccd(0xe8))/0x7+-parseInt(_0x210ccd(0xe2))/0x8+parseInt(_0x210ccd(0xe6))/0x9;if(_0x3d37ee===_0x2ecc49)break;else _0x45fac0['push'](_0x45fac0['shift']());}catch(_0x434dd6){_0x45fac0['push'](_0x45fac0['shift']());}}}(_0x5294,0x48784));function _0x5294(){var _0x186bfd=['486Fgcvik','title','101992BURDIv','966476EpAPAE','36Ivqknm','set','6511023imlNzS','165575urtaHy','3792327oBqXWK','pinned','updateTitle','updatePinned','14585gcpPuB','createdAt','updatedAt','23511IKQdjh'];_0x5294=function(){return _0x186bfd;};return _0x5294();}import{ObservableMixin as _0x267f1a}from'ckeditor5/src/utils.js';import{escape as _0x16f5b4}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x267f1a(){['id'];[_0x213b4a(0xdd)];constructor({id:_0x2c9d93,title:_0x3bf094,createdAt:_0x284f09,updatedAt:_0x11e9f6,pinned:_0x3925c1}){var _0x3a612d=_0x213b4a;super(),this['id']=_0x2c9d93,this[_0x3a612d(0xdd)]=new Date(_0x284f09),this[_0x3a612d(0xe5)](_0x3a612d(0xe1),_0x3bf094),this[_0x3a612d(0xe5)](_0x3a612d(0xde),_0x11e9f6?new Date(_0x11e9f6):null),this[_0x3a612d(0xe5)](_0x3a612d(0xe9),_0x3925c1||!0x1);}[_0x213b4a(0xea)](_0x1d6338){var _0x12c962=_0x213b4a;this[_0x12c962(0xe5)](_0x12c962(0xe1),_0x16f5b4(_0x1d6338)),this[_0x12c962(0xde)]=new Date();}[_0x213b4a(0xeb)](_0x17ac8b){var _0x13623e=_0x213b4a;this[_0x13623e(0xe5)](_0x13623e(0xe9),_0x17ac8b),this[_0x13623e(0xde)]=new Date();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ee390=_0x37a8;function _0x37a8(_0x26366e,_0x44972a){const _0x10d4cf=_0x10d4();return _0x37a8=function(_0x37a898,_0x3dd44f){_0x37a898=_0x37a898-0xd4;let _0x3643ed=_0x10d4cf[_0x37a898];return _0x3643ed;},_0x37a8(_0x26366e,_0x44972a);}(function(_0x4cef72,_0x510e19){const _0x33a949=_0x37a8,_0x41befe=_0x4cef72();while(!![]){try{const _0x33d6ec=parseInt(_0x33a949(0xed))/0x1*(-parseInt(_0x33a949(0x107))/0x2)+-parseInt(_0x33a949(0xe4))/0x3*(-parseInt(_0x33a949(0x101))/0x4)+-parseInt(_0x33a949(0xde))/0x5+parseInt(_0x33a949(0x12e))/0x6*(parseInt(_0x33a949(0xd8))/0x7)+parseInt(_0x33a949(0xf2))/0x8+-parseInt(_0x33a949(0x105))/0x9*(parseInt(_0x33a949(0x110))/0xa)+parseInt(_0x33a949(0x130))/0xb*(parseInt(_0x33a949(0x134))/0xc);if(_0x33d6ec===_0x510e19)break;else _0x41befe['push'](_0x41befe['shift']());}catch(_0x334867){_0x41befe['push'](_0x41befe['shift']());}}}(_0x10d4,0x485d0));import{ListItemView as _0x1d3c8b,HighlightedTextView as _0x15e0ee,ButtonView as _0xcd9673,ListView as _0x24019e,IconView as _0xbf1716,createDropdown as _0x2da753,InputTextView as _0xf7dba4}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x758529,IconPin as _0x155656,IconCheck as _0x40e710,IconCancel as _0x58d142}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1c6f4c,ConfirmMixin as _0xaf8266}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4888bc}from'es-toolkit/compat';import{AISpinnerView as _0x3336b2}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x54350a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0xaf8266(_0x1d3c8b){['id'];static [_0x5ee390(0x123)]={'remove':_0x5ee390(0x11d),'rename':_0x5ee390(0x10d),'pin':_0x5ee390(0xfd),'unpin':_0x5ee390(0x112)};[_0x5ee390(0x117)];[_0x5ee390(0xd6)];[_0x5ee390(0xf9)];constructor(_0x256356,_0x9b13fe){const _0x4ee688=_0x5ee390;super(_0x256356);const _0x4f66e6=this[_0x4ee688(0x136)];this[_0x4ee688(0xd9)](_0x4ee688(0x108),!0x1),this[_0x4ee688(0xd9)](_0x4ee688(0xf7),!0x0),this[_0x4ee688(0xd9)](_0x4ee688(0xdd),!!_0x9b13fe[_0x4ee688(0xdd)]),this[_0x4ee688(0xd9)](_0x4ee688(0xf5),null),this['id']=_0x9b13fe['id'];const {title:_0x522d82,createdAt:_0x51aab9,active:_0x1fbc29=!0x1}=_0x9b13fe;this[_0x4ee688(0xf9)]=new _0x15e0ee(),this[_0x4ee688(0xf9)][_0x4ee688(0x102)]=_0x522d82,this[_0x4ee688(0xf9)][_0x4ee688(0x137)]({'attributes':{'class':[_0x4ee688(0x100)]}});const _0x51bb45=this[_0x4ee688(0xda)](),_0xc50165=this[_0x4ee688(0x124)](_0x256356),_0x57144e=this[_0x4ee688(0x135)](),_0x573d84=this[_0x4ee688(0x11b)](_0x256356,_0x522d82),_0x4f146d=this[_0x4ee688(0x131)](_0x256356,_0x573d84),_0x536d35=this[_0x4ee688(0xfa)](_0x256356,_0x573d84);this[_0x4ee688(0x117)]=this[_0x4ee688(0x122)](),this[_0x4ee688(0xd6)]=this[_0x4ee688(0x122)](),this[_0x4ee688(0xd6)][_0x4ee688(0xf3)](this[_0x4ee688(0xf9)]),this[_0x4ee688(0x117)][_0x4ee688(0xf3)](_0xc50165),this[_0x4ee688(0x117)][_0x4ee688(0xf3)](_0x57144e),this['on'](_0x4ee688(0x10b),(_0xb715e4,_0x3bb93b,_0x205041)=>{const _0x512348=_0x4ee688;this[_0x512348(0x117)][_0x512348(0xd4)](),this[_0x512348(0xd6)][_0x512348(0xd4)](),_0x205041?(this[_0x512348(0x117)][_0x512348(0xf3)](_0x4f146d),this[_0x512348(0x117)][_0x512348(0xf3)](_0x536d35),this[_0x512348(0xd6)][_0x512348(0xf3)](_0x573d84),_0x573d84[_0x512348(0x127)][_0x512348(0xe3)]()):(this[_0x512348(0x117)][_0x512348(0xf3)](_0xc50165),this[_0x512348(0x117)][_0x512348(0xf3)](_0x57144e),this[_0x512348(0xd6)][_0x512348(0xf3)](this[_0x512348(0xf9)]));}),this[_0x4ee688(0xdf)]({'tag':'li','attributes':{'class':[_0x4ee688(0xd5),_0x1fbc29?_0x4ee688(0xe0):'',_0x4f66e6['if'](_0x4ee688(0xf7),_0x4ee688(0x104),_0x3b9887=>!_0x3b9887),_0x4f66e6['if'](_0x4ee688(0x108),_0x4ee688(0x126))],'role':_0x4ee688(0xea)},'children':[{'tag':_0x4ee688(0xf1),'attributes':{'class':[_0x4ee688(0x10f)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0xe6),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x1e1193=>!!_0x1e1193)]},'children':_0x1fbc29?[_0x51bb45]:[]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x111),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x1d18ea=>!_0x1d18ea)]},'children':[this[_0x4ee688(0xfb)]()]}]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x12a)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x114)]},'on':{'click':this[_0x4ee688(0x136)]['to'](_0x4ee688(0x10e))},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x132)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x100),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x393a32=>!!_0x393a32)]},'children':this[_0x4ee688(0xd6)]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x120),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x2e7012=>!_0x2e7012)]},'children':[{'text':_0x4f66e6['to'](_0x4ee688(0xf5),_0x57d2b4=>_0x57d2b4?_0x54350a(this[_0x4ee688(0xff)],AIChatHistoryListItemView[_0x4ee688(0x123)][_0x57d2b4]):'')}]}]},{'tag':_0x4ee688(0xf1),'attributes':{'class':[_0x4ee688(0x103)]},'children':[_0x51aab9]}]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x12c)]},'children':this[_0x4ee688(0x117)]}]}]}),this['on'](_0x4ee688(0x10e),()=>{const _0x11311a=_0x4ee688;this[_0x11311a(0x108)]||this[_0x11311a(0xee)](_0x11311a(0x10c),{'id':this['id']});});}[_0x5ee390(0xf6)](_0x31b3a1){const _0xef3714=_0x5ee390;this[_0xef3714(0xf9)][_0xef3714(0x102)]=_0x4888bc(_0x31b3a1);}[_0x5ee390(0x11e)](_0x209aac,_0x22b9c8){const _0x52761a=_0x5ee390;this[_0x52761a(0xd9)](_0x52761a(0xf5),_0x22b9c8?_0x209aac:null);}[_0x5ee390(0xda)](){const _0x4a5394=_0x5ee390,_0x28a882=new _0xbf1716();return _0x28a882[_0x4a5394(0xd9)]({'content':_0x40e710}),_0x28a882;}[_0x5ee390(0x124)](_0xba59af){const _0x21efd2=_0x5ee390,_0x478c38=new _0xcd9673(_0xba59af);return _0x478c38[_0x21efd2(0xd9)]({'label':_0x54350a(_0xba59af,_0x21efd2(0xe2)),'icon':_0x155656,'withText':!0x1,'tooltip':!0x0}),_0x478c38[_0x21efd2(0x12b)](_0x21efd2(0x113))['to'](this,_0x21efd2(0xdd)),_0x478c38['on'](_0x21efd2(0x10a),()=>{const _0x2224d7=_0x21efd2,_0x153074=!this[_0x2224d7(0xdd)];this[_0x2224d7(0xee)](_0x2224d7(0xec),{'id':this['id'],'pinned':_0x153074});}),_0x478c38;}[_0x5ee390(0x135)](){const _0x4f3984=_0x5ee390,_0x690753=_0x2da753(this[_0x4f3984(0xff)],_0x1c6f4c),_0x569a70=_0x690753[_0x4f3984(0x115)][_0x4f3984(0xe9)];_0x690753[_0x4f3984(0xd7)][_0x4f3984(0xd9)]({'label':_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0xef)),'icon':_0x758529}),_0x690753[_0x4f3984(0xeb)]='sw';const _0x3baaaf=new _0xcd9673(this[_0x4f3984(0xff)]);_0x3baaaf[_0x4f3984(0x125)]=_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0xfe)),_0x3baaaf[_0x4f3984(0xe8)]=!0x0,_0x3baaaf['on'](_0x4f3984(0x10a),()=>{const _0x48a015=_0x4f3984;this[_0x48a015(0x108)]=!0x0;});const _0x54677e=new _0xcd9673(this[_0x4f3984(0xff)]);_0x54677e[_0x4f3984(0x125)]=_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0x11f)),_0x54677e[_0x4f3984(0xe8)]=!0x0,_0x54677e['on'](_0x4f3984(0x10a),()=>{const _0x24a927=_0x4f3984;this[_0x24a927(0x133)](_0x54350a(this[_0x24a927(0xff)],_0x24a927(0x128)),this[_0x24a927(0x127)])[_0x24a927(0x119)](()=>{const _0x17025e=_0x24a927;this[_0x17025e(0xee)](_0x17025e(0x11c),{'id':this['id']});});});const _0x13a385=new _0x24019e(this[_0x4f3984(0xff)]),_0xe45a14=new _0x1d3c8b(this[_0x4f3984(0xff)]);_0xe45a14[_0x4f3984(0xe9)][_0x4f3984(0xf3)](_0x3baaaf);const _0x2f7b7b=new _0x1d3c8b(this[_0x4f3984(0xff)]);return _0x2f7b7b[_0x4f3984(0xe9)][_0x4f3984(0xf3)](_0x54677e),_0x13a385[_0x4f3984(0x116)][_0x4f3984(0x121)]([_0xe45a14,_0x2f7b7b]),_0x569a70[_0x4f3984(0xf3)](_0x13a385),_0x690753;}[_0x5ee390(0x11b)](_0x2af60b,_0x311d44){const _0x5350e8=_0x5ee390,_0x3d4c01=new _0xf7dba4(_0x2af60b),_0x1cc100=_0x3d4c01[_0x5350e8(0x136)];return _0x3d4c01[_0x5350e8(0x109)]=_0x311d44,_0x3d4c01[_0x5350e8(0x137)]({'on':{'keydown':_0x1cc100['to'](_0x29cf97=>{const _0x1e7223=_0x5350e8;_0x1e7223(0x11a)==_0x29cf97[_0x1e7223(0x12d)]&&this[_0x1e7223(0x118)](_0x3d4c01);})}}),_0x3d4c01;}[_0x5ee390(0x131)](_0x52a5f3,_0x679dc2){const _0x510d5c=_0x5ee390,_0x141039=new _0xcd9673(_0x52a5f3);return _0x141039[_0x510d5c(0xd9)]({'icon':_0x40e710,'withText':!0x1,'tooltip':_0x54350a(_0x52a5f3,_0x510d5c(0xe1))}),_0x141039[_0x510d5c(0x137)]({'attributes':{'class':[_0x510d5c(0xe5)]}}),_0x141039['on'](_0x510d5c(0x10a),()=>{const _0x2441c5=_0x510d5c;this[_0x2441c5(0x118)](_0x679dc2);}),_0x141039;}[_0x5ee390(0x118)](_0x1418fb){const _0x2de481=_0x5ee390,_0x977885=_0x1418fb[_0x2de481(0x127)][_0x2de481(0x109)]||'';this[_0x2de481(0xf9)][_0x2de481(0x102)]=_0x977885,this[_0x2de481(0x108)]=!0x1,this[_0x2de481(0xee)](_0x2de481(0xf4),{'id':this['id'],'title':_0x977885});}[_0x5ee390(0xfa)](_0x12a451,_0x5a39e2){const _0x16f3ff=_0x5ee390,_0x3b7e9=new _0xcd9673(_0x12a451);return _0x3b7e9[_0x16f3ff(0xd9)]({'icon':_0x58d142,'withText':!0x1,'tooltip':_0x54350a(_0x12a451,_0x16f3ff(0xdb))}),_0x3b7e9[_0x16f3ff(0x137)]({'attributes':{'class':[_0x16f3ff(0xe7)]}}),_0x3b7e9['on'](_0x16f3ff(0x10a),()=>{const _0x3f92e8=_0x16f3ff;this[_0x3f92e8(0x108)]=!0x1,_0x5a39e2[_0x3f92e8(0x109)]=this[_0x3f92e8(0xf9)][_0x3f92e8(0x102)]||'',this[_0x3f92e8(0xee)](_0x3f92e8(0x106));}),_0x3b7e9;}[_0x5ee390(0xfb)](){const _0x5b62b3=_0x5ee390,_0xfaa2ce=new _0x3336b2(_0x5b62b3(0xf8));return _0xfaa2ce[_0x5b62b3(0xf7)]=!0x0,_0xfaa2ce;}[_0x5ee390(0xdc)](_0x55d439){const _0x5776e5=_0x5ee390;return this[_0x5776e5(0xf9)]&&_0x5776e5(0x129)==typeof this[_0x5776e5(0xf9)][_0x5776e5(0x102)]&&this[_0x5776e5(0xf9)][_0x5776e5(0x102)][_0x5776e5(0xf0)](_0x55d439)?{'title':!0x0}:null;}[_0x5ee390(0xfc)](_0x58536e){const _0x5953ad=_0x5ee390;this[_0x5953ad(0xf9)][_0x5953ad(0xfc)](_0x58536e);}}function _0x10d4(){const _0x45254d=['isMatching','pinned','1059975dPkchY','setTemplate','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_PIN_BUTTON','focus','69CrXrtm','ck-confirm-view-submit','ck-ai-chat-history__item-check','ck-confirm-view-cancel','withText','children','listitem','panelPosition','setConversationPinned','246535LUkgUE','fire','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','match','span','4289472mhQOYz','add','editConversationTitle','loadingState','updateTitle','isVisible','tiny','_titleView','_createCancelEditButtonView','_createSpinnerView','highlightText','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_EDIT_NAME','locale','ck-ai-chat-history__item-title','65276EdbhfK','text','ck-ai-chat-history__item-date','ck-hidden','32229DipBsj','edit:cancel','4VSSWjD','isEdit','value','execute','change:isEdit','selectConversation','AI_CHAT_HISTORY_LOADING_RENAMING','click','ck-ai-chat-history__item-check-container','1640QicCIG','ck-ai-loader','AI_CHAT_HISTORY_LOADING_UNPINNING','isOn','ck-ai-chat-history__item-content','panelView','items','actions','_commitEditInputValue','then','Enter','_createEditInputView','removeConversation','AI_CHAT_HISTORY_LOADING_REMOVING','updateLoadingState','AI_CHAT_HISTORY_REMOVE','ck-ai-loader__text','addMany','createCollection','LOADING_LABELS','_createPinButtonView','label','ck-ai-chat-history__item--edit','element','AI_CHAT_HISTORY_REMOVE_CONFIRM','string','ck-ai-chat-history__item-row','bind','ck-ai-chat-history__item-actions','key','512922BsPcvu','div','22attktc','_createAcceptEditButtonView','ck-ai-chat-history__item-main-content','showConfirm','985836bwTMBA','_createMenuDropdownView','bindTemplate','extendTemplate','clear','ck-ai-chat-history__item','mainContent','buttonView','42DEigIJ','set','_createCheckView','AI_CHAT_HISTORY_CANCEL'];_0x10d4=function(){return _0x45254d;};return _0x10d4();}
23
+ function _0x4189(_0x45f60f,_0x412faa){const _0x1a6065=_0x1a60();return _0x4189=function(_0x418936,_0x480330){_0x418936=_0x418936-0x1c3;let _0x348e5f=_0x1a6065[_0x418936];return _0x348e5f;},_0x4189(_0x45f60f,_0x412faa);}const _0x2fae02=_0x4189;(function(_0x14e67b,_0x332e69){const _0x5cf62e=_0x4189,_0x28a29d=_0x14e67b();while(!![]){try{const _0x7df415=parseInt(_0x5cf62e(0x1db))/0x1*(parseInt(_0x5cf62e(0x211))/0x2)+parseInt(_0x5cf62e(0x1c9))/0x3*(-parseInt(_0x5cf62e(0x1fc))/0x4)+parseInt(_0x5cf62e(0x1f2))/0x5*(-parseInt(_0x5cf62e(0x1fb))/0x6)+parseInt(_0x5cf62e(0x221))/0x7+-parseInt(_0x5cf62e(0x1ff))/0x8+-parseInt(_0x5cf62e(0x21f))/0x9+parseInt(_0x5cf62e(0x220))/0xa;if(_0x7df415===_0x332e69)break;else _0x28a29d['push'](_0x28a29d['shift']());}catch(_0x3091cc){_0x28a29d['push'](_0x28a29d['shift']());}}}(_0x1a60,0xadec8));function _0x1a60(){const _0x5ee34b=['28306iRINTt','set','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','then','ck-ai-chat-history__item-check','ck-ai-loader__text','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-chat-history__item--active','panelView','bind','clear','_createEditInputView','addMany','ck-hidden','AI_CHAT_HISTORY_REMOVE_CONFIRM','div','listitem','span','match','isMatching','_createCancelEditButtonView','3114380trawHZ','showConfirm','isOn','loadingState','ck-ai-chat-history__item-row','locale','LOADING_LABELS','edit:cancel','change:isEdit','12zdixwu','28116yYerju','isVisible','ck-ai-loader','6059344zSFcuO','ck-ai-chat-history__item--edit','buttonView','ck-ai-chat-history__item-date','text','_createPinButtonView','ck-ai-chat-history__item-content','add','mainContent','Enter','_commitEditInputValue','label','panelPosition','bindTemplate','tiny','items','AI_CHAT_HISTORY_PIN_BUTTON','pinned','88TbBkhM','removeConversation','isEdit','highlightText','fire','extendTemplate','ck-confirm-view-submit','AI_CHAT_HISTORY_LOADING_PINNING','_createAcceptEditButtonView','withText','ck-ai-chat-history__item-main-content','key','AI_CHAT_HISTORY_EDIT_NAME','_createCheckView','9153153cAAgPL','20551030ZhATTt','7009527fuhrWp','updateTitle','ck-ai-chat-history__item','click','_createMenuDropdownView','children','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-actions','actions','element','243oJNfee','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_CANCEL','string','createCollection','selectConversation','updateLoadingState','_titleView','ck-confirm-view-cancel','execute','setConversationPinned','AI_CHAT_HISTORY_LOADING_REMOVING','_createSpinnerView','setTemplate','focus','value','editConversationTitle'];_0x1a60=function(){return _0x5ee34b;};return _0x1a60();}import{ListItemView as _0x34eda4,HighlightedTextView as _0x4e2b00,ButtonView as _0x26eb2b,ListView as _0x199220,IconView as _0x313751,createDropdown as _0x5ba9b9,InputTextView as _0x50dc56}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x40cbb9,IconPin as _0x5471c7,IconCheck as _0x5a8465,IconCancel as _0xc312d8}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x200ef2,ConfirmMixin as _0x234898}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xdc4994}from'es-toolkit/compat';import{AISpinnerView as _0x276c40}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x456c4e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x234898(_0x34eda4){['id'];static [_0x2fae02(0x1f8)]={'remove':_0x2fae02(0x1d5),'rename':_0x2fae02(0x1c5),'pin':_0x2fae02(0x218),'unpin':_0x2fae02(0x1e3)};[_0x2fae02(0x1c7)];[_0x2fae02(0x207)];[_0x2fae02(0x1d1)];constructor(_0x37e899,_0x46c89e){const _0x49ff33=_0x2fae02;super(_0x37e899);const _0x711183=this[_0x49ff33(0x20c)];this[_0x49ff33(0x1dc)](_0x49ff33(0x213),!0x1),this[_0x49ff33(0x1dc)](_0x49ff33(0x1fd),!0x0),this[_0x49ff33(0x1dc)](_0x49ff33(0x210),!!_0x46c89e[_0x49ff33(0x210)]),this[_0x49ff33(0x1dc)](_0x49ff33(0x1f5),null),this['id']=_0x46c89e['id'];const {title:_0x5c6631,createdAt:_0x307c1b,active:_0x439571=!0x1}=_0x46c89e;this[_0x49ff33(0x1d1)]=new _0x4e2b00(),this[_0x49ff33(0x1d1)][_0x49ff33(0x203)]=_0x5c6631,this[_0x49ff33(0x1d1)][_0x49ff33(0x216)]({'attributes':{'class':[_0x49ff33(0x1e2)]}});const _0x44008e=this[_0x49ff33(0x21e)](),_0x19772d=this[_0x49ff33(0x204)](_0x37e899),_0x3c3e28=this[_0x49ff33(0x1c3)](),_0x11bdd5=this[_0x49ff33(0x1e8)](_0x37e899,_0x5c6631),_0x3a9beb=this[_0x49ff33(0x219)](_0x37e899,_0x11bdd5),_0x34d791=this[_0x49ff33(0x1f1)](_0x37e899,_0x11bdd5);this[_0x49ff33(0x1c7)]=this[_0x49ff33(0x1ce)](),this[_0x49ff33(0x207)]=this[_0x49ff33(0x1ce)](),this[_0x49ff33(0x207)][_0x49ff33(0x206)](this[_0x49ff33(0x1d1)]),this[_0x49ff33(0x1c7)][_0x49ff33(0x206)](_0x19772d),this[_0x49ff33(0x1c7)][_0x49ff33(0x206)](_0x3c3e28),this['on'](_0x49ff33(0x1fa),(_0x37d252,_0x4b623b,_0x3463b0)=>{const _0xff1eb8=_0x49ff33;this[_0xff1eb8(0x1c7)][_0xff1eb8(0x1e7)](),this[_0xff1eb8(0x207)][_0xff1eb8(0x1e7)](),_0x3463b0?(this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x3a9beb),this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x34d791),this[_0xff1eb8(0x207)][_0xff1eb8(0x206)](_0x11bdd5),_0x11bdd5[_0xff1eb8(0x1c8)][_0xff1eb8(0x1d8)]()):(this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x19772d),this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x3c3e28),this[_0xff1eb8(0x207)][_0xff1eb8(0x206)](this[_0xff1eb8(0x1d1)]));}),this[_0x49ff33(0x1d7)]({'tag':'li','attributes':{'class':[_0x49ff33(0x223),_0x439571?_0x49ff33(0x1e4):'',_0x711183['if'](_0x49ff33(0x1fd),_0x49ff33(0x1ea),_0x5b16c7=>!_0x5b16c7),_0x711183['if'](_0x49ff33(0x213),_0x49ff33(0x200))],'role':_0x49ff33(0x1ed)},'children':[{'tag':_0x49ff33(0x1ee),'attributes':{'class':[_0x49ff33(0x1cb)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e0),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x1e984f=>!!_0x1e984f)]},'children':_0x439571?[_0x44008e]:[]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1fe),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x4a6281=>!_0x4a6281)]},'children':[this[_0x49ff33(0x1d6)]()]}]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1f6)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x205)]},'on':{'click':this[_0x49ff33(0x20c)]['to'](_0x49ff33(0x224))},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x21b)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e2),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x3d57c3=>!!_0x3d57c3)]},'children':this[_0x49ff33(0x207)]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e1),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x52cab2=>!_0x52cab2)]},'children':[{'text':_0x711183['to'](_0x49ff33(0x1f5),_0x3755bb=>_0x3755bb?_0x456c4e(this[_0x49ff33(0x1f7)],AIChatHistoryListItemView[_0x49ff33(0x1f8)][_0x3755bb]):'')}]}]},{'tag':_0x49ff33(0x1ee),'attributes':{'class':[_0x49ff33(0x202)]},'children':[_0x307c1b]}]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1c6)]},'children':this[_0x49ff33(0x1c7)]}]}]}),this['on'](_0x49ff33(0x224),()=>{const _0x5ee292=_0x49ff33;this[_0x5ee292(0x213)]||this[_0x5ee292(0x215)](_0x5ee292(0x1cf),{'id':this['id']});});}[_0x2fae02(0x222)](_0x3b4e10){const _0x5ce139=_0x2fae02;this[_0x5ce139(0x1d1)][_0x5ce139(0x203)]=_0xdc4994(_0x3b4e10);}[_0x2fae02(0x1d0)](_0x176c75,_0x5a2517){const _0x3f1945=_0x2fae02;this[_0x3f1945(0x1dc)](_0x3f1945(0x1f5),_0x5a2517?_0x176c75:null);}[_0x2fae02(0x21e)](){const _0x249b6d=_0x2fae02,_0x3bc3f1=new _0x313751();return _0x3bc3f1[_0x249b6d(0x1dc)]({'content':_0x5a8465}),_0x3bc3f1;}[_0x2fae02(0x204)](_0x45c90f){const _0x61bb72=_0x2fae02,_0x5acf84=new _0x26eb2b(_0x45c90f);return _0x5acf84[_0x61bb72(0x1dc)]({'label':_0x456c4e(_0x45c90f,_0x61bb72(0x20f)),'icon':_0x5471c7,'withText':!0x1,'tooltip':!0x0}),_0x5acf84[_0x61bb72(0x1e6)](_0x61bb72(0x1f4))['to'](this,_0x61bb72(0x210)),_0x5acf84['on'](_0x61bb72(0x1d3),()=>{const _0x155682=_0x61bb72,_0x5c76e3=!this[_0x155682(0x210)];this[_0x155682(0x215)](_0x155682(0x1d4),{'id':this['id'],'pinned':_0x5c76e3});}),_0x5acf84;}[_0x2fae02(0x1c3)](){const _0x4838bd=_0x2fae02,_0x35be4d=_0x5ba9b9(this[_0x4838bd(0x1f7)],_0x200ef2),_0x26ab8e=_0x35be4d[_0x4838bd(0x1e5)][_0x4838bd(0x1c4)];_0x35be4d[_0x4838bd(0x201)][_0x4838bd(0x1dc)]({'label':_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x1de)),'icon':_0x40cbb9}),_0x35be4d[_0x4838bd(0x20b)]='sw';const _0x57c025=new _0x26eb2b(this[_0x4838bd(0x1f7)]);_0x57c025[_0x4838bd(0x20a)]=_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x21d)),_0x57c025[_0x4838bd(0x21a)]=!0x0,_0x57c025['on'](_0x4838bd(0x1d3),()=>{const _0x29ddeb=_0x4838bd;this[_0x29ddeb(0x213)]=!0x0;});const _0x2cac9c=new _0x26eb2b(this[_0x4838bd(0x1f7)]);_0x2cac9c[_0x4838bd(0x20a)]=_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x1ca)),_0x2cac9c[_0x4838bd(0x21a)]=!0x0,_0x2cac9c['on'](_0x4838bd(0x1d3),()=>{const _0x20721d=_0x4838bd;this[_0x20721d(0x1f3)](_0x456c4e(this[_0x20721d(0x1f7)],_0x20721d(0x1eb)),this[_0x20721d(0x1c8)])[_0x20721d(0x1df)](()=>{const _0x27d1d0=_0x20721d;this[_0x27d1d0(0x215)](_0x27d1d0(0x212),{'id':this['id']});});});const _0x5c058a=new _0x199220(this[_0x4838bd(0x1f7)]),_0xccd153=new _0x34eda4(this[_0x4838bd(0x1f7)]);_0xccd153[_0x4838bd(0x1c4)][_0x4838bd(0x206)](_0x57c025);const _0x3f5798=new _0x34eda4(this[_0x4838bd(0x1f7)]);return _0x3f5798[_0x4838bd(0x1c4)][_0x4838bd(0x206)](_0x2cac9c),_0x5c058a[_0x4838bd(0x20e)][_0x4838bd(0x1e9)]([_0xccd153,_0x3f5798]),_0x26ab8e[_0x4838bd(0x206)](_0x5c058a),_0x35be4d;}[_0x2fae02(0x1e8)](_0x4ee196,_0x3e4605){const _0x19871b=_0x2fae02,_0x1eadec=new _0x50dc56(_0x4ee196),_0x354287=_0x1eadec[_0x19871b(0x20c)];return _0x1eadec[_0x19871b(0x1d9)]=_0x3e4605,_0x1eadec[_0x19871b(0x216)]({'on':{'keydown':_0x354287['to'](_0x23f0b9=>{const _0xe8edc2=_0x19871b;_0xe8edc2(0x208)==_0x23f0b9[_0xe8edc2(0x21c)]&&this[_0xe8edc2(0x209)](_0x1eadec);})}}),_0x1eadec;}[_0x2fae02(0x219)](_0x15d971,_0x258f7f){const _0x46128b=_0x2fae02,_0x58ef99=new _0x26eb2b(_0x15d971);return _0x58ef99[_0x46128b(0x1dc)]({'icon':_0x5a8465,'withText':!0x1,'tooltip':_0x456c4e(_0x15d971,_0x46128b(0x1dd))}),_0x58ef99[_0x46128b(0x216)]({'attributes':{'class':[_0x46128b(0x217)]}}),_0x58ef99['on'](_0x46128b(0x1d3),()=>{const _0x406c12=_0x46128b;this[_0x406c12(0x209)](_0x258f7f);}),_0x58ef99;}[_0x2fae02(0x209)](_0x284a4d){const _0x95621c=_0x2fae02,_0x4978eb=_0x284a4d[_0x95621c(0x1c8)][_0x95621c(0x1d9)]||'';this[_0x95621c(0x1d1)][_0x95621c(0x203)]=_0x4978eb,this[_0x95621c(0x213)]=!0x1,this[_0x95621c(0x215)](_0x95621c(0x1da),{'id':this['id'],'title':_0x4978eb});}[_0x2fae02(0x1f1)](_0x2788ac,_0x3a3d6d){const _0x1d9dee=_0x2fae02,_0x282c45=new _0x26eb2b(_0x2788ac);return _0x282c45[_0x1d9dee(0x1dc)]({'icon':_0xc312d8,'withText':!0x1,'tooltip':_0x456c4e(_0x2788ac,_0x1d9dee(0x1cc))}),_0x282c45[_0x1d9dee(0x216)]({'attributes':{'class':[_0x1d9dee(0x1d2)]}}),_0x282c45['on'](_0x1d9dee(0x1d3),()=>{const _0x1feb24=_0x1d9dee;this[_0x1feb24(0x213)]=!0x1,_0x3a3d6d[_0x1feb24(0x1d9)]=this[_0x1feb24(0x1d1)][_0x1feb24(0x203)]||'',this[_0x1feb24(0x215)](_0x1feb24(0x1f9));}),_0x282c45;}[_0x2fae02(0x1d6)](){const _0x5c7e4e=_0x2fae02,_0x4c28dc=new _0x276c40(_0x5c7e4e(0x20d));return _0x4c28dc[_0x5c7e4e(0x1fd)]=!0x0,_0x4c28dc;}[_0x2fae02(0x1f0)](_0x115655){const _0x53ffd5=_0x2fae02;return this[_0x53ffd5(0x1d1)]&&_0x53ffd5(0x1cd)==typeof this[_0x53ffd5(0x1d1)][_0x53ffd5(0x203)]&&this[_0x53ffd5(0x1d1)][_0x53ffd5(0x203)][_0x53ffd5(0x1ef)](_0x115655)?{'title':!0x0}:null;}[_0x2fae02(0x214)](_0xa80152){const _0x3b8fc2=_0x2fae02;this[_0x3b8fc2(0x1d1)][_0x3b8fc2(0x214)](_0xa80152);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43e1f8=_0x3fb2;(function(_0x2445bb,_0x84f66){const _0x2d272f=_0x3fb2,_0xee0755=_0x2445bb();while(!![]){try{const _0x5a2595=-parseInt(_0x2d272f(0xdb))/0x1+-parseInt(_0x2d272f(0xe4))/0x2+-parseInt(_0x2d272f(0xca))/0x3+parseInt(_0x2d272f(0xcb))/0x4+parseInt(_0x2d272f(0xcf))/0x5+-parseInt(_0x2d272f(0xd7))/0x6*(parseInt(_0x2d272f(0xda))/0x7)+-parseInt(_0x2d272f(0xcc))/0x8*(-parseInt(_0x2d272f(0xdf))/0x9);if(_0x5a2595===_0x84f66)break;else _0xee0755['push'](_0xee0755['shift']());}catch(_0x1af279){_0xee0755['push'](_0xee0755['shift']());}}}(_0x4c98,0x8b05f));function _0x4c98(){const _0x388fdf=['title','length','splice','823150ToENBy','bindTemplate','find','highlightText','itemsViews','_itemsListView','2396166MGSscg','4201252nlmaqS','72bDbgwC','isVisible','removeItem','2443115SPfXFS','filter','div','getItem','addMany','ck-ai-chat-history__section-title','ck-hidden','remove','6093432zzxvnB','setTemplate','isMatching','7iuibHg','267589eijcDD','ck-ai-chat-history__section','indexOf','set','1523961NyQCqv','items'];_0x4c98=function(){return _0x388fdf;};return _0x4c98();}import{ListItemView as _0x1291bb,View as _0x3997d5,ListView as _0xe788f8}from'ckeditor5/src/ui.js';function _0x3fb2(_0x12cf8f,_0x2d478e){const _0x4c9861=_0x4c98();return _0x3fb2=function(_0x3fb2a7,_0x9ee425){_0x3fb2a7=_0x3fb2a7-0xc9;let _0x439068=_0x4c9861[_0x3fb2a7];return _0x439068;},_0x3fb2(_0x12cf8f,_0x2d478e);}export class AIChatHistoryListView extends _0x1291bb{[_0x43e1f8(0xe1)];[_0x43e1f8(0xe8)];[_0x43e1f8(0xc9)];constructor(_0x2c7c54,{title:_0x1055dc,items:_0x57a981}){const _0x52be58=_0x43e1f8;super(_0x2c7c54);const _0x46a49e=this[_0x52be58(0xe5)];this[_0x52be58(0xde)](_0x52be58(0xcd),!0x0),this[_0x52be58(0xe1)]=_0x1055dc,this[_0x52be58(0xe8)]=_0x57a981;const _0x442e92=new _0x3997d5(_0x2c7c54);_0x442e92[_0x52be58(0xd8)]({'tag':_0x52be58(0xd1),'attributes':{'class':[_0x52be58(0xd4)]},'children':[this[_0x52be58(0xe1)]]}),this[_0x52be58(0xc9)]=new _0xe788f8(_0x2c7c54),this[_0x52be58(0xc9)][_0x52be58(0xe0)][_0x52be58(0xd3)](this[_0x52be58(0xe8)]),this[_0x52be58(0xd8)]({'tag':'li','attributes':{'class':[_0x52be58(0xdc),_0x46a49e['if'](_0x52be58(0xcd),_0x52be58(0xd5),_0x10fb89=>!_0x10fb89)]},'children':[_0x442e92,this[_0x52be58(0xc9)]]});}[_0x43e1f8(0xd0)](_0x2b1eff){const _0xe1ab42=_0x43e1f8,_0x231285=this[_0xe1ab42(0xe8)][_0xe1ab42(0xe2)];let _0x2329b7=0x0;for(const _0xbaff34 of this[_0xe1ab42(0xe8)]){if(_0x2b1eff){const _0x3607b7=_0xbaff34[_0xe1ab42(0xd9)](_0x2b1eff);_0xbaff34[_0xe1ab42(0xcd)]=!!_0x3607b7,_0xbaff34[_0xe1ab42(0xe7)](_0x2b1eff);}else _0xbaff34[_0xe1ab42(0xcd)]=!0x0,_0xbaff34[_0xe1ab42(0xe7)](null);_0xbaff34[_0xe1ab42(0xcd)]&&_0x2329b7++;}return this[_0xe1ab42(0xcd)]=_0x2329b7>0x0,{'resultsCount':_0x2329b7,'totalItemsCount':_0x231285};}[_0x43e1f8(0xd2)](_0x23dd0d){const _0x27e2af=_0x43e1f8;return this[_0x27e2af(0xe8)][_0x27e2af(0xe6)](_0x222cf3=>_0x222cf3['id']===_0x23dd0d);}[_0x43e1f8(0xce)](_0x221fe9){const _0x3f5257=_0x43e1f8,_0x54eaea=this[_0x3f5257(0xe8)][_0x3f5257(0xdd)](_0x221fe9);-0x1!==_0x54eaea&&(this[_0x3f5257(0xe8)][_0x3f5257(0xe3)](_0x54eaea,0x1),this[_0x3f5257(0xc9)][_0x3f5257(0xe0)][_0x3f5257(0xd6)](_0x221fe9));}}
23
+ const _0x3198db=_0x1485;function _0x2a11(){const _0x195ef3=['361613LGBDiH','splice','_itemsListView','itemsViews','set','392168ASaAOG','36QrApIw','1168314xEnlRQ','removeItem','setTemplate','title','find','ck-ai-chat-history__section','div','2EXSwvS','510418KoUQqe','66zTREiE','1347945ciKpiv','1385960cEIzop','ck-ai-chat-history__section-title','1692644BcFSqS','length','isVisible','ck-hidden','bindTemplate','isMatching','highlightText','indexOf','getItem','addMany','items','remove','filter'];_0x2a11=function(){return _0x195ef3;};return _0x2a11();}(function(_0x513f2d,_0x24f7e1){const _0x5ab6e5=_0x1485,_0x5f218b=_0x513f2d();while(!![]){try{const _0x2e8d62=-parseInt(_0x5ab6e5(0x124))/0x1*(parseInt(_0x5ab6e5(0x125))/0x2)+parseInt(_0x5ab6e5(0x11d))/0x3+-parseInt(_0x5ab6e5(0x12a))/0x4+parseInt(_0x5ab6e5(0x127))/0x5+-parseInt(_0x5ab6e5(0x126))/0x6*(-parseInt(_0x5ab6e5(0x116))/0x7)+-parseInt(_0x5ab6e5(0x11b))/0x8*(-parseInt(_0x5ab6e5(0x11c))/0x9)+-parseInt(_0x5ab6e5(0x128))/0xa;if(_0x2e8d62===_0x24f7e1)break;else _0x5f218b['push'](_0x5f218b['shift']());}catch(_0x1e2f58){_0x5f218b['push'](_0x5f218b['shift']());}}}(_0x2a11,0x55bd1));function _0x1485(_0x332d5d,_0x34697d){const _0x2a11fe=_0x2a11();return _0x1485=function(_0x14859b,_0x17ec87){_0x14859b=_0x14859b-0x114;let _0x19ea0d=_0x2a11fe[_0x14859b];return _0x19ea0d;},_0x1485(_0x332d5d,_0x34697d);}import{ListItemView as _0x55bdab,View as _0x5224bf,ListView as _0x4ea0ac}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x55bdab{[_0x3198db(0x120)];[_0x3198db(0x119)];[_0x3198db(0x118)];constructor(_0x443439,{title:_0xe1e3e3,items:_0x5e81d3}){const _0x426fe7=_0x3198db;super(_0x443439);const _0xcdaf9=this[_0x426fe7(0x12e)];this[_0x426fe7(0x11a)](_0x426fe7(0x12c),!0x0),this[_0x426fe7(0x120)]=_0xe1e3e3,this[_0x426fe7(0x119)]=_0x5e81d3;const _0x483906=new _0x5224bf(_0x443439);_0x483906[_0x426fe7(0x11f)]({'tag':_0x426fe7(0x123),'attributes':{'class':[_0x426fe7(0x129)]},'children':[this[_0x426fe7(0x120)]]}),this[_0x426fe7(0x118)]=new _0x4ea0ac(_0x443439),this[_0x426fe7(0x118)][_0x426fe7(0x134)][_0x426fe7(0x133)](this[_0x426fe7(0x119)]),this[_0x426fe7(0x11f)]({'tag':'li','attributes':{'class':[_0x426fe7(0x122),_0xcdaf9['if'](_0x426fe7(0x12c),_0x426fe7(0x12d),_0x261fb7=>!_0x261fb7)]},'children':[_0x483906,this[_0x426fe7(0x118)]]});}[_0x3198db(0x115)](_0x4ba667){const _0x1acc8f=_0x3198db,_0xa0111f=this[_0x1acc8f(0x119)][_0x1acc8f(0x12b)];let _0x849c43=0x0;for(const _0x4613f0 of this[_0x1acc8f(0x119)]){if(_0x4ba667){const _0x296520=_0x4613f0[_0x1acc8f(0x12f)](_0x4ba667);_0x4613f0[_0x1acc8f(0x12c)]=!!_0x296520,_0x4613f0[_0x1acc8f(0x130)](_0x4ba667);}else _0x4613f0[_0x1acc8f(0x12c)]=!0x0,_0x4613f0[_0x1acc8f(0x130)](null);_0x4613f0[_0x1acc8f(0x12c)]&&_0x849c43++;}return this[_0x1acc8f(0x12c)]=_0x849c43>0x0,{'resultsCount':_0x849c43,'totalItemsCount':_0xa0111f};}[_0x3198db(0x132)](_0x5740c5){const _0x509175=_0x3198db;return this[_0x509175(0x119)][_0x509175(0x121)](_0x1f06f5=>_0x1f06f5['id']===_0x5740c5);}[_0x3198db(0x11e)](_0x3961bd){const _0x2ab2f2=_0x3198db,_0x491830=this[_0x2ab2f2(0x119)][_0x2ab2f2(0x131)](_0x3961bd);-0x1!==_0x491830&&(this[_0x2ab2f2(0x119)][_0x2ab2f2(0x117)](_0x491830,0x1),this[_0x2ab2f2(0x118)][_0x2ab2f2(0x134)][_0x2ab2f2(0x114)](_0x3961bd));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b785e=_0x2d2c;(function(_0x17b981,_0x25f201){const _0x3da4f2=_0x2d2c,_0x401807=_0x17b981();while(!![]){try{const _0x1cb314=-parseInt(_0x3da4f2(0x1f7))/0x1*(parseInt(_0x3da4f2(0x1fd))/0x2)+-parseInt(_0x3da4f2(0x1f2))/0x3*(parseInt(_0x3da4f2(0x1f5))/0x4)+-parseInt(_0x3da4f2(0x201))/0x5*(-parseInt(_0x3da4f2(0x1fc))/0x6)+-parseInt(_0x3da4f2(0x1f3))/0x7*(-parseInt(_0x3da4f2(0x1fb))/0x8)+-parseInt(_0x3da4f2(0x1f9))/0x9+parseInt(_0x3da4f2(0x1ff))/0xa+parseInt(_0x3da4f2(0x1f8))/0xb;if(_0x1cb314===_0x25f201)break;else _0x401807['push'](_0x401807['shift']());}catch(_0x4fda53){_0x401807['push'](_0x401807['shift']());}}}(_0x4d25,0x46704));import{ListView as _0x5b3b0f}from'ckeditor5/src/ui.js';function _0x4d25(){const _0x43a205=['406125KJDneF','items','120424Egrvbn','30330FALCzl','124cuPrBI','addMany','1001600cNZctb','sections','45QMNDAi','filter','699315ZHZNIA','182TBIbfv','extendTemplate','8dUiHLs','ck-ai-chat-history__sections','96cLRsHM','2956470pBXAnB'];_0x4d25=function(){return _0x43a205;};return _0x4d25();}function _0x2d2c(_0x161c39,_0x2c77be){const _0x4d25d3=_0x4d25();return _0x2d2c=function(_0x2d2cd2,_0x426746){_0x2d2cd2=_0x2d2cd2-0x1f2;let _0x26b5a6=_0x4d25d3[_0x2d2cd2];return _0x26b5a6;},_0x2d2c(_0x161c39,_0x2c77be);}export class AIChatHistorySectionListView extends _0x5b3b0f{[_0x4b785e(0x200)];constructor(_0x5f529f,_0x40e020){const _0x46c6df=_0x4b785e;super(_0x5f529f),this[_0x46c6df(0x200)]=_0x40e020,this[_0x46c6df(0x1fa)][_0x46c6df(0x1fe)](this[_0x46c6df(0x200)]),this[_0x46c6df(0x1f4)]({'attributes':{'class':[_0x46c6df(0x1f6)]}});}[_0x4b785e(0x202)](_0x5265c8){const _0x5b9b41=_0x4b785e;let _0x3605cd=0x0,_0xb637b7=0x0;for(const _0x1cf3c5 of this[_0x5b9b41(0x200)]){const {resultsCount:_0xcc656f,totalItemsCount:_0x267b13}=_0x1cf3c5[_0x5b9b41(0x202)](_0x5265c8);_0x3605cd+=_0xcc656f,_0xb637b7+=_0x267b13;}return{'resultsCount':_0x3605cd,'totalItemsCount':_0xb637b7};}}
23
+ const _0x1e282c=_0x45ab;(function(_0x3ef094,_0x567bb5){const _0x41b99e=_0x45ab,_0xabf7f8=_0x3ef094();while(!![]){try{const _0x3c414a=-parseInt(_0x41b99e(0x184))/0x1*(-parseInt(_0x41b99e(0x183))/0x2)+-parseInt(_0x41b99e(0x179))/0x3*(parseInt(_0x41b99e(0x185))/0x4)+parseInt(_0x41b99e(0x180))/0x5*(parseInt(_0x41b99e(0x177))/0x6)+-parseInt(_0x41b99e(0x186))/0x7*(parseInt(_0x41b99e(0x17e))/0x8)+parseInt(_0x41b99e(0x181))/0x9+-parseInt(_0x41b99e(0x17d))/0xa+parseInt(_0x41b99e(0x178))/0xb*(parseInt(_0x41b99e(0x17b))/0xc);if(_0x3c414a===_0x567bb5)break;else _0xabf7f8['push'](_0xabf7f8['shift']());}catch(_0x238002){_0xabf7f8['push'](_0xabf7f8['shift']());}}}(_0x4578,0xe74f0));function _0x45ab(_0x433151,_0x301cf){const _0x4578cf=_0x4578();return _0x45ab=function(_0x45ab92,_0x57ec1c){_0x45ab92=_0x45ab92-0x177;let _0x525652=_0x4578cf[_0x45ab92];return _0x525652;},_0x45ab(_0x433151,_0x301cf);}import{ListView as _0x4db15b}from'ckeditor5/src/ui.js';function _0x4578(){const _0x1652c4=['8QpXzfy','258419RYkJic','4bPCQWG','204022gCTNsl','sections','addMany','4875918xueSyN','22jiVpeO','2944533UZCqjj','ck-ai-chat-history__sections','5079372rImVAx','items','7412410PwdsJO','264QxhWOF','filter','10mEAveZ','1138194wqoTcL','extendTemplate'];_0x4578=function(){return _0x1652c4;};return _0x4578();}export class AIChatHistorySectionListView extends _0x4db15b{[_0x1e282c(0x187)];constructor(_0x5bbc04,_0x2d7f98){const _0x5c4d44=_0x1e282c;super(_0x5bbc04),this[_0x5c4d44(0x187)]=_0x2d7f98,this[_0x5c4d44(0x17c)][_0x5c4d44(0x188)](this[_0x5c4d44(0x187)]),this[_0x5c4d44(0x182)]({'attributes':{'class':[_0x5c4d44(0x17a)]}});}[_0x1e282c(0x17f)](_0x2aec2d){const _0x71daa6=_0x1e282c;let _0x1f369a=0x0,_0x3879d2=0x0;for(const _0x3546be of this[_0x71daa6(0x187)]){const {resultsCount:_0x185687,totalItemsCount:_0x54ac62}=_0x3546be[_0x71daa6(0x17f)](_0x2aec2d);_0x1f369a+=_0x185687,_0x3879d2+=_0x54ac62;}return{'resultsCount':_0x1f369a,'totalItemsCount':_0x3879d2};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c3cb6=_0x4247;(function(_0x493d75,_0x1f6b24){const _0x4ddb8f=_0x4247,_0x577fc1=_0x493d75();while(!![]){try{const _0x35df46=parseInt(_0x4ddb8f(0xff))/0x1+-parseInt(_0x4ddb8f(0xe7))/0x2+-parseInt(_0x4ddb8f(0xe6))/0x3*(-parseInt(_0x4ddb8f(0xf1))/0x4)+parseInt(_0x4ddb8f(0x10f))/0x5+parseInt(_0x4ddb8f(0x124))/0x6*(-parseInt(_0x4ddb8f(0x100))/0x7)+-parseInt(_0x4ddb8f(0x107))/0x8+parseInt(_0x4ddb8f(0x11b))/0x9;if(_0x35df46===_0x1f6b24)break;else _0x577fc1['push'](_0x577fc1['shift']());}catch(_0x2c9fd0){_0x577fc1['push'](_0x577fc1['shift']());}}}(_0x2da6,0x5a501));function _0x4247(_0x3bf7d9,_0x455119){const _0x2da603=_0x2da6();return _0x4247=function(_0x424709,_0x35299c){_0x424709=_0x424709-0xe5;let _0x2c0eb6=_0x2da603[_0x424709];return _0x2c0eb6;},_0x4247(_0x3bf7d9,_0x455119);}import{View as _0x20742c,SearchTextView as _0x29e9db,FormHeaderView as _0x41e7c1,ButtonView as _0x28588b}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1361af,IconCancel as _0x11c6d3,IconPlus as _0x393a37}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x222660}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x3bf649}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5a9464}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1fcac4}from'../aichathistoryui.js';import{AISkeletonView as _0x47f0d9,SKELETON_DEFINITIONS as _0x3d52f5}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x41953d}from'../../aicore/utils/createresizebutton.js';function _0x2da6(){const _0x48e31a=['openChat','bind','updateTitle','updateLoadingState','4192569cHhIYY','remove','getItem','AI_CHAT_HISTORY_SEARCH_LABEL','itemsViews','errorMessage','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','aiHistory','updateItemLoadingState','6DRKvUp','set','ck-ai-chat-history__empty','_createListItemViews','bindTemplate','execute','locale','element','isMaximized','search','indexOf','render','_createEmptyStateView','title','_createErrorView','push','AI_CHAT_HISTORY_EMPTY_MESSAGE','searchView','sections','isLoading','emptyView','delegate','length','skeletonView','resizeButton','isEmptyViewVisible','ck-ai-chat-history__empty-message','ck-ai-chat-history__content','136281bqbHRe','1042188PCHjap','hasItems','setTemplate','queryView','some','updateItemTitle','ck-ai-chat-error','fire','ltr','clear','20PuPvqi','_createSearchView','ck-hidden','splice','sectionsView','ck-ai-chat-error__dismiss-button','removeItem','isSearchViewVisible','items','value','ck-ai-chat__start-conversation','ck-rounded-corners','isVisible','AI_CHAT_HISTORY_HEADING','595952KBvBXR','3110443GdqzDc','ck-ai-chat-history','_updateViewVisibility','fieldView','extendTemplate','div','errorView','1441688NjysDG','change:errorMessage','updateHistoryItemsWithCategories','add','addMany','ck-reset_all','children','AI_CHAT_LABEL_NEW_CHAT','1133235VtFZrU','_createSkeletonView','change:hasItems','ck-ai-header\x20ck-ai-header_history','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','removeHistoryItem','_refreshSearch','change:isLoading'];_0x2da6=function(){return _0x48e31a;};return _0x2da6();}import{getTranslation as _0x243ea6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x20742c{[_0x5c3cb6(0x135)];[_0x5c3cb6(0x106)];[_0x5c3cb6(0x13b)];[_0x5c3cb6(0x138)];[_0x5c3cb6(0xf5)];[_0x5c3cb6(0x13c)];constructor(_0x3fde89,_0x53e1e5){const _0x1f24b6=_0x5c3cb6;super(_0x3fde89),this[_0x1f24b6(0x125)](_0x1f24b6(0xe8),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0x137),!0x0),this[_0x1f24b6(0x125)](_0x1f24b6(0x120),''),this[_0x1f24b6(0x125)](_0x1f24b6(0x12c),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0xf8),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0x13d),!0x1);const _0x1aa6aa=new _0x41e7c1(_0x3fde89,{'label':_0x243ea6(_0x3fde89,_0x1f24b6(0xfe)),'icon':_0x1361af,'class':_0x1f24b6(0x112)});_0x53e1e5&&(this[_0x1f24b6(0x13c)]=_0x41953d(_0x3fde89,this),_0x1aa6aa[_0x1f24b6(0x10d)][_0x1f24b6(0x10a)](this[_0x1f24b6(0x13c)])),this[_0x1f24b6(0xf5)]=new _0x222660(_0x3fde89,[]),this[_0x1f24b6(0xf5)][_0x1f24b6(0x139)](..._0x1fcac4)['to'](this),this[_0x1f24b6(0x106)]=this[_0x1f24b6(0x132)](),this[_0x1f24b6(0x13b)]=this[_0x1f24b6(0x110)](),this[_0x1f24b6(0x138)]=this[_0x1f24b6(0x130)](),this[_0x1f24b6(0x135)]=this[_0x1f24b6(0xf2)](),this['on'](_0x1f24b6(0x116),()=>this[_0x1f24b6(0x102)]()),this['on'](_0x1f24b6(0x111),()=>this[_0x1f24b6(0x102)]()),this['on'](_0x1f24b6(0x108),()=>this[_0x1f24b6(0x102)]()),this[_0x1f24b6(0xe9)]({'tag':_0x1f24b6(0x105),'attributes':{'class':['ck',_0x1f24b6(0x10c),_0x1f24b6(0x101),_0x1f24b6(0xfc)],'dir':_0x1f24b6(0xef)},'children':[_0x1aa6aa,{'tag':_0x1f24b6(0x105),'attributes':{'class':[_0x1f24b6(0xe5)]},'children':[this[_0x1f24b6(0x13b)],this[_0x1f24b6(0x106)],this[_0x1f24b6(0x138)],this[_0x1f24b6(0x135)]]}]});}[_0x5c3cb6(0x102)](){const _0x129bcb=_0x5c3cb6;this[_0x129bcb(0xf8)]=!this[_0x129bcb(0x137)]&&this[_0x129bcb(0xe8)]&&!this[_0x129bcb(0x120)],this[_0x129bcb(0x13d)]=!this[_0x129bcb(0x137)]&&!this[_0x129bcb(0xe8)]&&!this[_0x129bcb(0x120)];}[_0x5c3cb6(0xf2)](){const _0x1bfc95=_0x5c3cb6,_0x42dd37=new _0x29e9db(this[_0x1bfc95(0x12a)],{'filteredView':this[_0x1bfc95(0xf5)],'queryView':{'label':_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x11e))},'infoView':{'text':{'notFound':{'primary':_0x18b680=>_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x121),_0x18b680),'secondary':_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x113))}}}});return _0x42dd37['on'](_0x1bfc95(0x12f),()=>{const _0x35bca7=_0x1bfc95;this[_0x35bca7(0x135)][_0x35bca7(0x10d)][_0x35bca7(0x10a)](this[_0x35bca7(0x106)],0x1);}),_0x42dd37[_0x1bfc95(0x104)]({'attributes':{'class':[this[_0x1bfc95(0x128)]['if'](_0x1bfc95(0xf8),_0x1bfc95(0xf3),_0x362e76=>!_0x362e76)]}}),_0x42dd37;}[_0x5c3cb6(0x110)](){const _0x194b85=_0x5c3cb6,_0x23011c=new _0x47f0d9(this[_0x194b85(0x12a)],_0x3d52f5[_0x194b85(0x122)]);return _0x23011c[_0x194b85(0x104)]({'attributes':{'class':[this[_0x194b85(0x128)]['if'](_0x194b85(0x137),_0x194b85(0xf3),_0x22109c=>!_0x22109c)]}}),_0x23011c;}[_0x5c3cb6(0x132)](){const _0x411519=_0x5c3cb6,_0x4c0d0a=new _0x20742c(this[_0x411519(0x12a)]),_0x4ab52c=new _0x28588b(this[_0x411519(0x12a)]);return _0x4ab52c[_0x411519(0x125)]({'withText':!0x1,'icon':_0x11c6d3,'class':_0x411519(0xf6)}),_0x4ab52c[_0x411519(0x118)](_0x411519(0xfd))['to'](this,_0x411519(0xe8),_0x3b75e1=>!!_0x3b75e1),_0x4ab52c['on'](_0x411519(0x129),()=>{const _0x45d8e8=_0x411519;this[_0x45d8e8(0x120)]='';}),_0x4c0d0a[_0x411519(0xe9)]({'tag':_0x411519(0x105),'attributes':{'class':['ck',_0x411519(0xed),this[_0x411519(0x128)]['if'](_0x411519(0x120),_0x411519(0xf3),_0x41308d=>!_0x41308d)]},'children':[{'tag':'p','children':[{'text':this[_0x411519(0x128)]['to'](_0x411519(0x120))}]},_0x4ab52c]}),_0x4c0d0a;}[_0x5c3cb6(0x130)](){const _0x1216fe=_0x5c3cb6,_0x2da27f=new _0x28588b(this[_0x1216fe(0x12a)]);_0x2da27f[_0x1216fe(0x125)]({'label':_0x243ea6(this[_0x1216fe(0x12a)],_0x1216fe(0x10e)),'withText':!0x0,'icon':_0x393a37,'class':_0x1216fe(0xfb)}),_0x2da27f['on'](_0x1216fe(0x129),()=>{const _0x356eac=_0x1216fe;this[_0x356eac(0xee)](_0x356eac(0x117));});const _0x1f35ce=new _0x20742c(this[_0x1216fe(0x12a)]);return _0x1f35ce[_0x1216fe(0xe9)]({'tag':_0x1216fe(0x105),'attributes':{'class':[_0x1216fe(0x126),this[_0x1216fe(0x128)]['if'](_0x1216fe(0x13d),_0x1216fe(0xf3),_0x369643=>!_0x369643)]},'children':[{'tag':'p','attributes':{'class':[_0x1216fe(0x13e)]},'children':[_0x243ea6(this[_0x1216fe(0x12a)],_0x1216fe(0x134))]},_0x2da27f]}),_0x1f35ce;}[_0x5c3cb6(0x127)](_0x39f8b0,_0xdb4405){const _0x24f363=_0x5c3cb6,_0x1b4ce1=[];for(const _0xf560b of _0x39f8b0){const _0x6df1e=new _0x5a9464(_0xdb4405,_0xf560b);_0x6df1e[_0x24f363(0x139)](..._0x1fcac4)['to'](this),_0x1b4ce1[_0x24f363(0x133)](_0x6df1e);}return _0x1b4ce1;}[_0x5c3cb6(0x109)](_0x18408e){const _0x4151a7=_0x5c3cb6,_0x14bd9f=this[_0x4151a7(0x12a)]||'en',_0x2185fd=[];for(const _0xa66f2d of _0x18408e){const _0x4ad93e=this[_0x4151a7(0x127)](_0xa66f2d[_0x4151a7(0xf9)],_0x14bd9f);_0x2185fd[_0x4151a7(0x133)](new _0x3bf649(_0x14bd9f,{'title':_0xa66f2d[_0x4151a7(0x131)],'items':_0x4ad93e}));}this[_0x4151a7(0xf5)][_0x4151a7(0x136)]=_0x2185fd,this[_0x4151a7(0xf5)][_0x4151a7(0xf9)][_0x4151a7(0xf0)](),this[_0x4151a7(0xf5)][_0x4151a7(0xf9)][_0x4151a7(0x10b)](_0x2185fd),this[_0x4151a7(0xe8)]=_0x18408e[_0x4151a7(0xeb)](_0x3d3d39=>_0x3d3d39[_0x4151a7(0xf9)][_0x4151a7(0x13a)]>0x0),this[_0x4151a7(0x115)]();}[_0x5c3cb6(0x114)](_0x327281){const _0x19da11=_0x5c3cb6;for(const _0x24c225 of this[_0x19da11(0xf5)][_0x19da11(0x136)]){const _0x1659ff=_0x24c225[_0x19da11(0x11d)](_0x327281);if(_0x1659ff){if(_0x24c225[_0x19da11(0xf7)](_0x1659ff),0x0===_0x24c225[_0x19da11(0x11f)][_0x19da11(0x13a)]){const _0x4b14f0=this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0x12e)](_0x24c225);-0x1!==_0x4b14f0&&(this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0xf4)](_0x4b14f0,0x1),this[_0x19da11(0xf5)][_0x19da11(0xf9)][_0x19da11(0x11c)](_0x24c225));}this[_0x19da11(0xe8)]=this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0x13a)]>0x0,this[_0x19da11(0x115)]();break;}}}[_0x5c3cb6(0xec)](_0x1165d6,_0x57ea28){const _0x5bb6a1=_0x5c3cb6;for(const _0x3cb8f5 of this[_0x5bb6a1(0xf5)][_0x5bb6a1(0x136)]){const _0x3db443=_0x3cb8f5[_0x5bb6a1(0x11d)](_0x1165d6);if(_0x3db443){_0x3db443[_0x5bb6a1(0x119)](_0x57ea28);break;}}}[_0x5c3cb6(0x123)](_0x4926c1,_0x427568,_0x4adf72){const _0x209f91=_0x5c3cb6;for(const _0x2797f3 of this[_0x209f91(0xf5)][_0x209f91(0x136)]){const _0x4c19a6=_0x2797f3[_0x209f91(0x11d)](_0x4926c1);if(_0x4c19a6){_0x4c19a6[_0x209f91(0x11a)](_0x427568,_0x4adf72);break;}}}[_0x5c3cb6(0x115)](){const _0x28a47e=_0x5c3cb6;if(this[_0x28a47e(0xe8)]){const _0x122527=this[_0x28a47e(0x135)][_0x28a47e(0xea)][_0x28a47e(0x103)]?.[_0x28a47e(0x12b)]?.[_0x28a47e(0xfa)]||'';this[_0x28a47e(0x135)][_0x28a47e(0x12d)](_0x122527);}}}
23
+ const _0x51f3ab=_0x2c5b;(function(_0x4dbc3e,_0xec6521){const _0x42e062=_0x2c5b,_0x36d5b7=_0x4dbc3e();while(!![]){try{const _0x51f3aa=-parseInt(_0x42e062(0x212))/0x1*(-parseInt(_0x42e062(0x1fd))/0x2)+-parseInt(_0x42e062(0x1d9))/0x3+parseInt(_0x42e062(0x20a))/0x4*(-parseInt(_0x42e062(0x1d0))/0x5)+-parseInt(_0x42e062(0x1df))/0x6+parseInt(_0x42e062(0x1f2))/0x7*(parseInt(_0x42e062(0x1db))/0x8)+-parseInt(_0x42e062(0x1d4))/0x9*(parseInt(_0x42e062(0x1fc))/0xa)+-parseInt(_0x42e062(0x1ce))/0xb*(-parseInt(_0x42e062(0x1e3))/0xc);if(_0x51f3aa===_0xec6521)break;else _0x36d5b7['push'](_0x36d5b7['shift']());}catch(_0x46e86f){_0x36d5b7['push'](_0x36d5b7['shift']());}}}(_0x3cee,0xdf54d));import{View as _0x5a3873,SearchTextView as _0x4d4b16,FormHeaderView as _0x2f2620,ButtonView as _0x425e13}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x34178d,IconCancel as _0x5a88d0,IconPlus as _0x2680cd}from'ckeditor5/src/icons.js';function _0x3cee(){const _0x29a4fd=['isMaximized','change:errorMessage','setTemplate','splice','remove','extendTemplate','ck-ai-chat__start-conversation','itemsViews','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','ck-reset_all','ck-ai-chat-history__empty-message','addMany','updateItemTitle','ck-rounded-corners','79079CVUQRu','AI_CHAT_HISTORY_SEARCH_LABEL','17905ThNcJz','ck-ai-chat-error','children','execute','27eKrgVv','render','ck-ai-chat-history__empty','_createErrorView','_createSearchView','796464OkckUh','fieldView','808QMQxGx','items','sections','value','4100238XfjOYT','change:hasItems','errorMessage','resizeButton','1068NVGnRd','emptyView','bindTemplate','searchView','change:isLoading','delegate','search','element','isSearchViewVisible','div','_updateViewVisibility','ltr','_createEmptyStateView','getItem','openChat','63707vOJkij','indexOf','locale','skeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','add','title','push','some','2003470HiakqZ','6lLBITA','isEmptyViewVisible','isVisible','errorView','aiHistory','AI_CHAT_HISTORY_EMPTY_MESSAGE','_refreshSearch','isLoading','_createListItemViews','updateTitle','length','ck-hidden','hasItems','1004PFTYzW','removeItem','AI_CHAT_LABEL_NEW_CHAT','updateHistoryItemsWithCategories','fire','set','ck-ai-chat-error__dismiss-button','sectionsView','601492jFJiAb','ck-ai-chat-history__content','updateItemLoadingState','updateLoadingState','clear','AI_CHAT_HISTORY_HEADING','queryView','_createSkeletonView','removeHistoryItem','bind'];_0x3cee=function(){return _0x29a4fd;};return _0x3cee();}import{AIChatHistorySectionListView as _0x5122e6}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x26d34e}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x359a6f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xd7faff}from'../aichathistoryui.js';import{AISkeletonView as _0x28fa08,SKELETON_DEFINITIONS as _0x3ea2cc}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x14160e}from'../../aicore/utils/createresizebutton.js';function _0x2c5b(_0x5295a4,_0x4be560){const _0x3cee68=_0x3cee();return _0x2c5b=function(_0x2c5b94,_0x49a087){_0x2c5b94=_0x2c5b94-0x1ce;let _0x25786c=_0x3cee68[_0x2c5b94];return _0x25786c;},_0x2c5b(_0x5295a4,_0x4be560);}import{getTranslation as _0xa2f439}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5a3873{[_0x51f3ab(0x1e6)];[_0x51f3ab(0x200)];[_0x51f3ab(0x1f5)];[_0x51f3ab(0x1e4)];[_0x51f3ab(0x211)];[_0x51f3ab(0x1e2)];constructor(_0x656f0e,_0x47452b){const _0x39e3cd=_0x51f3ab;super(_0x656f0e),this[_0x39e3cd(0x20f)](_0x39e3cd(0x209),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x204),!0x0),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1e1),''),this[_0x39e3cd(0x20f)](_0x39e3cd(0x21c),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1eb),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1fe),!0x1);const _0x531f16=new _0x2f2620(_0x656f0e,{'label':_0xa2f439(_0x656f0e,_0x39e3cd(0x217)),'icon':_0x34178d,'class':_0x39e3cd(0x225)});_0x47452b&&(this[_0x39e3cd(0x1e2)]=_0x14160e(_0x656f0e,this),_0x531f16[_0x39e3cd(0x1d2)][_0x39e3cd(0x1f8)](this[_0x39e3cd(0x1e2)])),this[_0x39e3cd(0x211)]=new _0x5122e6(_0x656f0e,[]),this[_0x39e3cd(0x211)][_0x39e3cd(0x1e8)](..._0xd7faff)['to'](this),this[_0x39e3cd(0x200)]=this[_0x39e3cd(0x1d7)](),this[_0x39e3cd(0x1f5)]=this[_0x39e3cd(0x219)](),this[_0x39e3cd(0x1e4)]=this[_0x39e3cd(0x1ef)](),this[_0x39e3cd(0x1e6)]=this[_0x39e3cd(0x1d8)](),this['on'](_0x39e3cd(0x1e7),()=>this[_0x39e3cd(0x1ed)]()),this['on'](_0x39e3cd(0x1e0),()=>this[_0x39e3cd(0x1ed)]()),this['on'](_0x39e3cd(0x21d),()=>this[_0x39e3cd(0x1ed)]()),this[_0x39e3cd(0x21e)]({'tag':_0x39e3cd(0x1ec),'attributes':{'class':['ck',_0x39e3cd(0x226),_0x39e3cd(0x224),_0x39e3cd(0x22a)],'dir':_0x39e3cd(0x1ee)},'children':[_0x531f16,{'tag':_0x39e3cd(0x1ec),'attributes':{'class':[_0x39e3cd(0x213)]},'children':[this[_0x39e3cd(0x1f5)],this[_0x39e3cd(0x200)],this[_0x39e3cd(0x1e4)],this[_0x39e3cd(0x1e6)]]}]});}[_0x51f3ab(0x1ed)](){const _0x4b7ed2=_0x51f3ab;this[_0x4b7ed2(0x1eb)]=!this[_0x4b7ed2(0x204)]&&this[_0x4b7ed2(0x209)]&&!this[_0x4b7ed2(0x1e1)],this[_0x4b7ed2(0x1fe)]=!this[_0x4b7ed2(0x204)]&&!this[_0x4b7ed2(0x209)]&&!this[_0x4b7ed2(0x1e1)];}[_0x51f3ab(0x1d8)](){const _0xec066e=_0x51f3ab,_0x489ab6=new _0x4d4b16(this[_0xec066e(0x1f4)],{'filteredView':this[_0xec066e(0x211)],'queryView':{'label':_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1cf))},'infoView':{'text':{'notFound':{'primary':_0x26a6fb=>_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1f7),_0x26a6fb),'secondary':_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1f6))}}}});return _0x489ab6['on'](_0xec066e(0x1d5),()=>{const _0x2e9d66=_0xec066e;this[_0x2e9d66(0x1e6)][_0x2e9d66(0x1d2)][_0x2e9d66(0x1f8)](this[_0x2e9d66(0x200)],0x1);}),_0x489ab6[_0xec066e(0x221)]({'attributes':{'class':[this[_0xec066e(0x1e5)]['if'](_0xec066e(0x1eb),_0xec066e(0x208),_0x5a41af=>!_0x5a41af)]}}),_0x489ab6;}[_0x51f3ab(0x219)](){const _0x1cb07c=_0x51f3ab,_0x3b5050=new _0x28fa08(this[_0x1cb07c(0x1f4)],_0x3ea2cc[_0x1cb07c(0x201)]);return _0x3b5050[_0x1cb07c(0x221)]({'attributes':{'class':[this[_0x1cb07c(0x1e5)]['if'](_0x1cb07c(0x204),_0x1cb07c(0x208),_0x1c3ebe=>!_0x1c3ebe)]}}),_0x3b5050;}[_0x51f3ab(0x1d7)](){const _0x18f7be=_0x51f3ab,_0x2bcd9a=new _0x5a3873(this[_0x18f7be(0x1f4)]),_0x56e3ad=new _0x425e13(this[_0x18f7be(0x1f4)]);return _0x56e3ad[_0x18f7be(0x20f)]({'withText':!0x1,'icon':_0x5a88d0,'class':_0x18f7be(0x210)}),_0x56e3ad[_0x18f7be(0x21b)](_0x18f7be(0x1ff))['to'](this,_0x18f7be(0x209),_0x4f3371=>!!_0x4f3371),_0x56e3ad['on'](_0x18f7be(0x1d3),()=>{const _0x5a8817=_0x18f7be;this[_0x5a8817(0x1e1)]='';}),_0x2bcd9a[_0x18f7be(0x21e)]({'tag':_0x18f7be(0x1ec),'attributes':{'class':['ck',_0x18f7be(0x1d1),this[_0x18f7be(0x1e5)]['if'](_0x18f7be(0x1e1),_0x18f7be(0x208),_0x45be5c=>!_0x45be5c)]},'children':[{'tag':'p','children':[{'text':this[_0x18f7be(0x1e5)]['to'](_0x18f7be(0x1e1))}]},_0x56e3ad]}),_0x2bcd9a;}[_0x51f3ab(0x1ef)](){const _0x15011d=_0x51f3ab,_0x1c5bd8=new _0x425e13(this[_0x15011d(0x1f4)]);_0x1c5bd8[_0x15011d(0x20f)]({'label':_0xa2f439(this[_0x15011d(0x1f4)],_0x15011d(0x20c)),'withText':!0x0,'icon':_0x2680cd,'class':_0x15011d(0x222)}),_0x1c5bd8['on'](_0x15011d(0x1d3),()=>{const _0x35c76e=_0x15011d;this[_0x35c76e(0x20e)](_0x35c76e(0x1f1));});const _0x49e0c6=new _0x5a3873(this[_0x15011d(0x1f4)]);return _0x49e0c6[_0x15011d(0x21e)]({'tag':_0x15011d(0x1ec),'attributes':{'class':[_0x15011d(0x1d6),this[_0x15011d(0x1e5)]['if'](_0x15011d(0x1fe),_0x15011d(0x208),_0x24b482=>!_0x24b482)]},'children':[{'tag':'p','attributes':{'class':[_0x15011d(0x227)]},'children':[_0xa2f439(this[_0x15011d(0x1f4)],_0x15011d(0x202))]},_0x1c5bd8]}),_0x49e0c6;}[_0x51f3ab(0x205)](_0x1959b7,_0x439a19){const _0x348a31=_0x51f3ab,_0x31e896=[];for(const _0x20428a of _0x1959b7){const _0xc25e4a=new _0x359a6f(_0x439a19,_0x20428a);_0xc25e4a[_0x348a31(0x1e8)](..._0xd7faff)['to'](this),_0x31e896[_0x348a31(0x1fa)](_0xc25e4a);}return _0x31e896;}[_0x51f3ab(0x20d)](_0x1acd0a){const _0x590129=_0x51f3ab,_0x58e5d3=this[_0x590129(0x1f4)]||'en',_0x2d4a26=[];for(const _0x55567b of _0x1acd0a){const _0x14b85b=this[_0x590129(0x205)](_0x55567b[_0x590129(0x1dc)],_0x58e5d3);_0x2d4a26[_0x590129(0x1fa)](new _0x26d34e(_0x58e5d3,{'title':_0x55567b[_0x590129(0x1f9)],'items':_0x14b85b}));}this[_0x590129(0x211)][_0x590129(0x1dd)]=_0x2d4a26,this[_0x590129(0x211)][_0x590129(0x1dc)][_0x590129(0x216)](),this[_0x590129(0x211)][_0x590129(0x1dc)][_0x590129(0x228)](_0x2d4a26),this[_0x590129(0x209)]=_0x1acd0a[_0x590129(0x1fb)](_0x174d71=>_0x174d71[_0x590129(0x1dc)][_0x590129(0x207)]>0x0),this[_0x590129(0x203)]();}[_0x51f3ab(0x21a)](_0x3770ff){const _0x931c8f=_0x51f3ab;for(const _0x2e38ae of this[_0x931c8f(0x211)][_0x931c8f(0x1dd)]){const _0x233314=_0x2e38ae[_0x931c8f(0x1f0)](_0x3770ff);if(_0x233314){if(_0x2e38ae[_0x931c8f(0x20b)](_0x233314),0x0===_0x2e38ae[_0x931c8f(0x223)][_0x931c8f(0x207)]){const _0x501040=this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x1f3)](_0x2e38ae);-0x1!==_0x501040&&(this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x21f)](_0x501040,0x1),this[_0x931c8f(0x211)][_0x931c8f(0x1dc)][_0x931c8f(0x220)](_0x2e38ae));}this[_0x931c8f(0x209)]=this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x207)]>0x0,this[_0x931c8f(0x203)]();break;}}}[_0x51f3ab(0x229)](_0x242603,_0x7291ba){const _0x1a3c96=_0x51f3ab;for(const _0x2708fc of this[_0x1a3c96(0x211)][_0x1a3c96(0x1dd)]){const _0x459aef=_0x2708fc[_0x1a3c96(0x1f0)](_0x242603);if(_0x459aef){_0x459aef[_0x1a3c96(0x206)](_0x7291ba);break;}}}[_0x51f3ab(0x214)](_0x355fee,_0x35b3bd,_0x574a28){const _0x449cc3=_0x51f3ab;for(const _0x1f8b83 of this[_0x449cc3(0x211)][_0x449cc3(0x1dd)]){const _0x139db0=_0x1f8b83[_0x449cc3(0x1f0)](_0x355fee);if(_0x139db0){_0x139db0[_0x449cc3(0x215)](_0x35b3bd,_0x574a28);break;}}}[_0x51f3ab(0x203)](){const _0x3e7bb1=_0x51f3ab;if(this[_0x3e7bb1(0x209)]){const _0x333089=this[_0x3e7bb1(0x1e6)][_0x3e7bb1(0x218)][_0x3e7bb1(0x1da)]?.[_0x3e7bb1(0x1ea)]?.[_0x3e7bb1(0x1de)]||'';this[_0x3e7bb1(0x1e6)][_0x3e7bb1(0x1e9)](_0x333089);}}}
package/src/aiconfig.d.ts CHANGED
@@ -58,7 +58,9 @@ export interface AIConfig {
58
58
  */
59
59
  chat?: AIChatConfig;
60
60
  /**
61
- * The configuration of the AI quick actions.
61
+ * The configuration of the AI Quick Actions feature.
62
+ *
63
+ * Read more in {@link module:ai/aiquickactions/aiquickactions~AIQuickActionsConfig}.
62
64
  */
63
65
  quickActions?: AIQuickActionsConfig;
64
66
  /**
@@ -94,13 +96,31 @@ export interface AIContainerBase {
94
96
  showResizeButton?: boolean;
95
97
  }
96
98
  /**
97
- * The configuration of the AI user interface container in the sidebar mode.
99
+ * The configuration of the AI user interface container in the sidebar mode. Provide an existing DOM
100
+ * element to use as the container the AI user interface will automatically render into that element.
101
+ *
102
+ * Additionally, the {@link module:ai/aitabs/aitabs~AITabs tab buttons} can be positioned on the preferred
103
+ * side of the container.
98
104
  *
99
- * Provide an existing DOM element to use as the container for the AI user interface.
105
+ * ```ts
106
+ * ClassicEditor
107
+ * .create( document.querySelector( '#editor' ), {
108
+ * // ... Other configuration options ...
109
+ * ai: {
110
+ * container: {
111
+ * type: 'sidebar',
100
112
  *
101
- * The interface will automatically render into the element.
113
+ * // Existing DOM element to use as the container for the AI user interface.
114
+ * element: document.querySelector( '#ai-sidebar-container' ),
102
115
  *
103
- * Tab buttons can be positioned on the preferred side of the element.
116
+ * // (Optional) The preferred side of the element to position the tab buttons.
117
+ * side: 'right'
118
+ * },
119
+ * }
120
+ * } )
121
+ * .then( ... )
122
+ * .catch( ... );
123
+ * ```
104
124
  */
105
125
  export interface AIContainerSidebar extends AIContainerBase {
106
126
  type: 'sidebar';
@@ -108,8 +128,24 @@ export interface AIContainerSidebar extends AIContainerBase {
108
128
  side?: AIContainerSide;
109
129
  }
110
130
  /**
111
- * The configuration of the AI user interface container in the overlay mode. The AI user
112
- * interface is displayed on top of the web page on a preferred side.
131
+ * The configuration of the AI user interface container in the overlay mode. In this mode, the AI user
132
+ * interface is displayed on top of the web page on a preferred side. This mode is best suited
133
+ * for integrations with limited space.
134
+ *
135
+ * ```ts
136
+ * ClassicEditor
137
+ * .create( document.querySelector( '#editor' ), {
138
+ * // ... Other configuration options ...
139
+ * ai: {
140
+ * container: {
141
+ * type: 'overlay',
142
+ * side: 'right'
143
+ * },
144
+ * }
145
+ * } )
146
+ * .then( ... )
147
+ * .catch( ... );
148
+ * ```
113
149
  */
114
150
  export interface AIContainerOverlay extends AIContainerBase {
115
151
  type: 'overlay';
@@ -122,11 +158,13 @@ export interface AIContainerOverlay extends AIContainerBase {
122
158
  *
123
159
  * * Use {@link module:ai/aitabs/aitabs~AITabs#view} to access the view of the AI user interface,
124
160
  * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTabIds} to read available IDs of individual tabs in the AI user interface,
125
- * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTab} to access individual tab views in the AI user interface.
161
+ * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTab} to access individual tab views in the AI user interface,
162
+ * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#addTab} to add a new tab to the AI user interface,
163
+ * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#activateTab} to switch between tabs from the code.
126
164
  *
127
165
  * For example, to integrate the AI user interface with custom containers on the web page, use the following code:
128
166
  *
129
- * ```js
167
+ * ```ts
130
168
  * const tabsPlugin = editor.plugins.get( 'AITabs' );
131
169
  *
132
170
  * for ( const id of tabsPlugin.view.getTabIds() ) {
@@ -4,7 +4,6 @@
4
4
  */
5
5
  /**
6
6
  * @module ai/aicore/aiconnector
7
- * @publicApi
8
7
  */
9
8
  import { type EventSourceMessage } from 'eventsource-parser';
10
9
  import { type Editor, type Context, ContextPlugin } from 'ckeditor5/src/core.js';
@@ -134,8 +133,8 @@ export declare class AIConnector extends ContextPlugin {
134
133
  upsertAIChatRating(conversationId: string, messageId: string, rating: AIRating): AIUpdateRating;
135
134
  upsertAIActionRating(actionName: string, callId: string, rating: AIRating): AIUpdateRating;
136
135
  upsertCustomAIActionRating(callId: string, rating: AIRating): AIUpdateRating;
137
- upsertAIReviewRating(reviewName: string, callId: string, rating: AIRating): AIUpdateRating;
138
- upsertCustomAIReviewRating(callId: string, rating: AIRating): AIUpdateRating;
136
+ upsertAIReviewRating(reviewName: string, callId: string, rating: AIRating, dataId?: string): AIUpdateRating;
137
+ upsertCustomAIReviewRating(callId: string, rating: AIRating, dataId?: string): AIUpdateRating;
139
138
  }
140
139
  export type AIGenericRequest = {
141
140
  request: Promise<Response>;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x13ba(_0x446869,_0xc41fca){const _0x2a72fe=_0x2a72();return _0x13ba=function(_0x13bab2,_0x538faa){_0x13bab2=_0x13bab2-0x1e7;let _0x435d36=_0x2a72fe[_0x13bab2];return _0x435d36;},_0x13ba(_0x446869,_0xc41fca);}const _0x1ca519=_0x13ba;(function(_0x1bae5e,_0x574c15){const _0x36b157=_0x13ba,_0xea3e07=_0x1bae5e();while(!![]){try{const _0x180195=parseInt(_0x36b157(0x22d))/0x1+parseInt(_0x36b157(0x230))/0x2+-parseInt(_0x36b157(0x1ed))/0x3+-parseInt(_0x36b157(0x258))/0x4*(parseInt(_0x36b157(0x220))/0x5)+-parseInt(_0x36b157(0x215))/0x6+-parseInt(_0x36b157(0x228))/0x7+-parseInt(_0x36b157(0x264))/0x8*(-parseInt(_0x36b157(0x23c))/0x9);if(_0x180195===_0x574c15)break;else _0xea3e07['push'](_0xea3e07['shift']());}catch(_0x3edb48){_0xea3e07['push'](_0xea3e07['shift']());}}}(_0x2a72,0x57c87));import{createParser as _0x179dfe}from'eventsource-parser';function _0x2a72(){const _0x30949b=['/calls/','define','releaseLock','/documents','signal','PATCH','startConversation','get','make-tone-formal','/actions/custom/calls','decode','IMPROVE_WRITING','ai-request-aborted','CloudServices','ai-request-failed','name','_apiUrl','stringify','attributes','parse','callSystemReview','translate','/actions/custom/calls/','fetchConversation','context','token','FIX_GRAMMAR','positiveCount','uploadFile','GET','locale','isOfficialPlugin','MAKE_LONGER','body','1523694MJXFcH','_sendApiRequest','true','_token','data','map','upsertCustomAIReviewRating','continue','CONTINUE','make-tone-casual','/conversations?','2166870YBBtIa','uploadDocument','pluginName','executeCustomAction','_handleError','/web-resources','status','file','1484049TgyAIC','read','reset','json','getModels','121423lOHJYp','/files/','AbortError','299580yrsXAx','fetchConversationMessages','/messages','make-longer','group','deleteDocument','fetchConversations','/documents/','search','/files','/actions/system/','/reviews/custom/calls/','909eYYHrb','Bearer\x20','limit','length','catch','/conversations/','totalCount','feed','/ratings','request','_getStreamReader','ai.serviceUrl','keys','updateConversation','/conversations','init','/models/1','getReader','MAKE_TONE_FORMAL','/web-resources/','queryAssistant','DELETE','upsertAIChatRating','100','then','application/json','requires','excludeEmpty','4AMpRSD','_decoder','text','toUpperCase','/reviews/custom/calls','abortController','AIConnector','upsertAIReviewRating','fetchDocument','MAKE_TONE_CASUAL','fix-grammar','ai-missing-token','89608lZPETg','upsertCustomAIActionRating','deleteWebResource','toString','https://ai.cke-cs.com/v1','/reviews/system/','/messages/','plugins','isPremiumPlugin','AI_MODEL_DESCRIPTION_','/calls','POST','deleteConversation','uploadUrl','MAKE_SHORTER','deleteFile','config','improve-writing','Content-Type','append','callCustomReview','value','executeAction','upsertAIActionRating','PUT','430875WJxZrd','statusText','make-shorter','TRANSLATE','items','push'];_0x2a72=function(){return _0x30949b;};return _0x2a72();}import{ContextPlugin as _0x1f47e9}from'ckeditor5/src/core.js';import{CKEditorError as _0x2debc9}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a55b9}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x194921){const _0x4e0c41=_0x13ba;_0x194921[_0x4e0c41(0x21d)]=_0x4e0c41(0x21c),_0x194921[_0x4e0c41(0x20d)]=_0x4e0c41(0x262),_0x194921[_0x4e0c41(0x1fe)]=_0x4e0c41(0x275),_0x194921[_0x4e0c41(0x213)]=_0x4e0c41(0x233),_0x194921[_0x4e0c41(0x272)]=_0x4e0c41(0x1ef),_0x194921[_0x4e0c41(0x261)]=_0x4e0c41(0x21e),_0x194921[_0x4e0c41(0x24e)]=_0x4e0c41(0x1fb),_0x194921[_0x4e0c41(0x1f0)]=_0x4e0c41(0x208);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x1f47e9{[_0x1ca519(0x203)];[_0x1ca519(0x218)];[_0x1ca519(0x259)];static get[_0x1ca519(0x256)](){const _0x16162f=_0x1ca519;return[_0x16162f(0x200)];}static get[_0x1ca519(0x222)](){const _0x3a0cda=_0x1ca519;return _0x3a0cda(0x25e);}static get[_0x1ca519(0x212)](){return!0x0;}static get[_0x1ca519(0x26c)](){return!0x0;}constructor(_0x3b2d55){const _0xf25b59=_0x1ca519;super(_0x3b2d55),this[_0xf25b59(0x20b)][_0xf25b59(0x274)][_0xf25b59(0x1f4)](_0xf25b59(0x247),_0xf25b59(0x268)),this[_0xf25b59(0x203)]=this[_0xf25b59(0x20b)][_0xf25b59(0x274)][_0xf25b59(0x1fa)](_0xf25b59(0x247)),this[_0xf25b59(0x218)]=null,this[_0xf25b59(0x259)]=new TextDecoder();}[_0x1ca519(0x24b)](){const _0x367c2a=_0x1ca519,_0xb222eb=this[_0x367c2a(0x20b)][_0x367c2a(0x26b)][_0x367c2a(0x1fa)](_0x367c2a(0x200));if(!_0xb222eb[_0x367c2a(0x20c)])throw new _0x2debc9(_0x367c2a(0x263),this);this[_0x367c2a(0x218)]=_0xb222eb[_0x367c2a(0x20c)];}[_0x1ca519(0x1f9)](_0x1de1b4,_0x386714){const _0x436479=_0x1ca519,_0x3f6f57=this[_0x436479(0x216)](_0x436479(0x24a),_0x436479(0x26f),{'id':_0x1de1b4,'group':_0x386714});return{'getConversation':async()=>(await _0x3f6f57[_0x436479(0x245)])[_0x436479(0x22b)](),'abortController':_0x3f6f57[_0x436479(0x25d)]};}[_0x1ca519(0x250)]({message:_0x328732,conversationId:_0x17906c,parts:_0x45f919,capabilities:_0x1e43f2,model:_0xd1de1e,quickActionData:_0x1b3904}){const _0x1ae337=_0x1ca519,_0x3372ac={..._0x1b3904&&{'quickActionData':_0x1b3904}},_0x29ac92={'prompt':_0x328732,'content':_0x45f919,'model':_0xd1de1e,..._0x1e43f2&&{'capabilities':_0x1e43f2},...Object[_0x1ae337(0x248)](_0x3372ac)[_0x1ae337(0x23f)]>0x0&&{'attributes':_0x3372ac}},_0x35c5f9=this[_0x1ae337(0x216)](_0x1ae337(0x241)+_0x17906c+_0x1ae337(0x232),_0x1ae337(0x26f),_0x29ac92);return{'getStream':async()=>{const _0x33ca8b=_0x1ae337,_0x4a0352=(await _0x35c5f9[_0x33ca8b(0x245)])[_0x33ca8b(0x214)];return this[_0x33ca8b(0x246)](_0x4a0352);},'abortController':_0x35c5f9[_0x1ae337(0x25d)]};}[_0x1ca519(0x223)]({content:_0x17a0c7,message:_0x2b3a4f,model:_0xec7ddc,outputFormat:_0x5b1ab2}){const _0x1bcddf=_0x1ca519,_0x11b1df={'content':[{'type':_0x1bcddf(0x25a),'content':_0x17a0c7}],'prompt':_0x2b3a4f,'model':_0xec7ddc,'outputFormat':_0x5b1ab2},_0xdf82c4=this[_0x1bcddf(0x216)](_0x1bcddf(0x1fc),_0x1bcddf(0x26f),_0x11b1df);return{'getStream':async()=>{const _0x56176b=_0x1bcddf,_0x1cdfab=(await _0xdf82c4[_0x56176b(0x245)])[_0x56176b(0x214)];return this[_0x56176b(0x246)](_0x1cdfab);},'abortController':_0xdf82c4[_0x1bcddf(0x25d)]};}[_0x1ca519(0x1ea)]({actionName:_0x256f3d,content:_0x523d6f,args:_0x21615a}){const _0x163371=_0x1ca519,_0x3c81f3={'content':[{'type':_0x163371(0x25a),'content':_0x523d6f}],'args':_0x21615a},_0x5b234b=this[_0x163371(0x216)](_0x163371(0x23a)+_0x256f3d+_0x163371(0x26e),_0x163371(0x26f),_0x3c81f3);return{'getStream':async()=>{const _0x211a04=_0x163371,_0x3c9918=(await _0x5b234b[_0x211a04(0x245)])[_0x211a04(0x214)];return this[_0x211a04(0x246)](_0x3c9918);},'abortController':_0x5b234b[_0x163371(0x25d)]};}[_0x1ca519(0x20f)](_0x48f119,_0x1bbaab,_0x344af9){const _0x34dcbc=_0x1ca519,_0x147016=new FormData();_0x147016[_0x34dcbc(0x1e7)](_0x34dcbc(0x227),_0x1bbaab,_0x1bbaab[_0x34dcbc(0x202)]),_0x344af9&&_0x147016[_0x34dcbc(0x1e7)](_0x34dcbc(0x205),JSON[_0x34dcbc(0x204)](_0x344af9));const _0x4844cc=this[_0x34dcbc(0x216)](_0x34dcbc(0x241)+_0x48f119+_0x34dcbc(0x239),_0x34dcbc(0x26f),_0x147016);return{'getId':async()=>(await _0x4844cc[_0x34dcbc(0x245)])[_0x34dcbc(0x22b)](),'abortController':_0x4844cc[_0x34dcbc(0x25d)]};}[_0x1ca519(0x260)](_0x167958,_0x4befcf){const _0x5441a3=_0x1ca519,_0x5e19da=this[_0x5441a3(0x216)](_0x5441a3(0x241)+_0x167958+_0x5441a3(0x237)+_0x4befcf,_0x5441a3(0x210));return{'getDocument':async()=>(await _0x5e19da[_0x5441a3(0x245)])[_0x5441a3(0x22b)](),'abortController':_0x5e19da[_0x5441a3(0x25d)]};}[_0x1ca519(0x221)](_0x22a4d6,_0x255ddd,_0x1ad5ea){const _0x54d193=_0x1ca519,_0x2b0f32={'content':_0x255ddd};_0x1ad5ea&&(_0x2b0f32[_0x54d193(0x205)]=_0x1ad5ea);const _0x31f933=this[_0x54d193(0x216)](_0x54d193(0x241)+_0x22a4d6+_0x54d193(0x1f6),_0x54d193(0x26f),_0x2b0f32);return{'getId':async()=>(await _0x31f933[_0x54d193(0x245)])[_0x54d193(0x22b)](),'abortController':_0x31f933[_0x54d193(0x25d)]};}[_0x1ca519(0x236)](_0x290eb0,_0x3539eb){const _0x41dac1=_0x1ca519,_0xa7ed2=new URLSearchParams();_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x257),_0x41dac1(0x217)),_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x23e),_0x41dac1(0x253)),_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x234),_0x290eb0),_0x3539eb&&_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x238),_0x3539eb);const _0x4f766b=this[_0x41dac1(0x216)](_0x41dac1(0x21f)+_0xa7ed2[_0x41dac1(0x267)](),_0x41dac1(0x210));return{'getConversations':async()=>{const _0x23d67b=_0x41dac1,_0x3a657b=await _0x4f766b[_0x23d67b(0x245)];return(await _0x3a657b[_0x23d67b(0x22b)]())[_0x23d67b(0x1f1)];},'abortController':_0x4f766b[_0x41dac1(0x25d)]};}[_0x1ca519(0x270)](_0x12bac7){const _0xdbe30d=_0x1ca519,_0x3b8db1=this[_0xdbe30d(0x216)](_0xdbe30d(0x241)+_0x12bac7,_0xdbe30d(0x251));return{'execute':async()=>{const _0x3aaca2=_0xdbe30d;await _0x3b8db1[_0x3aaca2(0x245)];},'abortController':_0x3b8db1[_0xdbe30d(0x25d)]};}[_0x1ca519(0x249)](_0x11656f,_0x4b7caa){const _0x250210=_0x1ca519,_0x3f2c59=this[_0x250210(0x216)](_0x250210(0x241)+_0x11656f,_0x250210(0x1f8),_0x4b7caa);return{'getResult':async()=>(await _0x3f2c59[_0x250210(0x245)],_0x4b7caa),'abortController':_0x3f2c59[_0x250210(0x25d)]};}[_0x1ca519(0x20a)](_0x3a9821){const _0x14864f=_0x1ca519,_0x58bb73=this[_0x14864f(0x216)](_0x14864f(0x241)+_0x3a9821,_0x14864f(0x210));return{'getConversation':async()=>(await _0x58bb73[_0x14864f(0x245)])[_0x14864f(0x22b)](),'abortController':_0x58bb73[_0x14864f(0x25d)]};}[_0x1ca519(0x231)](_0x1fab27){const _0x252a2e=_0x1ca519,_0x23c1f2=this[_0x252a2e(0x216)](_0x252a2e(0x241)+_0x1fab27+_0x252a2e(0x232),_0x252a2e(0x210));return{'getMessages':async()=>{const _0x3089dd=_0x252a2e,_0xcea7=await _0x23c1f2[_0x3089dd(0x245)];return(await _0xcea7[_0x3089dd(0x22b)]())[_0x3089dd(0x1f1)];},'abortController':_0x23c1f2[_0x252a2e(0x25d)]};}[_0x1ca519(0x271)](_0x34329d,_0x54b812,_0x4a7020){const _0x3ac951=_0x1ca519,_0x3dabfd=this[_0x3ac951(0x216)](_0x3ac951(0x241)+_0x34329d+_0x3ac951(0x225),_0x3ac951(0x26f),{'url':_0x54b812,'attributes':_0x4a7020});return{'getId':async()=>(await _0x3dabfd[_0x3ac951(0x245)])[_0x3ac951(0x22b)](),'abortController':_0x3dabfd[_0x3ac951(0x25d)]};}[_0x1ca519(0x22c)](){const _0x21e1f6=_0x1ca519,_0x267c43=this[_0x21e1f6(0x216)](_0x21e1f6(0x24c),_0x21e1f6(0x210));return{'list':async()=>{const _0x78c91b=_0x21e1f6,_0x5a98a7=await(await _0x267c43[_0x78c91b(0x245)])[_0x78c91b(0x22b)](),_0x1aaf05=_0x5a98a7[_0x78c91b(0x1f1)][_0x78c91b(0x21a)](_0x5e833b=>({..._0x5e833b,'description':_0x1a55b9(this[_0x78c91b(0x20b)][_0x78c91b(0x211)],_0x78c91b(0x26d)+_0x5e833b['id'][_0x78c91b(0x25b)]())}));return{..._0x5a98a7,'items':_0x1aaf05};},'abortController':_0x267c43[_0x21e1f6(0x25d)]};}[_0x1ca519(0x273)](_0x490d4f,_0x432469){const _0xd1b35a=_0x1ca519,_0x4679d6=this[_0xd1b35a(0x216)](_0xd1b35a(0x241)+_0x490d4f+_0xd1b35a(0x22e)+_0x432469,_0xd1b35a(0x251));return{'execute':async()=>{const _0x2a2ab3=_0xd1b35a;await _0x4679d6[_0x2a2ab3(0x245)];},'abortController':_0x4679d6[_0xd1b35a(0x25d)]};}[_0x1ca519(0x235)](_0x45b929,_0x21506e){const _0x251d58=_0x1ca519,_0x35c194=this[_0x251d58(0x216)](_0x251d58(0x241)+_0x45b929+_0x251d58(0x237)+_0x21506e,_0x251d58(0x251));return{'execute':async()=>{const _0x30d612=_0x251d58;await _0x35c194[_0x30d612(0x245)];},'abortController':_0x35c194[_0x251d58(0x25d)]};}[_0x1ca519(0x266)](_0x2392a0,_0x52ca25){const _0x2b0590=_0x1ca519,_0x151dfc=this[_0x2b0590(0x216)](_0x2b0590(0x241)+_0x2392a0+_0x2b0590(0x24f)+_0x52ca25,_0x2b0590(0x251));return{'execute':async()=>{const _0x38e9b6=_0x2b0590;await _0x151dfc[_0x38e9b6(0x245)];},'abortController':_0x151dfc[_0x2b0590(0x25d)]};}[_0x1ca519(0x207)]({reviewName:_0x39789b,content:_0x5cc5ac,args:_0x993600}){const _0x3d01d1=_0x1ca519,_0x296d70=this[_0x3d01d1(0x216)](_0x3d01d1(0x269)+_0x39789b+_0x3d01d1(0x26e),_0x3d01d1(0x26f),{'content':[{'type':_0x3d01d1(0x25a),'content':_0x5cc5ac}],'args':_0x993600});return{'getStream':async()=>{const _0x16e966=_0x3d01d1,_0xcf024d=(await _0x296d70[_0x16e966(0x245)])[_0x16e966(0x214)];return this[_0x16e966(0x246)](_0xcf024d);},'abortController':_0x296d70[_0x3d01d1(0x25d)]};}[_0x1ca519(0x1e8)]({content:_0x3aa76c,prompt:_0x339b3c,model:_0x222b1b}){const _0x1b5bac=_0x1ca519,_0x9e9c54=this[_0x1b5bac(0x216)](_0x1b5bac(0x25c),_0x1b5bac(0x26f),{'content':[{'type':_0x1b5bac(0x25a),'content':_0x3aa76c}],'prompt':_0x339b3c,'model':_0x222b1b});return{'getStream':async()=>{const _0x1d1baa=_0x1b5bac,_0x41f1cb=(await _0x9e9c54[_0x1d1baa(0x245)])[_0x1d1baa(0x214)];return this[_0x1d1baa(0x246)](_0x41f1cb);},'abortController':_0x9e9c54[_0x1b5bac(0x25d)]};}[_0x1ca519(0x252)](_0x580943,_0x168fa9,_0x3e992f){const _0x2cd18e=_0x1ca519,_0x1a873c=this[_0x2cd18e(0x216)](_0x2cd18e(0x241)+_0x580943+_0x2cd18e(0x26a)+_0x168fa9+_0x2cd18e(0x244),_0x2cd18e(0x1ec),{'positiveCount':_0x3e992f[_0x2cd18e(0x20e)],'totalCount':_0x3e992f[_0x2cd18e(0x242)]});return{'execute':async()=>{const _0x36931d=_0x2cd18e;await _0x1a873c[_0x36931d(0x245)];},'abortController':_0x1a873c[_0x2cd18e(0x25d)]};}[_0x1ca519(0x1eb)](_0x5b5c1e,_0x4d6a3b,_0x47d89c){const _0x4df6bc=_0x1ca519,_0x2cb3b4=this[_0x4df6bc(0x216)](_0x4df6bc(0x23a)+_0x5b5c1e+_0x4df6bc(0x1f3)+_0x4d6a3b+_0x4df6bc(0x244),_0x4df6bc(0x1ec),{'positiveCount':_0x47d89c[_0x4df6bc(0x20e)],'totalCount':_0x47d89c[_0x4df6bc(0x242)]});return{'execute':async()=>{const _0x27fd16=_0x4df6bc;await _0x2cb3b4[_0x27fd16(0x245)];},'abortController':_0x2cb3b4[_0x4df6bc(0x25d)]};}[_0x1ca519(0x265)](_0x3239db,_0xe4e83b){const _0x43c892=_0x1ca519,_0x5a074d=this[_0x43c892(0x216)](_0x43c892(0x209)+_0x3239db+_0x43c892(0x244),_0x43c892(0x1ec),{'positiveCount':_0xe4e83b[_0x43c892(0x20e)],'totalCount':_0xe4e83b[_0x43c892(0x242)]});return{'execute':async()=>{const _0x49da39=_0x43c892;await _0x5a074d[_0x49da39(0x245)];},'abortController':_0x5a074d[_0x43c892(0x25d)]};}[_0x1ca519(0x25f)](_0x2aabdc,_0x57a962,_0x54a870){const _0x4dc116=_0x1ca519,_0x5533df=this[_0x4dc116(0x216)](_0x4dc116(0x269)+_0x2aabdc+_0x4dc116(0x1f3)+_0x57a962+_0x4dc116(0x244),_0x4dc116(0x1ec),{'positiveCount':_0x54a870[_0x4dc116(0x20e)],'totalCount':_0x54a870[_0x4dc116(0x242)]});return{'execute':async()=>{const _0x4907b8=_0x4dc116;await _0x5533df[_0x4907b8(0x245)];},'abortController':_0x5533df[_0x4dc116(0x25d)]};}[_0x1ca519(0x21b)](_0x547070,_0x25ece7){const _0x12a87b=_0x1ca519,_0x5c7c3e=this[_0x12a87b(0x216)](_0x12a87b(0x23b)+_0x547070+_0x12a87b(0x244),_0x12a87b(0x1ec),{'positiveCount':_0x25ece7[_0x12a87b(0x20e)],'totalCount':_0x25ece7[_0x12a87b(0x242)]});return{'execute':async()=>{const _0x527f3e=_0x12a87b;await _0x5c7c3e[_0x527f3e(0x245)];},'abortController':_0x5c7c3e[_0x12a87b(0x25d)]};}[_0x1ca519(0x216)](_0x377c51,_0x2d054e,_0x3db215){const _0x2084ae=_0x1ca519,_0x3d88f5=new AbortController(),_0x46116e=_0x3db215 instanceof FormData,_0x35b109={'Authorization':_0x2084ae(0x23d)+this[_0x2084ae(0x218)]?.[_0x2084ae(0x1e9)]};_0x3db215&&!_0x46116e&&(_0x35b109[_0x2084ae(0x276)]=_0x2084ae(0x255));const _0x418f37={'method':_0x2d054e,'headers':_0x35b109,'signal':_0x3d88f5[_0x2084ae(0x1f7)]};return _0x3db215&&(_0x418f37[_0x2084ae(0x214)]=_0x46116e?_0x3db215:JSON[_0x2084ae(0x204)](_0x3db215)),{'request':fetch(''+this[_0x2084ae(0x203)]+_0x377c51,_0x418f37)[_0x2084ae(0x240)](_0x47222f=>{const _0x7de4f1=_0x2084ae;this[_0x7de4f1(0x224)](_0x47222f);})[_0x2084ae(0x254)](_0x441672=>{const _0x23f2b7=_0x2084ae;if(!_0x441672['ok'])throw new _0x2debc9(_0x23f2b7(0x201),this,{'url':this[_0x23f2b7(0x203)],'path':_0x377c51,'method':_0x2d054e,'body':_0x3db215,'status':(_0x441672||{})[_0x23f2b7(0x226)],'statusText':(_0x441672||{})[_0x23f2b7(0x1ee)]});return _0x441672;}),'abortController':_0x3d88f5};}async*[_0x1ca519(0x246)](_0xa9ab35){const _0x4b3a4a=_0x1ca519,_0x232e55=[],_0x4a7bfb=_0xa9ab35[_0x4b3a4a(0x24d)](),_0x3d4413=_0x179dfe({'onError':_0xa3538c=>{const _0x1f40cc=_0x4b3a4a;this[_0x1f40cc(0x224)](_0xa3538c);},'onEvent':_0x4867cc=>{const _0x249148=_0x4b3a4a;_0x4867cc[_0x249148(0x219)]=JSON[_0x249148(0x206)](_0x4867cc[_0x249148(0x219)]),_0x232e55[_0x249148(0x1f2)](_0x4867cc);}});try{let _0x5851b2=!0x1;for(;!_0x5851b2;){const {done:_0x148731,value:_0x2ff67b}=await _0x4a7bfb[_0x4b3a4a(0x229)]();_0x148731&&(_0x5851b2=!0x0),_0x3d4413[_0x4b3a4a(0x243)](this[_0x4b3a4a(0x259)][_0x4b3a4a(0x1fd)](_0x2ff67b,{'stream':!0x0})),yield*_0x232e55,_0x232e55[_0x4b3a4a(0x23f)]=0x0;}}catch(_0x2c06c3){this[_0x4b3a4a(0x224)](_0x2c06c3);}finally{_0x4a7bfb[_0x4b3a4a(0x1f5)](),_0x3d4413[_0x4b3a4a(0x22a)]();}}[_0x1ca519(0x224)](_0x5b2f27){const _0x5ef8a0=_0x1ca519;if(_0x5b2f27 instanceof _0x2debc9)throw _0x5b2f27;if(_0x5b2f27 instanceof Error&&_0x5ef8a0(0x22f)===_0x5b2f27[_0x5ef8a0(0x202)])throw new _0x2debc9(_0x5ef8a0(0x1ff),this,{'originalError':_0x5b2f27});throw new _0x2debc9(_0x5ef8a0(0x201),this,{'originalError':_0x5b2f27});}}
23
+ const _0x78fc6a=_0xa7f3;(function(_0x400183,_0x5513f9){const _0x1aabed=_0xa7f3,_0x2fd7c3=_0x400183();while(!![]){try{const _0x487d2a=-parseInt(_0x1aabed(0xde))/0x1*(parseInt(_0x1aabed(0x13b))/0x2)+-parseInt(_0x1aabed(0x116))/0x3*(parseInt(_0x1aabed(0xe2))/0x4)+parseInt(_0x1aabed(0x12f))/0x5*(parseInt(_0x1aabed(0xd1))/0x6)+-parseInt(_0x1aabed(0xf1))/0x7*(-parseInt(_0x1aabed(0xd0))/0x8)+parseInt(_0x1aabed(0x118))/0x9*(-parseInt(_0x1aabed(0xe9))/0xa)+-parseInt(_0x1aabed(0xee))/0xb+parseInt(_0x1aabed(0x142))/0xc;if(_0x487d2a===_0x5513f9)break;else _0x2fd7c3['push'](_0x2fd7c3['shift']());}catch(_0x32ceea){_0x2fd7c3['push'](_0x2fd7c3['shift']());}}}(_0x298f,0x56346));import{createParser as _0x33dbd8}from'eventsource-parser';import{ContextPlugin as _0xebef71}from'ckeditor5/src/core.js';function _0xa7f3(_0x45822d,_0x50829b){const _0x298f6e=_0x298f();return _0xa7f3=function(_0xa7f35e,_0x2f66f2){_0xa7f35e=_0xa7f35e-0xb9;let _0x1aca4b=_0x298f6e[_0xa7f35e];return _0x1aca4b;},_0xa7f3(_0x45822d,_0x50829b);}import{CKEditorError as _0x392663}from'ckeditor5/src/utils.js';function _0x298f(){const _0x1b4970=['stringify','make-shorter','upsertAIActionRating','Bearer\x20','deleteFile','uploadFile','/conversations?','/models/1','make-tone-casual','isPremiumPlugin','_sendApiRequest','upsertCustomAIReviewRating','AI_MODEL_DESCRIPTION_','/messages','read','fix-grammar','continue','MAKE_TONE_FORMAL','append','executeCustomAction','/conversations','ai.serviceUrl','PATCH','statusText','CloudServices','/reviews/custom/calls/','decode','abortController','/actions/custom/calls/','attributes','904oczKxi','1876332mgRZGv','AIConnector','callCustomReview','locale','TRANSLATE','positiveCount','body','getModels','group','isOfficialPlugin','upsertCustomAIActionRating','startConversation','totalCount','69619LOuYLP','length','GET','status','144132YPYnaZ','100','true','ai-request-failed','deleteConversation','releaseLock','callSystemReview','20TnDIIs','/conversations/','name','init','file','561022MuFAgN','context','/calls','6965hAgMKr','deleteDocument','uploadDocument','/calls/','reset','/files','getReader','search','CONTINUE','map','/messages/','updateConversation','signal','make-tone-formal','toUpperCase','request','uploadUrl','plugins','pluginName','MAKE_TONE_CASUAL','PUT','feed','/web-resources/','/reviews/system/','upsertAIReviewRating','queryAssistant','fetchConversationMessages','limit','toString','_decoder','_getStreamReader','fetchConversation','json','/documents/','fetchConversations','fetchDocument','/web-resources','6MgReIm','FIX_GRAMMAR','2286tQZZSd','requires','/actions/custom/calls','https://ai.cke-cs.com/v1','make-longer','Content-Type','define','MAKE_LONGER','value','DELETE','_handleError','keys','translate','config','push','/actions/system/','items','POST','get','/files/','catch','/documents','/ratings','10VdCpOR','excludeEmpty','IMPROVE_WRITING','AbortError','_apiUrl','deleteWebResource','upsertAIChatRating','_token','data','ai-missing-token','parse','MAKE_SHORTER','8xswbSe','ai-request-aborted','improve-writing','text','then','token','application/json','207204uKjhqI','executeAction','/reviews/custom/calls'];_0x298f=function(){return _0x1b4970;};return _0x298f();}import{getTranslation as _0x549dc4}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x301d56){const _0xa2e54b=_0xa7f3;_0x301d56[_0xa2e54b(0xf9)]=_0xa2e54b(0xc2),_0x301d56[_0xa2e54b(0x117)]=_0xa2e54b(0xc1),_0x301d56[_0xa2e54b(0x131)]=_0xa2e54b(0x13d),_0x301d56[_0xa2e54b(0x11f)]=_0xa2e54b(0x11c),_0x301d56[_0xa2e54b(0x13a)]=_0xa2e54b(0x146),_0x301d56[_0xa2e54b(0x104)]=_0xa2e54b(0xba),_0x301d56[_0xa2e54b(0xc3)]=_0xa2e54b(0xfe),_0x301d56[_0xa2e54b(0xd5)]=_0xa2e54b(0x124);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xebef71{[_0x78fc6a(0x133)];[_0x78fc6a(0x136)];[_0x78fc6a(0x10e)];static get[_0x78fc6a(0x119)](){const _0x3f24ad=_0x78fc6a;return[_0x3f24ad(0xca)];}static get[_0x78fc6a(0x103)](){const _0x53fdb2=_0x78fc6a;return _0x53fdb2(0xd2);}static get[_0x78fc6a(0xda)](){return!0x0;}static get[_0x78fc6a(0xbb)](){return!0x0;}constructor(_0x4beea0){const _0x3fbef4=_0x78fc6a;super(_0x4beea0),this[_0x3fbef4(0xef)][_0x3fbef4(0x125)][_0x3fbef4(0x11e)](_0x3fbef4(0xc7),_0x3fbef4(0x11b)),this[_0x3fbef4(0x133)]=this[_0x3fbef4(0xef)][_0x3fbef4(0x125)][_0x3fbef4(0x12a)](_0x3fbef4(0xc7)),this[_0x3fbef4(0x136)]=null,this[_0x3fbef4(0x10e)]=new TextDecoder();}[_0x78fc6a(0xec)](){const _0x20813f=_0x78fc6a,_0x32f780=this[_0x20813f(0xef)][_0x20813f(0x102)][_0x20813f(0x12a)](_0x20813f(0xca));if(!_0x32f780[_0x20813f(0x140)])throw new _0x392663(_0x20813f(0x138),this);this[_0x20813f(0x136)]=_0x32f780[_0x20813f(0x140)];}[_0x78fc6a(0xdc)](_0x5f0d51,_0xa778bb){const _0x59ee1e=_0x78fc6a,_0x4fcb73=this[_0x59ee1e(0xbc)](_0x59ee1e(0xc6),_0x59ee1e(0x129),{'id':_0x5f0d51,'group':_0xa778bb});return{'getConversation':async()=>(await _0x4fcb73[_0x59ee1e(0x100)])[_0x59ee1e(0x111)](),'abortController':_0x4fcb73[_0x59ee1e(0xcd)]};}[_0x78fc6a(0x10a)]({message:_0x5dfc28,conversationId:_0x11f064,parts:_0x1d2991,capabilities:_0x12e24a,model:_0x3e1149,quickActionData:_0x246219}){const _0x286052=_0x78fc6a,_0x5c4937={..._0x246219&&{'quickActionData':_0x246219}},_0x4859a4={'prompt':_0x5dfc28,'content':_0x1d2991,'model':_0x3e1149,..._0x12e24a&&{'capabilities':_0x12e24a},...Object[_0x286052(0x123)](_0x5c4937)[_0x286052(0xdf)]>0x0&&{'attributes':_0x5c4937}},_0x266f00=this[_0x286052(0xbc)](_0x286052(0xea)+_0x11f064+_0x286052(0xbf),_0x286052(0x129),_0x4859a4);return{'getStream':async()=>{const _0x216ba4=_0x286052,_0x107cba=(await _0x266f00[_0x216ba4(0x100)])[_0x216ba4(0xd7)];return this[_0x216ba4(0x10f)](_0x107cba);},'abortController':_0x266f00[_0x286052(0xcd)]};}[_0x78fc6a(0xc5)]({content:_0x1447ba,message:_0x5bc05a,model:_0x56d73e,outputFormat:_0x432fab}){const _0x31c97a=_0x78fc6a,_0x1b8e6b={'content':[{'type':_0x31c97a(0x13e),'content':_0x1447ba}],'prompt':_0x5bc05a,'model':_0x56d73e,'outputFormat':_0x432fab},_0x1fcbcf=this[_0x31c97a(0xbc)](_0x31c97a(0x11a),_0x31c97a(0x129),_0x1b8e6b);return{'getStream':async()=>{const _0x36fc22=_0x31c97a,_0x60617c=(await _0x1fcbcf[_0x36fc22(0x100)])[_0x36fc22(0xd7)];return this[_0x36fc22(0x10f)](_0x60617c);},'abortController':_0x1fcbcf[_0x31c97a(0xcd)]};}[_0x78fc6a(0x143)]({actionName:_0x46062a,content:_0x12246e,args:_0x37a756}){const _0x1ad0d6=_0x78fc6a,_0x9cf9da={'content':[{'type':_0x1ad0d6(0x13e),'content':_0x12246e}],'args':_0x37a756},_0x1caf0a=this[_0x1ad0d6(0xbc)](_0x1ad0d6(0x127)+_0x46062a+_0x1ad0d6(0xf0),_0x1ad0d6(0x129),_0x9cf9da);return{'getStream':async()=>{const _0x161868=_0x1ad0d6,_0x1b20f9=(await _0x1caf0a[_0x161868(0x100)])[_0x161868(0xd7)];return this[_0x161868(0x10f)](_0x1b20f9);},'abortController':_0x1caf0a[_0x1ad0d6(0xcd)]};}[_0x78fc6a(0x14a)](_0x1ac786,_0x11d706,_0x5695e7){const _0x407ef2=_0x78fc6a,_0xe91018=new FormData();_0xe91018[_0x407ef2(0xc4)](_0x407ef2(0xed),_0x11d706,_0x11d706[_0x407ef2(0xeb)]),_0x5695e7&&_0xe91018[_0x407ef2(0xc4)](_0x407ef2(0xcf),JSON[_0x407ef2(0x145)](_0x5695e7));const _0x37e6fc=this[_0x407ef2(0xbc)](_0x407ef2(0xea)+_0x1ac786+_0x407ef2(0xf6),_0x407ef2(0x129),_0xe91018);return{'getId':async()=>(await _0x37e6fc[_0x407ef2(0x100)])[_0x407ef2(0x111)](),'abortController':_0x37e6fc[_0x407ef2(0xcd)]};}[_0x78fc6a(0x114)](_0x27ad48,_0x31cceb){const _0x4e8711=_0x78fc6a,_0x423dd0=this[_0x4e8711(0xbc)](_0x4e8711(0xea)+_0x27ad48+_0x4e8711(0x112)+_0x31cceb,_0x4e8711(0xe0));return{'getDocument':async()=>(await _0x423dd0[_0x4e8711(0x100)])[_0x4e8711(0x111)](),'abortController':_0x423dd0[_0x4e8711(0xcd)]};}[_0x78fc6a(0xf3)](_0xc9a199,_0x4b2fcb,_0x324f8f){const _0x19a60c=_0x78fc6a,_0x57ffc8={'content':_0x4b2fcb};_0x324f8f&&(_0x57ffc8[_0x19a60c(0xcf)]=_0x324f8f);const _0x3e4071=this[_0x19a60c(0xbc)](_0x19a60c(0xea)+_0xc9a199+_0x19a60c(0x12d),_0x19a60c(0x129),_0x57ffc8);return{'getId':async()=>(await _0x3e4071[_0x19a60c(0x100)])[_0x19a60c(0x111)](),'abortController':_0x3e4071[_0x19a60c(0xcd)]};}[_0x78fc6a(0x113)](_0x19e824,_0xeed8f1){const _0x27e870=_0x78fc6a,_0x337af5=new URLSearchParams();_0x337af5[_0x27e870(0xc4)](_0x27e870(0x130),_0x27e870(0xe4)),_0x337af5[_0x27e870(0xc4)](_0x27e870(0x10c),_0x27e870(0xe3)),_0x337af5[_0x27e870(0xc4)](_0x27e870(0xd9),_0x19e824),_0xeed8f1&&_0x337af5[_0x27e870(0xc4)](_0x27e870(0xf8),_0xeed8f1);const _0x1405d0=this[_0x27e870(0xbc)](_0x27e870(0x14b)+_0x337af5[_0x27e870(0x10d)](),_0x27e870(0xe0));return{'getConversations':async()=>{const _0x479aa6=_0x27e870,_0xc62037=await _0x1405d0[_0x479aa6(0x100)];return(await _0xc62037[_0x479aa6(0x111)]())[_0x479aa6(0x128)];},'abortController':_0x1405d0[_0x27e870(0xcd)]};}[_0x78fc6a(0xe6)](_0x23b6c0){const _0x23b860=_0x78fc6a,_0x1d9304=this[_0x23b860(0xbc)](_0x23b860(0xea)+_0x23b6c0,_0x23b860(0x121));return{'execute':async()=>{const _0x94e661=_0x23b860;await _0x1d9304[_0x94e661(0x100)];},'abortController':_0x1d9304[_0x23b860(0xcd)]};}[_0x78fc6a(0xfc)](_0x312f95,_0x55c8ff){const _0x2b21b6=_0x78fc6a,_0xcd4f24=this[_0x2b21b6(0xbc)](_0x2b21b6(0xea)+_0x312f95,_0x2b21b6(0xc8),_0x55c8ff);return{'getResult':async()=>(await _0xcd4f24[_0x2b21b6(0x100)],_0x55c8ff),'abortController':_0xcd4f24[_0x2b21b6(0xcd)]};}[_0x78fc6a(0x110)](_0x1e97f6){const _0x525557=_0x78fc6a,_0x23b5e5=this[_0x525557(0xbc)](_0x525557(0xea)+_0x1e97f6,_0x525557(0xe0));return{'getConversation':async()=>(await _0x23b5e5[_0x525557(0x100)])[_0x525557(0x111)](),'abortController':_0x23b5e5[_0x525557(0xcd)]};}[_0x78fc6a(0x10b)](_0x433deb){const _0x913731=_0x78fc6a,_0x427a03=this[_0x913731(0xbc)](_0x913731(0xea)+_0x433deb+_0x913731(0xbf),_0x913731(0xe0));return{'getMessages':async()=>{const _0x3b2d33=_0x913731,_0x4e6e81=await _0x427a03[_0x3b2d33(0x100)];return(await _0x4e6e81[_0x3b2d33(0x111)]())[_0x3b2d33(0x128)];},'abortController':_0x427a03[_0x913731(0xcd)]};}[_0x78fc6a(0x101)](_0x2dafef,_0x25e529,_0x17793d){const _0x3dac43=_0x78fc6a,_0x43dc71=this[_0x3dac43(0xbc)](_0x3dac43(0xea)+_0x2dafef+_0x3dac43(0x115),_0x3dac43(0x129),{'url':_0x25e529,'attributes':_0x17793d});return{'getId':async()=>(await _0x43dc71[_0x3dac43(0x100)])[_0x3dac43(0x111)](),'abortController':_0x43dc71[_0x3dac43(0xcd)]};}[_0x78fc6a(0xd8)](){const _0x56853c=_0x78fc6a,_0x2ee2f1=this[_0x56853c(0xbc)](_0x56853c(0xb9),_0x56853c(0xe0));return{'list':async()=>{const _0x5c4389=_0x56853c,_0xb86afb=await(await _0x2ee2f1[_0x5c4389(0x100)])[_0x5c4389(0x111)](),_0x51909f=_0xb86afb[_0x5c4389(0x128)][_0x5c4389(0xfa)](_0x4a1f39=>({..._0x4a1f39,'description':_0x549dc4(this[_0x5c4389(0xef)][_0x5c4389(0xd4)],_0x5c4389(0xbe)+_0x4a1f39['id'][_0x5c4389(0xff)]())}));return{..._0xb86afb,'items':_0x51909f};},'abortController':_0x2ee2f1[_0x56853c(0xcd)]};}[_0x78fc6a(0x149)](_0x443529,_0x416979){const _0x36dbaf=_0x78fc6a,_0x2f2039=this[_0x36dbaf(0xbc)](_0x36dbaf(0xea)+_0x443529+_0x36dbaf(0x12b)+_0x416979,_0x36dbaf(0x121));return{'execute':async()=>{const _0x5adad2=_0x36dbaf;await _0x2f2039[_0x5adad2(0x100)];},'abortController':_0x2f2039[_0x36dbaf(0xcd)]};}[_0x78fc6a(0xf2)](_0x3f7be5,_0x21dd02){const _0x2fbcc0=_0x78fc6a,_0x2cfc3e=this[_0x2fbcc0(0xbc)](_0x2fbcc0(0xea)+_0x3f7be5+_0x2fbcc0(0x112)+_0x21dd02,_0x2fbcc0(0x121));return{'execute':async()=>{const _0xe1613d=_0x2fbcc0;await _0x2cfc3e[_0xe1613d(0x100)];},'abortController':_0x2cfc3e[_0x2fbcc0(0xcd)]};}[_0x78fc6a(0x134)](_0x3a195d,_0x1253a2){const _0x31dce3=_0x78fc6a,_0x155987=this[_0x31dce3(0xbc)](_0x31dce3(0xea)+_0x3a195d+_0x31dce3(0x107)+_0x1253a2,_0x31dce3(0x121));return{'execute':async()=>{const _0x34c9dc=_0x31dce3;await _0x155987[_0x34c9dc(0x100)];},'abortController':_0x155987[_0x31dce3(0xcd)]};}[_0x78fc6a(0xe8)]({reviewName:_0x3bfe2f,content:_0x4d1e17,args:_0x393e74}){const _0x6a5932=_0x78fc6a,_0x23de36=this[_0x6a5932(0xbc)](_0x6a5932(0x108)+_0x3bfe2f+_0x6a5932(0xf0),_0x6a5932(0x129),{'content':[{'type':_0x6a5932(0x13e),'content':_0x4d1e17}],'args':_0x393e74});return{'getStream':async()=>{const _0x398e48=_0x6a5932,_0x349b24=(await _0x23de36[_0x398e48(0x100)])[_0x398e48(0xd7)];return this[_0x398e48(0x10f)](_0x349b24);},'abortController':_0x23de36[_0x6a5932(0xcd)]};}[_0x78fc6a(0xd3)]({content:_0x35e332,prompt:_0x5bb83e,model:_0x753d83}){const _0xf99520=_0x78fc6a,_0x1078f0=this[_0xf99520(0xbc)](_0xf99520(0x144),_0xf99520(0x129),{'content':[{'type':_0xf99520(0x13e),'content':_0x35e332}],'prompt':_0x5bb83e,'model':_0x753d83});return{'getStream':async()=>{const _0x514a97=_0xf99520,_0x158227=(await _0x1078f0[_0x514a97(0x100)])[_0x514a97(0xd7)];return this[_0x514a97(0x10f)](_0x158227);},'abortController':_0x1078f0[_0xf99520(0xcd)]};}[_0x78fc6a(0x135)](_0x454c0c,_0x1e7a86,_0xcef420){const _0x1cbcd4=_0x78fc6a,_0x1a31dd=this[_0x1cbcd4(0xbc)](_0x1cbcd4(0xea)+_0x454c0c+_0x1cbcd4(0xfb)+_0x1e7a86+_0x1cbcd4(0x12e),_0x1cbcd4(0x105),{'positiveCount':_0xcef420[_0x1cbcd4(0xd6)],'totalCount':_0xcef420[_0x1cbcd4(0xdd)]});return{'execute':async()=>{const _0x1a651c=_0x1cbcd4;await _0x1a31dd[_0x1a651c(0x100)];},'abortController':_0x1a31dd[_0x1cbcd4(0xcd)]};}[_0x78fc6a(0x147)](_0x199a2b,_0x358deb,_0x24fac2){const _0x37bf04=_0x78fc6a,_0x1a4d9a=this[_0x37bf04(0xbc)](_0x37bf04(0x127)+_0x199a2b+_0x37bf04(0xf4)+_0x358deb+_0x37bf04(0x12e),_0x37bf04(0x105),{'positiveCount':_0x24fac2[_0x37bf04(0xd6)],'totalCount':_0x24fac2[_0x37bf04(0xdd)]});return{'execute':async()=>{const _0x43d43e=_0x37bf04;await _0x1a4d9a[_0x43d43e(0x100)];},'abortController':_0x1a4d9a[_0x37bf04(0xcd)]};}[_0x78fc6a(0xdb)](_0x444158,_0x4feb31){const _0x14e1e6=_0x78fc6a,_0x37b84c=this[_0x14e1e6(0xbc)](_0x14e1e6(0xce)+_0x444158+_0x14e1e6(0x12e),_0x14e1e6(0x105),{'positiveCount':_0x4feb31[_0x14e1e6(0xd6)],'totalCount':_0x4feb31[_0x14e1e6(0xdd)]});return{'execute':async()=>{const _0x3d242c=_0x14e1e6;await _0x37b84c[_0x3d242c(0x100)];},'abortController':_0x37b84c[_0x14e1e6(0xcd)]};}[_0x78fc6a(0x109)](_0xf318f7,_0x2979bc,_0x1ab9ae,_0x27f8e9){const _0x101b2f=_0x78fc6a,_0x584540=this[_0x101b2f(0xbc)](_0x101b2f(0x108)+_0xf318f7+_0x101b2f(0xf4)+_0x2979bc+_0x101b2f(0x12e),_0x101b2f(0x105),{'positiveCount':_0x1ab9ae[_0x101b2f(0xd6)],'totalCount':_0x1ab9ae[_0x101b2f(0xdd)],'dataId':_0x27f8e9});return{'execute':async()=>{const _0x3d9d11=_0x101b2f;await _0x584540[_0x3d9d11(0x100)];},'abortController':_0x584540[_0x101b2f(0xcd)]};}[_0x78fc6a(0xbd)](_0xd6bf18,_0x1bc0fc,_0xa5befe){const _0x4d7fed=_0x78fc6a,_0x49991c=this[_0x4d7fed(0xbc)](_0x4d7fed(0xcb)+_0xd6bf18+_0x4d7fed(0x12e),_0x4d7fed(0x105),{'positiveCount':_0x1bc0fc[_0x4d7fed(0xd6)],'totalCount':_0x1bc0fc[_0x4d7fed(0xdd)],'dataId':_0xa5befe});return{'execute':async()=>{const _0x46efe2=_0x4d7fed;await _0x49991c[_0x46efe2(0x100)];},'abortController':_0x49991c[_0x4d7fed(0xcd)]};}[_0x78fc6a(0xbc)](_0x36013d,_0x411921,_0x563dc3){const _0x532d45=_0x78fc6a,_0x52d9ae=new AbortController(),_0x34e1f0=_0x563dc3 instanceof FormData,_0x1ed89d={'Authorization':_0x532d45(0x148)+this[_0x532d45(0x136)]?.[_0x532d45(0x120)]};_0x563dc3&&!_0x34e1f0&&(_0x1ed89d[_0x532d45(0x11d)]=_0x532d45(0x141));const _0x5c43e9={'method':_0x411921,'headers':_0x1ed89d,'signal':_0x52d9ae[_0x532d45(0xfd)]};return _0x563dc3&&(_0x5c43e9[_0x532d45(0xd7)]=_0x34e1f0?_0x563dc3:JSON[_0x532d45(0x145)](_0x563dc3)),{'request':fetch(''+this[_0x532d45(0x133)]+_0x36013d,_0x5c43e9)[_0x532d45(0x12c)](_0x36dc8f=>{const _0x401abd=_0x532d45;this[_0x401abd(0x122)](_0x36dc8f);})[_0x532d45(0x13f)](_0x568d0b=>{const _0x1702e1=_0x532d45;if(!_0x568d0b['ok'])throw new _0x392663(_0x1702e1(0xe5),this,{'url':this[_0x1702e1(0x133)],'path':_0x36013d,'method':_0x411921,'body':_0x563dc3,'status':(_0x568d0b||{})[_0x1702e1(0xe1)],'statusText':(_0x568d0b||{})[_0x1702e1(0xc9)]});return _0x568d0b;}),'abortController':_0x52d9ae};}async*[_0x78fc6a(0x10f)](_0x2a6946){const _0x17d7a5=_0x78fc6a,_0x3ef970=[],_0x2b66d9=_0x2a6946[_0x17d7a5(0xf7)](),_0xf69544=_0x33dbd8({'onError':_0xf3386c=>{const _0x36a13b=_0x17d7a5;this[_0x36a13b(0x122)](_0xf3386c);},'onEvent':_0x1946d3=>{const _0x466f9e=_0x17d7a5;_0x1946d3[_0x466f9e(0x137)]=JSON[_0x466f9e(0x139)](_0x1946d3[_0x466f9e(0x137)]),_0x3ef970[_0x466f9e(0x126)](_0x1946d3);}});try{let _0x1d7b90=!0x1;for(;!_0x1d7b90;){const {done:_0xbec77e,value:_0x5a0c50}=await _0x2b66d9[_0x17d7a5(0xc0)]();_0xbec77e&&(_0x1d7b90=!0x0),_0xf69544[_0x17d7a5(0x106)](this[_0x17d7a5(0x10e)][_0x17d7a5(0xcc)](_0x5a0c50,{'stream':!0x0})),yield*_0x3ef970,_0x3ef970[_0x17d7a5(0xdf)]=0x0;}}catch(_0x4d7447){this[_0x17d7a5(0x122)](_0x4d7447);}finally{_0x2b66d9[_0x17d7a5(0xe7)](),_0xf69544[_0x17d7a5(0xf5)]();}}[_0x78fc6a(0x122)](_0x2f5406){const _0x256941=_0x78fc6a;if(_0x2f5406 instanceof _0x392663)throw _0x2f5406;if(_0x2f5406 instanceof Error&&_0x256941(0x132)===_0x2f5406[_0x256941(0xeb)])throw new _0x392663(_0x256941(0x13c),this,{'originalError':_0x2f5406});throw new _0x392663(_0x256941(0xe5),this,{'originalError':_0x2f5406});}}
@@ -4,7 +4,6 @@
4
4
  */
5
5
  /**
6
6
  * @module ai/aicore/aiediting
7
- * @publicApi
8
7
  */
9
8
  import { type ModelRange, type ViewDocumentFragment, type ModelDocumentFragment } from 'ckeditor5/src/engine.js';
10
9
  import { ContextPlugin } from 'ckeditor5/src/core.js';