@ckeditor/ckeditor5-ai 47.6.0 → 47.6.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/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.js +1 -1
  180. package/src/aichat/model/aichatconversation.d.ts +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 _0x18c346=_0x1c09;(function(_0x34f6a9,_0x4e70c9){const _0x21410f=_0x1c09,_0x2f0554=_0x34f6a9();while(!![]){try{const _0x590f05=parseInt(_0x21410f(0x1c7))/0x1*(parseInt(_0x21410f(0x1e1))/0x2)+-parseInt(_0x21410f(0x1c0))/0x3+parseInt(_0x21410f(0x1e5))/0x4*(-parseInt(_0x21410f(0x1f3))/0x5)+-parseInt(_0x21410f(0x212))/0x6*(-parseInt(_0x21410f(0x1f4))/0x7)+-parseInt(_0x21410f(0x20b))/0x8*(-parseInt(_0x21410f(0x1c8))/0x9)+-parseInt(_0x21410f(0x208))/0xa+parseInt(_0x21410f(0x1cd))/0xb;if(_0x590f05===_0x4e70c9)break;else _0x2f0554['push'](_0x2f0554['shift']());}catch(_0x4c3747){_0x2f0554['push'](_0x2f0554['shift']());}}}(_0x5356,0xa0668));import{ContextPlugin as _0x235366}from'ckeditor5/src/core.js';function _0x5356(){const _0x23e55e=['updateItemLoadingState','history','change:activeConversation','push','get','_handleTogglePin','removeConversation','AI_CHAT_HISTORY_CATEGORY_LATER','2YmaFAl','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','createdAt','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','12gqaxSm','unpin','_clearItemLoading','remove','_getCategorizedItems','pluginName','toLocaleDateString','resizeTabs','_updateHistoryItemsUI','requires','getItem','setConversationPinned','rename','_handleEditTitle','1311020xFVxvq','600054alOFlM','loadItems','AI_CHAT_HISTORY_ERROR_GENERIC','locale','itemRemoved','itemId','getMonth','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','openChat','itemUpdated','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','updates','_aiChatHistoryUi','AI_CHAT_HISTORY_UNPIN_ACTION','isPremiumPlugin','chat','context','AIChatHistoryController','removeHistoryItem','_generateErrorMessage','3161260ltmrFg','init','items','144152HcNNlZ','_showConversationHistory','error','updateItemPinned','selectConversation','itemsLoaded','pinned','72VNPTeG','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setIsMaximized','activeConversation','plugins','setDate','getGroupId','_setIsMaximized','operation','resize','handleRemovedConversation','_handleHistoryErrorUI','activateTab','map','editConversationTitle','AI_CHAT_UNTITLED_CONVERSATION','showError','AI_CHAT_HISTORY_CATEGORY_TODAY','length','setLoadingSkeleton','AI_CHAT_HISTORY_CATEGORY_PINNED','691056qDHHNV','_aiConnector','_handleSelectConversation','_aiChatController','removeItem','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','372630XhOeco','153dzUDXD','_setItemLoading','view','title','getFullYear','3107203fDHJsn','getDate','updateItemTitle','pin','listenTo','getItems','activateTab:history','updateItems','resizedTabs','loadConversation','_handleRemove','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM'];_0x5356=function(){return _0x23e55e;};return _0x5356();}import{AIConnector as _0x1e7b1e}from'../aicore/aiconnector.js';import{AIChatController as _0x3656fc}from'../aichat/aichatcontroller.js';import{AITabs as _0xec624}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x4d5cd5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x592a4f}from'./model/aichathistoryconversations.js';import{getTranslation as _0x32515e}from'../aicore/utils/common-translations.js';function _0x1c09(_0x10d5c5,_0x2fce83){const _0x5356de=_0x5356();return _0x1c09=function(_0x1c092a,_0x2d2654){_0x1c092a=_0x1c092a-0x1b7;let _0x57f8e0=_0x5356de[_0x1c092a];return _0x57f8e0;},_0x1c09(_0x10d5c5,_0x2fce83);}export class AIChatHistoryController extends _0x235366{[_0x18c346(0x1c1)];[_0x18c346(0x200)];[_0x18c346(0x1c3)];static get[_0x18c346(0x1ee)](){return[_0x1e7b1e,_0x3656fc,_0x4d5cd5,_0xec624];}static get[_0x18c346(0x1ea)](){const _0x2254cf=_0x18c346;return _0x2254cf(0x205);}static get[_0x18c346(0x1c5)](){return!0x0;}static get[_0x18c346(0x202)](){return!0x0;}[_0x18c346(0x209)](){const _0x43147c=_0x18c346;this[_0x43147c(0x1c1)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x1e7b1e),this[_0x43147c(0x200)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x4d5cd5),this[_0x43147c(0x1c3)]=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0x3656fc);const _0x33f4c4=this[_0x43147c(0x204)][_0x43147c(0x216)][_0x43147c(0x1dd)](_0xec624);try{const _0x213c6b=this[_0x43147c(0x1c3)][_0x43147c(0x218)]();this[_0x43147c(0x1da)]=new _0x592a4f({'connector':this[_0x43147c(0x1c1)],'group':_0x213c6b}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1df),(_0x2a86d9,_0x20ef7d)=>{const _0x22116a=_0x43147c;this[_0x22116a(0x1c9)](_0x20ef7d['id'],_0x22116a(0x1e8)),this[_0x22116a(0x1d7)](_0x20ef7d['id']);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1b9),(_0xfc4837,_0x504e5a)=>{const _0x24f759=_0x43147c;this[_0x24f759(0x1c9)](_0x504e5a['id'],_0x24f759(0x1f1)),this[_0x24f759(0x1f2)](_0x504e5a['id'],_0x504e5a[_0x24f759(0x1cb)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x1fd),(_0xd096fa,_0x2a03d9)=>{const _0x55c9f2=_0x43147c;void 0x0!==_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x1cb)]&&this[_0x55c9f2(0x200)][_0x55c9f2(0x1cf)](_0x2a03d9[_0x55c9f2(0x1f9)],_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x1cb)]),void 0x0!==_0x2a03d9[_0x55c9f2(0x1ff)][_0x55c9f2(0x211)]&&this[_0x55c9f2(0x1ed)](),this[_0x55c9f2(0x1e7)](_0x2a03d9[_0x55c9f2(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x1f8),(_0x28fc24,_0x5edcea)=>{const _0x2e26d9=_0x43147c;this[_0x2e26d9(0x1c3)][_0x2e26d9(0x21c)](_0x5edcea[_0x2e26d9(0x1f9)]),this[_0x2e26d9(0x200)][_0x2e26d9(0x206)](_0x5edcea[_0x2e26d9(0x1f9)]),this[_0x2e26d9(0x1e7)](_0x5edcea[_0x2e26d9(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x210),()=>{const _0x25cc06=_0x43147c;this[_0x25cc06(0x1ed)]();}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1da)],_0x43147c(0x20d),(_0x69bbf1,_0x19c0c3)=>{const _0x17b28c=_0x43147c;this[_0x17b28c(0x21d)](_0x19c0c3[_0x17b28c(0x20d)],_0x19c0c3[_0x17b28c(0x21a)],_0x19c0c3[_0x17b28c(0x1f9)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x20f),(_0x531b48,_0x539768)=>{const _0x4e6704=_0x43147c;this[_0x4e6704(0x1c2)](_0x539768['id']);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1f0),(_0x3ffc65,_0x547107)=>{const _0x411a74=_0x43147c,_0x495ac0=_0x547107[_0x411a74(0x211)]?_0x411a74(0x1d0):_0x411a74(0x1e6);this[_0x411a74(0x1c9)](_0x547107['id'],_0x495ac0),this[_0x411a74(0x1de)](_0x547107['id'],_0x547107[_0x411a74(0x211)]);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1fc),()=>{const _0x11c652=_0x43147c;_0x33f4c4[_0x11c652(0x1ca)][_0x11c652(0x1b7)](_0x11c652(0x203));}),this[_0x43147c(0x1d1)](this[_0x43147c(0x1c3)],_0x43147c(0x1db),()=>{const _0x4b1b61=_0x43147c;this[_0x4b1b61(0x1ed)]();}),_0x33f4c4[_0x43147c(0x1ca)]['on'](_0x43147c(0x1d3),()=>{const _0x10cb33=_0x43147c;this[_0x10cb33(0x20c)]();}),this[_0x43147c(0x1d1)](_0x33f4c4,_0x43147c(0x1d5),(_0x31370e,_0x1ae298)=>{const _0x5ecfd5=_0x43147c;this[_0x5ecfd5(0x219)](_0x1ae298);}),this[_0x43147c(0x1d1)](this[_0x43147c(0x200)],_0x43147c(0x1ec),()=>{const _0x39d16f=_0x43147c;_0x33f4c4[_0x39d16f(0x21b)]();});}catch(_0x1ced35){this[_0x43147c(0x21d)](_0x1ced35,_0x43147c(0x209));}}async[_0x18c346(0x1f2)](_0x285e57,_0x281ff6){const _0x2ff382=_0x18c346;await this[_0x2ff382(0x1da)][_0x2ff382(0x1cf)](_0x285e57,_0x281ff6);}async[_0x18c346(0x1de)](_0x3680e0,_0x5a427b){const _0x1fe6ab=_0x18c346;await this[_0x1fe6ab(0x1da)][_0x1fe6ab(0x20e)](_0x3680e0,_0x5a427b);}async[_0x18c346(0x1d7)](_0x8de623){const _0x34240b=_0x18c346;await this[_0x34240b(0x1da)][_0x34240b(0x1c4)](_0x8de623);}async[_0x18c346(0x1c2)](_0x2fc4c9){const _0x1ff312=_0x18c346;await this[_0x1ff312(0x1c3)][_0x1ff312(0x1d6)](_0x2fc4c9);}async[_0x18c346(0x20c)](){const _0x44366f=_0x18c346;this[_0x44366f(0x200)][_0x44366f(0x1bb)](''),this[_0x44366f(0x200)][_0x44366f(0x1be)](!0x0),await this[_0x44366f(0x1da)][_0x44366f(0x209)](),this[_0x44366f(0x200)][_0x44366f(0x1be)](!0x1);}[_0x18c346(0x1ed)](){const _0x57f826=_0x18c346,_0x58ac64=this[_0x57f826(0x1c3)][_0x57f826(0x215)]?.['id'],_0xcb5254=this[_0x57f826(0x1e9)]()[_0x57f826(0x1b8)](_0x81999c=>({'title':_0x81999c[_0x57f826(0x1cb)],'items':_0x81999c[_0x57f826(0x20a)][_0x57f826(0x1b8)](_0x5b8534=>({'id':_0x5b8534['id'],'title':_0x5b8534[_0x57f826(0x1cb)]||_0x32515e(this[_0x57f826(0x204)][_0x57f826(0x1f7)],_0x57f826(0x1ba)),'createdAt':new Date(_0x5b8534[_0x57f826(0x1e3)])[_0x57f826(0x1eb)](),'active':_0x5b8534['id']===_0x58ac64,'pinned':_0x5b8534[_0x57f826(0x211)]}))}));this[_0x57f826(0x200)][_0x57f826(0x1d4)](_0xcb5254);}[_0x18c346(0x1c9)](_0x497dfd,_0x2c4bb9){const _0x404900=_0x18c346;this[_0x404900(0x200)][_0x404900(0x1d9)](_0x497dfd,_0x2c4bb9,!0x0);}[_0x18c346(0x1e7)](_0xa0f48f){const _0x99e02c=_0x18c346;this[_0x99e02c(0x200)][_0x99e02c(0x1d9)](_0xa0f48f,null,!0x1);}[_0x18c346(0x21d)](_0x32cf56,_0x5b0355,_0x52fde9){const _0x77e84f=_0x18c346,_0x5efecb=this[_0x77e84f(0x207)](_0x5b0355,_0x52fde9);this[_0x77e84f(0x200)][_0x77e84f(0x1bb)](_0x5efecb),_0x52fde9&&this[_0x77e84f(0x1e7)](_0x52fde9),this[_0x77e84f(0x200)][_0x77e84f(0x1be)](!0x1);}[_0x18c346(0x207)](_0x50ebdb,_0x8567f0){const _0x387cd4=_0x18c346,_0x39dd71=_0x8567f0?this[_0x387cd4(0x1da)][_0x387cd4(0x1ef)](_0x8567f0):null,_0x28e15a=_0x39dd71?.[_0x387cd4(0x1cb)]||_0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1ba));switch(_0x50ebdb){case _0x387cd4(0x1cf):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1fb),_0x28e15a);case _0x387cd4(0x20e):{const _0x566b4d=_0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x39dd71?.[_0x387cd4(0x211)]?_0x387cd4(0x201):_0x387cd4(0x1c6));return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1e4),[_0x566b4d,_0x28e15a]);}case _0x387cd4(0x1c4):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1d8),_0x28e15a);case _0x387cd4(0x209):case _0x387cd4(0x1f5):return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x213));default:return _0x32515e(this[_0x387cd4(0x204)][_0x387cd4(0x1f7)],_0x387cd4(0x1f6));}}[_0x18c346(0x1e9)](){const _0xe26a5e=_0x18c346,_0x3daa26=new Date(),_0x58e5db=new Date(_0x3daa26[_0xe26a5e(0x1cc)](),_0x3daa26[_0xe26a5e(0x1fa)](),_0x3daa26[_0xe26a5e(0x1ce)]()),_0x9d0baa=new Date(_0x58e5db);_0x9d0baa[_0xe26a5e(0x217)](_0x9d0baa[_0xe26a5e(0x1ce)]()-0x1);const _0x4edbd9=new Date(_0x58e5db);_0x4edbd9[_0xe26a5e(0x217)](_0x4edbd9[_0xe26a5e(0x1ce)]()-0xe);const _0x4a2280=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'pinned':!0x0}),_0x3b33fe=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x58e5db,'to':_0x58e5db}),_0x45226e=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x9d0baa,'to':_0x9d0baa}),_0x31b6ef=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'from':_0x4edbd9,'to':_0x9d0baa}),_0x553c76=this[_0xe26a5e(0x1da)][_0xe26a5e(0x1d2)]({'to':_0x4edbd9}),_0x477dfa=[];return _0x4a2280[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1bf)),'items':_0x4a2280}),_0x3b33fe[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1bc)),'items':_0x3b33fe}),_0x45226e[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1e2)),'items':_0x45226e}),_0x31b6ef[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1fe)),'items':_0x31b6ef}),_0x553c76[_0xe26a5e(0x1bd)]>0x0&&_0x477dfa[_0xe26a5e(0x1dc)]({'title':_0x32515e(this[_0xe26a5e(0x204)][_0xe26a5e(0x1f7)],_0xe26a5e(0x1e0)),'items':_0x553c76}),_0x477dfa;}[_0x18c346(0x219)](_0x21992d){const _0x34be62=_0x18c346;this[_0x34be62(0x200)][_0x34be62(0x214)](_0x21992d);}}
23
+ function _0xd9b9(_0x6568e7,_0x2ebfaa){const _0x14bdf2=_0x14bd();return _0xd9b9=function(_0xd9b96d,_0x52af2b){_0xd9b96d=_0xd9b96d-0x1d0;let _0x53e0e2=_0x14bdf2[_0xd9b96d];return _0x53e0e2;},_0xd9b9(_0x6568e7,_0x2ebfaa);}const _0x4507f1=_0xd9b9;function _0x14bd(){const _0x210ee5=['requires','updateItemPinned','map','loadItems','title','_setItemLoading','get','getMonth','_setIsMaximized','activateTab:history','itemId','AI_CHAT_HISTORY_CATEGORY_TODAY','setLoadingSkeleton','AI_CHAT_UNTITLED_CONVERSATION','resize','locale','removeHistoryItem','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','2126155vdbtiH','12isMtoW','itemsLoaded','rename','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_handleHistoryErrorUI','getItem','_handleEditTitle','pluginName','getGroupId','_aiConnector','removeItem','9HLXocf','updates','setConversationPinned','unpin','1084797AuyqQH','pinned','plugins','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','resizedTabs','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setDate','updateItems','remove','setIsMaximized','itemUpdated','4471552AFrHyd','loadConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','init','getFullYear','_aiChatController','_updateHistoryItemsUI','error','_aiChatHistoryUi','itemRemoved','push','AIChatHistoryController','_handleTogglePin','openChat','AI_CHAT_HISTORY_CATEGORY_PINNED','removeConversation','view','isOfficialPlugin','3243258HIWeMd','activeConversation','_showConversationHistory','_generateErrorMessage','updateItemLoadingState','items','617203KoxDRN','editConversationTitle','showError','operation','length','handleRemovedConversation','context','isPremiumPlugin','AI_CHAT_HISTORY_ERROR_GENERIC','chat','_getCategorizedItems','selectConversation','AI_CHAT_HISTORY_PIN_ACTION','877428vKLwCW','_clearItemLoading','AI_CHAT_HISTORY_CATEGORY_LATER','listenTo','change:activeConversation','history','updateItemTitle','activateTab','618044MUXNEm','resizeTabs','_handleSelectConversation','getDate','getItems','pin','toLocaleDateString','createdAt','_handleRemove','AI_CHAT_HISTORY_UNPIN_ACTION'];_0x14bd=function(){return _0x210ee5;};return _0x14bd();}(function(_0x221bf1,_0x2a4f29){const _0x2a43b6=_0xd9b9,_0x436a4c=_0x221bf1();while(!![]){try{const _0x30aa50=-parseInt(_0x2a43b6(0x1e9))/0x1+-parseInt(_0x2a43b6(0x1f6))/0x2+parseInt(_0x2a43b6(0x226))/0x3*(parseInt(_0x2a43b6(0x1fe))/0x4)+-parseInt(_0x2a43b6(0x21a))/0x5*(-parseInt(_0x2a43b6(0x21b))/0x6)+parseInt(_0x2a43b6(0x22a))/0x7+parseInt(_0x2a43b6(0x1d0))/0x8+-parseInt(_0x2a43b6(0x1e3))/0x9;if(_0x30aa50===_0x2a4f29)break;else _0x436a4c['push'](_0x436a4c['shift']());}catch(_0x25532d){_0x436a4c['push'](_0x436a4c['shift']());}}}(_0x14bd,0x9552f));import{ContextPlugin as _0x28fc8c}from'ckeditor5/src/core.js';import{AIConnector as _0x1d6e7d}from'../aicore/aiconnector.js';import{AIChatController as _0x5823b2}from'../aichat/aichatcontroller.js';import{AITabs as _0x4b919e}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3a22ab}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1bd50d}from'./model/aichathistoryconversations.js';import{getTranslation as _0x5607d1}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x28fc8c{[_0x4507f1(0x224)];[_0x4507f1(0x1d9)];[_0x4507f1(0x1d6)];static get[_0x4507f1(0x208)](){return[_0x1d6e7d,_0x5823b2,_0x3a22ab,_0x4b919e];}static get[_0x4507f1(0x222)](){const _0x1dc3e3=_0x4507f1;return _0x1dc3e3(0x1dc);}static get[_0x4507f1(0x1e2)](){return!0x0;}static get[_0x4507f1(0x1f0)](){return!0x0;}[_0x4507f1(0x1d4)](){const _0x5c88e0=_0x4507f1;this[_0x5c88e0(0x224)]=this[_0x5c88e0(0x1ef)][_0x5c88e0(0x22c)][_0x5c88e0(0x20e)](_0x1d6e7d),this[_0x5c88e0(0x1d9)]=this[_0x5c88e0(0x1ef)][_0x5c88e0(0x22c)][_0x5c88e0(0x20e)](_0x3a22ab),this[_0x5c88e0(0x1d6)]=this[_0x5c88e0(0x1ef)][_0x5c88e0(0x22c)][_0x5c88e0(0x20e)](_0x5823b2);const _0x23e130=this[_0x5c88e0(0x1ef)][_0x5c88e0(0x22c)][_0x5c88e0(0x20e)](_0x4b919e);try{const _0x5d1240=this[_0x5c88e0(0x1d6)][_0x5c88e0(0x223)]();this[_0x5c88e0(0x1fb)]=new _0x1bd50d({'connector':this[_0x5c88e0(0x224)],'group':_0x5d1240}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1e0),(_0x5e7e7f,_0xc0fc1a)=>{const _0x29f0f3=_0x5c88e0;this[_0x29f0f3(0x20d)](_0xc0fc1a['id'],_0x29f0f3(0x232)),this[_0x29f0f3(0x206)](_0xc0fc1a['id']);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1ea),(_0x22cdf1,_0x3fc804)=>{const _0x54e4c0=_0x5c88e0;this[_0x54e4c0(0x20d)](_0x3fc804['id'],_0x54e4c0(0x21d)),this[_0x54e4c0(0x221)](_0x3fc804['id'],_0x3fc804[_0x54e4c0(0x20c)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1fb)],_0x5c88e0(0x234),(_0x396d4c,_0x13d90c)=>{const _0x1900fb=_0x5c88e0;void 0x0!==_0x13d90c[_0x1900fb(0x227)][_0x1900fb(0x20c)]&&this[_0x1900fb(0x1d9)][_0x1900fb(0x1fc)](_0x13d90c[_0x1900fb(0x212)],_0x13d90c[_0x1900fb(0x227)][_0x1900fb(0x20c)]),void 0x0!==_0x13d90c[_0x1900fb(0x227)][_0x1900fb(0x22b)]&&this[_0x1900fb(0x1d7)](),this[_0x1900fb(0x1f7)](_0x13d90c[_0x1900fb(0x212)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1fb)],_0x5c88e0(0x1da),(_0x257214,_0x15cd5d)=>{const _0x459820=_0x5c88e0;this[_0x459820(0x1d6)][_0x459820(0x1ee)](_0x15cd5d[_0x459820(0x212)]),this[_0x459820(0x1d9)][_0x459820(0x218)](_0x15cd5d[_0x459820(0x212)]),this[_0x459820(0x1f7)](_0x15cd5d[_0x459820(0x212)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1fb)],_0x5c88e0(0x21c),()=>{const _0xbf0604=_0x5c88e0;this[_0xbf0604(0x1d7)]();}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1fb)],_0x5c88e0(0x1d8),(_0x465ff7,_0x579252)=>{const _0x548439=_0x5c88e0;this[_0x548439(0x21f)](_0x579252[_0x548439(0x1d8)],_0x579252[_0x548439(0x1ec)],_0x579252[_0x548439(0x212)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1f4),(_0x4ad1d3,_0x5ebae6)=>{const _0x45c1a7=_0x5c88e0;this[_0x45c1a7(0x200)](_0x5ebae6['id']);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x228),(_0xae6756,_0x37be3c)=>{const _0x462f60=_0x5c88e0,_0x317a88=_0x37be3c[_0x462f60(0x22b)]?_0x462f60(0x203):_0x462f60(0x229);this[_0x462f60(0x20d)](_0x37be3c['id'],_0x317a88),this[_0x462f60(0x1dd)](_0x37be3c['id'],_0x37be3c[_0x462f60(0x22b)]);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1de),()=>{const _0x57b938=_0x5c88e0;_0x23e130[_0x57b938(0x1e1)][_0x57b938(0x1fd)](_0x57b938(0x1f2));}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d6)],_0x5c88e0(0x1fa),()=>{const _0x3a0fa5=_0x5c88e0;this[_0x3a0fa5(0x1d7)]();}),_0x23e130[_0x5c88e0(0x1e1)]['on'](_0x5c88e0(0x211),()=>{const _0x110bfd=_0x5c88e0;this[_0x110bfd(0x1e5)]();}),this[_0x5c88e0(0x1f9)](_0x23e130,_0x5c88e0(0x22e),(_0x1926ce,_0x54e78e)=>{const _0x3721fb=_0x5c88e0;this[_0x3721fb(0x210)](_0x54e78e);}),this[_0x5c88e0(0x1f9)](this[_0x5c88e0(0x1d9)],_0x5c88e0(0x1ff),()=>{const _0x4b53e2=_0x5c88e0;_0x23e130[_0x4b53e2(0x216)]();});}catch(_0x31f94b){this[_0x5c88e0(0x21f)](_0x31f94b,_0x5c88e0(0x1d4));}}async[_0x4507f1(0x221)](_0x4d3061,_0x5c7342){const _0x4490cb=_0x4507f1;await this[_0x4490cb(0x1fb)][_0x4490cb(0x1fc)](_0x4d3061,_0x5c7342);}async[_0x4507f1(0x1dd)](_0x34aed6,_0x4b545a){const _0x4db21a=_0x4507f1;await this[_0x4db21a(0x1fb)][_0x4db21a(0x209)](_0x34aed6,_0x4b545a);}async[_0x4507f1(0x206)](_0x58f888){const _0x21a027=_0x4507f1;await this[_0x21a027(0x1fb)][_0x21a027(0x225)](_0x58f888);}async[_0x4507f1(0x200)](_0x25d797){const _0x1f3847=_0x4507f1;await this[_0x1f3847(0x1d6)][_0x1f3847(0x1d1)](_0x25d797);}async[_0x4507f1(0x1e5)](){const _0x37502c=_0x4507f1;this[_0x37502c(0x1d9)][_0x37502c(0x1eb)](''),this[_0x37502c(0x1d9)][_0x37502c(0x214)](!0x0),await this[_0x37502c(0x1fb)][_0x37502c(0x1d4)](),this[_0x37502c(0x1d9)][_0x37502c(0x214)](!0x1);}[_0x4507f1(0x1d7)](){const _0x42101b=_0x4507f1,_0x5f3c60=this[_0x42101b(0x1d6)][_0x42101b(0x1e4)]?.['id'],_0x5473d5=this[_0x42101b(0x1f3)]()[_0x42101b(0x20a)](_0x33960a=>({'title':_0x33960a[_0x42101b(0x20c)],'items':_0x33960a[_0x42101b(0x1e8)][_0x42101b(0x20a)](_0x5c1f30=>({'id':_0x5c1f30['id'],'title':_0x5c1f30[_0x42101b(0x20c)]||_0x5607d1(this[_0x42101b(0x1ef)][_0x42101b(0x217)],_0x42101b(0x215)),'createdAt':new Date(_0x5c1f30[_0x42101b(0x205)])[_0x42101b(0x204)](),'active':_0x5c1f30['id']===_0x5f3c60,'pinned':_0x5c1f30[_0x42101b(0x22b)]}))}));this[_0x42101b(0x1d9)][_0x42101b(0x231)](_0x5473d5);}[_0x4507f1(0x20d)](_0x4e1726,_0x4850b2){const _0x5d2a88=_0x4507f1;this[_0x5d2a88(0x1d9)][_0x5d2a88(0x1e7)](_0x4e1726,_0x4850b2,!0x0);}[_0x4507f1(0x1f7)](_0x3c14ed){const _0x442ba4=_0x4507f1;this[_0x442ba4(0x1d9)][_0x442ba4(0x1e7)](_0x3c14ed,null,!0x1);}[_0x4507f1(0x21f)](_0x46feb4,_0x6661e4,_0x538033){const _0x7e9cbf=_0x4507f1,_0x119df1=this[_0x7e9cbf(0x1e6)](_0x6661e4,_0x538033);this[_0x7e9cbf(0x1d9)][_0x7e9cbf(0x1eb)](_0x119df1),_0x538033&&this[_0x7e9cbf(0x1f7)](_0x538033),this[_0x7e9cbf(0x1d9)][_0x7e9cbf(0x214)](!0x1);}[_0x4507f1(0x1e6)](_0x2095ea,_0x49c38b){const _0x56d97e=_0x4507f1,_0x3cb0ab=_0x49c38b?this[_0x56d97e(0x1fb)][_0x56d97e(0x220)](_0x49c38b):null,_0x1bf12b=_0x3cb0ab?.[_0x56d97e(0x20c)]||_0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x215));switch(_0x2095ea){case _0x56d97e(0x1fc):return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x219),_0x1bf12b);case _0x56d97e(0x209):{const _0x81d8c2=_0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x3cb0ab?.[_0x56d97e(0x22b)]?_0x56d97e(0x207):_0x56d97e(0x1f5));return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x1d3),[_0x81d8c2,_0x1bf12b]);}case _0x56d97e(0x225):return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x1d2),_0x1bf12b);case _0x56d97e(0x1d4):case _0x56d97e(0x20b):return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x21e));default:return _0x5607d1(this[_0x56d97e(0x1ef)][_0x56d97e(0x217)],_0x56d97e(0x1f1));}}[_0x4507f1(0x1f3)](){const _0x235c54=_0x4507f1,_0x317180=new Date(),_0x34b1a6=new Date(_0x317180[_0x235c54(0x1d5)](),_0x317180[_0x235c54(0x20f)](),_0x317180[_0x235c54(0x201)]()),_0xd243c2=new Date(_0x34b1a6);_0xd243c2[_0x235c54(0x230)](_0xd243c2[_0x235c54(0x201)]()-0x1);const _0x15e728=new Date(_0x34b1a6);_0x15e728[_0x235c54(0x230)](_0x15e728[_0x235c54(0x201)]()-0xe);const _0x49032f=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'pinned':!0x0}),_0x139029=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'from':_0x34b1a6,'to':_0x34b1a6}),_0x37789f=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'from':_0xd243c2,'to':_0xd243c2}),_0x3b6c9b=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'from':_0x15e728,'to':_0xd243c2}),_0x11faee=this[_0x235c54(0x1fb)][_0x235c54(0x202)]({'to':_0x15e728}),_0xee15c3=[];return _0x49032f[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x1df)),'items':_0x49032f}),_0x139029[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x213)),'items':_0x139029}),_0x37789f[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x22d)),'items':_0x37789f}),_0x3b6c9b[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x22f)),'items':_0x3b6c9b}),_0x11faee[_0x235c54(0x1ed)]>0x0&&_0xee15c3[_0x235c54(0x1db)]({'title':_0x5607d1(this[_0x235c54(0x1ef)][_0x235c54(0x217)],_0x235c54(0x1f8)),'items':_0x11faee}),_0xee15c3;}[_0x4507f1(0x210)](_0x2b8d3c){const _0x560a98=_0x4507f1;this[_0x560a98(0x1d9)][_0x560a98(0x233)](_0x2b8d3c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59e722=_0x57c8;(function(_0x25d169,_0x229465){const _0xea80ca=_0x57c8,_0x316f37=_0x25d169();while(!![]){try{const _0x29d0a5=-parseInt(_0xea80ca(0x18b))/0x1*(parseInt(_0xea80ca(0x184))/0x2)+-parseInt(_0xea80ca(0x170))/0x3*(parseInt(_0xea80ca(0x178))/0x4)+parseInt(_0xea80ca(0x188))/0x5+-parseInt(_0xea80ca(0x172))/0x6+parseInt(_0xea80ca(0x168))/0x7*(parseInt(_0xea80ca(0x167))/0x8)+-parseInt(_0xea80ca(0x191))/0x9+-parseInt(_0xea80ca(0x17e))/0xa*(-parseInt(_0xea80ca(0x186))/0xb);if(_0x29d0a5===_0x229465)break;else _0x316f37['push'](_0x316f37['shift']());}catch(_0x56a815){_0x316f37['push'](_0x316f37['shift']());}}}(_0x1497,0x94ce8));import{ContextPlugin as _0x48804a}from'ckeditor5/src/core.js';import{AITabs as _0xc5f7da}from'../aitabs/aitabs.js';import{IconAIHistory as _0x1e32ea}from'ckeditor5/src/icons.js';function _0x57c8(_0x1d8673,_0x38d44c){const _0x14973b=_0x1497();return _0x57c8=function(_0x57c8f7,_0xd65476){_0x57c8f7=_0x57c8f7-0x167;let _0x25d515=_0x14973b[_0x57c8f7];return _0x25d515;},_0x57c8(_0x1d8673,_0x38d44c);}import{AIChatHistoryView as _0x147eee}from'./ui/aichathistoryview.js';import{getTranslation as _0x35a226}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x59e722(0x194),_0x59e722(0x192),_0x59e722(0x185),_0x59e722(0x17b),_0x59e722(0x190),_0x59e722(0x18f),_0x59e722(0x173)];export class AIChatHistoryUI extends _0x48804a{static get[_0x59e722(0x189)](){return[_0xc5f7da];}[_0x59e722(0x16f)];static get[_0x59e722(0x16b)](){const _0x564268=_0x59e722;return _0x564268(0x177);}static get[_0x59e722(0x17f)](){return!0x0;}static get[_0x59e722(0x187)](){return!0x0;}constructor(_0x472853){const _0x5a8a5b=_0x59e722;super(_0x472853);const _0x44e812=this[_0x5a8a5b(0x171)][_0x5a8a5b(0x174)][_0x5a8a5b(0x17a)](_0x5a8a5b(0x16d));this[_0x5a8a5b(0x16f)]=new _0x147eee(this[_0x5a8a5b(0x171)][_0x5a8a5b(0x179)],_0x44e812[_0x5a8a5b(0x16e)]),this[_0x5a8a5b(0x16f)][_0x5a8a5b(0x176)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x44e812[_0x5a8a5b(0x180)][_0x5a8a5b(0x169)]({'id':_0x5a8a5b(0x16a),'buttonLabel':_0x35a226(this[_0x5a8a5b(0x171)][_0x5a8a5b(0x179)],_0x5a8a5b(0x183)),'buttonIcon':_0x1e32ea,'order':0x0,'content':this[_0x5a8a5b(0x16f)]});}[_0x59e722(0x17d)](_0x9f8711){const _0x31f9a9=_0x59e722;this[_0x31f9a9(0x16f)][_0x31f9a9(0x17d)](_0x9f8711);}[_0x59e722(0x18c)](_0x32b88a){const _0x3276d8=_0x59e722;this[_0x3276d8(0x16f)][_0x3276d8(0x193)](_0x32b88a);}[_0x59e722(0x16c)](_0x54cd90,_0x3107ef){const _0x974a66=_0x59e722;this[_0x974a66(0x16f)][_0x974a66(0x16c)](_0x54cd90,_0x3107ef);}[_0x59e722(0x18a)](_0x2c5563,_0x237ef9,_0x1673e6){const _0x26b070=_0x59e722;this[_0x26b070(0x16f)][_0x26b070(0x18a)](_0x2c5563,_0x237ef9,_0x1673e6);}[_0x59e722(0x18e)](_0x1ae974){const _0x218882=_0x59e722;this[_0x218882(0x16f)][_0x218882(0x195)]=_0x1ae974;}[_0x59e722(0x175)](_0x23f716){const _0x3b1103=_0x59e722;this[_0x3b1103(0x16f)][_0x3b1103(0x182)]=_0x23f716;}[_0x59e722(0x181)](){const _0x128bec=_0x59e722;this[_0x128bec(0x16f)][_0x128bec(0x182)]='';}[_0x59e722(0x17c)](_0x26c969){const _0x55d969=_0x59e722;this[_0x55d969(0x16f)][_0x55d969(0x18d)]=_0x26c969;}}function _0x1497(){const _0x3d8e14=['isLoading','56696cEMQdl','959KBAUdA','addTab','history','pluginName','updateItemTitle','AITabs','showResizeButton','_historyView','228018ROMBGO','context','4161624DQtQiW','resizeTabs','plugins','showError','delegate','AIChatHistoryUI','64EfZkZC','locale','get','setConversationPinned','setIsMaximized','removeHistoryItem','4136430PEcawR','isOfficialPlugin','view','hideError','errorMessage','AI_CHAT_HISTORY_HEADING','154AqFJQY','editConversationTitle','77NsqDuY','isPremiumPlugin','2428265JyCIfW','requires','updateItemLoadingState','10781MbpMBp','updateItems','isMaximized','setLoadingSkeleton','openChat','selectConversation','9024516xfThOy','removeConversation','updateHistoryItemsWithCategories','showConversationHistory'];_0x1497=function(){return _0x3d8e14;};return _0x1497();}
23
+ const _0x24bc41=_0x5d8a;function _0x5d8a(_0x16db2e,_0x528a47){const _0x320b82=_0x320b();return _0x5d8a=function(_0x5d8a30,_0x233b6c){_0x5d8a30=_0x5d8a30-0x14d;let _0x40f848=_0x320b82[_0x5d8a30];return _0x40f848;},_0x5d8a(_0x16db2e,_0x528a47);}(function(_0x569764,_0x519bbb){const _0x3a44fe=_0x5d8a,_0x50fc48=_0x569764();while(!![]){try{const _0x3e29d5=-parseInt(_0x3a44fe(0x173))/0x1+-parseInt(_0x3a44fe(0x17a))/0x2+parseInt(_0x3a44fe(0x15e))/0x3*(parseInt(_0x3a44fe(0x16b))/0x4)+parseInt(_0x3a44fe(0x176))/0x5+parseInt(_0x3a44fe(0x16a))/0x6*(parseInt(_0x3a44fe(0x165))/0x7)+-parseInt(_0x3a44fe(0x157))/0x8*(parseInt(_0x3a44fe(0x153))/0x9)+parseInt(_0x3a44fe(0x152))/0xa;if(_0x3e29d5===_0x519bbb)break;else _0x50fc48['push'](_0x50fc48['shift']());}catch(_0x503c8e){_0x50fc48['push'](_0x50fc48['shift']());}}}(_0x320b,0xd9d75));import{ContextPlugin as _0x503aa9}from'ckeditor5/src/core.js';function _0x320b(){const _0x3ed1b3=['delegate','AIChatHistoryUI','view','plugins','6RiNnwz','8QBlPYX','context','requires','setLoadingSkeleton','get','AI_CHAT_HISTORY_HEADING','isPremiumPlugin','selectConversation','1522159vjGqnu','isLoading','hideError','8556450Lrlcdh','updateItemTitle','AITabs','errorMessage','1140218sQExtC','updateHistoryItemsWithCategories','showResizeButton','isOfficialPlugin','showError','showConversationHistory','4139940RzYqNG','4092606BaKhuD','removeHistoryItem','setIsMaximized','locale','8VEJCWP','openChat','editConversationTitle','updateItemLoadingState','history','pluginName','removeConversation','1574718tTHbIV','addTab','resizeTabs','updateItems','_historyView','setConversationPinned','isMaximized','1849281FBdHsl'];_0x320b=function(){return _0x3ed1b3;};return _0x320b();}import{AITabs as _0xd1ec3d}from'../aitabs/aitabs.js';import{IconAIHistory as _0x4aa3e9}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x4edc40}from'./ui/aichathistoryview.js';import{getTranslation as _0x16b38f}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x24bc41(0x151),_0x24bc41(0x15d),_0x24bc41(0x159),_0x24bc41(0x163),_0x24bc41(0x172),_0x24bc41(0x158),_0x24bc41(0x160)];export class AIChatHistoryUI extends _0x503aa9{static get[_0x24bc41(0x16d)](){return[_0xd1ec3d];}[_0x24bc41(0x162)];static get[_0x24bc41(0x15c)](){const _0x25cdd0=_0x24bc41;return _0x25cdd0(0x167);}static get[_0x24bc41(0x14f)](){return!0x0;}static get[_0x24bc41(0x171)](){return!0x0;}constructor(_0x4336b7){const _0x362421=_0x24bc41;super(_0x4336b7);const _0x532a77=this[_0x362421(0x16c)][_0x362421(0x169)][_0x362421(0x16f)](_0x362421(0x178));this[_0x362421(0x162)]=new _0x4edc40(this[_0x362421(0x16c)][_0x362421(0x156)],_0x532a77[_0x362421(0x14e)]),this[_0x362421(0x162)][_0x362421(0x166)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x532a77[_0x362421(0x168)][_0x362421(0x15f)]({'id':_0x362421(0x15b),'buttonLabel':_0x16b38f(this[_0x362421(0x16c)][_0x362421(0x156)],_0x362421(0x170)),'buttonIcon':_0x4aa3e9,'order':0x0,'content':this[_0x362421(0x162)]});}[_0x24bc41(0x154)](_0x3e9f0f){const _0x150054=_0x24bc41;this[_0x150054(0x162)][_0x150054(0x154)](_0x3e9f0f);}[_0x24bc41(0x161)](_0x2674b7){const _0x640e9=_0x24bc41;this[_0x640e9(0x162)][_0x640e9(0x14d)](_0x2674b7);}[_0x24bc41(0x177)](_0x2a6f81,_0x59a56b){const _0xb49051=_0x24bc41;this[_0xb49051(0x162)][_0xb49051(0x177)](_0x2a6f81,_0x59a56b);}[_0x24bc41(0x15a)](_0x15b3b3,_0x32caef,_0x76a910){const _0x597f47=_0x24bc41;this[_0x597f47(0x162)][_0x597f47(0x15a)](_0x15b3b3,_0x32caef,_0x76a910);}[_0x24bc41(0x16e)](_0x382c52){const _0x58b25f=_0x24bc41;this[_0x58b25f(0x162)][_0x58b25f(0x174)]=_0x382c52;}[_0x24bc41(0x150)](_0x346ec0){const _0x1f1368=_0x24bc41;this[_0x1f1368(0x162)][_0x1f1368(0x179)]=_0x346ec0;}[_0x24bc41(0x175)](){const _0x37ad8f=_0x24bc41;this[_0x37ad8f(0x162)][_0x37ad8f(0x179)]='';}[_0x24bc41(0x155)](_0x3b3a0e){const _0x3dad51=_0x24bc41;this[_0x3dad51(0x162)][_0x3dad51(0x164)]=_0x3b3a0e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4491(){const _0x456d88=['getFullYear','findIndex','12PupbsP','10eDrSHa','getConversations','getMonth','getItem','itemRemoved','group','129843IZfBrS','getItems','loadItems','error','2126523pUQQMG','fire','from','map','16BCkklS','removeItem','fetchConversations','find','pinned','execute','items','addItem','createdAt','splice','updateItemPinned','updateConversation','init','deleteConversation','itemUpdated','326577lYfdrm','itemsLoaded','467001gHMoaj','837120tPymor','updateItemTitle','connector','getTime','getResult','updatePinned','filter','getDate','68990TEIRAs','updateTitle','20634zwfLIZ','push'];_0x4491=function(){return _0x456d88;};return _0x4491();}const _0x430903=_0x4c7c;(function(_0x54e04a,_0x375e03){const _0x38a8fe=_0x4c7c,_0x193788=_0x54e04a();while(!![]){try{const _0x574488=parseInt(_0x38a8fe(0x167))/0x1+parseInt(_0x38a8fe(0x189))/0x2+-parseInt(_0x38a8fe(0x17e))/0x3*(parseInt(_0x38a8fe(0x18f))/0x4)+-parseInt(_0x38a8fe(0x190))/0x5*(-parseInt(_0x38a8fe(0x18b))/0x6)+parseInt(_0x38a8fe(0x16b))/0x7+parseInt(_0x38a8fe(0x16f))/0x8*(parseInt(_0x38a8fe(0x180))/0x9)+-parseInt(_0x38a8fe(0x181))/0xa;if(_0x574488===_0x375e03)break;else _0x193788['push'](_0x193788['shift']());}catch(_0x3afb2e){_0x193788['push'](_0x193788['shift']());}}}(_0x4491,0x2922e));import{EmitterMixin as _0x421a14}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x5d1db1}from'./aichathistoryitem.js';function _0x4c7c(_0x32c162,_0x3ae2c5){const _0x4491d4=_0x4491();return _0x4c7c=function(_0x4c7c09,_0x103db4){_0x4c7c09=_0x4c7c09-0x165;let _0x2495cc=_0x4491d4[_0x4c7c09];return _0x2495cc;},_0x4c7c(_0x32c162,_0x3ae2c5);}export class AIChatHistoryConversations extends _0x421a14(){[_0x430903(0x175)]=[];[_0x430903(0x183)];[_0x430903(0x166)];constructor({connector:_0x3a8a08,group:_0x587fd4}){const _0x3239d6=_0x430903;super(),this[_0x3239d6(0x183)]=_0x3a8a08,this[_0x3239d6(0x166)]=_0x587fd4;}async[_0x430903(0x17b)](){const _0x2d764f=_0x430903;try{const _0x4d76e6=this[_0x2d764f(0x183)][_0x2d764f(0x171)](this[_0x2d764f(0x166)]),_0x63cd07=await _0x4d76e6[_0x2d764f(0x191)]();this[_0x2d764f(0x169)](_0x63cd07);}catch(_0x43864a){this[_0x2d764f(0x16c)](_0x2d764f(0x16a),{'error':_0x43864a,'operation':_0x2d764f(0x17b)});}}[_0x430903(0x176)](_0x405137){const _0x4f9a6d=_0x430903;this[_0x4f9a6d(0x175)][_0x4f9a6d(0x18c)](_0x405137);}async[_0x430903(0x170)](_0x37c8ae){const _0x30ba16=_0x430903,_0x20dd44=this[_0x30ba16(0x175)][_0x30ba16(0x18e)](_0x38a90f=>_0x38a90f['id']===_0x37c8ae);if(-0x1===_0x20dd44)return!0x1;try{return await this[_0x30ba16(0x183)][_0x30ba16(0x17c)](_0x37c8ae)[_0x30ba16(0x174)](),this[_0x30ba16(0x175)][_0x30ba16(0x178)](_0x20dd44,0x1),this[_0x30ba16(0x16c)](_0x30ba16(0x165),{'itemId':_0x37c8ae}),!0x0;}catch(_0x13cb0e){return this[_0x30ba16(0x16c)](_0x30ba16(0x16a),{'error':_0x13cb0e,'operation':_0x30ba16(0x170),'itemId':_0x37c8ae}),!0x1;}}[_0x430903(0x193)](_0x599817){const _0x15dcfa=_0x430903;return this[_0x15dcfa(0x175)][_0x15dcfa(0x172)](_0x4f1b21=>_0x4f1b21['id']===_0x599817);}async[_0x430903(0x182)](_0x4a566d,_0x1002d3){const _0x1108e6=_0x430903,_0x271ef7=this[_0x1108e6(0x193)](_0x4a566d);if(!_0x271ef7)return!0x1;try{return await this[_0x1108e6(0x183)][_0x1108e6(0x17a)](_0x4a566d,{'title':_0x1002d3})[_0x1108e6(0x185)](),_0x271ef7[_0x1108e6(0x18a)](_0x1002d3),this[_0x1108e6(0x16c)](_0x1108e6(0x17d),{'itemId':_0x4a566d,'updates':{'title':_0x1002d3}}),!0x0;}catch(_0x1b4ea2){return this[_0x1108e6(0x16c)](_0x1108e6(0x16a),{'error':_0x1b4ea2,'operation':_0x1108e6(0x182),'itemId':_0x4a566d}),!0x1;}}async[_0x430903(0x179)](_0x569e17,_0x38576d){const _0x231e5b=_0x430903,_0x5433d2=this[_0x231e5b(0x193)](_0x569e17);if(!_0x5433d2)return!0x1;try{return await this[_0x231e5b(0x183)][_0x231e5b(0x17a)](_0x569e17,{'pinned':_0x38576d})[_0x231e5b(0x185)](),_0x5433d2[_0x231e5b(0x186)](_0x38576d),this[_0x231e5b(0x16c)](_0x231e5b(0x17d),{'itemId':_0x569e17,'updates':{'pinned':_0x38576d}}),!0x0;}catch(_0x2df0fd){return this[_0x231e5b(0x16c)](_0x231e5b(0x16a),{'error':_0x2df0fd,'operation':_0x231e5b(0x179),'itemId':_0x569e17}),!0x1;}}[_0x430903(0x169)](_0x12b6d2){const _0xa69b02=_0x430903;try{this[_0xa69b02(0x175)]=[],_0x12b6d2[_0xa69b02(0x16e)](_0x1ce771=>{const _0x4ec2c9=_0xa69b02;this[_0x4ec2c9(0x176)](new _0x5d1db1(_0x1ce771));}),this[_0xa69b02(0x16c)](_0xa69b02(0x17f),{'items':[...this[_0xa69b02(0x175)]]});}catch(_0x19c7ff){this[_0xa69b02(0x16c)](_0xa69b02(0x16a),{'error':_0x19c7ff,'operation':_0xa69b02(0x169)});}}[_0x430903(0x168)](_0x3b0209={}){const _0x21e031=_0x430903,_0x3ef78e=void 0x0!==_0x3b0209[_0x21e031(0x173)]&&_0x3b0209[_0x21e031(0x173)],_0x2d5409=_0x3b0209[_0x21e031(0x16d)]?new Date(_0x3b0209[_0x21e031(0x16d)][_0x21e031(0x18d)](),_0x3b0209[_0x21e031(0x16d)][_0x21e031(0x192)](),_0x3b0209[_0x21e031(0x16d)][_0x21e031(0x188)]()):null,_0x50988=_0x3b0209['to']?new Date(_0x3b0209['to'][_0x21e031(0x18d)](),_0x3b0209['to'][_0x21e031(0x192)](),_0x3b0209['to'][_0x21e031(0x188)]()):null;return this[_0x21e031(0x175)][_0x21e031(0x187)](_0x3b462a=>{const _0x4246cc=_0x21e031;if(_0x3b462a[_0x4246cc(0x173)]!==_0x3ef78e)return!0x1;if(_0x50988){const _0x3cc7f7=new Date(_0x3b462a[_0x4246cc(0x177)][_0x4246cc(0x18d)](),_0x3b462a[_0x4246cc(0x177)][_0x4246cc(0x192)](),_0x3b462a[_0x4246cc(0x177)][_0x4246cc(0x188)]());return _0x2d5409?_0x2d5409[_0x4246cc(0x184)]()===_0x50988[_0x4246cc(0x184)]()?_0x3cc7f7[_0x4246cc(0x184)]()===_0x2d5409[_0x4246cc(0x184)]():_0x3cc7f7<_0x50988&&_0x3cc7f7>=_0x2d5409:_0x3cc7f7<_0x50988;}return!0x0;});}}
23
+ const _0x37c010=_0x41cc;(function(_0x2f5814,_0x566f8d){const _0x4e9477=_0x41cc,_0x567f8c=_0x2f5814();while(!![]){try{const _0x379771=-parseInt(_0x4e9477(0x100))/0x1*(-parseInt(_0x4e9477(0x118))/0x2)+parseInt(_0x4e9477(0x10a))/0x3*(-parseInt(_0x4e9477(0xee))/0x4)+parseInt(_0x4e9477(0xf1))/0x5*(parseInt(_0x4e9477(0x10e))/0x6)+-parseInt(_0x4e9477(0x101))/0x7*(-parseInt(_0x4e9477(0xf3))/0x8)+parseInt(_0x4e9477(0xf7))/0x9*(-parseInt(_0x4e9477(0x107))/0xa)+parseInt(_0x4e9477(0xf9))/0xb+-parseInt(_0x4e9477(0xf4))/0xc;if(_0x379771===_0x566f8d)break;else _0x567f8c['push'](_0x567f8c['shift']());}catch(_0x442fb1){_0x567f8c['push'](_0x567f8c['shift']());}}}(_0x37fd,0x8cdce));function _0x37fd(){const _0x59e17c=['1323lpAFIB','deleteConversation','5676770qMkgVO','removeItem','map','getConversations','pinned','filter','loadItems','41DkBkek','128254ifEsub','find','updateItemPinned','getItems','updateTitle','addItem','5430ymkMJJ','getDate','itemRemoved','9rVTXnR','items','createdAt','from','12ieYPSa','push','updateConversation','getFullYear','getMonth','updatePinned','updateItemTitle','group','splice','getItem','45062MLNplE','execute','itemsLoaded','error','findIndex','getTime','connector','819724GztiwI','init','fire','1646605XqTvsw','getResult','328ZTmkGZ','18937164ZoHenY','itemUpdated','fetchConversations'];_0x37fd=function(){return _0x59e17c;};return _0x37fd();}function _0x41cc(_0x1d61ff,_0x315c9c){const _0x37fd5f=_0x37fd();return _0x41cc=function(_0x41ccdd,_0x41614d){_0x41ccdd=_0x41ccdd-0xeb;let _0x541f57=_0x37fd5f[_0x41ccdd];return _0x541f57;},_0x41cc(_0x1d61ff,_0x315c9c);}import{EmitterMixin as _0x370f73}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x5b5f06}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x370f73(){[_0x37c010(0x10b)]=[];[_0x37c010(0xed)];[_0x37c010(0x115)];constructor({connector:_0x220b65,group:_0x401305}){const _0x10c368=_0x37c010;super(),this[_0x10c368(0xed)]=_0x220b65,this[_0x10c368(0x115)]=_0x401305;}async[_0x37c010(0xef)](){const _0x108d1d=_0x37c010;try{const _0x541524=this[_0x108d1d(0xed)][_0x108d1d(0xf6)](this[_0x108d1d(0x115)]),_0xe10b4=await _0x541524[_0x108d1d(0xfc)]();this[_0x108d1d(0xff)](_0xe10b4);}catch(_0x357ac5){this[_0x108d1d(0xf0)](_0x108d1d(0x11b),{'error':_0x357ac5,'operation':_0x108d1d(0xef)});}}[_0x37c010(0x106)](_0x1412de){const _0x4e71ae=_0x37c010;this[_0x4e71ae(0x10b)][_0x4e71ae(0x10f)](_0x1412de);}async[_0x37c010(0xfa)](_0x3a8523){const _0xadc63e=_0x37c010,_0x4b7577=this[_0xadc63e(0x10b)][_0xadc63e(0xeb)](_0x5b978a=>_0x5b978a['id']===_0x3a8523);if(-0x1===_0x4b7577)return!0x1;try{return await this[_0xadc63e(0xed)][_0xadc63e(0xf8)](_0x3a8523)[_0xadc63e(0x119)](),this[_0xadc63e(0x10b)][_0xadc63e(0x116)](_0x4b7577,0x1),this[_0xadc63e(0xf0)](_0xadc63e(0x109),{'itemId':_0x3a8523}),!0x0;}catch(_0x1d0c96){return this[_0xadc63e(0xf0)](_0xadc63e(0x11b),{'error':_0x1d0c96,'operation':_0xadc63e(0xfa),'itemId':_0x3a8523}),!0x1;}}[_0x37c010(0x117)](_0x5cc3c0){const _0x5b6fdb=_0x37c010;return this[_0x5b6fdb(0x10b)][_0x5b6fdb(0x102)](_0x6c24c4=>_0x6c24c4['id']===_0x5cc3c0);}async[_0x37c010(0x114)](_0x36f96c,_0x32ef6e){const _0x26beb8=_0x37c010,_0x358383=this[_0x26beb8(0x117)](_0x36f96c);if(!_0x358383)return!0x1;try{return await this[_0x26beb8(0xed)][_0x26beb8(0x110)](_0x36f96c,{'title':_0x32ef6e})[_0x26beb8(0xf2)](),_0x358383[_0x26beb8(0x105)](_0x32ef6e),this[_0x26beb8(0xf0)](_0x26beb8(0xf5),{'itemId':_0x36f96c,'updates':{'title':_0x32ef6e}}),!0x0;}catch(_0x363113){return this[_0x26beb8(0xf0)](_0x26beb8(0x11b),{'error':_0x363113,'operation':_0x26beb8(0x114),'itemId':_0x36f96c}),!0x1;}}async[_0x37c010(0x103)](_0x19c18d,_0x247412){const _0x50f012=_0x37c010,_0xa313ce=this[_0x50f012(0x117)](_0x19c18d);if(!_0xa313ce)return!0x1;try{return await this[_0x50f012(0xed)][_0x50f012(0x110)](_0x19c18d,{'pinned':_0x247412})[_0x50f012(0xf2)](),_0xa313ce[_0x50f012(0x113)](_0x247412),this[_0x50f012(0xf0)](_0x50f012(0xf5),{'itemId':_0x19c18d,'updates':{'pinned':_0x247412}}),!0x0;}catch(_0x336f26){return this[_0x50f012(0xf0)](_0x50f012(0x11b),{'error':_0x336f26,'operation':_0x50f012(0x103),'itemId':_0x19c18d}),!0x1;}}[_0x37c010(0xff)](_0x556201){const _0x514b65=_0x37c010;try{this[_0x514b65(0x10b)]=[],_0x556201[_0x514b65(0xfb)](_0xe8b0aa=>{const _0x2d5713=_0x514b65;this[_0x2d5713(0x106)](new _0x5b5f06(_0xe8b0aa));}),this[_0x514b65(0xf0)](_0x514b65(0x11a),{'items':[...this[_0x514b65(0x10b)]]});}catch(_0x40296a){this[_0x514b65(0xf0)](_0x514b65(0x11b),{'error':_0x40296a,'operation':_0x514b65(0xff)});}}[_0x37c010(0x104)](_0x4ee2d0={}){const _0xed5667=_0x37c010,_0x17ffb7=void 0x0!==_0x4ee2d0[_0xed5667(0xfd)]&&_0x4ee2d0[_0xed5667(0xfd)],_0x472fb5=_0x4ee2d0[_0xed5667(0x10d)]?new Date(_0x4ee2d0[_0xed5667(0x10d)][_0xed5667(0x111)](),_0x4ee2d0[_0xed5667(0x10d)][_0xed5667(0x112)](),_0x4ee2d0[_0xed5667(0x10d)][_0xed5667(0x108)]()):null,_0x1d0a2e=_0x4ee2d0['to']?new Date(_0x4ee2d0['to'][_0xed5667(0x111)](),_0x4ee2d0['to'][_0xed5667(0x112)](),_0x4ee2d0['to'][_0xed5667(0x108)]()):null;return this[_0xed5667(0x10b)][_0xed5667(0xfe)](_0x57ec30=>{const _0x2cff70=_0xed5667;if(_0x57ec30[_0x2cff70(0xfd)]!==_0x17ffb7)return!0x1;if(_0x1d0a2e){const _0x52cc8d=new Date(_0x57ec30[_0x2cff70(0x10c)][_0x2cff70(0x111)](),_0x57ec30[_0x2cff70(0x10c)][_0x2cff70(0x112)](),_0x57ec30[_0x2cff70(0x10c)][_0x2cff70(0x108)]());return _0x472fb5?_0x472fb5[_0x2cff70(0xec)]()===_0x1d0a2e[_0x2cff70(0xec)]()?_0x52cc8d[_0x2cff70(0xec)]()===_0x472fb5[_0x2cff70(0xec)]():_0x52cc8d<_0x1d0a2e&&_0x52cc8d>=_0x472fb5:_0x52cc8d<_0x1d0a2e;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x23423a=_0x534a;(function(_0x2ece24,_0x44b758){var _0x28becb=_0x534a,_0x4f3062=_0x2ece24();while(!![]){try{var _0x51e07f=-parseInt(_0x28becb(0x164))/0x1+-parseInt(_0x28becb(0x163))/0x2*(-parseInt(_0x28becb(0x155))/0x3)+parseInt(_0x28becb(0x159))/0x4+parseInt(_0x28becb(0x15a))/0x5+parseInt(_0x28becb(0x161))/0x6*(parseInt(_0x28becb(0x160))/0x7)+-parseInt(_0x28becb(0x15f))/0x8*(-parseInt(_0x28becb(0x158))/0x9)+parseInt(_0x28becb(0x15d))/0xa*(-parseInt(_0x28becb(0x156))/0xb);if(_0x51e07f===_0x44b758)break;else _0x4f3062['push'](_0x4f3062['shift']());}catch(_0x250dc0){_0x4f3062['push'](_0x4f3062['shift']());}}}(_0x2242,0x8c5bc));import{ObservableMixin as _0xc7e497}from'ckeditor5/src/utils.js';import{escape as _0x6ed39a}from'es-toolkit/compat';function _0x2242(){var _0x285770=['2670850XxGBwB','18hiCayJ','createdAt','696926dCLUXK','333655rbpSAW','set','updatedAt','3LWvluY','7228287FtaTEe','updateTitle','5278491oTnLVT','916640hkxcPS','2855710akagem','pinned','title','30IXcYHi','updatePinned','8VQzjyP'];_0x2242=function(){return _0x285770;};return _0x2242();}function _0x534a(_0x494501,_0x2cac7e){var _0x22427b=_0x2242();return _0x534a=function(_0x534afb,_0x54f335){_0x534afb=_0x534afb-0x153;var _0x28c8e0=_0x22427b[_0x534afb];return _0x28c8e0;},_0x534a(_0x494501,_0x2cac7e);}export class AIChatHistoryItem extends _0xc7e497(){['id'];[_0x23423a(0x162)];constructor({id:_0x502584,title:_0x1c4c39,createdAt:_0x35e858,updatedAt:_0x39ce9c,pinned:_0x1a0279}){var _0x1c7825=_0x23423a;super(),this['id']=_0x502584,this[_0x1c7825(0x162)]=new Date(_0x35e858),this[_0x1c7825(0x153)](_0x1c7825(0x15c),_0x1c4c39),this[_0x1c7825(0x153)](_0x1c7825(0x154),_0x39ce9c?new Date(_0x39ce9c):null),this[_0x1c7825(0x153)](_0x1c7825(0x15b),_0x1a0279||!0x1);}[_0x23423a(0x157)](_0x24de0e){var _0xbd0bdf=_0x23423a;this[_0xbd0bdf(0x153)](_0xbd0bdf(0x15c),_0x6ed39a(_0x24de0e)),this[_0xbd0bdf(0x154)]=new Date();}[_0x23423a(0x15e)](_0x390890){var _0x535aa9=_0x23423a;this[_0x535aa9(0x153)](_0x535aa9(0x15b),_0x390890),this[_0x535aa9(0x154)]=new Date();}}
23
+ var _0x445154=_0x3189;(function(_0x3b89b2,_0x3a0fe2){var _0x476c56=_0x3189,_0xcd9fb7=_0x3b89b2();while(!![]){try{var _0x5123c4=-parseInt(_0x476c56(0xab))/0x1+parseInt(_0x476c56(0xb3))/0x2*(parseInt(_0x476c56(0xa8))/0x3)+parseInt(_0x476c56(0xad))/0x4+parseInt(_0x476c56(0xac))/0x5*(-parseInt(_0x476c56(0xb6))/0x6)+-parseInt(_0x476c56(0xa7))/0x7+parseInt(_0x476c56(0xae))/0x8*(-parseInt(_0x476c56(0xb1))/0x9)+parseInt(_0x476c56(0xb7))/0xa;if(_0x5123c4===_0x3a0fe2)break;else _0xcd9fb7['push'](_0xcd9fb7['shift']());}catch(_0x3881bc){_0xcd9fb7['push'](_0xcd9fb7['shift']());}}}(_0xee5c,0x94562));import{ObservableMixin as _0xc1bb91}from'ckeditor5/src/utils.js';function _0xee5c(){var _0x422771=['createdAt','18icNWZz','updateTitle','2530QfJFyz','updatedAt','pinned','2106180NEFVOp','22331840mqgByd','7891625ilqOBy','447LntyNB','set','updatePinned','187500epaKTz','5isfgzU','4053192lIBRyK','4645904vMLRuS','title'];_0xee5c=function(){return _0x422771;};return _0xee5c();}function _0x3189(_0x180223,_0x1e41c9){var _0xee5c50=_0xee5c();return _0x3189=function(_0x318947,_0x1d077a){_0x318947=_0x318947-0xa7;var _0x2f2a57=_0xee5c50[_0x318947];return _0x2f2a57;},_0x3189(_0x180223,_0x1e41c9);}import{escape as _0x49d90f}from'es-toolkit/compat';export class AIChatHistoryItem extends _0xc1bb91(){['id'];[_0x445154(0xb0)];constructor({id:_0x52a530,title:_0x2c6562,createdAt:_0x4160a6,updatedAt:_0x548c63,pinned:_0x16cb0a}){var _0x18462a=_0x445154;super(),this['id']=_0x52a530,this[_0x18462a(0xb0)]=new Date(_0x4160a6),this[_0x18462a(0xa9)](_0x18462a(0xaf),_0x2c6562),this[_0x18462a(0xa9)](_0x18462a(0xb4),_0x548c63?new Date(_0x548c63):null),this[_0x18462a(0xa9)](_0x18462a(0xb5),_0x16cb0a||!0x1);}[_0x445154(0xb2)](_0x308ccd){var _0x1cedf0=_0x445154;this[_0x1cedf0(0xa9)](_0x1cedf0(0xaf),_0x49d90f(_0x308ccd)),this[_0x1cedf0(0xb4)]=new Date();}[_0x445154(0xaa)](_0x50de9d){var _0x31934e=_0x445154;this[_0x31934e(0xa9)](_0x31934e(0xb5),_0x50de9d),this[_0x31934e(0xb4)]=new Date();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x389e51=_0x5c1f;(function(_0x557db5,_0x1dbf8e){const _0x96ce63=_0x5c1f,_0x46d380=_0x557db5();while(!![]){try{const _0x748e0e=-parseInt(_0x96ce63(0xec))/0x1+parseInt(_0x96ce63(0x104))/0x2+-parseInt(_0x96ce63(0xfc))/0x3*(-parseInt(_0x96ce63(0xe9))/0x4)+parseInt(_0x96ce63(0xed))/0x5*(parseInt(_0x96ce63(0xd8))/0x6)+parseInt(_0x96ce63(0x110))/0x7+-parseInt(_0x96ce63(0xfa))/0x8+-parseInt(_0x96ce63(0xff))/0x9;if(_0x748e0e===_0x1dbf8e)break;else _0x46d380['push'](_0x46d380['shift']());}catch(_0x382ca3){_0x46d380['push'](_0x46d380['shift']());}}}(_0x2e01,0x9e069));import{ListItemView as _0x15dbc0,HighlightedTextView as _0x58c216,ButtonView as _0x4865cd,ListView as _0x46e45c,IconView as _0x81a6c9,createDropdown as _0x5be4c9,InputTextView as _0x4157ce}from'ckeditor5/src/ui.js';function _0x5c1f(_0x4aa3fb,_0x2c1fa8){const _0x2e0190=_0x2e01();return _0x5c1f=function(_0x5c1fe1,_0x343144){_0x5c1fe1=_0x5c1fe1-0xc9;let _0x376303=_0x2e0190[_0x5c1fe1];return _0x376303;},_0x5c1f(_0x4aa3fb,_0x2c1fa8);}import{IconThreeHorizontalDots as _0x29accc,IconPin as _0x1a440a,IconCheck as _0xa844a0,IconCancel as _0x25191e}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x4d5424,ConfirmMixin as _0x1e057f}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x5d43ac}from'es-toolkit/compat';import{AISpinnerView as _0x55fc29}from'../../aicore/ui/aispinner.js';function _0x2e01(){const _0x384c8f=['_createCheckView','then','_createEditInputView','_createCancelEditButtonView','ck-confirm-view-submit','removeConversation','fire','match','ck-ai-chat-history__item-content','tiny','extendTemplate','pinned','focus','isMatching','ck-ai-chat-history__item-row','editConversationTitle','isOn','AI_CHAT_HISTORY_LOADING_PINNING','edit:cancel','Enter','ck-ai-loader__text','AI_CHAT_HISTORY_ACCEPT','isEdit','LOADING_LABELS','setConversationPinned','highlightText','panelPosition','_createPinButtonView','ck-ai-chat-history__item-check','selectConversation','bind','actions','6AGqefl','bindTemplate','click','buttonView','withText','_titleView','clear','value','ck-hidden','_createSpinnerView','AI_CHAT_HISTORY_REMOVE_CONFIRM','set','ck-ai-chat-history__item-main-content','execute','add','div','children','32ldkjyi','ck-ai-chat-history__item','listitem','41272ysxavG','4910160kmuetj','ck-ai-chat-history__item-actions','change:isEdit','ck-ai-chat-history__item-date','_createMenuDropdownView','AI_CHAT_HISTORY_REMOVE','ck-confirm-view-cancel','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item--edit','isVisible','setTemplate','updateLoadingState','key','1591336UpAQxb','string','270855xYwJQW','ck-ai-chat-history__item-check-container','panelView','9737676EsmUrE','AI_CHAT_HISTORY_EDIT_NAME','createCollection','mainContent','ck-ai-chat-history__item--active','313452RpTfWT','items','label','element','addMany','AI_CHAT_HISTORY_LOADING_REMOVING','_createAcceptEditButtonView','AI_CHAT_HISTORY_CANCEL','locale','AI_CHAT_HISTORY_LOADING_UNPINNING','updateTitle','AI_CHAT_HISTORY_LOADING_RENAMING','758716iWLEEc','ck-ai-loader','_commitEditInputValue','loadingState','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-title','showConfirm','span','text'];_0x2e01=function(){return _0x384c8f;};return _0x2e01();}import{getTranslation as _0x3937c1}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x1e057f(_0x15dbc0){['id'];static [_0x389e51(0xcf)]={'remove':_0x389e51(0x109),'rename':_0x389e51(0x10f),'pin':_0x389e51(0xc9),'unpin':_0x389e51(0x10d)};[_0x389e51(0xd7)];[_0x389e51(0x102)];[_0x389e51(0xdd)];constructor(_0xbe45c1,_0x44dfc0){const _0x5db529=_0x389e51;super(_0xbe45c1);const _0x3ed1f5=this[_0x5db529(0xd9)];this[_0x5db529(0xe3)](_0x5db529(0xce),!0x1),this[_0x5db529(0xe3)](_0x5db529(0xf6),!0x0),this[_0x5db529(0xe3)](_0x5db529(0x124),!!_0x44dfc0[_0x5db529(0x124)]),this[_0x5db529(0xe3)](_0x5db529(0x113),null),this['id']=_0x44dfc0['id'];const {title:_0x47be15,createdAt:_0x1f5fa2,active:_0x2b2c15=!0x1}=_0x44dfc0;this[_0x5db529(0xdd)]=new _0x58c216(),this[_0x5db529(0xdd)][_0x5db529(0x118)]=_0x47be15,this[_0x5db529(0xdd)][_0x5db529(0x123)]({'attributes':{'class':[_0x5db529(0x115)]}});const _0x27cf77=this[_0x5db529(0x119)](),_0x2f0c23=this[_0x5db529(0xd3)](_0xbe45c1),_0x479021=this[_0x5db529(0xf1)](),_0x708d94=this[_0x5db529(0x11b)](_0xbe45c1,_0x47be15),_0x3b60a6=this[_0x5db529(0x10a)](_0xbe45c1,_0x708d94),_0x1459de=this[_0x5db529(0x11c)](_0xbe45c1,_0x708d94);this[_0x5db529(0xd7)]=this[_0x5db529(0x101)](),this[_0x5db529(0x102)]=this[_0x5db529(0x101)](),this[_0x5db529(0x102)][_0x5db529(0xe6)](this[_0x5db529(0xdd)]),this[_0x5db529(0xd7)][_0x5db529(0xe6)](_0x2f0c23),this[_0x5db529(0xd7)][_0x5db529(0xe6)](_0x479021),this['on'](_0x5db529(0xef),(_0x4ccbfb,_0x8b13e1,_0x347f74)=>{const _0x4f6ed6=_0x5db529;this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xde)](),this[_0x4f6ed6(0x102)][_0x4f6ed6(0xde)](),_0x347f74?(this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xe6)](_0x3b60a6),this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xe6)](_0x1459de),this[_0x4f6ed6(0x102)][_0x4f6ed6(0xe6)](_0x708d94),_0x708d94[_0x4f6ed6(0x107)][_0x4f6ed6(0x125)]()):(this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xe6)](_0x2f0c23),this[_0x4f6ed6(0xd7)][_0x4f6ed6(0xe6)](_0x479021),this[_0x4f6ed6(0x102)][_0x4f6ed6(0xe6)](this[_0x4f6ed6(0xdd)]));}),this[_0x5db529(0xf7)]({'tag':'li','attributes':{'class':[_0x5db529(0xea),_0x2b2c15?_0x5db529(0x103):'',_0x3ed1f5['if'](_0x5db529(0xf6),_0x5db529(0xe0),_0x34673f=>!_0x34673f),_0x3ed1f5['if'](_0x5db529(0xce),_0x5db529(0xf5))],'role':_0x5db529(0xeb)},'children':[{'tag':_0x5db529(0x117),'attributes':{'class':[_0x5db529(0xfd)]},'children':[{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0xd4),_0x3ed1f5['if'](_0x5db529(0x113),_0x5db529(0xe0),_0x4dce29=>!!_0x4dce29)]},'children':_0x2b2c15?[_0x27cf77]:[]},{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0x111),_0x3ed1f5['if'](_0x5db529(0x113),_0x5db529(0xe0),_0x1902cd=>!_0x1902cd)]},'children':[this[_0x5db529(0xe1)]()]}]},{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0x127)]},'children':[{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0x121)]},'on':{'click':this[_0x5db529(0xd9)]['to'](_0x5db529(0xda))},'children':[{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0xe4)]},'children':[{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0x115),_0x3ed1f5['if'](_0x5db529(0x113),_0x5db529(0xe0),_0x479807=>!!_0x479807)]},'children':this[_0x5db529(0x102)]},{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0xcc),_0x3ed1f5['if'](_0x5db529(0x113),_0x5db529(0xe0),_0x435da2=>!_0x435da2)]},'children':[{'text':_0x3ed1f5['to'](_0x5db529(0x113),_0x340021=>_0x340021?_0x3937c1(this[_0x5db529(0x10c)],AIChatHistoryListItemView[_0x5db529(0xcf)][_0x340021]):'')}]}]},{'tag':_0x5db529(0x117),'attributes':{'class':[_0x5db529(0xf0)]},'children':[_0x1f5fa2]}]},{'tag':_0x5db529(0xe7),'attributes':{'class':[_0x5db529(0xee)]},'children':this[_0x5db529(0xd7)]}]}]}),this['on'](_0x5db529(0xda),()=>{const _0x43874f=_0x5db529;this[_0x43874f(0xce)]||this[_0x43874f(0x11f)](_0x43874f(0xd5),{'id':this['id']});});}[_0x389e51(0x10e)](_0x2095ad){const _0x2967da=_0x389e51;this[_0x2967da(0xdd)][_0x2967da(0x118)]=_0x5d43ac(_0x2095ad);}[_0x389e51(0xf8)](_0x30b0c1,_0x47ab93){const _0x589cc1=_0x389e51;this[_0x589cc1(0xe3)](_0x589cc1(0x113),_0x47ab93?_0x30b0c1:null);}[_0x389e51(0x119)](){const _0x147a5a=_0x389e51,_0x2d8712=new _0x81a6c9();return _0x2d8712[_0x147a5a(0xe3)]({'content':_0xa844a0}),_0x2d8712;}[_0x389e51(0xd3)](_0x3c6cd1){const _0x3a83e6=_0x389e51,_0x105158=new _0x4865cd(_0x3c6cd1);return _0x105158[_0x3a83e6(0xe3)]({'label':_0x3937c1(_0x3c6cd1,_0x3a83e6(0xf4)),'icon':_0x1a440a,'withText':!0x1,'tooltip':!0x0}),_0x105158[_0x3a83e6(0xd6)](_0x3a83e6(0x129))['to'](this,_0x3a83e6(0x124)),_0x105158['on'](_0x3a83e6(0xe5),()=>{const _0x588cc2=_0x3a83e6,_0xdad199=!this[_0x588cc2(0x124)];this[_0x588cc2(0x11f)](_0x588cc2(0xd0),{'id':this['id'],'pinned':_0xdad199});}),_0x105158;}[_0x389e51(0xf1)](){const _0xa39e2=_0x389e51,_0x135a74=_0x5be4c9(this[_0xa39e2(0x10c)],_0x4d5424),_0x3e5856=_0x135a74[_0xa39e2(0xfe)][_0xa39e2(0xe8)];_0x135a74[_0xa39e2(0xdb)][_0xa39e2(0xe3)]({'label':_0x3937c1(this[_0xa39e2(0x10c)],_0xa39e2(0x114)),'icon':_0x29accc}),_0x135a74[_0xa39e2(0xd2)]='sw';const _0xdbae99=new _0x4865cd(this[_0xa39e2(0x10c)]);_0xdbae99[_0xa39e2(0x106)]=_0x3937c1(this[_0xa39e2(0x10c)],_0xa39e2(0x100)),_0xdbae99[_0xa39e2(0xdc)]=!0x0,_0xdbae99['on'](_0xa39e2(0xe5),()=>{const _0x5c585f=_0xa39e2;this[_0x5c585f(0xce)]=!0x0;});const _0x46b8c6=new _0x4865cd(this[_0xa39e2(0x10c)]);_0x46b8c6[_0xa39e2(0x106)]=_0x3937c1(this[_0xa39e2(0x10c)],_0xa39e2(0xf2)),_0x46b8c6[_0xa39e2(0xdc)]=!0x0,_0x46b8c6['on'](_0xa39e2(0xe5),()=>{const _0x47c0cd=_0xa39e2;this[_0x47c0cd(0x116)](_0x3937c1(this[_0x47c0cd(0x10c)],_0x47c0cd(0xe2)),this[_0x47c0cd(0x107)])[_0x47c0cd(0x11a)](()=>{const _0x440572=_0x47c0cd;this[_0x440572(0x11f)](_0x440572(0x11e),{'id':this['id']});});});const _0x2a7613=new _0x46e45c(this[_0xa39e2(0x10c)]),_0x2afc79=new _0x15dbc0(this[_0xa39e2(0x10c)]);_0x2afc79[_0xa39e2(0xe8)][_0xa39e2(0xe6)](_0xdbae99);const _0x2b6ab2=new _0x15dbc0(this[_0xa39e2(0x10c)]);return _0x2b6ab2[_0xa39e2(0xe8)][_0xa39e2(0xe6)](_0x46b8c6),_0x2a7613[_0xa39e2(0x105)][_0xa39e2(0x108)]([_0x2afc79,_0x2b6ab2]),_0x3e5856[_0xa39e2(0xe6)](_0x2a7613),_0x135a74;}[_0x389e51(0x11b)](_0x108f0e,_0x425da6){const _0x54cc97=_0x389e51,_0x3d6970=new _0x4157ce(_0x108f0e),_0x16c337=_0x3d6970[_0x54cc97(0xd9)];return _0x3d6970[_0x54cc97(0xdf)]=_0x425da6,_0x3d6970[_0x54cc97(0x123)]({'on':{'keydown':_0x16c337['to'](_0x554574=>{const _0x3624d5=_0x54cc97;_0x3624d5(0xcb)==_0x554574[_0x3624d5(0xf9)]&&this[_0x3624d5(0x112)](_0x3d6970);})}}),_0x3d6970;}[_0x389e51(0x10a)](_0x54d82e,_0x40dd25){const _0x2ed3de=_0x389e51,_0x343c63=new _0x4865cd(_0x54d82e);return _0x343c63[_0x2ed3de(0xe3)]({'icon':_0xa844a0,'withText':!0x1,'tooltip':_0x3937c1(_0x54d82e,_0x2ed3de(0xcd))}),_0x343c63[_0x2ed3de(0x123)]({'attributes':{'class':[_0x2ed3de(0x11d)]}}),_0x343c63['on'](_0x2ed3de(0xe5),()=>{const _0x3349f8=_0x2ed3de;this[_0x3349f8(0x112)](_0x40dd25);}),_0x343c63;}[_0x389e51(0x112)](_0x1fff97){const _0x2c5c34=_0x389e51,_0x242237=_0x1fff97[_0x2c5c34(0x107)][_0x2c5c34(0xdf)]||'';this[_0x2c5c34(0xdd)][_0x2c5c34(0x118)]=_0x242237,this[_0x2c5c34(0xce)]=!0x1,this[_0x2c5c34(0x11f)](_0x2c5c34(0x128),{'id':this['id'],'title':_0x242237});}[_0x389e51(0x11c)](_0x435813,_0x5a4957){const _0x132238=_0x389e51,_0x598c36=new _0x4865cd(_0x435813);return _0x598c36[_0x132238(0xe3)]({'icon':_0x25191e,'withText':!0x1,'tooltip':_0x3937c1(_0x435813,_0x132238(0x10b))}),_0x598c36[_0x132238(0x123)]({'attributes':{'class':[_0x132238(0xf3)]}}),_0x598c36['on'](_0x132238(0xe5),()=>{const _0x111900=_0x132238;this[_0x111900(0xce)]=!0x1,_0x5a4957[_0x111900(0xdf)]=this[_0x111900(0xdd)][_0x111900(0x118)]||'',this[_0x111900(0x11f)](_0x111900(0xca));}),_0x598c36;}[_0x389e51(0xe1)](){const _0x324173=_0x389e51,_0x45d263=new _0x55fc29(_0x324173(0x122));return _0x45d263[_0x324173(0xf6)]=!0x0,_0x45d263;}[_0x389e51(0x126)](_0x1bbf41){const _0x3401d9=_0x389e51;return this[_0x3401d9(0xdd)]&&_0x3401d9(0xfb)==typeof this[_0x3401d9(0xdd)][_0x3401d9(0x118)]&&this[_0x3401d9(0xdd)][_0x3401d9(0x118)][_0x3401d9(0x120)](_0x1bbf41)?{'title':!0x0}:null;}[_0x389e51(0xd1)](_0x5cecff){const _0x206501=_0x389e51;this[_0x206501(0xdd)][_0x206501(0xd1)](_0x5cecff);}}
23
+ const _0x558e98=_0x461a;(function(_0xf13107,_0x5d7041){const _0x1b31b2=_0x461a,_0x591d7d=_0xf13107();while(!![]){try{const _0x2eb4da=-parseInt(_0x1b31b2(0x222))/0x1+parseInt(_0x1b31b2(0x223))/0x2*(-parseInt(_0x1b31b2(0x245))/0x3)+-parseInt(_0x1b31b2(0x221))/0x4*(-parseInt(_0x1b31b2(0x22e))/0x5)+-parseInt(_0x1b31b2(0x1e7))/0x6+-parseInt(_0x1b31b2(0x1e8))/0x7*(-parseInt(_0x1b31b2(0x206))/0x8)+-parseInt(_0x1b31b2(0x20f))/0x9*(parseInt(_0x1b31b2(0x1fc))/0xa)+parseInt(_0x1b31b2(0x247))/0xb;if(_0x2eb4da===_0x5d7041)break;else _0x591d7d['push'](_0x591d7d['shift']());}catch(_0x4327a8){_0x591d7d['push'](_0x591d7d['shift']());}}}(_0x1781,0xe8a7f));import{ListItemView as _0x13acdd,HighlightedTextView as _0x1dcbcf,ButtonView as _0x1b5205,ListView as _0x59224c,IconView as _0x105074,createDropdown as _0x55d73c,InputTextView as _0x460d1c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x2e2455,IconPin as _0x55fba5,IconCheck as _0x1f0a00,IconCancel as _0xef5adb}from'ckeditor5/src/icons.js';function _0x1781(){const _0x93b9e9=['showConfirm','ck-confirm-view-cancel','panelPosition','ck-ai-chat-history__item-actions','ck-ai-chat-history__item--active','isVisible','ck-ai-chat-history__item','buttonView','_createCheckView','listitem','_titleView','edit:cancel','ck-ai-chat-history__item-date','items','panelView','clear','text','582490DFgXfq','focus','LOADING_LABELS','bind','editConversationTitle','AI_CHAT_HISTORY_REMOVE_CONFIRM','isEdit','_commitEditInputValue','updateTitle','_createCancelEditButtonView','124216WnKXhm','string','_createAcceptEditButtonView','_createMenuDropdownView','removeConversation','bindTemplate','ck-ai-chat-history__item-main-content','setTemplate','ck-hidden','162lGnoxa','ck-ai-chat-history__item-check-container','label','withText','ck-ai-chat-history__item-content','isMatching','fire','element','AI_CHAT_HISTORY_PIN_BUTTON','ck-confirm-view-submit','click','span','ck-ai-chat-history__item-title','execute','AI_CHAT_HISTORY_EDIT_NAME','isOn','value','tiny','3259744ALgNQl','884185gBbwlf','12ymFWRl','actions','updateLoadingState','AI_CHAT_HISTORY_LOADING_UNPINNING','div','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_CANCEL','set','AI_CHAT_HISTORY_REMOVE','match','5NRvOIr','extendTemplate','ck-ai-chat-history__item-check','createCollection','_createEditInputView','add','addMany','selectConversation','ck-ai-loader__text','Enter','key','_createSpinnerView','change:isEdit','setConversationPinned','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_LOADING_PINNING','children','AI_CHAT_HISTORY_LOADING_REMOVING','mainContent','pinned','ck-ai-chat-history__item-row','loadingState','locale','521076FycRhr','then','37526995CJBHIA','highlightText','AI_CHAT_HISTORY_LOADING_RENAMING','3562296SojyAw','133DbQTIa','_createPinButtonView','ck-ai-loader'];_0x1781=function(){return _0x93b9e9;};return _0x1781();}import{LateFocusDropdownButtonView as _0x4c3724,ConfirmMixin as _0x350ca6}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xb7a014}from'es-toolkit/compat';import{AISpinnerView as _0x3ddd20}from'../../aicore/ui/aispinner.js';function _0x461a(_0x15ea94,_0x28591c){const _0x178163=_0x1781();return _0x461a=function(_0x461a97,_0x2163ce){_0x461a97=_0x461a97-0x1e7;let _0x58fe3c=_0x178163[_0x461a97];return _0x58fe3c;},_0x461a(_0x15ea94,_0x28591c);}import{getTranslation as _0x8f4307}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x350ca6(_0x13acdd){['id'];static [_0x558e98(0x1fe)]={'remove':_0x558e98(0x23f),'rename':_0x558e98(0x249),'pin':_0x558e98(0x23d),'unpin':_0x558e98(0x226)};[_0x558e98(0x224)];[_0x558e98(0x240)];[_0x558e98(0x1f5)];constructor(_0x39e06c,_0x1c0e92){const _0x22e339=_0x558e98;super(_0x39e06c);const _0xec366a=this[_0x22e339(0x20b)];this[_0x22e339(0x22b)](_0x22e339(0x202),!0x1),this[_0x22e339(0x22b)](_0x22e339(0x1f0),!0x0),this[_0x22e339(0x22b)](_0x22e339(0x241),!!_0x1c0e92[_0x22e339(0x241)]),this[_0x22e339(0x22b)](_0x22e339(0x243),null),this['id']=_0x1c0e92['id'];const {title:_0x247ac7,createdAt:_0x1dc15a,active:_0x32fe0d=!0x1}=_0x1c0e92;this[_0x22e339(0x1f5)]=new _0x1dcbcf(),this[_0x22e339(0x1f5)][_0x22e339(0x1fb)]=_0x247ac7,this[_0x22e339(0x1f5)][_0x22e339(0x22f)]({'attributes':{'class':[_0x22e339(0x21b)]}});const _0x45e634=this[_0x22e339(0x1f3)](),_0x1b6b2d=this[_0x22e339(0x1e9)](_0x39e06c),_0x1b4d7c=this[_0x22e339(0x209)](),_0xe6aedb=this[_0x22e339(0x232)](_0x39e06c,_0x247ac7),_0x1d00ae=this[_0x22e339(0x208)](_0x39e06c,_0xe6aedb),_0x204e81=this[_0x22e339(0x205)](_0x39e06c,_0xe6aedb);this[_0x22e339(0x224)]=this[_0x22e339(0x231)](),this[_0x22e339(0x240)]=this[_0x22e339(0x231)](),this[_0x22e339(0x240)][_0x22e339(0x233)](this[_0x22e339(0x1f5)]),this[_0x22e339(0x224)][_0x22e339(0x233)](_0x1b6b2d),this[_0x22e339(0x224)][_0x22e339(0x233)](_0x1b4d7c),this['on'](_0x22e339(0x23a),(_0x280033,_0x1d50d7,_0x31b2c4)=>{const _0x5ecc23=_0x22e339;this[_0x5ecc23(0x224)][_0x5ecc23(0x1fa)](),this[_0x5ecc23(0x240)][_0x5ecc23(0x1fa)](),_0x31b2c4?(this[_0x5ecc23(0x224)][_0x5ecc23(0x233)](_0x1d00ae),this[_0x5ecc23(0x224)][_0x5ecc23(0x233)](_0x204e81),this[_0x5ecc23(0x240)][_0x5ecc23(0x233)](_0xe6aedb),_0xe6aedb[_0x5ecc23(0x216)][_0x5ecc23(0x1fd)]()):(this[_0x5ecc23(0x224)][_0x5ecc23(0x233)](_0x1b6b2d),this[_0x5ecc23(0x224)][_0x5ecc23(0x233)](_0x1b4d7c),this[_0x5ecc23(0x240)][_0x5ecc23(0x233)](this[_0x5ecc23(0x1f5)]));}),this[_0x22e339(0x20d)]({'tag':'li','attributes':{'class':[_0x22e339(0x1f1),_0x32fe0d?_0x22e339(0x1ef):'',_0xec366a['if'](_0x22e339(0x1f0),_0x22e339(0x20e),_0x568e0c=>!_0x568e0c),_0xec366a['if'](_0x22e339(0x202),_0x22e339(0x23c))],'role':_0x22e339(0x1f4)},'children':[{'tag':_0x22e339(0x21a),'attributes':{'class':[_0x22e339(0x210)]},'children':[{'tag':_0x22e339(0x227),'attributes':{'class':[_0x22e339(0x230),_0xec366a['if'](_0x22e339(0x243),_0x22e339(0x20e),_0x1413be=>!!_0x1413be)]},'children':_0x32fe0d?[_0x45e634]:[]},{'tag':_0x22e339(0x227),'attributes':{'class':[_0x22e339(0x1ea),_0xec366a['if'](_0x22e339(0x243),_0x22e339(0x20e),_0x433271=>!_0x433271)]},'children':[this[_0x22e339(0x239)]()]}]},{'tag':_0x22e339(0x227),'attributes':{'class':[_0x22e339(0x242)]},'children':[{'tag':_0x22e339(0x227),'attributes':{'class':[_0x22e339(0x213)]},'on':{'click':this[_0x22e339(0x20b)]['to'](_0x22e339(0x219))},'children':[{'tag':_0x22e339(0x227),'attributes':{'class':[_0x22e339(0x20c)]},'children':[{'tag':_0x22e339(0x227),'attributes':{'class':[_0x22e339(0x21b),_0xec366a['if'](_0x22e339(0x243),_0x22e339(0x20e),_0x4dc6f8=>!!_0x4dc6f8)]},'children':this[_0x22e339(0x240)]},{'tag':_0x22e339(0x227),'attributes':{'class':[_0x22e339(0x236),_0xec366a['if'](_0x22e339(0x243),_0x22e339(0x20e),_0x5a5351=>!_0x5a5351)]},'children':[{'text':_0xec366a['to'](_0x22e339(0x243),_0x19e8a7=>_0x19e8a7?_0x8f4307(this[_0x22e339(0x244)],AIChatHistoryListItemView[_0x22e339(0x1fe)][_0x19e8a7]):'')}]}]},{'tag':_0x22e339(0x21a),'attributes':{'class':[_0x22e339(0x1f7)]},'children':[_0x1dc15a]}]},{'tag':_0x22e339(0x227),'attributes':{'class':[_0x22e339(0x1ee)]},'children':this[_0x22e339(0x224)]}]}]}),this['on'](_0x22e339(0x219),()=>{const _0x59540b=_0x22e339;this[_0x59540b(0x202)]||this[_0x59540b(0x215)](_0x59540b(0x235),{'id':this['id']});});}[_0x558e98(0x204)](_0x5b1927){const _0x5d2478=_0x558e98;this[_0x5d2478(0x1f5)][_0x5d2478(0x1fb)]=_0xb7a014(_0x5b1927);}[_0x558e98(0x225)](_0x100570,_0x26fba3){const _0xd0604f=_0x558e98;this[_0xd0604f(0x22b)](_0xd0604f(0x243),_0x26fba3?_0x100570:null);}[_0x558e98(0x1f3)](){const _0x51ea2c=_0x558e98,_0x8c5871=new _0x105074();return _0x8c5871[_0x51ea2c(0x22b)]({'content':_0x1f0a00}),_0x8c5871;}[_0x558e98(0x1e9)](_0x5415ac){const _0x4ebf15=_0x558e98,_0x1161e1=new _0x1b5205(_0x5415ac);return _0x1161e1[_0x4ebf15(0x22b)]({'label':_0x8f4307(_0x5415ac,_0x4ebf15(0x217)),'icon':_0x55fba5,'withText':!0x1,'tooltip':!0x0}),_0x1161e1[_0x4ebf15(0x1ff)](_0x4ebf15(0x21e))['to'](this,_0x4ebf15(0x241)),_0x1161e1['on'](_0x4ebf15(0x21c),()=>{const _0x77e2f8=_0x4ebf15,_0x54ca8f=!this[_0x77e2f8(0x241)];this[_0x77e2f8(0x215)](_0x77e2f8(0x23b),{'id':this['id'],'pinned':_0x54ca8f});}),_0x1161e1;}[_0x558e98(0x209)](){const _0x3e8d1d=_0x558e98,_0x4abb12=_0x55d73c(this[_0x3e8d1d(0x244)],_0x4c3724),_0x46172b=_0x4abb12[_0x3e8d1d(0x1f9)][_0x3e8d1d(0x23e)];_0x4abb12[_0x3e8d1d(0x1f2)][_0x3e8d1d(0x22b)]({'label':_0x8f4307(this[_0x3e8d1d(0x244)],_0x3e8d1d(0x228)),'icon':_0x2e2455}),_0x4abb12[_0x3e8d1d(0x1ed)]='sw';const _0x62a60e=new _0x1b5205(this[_0x3e8d1d(0x244)]);_0x62a60e[_0x3e8d1d(0x211)]=_0x8f4307(this[_0x3e8d1d(0x244)],_0x3e8d1d(0x21d)),_0x62a60e[_0x3e8d1d(0x212)]=!0x0,_0x62a60e['on'](_0x3e8d1d(0x21c),()=>{const _0x144b3b=_0x3e8d1d;this[_0x144b3b(0x202)]=!0x0;});const _0x249697=new _0x1b5205(this[_0x3e8d1d(0x244)]);_0x249697[_0x3e8d1d(0x211)]=_0x8f4307(this[_0x3e8d1d(0x244)],_0x3e8d1d(0x22c)),_0x249697[_0x3e8d1d(0x212)]=!0x0,_0x249697['on'](_0x3e8d1d(0x21c),()=>{const _0xab0d4=_0x3e8d1d;this[_0xab0d4(0x1eb)](_0x8f4307(this[_0xab0d4(0x244)],_0xab0d4(0x201)),this[_0xab0d4(0x216)])[_0xab0d4(0x246)](()=>{const _0x1a1402=_0xab0d4;this[_0x1a1402(0x215)](_0x1a1402(0x20a),{'id':this['id']});});});const _0x1fbfaa=new _0x59224c(this[_0x3e8d1d(0x244)]),_0x321aa7=new _0x13acdd(this[_0x3e8d1d(0x244)]);_0x321aa7[_0x3e8d1d(0x23e)][_0x3e8d1d(0x233)](_0x62a60e);const _0x333f22=new _0x13acdd(this[_0x3e8d1d(0x244)]);return _0x333f22[_0x3e8d1d(0x23e)][_0x3e8d1d(0x233)](_0x249697),_0x1fbfaa[_0x3e8d1d(0x1f8)][_0x3e8d1d(0x234)]([_0x321aa7,_0x333f22]),_0x46172b[_0x3e8d1d(0x233)](_0x1fbfaa),_0x4abb12;}[_0x558e98(0x232)](_0x4bd23a,_0x3259e4){const _0x2f31c7=_0x558e98,_0x29ceba=new _0x460d1c(_0x4bd23a),_0x1c4f5b=_0x29ceba[_0x2f31c7(0x20b)];return _0x29ceba[_0x2f31c7(0x21f)]=_0x3259e4,_0x29ceba[_0x2f31c7(0x22f)]({'on':{'keydown':_0x1c4f5b['to'](_0x407d59=>{const _0xe5b586=_0x2f31c7;_0xe5b586(0x237)==_0x407d59[_0xe5b586(0x238)]&&this[_0xe5b586(0x203)](_0x29ceba);})}}),_0x29ceba;}[_0x558e98(0x208)](_0x587c30,_0x4ce09b){const _0x408fda=_0x558e98,_0x4a249f=new _0x1b5205(_0x587c30);return _0x4a249f[_0x408fda(0x22b)]({'icon':_0x1f0a00,'withText':!0x1,'tooltip':_0x8f4307(_0x587c30,_0x408fda(0x229))}),_0x4a249f[_0x408fda(0x22f)]({'attributes':{'class':[_0x408fda(0x218)]}}),_0x4a249f['on'](_0x408fda(0x21c),()=>{const _0x3cbfde=_0x408fda;this[_0x3cbfde(0x203)](_0x4ce09b);}),_0x4a249f;}[_0x558e98(0x203)](_0x446387){const _0x13a873=_0x558e98,_0x4f9afe=_0x446387[_0x13a873(0x216)][_0x13a873(0x21f)]||'';this[_0x13a873(0x1f5)][_0x13a873(0x1fb)]=_0x4f9afe,this[_0x13a873(0x202)]=!0x1,this[_0x13a873(0x215)](_0x13a873(0x200),{'id':this['id'],'title':_0x4f9afe});}[_0x558e98(0x205)](_0x58bff6,_0x22a341){const _0x120e9f=_0x558e98,_0x42745f=new _0x1b5205(_0x58bff6);return _0x42745f[_0x120e9f(0x22b)]({'icon':_0xef5adb,'withText':!0x1,'tooltip':_0x8f4307(_0x58bff6,_0x120e9f(0x22a))}),_0x42745f[_0x120e9f(0x22f)]({'attributes':{'class':[_0x120e9f(0x1ec)]}}),_0x42745f['on'](_0x120e9f(0x21c),()=>{const _0x46e3cb=_0x120e9f;this[_0x46e3cb(0x202)]=!0x1,_0x22a341[_0x46e3cb(0x21f)]=this[_0x46e3cb(0x1f5)][_0x46e3cb(0x1fb)]||'',this[_0x46e3cb(0x215)](_0x46e3cb(0x1f6));}),_0x42745f;}[_0x558e98(0x239)](){const _0x168224=_0x558e98,_0x396295=new _0x3ddd20(_0x168224(0x220));return _0x396295[_0x168224(0x1f0)]=!0x0,_0x396295;}[_0x558e98(0x214)](_0x289720){const _0x1d6d75=_0x558e98;return this[_0x1d6d75(0x1f5)]&&_0x1d6d75(0x207)==typeof this[_0x1d6d75(0x1f5)][_0x1d6d75(0x1fb)]&&this[_0x1d6d75(0x1f5)][_0x1d6d75(0x1fb)][_0x1d6d75(0x22d)](_0x289720)?{'title':!0x0}:null;}[_0x558e98(0x248)](_0x93897){const _0x5bccb7=_0x558e98;this[_0x5bccb7(0x1f5)][_0x5bccb7(0x248)](_0x93897);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x434e(_0x2a37fd,_0x574986){const _0x24adc9=_0x24ad();return _0x434e=function(_0x434e31,_0x1a56ba){_0x434e31=_0x434e31-0xa9;let _0x483675=_0x24adc9[_0x434e31];return _0x483675;},_0x434e(_0x2a37fd,_0x574986);}const _0x2eb5f2=_0x434e;function _0x24ad(){const _0x125914=['isMatching','570VgemEZ','itemsViews','remove','highlightText','159713tPhpvg','ck-ai-chat-history__section','bindTemplate','3335705WUKZCm','3ALFIVA','16POzHgM','set','2799199lntOUL','145306yaSmSl','removeItem','2574081eIrJOS','splice','find','setTemplate','length','indexOf','isVisible','12ysvkUI','84FJWbuM','18799MbnrMz','items','filter','_itemsListView','getItem','ck-hidden','ck-ai-chat-history__section-title','div','title','6rJrrRo','812468voruZq','addMany'];_0x24ad=function(){return _0x125914;};return _0x24ad();}(function(_0x2ca5cb,_0x16a0e1){const _0x13d848=_0x434e,_0x3c668c=_0x2ca5cb();while(!![]){try{const _0x3d0673=-parseInt(_0x13d848(0xb0))/0x1*(parseInt(_0x13d848(0xc1))/0x2)+-parseInt(_0x13d848(0xb4))/0x3*(-parseInt(_0x13d848(0xa9))/0x4)+parseInt(_0x13d848(0xb3))/0x5*(-parseInt(_0x13d848(0xcc))/0x6)+-parseInt(_0x13d848(0xb8))/0x7+-parseInt(_0x13d848(0xb5))/0x8*(-parseInt(_0x13d848(0xba))/0x9)+-parseInt(_0x13d848(0xac))/0xa*(parseInt(_0x13d848(0xc3))/0xb)+-parseInt(_0x13d848(0xc2))/0xc*(-parseInt(_0x13d848(0xb7))/0xd);if(_0x3d0673===_0x16a0e1)break;else _0x3c668c['push'](_0x3c668c['shift']());}catch(_0x56c445){_0x3c668c['push'](_0x3c668c['shift']());}}}(_0x24ad,0x838b6));import{ListItemView as _0x4c99d3,View as _0x645dc2,ListView as _0x24c39c}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x4c99d3{[_0x2eb5f2(0xcb)];[_0x2eb5f2(0xad)];[_0x2eb5f2(0xc6)];constructor(_0x5eada8,{title:_0x2c4568,items:_0xdc9c73}){const _0x468365=_0x2eb5f2;super(_0x5eada8);const _0x4d5c64=this[_0x468365(0xb2)];this[_0x468365(0xb6)](_0x468365(0xc0),!0x0),this[_0x468365(0xcb)]=_0x2c4568,this[_0x468365(0xad)]=_0xdc9c73;const _0x39e0f8=new _0x645dc2(_0x5eada8);_0x39e0f8[_0x468365(0xbd)]({'tag':_0x468365(0xca),'attributes':{'class':[_0x468365(0xc9)]},'children':[this[_0x468365(0xcb)]]}),this[_0x468365(0xc6)]=new _0x24c39c(_0x5eada8),this[_0x468365(0xc6)][_0x468365(0xc4)][_0x468365(0xaa)](this[_0x468365(0xad)]),this[_0x468365(0xbd)]({'tag':'li','attributes':{'class':[_0x468365(0xb1),_0x4d5c64['if'](_0x468365(0xc0),_0x468365(0xc8),_0x4b516a=>!_0x4b516a)]},'children':[_0x39e0f8,this[_0x468365(0xc6)]]});}[_0x2eb5f2(0xc5)](_0x1763e2){const _0x2642e2=_0x2eb5f2,_0x1d670b=this[_0x2642e2(0xad)][_0x2642e2(0xbe)];let _0x55e349=0x0;for(const _0x56735b of this[_0x2642e2(0xad)]){if(_0x1763e2){const _0x5cd22d=_0x56735b[_0x2642e2(0xab)](_0x1763e2);_0x56735b[_0x2642e2(0xc0)]=!!_0x5cd22d,_0x56735b[_0x2642e2(0xaf)](_0x1763e2);}else _0x56735b[_0x2642e2(0xc0)]=!0x0,_0x56735b[_0x2642e2(0xaf)](null);_0x56735b[_0x2642e2(0xc0)]&&_0x55e349++;}return this[_0x2642e2(0xc0)]=_0x55e349>0x0,{'resultsCount':_0x55e349,'totalItemsCount':_0x1d670b};}[_0x2eb5f2(0xc7)](_0x3811aa){const _0x28fb3d=_0x2eb5f2;return this[_0x28fb3d(0xad)][_0x28fb3d(0xbc)](_0xe63bbf=>_0xe63bbf['id']===_0x3811aa);}[_0x2eb5f2(0xb9)](_0x396d9c){const _0x4663c4=_0x2eb5f2,_0x2e6dae=this[_0x4663c4(0xad)][_0x4663c4(0xbf)](_0x396d9c);-0x1!==_0x2e6dae&&(this[_0x4663c4(0xad)][_0x4663c4(0xbb)](_0x2e6dae,0x1),this[_0x4663c4(0xc6)][_0x4663c4(0xc4)][_0x4663c4(0xae)](_0x396d9c));}}
23
+ function _0x4185(){const _0xb306c3=['find','splice','3885Bjgszf','title','35330570QICIGf','set','bindTemplate','ck-ai-chat-history__section-title','addMany','itemsViews','ck-ai-chat-history__section','remove','items','isMatching','13160anqbyT','length','getItem','6852hnAHBG','ck-hidden','_itemsListView','div','13315977pPaEhf','indexOf','removeItem','filter','387vftWMI','isVisible','3581067EuWNAp','9366MIVSZI','setTemplate','6068156Ruybva','3475nXdXQE','highlightText'];_0x4185=function(){return _0xb306c3;};return _0x4185();}function _0xb773(_0x2a587a,_0x22c307){const _0x41853a=_0x4185();return _0xb773=function(_0xb77317,_0x1ba9ec){_0xb77317=_0xb77317-0x139;let _0x207b5d=_0x41853a[_0xb77317];return _0x207b5d;},_0xb773(_0x2a587a,_0x22c307);}const _0x3ff344=_0xb773;(function(_0x5e8d52,_0x259c8e){const _0x2c6299=_0xb773,_0x3502a5=_0x5e8d52();while(!![]){try{const _0x29611b=parseInt(_0x2c6299(0x151))/0x1*(-parseInt(_0x2c6299(0x149))/0x2)+-parseInt(_0x2c6299(0x153))/0x3+-parseInt(_0x2c6299(0x156))/0x4+parseInt(_0x2c6299(0x157))/0x5*(-parseInt(_0x2c6299(0x154))/0x6)+parseInt(_0x2c6299(0x13a))/0x7*(parseInt(_0x2c6299(0x146))/0x8)+parseInt(_0x2c6299(0x14d))/0x9+parseInt(_0x2c6299(0x13c))/0xa;if(_0x29611b===_0x259c8e)break;else _0x3502a5['push'](_0x3502a5['shift']());}catch(_0x76e30a){_0x3502a5['push'](_0x3502a5['shift']());}}}(_0x4185,0xc4504));import{ListItemView as _0x7da079,View as _0x33275b,ListView as _0x599e2d}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x7da079{[_0x3ff344(0x13b)];[_0x3ff344(0x141)];[_0x3ff344(0x14b)];constructor(_0x49d552,{title:_0x21c328,items:_0x316002}){const _0x23700c=_0x3ff344;super(_0x49d552);const _0x19de97=this[_0x23700c(0x13e)];this[_0x23700c(0x13d)](_0x23700c(0x152),!0x0),this[_0x23700c(0x13b)]=_0x21c328,this[_0x23700c(0x141)]=_0x316002;const _0x377cf0=new _0x33275b(_0x49d552);_0x377cf0[_0x23700c(0x155)]({'tag':_0x23700c(0x14c),'attributes':{'class':[_0x23700c(0x13f)]},'children':[this[_0x23700c(0x13b)]]}),this[_0x23700c(0x14b)]=new _0x599e2d(_0x49d552),this[_0x23700c(0x14b)][_0x23700c(0x144)][_0x23700c(0x140)](this[_0x23700c(0x141)]),this[_0x23700c(0x155)]({'tag':'li','attributes':{'class':[_0x23700c(0x142),_0x19de97['if'](_0x23700c(0x152),_0x23700c(0x14a),_0x42d74f=>!_0x42d74f)]},'children':[_0x377cf0,this[_0x23700c(0x14b)]]});}[_0x3ff344(0x150)](_0x4153c1){const _0x12f2df=_0x3ff344,_0x370809=this[_0x12f2df(0x141)][_0x12f2df(0x147)];let _0x59c711=0x0;for(const _0x5690d7 of this[_0x12f2df(0x141)]){if(_0x4153c1){const _0x5869cc=_0x5690d7[_0x12f2df(0x145)](_0x4153c1);_0x5690d7[_0x12f2df(0x152)]=!!_0x5869cc,_0x5690d7[_0x12f2df(0x158)](_0x4153c1);}else _0x5690d7[_0x12f2df(0x152)]=!0x0,_0x5690d7[_0x12f2df(0x158)](null);_0x5690d7[_0x12f2df(0x152)]&&_0x59c711++;}return this[_0x12f2df(0x152)]=_0x59c711>0x0,{'resultsCount':_0x59c711,'totalItemsCount':_0x370809};}[_0x3ff344(0x148)](_0x1266d1){const _0x20ce7a=_0x3ff344;return this[_0x20ce7a(0x141)][_0x20ce7a(0x159)](_0x2a4230=>_0x2a4230['id']===_0x1266d1);}[_0x3ff344(0x14f)](_0x996650){const _0x4cac95=_0x3ff344,_0x4a775f=this[_0x4cac95(0x141)][_0x4cac95(0x14e)](_0x996650);-0x1!==_0x4a775f&&(this[_0x4cac95(0x141)][_0x4cac95(0x139)](_0x4a775f,0x1),this[_0x4cac95(0x14b)][_0x4cac95(0x144)][_0x4cac95(0x143)](_0x996650));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6cdab5=_0x19e7;function _0x19e7(_0xdac133,_0x54cdf0){const _0x5ac6a3=_0x5ac6();return _0x19e7=function(_0x19e77b,_0x2c02aa){_0x19e77b=_0x19e77b-0x1c8;let _0x5c5d47=_0x5ac6a3[_0x19e77b];return _0x5c5d47;},_0x19e7(_0xdac133,_0x54cdf0);}(function(_0x2cabe5,_0x37e6f4){const _0x2146a6=_0x19e7,_0x336c05=_0x2cabe5();while(!![]){try{const _0x5769a7=-parseInt(_0x2146a6(0x1d7))/0x1+-parseInt(_0x2146a6(0x1d4))/0x2*(parseInt(_0x2146a6(0x1cb))/0x3)+parseInt(_0x2146a6(0x1d3))/0x4*(parseInt(_0x2146a6(0x1c9))/0x5)+parseInt(_0x2146a6(0x1ce))/0x6+parseInt(_0x2146a6(0x1cd))/0x7+parseInt(_0x2146a6(0x1ca))/0x8*(parseInt(_0x2146a6(0x1d0))/0x9)+parseInt(_0x2146a6(0x1c8))/0xa;if(_0x5769a7===_0x37e6f4)break;else _0x336c05['push'](_0x336c05['shift']());}catch(_0x3d3fe9){_0x336c05['push'](_0x336c05['shift']());}}}(_0x5ac6,0x73914));function _0x5ac6(){const _0x1402e0=['items','extendTemplate','316mEQODk','124114vUDDfa','ck-ai-chat-history__sections','filter','442999PtsqDJ','2092320jXapDF','15835ZnbFhn','528igndZe','36kLebkk','addMany','1777587lFcCTq','3716778pprNkv','sections','44757IajQSi'];_0x5ac6=function(){return _0x1402e0;};return _0x5ac6();}import{ListView as _0x5b592c}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x5b592c{[_0x6cdab5(0x1cf)];constructor(_0x342d68,_0x1e5578){const _0x12d388=_0x6cdab5;super(_0x342d68),this[_0x12d388(0x1cf)]=_0x1e5578,this[_0x12d388(0x1d1)][_0x12d388(0x1cc)](this[_0x12d388(0x1cf)]),this[_0x12d388(0x1d2)]({'attributes':{'class':[_0x12d388(0x1d5)]}});}[_0x6cdab5(0x1d6)](_0x44a5ac){const _0x3317d8=_0x6cdab5;let _0x2f782a=0x0,_0x392ed6=0x0;for(const _0x9875d4 of this[_0x3317d8(0x1cf)]){const {resultsCount:_0x1d5521,totalItemsCount:_0x1ba966}=_0x9875d4[_0x3317d8(0x1d6)](_0x44a5ac);_0x2f782a+=_0x1d5521,_0x392ed6+=_0x1ba966;}return{'resultsCount':_0x2f782a,'totalItemsCount':_0x392ed6};}}
23
+ function _0x4694(_0x35c443,_0x35c4a5){const _0x1871cf=_0x1871();return _0x4694=function(_0x469402,_0x5e8477){_0x469402=_0x469402-0xdc;let _0xc2299d=_0x1871cf[_0x469402];return _0xc2299d;},_0x4694(_0x35c443,_0x35c4a5);}const _0x38663c=_0x4694;(function(_0x2ffca6,_0x463833){const _0x18f36b=_0x4694,_0x45d470=_0x2ffca6();while(!![]){try{const _0x166a7d=-parseInt(_0x18f36b(0xec))/0x1*(parseInt(_0x18f36b(0xed))/0x2)+-parseInt(_0x18f36b(0xe6))/0x3*(-parseInt(_0x18f36b(0xe5))/0x4)+-parseInt(_0x18f36b(0xeb))/0x5*(-parseInt(_0x18f36b(0xe7))/0x6)+-parseInt(_0x18f36b(0xde))/0x7+parseInt(_0x18f36b(0xe4))/0x8+-parseInt(_0x18f36b(0xe0))/0x9*(-parseInt(_0x18f36b(0xea))/0xa)+parseInt(_0x18f36b(0xdc))/0xb*(-parseInt(_0x18f36b(0xe9))/0xc);if(_0x166a7d===_0x463833)break;else _0x45d470['push'](_0x45d470['shift']());}catch(_0x3c88ba){_0x45d470['push'](_0x45d470['shift']());}}}(_0x1871,0x854d5));import{ListView as _0x93c852}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x93c852{[_0x38663c(0xe2)];constructor(_0x3a0466,_0x1d0a09){const _0x129a20=_0x38663c;super(_0x3a0466),this[_0x129a20(0xe2)]=_0x1d0a09,this[_0x129a20(0xe1)][_0x129a20(0xdf)](this[_0x129a20(0xe2)]),this[_0x129a20(0xe8)]({'attributes':{'class':[_0x129a20(0xe3)]}});}[_0x38663c(0xdd)](_0x51ca5b){const _0x46d6e4=_0x38663c;let _0x256188=0x0,_0x111f4c=0x0;for(const _0xb2b100 of this[_0x46d6e4(0xe2)]){const {resultsCount:_0x2ba093,totalItemsCount:_0x27e16c}=_0xb2b100[_0x46d6e4(0xdd)](_0x51ca5b);_0x256188+=_0x2ba093,_0x111f4c+=_0x27e16c;}return{'resultsCount':_0x256188,'totalItemsCount':_0x111f4c};}}function _0x1871(){const _0x58bdbf=['2056jGucON','15605887lqCaSC','filter','2253923UUGRfF','addMany','65916KIPXXC','items','sections','ck-ai-chat-history__sections','7066880ZmHjVt','2439108TrTkxT','3pqsvuq','12SVqnNZ','extendTemplate','12sukHCR','1310HplQWS','114745NXUjYD','206EjDtmo'];_0x1871=function(){return _0x58bdbf;};return _0x1871();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x501f7a=_0x243a;(function(_0x1f56a0,_0x472a69){const _0x4c0a3b=_0x243a,_0x5247ca=_0x1f56a0();while(!![]){try{const _0x4b5526=-parseInt(_0x4c0a3b(0x172))/0x1*(-parseInt(_0x4c0a3b(0x13d))/0x2)+parseInt(_0x4c0a3b(0x130))/0x3*(parseInt(_0x4c0a3b(0x142))/0x4)+parseInt(_0x4c0a3b(0x16d))/0x5+-parseInt(_0x4c0a3b(0x188))/0x6+parseInt(_0x4c0a3b(0x134))/0x7+parseInt(_0x4c0a3b(0x15b))/0x8+-parseInt(_0x4c0a3b(0x13e))/0x9;if(_0x4b5526===_0x472a69)break;else _0x5247ca['push'](_0x5247ca['shift']());}catch(_0x5e5351){_0x5247ca['push'](_0x5247ca['shift']());}}}(_0x38fe,0x3f58a));import{View as _0x3f842d,SearchTextView as _0x45d243,FormHeaderView as _0x1c7a1a,ButtonView as _0x2cbf46}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x343f96,IconCancel as _0x189ba2,IconPlus as _0x5bdffb}from'ckeditor5/src/icons.js';function _0x243a(_0x3a28c4,_0xeacae4){const _0x38fe94=_0x38fe();return _0x243a=function(_0x243ad9,_0x42298a){_0x243ad9=_0x243ad9-0x12f;let _0x3ce2cd=_0x38fe94[_0x243ad9];return _0x3ce2cd;},_0x243a(_0x3a28c4,_0xeacae4);}function _0x38fe(){const _0x1da4ce=['5883dGESjC','queryView','itemsViews','isLoading','137998nNFsGA','updateItemTitle','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','bindTemplate','some','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','push','2valZTM','6589593FUcLNt','ck-rounded-corners','AI_CHAT_HISTORY_SEARCH_LABEL','clear','360CWBNQC','ck-ai-header\x20ck-ai-header_history','change:errorMessage','sections','_refreshSearch','children','_createSkeletonView','updateHistoryItemsWithCategories','updateTitle','isVisible','fire','bind','change:hasItems','emptyView','removeHistoryItem','isMainErrorViewVisible','addMany','ck-ai-notification','_createErrorView','ck-ai-chat-history__content','skeletonView','remove','setTemplate','delegate','_createListItemViews','2721896bLDjAm','aiHistory','value','ck-ai-notification_error','fieldView','isMaximized','execute','ck-ai-chat-history__empty-message','isSearchViewVisible','splice','mainErrorView','openChat','items','div','title','updateLoadingState','hasItems','locale','1727335cSCmWl','ck-reset_all','searchView','errorMessage','_createEmptyStateView','304739hSAOcj','ck-ai-chat__start-conversation','extendTemplate','_updateViewVisibility','change:isLoading','updateItemLoadingState','getItem','ck-hidden','ck-ai-notification_error__dismiss-button','render','isEmptyViewVisible','removeItem','ck-ai-chat-history__empty','AI_CHAT_HISTORY_HEADING','element','sectionsView','set','resizeButton','AI_CHAT_LABEL_NEW_CHAT','length','ltr','indexOf','1170024qPJEvS','ck-ai-chat-history','search','AI_CHAT_HISTORY_EMPTY_MESSAGE'];_0x38fe=function(){return _0x1da4ce;};return _0x38fe();}import{AIChatHistorySectionListView as _0x107056}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x301ae1}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0xe9df12}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x42c5e5}from'../aichathistoryui.js';import{AISkeletonView as _0x48e39a,SKELETON_DEFINITIONS as _0x560d3f}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0xa4a1aa}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x52dcd6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3f842d{[_0x501f7a(0x16f)];[_0x501f7a(0x165)];[_0x501f7a(0x156)];[_0x501f7a(0x14f)];[_0x501f7a(0x181)];[_0x501f7a(0x183)];constructor(_0x3b0c48,_0x120293){const _0x277efd=_0x501f7a;super(_0x3b0c48),this[_0x277efd(0x182)](_0x277efd(0x16b),!0x1),this[_0x277efd(0x182)](_0x277efd(0x133),!0x0),this[_0x277efd(0x182)](_0x277efd(0x170),''),this[_0x277efd(0x182)](_0x277efd(0x160),!0x1),this[_0x277efd(0x182)](_0x277efd(0x163),!0x1),this[_0x277efd(0x182)](_0x277efd(0x17c),!0x1),this[_0x277efd(0x182)](_0x277efd(0x151),!0x1);const _0x518668=new _0x1c7a1a(_0x3b0c48,{'label':_0x52dcd6(_0x3b0c48,_0x277efd(0x17f)),'icon':_0x343f96,'class':_0x277efd(0x143)});_0x120293&&(this[_0x277efd(0x183)]=_0xa4a1aa(_0x3b0c48,this),_0x518668[_0x277efd(0x147)][_0x277efd(0x136)](this[_0x277efd(0x183)])),this[_0x277efd(0x181)]=new _0x107056(_0x3b0c48,[]),this[_0x277efd(0x181)][_0x277efd(0x159)](..._0x42c5e5)['to'](this),this[_0x277efd(0x165)]=this[_0x277efd(0x154)](),this[_0x277efd(0x156)]=this[_0x277efd(0x148)](),this[_0x277efd(0x14f)]=this[_0x277efd(0x171)](),this[_0x277efd(0x16f)]=this[_0x277efd(0x13a)](),this[_0x277efd(0x165)][_0x277efd(0x174)]({'attributes':{'class':[this[_0x277efd(0x138)]['if'](_0x277efd(0x151),_0x277efd(0x179),_0x730b64=>!_0x730b64)]}}),this['on'](_0x277efd(0x176),()=>this[_0x277efd(0x175)]()),this['on'](_0x277efd(0x14e),()=>this[_0x277efd(0x175)]()),this['on'](_0x277efd(0x144),()=>this[_0x277efd(0x175)]()),this[_0x277efd(0x158)]({'tag':_0x277efd(0x168),'attributes':{'class':['ck',_0x277efd(0x16e),_0x277efd(0x189),_0x277efd(0x13f)],'dir':_0x277efd(0x186)},'children':[_0x518668,{'tag':_0x277efd(0x168),'attributes':{'class':[_0x277efd(0x155)]},'children':[this[_0x277efd(0x156)],this[_0x277efd(0x165)],this[_0x277efd(0x14f)],this[_0x277efd(0x16f)]]}]});}[_0x501f7a(0x175)](){const _0x58e069=_0x501f7a;this[_0x58e069(0x163)]=!this[_0x58e069(0x133)]&&this[_0x58e069(0x16b)],this[_0x58e069(0x17c)]=!this[_0x58e069(0x133)]&&!this[_0x58e069(0x16b)]&&!this[_0x58e069(0x170)],this[_0x58e069(0x151)]=!this[_0x58e069(0x163)]&&!!this[_0x58e069(0x170)];}[_0x501f7a(0x13a)](){const _0x326cf1=_0x501f7a,_0x481c1b=new _0x45d243(this[_0x326cf1(0x16c)],{'filteredView':this[_0x326cf1(0x181)],'queryView':{'label':_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x140))},'infoView':{'text':{'notFound':{'primary':_0x5acb33=>_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x137),_0x5acb33),'secondary':_0x52dcd6(this[_0x326cf1(0x16c)],_0x326cf1(0x13b))}}}}),_0x29bf84=this[_0x326cf1(0x154)]();return _0x29bf84[_0x326cf1(0x174)]({'attributes':{'class':[this[_0x326cf1(0x138)]['if'](_0x326cf1(0x170),_0x326cf1(0x179),_0x4406fe=>!_0x4406fe)]}}),_0x481c1b['on'](_0x326cf1(0x17b),()=>{const _0x232a16=_0x326cf1;_0x481c1b[_0x232a16(0x147)][_0x232a16(0x136)](_0x29bf84,0x1);}),_0x481c1b[_0x326cf1(0x174)]({'attributes':{'class':[this[_0x326cf1(0x138)]['if'](_0x326cf1(0x163),_0x326cf1(0x179),_0x50104f=>!_0x50104f)]}}),_0x481c1b;}[_0x501f7a(0x148)](){const _0x46ac47=_0x501f7a,_0x272eae=new _0x48e39a(this[_0x46ac47(0x16c)],_0x560d3f[_0x46ac47(0x15c)]);return _0x272eae[_0x46ac47(0x174)]({'attributes':{'class':[this[_0x46ac47(0x138)]['if'](_0x46ac47(0x133),_0x46ac47(0x179),_0x247479=>!_0x247479)]}}),_0x272eae;}[_0x501f7a(0x154)](){const _0x421669=_0x501f7a,_0x5d40c8=new _0x3f842d(this[_0x421669(0x16c)]),_0x5209fb=new _0x2cbf46(this[_0x421669(0x16c)]);_0x5209fb[_0x421669(0x182)]({'withText':!0x1,'icon':_0x189ba2,'class':_0x421669(0x17a)}),_0x5209fb[_0x421669(0x14d)](_0x421669(0x14b))['to'](this,_0x421669(0x16b),_0x1ea45e=>!!_0x1ea45e),_0x5209fb['on'](_0x421669(0x161),()=>{const _0x165b33=_0x421669;this[_0x165b33(0x170)]='';});const _0x15c2f3=this[_0x421669(0x138)];return _0x5d40c8[_0x421669(0x158)]({'tag':_0x421669(0x168),'attributes':{'class':['ck',_0x421669(0x153),_0x421669(0x15e)]},'children':[{'tag':'p','children':[{'text':_0x15c2f3['to'](_0x421669(0x170))}]},_0x5209fb]}),_0x5d40c8;}[_0x501f7a(0x171)](){const _0x4688b0=_0x501f7a,_0x130253=new _0x2cbf46(this[_0x4688b0(0x16c)]);_0x130253[_0x4688b0(0x182)]({'label':_0x52dcd6(this[_0x4688b0(0x16c)],_0x4688b0(0x184)),'withText':!0x0,'icon':_0x5bdffb,'class':_0x4688b0(0x173)}),_0x130253['on'](_0x4688b0(0x161),()=>{const _0x4adf19=_0x4688b0;this[_0x4adf19(0x14c)](_0x4adf19(0x166));});const _0x5ad113=new _0x3f842d(this[_0x4688b0(0x16c)]);return _0x5ad113[_0x4688b0(0x158)]({'tag':_0x4688b0(0x168),'attributes':{'class':[_0x4688b0(0x17e),this[_0x4688b0(0x138)]['if'](_0x4688b0(0x17c),_0x4688b0(0x179),_0xc41d7d=>!_0xc41d7d)]},'children':[{'tag':'p','attributes':{'class':[_0x4688b0(0x162)]},'children':[_0x52dcd6(this[_0x4688b0(0x16c)],_0x4688b0(0x12f))]},_0x130253]}),_0x5ad113;}[_0x501f7a(0x15a)](_0x88199,_0x47f4aa){const _0x185336=_0x501f7a,_0x4e798=[];for(const _0x2f4d68 of _0x88199){const _0x31f0c2=new _0xe9df12(_0x47f4aa,_0x2f4d68);_0x31f0c2[_0x185336(0x159)](..._0x42c5e5)['to'](this),_0x4e798[_0x185336(0x13c)](_0x31f0c2);}return _0x4e798;}[_0x501f7a(0x149)](_0x3dc591){const _0x1f1972=_0x501f7a,_0x589eec=this[_0x1f1972(0x16c)]||'en',_0x342b82=[];for(const _0x85db6f of _0x3dc591){const _0x5ab1a6=this[_0x1f1972(0x15a)](_0x85db6f[_0x1f1972(0x167)],_0x589eec);_0x342b82[_0x1f1972(0x13c)](new _0x301ae1(_0x589eec,{'title':_0x85db6f[_0x1f1972(0x169)],'items':_0x5ab1a6}));}this[_0x1f1972(0x181)][_0x1f1972(0x145)]=_0x342b82,this[_0x1f1972(0x181)][_0x1f1972(0x167)][_0x1f1972(0x141)](),this[_0x1f1972(0x181)][_0x1f1972(0x167)][_0x1f1972(0x152)](_0x342b82),this[_0x1f1972(0x16b)]=_0x3dc591[_0x1f1972(0x139)](_0x4573fe=>_0x4573fe[_0x1f1972(0x167)][_0x1f1972(0x185)]>0x0),this[_0x1f1972(0x146)]();}[_0x501f7a(0x150)](_0xfa37e8){const _0x40aa7b=_0x501f7a;for(const _0x55c6c8 of this[_0x40aa7b(0x181)][_0x40aa7b(0x145)]){const _0x5d60a5=_0x55c6c8[_0x40aa7b(0x178)](_0xfa37e8);if(_0x5d60a5){if(_0x55c6c8[_0x40aa7b(0x17d)](_0x5d60a5),0x0===_0x55c6c8[_0x40aa7b(0x132)][_0x40aa7b(0x185)]){const _0x33be11=this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x187)](_0x55c6c8);-0x1!==_0x33be11&&(this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x164)](_0x33be11,0x1),this[_0x40aa7b(0x181)][_0x40aa7b(0x167)][_0x40aa7b(0x157)](_0x55c6c8));}this[_0x40aa7b(0x16b)]=this[_0x40aa7b(0x181)][_0x40aa7b(0x145)][_0x40aa7b(0x185)]>0x0,this[_0x40aa7b(0x146)]();break;}}}[_0x501f7a(0x135)](_0x3bf5ef,_0x2cf4aa){const _0x1f2a59=_0x501f7a;for(const _0x3d4a05 of this[_0x1f2a59(0x181)][_0x1f2a59(0x145)]){const _0x44fe60=_0x3d4a05[_0x1f2a59(0x178)](_0x3bf5ef);if(_0x44fe60){_0x44fe60[_0x1f2a59(0x14a)](_0x2cf4aa);break;}}}[_0x501f7a(0x177)](_0xf05529,_0x1488b0,_0x5cee45){const _0x138d15=_0x501f7a;for(const _0x2e867f of this[_0x138d15(0x181)][_0x138d15(0x145)]){const _0x3e950f=_0x2e867f[_0x138d15(0x178)](_0xf05529);if(_0x3e950f){_0x3e950f[_0x138d15(0x16a)](_0x1488b0,_0x5cee45);break;}}}[_0x501f7a(0x146)](){const _0x167dd1=_0x501f7a;if(this[_0x167dd1(0x16b)]){const _0x362e31=this[_0x167dd1(0x16f)][_0x167dd1(0x131)][_0x167dd1(0x15f)]?.[_0x167dd1(0x180)]?.[_0x167dd1(0x15d)]||'';this[_0x167dd1(0x16f)][_0x167dd1(0x18a)](_0x362e31);}}}
23
+ function _0x5645(){const _0x37d913=['isEmptyViewVisible','extendTemplate','ck-rounded-corners','972433MlRrUa','isMainErrorViewVisible','set','items','ck-ai-chat-history','14080460DryXYz','_createSkeletonView','updateLoadingState','render','_createListItemViews','bind','searchView','bindTemplate','ck-ai-chat-history__content','itemsViews','368UelMlV','sections','delegate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_LABEL_NEW_CHAT','_createEmptyStateView','ck-ai-chat-history__empty','some','4ezyOPO','element','48aTAMGQ','div','AI_CHAT_HISTORY_HEADING','add','ck-hidden','7960477xvAcRO','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-chat-history__empty-message','title','updateItemLoadingState','fire','splice','search','openChat','ck-ai-notification','hasItems','remove','isMaximized','_refreshSearch','clear','updateItemTitle','_createErrorView','setTemplate','AI_CHAT_HISTORY_EMPTY_MESSAGE','change:hasItems','locale','ck-ai-chat__start-conversation','getItem','removeHistoryItem','indexOf','_createSearchView','sectionsView','children','ck-ai-notification_error__dismiss-button','value','1209723cyjdKA','errorMessage','updateHistoryItemsWithCategories','skeletonView','ck-reset_all','length','isLoading','fieldView','ltr','change:isLoading','2183522hzykIC','addMany','push','queryView','ck-ai-header\x20ck-ai-header_history','_updateViewVisibility','emptyView','isVisible','mainErrorView','47430zCzBpK','isSearchViewVisible','resizeButton','removeItem','execute','change:errorMessage','AI_CHAT_HISTORY_SEARCH_LABEL','updateTitle','aiHistory','ck-ai-notification_error','740265jaVTHo'];_0x5645=function(){return _0x37d913;};return _0x5645();}const _0x5e9093=_0x5264;(function(_0xabc051,_0x4f27b1){const _0x5075c6=_0x5264,_0x2a78e9=_0xabc051();while(!![]){try{const _0x11c29e=parseInt(_0x5075c6(0x146))/0x1+parseInt(_0x5075c6(0x18c))/0x2+parseInt(_0x5075c6(0x182))/0x3*(parseInt(_0x5075c6(0x15d))/0x4)+parseInt(_0x5075c6(0x19f))/0x5*(parseInt(_0x5075c6(0x15f))/0x6)+-parseInt(_0x5075c6(0x164))/0x7+parseInt(_0x5075c6(0x155))/0x8*(-parseInt(_0x5075c6(0x195))/0x9)+-parseInt(_0x5075c6(0x14b))/0xa;if(_0x11c29e===_0x4f27b1)break;else _0x2a78e9['push'](_0x2a78e9['shift']());}catch(_0x3274b1){_0x2a78e9['push'](_0x2a78e9['shift']());}}}(_0x5645,0xd2fb6));import{View as _0x3efea0,SearchTextView as _0x169bd3,FormHeaderView as _0x9e7abf,ButtonView as _0x56e5a7}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x8f7cb0,IconCancel as _0x4b6f7b,IconPlus as _0x6ce1ec}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2d6469}from'./aichathistorysectionlistview.js';function _0x5264(_0x44e0f7,_0xc100e){const _0x56451b=_0x5645();return _0x5264=function(_0x52647b,_0x458c57){_0x52647b=_0x52647b-0x146;let _0x2a512b=_0x56451b[_0x52647b];return _0x2a512b;},_0x5264(_0x44e0f7,_0xc100e);}import{AIChatHistoryListView as _0x45a517}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x56f91c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1be563}from'../aichathistoryui.js';import{AISkeletonView as _0x540ebb,SKELETON_DEFINITIONS as _0x297ad1}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4cbcb9}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2349f5}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x3efea0{[_0x5e9093(0x151)];[_0x5e9093(0x194)];[_0x5e9093(0x185)];[_0x5e9093(0x192)];[_0x5e9093(0x17e)];[_0x5e9093(0x197)];constructor(_0x298f6,_0x2ff22b){const _0x32455a=_0x5e9093;super(_0x298f6),this[_0x32455a(0x148)](_0x32455a(0x16e),!0x1),this[_0x32455a(0x148)](_0x32455a(0x188),!0x0),this[_0x32455a(0x148)](_0x32455a(0x183),''),this[_0x32455a(0x148)](_0x32455a(0x170),!0x1),this[_0x32455a(0x148)](_0x32455a(0x196),!0x1),this[_0x32455a(0x148)](_0x32455a(0x1a0),!0x1),this[_0x32455a(0x148)](_0x32455a(0x147),!0x1);const _0x205e9f=new _0x9e7abf(_0x298f6,{'label':_0x2349f5(_0x298f6,_0x32455a(0x161)),'icon':_0x8f7cb0,'class':_0x32455a(0x190)});_0x2ff22b&&(this[_0x32455a(0x197)]=_0x4cbcb9(_0x298f6,this),_0x205e9f[_0x32455a(0x17f)][_0x32455a(0x162)](this[_0x32455a(0x197)])),this[_0x32455a(0x17e)]=new _0x2d6469(_0x298f6,[]),this[_0x32455a(0x17e)][_0x32455a(0x157)](..._0x1be563)['to'](this),this[_0x32455a(0x194)]=this[_0x32455a(0x174)](),this[_0x32455a(0x185)]=this[_0x32455a(0x14c)](),this[_0x32455a(0x192)]=this[_0x32455a(0x15a)](),this[_0x32455a(0x151)]=this[_0x32455a(0x17d)](),this[_0x32455a(0x194)][_0x32455a(0x1a1)]({'attributes':{'class':[this[_0x32455a(0x152)]['if'](_0x32455a(0x147),_0x32455a(0x163),_0x21272d=>!_0x21272d)]}}),this['on'](_0x32455a(0x18b),()=>this[_0x32455a(0x191)]()),this['on'](_0x32455a(0x177),()=>this[_0x32455a(0x191)]()),this['on'](_0x32455a(0x19a),()=>this[_0x32455a(0x191)]()),this[_0x32455a(0x175)]({'tag':_0x32455a(0x160),'attributes':{'class':['ck',_0x32455a(0x186),_0x32455a(0x14a),_0x32455a(0x1a2)],'dir':_0x32455a(0x18a)},'children':[_0x205e9f,{'tag':_0x32455a(0x160),'attributes':{'class':[_0x32455a(0x153)]},'children':[this[_0x32455a(0x185)],this[_0x32455a(0x194)],this[_0x32455a(0x192)],this[_0x32455a(0x151)]]}]});}[_0x5e9093(0x191)](){const _0x3b7ec7=_0x5e9093;this[_0x3b7ec7(0x196)]=!this[_0x3b7ec7(0x188)]&&this[_0x3b7ec7(0x16e)],this[_0x3b7ec7(0x1a0)]=!this[_0x3b7ec7(0x188)]&&!this[_0x3b7ec7(0x16e)]&&!this[_0x3b7ec7(0x183)],this[_0x3b7ec7(0x147)]=!this[_0x3b7ec7(0x196)]&&!!this[_0x3b7ec7(0x183)];}[_0x5e9093(0x17d)](){const _0x256eaa=_0x5e9093,_0x46ab39=new _0x169bd3(this[_0x256eaa(0x178)],{'filteredView':this[_0x256eaa(0x17e)],'queryView':{'label':_0x2349f5(this[_0x256eaa(0x178)],_0x256eaa(0x19b))},'infoView':{'text':{'notFound':{'primary':_0x4f6656=>_0x2349f5(this[_0x256eaa(0x178)],_0x256eaa(0x165),_0x4f6656),'secondary':_0x2349f5(this[_0x256eaa(0x178)],_0x256eaa(0x158))}}}}),_0x17e4b4=this[_0x256eaa(0x174)]();return _0x17e4b4[_0x256eaa(0x1a1)]({'attributes':{'class':[this[_0x256eaa(0x152)]['if'](_0x256eaa(0x183),_0x256eaa(0x163),_0x16768f=>!_0x16768f)]}}),_0x46ab39['on'](_0x256eaa(0x14e),()=>{const _0x13b4da=_0x256eaa;_0x46ab39[_0x13b4da(0x17f)][_0x13b4da(0x162)](_0x17e4b4,0x1);}),_0x46ab39[_0x256eaa(0x1a1)]({'attributes':{'class':[this[_0x256eaa(0x152)]['if'](_0x256eaa(0x196),_0x256eaa(0x163),_0x77321c=>!_0x77321c)]}}),_0x46ab39;}[_0x5e9093(0x14c)](){const _0x26c7e1=_0x5e9093,_0x8ebe45=new _0x540ebb(this[_0x26c7e1(0x178)],_0x297ad1[_0x26c7e1(0x19d)]);return _0x8ebe45[_0x26c7e1(0x1a1)]({'attributes':{'class':[this[_0x26c7e1(0x152)]['if'](_0x26c7e1(0x188),_0x26c7e1(0x163),_0x3aaafe=>!_0x3aaafe)]}}),_0x8ebe45;}[_0x5e9093(0x174)](){const _0x3bc976=_0x5e9093,_0x16f0ca=new _0x3efea0(this[_0x3bc976(0x178)]),_0x3cfb18=new _0x56e5a7(this[_0x3bc976(0x178)]);_0x3cfb18[_0x3bc976(0x148)]({'withText':!0x1,'icon':_0x4b6f7b,'class':_0x3bc976(0x180)}),_0x3cfb18[_0x3bc976(0x150)](_0x3bc976(0x193))['to'](this,_0x3bc976(0x16e),_0x209851=>!!_0x209851),_0x3cfb18['on'](_0x3bc976(0x199),()=>{const _0x22a373=_0x3bc976;this[_0x22a373(0x183)]='';});const _0x568139=this[_0x3bc976(0x152)];return _0x16f0ca[_0x3bc976(0x175)]({'tag':_0x3bc976(0x160),'attributes':{'class':['ck',_0x3bc976(0x16d),_0x3bc976(0x19e)]},'children':[{'tag':'p','children':[{'text':_0x568139['to'](_0x3bc976(0x183))}]},_0x3cfb18]}),_0x16f0ca;}[_0x5e9093(0x15a)](){const _0x43fa36=_0x5e9093,_0x50599e=new _0x56e5a7(this[_0x43fa36(0x178)]);_0x50599e[_0x43fa36(0x148)]({'label':_0x2349f5(this[_0x43fa36(0x178)],_0x43fa36(0x159)),'withText':!0x0,'icon':_0x6ce1ec,'class':_0x43fa36(0x179)}),_0x50599e['on'](_0x43fa36(0x199),()=>{const _0x5ca967=_0x43fa36;this[_0x5ca967(0x169)](_0x5ca967(0x16c));});const _0x15a305=new _0x3efea0(this[_0x43fa36(0x178)]);return _0x15a305[_0x43fa36(0x175)]({'tag':_0x43fa36(0x160),'attributes':{'class':[_0x43fa36(0x15b),this[_0x43fa36(0x152)]['if'](_0x43fa36(0x1a0),_0x43fa36(0x163),_0x15b375=>!_0x15b375)]},'children':[{'tag':'p','attributes':{'class':[_0x43fa36(0x166)]},'children':[_0x2349f5(this[_0x43fa36(0x178)],_0x43fa36(0x176))]},_0x50599e]}),_0x15a305;}[_0x5e9093(0x14f)](_0x46fa77,_0x14fdd8){const _0x3d3b5e=_0x5e9093,_0x1f0132=[];for(const _0x475d17 of _0x46fa77){const _0x1a13ab=new _0x56f91c(_0x14fdd8,_0x475d17);_0x1a13ab[_0x3d3b5e(0x157)](..._0x1be563)['to'](this),_0x1f0132[_0x3d3b5e(0x18e)](_0x1a13ab);}return _0x1f0132;}[_0x5e9093(0x184)](_0x48fa95){const _0x52bff6=_0x5e9093,_0x444fb8=this[_0x52bff6(0x178)]||'en',_0x3c97d0=[];for(const _0x324fe7 of _0x48fa95){const _0x56f5a5=this[_0x52bff6(0x14f)](_0x324fe7[_0x52bff6(0x149)],_0x444fb8);_0x3c97d0[_0x52bff6(0x18e)](new _0x45a517(_0x444fb8,{'title':_0x324fe7[_0x52bff6(0x167)],'items':_0x56f5a5}));}this[_0x52bff6(0x17e)][_0x52bff6(0x156)]=_0x3c97d0,this[_0x52bff6(0x17e)][_0x52bff6(0x149)][_0x52bff6(0x172)](),this[_0x52bff6(0x17e)][_0x52bff6(0x149)][_0x52bff6(0x18d)](_0x3c97d0),this[_0x52bff6(0x16e)]=_0x48fa95[_0x52bff6(0x15c)](_0x2740c7=>_0x2740c7[_0x52bff6(0x149)][_0x52bff6(0x187)]>0x0),this[_0x52bff6(0x171)]();}[_0x5e9093(0x17b)](_0x5910f1){const _0x4c68df=_0x5e9093;for(const _0x983afa of this[_0x4c68df(0x17e)][_0x4c68df(0x156)]){const _0x29b2c9=_0x983afa[_0x4c68df(0x17a)](_0x5910f1);if(_0x29b2c9){if(_0x983afa[_0x4c68df(0x198)](_0x29b2c9),0x0===_0x983afa[_0x4c68df(0x154)][_0x4c68df(0x187)]){const _0x2b1477=this[_0x4c68df(0x17e)][_0x4c68df(0x156)][_0x4c68df(0x17c)](_0x983afa);-0x1!==_0x2b1477&&(this[_0x4c68df(0x17e)][_0x4c68df(0x156)][_0x4c68df(0x16a)](_0x2b1477,0x1),this[_0x4c68df(0x17e)][_0x4c68df(0x149)][_0x4c68df(0x16f)](_0x983afa));}this[_0x4c68df(0x16e)]=this[_0x4c68df(0x17e)][_0x4c68df(0x156)][_0x4c68df(0x187)]>0x0,this[_0x4c68df(0x171)]();break;}}}[_0x5e9093(0x173)](_0x1dcac2,_0x5a2fd4){const _0x45e7e2=_0x5e9093;for(const _0x3117fc of this[_0x45e7e2(0x17e)][_0x45e7e2(0x156)]){const _0x5b65d3=_0x3117fc[_0x45e7e2(0x17a)](_0x1dcac2);if(_0x5b65d3){_0x5b65d3[_0x45e7e2(0x19c)](_0x5a2fd4);break;}}}[_0x5e9093(0x168)](_0x38c045,_0x3f2203,_0x389d7e){const _0x4e7e24=_0x5e9093;for(const _0x3d44ce of this[_0x4e7e24(0x17e)][_0x4e7e24(0x156)]){const _0x3f93a4=_0x3d44ce[_0x4e7e24(0x17a)](_0x38c045);if(_0x3f93a4){_0x3f93a4[_0x4e7e24(0x14d)](_0x3f2203,_0x389d7e);break;}}}[_0x5e9093(0x171)](){const _0x1c38a5=_0x5e9093;if(this[_0x1c38a5(0x16e)]){const _0x89259f=this[_0x1c38a5(0x151)][_0x1c38a5(0x18f)][_0x1c38a5(0x189)]?.[_0x1c38a5(0x15e)]?.[_0x1c38a5(0x181)]||'';this[_0x1c38a5(0x151)][_0x1c38a5(0x16b)](_0x89259f);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33cdfb=_0x1a8b;(function(_0x251de5,_0x57b54a){const _0xce37ee=_0x1a8b,_0x360627=_0x251de5();while(!![]){try{const _0x42bc0b=parseInt(_0xce37ee(0x1de))/0x1+-parseInt(_0xce37ee(0x219))/0x2*(-parseInt(_0xce37ee(0x21d))/0x3)+-parseInt(_0xce37ee(0x1f4))/0x4+-parseInt(_0xce37ee(0x20c))/0x5*(parseInt(_0xce37ee(0x1e7))/0x6)+parseInt(_0xce37ee(0x1d9))/0x7*(-parseInt(_0xce37ee(0x1d0))/0x8)+-parseInt(_0xce37ee(0x21f))/0x9*(-parseInt(_0xce37ee(0x1ec))/0xa)+parseInt(_0xce37ee(0x1e8))/0xb;if(_0x42bc0b===_0x57b54a)break;else _0x360627['push'](_0x360627['shift']());}catch(_0x3139b){_0x360627['push'](_0x360627['shift']());}}}(_0x93a4,0xc013e));import{AIChatUI as _0x21f501}from'../aichat/aichatui.js';import{ContextPlugin as _0x14cc89}from'ckeditor5/src/core.js';function _0x1a8b(_0x38a28f,_0x457450){const _0x93a437=_0x93a4();return _0x1a8b=function(_0x1a8b6e,_0x3c4cf7){_0x1a8b6e=_0x1a8b6e-0x1c4;let _0x8760=_0x93a437[_0x1a8b6e];return _0x8760;},_0x1a8b(_0x38a28f,_0x457450);}import{AIChatShortcutsView as _0x37cf86}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x3361e5}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';function _0x93a4(){const _0x382e29=['chat','getDefault','conversationCreated','language','_runChatShortcut','ai-chat-shortcuts-invalid-config','listenTo','2389288bDxcDC','context','execute','chatModels','locale','translate','setReasoning','get','addFeedItemCustomElement','28UUoIoU','getModel','AIChat','focusPromptInput','check','789002YLbBvU','TRANSLATE','_runReviewShortcut','hasFeedItem','string','interactionStarted','custom','AIChatShortcuts','_validateShortcuts','327528WOJaZw','16277371oEePRl','args','_shortcuts','destroy','60BrsWuv','view','length','AIReviewModeUI','values','_shortcutsView','AITabs','ai-chat-shortcuts-review-mode-not-found','2342740wPrhOn','isPremiumPlugin','setWebSearch','init','ai.chat.shortcuts','addCurrentDocumentToChatContext','_switchTab','forEach','element','find','ai-chat-shortcuts-translate-not-found','_removeShortcuts','config','CHAT','type','includes','AIChatController','runReviewCheck','has','source','activeConversation','_executeShortcut','label','review','55rFiTdd','pluginName','setModel','isFromHistory','reviewMode','requires','sendMessage','chat-shortcuts','isOfficialPlugin','activateTab','params','setPromptInputValue','_runTranslateShortcut','861844xUQvvH','render','_aiChatUI','_injectShortcuts','3PNrzGb','prompt','701793luxiql','removeFeedItem','AITranslateUI','ai-chat-shortcuts-ai-tabs-not-found','plugins','fire','REVIEW'];_0x93a4=function(){return _0x382e29;};return _0x93a4();}const Ut=_0x33cdfb(0x213);export var AIChatShortcutType;!function(_0x3e56b6){const _0x153148=_0x33cdfb;_0x3e56b6[_0x153148(0x201)]=_0x153148(0x1c9),_0x3e56b6[_0x153148(0x1c8)]=_0x153148(0x20b),_0x3e56b6[_0x153148(0x1df)]=_0x153148(0x1d5);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x14cc89{[_0x33cdfb(0x1ea)];[_0x33cdfb(0x1f1)];[_0x33cdfb(0x21b)];static get[_0x33cdfb(0x211)](){return[_0x21f501];}static get[_0x33cdfb(0x20d)](){const _0x5b25dc=_0x33cdfb;return _0x5b25dc(0x1e5);}static get[_0x33cdfb(0x214)](){return!0x0;}static get[_0x33cdfb(0x1f5)](){return!0x0;}[_0x33cdfb(0x1f7)](){const _0x4ef404=_0x33cdfb;this[_0x4ef404(0x21b)]=this[_0x4ef404(0x1d1)][_0x4ef404(0x1c6)][_0x4ef404(0x1d7)](_0x21f501),this[_0x4ef404(0x1ea)]=this[_0x4ef404(0x1d1)][_0x4ef404(0x200)][_0x4ef404(0x1d7)](_0x4ef404(0x1f8))??[];const _0x549fff=this[_0x4ef404(0x1d1)][_0x4ef404(0x1c6)][_0x4ef404(0x1d7)](_0x4ef404(0x204));this[_0x4ef404(0x1ea)][_0x4ef404(0x1ee)]&&(this[_0x4ef404(0x1e6)](),this[_0x4ef404(0x21b)]['on'](_0x4ef404(0x1cb),()=>{const _0x42ca31=_0x4ef404;_0x549fff[_0x42ca31(0x208)][_0x42ca31(0x20f)]||this[_0x42ca31(0x21c)]();}),this[_0x4ef404(0x1cf)](_0x549fff,_0x4ef404(0x1e3),()=>{const _0x4fdbf6=_0x4ef404;this[_0x4fdbf6(0x1ff)]();}));}[_0x33cdfb(0x1e6)](){const _0x53eee0=_0x33cdfb,_0x249017=Object[_0x53eee0(0x1f0)](AIChatShortcutType);this[_0x53eee0(0x1ea)][_0x53eee0(0x1fb)](_0x316144=>{const _0x578de8=_0x53eee0;let _0x83114=!0x0;if(_0x316144['id']&&_0x316144[_0x578de8(0x20a)]&&_0x249017[_0x578de8(0x203)](_0x316144[_0x578de8(0x202)])?_0x578de8(0x1c9)===_0x316144[_0x578de8(0x202)]&&(_0x83114=_0x578de8(0x1e2)==typeof _0x316144[_0x578de8(0x21e)]):_0x83114=!0x1,!_0x83114)throw new _0x3361e5(_0x578de8(0x1ce),this[_0x578de8(0x1d1)],{'shortcut':_0x316144});});}[_0x33cdfb(0x21c)](){const _0x3ec477=_0x33cdfb,_0x43a6f2=this[_0x3ec477(0x1d1)][_0x3ec477(0x1c6)][_0x3ec477(0x1d7)](_0x21f501);this[_0x3ec477(0x1f1)]=new _0x37cf86(this[_0x3ec477(0x1d1)][_0x3ec477(0x1d4)],this[_0x3ec477(0x1ea)]),this[_0x3ec477(0x1f1)][_0x3ec477(0x21a)](),_0x43a6f2[_0x3ec477(0x1d8)](this[_0x3ec477(0x1f1)][_0x3ec477(0x1fc)],Ut),this[_0x3ec477(0x1f1)]['on'](_0x3ec477(0x1d2),_0x36f18e=>{const _0x1e9d94=_0x3ec477,_0x1e203a=_0x36f18e[_0x1e9d94(0x207)]['id'];this[_0x1e9d94(0x209)](_0x1e203a);});}[_0x33cdfb(0x1ff)](){const _0xb60bcf=_0x33cdfb,_0x4319ef=this[_0xb60bcf(0x1d1)][_0xb60bcf(0x1c6)][_0xb60bcf(0x1d7)](_0x21f501);_0x4319ef[_0xb60bcf(0x1e1)](Ut)&&_0x4319ef[_0xb60bcf(0x220)](Ut),this[_0xb60bcf(0x1f1)]?.[_0xb60bcf(0x1eb)]();}[_0x33cdfb(0x209)](_0x11a569){const _0x5bc8d4=_0x33cdfb,_0x4259a8=this[_0x5bc8d4(0x1ea)][_0x5bc8d4(0x1fd)](_0x31b712=>_0x31b712['id']===_0x11a569),_0x61db2c=_0x4259a8[_0x5bc8d4(0x202)];_0x5bc8d4(0x1c9)===_0x61db2c?this[_0x5bc8d4(0x1cd)](_0x4259a8):_0x5bc8d4(0x20b)===_0x61db2c?_0x4259a8[_0x5bc8d4(0x1dd)]?this[_0x5bc8d4(0x1e0)](_0x4259a8):this[_0x5bc8d4(0x1fa)](_0x5bc8d4(0x210)):_0x5bc8d4(0x1d5)===_0x61db2c&&(_0x4259a8[_0x5bc8d4(0x1cc)]?this[_0x5bc8d4(0x218)](_0x4259a8):this[_0x5bc8d4(0x1fa)](_0x5bc8d4(0x1d5)));}[_0x33cdfb(0x1fa)](_0x5e3535){const _0x54663f=_0x33cdfb;if(!this[_0x54663f(0x1d1)][_0x54663f(0x1c6)][_0x54663f(0x206)](_0x54663f(0x1f2)))throw new _0x3361e5(_0x54663f(0x1c5),this[_0x54663f(0x1d1)],{'tabName':_0x5e3535});this[_0x54663f(0x1d1)][_0x54663f(0x1c6)][_0x54663f(0x1d7)](_0x54663f(0x1f2))[_0x54663f(0x1ed)][_0x54663f(0x215)](_0x5e3535);}async[_0x33cdfb(0x1cd)]({prompt:_0x40f96e,draftMode:_0xced6c1,useWebSearch:_0x580509=!0x1,useReasoning:_0x263fa7=!0x1,model:_0x2728a1}){const _0x9ca4b1=_0x33cdfb,_0x531e6d=this[_0x9ca4b1(0x1d1)][_0x9ca4b1(0x1c6)][_0x9ca4b1(0x1d7)](_0x9ca4b1(0x1db)),_0x480199=this[_0x9ca4b1(0x1d1)][_0x9ca4b1(0x1c6)][_0x9ca4b1(0x1d7)](_0x9ca4b1(0x204)),_0x53e92a=_0x480199[_0x9ca4b1(0x208)];let _0x33bc64;_0x33bc64=_0x2728a1?await _0x53e92a[_0x9ca4b1(0x1d3)][_0x9ca4b1(0x1da)](_0x2728a1):await _0x53e92a[_0x9ca4b1(0x1d3)][_0x9ca4b1(0x1ca)](),_0x33bc64&&await _0x53e92a[_0x9ca4b1(0x20e)](_0x33bc64),_0x53e92a[_0x9ca4b1(0x1f6)](_0x580509),_0x53e92a[_0x9ca4b1(0x1d6)](_0x263fa7),_0x480199[_0x9ca4b1(0x1f9)](),_0xced6c1?(this[_0x9ca4b1(0x21b)][_0x9ca4b1(0x217)](_0x40f96e),this[_0x9ca4b1(0x21b)][_0x9ca4b1(0x1dc)](!0x0)):_0x531e6d[_0x9ca4b1(0x212)]({'message':_0x40f96e});}[_0x33cdfb(0x1e0)]({check:_0x496e20,model:_0x3a6f73,prompt:_0x9df0fe,params:_0x38e94e}){const _0x3f55b6=_0x33cdfb;if(!this[_0x3f55b6(0x1d1)][_0x3f55b6(0x1c6)][_0x3f55b6(0x206)](_0x3f55b6(0x1ef)))throw new _0x3361e5(_0x3f55b6(0x1f3),this[_0x3f55b6(0x1d1)]);this[_0x3f55b6(0x1fa)](_0x3f55b6(0x210));const _0x13db56={'id':_0x496e20,'isCustom':_0x3f55b6(0x1e4)===_0x496e20};_0x3a6f73&&_0x9df0fe&&(_0x13db56[_0x3f55b6(0x1e9)]={'model':_0x3a6f73,'prompt':_0x9df0fe}),_0x38e94e&&(_0x13db56[_0x3f55b6(0x216)]=_0x38e94e),this[_0x3f55b6(0x1d1)][_0x3f55b6(0x1c6)][_0x3f55b6(0x1d7)](_0x3f55b6(0x1ef))[_0x3f55b6(0x1c7)](_0x3f55b6(0x205),_0x13db56);}[_0x33cdfb(0x218)]({language:_0x5d0823}){const _0x39acb5=_0x33cdfb;if(!this[_0x39acb5(0x1d1)][_0x39acb5(0x1c6)][_0x39acb5(0x206)](_0x39acb5(0x1c4)))throw new _0x3361e5(_0x39acb5(0x1fe),this[_0x39acb5(0x1d1)]);this[_0x39acb5(0x1fa)](_0x39acb5(0x1d5)),this[_0x39acb5(0x1d1)][_0x39acb5(0x1c6)][_0x39acb5(0x1d7)](_0x39acb5(0x1c4))[_0x39acb5(0x1c7)](_0x39acb5(0x205),{'id':_0x5d0823,'args':{'language':_0x5d0823}});}}
23
+ function _0x39ce(_0x129334,_0x534920){const _0x22d4bc=_0x22d4();return _0x39ce=function(_0x39cee5,_0x3c2879){_0x39cee5=_0x39cee5-0x1ba;let _0x4b79a1=_0x22d4bc[_0x39cee5];return _0x4b79a1;},_0x39ce(_0x129334,_0x534920);}const _0x2ff234=_0x39ce;(function(_0x235c36,_0x9f5289){const _0x596f75=_0x39ce,_0x30d95e=_0x235c36();while(!![]){try{const _0x269b25=parseInt(_0x596f75(0x1cc))/0x1+parseInt(_0x596f75(0x1f5))/0x2*(parseInt(_0x596f75(0x1d4))/0x3)+parseInt(_0x596f75(0x1ca))/0x4*(parseInt(_0x596f75(0x1f9))/0x5)+parseInt(_0x596f75(0x201))/0x6+-parseInt(_0x596f75(0x1fa))/0x7+-parseInt(_0x596f75(0x202))/0x8*(parseInt(_0x596f75(0x1d6))/0x9)+-parseInt(_0x596f75(0x1fe))/0xa;if(_0x269b25===_0x9f5289)break;else _0x30d95e['push'](_0x30d95e['shift']());}catch(_0x17f329){_0x30d95e['push'](_0x30d95e['shift']());}}}(_0x22d4,0x8d676));import{AIChatUI as _0x2eaa94}from'../aichat/aichatui.js';function _0x22d4(){const _0x2afa9c=['ai-chat-shortcuts-review-mode-not-found','_validateShortcuts','plugins','source','_removeShortcuts','length','params','element','AIChatShortcuts','REVIEW','destroy','view','addCurrentDocumentToChatContext','string','focusPromptInput','forEach','activeConversation','ai-chat-shortcuts-invalid-config','isFromHistory','pluginName','_shortcuts','AIChatController','config','setReasoning','_shortcutsView','69982Yqvnog','getDefault','hasFeedItem','find','320DWPzJL','7054817torWSe','CHAT','context','getModel','1514700MLktGo','_executeShortcut','includes','5373432sVzwdR','208vkzHKt','get','_runTranslateShortcut','ai.chat.shortcuts','_runChatShortcut','interactionStarted','_switchTab','listenTo','prompt','label','isOfficialPlugin','review','setWebSearch','chat-shortcuts','values','render','AITranslateUI','translate','reviewMode','activateTab','ai-chat-shortcuts-ai-tabs-not-found','init','addFeedItemCustomElement','AITabs','custom','requires','isPremiumPlugin','conversationCreated','fire','removeFeedItem','setModel','TRANSLATE','ai-chat-shortcuts-translate-not-found','_aiChatUI','AIChat','_runReviewShortcut','19508lRGpGz','chat','271742hqFETa','type','execute','check','_injectShortcuts','locale','AIReviewModeUI','language','87BOSzMu','setPromptInputValue','261585JYlgPU','args','sendMessage','has','runReviewCheck','chatModels'];_0x22d4=function(){return _0x2afa9c;};return _0x22d4();}import{ContextPlugin as _0x16c2f0}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x2f1af4}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x22fb3e}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x2ff234(0x20f);export var AIChatShortcutType;!function(_0x259a7f){const _0x47b142=_0x2ff234;_0x259a7f[_0x47b142(0x1fb)]=_0x47b142(0x1cb),_0x259a7f[_0x47b142(0x1e5)]=_0x47b142(0x20d),_0x259a7f[_0x47b142(0x1c5)]=_0x47b142(0x213);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x16c2f0{[_0x2ff234(0x1f0)];[_0x2ff234(0x1f4)];[_0x2ff234(0x1c7)];static get[_0x2ff234(0x1bf)](){return[_0x2eaa94];}static get[_0x2ff234(0x1ef)](){const _0x4a74da=_0x2ff234;return _0x4a74da(0x1e4);}static get[_0x2ff234(0x20c)](){return!0x0;}static get[_0x2ff234(0x1c0)](){return!0x0;}[_0x2ff234(0x1bb)](){const _0x3457f7=_0x2ff234;this[_0x3457f7(0x1c7)]=this[_0x3457f7(0x1fc)][_0x3457f7(0x1de)][_0x3457f7(0x203)](_0x2eaa94),this[_0x3457f7(0x1f0)]=this[_0x3457f7(0x1fc)][_0x3457f7(0x1f2)][_0x3457f7(0x203)](_0x3457f7(0x205))??[];const _0xc5492e=this[_0x3457f7(0x1fc)][_0x3457f7(0x1de)][_0x3457f7(0x203)](_0x3457f7(0x1f1));this[_0x3457f7(0x1f0)][_0x3457f7(0x1e1)]&&(this[_0x3457f7(0x1dd)](),this[_0x3457f7(0x1c7)]['on'](_0x3457f7(0x1c1),()=>{const _0x2f6765=_0x3457f7;_0xc5492e[_0x2f6765(0x1ec)][_0x2f6765(0x1ee)]||this[_0x2f6765(0x1d0)]();}),this[_0x3457f7(0x209)](_0xc5492e,_0x3457f7(0x207),()=>{const _0x501808=_0x3457f7;this[_0x501808(0x1e0)]();}));}[_0x2ff234(0x1dd)](){const _0x53c410=_0x2ff234,_0x4e127f=Object[_0x53c410(0x210)](AIChatShortcutType);this[_0x53c410(0x1f0)][_0x53c410(0x1eb)](_0x211fe0=>{const _0x5a7b8d=_0x53c410;let _0xd8b53d=!0x0;if(_0x211fe0['id']&&_0x211fe0[_0x5a7b8d(0x20b)]&&_0x4e127f[_0x5a7b8d(0x200)](_0x211fe0[_0x5a7b8d(0x1cd)])?_0x5a7b8d(0x1cb)===_0x211fe0[_0x5a7b8d(0x1cd)]&&(_0xd8b53d=_0x5a7b8d(0x1e9)==typeof _0x211fe0[_0x5a7b8d(0x20a)]):_0xd8b53d=!0x1,!_0xd8b53d)throw new _0x22fb3e(_0x5a7b8d(0x1ed),this[_0x5a7b8d(0x1fc)],{'shortcut':_0x211fe0});});}[_0x2ff234(0x1d0)](){const _0x3bdd78=_0x2ff234,_0x5376a6=this[_0x3bdd78(0x1fc)][_0x3bdd78(0x1de)][_0x3bdd78(0x203)](_0x2eaa94);this[_0x3bdd78(0x1f4)]=new _0x2f1af4(this[_0x3bdd78(0x1fc)][_0x3bdd78(0x1d1)],this[_0x3bdd78(0x1f0)]),this[_0x3bdd78(0x1f4)][_0x3bdd78(0x211)](),_0x5376a6[_0x3bdd78(0x1bc)](this[_0x3bdd78(0x1f4)][_0x3bdd78(0x1e3)],Ut),this[_0x3bdd78(0x1f4)]['on'](_0x3bdd78(0x1ce),_0x1a78ea=>{const _0x3c3f17=_0x3bdd78,_0x363b03=_0x1a78ea[_0x3c3f17(0x1df)]['id'];this[_0x3c3f17(0x1ff)](_0x363b03);});}[_0x2ff234(0x1e0)](){const _0x4ecdd4=_0x2ff234,_0x2f97d5=this[_0x4ecdd4(0x1fc)][_0x4ecdd4(0x1de)][_0x4ecdd4(0x203)](_0x2eaa94);_0x2f97d5[_0x4ecdd4(0x1f7)](Ut)&&_0x2f97d5[_0x4ecdd4(0x1c3)](Ut),this[_0x4ecdd4(0x1f4)]?.[_0x4ecdd4(0x1e6)]();}[_0x2ff234(0x1ff)](_0x30da71){const _0xf0cffd=_0x2ff234,_0x56b871=this[_0xf0cffd(0x1f0)][_0xf0cffd(0x1f8)](_0x19fd47=>_0x19fd47['id']===_0x30da71),_0x35fd5f=_0x56b871[_0xf0cffd(0x1cd)];_0xf0cffd(0x1cb)===_0x35fd5f?this[_0xf0cffd(0x206)](_0x56b871):_0xf0cffd(0x20d)===_0x35fd5f?_0x56b871[_0xf0cffd(0x1cf)]?this[_0xf0cffd(0x1c9)](_0x56b871):this[_0xf0cffd(0x208)](_0xf0cffd(0x214)):_0xf0cffd(0x213)===_0x35fd5f&&(_0x56b871[_0xf0cffd(0x1d3)]?this[_0xf0cffd(0x204)](_0x56b871):this[_0xf0cffd(0x208)](_0xf0cffd(0x213)));}[_0x2ff234(0x208)](_0x44f972){const _0x8c4ab8=_0x2ff234;if(!this[_0x8c4ab8(0x1fc)][_0x8c4ab8(0x1de)][_0x8c4ab8(0x1d9)](_0x8c4ab8(0x1bd)))throw new _0x22fb3e(_0x8c4ab8(0x1ba),this[_0x8c4ab8(0x1fc)],{'tabName':_0x44f972});this[_0x8c4ab8(0x1fc)][_0x8c4ab8(0x1de)][_0x8c4ab8(0x203)](_0x8c4ab8(0x1bd))[_0x8c4ab8(0x1e7)][_0x8c4ab8(0x215)](_0x44f972);}async[_0x2ff234(0x206)]({prompt:_0x5c74d7,draftMode:_0x30154e,useWebSearch:_0x1ab52d=!0x1,useReasoning:_0x2922da=!0x1,model:_0x2bc1d9}){const _0x1ca937=_0x2ff234,_0x383118=this[_0x1ca937(0x1fc)][_0x1ca937(0x1de)][_0x1ca937(0x203)](_0x1ca937(0x1c8)),_0x47b641=this[_0x1ca937(0x1fc)][_0x1ca937(0x1de)][_0x1ca937(0x203)](_0x1ca937(0x1f1)),_0x2269ac=_0x47b641[_0x1ca937(0x1ec)];let _0x4b52c0;_0x4b52c0=_0x2bc1d9?await _0x2269ac[_0x1ca937(0x1db)][_0x1ca937(0x1fd)](_0x2bc1d9):await _0x2269ac[_0x1ca937(0x1db)][_0x1ca937(0x1f6)](),_0x4b52c0&&await _0x2269ac[_0x1ca937(0x1c4)](_0x4b52c0),_0x2269ac[_0x1ca937(0x20e)](_0x1ab52d),_0x2269ac[_0x1ca937(0x1f3)](_0x2922da),_0x47b641[_0x1ca937(0x1e8)](),_0x30154e?(this[_0x1ca937(0x1c7)][_0x1ca937(0x1d5)](_0x5c74d7),this[_0x1ca937(0x1c7)][_0x1ca937(0x1ea)](!0x0)):_0x383118[_0x1ca937(0x1d8)]({'message':_0x5c74d7});}[_0x2ff234(0x1c9)]({check:_0x32879a,model:_0x41b6f3,prompt:_0x2175f9,params:_0x487aba}){const _0x39e4b0=_0x2ff234;if(!this[_0x39e4b0(0x1fc)][_0x39e4b0(0x1de)][_0x39e4b0(0x1d9)](_0x39e4b0(0x1d2)))throw new _0x22fb3e(_0x39e4b0(0x1dc),this[_0x39e4b0(0x1fc)]);this[_0x39e4b0(0x208)](_0x39e4b0(0x214));const _0x9aaf6f={'id':_0x32879a,'isCustom':_0x39e4b0(0x1be)===_0x32879a};_0x41b6f3&&_0x2175f9&&(_0x9aaf6f[_0x39e4b0(0x1d7)]={'model':_0x41b6f3,'prompt':_0x2175f9}),_0x487aba&&(_0x9aaf6f[_0x39e4b0(0x1e2)]=_0x487aba),this[_0x39e4b0(0x1fc)][_0x39e4b0(0x1de)][_0x39e4b0(0x203)](_0x39e4b0(0x1d2))[_0x39e4b0(0x1c2)](_0x39e4b0(0x1da),_0x9aaf6f);}[_0x2ff234(0x204)]({language:_0x1e1924}){const _0x1ba87c=_0x2ff234;if(!this[_0x1ba87c(0x1fc)][_0x1ba87c(0x1de)][_0x1ba87c(0x1d9)](_0x1ba87c(0x212)))throw new _0x22fb3e(_0x1ba87c(0x1c6),this[_0x1ba87c(0x1fc)]);this[_0x1ba87c(0x208)](_0x1ba87c(0x213)),this[_0x1ba87c(0x1fc)][_0x1ba87c(0x1de)][_0x1ba87c(0x203)](_0x1ba87c(0x212))[_0x1ba87c(0x1c2)](_0x1ba87c(0x1da),{'id':_0x1e1924,'args':{'language':_0x1e1924}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4700(){const _0x13f18a=['828897SndnzX','297700LZJiqc','items','listView','ck-ai-chat-shortcuts','execute','10fXRHuj','4091296tmFuMC','locale','4715zIwMbr','2093WVGAXj','addMany','add','setTemplate','map','12112qvQYJh','792MbDSyg','4942260bOnrPF','delegate','4650WOGPLf','children','div','1129714wulKRb'];_0x4700=function(){return _0x13f18a;};return _0x4700();}function _0x23b2(_0x3c1a56,_0x3973e3){const _0x470037=_0x4700();return _0x23b2=function(_0x23b2ae,_0x3f51de){_0x23b2ae=_0x23b2ae-0x18e;let _0x399a09=_0x470037[_0x23b2ae];return _0x399a09;},_0x23b2(_0x3c1a56,_0x3973e3);}const _0x10a588=_0x23b2;(function(_0x4c0566,_0x4e4a88){const _0x42c557=_0x23b2,_0x6b099c=_0x4c0566();while(!![]){try{const _0x49e6ec=-parseInt(_0x42c557(0x1a1))/0x1+parseInt(_0x42c557(0x191))/0x2*(parseInt(_0x42c557(0x1a2))/0x3)+-parseInt(_0x42c557(0x192))/0x4+parseInt(_0x42c557(0x194))/0x5*(-parseInt(_0x42c557(0x19e))/0x6)+-parseInt(_0x42c557(0x195))/0x7*(parseInt(_0x42c557(0x19a))/0x8)+parseInt(_0x42c557(0x19c))/0x9+-parseInt(_0x42c557(0x1a3))/0xa*(-parseInt(_0x42c557(0x19b))/0xb);if(_0x49e6ec===_0x4e4a88)break;else _0x6b099c['push'](_0x6b099c['shift']());}catch(_0x6b5f36){_0x6b099c['push'](_0x6b099c['shift']());}}}(_0x4700,0xb42ea));import{ListItemView as _0x407945,ListView as _0x2c4f3f,View as _0x8d174}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0xa4d7b5}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x8d174{[_0x10a588(0x18e)];constructor(_0x36f7f9,_0x8daedd){const _0x5ab538=_0x10a588;super(_0x36f7f9);const _0x4622d0=_0x8daedd[_0x5ab538(0x199)](_0x3c7560=>{const _0x4afd1e=_0x5ab538,_0x3103d4=new _0x407945(this[_0x4afd1e(0x193)]),_0x58ae88=new _0xa4d7b5(this[_0x4afd1e(0x193)],_0x3c7560);return _0x3103d4[_0x4afd1e(0x19f)][_0x4afd1e(0x197)](_0x58ae88),_0x58ae88[_0x4afd1e(0x19d)](_0x4afd1e(0x190))['to'](this),_0x3103d4;});this[_0x5ab538(0x18e)]=new _0x2c4f3f(this[_0x5ab538(0x193)]),this[_0x5ab538(0x18e)][_0x5ab538(0x1a4)][_0x5ab538(0x196)](_0x4622d0),this[_0x5ab538(0x198)]({'tag':_0x5ab538(0x1a0),'attributes':{'class':['ck',_0x5ab538(0x18f)]},'children':[this[_0x5ab538(0x18e)]]});}}
23
+ const _0x55bdfc=_0xd0a6;(function(_0x27d866,_0x15a579){const _0x37f3dc=_0xd0a6,_0x150e5b=_0x27d866();while(!![]){try{const _0x5cecd7=parseInt(_0x37f3dc(0xf1))/0x1*(parseInt(_0x37f3dc(0xe2))/0x2)+-parseInt(_0x37f3dc(0xf0))/0x3*(-parseInt(_0x37f3dc(0xee))/0x4)+parseInt(_0x37f3dc(0xe8))/0x5*(-parseInt(_0x37f3dc(0xf2))/0x6)+-parseInt(_0x37f3dc(0xf4))/0x7+-parseInt(_0x37f3dc(0xe1))/0x8+-parseInt(_0x37f3dc(0xde))/0x9*(parseInt(_0x37f3dc(0xe9))/0xa)+-parseInt(_0x37f3dc(0xe7))/0xb*(-parseInt(_0x37f3dc(0xed))/0xc);if(_0x5cecd7===_0x15a579)break;else _0x150e5b['push'](_0x150e5b['shift']());}catch(_0x177d22){_0x150e5b['push'](_0x150e5b['shift']());}}}(_0x1ea3,0xda7f8));function _0x1ea3(){const _0x4dd0be=['11962656SgyMWw','754ZWnkKq','children','div','ck-ai-chat-shortcuts','setTemplate','13354297WuUYsZ','7044870YIHOyq','10aNuOFC','delegate','map','execute','36OtZTvY','178136GNnmjb','addMany','6EkNYDS','3166CuDLqw','6IZxbyB','add','7583268xhbXzn','locale','379197HLiCQz','items','listView'];_0x1ea3=function(){return _0x4dd0be;};return _0x1ea3();}function _0xd0a6(_0x35b3e4,_0x449a81){const _0x1ea3ed=_0x1ea3();return _0xd0a6=function(_0xd0a634,_0x401cda){_0xd0a634=_0xd0a634-0xde;let _0x5a9ea8=_0x1ea3ed[_0xd0a634];return _0x5a9ea8;},_0xd0a6(_0x35b3e4,_0x449a81);}import{ListItemView as _0x386f6b,ListView as _0x2daae6,View as _0x36a708}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0xc4fe55}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x36a708{[_0x55bdfc(0xe0)];constructor(_0x5a2343,_0x428e6a){const _0x226265=_0x55bdfc;super(_0x5a2343);const _0x3a1eae=_0x428e6a[_0x226265(0xeb)](_0x2039c2=>{const _0x53bfc6=_0x226265,_0x140375=new _0x386f6b(this[_0x53bfc6(0xf5)]),_0x45f5eb=new _0xc4fe55(this[_0x53bfc6(0xf5)],_0x2039c2);return _0x140375[_0x53bfc6(0xe3)][_0x53bfc6(0xf3)](_0x45f5eb),_0x45f5eb[_0x53bfc6(0xea)](_0x53bfc6(0xec))['to'](this),_0x140375;});this[_0x226265(0xe0)]=new _0x2daae6(this[_0x226265(0xf5)]),this[_0x226265(0xe0)][_0x226265(0xdf)][_0x226265(0xef)](_0x3a1eae),this[_0x226265(0xe6)]({'tag':_0x226265(0xe4),'attributes':{'class':['ck',_0x226265(0xe5)]},'children':[this[_0x226265(0xe0)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4b94(){const _0x11578c=['translate','label','8tdePiz','209356zhFvCB','ck-ai-chat-shortcut','284200iFYjyL','chat','90980mWdVJV','42QSMJuB','extendTemplate','set','194708aprqDF','icon','375151VSJYBJ','review','1429812Aaodic','3015880GfCSug','12SoBirq'];_0x4b94=function(){return _0x11578c;};return _0x4b94();}(function(_0x1d29be,_0xa9e678){const _0x3f1c05=_0x5298,_0x289185=_0x1d29be();while(!![]){try{const _0x3dcbb2=-parseInt(_0x3f1c05(0x81))/0x1+parseInt(_0x3f1c05(0x83))/0x2+-parseInt(_0x3f1c05(0x8f))/0x3*(parseInt(_0x3f1c05(0x89))/0x4)+parseInt(_0x3f1c05(0x85))/0x5*(-parseInt(_0x3f1c05(0x86))/0x6)+-parseInt(_0x3f1c05(0x8b))/0x7*(-parseInt(_0x3f1c05(0x80))/0x8)+parseInt(_0x3f1c05(0x8d))/0x9+parseInt(_0x3f1c05(0x8e))/0xa;if(_0x3dcbb2===_0xa9e678)break;else _0x289185['push'](_0x289185['shift']());}catch(_0x369c8e){_0x289185['push'](_0x289185['shift']());}}}(_0x4b94,0x1e729));import{ButtonView as _0x18a328}from'ckeditor5/src/ui.js';function _0x5298(_0x584919,_0x1caff4){const _0x4b9497=_0x4b94();return _0x5298=function(_0x529810,_0x3a8103){_0x529810=_0x529810-0x7f;let _0x2adadc=_0x4b9497[_0x529810];return _0x2adadc;},_0x5298(_0x584919,_0x1caff4);}import{IconAIChat as _0xa82431,IconAIReview as _0x3d7728,IconAITranslate as _0x46f5f4}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x18a328{['id'];constructor(_0x38d544,_0x17cae8){const _0x3bc39b=_0x5298;super(_0x38d544);const {id:_0x2b31b3,type:_0x58096f,icon:_0x599cdb}=_0x17cae8;this['id']=_0x2b31b3,this[_0x3bc39b(0x88)]({'label':_0x17cae8[_0x3bc39b(0x7f)],'withText':!0x0,'class':_0x3bc39b(0x82)}),this[_0x3bc39b(0x87)]({'attributes':{'data-cke-ai-shortcut-id':_0x17cae8['id']}}),_0x599cdb?this[_0x3bc39b(0x8a)]=_0x599cdb:_0x3bc39b(0x84)===_0x58096f?this[_0x3bc39b(0x8a)]=_0xa82431:_0x3bc39b(0x8c)===_0x58096f?this[_0x3bc39b(0x8a)]=_0x3d7728:_0x3bc39b(0x90)===_0x58096f&&(this[_0x3bc39b(0x8a)]=_0x46f5f4);}}
23
+ function _0x43a3(_0x9efdd6,_0xf9a4ac){const _0x32c7eb=_0x32c7();return _0x43a3=function(_0x43a3aa,_0x4abd39){_0x43a3aa=_0x43a3aa-0x18d;let _0x47ec01=_0x32c7eb[_0x43a3aa];return _0x47ec01;},_0x43a3(_0x9efdd6,_0xf9a4ac);}function _0x32c7(){const _0x9c2bd3=['ck-ai-chat-shortcut','label','translate','extendTemplate','848332PMoBmb','702ePFouj','set','2597790wFkUuE','7YzSnQJ','118530zCpjGK','540115UuFeXL','review','259912nFEcSp','chat','3lrpOws','icon','611186jxXRvq','1719192EQIKIO'];_0x32c7=function(){return _0x9c2bd3;};return _0x32c7();}(function(_0x42df04,_0x38af87){const _0x3f90bc=_0x43a3,_0x4c46c6=_0x42df04();while(!![]){try{const _0x1eec85=-parseInt(_0x3f90bc(0x18e))/0x1+parseInt(_0x3f90bc(0x192))/0x2*(parseInt(_0x3f90bc(0x190))/0x3)+-parseInt(_0x3f90bc(0x198))/0x4+parseInt(_0x3f90bc(0x19e))/0x5+-parseInt(_0x3f90bc(0x19b))/0x6+parseInt(_0x3f90bc(0x19c))/0x7*(-parseInt(_0x3f90bc(0x193))/0x8)+parseInt(_0x3f90bc(0x199))/0x9*(parseInt(_0x3f90bc(0x19d))/0xa);if(_0x1eec85===_0x38af87)break;else _0x4c46c6['push'](_0x4c46c6['shift']());}catch(_0x1a0f40){_0x4c46c6['push'](_0x4c46c6['shift']());}}}(_0x32c7,0x354b3));import{ButtonView as _0x2fd3a2}from'ckeditor5/src/ui.js';import{IconAIChat as _0x42a38c,IconAIReview as _0x3a9faa,IconAITranslate as _0x142fc4}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x2fd3a2{['id'];constructor(_0xd6ad84,_0x1fa6f9){const _0x398280=_0x43a3;super(_0xd6ad84);const {id:_0x360960,type:_0x107e0c,icon:_0x396cd0}=_0x1fa6f9;this['id']=_0x360960,this[_0x398280(0x19a)]({'label':_0x1fa6f9[_0x398280(0x195)],'withText':!0x0,'class':_0x398280(0x194)}),this[_0x398280(0x197)]({'attributes':{'data-cke-ai-shortcut-id':_0x1fa6f9['id']}}),_0x396cd0?this[_0x398280(0x191)]=_0x396cd0:_0x398280(0x18f)===_0x107e0c?this[_0x398280(0x191)]=_0x42a38c:_0x398280(0x18d)===_0x107e0c?this[_0x398280(0x191)]=_0x3a9faa:_0x398280(0x196)===_0x107e0c&&(this[_0x398280(0x191)]=_0x142fc4);}}