@ckeditor/ckeditor5-ai 47.7.3 → 47.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +16 -16
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.d.ts +21 -14
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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 _0x471343=_0x2661;(function(_0x45d416,_0x53068a){const _0x18052a=_0x2661,_0x2f2823=_0x45d416();while(!![]){try{const _0x306430=parseInt(_0x18052a(0x1bd))/0x1+parseInt(_0x18052a(0x1f3))/0x2+parseInt(_0x18052a(0x19d))/0x3*(parseInt(_0x18052a(0x1b6))/0x4)+parseInt(_0x18052a(0x1e5))/0x5+parseInt(_0x18052a(0x1dc))/0x6*(-parseInt(_0x18052a(0x1e8))/0x7)+parseInt(_0x18052a(0x1b7))/0x8+-parseInt(_0x18052a(0x1ad))/0x9;if(_0x306430===_0x53068a)break;else _0x2f2823['push'](_0x2f2823['shift']());}catch(_0x533aa1){_0x2f2823['push'](_0x2f2823['shift']());}}}(_0x4328,0xd3cd3));function _0x4328(){const _0x35296e=['AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_UNTITLED_CONVERSATION','7UQrLrq','_aiChatController','pin','_showConversationHistory','_aiChatHistoryUi','createdAt','_aiConnector','updates','loadConversation','error','title','1265508sFGSjf','plugins','change:activeConversation','history','operation','_updateHistoryItemsUI','listenTo','push','pluginName','map','itemsLoaded','pinned','_handleEditTitle','locale','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','1644mTRThk','isPremiumPlugin','AIChatHistoryController','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','resize','items','setDate','resizedTabs','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','activateTab','chat','_handleHistoryErrorUI','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_GENERIC','updateItemTitle','removeHistoryItem','9674307QZIhTd','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','openChat','AI_CHAT_HISTORY_CATEGORY_TODAY','unpin','loadItems','getItem','selectConversation','itemId','436kwiYTs','848416lcENYc','requires','AI_CHAT_HISTORY_CATEGORY_PINNED','showError','removeConversation','updateItems','557109ahoOib','_handleTogglePin','length','itemRemoved','get','getMonth','context','_setIsMaximized','activeConversation','_handleSelectConversation','setConversationPinned','getGroupId','editConversationTitle','_handleRemove','removeItem','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','rename','_clearItemLoading','toLocaleDateString','remove','getFullYear','itemUpdated','_setItemLoading','init','AI_CHAT_HISTORY_CATEGORY_LATER','getItems','getDate','AI_CHAT_HISTORY_UNPIN_ACTION','resizeTabs','activateTab:history','642156ChRFdc','_generateErrorMessage','view','setLoadingSkeleton','updateItemLoadingState','AI_CHAT_HISTORY_PIN_ACTION','updateItemPinned','setIsMaximized','handleRemovedConversation','3469205AagKBK'];_0x4328=function(){return _0x35296e;};return _0x4328();}import{ContextPlugin as _0x30cee3}from'ckeditor5/src/core.js';import{AIConnector as _0x3c8542}from'../aicore/aiconnector.js';import{AIChatController as _0x15349c}from'../aichat/aichatcontroller.js';import{AITabs as _0x59bb0c}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3ca142}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2a393d}from'./model/aichathistoryconversations.js';import{getTranslation as _0x424e70}from'../aicore/utils/common-translations.js';function _0x2661(_0x2c2213,_0x48bdc1){const _0x4328bc=_0x4328();return _0x2661=function(_0x266184,_0x2782c2){_0x266184=_0x266184-0x194;let _0x35e0ba=_0x4328bc[_0x266184];return _0x35e0ba;},_0x2661(_0x2c2213,_0x48bdc1);}export class AIChatHistoryController extends _0x30cee3{[_0x471343(0x1ee)];[_0x471343(0x1ec)];[_0x471343(0x1e9)];static get[_0x471343(0x1b8)](){return[_0x3c8542,_0x15349c,_0x3ca142,_0x59bb0c];}static get[_0x471343(0x196)](){const _0x3e40fe=_0x471343;return _0x3e40fe(0x19f);}static get[_0x471343(0x1a9)](){return!0x0;}static get[_0x471343(0x19e)](){return!0x0;}[_0x471343(0x1d5)](){const _0x4273eb=_0x471343;this[_0x4273eb(0x1ee)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x3c8542),this[_0x4273eb(0x1ec)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x3ca142),this[_0x4273eb(0x1e9)]=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x15349c);const _0x824e8e=this[_0x4273eb(0x1c3)][_0x4273eb(0x1f4)][_0x4273eb(0x1c1)](_0x59bb0c);try{const _0x2ca708=this[_0x4273eb(0x1e9)][_0x4273eb(0x1c8)]();this[_0x4273eb(0x1f6)]=new _0x2a393d({'connector':this[_0x4273eb(0x1ee)],'group':_0x2ca708}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1bb),(_0x305f9a,_0x22b950)=>{const _0x182ea0=_0x4273eb;this[_0x182ea0(0x1d4)](_0x22b950['id'],_0x182ea0(0x1d1)),this[_0x182ea0(0x1ca)](_0x22b950['id']);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1c9),(_0x30856d,_0x44691f)=>{const _0x3e6281=_0x4273eb;this[_0x3e6281(0x1d4)](_0x44691f['id'],_0x3e6281(0x1ce)),this[_0x3e6281(0x19a)](_0x44691f['id'],_0x44691f[_0x3e6281(0x1f2)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1d3),(_0x465c35,_0x25447d)=>{const _0x2e93ee=_0x4273eb;void 0x0!==_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x1f2)]&&this[_0x2e93ee(0x1ec)][_0x2e93ee(0x1ab)](_0x25447d[_0x2e93ee(0x1b5)],_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x1f2)]),void 0x0!==_0x25447d[_0x2e93ee(0x1ef)][_0x2e93ee(0x199)]&&this[_0x2e93ee(0x1f8)](),this[_0x2e93ee(0x1cf)](_0x25447d[_0x2e93ee(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1c0),(_0x465a34,_0x9d15e2)=>{const _0x3e05bf=_0x4273eb;this[_0x3e05bf(0x1e9)][_0x3e05bf(0x1e4)](_0x9d15e2[_0x3e05bf(0x1b5)]),this[_0x3e05bf(0x1ec)][_0x3e05bf(0x1ac)](_0x9d15e2[_0x3e05bf(0x1b5)]),this[_0x3e05bf(0x1cf)](_0x9d15e2[_0x3e05bf(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x198),()=>{const _0x424bf6=_0x4273eb;this[_0x424bf6(0x1f8)]();}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1f6)],_0x4273eb(0x1f1),(_0x1b8091,_0x59f649)=>{const _0x13e876=_0x4273eb;this[_0x13e876(0x1a8)](_0x59f649[_0x13e876(0x1f1)],_0x59f649[_0x13e876(0x1f7)],_0x59f649[_0x13e876(0x1b5)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1b4),(_0x449022,_0x41a585)=>{const _0x5f564b=_0x4273eb;this[_0x5f564b(0x1c6)](_0x41a585['id']);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1c7),(_0x5719be,_0x36e6e2)=>{const _0x5a32bb=_0x4273eb,_0xed4796=_0x36e6e2[_0x5a32bb(0x199)]?_0x5a32bb(0x1ea):_0x5a32bb(0x1b1);this[_0x5a32bb(0x1d4)](_0x36e6e2['id'],_0xed4796),this[_0x5a32bb(0x1be)](_0x36e6e2['id'],_0x36e6e2[_0x5a32bb(0x199)]);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1af),()=>{const _0x1f421=_0x4273eb;_0x824e8e[_0x1f421(0x1de)][_0x1f421(0x1a6)](_0x1f421(0x1a7));}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1e9)],_0x4273eb(0x1f5),()=>{const _0x406c5a=_0x4273eb;this[_0x406c5a(0x1f8)]();}),_0x824e8e[_0x4273eb(0x1de)]['on'](_0x4273eb(0x1db),()=>{const _0x289c42=_0x4273eb;this[_0x289c42(0x1eb)]();}),this[_0x4273eb(0x194)](_0x824e8e,_0x4273eb(0x1a4),(_0x5be95c,_0x350871)=>{const _0x2deb12=_0x4273eb;this[_0x2deb12(0x1c4)](_0x350871);}),this[_0x4273eb(0x194)](this[_0x4273eb(0x1ec)],_0x4273eb(0x1da),()=>{const _0x4496f4=_0x4273eb;_0x824e8e[_0x4496f4(0x1a1)]();});}catch(_0x58b846){this[_0x4273eb(0x1a8)](_0x58b846,_0x4273eb(0x1d5));}}async[_0x471343(0x19a)](_0x2346bf,_0x168458){const _0x12122f=_0x471343;await this[_0x12122f(0x1f6)][_0x12122f(0x1ab)](_0x2346bf,_0x168458);}async[_0x471343(0x1be)](_0x2371b5,_0x321b06){const _0x327d3d=_0x471343;await this[_0x327d3d(0x1f6)][_0x327d3d(0x1e2)](_0x2371b5,_0x321b06);}async[_0x471343(0x1ca)](_0x5859c4){const _0x1bc381=_0x471343;await this[_0x1bc381(0x1f6)][_0x1bc381(0x1cb)](_0x5859c4);}async[_0x471343(0x1c6)](_0x510106){const _0x123ccf=_0x471343;await this[_0x123ccf(0x1e9)][_0x123ccf(0x1f0)](_0x510106);}async[_0x471343(0x1eb)](){const _0x56a25f=_0x471343;this[_0x56a25f(0x1ec)][_0x56a25f(0x1ba)](''),this[_0x56a25f(0x1ec)][_0x56a25f(0x1df)](!0x0),await this[_0x56a25f(0x1f6)][_0x56a25f(0x1d5)](),this[_0x56a25f(0x1ec)][_0x56a25f(0x1df)](!0x1);}[_0x471343(0x1f8)](){const _0x2b15f9=_0x471343,_0x251d91=this[_0x2b15f9(0x1e9)][_0x2b15f9(0x1c5)]?.['id'],_0x4d98a9=this[_0x2b15f9(0x1cc)]()[_0x2b15f9(0x197)](_0x2bb443=>({'title':_0x2bb443[_0x2b15f9(0x1f2)],'items':_0x2bb443[_0x2b15f9(0x1a2)][_0x2b15f9(0x197)](_0x24c2bc=>({'id':_0x24c2bc['id'],'title':_0x24c2bc[_0x2b15f9(0x1f2)]||_0x424e70(this[_0x2b15f9(0x1c3)][_0x2b15f9(0x19b)],_0x2b15f9(0x1e7)),'createdAt':new Date(_0x24c2bc[_0x2b15f9(0x1ed)])[_0x2b15f9(0x1d0)](),'active':_0x24c2bc['id']===_0x251d91,'pinned':_0x24c2bc[_0x2b15f9(0x199)]}))}));this[_0x2b15f9(0x1ec)][_0x2b15f9(0x1bc)](_0x4d98a9);}[_0x471343(0x1d4)](_0x3d0088,_0x958601){const _0x18ead1=_0x471343;this[_0x18ead1(0x1ec)][_0x18ead1(0x1e0)](_0x3d0088,_0x958601,!0x0);}[_0x471343(0x1cf)](_0x3c996e){const _0x4e16a6=_0x471343;this[_0x4e16a6(0x1ec)][_0x4e16a6(0x1e0)](_0x3c996e,null,!0x1);}[_0x471343(0x1a8)](_0x329f12,_0x892f7,_0xe87685){const _0x48e5d8=_0x471343,_0x532bed=this[_0x48e5d8(0x1dd)](_0x892f7,_0xe87685);this[_0x48e5d8(0x1ec)][_0x48e5d8(0x1ba)](_0x532bed),_0xe87685&&this[_0x48e5d8(0x1cf)](_0xe87685),this[_0x48e5d8(0x1ec)][_0x48e5d8(0x1df)](!0x1);}[_0x471343(0x1dd)](_0x5a169e,_0xe1641c){const _0x115a9a=_0x471343,_0x5ba3b1=_0xe1641c?this[_0x115a9a(0x1f6)][_0x115a9a(0x1b3)](_0xe1641c):null,_0x57028b=_0x5ba3b1?.[_0x115a9a(0x1f2)]||_0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1e7));switch(_0x5a169e){case _0x115a9a(0x1ab):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1ae),_0x57028b);case _0x115a9a(0x1e2):{const _0x5604f0=_0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x5ba3b1?.[_0x115a9a(0x199)]?_0x115a9a(0x1d9):_0x115a9a(0x1e1));return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1e6),[_0x5604f0,_0x57028b]);}case _0x115a9a(0x1cb):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1a0),_0x57028b);case _0x115a9a(0x1d5):case _0x115a9a(0x1b2):return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x19c));default:return _0x424e70(this[_0x115a9a(0x1c3)][_0x115a9a(0x19b)],_0x115a9a(0x1aa));}}[_0x471343(0x1cc)](){const _0x75b809=_0x471343,_0x51c43a=new Date(),_0x31f616=new Date(_0x51c43a[_0x75b809(0x1d2)](),_0x51c43a[_0x75b809(0x1c2)](),_0x51c43a[_0x75b809(0x1d8)]()),_0x5a9fc2=new Date(_0x31f616);_0x5a9fc2[_0x75b809(0x1a3)](_0x5a9fc2[_0x75b809(0x1d8)]()-0x1);const _0x675573=new Date(_0x31f616);_0x675573[_0x75b809(0x1a3)](_0x675573[_0x75b809(0x1d8)]()-0xe);const _0x9898d4=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'pinned':!0x0}),_0x43f047=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x31f616,'to':_0x31f616}),_0x46eae8=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x5a9fc2,'to':_0x5a9fc2}),_0x314e9d=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'from':_0x675573,'to':_0x5a9fc2}),_0x2c15d0=this[_0x75b809(0x1f6)][_0x75b809(0x1d7)]({'to':_0x675573}),_0xc4d27b=[];return _0x9898d4[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1b9)),'items':_0x9898d4}),_0x43f047[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1b0)),'items':_0x43f047}),_0x46eae8[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1a5)),'items':_0x46eae8}),_0x314e9d[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1cd)),'items':_0x314e9d}),_0x2c15d0[_0x75b809(0x1bf)]>0x0&&_0xc4d27b[_0x75b809(0x195)]({'title':_0x424e70(this[_0x75b809(0x1c3)][_0x75b809(0x19b)],_0x75b809(0x1d6)),'items':_0x2c15d0}),_0xc4d27b;}[_0x471343(0x1c4)](_0xf7a2a5){const _0x419cd7=_0x471343;this[_0x419cd7(0x1ec)][_0x419cd7(0x1e3)](_0xf7a2a5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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
+ function _0x1d84(_0x3b8627,_0x515944){const _0x438c9e=_0x438c();return _0x1d84=function(_0x1d8440,_0xd2ca65){_0x1d8440=_0x1d8440-0x1c7;let _0x4bccad=_0x438c9e[_0x1d8440];return _0x4bccad;},_0x1d84(_0x3b8627,_0x515944);}const _0x59b127=_0x1d84;(function(_0x151f70,_0x18a4e2){const _0x418f11=_0x1d84,_0x6fbc20=_0x151f70();while(!![]){try{const _0x20d50b=-parseInt(_0x418f11(0x1e4))/0x1+-parseInt(_0x418f11(0x1f3))/0x2+parseInt(_0x418f11(0x1c9))/0x3+-parseInt(_0x418f11(0x1df))/0x4*(-parseInt(_0x418f11(0x1e9))/0x5)+-parseInt(_0x418f11(0x1e6))/0x6*(parseInt(_0x418f11(0x1ee))/0x7)+-parseInt(_0x418f11(0x1e3))/0x8+parseInt(_0x418f11(0x1dc))/0x9*(parseInt(_0x418f11(0x1cd))/0xa);if(_0x20d50b===_0x18a4e2)break;else _0x6fbc20['push'](_0x6fbc20['shift']());}catch(_0x2efe19){_0x6fbc20['push'](_0x6fbc20['shift']());}}}(_0x438c,0xa058e));import{ContextPlugin as _0x3b2df5}from'ckeditor5/src/core.js';import{AITabs as _0x453d15}from'../aitabs/aitabs.js';import{IconAIHistory as _0x146ab8}from'ckeditor5/src/icons.js';function _0x438c(){const _0x35797a=['7975672hyoBTI','81663beeeZB','context','2004GgtYQG','history','addTab','180qTXpck','plugins','view','updateItems','pluginName','7784mGxEag','AITabs','setConversationPinned','requires','updateHistoryItemsWithCategories','1466306MvsLoQ','updateItemTitle','_historyView','removeHistoryItem','3229875cITcAk','showResizeButton','selectConversation','isLoading','579480cDVTlb','isPremiumPlugin','locale','isOfficialPlugin','openChat','editConversationTitle','resizeTabs','showError','AIChatHistoryUI','delegate','updateItemLoadingState','errorMessage','removeConversation','isMaximized','get','171zQzeoX','setIsMaximized','AI_CHAT_HISTORY_HEADING','73592TSzNOq','hideError','showConversationHistory','setLoadingSkeleton'];_0x438c=function(){return _0x35797a;};return _0x438c();}import{AIChatHistoryView as _0x36d302}from'./ui/aichathistoryview.js';import{getTranslation as _0x2229e9}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x59b127(0x1e1),_0x59b127(0x1d9),_0x59b127(0x1d2),_0x59b127(0x1f0),_0x59b127(0x1cb),_0x59b127(0x1d1),_0x59b127(0x1d3)];export class AIChatHistoryUI extends _0x3b2df5{static get[_0x59b127(0x1f1)](){return[_0x453d15];}[_0x59b127(0x1c7)];static get[_0x59b127(0x1ed)](){const _0x12749e=_0x59b127;return _0x12749e(0x1d5);}static get[_0x59b127(0x1d0)](){return!0x0;}static get[_0x59b127(0x1ce)](){return!0x0;}constructor(_0x4ffb8a){const _0x2832f3=_0x59b127;super(_0x4ffb8a);const _0x2acddb=this[_0x2832f3(0x1e5)][_0x2832f3(0x1ea)][_0x2832f3(0x1db)](_0x2832f3(0x1ef));this[_0x2832f3(0x1c7)]=new _0x36d302(this[_0x2832f3(0x1e5)][_0x2832f3(0x1cf)],_0x2acddb[_0x2832f3(0x1ca)]),this[_0x2832f3(0x1c7)][_0x2832f3(0x1d6)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2acddb[_0x2832f3(0x1eb)][_0x2832f3(0x1e8)]({'id':_0x2832f3(0x1e7),'buttonLabel':_0x2229e9(this[_0x2832f3(0x1e5)][_0x2832f3(0x1cf)],_0x2832f3(0x1de)),'buttonIcon':_0x146ab8,'order':0x0,'content':this[_0x2832f3(0x1c7)]});}[_0x59b127(0x1c8)](_0x49215f){const _0x48b0a9=_0x59b127;this[_0x48b0a9(0x1c7)][_0x48b0a9(0x1c8)](_0x49215f);}[_0x59b127(0x1ec)](_0x23321f){const _0x4d2311=_0x59b127;this[_0x4d2311(0x1c7)][_0x4d2311(0x1f2)](_0x23321f);}[_0x59b127(0x1f4)](_0x59c328,_0xc5f367){const _0x59866e=_0x59b127;this[_0x59866e(0x1c7)][_0x59866e(0x1f4)](_0x59c328,_0xc5f367);}[_0x59b127(0x1d7)](_0x20b4f3,_0x256d43,_0x22db11){const _0x2484a1=_0x59b127;this[_0x2484a1(0x1c7)][_0x2484a1(0x1d7)](_0x20b4f3,_0x256d43,_0x22db11);}[_0x59b127(0x1e2)](_0x41cb92){const _0xa034ed=_0x59b127;this[_0xa034ed(0x1c7)][_0xa034ed(0x1cc)]=_0x41cb92;}[_0x59b127(0x1d4)](_0xb882a9){const _0x3f9ccf=_0x59b127;this[_0x3f9ccf(0x1c7)][_0x3f9ccf(0x1d8)]=_0xb882a9;}[_0x59b127(0x1e0)](){const _0x1faca2=_0x59b127;this[_0x1faca2(0x1c7)][_0x1faca2(0x1d8)]='';}[_0x59b127(0x1dd)](_0x30648c){const _0x245ed6=_0x59b127;this[_0x245ed6(0x1c7)][_0x245ed6(0x1da)]=_0x30648c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x235593=_0x5761;function _0x5761(_0x205472,_0x390d10){const _0x3bc47d=_0x3bc4();return _0x5761=function(_0x5761f7,_0x3197fd){_0x5761f7=_0x5761f7-0x191;let _0x3d3900=_0x3bc47d[_0x5761f7];return _0x3d3900;},_0x5761(_0x205472,_0x390d10);}(function(_0x449951,_0x42178a){const _0x941a99=_0x5761,_0x19645f=_0x449951();while(!![]){try{const _0x39f585=-parseInt(_0x941a99(0x1bf))/0x1*(parseInt(_0x941a99(0x1a3))/0x2)+-parseInt(_0x941a99(0x1a2))/0x3*(parseInt(_0x941a99(0x197))/0x4)+-parseInt(_0x941a99(0x1ba))/0x5*(-parseInt(_0x941a99(0x1b2))/0x6)+-parseInt(_0x941a99(0x198))/0x7+-parseInt(_0x941a99(0x194))/0x8+parseInt(_0x941a99(0x1b0))/0x9*(-parseInt(_0x941a99(0x1a1))/0xa)+parseInt(_0x941a99(0x192))/0xb;if(_0x39f585===_0x42178a)break;else _0x19645f['push'](_0x19645f['shift']());}catch(_0x2bfaec){_0x19645f['push'](_0x19645f['shift']());}}}(_0x3bc4,0x2e898));function _0x3bc4(){const _0x43ceaf=['find','18UpoADY','getDate','444126HtSPFR','getFullYear','error','splice','filter','itemUpdated','createdAt','loadItems','5qjxEfw','updateItemTitle','connector','group','itemRemoved','2ydZmHl','push','getTime','19376786UWDYWc','from','2814992QvmdAn','pinned','getResult','4XKeSHo','2272032aNiMbX','addItem','execute','getConversations','getItems','updateTitle','fetchConversations','deleteConversation','items','1858750OSenqk','669579GpKSik','373538cqtOWj','findIndex','updatePinned','updateConversation','removeItem','updateItemPinned','fire','map','itemsLoaded','getItem','init','getMonth'];_0x3bc4=function(){return _0x43ceaf;};return _0x3bc4();}import{EmitterMixin as _0x43cb9d}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0xeb7ec6}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x43cb9d(){[_0x235593(0x1a0)]=[];[_0x235593(0x1bc)];[_0x235593(0x1bd)];constructor({connector:_0x2aa282,group:_0x520c28}){const _0x520b05=_0x235593;super(),this[_0x520b05(0x1bc)]=_0x2aa282,this[_0x520b05(0x1bd)]=_0x520c28;}async[_0x235593(0x1ad)](){const _0x1f0c68=_0x235593;try{const _0xab4444=this[_0x1f0c68(0x1bc)][_0x1f0c68(0x19e)](this[_0x1f0c68(0x1bd)]),_0x3aacd1=await _0xab4444[_0x1f0c68(0x19b)]();this[_0x1f0c68(0x1b9)](_0x3aacd1);}catch(_0x464f59){this[_0x1f0c68(0x1a9)](_0x1f0c68(0x1b4),{'error':_0x464f59,'operation':_0x1f0c68(0x1ad)});}}[_0x235593(0x199)](_0x4733c7){const _0x181d65=_0x235593;this[_0x181d65(0x1a0)][_0x181d65(0x1c0)](_0x4733c7);}async[_0x235593(0x1a7)](_0x5d4218){const _0x2dad4c=_0x235593,_0x637dc0=this[_0x2dad4c(0x1a0)][_0x2dad4c(0x1a4)](_0x499695=>_0x499695['id']===_0x5d4218);if(-0x1===_0x637dc0)return!0x1;try{return await this[_0x2dad4c(0x1bc)][_0x2dad4c(0x19f)](_0x5d4218)[_0x2dad4c(0x19a)](),this[_0x2dad4c(0x1a0)][_0x2dad4c(0x1b5)](_0x637dc0,0x1),this[_0x2dad4c(0x1a9)](_0x2dad4c(0x1be),{'itemId':_0x5d4218}),!0x0;}catch(_0x2e42e9){return this[_0x2dad4c(0x1a9)](_0x2dad4c(0x1b4),{'error':_0x2e42e9,'operation':_0x2dad4c(0x1a7),'itemId':_0x5d4218}),!0x1;}}[_0x235593(0x1ac)](_0x3e94ac){const _0x54b4b=_0x235593;return this[_0x54b4b(0x1a0)][_0x54b4b(0x1af)](_0x34b10b=>_0x34b10b['id']===_0x3e94ac);}async[_0x235593(0x1bb)](_0x2134a2,_0x28873b){const _0x217c50=_0x235593,_0x256005=this[_0x217c50(0x1ac)](_0x2134a2);if(!_0x256005)return!0x1;try{return await this[_0x217c50(0x1bc)][_0x217c50(0x1a6)](_0x2134a2,{'title':_0x28873b})[_0x217c50(0x196)](),_0x256005[_0x217c50(0x19d)](_0x28873b),this[_0x217c50(0x1a9)](_0x217c50(0x1b7),{'itemId':_0x2134a2,'updates':{'title':_0x28873b}}),!0x0;}catch(_0x559480){return this[_0x217c50(0x1a9)](_0x217c50(0x1b4),{'error':_0x559480,'operation':_0x217c50(0x1bb),'itemId':_0x2134a2}),!0x1;}}async[_0x235593(0x1a8)](_0x1e1066,_0x2b7db6){const _0x927c0a=_0x235593,_0x21edcf=this[_0x927c0a(0x1ac)](_0x1e1066);if(!_0x21edcf)return!0x1;try{return await this[_0x927c0a(0x1bc)][_0x927c0a(0x1a6)](_0x1e1066,{'pinned':_0x2b7db6})[_0x927c0a(0x196)](),_0x21edcf[_0x927c0a(0x1a5)](_0x2b7db6),this[_0x927c0a(0x1a9)](_0x927c0a(0x1b7),{'itemId':_0x1e1066,'updates':{'pinned':_0x2b7db6}}),!0x0;}catch(_0x3798a){return this[_0x927c0a(0x1a9)](_0x927c0a(0x1b4),{'error':_0x3798a,'operation':_0x927c0a(0x1a8),'itemId':_0x1e1066}),!0x1;}}[_0x235593(0x1b9)](_0xb740a9){const _0x262e5a=_0x235593;try{this[_0x262e5a(0x1a0)]=[],_0xb740a9[_0x262e5a(0x1aa)](_0x15ff96=>{const _0x54b31f=_0x262e5a;this[_0x54b31f(0x199)](new _0xeb7ec6(_0x15ff96));}),this[_0x262e5a(0x1a9)](_0x262e5a(0x1ab),{'items':[...this[_0x262e5a(0x1a0)]]});}catch(_0x583637){this[_0x262e5a(0x1a9)](_0x262e5a(0x1b4),{'error':_0x583637,'operation':_0x262e5a(0x1b9)});}}[_0x235593(0x19c)](_0x354ea9={}){const _0x2be439=_0x235593,_0x3e86eb=void 0x0!==_0x354ea9[_0x2be439(0x195)]&&_0x354ea9[_0x2be439(0x195)],_0xb27af2=_0x354ea9[_0x2be439(0x193)]?new Date(_0x354ea9[_0x2be439(0x193)][_0x2be439(0x1b3)](),_0x354ea9[_0x2be439(0x193)][_0x2be439(0x1ae)](),_0x354ea9[_0x2be439(0x193)][_0x2be439(0x1b1)]()):null,_0x209728=_0x354ea9['to']?new Date(_0x354ea9['to'][_0x2be439(0x1b3)](),_0x354ea9['to'][_0x2be439(0x1ae)](),_0x354ea9['to'][_0x2be439(0x1b1)]()):null;return this[_0x2be439(0x1a0)][_0x2be439(0x1b6)](_0x472236=>{const _0x551039=_0x2be439;if(_0x472236[_0x551039(0x195)]!==_0x3e86eb)return!0x1;if(_0x209728){const _0x1d6357=new Date(_0x472236[_0x551039(0x1b8)][_0x551039(0x1b3)](),_0x472236[_0x551039(0x1b8)][_0x551039(0x1ae)](),_0x472236[_0x551039(0x1b8)][_0x551039(0x1b1)]());return _0xb27af2?_0xb27af2[_0x551039(0x191)]()===_0x209728[_0x551039(0x191)]()?_0x1d6357[_0x551039(0x191)]()===_0xb27af2[_0x551039(0x191)]():_0x1d6357<_0x209728&&_0x1d6357>=_0xb27af2:_0x1d6357<_0x209728;}return!0x0;});}}
23
+ function _0x1fa5(_0x40be89,_0x2f0ed6){const _0x5113ef=_0x5113();return _0x1fa5=function(_0x1fa51a,_0x58f610){_0x1fa51a=_0x1fa51a-0x129;let _0x3062a0=_0x5113ef[_0x1fa51a];return _0x3062a0;},_0x1fa5(_0x40be89,_0x2f0ed6);}const _0x4719f3=_0x1fa5;function _0x5113(){const _0x448728=['1337649AArgGv','from','getResult','init','getMonth','updateItemPinned','itemsLoaded','push','1387640CCNIUD','6WxJTzm','find','execute','307070QHKWQP','getFullYear','getItem','filter','itemRemoved','pinned','connector','removeItem','error','updateTitle','updateItemTitle','splice','map','findIndex','getConversations','getDate','addItem','getTime','deleteConversation','fire','961289WyuFCO','getItems','loadItems','items','group','createdAt','updatePinned','99wutpzc','5TvFrdv','279902ZxYORx','fetchConversations','1824108LBVtSF','618984BxxEOn','itemUpdated','updateConversation'];_0x5113=function(){return _0x448728;};return _0x5113();}(function(_0x366760,_0x10843b){const _0x150402=_0x1fa5,_0x3cab79=_0x366760();while(!![]){try{const _0x158b94=-parseInt(_0x150402(0x144))/0x1+parseInt(_0x150402(0x156))/0x2+-parseInt(_0x150402(0x14a))/0x3+parseInt(_0x150402(0x146))/0x4*(parseInt(_0x150402(0x143))/0x5)+parseInt(_0x150402(0x153))/0x6*(-parseInt(_0x150402(0x13b))/0x7)+parseInt(_0x150402(0x147))/0x8*(parseInt(_0x150402(0x142))/0x9)+-parseInt(_0x150402(0x152))/0xa;if(_0x158b94===_0x10843b)break;else _0x3cab79['push'](_0x3cab79['shift']());}catch(_0x5dbd74){_0x3cab79['push'](_0x3cab79['shift']());}}}(_0x5113,0x70025));import{EmitterMixin as _0x40bef9}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3e8b0c}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x40bef9(){[_0x4719f3(0x13e)]=[];[_0x4719f3(0x12d)];[_0x4719f3(0x13f)];constructor({connector:_0x13cca3,group:_0x2f5b89}){const _0x91e4bd=_0x4719f3;super(),this[_0x91e4bd(0x12d)]=_0x13cca3,this[_0x91e4bd(0x13f)]=_0x2f5b89;}async[_0x4719f3(0x14d)](){const _0x1ff2b0=_0x4719f3;try{const _0x5a5d5e=this[_0x1ff2b0(0x12d)][_0x1ff2b0(0x145)](this[_0x1ff2b0(0x13f)]),_0x577970=await _0x5a5d5e[_0x1ff2b0(0x135)]();this[_0x1ff2b0(0x13d)](_0x577970);}catch(_0x49baa8){this[_0x1ff2b0(0x13a)](_0x1ff2b0(0x12f),{'error':_0x49baa8,'operation':_0x1ff2b0(0x14d)});}}[_0x4719f3(0x137)](_0x24130d){const _0x3b4897=_0x4719f3;this[_0x3b4897(0x13e)][_0x3b4897(0x151)](_0x24130d);}async[_0x4719f3(0x12e)](_0x957fe2){const _0x4e8700=_0x4719f3,_0x4f4177=this[_0x4e8700(0x13e)][_0x4e8700(0x134)](_0x23695f=>_0x23695f['id']===_0x957fe2);if(-0x1===_0x4f4177)return!0x1;try{return await this[_0x4e8700(0x12d)][_0x4e8700(0x139)](_0x957fe2)[_0x4e8700(0x155)](),this[_0x4e8700(0x13e)][_0x4e8700(0x132)](_0x4f4177,0x1),this[_0x4e8700(0x13a)](_0x4e8700(0x12b),{'itemId':_0x957fe2}),!0x0;}catch(_0x3f208a){return this[_0x4e8700(0x13a)](_0x4e8700(0x12f),{'error':_0x3f208a,'operation':_0x4e8700(0x12e),'itemId':_0x957fe2}),!0x1;}}[_0x4719f3(0x129)](_0x565c55){const _0x88710=_0x4719f3;return this[_0x88710(0x13e)][_0x88710(0x154)](_0x2ce19b=>_0x2ce19b['id']===_0x565c55);}async[_0x4719f3(0x131)](_0x560bd0,_0x9f0542){const _0x436861=_0x4719f3,_0x532750=this[_0x436861(0x129)](_0x560bd0);if(!_0x532750)return!0x1;try{return await this[_0x436861(0x12d)][_0x436861(0x149)](_0x560bd0,{'title':_0x9f0542})[_0x436861(0x14c)](),_0x532750[_0x436861(0x130)](_0x9f0542),this[_0x436861(0x13a)](_0x436861(0x148),{'itemId':_0x560bd0,'updates':{'title':_0x9f0542}}),!0x0;}catch(_0x473b26){return this[_0x436861(0x13a)](_0x436861(0x12f),{'error':_0x473b26,'operation':_0x436861(0x131),'itemId':_0x560bd0}),!0x1;}}async[_0x4719f3(0x14f)](_0x377420,_0x41d805){const _0x542e11=_0x4719f3,_0x174a68=this[_0x542e11(0x129)](_0x377420);if(!_0x174a68)return!0x1;try{return await this[_0x542e11(0x12d)][_0x542e11(0x149)](_0x377420,{'pinned':_0x41d805})[_0x542e11(0x14c)](),_0x174a68[_0x542e11(0x141)](_0x41d805),this[_0x542e11(0x13a)](_0x542e11(0x148),{'itemId':_0x377420,'updates':{'pinned':_0x41d805}}),!0x0;}catch(_0x519024){return this[_0x542e11(0x13a)](_0x542e11(0x12f),{'error':_0x519024,'operation':_0x542e11(0x14f),'itemId':_0x377420}),!0x1;}}[_0x4719f3(0x13d)](_0x1227e6){const _0x5d3fd0=_0x4719f3;try{this[_0x5d3fd0(0x13e)]=[],_0x1227e6[_0x5d3fd0(0x133)](_0x3e5847=>{const _0x3e6f1a=_0x5d3fd0;this[_0x3e6f1a(0x137)](new _0x3e8b0c(_0x3e5847));}),this[_0x5d3fd0(0x13a)](_0x5d3fd0(0x150),{'items':[...this[_0x5d3fd0(0x13e)]]});}catch(_0x53d044){this[_0x5d3fd0(0x13a)](_0x5d3fd0(0x12f),{'error':_0x53d044,'operation':_0x5d3fd0(0x13d)});}}[_0x4719f3(0x13c)](_0x4201b2={}){const _0x363e99=_0x4719f3,_0x14dbe4=void 0x0!==_0x4201b2[_0x363e99(0x12c)]&&_0x4201b2[_0x363e99(0x12c)],_0x562e54=_0x4201b2[_0x363e99(0x14b)]?new Date(_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x157)](),_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x14e)](),_0x4201b2[_0x363e99(0x14b)][_0x363e99(0x136)]()):null,_0x374291=_0x4201b2['to']?new Date(_0x4201b2['to'][_0x363e99(0x157)](),_0x4201b2['to'][_0x363e99(0x14e)](),_0x4201b2['to'][_0x363e99(0x136)]()):null;return this[_0x363e99(0x13e)][_0x363e99(0x12a)](_0x5aceee=>{const _0x42eae2=_0x363e99;if(_0x5aceee[_0x42eae2(0x12c)]!==_0x14dbe4)return!0x1;if(_0x374291){const _0x3db8c0=new Date(_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x157)](),_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x14e)](),_0x5aceee[_0x42eae2(0x140)][_0x42eae2(0x136)]());return _0x562e54?_0x562e54[_0x42eae2(0x138)]()===_0x374291[_0x42eae2(0x138)]()?_0x3db8c0[_0x42eae2(0x138)]()===_0x562e54[_0x42eae2(0x138)]():_0x3db8c0<_0x374291&&_0x3db8c0>=_0x562e54:_0x3db8c0<_0x374291;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _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
+ var _0x9375d=_0x87a9;(function(_0x4688d9,_0x620c0b){var _0x19c49c=_0x87a9,_0x5384fb=_0x4688d9();while(!![]){try{var _0x24b706=parseInt(_0x19c49c(0x191))/0x1*(-parseInt(_0x19c49c(0x18a))/0x2)+-parseInt(_0x19c49c(0x186))/0x3*(-parseInt(_0x19c49c(0x18b))/0x4)+parseInt(_0x19c49c(0x189))/0x5+-parseInt(_0x19c49c(0x195))/0x6+parseInt(_0x19c49c(0x18d))/0x7+-parseInt(_0x19c49c(0x187))/0x8*(-parseInt(_0x19c49c(0x194))/0x9)+parseInt(_0x19c49c(0x188))/0xa*(parseInt(_0x19c49c(0x18e))/0xb);if(_0x24b706===_0x620c0b)break;else _0x5384fb['push'](_0x5384fb['shift']());}catch(_0x28d5b9){_0x5384fb['push'](_0x5384fb['shift']());}}}(_0x34af,0xb0661));import{ObservableMixin as _0x1d95c3}from'ckeditor5/src/utils.js';import{escape as _0x456a31}from'es-toolkit/compat';function _0x87a9(_0x440428,_0x3af6d4){var _0x34af7f=_0x34af();return _0x87a9=function(_0x87a9de,_0x29a035){_0x87a9de=_0x87a9de-0x184;var _0x15a25b=_0x34af7f[_0x87a9de];return _0x15a25b;},_0x87a9(_0x440428,_0x3af6d4);}export class AIChatHistoryItem extends _0x1d95c3(){['id'];[_0x9375d(0x193)];constructor({id:_0x3ab949,title:_0x56f3e5,createdAt:_0x3418ae,updatedAt:_0x2a9bce,pinned:_0x2d80eb}){var _0xb86de1=_0x9375d;super(),this['id']=_0x3ab949,this[_0xb86de1(0x193)]=new Date(_0x3418ae),this[_0xb86de1(0x184)](_0xb86de1(0x18f),_0x56f3e5),this[_0xb86de1(0x184)](_0xb86de1(0x190),_0x2a9bce?new Date(_0x2a9bce):null),this[_0xb86de1(0x184)](_0xb86de1(0x192),_0x2d80eb||!0x1);}[_0x9375d(0x18c)](_0x4ff536){var _0x5e72f6=_0x9375d;this[_0x5e72f6(0x184)](_0x5e72f6(0x18f),_0x456a31(_0x4ff536)),this[_0x5e72f6(0x190)]=new Date();}[_0x9375d(0x185)](_0x52812e){var _0x4c049f=_0x9375d;this[_0x4c049f(0x184)](_0x4c049f(0x192),_0x52812e),this[_0x4c049f(0x190)]=new Date();}}function _0x34af(){var _0x43600f=['updatedAt','5wVcUTl','pinned','createdAt','9yIvPTP','6861342PGWEqb','set','updatePinned','369udhMGX','7938760OqPyYc','1322870VezrkQ','5732165PHPXFt','521302OxQqdC','12924yGxGSj','updateTitle','1654023EBcymg','33aQELGa','title'];_0x34af=function(){return _0x43600f;};return _0x34af();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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
+ function _0x47ad(_0x5f0850,_0x3b9ffa){const _0x4e8f27=_0x4e8f();return _0x47ad=function(_0x47adf7,_0x515f2d){_0x47adf7=_0x47adf7-0x13c;let _0xd2c181=_0x4e8f27[_0x47adf7];return _0xd2c181;},_0x47ad(_0x5f0850,_0x3b9ffa);}const _0x533d87=_0x47ad;(function(_0xbccaef,_0x2ecd6e){const _0x23024f=_0x47ad,_0x349ca8=_0xbccaef();while(!![]){try{const _0x20701c=parseInt(_0x23024f(0x18c))/0x1*(parseInt(_0x23024f(0x168))/0x2)+parseInt(_0x23024f(0x19c))/0x3*(parseInt(_0x23024f(0x155))/0x4)+parseInt(_0x23024f(0x153))/0x5+-parseInt(_0x23024f(0x190))/0x6+-parseInt(_0x23024f(0x145))/0x7+parseInt(_0x23024f(0x143))/0x8+-parseInt(_0x23024f(0x149))/0x9*(parseInt(_0x23024f(0x196))/0xa);if(_0x20701c===_0x2ecd6e)break;else _0x349ca8['push'](_0x349ca8['shift']());}catch(_0x5d153){_0x349ca8['push'](_0x349ca8['shift']());}}}(_0x4e8f,0x8a523));function _0x4e8f(){const _0x3cf16f=['_createCancelEditButtonView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','1528170vFLIEL','focus','ck-confirm-view-cancel','AI_CHAT_HISTORY_CANCEL','execute','ck-ai-chat-history__item-title','8430800ctyzVR','ck-confirm-view-submit','element','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','_createEditInputView','12uwSUZF','change:isEdit','ck-hidden','div','set','isMatching','mainContent','_createAcceptEditButtonView','key','113112urQtpk','withText','2235541sFtmSe','span','label','listitem','18nntSJo','pinned','_createMenuDropdownView','fire','locale','buttonView','isVisible','bindTemplate','click','_createCheckView','4525425ZSNNDg','ck-ai-chat-history__item--edit','1080952iLBzBh','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_REMOVE','actions','children','AI_CHAT_HISTORY_EDIT_NAME','selectConversation','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_REMOVING','items','value','showConfirm','edit:cancel','ck-ai-loader','updateLoadingState','ck-ai-loader__text','clear','ck-ai-chat-history__item','3510aOdwyl','loadingState','updateTitle','string','createCollection','isEdit','_createPinButtonView','ck-ai-chat-history__item-check','isOn','removeConversation','match','ck-ai-chat-history__item-row','extendTemplate','_createSpinnerView','editConversationTitle','then','bind','add','setConversationPinned','ck-ai-chat-history__item-date','addMany','setTemplate','highlightText','AI_CHAT_HISTORY_LOADING_PINNING','_commitEditInputValue','AI_CHAT_HISTORY_PIN_BUTTON','Enter','AI_CHAT_HISTORY_LOADING_RENAMING','_titleView','ck-ai-chat-history__item--active','LOADING_LABELS','tiny','ck-ai-chat-history__item-main-content','panelPosition','AI_CHAT_HISTORY_LOADING_UNPINNING','panelView','471imczjq','AI_CHAT_HISTORY_ACCEPT'];_0x4e8f=function(){return _0x3cf16f;};return _0x4e8f();}import{ListItemView as _0x2130de,HighlightedTextView as _0x16eec8,ButtonView as _0x72a98a,ListView as _0x27eee7,IconView as _0x2ec1d2,createDropdown as _0xc312bd,InputTextView as _0x1c05d8}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x2b17ee,IconPin as _0x358ce2,IconCheck as _0x1efb0,IconCancel as _0x3d0aeb}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x375fe7,ConfirmMixin as _0x1b07c8}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x138437}from'es-toolkit/compat';import{AISpinnerView as _0x1cb218}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1e1fd3}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x1b07c8(_0x2130de){['id'];static [_0x533d87(0x186)]={'remove':_0x533d87(0x15e),'rename':_0x533d87(0x183),'pin':_0x533d87(0x17f),'unpin':_0x533d87(0x18a)};[_0x533d87(0x159)];[_0x533d87(0x140)];[_0x533d87(0x184)];constructor(_0x1526ab,_0x5abd4a){const _0x2c99cb=_0x533d87;super(_0x1526ab);const _0x3fe5b9=this[_0x2c99cb(0x150)];this[_0x2c99cb(0x13e)](_0x2c99cb(0x16d),!0x1),this[_0x2c99cb(0x13e)](_0x2c99cb(0x14f),!0x0),this[_0x2c99cb(0x13e)](_0x2c99cb(0x14a),!!_0x5abd4a[_0x2c99cb(0x14a)]),this[_0x2c99cb(0x13e)](_0x2c99cb(0x169),null),this['id']=_0x5abd4a['id'];const {title:_0x16edc6,createdAt:_0x368214,active:_0x11be7a=!0x1}=_0x5abd4a;this[_0x2c99cb(0x184)]=new _0x16eec8(),this[_0x2c99cb(0x184)][_0x2c99cb(0x199)]=_0x16edc6,this[_0x2c99cb(0x184)][_0x2c99cb(0x174)]({'attributes':{'class':[_0x2c99cb(0x195)]}});const _0x40d17c=this[_0x2c99cb(0x152)](),_0x57b352=this[_0x2c99cb(0x16e)](_0x1526ab),_0x21f5ed=this[_0x2c99cb(0x14b)](),_0x347b9c=this[_0x2c99cb(0x19b)](_0x1526ab,_0x16edc6),_0x5ed783=this[_0x2c99cb(0x141)](_0x1526ab,_0x347b9c),_0x56d80c=this[_0x2c99cb(0x18e)](_0x1526ab,_0x347b9c);this[_0x2c99cb(0x159)]=this[_0x2c99cb(0x16c)](),this[_0x2c99cb(0x140)]=this[_0x2c99cb(0x16c)](),this[_0x2c99cb(0x140)][_0x2c99cb(0x179)](this[_0x2c99cb(0x184)]),this[_0x2c99cb(0x159)][_0x2c99cb(0x179)](_0x57b352),this[_0x2c99cb(0x159)][_0x2c99cb(0x179)](_0x21f5ed),this['on'](_0x2c99cb(0x19d),(_0x30f724,_0x2fd7d5,_0x1d69d1)=>{const _0x9b2300=_0x2c99cb;this[_0x9b2300(0x159)][_0x9b2300(0x166)](),this[_0x9b2300(0x140)][_0x9b2300(0x166)](),_0x1d69d1?(this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x5ed783),this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x56d80c),this[_0x9b2300(0x140)][_0x9b2300(0x179)](_0x347b9c),_0x347b9c[_0x9b2300(0x198)][_0x9b2300(0x191)]()):(this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x57b352),this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x21f5ed),this[_0x9b2300(0x140)][_0x9b2300(0x179)](this[_0x9b2300(0x184)]));}),this[_0x2c99cb(0x17d)]({'tag':'li','attributes':{'class':[_0x2c99cb(0x167),_0x11be7a?_0x2c99cb(0x185):'',_0x3fe5b9['if'](_0x2c99cb(0x14f),_0x2c99cb(0x13c),_0x55c4f9=>!_0x55c4f9),_0x3fe5b9['if'](_0x2c99cb(0x16d),_0x2c99cb(0x154))],'role':_0x2c99cb(0x148)},'children':[{'tag':_0x2c99cb(0x146),'attributes':{'class':[_0x2c99cb(0x157)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x16f),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x19798a=>!!_0x19798a)]},'children':_0x11be7a?[_0x40d17c]:[]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x163),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x1dd05c=>!_0x1dd05c)]},'children':[this[_0x2c99cb(0x175)]()]}]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x173)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x156)]},'on':{'click':this[_0x2c99cb(0x150)]['to'](_0x2c99cb(0x151))},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x188)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x195),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x2084b6=>!!_0x2084b6)]},'children':this[_0x2c99cb(0x140)]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x165),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x598084=>!_0x598084)]},'children':[{'text':_0x3fe5b9['to'](_0x2c99cb(0x169),_0x4b9f38=>_0x4b9f38?_0x1e1fd3(this[_0x2c99cb(0x14d)],AIChatHistoryListItemView[_0x2c99cb(0x186)][_0x4b9f38]):'')}]}]},{'tag':_0x2c99cb(0x146),'attributes':{'class':[_0x2c99cb(0x17b)]},'children':[_0x368214]}]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x15d)]},'children':this[_0x2c99cb(0x159)]}]}]}),this['on'](_0x2c99cb(0x151),()=>{const _0x260f80=_0x2c99cb;this[_0x260f80(0x16d)]||this[_0x260f80(0x14c)](_0x260f80(0x15c),{'id':this['id']});});}[_0x533d87(0x16a)](_0x295551){const _0x559514=_0x533d87;this[_0x559514(0x184)][_0x559514(0x199)]=_0x138437(_0x295551);}[_0x533d87(0x164)](_0x390320,_0x7eafba){const _0x1445a6=_0x533d87;this[_0x1445a6(0x13e)](_0x1445a6(0x169),_0x7eafba?_0x390320:null);}[_0x533d87(0x152)](){const _0x249bdd=_0x533d87,_0x441f0e=new _0x2ec1d2();return _0x441f0e[_0x249bdd(0x13e)]({'content':_0x1efb0}),_0x441f0e;}[_0x533d87(0x16e)](_0x53c784){const _0x25c09f=_0x533d87,_0xf41867=new _0x72a98a(_0x53c784);return _0xf41867[_0x25c09f(0x13e)]({'label':_0x1e1fd3(_0x53c784,_0x25c09f(0x181)),'icon':_0x358ce2,'withText':!0x1,'tooltip':!0x0}),_0xf41867[_0x25c09f(0x178)](_0x25c09f(0x170))['to'](this,_0x25c09f(0x14a)),_0xf41867['on'](_0x25c09f(0x194),()=>{const _0x4cd60f=_0x25c09f,_0xe4df92=!this[_0x4cd60f(0x14a)];this[_0x4cd60f(0x14c)](_0x4cd60f(0x17a),{'id':this['id'],'pinned':_0xe4df92});}),_0xf41867;}[_0x533d87(0x14b)](){const _0x26e754=_0x533d87,_0x98aad=_0xc312bd(this[_0x26e754(0x14d)],_0x375fe7),_0x2e8e2a=_0x98aad[_0x26e754(0x18b)][_0x26e754(0x15a)];_0x98aad[_0x26e754(0x14e)][_0x26e754(0x13e)]({'label':_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x18f)),'icon':_0x2b17ee}),_0x98aad[_0x26e754(0x189)]='sw';const _0x41d6fe=new _0x72a98a(this[_0x26e754(0x14d)]);_0x41d6fe[_0x26e754(0x147)]=_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x15b)),_0x41d6fe[_0x26e754(0x144)]=!0x0,_0x41d6fe['on'](_0x26e754(0x194),()=>{const _0x5bea58=_0x26e754;this[_0x5bea58(0x16d)]=!0x0;});const _0x3214be=new _0x72a98a(this[_0x26e754(0x14d)]);_0x3214be[_0x26e754(0x147)]=_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x158)),_0x3214be[_0x26e754(0x144)]=!0x0,_0x3214be['on'](_0x26e754(0x194),()=>{const _0x233c83=_0x26e754;this[_0x233c83(0x161)](_0x1e1fd3(this[_0x233c83(0x14d)],_0x233c83(0x19a)),this[_0x233c83(0x198)])[_0x233c83(0x177)](()=>{const _0x4feabb=_0x233c83;this[_0x4feabb(0x14c)](_0x4feabb(0x171),{'id':this['id']});});});const _0x313870=new _0x27eee7(this[_0x26e754(0x14d)]),_0x543846=new _0x2130de(this[_0x26e754(0x14d)]);_0x543846[_0x26e754(0x15a)][_0x26e754(0x179)](_0x41d6fe);const _0x599ec7=new _0x2130de(this[_0x26e754(0x14d)]);return _0x599ec7[_0x26e754(0x15a)][_0x26e754(0x179)](_0x3214be),_0x313870[_0x26e754(0x15f)][_0x26e754(0x17c)]([_0x543846,_0x599ec7]),_0x2e8e2a[_0x26e754(0x179)](_0x313870),_0x98aad;}[_0x533d87(0x19b)](_0x373064,_0x58b84f){const _0xc053d9=_0x533d87,_0x1f87d8=new _0x1c05d8(_0x373064),_0xb5269a=_0x1f87d8[_0xc053d9(0x150)];return _0x1f87d8[_0xc053d9(0x160)]=_0x58b84f,_0x1f87d8[_0xc053d9(0x174)]({'on':{'keydown':_0xb5269a['to'](_0x16fe62=>{const _0x47ab0b=_0xc053d9;_0x47ab0b(0x182)==_0x16fe62[_0x47ab0b(0x142)]&&this[_0x47ab0b(0x180)](_0x1f87d8);})}}),_0x1f87d8;}[_0x533d87(0x141)](_0x1e52c0,_0x41b907){const _0x2984c2=_0x533d87,_0x73fb00=new _0x72a98a(_0x1e52c0);return _0x73fb00[_0x2984c2(0x13e)]({'icon':_0x1efb0,'withText':!0x1,'tooltip':_0x1e1fd3(_0x1e52c0,_0x2984c2(0x18d))}),_0x73fb00[_0x2984c2(0x174)]({'attributes':{'class':[_0x2984c2(0x197)]}}),_0x73fb00['on'](_0x2984c2(0x194),()=>{const _0x4c44b2=_0x2984c2;this[_0x4c44b2(0x180)](_0x41b907);}),_0x73fb00;}[_0x533d87(0x180)](_0x50f503){const _0x116fc0=_0x533d87,_0x39c75f=_0x50f503[_0x116fc0(0x198)][_0x116fc0(0x160)]||'';this[_0x116fc0(0x184)][_0x116fc0(0x199)]=_0x39c75f,this[_0x116fc0(0x16d)]=!0x1,this[_0x116fc0(0x14c)](_0x116fc0(0x176),{'id':this['id'],'title':_0x39c75f});}[_0x533d87(0x18e)](_0x5304ee,_0x4ff3d5){const _0xfe7217=_0x533d87,_0x5229ce=new _0x72a98a(_0x5304ee);return _0x5229ce[_0xfe7217(0x13e)]({'icon':_0x3d0aeb,'withText':!0x1,'tooltip':_0x1e1fd3(_0x5304ee,_0xfe7217(0x193))}),_0x5229ce[_0xfe7217(0x174)]({'attributes':{'class':[_0xfe7217(0x192)]}}),_0x5229ce['on'](_0xfe7217(0x194),()=>{const _0x4533c5=_0xfe7217;this[_0x4533c5(0x16d)]=!0x1,_0x4ff3d5[_0x4533c5(0x160)]=this[_0x4533c5(0x184)][_0x4533c5(0x199)]||'',this[_0x4533c5(0x14c)](_0x4533c5(0x162));}),_0x5229ce;}[_0x533d87(0x175)](){const _0x325fc1=_0x533d87,_0x1cae16=new _0x1cb218(_0x325fc1(0x187));return _0x1cae16[_0x325fc1(0x14f)]=!0x0,_0x1cae16;}[_0x533d87(0x13f)](_0x35ab72){const _0x4c344f=_0x533d87;return this[_0x4c344f(0x184)]&&_0x4c344f(0x16b)==typeof this[_0x4c344f(0x184)][_0x4c344f(0x199)]&&this[_0x4c344f(0x184)][_0x4c344f(0x199)][_0x4c344f(0x172)](_0x35ab72)?{'title':!0x0}:null;}[_0x533d87(0x17e)](_0x305d16){const _0x185023=_0x533d87;this[_0x185023(0x184)][_0x185023(0x17e)](_0x305d16);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a0056=_0x3643;(function(_0x2afac1,_0x568ff4){const _0x17b0a8=_0x3643,_0x459ec5=_0x2afac1();while(!![]){try{const _0x5392bb=-parseInt(_0x17b0a8(0x1e7))/0x1+parseInt(_0x17b0a8(0x1df))/0x2+parseInt(_0x17b0a8(0x1e1))/0x3*(parseInt(_0x17b0a8(0x1ef))/0x4)+-parseInt(_0x17b0a8(0x1d2))/0x5*(-parseInt(_0x17b0a8(0x1f3))/0x6)+parseInt(_0x17b0a8(0x1e9))/0x7+parseInt(_0x17b0a8(0x1f2))/0x8*(-parseInt(_0x17b0a8(0x1db))/0x9)+-parseInt(_0x17b0a8(0x1d7))/0xa*(parseInt(_0x17b0a8(0x1e4))/0xb);if(_0x5392bb===_0x568ff4)break;else _0x459ec5['push'](_0x459ec5['shift']());}catch(_0x3960c0){_0x459ec5['push'](_0x459ec5['shift']());}}}(_0x35b2,0xdb3b3));function _0x3643(_0x441583,_0x37f948){const _0x35b20e=_0x35b2();return _0x3643=function(_0x364312,_0x410226){_0x364312=_0x364312-0x1d2;let _0x4e461e=_0x35b20e[_0x364312];return _0x4e461e;},_0x3643(_0x441583,_0x37f948);}import{ListItemView as _0x19c839,View as _0x2302b9,ListView as _0xe76272}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x19c839{[_0x2a0056(0x1d4)];[_0x2a0056(0x1ee)];[_0x2a0056(0x1da)];constructor(_0x3d679d,{title:_0x1774f3,items:_0x66f4f3}){const _0x72e548=_0x2a0056;super(_0x3d679d);const _0x21ab35=this[_0x72e548(0x1f0)];this[_0x72e548(0x1d8)](_0x72e548(0x1dc),!0x0),this[_0x72e548(0x1d4)]=_0x1774f3,this[_0x72e548(0x1ee)]=_0x66f4f3;const _0x52a52b=new _0x2302b9(_0x3d679d);_0x52a52b[_0x72e548(0x1dd)]({'tag':_0x72e548(0x1de),'attributes':{'class':[_0x72e548(0x1d9)]},'children':[this[_0x72e548(0x1d4)]]}),this[_0x72e548(0x1da)]=new _0xe76272(_0x3d679d),this[_0x72e548(0x1da)][_0x72e548(0x1f1)][_0x72e548(0x1eb)](this[_0x72e548(0x1ee)]),this[_0x72e548(0x1dd)]({'tag':'li','attributes':{'class':[_0x72e548(0x1d6),_0x21ab35['if'](_0x72e548(0x1dc),_0x72e548(0x1e5),_0x3f4e48=>!_0x3f4e48)]},'children':[_0x52a52b,this[_0x72e548(0x1da)]]});}[_0x2a0056(0x1e8)](_0x3d337a){const _0x3ce4c4=_0x2a0056,_0x3994f7=this[_0x3ce4c4(0x1ee)][_0x3ce4c4(0x1ea)];let _0x33d1ec=0x0;for(const _0x47201c of this[_0x3ce4c4(0x1ee)]){if(_0x3d337a){const _0x460ab2=_0x47201c[_0x3ce4c4(0x1e0)](_0x3d337a);_0x47201c[_0x3ce4c4(0x1dc)]=!!_0x460ab2,_0x47201c[_0x3ce4c4(0x1e3)](_0x3d337a);}else _0x47201c[_0x3ce4c4(0x1dc)]=!0x0,_0x47201c[_0x3ce4c4(0x1e3)](null);_0x47201c[_0x3ce4c4(0x1dc)]&&_0x33d1ec++;}return this[_0x3ce4c4(0x1dc)]=_0x33d1ec>0x0,{'resultsCount':_0x33d1ec,'totalItemsCount':_0x3994f7};}[_0x2a0056(0x1e2)](_0x1c42c5){const _0x4ef2b8=_0x2a0056;return this[_0x4ef2b8(0x1ee)][_0x4ef2b8(0x1ed)](_0x3ea83f=>_0x3ea83f['id']===_0x1c42c5);}[_0x2a0056(0x1e6)](_0x401328){const _0x500a6d=_0x2a0056,_0xf4be4f=this[_0x500a6d(0x1ee)][_0x500a6d(0x1d3)](_0x401328);-0x1!==_0xf4be4f&&(this[_0x500a6d(0x1ee)][_0x500a6d(0x1d5)](_0xf4be4f,0x1),this[_0x500a6d(0x1da)][_0x500a6d(0x1f1)][_0x500a6d(0x1ec)](_0x401328));}}function _0x35b2(){const _0x4f8012=['set','ck-ai-chat-history__section-title','_itemsListView','1961271twUinm','isVisible','setTemplate','div','1948322heWCbl','isMatching','3BWOJcn','getItem','highlightText','31293284pLoOsZ','ck-hidden','removeItem','25468WbdqnW','filter','4176298YMqSCb','length','addMany','remove','find','itemsViews','6309176CIzsSl','bindTemplate','items','32pEdBAI','895134KvwvMz','50tcpjDF','indexOf','title','splice','ck-ai-chat-history__section','10VlHUyD'];_0x35b2=function(){return _0x4f8012;};return _0x35b2();}
23
+ const _0x40a904=_0x26e5;function _0x26e5(_0x23338d,_0x2dd7cd){const _0x3a799a=_0x3a79();return _0x26e5=function(_0x26e5f2,_0x233fe0){_0x26e5f2=_0x26e5f2-0x149;let _0x373ba3=_0x3a799a[_0x26e5f2];return _0x373ba3;},_0x26e5(_0x23338d,_0x2dd7cd);}(function(_0x3b63d6,_0x5b2712){const _0x13d39b=_0x26e5,_0x31cb0f=_0x3b63d6();while(!![]){try{const _0x36fe78=parseInt(_0x13d39b(0x156))/0x1+-parseInt(_0x13d39b(0x157))/0x2+parseInt(_0x13d39b(0x166))/0x3+-parseInt(_0x13d39b(0x150))/0x4+-parseInt(_0x13d39b(0x14a))/0x5*(-parseInt(_0x13d39b(0x153))/0x6)+-parseInt(_0x13d39b(0x159))/0x7+parseInt(_0x13d39b(0x162))/0x8;if(_0x36fe78===_0x5b2712)break;else _0x31cb0f['push'](_0x31cb0f['shift']());}catch(_0x30bd88){_0x31cb0f['push'](_0x31cb0f['shift']());}}}(_0x3a79,0x5500b));import{ListItemView as _0xfbe866,View as _0x36137a,ListView as _0x2c9d15}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xfbe866{[_0x40a904(0x167)];[_0x40a904(0x15d)];[_0x40a904(0x14d)];constructor(_0x38b59d,{title:_0x5de841,items:_0x2540bd}){const _0x5b2cca=_0x40a904;super(_0x38b59d);const _0x3b480f=this[_0x5b2cca(0x15c)];this[_0x5b2cca(0x14f)](_0x5b2cca(0x14b),!0x0),this[_0x5b2cca(0x167)]=_0x5de841,this[_0x5b2cca(0x15d)]=_0x2540bd;const _0x3388a8=new _0x36137a(_0x38b59d);_0x3388a8[_0x5b2cca(0x164)]({'tag':_0x5b2cca(0x149),'attributes':{'class':[_0x5b2cca(0x14c)]},'children':[this[_0x5b2cca(0x167)]]}),this[_0x5b2cca(0x14d)]=new _0x2c9d15(_0x38b59d),this[_0x5b2cca(0x14d)][_0x5b2cca(0x165)][_0x5b2cca(0x15b)](this[_0x5b2cca(0x15d)]),this[_0x5b2cca(0x164)]({'tag':'li','attributes':{'class':[_0x5b2cca(0x161),_0x3b480f['if'](_0x5b2cca(0x14b),_0x5b2cca(0x15a),_0x1902b9=>!_0x1902b9)]},'children':[_0x3388a8,this[_0x5b2cca(0x14d)]]});}[_0x40a904(0x163)](_0x518c6c){const _0x5c7f8b=_0x40a904,_0x1f7401=this[_0x5c7f8b(0x15d)][_0x5c7f8b(0x15f)];let _0x5a60b7=0x0;for(const _0x5e4b79 of this[_0x5c7f8b(0x15d)]){if(_0x518c6c){const _0x198b9a=_0x5e4b79[_0x5c7f8b(0x158)](_0x518c6c);_0x5e4b79[_0x5c7f8b(0x14b)]=!!_0x198b9a,_0x5e4b79[_0x5c7f8b(0x155)](_0x518c6c);}else _0x5e4b79[_0x5c7f8b(0x14b)]=!0x0,_0x5e4b79[_0x5c7f8b(0x155)](null);_0x5e4b79[_0x5c7f8b(0x14b)]&&_0x5a60b7++;}return this[_0x5c7f8b(0x14b)]=_0x5a60b7>0x0,{'resultsCount':_0x5a60b7,'totalItemsCount':_0x1f7401};}[_0x40a904(0x15e)](_0x2e607e){const _0x39d545=_0x40a904;return this[_0x39d545(0x15d)][_0x39d545(0x154)](_0x5b559e=>_0x5b559e['id']===_0x2e607e);}[_0x40a904(0x14e)](_0x5a53f9){const _0x15e83b=_0x40a904,_0x5d8130=this[_0x15e83b(0x15d)][_0x15e83b(0x152)](_0x5a53f9);-0x1!==_0x5d8130&&(this[_0x15e83b(0x15d)][_0x15e83b(0x151)](_0x5d8130,0x1),this[_0x15e83b(0x14d)][_0x15e83b(0x165)][_0x15e83b(0x160)](_0x5a53f9));}}function _0x3a79(){const _0x23f3a2=['102426BJkHsm','find','highlightText','362826tTenii','125438HUnGOx','isMatching','2677150JTPUQP','ck-hidden','addMany','bindTemplate','itemsViews','getItem','length','remove','ck-ai-chat-history__section','1015920OiheKY','filter','setTemplate','items','623112jJfiCY','title','div','165dqzuHh','isVisible','ck-ai-chat-history__section-title','_itemsListView','removeItem','set','1870092PNrqVz','splice','indexOf'];_0x3a79=function(){return _0x23f3a2;};return _0x3a79();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47c97c=_0x3b7c;function _0x3c93(){const _0x1e13d0=['7kguomT','5923005sdfKcs','items','3646893CRARFN','ck-ai-chat-history__sections','sections','3345450PeJdvq','filter','addMany','extendTemplate','2623096UpsvsM','1031144qAtztw','1955722vkwwEy','6847288poGVDr'];_0x3c93=function(){return _0x1e13d0;};return _0x3c93();}(function(_0x339318,_0x301e33){const _0xe60884=_0x3b7c,_0x4d4389=_0x339318();while(!![]){try{const _0x591718=parseInt(_0xe60884(0x91))/0x1+-parseInt(_0xe60884(0x92))/0x2+-parseInt(_0xe60884(0x89))/0x3+-parseInt(_0xe60884(0x90))/0x4+parseInt(_0xe60884(0x95))/0x5+parseInt(_0xe60884(0x8c))/0x6*(parseInt(_0xe60884(0x94))/0x7)+parseInt(_0xe60884(0x93))/0x8;if(_0x591718===_0x301e33)break;else _0x4d4389['push'](_0x4d4389['shift']());}catch(_0x503dc0){_0x4d4389['push'](_0x4d4389['shift']());}}}(_0x3c93,0xbe6bd));import{ListView as _0x4a0cdc}from'ckeditor5/src/ui.js';function _0x3b7c(_0x4da24,_0xaf6209){const _0x3c9370=_0x3c93();return _0x3b7c=function(_0x3b7cbc,_0x3ab9f7){_0x3b7cbc=_0x3b7cbc-0x88;let _0x2ca2c=_0x3c9370[_0x3b7cbc];return _0x2ca2c;},_0x3b7c(_0x4da24,_0xaf6209);}export class AIChatHistorySectionListView extends _0x4a0cdc{[_0x47c97c(0x8b)];constructor(_0x22061d,_0x72e418){const _0xe54d36=_0x47c97c;super(_0x22061d),this[_0xe54d36(0x8b)]=_0x72e418,this[_0xe54d36(0x88)][_0xe54d36(0x8e)](this[_0xe54d36(0x8b)]),this[_0xe54d36(0x8f)]({'attributes':{'class':[_0xe54d36(0x8a)]}});}[_0x47c97c(0x8d)](_0x52d787){const _0x116581=_0x47c97c;let _0x434e6b=0x0,_0x2a94d9=0x0;for(const _0x24d240 of this[_0x116581(0x8b)]){const {resultsCount:_0x486a40,totalItemsCount:_0x44bac1}=_0x24d240[_0x116581(0x8d)](_0x52d787);_0x434e6b+=_0x486a40,_0x2a94d9+=_0x44bac1;}return{'resultsCount':_0x434e6b,'totalItemsCount':_0x2a94d9};}}
23
+ function _0x1935(){const _0x1e42ba=['1614172SMLhPJ','items','4854884VBbDiE','98699IrjNFK','34BntyLr','ck-ai-chat-history__sections','108kygqpu','extendTemplate','947530jRvnzq','42JSVaHL','addMany','5fLHxje','58836zzhYsb','7293LgNhNO','filter','1786596wPuZaF','7649784btOycN','sections'];_0x1935=function(){return _0x1e42ba;};return _0x1935();}function _0x879a(_0x3d77dd,_0x4ce421){const _0x1935f7=_0x1935();return _0x879a=function(_0x879a8e,_0x20fad0){_0x879a8e=_0x879a8e-0x66;let _0x2a8c32=_0x1935f7[_0x879a8e];return _0x2a8c32;},_0x879a(_0x3d77dd,_0x4ce421);}const _0x39a667=_0x879a;(function(_0x27613c,_0xc05575){const _0x9b69d1=_0x879a,_0x239195=_0x27613c();while(!![]){try{const _0x5b99df=parseInt(_0x9b69d1(0x75))/0x1*(parseInt(_0x9b69d1(0x76))/0x2)+-parseInt(_0x9b69d1(0x6f))/0x3+parseInt(_0x9b69d1(0x74))/0x4*(parseInt(_0x9b69d1(0x6b))/0x5)+parseInt(_0x9b69d1(0x69))/0x6*(parseInt(_0x9b69d1(0x72))/0x7)+-parseInt(_0x9b69d1(0x70))/0x8+parseInt(_0x9b69d1(0x66))/0x9*(parseInt(_0x9b69d1(0x68))/0xa)+parseInt(_0x9b69d1(0x6d))/0xb*(-parseInt(_0x9b69d1(0x6c))/0xc);if(_0x5b99df===_0xc05575)break;else _0x239195['push'](_0x239195['shift']());}catch(_0x3e4910){_0x239195['push'](_0x239195['shift']());}}}(_0x1935,0xcd2b0));import{ListView as _0x3c4ea0}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3c4ea0{[_0x39a667(0x71)];constructor(_0x289449,_0x3c8aa9){const _0x3c0165=_0x39a667;super(_0x289449),this[_0x3c0165(0x71)]=_0x3c8aa9,this[_0x3c0165(0x73)][_0x3c0165(0x6a)](this[_0x3c0165(0x71)]),this[_0x3c0165(0x67)]({'attributes':{'class':[_0x3c0165(0x77)]}});}[_0x39a667(0x6e)](_0x3e2688){const _0x557b60=_0x39a667;let _0x17c831=0x0,_0x2da9ee=0x0;for(const _0x47881c of this[_0x557b60(0x71)]){const {resultsCount:_0x1134b8,totalItemsCount:_0x329082}=_0x47881c[_0x557b60(0x6e)](_0x3e2688);_0x17c831+=_0x1134b8,_0x2da9ee+=_0x329082;}return{'resultsCount':_0x17c831,'totalItemsCount':_0x2da9ee};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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 _0x2be234=_0xb64a;function _0xb64a(_0x51208f,_0x8728cc){const _0x4c8113=_0x4c81();return _0xb64a=function(_0xb64a4b,_0x1a8a65){_0xb64a4b=_0xb64a4b-0xb9;let _0x1097e5=_0x4c8113[_0xb64a4b];return _0x1097e5;},_0xb64a(_0x51208f,_0x8728cc);}(function(_0x560477,_0x370951){const _0x437c25=_0xb64a,_0x2f050f=_0x560477();while(!![]){try{const _0xddbd72=parseInt(_0x437c25(0x10e))/0x1+-parseInt(_0x437c25(0xf6))/0x2+-parseInt(_0x437c25(0x10a))/0x3+parseInt(_0x437c25(0x103))/0x4+parseInt(_0x437c25(0xc4))/0x5+-parseInt(_0x437c25(0xed))/0x6+parseInt(_0x437c25(0xff))/0x7*(parseInt(_0x437c25(0xd3))/0x8);if(_0xddbd72===_0x370951)break;else _0x2f050f['push'](_0x2f050f['shift']());}catch(_0x42b135){_0x2f050f['push'](_0x2f050f['shift']());}}}(_0x4c81,0xbc74a));import{View as _0x514e12,SearchTextView as _0x142b79,FormHeaderView as _0x3a8b08,ButtonView as _0xea74cc}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x812e8,IconCancel as _0x1179e3,IconPlus as _0x365b93}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x7ebdbc}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1e5138}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x18c4af}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x254ffc}from'../aichathistoryui.js';function _0x4c81(){const _0x33eb07=['fieldView','hasItems','element','remove','isLoading','ck-ai-header\x20ck-ai-header_history','8209272PwWpxR','emptyView','ck-ai-notification','errorMessage','value','_createSearchView','search','length','fire','562922NEZXUt','change:hasItems','setTemplate','splice','ltr','bind','locale','updateLoadingState','AI_CHAT_HISTORY_SEARCH_LABEL','74970oIUCBF','queryView','ck-ai-chat-history__empty','ck-reset_all','3528720qDhEmo','ck-ai-notification_error','ck-ai-chat-history__empty-message','sections','removeItem','_createEmptyStateView','aiHistory','593841nelMgs','ck-ai-chat-history','title','ck-rounded-corners','627566Juerey','mainErrorView','_refreshSearch','ck-ai-notification_error__dismiss-button','ck-ai-chat-history__content','_createListItemViews','_updateViewVisibility','updateItemLoadingState','ck-hidden','isSearchViewVisible','push','isVisible','resizeButton','getItem','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','openChat','isMainErrorViewVisible','3139190rnxNkB','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','change:errorMessage','addMany','some','ck-ai-chat__start-conversation','set','sectionsView','items','indexOf','updateTitle','children','_createSkeletonView','execute','360dfLieJ','updateHistoryItemsWithCategories','AI_CHAT_LABEL_NEW_CHAT','removeHistoryItem','AI_CHAT_HISTORY_EMPTY_MESSAGE','clear','isEmptyViewVisible','skeletonView','bindTemplate','AI_CHAT_HISTORY_HEADING','isMaximized','_createErrorView','extendTemplate','itemsViews','div','change:isLoading','updateItemTitle','render','add','delegate'];_0x4c81=function(){return _0x33eb07;};return _0x4c81();}import{AISkeletonView as _0x4e0d75,SKELETON_DEFINITIONS as _0x428719}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5bb977}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2aeadf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x514e12{[_0x2be234(0xc5)];[_0x2be234(0x10f)];[_0x2be234(0xda)];[_0x2be234(0xee)];[_0x2be234(0xcc)];[_0x2be234(0xbf)];constructor(_0x76ed83,_0x3dad1d){const _0x324560=_0x2be234;super(_0x76ed83),this[_0x324560(0xcb)](_0x324560(0xe8),!0x1),this[_0x324560(0xcb)](_0x324560(0xeb),!0x0),this[_0x324560(0xcb)](_0x324560(0xf0),''),this[_0x324560(0xcb)](_0x324560(0xdd),!0x1),this[_0x324560(0xcb)](_0x324560(0xbc),!0x1),this[_0x324560(0xcb)](_0x324560(0xd9),!0x1),this[_0x324560(0xcb)](_0x324560(0xc3),!0x1);const _0x2a2447=new _0x3a8b08(_0x76ed83,{'label':_0x2aeadf(_0x76ed83,_0x324560(0xdc)),'icon':_0x812e8,'class':_0x324560(0xec)});_0x3dad1d&&(this[_0x324560(0xbf)]=_0x5bb977(_0x76ed83,this),_0x2a2447[_0x324560(0xd0)][_0x324560(0xe5)](this[_0x324560(0xbf)])),this[_0x324560(0xcc)]=new _0x7ebdbc(_0x76ed83,[]),this[_0x324560(0xcc)][_0x324560(0xe6)](..._0x254ffc)['to'](this),this[_0x324560(0x10f)]=this[_0x324560(0xde)](),this[_0x324560(0xda)]=this[_0x324560(0xd1)](),this[_0x324560(0xee)]=this[_0x324560(0x108)](),this[_0x324560(0xc5)]=this[_0x324560(0xf2)](),this[_0x324560(0x10f)][_0x324560(0xdf)]({'attributes':{'class':[this[_0x324560(0xdb)]['if'](_0x324560(0xc3),_0x324560(0xbb),_0x565948=>!_0x565948)]}}),this['on'](_0x324560(0xe2),()=>this[_0x324560(0xb9)]()),this['on'](_0x324560(0xf7),()=>this[_0x324560(0xb9)]()),this['on'](_0x324560(0xc7),()=>this[_0x324560(0xb9)]()),this[_0x324560(0xf8)]({'tag':_0x324560(0xe1),'attributes':{'class':['ck',_0x324560(0x102),_0x324560(0x10b),_0x324560(0x10d)],'dir':_0x324560(0xfa)},'children':[_0x2a2447,{'tag':_0x324560(0xe1),'attributes':{'class':[_0x324560(0x112)]},'children':[this[_0x324560(0xda)],this[_0x324560(0x10f)],this[_0x324560(0xee)],this[_0x324560(0xc5)]]}]});}[_0x2be234(0xb9)](){const _0x21fa18=_0x2be234;this[_0x21fa18(0xbc)]=!this[_0x21fa18(0xeb)]&&this[_0x21fa18(0xe8)],this[_0x21fa18(0xd9)]=!this[_0x21fa18(0xeb)]&&!this[_0x21fa18(0xe8)]&&!this[_0x21fa18(0xf0)],this[_0x21fa18(0xc3)]=!this[_0x21fa18(0xbc)]&&!!this[_0x21fa18(0xf0)];}[_0x2be234(0xf2)](){const _0x4e5df8=_0x2be234,_0x2e25b2=new _0x142b79(this[_0x4e5df8(0xfc)],{'filteredView':this[_0x4e5df8(0xcc)],'queryView':{'label':_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xfe))},'infoView':{'text':{'notFound':{'primary':_0x372c60=>_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xc1),_0x372c60),'secondary':_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xc6))}}}}),_0x4509d2=this[_0x4e5df8(0xde)]();return _0x4509d2[_0x4e5df8(0xdf)]({'attributes':{'class':[this[_0x4e5df8(0xdb)]['if'](_0x4e5df8(0xf0),_0x4e5df8(0xbb),_0x184441=>!_0x184441)]}}),_0x2e25b2['on'](_0x4e5df8(0xe4),()=>{const _0x58e721=_0x4e5df8;_0x2e25b2[_0x58e721(0xd0)][_0x58e721(0xe5)](_0x4509d2,0x1);}),_0x2e25b2[_0x4e5df8(0xdf)]({'attributes':{'class':[this[_0x4e5df8(0xdb)]['if'](_0x4e5df8(0xbc),_0x4e5df8(0xbb),_0x4e7483=>!_0x4e7483)]}}),_0x2e25b2;}[_0x2be234(0xd1)](){const _0x19d9da=_0x2be234,_0x50341f=new _0x4e0d75(this[_0x19d9da(0xfc)],_0x428719[_0x19d9da(0x109)]);return _0x50341f[_0x19d9da(0xdf)]({'attributes':{'class':[this[_0x19d9da(0xdb)]['if'](_0x19d9da(0xeb),_0x19d9da(0xbb),_0x41d0ad=>!_0x41d0ad)]}}),_0x50341f;}[_0x2be234(0xde)](){const _0x4287ee=_0x2be234,_0x47b6e7=new _0x514e12(this[_0x4287ee(0xfc)]),_0x3d74d2=new _0xea74cc(this[_0x4287ee(0xfc)]);_0x3d74d2[_0x4287ee(0xcb)]({'withText':!0x1,'icon':_0x1179e3,'class':_0x4287ee(0x111)}),_0x3d74d2[_0x4287ee(0xfb)](_0x4287ee(0xbe))['to'](this,_0x4287ee(0xe8),_0x303dac=>!!_0x303dac),_0x3d74d2['on'](_0x4287ee(0xd2),()=>{const _0x1697f0=_0x4287ee;this[_0x1697f0(0xf0)]='';});const _0x57b668=this[_0x4287ee(0xdb)];return _0x47b6e7[_0x4287ee(0xf8)]({'tag':_0x4287ee(0xe1),'attributes':{'class':['ck',_0x4287ee(0xef),_0x4287ee(0x104)]},'children':[{'tag':'p','children':[{'text':_0x57b668['to'](_0x4287ee(0xf0))}]},_0x3d74d2]}),_0x47b6e7;}[_0x2be234(0x108)](){const _0x405395=_0x2be234,_0x4b2124=new _0xea74cc(this[_0x405395(0xfc)]);_0x4b2124[_0x405395(0xcb)]({'label':_0x2aeadf(this[_0x405395(0xfc)],_0x405395(0xd5)),'withText':!0x0,'icon':_0x365b93,'class':_0x405395(0xca)}),_0x4b2124['on'](_0x405395(0xd2),()=>{const _0x5b37b9=_0x405395;this[_0x5b37b9(0xf5)](_0x5b37b9(0xc2));});const _0x248703=new _0x514e12(this[_0x405395(0xfc)]);return _0x248703[_0x405395(0xf8)]({'tag':_0x405395(0xe1),'attributes':{'class':[_0x405395(0x101),this[_0x405395(0xdb)]['if'](_0x405395(0xd9),_0x405395(0xbb),_0x23c826=>!_0x23c826)]},'children':[{'tag':'p','attributes':{'class':[_0x405395(0x105)]},'children':[_0x2aeadf(this[_0x405395(0xfc)],_0x405395(0xd7))]},_0x4b2124]}),_0x248703;}[_0x2be234(0x113)](_0xd10ebb,_0x2e20e0){const _0x292cca=_0x2be234,_0x224b03=[];for(const _0x56a619 of _0xd10ebb){const _0x1cafb3=new _0x18c4af(_0x2e20e0,_0x56a619);_0x1cafb3[_0x292cca(0xe6)](..._0x254ffc)['to'](this),_0x224b03[_0x292cca(0xbd)](_0x1cafb3);}return _0x224b03;}[_0x2be234(0xd4)](_0x31fecd){const _0x19f1b3=_0x2be234,_0x2b16c7=this[_0x19f1b3(0xfc)]||'en',_0x213cd9=[];for(const _0x4b6c01 of _0x31fecd){const _0x2a6fbf=this[_0x19f1b3(0x113)](_0x4b6c01[_0x19f1b3(0xcd)],_0x2b16c7);_0x213cd9[_0x19f1b3(0xbd)](new _0x1e5138(_0x2b16c7,{'title':_0x4b6c01[_0x19f1b3(0x10c)],'items':_0x2a6fbf}));}this[_0x19f1b3(0xcc)][_0x19f1b3(0x106)]=_0x213cd9,this[_0x19f1b3(0xcc)][_0x19f1b3(0xcd)][_0x19f1b3(0xd8)](),this[_0x19f1b3(0xcc)][_0x19f1b3(0xcd)][_0x19f1b3(0xc8)](_0x213cd9),this[_0x19f1b3(0xe8)]=_0x31fecd[_0x19f1b3(0xc9)](_0x30ae52=>_0x30ae52[_0x19f1b3(0xcd)][_0x19f1b3(0xf4)]>0x0),this[_0x19f1b3(0x110)]();}[_0x2be234(0xd6)](_0x4ca3fa){const _0xb65619=_0x2be234;for(const _0x3e9bb7 of this[_0xb65619(0xcc)][_0xb65619(0x106)]){const _0x404d3d=_0x3e9bb7[_0xb65619(0xc0)](_0x4ca3fa);if(_0x404d3d){if(_0x3e9bb7[_0xb65619(0x107)](_0x404d3d),0x0===_0x3e9bb7[_0xb65619(0xe0)][_0xb65619(0xf4)]){const _0x104cce=this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xce)](_0x3e9bb7);-0x1!==_0x104cce&&(this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xf9)](_0x104cce,0x1),this[_0xb65619(0xcc)][_0xb65619(0xcd)][_0xb65619(0xea)](_0x3e9bb7));}this[_0xb65619(0xe8)]=this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xf4)]>0x0,this[_0xb65619(0x110)]();break;}}}[_0x2be234(0xe3)](_0x302047,_0x14a8a2){const _0x448d6a=_0x2be234;for(const _0x25d2ec of this[_0x448d6a(0xcc)][_0x448d6a(0x106)]){const _0x1e2f3e=_0x25d2ec[_0x448d6a(0xc0)](_0x302047);if(_0x1e2f3e){_0x1e2f3e[_0x448d6a(0xcf)](_0x14a8a2);break;}}}[_0x2be234(0xba)](_0x14768c,_0x2e95fb,_0x35d930){const _0x4536b0=_0x2be234;for(const _0x47ee69 of this[_0x4536b0(0xcc)][_0x4536b0(0x106)]){const _0x305f01=_0x47ee69[_0x4536b0(0xc0)](_0x14768c);if(_0x305f01){_0x305f01[_0x4536b0(0xfd)](_0x2e95fb,_0x35d930);break;}}}[_0x2be234(0x110)](){const _0x2cb241=_0x2be234;if(this[_0x2cb241(0xe8)]){const _0x41b62e=this[_0x2cb241(0xc5)][_0x2cb241(0x100)][_0x2cb241(0xe7)]?.[_0x2cb241(0xe9)]?.[_0x2cb241(0xf1)]||'';this[_0x2cb241(0xc5)][_0x2cb241(0xf3)](_0x41b62e);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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
+ const _0x2fe130=_0x2b5c;(function(_0x36f53f,_0x1b6ec4){const _0x596f3d=_0x2b5c,_0x16efb8=_0x36f53f();while(!![]){try{const _0x2570f4=parseInt(_0x596f3d(0x116))/0x1*(-parseInt(_0x596f3d(0xec))/0x2)+-parseInt(_0x596f3d(0x10a))/0x3*(parseInt(_0x596f3d(0xf5))/0x4)+-parseInt(_0x596f3d(0x111))/0x5*(parseInt(_0x596f3d(0xf4))/0x6)+-parseInt(_0x596f3d(0xe3))/0x7+parseInt(_0x596f3d(0xf2))/0x8+parseInt(_0x596f3d(0xee))/0x9+parseInt(_0x596f3d(0xf6))/0xa*(parseInt(_0x596f3d(0xe0))/0xb);if(_0x2570f4===_0x1b6ec4)break;else _0x16efb8['push'](_0x16efb8['shift']());}catch(_0x38a220){_0x16efb8['push'](_0x16efb8['shift']());}}}(_0x2bf5,0xc79a5));import{AIChatUI as _0xb6667a}from'../aichat/aichatui.js';import{ContextPlugin as _0x1eff52}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x989325}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0xf8dd1c}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x2fe130(0x11c);export var AIChatShortcutType;!function(_0x1d8876){const _0x224d4c=_0x2fe130;_0x1d8876[_0x224d4c(0x130)]=_0x224d4c(0x115),_0x1d8876[_0x224d4c(0xe1)]=_0x224d4c(0x112),_0x1d8876[_0x224d4c(0x13b)]=_0x224d4c(0x101);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x1eff52{[_0x2fe130(0x12c)];[_0x2fe130(0x10e)];[_0x2fe130(0x129)];static get[_0x2fe130(0x133)](){return[_0xb6667a];}static get[_0x2fe130(0xff)](){const _0x899629=_0x2fe130;return _0x899629(0x12a);}static get[_0x2fe130(0x120)](){return!0x0;}static get[_0x2fe130(0x134)](){return!0x0;}[_0x2fe130(0xf8)](){const _0x2c5cc1=_0x2fe130;this[_0x2c5cc1(0x129)]=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x138)][_0x2c5cc1(0x105)](_0xb6667a),this[_0x2c5cc1(0x12c)]=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x106)][_0x2c5cc1(0x105)](_0x2c5cc1(0x126))??[];const _0x6d7737=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x138)][_0x2c5cc1(0x105)](_0x2c5cc1(0xfa));this[_0x2c5cc1(0x12c)][_0x2c5cc1(0x12e)]&&(this[_0x2c5cc1(0x11f)](),this[_0x2c5cc1(0x129)]['on'](_0x2c5cc1(0x10b),()=>{const _0x4cf5b9=_0x2c5cc1;_0x6d7737[_0x4cf5b9(0x114)][_0x4cf5b9(0xf7)]||this[_0x4cf5b9(0x135)]();}),this[_0x2c5cc1(0x137)](_0x6d7737,_0x2c5cc1(0xdf),()=>{const _0x1cf5fc=_0x2c5cc1;this[_0x1cf5fc(0xf9)]();}));}[_0x2fe130(0x11f)](){const _0x4be2c6=_0x2fe130,_0x72ae37=Object[_0x4be2c6(0x13a)](AIChatShortcutType);this[_0x4be2c6(0x12c)][_0x4be2c6(0x10f)](_0x1d60b0=>{const _0x49bfd2=_0x4be2c6;let _0x4e4b4f=!0x0;if(_0x1d60b0['id']&&_0x1d60b0[_0x49bfd2(0x11d)]&&_0x72ae37[_0x49bfd2(0xef)](_0x1d60b0[_0x49bfd2(0xe8)])?_0x49bfd2(0x115)===_0x1d60b0[_0x49bfd2(0xe8)]&&(_0x4e4b4f=_0x49bfd2(0x107)==typeof _0x1d60b0[_0x49bfd2(0xe9)]):_0x4e4b4f=!0x1,!_0x4e4b4f)throw new _0xf8dd1c(_0x49bfd2(0x127),this[_0x49bfd2(0x118)],{'shortcut':_0x1d60b0});});}[_0x2fe130(0x135)](){const _0x52233c=_0x2fe130,_0x3445bd=this[_0x52233c(0x118)][_0x52233c(0x138)][_0x52233c(0x105)](_0xb6667a);this[_0x52233c(0x10e)]=new _0x989325(this[_0x52233c(0x118)][_0x52233c(0x104)],this[_0x52233c(0x12c)]),this[_0x52233c(0x10e)][_0x52233c(0x103)](),_0x3445bd[_0x52233c(0x125)](this[_0x52233c(0x10e)][_0x52233c(0xf3)],Ut),this[_0x52233c(0x10e)]['on'](_0x52233c(0x10c),_0x3d99ed=>{const _0x1efd3a=_0x52233c,_0x59ce16=_0x3d99ed[_0x1efd3a(0x121)]['id'];this[_0x1efd3a(0x11a)](_0x59ce16);});}[_0x2fe130(0xf9)](){const _0x2e3c74=_0x2fe130,_0x1c9a6d=this[_0x2e3c74(0x118)][_0x2e3c74(0x138)][_0x2e3c74(0x105)](_0xb6667a);_0x1c9a6d[_0x2e3c74(0xeb)](Ut)&&_0x1c9a6d[_0x2e3c74(0xe5)](Ut),this[_0x2e3c74(0x10e)]?.[_0x2e3c74(0xf1)]();}[_0x2fe130(0x11a)](_0x4284fe){const _0x2a009e=_0x2fe130,_0x1ab921=this[_0x2a009e(0x12c)][_0x2a009e(0x131)](_0x24f27f=>_0x24f27f['id']===_0x4284fe),_0x14fb9d=_0x1ab921[_0x2a009e(0xe8)];_0x2a009e(0x115)===_0x14fb9d?this[_0x2a009e(0x11e)](_0x1ab921):_0x2a009e(0x112)===_0x14fb9d?_0x1ab921[_0x2a009e(0x119)]?this[_0x2a009e(0x124)](_0x1ab921):this[_0x2a009e(0xfd)](_0x2a009e(0x113)):_0x2a009e(0x101)===_0x14fb9d&&(_0x1ab921[_0x2a009e(0x109)]?this[_0x2a009e(0x100)](_0x1ab921):this[_0x2a009e(0xfd)](_0x2a009e(0x101)));}[_0x2fe130(0xfd)](_0x284cb1){const _0xbbac8a=_0x2fe130;if(!this[_0xbbac8a(0x118)][_0xbbac8a(0x138)][_0xbbac8a(0x110)](_0xbbac8a(0x123)))throw new _0xf8dd1c(_0xbbac8a(0x12d),this[_0xbbac8a(0x118)],{'tabName':_0x284cb1});this[_0xbbac8a(0x118)][_0xbbac8a(0x138)][_0xbbac8a(0x105)](_0xbbac8a(0x123))[_0xbbac8a(0x11b)][_0xbbac8a(0x128)](_0x284cb1);}async[_0x2fe130(0x11e)]({prompt:_0x429588,draftMode:_0x5efee4,useWebSearch:_0x397fbd=!0x1,useReasoning:_0x317cb1=!0x1,model:_0x12e7d0}){const _0x1ec382=_0x2fe130,_0x26f7c8=this[_0x1ec382(0x118)][_0x1ec382(0x138)][_0x1ec382(0x105)](_0x1ec382(0xfb)),_0x26f639=this[_0x1ec382(0x118)][_0x1ec382(0x138)][_0x1ec382(0x105)](_0x1ec382(0xfa)),_0x2d8a38=_0x26f639[_0x1ec382(0x114)];let _0x3c2c20;_0x3c2c20=_0x12e7d0?await _0x2d8a38[_0x1ec382(0xfe)][_0x1ec382(0xea)](_0x12e7d0):await _0x2d8a38[_0x1ec382(0xfe)][_0x1ec382(0x117)](),_0x3c2c20&&await _0x2d8a38[_0x1ec382(0xe2)](_0x3c2c20),_0x2d8a38[_0x1ec382(0xfc)](_0x397fbd),_0x2d8a38[_0x1ec382(0xe4)](_0x317cb1),_0x26f639[_0x1ec382(0xe7)](),_0x5efee4?(this[_0x1ec382(0x129)][_0x1ec382(0x10d)](_0x429588),this[_0x1ec382(0x129)][_0x1ec382(0x102)](!0x0)):_0x26f7c8[_0x1ec382(0xed)]({'message':_0x429588});}[_0x2fe130(0x124)]({check:_0x5e63e4,model:_0xa89d7e,prompt:_0x16b942,params:_0x2af6d1}){const _0x440f07=_0x2fe130;if(!this[_0x440f07(0x118)][_0x440f07(0x138)][_0x440f07(0x110)](_0x440f07(0x122)))throw new _0xf8dd1c(_0x440f07(0xe6),this[_0x440f07(0x118)]);this[_0x440f07(0xfd)](_0x440f07(0x113));const _0x732f83={'id':_0x5e63e4,'isCustom':_0x440f07(0x136)===_0x5e63e4};_0xa89d7e&&_0x16b942&&(_0x732f83[_0x440f07(0x132)]={'model':_0xa89d7e,'prompt':_0x16b942}),_0x2af6d1&&(_0x732f83[_0x440f07(0x12b)]=_0x2af6d1),this[_0x440f07(0x118)][_0x440f07(0x138)][_0x440f07(0x105)](_0x440f07(0x122))[_0x440f07(0xf0)](_0x440f07(0x108),_0x732f83);}[_0x2fe130(0x100)]({language:_0x26042f}){const _0x5b29f4=_0x2fe130;if(!this[_0x5b29f4(0x118)][_0x5b29f4(0x138)][_0x5b29f4(0x110)](_0x5b29f4(0x12f)))throw new _0xf8dd1c(_0x5b29f4(0x139),this[_0x5b29f4(0x118)]);this[_0x5b29f4(0xfd)](_0x5b29f4(0x101)),this[_0x5b29f4(0x118)][_0x5b29f4(0x138)][_0x5b29f4(0x105)](_0x5b29f4(0x12f))[_0x5b29f4(0xf0)](_0x5b29f4(0x108),{'id':_0x26042f,'args':{'language':_0x26042f}});}}function _0x2b5c(_0x3176c8,_0x522a91){const _0x2bf580=_0x2bf5();return _0x2b5c=function(_0x2b5c95,_0x348a1b){_0x2b5c95=_0x2b5c95-0xdf;let _0x2adb10=_0x2bf580[_0x2b5c95];return _0x2adb10;},_0x2b5c(_0x3176c8,_0x522a91);}function _0x2bf5(){const _0x4abdfa=['has','330JQZTtV','review','reviewMode','activeConversation','chat','1174981iigDMX','getDefault','context','check','_executeShortcut','view','chat-shortcuts','label','_runChatShortcut','_validateShortcuts','isOfficialPlugin','source','AIReviewModeUI','AITabs','_runReviewShortcut','addFeedItemCustomElement','ai.chat.shortcuts','ai-chat-shortcuts-invalid-config','activateTab','_aiChatUI','AIChatShortcuts','params','_shortcuts','ai-chat-shortcuts-ai-tabs-not-found','length','AITranslateUI','CHAT','find','args','requires','isPremiumPlugin','_injectShortcuts','custom','listenTo','plugins','ai-chat-shortcuts-translate-not-found','values','TRANSLATE','interactionStarted','8657uoodgI','REVIEW','setModel','827673IBZuYR','setReasoning','removeFeedItem','ai-chat-shortcuts-review-mode-not-found','addCurrentDocumentToChatContext','type','prompt','getModel','hasFeedItem','2EqQmzl','sendMessage','3301308MydToO','includes','fire','destroy','11282768FZIMKn','element','89346IQgVGZ','544688DtDiUt','34030Uclqia','isFromHistory','init','_removeShortcuts','AIChatController','AIChat','setWebSearch','_switchTab','chatModels','pluginName','_runTranslateShortcut','translate','focusPromptInput','render','locale','get','config','string','runReviewCheck','language','30ApVbAJ','conversationCreated','execute','setPromptInputValue','_shortcutsView','forEach'];_0x2bf5=function(){return _0x4abdfa;};return _0x2bf5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c58(){const _0x2fbf07=['243369MiQStA','locale','329500kDjeDV','listView','execute','1730DqGsOR','1784043mUKscL','children','3008DZuXqT','add','ck-ai-chat-shortcuts','1SOebMa','8PPPLln','delegate','1027812rTIurd','map','setTemplate','580587pUfyFQ','addMany','div','103270nzSGPA','items'];_0x2c58=function(){return _0x2fbf07;};return _0x2c58();}const _0x1efb22=_0x5cd5;(function(_0x5e83ec,_0x3721be){const _0x2174d2=_0x5cd5,_0x382531=_0x5e83ec();while(!![]){try{const _0x35d35f=parseInt(_0x2174d2(0x13e))/0x1*(parseInt(_0x2174d2(0x131))/0x2)+parseInt(_0x2174d2(0x12e))/0x3+-parseInt(_0x2174d2(0x13b))/0x4*(-parseInt(_0x2174d2(0x138))/0x5)+-parseInt(_0x2174d2(0x141))/0x6+parseInt(_0x2174d2(0x133))/0x7*(-parseInt(_0x2174d2(0x13f))/0x8)+-parseInt(_0x2174d2(0x139))/0x9+parseInt(_0x2174d2(0x135))/0xa;if(_0x35d35f===_0x3721be)break;else _0x382531['push'](_0x382531['shift']());}catch(_0x323611){_0x382531['push'](_0x382531['shift']());}}}(_0x2c58,0x20b7a));import{ListItemView as _0x54990c,ListView as _0x1f6d49,View as _0x5b4fd8}from'ckeditor5/src/ui.js';function _0x5cd5(_0x31d0fa,_0x1d0256){const _0x2c582a=_0x2c58();return _0x5cd5=function(_0x5cd5e9,_0x56fadc){_0x5cd5e9=_0x5cd5e9-0x12c;let _0x4388c5=_0x2c582a[_0x5cd5e9];return _0x4388c5;},_0x5cd5(_0x31d0fa,_0x1d0256);}import{AIChatShortcutView as _0x56c187}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5b4fd8{[_0x1efb22(0x136)];constructor(_0x132618,_0x2f5043){const _0x5b5d55=_0x1efb22;super(_0x132618);const _0x242ddf=_0x2f5043[_0x5b5d55(0x12c)](_0x21cb3c=>{const _0x53fe7=_0x5b5d55,_0x35050a=new _0x54990c(this[_0x53fe7(0x134)]),_0x307a6c=new _0x56c187(this[_0x53fe7(0x134)],_0x21cb3c);return _0x35050a[_0x53fe7(0x13a)][_0x53fe7(0x13c)](_0x307a6c),_0x307a6c[_0x53fe7(0x140)](_0x53fe7(0x137))['to'](this),_0x35050a;});this[_0x5b5d55(0x136)]=new _0x1f6d49(this[_0x5b5d55(0x134)]),this[_0x5b5d55(0x136)][_0x5b5d55(0x132)][_0x5b5d55(0x12f)](_0x242ddf),this[_0x5b5d55(0x12d)]({'tag':_0x5b5d55(0x130),'attributes':{'class':['ck',_0x5b5d55(0x13d)]},'children':[this[_0x5b5d55(0x136)]]});}}
23
+ const _0x213ec4=_0x16da;function _0x38ae(){const _0x17c4f8=['addMany','3533424RwPdjV','ck-ai-chat-shortcuts','delegate','2476320VTqDsw','2126460SIEmSI','items','div','1520RPGxNC','execute','children','30645CweIBR','574523nUAgmg','listView','locale','setTemplate','add','1122459HeoBkZ','2QwflMV','25396JgjtHt','map','5260lvLCFP'];_0x38ae=function(){return _0x17c4f8;};return _0x38ae();}function _0x16da(_0x387f02,_0x3197bf){const _0x38ae1f=_0x38ae();return _0x16da=function(_0x16dab9,_0x38e4e9){_0x16dab9=_0x16dab9-0x1e6;let _0x313abf=_0x38ae1f[_0x16dab9];return _0x313abf;},_0x16da(_0x387f02,_0x3197bf);}(function(_0x369289,_0x4196a3){const _0x225bb7=_0x16da,_0x5d7d5b=_0x369289();while(!![]){try{const _0x4a4b58=parseInt(_0x225bb7(0x1f5))/0x1*(parseInt(_0x225bb7(0x1fb))/0x2)+parseInt(_0x225bb7(0x1fa))/0x3+parseInt(_0x225bb7(0x1ea))/0x4+-parseInt(_0x225bb7(0x1ed))/0x5+parseInt(_0x225bb7(0x1ee))/0x6+-parseInt(_0x225bb7(0x1e6))/0x7*(-parseInt(_0x225bb7(0x1f1))/0x8)+-parseInt(_0x225bb7(0x1f4))/0x9*(parseInt(_0x225bb7(0x1e8))/0xa);if(_0x4a4b58===_0x4196a3)break;else _0x5d7d5b['push'](_0x5d7d5b['shift']());}catch(_0x4aadd2){_0x5d7d5b['push'](_0x5d7d5b['shift']());}}}(_0x38ae,0x8fe9c));import{ListItemView as _0x53b14f,ListView as _0x5eac6e,View as _0x33d8c2}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x38e810}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x33d8c2{[_0x213ec4(0x1f6)];constructor(_0x25ceac,_0x5c177d){const _0x4de01a=_0x213ec4;super(_0x25ceac);const _0x38ce1e=_0x5c177d[_0x4de01a(0x1e7)](_0x4139c4=>{const _0x129ad1=_0x4de01a,_0x27bd6d=new _0x53b14f(this[_0x129ad1(0x1f7)]),_0x2f4cad=new _0x38e810(this[_0x129ad1(0x1f7)],_0x4139c4);return _0x27bd6d[_0x129ad1(0x1f3)][_0x129ad1(0x1f9)](_0x2f4cad),_0x2f4cad[_0x129ad1(0x1ec)](_0x129ad1(0x1f2))['to'](this),_0x27bd6d;});this[_0x4de01a(0x1f6)]=new _0x5eac6e(this[_0x4de01a(0x1f7)]),this[_0x4de01a(0x1f6)][_0x4de01a(0x1ef)][_0x4de01a(0x1e9)](_0x38ce1e),this[_0x4de01a(0x1f8)]({'tag':_0x4de01a(0x1f0),'attributes':{'class':['ck',_0x4de01a(0x1eb)]},'children':[this[_0x4de01a(0x1f6)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _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(_0x9da29c,_0x1e95bb){const _0x44690d=_0x5530,_0x465436=_0x9da29c();while(!![]){try{const _0x28577b=parseInt(_0x44690d(0x1c2))/0x1+-parseInt(_0x44690d(0x1bd))/0x2+parseInt(_0x44690d(0x1b9))/0x3*(-parseInt(_0x44690d(0x1be))/0x4)+parseInt(_0x44690d(0x1b7))/0x5+-parseInt(_0x44690d(0x1c0))/0x6+-parseInt(_0x44690d(0x1c3))/0x7+parseInt(_0x44690d(0x1b6))/0x8;if(_0x28577b===_0x1e95bb)break;else _0x465436['push'](_0x465436['shift']());}catch(_0x4dccc6){_0x465436['push'](_0x465436['shift']());}}}(_0x1889,0x7ffa7));function _0x5530(_0x3d7a58,_0x317569){const _0x18894c=_0x1889();return _0x5530=function(_0x553014,_0x2090ea){_0x553014=_0x553014-0x1b6;let _0x11f75f=_0x18894c[_0x553014];return _0x11f75f;},_0x5530(_0x3d7a58,_0x317569);}import{ButtonView as _0x5b31e1}from'ckeditor5/src/ui.js';import{IconAIChat as _0x1a2053,IconAIReview as _0x37faf0,IconAITranslate as _0x1f810d}from'@ckeditor/ckeditor5-icons';function _0x1889(){const _0x55cbee=['13426544tbnTub','5209230pqwwPs','icon','2573973QYgubn','label','translate','chat','1975686LVzixg','4WErFMV','set','1101690nrJWyc','review','12344yrIiGf','1252020QfYJVM','extendTemplate','ck-ai-chat-shortcut'];_0x1889=function(){return _0x55cbee;};return _0x1889();}export class AIChatShortcutView extends _0x5b31e1{['id'];constructor(_0xc7cc78,_0x42aff4){const _0x255a11=_0x5530;super(_0xc7cc78);const {id:_0x1f96bb,type:_0x358ed7,icon:_0xb8bc35}=_0x42aff4;this['id']=_0x1f96bb,this[_0x255a11(0x1bf)]({'label':_0x42aff4[_0x255a11(0x1ba)],'withText':!0x0,'class':_0x255a11(0x1c5)}),this[_0x255a11(0x1c4)]({'attributes':{'data-cke-ai-shortcut-id':_0x42aff4['id']}}),_0xb8bc35?this[_0x255a11(0x1b8)]=_0xb8bc35:_0x255a11(0x1bc)===_0x358ed7?this[_0x255a11(0x1b8)]=_0x1a2053:_0x255a11(0x1c1)===_0x358ed7?this[_0x255a11(0x1b8)]=_0x37faf0:_0x255a11(0x1bb)===_0x358ed7&&(this[_0x255a11(0x1b8)]=_0x1f810d);}}