@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.3

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 (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c948c=_0x3b6d;(function(_0x12abdc,_0xa28818){const _0x4c7b01=_0x3b6d,_0x1f2edf=_0x12abdc();while(!![]){try{const _0x4e76be=-parseInt(_0x4c7b01(0x1e8))/0x1*(-parseInt(_0x4c7b01(0x1fa))/0x2)+parseInt(_0x4c7b01(0x20d))/0x3+-parseInt(_0x4c7b01(0x1f0))/0x4*(-parseInt(_0x4c7b01(0x20f))/0x5)+-parseInt(_0x4c7b01(0x1fc))/0x6+-parseInt(_0x4c7b01(0x1f1))/0x7*(-parseInt(_0x4c7b01(0x1f2))/0x8)+parseInt(_0x4c7b01(0x1f9))/0x9*(-parseInt(_0x4c7b01(0x1ef))/0xa)+-parseInt(_0x4c7b01(0x1fd))/0xb;if(_0x4e76be===_0xa28818)break;else _0x1f2edf['push'](_0x1f2edf['shift']());}catch(_0x18db84){_0x1f2edf['push'](_0x1f2edf['shift']());}}}(_0x1546,0x62a3d));import{ContextPlugin as _0x580643}from'ckeditor5/src/core.js';function _0x1546(){const _0x10ee40=['450515aLLsMT','updateItemLoadingState','delegate','openChat','_historyView','isLoading','view','showConversationHistory','4FjcXTt','removeConversation','get','resizeTabs','history','isMaximized','updateHistoryItemsWithCategories','2628290gUoyHw','12nNTPGK','3968027seorMk','8MWkVNu','selectConversation','setIsMaximized','addTab','plugins','setConversationPinned','editConversationTitle','9KPTJeV','113414ClLttA','showError','283992kNspDW','11034826DAquFm','requires','errorMessage','AIChatHistoryUI','locale','hideError','AI_CHAT_HISTORY_HEADING','context','showResizeButton','setLoadingSkeleton','updateItemTitle','AITabs','updateItems','removeHistoryItem','pluginName','isOfficialPlugin','1960074yqwSjc','isPremiumPlugin'];_0x1546=function(){return _0x10ee40;};return _0x1546();}import{AITabs as _0x1630d4}from'../aitabs/aitabs.js';function _0x3b6d(_0x3b4ff0,_0x2addaf){const _0x154695=_0x1546();return _0x3b6d=function(_0x3b6d40,_0x58c2af){_0x3b6d40=_0x3b6d40-0x1e7;let _0x582e3c=_0x154695[_0x3b6d40];return _0x582e3c;},_0x3b6d(_0x3b4ff0,_0x2addaf);}import{IconAIHistory as _0x3ed23a}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x212b72}from'./ui/aichathistoryview.js';import{getTranslation as _0x35ac13}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x5c948c(0x1e7),_0x5c948c(0x1e9),_0x5c948c(0x1f8),_0x5c948c(0x1f7),_0x5c948c(0x1f3),_0x5c948c(0x212),_0x5c948c(0x1eb)];export class AIChatHistoryUI extends _0x580643{static get[_0x5c948c(0x1fe)](){return[_0x1630d4];}[_0x5c948c(0x213)];static get[_0x5c948c(0x20b)](){const _0x9b4838=_0x5c948c;return _0x9b4838(0x200);}static get[_0x5c948c(0x20c)](){return!0x0;}static get[_0x5c948c(0x20e)](){return!0x0;}constructor(_0x2cb1ea){const _0x3e3515=_0x5c948c;super(_0x2cb1ea);const _0x358b62=this[_0x3e3515(0x204)][_0x3e3515(0x1f6)][_0x3e3515(0x1ea)](_0x3e3515(0x208));this[_0x3e3515(0x213)]=new _0x212b72(this[_0x3e3515(0x204)][_0x3e3515(0x201)],_0x358b62[_0x3e3515(0x205)]),this[_0x3e3515(0x213)][_0x3e3515(0x211)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x358b62[_0x3e3515(0x215)][_0x3e3515(0x1f5)]({'id':_0x3e3515(0x1ec),'buttonLabel':_0x35ac13(this[_0x3e3515(0x204)][_0x3e3515(0x201)],_0x3e3515(0x203)),'buttonIcon':_0x3ed23a,'order':0x0,'content':this[_0x3e3515(0x213)]});}[_0x5c948c(0x20a)](_0x5413d3){const _0x4e71f8=_0x5c948c;this[_0x4e71f8(0x213)][_0x4e71f8(0x20a)](_0x5413d3);}[_0x5c948c(0x209)](_0x373df4){const _0x5b9b79=_0x5c948c;this[_0x5b9b79(0x213)][_0x5b9b79(0x1ee)](_0x373df4);}[_0x5c948c(0x207)](_0x221583,_0x1bdd7d){const _0x2a24d9=_0x5c948c;this[_0x2a24d9(0x213)][_0x2a24d9(0x207)](_0x221583,_0x1bdd7d);}[_0x5c948c(0x210)](_0x15d0b4,_0x3a143d,_0x3e383f){const _0x36b5ce=_0x5c948c;this[_0x36b5ce(0x213)][_0x36b5ce(0x210)](_0x15d0b4,_0x3a143d,_0x3e383f);}[_0x5c948c(0x206)](_0xa3beef){const _0x54d301=_0x5c948c;this[_0x54d301(0x213)][_0x54d301(0x214)]=_0xa3beef;}[_0x5c948c(0x1fb)](_0x391d99){const _0x1711aa=_0x5c948c;this[_0x1711aa(0x213)][_0x1711aa(0x1ff)]=_0x391d99;}[_0x5c948c(0x202)](){const _0x315d33=_0x5c948c;this[_0x315d33(0x213)][_0x315d33(0x1ff)]='';}[_0x5c948c(0x1f4)](_0x1945f6){const _0x233612=_0x5c948c;this[_0x233612(0x213)][_0x233612(0x1ed)]=_0x1945f6;}}
23
+ const _0x17c45f=_0x2354;(function(_0x4973e9,_0x359c40){const _0x5279dc=_0x2354,_0x5f2b5d=_0x4973e9();while(!![]){try{const _0x322ada=parseInt(_0x5279dc(0x1d6))/0x1*(-parseInt(_0x5279dc(0x1ea))/0x2)+parseInt(_0x5279dc(0x1cb))/0x3+-parseInt(_0x5279dc(0x1eb))/0x4+-parseInt(_0x5279dc(0x1e5))/0x5*(parseInt(_0x5279dc(0x1cc))/0x6)+parseInt(_0x5279dc(0x1ef))/0x7+-parseInt(_0x5279dc(0x1d0))/0x8*(parseInt(_0x5279dc(0x1c7))/0x9)+parseInt(_0x5279dc(0x1df))/0xa;if(_0x322ada===_0x359c40)break;else _0x5f2b5d['push'](_0x5f2b5d['shift']());}catch(_0x220188){_0x5f2b5d['push'](_0x5f2b5d['shift']());}}}(_0x243d,0x647e6));import{ContextPlugin as _0x7f068b}from'ckeditor5/src/core.js';import{AITabs as _0x3006fe}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3772ff}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x489fe4}from'./ui/aichathistoryview.js';import{getTranslation as _0x24c8dc}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x243d(){const _0x39f381=['updateItemLoadingState','showResizeButton','updateItemTitle','delegate','hideError','errorMessage','removeConversation','_historyView','11369920roZtFK','resizeTabs','setLoadingSkeleton','removeHistoryItem','isMaximized','isPremiumPlugin','30KVDOtJ','get','history','updateHistoryItemsWithCategories','selectConversation','1009846eoGMae','749376QhrscU','AITabs','pluginName','AI_CHAT_HISTORY_HEADING','989191zqPpYb','requires','updateItems','addTab','locale','AIChatHistoryUI','18pPSxKQ','isLoading','openChat','context','1049070YSCVDU','482286TKYpzw','plugins','isOfficialPlugin','editConversationTitle','167280SPXatY','setIsMaximized','view','setConversationPinned','showError','showConversationHistory','1mZaFmF'];_0x243d=function(){return _0x39f381;};return _0x243d();}function _0x2354(_0xadf7de,_0x4f9ed0){const _0x243d18=_0x243d();return _0x2354=function(_0x2354a8,_0x4b319f){_0x2354a8=_0x2354a8-0x1c6;let _0x32a66b=_0x243d18[_0x2354a8];return _0x32a66b;},_0x2354(_0xadf7de,_0x4f9ed0);}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x17c45f(0x1d5),_0x17c45f(0x1dd),_0x17c45f(0x1cf),_0x17c45f(0x1d3),_0x17c45f(0x1e9),_0x17c45f(0x1c9),_0x17c45f(0x1e0)];export class AIChatHistoryUI extends _0x7f068b{static get[_0x17c45f(0x1f0)](){return[_0x3006fe];}[_0x17c45f(0x1de)];static get[_0x17c45f(0x1ed)](){const _0x189c42=_0x17c45f;return _0x189c42(0x1c6);}static get[_0x17c45f(0x1ce)](){return!0x0;}static get[_0x17c45f(0x1e4)](){return!0x0;}constructor(_0x5a58d){const _0x250692=_0x17c45f;super(_0x5a58d);const _0x25ed66=this[_0x250692(0x1ca)][_0x250692(0x1cd)][_0x250692(0x1e6)](_0x250692(0x1ec));this[_0x250692(0x1de)]=new _0x489fe4(this[_0x250692(0x1ca)][_0x250692(0x1f3)],_0x25ed66[_0x250692(0x1d8)]),this[_0x250692(0x1de)][_0x250692(0x1da)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x25ed66[_0x250692(0x1d2)][_0x250692(0x1f2)]({'id':_0x250692(0x1e7),'buttonLabel':_0x24c8dc(this[_0x250692(0x1ca)][_0x250692(0x1f3)],_0x250692(0x1ee)),'buttonIcon':_0x3772ff,'order':0x0,'content':this[_0x250692(0x1de)]});}[_0x17c45f(0x1e2)](_0x2bda5d){const _0xafdb08=_0x17c45f;this[_0xafdb08(0x1de)][_0xafdb08(0x1e2)](_0x2bda5d);}[_0x17c45f(0x1f1)](_0x1b694c){const _0x14e5da=_0x17c45f;this[_0x14e5da(0x1de)][_0x14e5da(0x1e8)](_0x1b694c);}[_0x17c45f(0x1d9)](_0x129e17,_0x1049c0){const _0x20a6e2=_0x17c45f;this[_0x20a6e2(0x1de)][_0x20a6e2(0x1d9)](_0x129e17,_0x1049c0);}[_0x17c45f(0x1d7)](_0x48a7d0,_0x3ec844,_0x381c89){const _0x30fafe=_0x17c45f;this[_0x30fafe(0x1de)][_0x30fafe(0x1d7)](_0x48a7d0,_0x3ec844,_0x381c89);}[_0x17c45f(0x1e1)](_0x3acbb8){const _0x349b13=_0x17c45f;this[_0x349b13(0x1de)][_0x349b13(0x1c8)]=_0x3acbb8;}[_0x17c45f(0x1d4)](_0x4f3d63){const _0x1abbd3=_0x17c45f;this[_0x1abbd3(0x1de)][_0x1abbd3(0x1dc)]=_0x4f3d63;}[_0x17c45f(0x1db)](){const _0x32f3a4=_0x17c45f;this[_0x32f3a4(0x1de)][_0x32f3a4(0x1dc)]='';}[_0x17c45f(0x1d1)](_0x4a9619){const _0x3ac13f=_0x17c45f;this[_0x3ac13f(0x1de)][_0x3ac13f(0x1e3)]=_0x4a9619;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x980075=_0x166d;function _0x166d(_0x1e9529,_0x82c83b){const _0x1ad555=_0x1ad5();return _0x166d=function(_0x166d65,_0x50a9d2){_0x166d65=_0x166d65-0x1ce;let _0x44fc3b=_0x1ad555[_0x166d65];return _0x44fc3b;},_0x166d(_0x1e9529,_0x82c83b);}(function(_0x120141,_0x225023){const _0xf1009c=_0x166d,_0x5207f1=_0x120141();while(!![]){try{const _0x3a559b=-parseInt(_0xf1009c(0x1f7))/0x1+-parseInt(_0xf1009c(0x1d1))/0x2*(-parseInt(_0xf1009c(0x1ef))/0x3)+parseInt(_0xf1009c(0x1e8))/0x4*(parseInt(_0xf1009c(0x1e4))/0x5)+parseInt(_0xf1009c(0x1fe))/0x6*(parseInt(_0xf1009c(0x1d4))/0x7)+parseInt(_0xf1009c(0x1f0))/0x8*(parseInt(_0xf1009c(0x1dc))/0x9)+-parseInt(_0xf1009c(0x1e6))/0xa*(-parseInt(_0xf1009c(0x1f1))/0xb)+-parseInt(_0xf1009c(0x1f4))/0xc*(parseInt(_0xf1009c(0x1da))/0xd);if(_0x3a559b===_0x225023)break;else _0x5207f1['push'](_0x5207f1['shift']());}catch(_0x39525f){_0x5207f1['push'](_0x5207f1['shift']());}}}(_0x1ad5,0xc8877));import{EmitterMixin as _0x4bc932}from'ckeditor5/src/utils.js';function _0x1ad5(){const _0x1f232f=['getFullYear','3527865mVkzhL','updateItemTitle','items','getResult','loadItems','getItems','itemRemoved','getItem','1775hdXuDb','updatePinned','91030sgYZrm','execute','2788glrcZg','updateTitle','removeItem','fire','group','error','fetchConversations','23556mYyvXg','24CNZLZd','1661fkfGNd','updateItemPinned','deleteConversation','12vCxaUk','init','filter','336286qiAkLj','splice','getTime','getMonth','findIndex','pinned','itemsLoaded','402FfpKMj','addItem','map','find','createdAt','258AIsUOj','push','getConversations','53641BMrkvo','connector','from','itemUpdated','getDate','updateConversation','41166047xCzjfc'];_0x1ad5=function(){return _0x1f232f;};return _0x1ad5();}import{AIChatHistoryItem as _0x1c4424}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x4bc932(){[_0x980075(0x1de)]=[];[_0x980075(0x1d5)];[_0x980075(0x1ec)];constructor({connector:_0x44e401,group:_0x2e07ff}){const _0x5becf9=_0x980075;super(),this[_0x5becf9(0x1d5)]=_0x44e401,this[_0x5becf9(0x1ec)]=_0x2e07ff;}async[_0x980075(0x1f5)](){const _0x39d958=_0x980075;try{const _0x36ee15=this[_0x39d958(0x1d5)][_0x39d958(0x1ee)](this[_0x39d958(0x1ec)]),_0x10ebe1=await _0x36ee15[_0x39d958(0x1d3)]();this[_0x39d958(0x1e0)](_0x10ebe1);}catch(_0x3588f6){this[_0x39d958(0x1eb)](_0x39d958(0x1ed),{'error':_0x3588f6,'operation':_0x39d958(0x1f5)});}}[_0x980075(0x1ff)](_0x41e48c){const _0x1bd82b=_0x980075;this[_0x1bd82b(0x1de)][_0x1bd82b(0x1d2)](_0x41e48c);}async[_0x980075(0x1ea)](_0xa3694a){const _0x4117bf=_0x980075,_0x452c30=this[_0x4117bf(0x1de)][_0x4117bf(0x1fb)](_0x320de8=>_0x320de8['id']===_0xa3694a);if(-0x1===_0x452c30)return!0x1;try{return await this[_0x4117bf(0x1d5)][_0x4117bf(0x1f3)](_0xa3694a)[_0x4117bf(0x1e7)](),this[_0x4117bf(0x1de)][_0x4117bf(0x1f8)](_0x452c30,0x1),this[_0x4117bf(0x1eb)](_0x4117bf(0x1e2),{'itemId':_0xa3694a}),!0x0;}catch(_0x1a0e01){return this[_0x4117bf(0x1eb)](_0x4117bf(0x1ed),{'error':_0x1a0e01,'operation':_0x4117bf(0x1ea),'itemId':_0xa3694a}),!0x1;}}[_0x980075(0x1e3)](_0x5ba6a0){const _0x45de20=_0x980075;return this[_0x45de20(0x1de)][_0x45de20(0x1cf)](_0x4f8b82=>_0x4f8b82['id']===_0x5ba6a0);}async[_0x980075(0x1dd)](_0x414a39,_0x1a8657){const _0x3b7ce1=_0x980075,_0x51fbda=this[_0x3b7ce1(0x1e3)](_0x414a39);if(!_0x51fbda)return!0x1;try{return await this[_0x3b7ce1(0x1d5)][_0x3b7ce1(0x1d9)](_0x414a39,{'title':_0x1a8657})[_0x3b7ce1(0x1df)](),_0x51fbda[_0x3b7ce1(0x1e9)](_0x1a8657),this[_0x3b7ce1(0x1eb)](_0x3b7ce1(0x1d7),{'itemId':_0x414a39,'updates':{'title':_0x1a8657}}),!0x0;}catch(_0x1e3842){return this[_0x3b7ce1(0x1eb)](_0x3b7ce1(0x1ed),{'error':_0x1e3842,'operation':_0x3b7ce1(0x1dd),'itemId':_0x414a39}),!0x1;}}async[_0x980075(0x1f2)](_0x53eaac,_0x3cd426){const _0x1b5322=_0x980075,_0x5b5dab=this[_0x1b5322(0x1e3)](_0x53eaac);if(!_0x5b5dab)return!0x1;try{return await this[_0x1b5322(0x1d5)][_0x1b5322(0x1d9)](_0x53eaac,{'pinned':_0x3cd426})[_0x1b5322(0x1df)](),_0x5b5dab[_0x1b5322(0x1e5)](_0x3cd426),this[_0x1b5322(0x1eb)](_0x1b5322(0x1d7),{'itemId':_0x53eaac,'updates':{'pinned':_0x3cd426}}),!0x0;}catch(_0x41e387){return this[_0x1b5322(0x1eb)](_0x1b5322(0x1ed),{'error':_0x41e387,'operation':_0x1b5322(0x1f2),'itemId':_0x53eaac}),!0x1;}}[_0x980075(0x1e0)](_0x32a550){const _0x307b32=_0x980075;try{this[_0x307b32(0x1de)]=[],_0x32a550[_0x307b32(0x1ce)](_0x4d5fb2=>{const _0x39c61b=_0x307b32;this[_0x39c61b(0x1ff)](new _0x1c4424(_0x4d5fb2));}),this[_0x307b32(0x1eb)](_0x307b32(0x1fd),{'items':[...this[_0x307b32(0x1de)]]});}catch(_0x4fc4f4){this[_0x307b32(0x1eb)](_0x307b32(0x1ed),{'error':_0x4fc4f4,'operation':_0x307b32(0x1e0)});}}[_0x980075(0x1e1)](_0x48e114={}){const _0x298270=_0x980075,_0x50ebbc=void 0x0!==_0x48e114[_0x298270(0x1fc)]&&_0x48e114[_0x298270(0x1fc)],_0x3c9db0=_0x48e114[_0x298270(0x1d6)]?new Date(_0x48e114[_0x298270(0x1d6)][_0x298270(0x1db)](),_0x48e114[_0x298270(0x1d6)][_0x298270(0x1fa)](),_0x48e114[_0x298270(0x1d6)][_0x298270(0x1d8)]()):null,_0x1ce580=_0x48e114['to']?new Date(_0x48e114['to'][_0x298270(0x1db)](),_0x48e114['to'][_0x298270(0x1fa)](),_0x48e114['to'][_0x298270(0x1d8)]()):null;return this[_0x298270(0x1de)][_0x298270(0x1f6)](_0x40ea23=>{const _0x260718=_0x298270;if(_0x40ea23[_0x260718(0x1fc)]!==_0x50ebbc)return!0x1;if(_0x1ce580){const _0x4f0903=new Date(_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1db)](),_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1fa)](),_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1d8)]());return _0x3c9db0?_0x3c9db0[_0x260718(0x1f9)]()===_0x1ce580[_0x260718(0x1f9)]()?_0x4f0903[_0x260718(0x1f9)]()===_0x3c9db0[_0x260718(0x1f9)]():_0x4f0903<_0x1ce580&&_0x4f0903>=_0x3c9db0:_0x4f0903<_0x1ce580;}return!0x0;});}}
23
+ function _0x4ece(_0x5ff4d,_0x5701de){const _0x18bd9d=_0x18bd();return _0x4ece=function(_0x4ece90,_0xa58355){_0x4ece90=_0x4ece90-0xf9;let _0x116592=_0x18bd9d[_0x4ece90];return _0x116592;},_0x4ece(_0x5ff4d,_0x5701de);}const _0x44d68c=_0x4ece;(function(_0xf93f3c,_0x33128e){const _0x4a6dca=_0x4ece,_0x180c5d=_0xf93f3c();while(!![]){try{const _0x44aa48=-parseInt(_0x4a6dca(0x126))/0x1*(-parseInt(_0x4a6dca(0x103))/0x2)+parseInt(_0x4a6dca(0x123))/0x3*(-parseInt(_0x4a6dca(0xfa))/0x4)+-parseInt(_0x4a6dca(0x125))/0x5+-parseInt(_0x4a6dca(0x11e))/0x6*(-parseInt(_0x4a6dca(0x124))/0x7)+parseInt(_0x4a6dca(0x108))/0x8*(parseInt(_0x4a6dca(0x127))/0x9)+parseInt(_0x4a6dca(0x111))/0xa+-parseInt(_0x4a6dca(0xfe))/0xb*(parseInt(_0x4a6dca(0x10f))/0xc);if(_0x44aa48===_0x33128e)break;else _0x180c5d['push'](_0x180c5d['shift']());}catch(_0xfa7e73){_0x180c5d['push'](_0x180c5d['shift']());}}}(_0x18bd,0x32241));import{EmitterMixin as _0x420a76}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3bdcbf}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x420a76(){[_0x44d68c(0xff)]=[];[_0x44d68c(0x105)];[_0x44d68c(0x109)];constructor({connector:_0xc48e6c,group:_0x3bb75a}){const _0x3ab1d3=_0x44d68c;super(),this[_0x3ab1d3(0x105)]=_0xc48e6c,this[_0x3ab1d3(0x109)]=_0x3bb75a;}async[_0x44d68c(0xfb)](){const _0xfeae71=_0x44d68c;try{const _0xc1056f=this[_0xfeae71(0x105)][_0xfeae71(0x110)](this[_0xfeae71(0x109)]),_0x57422b=await _0xc1056f[_0xfeae71(0x128)]();this[_0xfeae71(0x121)](_0x57422b);}catch(_0xff0fb3){this[_0xfeae71(0x119)](_0xfeae71(0x116),{'error':_0xff0fb3,'operation':_0xfeae71(0xfb)});}}[_0x44d68c(0x117)](_0x4ed9f6){const _0x1de96f=_0x44d68c;this[_0x1de96f(0xff)][_0x1de96f(0x113)](_0x4ed9f6);}async[_0x44d68c(0xfc)](_0x3b8be0){const _0xb493e2=_0x44d68c,_0x9ab7a7=this[_0xb493e2(0xff)][_0xb493e2(0x120)](_0x675b83=>_0x675b83['id']===_0x3b8be0);if(-0x1===_0x9ab7a7)return!0x1;try{return await this[_0xb493e2(0x105)][_0xb493e2(0x101)](_0x3b8be0)[_0xb493e2(0x100)](),this[_0xb493e2(0xff)][_0xb493e2(0x11d)](_0x9ab7a7,0x1),this[_0xb493e2(0x119)](_0xb493e2(0x10d),{'itemId':_0x3b8be0}),!0x0;}catch(_0x16bf6e){return this[_0xb493e2(0x119)](_0xb493e2(0x116),{'error':_0x16bf6e,'operation':_0xb493e2(0xfc),'itemId':_0x3b8be0}),!0x1;}}[_0x44d68c(0x10c)](_0x3c85a7){const _0x357492=_0x44d68c;return this[_0x357492(0xff)][_0x357492(0x11f)](_0x196129=>_0x196129['id']===_0x3c85a7);}async[_0x44d68c(0x118)](_0x6038a2,_0x187d03){const _0x15701a=_0x44d68c,_0x4d4545=this[_0x15701a(0x10c)](_0x6038a2);if(!_0x4d4545)return!0x1;try{return await this[_0x15701a(0x105)][_0x15701a(0x10e)](_0x6038a2,{'title':_0x187d03})[_0x15701a(0x10b)](),_0x4d4545[_0x15701a(0x11c)](_0x187d03),this[_0x15701a(0x119)](_0x15701a(0x122),{'itemId':_0x6038a2,'updates':{'title':_0x187d03}}),!0x0;}catch(_0x2bebc5){return this[_0x15701a(0x119)](_0x15701a(0x116),{'error':_0x2bebc5,'operation':_0x15701a(0x118),'itemId':_0x6038a2}),!0x1;}}async[_0x44d68c(0x11a)](_0x29c6d9,_0x2333b4){const _0xb00a53=_0x44d68c,_0xc87df6=this[_0xb00a53(0x10c)](_0x29c6d9);if(!_0xc87df6)return!0x1;try{return await this[_0xb00a53(0x105)][_0xb00a53(0x10e)](_0x29c6d9,{'pinned':_0x2333b4})[_0xb00a53(0x10b)](),_0xc87df6[_0xb00a53(0x11b)](_0x2333b4),this[_0xb00a53(0x119)](_0xb00a53(0x122),{'itemId':_0x29c6d9,'updates':{'pinned':_0x2333b4}}),!0x0;}catch(_0x1b27f1){return this[_0xb00a53(0x119)](_0xb00a53(0x116),{'error':_0x1b27f1,'operation':_0xb00a53(0x11a),'itemId':_0x29c6d9}),!0x1;}}[_0x44d68c(0x121)](_0x284265){const _0x4b87ae=_0x44d68c;try{this[_0x4b87ae(0xff)]=[],_0x284265[_0x4b87ae(0x104)](_0x13ad9d=>{const _0x261697=_0x4b87ae;this[_0x261697(0x117)](new _0x3bdcbf(_0x13ad9d));}),this[_0x4b87ae(0x119)](_0x4b87ae(0xfd),{'items':[...this[_0x4b87ae(0xff)]]});}catch(_0x501a88){this[_0x4b87ae(0x119)](_0x4b87ae(0x116),{'error':_0x501a88,'operation':_0x4b87ae(0x121)});}}[_0x44d68c(0x102)](_0x447d73={}){const _0x24d493=_0x44d68c,_0x3da162=void 0x0!==_0x447d73[_0x24d493(0x115)]&&_0x447d73[_0x24d493(0x115)],_0xd8b672=_0x447d73[_0x24d493(0x114)]?new Date(_0x447d73[_0x24d493(0x114)][_0x24d493(0x129)](),_0x447d73[_0x24d493(0x114)][_0x24d493(0xf9)](),_0x447d73[_0x24d493(0x114)][_0x24d493(0x10a)]()):null,_0xd0411d=_0x447d73['to']?new Date(_0x447d73['to'][_0x24d493(0x129)](),_0x447d73['to'][_0x24d493(0xf9)](),_0x447d73['to'][_0x24d493(0x10a)]()):null;return this[_0x24d493(0xff)][_0x24d493(0x112)](_0x52af4e=>{const _0x3b19e5=_0x24d493;if(_0x52af4e[_0x3b19e5(0x115)]!==_0x3da162)return!0x1;if(_0xd0411d){const _0x5c62df=new Date(_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0x129)](),_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0xf9)](),_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0x10a)]());return _0xd8b672?_0xd8b672[_0x3b19e5(0x106)]()===_0xd0411d[_0x3b19e5(0x106)]()?_0x5c62df[_0x3b19e5(0x106)]()===_0xd8b672[_0x3b19e5(0x106)]():_0x5c62df<_0xd0411d&&_0x5c62df>=_0xd8b672:_0x5c62df<_0xd0411d;}return!0x0;});}}function _0x18bd(){const _0xc3ac34=['getItem','itemRemoved','updateConversation','12ACrSBC','fetchConversations','2184090sNHKYa','filter','push','from','pinned','error','addItem','updateItemTitle','fire','updateItemPinned','updatePinned','updateTitle','splice','6dBClsi','find','findIndex','loadItems','itemUpdated','3pniNbz','1121771vPOYfX','1497025tljUIO','107OqkKbP','126783UXpjOQ','getConversations','getFullYear','getMonth','125456JNEuJt','init','removeItem','itemsLoaded','2688037tsFoYB','items','execute','deleteConversation','getItems','6458gdDabt','map','connector','getTime','createdAt','32evNPyd','group','getDate','getResult'];_0x18bd=function(){return _0xc3ac34;};return _0x18bd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x56e1(_0x16e54a,_0x445798){var _0x245ebe=_0x245e();return _0x56e1=function(_0x56e1ef,_0x21aece){_0x56e1ef=_0x56e1ef-0x1a9;var _0x26bced=_0x245ebe[_0x56e1ef];return _0x26bced;},_0x56e1(_0x16e54a,_0x445798);}var _0x42ab6b=_0x56e1;(function(_0x198fd1,_0x3a718d){var _0x2ee93e=_0x56e1,_0x2e7c90=_0x198fd1();while(!![]){try{var _0x1545dd=parseInt(_0x2ee93e(0x1ad))/0x1+-parseInt(_0x2ee93e(0x1aa))/0x2+-parseInt(_0x2ee93e(0x1af))/0x3*(parseInt(_0x2ee93e(0x1ab))/0x4)+parseInt(_0x2ee93e(0x1b1))/0x5+parseInt(_0x2ee93e(0x1b3))/0x6+parseInt(_0x2ee93e(0x1b4))/0x7*(-parseInt(_0x2ee93e(0x1b2))/0x8)+-parseInt(_0x2ee93e(0x1b6))/0x9;if(_0x1545dd===_0x3a718d)break;else _0x2e7c90['push'](_0x2e7c90['shift']());}catch(_0x2adf00){_0x2e7c90['push'](_0x2e7c90['shift']());}}}(_0x245e,0x2c156));function _0x245e(){var _0x15f44c=['3184335MkGTDD','set','createdAt','updatePinned','169702UoCSue','3472NDJaCB','updateTitle','254006uWFWiz','updatedAt','381vUSOOC','title','1215385uKJaOa','7432iyeLTt','1516938iwMkVo','154cbQkcO','pinned'];_0x245e=function(){return _0x15f44c;};return _0x245e();}import{ObservableMixin as _0x340112}from'ckeditor5/src/utils.js';import{escape as _0x45857e}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x340112(){['id'];[_0x42ab6b(0x1b8)];constructor({id:_0xab8567,title:_0x54d040,createdAt:_0x1feafa,updatedAt:_0x47b9cd,pinned:_0x2eb0f5}){var _0x25c2cb=_0x42ab6b;super(),this['id']=_0xab8567,this[_0x25c2cb(0x1b8)]=new Date(_0x1feafa),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1b0),_0x54d040),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1ae),_0x47b9cd?new Date(_0x47b9cd):null),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1b5),_0x2eb0f5||!0x1);}[_0x42ab6b(0x1ac)](_0x41e29e){var _0x2d0cd7=_0x42ab6b;this[_0x2d0cd7(0x1b7)](_0x2d0cd7(0x1b0),_0x45857e(_0x41e29e)),this[_0x2d0cd7(0x1ae)]=new Date();}[_0x42ab6b(0x1a9)](_0x394e4c){var _0x4c7b28=_0x42ab6b;this[_0x4c7b28(0x1b7)](_0x4c7b28(0x1b5),_0x394e4c),this[_0x4c7b28(0x1ae)]=new Date();}}
23
+ var _0x2053a8=_0x3ace;function _0x3ace(_0x19a21e,_0x3c9d42){var _0x54a55b=_0x54a5();return _0x3ace=function(_0x3ace5a,_0x450419){_0x3ace5a=_0x3ace5a-0xf2;var _0x3b7e0c=_0x54a55b[_0x3ace5a];return _0x3b7e0c;},_0x3ace(_0x19a21e,_0x3c9d42);}(function(_0x24c672,_0x668e9d){var _0x212149=_0x3ace,_0x14c2d2=_0x24c672();while(!![]){try{var _0x32a620=-parseInt(_0x212149(0xfc))/0x1*(-parseInt(_0x212149(0x102))/0x2)+-parseInt(_0x212149(0xff))/0x3*(-parseInt(_0x212149(0xf8))/0x4)+parseInt(_0x212149(0xfe))/0x5+-parseInt(_0x212149(0xf4))/0x6+-parseInt(_0x212149(0x101))/0x7*(parseInt(_0x212149(0xf6))/0x8)+parseInt(_0x212149(0xf9))/0x9+-parseInt(_0x212149(0xf7))/0xa;if(_0x32a620===_0x668e9d)break;else _0x14c2d2['push'](_0x14c2d2['shift']());}catch(_0x423092){_0x14c2d2['push'](_0x14c2d2['shift']());}}}(_0x54a5,0x3cd59));import{ObservableMixin as _0x4c5e14}from'ckeditor5/src/utils.js';function _0x54a5(){var _0x31bec2=['2BOGFXG','updatePinned','createdAt','2062302Xzhjlm','title','8424AxniVY','4879050toikqe','1864684pQqKfq','1874736yfnKUw','updateTitle','set','443249GJFhOq','updatedAt','978940LpyyfL','3JajPVX','pinned','1547oboZAD'];_0x54a5=function(){return _0x31bec2;};return _0x54a5();}import{escape as _0x1b5d2f}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x4c5e14(){['id'];[_0x2053a8(0xf3)];constructor({id:_0x569e7b,title:_0x3f0d54,createdAt:_0x1b520f,updatedAt:_0x366b0c,pinned:_0x5dd220}){var _0x19850d=_0x2053a8;super(),this['id']=_0x569e7b,this[_0x19850d(0xf3)]=new Date(_0x1b520f),this[_0x19850d(0xfb)](_0x19850d(0xf5),_0x3f0d54),this[_0x19850d(0xfb)](_0x19850d(0xfd),_0x366b0c?new Date(_0x366b0c):null),this[_0x19850d(0xfb)](_0x19850d(0x100),_0x5dd220||!0x1);}[_0x2053a8(0xfa)](_0x3365b9){var _0x358214=_0x2053a8;this[_0x358214(0xfb)](_0x358214(0xf5),_0x1b5d2f(_0x3365b9)),this[_0x358214(0xfd)]=new Date();}[_0x2053a8(0xf2)](_0x2a106d){var _0x58b37b=_0x2053a8;this[_0x58b37b(0xfb)](_0x58b37b(0x100),_0x2a106d),this[_0x58b37b(0xfd)]=new Date();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3b12(){const _0x442fc5=['execute','children','5714170WKiBow','AI_CHAT_HISTORY_LOADING_REMOVING','then','fire','ck-ai-chat-history__item-actions','click','LOADING_LABELS','set','bind','updateTitle','5391YwFmcA','_createEditInputView','locale','buttonView','selectConversation','ck-ai-chat-history__item-check-container','key','_createCheckView','value','AI_CHAT_HISTORY_EDIT_NAME','match','ck-ai-chat-history__item--active','ck-ai-loader__text','ck-confirm-view-cancel','tiny','Enter','isVisible','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-content','300020iRAKfN','_createSpinnerView','AI_CHAT_HISTORY_CANCEL','4FJzSox','ck-hidden','_createPinButtonView','AI_CHAT_HISTORY_LOADING_PINNING','editConversationTitle','443148moAwua','removeConversation','highlightText','createCollection','8UOcISF','add','addMany','AI_CHAT_HISTORY_REMOVE','isEdit','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_UNPINNING','panelView','edit:cancel','63WlfGMg','actions','text','mainContent','div','withText','_commitEditInputValue','_createMenuDropdownView','setConversationPinned','ck-ai-chat-history__item-check','isOn','AI_CHAT_HISTORY_LOADING_RENAMING','_titleView','updateLoadingState','51798IgrHmn','ck-confirm-view-submit','2200075LQIVdh','ck-ai-chat-history__item','extendTemplate','ck-ai-loader','element','items','ck-ai-chat-history__item-row','clear','string','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-title','238803HLrSwr','bindTemplate','showConfirm','isMatching','pinned','ck-ai-chat-history__item-date','panelPosition','focus','_createAcceptEditButtonView','loadingState','setTemplate','span','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','change:isEdit','listitem','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','label'];_0x3b12=function(){return _0x442fc5;};return _0x3b12();}const _0xf98b64=_0x1060;(function(_0x54d561,_0x32cc7c){const _0x461779=_0x1060,_0x8a5fef=_0x54d561();while(!![]){try{const _0x6324cc=parseInt(_0x461779(0x180))/0x1+parseInt(_0x461779(0x188))/0x2+-parseInt(_0x461779(0x1b0))/0x3+-parseInt(_0x461779(0x183))/0x4*(-parseInt(_0x461779(0x1a5))/0x5)+-parseInt(_0x461779(0x1a3))/0x6*(parseInt(_0x461779(0x195))/0x7)+-parseInt(_0x461779(0x18c))/0x8*(-parseInt(_0x461779(0x1cf))/0x9)+-parseInt(_0x461779(0x1c5))/0xa;if(_0x6324cc===_0x32cc7c)break;else _0x8a5fef['push'](_0x8a5fef['shift']());}catch(_0x1fd7a9){_0x8a5fef['push'](_0x8a5fef['shift']());}}}(_0x3b12,0x39015));import{ListItemView as _0x1a6f75,HighlightedTextView as _0x41f5c0,ButtonView as _0x39c900,ListView as _0x199cb3,IconView as _0x591a5c,createDropdown as _0x248066,InputTextView as _0x18be3d}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5e899e,IconPin as _0x5c8947,IconCheck as _0x334e63,IconCancel as _0x5f5275}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x508adb,ConfirmMixin as _0x2a0975}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xce7a26}from'es-toolkit/compat';import{AISpinnerView as _0x36d757}from'../../aicore/ui/aispinner.js';function _0x1060(_0x2a3608,_0x3e476b){const _0x3b1226=_0x3b12();return _0x1060=function(_0x10602f,_0x98f7ae){_0x10602f=_0x10602f-0x17e;let _0x496b4f=_0x3b1226[_0x10602f];return _0x496b4f;},_0x1060(_0x2a3608,_0x3e476b);}import{getTranslation as _0x16a506}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x2a0975(_0x1a6f75){['id'];static [_0xf98b64(0x1cb)]={'remove':_0xf98b64(0x1c6),'rename':_0xf98b64(0x1a0),'pin':_0xf98b64(0x186),'unpin':_0xf98b64(0x192)};[_0xf98b64(0x196)];[_0xf98b64(0x198)];[_0xf98b64(0x1a1)];constructor(_0x163551,_0x6450f5){const _0x3ec23f=_0xf98b64;super(_0x163551);const _0x1c2251=this[_0x3ec23f(0x1b1)];this[_0x3ec23f(0x1cc)](_0x3ec23f(0x190),!0x1),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1df),!0x0),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1b4),!!_0x6450f5[_0x3ec23f(0x1b4)]),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1b9),null),this['id']=_0x6450f5['id'];const {title:_0x33de2e,createdAt:_0x18af2e,active:_0x102ec4=!0x1}=_0x6450f5;this[_0x3ec23f(0x1a1)]=new _0x41f5c0(),this[_0x3ec23f(0x1a1)][_0x3ec23f(0x197)]=_0x33de2e,this[_0x3ec23f(0x1a1)][_0x3ec23f(0x1a7)]({'attributes':{'class':[_0x3ec23f(0x1af)]}});const _0x214484=this[_0x3ec23f(0x1d6)](),_0x139892=this[_0x3ec23f(0x185)](_0x163551),_0x554acd=this[_0x3ec23f(0x19c)](),_0x5ce52e=this[_0x3ec23f(0x1d0)](_0x163551,_0x33de2e),_0x3768ec=this[_0x3ec23f(0x1b8)](_0x163551,_0x5ce52e),_0x3efd7d=this[_0x3ec23f(0x1c0)](_0x163551,_0x5ce52e);this[_0x3ec23f(0x196)]=this[_0x3ec23f(0x18b)](),this[_0x3ec23f(0x198)]=this[_0x3ec23f(0x18b)](),this[_0x3ec23f(0x198)][_0x3ec23f(0x18d)](this[_0x3ec23f(0x1a1)]),this[_0x3ec23f(0x196)][_0x3ec23f(0x18d)](_0x139892),this[_0x3ec23f(0x196)][_0x3ec23f(0x18d)](_0x554acd),this['on'](_0x3ec23f(0x1be),(_0x549e81,_0x4d63cf,_0x20e5f9)=>{const _0x296bb4=_0x3ec23f;this[_0x296bb4(0x196)][_0x296bb4(0x1ac)](),this[_0x296bb4(0x198)][_0x296bb4(0x1ac)](),_0x20e5f9?(this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x3768ec),this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x3efd7d),this[_0x296bb4(0x198)][_0x296bb4(0x18d)](_0x5ce52e),_0x5ce52e[_0x296bb4(0x1a9)][_0x296bb4(0x1b7)]()):(this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x139892),this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x554acd),this[_0x296bb4(0x198)][_0x296bb4(0x18d)](this[_0x296bb4(0x1a1)]));}),this[_0x3ec23f(0x1ba)]({'tag':'li','attributes':{'class':[_0x3ec23f(0x1a6),_0x102ec4?_0x3ec23f(0x1da):'',_0x1c2251['if'](_0x3ec23f(0x1df),_0x3ec23f(0x184),_0x2aa4a0=>!_0x2aa4a0),_0x1c2251['if'](_0x3ec23f(0x190),_0x3ec23f(0x1bc))],'role':_0x3ec23f(0x1bf)},'children':[{'tag':_0x3ec23f(0x1bb),'attributes':{'class':[_0x3ec23f(0x1d4)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x19e),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x82e316=>!!_0x82e316)]},'children':_0x102ec4?[_0x214484]:[]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1a8),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x54e0a8=>!_0x54e0a8)]},'children':[this[_0x3ec23f(0x181)]()]}]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1ab)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x17f)]},'on':{'click':this[_0x3ec23f(0x1b1)]['to'](_0x3ec23f(0x1ca))},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x191)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1af),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x2e6a00=>!!_0x2e6a00)]},'children':this[_0x3ec23f(0x198)]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1db),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x482d62=>!_0x482d62)]},'children':[{'text':_0x1c2251['to'](_0x3ec23f(0x1b9),_0x2f0fc4=>_0x2f0fc4?_0x16a506(this[_0x3ec23f(0x1d1)],AIChatHistoryListItemView[_0x3ec23f(0x1cb)][_0x2f0fc4]):'')}]}]},{'tag':_0x3ec23f(0x1bb),'attributes':{'class':[_0x3ec23f(0x1b5)]},'children':[_0x18af2e]}]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1c9)]},'children':this[_0x3ec23f(0x196)]}]}]}),this['on'](_0x3ec23f(0x1ca),()=>{const _0x2b7a6c=_0x3ec23f;this[_0x2b7a6c(0x190)]||this[_0x2b7a6c(0x1c8)](_0x2b7a6c(0x1d3),{'id':this['id']});});}[_0xf98b64(0x1ce)](_0x5da3bf){const _0x51da51=_0xf98b64;this[_0x51da51(0x1a1)][_0x51da51(0x197)]=_0xce7a26(_0x5da3bf);}[_0xf98b64(0x1a2)](_0x3f9c16,_0x542d06){const _0x2c7d35=_0xf98b64;this[_0x2c7d35(0x1cc)](_0x2c7d35(0x1b9),_0x542d06?_0x3f9c16:null);}[_0xf98b64(0x1d6)](){const _0xeddd4f=_0xf98b64,_0x567e06=new _0x591a5c();return _0x567e06[_0xeddd4f(0x1cc)]({'content':_0x334e63}),_0x567e06;}[_0xf98b64(0x185)](_0x5aa8ef){const _0x5da79d=_0xf98b64,_0x3ecc4a=new _0x39c900(_0x5aa8ef);return _0x3ecc4a[_0x5da79d(0x1cc)]({'label':_0x16a506(_0x5aa8ef,_0x5da79d(0x17e)),'icon':_0x5c8947,'withText':!0x1,'tooltip':!0x0}),_0x3ecc4a[_0x5da79d(0x1cd)](_0x5da79d(0x19f))['to'](this,_0x5da79d(0x1b4)),_0x3ecc4a['on'](_0x5da79d(0x1c3),()=>{const _0x54831b=_0x5da79d,_0x384016=!this[_0x54831b(0x1b4)];this[_0x54831b(0x1c8)](_0x54831b(0x19d),{'id':this['id'],'pinned':_0x384016});}),_0x3ecc4a;}[_0xf98b64(0x19c)](){const _0x3aa535=_0xf98b64,_0x496646=_0x248066(this[_0x3aa535(0x1d1)],_0x508adb),_0xa6d94=_0x496646[_0x3aa535(0x193)][_0x3aa535(0x1c4)];_0x496646[_0x3aa535(0x1d2)][_0x3aa535(0x1cc)]({'label':_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x1bd)),'icon':_0x5e899e}),_0x496646[_0x3aa535(0x1b6)]='sw';const _0x5b7a14=new _0x39c900(this[_0x3aa535(0x1d1)]);_0x5b7a14[_0x3aa535(0x1c2)]=_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x1d8)),_0x5b7a14[_0x3aa535(0x19a)]=!0x0,_0x5b7a14['on'](_0x3aa535(0x1c3),()=>{const _0x332c32=_0x3aa535;this[_0x332c32(0x190)]=!0x0;});const _0xeb66c0=new _0x39c900(this[_0x3aa535(0x1d1)]);_0xeb66c0[_0x3aa535(0x1c2)]=_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x18f)),_0xeb66c0[_0x3aa535(0x19a)]=!0x0,_0xeb66c0['on'](_0x3aa535(0x1c3),()=>{const _0x3dc4bf=_0x3aa535;this[_0x3dc4bf(0x1b2)](_0x16a506(this[_0x3dc4bf(0x1d1)],_0x3dc4bf(0x1c1)),this[_0x3dc4bf(0x1a9)])[_0x3dc4bf(0x1c7)](()=>{const _0x4a99ee=_0x3dc4bf;this[_0x4a99ee(0x1c8)](_0x4a99ee(0x189),{'id':this['id']});});});const _0x4edb30=new _0x199cb3(this[_0x3aa535(0x1d1)]),_0x3b4565=new _0x1a6f75(this[_0x3aa535(0x1d1)]);_0x3b4565[_0x3aa535(0x1c4)][_0x3aa535(0x18d)](_0x5b7a14);const _0x326240=new _0x1a6f75(this[_0x3aa535(0x1d1)]);return _0x326240[_0x3aa535(0x1c4)][_0x3aa535(0x18d)](_0xeb66c0),_0x4edb30[_0x3aa535(0x1aa)][_0x3aa535(0x18e)]([_0x3b4565,_0x326240]),_0xa6d94[_0x3aa535(0x18d)](_0x4edb30),_0x496646;}[_0xf98b64(0x1d0)](_0x1ccaa6,_0x154558){const _0x2f1809=_0xf98b64,_0x130df7=new _0x18be3d(_0x1ccaa6),_0x1521a4=_0x130df7[_0x2f1809(0x1b1)];return _0x130df7[_0x2f1809(0x1d7)]=_0x154558,_0x130df7[_0x2f1809(0x1a7)]({'on':{'keydown':_0x1521a4['to'](_0x3e984e=>{const _0x4c98ab=_0x2f1809;_0x4c98ab(0x1de)==_0x3e984e[_0x4c98ab(0x1d5)]&&this[_0x4c98ab(0x19b)](_0x130df7);})}}),_0x130df7;}[_0xf98b64(0x1b8)](_0x2e28da,_0x3ae6c8){const _0x27007f=_0xf98b64,_0x35cdf5=new _0x39c900(_0x2e28da);return _0x35cdf5[_0x27007f(0x1cc)]({'icon':_0x334e63,'withText':!0x1,'tooltip':_0x16a506(_0x2e28da,_0x27007f(0x1ae))}),_0x35cdf5[_0x27007f(0x1a7)]({'attributes':{'class':[_0x27007f(0x1a4)]}}),_0x35cdf5['on'](_0x27007f(0x1c3),()=>{const _0x44a5fb=_0x27007f;this[_0x44a5fb(0x19b)](_0x3ae6c8);}),_0x35cdf5;}[_0xf98b64(0x19b)](_0x2114da){const _0x201ea8=_0xf98b64,_0x3a0ee0=_0x2114da[_0x201ea8(0x1a9)][_0x201ea8(0x1d7)]||'';this[_0x201ea8(0x1a1)][_0x201ea8(0x197)]=_0x3a0ee0,this[_0x201ea8(0x190)]=!0x1,this[_0x201ea8(0x1c8)](_0x201ea8(0x187),{'id':this['id'],'title':_0x3a0ee0});}[_0xf98b64(0x1c0)](_0xb65f12,_0x22f5e7){const _0x31016c=_0xf98b64,_0x238343=new _0x39c900(_0xb65f12);return _0x238343[_0x31016c(0x1cc)]({'icon':_0x5f5275,'withText':!0x1,'tooltip':_0x16a506(_0xb65f12,_0x31016c(0x182))}),_0x238343[_0x31016c(0x1a7)]({'attributes':{'class':[_0x31016c(0x1dc)]}}),_0x238343['on'](_0x31016c(0x1c3),()=>{const _0x2e0f62=_0x31016c;this[_0x2e0f62(0x190)]=!0x1,_0x22f5e7[_0x2e0f62(0x1d7)]=this[_0x2e0f62(0x1a1)][_0x2e0f62(0x197)]||'',this[_0x2e0f62(0x1c8)](_0x2e0f62(0x194));}),_0x238343;}[_0xf98b64(0x181)](){const _0x4ba509=_0xf98b64,_0x3d77f6=new _0x36d757(_0x4ba509(0x1dd));return _0x3d77f6[_0x4ba509(0x1df)]=!0x0,_0x3d77f6;}[_0xf98b64(0x1b3)](_0x3ec726){const _0x40883f=_0xf98b64;return this[_0x40883f(0x1a1)]&&_0x40883f(0x1ad)==typeof this[_0x40883f(0x1a1)][_0x40883f(0x197)]&&this[_0x40883f(0x1a1)][_0x40883f(0x197)][_0x40883f(0x1d9)](_0x3ec726)?{'title':!0x0}:null;}[_0xf98b64(0x18a)](_0x321048){const _0x216836=_0xf98b64;this[_0x216836(0x1a1)][_0x216836(0x18a)](_0x321048);}}
23
+ const _0x158bb8=_0x4b38;(function(_0x2dd537,_0x4f1273){const _0x45ac06=_0x4b38,_0xf27410=_0x2dd537();while(!![]){try{const _0x207b95=-parseInt(_0x45ac06(0x16d))/0x1+parseInt(_0x45ac06(0x12d))/0x2+-parseInt(_0x45ac06(0x11f))/0x3*(-parseInt(_0x45ac06(0x11a))/0x4)+-parseInt(_0x45ac06(0x129))/0x5*(-parseInt(_0x45ac06(0x13b))/0x6)+parseInt(_0x45ac06(0x14d))/0x7+-parseInt(_0x45ac06(0x136))/0x8+-parseInt(_0x45ac06(0x114))/0x9;if(_0x207b95===_0x4f1273)break;else _0xf27410['push'](_0xf27410['shift']());}catch(_0x25fff2){_0xf27410['push'](_0xf27410['shift']());}}}(_0x227a,0x4ce4e));import{ListItemView as _0x1a1800,HighlightedTextView as _0x24405f,ButtonView as _0x208e23,ListView as _0x3e7a48,IconView as _0x501852,createDropdown as _0x1a0779,InputTextView as _0x1b9a4c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xa3ed46,IconPin as _0x5f4df5,IconCheck as _0x2e8f8e,IconCancel as _0x23393c}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x377c7c,ConfirmMixin as _0x557f3c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4b38(_0x569372,_0x52f20b){const _0x227ac9=_0x227a();return _0x4b38=function(_0x4b3899,_0x27c757){_0x4b3899=_0x4b3899-0x112;let _0x429d33=_0x227ac9[_0x4b3899];return _0x429d33;},_0x4b38(_0x569372,_0x52f20b);}function _0x227a(){const _0x597d63=['ck-confirm-view-cancel','set','listitem','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','extendTemplate','addMany','buttonView','ck-confirm-view-submit','234005GfhhiA','edit:cancel','actions','setConversationPinned','571810WExkTv','_createPinButtonView','clear','_titleView','locale','label','isEdit','value','AI_CHAT_HISTORY_EDIT_NAME','219320tZcMWr','updateTitle','pinned','mainContent','showConfirm','12PhEEBb','AI_CHAT_HISTORY_LOADING_UNPINNING','text','loadingState','_createAcceptEditButtonView','change:isEdit','ck-ai-chat-history__item','then','AI_CHAT_HISTORY_REMOVE_CONFIRM','click','AI_CHAT_HISTORY_ACCEPT','updateLoadingState','match','removeConversation','isMatching','panelPosition','AI_CHAT_HISTORY_PIN_BUTTON','bindTemplate','3319547DSORwN','panelView','fire','key','ck-ai-chat-history__item-check-container','_createCheckView','createCollection','span','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check','tiny','execute','children','AI_CHAT_HISTORY_LOADING_PINNING','element','ck-ai-chat-history__item-main-content','ck-ai-loader__text','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_LOADING_RENAMING','selectConversation','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_CANCEL','_createCancelEditButtonView','add','items','focus','bind','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item--active','setTemplate','editConversationTitle','withText','186294oKhBQe','ck-ai-chat-history__item-title','highlightText','string','isOn','ck-ai-loader','ck-ai-chat-history__item-actions','isVisible','4725918AuwvEJ','_createSpinnerView','Enter','_createMenuDropdownView','ck-ai-chat-history__item-row','LOADING_LABELS','800164qluUAp','_commitEditInputValue','div','ck-hidden','_createEditInputView','3xsWjfm','ck-ai-chat-history__item-date'];_0x227a=function(){return _0x597d63;};return _0x227a();}import{escape as _0x52d70d}from'es-toolkit/compat';import{AISpinnerView as _0x48fc87}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x46776e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x557f3c(_0x1a1800){['id'];static [_0x158bb8(0x119)]={'remove':_0x158bb8(0x161),'rename':_0x158bb8(0x15f),'pin':_0x158bb8(0x15a),'unpin':_0x158bb8(0x13c)};[_0x158bb8(0x12b)];[_0x158bb8(0x139)];[_0x158bb8(0x130)];constructor(_0x4c7157,_0x2e91eb){const _0x1e9676=_0x158bb8;super(_0x4c7157);const _0xaa3b05=this[_0x1e9676(0x14c)];this[_0x1e9676(0x122)](_0x1e9676(0x133),!0x1),this[_0x1e9676(0x122)](_0x1e9676(0x113),!0x0),this[_0x1e9676(0x122)](_0x1e9676(0x138),!!_0x2e91eb[_0x1e9676(0x138)]),this[_0x1e9676(0x122)](_0x1e9676(0x13e),null),this['id']=_0x2e91eb['id'];const {title:_0x4102a3,createdAt:_0x3fe370,active:_0x4118d3=!0x1}=_0x2e91eb;this[_0x1e9676(0x130)]=new _0x24405f(),this[_0x1e9676(0x130)][_0x1e9676(0x13d)]=_0x4102a3,this[_0x1e9676(0x130)][_0x1e9676(0x125)]({'attributes':{'class':[_0x1e9676(0x16e)]}});const _0x5913b5=this[_0x1e9676(0x152)](),_0x15deba=this[_0x1e9676(0x12e)](_0x4c7157),_0x2c0808=this[_0x1e9676(0x117)](),_0x732e69=this[_0x1e9676(0x11e)](_0x4c7157,_0x4102a3),_0x4e147f=this[_0x1e9676(0x13f)](_0x4c7157,_0x732e69),_0x59c437=this[_0x1e9676(0x163)](_0x4c7157,_0x732e69);this[_0x1e9676(0x12b)]=this[_0x1e9676(0x153)](),this[_0x1e9676(0x139)]=this[_0x1e9676(0x153)](),this[_0x1e9676(0x139)][_0x1e9676(0x164)](this[_0x1e9676(0x130)]),this[_0x1e9676(0x12b)][_0x1e9676(0x164)](_0x15deba),this[_0x1e9676(0x12b)][_0x1e9676(0x164)](_0x2c0808),this['on'](_0x1e9676(0x140),(_0x38c041,_0x19e81e,_0x3b1562)=>{const _0x26cc4c=_0x1e9676;this[_0x26cc4c(0x12b)][_0x26cc4c(0x12f)](),this[_0x26cc4c(0x139)][_0x26cc4c(0x12f)](),_0x3b1562?(this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x4e147f),this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x59c437),this[_0x26cc4c(0x139)][_0x26cc4c(0x164)](_0x732e69),_0x732e69[_0x26cc4c(0x15b)][_0x26cc4c(0x166)]()):(this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x15deba),this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x2c0808),this[_0x26cc4c(0x139)][_0x26cc4c(0x164)](this[_0x26cc4c(0x130)]));}),this[_0x1e9676(0x16a)]({'tag':'li','attributes':{'class':[_0x1e9676(0x141),_0x4118d3?_0x1e9676(0x169):'',_0xaa3b05['if'](_0x1e9676(0x113),_0x1e9676(0x11d),_0x21608f=>!_0x21608f),_0xaa3b05['if'](_0x1e9676(0x133),_0x1e9676(0x15e))],'role':_0x1e9676(0x123)},'children':[{'tag':_0x1e9676(0x154),'attributes':{'class':[_0x1e9676(0x151)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x156),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x1c9fbd=>!!_0x1c9fbd)]},'children':_0x4118d3?[_0x5913b5]:[]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x172),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x16e689=>!_0x16e689)]},'children':[this[_0x1e9676(0x115)]()]}]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x118)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x155)]},'on':{'click':this[_0x1e9676(0x14c)]['to'](_0x1e9676(0x144))},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x15c)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x16e),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x108c6d=>!!_0x108c6d)]},'children':this[_0x1e9676(0x139)]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x15d),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x3a24d9=>!_0x3a24d9)]},'children':[{'text':_0xaa3b05['to'](_0x1e9676(0x13e),_0x2229ce=>_0x2229ce?_0x46776e(this[_0x1e9676(0x131)],AIChatHistoryListItemView[_0x1e9676(0x119)][_0x2229ce]):'')}]}]},{'tag':_0x1e9676(0x154),'attributes':{'class':[_0x1e9676(0x120)]},'children':[_0x3fe370]}]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x112)]},'children':this[_0x1e9676(0x12b)]}]}]}),this['on'](_0x1e9676(0x144),()=>{const _0x504634=_0x1e9676;this[_0x504634(0x133)]||this[_0x504634(0x14f)](_0x504634(0x160),{'id':this['id']});});}[_0x158bb8(0x137)](_0x2691c0){const _0x5cc3a9=_0x158bb8;this[_0x5cc3a9(0x130)][_0x5cc3a9(0x13d)]=_0x52d70d(_0x2691c0);}[_0x158bb8(0x146)](_0x29c3b6,_0x2be0ff){const _0x56eaed=_0x158bb8;this[_0x56eaed(0x122)](_0x56eaed(0x13e),_0x2be0ff?_0x29c3b6:null);}[_0x158bb8(0x152)](){const _0x197b35=_0x158bb8,_0x51036c=new _0x501852();return _0x51036c[_0x197b35(0x122)]({'content':_0x2e8f8e}),_0x51036c;}[_0x158bb8(0x12e)](_0x1f41bb){const _0x4af001=_0x158bb8,_0x9b3f24=new _0x208e23(_0x1f41bb);return _0x9b3f24[_0x4af001(0x122)]({'label':_0x46776e(_0x1f41bb,_0x4af001(0x14b)),'icon':_0x5f4df5,'withText':!0x1,'tooltip':!0x0}),_0x9b3f24[_0x4af001(0x167)](_0x4af001(0x171))['to'](this,_0x4af001(0x138)),_0x9b3f24['on'](_0x4af001(0x158),()=>{const _0x5473f9=_0x4af001,_0x20b143=!this[_0x5473f9(0x138)];this[_0x5473f9(0x14f)](_0x5473f9(0x12c),{'id':this['id'],'pinned':_0x20b143});}),_0x9b3f24;}[_0x158bb8(0x117)](){const _0x4c0272=_0x158bb8,_0x112491=_0x1a0779(this[_0x4c0272(0x131)],_0x377c7c),_0x1b3ed4=_0x112491[_0x4c0272(0x14e)][_0x4c0272(0x159)];_0x112491[_0x4c0272(0x127)][_0x4c0272(0x122)]({'label':_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x124)),'icon':_0xa3ed46}),_0x112491[_0x4c0272(0x14a)]='sw';const _0x4b3ded=new _0x208e23(this[_0x4c0272(0x131)]);_0x4b3ded[_0x4c0272(0x132)]=_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x135)),_0x4b3ded[_0x4c0272(0x16c)]=!0x0,_0x4b3ded['on'](_0x4c0272(0x158),()=>{const _0x5e8bd7=_0x4c0272;this[_0x5e8bd7(0x133)]=!0x0;});const _0x8abc64=new _0x208e23(this[_0x4c0272(0x131)]);_0x8abc64[_0x4c0272(0x132)]=_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x168)),_0x8abc64[_0x4c0272(0x16c)]=!0x0,_0x8abc64['on'](_0x4c0272(0x158),()=>{const _0x407462=_0x4c0272;this[_0x407462(0x13a)](_0x46776e(this[_0x407462(0x131)],_0x407462(0x143)),this[_0x407462(0x15b)])[_0x407462(0x142)](()=>{const _0x23688b=_0x407462;this[_0x23688b(0x14f)](_0x23688b(0x148),{'id':this['id']});});});const _0xf801b8=new _0x3e7a48(this[_0x4c0272(0x131)]),_0x4d3c6a=new _0x1a1800(this[_0x4c0272(0x131)]);_0x4d3c6a[_0x4c0272(0x159)][_0x4c0272(0x164)](_0x4b3ded);const _0x4cb516=new _0x1a1800(this[_0x4c0272(0x131)]);return _0x4cb516[_0x4c0272(0x159)][_0x4c0272(0x164)](_0x8abc64),_0xf801b8[_0x4c0272(0x165)][_0x4c0272(0x126)]([_0x4d3c6a,_0x4cb516]),_0x1b3ed4[_0x4c0272(0x164)](_0xf801b8),_0x112491;}[_0x158bb8(0x11e)](_0x2e4c83,_0x12821e){const _0x4ba200=_0x158bb8,_0x444344=new _0x1b9a4c(_0x2e4c83),_0x3014df=_0x444344[_0x4ba200(0x14c)];return _0x444344[_0x4ba200(0x134)]=_0x12821e,_0x444344[_0x4ba200(0x125)]({'on':{'keydown':_0x3014df['to'](_0x1ac703=>{const _0x3ab2a1=_0x4ba200;_0x3ab2a1(0x116)==_0x1ac703[_0x3ab2a1(0x150)]&&this[_0x3ab2a1(0x11b)](_0x444344);})}}),_0x444344;}[_0x158bb8(0x13f)](_0x165831,_0x1885df){const _0x2d903c=_0x158bb8,_0x68ce23=new _0x208e23(_0x165831);return _0x68ce23[_0x2d903c(0x122)]({'icon':_0x2e8f8e,'withText':!0x1,'tooltip':_0x46776e(_0x165831,_0x2d903c(0x145))}),_0x68ce23[_0x2d903c(0x125)]({'attributes':{'class':[_0x2d903c(0x128)]}}),_0x68ce23['on'](_0x2d903c(0x158),()=>{const _0x4d285e=_0x2d903c;this[_0x4d285e(0x11b)](_0x1885df);}),_0x68ce23;}[_0x158bb8(0x11b)](_0x168c08){const _0x459a48=_0x158bb8,_0x5c9e70=_0x168c08[_0x459a48(0x15b)][_0x459a48(0x134)]||'';this[_0x459a48(0x130)][_0x459a48(0x13d)]=_0x5c9e70,this[_0x459a48(0x133)]=!0x1,this[_0x459a48(0x14f)](_0x459a48(0x16b),{'id':this['id'],'title':_0x5c9e70});}[_0x158bb8(0x163)](_0x1f4aba,_0x3a2916){const _0x1e4ab3=_0x158bb8,_0x1c0f1d=new _0x208e23(_0x1f4aba);return _0x1c0f1d[_0x1e4ab3(0x122)]({'icon':_0x23393c,'withText':!0x1,'tooltip':_0x46776e(_0x1f4aba,_0x1e4ab3(0x162))}),_0x1c0f1d[_0x1e4ab3(0x125)]({'attributes':{'class':[_0x1e4ab3(0x121)]}}),_0x1c0f1d['on'](_0x1e4ab3(0x158),()=>{const _0xd3cd14=_0x1e4ab3;this[_0xd3cd14(0x133)]=!0x1,_0x3a2916[_0xd3cd14(0x134)]=this[_0xd3cd14(0x130)][_0xd3cd14(0x13d)]||'',this[_0xd3cd14(0x14f)](_0xd3cd14(0x12a));}),_0x1c0f1d;}[_0x158bb8(0x115)](){const _0x33e7e4=_0x158bb8,_0x57f074=new _0x48fc87(_0x33e7e4(0x157));return _0x57f074[_0x33e7e4(0x113)]=!0x0,_0x57f074;}[_0x158bb8(0x149)](_0x2dac56){const _0x2a010b=_0x158bb8;return this[_0x2a010b(0x130)]&&_0x2a010b(0x170)==typeof this[_0x2a010b(0x130)][_0x2a010b(0x13d)]&&this[_0x2a010b(0x130)][_0x2a010b(0x13d)][_0x2a010b(0x147)](_0x2dac56)?{'title':!0x0}:null;}[_0x158bb8(0x16f)](_0x56bbef){const _0x1e6a6e=_0x158bb8;this[_0x1e6a6e(0x130)][_0x1e6a6e(0x16f)](_0x56bbef);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x125184=_0x54d0;(function(_0x14222b,_0x334dc6){const _0x3cd3ea=_0x54d0,_0x1d7367=_0x14222b();while(!![]){try{const _0x529bc3=parseInt(_0x3cd3ea(0x190))/0x1+parseInt(_0x3cd3ea(0x187))/0x2*(parseInt(_0x3cd3ea(0x184))/0x3)+-parseInt(_0x3cd3ea(0x193))/0x4+parseInt(_0x3cd3ea(0x185))/0x5*(parseInt(_0x3cd3ea(0x177))/0x6)+parseInt(_0x3cd3ea(0x17a))/0x7+-parseInt(_0x3cd3ea(0x17d))/0x8*(-parseInt(_0x3cd3ea(0x18f))/0x9)+parseInt(_0x3cd3ea(0x191))/0xa*(-parseInt(_0x3cd3ea(0x196))/0xb);if(_0x529bc3===_0x334dc6)break;else _0x1d7367['push'](_0x1d7367['shift']());}catch(_0x15e1b1){_0x1d7367['push'](_0x1d7367['shift']());}}}(_0x1f80,0xdf799));import{ListItemView as _0x33cc2b,View as _0x51a68f,ListView as _0x296c25}from'ckeditor5/src/ui.js';function _0x54d0(_0x179d05,_0xb3c361){const _0x1f8061=_0x1f80();return _0x54d0=function(_0x54d050,_0x62c4b4){_0x54d050=_0x54d050-0x176;let _0x3556cf=_0x1f8061[_0x54d050];return _0x3556cf;},_0x54d0(_0x179d05,_0xb3c361);}function _0x1f80(){const _0x3bfb31=['ck-ai-chat-history__section','11658qbLKdO','ck-ai-chat-history__section-title','bindTemplate','filter','isVisible','items','removeItem','splice','180HofhsG','1171403azhoLw','84190GMiiBF','title','2235128ZhrdhH','addMany','ck-hidden','6633OIhsQc','highlightText','getItem','1038Qsylfx','find','_itemsListView','9717008XnrKPr','length','isMatching','718384gwkjET','indexOf','remove','div','set','setTemplate','itemsViews','798lqKKdF','18635EWPXWD'];_0x1f80=function(){return _0x3bfb31;};return _0x1f80();}export class AIChatHistoryListView extends _0x33cc2b{[_0x125184(0x192)];[_0x125184(0x183)];[_0x125184(0x179)];constructor(_0x5341fc,{title:_0x3f6179,items:_0x40a417}){const _0x912f82=_0x125184;super(_0x5341fc);const _0x1539ff=this[_0x912f82(0x189)];this[_0x912f82(0x181)](_0x912f82(0x18b),!0x0),this[_0x912f82(0x192)]=_0x3f6179,this[_0x912f82(0x183)]=_0x40a417;const _0x890ac2=new _0x51a68f(_0x5341fc);_0x890ac2[_0x912f82(0x182)]({'tag':_0x912f82(0x180),'attributes':{'class':[_0x912f82(0x188)]},'children':[this[_0x912f82(0x192)]]}),this[_0x912f82(0x179)]=new _0x296c25(_0x5341fc),this[_0x912f82(0x179)][_0x912f82(0x18c)][_0x912f82(0x194)](this[_0x912f82(0x183)]),this[_0x912f82(0x182)]({'tag':'li','attributes':{'class':[_0x912f82(0x186),_0x1539ff['if'](_0x912f82(0x18b),_0x912f82(0x195),_0x46cb0e=>!_0x46cb0e)]},'children':[_0x890ac2,this[_0x912f82(0x179)]]});}[_0x125184(0x18a)](_0x9ce2f6){const _0x544d67=_0x125184,_0x4f023c=this[_0x544d67(0x183)][_0x544d67(0x17b)];let _0x179e30=0x0;for(const _0x1ca1f4 of this[_0x544d67(0x183)]){if(_0x9ce2f6){const _0x38ab94=_0x1ca1f4[_0x544d67(0x17c)](_0x9ce2f6);_0x1ca1f4[_0x544d67(0x18b)]=!!_0x38ab94,_0x1ca1f4[_0x544d67(0x197)](_0x9ce2f6);}else _0x1ca1f4[_0x544d67(0x18b)]=!0x0,_0x1ca1f4[_0x544d67(0x197)](null);_0x1ca1f4[_0x544d67(0x18b)]&&_0x179e30++;}return this[_0x544d67(0x18b)]=_0x179e30>0x0,{'resultsCount':_0x179e30,'totalItemsCount':_0x4f023c};}[_0x125184(0x176)](_0x19eac7){const _0x468c1f=_0x125184;return this[_0x468c1f(0x183)][_0x468c1f(0x178)](_0x5bd8f1=>_0x5bd8f1['id']===_0x19eac7);}[_0x125184(0x18d)](_0x5f5199){const _0x32afea=_0x125184,_0x3e71f3=this[_0x32afea(0x183)][_0x32afea(0x17e)](_0x5f5199);-0x1!==_0x3e71f3&&(this[_0x32afea(0x183)][_0x32afea(0x18e)](_0x3e71f3,0x1),this[_0x32afea(0x179)][_0x32afea(0x18c)][_0x32afea(0x17f)](_0x5f5199));}}
23
+ function _0x4403(_0x3d2bf8,_0x5c8c29){const _0x43ba9d=_0x43ba();return _0x4403=function(_0x44032e,_0x85f4ef){_0x44032e=_0x44032e-0x10c;let _0x2499d5=_0x43ba9d[_0x44032e];return _0x2499d5;},_0x4403(_0x3d2bf8,_0x5c8c29);}const _0x378abb=_0x4403;function _0x43ba(){const _0x1fb99f=['474XLgLEB','241836yGNeVw','915663nCgmpy','title','isVisible','highlightText','length','_itemsListView','180ecSxeR','getItem','items','3130804phTUIr','set','remove','addMany','splice','7599AShlXW','setTemplate','69183EmPWli','ck-hidden','isMatching','ck-ai-chat-history__section','24eZLyOj','find','1094470bctkEe','div','indexOf','33wcRRSz','itemsViews','24KGcDAf','10750380ggMIdD','ck-ai-chat-history__section-title','bindTemplate','filter','removeItem'];_0x43ba=function(){return _0x1fb99f;};return _0x43ba();}(function(_0x3524d7,_0x53752e){const _0x32f698=_0x4403,_0x89719a=_0x3524d7();while(!![]){try{const _0x15fdf9=-parseInt(_0x32f698(0x11b))/0x1+parseInt(_0x32f698(0x11a))/0x2*(-parseInt(_0x32f698(0x12a))/0x3)+-parseInt(_0x32f698(0x125))/0x4+parseInt(_0x32f698(0x10f))/0x5*(-parseInt(_0x32f698(0x10d))/0x6)+-parseInt(_0x32f698(0x11c))/0x7*(-parseInt(_0x32f698(0x114))/0x8)+-parseInt(_0x32f698(0x12c))/0x9*(parseInt(_0x32f698(0x122))/0xa)+-parseInt(_0x32f698(0x112))/0xb*(-parseInt(_0x32f698(0x115))/0xc);if(_0x15fdf9===_0x53752e)break;else _0x89719a['push'](_0x89719a['shift']());}catch(_0x41e7a9){_0x89719a['push'](_0x89719a['shift']());}}}(_0x43ba,0x6bb86));import{ListItemView as _0x2e842d,View as _0x345bc0,ListView as _0x1487ec}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2e842d{[_0x378abb(0x11d)];[_0x378abb(0x113)];[_0x378abb(0x121)];constructor(_0x1fa8f1,{title:_0x2543ae,items:_0x16bd78}){const _0x3ce5ce=_0x378abb;super(_0x1fa8f1);const _0x6544f1=this[_0x3ce5ce(0x117)];this[_0x3ce5ce(0x126)](_0x3ce5ce(0x11e),!0x0),this[_0x3ce5ce(0x11d)]=_0x2543ae,this[_0x3ce5ce(0x113)]=_0x16bd78;const _0x26b03d=new _0x345bc0(_0x1fa8f1);_0x26b03d[_0x3ce5ce(0x12b)]({'tag':_0x3ce5ce(0x110),'attributes':{'class':[_0x3ce5ce(0x116)]},'children':[this[_0x3ce5ce(0x11d)]]}),this[_0x3ce5ce(0x121)]=new _0x1487ec(_0x1fa8f1),this[_0x3ce5ce(0x121)][_0x3ce5ce(0x124)][_0x3ce5ce(0x128)](this[_0x3ce5ce(0x113)]),this[_0x3ce5ce(0x12b)]({'tag':'li','attributes':{'class':[_0x3ce5ce(0x10c),_0x6544f1['if'](_0x3ce5ce(0x11e),_0x3ce5ce(0x12d),_0x414efa=>!_0x414efa)]},'children':[_0x26b03d,this[_0x3ce5ce(0x121)]]});}[_0x378abb(0x118)](_0x3bc314){const _0x5e1e2b=_0x378abb,_0x3335ff=this[_0x5e1e2b(0x113)][_0x5e1e2b(0x120)];let _0x2b7d4f=0x0;for(const _0x335248 of this[_0x5e1e2b(0x113)]){if(_0x3bc314){const _0x4ad793=_0x335248[_0x5e1e2b(0x12e)](_0x3bc314);_0x335248[_0x5e1e2b(0x11e)]=!!_0x4ad793,_0x335248[_0x5e1e2b(0x11f)](_0x3bc314);}else _0x335248[_0x5e1e2b(0x11e)]=!0x0,_0x335248[_0x5e1e2b(0x11f)](null);_0x335248[_0x5e1e2b(0x11e)]&&_0x2b7d4f++;}return this[_0x5e1e2b(0x11e)]=_0x2b7d4f>0x0,{'resultsCount':_0x2b7d4f,'totalItemsCount':_0x3335ff};}[_0x378abb(0x123)](_0x5f2441){const _0x3f005f=_0x378abb;return this[_0x3f005f(0x113)][_0x3f005f(0x10e)](_0x47321a=>_0x47321a['id']===_0x5f2441);}[_0x378abb(0x119)](_0x1178fe){const _0x1eb094=_0x378abb,_0x2fe375=this[_0x1eb094(0x113)][_0x1eb094(0x111)](_0x1178fe);-0x1!==_0x2fe375&&(this[_0x1eb094(0x113)][_0x1eb094(0x129)](_0x2fe375,0x1),this[_0x1eb094(0x121)][_0x1eb094(0x124)][_0x1eb094(0x127)](_0x1178fe));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x57de(_0x3394bb,_0x3d4a60){const _0x2d9116=_0x2d91();return _0x57de=function(_0x57de4a,_0x3bf7e4){_0x57de4a=_0x57de4a-0x10d;let _0x256a78=_0x2d9116[_0x57de4a];return _0x256a78;},_0x57de(_0x3394bb,_0x3d4a60);}const _0x4b5960=_0x57de;(function(_0xcbed6d,_0x234b03){const _0x2004f5=_0x57de,_0x441526=_0xcbed6d();while(!![]){try{const _0x5c048b=-parseInt(_0x2004f5(0x111))/0x1+-parseInt(_0x2004f5(0x11b))/0x2*(parseInt(_0x2004f5(0x117))/0x3)+-parseInt(_0x2004f5(0x114))/0x4*(-parseInt(_0x2004f5(0x11c))/0x5)+-parseInt(_0x2004f5(0x116))/0x6+parseInt(_0x2004f5(0x119))/0x7+-parseInt(_0x2004f5(0x115))/0x8+parseInt(_0x2004f5(0x112))/0x9*(parseInt(_0x2004f5(0x118))/0xa);if(_0x5c048b===_0x234b03)break;else _0x441526['push'](_0x441526['shift']());}catch(_0x351008){_0x441526['push'](_0x441526['shift']());}}}(_0x2d91,0xeefa6));import{ListView as _0x3dec17}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3dec17{[_0x4b5960(0x10d)];constructor(_0x465381,_0x1f1662){const _0x305601=_0x4b5960;super(_0x465381),this[_0x305601(0x10d)]=_0x1f1662,this[_0x305601(0x110)][_0x305601(0x113)](this[_0x305601(0x10d)]),this[_0x305601(0x10f)]({'attributes':{'class':[_0x305601(0x10e)]}});}[_0x4b5960(0x11a)](_0x5ee847){const _0xaad05=_0x4b5960;let _0x211680=0x0,_0x249d83=0x0;for(const _0x22c9d of this[_0xaad05(0x10d)]){const {resultsCount:_0x1b41ad,totalItemsCount:_0x2a3881}=_0x22c9d[_0xaad05(0x11a)](_0x5ee847);_0x211680+=_0x1b41ad,_0x249d83+=_0x2a3881;}return{'resultsCount':_0x211680,'totalItemsCount':_0x249d83};}}function _0x2d91(){const _0x245315=['extendTemplate','items','662300GHIfnD','873rcFPiR','addMany','172ixLNCT','13769520IvKjQp','1202784lLvcnz','2124258nbrSxf','247470jIYMAh','758667TPLKqZ','filter','2PUzjVm','204890YDyklj','sections','ck-ai-chat-history__sections'];_0x2d91=function(){return _0x245315;};return _0x2d91();}
23
+ const _0x29cccf=_0x2723;(function(_0x867c81,_0x31e754){const _0x42e78a=_0x2723,_0x3b60b7=_0x867c81();while(!![]){try{const _0x1e4590=parseInt(_0x42e78a(0x1ea))/0x1+parseInt(_0x42e78a(0x1eb))/0x2+parseInt(_0x42e78a(0x1de))/0x3+parseInt(_0x42e78a(0x1e9))/0x4*(-parseInt(_0x42e78a(0x1e6))/0x5)+parseInt(_0x42e78a(0x1df))/0x6*(parseInt(_0x42e78a(0x1e8))/0x7)+parseInt(_0x42e78a(0x1e3))/0x8+-parseInt(_0x42e78a(0x1e4))/0x9;if(_0x1e4590===_0x31e754)break;else _0x3b60b7['push'](_0x3b60b7['shift']());}catch(_0x304229){_0x3b60b7['push'](_0x3b60b7['shift']());}}}(_0x181f,0x984c9));function _0x2723(_0x3ef653,_0x49412f){const _0x181fdd=_0x181f();return _0x2723=function(_0x2723ec,_0x3ce004){_0x2723ec=_0x2723ec-0x1dd;let _0x17be7a=_0x181fdd[_0x2723ec];return _0x17be7a;},_0x2723(_0x3ef653,_0x49412f);}import{ListView as _0x23ed58}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x23ed58{[_0x29cccf(0x1dd)];constructor(_0x5a002d,_0x1f2a8d){const _0x15479b=_0x29cccf;super(_0x5a002d),this[_0x15479b(0x1dd)]=_0x1f2a8d,this[_0x15479b(0x1e5)][_0x15479b(0x1e1)](this[_0x15479b(0x1dd)]),this[_0x15479b(0x1e2)]({'attributes':{'class':[_0x15479b(0x1e0)]}});}[_0x29cccf(0x1e7)](_0x10a14a){const _0x418428=_0x29cccf;let _0x1acee9=0x0,_0x1b6059=0x0;for(const _0x30b906 of this[_0x418428(0x1dd)]){const {resultsCount:_0x23099f,totalItemsCount:_0x671182}=_0x30b906[_0x418428(0x1e7)](_0x10a14a);_0x1acee9+=_0x23099f,_0x1b6059+=_0x671182;}return{'resultsCount':_0x1acee9,'totalItemsCount':_0x1b6059};}}function _0x181f(){const _0x319f87=['486489GEflRq','2244814XesGrm','sections','807171LSzaIJ','393018tAzSqw','ck-ai-chat-history__sections','addMany','extendTemplate','8957688gOuTpI','23099760mkSRrq','items','10ZShLjP','filter','21uBvDCD','7432xIqEfo'];_0x181f=function(){return _0x319f87;};return _0x181f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf6b8e7=_0x589d;(function(_0x30008c,_0xcb5811){const _0x1b6d85=_0x589d,_0x24a236=_0x30008c();while(!![]){try{const _0x458fc8=parseInt(_0x1b6d85(0x1de))/0x1+parseInt(_0x1b6d85(0x211))/0x2+-parseInt(_0x1b6d85(0x1fd))/0x3*(parseInt(_0x1b6d85(0x227))/0x4)+-parseInt(_0x1b6d85(0x1fc))/0x5+parseInt(_0x1b6d85(0x1f4))/0x6+parseInt(_0x1b6d85(0x1e3))/0x7*(parseInt(_0x1b6d85(0x1e2))/0x8)+parseInt(_0x1b6d85(0x1d7))/0x9*(-parseInt(_0x1b6d85(0x205))/0xa);if(_0x458fc8===_0xcb5811)break;else _0x24a236['push'](_0x24a236['shift']());}catch(_0x1f7cc1){_0x24a236['push'](_0x24a236['shift']());}}}(_0x3818,0x249de));import{View as _0x4fe555,SearchTextView as _0x46a7be,FormHeaderView as _0x33749d,ButtonView as _0x1b01db}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x18b90d,IconCancel as _0x1e68d4,IconPlus as _0x7daa43}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1195d9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xe7bfd7}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x55f685}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3994c1}from'../aichathistoryui.js';function _0x3818(){const _0x5c9b44=['sections','addMany','updateItemTitle','updateLoadingState','locale','add','updateItemLoadingState','ck-rounded-corners','ck-ai-header\x20ck-ai-header_history','set','9HtgmBA','change:isLoading','bind','_createListItemViews','change:hasItems','fire','extendTemplate','293504FUiBIk','bindTemplate','ck-ai-chat__start-conversation','hasItems','82408YGYuNq','49DueXHX','value','AI_CHAT_HISTORY_HEADING','errorView','remove','AI_CHAT_HISTORY_SEARCH_LABEL','title','queryView','isMaximized','searchView','element','search','openChat','skeletonView','splice','updateTitle','removeItem','28770oQfTVZ','itemsViews','some','isEmptyViewVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','ck-hidden','isLoading','83550dXodPr','131871ltesmf','push','fieldView','_updateViewVisibility','ck-reset_all','_createErrorView','errorMessage','ck-ai-chat-error','2988610JymTfI','render','ltr','ck-ai-chat-history__content','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createSkeletonView','indexOf','execute','emptyView','aiHistory','ck-ai-chat-history__empty-message','454036QDBLVH','clear','setTemplate','updateHistoryItemsWithCategories','children','isVisible','items','delegate','ck-ai-chat-error__dismiss-button','change:errorMessage','div','AI_CHAT_LABEL_NEW_CHAT','removeHistoryItem','_refreshSearch','ck-ai-chat-history','getItem','length','ck-ai-chat-history__empty','isSearchViewVisible','resizeButton','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createEmptyStateView','12JWUrbu'];_0x3818=function(){return _0x5c9b44;};return _0x3818();}import{AISkeletonView as _0x9f4ddc,SKELETON_DEFINITIONS as _0x530c43}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3760e5}from'../../aicore/utils/createresizebutton.js';function _0x589d(_0x312a0e,_0x12b7b5){const _0x38185f=_0x3818();return _0x589d=function(_0x589d90,_0x33351b){_0x589d90=_0x589d90-0x1d2;let _0x15f9f2=_0x38185f[_0x589d90];return _0x15f9f2;},_0x589d(_0x312a0e,_0x12b7b5);}import{getTranslation as _0x151a0f}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4fe555{[_0xf6b8e7(0x1ec)];[_0xf6b8e7(0x1e6)];[_0xf6b8e7(0x1f0)];[_0xf6b8e7(0x20e)];[_0xf6b8e7(0x1f9)];[_0xf6b8e7(0x224)];constructor(_0x33eb4f,_0x2d16f2){const _0x35b106=_0xf6b8e7;super(_0x33eb4f),this[_0x35b106(0x1d6)](_0x35b106(0x1e1),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x1fb),!0x0),this[_0x35b106(0x1d6)](_0x35b106(0x203),''),this[_0x35b106(0x1d6)](_0x35b106(0x1eb),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x223),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x1f7),!0x1);const _0x1cfa4a=new _0x33749d(_0x33eb4f,{'label':_0x151a0f(_0x33eb4f,_0x35b106(0x1e5)),'icon':_0x18b90d,'class':_0x35b106(0x1d5)});_0x2d16f2&&(this[_0x35b106(0x224)]=_0x3760e5(_0x33eb4f,this),_0x1cfa4a[_0x35b106(0x215)][_0x35b106(0x1d2)](this[_0x35b106(0x224)])),this[_0x35b106(0x1f9)]=new _0x1195d9(_0x33eb4f,[]),this[_0x35b106(0x1f9)][_0x35b106(0x218)](..._0x3994c1)['to'](this),this[_0x35b106(0x1e6)]=this[_0x35b106(0x202)](),this[_0x35b106(0x1f0)]=this[_0x35b106(0x20b)](),this[_0x35b106(0x20e)]=this[_0x35b106(0x226)](),this[_0x35b106(0x1ec)]=this[_0x35b106(0x209)](),this['on'](_0x35b106(0x1d8),()=>this[_0x35b106(0x200)]()),this['on'](_0x35b106(0x1db),()=>this[_0x35b106(0x200)]()),this['on'](_0x35b106(0x21a),()=>this[_0x35b106(0x200)]()),this[_0x35b106(0x213)]({'tag':_0x35b106(0x21b),'attributes':{'class':['ck',_0x35b106(0x201),_0x35b106(0x21f),_0x35b106(0x1d4)],'dir':_0x35b106(0x207)},'children':[_0x1cfa4a,{'tag':_0x35b106(0x21b),'attributes':{'class':[_0x35b106(0x208)]},'children':[this[_0x35b106(0x1f0)],this[_0x35b106(0x1e6)],this[_0x35b106(0x20e)],this[_0x35b106(0x1ec)]]}]});}[_0xf6b8e7(0x200)](){const _0x3471d8=_0xf6b8e7;this[_0x3471d8(0x223)]=!this[_0x3471d8(0x1fb)]&&this[_0x3471d8(0x1e1)]&&!this[_0x3471d8(0x203)],this[_0x3471d8(0x1f7)]=!this[_0x3471d8(0x1fb)]&&!this[_0x3471d8(0x1e1)]&&!this[_0x3471d8(0x203)];}[_0xf6b8e7(0x209)](){const _0xed366e=_0xf6b8e7,_0x414e90=new _0x46a7be(this[_0xed366e(0x22c)],{'filteredView':this[_0xed366e(0x1f9)],'queryView':{'label':_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x1e8))},'infoView':{'text':{'notFound':{'primary':_0xa3659=>_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x20a),_0xa3659),'secondary':_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x1f8))}}}});return _0x414e90['on'](_0xed366e(0x206),()=>{const _0x2ab725=_0xed366e;this[_0x2ab725(0x1ec)][_0x2ab725(0x215)][_0x2ab725(0x1d2)](this[_0x2ab725(0x1e6)],0x1);}),_0x414e90[_0xed366e(0x1dd)]({'attributes':{'class':[this[_0xed366e(0x1df)]['if'](_0xed366e(0x223),_0xed366e(0x1fa),_0x1d921f=>!_0x1d921f)]}}),_0x414e90;}[_0xf6b8e7(0x20b)](){const _0x2dfda5=_0xf6b8e7,_0x1c03d5=new _0x9f4ddc(this[_0x2dfda5(0x22c)],_0x530c43[_0x2dfda5(0x20f)]);return _0x1c03d5[_0x2dfda5(0x1dd)]({'attributes':{'class':[this[_0x2dfda5(0x1df)]['if'](_0x2dfda5(0x1fb),_0x2dfda5(0x1fa),_0x5e81ac=>!_0x5e81ac)]}}),_0x1c03d5;}[_0xf6b8e7(0x202)](){const _0x1b23f1=_0xf6b8e7,_0x2cb851=new _0x4fe555(this[_0x1b23f1(0x22c)]),_0x5119e8=new _0x1b01db(this[_0x1b23f1(0x22c)]);return _0x5119e8[_0x1b23f1(0x1d6)]({'withText':!0x1,'icon':_0x1e68d4,'class':_0x1b23f1(0x219)}),_0x5119e8[_0x1b23f1(0x1d9)](_0x1b23f1(0x216))['to'](this,_0x1b23f1(0x1e1),_0x34133f=>!!_0x34133f),_0x5119e8['on'](_0x1b23f1(0x20d),()=>{const _0x3cee77=_0x1b23f1;this[_0x3cee77(0x203)]='';}),_0x2cb851[_0x1b23f1(0x213)]({'tag':_0x1b23f1(0x21b),'attributes':{'class':['ck',_0x1b23f1(0x204),this[_0x1b23f1(0x1df)]['if'](_0x1b23f1(0x203),_0x1b23f1(0x1fa),_0x4bf355=>!_0x4bf355)]},'children':[{'tag':'p','children':[{'text':this[_0x1b23f1(0x1df)]['to'](_0x1b23f1(0x203))}]},_0x5119e8]}),_0x2cb851;}[_0xf6b8e7(0x226)](){const _0x31d12c=_0xf6b8e7,_0x2a05cc=new _0x1b01db(this[_0x31d12c(0x22c)]);_0x2a05cc[_0x31d12c(0x1d6)]({'label':_0x151a0f(this[_0x31d12c(0x22c)],_0x31d12c(0x21c)),'withText':!0x0,'icon':_0x7daa43,'class':_0x31d12c(0x1e0)}),_0x2a05cc['on'](_0x31d12c(0x20d),()=>{const _0x2c705f=_0x31d12c;this[_0x2c705f(0x1dc)](_0x2c705f(0x1ef));});const _0x378be2=new _0x4fe555(this[_0x31d12c(0x22c)]);return _0x378be2[_0x31d12c(0x213)]({'tag':_0x31d12c(0x21b),'attributes':{'class':[_0x31d12c(0x222),this[_0x31d12c(0x1df)]['if'](_0x31d12c(0x1f7),_0x31d12c(0x1fa),_0x40f941=>!_0x40f941)]},'children':[{'tag':'p','attributes':{'class':[_0x31d12c(0x210)]},'children':[_0x151a0f(this[_0x31d12c(0x22c)],_0x31d12c(0x225))]},_0x2a05cc]}),_0x378be2;}[_0xf6b8e7(0x1da)](_0x413755,_0x22f9fc){const _0x463dd9=_0xf6b8e7,_0x3fde60=[];for(const _0x3e9dbc of _0x413755){const _0x1aa154=new _0x55f685(_0x22f9fc,_0x3e9dbc);_0x1aa154[_0x463dd9(0x218)](..._0x3994c1)['to'](this),_0x3fde60[_0x463dd9(0x1fe)](_0x1aa154);}return _0x3fde60;}[_0xf6b8e7(0x214)](_0x55f1a8){const _0x32c87c=_0xf6b8e7,_0x5f42c3=this[_0x32c87c(0x22c)]||'en',_0x4ca166=[];for(const _0x1af7c2 of _0x55f1a8){const _0x7cf645=this[_0x32c87c(0x1da)](_0x1af7c2[_0x32c87c(0x217)],_0x5f42c3);_0x4ca166[_0x32c87c(0x1fe)](new _0xe7bfd7(_0x5f42c3,{'title':_0x1af7c2[_0x32c87c(0x1e9)],'items':_0x7cf645}));}this[_0x32c87c(0x1f9)][_0x32c87c(0x228)]=_0x4ca166,this[_0x32c87c(0x1f9)][_0x32c87c(0x217)][_0x32c87c(0x212)](),this[_0x32c87c(0x1f9)][_0x32c87c(0x217)][_0x32c87c(0x229)](_0x4ca166),this[_0x32c87c(0x1e1)]=_0x55f1a8[_0x32c87c(0x1f6)](_0x4d2b04=>_0x4d2b04[_0x32c87c(0x217)][_0x32c87c(0x221)]>0x0),this[_0x32c87c(0x21e)]();}[_0xf6b8e7(0x21d)](_0x48f250){const _0x465859=_0xf6b8e7;for(const _0x5cbb28 of this[_0x465859(0x1f9)][_0x465859(0x228)]){const _0x3309ce=_0x5cbb28[_0x465859(0x220)](_0x48f250);if(_0x3309ce){if(_0x5cbb28[_0x465859(0x1f3)](_0x3309ce),0x0===_0x5cbb28[_0x465859(0x1f5)][_0x465859(0x221)]){const _0x275ab2=this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x20c)](_0x5cbb28);-0x1!==_0x275ab2&&(this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x1f1)](_0x275ab2,0x1),this[_0x465859(0x1f9)][_0x465859(0x217)][_0x465859(0x1e7)](_0x5cbb28));}this[_0x465859(0x1e1)]=this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x221)]>0x0,this[_0x465859(0x21e)]();break;}}}[_0xf6b8e7(0x22a)](_0x572497,_0x2b5007){const _0x4c1621=_0xf6b8e7;for(const _0x3f9086 of this[_0x4c1621(0x1f9)][_0x4c1621(0x228)]){const _0x3df2ab=_0x3f9086[_0x4c1621(0x220)](_0x572497);if(_0x3df2ab){_0x3df2ab[_0x4c1621(0x1f2)](_0x2b5007);break;}}}[_0xf6b8e7(0x1d3)](_0x42873c,_0xd3869e,_0x121292){const _0x5f5a95=_0xf6b8e7;for(const _0x539059 of this[_0x5f5a95(0x1f9)][_0x5f5a95(0x228)]){const _0x5f2098=_0x539059[_0x5f5a95(0x220)](_0x42873c);if(_0x5f2098){_0x5f2098[_0x5f5a95(0x22b)](_0xd3869e,_0x121292);break;}}}[_0xf6b8e7(0x21e)](){const _0x162fa2=_0xf6b8e7;if(this[_0x162fa2(0x1e1)]){const _0x6ee209=this[_0x162fa2(0x1ec)][_0x162fa2(0x1ea)][_0x162fa2(0x1ff)]?.[_0x162fa2(0x1ed)]?.[_0x162fa2(0x1e4)]||'';this[_0x162fa2(0x1ec)][_0x162fa2(0x1ee)](_0x6ee209);}}}
23
+ const _0xf223ee=_0x53b3;function _0x560e(){const _0x15c358=['delegate','bind','extendTemplate','render','_updateViewVisibility','search','removeItem','730VEeCUI','ck-ai-chat-error','2997765inkQdr','sectionsView','118188uvBBNq','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-reset_all','updateLoadingState','errorView','54187jSqKSP','add','isMaximized','5566624sOCybQ','ck-ai-chat-error__dismiss-button','39zEguVI','bindTemplate','sections','ck-ai-chat-history__content','fire','fieldView','ck-ai-chat-history__empty','searchView','resizeButton','change:hasItems','hasItems','div','_createSkeletonView','ck-hidden','ck-ai-chat-history__empty-message','ck-ai-header\x20ck-ai-header_history','_refreshSearch','items','addMany','22840543UAlDky','value','element','_createListItemViews','removeHistoryItem','ck-rounded-corners','AI_CHAT_HISTORY_HEADING','_createEmptyStateView','ck-ai-chat__start-conversation','isSearchViewVisible','294Hktrpt','locale','emptyView','isLoading','AI_CHAT_LABEL_NEW_CHAT','change:errorMessage','itemsViews','push','length','children','_createErrorView','title','_createSearchView','splice','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-chat-history','getItem','updateTitle','730OmXthv','updateItemTitle','clear','indexOf','errorMessage','isVisible','change:isLoading','set','aiHistory','ltr','AI_CHAT_HISTORY_SEARCH_LABEL','some','isEmptyViewVisible','queryView','openChat','4827nHPkkF','updateHistoryItemsWithCategories','updateItemLoadingState','execute','remove','30904ycjSzq','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','setTemplate','skeletonView'];_0x560e=function(){return _0x15c358;};return _0x560e();}(function(_0x2f1314,_0x58a9e9){const _0x1a2ba7=_0x53b3,_0x5665fd=_0x2f1314();while(!![]){try{const _0x619f0a=parseInt(_0x1a2ba7(0x154))/0x1*(-parseInt(_0x1a2ba7(0x145))/0x2)+-parseInt(_0x1a2ba7(0x172))/0x3*(parseInt(_0x1a2ba7(0x159))/0x4)+-parseInt(_0x1a2ba7(0x166))/0x5+-parseInt(_0x1a2ba7(0x133))/0x6*(parseInt(_0x1a2ba7(0x16d))/0x7)+parseInt(_0x1a2ba7(0x170))/0x8+parseInt(_0x1a2ba7(0x168))/0x9*(parseInt(_0x1a2ba7(0x164))/0xa)+parseInt(_0x1a2ba7(0x129))/0xb;if(_0x619f0a===_0x58a9e9)break;else _0x5665fd['push'](_0x5665fd['shift']());}catch(_0x700a29){_0x5665fd['push'](_0x5665fd['shift']());}}}(_0x560e,0xd937a));function _0x53b3(_0x3be1a5,_0x17b721){const _0x560e40=_0x560e();return _0x53b3=function(_0x53b35b,_0x5e7e8f){_0x53b35b=_0x53b35b-0x11e;let _0x242afb=_0x560e40[_0x53b35b];return _0x242afb;},_0x53b3(_0x3be1a5,_0x17b721);}import{View as _0x43387b,SearchTextView as _0x53dfc4,FormHeaderView as _0x1add31,ButtonView as _0x3a15ed}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xa20093,IconCancel as _0x2602ab,IconPlus as _0xedce62}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x39fe80}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2f86c9}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2ffbd3}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2a677e}from'../aichathistoryui.js';import{AISkeletonView as _0x3b0813,SKELETON_DEFINITIONS as _0x2bac8b}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4fffaf}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4592fe}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x43387b{[_0xf223ee(0x179)];[_0xf223ee(0x16c)];[_0xf223ee(0x15c)];[_0xf223ee(0x135)];[_0xf223ee(0x167)];[_0xf223ee(0x11e)];constructor(_0xc4bbc5,_0xc515a7){const _0x923182=_0xf223ee;super(_0xc4bbc5),this[_0x923182(0x14c)](_0x923182(0x120),!0x1),this[_0x923182(0x14c)](_0x923182(0x136),!0x0),this[_0x923182(0x14c)](_0x923182(0x149),''),this[_0x923182(0x14c)](_0x923182(0x16f),!0x1),this[_0x923182(0x14c)](_0x923182(0x132),!0x1),this[_0x923182(0x14c)](_0x923182(0x151),!0x1);const _0x5d2db2=new _0x1add31(_0xc4bbc5,{'label':_0x4592fe(_0xc4bbc5,_0x923182(0x12f)),'icon':_0xa20093,'class':_0x923182(0x125)});_0xc515a7&&(this[_0x923182(0x11e)]=_0x4fffaf(_0xc4bbc5,this),_0x5d2db2[_0x923182(0x13c)][_0x923182(0x16e)](this[_0x923182(0x11e)])),this[_0x923182(0x167)]=new _0x39fe80(_0xc4bbc5,[]),this[_0x923182(0x167)][_0x923182(0x15d)](..._0x2a677e)['to'](this),this[_0x923182(0x16c)]=this[_0x923182(0x13d)](),this[_0x923182(0x15c)]=this[_0x923182(0x122)](),this[_0x923182(0x135)]=this[_0x923182(0x130)](),this[_0x923182(0x179)]=this[_0x923182(0x13f)](),this['on'](_0x923182(0x14b),()=>this[_0x923182(0x161)]()),this['on'](_0x923182(0x11f),()=>this[_0x923182(0x161)]()),this['on'](_0x923182(0x138),()=>this[_0x923182(0x161)]()),this[_0x923182(0x15b)]({'tag':_0x923182(0x121),'attributes':{'class':['ck',_0x923182(0x16a),_0x923182(0x142),_0x923182(0x12e)],'dir':_0x923182(0x14e)},'children':[_0x5d2db2,{'tag':_0x923182(0x121),'attributes':{'class':[_0x923182(0x175)]},'children':[this[_0x923182(0x15c)],this[_0x923182(0x16c)],this[_0x923182(0x135)],this[_0x923182(0x179)]]}]});}[_0xf223ee(0x161)](){const _0x386235=_0xf223ee;this[_0x386235(0x132)]=!this[_0x386235(0x136)]&&this[_0x386235(0x120)]&&!this[_0x386235(0x149)],this[_0x386235(0x151)]=!this[_0x386235(0x136)]&&!this[_0x386235(0x120)]&&!this[_0x386235(0x149)];}[_0xf223ee(0x13f)](){const _0x26ab9f=_0xf223ee,_0x5b38bb=new _0x53dfc4(this[_0x26ab9f(0x134)],{'filteredView':this[_0x26ab9f(0x167)],'queryView':{'label':_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x14f))},'infoView':{'text':{'notFound':{'primary':_0x51b247=>_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x141),_0x51b247),'secondary':_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x15a))}}}});return _0x5b38bb['on'](_0x26ab9f(0x160),()=>{const _0x224080=_0x26ab9f;this[_0x224080(0x179)][_0x224080(0x13c)][_0x224080(0x16e)](this[_0x224080(0x16c)],0x1);}),_0x5b38bb[_0x26ab9f(0x15f)]({'attributes':{'class':[this[_0x26ab9f(0x173)]['if'](_0x26ab9f(0x132),_0x26ab9f(0x123),_0x1a2e9=>!_0x1a2e9)]}}),_0x5b38bb;}[_0xf223ee(0x122)](){const _0x2f5861=_0xf223ee,_0x4e63de=new _0x3b0813(this[_0x2f5861(0x134)],_0x2bac8b[_0x2f5861(0x14d)]);return _0x4e63de[_0x2f5861(0x15f)]({'attributes':{'class':[this[_0x2f5861(0x173)]['if'](_0x2f5861(0x136),_0x2f5861(0x123),_0x110bee=>!_0x110bee)]}}),_0x4e63de;}[_0xf223ee(0x13d)](){const _0x271da0=_0xf223ee,_0x32d2c2=new _0x43387b(this[_0x271da0(0x134)]),_0x45169d=new _0x3a15ed(this[_0x271da0(0x134)]);return _0x45169d[_0x271da0(0x14c)]({'withText':!0x1,'icon':_0x2602ab,'class':_0x271da0(0x171)}),_0x45169d[_0x271da0(0x15e)](_0x271da0(0x14a))['to'](this,_0x271da0(0x120),_0x57564c=>!!_0x57564c),_0x45169d['on'](_0x271da0(0x157),()=>{const _0x4e0e9b=_0x271da0;this[_0x4e0e9b(0x149)]='';}),_0x32d2c2[_0x271da0(0x15b)]({'tag':_0x271da0(0x121),'attributes':{'class':['ck',_0x271da0(0x165),this[_0x271da0(0x173)]['if'](_0x271da0(0x149),_0x271da0(0x123),_0x297569=>!_0x297569)]},'children':[{'tag':'p','children':[{'text':this[_0x271da0(0x173)]['to'](_0x271da0(0x149))}]},_0x45169d]}),_0x32d2c2;}[_0xf223ee(0x130)](){const _0x45622a=_0xf223ee,_0x400fc9=new _0x3a15ed(this[_0x45622a(0x134)]);_0x400fc9[_0x45622a(0x14c)]({'label':_0x4592fe(this[_0x45622a(0x134)],_0x45622a(0x137)),'withText':!0x0,'icon':_0xedce62,'class':_0x45622a(0x131)}),_0x400fc9['on'](_0x45622a(0x157),()=>{const _0x56a67c=_0x45622a;this[_0x56a67c(0x176)](_0x56a67c(0x153));});const _0x5c5a18=new _0x43387b(this[_0x45622a(0x134)]);return _0x5c5a18[_0x45622a(0x15b)]({'tag':_0x45622a(0x121),'attributes':{'class':[_0x45622a(0x178),this[_0x45622a(0x173)]['if'](_0x45622a(0x151),_0x45622a(0x123),_0x395c14=>!_0x395c14)]},'children':[{'tag':'p','attributes':{'class':[_0x45622a(0x124)]},'children':[_0x4592fe(this[_0x45622a(0x134)],_0x45622a(0x169))]},_0x400fc9]}),_0x5c5a18;}[_0xf223ee(0x12c)](_0x3ee53d,_0x507638){const _0x5f9a65=_0xf223ee,_0x4b5ef0=[];for(const _0x2d4ba6 of _0x3ee53d){const _0x40379a=new _0x2ffbd3(_0x507638,_0x2d4ba6);_0x40379a[_0x5f9a65(0x15d)](..._0x2a677e)['to'](this),_0x4b5ef0[_0x5f9a65(0x13a)](_0x40379a);}return _0x4b5ef0;}[_0xf223ee(0x155)](_0x597007){const _0x23fc5b=_0xf223ee,_0x10492a=this[_0x23fc5b(0x134)]||'en',_0xf5e4d9=[];for(const _0x2c7c56 of _0x597007){const _0x506139=this[_0x23fc5b(0x12c)](_0x2c7c56[_0x23fc5b(0x127)],_0x10492a);_0xf5e4d9[_0x23fc5b(0x13a)](new _0x2f86c9(_0x10492a,{'title':_0x2c7c56[_0x23fc5b(0x13e)],'items':_0x506139}));}this[_0x23fc5b(0x167)][_0x23fc5b(0x174)]=_0xf5e4d9,this[_0x23fc5b(0x167)][_0x23fc5b(0x127)][_0x23fc5b(0x147)](),this[_0x23fc5b(0x167)][_0x23fc5b(0x127)][_0x23fc5b(0x128)](_0xf5e4d9),this[_0x23fc5b(0x120)]=_0x597007[_0x23fc5b(0x150)](_0x3b37b3=>_0x3b37b3[_0x23fc5b(0x127)][_0x23fc5b(0x13b)]>0x0),this[_0x23fc5b(0x126)]();}[_0xf223ee(0x12d)](_0x836ffc){const _0xce6fa1=_0xf223ee;for(const _0xa7d76d of this[_0xce6fa1(0x167)][_0xce6fa1(0x174)]){const _0x154468=_0xa7d76d[_0xce6fa1(0x143)](_0x836ffc);if(_0x154468){if(_0xa7d76d[_0xce6fa1(0x163)](_0x154468),0x0===_0xa7d76d[_0xce6fa1(0x139)][_0xce6fa1(0x13b)]){const _0x2e5587=this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x148)](_0xa7d76d);-0x1!==_0x2e5587&&(this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x140)](_0x2e5587,0x1),this[_0xce6fa1(0x167)][_0xce6fa1(0x127)][_0xce6fa1(0x158)](_0xa7d76d));}this[_0xce6fa1(0x120)]=this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x13b)]>0x0,this[_0xce6fa1(0x126)]();break;}}}[_0xf223ee(0x146)](_0x15739a,_0x51aee2){const _0x586791=_0xf223ee;for(const _0x5a7b7d of this[_0x586791(0x167)][_0x586791(0x174)]){const _0x13c379=_0x5a7b7d[_0x586791(0x143)](_0x15739a);if(_0x13c379){_0x13c379[_0x586791(0x144)](_0x51aee2);break;}}}[_0xf223ee(0x156)](_0x54a2b5,_0x4c49f3,_0x1805a7){const _0x586114=_0xf223ee;for(const _0x43d92e of this[_0x586114(0x167)][_0x586114(0x174)]){const _0x436786=_0x43d92e[_0x586114(0x143)](_0x54a2b5);if(_0x436786){_0x436786[_0x586114(0x16b)](_0x4c49f3,_0x1805a7);break;}}}[_0xf223ee(0x126)](){const _0x265bbe=_0xf223ee;if(this[_0x265bbe(0x120)]){const _0x1b336c=this[_0x265bbe(0x179)][_0x265bbe(0x152)][_0x265bbe(0x177)]?.[_0x265bbe(0x12b)]?.[_0x265bbe(0x12a)]||'';this[_0x265bbe(0x179)][_0x265bbe(0x162)](_0x1b336c);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa37214=_0x2270;(function(_0x1ca782,_0x1187f6){const _0x29acdb=_0x2270,_0x34eaa5=_0x1ca782();while(!![]){try{const _0xd1fcd8=-parseInt(_0x29acdb(0x132))/0x1+parseInt(_0x29acdb(0x152))/0x2*(-parseInt(_0x29acdb(0x160))/0x3)+-parseInt(_0x29acdb(0x142))/0x4+-parseInt(_0x29acdb(0x167))/0x5+-parseInt(_0x29acdb(0x198))/0x6*(parseInt(_0x29acdb(0x14a))/0x7)+-parseInt(_0x29acdb(0x16f))/0x8+parseInt(_0x29acdb(0x153))/0x9;if(_0xd1fcd8===_0x1187f6)break;else _0x34eaa5['push'](_0x34eaa5['shift']());}catch(_0x5b9f1b){_0x34eaa5['push'](_0x34eaa5['shift']());}}}(_0x573d,0x52203));function _0x2270(_0x21a44e,_0x14aeac){const _0x573d06=_0x573d();return _0x2270=function(_0x22704f,_0x1c3fc8){_0x22704f=_0x22704f-0x11f;let _0x4b69c3=_0x573d06[_0x22704f];return _0x4b69c3;},_0x2270(_0x21a44e,_0x14aeac);}import{createParser as _0x45f688}from'eventsource-parser';function _0x573d(){const _0x79d8c1=['50JaODgh','20415753HYwgIy','uploadDocument','executeAction','queryAssistant','FIX_GRAMMAR','group','/conversations?','/documents','uploadUrl','AbortError','/actions/custom/calls/','fetchConversationMessages','attributes','30036eyWbpV','/messages/','upsertAIChatRating','fetchDocument','executeCustomAction','excludeEmpty','length','588420mmSqmN','releaseLock','getReader','/ratings','ai-request-aborted','text','uploadFile','toString','4402856TnltIR','isOfficialPlugin','make-tone-formal','value','catch','name','define','ai-missing-token','append','totalCount','_sendApiRequest','keys','MAKE_LONGER','search','startConversation','callSystemReview','upsertAIReviewRating','/web-resources/','abortController','/reviews/system/','MAKE_TONE_CASUAL','https://ai.cke-cs.com/v1','_getStreamReader','AIConnector','updateConversation','MAKE_TONE_FORMAL','_handleError','fetchConversations','continue','deleteConversation','pluginName','/web-resources','callCustomReview','/reviews/custom/calls','request','ai-request-failed','POST','json','translate','100','/files','1974rjuDiF','Bearer\x20','file','true','/messages','/actions/system/','CloudServices','Content-Type','IMPROVE_WRITING','token','make-tone-casual','signal','stringify','/calls','parse','data','/reviews/custom/calls/','push','/documents/','limit','_decoder','getModels','/files/','plugins','_apiUrl','_token','upsertCustomAIActionRating','config','fetchConversation','PUT','PATCH','/actions/custom/calls','CONTINUE','make-longer','reset','upsertCustomAIReviewRating','upsertAIActionRating','make-shorter','TRANSLATE','162918zBJFOY','deleteDocument','GET','positiveCount','context','fix-grammar','body','application/json','ai.serviceUrl','modificationId','then','statusText','feed','isPremiumPlugin','deleteWebResource','improve-writing','1325120GBZKkr','/conversations/','/calls/','get','read','deleteFile','items','decode','11053rjnbNF','MAKE_SHORTER','init','/conversations','status','requires','/models/1','DELETE'];_0x573d=function(){return _0x79d8c1;};return _0x573d();}import{ContextPlugin as _0x38ad55}from'ckeditor5/src/core.js';import{CKEditorError as _0x5a2083}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x36ab73){const _0x1fe90f=_0x2270;_0x36ab73[_0x1fe90f(0x12b)]=_0x1fe90f(0x18b),_0x36ab73[_0x1fe90f(0x157)]=_0x1fe90f(0x137),_0x36ab73[_0x1fe90f(0x1a0)]=_0x1fe90f(0x141),_0x36ab73[_0x1fe90f(0x17b)]=_0x1fe90f(0x12c),_0x36ab73[_0x1fe90f(0x14b)]=_0x1fe90f(0x130),_0x36ab73[_0x1fe90f(0x183)]=_0x1fe90f(0x1a2),_0x36ab73[_0x1fe90f(0x188)]=_0x1fe90f(0x171),_0x36ab73[_0x1fe90f(0x131)]=_0x1fe90f(0x195);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38ad55{[_0xa37214(0x123)];[_0xa37214(0x124)];[_0xa37214(0x11f)];static get[_0xa37214(0x14f)](){const _0x5ac90a=_0xa37214;return[_0x5ac90a(0x19e)];}static get[_0xa37214(0x18d)](){const _0x3b0c1f=_0xa37214;return _0x3b0c1f(0x186);}static get[_0xa37214(0x170)](){return!0x0;}static get[_0xa37214(0x13f)](){return!0x0;}constructor(_0x38e20b){const _0x54eb8e=_0xa37214;super(_0x38e20b),this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x175)](_0x54eb8e(0x13a),_0x54eb8e(0x184)),this[_0x54eb8e(0x123)]=this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x145)](_0x54eb8e(0x13a)),this[_0x54eb8e(0x124)]=null,this[_0x54eb8e(0x11f)]=new TextDecoder();}[_0xa37214(0x14c)](){const _0x1ea687=_0xa37214,_0x28155e=this[_0x1ea687(0x136)][_0x1ea687(0x122)][_0x1ea687(0x145)](_0x1ea687(0x19e));if(!_0x28155e[_0x1ea687(0x1a1)])throw new _0x5a2083(_0x1ea687(0x176),this);this[_0x1ea687(0x124)]=_0x28155e[_0x1ea687(0x1a1)];}[_0xa37214(0x17d)](_0x4db7fb,_0xa4ea43){const _0x1ffc07=_0xa37214,_0x32a4cd=this[_0x1ffc07(0x179)](_0x1ffc07(0x14d),_0x1ffc07(0x193),{'id':_0x4db7fb,'group':_0xa4ea43});return{'getConversation':async()=>(await _0x32a4cd[_0x1ffc07(0x191)])[_0x1ffc07(0x194)](),'abortController':_0x32a4cd[_0x1ffc07(0x181)]};}[_0xa37214(0x156)]({message:_0x3bfd41,conversationId:_0x5f2eb1,parts:_0x55211b,capabilities:_0x499447,model:_0x551032,quickActionData:_0x1b0c21}){const _0x46e3a1=_0xa37214,_0x30bd00={..._0x1b0c21&&{'quickActionData':_0x1b0c21}},_0x2d4d5c={'prompt':_0x3bfd41,'content':_0x55211b,'model':_0x551032,..._0x499447&&{'capabilities':_0x499447},...Object[_0x46e3a1(0x17a)](_0x30bd00)[_0x46e3a1(0x166)]>0x0&&{'attributes':_0x30bd00}},_0x144d47=this[_0x46e3a1(0x179)](_0x46e3a1(0x143)+_0x5f2eb1+_0x46e3a1(0x19c),_0x46e3a1(0x193),_0x2d4d5c);return{'getStream':async()=>{const _0x4462be=_0x46e3a1,_0x3fc177=(await _0x144d47[_0x4462be(0x191)])[_0x4462be(0x138)];return this[_0x4462be(0x185)](_0x3fc177);},'abortController':_0x144d47[_0x46e3a1(0x181)]};}[_0xa37214(0x164)]({content:_0x541fc4,message:_0xe7d835,model:_0x35dd4a,outputFormat:_0x264918}){const _0x1c5232=_0xa37214,_0x47f14b={'content':[{'type':_0x1c5232(0x16c),'content':_0x541fc4}],'prompt':_0xe7d835,'model':_0x35dd4a,'outputFormat':_0x264918},_0x5ba83c=this[_0x1c5232(0x179)](_0x1c5232(0x12a),_0x1c5232(0x193),_0x47f14b);return{'getStream':async()=>{const _0x3ad652=_0x1c5232,_0x2d2c66=(await _0x5ba83c[_0x3ad652(0x191)])[_0x3ad652(0x138)];return this[_0x3ad652(0x185)](_0x2d2c66);},'abortController':_0x5ba83c[_0x1c5232(0x181)]};}[_0xa37214(0x155)]({actionName:_0x3ae266,content:_0x260d44,args:_0x5faa48}){const _0x1ac8dd=_0xa37214,_0x31609e={'content':[{'type':_0x1ac8dd(0x16c),'content':_0x260d44}],'args':_0x5faa48},_0x2255f8=this[_0x1ac8dd(0x179)](_0x1ac8dd(0x19d)+_0x3ae266+_0x1ac8dd(0x1a5),_0x1ac8dd(0x193),_0x31609e);return{'getStream':async()=>{const _0x191183=_0x1ac8dd,_0x97f332=(await _0x2255f8[_0x191183(0x191)])[_0x191183(0x138)];return this[_0x191183(0x185)](_0x97f332);},'abortController':_0x2255f8[_0x1ac8dd(0x181)]};}[_0xa37214(0x16d)](_0x32a312,_0xe84774,_0x20465a){const _0x25e233=_0xa37214,_0x1f58d4=new FormData();_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x19a),_0xe84774,_0xe84774[_0x25e233(0x174)]),_0x20465a&&_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x15f),JSON[_0x25e233(0x1a4)](_0x20465a));const _0x45c661=this[_0x25e233(0x179)](_0x25e233(0x143)+_0x32a312+_0x25e233(0x197),_0x25e233(0x193),_0x1f58d4);return{'getId':async()=>(await _0x45c661[_0x25e233(0x191)])[_0x25e233(0x194)](),'abortController':_0x45c661[_0x25e233(0x181)]};}[_0xa37214(0x163)](_0x1211bc,_0x40aea1){const _0x57e1a1=_0xa37214,_0x34b5c6=this[_0x57e1a1(0x179)](_0x57e1a1(0x143)+_0x1211bc+_0x57e1a1(0x1aa)+_0x40aea1,_0x57e1a1(0x134));return{'getDocument':async()=>(await _0x34b5c6[_0x57e1a1(0x191)])[_0x57e1a1(0x194)](),'abortController':_0x34b5c6[_0x57e1a1(0x181)]};}[_0xa37214(0x154)](_0x5c35f4,_0x118cc3,_0x4e66d8){const _0x535d1c=_0xa37214,_0xc39e36={'content':_0x118cc3};_0x4e66d8&&(_0xc39e36[_0x535d1c(0x15f)]=_0x4e66d8);const _0x2dc571=this[_0x535d1c(0x179)](_0x535d1c(0x143)+_0x5c35f4+_0x535d1c(0x15a),_0x535d1c(0x193),_0xc39e36);return{'getId':async()=>(await _0x2dc571[_0x535d1c(0x191)])[_0x535d1c(0x194)](),'abortController':_0x2dc571[_0x535d1c(0x181)]};}[_0xa37214(0x18a)](_0x5ae149,_0xeb725){const _0x59afb8=_0xa37214,_0x4a5420=new URLSearchParams();_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x165),_0x59afb8(0x19b)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x1ab),_0x59afb8(0x196)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x158),_0x5ae149),_0xeb725&&_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x17c),_0xeb725);const _0x2e3c92=this[_0x59afb8(0x179)](_0x59afb8(0x159)+_0x4a5420[_0x59afb8(0x16e)](),_0x59afb8(0x134));return{'getConversations':async()=>{const _0x3f1e2d=_0x59afb8,_0x1e0574=await _0x2e3c92[_0x3f1e2d(0x191)];return(await _0x1e0574[_0x3f1e2d(0x194)]())[_0x3f1e2d(0x148)];},'abortController':_0x2e3c92[_0x59afb8(0x181)]};}[_0xa37214(0x18c)](_0x2fcd1b){const _0x5d6067=_0xa37214,_0x256a2f=this[_0x5d6067(0x179)](_0x5d6067(0x143)+_0x2fcd1b,_0x5d6067(0x151));return{'execute':async()=>{const _0x3e2254=_0x5d6067;await _0x256a2f[_0x3e2254(0x191)];},'abortController':_0x256a2f[_0x5d6067(0x181)]};}[_0xa37214(0x187)](_0x136f33,_0x51c162){const _0x3dc4ff=_0xa37214,_0x29ff9f=this[_0x3dc4ff(0x179)](_0x3dc4ff(0x143)+_0x136f33,_0x3dc4ff(0x129),_0x51c162);return{'getResult':async()=>(await _0x29ff9f[_0x3dc4ff(0x191)],_0x51c162),'abortController':_0x29ff9f[_0x3dc4ff(0x181)]};}[_0xa37214(0x127)](_0x1b213b){const _0x23d999=_0xa37214,_0x74738=this[_0x23d999(0x179)](_0x23d999(0x143)+_0x1b213b,_0x23d999(0x134));return{'getConversation':async()=>(await _0x74738[_0x23d999(0x191)])[_0x23d999(0x194)](),'abortController':_0x74738[_0x23d999(0x181)]};}[_0xa37214(0x15e)](_0x46748b){const _0x852819=_0xa37214,_0x538e8e=this[_0x852819(0x179)](_0x852819(0x143)+_0x46748b+_0x852819(0x19c),_0x852819(0x134));return{'getMessages':async()=>{const _0x366e9e=_0x852819,_0x1f8d31=await _0x538e8e[_0x366e9e(0x191)];return(await _0x1f8d31[_0x366e9e(0x194)]())[_0x366e9e(0x148)];},'abortController':_0x538e8e[_0x852819(0x181)]};}[_0xa37214(0x15b)](_0x3f8d27,_0x55a92c,_0x228e5c){const _0x4610c8=_0xa37214,_0x3f6426=this[_0x4610c8(0x179)](_0x4610c8(0x143)+_0x3f8d27+_0x4610c8(0x18e),_0x4610c8(0x193),{'url':_0x55a92c,'attributes':_0x228e5c});return{'getId':async()=>(await _0x3f6426[_0x4610c8(0x191)])[_0x4610c8(0x194)](),'abortController':_0x3f6426[_0x4610c8(0x181)]};}[_0xa37214(0x120)](){const _0x30f3b9=_0xa37214,_0x417a8b=this[_0x30f3b9(0x179)](_0x30f3b9(0x150),_0x30f3b9(0x134));return{'list':async()=>await(await _0x417a8b[_0x30f3b9(0x191)])[_0x30f3b9(0x194)](),'abortController':_0x417a8b[_0x30f3b9(0x181)]};}[_0xa37214(0x147)](_0x31d7fd,_0x378b9f){const _0x4f6350=_0xa37214,_0x36f25e=this[_0x4f6350(0x179)](_0x4f6350(0x143)+_0x31d7fd+_0x4f6350(0x121)+_0x378b9f,_0x4f6350(0x151));return{'execute':async()=>{const _0x32488f=_0x4f6350;await _0x36f25e[_0x32488f(0x191)];},'abortController':_0x36f25e[_0x4f6350(0x181)]};}[_0xa37214(0x133)](_0xea30ae,_0x36643f){const _0x283d19=_0xa37214,_0x32240c=this[_0x283d19(0x179)](_0x283d19(0x143)+_0xea30ae+_0x283d19(0x1aa)+_0x36643f,_0x283d19(0x151));return{'execute':async()=>{const _0x32c7f5=_0x283d19;await _0x32240c[_0x32c7f5(0x191)];},'abortController':_0x32240c[_0x283d19(0x181)]};}[_0xa37214(0x140)](_0x92bbe9,_0x3cde9f){const _0x375bb3=_0xa37214,_0x525491=this[_0x375bb3(0x179)](_0x375bb3(0x143)+_0x92bbe9+_0x375bb3(0x180)+_0x3cde9f,_0x375bb3(0x151));return{'execute':async()=>{const _0xcd8fde=_0x375bb3;await _0x525491[_0xcd8fde(0x191)];},'abortController':_0x525491[_0x375bb3(0x181)]};}[_0xa37214(0x17e)]({reviewName:_0x20c6b2,content:_0x23a74e,args:_0x4cbe45}){const _0x5a73dd=_0xa37214,_0x4ea7b5=this[_0x5a73dd(0x179)](_0x5a73dd(0x182)+_0x20c6b2+_0x5a73dd(0x1a5),_0x5a73dd(0x193),{'content':[{'type':_0x5a73dd(0x16c),'content':_0x23a74e}],'args':_0x4cbe45});return{'getStream':async()=>{const _0x42e123=_0x5a73dd,_0x19eaae=(await _0x4ea7b5[_0x42e123(0x191)])[_0x42e123(0x138)];return this[_0x42e123(0x185)](_0x19eaae);},'abortController':_0x4ea7b5[_0x5a73dd(0x181)]};}[_0xa37214(0x18f)]({content:_0x38e0c3,prompt:_0x673368,model:_0x264440}){const _0x2bf373=_0xa37214,_0x2037eb=this[_0x2bf373(0x179)](_0x2bf373(0x190),_0x2bf373(0x193),{'content':[{'type':_0x2bf373(0x16c),'content':_0x38e0c3}],'prompt':_0x673368,'model':_0x264440});return{'getStream':async()=>{const _0x5be7a5=_0x2bf373,_0x194909=(await _0x2037eb[_0x5be7a5(0x191)])[_0x5be7a5(0x138)];return this[_0x5be7a5(0x185)](_0x194909);},'abortController':_0x2037eb[_0x2bf373(0x181)]};}[_0xa37214(0x162)](_0x5ec74f,_0x3f7e39,_0x443112){const _0x319fa0=_0xa37214,_0x535120=this[_0x319fa0(0x179)](_0x319fa0(0x143)+_0x5ec74f+_0x319fa0(0x161)+_0x3f7e39+_0x319fa0(0x16a),_0x319fa0(0x128),{'positiveCount':_0x443112[_0x319fa0(0x135)],'totalCount':_0x443112[_0x319fa0(0x178)],'modificationId':_0x443112[_0x319fa0(0x13b)]});return{'execute':async()=>{const _0x46f027=_0x319fa0;await _0x535120[_0x46f027(0x191)];},'abortController':_0x535120[_0x319fa0(0x181)]};}[_0xa37214(0x12f)](_0x3b5b85,_0x5be6e2,_0x5159c8){const _0x2ddb3b=_0xa37214,_0x1cb9df=this[_0x2ddb3b(0x179)](_0x2ddb3b(0x19d)+_0x3b5b85+_0x2ddb3b(0x144)+_0x5be6e2+_0x2ddb3b(0x16a),_0x2ddb3b(0x128),{'positiveCount':_0x5159c8[_0x2ddb3b(0x135)],'totalCount':_0x5159c8[_0x2ddb3b(0x178)]});return{'execute':async()=>{const _0x271e57=_0x2ddb3b;await _0x1cb9df[_0x271e57(0x191)];},'abortController':_0x1cb9df[_0x2ddb3b(0x181)]};}[_0xa37214(0x125)](_0x1d6793,_0x24b445){const _0x1a9e36=_0xa37214,_0x5431ff=this[_0x1a9e36(0x179)](_0x1a9e36(0x15d)+_0x1d6793+_0x1a9e36(0x16a),_0x1a9e36(0x128),{'positiveCount':_0x24b445[_0x1a9e36(0x135)],'totalCount':_0x24b445[_0x1a9e36(0x178)]});return{'execute':async()=>{const _0x37a87e=_0x1a9e36;await _0x5431ff[_0x37a87e(0x191)];},'abortController':_0x5431ff[_0x1a9e36(0x181)]};}[_0xa37214(0x17f)](_0x3c7418,_0x3d33ba,_0x2e0759,_0x5d266f){const _0x1be42a=_0xa37214,_0x1417aa=this[_0x1be42a(0x179)](_0x1be42a(0x182)+_0x3c7418+_0x1be42a(0x144)+_0x3d33ba+_0x1be42a(0x16a),_0x1be42a(0x128),{'positiveCount':_0x2e0759[_0x1be42a(0x135)],'totalCount':_0x2e0759[_0x1be42a(0x178)],'dataId':_0x5d266f});return{'execute':async()=>{const _0x3359b1=_0x1be42a;await _0x1417aa[_0x3359b1(0x191)];},'abortController':_0x1417aa[_0x1be42a(0x181)]};}[_0xa37214(0x12e)](_0x6cbe24,_0x2998d3,_0x398e1e){const _0x586b23=_0xa37214,_0x2a42ea=this[_0x586b23(0x179)](_0x586b23(0x1a8)+_0x6cbe24+_0x586b23(0x16a),_0x586b23(0x128),{'positiveCount':_0x2998d3[_0x586b23(0x135)],'totalCount':_0x2998d3[_0x586b23(0x178)],'dataId':_0x398e1e});return{'execute':async()=>{const _0x5ee16d=_0x586b23;await _0x2a42ea[_0x5ee16d(0x191)];},'abortController':_0x2a42ea[_0x586b23(0x181)]};}[_0xa37214(0x179)](_0x5cbb42,_0x5f1b0f,_0x506316){const _0x1f8d47=_0xa37214,_0x348be5=new AbortController(),_0x406cd4=_0x506316 instanceof FormData,_0xa467c={'Authorization':_0x1f8d47(0x199)+this[_0x1f8d47(0x124)]?.[_0x1f8d47(0x172)]};_0x506316&&!_0x406cd4&&(_0xa467c[_0x1f8d47(0x19f)]=_0x1f8d47(0x139));const _0x3a9b99={'method':_0x5f1b0f,'headers':_0xa467c,'signal':_0x348be5[_0x1f8d47(0x1a3)]};return _0x506316&&(_0x3a9b99[_0x1f8d47(0x138)]=_0x406cd4?_0x506316:JSON[_0x1f8d47(0x1a4)](_0x506316)),{'request':fetch(''+this[_0x1f8d47(0x123)]+_0x5cbb42,_0x3a9b99)[_0x1f8d47(0x173)](_0x1c7b67=>{const _0x2a15fb=_0x1f8d47;this[_0x2a15fb(0x189)](_0x1c7b67);})[_0x1f8d47(0x13c)](_0x4e80a2=>{const _0x5bf6c9=_0x1f8d47;if(!_0x4e80a2['ok'])throw new _0x5a2083(_0x5bf6c9(0x192),this,{'url':this[_0x5bf6c9(0x123)],'path':_0x5cbb42,'method':_0x5f1b0f,'body':_0x506316,'status':(_0x4e80a2||{})[_0x5bf6c9(0x14e)],'statusText':(_0x4e80a2||{})[_0x5bf6c9(0x13d)]});return _0x4e80a2;}),'abortController':_0x348be5};}async*[_0xa37214(0x185)](_0x4519fa){const _0x275a60=_0xa37214,_0x345a91=[],_0x3e8e6b=_0x4519fa[_0x275a60(0x169)](),_0x52751d=_0x45f688({'onError':_0x275594=>{const _0x39808a=_0x275a60;this[_0x39808a(0x189)](_0x275594);},'onEvent':_0x211c1e=>{const _0x4528b2=_0x275a60;_0x211c1e[_0x4528b2(0x1a7)]=JSON[_0x4528b2(0x1a6)](_0x211c1e[_0x4528b2(0x1a7)]),_0x345a91[_0x4528b2(0x1a9)](_0x211c1e);}});try{let _0x1025e2=!0x1;for(;!_0x1025e2;){const {done:_0x49f2d5,value:_0x5552a9}=await _0x3e8e6b[_0x275a60(0x146)]();_0x49f2d5&&(_0x1025e2=!0x0),_0x52751d[_0x275a60(0x13e)](this[_0x275a60(0x11f)][_0x275a60(0x149)](_0x5552a9,{'stream':!0x0})),yield*_0x345a91,_0x345a91[_0x275a60(0x166)]=0x0;}}catch(_0x4b4c88){this[_0x275a60(0x189)](_0x4b4c88);}finally{_0x3e8e6b[_0x275a60(0x168)](),_0x52751d[_0x275a60(0x12d)]();}}[_0xa37214(0x189)](_0x156e35){const _0x2b3887=_0xa37214;if(_0x156e35 instanceof _0x5a2083)throw _0x156e35;if(_0x156e35 instanceof Error&&_0x2b3887(0x15c)===_0x156e35[_0x2b3887(0x174)])throw new _0x5a2083(_0x2b3887(0x16b),this,{'originalError':_0x156e35});throw new _0x5a2083(_0x2b3887(0x192),this,{'originalError':_0x156e35});}}
23
+ function _0x8eb8(){const _0x208626=['define','MAKE_TONE_CASUAL','decode','CloudServices','upsertCustomAIReviewRating','/conversations','uploadDocument','pluginName','application/json','catch','_decoder','1253858IYRyhB','then','translate','_getStreamReader','text','581680obwGXT','fetchConversation','/messages/','396MPLMCc','true','stringify','/conversations?','executeCustomAction','uploadUrl','/ratings','/models/1','PATCH','keys','read','limit','/messages','AIConnector','file','7836zlgJcB','context','data','fetchConversations','ai-request-aborted','make-shorter','push','FIX_GRAMMAR','request','make-tone-casual','body','releaseLock','feed','upsertAIReviewRating','Content-Type','TRANSLATE','excludeEmpty','uploadFile','get','ai.serviceUrl','reset','/reviews/custom/calls','/web-resources/','/actions/system/','/calls','upsertAIChatRating','name','_sendApiRequest','init','38QfBWyO','/documents/','_handleError','plugins','length','POST','MAKE_TONE_FORMAL','100','getModels','/conversations/','attributes','/files','abortController','getReader','ai-missing-token','executeAction','make-tone-formal','PUT','status','group','isPremiumPlugin','1788182fvdOVs','callSystemReview','260pOftqi','IMPROVE_WRITING','/reviews/system/','callCustomReview','/reviews/custom/calls/','make-longer','deleteConversation','isOfficialPlugin','totalCount','fetchDocument','deleteWebResource','improve-writing','_token','/actions/custom/calls','requires','value','321832RNtBsX','startConversation','statusText','CONTINUE','_apiUrl','/web-resources','DELETE','json','266547pcovRu','continue','MAKE_SHORTER','/files/','deleteDocument','config','595whFAOa','updateConversation','4167570CzIMts','fix-grammar','/actions/custom/calls/','deleteFile','queryAssistant','MAKE_LONGER','/documents','toString','search','token','ai-request-failed','/calls/','Bearer\x20','positiveCount','GET','items','append','AbortError','upsertCustomAIActionRating','modificationId','fetchConversationMessages','upsertAIActionRating','parse','https://ai.cke-cs.com/v1','signal'];_0x8eb8=function(){return _0x208626;};return _0x8eb8();}const _0x26b8d3=_0x3589;(function(_0x3e4c2a,_0x99bc4){const _0x20f7ac=_0x3589,_0x36e64f=_0x3e4c2a();while(!![]){try{const _0x17f672=parseInt(_0x20f7ac(0x23c))/0x1+-parseInt(_0x20f7ac(0x1e1))/0x2*(parseInt(_0x20f7ac(0x210))/0x3)+-parseInt(_0x20f7ac(0x1b2))/0x4+-parseInt(_0x20f7ac(0x218))/0x5+-parseInt(_0x20f7ac(0x1c4))/0x6*(parseInt(_0x20f7ac(0x216))/0x7)+parseInt(_0x20f7ac(0x208))/0x8*(-parseInt(_0x20f7ac(0x1b5))/0x9)+parseInt(_0x20f7ac(0x1f8))/0xa*(parseInt(_0x20f7ac(0x1f6))/0xb);if(_0x17f672===_0x99bc4)break;else _0x36e64f['push'](_0x36e64f['shift']());}catch(_0x4bc88f){_0x36e64f['push'](_0x36e64f['shift']());}}}(_0x8eb8,0xe39df));import{createParser as _0xeac24c}from'eventsource-parser';function _0x3589(_0x5a0878,_0x392b4a){const _0x8eb82f=_0x8eb8();return _0x3589=function(_0x3589e9,_0x4dc704){_0x3589e9=_0x3589e9-0x1b0;let _0xe35a70=_0x8eb82f[_0x3589e9];return _0xe35a70;},_0x3589(_0x5a0878,_0x392b4a);}import{ContextPlugin as _0x323787}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d585d}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2b0c2e){const _0x54968e=_0x3589;_0x2b0c2e[_0x54968e(0x20b)]=_0x54968e(0x211),_0x2b0c2e[_0x54968e(0x1cb)]=_0x54968e(0x219),_0x2b0c2e[_0x54968e(0x1f9)]=_0x54968e(0x203),_0x2b0c2e[_0x54968e(0x21d)]=_0x54968e(0x1fd),_0x2b0c2e[_0x54968e(0x212)]=_0x54968e(0x1c9),_0x2b0c2e[_0x54968e(0x232)]=_0x54968e(0x1cd),_0x2b0c2e[_0x54968e(0x1e7)]=_0x54968e(0x1f1),_0x2b0c2e[_0x54968e(0x1d3)]=_0x54968e(0x23e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x323787{[_0x26b8d3(0x20c)];[_0x26b8d3(0x204)];[_0x26b8d3(0x23b)];static get[_0x26b8d3(0x206)](){const _0x362510=_0x26b8d3;return[_0x362510(0x234)];}static get[_0x26b8d3(0x238)](){const _0x3d3e8b=_0x26b8d3;return _0x3d3e8b(0x1c2);}static get[_0x26b8d3(0x1ff)](){return!0x0;}static get[_0x26b8d3(0x1f5)](){return!0x0;}constructor(_0x334ca6){const _0x23d888=_0x26b8d3;super(_0x334ca6),this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x231)](_0x23d888(0x1d7),_0x23d888(0x22f)),this[_0x23d888(0x20c)]=this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x1d6)](_0x23d888(0x1d7)),this[_0x23d888(0x204)]=null,this[_0x23d888(0x23b)]=new TextDecoder();}[_0x26b8d3(0x1e0)](){const _0x11a9fb=_0x26b8d3,_0x2c4541=this[_0x11a9fb(0x1c5)][_0x11a9fb(0x1e4)][_0x11a9fb(0x1d6)](_0x11a9fb(0x234));if(!_0x2c4541[_0x11a9fb(0x221)])throw new _0x4d585d(_0x11a9fb(0x1ef),this);this[_0x11a9fb(0x204)]=_0x2c4541[_0x11a9fb(0x221)];}[_0x26b8d3(0x209)](_0x43132f,_0x46692d){const _0x55ca94=_0x26b8d3,_0x288dca=this[_0x55ca94(0x1df)](_0x55ca94(0x236),_0x55ca94(0x1e6),{'id':_0x43132f,'group':_0x46692d});return{'getConversation':async()=>(await _0x288dca[_0x55ca94(0x1cc)])[_0x55ca94(0x20f)](),'abortController':_0x288dca[_0x55ca94(0x1ed)]};}[_0x26b8d3(0x21c)]({message:_0x822647,conversationId:_0x1e12a4,parts:_0x59e0de,capabilities:_0xc369e7,model:_0x5345d1,quickActionData:_0x560f89}){const _0xa5ac78=_0x26b8d3,_0x215e75={..._0x560f89&&{'quickActionData':_0x560f89}},_0x5841b4={'prompt':_0x822647,'content':_0x59e0de,'model':_0x5345d1,..._0xc369e7&&{'capabilities':_0xc369e7},...Object[_0xa5ac78(0x1be)](_0x215e75)[_0xa5ac78(0x1e5)]>0x0&&{'attributes':_0x215e75}},_0x47e085=this[_0xa5ac78(0x1df)](_0xa5ac78(0x1ea)+_0x1e12a4+_0xa5ac78(0x1c1),_0xa5ac78(0x1e6),_0x5841b4);return{'getStream':async()=>{const _0x64b8b7=_0xa5ac78,_0x24d56b=(await _0x47e085[_0x64b8b7(0x1cc)])[_0x64b8b7(0x1ce)];return this[_0x64b8b7(0x1b0)](_0x24d56b);},'abortController':_0x47e085[_0xa5ac78(0x1ed)]};}[_0x26b8d3(0x1b9)]({content:_0x13e804,message:_0x30a99e,model:_0x23983b,outputFormat:_0x40d130}){const _0x4575fa=_0x26b8d3,_0x45ff2a={'content':[{'type':_0x4575fa(0x1b1),'content':_0x13e804}],'prompt':_0x30a99e,'model':_0x23983b,'outputFormat':_0x40d130},_0x5194b7=this[_0x4575fa(0x1df)](_0x4575fa(0x205),_0x4575fa(0x1e6),_0x45ff2a);return{'getStream':async()=>{const _0x28a36f=_0x4575fa,_0x5561fe=(await _0x5194b7[_0x28a36f(0x1cc)])[_0x28a36f(0x1ce)];return this[_0x28a36f(0x1b0)](_0x5561fe);},'abortController':_0x5194b7[_0x4575fa(0x1ed)]};}[_0x26b8d3(0x1f0)]({actionName:_0x4d9f46,content:_0x52b9a3,args:_0x5b7703}){const _0x11b09e=_0x26b8d3,_0x22dd22={'content':[{'type':_0x11b09e(0x1b1),'content':_0x52b9a3}],'args':_0x5b7703},_0x561b0b=this[_0x11b09e(0x1df)](_0x11b09e(0x1db)+_0x4d9f46+_0x11b09e(0x1dc),_0x11b09e(0x1e6),_0x22dd22);return{'getStream':async()=>{const _0x1e2548=_0x11b09e,_0xfed2c9=(await _0x561b0b[_0x1e2548(0x1cc)])[_0x1e2548(0x1ce)];return this[_0x1e2548(0x1b0)](_0xfed2c9);},'abortController':_0x561b0b[_0x11b09e(0x1ed)]};}[_0x26b8d3(0x1d5)](_0x9a892a,_0x36bded,_0x2fcdd2){const _0x1f4b9a=_0x26b8d3,_0x15c343=new FormData();_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1c3),_0x36bded,_0x36bded[_0x1f4b9a(0x1de)]),_0x2fcdd2&&_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1eb),JSON[_0x1f4b9a(0x1b7)](_0x2fcdd2));const _0x1c0b97=this[_0x1f4b9a(0x1df)](_0x1f4b9a(0x1ea)+_0x9a892a+_0x1f4b9a(0x1ec),_0x1f4b9a(0x1e6),_0x15c343);return{'getId':async()=>(await _0x1c0b97[_0x1f4b9a(0x1cc)])[_0x1f4b9a(0x20f)](),'abortController':_0x1c0b97[_0x1f4b9a(0x1ed)]};}[_0x26b8d3(0x201)](_0x48a4e3,_0x34a47c){const _0x32332b=_0x26b8d3,_0x28e71b=this[_0x32332b(0x1df)](_0x32332b(0x1ea)+_0x48a4e3+_0x32332b(0x1e2)+_0x34a47c,_0x32332b(0x226));return{'getDocument':async()=>(await _0x28e71b[_0x32332b(0x1cc)])[_0x32332b(0x20f)](),'abortController':_0x28e71b[_0x32332b(0x1ed)]};}[_0x26b8d3(0x237)](_0x529d61,_0x55a3df,_0x118e2c){const _0x107dc7=_0x26b8d3,_0x592a1c={'content':_0x55a3df};_0x118e2c&&(_0x592a1c[_0x107dc7(0x1eb)]=_0x118e2c);const _0x2c165b=this[_0x107dc7(0x1df)](_0x107dc7(0x1ea)+_0x529d61+_0x107dc7(0x21e),_0x107dc7(0x1e6),_0x592a1c);return{'getId':async()=>(await _0x2c165b[_0x107dc7(0x1cc)])[_0x107dc7(0x20f)](),'abortController':_0x2c165b[_0x107dc7(0x1ed)]};}[_0x26b8d3(0x1c7)](_0x97182f,_0x5b7266){const _0x18c3b8=_0x26b8d3,_0x33c6c4=new URLSearchParams();_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1d4),_0x18c3b8(0x1b6)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1c0),_0x18c3b8(0x1e8)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1f4),_0x97182f),_0x5b7266&&_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x220),_0x5b7266);const _0x1e65ac=this[_0x18c3b8(0x1df)](_0x18c3b8(0x1b8)+_0x33c6c4[_0x18c3b8(0x21f)](),_0x18c3b8(0x226));return{'getConversations':async()=>{const _0x9f8b25=_0x18c3b8,_0x5ab564=await _0x1e65ac[_0x9f8b25(0x1cc)];return(await _0x5ab564[_0x9f8b25(0x20f)]())[_0x9f8b25(0x227)];},'abortController':_0x1e65ac[_0x18c3b8(0x1ed)]};}[_0x26b8d3(0x1fe)](_0xedc134){const _0x466c37=_0x26b8d3,_0xa8c2c0=this[_0x466c37(0x1df)](_0x466c37(0x1ea)+_0xedc134,_0x466c37(0x20e));return{'execute':async()=>{const _0x47f242=_0x466c37;await _0xa8c2c0[_0x47f242(0x1cc)];},'abortController':_0xa8c2c0[_0x466c37(0x1ed)]};}[_0x26b8d3(0x217)](_0x3af564,_0x20f025){const _0x1bcd63=_0x26b8d3,_0x5dd6f2=this[_0x1bcd63(0x1df)](_0x1bcd63(0x1ea)+_0x3af564,_0x1bcd63(0x1bd),_0x20f025);return{'getResult':async()=>(await _0x5dd6f2[_0x1bcd63(0x1cc)],_0x20f025),'abortController':_0x5dd6f2[_0x1bcd63(0x1ed)]};}[_0x26b8d3(0x1b3)](_0x4e675a){const _0x41afaa=_0x26b8d3,_0x576fa1=this[_0x41afaa(0x1df)](_0x41afaa(0x1ea)+_0x4e675a,_0x41afaa(0x226));return{'getConversation':async()=>(await _0x576fa1[_0x41afaa(0x1cc)])[_0x41afaa(0x20f)](),'abortController':_0x576fa1[_0x41afaa(0x1ed)]};}[_0x26b8d3(0x22c)](_0x4c0891){const _0x5404b8=_0x26b8d3,_0x1d8895=this[_0x5404b8(0x1df)](_0x5404b8(0x1ea)+_0x4c0891+_0x5404b8(0x1c1),_0x5404b8(0x226));return{'getMessages':async()=>{const _0x1a31f7=_0x5404b8,_0x59ff35=await _0x1d8895[_0x1a31f7(0x1cc)];return(await _0x59ff35[_0x1a31f7(0x20f)]())[_0x1a31f7(0x227)];},'abortController':_0x1d8895[_0x5404b8(0x1ed)]};}[_0x26b8d3(0x1ba)](_0x309806,_0x2a78e5,_0x62a3f0){const _0x3d55cb=_0x26b8d3,_0x58b8fa=this[_0x3d55cb(0x1df)](_0x3d55cb(0x1ea)+_0x309806+_0x3d55cb(0x20d),_0x3d55cb(0x1e6),{'url':_0x2a78e5,'attributes':_0x62a3f0});return{'getId':async()=>(await _0x58b8fa[_0x3d55cb(0x1cc)])[_0x3d55cb(0x20f)](),'abortController':_0x58b8fa[_0x3d55cb(0x1ed)]};}[_0x26b8d3(0x1e9)](){const _0x2dbacb=_0x26b8d3,_0x2ad60b=this[_0x2dbacb(0x1df)](_0x2dbacb(0x1bc),_0x2dbacb(0x226));return{'list':async()=>await(await _0x2ad60b[_0x2dbacb(0x1cc)])[_0x2dbacb(0x20f)](),'abortController':_0x2ad60b[_0x2dbacb(0x1ed)]};}[_0x26b8d3(0x21b)](_0x304825,_0x2117c2){const _0x43fbbc=_0x26b8d3,_0xabfb=this[_0x43fbbc(0x1df)](_0x43fbbc(0x1ea)+_0x304825+_0x43fbbc(0x213)+_0x2117c2,_0x43fbbc(0x20e));return{'execute':async()=>{const _0x8c77ae=_0x43fbbc;await _0xabfb[_0x8c77ae(0x1cc)];},'abortController':_0xabfb[_0x43fbbc(0x1ed)]};}[_0x26b8d3(0x214)](_0x44136c,_0x19e60c){const _0x26c090=_0x26b8d3,_0xd6205e=this[_0x26c090(0x1df)](_0x26c090(0x1ea)+_0x44136c+_0x26c090(0x1e2)+_0x19e60c,_0x26c090(0x20e));return{'execute':async()=>{const _0x31217c=_0x26c090;await _0xd6205e[_0x31217c(0x1cc)];},'abortController':_0xd6205e[_0x26c090(0x1ed)]};}[_0x26b8d3(0x202)](_0x133e29,_0x3d0bc6){const _0x442535=_0x26b8d3,_0x303aa5=this[_0x442535(0x1df)](_0x442535(0x1ea)+_0x133e29+_0x442535(0x1da)+_0x3d0bc6,_0x442535(0x20e));return{'execute':async()=>{const _0x3f4cae=_0x442535;await _0x303aa5[_0x3f4cae(0x1cc)];},'abortController':_0x303aa5[_0x442535(0x1ed)]};}[_0x26b8d3(0x1f7)]({reviewName:_0x265a88,content:_0x12514c,args:_0x53a4a7}){const _0x5f429a=_0x26b8d3,_0x4610cb=this[_0x5f429a(0x1df)](_0x5f429a(0x1fa)+_0x265a88+_0x5f429a(0x1dc),_0x5f429a(0x1e6),{'content':[{'type':_0x5f429a(0x1b1),'content':_0x12514c}],'args':_0x53a4a7});return{'getStream':async()=>{const _0x3024a7=_0x5f429a,_0x42fb03=(await _0x4610cb[_0x3024a7(0x1cc)])[_0x3024a7(0x1ce)];return this[_0x3024a7(0x1b0)](_0x42fb03);},'abortController':_0x4610cb[_0x5f429a(0x1ed)]};}[_0x26b8d3(0x1fb)]({content:_0x17e280,prompt:_0x4ee538,model:_0x4fc200}){const _0x236aa4=_0x26b8d3,_0x2f1ac1=this[_0x236aa4(0x1df)](_0x236aa4(0x1d9),_0x236aa4(0x1e6),{'content':[{'type':_0x236aa4(0x1b1),'content':_0x17e280}],'prompt':_0x4ee538,'model':_0x4fc200});return{'getStream':async()=>{const _0x4805b1=_0x236aa4,_0x22f8f8=(await _0x2f1ac1[_0x4805b1(0x1cc)])[_0x4805b1(0x1ce)];return this[_0x4805b1(0x1b0)](_0x22f8f8);},'abortController':_0x2f1ac1[_0x236aa4(0x1ed)]};}[_0x26b8d3(0x1dd)](_0x4c3ec0,_0x1304c4,_0x1bdbcc){const _0x539faa=_0x26b8d3,_0x4d56de=this[_0x539faa(0x1df)](_0x539faa(0x1ea)+_0x4c3ec0+_0x539faa(0x1b4)+_0x1304c4+_0x539faa(0x1bb),_0x539faa(0x1f2),{'positiveCount':_0x1bdbcc[_0x539faa(0x225)],'totalCount':_0x1bdbcc[_0x539faa(0x200)],'modificationId':_0x1bdbcc[_0x539faa(0x22b)]});return{'execute':async()=>{const _0x88dd9=_0x539faa;await _0x4d56de[_0x88dd9(0x1cc)];},'abortController':_0x4d56de[_0x539faa(0x1ed)]};}[_0x26b8d3(0x22d)](_0x4a708,_0x3b5779,_0x36ceec){const _0x3d515a=_0x26b8d3,_0x37866b=this[_0x3d515a(0x1df)](_0x3d515a(0x1db)+_0x4a708+_0x3d515a(0x223)+_0x3b5779+_0x3d515a(0x1bb),_0x3d515a(0x1f2),{'positiveCount':_0x36ceec[_0x3d515a(0x225)],'totalCount':_0x36ceec[_0x3d515a(0x200)]});return{'execute':async()=>{const _0x5e87a2=_0x3d515a;await _0x37866b[_0x5e87a2(0x1cc)];},'abortController':_0x37866b[_0x3d515a(0x1ed)]};}[_0x26b8d3(0x22a)](_0x1252bd,_0x50991d){const _0x24aad1=_0x26b8d3,_0x516a2f=this[_0x24aad1(0x1df)](_0x24aad1(0x21a)+_0x1252bd+_0x24aad1(0x1bb),_0x24aad1(0x1f2),{'positiveCount':_0x50991d[_0x24aad1(0x225)],'totalCount':_0x50991d[_0x24aad1(0x200)]});return{'execute':async()=>{const _0x17a7bb=_0x24aad1;await _0x516a2f[_0x17a7bb(0x1cc)];},'abortController':_0x516a2f[_0x24aad1(0x1ed)]};}[_0x26b8d3(0x1d1)](_0x88ebca,_0x419aa0,_0x235ba3,_0x5d2502){const _0x152831=_0x26b8d3,_0x583c93=this[_0x152831(0x1df)](_0x152831(0x1fa)+_0x88ebca+_0x152831(0x223)+_0x419aa0+_0x152831(0x1bb),_0x152831(0x1f2),{'positiveCount':_0x235ba3[_0x152831(0x225)],'totalCount':_0x235ba3[_0x152831(0x200)],'dataId':_0x5d2502});return{'execute':async()=>{const _0x577b06=_0x152831;await _0x583c93[_0x577b06(0x1cc)];},'abortController':_0x583c93[_0x152831(0x1ed)]};}[_0x26b8d3(0x235)](_0x34dfb9,_0xc94e1,_0x424abb){const _0x1bc873=_0x26b8d3,_0x5240e5=this[_0x1bc873(0x1df)](_0x1bc873(0x1fc)+_0x34dfb9+_0x1bc873(0x1bb),_0x1bc873(0x1f2),{'positiveCount':_0xc94e1[_0x1bc873(0x225)],'totalCount':_0xc94e1[_0x1bc873(0x200)],'dataId':_0x424abb});return{'execute':async()=>{const _0x2d03dd=_0x1bc873;await _0x5240e5[_0x2d03dd(0x1cc)];},'abortController':_0x5240e5[_0x1bc873(0x1ed)]};}[_0x26b8d3(0x1df)](_0x34f5b3,_0x5192aa,_0x9d1ac7){const _0x470b3c=_0x26b8d3,_0x2c9be3=new AbortController(),_0x1150d3=_0x9d1ac7 instanceof FormData,_0x1e1778={'Authorization':_0x470b3c(0x224)+this[_0x470b3c(0x204)]?.[_0x470b3c(0x207)]};_0x9d1ac7&&!_0x1150d3&&(_0x1e1778[_0x470b3c(0x1d2)]=_0x470b3c(0x239));const _0x2723be={'method':_0x5192aa,'headers':_0x1e1778,'signal':_0x2c9be3[_0x470b3c(0x230)]};return _0x9d1ac7&&(_0x2723be[_0x470b3c(0x1ce)]=_0x1150d3?_0x9d1ac7:JSON[_0x470b3c(0x1b7)](_0x9d1ac7)),{'request':fetch(''+this[_0x470b3c(0x20c)]+_0x34f5b3,_0x2723be)[_0x470b3c(0x23a)](_0x8b9fee=>{const _0x5252fd=_0x470b3c;this[_0x5252fd(0x1e3)](_0x8b9fee);})[_0x470b3c(0x23d)](_0x51237=>{const _0x203274=_0x470b3c;if(!_0x51237['ok'])throw new _0x4d585d(_0x203274(0x222),this,{'url':this[_0x203274(0x20c)],'path':_0x34f5b3,'method':_0x5192aa,'body':_0x9d1ac7,'status':(_0x51237||{})[_0x203274(0x1f3)],'statusText':(_0x51237||{})[_0x203274(0x20a)]});return _0x51237;}),'abortController':_0x2c9be3};}async*[_0x26b8d3(0x1b0)](_0x3b68ea){const _0x5b630b=_0x26b8d3,_0x535c73=[],_0x4b811f=_0x3b68ea[_0x5b630b(0x1ee)](),_0x52508f=_0xeac24c({'onError':_0x1f848e=>{const _0x59d7ba=_0x5b630b;this[_0x59d7ba(0x1e3)](_0x1f848e);},'onEvent':_0x306717=>{const _0x3b5568=_0x5b630b;_0x306717[_0x3b5568(0x1c6)]=JSON[_0x3b5568(0x22e)](_0x306717[_0x3b5568(0x1c6)]),_0x535c73[_0x3b5568(0x1ca)](_0x306717);}});try{let _0x2bdb19=!0x1;for(;!_0x2bdb19;){const {done:_0x5943c0,value:_0xa84f3b}=await _0x4b811f[_0x5b630b(0x1bf)]();_0x5943c0&&(_0x2bdb19=!0x0),_0x52508f[_0x5b630b(0x1d0)](this[_0x5b630b(0x23b)][_0x5b630b(0x233)](_0xa84f3b,{'stream':!0x0})),yield*_0x535c73,_0x535c73[_0x5b630b(0x1e5)]=0x0;}}catch(_0x3ee495){this[_0x5b630b(0x1e3)](_0x3ee495);}finally{_0x4b811f[_0x5b630b(0x1cf)](),_0x52508f[_0x5b630b(0x1d8)]();}}[_0x26b8d3(0x1e3)](_0x14a1de){const _0x4209b9=_0x26b8d3;if(_0x14a1de instanceof _0x4d585d)throw _0x14a1de;if(_0x14a1de instanceof Error&&_0x4209b9(0x229)===_0x14a1de[_0x4209b9(0x1de)])throw new _0x4d585d(_0x4209b9(0x1c8),this,{'originalError':_0x14a1de});throw new _0x4d585d(_0x4209b9(0x222),this,{'originalError':_0x14a1de});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1354cc=_0x3b8b;(function(_0x186084,_0x1b25a1){const _0x343e18=_0x3b8b,_0x220167=_0x186084();while(!![]){try{const _0x5d046f=-parseInt(_0x343e18(0x8a))/0x1*(parseInt(_0x343e18(0xa5))/0x2)+parseInt(_0x343e18(0x97))/0x3*(parseInt(_0x343e18(0xd7))/0x4)+parseInt(_0x343e18(0xd3))/0x5+-parseInt(_0x343e18(0xb2))/0x6*(-parseInt(_0x343e18(0xa9))/0x7)+-parseInt(_0x343e18(0xc3))/0x8+parseInt(_0x343e18(0xce))/0x9+-parseInt(_0x343e18(0xe2))/0xa*(parseInt(_0x343e18(0xaa))/0xb);if(_0x5d046f===_0x1b25a1)break;else _0x220167['push'](_0x220167['shift']());}catch(_0x5926b3){_0x220167['push'](_0x220167['shift']());}}}(_0x171e,0x34c3d));import{ViewDowncastWriter as _0x34d543}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x53fe17,Editor as _0x8d2c3d}from'ckeditor5/src/core.js';function _0x171e(){const _0xa5fc33=['emptyElement','getLastMatchingPosition','isPremiumPlugin','1997845rqgoEN','context','floor','element','222212FIBVOw','listenTo','for','push','length','createUIElement','getSelectionText','setAttribute','AIEditing','$textProxy','_displayedFakeSelectionLocked','10RiTHJM','indexOf','ai-selection:','_nextDataId','addMarker','getStart','containerElement','add','_setDataIdsOnChildren','plugins','toView','schema','version','editingDowncast','getMarkersGroup','markers','getSelection','fromCharCode','20662kgxDRU','pluginName','RealTimeCollaborationClient','ck-fake-ai-selection','data-id','model','isOpening','isAtEnd','getWalker','afterInit','createRangeIn','markerToElement','get','6uPjvSv',':start></','getSelectedContent','markerName','modelToViewWithIds',':end></','sessionId','_integrateEditor','isContent','name','_getMarkersInDocumentOrder','random','from','join','40wCpsLy','showFakeVisualSelection','ai-selection','getChildren','5397QuHNCv','3369861BANYDq','conversion','_displayedFakeSelectionId','editors','processor','selection','isOfficialPlugin','view','1506wJqwhw','getDocumentData','end','toData','hideFakeVisualSelection','isBefore','isAfter','convertAiChatSelectionMarker','removeMarker','editing','data','trim','createRange','_sessionId','ck-ai-assistant-ui_theme','change',':start>','1476720rVTgeS','ready','sort','substring','markerToHighlight','start','getRoot','dataDowncast','removeAllRanges','has',':end>','3744990AhabrR','document'];_0x171e=function(){return _0xa5fc33;};return _0x171e();}function _0x3b8b(_0x3ef78d,_0x4745e0){const _0x171e0b=_0x171e();return _0x3b8b=function(_0x3b8bc0,_0x1eda1e){_0x3b8bc0=_0x3b8bc0-0x7b;let _0xecf21d=_0x171e0b[_0x3b8bc0];return _0xecf21d;},_0x3b8b(_0x3ef78d,_0x4745e0);}import{uid as _0x588605}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3b8585}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1354cc(0xa7);export class AIEditing extends _0x53fe17{[_0x1354cc(0xac)]=null;[_0x1354cc(0xe1)]=!0x1;[_0x1354cc(0xbf)];static get[_0x1354cc(0x8b)](){const _0x8f8c8f=_0x1354cc;return _0x8f8c8f(0xdf);}static get[_0x1354cc(0xb0)](){return!0x0;}static get[_0x1354cc(0xd2)](){return!0x0;}get[_0x1354cc(0x9d)](){const _0x2cdc52=_0x1354cc;if(!this[_0x2cdc52(0xbf)]){const _0x5360da=_0x3b8585(this[_0x2cdc52(0xd4)]),_0x4832a1=_0x5360da[_0x2cdc52(0x81)][_0x2cdc52(0xcc)](_0x2cdc52(0x8c))&&_0x5360da[_0x2cdc52(0x81)][_0x2cdc52(0x96)](_0x2cdc52(0x8c))[_0x2cdc52(0x9d)];this[_0x2cdc52(0xbf)]=_0x4832a1||_0x588605();}return this[_0x2cdc52(0xbf)];}[_0x1354cc(0xb3)](){const _0x3299ea=_0x1354cc,_0x405c15=_0x3b8585(this[_0x3299ea(0xd4)]),_0x3c4214=_0x405c15[_0x3299ea(0x8f)],_0x5e4a59=_0x405c15[_0x3299ea(0xbc)][_0x3299ea(0x82)](_0x3c4214[_0x3299ea(0xcf)][_0x3299ea(0xc9)](),{'convertAiChatSelectionMarker':!0x0}),_0x2218cf=new _0x34d543(_0x405c15[_0x3299ea(0xbb)][_0x3299ea(0xb1)][_0x3299ea(0xcf)]);this[_0x3299ea(0x80)](_0x5e4a59,_0x2218cf);let _0x23d330=_0x405c15[_0x3299ea(0xbc)][_0x3299ea(0xae)][_0x3299ea(0xb5)](_0x5e4a59);const _0x5a7b48=this[_0x3299ea(0xa1)](),_0x4c611c=[];for(const _0x2c3917 of _0x5a7b48){const _0x4c23b7='<'+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0x98)+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0xc2),_0x9f9cef=_0x23d330[_0x3299ea(0xe3)](_0x4c23b7);_0x23d330=_0x23d330[_0x3299ea(0xc6)](0x0,_0x9f9cef)+_0x23d330[_0x3299ea(0xc6)](_0x9f9cef+_0x4c23b7[_0x3299ea(0xdb)]);const _0x23102c='<'+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0x9c)+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0xcd),_0x59c798=_0x23d330[_0x3299ea(0xe3)](_0x23102c);_0x23d330=_0x23d330[_0x3299ea(0xc6)](0x0,_0x59c798)+_0x23d330[_0x3299ea(0xc6)](_0x59c798+_0x23102c[_0x3299ea(0xdb)]),_0x4c611c[_0x3299ea(0xda)]({'markerName':_0x2c3917[_0x3299ea(0xa0)],'start':_0x9f9cef,'end':_0x59c798,'htmlFragment':_0x23d330[_0x3299ea(0xc6)](_0x9f9cef,_0x59c798)});}return{'content':_0x23d330,'version':_0x405c15[_0x3299ea(0x8f)][_0x3299ea(0xcf)][_0x3299ea(0x84)],'sessionId':this[_0x3299ea(0x9d)],'selections':_0x4c611c};}async[_0x1354cc(0x93)](){const _0x5bb20e=_0x1354cc;this[_0x5bb20e(0xd4)]instanceof _0x8d2c3d?this[_0x5bb20e(0x9e)](this[_0x5bb20e(0xd4)]):this[_0x5bb20e(0xd8)](this[_0x5bb20e(0xd4)][_0x5bb20e(0xad)],_0x5bb20e(0x7f),(_0x4ad3ea,_0x575220)=>{const _0xcd756d=_0x5bb20e;_0x575220['on'](_0xcd756d(0xc4),()=>{const _0x4da1f8=_0xcd756d;this[_0x4da1f8(0x9e)](_0x575220);});});}[_0x1354cc(0x9e)](_0x191e5a){const _0x14a0d4=_0x1354cc;_0x191e5a[_0x14a0d4(0xab)][_0x14a0d4(0xd9)](_0x14a0d4(0x85))[_0x14a0d4(0xc7)]({'model':_0x14a0d4(0xa7),'view':{'classes':[_0x14a0d4(0x8d),_0x14a0d4(0xc0)],'priority':0xc}}),_0x191e5a[_0x14a0d4(0xab)][_0x14a0d4(0xd9)](_0x14a0d4(0xca))[_0x14a0d4(0x95)]({'model':_0x14a0d4(0xa7),'view':(_0x2a0d59,{writer:_0x3690a1,options:_0x1d10ae})=>_0x1d10ae[_0x14a0d4(0xb9)]?_0x3690a1[_0x14a0d4(0xdc)](_0x2a0d59[_0x14a0d4(0x9a)]+':'+(_0x2a0d59[_0x14a0d4(0x90)]?_0x14a0d4(0xc8):_0x14a0d4(0xb4))):null});}[_0x1354cc(0xa6)](_0x574965,_0x3c84e7,_0x1c62e6=!0x1,_0x2ba6c7=!0x1){const _0x582dce=_0x1354cc;if(this[_0x582dce(0xe1)]&&!_0x2ba6c7)return!0x1;const _0x14f2e2=_0x3b8585(this[_0x582dce(0xd4)])[_0x582dce(0x8f)];return _0x14f2e2[_0x582dce(0xc1)](_0x44712e=>{const _0x4c8801=_0x582dce;this[_0x4c8801(0xac)]&&this[_0x4c8801(0xb6)](this[_0x4c8801(0xac)]),this[_0x4c8801(0xac)]=_0x3c84e7,this[_0x4c8801(0xe1)]=_0x1c62e6;let _0x54e454=0x0;for(let _0x40244a of _0x574965){const _0x2295a9=_0x4c8801(0xe4)+_0x54e454;if(_0x40244a[_0x4c8801(0xc8)][_0x4c8801(0x91)]){const _0x3482e9=_0x40244a[_0x4c8801(0xc8)][_0x4c8801(0xd1)](({item:_0x5313e6})=>!_0x14f2e2[_0x4c8801(0x83)][_0x4c8801(0x9f)](_0x5313e6),{'boundaries':_0x40244a});_0x40244a=_0x44712e[_0x4c8801(0xbe)](_0x3482e9,_0x40244a[_0x4c8801(0xb4)]);}_0x44712e[_0x4c8801(0x7c)](_0x2295a9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x40244a}),_0x54e454++;}}),window[_0x582dce(0x88)]()?.[_0x582dce(0xcb)](),!0x0;}[_0x1354cc(0xb6)](_0x4329ab){const _0x4b22c7=_0x1354cc;if(this[_0x4b22c7(0xac)]!=_0x4329ab)return!0x1;this[_0x4b22c7(0xac)]=null,this[_0x4b22c7(0xe1)]=!0x1;const _0x369325=_0x3b8585(this[_0x4b22c7(0xd4)]),_0x3e00b3=_0x369325[_0x4b22c7(0x8f)][_0x4b22c7(0x87)][_0x4b22c7(0x86)](_0x4b22c7(0xa7));return _0x369325[_0x4b22c7(0x8f)][_0x4b22c7(0xc1)](_0x139f70=>{const _0xe0a454=_0x4b22c7;for(const _0x330a6e of _0x3e00b3)_0x139f70[_0xe0a454(0xba)](_0x330a6e);}),!0x0;}[_0x1354cc(0x9b)](_0x2748a1){const _0x12d1c4=_0x1354cc,_0x33c97f=_0x3b8585(this[_0x12d1c4(0xd4)]),_0x2b6c92=_0x33c97f[_0x12d1c4(0xbc)][_0x12d1c4(0x82)](_0x2748a1),_0x235d55=new _0x34d543(_0x33c97f[_0x12d1c4(0xbb)][_0x12d1c4(0xb1)][_0x12d1c4(0xcf)]);return this[_0x12d1c4(0x80)](_0x2b6c92,_0x235d55),_0x2b6c92;}[_0x1354cc(0x80)](_0x5553d3,_0x5648d0){const _0x4a54fe=_0x1354cc;let _0x33b845=!0x1;const _0x551dcd=new Set();for(const _0x1ec960 of _0x5553d3[_0x4a54fe(0xa8)]()){const _0x2cae2c=_0x1ec960['is'](_0x4a54fe(0xd0))||_0x1ec960['is'](_0x4a54fe(0x7e));if(!_0x1ec960['is'](_0x4a54fe(0xd6)))continue;(this[_0x4a54fe(0x80)](_0x1ec960,_0x5648d0)||_0x2cae2c)&&(_0x5648d0[_0x4a54fe(0xde)](_0x4a54fe(0x8e),this[_0x4a54fe(0x7b)](_0x551dcd),_0x1ec960),_0x33b845=!0x0);}return _0x33b845;}[_0x1354cc(0x7b)](_0x32a41d){const _0x472d84=_0x1354cc;let _0x76b12b;do{_0x76b12b='';for(let _0x16d6b3=0x0;_0x16d6b3<0x4;_0x16d6b3++)_0x76b12b+=String[_0x472d84(0x89)](0x61+Math[_0x472d84(0xd5)](0x1a*Math[_0x472d84(0xa2)]()));}while(_0x32a41d[_0x472d84(0xcc)](_0x76b12b));return _0x32a41d[_0x472d84(0x7f)](_0x76b12b),_0x76b12b;}[_0x1354cc(0xdd)](){const _0x398725=_0x1354cc,{model:_0x1cb78e}=_0x3b8585(this[_0x398725(0xd4)]),_0x34b46d=_0x1cb78e[_0x398725(0xcf)][_0x398725(0xaf)],_0x384a44=_0x1cb78e[_0x398725(0x99)](_0x34b46d),_0x10f2a5=[],_0x528174=_0x1cb78e[_0x398725(0x94)](_0x384a44)[_0x398725(0x92)]();for(const {item:_0x4ff4f0}of _0x528174)_0x4ff4f0['is'](_0x398725(0xe0))?_0x10f2a5[_0x398725(0xda)](_0x4ff4f0[_0x398725(0xbc)]):_0x4ff4f0['is'](_0x398725(0xd6))&&_0x10f2a5[_0x398725(0xdb)]>0x0&&'\x20'!==_0x10f2a5[_0x10f2a5[_0x398725(0xdb)]-0x1]&&_0x10f2a5[_0x398725(0xda)]('\x20');return'\x22'+_0x10f2a5[_0x398725(0xa4)]('')[_0x398725(0xbd)]()+'\x22';}[_0x1354cc(0xa1)](){const _0xc35e9a=_0x1354cc,_0x41c25c=_0x3b8585(this[_0xc35e9a(0xd4)])[_0xc35e9a(0x8f)];return Array[_0xc35e9a(0xa3)](_0x41c25c[_0xc35e9a(0x87)][_0xc35e9a(0x86)](_0xc35e9a(0xa7)))[_0xc35e9a(0xc5)]((_0x5a031a,_0x16e0df)=>_0x5a031a[_0xc35e9a(0x7d)]()[_0xc35e9a(0xb7)](_0x16e0df[_0xc35e9a(0x7d)]())?-0x1:_0x5a031a[_0xc35e9a(0x7d)]()[_0xc35e9a(0xb8)](_0x16e0df[_0xc35e9a(0x7d)]())?0x1:0x0);}}
23
+ const _0x53ce06=_0x15c9;(function(_0x380086,_0x52226d){const _0x44b487=_0x15c9,_0x63bfa0=_0x380086();while(!![]){try{const _0x58c527=-parseInt(_0x44b487(0x102))/0x1+parseInt(_0x44b487(0xeb))/0x2*(parseInt(_0x44b487(0x12b))/0x3)+-parseInt(_0x44b487(0x11f))/0x4+parseInt(_0x44b487(0x104))/0x5*(parseInt(_0x44b487(0xf2))/0x6)+parseInt(_0x44b487(0xfd))/0x7+-parseInt(_0x44b487(0xe4))/0x8*(-parseInt(_0x44b487(0x10a))/0x9)+parseInt(_0x44b487(0xd8))/0xa*(-parseInt(_0x44b487(0xc8))/0xb);if(_0x58c527===_0x52226d)break;else _0x63bfa0['push'](_0x63bfa0['shift']());}catch(_0x1de1e4){_0x63bfa0['push'](_0x63bfa0['shift']());}}}(_0x17d3,0x543a6));import{ViewDowncastWriter as _0x270c4e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2feff5,Editor as _0x1ded02}from'ckeditor5/src/core.js';import{uid as _0x2ce3e3}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x385df4}from'./utils/geteditorfromcontext.js';function _0x15c9(_0x1c8147,_0x561758){const _0x17d36f=_0x17d3();return _0x15c9=function(_0x15c9be,_0x2277a9){_0x15c9be=_0x15c9be-0xc7;let _0x44c98b=_0x17d36f[_0x15c9be];return _0x44c98b;},_0x15c9(_0x1c8147,_0x561758);}function _0x17d3(){const _0x5f209b=['246085AbjYaA','ready','3655cSkdCj',':start></','join','get','emptyElement','view','100881cGishA','isPremiumPlugin',':end></','ck-ai-assistant-ui_theme','containerElement','random','listenTo','ai-selection','ai-selection:','createRange','start','modelToViewWithIds','getLastMatchingPosition','isOpening','getStart','dataDowncast','hideFakeVisualSelection','getChildren','isContent','getWalker','getSelectionText','923956TsCnap','_setDataIdsOnChildren','ck-fake-ai-selection','add','_integrateEditor','removeMarker','document','selection','markerToHighlight','pluginName','name','AIEditing','56043EGhPIn','removeAllRanges',':end>','data-id','processor','data','getSelection','462803VcoGJE','element','addMarker','getDocumentData','markerToElement','getMarkersGroup','end','fromCharCode','markerName','_nextDataId','createUIElement','push','convertAiChatSelectionMarker','$textProxy','isAtEnd','substring','60pupAUO','change','isBefore','editing','_displayedFakeSelectionId','trim','markers',':start>','getRoot','sort','editingDowncast','for','56MXDhQd','version','isOfficialPlugin','conversion','sessionId','RealTimeCollaborationClient','setAttribute','46YgFogf','schema','has','editors','showFakeVisualSelection','afterInit','length','4638YXOsOW','plugins','_getMarkersInDocumentOrder','floor','isAfter','toView','from','_displayedFakeSelectionLocked','toData','createRangeIn','context','9247BvGXYg','model','getSelectedContent','indexOf','_sessionId'];_0x17d3=function(){return _0x5f209b;};return _0x17d3();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x53ce06(0x111);export class AIEditing extends _0x2feff5{[_0x53ce06(0xdc)]=null;[_0x53ce06(0xf9)]=!0x1;[_0x53ce06(0x101)];static get[_0x53ce06(0x128)](){const _0x45f111=_0x53ce06;return _0x45f111(0x12a);}static get[_0x53ce06(0xe6)](){return!0x0;}static get[_0x53ce06(0x10b)](){return!0x0;}get[_0x53ce06(0xe8)](){const _0x4df52b=_0x53ce06;if(!this[_0x4df52b(0x101)]){const _0x32b217=_0x385df4(this[_0x4df52b(0xfc)]),_0x45cfe5=_0x32b217[_0x4df52b(0xf3)][_0x4df52b(0xed)](_0x4df52b(0xe9))&&_0x32b217[_0x4df52b(0xf3)][_0x4df52b(0x107)](_0x4df52b(0xe9))[_0x4df52b(0xe8)];this[_0x4df52b(0x101)]=_0x45cfe5||_0x2ce3e3();}return this[_0x4df52b(0x101)];}[_0x53ce06(0xcb)](){const _0x251a76=_0x53ce06,_0x4c7f30=_0x385df4(this[_0x251a76(0xfc)]),_0x2e27e5=_0x4c7f30[_0x251a76(0xfe)],_0x49a67b=_0x4c7f30[_0x251a76(0x130)][_0x251a76(0xf7)](_0x2e27e5[_0x251a76(0x125)][_0x251a76(0xe0)](),{'convertAiChatSelectionMarker':!0x0}),_0x5d8827=new _0x270c4e(_0x4c7f30[_0x251a76(0xdb)][_0x251a76(0x109)][_0x251a76(0x125)]);this[_0x251a76(0x120)](_0x49a67b,_0x5d8827);let _0x42d590=_0x4c7f30[_0x251a76(0x130)][_0x251a76(0x12f)][_0x251a76(0xfa)](_0x49a67b);const _0x5455e9=this[_0x251a76(0xf4)](),_0x418a13=[];for(const _0x30bc60 of _0x5455e9){const _0x1b5e48='<'+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x105)+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0xdf),_0x4a5e07=_0x42d590[_0x251a76(0x100)](_0x1b5e48);_0x42d590=_0x42d590[_0x251a76(0xd7)](0x0,_0x4a5e07)+_0x42d590[_0x251a76(0xd7)](_0x4a5e07+_0x1b5e48[_0x251a76(0xf1)]);const _0x45e8b6='<'+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x10c)+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x12d),_0x250eb=_0x42d590[_0x251a76(0x100)](_0x45e8b6);_0x42d590=_0x42d590[_0x251a76(0xd7)](0x0,_0x250eb)+_0x42d590[_0x251a76(0xd7)](_0x250eb+_0x45e8b6[_0x251a76(0xf1)]),_0x418a13[_0x251a76(0xd3)]({'markerName':_0x30bc60[_0x251a76(0x129)],'start':_0x4a5e07,'end':_0x250eb,'htmlFragment':_0x42d590[_0x251a76(0xd7)](_0x4a5e07,_0x250eb)});}return{'content':_0x42d590,'version':_0x4c7f30[_0x251a76(0xfe)][_0x251a76(0x125)][_0x251a76(0xe5)],'sessionId':this[_0x251a76(0xe8)],'selections':_0x418a13};}async[_0x53ce06(0xf0)](){const _0x178a20=_0x53ce06;this[_0x178a20(0xfc)]instanceof _0x1ded02?this[_0x178a20(0x123)](this[_0x178a20(0xfc)]):this[_0x178a20(0x110)](this[_0x178a20(0xfc)][_0x178a20(0xee)],_0x178a20(0x122),(_0x246630,_0x17a326)=>{const _0x5ad924=_0x178a20;_0x17a326['on'](_0x5ad924(0x103),()=>{const _0x5bf5e5=_0x5ad924;this[_0x5bf5e5(0x123)](_0x17a326);});});}[_0x53ce06(0x123)](_0x26b041){const _0xdbf3f4=_0x53ce06;_0x26b041[_0xdbf3f4(0xe7)][_0xdbf3f4(0xe3)](_0xdbf3f4(0xe2))[_0xdbf3f4(0x127)]({'model':_0xdbf3f4(0x111),'view':{'classes':[_0xdbf3f4(0x121),_0xdbf3f4(0x10d)],'priority':0xc}}),_0x26b041[_0xdbf3f4(0xe7)][_0xdbf3f4(0xe3)](_0xdbf3f4(0x119))[_0xdbf3f4(0xcc)]({'model':_0xdbf3f4(0x111),'view':(_0xd2399f,{writer:_0x37b90f,options:_0x2d8ff5})=>_0x2d8ff5[_0xdbf3f4(0xd4)]?_0x37b90f[_0xdbf3f4(0xd2)](_0xd2399f[_0xdbf3f4(0xd0)]+':'+(_0xd2399f[_0xdbf3f4(0x117)]?_0xdbf3f4(0x114):_0xdbf3f4(0xce))):null});}[_0x53ce06(0xef)](_0x2ed295,_0x2353e9,_0x2f53b2=!0x1,_0x500a70=!0x1){const _0x438f7d=_0x53ce06;if(this[_0x438f7d(0xf9)]&&!_0x500a70)return!0x1;const _0x5fa5c1=_0x385df4(this[_0x438f7d(0xfc)])[_0x438f7d(0xfe)];return _0x5fa5c1[_0x438f7d(0xd9)](_0x45d36c=>{const _0x2f3d2b=_0x438f7d;this[_0x2f3d2b(0xdc)]&&this[_0x2f3d2b(0x11a)](this[_0x2f3d2b(0xdc)]),this[_0x2f3d2b(0xdc)]=_0x2353e9,this[_0x2f3d2b(0xf9)]=_0x2f53b2;let _0x35a2ad=0x0;for(let _0x45bc9b of _0x2ed295){const _0x1892d2=_0x2f3d2b(0x112)+_0x35a2ad;if(_0x45bc9b[_0x2f3d2b(0x114)][_0x2f3d2b(0xd6)]){const _0x23c4db=_0x45bc9b[_0x2f3d2b(0x114)][_0x2f3d2b(0x116)](({item:_0x3833f6})=>!_0x5fa5c1[_0x2f3d2b(0xec)][_0x2f3d2b(0x11c)](_0x3833f6),{'boundaries':_0x45bc9b});_0x45bc9b=_0x45d36c[_0x2f3d2b(0x113)](_0x23c4db,_0x45bc9b[_0x2f3d2b(0xce)]);}_0x45d36c[_0x2f3d2b(0xca)](_0x1892d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x45bc9b}),_0x35a2ad++;}}),window[_0x438f7d(0xc7)]()?.[_0x438f7d(0x12c)](),!0x0;}[_0x53ce06(0x11a)](_0x5820de){const _0x1fad7f=_0x53ce06;if(this[_0x1fad7f(0xdc)]!=_0x5820de)return!0x1;this[_0x1fad7f(0xdc)]=null,this[_0x1fad7f(0xf9)]=!0x1;const _0x3fa174=_0x385df4(this[_0x1fad7f(0xfc)]),_0x22509f=_0x3fa174[_0x1fad7f(0xfe)][_0x1fad7f(0xde)][_0x1fad7f(0xcd)](_0x1fad7f(0x111));return _0x3fa174[_0x1fad7f(0xfe)][_0x1fad7f(0xd9)](_0x19c85a=>{const _0x21165=_0x1fad7f;for(const _0x16262d of _0x22509f)_0x19c85a[_0x21165(0x124)](_0x16262d);}),!0x0;}[_0x53ce06(0x115)](_0x298fd0){const _0x4e1df7=_0x53ce06,_0x5abc43=_0x385df4(this[_0x4e1df7(0xfc)]),_0x26fd78=_0x5abc43[_0x4e1df7(0x130)][_0x4e1df7(0xf7)](_0x298fd0),_0x1ce153=new _0x270c4e(_0x5abc43[_0x4e1df7(0xdb)][_0x4e1df7(0x109)][_0x4e1df7(0x125)]);return this[_0x4e1df7(0x120)](_0x26fd78,_0x1ce153),_0x26fd78;}[_0x53ce06(0x120)](_0x50d40d,_0x5301fa){const _0x4549b4=_0x53ce06;let _0x24f472=!0x1;const _0x123548=new Set();for(const _0x52cf88 of _0x50d40d[_0x4549b4(0x11b)]()){const _0x13e684=_0x52cf88['is'](_0x4549b4(0x108))||_0x52cf88['is'](_0x4549b4(0x10e));if(!_0x52cf88['is'](_0x4549b4(0xc9)))continue;(this[_0x4549b4(0x120)](_0x52cf88,_0x5301fa)||_0x13e684)&&(_0x5301fa[_0x4549b4(0xea)](_0x4549b4(0x12e),this[_0x4549b4(0xd1)](_0x123548),_0x52cf88),_0x24f472=!0x0);}return _0x24f472;}[_0x53ce06(0xd1)](_0x27bef4){const _0x2b0358=_0x53ce06;let _0x646bd;do{_0x646bd='';for(let _0x58034e=0x0;_0x58034e<0x4;_0x58034e++)_0x646bd+=String[_0x2b0358(0xcf)](0x61+Math[_0x2b0358(0xf5)](0x1a*Math[_0x2b0358(0x10f)]()));}while(_0x27bef4[_0x2b0358(0xed)](_0x646bd));return _0x27bef4[_0x2b0358(0x122)](_0x646bd),_0x646bd;}[_0x53ce06(0x11e)](){const _0x2c4f1d=_0x53ce06,{model:_0x502579}=_0x385df4(this[_0x2c4f1d(0xfc)]),_0x132906=_0x502579[_0x2c4f1d(0x125)][_0x2c4f1d(0x126)],_0x2f614c=_0x502579[_0x2c4f1d(0xff)](_0x132906),_0x35f7f3=[],_0x5d9ba2=_0x502579[_0x2c4f1d(0xfb)](_0x2f614c)[_0x2c4f1d(0x11d)]();for(const {item:_0x40bb1d}of _0x5d9ba2)_0x40bb1d['is'](_0x2c4f1d(0xd5))?_0x35f7f3[_0x2c4f1d(0xd3)](_0x40bb1d[_0x2c4f1d(0x130)]):_0x40bb1d['is'](_0x2c4f1d(0xc9))&&_0x35f7f3[_0x2c4f1d(0xf1)]>0x0&&'\x20'!==_0x35f7f3[_0x35f7f3[_0x2c4f1d(0xf1)]-0x1]&&_0x35f7f3[_0x2c4f1d(0xd3)]('\x20');return'\x22'+_0x35f7f3[_0x2c4f1d(0x106)]('')[_0x2c4f1d(0xdd)]()+'\x22';}[_0x53ce06(0xf4)](){const _0x4d2b42=_0x53ce06,_0x367254=_0x385df4(this[_0x4d2b42(0xfc)])[_0x4d2b42(0xfe)];return Array[_0x4d2b42(0xf8)](_0x367254[_0x4d2b42(0xde)][_0x4d2b42(0xcd)](_0x4d2b42(0x111)))[_0x4d2b42(0xe1)]((_0x2d1693,_0x442329)=>_0x2d1693[_0x4d2b42(0x118)]()[_0x4d2b42(0xda)](_0x442329[_0x4d2b42(0x118)]())?-0x1:_0x2d1693[_0x4d2b42(0x118)]()[_0x4d2b42(0xf6)](_0x442329[_0x4d2b42(0x118)]())?0x1:0x0);}}