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

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 _0x4c7ff8=_0x38fa;function _0x11bf(){const _0x8ec6d8=['_handleEditTitle','_aiChatHistoryUi','1032140urMHxv','getItem','_showConversationHistory','plugins','change:activeConversation','itemUpdated','AI_CHAT_UNTITLED_CONVERSATION','activateTab','activeConversation','_setIsMaximized','setConversationPinned','remove','resizedTabs','init','AI_CHAT_HISTORY_ERROR_GENERIC','map','AI_CHAT_HISTORY_CATEGORY_PINNED','updateItems','resizeTabs','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','context','_handleRemove','_handleSelectConversation','rename','handleRemovedConversation','updateItemLoadingState','_generateErrorMessage','_updateHistoryItemsUI','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getFullYear','items','operation','1666896ZyERDP','createdAt','_handleHistoryErrorUI','511308CTsorc','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_setItemLoading','setDate','listenTo','12639WLwvDW','locale','title','isPremiumPlugin','setLoadingSkeleton','updateItemTitle','_aiChatController','removeItem','loadConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','867644lDfdZE','chat','40ipaidk','pinned','error','getDate','218986EaBBMs','itemRemoved','push','resize','openChat','5zdVsnB','pin','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_TODAY','unpin','getGroupId','requires','2279942sYsawU','removeHistoryItem','updateItemPinned','showError','history','length','itemId','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AIChatHistoryController','_aiConnector','getMonth','toLocaleDateString','updates','22slowEH','getItems','pluginName','AI_CHAT_HISTORY_CATEGORY_LATER','loadItems','view','editConversationTitle','_clearItemLoading','itemsLoaded','selectConversation','activateTab:history','get','_handleTogglePin','setIsMaximized','removeConversation','AI_CHAT_HISTORY_UNPIN_ACTION'];_0x11bf=function(){return _0x8ec6d8;};return _0x11bf();}(function(_0x21b399,_0x322cfd){const _0x43811d=_0x38fa,_0x23f3fe=_0x21b399();while(!![]){try{const _0x54c435=-parseInt(_0x43811d(0x1f7))/0x1+-parseInt(_0x43811d(0x1aa))/0x2*(parseInt(_0x43811d(0x1e7))/0x3)+parseInt(_0x43811d(0x1f1))/0x4*(parseInt(_0x43811d(0x1fc))/0x5)+-parseInt(_0x43811d(0x1df))/0x6+parseInt(_0x43811d(0x19d))/0x7+parseInt(_0x43811d(0x1f3))/0x8*(parseInt(_0x43811d(0x1e2))/0x9)+-parseInt(_0x43811d(0x1bc))/0xa;if(_0x54c435===_0x322cfd)break;else _0x23f3fe['push'](_0x23f3fe['shift']());}catch(_0x11e01f){_0x23f3fe['push'](_0x23f3fe['shift']());}}}(_0x11bf,0x2c05e));import{ContextPlugin as _0x16067f}from'ckeditor5/src/core.js';import{AIConnector as _0x42f7b1}from'../aicore/aiconnector.js';import{AIChatController as _0x24f538}from'../aichat/aichatcontroller.js';import{AITabs as _0x1cf6f5}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xa0d749}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x3a1b60}from'./model/aichathistoryconversations.js';import{getTranslation as _0x78c028}from'../aicore/utils/common-translations.js';function _0x38fa(_0x54c180,_0x3af350){const _0x11bfdf=_0x11bf();return _0x38fa=function(_0x38facf,_0x1d5a25){_0x38facf=_0x38facf-0x198;let _0x11e0c7=_0x11bfdf[_0x38facf];return _0x11e0c7;},_0x38fa(_0x54c180,_0x3af350);}export class AIChatHistoryController extends _0x16067f{[_0x4c7ff8(0x1a6)];[_0x4c7ff8(0x1bb)];[_0x4c7ff8(0x1ed)];static get[_0x4c7ff8(0x19c)](){return[_0x42f7b1,_0x24f538,_0xa0d749,_0x1cf6f5];}static get[_0x4c7ff8(0x1ac)](){const _0x5a2fcb=_0x4c7ff8;return _0x5a2fcb(0x1a5);}static get[_0x4c7ff8(0x1d8)](){return!0x0;}static get[_0x4c7ff8(0x1ea)](){return!0x0;}[_0x4c7ff8(0x1c9)](){const _0x37114d=_0x4c7ff8;this[_0x37114d(0x1a6)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x42f7b1),this[_0x37114d(0x1bb)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0xa0d749),this[_0x37114d(0x1ed)]=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x24f538);const _0x175464=this[_0x37114d(0x1d0)][_0x37114d(0x1bf)][_0x37114d(0x1b5)](_0x1cf6f5);try{const _0x2621aa=this[_0x37114d(0x1ed)][_0x37114d(0x19b)]();this[_0x37114d(0x1a1)]=new _0x3a1b60({'connector':this[_0x37114d(0x1a6)],'group':_0x2621aa}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b8),(_0x5a06fd,_0x542cbc)=>{const _0x5da827=_0x37114d;this[_0x5da827(0x1e4)](_0x542cbc['id'],_0x5da827(0x1c7)),this[_0x5da827(0x1d1)](_0x542cbc['id']);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b0),(_0x3ee70b,_0x1555b2)=>{const _0x2b5775=_0x37114d;this[_0x2b5775(0x1e4)](_0x1555b2['id'],_0x2b5775(0x1d3)),this[_0x2b5775(0x1ba)](_0x1555b2['id'],_0x1555b2[_0x2b5775(0x1e9)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1c1),(_0x4638f0,_0x1568b5)=>{const _0x3aea9f=_0x37114d;void 0x0!==_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1e9)]&&this[_0x3aea9f(0x1bb)][_0x3aea9f(0x1ec)](_0x1568b5[_0x3aea9f(0x1a3)],_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1e9)]),void 0x0!==_0x1568b5[_0x3aea9f(0x1a9)][_0x3aea9f(0x1f4)]&&this[_0x3aea9f(0x1d7)](),this[_0x3aea9f(0x1b1)](_0x1568b5[_0x3aea9f(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1f8),(_0x4a7d3a,_0xa96515)=>{const _0x1893de=_0x37114d;this[_0x1893de(0x1ed)][_0x1893de(0x1d4)](_0xa96515[_0x1893de(0x1a3)]),this[_0x1893de(0x1bb)][_0x1893de(0x19e)](_0xa96515[_0x1893de(0x1a3)]),this[_0x1893de(0x1b1)](_0xa96515[_0x1893de(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1b2),()=>{const _0x34e2c8=_0x37114d;this[_0x34e2c8(0x1d7)]();}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1a1)],_0x37114d(0x1f5),(_0x31a64c,_0x12a853)=>{const _0x18cf6b=_0x37114d;this[_0x18cf6b(0x1e1)](_0x12a853[_0x18cf6b(0x1f5)],_0x12a853[_0x18cf6b(0x1de)],_0x12a853[_0x18cf6b(0x1a3)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1b3),(_0x3666a6,_0x2e02b2)=>{const _0x3f71d1=_0x37114d;this[_0x3f71d1(0x1d2)](_0x2e02b2['id']);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1c6),(_0x277fb2,_0x116e26)=>{const _0x269c55=_0x37114d,_0x34aa85=_0x116e26[_0x269c55(0x1f4)]?_0x269c55(0x1fd):_0x269c55(0x19a);this[_0x269c55(0x1e4)](_0x116e26['id'],_0x34aa85),this[_0x269c55(0x1b6)](_0x116e26['id'],_0x116e26[_0x269c55(0x1f4)]);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1fb),()=>{const _0x317a93=_0x37114d;_0x175464[_0x317a93(0x1af)][_0x317a93(0x1c3)](_0x317a93(0x1f2));}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1ed)],_0x37114d(0x1c0),()=>{const _0x566953=_0x37114d;this[_0x566953(0x1d7)]();}),_0x175464[_0x37114d(0x1af)]['on'](_0x37114d(0x1b4),()=>{const _0x5ef2dc=_0x37114d;this[_0x5ef2dc(0x1be)]();}),this[_0x37114d(0x1e6)](_0x175464,_0x37114d(0x1c8),(_0x1cf0d,_0x4d6b37)=>{const _0x4fec6c=_0x37114d;this[_0x4fec6c(0x1c5)](_0x4d6b37);}),this[_0x37114d(0x1e6)](this[_0x37114d(0x1bb)],_0x37114d(0x1ce),()=>{const _0x20a442=_0x37114d;_0x175464[_0x20a442(0x1fa)]();});}catch(_0x31436b){this[_0x37114d(0x1e1)](_0x31436b,_0x37114d(0x1c9));}}async[_0x4c7ff8(0x1ba)](_0x11e30c,_0x1aca74){const _0x3c93bb=_0x4c7ff8;await this[_0x3c93bb(0x1a1)][_0x3c93bb(0x1ec)](_0x11e30c,_0x1aca74);}async[_0x4c7ff8(0x1b6)](_0x192083,_0x4d4f5f){const _0x48d07d=_0x4c7ff8;await this[_0x48d07d(0x1a1)][_0x48d07d(0x19f)](_0x192083,_0x4d4f5f);}async[_0x4c7ff8(0x1d1)](_0x19799c){const _0x3400fc=_0x4c7ff8;await this[_0x3400fc(0x1a1)][_0x3400fc(0x1ee)](_0x19799c);}async[_0x4c7ff8(0x1d2)](_0x32e247){const _0x4fd4a5=_0x4c7ff8;await this[_0x4fd4a5(0x1ed)][_0x4fd4a5(0x1ef)](_0x32e247);}async[_0x4c7ff8(0x1be)](){const _0x1058c5=_0x4c7ff8;this[_0x1058c5(0x1bb)][_0x1058c5(0x1a0)](''),this[_0x1058c5(0x1bb)][_0x1058c5(0x1eb)](!0x0),await this[_0x1058c5(0x1a1)][_0x1058c5(0x1c9)](),this[_0x1058c5(0x1bb)][_0x1058c5(0x1eb)](!0x1);}[_0x4c7ff8(0x1d7)](){const _0x5cc8dc=_0x4c7ff8,_0x904062=this[_0x5cc8dc(0x1ed)][_0x5cc8dc(0x1c4)]?.['id'],_0x35d85d=this[_0x5cc8dc(0x198)]()[_0x5cc8dc(0x1cb)](_0x29b083=>({'title':_0x29b083[_0x5cc8dc(0x1e9)],'items':_0x29b083[_0x5cc8dc(0x1dd)][_0x5cc8dc(0x1cb)](_0x4595e3=>({'id':_0x4595e3['id'],'title':_0x4595e3[_0x5cc8dc(0x1e9)]||_0x78c028(this[_0x5cc8dc(0x1d0)][_0x5cc8dc(0x1e8)],_0x5cc8dc(0x1c2)),'createdAt':new Date(_0x4595e3[_0x5cc8dc(0x1e0)])[_0x5cc8dc(0x1a8)](),'active':_0x4595e3['id']===_0x904062,'pinned':_0x4595e3[_0x5cc8dc(0x1f4)]}))}));this[_0x5cc8dc(0x1bb)][_0x5cc8dc(0x1cd)](_0x35d85d);}[_0x4c7ff8(0x1e4)](_0x244d0f,_0x3f3be0){const _0x180a5e=_0x4c7ff8;this[_0x180a5e(0x1bb)][_0x180a5e(0x1d5)](_0x244d0f,_0x3f3be0,!0x0);}[_0x4c7ff8(0x1b1)](_0xfdda60){const _0x16051a=_0x4c7ff8;this[_0x16051a(0x1bb)][_0x16051a(0x1d5)](_0xfdda60,null,!0x1);}[_0x4c7ff8(0x1e1)](_0x15a645,_0x5c4e3f,_0x216968){const _0x4c8d90=_0x4c7ff8,_0x2d7599=this[_0x4c8d90(0x1d6)](_0x5c4e3f,_0x216968);this[_0x4c8d90(0x1bb)][_0x4c8d90(0x1a0)](_0x2d7599),_0x216968&&this[_0x4c8d90(0x1b1)](_0x216968),this[_0x4c8d90(0x1bb)][_0x4c8d90(0x1eb)](!0x1);}[_0x4c7ff8(0x1d6)](_0x6bcd0e,_0x32de4f){const _0x4e7101=_0x4c7ff8,_0x138291=_0x32de4f?this[_0x4e7101(0x1a1)][_0x4e7101(0x1bd)](_0x32de4f):null,_0x18af12=_0x138291?.[_0x4e7101(0x1e9)]||_0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1c2));switch(_0x6bcd0e){case _0x4e7101(0x1ec):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1d9),_0x18af12);case _0x4e7101(0x19f):{const _0xfef68b=_0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x138291?.[_0x4e7101(0x1f4)]?_0x4e7101(0x1b9):_0x4e7101(0x1da));return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1a4),[_0xfef68b,_0x18af12]);}case _0x4e7101(0x1ee):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1db),_0x18af12);case _0x4e7101(0x1c9):case _0x4e7101(0x1ae):return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1cf));default:return _0x78c028(this[_0x4e7101(0x1d0)][_0x4e7101(0x1e8)],_0x4e7101(0x1ca));}}[_0x4c7ff8(0x198)](){const _0x8814c3=_0x4c7ff8,_0x280b2f=new Date(),_0x535028=new Date(_0x280b2f[_0x8814c3(0x1dc)](),_0x280b2f[_0x8814c3(0x1a7)](),_0x280b2f[_0x8814c3(0x1f6)]()),_0x57ec02=new Date(_0x535028);_0x57ec02[_0x8814c3(0x1e5)](_0x57ec02[_0x8814c3(0x1f6)]()-0x1);const _0x3f82ba=new Date(_0x535028);_0x3f82ba[_0x8814c3(0x1e5)](_0x3f82ba[_0x8814c3(0x1f6)]()-0xe);const _0x11ee5b=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'pinned':!0x0}),_0x85d9d3=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x535028,'to':_0x535028}),_0x46bebd=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x57ec02,'to':_0x57ec02}),_0x192005=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'from':_0x3f82ba,'to':_0x57ec02}),_0x491b4f=this[_0x8814c3(0x1a1)][_0x8814c3(0x1ab)]({'to':_0x3f82ba}),_0x1390fc=[];return _0x11ee5b[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1cc)),'items':_0x11ee5b}),_0x85d9d3[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x199)),'items':_0x85d9d3}),_0x46bebd[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1f0)),'items':_0x46bebd}),_0x192005[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1e3)),'items':_0x192005}),_0x491b4f[_0x8814c3(0x1a2)]>0x0&&_0x1390fc[_0x8814c3(0x1f9)]({'title':_0x78c028(this[_0x8814c3(0x1d0)][_0x8814c3(0x1e8)],_0x8814c3(0x1ad)),'items':_0x491b4f}),_0x1390fc;}[_0x4c7ff8(0x1c5)](_0x580706){const _0x3f78cb=_0x4c7ff8;this[_0x3f78cb(0x1bb)][_0x3f78cb(0x1b7)](_0x580706);}}
23
+ const _0x53d90e=_0x503c;(function(_0x71f2ca,_0x1a716a){const _0x5bab4e=_0x503c,_0x141fc1=_0x71f2ca();while(!![]){try{const _0x3d8fa5=parseInt(_0x5bab4e(0x237))/0x1*(parseInt(_0x5bab4e(0x1f3))/0x2)+parseInt(_0x5bab4e(0x230))/0x3+parseInt(_0x5bab4e(0x218))/0x4+parseInt(_0x5bab4e(0x20f))/0x5*(parseInt(_0x5bab4e(0x1d6))/0x6)+-parseInt(_0x5bab4e(0x231))/0x7+parseInt(_0x5bab4e(0x1dd))/0x8*(-parseInt(_0x5bab4e(0x1ef))/0x9)+parseInt(_0x5bab4e(0x1d4))/0xa*(parseInt(_0x5bab4e(0x22e))/0xb);if(_0x3d8fa5===_0x1a716a)break;else _0x141fc1['push'](_0x141fc1['shift']());}catch(_0x5ee638){_0x141fc1['push'](_0x141fc1['shift']());}}}(_0x3c3b,0xe386d));import{ContextPlugin as _0x14ebd8}from'ckeditor5/src/core.js';import{AIConnector as _0x1cf498}from'../aicore/aiconnector.js';import{AIChatController as _0x2ab7fd}from'../aichat/aichatcontroller.js';import{AITabs as _0x317f0e}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xe8ad23}from'./aichathistoryui.js';function _0x503c(_0x2fccd8,_0x36f562){const _0x3c3b53=_0x3c3b();return _0x503c=function(_0x503c47,_0x565676){_0x503c47=_0x503c47-0x1d1;let _0xf1bab2=_0x3c3b53[_0x503c47];return _0xf1bab2;},_0x503c(_0x2fccd8,_0x36f562);}import{AIChatHistoryConversations as _0x3e5d24}from'./model/aichathistoryconversations.js';function _0x3c3b(){const _0x44176=['init','error','operation','getItems','removeHistoryItem','125WIKVrQ','getMonth','AI_CHAT_HISTORY_CATEGORY_TODAY','listenTo','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','length','openChat','_handleTogglePin','updateItemTitle','1108736jlCNJy','pin','_setIsMaximized','updateItemPinned','AI_CHAT_HISTORY_UNPIN_ACTION','_aiChatController','remove','_handleHistoryErrorUI','getGroupId','AI_CHAT_UNTITLED_CONVERSATION','plugins','selectConversation','getItem','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','updateItemLoadingState','getDate','loadConversation','itemRemoved','context','pluginName','AI_CHAT_HISTORY_CATEGORY_PINNED','_handleRemove','22qGSBIq','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','366912YQerkr','9756922KlAXHI','history','_showConversationHistory','setIsMaximized','items','activeConversation','464799KbiEMg','_handleEditTitle','_setItemLoading','activateTab','3866330XZmNOB','resize','68550lhswYZ','change:activeConversation','handleRemovedConversation','setDate','push','setLoadingSkeleton','pinned','16HQSnrb','_handleSelectConversation','_aiConnector','view','isOfficialPlugin','AIChatHistoryController','activateTab:history','editConversationTitle','createdAt','resizeTabs','isPremiumPlugin','itemId','AI_CHAT_HISTORY_CATEGORY_LATER','itemUpdated','loadItems','updateItems','unpin','AI_CHAT_HISTORY_ERROR_GENERIC','279819FcIqks','itemsLoaded','rename','setConversationPinned','4LkWZAz','chat','title','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','removeConversation','updates','toLocaleDateString','AI_CHAT_HISTORY_PIN_ACTION','_getCategorizedItems','_aiChatHistoryUi','showError','resizedTabs','getFullYear','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','locale','requires','_updateHistoryItemsUI','_generateErrorMessage','get','map','removeItem','_clearItemLoading','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS'];_0x3c3b=function(){return _0x44176;};return _0x3c3b();}import{getTranslation as _0x122791}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x14ebd8{[_0x53d90e(0x1df)];[_0x53d90e(0x1fc)];[_0x53d90e(0x21d)];static get[_0x53d90e(0x202)](){return[_0x1cf498,_0x2ab7fd,_0xe8ad23,_0x317f0e];}static get[_0x53d90e(0x22b)](){const _0x5188e9=_0x53d90e;return _0x5188e9(0x1e2);}static get[_0x53d90e(0x1e1)](){return!0x0;}static get[_0x53d90e(0x1e7)](){return!0x0;}[_0x53d90e(0x20a)](){const _0x2f724b=_0x53d90e;this[_0x2f724b(0x1df)]=this[_0x2f724b(0x22a)][_0x2f724b(0x222)][_0x2f724b(0x205)](_0x1cf498),this[_0x2f724b(0x1fc)]=this[_0x2f724b(0x22a)][_0x2f724b(0x222)][_0x2f724b(0x205)](_0xe8ad23),this[_0x2f724b(0x21d)]=this[_0x2f724b(0x22a)][_0x2f724b(0x222)][_0x2f724b(0x205)](_0x2ab7fd);const _0x4b1e69=this[_0x2f724b(0x22a)][_0x2f724b(0x222)][_0x2f724b(0x205)](_0x317f0e);try{const _0x3a0535=this[_0x2f724b(0x21d)][_0x2f724b(0x220)]();this[_0x2f724b(0x232)]=new _0x3e5d24({'connector':this[_0x2f724b(0x1df)],'group':_0x3a0535}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x1f7),(_0xf955ea,_0x10d957)=>{const _0x4c401d=_0x2f724b;this[_0x4c401d(0x1d2)](_0x10d957['id'],_0x4c401d(0x21e)),this[_0x4c401d(0x22d)](_0x10d957['id']);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x1e4),(_0x153bea,_0x84e2ba)=>{const _0x1a1f74=_0x2f724b;this[_0x1a1f74(0x1d2)](_0x84e2ba['id'],_0x1a1f74(0x1f1)),this[_0x1a1f74(0x1d1)](_0x84e2ba['id'],_0x84e2ba[_0x1a1f74(0x1f5)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x232)],_0x2f724b(0x1ea),(_0x475f3a,_0x537d3f)=>{const _0x185928=_0x2f724b;void 0x0!==_0x537d3f[_0x185928(0x1f8)][_0x185928(0x1f5)]&&this[_0x185928(0x1fc)][_0x185928(0x217)](_0x537d3f[_0x185928(0x1e8)],_0x537d3f[_0x185928(0x1f8)][_0x185928(0x1f5)]),void 0x0!==_0x537d3f[_0x185928(0x1f8)][_0x185928(0x1dc)]&&this[_0x185928(0x203)](),this[_0x185928(0x208)](_0x537d3f[_0x185928(0x1e8)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x232)],_0x2f724b(0x229),(_0x37c98e,_0x1093dd)=>{const _0x13bf97=_0x2f724b;this[_0x13bf97(0x21d)][_0x13bf97(0x1d8)](_0x1093dd[_0x13bf97(0x1e8)]),this[_0x13bf97(0x1fc)][_0x13bf97(0x20e)](_0x1093dd[_0x13bf97(0x1e8)]),this[_0x13bf97(0x208)](_0x1093dd[_0x13bf97(0x1e8)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x232)],_0x2f724b(0x1f0),()=>{const _0x119c14=_0x2f724b;this[_0x119c14(0x203)]();}),this[_0x2f724b(0x212)](this[_0x2f724b(0x232)],_0x2f724b(0x20b),(_0x14fd3e,_0x2741bb)=>{const _0x2cfddb=_0x2f724b;this[_0x2cfddb(0x21f)](_0x2741bb[_0x2cfddb(0x20b)],_0x2741bb[_0x2cfddb(0x20c)],_0x2741bb[_0x2cfddb(0x1e8)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x223),(_0x2df5e1,_0x41105e)=>{const _0x3e88e2=_0x2f724b;this[_0x3e88e2(0x1de)](_0x41105e['id']);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x1f2),(_0x431b9e,_0x4bac02)=>{const _0x38371d=_0x2f724b,_0x2d64ee=_0x4bac02[_0x38371d(0x1dc)]?_0x38371d(0x219):_0x38371d(0x1ed);this[_0x38371d(0x1d2)](_0x4bac02['id'],_0x2d64ee),this[_0x38371d(0x216)](_0x4bac02['id'],_0x4bac02[_0x38371d(0x1dc)]);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x215),()=>{const _0x3502f3=_0x2f724b;_0x4b1e69[_0x3502f3(0x1e0)][_0x3502f3(0x1d3)](_0x3502f3(0x1f4));}),this[_0x2f724b(0x212)](this[_0x2f724b(0x21d)],_0x2f724b(0x1d7),()=>{const _0x300674=_0x2f724b;this[_0x300674(0x203)]();}),_0x4b1e69[_0x2f724b(0x1e0)]['on'](_0x2f724b(0x1e3),()=>{const _0x4e8f05=_0x2f724b;this[_0x4e8f05(0x233)]();}),this[_0x2f724b(0x212)](_0x4b1e69,_0x2f724b(0x1fe),(_0x5cf1d2,_0x18ff98)=>{const _0x28abcf=_0x2f724b;this[_0x28abcf(0x21a)](_0x18ff98);}),this[_0x2f724b(0x212)](this[_0x2f724b(0x1fc)],_0x2f724b(0x1e6),()=>{const _0x10cf1a=_0x2f724b;_0x4b1e69[_0x10cf1a(0x1d5)]();});}catch(_0x51309c){this[_0x2f724b(0x21f)](_0x51309c,_0x2f724b(0x20a));}}async[_0x53d90e(0x1d1)](_0x3d84dd,_0x96f5a3){const _0x419a28=_0x53d90e;await this[_0x419a28(0x232)][_0x419a28(0x217)](_0x3d84dd,_0x96f5a3);}async[_0x53d90e(0x216)](_0x2b22f5,_0x588c7a){const _0x22fe0e=_0x53d90e;await this[_0x22fe0e(0x232)][_0x22fe0e(0x21b)](_0x2b22f5,_0x588c7a);}async[_0x53d90e(0x22d)](_0x18a652){const _0x25ae69=_0x53d90e;await this[_0x25ae69(0x232)][_0x25ae69(0x207)](_0x18a652);}async[_0x53d90e(0x1de)](_0x4964d0){const _0x5eebc7=_0x53d90e;await this[_0x5eebc7(0x21d)][_0x5eebc7(0x228)](_0x4964d0);}async[_0x53d90e(0x233)](){const _0x38cf32=_0x53d90e;this[_0x38cf32(0x1fc)][_0x38cf32(0x1fd)](''),this[_0x38cf32(0x1fc)][_0x38cf32(0x1db)](!0x0),await this[_0x38cf32(0x232)][_0x38cf32(0x20a)](),this[_0x38cf32(0x1fc)][_0x38cf32(0x1db)](!0x1);}[_0x53d90e(0x203)](){const _0x51c0c2=_0x53d90e,_0x2f6310=this[_0x51c0c2(0x21d)][_0x51c0c2(0x236)]?.['id'],_0x119ea4=this[_0x51c0c2(0x1fb)]()[_0x51c0c2(0x206)](_0x44dd6d=>({'title':_0x44dd6d[_0x51c0c2(0x1f5)],'items':_0x44dd6d[_0x51c0c2(0x235)][_0x51c0c2(0x206)](_0x469d34=>({'id':_0x469d34['id'],'title':_0x469d34[_0x51c0c2(0x1f5)]||_0x122791(this[_0x51c0c2(0x22a)][_0x51c0c2(0x201)],_0x51c0c2(0x221)),'createdAt':new Date(_0x469d34[_0x51c0c2(0x1e5)])[_0x51c0c2(0x1f9)](),'active':_0x469d34['id']===_0x2f6310,'pinned':_0x469d34[_0x51c0c2(0x1dc)]}))}));this[_0x51c0c2(0x1fc)][_0x51c0c2(0x1ec)](_0x119ea4);}[_0x53d90e(0x1d2)](_0x2a48e1,_0x122122){const _0x586546=_0x53d90e;this[_0x586546(0x1fc)][_0x586546(0x226)](_0x2a48e1,_0x122122,!0x0);}[_0x53d90e(0x208)](_0x16d36e){const _0x161ed0=_0x53d90e;this[_0x161ed0(0x1fc)][_0x161ed0(0x226)](_0x16d36e,null,!0x1);}[_0x53d90e(0x21f)](_0xd7be83,_0x3dcba1,_0x350de7){const _0x157742=_0x53d90e,_0x3ae405=this[_0x157742(0x204)](_0x3dcba1,_0x350de7);this[_0x157742(0x1fc)][_0x157742(0x1fd)](_0x3ae405),_0x350de7&&this[_0x157742(0x208)](_0x350de7),this[_0x157742(0x1fc)][_0x157742(0x1db)](!0x1);}[_0x53d90e(0x204)](_0x383234,_0x2b8d3c){const _0x4b5c23=_0x53d90e,_0xb23179=_0x2b8d3c?this[_0x4b5c23(0x232)][_0x4b5c23(0x224)](_0x2b8d3c):null,_0x4f66ca=_0xb23179?.[_0x4b5c23(0x1f5)]||_0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x221));switch(_0x383234){case _0x4b5c23(0x217):return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x213),_0x4f66ca);case _0x4b5c23(0x21b):{const _0x2b7d0f=_0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0xb23179?.[_0x4b5c23(0x1dc)]?_0x4b5c23(0x21c):_0x4b5c23(0x1fa));return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x225),[_0x2b7d0f,_0x4f66ca]);}case _0x4b5c23(0x207):return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x22f),_0x4f66ca);case _0x4b5c23(0x20a):case _0x4b5c23(0x1eb):return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x209));default:return _0x122791(this[_0x4b5c23(0x22a)][_0x4b5c23(0x201)],_0x4b5c23(0x1ee));}}[_0x53d90e(0x1fb)](){const _0x4e55a6=_0x53d90e,_0x1731e3=new Date(),_0x38eb1c=new Date(_0x1731e3[_0x4e55a6(0x1ff)](),_0x1731e3[_0x4e55a6(0x210)](),_0x1731e3[_0x4e55a6(0x227)]()),_0x5931a9=new Date(_0x38eb1c);_0x5931a9[_0x4e55a6(0x1d9)](_0x5931a9[_0x4e55a6(0x227)]()-0x1);const _0x190d99=new Date(_0x38eb1c);_0x190d99[_0x4e55a6(0x1d9)](_0x190d99[_0x4e55a6(0x227)]()-0xe);const _0x5f549f=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'pinned':!0x0}),_0x300c6f=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'from':_0x38eb1c,'to':_0x38eb1c}),_0x1cbbb6=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'from':_0x5931a9,'to':_0x5931a9}),_0x2b0208=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'from':_0x190d99,'to':_0x5931a9}),_0x1b597b=this[_0x4e55a6(0x232)][_0x4e55a6(0x20d)]({'to':_0x190d99}),_0x3f81fb=[];return _0x5f549f[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x22c)),'items':_0x5f549f}),_0x300c6f[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x211)),'items':_0x300c6f}),_0x1cbbb6[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x1f6)),'items':_0x1cbbb6}),_0x2b0208[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x200)),'items':_0x2b0208}),_0x1b597b[_0x4e55a6(0x214)]>0x0&&_0x3f81fb[_0x4e55a6(0x1da)]({'title':_0x122791(this[_0x4e55a6(0x22a)][_0x4e55a6(0x201)],_0x4e55a6(0x1e9)),'items':_0x1b597b}),_0x3f81fb;}[_0x53d90e(0x21a)](_0x590884){const _0x200d3f=_0x53d90e;this[_0x200d3f(0x1fc)][_0x200d3f(0x234)](_0x590884);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f2435=_0x36ea;(function(_0x12b1b0,_0x5aaf2c){const _0x3b88e1=_0x36ea,_0x284d8c=_0x12b1b0();while(!![]){try{const _0x35f28a=parseInt(_0x3b88e1(0x142))/0x1*(-parseInt(_0x3b88e1(0x13c))/0x2)+-parseInt(_0x3b88e1(0x12e))/0x3*(parseInt(_0x3b88e1(0x154))/0x4)+parseInt(_0x3b88e1(0x152))/0x5*(-parseInt(_0x3b88e1(0x143))/0x6)+-parseInt(_0x3b88e1(0x156))/0x7+parseInt(_0x3b88e1(0x13e))/0x8+-parseInt(_0x3b88e1(0x136))/0x9*(-parseInt(_0x3b88e1(0x155))/0xa)+parseInt(_0x3b88e1(0x14f))/0xb*(parseInt(_0x3b88e1(0x139))/0xc);if(_0x35f28a===_0x5aaf2c)break;else _0x284d8c['push'](_0x284d8c['shift']());}catch(_0x1a328c){_0x284d8c['push'](_0x284d8c['shift']());}}}(_0x17c8,0x9e6b9));import{ContextPlugin as _0x23693c}from'ckeditor5/src/core.js';import{AITabs as _0x5eeb29}from'../aitabs/aitabs.js';function _0x36ea(_0x53eda2,_0x1d8409){const _0x17c89b=_0x17c8();return _0x36ea=function(_0x36ea04,_0x490470){_0x36ea04=_0x36ea04-0x127;let _0x626d85=_0x17c89b[_0x36ea04];return _0x626d85;},_0x36ea(_0x53eda2,_0x1d8409);}import{IconAIHistory as _0x3556e8}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x201cba}from'./ui/aichathistoryview.js';function _0x17c8(){const _0x2ad4c6=['1869224vwGlWe','_historyView','editConversationTitle','plugins','updateItems','isLoading','isMaximized','isPremiumPlugin','91656zfGpgy','showResizeButton','AITabs','openChat','removeHistoryItem','showError','pluginName','updateItemTitle','18bmhxqW','addTab','selectConversation','798468BkWDOs','setLoadingSkeleton','AIChatHistoryUI','6OQTwWl','get','4404064oceeAS','setConversationPinned','delegate','updateItemLoadingState','72273ouQWbt','1434vHGTPq','locale','setIsMaximized','isOfficialPlugin','updateHistoryItemsWithCategories','requires','AI_CHAT_HISTORY_HEADING','context','history','resizeTabs','removeConversation','errorMessage','11LnvYYQ','view','hideError','95zejFIz','showConversationHistory','8bQwCwE','2906690edImNX'];_0x17c8=function(){return _0x2ad4c6;};return _0x17c8();}import{getTranslation as _0x17a017}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3f2435(0x153),_0x3f2435(0x14d),_0x3f2435(0x128),_0x3f2435(0x13f),_0x3f2435(0x138),_0x3f2435(0x131),_0x3f2435(0x14c)];export class AIChatHistoryUI extends _0x23693c{static get[_0x3f2435(0x148)](){return[_0x5eeb29];}[_0x3f2435(0x127)];static get[_0x3f2435(0x134)](){const _0x2724ca=_0x3f2435;return _0x2724ca(0x13b);}static get[_0x3f2435(0x146)](){return!0x0;}static get[_0x3f2435(0x12d)](){return!0x0;}constructor(_0x205f2f){const _0x61c065=_0x3f2435;super(_0x205f2f);const _0x3fb4f2=this[_0x61c065(0x14a)][_0x61c065(0x129)][_0x61c065(0x13d)](_0x61c065(0x130));this[_0x61c065(0x127)]=new _0x201cba(this[_0x61c065(0x14a)][_0x61c065(0x144)],_0x3fb4f2[_0x61c065(0x12f)]),this[_0x61c065(0x127)][_0x61c065(0x140)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x3fb4f2[_0x61c065(0x150)][_0x61c065(0x137)]({'id':_0x61c065(0x14b),'buttonLabel':_0x17a017(this[_0x61c065(0x14a)][_0x61c065(0x144)],_0x61c065(0x149)),'buttonIcon':_0x3556e8,'order':0x0,'content':this[_0x61c065(0x127)]});}[_0x3f2435(0x132)](_0x4587ec){const _0x555a9e=_0x3f2435;this[_0x555a9e(0x127)][_0x555a9e(0x132)](_0x4587ec);}[_0x3f2435(0x12a)](_0x253e7c){const _0x4174c6=_0x3f2435;this[_0x4174c6(0x127)][_0x4174c6(0x147)](_0x253e7c);}[_0x3f2435(0x135)](_0x392552,_0x584422){const _0x4f4772=_0x3f2435;this[_0x4f4772(0x127)][_0x4f4772(0x135)](_0x392552,_0x584422);}[_0x3f2435(0x141)](_0x37a5d5,_0x47bc42,_0x4bbff6){const _0x505235=_0x3f2435;this[_0x505235(0x127)][_0x505235(0x141)](_0x37a5d5,_0x47bc42,_0x4bbff6);}[_0x3f2435(0x13a)](_0x3bf77a){const _0x2665a6=_0x3f2435;this[_0x2665a6(0x127)][_0x2665a6(0x12b)]=_0x3bf77a;}[_0x3f2435(0x133)](_0x1634eb){const _0x313b8b=_0x3f2435;this[_0x313b8b(0x127)][_0x313b8b(0x14e)]=_0x1634eb;}[_0x3f2435(0x151)](){const _0xb025d5=_0x3f2435;this[_0xb025d5(0x127)][_0xb025d5(0x14e)]='';}[_0x3f2435(0x145)](_0x188a9b){const _0x95e33d=_0x3f2435;this[_0x95e33d(0x127)][_0x95e33d(0x12c)]=_0x188a9b;}}
23
+ const _0x3b2063=_0x480b;function _0x480b(_0x1411b1,_0x181712){const _0x505ec0=_0x505e();return _0x480b=function(_0x480b72,_0x39e5c7){_0x480b72=_0x480b72-0xc0;let _0x333299=_0x505ec0[_0x480b72];return _0x333299;},_0x480b(_0x1411b1,_0x181712);}(function(_0x4dbb53,_0x1e635a){const _0xabeb8c=_0x480b,_0x190348=_0x4dbb53();while(!![]){try{const _0x52963b=-parseInt(_0xabeb8c(0xd9))/0x1*(-parseInt(_0xabeb8c(0xd7))/0x2)+parseInt(_0xabeb8c(0xe7))/0x3*(-parseInt(_0xabeb8c(0xf1))/0x4)+-parseInt(_0xabeb8c(0xec))/0x5*(parseInt(_0xabeb8c(0xeb))/0x6)+-parseInt(_0xabeb8c(0xcc))/0x7*(parseInt(_0xabeb8c(0xcd))/0x8)+parseInt(_0xabeb8c(0xef))/0x9*(parseInt(_0xabeb8c(0xdd))/0xa)+-parseInt(_0xabeb8c(0xd0))/0xb*(parseInt(_0xabeb8c(0xd4))/0xc)+-parseInt(_0xabeb8c(0xe8))/0xd*(-parseInt(_0xabeb8c(0xc5))/0xe);if(_0x52963b===_0x1e635a)break;else _0x190348['push'](_0x190348['shift']());}catch(_0x47affa){_0x190348['push'](_0x190348['shift']());}}}(_0x505e,0x6f442));import{ContextPlugin as _0x1e83e8}from'ckeditor5/src/core.js';import{AITabs as _0x1bf4b5}from'../aitabs/aitabs.js';function _0x505e(){const _0x1ca22a=['showError','plugins','5214VLiYib','2425GdLIEG','locale','isOfficialPlugin','3026709VpYckR','setLoadingSkeleton','4DtCCnz','history','isMaximized','delegate','removeHistoryItem','pluginName','118902ilCFfv','isLoading','errorMessage','updateItems','showResizeButton','updateHistoryItemsWithCategories','showConversationHistory','7bAqQHH','661816DEYOYm','context','get','66EeUWbD','updateItemTitle','selectConversation','hideError','343800MaozqP','updateItemLoadingState','requires','2FKxmgO','addTab','29066QHGLWd','resizeTabs','removeConversation','setIsMaximized','10IcRItu','isPremiumPlugin','AITabs','AI_CHAT_HISTORY_HEADING','setConversationPinned','view','_historyView','editConversationTitle','AIChatHistoryUI','openChat','2312286RNfxkX','2353cyftnx'];_0x505e=function(){return _0x1ca22a;};return _0x505e();}import{IconAIHistory as _0xbc0f2d}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xa0a94c}from'./ui/aichathistoryview.js';import{getTranslation as _0x810461}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x3b2063(0xcb),_0x3b2063(0xdb),_0x3b2063(0xe4),_0x3b2063(0xe1),_0x3b2063(0xd2),_0x3b2063(0xe6),_0x3b2063(0xda)];export class AIChatHistoryUI extends _0x1e83e8{static get[_0x3b2063(0xd6)](){return[_0x1bf4b5];}[_0x3b2063(0xe3)];static get[_0x3b2063(0xc4)](){const _0x277cbc=_0x3b2063;return _0x277cbc(0xe5);}static get[_0x3b2063(0xee)](){return!0x0;}static get[_0x3b2063(0xde)](){return!0x0;}constructor(_0x261048){const _0x278536=_0x3b2063;super(_0x261048);const _0x270d34=this[_0x278536(0xce)][_0x278536(0xea)][_0x278536(0xcf)](_0x278536(0xdf));this[_0x278536(0xe3)]=new _0xa0a94c(this[_0x278536(0xce)][_0x278536(0xed)],_0x270d34[_0x278536(0xc9)]),this[_0x278536(0xe3)][_0x278536(0xc2)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x270d34[_0x278536(0xe2)][_0x278536(0xd8)]({'id':_0x278536(0xc0),'buttonLabel':_0x810461(this[_0x278536(0xce)][_0x278536(0xed)],_0x278536(0xe0)),'buttonIcon':_0xbc0f2d,'order':0x0,'content':this[_0x278536(0xe3)]});}[_0x3b2063(0xc3)](_0x1928a1){const _0x1d08e7=_0x3b2063;this[_0x1d08e7(0xe3)][_0x1d08e7(0xc3)](_0x1928a1);}[_0x3b2063(0xc8)](_0x3f043e){const _0x29d82b=_0x3b2063;this[_0x29d82b(0xe3)][_0x29d82b(0xca)](_0x3f043e);}[_0x3b2063(0xd1)](_0xd1a393,_0x3d06a6){const _0x5100b4=_0x3b2063;this[_0x5100b4(0xe3)][_0x5100b4(0xd1)](_0xd1a393,_0x3d06a6);}[_0x3b2063(0xd5)](_0x3b9e18,_0xae2279,_0x565a54){const _0x3724bc=_0x3b2063;this[_0x3724bc(0xe3)][_0x3724bc(0xd5)](_0x3b9e18,_0xae2279,_0x565a54);}[_0x3b2063(0xf0)](_0x2539d0){const _0x142599=_0x3b2063;this[_0x142599(0xe3)][_0x142599(0xc6)]=_0x2539d0;}[_0x3b2063(0xe9)](_0x57a232){const _0x1bb139=_0x3b2063;this[_0x1bb139(0xe3)][_0x1bb139(0xc7)]=_0x57a232;}[_0x3b2063(0xd3)](){const _0x4280c9=_0x3b2063;this[_0x4280c9(0xe3)][_0x4280c9(0xc7)]='';}[_0x3b2063(0xdc)](_0x1d9791){const _0x10f934=_0x3b2063;this[_0x10f934(0xe3)][_0x10f934(0xc1)]=_0x1d9791;}}
@@ -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
+ const _0x1ee8ce=_0x32ad;(function(_0x1e1d4c,_0xe4a6d0){const _0x11e3e4=_0x32ad,_0x37c123=_0x1e1d4c();while(!![]){try{const _0x26ce1=parseInt(_0x11e3e4(0xfc))/0x1+parseInt(_0x11e3e4(0xea))/0x2*(-parseInt(_0x11e3e4(0xf8))/0x3)+parseInt(_0x11e3e4(0xeb))/0x4*(-parseInt(_0x11e3e4(0x103))/0x5)+-parseInt(_0x11e3e4(0xf0))/0x6+parseInt(_0x11e3e4(0xf3))/0x7+parseInt(_0x11e3e4(0xf5))/0x8+parseInt(_0x11e3e4(0x105))/0x9;if(_0x26ce1===_0xe4a6d0)break;else _0x37c123['push'](_0x37c123['shift']());}catch(_0x3d9fb8){_0x37c123['push'](_0x37c123['shift']());}}}(_0xdb50,0x1bc01));function _0x32ad(_0x2f5336,_0x39cf93){const _0xdb50e5=_0xdb50();return _0x32ad=function(_0x32ade5,_0x2067e6){_0x32ade5=_0x32ade5-0xd9;let _0x509b30=_0xdb50e5[_0x32ade5];return _0x509b30;},_0x32ad(_0x2f5336,_0x39cf93);}import{EmitterMixin as _0x2ce45d}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x51eeff}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x2ce45d(){[_0x1ee8ce(0xda)]=[];[_0x1ee8ce(0xd9)];[_0x1ee8ce(0xf7)];constructor({connector:_0x2cfb6b,group:_0x1ac8de}){const _0x1893e8=_0x1ee8ce;super(),this[_0x1893e8(0xd9)]=_0x2cfb6b,this[_0x1893e8(0xf7)]=_0x1ac8de;}async[_0x1ee8ce(0xfd)](){const _0x5d3f1c=_0x1ee8ce;try{const _0x3628ca=this[_0x5d3f1c(0xd9)][_0x5d3f1c(0xee)](this[_0x5d3f1c(0xf7)]),_0x4063bd=await _0x3628ca[_0x5d3f1c(0xf1)]();this[_0x5d3f1c(0xe4)](_0x4063bd);}catch(_0x3bdffa){this[_0x5d3f1c(0xe0)](_0x5d3f1c(0xe2),{'error':_0x3bdffa,'operation':_0x5d3f1c(0xfd)});}}[_0x1ee8ce(0xf2)](_0x5b4788){const _0x47861c=_0x1ee8ce;this[_0x47861c(0xda)][_0x47861c(0xe1)](_0x5b4788);}async[_0x1ee8ce(0xfb)](_0x378f3e){const _0xe8d314=_0x1ee8ce,_0x3b8e1e=this[_0xe8d314(0xda)][_0xe8d314(0x101)](_0x450634=>_0x450634['id']===_0x378f3e);if(-0x1===_0x3b8e1e)return!0x1;try{return await this[_0xe8d314(0xd9)][_0xe8d314(0x104)](_0x378f3e)[_0xe8d314(0xed)](),this[_0xe8d314(0xda)][_0xe8d314(0xe9)](_0x3b8e1e,0x1),this[_0xe8d314(0xe0)](_0xe8d314(0xdf),{'itemId':_0x378f3e}),!0x0;}catch(_0x1b5172){return this[_0xe8d314(0xe0)](_0xe8d314(0xe2),{'error':_0x1b5172,'operation':_0xe8d314(0xfb),'itemId':_0x378f3e}),!0x1;}}[_0x1ee8ce(0xe3)](_0x1dace5){const _0x499730=_0x1ee8ce;return this[_0x499730(0xda)][_0x499730(0x100)](_0x2d9694=>_0x2d9694['id']===_0x1dace5);}async[_0x1ee8ce(0x102)](_0x5a171b,_0x5deee9){const _0x60c510=_0x1ee8ce,_0x37199c=this[_0x60c510(0xe3)](_0x5a171b);if(!_0x37199c)return!0x1;try{return await this[_0x60c510(0xd9)][_0x60c510(0xe5)](_0x5a171b,{'title':_0x5deee9})[_0x60c510(0x106)](),_0x37199c[_0x60c510(0xf9)](_0x5deee9),this[_0x60c510(0xe0)](_0x60c510(0xfa),{'itemId':_0x5a171b,'updates':{'title':_0x5deee9}}),!0x0;}catch(_0x42638b){return this[_0x60c510(0xe0)](_0x60c510(0xe2),{'error':_0x42638b,'operation':_0x60c510(0x102),'itemId':_0x5a171b}),!0x1;}}async[_0x1ee8ce(0xdb)](_0x5a0241,_0x51f35c){const _0x4aa14f=_0x1ee8ce,_0x2da99f=this[_0x4aa14f(0xe3)](_0x5a0241);if(!_0x2da99f)return!0x1;try{return await this[_0x4aa14f(0xd9)][_0x4aa14f(0xe5)](_0x5a0241,{'pinned':_0x51f35c})[_0x4aa14f(0x106)](),_0x2da99f[_0x4aa14f(0xe6)](_0x51f35c),this[_0x4aa14f(0xe0)](_0x4aa14f(0xfa),{'itemId':_0x5a0241,'updates':{'pinned':_0x51f35c}}),!0x0;}catch(_0x193100){return this[_0x4aa14f(0xe0)](_0x4aa14f(0xe2),{'error':_0x193100,'operation':_0x4aa14f(0xdb),'itemId':_0x5a0241}),!0x1;}}[_0x1ee8ce(0xe4)](_0x37383f){const _0x214658=_0x1ee8ce;try{this[_0x214658(0xda)]=[],_0x37383f[_0x214658(0xf6)](_0xd79d96=>{const _0x2b9a04=_0x214658;this[_0x2b9a04(0xf2)](new _0x51eeff(_0xd79d96));}),this[_0x214658(0xe0)](_0x214658(0xdc),{'items':[...this[_0x214658(0xda)]]});}catch(_0x4ef0c5){this[_0x214658(0xe0)](_0x214658(0xe2),{'error':_0x4ef0c5,'operation':_0x214658(0xe4)});}}[_0x1ee8ce(0xf4)](_0x231f6e={}){const _0x192c69=_0x1ee8ce,_0x8cb80=void 0x0!==_0x231f6e[_0x192c69(0xef)]&&_0x231f6e[_0x192c69(0xef)],_0x260c85=_0x231f6e[_0x192c69(0xdd)]?new Date(_0x231f6e[_0x192c69(0xdd)][_0x192c69(0xe8)](),_0x231f6e[_0x192c69(0xdd)][_0x192c69(0xe7)](),_0x231f6e[_0x192c69(0xdd)][_0x192c69(0xff)]()):null,_0x37b70=_0x231f6e['to']?new Date(_0x231f6e['to'][_0x192c69(0xe8)](),_0x231f6e['to'][_0x192c69(0xe7)](),_0x231f6e['to'][_0x192c69(0xff)]()):null;return this[_0x192c69(0xda)][_0x192c69(0xec)](_0x109b57=>{const _0x37994e=_0x192c69;if(_0x109b57[_0x37994e(0xef)]!==_0x8cb80)return!0x1;if(_0x37b70){const _0x5bc03d=new Date(_0x109b57[_0x37994e(0xfe)][_0x37994e(0xe8)](),_0x109b57[_0x37994e(0xfe)][_0x37994e(0xe7)](),_0x109b57[_0x37994e(0xfe)][_0x37994e(0xff)]());return _0x260c85?_0x260c85[_0x37994e(0xde)]()===_0x37b70[_0x37994e(0xde)]()?_0x5bc03d[_0x37994e(0xde)]()===_0x260c85[_0x37994e(0xde)]():_0x5bc03d<_0x37b70&&_0x5bc03d>=_0x260c85:_0x5bc03d<_0x37b70;}return!0x0;});}}function _0xdb50(){const _0x1e5454=['map','group','24oVuoEb','updateTitle','itemUpdated','removeItem','25435foscvW','init','createdAt','getDate','find','findIndex','updateItemTitle','270pqdStX','deleteConversation','625104oToKFM','getResult','connector','items','updateItemPinned','itemsLoaded','from','getTime','itemRemoved','fire','push','error','getItem','loadItems','updateConversation','updatePinned','getMonth','getFullYear','splice','42290JAqNzm','912FdgbAG','filter','execute','fetchConversations','pinned','1047138hZvhas','getConversations','addItem','1542912ywZYGb','getItems','1234824jWnkuh'];_0xdb50=function(){return _0x1e5454;};return _0xdb50();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x31f3d8=_0x1ae9;(function(_0x2c67c1,_0x13694e){var _0x2ff3e4=_0x1ae9,_0x1e4b9d=_0x2c67c1();while(!![]){try{var _0x110ee9=parseInt(_0x2ff3e4(0x156))/0x1*(parseInt(_0x2ff3e4(0x14c))/0x2)+-parseInt(_0x2ff3e4(0x153))/0x3*(-parseInt(_0x2ff3e4(0x155))/0x4)+-parseInt(_0x2ff3e4(0x14f))/0x5*(parseInt(_0x2ff3e4(0x144))/0x6)+-parseInt(_0x2ff3e4(0x152))/0x7*(-parseInt(_0x2ff3e4(0x151))/0x8)+parseInt(_0x2ff3e4(0x145))/0x9*(-parseInt(_0x2ff3e4(0x157))/0xa)+parseInt(_0x2ff3e4(0x146))/0xb+parseInt(_0x2ff3e4(0x14b))/0xc*(parseInt(_0x2ff3e4(0x148))/0xd);if(_0x110ee9===_0x13694e)break;else _0x1e4b9d['push'](_0x1e4b9d['shift']());}catch(_0x47b461){_0x1e4b9d['push'](_0x1e4b9d['shift']());}}}(_0x2834,0x35060));import{ObservableMixin as _0x2fb439}from'ckeditor5/src/utils.js';function _0x2834(){var _0xe4b574=['4qEZglS','updatedAt','updatePinned','195GqtsvL','pinned','296DszIVX','33789xVCgSM','3AINmMR','createdAt','410876bgBIJB','15394WBwHsm','30zqDPOD','19506pMdqfa','1139913XAqOsB','3641517YKFxWa','set','13ZCjGOY','title','updateTitle','969492PQNZLY'];_0x2834=function(){return _0xe4b574;};return _0x2834();}function _0x1ae9(_0x30ccb1,_0x107b8d){var _0x283491=_0x2834();return _0x1ae9=function(_0x1ae978,_0x32025e){_0x1ae978=_0x1ae978-0x144;var _0x421337=_0x283491[_0x1ae978];return _0x421337;},_0x1ae9(_0x30ccb1,_0x107b8d);}import{escape as _0x3ce63a}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x2fb439(){['id'];[_0x31f3d8(0x154)];constructor({id:_0x448b7c,title:_0xc2f61f,createdAt:_0x11cc9d,updatedAt:_0x36d30d,pinned:_0x194851}){var _0x16db88=_0x31f3d8;super(),this['id']=_0x448b7c,this[_0x16db88(0x154)]=new Date(_0x11cc9d),this[_0x16db88(0x147)](_0x16db88(0x149),_0xc2f61f),this[_0x16db88(0x147)](_0x16db88(0x14d),_0x36d30d?new Date(_0x36d30d):null),this[_0x16db88(0x147)](_0x16db88(0x150),_0x194851||!0x1);}[_0x31f3d8(0x14a)](_0xc37853){var _0x484d09=_0x31f3d8;this[_0x484d09(0x147)](_0x484d09(0x149),_0x3ce63a(_0xc37853)),this[_0x484d09(0x14d)]=new Date();}[_0x31f3d8(0x14e)](_0x360e57){var _0x543855=_0x31f3d8;this[_0x543855(0x147)](_0x543855(0x150),_0x360e57),this[_0x543855(0x14d)]=new Date();}}
23
+ function _0x5d24(_0x15d712,_0x15cc37){var _0x4c7ef7=_0x4c7e();return _0x5d24=function(_0x5d2424,_0x5b7575){_0x5d2424=_0x5d2424-0x9f;var _0x494fe5=_0x4c7ef7[_0x5d2424];return _0x494fe5;},_0x5d24(_0x15d712,_0x15cc37);}var _0x43e02=_0x5d24;(function(_0x145a99,_0x34c2ae){var _0x3c4016=_0x5d24,_0x1bf6fc=_0x145a99();while(!![]){try{var _0x1be22f=parseInt(_0x3c4016(0xa4))/0x1*(-parseInt(_0x3c4016(0xa1))/0x2)+-parseInt(_0x3c4016(0xa7))/0x3*(-parseInt(_0x3c4016(0xad))/0x4)+-parseInt(_0x3c4016(0xae))/0x5+-parseInt(_0x3c4016(0xab))/0x6*(-parseInt(_0x3c4016(0xa9))/0x7)+parseInt(_0x3c4016(0xb1))/0x8+parseInt(_0x3c4016(0x9f))/0x9*(parseInt(_0x3c4016(0xaa))/0xa)+-parseInt(_0x3c4016(0xb0))/0xb*(-parseInt(_0x3c4016(0xa0))/0xc);if(_0x1be22f===_0x34c2ae)break;else _0x1bf6fc['push'](_0x1bf6fc['shift']());}catch(_0x5d4c5b){_0x1bf6fc['push'](_0x1bf6fc['shift']());}}}(_0x4c7e,0xb4688));import{ObservableMixin as _0x4e5df0}from'ckeditor5/src/utils.js';function _0x4c7e(){var _0x2b9509=['42MzPWOn','pinned','8CfmawG','6960765McXSWG','updatePinned','210771lQmTWH','6102736WuoasQ','663885LAmAYA','708uOectO','6sDcyVH','title','updateTitle','423681rIQIpC','createdAt','set','379227mSRSLb','updatedAt','739634hLRGur','70WvhjLN'];_0x4c7e=function(){return _0x2b9509;};return _0x4c7e();}import{escape as _0x455540}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x4e5df0(){['id'];[_0x43e02(0xa5)];constructor({id:_0x2e5f13,title:_0x2e884c,createdAt:_0x2b591e,updatedAt:_0x225c61,pinned:_0x26976b}){var _0x4a0ed2=_0x43e02;super(),this['id']=_0x2e5f13,this[_0x4a0ed2(0xa5)]=new Date(_0x2b591e),this[_0x4a0ed2(0xa6)](_0x4a0ed2(0xa2),_0x2e884c),this[_0x4a0ed2(0xa6)](_0x4a0ed2(0xa8),_0x225c61?new Date(_0x225c61):null),this[_0x4a0ed2(0xa6)](_0x4a0ed2(0xac),_0x26976b||!0x1);}[_0x43e02(0xa3)](_0x439de9){var _0x8c252f=_0x43e02;this[_0x8c252f(0xa6)](_0x8c252f(0xa2),_0x455540(_0x439de9)),this[_0x8c252f(0xa8)]=new Date();}[_0x43e02(0xaf)](_0xfe0029){var _0x532472=_0x43e02;this[_0x532472(0xa6)](_0x532472(0xac),_0xfe0029),this[_0x532472(0xa8)]=new Date();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ac2fb=_0xb92a;(function(_0x45a62d,_0x302bdc){const _0x27ccc9=_0xb92a,_0x427bbc=_0x45a62d();while(!![]){try{const _0x1de878=-parseInt(_0x27ccc9(0x219))/0x1*(-parseInt(_0x27ccc9(0x201))/0x2)+-parseInt(_0x27ccc9(0x1d9))/0x3+-parseInt(_0x27ccc9(0x20f))/0x4*(parseInt(_0x27ccc9(0x1eb))/0x5)+-parseInt(_0x27ccc9(0x204))/0x6*(parseInt(_0x27ccc9(0x222))/0x7)+parseInt(_0x27ccc9(0x1e2))/0x8*(parseInt(_0x27ccc9(0x21a))/0x9)+-parseInt(_0x27ccc9(0x1f7))/0xa*(-parseInt(_0x27ccc9(0x20d))/0xb)+-parseInt(_0x27ccc9(0x1dc))/0xc*(parseInt(_0x27ccc9(0x1d8))/0xd);if(_0x1de878===_0x302bdc)break;else _0x427bbc['push'](_0x427bbc['shift']());}catch(_0x351436){_0x427bbc['push'](_0x427bbc['shift']());}}}(_0x3533,0x598b1));function _0x3533(){const _0x3aae57=['children','addMany','2XjoHWR','listitem','_createEditInputView','36apSAad','_createPinButtonView','mainContent','ck-ai-chat-history__item-check-container','removeConversation','add','panelView','bindTemplate','panelPosition','11bEHLVj','createCollection','1050904UWJtWC','isMatching','ck-ai-chat-history__item-check','Enter','focus','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-content','click','fire','338783Zulamq','9XhePZz','AI_CHAT_HISTORY_LOADING_REMOVING','selectConversation','setTemplate','isOn','_createSpinnerView','LOADING_LABELS','key','433118HYEmMk','label','ck-ai-chat-history__item','span','buttonView','items','_createAcceptEditButtonView','actions','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-row','updateTitle','setConversationPinned','change:isEdit','ck-ai-chat-history__item-date','bind','showConfirm','ck-ai-chat-history__item--edit','div','ck-ai-loader__text','AI_CHAT_HISTORY_REMOVE','pinned','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_RENAMING','loadingState','_titleView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-actions','445315GgQZQu','280773VVjdfU','withText','clear','12Sjnxls','text','ck-confirm-view-cancel','AI_CHAT_HISTORY_CANCEL','_commitEditInputValue','editConversationTitle','5342824yuHaSS','tiny','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_LOADING_PINNING','isVisible','set','_createMenuDropdownView','highlightText','ck-ai-loader','5xdBykm','ck-ai-chat-history__item-main-content','string','then','edit:cancel','AI_CHAT_HISTORY_EDIT_NAME','_createCheckView','AI_CHAT_HISTORY_ACCEPT','updateLoadingState','element','isEdit','execute','1219490HPTGZl','value','extendTemplate','ck-ai-chat-history__item-title','ck-hidden','ck-confirm-view-submit','locale','match'];_0x3533=function(){return _0x3aae57;};return _0x3533();}import{ListItemView as _0x365afd,HighlightedTextView as _0x32b79d,ButtonView as _0x1d853b,ListView as _0x1bdf2c,IconView as _0x5d75f1,createDropdown as _0x532c55,InputTextView as _0x3979ce}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x17af50,IconPin as _0x5084ab,IconCheck as _0x35ae4a,IconCancel as _0x315f56}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x527717,ConfirmMixin as _0x19fdbd}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x20f7ff}from'es-toolkit/compat';import{AISpinnerView as _0x37d7a0}from'../../aicore/ui/aispinner.js';function _0xb92a(_0x2d4dc0,_0x129bcc){const _0x353393=_0x3533();return _0xb92a=function(_0xb92a95,_0x1b4f4f){_0xb92a95=_0xb92a95-0x1d2;let _0x1ed2d0=_0x353393[_0xb92a95];return _0x1ed2d0;},_0xb92a(_0x2d4dc0,_0x129bcc);}import{getTranslation as _0x57a0f0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x19fdbd(_0x365afd){['id'];static [_0x4ac2fb(0x220)]={'remove':_0x4ac2fb(0x21b),'rename':_0x4ac2fb(0x1d3),'pin':_0x4ac2fb(0x1e5),'unpin':_0x4ac2fb(0x1d2)};[_0x4ac2fb(0x229)];[_0x4ac2fb(0x206)];[_0x4ac2fb(0x1d5)];constructor(_0x2a90c9,_0x2f81b7){const _0x14a6e5=_0x4ac2fb;super(_0x2a90c9);const _0x54e1e4=this[_0x14a6e5(0x20b)];this[_0x14a6e5(0x1e7)](_0x14a6e5(0x1f5),!0x1),this[_0x14a6e5(0x1e7)](_0x14a6e5(0x1e6),!0x0),this[_0x14a6e5(0x1e7)](_0x14a6e5(0x236),!!_0x2f81b7[_0x14a6e5(0x236)]),this[_0x14a6e5(0x1e7)](_0x14a6e5(0x1d4),null),this['id']=_0x2f81b7['id'];const {title:_0x20ad0c,createdAt:_0x38bb20,active:_0x12c112=!0x1}=_0x2f81b7;this[_0x14a6e5(0x1d5)]=new _0x32b79d(),this[_0x14a6e5(0x1d5)][_0x14a6e5(0x1dd)]=_0x20ad0c,this[_0x14a6e5(0x1d5)][_0x14a6e5(0x1f9)]({'attributes':{'class':[_0x14a6e5(0x1fa)]}});const _0x40fc98=this[_0x14a6e5(0x1f1)](),_0x1f2146=this[_0x14a6e5(0x205)](_0x2a90c9),_0x2a74a6=this[_0x14a6e5(0x1e8)](),_0x284d1b=this[_0x14a6e5(0x203)](_0x2a90c9,_0x20ad0c),_0x524453=this[_0x14a6e5(0x228)](_0x2a90c9,_0x284d1b),_0x443510=this[_0x14a6e5(0x214)](_0x2a90c9,_0x284d1b);this[_0x14a6e5(0x229)]=this[_0x14a6e5(0x20e)](),this[_0x14a6e5(0x206)]=this[_0x14a6e5(0x20e)](),this[_0x14a6e5(0x206)][_0x14a6e5(0x209)](this[_0x14a6e5(0x1d5)]),this[_0x14a6e5(0x229)][_0x14a6e5(0x209)](_0x1f2146),this[_0x14a6e5(0x229)][_0x14a6e5(0x209)](_0x2a74a6),this['on'](_0x14a6e5(0x22e),(_0x41d0e3,_0x3e490d,_0x38d98f)=>{const _0x22bd4c=_0x14a6e5;this[_0x22bd4c(0x229)][_0x22bd4c(0x1db)](),this[_0x22bd4c(0x206)][_0x22bd4c(0x1db)](),_0x38d98f?(this[_0x22bd4c(0x229)][_0x22bd4c(0x209)](_0x524453),this[_0x22bd4c(0x229)][_0x22bd4c(0x209)](_0x443510),this[_0x22bd4c(0x206)][_0x22bd4c(0x209)](_0x284d1b),_0x284d1b[_0x22bd4c(0x1f4)][_0x22bd4c(0x213)]()):(this[_0x22bd4c(0x229)][_0x22bd4c(0x209)](_0x1f2146),this[_0x22bd4c(0x229)][_0x22bd4c(0x209)](_0x2a74a6),this[_0x22bd4c(0x206)][_0x22bd4c(0x209)](this[_0x22bd4c(0x1d5)]));}),this[_0x14a6e5(0x21d)]({'tag':'li','attributes':{'class':[_0x14a6e5(0x224),_0x12c112?_0x14a6e5(0x1e4):'',_0x54e1e4['if'](_0x14a6e5(0x1e6),_0x14a6e5(0x1fb),_0x13c428=>!_0x13c428),_0x54e1e4['if'](_0x14a6e5(0x1f5),_0x14a6e5(0x232))],'role':_0x14a6e5(0x202)},'children':[{'tag':_0x14a6e5(0x225),'attributes':{'class':[_0x14a6e5(0x207)]},'children':[{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x211),_0x54e1e4['if'](_0x14a6e5(0x1d4),_0x14a6e5(0x1fb),_0x1bc110=>!!_0x1bc110)]},'children':_0x12c112?[_0x40fc98]:[]},{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x1ea),_0x54e1e4['if'](_0x14a6e5(0x1d4),_0x14a6e5(0x1fb),_0x14b28f=>!_0x14b28f)]},'children':[this[_0x14a6e5(0x21f)]()]}]},{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x22b)]},'children':[{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x216)]},'on':{'click':this[_0x14a6e5(0x20b)]['to'](_0x14a6e5(0x217))},'children':[{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x1ec)]},'children':[{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x1fa),_0x54e1e4['if'](_0x14a6e5(0x1d4),_0x14a6e5(0x1fb),_0x1b47bb=>!!_0x1b47bb)]},'children':this[_0x14a6e5(0x206)]},{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x234),_0x54e1e4['if'](_0x14a6e5(0x1d4),_0x14a6e5(0x1fb),_0x5a7338=>!_0x5a7338)]},'children':[{'text':_0x54e1e4['to'](_0x14a6e5(0x1d4),_0x15d931=>_0x15d931?_0x57a0f0(this[_0x14a6e5(0x1fd)],AIChatHistoryListItemView[_0x14a6e5(0x220)][_0x15d931]):'')}]}]},{'tag':_0x14a6e5(0x225),'attributes':{'class':[_0x14a6e5(0x22f)]},'children':[_0x38bb20]}]},{'tag':_0x14a6e5(0x233),'attributes':{'class':[_0x14a6e5(0x1d7)]},'children':this[_0x14a6e5(0x229)]}]}]}),this['on'](_0x14a6e5(0x217),()=>{const _0x18965b=_0x14a6e5;this[_0x18965b(0x1f5)]||this[_0x18965b(0x218)](_0x18965b(0x21c),{'id':this['id']});});}[_0x4ac2fb(0x22c)](_0x57ec76){const _0x2ae221=_0x4ac2fb;this[_0x2ae221(0x1d5)][_0x2ae221(0x1dd)]=_0x20f7ff(_0x57ec76);}[_0x4ac2fb(0x1f3)](_0x5e7cbe,_0xe40b4a){const _0x53de53=_0x4ac2fb;this[_0x53de53(0x1e7)](_0x53de53(0x1d4),_0xe40b4a?_0x5e7cbe:null);}[_0x4ac2fb(0x1f1)](){const _0x44947d=_0x4ac2fb,_0x265ee1=new _0x5d75f1();return _0x265ee1[_0x44947d(0x1e7)]({'content':_0x35ae4a}),_0x265ee1;}[_0x4ac2fb(0x205)](_0x3a58b3){const _0x528d46=_0x4ac2fb,_0x4cefc7=new _0x1d853b(_0x3a58b3);return _0x4cefc7[_0x528d46(0x1e7)]({'label':_0x57a0f0(_0x3a58b3,_0x528d46(0x22a)),'icon':_0x5084ab,'withText':!0x1,'tooltip':!0x0}),_0x4cefc7[_0x528d46(0x230)](_0x528d46(0x21e))['to'](this,_0x528d46(0x236)),_0x4cefc7['on'](_0x528d46(0x1f6),()=>{const _0x35df27=_0x528d46,_0xd5e456=!this[_0x35df27(0x236)];this[_0x35df27(0x218)](_0x35df27(0x22d),{'id':this['id'],'pinned':_0xd5e456});}),_0x4cefc7;}[_0x4ac2fb(0x1e8)](){const _0x1f8233=_0x4ac2fb,_0x12f369=_0x532c55(this[_0x1f8233(0x1fd)],_0x527717),_0x273b44=_0x12f369[_0x1f8233(0x20a)][_0x1f8233(0x1ff)];_0x12f369[_0x1f8233(0x226)][_0x1f8233(0x1e7)]({'label':_0x57a0f0(this[_0x1f8233(0x1fd)],_0x1f8233(0x1d6)),'icon':_0x17af50}),_0x12f369[_0x1f8233(0x20c)]='sw';const _0x4b0f90=new _0x1d853b(this[_0x1f8233(0x1fd)]);_0x4b0f90[_0x1f8233(0x223)]=_0x57a0f0(this[_0x1f8233(0x1fd)],_0x1f8233(0x1f0)),_0x4b0f90[_0x1f8233(0x1da)]=!0x0,_0x4b0f90['on'](_0x1f8233(0x1f6),()=>{const _0xa64928=_0x1f8233;this[_0xa64928(0x1f5)]=!0x0;});const _0x46650d=new _0x1d853b(this[_0x1f8233(0x1fd)]);_0x46650d[_0x1f8233(0x223)]=_0x57a0f0(this[_0x1f8233(0x1fd)],_0x1f8233(0x235)),_0x46650d[_0x1f8233(0x1da)]=!0x0,_0x46650d['on'](_0x1f8233(0x1f6),()=>{const _0x174f41=_0x1f8233;this[_0x174f41(0x231)](_0x57a0f0(this[_0x174f41(0x1fd)],_0x174f41(0x215)),this[_0x174f41(0x1f4)])[_0x174f41(0x1ee)](()=>{const _0x2540bf=_0x174f41;this[_0x2540bf(0x218)](_0x2540bf(0x208),{'id':this['id']});});});const _0x487579=new _0x1bdf2c(this[_0x1f8233(0x1fd)]),_0x1da1f2=new _0x365afd(this[_0x1f8233(0x1fd)]);_0x1da1f2[_0x1f8233(0x1ff)][_0x1f8233(0x209)](_0x4b0f90);const _0x3ffa2e=new _0x365afd(this[_0x1f8233(0x1fd)]);return _0x3ffa2e[_0x1f8233(0x1ff)][_0x1f8233(0x209)](_0x46650d),_0x487579[_0x1f8233(0x227)][_0x1f8233(0x200)]([_0x1da1f2,_0x3ffa2e]),_0x273b44[_0x1f8233(0x209)](_0x487579),_0x12f369;}[_0x4ac2fb(0x203)](_0x517404,_0x27bed3){const _0x9438e=_0x4ac2fb,_0x2ba760=new _0x3979ce(_0x517404),_0x21a38d=_0x2ba760[_0x9438e(0x20b)];return _0x2ba760[_0x9438e(0x1f8)]=_0x27bed3,_0x2ba760[_0x9438e(0x1f9)]({'on':{'keydown':_0x21a38d['to'](_0x3b45bd=>{const _0x50175f=_0x9438e;_0x50175f(0x212)==_0x3b45bd[_0x50175f(0x221)]&&this[_0x50175f(0x1e0)](_0x2ba760);})}}),_0x2ba760;}[_0x4ac2fb(0x228)](_0x16d302,_0x41f1be){const _0x32d874=_0x4ac2fb,_0x621049=new _0x1d853b(_0x16d302);return _0x621049[_0x32d874(0x1e7)]({'icon':_0x35ae4a,'withText':!0x1,'tooltip':_0x57a0f0(_0x16d302,_0x32d874(0x1f2))}),_0x621049[_0x32d874(0x1f9)]({'attributes':{'class':[_0x32d874(0x1fc)]}}),_0x621049['on'](_0x32d874(0x1f6),()=>{const _0x4fac93=_0x32d874;this[_0x4fac93(0x1e0)](_0x41f1be);}),_0x621049;}[_0x4ac2fb(0x1e0)](_0x252bc3){const _0x230aed=_0x4ac2fb,_0x176b73=_0x252bc3[_0x230aed(0x1f4)][_0x230aed(0x1f8)]||'';this[_0x230aed(0x1d5)][_0x230aed(0x1dd)]=_0x176b73,this[_0x230aed(0x1f5)]=!0x1,this[_0x230aed(0x218)](_0x230aed(0x1e1),{'id':this['id'],'title':_0x176b73});}[_0x4ac2fb(0x214)](_0x4e506d,_0x214b1a){const _0x42f3d9=_0x4ac2fb,_0x480310=new _0x1d853b(_0x4e506d);return _0x480310[_0x42f3d9(0x1e7)]({'icon':_0x315f56,'withText':!0x1,'tooltip':_0x57a0f0(_0x4e506d,_0x42f3d9(0x1df))}),_0x480310[_0x42f3d9(0x1f9)]({'attributes':{'class':[_0x42f3d9(0x1de)]}}),_0x480310['on'](_0x42f3d9(0x1f6),()=>{const _0x1714fa=_0x42f3d9;this[_0x1714fa(0x1f5)]=!0x1,_0x214b1a[_0x1714fa(0x1f8)]=this[_0x1714fa(0x1d5)][_0x1714fa(0x1dd)]||'',this[_0x1714fa(0x218)](_0x1714fa(0x1ef));}),_0x480310;}[_0x4ac2fb(0x21f)](){const _0x3989e1=_0x4ac2fb,_0x47d7fd=new _0x37d7a0(_0x3989e1(0x1e3));return _0x47d7fd[_0x3989e1(0x1e6)]=!0x0,_0x47d7fd;}[_0x4ac2fb(0x210)](_0x1d03ca){const _0x347f58=_0x4ac2fb;return this[_0x347f58(0x1d5)]&&_0x347f58(0x1ed)==typeof this[_0x347f58(0x1d5)][_0x347f58(0x1dd)]&&this[_0x347f58(0x1d5)][_0x347f58(0x1dd)][_0x347f58(0x1fe)](_0x1d03ca)?{'title':!0x0}:null;}[_0x4ac2fb(0x1e9)](_0x526fa1){const _0x41410c=_0x4ac2fb;this[_0x41410c(0x1d5)][_0x41410c(0x1e9)](_0x526fa1);}}
23
+ const _0x4d4571=_0x582a;(function(_0x80183f,_0x1f1e40){const _0x4ee981=_0x582a,_0x13119f=_0x80183f();while(!![]){try{const _0x3611b3=parseInt(_0x4ee981(0x1f8))/0x1+parseInt(_0x4ee981(0x1ee))/0x2+-parseInt(_0x4ee981(0x22d))/0x3+-parseInt(_0x4ee981(0x20f))/0x4*(parseInt(_0x4ee981(0x20a))/0x5)+-parseInt(_0x4ee981(0x207))/0x6+-parseInt(_0x4ee981(0x22e))/0x7+parseInt(_0x4ee981(0x1f5))/0x8;if(_0x3611b3===_0x1f1e40)break;else _0x13119f['push'](_0x13119f['shift']());}catch(_0x308d51){_0x13119f['push'](_0x13119f['shift']());}}}(_0x13e0,0x431f4));import{ListItemView as _0x37f6b0,HighlightedTextView as _0x40d592,ButtonView as _0x474f70,ListView as _0x363e36,IconView as _0x30575a,createDropdown as _0x2b5439,InputTextView as _0x5c6e63}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x14342d,IconPin as _0x270198,IconCheck as _0x4be2b4,IconCancel as _0x2ee807}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2a3d99,ConfirmMixin as _0x552c0f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x13e0(){const _0xc4bb74=['element','bind','highlightText','Enter','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_RENAMING','clear','AI_CHAT_HISTORY_REMOVE','label','panelPosition','span','loadingState','listitem','value','click','mainContent','812050TCPeHk','buttonView','_createEditInputView','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','updateLoadingState','ck-ai-chat-history__item-title','3512928QTCZle','ck-ai-chat-history__item--active','createCollection','464732sDocic','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-loader','ck-ai-chat-history__item','addMany','ck-ai-chat-history__item-content','isVisible','_createPinButtonView','_createSpinnerView','AI_CHAT_HISTORY_LOADING_REMOVING','isOn','_createAcceptEditButtonView','withText','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','set','14286uuGGFf','change:isEdit','key','5pvJiwn','div','setConversationPinned','edit:cancel','ck-ai-chat-history__item-check-container','787448dqSPFv','ck-ai-chat-history__item-actions','focus','selectConversation','add','ck-ai-loader__text','_titleView','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_PINNING','ck-hidden','_createCancelEditButtonView','LOADING_LABELS','pinned','execute','actions','updateTitle','removeConversation','items','then','ck-ai-chat-history__item--edit','ck-confirm-view-cancel','ck-ai-chat-history__item-check','ck-ai-chat-history__item-date','panelView','editConversationTitle','isEdit','setTemplate','children','fire','_createCheckView','1262448zYXvEu','2904174oxEzKJ','tiny','extendTemplate','_commitEditInputValue','bindTemplate','showConfirm','ck-confirm-view-submit','match','_createMenuDropdownView','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_CANCEL','isMatching','locale','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_ACCEPT','string'];_0x13e0=function(){return _0xc4bb74;};return _0x13e0();}import{escape as _0x1e1a85}from'es-toolkit/compat';function _0x582a(_0x3f8aef,_0x20feb3){const _0x13e0bf=_0x13e0();return _0x582a=function(_0x582a1e,_0x517cd3){_0x582a1e=_0x582a1e-0x1e4;let _0x24994f=_0x13e0bf[_0x582a1e];return _0x24994f;},_0x582a(_0x3f8aef,_0x20feb3);}import{AISpinnerView as _0x193780}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x63e2e0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x552c0f(_0x37f6b0){['id'];static [_0x4d4571(0x21a)]={'remove':_0x4d4571(0x201),'rename':_0x4d4571(0x243),'pin':_0x4d4571(0x217),'unpin':_0x4d4571(0x216)};[_0x4d4571(0x21d)];[_0x4d4571(0x1ed)];[_0x4d4571(0x215)];constructor(_0x14c606,_0xf123d7){const _0x51957f=_0x4d4571;super(_0x14c606);const _0x1bb20e=this[_0x51957f(0x232)];this[_0x51957f(0x206)](_0x51957f(0x228),!0x1),this[_0x51957f(0x206)](_0x51957f(0x1fe),!0x0),this[_0x51957f(0x206)](_0x51957f(0x21b),!!_0xf123d7[_0x51957f(0x21b)]),this[_0x51957f(0x206)](_0x51957f(0x1e9),null),this['id']=_0xf123d7['id'];const {title:_0x577036,createdAt:_0x5a2ccb,active:_0x498295=!0x1}=_0xf123d7;this[_0x51957f(0x215)]=new _0x40d592(),this[_0x51957f(0x215)][_0x51957f(0x1f1)]=_0x577036,this[_0x51957f(0x215)][_0x51957f(0x230)]({'attributes':{'class':[_0x51957f(0x1f4)]}});const _0x452ba3=this[_0x51957f(0x22c)](),_0x285f33=this[_0x51957f(0x1ff)](_0x14c606),_0x56bea0=this[_0x51957f(0x236)](),_0x45fcce=this[_0x51957f(0x1f0)](_0x14c606,_0x577036),_0x43070c=this[_0x51957f(0x203)](_0x14c606,_0x45fcce),_0x597f50=this[_0x51957f(0x219)](_0x14c606,_0x45fcce);this[_0x51957f(0x21d)]=this[_0x51957f(0x1f7)](),this[_0x51957f(0x1ed)]=this[_0x51957f(0x1f7)](),this[_0x51957f(0x1ed)][_0x51957f(0x213)](this[_0x51957f(0x215)]),this[_0x51957f(0x21d)][_0x51957f(0x213)](_0x285f33),this[_0x51957f(0x21d)][_0x51957f(0x213)](_0x56bea0),this['on'](_0x51957f(0x208),(_0x2f1d05,_0x4bd034,_0x3e5ab9)=>{const _0xfcb96f=_0x51957f;this[_0xfcb96f(0x21d)][_0xfcb96f(0x1e4)](),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x1e4)](),_0x3e5ab9?(this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x43070c),this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x597f50),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x213)](_0x45fcce),_0x45fcce[_0xfcb96f(0x23e)][_0xfcb96f(0x211)]()):(this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x285f33),this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x56bea0),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x213)](this[_0xfcb96f(0x215)]));}),this[_0x51957f(0x229)]({'tag':'li','attributes':{'class':[_0x51957f(0x1fb),_0x498295?_0x51957f(0x1f6):'',_0x1bb20e['if'](_0x51957f(0x1fe),_0x51957f(0x218),_0x455c79=>!_0x455c79),_0x1bb20e['if'](_0x51957f(0x228),_0x51957f(0x222))],'role':_0x51957f(0x1ea)},'children':[{'tag':_0x51957f(0x1e8),'attributes':{'class':[_0x51957f(0x20e)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x224),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x591791=>!!_0x591791)]},'children':_0x498295?[_0x452ba3]:[]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1fa),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x4c508c=>!_0x4c508c)]},'children':[this[_0x51957f(0x200)]()]}]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x23b)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1fd)]},'on':{'click':this[_0x51957f(0x232)]['to'](_0x51957f(0x1ec))},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x242)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1f4),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x57a9eb=>!!_0x57a9eb)]},'children':this[_0x51957f(0x1ed)]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x214),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x4fd47b=>!_0x4fd47b)]},'children':[{'text':_0x1bb20e['to'](_0x51957f(0x1e9),_0xe8b1a7=>_0xe8b1a7?_0x63e2e0(this[_0x51957f(0x23a)],AIChatHistoryListItemView[_0x51957f(0x21a)][_0xe8b1a7]):'')}]}]},{'tag':_0x51957f(0x1e8),'attributes':{'class':[_0x51957f(0x225)]},'children':[_0x5a2ccb]}]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x210)]},'children':this[_0x51957f(0x21d)]}]}]}),this['on'](_0x51957f(0x1ec),()=>{const _0x17b8cb=_0x51957f;this[_0x17b8cb(0x228)]||this[_0x17b8cb(0x22b)](_0x17b8cb(0x212),{'id':this['id']});});}[_0x4d4571(0x21e)](_0x4b7e1b){const _0x120bc3=_0x4d4571;this[_0x120bc3(0x215)][_0x120bc3(0x1f1)]=_0x1e1a85(_0x4b7e1b);}[_0x4d4571(0x1f3)](_0x4e3a12,_0x3cb12f){const _0x173033=_0x4d4571;this[_0x173033(0x206)](_0x173033(0x1e9),_0x3cb12f?_0x4e3a12:null);}[_0x4d4571(0x22c)](){const _0x3835df=_0x4d4571,_0x1d7b80=new _0x30575a();return _0x1d7b80[_0x3835df(0x206)]({'content':_0x4be2b4}),_0x1d7b80;}[_0x4d4571(0x1ff)](_0x49f083){const _0x1fcab8=_0x4d4571,_0x9d5610=new _0x474f70(_0x49f083);return _0x9d5610[_0x1fcab8(0x206)]({'label':_0x63e2e0(_0x49f083,_0x1fcab8(0x1f9)),'icon':_0x270198,'withText':!0x1,'tooltip':!0x0}),_0x9d5610[_0x1fcab8(0x23f)](_0x1fcab8(0x202))['to'](this,_0x1fcab8(0x21b)),_0x9d5610['on'](_0x1fcab8(0x21c),()=>{const _0x269216=_0x1fcab8,_0x2ff6e7=!this[_0x269216(0x21b)];this[_0x269216(0x22b)](_0x269216(0x20c),{'id':this['id'],'pinned':_0x2ff6e7});}),_0x9d5610;}[_0x4d4571(0x236)](){const _0x5e6945=_0x4d4571,_0x2d3078=_0x2b5439(this[_0x5e6945(0x23a)],_0x2a3d99),_0x53c1be=_0x2d3078[_0x5e6945(0x226)][_0x5e6945(0x22a)];_0x2d3078[_0x5e6945(0x1ef)][_0x5e6945(0x206)]({'label':_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x205)),'icon':_0x14342d}),_0x2d3078[_0x5e6945(0x1e7)]='sw';const _0x45cadc=new _0x474f70(this[_0x5e6945(0x23a)]);_0x45cadc[_0x5e6945(0x1e6)]=_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x237)),_0x45cadc[_0x5e6945(0x204)]=!0x0,_0x45cadc['on'](_0x5e6945(0x21c),()=>{const _0x5981c1=_0x5e6945;this[_0x5981c1(0x228)]=!0x0;});const _0x4b8be0=new _0x474f70(this[_0x5e6945(0x23a)]);_0x4b8be0[_0x5e6945(0x1e6)]=_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x1e5)),_0x4b8be0[_0x5e6945(0x204)]=!0x0,_0x4b8be0['on'](_0x5e6945(0x21c),()=>{const _0x291d76=_0x5e6945;this[_0x291d76(0x233)](_0x63e2e0(this[_0x291d76(0x23a)],_0x291d76(0x1f2)),this[_0x291d76(0x23e)])[_0x291d76(0x221)](()=>{const _0x340986=_0x291d76;this[_0x340986(0x22b)](_0x340986(0x21f),{'id':this['id']});});});const _0x561527=new _0x363e36(this[_0x5e6945(0x23a)]),_0x3f2505=new _0x37f6b0(this[_0x5e6945(0x23a)]);_0x3f2505[_0x5e6945(0x22a)][_0x5e6945(0x213)](_0x45cadc);const _0x31eff6=new _0x37f6b0(this[_0x5e6945(0x23a)]);return _0x31eff6[_0x5e6945(0x22a)][_0x5e6945(0x213)](_0x4b8be0),_0x561527[_0x5e6945(0x220)][_0x5e6945(0x1fc)]([_0x3f2505,_0x31eff6]),_0x53c1be[_0x5e6945(0x213)](_0x561527),_0x2d3078;}[_0x4d4571(0x1f0)](_0x519a1a,_0x49cfc7){const _0x279a87=_0x4d4571,_0x6e4c46=new _0x5c6e63(_0x519a1a),_0x344c2f=_0x6e4c46[_0x279a87(0x232)];return _0x6e4c46[_0x279a87(0x1eb)]=_0x49cfc7,_0x6e4c46[_0x279a87(0x230)]({'on':{'keydown':_0x344c2f['to'](_0x1c7829=>{const _0x29c9db=_0x279a87;_0x29c9db(0x241)==_0x1c7829[_0x29c9db(0x209)]&&this[_0x29c9db(0x231)](_0x6e4c46);})}}),_0x6e4c46;}[_0x4d4571(0x203)](_0x225821,_0x2b7ea6){const _0x5753bf=_0x4d4571,_0x319b5c=new _0x474f70(_0x225821);return _0x319b5c[_0x5753bf(0x206)]({'icon':_0x4be2b4,'withText':!0x1,'tooltip':_0x63e2e0(_0x225821,_0x5753bf(0x23c))}),_0x319b5c[_0x5753bf(0x230)]({'attributes':{'class':[_0x5753bf(0x234)]}}),_0x319b5c['on'](_0x5753bf(0x21c),()=>{const _0x2e1da4=_0x5753bf;this[_0x2e1da4(0x231)](_0x2b7ea6);}),_0x319b5c;}[_0x4d4571(0x231)](_0x34f14f){const _0x267466=_0x4d4571,_0x441e71=_0x34f14f[_0x267466(0x23e)][_0x267466(0x1eb)]||'';this[_0x267466(0x215)][_0x267466(0x1f1)]=_0x441e71,this[_0x267466(0x228)]=!0x1,this[_0x267466(0x22b)](_0x267466(0x227),{'id':this['id'],'title':_0x441e71});}[_0x4d4571(0x219)](_0x3e695a,_0x4ada9f){const _0x31c96b=_0x4d4571,_0x49ba43=new _0x474f70(_0x3e695a);return _0x49ba43[_0x31c96b(0x206)]({'icon':_0x2ee807,'withText':!0x1,'tooltip':_0x63e2e0(_0x3e695a,_0x31c96b(0x238))}),_0x49ba43[_0x31c96b(0x230)]({'attributes':{'class':[_0x31c96b(0x223)]}}),_0x49ba43['on'](_0x31c96b(0x21c),()=>{const _0x178a15=_0x31c96b;this[_0x178a15(0x228)]=!0x1,_0x4ada9f[_0x178a15(0x1eb)]=this[_0x178a15(0x215)][_0x178a15(0x1f1)]||'',this[_0x178a15(0x22b)](_0x178a15(0x20d));}),_0x49ba43;}[_0x4d4571(0x200)](){const _0x3132c0=_0x4d4571,_0x385491=new _0x193780(_0x3132c0(0x22f));return _0x385491[_0x3132c0(0x1fe)]=!0x0,_0x385491;}[_0x4d4571(0x239)](_0x21aef0){const _0x464561=_0x4d4571;return this[_0x464561(0x215)]&&_0x464561(0x23d)==typeof this[_0x464561(0x215)][_0x464561(0x1f1)]&&this[_0x464561(0x215)][_0x464561(0x1f1)][_0x464561(0x235)](_0x21aef0)?{'title':!0x0}:null;}[_0x4d4571(0x240)](_0x5ece06){const _0xbb7e54=_0x4d4571;this[_0xbb7e54(0x215)][_0xbb7e54(0x240)](_0x5ece06);}}
@@ -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
+ function _0x588e(){const _0x4f6153=['21416196eCyoXX','ck-ai-chat-history__section','addMany','2949222NnPvfF','isVisible','filter','set','removeItem','indexOf','bindTemplate','ck-ai-chat-history__section-title','length','2101lPGBLb','75470ECJtVn','502guBhxs','2641770MnsTvc','highlightText','setTemplate','926958XsWnca','itemsViews','_itemsListView','getItem','2024TSBbcx','remove','isMatching','div','title','splice','items','1481YTUAVM','37870OTedmX','5GifZFh','4XgZHmQ','find','ck-hidden'];_0x588e=function(){return _0x4f6153;};return _0x588e();}const _0x469c9b=_0x3831;function _0x3831(_0x5a90f8,_0x425496){const _0x588ece=_0x588e();return _0x3831=function(_0x383191,_0x187c0b){_0x383191=_0x383191-0x181;let _0x1645f1=_0x588ece[_0x383191];return _0x1645f1;},_0x3831(_0x5a90f8,_0x425496);}(function(_0x474cc5,_0x3b7d35){const _0x485d66=_0x3831,_0x2df645=_0x474cc5();while(!![]){try{const _0x348e28=parseInt(_0x485d66(0x1a2))/0x1*(parseInt(_0x485d66(0x193))/0x2)+parseInt(_0x485d66(0x197))/0x3*(-parseInt(_0x485d66(0x182))/0x4)+-parseInt(_0x485d66(0x181))/0x5*(parseInt(_0x485d66(0x188))/0x6)+parseInt(_0x485d66(0x1a3))/0x7*(parseInt(_0x485d66(0x19b))/0x8)+-parseInt(_0x485d66(0x194))/0x9+-parseInt(_0x485d66(0x192))/0xa*(parseInt(_0x485d66(0x191))/0xb)+parseInt(_0x485d66(0x185))/0xc;if(_0x348e28===_0x3b7d35)break;else _0x2df645['push'](_0x2df645['shift']());}catch(_0x3c522c){_0x2df645['push'](_0x2df645['shift']());}}}(_0x588e,0xf19ae));import{ListItemView as _0x145036,View as _0x31969c,ListView as _0x18120a}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x145036{[_0x469c9b(0x19f)];[_0x469c9b(0x198)];[_0x469c9b(0x199)];constructor(_0x346db5,{title:_0x353684,items:_0x18c6ec}){const _0x458229=_0x469c9b;super(_0x346db5);const _0x37b9ff=this[_0x458229(0x18e)];this[_0x458229(0x18b)](_0x458229(0x189),!0x0),this[_0x458229(0x19f)]=_0x353684,this[_0x458229(0x198)]=_0x18c6ec;const _0x401ce7=new _0x31969c(_0x346db5);_0x401ce7[_0x458229(0x196)]({'tag':_0x458229(0x19e),'attributes':{'class':[_0x458229(0x18f)]},'children':[this[_0x458229(0x19f)]]}),this[_0x458229(0x199)]=new _0x18120a(_0x346db5),this[_0x458229(0x199)][_0x458229(0x1a1)][_0x458229(0x187)](this[_0x458229(0x198)]),this[_0x458229(0x196)]({'tag':'li','attributes':{'class':[_0x458229(0x186),_0x37b9ff['if'](_0x458229(0x189),_0x458229(0x184),_0x1bda68=>!_0x1bda68)]},'children':[_0x401ce7,this[_0x458229(0x199)]]});}[_0x469c9b(0x18a)](_0x4a6c81){const _0x4bcbd2=_0x469c9b,_0x53b6ae=this[_0x4bcbd2(0x198)][_0x4bcbd2(0x190)];let _0x9ddecc=0x0;for(const _0x2c4057 of this[_0x4bcbd2(0x198)]){if(_0x4a6c81){const _0x3e441b=_0x2c4057[_0x4bcbd2(0x19d)](_0x4a6c81);_0x2c4057[_0x4bcbd2(0x189)]=!!_0x3e441b,_0x2c4057[_0x4bcbd2(0x195)](_0x4a6c81);}else _0x2c4057[_0x4bcbd2(0x189)]=!0x0,_0x2c4057[_0x4bcbd2(0x195)](null);_0x2c4057[_0x4bcbd2(0x189)]&&_0x9ddecc++;}return this[_0x4bcbd2(0x189)]=_0x9ddecc>0x0,{'resultsCount':_0x9ddecc,'totalItemsCount':_0x53b6ae};}[_0x469c9b(0x19a)](_0x25ed40){const _0x529d49=_0x469c9b;return this[_0x529d49(0x198)][_0x529d49(0x183)](_0x45cefa=>_0x45cefa['id']===_0x25ed40);}[_0x469c9b(0x18c)](_0x4bae2f){const _0x33ede3=_0x469c9b,_0x5752b1=this[_0x33ede3(0x198)][_0x33ede3(0x18d)](_0x4bae2f);-0x1!==_0x5752b1&&(this[_0x33ede3(0x198)][_0x33ede3(0x1a0)](_0x5752b1,0x1),this[_0x33ede3(0x199)][_0x33ede3(0x1a1)][_0x33ede3(0x19c)](_0x4bae2f));}}
@@ -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
+ const _0x208c18=_0x4f31;(function(_0x4da453,_0x2eb70a){const _0x21f72f=_0x4f31,_0x1b94bb=_0x4da453();while(!![]){try{const _0x471a8a=-parseInt(_0x21f72f(0x1e5))/0x1+-parseInt(_0x21f72f(0x1d9))/0x2+-parseInt(_0x21f72f(0x1e1))/0x3*(parseInt(_0x21f72f(0x1e0))/0x4)+-parseInt(_0x21f72f(0x1e6))/0x5*(-parseInt(_0x21f72f(0x1dc))/0x6)+parseInt(_0x21f72f(0x1e2))/0x7*(parseInt(_0x21f72f(0x1df))/0x8)+-parseInt(_0x21f72f(0x1db))/0x9*(-parseInt(_0x21f72f(0x1dd))/0xa)+-parseInt(_0x21f72f(0x1e4))/0xb*(parseInt(_0x21f72f(0x1ea))/0xc);if(_0x471a8a===_0x2eb70a)break;else _0x1b94bb['push'](_0x1b94bb['shift']());}catch(_0x37c0fd){_0x1b94bb['push'](_0x1b94bb['shift']());}}}(_0x4e09,0xdcd7f));import{ListView as _0x1db815}from'ckeditor5/src/ui.js';function _0x4f31(_0x120cf4,_0x3e87a0){const _0x4e09c5=_0x4e09();return _0x4f31=function(_0x4f31a6,_0x10ac20){_0x4f31a6=_0x4f31a6-0x1d9;let _0x5b9d29=_0x4e09c5[_0x4f31a6];return _0x5b9d29;},_0x4f31(_0x120cf4,_0x3e87a0);}function _0x4e09(){const _0x296b6c=['3575GWCYnp','1610413mInfNV','2898655kSplsm','ck-ai-chat-history__sections','items','filter','564AoLWoi','703146jbSjGH','extendTemplate','133029NfAzkE','12MYBDMu','930SyASex','addMany','3208aFFCdj','1967812dQDSbY','3owKwrJ','14658LYwXFv','sections'];_0x4e09=function(){return _0x296b6c;};return _0x4e09();}export class AIChatHistorySectionListView extends _0x1db815{[_0x208c18(0x1e3)];constructor(_0x4ee320,_0x26cb34){const _0x184103=_0x208c18;super(_0x4ee320),this[_0x184103(0x1e3)]=_0x26cb34,this[_0x184103(0x1e8)][_0x184103(0x1de)](this[_0x184103(0x1e3)]),this[_0x184103(0x1da)]({'attributes':{'class':[_0x184103(0x1e7)]}});}[_0x208c18(0x1e9)](_0x433d7e){const _0x430e20=_0x208c18;let _0x22ec31=0x0,_0x5056a3=0x0;for(const _0x34c433 of this[_0x430e20(0x1e3)]){const {resultsCount:_0x48cf21,totalItemsCount:_0xac9e0b}=_0x34c433[_0x430e20(0x1e9)](_0x433d7e);_0x22ec31+=_0x48cf21,_0x5056a3+=_0xac9e0b;}return{'resultsCount':_0x22ec31,'totalItemsCount':_0x5056a3};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bc240=_0x3566;(function(_0x202c55,_0x101fec){const _0x5b669d=_0x3566,_0x2d8a00=_0x202c55();while(!![]){try{const _0x34d3df=parseInt(_0x5b669d(0x199))/0x1*(-parseInt(_0x5b669d(0x160))/0x2)+parseInt(_0x5b669d(0x150))/0x3*(-parseInt(_0x5b669d(0x178))/0x4)+-parseInt(_0x5b669d(0x197))/0x5*(parseInt(_0x5b669d(0x16e))/0x6)+-parseInt(_0x5b669d(0x164))/0x7*(parseInt(_0x5b669d(0x1a4))/0x8)+parseInt(_0x5b669d(0x154))/0x9*(-parseInt(_0x5b669d(0x19e))/0xa)+parseInt(_0x5b669d(0x14f))/0xb+parseInt(_0x5b669d(0x187))/0xc;if(_0x34d3df===_0x101fec)break;else _0x2d8a00['push'](_0x2d8a00['shift']());}catch(_0x38e711){_0x2d8a00['push'](_0x2d8a00['shift']());}}}(_0x4323,0x2bcac));import{View as _0x5ea6eb,SearchTextView as _0x5188f9,FormHeaderView as _0x1b7c19,ButtonView as _0x3aea82}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x38c996,IconCancel as _0x23b683,IconPlus as _0x57eb52}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x578364}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x54e369}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2fbd68}from'./aichathistorylistitemview.js';function _0x3566(_0x2cbc48,_0x392f46){const _0x432382=_0x4323();return _0x3566=function(_0x35663a,_0x279bf9){_0x35663a=_0x35663a-0x14a;let _0x416e8e=_0x432382[_0x35663a];return _0x416e8e;},_0x3566(_0x2cbc48,_0x392f46);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x348e81}from'../aichathistoryui.js';import{AISkeletonView as _0x3cdc42,SKELETON_DEFINITIONS as _0x24c0a6}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x109d61}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x5d3034}from'../../aicore/utils/common-translations.js';function _0x4323(){const _0x4af6f6=['_refreshSearch','ck-ai-notification_error','627768wyUAHp','errorMessage','change:hasItems','execute','remove','getItem','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:errorMessage','ck-ai-chat-history__empty-message','_createSkeletonView','6721eaarin','18KoOHKe','children','sectionsView','ck-reset_all','3204VMjBqx','indexOf','isVisible','ck-hidden','updateHistoryItemsWithCategories','updateLoadingState','isEmptyViewVisible','isMaximized','ck-ai-chat-history__empty','setTemplate','clear','AI_CHAT_HISTORY_EMPTY_MESSAGE','4yrSOsF','sections','ck-ai-chat-history__content','_createSearchView','7wPaDGe','element','hasItems','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_LABEL','length','removeItem','bindTemplate','fieldView','div','394206BdgZtg','splice','updateItemLoadingState','locale','search','AI_CHAT_HISTORY_HEADING','title','add','bind','resizeButton','125012kABcXx','ck-ai-chat__start-conversation','_createEmptyStateView','ck-ai-notification','ck-rounded-corners','extendTemplate','fire','emptyView','ltr','ck-ai-chat-history','some','aiHistory','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','render','11841324QFRySb','_updateViewVisibility','change:isLoading','value','queryView','push','set','items','updateTitle','removeHistoryItem','itemsViews','delegate','ck-ai-notification_error__dismiss-button','skeletonView','searchView','openChat','25PUiAVV','addMany','77213CzUbPa','updateItemTitle','mainErrorView','isLoading','_createListItemViews','1660aJFbfi','isMainErrorViewVisible','ck-ai-header\x20ck-ai-header_history','isSearchViewVisible'];_0x4323=function(){return _0x4af6f6;};return _0x4323();}export class AIChatHistoryView extends _0x5ea6eb{[_0x3bc240(0x195)];[_0x3bc240(0x19b)];[_0x3bc240(0x194)];[_0x3bc240(0x17f)];[_0x3bc240(0x152)];[_0x3bc240(0x177)];constructor(_0x24c7d4,_0x1eb15b){const _0xcd6b61=_0x3bc240;super(_0x24c7d4),this[_0xcd6b61(0x18d)](_0xcd6b61(0x166),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x19c),!0x0),this[_0xcd6b61(0x18d)](_0xcd6b61(0x1a5),''),this[_0xcd6b61(0x18d)](_0xcd6b61(0x15b),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x1a1),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x15a),!0x1),this[_0xcd6b61(0x18d)](_0xcd6b61(0x19f),!0x1);const _0x1d6baa=new _0x1b7c19(_0x24c7d4,{'label':_0x5d3034(_0x24c7d4,_0xcd6b61(0x173)),'icon':_0x38c996,'class':_0xcd6b61(0x1a0)});_0x1eb15b&&(this[_0xcd6b61(0x177)]=_0x109d61(_0x24c7d4,this),_0x1d6baa[_0xcd6b61(0x151)][_0xcd6b61(0x175)](this[_0xcd6b61(0x177)])),this[_0xcd6b61(0x152)]=new _0x578364(_0x24c7d4,[]),this[_0xcd6b61(0x152)][_0xcd6b61(0x192)](..._0x348e81)['to'](this),this[_0xcd6b61(0x19b)]=this[_0xcd6b61(0x184)](),this[_0xcd6b61(0x194)]=this[_0xcd6b61(0x14e)](),this[_0xcd6b61(0x17f)]=this[_0xcd6b61(0x17a)](),this[_0xcd6b61(0x195)]=this[_0xcd6b61(0x163)](),this[_0xcd6b61(0x19b)][_0xcd6b61(0x17d)]({'attributes':{'class':[this[_0xcd6b61(0x16b)]['if'](_0xcd6b61(0x19f),_0xcd6b61(0x157),_0x7e5569=>!_0x7e5569)]}}),this['on'](_0xcd6b61(0x189),()=>this[_0xcd6b61(0x188)]()),this['on'](_0xcd6b61(0x1a6),()=>this[_0xcd6b61(0x188)]()),this['on'](_0xcd6b61(0x14c),()=>this[_0xcd6b61(0x188)]()),this[_0xcd6b61(0x15d)]({'tag':_0xcd6b61(0x16d),'attributes':{'class':['ck',_0xcd6b61(0x153),_0xcd6b61(0x181),_0xcd6b61(0x17c)],'dir':_0xcd6b61(0x180)},'children':[_0x1d6baa,{'tag':_0xcd6b61(0x16d),'attributes':{'class':[_0xcd6b61(0x162)]},'children':[this[_0xcd6b61(0x194)],this[_0xcd6b61(0x19b)],this[_0xcd6b61(0x17f)],this[_0xcd6b61(0x195)]]}]});}[_0x3bc240(0x188)](){const _0x27a692=_0x3bc240;this[_0x27a692(0x1a1)]=!this[_0x27a692(0x19c)]&&this[_0x27a692(0x166)],this[_0x27a692(0x15a)]=!this[_0x27a692(0x19c)]&&!this[_0x27a692(0x166)]&&!this[_0x27a692(0x1a5)],this[_0x27a692(0x19f)]=!this[_0x27a692(0x1a1)]&&!!this[_0x27a692(0x1a5)];}[_0x3bc240(0x163)](){const _0x155f77=_0x3bc240,_0x4264b4=new _0x5188f9(this[_0x155f77(0x171)],{'filteredView':this[_0x155f77(0x152)],'queryView':{'label':_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x168))},'infoView':{'text':{'notFound':{'primary':_0x3b4144=>_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x14b),_0x3b4144),'secondary':_0x5d3034(this[_0x155f77(0x171)],_0x155f77(0x167))}}}}),_0x55b3e9=this[_0x155f77(0x184)]();return _0x55b3e9[_0x155f77(0x17d)]({'attributes':{'class':[this[_0x155f77(0x16b)]['if'](_0x155f77(0x1a5),_0x155f77(0x157),_0x24679a=>!_0x24679a)]}}),_0x4264b4['on'](_0x155f77(0x186),()=>{const _0x132f34=_0x155f77;_0x4264b4[_0x132f34(0x151)][_0x132f34(0x175)](_0x55b3e9,0x1);}),_0x4264b4[_0x155f77(0x17d)]({'attributes':{'class':[this[_0x155f77(0x16b)]['if'](_0x155f77(0x1a1),_0x155f77(0x157),_0x36fc89=>!_0x36fc89)]}}),_0x4264b4;}[_0x3bc240(0x14e)](){const _0x40530c=_0x3bc240,_0x5ce99a=new _0x3cdc42(this[_0x40530c(0x171)],_0x24c0a6[_0x40530c(0x183)]);return _0x5ce99a[_0x40530c(0x17d)]({'attributes':{'class':[this[_0x40530c(0x16b)]['if'](_0x40530c(0x19c),_0x40530c(0x157),_0x52c8e1=>!_0x52c8e1)]}}),_0x5ce99a;}[_0x3bc240(0x184)](){const _0x52810c=_0x3bc240,_0x37f4cf=new _0x5ea6eb(this[_0x52810c(0x171)]),_0x2024cb=new _0x3aea82(this[_0x52810c(0x171)]);_0x2024cb[_0x52810c(0x18d)]({'withText':!0x1,'icon':_0x23b683,'class':_0x52810c(0x193)}),_0x2024cb[_0x52810c(0x176)](_0x52810c(0x156))['to'](this,_0x52810c(0x166),_0x15a151=>!!_0x15a151),_0x2024cb['on'](_0x52810c(0x1a7),()=>{const _0x17f001=_0x52810c;this[_0x17f001(0x1a5)]='';});const _0x1a4d7b=this[_0x52810c(0x16b)];return _0x37f4cf[_0x52810c(0x15d)]({'tag':_0x52810c(0x16d),'attributes':{'class':['ck',_0x52810c(0x17b),_0x52810c(0x1a3)]},'children':[{'tag':'p','children':[{'text':_0x1a4d7b['to'](_0x52810c(0x1a5))}]},_0x2024cb]}),_0x37f4cf;}[_0x3bc240(0x17a)](){const _0x25a15a=_0x3bc240,_0x5100e8=new _0x3aea82(this[_0x25a15a(0x171)]);_0x5100e8[_0x25a15a(0x18d)]({'label':_0x5d3034(this[_0x25a15a(0x171)],_0x25a15a(0x185)),'withText':!0x0,'icon':_0x57eb52,'class':_0x25a15a(0x179)}),_0x5100e8['on'](_0x25a15a(0x1a7),()=>{const _0x2de3de=_0x25a15a;this[_0x2de3de(0x17e)](_0x2de3de(0x196));});const _0x3086d4=new _0x5ea6eb(this[_0x25a15a(0x171)]);return _0x3086d4[_0x25a15a(0x15d)]({'tag':_0x25a15a(0x16d),'attributes':{'class':[_0x25a15a(0x15c),this[_0x25a15a(0x16b)]['if'](_0x25a15a(0x15a),_0x25a15a(0x157),_0x5b80fd=>!_0x5b80fd)]},'children':[{'tag':'p','attributes':{'class':[_0x25a15a(0x14d)]},'children':[_0x5d3034(this[_0x25a15a(0x171)],_0x25a15a(0x15f))]},_0x5100e8]}),_0x3086d4;}[_0x3bc240(0x19d)](_0x3837ae,_0x11bfad){const _0x2670a3=_0x3bc240,_0x31b72d=[];for(const _0x31179a of _0x3837ae){const _0x21f21a=new _0x2fbd68(_0x11bfad,_0x31179a);_0x21f21a[_0x2670a3(0x192)](..._0x348e81)['to'](this),_0x31b72d[_0x2670a3(0x18c)](_0x21f21a);}return _0x31b72d;}[_0x3bc240(0x158)](_0x32f7a1){const _0x3906c0=_0x3bc240,_0x4314eb=this[_0x3906c0(0x171)]||'en',_0x31d620=[];for(const _0x5a3527 of _0x32f7a1){const _0x599ad8=this[_0x3906c0(0x19d)](_0x5a3527[_0x3906c0(0x18e)],_0x4314eb);_0x31d620[_0x3906c0(0x18c)](new _0x54e369(_0x4314eb,{'title':_0x5a3527[_0x3906c0(0x174)],'items':_0x599ad8}));}this[_0x3906c0(0x152)][_0x3906c0(0x161)]=_0x31d620,this[_0x3906c0(0x152)][_0x3906c0(0x18e)][_0x3906c0(0x15e)](),this[_0x3906c0(0x152)][_0x3906c0(0x18e)][_0x3906c0(0x198)](_0x31d620),this[_0x3906c0(0x166)]=_0x32f7a1[_0x3906c0(0x182)](_0x217abb=>_0x217abb[_0x3906c0(0x18e)][_0x3906c0(0x169)]>0x0),this[_0x3906c0(0x1a2)]();}[_0x3bc240(0x190)](_0x572ffe){const _0x4b9ac7=_0x3bc240;for(const _0xcae5e1 of this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)]){const _0x435f07=_0xcae5e1[_0x4b9ac7(0x14a)](_0x572ffe);if(_0x435f07){if(_0xcae5e1[_0x4b9ac7(0x16a)](_0x435f07),0x0===_0xcae5e1[_0x4b9ac7(0x191)][_0x4b9ac7(0x169)]){const _0x4ef223=this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x155)](_0xcae5e1);-0x1!==_0x4ef223&&(this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x16f)](_0x4ef223,0x1),this[_0x4b9ac7(0x152)][_0x4b9ac7(0x18e)][_0x4b9ac7(0x1a8)](_0xcae5e1));}this[_0x4b9ac7(0x166)]=this[_0x4b9ac7(0x152)][_0x4b9ac7(0x161)][_0x4b9ac7(0x169)]>0x0,this[_0x4b9ac7(0x1a2)]();break;}}}[_0x3bc240(0x19a)](_0x3ffb19,_0x1d951c){const _0x44c19d=_0x3bc240;for(const _0x3f5325 of this[_0x44c19d(0x152)][_0x44c19d(0x161)]){const _0x330c98=_0x3f5325[_0x44c19d(0x14a)](_0x3ffb19);if(_0x330c98){_0x330c98[_0x44c19d(0x18f)](_0x1d951c);break;}}}[_0x3bc240(0x170)](_0x27c82d,_0xc86a84,_0x98a7dc){const _0x5f521f=_0x3bc240;for(const _0x1a6095 of this[_0x5f521f(0x152)][_0x5f521f(0x161)]){const _0x1654ed=_0x1a6095[_0x5f521f(0x14a)](_0x27c82d);if(_0x1654ed){_0x1654ed[_0x5f521f(0x159)](_0xc86a84,_0x98a7dc);break;}}}[_0x3bc240(0x1a2)](){const _0x36d468=_0x3bc240;if(this[_0x36d468(0x166)]){const _0x1f2f33=this[_0x36d468(0x195)][_0x36d468(0x18b)][_0x36d468(0x16c)]?.[_0x36d468(0x165)]?.[_0x36d468(0x18a)]||'';this[_0x36d468(0x195)][_0x36d468(0x172)](_0x1f2f33);}}}
23
+ const _0x37f596=_0x2893;(function(_0xec30fb,_0x41b29d){const _0x2d8f05=_0x2893,_0x464382=_0xec30fb();while(!![]){try{const _0x29f07c=parseInt(_0x2d8f05(0x12c))/0x1+-parseInt(_0x2d8f05(0x135))/0x2+parseInt(_0x2d8f05(0x13e))/0x3+-parseInt(_0x2d8f05(0x147))/0x4+parseInt(_0x2d8f05(0x13f))/0x5*(-parseInt(_0x2d8f05(0x155))/0x6)+parseInt(_0x2d8f05(0x156))/0x7*(parseInt(_0x2d8f05(0x15e))/0x8)+-parseInt(_0x2d8f05(0x169))/0x9*(-parseInt(_0x2d8f05(0x121))/0xa);if(_0x29f07c===_0x41b29d)break;else _0x464382['push'](_0x464382['shift']());}catch(_0x18f504){_0x464382['push'](_0x464382['shift']());}}}(_0x428c,0x3bd86));import{View as _0x45f2bc,SearchTextView as _0x4e76bd,FormHeaderView as _0x3afe3b,ButtonView as _0x47136c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5a65f0,IconCancel as _0x135f2d,IconPlus as _0x47656f}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0xfd5b67}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xbf3f86}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5b0950}from'./aichathistorylistitemview.js';function _0x2893(_0x2c73d9,_0x2883af){const _0x428cab=_0x428c();return _0x2893=function(_0x289310,_0x1d47c1){_0x289310=_0x289310-0x119;let _0x3ff60a=_0x428cab[_0x289310];return _0x3ff60a;},_0x2893(_0x2c73d9,_0x2883af);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3e06ba}from'../aichathistoryui.js';function _0x428c(){const _0x1eddd5=['253842KrkRcV','236180WcQEkE','isMaximized','set','removeItem','items','queryView','emptyView','setTemplate','1656288IdeKmA','skeletonView','ck-ai-chat-history__empty','isEmptyViewVisible','addMany','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','fire','openChat','AI_CHAT_HISTORY_HEADING','some','delegate','errorMessage','ck-ai-chat-history__content','48DGZFug','301xjoaDC','change:isLoading','_createEmptyStateView','removeHistoryItem','remove','title','ck-ai-notification','change:errorMessage','61064VYbiMi','_createErrorView','updateItemLoadingState','length','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','mainErrorView','sections','ck-ai-chat-history__empty-message','itemsViews','1679121JCDaxp','clear','getItem','extendTemplate','isLoading','fieldView','resizeButton','searchView','children','bindTemplate','updateLoadingState','change:hasItems','locale','render','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','add','hasItems','isVisible','execute','ck-ai-notification_error','20XChajo','isSearchViewVisible','_refreshSearch','value','push','search','indexOf','AI_CHAT_LABEL_NEW_CHAT','aiHistory','updateHistoryItemsWithCategories','element','297601gNLJnS','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat__start-conversation','bind','_updateViewVisibility','updateItemTitle','_createSkeletonView','isMainErrorViewVisible','ltr','92972nDLBCw','updateTitle','div','_createListItemViews','ck-ai-header\x20ck-ai-header_history','splice','ck-ai-chat-history','ck-hidden','ck-rounded-corners'];_0x428c=function(){return _0x1eddd5;};return _0x428c();}import{AISkeletonView as _0xa1e543,SKELETON_DEFINITIONS as _0xed0d08}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e4a83}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x572a36}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x45f2bc{[_0x37f596(0x170)];[_0x37f596(0x165)];[_0x37f596(0x148)];[_0x37f596(0x145)];[_0x37f596(0x164)];[_0x37f596(0x16f)];constructor(_0x580660,_0x2d26da){const _0x4a0337=_0x37f596;super(_0x580660),this[_0x4a0337(0x141)](_0x4a0337(0x11d),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x16d),!0x0),this[_0x4a0337(0x141)](_0x4a0337(0x153),''),this[_0x4a0337(0x141)](_0x4a0337(0x140),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x122),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x14a),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x133),!0x1);const _0x22515a=new _0x3afe3b(_0x580660,{'label':_0x572a36(_0x580660,_0x4a0337(0x150)),'icon':_0x5a65f0,'class':_0x4a0337(0x139)});_0x2d26da&&(this[_0x4a0337(0x16f)]=_0x4e4a83(_0x580660,this),_0x22515a[_0x4a0337(0x171)][_0x4a0337(0x11c)](this[_0x4a0337(0x16f)])),this[_0x4a0337(0x164)]=new _0xfd5b67(_0x580660,[]),this[_0x4a0337(0x164)][_0x4a0337(0x152)](..._0x3e06ba)['to'](this),this[_0x4a0337(0x165)]=this[_0x4a0337(0x15f)](),this[_0x4a0337(0x148)]=this[_0x4a0337(0x132)](),this[_0x4a0337(0x145)]=this[_0x4a0337(0x158)](),this[_0x4a0337(0x170)]=this[_0x4a0337(0x11a)](),this[_0x4a0337(0x165)][_0x4a0337(0x16c)]({'attributes':{'class':[this[_0x4a0337(0x172)]['if'](_0x4a0337(0x133),_0x4a0337(0x13c),_0x2268d4=>!_0x2268d4)]}}),this['on'](_0x4a0337(0x157),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x174),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x15d),()=>this[_0x4a0337(0x130)]()),this[_0x4a0337(0x146)]({'tag':_0x4a0337(0x137),'attributes':{'class':['ck',_0x4a0337(0x162),_0x4a0337(0x13b),_0x4a0337(0x13d)],'dir':_0x4a0337(0x134)},'children':[_0x22515a,{'tag':_0x4a0337(0x137),'attributes':{'class':[_0x4a0337(0x154)]},'children':[this[_0x4a0337(0x148)],this[_0x4a0337(0x165)],this[_0x4a0337(0x145)],this[_0x4a0337(0x170)]]}]});}[_0x37f596(0x130)](){const _0x491023=_0x37f596;this[_0x491023(0x122)]=!this[_0x491023(0x16d)]&&this[_0x491023(0x11d)],this[_0x491023(0x14a)]=!this[_0x491023(0x16d)]&&!this[_0x491023(0x11d)]&&!this[_0x491023(0x153)],this[_0x491023(0x133)]=!this[_0x491023(0x122)]&&!!this[_0x491023(0x153)];}[_0x37f596(0x11a)](){const _0x17487b=_0x37f596,_0x12b872=new _0x4e76bd(this[_0x17487b(0x175)],{'filteredView':this[_0x17487b(0x164)],'queryView':{'label':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x12d))},'infoView':{'text':{'notFound':{'primary':_0x308faf=>_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x14d),_0x308faf),'secondary':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x163))}}}}),_0x29f073=this[_0x17487b(0x15f)]();return _0x29f073[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x153),_0x17487b(0x13c),_0x208dfc=>!_0x208dfc)]}}),_0x12b872['on'](_0x17487b(0x119),()=>{const _0x4857ca=_0x17487b;_0x12b872[_0x4857ca(0x171)][_0x4857ca(0x11c)](_0x29f073,0x1);}),_0x12b872[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x122),_0x17487b(0x13c),_0x1828c8=>!_0x1828c8)]}}),_0x12b872;}[_0x37f596(0x132)](){const _0xe391da=_0x37f596,_0x29b140=new _0xa1e543(this[_0xe391da(0x175)],_0xed0d08[_0xe391da(0x129)]);return _0x29b140[_0xe391da(0x16c)]({'attributes':{'class':[this[_0xe391da(0x172)]['if'](_0xe391da(0x16d),_0xe391da(0x13c),_0x19c9b4=>!_0x19c9b4)]}}),_0x29b140;}[_0x37f596(0x15f)](){const _0x1a3bcc=_0x37f596,_0x5972cd=new _0x45f2bc(this[_0x1a3bcc(0x175)]),_0x16b1fb=new _0x47136c(this[_0x1a3bcc(0x175)]);_0x16b1fb[_0x1a3bcc(0x141)]({'withText':!0x1,'icon':_0x135f2d,'class':_0x1a3bcc(0x14c)}),_0x16b1fb[_0x1a3bcc(0x12f)](_0x1a3bcc(0x11e))['to'](this,_0x1a3bcc(0x11d),_0x51b2d7=>!!_0x51b2d7),_0x16b1fb['on'](_0x1a3bcc(0x11f),()=>{const _0x932e14=_0x1a3bcc;this[_0x932e14(0x153)]='';});const _0x2f92e2=this[_0x1a3bcc(0x172)];return _0x5972cd[_0x1a3bcc(0x146)]({'tag':_0x1a3bcc(0x137),'attributes':{'class':['ck',_0x1a3bcc(0x15c),_0x1a3bcc(0x120)]},'children':[{'tag':'p','children':[{'text':_0x2f92e2['to'](_0x1a3bcc(0x153))}]},_0x16b1fb]}),_0x5972cd;}[_0x37f596(0x158)](){const _0x46a3bc=_0x37f596,_0xd54ed3=new _0x47136c(this[_0x46a3bc(0x175)]);_0xd54ed3[_0x46a3bc(0x141)]({'label':_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x128)),'withText':!0x0,'icon':_0x47656f,'class':_0x46a3bc(0x12e)}),_0xd54ed3['on'](_0x46a3bc(0x11f),()=>{const _0x47db70=_0x46a3bc;this[_0x47db70(0x14e)](_0x47db70(0x14f));});const _0x14ab30=new _0x45f2bc(this[_0x46a3bc(0x175)]);return _0x14ab30[_0x46a3bc(0x146)]({'tag':_0x46a3bc(0x137),'attributes':{'class':[_0x46a3bc(0x149),this[_0x46a3bc(0x172)]['if'](_0x46a3bc(0x14a),_0x46a3bc(0x13c),_0x404c3b=>!_0x404c3b)]},'children':[{'tag':'p','attributes':{'class':[_0x46a3bc(0x167)]},'children':[_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x11b))]},_0xd54ed3]}),_0x14ab30;}[_0x37f596(0x138)](_0x29eef3,_0x1181fc){const _0x332e26=_0x37f596,_0x50206e=[];for(const _0xd51cca of _0x29eef3){const _0x1baae1=new _0x5b0950(_0x1181fc,_0xd51cca);_0x1baae1[_0x332e26(0x152)](..._0x3e06ba)['to'](this),_0x50206e[_0x332e26(0x125)](_0x1baae1);}return _0x50206e;}[_0x37f596(0x12a)](_0xdb6975){const _0x3622fd=_0x37f596,_0x362405=this[_0x3622fd(0x175)]||'en',_0x5cba96=[];for(const _0x55a928 of _0xdb6975){const _0x351664=this[_0x3622fd(0x138)](_0x55a928[_0x3622fd(0x143)],_0x362405);_0x5cba96[_0x3622fd(0x125)](new _0xbf3f86(_0x362405,{'title':_0x55a928[_0x3622fd(0x15b)],'items':_0x351664}));}this[_0x3622fd(0x164)][_0x3622fd(0x166)]=_0x5cba96,this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x16a)](),this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x14b)](_0x5cba96),this[_0x3622fd(0x11d)]=_0xdb6975[_0x3622fd(0x151)](_0x12c467=>_0x12c467[_0x3622fd(0x143)][_0x3622fd(0x161)]>0x0),this[_0x3622fd(0x123)]();}[_0x37f596(0x159)](_0x166d92){const _0x5dce56=_0x37f596;for(const _0x4da890 of this[_0x5dce56(0x164)][_0x5dce56(0x166)]){const _0x4ef4a1=_0x4da890[_0x5dce56(0x16b)](_0x166d92);if(_0x4ef4a1){if(_0x4da890[_0x5dce56(0x142)](_0x4ef4a1),0x0===_0x4da890[_0x5dce56(0x168)][_0x5dce56(0x161)]){const _0x1cbfd2=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x127)](_0x4da890);-0x1!==_0x1cbfd2&&(this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x13a)](_0x1cbfd2,0x1),this[_0x5dce56(0x164)][_0x5dce56(0x143)][_0x5dce56(0x15a)](_0x4da890));}this[_0x5dce56(0x11d)]=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x161)]>0x0,this[_0x5dce56(0x123)]();break;}}}[_0x37f596(0x131)](_0x4fc99a,_0x2329a9){const _0x56353f=_0x37f596;for(const _0x4cf86b of this[_0x56353f(0x164)][_0x56353f(0x166)]){const _0x804169=_0x4cf86b[_0x56353f(0x16b)](_0x4fc99a);if(_0x804169){_0x804169[_0x56353f(0x136)](_0x2329a9);break;}}}[_0x37f596(0x160)](_0x4baf5e,_0x4eb411,_0x41aa4c){const _0x175d5c=_0x37f596;for(const _0x1a1e78 of this[_0x175d5c(0x164)][_0x175d5c(0x166)]){const _0x4a4084=_0x1a1e78[_0x175d5c(0x16b)](_0x4baf5e);if(_0x4a4084){_0x4a4084[_0x175d5c(0x173)](_0x4eb411,_0x41aa4c);break;}}}[_0x37f596(0x123)](){const _0x1274dd=_0x37f596;if(this[_0x1274dd(0x11d)]){const _0x54191f=this[_0x1274dd(0x170)][_0x1274dd(0x144)][_0x1274dd(0x16e)]?.[_0x1274dd(0x12b)]?.[_0x1274dd(0x124)]||'';this[_0x1274dd(0x170)][_0x1274dd(0x126)](_0x54191f);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf0af77=_0x3a78;(function(_0x455874,_0x11bb7c){const _0x314b04=_0x3a78,_0x231848=_0x455874();while(!![]){try{const _0xce5d50=parseInt(_0x314b04(0x1ac))/0x1*(parseInt(_0x314b04(0x1e3))/0x2)+parseInt(_0x314b04(0x1e2))/0x3*(parseInt(_0x314b04(0x1e1))/0x4)+parseInt(_0x314b04(0x1ab))/0x5+-parseInt(_0x314b04(0x1d2))/0x6*(-parseInt(_0x314b04(0x1de))/0x7)+parseInt(_0x314b04(0x1bc))/0x8+parseInt(_0x314b04(0x1ba))/0x9*(parseInt(_0x314b04(0x1b1))/0xa)+-parseInt(_0x314b04(0x1a2))/0xb*(parseInt(_0x314b04(0x1a5))/0xc);if(_0xce5d50===_0x11bb7c)break;else _0x231848['push'](_0x231848['shift']());}catch(_0x5274e5){_0x231848['push'](_0x231848['shift']());}}}(_0x29c8,0x25149));import{AIChatUI as _0x32b134}from'../aichat/aichatui.js';import{ContextPlugin as _0x2ea68f}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x3c6327}from'./ui/aichatshortcutsview.js';function _0x29c8(){const _0x6813db=['6eZafeX','prompt','forEach','hasFeedItem','label','reviewMode','string','get','AITranslateUI','type','CHAT','activeConversation','2110017YqGECj','_shortcuts','translate','60TdCKIR','59439mtSTwZ','179056WYlrym','AITabs','AIChatController','_runTranslateShortcut','destroy','review','AIChat','_executeShortcut','execute','element','params','config','plugins','interactionStarted','removeFeedItem','context','ai-chat-shortcuts-ai-tabs-not-found','length','fire','focusPromptInput','TRANSLATE','_shortcutsView','find','ai.chat.shortcuts','check','addFeedItemCustomElement','AIReviewModeUI','_validateShortcuts','chatModels','517QfILBv','activateTab','custom','307428cQcXEi','sendMessage','isPremiumPlugin','setReasoning','init','setPromptInputValue','1280830xpFldw','1TNZefX','source','_injectShortcuts','language','pluginName','10oMKYaS','_runChatShortcut','values','chat','locale','runReviewCheck','ai-chat-shortcuts-translate-not-found','ai-chat-shortcuts-review-mode-not-found','getModel','1932129lntwPH','conversationCreated','1575784zzFMkB','setModel','_removeShortcuts','requires','_runReviewShortcut','listenTo','addCurrentDocumentToChatContext','chat-shortcuts','includes','has','ai-chat-shortcuts-invalid-config','REVIEW','setWebSearch','_switchTab','view','AIChatShortcuts','getDefault','isFromHistory','args','isOfficialPlugin','_aiChatUI','render'];_0x29c8=function(){return _0x6813db;};return _0x29c8();}import{CKEditorError as _0x3a66bd}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0xf0af77(0x1c3);function _0x3a78(_0x1d5fbd,_0x50c64e){const _0x29c874=_0x29c8();return _0x3a78=function(_0x3a7896,_0x294c41){_0x3a7896=_0x3a7896-0x19d;let _0x3b620a=_0x29c874[_0x3a7896];return _0x3b620a;},_0x3a78(_0x1d5fbd,_0x50c64e);}export var AIChatShortcutType;!function(_0x2999bb){const _0x3b8b62=_0xf0af77;_0x2999bb[_0x3b8b62(0x1dc)]=_0x3b8b62(0x1b4),_0x2999bb[_0x3b8b62(0x1c7)]=_0x3b8b62(0x1e8),_0x2999bb[_0x3b8b62(0x1f7)]=_0x3b8b62(0x1e0);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x2ea68f{[_0xf0af77(0x1df)];[_0xf0af77(0x1f8)];[_0xf0af77(0x1d0)];static get[_0xf0af77(0x1bf)](){return[_0x32b134];}static get[_0xf0af77(0x1b0)](){const _0x3ee06a=_0xf0af77;return _0x3ee06a(0x1cb);}static get[_0xf0af77(0x1cf)](){return!0x0;}static get[_0xf0af77(0x1a7)](){return!0x0;}[_0xf0af77(0x1a9)](){const _0x56e493=_0xf0af77;this[_0x56e493(0x1d0)]=this[_0x56e493(0x1f2)][_0x56e493(0x1ef)][_0x56e493(0x1d9)](_0x32b134),this[_0x56e493(0x1df)]=this[_0x56e493(0x1f2)][_0x56e493(0x1ee)][_0x56e493(0x1d9)](_0x56e493(0x1fa))??[];const _0x567186=this[_0x56e493(0x1f2)][_0x56e493(0x1ef)][_0x56e493(0x1d9)](_0x56e493(0x1e5));this[_0x56e493(0x1df)][_0x56e493(0x1f4)]&&(this[_0x56e493(0x1a0)](),this[_0x56e493(0x1d0)]['on'](_0x56e493(0x1bb),()=>{const _0x128602=_0x56e493;_0x567186[_0x128602(0x1dd)][_0x128602(0x1cd)]||this[_0x128602(0x1ae)]();}),this[_0x56e493(0x1c1)](_0x567186,_0x56e493(0x1f0),()=>{const _0x353e34=_0x56e493;this[_0x353e34(0x1be)]();}));}[_0xf0af77(0x1a0)](){const _0x2043c2=_0xf0af77,_0x5e11f4=Object[_0x2043c2(0x1b3)](AIChatShortcutType);this[_0x2043c2(0x1df)][_0x2043c2(0x1d4)](_0x21e2dc=>{const _0x54191d=_0x2043c2;let _0x22831b=!0x0;if(_0x21e2dc['id']&&_0x21e2dc[_0x54191d(0x1d6)]&&_0x5e11f4[_0x54191d(0x1c4)](_0x21e2dc[_0x54191d(0x1db)])?_0x54191d(0x1b4)===_0x21e2dc[_0x54191d(0x1db)]&&(_0x22831b=_0x54191d(0x1d8)==typeof _0x21e2dc[_0x54191d(0x1d3)]):_0x22831b=!0x1,!_0x22831b)throw new _0x3a66bd(_0x54191d(0x1c6),this[_0x54191d(0x1f2)],{'shortcut':_0x21e2dc});});}[_0xf0af77(0x1ae)](){const _0x356e3b=_0xf0af77,_0xa75df0=this[_0x356e3b(0x1f2)][_0x356e3b(0x1ef)][_0x356e3b(0x1d9)](_0x32b134);this[_0x356e3b(0x1f8)]=new _0x3c6327(this[_0x356e3b(0x1f2)][_0x356e3b(0x1b5)],this[_0x356e3b(0x1df)]),this[_0x356e3b(0x1f8)][_0x356e3b(0x1d1)](),_0xa75df0[_0x356e3b(0x19e)](this[_0x356e3b(0x1f8)][_0x356e3b(0x1ec)],Ut),this[_0x356e3b(0x1f8)]['on'](_0x356e3b(0x1eb),_0x4eba19=>{const _0x84c7c2=_0x356e3b,_0x553d45=_0x4eba19[_0x84c7c2(0x1ad)]['id'];this[_0x84c7c2(0x1ea)](_0x553d45);});}[_0xf0af77(0x1be)](){const _0x28bf11=_0xf0af77,_0x35db94=this[_0x28bf11(0x1f2)][_0x28bf11(0x1ef)][_0x28bf11(0x1d9)](_0x32b134);_0x35db94[_0x28bf11(0x1d5)](Ut)&&_0x35db94[_0x28bf11(0x1f1)](Ut),this[_0x28bf11(0x1f8)]?.[_0x28bf11(0x1e7)]();}[_0xf0af77(0x1ea)](_0x28dd6f){const _0x272d72=_0xf0af77,_0x36e451=this[_0x272d72(0x1df)][_0x272d72(0x1f9)](_0x4001fb=>_0x4001fb['id']===_0x28dd6f),_0x5935c4=_0x36e451[_0x272d72(0x1db)];_0x272d72(0x1b4)===_0x5935c4?this[_0x272d72(0x1b2)](_0x36e451):_0x272d72(0x1e8)===_0x5935c4?_0x36e451[_0x272d72(0x19d)]?this[_0x272d72(0x1c0)](_0x36e451):this[_0x272d72(0x1c9)](_0x272d72(0x1d7)):_0x272d72(0x1e0)===_0x5935c4&&(_0x36e451[_0x272d72(0x1af)]?this[_0x272d72(0x1e6)](_0x36e451):this[_0x272d72(0x1c9)](_0x272d72(0x1e0)));}[_0xf0af77(0x1c9)](_0x19d9ee){const _0x10f84f=_0xf0af77;if(!this[_0x10f84f(0x1f2)][_0x10f84f(0x1ef)][_0x10f84f(0x1c5)](_0x10f84f(0x1e4)))throw new _0x3a66bd(_0x10f84f(0x1f3),this[_0x10f84f(0x1f2)],{'tabName':_0x19d9ee});this[_0x10f84f(0x1f2)][_0x10f84f(0x1ef)][_0x10f84f(0x1d9)](_0x10f84f(0x1e4))[_0x10f84f(0x1ca)][_0x10f84f(0x1a3)](_0x19d9ee);}async[_0xf0af77(0x1b2)]({prompt:_0x4087e7,draftMode:_0x5e7078,useWebSearch:_0x57707c=!0x1,useReasoning:_0x466453=!0x1,model:_0x1d433b}){const _0x33aa4c=_0xf0af77,_0x22fd98=this[_0x33aa4c(0x1f2)][_0x33aa4c(0x1ef)][_0x33aa4c(0x1d9)](_0x33aa4c(0x1e9)),_0x55dee3=this[_0x33aa4c(0x1f2)][_0x33aa4c(0x1ef)][_0x33aa4c(0x1d9)](_0x33aa4c(0x1e5)),_0x5ecea1=_0x55dee3[_0x33aa4c(0x1dd)];let _0x33ff05;_0x33ff05=_0x1d433b?await _0x5ecea1[_0x33aa4c(0x1a1)][_0x33aa4c(0x1b9)](_0x1d433b):await _0x5ecea1[_0x33aa4c(0x1a1)][_0x33aa4c(0x1cc)](),_0x33ff05&&await _0x5ecea1[_0x33aa4c(0x1bd)](_0x33ff05),_0x5ecea1[_0x33aa4c(0x1c8)](_0x57707c),_0x5ecea1[_0x33aa4c(0x1a8)](_0x466453),_0x55dee3[_0x33aa4c(0x1c2)](),_0x5e7078?(this[_0x33aa4c(0x1d0)][_0x33aa4c(0x1aa)](_0x4087e7),this[_0x33aa4c(0x1d0)][_0x33aa4c(0x1f6)](!0x0)):_0x22fd98[_0x33aa4c(0x1a6)]({'message':_0x4087e7});}[_0xf0af77(0x1c0)]({check:_0x5e81de,model:_0x1150d2,prompt:_0x3287fb,params:_0x4a399e}){const _0x9be03=_0xf0af77;if(!this[_0x9be03(0x1f2)][_0x9be03(0x1ef)][_0x9be03(0x1c5)](_0x9be03(0x19f)))throw new _0x3a66bd(_0x9be03(0x1b8),this[_0x9be03(0x1f2)]);this[_0x9be03(0x1c9)](_0x9be03(0x1d7));const _0x2b6943={'id':_0x5e81de,'isCustom':_0x9be03(0x1a4)===_0x5e81de};_0x1150d2&&_0x3287fb&&(_0x2b6943[_0x9be03(0x1ce)]={'model':_0x1150d2,'prompt':_0x3287fb}),_0x4a399e&&(_0x2b6943[_0x9be03(0x1ed)]=_0x4a399e),this[_0x9be03(0x1f2)][_0x9be03(0x1ef)][_0x9be03(0x1d9)](_0x9be03(0x19f))[_0x9be03(0x1f5)](_0x9be03(0x1b6),_0x2b6943);}[_0xf0af77(0x1e6)]({language:_0x535f60}){const _0x1c453a=_0xf0af77;if(!this[_0x1c453a(0x1f2)][_0x1c453a(0x1ef)][_0x1c453a(0x1c5)](_0x1c453a(0x1da)))throw new _0x3a66bd(_0x1c453a(0x1b7),this[_0x1c453a(0x1f2)]);this[_0x1c453a(0x1c9)](_0x1c453a(0x1e0)),this[_0x1c453a(0x1f2)][_0x1c453a(0x1ef)][_0x1c453a(0x1d9)](_0x1c453a(0x1da))[_0x1c453a(0x1f5)](_0x1c453a(0x1b6),{'id':_0x535f60,'args':{'language':_0x535f60}});}}
23
+ function _0x3a29(){const _0x499d86=['_runTranslateShortcut','ai.chat.shortcuts','custom','length','runReviewCheck','_aiChatUI','find','get','9sOzmZJ','_validateShortcuts','type','label','reviewMode','CHAT','REVIEW','view','plugins','AIChat','_switchTab','has','element','ai-chat-shortcuts-ai-tabs-not-found','activeConversation','render','activateTab','TRANSLATE','prompt','addCurrentDocumentToChatContext','removeFeedItem','isOfficialPlugin','locale','fire','config','_injectShortcuts','11180KlSmXb','includes','language','_runChatShortcut','isFromHistory','interactionStarted','source','setModel','addFeedItemCustomElement','string','16944100UjXlIX','AIReviewModeUI','forEach','AIChatController','values','focusPromptInput','init','AITranslateUI','_shortcutsView','ai-chat-shortcuts-review-mode-not-found','listenTo','_runReviewShortcut','ai-chat-shortcuts-invalid-config','1205wJPXse','chat-shortcuts','24EclmEK','params','_removeShortcuts','sendMessage','409360VyhJzM','requires','execute','pluginName','destroy','AIChatShortcuts','AITabs','setWebSearch','2345336YKNiqn','chat','ai-chat-shortcuts-translate-not-found','95298PjQzMW','11aBNhuJ','review','getModel','getDefault','hasFeedItem','_shortcuts','conversationCreated','isPremiumPlugin','args','context','36700836hZYFlI','translate','_executeShortcut','2179513hHslEX','setReasoning','chatModels','check','setPromptInputValue','2XYertV'];_0x3a29=function(){return _0x499d86;};return _0x3a29();}function _0x1568(_0x5abfe3,_0x5f39a1){const _0x3a29a0=_0x3a29();return _0x1568=function(_0x156892,_0x3f682b){_0x156892=_0x156892-0x104;let _0x5b5cd6=_0x3a29a0[_0x156892];return _0x5b5cd6;},_0x1568(_0x5abfe3,_0x5f39a1);}const _0x3f6819=_0x1568;(function(_0x37d213,_0x559b4f){const _0x530a11=_0x1568,_0x4cf06d=_0x37d213();while(!![]){try{const _0x1b81dd=parseInt(_0x530a11(0x154))/0x1+parseInt(_0x530a11(0x114))/0x2*(parseInt(_0x530a11(0x15f))/0x3)+parseInt(_0x530a11(0x137))/0x4*(parseInt(_0x530a11(0x14e))/0x5)+-parseInt(_0x530a11(0x150))/0x6*(parseInt(_0x530a11(0x10f))/0x7)+-parseInt(_0x530a11(0x15c))/0x8*(parseInt(_0x530a11(0x11d))/0x9)+-parseInt(_0x530a11(0x141))/0xa+-parseInt(_0x530a11(0x160))/0xb*(-parseInt(_0x530a11(0x10c))/0xc);if(_0x1b81dd===_0x559b4f)break;else _0x4cf06d['push'](_0x4cf06d['shift']());}catch(_0x49107e){_0x4cf06d['push'](_0x4cf06d['shift']());}}}(_0x3a29,0xe584f));import{AIChatUI as _0x16c1df}from'../aichat/aichatui.js';import{ContextPlugin as _0x48fc28}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0xa43ac}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x4c3dd4}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const at=_0x3f6819(0x14f);export var AIChatShortcutType;!function(_0x3d49be){const _0x4f3d83=_0x3f6819;_0x3d49be[_0x4f3d83(0x122)]=_0x4f3d83(0x15d),_0x3d49be[_0x4f3d83(0x123)]=_0x4f3d83(0x161),_0x3d49be[_0x4f3d83(0x12e)]=_0x4f3d83(0x10d);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x48fc28{[_0x3f6819(0x107)];[_0x3f6819(0x149)];[_0x3f6819(0x11a)];static get[_0x3f6819(0x155)](){return[_0x16c1df];}static get[_0x3f6819(0x157)](){const _0x52c252=_0x3f6819;return _0x52c252(0x159);}static get[_0x3f6819(0x132)](){return!0x0;}static get[_0x3f6819(0x109)](){return!0x0;}[_0x3f6819(0x147)](){const _0x2b55fc=_0x3f6819;this[_0x2b55fc(0x11a)]=this[_0x2b55fc(0x10b)][_0x2b55fc(0x125)][_0x2b55fc(0x11c)](_0x16c1df),this[_0x2b55fc(0x107)]=this[_0x2b55fc(0x10b)][_0x2b55fc(0x135)][_0x2b55fc(0x11c)](_0x2b55fc(0x116))??[];const _0x421078=this[_0x2b55fc(0x10b)][_0x2b55fc(0x125)][_0x2b55fc(0x11c)](_0x2b55fc(0x144));this[_0x2b55fc(0x107)][_0x2b55fc(0x118)]&&(this[_0x2b55fc(0x11e)](),this[_0x2b55fc(0x11a)]['on'](_0x2b55fc(0x108),()=>{const _0x2fd2ba=_0x2b55fc;_0x421078[_0x2fd2ba(0x12b)][_0x2fd2ba(0x13b)]||this[_0x2fd2ba(0x136)]();}),this[_0x2b55fc(0x14b)](_0x421078,_0x2b55fc(0x13c),()=>{const _0x4f79d0=_0x2b55fc;this[_0x4f79d0(0x152)]();}));}[_0x3f6819(0x11e)](){const _0x2ff074=_0x3f6819,_0x56fe77=Object[_0x2ff074(0x145)](AIChatShortcutType);this[_0x2ff074(0x107)][_0x2ff074(0x143)](_0x479ef0=>{const _0x3520cb=_0x2ff074;let _0x10fd7c=!0x0;if(_0x479ef0['id']&&_0x479ef0[_0x3520cb(0x120)]&&_0x56fe77[_0x3520cb(0x138)](_0x479ef0[_0x3520cb(0x11f)])?_0x3520cb(0x15d)===_0x479ef0[_0x3520cb(0x11f)]&&(_0x10fd7c=_0x3520cb(0x140)==typeof _0x479ef0[_0x3520cb(0x12f)]):_0x10fd7c=!0x1,!_0x10fd7c)throw new _0x4c3dd4(_0x3520cb(0x14d),this[_0x3520cb(0x10b)],{'shortcut':_0x479ef0});});}[_0x3f6819(0x136)](){const _0x79d6a2=_0x3f6819,_0x3e0bf2=this[_0x79d6a2(0x10b)][_0x79d6a2(0x125)][_0x79d6a2(0x11c)](_0x16c1df);this[_0x79d6a2(0x149)]=new _0xa43ac(this[_0x79d6a2(0x10b)][_0x79d6a2(0x133)],this[_0x79d6a2(0x107)]),this[_0x79d6a2(0x149)][_0x79d6a2(0x12c)](),_0x3e0bf2[_0x79d6a2(0x13f)](this[_0x79d6a2(0x149)][_0x79d6a2(0x129)],at),this[_0x79d6a2(0x149)]['on'](_0x79d6a2(0x156),_0x1af4ca=>{const _0x5bd3ef=_0x79d6a2,_0x513165=_0x1af4ca[_0x5bd3ef(0x13d)]['id'];this[_0x5bd3ef(0x10e)](_0x513165);});}[_0x3f6819(0x152)](){const _0x38ab5c=_0x3f6819,_0x52db45=this[_0x38ab5c(0x10b)][_0x38ab5c(0x125)][_0x38ab5c(0x11c)](_0x16c1df);_0x52db45[_0x38ab5c(0x106)](at)&&_0x52db45[_0x38ab5c(0x131)](at),this[_0x38ab5c(0x149)]?.[_0x38ab5c(0x158)]();}[_0x3f6819(0x10e)](_0x2ca14e){const _0x5b60f0=_0x3f6819,_0x45c7b8=this[_0x5b60f0(0x107)][_0x5b60f0(0x11b)](_0x25f8c5=>_0x25f8c5['id']===_0x2ca14e),_0xf40e5a=_0x45c7b8[_0x5b60f0(0x11f)];_0x5b60f0(0x15d)===_0xf40e5a?this[_0x5b60f0(0x13a)](_0x45c7b8):_0x5b60f0(0x161)===_0xf40e5a?_0x45c7b8[_0x5b60f0(0x112)]?this[_0x5b60f0(0x14c)](_0x45c7b8):this[_0x5b60f0(0x127)](_0x5b60f0(0x121)):_0x5b60f0(0x10d)===_0xf40e5a&&(_0x45c7b8[_0x5b60f0(0x139)]?this[_0x5b60f0(0x115)](_0x45c7b8):this[_0x5b60f0(0x127)](_0x5b60f0(0x10d)));}[_0x3f6819(0x127)](_0x5316b8){const _0x35689f=_0x3f6819;if(!this[_0x35689f(0x10b)][_0x35689f(0x125)][_0x35689f(0x128)](_0x35689f(0x15a)))throw new _0x4c3dd4(_0x35689f(0x12a),this[_0x35689f(0x10b)],{'tabName':_0x5316b8});this[_0x35689f(0x10b)][_0x35689f(0x125)][_0x35689f(0x11c)](_0x35689f(0x15a))[_0x35689f(0x124)][_0x35689f(0x12d)](_0x5316b8);}async[_0x3f6819(0x13a)]({prompt:_0x139f65,draftMode:_0x127dac,useWebSearch:_0x5125fa=!0x1,useReasoning:_0x182e77=!0x1,model:_0x1e99c3}){const _0x50880b=_0x3f6819,_0x2389b1=this[_0x50880b(0x10b)][_0x50880b(0x125)][_0x50880b(0x11c)](_0x50880b(0x126)),_0x278eac=this[_0x50880b(0x10b)][_0x50880b(0x125)][_0x50880b(0x11c)](_0x50880b(0x144)),_0x4e9185=_0x278eac[_0x50880b(0x12b)];let _0x4c24a6;_0x4c24a6=_0x1e99c3?await _0x4e9185[_0x50880b(0x111)][_0x50880b(0x104)](_0x1e99c3):await _0x4e9185[_0x50880b(0x111)][_0x50880b(0x105)](),_0x4c24a6&&await _0x4e9185[_0x50880b(0x13e)](_0x4c24a6),_0x4e9185[_0x50880b(0x15b)](_0x5125fa),_0x4e9185[_0x50880b(0x110)](_0x182e77),_0x278eac[_0x50880b(0x130)](),_0x127dac?(this[_0x50880b(0x11a)][_0x50880b(0x113)](_0x139f65),this[_0x50880b(0x11a)][_0x50880b(0x146)](!0x0)):_0x2389b1[_0x50880b(0x153)]({'message':_0x139f65});}[_0x3f6819(0x14c)]({check:_0x5e64b1,model:_0x306876,prompt:_0x2c7758,params:_0x12eaee}){const _0x202d3c=_0x3f6819;if(!this[_0x202d3c(0x10b)][_0x202d3c(0x125)][_0x202d3c(0x128)](_0x202d3c(0x142)))throw new _0x4c3dd4(_0x202d3c(0x14a),this[_0x202d3c(0x10b)]);this[_0x202d3c(0x127)](_0x202d3c(0x121));const _0x5d388d={'id':_0x5e64b1,'isCustom':_0x202d3c(0x117)===_0x5e64b1};_0x306876&&_0x2c7758&&(_0x5d388d[_0x202d3c(0x10a)]={'model':_0x306876,'prompt':_0x2c7758}),_0x12eaee&&(_0x5d388d[_0x202d3c(0x151)]=_0x12eaee),this[_0x202d3c(0x10b)][_0x202d3c(0x125)][_0x202d3c(0x11c)](_0x202d3c(0x142))[_0x202d3c(0x134)](_0x202d3c(0x119),_0x5d388d);}[_0x3f6819(0x115)]({language:_0x3c4175}){const _0x5b0d46=_0x3f6819;if(!this[_0x5b0d46(0x10b)][_0x5b0d46(0x125)][_0x5b0d46(0x128)](_0x5b0d46(0x148)))throw new _0x4c3dd4(_0x5b0d46(0x15e),this[_0x5b0d46(0x10b)]);this[_0x5b0d46(0x127)](_0x5b0d46(0x10d)),this[_0x5b0d46(0x10b)][_0x5b0d46(0x125)][_0x5b0d46(0x11c)](_0x5b0d46(0x148))[_0x5b0d46(0x134)](_0x5b0d46(0x119),{'id':_0x3c4175,'args':{'language':_0x3c4175}});}}
@@ -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
+ function _0x1316(_0x5a756b,_0x123368){const _0x526a0a=_0x526a();return _0x1316=function(_0x13162d,_0x396be9){_0x13162d=_0x13162d-0x7d;let _0x3fc7bb=_0x526a0a[_0x13162d];return _0x3fc7bb;},_0x1316(_0x5a756b,_0x123368);}function _0x526a(){const _0x494908=['add','setTemplate','840570hRtbMk','36902WFwGrg','118162EDdEib','1386680eoXhzO','2671190uFpbva','2181YiihHi','9IzetRe','7HuxsGp','items','children','ck-ai-chat-shortcuts','addMany','locale','div','listView','41110pxsXWG','execute','map','delegate','1916yoEMoO'];_0x526a=function(){return _0x494908;};return _0x526a();}const _0x91eae4=_0x1316;(function(_0x556b92,_0x5d4498){const _0x562bcf=_0x1316,_0x41be85=_0x556b92();while(!![]){try{const _0x2ceeb2=parseInt(_0x562bcf(0x85))/0x1+parseInt(_0x562bcf(0x86))/0x2+-parseInt(_0x562bcf(0x89))/0x3*(-parseInt(_0x562bcf(0x81))/0x4)+-parseInt(_0x562bcf(0x7d))/0x5+parseInt(_0x562bcf(0x84))/0x6*(-parseInt(_0x562bcf(0x8b))/0x7)+-parseInt(_0x562bcf(0x87))/0x8*(-parseInt(_0x562bcf(0x8a))/0x9)+-parseInt(_0x562bcf(0x88))/0xa;if(_0x2ceeb2===_0x5d4498)break;else _0x41be85['push'](_0x41be85['shift']());}catch(_0x4b820a){_0x41be85['push'](_0x41be85['shift']());}}}(_0x526a,0x31583));import{ListItemView as _0x994c94,ListView as _0x2060f5,View as _0x57a205}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x1ef5df}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x57a205{[_0x91eae4(0x92)];constructor(_0x56032b,_0xda0799){const _0x498392=_0x91eae4;super(_0x56032b);const _0xdd72d4=_0xda0799[_0x498392(0x7f)](_0x599733=>{const _0x34fe59=_0x498392,_0x4012d0=new _0x994c94(this[_0x34fe59(0x90)]),_0x480a07=new _0x1ef5df(this[_0x34fe59(0x90)],_0x599733);return _0x4012d0[_0x34fe59(0x8d)][_0x34fe59(0x82)](_0x480a07),_0x480a07[_0x34fe59(0x80)](_0x34fe59(0x7e))['to'](this),_0x4012d0;});this[_0x498392(0x92)]=new _0x2060f5(this[_0x498392(0x90)]),this[_0x498392(0x92)][_0x498392(0x8c)][_0x498392(0x8f)](_0xdd72d4),this[_0x498392(0x83)]({'tag':_0x498392(0x91),'attributes':{'class':['ck',_0x498392(0x8e)]},'children':[this[_0x498392(0x92)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4495(_0x37ebf8,_0x3a6b18){const _0x52fcfa=_0x52fc();return _0x4495=function(_0x4495bf,_0x715e7b){_0x4495bf=_0x4495bf-0xc5;let _0x16fdc2=_0x52fcfa[_0x4495bf];return _0x16fdc2;},_0x4495(_0x37ebf8,_0x3a6b18);}(function(_0x203a30,_0x56a4cf){const _0x2d5ee2=_0x4495,_0x552408=_0x203a30();while(!![]){try{const _0xa47b9c=parseInt(_0x2d5ee2(0xcb))/0x1+-parseInt(_0x2d5ee2(0xd1))/0x2*(-parseInt(_0x2d5ee2(0xcd))/0x3)+-parseInt(_0x2d5ee2(0xcc))/0x4+parseInt(_0x2d5ee2(0xc8))/0x5+-parseInt(_0x2d5ee2(0xd0))/0x6*(-parseInt(_0x2d5ee2(0xcf))/0x7)+-parseInt(_0x2d5ee2(0xd4))/0x8+-parseInt(_0x2d5ee2(0xce))/0x9*(parseInt(_0x2d5ee2(0xc9))/0xa);if(_0xa47b9c===_0x56a4cf)break;else _0x552408['push'](_0x552408['shift']());}catch(_0x26d2ce){_0x552408['push'](_0x552408['shift']());}}}(_0x52fc,0x2bdbc));import{ButtonView as _0x578f63}from'ckeditor5/src/ui.js';import{IconAIChat as _0x22af9a,IconAIReview as _0x253e8d,IconAITranslate as _0x2d715}from'@ckeditor/ckeditor5-icons';function _0x52fc(){const _0x527ea4=['2808880VUhBCM','chat','ck-ai-chat-shortcut','review','extendTemplate','set','1678410vnsVGZ','80FGKkRE','icon','75181ENsVVQ','840376gtmPjX','608799mXrOqW','244827qfZlSj','14umUzBY','1034028RXWDms','2ulbTtM','label','translate'];_0x52fc=function(){return _0x527ea4;};return _0x52fc();}export class AIChatShortcutView extends _0x578f63{['id'];constructor(_0xc624cc,_0x4e03a0){const _0x3a5486=_0x4495;super(_0xc624cc);const {id:_0x3cc433,type:_0x49df32,icon:_0x3045bb}=_0x4e03a0;this['id']=_0x3cc433,this[_0x3a5486(0xc7)]({'label':_0x4e03a0[_0x3a5486(0xd2)],'withText':!0x0,'class':_0x3a5486(0xd6)}),this[_0x3a5486(0xc6)]({'attributes':{'data-cke-ai-shortcut-id':_0x4e03a0['id']}}),_0x3045bb?this[_0x3a5486(0xca)]=_0x3045bb:_0x3a5486(0xd5)===_0x49df32?this[_0x3a5486(0xca)]=_0x22af9a:_0x3a5486(0xc5)===_0x49df32?this[_0x3a5486(0xca)]=_0x253e8d:_0x3a5486(0xd3)===_0x49df32&&(this[_0x3a5486(0xca)]=_0x2d715);}}
23
+ function _0x2b64(_0x2da87b,_0x144393){const _0x461e7a=_0x461e();return _0x2b64=function(_0x2b6417,_0x12b046){_0x2b6417=_0x2b6417-0x83;let _0x350303=_0x461e7a[_0x2b6417];return _0x350303;},_0x2b64(_0x2da87b,_0x144393);}function _0x461e(){const _0x1cafb9=['1734UQcAHB','icon','set','4549372CrZkSo','translate','extendTemplate','17486470yZwbAl','chat','9QyEyJe','1538550NOAawo','2429TDlgHj','label','review','11522488wLshau','44374DBugYl','ck-ai-chat-shortcut','2206785RkxyBz','56yXjJnq'];_0x461e=function(){return _0x1cafb9;};return _0x461e();}(function(_0x1b0558,_0x7f6093){const _0x84c21=_0x2b64,_0x36b484=_0x1b0558();while(!![]){try{const _0xae4ec4=parseInt(_0x84c21(0x93))/0x1*(-parseInt(_0x84c21(0x90))/0x2)+-parseInt(_0x84c21(0x8b))/0x3+-parseInt(_0x84c21(0x85))/0x4+parseInt(_0x84c21(0x92))/0x5+parseInt(_0x84c21(0x94))/0x6*(parseInt(_0x84c21(0x8c))/0x7)+parseInt(_0x84c21(0x8f))/0x8+parseInt(_0x84c21(0x8a))/0x9*(parseInt(_0x84c21(0x88))/0xa);if(_0xae4ec4===_0x7f6093)break;else _0x36b484['push'](_0x36b484['shift']());}catch(_0x35a829){_0x36b484['push'](_0x36b484['shift']());}}}(_0x461e,0xcc92d));import{ButtonView as _0x1a6ff9}from'ckeditor5/src/ui.js';import{IconAIChat as _0x25353c,IconAIReview as _0x44ee06,IconAITranslate as _0x3ec600}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x1a6ff9{['id'];constructor(_0x4b301d,_0x372b3e){const _0x1f9e27=_0x2b64;super(_0x4b301d);const {id:_0x61dc68,type:_0x252b3e,icon:_0xb7ef81}=_0x372b3e;this['id']=_0x61dc68,this[_0x1f9e27(0x84)]({'label':_0x372b3e[_0x1f9e27(0x8d)],'withText':!0x0,'class':_0x1f9e27(0x91)}),this[_0x1f9e27(0x87)]({'attributes':{'data-cke-ai-shortcut-id':_0x372b3e['id']}}),_0xb7ef81?this[_0x1f9e27(0x83)]=_0xb7ef81:_0x1f9e27(0x89)===_0x252b3e?this[_0x1f9e27(0x83)]=_0x25353c:_0x1f9e27(0x8e)===_0x252b3e?this[_0x1f9e27(0x83)]=_0x44ee06:_0x1f9e27(0x86)===_0x252b3e&&(this[_0x1f9e27(0x83)]=_0x3ec600);}}