@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.7

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 (290) 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.d.ts +10 -2
  181. package/src/aichat/model/aichatcontext.js +1 -1
  182. package/src/aichat/model/aichatconversation.js +1 -1
  183. package/src/aichat/model/aichatinteraction.js +1 -1
  184. package/src/aichat/model/aichatmodels.js +1 -1
  185. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  186. package/src/aichat/ui/aichatfeedview.js +1 -1
  187. package/src/aichat/ui/aichatheaderview.js +1 -1
  188. package/src/aichat/ui/aichatview.js +1 -1
  189. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichat/utils/scrollmanager.js +1 -1
  213. package/src/aichathistory/aichathistory.js +1 -1
  214. package/src/aichathistory/aichathistorycontroller.js +1 -1
  215. package/src/aichathistory/aichathistoryui.js +1 -1
  216. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  217. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  219. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  222. package/src/aicore/aiconnector.js +1 -1
  223. package/src/aicore/aiediting.js +1 -1
  224. package/src/aicore/model/aicapabilities.js +1 -1
  225. package/src/aicore/model/aicontext.js +1 -1
  226. package/src/aicore/model/aiinteraction.js +1 -1
  227. package/src/aicore/model/aimodels.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aieditorintegration/aieditorintegration.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  252. package/src/aiquickactions/aiquickactions.js +1 -1
  253. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  254. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  255. package/src/aiquickactions/aiquickactionsui.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  284. package/src/aitabs/aitabs.js +1 -1
  285. package/src/aitabs/aitabsmainview.js +1 -1
  286. package/src/aitabs/tabs/aitabsview.js +1 -1
  287. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  288. package/src/aitabs/tabs/tabpanelview.js +1 -1
  289. package/src/errors.js +1 -1
  290. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x328cb8=_0x2b1e;(function(_0x164df7,_0x1cda9a){const _0x281cbf=_0x2b1e,_0x198665=_0x164df7();while(!![]){try{const _0x11af76=parseInt(_0x281cbf(0x16a))/0x1*(parseInt(_0x281cbf(0x166))/0x2)+parseInt(_0x281cbf(0x184))/0x3+-parseInt(_0x281cbf(0x168))/0x4+-parseInt(_0x281cbf(0x15f))/0x5*(-parseInt(_0x281cbf(0x187))/0x6)+-parseInt(_0x281cbf(0x172))/0x7*(parseInt(_0x281cbf(0x183))/0x8)+parseInt(_0x281cbf(0x182))/0x9*(-parseInt(_0x281cbf(0x177))/0xa)+parseInt(_0x281cbf(0x18a))/0xb*(parseInt(_0x281cbf(0x15d))/0xc);if(_0x11af76===_0x1cda9a)break;else _0x198665['push'](_0x198665['shift']());}catch(_0x46200b){_0x198665['push'](_0x198665['shift']());}}}(_0x22de,0xa4ec7));import{ContextPlugin as _0x583bc9}from'ckeditor5/src/core.js';import{AITabs as _0x15e772}from'../aitabs/aitabs.js';function _0x22de(){const _0x47c132=['showError','errorMessage','removeHistoryItem','3962bOncQF','updateItemTitle','showConversationHistory','openChat','addTab','14300zlFoPN','resizeTabs','updateHistoryItemsWithCategories','setConversationPinned','_historyView','isLoading','isOfficialPlugin','isMaximized','showResizeButton','get','AIChatHistoryUI','1008UyjUsJ','5200jeYqCk','2001705tzPSgc','history','pluginName','49764RQnEJc','AI_CHAT_HISTORY_HEADING','locale','11ZmttOh','hideError','isPremiumPlugin','2589876uyiYeh','selectConversation','355vuKJUC','view','editConversationTitle','AITabs','setLoadingSkeleton','context','plugins','32MsECaI','removeConversation','2197220LIGBHK','delegate','17560iPoSBY','requires','setIsMaximized','updateItems','updateItemLoadingState'];_0x22de=function(){return _0x47c132;};return _0x22de();}import{IconAIHistory as _0x4718df}from'ckeditor5/src/icons.js';function _0x2b1e(_0x298321,_0xd5c2d2){const _0x22de7b=_0x22de();return _0x2b1e=function(_0x2b1e96,_0x34f433){_0x2b1e96=_0x2b1e96-0x15b;let _0x587aa2=_0x22de7b[_0x2b1e96];return _0x587aa2;},_0x2b1e(_0x298321,_0xd5c2d2);}import{AIChatHistoryView as _0x4e11b5}from'./ui/aichathistoryview.js';import{getTranslation as _0x4e6986}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x328cb8(0x174),_0x328cb8(0x167),_0x328cb8(0x161),_0x328cb8(0x17a),_0x328cb8(0x15e),_0x328cb8(0x175),_0x328cb8(0x178)];export class AIChatHistoryUI extends _0x583bc9{static get[_0x328cb8(0x16b)](){return[_0x15e772];}[_0x328cb8(0x17b)];static get[_0x328cb8(0x186)](){const _0x7e21b0=_0x328cb8;return _0x7e21b0(0x181);}static get[_0x328cb8(0x17d)](){return!0x0;}static get[_0x328cb8(0x15c)](){return!0x0;}constructor(_0x1ee768){const _0x134c00=_0x328cb8;super(_0x1ee768);const _0x3d5f06=this[_0x134c00(0x164)][_0x134c00(0x165)][_0x134c00(0x180)](_0x134c00(0x162));this[_0x134c00(0x17b)]=new _0x4e11b5(this[_0x134c00(0x164)][_0x134c00(0x189)],_0x3d5f06[_0x134c00(0x17f)]),this[_0x134c00(0x17b)][_0x134c00(0x169)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x3d5f06[_0x134c00(0x160)][_0x134c00(0x176)]({'id':_0x134c00(0x185),'buttonLabel':_0x4e6986(this[_0x134c00(0x164)][_0x134c00(0x189)],_0x134c00(0x188)),'buttonIcon':_0x4718df,'order':0x0,'content':this[_0x134c00(0x17b)]});}[_0x328cb8(0x171)](_0x24a68f){const _0x3b9a61=_0x328cb8;this[_0x3b9a61(0x17b)][_0x3b9a61(0x171)](_0x24a68f);}[_0x328cb8(0x16d)](_0x21394d){const _0x4dc782=_0x328cb8;this[_0x4dc782(0x17b)][_0x4dc782(0x179)](_0x21394d);}[_0x328cb8(0x173)](_0x1f21ab,_0xf21750){const _0x21d62f=_0x328cb8;this[_0x21d62f(0x17b)][_0x21d62f(0x173)](_0x1f21ab,_0xf21750);}[_0x328cb8(0x16e)](_0x321ce7,_0x66fd8d,_0x528a29){const _0x5340cd=_0x328cb8;this[_0x5340cd(0x17b)][_0x5340cd(0x16e)](_0x321ce7,_0x66fd8d,_0x528a29);}[_0x328cb8(0x163)](_0x7c2e9d){const _0x2ee736=_0x328cb8;this[_0x2ee736(0x17b)][_0x2ee736(0x17c)]=_0x7c2e9d;}[_0x328cb8(0x16f)](_0x229cc6){const _0x373256=_0x328cb8;this[_0x373256(0x17b)][_0x373256(0x170)]=_0x229cc6;}[_0x328cb8(0x15b)](){const _0x41a94f=_0x328cb8;this[_0x41a94f(0x17b)][_0x41a94f(0x170)]='';}[_0x328cb8(0x16c)](_0x4e02f9){const _0x2f1073=_0x328cb8;this[_0x2f1073(0x17b)][_0x2f1073(0x17e)]=_0x4e02f9;}}
23
+ const _0x2413e6=_0x122c;(function(_0x34b60c,_0x5133a2){const _0x546f94=_0x122c,_0x363945=_0x34b60c();while(!![]){try{const _0x925111=parseInt(_0x546f94(0x105))/0x1+-parseInt(_0x546f94(0x103))/0x2*(-parseInt(_0x546f94(0xfe))/0x3)+parseInt(_0x546f94(0xdf))/0x4+-parseInt(_0x546f94(0xef))/0x5*(-parseInt(_0x546f94(0xe1))/0x6)+-parseInt(_0x546f94(0xe2))/0x7*(parseInt(_0x546f94(0xeb))/0x8)+parseInt(_0x546f94(0xea))/0x9*(parseInt(_0x546f94(0xdc))/0xa)+-parseInt(_0x546f94(0xe5))/0xb;if(_0x925111===_0x5133a2)break;else _0x363945['push'](_0x363945['shift']());}catch(_0x5f0fcb){_0x363945['push'](_0x363945['shift']());}}}(_0x5137,0xe890d));import{ContextPlugin as _0x7ecb39}from'ckeditor5/src/core.js';function _0x122c(_0x5033c4,_0x3497b8){const _0x5137cb=_0x5137();return _0x122c=function(_0x122cc6,_0x2893bb){_0x122cc6=_0x122cc6-0xd9;let _0x2020ae=_0x5137cb[_0x122cc6];return _0x2020ae;},_0x122c(_0x5033c4,_0x3497b8);}import{AITabs as _0xfd065d}from'../aitabs/aitabs.js';import{IconAIHistory as _0x4f4bee}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xa3a738}from'./ui/aichathistoryview.js';import{getTranslation as _0x1e28e0}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x2413e6(0xf1),_0x2413e6(0xed),_0x2413e6(0xf3),_0x2413e6(0xd9),_0x2413e6(0xe8),_0x2413e6(0xe9),_0x2413e6(0xdd)];function _0x5137(){const _0x19b41b=['history','setConversationPinned','isOfficialPlugin','addTab','10EkeNfy','resizeTabs','setLoadingSkeleton','725708CKwChi','AI_CHAT_HISTORY_HEADING','193026knEjCh','1611239PXsovA','requires','view','40813619BMDaCc','removeHistoryItem','isPremiumPlugin','selectConversation','openChat','4756626PrXxme','16hiLRJj','updateItemTitle','removeConversation','updateItems','245DDXOaf','updateHistoryItemsWithCategories','showConversationHistory','isLoading','editConversationTitle','_historyView','plugins','updateItemLoadingState','hideError','pluginName','showError','delegate','showResizeButton','locale','context','4357383iTOckC','setIsMaximized','errorMessage','AITabs','isMaximized','2qKYMTH','AIChatHistoryUI','1384491gjYcOv','get'];_0x5137=function(){return _0x19b41b;};return _0x5137();}export class AIChatHistoryUI extends _0x7ecb39{static get[_0x2413e6(0xe3)](){return[_0xfd065d];}[_0x2413e6(0xf4)];static get[_0x2413e6(0xf8)](){const _0x14d463=_0x2413e6;return _0x14d463(0x104);}static get[_0x2413e6(0xda)](){return!0x0;}static get[_0x2413e6(0xe7)](){return!0x0;}constructor(_0x91f6e5){const _0x11fa17=_0x2413e6;super(_0x91f6e5);const _0x255efe=this[_0x11fa17(0xfd)][_0x11fa17(0xf5)][_0x11fa17(0x106)](_0x11fa17(0x101));this[_0x11fa17(0xf4)]=new _0xa3a738(this[_0x11fa17(0xfd)][_0x11fa17(0xfc)],_0x255efe[_0x11fa17(0xfb)]),this[_0x11fa17(0xf4)][_0x11fa17(0xfa)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x255efe[_0x11fa17(0xe4)][_0x11fa17(0xdb)]({'id':_0x11fa17(0x107),'buttonLabel':_0x1e28e0(this[_0x11fa17(0xfd)][_0x11fa17(0xfc)],_0x11fa17(0xe0)),'buttonIcon':_0x4f4bee,'order':0x0,'content':this[_0x11fa17(0xf4)]});}[_0x2413e6(0xe6)](_0x428435){const _0x4abac7=_0x2413e6;this[_0x4abac7(0xf4)][_0x4abac7(0xe6)](_0x428435);}[_0x2413e6(0xee)](_0x25056c){const _0xd1d513=_0x2413e6;this[_0xd1d513(0xf4)][_0xd1d513(0xf0)](_0x25056c);}[_0x2413e6(0xec)](_0x2c549a,_0x1b2c27){const _0x290553=_0x2413e6;this[_0x290553(0xf4)][_0x290553(0xec)](_0x2c549a,_0x1b2c27);}[_0x2413e6(0xf6)](_0x1d47fb,_0x2535a7,_0x702ac8){const _0x447326=_0x2413e6;this[_0x447326(0xf4)][_0x447326(0xf6)](_0x1d47fb,_0x2535a7,_0x702ac8);}[_0x2413e6(0xde)](_0x48146d){const _0x49ef87=_0x2413e6;this[_0x49ef87(0xf4)][_0x49ef87(0xf2)]=_0x48146d;}[_0x2413e6(0xf9)](_0x27f0e1){const _0x49d3e0=_0x2413e6;this[_0x49d3e0(0xf4)][_0x49d3e0(0x100)]=_0x27f0e1;}[_0x2413e6(0xf7)](){const _0x980c31=_0x2413e6;this[_0x980c31(0xf4)][_0x980c31(0x100)]='';}[_0x2413e6(0xff)](_0x3230dd){const _0x3fc6b5=_0x2413e6;this[_0x3fc6b5(0xf4)][_0x3fc6b5(0x102)]=_0x3230dd;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47293d=_0x1a71;(function(_0x2a5a6e,_0x329250){const _0x5c4d17=_0x1a71,_0x5d9aab=_0x2a5a6e();while(!![]){try{const _0x51c594=parseInt(_0x5c4d17(0xa9))/0x1+-parseInt(_0x5c4d17(0xb6))/0x2+-parseInt(_0x5c4d17(0xa6))/0x3+-parseInt(_0x5c4d17(0xc9))/0x4+-parseInt(_0x5c4d17(0xcb))/0x5+-parseInt(_0x5c4d17(0xb8))/0x6*(-parseInt(_0x5c4d17(0xcc))/0x7)+-parseInt(_0x5c4d17(0xc1))/0x8*(-parseInt(_0x5c4d17(0xb0))/0x9);if(_0x51c594===_0x329250)break;else _0x5d9aab['push'](_0x5d9aab['shift']());}catch(_0x56cd06){_0x5d9aab['push'](_0x5d9aab['shift']());}}}(_0x18c3,0x54f2e));import{EmitterMixin as _0xcd538a}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3fc915}from'./aichathistoryitem.js';function _0x1a71(_0x1802db,_0x27c217){const _0x18c389=_0x18c3();return _0x1a71=function(_0x1a717e,_0x4602de){_0x1a717e=_0x1a717e-0xa2;let _0x139d16=_0x18c389[_0x1a717e];return _0x139d16;},_0x1a71(_0x1802db,_0x27c217);}function _0x18c3(){const _0x5076e8=['init','error','updateItemTitle','1208280cQgPwT','updatePinned','3241900UXcZNL','263249awqhYU','map','removeItem','updateItemPinned','itemUpdated','getTime','getMonth','group','777561hgetfl','pinned','loadItems','400961VMaHcY','getFullYear','push','getItem','findIndex','deleteConversation','from','18gVeGaf','splice','updateTitle','itemsLoaded','addItem','fetchConversations','1291458inLFMj','items','42btrRZp','getItems','createdAt','fire','getConversations','getDate','itemRemoved','find','updateConversation','6156424mjfLMO','filter','execute','connector','getResult'];_0x18c3=function(){return _0x5076e8;};return _0x18c3();}export class AIChatHistoryConversations extends _0xcd538a(){[_0x47293d(0xb7)]=[];[_0x47293d(0xc4)];[_0x47293d(0xa5)];constructor({connector:_0x4957a2,group:_0x3528c3}){const _0x1aa085=_0x47293d;super(),this[_0x1aa085(0xc4)]=_0x4957a2,this[_0x1aa085(0xa5)]=_0x3528c3;}async[_0x47293d(0xc6)](){const _0xc950c2=_0x47293d;try{const _0x28419d=this[_0xc950c2(0xc4)][_0xc950c2(0xb5)](this[_0xc950c2(0xa5)]),_0x38af3a=await _0x28419d[_0xc950c2(0xbc)]();this[_0xc950c2(0xa8)](_0x38af3a);}catch(_0x4f5da3){this[_0xc950c2(0xbb)](_0xc950c2(0xc7),{'error':_0x4f5da3,'operation':_0xc950c2(0xc6)});}}[_0x47293d(0xb4)](_0x246e0c){const _0x1c68b3=_0x47293d;this[_0x1c68b3(0xb7)][_0x1c68b3(0xab)](_0x246e0c);}async[_0x47293d(0xce)](_0x3726a2){const _0x456383=_0x47293d,_0x21af42=this[_0x456383(0xb7)][_0x456383(0xad)](_0x2aaaaa=>_0x2aaaaa['id']===_0x3726a2);if(-0x1===_0x21af42)return!0x1;try{return await this[_0x456383(0xc4)][_0x456383(0xae)](_0x3726a2)[_0x456383(0xc3)](),this[_0x456383(0xb7)][_0x456383(0xb1)](_0x21af42,0x1),this[_0x456383(0xbb)](_0x456383(0xbe),{'itemId':_0x3726a2}),!0x0;}catch(_0x2f1972){return this[_0x456383(0xbb)](_0x456383(0xc7),{'error':_0x2f1972,'operation':_0x456383(0xce),'itemId':_0x3726a2}),!0x1;}}[_0x47293d(0xac)](_0x3011db){const _0x554800=_0x47293d;return this[_0x554800(0xb7)][_0x554800(0xbf)](_0x1994b5=>_0x1994b5['id']===_0x3011db);}async[_0x47293d(0xc8)](_0x3b9092,_0x3a4742){const _0xce8808=_0x47293d,_0x2868aa=this[_0xce8808(0xac)](_0x3b9092);if(!_0x2868aa)return!0x1;try{return await this[_0xce8808(0xc4)][_0xce8808(0xc0)](_0x3b9092,{'title':_0x3a4742})[_0xce8808(0xc5)](),_0x2868aa[_0xce8808(0xb2)](_0x3a4742),this[_0xce8808(0xbb)](_0xce8808(0xa2),{'itemId':_0x3b9092,'updates':{'title':_0x3a4742}}),!0x0;}catch(_0x27f3a9){return this[_0xce8808(0xbb)](_0xce8808(0xc7),{'error':_0x27f3a9,'operation':_0xce8808(0xc8),'itemId':_0x3b9092}),!0x1;}}async[_0x47293d(0xcf)](_0x2ff25b,_0x2cf52e){const _0x5795f5=_0x47293d,_0x59da57=this[_0x5795f5(0xac)](_0x2ff25b);if(!_0x59da57)return!0x1;try{return await this[_0x5795f5(0xc4)][_0x5795f5(0xc0)](_0x2ff25b,{'pinned':_0x2cf52e})[_0x5795f5(0xc5)](),_0x59da57[_0x5795f5(0xca)](_0x2cf52e),this[_0x5795f5(0xbb)](_0x5795f5(0xa2),{'itemId':_0x2ff25b,'updates':{'pinned':_0x2cf52e}}),!0x0;}catch(_0x3efdc6){return this[_0x5795f5(0xbb)](_0x5795f5(0xc7),{'error':_0x3efdc6,'operation':_0x5795f5(0xcf),'itemId':_0x2ff25b}),!0x1;}}[_0x47293d(0xa8)](_0x37d76d){const _0x45311c=_0x47293d;try{this[_0x45311c(0xb7)]=[],_0x37d76d[_0x45311c(0xcd)](_0x51ebff=>{const _0x50a641=_0x45311c;this[_0x50a641(0xb4)](new _0x3fc915(_0x51ebff));}),this[_0x45311c(0xbb)](_0x45311c(0xb3),{'items':[...this[_0x45311c(0xb7)]]});}catch(_0xdeab00){this[_0x45311c(0xbb)](_0x45311c(0xc7),{'error':_0xdeab00,'operation':_0x45311c(0xa8)});}}[_0x47293d(0xb9)](_0x5bc9b6={}){const _0x4539d3=_0x47293d,_0x464887=void 0x0!==_0x5bc9b6[_0x4539d3(0xa7)]&&_0x5bc9b6[_0x4539d3(0xa7)],_0x362c81=_0x5bc9b6[_0x4539d3(0xaf)]?new Date(_0x5bc9b6[_0x4539d3(0xaf)][_0x4539d3(0xaa)](),_0x5bc9b6[_0x4539d3(0xaf)][_0x4539d3(0xa4)](),_0x5bc9b6[_0x4539d3(0xaf)][_0x4539d3(0xbd)]()):null,_0x106b1c=_0x5bc9b6['to']?new Date(_0x5bc9b6['to'][_0x4539d3(0xaa)](),_0x5bc9b6['to'][_0x4539d3(0xa4)](),_0x5bc9b6['to'][_0x4539d3(0xbd)]()):null;return this[_0x4539d3(0xb7)][_0x4539d3(0xc2)](_0x95923c=>{const _0x61593f=_0x4539d3;if(_0x95923c[_0x61593f(0xa7)]!==_0x464887)return!0x1;if(_0x106b1c){const _0x5a94f4=new Date(_0x95923c[_0x61593f(0xba)][_0x61593f(0xaa)](),_0x95923c[_0x61593f(0xba)][_0x61593f(0xa4)](),_0x95923c[_0x61593f(0xba)][_0x61593f(0xbd)]());return _0x362c81?_0x362c81[_0x61593f(0xa3)]()===_0x106b1c[_0x61593f(0xa3)]()?_0x5a94f4[_0x61593f(0xa3)]()===_0x362c81[_0x61593f(0xa3)]():_0x5a94f4<_0x106b1c&&_0x5a94f4>=_0x362c81:_0x5a94f4<_0x106b1c;}return!0x0;});}}
23
+ function _0x4440(_0x473d00,_0x1ed90b){const _0x25f733=_0x25f7();return _0x4440=function(_0x444091,_0x1cf0bc){_0x444091=_0x444091-0xdc;let _0x5de148=_0x25f733[_0x444091];return _0x5de148;},_0x4440(_0x473d00,_0x1ed90b);}function _0x25f7(){const _0x3c794f=['filter','updateItemTitle','pinned','fetchConversations','193482nGPVek','from','find','group','getFullYear','init','408840IQDJgr','updatePinned','getTime','error','removeItem','getMonth','10msYqaq','getItem','loadItems','createdAt','updateItemPinned','7384fAdwuo','3vkJIdR','getItems','itemRemoved','6822zmMcKs','items','1519996mmeYIn','getDate','getResult','fire','2604855DKpZMg','connector','itemUpdated','splice','getConversations','1400856daElvL','addItem','push','itemsLoaded','findIndex','execute','2667660PLNHNH','map','deleteConversation','updateConversation','updateTitle','49EUaLWc'];_0x25f7=function(){return _0x3c794f;};return _0x25f7();}const _0x17cc99=_0x4440;(function(_0x27ddc2,_0x272152){const _0x22106d=_0x4440,_0x4dcbd1=_0x27ddc2();while(!![]){try{const _0x32c380=parseInt(_0x22106d(0xe6))/0x1+-parseInt(_0x22106d(0x106))/0x2+parseInt(_0x22106d(0xf8))/0x3*(parseInt(_0x22106d(0xfd))/0x4)+parseInt(_0x22106d(0xdc))/0x5+-parseInt(_0x22106d(0xec))/0x6*(parseInt(_0x22106d(0xe1))/0x7)+parseInt(_0x22106d(0xf7))/0x8*(parseInt(_0x22106d(0xfb))/0x9)+-parseInt(_0x22106d(0xf2))/0xa*(parseInt(_0x22106d(0x101))/0xb);if(_0x32c380===_0x272152)break;else _0x4dcbd1['push'](_0x4dcbd1['shift']());}catch(_0x638e0c){_0x4dcbd1['push'](_0x4dcbd1['shift']());}}}(_0x25f7,0x5fcf2));import{EmitterMixin as _0x3aeb46}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x4a258f}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3aeb46(){[_0x17cc99(0xfc)]=[];[_0x17cc99(0x102)];[_0x17cc99(0xe9)];constructor({connector:_0x428c0d,group:_0x57bb77}){const _0x1606ac=_0x17cc99;super(),this[_0x1606ac(0x102)]=_0x428c0d,this[_0x1606ac(0xe9)]=_0x57bb77;}async[_0x17cc99(0xeb)](){const _0x133b00=_0x17cc99;try{const _0x375d9b=this[_0x133b00(0x102)][_0x133b00(0xe5)](this[_0x133b00(0xe9)]),_0xa3c8b6=await _0x375d9b[_0x133b00(0x105)]();this[_0x133b00(0xf4)](_0xa3c8b6);}catch(_0x72ab54){this[_0x133b00(0x100)](_0x133b00(0xef),{'error':_0x72ab54,'operation':_0x133b00(0xeb)});}}[_0x17cc99(0x107)](_0x5218da){const _0x23b449=_0x17cc99;this[_0x23b449(0xfc)][_0x23b449(0x108)](_0x5218da);}async[_0x17cc99(0xf0)](_0x25beef){const _0x387643=_0x17cc99,_0x3cf465=this[_0x387643(0xfc)][_0x387643(0x10a)](_0x3bae28=>_0x3bae28['id']===_0x25beef);if(-0x1===_0x3cf465)return!0x1;try{return await this[_0x387643(0x102)][_0x387643(0xde)](_0x25beef)[_0x387643(0x10b)](),this[_0x387643(0xfc)][_0x387643(0x104)](_0x3cf465,0x1),this[_0x387643(0x100)](_0x387643(0xfa),{'itemId':_0x25beef}),!0x0;}catch(_0x42ebeb){return this[_0x387643(0x100)](_0x387643(0xef),{'error':_0x42ebeb,'operation':_0x387643(0xf0),'itemId':_0x25beef}),!0x1;}}[_0x17cc99(0xf3)](_0x2bbeaf){const _0x24b051=_0x17cc99;return this[_0x24b051(0xfc)][_0x24b051(0xe8)](_0x2f48b8=>_0x2f48b8['id']===_0x2bbeaf);}async[_0x17cc99(0xe3)](_0x2be074,_0x4d3ace){const _0x5d2d20=_0x17cc99,_0x1de7ad=this[_0x5d2d20(0xf3)](_0x2be074);if(!_0x1de7ad)return!0x1;try{return await this[_0x5d2d20(0x102)][_0x5d2d20(0xdf)](_0x2be074,{'title':_0x4d3ace})[_0x5d2d20(0xff)](),_0x1de7ad[_0x5d2d20(0xe0)](_0x4d3ace),this[_0x5d2d20(0x100)](_0x5d2d20(0x103),{'itemId':_0x2be074,'updates':{'title':_0x4d3ace}}),!0x0;}catch(_0x5e699e){return this[_0x5d2d20(0x100)](_0x5d2d20(0xef),{'error':_0x5e699e,'operation':_0x5d2d20(0xe3),'itemId':_0x2be074}),!0x1;}}async[_0x17cc99(0xf6)](_0x52b0c0,_0x4e6d0c){const _0x263cde=_0x17cc99,_0x24eb40=this[_0x263cde(0xf3)](_0x52b0c0);if(!_0x24eb40)return!0x1;try{return await this[_0x263cde(0x102)][_0x263cde(0xdf)](_0x52b0c0,{'pinned':_0x4e6d0c})[_0x263cde(0xff)](),_0x24eb40[_0x263cde(0xed)](_0x4e6d0c),this[_0x263cde(0x100)](_0x263cde(0x103),{'itemId':_0x52b0c0,'updates':{'pinned':_0x4e6d0c}}),!0x0;}catch(_0x3e51d3){return this[_0x263cde(0x100)](_0x263cde(0xef),{'error':_0x3e51d3,'operation':_0x263cde(0xf6),'itemId':_0x52b0c0}),!0x1;}}[_0x17cc99(0xf4)](_0x1f7d63){const _0x3947f2=_0x17cc99;try{this[_0x3947f2(0xfc)]=[],_0x1f7d63[_0x3947f2(0xdd)](_0x5c7362=>{const _0xe3fd8a=_0x3947f2;this[_0xe3fd8a(0x107)](new _0x4a258f(_0x5c7362));}),this[_0x3947f2(0x100)](_0x3947f2(0x109),{'items':[...this[_0x3947f2(0xfc)]]});}catch(_0x3cc351){this[_0x3947f2(0x100)](_0x3947f2(0xef),{'error':_0x3cc351,'operation':_0x3947f2(0xf4)});}}[_0x17cc99(0xf9)](_0x41ae15={}){const _0x4bc50a=_0x17cc99,_0x13c1bf=void 0x0!==_0x41ae15[_0x4bc50a(0xe4)]&&_0x41ae15[_0x4bc50a(0xe4)],_0x3bd6a9=_0x41ae15[_0x4bc50a(0xe7)]?new Date(_0x41ae15[_0x4bc50a(0xe7)][_0x4bc50a(0xea)](),_0x41ae15[_0x4bc50a(0xe7)][_0x4bc50a(0xf1)](),_0x41ae15[_0x4bc50a(0xe7)][_0x4bc50a(0xfe)]()):null,_0x5808ba=_0x41ae15['to']?new Date(_0x41ae15['to'][_0x4bc50a(0xea)](),_0x41ae15['to'][_0x4bc50a(0xf1)](),_0x41ae15['to'][_0x4bc50a(0xfe)]()):null;return this[_0x4bc50a(0xfc)][_0x4bc50a(0xe2)](_0x54d2ef=>{const _0x36550f=_0x4bc50a;if(_0x54d2ef[_0x36550f(0xe4)]!==_0x13c1bf)return!0x1;if(_0x5808ba){const _0x33007f=new Date(_0x54d2ef[_0x36550f(0xf5)][_0x36550f(0xea)](),_0x54d2ef[_0x36550f(0xf5)][_0x36550f(0xf1)](),_0x54d2ef[_0x36550f(0xf5)][_0x36550f(0xfe)]());return _0x3bd6a9?_0x3bd6a9[_0x36550f(0xee)]()===_0x5808ba[_0x36550f(0xee)]()?_0x33007f[_0x36550f(0xee)]()===_0x3bd6a9[_0x36550f(0xee)]():_0x33007f<_0x5808ba&&_0x33007f>=_0x3bd6a9:_0x33007f<_0x5808ba;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2838b1=_0x51c4;(function(_0x55f992,_0x2981c6){var _0x16e990=_0x51c4,_0x4d857d=_0x55f992();while(!![]){try{var _0x5e6d29=parseInt(_0x16e990(0x1dc))/0x1+parseInt(_0x16e990(0x1e2))/0x2*(parseInt(_0x16e990(0x1e6))/0x3)+-parseInt(_0x16e990(0x1e4))/0x4+-parseInt(_0x16e990(0x1e0))/0x5+parseInt(_0x16e990(0x1e8))/0x6+-parseInt(_0x16e990(0x1eb))/0x7+-parseInt(_0x16e990(0x1e3))/0x8*(-parseInt(_0x16e990(0x1e7))/0x9);if(_0x5e6d29===_0x2981c6)break;else _0x4d857d['push'](_0x4d857d['shift']());}catch(_0x35c203){_0x4d857d['push'](_0x4d857d['shift']());}}}(_0x9461,0xc2ea6));import{ObservableMixin as _0x13c6f4}from'ckeditor5/src/utils.js';function _0x51c4(_0x20c263,_0xbf4e7a){var _0x9461b3=_0x9461();return _0x51c4=function(_0x51c4a5,_0x40f3f1){_0x51c4a5=_0x51c4a5-0x1dc;var _0x59685e=_0x9461b3[_0x51c4a5];return _0x59685e;},_0x51c4(_0x20c263,_0xbf4e7a);}import{escape as _0x30b065}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x13c6f4(){['id'];[_0x2838b1(0x1e5)];constructor({id:_0x56e219,title:_0x5b0802,createdAt:_0x207ff3,updatedAt:_0x2e52f5,pinned:_0xfcf16e}){var _0x3d8bd4=_0x2838b1;super(),this['id']=_0x56e219,this[_0x3d8bd4(0x1e5)]=new Date(_0x207ff3),this[_0x3d8bd4(0x1dd)](_0x3d8bd4(0x1e1),_0x5b0802),this[_0x3d8bd4(0x1dd)](_0x3d8bd4(0x1df),_0x2e52f5?new Date(_0x2e52f5):null),this[_0x3d8bd4(0x1dd)](_0x3d8bd4(0x1ea),_0xfcf16e||!0x1);}[_0x2838b1(0x1e9)](_0x2c0cb2){var _0x461d6f=_0x2838b1;this[_0x461d6f(0x1dd)](_0x461d6f(0x1e1),_0x30b065(_0x2c0cb2)),this[_0x461d6f(0x1df)]=new Date();}[_0x2838b1(0x1de)](_0x301f67){var _0x15db17=_0x2838b1;this[_0x15db17(0x1dd)](_0x15db17(0x1ea),_0x301f67),this[_0x15db17(0x1df)]=new Date();}}function _0x9461(){var _0x130054=['title','229828xvrHNy','118896TQkrqY','1272244BIDUth','createdAt','3oOmxig','54FJRwVO','1760706ZLMYTx','updateTitle','pinned','1089473JmhfZj','986605OsrsJF','set','updatePinned','updatedAt','1060340qLlPMf'];_0x9461=function(){return _0x130054;};return _0x9461();}
23
+ var _0x5ecd00=_0x512d;(function(_0x4cf2a0,_0x46cb43){var _0x3eb229=_0x512d,_0x4bdf1c=_0x4cf2a0();while(!![]){try{var _0x393857=-parseInt(_0x3eb229(0xe4))/0x1+-parseInt(_0x3eb229(0xdd))/0x2*(-parseInt(_0x3eb229(0xe1))/0x3)+parseInt(_0x3eb229(0xda))/0x4*(-parseInt(_0x3eb229(0xd9))/0x5)+-parseInt(_0x3eb229(0xe8))/0x6+parseInt(_0x3eb229(0xe0))/0x7+-parseInt(_0x3eb229(0xd8))/0x8*(-parseInt(_0x3eb229(0xe6))/0x9)+-parseInt(_0x3eb229(0xdc))/0xa;if(_0x393857===_0x46cb43)break;else _0x4bdf1c['push'](_0x4bdf1c['shift']());}catch(_0xf5ed60){_0x4bdf1c['push'](_0x4bdf1c['shift']());}}}(_0x1314,0x2f0b2));import{ObservableMixin as _0x3873b9}from'ckeditor5/src/utils.js';import{escape as _0x16c45f}from'es-toolkit/compat';function _0x512d(_0x280042,_0x13675e){var _0x1314b3=_0x1314();return _0x512d=function(_0x512d3e,_0x14c0b2){_0x512d3e=_0x512d3e-0xd8;var _0x389c30=_0x1314b3[_0x512d3e];return _0x389c30;},_0x512d(_0x280042,_0x13675e);}export class AIChatHistoryItem extends _0x3873b9(){['id'];[_0x5ecd00(0xe3)];constructor({id:_0x285e72,title:_0x5643f6,createdAt:_0x21e038,updatedAt:_0x66c7f4,pinned:_0x5d8adf}){var _0x1191e2=_0x5ecd00;super(),this['id']=_0x285e72,this[_0x1191e2(0xe3)]=new Date(_0x21e038),this[_0x1191e2(0xdf)](_0x1191e2(0xde),_0x5643f6),this[_0x1191e2(0xdf)](_0x1191e2(0xe5),_0x66c7f4?new Date(_0x66c7f4):null),this[_0x1191e2(0xdf)](_0x1191e2(0xe2),_0x5d8adf||!0x1);}[_0x5ecd00(0xe7)](_0x58b831){var _0x2d97ea=_0x5ecd00;this[_0x2d97ea(0xdf)](_0x2d97ea(0xde),_0x16c45f(_0x58b831)),this[_0x2d97ea(0xe5)]=new Date();}[_0x5ecd00(0xdb)](_0x439473){var _0x4de3e4=_0x5ecd00;this[_0x4de3e4(0xdf)](_0x4de3e4(0xe2),_0x439473),this[_0x4de3e4(0xe5)]=new Date();}}function _0x1314(){var _0x4d9a65=['446vwGCBK','title','set','2070047vAXGnk','501DlEnAQ','pinned','createdAt','2235UazQJa','updatedAt','22689ItPzqH','updateTitle','564870kqvIbg','1096xbPDgC','23255WvoCCe','212AszSXU','updatePinned','1427660RSkGCk'];_0x1314=function(){return _0x4d9a65;};return _0x1314();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x508e3d=_0x5beb;(function(_0x28852e,_0x3a1186){const _0x267fa1=_0x5beb,_0x47afbb=_0x28852e();while(!![]){try{const _0x4a442b=-parseInt(_0x267fa1(0x201))/0x1+-parseInt(_0x267fa1(0x218))/0x2*(-parseInt(_0x267fa1(0x1fb))/0x3)+parseInt(_0x267fa1(0x1ef))/0x4+-parseInt(_0x267fa1(0x1f8))/0x5*(parseInt(_0x267fa1(0x203))/0x6)+-parseInt(_0x267fa1(0x1e0))/0x7+-parseInt(_0x267fa1(0x236))/0x8+parseInt(_0x267fa1(0x202))/0x9;if(_0x4a442b===_0x3a1186)break;else _0x47afbb['push'](_0x47afbb['shift']());}catch(_0x3c85e9){_0x47afbb['push'](_0x47afbb['shift']());}}}(_0x1673,0x1c59e));import{ListItemView as _0x7c2839,HighlightedTextView as _0x1df187,ButtonView as _0x3ed759,ListView as _0x43122c,IconView as _0x5bb128,createDropdown as _0x460a5f,InputTextView as _0x33ed81}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x335767,IconPin as _0x261367,IconCheck as _0x17f4d0,IconCancel as _0x2f9c51}from'ckeditor5/src/icons.js';function _0x5beb(_0x28b8a5,_0x49f438){const _0x167316=_0x1673();return _0x5beb=function(_0x5bebc0,_0x181ca2){_0x5bebc0=_0x5bebc0-0x1dd;let _0x31acfc=_0x167316[_0x5bebc0];return _0x31acfc;},_0x5beb(_0x28b8a5,_0x49f438);}import{LateFocusDropdownButtonView as _0x1582e3,ConfirmMixin as _0x28bfd6}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x49e16d}from'es-toolkit/compat';import{AISpinnerView as _0x1b499f}from'../../aicore/ui/aispinner.js';function _0x1673(){const _0x4c5eee=['AI_CHAT_HISTORY_PIN_BUTTON','add','bind','highlightText','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','buttonView','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_LOADING_PINNING','179910btXXjx','items','isMatching','447BsterW','_createSpinnerView','value','ck-ai-chat-history__item--active','ck-ai-loader__text','updateTitle','51525nkFUPA','1505277ltIbrZ','6eZulrG','isOn','ck-ai-chat-history__item-date','createCollection','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-check-container','addMany','_createPinButtonView','AI_CHAT_HISTORY_LOADING_UNPINNING','panelPosition','click','string','children','AI_CHAT_HISTORY_LOADING_REMOVING','isEdit','setTemplate','_createEditInputView','ck-ai-chat-history__item-actions','isVisible','ck-ai-chat-history__item--edit','fire','2072yWmBfw','AI_CHAT_HISTORY_REMOVE','Enter','focus','panelView','mainContent','ck-ai-chat-history__item-check','setConversationPinned','bindTemplate','_titleView','ck-ai-loader','edit:cancel','match','extendTemplate','ck-ai-chat-history__item','AI_CHAT_HISTORY_REMOVE_CONFIRM','change:isEdit','_createMenuDropdownView','removeConversation','_createCancelEditButtonView','editConversationTitle','span','ck-ai-chat-history__item-content','ck-confirm-view-submit','locale','loadingState','ck-hidden','ck-ai-chat-history__item-row','ck-ai-chat-history__item-main-content','text','488568uXBIjH','actions','label','AI_CHAT_HISTORY_ACCEPT','listitem','showConfirm','tiny','updateLoadingState','selectConversation','set','execute','1406328EkxcTB','div','AI_CHAT_HISTORY_LOADING_RENAMING','element','withText','clear','_createAcceptEditButtonView','ck-confirm-view-cancel','ck-ai-chat-history__item-title','_commitEditInputValue','pinned','LOADING_LABELS','key','then','_createCheckView','575964kwkVkV'];_0x1673=function(){return _0x4c5eee;};return _0x1673();}import{getTranslation as _0x110b39}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x28bfd6(_0x7c2839){['id'];static [_0x508e3d(0x1eb)]={'remove':_0x508e3d(0x210),'rename':_0x508e3d(0x1e2),'pin':_0x508e3d(0x1f7),'unpin':_0x508e3d(0x20b)};[_0x508e3d(0x237)];[_0x508e3d(0x21d)];[_0x508e3d(0x221)];constructor(_0x3a53e6,_0x1f9c6a){const _0x3a5b6b=_0x508e3d;super(_0x3a53e6);const _0x10217b=this[_0x3a5b6b(0x220)];this[_0x3a5b6b(0x1de)](_0x3a5b6b(0x211),!0x1),this[_0x3a5b6b(0x1de)](_0x3a5b6b(0x215),!0x0),this[_0x3a5b6b(0x1de)](_0x3a5b6b(0x1ea),!!_0x1f9c6a[_0x3a5b6b(0x1ea)]),this[_0x3a5b6b(0x1de)](_0x3a5b6b(0x231),null),this['id']=_0x1f9c6a['id'];const {title:_0x5b5190,createdAt:_0x58dd0f,active:_0x383df8=!0x1}=_0x1f9c6a;this[_0x3a5b6b(0x221)]=new _0x1df187(),this[_0x3a5b6b(0x221)][_0x3a5b6b(0x235)]=_0x5b5190,this[_0x3a5b6b(0x221)][_0x3a5b6b(0x225)]({'attributes':{'class':[_0x3a5b6b(0x1e8)]}});const _0x22631b=this[_0x3a5b6b(0x1ee)](),_0x109e42=this[_0x3a5b6b(0x20a)](_0x3a53e6),_0x3f6615=this[_0x3a5b6b(0x229)](),_0x17583e=this[_0x3a5b6b(0x213)](_0x3a53e6,_0x5b5190),_0x13c4e9=this[_0x3a5b6b(0x1e6)](_0x3a53e6,_0x17583e),_0x1e80d4=this[_0x3a5b6b(0x22b)](_0x3a53e6,_0x17583e);this[_0x3a5b6b(0x237)]=this[_0x3a5b6b(0x206)](),this[_0x3a5b6b(0x21d)]=this[_0x3a5b6b(0x206)](),this[_0x3a5b6b(0x21d)][_0x3a5b6b(0x1f1)](this[_0x3a5b6b(0x221)]),this[_0x3a5b6b(0x237)][_0x3a5b6b(0x1f1)](_0x109e42),this[_0x3a5b6b(0x237)][_0x3a5b6b(0x1f1)](_0x3f6615),this['on'](_0x3a5b6b(0x228),(_0x510def,_0x2b75d7,_0xf06a50)=>{const _0x1926dd=_0x3a5b6b;this[_0x1926dd(0x237)][_0x1926dd(0x1e5)](),this[_0x1926dd(0x21d)][_0x1926dd(0x1e5)](),_0xf06a50?(this[_0x1926dd(0x237)][_0x1926dd(0x1f1)](_0x13c4e9),this[_0x1926dd(0x237)][_0x1926dd(0x1f1)](_0x1e80d4),this[_0x1926dd(0x21d)][_0x1926dd(0x1f1)](_0x17583e),_0x17583e[_0x1926dd(0x1e3)][_0x1926dd(0x21b)]()):(this[_0x1926dd(0x237)][_0x1926dd(0x1f1)](_0x109e42),this[_0x1926dd(0x237)][_0x1926dd(0x1f1)](_0x3f6615),this[_0x1926dd(0x21d)][_0x1926dd(0x1f1)](this[_0x1926dd(0x221)]));}),this[_0x3a5b6b(0x212)]({'tag':'li','attributes':{'class':[_0x3a5b6b(0x226),_0x383df8?_0x3a5b6b(0x1fe):'',_0x10217b['if'](_0x3a5b6b(0x215),_0x3a5b6b(0x232),_0x1d7634=>!_0x1d7634),_0x10217b['if'](_0x3a5b6b(0x211),_0x3a5b6b(0x216))],'role':_0x3a5b6b(0x23a)},'children':[{'tag':_0x3a5b6b(0x22d),'attributes':{'class':[_0x3a5b6b(0x208)]},'children':[{'tag':_0x3a5b6b(0x1e1),'attributes':{'class':[_0x3a5b6b(0x21e),_0x10217b['if'](_0x3a5b6b(0x231),_0x3a5b6b(0x232),_0x17b160=>!!_0x17b160)]},'children':_0x383df8?[_0x22631b]:[]},{'tag':_0x3a5b6b(0x1e1),'attributes':{'class':[_0x3a5b6b(0x222),_0x10217b['if'](_0x3a5b6b(0x231),_0x3a5b6b(0x232),_0x212341=>!_0x212341)]},'children':[this[_0x3a5b6b(0x1fc)]()]}]},{'tag':_0x3a5b6b(0x1e1),'attributes':{'class':[_0x3a5b6b(0x233)]},'children':[{'tag':_0x3a5b6b(0x1e1),'attributes':{'class':[_0x3a5b6b(0x22e)]},'on':{'click':this[_0x3a5b6b(0x220)]['to'](_0x3a5b6b(0x20d))},'children':[{'tag':_0x3a5b6b(0x1e1),'attributes':{'class':[_0x3a5b6b(0x234)]},'children':[{'tag':_0x3a5b6b(0x1e1),'attributes':{'class':[_0x3a5b6b(0x1e8),_0x10217b['if'](_0x3a5b6b(0x231),_0x3a5b6b(0x232),_0x508118=>!!_0x508118)]},'children':this[_0x3a5b6b(0x21d)]},{'tag':_0x3a5b6b(0x1e1),'attributes':{'class':[_0x3a5b6b(0x1ff),_0x10217b['if'](_0x3a5b6b(0x231),_0x3a5b6b(0x232),_0x26e536=>!_0x26e536)]},'children':[{'text':_0x10217b['to'](_0x3a5b6b(0x231),_0x1ca88f=>_0x1ca88f?_0x110b39(this[_0x3a5b6b(0x230)],AIChatHistoryListItemView[_0x3a5b6b(0x1eb)][_0x1ca88f]):'')}]}]},{'tag':_0x3a5b6b(0x22d),'attributes':{'class':[_0x3a5b6b(0x205)]},'children':[_0x58dd0f]}]},{'tag':_0x3a5b6b(0x1e1),'attributes':{'class':[_0x3a5b6b(0x214)]},'children':this[_0x3a5b6b(0x237)]}]}]}),this['on'](_0x3a5b6b(0x20d),()=>{const _0x51f389=_0x3a5b6b;this[_0x51f389(0x211)]||this[_0x51f389(0x217)](_0x51f389(0x1dd),{'id':this['id']});});}[_0x508e3d(0x200)](_0x2b4f40){const _0x4ca61f=_0x508e3d;this[_0x4ca61f(0x221)][_0x4ca61f(0x235)]=_0x49e16d(_0x2b4f40);}[_0x508e3d(0x23d)](_0x3f5678,_0x54eaf){const _0x4f6eee=_0x508e3d;this[_0x4f6eee(0x1de)](_0x4f6eee(0x231),_0x54eaf?_0x3f5678:null);}[_0x508e3d(0x1ee)](){const _0x1003e8=_0x508e3d,_0x23a51e=new _0x5bb128();return _0x23a51e[_0x1003e8(0x1de)]({'content':_0x17f4d0}),_0x23a51e;}[_0x508e3d(0x20a)](_0x593407){const _0x48619e=_0x508e3d,_0x2d555d=new _0x3ed759(_0x593407);return _0x2d555d[_0x48619e(0x1de)]({'label':_0x110b39(_0x593407,_0x48619e(0x1f0)),'icon':_0x261367,'withText':!0x1,'tooltip':!0x0}),_0x2d555d[_0x48619e(0x1f2)](_0x48619e(0x204))['to'](this,_0x48619e(0x1ea)),_0x2d555d['on'](_0x48619e(0x1df),()=>{const _0x1e8010=_0x48619e,_0x6dc16a=!this[_0x1e8010(0x1ea)];this[_0x1e8010(0x217)](_0x1e8010(0x21f),{'id':this['id'],'pinned':_0x6dc16a});}),_0x2d555d;}[_0x508e3d(0x229)](){const _0x39cad9=_0x508e3d,_0x44e15d=_0x460a5f(this[_0x39cad9(0x230)],_0x1582e3),_0x201232=_0x44e15d[_0x39cad9(0x21c)][_0x39cad9(0x20f)];_0x44e15d[_0x39cad9(0x1f5)][_0x39cad9(0x1de)]({'label':_0x110b39(this[_0x39cad9(0x230)],_0x39cad9(0x1f4)),'icon':_0x335767}),_0x44e15d[_0x39cad9(0x20c)]='sw';const _0x1e1c5f=new _0x3ed759(this[_0x39cad9(0x230)]);_0x1e1c5f[_0x39cad9(0x238)]=_0x110b39(this[_0x39cad9(0x230)],_0x39cad9(0x1f6)),_0x1e1c5f[_0x39cad9(0x1e4)]=!0x0,_0x1e1c5f['on'](_0x39cad9(0x1df),()=>{const _0x1a04c2=_0x39cad9;this[_0x1a04c2(0x211)]=!0x0;});const _0x1aab8d=new _0x3ed759(this[_0x39cad9(0x230)]);_0x1aab8d[_0x39cad9(0x238)]=_0x110b39(this[_0x39cad9(0x230)],_0x39cad9(0x219)),_0x1aab8d[_0x39cad9(0x1e4)]=!0x0,_0x1aab8d['on'](_0x39cad9(0x1df),()=>{const _0x214937=_0x39cad9;this[_0x214937(0x23b)](_0x110b39(this[_0x214937(0x230)],_0x214937(0x227)),this[_0x214937(0x1e3)])[_0x214937(0x1ed)](()=>{const _0x7960a7=_0x214937;this[_0x7960a7(0x217)](_0x7960a7(0x22a),{'id':this['id']});});});const _0x592773=new _0x43122c(this[_0x39cad9(0x230)]),_0x3bc0d6=new _0x7c2839(this[_0x39cad9(0x230)]);_0x3bc0d6[_0x39cad9(0x20f)][_0x39cad9(0x1f1)](_0x1e1c5f);const _0x549695=new _0x7c2839(this[_0x39cad9(0x230)]);return _0x549695[_0x39cad9(0x20f)][_0x39cad9(0x1f1)](_0x1aab8d),_0x592773[_0x39cad9(0x1f9)][_0x39cad9(0x209)]([_0x3bc0d6,_0x549695]),_0x201232[_0x39cad9(0x1f1)](_0x592773),_0x44e15d;}[_0x508e3d(0x213)](_0x3a6ca3,_0x26bc9c){const _0x55ad24=_0x508e3d,_0x342823=new _0x33ed81(_0x3a6ca3),_0x274fd0=_0x342823[_0x55ad24(0x220)];return _0x342823[_0x55ad24(0x1fd)]=_0x26bc9c,_0x342823[_0x55ad24(0x225)]({'on':{'keydown':_0x274fd0['to'](_0x48488f=>{const _0x5e197e=_0x55ad24;_0x5e197e(0x21a)==_0x48488f[_0x5e197e(0x1ec)]&&this[_0x5e197e(0x1e9)](_0x342823);})}}),_0x342823;}[_0x508e3d(0x1e6)](_0x47852f,_0x1a9135){const _0x98ab59=_0x508e3d,_0x497f02=new _0x3ed759(_0x47852f);return _0x497f02[_0x98ab59(0x1de)]({'icon':_0x17f4d0,'withText':!0x1,'tooltip':_0x110b39(_0x47852f,_0x98ab59(0x239))}),_0x497f02[_0x98ab59(0x225)]({'attributes':{'class':[_0x98ab59(0x22f)]}}),_0x497f02['on'](_0x98ab59(0x1df),()=>{const _0x34a4d1=_0x98ab59;this[_0x34a4d1(0x1e9)](_0x1a9135);}),_0x497f02;}[_0x508e3d(0x1e9)](_0x491730){const _0x24bde6=_0x508e3d,_0x2ecb5d=_0x491730[_0x24bde6(0x1e3)][_0x24bde6(0x1fd)]||'';this[_0x24bde6(0x221)][_0x24bde6(0x235)]=_0x2ecb5d,this[_0x24bde6(0x211)]=!0x1,this[_0x24bde6(0x217)](_0x24bde6(0x22c),{'id':this['id'],'title':_0x2ecb5d});}[_0x508e3d(0x22b)](_0x13d07f,_0x1f7f1a){const _0x3f5736=_0x508e3d,_0x3f31c2=new _0x3ed759(_0x13d07f);return _0x3f31c2[_0x3f5736(0x1de)]({'icon':_0x2f9c51,'withText':!0x1,'tooltip':_0x110b39(_0x13d07f,_0x3f5736(0x207))}),_0x3f31c2[_0x3f5736(0x225)]({'attributes':{'class':[_0x3f5736(0x1e7)]}}),_0x3f31c2['on'](_0x3f5736(0x1df),()=>{const _0x477ea6=_0x3f5736;this[_0x477ea6(0x211)]=!0x1,_0x1f7f1a[_0x477ea6(0x1fd)]=this[_0x477ea6(0x221)][_0x477ea6(0x235)]||'',this[_0x477ea6(0x217)](_0x477ea6(0x223));}),_0x3f31c2;}[_0x508e3d(0x1fc)](){const _0x15f9eb=_0x508e3d,_0x5cc9f2=new _0x1b499f(_0x15f9eb(0x23c));return _0x5cc9f2[_0x15f9eb(0x215)]=!0x0,_0x5cc9f2;}[_0x508e3d(0x1fa)](_0x48d388){const _0x52a766=_0x508e3d;return this[_0x52a766(0x221)]&&_0x52a766(0x20e)==typeof this[_0x52a766(0x221)][_0x52a766(0x235)]&&this[_0x52a766(0x221)][_0x52a766(0x235)][_0x52a766(0x224)](_0x48d388)?{'title':!0x0}:null;}[_0x508e3d(0x1f3)](_0x9339e8){const _0x29d381=_0x508e3d;this[_0x29d381(0x221)][_0x29d381(0x1f3)](_0x9339e8);}}
23
+ const _0x1ef9b7=_0x7eb6;(function(_0x26a1a6,_0x2d5e94){const _0x3bc7b9=_0x7eb6,_0x1f46c9=_0x26a1a6();while(!![]){try{const _0x41b56f=-parseInt(_0x3bc7b9(0x112))/0x1+parseInt(_0x3bc7b9(0xcd))/0x2+parseInt(_0x3bc7b9(0xbb))/0x3*(parseInt(_0x3bc7b9(0xd3))/0x4)+-parseInt(_0x3bc7b9(0xee))/0x5+parseInt(_0x3bc7b9(0xfd))/0x6*(parseInt(_0x3bc7b9(0xdc))/0x7)+-parseInt(_0x3bc7b9(0x11a))/0x8+parseInt(_0x3bc7b9(0xbe))/0x9;if(_0x41b56f===_0x2d5e94)break;else _0x1f46c9['push'](_0x1f46c9['shift']());}catch(_0x55a7f6){_0x1f46c9['push'](_0x1f46c9['shift']());}}}(_0x2f68,0x6527d));import{ListItemView as _0x52f368,HighlightedTextView as _0x140ec7,ButtonView as _0xea4b7d,ListView as _0xc3a31f,IconView as _0x5b7cc0,createDropdown as _0x4c1ede,InputTextView as _0x247e86}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x31b554,IconPin as _0x3e919d,IconCheck as _0x6ae6e0,IconCancel as _0x9e8743}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x50c805,ConfirmMixin as _0xb82181}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2f68(){const _0x35b18e=['createCollection','items','_commitEditInputValue','editConversationTitle','bindTemplate','_createMenuDropdownView','_createSpinnerView','2231536OjAZLS','isMatching','21528PQXlOu','_createCancelEditButtonView','pinned','674631gjcKYk','Enter','setConversationPinned','key','execute','_titleView','_createPinButtonView','fire','isOn','AI_CHAT_HISTORY_PIN_BUTTON','ck-confirm-view-cancel','click','ck-ai-loader','ck-ai-chat-history__item--edit','children','737958KOiTFF','label','ck-ai-loader__text','isEdit','ck-ai-chat-history__item-row','setTemplate','104hwwHAM','span','AI_CHAT_HISTORY_LOADING_PINNING','showConfirm','loadingState','actions','AI_CHAT_HISTORY_LOADING_REMOVING','change:isEdit','focus','28PLyJGC','updateLoadingState','extendTemplate','updateTitle','withText','clear','removeConversation','locale','element','ck-ai-chat-history__item-date','_createCheckView','then','panelPosition','value','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_LOADING_RENAMING','addMany','listitem','114770xSNmWU','ck-ai-chat-history__item-check-container','highlightText','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_REMOVE','ck-confirm-view-submit','isVisible','ck-hidden','bind','ck-ai-chat-history__item-check','text','add','mainContent','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','edit:cancel','901188YYwHyG','AI_CHAT_HISTORY_REMOVE_CONFIRM','match','ck-ai-chat-history__item-title','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-chat-history__item--active','ck-ai-chat-history__item-content','buttonView','panelView','set','string','AI_CHAT_HISTORY_CANCEL','selectConversation','_createAcceptEditButtonView','ck-ai-chat-history__item','tiny','_createEditInputView','AI_CHAT_HISTORY_EDIT_NAME','LOADING_LABELS','div','515077ePWOZk'];_0x2f68=function(){return _0x35b18e;};return _0x2f68();}import{escape as _0x1b0366}from'es-toolkit/compat';function _0x7eb6(_0x1c8838,_0x4dc623){const _0x2f680c=_0x2f68();return _0x7eb6=function(_0x7eb6be,_0x1e2171){_0x7eb6be=_0x7eb6be-0xba;let _0x4f73f7=_0x2f680c[_0x7eb6be];return _0x4f73f7;},_0x7eb6(_0x1c8838,_0x4dc623);}import{AISpinnerView as _0x2368d4}from'../../aicore/ui/aispinner.js';import{getTranslation as _0xd1da1f}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0xb82181(_0x52f368){['id'];static [_0x1ef9b7(0x110)]={'remove':_0x1ef9b7(0xd9),'rename':_0x1ef9b7(0xeb),'pin':_0x1ef9b7(0xd5),'unpin':_0x1ef9b7(0x102)};[_0x1ef9b7(0xd8)];[_0x1ef9b7(0xfa)];[_0x1ef9b7(0xc3)];constructor(_0x1b704c,_0x1e467a){const _0xd6e089=_0x1ef9b7;super(_0x1b704c);const _0x3bceb5=this[_0xd6e089(0x117)];this[_0xd6e089(0x107)](_0xd6e089(0xd0),!0x1),this[_0xd6e089(0x107)](_0xd6e089(0xf4),!0x0),this[_0xd6e089(0x107)](_0xd6e089(0xbd),!!_0x1e467a[_0xd6e089(0xbd)]),this[_0xd6e089(0x107)](_0xd6e089(0xd7),null),this['id']=_0x1e467a['id'];const {title:_0x12e9ec,createdAt:_0x4d7c7a,active:_0x5de58b=!0x1}=_0x1e467a;this[_0xd6e089(0xc3)]=new _0x140ec7(),this[_0xd6e089(0xc3)][_0xd6e089(0xf8)]=_0x12e9ec,this[_0xd6e089(0xc3)][_0xd6e089(0xde)]({'attributes':{'class':[_0xd6e089(0x100)]}});const _0x21476d=this[_0xd6e089(0xe6)](),_0x23c210=this[_0xd6e089(0xc4)](_0x1b704c),_0x127a06=this[_0xd6e089(0x118)](),_0x4d122c=this[_0xd6e089(0x10e)](_0x1b704c,_0x12e9ec),_0x1d9e96=this[_0xd6e089(0x10b)](_0x1b704c,_0x4d122c),_0x4a071c=this[_0xd6e089(0xbc)](_0x1b704c,_0x4d122c);this[_0xd6e089(0xd8)]=this[_0xd6e089(0x113)](),this[_0xd6e089(0xfa)]=this[_0xd6e089(0x113)](),this[_0xd6e089(0xfa)][_0xd6e089(0xf9)](this[_0xd6e089(0xc3)]),this[_0xd6e089(0xd8)][_0xd6e089(0xf9)](_0x23c210),this[_0xd6e089(0xd8)][_0xd6e089(0xf9)](_0x127a06),this['on'](_0xd6e089(0xda),(_0x1ad3b8,_0xff12b3,_0x68c68f)=>{const _0x4bc424=_0xd6e089;this[_0x4bc424(0xd8)][_0x4bc424(0xe1)](),this[_0x4bc424(0xfa)][_0x4bc424(0xe1)](),_0x68c68f?(this[_0x4bc424(0xd8)][_0x4bc424(0xf9)](_0x1d9e96),this[_0x4bc424(0xd8)][_0x4bc424(0xf9)](_0x4a071c),this[_0x4bc424(0xfa)][_0x4bc424(0xf9)](_0x4d122c),_0x4d122c[_0x4bc424(0xe4)][_0x4bc424(0xdb)]()):(this[_0x4bc424(0xd8)][_0x4bc424(0xf9)](_0x23c210),this[_0x4bc424(0xd8)][_0x4bc424(0xf9)](_0x127a06),this[_0x4bc424(0xfa)][_0x4bc424(0xf9)](this[_0x4bc424(0xc3)]));}),this[_0xd6e089(0xd2)]({'tag':'li','attributes':{'class':[_0xd6e089(0x10c),_0x5de58b?_0xd6e089(0x103):'',_0x3bceb5['if'](_0xd6e089(0xf4),_0xd6e089(0xf5),_0x1598e6=>!_0x1598e6),_0x3bceb5['if'](_0xd6e089(0xd0),_0xd6e089(0xcb))],'role':_0xd6e089(0xed)},'children':[{'tag':_0xd6e089(0xd4),'attributes':{'class':[_0xd6e089(0xef)]},'children':[{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xf7),_0x3bceb5['if'](_0xd6e089(0xd7),_0xd6e089(0xf5),_0x2c4f61=>!!_0x2c4f61)]},'children':_0x5de58b?[_0x21476d]:[]},{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xca),_0x3bceb5['if'](_0xd6e089(0xd7),_0xd6e089(0xf5),_0x3a06b5=>!_0x3a06b5)]},'children':[this[_0xd6e089(0x119)]()]}]},{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xd1)]},'children':[{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0x104)]},'on':{'click':this[_0xd6e089(0x117)]['to'](_0xd6e089(0xc9))},'children':[{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0x101)]},'children':[{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0x100),_0x3bceb5['if'](_0xd6e089(0xd7),_0xd6e089(0xf5),_0x57416a=>!!_0x57416a)]},'children':this[_0xd6e089(0xfa)]},{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xcf),_0x3bceb5['if'](_0xd6e089(0xd7),_0xd6e089(0xf5),_0x3ca758=>!_0x3ca758)]},'children':[{'text':_0x3bceb5['to'](_0xd6e089(0xd7),_0x3fdc8f=>_0x3fdc8f?_0xd1da1f(this[_0xd6e089(0xe3)],AIChatHistoryListItemView[_0xd6e089(0x110)][_0x3fdc8f]):'')}]}]},{'tag':_0xd6e089(0xd4),'attributes':{'class':[_0xd6e089(0xe5)]},'children':[_0x4d7c7a]}]},{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xf1)]},'children':this[_0xd6e089(0xd8)]}]}]}),this['on'](_0xd6e089(0xc9),()=>{const _0xd7a23=_0xd6e089;this[_0xd7a23(0xd0)]||this[_0xd7a23(0xc5)](_0xd7a23(0x10a),{'id':this['id']});});}[_0x1ef9b7(0xdf)](_0x37a1f8){const _0x5a73ba=_0x1ef9b7;this[_0x5a73ba(0xc3)][_0x5a73ba(0xf8)]=_0x1b0366(_0x37a1f8);}[_0x1ef9b7(0xdd)](_0x292801,_0x3d5545){const _0x16901e=_0x1ef9b7;this[_0x16901e(0x107)](_0x16901e(0xd7),_0x3d5545?_0x292801:null);}[_0x1ef9b7(0xe6)](){const _0x4ec505=_0x1ef9b7,_0x14f17b=new _0x5b7cc0();return _0x14f17b[_0x4ec505(0x107)]({'content':_0x6ae6e0}),_0x14f17b;}[_0x1ef9b7(0xc4)](_0x45a7ef){const _0x50a09f=_0x1ef9b7,_0x24dbc5=new _0xea4b7d(_0x45a7ef);return _0x24dbc5[_0x50a09f(0x107)]({'label':_0xd1da1f(_0x45a7ef,_0x50a09f(0xc7)),'icon':_0x3e919d,'withText':!0x1,'tooltip':!0x0}),_0x24dbc5[_0x50a09f(0xf6)](_0x50a09f(0xc6))['to'](this,_0x50a09f(0xbd)),_0x24dbc5['on'](_0x50a09f(0xc2),()=>{const _0x1132f3=_0x50a09f,_0xc0538c=!this[_0x1132f3(0xbd)];this[_0x1132f3(0xc5)](_0x1132f3(0xc0),{'id':this['id'],'pinned':_0xc0538c});}),_0x24dbc5;}[_0x1ef9b7(0x118)](){const _0x583083=_0x1ef9b7,_0x1c6cbf=_0x4c1ede(this[_0x583083(0xe3)],_0x50c805),_0x2ff449=_0x1c6cbf[_0x583083(0x106)][_0x583083(0xcc)];_0x1c6cbf[_0x583083(0x105)][_0x583083(0x107)]({'label':_0xd1da1f(this[_0x583083(0xe3)],_0x583083(0xfb)),'icon':_0x31b554}),_0x1c6cbf[_0x583083(0xe8)]='sw';const _0x5a0601=new _0xea4b7d(this[_0x583083(0xe3)]);_0x5a0601[_0x583083(0xce)]=_0xd1da1f(this[_0x583083(0xe3)],_0x583083(0x10f)),_0x5a0601[_0x583083(0xe0)]=!0x0,_0x5a0601['on'](_0x583083(0xc2),()=>{const _0xf19454=_0x583083;this[_0xf19454(0xd0)]=!0x0;});const _0x3ef0c8=new _0xea4b7d(this[_0x583083(0xe3)]);_0x3ef0c8[_0x583083(0xce)]=_0xd1da1f(this[_0x583083(0xe3)],_0x583083(0xf2)),_0x3ef0c8[_0x583083(0xe0)]=!0x0,_0x3ef0c8['on'](_0x583083(0xc2),()=>{const _0x52d78d=_0x583083;this[_0x52d78d(0xd6)](_0xd1da1f(this[_0x52d78d(0xe3)],_0x52d78d(0xfe)),this[_0x52d78d(0xe4)])[_0x52d78d(0xe7)](()=>{const _0x54d991=_0x52d78d;this[_0x54d991(0xc5)](_0x54d991(0xe2),{'id':this['id']});});});const _0x113a03=new _0xc3a31f(this[_0x583083(0xe3)]),_0x1ce082=new _0x52f368(this[_0x583083(0xe3)]);_0x1ce082[_0x583083(0xcc)][_0x583083(0xf9)](_0x5a0601);const _0xf38e46=new _0x52f368(this[_0x583083(0xe3)]);return _0xf38e46[_0x583083(0xcc)][_0x583083(0xf9)](_0x3ef0c8),_0x113a03[_0x583083(0x114)][_0x583083(0xec)]([_0x1ce082,_0xf38e46]),_0x2ff449[_0x583083(0xf9)](_0x113a03),_0x1c6cbf;}[_0x1ef9b7(0x10e)](_0x145c78,_0x32b802){const _0x3755b1=_0x1ef9b7,_0x186c66=new _0x247e86(_0x145c78),_0x4f6fbe=_0x186c66[_0x3755b1(0x117)];return _0x186c66[_0x3755b1(0xe9)]=_0x32b802,_0x186c66[_0x3755b1(0xde)]({'on':{'keydown':_0x4f6fbe['to'](_0x5dd6ae=>{const _0x425c8f=_0x3755b1;_0x425c8f(0xbf)==_0x5dd6ae[_0x425c8f(0xc1)]&&this[_0x425c8f(0x115)](_0x186c66);})}}),_0x186c66;}[_0x1ef9b7(0x10b)](_0x4aec0f,_0x5bd1ed){const _0xceca16=_0x1ef9b7,_0x244f3d=new _0xea4b7d(_0x4aec0f);return _0x244f3d[_0xceca16(0x107)]({'icon':_0x6ae6e0,'withText':!0x1,'tooltip':_0xd1da1f(_0x4aec0f,_0xceca16(0xea))}),_0x244f3d[_0xceca16(0xde)]({'attributes':{'class':[_0xceca16(0xf3)]}}),_0x244f3d['on'](_0xceca16(0xc2),()=>{const _0x3f3ee0=_0xceca16;this[_0x3f3ee0(0x115)](_0x5bd1ed);}),_0x244f3d;}[_0x1ef9b7(0x115)](_0x3589fb){const _0x4d61a7=_0x1ef9b7,_0x24bf49=_0x3589fb[_0x4d61a7(0xe4)][_0x4d61a7(0xe9)]||'';this[_0x4d61a7(0xc3)][_0x4d61a7(0xf8)]=_0x24bf49,this[_0x4d61a7(0xd0)]=!0x1,this[_0x4d61a7(0xc5)](_0x4d61a7(0x116),{'id':this['id'],'title':_0x24bf49});}[_0x1ef9b7(0xbc)](_0x1b4ee6,_0x5200ca){const _0x4c2413=_0x1ef9b7,_0x183901=new _0xea4b7d(_0x1b4ee6);return _0x183901[_0x4c2413(0x107)]({'icon':_0x9e8743,'withText':!0x1,'tooltip':_0xd1da1f(_0x1b4ee6,_0x4c2413(0x109))}),_0x183901[_0x4c2413(0xde)]({'attributes':{'class':[_0x4c2413(0xc8)]}}),_0x183901['on'](_0x4c2413(0xc2),()=>{const _0x40dcfb=_0x4c2413;this[_0x40dcfb(0xd0)]=!0x1,_0x5200ca[_0x40dcfb(0xe9)]=this[_0x40dcfb(0xc3)][_0x40dcfb(0xf8)]||'',this[_0x40dcfb(0xc5)](_0x40dcfb(0xfc));}),_0x183901;}[_0x1ef9b7(0x119)](){const _0x165c38=_0x1ef9b7,_0xd0f2e=new _0x2368d4(_0x165c38(0x10d));return _0xd0f2e[_0x165c38(0xf4)]=!0x0,_0xd0f2e;}[_0x1ef9b7(0xba)](_0x3fd821){const _0x30fa50=_0x1ef9b7;return this[_0x30fa50(0xc3)]&&_0x30fa50(0x108)==typeof this[_0x30fa50(0xc3)][_0x30fa50(0xf8)]&&this[_0x30fa50(0xc3)][_0x30fa50(0xf8)][_0x30fa50(0xff)](_0x3fd821)?{'title':!0x0}:null;}[_0x1ef9b7(0xf0)](_0x4d59e4){const _0x25195d=_0x1ef9b7;this[_0x25195d(0xc3)][_0x25195d(0xf0)](_0x4d59e4);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3d1a(){const _0x480c35=['set','554974UIqmFV','indexOf','filter','setTemplate','1090zciRdf','find','ck-ai-chat-history__section','itemsViews','div','3342053ZATItY','addMany','isMatching','getItem','title','removeItem','remove','21263najkyb','highlightText','ck-hidden','ck-ai-chat-history__section-title','bindTemplate','70TjVXjP','58gacaQl','isVisible','items','8zNQBmv','666WKycAS','splice','64224TrUTuG','54921GZnFki','7150kDNuQh','19112QgTApE','length','24UYavHq','_itemsListView'];_0x3d1a=function(){return _0x480c35;};return _0x3d1a();}const _0x321aa6=_0xe5f1;(function(_0x2a47f0,_0x37c5a9){const _0x4286c9=_0xe5f1,_0x22045c=_0x2a47f0();while(!![]){try{const _0x411aa2=parseInt(_0x4286c9(0x198))/0x1*(-parseInt(_0x4286c9(0x190))/0x2)+parseInt(_0x4286c9(0x197))/0x3*(-parseInt(_0x4286c9(0x193))/0x4)+parseInt(_0x4286c9(0x18f))/0x5*(-parseInt(_0x4286c9(0x196))/0x6)+parseInt(_0x4286c9(0x19e))/0x7+-parseInt(_0x4286c9(0x199))/0x8*(parseInt(_0x4286c9(0x194))/0x9)+-parseInt(_0x4286c9(0x1a2))/0xa*(-parseInt(_0x4286c9(0x18a))/0xb)+parseInt(_0x4286c9(0x19b))/0xc*(parseInt(_0x4286c9(0x183))/0xd);if(_0x411aa2===_0x37c5a9)break;else _0x22045c['push'](_0x22045c['shift']());}catch(_0x1a862e){_0x22045c['push'](_0x22045c['shift']());}}}(_0x3d1a,0x3903f));function _0xe5f1(_0xf8b97d,_0x3919c5){const _0x3d1a04=_0x3d1a();return _0xe5f1=function(_0xe5f10b,_0x85843f){_0xe5f10b=_0xe5f10b-0x183;let _0x486cd9=_0x3d1a04[_0xe5f10b];return _0x486cd9;},_0xe5f1(_0xf8b97d,_0x3919c5);}import{ListItemView as _0x44c530,View as _0x5c4cc6,ListView as _0x2aa11d}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x44c530{[_0x321aa6(0x187)];[_0x321aa6(0x1a5)];[_0x321aa6(0x19c)];constructor(_0x13a0e5,{title:_0x101793,items:_0x34a846}){const _0x1739bd=_0x321aa6;super(_0x13a0e5);const _0x2bf980=this[_0x1739bd(0x18e)];this[_0x1739bd(0x19d)](_0x1739bd(0x191),!0x0),this[_0x1739bd(0x187)]=_0x101793,this[_0x1739bd(0x1a5)]=_0x34a846;const _0x223d02=new _0x5c4cc6(_0x13a0e5);_0x223d02[_0x1739bd(0x1a1)]({'tag':_0x1739bd(0x1a6),'attributes':{'class':[_0x1739bd(0x18d)]},'children':[this[_0x1739bd(0x187)]]}),this[_0x1739bd(0x19c)]=new _0x2aa11d(_0x13a0e5),this[_0x1739bd(0x19c)][_0x1739bd(0x192)][_0x1739bd(0x184)](this[_0x1739bd(0x1a5)]),this[_0x1739bd(0x1a1)]({'tag':'li','attributes':{'class':[_0x1739bd(0x1a4),_0x2bf980['if'](_0x1739bd(0x191),_0x1739bd(0x18c),_0xdef01=>!_0xdef01)]},'children':[_0x223d02,this[_0x1739bd(0x19c)]]});}[_0x321aa6(0x1a0)](_0x5f09bf){const _0x9db865=_0x321aa6,_0x5bf53d=this[_0x9db865(0x1a5)][_0x9db865(0x19a)];let _0x3adf32=0x0;for(const _0x4c2b60 of this[_0x9db865(0x1a5)]){if(_0x5f09bf){const _0x1e8d07=_0x4c2b60[_0x9db865(0x185)](_0x5f09bf);_0x4c2b60[_0x9db865(0x191)]=!!_0x1e8d07,_0x4c2b60[_0x9db865(0x18b)](_0x5f09bf);}else _0x4c2b60[_0x9db865(0x191)]=!0x0,_0x4c2b60[_0x9db865(0x18b)](null);_0x4c2b60[_0x9db865(0x191)]&&_0x3adf32++;}return this[_0x9db865(0x191)]=_0x3adf32>0x0,{'resultsCount':_0x3adf32,'totalItemsCount':_0x5bf53d};}[_0x321aa6(0x186)](_0x36cf4b){const _0x583240=_0x321aa6;return this[_0x583240(0x1a5)][_0x583240(0x1a3)](_0x428a88=>_0x428a88['id']===_0x36cf4b);}[_0x321aa6(0x188)](_0x994979){const _0x5e36f0=_0x321aa6,_0x4a9192=this[_0x5e36f0(0x1a5)][_0x5e36f0(0x19f)](_0x994979);-0x1!==_0x4a9192&&(this[_0x5e36f0(0x1a5)][_0x5e36f0(0x195)](_0x4a9192,0x1),this[_0x5e36f0(0x19c)][_0x5e36f0(0x192)][_0x5e36f0(0x189)](_0x994979));}}
23
+ function _0x7ae9(){const _0x50c360=['1598821yRwiDF','317540cTUSPB','splice','1368402OJBUyO','remove','2251920RkYGcF','16daUxXG','isVisible','10Nbflhh','highlightText','1kuYWXd','set','10158467ijKHmQ','find','2051793sfIGds','setTemplate','bindTemplate','ck-ai-chat-history__section-title','addMany','div','filter','indexOf','items','ck-ai-chat-history__section','isMatching','length','4GuMDoH','1897290HdqZeY','getItem','ck-hidden','itemsViews','removeItem','title','_itemsListView'];_0x7ae9=function(){return _0x50c360;};return _0x7ae9();}const _0x2b852f=_0x1b5a;(function(_0x4fe852,_0x1248ac){const _0x26fcd7=_0x1b5a,_0x1412c1=_0x4fe852();while(!![]){try{const _0x300245=parseInt(_0x26fcd7(0x8f))/0x1*(-parseInt(_0x26fcd7(0x86))/0x2)+-parseInt(_0x26fcd7(0x88))/0x3*(-parseInt(_0x26fcd7(0x9f))/0x4)+-parseInt(_0x26fcd7(0xa0))/0x5+-parseInt(_0x26fcd7(0x8a))/0x6+parseInt(_0x26fcd7(0xa7))/0x7*(-parseInt(_0x26fcd7(0x8b))/0x8)+-parseInt(_0x26fcd7(0x93))/0x9*(-parseInt(_0x26fcd7(0x8d))/0xa)+parseInt(_0x26fcd7(0x91))/0xb;if(_0x300245===_0x1248ac)break;else _0x1412c1['push'](_0x1412c1['shift']());}catch(_0x5e2713){_0x1412c1['push'](_0x1412c1['shift']());}}}(_0x7ae9,0x39ec6));import{ListItemView as _0x138a71,View as _0x105697,ListView as _0x467ac6}from'ckeditor5/src/ui.js';function _0x1b5a(_0x2e65a5,_0x34f010){const _0x7ae971=_0x7ae9();return _0x1b5a=function(_0x1b5a8b,_0x1caa9b){_0x1b5a8b=_0x1b5a8b-0x86;let _0x5d314c=_0x7ae971[_0x1b5a8b];return _0x5d314c;},_0x1b5a(_0x2e65a5,_0x34f010);}export class AIChatHistoryListView extends _0x138a71{[_0x2b852f(0xa5)];[_0x2b852f(0xa3)];[_0x2b852f(0xa6)];constructor(_0x913474,{title:_0x5d7e26,items:_0x414bdc}){const _0x207ee1=_0x2b852f;super(_0x913474);const _0x34b308=this[_0x207ee1(0x95)];this[_0x207ee1(0x90)](_0x207ee1(0x8c),!0x0),this[_0x207ee1(0xa5)]=_0x5d7e26,this[_0x207ee1(0xa3)]=_0x414bdc;const _0x25063e=new _0x105697(_0x913474);_0x25063e[_0x207ee1(0x94)]({'tag':_0x207ee1(0x98),'attributes':{'class':[_0x207ee1(0x96)]},'children':[this[_0x207ee1(0xa5)]]}),this[_0x207ee1(0xa6)]=new _0x467ac6(_0x913474),this[_0x207ee1(0xa6)][_0x207ee1(0x9b)][_0x207ee1(0x97)](this[_0x207ee1(0xa3)]),this[_0x207ee1(0x94)]({'tag':'li','attributes':{'class':[_0x207ee1(0x9c),_0x34b308['if'](_0x207ee1(0x8c),_0x207ee1(0xa2),_0x416fea=>!_0x416fea)]},'children':[_0x25063e,this[_0x207ee1(0xa6)]]});}[_0x2b852f(0x99)](_0x3ea029){const _0x1d37f7=_0x2b852f,_0x1a8798=this[_0x1d37f7(0xa3)][_0x1d37f7(0x9e)];let _0x5c6e28=0x0;for(const _0x1798b3 of this[_0x1d37f7(0xa3)]){if(_0x3ea029){const _0xd9920c=_0x1798b3[_0x1d37f7(0x9d)](_0x3ea029);_0x1798b3[_0x1d37f7(0x8c)]=!!_0xd9920c,_0x1798b3[_0x1d37f7(0x8e)](_0x3ea029);}else _0x1798b3[_0x1d37f7(0x8c)]=!0x0,_0x1798b3[_0x1d37f7(0x8e)](null);_0x1798b3[_0x1d37f7(0x8c)]&&_0x5c6e28++;}return this[_0x1d37f7(0x8c)]=_0x5c6e28>0x0,{'resultsCount':_0x5c6e28,'totalItemsCount':_0x1a8798};}[_0x2b852f(0xa1)](_0x2049be){const _0x28a91f=_0x2b852f;return this[_0x28a91f(0xa3)][_0x28a91f(0x92)](_0x512281=>_0x512281['id']===_0x2049be);}[_0x2b852f(0xa4)](_0x19c66b){const _0x58ad5b=_0x2b852f,_0x2ddaae=this[_0x58ad5b(0xa3)][_0x58ad5b(0x9a)](_0x19c66b);-0x1!==_0x2ddaae&&(this[_0x58ad5b(0xa3)][_0x58ad5b(0x87)](_0x2ddaae,0x1),this[_0x58ad5b(0xa6)][_0x58ad5b(0x9b)][_0x58ad5b(0x89)](_0x19c66b));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x350e69=_0x3a9b;function _0x1976(){const _0x5850c6=['84033VMPfKH','776iJNYIj','733931tYFqBz','211707NEgaTa','ck-ai-chat-history__sections','4rgcJUh','filter','sections','addMany','9168418MmaETn','extendTemplate','56780RwtGHc','items','341339VxthFU','376EqdIfx','5862402mvHhQF','530AjCbXx'];_0x1976=function(){return _0x5850c6;};return _0x1976();}function _0x3a9b(_0xec99d0,_0x419995){const _0x197678=_0x1976();return _0x3a9b=function(_0x3a9b18,_0x119c9b){_0x3a9b18=_0x3a9b18-0x168;let _0x1b817e=_0x197678[_0x3a9b18];return _0x1b817e;},_0x3a9b(_0xec99d0,_0x419995);}(function(_0x253495,_0x343487){const _0x41a191=_0x3a9b,_0x4566bf=_0x253495();while(!![]){try{const _0x16bf9f=-parseInt(_0x41a191(0x171))/0x1+parseInt(_0x41a191(0x169))/0x2*(-parseInt(_0x41a191(0x178))/0x3)+parseInt(_0x41a191(0x172))/0x4*(parseInt(_0x41a191(0x16f))/0x5)+-parseInt(_0x41a191(0x173))/0x6+-parseInt(_0x41a191(0x16d))/0x7+parseInt(_0x41a191(0x176))/0x8*(-parseInt(_0x41a191(0x175))/0x9)+-parseInt(_0x41a191(0x174))/0xa*(-parseInt(_0x41a191(0x177))/0xb);if(_0x16bf9f===_0x343487)break;else _0x4566bf['push'](_0x4566bf['shift']());}catch(_0x428501){_0x4566bf['push'](_0x4566bf['shift']());}}}(_0x1976,0xe2b9e));import{ListView as _0x274b5e}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x274b5e{[_0x350e69(0x16b)];constructor(_0x6864ae,_0x20041c){const _0x170c3f=_0x350e69;super(_0x6864ae),this[_0x170c3f(0x16b)]=_0x20041c,this[_0x170c3f(0x170)][_0x170c3f(0x16c)](this[_0x170c3f(0x16b)]),this[_0x170c3f(0x16e)]({'attributes':{'class':[_0x170c3f(0x168)]}});}[_0x350e69(0x16a)](_0x4710e1){const _0x3c9b54=_0x350e69;let _0x4989ab=0x0,_0xa635a1=0x0;for(const _0x36009d of this[_0x3c9b54(0x16b)]){const {resultsCount:_0x5ca266,totalItemsCount:_0x306b58}=_0x36009d[_0x3c9b54(0x16a)](_0x4710e1);_0x4989ab+=_0x5ca266,_0xa635a1+=_0x306b58;}return{'resultsCount':_0x4989ab,'totalItemsCount':_0xa635a1};}}
23
+ const _0x16712f=_0xdcbf;function _0xdcbf(_0x81888b,_0x1aa49a){const _0x454828=_0x4548();return _0xdcbf=function(_0xdcbf0e,_0x2d3cc0){_0xdcbf0e=_0xdcbf0e-0x1a6;let _0x788c98=_0x454828[_0xdcbf0e];return _0x788c98;},_0xdcbf(_0x81888b,_0x1aa49a);}(function(_0x316e1b,_0x3e0675){const _0x480b4e=_0xdcbf,_0x47cde5=_0x316e1b();while(!![]){try{const _0x1cf663=parseInt(_0x480b4e(0x1ac))/0x1*(-parseInt(_0x480b4e(0x1ad))/0x2)+-parseInt(_0x480b4e(0x1a9))/0x3+-parseInt(_0x480b4e(0x1b0))/0x4*(parseInt(_0x480b4e(0x1b2))/0x5)+-parseInt(_0x480b4e(0x1b3))/0x6+parseInt(_0x480b4e(0x1ae))/0x7+parseInt(_0x480b4e(0x1b1))/0x8+-parseInt(_0x480b4e(0x1b4))/0x9*(-parseInt(_0x480b4e(0x1af))/0xa);if(_0x1cf663===_0x3e0675)break;else _0x47cde5['push'](_0x47cde5['shift']());}catch(_0x423650){_0x47cde5['push'](_0x47cde5['shift']());}}}(_0x4548,0x280f2));import{ListView as _0x18c30f}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x18c30f{[_0x16712f(0x1ab)];constructor(_0x342be8,_0x2cc391){const _0x423382=_0x16712f;super(_0x342be8),this[_0x423382(0x1ab)]=_0x2cc391,this[_0x423382(0x1a6)][_0x423382(0x1a8)](this[_0x423382(0x1ab)]),this[_0x423382(0x1aa)]({'attributes':{'class':[_0x423382(0x1b5)]}});}[_0x16712f(0x1a7)](_0x320b2e){const _0x26bb02=_0x16712f;let _0x42791f=0x0,_0x1c3a02=0x0;for(const _0xfdb101 of this[_0x26bb02(0x1ab)]){const {resultsCount:_0x1acd5e,totalItemsCount:_0x26d7e0}=_0xfdb101[_0x26bb02(0x1a7)](_0x320b2e);_0x42791f+=_0x1acd5e,_0x1c3a02+=_0x26d7e0;}return{'resultsCount':_0x42791f,'totalItemsCount':_0x1c3a02};}}function _0x4548(){const _0x50895f=['ck-ai-chat-history__sections','items','filter','addMany','18330dzwvHZ','extendTemplate','sections','5381RzBBVN','118AGJGmk','1893255bUqwZQ','104080Wgyxwy','408616QDduwr','1255488OJGauq','5eDwaFo','211968IDdPGN','171hRhHAz'];_0x4548=function(){return _0x50895f;};return _0x4548();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c97a3=_0x4b4c;(function(_0x21cdf7,_0x5a3e56){const _0x339c94=_0x4b4c,_0x3d3462=_0x21cdf7();while(!![]){try{const _0x1f064b=-parseInt(_0x339c94(0x169))/0x1+parseInt(_0x339c94(0x17e))/0x2*(parseInt(_0x339c94(0x189))/0x3)+-parseInt(_0x339c94(0x17b))/0x4*(parseInt(_0x339c94(0x176))/0x5)+-parseInt(_0x339c94(0x17c))/0x6+-parseInt(_0x339c94(0x14b))/0x7+parseInt(_0x339c94(0x150))/0x8*(-parseInt(_0x339c94(0x182))/0x9)+parseInt(_0x339c94(0x191))/0xa;if(_0x1f064b===_0x5a3e56)break;else _0x3d3462['push'](_0x3d3462['shift']());}catch(_0x2810ef){_0x3d3462['push'](_0x3d3462['shift']());}}}(_0x1419,0x52a4b));import{View as _0x1bd8e4,SearchTextView as _0x193651,FormHeaderView as _0x59a2a4,ButtonView as _0xb8a249}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xaf8765,IconCancel as _0x4aa1e7,IconPlus as _0x25a466}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x35c875}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x10c55a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5808d6}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x20d28d}from'../aichathistoryui.js';import{AISkeletonView as _0x10dcc8,SKELETON_DEFINITIONS as _0x565505}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3fa6eb}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x3fad78}from'../../aicore/utils/common-translations.js';function _0x1419(){const _0x287233=['remove','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_refreshSearch','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','fire','title','AI_CHAT_HISTORY_SEARCH_LABEL','indexOf','10iGlOoA','skeletonView','isMaximized','ck-ai-chat__start-conversation','ck-hidden','541580faTqOE','1697568KBXgtD','searchView','4934ZDdSiZ','search','addMany','extendTemplate','135KlUMpa','_createSkeletonView','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-error','AI_CHAT_HISTORY_HEADING','fieldView','ck-ai-chat-history','591CmSJdj','ck-reset_all','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty','splice','value','change:hasItems','emptyView','13516050xKezhQ','_createListItemViews','updateLoadingState','hasItems','ck-ai-chat-history__content','isSearchViewVisible','queryView','_createErrorView','add','change:errorMessage','removeHistoryItem','delegate','updateItemLoadingState','itemsViews','execute','ck-rounded-corners','errorMessage','_createEmptyStateView','removeItem','isEmptyViewVisible','set','2835273TeVpZH','AI_CHAT_LABEL_NEW_CHAT','_createSearchView','items','div','158552DzjvPz','bindTemplate','render','element','openChat','aiHistory','some','resizeButton','ltr','isVisible','ck-ai-chat-history__empty-message','updateHistoryItemsWithCategories','updateItemTitle','push','clear','_updateViewVisibility','setTemplate','locale','getItem','sectionsView','children','change:isLoading','isLoading','sections','errorView','243055MaePgS','length','bind','ck-ai-chat-error__dismiss-button'];_0x1419=function(){return _0x287233;};return _0x1419();}function _0x4b4c(_0x3ecf7e,_0x35dc79){const _0x141938=_0x1419();return _0x4b4c=function(_0x4b4c60,_0x471146){_0x4b4c60=_0x4b4c60-0x143;let _0x203da5=_0x141938[_0x4b4c60];return _0x203da5;},_0x4b4c(_0x3ecf7e,_0x35dc79);}export class AIChatHistoryView extends _0x1bd8e4{[_0x3c97a3(0x17d)];[_0x3c97a3(0x168)];[_0x3c97a3(0x177)];[_0x3c97a3(0x190)];[_0x3c97a3(0x163)];[_0x3c97a3(0x157)];constructor(_0x32867b,_0x1fbfaa){const _0x1a1017=_0x3c97a3;super(_0x32867b),this[_0x1a1017(0x14a)](_0x1a1017(0x194),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x166),!0x0),this[_0x1a1017(0x14a)](_0x1a1017(0x146),''),this[_0x1a1017(0x14a)](_0x1a1017(0x178),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x196),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x149),!0x1);const _0x55c652=new _0x59a2a4(_0x32867b,{'label':_0x3fad78(_0x32867b,_0x1a1017(0x186)),'icon':_0xaf8765,'class':_0x1a1017(0x184)});_0x1fbfaa&&(this[_0x1a1017(0x157)]=_0x3fa6eb(_0x32867b,this),_0x55c652[_0x1a1017(0x164)][_0x1a1017(0x199)](this[_0x1a1017(0x157)])),this[_0x1a1017(0x163)]=new _0x35c875(_0x32867b,[]),this[_0x1a1017(0x163)][_0x1a1017(0x19c)](..._0x20d28d)['to'](this),this[_0x1a1017(0x168)]=this[_0x1a1017(0x198)](),this[_0x1a1017(0x177)]=this[_0x1a1017(0x183)](),this[_0x1a1017(0x190)]=this[_0x1a1017(0x147)](),this[_0x1a1017(0x17d)]=this[_0x1a1017(0x14d)](),this['on'](_0x1a1017(0x165),()=>this[_0x1a1017(0x15f)]()),this['on'](_0x1a1017(0x18f),()=>this[_0x1a1017(0x15f)]()),this['on'](_0x1a1017(0x19a),()=>this[_0x1a1017(0x15f)]()),this[_0x1a1017(0x160)]({'tag':_0x1a1017(0x14f),'attributes':{'class':['ck',_0x1a1017(0x18a),_0x1a1017(0x188),_0x1a1017(0x145)],'dir':_0x1a1017(0x158)},'children':[_0x55c652,{'tag':_0x1a1017(0x14f),'attributes':{'class':[_0x1a1017(0x195)]},'children':[this[_0x1a1017(0x177)],this[_0x1a1017(0x168)],this[_0x1a1017(0x190)],this[_0x1a1017(0x17d)]]}]});}[_0x3c97a3(0x15f)](){const _0x2499a8=_0x3c97a3;this[_0x2499a8(0x196)]=!this[_0x2499a8(0x166)]&&this[_0x2499a8(0x194)]&&!this[_0x2499a8(0x146)],this[_0x2499a8(0x149)]=!this[_0x2499a8(0x166)]&&!this[_0x2499a8(0x194)]&&!this[_0x2499a8(0x146)];}[_0x3c97a3(0x14d)](){const _0x9465f0=_0x3c97a3,_0x5de5ee=new _0x193651(this[_0x9465f0(0x161)],{'filteredView':this[_0x9465f0(0x163)],'queryView':{'label':_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x174))},'infoView':{'text':{'notFound':{'primary':_0x54a0f5=>_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x16e),_0x54a0f5),'secondary':_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x171))}}}});return _0x5de5ee['on'](_0x9465f0(0x152),()=>{const _0x2cfffc=_0x9465f0;this[_0x2cfffc(0x17d)][_0x2cfffc(0x164)][_0x2cfffc(0x199)](this[_0x2cfffc(0x168)],0x1);}),_0x5de5ee[_0x9465f0(0x181)]({'attributes':{'class':[this[_0x9465f0(0x151)]['if'](_0x9465f0(0x196),_0x9465f0(0x17a),_0x3cc4cc=>!_0x3cc4cc)]}}),_0x5de5ee;}[_0x3c97a3(0x183)](){const _0xccd21c=_0x3c97a3,_0x303b9f=new _0x10dcc8(this[_0xccd21c(0x161)],_0x565505[_0xccd21c(0x155)]);return _0x303b9f[_0xccd21c(0x181)]({'attributes':{'class':[this[_0xccd21c(0x151)]['if'](_0xccd21c(0x166),_0xccd21c(0x17a),_0x4a4aee=>!_0x4a4aee)]}}),_0x303b9f;}[_0x3c97a3(0x198)](){const _0x44e2bc=_0x3c97a3,_0xc30959=new _0x1bd8e4(this[_0x44e2bc(0x161)]),_0x4dbc8=new _0xb8a249(this[_0x44e2bc(0x161)]);return _0x4dbc8[_0x44e2bc(0x14a)]({'withText':!0x1,'icon':_0x4aa1e7,'class':_0x44e2bc(0x16c)}),_0x4dbc8[_0x44e2bc(0x16b)](_0x44e2bc(0x159))['to'](this,_0x44e2bc(0x194),_0x28cc94=>!!_0x28cc94),_0x4dbc8['on'](_0x44e2bc(0x144),()=>{const _0x349704=_0x44e2bc;this[_0x349704(0x146)]='';}),_0xc30959[_0x44e2bc(0x160)]({'tag':_0x44e2bc(0x14f),'attributes':{'class':['ck',_0x44e2bc(0x185),this[_0x44e2bc(0x151)]['if'](_0x44e2bc(0x146),_0x44e2bc(0x17a),_0x593f66=>!_0x593f66)]},'children':[{'tag':'p','children':[{'text':this[_0x44e2bc(0x151)]['to'](_0x44e2bc(0x146))}]},_0x4dbc8]}),_0xc30959;}[_0x3c97a3(0x147)](){const _0x2cdf9c=_0x3c97a3,_0x3261d3=new _0xb8a249(this[_0x2cdf9c(0x161)]);_0x3261d3[_0x2cdf9c(0x14a)]({'label':_0x3fad78(this[_0x2cdf9c(0x161)],_0x2cdf9c(0x14c)),'withText':!0x0,'icon':_0x25a466,'class':_0x2cdf9c(0x179)}),_0x3261d3['on'](_0x2cdf9c(0x144),()=>{const _0x150005=_0x2cdf9c;this[_0x150005(0x172)](_0x150005(0x154));});const _0x593d6f=new _0x1bd8e4(this[_0x2cdf9c(0x161)]);return _0x593d6f[_0x2cdf9c(0x160)]({'tag':_0x2cdf9c(0x14f),'attributes':{'class':[_0x2cdf9c(0x18c),this[_0x2cdf9c(0x151)]['if'](_0x2cdf9c(0x149),_0x2cdf9c(0x17a),_0x34e75a=>!_0x34e75a)]},'children':[{'tag':'p','attributes':{'class':[_0x2cdf9c(0x15a)]},'children':[_0x3fad78(this[_0x2cdf9c(0x161)],_0x2cdf9c(0x18b))]},_0x3261d3]}),_0x593d6f;}[_0x3c97a3(0x192)](_0x7ab09e,_0x10de94){const _0x549977=_0x3c97a3,_0x45b1a1=[];for(const _0x525cd0 of _0x7ab09e){const _0x3a9da7=new _0x5808d6(_0x10de94,_0x525cd0);_0x3a9da7[_0x549977(0x19c)](..._0x20d28d)['to'](this),_0x45b1a1[_0x549977(0x15d)](_0x3a9da7);}return _0x45b1a1;}[_0x3c97a3(0x15b)](_0x13099e){const _0x2245df=_0x3c97a3,_0x443e53=this[_0x2245df(0x161)]||'en',_0x5af563=[];for(const _0x118e94 of _0x13099e){const _0x2bb058=this[_0x2245df(0x192)](_0x118e94[_0x2245df(0x14e)],_0x443e53);_0x5af563[_0x2245df(0x15d)](new _0x10c55a(_0x443e53,{'title':_0x118e94[_0x2245df(0x173)],'items':_0x2bb058}));}this[_0x2245df(0x163)][_0x2245df(0x167)]=_0x5af563,this[_0x2245df(0x163)][_0x2245df(0x14e)][_0x2245df(0x15e)](),this[_0x2245df(0x163)][_0x2245df(0x14e)][_0x2245df(0x180)](_0x5af563),this[_0x2245df(0x194)]=_0x13099e[_0x2245df(0x156)](_0x269c63=>_0x269c63[_0x2245df(0x14e)][_0x2245df(0x16a)]>0x0),this[_0x2245df(0x16f)]();}[_0x3c97a3(0x19b)](_0x394b45){const _0xb27787=_0x3c97a3;for(const _0x343ba0 of this[_0xb27787(0x163)][_0xb27787(0x167)]){const _0x29b064=_0x343ba0[_0xb27787(0x162)](_0x394b45);if(_0x29b064){if(_0x343ba0[_0xb27787(0x148)](_0x29b064),0x0===_0x343ba0[_0xb27787(0x143)][_0xb27787(0x16a)]){const _0x39d2e1=this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x175)](_0x343ba0);-0x1!==_0x39d2e1&&(this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x18d)](_0x39d2e1,0x1),this[_0xb27787(0x163)][_0xb27787(0x14e)][_0xb27787(0x16d)](_0x343ba0));}this[_0xb27787(0x194)]=this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x16a)]>0x0,this[_0xb27787(0x16f)]();break;}}}[_0x3c97a3(0x15c)](_0x20e919,_0x5bbdba){const _0x4a0450=_0x3c97a3;for(const _0x5401bd of this[_0x4a0450(0x163)][_0x4a0450(0x167)]){const _0xf234fb=_0x5401bd[_0x4a0450(0x162)](_0x20e919);if(_0xf234fb){_0xf234fb[_0x4a0450(0x170)](_0x5bbdba);break;}}}[_0x3c97a3(0x19d)](_0x52b455,_0x2fe85d,_0x5d6d3c){const _0x2a87a9=_0x3c97a3;for(const _0x5ce735 of this[_0x2a87a9(0x163)][_0x2a87a9(0x167)]){const _0x2edbcf=_0x5ce735[_0x2a87a9(0x162)](_0x52b455);if(_0x2edbcf){_0x2edbcf[_0x2a87a9(0x193)](_0x2fe85d,_0x5d6d3c);break;}}}[_0x3c97a3(0x16f)](){const _0x636098=_0x3c97a3;if(this[_0x636098(0x194)]){const _0x4c0a2d=this[_0x636098(0x17d)][_0x636098(0x197)][_0x636098(0x187)]?.[_0x636098(0x153)]?.[_0x636098(0x18e)]||'';this[_0x636098(0x17d)][_0x636098(0x17f)](_0x4c0a2d);}}}
23
+ const _0x3369d1=_0x5558;(function(_0x445e61,_0x23a4bd){const _0xc05601=_0x5558,_0x464fbd=_0x445e61();while(!![]){try{const _0x31f234=parseInt(_0xc05601(0x20b))/0x1*(parseInt(_0xc05601(0x220))/0x2)+-parseInt(_0xc05601(0x219))/0x3*(parseInt(_0xc05601(0x22d))/0x4)+-parseInt(_0xc05601(0x1e4))/0x5+-parseInt(_0xc05601(0x228))/0x6+-parseInt(_0xc05601(0x201))/0x7+-parseInt(_0xc05601(0x1ec))/0x8*(parseInt(_0xc05601(0x204))/0x9)+parseInt(_0xc05601(0x1d8))/0xa;if(_0x31f234===_0x23a4bd)break;else _0x464fbd['push'](_0x464fbd['shift']());}catch(_0x44145c){_0x464fbd['push'](_0x464fbd['shift']());}}}(_0x19f6,0x88e62));function _0x19f6(){const _0x165cad=['fieldView','errorMessage','7725620kuwAfF','aiHistory','items','45acNXBn','_updateViewVisibility','add','search','set','change:hasItems','change:errorMessage','9CGnnon','ltr','isMaximized','removeHistoryItem','skeletonView','ck-ai-chat-history','resizeButton','updateTitle','hasItems','sectionsView','ck-ai-chat-history__empty','AI_CHAT_LABEL_NEW_CHAT','updateLoadingState','isEmptyViewVisible','3DEwTmF','execute','isVisible','bindTemplate','setTemplate','updateItemLoadingState','ck-ai-chat-error__dismiss-button','42954EpHXIP','delegate','_createListItemViews','extendTemplate','splice','fire','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','6592062JtHRSw','itemsViews','_createEmptyStateView','emptyView','updateHistoryItemsWithCategories','1933404WZwJTm','render','title','isSearchViewVisible','change:isLoading','removeItem','42055720IievdX','ck-ai-chat-history__empty-message','div','ck-ai-chat__start-conversation','_createErrorView','_createSkeletonView','sections','length','locale','AI_CHAT_HISTORY_EMPTY_MESSAGE','isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','2793520MsKutK','ck-ai-chat-error','ck-rounded-corners','ck-hidden','bind','updateItemTitle','ck-reset_all','remove','949976EyyVrm','_refreshSearch','clear','AI_CHAT_HISTORY_SEARCH_LABEL','openChat','children','errorView','some','ck-ai-chat-history__content','getItem','addMany','push','value','AI_CHAT_HISTORY_HEADING','element','ck-ai-header\x20ck-ai-header_history','searchView','_createSearchView','queryView'];_0x19f6=function(){return _0x165cad;};return _0x19f6();}import{View as _0x4bd8e1,SearchTextView as _0x2bb5f2,FormHeaderView as _0x2972d4,ButtonView as _0x1f5e4b}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x290677,IconCancel as _0x85bba5,IconPlus as _0x2cee74}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x45d1af}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5c9c56}from'./aichathistorylistview.js';function _0x5558(_0x16cde5,_0x2620b2){const _0x19f645=_0x19f6();return _0x5558=function(_0x55583f,_0xdd2a50){_0x55583f=_0x55583f-0x1d6;let _0x1a427e=_0x19f645[_0x55583f];return _0x1a427e;},_0x5558(_0x16cde5,_0x2620b2);}import{AIChatHistoryListItemView as _0x114dbf}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5d69d2}from'../aichathistoryui.js';import{AISkeletonView as _0x4e73ea,SKELETON_DEFINITIONS as _0x1d6d28}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4d3259}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4c6d61}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4bd8e1{[_0x3369d1(0x1fc)];[_0x3369d1(0x1f2)];[_0x3369d1(0x20f)];[_0x3369d1(0x22b)];[_0x3369d1(0x214)];[_0x3369d1(0x211)];constructor(_0x2d7ba6,_0xd84b9e){const _0x55d46e=_0x3369d1;super(_0x2d7ba6),this[_0x55d46e(0x208)](_0x55d46e(0x213),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x1e2),!0x0),this[_0x55d46e(0x208)](_0x55d46e(0x200),''),this[_0x55d46e(0x208)](_0x55d46e(0x20d),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x230),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x218),!0x1);const _0x2a9956=new _0x2972d4(_0x2d7ba6,{'label':_0x4c6d61(_0x2d7ba6,_0x55d46e(0x1f9)),'icon':_0x290677,'class':_0x55d46e(0x1fb)});_0xd84b9e&&(this[_0x55d46e(0x211)]=_0x4d3259(_0x2d7ba6,this),_0x2a9956[_0x55d46e(0x1f1)][_0x55d46e(0x206)](this[_0x55d46e(0x211)])),this[_0x55d46e(0x214)]=new _0x45d1af(_0x2d7ba6,[]),this[_0x55d46e(0x214)][_0x55d46e(0x221)](..._0x5d69d2)['to'](this),this[_0x55d46e(0x1f2)]=this[_0x55d46e(0x1dc)](),this[_0x55d46e(0x20f)]=this[_0x55d46e(0x1dd)](),this[_0x55d46e(0x22b)]=this[_0x55d46e(0x22a)](),this[_0x55d46e(0x1fc)]=this[_0x55d46e(0x1fd)](),this['on'](_0x55d46e(0x1d6),()=>this[_0x55d46e(0x205)]()),this['on'](_0x55d46e(0x209),()=>this[_0x55d46e(0x205)]()),this['on'](_0x55d46e(0x20a),()=>this[_0x55d46e(0x205)]()),this[_0x55d46e(0x21d)]({'tag':_0x55d46e(0x1da),'attributes':{'class':['ck',_0x55d46e(0x1ea),_0x55d46e(0x210),_0x55d46e(0x1e6)],'dir':_0x55d46e(0x20c)},'children':[_0x2a9956,{'tag':_0x55d46e(0x1da),'attributes':{'class':[_0x55d46e(0x1f4)]},'children':[this[_0x55d46e(0x20f)],this[_0x55d46e(0x1f2)],this[_0x55d46e(0x22b)],this[_0x55d46e(0x1fc)]]}]});}[_0x3369d1(0x205)](){const _0x700008=_0x3369d1;this[_0x700008(0x230)]=!this[_0x700008(0x1e2)]&&this[_0x700008(0x213)]&&!this[_0x700008(0x200)],this[_0x700008(0x218)]=!this[_0x700008(0x1e2)]&&!this[_0x700008(0x213)]&&!this[_0x700008(0x200)];}[_0x3369d1(0x1fd)](){const _0x2b6268=_0x3369d1,_0x3e2d4f=new _0x2bb5f2(this[_0x2b6268(0x1e0)],{'filteredView':this[_0x2b6268(0x214)],'queryView':{'label':_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x1ef))},'infoView':{'text':{'notFound':{'primary':_0x375ed7=>_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x1e3),_0x375ed7),'secondary':_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x227))}}}});return _0x3e2d4f['on'](_0x2b6268(0x22e),()=>{const _0x4d5f35=_0x2b6268;this[_0x4d5f35(0x1fc)][_0x4d5f35(0x1f1)][_0x4d5f35(0x206)](this[_0x4d5f35(0x1f2)],0x1);}),_0x3e2d4f[_0x2b6268(0x223)]({'attributes':{'class':[this[_0x2b6268(0x21c)]['if'](_0x2b6268(0x230),_0x2b6268(0x1e7),_0x2f2fdc=>!_0x2f2fdc)]}}),_0x3e2d4f;}[_0x3369d1(0x1dd)](){const _0x30ae1c=_0x3369d1,_0x3f52c9=new _0x4e73ea(this[_0x30ae1c(0x1e0)],_0x1d6d28[_0x30ae1c(0x202)]);return _0x3f52c9[_0x30ae1c(0x223)]({'attributes':{'class':[this[_0x30ae1c(0x21c)]['if'](_0x30ae1c(0x1e2),_0x30ae1c(0x1e7),_0x1413c5=>!_0x1413c5)]}}),_0x3f52c9;}[_0x3369d1(0x1dc)](){const _0x2e1347=_0x3369d1,_0x582601=new _0x4bd8e1(this[_0x2e1347(0x1e0)]),_0xc8d1a8=new _0x1f5e4b(this[_0x2e1347(0x1e0)]);return _0xc8d1a8[_0x2e1347(0x208)]({'withText':!0x1,'icon':_0x85bba5,'class':_0x2e1347(0x21f)}),_0xc8d1a8[_0x2e1347(0x1e8)](_0x2e1347(0x21b))['to'](this,_0x2e1347(0x213),_0xbaeee0=>!!_0xbaeee0),_0xc8d1a8['on'](_0x2e1347(0x21a),()=>{const _0x3e524d=_0x2e1347;this[_0x3e524d(0x200)]='';}),_0x582601[_0x2e1347(0x21d)]({'tag':_0x2e1347(0x1da),'attributes':{'class':['ck',_0x2e1347(0x1e5),this[_0x2e1347(0x21c)]['if'](_0x2e1347(0x200),_0x2e1347(0x1e7),_0x169d25=>!_0x169d25)]},'children':[{'tag':'p','children':[{'text':this[_0x2e1347(0x21c)]['to'](_0x2e1347(0x200))}]},_0xc8d1a8]}),_0x582601;}[_0x3369d1(0x22a)](){const _0x49ff7e=_0x3369d1,_0x41b48c=new _0x1f5e4b(this[_0x49ff7e(0x1e0)]);_0x41b48c[_0x49ff7e(0x208)]({'label':_0x4c6d61(this[_0x49ff7e(0x1e0)],_0x49ff7e(0x216)),'withText':!0x0,'icon':_0x2cee74,'class':_0x49ff7e(0x1db)}),_0x41b48c['on'](_0x49ff7e(0x21a),()=>{const _0x2a14e6=_0x49ff7e;this[_0x2a14e6(0x225)](_0x2a14e6(0x1f0));});const _0x18a232=new _0x4bd8e1(this[_0x49ff7e(0x1e0)]);return _0x18a232[_0x49ff7e(0x21d)]({'tag':_0x49ff7e(0x1da),'attributes':{'class':[_0x49ff7e(0x215),this[_0x49ff7e(0x21c)]['if'](_0x49ff7e(0x218),_0x49ff7e(0x1e7),_0x1c7e85=>!_0x1c7e85)]},'children':[{'tag':'p','attributes':{'class':[_0x49ff7e(0x1d9)]},'children':[_0x4c6d61(this[_0x49ff7e(0x1e0)],_0x49ff7e(0x1e1))]},_0x41b48c]}),_0x18a232;}[_0x3369d1(0x222)](_0x39bdb2,_0x370bc6){const _0x303d97=_0x3369d1,_0xfb523=[];for(const _0x43c583 of _0x39bdb2){const _0x5aebb5=new _0x114dbf(_0x370bc6,_0x43c583);_0x5aebb5[_0x303d97(0x221)](..._0x5d69d2)['to'](this),_0xfb523[_0x303d97(0x1f7)](_0x5aebb5);}return _0xfb523;}[_0x3369d1(0x22c)](_0x135f38){const _0x552a78=_0x3369d1,_0x165844=this[_0x552a78(0x1e0)]||'en',_0x51352e=[];for(const _0x435314 of _0x135f38){const _0x3d007a=this[_0x552a78(0x222)](_0x435314[_0x552a78(0x203)],_0x165844);_0x51352e[_0x552a78(0x1f7)](new _0x5c9c56(_0x165844,{'title':_0x435314[_0x552a78(0x22f)],'items':_0x3d007a}));}this[_0x552a78(0x214)][_0x552a78(0x1de)]=_0x51352e,this[_0x552a78(0x214)][_0x552a78(0x203)][_0x552a78(0x1ee)](),this[_0x552a78(0x214)][_0x552a78(0x203)][_0x552a78(0x1f6)](_0x51352e),this[_0x552a78(0x213)]=_0x135f38[_0x552a78(0x1f3)](_0x51d493=>_0x51d493[_0x552a78(0x203)][_0x552a78(0x1df)]>0x0),this[_0x552a78(0x1ed)]();}[_0x3369d1(0x20e)](_0x5958b3){const _0x41458f=_0x3369d1;for(const _0x1b35d8 of this[_0x41458f(0x214)][_0x41458f(0x1de)]){const _0xb43581=_0x1b35d8[_0x41458f(0x1f5)](_0x5958b3);if(_0xb43581){if(_0x1b35d8[_0x41458f(0x1d7)](_0xb43581),0x0===_0x1b35d8[_0x41458f(0x229)][_0x41458f(0x1df)]){const _0x23fdd0=this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x226)](_0x1b35d8);-0x1!==_0x23fdd0&&(this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x224)](_0x23fdd0,0x1),this[_0x41458f(0x214)][_0x41458f(0x203)][_0x41458f(0x1eb)](_0x1b35d8));}this[_0x41458f(0x213)]=this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x1df)]>0x0,this[_0x41458f(0x1ed)]();break;}}}[_0x3369d1(0x1e9)](_0x2a2a4b,_0x22ccd2){const _0x52a562=_0x3369d1;for(const _0x4c80fc of this[_0x52a562(0x214)][_0x52a562(0x1de)]){const _0x2a987b=_0x4c80fc[_0x52a562(0x1f5)](_0x2a2a4b);if(_0x2a987b){_0x2a987b[_0x52a562(0x212)](_0x22ccd2);break;}}}[_0x3369d1(0x21e)](_0x159463,_0x13d173,_0x8c56e5){const _0x13028a=_0x3369d1;for(const _0xb843b0 of this[_0x13028a(0x214)][_0x13028a(0x1de)]){const _0x13b066=_0xb843b0[_0x13028a(0x1f5)](_0x159463);if(_0x13b066){_0x13b066[_0x13028a(0x217)](_0x13d173,_0x8c56e5);break;}}}[_0x3369d1(0x1ed)](){const _0x48e4a9=_0x3369d1;if(this[_0x48e4a9(0x213)]){const _0x3b7431=this[_0x48e4a9(0x1fc)][_0x48e4a9(0x1fe)][_0x48e4a9(0x1ff)]?.[_0x48e4a9(0x1fa)]?.[_0x48e4a9(0x1f8)]||'';this[_0x48e4a9(0x1fc)][_0x48e4a9(0x207)](_0x3b7431);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3e03(){const _0x42bfbf=['make-longer','true','attributes','callCustomReview','improve-writing','upsertCustomAIActionRating','json','CONTINUE','uploadUrl','10732238PVDinz','MAKE_SHORTER','/web-resources','_handleError','/reviews/system/','ai-request-failed','/ratings','deleteWebResource','translate','application/json','file','reset','pluginName','fetchDocument','fetchConversationMessages','deleteConversation','define','MAKE_TONE_CASUAL','decode','executeAction','continue','deleteFile','1079869HOiInY','statusText','push','126964etddVH','_token','upsertAIChatRating','group','/calls/','status','search','get','stringify','897624OfhwfC','PUT','/files/','fix-grammar','upsertAIReviewRating','FIX_GRAMMAR','_apiUrl','/conversations/','ai.serviceUrl','_sendApiRequest','IMPROVE_WRITING','releaseLock','20vXlWdU','data','fetchConversations','requires','/messages/','2RjHSmC','/calls','parse','totalCount','Bearer\x20','8zjeoaa','callSystemReview','/documents/','/web-resources/','name','executeCustomAction','MAKE_LONGER','catch','body','/documents','toString','read','TRANSLATE','https://ai.cke-cs.com/v1','POST','100','abortController','/messages','init','then','_decoder','ai-missing-token','/reviews/custom/calls','config','request','/actions/custom/calls/','text','CloudServices','updateConversation','ai-request-aborted','/conversations?','make-tone-casual','items','95334CgteLs','token','_getStreamReader','plugins','GET','deleteDocument','append','excludeEmpty','/models/1','/actions/custom/calls','Content-Type','1059KhYATj','feed','AbortError','/actions/system/','queryAssistant','uploadFile','modificationId','1516lzYYjR','make-tone-formal','upsertCustomAIReviewRating','value','limit','isOfficialPlugin','MAKE_TONE_FORMAL','upsertAIActionRating','/files','isPremiumPlugin','getReader','AIConnector','/conversations','2392570MeKeuM','fetchConversation','uploadDocument','PATCH','make-shorter','context','keys','getModels','length','startConversation','/reviews/custom/calls/','signal','positiveCount','DELETE'];_0x3e03=function(){return _0x42bfbf;};return _0x3e03();}const _0x1a3699=_0x4d7c;function _0x4d7c(_0x443cc1,_0x392415){const _0x3e0322=_0x3e03();return _0x4d7c=function(_0x4d7c71,_0x4f5f2b){_0x4d7c71=_0x4d7c71-0x1d7;let _0x1912db=_0x3e0322[_0x4d7c71];return _0x1912db;},_0x4d7c(_0x443cc1,_0x392415);}(function(_0x373d56,_0x5e834f){const _0x53d794=_0x4d7c,_0xfa20ef=_0x373d56();while(!![]){try{const _0x56d32e=-parseInt(_0x53d794(0x1d7))/0x1*(parseInt(_0x53d794(0x1f1))/0x2)+parseInt(_0x53d794(0x222))/0x3*(-parseInt(_0x53d794(0x229))/0x4)+-parseInt(_0x53d794(0x1ec))/0x5*(parseInt(_0x53d794(0x217))/0x6)+parseInt(_0x53d794(0x263))/0x7*(-parseInt(_0x53d794(0x1f6))/0x8)+-parseInt(_0x53d794(0x1e0))/0x9+-parseInt(_0x53d794(0x236))/0xa+parseInt(_0x53d794(0x24d))/0xb;if(_0x56d32e===_0x5e834f)break;else _0xfa20ef['push'](_0xfa20ef['shift']());}catch(_0x38bee7){_0xfa20ef['push'](_0xfa20ef['shift']());}}}(_0x3e03,0x2698b));import{createParser as _0x4667e8}from'eventsource-parser';import{ContextPlugin as _0x21198d}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e7388}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x390990){const _0x59998a=_0x4d7c;_0x390990[_0x59998a(0x24b)]=_0x59998a(0x261),_0x390990[_0x59998a(0x1e5)]=_0x59998a(0x1e3),_0x390990[_0x59998a(0x1ea)]=_0x59998a(0x248),_0x390990[_0x59998a(0x1fc)]=_0x59998a(0x244),_0x390990[_0x59998a(0x24e)]=_0x59998a(0x23a),_0x390990[_0x59998a(0x25e)]=_0x59998a(0x215),_0x390990[_0x59998a(0x22f)]=_0x59998a(0x22a),_0x390990[_0x59998a(0x202)]=_0x59998a(0x255);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x21198d{[_0x1a3699(0x1e6)];[_0x1a3699(0x1d8)];[_0x1a3699(0x20a)];static get[_0x1a3699(0x1ef)](){const _0x137f02=_0x1a3699;return[_0x137f02(0x211)];}static get[_0x1a3699(0x259)](){const _0x515e1e=_0x1a3699;return _0x515e1e(0x234);}static get[_0x1a3699(0x22e)](){return!0x0;}static get[_0x1a3699(0x232)](){return!0x0;}constructor(_0x170990){const _0x355a4e=_0x1a3699;super(_0x170990),this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x25d)](_0x355a4e(0x1e8),_0x355a4e(0x203)),this[_0x355a4e(0x1e6)]=this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x1de)](_0x355a4e(0x1e8)),this[_0x355a4e(0x1d8)]=null,this[_0x355a4e(0x20a)]=new TextDecoder();}[_0x1a3699(0x208)](){const _0x412280=_0x1a3699,_0x6a76e6=this[_0x412280(0x23b)][_0x412280(0x21a)][_0x412280(0x1de)](_0x412280(0x211));if(!_0x6a76e6[_0x412280(0x218)])throw new _0x4e7388(_0x412280(0x20b),this);this[_0x412280(0x1d8)]=_0x6a76e6[_0x412280(0x218)];}[_0x1a3699(0x23f)](_0x137258,_0x481077){const _0x458e9b=_0x1a3699,_0x1bdc3f=this[_0x458e9b(0x1e9)](_0x458e9b(0x235),_0x458e9b(0x204),{'id':_0x137258,'group':_0x481077});return{'getConversation':async()=>(await _0x1bdc3f[_0x458e9b(0x20e)])[_0x458e9b(0x24a)](),'abortController':_0x1bdc3f[_0x458e9b(0x206)]};}[_0x1a3699(0x226)]({message:_0x63500a,conversationId:_0x2b3ca7,parts:_0x1082bc,capabilities:_0x3d6e33,model:_0x46990d,quickActionData:_0x20800c}){const _0x5c53c3=_0x1a3699,_0x2e4dfb={..._0x20800c&&{'quickActionData':_0x20800c}},_0x1ae1f6={'prompt':_0x63500a,'content':_0x1082bc,'model':_0x46990d,..._0x3d6e33&&{'capabilities':_0x3d6e33},...Object[_0x5c53c3(0x23c)](_0x2e4dfb)[_0x5c53c3(0x23e)]>0x0&&{'attributes':_0x2e4dfb}},_0xd5b349=this[_0x5c53c3(0x1e9)](_0x5c53c3(0x1e7)+_0x2b3ca7+_0x5c53c3(0x207),_0x5c53c3(0x204),_0x1ae1f6);return{'getStream':async()=>{const _0x15b54b=_0x5c53c3,_0x555d1e=(await _0xd5b349[_0x15b54b(0x20e)])[_0x15b54b(0x1fe)];return this[_0x15b54b(0x219)](_0x555d1e);},'abortController':_0xd5b349[_0x5c53c3(0x206)]};}[_0x1a3699(0x1fb)]({content:_0x58c21,message:_0x30072c,model:_0x27dd0b,outputFormat:_0x590c67}){const _0xe08504=_0x1a3699,_0xdef959={'content':[{'type':_0xe08504(0x210),'content':_0x58c21}],'prompt':_0x30072c,'model':_0x27dd0b,'outputFormat':_0x590c67},_0x191136=this[_0xe08504(0x1e9)](_0xe08504(0x220),_0xe08504(0x204),_0xdef959);return{'getStream':async()=>{const _0xc1673e=_0xe08504,_0x94091e=(await _0x191136[_0xc1673e(0x20e)])[_0xc1673e(0x1fe)];return this[_0xc1673e(0x219)](_0x94091e);},'abortController':_0x191136[_0xe08504(0x206)]};}[_0x1a3699(0x260)]({actionName:_0x3c5940,content:_0x10ecb7,args:_0x573998}){const _0x284049=_0x1a3699,_0x3b8413={'content':[{'type':_0x284049(0x210),'content':_0x10ecb7}],'args':_0x573998},_0x26244c=this[_0x284049(0x1e9)](_0x284049(0x225)+_0x3c5940+_0x284049(0x1f2),_0x284049(0x204),_0x3b8413);return{'getStream':async()=>{const _0x5aaa77=_0x284049,_0x334ac9=(await _0x26244c[_0x5aaa77(0x20e)])[_0x5aaa77(0x1fe)];return this[_0x5aaa77(0x219)](_0x334ac9);},'abortController':_0x26244c[_0x284049(0x206)]};}[_0x1a3699(0x227)](_0x23047c,_0x4a6cb1,_0x296ca2){const _0x27d4f0=_0x1a3699,_0x33fb9b=new FormData();_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x257),_0x4a6cb1,_0x4a6cb1[_0x27d4f0(0x1fa)]),_0x296ca2&&_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x246),JSON[_0x27d4f0(0x1df)](_0x296ca2));const _0x7bef8=this[_0x27d4f0(0x1e9)](_0x27d4f0(0x1e7)+_0x23047c+_0x27d4f0(0x231),_0x27d4f0(0x204),_0x33fb9b);return{'getId':async()=>(await _0x7bef8[_0x27d4f0(0x20e)])[_0x27d4f0(0x24a)](),'abortController':_0x7bef8[_0x27d4f0(0x206)]};}[_0x1a3699(0x25a)](_0x382aef,_0x1fc62e){const _0x1aa564=_0x1a3699,_0x734212=this[_0x1aa564(0x1e9)](_0x1aa564(0x1e7)+_0x382aef+_0x1aa564(0x1f8)+_0x1fc62e,_0x1aa564(0x21b));return{'getDocument':async()=>(await _0x734212[_0x1aa564(0x20e)])[_0x1aa564(0x24a)](),'abortController':_0x734212[_0x1aa564(0x206)]};}[_0x1a3699(0x238)](_0x4a5995,_0x4257be,_0x3a3645){const _0x44c99f=_0x1a3699,_0x609ba={'content':_0x4257be};_0x3a3645&&(_0x609ba[_0x44c99f(0x246)]=_0x3a3645);const _0x5aedb4=this[_0x44c99f(0x1e9)](_0x44c99f(0x1e7)+_0x4a5995+_0x44c99f(0x1ff),_0x44c99f(0x204),_0x609ba);return{'getId':async()=>(await _0x5aedb4[_0x44c99f(0x20e)])[_0x44c99f(0x24a)](),'abortController':_0x5aedb4[_0x44c99f(0x206)]};}[_0x1a3699(0x1ee)](_0x5d25cc,_0x14f8d0){const _0x11584b=_0x1a3699,_0x48ce3e=new URLSearchParams();_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x21e),_0x11584b(0x245)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x22d),_0x11584b(0x205)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1da),_0x5d25cc),_0x14f8d0&&_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1dd),_0x14f8d0);const _0x2ec911=this[_0x11584b(0x1e9)](_0x11584b(0x214)+_0x48ce3e[_0x11584b(0x200)](),_0x11584b(0x21b));return{'getConversations':async()=>{const _0x411cfe=_0x11584b,_0x10b574=await _0x2ec911[_0x411cfe(0x20e)];return(await _0x10b574[_0x411cfe(0x24a)]())[_0x411cfe(0x216)];},'abortController':_0x2ec911[_0x11584b(0x206)]};}[_0x1a3699(0x25c)](_0x53cd8b){const _0x2bf93a=_0x1a3699,_0xcfb4a4=this[_0x2bf93a(0x1e9)](_0x2bf93a(0x1e7)+_0x53cd8b,_0x2bf93a(0x243));return{'execute':async()=>{const _0x1e9217=_0x2bf93a;await _0xcfb4a4[_0x1e9217(0x20e)];},'abortController':_0xcfb4a4[_0x2bf93a(0x206)]};}[_0x1a3699(0x212)](_0x47c1ac,_0x54ac52){const _0x4f5f6e=_0x1a3699,_0x225386=this[_0x4f5f6e(0x1e9)](_0x4f5f6e(0x1e7)+_0x47c1ac,_0x4f5f6e(0x239),_0x54ac52);return{'getResult':async()=>(await _0x225386[_0x4f5f6e(0x20e)],_0x54ac52),'abortController':_0x225386[_0x4f5f6e(0x206)]};}[_0x1a3699(0x237)](_0xfbe31f){const _0x242841=_0x1a3699,_0x3a72c2=this[_0x242841(0x1e9)](_0x242841(0x1e7)+_0xfbe31f,_0x242841(0x21b));return{'getConversation':async()=>(await _0x3a72c2[_0x242841(0x20e)])[_0x242841(0x24a)](),'abortController':_0x3a72c2[_0x242841(0x206)]};}[_0x1a3699(0x25b)](_0x72b7cc){const _0x8055ae=_0x1a3699,_0x1b726c=this[_0x8055ae(0x1e9)](_0x8055ae(0x1e7)+_0x72b7cc+_0x8055ae(0x207),_0x8055ae(0x21b));return{'getMessages':async()=>{const _0x3eab8f=_0x8055ae,_0x546008=await _0x1b726c[_0x3eab8f(0x20e)];return(await _0x546008[_0x3eab8f(0x24a)]())[_0x3eab8f(0x216)];},'abortController':_0x1b726c[_0x8055ae(0x206)]};}[_0x1a3699(0x24c)](_0x253ec7,_0xb8e556,_0x274abf){const _0xe48567=_0x1a3699,_0x2aeae2=this[_0xe48567(0x1e9)](_0xe48567(0x1e7)+_0x253ec7+_0xe48567(0x24f),_0xe48567(0x204),{'url':_0xb8e556,'attributes':_0x274abf});return{'getId':async()=>(await _0x2aeae2[_0xe48567(0x20e)])[_0xe48567(0x24a)](),'abortController':_0x2aeae2[_0xe48567(0x206)]};}[_0x1a3699(0x23d)](){const _0x5ab174=_0x1a3699,_0x3e109a=this[_0x5ab174(0x1e9)](_0x5ab174(0x21f),_0x5ab174(0x21b));return{'list':async()=>await(await _0x3e109a[_0x5ab174(0x20e)])[_0x5ab174(0x24a)](),'abortController':_0x3e109a[_0x5ab174(0x206)]};}[_0x1a3699(0x262)](_0x2f7d4a,_0x1c269e){const _0x1c3607=_0x1a3699,_0x5d0254=this[_0x1c3607(0x1e9)](_0x1c3607(0x1e7)+_0x2f7d4a+_0x1c3607(0x1e2)+_0x1c269e,_0x1c3607(0x243));return{'execute':async()=>{const _0x3400a8=_0x1c3607;await _0x5d0254[_0x3400a8(0x20e)];},'abortController':_0x5d0254[_0x1c3607(0x206)]};}[_0x1a3699(0x21c)](_0x1c0760,_0x499827){const _0x151bef=_0x1a3699,_0x6e38af=this[_0x151bef(0x1e9)](_0x151bef(0x1e7)+_0x1c0760+_0x151bef(0x1f8)+_0x499827,_0x151bef(0x243));return{'execute':async()=>{const _0x48aac5=_0x151bef;await _0x6e38af[_0x48aac5(0x20e)];},'abortController':_0x6e38af[_0x151bef(0x206)]};}[_0x1a3699(0x254)](_0x44ca89,_0x573aea){const _0x3a154b=_0x1a3699,_0x3fdd80=this[_0x3a154b(0x1e9)](_0x3a154b(0x1e7)+_0x44ca89+_0x3a154b(0x1f9)+_0x573aea,_0x3a154b(0x243));return{'execute':async()=>{const _0xd470f4=_0x3a154b;await _0x3fdd80[_0xd470f4(0x20e)];},'abortController':_0x3fdd80[_0x3a154b(0x206)]};}[_0x1a3699(0x1f7)]({reviewName:_0x3d7eb2,content:_0x208ae5,args:_0x3771c4}){const _0x179664=_0x1a3699,_0x31ec84=this[_0x179664(0x1e9)](_0x179664(0x251)+_0x3d7eb2+_0x179664(0x1f2),_0x179664(0x204),{'content':[{'type':_0x179664(0x210),'content':_0x208ae5}],'args':_0x3771c4});return{'getStream':async()=>{const _0x19c72d=_0x179664,_0x2d9092=(await _0x31ec84[_0x19c72d(0x20e)])[_0x19c72d(0x1fe)];return this[_0x19c72d(0x219)](_0x2d9092);},'abortController':_0x31ec84[_0x179664(0x206)]};}[_0x1a3699(0x247)]({content:_0x36e0cd,prompt:_0x456f15,model:_0x43d248}){const _0x3c9db4=_0x1a3699,_0x55f879=this[_0x3c9db4(0x1e9)](_0x3c9db4(0x20c),_0x3c9db4(0x204),{'content':[{'type':_0x3c9db4(0x210),'content':_0x36e0cd}],'prompt':_0x456f15,'model':_0x43d248});return{'getStream':async()=>{const _0x44cd2c=_0x3c9db4,_0x4626ae=(await _0x55f879[_0x44cd2c(0x20e)])[_0x44cd2c(0x1fe)];return this[_0x44cd2c(0x219)](_0x4626ae);},'abortController':_0x55f879[_0x3c9db4(0x206)]};}[_0x1a3699(0x1d9)](_0x557fb1,_0x4b3139,_0x1eb06e){const _0x2d0eae=_0x1a3699,_0x172af7=this[_0x2d0eae(0x1e9)](_0x2d0eae(0x1e7)+_0x557fb1+_0x2d0eae(0x1f0)+_0x4b3139+_0x2d0eae(0x253),_0x2d0eae(0x1e1),{'positiveCount':_0x1eb06e[_0x2d0eae(0x242)],'totalCount':_0x1eb06e[_0x2d0eae(0x1f4)],'modificationId':_0x1eb06e[_0x2d0eae(0x228)]});return{'execute':async()=>{const _0x5f08eb=_0x2d0eae;await _0x172af7[_0x5f08eb(0x20e)];},'abortController':_0x172af7[_0x2d0eae(0x206)]};}[_0x1a3699(0x230)](_0x448853,_0x34d7d1,_0x21c3c0){const _0x3858f8=_0x1a3699,_0x16c297=this[_0x3858f8(0x1e9)](_0x3858f8(0x225)+_0x448853+_0x3858f8(0x1db)+_0x34d7d1+_0x3858f8(0x253),_0x3858f8(0x1e1),{'positiveCount':_0x21c3c0[_0x3858f8(0x242)],'totalCount':_0x21c3c0[_0x3858f8(0x1f4)]});return{'execute':async()=>{const _0x14b895=_0x3858f8;await _0x16c297[_0x14b895(0x20e)];},'abortController':_0x16c297[_0x3858f8(0x206)]};}[_0x1a3699(0x249)](_0x3aafe0,_0x460f0b){const _0x42755a=_0x1a3699,_0x2d160d=this[_0x42755a(0x1e9)](_0x42755a(0x20f)+_0x3aafe0+_0x42755a(0x253),_0x42755a(0x1e1),{'positiveCount':_0x460f0b[_0x42755a(0x242)],'totalCount':_0x460f0b[_0x42755a(0x1f4)]});return{'execute':async()=>{const _0x2dcfb3=_0x42755a;await _0x2d160d[_0x2dcfb3(0x20e)];},'abortController':_0x2d160d[_0x42755a(0x206)]};}[_0x1a3699(0x1e4)](_0x1215a3,_0x1c6069,_0x26292d,_0x296cbf){const _0x660b06=_0x1a3699,_0x12ebe9=this[_0x660b06(0x1e9)](_0x660b06(0x251)+_0x1215a3+_0x660b06(0x1db)+_0x1c6069+_0x660b06(0x253),_0x660b06(0x1e1),{'positiveCount':_0x26292d[_0x660b06(0x242)],'totalCount':_0x26292d[_0x660b06(0x1f4)],'dataId':_0x296cbf});return{'execute':async()=>{const _0x201a28=_0x660b06;await _0x12ebe9[_0x201a28(0x20e)];},'abortController':_0x12ebe9[_0x660b06(0x206)]};}[_0x1a3699(0x22b)](_0x3cc7f8,_0x4699cd,_0x55d1f2){const _0x3cccc4=_0x1a3699,_0x540886=this[_0x3cccc4(0x1e9)](_0x3cccc4(0x240)+_0x3cc7f8+_0x3cccc4(0x253),_0x3cccc4(0x1e1),{'positiveCount':_0x4699cd[_0x3cccc4(0x242)],'totalCount':_0x4699cd[_0x3cccc4(0x1f4)],'dataId':_0x55d1f2});return{'execute':async()=>{const _0x5a487b=_0x3cccc4;await _0x540886[_0x5a487b(0x20e)];},'abortController':_0x540886[_0x3cccc4(0x206)]};}[_0x1a3699(0x1e9)](_0x3d7d35,_0x2db849,_0xfd982d){const _0x55abcf=_0x1a3699,_0x56572b=new AbortController(),_0x22a123=_0xfd982d instanceof FormData,_0x4cb67e={'Authorization':_0x55abcf(0x1f5)+this[_0x55abcf(0x1d8)]?.[_0x55abcf(0x22c)]};_0xfd982d&&!_0x22a123&&(_0x4cb67e[_0x55abcf(0x221)]=_0x55abcf(0x256));const _0x1c15ac={'method':_0x2db849,'headers':_0x4cb67e,'signal':_0x56572b[_0x55abcf(0x241)]};return _0xfd982d&&(_0x1c15ac[_0x55abcf(0x1fe)]=_0x22a123?_0xfd982d:JSON[_0x55abcf(0x1df)](_0xfd982d)),{'request':fetch(''+this[_0x55abcf(0x1e6)]+_0x3d7d35,_0x1c15ac)[_0x55abcf(0x1fd)](_0x10014e=>{const _0x2601bb=_0x55abcf;this[_0x2601bb(0x250)](_0x10014e);})[_0x55abcf(0x209)](_0x2a4764=>{const _0x4c51a8=_0x55abcf;if(!_0x2a4764['ok'])throw new _0x4e7388(_0x4c51a8(0x252),this,{'url':this[_0x4c51a8(0x1e6)],'path':_0x3d7d35,'method':_0x2db849,'body':_0xfd982d,'status':(_0x2a4764||{})[_0x4c51a8(0x1dc)],'statusText':(_0x2a4764||{})[_0x4c51a8(0x264)]});return _0x2a4764;}),'abortController':_0x56572b};}async*[_0x1a3699(0x219)](_0x4853e5){const _0x557b15=_0x1a3699,_0x452eca=[],_0x3d59dc=_0x4853e5[_0x557b15(0x233)](),_0xb16dd1=_0x4667e8({'onError':_0x459b73=>{const _0x3bea02=_0x557b15;this[_0x3bea02(0x250)](_0x459b73);},'onEvent':_0x5c191e=>{const _0x2340d9=_0x557b15;_0x5c191e[_0x2340d9(0x1ed)]=JSON[_0x2340d9(0x1f3)](_0x5c191e[_0x2340d9(0x1ed)]),_0x452eca[_0x2340d9(0x265)](_0x5c191e);}});try{let _0x5446aa=!0x1;for(;!_0x5446aa;){const {done:_0x2fe5c4,value:_0x362494}=await _0x3d59dc[_0x557b15(0x201)]();_0x2fe5c4&&(_0x5446aa=!0x0),_0xb16dd1[_0x557b15(0x223)](this[_0x557b15(0x20a)][_0x557b15(0x25f)](_0x362494,{'stream':!0x0})),yield*_0x452eca,_0x452eca[_0x557b15(0x23e)]=0x0;}}catch(_0xeb219f){this[_0x557b15(0x250)](_0xeb219f);}finally{_0x3d59dc[_0x557b15(0x1eb)](),_0xb16dd1[_0x557b15(0x258)]();}}[_0x1a3699(0x250)](_0x5784f7){const _0xad509=_0x1a3699;if(_0x5784f7 instanceof _0x4e7388)throw _0x5784f7;if(_0x5784f7 instanceof Error&&_0xad509(0x224)===_0x5784f7[_0xad509(0x1fa)])throw new _0x4e7388(_0xad509(0x213),this,{'originalError':_0x5784f7});throw new _0x4e7388(_0xad509(0x252),this,{'originalError':_0x5784f7});}}
23
+ const _0x1e4e03=_0x2d2b;(function(_0x3cc99c,_0x405601){const _0x2bba6b=_0x2d2b,_0x5a6816=_0x3cc99c();while(!![]){try{const _0x2e7132=-parseInt(_0x2bba6b(0x17a))/0x1+-parseInt(_0x2bba6b(0x1d4))/0x2*(parseInt(_0x2bba6b(0x188))/0x3)+parseInt(_0x2bba6b(0x1da))/0x4+-parseInt(_0x2bba6b(0x1d0))/0x5*(parseInt(_0x2bba6b(0x1a6))/0x6)+-parseInt(_0x2bba6b(0x1b9))/0x7*(-parseInt(_0x2bba6b(0x1b8))/0x8)+parseInt(_0x2bba6b(0x19f))/0x9*(parseInt(_0x2bba6b(0x178))/0xa)+parseInt(_0x2bba6b(0x1a8))/0xb*(-parseInt(_0x2bba6b(0x170))/0xc);if(_0x2e7132===_0x405601)break;else _0x5a6816['push'](_0x5a6816['shift']());}catch(_0x2a8c9f){_0x5a6816['push'](_0x5a6816['shift']());}}}(_0xfc73,0x4bc50));function _0x2d2b(_0x46fa22,_0x2bd1c4){const _0xfc7337=_0xfc73();return _0x2d2b=function(_0x2d2b2a,_0x2c71ef){_0x2d2b2a=_0x2d2b2a-0x16b;let _0x439739=_0xfc7337[_0x2d2b2a];return _0x439739;},_0x2d2b(_0x46fa22,_0x2bd1c4);}import{createParser as _0x5d19c9}from'eventsource-parser';import{ContextPlugin as _0x26f066}from'ckeditor5/src/core.js';function _0xfc73(){const _0x2e16f9=['reset','make-tone-casual','_apiUrl','/calls','PATCH','excludeEmpty','/actions/custom/calls','/conversations/','MAKE_TONE_FORMAL','/reviews/system/','deleteConversation','4360LhTFvO','keys','init','updateConversation','184jZteSD','/web-resources','releaseLock','upsertCustomAIActionRating','text','DELETE','1769548aFiPSl','callSystemReview','read','decode','CONTINUE','attributes','ai-request-aborted','catch','fix-grammar','TRANSLATE','continue','uploadDocument','_sendApiRequest','getReader','/actions/system/','MAKE_TONE_CASUAL','/messages','then','Content-Type','/actions/custom/calls/','executeCustomAction','toString','isOfficialPlugin','improve-writing','stringify','MAKE_LONGER','uploadFile','push','token','limit','make-tone-formal','deleteDocument','feed','fetchDocument','request','make-longer','/messages/','define','525036nCnAEk','/ratings','fetchConversations','translate','append','/conversations?','fetchConversation','value','3714110lMZAgo','POST','12340fSMEmq','parse','/documents/','signal','IMPROVE_WRITING','/files','GET','abortController','ai-missing-token','data','ai-request-failed','isPremiumPlugin','upsertAIReviewRating','ai.serviceUrl','11967WOVjif','_token','totalCount','upsertAIChatRating','positiveCount','length','_decoder','application/json','status','upsertCustomAIReviewRating','startConversation','/reviews/custom/calls','modificationId','body','_handleError','get','context','AIConnector','/reviews/custom/calls/','/conversations','executeAction','Bearer\x20','FIX_GRAMMAR','9NFVaOC','json','group','callCustomReview','AbortError','/calls/','pluginName','1284AcNBiS','file','44rozYdx','MAKE_SHORTER','uploadUrl','name','CloudServices','/documents','config','upsertAIActionRating','make-shorter','queryAssistant','statusText','getModels','100','/web-resources/','plugins','true','16aJTQnq','831257AjrtmG','/files/','deleteWebResource','requires','search','deleteFile','/models/1','items','fetchConversationMessages','PUT','_getStreamReader','https://ai.cke-cs.com/v1'];_0xfc73=function(){return _0x2e16f9;};return _0xfc73();}import{CKEditorError as _0x3962b6}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2f156f){const _0x433208=_0x2d2b;_0x2f156f[_0x433208(0x1de)]=_0x433208(0x1e4),_0x2f156f[_0x433208(0x19e)]=_0x433208(0x1e2),_0x2f156f[_0x433208(0x17e)]=_0x433208(0x1f1),_0x2f156f[_0x433208(0x1f3)]=_0x433208(0x16d),_0x2f156f[_0x433208(0x1a9)]=_0x433208(0x1b0),_0x2f156f[_0x433208(0x1e9)]=_0x433208(0x1c6),_0x2f156f[_0x433208(0x1cd)]=_0x433208(0x1f8),_0x2f156f[_0x433208(0x1e3)]=_0x433208(0x173);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x26f066{[_0x1e4e03(0x1c7)];[_0x1e4e03(0x189)];[_0x1e4e03(0x18e)];static get[_0x1e4e03(0x1bc)](){const _0x446101=_0x1e4e03;return[_0x446101(0x1ac)];}static get[_0x1e4e03(0x1a5)](){const _0x4f8903=_0x1e4e03;return _0x4f8903(0x199);}static get[_0x1e4e03(0x1f0)](){return!0x0;}static get[_0x1e4e03(0x185)](){return!0x0;}constructor(_0x14202d){const _0x45786a=_0x1e4e03;super(_0x14202d),this[_0x45786a(0x198)][_0x45786a(0x1ae)][_0x45786a(0x16f)](_0x45786a(0x187),_0x45786a(0x1c4)),this[_0x45786a(0x1c7)]=this[_0x45786a(0x198)][_0x45786a(0x1ae)][_0x45786a(0x197)](_0x45786a(0x187)),this[_0x45786a(0x189)]=null,this[_0x45786a(0x18e)]=new TextDecoder();}[_0x1e4e03(0x1d2)](){const _0x38975a=_0x1e4e03,_0x4623c0=this[_0x38975a(0x198)][_0x38975a(0x1b6)][_0x38975a(0x197)](_0x38975a(0x1ac));if(!_0x4623c0[_0x38975a(0x1f6)])throw new _0x3962b6(_0x38975a(0x182),this);this[_0x38975a(0x189)]=_0x4623c0[_0x38975a(0x1f6)];}[_0x1e4e03(0x192)](_0x14ffcb,_0x5dc3b1){const _0x41cde7=_0x1e4e03,_0xee386d=this[_0x41cde7(0x1e6)](_0x41cde7(0x19b),_0x41cde7(0x179),{'id':_0x14ffcb,'group':_0x5dc3b1});return{'getConversation':async()=>(await _0xee386d[_0x41cde7(0x16c)])[_0x41cde7(0x1a0)](),'abortController':_0xee386d[_0x41cde7(0x181)]};}[_0x1e4e03(0x1b1)]({message:_0x5ec475,conversationId:_0x22b354,parts:_0x48676e,capabilities:_0x5d1edd,model:_0x3dcc0a,quickActionData:_0x2780d9}){const _0x25aa08=_0x1e4e03,_0x312b65={..._0x2780d9&&{'quickActionData':_0x2780d9}},_0x156841={'prompt':_0x5ec475,'content':_0x48676e,'model':_0x3dcc0a,..._0x5d1edd&&{'capabilities':_0x5d1edd},...Object[_0x25aa08(0x1d1)](_0x312b65)[_0x25aa08(0x18d)]>0x0&&{'attributes':_0x312b65}},_0x5eead9=this[_0x25aa08(0x1e6)](_0x25aa08(0x1cc)+_0x22b354+_0x25aa08(0x1ea),_0x25aa08(0x179),_0x156841);return{'getStream':async()=>{const _0xe5d0f3=_0x25aa08,_0x547279=(await _0x5eead9[_0xe5d0f3(0x16c)])[_0xe5d0f3(0x195)];return this[_0xe5d0f3(0x1c3)](_0x547279);},'abortController':_0x5eead9[_0x25aa08(0x181)]};}[_0x1e4e03(0x1ee)]({content:_0x5c5ad1,message:_0x22f559,model:_0x40e948,outputFormat:_0x56537f}){const _0xc3fa3c=_0x1e4e03,_0xad9ef9={'content':[{'type':_0xc3fa3c(0x1d8),'content':_0x5c5ad1}],'prompt':_0x22f559,'model':_0x40e948,'outputFormat':_0x56537f},_0x4dc9a8=this[_0xc3fa3c(0x1e6)](_0xc3fa3c(0x1cb),_0xc3fa3c(0x179),_0xad9ef9);return{'getStream':async()=>{const _0x4b22d2=_0xc3fa3c,_0x524a44=(await _0x4dc9a8[_0x4b22d2(0x16c)])[_0x4b22d2(0x195)];return this[_0x4b22d2(0x1c3)](_0x524a44);},'abortController':_0x4dc9a8[_0xc3fa3c(0x181)]};}[_0x1e4e03(0x19c)]({actionName:_0x1ecc13,content:_0x54f003,args:_0xd63c03}){const _0x36b0b9=_0x1e4e03,_0x10cc7d={'content':[{'type':_0x36b0b9(0x1d8),'content':_0x54f003}],'args':_0xd63c03},_0x1d8194=this[_0x36b0b9(0x1e6)](_0x36b0b9(0x1e8)+_0x1ecc13+_0x36b0b9(0x1c8),_0x36b0b9(0x179),_0x10cc7d);return{'getStream':async()=>{const _0x542cde=_0x36b0b9,_0x374a2c=(await _0x1d8194[_0x542cde(0x16c)])[_0x542cde(0x195)];return this[_0x542cde(0x1c3)](_0x374a2c);},'abortController':_0x1d8194[_0x36b0b9(0x181)]};}[_0x1e4e03(0x1f4)](_0x9b6745,_0x334514,_0x28b493){const _0x4ca496=_0x1e4e03,_0x106352=new FormData();_0x106352[_0x4ca496(0x174)](_0x4ca496(0x1a7),_0x334514,_0x334514[_0x4ca496(0x1ab)]),_0x28b493&&_0x106352[_0x4ca496(0x174)](_0x4ca496(0x1df),JSON[_0x4ca496(0x1f2)](_0x28b493));const _0x36711f=this[_0x4ca496(0x1e6)](_0x4ca496(0x1cc)+_0x9b6745+_0x4ca496(0x17f),_0x4ca496(0x179),_0x106352);return{'getId':async()=>(await _0x36711f[_0x4ca496(0x16c)])[_0x4ca496(0x1a0)](),'abortController':_0x36711f[_0x4ca496(0x181)]};}[_0x1e4e03(0x16b)](_0x861829,_0x2c72da){const _0x2d8b0d=_0x1e4e03,_0x39e4bf=this[_0x2d8b0d(0x1e6)](_0x2d8b0d(0x1cc)+_0x861829+_0x2d8b0d(0x17c)+_0x2c72da,_0x2d8b0d(0x180));return{'getDocument':async()=>(await _0x39e4bf[_0x2d8b0d(0x16c)])[_0x2d8b0d(0x1a0)](),'abortController':_0x39e4bf[_0x2d8b0d(0x181)]};}[_0x1e4e03(0x1e5)](_0x59904a,_0x2f3e04,_0x428433){const _0x3314a7=_0x1e4e03,_0x4e376b={'content':_0x2f3e04};_0x428433&&(_0x4e376b[_0x3314a7(0x1df)]=_0x428433);const _0x4d3995=this[_0x3314a7(0x1e6)](_0x3314a7(0x1cc)+_0x59904a+_0x3314a7(0x1ad),_0x3314a7(0x179),_0x4e376b);return{'getId':async()=>(await _0x4d3995[_0x3314a7(0x16c)])[_0x3314a7(0x1a0)](),'abortController':_0x4d3995[_0x3314a7(0x181)]};}[_0x1e4e03(0x172)](_0x2d0e7f,_0x443084){const _0x1850aa=_0x1e4e03,_0x43db84=new URLSearchParams();_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1ca),_0x1850aa(0x1b7)),_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1f7),_0x1850aa(0x1b4)),_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1a1),_0x2d0e7f),_0x443084&&_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1bd),_0x443084);const _0x2627e6=this[_0x1850aa(0x1e6)](_0x1850aa(0x175)+_0x43db84[_0x1850aa(0x1ef)](),_0x1850aa(0x180));return{'getConversations':async()=>{const _0x588e99=_0x1850aa,_0x2386c5=await _0x2627e6[_0x588e99(0x16c)];return(await _0x2386c5[_0x588e99(0x1a0)]())[_0x588e99(0x1c0)];},'abortController':_0x2627e6[_0x1850aa(0x181)]};}[_0x1e4e03(0x1cf)](_0x321d99){const _0x4adcac=_0x1e4e03,_0x4ad12c=this[_0x4adcac(0x1e6)](_0x4adcac(0x1cc)+_0x321d99,_0x4adcac(0x1d9));return{'execute':async()=>{const _0x1d06b6=_0x4adcac;await _0x4ad12c[_0x1d06b6(0x16c)];},'abortController':_0x4ad12c[_0x4adcac(0x181)]};}[_0x1e4e03(0x1d3)](_0xa0a488,_0x1b3c66){const _0x5773df=_0x1e4e03,_0x405145=this[_0x5773df(0x1e6)](_0x5773df(0x1cc)+_0xa0a488,_0x5773df(0x1c9),_0x1b3c66);return{'getResult':async()=>(await _0x405145[_0x5773df(0x16c)],_0x1b3c66),'abortController':_0x405145[_0x5773df(0x181)]};}[_0x1e4e03(0x176)](_0x24201e){const _0x451fb2=_0x1e4e03,_0x5481ec=this[_0x451fb2(0x1e6)](_0x451fb2(0x1cc)+_0x24201e,_0x451fb2(0x180));return{'getConversation':async()=>(await _0x5481ec[_0x451fb2(0x16c)])[_0x451fb2(0x1a0)](),'abortController':_0x5481ec[_0x451fb2(0x181)]};}[_0x1e4e03(0x1c1)](_0x3aa8a4){const _0x50cc15=_0x1e4e03,_0x51b69a=this[_0x50cc15(0x1e6)](_0x50cc15(0x1cc)+_0x3aa8a4+_0x50cc15(0x1ea),_0x50cc15(0x180));return{'getMessages':async()=>{const _0x51233a=_0x50cc15,_0x3c593c=await _0x51b69a[_0x51233a(0x16c)];return(await _0x3c593c[_0x51233a(0x1a0)]())[_0x51233a(0x1c0)];},'abortController':_0x51b69a[_0x50cc15(0x181)]};}[_0x1e4e03(0x1aa)](_0x32d74c,_0x321ddc,_0x3318a0){const _0x1c9211=_0x1e4e03,_0x460b1d=this[_0x1c9211(0x1e6)](_0x1c9211(0x1cc)+_0x32d74c+_0x1c9211(0x1d5),_0x1c9211(0x179),{'url':_0x321ddc,'attributes':_0x3318a0});return{'getId':async()=>(await _0x460b1d[_0x1c9211(0x16c)])[_0x1c9211(0x1a0)](),'abortController':_0x460b1d[_0x1c9211(0x181)]};}[_0x1e4e03(0x1b3)](){const _0x1109cf=_0x1e4e03,_0x141279=this[_0x1109cf(0x1e6)](_0x1109cf(0x1bf),_0x1109cf(0x180));return{'list':async()=>await(await _0x141279[_0x1109cf(0x16c)])[_0x1109cf(0x1a0)](),'abortController':_0x141279[_0x1109cf(0x181)]};}[_0x1e4e03(0x1be)](_0x1f820d,_0x57bc8d){const _0x108c6c=_0x1e4e03,_0x56001c=this[_0x108c6c(0x1e6)](_0x108c6c(0x1cc)+_0x1f820d+_0x108c6c(0x1ba)+_0x57bc8d,_0x108c6c(0x1d9));return{'execute':async()=>{const _0x10e9d4=_0x108c6c;await _0x56001c[_0x10e9d4(0x16c)];},'abortController':_0x56001c[_0x108c6c(0x181)]};}[_0x1e4e03(0x1f9)](_0x3c858f,_0xc0328c){const _0x2a2553=_0x1e4e03,_0x459aca=this[_0x2a2553(0x1e6)](_0x2a2553(0x1cc)+_0x3c858f+_0x2a2553(0x17c)+_0xc0328c,_0x2a2553(0x1d9));return{'execute':async()=>{const _0x22c68a=_0x2a2553;await _0x459aca[_0x22c68a(0x16c)];},'abortController':_0x459aca[_0x2a2553(0x181)]};}[_0x1e4e03(0x1bb)](_0x26e515,_0x40d5ea){const _0x28ff6c=_0x1e4e03,_0x3ab6e8=this[_0x28ff6c(0x1e6)](_0x28ff6c(0x1cc)+_0x26e515+_0x28ff6c(0x1b5)+_0x40d5ea,_0x28ff6c(0x1d9));return{'execute':async()=>{const _0x1d66d6=_0x28ff6c;await _0x3ab6e8[_0x1d66d6(0x16c)];},'abortController':_0x3ab6e8[_0x28ff6c(0x181)]};}[_0x1e4e03(0x1db)]({reviewName:_0x3cf8d4,content:_0x5a1f60,args:_0x57ae03}){const _0x2c8de3=_0x1e4e03,_0x22cfb3=this[_0x2c8de3(0x1e6)](_0x2c8de3(0x1ce)+_0x3cf8d4+_0x2c8de3(0x1c8),_0x2c8de3(0x179),{'content':[{'type':_0x2c8de3(0x1d8),'content':_0x5a1f60}],'args':_0x57ae03});return{'getStream':async()=>{const _0x3d02d6=_0x2c8de3,_0x9a9859=(await _0x22cfb3[_0x3d02d6(0x16c)])[_0x3d02d6(0x195)];return this[_0x3d02d6(0x1c3)](_0x9a9859);},'abortController':_0x22cfb3[_0x2c8de3(0x181)]};}[_0x1e4e03(0x1a2)]({content:_0x3e6e1b,prompt:_0xdfc6a4,model:_0x4004cb}){const _0x3d7ac3=_0x1e4e03,_0x44d4d9=this[_0x3d7ac3(0x1e6)](_0x3d7ac3(0x193),_0x3d7ac3(0x179),{'content':[{'type':_0x3d7ac3(0x1d8),'content':_0x3e6e1b}],'prompt':_0xdfc6a4,'model':_0x4004cb});return{'getStream':async()=>{const _0x1e705c=_0x3d7ac3,_0x4ddd6e=(await _0x44d4d9[_0x1e705c(0x16c)])[_0x1e705c(0x195)];return this[_0x1e705c(0x1c3)](_0x4ddd6e);},'abortController':_0x44d4d9[_0x3d7ac3(0x181)]};}[_0x1e4e03(0x18b)](_0x264d02,_0x32226c,_0x5348c3){const _0x5e5581=_0x1e4e03,_0x50fc78=this[_0x5e5581(0x1e6)](_0x5e5581(0x1cc)+_0x264d02+_0x5e5581(0x16e)+_0x32226c+_0x5e5581(0x171),_0x5e5581(0x1c2),{'positiveCount':_0x5348c3[_0x5e5581(0x18c)],'totalCount':_0x5348c3[_0x5e5581(0x18a)],'modificationId':_0x5348c3[_0x5e5581(0x194)]});return{'execute':async()=>{const _0x4c79d1=_0x5e5581;await _0x50fc78[_0x4c79d1(0x16c)];},'abortController':_0x50fc78[_0x5e5581(0x181)]};}[_0x1e4e03(0x1af)](_0x384244,_0x5aa71d,_0x42cd34){const _0x2c83ed=_0x1e4e03,_0x41902f=this[_0x2c83ed(0x1e6)](_0x2c83ed(0x1e8)+_0x384244+_0x2c83ed(0x1a4)+_0x5aa71d+_0x2c83ed(0x171),_0x2c83ed(0x1c2),{'positiveCount':_0x42cd34[_0x2c83ed(0x18c)],'totalCount':_0x42cd34[_0x2c83ed(0x18a)]});return{'execute':async()=>{const _0x1eba17=_0x2c83ed;await _0x41902f[_0x1eba17(0x16c)];},'abortController':_0x41902f[_0x2c83ed(0x181)]};}[_0x1e4e03(0x1d7)](_0x2b05b7,_0x4f8dc3){const _0x54c459=_0x1e4e03,_0x417736=this[_0x54c459(0x1e6)](_0x54c459(0x1ed)+_0x2b05b7+_0x54c459(0x171),_0x54c459(0x1c2),{'positiveCount':_0x4f8dc3[_0x54c459(0x18c)],'totalCount':_0x4f8dc3[_0x54c459(0x18a)]});return{'execute':async()=>{const _0x29e39f=_0x54c459;await _0x417736[_0x29e39f(0x16c)];},'abortController':_0x417736[_0x54c459(0x181)]};}[_0x1e4e03(0x186)](_0x4a9526,_0x4a2ee8,_0x4df61c,_0x30dd0f){const _0x4999f0=_0x1e4e03,_0x58bea8=this[_0x4999f0(0x1e6)](_0x4999f0(0x1ce)+_0x4a9526+_0x4999f0(0x1a4)+_0x4a2ee8+_0x4999f0(0x171),_0x4999f0(0x1c2),{'positiveCount':_0x4df61c[_0x4999f0(0x18c)],'totalCount':_0x4df61c[_0x4999f0(0x18a)],'dataId':_0x30dd0f});return{'execute':async()=>{const _0x4b2a09=_0x4999f0;await _0x58bea8[_0x4b2a09(0x16c)];},'abortController':_0x58bea8[_0x4999f0(0x181)]};}[_0x1e4e03(0x191)](_0x3e16d5,_0x329b38,_0x1ebcc7){const _0x198e55=_0x1e4e03,_0x209d82=this[_0x198e55(0x1e6)](_0x198e55(0x19a)+_0x3e16d5+_0x198e55(0x171),_0x198e55(0x1c2),{'positiveCount':_0x329b38[_0x198e55(0x18c)],'totalCount':_0x329b38[_0x198e55(0x18a)],'dataId':_0x1ebcc7});return{'execute':async()=>{const _0x73eaad=_0x198e55;await _0x209d82[_0x73eaad(0x16c)];},'abortController':_0x209d82[_0x198e55(0x181)]};}[_0x1e4e03(0x1e6)](_0x283127,_0x5f55dc,_0x4031a1){const _0xdf33ea=_0x1e4e03,_0x8587aa=new AbortController(),_0x2a0858=_0x4031a1 instanceof FormData,_0x497251={'Authorization':_0xdf33ea(0x19d)+this[_0xdf33ea(0x189)]?.[_0xdf33ea(0x177)]};_0x4031a1&&!_0x2a0858&&(_0x497251[_0xdf33ea(0x1ec)]=_0xdf33ea(0x18f));const _0x2df3e1={'method':_0x5f55dc,'headers':_0x497251,'signal':_0x8587aa[_0xdf33ea(0x17d)]};return _0x4031a1&&(_0x2df3e1[_0xdf33ea(0x195)]=_0x2a0858?_0x4031a1:JSON[_0xdf33ea(0x1f2)](_0x4031a1)),{'request':fetch(''+this[_0xdf33ea(0x1c7)]+_0x283127,_0x2df3e1)[_0xdf33ea(0x1e1)](_0x1e9ff2=>{const _0x417c3b=_0xdf33ea;this[_0x417c3b(0x196)](_0x1e9ff2);})[_0xdf33ea(0x1eb)](_0x5d59af=>{const _0x3de9bf=_0xdf33ea;if(!_0x5d59af['ok'])throw new _0x3962b6(_0x3de9bf(0x184),this,{'url':this[_0x3de9bf(0x1c7)],'path':_0x283127,'method':_0x5f55dc,'body':_0x4031a1,'status':(_0x5d59af||{})[_0x3de9bf(0x190)],'statusText':(_0x5d59af||{})[_0x3de9bf(0x1b2)]});return _0x5d59af;}),'abortController':_0x8587aa};}async*[_0x1e4e03(0x1c3)](_0x13de0e){const _0x3d2bab=_0x1e4e03,_0x5574ab=[],_0x2a240c=_0x13de0e[_0x3d2bab(0x1e7)](),_0x143cbd=_0x5d19c9({'onError':_0x4e8282=>{const _0x4d4051=_0x3d2bab;this[_0x4d4051(0x196)](_0x4e8282);},'onEvent':_0x4b5ca0=>{const _0x5305dd=_0x3d2bab;_0x4b5ca0[_0x5305dd(0x183)]=JSON[_0x5305dd(0x17b)](_0x4b5ca0[_0x5305dd(0x183)]),_0x5574ab[_0x5305dd(0x1f5)](_0x4b5ca0);}});try{let _0x54b6b8=!0x1;for(;!_0x54b6b8;){const {done:_0x44ce2f,value:_0x515ff3}=await _0x2a240c[_0x3d2bab(0x1dc)]();_0x44ce2f&&(_0x54b6b8=!0x0),_0x143cbd[_0x3d2bab(0x1fa)](this[_0x3d2bab(0x18e)][_0x3d2bab(0x1dd)](_0x515ff3,{'stream':!0x0})),yield*_0x5574ab,_0x5574ab[_0x3d2bab(0x18d)]=0x0;}}catch(_0x3ee2ee){this[_0x3d2bab(0x196)](_0x3ee2ee);}finally{_0x2a240c[_0x3d2bab(0x1d6)](),_0x143cbd[_0x3d2bab(0x1c5)]();}}[_0x1e4e03(0x196)](_0x5cbdad){const _0x34be11=_0x1e4e03;if(_0x5cbdad instanceof _0x3962b6)throw _0x5cbdad;if(_0x5cbdad instanceof Error&&_0x34be11(0x1a3)===_0x5cbdad[_0x34be11(0x1ab)])throw new _0x3962b6(_0x34be11(0x1e0),this,{'originalError':_0x5cbdad});throw new _0x3962b6(_0x34be11(0x184),this,{'originalError':_0x5cbdad});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25708a=_0x5d9b;(function(_0x31a056,_0xba31f6){const _0x9631e0=_0x5d9b,_0x549d9c=_0x31a056();while(!![]){try{const _0x5aaa54=parseInt(_0x9631e0(0x83))/0x1+-parseInt(_0x9631e0(0xbe))/0x2*(-parseInt(_0x9631e0(0xa5))/0x3)+-parseInt(_0x9631e0(0x7e))/0x4+-parseInt(_0x9631e0(0x94))/0x5+-parseInt(_0x9631e0(0x9c))/0x6+parseInt(_0x9631e0(0x7f))/0x7+parseInt(_0x9631e0(0xad))/0x8;if(_0x5aaa54===_0xba31f6)break;else _0x549d9c['push'](_0x549d9c['shift']());}catch(_0x334125){_0x549d9c['push'](_0x549d9c['shift']());}}}(_0xa127,0x2af09));import{ViewDowncastWriter as _0x14fdf4}from'ckeditor5/src/engine.js';function _0x5d9b(_0x258ce8,_0x293d34){const _0xa127d9=_0xa127();return _0x5d9b=function(_0x5d9b67,_0x598530){_0x5d9b67=_0x5d9b67-0x74;let _0xab9faa=_0xa127d9[_0x5d9b67];return _0xab9faa;},_0x5d9b(_0x258ce8,_0x293d34);}import{ContextPlugin as _0x36fdcf,Editor as _0x285234}from'ckeditor5/src/core.js';import{uid as _0x5b22ab}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x43629c}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x25708a(0xae);export class AIEditing extends _0x36fdcf{[_0x25708a(0xa1)]=null;[_0x25708a(0x7b)]=!0x1;[_0x25708a(0xcb)];static get[_0x25708a(0x8e)](){const _0xb0f058=_0x25708a;return _0xb0f058(0xa2);}static get[_0x25708a(0xd4)](){return!0x0;}static get[_0x25708a(0x96)](){return!0x0;}get[_0x25708a(0xa8)](){const _0x33e9b1=_0x25708a;if(!this[_0x33e9b1(0xcb)]){const _0xec789c=_0x43629c(this[_0x33e9b1(0xb4)]),_0x418fb0=_0xec789c[_0x33e9b1(0x85)][_0x33e9b1(0xb7)](_0x33e9b1(0xd2))&&_0xec789c[_0x33e9b1(0x85)][_0x33e9b1(0xa0)](_0x33e9b1(0xd2))[_0x33e9b1(0xa8)];this[_0x33e9b1(0xcb)]=_0x418fb0||_0x5b22ab();}return this[_0x33e9b1(0xcb)];}[_0x25708a(0xa4)](){const _0x392db5=_0x25708a,_0x4d02c1=_0x43629c(this[_0x392db5(0xb4)]),_0x570816=_0x4d02c1[_0x392db5(0x8c)],_0x13db68=_0x4d02c1[_0x392db5(0x7c)][_0x392db5(0x7d)](_0x570816[_0x392db5(0x9b)][_0x392db5(0xbd)](),{'convertAiChatSelectionMarker':!0x0}),_0x1ddc4d=new _0x14fdf4(_0x4d02c1[_0x392db5(0xca)][_0x392db5(0x76)][_0x392db5(0x9b)]);this[_0x392db5(0x79)](_0x13db68,_0x1ddc4d);let _0x46c171=_0x4d02c1[_0x392db5(0x7c)][_0x392db5(0xcc)][_0x392db5(0x8a)](_0x13db68);const _0x3cf523=this[_0x392db5(0xa7)](),_0x295668=[];for(const _0x42768d of _0x3cf523){const _0x1b98ea='<'+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0xb6)+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0xb1),_0x1382ad=_0x46c171[_0x392db5(0x95)](_0x1b98ea);_0x46c171=_0x46c171[_0x392db5(0x82)](0x0,_0x1382ad)+_0x46c171[_0x392db5(0x82)](_0x1382ad+_0x1b98ea[_0x392db5(0xba)]);const _0x548023='<'+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0x8f)+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0x8d),_0x4e8041=_0x46c171[_0x392db5(0x95)](_0x548023);_0x46c171=_0x46c171[_0x392db5(0x82)](0x0,_0x4e8041)+_0x46c171[_0x392db5(0x82)](_0x4e8041+_0x548023[_0x392db5(0xba)]),_0x295668[_0x392db5(0xd3)]({'markerName':_0x42768d[_0x392db5(0xbb)],'start':_0x1382ad,'end':_0x4e8041,'htmlFragment':_0x46c171[_0x392db5(0x82)](_0x1382ad,_0x4e8041)});}return{'content':_0x46c171,'version':_0x4d02c1[_0x392db5(0x8c)][_0x392db5(0x9b)][_0x392db5(0xc1)],'sessionId':this[_0x392db5(0xa8)],'selections':_0x295668};}async[_0x25708a(0x81)](){const _0x410a4e=_0x25708a;this[_0x410a4e(0xb4)]instanceof _0x285234?this[_0x410a4e(0xa6)](this[_0x410a4e(0xb4)]):this[_0x410a4e(0xc5)](this[_0x410a4e(0xb4)][_0x410a4e(0x74)],_0x410a4e(0x90),(_0x4982d7,_0x5dc03d)=>{const _0x3cd018=_0x410a4e;_0x5dc03d['on'](_0x3cd018(0xcd),()=>{const _0x4de51d=_0x3cd018;this[_0x4de51d(0xa6)](_0x5dc03d);});});}[_0x25708a(0xa6)](_0xe9d817){const _0x391069=_0x25708a;_0xe9d817[_0x391069(0x88)][_0x391069(0xb8)](_0x391069(0xc4))[_0x391069(0xd1)]({'model':_0x391069(0xae),'view':{'classes':[_0x391069(0xb5),_0x391069(0x91)],'priority':0xc}}),_0xe9d817[_0x391069(0x88)][_0x391069(0xb8)](_0x391069(0x87))[_0x391069(0xac)]({'model':_0x391069(0xae),'view':(_0x2dcf2e,{writer:_0x51f05b,options:_0x4038f1})=>_0x4038f1[_0x391069(0x80)]?_0x51f05b[_0x391069(0x9a)](_0x2dcf2e[_0x391069(0xab)]+':'+(_0x2dcf2e[_0x391069(0xa3)]?_0x391069(0xd7):_0x391069(0x77))):null});}[_0x25708a(0xbc)](_0x29fe9e,_0x566fe4,_0x456696=!0x1,_0x2b439c=!0x1){const _0x52cdf8=_0x25708a;if(this[_0x52cdf8(0x7b)]&&!_0x2b439c)return!0x1;const _0x2e6b35=_0x43629c(this[_0x52cdf8(0xb4)])[_0x52cdf8(0x8c)];return _0x2e6b35[_0x52cdf8(0x86)](_0x37ec07=>{const _0x4f5413=_0x52cdf8;this[_0x4f5413(0xa1)]&&this[_0x4f5413(0x9e)](this[_0x4f5413(0xa1)]),this[_0x4f5413(0xa1)]=_0x566fe4,this[_0x4f5413(0x7b)]=_0x456696;let _0x4a24ab=0x0;for(let _0x1b1a39 of _0x29fe9e){const _0x430084=_0x4f5413(0xbf)+_0x4a24ab;if(_0x1b1a39[_0x4f5413(0xd7)][_0x4f5413(0xda)]){const _0x43504e=_0x1b1a39[_0x4f5413(0xd7)][_0x4f5413(0xc2)](({item:_0x44f612})=>!_0x2e6b35[_0x4f5413(0x98)][_0x4f5413(0xa9)](_0x44f612),{'boundaries':_0x1b1a39});_0x1b1a39=_0x37ec07[_0x4f5413(0xd8)](_0x43504e,_0x1b1a39[_0x4f5413(0x77)]);}_0x37ec07[_0x4f5413(0xd9)](_0x430084,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1b1a39}),_0x4a24ab++;}}),window[_0x52cdf8(0x93)]()?.[_0x52cdf8(0xce)](),!0x0;}[_0x25708a(0x9e)](_0x377b6e){const _0x2659dd=_0x25708a;if(this[_0x2659dd(0xa1)]!=_0x377b6e)return!0x1;this[_0x2659dd(0xa1)]=null,this[_0x2659dd(0x7b)]=!0x1;const _0x399e67=_0x43629c(this[_0x2659dd(0xb4)]),_0x498a56=_0x399e67[_0x2659dd(0x8c)][_0x2659dd(0x84)][_0x2659dd(0xc9)](_0x2659dd(0xae));return _0x399e67[_0x2659dd(0x8c)][_0x2659dd(0x86)](_0x1e207e=>{const _0x24345d=_0x2659dd;for(const _0x304d3b of _0x498a56)_0x1e207e[_0x24345d(0x89)](_0x304d3b);}),!0x0;}[_0x25708a(0xd0)](_0x48a399){const _0x51097a=_0x25708a,_0x177065=_0x43629c(this[_0x51097a(0xb4)]),_0x49b599=_0x177065[_0x51097a(0x7c)][_0x51097a(0x7d)](_0x48a399),_0xb298e=new _0x14fdf4(_0x177065[_0x51097a(0xca)][_0x51097a(0x76)][_0x51097a(0x9b)]);return this[_0x51097a(0x79)](_0x49b599,_0xb298e),_0x49b599;}[_0x25708a(0x79)](_0x5dc2f7,_0xda8156){const _0x5a6e75=_0x25708a;let _0x3f263c=!0x1;const _0x330d60=new Set();for(const _0x578dab of _0x5dc2f7[_0x5a6e75(0xc0)]()){const _0xd9345c=_0x578dab['is'](_0x5a6e75(0xcf))||_0x578dab['is'](_0x5a6e75(0xb3));if(!_0x578dab['is'](_0x5a6e75(0xaa)))continue;(this[_0x5a6e75(0x79)](_0x578dab,_0xda8156)||_0xd9345c)&&(_0xda8156[_0x5a6e75(0xb9)](_0x5a6e75(0x78),this[_0x5a6e75(0x97)](_0x330d60),_0x578dab),_0x3f263c=!0x0);}return _0x3f263c;}[_0x25708a(0x97)](_0x314c74){const _0x38c5bf=_0x25708a;let _0x443d4f;do{_0x443d4f='';for(let _0x3ce042=0x0;_0x3ce042<0x4;_0x3ce042++)_0x443d4f+=String[_0x38c5bf(0xc6)](0x61+Math[_0x38c5bf(0x7a)](0x1a*Math[_0x38c5bf(0xd5)]()));}while(_0x314c74[_0x38c5bf(0xb7)](_0x443d4f));return _0x314c74[_0x38c5bf(0x90)](_0x443d4f),_0x443d4f;}[_0x25708a(0xaf)](){const _0x49dca7=_0x25708a,{model:_0x1df29c}=_0x43629c(this[_0x49dca7(0xb4)]),_0x20d006=_0x1df29c[_0x49dca7(0x9b)][_0x49dca7(0x75)],_0x463fef=_0x1df29c[_0x49dca7(0xd6)](_0x20d006),_0x46b538=[],_0x308137=_0x1df29c[_0x49dca7(0x9f)](_0x463fef)[_0x49dca7(0x92)]();for(const {item:_0x376073}of _0x308137)_0x376073['is'](_0x49dca7(0xb2))?_0x46b538[_0x49dca7(0xd3)](_0x376073[_0x49dca7(0x7c)]):_0x376073['is'](_0x49dca7(0xaa))&&_0x46b538[_0x49dca7(0xba)]>0x0&&'\x20'!==_0x46b538[_0x46b538[_0x49dca7(0xba)]-0x1]&&_0x46b538[_0x49dca7(0xd3)]('\x20');return'\x22'+_0x46b538[_0x49dca7(0x9d)]('')[_0x49dca7(0x8b)]()+'\x22';}[_0x25708a(0xa7)](){const _0x35c46=_0x25708a,_0x8ef914=_0x43629c(this[_0x35c46(0xb4)])[_0x35c46(0x8c)];return Array[_0x35c46(0xc3)](_0x8ef914[_0x35c46(0x84)][_0x35c46(0xc9)](_0x35c46(0xae)))[_0x35c46(0xc8)]((_0x53fed2,_0x599cf8)=>_0x53fed2[_0x35c46(0xb0)]()[_0x35c46(0xc7)](_0x599cf8[_0x35c46(0xb0)]())?-0x1:_0x53fed2[_0x35c46(0xb0)]()[_0x35c46(0x99)](_0x599cf8[_0x35c46(0xb0)]())?0x1:0x0);}}function _0xa127(){const _0x38f929=['start','createRange','addMarker','isAtEnd','editors','selection','view','end','data-id','_setDataIdsOnChildren','floor','_displayedFakeSelectionLocked','data','toView','925428waLQwZ','1144570AcCVsF','convertAiChatSelectionMarker','afterInit','substring','322573vSXWzq','markers','plugins','change','dataDowncast','conversion','removeMarker','toData','trim','model',':end>','pluginName',':end></','add','ck-ai-assistant-ui_theme','getWalker','getSelection','666900iqofUm','indexOf','isPremiumPlugin','_nextDataId','schema','isAfter','createUIElement','document','948636jrWhRI','join','hideFakeVisualSelection','createRangeIn','get','_displayedFakeSelectionId','AIEditing','isOpening','getDocumentData','885AxPTUk','_integrateEditor','_getMarkersInDocumentOrder','sessionId','isContent','element','markerName','markerToElement','1198448iBSTwE','ai-selection','getSelectionText','getStart',':start>','$textProxy','containerElement','context','ck-fake-ai-selection',':start></','has','for','setAttribute','length','name','showFakeVisualSelection','getRoot','426evVnEH','ai-selection:','getChildren','version','getLastMatchingPosition','from','editingDowncast','listenTo','fromCharCode','isBefore','sort','getMarkersGroup','editing','_sessionId','processor','ready','removeAllRanges','emptyElement','modelToViewWithIds','markerToHighlight','RealTimeCollaborationClient','push','isOfficialPlugin','random','getSelectedContent'];_0xa127=function(){return _0x38f929;};return _0xa127();}
23
+ function _0x5154(_0xee5812,_0x5edd34){const _0x5df90e=_0x5df9();return _0x5154=function(_0x5154a1,_0x48a13e){_0x5154a1=_0x5154a1-0x12f;let _0x12718d=_0x5df90e[_0x5154a1];return _0x12718d;},_0x5154(_0xee5812,_0x5edd34);}const _0x42a3e7=_0x5154;(function(_0x1cc92a,_0x39df42){const _0x4d6adb=_0x5154,_0xbecf1a=_0x1cc92a();while(!![]){try{const _0xf2a426=parseInt(_0x4d6adb(0x15a))/0x1+parseInt(_0x4d6adb(0x15e))/0x2+-parseInt(_0x4d6adb(0x194))/0x3*(-parseInt(_0x4d6adb(0x189))/0x4)+-parseInt(_0x4d6adb(0x179))/0x5*(-parseInt(_0x4d6adb(0x154))/0x6)+-parseInt(_0x4d6adb(0x191))/0x7*(parseInt(_0x4d6adb(0x16c))/0x8)+-parseInt(_0x4d6adb(0x18d))/0x9+-parseInt(_0x4d6adb(0x163))/0xa;if(_0xf2a426===_0x39df42)break;else _0xbecf1a['push'](_0xbecf1a['shift']());}catch(_0x58b870){_0xbecf1a['push'](_0xbecf1a['shift']());}}}(_0x5df9,0xc7b37));import{ViewDowncastWriter as _0x391cd5}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x36a858,Editor as _0x2175c5}from'ckeditor5/src/core.js';import{uid as _0x1179b5}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3ebfa4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x42a3e7(0x165);export class AIEditing extends _0x36a858{[_0x42a3e7(0x14b)]=null;[_0x42a3e7(0x13c)]=!0x1;[_0x42a3e7(0x141)];static get[_0x42a3e7(0x18b)](){const _0x154b67=_0x42a3e7;return _0x154b67(0x14e);}static get[_0x42a3e7(0x157)](){return!0x0;}static get[_0x42a3e7(0x164)](){return!0x0;}get[_0x42a3e7(0x13f)](){const _0x39559f=_0x42a3e7;if(!this[_0x39559f(0x141)]){const _0x18792f=_0x3ebfa4(this[_0x39559f(0x196)]),_0x4af5d1=_0x18792f[_0x39559f(0x16e)][_0x39559f(0x17e)](_0x39559f(0x130))&&_0x18792f[_0x39559f(0x16e)][_0x39559f(0x169)](_0x39559f(0x130))[_0x39559f(0x13f)];this[_0x39559f(0x141)]=_0x4af5d1||_0x1179b5();}return this[_0x39559f(0x141)];}[_0x42a3e7(0x14f)](){const _0x2df148=_0x42a3e7,_0x41a035=_0x3ebfa4(this[_0x2df148(0x196)]),_0x56c8bf=_0x41a035[_0x2df148(0x16d)],_0x4f6f63=_0x41a035[_0x2df148(0x197)][_0x2df148(0x15c)](_0x56c8bf[_0x2df148(0x14a)][_0x2df148(0x13b)](),{'convertAiChatSelectionMarker':!0x0}),_0x35c5d1=new _0x391cd5(_0x41a035[_0x2df148(0x173)][_0x2df148(0x162)][_0x2df148(0x14a)]);this[_0x2df148(0x17b)](_0x4f6f63,_0x35c5d1);let _0x3a7266=_0x41a035[_0x2df148(0x197)][_0x2df148(0x153)][_0x2df148(0x16a)](_0x4f6f63);const _0x4d9a56=this[_0x2df148(0x134)](),_0x201ea4=[];for(const _0x3eac03 of _0x4d9a56){const _0x27edda='<'+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x192)+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x147),_0x553573=_0x3a7266[_0x2df148(0x138)](_0x27edda);_0x3a7266=_0x3a7266[_0x2df148(0x14c)](0x0,_0x553573)+_0x3a7266[_0x2df148(0x14c)](_0x553573+_0x27edda[_0x2df148(0x184)]);const _0x57a1ef='<'+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x150)+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x15f),_0x15842b=_0x3a7266[_0x2df148(0x138)](_0x57a1ef);_0x3a7266=_0x3a7266[_0x2df148(0x14c)](0x0,_0x15842b)+_0x3a7266[_0x2df148(0x14c)](_0x15842b+_0x57a1ef[_0x2df148(0x184)]),_0x201ea4[_0x2df148(0x132)]({'markerName':_0x3eac03[_0x2df148(0x155)],'start':_0x553573,'end':_0x15842b,'htmlFragment':_0x3a7266[_0x2df148(0x14c)](_0x553573,_0x15842b)});}return{'content':_0x3a7266,'version':_0x41a035[_0x2df148(0x16d)][_0x2df148(0x14a)][_0x2df148(0x152)],'sessionId':this[_0x2df148(0x13f)],'selections':_0x201ea4};}async[_0x42a3e7(0x17d)](){const _0x1ba958=_0x42a3e7;this[_0x1ba958(0x196)]instanceof _0x2175c5?this[_0x1ba958(0x18f)](this[_0x1ba958(0x196)]):this[_0x1ba958(0x172)](this[_0x1ba958(0x196)][_0x1ba958(0x185)],_0x1ba958(0x18c),(_0x3e49ae,_0x8b5419)=>{const _0x1962da=_0x1ba958;_0x8b5419['on'](_0x1962da(0x183),()=>{const _0x4f1265=_0x1962da;this[_0x4f1265(0x18f)](_0x8b5419);});});}[_0x42a3e7(0x18f)](_0x566e07){const _0x17c517=_0x42a3e7;_0x566e07[_0x17c517(0x158)][_0x17c517(0x15d)](_0x17c517(0x177))[_0x17c517(0x168)]({'model':_0x17c517(0x165),'view':{'classes':[_0x17c517(0x142),_0x17c517(0x17c)],'priority':0xc}}),_0x566e07[_0x17c517(0x158)][_0x17c517(0x15d)](_0x17c517(0x166))[_0x17c517(0x135)]({'model':_0x17c517(0x165),'view':(_0x4bb661,{writer:_0x562f43,options:_0x3ef6})=>_0x3ef6[_0x17c517(0x175)]?_0x562f43[_0x17c517(0x143)](_0x4bb661[_0x17c517(0x148)]+':'+(_0x4bb661[_0x17c517(0x17f)]?_0x17c517(0x180):_0x17c517(0x18e))):null});}[_0x42a3e7(0x161)](_0x4bda8d,_0x413449,_0x30bd67=!0x1,_0x558b46=!0x1){const _0x58a9f5=_0x42a3e7;if(this[_0x58a9f5(0x13c)]&&!_0x558b46)return!0x1;const _0x5d0cab=_0x3ebfa4(this[_0x58a9f5(0x196)])[_0x58a9f5(0x16d)];return _0x5d0cab[_0x58a9f5(0x15b)](_0x405f96=>{const _0x42246d=_0x58a9f5;this[_0x42246d(0x14b)]&&this[_0x42246d(0x159)](this[_0x42246d(0x14b)]),this[_0x42246d(0x14b)]=_0x413449,this[_0x42246d(0x13c)]=_0x30bd67;let _0x4ebf58=0x0;for(let _0x6d9221 of _0x4bda8d){const _0x3d5354=_0x42246d(0x16f)+_0x4ebf58;if(_0x6d9221[_0x42246d(0x180)][_0x42246d(0x188)]){const _0x387bd3=_0x6d9221[_0x42246d(0x180)][_0x42246d(0x14d)](({item:_0x26aba9})=>!_0x5d0cab[_0x42246d(0x176)][_0x42246d(0x193)](_0x26aba9),{'boundaries':_0x6d9221});_0x6d9221=_0x405f96[_0x42246d(0x178)](_0x387bd3,_0x6d9221[_0x42246d(0x18e)]);}_0x405f96[_0x42246d(0x13a)](_0x3d5354,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x6d9221}),_0x4ebf58++;}}),window[_0x58a9f5(0x186)]()?.[_0x58a9f5(0x160)](),!0x0;}[_0x42a3e7(0x159)](_0x545728){const _0x26d509=_0x42a3e7;if(this[_0x26d509(0x14b)]!=_0x545728)return!0x1;this[_0x26d509(0x14b)]=null,this[_0x26d509(0x13c)]=!0x1;const _0x4bd2d3=_0x3ebfa4(this[_0x26d509(0x196)]),_0x4877ee=_0x4bd2d3[_0x26d509(0x16d)][_0x26d509(0x18a)][_0x26d509(0x151)](_0x26d509(0x165));return _0x4bd2d3[_0x26d509(0x16d)][_0x26d509(0x15b)](_0x2a30e4=>{const _0x12bef8=_0x26d509;for(const _0x132543 of _0x4877ee)_0x2a30e4[_0x12bef8(0x144)](_0x132543);}),!0x0;}[_0x42a3e7(0x140)](_0x1590da){const _0x22c8c1=_0x42a3e7,_0x4fba58=_0x3ebfa4(this[_0x22c8c1(0x196)]),_0x2feac4=_0x4fba58[_0x22c8c1(0x197)][_0x22c8c1(0x15c)](_0x1590da),_0x38c62f=new _0x391cd5(_0x4fba58[_0x22c8c1(0x173)][_0x22c8c1(0x162)][_0x22c8c1(0x14a)]);return this[_0x22c8c1(0x17b)](_0x2feac4,_0x38c62f),_0x2feac4;}[_0x42a3e7(0x17b)](_0x49de5c,_0x3aa8d0){const _0x290557=_0x42a3e7;let _0x59cbc6=!0x1;const _0x1da49f=new Set();for(const _0x23ab9c of _0x49de5c[_0x290557(0x136)]()){const _0x6c080=_0x23ab9c['is'](_0x290557(0x195))||_0x23ab9c['is'](_0x290557(0x17a));if(!_0x23ab9c['is'](_0x290557(0x133)))continue;(this[_0x290557(0x17b)](_0x23ab9c,_0x3aa8d0)||_0x6c080)&&(_0x3aa8d0[_0x290557(0x146)](_0x290557(0x174),this[_0x290557(0x13e)](_0x1da49f),_0x23ab9c),_0x59cbc6=!0x0);}return _0x59cbc6;}[_0x42a3e7(0x13e)](_0x5f365e){const _0x403167=_0x42a3e7;let _0x3fd625;do{_0x3fd625='';for(let _0x1ec550=0x0;_0x1ec550<0x4;_0x1ec550++)_0x3fd625+=String[_0x403167(0x139)](0x61+Math[_0x403167(0x190)](0x1a*Math[_0x403167(0x171)]()));}while(_0x5f365e[_0x403167(0x17e)](_0x3fd625));return _0x5f365e[_0x403167(0x18c)](_0x3fd625),_0x3fd625;}[_0x42a3e7(0x137)](){const _0x1d3790=_0x42a3e7,{model:_0x98d60d}=_0x3ebfa4(this[_0x1d3790(0x196)]),_0x2a76ad=_0x98d60d[_0x1d3790(0x14a)][_0x1d3790(0x12f)],_0x3600df=_0x98d60d[_0x1d3790(0x182)](_0x2a76ad),_0x4f8fe0=[],_0x7a100=_0x98d60d[_0x1d3790(0x145)](_0x3600df)[_0x1d3790(0x167)]();for(const {item:_0x2ba256}of _0x7a100)_0x2ba256['is'](_0x1d3790(0x181))?_0x4f8fe0[_0x1d3790(0x132)](_0x2ba256[_0x1d3790(0x197)]):_0x2ba256['is'](_0x1d3790(0x133))&&_0x4f8fe0[_0x1d3790(0x184)]>0x0&&'\x20'!==_0x4f8fe0[_0x4f8fe0[_0x1d3790(0x184)]-0x1]&&_0x4f8fe0[_0x1d3790(0x132)]('\x20');return'\x22'+_0x4f8fe0[_0x1d3790(0x16b)]('')[_0x1d3790(0x13d)]()+'\x22';}[_0x42a3e7(0x134)](){const _0x554a93=_0x42a3e7,_0x4f8d08=_0x3ebfa4(this[_0x554a93(0x196)])[_0x554a93(0x16d)];return Array[_0x554a93(0x187)](_0x4f8d08[_0x554a93(0x18a)][_0x554a93(0x151)](_0x554a93(0x165)))[_0x554a93(0x149)]((_0x5a2710,_0x55b2b9)=>_0x5a2710[_0x554a93(0x156)]()[_0x554a93(0x131)](_0x55b2b9[_0x554a93(0x156)]())?-0x1:_0x5a2710[_0x554a93(0x156)]()[_0x554a93(0x170)](_0x55b2b9[_0x554a93(0x156)]())?0x1:0x0);}}function _0x5df9(){const _0x3869d7=['version','processor','12vmblHh','name','getStart','isOfficialPlugin','conversion','hideFakeVisualSelection','1329579etWOFe','change','toView','for','2977224UEenmi',':end>','removeAllRanges','showFakeVisualSelection','view','35039380DIgVvA','isPremiumPlugin','ai-selection','dataDowncast','getWalker','markerToHighlight','get','toData','join','568BPYwYq','model','plugins','ai-selection:','isAfter','random','listenTo','editing','data-id','convertAiChatSelectionMarker','schema','editingDowncast','createRange','3561340VcJvcx','containerElement','_setDataIdsOnChildren','ck-ai-assistant-ui_theme','afterInit','has','isOpening','start','$textProxy','getSelectedContent','ready','length','editors','getSelection','from','isAtEnd','8GLydNn','markers','pluginName','add','3091149vPmpgG','end','_integrateEditor','floor','28959wszZWl',':start></','isContent','1074561IGcWts','emptyElement','context','data','selection','RealTimeCollaborationClient','isBefore','push','element','_getMarkersInDocumentOrder','markerToElement','getChildren','getSelectionText','indexOf','fromCharCode','addMarker','getRoot','_displayedFakeSelectionLocked','trim','_nextDataId','sessionId','modelToViewWithIds','_sessionId','ck-fake-ai-selection','createUIElement','removeMarker','createRangeIn','setAttribute',':start>','markerName','sort','document','_displayedFakeSelectionId','substring','getLastMatchingPosition','AIEditing','getDocumentData',':end></','getMarkersGroup'];_0x5df9=function(){return _0x3869d7;};return _0x5df9();}