@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.4

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 (319) 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 +16 -16
  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/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.d.ts +21 -14
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.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/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c40a2=_0x2322;function _0x463b(){const _0x5b28db=['get','_aiChatController','setConversationPinned','selectConversation','getItem','AI_CHAT_HISTORY_CATEGORY_LATER','getItems','updateItemLoadingState','_showConversationHistory','updateItemPinned','_handleHistoryErrorUI','createdAt','push','isOfficialPlugin','3240904PRxfWW','removeItem','history','requires','plugins','activateTab:history','pinned','removeConversation','resize','activateTab','_handleRemove','operation','locale','_handleEditTitle','init','remove','488344rLbRVa','editConversationTitle','380930gohwUx','_aiChatHistoryUi','AI_CHAT_HISTORY_ERROR_GENERIC','getGroupId','pluginName','view','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updates','getDate','_setIsMaximized','activeConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_getCategorizedItems','isPremiumPlugin','length','AI_CHAT_HISTORY_CATEGORY_TODAY','itemRemoved','removeHistoryItem','updateItems','error','_updateHistoryItemsUI','_generateErrorMessage','AIChatHistoryController','setLoadingSkeleton','loadItems','getMonth','resizeTabs','updateItemTitle','AI_CHAT_UNTITLED_CONVERSATION','setIsMaximized','7ZXNAtm','setDate','toLocaleDateString','title','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','AI_CHAT_HISTORY_PIN_ACTION','items','48399MlvKkT','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_CATEGORY_PINNED','195509FVLrON','rename','resizedTabs','_setItemLoading','itemUpdated','listenTo','AI_CHAT_HISTORY_UNPIN_ACTION','itemId','change:activeConversation','itemsLoaded','getFullYear','loadConversation','25mSETkM','_handleTogglePin','460PpPKMN','654198pakXQH','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_aiConnector','openChat','_clearItemLoading','76pGFItT','68967cXarzJ','chat','unpin','map','showError','handleRemovedConversation','_handleSelectConversation','pin','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','context'];_0x463b=function(){return _0x5b28db;};return _0x463b();}(function(_0x4cc8ee,_0x1e253d){const _0xeb95d6=_0x2322,_0x2b279b=_0x4cc8ee();while(!![]){try{const _0x1b7f45=-parseInt(_0xeb95d6(0xc6))/0x1+parseInt(_0xeb95d6(0xda))/0x2*(parseInt(_0xeb95d6(0xc3))/0x3)+-parseInt(_0xeb95d6(0x103))/0x4*(-parseInt(_0xeb95d6(0xd2))/0x5)+parseInt(_0xeb95d6(0xd5))/0x6+-parseInt(_0xeb95d6(0xbc))/0x7*(parseInt(_0xeb95d6(0xf3))/0x8)+-parseInt(_0xeb95d6(0xdb))/0x9*(parseInt(_0xeb95d6(0xd4))/0xa)+-parseInt(_0xeb95d6(0x105))/0xb;if(_0x1b7f45===_0x1e253d)break;else _0x2b279b['push'](_0x2b279b['shift']());}catch(_0x564a9d){_0x2b279b['push'](_0x2b279b['shift']());}}}(_0x463b,0x542bf));import{ContextPlugin as _0xfaaf63}from'ckeditor5/src/core.js';import{AIConnector as _0x584354}from'../aicore/aiconnector.js';import{AIChatController as _0x4197ee}from'../aichat/aichatcontroller.js';import{AITabs as _0x129c5d}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x423a9b}from'./aichathistoryui.js';function _0x2322(_0x32c420,_0x4cf989){const _0x463b4a=_0x463b();return _0x2322=function(_0x2322ee,_0x4e1e4f){_0x2322ee=_0x2322ee-0xbb;let _0x580023=_0x463b4a[_0x2322ee];return _0x580023;},_0x2322(_0x32c420,_0x4cf989);}import{AIChatHistoryConversations as _0x2279c0}from'./model/aichathistoryconversations.js';import{getTranslation as _0x9bb15c}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0xfaaf63{[_0x3c40a2(0xd7)];[_0x3c40a2(0x106)];[_0x3c40a2(0xe6)];static get[_0x3c40a2(0xf6)](){return[_0x584354,_0x4197ee,_0x423a9b,_0x129c5d];}static get[_0x3c40a2(0x109)](){const _0x2dd5dd=_0x3c40a2;return _0x2dd5dd(0x11b);}static get[_0x3c40a2(0xf2)](){return!0x0;}static get[_0x3c40a2(0x112)](){return!0x0;}[_0x3c40a2(0x101)](){const _0x381f6c=_0x3c40a2;this[_0x381f6c(0xd7)]=this[_0x381f6c(0xe4)][_0x381f6c(0xf7)][_0x381f6c(0xe5)](_0x584354),this[_0x381f6c(0x106)]=this[_0x381f6c(0xe4)][_0x381f6c(0xf7)][_0x381f6c(0xe5)](_0x423a9b),this[_0x381f6c(0xe6)]=this[_0x381f6c(0xe4)][_0x381f6c(0xf7)][_0x381f6c(0xe5)](_0x4197ee);const _0x32d8fa=this[_0x381f6c(0xe4)][_0x381f6c(0xf7)][_0x381f6c(0xe5)](_0x129c5d);try{const _0x94ed19=this[_0x381f6c(0xe6)][_0x381f6c(0x108)]();this[_0x381f6c(0xf5)]=new _0x2279c0({'connector':this[_0x381f6c(0xd7)],'group':_0x94ed19}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0xfa),(_0x1fcb1e,_0x3be1c2)=>{const _0x188977=_0x381f6c;this[_0x188977(0xc9)](_0x3be1c2['id'],_0x188977(0x102)),this[_0x188977(0xfd)](_0x3be1c2['id']);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0x104),(_0x36afff,_0x5a273f)=>{const _0x3797c9=_0x381f6c;this[_0x3797c9(0xc9)](_0x5a273f['id'],_0x3797c9(0xc7)),this[_0x3797c9(0x100)](_0x5a273f['id'],_0x5a273f[_0x3797c9(0xbf)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xf5)],_0x381f6c(0xca),(_0x4a5524,_0x5448b0)=>{const _0x5c76c9=_0x381f6c;void 0x0!==_0x5448b0[_0x5c76c9(0x10c)][_0x5c76c9(0xbf)]&&this[_0x5c76c9(0x106)][_0x5c76c9(0x120)](_0x5448b0[_0x5c76c9(0xcd)],_0x5448b0[_0x5c76c9(0x10c)][_0x5c76c9(0xbf)]),void 0x0!==_0x5448b0[_0x5c76c9(0x10c)][_0x5c76c9(0xf9)]&&this[_0x5c76c9(0x119)](),this[_0x5c76c9(0xd9)](_0x5448b0[_0x5c76c9(0xcd)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xf5)],_0x381f6c(0x115),(_0x317f13,_0x2da4f5)=>{const _0x33fb10=_0x381f6c;this[_0x33fb10(0xe6)][_0x33fb10(0xe0)](_0x2da4f5[_0x33fb10(0xcd)]),this[_0x33fb10(0x106)][_0x33fb10(0x116)](_0x2da4f5[_0x33fb10(0xcd)]),this[_0x33fb10(0xd9)](_0x2da4f5[_0x33fb10(0xcd)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xf5)],_0x381f6c(0xcf),()=>{const _0x2bd46f=_0x381f6c;this[_0x2bd46f(0x119)]();}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xf5)],_0x381f6c(0x118),(_0x49330a,_0x1de0ae)=>{const _0x309913=_0x381f6c;this[_0x309913(0xef)](_0x1de0ae[_0x309913(0x118)],_0x1de0ae[_0x309913(0xfe)],_0x1de0ae[_0x309913(0xcd)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0xe8),(_0x58c3d3,_0x367fc9)=>{const _0x53078e=_0x381f6c;this[_0x53078e(0xe1)](_0x367fc9['id']);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0xe7),(_0x5b8b08,_0x188cdb)=>{const _0x186f4e=_0x381f6c,_0x797d7c=_0x188cdb[_0x186f4e(0xf9)]?_0x186f4e(0xe2):_0x186f4e(0xdd);this[_0x186f4e(0xc9)](_0x188cdb['id'],_0x797d7c),this[_0x186f4e(0xd3)](_0x188cdb['id'],_0x188cdb[_0x186f4e(0xf9)]);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0xd8),()=>{const _0x3ba40f=_0x381f6c;_0x32d8fa[_0x3ba40f(0x10a)][_0x3ba40f(0xfc)](_0x3ba40f(0xdc));}),this[_0x381f6c(0xcb)](this[_0x381f6c(0xe6)],_0x381f6c(0xce),()=>{const _0x4d2095=_0x381f6c;this[_0x4d2095(0x119)]();}),_0x32d8fa[_0x381f6c(0x10a)]['on'](_0x381f6c(0xf8),()=>{const _0x2560c8=_0x381f6c;this[_0x2560c8(0xed)]();}),this[_0x381f6c(0xcb)](_0x32d8fa,_0x381f6c(0xc8),(_0x573715,_0x5dc8bf)=>{const _0x5dc41d=_0x381f6c;this[_0x5dc41d(0x10e)](_0x5dc8bf);}),this[_0x381f6c(0xcb)](this[_0x381f6c(0x106)],_0x381f6c(0x11f),()=>{const _0x1d7a26=_0x381f6c;_0x32d8fa[_0x1d7a26(0xfb)]();});}catch(_0x5423df){this[_0x381f6c(0xef)](_0x5423df,_0x381f6c(0x101));}}async[_0x3c40a2(0x100)](_0x36e0df,_0x16ae23){const _0x32319e=_0x3c40a2;await this[_0x32319e(0xf5)][_0x32319e(0x120)](_0x36e0df,_0x16ae23);}async[_0x3c40a2(0xd3)](_0x17760f,_0x17d5eb){const _0x2d71a2=_0x3c40a2;await this[_0x2d71a2(0xf5)][_0x2d71a2(0xee)](_0x17760f,_0x17d5eb);}async[_0x3c40a2(0xfd)](_0x32f23b){const _0x36e27d=_0x3c40a2;await this[_0x36e27d(0xf5)][_0x36e27d(0xf4)](_0x32f23b);}async[_0x3c40a2(0xe1)](_0x41ddb6){const _0x16ddce=_0x3c40a2;await this[_0x16ddce(0xe6)][_0x16ddce(0xd1)](_0x41ddb6);}async[_0x3c40a2(0xed)](){const _0x4fc1ca=_0x3c40a2;this[_0x4fc1ca(0x106)][_0x4fc1ca(0xdf)](''),this[_0x4fc1ca(0x106)][_0x4fc1ca(0x11c)](!0x0),await this[_0x4fc1ca(0xf5)][_0x4fc1ca(0x101)](),this[_0x4fc1ca(0x106)][_0x4fc1ca(0x11c)](!0x1);}[_0x3c40a2(0x119)](){const _0x4db3d6=_0x3c40a2,_0x5037f6=this[_0x4db3d6(0xe6)][_0x4db3d6(0x10f)]?.['id'],_0x3bed37=this[_0x4db3d6(0x111)]()[_0x4db3d6(0xde)](_0x404576=>({'title':_0x404576[_0x4db3d6(0xbf)],'items':_0x404576[_0x4db3d6(0xc2)][_0x4db3d6(0xde)](_0x12d311=>({'id':_0x12d311['id'],'title':_0x12d311[_0x4db3d6(0xbf)]||_0x9bb15c(this[_0x4db3d6(0xe4)][_0x4db3d6(0xff)],_0x4db3d6(0x121)),'createdAt':new Date(_0x12d311[_0x4db3d6(0xf0)])[_0x4db3d6(0xbe)](),'active':_0x12d311['id']===_0x5037f6,'pinned':_0x12d311[_0x4db3d6(0xf9)]}))}));this[_0x4db3d6(0x106)][_0x4db3d6(0x117)](_0x3bed37);}[_0x3c40a2(0xc9)](_0x392548,_0x278470){const _0x1ebfc5=_0x3c40a2;this[_0x1ebfc5(0x106)][_0x1ebfc5(0xec)](_0x392548,_0x278470,!0x0);}[_0x3c40a2(0xd9)](_0x1ffab8){const _0x1f7a26=_0x3c40a2;this[_0x1f7a26(0x106)][_0x1f7a26(0xec)](_0x1ffab8,null,!0x1);}[_0x3c40a2(0xef)](_0x149c69,_0x2ce697,_0x19dc3f){const _0x22a4da=_0x3c40a2,_0x11b561=this[_0x22a4da(0x11a)](_0x2ce697,_0x19dc3f);this[_0x22a4da(0x106)][_0x22a4da(0xdf)](_0x11b561),_0x19dc3f&&this[_0x22a4da(0xd9)](_0x19dc3f),this[_0x22a4da(0x106)][_0x22a4da(0x11c)](!0x1);}[_0x3c40a2(0x11a)](_0x1fd1fc,_0x2159cf){const _0x3ce356=_0x3c40a2,_0x433590=_0x2159cf?this[_0x3ce356(0xf5)][_0x3ce356(0xe9)](_0x2159cf):null,_0x3cc06f=_0x433590?.[_0x3ce356(0xbf)]||_0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0x121));switch(_0x1fd1fc){case _0x3ce356(0x120):return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0xc4),_0x3cc06f);case _0x3ce356(0xee):{const _0xaaff8b=_0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x433590?.[_0x3ce356(0xf9)]?_0x3ce356(0xcc):_0x3ce356(0xc1));return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0x110),[_0xaaff8b,_0x3cc06f]);}case _0x3ce356(0xf4):return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0x10b),_0x3cc06f);case _0x3ce356(0x101):case _0x3ce356(0x11d):return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0xe3));default:return _0x9bb15c(this[_0x3ce356(0xe4)][_0x3ce356(0xff)],_0x3ce356(0x107));}}[_0x3c40a2(0x111)](){const _0x4e8431=_0x3c40a2,_0x345e40=new Date(),_0x476854=new Date(_0x345e40[_0x4e8431(0xd0)](),_0x345e40[_0x4e8431(0x11e)](),_0x345e40[_0x4e8431(0x10d)]()),_0x3d7dac=new Date(_0x476854);_0x3d7dac[_0x4e8431(0xbd)](_0x3d7dac[_0x4e8431(0x10d)]()-0x1);const _0x31f445=new Date(_0x476854);_0x31f445[_0x4e8431(0xbd)](_0x31f445[_0x4e8431(0x10d)]()-0xe);const _0x153bec=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'pinned':!0x0}),_0x17b7f0=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'from':_0x476854,'to':_0x476854}),_0x48fe82=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'from':_0x3d7dac,'to':_0x3d7dac}),_0x2b130e=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'from':_0x31f445,'to':_0x3d7dac}),_0x45ff56=this[_0x4e8431(0xf5)][_0x4e8431(0xeb)]({'to':_0x31f445}),_0x2ae189=[];return _0x153bec[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0xc5)),'items':_0x153bec}),_0x17b7f0[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0x114)),'items':_0x17b7f0}),_0x48fe82[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0xc0)),'items':_0x48fe82}),_0x2b130e[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0xd6)),'items':_0x2b130e}),_0x45ff56[_0x4e8431(0x113)]>0x0&&_0x2ae189[_0x4e8431(0xf1)]({'title':_0x9bb15c(this[_0x4e8431(0xe4)][_0x4e8431(0xff)],_0x4e8431(0xea)),'items':_0x45ff56}),_0x2ae189;}[_0x3c40a2(0x10e)](_0x34129b){const _0x9a792d=_0x3c40a2;this[_0x9a792d(0x106)][_0x9a792d(0xbb)](_0x34129b);}}
23
+ const _0x471343=_0x2661;(function(_0x45d416,_0x53068a){const _0x18052a=_0x2661,_0x2f2823=_0x45d416();while(!![]){try{const _0x306430=parseInt(_0x18052a(0x1bd))/0x1+parseInt(_0x18052a(0x1f3))/0x2+parseInt(_0x18052a(0x19d))/0x3*(parseInt(_0x18052a(0x1b6))/0x4)+parseInt(_0x18052a(0x1e5))/0x5+parseInt(_0x18052a(0x1dc))/0x6*(-parseInt(_0x18052a(0x1e8))/0x7)+parseInt(_0x18052a(0x1b7))/0x8+-parseInt(_0x18052a(0x1ad))/0x9;if(_0x306430===_0x53068a)break;else _0x2f2823['push'](_0x2f2823['shift']());}catch(_0x533aa1){_0x2f2823['push'](_0x2f2823['shift']());}}}(_0x4328,0xd3cd3));function _0x4328(){const _0x35296e=['AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_UNTITLED_CONVERSATION','7UQrLrq','_aiChatController','pin','_showConversationHistory','_aiChatHistoryUi','createdAt','_aiConnector','updates','loadConversation','error','title','1265508sFGSjf','plugins','change:activeConversation','history','operation','_updateHistoryItemsUI','listenTo','push','pluginName','map','itemsLoaded','pinned','_handleEditTitle','locale','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','1644mTRThk','isPremiumPlugin','AIChatHistoryController','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','resize','items','setDate','resizedTabs','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','activateTab','chat','_handleHistoryErrorUI','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_GENERIC','updateItemTitle','removeHistoryItem','9674307QZIhTd','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','openChat','AI_CHAT_HISTORY_CATEGORY_TODAY','unpin','loadItems','getItem','selectConversation','itemId','436kwiYTs','848416lcENYc','requires','AI_CHAT_HISTORY_CATEGORY_PINNED','showError','removeConversation','updateItems','557109ahoOib','_handleTogglePin','length','itemRemoved','get','getMonth','context','_setIsMaximized','activeConversation','_handleSelectConversation','setConversationPinned','getGroupId','editConversationTitle','_handleRemove','removeItem','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','rename','_clearItemLoading','toLocaleDateString','remove','getFullYear','itemUpdated','_setItemLoading','init','AI_CHAT_HISTORY_CATEGORY_LATER','getItems','getDate','AI_CHAT_HISTORY_UNPIN_ACTION','resizeTabs','activateTab:history','642156ChRFdc','_generateErrorMessage','view','setLoadingSkeleton','updateItemLoadingState','AI_CHAT_HISTORY_PIN_ACTION','updateItemPinned','setIsMaximized','handleRemovedConversation','3469205AagKBK'];_0x4328=function(){return _0x35296e;};return _0x4328();}import{ContextPlugin as _0x30cee3}from'ckeditor5/src/core.js';import{AIConnector as _0x3c8542}from'../aicore/aiconnector.js';import{AIChatController as _0x15349c}from'../aichat/aichatcontroller.js';import{AITabs as _0x59bb0c}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3ca142}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2a393d}from'./model/aichathistoryconversations.js';import{getTranslation as _0x424e70}from'../aicore/utils/common-translations.js';function _0x2661(_0x2c2213,_0x48bdc1){const _0x4328bc=_0x4328();return _0x2661=function(_0x266184,_0x2782c2){_0x266184=_0x266184-0x194;let _0x35e0ba=_0x4328bc[_0x266184];return _0x35e0ba;},_0x2661(_0x2c2213,_0x48bdc1);}export class AIChatHistoryController extends _0x30cee3{[_0x471343(0x1ee)];[_0x471343(0x1ec)];[_0x471343(0x1e9)];static get[_0x471343(0x1b8)](){return[_0x3c8542,_0x15349c,_0x3ca142,_0x59bb0c];}static get[_0x471343(0x196)](){const _0x3e40fe=_0x471343;return _0x3e40fe(0x19f);}static get[_0x471343(0x1a9)](){return!0x0;}static get[_0x471343(0x19e)](){return!0x0;}[_0x471343(0x1d5)](){const _0x4273eb=_0x471343;this[_0x4273eb(0x1ee)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x3c8542),this[_0x4273eb(0x1ec)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x3ca142),this[_0x4273eb(0x1e9)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x15349c);const _0x824e8e=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x59bb0c);try{const _0x2ca708=this[_0x4273eb(0x1e9)][_0x4273eb(0x1c8)]();this[_0x4273eb(0x1f6)]=new _0x2a393d({'connector':this[_0x4273eb(0x1ee)],'group':_0x2ca708}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1bb),(_0x305f9a,_0x22b950)=>{const _0x182ea0=_0x4273eb;this[_0x182ea0(0x1d4)](_0x22b950['id'],_0x182ea0(0x1d1)),this[_0x182ea0(0x1ca)](_0x22b950['id']);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1c9),(_0x30856d,_0x44691f)=>{const _0x3e6281=_0x4273eb;this[_0x3e6281(0x1d4)](_0x44691f['id'],_0x3e6281(0x1ce)),this[_0x3e6281(0x19a)](_0x44691f['id'],_0x44691f[_0x3e6281(0x1f2)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1d3),(_0x465c35,_0x25447d)=>{const _0x2e93ee=_0x4273eb;void 0x0!==_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x1f2)]&&this[_0x2e93ee(0x1ec)][_0x2e93ee(0x1ab)](_0x25447d[_0x2e93ee(0x1b5)],_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x1f2)]),void 0x0!==_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x199)]&&this[_0x2e93ee(0x1f8)](),this[_0x2e93ee(0x1cf)](_0x25447d[_0x2e93ee(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1c0),(_0x465a34,_0x9d15e2)=>{const _0x3e05bf=_0x4273eb;this[_0x3e05bf(0x1e9)][_0x3e05bf(0x1e4)](_0x9d15e2[_0x3e05bf(0x1b5)]),this[_0x3e05bf(0x1ec)][_0x3e05bf(0x1ac)](_0x9d15e2[_0x3e05bf(0x1b5)]),this[_0x3e05bf(0x1cf)](_0x9d15e2[_0x3e05bf(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x198),()=>{const _0x424bf6=_0x4273eb;this[_0x424bf6(0x1f8)]();}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1f1),(_0x1b8091,_0x59f649)=>{const _0x13e876=_0x4273eb;this[_0x13e876(0x1a8)](_0x59f649[_0x13e876(0x1f1)],_0x59f649[_0x13e876(0x1f7)],_0x59f649[_0x13e876(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1b4),(_0x449022,_0x41a585)=>{const _0x5f564b=_0x4273eb;this[_0x5f564b(0x1c6)](_0x41a585['id']);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1c7),(_0x5719be,_0x36e6e2)=>{const _0x5a32bb=_0x4273eb,_0xed4796=_0x36e6e2[_0x5a32bb(0x199)]?_0x5a32bb(0x1ea):_0x5a32bb(0x1b1);this[_0x5a32bb(0x1d4)](_0x36e6e2['id'],_0xed4796),this[_0x5a32bb(0x1be)](_0x36e6e2['id'],_0x36e6e2[_0x5a32bb(0x199)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1af),()=>{const _0x1f421=_0x4273eb;_0x824e8e[_0x1f421(0x1de)][_0x1f421(0x1a6)](_0x1f421(0x1a7));}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1e9)],_0x4273eb(0x1f5),()=>{const _0x406c5a=_0x4273eb;this[_0x406c5a(0x1f8)]();}),_0x824e8e[_0x4273eb(0x1de)]['on'](_0x4273eb(0x1db),()=>{const _0x289c42=_0x4273eb;this[_0x289c42(0x1eb)]();}),this[_0x4273eb(0x194)](_0x824e8e,_0x4273eb(0x1a4),(_0x5be95c,_0x350871)=>{const _0x2deb12=_0x4273eb;this[_0x2deb12(0x1c4)](_0x350871);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1da),()=>{const _0x4496f4=_0x4273eb;_0x824e8e[_0x4496f4(0x1a1)]();});}catch(_0x58b846){this[_0x4273eb(0x1a8)](_0x58b846,_0x4273eb(0x1d5));}}async[_0x471343(0x19a)](_0x2346bf,_0x168458){const _0x12122f=_0x471343;await this[_0x12122f(0x1f6)][_0x12122f(0x1ab)](_0x2346bf,_0x168458);}async[_0x471343(0x1be)](_0x2371b5,_0x321b06){const _0x327d3d=_0x471343;await this[_0x327d3d(0x1f6)][_0x327d3d(0x1e2)](_0x2371b5,_0x321b06);}async[_0x471343(0x1ca)](_0x5859c4){const _0x1bc381=_0x471343;await this[_0x1bc381(0x1f6)][_0x1bc381(0x1cb)](_0x5859c4);}async[_0x471343(0x1c6)](_0x510106){const _0x123ccf=_0x471343;await this[_0x123ccf(0x1e9)][_0x123ccf(0x1f0)](_0x510106);}async[_0x471343(0x1eb)](){const _0x56a25f=_0x471343;this[_0x56a25f(0x1ec)][_0x56a25f(0x1ba)](''),this[_0x56a25f(0x1ec)][_0x56a25f(0x1df)](!0x0),await this[_0x56a25f(0x1f6)][_0x56a25f(0x1d5)](),this[_0x56a25f(0x1ec)][_0x56a25f(0x1df)](!0x1);}[_0x471343(0x1f8)](){const _0x2b15f9=_0x471343,_0x251d91=this[_0x2b15f9(0x1e9)][_0x2b15f9(0x1c5)]?.['id'],_0x4d98a9=this[_0x2b15f9(0x1cc)]()[_0x2b15f9(0x197)](_0x2bb443=>({'title':_0x2bb443[_0x2b15f9(0x1f2)],'items':_0x2bb443[_0x2b15f9(0x1a2)][_0x2b15f9(0x197)](_0x24c2bc=>({'id':_0x24c2bc['id'],'title':_0x24c2bc[_0x2b15f9(0x1f2)]||_0x424e70(this[_0x2b15f9(0x1c3)][_0x2b15f9(0x19b)],_0x2b15f9(0x1e7)),'createdAt':new Date(_0x24c2bc[_0x2b15f9(0x1ed)])[_0x2b15f9(0x1d0)](),'active':_0x24c2bc['id']===_0x251d91,'pinned':_0x24c2bc[_0x2b15f9(0x199)]}))}));this[_0x2b15f9(0x1ec)][_0x2b15f9(0x1bc)](_0x4d98a9);}[_0x471343(0x1d4)](_0x3d0088,_0x958601){const _0x18ead1=_0x471343;this[_0x18ead1(0x1ec)][_0x18ead1(0x1e0)](_0x3d0088,_0x958601,!0x0);}[_0x471343(0x1cf)](_0x3c996e){const _0x4e16a6=_0x471343;this[_0x4e16a6(0x1ec)][_0x4e16a6(0x1e0)](_0x3c996e,null,!0x1);}[_0x471343(0x1a8)](_0x329f12,_0x892f7,_0xe87685){const _0x48e5d8=_0x471343,_0x532bed=this[_0x48e5d8(0x1dd)](_0x892f7,_0xe87685);this[_0x48e5d8(0x1ec)][_0x48e5d8(0x1ba)](_0x532bed),_0xe87685&&this[_0x48e5d8(0x1cf)](_0xe87685),this[_0x48e5d8(0x1ec)][_0x48e5d8(0x1df)](!0x1);}[_0x471343(0x1dd)](_0x5a169e,_0xe1641c){const _0x115a9a=_0x471343,_0x5ba3b1=_0xe1641c?this[_0x115a9a(0x1f6)][_0x115a9a(0x1b3)](_0xe1641c):null,_0x57028b=_0x5ba3b1?.[_0x115a9a(0x1f2)]||_0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1e7));switch(_0x5a169e){case _0x115a9a(0x1ab):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1ae),_0x57028b);case _0x115a9a(0x1e2):{const _0x5604f0=_0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x5ba3b1?.[_0x115a9a(0x199)]?_0x115a9a(0x1d9):_0x115a9a(0x1e1));return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1e6),[_0x5604f0,_0x57028b]);}case _0x115a9a(0x1cb):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1a0),_0x57028b);case _0x115a9a(0x1d5):case _0x115a9a(0x1b2):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x19c));default:return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1aa));}}[_0x471343(0x1cc)](){const _0x75b809=_0x471343,_0x51c43a=new Date(),_0x31f616=new Date(_0x51c43a[_0x75b809(0x1d2)](),_0x51c43a[_0x75b809(0x1c2)](),_0x51c43a[_0x75b809(0x1d8)]()),_0x5a9fc2=new Date(_0x31f616);_0x5a9fc2[_0x75b809(0x1a3)](_0x5a9fc2[_0x75b809(0x1d8)]()-0x1);const _0x675573=new Date(_0x31f616);_0x675573[_0x75b809(0x1a3)](_0x675573[_0x75b809(0x1d8)]()-0xe);const _0x9898d4=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'pinned':!0x0}),_0x43f047=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x31f616,'to':_0x31f616}),_0x46eae8=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x5a9fc2,'to':_0x5a9fc2}),_0x314e9d=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x675573,'to':_0x5a9fc2}),_0x2c15d0=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'to':_0x675573}),_0xc4d27b=[];return _0x9898d4[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1b9)),'items':_0x9898d4}),_0x43f047[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1b0)),'items':_0x43f047}),_0x46eae8[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1a5)),'items':_0x46eae8}),_0x314e9d[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1cd)),'items':_0x314e9d}),_0x2c15d0[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1d6)),'items':_0x2c15d0}),_0xc4d27b;}[_0x471343(0x1c4)](_0xf7a2a5){const _0x419cd7=_0x471343;this[_0x419cd7(0x1ec)][_0x419cd7(0x1e3)](_0xf7a2a5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26f236=_0x3029;(function(_0x5ae62d,_0x1cfbde){const _0x5a944b=_0x3029,_0x57d105=_0x5ae62d();while(!![]){try{const _0x29b2d5=parseInt(_0x5a944b(0x204))/0x1*(-parseInt(_0x5a944b(0x1f3))/0x2)+-parseInt(_0x5a944b(0x20a))/0x3+parseInt(_0x5a944b(0x1e7))/0x4*(parseInt(_0x5a944b(0x1ff))/0x5)+-parseInt(_0x5a944b(0x1e6))/0x6*(-parseInt(_0x5a944b(0x1f7))/0x7)+-parseInt(_0x5a944b(0x1e8))/0x8+parseInt(_0x5a944b(0x202))/0x9*(-parseInt(_0x5a944b(0x20e))/0xa)+parseInt(_0x5a944b(0x207))/0xb*(parseInt(_0x5a944b(0x1e0))/0xc);if(_0x29b2d5===_0x1cfbde)break;else _0x57d105['push'](_0x57d105['shift']());}catch(_0x37c6bd){_0x57d105['push'](_0x57d105['shift']());}}}(_0x461a,0x76093));import{ContextPlugin as _0x158657}from'ckeditor5/src/core.js';import{AITabs as _0x49f3b6}from'../aitabs/aitabs.js';import{IconAIHistory as _0x2acf51}from'ckeditor5/src/icons.js';function _0x461a(){const _0xca35ab=['_historyView','hideError','addTab','isMaximized','6UEjnHl','selectConversation','resizeTabs','AIChatHistoryUI','1793351yWBYvm','removeConversation','get','view','setIsMaximized','delegate','showResizeButton','locale','2893145oRilLB','isLoading','requires','568818KNdKlQ','updateHistoryItemsWithCategories','59308ULIudB','removeHistoryItem','editConversationTitle','22wqVgLb','isOfficialPlugin','setLoadingSkeleton','1660734BsWdQC','AITabs','errorMessage','setConversationPinned','90bHVwCm','showError','6145116ypjkQI','AI_CHAT_HISTORY_HEADING','isPremiumPlugin','pluginName','context','showConversationHistory','6rcurcw','4VtdIrV','601704BwfQPf','history','updateItemTitle','updateItems','openChat','plugins','updateItemLoadingState'];_0x461a=function(){return _0xca35ab;};return _0x461a();}import{AIChatHistoryView as _0x20c488}from'./ui/aichathistoryview.js';function _0x3029(_0x2f0f04,_0x5b5f82){const _0x461a8f=_0x461a();return _0x3029=function(_0x30292b,_0x1d72b4){_0x30292b=_0x30292b-0x1df;let _0x3adfd1=_0x461a8f[_0x30292b];return _0x3adfd1;},_0x3029(_0x2f0f04,_0x5b5f82);}import{getTranslation as _0x4f08a8}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x26f236(0x1e5),_0x26f236(0x1f8),_0x26f236(0x206),_0x26f236(0x20d),_0x26f236(0x1f4),_0x26f236(0x1ec),_0x26f236(0x1f5)];export class AIChatHistoryUI extends _0x158657{static get[_0x26f236(0x201)](){return[_0x49f3b6];}[_0x26f236(0x1ef)];static get[_0x26f236(0x1e3)](){const _0x2fed39=_0x26f236;return _0x2fed39(0x1f6);}static get[_0x26f236(0x208)](){return!0x0;}static get[_0x26f236(0x1e2)](){return!0x0;}constructor(_0x170583){const _0x4f4b5b=_0x26f236;super(_0x170583);const _0x2d63f=this[_0x4f4b5b(0x1e4)][_0x4f4b5b(0x1ed)][_0x4f4b5b(0x1f9)](_0x4f4b5b(0x20b));this[_0x4f4b5b(0x1ef)]=new _0x20c488(this[_0x4f4b5b(0x1e4)][_0x4f4b5b(0x1fe)],_0x2d63f[_0x4f4b5b(0x1fd)]),this[_0x4f4b5b(0x1ef)][_0x4f4b5b(0x1fc)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2d63f[_0x4f4b5b(0x1fa)][_0x4f4b5b(0x1f1)]({'id':_0x4f4b5b(0x1e9),'buttonLabel':_0x4f08a8(this[_0x4f4b5b(0x1e4)][_0x4f4b5b(0x1fe)],_0x4f4b5b(0x1e1)),'buttonIcon':_0x2acf51,'order':0x0,'content':this[_0x4f4b5b(0x1ef)]});}[_0x26f236(0x205)](_0x53862a){const _0x2c454a=_0x26f236;this[_0x2c454a(0x1ef)][_0x2c454a(0x205)](_0x53862a);}[_0x26f236(0x1eb)](_0xa8837){const _0x1e132f=_0x26f236;this[_0x1e132f(0x1ef)][_0x1e132f(0x203)](_0xa8837);}[_0x26f236(0x1ea)](_0x5c173e,_0x90599a){const _0x325c07=_0x26f236;this[_0x325c07(0x1ef)][_0x325c07(0x1ea)](_0x5c173e,_0x90599a);}[_0x26f236(0x1ee)](_0x21c34a,_0x14db8f,_0x14568c){const _0x1c3cd6=_0x26f236;this[_0x1c3cd6(0x1ef)][_0x1c3cd6(0x1ee)](_0x21c34a,_0x14db8f,_0x14568c);}[_0x26f236(0x209)](_0x189eec){const _0x4e8a08=_0x26f236;this[_0x4e8a08(0x1ef)][_0x4e8a08(0x200)]=_0x189eec;}[_0x26f236(0x1df)](_0x41b7b9){const _0x350666=_0x26f236;this[_0x350666(0x1ef)][_0x350666(0x20c)]=_0x41b7b9;}[_0x26f236(0x1f0)](){const _0x5704e2=_0x26f236;this[_0x5704e2(0x1ef)][_0x5704e2(0x20c)]='';}[_0x26f236(0x1fb)](_0x4eb99e){const _0x178bd9=_0x26f236;this[_0x178bd9(0x1ef)][_0x178bd9(0x1f2)]=_0x4eb99e;}}
23
+ function _0x1d84(_0x3b8627,_0x515944){const _0x438c9e=_0x438c();return _0x1d84=function(_0x1d8440,_0xd2ca65){_0x1d8440=_0x1d8440-0x1c7;let _0x4bccad=_0x438c9e[_0x1d8440];return _0x4bccad;},_0x1d84(_0x3b8627,_0x515944);}const _0x59b127=_0x1d84;(function(_0x151f70,_0x18a4e2){const _0x418f11=_0x1d84,_0x6fbc20=_0x151f70();while(!![]){try{const _0x20d50b=-parseInt(_0x418f11(0x1e4))/0x1+-parseInt(_0x418f11(0x1f3))/0x2+parseInt(_0x418f11(0x1c9))/0x3+-parseInt(_0x418f11(0x1df))/0x4*(-parseInt(_0x418f11(0x1e9))/0x5)+-parseInt(_0x418f11(0x1e6))/0x6*(parseInt(_0x418f11(0x1ee))/0x7)+-parseInt(_0x418f11(0x1e3))/0x8+parseInt(_0x418f11(0x1dc))/0x9*(parseInt(_0x418f11(0x1cd))/0xa);if(_0x20d50b===_0x18a4e2)break;else _0x6fbc20['push'](_0x6fbc20['shift']());}catch(_0x2efe19){_0x6fbc20['push'](_0x6fbc20['shift']());}}}(_0x438c,0xa058e));import{ContextPlugin as _0x3b2df5}from'ckeditor5/src/core.js';import{AITabs as _0x453d15}from'../aitabs/aitabs.js';import{IconAIHistory as _0x146ab8}from'ckeditor5/src/icons.js';function _0x438c(){const _0x35797a=['7975672hyoBTI','81663beeeZB','context','2004GgtYQG','history','addTab','180qTXpck','plugins','view','updateItems','pluginName','7784mGxEag','AITabs','setConversationPinned','requires','updateHistoryItemsWithCategories','1466306MvsLoQ','updateItemTitle','_historyView','removeHistoryItem','3229875cITcAk','showResizeButton','selectConversation','isLoading','579480cDVTlb','isPremiumPlugin','locale','isOfficialPlugin','openChat','editConversationTitle','resizeTabs','showError','AIChatHistoryUI','delegate','updateItemLoadingState','errorMessage','removeConversation','isMaximized','get','171zQzeoX','setIsMaximized','AI_CHAT_HISTORY_HEADING','73592TSzNOq','hideError','showConversationHistory','setLoadingSkeleton'];_0x438c=function(){return _0x35797a;};return _0x438c();}import{AIChatHistoryView as _0x36d302}from'./ui/aichathistoryview.js';import{getTranslation as _0x2229e9}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x59b127(0x1e1),_0x59b127(0x1d9),_0x59b127(0x1d2),_0x59b127(0x1f0),_0x59b127(0x1cb),_0x59b127(0x1d1),_0x59b127(0x1d3)];export class AIChatHistoryUI extends _0x3b2df5{static get[_0x59b127(0x1f1)](){return[_0x453d15];}[_0x59b127(0x1c7)];static get[_0x59b127(0x1ed)](){const _0x12749e=_0x59b127;return _0x12749e(0x1d5);}static get[_0x59b127(0x1d0)](){return!0x0;}static get[_0x59b127(0x1ce)](){return!0x0;}constructor(_0x4ffb8a){const _0x2832f3=_0x59b127;super(_0x4ffb8a);const _0x2acddb=this[_0x2832f3(0x1e5)][_0x2832f3(0x1ea)][_0x2832f3(0x1db)](_0x2832f3(0x1ef));this[_0x2832f3(0x1c7)]=new _0x36d302(this[_0x2832f3(0x1e5)][_0x2832f3(0x1cf)],_0x2acddb[_0x2832f3(0x1ca)]),this[_0x2832f3(0x1c7)][_0x2832f3(0x1d6)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2acddb[_0x2832f3(0x1eb)][_0x2832f3(0x1e8)]({'id':_0x2832f3(0x1e7),'buttonLabel':_0x2229e9(this[_0x2832f3(0x1e5)][_0x2832f3(0x1cf)],_0x2832f3(0x1de)),'buttonIcon':_0x146ab8,'order':0x0,'content':this[_0x2832f3(0x1c7)]});}[_0x59b127(0x1c8)](_0x49215f){const _0x48b0a9=_0x59b127;this[_0x48b0a9(0x1c7)][_0x48b0a9(0x1c8)](_0x49215f);}[_0x59b127(0x1ec)](_0x23321f){const _0x4d2311=_0x59b127;this[_0x4d2311(0x1c7)][_0x4d2311(0x1f2)](_0x23321f);}[_0x59b127(0x1f4)](_0x59c328,_0xc5f367){const _0x59866e=_0x59b127;this[_0x59866e(0x1c7)][_0x59866e(0x1f4)](_0x59c328,_0xc5f367);}[_0x59b127(0x1d7)](_0x20b4f3,_0x256d43,_0x22db11){const _0x2484a1=_0x59b127;this[_0x2484a1(0x1c7)][_0x2484a1(0x1d7)](_0x20b4f3,_0x256d43,_0x22db11);}[_0x59b127(0x1e2)](_0x41cb92){const _0xa034ed=_0x59b127;this[_0xa034ed(0x1c7)][_0xa034ed(0x1cc)]=_0x41cb92;}[_0x59b127(0x1d4)](_0xb882a9){const _0x3f9ccf=_0x59b127;this[_0x3f9ccf(0x1c7)][_0x3f9ccf(0x1d8)]=_0xb882a9;}[_0x59b127(0x1e0)](){const _0x1faca2=_0x59b127;this[_0x1faca2(0x1c7)][_0x1faca2(0x1d8)]='';}[_0x59b127(0x1dd)](_0x30648c){const _0x245ed6=_0x59b127;this[_0x245ed6(0x1c7)][_0x245ed6(0x1da)]=_0x30648c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x235593=_0x5761;function _0x5761(_0x205472,_0x390d10){const _0x3bc47d=_0x3bc4();return _0x5761=function(_0x5761f7,_0x3197fd){_0x5761f7=_0x5761f7-0x191;let _0x3d3900=_0x3bc47d[_0x5761f7];return _0x3d3900;},_0x5761(_0x205472,_0x390d10);}(function(_0x449951,_0x42178a){const _0x941a99=_0x5761,_0x19645f=_0x449951();while(!![]){try{const _0x39f585=-parseInt(_0x941a99(0x1bf))/0x1*(parseInt(_0x941a99(0x1a3))/0x2)+-parseInt(_0x941a99(0x1a2))/0x3*(parseInt(_0x941a99(0x197))/0x4)+-parseInt(_0x941a99(0x1ba))/0x5*(-parseInt(_0x941a99(0x1b2))/0x6)+-parseInt(_0x941a99(0x198))/0x7+-parseInt(_0x941a99(0x194))/0x8+parseInt(_0x941a99(0x1b0))/0x9*(-parseInt(_0x941a99(0x1a1))/0xa)+parseInt(_0x941a99(0x192))/0xb;if(_0x39f585===_0x42178a)break;else _0x19645f['push'](_0x19645f['shift']());}catch(_0x2bfaec){_0x19645f['push'](_0x19645f['shift']());}}}(_0x3bc4,0x2e898));function _0x3bc4(){const _0x43ceaf=['find','18UpoADY','getDate','444126HtSPFR','getFullYear','error','splice','filter','itemUpdated','createdAt','loadItems','5qjxEfw','updateItemTitle','connector','group','itemRemoved','2ydZmHl','push','getTime','19376786UWDYWc','from','2814992QvmdAn','pinned','getResult','4XKeSHo','2272032aNiMbX','addItem','execute','getConversations','getItems','updateTitle','fetchConversations','deleteConversation','items','1858750OSenqk','669579GpKSik','373538cqtOWj','findIndex','updatePinned','updateConversation','removeItem','updateItemPinned','fire','map','itemsLoaded','getItem','init','getMonth'];_0x3bc4=function(){return _0x43ceaf;};return _0x3bc4();}import{EmitterMixin as _0x43cb9d}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0xeb7ec6}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x43cb9d(){[_0x235593(0x1a0)]=[];[_0x235593(0x1bc)];[_0x235593(0x1bd)];constructor({connector:_0x2aa282,group:_0x520c28}){const _0x520b05=_0x235593;super(),this[_0x520b05(0x1bc)]=_0x2aa282,this[_0x520b05(0x1bd)]=_0x520c28;}async[_0x235593(0x1ad)](){const _0x1f0c68=_0x235593;try{const _0xab4444=this[_0x1f0c68(0x1bc)][_0x1f0c68(0x19e)](this[_0x1f0c68(0x1bd)]),_0x3aacd1=await _0xab4444[_0x1f0c68(0x19b)]();this[_0x1f0c68(0x1b9)](_0x3aacd1);}catch(_0x464f59){this[_0x1f0c68(0x1a9)](_0x1f0c68(0x1b4),{'error':_0x464f59,'operation':_0x1f0c68(0x1ad)});}}[_0x235593(0x199)](_0x4733c7){const _0x181d65=_0x235593;this[_0x181d65(0x1a0)][_0x181d65(0x1c0)](_0x4733c7);}async[_0x235593(0x1a7)](_0x5d4218){const _0x2dad4c=_0x235593,_0x637dc0=this[_0x2dad4c(0x1a0)][_0x2dad4c(0x1a4)](_0x499695=>_0x499695['id']===_0x5d4218);if(-0x1===_0x637dc0)return!0x1;try{return await this[_0x2dad4c(0x1bc)][_0x2dad4c(0x19f)](_0x5d4218)[_0x2dad4c(0x19a)](),this[_0x2dad4c(0x1a0)][_0x2dad4c(0x1b5)](_0x637dc0,0x1),this[_0x2dad4c(0x1a9)](_0x2dad4c(0x1be),{'itemId':_0x5d4218}),!0x0;}catch(_0x2e42e9){return this[_0x2dad4c(0x1a9)](_0x2dad4c(0x1b4),{'error':_0x2e42e9,'operation':_0x2dad4c(0x1a7),'itemId':_0x5d4218}),!0x1;}}[_0x235593(0x1ac)](_0x3e94ac){const _0x54b4b=_0x235593;return this[_0x54b4b(0x1a0)][_0x54b4b(0x1af)](_0x34b10b=>_0x34b10b['id']===_0x3e94ac);}async[_0x235593(0x1bb)](_0x2134a2,_0x28873b){const _0x217c50=_0x235593,_0x256005=this[_0x217c50(0x1ac)](_0x2134a2);if(!_0x256005)return!0x1;try{return await this[_0x217c50(0x1bc)][_0x217c50(0x1a6)](_0x2134a2,{'title':_0x28873b})[_0x217c50(0x196)](),_0x256005[_0x217c50(0x19d)](_0x28873b),this[_0x217c50(0x1a9)](_0x217c50(0x1b7),{'itemId':_0x2134a2,'updates':{'title':_0x28873b}}),!0x0;}catch(_0x559480){return this[_0x217c50(0x1a9)](_0x217c50(0x1b4),{'error':_0x559480,'operation':_0x217c50(0x1bb),'itemId':_0x2134a2}),!0x1;}}async[_0x235593(0x1a8)](_0x1e1066,_0x2b7db6){const _0x927c0a=_0x235593,_0x21edcf=this[_0x927c0a(0x1ac)](_0x1e1066);if(!_0x21edcf)return!0x1;try{return await this[_0x927c0a(0x1bc)][_0x927c0a(0x1a6)](_0x1e1066,{'pinned':_0x2b7db6})[_0x927c0a(0x196)](),_0x21edcf[_0x927c0a(0x1a5)](_0x2b7db6),this[_0x927c0a(0x1a9)](_0x927c0a(0x1b7),{'itemId':_0x1e1066,'updates':{'pinned':_0x2b7db6}}),!0x0;}catch(_0x3798a){return this[_0x927c0a(0x1a9)](_0x927c0a(0x1b4),{'error':_0x3798a,'operation':_0x927c0a(0x1a8),'itemId':_0x1e1066}),!0x1;}}[_0x235593(0x1b9)](_0xb740a9){const _0x262e5a=_0x235593;try{this[_0x262e5a(0x1a0)]=[],_0xb740a9[_0x262e5a(0x1aa)](_0x15ff96=>{const _0x54b31f=_0x262e5a;this[_0x54b31f(0x199)](new _0xeb7ec6(_0x15ff96));}),this[_0x262e5a(0x1a9)](_0x262e5a(0x1ab),{'items':[...this[_0x262e5a(0x1a0)]]});}catch(_0x583637){this[_0x262e5a(0x1a9)](_0x262e5a(0x1b4),{'error':_0x583637,'operation':_0x262e5a(0x1b9)});}}[_0x235593(0x19c)](_0x354ea9={}){const _0x2be439=_0x235593,_0x3e86eb=void 0x0!==_0x354ea9[_0x2be439(0x195)]&&_0x354ea9[_0x2be439(0x195)],_0xb27af2=_0x354ea9[_0x2be439(0x193)]?new Date(_0x354ea9[_0x2be439(0x193)][_0x2be439(0x1b3)](),_0x354ea9[_0x2be439(0x193)][_0x2be439(0x1ae)](),_0x354ea9[_0x2be439(0x193)][_0x2be439(0x1b1)]()):null,_0x209728=_0x354ea9['to']?new Date(_0x354ea9['to'][_0x2be439(0x1b3)](),_0x354ea9['to'][_0x2be439(0x1ae)](),_0x354ea9['to'][_0x2be439(0x1b1)]()):null;return this[_0x2be439(0x1a0)][_0x2be439(0x1b6)](_0x472236=>{const _0x551039=_0x2be439;if(_0x472236[_0x551039(0x195)]!==_0x3e86eb)return!0x1;if(_0x209728){const _0x1d6357=new Date(_0x472236[_0x551039(0x1b8)][_0x551039(0x1b3)](),_0x472236[_0x551039(0x1b8)][_0x551039(0x1ae)](),_0x472236[_0x551039(0x1b8)][_0x551039(0x1b1)]());return _0xb27af2?_0xb27af2[_0x551039(0x191)]()===_0x209728[_0x551039(0x191)]()?_0x1d6357[_0x551039(0x191)]()===_0xb27af2[_0x551039(0x191)]():_0x1d6357<_0x209728&&_0x1d6357>=_0xb27af2:_0x1d6357<_0x209728;}return!0x0;});}}
23
+ function _0x1fa5(_0x40be89,_0x2f0ed6){const _0x5113ef=_0x5113();return _0x1fa5=function(_0x1fa51a,_0x58f610){_0x1fa51a=_0x1fa51a-0x129;let _0x3062a0=_0x5113ef[_0x1fa51a];return _0x3062a0;},_0x1fa5(_0x40be89,_0x2f0ed6);}const _0x4719f3=_0x1fa5;function _0x5113(){const _0x448728=['1337649AArgGv','from','getResult','init','getMonth','updateItemPinned','itemsLoaded','push','1387640CCNIUD','6WxJTzm','find','execute','307070QHKWQP','getFullYear','getItem','filter','itemRemoved','pinned','connector','removeItem','error','updateTitle','updateItemTitle','splice','map','findIndex','getConversations','getDate','addItem','getTime','deleteConversation','fire','961289WyuFCO','getItems','loadItems','items','group','createdAt','updatePinned','99wutpzc','5TvFrdv','279902ZxYORx','fetchConversations','1824108LBVtSF','618984BxxEOn','itemUpdated','updateConversation'];_0x5113=function(){return _0x448728;};return _0x5113();}(function(_0x366760,_0x10843b){const _0x150402=_0x1fa5,_0x3cab79=_0x366760();while(!![]){try{const _0x158b94=-parseInt(_0x150402(0x144))/0x1+parseInt(_0x150402(0x156))/0x2+-parseInt(_0x150402(0x14a))/0x3+parseInt(_0x150402(0x146))/0x4*(parseInt(_0x150402(0x143))/0x5)+parseInt(_0x150402(0x153))/0x6*(-parseInt(_0x150402(0x13b))/0x7)+parseInt(_0x150402(0x147))/0x8*(parseInt(_0x150402(0x142))/0x9)+-parseInt(_0x150402(0x152))/0xa;if(_0x158b94===_0x10843b)break;else _0x3cab79['push'](_0x3cab79['shift']());}catch(_0x5dbd74){_0x3cab79['push'](_0x3cab79['shift']());}}}(_0x5113,0x70025));import{EmitterMixin as _0x40bef9}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3e8b0c}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x40bef9(){[_0x4719f3(0x13e)]=[];[_0x4719f3(0x12d)];[_0x4719f3(0x13f)];constructor({connector:_0x13cca3,group:_0x2f5b89}){const _0x91e4bd=_0x4719f3;super(),this[_0x91e4bd(0x12d)]=_0x13cca3,this[_0x91e4bd(0x13f)]=_0x2f5b89;}async[_0x4719f3(0x14d)](){const _0x1ff2b0=_0x4719f3;try{const _0x5a5d5e=this[_0x1ff2b0(0x12d)][_0x1ff2b0(0x145)](this[_0x1ff2b0(0x13f)]),_0x577970=await _0x5a5d5e[_0x1ff2b0(0x135)]();this[_0x1ff2b0(0x13d)](_0x577970);}catch(_0x49baa8){this[_0x1ff2b0(0x13a)](_0x1ff2b0(0x12f),{'error':_0x49baa8,'operation':_0x1ff2b0(0x14d)});}}[_0x4719f3(0x137)](_0x24130d){const _0x3b4897=_0x4719f3;this[_0x3b4897(0x13e)][_0x3b4897(0x151)](_0x24130d);}async[_0x4719f3(0x12e)](_0x957fe2){const _0x4e8700=_0x4719f3,_0x4f4177=this[_0x4e8700(0x13e)][_0x4e8700(0x134)](_0x23695f=>_0x23695f['id']===_0x957fe2);if(-0x1===_0x4f4177)return!0x1;try{return await this[_0x4e8700(0x12d)][_0x4e8700(0x139)](_0x957fe2)[_0x4e8700(0x155)](),this[_0x4e8700(0x13e)][_0x4e8700(0x132)](_0x4f4177,0x1),this[_0x4e8700(0x13a)](_0x4e8700(0x12b),{'itemId':_0x957fe2}),!0x0;}catch(_0x3f208a){return this[_0x4e8700(0x13a)](_0x4e8700(0x12f),{'error':_0x3f208a,'operation':_0x4e8700(0x12e),'itemId':_0x957fe2}),!0x1;}}[_0x4719f3(0x129)](_0x565c55){const _0x88710=_0x4719f3;return this[_0x88710(0x13e)][_0x88710(0x154)](_0x2ce19b=>_0x2ce19b['id']===_0x565c55);}async[_0x4719f3(0x131)](_0x560bd0,_0x9f0542){const _0x436861=_0x4719f3,_0x532750=this[_0x436861(0x129)](_0x560bd0);if(!_0x532750)return!0x1;try{return await this[_0x436861(0x12d)][_0x436861(0x149)](_0x560bd0,{'title':_0x9f0542})[_0x436861(0x14c)](),_0x532750[_0x436861(0x130)](_0x9f0542),this[_0x436861(0x13a)](_0x436861(0x148),{'itemId':_0x560bd0,'updates':{'title':_0x9f0542}}),!0x0;}catch(_0x473b26){return this[_0x436861(0x13a)](_0x436861(0x12f),{'error':_0x473b26,'operation':_0x436861(0x131),'itemId':_0x560bd0}),!0x1;}}async[_0x4719f3(0x14f)](_0x377420,_0x41d805){const _0x542e11=_0x4719f3,_0x174a68=this[_0x542e11(0x129)](_0x377420);if(!_0x174a68)return!0x1;try{return await this[_0x542e11(0x12d)][_0x542e11(0x149)](_0x377420,{'pinned':_0x41d805})[_0x542e11(0x14c)](),_0x174a68[_0x542e11(0x141)](_0x41d805),this[_0x542e11(0x13a)](_0x542e11(0x148),{'itemId':_0x377420,'updates':{'pinned':_0x41d805}}),!0x0;}catch(_0x519024){return this[_0x542e11(0x13a)](_0x542e11(0x12f),{'error':_0x519024,'operation':_0x542e11(0x14f),'itemId':_0x377420}),!0x1;}}[_0x4719f3(0x13d)](_0x1227e6){const _0x5d3fd0=_0x4719f3;try{this[_0x5d3fd0(0x13e)]=[],_0x1227e6[_0x5d3fd0(0x133)](_0x3e5847=>{const _0x3e6f1a=_0x5d3fd0;this[_0x3e6f1a(0x137)](new _0x3e8b0c(_0x3e5847));}),this[_0x5d3fd0(0x13a)](_0x5d3fd0(0x150),{'items':[...this[_0x5d3fd0(0x13e)]]});}catch(_0x53d044){this[_0x5d3fd0(0x13a)](_0x5d3fd0(0x12f),{'error':_0x53d044,'operation':_0x5d3fd0(0x13d)});}}[_0x4719f3(0x13c)](_0x4201b2={}){const _0x363e99=_0x4719f3,_0x14dbe4=void 0x0!==_0x4201b2[_0x363e99(0x12c)]&&_0x4201b2[_0x363e99(0x12c)],_0x562e54=_0x4201b2[_0x363e99(0x14b)]?new Date(_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x157)](),_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x14e)](),_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x136)]()):null,_0x374291=_0x4201b2['to']?new Date(_0x4201b2['to'][_0x363e99(0x157)](),_0x4201b2['to'][_0x363e99(0x14e)](),_0x4201b2['to'][_0x363e99(0x136)]()):null;return this[_0x363e99(0x13e)][_0x363e99(0x12a)](_0x5aceee=>{const _0x42eae2=_0x363e99;if(_0x5aceee[_0x42eae2(0x12c)]!==_0x14dbe4)return!0x1;if(_0x374291){const _0x3db8c0=new Date(_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x157)](),_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x14e)](),_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x136)]());return _0x562e54?_0x562e54[_0x42eae2(0x138)]()===_0x374291[_0x42eae2(0x138)]()?_0x3db8c0[_0x42eae2(0x138)]()===_0x562e54[_0x42eae2(0x138)]():_0x3db8c0<_0x374291&&_0x3db8c0>=_0x562e54:_0x3db8c0<_0x374291;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1ecd3f=_0x58aa;(function(_0x2e005d,_0xd02961){var _0x282feb=_0x58aa,_0x17f8ce=_0x2e005d();while(!![]){try{var _0x401237=parseInt(_0x282feb(0x9d))/0x1+parseInt(_0x282feb(0x8e))/0x2+-parseInt(_0x282feb(0x92))/0x3+-parseInt(_0x282feb(0x90))/0x4+-parseInt(_0x282feb(0x97))/0x5*(parseInt(_0x282feb(0x9b))/0x6)+-parseInt(_0x282feb(0x99))/0x7+parseInt(_0x282feb(0x9a))/0x8*(parseInt(_0x282feb(0x91))/0x9);if(_0x401237===_0xd02961)break;else _0x17f8ce['push'](_0x17f8ce['shift']());}catch(_0x18f0bf){_0x17f8ce['push'](_0x17f8ce['shift']());}}}(_0x2e2a,0xbe542));import{ObservableMixin as _0x5bc269}from'ckeditor5/src/utils.js';function _0x2e2a(){var _0x3bfa06=['3182776QdNDwT','170226PZBOVX','946116GvSxXO','pinned','createdAt','title','set','4115785ldKPtq','updatedAt','2042887PJHmbg','584hzstIF','6FbPhIV','updatePinned','515191wRlvnJ','2219474hzJMEf','updateTitle'];_0x2e2a=function(){return _0x3bfa06;};return _0x2e2a();}import{escape as _0xedacee}from'es-toolkit/compat';function _0x58aa(_0x55820,_0x1e1e34){var _0x2e2a4c=_0x2e2a();return _0x58aa=function(_0x58aafd,_0x45753b){_0x58aafd=_0x58aafd-0x8e;var _0x106ab8=_0x2e2a4c[_0x58aafd];return _0x106ab8;},_0x58aa(_0x55820,_0x1e1e34);}export class AIChatHistoryItem extends _0x5bc269(){['id'];[_0x1ecd3f(0x94)];constructor({id:_0x3e84c4,title:_0x31e90c,createdAt:_0x104311,updatedAt:_0x5e2968,pinned:_0x3bfdb5}){var _0x59f049=_0x1ecd3f;super(),this['id']=_0x3e84c4,this[_0x59f049(0x94)]=new Date(_0x104311),this[_0x59f049(0x96)](_0x59f049(0x95),_0x31e90c),this[_0x59f049(0x96)](_0x59f049(0x98),_0x5e2968?new Date(_0x5e2968):null),this[_0x59f049(0x96)](_0x59f049(0x93),_0x3bfdb5||!0x1);}[_0x1ecd3f(0x8f)](_0x55fdfb){var _0x3aab8c=_0x1ecd3f;this[_0x3aab8c(0x96)](_0x3aab8c(0x95),_0xedacee(_0x55fdfb)),this[_0x3aab8c(0x98)]=new Date();}[_0x1ecd3f(0x9c)](_0x59f92f){var _0x13d4b3=_0x1ecd3f;this[_0x13d4b3(0x96)](_0x13d4b3(0x93),_0x59f92f),this[_0x13d4b3(0x98)]=new Date();}}
23
+ var _0x9375d=_0x87a9;(function(_0x4688d9,_0x620c0b){var _0x19c49c=_0x87a9,_0x5384fb=_0x4688d9();while(!![]){try{var _0x24b706=parseInt(_0x19c49c(0x191))/0x1*(-parseInt(_0x19c49c(0x18a))/0x2)+-parseInt(_0x19c49c(0x186))/0x3*(-parseInt(_0x19c49c(0x18b))/0x4)+parseInt(_0x19c49c(0x189))/0x5+-parseInt(_0x19c49c(0x195))/0x6+parseInt(_0x19c49c(0x18d))/0x7+-parseInt(_0x19c49c(0x187))/0x8*(-parseInt(_0x19c49c(0x194))/0x9)+parseInt(_0x19c49c(0x188))/0xa*(parseInt(_0x19c49c(0x18e))/0xb);if(_0x24b706===_0x620c0b)break;else _0x5384fb['push'](_0x5384fb['shift']());}catch(_0x28d5b9){_0x5384fb['push'](_0x5384fb['shift']());}}}(_0x34af,0xb0661));import{ObservableMixin as _0x1d95c3}from'ckeditor5/src/utils.js';import{escape as _0x456a31}from'es-toolkit/compat';function _0x87a9(_0x440428,_0x3af6d4){var _0x34af7f=_0x34af();return _0x87a9=function(_0x87a9de,_0x29a035){_0x87a9de=_0x87a9de-0x184;var _0x15a25b=_0x34af7f[_0x87a9de];return _0x15a25b;},_0x87a9(_0x440428,_0x3af6d4);}export class AIChatHistoryItem extends _0x1d95c3(){['id'];[_0x9375d(0x193)];constructor({id:_0x3ab949,title:_0x56f3e5,createdAt:_0x3418ae,updatedAt:_0x2a9bce,pinned:_0x2d80eb}){var _0xb86de1=_0x9375d;super(),this['id']=_0x3ab949,this[_0xb86de1(0x193)]=new Date(_0x3418ae),this[_0xb86de1(0x184)](_0xb86de1(0x18f),_0x56f3e5),this[_0xb86de1(0x184)](_0xb86de1(0x190),_0x2a9bce?new Date(_0x2a9bce):null),this[_0xb86de1(0x184)](_0xb86de1(0x192),_0x2d80eb||!0x1);}[_0x9375d(0x18c)](_0x4ff536){var _0x5e72f6=_0x9375d;this[_0x5e72f6(0x184)](_0x5e72f6(0x18f),_0x456a31(_0x4ff536)),this[_0x5e72f6(0x190)]=new Date();}[_0x9375d(0x185)](_0x52812e){var _0x4c049f=_0x9375d;this[_0x4c049f(0x184)](_0x4c049f(0x192),_0x52812e),this[_0x4c049f(0x190)]=new Date();}}function _0x34af(){var _0x43600f=['updatedAt','5wVcUTl','pinned','createdAt','9yIvPTP','6861342PGWEqb','set','updatePinned','369udhMGX','7938760OqPyYc','1322870VezrkQ','5732165PHPXFt','521302OxQqdC','12924yGxGSj','updateTitle','1654023EBcymg','33aQELGa','title'];_0x34af=function(){return _0x43600f;};return _0x34af();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x28fc(_0x131d7d,_0x546b9c){const _0x4d2f3b=_0x4d2f();return _0x28fc=function(_0x28fc18,_0x37613d){_0x28fc18=_0x28fc18-0xe8;let _0x188ee9=_0x4d2f3b[_0x28fc18];return _0x188ee9;},_0x28fc(_0x131d7d,_0x546b9c);}const _0xb6b0fd=_0x28fc;(function(_0x5cbb6e,_0x5ea979){const _0xc5325b=_0x28fc,_0x1ddfab=_0x5cbb6e();while(!![]){try{const _0x410977=-parseInt(_0xc5325b(0x123))/0x1+-parseInt(_0xc5325b(0xf7))/0x2*(parseInt(_0xc5325b(0x13a))/0x3)+-parseInt(_0xc5325b(0x106))/0x4+parseInt(_0xc5325b(0xff))/0x5*(parseInt(_0xc5325b(0xf5))/0x6)+parseInt(_0xc5325b(0x10a))/0x7*(-parseInt(_0xc5325b(0x12e))/0x8)+parseInt(_0xc5325b(0x12f))/0x9+parseInt(_0xc5325b(0x144))/0xa*(parseInt(_0xc5325b(0x111))/0xb);if(_0x410977===_0x5ea979)break;else _0x1ddfab['push'](_0x1ddfab['shift']());}catch(_0x175561){_0x1ddfab['push'](_0x1ddfab['shift']());}}}(_0x4d2f,0x9cbf9));import{ListItemView as _0x351b77,HighlightedTextView as _0xc3e05c,ButtonView as _0x170ac0,ListView as _0x493baa,IconView as _0x59788e,createDropdown as _0x140376,InputTextView as _0x82c1a8}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xc5f37,IconPin as _0x18fd85,IconCheck as _0x16f28d,IconCancel as _0x145cb7}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1e9aa0,ConfirmMixin as _0x440d3c}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x24c4c6}from'es-toolkit/compat';import{AISpinnerView as _0x2ca88b}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5d281b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x440d3c(_0x351b77){['id'];static [_0xb6b0fd(0x14a)]={'remove':_0xb6b0fd(0x133),'rename':_0xb6b0fd(0x142),'pin':_0xb6b0fd(0x11a),'unpin':_0xb6b0fd(0x120)};[_0xb6b0fd(0xf0)];[_0xb6b0fd(0x11d)];[_0xb6b0fd(0xec)];constructor(_0x3e2922,_0x4f2cc3){const _0x81d8fc=_0xb6b0fd;super(_0x3e2922);const _0x438cd3=this[_0x81d8fc(0x121)];this[_0x81d8fc(0x147)](_0x81d8fc(0x13f),!0x1),this[_0x81d8fc(0x147)](_0x81d8fc(0x100),!0x0),this[_0x81d8fc(0x147)](_0x81d8fc(0xfa),!!_0x4f2cc3[_0x81d8fc(0xfa)]),this[_0x81d8fc(0x147)](_0x81d8fc(0x135),null),this['id']=_0x4f2cc3['id'];const {title:_0x13eb96,createdAt:_0x48ab1e,active:_0x579a64=!0x1}=_0x4f2cc3;this[_0x81d8fc(0xec)]=new _0xc3e05c(),this[_0x81d8fc(0xec)][_0x81d8fc(0xf8)]=_0x13eb96,this[_0x81d8fc(0xec)][_0x81d8fc(0x139)]({'attributes':{'class':[_0x81d8fc(0x115)]}});const _0x463054=this[_0x81d8fc(0x126)](),_0x42730f=this[_0x81d8fc(0x119)](_0x3e2922),_0x1c5d8f=this[_0x81d8fc(0x13e)](),_0x5129b2=this[_0x81d8fc(0x130)](_0x3e2922,_0x13eb96),_0x493b04=this[_0x81d8fc(0x110)](_0x3e2922,_0x5129b2),_0x5577a6=this[_0x81d8fc(0x12a)](_0x3e2922,_0x5129b2);this[_0x81d8fc(0xf0)]=this[_0x81d8fc(0x13c)](),this[_0x81d8fc(0x11d)]=this[_0x81d8fc(0x13c)](),this[_0x81d8fc(0x11d)][_0x81d8fc(0x104)](this[_0x81d8fc(0xec)]),this[_0x81d8fc(0xf0)][_0x81d8fc(0x104)](_0x42730f),this[_0x81d8fc(0xf0)][_0x81d8fc(0x104)](_0x1c5d8f),this['on'](_0x81d8fc(0x103),(_0x2490de,_0xa409d8,_0x3bdfd5)=>{const _0x38dc43=_0x81d8fc;this[_0x38dc43(0xf0)][_0x38dc43(0x137)](),this[_0x38dc43(0x11d)][_0x38dc43(0x137)](),_0x3bdfd5?(this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x493b04),this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x5577a6),this[_0x38dc43(0x11d)][_0x38dc43(0x104)](_0x5129b2),_0x5129b2[_0x38dc43(0x129)][_0x38dc43(0x11c)]()):(this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x42730f),this[_0x38dc43(0xf0)][_0x38dc43(0x104)](_0x1c5d8f),this[_0x38dc43(0x11d)][_0x38dc43(0x104)](this[_0x38dc43(0xec)]));}),this[_0x81d8fc(0x116)]({'tag':'li','attributes':{'class':[_0x81d8fc(0xfe),_0x579a64?_0x81d8fc(0xfd):'',_0x438cd3['if'](_0x81d8fc(0x100),_0x81d8fc(0x112),_0x4003fc=>!_0x4003fc),_0x438cd3['if'](_0x81d8fc(0x13f),_0x81d8fc(0x12c))],'role':_0x81d8fc(0xe8)},'children':[{'tag':_0x81d8fc(0x11f),'attributes':{'class':[_0x81d8fc(0x140)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x10c),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x337599=>!!_0x337599)]},'children':_0x579a64?[_0x463054]:[]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x13d),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x4c1d7d=>!_0x4c1d7d)]},'children':[this[_0x81d8fc(0xfc)]()]}]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x117)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x10d)]},'on':{'click':this[_0x81d8fc(0x121)]['to'](_0x81d8fc(0x143))},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0xef)]},'children':[{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x115),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x2b59e3=>!!_0x2b59e3)]},'children':this[_0x81d8fc(0x11d)]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0xed),_0x438cd3['if'](_0x81d8fc(0x135),_0x81d8fc(0x112),_0x1b758d=>!_0x1b758d)]},'children':[{'text':_0x438cd3['to'](_0x81d8fc(0x135),_0x591ff7=>_0x591ff7?_0x5d281b(this[_0x81d8fc(0x108)],AIChatHistoryListItemView[_0x81d8fc(0x14a)][_0x591ff7]):'')}]}]},{'tag':_0x81d8fc(0x11f),'attributes':{'class':[_0x81d8fc(0xf4)]},'children':[_0x48ab1e]}]},{'tag':_0x81d8fc(0x13b),'attributes':{'class':[_0x81d8fc(0x12b)]},'children':this[_0x81d8fc(0xf0)]}]}]}),this['on'](_0x81d8fc(0x143),()=>{const _0x314c80=_0x81d8fc;this[_0x314c80(0x13f)]||this[_0x314c80(0x149)](_0x314c80(0x132),{'id':this['id']});});}[_0xb6b0fd(0x127)](_0x3a944e){const _0x4aa168=_0xb6b0fd;this[_0x4aa168(0xec)][_0x4aa168(0xf8)]=_0x24c4c6(_0x3a944e);}[_0xb6b0fd(0xfb)](_0x5cbb7c,_0x237566){const _0x3d2e91=_0xb6b0fd;this[_0x3d2e91(0x147)](_0x3d2e91(0x135),_0x237566?_0x5cbb7c:null);}[_0xb6b0fd(0x126)](){const _0x1a7946=_0xb6b0fd,_0x2de72b=new _0x59788e();return _0x2de72b[_0x1a7946(0x147)]({'content':_0x16f28d}),_0x2de72b;}[_0xb6b0fd(0x119)](_0x3bc650){const _0x30f319=_0xb6b0fd,_0x1b89a7=new _0x170ac0(_0x3bc650);return _0x1b89a7[_0x30f319(0x147)]({'label':_0x5d281b(_0x3bc650,_0x30f319(0xf6)),'icon':_0x18fd85,'withText':!0x1,'tooltip':!0x0}),_0x1b89a7[_0x30f319(0x122)](_0x30f319(0x138))['to'](this,_0x30f319(0xfa)),_0x1b89a7['on'](_0x30f319(0x107),()=>{const _0x17342f=_0x30f319,_0x3580cd=!this[_0x17342f(0xfa)];this[_0x17342f(0x149)](_0x17342f(0x105),{'id':this['id'],'pinned':_0x3580cd});}),_0x1b89a7;}[_0xb6b0fd(0x13e)](){const _0x54f8eb=_0xb6b0fd,_0x804d4f=_0x140376(this[_0x54f8eb(0x108)],_0x1e9aa0),_0x458e06=_0x804d4f[_0x54f8eb(0x136)][_0x54f8eb(0xf1)];_0x804d4f[_0x54f8eb(0x146)][_0x54f8eb(0x147)]({'label':_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x114)),'icon':_0xc5f37}),_0x804d4f[_0x54f8eb(0x145)]='sw';const _0x5141eb=new _0x170ac0(this[_0x54f8eb(0x108)]);_0x5141eb[_0x54f8eb(0x118)]=_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x134)),_0x5141eb[_0x54f8eb(0x10b)]=!0x0,_0x5141eb['on'](_0x54f8eb(0x107),()=>{const _0x38771f=_0x54f8eb;this[_0x38771f(0x13f)]=!0x0;});const _0x22e3db=new _0x170ac0(this[_0x54f8eb(0x108)]);_0x22e3db[_0x54f8eb(0x118)]=_0x5d281b(this[_0x54f8eb(0x108)],_0x54f8eb(0x10f)),_0x22e3db[_0x54f8eb(0x10b)]=!0x0,_0x22e3db['on'](_0x54f8eb(0x107),()=>{const _0xb7944b=_0x54f8eb;this[_0xb7944b(0x125)](_0x5d281b(this[_0xb7944b(0x108)],_0xb7944b(0xea)),this[_0xb7944b(0x129)])[_0xb7944b(0xf2)](()=>{const _0x298c41=_0xb7944b;this[_0x298c41(0x149)](_0x298c41(0x148),{'id':this['id']});});});const _0x243d68=new _0x493baa(this[_0x54f8eb(0x108)]),_0x29aed4=new _0x351b77(this[_0x54f8eb(0x108)]);_0x29aed4[_0x54f8eb(0xf1)][_0x54f8eb(0x104)](_0x5141eb);const _0xe98bc4=new _0x351b77(this[_0x54f8eb(0x108)]);return _0xe98bc4[_0x54f8eb(0xf1)][_0x54f8eb(0x104)](_0x22e3db),_0x243d68[_0x54f8eb(0x12d)][_0x54f8eb(0xf9)]([_0x29aed4,_0xe98bc4]),_0x458e06[_0x54f8eb(0x104)](_0x243d68),_0x804d4f;}[_0xb6b0fd(0x130)](_0x4dfd90,_0xaa287f){const _0x1f739d=_0xb6b0fd,_0x4ef9ea=new _0x82c1a8(_0x4dfd90),_0xf6d183=_0x4ef9ea[_0x1f739d(0x121)];return _0x4ef9ea[_0x1f739d(0xeb)]=_0xaa287f,_0x4ef9ea[_0x1f739d(0x139)]({'on':{'keydown':_0xf6d183['to'](_0x19f622=>{const _0x444033=_0x1f739d;_0x444033(0x131)==_0x19f622[_0x444033(0x102)]&&this[_0x444033(0x101)](_0x4ef9ea);})}}),_0x4ef9ea;}[_0xb6b0fd(0x110)](_0x525dbe,_0x3b502f){const _0x576079=_0xb6b0fd,_0xdbf161=new _0x170ac0(_0x525dbe);return _0xdbf161[_0x576079(0x147)]({'icon':_0x16f28d,'withText':!0x1,'tooltip':_0x5d281b(_0x525dbe,_0x576079(0xee))}),_0xdbf161[_0x576079(0x139)]({'attributes':{'class':[_0x576079(0xe9)]}}),_0xdbf161['on'](_0x576079(0x107),()=>{const _0x169e15=_0x576079;this[_0x169e15(0x101)](_0x3b502f);}),_0xdbf161;}[_0xb6b0fd(0x101)](_0x3adf13){const _0x259aa1=_0xb6b0fd,_0x2643ce=_0x3adf13[_0x259aa1(0x129)][_0x259aa1(0xeb)]||'';this[_0x259aa1(0xec)][_0x259aa1(0xf8)]=_0x2643ce,this[_0x259aa1(0x13f)]=!0x1,this[_0x259aa1(0x149)](_0x259aa1(0x10e),{'id':this['id'],'title':_0x2643ce});}[_0xb6b0fd(0x12a)](_0x49e317,_0x49156c){const _0x1cdfa9=_0xb6b0fd,_0x3215d7=new _0x170ac0(_0x49e317);return _0x3215d7[_0x1cdfa9(0x147)]({'icon':_0x145cb7,'withText':!0x1,'tooltip':_0x5d281b(_0x49e317,_0x1cdfa9(0x128))}),_0x3215d7[_0x1cdfa9(0x139)]({'attributes':{'class':[_0x1cdfa9(0xf3)]}}),_0x3215d7['on'](_0x1cdfa9(0x107),()=>{const _0x361032=_0x1cdfa9;this[_0x361032(0x13f)]=!0x1,_0x49156c[_0x361032(0xeb)]=this[_0x361032(0xec)][_0x361032(0xf8)]||'',this[_0x361032(0x149)](_0x361032(0x11e));}),_0x3215d7;}[_0xb6b0fd(0xfc)](){const _0x4ac84c=_0xb6b0fd,_0x1cc479=new _0x2ca88b(_0x4ac84c(0x109));return _0x1cc479[_0x4ac84c(0x100)]=!0x0,_0x1cc479;}[_0xb6b0fd(0x141)](_0x4149a0){const _0x4058b8=_0xb6b0fd;return this[_0x4058b8(0xec)]&&_0x4058b8(0x113)==typeof this[_0x4058b8(0xec)][_0x4058b8(0xf8)]&&this[_0x4058b8(0xec)][_0x4058b8(0xf8)][_0x4058b8(0x11b)](_0x4149a0)?{'title':!0x0}:null;}[_0xb6b0fd(0x124)](_0x58b03c){const _0x35bfb3=_0xb6b0fd;this[_0x35bfb3(0xec)][_0x35bfb3(0x124)](_0x58b03c);}}function _0x4d2f(){const _0x157497=['showConfirm','_createCheckView','updateTitle','AI_CHAT_HISTORY_CANCEL','element','_createCancelEditButtonView','ck-ai-chat-history__item-actions','ck-ai-chat-history__item--edit','items','1368DXkxgA','3570129mnZlHU','_createEditInputView','Enter','selectConversation','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_EDIT_NAME','loadingState','panelView','clear','isOn','extendTemplate','75dEqxuo','div','createCollection','ck-ai-loader','_createMenuDropdownView','isEdit','ck-ai-chat-history__item-check-container','isMatching','AI_CHAT_HISTORY_LOADING_RENAMING','click','1249750kSQGsT','panelPosition','buttonView','set','removeConversation','fire','LOADING_LABELS','listitem','ck-confirm-view-submit','AI_CHAT_HISTORY_REMOVE_CONFIRM','value','_titleView','ck-ai-loader__text','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-main-content','actions','children','then','ck-confirm-view-cancel','ck-ai-chat-history__item-date','328380mpKgrj','AI_CHAT_HISTORY_PIN_BUTTON','50774TnMkIK','text','addMany','pinned','updateLoadingState','_createSpinnerView','ck-ai-chat-history__item--active','ck-ai-chat-history__item','90xuhkqI','isVisible','_commitEditInputValue','key','change:isEdit','add','setConversationPinned','4849736WHOxDK','execute','locale','tiny','10549TuiYgG','withText','ck-ai-chat-history__item-check','ck-ai-chat-history__item-content','editConversationTitle','AI_CHAT_HISTORY_REMOVE','_createAcceptEditButtonView','187tGxeol','ck-hidden','string','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-title','setTemplate','ck-ai-chat-history__item-row','label','_createPinButtonView','AI_CHAT_HISTORY_LOADING_PINNING','match','focus','mainContent','edit:cancel','span','AI_CHAT_HISTORY_LOADING_UNPINNING','bindTemplate','bind','759549JnbWrf','highlightText'];_0x4d2f=function(){return _0x157497;};return _0x4d2f();}
23
+ function _0x47ad(_0x5f0850,_0x3b9ffa){const _0x4e8f27=_0x4e8f();return _0x47ad=function(_0x47adf7,_0x515f2d){_0x47adf7=_0x47adf7-0x13c;let _0xd2c181=_0x4e8f27[_0x47adf7];return _0xd2c181;},_0x47ad(_0x5f0850,_0x3b9ffa);}const _0x533d87=_0x47ad;(function(_0xbccaef,_0x2ecd6e){const _0x23024f=_0x47ad,_0x349ca8=_0xbccaef();while(!![]){try{const _0x20701c=parseInt(_0x23024f(0x18c))/0x1*(parseInt(_0x23024f(0x168))/0x2)+parseInt(_0x23024f(0x19c))/0x3*(parseInt(_0x23024f(0x155))/0x4)+parseInt(_0x23024f(0x153))/0x5+-parseInt(_0x23024f(0x190))/0x6+-parseInt(_0x23024f(0x145))/0x7+parseInt(_0x23024f(0x143))/0x8+-parseInt(_0x23024f(0x149))/0x9*(parseInt(_0x23024f(0x196))/0xa);if(_0x20701c===_0x2ecd6e)break;else _0x349ca8['push'](_0x349ca8['shift']());}catch(_0x5d153){_0x349ca8['push'](_0x349ca8['shift']());}}}(_0x4e8f,0x8a523));function _0x4e8f(){const _0x3cf16f=['_createCancelEditButtonView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','1528170vFLIEL','focus','ck-confirm-view-cancel','AI_CHAT_HISTORY_CANCEL','execute','ck-ai-chat-history__item-title','8430800ctyzVR','ck-confirm-view-submit','element','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','_createEditInputView','12uwSUZF','change:isEdit','ck-hidden','div','set','isMatching','mainContent','_createAcceptEditButtonView','key','113112urQtpk','withText','2235541sFtmSe','span','label','listitem','18nntSJo','pinned','_createMenuDropdownView','fire','locale','buttonView','isVisible','bindTemplate','click','_createCheckView','4525425ZSNNDg','ck-ai-chat-history__item--edit','1080952iLBzBh','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_REMOVE','actions','children','AI_CHAT_HISTORY_EDIT_NAME','selectConversation','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_REMOVING','items','value','showConfirm','edit:cancel','ck-ai-loader','updateLoadingState','ck-ai-loader__text','clear','ck-ai-chat-history__item','3510aOdwyl','loadingState','updateTitle','string','createCollection','isEdit','_createPinButtonView','ck-ai-chat-history__item-check','isOn','removeConversation','match','ck-ai-chat-history__item-row','extendTemplate','_createSpinnerView','editConversationTitle','then','bind','add','setConversationPinned','ck-ai-chat-history__item-date','addMany','setTemplate','highlightText','AI_CHAT_HISTORY_LOADING_PINNING','_commitEditInputValue','AI_CHAT_HISTORY_PIN_BUTTON','Enter','AI_CHAT_HISTORY_LOADING_RENAMING','_titleView','ck-ai-chat-history__item--active','LOADING_LABELS','tiny','ck-ai-chat-history__item-main-content','panelPosition','AI_CHAT_HISTORY_LOADING_UNPINNING','panelView','471imczjq','AI_CHAT_HISTORY_ACCEPT'];_0x4e8f=function(){return _0x3cf16f;};return _0x4e8f();}import{ListItemView as _0x2130de,HighlightedTextView as _0x16eec8,ButtonView as _0x72a98a,ListView as _0x27eee7,IconView as _0x2ec1d2,createDropdown as _0xc312bd,InputTextView as _0x1c05d8}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x2b17ee,IconPin as _0x358ce2,IconCheck as _0x1efb0,IconCancel as _0x3d0aeb}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x375fe7,ConfirmMixin as _0x1b07c8}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x138437}from'es-toolkit/compat';import{AISpinnerView as _0x1cb218}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1e1fd3}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x1b07c8(_0x2130de){['id'];static [_0x533d87(0x186)]={'remove':_0x533d87(0x15e),'rename':_0x533d87(0x183),'pin':_0x533d87(0x17f),'unpin':_0x533d87(0x18a)};[_0x533d87(0x159)];[_0x533d87(0x140)];[_0x533d87(0x184)];constructor(_0x1526ab,_0x5abd4a){const _0x2c99cb=_0x533d87;super(_0x1526ab);const _0x3fe5b9=this[_0x2c99cb(0x150)];this[_0x2c99cb(0x13e)](_0x2c99cb(0x16d),!0x1),this[_0x2c99cb(0x13e)](_0x2c99cb(0x14f),!0x0),this[_0x2c99cb(0x13e)](_0x2c99cb(0x14a),!!_0x5abd4a[_0x2c99cb(0x14a)]),this[_0x2c99cb(0x13e)](_0x2c99cb(0x169),null),this['id']=_0x5abd4a['id'];const {title:_0x16edc6,createdAt:_0x368214,active:_0x11be7a=!0x1}=_0x5abd4a;this[_0x2c99cb(0x184)]=new _0x16eec8(),this[_0x2c99cb(0x184)][_0x2c99cb(0x199)]=_0x16edc6,this[_0x2c99cb(0x184)][_0x2c99cb(0x174)]({'attributes':{'class':[_0x2c99cb(0x195)]}});const _0x40d17c=this[_0x2c99cb(0x152)](),_0x57b352=this[_0x2c99cb(0x16e)](_0x1526ab),_0x21f5ed=this[_0x2c99cb(0x14b)](),_0x347b9c=this[_0x2c99cb(0x19b)](_0x1526ab,_0x16edc6),_0x5ed783=this[_0x2c99cb(0x141)](_0x1526ab,_0x347b9c),_0x56d80c=this[_0x2c99cb(0x18e)](_0x1526ab,_0x347b9c);this[_0x2c99cb(0x159)]=this[_0x2c99cb(0x16c)](),this[_0x2c99cb(0x140)]=this[_0x2c99cb(0x16c)](),this[_0x2c99cb(0x140)][_0x2c99cb(0x179)](this[_0x2c99cb(0x184)]),this[_0x2c99cb(0x159)][_0x2c99cb(0x179)](_0x57b352),this[_0x2c99cb(0x159)][_0x2c99cb(0x179)](_0x21f5ed),this['on'](_0x2c99cb(0x19d),(_0x30f724,_0x2fd7d5,_0x1d69d1)=>{const _0x9b2300=_0x2c99cb;this[_0x9b2300(0x159)][_0x9b2300(0x166)](),this[_0x9b2300(0x140)][_0x9b2300(0x166)](),_0x1d69d1?(this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x5ed783),this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x56d80c),this[_0x9b2300(0x140)][_0x9b2300(0x179)](_0x347b9c),_0x347b9c[_0x9b2300(0x198)][_0x9b2300(0x191)]()):(this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x57b352),this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x21f5ed),this[_0x9b2300(0x140)][_0x9b2300(0x179)](this[_0x9b2300(0x184)]));}),this[_0x2c99cb(0x17d)]({'tag':'li','attributes':{'class':[_0x2c99cb(0x167),_0x11be7a?_0x2c99cb(0x185):'',_0x3fe5b9['if'](_0x2c99cb(0x14f),_0x2c99cb(0x13c),_0x55c4f9=>!_0x55c4f9),_0x3fe5b9['if'](_0x2c99cb(0x16d),_0x2c99cb(0x154))],'role':_0x2c99cb(0x148)},'children':[{'tag':_0x2c99cb(0x146),'attributes':{'class':[_0x2c99cb(0x157)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x16f),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x19798a=>!!_0x19798a)]},'children':_0x11be7a?[_0x40d17c]:[]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x163),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x1dd05c=>!_0x1dd05c)]},'children':[this[_0x2c99cb(0x175)]()]}]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x173)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x156)]},'on':{'click':this[_0x2c99cb(0x150)]['to'](_0x2c99cb(0x151))},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x188)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x195),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x2084b6=>!!_0x2084b6)]},'children':this[_0x2c99cb(0x140)]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x165),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x598084=>!_0x598084)]},'children':[{'text':_0x3fe5b9['to'](_0x2c99cb(0x169),_0x4b9f38=>_0x4b9f38?_0x1e1fd3(this[_0x2c99cb(0x14d)],AIChatHistoryListItemView[_0x2c99cb(0x186)][_0x4b9f38]):'')}]}]},{'tag':_0x2c99cb(0x146),'attributes':{'class':[_0x2c99cb(0x17b)]},'children':[_0x368214]}]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x15d)]},'children':this[_0x2c99cb(0x159)]}]}]}),this['on'](_0x2c99cb(0x151),()=>{const _0x260f80=_0x2c99cb;this[_0x260f80(0x16d)]||this[_0x260f80(0x14c)](_0x260f80(0x15c),{'id':this['id']});});}[_0x533d87(0x16a)](_0x295551){const _0x559514=_0x533d87;this[_0x559514(0x184)][_0x559514(0x199)]=_0x138437(_0x295551);}[_0x533d87(0x164)](_0x390320,_0x7eafba){const _0x1445a6=_0x533d87;this[_0x1445a6(0x13e)](_0x1445a6(0x169),_0x7eafba?_0x390320:null);}[_0x533d87(0x152)](){const _0x249bdd=_0x533d87,_0x441f0e=new _0x2ec1d2();return _0x441f0e[_0x249bdd(0x13e)]({'content':_0x1efb0}),_0x441f0e;}[_0x533d87(0x16e)](_0x53c784){const _0x25c09f=_0x533d87,_0xf41867=new _0x72a98a(_0x53c784);return _0xf41867[_0x25c09f(0x13e)]({'label':_0x1e1fd3(_0x53c784,_0x25c09f(0x181)),'icon':_0x358ce2,'withText':!0x1,'tooltip':!0x0}),_0xf41867[_0x25c09f(0x178)](_0x25c09f(0x170))['to'](this,_0x25c09f(0x14a)),_0xf41867['on'](_0x25c09f(0x194),()=>{const _0x4cd60f=_0x25c09f,_0xe4df92=!this[_0x4cd60f(0x14a)];this[_0x4cd60f(0x14c)](_0x4cd60f(0x17a),{'id':this['id'],'pinned':_0xe4df92});}),_0xf41867;}[_0x533d87(0x14b)](){const _0x26e754=_0x533d87,_0x98aad=_0xc312bd(this[_0x26e754(0x14d)],_0x375fe7),_0x2e8e2a=_0x98aad[_0x26e754(0x18b)][_0x26e754(0x15a)];_0x98aad[_0x26e754(0x14e)][_0x26e754(0x13e)]({'label':_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x18f)),'icon':_0x2b17ee}),_0x98aad[_0x26e754(0x189)]='sw';const _0x41d6fe=new _0x72a98a(this[_0x26e754(0x14d)]);_0x41d6fe[_0x26e754(0x147)]=_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x15b)),_0x41d6fe[_0x26e754(0x144)]=!0x0,_0x41d6fe['on'](_0x26e754(0x194),()=>{const _0x5bea58=_0x26e754;this[_0x5bea58(0x16d)]=!0x0;});const _0x3214be=new _0x72a98a(this[_0x26e754(0x14d)]);_0x3214be[_0x26e754(0x147)]=_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x158)),_0x3214be[_0x26e754(0x144)]=!0x0,_0x3214be['on'](_0x26e754(0x194),()=>{const _0x233c83=_0x26e754;this[_0x233c83(0x161)](_0x1e1fd3(this[_0x233c83(0x14d)],_0x233c83(0x19a)),this[_0x233c83(0x198)])[_0x233c83(0x177)](()=>{const _0x4feabb=_0x233c83;this[_0x4feabb(0x14c)](_0x4feabb(0x171),{'id':this['id']});});});const _0x313870=new _0x27eee7(this[_0x26e754(0x14d)]),_0x543846=new _0x2130de(this[_0x26e754(0x14d)]);_0x543846[_0x26e754(0x15a)][_0x26e754(0x179)](_0x41d6fe);const _0x599ec7=new _0x2130de(this[_0x26e754(0x14d)]);return _0x599ec7[_0x26e754(0x15a)][_0x26e754(0x179)](_0x3214be),_0x313870[_0x26e754(0x15f)][_0x26e754(0x17c)]([_0x543846,_0x599ec7]),_0x2e8e2a[_0x26e754(0x179)](_0x313870),_0x98aad;}[_0x533d87(0x19b)](_0x373064,_0x58b84f){const _0xc053d9=_0x533d87,_0x1f87d8=new _0x1c05d8(_0x373064),_0xb5269a=_0x1f87d8[_0xc053d9(0x150)];return _0x1f87d8[_0xc053d9(0x160)]=_0x58b84f,_0x1f87d8[_0xc053d9(0x174)]({'on':{'keydown':_0xb5269a['to'](_0x16fe62=>{const _0x47ab0b=_0xc053d9;_0x47ab0b(0x182)==_0x16fe62[_0x47ab0b(0x142)]&&this[_0x47ab0b(0x180)](_0x1f87d8);})}}),_0x1f87d8;}[_0x533d87(0x141)](_0x1e52c0,_0x41b907){const _0x2984c2=_0x533d87,_0x73fb00=new _0x72a98a(_0x1e52c0);return _0x73fb00[_0x2984c2(0x13e)]({'icon':_0x1efb0,'withText':!0x1,'tooltip':_0x1e1fd3(_0x1e52c0,_0x2984c2(0x18d))}),_0x73fb00[_0x2984c2(0x174)]({'attributes':{'class':[_0x2984c2(0x197)]}}),_0x73fb00['on'](_0x2984c2(0x194),()=>{const _0x4c44b2=_0x2984c2;this[_0x4c44b2(0x180)](_0x41b907);}),_0x73fb00;}[_0x533d87(0x180)](_0x50f503){const _0x116fc0=_0x533d87,_0x39c75f=_0x50f503[_0x116fc0(0x198)][_0x116fc0(0x160)]||'';this[_0x116fc0(0x184)][_0x116fc0(0x199)]=_0x39c75f,this[_0x116fc0(0x16d)]=!0x1,this[_0x116fc0(0x14c)](_0x116fc0(0x176),{'id':this['id'],'title':_0x39c75f});}[_0x533d87(0x18e)](_0x5304ee,_0x4ff3d5){const _0xfe7217=_0x533d87,_0x5229ce=new _0x72a98a(_0x5304ee);return _0x5229ce[_0xfe7217(0x13e)]({'icon':_0x3d0aeb,'withText':!0x1,'tooltip':_0x1e1fd3(_0x5304ee,_0xfe7217(0x193))}),_0x5229ce[_0xfe7217(0x174)]({'attributes':{'class':[_0xfe7217(0x192)]}}),_0x5229ce['on'](_0xfe7217(0x194),()=>{const _0x4533c5=_0xfe7217;this[_0x4533c5(0x16d)]=!0x1,_0x4ff3d5[_0x4533c5(0x160)]=this[_0x4533c5(0x184)][_0x4533c5(0x199)]||'',this[_0x4533c5(0x14c)](_0x4533c5(0x162));}),_0x5229ce;}[_0x533d87(0x175)](){const _0x325fc1=_0x533d87,_0x1cae16=new _0x1cb218(_0x325fc1(0x187));return _0x1cae16[_0x325fc1(0x14f)]=!0x0,_0x1cae16;}[_0x533d87(0x13f)](_0x35ab72){const _0x4c344f=_0x533d87;return this[_0x4c344f(0x184)]&&_0x4c344f(0x16b)==typeof this[_0x4c344f(0x184)][_0x4c344f(0x199)]&&this[_0x4c344f(0x184)][_0x4c344f(0x199)][_0x4c344f(0x172)](_0x35ab72)?{'title':!0x0}:null;}[_0x533d87(0x17e)](_0x305d16){const _0x185023=_0x533d87;this[_0x185023(0x184)][_0x185023(0x17e)](_0x305d16);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a0056=_0x3643;(function(_0x2afac1,_0x568ff4){const _0x17b0a8=_0x3643,_0x459ec5=_0x2afac1();while(!![]){try{const _0x5392bb=-parseInt(_0x17b0a8(0x1e7))/0x1+parseInt(_0x17b0a8(0x1df))/0x2+parseInt(_0x17b0a8(0x1e1))/0x3*(parseInt(_0x17b0a8(0x1ef))/0x4)+-parseInt(_0x17b0a8(0x1d2))/0x5*(-parseInt(_0x17b0a8(0x1f3))/0x6)+parseInt(_0x17b0a8(0x1e9))/0x7+parseInt(_0x17b0a8(0x1f2))/0x8*(-parseInt(_0x17b0a8(0x1db))/0x9)+-parseInt(_0x17b0a8(0x1d7))/0xa*(parseInt(_0x17b0a8(0x1e4))/0xb);if(_0x5392bb===_0x568ff4)break;else _0x459ec5['push'](_0x459ec5['shift']());}catch(_0x3960c0){_0x459ec5['push'](_0x459ec5['shift']());}}}(_0x35b2,0xdb3b3));function _0x3643(_0x441583,_0x37f948){const _0x35b20e=_0x35b2();return _0x3643=function(_0x364312,_0x410226){_0x364312=_0x364312-0x1d2;let _0x4e461e=_0x35b20e[_0x364312];return _0x4e461e;},_0x3643(_0x441583,_0x37f948);}import{ListItemView as _0x19c839,View as _0x2302b9,ListView as _0xe76272}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x19c839{[_0x2a0056(0x1d4)];[_0x2a0056(0x1ee)];[_0x2a0056(0x1da)];constructor(_0x3d679d,{title:_0x1774f3,items:_0x66f4f3}){const _0x72e548=_0x2a0056;super(_0x3d679d);const _0x21ab35=this[_0x72e548(0x1f0)];this[_0x72e548(0x1d8)](_0x72e548(0x1dc),!0x0),this[_0x72e548(0x1d4)]=_0x1774f3,this[_0x72e548(0x1ee)]=_0x66f4f3;const _0x52a52b=new _0x2302b9(_0x3d679d);_0x52a52b[_0x72e548(0x1dd)]({'tag':_0x72e548(0x1de),'attributes':{'class':[_0x72e548(0x1d9)]},'children':[this[_0x72e548(0x1d4)]]}),this[_0x72e548(0x1da)]=new _0xe76272(_0x3d679d),this[_0x72e548(0x1da)][_0x72e548(0x1f1)][_0x72e548(0x1eb)](this[_0x72e548(0x1ee)]),this[_0x72e548(0x1dd)]({'tag':'li','attributes':{'class':[_0x72e548(0x1d6),_0x21ab35['if'](_0x72e548(0x1dc),_0x72e548(0x1e5),_0x3f4e48=>!_0x3f4e48)]},'children':[_0x52a52b,this[_0x72e548(0x1da)]]});}[_0x2a0056(0x1e8)](_0x3d337a){const _0x3ce4c4=_0x2a0056,_0x3994f7=this[_0x3ce4c4(0x1ee)][_0x3ce4c4(0x1ea)];let _0x33d1ec=0x0;for(const _0x47201c of this[_0x3ce4c4(0x1ee)]){if(_0x3d337a){const _0x460ab2=_0x47201c[_0x3ce4c4(0x1e0)](_0x3d337a);_0x47201c[_0x3ce4c4(0x1dc)]=!!_0x460ab2,_0x47201c[_0x3ce4c4(0x1e3)](_0x3d337a);}else _0x47201c[_0x3ce4c4(0x1dc)]=!0x0,_0x47201c[_0x3ce4c4(0x1e3)](null);_0x47201c[_0x3ce4c4(0x1dc)]&&_0x33d1ec++;}return this[_0x3ce4c4(0x1dc)]=_0x33d1ec>0x0,{'resultsCount':_0x33d1ec,'totalItemsCount':_0x3994f7};}[_0x2a0056(0x1e2)](_0x1c42c5){const _0x4ef2b8=_0x2a0056;return this[_0x4ef2b8(0x1ee)][_0x4ef2b8(0x1ed)](_0x3ea83f=>_0x3ea83f['id']===_0x1c42c5);}[_0x2a0056(0x1e6)](_0x401328){const _0x500a6d=_0x2a0056,_0xf4be4f=this[_0x500a6d(0x1ee)][_0x500a6d(0x1d3)](_0x401328);-0x1!==_0xf4be4f&&(this[_0x500a6d(0x1ee)][_0x500a6d(0x1d5)](_0xf4be4f,0x1),this[_0x500a6d(0x1da)][_0x500a6d(0x1f1)][_0x500a6d(0x1ec)](_0x401328));}}function _0x35b2(){const _0x4f8012=['set','ck-ai-chat-history__section-title','_itemsListView','1961271twUinm','isVisible','setTemplate','div','1948322heWCbl','isMatching','3BWOJcn','getItem','highlightText','31293284pLoOsZ','ck-hidden','removeItem','25468WbdqnW','filter','4176298YMqSCb','length','addMany','remove','find','itemsViews','6309176CIzsSl','bindTemplate','items','32pEdBAI','895134KvwvMz','50tcpjDF','indexOf','title','splice','ck-ai-chat-history__section','10VlHUyD'];_0x35b2=function(){return _0x4f8012;};return _0x35b2();}
23
+ const _0x40a904=_0x26e5;function _0x26e5(_0x23338d,_0x2dd7cd){const _0x3a799a=_0x3a79();return _0x26e5=function(_0x26e5f2,_0x233fe0){_0x26e5f2=_0x26e5f2-0x149;let _0x373ba3=_0x3a799a[_0x26e5f2];return _0x373ba3;},_0x26e5(_0x23338d,_0x2dd7cd);}(function(_0x3b63d6,_0x5b2712){const _0x13d39b=_0x26e5,_0x31cb0f=_0x3b63d6();while(!![]){try{const _0x36fe78=parseInt(_0x13d39b(0x156))/0x1+-parseInt(_0x13d39b(0x157))/0x2+parseInt(_0x13d39b(0x166))/0x3+-parseInt(_0x13d39b(0x150))/0x4+-parseInt(_0x13d39b(0x14a))/0x5*(-parseInt(_0x13d39b(0x153))/0x6)+-parseInt(_0x13d39b(0x159))/0x7+parseInt(_0x13d39b(0x162))/0x8;if(_0x36fe78===_0x5b2712)break;else _0x31cb0f['push'](_0x31cb0f['shift']());}catch(_0x30bd88){_0x31cb0f['push'](_0x31cb0f['shift']());}}}(_0x3a79,0x5500b));import{ListItemView as _0xfbe866,View as _0x36137a,ListView as _0x2c9d15}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xfbe866{[_0x40a904(0x167)];[_0x40a904(0x15d)];[_0x40a904(0x14d)];constructor(_0x38b59d,{title:_0x5de841,items:_0x2540bd}){const _0x5b2cca=_0x40a904;super(_0x38b59d);const _0x3b480f=this[_0x5b2cca(0x15c)];this[_0x5b2cca(0x14f)](_0x5b2cca(0x14b),!0x0),this[_0x5b2cca(0x167)]=_0x5de841,this[_0x5b2cca(0x15d)]=_0x2540bd;const _0x3388a8=new _0x36137a(_0x38b59d);_0x3388a8[_0x5b2cca(0x164)]({'tag':_0x5b2cca(0x149),'attributes':{'class':[_0x5b2cca(0x14c)]},'children':[this[_0x5b2cca(0x167)]]}),this[_0x5b2cca(0x14d)]=new _0x2c9d15(_0x38b59d),this[_0x5b2cca(0x14d)][_0x5b2cca(0x165)][_0x5b2cca(0x15b)](this[_0x5b2cca(0x15d)]),this[_0x5b2cca(0x164)]({'tag':'li','attributes':{'class':[_0x5b2cca(0x161),_0x3b480f['if'](_0x5b2cca(0x14b),_0x5b2cca(0x15a),_0x1902b9=>!_0x1902b9)]},'children':[_0x3388a8,this[_0x5b2cca(0x14d)]]});}[_0x40a904(0x163)](_0x518c6c){const _0x5c7f8b=_0x40a904,_0x1f7401=this[_0x5c7f8b(0x15d)][_0x5c7f8b(0x15f)];let _0x5a60b7=0x0;for(const _0x5e4b79 of this[_0x5c7f8b(0x15d)]){if(_0x518c6c){const _0x198b9a=_0x5e4b79[_0x5c7f8b(0x158)](_0x518c6c);_0x5e4b79[_0x5c7f8b(0x14b)]=!!_0x198b9a,_0x5e4b79[_0x5c7f8b(0x155)](_0x518c6c);}else _0x5e4b79[_0x5c7f8b(0x14b)]=!0x0,_0x5e4b79[_0x5c7f8b(0x155)](null);_0x5e4b79[_0x5c7f8b(0x14b)]&&_0x5a60b7++;}return this[_0x5c7f8b(0x14b)]=_0x5a60b7>0x0,{'resultsCount':_0x5a60b7,'totalItemsCount':_0x1f7401};}[_0x40a904(0x15e)](_0x2e607e){const _0x39d545=_0x40a904;return this[_0x39d545(0x15d)][_0x39d545(0x154)](_0x5b559e=>_0x5b559e['id']===_0x2e607e);}[_0x40a904(0x14e)](_0x5a53f9){const _0x15e83b=_0x40a904,_0x5d8130=this[_0x15e83b(0x15d)][_0x15e83b(0x152)](_0x5a53f9);-0x1!==_0x5d8130&&(this[_0x15e83b(0x15d)][_0x15e83b(0x151)](_0x5d8130,0x1),this[_0x15e83b(0x14d)][_0x15e83b(0x165)][_0x15e83b(0x160)](_0x5a53f9));}}function _0x3a79(){const _0x23f3a2=['102426BJkHsm','find','highlightText','362826tTenii','125438HUnGOx','isMatching','2677150JTPUQP','ck-hidden','addMany','bindTemplate','itemsViews','getItem','length','remove','ck-ai-chat-history__section','1015920OiheKY','filter','setTemplate','items','623112jJfiCY','title','div','165dqzuHh','isVisible','ck-ai-chat-history__section-title','_itemsListView','removeItem','set','1870092PNrqVz','splice','indexOf'];_0x3a79=function(){return _0x23f3a2;};return _0x3a79();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47c97c=_0x3b7c;function _0x3c93(){const _0x1e13d0=['7kguomT','5923005sdfKcs','items','3646893CRARFN','ck-ai-chat-history__sections','sections','3345450PeJdvq','filter','addMany','extendTemplate','2623096UpsvsM','1031144qAtztw','1955722vkwwEy','6847288poGVDr'];_0x3c93=function(){return _0x1e13d0;};return _0x3c93();}(function(_0x339318,_0x301e33){const _0xe60884=_0x3b7c,_0x4d4389=_0x339318();while(!![]){try{const _0x591718=parseInt(_0xe60884(0x91))/0x1+-parseInt(_0xe60884(0x92))/0x2+-parseInt(_0xe60884(0x89))/0x3+-parseInt(_0xe60884(0x90))/0x4+parseInt(_0xe60884(0x95))/0x5+parseInt(_0xe60884(0x8c))/0x6*(parseInt(_0xe60884(0x94))/0x7)+parseInt(_0xe60884(0x93))/0x8;if(_0x591718===_0x301e33)break;else _0x4d4389['push'](_0x4d4389['shift']());}catch(_0x503dc0){_0x4d4389['push'](_0x4d4389['shift']());}}}(_0x3c93,0xbe6bd));import{ListView as _0x4a0cdc}from'ckeditor5/src/ui.js';function _0x3b7c(_0x4da24,_0xaf6209){const _0x3c9370=_0x3c93();return _0x3b7c=function(_0x3b7cbc,_0x3ab9f7){_0x3b7cbc=_0x3b7cbc-0x88;let _0x2ca2c=_0x3c9370[_0x3b7cbc];return _0x2ca2c;},_0x3b7c(_0x4da24,_0xaf6209);}export class AIChatHistorySectionListView extends _0x4a0cdc{[_0x47c97c(0x8b)];constructor(_0x22061d,_0x72e418){const _0xe54d36=_0x47c97c;super(_0x22061d),this[_0xe54d36(0x8b)]=_0x72e418,this[_0xe54d36(0x88)][_0xe54d36(0x8e)](this[_0xe54d36(0x8b)]),this[_0xe54d36(0x8f)]({'attributes':{'class':[_0xe54d36(0x8a)]}});}[_0x47c97c(0x8d)](_0x52d787){const _0x116581=_0x47c97c;let _0x434e6b=0x0,_0x2a94d9=0x0;for(const _0x24d240 of this[_0x116581(0x8b)]){const {resultsCount:_0x486a40,totalItemsCount:_0x44bac1}=_0x24d240[_0x116581(0x8d)](_0x52d787);_0x434e6b+=_0x486a40,_0x2a94d9+=_0x44bac1;}return{'resultsCount':_0x434e6b,'totalItemsCount':_0x2a94d9};}}
23
+ function _0x1935(){const _0x1e42ba=['1614172SMLhPJ','items','4854884VBbDiE','98699IrjNFK','34BntyLr','ck-ai-chat-history__sections','108kygqpu','extendTemplate','947530jRvnzq','42JSVaHL','addMany','5fLHxje','58836zzhYsb','7293LgNhNO','filter','1786596wPuZaF','7649784btOycN','sections'];_0x1935=function(){return _0x1e42ba;};return _0x1935();}function _0x879a(_0x3d77dd,_0x4ce421){const _0x1935f7=_0x1935();return _0x879a=function(_0x879a8e,_0x20fad0){_0x879a8e=_0x879a8e-0x66;let _0x2a8c32=_0x1935f7[_0x879a8e];return _0x2a8c32;},_0x879a(_0x3d77dd,_0x4ce421);}const _0x39a667=_0x879a;(function(_0x27613c,_0xc05575){const _0x9b69d1=_0x879a,_0x239195=_0x27613c();while(!![]){try{const _0x5b99df=parseInt(_0x9b69d1(0x75))/0x1*(parseInt(_0x9b69d1(0x76))/0x2)+-parseInt(_0x9b69d1(0x6f))/0x3+parseInt(_0x9b69d1(0x74))/0x4*(parseInt(_0x9b69d1(0x6b))/0x5)+parseInt(_0x9b69d1(0x69))/0x6*(parseInt(_0x9b69d1(0x72))/0x7)+-parseInt(_0x9b69d1(0x70))/0x8+parseInt(_0x9b69d1(0x66))/0x9*(parseInt(_0x9b69d1(0x68))/0xa)+parseInt(_0x9b69d1(0x6d))/0xb*(-parseInt(_0x9b69d1(0x6c))/0xc);if(_0x5b99df===_0xc05575)break;else _0x239195['push'](_0x239195['shift']());}catch(_0x3e4910){_0x239195['push'](_0x239195['shift']());}}}(_0x1935,0xcd2b0));import{ListView as _0x3c4ea0}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3c4ea0{[_0x39a667(0x71)];constructor(_0x289449,_0x3c8aa9){const _0x3c0165=_0x39a667;super(_0x289449),this[_0x3c0165(0x71)]=_0x3c8aa9,this[_0x3c0165(0x73)][_0x3c0165(0x6a)](this[_0x3c0165(0x71)]),this[_0x3c0165(0x67)]({'attributes':{'class':[_0x3c0165(0x77)]}});}[_0x39a667(0x6e)](_0x3e2688){const _0x557b60=_0x39a667;let _0x17c831=0x0,_0x2da9ee=0x0;for(const _0x47881c of this[_0x557b60(0x71)]){const {resultsCount:_0x1134b8,totalItemsCount:_0x329082}=_0x47881c[_0x557b60(0x6e)](_0x3e2688);_0x17c831+=_0x1134b8,_0x2da9ee+=_0x329082;}return{'resultsCount':_0x17c831,'totalItemsCount':_0x2da9ee};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1ecb(_0x42599d,_0x1e18c0){const _0xd31183=_0xd311();return _0x1ecb=function(_0x1ecb60,_0xf7feb3){_0x1ecb60=_0x1ecb60-0x66;let _0x1ca0f2=_0xd31183[_0x1ecb60];return _0x1ca0f2;},_0x1ecb(_0x42599d,_0x1e18c0);}const _0x2b422e=_0x1ecb;(function(_0x2efaf9,_0x5d2aeb){const _0x3b7810=_0x1ecb,_0x25bfde=_0x2efaf9();while(!![]){try{const _0x2d7d91=parseInt(_0x3b7810(0x6b))/0x1*(-parseInt(_0x3b7810(0xa7))/0x2)+-parseInt(_0x3b7810(0x87))/0x3+parseInt(_0x3b7810(0x7e))/0x4*(-parseInt(_0x3b7810(0x86))/0x5)+parseInt(_0x3b7810(0x8f))/0x6+parseInt(_0x3b7810(0x96))/0x7+-parseInt(_0x3b7810(0x89))/0x8+parseInt(_0x3b7810(0x9c))/0x9;if(_0x2d7d91===_0x5d2aeb)break;else _0x25bfde['push'](_0x25bfde['shift']());}catch(_0x4d9c4d){_0x25bfde['push'](_0x25bfde['shift']());}}}(_0xd311,0x3daf5));import{View as _0x4ebe7c,SearchTextView as _0x437336,FormHeaderView as _0xa9b73c,ButtonView as _0x361d00}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2fd3e7,IconCancel as _0x57154a,IconPlus as _0x40fa7a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2449f8}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x35b627}from'./aichathistorylistview.js';function _0xd311(){const _0xbb8428=['change:errorMessage','ck-ai-notification_error','children','_createListItemViews','getItem','searchView','bind','_updateViewVisibility','55117jLNmIy','errorMessage','ck-reset_all','removeItem','locale','some','push','AI_CHAT_HISTORY_HEADING','updateItemTitle','resizeButton','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','title','queryView','ck-ai-chat-history__content','div','_refreshSearch','change:isLoading','isMaximized','_createSearchView','8bjiYnK','search','isSearchViewVisible','isMainErrorViewVisible','isLoading','aiHistory','_createErrorView','element','419015GODIjc','276315YyLOSR','extendTemplate','966104FMYIFX','_createSkeletonView','clear','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-notification_error__dismiss-button','set','2214912nXKkRZ','fire','AI_CHAT_LABEL_NEW_CHAT','_createEmptyStateView','ck-ai-chat-history__empty-message','ck-ai-chat-history','indexOf','285313ZCKeRv','hasItems','skeletonView','splice','itemsViews','openChat','2505069AYLvzr','remove','add','updateTitle','change:hasItems','updateHistoryItemsWithCategories','ck-ai-chat-history__empty','updateLoadingState','sectionsView','isVisible','addMany','2YvHPjZ','render','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','fieldView','ck-hidden','sections','setTemplate','delegate','length','ck-ai-chat__start-conversation','items','ck-ai-header\x20ck-ai-header_history','ck-ai-notification','isEmptyViewVisible','mainErrorView','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateItemLoadingState','ck-rounded-corners','removeHistoryItem','execute','emptyView','bindTemplate'];_0xd311=function(){return _0xbb8428;};return _0xd311();}import{AIChatHistoryListItemView as _0x179a44}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x175bfa}from'../aichathistoryui.js';import{AISkeletonView as _0x5ba013,SKELETON_DEFINITIONS as _0x4c1e86}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x378533}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4a367c}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4ebe7c{[_0x2b422e(0x68)];[_0x2b422e(0xb6)];[_0x2b422e(0x98)];[_0x2b422e(0xbd)];[_0x2b422e(0xa4)];[_0x2b422e(0x74)];constructor(_0x4cbd86,_0x63cb7e){const _0x2d4133=_0x2b422e;super(_0x4cbd86),this[_0x2d4133(0x8e)](_0x2d4133(0x97),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x82),!0x0),this[_0x2d4133(0x8e)](_0x2d4133(0x6c),''),this[_0x2d4133(0x8e)](_0x2d4133(0x7c),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x80),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0xb5),!0x1),this[_0x2d4133(0x8e)](_0x2d4133(0x81),!0x1);const _0x4ba36c=new _0xa9b73c(_0x4cbd86,{'label':_0x4a367c(_0x4cbd86,_0x2d4133(0x72)),'icon':_0x2fd3e7,'class':_0x2d4133(0xb3)});_0x63cb7e&&(this[_0x2d4133(0x74)]=_0x378533(_0x4cbd86,this),_0x4ba36c[_0x2d4133(0xc1)][_0x2d4133(0x9e)](this[_0x2d4133(0x74)])),this[_0x2d4133(0xa4)]=new _0x2449f8(_0x4cbd86,[]),this[_0x2d4133(0xa4)][_0x2d4133(0xaf)](..._0x175bfa)['to'](this),this[_0x2d4133(0xb6)]=this[_0x2d4133(0x84)](),this[_0x2d4133(0x98)]=this[_0x2d4133(0x8a)](),this[_0x2d4133(0xbd)]=this[_0x2d4133(0x92)](),this[_0x2d4133(0x68)]=this[_0x2d4133(0x7d)](),this[_0x2d4133(0xb6)][_0x2d4133(0x88)]({'attributes':{'class':[this[_0x2d4133(0xbe)]['if'](_0x2d4133(0x81),_0x2d4133(0xac),_0x414e10=>!_0x414e10)]}}),this['on'](_0x2d4133(0x7b),()=>this[_0x2d4133(0x6a)]()),this['on'](_0x2d4133(0xa0),()=>this[_0x2d4133(0x6a)]()),this['on'](_0x2d4133(0xbf),()=>this[_0x2d4133(0x6a)]()),this[_0x2d4133(0xae)]({'tag':_0x2d4133(0x79),'attributes':{'class':['ck',_0x2d4133(0x6d),_0x2d4133(0x94),_0x2d4133(0xba)],'dir':_0x2d4133(0xaa)},'children':[_0x4ba36c,{'tag':_0x2d4133(0x79),'attributes':{'class':[_0x2d4133(0x78)]},'children':[this[_0x2d4133(0x98)],this[_0x2d4133(0xb6)],this[_0x2d4133(0xbd)],this[_0x2d4133(0x68)]]}]});}[_0x2b422e(0x6a)](){const _0x14b3cb=_0x2b422e;this[_0x14b3cb(0x80)]=!this[_0x14b3cb(0x82)]&&this[_0x14b3cb(0x97)],this[_0x14b3cb(0xb5)]=!this[_0x14b3cb(0x82)]&&!this[_0x14b3cb(0x97)]&&!this[_0x14b3cb(0x6c)],this[_0x14b3cb(0x81)]=!this[_0x14b3cb(0x80)]&&!!this[_0x14b3cb(0x6c)];}[_0x2b422e(0x7d)](){const _0x7421d9=_0x2b422e,_0xa65d44=new _0x437336(this[_0x7421d9(0x6f)],{'filteredView':this[_0x7421d9(0xa4)],'queryView':{'label':_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0xa9))},'infoView':{'text':{'notFound':{'primary':_0x52062f=>_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0x75),_0x52062f),'secondary':_0x4a367c(this[_0x7421d9(0x6f)],_0x7421d9(0xb8))}}}}),_0x42837c=this[_0x7421d9(0x84)]();return _0x42837c[_0x7421d9(0x88)]({'attributes':{'class':[this[_0x7421d9(0xbe)]['if'](_0x7421d9(0x6c),_0x7421d9(0xac),_0x2e2b18=>!_0x2e2b18)]}}),_0xa65d44['on'](_0x7421d9(0xa8),()=>{const _0x421617=_0x7421d9;_0xa65d44[_0x421617(0xc1)][_0x421617(0x9e)](_0x42837c,0x1);}),_0xa65d44[_0x7421d9(0x88)]({'attributes':{'class':[this[_0x7421d9(0xbe)]['if'](_0x7421d9(0x80),_0x7421d9(0xac),_0x42b115=>!_0x42b115)]}}),_0xa65d44;}[_0x2b422e(0x8a)](){const _0x218243=_0x2b422e,_0x38ee3b=new _0x5ba013(this[_0x218243(0x6f)],_0x4c1e86[_0x218243(0x83)]);return _0x38ee3b[_0x218243(0x88)]({'attributes':{'class':[this[_0x218243(0xbe)]['if'](_0x218243(0x82),_0x218243(0xac),_0x1a9a96=>!_0x1a9a96)]}}),_0x38ee3b;}[_0x2b422e(0x84)](){const _0xd9e527=_0x2b422e,_0x5727dc=new _0x4ebe7c(this[_0xd9e527(0x6f)]),_0x21ab04=new _0x361d00(this[_0xd9e527(0x6f)]);_0x21ab04[_0xd9e527(0x8e)]({'withText':!0x1,'icon':_0x57154a,'class':_0xd9e527(0x8d)}),_0x21ab04[_0xd9e527(0x69)](_0xd9e527(0xa5))['to'](this,_0xd9e527(0x97),_0x31547c=>!!_0x31547c),_0x21ab04['on'](_0xd9e527(0xbc),()=>{const _0x1b19fb=_0xd9e527;this[_0x1b19fb(0x6c)]='';});const _0x81db37=this[_0xd9e527(0xbe)];return _0x5727dc[_0xd9e527(0xae)]({'tag':_0xd9e527(0x79),'attributes':{'class':['ck',_0xd9e527(0xb4),_0xd9e527(0xc0)]},'children':[{'tag':'p','children':[{'text':_0x81db37['to'](_0xd9e527(0x6c))}]},_0x21ab04]}),_0x5727dc;}[_0x2b422e(0x92)](){const _0x44cccd=_0x2b422e,_0x4d5b8f=new _0x361d00(this[_0x44cccd(0x6f)]);_0x4d5b8f[_0x44cccd(0x8e)]({'label':_0x4a367c(this[_0x44cccd(0x6f)],_0x44cccd(0x91)),'withText':!0x0,'icon':_0x40fa7a,'class':_0x44cccd(0xb1)}),_0x4d5b8f['on'](_0x44cccd(0xbc),()=>{const _0x5aa09b=_0x44cccd;this[_0x5aa09b(0x90)](_0x5aa09b(0x9b));});const _0xfb8a65=new _0x4ebe7c(this[_0x44cccd(0x6f)]);return _0xfb8a65[_0x44cccd(0xae)]({'tag':_0x44cccd(0x79),'attributes':{'class':[_0x44cccd(0xa2),this[_0x44cccd(0xbe)]['if'](_0x44cccd(0xb5),_0x44cccd(0xac),_0x40ac31=>!_0x40ac31)]},'children':[{'tag':'p','attributes':{'class':[_0x44cccd(0x93)]},'children':[_0x4a367c(this[_0x44cccd(0x6f)],_0x44cccd(0x8c))]},_0x4d5b8f]}),_0xfb8a65;}[_0x2b422e(0x66)](_0x29dc35,_0x24ed7c){const _0x259658=_0x2b422e,_0x34966e=[];for(const _0x7f26f5 of _0x29dc35){const _0x4dad7b=new _0x179a44(_0x24ed7c,_0x7f26f5);_0x4dad7b[_0x259658(0xaf)](..._0x175bfa)['to'](this),_0x34966e[_0x259658(0x71)](_0x4dad7b);}return _0x34966e;}[_0x2b422e(0xa1)](_0x491d1b){const _0x45e550=_0x2b422e,_0x425cea=this[_0x45e550(0x6f)]||'en',_0x79182a=[];for(const _0x1b8ef6 of _0x491d1b){const _0x33476d=this[_0x45e550(0x66)](_0x1b8ef6[_0x45e550(0xb2)],_0x425cea);_0x79182a[_0x45e550(0x71)](new _0x35b627(_0x425cea,{'title':_0x1b8ef6[_0x45e550(0x76)],'items':_0x33476d}));}this[_0x45e550(0xa4)][_0x45e550(0xad)]=_0x79182a,this[_0x45e550(0xa4)][_0x45e550(0xb2)][_0x45e550(0x8b)](),this[_0x45e550(0xa4)][_0x45e550(0xb2)][_0x45e550(0xa6)](_0x79182a),this[_0x45e550(0x97)]=_0x491d1b[_0x45e550(0x70)](_0x33f734=>_0x33f734[_0x45e550(0xb2)][_0x45e550(0xb0)]>0x0),this[_0x45e550(0x7a)]();}[_0x2b422e(0xbb)](_0x1a0402){const _0x2eea97=_0x2b422e;for(const _0x3b83b7 of this[_0x2eea97(0xa4)][_0x2eea97(0xad)]){const _0x1bb90f=_0x3b83b7[_0x2eea97(0x67)](_0x1a0402);if(_0x1bb90f){if(_0x3b83b7[_0x2eea97(0x6e)](_0x1bb90f),0x0===_0x3b83b7[_0x2eea97(0x9a)][_0x2eea97(0xb0)]){const _0x328142=this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0x95)](_0x3b83b7);-0x1!==_0x328142&&(this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0x99)](_0x328142,0x1),this[_0x2eea97(0xa4)][_0x2eea97(0xb2)][_0x2eea97(0x9d)](_0x3b83b7));}this[_0x2eea97(0x97)]=this[_0x2eea97(0xa4)][_0x2eea97(0xad)][_0x2eea97(0xb0)]>0x0,this[_0x2eea97(0x7a)]();break;}}}[_0x2b422e(0x73)](_0x1e5804,_0x2148fa){const _0x55ca6e=_0x2b422e;for(const _0x350308 of this[_0x55ca6e(0xa4)][_0x55ca6e(0xad)]){const _0x28d45b=_0x350308[_0x55ca6e(0x67)](_0x1e5804);if(_0x28d45b){_0x28d45b[_0x55ca6e(0x9f)](_0x2148fa);break;}}}[_0x2b422e(0xb9)](_0x4d6ebc,_0x43e080,_0xba2395){const _0x9330e3=_0x2b422e;for(const _0x5d7395 of this[_0x9330e3(0xa4)][_0x9330e3(0xad)]){const _0xa7bf0d=_0x5d7395[_0x9330e3(0x67)](_0x4d6ebc);if(_0xa7bf0d){_0xa7bf0d[_0x9330e3(0xa3)](_0x43e080,_0xba2395);break;}}}[_0x2b422e(0x7a)](){const _0x157b3f=_0x2b422e;if(this[_0x157b3f(0x97)]){const _0x5348b0=this[_0x157b3f(0x68)][_0x157b3f(0x77)][_0x157b3f(0xab)]?.[_0x157b3f(0x85)]?.[_0x157b3f(0xb7)]||'';this[_0x157b3f(0x68)][_0x157b3f(0x7f)](_0x5348b0);}}}
23
+ const _0x2be234=_0xb64a;function _0xb64a(_0x51208f,_0x8728cc){const _0x4c8113=_0x4c81();return _0xb64a=function(_0xb64a4b,_0x1a8a65){_0xb64a4b=_0xb64a4b-0xb9;let _0x1097e5=_0x4c8113[_0xb64a4b];return _0x1097e5;},_0xb64a(_0x51208f,_0x8728cc);}(function(_0x560477,_0x370951){const _0x437c25=_0xb64a,_0x2f050f=_0x560477();while(!![]){try{const _0xddbd72=parseInt(_0x437c25(0x10e))/0x1+-parseInt(_0x437c25(0xf6))/0x2+-parseInt(_0x437c25(0x10a))/0x3+parseInt(_0x437c25(0x103))/0x4+parseInt(_0x437c25(0xc4))/0x5+-parseInt(_0x437c25(0xed))/0x6+parseInt(_0x437c25(0xff))/0x7*(parseInt(_0x437c25(0xd3))/0x8);if(_0xddbd72===_0x370951)break;else _0x2f050f['push'](_0x2f050f['shift']());}catch(_0x42b135){_0x2f050f['push'](_0x2f050f['shift']());}}}(_0x4c81,0xbc74a));import{View as _0x514e12,SearchTextView as _0x142b79,FormHeaderView as _0x3a8b08,ButtonView as _0xea74cc}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x812e8,IconCancel as _0x1179e3,IconPlus as _0x365b93}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x7ebdbc}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1e5138}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x18c4af}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x254ffc}from'../aichathistoryui.js';function _0x4c81(){const _0x33eb07=['fieldView','hasItems','element','remove','isLoading','ck-ai-header\x20ck-ai-header_history','8209272PwWpxR','emptyView','ck-ai-notification','errorMessage','value','_createSearchView','search','length','fire','562922NEZXUt','change:hasItems','setTemplate','splice','ltr','bind','locale','updateLoadingState','AI_CHAT_HISTORY_SEARCH_LABEL','74970oIUCBF','queryView','ck-ai-chat-history__empty','ck-reset_all','3528720qDhEmo','ck-ai-notification_error','ck-ai-chat-history__empty-message','sections','removeItem','_createEmptyStateView','aiHistory','593841nelMgs','ck-ai-chat-history','title','ck-rounded-corners','627566Juerey','mainErrorView','_refreshSearch','ck-ai-notification_error__dismiss-button','ck-ai-chat-history__content','_createListItemViews','_updateViewVisibility','updateItemLoadingState','ck-hidden','isSearchViewVisible','push','isVisible','resizeButton','getItem','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','openChat','isMainErrorViewVisible','3139190rnxNkB','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','change:errorMessage','addMany','some','ck-ai-chat__start-conversation','set','sectionsView','items','indexOf','updateTitle','children','_createSkeletonView','execute','360dfLieJ','updateHistoryItemsWithCategories','AI_CHAT_LABEL_NEW_CHAT','removeHistoryItem','AI_CHAT_HISTORY_EMPTY_MESSAGE','clear','isEmptyViewVisible','skeletonView','bindTemplate','AI_CHAT_HISTORY_HEADING','isMaximized','_createErrorView','extendTemplate','itemsViews','div','change:isLoading','updateItemTitle','render','add','delegate'];_0x4c81=function(){return _0x33eb07;};return _0x4c81();}import{AISkeletonView as _0x4e0d75,SKELETON_DEFINITIONS as _0x428719}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5bb977}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2aeadf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x514e12{[_0x2be234(0xc5)];[_0x2be234(0x10f)];[_0x2be234(0xda)];[_0x2be234(0xee)];[_0x2be234(0xcc)];[_0x2be234(0xbf)];constructor(_0x76ed83,_0x3dad1d){const _0x324560=_0x2be234;super(_0x76ed83),this[_0x324560(0xcb)](_0x324560(0xe8),!0x1),this[_0x324560(0xcb)](_0x324560(0xeb),!0x0),this[_0x324560(0xcb)](_0x324560(0xf0),''),this[_0x324560(0xcb)](_0x324560(0xdd),!0x1),this[_0x324560(0xcb)](_0x324560(0xbc),!0x1),this[_0x324560(0xcb)](_0x324560(0xd9),!0x1),this[_0x324560(0xcb)](_0x324560(0xc3),!0x1);const _0x2a2447=new _0x3a8b08(_0x76ed83,{'label':_0x2aeadf(_0x76ed83,_0x324560(0xdc)),'icon':_0x812e8,'class':_0x324560(0xec)});_0x3dad1d&&(this[_0x324560(0xbf)]=_0x5bb977(_0x76ed83,this),_0x2a2447[_0x324560(0xd0)][_0x324560(0xe5)](this[_0x324560(0xbf)])),this[_0x324560(0xcc)]=new _0x7ebdbc(_0x76ed83,[]),this[_0x324560(0xcc)][_0x324560(0xe6)](..._0x254ffc)['to'](this),this[_0x324560(0x10f)]=this[_0x324560(0xde)](),this[_0x324560(0xda)]=this[_0x324560(0xd1)](),this[_0x324560(0xee)]=this[_0x324560(0x108)](),this[_0x324560(0xc5)]=this[_0x324560(0xf2)](),this[_0x324560(0x10f)][_0x324560(0xdf)]({'attributes':{'class':[this[_0x324560(0xdb)]['if'](_0x324560(0xc3),_0x324560(0xbb),_0x565948=>!_0x565948)]}}),this['on'](_0x324560(0xe2),()=>this[_0x324560(0xb9)]()),this['on'](_0x324560(0xf7),()=>this[_0x324560(0xb9)]()),this['on'](_0x324560(0xc7),()=>this[_0x324560(0xb9)]()),this[_0x324560(0xf8)]({'tag':_0x324560(0xe1),'attributes':{'class':['ck',_0x324560(0x102),_0x324560(0x10b),_0x324560(0x10d)],'dir':_0x324560(0xfa)},'children':[_0x2a2447,{'tag':_0x324560(0xe1),'attributes':{'class':[_0x324560(0x112)]},'children':[this[_0x324560(0xda)],this[_0x324560(0x10f)],this[_0x324560(0xee)],this[_0x324560(0xc5)]]}]});}[_0x2be234(0xb9)](){const _0x21fa18=_0x2be234;this[_0x21fa18(0xbc)]=!this[_0x21fa18(0xeb)]&&this[_0x21fa18(0xe8)],this[_0x21fa18(0xd9)]=!this[_0x21fa18(0xeb)]&&!this[_0x21fa18(0xe8)]&&!this[_0x21fa18(0xf0)],this[_0x21fa18(0xc3)]=!this[_0x21fa18(0xbc)]&&!!this[_0x21fa18(0xf0)];}[_0x2be234(0xf2)](){const _0x4e5df8=_0x2be234,_0x2e25b2=new _0x142b79(this[_0x4e5df8(0xfc)],{'filteredView':this[_0x4e5df8(0xcc)],'queryView':{'label':_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xfe))},'infoView':{'text':{'notFound':{'primary':_0x372c60=>_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xc1),_0x372c60),'secondary':_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xc6))}}}}),_0x4509d2=this[_0x4e5df8(0xde)]();return _0x4509d2[_0x4e5df8(0xdf)]({'attributes':{'class':[this[_0x4e5df8(0xdb)]['if'](_0x4e5df8(0xf0),_0x4e5df8(0xbb),_0x184441=>!_0x184441)]}}),_0x2e25b2['on'](_0x4e5df8(0xe4),()=>{const _0x58e721=_0x4e5df8;_0x2e25b2[_0x58e721(0xd0)][_0x58e721(0xe5)](_0x4509d2,0x1);}),_0x2e25b2[_0x4e5df8(0xdf)]({'attributes':{'class':[this[_0x4e5df8(0xdb)]['if'](_0x4e5df8(0xbc),_0x4e5df8(0xbb),_0x4e7483=>!_0x4e7483)]}}),_0x2e25b2;}[_0x2be234(0xd1)](){const _0x19d9da=_0x2be234,_0x50341f=new _0x4e0d75(this[_0x19d9da(0xfc)],_0x428719[_0x19d9da(0x109)]);return _0x50341f[_0x19d9da(0xdf)]({'attributes':{'class':[this[_0x19d9da(0xdb)]['if'](_0x19d9da(0xeb),_0x19d9da(0xbb),_0x41d0ad=>!_0x41d0ad)]}}),_0x50341f;}[_0x2be234(0xde)](){const _0x4287ee=_0x2be234,_0x47b6e7=new _0x514e12(this[_0x4287ee(0xfc)]),_0x3d74d2=new _0xea74cc(this[_0x4287ee(0xfc)]);_0x3d74d2[_0x4287ee(0xcb)]({'withText':!0x1,'icon':_0x1179e3,'class':_0x4287ee(0x111)}),_0x3d74d2[_0x4287ee(0xfb)](_0x4287ee(0xbe))['to'](this,_0x4287ee(0xe8),_0x303dac=>!!_0x303dac),_0x3d74d2['on'](_0x4287ee(0xd2),()=>{const _0x1697f0=_0x4287ee;this[_0x1697f0(0xf0)]='';});const _0x57b668=this[_0x4287ee(0xdb)];return _0x47b6e7[_0x4287ee(0xf8)]({'tag':_0x4287ee(0xe1),'attributes':{'class':['ck',_0x4287ee(0xef),_0x4287ee(0x104)]},'children':[{'tag':'p','children':[{'text':_0x57b668['to'](_0x4287ee(0xf0))}]},_0x3d74d2]}),_0x47b6e7;}[_0x2be234(0x108)](){const _0x405395=_0x2be234,_0x4b2124=new _0xea74cc(this[_0x405395(0xfc)]);_0x4b2124[_0x405395(0xcb)]({'label':_0x2aeadf(this[_0x405395(0xfc)],_0x405395(0xd5)),'withText':!0x0,'icon':_0x365b93,'class':_0x405395(0xca)}),_0x4b2124['on'](_0x405395(0xd2),()=>{const _0x5b37b9=_0x405395;this[_0x5b37b9(0xf5)](_0x5b37b9(0xc2));});const _0x248703=new _0x514e12(this[_0x405395(0xfc)]);return _0x248703[_0x405395(0xf8)]({'tag':_0x405395(0xe1),'attributes':{'class':[_0x405395(0x101),this[_0x405395(0xdb)]['if'](_0x405395(0xd9),_0x405395(0xbb),_0x23c826=>!_0x23c826)]},'children':[{'tag':'p','attributes':{'class':[_0x405395(0x105)]},'children':[_0x2aeadf(this[_0x405395(0xfc)],_0x405395(0xd7))]},_0x4b2124]}),_0x248703;}[_0x2be234(0x113)](_0xd10ebb,_0x2e20e0){const _0x292cca=_0x2be234,_0x224b03=[];for(const _0x56a619 of _0xd10ebb){const _0x1cafb3=new _0x18c4af(_0x2e20e0,_0x56a619);_0x1cafb3[_0x292cca(0xe6)](..._0x254ffc)['to'](this),_0x224b03[_0x292cca(0xbd)](_0x1cafb3);}return _0x224b03;}[_0x2be234(0xd4)](_0x31fecd){const _0x19f1b3=_0x2be234,_0x2b16c7=this[_0x19f1b3(0xfc)]||'en',_0x213cd9=[];for(const _0x4b6c01 of _0x31fecd){const _0x2a6fbf=this[_0x19f1b3(0x113)](_0x4b6c01[_0x19f1b3(0xcd)],_0x2b16c7);_0x213cd9[_0x19f1b3(0xbd)](new _0x1e5138(_0x2b16c7,{'title':_0x4b6c01[_0x19f1b3(0x10c)],'items':_0x2a6fbf}));}this[_0x19f1b3(0xcc)][_0x19f1b3(0x106)]=_0x213cd9,this[_0x19f1b3(0xcc)][_0x19f1b3(0xcd)][_0x19f1b3(0xd8)](),this[_0x19f1b3(0xcc)][_0x19f1b3(0xcd)][_0x19f1b3(0xc8)](_0x213cd9),this[_0x19f1b3(0xe8)]=_0x31fecd[_0x19f1b3(0xc9)](_0x30ae52=>_0x30ae52[_0x19f1b3(0xcd)][_0x19f1b3(0xf4)]>0x0),this[_0x19f1b3(0x110)]();}[_0x2be234(0xd6)](_0x4ca3fa){const _0xb65619=_0x2be234;for(const _0x3e9bb7 of this[_0xb65619(0xcc)][_0xb65619(0x106)]){const _0x404d3d=_0x3e9bb7[_0xb65619(0xc0)](_0x4ca3fa);if(_0x404d3d){if(_0x3e9bb7[_0xb65619(0x107)](_0x404d3d),0x0===_0x3e9bb7[_0xb65619(0xe0)][_0xb65619(0xf4)]){const _0x104cce=this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xce)](_0x3e9bb7);-0x1!==_0x104cce&&(this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xf9)](_0x104cce,0x1),this[_0xb65619(0xcc)][_0xb65619(0xcd)][_0xb65619(0xea)](_0x3e9bb7));}this[_0xb65619(0xe8)]=this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xf4)]>0x0,this[_0xb65619(0x110)]();break;}}}[_0x2be234(0xe3)](_0x302047,_0x14a8a2){const _0x448d6a=_0x2be234;for(const _0x25d2ec of this[_0x448d6a(0xcc)][_0x448d6a(0x106)]){const _0x1e2f3e=_0x25d2ec[_0x448d6a(0xc0)](_0x302047);if(_0x1e2f3e){_0x1e2f3e[_0x448d6a(0xcf)](_0x14a8a2);break;}}}[_0x2be234(0xba)](_0x14768c,_0x2e95fb,_0x35d930){const _0x4536b0=_0x2be234;for(const _0x47ee69 of this[_0x4536b0(0xcc)][_0x4536b0(0x106)]){const _0x305f01=_0x47ee69[_0x4536b0(0xc0)](_0x14768c);if(_0x305f01){_0x305f01[_0x4536b0(0xfd)](_0x2e95fb,_0x35d930);break;}}}[_0x2be234(0x110)](){const _0x2cb241=_0x2be234;if(this[_0x2cb241(0xe8)]){const _0x41b62e=this[_0x2cb241(0xc5)][_0x2cb241(0x100)][_0x2cb241(0xe7)]?.[_0x2cb241(0xe9)]?.[_0x2cb241(0xf1)]||'';this[_0x2cb241(0xc5)][_0x2cb241(0xf3)](_0x41b62e);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3969db=_0x113e;(function(_0x26f434,_0x5db86a){const _0x584339=_0x113e,_0x13434a=_0x26f434();while(!![]){try{const _0x35a251=parseInt(_0x584339(0x206))/0x1+parseInt(_0x584339(0x20d))/0x2*(-parseInt(_0x584339(0x224))/0x3)+-parseInt(_0x584339(0x214))/0x4+-parseInt(_0x584339(0x1df))/0x5*(-parseInt(_0x584339(0x221))/0x6)+-parseInt(_0x584339(0x21f))/0x7+parseInt(_0x584339(0x1e7))/0x8+parseInt(_0x584339(0x21d))/0x9*(parseInt(_0x584339(0x207))/0xa);if(_0x35a251===_0x5db86a)break;else _0x13434a['push'](_0x13434a['shift']());}catch(_0x34f20f){_0x13434a['push'](_0x13434a['shift']());}}}(_0x192b,0xe0a39));import{AIChatUI as _0x27b83a}from'../aichat/aichatui.js';import{ContextPlugin as _0x42eed2}from'ckeditor5/src/core.js';function _0x192b(){const _0xc2e18c=['execute','setWebSearch','_shortcutsView','_aiChatUI','606344DLFnCB','source','config','destroy','has','chat','isPremiumPlugin','language','view','REVIEW','forEach','hasFeedItem','get','_injectShortcuts','setReasoning','ai-chat-shortcuts-review-mode-not-found','isFromHistory','label','setModel','chat-shortcuts','chatModels','isOfficialPlugin','_runChatShortcut','focusPromptInput','AITabs','check','activateTab','_validateShortcuts','plugins','_shortcuts','_runReviewShortcut','1719376WZEYgb','189170GszVcn','reviewMode','length','prompt','AIReviewModeUI','CHAT','972172OSgtqP','element','removeFeedItem','string','_switchTab','AITranslateUI','render','6578608wXesCS','setPromptInputValue','activeConversation','conversationCreated','ai.chat.shortcuts','custom','context','pluginName','type','1395YnTebI','AIChat','8192499CySbQg','ai-chat-shortcuts-ai-tabs-not-found','12828ggbZOU','_removeShortcuts','review','9lbJUzA','runReviewCheck','params','translate','values','includes','ai-chat-shortcuts-translate-not-found','interactionStarted','AIChatShortcuts','addCurrentDocumentToChatContext','_executeShortcut','ai-chat-shortcuts-invalid-config','args','find','sendMessage','init','fire','_runTranslateShortcut','addFeedItemCustomElement','requires','TRANSLATE','AIChatController','getDefault','1090GxdFEg','getModel','locale','listenTo'];_0x192b=function(){return _0xc2e18c;};return _0x192b();}import{AIChatShortcutsView as _0x4e2e0b}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x23529f}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';function _0x113e(_0x50d66a,_0x532c33){const _0x192ba0=_0x192b();return _0x113e=function(_0x113ec1,_0x1442b4){_0x113ec1=_0x113ec1-0x1dd;let _0x3e63d7=_0x192ba0[_0x113ec1];return _0x3e63d7;},_0x113e(_0x50d66a,_0x532c33);}const Ut=_0x3969db(0x1fa);export var AIChatShortcutType;!function(_0x1f7546){const _0x4b6cb8=_0x3969db;_0x1f7546[_0x4b6cb8(0x20c)]=_0x4b6cb8(0x1ec),_0x1f7546[_0x4b6cb8(0x1f0)]=_0x4b6cb8(0x223),_0x1f7546[_0x4b6cb8(0x238)]=_0x4b6cb8(0x227);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x42eed2{[_0x3969db(0x204)];[_0x3969db(0x1e5)];[_0x3969db(0x1e6)];static get[_0x3969db(0x237)](){return[_0x27b83a];}static get[_0x3969db(0x21b)](){const _0xa99c6e=_0x3969db;return _0xa99c6e(0x22c);}static get[_0x3969db(0x1fc)](){return!0x0;}static get[_0x3969db(0x1ed)](){return!0x0;}[_0x3969db(0x233)](){const _0x43f5cf=_0x3969db;this[_0x43f5cf(0x1e6)]=this[_0x43f5cf(0x21a)][_0x43f5cf(0x203)][_0x43f5cf(0x1f3)](_0x27b83a),this[_0x43f5cf(0x204)]=this[_0x43f5cf(0x21a)][_0x43f5cf(0x1e9)][_0x43f5cf(0x1f3)](_0x43f5cf(0x218))??[];const _0x1611b8=this[_0x43f5cf(0x21a)][_0x43f5cf(0x203)][_0x43f5cf(0x1f3)](_0x43f5cf(0x1dd));this[_0x43f5cf(0x204)][_0x43f5cf(0x209)]&&(this[_0x43f5cf(0x202)](),this[_0x43f5cf(0x1e6)]['on'](_0x43f5cf(0x217),()=>{const _0x3e3fd2=_0x43f5cf;_0x1611b8[_0x3e3fd2(0x216)][_0x3e3fd2(0x1f7)]||this[_0x3e3fd2(0x1f4)]();}),this[_0x43f5cf(0x1e2)](_0x1611b8,_0x43f5cf(0x22b),()=>{const _0x3de327=_0x43f5cf;this[_0x3de327(0x222)]();}));}[_0x3969db(0x202)](){const _0x1c0b6f=_0x3969db,_0x3b632a=Object[_0x1c0b6f(0x228)](AIChatShortcutType);this[_0x1c0b6f(0x204)][_0x1c0b6f(0x1f1)](_0x43dbb6=>{const _0x5a2c7e=_0x1c0b6f;let _0x27f8e8=!0x0;if(_0x43dbb6['id']&&_0x43dbb6[_0x5a2c7e(0x1f8)]&&_0x3b632a[_0x5a2c7e(0x229)](_0x43dbb6[_0x5a2c7e(0x21c)])?_0x5a2c7e(0x1ec)===_0x43dbb6[_0x5a2c7e(0x21c)]&&(_0x27f8e8=_0x5a2c7e(0x210)==typeof _0x43dbb6[_0x5a2c7e(0x20a)]):_0x27f8e8=!0x1,!_0x27f8e8)throw new _0x23529f(_0x5a2c7e(0x22f),this[_0x5a2c7e(0x21a)],{'shortcut':_0x43dbb6});});}[_0x3969db(0x1f4)](){const _0xa69b8e=_0x3969db,_0x387936=this[_0xa69b8e(0x21a)][_0xa69b8e(0x203)][_0xa69b8e(0x1f3)](_0x27b83a);this[_0xa69b8e(0x1e5)]=new _0x4e2e0b(this[_0xa69b8e(0x21a)][_0xa69b8e(0x1e1)],this[_0xa69b8e(0x204)]),this[_0xa69b8e(0x1e5)][_0xa69b8e(0x213)](),_0x387936[_0xa69b8e(0x236)](this[_0xa69b8e(0x1e5)][_0xa69b8e(0x20e)],Ut),this[_0xa69b8e(0x1e5)]['on'](_0xa69b8e(0x1e3),_0x394073=>{const _0x293313=_0xa69b8e,_0x43fc1b=_0x394073[_0x293313(0x1e8)]['id'];this[_0x293313(0x22e)](_0x43fc1b);});}[_0x3969db(0x222)](){const _0xb25d23=_0x3969db,_0x53e50f=this[_0xb25d23(0x21a)][_0xb25d23(0x203)][_0xb25d23(0x1f3)](_0x27b83a);_0x53e50f[_0xb25d23(0x1f2)](Ut)&&_0x53e50f[_0xb25d23(0x20f)](Ut),this[_0xb25d23(0x1e5)]?.[_0xb25d23(0x1ea)]();}[_0x3969db(0x22e)](_0x9f1c1){const _0x26d14b=_0x3969db,_0x4f0138=this[_0x26d14b(0x204)][_0x26d14b(0x231)](_0x1727de=>_0x1727de['id']===_0x9f1c1),_0x1d2009=_0x4f0138[_0x26d14b(0x21c)];_0x26d14b(0x1ec)===_0x1d2009?this[_0x26d14b(0x1fd)](_0x4f0138):_0x26d14b(0x223)===_0x1d2009?_0x4f0138[_0x26d14b(0x200)]?this[_0x26d14b(0x205)](_0x4f0138):this[_0x26d14b(0x211)](_0x26d14b(0x208)):_0x26d14b(0x227)===_0x1d2009&&(_0x4f0138[_0x26d14b(0x1ee)]?this[_0x26d14b(0x235)](_0x4f0138):this[_0x26d14b(0x211)](_0x26d14b(0x227)));}[_0x3969db(0x211)](_0x42893f){const _0xc54a61=_0x3969db;if(!this[_0xc54a61(0x21a)][_0xc54a61(0x203)][_0xc54a61(0x1eb)](_0xc54a61(0x1ff)))throw new _0x23529f(_0xc54a61(0x220),this[_0xc54a61(0x21a)],{'tabName':_0x42893f});this[_0xc54a61(0x21a)][_0xc54a61(0x203)][_0xc54a61(0x1f3)](_0xc54a61(0x1ff))[_0xc54a61(0x1ef)][_0xc54a61(0x201)](_0x42893f);}async[_0x3969db(0x1fd)]({prompt:_0x3afb4a,draftMode:_0xe4fd68,useWebSearch:_0x1bbe96=!0x1,useReasoning:_0x36cefa=!0x1,model:_0x164761}){const _0x3396ae=_0x3969db,_0x4528ab=this[_0x3396ae(0x21a)][_0x3396ae(0x203)][_0x3396ae(0x1f3)](_0x3396ae(0x21e)),_0x3afd41=this[_0x3396ae(0x21a)][_0x3396ae(0x203)][_0x3396ae(0x1f3)](_0x3396ae(0x1dd)),_0x544c59=_0x3afd41[_0x3396ae(0x216)];let _0x4a819c;_0x4a819c=_0x164761?await _0x544c59[_0x3396ae(0x1fb)][_0x3396ae(0x1e0)](_0x164761):await _0x544c59[_0x3396ae(0x1fb)][_0x3396ae(0x1de)](),_0x4a819c&&await _0x544c59[_0x3396ae(0x1f9)](_0x4a819c),_0x544c59[_0x3396ae(0x1e4)](_0x1bbe96),_0x544c59[_0x3396ae(0x1f5)](_0x36cefa),_0x3afd41[_0x3396ae(0x22d)](),_0xe4fd68?(this[_0x3396ae(0x1e6)][_0x3396ae(0x215)](_0x3afb4a),this[_0x3396ae(0x1e6)][_0x3396ae(0x1fe)](!0x0)):_0x4528ab[_0x3396ae(0x232)]({'message':_0x3afb4a});}[_0x3969db(0x205)]({check:_0x3c0688,model:_0xc89278,prompt:_0x156dfa,params:_0x418e87}){const _0x2257fe=_0x3969db;if(!this[_0x2257fe(0x21a)][_0x2257fe(0x203)][_0x2257fe(0x1eb)](_0x2257fe(0x20b)))throw new _0x23529f(_0x2257fe(0x1f6),this[_0x2257fe(0x21a)]);this[_0x2257fe(0x211)](_0x2257fe(0x208));const _0x417046={'id':_0x3c0688,'isCustom':_0x2257fe(0x219)===_0x3c0688};_0xc89278&&_0x156dfa&&(_0x417046[_0x2257fe(0x230)]={'model':_0xc89278,'prompt':_0x156dfa}),_0x418e87&&(_0x417046[_0x2257fe(0x226)]=_0x418e87),this[_0x2257fe(0x21a)][_0x2257fe(0x203)][_0x2257fe(0x1f3)](_0x2257fe(0x20b))[_0x2257fe(0x234)](_0x2257fe(0x225),_0x417046);}[_0x3969db(0x235)]({language:_0x1baf8f}){const _0x5bf8e8=_0x3969db;if(!this[_0x5bf8e8(0x21a)][_0x5bf8e8(0x203)][_0x5bf8e8(0x1eb)](_0x5bf8e8(0x212)))throw new _0x23529f(_0x5bf8e8(0x22a),this[_0x5bf8e8(0x21a)]);this[_0x5bf8e8(0x211)](_0x5bf8e8(0x227)),this[_0x5bf8e8(0x21a)][_0x5bf8e8(0x203)][_0x5bf8e8(0x1f3)](_0x5bf8e8(0x212))[_0x5bf8e8(0x234)](_0x5bf8e8(0x225),{'id':_0x1baf8f,'args':{'language':_0x1baf8f}});}}
23
+ const _0x2fe130=_0x2b5c;(function(_0x36f53f,_0x1b6ec4){const _0x596f3d=_0x2b5c,_0x16efb8=_0x36f53f();while(!![]){try{const _0x2570f4=parseInt(_0x596f3d(0x116))/0x1*(-parseInt(_0x596f3d(0xec))/0x2)+-parseInt(_0x596f3d(0x10a))/0x3*(parseInt(_0x596f3d(0xf5))/0x4)+-parseInt(_0x596f3d(0x111))/0x5*(parseInt(_0x596f3d(0xf4))/0x6)+-parseInt(_0x596f3d(0xe3))/0x7+parseInt(_0x596f3d(0xf2))/0x8+parseInt(_0x596f3d(0xee))/0x9+parseInt(_0x596f3d(0xf6))/0xa*(parseInt(_0x596f3d(0xe0))/0xb);if(_0x2570f4===_0x1b6ec4)break;else _0x16efb8['push'](_0x16efb8['shift']());}catch(_0x38a220){_0x16efb8['push'](_0x16efb8['shift']());}}}(_0x2bf5,0xc79a5));import{AIChatUI as _0xb6667a}from'../aichat/aichatui.js';import{ContextPlugin as _0x1eff52}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x989325}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0xf8dd1c}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x2fe130(0x11c);export var AIChatShortcutType;!function(_0x1d8876){const _0x224d4c=_0x2fe130;_0x1d8876[_0x224d4c(0x130)]=_0x224d4c(0x115),_0x1d8876[_0x224d4c(0xe1)]=_0x224d4c(0x112),_0x1d8876[_0x224d4c(0x13b)]=_0x224d4c(0x101);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x1eff52{[_0x2fe130(0x12c)];[_0x2fe130(0x10e)];[_0x2fe130(0x129)];static get[_0x2fe130(0x133)](){return[_0xb6667a];}static get[_0x2fe130(0xff)](){const _0x899629=_0x2fe130;return _0x899629(0x12a);}static get[_0x2fe130(0x120)](){return!0x0;}static get[_0x2fe130(0x134)](){return!0x0;}[_0x2fe130(0xf8)](){const _0x2c5cc1=_0x2fe130;this[_0x2c5cc1(0x129)]=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x138)][_0x2c5cc1(0x105)](_0xb6667a),this[_0x2c5cc1(0x12c)]=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x106)][_0x2c5cc1(0x105)](_0x2c5cc1(0x126))??[];const _0x6d7737=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x138)][_0x2c5cc1(0x105)](_0x2c5cc1(0xfa));this[_0x2c5cc1(0x12c)][_0x2c5cc1(0x12e)]&&(this[_0x2c5cc1(0x11f)](),this[_0x2c5cc1(0x129)]['on'](_0x2c5cc1(0x10b),()=>{const _0x4cf5b9=_0x2c5cc1;_0x6d7737[_0x4cf5b9(0x114)][_0x4cf5b9(0xf7)]||this[_0x4cf5b9(0x135)]();}),this[_0x2c5cc1(0x137)](_0x6d7737,_0x2c5cc1(0xdf),()=>{const _0x1cf5fc=_0x2c5cc1;this[_0x1cf5fc(0xf9)]();}));}[_0x2fe130(0x11f)](){const _0x4be2c6=_0x2fe130,_0x72ae37=Object[_0x4be2c6(0x13a)](AIChatShortcutType);this[_0x4be2c6(0x12c)][_0x4be2c6(0x10f)](_0x1d60b0=>{const _0x49bfd2=_0x4be2c6;let _0x4e4b4f=!0x0;if(_0x1d60b0['id']&&_0x1d60b0[_0x49bfd2(0x11d)]&&_0x72ae37[_0x49bfd2(0xef)](_0x1d60b0[_0x49bfd2(0xe8)])?_0x49bfd2(0x115)===_0x1d60b0[_0x49bfd2(0xe8)]&&(_0x4e4b4f=_0x49bfd2(0x107)==typeof _0x1d60b0[_0x49bfd2(0xe9)]):_0x4e4b4f=!0x1,!_0x4e4b4f)throw new _0xf8dd1c(_0x49bfd2(0x127),this[_0x49bfd2(0x118)],{'shortcut':_0x1d60b0});});}[_0x2fe130(0x135)](){const _0x52233c=_0x2fe130,_0x3445bd=this[_0x52233c(0x118)][_0x52233c(0x138)][_0x52233c(0x105)](_0xb6667a);this[_0x52233c(0x10e)]=new _0x989325(this[_0x52233c(0x118)][_0x52233c(0x104)],this[_0x52233c(0x12c)]),this[_0x52233c(0x10e)][_0x52233c(0x103)](),_0x3445bd[_0x52233c(0x125)](this[_0x52233c(0x10e)][_0x52233c(0xf3)],Ut),this[_0x52233c(0x10e)]['on'](_0x52233c(0x10c),_0x3d99ed=>{const _0x1efd3a=_0x52233c,_0x59ce16=_0x3d99ed[_0x1efd3a(0x121)]['id'];this[_0x1efd3a(0x11a)](_0x59ce16);});}[_0x2fe130(0xf9)](){const _0x2e3c74=_0x2fe130,_0x1c9a6d=this[_0x2e3c74(0x118)][_0x2e3c74(0x138)][_0x2e3c74(0x105)](_0xb6667a);_0x1c9a6d[_0x2e3c74(0xeb)](Ut)&&_0x1c9a6d[_0x2e3c74(0xe5)](Ut),this[_0x2e3c74(0x10e)]?.[_0x2e3c74(0xf1)]();}[_0x2fe130(0x11a)](_0x4284fe){const _0x2a009e=_0x2fe130,_0x1ab921=this[_0x2a009e(0x12c)][_0x2a009e(0x131)](_0x24f27f=>_0x24f27f['id']===_0x4284fe),_0x14fb9d=_0x1ab921[_0x2a009e(0xe8)];_0x2a009e(0x115)===_0x14fb9d?this[_0x2a009e(0x11e)](_0x1ab921):_0x2a009e(0x112)===_0x14fb9d?_0x1ab921[_0x2a009e(0x119)]?this[_0x2a009e(0x124)](_0x1ab921):this[_0x2a009e(0xfd)](_0x2a009e(0x113)):_0x2a009e(0x101)===_0x14fb9d&&(_0x1ab921[_0x2a009e(0x109)]?this[_0x2a009e(0x100)](_0x1ab921):this[_0x2a009e(0xfd)](_0x2a009e(0x101)));}[_0x2fe130(0xfd)](_0x284cb1){const _0xbbac8a=_0x2fe130;if(!this[_0xbbac8a(0x118)][_0xbbac8a(0x138)][_0xbbac8a(0x110)](_0xbbac8a(0x123)))throw new _0xf8dd1c(_0xbbac8a(0x12d),this[_0xbbac8a(0x118)],{'tabName':_0x284cb1});this[_0xbbac8a(0x118)][_0xbbac8a(0x138)][_0xbbac8a(0x105)](_0xbbac8a(0x123))[_0xbbac8a(0x11b)][_0xbbac8a(0x128)](_0x284cb1);}async[_0x2fe130(0x11e)]({prompt:_0x429588,draftMode:_0x5efee4,useWebSearch:_0x397fbd=!0x1,useReasoning:_0x317cb1=!0x1,model:_0x12e7d0}){const _0x1ec382=_0x2fe130,_0x26f7c8=this[_0x1ec382(0x118)][_0x1ec382(0x138)][_0x1ec382(0x105)](_0x1ec382(0xfb)),_0x26f639=this[_0x1ec382(0x118)][_0x1ec382(0x138)][_0x1ec382(0x105)](_0x1ec382(0xfa)),_0x2d8a38=_0x26f639[_0x1ec382(0x114)];let _0x3c2c20;_0x3c2c20=_0x12e7d0?await _0x2d8a38[_0x1ec382(0xfe)][_0x1ec382(0xea)](_0x12e7d0):await _0x2d8a38[_0x1ec382(0xfe)][_0x1ec382(0x117)](),_0x3c2c20&&await _0x2d8a38[_0x1ec382(0xe2)](_0x3c2c20),_0x2d8a38[_0x1ec382(0xfc)](_0x397fbd),_0x2d8a38[_0x1ec382(0xe4)](_0x317cb1),_0x26f639[_0x1ec382(0xe7)](),_0x5efee4?(this[_0x1ec382(0x129)][_0x1ec382(0x10d)](_0x429588),this[_0x1ec382(0x129)][_0x1ec382(0x102)](!0x0)):_0x26f7c8[_0x1ec382(0xed)]({'message':_0x429588});}[_0x2fe130(0x124)]({check:_0x5e63e4,model:_0xa89d7e,prompt:_0x16b942,params:_0x2af6d1}){const _0x440f07=_0x2fe130;if(!this[_0x440f07(0x118)][_0x440f07(0x138)][_0x440f07(0x110)](_0x440f07(0x122)))throw new _0xf8dd1c(_0x440f07(0xe6),this[_0x440f07(0x118)]);this[_0x440f07(0xfd)](_0x440f07(0x113));const _0x732f83={'id':_0x5e63e4,'isCustom':_0x440f07(0x136)===_0x5e63e4};_0xa89d7e&&_0x16b942&&(_0x732f83[_0x440f07(0x132)]={'model':_0xa89d7e,'prompt':_0x16b942}),_0x2af6d1&&(_0x732f83[_0x440f07(0x12b)]=_0x2af6d1),this[_0x440f07(0x118)][_0x440f07(0x138)][_0x440f07(0x105)](_0x440f07(0x122))[_0x440f07(0xf0)](_0x440f07(0x108),_0x732f83);}[_0x2fe130(0x100)]({language:_0x26042f}){const _0x5b29f4=_0x2fe130;if(!this[_0x5b29f4(0x118)][_0x5b29f4(0x138)][_0x5b29f4(0x110)](_0x5b29f4(0x12f)))throw new _0xf8dd1c(_0x5b29f4(0x139),this[_0x5b29f4(0x118)]);this[_0x5b29f4(0xfd)](_0x5b29f4(0x101)),this[_0x5b29f4(0x118)][_0x5b29f4(0x138)][_0x5b29f4(0x105)](_0x5b29f4(0x12f))[_0x5b29f4(0xf0)](_0x5b29f4(0x108),{'id':_0x26042f,'args':{'language':_0x26042f}});}}function _0x2b5c(_0x3176c8,_0x522a91){const _0x2bf580=_0x2bf5();return _0x2b5c=function(_0x2b5c95,_0x348a1b){_0x2b5c95=_0x2b5c95-0xdf;let _0x2adb10=_0x2bf580[_0x2b5c95];return _0x2adb10;},_0x2b5c(_0x3176c8,_0x522a91);}function _0x2bf5(){const _0x4abdfa=['has','330JQZTtV','review','reviewMode','activeConversation','chat','1174981iigDMX','getDefault','context','check','_executeShortcut','view','chat-shortcuts','label','_runChatShortcut','_validateShortcuts','isOfficialPlugin','source','AIReviewModeUI','AITabs','_runReviewShortcut','addFeedItemCustomElement','ai.chat.shortcuts','ai-chat-shortcuts-invalid-config','activateTab','_aiChatUI','AIChatShortcuts','params','_shortcuts','ai-chat-shortcuts-ai-tabs-not-found','length','AITranslateUI','CHAT','find','args','requires','isPremiumPlugin','_injectShortcuts','custom','listenTo','plugins','ai-chat-shortcuts-translate-not-found','values','TRANSLATE','interactionStarted','8657uoodgI','REVIEW','setModel','827673IBZuYR','setReasoning','removeFeedItem','ai-chat-shortcuts-review-mode-not-found','addCurrentDocumentToChatContext','type','prompt','getModel','hasFeedItem','2EqQmzl','sendMessage','3301308MydToO','includes','fire','destroy','11282768FZIMKn','element','89346IQgVGZ','544688DtDiUt','34030Uclqia','isFromHistory','init','_removeShortcuts','AIChatController','AIChat','setWebSearch','_switchTab','chatModels','pluginName','_runTranslateShortcut','translate','focusPromptInput','render','locale','get','config','string','runReviewCheck','language','30ApVbAJ','conversationCreated','execute','setPromptInputValue','_shortcutsView','forEach'];_0x2bf5=function(){return _0x4abdfa;};return _0x2bf5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c58(){const _0x2fbf07=['243369MiQStA','locale','329500kDjeDV','listView','execute','1730DqGsOR','1784043mUKscL','children','3008DZuXqT','add','ck-ai-chat-shortcuts','1SOebMa','8PPPLln','delegate','1027812rTIurd','map','setTemplate','580587pUfyFQ','addMany','div','103270nzSGPA','items'];_0x2c58=function(){return _0x2fbf07;};return _0x2c58();}const _0x1efb22=_0x5cd5;(function(_0x5e83ec,_0x3721be){const _0x2174d2=_0x5cd5,_0x382531=_0x5e83ec();while(!![]){try{const _0x35d35f=parseInt(_0x2174d2(0x13e))/0x1*(parseInt(_0x2174d2(0x131))/0x2)+parseInt(_0x2174d2(0x12e))/0x3+-parseInt(_0x2174d2(0x13b))/0x4*(-parseInt(_0x2174d2(0x138))/0x5)+-parseInt(_0x2174d2(0x141))/0x6+parseInt(_0x2174d2(0x133))/0x7*(-parseInt(_0x2174d2(0x13f))/0x8)+-parseInt(_0x2174d2(0x139))/0x9+parseInt(_0x2174d2(0x135))/0xa;if(_0x35d35f===_0x3721be)break;else _0x382531['push'](_0x382531['shift']());}catch(_0x323611){_0x382531['push'](_0x382531['shift']());}}}(_0x2c58,0x20b7a));import{ListItemView as _0x54990c,ListView as _0x1f6d49,View as _0x5b4fd8}from'ckeditor5/src/ui.js';function _0x5cd5(_0x31d0fa,_0x1d0256){const _0x2c582a=_0x2c58();return _0x5cd5=function(_0x5cd5e9,_0x56fadc){_0x5cd5e9=_0x5cd5e9-0x12c;let _0x4388c5=_0x2c582a[_0x5cd5e9];return _0x4388c5;},_0x5cd5(_0x31d0fa,_0x1d0256);}import{AIChatShortcutView as _0x56c187}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5b4fd8{[_0x1efb22(0x136)];constructor(_0x132618,_0x2f5043){const _0x5b5d55=_0x1efb22;super(_0x132618);const _0x242ddf=_0x2f5043[_0x5b5d55(0x12c)](_0x21cb3c=>{const _0x53fe7=_0x5b5d55,_0x35050a=new _0x54990c(this[_0x53fe7(0x134)]),_0x307a6c=new _0x56c187(this[_0x53fe7(0x134)],_0x21cb3c);return _0x35050a[_0x53fe7(0x13a)][_0x53fe7(0x13c)](_0x307a6c),_0x307a6c[_0x53fe7(0x140)](_0x53fe7(0x137))['to'](this),_0x35050a;});this[_0x5b5d55(0x136)]=new _0x1f6d49(this[_0x5b5d55(0x134)]),this[_0x5b5d55(0x136)][_0x5b5d55(0x132)][_0x5b5d55(0x12f)](_0x242ddf),this[_0x5b5d55(0x12d)]({'tag':_0x5b5d55(0x130),'attributes':{'class':['ck',_0x5b5d55(0x13d)]},'children':[this[_0x5b5d55(0x136)]]});}}
23
+ const _0x213ec4=_0x16da;function _0x38ae(){const _0x17c4f8=['addMany','3533424RwPdjV','ck-ai-chat-shortcuts','delegate','2476320VTqDsw','2126460SIEmSI','items','div','1520RPGxNC','execute','children','30645CweIBR','574523nUAgmg','listView','locale','setTemplate','add','1122459HeoBkZ','2QwflMV','25396JgjtHt','map','5260lvLCFP'];_0x38ae=function(){return _0x17c4f8;};return _0x38ae();}function _0x16da(_0x387f02,_0x3197bf){const _0x38ae1f=_0x38ae();return _0x16da=function(_0x16dab9,_0x38e4e9){_0x16dab9=_0x16dab9-0x1e6;let _0x313abf=_0x38ae1f[_0x16dab9];return _0x313abf;},_0x16da(_0x387f02,_0x3197bf);}(function(_0x369289,_0x4196a3){const _0x225bb7=_0x16da,_0x5d7d5b=_0x369289();while(!![]){try{const _0x4a4b58=parseInt(_0x225bb7(0x1f5))/0x1*(parseInt(_0x225bb7(0x1fb))/0x2)+parseInt(_0x225bb7(0x1fa))/0x3+parseInt(_0x225bb7(0x1ea))/0x4+-parseInt(_0x225bb7(0x1ed))/0x5+parseInt(_0x225bb7(0x1ee))/0x6+-parseInt(_0x225bb7(0x1e6))/0x7*(-parseInt(_0x225bb7(0x1f1))/0x8)+-parseInt(_0x225bb7(0x1f4))/0x9*(parseInt(_0x225bb7(0x1e8))/0xa);if(_0x4a4b58===_0x4196a3)break;else _0x5d7d5b['push'](_0x5d7d5b['shift']());}catch(_0x4aadd2){_0x5d7d5b['push'](_0x5d7d5b['shift']());}}}(_0x38ae,0x8fe9c));import{ListItemView as _0x53b14f,ListView as _0x5eac6e,View as _0x33d8c2}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x38e810}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x33d8c2{[_0x213ec4(0x1f6)];constructor(_0x25ceac,_0x5c177d){const _0x4de01a=_0x213ec4;super(_0x25ceac);const _0x38ce1e=_0x5c177d[_0x4de01a(0x1e7)](_0x4139c4=>{const _0x129ad1=_0x4de01a,_0x27bd6d=new _0x53b14f(this[_0x129ad1(0x1f7)]),_0x2f4cad=new _0x38e810(this[_0x129ad1(0x1f7)],_0x4139c4);return _0x27bd6d[_0x129ad1(0x1f3)][_0x129ad1(0x1f9)](_0x2f4cad),_0x2f4cad[_0x129ad1(0x1ec)](_0x129ad1(0x1f2))['to'](this),_0x27bd6d;});this[_0x4de01a(0x1f6)]=new _0x5eac6e(this[_0x4de01a(0x1f7)]),this[_0x4de01a(0x1f6)][_0x4de01a(0x1ef)][_0x4de01a(0x1e9)](_0x38ce1e),this[_0x4de01a(0x1f8)]({'tag':_0x4de01a(0x1f0),'attributes':{'class':['ck',_0x4de01a(0x1eb)]},'children':[this[_0x4de01a(0x1f6)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2edbe8,_0x4b54a1){const _0x4ec920=_0x1e2a,_0x3d22a8=_0x2edbe8();while(!![]){try{const _0x1534bc=-parseInt(_0x4ec920(0x1fe))/0x1*(parseInt(_0x4ec920(0x200))/0x2)+-parseInt(_0x4ec920(0x1ef))/0x3*(-parseInt(_0x4ec920(0x1f6))/0x4)+-parseInt(_0x4ec920(0x201))/0x5*(-parseInt(_0x4ec920(0x1f3))/0x6)+parseInt(_0x4ec920(0x1f5))/0x7*(-parseInt(_0x4ec920(0x1f9))/0x8)+-parseInt(_0x4ec920(0x1f4))/0x9*(parseInt(_0x4ec920(0x1f7))/0xa)+-parseInt(_0x4ec920(0x1fa))/0xb+parseInt(_0x4ec920(0x1fc))/0xc*(parseInt(_0x4ec920(0x1f0))/0xd);if(_0x1534bc===_0x4b54a1)break;else _0x3d22a8['push'](_0x3d22a8['shift']());}catch(_0x31dc35){_0x3d22a8['push'](_0x3d22a8['shift']());}}}(_0x3c58,0xe34ad));import{ButtonView as _0x584307}from'ckeditor5/src/ui.js';function _0x1e2a(_0x9ca1bc,_0x27d2a6){const _0x3c584a=_0x3c58();return _0x1e2a=function(_0x1e2ad6,_0xdd997f){_0x1e2ad6=_0x1e2ad6-0x1ee;let _0x4cebd2=_0x3c584a[_0x1e2ad6];return _0x4cebd2;},_0x1e2a(_0x9ca1bc,_0x27d2a6);}import{IconAIChat as _0x292aa3,IconAIReview as _0x5dbcd0,IconAITranslate as _0x392b7c}from'@ckeditor/ckeditor5-icons';function _0x3c58(){const _0x693062=['24dXGKny','review','3lQycYA','set','501046lZvvzQ','405045WNWtjH','icon','translate','843QOTSrM','4253717HwrbTV','label','chat','126ZOJtNq','215433wkHpaY','7ELNCrQ','22868MwYzqw','470smipXL','ck-ai-chat-shortcut','1738144DUBrpD','10309409HMCzpH','extendTemplate'];_0x3c58=function(){return _0x693062;};return _0x3c58();}export class AIChatShortcutView extends _0x584307{['id'];constructor(_0x37f79a,_0x2f5c92){const _0x5bd98b=_0x1e2a;super(_0x37f79a);const {id:_0xc58c11,type:_0x493948,icon:_0x2fc4da}=_0x2f5c92;this['id']=_0xc58c11,this[_0x5bd98b(0x1ff)]({'label':_0x2f5c92[_0x5bd98b(0x1f1)],'withText':!0x0,'class':_0x5bd98b(0x1f8)}),this[_0x5bd98b(0x1fb)]({'attributes':{'data-cke-ai-shortcut-id':_0x2f5c92['id']}}),_0x2fc4da?this[_0x5bd98b(0x202)]=_0x2fc4da:_0x5bd98b(0x1f2)===_0x493948?this[_0x5bd98b(0x202)]=_0x292aa3:_0x5bd98b(0x1fd)===_0x493948?this[_0x5bd98b(0x202)]=_0x5dbcd0:_0x5bd98b(0x1ee)===_0x493948&&(this[_0x5bd98b(0x202)]=_0x392b7c);}}
23
+ (function(_0x9da29c,_0x1e95bb){const _0x44690d=_0x5530,_0x465436=_0x9da29c();while(!![]){try{const _0x28577b=parseInt(_0x44690d(0x1c2))/0x1+-parseInt(_0x44690d(0x1bd))/0x2+parseInt(_0x44690d(0x1b9))/0x3*(-parseInt(_0x44690d(0x1be))/0x4)+parseInt(_0x44690d(0x1b7))/0x5+-parseInt(_0x44690d(0x1c0))/0x6+-parseInt(_0x44690d(0x1c3))/0x7+parseInt(_0x44690d(0x1b6))/0x8;if(_0x28577b===_0x1e95bb)break;else _0x465436['push'](_0x465436['shift']());}catch(_0x4dccc6){_0x465436['push'](_0x465436['shift']());}}}(_0x1889,0x7ffa7));function _0x5530(_0x3d7a58,_0x317569){const _0x18894c=_0x1889();return _0x5530=function(_0x553014,_0x2090ea){_0x553014=_0x553014-0x1b6;let _0x11f75f=_0x18894c[_0x553014];return _0x11f75f;},_0x5530(_0x3d7a58,_0x317569);}import{ButtonView as _0x5b31e1}from'ckeditor5/src/ui.js';import{IconAIChat as _0x1a2053,IconAIReview as _0x37faf0,IconAITranslate as _0x1f810d}from'@ckeditor/ckeditor5-icons';function _0x1889(){const _0x55cbee=['13426544tbnTub','5209230pqwwPs','icon','2573973QYgubn','label','translate','chat','1975686LVzixg','4WErFMV','set','1101690nrJWyc','review','12344yrIiGf','1252020QfYJVM','extendTemplate','ck-ai-chat-shortcut'];_0x1889=function(){return _0x55cbee;};return _0x1889();}export class AIChatShortcutView extends _0x5b31e1{['id'];constructor(_0xc7cc78,_0x42aff4){const _0x255a11=_0x5530;super(_0xc7cc78);const {id:_0x1f96bb,type:_0x358ed7,icon:_0xb8bc35}=_0x42aff4;this['id']=_0x1f96bb,this[_0x255a11(0x1bf)]({'label':_0x42aff4[_0x255a11(0x1ba)],'withText':!0x0,'class':_0x255a11(0x1c5)}),this[_0x255a11(0x1c4)]({'attributes':{'data-cke-ai-shortcut-id':_0x42aff4['id']}}),_0xb8bc35?this[_0x255a11(0x1b8)]=_0xb8bc35:_0x255a11(0x1bc)===_0x358ed7?this[_0x255a11(0x1b8)]=_0x1a2053:_0x255a11(0x1c1)===_0x358ed7?this[_0x255a11(0x1b8)]=_0x37faf0:_0x255a11(0x1bb)===_0x358ed7&&(this[_0x255a11(0x1b8)]=_0x1f810d);}}