@ckeditor/ckeditor5-ai 47.6.0-alpha.2 → 47.6.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +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.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.d.ts +8 -4
  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 _0xfadeda=_0x32a4;(function(_0x22be74,_0x332f73){const _0x56a9ee=_0x32a4,_0x230ca3=_0x22be74();while(!![]){try{const _0xbe588f=-parseInt(_0x56a9ee(0x17f))/0x1+-parseInt(_0x56a9ee(0x15f))/0x2*(-parseInt(_0x56a9ee(0x160))/0x3)+-parseInt(_0x56a9ee(0x140))/0x4*(parseInt(_0x56a9ee(0x144))/0x5)+parseInt(_0x56a9ee(0x196))/0x6*(parseInt(_0x56a9ee(0x192))/0x7)+-parseInt(_0x56a9ee(0x143))/0x8*(parseInt(_0x56a9ee(0x15a))/0x9)+parseInt(_0x56a9ee(0x173))/0xa*(-parseInt(_0x56a9ee(0x181))/0xb)+parseInt(_0x56a9ee(0x146))/0xc;if(_0xbe588f===_0x332f73)break;else _0x230ca3['push'](_0x230ca3['shift']());}catch(_0x1e6f16){_0x230ca3['push'](_0x230ca3['shift']());}}}(_0x3f94,0x3d822));import{ContextPlugin as _0x1fe1d4}from'ckeditor5/src/core.js';import{AIConnector as _0x170bc9}from'../aicore/aiconnector.js';import{AIChatController as _0x3ea7b4}from'../aichat/aichatcontroller.js';function _0x3f94(){const _0x143add=['title','48054vuzlup','AI_CHAT_HISTORY_ERROR_GENERIC','toLocaleDateString','listenTo','itemRemoved','createdAt','itemUpdated','_aiConnector','length','resize','chat','setConversationPinned','updateItemTitle','getGroupId','setLoadingSkeleton','getMonth','getItem','_handleTogglePin','1088928HUGdam','pinned','history','3249608wEIQlg','5zkgQOv','pin','11453208jgzHZC','updates','setIsMaximized','_handleSelectConversation','init','plugins','loadConversation','_aiChatHistoryUi','_getCategorizedItems','error','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','getItems','_handleRemove','_setIsMaximized','_setItemLoading','showError','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','rename','view','AIChatHistoryController','9JrreRO','isOfficialPlugin','map','activateTab:history','locale','187364bJfPAc','6uwwtEV','_showConversationHistory','remove','get','loadItems','removeItem','_clearItemLoading','selectConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','_handleHistoryErrorUI','isPremiumPlugin','operation','itemsLoaded','requires','push','updateItemPinned','resizedTabs','_updateHistoryItemsUI','context','330xIxxWK','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_UNPIN_ACTION','itemId','setDate','change:activeConversation','activateTab','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','handleRemovedConversation','openChat','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_UNTITLED_CONVERSATION','254197sbexBP','resizeTabs','20449jUHCVp','items','getFullYear','getDate','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','activeConversation','_aiChatController','_generateErrorMessage','removeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','pluginName','editConversationTitle','unpin','removeHistoryItem','_handleEditTitle','updateItems','91rQioHb','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','updateItemLoadingState'];_0x3f94=function(){return _0x143add;};return _0x3f94();}import{AITabs as _0xd46ce1}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x2ed1c8}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1e99a7}from'./model/aichathistoryconversations.js';function _0x32a4(_0x5dc69a,_0x3e8fa3){const _0x3f94ce=_0x3f94();return _0x32a4=function(_0x32a4e5,_0x433321){_0x32a4e5=_0x32a4e5-0x133;let _0xdbf29c=_0x3f94ce[_0x32a4e5];return _0xdbf29c;},_0x32a4(_0x5dc69a,_0x3e8fa3);}import{getTranslation as _0x5be4b2}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x1fe1d4{[_0xfadeda(0x135)];[_0xfadeda(0x14d)];[_0xfadeda(0x187)];static get[_0xfadeda(0x16d)](){return[_0x170bc9,_0x3ea7b4,_0x2ed1c8,_0xd46ce1];}static get[_0xfadeda(0x18c)](){const _0x2ecc0f=_0xfadeda;return _0x2ecc0f(0x159);}static get[_0xfadeda(0x15b)](){return!0x0;}static get[_0xfadeda(0x16a)](){return!0x0;}[_0xfadeda(0x14a)](){const _0x3bfacf=_0xfadeda;this[_0x3bfacf(0x135)]=this[_0x3bfacf(0x172)][_0x3bfacf(0x14b)][_0x3bfacf(0x163)](_0x170bc9),this[_0x3bfacf(0x14d)]=this[_0x3bfacf(0x172)][_0x3bfacf(0x14b)][_0x3bfacf(0x163)](_0x2ed1c8),this[_0x3bfacf(0x187)]=this[_0x3bfacf(0x172)][_0x3bfacf(0x14b)][_0x3bfacf(0x163)](_0x3ea7b4);const _0x4e1b9b=this[_0x3bfacf(0x172)][_0x3bfacf(0x14b)][_0x3bfacf(0x163)](_0xd46ce1);try{const _0x901bb4=this[_0x3bfacf(0x187)][_0x3bfacf(0x13b)]();this[_0x3bfacf(0x142)]=new _0x1e99a7({'connector':this[_0x3bfacf(0x135)],'group':_0x901bb4}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x189),(_0x2f5aa6,_0x564162)=>{const _0x57e6e5=_0x3bfacf;this[_0x57e6e5(0x154)](_0x564162['id'],_0x57e6e5(0x162)),this[_0x57e6e5(0x152)](_0x564162['id']);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x18d),(_0x12f5a5,_0x5c69ed)=>{const _0x5bf263=_0x3bfacf;this[_0x5bf263(0x154)](_0x5c69ed['id'],_0x5bf263(0x157)),this[_0x5bf263(0x190)](_0x5c69ed['id'],_0x5c69ed[_0x5bf263(0x195)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x142)],_0x3bfacf(0x134),(_0x644341,_0x19b1f2)=>{const _0x544d87=_0x3bfacf;void 0x0!==_0x19b1f2[_0x544d87(0x147)][_0x544d87(0x195)]&&this[_0x544d87(0x14d)][_0x544d87(0x13a)](_0x19b1f2[_0x544d87(0x176)],_0x19b1f2[_0x544d87(0x147)][_0x544d87(0x195)]),void 0x0!==_0x19b1f2[_0x544d87(0x147)][_0x544d87(0x141)]&&this[_0x544d87(0x171)](),this[_0x544d87(0x166)](_0x19b1f2[_0x544d87(0x176)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x142)],_0x3bfacf(0x19a),(_0x26b1fe,_0x22679d)=>{const _0x1f75f1=_0x3bfacf;this[_0x1f75f1(0x187)][_0x1f75f1(0x17b)](_0x22679d[_0x1f75f1(0x176)]),this[_0x1f75f1(0x14d)][_0x1f75f1(0x18f)](_0x22679d[_0x1f75f1(0x176)]),this[_0x1f75f1(0x166)](_0x22679d[_0x1f75f1(0x176)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x142)],_0x3bfacf(0x16c),()=>{const _0x1f73b6=_0x3bfacf;this[_0x1f73b6(0x171)]();}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x142)],_0x3bfacf(0x14f),(_0x30a609,_0x3d8227)=>{const _0x50ea4e=_0x3bfacf;this[_0x50ea4e(0x169)](_0x3d8227[_0x50ea4e(0x14f)],_0x3d8227[_0x50ea4e(0x16b)],_0x3d8227[_0x50ea4e(0x176)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x167),(_0x34db5b,_0x717316)=>{const _0x1588ca=_0x3bfacf;this[_0x1588ca(0x149)](_0x717316['id']);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x139),(_0x169451,_0xc4cc5f)=>{const _0x567943=_0x3bfacf,_0x525162=_0xc4cc5f[_0x567943(0x141)]?_0x567943(0x145):_0x567943(0x18e);this[_0x567943(0x154)](_0xc4cc5f['id'],_0x525162),this[_0x567943(0x13f)](_0xc4cc5f['id'],_0xc4cc5f[_0x567943(0x141)]);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x17c),()=>{const _0x393315=_0x3bfacf;_0x4e1b9b[_0x393315(0x158)][_0x393315(0x179)](_0x393315(0x138));}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x187)],_0x3bfacf(0x178),()=>{const _0x15fb93=_0x3bfacf;this[_0x15fb93(0x171)]();}),_0x4e1b9b[_0x3bfacf(0x158)]['on'](_0x3bfacf(0x15d),()=>{const _0x4a9f38=_0x3bfacf;this[_0x4a9f38(0x161)]();}),this[_0x3bfacf(0x199)](_0x4e1b9b,_0x3bfacf(0x170),(_0x286b5b,_0x20a9cc)=>{const _0x4b75b3=_0x3bfacf;this[_0x4b75b3(0x153)](_0x20a9cc);}),this[_0x3bfacf(0x199)](this[_0x3bfacf(0x14d)],_0x3bfacf(0x180),()=>{const _0x416a98=_0x3bfacf;_0x4e1b9b[_0x416a98(0x137)]();});}catch(_0x2135de){this[_0x3bfacf(0x169)](_0x2135de,_0x3bfacf(0x14a));}}async[_0xfadeda(0x190)](_0x301eba,_0x920213){const _0x3ce653=_0xfadeda;await this[_0x3ce653(0x142)][_0x3ce653(0x13a)](_0x301eba,_0x920213);}async[_0xfadeda(0x13f)](_0x2f7517,_0x1cf1bc){const _0x526925=_0xfadeda;await this[_0x526925(0x142)][_0x526925(0x16f)](_0x2f7517,_0x1cf1bc);}async[_0xfadeda(0x152)](_0x2bd9ab){const _0x2a538e=_0xfadeda;await this[_0x2a538e(0x142)][_0x2a538e(0x165)](_0x2bd9ab);}async[_0xfadeda(0x149)](_0x3d2e07){const _0x4cc0aa=_0xfadeda;await this[_0x4cc0aa(0x187)][_0x4cc0aa(0x14c)](_0x3d2e07);}async[_0xfadeda(0x161)](){const _0x21b09d=_0xfadeda;this[_0x21b09d(0x14d)][_0x21b09d(0x155)](''),this[_0x21b09d(0x14d)][_0x21b09d(0x13c)](!0x0),await this[_0x21b09d(0x142)][_0x21b09d(0x14a)](),this[_0x21b09d(0x14d)][_0x21b09d(0x13c)](!0x1);}[_0xfadeda(0x171)](){const _0x5d19ef=_0xfadeda,_0x52798f=this[_0x5d19ef(0x187)][_0x5d19ef(0x186)]?.['id'],_0x1af8ff=this[_0x5d19ef(0x14e)]()[_0x5d19ef(0x15c)](_0x2448cf=>({'title':_0x2448cf[_0x5d19ef(0x195)],'items':_0x2448cf[_0x5d19ef(0x182)][_0x5d19ef(0x15c)](_0x3c5e1d=>({'id':_0x3c5e1d['id'],'title':_0x3c5e1d[_0x5d19ef(0x195)]||_0x5be4b2(this[_0x5d19ef(0x172)][_0x5d19ef(0x15e)],_0x5d19ef(0x17e)),'createdAt':new Date(_0x3c5e1d[_0x5d19ef(0x133)])[_0x5d19ef(0x198)](),'active':_0x3c5e1d['id']===_0x52798f,'pinned':_0x3c5e1d[_0x5d19ef(0x141)]}))}));this[_0x5d19ef(0x14d)][_0x5d19ef(0x191)](_0x1af8ff);}[_0xfadeda(0x154)](_0xa09df7,_0x22fa6f){const _0x303e69=_0xfadeda;this[_0x303e69(0x14d)][_0x303e69(0x194)](_0xa09df7,_0x22fa6f,!0x0);}[_0xfadeda(0x166)](_0x5693ec){const _0x5a82c8=_0xfadeda;this[_0x5a82c8(0x14d)][_0x5a82c8(0x194)](_0x5693ec,null,!0x1);}[_0xfadeda(0x169)](_0x1c32ef,_0x1bade9,_0x4ed85e){const _0x265504=_0xfadeda,_0x478ddd=this[_0x265504(0x188)](_0x1bade9,_0x4ed85e);this[_0x265504(0x14d)][_0x265504(0x155)](_0x478ddd),_0x4ed85e&&this[_0x265504(0x166)](_0x4ed85e),this[_0x265504(0x14d)][_0x265504(0x13c)](!0x1);}[_0xfadeda(0x188)](_0x582a7e,_0x31de79){const _0x1ae420=_0xfadeda,_0x5364a3=_0x31de79?this[_0x1ae420(0x142)][_0x1ae420(0x13e)](_0x31de79):null,_0x20cd7a=_0x5364a3?.[_0x1ae420(0x195)]||_0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x17e));switch(_0x582a7e){case _0x1ae420(0x13a):return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x18b),_0x20cd7a);case _0x1ae420(0x16f):{const _0x3f4b73=_0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x5364a3?.[_0x1ae420(0x141)]?_0x1ae420(0x175):_0x1ae420(0x17d));return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x193),[_0x3f4b73,_0x20cd7a]);}case _0x1ae420(0x165):return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x156),_0x20cd7a);case _0x1ae420(0x14a):case _0x1ae420(0x164):return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x150));default:return _0x5be4b2(this[_0x1ae420(0x172)][_0x1ae420(0x15e)],_0x1ae420(0x197));}}[_0xfadeda(0x14e)](){const _0x3045a6=_0xfadeda,_0x10d251=new Date(),_0x49e50d=new Date(_0x10d251[_0x3045a6(0x183)](),_0x10d251[_0x3045a6(0x13d)](),_0x10d251[_0x3045a6(0x184)]()),_0x22bff0=new Date(_0x49e50d);_0x22bff0[_0x3045a6(0x177)](_0x22bff0[_0x3045a6(0x184)]()-0x1);const _0x1d731f=new Date(_0x49e50d);_0x1d731f[_0x3045a6(0x177)](_0x1d731f[_0x3045a6(0x184)]()-0xe);const _0xb5775=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'pinned':!0x0}),_0x42c8dc=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'from':_0x49e50d,'to':_0x49e50d}),_0x47c6c5=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'from':_0x22bff0,'to':_0x22bff0}),_0x3862aa=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'from':_0x1d731f,'to':_0x22bff0}),_0x318c7c=this[_0x3045a6(0x142)][_0x3045a6(0x151)]({'to':_0x1d731f}),_0x44bd7f=[];return _0xb5775[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x168)),'items':_0xb5775}),_0x42c8dc[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x18a)),'items':_0x42c8dc}),_0x47c6c5[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x17a)),'items':_0x47c6c5}),_0x3862aa[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x185)),'items':_0x3862aa}),_0x318c7c[_0x3045a6(0x136)]>0x0&&_0x44bd7f[_0x3045a6(0x16e)]({'title':_0x5be4b2(this[_0x3045a6(0x172)][_0x3045a6(0x15e)],_0x3045a6(0x174)),'items':_0x318c7c}),_0x44bd7f;}[_0xfadeda(0x153)](_0x64f09){const _0x562784=_0xfadeda;this[_0x562784(0x14d)][_0x562784(0x148)](_0x64f09);}}
23
+ function _0x1b68(_0x294199,_0xe0461){const _0x8a750c=_0x8a75();return _0x1b68=function(_0x1b684a,_0x307eef){_0x1b684a=_0x1b684a-0x166;let _0x24ce24=_0x8a750c[_0x1b684a];return _0x24ce24;},_0x1b68(_0x294199,_0xe0461);}const _0x31be98=_0x1b68;(function(_0x32582c,_0x4051f2){const _0x1d3d7c=_0x1b68,_0x2584fb=_0x32582c();while(!![]){try{const _0x2e465f=-parseInt(_0x1d3d7c(0x1bb))/0x1*(parseInt(_0x1d3d7c(0x18d))/0x2)+parseInt(_0x1d3d7c(0x1a5))/0x3*(parseInt(_0x1d3d7c(0x1a1))/0x4)+-parseInt(_0x1d3d7c(0x16c))/0x5+-parseInt(_0x1d3d7c(0x182))/0x6+-parseInt(_0x1d3d7c(0x1c9))/0x7+-parseInt(_0x1d3d7c(0x1cb))/0x8+parseInt(_0x1d3d7c(0x1a2))/0x9*(parseInt(_0x1d3d7c(0x1a6))/0xa);if(_0x2e465f===_0x4051f2)break;else _0x2584fb['push'](_0x2584fb['shift']());}catch(_0x2cbbfc){_0x2584fb['push'](_0x2584fb['shift']());}}}(_0x8a75,0x81391));import{ContextPlugin as _0x3179fb}from'ckeditor5/src/core.js';import{AIConnector as _0x3f731b}from'../aicore/aiconnector.js';import{AIChatController as _0x48b8f5}from'../aichat/aichatcontroller.js';import{AITabs as _0x4f01ec}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x417f68}from'./aichathistoryui.js';function _0x8a75(){const _0x1dee3b=['get','updateItems','AI_CHAT_HISTORY_PIN_ACTION','plugins','updateItemLoadingState','updates','setLoadingSkeleton','60996pxmzsH','activateTab','isPremiumPlugin','getDate','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getGroupId','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LATER','activateTab:history','AIChatHistoryController','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','removeHistoryItem','map','removeConversation','getMonth','resize','showError','AI_CHAT_HISTORY_CATEGORY_PINNED','push','handleRemovedConversation','1608MwCxVY','18NqxRLU','resizedTabs','itemUpdated','4332kyDFyh','11869540betuLy','pin','operation','remove','pluginName','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','unpin','_aiConnector','_handleTogglePin','_handleSelectConversation','loadConversation','items','editConversationTitle','view','_getCategorizedItems','getFullYear','requires','activeConversation','_handleEditTitle','listenTo','_showConversationHistory','21NqBaiv','itemsLoaded','pinned','_handleHistoryErrorUI','change:activeConversation','setIsMaximized','history','locale','removeItem','updateItemPinned','createdAt','setDate','updateItemTitle','AI_CHAT_UNTITLED_CONVERSATION','5975564OpzFHp','itemRemoved','856480MpfwVm','AI_CHAT_HISTORY_CATEGORY_TODAY','_setItemLoading','_clearItemLoading','loadItems','itemId','AI_CHAT_HISTORY_ERROR_GENERIC','409170YqEfZo','AI_CHAT_HISTORY_UNPIN_ACTION','error','getItem','chat','getItems','_aiChatHistoryUi','_generateErrorMessage','openChat','selectConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','rename','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','title','_setIsMaximized','context','_handleRemove','isOfficialPlugin','init','length','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','resizeTabs','4452570iIrRsa','_updateHistoryItemsUI','toLocaleDateString','_aiChatController'];_0x8a75=function(){return _0x1dee3b;};return _0x8a75();}import{AIChatHistoryConversations as _0x19bf74}from'./model/aichathistoryconversations.js';import{getTranslation as _0x5a4a14}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x3179fb{[_0x31be98(0x1ad)];[_0x31be98(0x172)];[_0x31be98(0x185)];static get[_0x31be98(0x1b6)](){return[_0x3f731b,_0x48b8f5,_0x417f68,_0x4f01ec];}static get[_0x31be98(0x1aa)](){const _0x5a31af=_0x31be98;return _0x5a31af(0x196);}static get[_0x31be98(0x17d)](){return!0x0;}static get[_0x31be98(0x18f)](){return!0x0;}[_0x31be98(0x17e)](){const _0x3bee1a=_0x31be98;this[_0x3bee1a(0x1ad)]=this[_0x3bee1a(0x17b)][_0x3bee1a(0x189)][_0x3bee1a(0x186)](_0x3f731b),this[_0x3bee1a(0x172)]=this[_0x3bee1a(0x17b)][_0x3bee1a(0x189)][_0x3bee1a(0x186)](_0x417f68),this[_0x3bee1a(0x185)]=this[_0x3bee1a(0x17b)][_0x3bee1a(0x189)][_0x3bee1a(0x186)](_0x48b8f5);const _0xd503c7=this[_0x3bee1a(0x17b)][_0x3bee1a(0x189)][_0x3bee1a(0x186)](_0x4f01ec);try{const _0x11daa5=this[_0x3bee1a(0x185)][_0x3bee1a(0x192)]();this[_0x3bee1a(0x1c1)]=new _0x19bf74({'connector':this[_0x3bee1a(0x1ad)],'group':_0x11daa5}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x19a),(_0x5fef25,_0x2f48ee)=>{const _0x6c3966=_0x3bee1a;this[_0x6c3966(0x167)](_0x2f48ee['id'],_0x6c3966(0x1a9)),this[_0x6c3966(0x17c)](_0x2f48ee['id']);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x1b2),(_0x21590a,_0x206ef8)=>{const _0x47fdce=_0x3bee1a;this[_0x47fdce(0x167)](_0x206ef8['id'],_0x47fdce(0x177)),this[_0x47fdce(0x1b8)](_0x206ef8['id'],_0x206ef8[_0x47fdce(0x179)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x1c1)],_0x3bee1a(0x1a4),(_0x1bc0f0,_0x1a8312)=>{const _0x368869=_0x3bee1a;void 0x0!==_0x1a8312[_0x368869(0x18b)][_0x368869(0x179)]&&this[_0x368869(0x172)][_0x368869(0x1c7)](_0x1a8312[_0x368869(0x16a)],_0x1a8312[_0x368869(0x18b)][_0x368869(0x179)]),void 0x0!==_0x1a8312[_0x368869(0x18b)][_0x368869(0x1bd)]&&this[_0x368869(0x183)](),this[_0x368869(0x168)](_0x1a8312[_0x368869(0x16a)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x1c1)],_0x3bee1a(0x1ca),(_0x24ea5b,_0x3506a7)=>{const _0x15484b=_0x3bee1a;this[_0x15484b(0x185)][_0x15484b(0x1a0)](_0x3506a7[_0x15484b(0x16a)]),this[_0x15484b(0x172)][_0x15484b(0x198)](_0x3506a7[_0x15484b(0x16a)]),this[_0x15484b(0x168)](_0x3506a7[_0x15484b(0x16a)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x1c1)],_0x3bee1a(0x1bc),()=>{const _0x495851=_0x3bee1a;this[_0x495851(0x183)]();}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x1c1)],_0x3bee1a(0x16e),(_0x41b838,_0x1f3e7c)=>{const _0xffb383=_0x3bee1a;this[_0xffb383(0x1be)](_0x1f3e7c[_0xffb383(0x16e)],_0x1f3e7c[_0xffb383(0x1a8)],_0x1f3e7c[_0xffb383(0x16a)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x175),(_0x4c068e,_0x2e0e22)=>{const _0x478812=_0x3bee1a;this[_0x478812(0x1af)](_0x2e0e22['id']);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x193),(_0x4955cc,_0x3b58dc)=>{const _0x180922=_0x3bee1a,_0x4ed9bd=_0x3b58dc[_0x180922(0x1bd)]?_0x180922(0x1a7):_0x180922(0x1ac);this[_0x180922(0x167)](_0x3b58dc['id'],_0x4ed9bd),this[_0x180922(0x1ae)](_0x3b58dc['id'],_0x3b58dc[_0x180922(0x1bd)]);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x174),()=>{const _0x1f3d25=_0x3bee1a;_0xd503c7[_0x1f3d25(0x1b3)][_0x1f3d25(0x18e)](_0x1f3d25(0x170));}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x185)],_0x3bee1a(0x1bf),()=>{const _0x556891=_0x3bee1a;this[_0x556891(0x183)]();}),_0xd503c7[_0x3bee1a(0x1b3)]['on'](_0x3bee1a(0x195),()=>{const _0x1f3b59=_0x3bee1a;this[_0x1f3b59(0x1ba)]();}),this[_0x3bee1a(0x1b9)](_0xd503c7,_0x3bee1a(0x1a3),(_0x10089b,_0x1335c8)=>{const _0x3cab86=_0x3bee1a;this[_0x3cab86(0x17a)](_0x1335c8);}),this[_0x3bee1a(0x1b9)](this[_0x3bee1a(0x172)],_0x3bee1a(0x181),()=>{const _0x1c28e5=_0x3bee1a;_0xd503c7[_0x1c28e5(0x19c)]();});}catch(_0x13d77d){this[_0x3bee1a(0x1be)](_0x13d77d,_0x3bee1a(0x17e));}}async[_0x31be98(0x1b8)](_0x5ab3fa,_0x4857d9){const _0x57aa3a=_0x31be98;await this[_0x57aa3a(0x1c1)][_0x57aa3a(0x1c7)](_0x5ab3fa,_0x4857d9);}async[_0x31be98(0x1ae)](_0x18ab47,_0x4d35eb){const _0x4f6509=_0x31be98;await this[_0x4f6509(0x1c1)][_0x4f6509(0x1c4)](_0x18ab47,_0x4d35eb);}async[_0x31be98(0x17c)](_0x4f931b){const _0x28695f=_0x31be98;await this[_0x28695f(0x1c1)][_0x28695f(0x1c3)](_0x4f931b);}async[_0x31be98(0x1af)](_0x4464e8){const _0x3dc358=_0x31be98;await this[_0x3dc358(0x185)][_0x3dc358(0x1b0)](_0x4464e8);}async[_0x31be98(0x1ba)](){const _0xbeaa6d=_0x31be98;this[_0xbeaa6d(0x172)][_0xbeaa6d(0x19d)](''),this[_0xbeaa6d(0x172)][_0xbeaa6d(0x18c)](!0x0),await this[_0xbeaa6d(0x1c1)][_0xbeaa6d(0x17e)](),this[_0xbeaa6d(0x172)][_0xbeaa6d(0x18c)](!0x1);}[_0x31be98(0x183)](){const _0x1aed44=_0x31be98,_0x4262b8=this[_0x1aed44(0x185)][_0x1aed44(0x1b7)]?.['id'],_0x9348f4=this[_0x1aed44(0x1b4)]()[_0x1aed44(0x199)](_0x1908fd=>({'title':_0x1908fd[_0x1aed44(0x179)],'items':_0x1908fd[_0x1aed44(0x1b1)][_0x1aed44(0x199)](_0x3335db=>({'id':_0x3335db['id'],'title':_0x3335db[_0x1aed44(0x179)]||_0x5a4a14(this[_0x1aed44(0x17b)][_0x1aed44(0x1c2)],_0x1aed44(0x1c8)),'createdAt':new Date(_0x3335db[_0x1aed44(0x1c5)])[_0x1aed44(0x184)](),'active':_0x3335db['id']===_0x4262b8,'pinned':_0x3335db[_0x1aed44(0x1bd)]}))}));this[_0x1aed44(0x172)][_0x1aed44(0x187)](_0x9348f4);}[_0x31be98(0x167)](_0x362343,_0x2ae69d){const _0x24bc39=_0x31be98;this[_0x24bc39(0x172)][_0x24bc39(0x18a)](_0x362343,_0x2ae69d,!0x0);}[_0x31be98(0x168)](_0x57e351){const _0x54b0a5=_0x31be98;this[_0x54b0a5(0x172)][_0x54b0a5(0x18a)](_0x57e351,null,!0x1);}[_0x31be98(0x1be)](_0x249b52,_0x592977,_0x443f5d){const _0x4648c3=_0x31be98,_0x378511=this[_0x4648c3(0x173)](_0x592977,_0x443f5d);this[_0x4648c3(0x172)][_0x4648c3(0x19d)](_0x378511),_0x443f5d&&this[_0x4648c3(0x168)](_0x443f5d),this[_0x4648c3(0x172)][_0x4648c3(0x18c)](!0x1);}[_0x31be98(0x173)](_0x460646,_0x56ac95){const _0x4a9f0e=_0x31be98,_0x118f55=_0x56ac95?this[_0x4a9f0e(0x1c1)][_0x4a9f0e(0x16f)](_0x56ac95):null,_0xa2b249=_0x118f55?.[_0x4a9f0e(0x179)]||_0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x1c8));switch(_0x460646){case _0x4a9f0e(0x1c7):return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x180),_0xa2b249);case _0x4a9f0e(0x1c4):{const _0x5ea441=_0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x118f55?.[_0x4a9f0e(0x1bd)]?_0x4a9f0e(0x16d):_0x4a9f0e(0x188));return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x1ab),[_0x5ea441,_0xa2b249]);}case _0x4a9f0e(0x1c3):return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x191),_0xa2b249);case _0x4a9f0e(0x17e):case _0x4a9f0e(0x169):return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x176));default:return _0x5a4a14(this[_0x4a9f0e(0x17b)][_0x4a9f0e(0x1c2)],_0x4a9f0e(0x16b));}}[_0x31be98(0x1b4)](){const _0x2f4583=_0x31be98,_0x39b1bd=new Date(),_0x5c78e8=new Date(_0x39b1bd[_0x2f4583(0x1b5)](),_0x39b1bd[_0x2f4583(0x19b)](),_0x39b1bd[_0x2f4583(0x190)]()),_0x20d8b3=new Date(_0x5c78e8);_0x20d8b3[_0x2f4583(0x1c6)](_0x20d8b3[_0x2f4583(0x190)]()-0x1);const _0x4f41fa=new Date(_0x5c78e8);_0x4f41fa[_0x2f4583(0x1c6)](_0x4f41fa[_0x2f4583(0x190)]()-0xe);const _0x50528c=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'pinned':!0x0}),_0x324228=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'from':_0x5c78e8,'to':_0x5c78e8}),_0x3655cd=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'from':_0x20d8b3,'to':_0x20d8b3}),_0x24f7ca=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'from':_0x4f41fa,'to':_0x20d8b3}),_0x3e2059=this[_0x2f4583(0x1c1)][_0x2f4583(0x171)]({'to':_0x4f41fa}),_0x498a12=[];return _0x50528c[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x19e)),'items':_0x50528c}),_0x324228[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x166)),'items':_0x324228}),_0x3655cd[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x197)),'items':_0x3655cd}),_0x24f7ca[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x178)),'items':_0x24f7ca}),_0x3e2059[_0x2f4583(0x17f)]>0x0&&_0x498a12[_0x2f4583(0x19f)]({'title':_0x5a4a14(this[_0x2f4583(0x17b)][_0x2f4583(0x1c2)],_0x2f4583(0x194)),'items':_0x3e2059}),_0x498a12;}[_0x31be98(0x17a)](_0x217acf){const _0x3d438c=_0x31be98;this[_0x3d438c(0x172)][_0x3d438c(0x1c0)](_0x217acf);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20be21=_0x9165;(function(_0x12b255,_0x123f13){const _0x3f0ad2=_0x9165,_0x1b6ab4=_0x12b255();while(!![]){try{const _0x33d95a=-parseInt(_0x3f0ad2(0x1cd))/0x1+-parseInt(_0x3f0ad2(0x1ec))/0x2*(-parseInt(_0x3f0ad2(0x1eb))/0x3)+parseInt(_0x3f0ad2(0x1cc))/0x4+-parseInt(_0x3f0ad2(0x1ed))/0x5+parseInt(_0x3f0ad2(0x1d9))/0x6*(-parseInt(_0x3f0ad2(0x1dc))/0x7)+parseInt(_0x3f0ad2(0x1ee))/0x8*(parseInt(_0x3f0ad2(0x1db))/0x9)+-parseInt(_0x3f0ad2(0x1e2))/0xa*(parseInt(_0x3f0ad2(0x1d6))/0xb);if(_0x33d95a===_0x123f13)break;else _0x1b6ab4['push'](_0x1b6ab4['shift']());}catch(_0x140420){_0x1b6ab4['push'](_0x1b6ab4['shift']());}}}(_0x28d7,0x30491));import{ContextPlugin as _0x3df890}from'ckeditor5/src/core.js';import{AITabs as _0x3814d7}from'../aitabs/aitabs.js';import{IconAIHistory as _0x93400a}from'ckeditor5/src/icons.js';function _0x9165(_0x47b271,_0x27e3b5){const _0x28d747=_0x28d7();return _0x9165=function(_0x916566,_0x1b6c60){_0x916566=_0x916566-0x1c4;let _0x477633=_0x28d747[_0x916566];return _0x477633;},_0x9165(_0x47b271,_0x27e3b5);}import{AIChatHistoryView as _0x5b720a}from'./ui/aichathistoryview.js';import{getTranslation as _0x2b5ac3}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x20be21(0x1c5),_0x20be21(0x1de),_0x20be21(0x1d3),_0x20be21(0x1f2),_0x20be21(0x1c6),_0x20be21(0x1da),_0x20be21(0x1c8)];function _0x28d7(){const _0x2b9366=['history','removeHistoryItem','setIsMaximized','delegate','AIChatHistoryUI','editConversationTitle','AITabs','updateItemLoadingState','117667xSVVle','setLoadingSkeleton','isPremiumPlugin','2610XaSUyt','openChat','1103085uBbifh','574WbuvRU','context','removeConversation','showResizeButton','isLoading','AI_CHAT_HISTORY_HEADING','10npOYvy','_historyView','updateHistoryItemsWithCategories','showError','updateItems','get','requires','locale','isMaximized','72942TMamsG','24aYzPJd','667455WthwDD','8xrcJEq','hideError','pluginName','addTab','setConversationPinned','errorMessage','showConversationHistory','selectConversation','updateItemTitle','resizeTabs','view','plugins','isOfficialPlugin','617388AmwUwJ','191045OvVNrL'];_0x28d7=function(){return _0x2b9366;};return _0x28d7();}export class AIChatHistoryUI extends _0x3df890{static get[_0x20be21(0x1e8)](){return[_0x3814d7];}[_0x20be21(0x1e3)];static get[_0x20be21(0x1f0)](){const _0x391448=_0x20be21;return _0x391448(0x1d2);}static get[_0x20be21(0x1cb)](){return!0x0;}static get[_0x20be21(0x1d8)](){return!0x0;}constructor(_0x105ee2){const _0x33ebb0=_0x20be21;super(_0x105ee2);const _0x5e273e=this[_0x33ebb0(0x1dd)][_0x33ebb0(0x1ca)][_0x33ebb0(0x1e7)](_0x33ebb0(0x1d4));this[_0x33ebb0(0x1e3)]=new _0x5b720a(this[_0x33ebb0(0x1dd)][_0x33ebb0(0x1e9)],_0x5e273e[_0x33ebb0(0x1df)]),this[_0x33ebb0(0x1e3)][_0x33ebb0(0x1d1)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x5e273e[_0x33ebb0(0x1c9)][_0x33ebb0(0x1f1)]({'id':_0x33ebb0(0x1ce),'buttonLabel':_0x2b5ac3(this[_0x33ebb0(0x1dd)][_0x33ebb0(0x1e9)],_0x33ebb0(0x1e1)),'buttonIcon':_0x93400a,'order':0x0,'content':this[_0x33ebb0(0x1e3)]});}[_0x20be21(0x1cf)](_0x2112a5){const _0x48d34e=_0x20be21;this[_0x48d34e(0x1e3)][_0x48d34e(0x1cf)](_0x2112a5);}[_0x20be21(0x1e6)](_0x164010){const _0xb76bff=_0x20be21;this[_0xb76bff(0x1e3)][_0xb76bff(0x1e4)](_0x164010);}[_0x20be21(0x1c7)](_0x2689f6,_0x5323cc){const _0x72ec9c=_0x20be21;this[_0x72ec9c(0x1e3)][_0x72ec9c(0x1c7)](_0x2689f6,_0x5323cc);}[_0x20be21(0x1d5)](_0x232dde,_0x4ab453,_0x4a6313){const _0x1b84a9=_0x20be21;this[_0x1b84a9(0x1e3)][_0x1b84a9(0x1d5)](_0x232dde,_0x4ab453,_0x4a6313);}[_0x20be21(0x1d7)](_0x177288){const _0x316d82=_0x20be21;this[_0x316d82(0x1e3)][_0x316d82(0x1e0)]=_0x177288;}[_0x20be21(0x1e5)](_0x27859d){const _0x560b74=_0x20be21;this[_0x560b74(0x1e3)][_0x560b74(0x1c4)]=_0x27859d;}[_0x20be21(0x1ef)](){const _0x53e9f0=_0x20be21;this[_0x53e9f0(0x1e3)][_0x53e9f0(0x1c4)]='';}[_0x20be21(0x1d0)](_0x45546e){const _0x4ebefc=_0x20be21;this[_0x4ebefc(0x1e3)][_0x4ebefc(0x1ea)]=_0x45546e;}}
23
+ const _0x4c85e0=_0x424c;(function(_0x11754e,_0x5f52ff){const _0xe14779=_0x424c,_0x33030a=_0x11754e();while(!![]){try{const _0x3f9bbb=-parseInt(_0xe14779(0x20d))/0x1*(-parseInt(_0xe14779(0x21a))/0x2)+-parseInt(_0xe14779(0x21e))/0x3+-parseInt(_0xe14779(0x218))/0x4*(parseInt(_0xe14779(0x20b))/0x5)+-parseInt(_0xe14779(0x220))/0x6*(parseInt(_0xe14779(0x20e))/0x7)+parseInt(_0xe14779(0x209))/0x8+parseInt(_0xe14779(0x1f2))/0x9+-parseInt(_0xe14779(0x1f7))/0xa*(parseInt(_0xe14779(0x205))/0xb);if(_0x3f9bbb===_0x5f52ff)break;else _0x33030a['push'](_0x33030a['shift']());}catch(_0x3c3b18){_0x33030a['push'](_0x33030a['shift']());}}}(_0x3d77,0x9b5e8));import{ContextPlugin as _0x2ae290}from'ckeditor5/src/core.js';import{AITabs as _0x2b377c}from'../aitabs/aitabs.js';import{IconAIHistory as _0x5a7897}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x326122}from'./ui/aichathistoryview.js';import{getTranslation as _0xfbcbff}from'../aicore/utils/common-translations.js';function _0x3d77(){const _0x41a364=['updateHistoryItemsWithCategories','context','1800425qtvOHR','showError','isOfficialPlugin','addTab','10156360WEEHTj','plugins','2489020gtlUxU','setConversationPinned','89115ShRHiU','3982762Zevobj','errorMessage','hideError','isLoading','setIsMaximized','updateItemLoadingState','resizeTabs','openChat','AITabs','locale','8aphZuA','showConversationHistory','14GYkapl','showResizeButton','pluginName','requires','2185713jWnjDw','isPremiumPlugin','6LJAhQx','10798758HrikXG','updateItems','isMaximized','setLoadingSkeleton','history','10KlKzkE','_historyView','AI_CHAT_HISTORY_HEADING','view','updateItemTitle','removeConversation','removeHistoryItem','delegate','selectConversation','AIChatHistoryUI','get','editConversationTitle'];_0x3d77=function(){return _0x41a364;};return _0x3d77();}function _0x424c(_0xc1a894,_0x4b9699){const _0x3d77af=_0x3d77();return _0x424c=function(_0x424cb4,_0x262765){_0x424cb4=_0x424cb4-0x1f2;let _0x5eb7b2=_0x3d77af[_0x424cb4];return _0x5eb7b2;},_0x424c(_0xc1a894,_0x4b9699);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x4c85e0(0x219),_0x4c85e0(0x1fc),_0x4c85e0(0x202),_0x4c85e0(0x20c),_0x4c85e0(0x1ff),_0x4c85e0(0x215),_0x4c85e0(0x214)];export class AIChatHistoryUI extends _0x2ae290{static get[_0x4c85e0(0x21d)](){return[_0x2b377c];}[_0x4c85e0(0x1f8)];static get[_0x4c85e0(0x21c)](){const _0x1f2166=_0x4c85e0;return _0x1f2166(0x200);}static get[_0x4c85e0(0x207)](){return!0x0;}static get[_0x4c85e0(0x21f)](){return!0x0;}constructor(_0x4755c5){const _0x43203f=_0x4c85e0;super(_0x4755c5);const _0x17f095=this[_0x43203f(0x204)][_0x43203f(0x20a)][_0x43203f(0x201)](_0x43203f(0x216));this[_0x43203f(0x1f8)]=new _0x326122(this[_0x43203f(0x204)][_0x43203f(0x217)],_0x17f095[_0x43203f(0x21b)]),this[_0x43203f(0x1f8)][_0x43203f(0x1fe)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x17f095[_0x43203f(0x1fa)][_0x43203f(0x208)]({'id':_0x43203f(0x1f6),'buttonLabel':_0xfbcbff(this[_0x43203f(0x204)][_0x43203f(0x217)],_0x43203f(0x1f9)),'buttonIcon':_0x5a7897,'order':0x0,'content':this[_0x43203f(0x1f8)]});}[_0x4c85e0(0x1fd)](_0x318ae5){const _0x1a1d20=_0x4c85e0;this[_0x1a1d20(0x1f8)][_0x1a1d20(0x1fd)](_0x318ae5);}[_0x4c85e0(0x1f3)](_0x157c02){const _0xbd03ae=_0x4c85e0;this[_0xbd03ae(0x1f8)][_0xbd03ae(0x203)](_0x157c02);}[_0x4c85e0(0x1fb)](_0x1c20dc,_0x31b96b){const _0x53efe7=_0x4c85e0;this[_0x53efe7(0x1f8)][_0x53efe7(0x1fb)](_0x1c20dc,_0x31b96b);}[_0x4c85e0(0x213)](_0xc3adc,_0x163981,_0x4c83ea){const _0x3f6d6c=_0x4c85e0;this[_0x3f6d6c(0x1f8)][_0x3f6d6c(0x213)](_0xc3adc,_0x163981,_0x4c83ea);}[_0x4c85e0(0x1f5)](_0x560c1b){const _0x11c084=_0x4c85e0;this[_0x11c084(0x1f8)][_0x11c084(0x211)]=_0x560c1b;}[_0x4c85e0(0x206)](_0x32dde3){const _0x2849eb=_0x4c85e0;this[_0x2849eb(0x1f8)][_0x2849eb(0x20f)]=_0x32dde3;}[_0x4c85e0(0x210)](){const _0x5e01fd=_0x4c85e0;this[_0x5e01fd(0x1f8)][_0x5e01fd(0x20f)]='';}[_0x4c85e0(0x212)](_0x189081){const _0x56fc8f=_0x4c85e0;this[_0x56fc8f(0x1f8)][_0x56fc8f(0x1f4)]=_0x189081;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x743778=_0x379e;function _0x450f(){const _0x30baa2=['3PIZzPe','group','createdAt','init','getItem','error','connector','splice','itemRemoved','removeItem','getMonth','updateItemTitle','getResult','itemUpdated','findIndex','10266510RptUbL','from','getConversations','find','fire','430378EbRNPV','filter','1361800WDoNOs','map','fetchConversations','items','addItem','getTime','pinned','getItems','itemsLoaded','deleteConversation','3605686ydUWsg','425260QlOwyG','updatePinned','loadItems','126nBFmyT','updateTitle','8VUiFCP','getDate','updateItemPinned','execute','7665AZflOx','updateConversation','getFullYear','5977503FgCwur','push'];_0x450f=function(){return _0x30baa2;};return _0x450f();}(function(_0x33154b,_0x1645ab){const _0x2537d4=_0x379e,_0x5195b0=_0x33154b();while(!![]){try{const _0x28aa3b=parseInt(_0x2537d4(0x95))/0x1+parseInt(_0x2537d4(0xb7))/0x2*(-parseInt(_0x2537d4(0xa3))/0x3)+parseInt(_0x2537d4(0xb9))/0x4+-parseInt(_0x2537d4(0x9e))/0x5*(-parseInt(_0x2537d4(0x98))/0x6)+-parseInt(_0x2537d4(0x94))/0x7+-parseInt(_0x2537d4(0x9a))/0x8*(parseInt(_0x2537d4(0xa1))/0x9)+parseInt(_0x2537d4(0xb2))/0xa;if(_0x28aa3b===_0x1645ab)break;else _0x5195b0['push'](_0x5195b0['shift']());}catch(_0x113366){_0x5195b0['push'](_0x5195b0['shift']());}}}(_0x450f,0x69014));import{EmitterMixin as _0x2cb932}from'ckeditor5/src/utils.js';function _0x379e(_0x302bbe,_0x5b5cc9){const _0x450fe6=_0x450f();return _0x379e=function(_0x379eef,_0x3d892f){_0x379eef=_0x379eef-0x8f;let _0x4ad2f9=_0x450fe6[_0x379eef];return _0x4ad2f9;},_0x379e(_0x302bbe,_0x5b5cc9);}import{AIChatHistoryItem as _0x5dbf8}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x2cb932(){[_0x743778(0xbc)]=[];[_0x743778(0xa9)];[_0x743778(0xa4)];constructor({connector:_0x51573b,group:_0x312938}){const _0x5b73c0=_0x743778;super(),this[_0x5b73c0(0xa9)]=_0x51573b,this[_0x5b73c0(0xa4)]=_0x312938;}async[_0x743778(0xa6)](){const _0x49f46f=_0x743778;try{const _0x40d7d3=this[_0x49f46f(0xa9)][_0x49f46f(0xbb)](this[_0x49f46f(0xa4)]),_0x1b6e8a=await _0x40d7d3[_0x49f46f(0xb4)]();this[_0x49f46f(0x97)](_0x1b6e8a);}catch(_0x138536){this[_0x49f46f(0xb6)](_0x49f46f(0xa8),{'error':_0x138536,'operation':_0x49f46f(0xa6)});}}[_0x743778(0xbd)](_0x16b823){const _0x4fc9fe=_0x743778;this[_0x4fc9fe(0xbc)][_0x4fc9fe(0xa2)](_0x16b823);}async[_0x743778(0xac)](_0x1d67dd){const _0x1efd65=_0x743778,_0x10d292=this[_0x1efd65(0xbc)][_0x1efd65(0xb1)](_0x1b5a1b=>_0x1b5a1b['id']===_0x1d67dd);if(-0x1===_0x10d292)return!0x1;try{return await this[_0x1efd65(0xa9)][_0x1efd65(0x93)](_0x1d67dd)[_0x1efd65(0x9d)](),this[_0x1efd65(0xbc)][_0x1efd65(0xaa)](_0x10d292,0x1),this[_0x1efd65(0xb6)](_0x1efd65(0xab),{'itemId':_0x1d67dd}),!0x0;}catch(_0x661ee1){return this[_0x1efd65(0xb6)](_0x1efd65(0xa8),{'error':_0x661ee1,'operation':_0x1efd65(0xac),'itemId':_0x1d67dd}),!0x1;}}[_0x743778(0xa7)](_0x48f1d9){const _0x2bf334=_0x743778;return this[_0x2bf334(0xbc)][_0x2bf334(0xb5)](_0x4f1d46=>_0x4f1d46['id']===_0x48f1d9);}async[_0x743778(0xae)](_0x114dea,_0x4082a0){const _0x5b7054=_0x743778,_0x21ca22=this[_0x5b7054(0xa7)](_0x114dea);if(!_0x21ca22)return!0x1;try{return await this[_0x5b7054(0xa9)][_0x5b7054(0x9f)](_0x114dea,{'title':_0x4082a0})[_0x5b7054(0xaf)](),_0x21ca22[_0x5b7054(0x99)](_0x4082a0),this[_0x5b7054(0xb6)](_0x5b7054(0xb0),{'itemId':_0x114dea,'updates':{'title':_0x4082a0}}),!0x0;}catch(_0x12cf54){return this[_0x5b7054(0xb6)](_0x5b7054(0xa8),{'error':_0x12cf54,'operation':_0x5b7054(0xae),'itemId':_0x114dea}),!0x1;}}async[_0x743778(0x9c)](_0x326a7c,_0x4213db){const _0x39d6c8=_0x743778,_0x4210b3=this[_0x39d6c8(0xa7)](_0x326a7c);if(!_0x4210b3)return!0x1;try{return await this[_0x39d6c8(0xa9)][_0x39d6c8(0x9f)](_0x326a7c,{'pinned':_0x4213db})[_0x39d6c8(0xaf)](),_0x4210b3[_0x39d6c8(0x96)](_0x4213db),this[_0x39d6c8(0xb6)](_0x39d6c8(0xb0),{'itemId':_0x326a7c,'updates':{'pinned':_0x4213db}}),!0x0;}catch(_0x823be6){return this[_0x39d6c8(0xb6)](_0x39d6c8(0xa8),{'error':_0x823be6,'operation':_0x39d6c8(0x9c),'itemId':_0x326a7c}),!0x1;}}[_0x743778(0x97)](_0x2ccc3f){const _0x29bd92=_0x743778;try{this[_0x29bd92(0xbc)]=[],_0x2ccc3f[_0x29bd92(0xba)](_0x5a733b=>{const _0x65ab28=_0x29bd92;this[_0x65ab28(0xbd)](new _0x5dbf8(_0x5a733b));}),this[_0x29bd92(0xb6)](_0x29bd92(0x92),{'items':[...this[_0x29bd92(0xbc)]]});}catch(_0xca011c){this[_0x29bd92(0xb6)](_0x29bd92(0xa8),{'error':_0xca011c,'operation':_0x29bd92(0x97)});}}[_0x743778(0x91)](_0x311227={}){const _0x2893a3=_0x743778,_0x434a24=void 0x0!==_0x311227[_0x2893a3(0x90)]&&_0x311227[_0x2893a3(0x90)],_0x52a820=_0x311227[_0x2893a3(0xb3)]?new Date(_0x311227[_0x2893a3(0xb3)][_0x2893a3(0xa0)](),_0x311227[_0x2893a3(0xb3)][_0x2893a3(0xad)](),_0x311227[_0x2893a3(0xb3)][_0x2893a3(0x9b)]()):null,_0x1e6068=_0x311227['to']?new Date(_0x311227['to'][_0x2893a3(0xa0)](),_0x311227['to'][_0x2893a3(0xad)](),_0x311227['to'][_0x2893a3(0x9b)]()):null;return this[_0x2893a3(0xbc)][_0x2893a3(0xb8)](_0x520742=>{const _0x17202e=_0x2893a3;if(_0x520742[_0x17202e(0x90)]!==_0x434a24)return!0x1;if(_0x1e6068){const _0x356ed0=new Date(_0x520742[_0x17202e(0xa5)][_0x17202e(0xa0)](),_0x520742[_0x17202e(0xa5)][_0x17202e(0xad)](),_0x520742[_0x17202e(0xa5)][_0x17202e(0x9b)]());return _0x52a820?_0x52a820[_0x17202e(0x8f)]()===_0x1e6068[_0x17202e(0x8f)]()?_0x356ed0[_0x17202e(0x8f)]()===_0x52a820[_0x17202e(0x8f)]():_0x356ed0<_0x1e6068&&_0x356ed0>=_0x52a820:_0x356ed0<_0x1e6068;}return!0x0;});}}
23
+ function _0x3f42(_0x3131f1,_0x4084c8){const _0x912a63=_0x912a();return _0x3f42=function(_0x3f428f,_0x28f8b7){_0x3f428f=_0x3f428f-0xa7;let _0x532516=_0x912a63[_0x3f428f];return _0x532516;},_0x3f42(_0x3131f1,_0x4084c8);}function _0x912a(){const _0x357a56=['1114281kSuHbu','getTime','updateTitle','items','1985480bbhFew','itemRemoved','8585184IVnBDj','init','loadItems','updatePinned','updateConversation','pinned','getDate','removeItem','781290eTbVbN','getMonth','findIndex','find','222141xBzMMB','updateItemPinned','1990KijCWU','fetchConversations','createdAt','getFullYear','285933QIKnen','map','execute','connector','itemUpdated','from','addItem','updateItemTitle','group','getItem','56ZgbulA','85032VjSPyG','push','splice','fire','6AdAnmc','itemsLoaded','filter','getItems','getConversations','error','deleteConversation','getResult'];_0x912a=function(){return _0x357a56;};return _0x912a();}const _0x236023=_0x3f42;(function(_0x151e28,_0x1e663f){const _0xa07682=_0x3f42,_0x805f34=_0x151e28();while(!![]){try{const _0x376abd=-parseInt(_0xa07682(0xb9))/0x1+-parseInt(_0xa07682(0xd4))/0x2+-parseInt(_0xa07682(0xb3))/0x3*(parseInt(_0xa07682(0xc3))/0x4)+parseInt(_0xa07682(0xaf))/0x5+-parseInt(_0xa07682(0xc8))/0x6*(parseInt(_0xa07682(0xd0))/0x7)+parseInt(_0xa07682(0xa7))/0x8+-parseInt(_0xa07682(0xc4))/0x9*(-parseInt(_0xa07682(0xb5))/0xa);if(_0x376abd===_0x1e663f)break;else _0x805f34['push'](_0x805f34['shift']());}catch(_0x195bc8){_0x805f34['push'](_0x805f34['shift']());}}}(_0x912a,0x9b0a4));import{EmitterMixin as _0x488d3d}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0xd6cb38}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x488d3d(){[_0x236023(0xd3)]=[];[_0x236023(0xbc)];[_0x236023(0xc1)];constructor({connector:_0x50d299,group:_0x208ac1}){const _0x3b88a5=_0x236023;super(),this[_0x3b88a5(0xbc)]=_0x50d299,this[_0x3b88a5(0xc1)]=_0x208ac1;}async[_0x236023(0xa8)](){const _0x57194c=_0x236023;try{const _0x494168=this[_0x57194c(0xbc)][_0x57194c(0xb6)](this[_0x57194c(0xc1)]),_0x3fa533=await _0x494168[_0x57194c(0xcc)]();this[_0x57194c(0xa9)](_0x3fa533);}catch(_0x3939c0){this[_0x57194c(0xc7)](_0x57194c(0xcd),{'error':_0x3939c0,'operation':_0x57194c(0xa8)});}}[_0x236023(0xbf)](_0x15ac13){const _0x590a3c=_0x236023;this[_0x590a3c(0xd3)][_0x590a3c(0xc5)](_0x15ac13);}async[_0x236023(0xae)](_0x310733){const _0x1ca2c8=_0x236023,_0x2da222=this[_0x1ca2c8(0xd3)][_0x1ca2c8(0xb1)](_0x16dac6=>_0x16dac6['id']===_0x310733);if(-0x1===_0x2da222)return!0x1;try{return await this[_0x1ca2c8(0xbc)][_0x1ca2c8(0xce)](_0x310733)[_0x1ca2c8(0xbb)](),this[_0x1ca2c8(0xd3)][_0x1ca2c8(0xc6)](_0x2da222,0x1),this[_0x1ca2c8(0xc7)](_0x1ca2c8(0xd5),{'itemId':_0x310733}),!0x0;}catch(_0x31279f){return this[_0x1ca2c8(0xc7)](_0x1ca2c8(0xcd),{'error':_0x31279f,'operation':_0x1ca2c8(0xae),'itemId':_0x310733}),!0x1;}}[_0x236023(0xc2)](_0x20fb3e){const _0x1e8c84=_0x236023;return this[_0x1e8c84(0xd3)][_0x1e8c84(0xb2)](_0x57f7ec=>_0x57f7ec['id']===_0x20fb3e);}async[_0x236023(0xc0)](_0x188679,_0x3489b3){const _0x7efe74=_0x236023,_0x1ca332=this[_0x7efe74(0xc2)](_0x188679);if(!_0x1ca332)return!0x1;try{return await this[_0x7efe74(0xbc)][_0x7efe74(0xab)](_0x188679,{'title':_0x3489b3})[_0x7efe74(0xcf)](),_0x1ca332[_0x7efe74(0xd2)](_0x3489b3),this[_0x7efe74(0xc7)](_0x7efe74(0xbd),{'itemId':_0x188679,'updates':{'title':_0x3489b3}}),!0x0;}catch(_0x3461f0){return this[_0x7efe74(0xc7)](_0x7efe74(0xcd),{'error':_0x3461f0,'operation':_0x7efe74(0xc0),'itemId':_0x188679}),!0x1;}}async[_0x236023(0xb4)](_0x17110b,_0x36cf7a){const _0x363dfc=_0x236023,_0x15f9ab=this[_0x363dfc(0xc2)](_0x17110b);if(!_0x15f9ab)return!0x1;try{return await this[_0x363dfc(0xbc)][_0x363dfc(0xab)](_0x17110b,{'pinned':_0x36cf7a})[_0x363dfc(0xcf)](),_0x15f9ab[_0x363dfc(0xaa)](_0x36cf7a),this[_0x363dfc(0xc7)](_0x363dfc(0xbd),{'itemId':_0x17110b,'updates':{'pinned':_0x36cf7a}}),!0x0;}catch(_0x1fd03a){return this[_0x363dfc(0xc7)](_0x363dfc(0xcd),{'error':_0x1fd03a,'operation':_0x363dfc(0xb4),'itemId':_0x17110b}),!0x1;}}[_0x236023(0xa9)](_0x523a6b){const _0x17c7df=_0x236023;try{this[_0x17c7df(0xd3)]=[],_0x523a6b[_0x17c7df(0xba)](_0x380f26=>{const _0x327f3f=_0x17c7df;this[_0x327f3f(0xbf)](new _0xd6cb38(_0x380f26));}),this[_0x17c7df(0xc7)](_0x17c7df(0xc9),{'items':[...this[_0x17c7df(0xd3)]]});}catch(_0x189731){this[_0x17c7df(0xc7)](_0x17c7df(0xcd),{'error':_0x189731,'operation':_0x17c7df(0xa9)});}}[_0x236023(0xcb)](_0x487122={}){const _0x3b80b2=_0x236023,_0x1581fd=void 0x0!==_0x487122[_0x3b80b2(0xac)]&&_0x487122[_0x3b80b2(0xac)],_0x47f175=_0x487122[_0x3b80b2(0xbe)]?new Date(_0x487122[_0x3b80b2(0xbe)][_0x3b80b2(0xb8)](),_0x487122[_0x3b80b2(0xbe)][_0x3b80b2(0xb0)](),_0x487122[_0x3b80b2(0xbe)][_0x3b80b2(0xad)]()):null,_0xbc4cec=_0x487122['to']?new Date(_0x487122['to'][_0x3b80b2(0xb8)](),_0x487122['to'][_0x3b80b2(0xb0)](),_0x487122['to'][_0x3b80b2(0xad)]()):null;return this[_0x3b80b2(0xd3)][_0x3b80b2(0xca)](_0x158505=>{const _0x932e55=_0x3b80b2;if(_0x158505[_0x932e55(0xac)]!==_0x1581fd)return!0x1;if(_0xbc4cec){const _0x270040=new Date(_0x158505[_0x932e55(0xb7)][_0x932e55(0xb8)](),_0x158505[_0x932e55(0xb7)][_0x932e55(0xb0)](),_0x158505[_0x932e55(0xb7)][_0x932e55(0xad)]());return _0x47f175?_0x47f175[_0x932e55(0xd1)]()===_0xbc4cec[_0x932e55(0xd1)]()?_0x270040[_0x932e55(0xd1)]()===_0x47f175[_0x932e55(0xd1)]():_0x270040<_0xbc4cec&&_0x270040>=_0x47f175:_0x270040<_0xbc4cec;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3ac44b=_0x642e;(function(_0x74c218,_0x4f8436){var _0x3818af=_0x642e,_0x5612dc=_0x74c218();while(!![]){try{var _0x5abb58=-parseInt(_0x3818af(0x1a6))/0x1*(parseInt(_0x3818af(0x1b2))/0x2)+-parseInt(_0x3818af(0x1b0))/0x3*(parseInt(_0x3818af(0x1ac))/0x4)+-parseInt(_0x3818af(0x1af))/0x5*(-parseInt(_0x3818af(0x1a5))/0x6)+-parseInt(_0x3818af(0x1aa))/0x7+-parseInt(_0x3818af(0x1a9))/0x8*(-parseInt(_0x3818af(0x1a3))/0x9)+-parseInt(_0x3818af(0x1a7))/0xa+parseInt(_0x3818af(0x1a8))/0xb;if(_0x5abb58===_0x4f8436)break;else _0x5612dc['push'](_0x5612dc['shift']());}catch(_0x14f279){_0x5612dc['push'](_0x5612dc['shift']());}}}(_0x3401,0xd6a71));function _0x642e(_0x2efc4b,_0x3f1588){var _0x34014f=_0x3401();return _0x642e=function(_0x642ef4,_0x59950d){_0x642ef4=_0x642ef4-0x1a1;var _0x5f47e9=_0x34014f[_0x642ef4];return _0x5f47e9;},_0x642e(_0x2efc4b,_0x3f1588);}function _0x3401(){var _0x1ee117=['set','pinned','9EnAsDw','updateTitle','30264CMPgtl','280198zTSnvC','15203140nOctNa','43571528yWiCfE','1556816yFJIPE','1164842PxLsSW','updatePinned','4IgtTEs','createdAt','updatedAt','200zJrLZv','2852637dtKlnk','title','6sDGeYS'];_0x3401=function(){return _0x1ee117;};return _0x3401();}import{ObservableMixin as _0x25f442}from'ckeditor5/src/utils.js';import{escape as _0xb46242}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x25f442(){['id'];[_0x3ac44b(0x1ad)];constructor({id:_0x13c1a8,title:_0x17594f,createdAt:_0x430212,updatedAt:_0x5dae48,pinned:_0x5aff5a}){var _0x3618f3=_0x3ac44b;super(),this['id']=_0x13c1a8,this[_0x3618f3(0x1ad)]=new Date(_0x430212),this[_0x3618f3(0x1a1)](_0x3618f3(0x1b1),_0x17594f),this[_0x3618f3(0x1a1)](_0x3618f3(0x1ae),_0x5dae48?new Date(_0x5dae48):null),this[_0x3618f3(0x1a1)](_0x3618f3(0x1a2),_0x5aff5a||!0x1);}[_0x3ac44b(0x1a4)](_0x1df51b){var _0x4a0574=_0x3ac44b;this[_0x4a0574(0x1a1)](_0x4a0574(0x1b1),_0xb46242(_0x1df51b)),this[_0x4a0574(0x1ae)]=new Date();}[_0x3ac44b(0x1ab)](_0x502715){var _0x15591d=_0x3ac44b;this[_0x15591d(0x1a1)](_0x15591d(0x1a2),_0x502715),this[_0x15591d(0x1ae)]=new Date();}}
23
+ var _0x29d1b5=_0x415c;function _0x415c(_0xdac3fc,_0xa39204){var _0x3aba75=_0x3aba();return _0x415c=function(_0x415cf7,_0x4bb09a){_0x415cf7=_0x415cf7-0x1b5;var _0xd3794d=_0x3aba75[_0x415cf7];return _0xd3794d;},_0x415c(_0xdac3fc,_0xa39204);}function _0x3aba(){var _0x5a41d8=['pinned','575402gGGsck','5807096aVuNAS','updatedAt','8392520tNmcmB','3YKapdX','set','326778jsjQCu','2MKHvQv','title','createdAt','3240555hLNftF','9Ptdzqx','35wmtSsU','updateTitle','2774972LnRblg','13504513vdYiFO','updatePinned'];_0x3aba=function(){return _0x5a41d8;};return _0x3aba();}(function(_0x4bd273,_0x8bc02c){var _0xf1c045=_0x415c,_0x385916=_0x4bd273();while(!![]){try{var _0x28dee3=-parseInt(_0xf1c045(0x1c2))/0x1*(parseInt(_0xf1c045(0x1b7))/0x2)+-parseInt(_0xf1c045(0x1c6))/0x3*(parseInt(_0xf1c045(0x1be))/0x4)+parseInt(_0xf1c045(0x1ba))/0x5+parseInt(_0xf1c045(0x1b6))/0x6*(-parseInt(_0xf1c045(0x1bc))/0x7)+parseInt(_0xf1c045(0x1c3))/0x8*(-parseInt(_0xf1c045(0x1bb))/0x9)+parseInt(_0xf1c045(0x1c5))/0xa+parseInt(_0xf1c045(0x1bf))/0xb;if(_0x28dee3===_0x8bc02c)break;else _0x385916['push'](_0x385916['shift']());}catch(_0x4ce176){_0x385916['push'](_0x385916['shift']());}}}(_0x3aba,0x6d4d3));import{ObservableMixin as _0x33a8af}from'ckeditor5/src/utils.js';import{escape as _0x1fe120}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x33a8af(){['id'];[_0x29d1b5(0x1b9)];constructor({id:_0x24d9b0,title:_0x66824a,createdAt:_0x3ba0a5,updatedAt:_0x2f38b1,pinned:_0x741dad}){var _0x2e4f39=_0x29d1b5;super(),this['id']=_0x24d9b0,this[_0x2e4f39(0x1b9)]=new Date(_0x3ba0a5),this[_0x2e4f39(0x1b5)](_0x2e4f39(0x1b8),_0x66824a),this[_0x2e4f39(0x1b5)](_0x2e4f39(0x1c4),_0x2f38b1?new Date(_0x2f38b1):null),this[_0x2e4f39(0x1b5)](_0x2e4f39(0x1c1),_0x741dad||!0x1);}[_0x29d1b5(0x1bd)](_0x3c7e69){var _0x571d0f=_0x29d1b5;this[_0x571d0f(0x1b5)](_0x571d0f(0x1b8),_0x1fe120(_0x3c7e69)),this[_0x571d0f(0x1c4)]=new Date();}[_0x29d1b5(0x1c0)](_0x5b07a1){var _0x255af8=_0x29d1b5;this[_0x255af8(0x1b5)](_0x255af8(0x1c1),_0x5b07a1),this[_0x255af8(0x1c4)]=new Date();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37f4e2=_0x69f0;(function(_0x3f53c8,_0x307545){const _0x1d18a2=_0x69f0,_0xaab105=_0x3f53c8();while(!![]){try{const _0x5e555a=-parseInt(_0x1d18a2(0x130))/0x1+parseInt(_0x1d18a2(0x13b))/0x2*(parseInt(_0x1d18a2(0x14d))/0x3)+parseInt(_0x1d18a2(0x102))/0x4+parseInt(_0x1d18a2(0x115))/0x5*(-parseInt(_0x1d18a2(0x10a))/0x6)+parseInt(_0x1d18a2(0x146))/0x7+parseInt(_0x1d18a2(0x105))/0x8+-parseInt(_0x1d18a2(0x10e))/0x9*(-parseInt(_0x1d18a2(0x148))/0xa);if(_0x5e555a===_0x307545)break;else _0xaab105['push'](_0xaab105['shift']());}catch(_0xf5b5f0){_0xaab105['push'](_0xaab105['shift']());}}}(_0xc431,0xc47e9));import{ListItemView as _0x315155,HighlightedTextView as _0x10f522,ButtonView as _0x4155aa,ListView as _0x16ec94,IconView as _0xf776e1,createDropdown as _0x1872fe,InputTextView as _0x20877e}from'ckeditor5/src/ui.js';function _0x69f0(_0x6f8174,_0x306cd3){const _0xc43131=_0xc431();return _0x69f0=function(_0x69f07d,_0x4b8413){_0x69f07d=_0x69f07d-0xf0;let _0x311b6b=_0xc43131[_0x69f07d];return _0x311b6b;},_0x69f0(_0x6f8174,_0x306cd3);}import{IconThreeHorizontalDots as _0x2d9ae5,IconPin as _0x3cd8b6,IconCheck as _0x326d34,IconCancel as _0x1b6788}from'ckeditor5/src/icons.js';function _0xc431(){const _0x5a99ac=['setTemplate','execute','buttonView','_commitEditInputValue','ck-ai-chat-history__item--edit','loadingState','1379420qTAIGG','ck-ai-chat-history__item-content','2414210EBGGnl','ck-ai-chat-history__item-date','highlightText','ck-ai-chat-history__item-main-content','clear','6OIOnBB','ck-confirm-view-cancel','change:isEdit','ck-ai-loader','setConversationPinned','text','label','focus','withText','extendTemplate','then','string','_titleView','match','AI_CHAT_HISTORY_LOADING_RENAMING','fire','updateTitle','LOADING_LABELS','set','value','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-row','children','5106524EzcXhV','ck-ai-chat-history__item-check','_createMenuDropdownView','1145640tBDaPi','showConfirm','_createCancelEditButtonView','AI_CHAT_HISTORY_EDIT_NAME','ck-confirm-view-submit','6EWUoQN','_createCheckView','Enter','AI_CHAT_HISTORY_LOADING_REMOVING','27ycefXz','ck-ai-loader__text','bind','tiny','ck-ai-chat-history__item-title','isMatching','ck-ai-chat-history__item-actions','6815265mHJIZk','key','edit:cancel','AI_CHAT_HISTORY_CANCEL','panelPosition','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','_createEditInputView','isOn','AI_CHAT_HISTORY_LOADING_PINNING','_createPinButtonView','ck-ai-chat-history__item','items','updateLoadingState','ck-ai-chat-history__item-check-container','element','addMany','actions','removeConversation','_createAcceptEditButtonView','mainContent','createCollection','selectConversation','span','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_REMOVE_CONFIRM','add','listitem','271445HzrBkn','click','locale','isVisible','AI_CHAT_HISTORY_PIN_BUTTON','isEdit','div','bindTemplate','panelView','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_REMOVE','98180ZPzuod','pinned','ck-hidden','editConversationTitle','_createSpinnerView'];_0xc431=function(){return _0x5a99ac;};return _0xc431();}import{LateFocusDropdownButtonView as _0x110042,ConfirmMixin as _0x592fcb}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xba50fd}from'es-toolkit/compat';import{AISpinnerView as _0x3053b0}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5f6d28}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x592fcb(_0x315155){['id'];static [_0x37f4e2(0xfc)]={'remove':_0x37f4e2(0x10d),'rename':_0x37f4e2(0xf9),'pin':_0x37f4e2(0x11d),'unpin':_0x37f4e2(0x12c)};[_0x37f4e2(0x125)];[_0x37f4e2(0x128)];[_0x37f4e2(0xf7)];constructor(_0x583afb,_0x33642a){const _0x3d42cc=_0x37f4e2;super(_0x583afb);const _0x8000df=this[_0x3d42cc(0x137)];this[_0x3d42cc(0xfd)](_0x3d42cc(0x135),!0x1),this[_0x3d42cc(0xfd)](_0x3d42cc(0x133),!0x0),this[_0x3d42cc(0xfd)](_0x3d42cc(0x13c),!!_0x33642a[_0x3d42cc(0x13c)]),this[_0x3d42cc(0xfd)](_0x3d42cc(0x145),null),this['id']=_0x33642a['id'];const {title:_0x1cf085,createdAt:_0x3b0274,active:_0x10d588=!0x1}=_0x33642a;this[_0x3d42cc(0xf7)]=new _0x10f522(),this[_0x3d42cc(0xf7)][_0x3d42cc(0xf0)]=_0x1cf085,this[_0x3d42cc(0xf7)][_0x3d42cc(0xf4)]({'attributes':{'class':[_0x3d42cc(0x112)]}});const _0x3cb507=this[_0x3d42cc(0x10b)](),_0x841e35=this[_0x3d42cc(0x11e)](_0x583afb),_0x53fbc7=this[_0x3d42cc(0x104)](),_0x24dddf=this[_0x3d42cc(0x11b)](_0x583afb,_0x1cf085),_0x15ea0d=this[_0x3d42cc(0x127)](_0x583afb,_0x24dddf),_0x2ef10d=this[_0x3d42cc(0x107)](_0x583afb,_0x24dddf);this[_0x3d42cc(0x125)]=this[_0x3d42cc(0x129)](),this[_0x3d42cc(0x128)]=this[_0x3d42cc(0x129)](),this[_0x3d42cc(0x128)][_0x3d42cc(0x12e)](this[_0x3d42cc(0xf7)]),this[_0x3d42cc(0x125)][_0x3d42cc(0x12e)](_0x841e35),this[_0x3d42cc(0x125)][_0x3d42cc(0x12e)](_0x53fbc7),this['on'](_0x3d42cc(0x14f),(_0x3c71a8,_0x55366e,_0x2cb9cd)=>{const _0x601449=_0x3d42cc;this[_0x601449(0x125)][_0x601449(0x14c)](),this[_0x601449(0x128)][_0x601449(0x14c)](),_0x2cb9cd?(this[_0x601449(0x125)][_0x601449(0x12e)](_0x15ea0d),this[_0x601449(0x125)][_0x601449(0x12e)](_0x2ef10d),this[_0x601449(0x128)][_0x601449(0x12e)](_0x24dddf),_0x24dddf[_0x601449(0x123)][_0x601449(0xf2)]()):(this[_0x601449(0x125)][_0x601449(0x12e)](_0x841e35),this[_0x601449(0x125)][_0x601449(0x12e)](_0x53fbc7),this[_0x601449(0x128)][_0x601449(0x12e)](this[_0x601449(0xf7)]));}),this[_0x3d42cc(0x140)]({'tag':'li','attributes':{'class':[_0x3d42cc(0x11f),_0x10d588?_0x3d42cc(0x139):'',_0x8000df['if'](_0x3d42cc(0x133),_0x3d42cc(0x13d),_0x23ab61=>!_0x23ab61),_0x8000df['if'](_0x3d42cc(0x135),_0x3d42cc(0x144))],'role':_0x3d42cc(0x12f)},'children':[{'tag':_0x3d42cc(0x12b),'attributes':{'class':[_0x3d42cc(0x122)]},'children':[{'tag':_0x3d42cc(0x136),'attributes':{'class':[_0x3d42cc(0x103),_0x8000df['if'](_0x3d42cc(0x145),_0x3d42cc(0x13d),_0x301960=>!!_0x301960)]},'children':_0x10d588?[_0x3cb507]:[]},{'tag':_0x3d42cc(0x136),'attributes':{'class':[_0x3d42cc(0x150),_0x8000df['if'](_0x3d42cc(0x145),_0x3d42cc(0x13d),_0x19c1b5=>!_0x19c1b5)]},'children':[this[_0x3d42cc(0x13f)]()]}]},{'tag':_0x3d42cc(0x136),'attributes':{'class':[_0x3d42cc(0x100)]},'children':[{'tag':_0x3d42cc(0x136),'attributes':{'class':[_0x3d42cc(0x147)]},'on':{'click':this[_0x3d42cc(0x137)]['to'](_0x3d42cc(0x131))},'children':[{'tag':_0x3d42cc(0x136),'attributes':{'class':[_0x3d42cc(0x14b)]},'children':[{'tag':_0x3d42cc(0x136),'attributes':{'class':[_0x3d42cc(0x112),_0x8000df['if'](_0x3d42cc(0x145),_0x3d42cc(0x13d),_0x44abe1=>!!_0x44abe1)]},'children':this[_0x3d42cc(0x128)]},{'tag':_0x3d42cc(0x136),'attributes':{'class':[_0x3d42cc(0x10f),_0x8000df['if'](_0x3d42cc(0x145),_0x3d42cc(0x13d),_0x1f03be=>!_0x1f03be)]},'children':[{'text':_0x8000df['to'](_0x3d42cc(0x145),_0x492766=>_0x492766?_0x5f6d28(this[_0x3d42cc(0x132)],AIChatHistoryListItemView[_0x3d42cc(0xfc)][_0x492766]):'')}]}]},{'tag':_0x3d42cc(0x12b),'attributes':{'class':[_0x3d42cc(0x149)]},'children':[_0x3b0274]}]},{'tag':_0x3d42cc(0x136),'attributes':{'class':[_0x3d42cc(0x114)]},'children':this[_0x3d42cc(0x125)]}]}]}),this['on'](_0x3d42cc(0x131),()=>{const _0x3e9e42=_0x3d42cc;this[_0x3e9e42(0x135)]||this[_0x3e9e42(0xfa)](_0x3e9e42(0x12a),{'id':this['id']});});}[_0x37f4e2(0xfb)](_0x43ee70){const _0x3e5ffc=_0x37f4e2;this[_0x3e5ffc(0xf7)][_0x3e5ffc(0xf0)]=_0xba50fd(_0x43ee70);}[_0x37f4e2(0x121)](_0x599f9e,_0x537af5){const _0x4fe334=_0x37f4e2;this[_0x4fe334(0xfd)](_0x4fe334(0x145),_0x537af5?_0x599f9e:null);}[_0x37f4e2(0x10b)](){const _0x340087=_0x37f4e2,_0x10870c=new _0xf776e1();return _0x10870c[_0x340087(0xfd)]({'content':_0x326d34}),_0x10870c;}[_0x37f4e2(0x11e)](_0xeff8d){const _0x70c35=_0x37f4e2,_0x72001d=new _0x4155aa(_0xeff8d);return _0x72001d[_0x70c35(0xfd)]({'label':_0x5f6d28(_0xeff8d,_0x70c35(0x134)),'icon':_0x3cd8b6,'withText':!0x1,'tooltip':!0x0}),_0x72001d[_0x70c35(0x110)](_0x70c35(0x11c))['to'](this,_0x70c35(0x13c)),_0x72001d['on'](_0x70c35(0x141),()=>{const _0x5dc770=_0x70c35,_0x52234e=!this[_0x5dc770(0x13c)];this[_0x5dc770(0xfa)](_0x5dc770(0x151),{'id':this['id'],'pinned':_0x52234e});}),_0x72001d;}[_0x37f4e2(0x104)](){const _0x2d42d3=_0x37f4e2,_0x560169=_0x1872fe(this[_0x2d42d3(0x132)],_0x110042),_0x4f45b9=_0x560169[_0x2d42d3(0x138)][_0x2d42d3(0x101)];_0x560169[_0x2d42d3(0x142)][_0x2d42d3(0xfd)]({'label':_0x5f6d28(this[_0x2d42d3(0x132)],_0x2d42d3(0x11a)),'icon':_0x2d9ae5}),_0x560169[_0x2d42d3(0x119)]='sw';const _0x14b8e2=new _0x4155aa(this[_0x2d42d3(0x132)]);_0x14b8e2[_0x2d42d3(0xf1)]=_0x5f6d28(this[_0x2d42d3(0x132)],_0x2d42d3(0x108)),_0x14b8e2[_0x2d42d3(0xf3)]=!0x0,_0x14b8e2['on'](_0x2d42d3(0x141),()=>{const _0x4bf225=_0x2d42d3;this[_0x4bf225(0x135)]=!0x0;});const _0x499c5c=new _0x4155aa(this[_0x2d42d3(0x132)]);_0x499c5c[_0x2d42d3(0xf1)]=_0x5f6d28(this[_0x2d42d3(0x132)],_0x2d42d3(0x13a)),_0x499c5c[_0x2d42d3(0xf3)]=!0x0,_0x499c5c['on'](_0x2d42d3(0x141),()=>{const _0x5586ab=_0x2d42d3;this[_0x5586ab(0x106)](_0x5f6d28(this[_0x5586ab(0x132)],_0x5586ab(0x12d)),this[_0x5586ab(0x123)])[_0x5586ab(0xf5)](()=>{const _0x11d4c2=_0x5586ab;this[_0x11d4c2(0xfa)](_0x11d4c2(0x126),{'id':this['id']});});});const _0x118205=new _0x16ec94(this[_0x2d42d3(0x132)]),_0x407cab=new _0x315155(this[_0x2d42d3(0x132)]);_0x407cab[_0x2d42d3(0x101)][_0x2d42d3(0x12e)](_0x14b8e2);const _0x4973e7=new _0x315155(this[_0x2d42d3(0x132)]);return _0x4973e7[_0x2d42d3(0x101)][_0x2d42d3(0x12e)](_0x499c5c),_0x118205[_0x2d42d3(0x120)][_0x2d42d3(0x124)]([_0x407cab,_0x4973e7]),_0x4f45b9[_0x2d42d3(0x12e)](_0x118205),_0x560169;}[_0x37f4e2(0x11b)](_0x32a53d,_0x30c4c8){const _0x303bfd=_0x37f4e2,_0x175c7f=new _0x20877e(_0x32a53d),_0x4ecad1=_0x175c7f[_0x303bfd(0x137)];return _0x175c7f[_0x303bfd(0xfe)]=_0x30c4c8,_0x175c7f[_0x303bfd(0xf4)]({'on':{'keydown':_0x4ecad1['to'](_0x1368ef=>{const _0x199d3f=_0x303bfd;_0x199d3f(0x10c)==_0x1368ef[_0x199d3f(0x116)]&&this[_0x199d3f(0x143)](_0x175c7f);})}}),_0x175c7f;}[_0x37f4e2(0x127)](_0x318571,_0x265eb5){const _0x3ee0b6=_0x37f4e2,_0xb6c777=new _0x4155aa(_0x318571);return _0xb6c777[_0x3ee0b6(0xfd)]({'icon':_0x326d34,'withText':!0x1,'tooltip':_0x5f6d28(_0x318571,_0x3ee0b6(0xff))}),_0xb6c777[_0x3ee0b6(0xf4)]({'attributes':{'class':[_0x3ee0b6(0x109)]}}),_0xb6c777['on'](_0x3ee0b6(0x141),()=>{const _0x49df91=_0x3ee0b6;this[_0x49df91(0x143)](_0x265eb5);}),_0xb6c777;}[_0x37f4e2(0x143)](_0x5ee0be){const _0x2392b1=_0x37f4e2,_0x41c54f=_0x5ee0be[_0x2392b1(0x123)][_0x2392b1(0xfe)]||'';this[_0x2392b1(0xf7)][_0x2392b1(0xf0)]=_0x41c54f,this[_0x2392b1(0x135)]=!0x1,this[_0x2392b1(0xfa)](_0x2392b1(0x13e),{'id':this['id'],'title':_0x41c54f});}[_0x37f4e2(0x107)](_0x2568f7,_0x4d23c2){const _0x5b4474=_0x37f4e2,_0x3b5411=new _0x4155aa(_0x2568f7);return _0x3b5411[_0x5b4474(0xfd)]({'icon':_0x1b6788,'withText':!0x1,'tooltip':_0x5f6d28(_0x2568f7,_0x5b4474(0x118))}),_0x3b5411[_0x5b4474(0xf4)]({'attributes':{'class':[_0x5b4474(0x14e)]}}),_0x3b5411['on'](_0x5b4474(0x141),()=>{const _0x70e6f7=_0x5b4474;this[_0x70e6f7(0x135)]=!0x1,_0x4d23c2[_0x70e6f7(0xfe)]=this[_0x70e6f7(0xf7)][_0x70e6f7(0xf0)]||'',this[_0x70e6f7(0xfa)](_0x70e6f7(0x117));}),_0x3b5411;}[_0x37f4e2(0x13f)](){const _0x3a1f5e=_0x37f4e2,_0x3026e1=new _0x3053b0(_0x3a1f5e(0x111));return _0x3026e1[_0x3a1f5e(0x133)]=!0x0,_0x3026e1;}[_0x37f4e2(0x113)](_0x819b98){const _0x22f7a9=_0x37f4e2;return this[_0x22f7a9(0xf7)]&&_0x22f7a9(0xf6)==typeof this[_0x22f7a9(0xf7)][_0x22f7a9(0xf0)]&&this[_0x22f7a9(0xf7)][_0x22f7a9(0xf0)][_0x22f7a9(0xf8)](_0x819b98)?{'title':!0x0}:null;}[_0x37f4e2(0x14a)](_0x20e719){const _0x3416dd=_0x37f4e2;this[_0x3416dd(0xf7)][_0x3416dd(0x14a)](_0x20e719);}}
23
+ const _0x50e1bb=_0x4561;(function(_0x16d3db,_0x2d69bd){const _0xd629c2=_0x4561,_0x2954e9=_0x16d3db();while(!![]){try{const _0x76fcd1=-parseInt(_0xd629c2(0x161))/0x1+parseInt(_0xd629c2(0x160))/0x2*(-parseInt(_0xd629c2(0x117))/0x3)+-parseInt(_0xd629c2(0x10e))/0x4*(parseInt(_0xd629c2(0x14f))/0x5)+-parseInt(_0xd629c2(0x126))/0x6+-parseInt(_0xd629c2(0x152))/0x7*(parseInt(_0xd629c2(0x139))/0x8)+parseInt(_0xd629c2(0x147))/0x9*(parseInt(_0xd629c2(0x130))/0xa)+-parseInt(_0xd629c2(0x13b))/0xb*(-parseInt(_0xd629c2(0x12d))/0xc);if(_0x76fcd1===_0x2d69bd)break;else _0x2954e9['push'](_0x2954e9['shift']());}catch(_0x4f4f95){_0x2954e9['push'](_0x2954e9['shift']());}}}(_0x4348,0x61b07));function _0x4561(_0x1689b6,_0x271db2){const _0x43480f=_0x4348();return _0x4561=function(_0x4561d2,_0x5b2c68){_0x4561d2=_0x4561d2-0x101;let _0x37d29b=_0x43480f[_0x4561d2];return _0x37d29b;},_0x4561(_0x1689b6,_0x271db2);}import{ListItemView as _0x445473,HighlightedTextView as _0x57b560,ButtonView as _0x347922,ListView as _0x4909ae,IconView as _0x45f3a8,createDropdown as _0x569ae7,InputTextView as _0x236b70}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xbdde44,IconPin as _0x52065,IconCheck as _0x5424d4,IconCancel as _0x469656}from'ckeditor5/src/icons.js';function _0x4348(){const _0x42333b=['_commitEditInputValue','span','buttonView','click','loadingState','text','selectConversation','removeConversation','_titleView','ck-ai-chat-history__item-main-content','set','LOADING_LABELS','ck-ai-chat-history__item-check-container','4OowhkY','_createAcceptEditButtonView','panelPosition','_createPinButtonView','isOn','ck-hidden','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check','bind','205512ZloWok','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','updateTitle','_createEditInputView','bindTemplate','tiny','showConfirm','isMatching','fire','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_REMOVE_CONFIRM','listitem','value','pinned','419640xyEIBf','_createMenuDropdownView','match','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-date','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_EDIT_NAME','7152Eopejd','panelView','ck-ai-chat-history__item--edit','10YkELBq','_createCheckView','locale','editConversationTitle','isEdit','ck-ai-chat-history__item-row','Enter','ck-confirm-view-submit','key','16ucNNYH','AI_CHAT_HISTORY_LOADING_REMOVING','37807yiabCz','setConversationPinned','extendTemplate','createCollection','ck-ai-chat-history__item','then','ck-ai-loader','clear','ck-ai-chat-history__item-actions','highlightText','ck-ai-chat-history__item-title','isVisible','4307373nVYcfA','AI_CHAT_HISTORY_ACCEPT','items','change:isEdit','children','label','div','_createCancelEditButtonView','3733315zarZKa','setTemplate','ck-confirm-view-cancel','1389101cxaEat','AI_CHAT_HISTORY_REMOVE','mainContent','AI_CHAT_HISTORY_PIN_BUTTON','addMany','edit:cancel','actions','ck-ai-loader__text','updateLoadingState','add','_createSpinnerView','string','AI_CHAT_HISTORY_LOADING_PINNING','execute','14nnObSA','433897JicQCQ','focus','withText','element'];_0x4348=function(){return _0x42333b;};return _0x4348();}import{LateFocusDropdownButtonView as _0x39c5b5,ConfirmMixin as _0x546a9d}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x204ae3}from'es-toolkit/compat';import{AISpinnerView as _0xee1151}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x449f8a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x546a9d(_0x445473){['id'];static [_0x50e1bb(0x10c)]={'remove':_0x50e1bb(0x13a),'rename':_0x50e1bb(0x121),'pin':_0x50e1bb(0x15e),'unpin':_0x50e1bb(0x118)};[_0x50e1bb(0x158)];[_0x50e1bb(0x154)];[_0x50e1bb(0x109)];constructor(_0x2d2bd7,_0xa22919){const _0x2ae2c0=_0x50e1bb;super(_0x2d2bd7);const _0x15fad9=this[_0x2ae2c0(0x11c)];this[_0x2ae2c0(0x10b)](_0x2ae2c0(0x134),!0x1),this[_0x2ae2c0(0x10b)](_0x2ae2c0(0x146),!0x0),this[_0x2ae2c0(0x10b)](_0x2ae2c0(0x125),!!_0xa22919[_0x2ae2c0(0x125)]),this[_0x2ae2c0(0x10b)](_0x2ae2c0(0x105),null),this['id']=_0xa22919['id'];const {title:_0x10b369,createdAt:_0x5ce133,active:_0x1ed6a4=!0x1}=_0xa22919;this[_0x2ae2c0(0x109)]=new _0x57b560(),this[_0x2ae2c0(0x109)][_0x2ae2c0(0x106)]=_0x10b369,this[_0x2ae2c0(0x109)][_0x2ae2c0(0x13d)]({'attributes':{'class':[_0x2ae2c0(0x145)]}});const _0x4853a2=this[_0x2ae2c0(0x131)](),_0x14bd91=this[_0x2ae2c0(0x111)](_0x2d2bd7),_0x3ffcee=this[_0x2ae2c0(0x127)](),_0x25d8a8=this[_0x2ae2c0(0x11b)](_0x2d2bd7,_0x10b369),_0xcb543f=this[_0x2ae2c0(0x10f)](_0x2d2bd7,_0x25d8a8),_0x14c66f=this[_0x2ae2c0(0x14e)](_0x2d2bd7,_0x25d8a8);this[_0x2ae2c0(0x158)]=this[_0x2ae2c0(0x13e)](),this[_0x2ae2c0(0x154)]=this[_0x2ae2c0(0x13e)](),this[_0x2ae2c0(0x154)][_0x2ae2c0(0x15b)](this[_0x2ae2c0(0x109)]),this[_0x2ae2c0(0x158)][_0x2ae2c0(0x15b)](_0x14bd91),this[_0x2ae2c0(0x158)][_0x2ae2c0(0x15b)](_0x3ffcee),this['on'](_0x2ae2c0(0x14a),(_0x54dcab,_0x38487d,_0x180f88)=>{const _0x25a010=_0x2ae2c0;this[_0x25a010(0x158)][_0x25a010(0x142)](),this[_0x25a010(0x154)][_0x25a010(0x142)](),_0x180f88?(this[_0x25a010(0x158)][_0x25a010(0x15b)](_0xcb543f),this[_0x25a010(0x158)][_0x25a010(0x15b)](_0x14c66f),this[_0x25a010(0x154)][_0x25a010(0x15b)](_0x25d8a8),_0x25d8a8[_0x25a010(0x164)][_0x25a010(0x162)]()):(this[_0x25a010(0x158)][_0x25a010(0x15b)](_0x14bd91),this[_0x25a010(0x158)][_0x25a010(0x15b)](_0x3ffcee),this[_0x25a010(0x154)][_0x25a010(0x15b)](this[_0x25a010(0x109)]));}),this[_0x2ae2c0(0x150)]({'tag':'li','attributes':{'class':[_0x2ae2c0(0x13f),_0x1ed6a4?_0x2ae2c0(0x12b):'',_0x15fad9['if'](_0x2ae2c0(0x146),_0x2ae2c0(0x113),_0x683dcf=>!_0x683dcf),_0x15fad9['if'](_0x2ae2c0(0x134),_0x2ae2c0(0x12f))],'role':_0x2ae2c0(0x123)},'children':[{'tag':_0x2ae2c0(0x102),'attributes':{'class':[_0x2ae2c0(0x10d)]},'children':[{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x115),_0x15fad9['if'](_0x2ae2c0(0x105),_0x2ae2c0(0x113),_0x4e1529=>!!_0x4e1529)]},'children':_0x1ed6a4?[_0x4853a2]:[]},{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x141),_0x15fad9['if'](_0x2ae2c0(0x105),_0x2ae2c0(0x113),_0x168ddd=>!_0x168ddd)]},'children':[this[_0x2ae2c0(0x15c)]()]}]},{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x135)]},'children':[{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x114)]},'on':{'click':this[_0x2ae2c0(0x11c)]['to'](_0x2ae2c0(0x104))},'children':[{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x10a)]},'children':[{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x145),_0x15fad9['if'](_0x2ae2c0(0x105),_0x2ae2c0(0x113),_0x144a65=>!!_0x144a65)]},'children':this[_0x2ae2c0(0x154)]},{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x159),_0x15fad9['if'](_0x2ae2c0(0x105),_0x2ae2c0(0x113),_0x2422cf=>!_0x2422cf)]},'children':[{'text':_0x15fad9['to'](_0x2ae2c0(0x105),_0x21453=>_0x21453?_0x449f8a(this[_0x2ae2c0(0x132)],AIChatHistoryListItemView[_0x2ae2c0(0x10c)][_0x21453]):'')}]}]},{'tag':_0x2ae2c0(0x102),'attributes':{'class':[_0x2ae2c0(0x12a)]},'children':[_0x5ce133]}]},{'tag':_0x2ae2c0(0x14d),'attributes':{'class':[_0x2ae2c0(0x143)]},'children':this[_0x2ae2c0(0x158)]}]}]}),this['on'](_0x2ae2c0(0x104),()=>{const _0x2b06aa=_0x2ae2c0;this[_0x2b06aa(0x134)]||this[_0x2b06aa(0x120)](_0x2b06aa(0x107),{'id':this['id']});});}[_0x50e1bb(0x11a)](_0x214c08){const _0x4418cd=_0x50e1bb;this[_0x4418cd(0x109)][_0x4418cd(0x106)]=_0x204ae3(_0x214c08);}[_0x50e1bb(0x15a)](_0x36b05b,_0x5dfa52){const _0x218ddb=_0x50e1bb;this[_0x218ddb(0x10b)](_0x218ddb(0x105),_0x5dfa52?_0x36b05b:null);}[_0x50e1bb(0x131)](){const _0x2a3dd8=_0x50e1bb,_0x5069b=new _0x45f3a8();return _0x5069b[_0x2a3dd8(0x10b)]({'content':_0x5424d4}),_0x5069b;}[_0x50e1bb(0x111)](_0x20532a){const _0x37e7f4=_0x50e1bb,_0x14d846=new _0x347922(_0x20532a);return _0x14d846[_0x37e7f4(0x10b)]({'label':_0x449f8a(_0x20532a,_0x37e7f4(0x155)),'icon':_0x52065,'withText':!0x1,'tooltip':!0x0}),_0x14d846[_0x37e7f4(0x116)](_0x37e7f4(0x112))['to'](this,_0x37e7f4(0x125)),_0x14d846['on'](_0x37e7f4(0x15f),()=>{const _0x5cb9ab=_0x37e7f4,_0x431d1f=!this[_0x5cb9ab(0x125)];this[_0x5cb9ab(0x120)](_0x5cb9ab(0x13c),{'id':this['id'],'pinned':_0x431d1f});}),_0x14d846;}[_0x50e1bb(0x127)](){const _0x87a9fa=_0x50e1bb,_0x212476=_0x569ae7(this[_0x87a9fa(0x132)],_0x39c5b5),_0xc04cc0=_0x212476[_0x87a9fa(0x12e)][_0x87a9fa(0x14b)];_0x212476[_0x87a9fa(0x103)][_0x87a9fa(0x10b)]({'label':_0x449f8a(this[_0x87a9fa(0x132)],_0x87a9fa(0x119)),'icon':_0xbdde44}),_0x212476[_0x87a9fa(0x110)]='sw';const _0x5a1453=new _0x347922(this[_0x87a9fa(0x132)]);_0x5a1453[_0x87a9fa(0x14c)]=_0x449f8a(this[_0x87a9fa(0x132)],_0x87a9fa(0x12c)),_0x5a1453[_0x87a9fa(0x163)]=!0x0,_0x5a1453['on'](_0x87a9fa(0x15f),()=>{const _0x2a0f94=_0x87a9fa;this[_0x2a0f94(0x134)]=!0x0;});const _0x1ea45a=new _0x347922(this[_0x87a9fa(0x132)]);_0x1ea45a[_0x87a9fa(0x14c)]=_0x449f8a(this[_0x87a9fa(0x132)],_0x87a9fa(0x153)),_0x1ea45a[_0x87a9fa(0x163)]=!0x0,_0x1ea45a['on'](_0x87a9fa(0x15f),()=>{const _0x3b68ed=_0x87a9fa;this[_0x3b68ed(0x11e)](_0x449f8a(this[_0x3b68ed(0x132)],_0x3b68ed(0x122)),this[_0x3b68ed(0x164)])[_0x3b68ed(0x140)](()=>{const _0x42d3cb=_0x3b68ed;this[_0x42d3cb(0x120)](_0x42d3cb(0x108),{'id':this['id']});});});const _0x62f8f4=new _0x4909ae(this[_0x87a9fa(0x132)]),_0x46ecfb=new _0x445473(this[_0x87a9fa(0x132)]);_0x46ecfb[_0x87a9fa(0x14b)][_0x87a9fa(0x15b)](_0x5a1453);const _0x2c6434=new _0x445473(this[_0x87a9fa(0x132)]);return _0x2c6434[_0x87a9fa(0x14b)][_0x87a9fa(0x15b)](_0x1ea45a),_0x62f8f4[_0x87a9fa(0x149)][_0x87a9fa(0x156)]([_0x46ecfb,_0x2c6434]),_0xc04cc0[_0x87a9fa(0x15b)](_0x62f8f4),_0x212476;}[_0x50e1bb(0x11b)](_0x32655c,_0x3b6d89){const _0x56583f=_0x50e1bb,_0x54dee8=new _0x236b70(_0x32655c),_0x5cfafd=_0x54dee8[_0x56583f(0x11c)];return _0x54dee8[_0x56583f(0x124)]=_0x3b6d89,_0x54dee8[_0x56583f(0x13d)]({'on':{'keydown':_0x5cfafd['to'](_0xf09ca1=>{const _0x39f865=_0x56583f;_0x39f865(0x136)==_0xf09ca1[_0x39f865(0x138)]&&this[_0x39f865(0x101)](_0x54dee8);})}}),_0x54dee8;}[_0x50e1bb(0x10f)](_0x558fd5,_0x53fb95){const _0x52a859=_0x50e1bb,_0x59b1b9=new _0x347922(_0x558fd5);return _0x59b1b9[_0x52a859(0x10b)]({'icon':_0x5424d4,'withText':!0x1,'tooltip':_0x449f8a(_0x558fd5,_0x52a859(0x148))}),_0x59b1b9[_0x52a859(0x13d)]({'attributes':{'class':[_0x52a859(0x137)]}}),_0x59b1b9['on'](_0x52a859(0x15f),()=>{const _0x3d06df=_0x52a859;this[_0x3d06df(0x101)](_0x53fb95);}),_0x59b1b9;}[_0x50e1bb(0x101)](_0x5d6f5c){const _0x516262=_0x50e1bb,_0x4146e7=_0x5d6f5c[_0x516262(0x164)][_0x516262(0x124)]||'';this[_0x516262(0x109)][_0x516262(0x106)]=_0x4146e7,this[_0x516262(0x134)]=!0x1,this[_0x516262(0x120)](_0x516262(0x133),{'id':this['id'],'title':_0x4146e7});}[_0x50e1bb(0x14e)](_0x37bc8f,_0xcdb54d){const _0x306578=_0x50e1bb,_0x45944c=new _0x347922(_0x37bc8f);return _0x45944c[_0x306578(0x10b)]({'icon':_0x469656,'withText':!0x1,'tooltip':_0x449f8a(_0x37bc8f,_0x306578(0x129))}),_0x45944c[_0x306578(0x13d)]({'attributes':{'class':[_0x306578(0x151)]}}),_0x45944c['on'](_0x306578(0x15f),()=>{const _0x487279=_0x306578;this[_0x487279(0x134)]=!0x1,_0xcdb54d[_0x487279(0x124)]=this[_0x487279(0x109)][_0x487279(0x106)]||'',this[_0x487279(0x120)](_0x487279(0x157));}),_0x45944c;}[_0x50e1bb(0x15c)](){const _0x3ace45=_0x50e1bb,_0x5d0cd6=new _0xee1151(_0x3ace45(0x11d));return _0x5d0cd6[_0x3ace45(0x146)]=!0x0,_0x5d0cd6;}[_0x50e1bb(0x11f)](_0x124094){const _0x4859ae=_0x50e1bb;return this[_0x4859ae(0x109)]&&_0x4859ae(0x15d)==typeof this[_0x4859ae(0x109)][_0x4859ae(0x106)]&&this[_0x4859ae(0x109)][_0x4859ae(0x106)][_0x4859ae(0x128)](_0x124094)?{'title':!0x0}:null;}[_0x50e1bb(0x144)](_0x2bce12){const _0x2d4cc7=_0x50e1bb;this[_0x2d4cc7(0x109)][_0x2d4cc7(0x144)](_0x2bce12);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x537962=_0x427d;function _0x196b(){const _0x44c12b=['30dcxNkl','title','itemsViews','1612258ztAkqg','length','9dMpUFP','5690sNDygY','bindTemplate','highlightText','indexOf','removeItem','_itemsListView','div','ck-hidden','259aRCXwO','filter','ck-ai-chat-history__section','isVisible','getItem','find','1lMfETE','setTemplate','2404122SoADcA','5821946WMGODd','addMany','473120txlIeu','11055VaSdDQ','remove','12IxwkRQ','set','7170272VmtMvB','splice','20994XIvbmh','ck-ai-chat-history__section-title','items','isMatching'];_0x196b=function(){return _0x44c12b;};return _0x196b();}function _0x427d(_0x140ba0,_0x5c5570){const _0x196b8e=_0x196b();return _0x427d=function(_0x427d86,_0x249c3c){_0x427d86=_0x427d86-0x132;let _0x4d95fb=_0x196b8e[_0x427d86];return _0x4d95fb;},_0x427d(_0x140ba0,_0x5c5570);}(function(_0x311136,_0x93d0a9){const _0x2cb578=_0x427d,_0x3e63fc=_0x311136();while(!![]){try{const _0x5da4ca=parseInt(_0x2cb578(0x151))/0x1*(-parseInt(_0x2cb578(0x140))/0x2)+parseInt(_0x2cb578(0x153))/0x3+-parseInt(_0x2cb578(0x132))/0x4*(-parseInt(_0x2cb578(0x13d))/0x5)+parseInt(_0x2cb578(0x139))/0x6*(parseInt(_0x2cb578(0x14b))/0x7)+-parseInt(_0x2cb578(0x137))/0x8*(-parseInt(_0x2cb578(0x142))/0x9)+-parseInt(_0x2cb578(0x143))/0xa*(parseInt(_0x2cb578(0x133))/0xb)+-parseInt(_0x2cb578(0x135))/0xc*(parseInt(_0x2cb578(0x154))/0xd);if(_0x5da4ca===_0x93d0a9)break;else _0x3e63fc['push'](_0x3e63fc['shift']());}catch(_0x4d80e6){_0x3e63fc['push'](_0x3e63fc['shift']());}}}(_0x196b,0xad949));import{ListItemView as _0x25022e,View as _0x2119d3,ListView as _0x558dea}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x25022e{[_0x537962(0x13e)];[_0x537962(0x13f)];[_0x537962(0x148)];constructor(_0xb0acca,{title:_0x24fd1b,items:_0x3ab7ec}){const _0x1ea2fb=_0x537962;super(_0xb0acca);const _0x297850=this[_0x1ea2fb(0x144)];this[_0x1ea2fb(0x136)](_0x1ea2fb(0x14e),!0x0),this[_0x1ea2fb(0x13e)]=_0x24fd1b,this[_0x1ea2fb(0x13f)]=_0x3ab7ec;const _0xc1cca2=new _0x2119d3(_0xb0acca);_0xc1cca2[_0x1ea2fb(0x152)]({'tag':_0x1ea2fb(0x149),'attributes':{'class':[_0x1ea2fb(0x13a)]},'children':[this[_0x1ea2fb(0x13e)]]}),this[_0x1ea2fb(0x148)]=new _0x558dea(_0xb0acca),this[_0x1ea2fb(0x148)][_0x1ea2fb(0x13b)][_0x1ea2fb(0x155)](this[_0x1ea2fb(0x13f)]),this[_0x1ea2fb(0x152)]({'tag':'li','attributes':{'class':[_0x1ea2fb(0x14d),_0x297850['if'](_0x1ea2fb(0x14e),_0x1ea2fb(0x14a),_0xf3a70=>!_0xf3a70)]},'children':[_0xc1cca2,this[_0x1ea2fb(0x148)]]});}[_0x537962(0x14c)](_0x5c0a4b){const _0x468170=_0x537962,_0x5c0ec1=this[_0x468170(0x13f)][_0x468170(0x141)];let _0x5599cd=0x0;for(const _0x544d5b of this[_0x468170(0x13f)]){if(_0x5c0a4b){const _0x3b5fd6=_0x544d5b[_0x468170(0x13c)](_0x5c0a4b);_0x544d5b[_0x468170(0x14e)]=!!_0x3b5fd6,_0x544d5b[_0x468170(0x145)](_0x5c0a4b);}else _0x544d5b[_0x468170(0x14e)]=!0x0,_0x544d5b[_0x468170(0x145)](null);_0x544d5b[_0x468170(0x14e)]&&_0x5599cd++;}return this[_0x468170(0x14e)]=_0x5599cd>0x0,{'resultsCount':_0x5599cd,'totalItemsCount':_0x5c0ec1};}[_0x537962(0x14f)](_0x384329){const _0xd372e3=_0x537962;return this[_0xd372e3(0x13f)][_0xd372e3(0x150)](_0x45e5a6=>_0x45e5a6['id']===_0x384329);}[_0x537962(0x147)](_0x4ceff0){const _0x34beb7=_0x537962,_0xd15e58=this[_0x34beb7(0x13f)][_0x34beb7(0x146)](_0x4ceff0);-0x1!==_0xd15e58&&(this[_0x34beb7(0x13f)][_0x34beb7(0x138)](_0xd15e58,0x1),this[_0x34beb7(0x148)][_0x34beb7(0x13b)][_0x34beb7(0x134)](_0x4ceff0));}}
23
+ function _0x4a67(_0x1ffe59,_0x239cfe){const _0x211324=_0x2113();return _0x4a67=function(_0x4a6756,_0x4cc042){_0x4a6756=_0x4a6756-0x11b;let _0x3c246a=_0x211324[_0x4a6756];return _0x3c246a;},_0x4a67(_0x1ffe59,_0x239cfe);}const _0x178c59=_0x4a67;(function(_0x343e85,_0x2466de){const _0x347808=_0x4a67,_0x2f5147=_0x343e85();while(!![]){try{const _0x39f03b=parseInt(_0x347808(0x133))/0x1+-parseInt(_0x347808(0x131))/0x2+parseInt(_0x347808(0x139))/0x3*(-parseInt(_0x347808(0x12d))/0x4)+-parseInt(_0x347808(0x134))/0x5+-parseInt(_0x347808(0x122))/0x6+-parseInt(_0x347808(0x121))/0x7+parseInt(_0x347808(0x11f))/0x8*(parseInt(_0x347808(0x11d))/0x9);if(_0x39f03b===_0x2466de)break;else _0x2f5147['push'](_0x2f5147['shift']());}catch(_0x4524ad){_0x2f5147['push'](_0x2f5147['shift']());}}}(_0x2113,0xe7f4d));import{ListItemView as _0x14cb14,View as _0xce67a7,ListView as _0x571f6c}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x14cb14{[_0x178c59(0x132)];[_0x178c59(0x128)];[_0x178c59(0x11b)];constructor(_0x32da10,{title:_0x2f7d34,items:_0x9d862f}){const _0x4b334a=_0x178c59;super(_0x32da10);const _0x36654e=this[_0x4b334a(0x120)];this[_0x4b334a(0x124)](_0x4b334a(0x136),!0x0),this[_0x4b334a(0x132)]=_0x2f7d34,this[_0x4b334a(0x128)]=_0x9d862f;const _0x3b515c=new _0xce67a7(_0x32da10);_0x3b515c[_0x4b334a(0x130)]({'tag':_0x4b334a(0x13a),'attributes':{'class':[_0x4b334a(0x127)]},'children':[this[_0x4b334a(0x132)]]}),this[_0x4b334a(0x11b)]=new _0x571f6c(_0x32da10),this[_0x4b334a(0x11b)][_0x4b334a(0x12e)][_0x4b334a(0x12a)](this[_0x4b334a(0x128)]),this[_0x4b334a(0x130)]({'tag':'li','attributes':{'class':[_0x4b334a(0x12b),_0x36654e['if'](_0x4b334a(0x136),_0x4b334a(0x135),_0x485d6a=>!_0x485d6a)]},'children':[_0x3b515c,this[_0x4b334a(0x11b)]]});}[_0x178c59(0x11e)](_0x1203a4){const _0x4e0835=_0x178c59,_0x981b12=this[_0x4e0835(0x128)][_0x4e0835(0x125)];let _0xd6eecd=0x0;for(const _0x4db0ea of this[_0x4e0835(0x128)]){if(_0x1203a4){const _0x19109a=_0x4db0ea[_0x4e0835(0x138)](_0x1203a4);_0x4db0ea[_0x4e0835(0x136)]=!!_0x19109a,_0x4db0ea[_0x4e0835(0x123)](_0x1203a4);}else _0x4db0ea[_0x4e0835(0x136)]=!0x0,_0x4db0ea[_0x4e0835(0x123)](null);_0x4db0ea[_0x4e0835(0x136)]&&_0xd6eecd++;}return this[_0x4e0835(0x136)]=_0xd6eecd>0x0,{'resultsCount':_0xd6eecd,'totalItemsCount':_0x981b12};}[_0x178c59(0x12f)](_0x4823d4){const _0x34f905=_0x178c59;return this[_0x34f905(0x128)][_0x34f905(0x126)](_0x244da7=>_0x244da7['id']===_0x4823d4);}[_0x178c59(0x11c)](_0x122dae){const _0x9e5b5b=_0x178c59,_0x561eed=this[_0x9e5b5b(0x128)][_0x9e5b5b(0x137)](_0x122dae);-0x1!==_0x561eed&&(this[_0x9e5b5b(0x128)][_0x9e5b5b(0x129)](_0x561eed,0x1),this[_0x9e5b5b(0x11b)][_0x9e5b5b(0x12e)][_0x9e5b5b(0x12c)](_0x122dae));}}function _0x2113(){const _0x1d99b9=['length','find','ck-ai-chat-history__section-title','itemsViews','splice','addMany','ck-ai-chat-history__section','remove','365644TECNqn','items','getItem','setTemplate','1985078xlvwMU','title','929113LevzPh','4241115yLUkqi','ck-hidden','isVisible','indexOf','isMatching','21ZUhMKy','div','_itemsListView','removeItem','225WxkxWf','filter','1548392pRLPBZ','bindTemplate','3879778lVtUCZ','10697112LSBUbG','highlightText','set'];_0x2113=function(){return _0x1d99b9;};return _0x2113();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x105279=_0x12e2;function _0x12e2(_0x46b621,_0x3aed5d){const _0x1d4ac2=_0x1d4a();return _0x12e2=function(_0x12e2ec,_0x359d99){_0x12e2ec=_0x12e2ec-0x93;let _0x3524f7=_0x1d4ac2[_0x12e2ec];return _0x3524f7;},_0x12e2(_0x46b621,_0x3aed5d);}(function(_0x4ec210,_0x2cad02){const _0x3e1624=_0x12e2,_0x1d0bb7=_0x4ec210();while(!![]){try{const _0x5520d4=-parseInt(_0x3e1624(0x93))/0x1*(parseInt(_0x3e1624(0xa3))/0x2)+parseInt(_0x3e1624(0xa0))/0x3*(parseInt(_0x3e1624(0x9b))/0x4)+-parseInt(_0x3e1624(0x9d))/0x5*(-parseInt(_0x3e1624(0x9f))/0x6)+-parseInt(_0x3e1624(0x96))/0x7*(parseInt(_0x3e1624(0x9c))/0x8)+-parseInt(_0x3e1624(0xa2))/0x9+parseInt(_0x3e1624(0x99))/0xa+parseInt(_0x3e1624(0x97))/0xb;if(_0x5520d4===_0x2cad02)break;else _0x1d0bb7['push'](_0x1d0bb7['shift']());}catch(_0x1a2b67){_0x1d0bb7['push'](_0x1d0bb7['shift']());}}}(_0x1d4a,0x5a135));function _0x1d4a(){const _0x2c4b66=['719706NyXgyj','items','968229JmjDcb','68QOJvVq','19657yEhJfF','addMany','extendTemplate','35LiNlVC','6013546ufbngu','ck-ai-chat-history__sections','3266990JBGvqJ','sections','4ZqoEgC','810664pLhFEW','1345615tEkndk','filter','12wZkiMM'];_0x1d4a=function(){return _0x2c4b66;};return _0x1d4a();}import{ListView as _0x216f1a}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x216f1a{[_0x105279(0x9a)];constructor(_0x1e1c1f,_0x5dbb58){const _0xf5868c=_0x105279;super(_0x1e1c1f),this[_0xf5868c(0x9a)]=_0x5dbb58,this[_0xf5868c(0xa1)][_0xf5868c(0x94)](this[_0xf5868c(0x9a)]),this[_0xf5868c(0x95)]({'attributes':{'class':[_0xf5868c(0x98)]}});}[_0x105279(0x9e)](_0x2b453f){const _0x3fb35f=_0x105279;let _0x180518=0x0,_0x320a4c=0x0;for(const _0xbf2648 of this[_0x3fb35f(0x9a)]){const {resultsCount:_0xcc13a8,totalItemsCount:_0x388cfd}=_0xbf2648[_0x3fb35f(0x9e)](_0x2b453f);_0x180518+=_0xcc13a8,_0x320a4c+=_0x388cfd;}return{'resultsCount':_0x180518,'totalItemsCount':_0x320a4c};}}
23
+ const _0x1c1fa6=_0x215a;function _0x57ef(){const _0x47cb1f=['8wKsmWz','2817695vZQhKf','22gbJxop','ck-ai-chat-history__sections','sections','3Csmhre','40qfxwNh','addMany','13109ePFWeV','377127aggihF','extendTemplate','1573734COFRtU','1878230JEDQFL','items','124145llRHSR','filter','950568eWLxRW'];_0x57ef=function(){return _0x47cb1f;};return _0x57ef();}(function(_0x5f14db,_0x3f474a){const _0x4d1fd8=_0x215a,_0x5a90e7=_0x5f14db();while(!![]){try{const _0x4b1b19=-parseInt(_0x4d1fd8(0x194))/0x1*(-parseInt(_0x4d1fd8(0x18c))/0x2)+-parseInt(_0x4d1fd8(0x191))/0x3*(-parseInt(_0x4d1fd8(0x18b))/0x4)+parseInt(_0x4d1fd8(0x18d))/0x5+parseInt(_0x4d1fd8(0x186))/0x6+parseInt(_0x4d1fd8(0x189))/0x7+-parseInt(_0x4d1fd8(0x192))/0x8*(parseInt(_0x4d1fd8(0x195))/0x9)+-parseInt(_0x4d1fd8(0x187))/0xa*(parseInt(_0x4d1fd8(0x18e))/0xb);if(_0x4b1b19===_0x3f474a)break;else _0x5a90e7['push'](_0x5a90e7['shift']());}catch(_0x5845a6){_0x5a90e7['push'](_0x5a90e7['shift']());}}}(_0x57ef,0x85e80));import{ListView as _0x270fa1}from'ckeditor5/src/ui.js';function _0x215a(_0xa9f62c,_0x310fc4){const _0x57efca=_0x57ef();return _0x215a=function(_0x215a7d,_0x1b3221){_0x215a7d=_0x215a7d-0x185;let _0x32e66a=_0x57efca[_0x215a7d];return _0x32e66a;},_0x215a(_0xa9f62c,_0x310fc4);}export class AIChatHistorySectionListView extends _0x270fa1{[_0x1c1fa6(0x190)];constructor(_0x5643df,_0x22f7bc){const _0x118640=_0x1c1fa6;super(_0x5643df),this[_0x118640(0x190)]=_0x22f7bc,this[_0x118640(0x188)][_0x118640(0x193)](this[_0x118640(0x190)]),this[_0x118640(0x185)]({'attributes':{'class':[_0x118640(0x18f)]}});}[_0x1c1fa6(0x18a)](_0x3c8714){const _0x41961a=_0x1c1fa6;let _0x195bf4=0x0,_0x2769fb=0x0;for(const _0x2cb572 of this[_0x41961a(0x190)]){const {resultsCount:_0x562703,totalItemsCount:_0x3a63b8}=_0x2cb572[_0x41961a(0x18a)](_0x3c8714);_0x195bf4+=_0x562703,_0x2769fb+=_0x3a63b8;}return{'resultsCount':_0x195bf4,'totalItemsCount':_0x2769fb};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc2bb9c=_0x2953;(function(_0x3ed61f,_0x69a88e){const _0x5c10a2=_0x2953,_0x42a268=_0x3ed61f();while(!![]){try{const _0x798e0a=parseInt(_0x5c10a2(0x112))/0x1*(-parseInt(_0x5c10a2(0x115))/0x2)+parseInt(_0x5c10a2(0xce))/0x3+parseInt(_0x5c10a2(0xf3))/0x4*(-parseInt(_0x5c10a2(0xc3))/0x5)+parseInt(_0x5c10a2(0x110))/0x6*(-parseInt(_0x5c10a2(0x111))/0x7)+-parseInt(_0x5c10a2(0xeb))/0x8*(-parseInt(_0x5c10a2(0xcd))/0x9)+parseInt(_0x5c10a2(0xc9))/0xa*(parseInt(_0x5c10a2(0xe1))/0xb)+parseInt(_0x5c10a2(0xdf))/0xc*(parseInt(_0x5c10a2(0xd8))/0xd);if(_0x798e0a===_0x69a88e)break;else _0x42a268['push'](_0x42a268['shift']());}catch(_0x1462bd){_0x42a268['push'](_0x42a268['shift']());}}}(_0x2735,0xbee2c));import{View as _0x1a2dc9,SearchTextView as _0x3e694d,FormHeaderView as _0x2ade21,ButtonView as _0x4d777c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2ed3f1,IconCancel as _0x317864,IconPlus as _0x2cb9b8}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x36d52f}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5ddd87}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3f7f70}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5160f1}from'../aichathistoryui.js';function _0x2735(){const _0x47872e=['ck-ai-notification_error__dismiss-button','_createSkeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isVisible','render','24EDJczC','2714488LsrihW','882KFZVFY','skeletonView','sections','538sDrETa','isLoading','indexOf','addMany','ck-reset_all','clear','title','set','fieldView','extendTemplate','emptyView','openChat','_createSearchView','removeItem','1464215PLjjDa','isMainErrorViewVisible','isSearchViewVisible','isMaximized','ltr','search','20pGDqXZ','sectionsView','bindTemplate','delegate','9IXzVVD','568554qwiIJG','element','_updateViewVisibility','some','splice','itemsViews','bind','length','ck-ai-chat-history__content','updateLoadingState','13sHkzwg','ck-ai-notification','mainErrorView','AI_CHAT_LABEL_NEW_CHAT','errorMessage','remove','resizeButton','31641756LPMGqT','updateTitle','3029477BAgMiC','change:isLoading','push','updateItemLoadingState','isEmptyViewVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','removeHistoryItem','ck-ai-chat-history__empty-message','queryView','hasItems','573168hZKWHW','fire','change:hasItems','updateHistoryItemsWithCategories','change:errorMessage','children','ck-ai-chat__start-conversation','ck-ai-chat-history','12xtmPnB','searchView','getItem','_createErrorView','div','aiHistory','AI_CHAT_HISTORY_SEARCH_LABEL','locale','updateItemTitle','_refreshSearch','_createEmptyStateView','execute','ck-ai-chat-history__empty','ck-hidden','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-rounded-corners','value','ck-ai-header\x20ck-ai-header_history','_createListItemViews','ck-ai-notification_error','AI_CHAT_HISTORY_HEADING','add','items','setTemplate'];_0x2735=function(){return _0x47872e;};return _0x2735();}import{AISkeletonView as _0x34203f,SKELETON_DEFINITIONS as _0x46ca81}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x70c1a4}from'../../aicore/utils/createresizebutton.js';function _0x2953(_0x4a5934,_0x293398){const _0x2735b1=_0x2735();return _0x2953=function(_0x295311,_0x34dc2f){_0x295311=_0x295311-0xb8;let _0x239003=_0x2735b1[_0x295311];return _0x239003;},_0x2953(_0x4a5934,_0x293398);}import{getTranslation as _0x5b950a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x1a2dc9{[_0xc2bb9c(0xf4)];[_0xc2bb9c(0xda)];[_0xc2bb9c(0x113)];[_0xc2bb9c(0xbf)];[_0xc2bb9c(0xca)];[_0xc2bb9c(0xde)];constructor(_0x58d76b,_0x4e4bed){const _0x284dba=_0xc2bb9c;super(_0x58d76b),this[_0x284dba(0xbc)](_0x284dba(0xea),!0x1),this[_0x284dba(0xbc)](_0x284dba(0x116),!0x0),this[_0x284dba(0xbc)](_0x284dba(0xdc),''),this[_0x284dba(0xbc)](_0x284dba(0xc6),!0x1),this[_0x284dba(0xbc)](_0x284dba(0xc5),!0x1),this[_0x284dba(0xbc)](_0x284dba(0xe5),!0x1),this[_0x284dba(0xbc)](_0x284dba(0xc4),!0x1);const _0x169c08=new _0x2ade21(_0x58d76b,{'label':_0x5b950a(_0x58d76b,_0x284dba(0x107)),'icon':_0x2ed3f1,'class':_0x284dba(0x104)});_0x4e4bed&&(this[_0x284dba(0xde)]=_0x70c1a4(_0x58d76b,this),_0x169c08[_0x284dba(0xf0)][_0x284dba(0x108)](this[_0x284dba(0xde)])),this[_0x284dba(0xca)]=new _0x36d52f(_0x58d76b,[]),this[_0x284dba(0xca)][_0x284dba(0xcc)](..._0x5160f1)['to'](this),this[_0x284dba(0xda)]=this[_0x284dba(0xf6)](),this[_0x284dba(0x113)]=this[_0x284dba(0x10c)](),this[_0x284dba(0xbf)]=this[_0x284dba(0xfd)](),this[_0x284dba(0xf4)]=this[_0x284dba(0xc1)](),this[_0x284dba(0xda)][_0x284dba(0xbe)]({'attributes':{'class':[this[_0x284dba(0xcb)]['if'](_0x284dba(0xc4),_0x284dba(0x100),_0x4f6c4c=>!_0x4f6c4c)]}}),this['on'](_0x284dba(0xe2),()=>this[_0x284dba(0xd0)]()),this['on'](_0x284dba(0xed),()=>this[_0x284dba(0xd0)]()),this['on'](_0x284dba(0xef),()=>this[_0x284dba(0xd0)]()),this[_0x284dba(0x10a)]({'tag':_0x284dba(0xf7),'attributes':{'class':['ck',_0x284dba(0xb9),_0x284dba(0xf2),_0x284dba(0x102)],'dir':_0x284dba(0xc7)},'children':[_0x169c08,{'tag':_0x284dba(0xf7),'attributes':{'class':[_0x284dba(0xd6)]},'children':[this[_0x284dba(0x113)],this[_0x284dba(0xda)],this[_0x284dba(0xbf)],this[_0x284dba(0xf4)]]}]});}[_0xc2bb9c(0xd0)](){const _0x22f591=_0xc2bb9c;this[_0x22f591(0xc5)]=!this[_0x22f591(0x116)]&&this[_0x22f591(0xea)],this[_0x22f591(0xe5)]=!this[_0x22f591(0x116)]&&!this[_0x22f591(0xea)]&&!this[_0x22f591(0xdc)],this[_0x22f591(0xc4)]=!this[_0x22f591(0xc5)]&&!!this[_0x22f591(0xdc)];}[_0xc2bb9c(0xc1)](){const _0x195c95=_0xc2bb9c,_0x2120e7=new _0x3e694d(this[_0x195c95(0xfa)],{'filteredView':this[_0x195c95(0xca)],'queryView':{'label':_0x5b950a(this[_0x195c95(0xfa)],_0x195c95(0xf9))},'infoView':{'text':{'notFound':{'primary':_0x440093=>_0x5b950a(this[_0x195c95(0xfa)],_0x195c95(0x10d),_0x440093),'secondary':_0x5b950a(this[_0x195c95(0xfa)],_0x195c95(0xe6))}}}}),_0x2969bb=this[_0x195c95(0xf6)]();return _0x2969bb[_0x195c95(0xbe)]({'attributes':{'class':[this[_0x195c95(0xcb)]['if'](_0x195c95(0xdc),_0x195c95(0x100),_0x15b69e=>!_0x15b69e)]}}),_0x2120e7['on'](_0x195c95(0x10f),()=>{const _0x5c6143=_0x195c95;_0x2120e7[_0x5c6143(0xf0)][_0x5c6143(0x108)](_0x2969bb,0x1);}),_0x2120e7[_0x195c95(0xbe)]({'attributes':{'class':[this[_0x195c95(0xcb)]['if'](_0x195c95(0xc5),_0x195c95(0x100),_0xf2ea43=>!_0xf2ea43)]}}),_0x2120e7;}[_0xc2bb9c(0x10c)](){const _0x1cf592=_0xc2bb9c,_0x1c133e=new _0x34203f(this[_0x1cf592(0xfa)],_0x46ca81[_0x1cf592(0xf8)]);return _0x1c133e[_0x1cf592(0xbe)]({'attributes':{'class':[this[_0x1cf592(0xcb)]['if'](_0x1cf592(0x116),_0x1cf592(0x100),_0x511c1c=>!_0x511c1c)]}}),_0x1c133e;}[_0xc2bb9c(0xf6)](){const _0x384481=_0xc2bb9c,_0x1be49f=new _0x1a2dc9(this[_0x384481(0xfa)]),_0x53950d=new _0x4d777c(this[_0x384481(0xfa)]);_0x53950d[_0x384481(0xbc)]({'withText':!0x1,'icon':_0x317864,'class':_0x384481(0x10b)}),_0x53950d[_0x384481(0xd4)](_0x384481(0x10e))['to'](this,_0x384481(0xea),_0x782bdd=>!!_0x782bdd),_0x53950d['on'](_0x384481(0xfe),()=>{const _0x17b0d7=_0x384481;this[_0x17b0d7(0xdc)]='';});const _0x487556=this[_0x384481(0xcb)];return _0x1be49f[_0x384481(0x10a)]({'tag':_0x384481(0xf7),'attributes':{'class':['ck',_0x384481(0xd9),_0x384481(0x106)]},'children':[{'tag':'p','children':[{'text':_0x487556['to'](_0x384481(0xdc))}]},_0x53950d]}),_0x1be49f;}[_0xc2bb9c(0xfd)](){const _0x1c4266=_0xc2bb9c,_0xbf4743=new _0x4d777c(this[_0x1c4266(0xfa)]);_0xbf4743[_0x1c4266(0xbc)]({'label':_0x5b950a(this[_0x1c4266(0xfa)],_0x1c4266(0xdb)),'withText':!0x0,'icon':_0x2cb9b8,'class':_0x1c4266(0xf1)}),_0xbf4743['on'](_0x1c4266(0xfe),()=>{const _0x5995ba=_0x1c4266;this[_0x5995ba(0xec)](_0x5995ba(0xc0));});const _0x1a3965=new _0x1a2dc9(this[_0x1c4266(0xfa)]);return _0x1a3965[_0x1c4266(0x10a)]({'tag':_0x1c4266(0xf7),'attributes':{'class':[_0x1c4266(0xff),this[_0x1c4266(0xcb)]['if'](_0x1c4266(0xe5),_0x1c4266(0x100),_0xab7f7=>!_0xab7f7)]},'children':[{'tag':'p','attributes':{'class':[_0x1c4266(0xe8)]},'children':[_0x5b950a(this[_0x1c4266(0xfa)],_0x1c4266(0x101))]},_0xbf4743]}),_0x1a3965;}[_0xc2bb9c(0x105)](_0x5f1325,_0x8a9373){const _0x23d187=_0xc2bb9c,_0x5e6393=[];for(const _0x200cb7 of _0x5f1325){const _0xd66c81=new _0x3f7f70(_0x8a9373,_0x200cb7);_0xd66c81[_0x23d187(0xcc)](..._0x5160f1)['to'](this),_0x5e6393[_0x23d187(0xe3)](_0xd66c81);}return _0x5e6393;}[_0xc2bb9c(0xee)](_0x371ccb){const _0x5056d9=_0xc2bb9c,_0x27d3d0=this[_0x5056d9(0xfa)]||'en',_0x3bfccc=[];for(const _0x4e6063 of _0x371ccb){const _0x1b7407=this[_0x5056d9(0x105)](_0x4e6063[_0x5056d9(0x109)],_0x27d3d0);_0x3bfccc[_0x5056d9(0xe3)](new _0x5ddd87(_0x27d3d0,{'title':_0x4e6063[_0x5056d9(0xbb)],'items':_0x1b7407}));}this[_0x5056d9(0xca)][_0x5056d9(0x114)]=_0x3bfccc,this[_0x5056d9(0xca)][_0x5056d9(0x109)][_0x5056d9(0xba)](),this[_0x5056d9(0xca)][_0x5056d9(0x109)][_0x5056d9(0xb8)](_0x3bfccc),this[_0x5056d9(0xea)]=_0x371ccb[_0x5056d9(0xd1)](_0x16fb2c=>_0x16fb2c[_0x5056d9(0x109)][_0x5056d9(0xd5)]>0x0),this[_0x5056d9(0xfc)]();}[_0xc2bb9c(0xe7)](_0x2c7d72){const _0x5ddf62=_0xc2bb9c;for(const _0x1d3a11 of this[_0x5ddf62(0xca)][_0x5ddf62(0x114)]){const _0x536aa8=_0x1d3a11[_0x5ddf62(0xf5)](_0x2c7d72);if(_0x536aa8){if(_0x1d3a11[_0x5ddf62(0xc2)](_0x536aa8),0x0===_0x1d3a11[_0x5ddf62(0xd3)][_0x5ddf62(0xd5)]){const _0x26e8d1=this[_0x5ddf62(0xca)][_0x5ddf62(0x114)][_0x5ddf62(0x117)](_0x1d3a11);-0x1!==_0x26e8d1&&(this[_0x5ddf62(0xca)][_0x5ddf62(0x114)][_0x5ddf62(0xd2)](_0x26e8d1,0x1),this[_0x5ddf62(0xca)][_0x5ddf62(0x109)][_0x5ddf62(0xdd)](_0x1d3a11));}this[_0x5ddf62(0xea)]=this[_0x5ddf62(0xca)][_0x5ddf62(0x114)][_0x5ddf62(0xd5)]>0x0,this[_0x5ddf62(0xfc)]();break;}}}[_0xc2bb9c(0xfb)](_0x3c8576,_0x3176db){const _0x4376c9=_0xc2bb9c;for(const _0x3b7750 of this[_0x4376c9(0xca)][_0x4376c9(0x114)]){const _0x43f1a6=_0x3b7750[_0x4376c9(0xf5)](_0x3c8576);if(_0x43f1a6){_0x43f1a6[_0x4376c9(0xe0)](_0x3176db);break;}}}[_0xc2bb9c(0xe4)](_0x1a85d2,_0x3dcc7e,_0x250727){const _0x19d565=_0xc2bb9c;for(const _0x5a77f0 of this[_0x19d565(0xca)][_0x19d565(0x114)]){const _0x177a27=_0x5a77f0[_0x19d565(0xf5)](_0x1a85d2);if(_0x177a27){_0x177a27[_0x19d565(0xd7)](_0x3dcc7e,_0x250727);break;}}}[_0xc2bb9c(0xfc)](){const _0x40d549=_0xc2bb9c;if(this[_0x40d549(0xea)]){const _0x35cb1f=this[_0x40d549(0xf4)][_0x40d549(0xe9)][_0x40d549(0xbd)]?.[_0x40d549(0xcf)]?.[_0x40d549(0x103)]||'';this[_0x40d549(0xf4)][_0x40d549(0xc8)](_0x35cb1f);}}}
23
+ const _0x3dcfba=_0x26c4;(function(_0x327317,_0x214ed8){const _0x28b654=_0x26c4,_0x442caa=_0x327317();while(!![]){try{const _0x18d6c3=parseInt(_0x28b654(0xe3))/0x1+parseInt(_0x28b654(0xe4))/0x2*(parseInt(_0x28b654(0xb3))/0x3)+parseInt(_0x28b654(0x98))/0x4+-parseInt(_0x28b654(0xe8))/0x5*(parseInt(_0x28b654(0xdb))/0x6)+parseInt(_0x28b654(0x96))/0x7+-parseInt(_0x28b654(0x94))/0x8+parseInt(_0x28b654(0x9f))/0x9*(-parseInt(_0x28b654(0xe2))/0xa);if(_0x18d6c3===_0x214ed8)break;else _0x442caa['push'](_0x442caa['shift']());}catch(_0x308e2a){_0x442caa['push'](_0x442caa['shift']());}}}(_0x5816,0xb1adc));function _0x26c4(_0x115fc3,_0x1bdc99){const _0x581608=_0x5816();return _0x26c4=function(_0x26c495,_0x8ffbc7){_0x26c495=_0x26c495-0x91;let _0x35bbc7=_0x581608[_0x26c495];return _0x35bbc7;},_0x26c4(_0x115fc3,_0x1bdc99);}import{View as _0x40e8ae,SearchTextView as _0x2e5d20,FormHeaderView as _0x292ba3,ButtonView as _0x1fd7d8}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x27dee9,IconCancel as _0x5df330,IconPlus as _0x40fdcb}from'ckeditor5/src/icons.js';function _0x5816(){const _0x1ba87d=['isMainErrorViewVisible','updateLoadingState','delegate','errorMessage','bindTemplate','mainErrorView','_createSkeletonView','9957PzwXnt','skeletonView','change:errorMessage','queryView','ck-ai-header\x20ck-ai-header_history','extendTemplate','div','ck-ai-chat-history','indexOf','isVisible','itemsViews','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_updateViewVisibility','change:hasItems','aiHistory','isLoading','fieldView','_refreshSearch','some','updateHistoryItemsWithCategories','addMany','_createErrorView','ck-rounded-corners','removeItem','isMaximized','_createListItemViews','hasItems','removeHistoryItem','length','emptyView','updateItemTitle','isEmptyViewVisible','updateItemLoadingState','add','isSearchViewVisible','AI_CHAT_HISTORY_EMPTY_MESSAGE','sectionsView','fire','ck-reset_all','114XvolAu','openChat','AI_CHAT_LABEL_NEW_CHAT','clear','sections','change:isLoading','value','10lfmgDx','1394070nuukCA','494hHjEVj','resizeButton','searchView','children','312575LNHuOX','remove','updateTitle','setTemplate','bind','set','ltr','_createEmptyStateView','element','4587576OfbcZl','ck-ai-chat-history__content','1586634viEEVT','ck-ai-chat-history__empty-message','2997088tBzCUH','ck-ai-chat__start-conversation','execute','ck-ai-chat-history__empty','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','push','6307137PKGkNU','locale','splice','ck-ai-notification_error__dismiss-button','render','search','getItem','items','AI_CHAT_HISTORY_SEARCH_LABEL','_createSearchView','ck-ai-notification','ck-ai-notification_error','title'];_0x5816=function(){return _0x1ba87d;};return _0x5816();}import{AIChatHistorySectionListView as _0x52a793}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x131e63}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3a812a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x11eda5}from'../aichathistoryui.js';import{AISkeletonView as _0x59fc2e,SKELETON_DEFINITIONS as _0x270f9d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5d3d4c}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x42367b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x40e8ae{[_0x3dcfba(0xe6)];[_0x3dcfba(0xb1)];[_0x3dcfba(0xb4)];[_0x3dcfba(0xd1)];[_0x3dcfba(0xd8)];[_0x3dcfba(0xe5)];constructor(_0x177fd6,_0x51c22d){const _0x533dc4=_0x3dcfba;super(_0x177fd6),this[_0x533dc4(0xed)](_0x533dc4(0xce),!0x1),this[_0x533dc4(0xed)](_0x533dc4(0xc3),!0x0),this[_0x533dc4(0xed)](_0x533dc4(0xaf),''),this[_0x533dc4(0xed)](_0x533dc4(0xcc),!0x1),this[_0x533dc4(0xed)](_0x533dc4(0xd6),!0x1),this[_0x533dc4(0xed)](_0x533dc4(0xd3),!0x1),this[_0x533dc4(0xed)](_0x533dc4(0xac),!0x1);const _0x108eaa=new _0x292ba3(_0x177fd6,{'label':_0x42367b(_0x177fd6,_0x533dc4(0xbe)),'icon':_0x27dee9,'class':_0x533dc4(0xb7)});_0x51c22d&&(this[_0x533dc4(0xe5)]=_0x5d3d4c(_0x177fd6,this),_0x108eaa[_0x533dc4(0xe7)][_0x533dc4(0xd5)](this[_0x533dc4(0xe5)])),this[_0x533dc4(0xd8)]=new _0x52a793(_0x177fd6,[]),this[_0x533dc4(0xd8)][_0x533dc4(0xae)](..._0x11eda5)['to'](this),this[_0x533dc4(0xb1)]=this[_0x533dc4(0xc9)](),this[_0x533dc4(0xb4)]=this[_0x533dc4(0xb2)](),this[_0x533dc4(0xd1)]=this[_0x533dc4(0x92)](),this[_0x533dc4(0xe6)]=this[_0x533dc4(0xa8)](),this[_0x533dc4(0xb1)][_0x533dc4(0xb8)]({'attributes':{'class':[this[_0x533dc4(0xb0)]['if'](_0x533dc4(0xac),_0x533dc4(0x9c),_0x4b04e2=>!_0x4b04e2)]}}),this['on'](_0x533dc4(0xe0),()=>this[_0x533dc4(0xc0)]()),this['on'](_0x533dc4(0xc1),()=>this[_0x533dc4(0xc0)]()),this['on'](_0x533dc4(0xb5),()=>this[_0x533dc4(0xc0)]()),this[_0x533dc4(0xeb)]({'tag':_0x533dc4(0xb9),'attributes':{'class':['ck',_0x533dc4(0xda),_0x533dc4(0xba),_0x533dc4(0xca)],'dir':_0x533dc4(0x91)},'children':[_0x108eaa,{'tag':_0x533dc4(0xb9),'attributes':{'class':[_0x533dc4(0x95)]},'children':[this[_0x533dc4(0xb4)],this[_0x533dc4(0xb1)],this[_0x533dc4(0xd1)],this[_0x533dc4(0xe6)]]}]});}[_0x3dcfba(0xc0)](){const _0x51b72c=_0x3dcfba;this[_0x51b72c(0xd6)]=!this[_0x51b72c(0xc3)]&&this[_0x51b72c(0xce)],this[_0x51b72c(0xd3)]=!this[_0x51b72c(0xc3)]&&!this[_0x51b72c(0xce)]&&!this[_0x51b72c(0xaf)],this[_0x51b72c(0xac)]=!this[_0x51b72c(0xd6)]&&!!this[_0x51b72c(0xaf)];}[_0x3dcfba(0xa8)](){const _0x3b5b5f=_0x3dcfba,_0x4d20d2=new _0x2e5d20(this[_0x3b5b5f(0xa0)],{'filteredView':this[_0x3b5b5f(0xd8)],'queryView':{'label':_0x42367b(this[_0x3b5b5f(0xa0)],_0x3b5b5f(0xa7))},'infoView':{'text':{'notFound':{'primary':_0x3c11be=>_0x42367b(this[_0x3b5b5f(0xa0)],_0x3b5b5f(0xbf),_0x3c11be),'secondary':_0x42367b(this[_0x3b5b5f(0xa0)],_0x3b5b5f(0x9d))}}}}),_0x43b18d=this[_0x3b5b5f(0xc9)]();return _0x43b18d[_0x3b5b5f(0xb8)]({'attributes':{'class':[this[_0x3b5b5f(0xb0)]['if'](_0x3b5b5f(0xaf),_0x3b5b5f(0x9c),_0x20c52b=>!_0x20c52b)]}}),_0x4d20d2['on'](_0x3b5b5f(0xa3),()=>{const _0x4a1f15=_0x3b5b5f;_0x4d20d2[_0x4a1f15(0xe7)][_0x4a1f15(0xd5)](_0x43b18d,0x1);}),_0x4d20d2[_0x3b5b5f(0xb8)]({'attributes':{'class':[this[_0x3b5b5f(0xb0)]['if'](_0x3b5b5f(0xd6),_0x3b5b5f(0x9c),_0x2b48d4=>!_0x2b48d4)]}}),_0x4d20d2;}[_0x3dcfba(0xb2)](){const _0x4cb788=_0x3dcfba,_0x242223=new _0x59fc2e(this[_0x4cb788(0xa0)],_0x270f9d[_0x4cb788(0xc2)]);return _0x242223[_0x4cb788(0xb8)]({'attributes':{'class':[this[_0x4cb788(0xb0)]['if'](_0x4cb788(0xc3),_0x4cb788(0x9c),_0x167e56=>!_0x167e56)]}}),_0x242223;}[_0x3dcfba(0xc9)](){const _0xd5d675=_0x3dcfba,_0x10d383=new _0x40e8ae(this[_0xd5d675(0xa0)]),_0x3e7ff6=new _0x1fd7d8(this[_0xd5d675(0xa0)]);_0x3e7ff6[_0xd5d675(0xed)]({'withText':!0x1,'icon':_0x5df330,'class':_0xd5d675(0xa2)}),_0x3e7ff6[_0xd5d675(0xec)](_0xd5d675(0xbc))['to'](this,_0xd5d675(0xce),_0x5ea2e9=>!!_0x5ea2e9),_0x3e7ff6['on'](_0xd5d675(0x9a),()=>{const _0x3a5987=_0xd5d675;this[_0x3a5987(0xaf)]='';});const _0x214974=this[_0xd5d675(0xb0)];return _0x10d383[_0xd5d675(0xeb)]({'tag':_0xd5d675(0xb9),'attributes':{'class':['ck',_0xd5d675(0xa9),_0xd5d675(0xaa)]},'children':[{'tag':'p','children':[{'text':_0x214974['to'](_0xd5d675(0xaf))}]},_0x3e7ff6]}),_0x10d383;}[_0x3dcfba(0x92)](){const _0x185be7=_0x3dcfba,_0x42119d=new _0x1fd7d8(this[_0x185be7(0xa0)]);_0x42119d[_0x185be7(0xed)]({'label':_0x42367b(this[_0x185be7(0xa0)],_0x185be7(0xdd)),'withText':!0x0,'icon':_0x40fdcb,'class':_0x185be7(0x99)}),_0x42119d['on'](_0x185be7(0x9a),()=>{const _0x3f0178=_0x185be7;this[_0x3f0178(0xd9)](_0x3f0178(0xdc));});const _0x12b78a=new _0x40e8ae(this[_0x185be7(0xa0)]);return _0x12b78a[_0x185be7(0xeb)]({'tag':_0x185be7(0xb9),'attributes':{'class':[_0x185be7(0x9b),this[_0x185be7(0xb0)]['if'](_0x185be7(0xd3),_0x185be7(0x9c),_0x3f26f7=>!_0x3f26f7)]},'children':[{'tag':'p','attributes':{'class':[_0x185be7(0x97)]},'children':[_0x42367b(this[_0x185be7(0xa0)],_0x185be7(0xd7))]},_0x42119d]}),_0x12b78a;}[_0x3dcfba(0xcd)](_0x3446c8,_0x1f5026){const _0x9f00c5=_0x3dcfba,_0x53354f=[];for(const _0x38a280 of _0x3446c8){const _0x5c490f=new _0x3a812a(_0x1f5026,_0x38a280);_0x5c490f[_0x9f00c5(0xae)](..._0x11eda5)['to'](this),_0x53354f[_0x9f00c5(0x9e)](_0x5c490f);}return _0x53354f;}[_0x3dcfba(0xc7)](_0x147b8d){const _0x15ba26=_0x3dcfba,_0x3a6bb1=this[_0x15ba26(0xa0)]||'en',_0x949b0=[];for(const _0x7a8ec9 of _0x147b8d){const _0x1b84a6=this[_0x15ba26(0xcd)](_0x7a8ec9[_0x15ba26(0xa6)],_0x3a6bb1);_0x949b0[_0x15ba26(0x9e)](new _0x131e63(_0x3a6bb1,{'title':_0x7a8ec9[_0x15ba26(0xab)],'items':_0x1b84a6}));}this[_0x15ba26(0xd8)][_0x15ba26(0xdf)]=_0x949b0,this[_0x15ba26(0xd8)][_0x15ba26(0xa6)][_0x15ba26(0xde)](),this[_0x15ba26(0xd8)][_0x15ba26(0xa6)][_0x15ba26(0xc8)](_0x949b0),this[_0x15ba26(0xce)]=_0x147b8d[_0x15ba26(0xc6)](_0x42178c=>_0x42178c[_0x15ba26(0xa6)][_0x15ba26(0xd0)]>0x0),this[_0x15ba26(0xc5)]();}[_0x3dcfba(0xcf)](_0x7bb57d){const _0xa95e1a=_0x3dcfba;for(const _0x59fee2 of this[_0xa95e1a(0xd8)][_0xa95e1a(0xdf)]){const _0x12ad17=_0x59fee2[_0xa95e1a(0xa5)](_0x7bb57d);if(_0x12ad17){if(_0x59fee2[_0xa95e1a(0xcb)](_0x12ad17),0x0===_0x59fee2[_0xa95e1a(0xbd)][_0xa95e1a(0xd0)]){const _0x661218=this[_0xa95e1a(0xd8)][_0xa95e1a(0xdf)][_0xa95e1a(0xbb)](_0x59fee2);-0x1!==_0x661218&&(this[_0xa95e1a(0xd8)][_0xa95e1a(0xdf)][_0xa95e1a(0xa1)](_0x661218,0x1),this[_0xa95e1a(0xd8)][_0xa95e1a(0xa6)][_0xa95e1a(0xe9)](_0x59fee2));}this[_0xa95e1a(0xce)]=this[_0xa95e1a(0xd8)][_0xa95e1a(0xdf)][_0xa95e1a(0xd0)]>0x0,this[_0xa95e1a(0xc5)]();break;}}}[_0x3dcfba(0xd2)](_0x103562,_0x6e3b00){const _0x35008c=_0x3dcfba;for(const _0x1db018 of this[_0x35008c(0xd8)][_0x35008c(0xdf)]){const _0x119948=_0x1db018[_0x35008c(0xa5)](_0x103562);if(_0x119948){_0x119948[_0x35008c(0xea)](_0x6e3b00);break;}}}[_0x3dcfba(0xd4)](_0x52bf76,_0x469c41,_0x3bb071){const _0x3402ed=_0x3dcfba;for(const _0x15094d of this[_0x3402ed(0xd8)][_0x3402ed(0xdf)]){const _0x964585=_0x15094d[_0x3402ed(0xa5)](_0x52bf76);if(_0x964585){_0x964585[_0x3402ed(0xad)](_0x469c41,_0x3bb071);break;}}}[_0x3dcfba(0xc5)](){const _0x4e7a94=_0x3dcfba;if(this[_0x4e7a94(0xce)]){const _0x419742=this[_0x4e7a94(0xe6)][_0x4e7a94(0xb6)][_0x4e7a94(0xc4)]?.[_0x4e7a94(0x93)]?.[_0x4e7a94(0xe1)]||'';this[_0x4e7a94(0xe6)][_0x4e7a94(0xa4)](_0x419742);}}}
@@ -85,6 +85,10 @@ declare module '../aichat/aichat.js' {
85
85
  * * {@link module:ai/aichatshortcuts/aichatshortcuts~AIChatShortcutTranslateDefinition Translate shortcuts}.
86
86
  */
87
87
  export type AIChatShortcutDefinition = AIChatShortcutChatDefinition | AIChatShortcutReviewDefinition | AIChatShortcutTranslateDefinition;
88
+ /**
89
+ * Values for all available shortcut types.
90
+ */
91
+ export type AIChatShortcutTypeValue = `${AIChatShortcutType}`;
88
92
  /**
89
93
  * The base definition for all shortcut types.
90
94
  */
@@ -100,7 +104,7 @@ export interface AIChatShortcutBaseDefinition {
100
104
  /**
101
105
  * The type of the shortcut.
102
106
  */
103
- readonly type: AIChatShortcutType;
107
+ readonly type: AIChatShortcutTypeValue;
104
108
  /**
105
109
  * The icon of the shortcut in SVG string format.
106
110
  *
@@ -154,7 +158,7 @@ export interface AIChatShortcutBaseDefinition {
154
158
  * ```
155
159
  */
156
160
  export interface AIChatShortcutChatDefinition extends AIChatShortcutBaseDefinition {
157
- type: AIChatShortcutType.CHAT;
161
+ type: 'chat';
158
162
  /**
159
163
  * The prompt to be sent to the AI Chat.
160
164
  */
@@ -253,7 +257,7 @@ export interface AIChatShortcutChatDefinition extends AIChatShortcutBaseDefiniti
253
257
  * ```
254
258
  */
255
259
  export interface AIChatShortcutReviewDefinition extends AIChatShortcutBaseDefinition {
256
- type: AIChatShortcutType.REVIEW;
260
+ type: 'review';
257
261
  /**
258
262
  * The ID of the review check to be run.
259
263
  *
@@ -312,7 +316,7 @@ export interface AIChatShortcutReviewDefinition extends AIChatShortcutBaseDefini
312
316
  * ```
313
317
  */
314
318
  export interface AIChatShortcutTranslateDefinition extends AIChatShortcutBaseDefinition {
315
- type: AIChatShortcutType.TRANSLATE;
319
+ type: 'translate';
316
320
  /**
317
321
  * The language to be used for the translation.
318
322
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x181d8a=_0x2c9b;(function(_0x5c61ad,_0x44d9a2){const _0x32a452=_0x2c9b,_0x5daa6f=_0x5c61ad();while(!![]){try{const _0x1dc0e8=-parseInt(_0x32a452(0x16f))/0x1+-parseInt(_0x32a452(0x19f))/0x2*(parseInt(_0x32a452(0x16b))/0x3)+-parseInt(_0x32a452(0x194))/0x4+parseInt(_0x32a452(0x17a))/0x5*(-parseInt(_0x32a452(0x1a7))/0x6)+-parseInt(_0x32a452(0x16a))/0x7*(-parseInt(_0x32a452(0x180))/0x8)+-parseInt(_0x32a452(0x18a))/0x9*(-parseInt(_0x32a452(0x172))/0xa)+parseInt(_0x32a452(0x169))/0xb*(parseInt(_0x32a452(0x1b3))/0xc);if(_0x1dc0e8===_0x44d9a2)break;else _0x5daa6f['push'](_0x5daa6f['shift']());}catch(_0x6dc1d2){_0x5daa6f['push'](_0x5daa6f['shift']());}}}(_0x4249,0x9d4b0));import{AIChatUI as _0x55d468}from'../aichat/aichatui.js';import{ContextPlugin as _0x2b3992}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x4d42c6}from'./ui/aichatshortcutsview.js';function _0x4249(){const _0xf77026=['setModel','removeFeedItem','33oSvwsf','622321bvYFZF','5520BBKWWm','ai-chat-shortcuts-invalid-config','_shortcuts','setPromptInputValue','1281925OWVurF','chat-shortcuts','params','9432140HzHaWV','sendMessage','AIReviewModeUI','getModel','execute','pluginName','_shortcutsView','plugins','7250PBCBkd','find','runReviewCheck','length','addFeedItemCustomElement','args','56mNyRRL','isOfficialPlugin','activateTab','language','AIChatShortcuts','REVIEW','_removeShortcuts','requires','_executeShortcut','init','9JZpjij','AITranslateUI','string','_validateShortcuts','values','locale','setReasoning','addCurrentDocumentToChatContext','config','source','1090452HOJVyX','listenTo','view','fire','_runChatShortcut','getDefault','conversationCreated','render','AITabs','setWebSearch','destroy','192QFkeOv','focusPromptInput','element','isFromHistory','reviewMode','has','includes','_runTranslateShortcut','2256AENqHP','ai-chat-shortcuts-ai-tabs-not-found','type','isPremiumPlugin','ai.chat.shortcuts','_switchTab','TRANSLATE','chatModels','label','prompt','CHAT','check','5420460bvAZnX','_injectShortcuts','hasFeedItem','interactionStarted','review','custom','context','get','_runReviewShortcut','_aiChatUI','AIChat','forEach','ai-chat-shortcuts-review-mode-not-found','activeConversation','ai-chat-shortcuts-translate-not-found','AIChatController','chat','translate'];_0x4249=function(){return _0xf77026;};return _0x4249();}import{CKEditorError as _0x50058a}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x181d8a(0x170);function _0x2c9b(_0x5dc68a,_0x7a6237){const _0x424989=_0x4249();return _0x2c9b=function(_0x2c9bc1,_0x1960d3){_0x2c9bc1=_0x2c9bc1-0x15f;let _0xa3c711=_0x424989[_0x2c9bc1];return _0xa3c711;},_0x2c9b(_0x5dc68a,_0x7a6237);}export var AIChatShortcutType;!function(_0x17c44f){const _0x55f0b6=_0x181d8a;_0x17c44f[_0x55f0b6(0x1b1)]=_0x55f0b6(0x165),_0x17c44f[_0x55f0b6(0x185)]=_0x55f0b6(0x1b7),_0x17c44f[_0x55f0b6(0x1ad)]=_0x55f0b6(0x166);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x2b3992{[_0x181d8a(0x16d)];[_0x181d8a(0x178)];[_0x181d8a(0x1bc)];static get[_0x181d8a(0x187)](){return[_0x55d468];}static get[_0x181d8a(0x177)](){const _0x30e6a9=_0x181d8a;return _0x30e6a9(0x184);}static get[_0x181d8a(0x181)](){return!0x0;}static get[_0x181d8a(0x1aa)](){return!0x0;}[_0x181d8a(0x189)](){const _0x4b3e9e=_0x181d8a;this[_0x4b3e9e(0x1bc)]=this[_0x4b3e9e(0x1b9)][_0x4b3e9e(0x179)][_0x4b3e9e(0x1ba)](_0x55d468),this[_0x4b3e9e(0x16d)]=this[_0x4b3e9e(0x1b9)][_0x4b3e9e(0x192)][_0x4b3e9e(0x1ba)](_0x4b3e9e(0x1ab))??[];const _0x12592f=this[_0x4b3e9e(0x1b9)][_0x4b3e9e(0x179)][_0x4b3e9e(0x1ba)](_0x4b3e9e(0x164));this[_0x4b3e9e(0x16d)][_0x4b3e9e(0x17d)]&&(this[_0x4b3e9e(0x18d)](),this[_0x4b3e9e(0x1bc)]['on'](_0x4b3e9e(0x19a),()=>{const _0x59b83c=_0x4b3e9e;_0x12592f[_0x59b83c(0x162)][_0x59b83c(0x1a2)]||this[_0x59b83c(0x1b4)]();}),this[_0x4b3e9e(0x195)](_0x12592f,_0x4b3e9e(0x1b6),()=>{const _0x302444=_0x4b3e9e;this[_0x302444(0x186)]();}));}[_0x181d8a(0x18d)](){const _0x564c39=_0x181d8a,_0x429f02=Object[_0x564c39(0x18e)](AIChatShortcutType);this[_0x564c39(0x16d)][_0x564c39(0x160)](_0x2fa5d1=>{const _0x5f26ff=_0x564c39;let _0x5ef202=!0x0;if(_0x2fa5d1['id']&&_0x2fa5d1[_0x5f26ff(0x1af)]&&_0x429f02[_0x5f26ff(0x1a5)](_0x2fa5d1[_0x5f26ff(0x1a9)])?_0x5f26ff(0x165)===_0x2fa5d1[_0x5f26ff(0x1a9)]&&(_0x5ef202=_0x5f26ff(0x18c)==typeof _0x2fa5d1[_0x5f26ff(0x1b0)]):_0x5ef202=!0x1,!_0x5ef202)throw new _0x50058a(_0x5f26ff(0x16c),this[_0x5f26ff(0x1b9)],{'shortcut':_0x2fa5d1});});}[_0x181d8a(0x1b4)](){const _0x577cf1=_0x181d8a,_0x1c967b=this[_0x577cf1(0x1b9)][_0x577cf1(0x179)][_0x577cf1(0x1ba)](_0x55d468);this[_0x577cf1(0x178)]=new _0x4d42c6(this[_0x577cf1(0x1b9)][_0x577cf1(0x18f)],this[_0x577cf1(0x16d)]),this[_0x577cf1(0x178)][_0x577cf1(0x19b)](),_0x1c967b[_0x577cf1(0x17e)](this[_0x577cf1(0x178)][_0x577cf1(0x1a1)],Ut),this[_0x577cf1(0x178)]['on'](_0x577cf1(0x176),_0x2b6cb2=>{const _0x3245d3=_0x577cf1,_0x41f78a=_0x2b6cb2[_0x3245d3(0x193)]['id'];this[_0x3245d3(0x188)](_0x41f78a);});}[_0x181d8a(0x186)](){const _0xc74e62=_0x181d8a,_0x12f404=this[_0xc74e62(0x1b9)][_0xc74e62(0x179)][_0xc74e62(0x1ba)](_0x55d468);_0x12f404[_0xc74e62(0x1b5)](Ut)&&_0x12f404[_0xc74e62(0x168)](Ut),this[_0xc74e62(0x178)]?.[_0xc74e62(0x19e)]();}[_0x181d8a(0x188)](_0x393aae){const _0x11ebbe=_0x181d8a,_0x3b9ab9=this[_0x11ebbe(0x16d)][_0x11ebbe(0x17b)](_0x19f0c9=>_0x19f0c9['id']===_0x393aae),_0xb3ed9a=_0x3b9ab9[_0x11ebbe(0x1a9)];_0x11ebbe(0x165)===_0xb3ed9a?this[_0x11ebbe(0x198)](_0x3b9ab9):_0x11ebbe(0x1b7)===_0xb3ed9a?_0x3b9ab9[_0x11ebbe(0x1b2)]?this[_0x11ebbe(0x1bb)](_0x3b9ab9):this[_0x11ebbe(0x1ac)](_0x11ebbe(0x1a3)):_0x11ebbe(0x166)===_0xb3ed9a&&(_0x3b9ab9[_0x11ebbe(0x183)]?this[_0x11ebbe(0x1a6)](_0x3b9ab9):this[_0x11ebbe(0x1ac)](_0x11ebbe(0x166)));}[_0x181d8a(0x1ac)](_0x445c6f){const _0x54f418=_0x181d8a;if(!this[_0x54f418(0x1b9)][_0x54f418(0x179)][_0x54f418(0x1a4)](_0x54f418(0x19c)))throw new _0x50058a(_0x54f418(0x1a8),this[_0x54f418(0x1b9)],{'tabName':_0x445c6f});this[_0x54f418(0x1b9)][_0x54f418(0x179)][_0x54f418(0x1ba)](_0x54f418(0x19c))[_0x54f418(0x196)][_0x54f418(0x182)](_0x445c6f);}async[_0x181d8a(0x198)]({prompt:_0x2b213d,draftMode:_0x451211,useWebSearch:_0x1bc03a=!0x1,useReasoning:_0xde945b=!0x1,model:_0x4115c3}){const _0x4eaef0=_0x181d8a,_0x1a1525=this[_0x4eaef0(0x1b9)][_0x4eaef0(0x179)][_0x4eaef0(0x1ba)](_0x4eaef0(0x15f)),_0x5c07bb=this[_0x4eaef0(0x1b9)][_0x4eaef0(0x179)][_0x4eaef0(0x1ba)](_0x4eaef0(0x164)),_0x466bb1=_0x5c07bb[_0x4eaef0(0x162)];let _0x4bddc5;_0x4bddc5=_0x4115c3?await _0x466bb1[_0x4eaef0(0x1ae)][_0x4eaef0(0x175)](_0x4115c3):await _0x466bb1[_0x4eaef0(0x1ae)][_0x4eaef0(0x199)](),_0x4bddc5&&await _0x466bb1[_0x4eaef0(0x167)](_0x4bddc5),_0x466bb1[_0x4eaef0(0x19d)](_0x1bc03a),_0x466bb1[_0x4eaef0(0x190)](_0xde945b),_0x5c07bb[_0x4eaef0(0x191)](),_0x451211?(this[_0x4eaef0(0x1bc)][_0x4eaef0(0x16e)](_0x2b213d),this[_0x4eaef0(0x1bc)][_0x4eaef0(0x1a0)](!0x0)):_0x1a1525[_0x4eaef0(0x173)]({'message':_0x2b213d});}[_0x181d8a(0x1bb)]({check:_0x2f1375,model:_0x2e3922,prompt:_0x7572fb,params:_0x37a16c}){const _0x38414e=_0x181d8a;if(!this[_0x38414e(0x1b9)][_0x38414e(0x179)][_0x38414e(0x1a4)](_0x38414e(0x174)))throw new _0x50058a(_0x38414e(0x161),this[_0x38414e(0x1b9)]);this[_0x38414e(0x1ac)](_0x38414e(0x1a3));const _0x47ecb9={'id':_0x2f1375,'isCustom':_0x38414e(0x1b8)===_0x2f1375};_0x2e3922&&_0x7572fb&&(_0x47ecb9[_0x38414e(0x17f)]={'model':_0x2e3922,'prompt':_0x7572fb}),_0x37a16c&&(_0x47ecb9[_0x38414e(0x171)]=_0x37a16c),this[_0x38414e(0x1b9)][_0x38414e(0x179)][_0x38414e(0x1ba)](_0x38414e(0x174))[_0x38414e(0x197)](_0x38414e(0x17c),_0x47ecb9);}[_0x181d8a(0x1a6)]({language:_0x295192}){const _0x2520be=_0x181d8a;if(!this[_0x2520be(0x1b9)][_0x2520be(0x179)][_0x2520be(0x1a4)](_0x2520be(0x18b)))throw new _0x50058a(_0x2520be(0x163),this[_0x2520be(0x1b9)]);this[_0x2520be(0x1ac)](_0x2520be(0x166)),this[_0x2520be(0x1b9)][_0x2520be(0x179)][_0x2520be(0x1ba)](_0x2520be(0x18b))[_0x2520be(0x197)](_0x2520be(0x17c),{'id':_0x295192,'args':{'language':_0x295192}});}}
23
+ const _0x2a513e=_0x4951;(function(_0xf5deb1,_0x54a54c){const _0x4bcf38=_0x4951,_0xe5ef1e=_0xf5deb1();while(!![]){try{const _0x30b81c=parseInt(_0x4bcf38(0x107))/0x1*(-parseInt(_0x4bcf38(0xc0))/0x2)+parseInt(_0x4bcf38(0x103))/0x3+-parseInt(_0x4bcf38(0xda))/0x4*(parseInt(_0x4bcf38(0xf2))/0x5)+-parseInt(_0x4bcf38(0xca))/0x6+-parseInt(_0x4bcf38(0xf3))/0x7+-parseInt(_0x4bcf38(0xb9))/0x8*(-parseInt(_0x4bcf38(0xc6))/0x9)+-parseInt(_0x4bcf38(0x109))/0xa*(-parseInt(_0x4bcf38(0xea))/0xb);if(_0x30b81c===_0x54a54c)break;else _0xe5ef1e['push'](_0xe5ef1e['shift']());}catch(_0x1dfd34){_0xe5ef1e['push'](_0xe5ef1e['shift']());}}}(_0x4c67,0x3a93f));import{AIChatUI as _0xe7f2e1}from'../aichat/aichatui.js';import{ContextPlugin as _0x4671d7}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x3bd31f}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x8d2ab8}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x2a513e(0xfd);export var AIChatShortcutType;!function(_0x3e5d03){const _0x330113=_0x2a513e;_0x3e5d03[_0x330113(0xc9)]=_0x330113(0xe0),_0x3e5d03[_0x330113(0xb4)]=_0x330113(0xf1),_0x3e5d03[_0x330113(0xc8)]=_0x330113(0xe5);}(AIChatShortcutType||(AIChatShortcutType={}));function _0x4951(_0x1e4ad9,_0x4c79af){const _0x4c67e3=_0x4c67();return _0x4951=function(_0x495142,_0x7d9261){_0x495142=_0x495142-0xaf;let _0x4c8a06=_0x4c67e3[_0x495142];return _0x4c8a06;},_0x4951(_0x1e4ad9,_0x4c79af);}export class AIChatShortcuts extends _0x4671d7{[_0x2a513e(0x10a)];[_0x2a513e(0xb7)];[_0x2a513e(0xb5)];static get[_0x2a513e(0xff)](){return[_0xe7f2e1];}static get[_0x2a513e(0x102)](){const _0x3eda54=_0x2a513e;return _0x3eda54(0xbb);}static get[_0x2a513e(0xd3)](){return!0x0;}static get[_0x2a513e(0xbd)](){return!0x0;}[_0x2a513e(0xe7)](){const _0x251a2d=_0x2a513e;this[_0x251a2d(0xb5)]=this[_0x251a2d(0xec)][_0x251a2d(0xbf)][_0x251a2d(0xfe)](_0xe7f2e1),this[_0x251a2d(0x10a)]=this[_0x251a2d(0xec)][_0x251a2d(0xc2)][_0x251a2d(0xfe)](_0x251a2d(0xee))??[];const _0xc8cd3f=this[_0x251a2d(0xec)][_0x251a2d(0xbf)][_0x251a2d(0xfe)](_0x251a2d(0xd1));this[_0x251a2d(0x10a)][_0x251a2d(0xc1)]&&(this[_0x251a2d(0xf5)](),this[_0x251a2d(0xb5)]['on'](_0x251a2d(0xf9),()=>{const _0x45cc53=_0x251a2d;_0xc8cd3f[_0x45cc53(0x108)][_0x45cc53(0xef)]||this[_0x45cc53(0xdd)]();}),this[_0x251a2d(0xb0)](_0xc8cd3f,_0x251a2d(0xcf),()=>{const _0x2cb856=_0x251a2d;this[_0x2cb856(0xe4)]();}));}[_0x2a513e(0xf5)](){const _0x1e439c=_0x2a513e,_0x3e0eb3=Object[_0x1e439c(0x101)](AIChatShortcutType);this[_0x1e439c(0x10a)][_0x1e439c(0xf0)](_0x4aa84d=>{const _0x1f9f90=_0x1e439c;let _0x39c1b3=!0x0;if(_0x4aa84d['id']&&_0x4aa84d[_0x1f9f90(0xba)]&&_0x3e0eb3[_0x1f9f90(0xaf)](_0x4aa84d[_0x1f9f90(0xc3)])?_0x1f9f90(0xe0)===_0x4aa84d[_0x1f9f90(0xc3)]&&(_0x39c1b3=_0x1f9f90(0x100)==typeof _0x4aa84d[_0x1f9f90(0xdb)]):_0x39c1b3=!0x1,!_0x39c1b3)throw new _0x8d2ab8(_0x1f9f90(0xf6),this[_0x1f9f90(0xec)],{'shortcut':_0x4aa84d});});}[_0x2a513e(0xdd)](){const _0x3696c2=_0x2a513e,_0x58fee5=this[_0x3696c2(0xec)][_0x3696c2(0xbf)][_0x3696c2(0xfe)](_0xe7f2e1);this[_0x3696c2(0xb7)]=new _0x3bd31f(this[_0x3696c2(0xec)][_0x3696c2(0xcc)],this[_0x3696c2(0x10a)]),this[_0x3696c2(0xb7)][_0x3696c2(0xb3)](),_0x58fee5[_0x3696c2(0x106)](this[_0x3696c2(0xb7)][_0x3696c2(0xf4)],Ut),this[_0x3696c2(0xb7)]['on'](_0x3696c2(0xbe),_0x5d40ce=>{const _0x39917b=_0x3696c2,_0x3045fa=_0x5d40ce[_0x39917b(0xe3)]['id'];this[_0x39917b(0xe8)](_0x3045fa);});}[_0x2a513e(0xe4)](){const _0x8ad437=_0x2a513e,_0xe6bdb6=this[_0x8ad437(0xec)][_0x8ad437(0xbf)][_0x8ad437(0xfe)](_0xe7f2e1);_0xe6bdb6[_0x8ad437(0xcd)](Ut)&&_0xe6bdb6[_0x8ad437(0xe6)](Ut),this[_0x8ad437(0xb7)]?.[_0x8ad437(0xc7)]();}[_0x2a513e(0xe8)](_0xe56b9){const _0x3aac28=_0x2a513e,_0x649b71=this[_0x3aac28(0x10a)][_0x3aac28(0xb1)](_0x5ad206=>_0x5ad206['id']===_0xe56b9),_0x352006=_0x649b71[_0x3aac28(0xc3)];_0x3aac28(0xe0)===_0x352006?this[_0x3aac28(0xde)](_0x649b71):_0x3aac28(0xf1)===_0x352006?_0x649b71[_0x3aac28(0xd6)]?this[_0x3aac28(0xb6)](_0x649b71):this[_0x3aac28(0xfb)](_0x3aac28(0xfc)):_0x3aac28(0xe5)===_0x352006&&(_0x649b71[_0x3aac28(0x10b)]?this[_0x3aac28(0xd4)](_0x649b71):this[_0x3aac28(0xfb)](_0x3aac28(0xe5)));}[_0x2a513e(0xfb)](_0x222b02){const _0x2bed36=_0x2a513e;if(!this[_0x2bed36(0xec)][_0x2bed36(0xbf)][_0x2bed36(0xed)](_0x2bed36(0xce)))throw new _0x8d2ab8(_0x2bed36(0xd9),this[_0x2bed36(0xec)],{'tabName':_0x222b02});this[_0x2bed36(0xec)][_0x2bed36(0xbf)][_0x2bed36(0xfe)](_0x2bed36(0xce))[_0x2bed36(0xdc)][_0x2bed36(0xe9)](_0x222b02);}async[_0x2a513e(0xde)]({prompt:_0x5d7423,draftMode:_0x2b5e71,useWebSearch:_0x1cdc24=!0x1,useReasoning:_0x1ccc84=!0x1,model:_0x5e51af}){const _0x43761e=_0x2a513e,_0x39806d=this[_0x43761e(0xec)][_0x43761e(0xbf)][_0x43761e(0xfe)](_0x43761e(0xc5)),_0x14cf2b=this[_0x43761e(0xec)][_0x43761e(0xbf)][_0x43761e(0xfe)](_0x43761e(0xd1)),_0x1afe03=_0x14cf2b[_0x43761e(0x108)];let _0x5a9baa;_0x5a9baa=_0x5e51af?await _0x1afe03[_0x43761e(0xe1)][_0x43761e(0xd2)](_0x5e51af):await _0x1afe03[_0x43761e(0xe1)][_0x43761e(0xfa)](),_0x5a9baa&&await _0x1afe03[_0x43761e(0xdf)](_0x5a9baa),_0x1afe03[_0x43761e(0xbc)](_0x1cdc24),_0x1afe03[_0x43761e(0xd7)](_0x1ccc84),_0x14cf2b[_0x43761e(0xd5)](),_0x2b5e71?(this[_0x43761e(0xb5)][_0x43761e(0x104)](_0x5d7423),this[_0x43761e(0xb5)][_0x43761e(0xc4)](!0x0)):_0x39806d[_0x43761e(0xd0)]({'message':_0x5d7423});}[_0x2a513e(0xb6)]({check:_0x3312d0,model:_0x8887b,prompt:_0x2f1861,params:_0xad05c}){const _0x44c601=_0x2a513e;if(!this[_0x44c601(0xec)][_0x44c601(0xbf)][_0x44c601(0xed)](_0x44c601(0xcb)))throw new _0x8d2ab8(_0x44c601(0xf7),this[_0x44c601(0xec)]);this[_0x44c601(0xfb)](_0x44c601(0xfc));const _0x55ba09={'id':_0x3312d0,'isCustom':_0x44c601(0xe2)===_0x3312d0};_0x8887b&&_0x2f1861&&(_0x55ba09[_0x44c601(0xb8)]={'model':_0x8887b,'prompt':_0x2f1861}),_0xad05c&&(_0x55ba09[_0x44c601(0x105)]=_0xad05c),this[_0x44c601(0xec)][_0x44c601(0xbf)][_0x44c601(0xfe)](_0x44c601(0xcb))[_0x44c601(0xf8)](_0x44c601(0xb2),_0x55ba09);}[_0x2a513e(0xd4)]({language:_0x361925}){const _0x152bc1=_0x2a513e;if(!this[_0x152bc1(0xec)][_0x152bc1(0xbf)][_0x152bc1(0xed)](_0x152bc1(0xeb)))throw new _0x8d2ab8(_0x152bc1(0xd8),this[_0x152bc1(0xec)]);this[_0x152bc1(0xfb)](_0x152bc1(0xe5)),this[_0x152bc1(0xec)][_0x152bc1(0xbf)][_0x152bc1(0xfe)](_0x152bc1(0xeb))[_0x152bc1(0xf8)](_0x152bc1(0xb2),{'id':_0x361925,'args':{'language':_0x361925}});}}function _0x4c67(){const _0x5c84f8=['addFeedItemCustomElement','1WyyJfV','activeConversation','510LCukwR','_shortcuts','language','includes','listenTo','find','runReviewCheck','render','REVIEW','_aiChatUI','_runReviewShortcut','_shortcutsView','args','320176FIIspP','label','AIChatShortcuts','setWebSearch','isPremiumPlugin','execute','plugins','156958xsLFnJ','length','config','type','focusPromptInput','AIChat','9WalfoR','destroy','TRANSLATE','CHAT','1305372OGAfNH','AIReviewModeUI','locale','hasFeedItem','AITabs','interactionStarted','sendMessage','AIChatController','getModel','isOfficialPlugin','_runTranslateShortcut','addCurrentDocumentToChatContext','check','setReasoning','ai-chat-shortcuts-translate-not-found','ai-chat-shortcuts-ai-tabs-not-found','4btAJZD','prompt','view','_injectShortcuts','_runChatShortcut','setModel','chat','chatModels','custom','source','_removeShortcuts','translate','removeFeedItem','init','_executeShortcut','activateTab','108427onMpRb','AITranslateUI','context','has','ai.chat.shortcuts','isFromHistory','forEach','review','539445vVWRfh','750253BbvNnE','element','_validateShortcuts','ai-chat-shortcuts-invalid-config','ai-chat-shortcuts-review-mode-not-found','fire','conversationCreated','getDefault','_switchTab','reviewMode','chat-shortcuts','get','requires','string','values','pluginName','624945QunVnJ','setPromptInputValue','params'];_0x4c67=function(){return _0x5c84f8;};return _0x4c67();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cb06d=_0x2b17;(function(_0x3e2af9,_0x12556d){const _0x53362e=_0x2b17,_0x463b6e=_0x3e2af9();while(!![]){try{const _0x339632=-parseInt(_0x53362e(0x1e3))/0x1+parseInt(_0x53362e(0x1db))/0x2*(-parseInt(_0x53362e(0x1e8))/0x3)+parseInt(_0x53362e(0x1de))/0x4+parseInt(_0x53362e(0x1e9))/0x5*(parseInt(_0x53362e(0x1ea))/0x6)+parseInt(_0x53362e(0x1dd))/0x7*(parseInt(_0x53362e(0x1e6))/0x8)+parseInt(_0x53362e(0x1dc))/0x9+-parseInt(_0x53362e(0x1ec))/0xa*(parseInt(_0x53362e(0x1ed))/0xb);if(_0x339632===_0x12556d)break;else _0x463b6e['push'](_0x463b6e['shift']());}catch(_0x1c6364){_0x463b6e['push'](_0x463b6e['shift']());}}}(_0x1790,0x823b5));import{ListItemView as _0xa10ec8,ListView as _0x2b3db5,View as _0x3d10ee}from'ckeditor5/src/ui.js';function _0x2b17(_0x135543,_0xd48cf5){const _0x179089=_0x1790();return _0x2b17=function(_0x2b17e2,_0x2565fb){_0x2b17e2=_0x2b17e2-0x1db;let _0x56e2df=_0x179089[_0x2b17e2];return _0x56e2df;},_0x2b17(_0x135543,_0xd48cf5);}import{AIChatShortcutView as _0x480820}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x3d10ee{[_0x2cb06d(0x1e4)];constructor(_0x50172a,_0x14965f){const _0x4fc14d=_0x2cb06d;super(_0x50172a);const _0x285256=_0x14965f[_0x4fc14d(0x1ee)](_0x32101a=>{const _0x5376e3=_0x4fc14d,_0x31f533=new _0xa10ec8(this[_0x5376e3(0x1f0)]),_0x2dd2f9=new _0x480820(this[_0x5376e3(0x1f0)],_0x32101a);return _0x31f533[_0x5376e3(0x1ef)][_0x5376e3(0x1e2)](_0x2dd2f9),_0x2dd2f9[_0x5376e3(0x1e0)](_0x5376e3(0x1e1))['to'](this),_0x31f533;});this[_0x4fc14d(0x1e4)]=new _0x2b3db5(this[_0x4fc14d(0x1f0)]),this[_0x4fc14d(0x1e4)][_0x4fc14d(0x1e5)][_0x4fc14d(0x1e7)](_0x285256),this[_0x4fc14d(0x1df)]({'tag':_0x4fc14d(0x1eb),'attributes':{'class':['ck',_0x4fc14d(0x1f1)]},'children':[this[_0x4fc14d(0x1e4)]]});}}function _0x1790(){const _0x137105=['ck-ai-chat-shortcuts','2qxmnIu','3639537hzRTUI','7fDHTar','2779452tjApoH','setTemplate','delegate','execute','add','531290GtdEyl','listView','items','6698248VmimjW','addMany','931914XcAtPy','4190uIcSvn','216dcPsfS','div','5913480CwKUod','11ehYTCx','map','children','locale'];_0x1790=function(){return _0x137105;};return _0x1790();}
23
+ const _0x1f3302=_0x4e09;function _0x4e09(_0x4818a1,_0x3cd845){const _0x49f947=_0x49f9();return _0x4e09=function(_0x4e09b3,_0x2fd0c8){_0x4e09b3=_0x4e09b3-0x1d6;let _0x39952f=_0x49f947[_0x4e09b3];return _0x39952f;},_0x4e09(_0x4818a1,_0x3cd845);}(function(_0x2d8821,_0x13c5fc){const _0x2ceca3=_0x4e09,_0x59f944=_0x2d8821();while(!![]){try{const _0x5152ac=-parseInt(_0x2ceca3(0x1db))/0x1+-parseInt(_0x2ceca3(0x1e9))/0x2+parseInt(_0x2ceca3(0x1e1))/0x3*(parseInt(_0x2ceca3(0x1e8))/0x4)+parseInt(_0x2ceca3(0x1e0))/0x5+-parseInt(_0x2ceca3(0x1d9))/0x6+parseInt(_0x2ceca3(0x1e2))/0x7*(parseInt(_0x2ceca3(0x1eb))/0x8)+parseInt(_0x2ceca3(0x1e5))/0x9*(-parseInt(_0x2ceca3(0x1e6))/0xa);if(_0x5152ac===_0x13c5fc)break;else _0x59f944['push'](_0x59f944['shift']());}catch(_0xfc138a){_0x59f944['push'](_0x59f944['shift']());}}}(_0x49f9,0x37184));import{ListItemView as _0x5b0dcc,ListView as _0x42d536,View as _0x5d1657}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x528900}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5d1657{[_0x1f3302(0x1d6)];constructor(_0x25b8e2,_0x34d671){const _0x1168fc=_0x1f3302;super(_0x25b8e2);const _0x3e13d0=_0x34d671[_0x1168fc(0x1d8)](_0x41e269=>{const _0x5b2e83=_0x1168fc,_0x265164=new _0x5b0dcc(this[_0x5b2e83(0x1e4)]),_0x5efc2e=new _0x528900(this[_0x5b2e83(0x1e4)],_0x41e269);return _0x265164[_0x5b2e83(0x1df)][_0x5b2e83(0x1de)](_0x5efc2e),_0x5efc2e[_0x5b2e83(0x1ea)](_0x5b2e83(0x1da))['to'](this),_0x265164;});this[_0x1168fc(0x1d6)]=new _0x42d536(this[_0x1168fc(0x1e4)]),this[_0x1168fc(0x1d6)][_0x1168fc(0x1e3)][_0x1168fc(0x1e7)](_0x3e13d0),this[_0x1168fc(0x1dc)]({'tag':_0x1168fc(0x1dd),'attributes':{'class':['ck',_0x1168fc(0x1d7)]},'children':[this[_0x1168fc(0x1d6)]]});}}function _0x49f9(){const _0x46f09b=['delegate','10776mDUsOn','listView','ck-ai-chat-shortcuts','map','2121744SllxMz','execute','155483pEUuTA','setTemplate','div','add','children','2194090vOyHkt','3DkMRZq','2177OLIjTG','items','locale','9RtXjZw','919390xJNOPr','addMany','1010024wGCSOa','567054UTwsNd'];_0x49f9=function(){return _0x46f09b;};return _0x49f9();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x35aa(_0x51fdcf,_0x21a0e8){const _0x1860e0=_0x1860();return _0x35aa=function(_0x35aa9c,_0x1cebcf){_0x35aa9c=_0x35aa9c-0x1ea;let _0x21337f=_0x1860e0[_0x35aa9c];return _0x21337f;},_0x35aa(_0x51fdcf,_0x21a0e8);}function _0x1860(){const _0x22194e=['chat','530CVySTu','185BAGtZy','4328ooUOxf','1419684BFgUfc','set','review','label','1545736fbqRYu','ck-ai-chat-shortcut','1998000LeMQqV','1186325BVSQDS','extendTemplate','translate','1359bXCQFd','6HTzujE','icon','262348TWxaXy'];_0x1860=function(){return _0x22194e;};return _0x1860();}(function(_0x1dec42,_0x3a4f3e){const _0x1ed949=_0x35aa,_0x51b879=_0x1dec42();while(!![]){try{const _0x5a001c=parseInt(_0x1ed949(0x1f1))/0x1*(-parseInt(_0x1ed949(0x1f2))/0x2)+-parseInt(_0x1ed949(0x1ec))/0x3*(-parseInt(_0x1ed949(0x1ee))/0x4)+parseInt(_0x1ed949(0x1f9))/0x5+-parseInt(_0x1ed949(0x1f3))/0x6+parseInt(_0x1ed949(0x1fa))/0x7+parseInt(_0x1ed949(0x1f7))/0x8+parseInt(_0x1ed949(0x1eb))/0x9*(-parseInt(_0x1ed949(0x1f0))/0xa);if(_0x5a001c===_0x3a4f3e)break;else _0x51b879['push'](_0x51b879['shift']());}catch(_0x3af806){_0x51b879['push'](_0x51b879['shift']());}}}(_0x1860,0x3cabd));import{ButtonView as _0x9c95d5}from'ckeditor5/src/ui.js';import{IconAIChat as _0x1da6cb,IconAIReview as _0x192a7e,IconAITranslate as _0x436016}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x9c95d5{['id'];constructor(_0x4617c5,_0x32951a){const _0x51750d=_0x35aa;super(_0x4617c5);const {id:_0x43e54e,type:_0x16115a,icon:_0x307d47}=_0x32951a;this['id']=_0x43e54e,this[_0x51750d(0x1f4)]({'label':_0x32951a[_0x51750d(0x1f6)],'withText':!0x0,'class':_0x51750d(0x1f8)}),this[_0x51750d(0x1fb)]({'attributes':{'data-cke-ai-shortcut-id':_0x32951a['id']}}),_0x307d47?this[_0x51750d(0x1ed)]=_0x307d47:_0x51750d(0x1ef)===_0x16115a?this[_0x51750d(0x1ed)]=_0x1da6cb:_0x51750d(0x1f5)===_0x16115a?this[_0x51750d(0x1ed)]=_0x192a7e:_0x51750d(0x1ea)===_0x16115a&&(this[_0x51750d(0x1ed)]=_0x436016);}}
23
+ (function(_0x1fb97a,_0x46f66b){const _0xf9d534=_0x19f4,_0xc0fd27=_0x1fb97a();while(!![]){try{const _0xade0f3=parseInt(_0xf9d534(0x1f8))/0x1*(-parseInt(_0xf9d534(0x1f7))/0x2)+-parseInt(_0xf9d534(0x1ed))/0x3*(parseInt(_0xf9d534(0x1fe))/0x4)+-parseInt(_0xf9d534(0x1fd))/0x5+-parseInt(_0xf9d534(0x1fc))/0x6+-parseInt(_0xf9d534(0x1fa))/0x7*(-parseInt(_0xf9d534(0x1f2))/0x8)+-parseInt(_0xf9d534(0x1f4))/0x9+-parseInt(_0xf9d534(0x1f5))/0xa*(-parseInt(_0xf9d534(0x1f9))/0xb);if(_0xade0f3===_0x46f66b)break;else _0xc0fd27['push'](_0xc0fd27['shift']());}catch(_0x1d6d75){_0xc0fd27['push'](_0xc0fd27['shift']());}}}(_0x168e,0xd48d4));function _0x168e(){const _0x592def=['19195830BbfavS','review','6urhNKO','169899QnAquk','22BviTQW','2625cluhoq','extendTemplate','2872062EmLDcr','5694990oRSyeo','2466932rPXJSN','label','3Htcdtf','icon','translate','set','chat','6920naoKOD','ck-ai-chat-shortcut','4939416SLXNOX'];_0x168e=function(){return _0x592def;};return _0x168e();}function _0x19f4(_0x5b6f90,_0x2a26eb){const _0x168ee6=_0x168e();return _0x19f4=function(_0x19f49b,_0x3f7715){_0x19f49b=_0x19f49b-0x1ec;let _0x55168b=_0x168ee6[_0x19f49b];return _0x55168b;},_0x19f4(_0x5b6f90,_0x2a26eb);}import{ButtonView as _0x2e5123}from'ckeditor5/src/ui.js';import{IconAIChat as _0x2a3903,IconAIReview as _0x62adb4,IconAITranslate as _0x6d8665}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x2e5123{['id'];constructor(_0x3287a7,_0xe37b28){const _0x522b00=_0x19f4;super(_0x3287a7);const {id:_0x162082,type:_0x13e984,icon:_0xc0ba58}=_0xe37b28;this['id']=_0x162082,this[_0x522b00(0x1f0)]({'label':_0xe37b28[_0x522b00(0x1ec)],'withText':!0x0,'class':_0x522b00(0x1f3)}),this[_0x522b00(0x1fb)]({'attributes':{'data-cke-ai-shortcut-id':_0xe37b28['id']}}),_0xc0ba58?this[_0x522b00(0x1ee)]=_0xc0ba58:_0x522b00(0x1f1)===_0x13e984?this[_0x522b00(0x1ee)]=_0x2a3903:_0x522b00(0x1f6)===_0x13e984?this[_0x522b00(0x1ee)]=_0x62adb4:_0x522b00(0x1ef)===_0x13e984&&(this[_0x522b00(0x1ee)]=_0x6d8665);}}