@ckeditor/ckeditor5-ai 47.1.0 → 47.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) 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 +573 -203
  75. package/dist/index.css +627 -204
  76. package/dist/index.js +5 -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/contexts.json +8 -1
  224. package/lang/translations/af.po +52 -4
  225. package/lang/translations/ar.po +52 -4
  226. package/lang/translations/ast.po +52 -4
  227. package/lang/translations/az.po +52 -4
  228. package/lang/translations/be.po +52 -4
  229. package/lang/translations/bg.po +52 -4
  230. package/lang/translations/bn.po +52 -4
  231. package/lang/translations/bs.po +52 -4
  232. package/lang/translations/ca.po +52 -4
  233. package/lang/translations/cs.po +52 -4
  234. package/lang/translations/da.po +52 -4
  235. package/lang/translations/de-ch.po +52 -4
  236. package/lang/translations/de.po +52 -4
  237. package/lang/translations/el.po +52 -4
  238. package/lang/translations/en-au.po +52 -4
  239. package/lang/translations/en-gb.po +52 -4
  240. package/lang/translations/en.po +52 -4
  241. package/lang/translations/eo.po +52 -4
  242. package/lang/translations/es-co.po +52 -4
  243. package/lang/translations/es.po +52 -4
  244. package/lang/translations/et.po +52 -4
  245. package/lang/translations/eu.po +52 -4
  246. package/lang/translations/fa.po +52 -4
  247. package/lang/translations/fi.po +52 -4
  248. package/lang/translations/fr.po +52 -4
  249. package/lang/translations/gl.po +52 -4
  250. package/lang/translations/gu.po +52 -4
  251. package/lang/translations/he.po +52 -4
  252. package/lang/translations/hi.po +52 -4
  253. package/lang/translations/hr.po +52 -4
  254. package/lang/translations/hu.po +52 -4
  255. package/lang/translations/hy.po +52 -4
  256. package/lang/translations/id.po +52 -4
  257. package/lang/translations/it.po +52 -4
  258. package/lang/translations/ja.po +52 -4
  259. package/lang/translations/jv.po +52 -4
  260. package/lang/translations/kk.po +52 -4
  261. package/lang/translations/km.po +52 -4
  262. package/lang/translations/kn.po +52 -4
  263. package/lang/translations/ko.po +52 -4
  264. package/lang/translations/ku.po +52 -4
  265. package/lang/translations/lt.po +52 -4
  266. package/lang/translations/lv.po +52 -4
  267. package/lang/translations/ms.po +52 -4
  268. package/lang/translations/nb.po +52 -4
  269. package/lang/translations/ne.po +52 -4
  270. package/lang/translations/nl.po +52 -4
  271. package/lang/translations/no.po +52 -4
  272. package/lang/translations/oc.po +52 -4
  273. package/lang/translations/pl.po +52 -4
  274. package/lang/translations/pt-br.po +52 -4
  275. package/lang/translations/pt.po +52 -4
  276. package/lang/translations/ro.po +52 -4
  277. package/lang/translations/ru.po +52 -4
  278. package/lang/translations/si.po +52 -4
  279. package/lang/translations/sk.po +52 -4
  280. package/lang/translations/sl.po +52 -4
  281. package/lang/translations/sq.po +52 -4
  282. package/lang/translations/sr-latn.po +52 -4
  283. package/lang/translations/sr.po +52 -4
  284. package/lang/translations/sv.po +52 -4
  285. package/lang/translations/th.po +52 -4
  286. package/lang/translations/ti.po +52 -4
  287. package/lang/translations/tk.po +52 -4
  288. package/lang/translations/tr.po +52 -4
  289. package/lang/translations/tt.po +52 -4
  290. package/lang/translations/ug.po +52 -4
  291. package/lang/translations/uk.po +52 -4
  292. package/lang/translations/ur.po +52 -4
  293. package/lang/translations/uz.po +52 -4
  294. package/lang/translations/vi.po +52 -4
  295. package/lang/translations/zh-cn.po +52 -4
  296. package/lang/translations/zh.po +52 -4
  297. package/package.json +15 -15
  298. package/src/aiactions/aiactions.d.ts +1 -1
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +5 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.d.ts +1 -1
  330. package/src/aichat/aichatcontroller.js +1 -1
  331. package/src/aichat/aichatui.d.ts +1 -0
  332. package/src/aichat/aichatui.js +1 -1
  333. package/src/aichat/model/aichatcontext.d.ts +4 -0
  334. package/src/aichat/model/aichatcontext.js +1 -1
  335. package/src/aichat/model/aichatconversation.js +1 -1
  336. package/src/aichat/model/aichatinteraction.js +1 -1
  337. package/src/aichat/model/aichatmodels.d.ts +8 -29
  338. package/src/aichat/model/aichatmodels.js +1 -1
  339. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
  340. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  341. package/src/aichat/ui/aichatfeedview.d.ts +2 -2
  342. package/src/aichat/ui/aichatfeedview.js +1 -1
  343. package/src/aichat/ui/aichatheaderview.js +1 -1
  344. package/src/aichat/ui/aichatview.d.ts +4 -1
  345. package/src/aichat/ui/aichatview.js +1 -1
  346. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  348. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  349. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
  350. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  351. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  352. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  353. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  354. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  355. package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
  356. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
  357. package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
  358. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
  359. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  360. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
  361. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  362. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  366. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  367. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  368. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
  369. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  370. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
  371. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  372. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  373. package/src/aichat/utils/eventnames.js +1 -1
  374. package/src/aichat/utils/promisequeue.js +1 -1
  375. package/src/aichat/utils/scrollmanager.js +1 -1
  376. package/src/aichathistory/aichathistory.js +1 -1
  377. package/src/aichathistory/aichathistorycontroller.js +1 -1
  378. package/src/aichathistory/aichathistoryui.js +1 -1
  379. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  380. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  381. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  382. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
  383. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  384. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  385. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  386. package/src/aiconfig.d.ts +28 -7
  387. package/src/aicore/aiconnector.d.ts +1 -0
  388. package/src/aicore/aiconnector.js +1 -1
  389. package/src/aicore/aiediting.js +1 -1
  390. package/src/aicore/model/aicapabilities.js +1 -1
  391. package/src/aicore/model/aicontext.js +1 -1
  392. package/src/aicore/model/aiinteraction.js +1 -1
  393. package/src/aicore/model/aimodels.d.ts +66 -0
  394. package/src/aicore/model/aimodels.js +23 -0
  395. package/src/aicore/model/aireply.d.ts +9 -1
  396. package/src/aicore/model/aireply.js +1 -1
  397. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  398. package/src/aicore/pipeline/airesponseparser.js +2 -2
  399. package/src/aicore/ui/aidisclaimerview.js +1 -1
  400. package/src/aicore/ui/aiskeleton.js +1 -1
  401. package/src/aicore/ui/aispinner.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
  404. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
  408. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.js +1 -1
  412. package/src/aicore/utils/documentposition.js +1 -1
  413. package/src/aicore/utils/documentrange.js +1 -1
  414. package/src/aicore/utils/eventnames.js +1 -1
  415. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  416. package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  433. package/src/aireviewmode/aireviewmode.js +1 -1
  434. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  435. package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
  436. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  437. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  438. package/src/aireviewmode/aireviewmodeui.js +1 -1
  439. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  440. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
  441. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  442. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  443. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  444. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  445. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
  447. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  448. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  449. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  450. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  451. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  452. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
  453. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  454. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  455. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
  456. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
  457. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  458. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
  459. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  460. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  461. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
  462. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  463. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  464. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  465. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  466. package/src/aitabs/aitabs.js +1 -1
  467. package/src/aitabs/aitabsmainview.js +1 -1
  468. package/src/aitabs/tabs/aitabsview.js +1 -1
  469. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  470. package/src/aitabs/tabs/tabpanelview.js +1 -1
  471. package/src/errors.js +1 -1
  472. package/src/index.d.ts +1 -0
  473. package/src/index.js +1 -1
  474. package/theme/aiballoon/aiballoon.css +12 -0
  475. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  476. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
  477. package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
  478. package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
  479. package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
  480. package/theme/aichat/aichat-controls.css +11 -27
  481. package/theme/aichat/aichat.css +2 -3
  482. package/theme/aichat/aichatfeed.css +1 -27
  483. package/theme/aichat/aichathistory.css +12 -0
  484. package/theme/aichat/aisuggestioncontainer.css +5 -0
  485. package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
  486. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  487. package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
  488. package/theme/aireviewmode/aireviewmode.css +17 -7
  489. package/theme/aitabs/aitabsview.css +1 -1
  490. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  491. package/theme/aitabs/tabs/tabsview.css +1 -0
  492. package/theme/common/aibutton.css +27 -0
  493. package/theme/common/aiheader.css +14 -4
  494. package/theme/common/aitrackchanges.css +8 -1
  495. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
  496. package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
  497. package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
  498. package/src/aireviewmode/model/aireviewmodels.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3ffa84=_0x5324;(function(_0x18a6c6,_0x4bacfa){var _0x3e1fbe=_0x5324,_0x35237d=_0x18a6c6();while(!![]){try{var _0x54d416=-parseInt(_0x3e1fbe(0x13f))/0x1*(-parseInt(_0x3e1fbe(0x137))/0x2)+-parseInt(_0x3e1fbe(0x13d))/0x3*(-parseInt(_0x3e1fbe(0x140))/0x4)+-parseInt(_0x3e1fbe(0x139))/0x5+-parseInt(_0x3e1fbe(0x133))/0x6+parseInt(_0x3e1fbe(0x136))/0x7*(-parseInt(_0x3e1fbe(0x141))/0x8)+parseInt(_0x3e1fbe(0x13e))/0x9*(-parseInt(_0x3e1fbe(0x135))/0xa)+parseInt(_0x3e1fbe(0x144))/0xb;if(_0x54d416===_0x4bacfa)break;else _0x35237d['push'](_0x35237d['shift']());}catch(_0x23a148){_0x35237d['push'](_0x35237d['shift']());}}}(_0x52ae,0x37237));import{ObservableMixin as _0x1146b6}from'ckeditor5/src/utils.js';function _0x52ae(){var _0x160637=['53934CItJUg','196YLVPCu','27304hBjajN','title','updateTitle','9355995fTQzig','632724yQKEZT','pinned','4007540BMcKnu','483eowkit','10BTRTMh','set','876015LillVj','updatePinned','updatedAt','createdAt','1380rzeFTb','9VraeGV'];_0x52ae=function(){return _0x160637;};return _0x52ae();}function _0x5324(_0x3e6395,_0x5ba376){var _0x52ae2f=_0x52ae();return _0x5324=function(_0x53243b,_0x2eb6f7){_0x53243b=_0x53243b-0x133;var _0x1e15a8=_0x52ae2f[_0x53243b];return _0x1e15a8;},_0x5324(_0x3e6395,_0x5ba376);}import{escape as _0x4c4df9}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x1146b6(){['id'];[_0x3ffa84(0x13c)];constructor({id:_0x5b7f16,title:_0x1c3686,createdAt:_0x10cd4b,updatedAt:_0x40ac1d,pinned:_0x5d4a09}){var _0x32c84c=_0x3ffa84;super(),this['id']=_0x5b7f16,this[_0x32c84c(0x13c)]=new Date(_0x10cd4b),this[_0x32c84c(0x138)](_0x32c84c(0x142),_0x1c3686),this[_0x32c84c(0x138)](_0x32c84c(0x13b),_0x40ac1d?new Date(_0x40ac1d):null),this[_0x32c84c(0x138)](_0x32c84c(0x134),_0x5d4a09||!0x1);}[_0x3ffa84(0x143)](_0x6c2363){var _0xe5ce5f=_0x3ffa84;this[_0xe5ce5f(0x138)](_0xe5ce5f(0x142),_0x4c4df9(_0x6c2363)),this[_0xe5ce5f(0x13b)]=new Date();}[_0x3ffa84(0x13a)](_0x54193c){var _0xd1543=_0x3ffa84;this[_0xd1543(0x138)](_0xd1543(0x134),_0x54193c),this[_0xd1543(0x13b)]=new Date();}}
23
+ var _0x4f365c=_0x4f1a;(function(_0x37835d,_0xa96629){var _0x5829ac=_0x4f1a,_0x1bfd3e=_0x37835d();while(!![]){try{var _0x1db3fd=-parseInt(_0x5829ac(0x8e))/0x1*(parseInt(_0x5829ac(0x96))/0x2)+-parseInt(_0x5829ac(0x94))/0x3*(-parseInt(_0x5829ac(0x9a))/0x4)+-parseInt(_0x5829ac(0x8d))/0x5+-parseInt(_0x5829ac(0x97))/0x6+-parseInt(_0x5829ac(0x9b))/0x7*(-parseInt(_0x5829ac(0x99))/0x8)+-parseInt(_0x5829ac(0x90))/0x9*(parseInt(_0x5829ac(0x95))/0xa)+parseInt(_0x5829ac(0x8f))/0xb*(parseInt(_0x5829ac(0x8b))/0xc);if(_0x1db3fd===_0xa96629)break;else _0x1bfd3e['push'](_0x1bfd3e['shift']());}catch(_0x46d5d5){_0x1bfd3e['push'](_0x1bfd3e['shift']());}}}(_0x3646,0x9d662));function _0x4f1a(_0x35f23a,_0x152fe2){var _0x36463d=_0x3646();return _0x4f1a=function(_0x4f1ab7,_0xc701b1){_0x4f1ab7=_0x4f1ab7-0x8a;var _0x3462e9=_0x36463d[_0x4f1ab7];return _0x3462e9;},_0x4f1a(_0x35f23a,_0x152fe2);}import{ObservableMixin as _0x30adfb}from'ckeditor5/src/utils.js';import{escape as _0x594b94}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x30adfb(){['id'];[_0x4f365c(0x8c)];constructor({id:_0x5b2b86,title:_0x48753a,createdAt:_0x4c43de,updatedAt:_0xa3764c,pinned:_0x22207e}){var _0x93b5b2=_0x4f365c;super(),this['id']=_0x5b2b86,this[_0x93b5b2(0x8c)]=new Date(_0x4c43de),this[_0x93b5b2(0x91)](_0x93b5b2(0x98),_0x48753a),this[_0x93b5b2(0x91)](_0x93b5b2(0x93),_0xa3764c?new Date(_0xa3764c):null),this[_0x93b5b2(0x91)](_0x93b5b2(0x9c),_0x22207e||!0x1);}[_0x4f365c(0x8a)](_0x76cb85){var _0x394450=_0x4f365c;this[_0x394450(0x91)](_0x394450(0x98),_0x594b94(_0x76cb85)),this[_0x394450(0x93)]=new Date();}[_0x4f365c(0x92)](_0x47245e){var _0x5e0000=_0x4f365c;this[_0x5e0000(0x91)](_0x5e0000(0x9c),_0x47245e),this[_0x5e0000(0x93)]=new Date();}}function _0x3646(){var _0x4e800c=['28181avQcDO','30467569yKotBh','1260rfCgxr','set','updatePinned','updatedAt','25302OmTxJE','35140wQjBRN','58fbldsL','4520784QKorat','title','16aQIfpt','340JLYxfR','498239Pwwnlc','pinned','updateTitle','12XpiweX','createdAt','4608220xgBiOR'];_0x3646=function(){return _0x4e800c;};return _0x3646();}
@@ -11,7 +11,7 @@ interface AIChatHistoryListItemViewConfig {
11
11
  id: string;
12
12
  }
13
13
  declare const AIChatHistoryListItemView_base: import("ckeditor5/src/utils.js").Mixed<typeof ListItemView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
14
- export declare class AIChatHistoryListItemView extends AIChatHistoryListItemView_base {
14
+ export declare class AIChatHistoryListItemView extends /* #__PURE__ -- @preserve */ AIChatHistoryListItemView_base {
15
15
  id: string;
16
16
  isVisible: boolean;
17
17
  pinned: boolean;
@@ -20,4 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41cbe1=_0x2a84;(function(_0x1db10f,_0xa56788){const _0xc3132b=_0x2a84,_0x53ecbe=_0x1db10f();while(!![]){try{const _0x4ae513=-parseInt(_0xc3132b(0x186))/0x1+parseInt(_0xc3132b(0x19f))/0x2+parseInt(_0xc3132b(0x18f))/0x3+parseInt(_0xc3132b(0x17c))/0x4+parseInt(_0xc3132b(0x1a3))/0x5+parseInt(_0xc3132b(0x160))/0x6+-parseInt(_0xc3132b(0x153))/0x7*(parseInt(_0xc3132b(0x185))/0x8);if(_0x4ae513===_0xa56788)break;else _0x53ecbe['push'](_0x53ecbe['shift']());}catch(_0x2c54e3){_0x53ecbe['push'](_0x53ecbe['shift']());}}}(_0x19ec,0xa1303));import{ListItemView as _0x5b7f1b,HighlightedTextView as _0x58caad,ButtonView as _0x305c6e,ListView as _0x18879c,IconView as _0x318517,createDropdown as _0x2aeb69,InputTextView as _0x1dd6b3}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xb78682,IconPin as _0x18d578,IconCheck as _0x59f4a0,IconCancel as _0x1e9e73}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1d0c01,ConfirmMixin as _0xcbca61}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4158c4}from'es-toolkit/compat';function _0x2a84(_0x5377b8,_0x93b112){const _0x19ecd4=_0x19ec();return _0x2a84=function(_0x2a84de,_0xf1ca57){_0x2a84de=_0x2a84de-0x14b;let _0x33ac9e=_0x19ecd4[_0x2a84de];return _0x33ac9e;},_0x2a84(_0x5377b8,_0x93b112);}function _0x19ec(){const _0x4cc70c=['AI_CHAT_HISTORY_ACCEPT','5981580pUZiHL','_createMenuDropdownView','element','value','tiny','label','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-title','string','ck-ai-loader__text','AI_CHAT_HISTORY_REMOVE_CONFIRM','match','loadingState','ck-hidden','_titleView','ck-ai-chat-history__item-content','7uwrBnC','edit:cancel','editConversationTitle','isMatching','selectConversation','ck-ai-chat-history__item--active','add','Enter','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','mainContent','ck-ai-chat-history__item-row','updateLoadingState','_createCheckView','5112576osOhDb','listitem','clear','ck-ai-chat-history__item-date','focus','updateTitle','ck-ai-loader','_createEditInputView','execute','highlightText','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_REMOVING','_createCancelEditButtonView','ck-ai-chat-history__item-check','buttonView','ck-confirm-view-submit','panelView','setTemplate','key','text','items','withText','extendTemplate','locale','span','div','then','_commitEditInputValue','5250812PIIclF','_createSpinnerView','isVisible','AI_CHAT_HISTORY_LOADING_UNPINNING','removeConversation','showConfirm','setConversationPinned','AI_CHAT_HISTORY_PIN_BUTTON','_createPinButtonView','18533064DkNoHz','1152319fmvedZ','actions','_createAcceptEditButtonView','ck-ai-chat-history__item-check-container','ck-ai-chat-history__item--edit','fire','AI_CHAT_HISTORY_EDIT_NAME','change:isEdit','bindTemplate','413898ptTMSB','createCollection','pinned','ck-ai-chat-history__item-actions','panelPosition','ck-ai-chat-history__item-main-content','bind','set','AI_CHAT_HISTORY_CANCEL','isOn','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_PINNING','children','LOADING_LABELS','ck-confirm-view-cancel','addMany','1260196EXQxJG','isEdit','click'];_0x19ec=function(){return _0x4cc70c;};return _0x19ec();}import{AISpinnerView as _0x376cd1}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1c3e9a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0xcbca61(_0x5b7f1b){['id'];static [_0x41cbe1(0x19c)]={'remove':_0x41cbe1(0x16b),'rename':_0x41cbe1(0x1a9),'pin':_0x41cbe1(0x19a),'unpin':_0x41cbe1(0x17f)};[_0x41cbe1(0x187)];[_0x41cbe1(0x15c)];[_0x41cbe1(0x151)];constructor(_0x566818,_0x567401){const _0x113fc8=_0x41cbe1;super(_0x566818);const _0x48308f=this[_0x113fc8(0x18e)];this[_0x113fc8(0x196)](_0x113fc8(0x1a0),!0x1),this[_0x113fc8(0x196)](_0x113fc8(0x17e),!0x0),this[_0x113fc8(0x196)](_0x113fc8(0x191),!!_0x567401[_0x113fc8(0x191)]),this[_0x113fc8(0x196)](_0x113fc8(0x14f),null),this['id']=_0x567401['id'];const {title:_0x2cf76d,createdAt:_0x33d605,active:_0x58c23c=!0x1}=_0x567401;this[_0x113fc8(0x151)]=new _0x58caad(),this[_0x113fc8(0x151)][_0x113fc8(0x173)]=_0x2cf76d,this[_0x113fc8(0x151)][_0x113fc8(0x176)]({'attributes':{'class':[_0x113fc8(0x1aa)]}});const _0x50c5c1=this[_0x113fc8(0x15f)](),_0x4cb537=this[_0x113fc8(0x184)](_0x566818),_0x9f1a5=this[_0x113fc8(0x1a4)](),_0x7827e8=this[_0x113fc8(0x167)](_0x566818,_0x2cf76d),_0x1d61f3=this[_0x113fc8(0x188)](_0x566818,_0x7827e8),_0x3a6ba8=this[_0x113fc8(0x16c)](_0x566818,_0x7827e8);this[_0x113fc8(0x187)]=this[_0x113fc8(0x190)](),this[_0x113fc8(0x15c)]=this[_0x113fc8(0x190)](),this[_0x113fc8(0x15c)][_0x113fc8(0x159)](this[_0x113fc8(0x151)]),this[_0x113fc8(0x187)][_0x113fc8(0x159)](_0x4cb537),this[_0x113fc8(0x187)][_0x113fc8(0x159)](_0x9f1a5),this['on'](_0x113fc8(0x18d),(_0x452e63,_0x19d594,_0x30b1d2)=>{const _0x1b3cb8=_0x113fc8;this[_0x1b3cb8(0x187)][_0x1b3cb8(0x162)](),this[_0x1b3cb8(0x15c)][_0x1b3cb8(0x162)](),_0x30b1d2?(this[_0x1b3cb8(0x187)][_0x1b3cb8(0x159)](_0x1d61f3),this[_0x1b3cb8(0x187)][_0x1b3cb8(0x159)](_0x3a6ba8),this[_0x1b3cb8(0x15c)][_0x1b3cb8(0x159)](_0x7827e8),_0x7827e8[_0x1b3cb8(0x1a5)][_0x1b3cb8(0x164)]()):(this[_0x1b3cb8(0x187)][_0x1b3cb8(0x159)](_0x4cb537),this[_0x1b3cb8(0x187)][_0x1b3cb8(0x159)](_0x9f1a5),this[_0x1b3cb8(0x15c)][_0x1b3cb8(0x159)](this[_0x1b3cb8(0x151)]));}),this[_0x113fc8(0x171)]({'tag':'li','attributes':{'class':[_0x113fc8(0x16a),_0x58c23c?_0x113fc8(0x158):'',_0x48308f['if'](_0x113fc8(0x17e),_0x113fc8(0x150),_0x4f0977=>!_0x4f0977),_0x48308f['if'](_0x113fc8(0x1a0),_0x113fc8(0x18a))],'role':_0x113fc8(0x161)},'children':[{'tag':_0x113fc8(0x178),'attributes':{'class':[_0x113fc8(0x189)]},'children':[{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x16d),_0x48308f['if'](_0x113fc8(0x14f),_0x113fc8(0x150),_0x49093c=>!!_0x49093c)]},'children':_0x58c23c?[_0x50c5c1]:[]},{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x166),_0x48308f['if'](_0x113fc8(0x14f),_0x113fc8(0x150),_0x3dc4b9=>!_0x3dc4b9)]},'children':[this[_0x113fc8(0x17d)]()]}]},{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x15d)]},'children':[{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x152)]},'on':{'click':this[_0x113fc8(0x18e)]['to'](_0x113fc8(0x1a1))},'children':[{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x194)]},'children':[{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x1aa),_0x48308f['if'](_0x113fc8(0x14f),_0x113fc8(0x150),_0xfc0932=>!!_0xfc0932)]},'children':this[_0x113fc8(0x15c)]},{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x14c),_0x48308f['if'](_0x113fc8(0x14f),_0x113fc8(0x150),_0x17a28e=>!_0x17a28e)]},'children':[{'text':_0x48308f['to'](_0x113fc8(0x14f),_0x578120=>_0x578120?_0x1c3e9a(this[_0x113fc8(0x177)],AIChatHistoryListItemView[_0x113fc8(0x19c)][_0x578120]):'')}]}]},{'tag':_0x113fc8(0x178),'attributes':{'class':[_0x113fc8(0x163)]},'children':[_0x33d605]}]},{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x192)]},'children':this[_0x113fc8(0x187)]}]}]}),this['on'](_0x113fc8(0x1a1),()=>{const _0x45f11e=_0x113fc8;this[_0x45f11e(0x1a0)]||this[_0x45f11e(0x18b)](_0x45f11e(0x157),{'id':this['id']});});}[_0x41cbe1(0x165)](_0x30ee74){const _0xe2e6dc=_0x41cbe1;this[_0xe2e6dc(0x151)][_0xe2e6dc(0x173)]=_0x4158c4(_0x30ee74);}[_0x41cbe1(0x15e)](_0xea1a44,_0x218062){const _0x5f5cff=_0x41cbe1;this[_0x5f5cff(0x196)](_0x5f5cff(0x14f),_0x218062?_0xea1a44:null);}[_0x41cbe1(0x15f)](){const _0x522087=_0x41cbe1,_0x4bd468=new _0x318517();return _0x4bd468[_0x522087(0x196)]({'content':_0x59f4a0}),_0x4bd468;}[_0x41cbe1(0x184)](_0x4fb2a6){const _0x392aeb=_0x41cbe1,_0x3bb15b=new _0x305c6e(_0x4fb2a6);return _0x3bb15b[_0x392aeb(0x196)]({'label':_0x1c3e9a(_0x4fb2a6,_0x392aeb(0x183)),'icon':_0x18d578,'withText':!0x1,'tooltip':!0x0}),_0x3bb15b[_0x392aeb(0x195)](_0x392aeb(0x198))['to'](this,_0x392aeb(0x191)),_0x3bb15b['on'](_0x392aeb(0x168),()=>{const _0x26a8dd=_0x392aeb,_0x67c3b1=!this[_0x26a8dd(0x191)];this[_0x26a8dd(0x18b)](_0x26a8dd(0x182),{'id':this['id'],'pinned':_0x67c3b1});}),_0x3bb15b;}[_0x41cbe1(0x1a4)](){const _0x51c5fa=_0x41cbe1,_0x5ad35e=_0x2aeb69(this[_0x51c5fa(0x177)],_0x1d0c01),_0x53b0d8=_0x5ad35e[_0x51c5fa(0x170)][_0x51c5fa(0x19b)];_0x5ad35e[_0x51c5fa(0x16e)][_0x51c5fa(0x196)]({'label':_0x1c3e9a(this[_0x51c5fa(0x177)],_0x51c5fa(0x15b)),'icon':_0xb78682}),_0x5ad35e[_0x51c5fa(0x193)]='sw';const _0x355d14=new _0x305c6e(this[_0x51c5fa(0x177)]);_0x355d14[_0x51c5fa(0x1a8)]=_0x1c3e9a(this[_0x51c5fa(0x177)],_0x51c5fa(0x18c)),_0x355d14[_0x51c5fa(0x175)]=!0x0,_0x355d14['on'](_0x51c5fa(0x168),()=>{const _0x39d2fe=_0x51c5fa;this[_0x39d2fe(0x1a0)]=!0x0;});const _0x4305ac=new _0x305c6e(this[_0x51c5fa(0x177)]);_0x4305ac[_0x51c5fa(0x1a8)]=_0x1c3e9a(this[_0x51c5fa(0x177)],_0x51c5fa(0x199)),_0x4305ac[_0x51c5fa(0x175)]=!0x0,_0x4305ac['on'](_0x51c5fa(0x168),()=>{const _0x53db28=_0x51c5fa;this[_0x53db28(0x181)](_0x1c3e9a(this[_0x53db28(0x177)],_0x53db28(0x14d)),this[_0x53db28(0x1a5)])[_0x53db28(0x17a)](()=>{const _0x43d76a=_0x53db28;this[_0x43d76a(0x18b)](_0x43d76a(0x180),{'id':this['id']});});});const _0x4225a2=new _0x18879c(this[_0x51c5fa(0x177)]),_0x52c559=new _0x5b7f1b(this[_0x51c5fa(0x177)]);_0x52c559[_0x51c5fa(0x19b)][_0x51c5fa(0x159)](_0x355d14);const _0x41b905=new _0x5b7f1b(this[_0x51c5fa(0x177)]);return _0x41b905[_0x51c5fa(0x19b)][_0x51c5fa(0x159)](_0x4305ac),_0x4225a2[_0x51c5fa(0x174)][_0x51c5fa(0x19e)]([_0x52c559,_0x41b905]),_0x53b0d8[_0x51c5fa(0x159)](_0x4225a2),_0x5ad35e;}[_0x41cbe1(0x167)](_0x3da04a,_0x1c6062){const _0x13c27e=_0x41cbe1,_0x221fff=new _0x1dd6b3(_0x3da04a),_0xd436bb=_0x221fff[_0x13c27e(0x18e)];return _0x221fff[_0x13c27e(0x1a6)]=_0x1c6062,_0x221fff[_0x13c27e(0x176)]({'on':{'keydown':_0xd436bb['to'](_0x5b15d0=>{const _0x5ff89b=_0x13c27e;_0x5ff89b(0x15a)==_0x5b15d0[_0x5ff89b(0x172)]&&this[_0x5ff89b(0x17b)](_0x221fff);})}}),_0x221fff;}[_0x41cbe1(0x188)](_0xadd280,_0x3ac215){const _0x512bdc=_0x41cbe1,_0x517858=new _0x305c6e(_0xadd280);return _0x517858[_0x512bdc(0x196)]({'icon':_0x59f4a0,'withText':!0x1,'tooltip':_0x1c3e9a(_0xadd280,_0x512bdc(0x1a2))}),_0x517858[_0x512bdc(0x176)]({'attributes':{'class':[_0x512bdc(0x16f)]}}),_0x517858['on'](_0x512bdc(0x168),()=>{const _0x4a8b6b=_0x512bdc;this[_0x4a8b6b(0x17b)](_0x3ac215);}),_0x517858;}[_0x41cbe1(0x17b)](_0x43bd57){const _0x4acc78=_0x41cbe1,_0x20403a=_0x43bd57[_0x4acc78(0x1a5)][_0x4acc78(0x1a6)]||'';this[_0x4acc78(0x151)][_0x4acc78(0x173)]=_0x20403a,this[_0x4acc78(0x1a0)]=!0x1,this[_0x4acc78(0x18b)](_0x4acc78(0x155),{'id':this['id'],'title':_0x20403a});}[_0x41cbe1(0x16c)](_0x16e577,_0x55dbd3){const _0x37b9b8=_0x41cbe1,_0x1cf99f=new _0x305c6e(_0x16e577);return _0x1cf99f[_0x37b9b8(0x196)]({'icon':_0x1e9e73,'withText':!0x1,'tooltip':_0x1c3e9a(_0x16e577,_0x37b9b8(0x197))}),_0x1cf99f[_0x37b9b8(0x176)]({'attributes':{'class':[_0x37b9b8(0x19d)]}}),_0x1cf99f['on'](_0x37b9b8(0x168),()=>{const _0x2bb4f6=_0x37b9b8;this[_0x2bb4f6(0x1a0)]=!0x1,_0x55dbd3[_0x2bb4f6(0x1a6)]=this[_0x2bb4f6(0x151)][_0x2bb4f6(0x173)]||'',this[_0x2bb4f6(0x18b)](_0x2bb4f6(0x154));}),_0x1cf99f;}[_0x41cbe1(0x17d)](){const _0x15bc91=_0x41cbe1,_0x6dbcea=new _0x376cd1(_0x15bc91(0x1a7));return _0x6dbcea[_0x15bc91(0x17e)]=!0x0,_0x6dbcea;}[_0x41cbe1(0x156)](_0x443358){const _0x3c3451=_0x41cbe1;return this[_0x3c3451(0x151)]&&_0x3c3451(0x14b)==typeof this[_0x3c3451(0x151)][_0x3c3451(0x173)]&&this[_0x3c3451(0x151)][_0x3c3451(0x173)][_0x3c3451(0x14e)](_0x443358)?{'title':!0x0}:null;}[_0x41cbe1(0x169)](_0xadff0){const _0x184d4e=_0x41cbe1;this[_0x184d4e(0x151)][_0x184d4e(0x169)](_0xadff0);}}
23
+ const _0x252d12=_0x46cd;(function(_0x4d29b8,_0x3f385d){const _0x1ed99e=_0x46cd,_0x213d97=_0x4d29b8();while(!![]){try{const _0x5445ae=-parseInt(_0x1ed99e(0xf0))/0x1+-parseInt(_0x1ed99e(0x119))/0x2+parseInt(_0x1ed99e(0x136))/0x3+parseInt(_0x1ed99e(0xeb))/0x4+-parseInt(_0x1ed99e(0x12a))/0x5*(parseInt(_0x1ed99e(0x10c))/0x6)+-parseInt(_0x1ed99e(0xf6))/0x7+parseInt(_0x1ed99e(0x116))/0x8;if(_0x5445ae===_0x3f385d)break;else _0x213d97['push'](_0x213d97['shift']());}catch(_0x119cea){_0x213d97['push'](_0x213d97['shift']());}}}(_0x162f,0x9b2b4));function _0x162f(){const _0x241fcb=['12UgdeTa','value','loadingState','locale','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','updateTitle','ck-ai-loader__text','set','tiny','add','17550080gQYaXe','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_EDIT_NAME','2420918vRKWvS','then','items','div','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-main-content','ck-hidden','isMatching','focus','isEdit','text','updateLoadingState','panelPosition','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-check-container','ck-ai-loader','buttonView','1753740uDNTSV','execute','key','click','label','ck-confirm-view-cancel','editConversationTitle','LOADING_LABELS','AI_CHAT_HISTORY_REMOVE','fire','ck-ai-chat-history__item-row','ck-ai-chat-history__item-actions','1513305QQtBbr','isVisible','addMany','pinned','setConversationPinned','extendTemplate','clear','mainContent','string','actions','element','Enter','bindTemplate','panelView','_createCancelEditButtonView','setTemplate','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-check','AI_CHAT_HISTORY_LOADING_UNPINNING','_createMenuDropdownView','_createSpinnerView','4993368twRBoX','_createCheckView','ck-confirm-view-submit','_createEditInputView','ck-ai-chat-history__item--edit','527984XbhNiu','AI_CHAT_HISTORY_LOADING_PINNING','children','_createPinButtonView','ck-ai-chat-history__item-date','match','6097182bHGFsO','edit:cancel','_commitEditInputValue','bind','span','removeConversation','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item--active','_titleView','showConfirm','ck-ai-chat-history__item-content','withText','ck-ai-chat-history__item','listitem','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_ACCEPT','highlightText','createCollection','_createAcceptEditButtonView','isOn','change:isEdit','selectConversation'];_0x162f=function(){return _0x241fcb;};return _0x162f();}function _0x46cd(_0x345285,_0x348814){const _0x162f38=_0x162f();return _0x46cd=function(_0x46cd50,_0x79e8c2){_0x46cd50=_0x46cd50-0xdd;let _0x5529f8=_0x162f38[_0x46cd50];return _0x5529f8;},_0x46cd(_0x345285,_0x348814);}import{ListItemView as _0x3c3b3a,HighlightedTextView as _0x1d6134,ButtonView as _0x422661,ListView as _0x7a0c9b,IconView as _0x17513f,createDropdown as _0x587437,InputTextView as _0x37cfd5}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x451370,IconPin as _0x1be37b,IconCheck as _0x36da84,IconCancel as _0x46b32f}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1d051f,ConfirmMixin as _0x9881a6}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4f1714}from'es-toolkit/compat';import{AISpinnerView as _0x5b21aa}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1f8046}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x9881a6(_0x3c3b3a){['id'];static [_0x252d12(0x131)]={'remove':_0x252d12(0x104),'rename':_0x252d12(0xfc),'pin':_0x252d12(0xf1),'unpin':_0x252d12(0xe8)};[_0x252d12(0xdf)];[_0x252d12(0xdd)];[_0x252d12(0xfe)];constructor(_0x5970c8,_0x4935c9){const _0x2e2750=_0x252d12;super(_0x5970c8);const _0x1b9ae8=this[_0x2e2750(0xe2)];this[_0x2e2750(0x113)](_0x2e2750(0x122),!0x1),this[_0x2e2750(0x113)](_0x2e2750(0x137),!0x0),this[_0x2e2750(0x113)](_0x2e2750(0x139),!!_0x4935c9[_0x2e2750(0x139)]),this[_0x2e2750(0x113)](_0x2e2750(0x10e),null),this['id']=_0x4935c9['id'];const {title:_0x285dd6,createdAt:_0x4b2ef6,active:_0x254412=!0x1}=_0x4935c9;this[_0x2e2750(0xfe)]=new _0x1d6134(),this[_0x2e2750(0xfe)][_0x2e2750(0x123)]=_0x285dd6,this[_0x2e2750(0xfe)][_0x2e2750(0x13b)]({'attributes':{'class':[_0x2e2750(0x117)]}});const _0x386d57=this[_0x2e2750(0xec)](),_0xef7b15=this[_0x2e2750(0xf3)](_0x5970c8),_0x2e876c=this[_0x2e2750(0xe9)](),_0x3564f8=this[_0x2e2750(0xee)](_0x5970c8,_0x285dd6),_0x1c8be4=this[_0x2e2750(0x108)](_0x5970c8,_0x3564f8),_0x12b34a=this[_0x2e2750(0xe4)](_0x5970c8,_0x3564f8);this[_0x2e2750(0xdf)]=this[_0x2e2750(0x107)](),this[_0x2e2750(0xdd)]=this[_0x2e2750(0x107)](),this[_0x2e2750(0xdd)][_0x2e2750(0x115)](this[_0x2e2750(0xfe)]),this[_0x2e2750(0xdf)][_0x2e2750(0x115)](_0xef7b15),this[_0x2e2750(0xdf)][_0x2e2750(0x115)](_0x2e876c),this['on'](_0x2e2750(0x10a),(_0x5876ae,_0x4c6467,_0x133ce2)=>{const _0x4b7121=_0x2e2750;this[_0x4b7121(0xdf)][_0x4b7121(0x13c)](),this[_0x4b7121(0xdd)][_0x4b7121(0x13c)](),_0x133ce2?(this[_0x4b7121(0xdf)][_0x4b7121(0x115)](_0x1c8be4),this[_0x4b7121(0xdf)][_0x4b7121(0x115)](_0x12b34a),this[_0x4b7121(0xdd)][_0x4b7121(0x115)](_0x3564f8),_0x3564f8[_0x4b7121(0xe0)][_0x4b7121(0x121)]()):(this[_0x4b7121(0xdf)][_0x4b7121(0x115)](_0xef7b15),this[_0x4b7121(0xdf)][_0x4b7121(0x115)](_0x2e876c),this[_0x4b7121(0xdd)][_0x4b7121(0x115)](this[_0x4b7121(0xfe)]));}),this[_0x2e2750(0xe5)]({'tag':'li','attributes':{'class':[_0x2e2750(0x102),_0x254412?_0x2e2750(0xfd):'',_0x1b9ae8['if'](_0x2e2750(0x137),_0x2e2750(0x11f),_0x334843=>!_0x334843),_0x1b9ae8['if'](_0x2e2750(0x122),_0x2e2750(0xef))],'role':_0x2e2750(0x103)},'children':[{'tag':_0x2e2750(0xfa),'attributes':{'class':[_0x2e2750(0x127)]},'children':[{'tag':_0x2e2750(0x11c),'attributes':{'class':[_0x2e2750(0xe7),_0x1b9ae8['if'](_0x2e2750(0x10e),_0x2e2750(0x11f),_0x4ea022=>!!_0x4ea022)]},'children':_0x254412?[_0x386d57]:[]},{'tag':_0x2e2750(0x11c),'attributes':{'class':[_0x2e2750(0x128),_0x1b9ae8['if'](_0x2e2750(0x10e),_0x2e2750(0x11f),_0x1a9a39=>!_0x1a9a39)]},'children':[this[_0x2e2750(0xea)]()]}]},{'tag':_0x2e2750(0x11c),'attributes':{'class':[_0x2e2750(0x134)]},'children':[{'tag':_0x2e2750(0x11c),'attributes':{'class':[_0x2e2750(0x100)]},'on':{'click':this[_0x2e2750(0xe2)]['to'](_0x2e2750(0x12d))},'children':[{'tag':_0x2e2750(0x11c),'attributes':{'class':[_0x2e2750(0x11e)]},'children':[{'tag':_0x2e2750(0x11c),'attributes':{'class':[_0x2e2750(0x117),_0x1b9ae8['if'](_0x2e2750(0x10e),_0x2e2750(0x11f),_0x5180f6=>!!_0x5180f6)]},'children':this[_0x2e2750(0xdd)]},{'tag':_0x2e2750(0x11c),'attributes':{'class':[_0x2e2750(0x112),_0x1b9ae8['if'](_0x2e2750(0x10e),_0x2e2750(0x11f),_0x277e44=>!_0x277e44)]},'children':[{'text':_0x1b9ae8['to'](_0x2e2750(0x10e),_0x496672=>_0x496672?_0x1f8046(this[_0x2e2750(0x10f)],AIChatHistoryListItemView[_0x2e2750(0x131)][_0x496672]):'')}]}]},{'tag':_0x2e2750(0xfa),'attributes':{'class':[_0x2e2750(0xf4)]},'children':[_0x4b2ef6]}]},{'tag':_0x2e2750(0x11c),'attributes':{'class':[_0x2e2750(0x135)]},'children':this[_0x2e2750(0xdf)]}]}]}),this['on'](_0x2e2750(0x12d),()=>{const _0x201617=_0x2e2750;this[_0x201617(0x122)]||this[_0x201617(0x133)](_0x201617(0x10b),{'id':this['id']});});}[_0x252d12(0x111)](_0x475854){const _0x21aa66=_0x252d12;this[_0x21aa66(0xfe)][_0x21aa66(0x123)]=_0x4f1714(_0x475854);}[_0x252d12(0x124)](_0x247609,_0x32eb5b){const _0x88d8fa=_0x252d12;this[_0x88d8fa(0x113)](_0x88d8fa(0x10e),_0x32eb5b?_0x247609:null);}[_0x252d12(0xec)](){const _0x540b83=_0x252d12,_0xe8c764=new _0x17513f();return _0xe8c764[_0x540b83(0x113)]({'content':_0x36da84}),_0xe8c764;}[_0x252d12(0xf3)](_0x5c5e1d){const _0x321f98=_0x252d12,_0xcc2d1f=new _0x422661(_0x5c5e1d);return _0xcc2d1f[_0x321f98(0x113)]({'label':_0x1f8046(_0x5c5e1d,_0x321f98(0xe6)),'icon':_0x1be37b,'withText':!0x1,'tooltip':!0x0}),_0xcc2d1f[_0x321f98(0xf9)](_0x321f98(0x109))['to'](this,_0x321f98(0x139)),_0xcc2d1f['on'](_0x321f98(0x12b),()=>{const _0x29c122=_0x321f98,_0x3249a3=!this[_0x29c122(0x139)];this[_0x29c122(0x133)](_0x29c122(0x13a),{'id':this['id'],'pinned':_0x3249a3});}),_0xcc2d1f;}[_0x252d12(0xe9)](){const _0x1b593b=_0x252d12,_0x5f35c0=_0x587437(this[_0x1b593b(0x10f)],_0x1d051f),_0x2822d3=_0x5f35c0[_0x1b593b(0xe3)][_0x1b593b(0xf2)];_0x5f35c0[_0x1b593b(0x129)][_0x1b593b(0x113)]({'label':_0x1f8046(this[_0x1b593b(0x10f)],_0x1b593b(0x110)),'icon':_0x451370}),_0x5f35c0[_0x1b593b(0x125)]='sw';const _0x4b324e=new _0x422661(this[_0x1b593b(0x10f)]);_0x4b324e[_0x1b593b(0x12e)]=_0x1f8046(this[_0x1b593b(0x10f)],_0x1b593b(0x118)),_0x4b324e[_0x1b593b(0x101)]=!0x0,_0x4b324e['on'](_0x1b593b(0x12b),()=>{const _0x41f28a=_0x1b593b;this[_0x41f28a(0x122)]=!0x0;});const _0x46602f=new _0x422661(this[_0x1b593b(0x10f)]);_0x46602f[_0x1b593b(0x12e)]=_0x1f8046(this[_0x1b593b(0x10f)],_0x1b593b(0x132)),_0x46602f[_0x1b593b(0x101)]=!0x0,_0x46602f['on'](_0x1b593b(0x12b),()=>{const _0x5dec20=_0x1b593b;this[_0x5dec20(0xff)](_0x1f8046(this[_0x5dec20(0x10f)],_0x5dec20(0x126)),this[_0x5dec20(0xe0)])[_0x5dec20(0x11a)](()=>{const _0xeb6fa1=_0x5dec20;this[_0xeb6fa1(0x133)](_0xeb6fa1(0xfb),{'id':this['id']});});});const _0x118878=new _0x7a0c9b(this[_0x1b593b(0x10f)]),_0x2b1156=new _0x3c3b3a(this[_0x1b593b(0x10f)]);_0x2b1156[_0x1b593b(0xf2)][_0x1b593b(0x115)](_0x4b324e);const _0x468d62=new _0x3c3b3a(this[_0x1b593b(0x10f)]);return _0x468d62[_0x1b593b(0xf2)][_0x1b593b(0x115)](_0x46602f),_0x118878[_0x1b593b(0x11b)][_0x1b593b(0x138)]([_0x2b1156,_0x468d62]),_0x2822d3[_0x1b593b(0x115)](_0x118878),_0x5f35c0;}[_0x252d12(0xee)](_0x5b42e5,_0x25649c){const _0x456232=_0x252d12,_0x40913a=new _0x37cfd5(_0x5b42e5),_0x50ba0f=_0x40913a[_0x456232(0xe2)];return _0x40913a[_0x456232(0x10d)]=_0x25649c,_0x40913a[_0x456232(0x13b)]({'on':{'keydown':_0x50ba0f['to'](_0x9787de=>{const _0x265937=_0x456232;_0x265937(0xe1)==_0x9787de[_0x265937(0x12c)]&&this[_0x265937(0xf8)](_0x40913a);})}}),_0x40913a;}[_0x252d12(0x108)](_0x1da299,_0x109392){const _0x274f39=_0x252d12,_0x18d827=new _0x422661(_0x1da299);return _0x18d827[_0x274f39(0x113)]({'icon':_0x36da84,'withText':!0x1,'tooltip':_0x1f8046(_0x1da299,_0x274f39(0x105))}),_0x18d827[_0x274f39(0x13b)]({'attributes':{'class':[_0x274f39(0xed)]}}),_0x18d827['on'](_0x274f39(0x12b),()=>{const _0x40b38b=_0x274f39;this[_0x40b38b(0xf8)](_0x109392);}),_0x18d827;}[_0x252d12(0xf8)](_0x25bc5d){const _0x19c093=_0x252d12,_0x2c94bb=_0x25bc5d[_0x19c093(0xe0)][_0x19c093(0x10d)]||'';this[_0x19c093(0xfe)][_0x19c093(0x123)]=_0x2c94bb,this[_0x19c093(0x122)]=!0x1,this[_0x19c093(0x133)](_0x19c093(0x130),{'id':this['id'],'title':_0x2c94bb});}[_0x252d12(0xe4)](_0x55b9f6,_0x3cf692){const _0x4a4859=_0x252d12,_0x3acd57=new _0x422661(_0x55b9f6);return _0x3acd57[_0x4a4859(0x113)]({'icon':_0x46b32f,'withText':!0x1,'tooltip':_0x1f8046(_0x55b9f6,_0x4a4859(0x11d))}),_0x3acd57[_0x4a4859(0x13b)]({'attributes':{'class':[_0x4a4859(0x12f)]}}),_0x3acd57['on'](_0x4a4859(0x12b),()=>{const _0x42ffb6=_0x4a4859;this[_0x42ffb6(0x122)]=!0x1,_0x3cf692[_0x42ffb6(0x10d)]=this[_0x42ffb6(0xfe)][_0x42ffb6(0x123)]||'',this[_0x42ffb6(0x133)](_0x42ffb6(0xf7));}),_0x3acd57;}[_0x252d12(0xea)](){const _0x4a5b14=_0x252d12,_0x11d603=new _0x5b21aa(_0x4a5b14(0x114));return _0x11d603[_0x4a5b14(0x137)]=!0x0,_0x11d603;}[_0x252d12(0x120)](_0x11bd78){const _0x1f71de=_0x252d12;return this[_0x1f71de(0xfe)]&&_0x1f71de(0xde)==typeof this[_0x1f71de(0xfe)][_0x1f71de(0x123)]&&this[_0x1f71de(0xfe)][_0x1f71de(0x123)][_0x1f71de(0xf5)](_0x11bd78)?{'title':!0x0}:null;}[_0x252d12(0x106)](_0x398203){const _0x45a24f=_0x252d12;this[_0x45a24f(0xfe)][_0x45a24f(0x106)](_0x398203);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1954c9=_0x1f0d;function _0x402f(){const _0x188709=['set','290457FITAeL','31144HycioT','ck-ai-chat-history__section','splice','324HzaPQR','isMatching','36VNXrVJ','bindTemplate','_itemsListView','find','itemsViews','title','1005852mZTglK','indexOf','length','689122NDNhsv','20658560APdASg','div','ck-ai-chat-history__section-title','removeItem','highlightText','4XuHCoy','items','addMany','filter','getItem','1671401pcaUol','isVisible','ck-hidden','4098425tiGCXZ','remove','setTemplate'];_0x402f=function(){return _0x188709;};return _0x402f();}(function(_0x5d3e29,_0x3b80f3){const _0x401663=_0x1f0d,_0x53d967=_0x5d3e29();while(!![]){try{const _0x427740=-parseInt(_0x401663(0x1da))/0x1+parseInt(_0x401663(0x1cc))/0x2+-parseInt(_0x401663(0x1c0))/0x3+parseInt(_0x401663(0x1d5))/0x4*(parseInt(_0x401663(0x1dd))/0x5)+-parseInt(_0x401663(0x1c6))/0x6*(parseInt(_0x401663(0x1cf))/0x7)+parseInt(_0x401663(0x1c1))/0x8*(-parseInt(_0x401663(0x1c4))/0x9)+parseInt(_0x401663(0x1d0))/0xa;if(_0x427740===_0x3b80f3)break;else _0x53d967['push'](_0x53d967['shift']());}catch(_0x36ffd5){_0x53d967['push'](_0x53d967['shift']());}}}(_0x402f,0xd924f));function _0x1f0d(_0x32f9b1,_0x10591a){const _0x402f2e=_0x402f();return _0x1f0d=function(_0x1f0d6d,_0x12ae8d){_0x1f0d6d=_0x1f0d6d-0x1bf;let _0x5a6707=_0x402f2e[_0x1f0d6d];return _0x5a6707;},_0x1f0d(_0x32f9b1,_0x10591a);}import{ListItemView as _0x10570c,View as _0x19dcad,ListView as _0x1ac39b}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x10570c{[_0x1954c9(0x1cb)];[_0x1954c9(0x1ca)];[_0x1954c9(0x1c8)];constructor(_0x260adc,{title:_0x3b1ce1,items:_0x589ede}){const _0x34bda0=_0x1954c9;super(_0x260adc);const _0x4b9303=this[_0x34bda0(0x1c7)];this[_0x34bda0(0x1bf)](_0x34bda0(0x1db),!0x0),this[_0x34bda0(0x1cb)]=_0x3b1ce1,this[_0x34bda0(0x1ca)]=_0x589ede;const _0x10af70=new _0x19dcad(_0x260adc);_0x10af70[_0x34bda0(0x1df)]({'tag':_0x34bda0(0x1d1),'attributes':{'class':[_0x34bda0(0x1d2)]},'children':[this[_0x34bda0(0x1cb)]]}),this[_0x34bda0(0x1c8)]=new _0x1ac39b(_0x260adc),this[_0x34bda0(0x1c8)][_0x34bda0(0x1d6)][_0x34bda0(0x1d7)](this[_0x34bda0(0x1ca)]),this[_0x34bda0(0x1df)]({'tag':'li','attributes':{'class':[_0x34bda0(0x1c2),_0x4b9303['if'](_0x34bda0(0x1db),_0x34bda0(0x1dc),_0x4fe191=>!_0x4fe191)]},'children':[_0x10af70,this[_0x34bda0(0x1c8)]]});}[_0x1954c9(0x1d8)](_0x3681dd){const _0x28e5ea=_0x1954c9,_0x19ce17=this[_0x28e5ea(0x1ca)][_0x28e5ea(0x1ce)];let _0x19df3a=0x0;for(const _0x1c4b25 of this[_0x28e5ea(0x1ca)]){if(_0x3681dd){const _0x4fe8f8=_0x1c4b25[_0x28e5ea(0x1c5)](_0x3681dd);_0x1c4b25[_0x28e5ea(0x1db)]=!!_0x4fe8f8,_0x1c4b25[_0x28e5ea(0x1d4)](_0x3681dd);}else _0x1c4b25[_0x28e5ea(0x1db)]=!0x0,_0x1c4b25[_0x28e5ea(0x1d4)](null);_0x1c4b25[_0x28e5ea(0x1db)]&&_0x19df3a++;}return this[_0x28e5ea(0x1db)]=_0x19df3a>0x0,{'resultsCount':_0x19df3a,'totalItemsCount':_0x19ce17};}[_0x1954c9(0x1d9)](_0x1274dc){const _0x3bd7df=_0x1954c9;return this[_0x3bd7df(0x1ca)][_0x3bd7df(0x1c9)](_0x5a9d79=>_0x5a9d79['id']===_0x1274dc);}[_0x1954c9(0x1d3)](_0x5f334e){const _0x399512=_0x1954c9,_0x3fa928=this[_0x399512(0x1ca)][_0x399512(0x1cd)](_0x5f334e);-0x1!==_0x3fa928&&(this[_0x399512(0x1ca)][_0x399512(0x1c3)](_0x3fa928,0x1),this[_0x399512(0x1c8)][_0x399512(0x1d6)][_0x399512(0x1de)](_0x5f334e));}}
23
+ const _0x29d505=_0x6d32;function _0x6d32(_0x159938,_0xa6bcfc){const _0x3d7b97=_0x3d7b();return _0x6d32=function(_0x6d329e,_0x156b8c){_0x6d329e=_0x6d329e-0x19e;let _0x3cc860=_0x3d7b97[_0x6d329e];return _0x3cc860;},_0x6d32(_0x159938,_0xa6bcfc);}function _0x3d7b(){const _0x552a0c=['filter','set','indexOf','isMatching','ck-ai-chat-history__section','removeItem','div','itemsViews','splice','30YaKzou','7lDiNWO','highlightText','isVisible','addMany','1452867tcREia','find','length','23056160vfeCyA','setTemplate','remove','ck-ai-chat-history__section-title','getItem','ck-hidden','title','237372QZctfi','items','12879873uwHMcQ','4Zjfpwb','1254936cvlCHc','bindTemplate','6053736UcBNin','_itemsListView','198408pTkvrv'];_0x3d7b=function(){return _0x552a0c;};return _0x3d7b();}(function(_0x40f253,_0x414050){const _0x441881=_0x6d32,_0x4189b6=_0x40f253();while(!![]){try{const _0x5ea9f0=-parseInt(_0x441881(0x1b7))/0x1+parseInt(_0x441881(0x1ba))/0x2*(parseInt(_0x441881(0x1ad))/0x3)+-parseInt(_0x441881(0x19e))/0x4*(parseInt(_0x441881(0x1a8))/0x5)+parseInt(_0x441881(0x1bd))/0x6+parseInt(_0x441881(0x1a9))/0x7*(parseInt(_0x441881(0x1bb))/0x8)+parseInt(_0x441881(0x1b9))/0x9+-parseInt(_0x441881(0x1b0))/0xa;if(_0x5ea9f0===_0x414050)break;else _0x4189b6['push'](_0x4189b6['shift']());}catch(_0x53e3f5){_0x4189b6['push'](_0x4189b6['shift']());}}}(_0x3d7b,0xb0fa2));import{ListItemView as _0x45d622,View as _0x543bcf,ListView as _0x2711ec}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x45d622{[_0x29d505(0x1b6)];[_0x29d505(0x1a6)];[_0x29d505(0x1be)];constructor(_0x4afe1d,{title:_0x50277e,items:_0x123efd}){const _0x5d9d7c=_0x29d505;super(_0x4afe1d);const _0x4f1608=this[_0x5d9d7c(0x1bc)];this[_0x5d9d7c(0x1a0)](_0x5d9d7c(0x1ab),!0x0),this[_0x5d9d7c(0x1b6)]=_0x50277e,this[_0x5d9d7c(0x1a6)]=_0x123efd;const _0x50da57=new _0x543bcf(_0x4afe1d);_0x50da57[_0x5d9d7c(0x1b1)]({'tag':_0x5d9d7c(0x1a5),'attributes':{'class':[_0x5d9d7c(0x1b3)]},'children':[this[_0x5d9d7c(0x1b6)]]}),this[_0x5d9d7c(0x1be)]=new _0x2711ec(_0x4afe1d),this[_0x5d9d7c(0x1be)][_0x5d9d7c(0x1b8)][_0x5d9d7c(0x1ac)](this[_0x5d9d7c(0x1a6)]),this[_0x5d9d7c(0x1b1)]({'tag':'li','attributes':{'class':[_0x5d9d7c(0x1a3),_0x4f1608['if'](_0x5d9d7c(0x1ab),_0x5d9d7c(0x1b5),_0xed5f6c=>!_0xed5f6c)]},'children':[_0x50da57,this[_0x5d9d7c(0x1be)]]});}[_0x29d505(0x19f)](_0x1138ce){const _0x17fdaa=_0x29d505,_0x3337c9=this[_0x17fdaa(0x1a6)][_0x17fdaa(0x1af)];let _0x1cf75e=0x0;for(const _0xad6a40 of this[_0x17fdaa(0x1a6)]){if(_0x1138ce){const _0x1cf17d=_0xad6a40[_0x17fdaa(0x1a2)](_0x1138ce);_0xad6a40[_0x17fdaa(0x1ab)]=!!_0x1cf17d,_0xad6a40[_0x17fdaa(0x1aa)](_0x1138ce);}else _0xad6a40[_0x17fdaa(0x1ab)]=!0x0,_0xad6a40[_0x17fdaa(0x1aa)](null);_0xad6a40[_0x17fdaa(0x1ab)]&&_0x1cf75e++;}return this[_0x17fdaa(0x1ab)]=_0x1cf75e>0x0,{'resultsCount':_0x1cf75e,'totalItemsCount':_0x3337c9};}[_0x29d505(0x1b4)](_0x182aa2){const _0x56d0d4=_0x29d505;return this[_0x56d0d4(0x1a6)][_0x56d0d4(0x1ae)](_0x33ac27=>_0x33ac27['id']===_0x182aa2);}[_0x29d505(0x1a4)](_0x488555){const _0x87be4e=_0x29d505,_0x3dcce2=this[_0x87be4e(0x1a6)][_0x87be4e(0x1a1)](_0x488555);-0x1!==_0x3dcce2&&(this[_0x87be4e(0x1a6)][_0x87be4e(0x1a7)](_0x3dcce2,0x1),this[_0x87be4e(0x1be)][_0x87be4e(0x1b8)][_0x87be4e(0x1b2)](_0x488555));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x32bf(_0x2e9be2,_0xaff9e1){const _0x57f1d9=_0x57f1();return _0x32bf=function(_0x32bf59,_0x2d9eae){_0x32bf59=_0x32bf59-0x1a2;let _0x597884=_0x57f1d9[_0x32bf59];return _0x597884;},_0x32bf(_0x2e9be2,_0xaff9e1);}const _0x3f6336=_0x32bf;(function(_0x2672b3,_0x2f8809){const _0x456ac1=_0x32bf,_0x41b50f=_0x2672b3();while(!![]){try{const _0x55a7f3=parseInt(_0x456ac1(0x1a2))/0x1*(parseInt(_0x456ac1(0x1a4))/0x2)+-parseInt(_0x456ac1(0x1ae))/0x3*(-parseInt(_0x456ac1(0x1a3))/0x4)+-parseInt(_0x456ac1(0x1a7))/0x5*(parseInt(_0x456ac1(0x1a6))/0x6)+-parseInt(_0x456ac1(0x1ad))/0x7+parseInt(_0x456ac1(0x1b0))/0x8+parseInt(_0x456ac1(0x1b2))/0x9*(parseInt(_0x456ac1(0x1b1))/0xa)+-parseInt(_0x456ac1(0x1a8))/0xb*(parseInt(_0x456ac1(0x1af))/0xc);if(_0x55a7f3===_0x2f8809)break;else _0x41b50f['push'](_0x41b50f['shift']());}catch(_0x1a6d52){_0x41b50f['push'](_0x41b50f['shift']());}}}(_0x57f1,0xbb2b2));import{ListView as _0x344ddd}from'ckeditor5/src/ui.js';function _0x57f1(){const _0x79a653=['1369008PSwKiL','filter','1TQJEdx','30696EXQezo','812036yZiYFV','sections','912rMtJej','7415olajXU','6941mufTXS','extendTemplate','ck-ai-chat-history__sections','addMany','items','6374984pGzXXE','135YWKzDd','360iPzNhX','8145920mJqeFj','10nIgyRH'];_0x57f1=function(){return _0x79a653;};return _0x57f1();}export class AIChatHistorySectionListView extends _0x344ddd{[_0x3f6336(0x1a5)];constructor(_0x2d7af3,_0x31b3ef){const _0x1ac9df=_0x3f6336;super(_0x2d7af3),this[_0x1ac9df(0x1a5)]=_0x31b3ef,this[_0x1ac9df(0x1ac)][_0x1ac9df(0x1ab)](this[_0x1ac9df(0x1a5)]),this[_0x1ac9df(0x1a9)]({'attributes':{'class':[_0x1ac9df(0x1aa)]}});}[_0x3f6336(0x1b3)](_0x34d5a8){const _0x337d76=_0x3f6336;let _0x1e76ef=0x0,_0x339e28=0x0;for(const _0x428d01 of this[_0x337d76(0x1a5)]){const {resultsCount:_0x2838d7,totalItemsCount:_0x45a0e7}=_0x428d01[_0x337d76(0x1b3)](_0x34d5a8);_0x1e76ef+=_0x2838d7,_0x339e28+=_0x45a0e7;}return{'resultsCount':_0x1e76ef,'totalItemsCount':_0x339e28};}}
23
+ const _0x18b0d6=_0x5134;function _0x400c(){const _0x380d4e=['filter','187leGHQc','162252niFvSz','sections','4NBWzPo','423SMqAXu','3tMEZgf','578328DaFCTl','extendTemplate','6234584aKCbHG','ck-ai-chat-history__sections','802156RdRfgF','8610714bHFsZG','237690PyfPaI','60LUlvwY','items','addMany','129082bBtvuR'];_0x400c=function(){return _0x380d4e;};return _0x400c();}(function(_0x3938c6,_0x1075b5){const _0x6cb8a0=_0x5134,_0xdbcf8b=_0x3938c6();while(!![]){try{const _0x4d632d=-parseInt(_0x6cb8a0(0xb5))/0x1*(parseInt(_0x6cb8a0(0xa8))/0x2)+-parseInt(_0x6cb8a0(0xaa))/0x3*(-parseInt(_0x6cb8a0(0xaf))/0x4)+parseInt(_0x6cb8a0(0xb2))/0x5*(parseInt(_0x6cb8a0(0xab))/0x6)+parseInt(_0x6cb8a0(0xb0))/0x7+-parseInt(_0x6cb8a0(0xad))/0x8+parseInt(_0x6cb8a0(0xa9))/0x9*(-parseInt(_0x6cb8a0(0xb1))/0xa)+-parseInt(_0x6cb8a0(0xb7))/0xb*(-parseInt(_0x6cb8a0(0xa6))/0xc);if(_0x4d632d===_0x1075b5)break;else _0xdbcf8b['push'](_0xdbcf8b['shift']());}catch(_0x322046){_0xdbcf8b['push'](_0xdbcf8b['shift']());}}}(_0x400c,0xa1bfc));import{ListView as _0x493cf7}from'ckeditor5/src/ui.js';function _0x5134(_0x1ad35a,_0x255b76){const _0x400cb9=_0x400c();return _0x5134=function(_0x513465,_0x5848d6){_0x513465=_0x513465-0xa6;let _0x5e5bdf=_0x400cb9[_0x513465];return _0x5e5bdf;},_0x5134(_0x1ad35a,_0x255b76);}export class AIChatHistorySectionListView extends _0x493cf7{[_0x18b0d6(0xa7)];constructor(_0x37b659,_0x29e673){const _0x75a7ca=_0x18b0d6;super(_0x37b659),this[_0x75a7ca(0xa7)]=_0x29e673,this[_0x75a7ca(0xb3)][_0x75a7ca(0xb4)](this[_0x75a7ca(0xa7)]),this[_0x75a7ca(0xac)]({'attributes':{'class':[_0x75a7ca(0xae)]}});}[_0x18b0d6(0xb6)](_0x25e321){const _0x45b895=_0x18b0d6;let _0x1ab708=0x0,_0x953e38=0x0;for(const _0x2fa8ef of this[_0x45b895(0xa7)]){const {resultsCount:_0x3191ef,totalItemsCount:_0x332920}=_0x2fa8ef[_0x45b895(0xb6)](_0x25e321);_0x1ab708+=_0x3191ef,_0x953e38+=_0x332920;}return{'resultsCount':_0x1ab708,'totalItemsCount':_0x953e38};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x9070(_0x3ee975,_0x330f96){const _0x29c7f9=_0x29c7();return _0x9070=function(_0x907045,_0x287954){_0x907045=_0x907045-0x10d;let _0x238fa8=_0x29c7f9[_0x907045];return _0x238fa8;},_0x9070(_0x3ee975,_0x330f96);}const _0x32357c=_0x9070;(function(_0x392a4b,_0x25eb92){const _0x2573b5=_0x9070,_0x444ea5=_0x392a4b();while(!![]){try{const _0x25ea2a=-parseInt(_0x2573b5(0x146))/0x1+-parseInt(_0x2573b5(0x154))/0x2+parseInt(_0x2573b5(0x10f))/0x3+parseInt(_0x2573b5(0x124))/0x4*(parseInt(_0x2573b5(0x11f))/0x5)+parseInt(_0x2573b5(0x13c))/0x6+parseInt(_0x2573b5(0x141))/0x7+-parseInt(_0x2573b5(0x12a))/0x8;if(_0x25ea2a===_0x25eb92)break;else _0x444ea5['push'](_0x444ea5['shift']());}catch(_0x34c47d){_0x444ea5['push'](_0x444ea5['shift']());}}}(_0x29c7,0x81375));import{View as _0x54a589,SearchTextView as _0x3222d4,FormHeaderView as _0x86cf60,ButtonView as _0x3ea19e}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1491d7,IconCancel as _0x521d25,IconPlus as _0xa30ac2}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x13523e}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x571185}from'./aichathistorylistview.js';function _0x29c7(){const _0xbae310=['_createSkeletonView','ck-rounded-corners','execute','ck-ai-chat-error','openChat','addMany','indexOf','ltr','isMaximized','445238JVqLGH','ck-ai-chat-history','_createListItemViews','search','resizeButton','ck-hidden','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','_updateViewVisibility','render','children','isSearchViewVisible','extendTemplate','splice','isVisible','ck-ai-chat-history__empty-message','errorMessage','ck-ai-chat__start-conversation','AI_CHAT_HISTORY_SEARCH_LABEL','updateHistoryItemsWithCategories','1757721WLaSkg','add','change:hasItems','fieldView','isLoading','_refreshSearch','ck-reset_all','updateTitle','_createEmptyStateView','element','change:errorMessage','ck-ai-chat-history__content','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:isLoading','ck-ai-header\x20ck-ai-header_history','length','15fdlblF','updateItemLoadingState','_createSearchView','remove','div','34564NXFGoj','setTemplate','items','fire','removeItem','queryView','168208DOHSAt','errorView','skeletonView','delegate','sections','updateItemTitle','aiHistory','getItem','sectionsView','locale','searchView','some','set','itemsViews','emptyView','value','removeHistoryItem','clear','2776188pQnBDJ','bind','ck-ai-chat-history__empty','isEmptyViewVisible','title','5071416FFaatH','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING','1026102KWjkaR','hasItems','bindTemplate','ck-ai-chat-error__dismiss-button','push'];_0x29c7=function(){return _0xbae310;};return _0x29c7();}import{AIChatHistoryListItemView as _0x304c03}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2f820d}from'../aichathistoryui.js';import{AISkeletonView as _0x5818f2,SKELETON_DEFINITIONS as _0x1c3910}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e51d4}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2c2f18}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x54a589{[_0x32357c(0x134)];[_0x32357c(0x12b)];[_0x32357c(0x12c)];[_0x32357c(0x138)];[_0x32357c(0x132)];[_0x32357c(0x158)];constructor(_0x437233,_0x467ecc){const _0x4ef331=_0x32357c;super(_0x437233),this[_0x4ef331(0x136)](_0x4ef331(0x147),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x113),!0x0),this[_0x4ef331(0x136)](_0x4ef331(0x164),''),this[_0x4ef331(0x136)](_0x4ef331(0x153),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x15f),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x13f),!0x1);const _0x520209=new _0x86cf60(_0x437233,{'label':_0x2c2f18(_0x437233,_0x4ef331(0x145)),'icon':_0x1491d7,'class':_0x4ef331(0x11d)});_0x467ecc&&(this[_0x4ef331(0x158)]=_0x4e51d4(_0x437233,this),_0x520209[_0x4ef331(0x15e)][_0x4ef331(0x110)](this[_0x4ef331(0x158)])),this[_0x4ef331(0x132)]=new _0x13523e(_0x437233,[]),this[_0x4ef331(0x132)][_0x4ef331(0x12d)](..._0x2f820d)['to'](this),this[_0x4ef331(0x12b)]=this[_0x4ef331(0x15a)](),this[_0x4ef331(0x12c)]=this[_0x4ef331(0x14b)](),this[_0x4ef331(0x138)]=this[_0x4ef331(0x117)](),this[_0x4ef331(0x134)]=this[_0x4ef331(0x121)](),this['on'](_0x4ef331(0x11c),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x111),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x119),()=>this[_0x4ef331(0x15c)]()),this[_0x4ef331(0x125)]({'tag':_0x4ef331(0x123),'attributes':{'class':['ck',_0x4ef331(0x115),_0x4ef331(0x155),_0x4ef331(0x14c)],'dir':_0x4ef331(0x152)},'children':[_0x520209,{'tag':_0x4ef331(0x123),'attributes':{'class':[_0x4ef331(0x11a)]},'children':[this[_0x4ef331(0x12c)],this[_0x4ef331(0x12b)],this[_0x4ef331(0x138)],this[_0x4ef331(0x134)]]}]});}[_0x32357c(0x15c)](){const _0x471638=_0x32357c;this[_0x471638(0x15f)]=!this[_0x471638(0x113)]&&this[_0x471638(0x147)]&&!this[_0x471638(0x164)],this[_0x471638(0x13f)]=!this[_0x471638(0x113)]&&!this[_0x471638(0x147)]&&!this[_0x471638(0x164)];}[_0x32357c(0x121)](){const _0x5792db=_0x32357c,_0x4effbd=new _0x3222d4(this[_0x5792db(0x133)],{'filteredView':this[_0x5792db(0x132)],'queryView':{'label':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x10d))},'infoView':{'text':{'notFound':{'primary':_0x5b467c=>_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x11b),_0x5b467c),'secondary':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x144))}}}});return _0x4effbd['on'](_0x5792db(0x15d),()=>{const _0x29e76f=_0x5792db;this[_0x29e76f(0x134)][_0x29e76f(0x15e)][_0x29e76f(0x110)](this[_0x29e76f(0x12b)],0x1);}),_0x4effbd[_0x5792db(0x160)]({'attributes':{'class':[this[_0x5792db(0x148)]['if'](_0x5792db(0x15f),_0x5792db(0x159),_0x476a45=>!_0x476a45)]}}),_0x4effbd;}[_0x32357c(0x14b)](){const _0x124f24=_0x32357c,_0x27db4b=new _0x5818f2(this[_0x124f24(0x133)],_0x1c3910[_0x124f24(0x130)]);return _0x27db4b[_0x124f24(0x160)]({'attributes':{'class':[this[_0x124f24(0x148)]['if'](_0x124f24(0x113),_0x124f24(0x159),_0x25af8c=>!_0x25af8c)]}}),_0x27db4b;}[_0x32357c(0x15a)](){const _0x25bb01=_0x32357c,_0x4d0f00=new _0x54a589(this[_0x25bb01(0x133)]),_0x2a3762=new _0x3ea19e(this[_0x25bb01(0x133)]);return _0x2a3762[_0x25bb01(0x136)]({'withText':!0x1,'icon':_0x521d25,'class':_0x25bb01(0x149)}),_0x2a3762[_0x25bb01(0x13d)](_0x25bb01(0x162))['to'](this,_0x25bb01(0x147),_0x570d4f=>!!_0x570d4f),_0x2a3762['on'](_0x25bb01(0x14d),()=>{const _0x474213=_0x25bb01;this[_0x474213(0x164)]='';}),_0x4d0f00[_0x25bb01(0x125)]({'tag':_0x25bb01(0x123),'attributes':{'class':['ck',_0x25bb01(0x14e),this[_0x25bb01(0x148)]['if'](_0x25bb01(0x164),_0x25bb01(0x159),_0x55cf5d=>!_0x55cf5d)]},'children':[{'tag':'p','children':[{'text':this[_0x25bb01(0x148)]['to'](_0x25bb01(0x164))}]},_0x2a3762]}),_0x4d0f00;}[_0x32357c(0x117)](){const _0x4e0962=_0x32357c,_0x2d4b5a=new _0x3ea19e(this[_0x4e0962(0x133)]);_0x2d4b5a[_0x4e0962(0x136)]({'label':_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x15b)),'withText':!0x0,'icon':_0xa30ac2,'class':_0x4e0962(0x165)}),_0x2d4b5a['on'](_0x4e0962(0x14d),()=>{const _0x5de924=_0x4e0962;this[_0x5de924(0x127)](_0x5de924(0x14f));});const _0x2d9cc7=new _0x54a589(this[_0x4e0962(0x133)]);return _0x2d9cc7[_0x4e0962(0x125)]({'tag':_0x4e0962(0x123),'attributes':{'class':[_0x4e0962(0x13e),this[_0x4e0962(0x148)]['if'](_0x4e0962(0x13f),_0x4e0962(0x159),_0x1aa492=>!_0x1aa492)]},'children':[{'tag':'p','attributes':{'class':[_0x4e0962(0x163)]},'children':[_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x142))]},_0x2d4b5a]}),_0x2d9cc7;}[_0x32357c(0x156)](_0xea088b,_0x4049ce){const _0x7f5785=_0x32357c,_0x79c2f6=[];for(const _0x2279af of _0xea088b){const _0x3a918f=new _0x304c03(_0x4049ce,_0x2279af);_0x3a918f[_0x7f5785(0x12d)](..._0x2f820d)['to'](this),_0x79c2f6[_0x7f5785(0x14a)](_0x3a918f);}return _0x79c2f6;}[_0x32357c(0x10e)](_0x19dad9){const _0x16f455=_0x32357c,_0x14dd92=this[_0x16f455(0x133)]||'en',_0xce3e24=[];for(const _0x3404cc of _0x19dad9){const _0x4c71dc=this[_0x16f455(0x156)](_0x3404cc[_0x16f455(0x126)],_0x14dd92);_0xce3e24[_0x16f455(0x14a)](new _0x571185(_0x14dd92,{'title':_0x3404cc[_0x16f455(0x140)],'items':_0x4c71dc}));}this[_0x16f455(0x132)][_0x16f455(0x12e)]=_0xce3e24,this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x13b)](),this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x150)](_0xce3e24),this[_0x16f455(0x147)]=_0x19dad9[_0x16f455(0x135)](_0xcfe253=>_0xcfe253[_0x16f455(0x126)][_0x16f455(0x11e)]>0x0),this[_0x16f455(0x114)]();}[_0x32357c(0x13a)](_0xe8f0c1){const _0x3f6b70=_0x32357c;for(const _0x1ffee8 of this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)]){const _0x18a29c=_0x1ffee8[_0x3f6b70(0x131)](_0xe8f0c1);if(_0x18a29c){if(_0x1ffee8[_0x3f6b70(0x128)](_0x18a29c),0x0===_0x1ffee8[_0x3f6b70(0x137)][_0x3f6b70(0x11e)]){const _0x127efa=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x151)](_0x1ffee8);-0x1!==_0x127efa&&(this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x161)](_0x127efa,0x1),this[_0x3f6b70(0x132)][_0x3f6b70(0x126)][_0x3f6b70(0x122)](_0x1ffee8));}this[_0x3f6b70(0x147)]=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x11e)]>0x0,this[_0x3f6b70(0x114)]();break;}}}[_0x32357c(0x12f)](_0x2e50f1,_0xc5220e){const _0x4dec15=_0x32357c;for(const _0x58bad2 of this[_0x4dec15(0x132)][_0x4dec15(0x12e)]){const _0x2712d4=_0x58bad2[_0x4dec15(0x131)](_0x2e50f1);if(_0x2712d4){_0x2712d4[_0x4dec15(0x116)](_0xc5220e);break;}}}[_0x32357c(0x120)](_0x4d8c75,_0x451c39,_0xf3ab49){const _0x3da2dd=_0x32357c;for(const _0x56c297 of this[_0x3da2dd(0x132)][_0x3da2dd(0x12e)]){const _0x8ffde3=_0x56c297[_0x3da2dd(0x131)](_0x4d8c75);if(_0x8ffde3){_0x8ffde3[_0x3da2dd(0x143)](_0x451c39,_0xf3ab49);break;}}}[_0x32357c(0x114)](){const _0x20843e=_0x32357c;if(this[_0x20843e(0x147)]){const _0x44cb52=this[_0x20843e(0x134)][_0x20843e(0x129)][_0x20843e(0x112)]?.[_0x20843e(0x118)]?.[_0x20843e(0x139)]||'';this[_0x20843e(0x134)][_0x20843e(0x157)](_0x44cb52);}}}
23
+ const _0x5acd56=_0x4c09;(function(_0xf258f2,_0x44a151){const _0x4ecef9=_0x4c09,_0x4f4808=_0xf258f2();while(!![]){try{const _0x4f1e29=parseInt(_0x4ecef9(0x201))/0x1+-parseInt(_0x4ecef9(0x1f6))/0x2+parseInt(_0x4ecef9(0x1de))/0x3*(-parseInt(_0x4ecef9(0x210))/0x4)+parseInt(_0x4ecef9(0x1db))/0x5+-parseInt(_0x4ecef9(0x20c))/0x6+-parseInt(_0x4ecef9(0x1da))/0x7+parseInt(_0x4ecef9(0x21a))/0x8*(parseInt(_0x4ecef9(0x227))/0x9);if(_0x4f1e29===_0x44a151)break;else _0x4f4808['push'](_0x4f4808['shift']());}catch(_0x11d8f9){_0x4f4808['push'](_0x4f4808['shift']());}}}(_0x55ed,0xd0139));import{View as _0x4abba0,SearchTextView as _0x525f1f,FormHeaderView as _0x5e011f,ButtonView as _0xed1461}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1ed0d6,IconCancel as _0x5b0296,IconPlus as _0x246400}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x25556a}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x580699}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x7fb1e0}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5b3285}from'../aichathistoryui.js';function _0x55ed(){const _0x5d1306=['title','ck-ai-chat-history__empty-message','_createSkeletonView','AI_CHAT_LABEL_NEW_CHAT','ck-rounded-corners','ck-ai-chat-history__content','ck-ai-chat-error','249344nPHhxD','extendTemplate','ck-ai-chat-history','emptyView','locale','_createSearchView','push','itemsViews','bindTemplate','removeItem','fire','994311FrHXfw','hasItems','change:isLoading','_createListItemViews','ck-ai-chat-error__dismiss-button','errorView','ck-reset_all','AI_CHAT_HISTORY_EMPTY_MESSAGE','indexOf','delegate','getItem','2706726GyBHYK','ck-ai-chat__start-conversation','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','3122824SXieUB','_createEmptyStateView','element','fieldView','ltr','execute','queryView','_refreshSearch','ck-hidden','updateTitle','2916520hFwjyK','openChat','remove','bind','change:hasItems','isLoading','render','isSearchViewVisible','set','clear','length','updateHistoryItemsWithCategories','aiHistory','27ojJIqe','children','setTemplate','updateItemTitle','AI_CHAT_HISTORY_HEADING','updateItemLoadingState','ck-ai-header\x20ck-ai-header_history','splice','searchView','resizeButton','addMany','sectionsView','isVisible','6523678cNEZlB','5263640BlBySw','some','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','3kXaKXf','div','value','_updateViewVisibility','search','ck-ai-chat-history__empty','sections','errorMessage','AI_CHAT_HISTORY_SEARCH_LABEL','isEmptyViewVisible','change:errorMessage','removeHistoryItem','skeletonView','isMaximized','_createErrorView','items','updateLoadingState'];_0x55ed=function(){return _0x5d1306;};return _0x55ed();}import{AISkeletonView as _0xf2dddc,SKELETON_DEFINITIONS as _0x2540bc}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3767a1}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x204f76}from'../../aicore/utils/common-translations.js';function _0x4c09(_0x51e62f,_0x5ec38f){const _0x55ed36=_0x55ed();return _0x4c09=function(_0x4c098a,_0x58f32b){_0x4c098a=_0x4c098a-0x1d2;let _0x268987=_0x55ed36[_0x4c098a];return _0x268987;},_0x4c09(_0x51e62f,_0x5ec38f);}export class AIChatHistoryView extends _0x4abba0{[_0x5acd56(0x1d5)];[_0x5acd56(0x206)];[_0x5acd56(0x1ea)];[_0x5acd56(0x1f9)];[_0x5acd56(0x1d8)];[_0x5acd56(0x1d6)];constructor(_0x362840,_0x304ed8){const _0x4fb8ed=_0x5acd56;super(_0x362840),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x202),!0x1),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x21f),!0x0),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x1e5),''),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x1eb),!0x1),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x221),!0x1),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x1e7),!0x1);const _0x52d6ac=new _0x5e011f(_0x362840,{'label':_0x204f76(_0x362840,_0x4fb8ed(0x22b)),'icon':_0x1ed0d6,'class':_0x4fb8ed(0x1d3)});_0x304ed8&&(this[_0x4fb8ed(0x1d6)]=_0x3767a1(_0x362840,this),_0x52d6ac[_0x4fb8ed(0x228)][_0x4fb8ed(0x20e)](this[_0x4fb8ed(0x1d6)])),this[_0x4fb8ed(0x1d8)]=new _0x25556a(_0x362840,[]),this[_0x4fb8ed(0x1d8)][_0x4fb8ed(0x20a)](..._0x5b3285)['to'](this),this[_0x4fb8ed(0x206)]=this[_0x4fb8ed(0x1ec)](),this[_0x4fb8ed(0x1ea)]=this[_0x4fb8ed(0x1f1)](),this[_0x4fb8ed(0x1f9)]=this[_0x4fb8ed(0x211)](),this[_0x4fb8ed(0x1d5)]=this[_0x4fb8ed(0x1fb)](),this['on'](_0x4fb8ed(0x203),()=>this[_0x4fb8ed(0x1e1)]()),this['on'](_0x4fb8ed(0x21e),()=>this[_0x4fb8ed(0x1e1)]()),this['on'](_0x4fb8ed(0x1e8),()=>this[_0x4fb8ed(0x1e1)]()),this[_0x4fb8ed(0x229)]({'tag':_0x4fb8ed(0x1df),'attributes':{'class':['ck',_0x4fb8ed(0x207),_0x4fb8ed(0x1f8),_0x4fb8ed(0x1f3)],'dir':_0x4fb8ed(0x214)},'children':[_0x52d6ac,{'tag':_0x4fb8ed(0x1df),'attributes':{'class':[_0x4fb8ed(0x1f4)]},'children':[this[_0x4fb8ed(0x1ea)],this[_0x4fb8ed(0x206)],this[_0x4fb8ed(0x1f9)],this[_0x4fb8ed(0x1d5)]]}]});}[_0x5acd56(0x1e1)](){const _0x477375=_0x5acd56;this[_0x477375(0x221)]=!this[_0x477375(0x21f)]&&this[_0x477375(0x202)]&&!this[_0x477375(0x1e5)],this[_0x477375(0x1e7)]=!this[_0x477375(0x21f)]&&!this[_0x477375(0x202)]&&!this[_0x477375(0x1e5)];}[_0x5acd56(0x1fb)](){const _0x366acc=_0x5acd56,_0x5b67ed=new _0x525f1f(this[_0x366acc(0x1fa)],{'filteredView':this[_0x366acc(0x1d8)],'queryView':{'label':_0x204f76(this[_0x366acc(0x1fa)],_0x366acc(0x1e6))},'infoView':{'text':{'notFound':{'primary':_0x27deab=>_0x204f76(this[_0x366acc(0x1fa)],_0x366acc(0x1dd),_0x27deab),'secondary':_0x204f76(this[_0x366acc(0x1fa)],_0x366acc(0x20f))}}}});return _0x5b67ed['on'](_0x366acc(0x220),()=>{const _0x4eac9b=_0x366acc;this[_0x4eac9b(0x1d5)][_0x4eac9b(0x228)][_0x4eac9b(0x20e)](this[_0x4eac9b(0x206)],0x1);}),_0x5b67ed[_0x366acc(0x1f7)]({'attributes':{'class':[this[_0x366acc(0x1fe)]['if'](_0x366acc(0x221),_0x366acc(0x218),_0x36e95c=>!_0x36e95c)]}}),_0x5b67ed;}[_0x5acd56(0x1f1)](){const _0x3877bc=_0x5acd56,_0x14f835=new _0xf2dddc(this[_0x3877bc(0x1fa)],_0x2540bc[_0x3877bc(0x226)]);return _0x14f835[_0x3877bc(0x1f7)]({'attributes':{'class':[this[_0x3877bc(0x1fe)]['if'](_0x3877bc(0x21f),_0x3877bc(0x218),_0x516280=>!_0x516280)]}}),_0x14f835;}[_0x5acd56(0x1ec)](){const _0x429c00=_0x5acd56,_0x3d336b=new _0x4abba0(this[_0x429c00(0x1fa)]),_0x2399dc=new _0xed1461(this[_0x429c00(0x1fa)]);return _0x2399dc[_0x429c00(0x222)]({'withText':!0x1,'icon':_0x5b0296,'class':_0x429c00(0x205)}),_0x2399dc[_0x429c00(0x21d)](_0x429c00(0x1d9))['to'](this,_0x429c00(0x202),_0x47a64e=>!!_0x47a64e),_0x2399dc['on'](_0x429c00(0x215),()=>{const _0x4b0652=_0x429c00;this[_0x4b0652(0x1e5)]='';}),_0x3d336b[_0x429c00(0x229)]({'tag':_0x429c00(0x1df),'attributes':{'class':['ck',_0x429c00(0x1f5),this[_0x429c00(0x1fe)]['if'](_0x429c00(0x1e5),_0x429c00(0x218),_0x2f53e8=>!_0x2f53e8)]},'children':[{'tag':'p','children':[{'text':this[_0x429c00(0x1fe)]['to'](_0x429c00(0x1e5))}]},_0x2399dc]}),_0x3d336b;}[_0x5acd56(0x211)](){const _0x473822=_0x5acd56,_0x1a1ac2=new _0xed1461(this[_0x473822(0x1fa)]);_0x1a1ac2[_0x473822(0x222)]({'label':_0x204f76(this[_0x473822(0x1fa)],_0x473822(0x1f2)),'withText':!0x0,'icon':_0x246400,'class':_0x473822(0x20d)}),_0x1a1ac2['on'](_0x473822(0x215),()=>{const _0x5618aa=_0x473822;this[_0x5618aa(0x200)](_0x5618aa(0x21b));});const _0x483641=new _0x4abba0(this[_0x473822(0x1fa)]);return _0x483641[_0x473822(0x229)]({'tag':_0x473822(0x1df),'attributes':{'class':[_0x473822(0x1e3),this[_0x473822(0x1fe)]['if'](_0x473822(0x1e7),_0x473822(0x218),_0x131ab9=>!_0x131ab9)]},'children':[{'tag':'p','attributes':{'class':[_0x473822(0x1f0)]},'children':[_0x204f76(this[_0x473822(0x1fa)],_0x473822(0x208))]},_0x1a1ac2]}),_0x483641;}[_0x5acd56(0x204)](_0x1f81f8,_0x12f3a6){const _0x2c0cfc=_0x5acd56,_0x382330=[];for(const _0x3530c7 of _0x1f81f8){const _0x373218=new _0x7fb1e0(_0x12f3a6,_0x3530c7);_0x373218[_0x2c0cfc(0x20a)](..._0x5b3285)['to'](this),_0x382330[_0x2c0cfc(0x1fc)](_0x373218);}return _0x382330;}[_0x5acd56(0x225)](_0x176b36){const _0x1cffea=_0x5acd56,_0x45cbff=this[_0x1cffea(0x1fa)]||'en',_0x1e6b90=[];for(const _0x1a34ea of _0x176b36){const _0x41c860=this[_0x1cffea(0x204)](_0x1a34ea[_0x1cffea(0x1ed)],_0x45cbff);_0x1e6b90[_0x1cffea(0x1fc)](new _0x580699(_0x45cbff,{'title':_0x1a34ea[_0x1cffea(0x1ef)],'items':_0x41c860}));}this[_0x1cffea(0x1d8)][_0x1cffea(0x1e4)]=_0x1e6b90,this[_0x1cffea(0x1d8)][_0x1cffea(0x1ed)][_0x1cffea(0x223)](),this[_0x1cffea(0x1d8)][_0x1cffea(0x1ed)][_0x1cffea(0x1d7)](_0x1e6b90),this[_0x1cffea(0x202)]=_0x176b36[_0x1cffea(0x1dc)](_0x5eb4d2=>_0x5eb4d2[_0x1cffea(0x1ed)][_0x1cffea(0x224)]>0x0),this[_0x1cffea(0x217)]();}[_0x5acd56(0x1e9)](_0xb1689){const _0xf4b8d5=_0x5acd56;for(const _0x3a1eba of this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1e4)]){const _0x50771b=_0x3a1eba[_0xf4b8d5(0x20b)](_0xb1689);if(_0x50771b){if(_0x3a1eba[_0xf4b8d5(0x1ff)](_0x50771b),0x0===_0x3a1eba[_0xf4b8d5(0x1fd)][_0xf4b8d5(0x224)]){const _0xaf5a49=this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1e4)][_0xf4b8d5(0x209)](_0x3a1eba);-0x1!==_0xaf5a49&&(this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1e4)][_0xf4b8d5(0x1d4)](_0xaf5a49,0x1),this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1ed)][_0xf4b8d5(0x21c)](_0x3a1eba));}this[_0xf4b8d5(0x202)]=this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1e4)][_0xf4b8d5(0x224)]>0x0,this[_0xf4b8d5(0x217)]();break;}}}[_0x5acd56(0x22a)](_0x14d072,_0x17cc81){const _0x3b17ef=_0x5acd56;for(const _0x4453f8 of this[_0x3b17ef(0x1d8)][_0x3b17ef(0x1e4)]){const _0x3add14=_0x4453f8[_0x3b17ef(0x20b)](_0x14d072);if(_0x3add14){_0x3add14[_0x3b17ef(0x219)](_0x17cc81);break;}}}[_0x5acd56(0x1d2)](_0x53a138,_0x3ddcd5,_0x3ab3c0){const _0x3c9131=_0x5acd56;for(const _0x347c6a of this[_0x3c9131(0x1d8)][_0x3c9131(0x1e4)]){const _0x55de75=_0x347c6a[_0x3c9131(0x20b)](_0x53a138);if(_0x55de75){_0x55de75[_0x3c9131(0x1ee)](_0x3ddcd5,_0x3ab3c0);break;}}}[_0x5acd56(0x217)](){const _0x447dcf=_0x5acd56;if(this[_0x447dcf(0x202)]){const _0x586d22=this[_0x447dcf(0x1d5)][_0x447dcf(0x216)][_0x447dcf(0x213)]?.[_0x447dcf(0x212)]?.[_0x447dcf(0x1e0)]||'';this[_0x447dcf(0x1d5)][_0x447dcf(0x1e2)](_0x586d22);}}}
package/src/aiconfig.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * @module ai/aiconfig
7
7
  * @publicApi
8
8
  */
9
- import type { AIAssistantConfig } from './aiassistant/aiassistant.js';
9
+ import { type AIAssistantConfig } from './aiassistant/aiassistant.js';
10
10
  import { type AIChatConfig } from './aichat/aichat.js';
11
11
  import { type AISuggestionActionName } from './aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
12
12
  import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
@@ -68,19 +68,40 @@ export interface AIConfig {
68
68
  */
69
69
  reviewMode?: AIReviewModeConfig;
70
70
  /**
71
- * The configuration of the advanced reply dropdown in the AI chat feed. It also affects the buttons in quick actions balloon.
71
+ * Defines what actions are available for the user when interacting with AI responses in AI Chat and AI Quick Actions features.
72
72
  *
73
- * It defines which actions and in which order will be displayed in the dropdown in the AI chat feed.
74
- * The first action is used as the default action for the dropdown button.
75
- * By default, it contains the following actions:
73
+ * Users can perform following three actions:
76
74
  *
77
- * Note, that the quick actions balloon does not display `'showChangeInText'` button.
75
+ * * `'applySuggestion'` - applies the presented change directly into the editor content.
76
+ * * `'insertSuggestion'` - applies the presented change as a suggestion, which can be later on accepted or rejected.
77
+ * * `'showChangeInText'` - locates the changed part of document in the editor and opens a balloon with the preview.
78
78
  *
79
- * Note, that the `'applySuggestion'` button is hidden when track changes feature is turned on.
79
+ * By default, the editor configuration enables all available actions, in following order:
80
80
  *
81
81
  * ```ts
82
82
  * [ 'applySuggestion', 'insertSuggestion', 'showChangeInText' ]
83
83
  * ```
84
+ *
85
+ * This setting impacts:
86
+ *
87
+ * * The action dropdown located below an AI reply in the chat feed. The setting affects the main action for the button, as well as
88
+ * actions available in the dropdown and their order.
89
+ * * The buttons located in the header of each change preview in the chat feed. Note, that the header is visible only if the AI Chat
90
+ * proposed multiple changes.
91
+ * * The buttons located in the balloon which shows the change preview.
92
+ *
93
+ * Through this configuration option, you can change how users use the AI replies. For example, if you want to force users to always
94
+ * insert AI-proposed changes as suggestions, omit `'applySuggestion'` action.
95
+ *
96
+ * Please note other factors that impact the availability of these actions:
97
+ *
98
+ * * Buttons related to `'applySuggestion'` action are hidden if {@link module:track-changes/trackchanges~TrackChanges track changes}
99
+ * feature is turned on.
100
+ * * Buttons related to `'insertSuggestion'` action are hidden if {@link module:track-changes/trackchanges~TrackChanges track changes}
101
+ * feature is not loaded in the editor.
102
+ *
103
+ * Please note, that due to these factors, it is possible to accidentally configure the editor in a way, that no UI elements are
104
+ * presented to the user.
84
105
  */
85
106
  availableReplyActions?: Array<AISuggestionActionName>;
86
107
  }
@@ -311,4 +311,5 @@ export type AIUpdateRating = {
311
311
  export type AIRating = {
312
312
  positiveCount: number;
313
313
  totalCount: number;
314
+ modificationId?: string;
314
315
  };
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x193c25=_0x14cd;function _0x14cd(_0x12185f,_0x2ef1b0){const _0x51145d=_0x5114();return _0x14cd=function(_0x14cd2b,_0x109fb0){_0x14cd2b=_0x14cd2b-0x7f;let _0x4a3190=_0x51145d[_0x14cd2b];return _0x4a3190;},_0x14cd(_0x12185f,_0x2ef1b0);}(function(_0x7dcf12,_0x21d112){const _0x5b03fa=_0x14cd,_0x103ed7=_0x7dcf12();while(!![]){try{const _0x7269d=parseInt(_0x5b03fa(0xbb))/0x1*(parseInt(_0x5b03fa(0x106))/0x2)+-parseInt(_0x5b03fa(0x10e))/0x3+-parseInt(_0x5b03fa(0x84))/0x4+-parseInt(_0x5b03fa(0xca))/0x5*(parseInt(_0x5b03fa(0xc5))/0x6)+parseInt(_0x5b03fa(0x80))/0x7*(parseInt(_0x5b03fa(0xb3))/0x8)+parseInt(_0x5b03fa(0xa9))/0x9+parseInt(_0x5b03fa(0xf7))/0xa;if(_0x7269d===_0x21d112)break;else _0x103ed7['push'](_0x103ed7['shift']());}catch(_0x258c6d){_0x103ed7['push'](_0x103ed7['shift']());}}}(_0x5114,0xb7faf));import{createParser as _0x2079d3}from'eventsource-parser';import{ContextPlugin as _0x47e89f}from'ckeditor5/src/core.js';import{CKEditorError as _0x292ec4}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a66a9}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x4777e4){const _0x1e8fe8=_0x14cd;_0x4777e4[_0x1e8fe8(0xc4)]=_0x1e8fe8(0xd1),_0x4777e4[_0x1e8fe8(0xb5)]=_0x1e8fe8(0xed),_0x4777e4[_0x1e8fe8(0xeb)]=_0x1e8fe8(0xd3),_0x4777e4[_0x1e8fe8(0xb4)]=_0x1e8fe8(0x88),_0x4777e4[_0x1e8fe8(0xe3)]=_0x1e8fe8(0x96),_0x4777e4[_0x1e8fe8(0xbe)]=_0x1e8fe8(0x9c),_0x4777e4[_0x1e8fe8(0x105)]=_0x1e8fe8(0xcb),_0x4777e4[_0x1e8fe8(0x7f)]=_0x1e8fe8(0xe2);}(AIActionsNames||(AIActionsNames={}));function _0x5114(){const _0x55efa7=['/conversations?','parse','upsertCustomAIReviewRating','translate','MAKE_SHORTER','callSystemReview','signal','getReader','/documents/','/reviews/system/','fetchConversationMessages','/web-resources/','IMPROVE_WRITING','keys','fix-grammar','ai.serviceUrl','positiveCount','queryAssistant','Content-Type','context','fetchConversation','upsertCustomAIActionRating','/reviews/custom/calls/','/actions/system/','10377210IHVXHg','_handleError','pluginName','_getStreamReader','catch','AI_MODEL_DESCRIPTION_','text','reset','/calls','file','updateConversation','/models/1','_sendApiRequest','then','MAKE_TONE_FORMAL','2MancGe','startConversation','json','PATCH','deleteWebResource','upsertAIActionRating','search','GET','3607854AmNCKI','items','TRANSLATE','7805IOyQZF','length','ai-request-aborted','isPremiumPlugin','2308444zmgpaX','upsertAIReviewRating','CloudServices','application/json','make-longer','/calls/','/messages/','deleteFile','fetchConversations','request','status','POST','feed','locale','/conversations','statusText','fetchDocument','init','make-shorter','read','/reviews/custom/calls','decode','/messages','uploadDocument','make-tone-casual','plugins','excludeEmpty','stringify','callCustomReview','map','token','100','executeAction','toUpperCase','append','isOfficialPlugin','/actions/custom/calls/','13147524KDSopQ','limit','define','/documents','config','/files','/web-resources','true','push','data','784xOOFuu','MAKE_LONGER','FIX_GRAMMAR','group','uploadUrl','getModels','/conversations/','ai-request-failed','328513UoBmUh','value','ai-missing-token','MAKE_TONE_CASUAL','/files/','_apiUrl','/ratings','get','upsertAIChatRating','CONTINUE','12WCYlxY','requires','https://ai.cke-cs.com/v1','AbortError','AIConnector','1007570TjIwMU','make-tone-formal','uploadFile','name','abortController','_decoder','_token','continue','body','improve-writing','attributes','toString','PUT','executeCustomAction','DELETE','deleteDocument','/actions/custom/calls','deleteConversation','releaseLock','Bearer\x20','totalCount'];_0x5114=function(){return _0x55efa7;};return _0x5114();}export class AIConnector extends _0x47e89f{[_0x193c25(0xc0)];[_0x193c25(0xd0)];[_0x193c25(0xcf)];static get[_0x193c25(0xc6)](){const _0x2ba6f2=_0x193c25;return[_0x2ba6f2(0x86)];}static get[_0x193c25(0xf9)](){const _0x47568a=_0x193c25;return _0x47568a(0xc9);}static get[_0x193c25(0xa7)](){return!0x0;}static get[_0x193c25(0x83)](){return!0x0;}constructor(_0x49a388){const _0x577fc2=_0x193c25;super(_0x49a388),this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xab)](_0x577fc2(0xee),_0x577fc2(0xc7)),this[_0x577fc2(0xc0)]=this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xc2)](_0x577fc2(0xee)),this[_0x577fc2(0xd0)]=null,this[_0x577fc2(0xcf)]=new TextDecoder();}[_0x193c25(0x95)](){const _0x41e5db=_0x193c25,_0x2e41af=this[_0x41e5db(0xf2)][_0x41e5db(0x9d)][_0x41e5db(0xc2)](_0x41e5db(0x86));if(!_0x2e41af[_0x41e5db(0xa2)])throw new _0x292ec4(_0x41e5db(0xbd),this);this[_0x41e5db(0xd0)]=_0x2e41af[_0x41e5db(0xa2)];}[_0x193c25(0x107)](_0x3339b9,_0x1993f9){const _0x3b6a86=_0x193c25,_0x2bbd1b=this[_0x3b6a86(0x103)](_0x3b6a86(0x92),_0x3b6a86(0x8f),{'id':_0x3339b9,'group':_0x1993f9});return{'getConversation':async()=>(await _0x2bbd1b[_0x3b6a86(0x8d)])[_0x3b6a86(0x108)](),'abortController':_0x2bbd1b[_0x3b6a86(0xce)]};}[_0x193c25(0xf0)]({message:_0x185843,conversationId:_0x329a18,parts:_0x501492,capabilities:_0x5cd838,model:_0x27c964,quickActionData:_0x15f25c}){const _0x106ccc=_0x193c25,_0x37ab3d={..._0x15f25c&&{'quickActionData':_0x15f25c}},_0x1de2e8={'prompt':_0x185843,'content':_0x501492,'model':_0x27c964,..._0x5cd838&&{'capabilities':_0x5cd838},...Object[_0x106ccc(0xec)](_0x37ab3d)[_0x106ccc(0x81)]>0x0&&{'attributes':_0x37ab3d}},_0x3b845b=this[_0x106ccc(0x103)](_0x106ccc(0xb9)+_0x329a18+_0x106ccc(0x9a),_0x106ccc(0x8f),_0x1de2e8);return{'getStream':async()=>{const _0x1fa4af=_0x106ccc,_0xdd1f56=(await _0x3b845b[_0x1fa4af(0x8d)])[_0x1fa4af(0xd2)];return this[_0x1fa4af(0xfa)](_0xdd1f56);},'abortController':_0x3b845b[_0x106ccc(0xce)]};}[_0x193c25(0xd7)]({content:_0x41810e,message:_0x2ee402,model:_0x51c71d,outputFormat:_0x47f842}){const _0x1638dd=_0x193c25,_0x554312={'content':[{'type':_0x1638dd(0xfd),'content':_0x41810e}],'prompt':_0x2ee402,'model':_0x51c71d,'outputFormat':_0x47f842},_0x6da509=this[_0x1638dd(0x103)](_0x1638dd(0xda),_0x1638dd(0x8f),_0x554312);return{'getStream':async()=>{const _0x4a1765=_0x1638dd,_0x4b6709=(await _0x6da509[_0x4a1765(0x8d)])[_0x4a1765(0xd2)];return this[_0x4a1765(0xfa)](_0x4b6709);},'abortController':_0x6da509[_0x1638dd(0xce)]};}[_0x193c25(0xa4)]({actionName:_0x4b76f5,content:_0x3ea0bf,args:_0x488135}){const _0x1a885d=_0x193c25,_0x5990c1={'content':[{'type':_0x1a885d(0xfd),'content':_0x3ea0bf}],'args':_0x488135},_0x16fe0d=this[_0x1a885d(0x103)](_0x1a885d(0xf6)+_0x4b76f5+_0x1a885d(0xff),_0x1a885d(0x8f),_0x5990c1);return{'getStream':async()=>{const _0x54b076=_0x1a885d,_0x3c70cd=(await _0x16fe0d[_0x54b076(0x8d)])[_0x54b076(0xd2)];return this[_0x54b076(0xfa)](_0x3c70cd);},'abortController':_0x16fe0d[_0x1a885d(0xce)]};}[_0x193c25(0xcc)](_0x1590bb,_0x53d980,_0xf3bac0){const _0x46d0de=_0x193c25,_0x3c1f5a=new FormData();_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0x100),_0x53d980,_0x53d980[_0x46d0de(0xcd)]),_0xf3bac0&&_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0xd4),JSON[_0x46d0de(0x9f)](_0xf3bac0));const _0x1758ff=this[_0x46d0de(0x103)](_0x46d0de(0xb9)+_0x1590bb+_0x46d0de(0xae),_0x46d0de(0x8f),_0x3c1f5a);return{'getId':async()=>(await _0x1758ff[_0x46d0de(0x8d)])[_0x46d0de(0x108)](),'abortController':_0x1758ff[_0x46d0de(0xce)]};}[_0x193c25(0x94)](_0x28a399,_0x22cbb2){const _0x7a4069=_0x193c25,_0x5e53e7=this[_0x7a4069(0x103)](_0x7a4069(0xb9)+_0x28a399+_0x7a4069(0xe7)+_0x22cbb2,_0x7a4069(0x10d));return{'getDocument':async()=>(await _0x5e53e7[_0x7a4069(0x8d)])[_0x7a4069(0x108)](),'abortController':_0x5e53e7[_0x7a4069(0xce)]};}[_0x193c25(0x9b)](_0x43c2ff,_0x325f44,_0x5ee7c3){const _0x3e8f46=_0x193c25,_0x366fcf={'content':_0x325f44};_0x5ee7c3&&(_0x366fcf[_0x3e8f46(0xd4)]=_0x5ee7c3);const _0x20dc04=this[_0x3e8f46(0x103)](_0x3e8f46(0xb9)+_0x43c2ff+_0x3e8f46(0xac),_0x3e8f46(0x8f),_0x366fcf);return{'getId':async()=>(await _0x20dc04[_0x3e8f46(0x8d)])[_0x3e8f46(0x108)](),'abortController':_0x20dc04[_0x3e8f46(0xce)]};}[_0x193c25(0x8c)](_0xc2fa20,_0x313ee2){const _0x419cd9=_0x193c25,_0x37a080=new URLSearchParams();_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x9e),_0x419cd9(0xb0)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xaa),_0x419cd9(0xa3)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xb6),_0xc2fa20),_0x313ee2&&_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x10c),_0x313ee2);const _0x2f81ab=this[_0x419cd9(0x103)](_0x419cd9(0xdf)+_0x37a080[_0x419cd9(0xd5)](),_0x419cd9(0x10d));return{'getConversations':async()=>{const _0x1e474d=_0x419cd9,_0x4274e3=await _0x2f81ab[_0x1e474d(0x8d)];return(await _0x4274e3[_0x1e474d(0x108)]())[_0x1e474d(0x10f)];},'abortController':_0x2f81ab[_0x419cd9(0xce)]};}[_0x193c25(0xdb)](_0x56a789){const _0x58280a=_0x193c25,_0x51ca4d=this[_0x58280a(0x103)](_0x58280a(0xb9)+_0x56a789,_0x58280a(0xd8));return{'execute':async()=>{const _0x1f42a6=_0x58280a;await _0x51ca4d[_0x1f42a6(0x8d)];},'abortController':_0x51ca4d[_0x58280a(0xce)]};}[_0x193c25(0x101)](_0x30c1e3,_0x12625e){const _0x244049=_0x193c25,_0x27ea74=this[_0x244049(0x103)](_0x244049(0xb9)+_0x30c1e3,_0x244049(0x109),_0x12625e);return{'getResult':async()=>(await _0x27ea74[_0x244049(0x8d)],_0x12625e),'abortController':_0x27ea74[_0x244049(0xce)]};}[_0x193c25(0xf3)](_0x2b3d00){const _0x36348b=_0x193c25,_0x11c8d8=this[_0x36348b(0x103)](_0x36348b(0xb9)+_0x2b3d00,_0x36348b(0x10d));return{'getConversation':async()=>(await _0x11c8d8[_0x36348b(0x8d)])[_0x36348b(0x108)](),'abortController':_0x11c8d8[_0x36348b(0xce)]};}[_0x193c25(0xe9)](_0x5dd926){const _0x1d7f38=_0x193c25,_0x12791f=this[_0x1d7f38(0x103)](_0x1d7f38(0xb9)+_0x5dd926+_0x1d7f38(0x9a),_0x1d7f38(0x10d));return{'getMessages':async()=>{const _0x14475f=_0x1d7f38,_0x57f463=await _0x12791f[_0x14475f(0x8d)];return(await _0x57f463[_0x14475f(0x108)]())[_0x14475f(0x10f)];},'abortController':_0x12791f[_0x1d7f38(0xce)]};}[_0x193c25(0xb7)](_0x4a7721,_0xa6cb10,_0x43d9b6){const _0x418680=_0x193c25,_0x44c33b=this[_0x418680(0x103)](_0x418680(0xb9)+_0x4a7721+_0x418680(0xaf),_0x418680(0x8f),{'url':_0xa6cb10,'attributes':_0x43d9b6});return{'getId':async()=>(await _0x44c33b[_0x418680(0x8d)])[_0x418680(0x108)](),'abortController':_0x44c33b[_0x418680(0xce)]};}[_0x193c25(0xb8)](){const _0x12ce4d=_0x193c25,_0x180f5d=this[_0x12ce4d(0x103)](_0x12ce4d(0x102),_0x12ce4d(0x10d));return{'list':async()=>{const _0xddcbe2=_0x12ce4d,_0x3ce218=await(await _0x180f5d[_0xddcbe2(0x8d)])[_0xddcbe2(0x108)](),_0x330d65=_0x3ce218[_0xddcbe2(0x10f)][_0xddcbe2(0xa1)](_0x50e706=>({..._0x50e706,'description':_0x1a66a9(this[_0xddcbe2(0xf2)][_0xddcbe2(0x91)],_0xddcbe2(0xfc)+_0x50e706['id'][_0xddcbe2(0xa5)]())}));return{..._0x3ce218,'items':_0x330d65};},'abortController':_0x180f5d[_0x12ce4d(0xce)]};}[_0x193c25(0x8b)](_0x4d783e,_0x348a08){const _0x1df7b7=_0x193c25,_0x266eac=this[_0x1df7b7(0x103)](_0x1df7b7(0xb9)+_0x4d783e+_0x1df7b7(0xbf)+_0x348a08,_0x1df7b7(0xd8));return{'execute':async()=>{const _0x31caa6=_0x1df7b7;await _0x266eac[_0x31caa6(0x8d)];},'abortController':_0x266eac[_0x1df7b7(0xce)]};}[_0x193c25(0xd9)](_0x58f85c,_0x93e021){const _0x239115=_0x193c25,_0x58f2ee=this[_0x239115(0x103)](_0x239115(0xb9)+_0x58f85c+_0x239115(0xe7)+_0x93e021,_0x239115(0xd8));return{'execute':async()=>{const _0x4c938f=_0x239115;await _0x58f2ee[_0x4c938f(0x8d)];},'abortController':_0x58f2ee[_0x239115(0xce)]};}[_0x193c25(0x10a)](_0x1eea38,_0x3e0e06){const _0x2f2351=_0x193c25,_0x1f8038=this[_0x2f2351(0x103)](_0x2f2351(0xb9)+_0x1eea38+_0x2f2351(0xea)+_0x3e0e06,_0x2f2351(0xd8));return{'execute':async()=>{const _0x2ecd3b=_0x2f2351;await _0x1f8038[_0x2ecd3b(0x8d)];},'abortController':_0x1f8038[_0x2f2351(0xce)]};}[_0x193c25(0xe4)]({reviewName:_0x22fc59,content:_0x2e2e22,args:_0x20a996}){const _0x5cb27f=_0x193c25,_0x3ea5c2=this[_0x5cb27f(0x103)](_0x5cb27f(0xe8)+_0x22fc59+_0x5cb27f(0xff),_0x5cb27f(0x8f),{'content':[{'type':_0x5cb27f(0xfd),'content':_0x2e2e22}],'args':_0x20a996});return{'getStream':async()=>{const _0x60c8b3=_0x5cb27f,_0x56c35b=(await _0x3ea5c2[_0x60c8b3(0x8d)])[_0x60c8b3(0xd2)];return this[_0x60c8b3(0xfa)](_0x56c35b);},'abortController':_0x3ea5c2[_0x5cb27f(0xce)]};}[_0x193c25(0xa0)]({content:_0x45bae7,prompt:_0x14a8a3,model:_0x53c5ec}){const _0x5ecc94=_0x193c25,_0x3c53bb=this[_0x5ecc94(0x103)](_0x5ecc94(0x98),_0x5ecc94(0x8f),{'content':[{'type':_0x5ecc94(0xfd),'content':_0x45bae7}],'prompt':_0x14a8a3,'model':_0x53c5ec});return{'getStream':async()=>{const _0x17fcf0=_0x5ecc94,_0xe130ae=(await _0x3c53bb[_0x17fcf0(0x8d)])[_0x17fcf0(0xd2)];return this[_0x17fcf0(0xfa)](_0xe130ae);},'abortController':_0x3c53bb[_0x5ecc94(0xce)]};}[_0x193c25(0xc3)](_0x5f0e9a,_0x5822fc,_0x28af47){const _0x369d79=_0x193c25,_0x3798fc=this[_0x369d79(0x103)](_0x369d79(0xb9)+_0x5f0e9a+_0x369d79(0x8a)+_0x5822fc+_0x369d79(0xc1),_0x369d79(0xd6),{'positiveCount':_0x28af47[_0x369d79(0xef)],'totalCount':_0x28af47[_0x369d79(0xde)]});return{'execute':async()=>{const _0xef49fb=_0x369d79;await _0x3798fc[_0xef49fb(0x8d)];},'abortController':_0x3798fc[_0x369d79(0xce)]};}[_0x193c25(0x10b)](_0x2b3cea,_0x549fde,_0xd218a4){const _0xd9ba07=_0x193c25,_0x3c2ea1=this[_0xd9ba07(0x103)](_0xd9ba07(0xf6)+_0x2b3cea+_0xd9ba07(0x89)+_0x549fde+_0xd9ba07(0xc1),_0xd9ba07(0xd6),{'positiveCount':_0xd218a4[_0xd9ba07(0xef)],'totalCount':_0xd218a4[_0xd9ba07(0xde)]});return{'execute':async()=>{const _0x2d3644=_0xd9ba07;await _0x3c2ea1[_0x2d3644(0x8d)];},'abortController':_0x3c2ea1[_0xd9ba07(0xce)]};}[_0x193c25(0xf4)](_0x37b5af,_0x412bb8){const _0x3dd48b=_0x193c25,_0x35121c=this[_0x3dd48b(0x103)](_0x3dd48b(0xa8)+_0x37b5af+_0x3dd48b(0xc1),_0x3dd48b(0xd6),{'positiveCount':_0x412bb8[_0x3dd48b(0xef)],'totalCount':_0x412bb8[_0x3dd48b(0xde)]});return{'execute':async()=>{const _0x10e6fc=_0x3dd48b;await _0x35121c[_0x10e6fc(0x8d)];},'abortController':_0x35121c[_0x3dd48b(0xce)]};}[_0x193c25(0x85)](_0x5088a5,_0x2437dc,_0x650f4e,_0x45da92){const _0x24930f=_0x193c25,_0x27f00d=this[_0x24930f(0x103)](_0x24930f(0xe8)+_0x5088a5+_0x24930f(0x89)+_0x2437dc+_0x24930f(0xc1),_0x24930f(0xd6),{'positiveCount':_0x650f4e[_0x24930f(0xef)],'totalCount':_0x650f4e[_0x24930f(0xde)],'dataId':_0x45da92});return{'execute':async()=>{const _0x475408=_0x24930f;await _0x27f00d[_0x475408(0x8d)];},'abortController':_0x27f00d[_0x24930f(0xce)]};}[_0x193c25(0xe1)](_0x1d8571,_0xa42d47,_0x54994b){const _0x29d5de=_0x193c25,_0x92d000=this[_0x29d5de(0x103)](_0x29d5de(0xf5)+_0x1d8571+_0x29d5de(0xc1),_0x29d5de(0xd6),{'positiveCount':_0xa42d47[_0x29d5de(0xef)],'totalCount':_0xa42d47[_0x29d5de(0xde)],'dataId':_0x54994b});return{'execute':async()=>{const _0x134650=_0x29d5de;await _0x92d000[_0x134650(0x8d)];},'abortController':_0x92d000[_0x29d5de(0xce)]};}[_0x193c25(0x103)](_0x216527,_0x2bea80,_0x4dfc39){const _0x49e7bb=_0x193c25,_0x5ca384=new AbortController(),_0x552e51=_0x4dfc39 instanceof FormData,_0x408692={'Authorization':_0x49e7bb(0xdd)+this[_0x49e7bb(0xd0)]?.[_0x49e7bb(0xbc)]};_0x4dfc39&&!_0x552e51&&(_0x408692[_0x49e7bb(0xf1)]=_0x49e7bb(0x87));const _0x23007a={'method':_0x2bea80,'headers':_0x408692,'signal':_0x5ca384[_0x49e7bb(0xe5)]};return _0x4dfc39&&(_0x23007a[_0x49e7bb(0xd2)]=_0x552e51?_0x4dfc39:JSON[_0x49e7bb(0x9f)](_0x4dfc39)),{'request':fetch(''+this[_0x49e7bb(0xc0)]+_0x216527,_0x23007a)[_0x49e7bb(0xfb)](_0x1693d3=>{const _0x3b38f2=_0x49e7bb;this[_0x3b38f2(0xf8)](_0x1693d3);})[_0x49e7bb(0x104)](_0x9c99f1=>{const _0x22ea6d=_0x49e7bb;if(!_0x9c99f1['ok'])throw new _0x292ec4(_0x22ea6d(0xba),this,{'url':this[_0x22ea6d(0xc0)],'path':_0x216527,'method':_0x2bea80,'body':_0x4dfc39,'status':(_0x9c99f1||{})[_0x22ea6d(0x8e)],'statusText':(_0x9c99f1||{})[_0x22ea6d(0x93)]});return _0x9c99f1;}),'abortController':_0x5ca384};}async*[_0x193c25(0xfa)](_0x3fea12){const _0x1968b7=_0x193c25,_0x4bd7f9=[],_0x307bd=_0x3fea12[_0x1968b7(0xe6)](),_0xbabd1a=_0x2079d3({'onError':_0x1b772e=>{const _0x3e917d=_0x1968b7;this[_0x3e917d(0xf8)](_0x1b772e);},'onEvent':_0x1a0d19=>{const _0x3ab9e1=_0x1968b7;_0x1a0d19[_0x3ab9e1(0xb2)]=JSON[_0x3ab9e1(0xe0)](_0x1a0d19[_0x3ab9e1(0xb2)]),_0x4bd7f9[_0x3ab9e1(0xb1)](_0x1a0d19);}});try{let _0x5f2640=!0x1;for(;!_0x5f2640;){const {done:_0x294766,value:_0x19390b}=await _0x307bd[_0x1968b7(0x97)]();_0x294766&&(_0x5f2640=!0x0),_0xbabd1a[_0x1968b7(0x90)](this[_0x1968b7(0xcf)][_0x1968b7(0x99)](_0x19390b,{'stream':!0x0})),yield*_0x4bd7f9,_0x4bd7f9[_0x1968b7(0x81)]=0x0;}}catch(_0x18e762){this[_0x1968b7(0xf8)](_0x18e762);}finally{_0x307bd[_0x1968b7(0xdc)](),_0xbabd1a[_0x1968b7(0xfe)]();}}[_0x193c25(0xf8)](_0x484a9f){const _0x1acc24=_0x193c25;if(_0x484a9f instanceof _0x292ec4)throw _0x484a9f;if(_0x484a9f instanceof Error&&_0x1acc24(0xc8)===_0x484a9f[_0x1acc24(0xcd)])throw new _0x292ec4(_0x1acc24(0x82),this,{'originalError':_0x484a9f});throw new _0x292ec4(_0x1acc24(0xba),this,{'originalError':_0x484a9f});}}
23
+ const _0x876b10=_0xba2b;(function(_0xbedb7c,_0x36b08e){const _0x4e6c7f=_0xba2b,_0xd471e3=_0xbedb7c();while(!![]){try{const _0x5312bd=-parseInt(_0x4e6c7f(0x13a))/0x1+parseInt(_0x4e6c7f(0x12c))/0x2*(-parseInt(_0x4e6c7f(0x151))/0x3)+parseInt(_0x4e6c7f(0x139))/0x4*(-parseInt(_0x4e6c7f(0x10c))/0x5)+-parseInt(_0x4e6c7f(0xf7))/0x6+-parseInt(_0x4e6c7f(0x148))/0x7+parseInt(_0x4e6c7f(0xe9))/0x8+parseInt(_0x4e6c7f(0x131))/0x9;if(_0x5312bd===_0x36b08e)break;else _0xd471e3['push'](_0xd471e3['shift']());}catch(_0x55848e){_0xd471e3['push'](_0xd471e3['shift']());}}}(_0x1d35,0xe804e));import{createParser as _0x33effb}from'eventsource-parser';import{ContextPlugin as _0x2edd48}from'ckeditor5/src/core.js';import{CKEditorError as _0x1742ee}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5c28a4){const _0x25b99b=_0xba2b;_0x5c28a4[_0x25b99b(0x112)]=_0x25b99b(0x146),_0x5c28a4[_0x25b99b(0xec)]=_0x25b99b(0x153),_0x5c28a4[_0x25b99b(0x115)]=_0x25b99b(0x11d),_0x5c28a4[_0x25b99b(0x138)]=_0x25b99b(0x106),_0x5c28a4[_0x25b99b(0x110)]=_0x25b99b(0xeb),_0x5c28a4[_0x25b99b(0x10b)]=_0x25b99b(0x145),_0x5c28a4[_0x25b99b(0x127)]=_0x25b99b(0x11e),_0x5c28a4[_0x25b99b(0x11f)]=_0x25b99b(0xd3);}(AIActionsNames||(AIActionsNames={}));function _0xba2b(_0x1ca66e,_0x8541f){const _0x1d3503=_0x1d35();return _0xba2b=function(_0xba2bae,_0x31adc2){_0xba2bae=_0xba2bae-0xcf;let _0x3ac2a5=_0x1d3503[_0xba2bae];return _0x3ac2a5;},_0xba2b(_0x1ca66e,_0x8541f);}function _0x1d35(){const _0x20514e=['AIConnector','100','json','5679DFSnkP','decode','fix-grammar','CloudServices','ai-request-failed','/web-resources/','stringify','/models/1','/web-resources','excludeEmpty','statusText','queryAssistant','uploadFile','request','isPremiumPlugin','translate','GET','define','deleteConversation','fetchConversations','feed','getModels','fetchConversation','parse','_token','deleteFile','get','upsertAIChatRating','true','config','isOfficialPlugin','read','value','getReader','attributes','context','positiveCount','9482584nKvEja','updateConversation','make-shorter','FIX_GRAMMAR','fetchDocument','/actions/custom/calls','Content-Type','callSystemReview','fetchConversationMessages','reset','limit','/documents/','status','executeAction','10727610lKgNFn','/ratings','/reviews/custom/calls','keys','ai.serviceUrl','/conversations/','_handleError','https://ai.cke-cs.com/v1','/files/','body','push','items','/reviews/system/','modificationId','/calls/','make-longer','/reviews/custom/calls/','upsertAIReviewRating','totalCount','then','MAKE_TONE_CASUAL','1175crOTMY','callCustomReview','/actions/custom/calls/','/actions/system/','MAKE_SHORTER','toString','CONTINUE','token','application/json','IMPROVE_WRITING','file','requires','uploadDocument','data','DELETE','_apiUrl','name','improve-writing','make-tone-formal','TRANSLATE','/documents','ai-missing-token','ai-request-aborted','pluginName','upsertCustomAIReviewRating','/messages','text','MAKE_TONE_FORMAL','PUT','length','deleteDocument','/calls','450azgKkA','/conversations','append','_sendApiRequest','PATCH','45229563TnFhJm','catch','uploadUrl','startConversation','/messages/','group','signal','MAKE_LONGER','5944iwajkB','1029683PJafzo','/files','upsertAIActionRating','/conversations?','search','_decoder','executeCustomAction','init','POST','plugins','releaseLock','make-tone-casual','continue','abortController','11674089Gwdxiz','_getStreamReader','AbortError','Bearer\x20','deleteWebResource','upsertCustomAIActionRating'];_0x1d35=function(){return _0x20514e;};return _0x1d35();}export class AIConnector extends _0x2edd48{[_0x876b10(0x11b)];[_0x876b10(0xdc)];[_0x876b10(0x13f)];static get[_0x876b10(0x117)](){const _0x13a16b=_0x876b10;return[_0x13a16b(0x154)];}static get[_0x876b10(0x123)](){const _0xb4bc73=_0x876b10;return _0xb4bc73(0x14e);}static get[_0x876b10(0xe2)](){return!0x0;}static get[_0x876b10(0xd2)](){return!0x0;}constructor(_0x26c064){const _0x4a43f5=_0x876b10;super(_0x26c064),this[_0x4a43f5(0xe7)][_0x4a43f5(0xe1)][_0x4a43f5(0xd5)](_0x4a43f5(0xfb),_0x4a43f5(0xfe)),this[_0x4a43f5(0x11b)]=this[_0x4a43f5(0xe7)][_0x4a43f5(0xe1)][_0x4a43f5(0xde)](_0x4a43f5(0xfb)),this[_0x4a43f5(0xdc)]=null,this[_0x4a43f5(0x13f)]=new TextDecoder();}[_0x876b10(0x141)](){const _0x5662af=_0x876b10,_0x34d107=this[_0x5662af(0xe7)][_0x5662af(0x143)][_0x5662af(0xde)](_0x5662af(0x154));if(!_0x34d107[_0x5662af(0x113)])throw new _0x1742ee(_0x5662af(0x121),this);this[_0x5662af(0xdc)]=_0x34d107[_0x5662af(0x113)];}[_0x876b10(0x134)](_0x3ed264,_0x269509){const _0x179ef6=_0x876b10,_0x490ef5=this[_0x179ef6(0x12f)](_0x179ef6(0x12d),_0x179ef6(0x142),{'id':_0x3ed264,'group':_0x269509});return{'getConversation':async()=>(await _0x490ef5[_0x179ef6(0xd1)])[_0x179ef6(0x150)](),'abortController':_0x490ef5[_0x179ef6(0x147)]};}[_0x876b10(0xcf)]({message:_0x5b2195,conversationId:_0x541e16,parts:_0x4006a4,capabilities:_0x2695c8,model:_0x432d9f,quickActionData:_0x1d264e}){const _0xc3eb12=_0x876b10,_0x1dbd4e={..._0x1d264e&&{'quickActionData':_0x1d264e}},_0x4305bf={'prompt':_0x5b2195,'content':_0x4006a4,'model':_0x432d9f,..._0x2695c8&&{'capabilities':_0x2695c8},...Object[_0xc3eb12(0xfa)](_0x1dbd4e)[_0xc3eb12(0x129)]>0x0&&{'attributes':_0x1dbd4e}},_0x21975c=this[_0xc3eb12(0x12f)](_0xc3eb12(0xfc)+_0x541e16+_0xc3eb12(0x125),_0xc3eb12(0x142),_0x4305bf);return{'getStream':async()=>{const _0x52099a=_0xc3eb12,_0x18af1d=(await _0x21975c[_0x52099a(0xd1)])[_0x52099a(0x100)];return this[_0x52099a(0x149)](_0x18af1d);},'abortController':_0x21975c[_0xc3eb12(0x147)]};}[_0x876b10(0x140)]({content:_0x5bf382,message:_0x4640c2,model:_0x25c24c,outputFormat:_0x31099d}){const _0x2c7e73=_0x876b10,_0x2f9177={'content':[{'type':_0x2c7e73(0x126),'content':_0x5bf382}],'prompt':_0x4640c2,'model':_0x25c24c,'outputFormat':_0x31099d},_0x57836d=this[_0x2c7e73(0x12f)](_0x2c7e73(0xee),_0x2c7e73(0x142),_0x2f9177);return{'getStream':async()=>{const _0x184228=_0x2c7e73,_0x2f17b7=(await _0x57836d[_0x184228(0xd1)])[_0x184228(0x100)];return this[_0x184228(0x149)](_0x2f17b7);},'abortController':_0x57836d[_0x2c7e73(0x147)]};}[_0x876b10(0xf6)]({actionName:_0x10f259,content:_0x380741,args:_0x5c9980}){const _0x33accb=_0x876b10,_0x1f8e07={'content':[{'type':_0x33accb(0x126),'content':_0x380741}],'args':_0x5c9980},_0x326309=this[_0x33accb(0x12f)](_0x33accb(0x10f)+_0x10f259+_0x33accb(0x12b),_0x33accb(0x142),_0x1f8e07);return{'getStream':async()=>{const _0x5c6049=_0x33accb,_0x52778d=(await _0x326309[_0x5c6049(0xd1)])[_0x5c6049(0x100)];return this[_0x5c6049(0x149)](_0x52778d);},'abortController':_0x326309[_0x33accb(0x147)]};}[_0x876b10(0xd0)](_0x21e1d0,_0x18d1ce,_0x3641d4){const _0x4a7225=_0x876b10,_0x495508=new FormData();_0x495508[_0x4a7225(0x12e)](_0x4a7225(0x116),_0x18d1ce,_0x18d1ce[_0x4a7225(0x11c)]),_0x3641d4&&_0x495508[_0x4a7225(0x12e)](_0x4a7225(0xe6),JSON[_0x4a7225(0x157)](_0x3641d4));const _0x46338b=this[_0x4a7225(0x12f)](_0x4a7225(0xfc)+_0x21e1d0+_0x4a7225(0x13b),_0x4a7225(0x142),_0x495508);return{'getId':async()=>(await _0x46338b[_0x4a7225(0xd1)])[_0x4a7225(0x150)](),'abortController':_0x46338b[_0x4a7225(0x147)]};}[_0x876b10(0xed)](_0x452f2b,_0x4b9822){const _0x1a6cce=_0x876b10,_0x430e91=this[_0x1a6cce(0x12f)](_0x1a6cce(0xfc)+_0x452f2b+_0x1a6cce(0xf4)+_0x4b9822,_0x1a6cce(0xd4));return{'getDocument':async()=>(await _0x430e91[_0x1a6cce(0xd1)])[_0x1a6cce(0x150)](),'abortController':_0x430e91[_0x1a6cce(0x147)]};}[_0x876b10(0x118)](_0x26f0dd,_0x5a4c89,_0x3fdc2e){const _0x4290eb=_0x876b10,_0x49e80e={'content':_0x5a4c89};_0x3fdc2e&&(_0x49e80e[_0x4290eb(0xe6)]=_0x3fdc2e);const _0x26b3ef=this[_0x4290eb(0x12f)](_0x4290eb(0xfc)+_0x26f0dd+_0x4290eb(0x120),_0x4290eb(0x142),_0x49e80e);return{'getId':async()=>(await _0x26b3ef[_0x4290eb(0xd1)])[_0x4290eb(0x150)](),'abortController':_0x26b3ef[_0x4290eb(0x147)]};}[_0x876b10(0xd7)](_0xf163ac,_0x2b98eb){const _0x18eb34=_0x876b10,_0x91e235=new URLSearchParams();_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x15a),_0x18eb34(0xe0)),_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0xf3),_0x18eb34(0x14f)),_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x136),_0xf163ac),_0x2b98eb&&_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x13e),_0x2b98eb);const _0x1b3f41=this[_0x18eb34(0x12f)](_0x18eb34(0x13d)+_0x91e235[_0x18eb34(0x111)](),_0x18eb34(0xd4));return{'getConversations':async()=>{const _0x5e8b16=_0x18eb34,_0x2dabd3=await _0x1b3f41[_0x5e8b16(0xd1)];return(await _0x2dabd3[_0x5e8b16(0x150)]())[_0x5e8b16(0x102)];},'abortController':_0x1b3f41[_0x18eb34(0x147)]};}[_0x876b10(0xd6)](_0x26c7a2){const _0x17f16c=_0x876b10,_0x30c91f=this[_0x17f16c(0x12f)](_0x17f16c(0xfc)+_0x26c7a2,_0x17f16c(0x11a));return{'execute':async()=>{const _0x17833e=_0x17f16c;await _0x30c91f[_0x17833e(0xd1)];},'abortController':_0x30c91f[_0x17f16c(0x147)]};}[_0x876b10(0xea)](_0x1bb0c7,_0x3970a8){const _0xa156a8=_0x876b10,_0x38050c=this[_0xa156a8(0x12f)](_0xa156a8(0xfc)+_0x1bb0c7,_0xa156a8(0x130),_0x3970a8);return{'getResult':async()=>(await _0x38050c[_0xa156a8(0xd1)],_0x3970a8),'abortController':_0x38050c[_0xa156a8(0x147)]};}[_0x876b10(0xda)](_0x4ab69b){const _0x3ef1a1=_0x876b10,_0x24f6a7=this[_0x3ef1a1(0x12f)](_0x3ef1a1(0xfc)+_0x4ab69b,_0x3ef1a1(0xd4));return{'getConversation':async()=>(await _0x24f6a7[_0x3ef1a1(0xd1)])[_0x3ef1a1(0x150)](),'abortController':_0x24f6a7[_0x3ef1a1(0x147)]};}[_0x876b10(0xf1)](_0x3ffa75){const _0x259633=_0x876b10,_0x29b7eb=this[_0x259633(0x12f)](_0x259633(0xfc)+_0x3ffa75+_0x259633(0x125),_0x259633(0xd4));return{'getMessages':async()=>{const _0x2381cc=_0x259633,_0x42d760=await _0x29b7eb[_0x2381cc(0xd1)];return(await _0x42d760[_0x2381cc(0x150)]())[_0x2381cc(0x102)];},'abortController':_0x29b7eb[_0x259633(0x147)]};}[_0x876b10(0x133)](_0x51c25f,_0x18cb9a,_0x21ab4e){const _0x48461e=_0x876b10,_0x5bf0d7=this[_0x48461e(0x12f)](_0x48461e(0xfc)+_0x51c25f+_0x48461e(0x159),_0x48461e(0x142),{'url':_0x18cb9a,'attributes':_0x21ab4e});return{'getId':async()=>(await _0x5bf0d7[_0x48461e(0xd1)])[_0x48461e(0x150)](),'abortController':_0x5bf0d7[_0x48461e(0x147)]};}[_0x876b10(0xd9)](){const _0x4dcb67=_0x876b10,_0x533ddd=this[_0x4dcb67(0x12f)](_0x4dcb67(0x158),_0x4dcb67(0xd4));return{'list':async()=>await(await _0x533ddd[_0x4dcb67(0xd1)])[_0x4dcb67(0x150)](),'abortController':_0x533ddd[_0x4dcb67(0x147)]};}[_0x876b10(0xdd)](_0x40a2db,_0x35db83){const _0x279ca4=_0x876b10,_0xfd63e3=this[_0x279ca4(0x12f)](_0x279ca4(0xfc)+_0x40a2db+_0x279ca4(0xff)+_0x35db83,_0x279ca4(0x11a));return{'execute':async()=>{const _0x209a12=_0x279ca4;await _0xfd63e3[_0x209a12(0xd1)];},'abortController':_0xfd63e3[_0x279ca4(0x147)]};}[_0x876b10(0x12a)](_0x3ab5a8,_0x3ce122){const _0xbf4fa4=_0x876b10,_0x479c31=this[_0xbf4fa4(0x12f)](_0xbf4fa4(0xfc)+_0x3ab5a8+_0xbf4fa4(0xf4)+_0x3ce122,_0xbf4fa4(0x11a));return{'execute':async()=>{const _0x5a1b18=_0xbf4fa4;await _0x479c31[_0x5a1b18(0xd1)];},'abortController':_0x479c31[_0xbf4fa4(0x147)]};}[_0x876b10(0x14c)](_0x1c94ab,_0x2fcfcf){const _0x1d5186=_0x876b10,_0x1553da=this[_0x1d5186(0x12f)](_0x1d5186(0xfc)+_0x1c94ab+_0x1d5186(0x156)+_0x2fcfcf,_0x1d5186(0x11a));return{'execute':async()=>{const _0x4a93e3=_0x1d5186;await _0x1553da[_0x4a93e3(0xd1)];},'abortController':_0x1553da[_0x1d5186(0x147)]};}[_0x876b10(0xf0)]({reviewName:_0x289624,content:_0x1a9ded,args:_0x2a6480}){const _0x1d7d3f=_0x876b10,_0x13269f=this[_0x1d7d3f(0x12f)](_0x1d7d3f(0x103)+_0x289624+_0x1d7d3f(0x12b),_0x1d7d3f(0x142),{'content':[{'type':_0x1d7d3f(0x126),'content':_0x1a9ded}],'args':_0x2a6480});return{'getStream':async()=>{const _0x225686=_0x1d7d3f,_0x3e48bc=(await _0x13269f[_0x225686(0xd1)])[_0x225686(0x100)];return this[_0x225686(0x149)](_0x3e48bc);},'abortController':_0x13269f[_0x1d7d3f(0x147)]};}[_0x876b10(0x10d)]({content:_0x57c32a,prompt:_0x3e1d36,model:_0x473461}){const _0x429227=_0x876b10,_0xe11836=this[_0x429227(0x12f)](_0x429227(0xf9),_0x429227(0x142),{'content':[{'type':_0x429227(0x126),'content':_0x57c32a}],'prompt':_0x3e1d36,'model':_0x473461});return{'getStream':async()=>{const _0x24c43b=_0x429227,_0x1a41d3=(await _0xe11836[_0x24c43b(0xd1)])[_0x24c43b(0x100)];return this[_0x24c43b(0x149)](_0x1a41d3);},'abortController':_0xe11836[_0x429227(0x147)]};}[_0x876b10(0xdf)](_0x3fdbee,_0x3694d8,_0x2d9c16){const _0x225a57=_0x876b10,_0x229f06=this[_0x225a57(0x12f)](_0x225a57(0xfc)+_0x3fdbee+_0x225a57(0x135)+_0x3694d8+_0x225a57(0xf8),_0x225a57(0x128),{'positiveCount':_0x2d9c16[_0x225a57(0xe8)],'totalCount':_0x2d9c16[_0x225a57(0x109)],'modificationId':_0x2d9c16[_0x225a57(0x104)]});return{'execute':async()=>{const _0x408ea9=_0x225a57;await _0x229f06[_0x408ea9(0xd1)];},'abortController':_0x229f06[_0x225a57(0x147)]};}[_0x876b10(0x13c)](_0x5ad40e,_0x32a142,_0x12eb4c){const _0x5ce5b4=_0x876b10,_0x1b013e=this[_0x5ce5b4(0x12f)](_0x5ce5b4(0x10f)+_0x5ad40e+_0x5ce5b4(0x105)+_0x32a142+_0x5ce5b4(0xf8),_0x5ce5b4(0x128),{'positiveCount':_0x12eb4c[_0x5ce5b4(0xe8)],'totalCount':_0x12eb4c[_0x5ce5b4(0x109)]});return{'execute':async()=>{const _0x7d1c82=_0x5ce5b4;await _0x1b013e[_0x7d1c82(0xd1)];},'abortController':_0x1b013e[_0x5ce5b4(0x147)]};}[_0x876b10(0x14d)](_0x532c23,_0x2f86e2){const _0x4493ce=_0x876b10,_0x57d2eb=this[_0x4493ce(0x12f)](_0x4493ce(0x10e)+_0x532c23+_0x4493ce(0xf8),_0x4493ce(0x128),{'positiveCount':_0x2f86e2[_0x4493ce(0xe8)],'totalCount':_0x2f86e2[_0x4493ce(0x109)]});return{'execute':async()=>{const _0x540c1a=_0x4493ce;await _0x57d2eb[_0x540c1a(0xd1)];},'abortController':_0x57d2eb[_0x4493ce(0x147)]};}[_0x876b10(0x108)](_0x4697f3,_0x40417f,_0x5ae921,_0x2bb81e){const _0x51d522=_0x876b10,_0x2ac46f=this[_0x51d522(0x12f)](_0x51d522(0x103)+_0x4697f3+_0x51d522(0x105)+_0x40417f+_0x51d522(0xf8),_0x51d522(0x128),{'positiveCount':_0x5ae921[_0x51d522(0xe8)],'totalCount':_0x5ae921[_0x51d522(0x109)],'dataId':_0x2bb81e});return{'execute':async()=>{const _0x56957a=_0x51d522;await _0x2ac46f[_0x56957a(0xd1)];},'abortController':_0x2ac46f[_0x51d522(0x147)]};}[_0x876b10(0x124)](_0x11445e,_0x93919c,_0x560a63){const _0x57fec1=_0x876b10,_0x486ea9=this[_0x57fec1(0x12f)](_0x57fec1(0x107)+_0x11445e+_0x57fec1(0xf8),_0x57fec1(0x128),{'positiveCount':_0x93919c[_0x57fec1(0xe8)],'totalCount':_0x93919c[_0x57fec1(0x109)],'dataId':_0x560a63});return{'execute':async()=>{const _0x10d0ad=_0x57fec1;await _0x486ea9[_0x10d0ad(0xd1)];},'abortController':_0x486ea9[_0x57fec1(0x147)]};}[_0x876b10(0x12f)](_0x221097,_0x3838b5,_0x3d0551){const _0xc6bef2=_0x876b10,_0x41b60f=new AbortController(),_0x4ab0f6=_0x3d0551 instanceof FormData,_0x1b7daa={'Authorization':_0xc6bef2(0x14b)+this[_0xc6bef2(0xdc)]?.[_0xc6bef2(0xe4)]};_0x3d0551&&!_0x4ab0f6&&(_0x1b7daa[_0xc6bef2(0xef)]=_0xc6bef2(0x114));const _0x31ae24={'method':_0x3838b5,'headers':_0x1b7daa,'signal':_0x41b60f[_0xc6bef2(0x137)]};return _0x3d0551&&(_0x31ae24[_0xc6bef2(0x100)]=_0x4ab0f6?_0x3d0551:JSON[_0xc6bef2(0x157)](_0x3d0551)),{'request':fetch(''+this[_0xc6bef2(0x11b)]+_0x221097,_0x31ae24)[_0xc6bef2(0x132)](_0x4597dc=>{const _0xd54e26=_0xc6bef2;this[_0xd54e26(0xfd)](_0x4597dc);})[_0xc6bef2(0x10a)](_0x1bd024=>{const _0xd4f0ee=_0xc6bef2;if(!_0x1bd024['ok'])throw new _0x1742ee(_0xd4f0ee(0x155),this,{'url':this[_0xd4f0ee(0x11b)],'path':_0x221097,'method':_0x3838b5,'body':_0x3d0551,'status':(_0x1bd024||{})[_0xd4f0ee(0xf5)],'statusText':(_0x1bd024||{})[_0xd4f0ee(0x15b)]});return _0x1bd024;}),'abortController':_0x41b60f};}async*[_0x876b10(0x149)](_0xf331af){const _0x326f42=_0x876b10,_0x172182=[],_0x1fcef2=_0xf331af[_0x326f42(0xe5)](),_0x730b74=_0x33effb({'onError':_0x3c13f0=>{const _0xae89a9=_0x326f42;this[_0xae89a9(0xfd)](_0x3c13f0);},'onEvent':_0x4d16c8=>{const _0x5c52d6=_0x326f42;_0x4d16c8[_0x5c52d6(0x119)]=JSON[_0x5c52d6(0xdb)](_0x4d16c8[_0x5c52d6(0x119)]),_0x172182[_0x5c52d6(0x101)](_0x4d16c8);}});try{let _0x2cd202=!0x1;for(;!_0x2cd202;){const {done:_0x561980,value:_0x37a601}=await _0x1fcef2[_0x326f42(0xe3)]();_0x561980&&(_0x2cd202=!0x0),_0x730b74[_0x326f42(0xd8)](this[_0x326f42(0x13f)][_0x326f42(0x152)](_0x37a601,{'stream':!0x0})),yield*_0x172182,_0x172182[_0x326f42(0x129)]=0x0;}}catch(_0x2faa94){this[_0x326f42(0xfd)](_0x2faa94);}finally{_0x1fcef2[_0x326f42(0x144)](),_0x730b74[_0x326f42(0xf2)]();}}[_0x876b10(0xfd)](_0x5c0d3a){const _0x108e13=_0x876b10;if(_0x5c0d3a instanceof _0x1742ee)throw _0x5c0d3a;if(_0x5c0d3a instanceof Error&&_0x108e13(0x14a)===_0x5c0d3a[_0x108e13(0x11c)])throw new _0x1742ee(_0x108e13(0x122),this,{'originalError':_0x5c0d3a});throw new _0x1742ee(_0x108e13(0x155),this,{'originalError':_0x5c0d3a});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a8fdf=_0x3633;function _0x3633(_0xe33b82,_0x174d71){const _0x11c02c=_0x11c0();return _0x3633=function(_0x3633c3,_0x2ceead){_0x3633c3=_0x3633c3-0x7b;let _0x1f6a2c=_0x11c02c[_0x3633c3];return _0x1f6a2c;},_0x3633(_0xe33b82,_0x174d71);}(function(_0x1b57f2,_0x20e367){const _0x4e09fa=_0x3633,_0x49261a=_0x1b57f2();while(!![]){try{const _0xdd967c=-parseInt(_0x4e09fa(0xc5))/0x1*(-parseInt(_0x4e09fa(0x8d))/0x2)+parseInt(_0x4e09fa(0x97))/0x3*(parseInt(_0x4e09fa(0xc6))/0x4)+-parseInt(_0x4e09fa(0x81))/0x5+-parseInt(_0x4e09fa(0xb2))/0x6*(-parseInt(_0x4e09fa(0xbd))/0x7)+parseInt(_0x4e09fa(0xb5))/0x8+-parseInt(_0x4e09fa(0xb4))/0x9+-parseInt(_0x4e09fa(0xc7))/0xa*(parseInt(_0x4e09fa(0xd6))/0xb);if(_0xdd967c===_0x20e367)break;else _0x49261a['push'](_0x49261a['shift']());}catch(_0x364bec){_0x49261a['push'](_0x49261a['shift']());}}}(_0x11c0,0x1994c));import{ViewDowncastWriter as _0x441827}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x40b0f0,Editor as _0x2d8962}from'ckeditor5/src/core.js';import{uid as _0x2fb2bb}from'ckeditor5/src/utils.js';function _0x11c0(){const _0x1a1645=['_sessionId','has','trim','sessionId','12cwQKlR','getWalker','774UqTRNS','411296PHPNIA','_integrateEditor','add','getMarkersGroup','ready','push','editing','change','496965ShegIq','_nextDataId','isOfficialPlugin','isBefore','$textProxy','getSelection','editingDowncast','context','608ORgpar','79708TKUQit','10uIzqvj','dataDowncast','containerElement','join','toView',':end></','showFakeVisualSelection','isContent','start','markerToElement','RealTimeCollaborationClient','length','sort','get','toData','2066449vhobbE','getSelectionText',':start></','selection','substring','emptyElement','_getMarkersInDocumentOrder','model','editors','getChildren',':start>','modelToViewWithIds','pluginName','fromCharCode','markerToHighlight','afterInit','name','isAtEnd','plugins','version','data','301150pKYmXO','conversion','floor','createRange','listenTo','isOpening','processor','_setDataIdsOnChildren','isPremiumPlugin','convertAiChatSelectionMarker','ai-selection','ck-fake-ai-selection','66IPTAQZ',':end>','createUIElement','random','from','_displayedFakeSelectionId','element','addMarker','view','createRangeIn','21JSOpBZ','document','getStart','getLastMatchingPosition','setAttribute','end','getSelectedContent','removeAllRanges','hideFakeVisualSelection','for','getRoot','markers','isAfter','indexOf','_displayedFakeSelectionLocked','ai-selection:','ck-ai-assistant-ui_theme','schema','removeMarker','AIEditing','data-id','getDocumentData','markerName'];_0x11c0=function(){return _0x1a1645;};return _0x11c0();}import{getEditorFromContext as _0x568ca2}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1a8fdf(0x8b);export class AIEditing extends _0x40b0f0{[_0x1a8fdf(0x92)]=null;[_0x1a8fdf(0xa5)]=!0x1;[_0x1a8fdf(0xae)];static get[_0x1a8fdf(0xe2)](){const _0x4ed4ef=_0x1a8fdf;return _0x4ed4ef(0xaa);}static get[_0x1a8fdf(0xbf)](){return!0x0;}static get[_0x1a8fdf(0x89)](){return!0x0;}get[_0x1a8fdf(0xb1)](){const _0x535534=_0x1a8fdf;if(!this[_0x535534(0xae)]){const _0x466511=_0x568ca2(this[_0x535534(0xc4)]),_0x13876f=_0x466511[_0x535534(0x7e)][_0x535534(0xaf)](_0x535534(0xd1))&&_0x466511[_0x535534(0x7e)][_0x535534(0xd4)](_0x535534(0xd1))[_0x535534(0xb1)];this[_0x535534(0xae)]=_0x13876f||_0x2fb2bb();}return this[_0x535534(0xae)];}[_0x1a8fdf(0xac)](){const _0x5a039d=_0x1a8fdf,_0x387709=_0x568ca2(this[_0x5a039d(0xc4)]),_0xb781cb=_0x387709[_0x5a039d(0xdd)],_0x256834=_0x387709[_0x5a039d(0x80)][_0x5a039d(0xcb)](_0xb781cb[_0x5a039d(0x98)][_0x5a039d(0xa1)](),{'convertAiChatSelectionMarker':!0x0}),_0xc66112=new _0x441827(_0x387709[_0x5a039d(0xbb)][_0x5a039d(0x95)][_0x5a039d(0x98)]);this[_0x5a039d(0x88)](_0x256834,_0xc66112);let _0x1a3f6e=_0x387709[_0x5a039d(0x80)][_0x5a039d(0x87)][_0x5a039d(0xd5)](_0x256834);const _0x3c23c4=this[_0x5a039d(0xdc)](),_0x3e8539=[];for(const _0x1dab5f of _0x3c23c4){const _0x5b2cf0='<'+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xd8)+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xe0),_0x3347ea=_0x1a3f6e[_0x5a039d(0xa4)](_0x5b2cf0);_0x1a3f6e=_0x1a3f6e[_0x5a039d(0xda)](0x0,_0x3347ea)+_0x1a3f6e[_0x5a039d(0xda)](_0x3347ea+_0x5b2cf0[_0x5a039d(0xd2)]);const _0x14f3ab='<'+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xcc)+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0x8e),_0x1c3be4=_0x1a3f6e[_0x5a039d(0xa4)](_0x14f3ab);_0x1a3f6e=_0x1a3f6e[_0x5a039d(0xda)](0x0,_0x1c3be4)+_0x1a3f6e[_0x5a039d(0xda)](_0x1c3be4+_0x14f3ab[_0x5a039d(0xd2)]),_0x3e8539[_0x5a039d(0xba)]({'markerName':_0x1dab5f[_0x5a039d(0x7c)],'start':_0x3347ea,'end':_0x1c3be4,'htmlFragment':_0x1a3f6e[_0x5a039d(0xda)](_0x3347ea,_0x1c3be4)});}return{'content':_0x1a3f6e,'version':_0x387709[_0x5a039d(0xdd)][_0x5a039d(0x98)][_0x5a039d(0x7f)],'sessionId':this[_0x5a039d(0xb1)],'selections':_0x3e8539};}async[_0x1a8fdf(0x7b)](){const _0xae4481=_0x1a8fdf;this[_0xae4481(0xc4)]instanceof _0x2d8962?this[_0xae4481(0xb6)](this[_0xae4481(0xc4)]):this[_0xae4481(0x85)](this[_0xae4481(0xc4)][_0xae4481(0xde)],_0xae4481(0xb7),(_0x9aacbe,_0x1c9379)=>{const _0x1bc735=_0xae4481;_0x1c9379['on'](_0x1bc735(0xb9),()=>{const _0x19afa9=_0x1bc735;this[_0x19afa9(0xb6)](_0x1c9379);});});}[_0x1a8fdf(0xb6)](_0x66635f){const _0x7f9ed1=_0x1a8fdf;_0x66635f[_0x7f9ed1(0x82)][_0x7f9ed1(0xa0)](_0x7f9ed1(0xc3))[_0x7f9ed1(0xe4)]({'model':_0x7f9ed1(0x8b),'view':{'classes':[_0x7f9ed1(0x8c),_0x7f9ed1(0xa7)],'priority':0xc}}),_0x66635f[_0x7f9ed1(0x82)][_0x7f9ed1(0xa0)](_0x7f9ed1(0xc8))[_0x7f9ed1(0xd0)]({'model':_0x7f9ed1(0x8b),'view':(_0x3797a3,{writer:_0x5b23de,options:_0x565af3})=>_0x565af3[_0x7f9ed1(0x8a)]?_0x5b23de[_0x7f9ed1(0x8f)](_0x3797a3[_0x7f9ed1(0xad)]+':'+(_0x3797a3[_0x7f9ed1(0x86)]?_0x7f9ed1(0xcf):_0x7f9ed1(0x9c))):null});}[_0x1a8fdf(0xcd)](_0x2a7c85,_0x34e6f2,_0x592794=!0x1,_0x559220=!0x1){const _0x39a525=_0x1a8fdf;if(this[_0x39a525(0xa5)]&&!_0x559220)return!0x1;this[_0x39a525(0x92)]&&this[_0x39a525(0x9f)](this[_0x39a525(0x92)]),this[_0x39a525(0x92)]=_0x34e6f2,this[_0x39a525(0xa5)]=_0x592794;const _0x53d9a6=_0x568ca2(this[_0x39a525(0xc4)])[_0x39a525(0xdd)];return _0x53d9a6[_0x39a525(0xbc)](_0x57223b=>{const _0x3a2bc7=_0x39a525;let _0x4f7ca7=0x0;for(let _0x4ae293 of _0x2a7c85){const _0x538eb1=_0x3a2bc7(0xa6)+_0x4f7ca7;if(_0x4ae293[_0x3a2bc7(0xcf)][_0x3a2bc7(0x7d)]){const _0x339dc5=_0x4ae293[_0x3a2bc7(0xcf)][_0x3a2bc7(0x9a)](({item:_0x43dce3})=>!_0x53d9a6[_0x3a2bc7(0xa8)][_0x3a2bc7(0xce)](_0x43dce3),{'boundaries':_0x4ae293});_0x4ae293=_0x57223b[_0x3a2bc7(0x84)](_0x339dc5,_0x4ae293[_0x3a2bc7(0x9c)]);}_0x57223b[_0x3a2bc7(0x94)](_0x538eb1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4ae293}),_0x4f7ca7++;}}),window[_0x39a525(0xc2)]()?.[_0x39a525(0x9e)](),!0x0;}[_0x1a8fdf(0x9f)](_0x45910e){const _0x2b9fde=_0x1a8fdf;if(this[_0x2b9fde(0x92)]!=_0x45910e)return!0x1;this[_0x2b9fde(0x92)]=null,this[_0x2b9fde(0xa5)]=!0x1;const _0x20297f=_0x568ca2(this[_0x2b9fde(0xc4)]),_0x3e3dc6=_0x20297f[_0x2b9fde(0xdd)][_0x2b9fde(0xa2)][_0x2b9fde(0xb8)](_0x2b9fde(0x8b));return _0x20297f[_0x2b9fde(0xdd)][_0x2b9fde(0xbc)](_0x1468fe=>{const _0x19c503=_0x2b9fde;for(const _0x49394d of _0x3e3dc6)_0x1468fe[_0x19c503(0xa9)](_0x49394d);}),!0x0;}[_0x1a8fdf(0xe1)](_0x3c0ad0){const _0x557bcc=_0x1a8fdf,_0x43b0bd=_0x568ca2(this[_0x557bcc(0xc4)]),_0x9f2097=_0x43b0bd[_0x557bcc(0x80)][_0x557bcc(0xcb)](_0x3c0ad0),_0x2de95b=new _0x441827(_0x43b0bd[_0x557bcc(0xbb)][_0x557bcc(0x95)][_0x557bcc(0x98)]);return this[_0x557bcc(0x88)](_0x9f2097,_0x2de95b),_0x9f2097;}[_0x1a8fdf(0x88)](_0x1f4455,_0x1853a6){const _0x5b75ca=_0x1a8fdf;let _0x5a5c18=!0x1;const _0x446bb6=new Set();for(const _0x22d13c of _0x1f4455[_0x5b75ca(0xdf)]()){const _0x86b99d=_0x22d13c['is'](_0x5b75ca(0xdb))||_0x22d13c['is'](_0x5b75ca(0xc9));if(!_0x22d13c['is'](_0x5b75ca(0x93)))continue;(this[_0x5b75ca(0x88)](_0x22d13c,_0x1853a6)||_0x86b99d)&&(_0x1853a6[_0x5b75ca(0x9b)](_0x5b75ca(0xab),this[_0x5b75ca(0xbe)](_0x446bb6),_0x22d13c),_0x5a5c18=!0x0);}return _0x5a5c18;}[_0x1a8fdf(0xbe)](_0x5452a0){const _0x3ec19e=_0x1a8fdf;let _0x3fa8fa;do{_0x3fa8fa='';for(let _0x1e6073=0x0;_0x1e6073<0x4;_0x1e6073++)_0x3fa8fa+=String[_0x3ec19e(0xe3)](0x61+Math[_0x3ec19e(0x83)](0x1a*Math[_0x3ec19e(0x90)]()));}while(_0x5452a0[_0x3ec19e(0xaf)](_0x3fa8fa));return _0x5452a0[_0x3ec19e(0xb7)](_0x3fa8fa),_0x3fa8fa;}[_0x1a8fdf(0xd7)](){const _0x372bfb=_0x1a8fdf,{model:_0xf42a2f}=_0x568ca2(this[_0x372bfb(0xc4)]),_0x2a68d4=_0xf42a2f[_0x372bfb(0x98)][_0x372bfb(0xd9)],_0x4c3426=_0xf42a2f[_0x372bfb(0x9d)](_0x2a68d4),_0x4c14c4=[],_0x1ed58c=_0xf42a2f[_0x372bfb(0x96)](_0x4c3426)[_0x372bfb(0xb3)]();for(const {item:_0x2d29f8}of _0x1ed58c)_0x2d29f8['is'](_0x372bfb(0xc1))?_0x4c14c4[_0x372bfb(0xba)](_0x2d29f8[_0x372bfb(0x80)]):_0x2d29f8['is'](_0x372bfb(0x93))&&_0x4c14c4[_0x372bfb(0xd2)]>0x0&&'\x20'!==_0x4c14c4[_0x4c14c4[_0x372bfb(0xd2)]-0x1]&&_0x4c14c4[_0x372bfb(0xba)]('\x20');return'\x22'+_0x4c14c4[_0x372bfb(0xca)]('')[_0x372bfb(0xb0)]()+'\x22';}[_0x1a8fdf(0xdc)](){const _0x556358=_0x1a8fdf,_0x3c647e=_0x568ca2(this[_0x556358(0xc4)])[_0x556358(0xdd)];return Array[_0x556358(0x91)](_0x3c647e[_0x556358(0xa2)][_0x556358(0xb8)](_0x556358(0x8b)))[_0x556358(0xd3)]((_0x57ced5,_0x447a16)=>_0x57ced5[_0x556358(0x99)]()[_0x556358(0xc0)](_0x447a16[_0x556358(0x99)]())?-0x1:_0x57ced5[_0x556358(0x99)]()[_0x556358(0xa3)](_0x447a16[_0x556358(0x99)]())?0x1:0x0);}}
23
+ const _0x71efb6=_0x5e27;function _0x58c5(){const _0x2f0d90=['for','start','_displayedFakeSelectionId','addMarker','ai-selection:','_setDataIdsOnChildren','ai-selection','markerToElement','591819jRNgFr','from',':start>','isOfficialPlugin','view','substring',':start></','getMarkersGroup','containerElement','19430505BzmFNt',':end></','getDocumentData','push','editing','markerName','sort','plugins','conversion','isAfter','getLastMatchingPosition','3644526cAWxlk','RealTimeCollaborationClient','getStart','showFakeVisualSelection','hideFakeVisualSelection','toView','createRange','_nextDataId','processor','selection','getSelectionText','removeMarker','join','_integrateEditor','1330580GCOkru','data-id','end','createRangeIn','ck-fake-ai-selection','1sDvbAi','_displayedFakeSelectionLocked','editingDowncast','length','dataDowncast','getWalker',':end>','AIEditing','element','trim','version','ck-ai-assistant-ui_theme','createUIElement','random','model','getRoot','isPremiumPlugin','change','markers','add','schema','markerToHighlight','_sessionId','getSelection','_getMarkersInDocumentOrder','removeAllRanges','data','pluginName','isOpening','2395580KckjCo','5eyOAHK','fromCharCode','ready','context','setAttribute','4073272gDqdwm','has','get','sessionId','document','$textProxy','convertAiChatSelectionMarker','getSelectedContent','listenTo','3006712SgXPFW','isBefore','isAtEnd','isContent','indexOf','afterInit','floor','getChildren','editors','name','modelToViewWithIds','toData','emptyElement'];_0x58c5=function(){return _0x2f0d90;};return _0x58c5();}function _0x5e27(_0x52081e,_0x2c4c36){const _0x58c5b5=_0x58c5();return _0x5e27=function(_0x5e27ca,_0x347036){_0x5e27ca=_0x5e27ca-0x16a;let _0x544f3a=_0x58c5b5[_0x5e27ca];return _0x544f3a;},_0x5e27(_0x52081e,_0x2c4c36);}(function(_0x279edb,_0x4cd418){const _0x5a22cb=_0x5e27,_0xbaba99=_0x279edb();while(!![]){try{const _0x3ce57d=parseInt(_0x5a22cb(0x1bd))/0x1*(-parseInt(_0x5a22cb(0x1b8))/0x2)+-parseInt(_0x5a22cb(0x196))/0x3+-parseInt(_0x5a22cb(0x172))/0x4+parseInt(_0x5a22cb(0x173))/0x5*(parseInt(_0x5a22cb(0x1aa))/0x6)+-parseInt(_0x5a22cb(0x178))/0x7+-parseInt(_0x5a22cb(0x181))/0x8+parseInt(_0x5a22cb(0x19f))/0x9;if(_0x3ce57d===_0x4cd418)break;else _0xbaba99['push'](_0xbaba99['shift']());}catch(_0x1c8083){_0xbaba99['push'](_0xbaba99['shift']());}}}(_0x58c5,0x54c25));import{ViewDowncastWriter as _0x459de5}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2b884a,Editor as _0x1d7ccd}from'ckeditor5/src/core.js';import{uid as _0x3fe478}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x346dc7}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x71efb6(0x194);export class AIEditing extends _0x2b884a{[_0x71efb6(0x190)]=null;[_0x71efb6(0x1be)]=!0x1;[_0x71efb6(0x16b)];static get[_0x71efb6(0x170)](){const _0x507c55=_0x71efb6;return _0x507c55(0x1c4);}static get[_0x71efb6(0x199)](){return!0x0;}static get[_0x71efb6(0x1cd)](){return!0x0;}get[_0x71efb6(0x17b)](){const _0xbea11b=_0x71efb6;if(!this[_0xbea11b(0x16b)]){const _0x59c039=_0x346dc7(this[_0xbea11b(0x176)]),_0x42c936=_0x59c039[_0xbea11b(0x1a6)][_0xbea11b(0x179)](_0xbea11b(0x1ab))&&_0x59c039[_0xbea11b(0x1a6)][_0xbea11b(0x17a)](_0xbea11b(0x1ab))[_0xbea11b(0x17b)];this[_0xbea11b(0x16b)]=_0x42c936||_0x3fe478();}return this[_0xbea11b(0x16b)];}[_0x71efb6(0x1a1)](){const _0x5056b9=_0x71efb6,_0x4afcde=_0x346dc7(this[_0x5056b9(0x176)]),_0x123e28=_0x4afcde[_0x5056b9(0x1cb)],_0x289d2c=_0x4afcde[_0x5056b9(0x16f)][_0x5056b9(0x1af)](_0x123e28[_0x5056b9(0x17c)][_0x5056b9(0x1cc)](),{'convertAiChatSelectionMarker':!0x0}),_0x1f8e66=new _0x459de5(_0x4afcde[_0x5056b9(0x1a3)][_0x5056b9(0x19a)][_0x5056b9(0x17c)]);this[_0x5056b9(0x193)](_0x289d2c,_0x1f8e66);let _0xff7473=_0x4afcde[_0x5056b9(0x16f)][_0x5056b9(0x1b2)][_0x5056b9(0x18c)](_0x289d2c);const _0x252da6=this[_0x5056b9(0x16d)](),_0x4a12ce=[];for(const _0xf8d10 of _0x252da6){const _0x294002='<'+_0xf8d10[_0x5056b9(0x18a)]+_0x5056b9(0x19c)+_0xf8d10[_0x5056b9(0x18a)]+_0x5056b9(0x198),_0x565369=_0xff7473[_0x5056b9(0x185)](_0x294002);_0xff7473=_0xff7473[_0x5056b9(0x19b)](0x0,_0x565369)+_0xff7473[_0x5056b9(0x19b)](_0x565369+_0x294002[_0x5056b9(0x1c0)]);const _0x39de38='<'+_0xf8d10[_0x5056b9(0x18a)]+_0x5056b9(0x1a0)+_0xf8d10[_0x5056b9(0x18a)]+_0x5056b9(0x1c3),_0x3ff433=_0xff7473[_0x5056b9(0x185)](_0x39de38);_0xff7473=_0xff7473[_0x5056b9(0x19b)](0x0,_0x3ff433)+_0xff7473[_0x5056b9(0x19b)](_0x3ff433+_0x39de38[_0x5056b9(0x1c0)]),_0x4a12ce[_0x5056b9(0x1a2)]({'markerName':_0xf8d10[_0x5056b9(0x18a)],'start':_0x565369,'end':_0x3ff433,'htmlFragment':_0xff7473[_0x5056b9(0x19b)](_0x565369,_0x3ff433)});}return{'content':_0xff7473,'version':_0x4afcde[_0x5056b9(0x1cb)][_0x5056b9(0x17c)][_0x5056b9(0x1c7)],'sessionId':this[_0x5056b9(0x17b)],'selections':_0x4a12ce};}async[_0x71efb6(0x186)](){const _0x492b6b=_0x71efb6;this[_0x492b6b(0x176)]instanceof _0x1d7ccd?this[_0x492b6b(0x1b7)](this[_0x492b6b(0x176)]):this[_0x492b6b(0x180)](this[_0x492b6b(0x176)][_0x492b6b(0x189)],_0x492b6b(0x1d0),(_0x5d6956,_0x30ebb8)=>{const _0x2e0662=_0x492b6b;_0x30ebb8['on'](_0x2e0662(0x175),()=>{const _0x53d9f5=_0x2e0662;this[_0x53d9f5(0x1b7)](_0x30ebb8);});});}[_0x71efb6(0x1b7)](_0xfd48f9){const _0x2cb72f=_0x71efb6;_0xfd48f9[_0x2cb72f(0x1a7)][_0x2cb72f(0x18e)](_0x2cb72f(0x1bf))[_0x2cb72f(0x16a)]({'model':_0x2cb72f(0x194),'view':{'classes':[_0x2cb72f(0x1bc),_0x2cb72f(0x1c8)],'priority':0xc}}),_0xfd48f9[_0x2cb72f(0x1a7)][_0x2cb72f(0x18e)](_0x2cb72f(0x1c1))[_0x2cb72f(0x195)]({'model':_0x2cb72f(0x194),'view':(_0x677cb8,{writer:_0x36e556,options:_0x170f5a})=>_0x170f5a[_0x2cb72f(0x17e)]?_0x36e556[_0x2cb72f(0x1c9)](_0x677cb8[_0x2cb72f(0x1a4)]+':'+(_0x677cb8[_0x2cb72f(0x171)]?_0x2cb72f(0x18f):_0x2cb72f(0x1ba))):null});}[_0x71efb6(0x1ad)](_0x58c273,_0x345dd3,_0x3e321a=!0x1,_0x37474b=!0x1){const _0x490e8a=_0x71efb6;if(this[_0x490e8a(0x1be)]&&!_0x37474b)return!0x1;const _0x315048=_0x346dc7(this[_0x490e8a(0x176)])[_0x490e8a(0x1cb)];return _0x315048[_0x490e8a(0x1ce)](_0x4a77f0=>{const _0xa0375c=_0x490e8a;this[_0xa0375c(0x190)]&&this[_0xa0375c(0x1ae)](this[_0xa0375c(0x190)]),this[_0xa0375c(0x190)]=_0x345dd3,this[_0xa0375c(0x1be)]=_0x3e321a;let _0x41ab66=0x0;for(let _0x8c82ef of _0x58c273){const _0x19a569=_0xa0375c(0x192)+_0x41ab66;if(_0x8c82ef[_0xa0375c(0x18f)][_0xa0375c(0x183)]){const _0x596278=_0x8c82ef[_0xa0375c(0x18f)][_0xa0375c(0x1a9)](({item:_0x3f57d4})=>!_0x315048[_0xa0375c(0x1d1)][_0xa0375c(0x184)](_0x3f57d4),{'boundaries':_0x8c82ef});_0x8c82ef=_0x4a77f0[_0xa0375c(0x1b0)](_0x596278,_0x8c82ef[_0xa0375c(0x1ba)]);}_0x4a77f0[_0xa0375c(0x191)](_0x19a569,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x8c82ef}),_0x41ab66++;}}),window[_0x490e8a(0x16c)]()?.[_0x490e8a(0x16e)](),!0x0;}[_0x71efb6(0x1ae)](_0x448f66){const _0x34ddf6=_0x71efb6;if(this[_0x34ddf6(0x190)]!=_0x448f66)return!0x1;this[_0x34ddf6(0x190)]=null,this[_0x34ddf6(0x1be)]=!0x1;const _0x29b7b6=_0x346dc7(this[_0x34ddf6(0x176)]),_0x1662e2=_0x29b7b6[_0x34ddf6(0x1cb)][_0x34ddf6(0x1cf)][_0x34ddf6(0x19d)](_0x34ddf6(0x194));return _0x29b7b6[_0x34ddf6(0x1cb)][_0x34ddf6(0x1ce)](_0xbb21c2=>{const _0x1f60bb=_0x34ddf6;for(const _0x81d070 of _0x1662e2)_0xbb21c2[_0x1f60bb(0x1b5)](_0x81d070);}),!0x0;}[_0x71efb6(0x18b)](_0x1376ed){const _0x1e795d=_0x71efb6,_0x28af74=_0x346dc7(this[_0x1e795d(0x176)]),_0x682ea8=_0x28af74[_0x1e795d(0x16f)][_0x1e795d(0x1af)](_0x1376ed),_0x14f90d=new _0x459de5(_0x28af74[_0x1e795d(0x1a3)][_0x1e795d(0x19a)][_0x1e795d(0x17c)]);return this[_0x1e795d(0x193)](_0x682ea8,_0x14f90d),_0x682ea8;}[_0x71efb6(0x193)](_0x5a641a,_0x3e322a){const _0x376896=_0x71efb6;let _0x2e6125=!0x1;const _0x567e99=new Set();for(const _0x40b2c of _0x5a641a[_0x376896(0x188)]()){const _0x3b8910=_0x40b2c['is'](_0x376896(0x18d))||_0x40b2c['is'](_0x376896(0x19e));if(!_0x40b2c['is'](_0x376896(0x1c5)))continue;(this[_0x376896(0x193)](_0x40b2c,_0x3e322a)||_0x3b8910)&&(_0x3e322a[_0x376896(0x177)](_0x376896(0x1b9),this[_0x376896(0x1b1)](_0x567e99),_0x40b2c),_0x2e6125=!0x0);}return _0x2e6125;}[_0x71efb6(0x1b1)](_0x430d55){const _0xe7b63a=_0x71efb6;let _0x42afe6;do{_0x42afe6='';for(let _0x2f0aa9=0x0;_0x2f0aa9<0x4;_0x2f0aa9++)_0x42afe6+=String[_0xe7b63a(0x174)](0x61+Math[_0xe7b63a(0x187)](0x1a*Math[_0xe7b63a(0x1ca)]()));}while(_0x430d55[_0xe7b63a(0x179)](_0x42afe6));return _0x430d55[_0xe7b63a(0x1d0)](_0x42afe6),_0x42afe6;}[_0x71efb6(0x1b4)](){const _0x3bac70=_0x71efb6,{model:_0x32bda9}=_0x346dc7(this[_0x3bac70(0x176)]),_0x221fc7=_0x32bda9[_0x3bac70(0x17c)][_0x3bac70(0x1b3)],_0x53a9f0=_0x32bda9[_0x3bac70(0x17f)](_0x221fc7),_0x71849f=[],_0x110559=_0x32bda9[_0x3bac70(0x1bb)](_0x53a9f0)[_0x3bac70(0x1c2)]();for(const {item:_0x6c80e9}of _0x110559)_0x6c80e9['is'](_0x3bac70(0x17d))?_0x71849f[_0x3bac70(0x1a2)](_0x6c80e9[_0x3bac70(0x16f)]):_0x6c80e9['is'](_0x3bac70(0x1c5))&&_0x71849f[_0x3bac70(0x1c0)]>0x0&&'\x20'!==_0x71849f[_0x71849f[_0x3bac70(0x1c0)]-0x1]&&_0x71849f[_0x3bac70(0x1a2)]('\x20');return'\x22'+_0x71849f[_0x3bac70(0x1b6)]('')[_0x3bac70(0x1c6)]()+'\x22';}[_0x71efb6(0x16d)](){const _0x5c1366=_0x71efb6,_0x5712ce=_0x346dc7(this[_0x5c1366(0x176)])[_0x5c1366(0x1cb)];return Array[_0x5c1366(0x197)](_0x5712ce[_0x5c1366(0x1cf)][_0x5c1366(0x19d)](_0x5c1366(0x194)))[_0x5c1366(0x1a5)]((_0x54227e,_0x2a1c2e)=>_0x54227e[_0x5c1366(0x1ac)]()[_0x5c1366(0x182)](_0x2a1c2e[_0x5c1366(0x1ac)]())?-0x1:_0x54227e[_0x5c1366(0x1ac)]()[_0x5c1366(0x1a8)](_0x2a1c2e[_0x5c1366(0x1ac)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a07bf=_0x2af5;(function(_0x82a694,_0x52b913){const _0x3a1953=_0x2af5,_0x5e9f75=_0x82a694();while(!![]){try{const _0x7a9c0=parseInt(_0x3a1953(0x1c9))/0x1*(-parseInt(_0x3a1953(0x1c0))/0x2)+parseInt(_0x3a1953(0x1c2))/0x3*(parseInt(_0x3a1953(0x1d1))/0x4)+parseInt(_0x3a1953(0x1cb))/0x5+parseInt(_0x3a1953(0x1d2))/0x6+-parseInt(_0x3a1953(0x1d3))/0x7+parseInt(_0x3a1953(0x1c8))/0x8*(parseInt(_0x3a1953(0x1d0))/0x9)+parseInt(_0x3a1953(0x1bd))/0xa*(-parseInt(_0x3a1953(0x1c5))/0xb);if(_0x7a9c0===_0x52b913)break;else _0x5e9f75['push'](_0x5e9f75['shift']());}catch(_0x35a8fb){_0x5e9f75['push'](_0x5e9f75['shift']());}}}(_0x26fa,0x41bdc));import{EmitterMixin as _0x8bb345}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2a07bf(0x1c4)];function _0x26fa(){const _0x529fd0=['webSearch','2300965dyqnXL','_isReasoningEnabled','setReasoning','init','setWebSearch','1975527ciCJxI','239672AzeYVs','1728330FMErsq','3235190YiwBsp','isReasoningEnabled','_isWebSearchEnabled','toggleWebSearch','getCapabilitiesRequestData','60bnojHL','reasoning','getCapabilitiesConfig','9842UBaSlh','fire','6MrDFUU','toggleReasoning','capabilitiesUpdated','694474rFLlpu','reset','isWebSearchEnabled','16UVYwep','40TBQrrp'];_0x26fa=function(){return _0x529fd0;};return _0x26fa();}function _0x2af5(_0x3c2a19,_0x416d05){const _0x26faa4=_0x26fa();return _0x2af5=function(_0x2af55d,_0x1f753c){_0x2af55d=_0x2af55d-0x1b9;let _0x3e5cd5=_0x26faa4[_0x2af55d];return _0x3e5cd5;},_0x2af5(_0x3c2a19,_0x416d05);}export class AICapabilities extends _0x8bb345(){[_0x2a07bf(0x1ba)];[_0x2a07bf(0x1cc)];constructor(){const _0x1397f5=_0x2a07bf;super(),this[_0x1397f5(0x1ba)]=!0x1,this[_0x1397f5(0x1cc)]=!0x1;}[_0x2a07bf(0x1ce)](){const _0x2fcb66=_0x2a07bf;this[_0x2fcb66(0x1c6)]();}[_0x2a07bf(0x1c6)](){const _0x37faf8=_0x2a07bf;this[_0x37faf8(0x1cf)](!0x1),this[_0x37faf8(0x1cd)](!0x1);}[_0x2a07bf(0x1bf)](){const _0x5c108f=_0x2a07bf;return{'isWebSearchEnabled':this[_0x5c108f(0x1ba)],'isReasoningEnabled':this[_0x5c108f(0x1cc)]};}static[_0x2a07bf(0x1bc)](_0x5705c1){const _0x4a605c=_0x2a07bf,_0x2a336b={};return _0x5705c1&&_0x5705c1[_0x4a605c(0x1c7)]&&(_0x2a336b[_0x4a605c(0x1ca)]={}),_0x5705c1&&_0x5705c1[_0x4a605c(0x1b9)]&&(_0x2a336b[_0x4a605c(0x1be)]={}),_0x2a336b;}[_0x2a07bf(0x1bb)](){const _0x38e746=_0x2a07bf;this[_0x38e746(0x1cf)](!this[_0x38e746(0x1ba)]);}[_0x2a07bf(0x1c3)](){const _0x310a02=_0x2a07bf;this[_0x310a02(0x1cd)](!this[_0x310a02(0x1cc)]);}[_0x2a07bf(0x1cf)](_0x986eb5){const _0x46b50a=_0x2a07bf;_0x986eb5!==this[_0x46b50a(0x1ba)]&&(this[_0x46b50a(0x1ba)]=_0x986eb5,this[_0x46b50a(0x1c1)](_0x46b50a(0x1c4),this[_0x46b50a(0x1bf)]()));}[_0x2a07bf(0x1cd)](_0x5e3c28){const _0x53ec59=_0x2a07bf;_0x5e3c28!==this[_0x53ec59(0x1cc)]&&(this[_0x53ec59(0x1cc)]=_0x5e3c28,this[_0x53ec59(0x1c1)](_0x53ec59(0x1c4),this[_0x53ec59(0x1bf)]()));}}
23
+ function _0x2ee8(_0x3b14bd,_0x30ca53){const _0xf1d5e=_0xf1d5();return _0x2ee8=function(_0x2ee8e1,_0x152327){_0x2ee8e1=_0x2ee8e1-0x74;let _0x16d680=_0xf1d5e[_0x2ee8e1];return _0x16d680;},_0x2ee8(_0x3b14bd,_0x30ca53);}const _0x350811=_0x2ee8;(function(_0x1915ab,_0x111c2d){const _0x221b69=_0x2ee8,_0x11d4bb=_0x1915ab();while(!![]){try{const _0x5691a6=-parseInt(_0x221b69(0x83))/0x1+-parseInt(_0x221b69(0x78))/0x2+parseInt(_0x221b69(0x74))/0x3+parseInt(_0x221b69(0x7b))/0x4+parseInt(_0x221b69(0x7d))/0x5+-parseInt(_0x221b69(0x75))/0x6+parseInt(_0x221b69(0x85))/0x7;if(_0x5691a6===_0x111c2d)break;else _0x11d4bb['push'](_0x11d4bb['shift']());}catch(_0x844434){_0x11d4bb['push'](_0x11d4bb['shift']());}}}(_0xf1d5,0xbdcae));import{EmitterMixin as _0x5503c1}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x350811(0x8a)];function _0xf1d5(){const _0x5ca23a=['4027782KQfsSl','4837260aNjvTp','isReasoningEnabled','reset','1040940BnpKkt','webSearch','toggleReasoning','695812ccEuxu','fire','589445yPAlfN','getCapabilitiesConfig','setReasoning','toggleWebSearch','getCapabilitiesRequestData','setWebSearch','84427rIYVYl','reasoning','3878427tLyclb','_isWebSearchEnabled','isWebSearchEnabled','_isReasoningEnabled','init','capabilitiesUpdated'];_0xf1d5=function(){return _0x5ca23a;};return _0xf1d5();}export class AICapabilities extends _0x5503c1(){[_0x350811(0x86)];[_0x350811(0x88)];constructor(){const _0x440455=_0x350811;super(),this[_0x440455(0x86)]=!0x1,this[_0x440455(0x88)]=!0x1;}[_0x350811(0x89)](){const _0x2d5363=_0x350811;this[_0x2d5363(0x77)]();}[_0x350811(0x77)](){const _0x305f02=_0x350811;this[_0x305f02(0x82)](!0x1),this[_0x305f02(0x7f)](!0x1);}[_0x350811(0x7e)](){const _0x5dbe63=_0x350811;return{'isWebSearchEnabled':this[_0x5dbe63(0x86)],'isReasoningEnabled':this[_0x5dbe63(0x88)]};}static[_0x350811(0x81)](_0x2bc8fb){const _0x558b0b=_0x350811,_0x1f7db8={};return _0x2bc8fb&&_0x2bc8fb[_0x558b0b(0x87)]&&(_0x1f7db8[_0x558b0b(0x79)]={}),_0x2bc8fb&&_0x2bc8fb[_0x558b0b(0x76)]&&(_0x1f7db8[_0x558b0b(0x84)]={}),_0x1f7db8;}[_0x350811(0x80)](){const _0xc3cadd=_0x350811;this[_0xc3cadd(0x82)](!this[_0xc3cadd(0x86)]);}[_0x350811(0x7a)](){const _0x37c087=_0x350811;this[_0x37c087(0x7f)](!this[_0x37c087(0x88)]);}[_0x350811(0x82)](_0x5a901e){const _0x5ea8a3=_0x350811;_0x5a901e!==this[_0x5ea8a3(0x86)]&&(this[_0x5ea8a3(0x86)]=_0x5a901e,this[_0x5ea8a3(0x7c)](_0x5ea8a3(0x8a),this[_0x5ea8a3(0x7e)]()));}[_0x350811(0x7f)](_0x169296){const _0xf27c46=_0x350811;_0x169296!==this[_0xf27c46(0x88)]&&(this[_0xf27c46(0x88)]=_0x169296,this[_0xf27c46(0x7c)](_0xf27c46(0x8a),this[_0xf27c46(0x7e)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xa9b9fd,_0x1cebbc){var _0xd71deb=_0x2b51,_0x407999=_0xa9b9fd();while(!![]){try{var _0x4f07ad=parseInt(_0xd71deb(0x1ad))/0x1*(-parseInt(_0xd71deb(0x1b5))/0x2)+parseInt(_0xd71deb(0x1ae))/0x3*(parseInt(_0xd71deb(0x1aa))/0x4)+parseInt(_0xd71deb(0x1bc))/0x5+parseInt(_0xd71deb(0x1b8))/0x6*(parseInt(_0xd71deb(0x1a9))/0x7)+parseInt(_0xd71deb(0x1b1))/0x8+-parseInt(_0xd71deb(0x1c0))/0x9*(parseInt(_0xd71deb(0x1be))/0xa)+parseInt(_0xd71deb(0x1bf))/0xb*(parseInt(_0xd71deb(0x1ba))/0xc);if(_0x4f07ad===_0x1cebbc)break;else _0x407999['push'](_0x407999['shift']());}catch(_0x1736f2){_0x407999['push'](_0x407999['shift']());}}}(_0x5208,0x84836));export var AIContextItemType;!function(_0x32c052){var _0x3e542e=_0x2b51;_0x32c052[_0x3e542e(0x1c2)]=_0x3e542e(0x1b7),_0x32c052[_0x3e542e(0x1b0)]=_0x3e542e(0x1ab),_0x32c052[_0x3e542e(0x1af)]=_0x3e542e(0x1b9),_0x32c052[_0x3e542e(0x1b3)]=_0x3e542e(0x1ac),_0x32c052[_0x3e542e(0x1b4)]=_0x3e542e(0x1b2);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x2b51(_0x20b411,_0x38a852){var _0x52087c=_0x5208();return _0x2b51=function(_0x2b51f2,_0x578f21){_0x2b51f2=_0x2b51f2-0x1a9;var _0x35d77c=_0x52087c[_0x2b51f2];return _0x35d77c;},_0x2b51(_0x20b411,_0x38a852);}!function(_0x364001){var _0x4882cf=_0x2b51;_0x364001[_0x4882cf(0x1b3)]=_0x4882cf(0x1ac),_0x364001[_0x4882cf(0x1b6)]=_0x4882cf(0x1bb),_0x364001[_0x4882cf(0x1bd)]=_0x4882cf(0x1c1);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5208(){var _0x5669f1=['1243140JKPCZI','HTML','10sFFUdx','338151Lmdzsl','6007032IkStrD','html','FILE','324681bNDwFe','24gfsnuc','document','text','17TikAVK','538899dbeRRG','URL','DOCUMENT','2809664XJVoJE','selection','TEXT','SELECTION','96804XaUAVs','MARKDOWN','file','42ZSVKDW','web-resource','12tOZgyF','markdown'];_0x5208=function(){return _0x5669f1;};return _0x5208();}
23
+ (function(_0x265f73,_0xa0f75e){var _0x49c6b4=_0x52cb,_0x1b6c6b=_0x265f73();while(!![]){try{var _0x3b455a=parseInt(_0x49c6b4(0x10d))/0x1*(-parseInt(_0x49c6b4(0xfc))/0x2)+-parseInt(_0x49c6b4(0xfb))/0x3+parseInt(_0x49c6b4(0x10a))/0x4*(-parseInt(_0x49c6b4(0xff))/0x5)+-parseInt(_0x49c6b4(0x108))/0x6*(-parseInt(_0x49c6b4(0x103))/0x7)+-parseInt(_0x49c6b4(0x101))/0x8*(parseInt(_0x49c6b4(0x105))/0x9)+parseInt(_0x49c6b4(0x10c))/0xa*(-parseInt(_0x49c6b4(0x10e))/0xb)+parseInt(_0x49c6b4(0xfa))/0xc*(parseInt(_0x49c6b4(0x110))/0xd);if(_0x3b455a===_0xa0f75e)break;else _0x1b6c6b['push'](_0x1b6c6b['shift']());}catch(_0x456ce9){_0x1b6c6b['push'](_0x1b6c6b['shift']());}}}(_0x1d2b,0x74a0a));export var AIContextItemType;!function(_0x433d7b){var _0x58997b=_0x52cb;_0x433d7b[_0x58997b(0xfe)]=_0x58997b(0x106),_0x433d7b[_0x58997b(0x112)]=_0x58997b(0x107),_0x433d7b[_0x58997b(0x104)]=_0x58997b(0x10b),_0x433d7b[_0x58997b(0x113)]=_0x58997b(0x100),_0x433d7b[_0x58997b(0x109)]=_0x58997b(0xf9);}(AIContextItemType||(AIContextItemType={}));function _0x1d2b(){var _0x5e6ffc=['TEXT','selection','95124TChQee','386130proVja','168496kyzXEq','HTML','FILE','1795hsizQN','text','72088nsHuGI','markdown','487389BGnWAI','URL','801mpfIHL','file','document','18cwfEsa','SELECTION','6268JCPbhA','web-resource','7832310YOlRos','11ZCJIyp','11SZLwcf','MARKDOWN','5694YvELsc','html','DOCUMENT'];_0x1d2b=function(){return _0x5e6ffc;};return _0x1d2b();}export var AIContextTextResourceType;function _0x52cb(_0x406ead,_0xe2573e){var _0x1d2b6a=_0x1d2b();return _0x52cb=function(_0x52cb16,_0x3e30c1){_0x52cb16=_0x52cb16-0xf9;var _0x269386=_0x1d2b6a[_0x52cb16];return _0x269386;},_0x52cb(_0x406ead,_0xe2573e);}!function(_0x1b5ab4){var _0x2bdcc5=_0x52cb;_0x1b5ab4[_0x2bdcc5(0x113)]=_0x2bdcc5(0x100),_0x1b5ab4[_0x2bdcc5(0x10f)]=_0x2bdcc5(0x102),_0x1b5ab4[_0x2bdcc5(0xfd)]=_0x2bdcc5(0x111);}(AIContextTextResourceType||(AIContextTextResourceType={}));