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

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 (465) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/dist/index-editor.css +93 -5
  75. package/dist/index.css +118 -5
  76. package/dist/index.js +4 -4
  77. package/dist/translations/af.js +1 -1
  78. package/dist/translations/af.umd.js +1 -1
  79. package/dist/translations/ar.js +1 -1
  80. package/dist/translations/ar.umd.js +1 -1
  81. package/dist/translations/ast.js +1 -1
  82. package/dist/translations/ast.umd.js +1 -1
  83. package/dist/translations/az.js +1 -1
  84. package/dist/translations/az.umd.js +1 -1
  85. package/dist/translations/be.js +1 -1
  86. package/dist/translations/be.umd.js +1 -1
  87. package/dist/translations/bg.js +1 -1
  88. package/dist/translations/bg.umd.js +1 -1
  89. package/dist/translations/bn.js +1 -1
  90. package/dist/translations/bn.umd.js +1 -1
  91. package/dist/translations/bs.js +1 -1
  92. package/dist/translations/bs.umd.js +1 -1
  93. package/dist/translations/ca.js +1 -1
  94. package/dist/translations/ca.umd.js +1 -1
  95. package/dist/translations/cs.js +1 -1
  96. package/dist/translations/cs.umd.js +1 -1
  97. package/dist/translations/da.js +1 -1
  98. package/dist/translations/da.umd.js +1 -1
  99. package/dist/translations/de-ch.js +1 -1
  100. package/dist/translations/de-ch.umd.js +1 -1
  101. package/dist/translations/de.js +1 -1
  102. package/dist/translations/de.umd.js +1 -1
  103. package/dist/translations/el.js +1 -1
  104. package/dist/translations/el.umd.js +1 -1
  105. package/dist/translations/en-au.js +1 -1
  106. package/dist/translations/en-au.umd.js +1 -1
  107. package/dist/translations/en-gb.js +1 -1
  108. package/dist/translations/en-gb.umd.js +1 -1
  109. package/dist/translations/en.js +1 -1
  110. package/dist/translations/en.umd.js +1 -1
  111. package/dist/translations/eo.js +1 -1
  112. package/dist/translations/eo.umd.js +1 -1
  113. package/dist/translations/es-co.js +1 -1
  114. package/dist/translations/es-co.umd.js +1 -1
  115. package/dist/translations/es.js +1 -1
  116. package/dist/translations/es.umd.js +1 -1
  117. package/dist/translations/et.js +1 -1
  118. package/dist/translations/et.umd.js +1 -1
  119. package/dist/translations/eu.js +1 -1
  120. package/dist/translations/eu.umd.js +1 -1
  121. package/dist/translations/fa.js +1 -1
  122. package/dist/translations/fa.umd.js +1 -1
  123. package/dist/translations/fi.js +1 -1
  124. package/dist/translations/fi.umd.js +1 -1
  125. package/dist/translations/fr.js +1 -1
  126. package/dist/translations/fr.umd.js +1 -1
  127. package/dist/translations/gl.js +1 -1
  128. package/dist/translations/gl.umd.js +1 -1
  129. package/dist/translations/gu.js +1 -1
  130. package/dist/translations/gu.umd.js +1 -1
  131. package/dist/translations/he.js +1 -1
  132. package/dist/translations/he.umd.js +1 -1
  133. package/dist/translations/hi.js +1 -1
  134. package/dist/translations/hi.umd.js +1 -1
  135. package/dist/translations/hr.js +1 -1
  136. package/dist/translations/hr.umd.js +1 -1
  137. package/dist/translations/hu.js +1 -1
  138. package/dist/translations/hu.umd.js +1 -1
  139. package/dist/translations/hy.js +1 -1
  140. package/dist/translations/hy.umd.js +1 -1
  141. package/dist/translations/id.js +1 -1
  142. package/dist/translations/id.umd.js +1 -1
  143. package/dist/translations/it.js +1 -1
  144. package/dist/translations/it.umd.js +1 -1
  145. package/dist/translations/ja.js +1 -1
  146. package/dist/translations/ja.umd.js +1 -1
  147. package/dist/translations/jv.js +1 -1
  148. package/dist/translations/jv.umd.js +1 -1
  149. package/dist/translations/kk.js +1 -1
  150. package/dist/translations/kk.umd.js +1 -1
  151. package/dist/translations/km.js +1 -1
  152. package/dist/translations/km.umd.js +1 -1
  153. package/dist/translations/kn.js +1 -1
  154. package/dist/translations/kn.umd.js +1 -1
  155. package/dist/translations/ko.js +1 -1
  156. package/dist/translations/ko.umd.js +1 -1
  157. package/dist/translations/ku.js +1 -1
  158. package/dist/translations/ku.umd.js +1 -1
  159. package/dist/translations/lt.js +1 -1
  160. package/dist/translations/lt.umd.js +1 -1
  161. package/dist/translations/lv.js +1 -1
  162. package/dist/translations/lv.umd.js +1 -1
  163. package/dist/translations/ms.js +1 -1
  164. package/dist/translations/ms.umd.js +1 -1
  165. package/dist/translations/nb.js +1 -1
  166. package/dist/translations/nb.umd.js +1 -1
  167. package/dist/translations/ne.js +1 -1
  168. package/dist/translations/ne.umd.js +1 -1
  169. package/dist/translations/nl.js +1 -1
  170. package/dist/translations/nl.umd.js +1 -1
  171. package/dist/translations/no.js +1 -1
  172. package/dist/translations/no.umd.js +1 -1
  173. package/dist/translations/oc.js +1 -1
  174. package/dist/translations/oc.umd.js +1 -1
  175. package/dist/translations/pl.js +1 -1
  176. package/dist/translations/pl.umd.js +1 -1
  177. package/dist/translations/pt-br.js +1 -1
  178. package/dist/translations/pt-br.umd.js +1 -1
  179. package/dist/translations/pt.js +1 -1
  180. package/dist/translations/pt.umd.js +1 -1
  181. package/dist/translations/ro.js +1 -1
  182. package/dist/translations/ro.umd.js +1 -1
  183. package/dist/translations/ru.js +1 -1
  184. package/dist/translations/ru.umd.js +1 -1
  185. package/dist/translations/si.js +1 -1
  186. package/dist/translations/si.umd.js +1 -1
  187. package/dist/translations/sk.js +1 -1
  188. package/dist/translations/sk.umd.js +1 -1
  189. package/dist/translations/sl.js +1 -1
  190. package/dist/translations/sl.umd.js +1 -1
  191. package/dist/translations/sq.js +1 -1
  192. package/dist/translations/sq.umd.js +1 -1
  193. package/dist/translations/sr-latn.js +1 -1
  194. package/dist/translations/sr-latn.umd.js +1 -1
  195. package/dist/translations/sr.js +1 -1
  196. package/dist/translations/sr.umd.js +1 -1
  197. package/dist/translations/sv.js +1 -1
  198. package/dist/translations/sv.umd.js +1 -1
  199. package/dist/translations/th.js +1 -1
  200. package/dist/translations/th.umd.js +1 -1
  201. package/dist/translations/ti.js +1 -1
  202. package/dist/translations/ti.umd.js +1 -1
  203. package/dist/translations/tk.js +1 -1
  204. package/dist/translations/tk.umd.js +1 -1
  205. package/dist/translations/tr.js +1 -1
  206. package/dist/translations/tr.umd.js +1 -1
  207. package/dist/translations/tt.js +1 -1
  208. package/dist/translations/tt.umd.js +1 -1
  209. package/dist/translations/ug.js +1 -1
  210. package/dist/translations/ug.umd.js +1 -1
  211. package/dist/translations/uk.js +1 -1
  212. package/dist/translations/uk.umd.js +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.js +1 -1
  216. package/dist/translations/uz.umd.js +1 -1
  217. package/dist/translations/vi.js +1 -1
  218. package/dist/translations/vi.umd.js +1 -1
  219. package/dist/translations/zh-cn.js +1 -1
  220. package/dist/translations/zh-cn.umd.js +1 -1
  221. package/dist/translations/zh.js +1 -1
  222. package/dist/translations/zh.umd.js +1 -1
  223. package/lang/translations/af.po +224 -0
  224. package/lang/translations/ar.po +232 -0
  225. package/lang/translations/ast.po +224 -0
  226. package/lang/translations/az.po +224 -0
  227. package/lang/translations/be.po +226 -0
  228. package/lang/translations/bg.po +224 -0
  229. package/lang/translations/bn.po +224 -0
  230. package/lang/translations/bs.po +226 -0
  231. package/lang/translations/ca.po +224 -0
  232. package/lang/translations/cs.po +226 -0
  233. package/lang/translations/da.po +224 -0
  234. package/lang/translations/de-ch.po +224 -0
  235. package/lang/translations/de.po +224 -0
  236. package/lang/translations/el.po +224 -0
  237. package/lang/translations/en-au.po +224 -0
  238. package/lang/translations/en-gb.po +224 -0
  239. package/lang/translations/en.po +224 -0
  240. package/lang/translations/eo.po +224 -0
  241. package/lang/translations/es-co.po +224 -0
  242. package/lang/translations/es.po +224 -0
  243. package/lang/translations/et.po +224 -0
  244. package/lang/translations/eu.po +224 -0
  245. package/lang/translations/fa.po +222 -0
  246. package/lang/translations/fi.po +224 -0
  247. package/lang/translations/fr.po +224 -0
  248. package/lang/translations/gl.po +224 -0
  249. package/lang/translations/gu.po +224 -0
  250. package/lang/translations/he.po +224 -0
  251. package/lang/translations/hi.po +224 -0
  252. package/lang/translations/hr.po +226 -0
  253. package/lang/translations/hu.po +224 -0
  254. package/lang/translations/hy.po +224 -0
  255. package/lang/translations/id.po +222 -0
  256. package/lang/translations/it.po +224 -0
  257. package/lang/translations/ja.po +222 -0
  258. package/lang/translations/jv.po +224 -0
  259. package/lang/translations/kk.po +224 -0
  260. package/lang/translations/km.po +222 -0
  261. package/lang/translations/kn.po +224 -0
  262. package/lang/translations/ko.po +222 -0
  263. package/lang/translations/ku.po +224 -0
  264. package/lang/translations/lt.po +226 -0
  265. package/lang/translations/lv.po +226 -0
  266. package/lang/translations/ms.po +222 -0
  267. package/lang/translations/nb.po +224 -0
  268. package/lang/translations/ne.po +224 -0
  269. package/lang/translations/nl.po +224 -0
  270. package/lang/translations/no.po +224 -0
  271. package/lang/translations/oc.po +224 -0
  272. package/lang/translations/pl.po +226 -0
  273. package/lang/translations/pt-br.po +224 -0
  274. package/lang/translations/pt.po +224 -0
  275. package/lang/translations/ro.po +226 -0
  276. package/lang/translations/ru.po +226 -0
  277. package/lang/translations/si.po +224 -0
  278. package/lang/translations/sk.po +226 -0
  279. package/lang/translations/sl.po +228 -0
  280. package/lang/translations/sq.po +224 -0
  281. package/lang/translations/sr-latn.po +226 -0
  282. package/lang/translations/sr.po +226 -0
  283. package/lang/translations/sv.po +224 -0
  284. package/lang/translations/th.po +222 -0
  285. package/lang/translations/ti.po +224 -0
  286. package/lang/translations/tk.po +224 -0
  287. package/lang/translations/tr.po +224 -0
  288. package/lang/translations/tt.po +222 -0
  289. package/lang/translations/ug.po +222 -0
  290. package/lang/translations/uk.po +226 -0
  291. package/lang/translations/ur.po +224 -0
  292. package/lang/translations/uz.po +224 -0
  293. package/lang/translations/vi.po +222 -0
  294. package/lang/translations/zh-cn.po +222 -0
  295. package/lang/translations/zh.po +222 -0
  296. package/package.json +15 -15
  297. package/src/aiactions/aiactions.js +1 -1
  298. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  299. package/src/aiactions/model/aiactionsreply.js +1 -1
  300. package/src/aiassistant/adapters/aiadapter.js +1 -1
  301. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  302. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  303. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  304. package/src/aiassistant/aiassistant.js +1 -1
  305. package/src/aiassistant/aiassistantediting.js +1 -1
  306. package/src/aiassistant/aiassistantui.js +1 -1
  307. package/src/aiassistant/legacyerrors.js +1 -1
  308. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  309. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  310. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  311. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  312. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformview.js +1 -1
  314. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  315. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  316. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  317. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  318. package/src/aiassistant/utils/common-translations.js +1 -1
  319. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  320. package/src/aiballoon/aiballoon.js +1 -1
  321. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  322. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  323. package/src/aiballoon/ui/aiballoonview.js +1 -1
  324. package/src/aichat/aichat.d.ts +12 -4
  325. package/src/aichat/aichat.js +1 -1
  326. package/src/aichat/aichatcontroller.d.ts +0 -1
  327. package/src/aichat/aichatcontroller.js +1 -1
  328. package/src/aichat/aichatui.d.ts +0 -1
  329. package/src/aichat/aichatui.js +1 -1
  330. package/src/aichat/model/aichatcontext.d.ts +0 -30
  331. package/src/aichat/model/aichatcontext.js +1 -1
  332. package/src/aichat/model/aichatconversation.js +1 -1
  333. package/src/aichat/model/aichatinteraction.d.ts +3 -0
  334. package/src/aichat/model/aichatinteraction.js +1 -1
  335. package/src/aichat/model/aichatmodels.js +1 -1
  336. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  337. package/src/aichat/ui/aichatfeedview.js +1 -1
  338. package/src/aichat/ui/aichatheaderview.js +1 -1
  339. package/src/aichat/ui/aichatview.js +1 -1
  340. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  341. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  342. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  343. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  345. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  346. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  347. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  348. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  349. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  350. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  351. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  353. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  354. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  355. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  356. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  361. package/src/aichat/utils/eventnames.js +1 -1
  362. package/src/aichat/utils/promisequeue.js +1 -1
  363. package/src/aichat/utils/scrollmanager.js +1 -1
  364. package/src/aichathistory/aichathistory.js +1 -1
  365. package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
  366. package/src/aichathistory/aichathistorycontroller.js +1 -1
  367. package/src/aichathistory/aichathistoryui.d.ts +0 -1
  368. package/src/aichathistory/aichathistoryui.js +1 -1
  369. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  370. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  371. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  372. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  373. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  374. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  375. package/src/aiconfig.d.ts +47 -9
  376. package/src/aicore/aiconnector.d.ts +2 -3
  377. package/src/aicore/aiconnector.js +1 -1
  378. package/src/aicore/aiediting.d.ts +0 -1
  379. package/src/aicore/aiediting.js +1 -1
  380. package/src/aicore/model/aicapabilities.js +1 -1
  381. package/src/aicore/model/aicontext.js +1 -1
  382. package/src/aicore/model/aiinteraction.js +1 -1
  383. package/src/aicore/model/aireply.js +1 -1
  384. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  385. package/src/aicore/pipeline/airesponseparser.js +2 -2
  386. package/src/aicore/ui/aidisclaimerview.js +1 -1
  387. package/src/aicore/ui/aiskeleton.js +1 -1
  388. package/src/aicore/ui/aispinner.js +1 -1
  389. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  390. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  391. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  392. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  393. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  394. package/src/aicore/utils/common-translations.js +1 -1
  395. package/src/aicore/utils/createresizebutton.js +1 -1
  396. package/src/aicore/utils/documentposition.js +1 -1
  397. package/src/aicore/utils/documentrange.js +1 -1
  398. package/src/aicore/utils/eventnames.d.ts +0 -1
  399. package/src/aicore/utils/eventnames.js +1 -1
  400. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  401. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  402. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  403. package/src/aicore/utils/htmlparser.js +1 -1
  404. package/src/aicore/utils/htmlstreamer.js +1 -1
  405. package/src/aieditorintegration/aieditorintegration.js +1 -1
  406. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
  407. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  408. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  409. package/src/aiquickactions/aiquickactions.d.ts +164 -0
  410. package/src/aiquickactions/aiquickactions.js +1 -1
  411. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  412. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  413. package/src/aiquickactions/aiquickactionsui.js +1 -1
  414. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  415. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  416. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  417. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
  418. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  419. package/src/aireviewmode/aireviewmode.d.ts +29 -0
  420. package/src/aireviewmode/aireviewmode.js +1 -1
  421. package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
  422. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  423. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
  424. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  425. package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
  426. package/src/aireviewmode/aireviewmodeui.js +1 -1
  427. package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
  428. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  429. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
  430. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  431. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  432. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  433. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  434. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  435. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
  436. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  437. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  438. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
  439. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  440. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  441. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  442. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  443. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  444. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  445. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  446. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  447. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  448. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  449. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  450. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  451. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  452. package/src/aitabs/aitabs.d.ts +6 -2
  453. package/src/aitabs/aitabs.js +1 -1
  454. package/src/aitabs/aitabsmainview.js +1 -1
  455. package/src/aitabs/tabs/aitabsview.js +1 -1
  456. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  457. package/src/aitabs/tabs/tabpanelview.js +1 -1
  458. package/src/index.js +1 -1
  459. package/theme/aichat/aichat.css +1 -0
  460. package/theme/aichat/aichatfeed.css +39 -0
  461. package/theme/aieditorintegration/aitogglebutton.css +23 -0
  462. package/theme/aiquickactions/aiquickactions.css +23 -4
  463. package/theme/aireviewmode/aireviewmode.css +23 -0
  464. package/theme/common/aibutton.css +1 -1
  465. package/theme/common/aitrackchanges.css +13 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ee390=_0x37a8;function _0x37a8(_0x26366e,_0x44972a){const _0x10d4cf=_0x10d4();return _0x37a8=function(_0x37a898,_0x3dd44f){_0x37a898=_0x37a898-0xd4;let _0x3643ed=_0x10d4cf[_0x37a898];return _0x3643ed;},_0x37a8(_0x26366e,_0x44972a);}(function(_0x4cef72,_0x510e19){const _0x33a949=_0x37a8,_0x41befe=_0x4cef72();while(!![]){try{const _0x33d6ec=parseInt(_0x33a949(0xed))/0x1*(-parseInt(_0x33a949(0x107))/0x2)+-parseInt(_0x33a949(0xe4))/0x3*(-parseInt(_0x33a949(0x101))/0x4)+-parseInt(_0x33a949(0xde))/0x5+parseInt(_0x33a949(0x12e))/0x6*(parseInt(_0x33a949(0xd8))/0x7)+parseInt(_0x33a949(0xf2))/0x8+-parseInt(_0x33a949(0x105))/0x9*(parseInt(_0x33a949(0x110))/0xa)+parseInt(_0x33a949(0x130))/0xb*(parseInt(_0x33a949(0x134))/0xc);if(_0x33d6ec===_0x510e19)break;else _0x41befe['push'](_0x41befe['shift']());}catch(_0x334867){_0x41befe['push'](_0x41befe['shift']());}}}(_0x10d4,0x485d0));import{ListItemView as _0x1d3c8b,HighlightedTextView as _0x15e0ee,ButtonView as _0xcd9673,ListView as _0x24019e,IconView as _0xbf1716,createDropdown as _0x2da753,InputTextView as _0xf7dba4}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x758529,IconPin as _0x155656,IconCheck as _0x40e710,IconCancel as _0x58d142}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1c6f4c,ConfirmMixin as _0xaf8266}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4888bc}from'es-toolkit/compat';import{AISpinnerView as _0x3336b2}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x54350a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0xaf8266(_0x1d3c8b){['id'];static [_0x5ee390(0x123)]={'remove':_0x5ee390(0x11d),'rename':_0x5ee390(0x10d),'pin':_0x5ee390(0xfd),'unpin':_0x5ee390(0x112)};[_0x5ee390(0x117)];[_0x5ee390(0xd6)];[_0x5ee390(0xf9)];constructor(_0x256356,_0x9b13fe){const _0x4ee688=_0x5ee390;super(_0x256356);const _0x4f66e6=this[_0x4ee688(0x136)];this[_0x4ee688(0xd9)](_0x4ee688(0x108),!0x1),this[_0x4ee688(0xd9)](_0x4ee688(0xf7),!0x0),this[_0x4ee688(0xd9)](_0x4ee688(0xdd),!!_0x9b13fe[_0x4ee688(0xdd)]),this[_0x4ee688(0xd9)](_0x4ee688(0xf5),null),this['id']=_0x9b13fe['id'];const {title:_0x522d82,createdAt:_0x51aab9,active:_0x1fbc29=!0x1}=_0x9b13fe;this[_0x4ee688(0xf9)]=new _0x15e0ee(),this[_0x4ee688(0xf9)][_0x4ee688(0x102)]=_0x522d82,this[_0x4ee688(0xf9)][_0x4ee688(0x137)]({'attributes':{'class':[_0x4ee688(0x100)]}});const _0x51bb45=this[_0x4ee688(0xda)](),_0xc50165=this[_0x4ee688(0x124)](_0x256356),_0x57144e=this[_0x4ee688(0x135)](),_0x573d84=this[_0x4ee688(0x11b)](_0x256356,_0x522d82),_0x4f146d=this[_0x4ee688(0x131)](_0x256356,_0x573d84),_0x536d35=this[_0x4ee688(0xfa)](_0x256356,_0x573d84);this[_0x4ee688(0x117)]=this[_0x4ee688(0x122)](),this[_0x4ee688(0xd6)]=this[_0x4ee688(0x122)](),this[_0x4ee688(0xd6)][_0x4ee688(0xf3)](this[_0x4ee688(0xf9)]),this[_0x4ee688(0x117)][_0x4ee688(0xf3)](_0xc50165),this[_0x4ee688(0x117)][_0x4ee688(0xf3)](_0x57144e),this['on'](_0x4ee688(0x10b),(_0xb715e4,_0x3bb93b,_0x205041)=>{const _0x512348=_0x4ee688;this[_0x512348(0x117)][_0x512348(0xd4)](),this[_0x512348(0xd6)][_0x512348(0xd4)](),_0x205041?(this[_0x512348(0x117)][_0x512348(0xf3)](_0x4f146d),this[_0x512348(0x117)][_0x512348(0xf3)](_0x536d35),this[_0x512348(0xd6)][_0x512348(0xf3)](_0x573d84),_0x573d84[_0x512348(0x127)][_0x512348(0xe3)]()):(this[_0x512348(0x117)][_0x512348(0xf3)](_0xc50165),this[_0x512348(0x117)][_0x512348(0xf3)](_0x57144e),this[_0x512348(0xd6)][_0x512348(0xf3)](this[_0x512348(0xf9)]));}),this[_0x4ee688(0xdf)]({'tag':'li','attributes':{'class':[_0x4ee688(0xd5),_0x1fbc29?_0x4ee688(0xe0):'',_0x4f66e6['if'](_0x4ee688(0xf7),_0x4ee688(0x104),_0x3b9887=>!_0x3b9887),_0x4f66e6['if'](_0x4ee688(0x108),_0x4ee688(0x126))],'role':_0x4ee688(0xea)},'children':[{'tag':_0x4ee688(0xf1),'attributes':{'class':[_0x4ee688(0x10f)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0xe6),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x1e1193=>!!_0x1e1193)]},'children':_0x1fbc29?[_0x51bb45]:[]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x111),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x1d18ea=>!_0x1d18ea)]},'children':[this[_0x4ee688(0xfb)]()]}]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x12a)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x114)]},'on':{'click':this[_0x4ee688(0x136)]['to'](_0x4ee688(0x10e))},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x132)]},'children':[{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x100),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x393a32=>!!_0x393a32)]},'children':this[_0x4ee688(0xd6)]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x120),_0x4f66e6['if'](_0x4ee688(0xf5),_0x4ee688(0x104),_0x2e7012=>!_0x2e7012)]},'children':[{'text':_0x4f66e6['to'](_0x4ee688(0xf5),_0x57d2b4=>_0x57d2b4?_0x54350a(this[_0x4ee688(0xff)],AIChatHistoryListItemView[_0x4ee688(0x123)][_0x57d2b4]):'')}]}]},{'tag':_0x4ee688(0xf1),'attributes':{'class':[_0x4ee688(0x103)]},'children':[_0x51aab9]}]},{'tag':_0x4ee688(0x12f),'attributes':{'class':[_0x4ee688(0x12c)]},'children':this[_0x4ee688(0x117)]}]}]}),this['on'](_0x4ee688(0x10e),()=>{const _0x11311a=_0x4ee688;this[_0x11311a(0x108)]||this[_0x11311a(0xee)](_0x11311a(0x10c),{'id':this['id']});});}[_0x5ee390(0xf6)](_0x31b3a1){const _0xef3714=_0x5ee390;this[_0xef3714(0xf9)][_0xef3714(0x102)]=_0x4888bc(_0x31b3a1);}[_0x5ee390(0x11e)](_0x209aac,_0x22b9c8){const _0x52761a=_0x5ee390;this[_0x52761a(0xd9)](_0x52761a(0xf5),_0x22b9c8?_0x209aac:null);}[_0x5ee390(0xda)](){const _0x4a5394=_0x5ee390,_0x28a882=new _0xbf1716();return _0x28a882[_0x4a5394(0xd9)]({'content':_0x40e710}),_0x28a882;}[_0x5ee390(0x124)](_0xba59af){const _0x21efd2=_0x5ee390,_0x478c38=new _0xcd9673(_0xba59af);return _0x478c38[_0x21efd2(0xd9)]({'label':_0x54350a(_0xba59af,_0x21efd2(0xe2)),'icon':_0x155656,'withText':!0x1,'tooltip':!0x0}),_0x478c38[_0x21efd2(0x12b)](_0x21efd2(0x113))['to'](this,_0x21efd2(0xdd)),_0x478c38['on'](_0x21efd2(0x10a),()=>{const _0x2224d7=_0x21efd2,_0x153074=!this[_0x2224d7(0xdd)];this[_0x2224d7(0xee)](_0x2224d7(0xec),{'id':this['id'],'pinned':_0x153074});}),_0x478c38;}[_0x5ee390(0x135)](){const _0x4f3984=_0x5ee390,_0x690753=_0x2da753(this[_0x4f3984(0xff)],_0x1c6f4c),_0x569a70=_0x690753[_0x4f3984(0x115)][_0x4f3984(0xe9)];_0x690753[_0x4f3984(0xd7)][_0x4f3984(0xd9)]({'label':_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0xef)),'icon':_0x758529}),_0x690753[_0x4f3984(0xeb)]='sw';const _0x3baaaf=new _0xcd9673(this[_0x4f3984(0xff)]);_0x3baaaf[_0x4f3984(0x125)]=_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0xfe)),_0x3baaaf[_0x4f3984(0xe8)]=!0x0,_0x3baaaf['on'](_0x4f3984(0x10a),()=>{const _0x48a015=_0x4f3984;this[_0x48a015(0x108)]=!0x0;});const _0x54677e=new _0xcd9673(this[_0x4f3984(0xff)]);_0x54677e[_0x4f3984(0x125)]=_0x54350a(this[_0x4f3984(0xff)],_0x4f3984(0x11f)),_0x54677e[_0x4f3984(0xe8)]=!0x0,_0x54677e['on'](_0x4f3984(0x10a),()=>{const _0x24a927=_0x4f3984;this[_0x24a927(0x133)](_0x54350a(this[_0x24a927(0xff)],_0x24a927(0x128)),this[_0x24a927(0x127)])[_0x24a927(0x119)](()=>{const _0x17025e=_0x24a927;this[_0x17025e(0xee)](_0x17025e(0x11c),{'id':this['id']});});});const _0x13a385=new _0x24019e(this[_0x4f3984(0xff)]),_0xe45a14=new _0x1d3c8b(this[_0x4f3984(0xff)]);_0xe45a14[_0x4f3984(0xe9)][_0x4f3984(0xf3)](_0x3baaaf);const _0x2f7b7b=new _0x1d3c8b(this[_0x4f3984(0xff)]);return _0x2f7b7b[_0x4f3984(0xe9)][_0x4f3984(0xf3)](_0x54677e),_0x13a385[_0x4f3984(0x116)][_0x4f3984(0x121)]([_0xe45a14,_0x2f7b7b]),_0x569a70[_0x4f3984(0xf3)](_0x13a385),_0x690753;}[_0x5ee390(0x11b)](_0x2af60b,_0x311d44){const _0x5350e8=_0x5ee390,_0x3d4c01=new _0xf7dba4(_0x2af60b),_0x1cc100=_0x3d4c01[_0x5350e8(0x136)];return _0x3d4c01[_0x5350e8(0x109)]=_0x311d44,_0x3d4c01[_0x5350e8(0x137)]({'on':{'keydown':_0x1cc100['to'](_0x29cf97=>{const _0x1e7223=_0x5350e8;_0x1e7223(0x11a)==_0x29cf97[_0x1e7223(0x12d)]&&this[_0x1e7223(0x118)](_0x3d4c01);})}}),_0x3d4c01;}[_0x5ee390(0x131)](_0x52a5f3,_0x679dc2){const _0x510d5c=_0x5ee390,_0x141039=new _0xcd9673(_0x52a5f3);return _0x141039[_0x510d5c(0xd9)]({'icon':_0x40e710,'withText':!0x1,'tooltip':_0x54350a(_0x52a5f3,_0x510d5c(0xe1))}),_0x141039[_0x510d5c(0x137)]({'attributes':{'class':[_0x510d5c(0xe5)]}}),_0x141039['on'](_0x510d5c(0x10a),()=>{const _0x2441c5=_0x510d5c;this[_0x2441c5(0x118)](_0x679dc2);}),_0x141039;}[_0x5ee390(0x118)](_0x1418fb){const _0x2de481=_0x5ee390,_0x977885=_0x1418fb[_0x2de481(0x127)][_0x2de481(0x109)]||'';this[_0x2de481(0xf9)][_0x2de481(0x102)]=_0x977885,this[_0x2de481(0x108)]=!0x1,this[_0x2de481(0xee)](_0x2de481(0xf4),{'id':this['id'],'title':_0x977885});}[_0x5ee390(0xfa)](_0x12a451,_0x5a39e2){const _0x16f3ff=_0x5ee390,_0x3b7e9=new _0xcd9673(_0x12a451);return _0x3b7e9[_0x16f3ff(0xd9)]({'icon':_0x58d142,'withText':!0x1,'tooltip':_0x54350a(_0x12a451,_0x16f3ff(0xdb))}),_0x3b7e9[_0x16f3ff(0x137)]({'attributes':{'class':[_0x16f3ff(0xe7)]}}),_0x3b7e9['on'](_0x16f3ff(0x10a),()=>{const _0x3f92e8=_0x16f3ff;this[_0x3f92e8(0x108)]=!0x1,_0x5a39e2[_0x3f92e8(0x109)]=this[_0x3f92e8(0xf9)][_0x3f92e8(0x102)]||'',this[_0x3f92e8(0xee)](_0x3f92e8(0x106));}),_0x3b7e9;}[_0x5ee390(0xfb)](){const _0x5b62b3=_0x5ee390,_0xfaa2ce=new _0x3336b2(_0x5b62b3(0xf8));return _0xfaa2ce[_0x5b62b3(0xf7)]=!0x0,_0xfaa2ce;}[_0x5ee390(0xdc)](_0x55d439){const _0x5776e5=_0x5ee390;return this[_0x5776e5(0xf9)]&&_0x5776e5(0x129)==typeof this[_0x5776e5(0xf9)][_0x5776e5(0x102)]&&this[_0x5776e5(0xf9)][_0x5776e5(0x102)][_0x5776e5(0xf0)](_0x55d439)?{'title':!0x0}:null;}[_0x5ee390(0xfc)](_0x58536e){const _0x5953ad=_0x5ee390;this[_0x5953ad(0xf9)][_0x5953ad(0xfc)](_0x58536e);}}function _0x10d4(){const _0x45254d=['isMatching','pinned','1059975dPkchY','setTemplate','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_PIN_BUTTON','focus','69CrXrtm','ck-confirm-view-submit','ck-ai-chat-history__item-check','ck-confirm-view-cancel','withText','children','listitem','panelPosition','setConversationPinned','246535LUkgUE','fire','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','match','span','4289472mhQOYz','add','editConversationTitle','loadingState','updateTitle','isVisible','tiny','_titleView','_createCancelEditButtonView','_createSpinnerView','highlightText','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_EDIT_NAME','locale','ck-ai-chat-history__item-title','65276EdbhfK','text','ck-ai-chat-history__item-date','ck-hidden','32229DipBsj','edit:cancel','4VSSWjD','isEdit','value','execute','change:isEdit','selectConversation','AI_CHAT_HISTORY_LOADING_RENAMING','click','ck-ai-chat-history__item-check-container','1640QicCIG','ck-ai-loader','AI_CHAT_HISTORY_LOADING_UNPINNING','isOn','ck-ai-chat-history__item-content','panelView','items','actions','_commitEditInputValue','then','Enter','_createEditInputView','removeConversation','AI_CHAT_HISTORY_LOADING_REMOVING','updateLoadingState','AI_CHAT_HISTORY_REMOVE','ck-ai-loader__text','addMany','createCollection','LOADING_LABELS','_createPinButtonView','label','ck-ai-chat-history__item--edit','element','AI_CHAT_HISTORY_REMOVE_CONFIRM','string','ck-ai-chat-history__item-row','bind','ck-ai-chat-history__item-actions','key','512922BsPcvu','div','22attktc','_createAcceptEditButtonView','ck-ai-chat-history__item-main-content','showConfirm','985836bwTMBA','_createMenuDropdownView','bindTemplate','extendTemplate','clear','ck-ai-chat-history__item','mainContent','buttonView','42DEigIJ','set','_createCheckView','AI_CHAT_HISTORY_CANCEL'];_0x10d4=function(){return _0x45254d;};return _0x10d4();}
23
+ function _0x392f(){const _0x445e4c=['ck-ai-loader__text','panelPosition','5864xsnBRK','_titleView','withText','ck-ai-chat-history__item-date','string','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','edit:cancel','updateTitle','12SGAtHw','1399509tWrEoQ','AI_CHAT_HISTORY_EDIT_NAME','_commitEditInputValue','ck-ai-chat-history__item-check','pinned','click','clear','2624495aANYLj','fire','items','isVisible','ck-hidden','buttonView','actions','1318828TlUBeR','createCollection','ck-ai-loader','element','match','updateLoadingState','Enter','_createEditInputView','_createAcceptEditButtonView','AI_CHAT_HISTORY_CANCEL','set','extendTemplate','bind','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_UNPINNING','then','mainContent','ck-ai-chat-history__item-main-content','isEdit','3918423rvfxGx','value','49VXDRpo','isMatching','ck-confirm-view-cancel','span','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-content','add','panelView','addMany','11925OUgABc','AI_CHAT_HISTORY_ACCEPT','setTemplate','key','editConversationTitle','label','removeConversation','ck-ai-chat-history__item-title','ck-confirm-view-submit','loadingState','text','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item--active','isOn','_createCancelEditButtonView','focus','listitem','execute','ck-ai-chat-history__item-actions','change:isEdit','_createCheckView','children','AI_CHAT_HISTORY_LOADING_RENAMING','div','showConfirm','highlightText','ck-ai-chat-history__item-row','setConversationPinned','_createSpinnerView','AI_CHAT_HISTORY_LOADING_PINNING','37902630ujZvRF','956166QxvMsB','_createMenuDropdownView','locale','bindTemplate','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_LOADING_REMOVING','_createPinButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','LOADING_LABELS','selectConversation','AI_CHAT_HISTORY_PIN_BUTTON','tiny'];_0x392f=function(){return _0x445e4c;};return _0x392f();}const _0x4ebbb7=_0x51d8;(function(_0x4934cd,_0x44ba64){const _0x534615=_0x51d8,_0x13f913=_0x4934cd();while(!![]){try{const _0x200eb4=-parseInt(_0x534615(0xc5))/0x1+-parseInt(_0x534615(0xd3))/0x2+-parseInt(_0x534615(0x84))/0x3+-parseInt(_0x534615(0xc4))/0x4*(parseInt(_0x534615(0xcc))/0x5)+parseInt(_0x534615(0xae))/0x6*(parseInt(_0x534615(0x86))/0x7)+-parseInt(_0x534615(0xbc))/0x8*(-parseInt(_0x534615(0x8f))/0x9)+parseInt(_0x534615(0xad))/0xa;if(_0x200eb4===_0x44ba64)break;else _0x13f913['push'](_0x13f913['shift']());}catch(_0x355e91){_0x13f913['push'](_0x13f913['shift']());}}}(_0x392f,0xe4d26));import{ListItemView as _0x5e329e,HighlightedTextView as _0x154660,ButtonView as _0x9f086d,ListView as _0x3d276e,IconView as _0x487cef,createDropdown as _0x5b8a3f,InputTextView as _0xbb904c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1dcbdf,IconPin as _0x4a985f,IconCheck as _0x38eda7,IconCancel as _0x32397d}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2c84b3,ConfirmMixin as _0x1fd42c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x51d8(_0x90383d,_0x4955d0){const _0x392f74=_0x392f();return _0x51d8=function(_0x51d86c,_0x1f130b){_0x51d86c=_0x51d86c-0x78;let _0x3ff18e=_0x392f74[_0x51d86c];return _0x3ff18e;},_0x51d8(_0x90383d,_0x4955d0);}import{escape as _0x20d564}from'es-toolkit/compat';import{AISpinnerView as _0x2f1f43}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5a18a5}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x1fd42c(_0x5e329e){['id'];static [_0x4ebbb7(0xb6)]={'remove':_0x4ebbb7(0xb3),'rename':_0x4ebbb7(0xa5),'pin':_0x4ebbb7(0xac),'unpin':_0x4ebbb7(0x7f)};[_0x4ebbb7(0xd2)];[_0x4ebbb7(0x81)];[_0x4ebbb7(0xbd)];constructor(_0x15a0b7,_0xc21294){const _0x2f64c7=_0x4ebbb7;super(_0x15a0b7);const _0x55ab7d=this[_0x2f64c7(0xb1)];this[_0x2f64c7(0x7b)](_0x2f64c7(0x83),!0x1),this[_0x2f64c7(0x7b)](_0x2f64c7(0xcf),!0x0),this[_0x2f64c7(0x7b)](_0x2f64c7(0xc9),!!_0xc21294[_0x2f64c7(0xc9)]),this[_0x2f64c7(0x7b)](_0x2f64c7(0x98),null),this['id']=_0xc21294['id'];const {title:_0x292724,createdAt:_0x3a581e,active:_0x74f34d=!0x1}=_0xc21294;this[_0x2f64c7(0xbd)]=new _0x154660(),this[_0x2f64c7(0xbd)][_0x2f64c7(0x99)]=_0x292724,this[_0x2f64c7(0xbd)][_0x2f64c7(0x7c)]({'attributes':{'class':[_0x2f64c7(0x96)]}});const _0x3e24df=this[_0x2f64c7(0xa3)](),_0x17bca2=this[_0x2f64c7(0xb4)](_0x15a0b7),_0x2bc7f7=this[_0x2f64c7(0xaf)](),_0x203ad5=this[_0x2f64c7(0x78)](_0x15a0b7,_0x292724),_0x5be0bc=this[_0x2f64c7(0x79)](_0x15a0b7,_0x203ad5),_0x4270c3=this[_0x2f64c7(0x9d)](_0x15a0b7,_0x203ad5);this[_0x2f64c7(0xd2)]=this[_0x2f64c7(0xd4)](),this[_0x2f64c7(0x81)]=this[_0x2f64c7(0xd4)](),this[_0x2f64c7(0x81)][_0x2f64c7(0x8c)](this[_0x2f64c7(0xbd)]),this[_0x2f64c7(0xd2)][_0x2f64c7(0x8c)](_0x17bca2),this[_0x2f64c7(0xd2)][_0x2f64c7(0x8c)](_0x2bc7f7),this['on'](_0x2f64c7(0xa2),(_0x31554a,_0x31a91b,_0x4d441a)=>{const _0x31d72e=_0x2f64c7;this[_0x31d72e(0xd2)][_0x31d72e(0xcb)](),this[_0x31d72e(0x81)][_0x31d72e(0xcb)](),_0x4d441a?(this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x5be0bc),this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x4270c3),this[_0x31d72e(0x81)][_0x31d72e(0x8c)](_0x203ad5),_0x203ad5[_0x31d72e(0xd6)][_0x31d72e(0x9e)]()):(this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x17bca2),this[_0x31d72e(0xd2)][_0x31d72e(0x8c)](_0x2bc7f7),this[_0x31d72e(0x81)][_0x31d72e(0x8c)](this[_0x31d72e(0xbd)]));}),this[_0x2f64c7(0x91)]({'tag':'li','attributes':{'class':[_0x2f64c7(0x7e),_0x74f34d?_0x2f64c7(0x9b):'',_0x55ab7d['if'](_0x2f64c7(0xcf),_0x2f64c7(0xd0),_0x1a3280=>!_0x1a3280),_0x55ab7d['if'](_0x2f64c7(0x83),_0x2f64c7(0x8a))],'role':_0x2f64c7(0x9f)},'children':[{'tag':_0x2f64c7(0x89),'attributes':{'class':[_0x2f64c7(0xb2)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xc8),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x129afe=>!!_0x129afe)]},'children':_0x74f34d?[_0x3e24df]:[]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xd5),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x5cff1d=>!_0x5cff1d)]},'children':[this[_0x2f64c7(0xab)]()]}]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xa9)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x8b)]},'on':{'click':this[_0x2f64c7(0xb1)]['to'](_0x2f64c7(0xca))},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x82)]},'children':[{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0x96),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x3a45b2=>!!_0x3a45b2)]},'children':this[_0x2f64c7(0x81)]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xba),_0x55ab7d['if'](_0x2f64c7(0x98),_0x2f64c7(0xd0),_0x77b5f9=>!_0x77b5f9)]},'children':[{'text':_0x55ab7d['to'](_0x2f64c7(0x98),_0x8c4c0d=>_0x8c4c0d?_0x5a18a5(this[_0x2f64c7(0xb0)],AIChatHistoryListItemView[_0x2f64c7(0xb6)][_0x8c4c0d]):'')}]}]},{'tag':_0x2f64c7(0x89),'attributes':{'class':[_0x2f64c7(0xbf)]},'children':[_0x3a581e]}]},{'tag':_0x2f64c7(0xa6),'attributes':{'class':[_0x2f64c7(0xa1)]},'children':this[_0x2f64c7(0xd2)]}]}]}),this['on'](_0x2f64c7(0xca),()=>{const _0x9cc78d=_0x2f64c7;this[_0x9cc78d(0x83)]||this[_0x9cc78d(0xcd)](_0x9cc78d(0xb7),{'id':this['id']});});}[_0x4ebbb7(0xc3)](_0x38d765){const _0x1ba251=_0x4ebbb7;this[_0x1ba251(0xbd)][_0x1ba251(0x99)]=_0x20d564(_0x38d765);}[_0x4ebbb7(0xd8)](_0x20c86a,_0x1e98be){const _0x1ed000=_0x4ebbb7;this[_0x1ed000(0x7b)](_0x1ed000(0x98),_0x1e98be?_0x20c86a:null);}[_0x4ebbb7(0xa3)](){const _0x255fb5=_0x4ebbb7,_0x21caf8=new _0x487cef();return _0x21caf8[_0x255fb5(0x7b)]({'content':_0x38eda7}),_0x21caf8;}[_0x4ebbb7(0xb4)](_0x4a1853){const _0x416746=_0x4ebbb7,_0x44fa68=new _0x9f086d(_0x4a1853);return _0x44fa68[_0x416746(0x7b)]({'label':_0x5a18a5(_0x4a1853,_0x416746(0xb8)),'icon':_0x4a985f,'withText':!0x1,'tooltip':!0x0}),_0x44fa68[_0x416746(0x7d)](_0x416746(0x9c))['to'](this,_0x416746(0xc9)),_0x44fa68['on'](_0x416746(0xa0),()=>{const _0x551a50=_0x416746,_0x168614=!this[_0x551a50(0xc9)];this[_0x551a50(0xcd)](_0x551a50(0xaa),{'id':this['id'],'pinned':_0x168614});}),_0x44fa68;}[_0x4ebbb7(0xaf)](){const _0x57ddc5=_0x4ebbb7,_0x1d87d7=_0x5b8a3f(this[_0x57ddc5(0xb0)],_0x2c84b3),_0x35968c=_0x1d87d7[_0x57ddc5(0x8d)][_0x57ddc5(0xa4)];_0x1d87d7[_0x57ddc5(0xd1)][_0x57ddc5(0x7b)]({'label':_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0xc1)),'icon':_0x1dcbdf}),_0x1d87d7[_0x57ddc5(0xbb)]='sw';const _0x5af028=new _0x9f086d(this[_0x57ddc5(0xb0)]);_0x5af028[_0x57ddc5(0x94)]=_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0xc6)),_0x5af028[_0x57ddc5(0xbe)]=!0x0,_0x5af028['on'](_0x57ddc5(0xa0),()=>{const _0x25df89=_0x57ddc5;this[_0x25df89(0x83)]=!0x0;});const _0x4c910d=new _0x9f086d(this[_0x57ddc5(0xb0)]);_0x4c910d[_0x57ddc5(0x94)]=_0x5a18a5(this[_0x57ddc5(0xb0)],_0x57ddc5(0x9a)),_0x4c910d[_0x57ddc5(0xbe)]=!0x0,_0x4c910d['on'](_0x57ddc5(0xa0),()=>{const _0x49a855=_0x57ddc5;this[_0x49a855(0xa7)](_0x5a18a5(this[_0x49a855(0xb0)],_0x49a855(0xb5)),this[_0x49a855(0xd6)])[_0x49a855(0x80)](()=>{const _0x3758f6=_0x49a855;this[_0x3758f6(0xcd)](_0x3758f6(0x95),{'id':this['id']});});});const _0x4f7a48=new _0x3d276e(this[_0x57ddc5(0xb0)]),_0x1d4539=new _0x5e329e(this[_0x57ddc5(0xb0)]);_0x1d4539[_0x57ddc5(0xa4)][_0x57ddc5(0x8c)](_0x5af028);const _0x25b2b7=new _0x5e329e(this[_0x57ddc5(0xb0)]);return _0x25b2b7[_0x57ddc5(0xa4)][_0x57ddc5(0x8c)](_0x4c910d),_0x4f7a48[_0x57ddc5(0xce)][_0x57ddc5(0x8e)]([_0x1d4539,_0x25b2b7]),_0x35968c[_0x57ddc5(0x8c)](_0x4f7a48),_0x1d87d7;}[_0x4ebbb7(0x78)](_0x575c7f,_0x310c72){const _0x4ab2fb=_0x4ebbb7,_0x26479d=new _0xbb904c(_0x575c7f),_0x5f135e=_0x26479d[_0x4ab2fb(0xb1)];return _0x26479d[_0x4ab2fb(0x85)]=_0x310c72,_0x26479d[_0x4ab2fb(0x7c)]({'on':{'keydown':_0x5f135e['to'](_0x2165ab=>{const _0x3ab74c=_0x4ab2fb;_0x3ab74c(0xd9)==_0x2165ab[_0x3ab74c(0x92)]&&this[_0x3ab74c(0xc7)](_0x26479d);})}}),_0x26479d;}[_0x4ebbb7(0x79)](_0x1ded98,_0x9a5531){const _0x17aac3=_0x4ebbb7,_0x37d7cf=new _0x9f086d(_0x1ded98);return _0x37d7cf[_0x17aac3(0x7b)]({'icon':_0x38eda7,'withText':!0x1,'tooltip':_0x5a18a5(_0x1ded98,_0x17aac3(0x90))}),_0x37d7cf[_0x17aac3(0x7c)]({'attributes':{'class':[_0x17aac3(0x97)]}}),_0x37d7cf['on'](_0x17aac3(0xa0),()=>{const _0x746aa9=_0x17aac3;this[_0x746aa9(0xc7)](_0x9a5531);}),_0x37d7cf;}[_0x4ebbb7(0xc7)](_0x5c7bc3){const _0x386407=_0x4ebbb7,_0x548580=_0x5c7bc3[_0x386407(0xd6)][_0x386407(0x85)]||'';this[_0x386407(0xbd)][_0x386407(0x99)]=_0x548580,this[_0x386407(0x83)]=!0x1,this[_0x386407(0xcd)](_0x386407(0x93),{'id':this['id'],'title':_0x548580});}[_0x4ebbb7(0x9d)](_0x495113,_0x337da3){const _0x19a6de=_0x4ebbb7,_0x14e0c4=new _0x9f086d(_0x495113);return _0x14e0c4[_0x19a6de(0x7b)]({'icon':_0x32397d,'withText':!0x1,'tooltip':_0x5a18a5(_0x495113,_0x19a6de(0x7a))}),_0x14e0c4[_0x19a6de(0x7c)]({'attributes':{'class':[_0x19a6de(0x88)]}}),_0x14e0c4['on'](_0x19a6de(0xa0),()=>{const _0x47abb3=_0x19a6de;this[_0x47abb3(0x83)]=!0x1,_0x337da3[_0x47abb3(0x85)]=this[_0x47abb3(0xbd)][_0x47abb3(0x99)]||'',this[_0x47abb3(0xcd)](_0x47abb3(0xc2));}),_0x14e0c4;}[_0x4ebbb7(0xab)](){const _0x19b92e=_0x4ebbb7,_0x45e22f=new _0x2f1f43(_0x19b92e(0xb9));return _0x45e22f[_0x19b92e(0xcf)]=!0x0,_0x45e22f;}[_0x4ebbb7(0x87)](_0xa539d0){const _0x47dcd0=_0x4ebbb7;return this[_0x47dcd0(0xbd)]&&_0x47dcd0(0xc0)==typeof this[_0x47dcd0(0xbd)][_0x47dcd0(0x99)]&&this[_0x47dcd0(0xbd)][_0x47dcd0(0x99)][_0x47dcd0(0xd7)](_0xa539d0)?{'title':!0x0}:null;}[_0x4ebbb7(0xa8)](_0x3eed54){const _0x3567cd=_0x4ebbb7;this[_0x3567cd(0xbd)][_0x3567cd(0xa8)](_0x3eed54);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43e1f8=_0x3fb2;(function(_0x2445bb,_0x84f66){const _0x2d272f=_0x3fb2,_0xee0755=_0x2445bb();while(!![]){try{const _0x5a2595=-parseInt(_0x2d272f(0xdb))/0x1+-parseInt(_0x2d272f(0xe4))/0x2+-parseInt(_0x2d272f(0xca))/0x3+parseInt(_0x2d272f(0xcb))/0x4+parseInt(_0x2d272f(0xcf))/0x5+-parseInt(_0x2d272f(0xd7))/0x6*(parseInt(_0x2d272f(0xda))/0x7)+-parseInt(_0x2d272f(0xcc))/0x8*(-parseInt(_0x2d272f(0xdf))/0x9);if(_0x5a2595===_0x84f66)break;else _0xee0755['push'](_0xee0755['shift']());}catch(_0x1af279){_0xee0755['push'](_0xee0755['shift']());}}}(_0x4c98,0x8b05f));function _0x4c98(){const _0x388fdf=['title','length','splice','823150ToENBy','bindTemplate','find','highlightText','itemsViews','_itemsListView','2396166MGSscg','4201252nlmaqS','72bDbgwC','isVisible','removeItem','2443115SPfXFS','filter','div','getItem','addMany','ck-ai-chat-history__section-title','ck-hidden','remove','6093432zzxvnB','setTemplate','isMatching','7iuibHg','267589eijcDD','ck-ai-chat-history__section','indexOf','set','1523961NyQCqv','items'];_0x4c98=function(){return _0x388fdf;};return _0x4c98();}import{ListItemView as _0x1291bb,View as _0x3997d5,ListView as _0xe788f8}from'ckeditor5/src/ui.js';function _0x3fb2(_0x12cf8f,_0x2d478e){const _0x4c9861=_0x4c98();return _0x3fb2=function(_0x3fb2a7,_0x9ee425){_0x3fb2a7=_0x3fb2a7-0xc9;let _0x439068=_0x4c9861[_0x3fb2a7];return _0x439068;},_0x3fb2(_0x12cf8f,_0x2d478e);}export class AIChatHistoryListView extends _0x1291bb{[_0x43e1f8(0xe1)];[_0x43e1f8(0xe8)];[_0x43e1f8(0xc9)];constructor(_0x2c7c54,{title:_0x1055dc,items:_0x57a981}){const _0x52be58=_0x43e1f8;super(_0x2c7c54);const _0x46a49e=this[_0x52be58(0xe5)];this[_0x52be58(0xde)](_0x52be58(0xcd),!0x0),this[_0x52be58(0xe1)]=_0x1055dc,this[_0x52be58(0xe8)]=_0x57a981;const _0x442e92=new _0x3997d5(_0x2c7c54);_0x442e92[_0x52be58(0xd8)]({'tag':_0x52be58(0xd1),'attributes':{'class':[_0x52be58(0xd4)]},'children':[this[_0x52be58(0xe1)]]}),this[_0x52be58(0xc9)]=new _0xe788f8(_0x2c7c54),this[_0x52be58(0xc9)][_0x52be58(0xe0)][_0x52be58(0xd3)](this[_0x52be58(0xe8)]),this[_0x52be58(0xd8)]({'tag':'li','attributes':{'class':[_0x52be58(0xdc),_0x46a49e['if'](_0x52be58(0xcd),_0x52be58(0xd5),_0x10fb89=>!_0x10fb89)]},'children':[_0x442e92,this[_0x52be58(0xc9)]]});}[_0x43e1f8(0xd0)](_0x2b1eff){const _0xe1ab42=_0x43e1f8,_0x231285=this[_0xe1ab42(0xe8)][_0xe1ab42(0xe2)];let _0x2329b7=0x0;for(const _0xbaff34 of this[_0xe1ab42(0xe8)]){if(_0x2b1eff){const _0x3607b7=_0xbaff34[_0xe1ab42(0xd9)](_0x2b1eff);_0xbaff34[_0xe1ab42(0xcd)]=!!_0x3607b7,_0xbaff34[_0xe1ab42(0xe7)](_0x2b1eff);}else _0xbaff34[_0xe1ab42(0xcd)]=!0x0,_0xbaff34[_0xe1ab42(0xe7)](null);_0xbaff34[_0xe1ab42(0xcd)]&&_0x2329b7++;}return this[_0xe1ab42(0xcd)]=_0x2329b7>0x0,{'resultsCount':_0x2329b7,'totalItemsCount':_0x231285};}[_0x43e1f8(0xd2)](_0x23dd0d){const _0x27e2af=_0x43e1f8;return this[_0x27e2af(0xe8)][_0x27e2af(0xe6)](_0x222cf3=>_0x222cf3['id']===_0x23dd0d);}[_0x43e1f8(0xce)](_0x221fe9){const _0x3f5257=_0x43e1f8,_0x54eaea=this[_0x3f5257(0xe8)][_0x3f5257(0xdd)](_0x221fe9);-0x1!==_0x54eaea&&(this[_0x3f5257(0xe8)][_0x3f5257(0xe3)](_0x54eaea,0x1),this[_0x3f5257(0xc9)][_0x3f5257(0xe0)][_0x3f5257(0xd6)](_0x221fe9));}}
23
+ function _0x5a8e(_0x1228a1,_0x551aa8){const _0x47372f=_0x4737();return _0x5a8e=function(_0x5a8e0f,_0x4a88dc){_0x5a8e0f=_0x5a8e0f-0xc5;let _0x12ae7c=_0x47372f[_0x5a8e0f];return _0x12ae7c;},_0x5a8e(_0x1228a1,_0x551aa8);}const _0x1d2108=_0x5a8e;(function(_0x388fd3,_0x376cdc){const _0x282162=_0x5a8e,_0x313edc=_0x388fd3();while(!![]){try{const _0x27ddcf=-parseInt(_0x282162(0xe2))/0x1+parseInt(_0x282162(0xc7))/0x2*(-parseInt(_0x282162(0xc8))/0x3)+parseInt(_0x282162(0xc9))/0x4*(parseInt(_0x282162(0xd9))/0x5)+parseInt(_0x282162(0xd3))/0x6+-parseInt(_0x282162(0xe3))/0x7+parseInt(_0x282162(0xc6))/0x8+-parseInt(_0x282162(0xd0))/0x9*(-parseInt(_0x282162(0xcc))/0xa);if(_0x27ddcf===_0x376cdc)break;else _0x313edc['push'](_0x313edc['shift']());}catch(_0x317e7f){_0x313edc['push'](_0x313edc['shift']());}}}(_0x4737,0x2928d));function _0x4737(){const _0x38f7a5=['ck-ai-chat-history__section','indexOf','isVisible','length','remove','40BtqttO','isMatching','div','_itemsListView','bindTemplate','itemsViews','set','find','filter','230207rNQWjQ','1655150kJIgbX','splice','removeItem','getItem','432376HiiTlX','1168mgRaJN','741ZWPTZA','105544qTONuE','items','ck-ai-chat-history__section-title','600NcuZXi','setTemplate','addMany','title','72666SEpHHM','highlightText','ck-hidden','179514faEong'];_0x4737=function(){return _0x38f7a5;};return _0x4737();}import{ListItemView as _0x83ee6b,View as _0x2faed6,ListView as _0x4e1daa}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x83ee6b{[_0x1d2108(0xcf)];[_0x1d2108(0xde)];[_0x1d2108(0xdc)];constructor(_0x250662,{title:_0x3e080f,items:_0x3f2745}){const _0x5a1d25=_0x1d2108;super(_0x250662);const _0x1881a9=this[_0x5a1d25(0xdd)];this[_0x5a1d25(0xdf)](_0x5a1d25(0xd6),!0x0),this[_0x5a1d25(0xcf)]=_0x3e080f,this[_0x5a1d25(0xde)]=_0x3f2745;const _0x4cdf5f=new _0x2faed6(_0x250662);_0x4cdf5f[_0x5a1d25(0xcd)]({'tag':_0x5a1d25(0xdb),'attributes':{'class':[_0x5a1d25(0xcb)]},'children':[this[_0x5a1d25(0xcf)]]}),this[_0x5a1d25(0xdc)]=new _0x4e1daa(_0x250662),this[_0x5a1d25(0xdc)][_0x5a1d25(0xca)][_0x5a1d25(0xce)](this[_0x5a1d25(0xde)]),this[_0x5a1d25(0xcd)]({'tag':'li','attributes':{'class':[_0x5a1d25(0xd4),_0x1881a9['if'](_0x5a1d25(0xd6),_0x5a1d25(0xd2),_0x3cecd1=>!_0x3cecd1)]},'children':[_0x4cdf5f,this[_0x5a1d25(0xdc)]]});}[_0x1d2108(0xe1)](_0x3d0ec5){const _0x36bdb5=_0x1d2108,_0x192918=this[_0x36bdb5(0xde)][_0x36bdb5(0xd7)];let _0x37c59d=0x0;for(const _0x166948 of this[_0x36bdb5(0xde)]){if(_0x3d0ec5){const _0x3a7b22=_0x166948[_0x36bdb5(0xda)](_0x3d0ec5);_0x166948[_0x36bdb5(0xd6)]=!!_0x3a7b22,_0x166948[_0x36bdb5(0xd1)](_0x3d0ec5);}else _0x166948[_0x36bdb5(0xd6)]=!0x0,_0x166948[_0x36bdb5(0xd1)](null);_0x166948[_0x36bdb5(0xd6)]&&_0x37c59d++;}return this[_0x36bdb5(0xd6)]=_0x37c59d>0x0,{'resultsCount':_0x37c59d,'totalItemsCount':_0x192918};}[_0x1d2108(0xc5)](_0x3db355){const _0x4502d1=_0x1d2108;return this[_0x4502d1(0xde)][_0x4502d1(0xe0)](_0x121916=>_0x121916['id']===_0x3db355);}[_0x1d2108(0xe5)](_0x3e2f42){const _0x17e3fd=_0x1d2108,_0x5f3514=this[_0x17e3fd(0xde)][_0x17e3fd(0xd5)](_0x3e2f42);-0x1!==_0x5f3514&&(this[_0x17e3fd(0xde)][_0x17e3fd(0xe4)](_0x5f3514,0x1),this[_0x17e3fd(0xdc)][_0x17e3fd(0xca)][_0x17e3fd(0xd8)](_0x3e2f42));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b785e=_0x2d2c;(function(_0x17b981,_0x25f201){const _0x3da4f2=_0x2d2c,_0x401807=_0x17b981();while(!![]){try{const _0x1cb314=-parseInt(_0x3da4f2(0x1f7))/0x1*(parseInt(_0x3da4f2(0x1fd))/0x2)+-parseInt(_0x3da4f2(0x1f2))/0x3*(parseInt(_0x3da4f2(0x1f5))/0x4)+-parseInt(_0x3da4f2(0x201))/0x5*(-parseInt(_0x3da4f2(0x1fc))/0x6)+-parseInt(_0x3da4f2(0x1f3))/0x7*(-parseInt(_0x3da4f2(0x1fb))/0x8)+-parseInt(_0x3da4f2(0x1f9))/0x9+parseInt(_0x3da4f2(0x1ff))/0xa+parseInt(_0x3da4f2(0x1f8))/0xb;if(_0x1cb314===_0x25f201)break;else _0x401807['push'](_0x401807['shift']());}catch(_0x4fda53){_0x401807['push'](_0x401807['shift']());}}}(_0x4d25,0x46704));import{ListView as _0x5b3b0f}from'ckeditor5/src/ui.js';function _0x4d25(){const _0x43a205=['406125KJDneF','items','120424Egrvbn','30330FALCzl','124cuPrBI','addMany','1001600cNZctb','sections','45QMNDAi','filter','699315ZHZNIA','182TBIbfv','extendTemplate','8dUiHLs','ck-ai-chat-history__sections','96cLRsHM','2956470pBXAnB'];_0x4d25=function(){return _0x43a205;};return _0x4d25();}function _0x2d2c(_0x161c39,_0x2c77be){const _0x4d25d3=_0x4d25();return _0x2d2c=function(_0x2d2cd2,_0x426746){_0x2d2cd2=_0x2d2cd2-0x1f2;let _0x26b5a6=_0x4d25d3[_0x2d2cd2];return _0x26b5a6;},_0x2d2c(_0x161c39,_0x2c77be);}export class AIChatHistorySectionListView extends _0x5b3b0f{[_0x4b785e(0x200)];constructor(_0x5f529f,_0x40e020){const _0x46c6df=_0x4b785e;super(_0x5f529f),this[_0x46c6df(0x200)]=_0x40e020,this[_0x46c6df(0x1fa)][_0x46c6df(0x1fe)](this[_0x46c6df(0x200)]),this[_0x46c6df(0x1f4)]({'attributes':{'class':[_0x46c6df(0x1f6)]}});}[_0x4b785e(0x202)](_0x5265c8){const _0x5b9b41=_0x4b785e;let _0x3605cd=0x0,_0xb637b7=0x0;for(const _0x1cf3c5 of this[_0x5b9b41(0x200)]){const {resultsCount:_0xcc656f,totalItemsCount:_0x267b13}=_0x1cf3c5[_0x5b9b41(0x202)](_0x5265c8);_0x3605cd+=_0xcc656f,_0xb637b7+=_0x267b13;}return{'resultsCount':_0x3605cd,'totalItemsCount':_0xb637b7};}}
23
+ const _0x5ebb4c=_0x3383;function _0x3383(_0x5b2950,_0x8061f){const _0x49cab9=_0x49ca();return _0x3383=function(_0x3383e9,_0x3a00d9){_0x3383e9=_0x3383e9-0x64;let _0x57a35a=_0x49cab9[_0x3383e9];return _0x57a35a;},_0x3383(_0x5b2950,_0x8061f);}(function(_0x2f41f9,_0x1dd362){const _0x18c9c3=_0x3383,_0x181ee3=_0x2f41f9();while(!![]){try{const _0x4b2f37=-parseInt(_0x18c9c3(0x68))/0x1+parseInt(_0x18c9c3(0x6f))/0x2*(-parseInt(_0x18c9c3(0x6e))/0x3)+-parseInt(_0x18c9c3(0x64))/0x4+-parseInt(_0x18c9c3(0x6d))/0x5+-parseInt(_0x18c9c3(0x72))/0x6*(parseInt(_0x18c9c3(0x67))/0x7)+parseInt(_0x18c9c3(0x65))/0x8+-parseInt(_0x18c9c3(0x69))/0x9*(-parseInt(_0x18c9c3(0x6c))/0xa);if(_0x4b2f37===_0x1dd362)break;else _0x181ee3['push'](_0x181ee3['shift']());}catch(_0x190946){_0x181ee3['push'](_0x181ee3['shift']());}}}(_0x49ca,0x2d2d7));function _0x49ca(){const _0x1ddd63=['ck-ai-chat-history__sections','6GjxNXy','extendTemplate','415984iSHczf','697848aMMQBB','filter','1966741GItqwS','308648KNtWkE','837ioIVhC','addMany','items','95750qqSnMZ','137490TYYiUL','57MqsIJn','7532XbDYDn','sections'];_0x49ca=function(){return _0x1ddd63;};return _0x49ca();}import{ListView as _0x815b37}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x815b37{[_0x5ebb4c(0x70)];constructor(_0x232637,_0x13c58b){const _0x18ba0a=_0x5ebb4c;super(_0x232637),this[_0x18ba0a(0x70)]=_0x13c58b,this[_0x18ba0a(0x6b)][_0x18ba0a(0x6a)](this[_0x18ba0a(0x70)]),this[_0x18ba0a(0x73)]({'attributes':{'class':[_0x18ba0a(0x71)]}});}[_0x5ebb4c(0x66)](_0x3c0e67){const _0xf2b80d=_0x5ebb4c;let _0x4f0ae0=0x0,_0x35de16=0x0;for(const _0x2fbbd3 of this[_0xf2b80d(0x70)]){const {resultsCount:_0x21d3fd,totalItemsCount:_0xa82058}=_0x2fbbd3[_0xf2b80d(0x66)](_0x3c0e67);_0x4f0ae0+=_0x21d3fd,_0x35de16+=_0xa82058;}return{'resultsCount':_0x4f0ae0,'totalItemsCount':_0x35de16};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c3cb6=_0x4247;(function(_0x493d75,_0x1f6b24){const _0x4ddb8f=_0x4247,_0x577fc1=_0x493d75();while(!![]){try{const _0x35df46=parseInt(_0x4ddb8f(0xff))/0x1+-parseInt(_0x4ddb8f(0xe7))/0x2+-parseInt(_0x4ddb8f(0xe6))/0x3*(-parseInt(_0x4ddb8f(0xf1))/0x4)+parseInt(_0x4ddb8f(0x10f))/0x5+parseInt(_0x4ddb8f(0x124))/0x6*(-parseInt(_0x4ddb8f(0x100))/0x7)+-parseInt(_0x4ddb8f(0x107))/0x8+parseInt(_0x4ddb8f(0x11b))/0x9;if(_0x35df46===_0x1f6b24)break;else _0x577fc1['push'](_0x577fc1['shift']());}catch(_0x2c9fd0){_0x577fc1['push'](_0x577fc1['shift']());}}}(_0x2da6,0x5a501));function _0x4247(_0x3bf7d9,_0x455119){const _0x2da603=_0x2da6();return _0x4247=function(_0x424709,_0x35299c){_0x424709=_0x424709-0xe5;let _0x2c0eb6=_0x2da603[_0x424709];return _0x2c0eb6;},_0x4247(_0x3bf7d9,_0x455119);}import{View as _0x20742c,SearchTextView as _0x29e9db,FormHeaderView as _0x41e7c1,ButtonView as _0x28588b}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1361af,IconCancel as _0x11c6d3,IconPlus as _0x393a37}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x222660}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x3bf649}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5a9464}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1fcac4}from'../aichathistoryui.js';import{AISkeletonView as _0x47f0d9,SKELETON_DEFINITIONS as _0x3d52f5}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x41953d}from'../../aicore/utils/createresizebutton.js';function _0x2da6(){const _0x48e31a=['openChat','bind','updateTitle','updateLoadingState','4192569cHhIYY','remove','getItem','AI_CHAT_HISTORY_SEARCH_LABEL','itemsViews','errorMessage','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','aiHistory','updateItemLoadingState','6DRKvUp','set','ck-ai-chat-history__empty','_createListItemViews','bindTemplate','execute','locale','element','isMaximized','search','indexOf','render','_createEmptyStateView','title','_createErrorView','push','AI_CHAT_HISTORY_EMPTY_MESSAGE','searchView','sections','isLoading','emptyView','delegate','length','skeletonView','resizeButton','isEmptyViewVisible','ck-ai-chat-history__empty-message','ck-ai-chat-history__content','136281bqbHRe','1042188PCHjap','hasItems','setTemplate','queryView','some','updateItemTitle','ck-ai-chat-error','fire','ltr','clear','20PuPvqi','_createSearchView','ck-hidden','splice','sectionsView','ck-ai-chat-error__dismiss-button','removeItem','isSearchViewVisible','items','value','ck-ai-chat__start-conversation','ck-rounded-corners','isVisible','AI_CHAT_HISTORY_HEADING','595952KBvBXR','3110443GdqzDc','ck-ai-chat-history','_updateViewVisibility','fieldView','extendTemplate','div','errorView','1441688NjysDG','change:errorMessage','updateHistoryItemsWithCategories','add','addMany','ck-reset_all','children','AI_CHAT_LABEL_NEW_CHAT','1133235VtFZrU','_createSkeletonView','change:hasItems','ck-ai-header\x20ck-ai-header_history','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','removeHistoryItem','_refreshSearch','change:isLoading'];_0x2da6=function(){return _0x48e31a;};return _0x2da6();}import{getTranslation as _0x243ea6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x20742c{[_0x5c3cb6(0x135)];[_0x5c3cb6(0x106)];[_0x5c3cb6(0x13b)];[_0x5c3cb6(0x138)];[_0x5c3cb6(0xf5)];[_0x5c3cb6(0x13c)];constructor(_0x3fde89,_0x53e1e5){const _0x1f24b6=_0x5c3cb6;super(_0x3fde89),this[_0x1f24b6(0x125)](_0x1f24b6(0xe8),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0x137),!0x0),this[_0x1f24b6(0x125)](_0x1f24b6(0x120),''),this[_0x1f24b6(0x125)](_0x1f24b6(0x12c),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0xf8),!0x1),this[_0x1f24b6(0x125)](_0x1f24b6(0x13d),!0x1);const _0x1aa6aa=new _0x41e7c1(_0x3fde89,{'label':_0x243ea6(_0x3fde89,_0x1f24b6(0xfe)),'icon':_0x1361af,'class':_0x1f24b6(0x112)});_0x53e1e5&&(this[_0x1f24b6(0x13c)]=_0x41953d(_0x3fde89,this),_0x1aa6aa[_0x1f24b6(0x10d)][_0x1f24b6(0x10a)](this[_0x1f24b6(0x13c)])),this[_0x1f24b6(0xf5)]=new _0x222660(_0x3fde89,[]),this[_0x1f24b6(0xf5)][_0x1f24b6(0x139)](..._0x1fcac4)['to'](this),this[_0x1f24b6(0x106)]=this[_0x1f24b6(0x132)](),this[_0x1f24b6(0x13b)]=this[_0x1f24b6(0x110)](),this[_0x1f24b6(0x138)]=this[_0x1f24b6(0x130)](),this[_0x1f24b6(0x135)]=this[_0x1f24b6(0xf2)](),this['on'](_0x1f24b6(0x116),()=>this[_0x1f24b6(0x102)]()),this['on'](_0x1f24b6(0x111),()=>this[_0x1f24b6(0x102)]()),this['on'](_0x1f24b6(0x108),()=>this[_0x1f24b6(0x102)]()),this[_0x1f24b6(0xe9)]({'tag':_0x1f24b6(0x105),'attributes':{'class':['ck',_0x1f24b6(0x10c),_0x1f24b6(0x101),_0x1f24b6(0xfc)],'dir':_0x1f24b6(0xef)},'children':[_0x1aa6aa,{'tag':_0x1f24b6(0x105),'attributes':{'class':[_0x1f24b6(0xe5)]},'children':[this[_0x1f24b6(0x13b)],this[_0x1f24b6(0x106)],this[_0x1f24b6(0x138)],this[_0x1f24b6(0x135)]]}]});}[_0x5c3cb6(0x102)](){const _0x129bcb=_0x5c3cb6;this[_0x129bcb(0xf8)]=!this[_0x129bcb(0x137)]&&this[_0x129bcb(0xe8)]&&!this[_0x129bcb(0x120)],this[_0x129bcb(0x13d)]=!this[_0x129bcb(0x137)]&&!this[_0x129bcb(0xe8)]&&!this[_0x129bcb(0x120)];}[_0x5c3cb6(0xf2)](){const _0x1bfc95=_0x5c3cb6,_0x42dd37=new _0x29e9db(this[_0x1bfc95(0x12a)],{'filteredView':this[_0x1bfc95(0xf5)],'queryView':{'label':_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x11e))},'infoView':{'text':{'notFound':{'primary':_0x18b680=>_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x121),_0x18b680),'secondary':_0x243ea6(this[_0x1bfc95(0x12a)],_0x1bfc95(0x113))}}}});return _0x42dd37['on'](_0x1bfc95(0x12f),()=>{const _0x35bca7=_0x1bfc95;this[_0x35bca7(0x135)][_0x35bca7(0x10d)][_0x35bca7(0x10a)](this[_0x35bca7(0x106)],0x1);}),_0x42dd37[_0x1bfc95(0x104)]({'attributes':{'class':[this[_0x1bfc95(0x128)]['if'](_0x1bfc95(0xf8),_0x1bfc95(0xf3),_0x362e76=>!_0x362e76)]}}),_0x42dd37;}[_0x5c3cb6(0x110)](){const _0x194b85=_0x5c3cb6,_0x23011c=new _0x47f0d9(this[_0x194b85(0x12a)],_0x3d52f5[_0x194b85(0x122)]);return _0x23011c[_0x194b85(0x104)]({'attributes':{'class':[this[_0x194b85(0x128)]['if'](_0x194b85(0x137),_0x194b85(0xf3),_0x22109c=>!_0x22109c)]}}),_0x23011c;}[_0x5c3cb6(0x132)](){const _0x411519=_0x5c3cb6,_0x4c0d0a=new _0x20742c(this[_0x411519(0x12a)]),_0x4ab52c=new _0x28588b(this[_0x411519(0x12a)]);return _0x4ab52c[_0x411519(0x125)]({'withText':!0x1,'icon':_0x11c6d3,'class':_0x411519(0xf6)}),_0x4ab52c[_0x411519(0x118)](_0x411519(0xfd))['to'](this,_0x411519(0xe8),_0x3b75e1=>!!_0x3b75e1),_0x4ab52c['on'](_0x411519(0x129),()=>{const _0x45d8e8=_0x411519;this[_0x45d8e8(0x120)]='';}),_0x4c0d0a[_0x411519(0xe9)]({'tag':_0x411519(0x105),'attributes':{'class':['ck',_0x411519(0xed),this[_0x411519(0x128)]['if'](_0x411519(0x120),_0x411519(0xf3),_0x41308d=>!_0x41308d)]},'children':[{'tag':'p','children':[{'text':this[_0x411519(0x128)]['to'](_0x411519(0x120))}]},_0x4ab52c]}),_0x4c0d0a;}[_0x5c3cb6(0x130)](){const _0x1216fe=_0x5c3cb6,_0x2da27f=new _0x28588b(this[_0x1216fe(0x12a)]);_0x2da27f[_0x1216fe(0x125)]({'label':_0x243ea6(this[_0x1216fe(0x12a)],_0x1216fe(0x10e)),'withText':!0x0,'icon':_0x393a37,'class':_0x1216fe(0xfb)}),_0x2da27f['on'](_0x1216fe(0x129),()=>{const _0x356eac=_0x1216fe;this[_0x356eac(0xee)](_0x356eac(0x117));});const _0x1f35ce=new _0x20742c(this[_0x1216fe(0x12a)]);return _0x1f35ce[_0x1216fe(0xe9)]({'tag':_0x1216fe(0x105),'attributes':{'class':[_0x1216fe(0x126),this[_0x1216fe(0x128)]['if'](_0x1216fe(0x13d),_0x1216fe(0xf3),_0x369643=>!_0x369643)]},'children':[{'tag':'p','attributes':{'class':[_0x1216fe(0x13e)]},'children':[_0x243ea6(this[_0x1216fe(0x12a)],_0x1216fe(0x134))]},_0x2da27f]}),_0x1f35ce;}[_0x5c3cb6(0x127)](_0x39f8b0,_0xdb4405){const _0x24f363=_0x5c3cb6,_0x1b4ce1=[];for(const _0xf560b of _0x39f8b0){const _0x6df1e=new _0x5a9464(_0xdb4405,_0xf560b);_0x6df1e[_0x24f363(0x139)](..._0x1fcac4)['to'](this),_0x1b4ce1[_0x24f363(0x133)](_0x6df1e);}return _0x1b4ce1;}[_0x5c3cb6(0x109)](_0x18408e){const _0x4151a7=_0x5c3cb6,_0x14bd9f=this[_0x4151a7(0x12a)]||'en',_0x2185fd=[];for(const _0xa66f2d of _0x18408e){const _0x4ad93e=this[_0x4151a7(0x127)](_0xa66f2d[_0x4151a7(0xf9)],_0x14bd9f);_0x2185fd[_0x4151a7(0x133)](new _0x3bf649(_0x14bd9f,{'title':_0xa66f2d[_0x4151a7(0x131)],'items':_0x4ad93e}));}this[_0x4151a7(0xf5)][_0x4151a7(0x136)]=_0x2185fd,this[_0x4151a7(0xf5)][_0x4151a7(0xf9)][_0x4151a7(0xf0)](),this[_0x4151a7(0xf5)][_0x4151a7(0xf9)][_0x4151a7(0x10b)](_0x2185fd),this[_0x4151a7(0xe8)]=_0x18408e[_0x4151a7(0xeb)](_0x3d3d39=>_0x3d3d39[_0x4151a7(0xf9)][_0x4151a7(0x13a)]>0x0),this[_0x4151a7(0x115)]();}[_0x5c3cb6(0x114)](_0x327281){const _0x19da11=_0x5c3cb6;for(const _0x24c225 of this[_0x19da11(0xf5)][_0x19da11(0x136)]){const _0x1659ff=_0x24c225[_0x19da11(0x11d)](_0x327281);if(_0x1659ff){if(_0x24c225[_0x19da11(0xf7)](_0x1659ff),0x0===_0x24c225[_0x19da11(0x11f)][_0x19da11(0x13a)]){const _0x4b14f0=this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0x12e)](_0x24c225);-0x1!==_0x4b14f0&&(this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0xf4)](_0x4b14f0,0x1),this[_0x19da11(0xf5)][_0x19da11(0xf9)][_0x19da11(0x11c)](_0x24c225));}this[_0x19da11(0xe8)]=this[_0x19da11(0xf5)][_0x19da11(0x136)][_0x19da11(0x13a)]>0x0,this[_0x19da11(0x115)]();break;}}}[_0x5c3cb6(0xec)](_0x1165d6,_0x57ea28){const _0x5bb6a1=_0x5c3cb6;for(const _0x3cb8f5 of this[_0x5bb6a1(0xf5)][_0x5bb6a1(0x136)]){const _0x3db443=_0x3cb8f5[_0x5bb6a1(0x11d)](_0x1165d6);if(_0x3db443){_0x3db443[_0x5bb6a1(0x119)](_0x57ea28);break;}}}[_0x5c3cb6(0x123)](_0x4926c1,_0x427568,_0x4adf72){const _0x209f91=_0x5c3cb6;for(const _0x2797f3 of this[_0x209f91(0xf5)][_0x209f91(0x136)]){const _0x4c19a6=_0x2797f3[_0x209f91(0x11d)](_0x4926c1);if(_0x4c19a6){_0x4c19a6[_0x209f91(0x11a)](_0x427568,_0x4adf72);break;}}}[_0x5c3cb6(0x115)](){const _0x28a47e=_0x5c3cb6;if(this[_0x28a47e(0xe8)]){const _0x122527=this[_0x28a47e(0x135)][_0x28a47e(0xea)][_0x28a47e(0x103)]?.[_0x28a47e(0x12b)]?.[_0x28a47e(0xfa)]||'';this[_0x28a47e(0x135)][_0x28a47e(0x12d)](_0x122527);}}}
23
+ const _0xe171a1=_0x31c1;(function(_0x59387f,_0x142e94){const _0x54bced=_0x31c1,_0xe653aa=_0x59387f();while(!![]){try{const _0x4e9c75=-parseInt(_0x54bced(0xc2))/0x1*(parseInt(_0x54bced(0xe2))/0x2)+-parseInt(_0x54bced(0x11a))/0x3+-parseInt(_0x54bced(0xcd))/0x4*(-parseInt(_0x54bced(0xf0))/0x5)+-parseInt(_0x54bced(0x10e))/0x6*(parseInt(_0x54bced(0xdd))/0x7)+-parseInt(_0x54bced(0xfd))/0x8+-parseInt(_0x54bced(0x114))/0x9*(-parseInt(_0x54bced(0x108))/0xa)+parseInt(_0x54bced(0xf2))/0xb;if(_0x4e9c75===_0x142e94)break;else _0xe653aa['push'](_0xe653aa['shift']());}catch(_0x38000c){_0xe653aa['push'](_0xe653aa['shift']());}}}(_0x17fc,0xa9e49));function _0x17fc(){const _0x29f665=['errorView','_refreshSearch','change:hasItems','change:errorMessage','ltr','245WnGlfa','delegate','20172757bNtRUm','push','fieldView','addMany','updateLoadingState','element','updateHistoryItemsWithCategories','updateItemLoadingState','extendTemplate','AI_CHAT_HISTORY_SEARCH_LABEL','openChat','10623368PVojUv','_createSearchView','ck-ai-chat-history__empty-message','indexOf','bindTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:isLoading','itemsViews','isLoading','ck-rounded-corners','execute','300iNyizS','length','getItem','title','_updateViewVisibility','render','6qXzTgL','skeletonView','ck-reset_all','remove','clear','ck-ai-chat-history','78660ZMUfVk','errorMessage','ck-ai-header\x20ck-ai-header_history','isSearchViewVisible','some','add','8943UpSLvj','bind','_createListItemViews','removeItem','9gWPhpV','aiHistory','resizeButton','isEmptyViewVisible','ck-ai-chat-error','fire','updateTitle','div','ck-ai-chat__start-conversation','sections','AI_CHAT_LABEL_NEW_CHAT','19816eZPXuc','splice','searchView','setTemplate','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','updateItemTitle','removeHistoryItem','children','isVisible','locale','_createErrorView','ck-hidden','search','ck-ai-chat-history__content','829661qmsPdF','_createSkeletonView','set','ck-ai-chat-error__dismiss-button','emptyView','43006KiRfjD','ck-ai-chat-history__empty','isMaximized','items','AI_CHAT_HISTORY_HEADING','hasItems','queryView','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createEmptyStateView'];_0x17fc=function(){return _0x29f665;};return _0x17fc();}import{View as _0x3700fa,SearchTextView as _0x497a96,FormHeaderView as _0x3cb696,ButtonView as _0x1dbc2f}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x92aa4b,IconCancel as _0x1930d2,IconPlus as _0x2dcceb}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x790187}from'./aichathistorysectionlistview.js';function _0x31c1(_0x563ecc,_0x47bcbe){const _0x17fcc4=_0x17fc();return _0x31c1=function(_0x31c149,_0x3b6ae8){_0x31c149=_0x31c149-0xc2;let _0xa154e3=_0x17fcc4[_0x31c149];return _0xa154e3;},_0x31c1(_0x563ecc,_0x47bcbe);}import{AIChatHistoryListView as _0x3ba45f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1e3c53}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4e08e0}from'../aichathistoryui.js';import{AISkeletonView as _0x4a2421,SKELETON_DEFINITIONS as _0xee8781}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x59e1dc}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x49f1ca}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3700fa{[_0xe171a1(0xcf)];[_0xe171a1(0xeb)];[_0xe171a1(0x10f)];[_0xe171a1(0xe1)];[_0xe171a1(0xd3)];[_0xe171a1(0xc4)];constructor(_0x131f73,_0x38fc54){const _0x1be863=_0xe171a1;super(_0x131f73),this[_0x1be863(0xdf)](_0x1be863(0xe7),!0x1),this[_0x1be863(0xdf)](_0x1be863(0x105),!0x0),this[_0x1be863(0xdf)](_0x1be863(0x115),''),this[_0x1be863(0xdf)](_0x1be863(0xe4),!0x1),this[_0x1be863(0xdf)](_0x1be863(0x117),!0x1),this[_0x1be863(0xdf)](_0x1be863(0xc5),!0x1);const _0x46427=new _0x3cb696(_0x131f73,{'label':_0x49f1ca(_0x131f73,_0x1be863(0xe6)),'icon':_0x92aa4b,'class':_0x1be863(0x116)});_0x38fc54&&(this[_0x1be863(0xc4)]=_0x59e1dc(_0x131f73,this),_0x46427[_0x1be863(0xd6)][_0x1be863(0x119)](this[_0x1be863(0xc4)])),this[_0x1be863(0xd3)]=new _0x790187(_0x131f73,[]),this[_0x1be863(0xd3)][_0x1be863(0xf1)](..._0x4e08e0)['to'](this),this[_0x1be863(0xeb)]=this[_0x1be863(0xd9)](),this[_0x1be863(0x10f)]=this[_0x1be863(0xde)](),this[_0x1be863(0xe1)]=this[_0x1be863(0xea)](),this[_0x1be863(0xcf)]=this[_0x1be863(0xfe)](),this['on'](_0x1be863(0x103),()=>this[_0x1be863(0x10c)]()),this['on'](_0x1be863(0xed),()=>this[_0x1be863(0x10c)]()),this['on'](_0x1be863(0xee),()=>this[_0x1be863(0x10c)]()),this[_0x1be863(0xd0)]({'tag':_0x1be863(0xc9),'attributes':{'class':['ck',_0x1be863(0x110),_0x1be863(0x113),_0x1be863(0x106)],'dir':_0x1be863(0xef)},'children':[_0x46427,{'tag':_0x1be863(0xc9),'attributes':{'class':[_0x1be863(0xdc)]},'children':[this[_0x1be863(0x10f)],this[_0x1be863(0xeb)],this[_0x1be863(0xe1)],this[_0x1be863(0xcf)]]}]});}[_0xe171a1(0x10c)](){const _0x4184a1=_0xe171a1;this[_0x4184a1(0x117)]=!this[_0x4184a1(0x105)]&&this[_0x4184a1(0xe7)]&&!this[_0x4184a1(0x115)],this[_0x4184a1(0xc5)]=!this[_0x4184a1(0x105)]&&!this[_0x4184a1(0xe7)]&&!this[_0x4184a1(0x115)];}[_0xe171a1(0xfe)](){const _0x4f9b6b=_0xe171a1,_0x29e309=new _0x497a96(this[_0x4f9b6b(0xd8)],{'filteredView':this[_0x4f9b6b(0xd3)],'queryView':{'label':_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0xfb))},'infoView':{'text':{'notFound':{'primary':_0xacb6e1=>_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0x102),_0xacb6e1),'secondary':_0x49f1ca(this[_0x4f9b6b(0xd8)],_0x4f9b6b(0xd2))}}}});return _0x29e309['on'](_0x4f9b6b(0x10d),()=>{const _0x59ce9d=_0x4f9b6b;this[_0x59ce9d(0xcf)][_0x59ce9d(0xd6)][_0x59ce9d(0x119)](this[_0x59ce9d(0xeb)],0x1);}),_0x29e309[_0x4f9b6b(0xfa)]({'attributes':{'class':[this[_0x4f9b6b(0x101)]['if'](_0x4f9b6b(0x117),_0x4f9b6b(0xda),_0x3417d0=>!_0x3417d0)]}}),_0x29e309;}[_0xe171a1(0xde)](){const _0x2c28e9=_0xe171a1,_0x1ea721=new _0x4a2421(this[_0x2c28e9(0xd8)],_0xee8781[_0x2c28e9(0xc3)]);return _0x1ea721[_0x2c28e9(0xfa)]({'attributes':{'class':[this[_0x2c28e9(0x101)]['if'](_0x2c28e9(0x105),_0x2c28e9(0xda),_0x5bbcff=>!_0x5bbcff)]}}),_0x1ea721;}[_0xe171a1(0xd9)](){const _0x1fbd40=_0xe171a1,_0x1246f=new _0x3700fa(this[_0x1fbd40(0xd8)]),_0x369456=new _0x1dbc2f(this[_0x1fbd40(0xd8)]);return _0x369456[_0x1fbd40(0xdf)]({'withText':!0x1,'icon':_0x1930d2,'class':_0x1fbd40(0xe0)}),_0x369456[_0x1fbd40(0x11b)](_0x1fbd40(0xd7))['to'](this,_0x1fbd40(0xe7),_0x43ee92=>!!_0x43ee92),_0x369456['on'](_0x1fbd40(0x107),()=>{const _0x1679ad=_0x1fbd40;this[_0x1679ad(0x115)]='';}),_0x1246f[_0x1fbd40(0xd0)]({'tag':_0x1fbd40(0xc9),'attributes':{'class':['ck',_0x1fbd40(0xc6),this[_0x1fbd40(0x101)]['if'](_0x1fbd40(0x115),_0x1fbd40(0xda),_0x1fd21f=>!_0x1fd21f)]},'children':[{'tag':'p','children':[{'text':this[_0x1fbd40(0x101)]['to'](_0x1fbd40(0x115))}]},_0x369456]}),_0x1246f;}[_0xe171a1(0xea)](){const _0x37a22d=_0xe171a1,_0x5b608d=new _0x1dbc2f(this[_0x37a22d(0xd8)]);_0x5b608d[_0x37a22d(0xdf)]({'label':_0x49f1ca(this[_0x37a22d(0xd8)],_0x37a22d(0xcc)),'withText':!0x0,'icon':_0x2dcceb,'class':_0x37a22d(0xca)}),_0x5b608d['on'](_0x37a22d(0x107),()=>{const _0x5c5601=_0x37a22d;this[_0x5c5601(0xc7)](_0x5c5601(0xfc));});const _0x3aecc1=new _0x3700fa(this[_0x37a22d(0xd8)]);return _0x3aecc1[_0x37a22d(0xd0)]({'tag':_0x37a22d(0xc9),'attributes':{'class':[_0x37a22d(0xe3),this[_0x37a22d(0x101)]['if'](_0x37a22d(0xc5),_0x37a22d(0xda),_0x2ba0fb=>!_0x2ba0fb)]},'children':[{'tag':'p','attributes':{'class':[_0x37a22d(0xff)]},'children':[_0x49f1ca(this[_0x37a22d(0xd8)],_0x37a22d(0xe9))]},_0x5b608d]}),_0x3aecc1;}[_0xe171a1(0x11c)](_0x18b4da,_0x1e24a4){const _0x1f39b6=_0xe171a1,_0x57c2b0=[];for(const _0x1838b9 of _0x18b4da){const _0xdb7545=new _0x1e3c53(_0x1e24a4,_0x1838b9);_0xdb7545[_0x1f39b6(0xf1)](..._0x4e08e0)['to'](this),_0x57c2b0[_0x1f39b6(0xf3)](_0xdb7545);}return _0x57c2b0;}[_0xe171a1(0xf8)](_0x1e78ef){const _0x54bf5e=_0xe171a1,_0x550e27=this[_0x54bf5e(0xd8)]||'en',_0x1c0d76=[];for(const _0x4e39e6 of _0x1e78ef){const _0x4ee345=this[_0x54bf5e(0x11c)](_0x4e39e6[_0x54bf5e(0xe5)],_0x550e27);_0x1c0d76[_0x54bf5e(0xf3)](new _0x3ba45f(_0x550e27,{'title':_0x4e39e6[_0x54bf5e(0x10b)],'items':_0x4ee345}));}this[_0x54bf5e(0xd3)][_0x54bf5e(0xcb)]=_0x1c0d76,this[_0x54bf5e(0xd3)][_0x54bf5e(0xe5)][_0x54bf5e(0x112)](),this[_0x54bf5e(0xd3)][_0x54bf5e(0xe5)][_0x54bf5e(0xf5)](_0x1c0d76),this[_0x54bf5e(0xe7)]=_0x1e78ef[_0x54bf5e(0x118)](_0x1ff9d3=>_0x1ff9d3[_0x54bf5e(0xe5)][_0x54bf5e(0x109)]>0x0),this[_0x54bf5e(0xec)]();}[_0xe171a1(0xd5)](_0x55d4dd){const _0x1fd596=_0xe171a1;for(const _0x37fd4d of this[_0x1fd596(0xd3)][_0x1fd596(0xcb)]){const _0x557815=_0x37fd4d[_0x1fd596(0x10a)](_0x55d4dd);if(_0x557815){if(_0x37fd4d[_0x1fd596(0x11d)](_0x557815),0x0===_0x37fd4d[_0x1fd596(0x104)][_0x1fd596(0x109)]){const _0x1d580c=this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0x100)](_0x37fd4d);-0x1!==_0x1d580c&&(this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0xce)](_0x1d580c,0x1),this[_0x1fd596(0xd3)][_0x1fd596(0xe5)][_0x1fd596(0x111)](_0x37fd4d));}this[_0x1fd596(0xe7)]=this[_0x1fd596(0xd3)][_0x1fd596(0xcb)][_0x1fd596(0x109)]>0x0,this[_0x1fd596(0xec)]();break;}}}[_0xe171a1(0xd4)](_0x5e7566,_0x32d94a){const _0x409ebb=_0xe171a1;for(const _0x138c76 of this[_0x409ebb(0xd3)][_0x409ebb(0xcb)]){const _0x2db4b8=_0x138c76[_0x409ebb(0x10a)](_0x5e7566);if(_0x2db4b8){_0x2db4b8[_0x409ebb(0xc8)](_0x32d94a);break;}}}[_0xe171a1(0xf9)](_0x36527d,_0x263117,_0x1409ce){const _0x1ce8b4=_0xe171a1;for(const _0x2b807a of this[_0x1ce8b4(0xd3)][_0x1ce8b4(0xcb)]){const _0x413204=_0x2b807a[_0x1ce8b4(0x10a)](_0x36527d);if(_0x413204){_0x413204[_0x1ce8b4(0xf6)](_0x263117,_0x1409ce);break;}}}[_0xe171a1(0xec)](){const _0x1a7105=_0xe171a1;if(this[_0x1a7105(0xe7)]){const _0x5a7317=this[_0x1a7105(0xcf)][_0x1a7105(0xe8)][_0x1a7105(0xf4)]?.[_0x1a7105(0xf7)]?.[_0x1a7105(0xd1)]||'';this[_0x1a7105(0xcf)][_0x1a7105(0xdb)](_0x5a7317);}}}
package/src/aiconfig.d.ts CHANGED
@@ -58,7 +58,9 @@ export interface AIConfig {
58
58
  */
59
59
  chat?: AIChatConfig;
60
60
  /**
61
- * The configuration of the AI quick actions.
61
+ * The configuration of the AI Quick Actions feature.
62
+ *
63
+ * Read more in {@link module:ai/aiquickactions/aiquickactions~AIQuickActionsConfig}.
62
64
  */
63
65
  quickActions?: AIQuickActionsConfig;
64
66
  /**
@@ -94,13 +96,31 @@ export interface AIContainerBase {
94
96
  showResizeButton?: boolean;
95
97
  }
96
98
  /**
97
- * The configuration of the AI user interface container in the sidebar mode.
99
+ * The configuration of the AI user interface container in the sidebar mode. Provide an existing DOM
100
+ * element to use as the container the AI user interface will automatically render into that element.
101
+ *
102
+ * Additionally, the {@link module:ai/aitabs/aitabs~AITabs tab buttons} can be positioned on the preferred
103
+ * side of the container.
98
104
  *
99
- * Provide an existing DOM element to use as the container for the AI user interface.
105
+ * ```ts
106
+ * ClassicEditor
107
+ * .create( document.querySelector( '#editor' ), {
108
+ * // ... Other configuration options ...
109
+ * ai: {
110
+ * container: {
111
+ * type: 'sidebar',
100
112
  *
101
- * The interface will automatically render into the element.
113
+ * // Existing DOM element to use as the container for the AI user interface.
114
+ * element: document.querySelector( '#ai-sidebar-container' ),
102
115
  *
103
- * Tab buttons can be positioned on the preferred side of the element.
116
+ * // (Optional) The preferred side of the element to position the tab buttons.
117
+ * side: 'right'
118
+ * },
119
+ * }
120
+ * } )
121
+ * .then( ... )
122
+ * .catch( ... );
123
+ * ```
104
124
  */
105
125
  export interface AIContainerSidebar extends AIContainerBase {
106
126
  type: 'sidebar';
@@ -108,8 +128,24 @@ export interface AIContainerSidebar extends AIContainerBase {
108
128
  side?: AIContainerSide;
109
129
  }
110
130
  /**
111
- * The configuration of the AI user interface container in the overlay mode. The AI user
112
- * interface is displayed on top of the web page on a preferred side.
131
+ * The configuration of the AI user interface container in the overlay mode. In this mode, the AI user
132
+ * interface is displayed on top of the web page on a preferred side. This mode is best suited
133
+ * for integrations with limited space.
134
+ *
135
+ * ```ts
136
+ * ClassicEditor
137
+ * .create( document.querySelector( '#editor' ), {
138
+ * // ... Other configuration options ...
139
+ * ai: {
140
+ * container: {
141
+ * type: 'overlay',
142
+ * side: 'right'
143
+ * },
144
+ * }
145
+ * } )
146
+ * .then( ... )
147
+ * .catch( ... );
148
+ * ```
113
149
  */
114
150
  export interface AIContainerOverlay extends AIContainerBase {
115
151
  type: 'overlay';
@@ -122,11 +158,13 @@ export interface AIContainerOverlay extends AIContainerBase {
122
158
  *
123
159
  * * Use {@link module:ai/aitabs/aitabs~AITabs#view} to access the view of the AI user interface,
124
160
  * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTabIds} to read available IDs of individual tabs in the AI user interface,
125
- * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTab} to access individual tab views in the AI user interface.
161
+ * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#getTab} to access individual tab views in the AI user interface,
162
+ * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#addTab} to add a new tab to the AI user interface,
163
+ * * Use {@link module:ai/aitabs/tabs/aitabsview~AITabsView#activateTab} to switch between tabs from the code.
126
164
  *
127
165
  * For example, to integrate the AI user interface with custom containers on the web page, use the following code:
128
166
  *
129
- * ```js
167
+ * ```ts
130
168
  * const tabsPlugin = editor.plugins.get( 'AITabs' );
131
169
  *
132
170
  * for ( const id of tabsPlugin.view.getTabIds() ) {
@@ -4,7 +4,6 @@
4
4
  */
5
5
  /**
6
6
  * @module ai/aicore/aiconnector
7
- * @publicApi
8
7
  */
9
8
  import { type EventSourceMessage } from 'eventsource-parser';
10
9
  import { type Editor, type Context, ContextPlugin } from 'ckeditor5/src/core.js';
@@ -134,8 +133,8 @@ export declare class AIConnector extends ContextPlugin {
134
133
  upsertAIChatRating(conversationId: string, messageId: string, rating: AIRating): AIUpdateRating;
135
134
  upsertAIActionRating(actionName: string, callId: string, rating: AIRating): AIUpdateRating;
136
135
  upsertCustomAIActionRating(callId: string, rating: AIRating): AIUpdateRating;
137
- upsertAIReviewRating(reviewName: string, callId: string, rating: AIRating): AIUpdateRating;
138
- upsertCustomAIReviewRating(callId: string, rating: AIRating): AIUpdateRating;
136
+ upsertAIReviewRating(reviewName: string, callId: string, rating: AIRating, dataId?: string): AIUpdateRating;
137
+ upsertCustomAIReviewRating(callId: string, rating: AIRating, dataId?: string): AIUpdateRating;
139
138
  }
140
139
  export type AIGenericRequest = {
141
140
  request: Promise<Response>;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x13ba(_0x446869,_0xc41fca){const _0x2a72fe=_0x2a72();return _0x13ba=function(_0x13bab2,_0x538faa){_0x13bab2=_0x13bab2-0x1e7;let _0x435d36=_0x2a72fe[_0x13bab2];return _0x435d36;},_0x13ba(_0x446869,_0xc41fca);}const _0x1ca519=_0x13ba;(function(_0x1bae5e,_0x574c15){const _0x36b157=_0x13ba,_0xea3e07=_0x1bae5e();while(!![]){try{const _0x180195=parseInt(_0x36b157(0x22d))/0x1+parseInt(_0x36b157(0x230))/0x2+-parseInt(_0x36b157(0x1ed))/0x3+-parseInt(_0x36b157(0x258))/0x4*(parseInt(_0x36b157(0x220))/0x5)+-parseInt(_0x36b157(0x215))/0x6+-parseInt(_0x36b157(0x228))/0x7+-parseInt(_0x36b157(0x264))/0x8*(-parseInt(_0x36b157(0x23c))/0x9);if(_0x180195===_0x574c15)break;else _0xea3e07['push'](_0xea3e07['shift']());}catch(_0x3edb48){_0xea3e07['push'](_0xea3e07['shift']());}}}(_0x2a72,0x57c87));import{createParser as _0x179dfe}from'eventsource-parser';function _0x2a72(){const _0x30949b=['/calls/','define','releaseLock','/documents','signal','PATCH','startConversation','get','make-tone-formal','/actions/custom/calls','decode','IMPROVE_WRITING','ai-request-aborted','CloudServices','ai-request-failed','name','_apiUrl','stringify','attributes','parse','callSystemReview','translate','/actions/custom/calls/','fetchConversation','context','token','FIX_GRAMMAR','positiveCount','uploadFile','GET','locale','isOfficialPlugin','MAKE_LONGER','body','1523694MJXFcH','_sendApiRequest','true','_token','data','map','upsertCustomAIReviewRating','continue','CONTINUE','make-tone-casual','/conversations?','2166870YBBtIa','uploadDocument','pluginName','executeCustomAction','_handleError','/web-resources','status','file','1484049TgyAIC','read','reset','json','getModels','121423lOHJYp','/files/','AbortError','299580yrsXAx','fetchConversationMessages','/messages','make-longer','group','deleteDocument','fetchConversations','/documents/','search','/files','/actions/system/','/reviews/custom/calls/','909eYYHrb','Bearer\x20','limit','length','catch','/conversations/','totalCount','feed','/ratings','request','_getStreamReader','ai.serviceUrl','keys','updateConversation','/conversations','init','/models/1','getReader','MAKE_TONE_FORMAL','/web-resources/','queryAssistant','DELETE','upsertAIChatRating','100','then','application/json','requires','excludeEmpty','4AMpRSD','_decoder','text','toUpperCase','/reviews/custom/calls','abortController','AIConnector','upsertAIReviewRating','fetchDocument','MAKE_TONE_CASUAL','fix-grammar','ai-missing-token','89608lZPETg','upsertCustomAIActionRating','deleteWebResource','toString','https://ai.cke-cs.com/v1','/reviews/system/','/messages/','plugins','isPremiumPlugin','AI_MODEL_DESCRIPTION_','/calls','POST','deleteConversation','uploadUrl','MAKE_SHORTER','deleteFile','config','improve-writing','Content-Type','append','callCustomReview','value','executeAction','upsertAIActionRating','PUT','430875WJxZrd','statusText','make-shorter','TRANSLATE','items','push'];_0x2a72=function(){return _0x30949b;};return _0x2a72();}import{ContextPlugin as _0x1f47e9}from'ckeditor5/src/core.js';import{CKEditorError as _0x2debc9}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a55b9}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x194921){const _0x4e0c41=_0x13ba;_0x194921[_0x4e0c41(0x21d)]=_0x4e0c41(0x21c),_0x194921[_0x4e0c41(0x20d)]=_0x4e0c41(0x262),_0x194921[_0x4e0c41(0x1fe)]=_0x4e0c41(0x275),_0x194921[_0x4e0c41(0x213)]=_0x4e0c41(0x233),_0x194921[_0x4e0c41(0x272)]=_0x4e0c41(0x1ef),_0x194921[_0x4e0c41(0x261)]=_0x4e0c41(0x21e),_0x194921[_0x4e0c41(0x24e)]=_0x4e0c41(0x1fb),_0x194921[_0x4e0c41(0x1f0)]=_0x4e0c41(0x208);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x1f47e9{[_0x1ca519(0x203)];[_0x1ca519(0x218)];[_0x1ca519(0x259)];static get[_0x1ca519(0x256)](){const _0x16162f=_0x1ca519;return[_0x16162f(0x200)];}static get[_0x1ca519(0x222)](){const _0x3a0cda=_0x1ca519;return _0x3a0cda(0x25e);}static get[_0x1ca519(0x212)](){return!0x0;}static get[_0x1ca519(0x26c)](){return!0x0;}constructor(_0x3b2d55){const _0xf25b59=_0x1ca519;super(_0x3b2d55),this[_0xf25b59(0x20b)][_0xf25b59(0x274)][_0xf25b59(0x1f4)](_0xf25b59(0x247),_0xf25b59(0x268)),this[_0xf25b59(0x203)]=this[_0xf25b59(0x20b)][_0xf25b59(0x274)][_0xf25b59(0x1fa)](_0xf25b59(0x247)),this[_0xf25b59(0x218)]=null,this[_0xf25b59(0x259)]=new TextDecoder();}[_0x1ca519(0x24b)](){const _0x367c2a=_0x1ca519,_0xb222eb=this[_0x367c2a(0x20b)][_0x367c2a(0x26b)][_0x367c2a(0x1fa)](_0x367c2a(0x200));if(!_0xb222eb[_0x367c2a(0x20c)])throw new _0x2debc9(_0x367c2a(0x263),this);this[_0x367c2a(0x218)]=_0xb222eb[_0x367c2a(0x20c)];}[_0x1ca519(0x1f9)](_0x1de1b4,_0x386714){const _0x436479=_0x1ca519,_0x3f6f57=this[_0x436479(0x216)](_0x436479(0x24a),_0x436479(0x26f),{'id':_0x1de1b4,'group':_0x386714});return{'getConversation':async()=>(await _0x3f6f57[_0x436479(0x245)])[_0x436479(0x22b)](),'abortController':_0x3f6f57[_0x436479(0x25d)]};}[_0x1ca519(0x250)]({message:_0x328732,conversationId:_0x17906c,parts:_0x45f919,capabilities:_0x1e43f2,model:_0xd1de1e,quickActionData:_0x1b3904}){const _0x1ae337=_0x1ca519,_0x3372ac={..._0x1b3904&&{'quickActionData':_0x1b3904}},_0x29ac92={'prompt':_0x328732,'content':_0x45f919,'model':_0xd1de1e,..._0x1e43f2&&{'capabilities':_0x1e43f2},...Object[_0x1ae337(0x248)](_0x3372ac)[_0x1ae337(0x23f)]>0x0&&{'attributes':_0x3372ac}},_0x35c5f9=this[_0x1ae337(0x216)](_0x1ae337(0x241)+_0x17906c+_0x1ae337(0x232),_0x1ae337(0x26f),_0x29ac92);return{'getStream':async()=>{const _0x33ca8b=_0x1ae337,_0x4a0352=(await _0x35c5f9[_0x33ca8b(0x245)])[_0x33ca8b(0x214)];return this[_0x33ca8b(0x246)](_0x4a0352);},'abortController':_0x35c5f9[_0x1ae337(0x25d)]};}[_0x1ca519(0x223)]({content:_0x17a0c7,message:_0x2b3a4f,model:_0xec7ddc,outputFormat:_0x5b1ab2}){const _0x1bcddf=_0x1ca519,_0x11b1df={'content':[{'type':_0x1bcddf(0x25a),'content':_0x17a0c7}],'prompt':_0x2b3a4f,'model':_0xec7ddc,'outputFormat':_0x5b1ab2},_0xdf82c4=this[_0x1bcddf(0x216)](_0x1bcddf(0x1fc),_0x1bcddf(0x26f),_0x11b1df);return{'getStream':async()=>{const _0x56176b=_0x1bcddf,_0x1cdfab=(await _0xdf82c4[_0x56176b(0x245)])[_0x56176b(0x214)];return this[_0x56176b(0x246)](_0x1cdfab);},'abortController':_0xdf82c4[_0x1bcddf(0x25d)]};}[_0x1ca519(0x1ea)]({actionName:_0x256f3d,content:_0x523d6f,args:_0x21615a}){const _0x163371=_0x1ca519,_0x3c81f3={'content':[{'type':_0x163371(0x25a),'content':_0x523d6f}],'args':_0x21615a},_0x5b234b=this[_0x163371(0x216)](_0x163371(0x23a)+_0x256f3d+_0x163371(0x26e),_0x163371(0x26f),_0x3c81f3);return{'getStream':async()=>{const _0x211a04=_0x163371,_0x3c9918=(await _0x5b234b[_0x211a04(0x245)])[_0x211a04(0x214)];return this[_0x211a04(0x246)](_0x3c9918);},'abortController':_0x5b234b[_0x163371(0x25d)]};}[_0x1ca519(0x20f)](_0x48f119,_0x1bbaab,_0x344af9){const _0x34dcbc=_0x1ca519,_0x147016=new FormData();_0x147016[_0x34dcbc(0x1e7)](_0x34dcbc(0x227),_0x1bbaab,_0x1bbaab[_0x34dcbc(0x202)]),_0x344af9&&_0x147016[_0x34dcbc(0x1e7)](_0x34dcbc(0x205),JSON[_0x34dcbc(0x204)](_0x344af9));const _0x4844cc=this[_0x34dcbc(0x216)](_0x34dcbc(0x241)+_0x48f119+_0x34dcbc(0x239),_0x34dcbc(0x26f),_0x147016);return{'getId':async()=>(await _0x4844cc[_0x34dcbc(0x245)])[_0x34dcbc(0x22b)](),'abortController':_0x4844cc[_0x34dcbc(0x25d)]};}[_0x1ca519(0x260)](_0x167958,_0x4befcf){const _0x5441a3=_0x1ca519,_0x5e19da=this[_0x5441a3(0x216)](_0x5441a3(0x241)+_0x167958+_0x5441a3(0x237)+_0x4befcf,_0x5441a3(0x210));return{'getDocument':async()=>(await _0x5e19da[_0x5441a3(0x245)])[_0x5441a3(0x22b)](),'abortController':_0x5e19da[_0x5441a3(0x25d)]};}[_0x1ca519(0x221)](_0x22a4d6,_0x255ddd,_0x1ad5ea){const _0x54d193=_0x1ca519,_0x2b0f32={'content':_0x255ddd};_0x1ad5ea&&(_0x2b0f32[_0x54d193(0x205)]=_0x1ad5ea);const _0x31f933=this[_0x54d193(0x216)](_0x54d193(0x241)+_0x22a4d6+_0x54d193(0x1f6),_0x54d193(0x26f),_0x2b0f32);return{'getId':async()=>(await _0x31f933[_0x54d193(0x245)])[_0x54d193(0x22b)](),'abortController':_0x31f933[_0x54d193(0x25d)]};}[_0x1ca519(0x236)](_0x290eb0,_0x3539eb){const _0x41dac1=_0x1ca519,_0xa7ed2=new URLSearchParams();_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x257),_0x41dac1(0x217)),_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x23e),_0x41dac1(0x253)),_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x234),_0x290eb0),_0x3539eb&&_0xa7ed2[_0x41dac1(0x1e7)](_0x41dac1(0x238),_0x3539eb);const _0x4f766b=this[_0x41dac1(0x216)](_0x41dac1(0x21f)+_0xa7ed2[_0x41dac1(0x267)](),_0x41dac1(0x210));return{'getConversations':async()=>{const _0x23d67b=_0x41dac1,_0x3a657b=await _0x4f766b[_0x23d67b(0x245)];return(await _0x3a657b[_0x23d67b(0x22b)]())[_0x23d67b(0x1f1)];},'abortController':_0x4f766b[_0x41dac1(0x25d)]};}[_0x1ca519(0x270)](_0x12bac7){const _0xdbe30d=_0x1ca519,_0x3b8db1=this[_0xdbe30d(0x216)](_0xdbe30d(0x241)+_0x12bac7,_0xdbe30d(0x251));return{'execute':async()=>{const _0x3aaca2=_0xdbe30d;await _0x3b8db1[_0x3aaca2(0x245)];},'abortController':_0x3b8db1[_0xdbe30d(0x25d)]};}[_0x1ca519(0x249)](_0x11656f,_0x4b7caa){const _0x250210=_0x1ca519,_0x3f2c59=this[_0x250210(0x216)](_0x250210(0x241)+_0x11656f,_0x250210(0x1f8),_0x4b7caa);return{'getResult':async()=>(await _0x3f2c59[_0x250210(0x245)],_0x4b7caa),'abortController':_0x3f2c59[_0x250210(0x25d)]};}[_0x1ca519(0x20a)](_0x3a9821){const _0x14864f=_0x1ca519,_0x58bb73=this[_0x14864f(0x216)](_0x14864f(0x241)+_0x3a9821,_0x14864f(0x210));return{'getConversation':async()=>(await _0x58bb73[_0x14864f(0x245)])[_0x14864f(0x22b)](),'abortController':_0x58bb73[_0x14864f(0x25d)]};}[_0x1ca519(0x231)](_0x1fab27){const _0x252a2e=_0x1ca519,_0x23c1f2=this[_0x252a2e(0x216)](_0x252a2e(0x241)+_0x1fab27+_0x252a2e(0x232),_0x252a2e(0x210));return{'getMessages':async()=>{const _0x3089dd=_0x252a2e,_0xcea7=await _0x23c1f2[_0x3089dd(0x245)];return(await _0xcea7[_0x3089dd(0x22b)]())[_0x3089dd(0x1f1)];},'abortController':_0x23c1f2[_0x252a2e(0x25d)]};}[_0x1ca519(0x271)](_0x34329d,_0x54b812,_0x4a7020){const _0x3ac951=_0x1ca519,_0x3dabfd=this[_0x3ac951(0x216)](_0x3ac951(0x241)+_0x34329d+_0x3ac951(0x225),_0x3ac951(0x26f),{'url':_0x54b812,'attributes':_0x4a7020});return{'getId':async()=>(await _0x3dabfd[_0x3ac951(0x245)])[_0x3ac951(0x22b)](),'abortController':_0x3dabfd[_0x3ac951(0x25d)]};}[_0x1ca519(0x22c)](){const _0x21e1f6=_0x1ca519,_0x267c43=this[_0x21e1f6(0x216)](_0x21e1f6(0x24c),_0x21e1f6(0x210));return{'list':async()=>{const _0x78c91b=_0x21e1f6,_0x5a98a7=await(await _0x267c43[_0x78c91b(0x245)])[_0x78c91b(0x22b)](),_0x1aaf05=_0x5a98a7[_0x78c91b(0x1f1)][_0x78c91b(0x21a)](_0x5e833b=>({..._0x5e833b,'description':_0x1a55b9(this[_0x78c91b(0x20b)][_0x78c91b(0x211)],_0x78c91b(0x26d)+_0x5e833b['id'][_0x78c91b(0x25b)]())}));return{..._0x5a98a7,'items':_0x1aaf05};},'abortController':_0x267c43[_0x21e1f6(0x25d)]};}[_0x1ca519(0x273)](_0x490d4f,_0x432469){const _0xd1b35a=_0x1ca519,_0x4679d6=this[_0xd1b35a(0x216)](_0xd1b35a(0x241)+_0x490d4f+_0xd1b35a(0x22e)+_0x432469,_0xd1b35a(0x251));return{'execute':async()=>{const _0x2a2ab3=_0xd1b35a;await _0x4679d6[_0x2a2ab3(0x245)];},'abortController':_0x4679d6[_0xd1b35a(0x25d)]};}[_0x1ca519(0x235)](_0x45b929,_0x21506e){const _0x251d58=_0x1ca519,_0x35c194=this[_0x251d58(0x216)](_0x251d58(0x241)+_0x45b929+_0x251d58(0x237)+_0x21506e,_0x251d58(0x251));return{'execute':async()=>{const _0x30d612=_0x251d58;await _0x35c194[_0x30d612(0x245)];},'abortController':_0x35c194[_0x251d58(0x25d)]};}[_0x1ca519(0x266)](_0x2392a0,_0x52ca25){const _0x2b0590=_0x1ca519,_0x151dfc=this[_0x2b0590(0x216)](_0x2b0590(0x241)+_0x2392a0+_0x2b0590(0x24f)+_0x52ca25,_0x2b0590(0x251));return{'execute':async()=>{const _0x38e9b6=_0x2b0590;await _0x151dfc[_0x38e9b6(0x245)];},'abortController':_0x151dfc[_0x2b0590(0x25d)]};}[_0x1ca519(0x207)]({reviewName:_0x39789b,content:_0x5cc5ac,args:_0x993600}){const _0x3d01d1=_0x1ca519,_0x296d70=this[_0x3d01d1(0x216)](_0x3d01d1(0x269)+_0x39789b+_0x3d01d1(0x26e),_0x3d01d1(0x26f),{'content':[{'type':_0x3d01d1(0x25a),'content':_0x5cc5ac}],'args':_0x993600});return{'getStream':async()=>{const _0x16e966=_0x3d01d1,_0xcf024d=(await _0x296d70[_0x16e966(0x245)])[_0x16e966(0x214)];return this[_0x16e966(0x246)](_0xcf024d);},'abortController':_0x296d70[_0x3d01d1(0x25d)]};}[_0x1ca519(0x1e8)]({content:_0x3aa76c,prompt:_0x339b3c,model:_0x222b1b}){const _0x1b5bac=_0x1ca519,_0x9e9c54=this[_0x1b5bac(0x216)](_0x1b5bac(0x25c),_0x1b5bac(0x26f),{'content':[{'type':_0x1b5bac(0x25a),'content':_0x3aa76c}],'prompt':_0x339b3c,'model':_0x222b1b});return{'getStream':async()=>{const _0x1d1baa=_0x1b5bac,_0x41f1cb=(await _0x9e9c54[_0x1d1baa(0x245)])[_0x1d1baa(0x214)];return this[_0x1d1baa(0x246)](_0x41f1cb);},'abortController':_0x9e9c54[_0x1b5bac(0x25d)]};}[_0x1ca519(0x252)](_0x580943,_0x168fa9,_0x3e992f){const _0x2cd18e=_0x1ca519,_0x1a873c=this[_0x2cd18e(0x216)](_0x2cd18e(0x241)+_0x580943+_0x2cd18e(0x26a)+_0x168fa9+_0x2cd18e(0x244),_0x2cd18e(0x1ec),{'positiveCount':_0x3e992f[_0x2cd18e(0x20e)],'totalCount':_0x3e992f[_0x2cd18e(0x242)]});return{'execute':async()=>{const _0x36931d=_0x2cd18e;await _0x1a873c[_0x36931d(0x245)];},'abortController':_0x1a873c[_0x2cd18e(0x25d)]};}[_0x1ca519(0x1eb)](_0x5b5c1e,_0x4d6a3b,_0x47d89c){const _0x4df6bc=_0x1ca519,_0x2cb3b4=this[_0x4df6bc(0x216)](_0x4df6bc(0x23a)+_0x5b5c1e+_0x4df6bc(0x1f3)+_0x4d6a3b+_0x4df6bc(0x244),_0x4df6bc(0x1ec),{'positiveCount':_0x47d89c[_0x4df6bc(0x20e)],'totalCount':_0x47d89c[_0x4df6bc(0x242)]});return{'execute':async()=>{const _0x27fd16=_0x4df6bc;await _0x2cb3b4[_0x27fd16(0x245)];},'abortController':_0x2cb3b4[_0x4df6bc(0x25d)]};}[_0x1ca519(0x265)](_0x3239db,_0xe4e83b){const _0x43c892=_0x1ca519,_0x5a074d=this[_0x43c892(0x216)](_0x43c892(0x209)+_0x3239db+_0x43c892(0x244),_0x43c892(0x1ec),{'positiveCount':_0xe4e83b[_0x43c892(0x20e)],'totalCount':_0xe4e83b[_0x43c892(0x242)]});return{'execute':async()=>{const _0x49da39=_0x43c892;await _0x5a074d[_0x49da39(0x245)];},'abortController':_0x5a074d[_0x43c892(0x25d)]};}[_0x1ca519(0x25f)](_0x2aabdc,_0x57a962,_0x54a870){const _0x4dc116=_0x1ca519,_0x5533df=this[_0x4dc116(0x216)](_0x4dc116(0x269)+_0x2aabdc+_0x4dc116(0x1f3)+_0x57a962+_0x4dc116(0x244),_0x4dc116(0x1ec),{'positiveCount':_0x54a870[_0x4dc116(0x20e)],'totalCount':_0x54a870[_0x4dc116(0x242)]});return{'execute':async()=>{const _0x4907b8=_0x4dc116;await _0x5533df[_0x4907b8(0x245)];},'abortController':_0x5533df[_0x4dc116(0x25d)]};}[_0x1ca519(0x21b)](_0x547070,_0x25ece7){const _0x12a87b=_0x1ca519,_0x5c7c3e=this[_0x12a87b(0x216)](_0x12a87b(0x23b)+_0x547070+_0x12a87b(0x244),_0x12a87b(0x1ec),{'positiveCount':_0x25ece7[_0x12a87b(0x20e)],'totalCount':_0x25ece7[_0x12a87b(0x242)]});return{'execute':async()=>{const _0x527f3e=_0x12a87b;await _0x5c7c3e[_0x527f3e(0x245)];},'abortController':_0x5c7c3e[_0x12a87b(0x25d)]};}[_0x1ca519(0x216)](_0x377c51,_0x2d054e,_0x3db215){const _0x2084ae=_0x1ca519,_0x3d88f5=new AbortController(),_0x46116e=_0x3db215 instanceof FormData,_0x35b109={'Authorization':_0x2084ae(0x23d)+this[_0x2084ae(0x218)]?.[_0x2084ae(0x1e9)]};_0x3db215&&!_0x46116e&&(_0x35b109[_0x2084ae(0x276)]=_0x2084ae(0x255));const _0x418f37={'method':_0x2d054e,'headers':_0x35b109,'signal':_0x3d88f5[_0x2084ae(0x1f7)]};return _0x3db215&&(_0x418f37[_0x2084ae(0x214)]=_0x46116e?_0x3db215:JSON[_0x2084ae(0x204)](_0x3db215)),{'request':fetch(''+this[_0x2084ae(0x203)]+_0x377c51,_0x418f37)[_0x2084ae(0x240)](_0x47222f=>{const _0x7de4f1=_0x2084ae;this[_0x7de4f1(0x224)](_0x47222f);})[_0x2084ae(0x254)](_0x441672=>{const _0x23f2b7=_0x2084ae;if(!_0x441672['ok'])throw new _0x2debc9(_0x23f2b7(0x201),this,{'url':this[_0x23f2b7(0x203)],'path':_0x377c51,'method':_0x2d054e,'body':_0x3db215,'status':(_0x441672||{})[_0x23f2b7(0x226)],'statusText':(_0x441672||{})[_0x23f2b7(0x1ee)]});return _0x441672;}),'abortController':_0x3d88f5};}async*[_0x1ca519(0x246)](_0xa9ab35){const _0x4b3a4a=_0x1ca519,_0x232e55=[],_0x4a7bfb=_0xa9ab35[_0x4b3a4a(0x24d)](),_0x3d4413=_0x179dfe({'onError':_0xa3538c=>{const _0x1f40cc=_0x4b3a4a;this[_0x1f40cc(0x224)](_0xa3538c);},'onEvent':_0x4867cc=>{const _0x249148=_0x4b3a4a;_0x4867cc[_0x249148(0x219)]=JSON[_0x249148(0x206)](_0x4867cc[_0x249148(0x219)]),_0x232e55[_0x249148(0x1f2)](_0x4867cc);}});try{let _0x5851b2=!0x1;for(;!_0x5851b2;){const {done:_0x148731,value:_0x2ff67b}=await _0x4a7bfb[_0x4b3a4a(0x229)]();_0x148731&&(_0x5851b2=!0x0),_0x3d4413[_0x4b3a4a(0x243)](this[_0x4b3a4a(0x259)][_0x4b3a4a(0x1fd)](_0x2ff67b,{'stream':!0x0})),yield*_0x232e55,_0x232e55[_0x4b3a4a(0x23f)]=0x0;}}catch(_0x2c06c3){this[_0x4b3a4a(0x224)](_0x2c06c3);}finally{_0x4a7bfb[_0x4b3a4a(0x1f5)](),_0x3d4413[_0x4b3a4a(0x22a)]();}}[_0x1ca519(0x224)](_0x5b2f27){const _0x5ef8a0=_0x1ca519;if(_0x5b2f27 instanceof _0x2debc9)throw _0x5b2f27;if(_0x5b2f27 instanceof Error&&_0x5ef8a0(0x22f)===_0x5b2f27[_0x5ef8a0(0x202)])throw new _0x2debc9(_0x5ef8a0(0x1ff),this,{'originalError':_0x5b2f27});throw new _0x2debc9(_0x5ef8a0(0x201),this,{'originalError':_0x5b2f27});}}
23
+ function _0x35b3(_0x5bc12c,_0x5eb589){const _0x2acd1a=_0x2acd();return _0x35b3=function(_0x35b3a7,_0x3e03eb){_0x35b3a7=_0x35b3a7-0x11f;let _0x203719=_0x2acd1a[_0x35b3a7];return _0x203719;},_0x35b3(_0x5bc12c,_0x5eb589);}const _0x120554=_0x35b3;function _0x2acd(){const _0x5a5aa2=['/models/1','feed','get','/calls/','deleteConversation','text','value','/reviews/custom/calls','fetchConversationMessages','/calls','getModels','positiveCount','parse','deleteDocument','MAKE_TONE_FORMAL','_getStreamReader','/conversations/','make-tone-casual','deleteFile','group','AI_MODEL_DESCRIPTION_','812825yAbCrJ','upsertCustomAIActionRating','/web-resources/','DELETE','deleteWebResource','translate','uploadUrl','fetchDocument','isOfficialPlugin','IMPROVE_WRITING','upsertAIActionRating','uploadDocument','keys','ai.serviceUrl','define','/documents','MAKE_LONGER','body','/reviews/system/','_apiUrl','AIConnector','statusText','application/json','MAKE_SHORTER','POST','getReader','toUpperCase','9JaHRjB','fetchConversations','/web-resources','/conversations?','3416LKjqAa','decode','name','MAKE_TONE_CASUAL','make-shorter','updateConversation','upsertAIChatRating','1837452KdaGXo','/messages/','294910fAtKmG','abortController','/reviews/custom/calls/','data','read','reset','append','executeCustomAction','improve-writing','uploadFile','stringify','/actions/custom/calls','push','6209896yQgvTe','catch','executeAction','312PtdEyk','372061wZOVqu','releaseLock','ai-missing-token','/messages','excludeEmpty','GET','file','ai-request-aborted','length','pluginName','/actions/system/','totalCount','token','requires','continue','attributes','/ratings','json','AbortError','status','Bearer\x20','plugins','isPremiumPlugin','callSystemReview','/files/','_handleError','request','/files','items','make-longer','then','search','/actions/custom/calls/','context','locale','1195041YXcmEp','CloudServices','true','callCustomReview','FIX_GRAMMAR','init','limit','ai-request-failed','_token','make-tone-formal','_sendApiRequest','fix-grammar','PATCH','signal','toString','CONTINUE','PUT','startConversation','Content-Type','https://ai.cke-cs.com/v1','upsertCustomAIReviewRating','100','upsertAIReviewRating','/conversations','_decoder','fetchConversation','queryAssistant','/documents/','config','map','TRANSLATE'];_0x2acd=function(){return _0x5a5aa2;};return _0x2acd();}(function(_0x22252e,_0x3fc003){const _0x39f128=_0x35b3,_0x5d328e=_0x22252e();while(!![]){try{const _0x2e85b3=-parseInt(_0x39f128(0x16b))/0x1+parseInt(_0x39f128(0x15a))/0x2+parseInt(_0x39f128(0x18e))/0x3+-parseInt(_0x39f128(0x158))/0x4+-parseInt(_0x39f128(0x132))/0x5+-parseInt(_0x39f128(0x16a))/0x6*(parseInt(_0x39f128(0x151))/0x7)+-parseInt(_0x39f128(0x167))/0x8*(-parseInt(_0x39f128(0x14d))/0x9);if(_0x2e85b3===_0x3fc003)break;else _0x5d328e['push'](_0x5d328e['shift']());}catch(_0x1f1bb5){_0x5d328e['push'](_0x5d328e['shift']());}}}(_0x2acd,0x49e52));import{createParser as _0x7cd71a}from'eventsource-parser';import{ContextPlugin as _0x446766}from'ckeditor5/src/core.js';import{CKEditorError as _0x1a255e}from'ckeditor5/src/utils.js';import{getTranslation as _0x497beb}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x57b8b9){const _0x1203df=_0x35b3;_0x57b8b9[_0x1203df(0x19d)]=_0x1203df(0x179),_0x57b8b9[_0x1203df(0x192)]=_0x1203df(0x199),_0x57b8b9[_0x1203df(0x13b)]=_0x1203df(0x162),_0x57b8b9[_0x1203df(0x142)]=_0x1203df(0x188),_0x57b8b9[_0x1203df(0x149)]=_0x1203df(0x155),_0x57b8b9[_0x1203df(0x154)]=_0x1203df(0x12e),_0x57b8b9[_0x1203df(0x12b)]=_0x1203df(0x197),_0x57b8b9[_0x1203df(0x1ac)]=_0x1203df(0x137);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x446766{[_0x120554(0x145)];[_0x120554(0x196)];[_0x120554(0x1a6)];static get[_0x120554(0x178)](){const _0x4e7aed=_0x120554;return[_0x4e7aed(0x18f)];}static get[_0x120554(0x174)](){const _0x15a932=_0x120554;return _0x15a932(0x146);}static get[_0x120554(0x13a)](){return!0x0;}static get[_0x120554(0x181)](){return!0x0;}constructor(_0x3f7502){const _0x20bab2=_0x120554;super(_0x3f7502),this[_0x20bab2(0x18c)][_0x20bab2(0x1aa)][_0x20bab2(0x140)](_0x20bab2(0x13f),_0x20bab2(0x1a1)),this[_0x20bab2(0x145)]=this[_0x20bab2(0x18c)][_0x20bab2(0x1aa)][_0x20bab2(0x11f)](_0x20bab2(0x13f)),this[_0x20bab2(0x196)]=null,this[_0x20bab2(0x1a6)]=new TextDecoder();}[_0x120554(0x193)](){const _0xd005d6=_0x120554,_0x118f0f=this[_0xd005d6(0x18c)][_0xd005d6(0x180)][_0xd005d6(0x11f)](_0xd005d6(0x18f));if(!_0x118f0f[_0xd005d6(0x177)])throw new _0x1a255e(_0xd005d6(0x16d),this);this[_0xd005d6(0x196)]=_0x118f0f[_0xd005d6(0x177)];}[_0x120554(0x19f)](_0x15f3fe,_0xe00072){const _0xe1ebd3=_0x120554,_0x2e37db=this[_0xe1ebd3(0x198)](_0xe1ebd3(0x1a5),_0xe1ebd3(0x14a),{'id':_0x15f3fe,'group':_0xe00072});return{'getConversation':async()=>(await _0x2e37db[_0xe1ebd3(0x185)])[_0xe1ebd3(0x17c)](),'abortController':_0x2e37db[_0xe1ebd3(0x15b)]};}[_0x120554(0x1a8)]({message:_0x2ed30d,conversationId:_0x26398f,parts:_0xeb958e,capabilities:_0x219f2a,model:_0x183b3a,quickActionData:_0x43e367}){const _0x54af22=_0x120554,_0x5ea979={..._0x43e367&&{'quickActionData':_0x43e367}},_0x11a739={'prompt':_0x2ed30d,'content':_0xeb958e,'model':_0x183b3a,..._0x219f2a&&{'capabilities':_0x219f2a},...Object[_0x54af22(0x13e)](_0x5ea979)[_0x54af22(0x173)]>0x0&&{'attributes':_0x5ea979}},_0x5b67ad=this[_0x54af22(0x198)](_0x54af22(0x12d)+_0x26398f+_0x54af22(0x16e),_0x54af22(0x14a),_0x11a739);return{'getStream':async()=>{const _0x13130e=_0x54af22,_0x372f5e=(await _0x5b67ad[_0x13130e(0x185)])[_0x13130e(0x143)];return this[_0x13130e(0x12c)](_0x372f5e);},'abortController':_0x5b67ad[_0x54af22(0x15b)]};}[_0x120554(0x161)]({content:_0x233de8,message:_0x5d65cd,model:_0x5dc1ec,outputFormat:_0xd0b220}){const _0x374aaf=_0x120554,_0x2141f3={'content':[{'type':_0x374aaf(0x122),'content':_0x233de8}],'prompt':_0x5d65cd,'model':_0x5dc1ec,'outputFormat':_0xd0b220},_0x22cede=this[_0x374aaf(0x198)](_0x374aaf(0x165),_0x374aaf(0x14a),_0x2141f3);return{'getStream':async()=>{const _0x100f73=_0x374aaf,_0x198dea=(await _0x22cede[_0x100f73(0x185)])[_0x100f73(0x143)];return this[_0x100f73(0x12c)](_0x198dea);},'abortController':_0x22cede[_0x374aaf(0x15b)]};}[_0x120554(0x169)]({actionName:_0x56c0a5,content:_0x19d510,args:_0x11b0f0}){const _0x41d50c=_0x120554,_0x507b1e={'content':[{'type':_0x41d50c(0x122),'content':_0x19d510}],'args':_0x11b0f0},_0x40cc4a=this[_0x41d50c(0x198)](_0x41d50c(0x175)+_0x56c0a5+_0x41d50c(0x126),_0x41d50c(0x14a),_0x507b1e);return{'getStream':async()=>{const _0x115d6e=_0x41d50c,_0x330f37=(await _0x40cc4a[_0x115d6e(0x185)])[_0x115d6e(0x143)];return this[_0x115d6e(0x12c)](_0x330f37);},'abortController':_0x40cc4a[_0x41d50c(0x15b)]};}[_0x120554(0x163)](_0x49262c,_0x4da871,_0x287b44){const _0x3cc62c=_0x120554,_0x213a54=new FormData();_0x213a54[_0x3cc62c(0x160)](_0x3cc62c(0x171),_0x4da871,_0x4da871[_0x3cc62c(0x153)]),_0x287b44&&_0x213a54[_0x3cc62c(0x160)](_0x3cc62c(0x17a),JSON[_0x3cc62c(0x164)](_0x287b44));const _0x2e3bd5=this[_0x3cc62c(0x198)](_0x3cc62c(0x12d)+_0x49262c+_0x3cc62c(0x186),_0x3cc62c(0x14a),_0x213a54);return{'getId':async()=>(await _0x2e3bd5[_0x3cc62c(0x185)])[_0x3cc62c(0x17c)](),'abortController':_0x2e3bd5[_0x3cc62c(0x15b)]};}[_0x120554(0x139)](_0x523f20,_0x26dabf){const _0x8aa46a=_0x120554,_0x2912f8=this[_0x8aa46a(0x198)](_0x8aa46a(0x12d)+_0x523f20+_0x8aa46a(0x1a9)+_0x26dabf,_0x8aa46a(0x170));return{'getDocument':async()=>(await _0x2912f8[_0x8aa46a(0x185)])[_0x8aa46a(0x17c)](),'abortController':_0x2912f8[_0x8aa46a(0x15b)]};}[_0x120554(0x13d)](_0x229300,_0x118324,_0x35be1b){const _0x33263b=_0x120554,_0x34cecb={'content':_0x118324};_0x35be1b&&(_0x34cecb[_0x33263b(0x17a)]=_0x35be1b);const _0x8f5bdc=this[_0x33263b(0x198)](_0x33263b(0x12d)+_0x229300+_0x33263b(0x141),_0x33263b(0x14a),_0x34cecb);return{'getId':async()=>(await _0x8f5bdc[_0x33263b(0x185)])[_0x33263b(0x17c)](),'abortController':_0x8f5bdc[_0x33263b(0x15b)]};}[_0x120554(0x14e)](_0x37f951,_0x4786a2){const _0x3b2407=_0x120554,_0x6aeba4=new URLSearchParams();_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x16f),_0x3b2407(0x190)),_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x194),_0x3b2407(0x1a3)),_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x130),_0x37f951),_0x4786a2&&_0x6aeba4[_0x3b2407(0x160)](_0x3b2407(0x18a),_0x4786a2);const _0x151d0e=this[_0x3b2407(0x198)](_0x3b2407(0x150)+_0x6aeba4[_0x3b2407(0x19c)](),_0x3b2407(0x170));return{'getConversations':async()=>{const _0x30d298=_0x3b2407,_0x3f7d53=await _0x151d0e[_0x30d298(0x185)];return(await _0x3f7d53[_0x30d298(0x17c)]())[_0x30d298(0x187)];},'abortController':_0x151d0e[_0x3b2407(0x15b)]};}[_0x120554(0x121)](_0x49aaef){const _0x3da3eb=_0x120554,_0x39b78c=this[_0x3da3eb(0x198)](_0x3da3eb(0x12d)+_0x49aaef,_0x3da3eb(0x135));return{'execute':async()=>{const _0x5387ec=_0x3da3eb;await _0x39b78c[_0x5387ec(0x185)];},'abortController':_0x39b78c[_0x3da3eb(0x15b)]};}[_0x120554(0x156)](_0x546f5e,_0x55d6e0){const _0x443307=_0x120554,_0x507585=this[_0x443307(0x198)](_0x443307(0x12d)+_0x546f5e,_0x443307(0x19a),_0x55d6e0);return{'getResult':async()=>(await _0x507585[_0x443307(0x185)],_0x55d6e0),'abortController':_0x507585[_0x443307(0x15b)]};}[_0x120554(0x1a7)](_0x547e6b){const _0x517d2f=_0x120554,_0x363183=this[_0x517d2f(0x198)](_0x517d2f(0x12d)+_0x547e6b,_0x517d2f(0x170));return{'getConversation':async()=>(await _0x363183[_0x517d2f(0x185)])[_0x517d2f(0x17c)](),'abortController':_0x363183[_0x517d2f(0x15b)]};}[_0x120554(0x125)](_0x430565){const _0x2a9fa3=_0x120554,_0x40c062=this[_0x2a9fa3(0x198)](_0x2a9fa3(0x12d)+_0x430565+_0x2a9fa3(0x16e),_0x2a9fa3(0x170));return{'getMessages':async()=>{const _0x3ef901=_0x2a9fa3,_0x495c16=await _0x40c062[_0x3ef901(0x185)];return(await _0x495c16[_0x3ef901(0x17c)]())[_0x3ef901(0x187)];},'abortController':_0x40c062[_0x2a9fa3(0x15b)]};}[_0x120554(0x138)](_0x121666,_0x227c0c,_0x5ca780){const _0x392202=_0x120554,_0x1cc9a2=this[_0x392202(0x198)](_0x392202(0x12d)+_0x121666+_0x392202(0x14f),_0x392202(0x14a),{'url':_0x227c0c,'attributes':_0x5ca780});return{'getId':async()=>(await _0x1cc9a2[_0x392202(0x185)])[_0x392202(0x17c)](),'abortController':_0x1cc9a2[_0x392202(0x15b)]};}[_0x120554(0x127)](){const _0x3dd6e9=_0x120554,_0x3dbdfb=this[_0x3dd6e9(0x198)](_0x3dd6e9(0x1ad),_0x3dd6e9(0x170));return{'list':async()=>{const _0x3382d8=_0x3dd6e9,_0x1daf52=await(await _0x3dbdfb[_0x3382d8(0x185)])[_0x3382d8(0x17c)](),_0x46f292=_0x1daf52[_0x3382d8(0x187)][_0x3382d8(0x1ab)](_0x31f375=>({..._0x31f375,'description':_0x497beb(this[_0x3382d8(0x18c)][_0x3382d8(0x18d)],_0x3382d8(0x131)+_0x31f375['id'][_0x3382d8(0x14c)]())}));return{..._0x1daf52,'items':_0x46f292};},'abortController':_0x3dbdfb[_0x3dd6e9(0x15b)]};}[_0x120554(0x12f)](_0x1d5d10,_0xad41a8){const _0x3aab7e=_0x120554,_0x1a3990=this[_0x3aab7e(0x198)](_0x3aab7e(0x12d)+_0x1d5d10+_0x3aab7e(0x183)+_0xad41a8,_0x3aab7e(0x135));return{'execute':async()=>{const _0x302b0d=_0x3aab7e;await _0x1a3990[_0x302b0d(0x185)];},'abortController':_0x1a3990[_0x3aab7e(0x15b)]};}[_0x120554(0x12a)](_0x57fa67,_0x2da0fd){const _0x5980bd=_0x120554,_0x468a66=this[_0x5980bd(0x198)](_0x5980bd(0x12d)+_0x57fa67+_0x5980bd(0x1a9)+_0x2da0fd,_0x5980bd(0x135));return{'execute':async()=>{const _0x44dbbf=_0x5980bd;await _0x468a66[_0x44dbbf(0x185)];},'abortController':_0x468a66[_0x5980bd(0x15b)]};}[_0x120554(0x136)](_0x9e9cad,_0xff8ef7){const _0x50cafc=_0x120554,_0x49f416=this[_0x50cafc(0x198)](_0x50cafc(0x12d)+_0x9e9cad+_0x50cafc(0x134)+_0xff8ef7,_0x50cafc(0x135));return{'execute':async()=>{const _0x267b2f=_0x50cafc;await _0x49f416[_0x267b2f(0x185)];},'abortController':_0x49f416[_0x50cafc(0x15b)]};}[_0x120554(0x182)]({reviewName:_0x501b63,content:_0x172aed,args:_0x5a2ad4}){const _0x108799=_0x120554,_0x44eb5e=this[_0x108799(0x198)](_0x108799(0x144)+_0x501b63+_0x108799(0x126),_0x108799(0x14a),{'content':[{'type':_0x108799(0x122),'content':_0x172aed}],'args':_0x5a2ad4});return{'getStream':async()=>{const _0x4e2c90=_0x108799,_0xc4f1a1=(await _0x44eb5e[_0x4e2c90(0x185)])[_0x4e2c90(0x143)];return this[_0x4e2c90(0x12c)](_0xc4f1a1);},'abortController':_0x44eb5e[_0x108799(0x15b)]};}[_0x120554(0x191)]({content:_0x1e7ebd,prompt:_0x4e1b37,model:_0xfd95c0}){const _0x49647b=_0x120554,_0x3cb392=this[_0x49647b(0x198)](_0x49647b(0x124),_0x49647b(0x14a),{'content':[{'type':_0x49647b(0x122),'content':_0x1e7ebd}],'prompt':_0x4e1b37,'model':_0xfd95c0});return{'getStream':async()=>{const _0x39aa32=_0x49647b,_0x4ac1ec=(await _0x3cb392[_0x39aa32(0x185)])[_0x39aa32(0x143)];return this[_0x39aa32(0x12c)](_0x4ac1ec);},'abortController':_0x3cb392[_0x49647b(0x15b)]};}[_0x120554(0x157)](_0x263178,_0x2bed54,_0x158a4e){const _0x5e8826=_0x120554,_0x573a14=this[_0x5e8826(0x198)](_0x5e8826(0x12d)+_0x263178+_0x5e8826(0x159)+_0x2bed54+_0x5e8826(0x17b),_0x5e8826(0x19e),{'positiveCount':_0x158a4e[_0x5e8826(0x128)],'totalCount':_0x158a4e[_0x5e8826(0x176)]});return{'execute':async()=>{const _0x5ba091=_0x5e8826;await _0x573a14[_0x5ba091(0x185)];},'abortController':_0x573a14[_0x5e8826(0x15b)]};}[_0x120554(0x13c)](_0x2aed7a,_0x9df94c,_0x58dce9){const _0x23b4ee=_0x120554,_0x4a51bd=this[_0x23b4ee(0x198)](_0x23b4ee(0x175)+_0x2aed7a+_0x23b4ee(0x120)+_0x9df94c+_0x23b4ee(0x17b),_0x23b4ee(0x19e),{'positiveCount':_0x58dce9[_0x23b4ee(0x128)],'totalCount':_0x58dce9[_0x23b4ee(0x176)]});return{'execute':async()=>{const _0x10cf55=_0x23b4ee;await _0x4a51bd[_0x10cf55(0x185)];},'abortController':_0x4a51bd[_0x23b4ee(0x15b)]};}[_0x120554(0x133)](_0x28a0ba,_0x47edd9){const _0x4602c7=_0x120554,_0x97f6a0=this[_0x4602c7(0x198)](_0x4602c7(0x18b)+_0x28a0ba+_0x4602c7(0x17b),_0x4602c7(0x19e),{'positiveCount':_0x47edd9[_0x4602c7(0x128)],'totalCount':_0x47edd9[_0x4602c7(0x176)]});return{'execute':async()=>{const _0x8c5b0a=_0x4602c7;await _0x97f6a0[_0x8c5b0a(0x185)];},'abortController':_0x97f6a0[_0x4602c7(0x15b)]};}[_0x120554(0x1a4)](_0x1a5364,_0x4006bf,_0x451d26,_0x314a15){const _0x12e5ba=_0x120554,_0x1a312f=this[_0x12e5ba(0x198)](_0x12e5ba(0x144)+_0x1a5364+_0x12e5ba(0x120)+_0x4006bf+_0x12e5ba(0x17b),_0x12e5ba(0x19e),{'positiveCount':_0x451d26[_0x12e5ba(0x128)],'totalCount':_0x451d26[_0x12e5ba(0x176)],'dataId':_0x314a15});return{'execute':async()=>{const _0x2bc581=_0x12e5ba;await _0x1a312f[_0x2bc581(0x185)];},'abortController':_0x1a312f[_0x12e5ba(0x15b)]};}[_0x120554(0x1a2)](_0xf42089,_0x35d5a6,_0x552e21){const _0x49b2e3=_0x120554,_0x325630=this[_0x49b2e3(0x198)](_0x49b2e3(0x15c)+_0xf42089+_0x49b2e3(0x17b),_0x49b2e3(0x19e),{'positiveCount':_0x35d5a6[_0x49b2e3(0x128)],'totalCount':_0x35d5a6[_0x49b2e3(0x176)],'dataId':_0x552e21});return{'execute':async()=>{const _0x598650=_0x49b2e3;await _0x325630[_0x598650(0x185)];},'abortController':_0x325630[_0x49b2e3(0x15b)]};}[_0x120554(0x198)](_0x1f584e,_0x3f4121,_0x5d545e){const _0x273db7=_0x120554,_0x33bebb=new AbortController(),_0x351001=_0x5d545e instanceof FormData,_0x11c545={'Authorization':_0x273db7(0x17f)+this[_0x273db7(0x196)]?.[_0x273db7(0x123)]};_0x5d545e&&!_0x351001&&(_0x11c545[_0x273db7(0x1a0)]=_0x273db7(0x148));const _0x208819={'method':_0x3f4121,'headers':_0x11c545,'signal':_0x33bebb[_0x273db7(0x19b)]};return _0x5d545e&&(_0x208819[_0x273db7(0x143)]=_0x351001?_0x5d545e:JSON[_0x273db7(0x164)](_0x5d545e)),{'request':fetch(''+this[_0x273db7(0x145)]+_0x1f584e,_0x208819)[_0x273db7(0x168)](_0x5d8037=>{const _0x361e8e=_0x273db7;this[_0x361e8e(0x184)](_0x5d8037);})[_0x273db7(0x189)](_0x29e8d0=>{const _0x2ba7fe=_0x273db7;if(!_0x29e8d0['ok'])throw new _0x1a255e(_0x2ba7fe(0x195),this,{'url':this[_0x2ba7fe(0x145)],'path':_0x1f584e,'method':_0x3f4121,'body':_0x5d545e,'status':(_0x29e8d0||{})[_0x2ba7fe(0x17e)],'statusText':(_0x29e8d0||{})[_0x2ba7fe(0x147)]});return _0x29e8d0;}),'abortController':_0x33bebb};}async*[_0x120554(0x12c)](_0x406c3f){const _0x5b6b91=_0x120554,_0x48ac85=[],_0x38c3ca=_0x406c3f[_0x5b6b91(0x14b)](),_0x4af997=_0x7cd71a({'onError':_0x2fec7d=>{const _0x106059=_0x5b6b91;this[_0x106059(0x184)](_0x2fec7d);},'onEvent':_0x3b858d=>{const _0x21281f=_0x5b6b91;_0x3b858d[_0x21281f(0x15d)]=JSON[_0x21281f(0x129)](_0x3b858d[_0x21281f(0x15d)]),_0x48ac85[_0x21281f(0x166)](_0x3b858d);}});try{let _0x5b2472=!0x1;for(;!_0x5b2472;){const {done:_0x49d801,value:_0x39219d}=await _0x38c3ca[_0x5b6b91(0x15e)]();_0x49d801&&(_0x5b2472=!0x0),_0x4af997[_0x5b6b91(0x1ae)](this[_0x5b6b91(0x1a6)][_0x5b6b91(0x152)](_0x39219d,{'stream':!0x0})),yield*_0x48ac85,_0x48ac85[_0x5b6b91(0x173)]=0x0;}}catch(_0x261f02){this[_0x5b6b91(0x184)](_0x261f02);}finally{_0x38c3ca[_0x5b6b91(0x16c)](),_0x4af997[_0x5b6b91(0x15f)]();}}[_0x120554(0x184)](_0x251593){const _0x2e2e36=_0x120554;if(_0x251593 instanceof _0x1a255e)throw _0x251593;if(_0x251593 instanceof Error&&_0x2e2e36(0x17d)===_0x251593[_0x2e2e36(0x153)])throw new _0x1a255e(_0x2e2e36(0x172),this,{'originalError':_0x251593});throw new _0x1a255e(_0x2e2e36(0x195),this,{'originalError':_0x251593});}}
@@ -4,7 +4,6 @@
4
4
  */
5
5
  /**
6
6
  * @module ai/aicore/aiediting
7
- * @publicApi
8
7
  */
9
8
  import { type ModelRange, type ViewDocumentFragment, type ModelDocumentFragment } from 'ckeditor5/src/engine.js';
10
9
  import { ContextPlugin } from 'ckeditor5/src/core.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4183c7=_0x1246;function _0x3a57(){const _0x19b56b=['end',':start>','_setDataIdsOnChildren','view','plugins','push','data','start','_displayedFakeSelectionLocked','getChildren','ai-selection','editing','conversion','isBefore','element','ck-fake-ai-selection','context','random','ck-ai-assistant-ui_theme','hideFakeVisualSelection','ai-selection:','_nextDataId','name','95543VefoiN','getSelection','fromCharCode','_displayedFakeSelectionId','isContent','getLastMatchingPosition','data-id','RealTimeCollaborationClient','isPremiumPlugin','454148rkdpwH','getRoot','containerElement','ready','$textProxy','sessionId','createUIElement',':start></','modelToViewWithIds','document','9530KMmeai','368PyOTWD','1432416GidPhR','length','_getMarkersInDocumentOrder','isAtEnd','floor','495978uWNahc','dataDowncast','editingDowncast','removeMarker','join','isOpening','pluginName','selection','listenTo','getSelectionText','markerToElement','getStart','setAttribute','emptyElement','for','1249428hVxegU','markerName','getMarkersGroup','model','add','showFakeVisualSelection','addMarker','createRangeIn','AIEditing','toData','_integrateEditor','schema',':end></','isOfficialPlugin','_sessionId','getWalker','isAfter','removeAllRanges','indexOf','sort','getSelectedContent','processor','change',':end>','editors','get','convertAiChatSelectionMarker','toView','createRange','trim','from','version','763392IFHGWC','has','substring','afterInit','markerToHighlight','markers','getDocumentData'];_0x3a57=function(){return _0x19b56b;};return _0x3a57();}(function(_0x453add,_0x3bfeb4){const _0x5f376d=_0x1246,_0x55f4fd=_0x453add();while(!![]){try{const _0x3c2e75=-parseInt(_0x5f376d(0x11a))/0x1+-parseInt(_0x5f376d(0x123))/0x2+parseInt(_0x5f376d(0xfc))/0x3+-parseInt(_0x5f376d(0x12e))/0x4*(-parseInt(_0x5f376d(0x12d))/0x5)+-parseInt(_0x5f376d(0x143))/0x6+parseInt(_0x5f376d(0x134))/0x7+parseInt(_0x5f376d(0x12f))/0x8;if(_0x3c2e75===_0x3bfeb4)break;else _0x55f4fd['push'](_0x55f4fd['shift']());}catch(_0x152a18){_0x55f4fd['push'](_0x55f4fd['shift']());}}}(_0x3a57,0x24583));function _0x1246(_0x281c8c,_0x48cf3a){const _0x3a5715=_0x3a57();return _0x1246=function(_0x1246fa,_0x4aa217){_0x1246fa=_0x1246fa-0xe8;let _0x425ec1=_0x3a5715[_0x1246fa];return _0x425ec1;},_0x1246(_0x281c8c,_0x48cf3a);}import{ViewDowncastWriter as _0x16ae4f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1ae342,Editor as _0x486066}from'ckeditor5/src/core.js';import{uid as _0x1ffdf}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x535ba5}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4183c7(0x10d);export class AIEditing extends _0x1ae342{[_0x4183c7(0x11d)]=null;[_0x4183c7(0x10b)]=!0x1;[_0x4183c7(0xea)];static get[_0x4183c7(0x13a)](){const _0x4dc730=_0x4183c7;return _0x4dc730(0x14b);}static get[_0x4183c7(0xe9)](){return!0x0;}static get[_0x4183c7(0x122)](){return!0x0;}get[_0x4183c7(0x128)](){const _0x272ff6=_0x4183c7;if(!this[_0x272ff6(0xea)]){const _0x387f89=_0x535ba5(this[_0x272ff6(0x113)]),_0x4a0988=_0x387f89[_0x272ff6(0x107)][_0x272ff6(0xfd)](_0x272ff6(0x121))&&_0x387f89[_0x272ff6(0x107)][_0x272ff6(0xf5)](_0x272ff6(0x121))[_0x272ff6(0x128)];this[_0x272ff6(0xea)]=_0x4a0988||_0x1ffdf();}return this[_0x272ff6(0xea)];}[_0x4183c7(0x102)](){const _0xf34335=_0x4183c7,_0x3981f9=_0x535ba5(this[_0xf34335(0x113)]),_0x390dae=_0x3981f9[_0xf34335(0x146)],_0x1f845d=_0x3981f9[_0xf34335(0x109)][_0xf34335(0xf7)](_0x390dae[_0xf34335(0x12c)][_0xf34335(0x124)](),{'convertAiChatSelectionMarker':!0x0}),_0x205aa0=new _0x16ae4f(_0x3981f9[_0xf34335(0x10e)][_0xf34335(0x106)][_0xf34335(0x12c)]);this[_0xf34335(0x105)](_0x1f845d,_0x205aa0);let _0x3ad2ea=_0x3981f9[_0xf34335(0x109)][_0xf34335(0xf1)][_0xf34335(0x14c)](_0x1f845d);const _0x1bb8ef=this[_0xf34335(0x131)](),_0x3cfedb=[];for(const _0x2c4c53 of _0x1bb8ef){const _0x22eb75='<'+_0x2c4c53[_0xf34335(0x119)]+_0xf34335(0x12a)+_0x2c4c53[_0xf34335(0x119)]+_0xf34335(0x104),_0x3eb3ba=_0x3ad2ea[_0xf34335(0xee)](_0x22eb75);_0x3ad2ea=_0x3ad2ea[_0xf34335(0xfe)](0x0,_0x3eb3ba)+_0x3ad2ea[_0xf34335(0xfe)](_0x3eb3ba+_0x22eb75[_0xf34335(0x130)]);const _0x21ce97='<'+_0x2c4c53[_0xf34335(0x119)]+_0xf34335(0xe8)+_0x2c4c53[_0xf34335(0x119)]+_0xf34335(0xf3),_0x36e2da=_0x3ad2ea[_0xf34335(0xee)](_0x21ce97);_0x3ad2ea=_0x3ad2ea[_0xf34335(0xfe)](0x0,_0x36e2da)+_0x3ad2ea[_0xf34335(0xfe)](_0x36e2da+_0x21ce97[_0xf34335(0x130)]),_0x3cfedb[_0xf34335(0x108)]({'markerName':_0x2c4c53[_0xf34335(0x119)],'start':_0x3eb3ba,'end':_0x36e2da,'htmlFragment':_0x3ad2ea[_0xf34335(0xfe)](_0x3eb3ba,_0x36e2da)});}return{'content':_0x3ad2ea,'version':_0x3981f9[_0xf34335(0x146)][_0xf34335(0x12c)][_0xf34335(0xfb)],'sessionId':this[_0xf34335(0x128)],'selections':_0x3cfedb};}async[_0x4183c7(0xff)](){const _0x8afd55=_0x4183c7;this[_0x8afd55(0x113)]instanceof _0x486066?this[_0x8afd55(0x14d)](this[_0x8afd55(0x113)]):this[_0x8afd55(0x13c)](this[_0x8afd55(0x113)][_0x8afd55(0xf4)],_0x8afd55(0x147),(_0x3bb71a,_0x3cfd6f)=>{const _0x21295f=_0x8afd55;_0x3cfd6f['on'](_0x21295f(0x126),()=>{const _0x1e867a=_0x21295f;this[_0x1e867a(0x14d)](_0x3cfd6f);});});}[_0x4183c7(0x14d)](_0x40d8dd){const _0x179afb=_0x4183c7;_0x40d8dd[_0x179afb(0x10f)][_0x179afb(0x142)](_0x179afb(0x136))[_0x179afb(0x100)]({'model':_0x179afb(0x10d),'view':{'classes':[_0x179afb(0x112),_0x179afb(0x115)],'priority':0xc}}),_0x40d8dd[_0x179afb(0x10f)][_0x179afb(0x142)](_0x179afb(0x135))[_0x179afb(0x13e)]({'model':_0x179afb(0x10d),'view':(_0x5ec91d,{writer:_0x40d030,options:_0x570f69})=>_0x570f69[_0x179afb(0xf6)]?_0x40d030[_0x179afb(0x129)](_0x5ec91d[_0x179afb(0x144)]+':'+(_0x5ec91d[_0x179afb(0x139)]?_0x179afb(0x10a):_0x179afb(0x103))):null});}[_0x4183c7(0x148)](_0x1d56b1,_0x33e541,_0x2e1344=!0x1,_0x39bcb4=!0x1){const _0xae7d48=_0x4183c7;if(this[_0xae7d48(0x10b)]&&!_0x39bcb4)return!0x1;this[_0xae7d48(0x11d)]&&this[_0xae7d48(0x116)](this[_0xae7d48(0x11d)]),this[_0xae7d48(0x11d)]=_0x33e541,this[_0xae7d48(0x10b)]=_0x2e1344;const _0x2fbad2=_0x535ba5(this[_0xae7d48(0x113)])[_0xae7d48(0x146)];return _0x2fbad2[_0xae7d48(0xf2)](_0x1444ed=>{const _0x2f6865=_0xae7d48;let _0x31fa1f=0x0;for(let _0xee2177 of _0x1d56b1){const _0x48fbcc=_0x2f6865(0x117)+_0x31fa1f;if(_0xee2177[_0x2f6865(0x10a)][_0x2f6865(0x132)]){const _0x4b38ce=_0xee2177[_0x2f6865(0x10a)][_0x2f6865(0x11f)](({item:_0x10023a})=>!_0x2fbad2[_0x2f6865(0x14e)][_0x2f6865(0x11e)](_0x10023a),{'boundaries':_0xee2177});_0xee2177=_0x1444ed[_0x2f6865(0xf8)](_0x4b38ce,_0xee2177[_0x2f6865(0x103)]);}_0x1444ed[_0x2f6865(0x149)](_0x48fbcc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xee2177}),_0x31fa1f++;}}),window[_0xae7d48(0x11b)]()?.[_0xae7d48(0xed)](),!0x0;}[_0x4183c7(0x116)](_0x1fbc9c){const _0x539a9a=_0x4183c7;if(this[_0x539a9a(0x11d)]!=_0x1fbc9c)return!0x1;this[_0x539a9a(0x11d)]=null,this[_0x539a9a(0x10b)]=!0x1;const _0x34e7f5=_0x535ba5(this[_0x539a9a(0x113)]),_0x5c3984=_0x34e7f5[_0x539a9a(0x146)][_0x539a9a(0x101)][_0x539a9a(0x145)](_0x539a9a(0x10d));return _0x34e7f5[_0x539a9a(0x146)][_0x539a9a(0xf2)](_0x3642cf=>{const _0x2f7d47=_0x539a9a;for(const _0x59cdc7 of _0x5c3984)_0x3642cf[_0x2f7d47(0x137)](_0x59cdc7);}),!0x0;}[_0x4183c7(0x12b)](_0x53aa04){const _0xec27c1=_0x4183c7,_0x2764ff=_0x535ba5(this[_0xec27c1(0x113)]),_0x205878=_0x2764ff[_0xec27c1(0x109)][_0xec27c1(0xf7)](_0x53aa04),_0x3b93ff=new _0x16ae4f(_0x2764ff[_0xec27c1(0x10e)][_0xec27c1(0x106)][_0xec27c1(0x12c)]);return this[_0xec27c1(0x105)](_0x205878,_0x3b93ff),_0x205878;}[_0x4183c7(0x105)](_0x1b1bd0,_0xc306bc){const _0x724795=_0x4183c7;let _0x2f07ab=!0x1;const _0x28b018=new Set();for(const _0x3ec406 of _0x1b1bd0[_0x724795(0x10c)]()){const _0x548204=_0x3ec406['is'](_0x724795(0x141))||_0x3ec406['is'](_0x724795(0x125));if(!_0x3ec406['is'](_0x724795(0x111)))continue;(this[_0x724795(0x105)](_0x3ec406,_0xc306bc)||_0x548204)&&(_0xc306bc[_0x724795(0x140)](_0x724795(0x120),this[_0x724795(0x118)](_0x28b018),_0x3ec406),_0x2f07ab=!0x0);}return _0x2f07ab;}[_0x4183c7(0x118)](_0x41a691){const _0x29a1dc=_0x4183c7;let _0x5262ad;do{_0x5262ad='';for(let _0x20b454=0x0;_0x20b454<0x4;_0x20b454++)_0x5262ad+=String[_0x29a1dc(0x11c)](0x61+Math[_0x29a1dc(0x133)](0x1a*Math[_0x29a1dc(0x114)]()));}while(_0x41a691[_0x29a1dc(0xfd)](_0x5262ad));return _0x41a691[_0x29a1dc(0x147)](_0x5262ad),_0x5262ad;}[_0x4183c7(0x13d)](){const _0x197e6f=_0x4183c7,{model:_0x3a63bb}=_0x535ba5(this[_0x197e6f(0x113)]),_0xf6d04f=_0x3a63bb[_0x197e6f(0x12c)][_0x197e6f(0x13b)],_0x590c5a=_0x3a63bb[_0x197e6f(0xf0)](_0xf6d04f),_0x5392dc=[],_0x1ce648=_0x3a63bb[_0x197e6f(0x14a)](_0x590c5a)[_0x197e6f(0xeb)]();for(const {item:_0x4ff63e}of _0x1ce648)_0x4ff63e['is'](_0x197e6f(0x127))?_0x5392dc[_0x197e6f(0x108)](_0x4ff63e[_0x197e6f(0x109)]):_0x4ff63e['is'](_0x197e6f(0x111))&&_0x5392dc[_0x197e6f(0x130)]>0x0&&'\x20'!==_0x5392dc[_0x5392dc[_0x197e6f(0x130)]-0x1]&&_0x5392dc[_0x197e6f(0x108)]('\x20');return'\x22'+_0x5392dc[_0x197e6f(0x138)]('')[_0x197e6f(0xf9)]()+'\x22';}[_0x4183c7(0x131)](){const _0x3eb670=_0x4183c7,_0x31fad2=_0x535ba5(this[_0x3eb670(0x113)])[_0x3eb670(0x146)];return Array[_0x3eb670(0xfa)](_0x31fad2[_0x3eb670(0x101)][_0x3eb670(0x145)](_0x3eb670(0x10d)))[_0x3eb670(0xef)]((_0x45b58c,_0x23ccd8)=>_0x45b58c[_0x3eb670(0x13f)]()[_0x3eb670(0x110)](_0x23ccd8[_0x3eb670(0x13f)]())?-0x1:_0x45b58c[_0x3eb670(0x13f)]()[_0x3eb670(0xec)](_0x23ccd8[_0x3eb670(0x13f)]())?0x1:0x0);}}
23
+ function _0x4481(_0x7ac8a5,_0x494465){const _0x161862=_0x1618();return _0x4481=function(_0x448173,_0x4d9060){_0x448173=_0x448173-0x72;let _0x21f096=_0x161862[_0x448173];return _0x21f096;},_0x4481(_0x7ac8a5,_0x494465);}const _0x533f74=_0x4481;function _0x1618(){const _0x30e638=['_nextDataId','AIEditing','random','element','toData','removeMarker',':start>','_getMarkersInDocumentOrder','1592872yUATkt','2534590BNODuo','convertAiChatSelectionMarker','setAttribute','end','conversion','isOpening','915021lFRVOP','removeAllRanges','_setDataIdsOnChildren','addMarker','156eEtJQc','context','for','editing','data','sessionId','ck-ai-assistant-ui_theme','RealTimeCollaborationClient','$textProxy','showFakeVisualSelection','sort','269UoaGcq','_displayedFakeSelectionId','selection','ai-selection','model','trim','schema','_sessionId','change','getSelectionText','markers','floor','pluginName','containerElement','markerToElement','7TrJhHC','770624GAMaZz','isAtEnd','data-id','name','dataDowncast','processor','isBefore','createRange','substring','ready','document','toView',':end>','from','hideFakeVisualSelection','getStart','view','getLastMatchingPosition','isOfficialPlugin',':start></','listenTo',':end></','isAfter','length','getSelectedContent','push','afterInit','get','getChildren','indexOf','getMarkersGroup','editingDowncast','isPremiumPlugin','markerName','ai-selection:','getWalker','version','join','getRoot','isContent','fromCharCode','167871tKvHQd','getSelection','markerToHighlight','25595CQWnfj','getDocumentData','ck-fake-ai-selection','has','plugins','createRangeIn','2578swLwsU','modelToViewWithIds','emptyElement','_integrateEditor','createUIElement','add','editors','start','_displayedFakeSelectionLocked'];_0x1618=function(){return _0x30e638;};return _0x1618();}(function(_0x533a7f,_0x5d240d){const _0x32abce=_0x4481,_0x3fb94d=_0x533a7f();while(!![]){try{const _0x57c7d4=-parseInt(_0x32abce(0x73))/0x1*(-parseInt(_0x32abce(0xb5))/0x2)+-parseInt(_0x32abce(0xac))/0x3+-parseInt(_0x32abce(0x83))/0x4+-parseInt(_0x32abce(0xaf))/0x5*(-parseInt(_0x32abce(0xd1))/0x6)+-parseInt(_0x32abce(0x82))/0x7*(parseInt(_0x32abce(0xc6))/0x8)+-parseInt(_0x32abce(0xcd))/0x9+parseInt(_0x32abce(0xc7))/0xa;if(_0x57c7d4===_0x5d240d)break;else _0x3fb94d['push'](_0x3fb94d['shift']());}catch(_0x537dd4){_0x3fb94d['push'](_0x3fb94d['shift']());}}}(_0x1618,0x2ce5f));import{ViewDowncastWriter as _0x5bacd0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x201996,Editor as _0x324cf1}from'ckeditor5/src/core.js';import{uid as _0x287166}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x24aa4a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x533f74(0x76);export class AIEditing extends _0x201996{[_0x533f74(0x74)]=null;[_0x533f74(0xbd)]=!0x1;[_0x533f74(0x7a)];static get[_0x533f74(0x7f)](){const _0xe1c41=_0x533f74;return _0xe1c41(0xbf);}static get[_0x533f74(0x95)](){return!0x0;}static get[_0x533f74(0xa3)](){return!0x0;}get[_0x533f74(0xd6)](){const _0x1b2432=_0x533f74;if(!this[_0x1b2432(0x7a)]){const _0x455bd1=_0x24aa4a(this[_0x1b2432(0xd2)]),_0x1f4979=_0x455bd1[_0x1b2432(0xb3)][_0x1b2432(0xb2)](_0x1b2432(0xd8))&&_0x455bd1[_0x1b2432(0xb3)][_0x1b2432(0x9e)](_0x1b2432(0xd8))[_0x1b2432(0xd6)];this[_0x1b2432(0x7a)]=_0x1f4979||_0x287166();}return this[_0x1b2432(0x7a)];}[_0x533f74(0xb0)](){const _0x48eddf=_0x533f74,_0x2765b4=_0x24aa4a(this[_0x48eddf(0xd2)]),_0x20fc4a=_0x2765b4[_0x48eddf(0x77)],_0x4b4ef4=_0x2765b4[_0x48eddf(0xd5)][_0x48eddf(0x8e)](_0x20fc4a[_0x48eddf(0x8d)][_0x48eddf(0xa9)](),{'convertAiChatSelectionMarker':!0x0}),_0x3cba78=new _0x5bacd0(_0x2765b4[_0x48eddf(0xd4)][_0x48eddf(0x93)][_0x48eddf(0x8d)]);this[_0x48eddf(0xcf)](_0x4b4ef4,_0x3cba78);let _0x1d0812=_0x2765b4[_0x48eddf(0xd5)][_0x48eddf(0x88)][_0x48eddf(0xc2)](_0x4b4ef4);const _0x23b4f5=this[_0x48eddf(0xc5)](),_0x2193bc=[];for(const _0x41d0b5 of _0x23b4f5){const _0x1c4917='<'+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x96)+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0xc4),_0x2577f2=_0x1d0812[_0x48eddf(0xa0)](_0x1c4917);_0x1d0812=_0x1d0812[_0x48eddf(0x8b)](0x0,_0x2577f2)+_0x1d0812[_0x48eddf(0x8b)](_0x2577f2+_0x1c4917[_0x48eddf(0x9a)]);const _0x50482a='<'+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x98)+_0x41d0b5[_0x48eddf(0x86)]+_0x48eddf(0x8f),_0x57b22a=_0x1d0812[_0x48eddf(0xa0)](_0x50482a);_0x1d0812=_0x1d0812[_0x48eddf(0x8b)](0x0,_0x57b22a)+_0x1d0812[_0x48eddf(0x8b)](_0x57b22a+_0x50482a[_0x48eddf(0x9a)]),_0x2193bc[_0x48eddf(0x9c)]({'markerName':_0x41d0b5[_0x48eddf(0x86)],'start':_0x2577f2,'end':_0x57b22a,'htmlFragment':_0x1d0812[_0x48eddf(0x8b)](_0x2577f2,_0x57b22a)});}return{'content':_0x1d0812,'version':_0x2765b4[_0x48eddf(0x77)][_0x48eddf(0x8d)][_0x48eddf(0xa7)],'sessionId':this[_0x48eddf(0xd6)],'selections':_0x2193bc};}async[_0x533f74(0x9d)](){const _0x46d191=_0x533f74;this[_0x46d191(0xd2)]instanceof _0x324cf1?this[_0x46d191(0xb8)](this[_0x46d191(0xd2)]):this[_0x46d191(0x97)](this[_0x46d191(0xd2)][_0x46d191(0xbb)],_0x46d191(0xba),(_0x1e62ea,_0x1ce078)=>{const _0x543274=_0x46d191;_0x1ce078['on'](_0x543274(0x8c),()=>{const _0x26cecc=_0x543274;this[_0x26cecc(0xb8)](_0x1ce078);});});}[_0x533f74(0xb8)](_0x174b83){const _0x1cfc35=_0x533f74;_0x174b83[_0x1cfc35(0xcb)][_0x1cfc35(0xd3)](_0x1cfc35(0xa2))[_0x1cfc35(0xae)]({'model':_0x1cfc35(0x76),'view':{'classes':[_0x1cfc35(0xb1),_0x1cfc35(0xd7)],'priority':0xc}}),_0x174b83[_0x1cfc35(0xcb)][_0x1cfc35(0xd3)](_0x1cfc35(0x87))[_0x1cfc35(0x81)]({'model':_0x1cfc35(0x76),'view':(_0x27af94,{writer:_0xdefce6,options:_0x108524})=>_0x108524[_0x1cfc35(0xc8)]?_0xdefce6[_0x1cfc35(0xb9)](_0x27af94[_0x1cfc35(0xa4)]+':'+(_0x27af94[_0x1cfc35(0xcc)]?_0x1cfc35(0xbc):_0x1cfc35(0xca))):null});}[_0x533f74(0xda)](_0x2aa30c,_0x155748,_0x15bef8=!0x1,_0x396453=!0x1){const _0x435ae7=_0x533f74;if(this[_0x435ae7(0xbd)]&&!_0x396453)return!0x1;this[_0x435ae7(0x74)]&&this[_0x435ae7(0x91)](this[_0x435ae7(0x74)]),this[_0x435ae7(0x74)]=_0x155748,this[_0x435ae7(0xbd)]=_0x15bef8;const _0x582ba5=_0x24aa4a(this[_0x435ae7(0xd2)])[_0x435ae7(0x77)];return _0x582ba5[_0x435ae7(0x7b)](_0x36a31c=>{const _0x258a7c=_0x435ae7;let _0x13937c=0x0;for(let _0x31ac24 of _0x2aa30c){const _0x111eb6=_0x258a7c(0xa5)+_0x13937c;if(_0x31ac24[_0x258a7c(0xbc)][_0x258a7c(0x84)]){const _0xf81731=_0x31ac24[_0x258a7c(0xbc)][_0x258a7c(0x94)](({item:_0x299a52})=>!_0x582ba5[_0x258a7c(0x79)][_0x258a7c(0xaa)](_0x299a52),{'boundaries':_0x31ac24});_0x31ac24=_0x36a31c[_0x258a7c(0x8a)](_0xf81731,_0x31ac24[_0x258a7c(0xca)]);}_0x36a31c[_0x258a7c(0xd0)](_0x111eb6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x31ac24}),_0x13937c++;}}),window[_0x435ae7(0xad)]()?.[_0x435ae7(0xce)](),!0x0;}[_0x533f74(0x91)](_0x12d392){const _0x23aebe=_0x533f74;if(this[_0x23aebe(0x74)]!=_0x12d392)return!0x1;this[_0x23aebe(0x74)]=null,this[_0x23aebe(0xbd)]=!0x1;const _0xe0956f=_0x24aa4a(this[_0x23aebe(0xd2)]),_0x2d87a0=_0xe0956f[_0x23aebe(0x77)][_0x23aebe(0x7d)][_0x23aebe(0xa1)](_0x23aebe(0x76));return _0xe0956f[_0x23aebe(0x77)][_0x23aebe(0x7b)](_0x33e345=>{const _0x10bcbb=_0x23aebe;for(const _0x4704bc of _0x2d87a0)_0x33e345[_0x10bcbb(0xc3)](_0x4704bc);}),!0x0;}[_0x533f74(0xb6)](_0x5466dc){const _0x2566d9=_0x533f74,_0x470f79=_0x24aa4a(this[_0x2566d9(0xd2)]),_0x144f84=_0x470f79[_0x2566d9(0xd5)][_0x2566d9(0x8e)](_0x5466dc),_0x197883=new _0x5bacd0(_0x470f79[_0x2566d9(0xd4)][_0x2566d9(0x93)][_0x2566d9(0x8d)]);return this[_0x2566d9(0xcf)](_0x144f84,_0x197883),_0x144f84;}[_0x533f74(0xcf)](_0x681490,_0x3c903c){const _0x264755=_0x533f74;let _0x1acfb4=!0x1;const _0x1165fc=new Set();for(const _0x518b88 of _0x681490[_0x264755(0x9f)]()){const _0x4bd453=_0x518b88['is'](_0x264755(0xb7))||_0x518b88['is'](_0x264755(0x80));if(!_0x518b88['is'](_0x264755(0xc1)))continue;(this[_0x264755(0xcf)](_0x518b88,_0x3c903c)||_0x4bd453)&&(_0x3c903c[_0x264755(0xc9)](_0x264755(0x85),this[_0x264755(0xbe)](_0x1165fc),_0x518b88),_0x1acfb4=!0x0);}return _0x1acfb4;}[_0x533f74(0xbe)](_0x3b5ffe){const _0x25ae27=_0x533f74;let _0x14cea9;do{_0x14cea9='';for(let _0x59d0f9=0x0;_0x59d0f9<0x4;_0x59d0f9++)_0x14cea9+=String[_0x25ae27(0xab)](0x61+Math[_0x25ae27(0x7e)](0x1a*Math[_0x25ae27(0xc0)]()));}while(_0x3b5ffe[_0x25ae27(0xb2)](_0x14cea9));return _0x3b5ffe[_0x25ae27(0xba)](_0x14cea9),_0x14cea9;}[_0x533f74(0x7c)](){const _0x470f2a=_0x533f74,{model:_0x7487d9}=_0x24aa4a(this[_0x470f2a(0xd2)]),_0x2ba20a=_0x7487d9[_0x470f2a(0x8d)][_0x470f2a(0x75)],_0x5eb634=_0x7487d9[_0x470f2a(0x9b)](_0x2ba20a),_0x25c79c=[],_0x551719=_0x7487d9[_0x470f2a(0xb4)](_0x5eb634)[_0x470f2a(0xa6)]();for(const {item:_0xc4ed9b}of _0x551719)_0xc4ed9b['is'](_0x470f2a(0xd9))?_0x25c79c[_0x470f2a(0x9c)](_0xc4ed9b[_0x470f2a(0xd5)]):_0xc4ed9b['is'](_0x470f2a(0xc1))&&_0x25c79c[_0x470f2a(0x9a)]>0x0&&'\x20'!==_0x25c79c[_0x25c79c[_0x470f2a(0x9a)]-0x1]&&_0x25c79c[_0x470f2a(0x9c)]('\x20');return'\x22'+_0x25c79c[_0x470f2a(0xa8)]('')[_0x470f2a(0x78)]()+'\x22';}[_0x533f74(0xc5)](){const _0x1813f4=_0x533f74,_0x131ee=_0x24aa4a(this[_0x1813f4(0xd2)])[_0x1813f4(0x77)];return Array[_0x1813f4(0x90)](_0x131ee[_0x1813f4(0x7d)][_0x1813f4(0xa1)](_0x1813f4(0x76)))[_0x1813f4(0x72)]((_0x113c92,_0x35cd5b)=>_0x113c92[_0x1813f4(0x92)]()[_0x1813f4(0x89)](_0x35cd5b[_0x1813f4(0x92)]())?-0x1:_0x113c92[_0x1813f4(0x92)]()[_0x1813f4(0x99)](_0x35cd5b[_0x1813f4(0x92)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ab61f=_0x15f4;function _0x58a3(){const _0x5dce76=['_isReasoningEnabled','reset','reasoning','getCapabilitiesRequestData','webSearch','toggleWebSearch','fire','9JIVbNJ','isWebSearchEnabled','capabilitiesUpdated','setWebSearch','42AkAJCo','4378336oFpFUq','isReasoningEnabled','1016840xZaMfS','1147430FojDHO','toggleReasoning','setReasoning','2470482DTGMaq','12808UVEugs','getCapabilitiesConfig','_isWebSearchEnabled','79456zjlJAq','100565EBdMfF','init','132xxKorG'];_0x58a3=function(){return _0x5dce76;};return _0x58a3();}(function(_0x50baba,_0x42fbe1){const _0x835698=_0x15f4,_0x4cec03=_0x50baba();while(!![]){try{const _0x44b136=parseInt(_0x835698(0x127))/0x1+-parseInt(_0x835698(0x124))/0x2*(-parseInt(_0x835698(0x12a))/0x3)+-parseInt(_0x835698(0x11f))/0x4+-parseInt(_0x835698(0x128))/0x5*(parseInt(_0x835698(0x11c))/0x6)+-parseInt(_0x835698(0x123))/0x7+parseInt(_0x835698(0x11d))/0x8+-parseInt(_0x835698(0x118))/0x9*(-parseInt(_0x835698(0x120))/0xa);if(_0x44b136===_0x42fbe1)break;else _0x4cec03['push'](_0x4cec03['shift']());}catch(_0x112899){_0x4cec03['push'](_0x4cec03['shift']());}}}(_0x58a3,0x4338c));function _0x15f4(_0x32ac71,_0x59c8c2){const _0x58a388=_0x58a3();return _0x15f4=function(_0x15f46c,_0x2d53f4){_0x15f46c=_0x15f46c-0x114;let _0x4cc6b6=_0x58a388[_0x15f46c];return _0x4cc6b6;},_0x15f4(_0x32ac71,_0x59c8c2);}import{EmitterMixin as _0x59d89a}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3ab61f(0x11a)];export class AICapabilities extends _0x59d89a(){[_0x3ab61f(0x126)];[_0x3ab61f(0x12b)];constructor(){const _0x58f939=_0x3ab61f;super(),this[_0x58f939(0x126)]=!0x1,this[_0x58f939(0x12b)]=!0x1;}[_0x3ab61f(0x129)](){const _0x5ba865=_0x3ab61f;this[_0x5ba865(0x12c)]();}[_0x3ab61f(0x12c)](){const _0x1fba3f=_0x3ab61f;this[_0x1fba3f(0x11b)](!0x1),this[_0x1fba3f(0x122)](!0x1);}[_0x3ab61f(0x125)](){const _0x3a8fe3=_0x3ab61f;return{'isWebSearchEnabled':this[_0x3a8fe3(0x126)],'isReasoningEnabled':this[_0x3a8fe3(0x12b)]};}static[_0x3ab61f(0x114)](_0x5bc23c){const _0x39a9a1=_0x3ab61f,_0x44e0d9={};return _0x5bc23c&&_0x5bc23c[_0x39a9a1(0x119)]&&(_0x44e0d9[_0x39a9a1(0x115)]={}),_0x5bc23c&&_0x5bc23c[_0x39a9a1(0x11e)]&&(_0x44e0d9[_0x39a9a1(0x12d)]={}),_0x44e0d9;}[_0x3ab61f(0x116)](){const _0x25aa36=_0x3ab61f;this[_0x25aa36(0x11b)](!this[_0x25aa36(0x126)]);}[_0x3ab61f(0x121)](){const _0xba29f3=_0x3ab61f;this[_0xba29f3(0x122)](!this[_0xba29f3(0x12b)]);}[_0x3ab61f(0x11b)](_0xe738a9){const _0x404d1c=_0x3ab61f;_0xe738a9!==this[_0x404d1c(0x126)]&&(this[_0x404d1c(0x126)]=_0xe738a9,this[_0x404d1c(0x117)](_0x404d1c(0x11a),this[_0x404d1c(0x125)]()));}[_0x3ab61f(0x122)](_0x23b0ce){const _0x43febd=_0x3ab61f;_0x23b0ce!==this[_0x43febd(0x12b)]&&(this[_0x43febd(0x12b)]=_0x23b0ce,this[_0x43febd(0x117)](_0x43febd(0x11a),this[_0x43febd(0x125)]()));}}
23
+ const _0x36c9ac=_0x1ede;(function(_0xaa5dbf,_0x963296){const _0x4767ca=_0x1ede,_0x5d73e4=_0xaa5dbf();while(!![]){try{const _0x248195=-parseInt(_0x4767ca(0xda))/0x1+parseInt(_0x4767ca(0xe8))/0x2+-parseInt(_0x4767ca(0xe7))/0x3+parseInt(_0x4767ca(0xe6))/0x4*(-parseInt(_0x4767ca(0xe0))/0x5)+parseInt(_0x4767ca(0xd4))/0x6*(-parseInt(_0x4767ca(0xd8))/0x7)+parseInt(_0x4767ca(0xec))/0x8+-parseInt(_0x4767ca(0xdb))/0x9*(-parseInt(_0x4767ca(0xea))/0xa);if(_0x248195===_0x963296)break;else _0x5d73e4['push'](_0x5d73e4['shift']());}catch(_0x3effa2){_0x5d73e4['push'](_0x5d73e4['shift']());}}}(_0x2479,0xe949a));import{EmitterMixin as _0x463745}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x36c9ac(0xde)];function _0x2479(){const _0x3da6cd=['reasoning','130TLZAsb','webSearch','3723088nhIQzu','toggleReasoning','126BLjuqI','getCapabilitiesRequestData','toggleWebSearch','getCapabilitiesConfig','236243lDMfrO','init','51514SFLleP','1266327SOEPBU','setReasoning','fire','capabilitiesUpdated','_isReasoningEnabled','5smxLGm','isWebSearchEnabled','setWebSearch','isReasoningEnabled','reset','_isWebSearchEnabled','3648236gQLRgr','4136394KFLWlM','3424242XoMWvR'];_0x2479=function(){return _0x3da6cd;};return _0x2479();}function _0x1ede(_0x34e83b,_0x2b9541){const _0x2479e0=_0x2479();return _0x1ede=function(_0x1edeb2,_0x3917ec){_0x1edeb2=_0x1edeb2-0xd4;let _0x35a978=_0x2479e0[_0x1edeb2];return _0x35a978;},_0x1ede(_0x34e83b,_0x2b9541);}export class AICapabilities extends _0x463745(){[_0x36c9ac(0xe5)];[_0x36c9ac(0xdf)];constructor(){const _0x5e6a0c=_0x36c9ac;super(),this[_0x5e6a0c(0xe5)]=!0x1,this[_0x5e6a0c(0xdf)]=!0x1;}[_0x36c9ac(0xd9)](){const _0x390615=_0x36c9ac;this[_0x390615(0xe4)]();}[_0x36c9ac(0xe4)](){const _0x3e9834=_0x36c9ac;this[_0x3e9834(0xe2)](!0x1),this[_0x3e9834(0xdc)](!0x1);}[_0x36c9ac(0xd7)](){const _0x3e30a9=_0x36c9ac;return{'isWebSearchEnabled':this[_0x3e30a9(0xe5)],'isReasoningEnabled':this[_0x3e30a9(0xdf)]};}static[_0x36c9ac(0xd5)](_0xb03ec5){const _0x113ba3=_0x36c9ac,_0x13b244={};return _0xb03ec5&&_0xb03ec5[_0x113ba3(0xe1)]&&(_0x13b244[_0x113ba3(0xeb)]={}),_0xb03ec5&&_0xb03ec5[_0x113ba3(0xe3)]&&(_0x13b244[_0x113ba3(0xe9)]={}),_0x13b244;}[_0x36c9ac(0xd6)](){const _0x1b0ace=_0x36c9ac;this[_0x1b0ace(0xe2)](!this[_0x1b0ace(0xe5)]);}[_0x36c9ac(0xed)](){const _0x47fa67=_0x36c9ac;this[_0x47fa67(0xdc)](!this[_0x47fa67(0xdf)]);}[_0x36c9ac(0xe2)](_0x3c4b1d){const _0x4d6b82=_0x36c9ac;_0x3c4b1d!==this[_0x4d6b82(0xe5)]&&(this[_0x4d6b82(0xe5)]=_0x3c4b1d,this[_0x4d6b82(0xdd)](_0x4d6b82(0xde),this[_0x4d6b82(0xd7)]()));}[_0x36c9ac(0xdc)](_0x1e5de2){const _0x416567=_0x36c9ac;_0x1e5de2!==this[_0x416567(0xdf)]&&(this[_0x416567(0xdf)]=_0x1e5de2,this[_0x416567(0xdd)](_0x416567(0xde),this[_0x416567(0xd7)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x5e5714,_0x973bb0){var _0x5e40b9=_0x3325,_0x4df101=_0x5e5714();while(!![]){try{var _0x1e3fe3=parseInt(_0x5e40b9(0x197))/0x1*(parseInt(_0x5e40b9(0x190))/0x2)+parseInt(_0x5e40b9(0x195))/0x3*(parseInt(_0x5e40b9(0x192))/0x4)+parseInt(_0x5e40b9(0x18e))/0x5+-parseInt(_0x5e40b9(0x18a))/0x6*(-parseInt(_0x5e40b9(0x199))/0x7)+parseInt(_0x5e40b9(0x188))/0x8+parseInt(_0x5e40b9(0x198))/0x9+-parseInt(_0x5e40b9(0x19a))/0xa;if(_0x1e3fe3===_0x973bb0)break;else _0x4df101['push'](_0x4df101['shift']());}catch(_0x558a36){_0x4df101['push'](_0x4df101['shift']());}}}(_0x29f7,0xcd920));function _0x3325(_0x532ca4,_0x2c3582){var _0x29f7da=_0x29f7();return _0x3325=function(_0x332558,_0x4ff248){_0x332558=_0x332558-0x186;var _0x343ce2=_0x29f7da[_0x332558];return _0x343ce2;},_0x3325(_0x532ca4,_0x2c3582);}function _0x29f7(){var _0xadcea3=['selection','FILE','TEXT','3491745JeNENf','URL','1040362jFriNY','html','4IEWmPC','document','SELECTION','3822495UBmECt','markdown','2ORkpYQ','2473092BcDwSn','21byhATP','42357670qmSGxv','HTML','file','MARKDOWN','text','DOCUMENT','2421104RFiieJ','web-resource','2974962zdMDjz'];_0x29f7=function(){return _0xadcea3;};return _0x29f7();}export var AIContextItemType;!function(_0x4ae26c){var _0x30b1a5=_0x3325;_0x4ae26c[_0x30b1a5(0x18c)]=_0x30b1a5(0x19c),_0x4ae26c[_0x30b1a5(0x187)]=_0x30b1a5(0x193),_0x4ae26c[_0x30b1a5(0x18f)]=_0x30b1a5(0x189),_0x4ae26c[_0x30b1a5(0x18d)]=_0x30b1a5(0x186),_0x4ae26c[_0x30b1a5(0x194)]=_0x30b1a5(0x18b);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x2091c0){var _0x2caa41=_0x3325;_0x2091c0[_0x2caa41(0x18d)]=_0x2caa41(0x186),_0x2091c0[_0x2caa41(0x19d)]=_0x2caa41(0x196),_0x2091c0[_0x2caa41(0x19b)]=_0x2caa41(0x191);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x93babe,_0x11659a){var _0x3aa141=_0x5ead,_0x13a897=_0x93babe();while(!![]){try{var _0xea0e44=-parseInt(_0x3aa141(0x176))/0x1+parseInt(_0x3aa141(0x179))/0x2+parseInt(_0x3aa141(0x16d))/0x3+parseInt(_0x3aa141(0x177))/0x4+-parseInt(_0x3aa141(0x17a))/0x5+-parseInt(_0x3aa141(0x170))/0x6+parseInt(_0x3aa141(0x174))/0x7;if(_0xea0e44===_0x11659a)break;else _0x13a897['push'](_0x13a897['shift']());}catch(_0x557609){_0x13a897['push'](_0x13a897['shift']());}}}(_0x346e,0xe4cc0));function _0x5ead(_0x3a08cf,_0x425bec){var _0x346e7e=_0x346e();return _0x5ead=function(_0x5eade4,_0x36e055){_0x5eade4=_0x5eade4-0x166;var _0x2a127e=_0x346e7e[_0x5eade4];return _0x2a127e;},_0x5ead(_0x3a08cf,_0x425bec);}export var AIContextItemType;!function(_0x1dc259){var _0x336cf4=_0x5ead;_0x1dc259[_0x336cf4(0x167)]=_0x336cf4(0x175),_0x1dc259[_0x336cf4(0x171)]=_0x336cf4(0x178),_0x1dc259[_0x336cf4(0x16e)]=_0x336cf4(0x168),_0x1dc259[_0x336cf4(0x16b)]=_0x336cf4(0x169),_0x1dc259[_0x336cf4(0x172)]=_0x336cf4(0x16a);}(AIContextItemType||(AIContextItemType={}));function _0x346e(){var _0x205a74=['1439972NBXONm','721508EAPkeY','document','2910260uGdmgY','5757820ivPWcf','MARKDOWN','FILE','web-resource','text','selection','TEXT','markdown','2801886Djqzuv','URL','html','5484360lJHKkI','DOCUMENT','SELECTION','HTML','13112953CxvOTd','file'];_0x346e=function(){return _0x205a74;};return _0x346e();}export var AIContextTextResourceType;!function(_0x4bdb59){var _0x39fd61=_0x5ead;_0x4bdb59[_0x39fd61(0x16b)]=_0x39fd61(0x169),_0x4bdb59[_0x39fd61(0x166)]=_0x39fd61(0x16c),_0x4bdb59[_0x39fd61(0x173)]=_0x39fd61(0x16f);}(AIContextTextResourceType||(AIContextTextResourceType={}));