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

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
+ const _0x3cd169=_0x25c9;(function(_0x46dec5,_0x424d89){const _0x28f3b4=_0x25c9,_0x5391a0=_0x46dec5();while(!![]){try{const _0x5996be=-parseInt(_0x28f3b4(0x124))/0x1+parseInt(_0x28f3b4(0xde))/0x2*(-parseInt(_0x28f3b4(0xda))/0x3)+-parseInt(_0x28f3b4(0x117))/0x4+-parseInt(_0x28f3b4(0x11f))/0x5*(-parseInt(_0x28f3b4(0x127))/0x6)+parseInt(_0x28f3b4(0xc6))/0x7*(parseInt(_0x28f3b4(0x11e))/0x8)+-parseInt(_0x28f3b4(0xdd))/0x9+parseInt(_0x28f3b4(0xe2))/0xa*(parseInt(_0x28f3b4(0x11a))/0xb);if(_0x5996be===_0x424d89)break;else _0x5391a0['push'](_0x5391a0['shift']());}catch(_0x5ba7cf){_0x5391a0['push'](_0x5391a0['shift']());}}}(_0x1ac9,0x58cfe));import{ContextPlugin as _0x5c160a}from'ckeditor5/src/core.js';import{AIConnector as _0x1099b0}from'../aicore/aiconnector.js';import{AIChatController as _0xa25144}from'../aichat/aichatcontroller.js';import{AITabs as _0x10e2ae}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x32b434}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x49b800}from'./model/aichathistoryconversations.js';function _0x1ac9(){const _0x452080=['requires','get','removeHistoryItem','updateItems','unpin','resize','editConversationTitle','view','itemRemoved','_handleTogglePin','showError','resizeTabs','AI_CHAT_HISTORY_CATEGORY_LATER','resizedTabs','locale','_handleHistoryErrorUI','openChat','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','updates','getItems','getDate','getGroupId','activateTab:history','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','activateTab','_updateHistoryItemsUI','_handleEditTitle','handleRemovedConversation','updateItemTitle','plugins','chat','1606380KUJmXz','context','remove','132peBAOx','length','rename','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','344LvYRrM','15005WYRrxZ','getItem','_showConversationHistory','itemUpdated','createdAt','204364URZoIg','_handleRemove','removeItem','618eHCguA','init','push','updateItemPinned','isOfficialPlugin','updateItemLoadingState','68327lsXPCb','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setIsMaximized','_setItemLoading','_handleSelectConversation','_getCategorizedItems','_aiConnector','setConversationPinned','pinned','activeConversation','change:activeConversation','itemId','AI_CHAT_HISTORY_ERROR_GENERIC','loadConversation','getFullYear','listenTo','map','pluginName','AI_CHAT_HISTORY_CATEGORY_PINNED','121167pBdsoV','pin','_aiChatController','5828832eeIHpO','10BtWiHh','loadItems','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','selectConversation','908750csGoJZ','AI_CHAT_UNTITLED_CONVERSATION','_setIsMaximized','_clearItemLoading','history','_aiChatHistoryUi','AI_CHAT_HISTORY_UNPIN_ACTION','AIChatHistoryController','toLocaleDateString','title','getMonth','itemsLoaded','_generateErrorMessage','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_TODAY','isPremiumPlugin','removeConversation','setDate','items','operation','error','setLoadingSkeleton'];_0x1ac9=function(){return _0x452080;};return _0x1ac9();}import{getTranslation as _0x3e3e19}from'../aicore/utils/common-translations.js';function _0x25c9(_0x5b2a97,_0x121b7d){const _0x1ac96a=_0x1ac9();return _0x25c9=function(_0x25c90e,_0x252c72){_0x25c90e=_0x25c90e-0xc3;let _0x5e296e=_0x1ac96a[_0x25c90e];return _0x5e296e;},_0x25c9(_0x5b2a97,_0x121b7d);}export class AIChatHistoryController extends _0x5c160a{[_0x3cd169(0xcd)];[_0x3cd169(0xe7)];[_0x3cd169(0xdc)];static get[_0x3cd169(0xf8)](){return[_0x1099b0,_0xa25144,_0x32b434,_0x10e2ae];}static get[_0x3cd169(0xd8)](){const _0x1c841f=_0x3cd169;return _0x1c841f(0xe9);}static get[_0x3cd169(0xc4)](){return!0x0;}static get[_0x3cd169(0xf1)](){return!0x0;}[_0x3cd169(0x128)](){const _0x2d7756=_0x3cd169;this[_0x2d7756(0xcd)]=this[_0x2d7756(0x118)][_0x2d7756(0x115)][_0x2d7756(0xf9)](_0x1099b0),this[_0x2d7756(0xe7)]=this[_0x2d7756(0x118)][_0x2d7756(0x115)][_0x2d7756(0xf9)](_0x32b434),this[_0x2d7756(0xdc)]=this[_0x2d7756(0x118)][_0x2d7756(0x115)][_0x2d7756(0xf9)](_0xa25144);const _0x42aa86=this[_0x2d7756(0x118)][_0x2d7756(0x115)][_0x2d7756(0xf9)](_0x10e2ae);try{const _0x277aa4=this[_0x2d7756(0xdc)][_0x2d7756(0x10d)]();this[_0x2d7756(0xe6)]=new _0x49b800({'connector':this[_0x2d7756(0xcd)],'group':_0x277aa4}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe7)],_0x2d7756(0xf2),(_0x1f1612,_0x1569c6)=>{const _0x3ceba3=_0x2d7756;this[_0x3ceba3(0xca)](_0x1569c6['id'],_0x3ceba3(0x119)),this[_0x3ceba3(0x125)](_0x1569c6['id']);}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe7)],_0x2d7756(0xfe),(_0x5da6eb,_0x37be10)=>{const _0x51183d=_0x2d7756;this[_0x51183d(0xca)](_0x37be10['id'],_0x51183d(0x11c)),this[_0x51183d(0x112)](_0x37be10['id'],_0x37be10[_0x51183d(0xeb)]);}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe6)],_0x2d7756(0x122),(_0xea1959,_0x33e844)=>{const _0x456b1f=_0x2d7756;void 0x0!==_0x33e844[_0x456b1f(0x10a)][_0x456b1f(0xeb)]&&this[_0x456b1f(0xe7)][_0x456b1f(0x114)](_0x33e844[_0x456b1f(0xd2)],_0x33e844[_0x456b1f(0x10a)][_0x456b1f(0xeb)]),void 0x0!==_0x33e844[_0x456b1f(0x10a)][_0x456b1f(0xcf)]&&this[_0x456b1f(0x111)](),this[_0x456b1f(0xe5)](_0x33e844[_0x456b1f(0xd2)]);}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe6)],_0x2d7756(0x100),(_0x4891ef,_0x132e5e)=>{const _0x7073bd=_0x2d7756;this[_0x7073bd(0xdc)][_0x7073bd(0x113)](_0x132e5e[_0x7073bd(0xd2)]),this[_0x7073bd(0xe7)][_0x7073bd(0xfa)](_0x132e5e[_0x7073bd(0xd2)]),this[_0x7073bd(0xe5)](_0x132e5e[_0x7073bd(0xd2)]);}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe6)],_0x2d7756(0xed),()=>{const _0x484a08=_0x2d7756;this[_0x484a08(0x111)]();}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe6)],_0x2d7756(0xf6),(_0x4ad109,_0x4b36bb)=>{const _0x4afd3e=_0x2d7756;this[_0x4afd3e(0x107)](_0x4b36bb[_0x4afd3e(0xf6)],_0x4b36bb[_0x4afd3e(0xf5)],_0x4b36bb[_0x4afd3e(0xd2)]);}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe7)],_0x2d7756(0xe1),(_0x33b5c4,_0x2fb6f9)=>{const _0x67672a=_0x2d7756;this[_0x67672a(0xcb)](_0x2fb6f9['id']);}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe7)],_0x2d7756(0xce),(_0x5410d9,_0x24adfb)=>{const _0x8fd6cd=_0x2d7756,_0x435ab8=_0x24adfb[_0x8fd6cd(0xcf)]?_0x8fd6cd(0xdb):_0x8fd6cd(0xfc);this[_0x8fd6cd(0xca)](_0x24adfb['id'],_0x435ab8),this[_0x8fd6cd(0x101)](_0x24adfb['id'],_0x24adfb[_0x8fd6cd(0xcf)]);}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe7)],_0x2d7756(0x108),()=>{const _0x399e18=_0x2d7756;_0x42aa86[_0x399e18(0xff)][_0x399e18(0x110)](_0x399e18(0x116));}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xdc)],_0x2d7756(0xd1),()=>{const _0x3b0346=_0x2d7756;this[_0x3b0346(0x111)]();}),_0x42aa86[_0x2d7756(0xff)]['on'](_0x2d7756(0x10e),()=>{const _0x2b4b1c=_0x2d7756;this[_0x2b4b1c(0x121)]();}),this[_0x2d7756(0xd6)](_0x42aa86,_0x2d7756(0x105),(_0x488db3,_0x234d81)=>{const _0x1c27b5=_0x2d7756;this[_0x1c27b5(0xe4)](_0x234d81);}),this[_0x2d7756(0xd6)](this[_0x2d7756(0xe7)],_0x2d7756(0x103),()=>{const _0x5db546=_0x2d7756;_0x42aa86[_0x5db546(0xfd)]();});}catch(_0x465c3d){this[_0x2d7756(0x107)](_0x465c3d,_0x2d7756(0x128));}}async[_0x3cd169(0x112)](_0x25244e,_0x4aaa7c){const _0x4ffd53=_0x3cd169;await this[_0x4ffd53(0xe6)][_0x4ffd53(0x114)](_0x25244e,_0x4aaa7c);}async[_0x3cd169(0x101)](_0x18a7d6,_0x360b01){const _0xb680a=_0x3cd169;await this[_0xb680a(0xe6)][_0xb680a(0xc3)](_0x18a7d6,_0x360b01);}async[_0x3cd169(0x125)](_0x21a9cd){const _0x321e5b=_0x3cd169;await this[_0x321e5b(0xe6)][_0x321e5b(0x126)](_0x21a9cd);}async[_0x3cd169(0xcb)](_0x244456){const _0x5d3301=_0x3cd169;await this[_0x5d3301(0xdc)][_0x5d3301(0xd4)](_0x244456);}async[_0x3cd169(0x121)](){const _0x36a369=_0x3cd169;this[_0x36a369(0xe7)][_0x36a369(0x102)](''),this[_0x36a369(0xe7)][_0x36a369(0xf7)](!0x0),await this[_0x36a369(0xe6)][_0x36a369(0x128)](),this[_0x36a369(0xe7)][_0x36a369(0xf7)](!0x1);}[_0x3cd169(0x111)](){const _0x56fa8f=_0x3cd169,_0x5abe49=this[_0x56fa8f(0xdc)][_0x56fa8f(0xd0)]?.['id'],_0x2eed61=this[_0x56fa8f(0xcc)]()[_0x56fa8f(0xd7)](_0xb5f38a=>({'title':_0xb5f38a[_0x56fa8f(0xeb)],'items':_0xb5f38a[_0x56fa8f(0xf4)][_0x56fa8f(0xd7)](_0x257ba5=>({'id':_0x257ba5['id'],'title':_0x257ba5[_0x56fa8f(0xeb)]||_0x3e3e19(this[_0x56fa8f(0x118)][_0x56fa8f(0x106)],_0x56fa8f(0xe3)),'createdAt':new Date(_0x257ba5[_0x56fa8f(0x123)])[_0x56fa8f(0xea)](),'active':_0x257ba5['id']===_0x5abe49,'pinned':_0x257ba5[_0x56fa8f(0xcf)]}))}));this[_0x56fa8f(0xe7)][_0x56fa8f(0xfb)](_0x2eed61);}[_0x3cd169(0xca)](_0x1a4bd9,_0x1b5a37){const _0x51731c=_0x3cd169;this[_0x51731c(0xe7)][_0x51731c(0xc5)](_0x1a4bd9,_0x1b5a37,!0x0);}[_0x3cd169(0xe5)](_0x118e99){const _0x1a0aa4=_0x3cd169;this[_0x1a0aa4(0xe7)][_0x1a0aa4(0xc5)](_0x118e99,null,!0x1);}[_0x3cd169(0x107)](_0x19101e,_0x1fc763,_0x2a4aff){const _0x37c711=_0x3cd169,_0x154bb1=this[_0x37c711(0xee)](_0x1fc763,_0x2a4aff);this[_0x37c711(0xe7)][_0x37c711(0x102)](_0x154bb1),_0x2a4aff&&this[_0x37c711(0xe5)](_0x2a4aff),this[_0x37c711(0xe7)][_0x37c711(0xf7)](!0x1);}[_0x3cd169(0xee)](_0x4461f0,_0x1431ef){const _0x2ad5e8=_0x3cd169,_0x12f7eb=_0x1431ef?this[_0x2ad5e8(0xe6)][_0x2ad5e8(0x120)](_0x1431ef):null,_0x21fac0=_0x12f7eb?.[_0x2ad5e8(0xeb)]||_0x3e3e19(this[_0x2ad5e8(0x118)][_0x2ad5e8(0x106)],_0x2ad5e8(0xe3));switch(_0x4461f0){case _0x2ad5e8(0x114):return _0x3e3e19(this[_0x2ad5e8(0x118)][_0x2ad5e8(0x106)],_0x2ad5e8(0x109),_0x21fac0);case _0x2ad5e8(0xc3):{const _0x3c1281=_0x3e3e19(this[_0x2ad5e8(0x118)][_0x2ad5e8(0x106)],_0x12f7eb?.[_0x2ad5e8(0xcf)]?_0x2ad5e8(0xe8):_0x2ad5e8(0xc7));return _0x3e3e19(this[_0x2ad5e8(0x118)][_0x2ad5e8(0x106)],_0x2ad5e8(0xef),[_0x3c1281,_0x21fac0]);}case _0x2ad5e8(0x126):return _0x3e3e19(this[_0x2ad5e8(0x118)][_0x2ad5e8(0x106)],_0x2ad5e8(0x10f),_0x21fac0);case _0x2ad5e8(0x128):case _0x2ad5e8(0xdf):return _0x3e3e19(this[_0x2ad5e8(0x118)][_0x2ad5e8(0x106)],_0x2ad5e8(0xc8));default:return _0x3e3e19(this[_0x2ad5e8(0x118)][_0x2ad5e8(0x106)],_0x2ad5e8(0xd3));}}[_0x3cd169(0xcc)](){const _0x9dd9ad=_0x3cd169,_0x1be80e=new Date(),_0x549a43=new Date(_0x1be80e[_0x9dd9ad(0xd5)](),_0x1be80e[_0x9dd9ad(0xec)](),_0x1be80e[_0x9dd9ad(0x10c)]()),_0x23fb78=new Date(_0x549a43);_0x23fb78[_0x9dd9ad(0xf3)](_0x23fb78[_0x9dd9ad(0x10c)]()-0x1);const _0x57a147=new Date(_0x549a43);_0x57a147[_0x9dd9ad(0xf3)](_0x57a147[_0x9dd9ad(0x10c)]()-0xe);const _0x42a1b6=this[_0x9dd9ad(0xe6)][_0x9dd9ad(0x10b)]({'pinned':!0x0}),_0x265e9a=this[_0x9dd9ad(0xe6)][_0x9dd9ad(0x10b)]({'from':_0x549a43,'to':_0x549a43}),_0x220fd0=this[_0x9dd9ad(0xe6)][_0x9dd9ad(0x10b)]({'from':_0x23fb78,'to':_0x23fb78}),_0x5cbeb4=this[_0x9dd9ad(0xe6)][_0x9dd9ad(0x10b)]({'from':_0x57a147,'to':_0x23fb78}),_0x294f65=this[_0x9dd9ad(0xe6)][_0x9dd9ad(0x10b)]({'to':_0x57a147}),_0x36b7a3=[];return _0x42a1b6[_0x9dd9ad(0x11b)]>0x0&&_0x36b7a3[_0x9dd9ad(0x129)]({'title':_0x3e3e19(this[_0x9dd9ad(0x118)][_0x9dd9ad(0x106)],_0x9dd9ad(0xd9)),'items':_0x42a1b6}),_0x265e9a[_0x9dd9ad(0x11b)]>0x0&&_0x36b7a3[_0x9dd9ad(0x129)]({'title':_0x3e3e19(this[_0x9dd9ad(0x118)][_0x9dd9ad(0x106)],_0x9dd9ad(0xf0)),'items':_0x265e9a}),_0x220fd0[_0x9dd9ad(0x11b)]>0x0&&_0x36b7a3[_0x9dd9ad(0x129)]({'title':_0x3e3e19(this[_0x9dd9ad(0x118)][_0x9dd9ad(0x106)],_0x9dd9ad(0xe0)),'items':_0x220fd0}),_0x5cbeb4[_0x9dd9ad(0x11b)]>0x0&&_0x36b7a3[_0x9dd9ad(0x129)]({'title':_0x3e3e19(this[_0x9dd9ad(0x118)][_0x9dd9ad(0x106)],_0x9dd9ad(0x11d)),'items':_0x5cbeb4}),_0x294f65[_0x9dd9ad(0x11b)]>0x0&&_0x36b7a3[_0x9dd9ad(0x129)]({'title':_0x3e3e19(this[_0x9dd9ad(0x118)][_0x9dd9ad(0x106)],_0x9dd9ad(0x104)),'items':_0x294f65}),_0x36b7a3;}[_0x3cd169(0xe4)](_0x521b41){const _0x50a556=_0x3cd169;this[_0x50a556(0xe7)][_0x50a556(0xc9)](_0x521b41);}}
@@ -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 _0x39dd85=_0x4ae8;(function(_0x54473e,_0x5e2d11){const _0x3d5ae9=_0x4ae8,_0x45cb77=_0x54473e();while(!![]){try{const _0x34e62b=parseInt(_0x3d5ae9(0x147))/0x1+parseInt(_0x3d5ae9(0x13b))/0x2+-parseInt(_0x3d5ae9(0x146))/0x3+parseInt(_0x3d5ae9(0x123))/0x4*(parseInt(_0x3d5ae9(0x131))/0x5)+-parseInt(_0x3d5ae9(0x141))/0x6+parseInt(_0x3d5ae9(0x134))/0x7+-parseInt(_0x3d5ae9(0x137))/0x8;if(_0x34e62b===_0x5e2d11)break;else _0x45cb77['push'](_0x45cb77['shift']());}catch(_0x15bf42){_0x45cb77['push'](_0x45cb77['shift']());}}}(_0x1123,0x749ec));import{ContextPlugin as _0x467955}from'ckeditor5/src/core.js';import{AITabs as _0x3da27d}from'../aitabs/aitabs.js';import{IconAIHistory as _0x1f673b}from'ckeditor5/src/icons.js';function _0x4ae8(_0x1ebe9c,_0x18121a){const _0x112379=_0x1123();return _0x4ae8=function(_0x4ae8d6,_0x234636){_0x4ae8d6=_0x4ae8d6-0x123;let _0x4dc763=_0x112379[_0x4ae8d6];return _0x4dc763;},_0x4ae8(_0x1ebe9c,_0x18121a);}import{AIChatHistoryView as _0x18aa8c}from'./ui/aichathistoryview.js';import{getTranslation as _0x205f5d}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x39dd85(0x126),_0x39dd85(0x14d),_0x39dd85(0x148),_0x39dd85(0x145),_0x39dd85(0x133),_0x39dd85(0x142),_0x39dd85(0x136)];export class AIChatHistoryUI extends _0x467955{static get[_0x39dd85(0x149)](){return[_0x3da27d];}[_0x39dd85(0x129)];static get[_0x39dd85(0x140)](){const _0x1e3c01=_0x39dd85;return _0x1e3c01(0x12a);}static get[_0x39dd85(0x13e)](){return!0x0;}static get[_0x39dd85(0x14a)](){return!0x0;}constructor(_0x3c8232){const _0x478eba=_0x39dd85;super(_0x3c8232);const _0x51f53d=this[_0x478eba(0x125)][_0x478eba(0x12f)][_0x478eba(0x12b)](_0x478eba(0x13d));this[_0x478eba(0x129)]=new _0x18aa8c(this[_0x478eba(0x125)][_0x478eba(0x130)],_0x51f53d[_0x478eba(0x144)]),this[_0x478eba(0x129)][_0x478eba(0x127)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x51f53d[_0x478eba(0x124)][_0x478eba(0x13a)]({'id':_0x478eba(0x132),'buttonLabel':_0x205f5d(this[_0x478eba(0x125)][_0x478eba(0x130)],_0x478eba(0x12c)),'buttonIcon':_0x1f673b,'order':0x0,'content':this[_0x478eba(0x129)]});}[_0x39dd85(0x138)](_0x3c2b3e){const _0xb0a8b3=_0x39dd85;this[_0xb0a8b3(0x129)][_0xb0a8b3(0x138)](_0x3c2b3e);}[_0x39dd85(0x14c)](_0x4e3638){const _0x39cf35=_0x39dd85;this[_0x39cf35(0x129)][_0x39cf35(0x128)](_0x4e3638);}[_0x39dd85(0x12d)](_0x405618,_0x2b3024){const _0x20f9f2=_0x39dd85;this[_0x20f9f2(0x129)][_0x20f9f2(0x12d)](_0x405618,_0x2b3024);}[_0x39dd85(0x135)](_0x318eb9,_0x38005d,_0x2d022c){const _0x34f36e=_0x39dd85;this[_0x34f36e(0x129)][_0x34f36e(0x135)](_0x318eb9,_0x38005d,_0x2d022c);}[_0x39dd85(0x14b)](_0x23c97e){const _0x61605=_0x39dd85;this[_0x61605(0x129)][_0x61605(0x139)]=_0x23c97e;}[_0x39dd85(0x12e)](_0x5db0b0){const _0x4863bf=_0x39dd85;this[_0x4863bf(0x129)][_0x4863bf(0x14e)]=_0x5db0b0;}[_0x39dd85(0x143)](){const _0x58988a=_0x39dd85;this[_0x58988a(0x129)][_0x58988a(0x14e)]='';}[_0x39dd85(0x13f)](_0x233ead){const _0x1ea46b=_0x39dd85;this[_0x1ea46b(0x129)][_0x1ea46b(0x13c)]=_0x233ead;}}function _0x1123(){const _0x5b23df=['518712apPulq','openChat','hideError','showResizeButton','setConversationPinned','178473loFxLR','194706DNjJGN','editConversationTitle','requires','isPremiumPlugin','setLoadingSkeleton','updateItems','removeConversation','errorMessage','596NzVudX','view','context','showConversationHistory','delegate','updateHistoryItemsWithCategories','_historyView','AIChatHistoryUI','get','AI_CHAT_HISTORY_HEADING','updateItemTitle','showError','plugins','locale','22115jqJXMc','history','selectConversation','2010372aryUWy','updateItemLoadingState','resizeTabs','8104096sZArJR','removeHistoryItem','isLoading','addTab','991404YIjGTR','isMaximized','AITabs','isOfficialPlugin','setIsMaximized','pluginName'];_0x1123=function(){return _0x5b23df;};return _0x1123();}
@@ -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 _0x4c1880=_0x59a2;(function(_0x59aada,_0x2946f3){const _0x4b2a1c=_0x59a2,_0x505fb3=_0x59aada();while(!![]){try{const _0x2d7938=parseInt(_0x4b2a1c(0xa1))/0x1+parseInt(_0x4b2a1c(0xb4))/0x2+parseInt(_0x4b2a1c(0xc6))/0x3+-parseInt(_0x4b2a1c(0x9b))/0x4+-parseInt(_0x4b2a1c(0xc1))/0x5+parseInt(_0x4b2a1c(0xdf))/0x6*(parseInt(_0x4b2a1c(0x9c))/0x7)+parseInt(_0x4b2a1c(0x90))/0x8;if(_0x2d7938===_0x2946f3)break;else _0x505fb3['push'](_0x505fb3['shift']());}catch(_0x5f46f6){_0x505fb3['push'](_0x505fb3['shift']());}}}(_0x424a,0x4a9b5));import{ListItemView as _0x1e71c0,HighlightedTextView as _0x28da63,ButtonView as _0x2153cd,ListView as _0x1c4069,IconView as _0x3e396c,createDropdown as _0x14ca19,InputTextView as _0x40dd9b}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x45909d,IconPin as _0x5478cf,IconCheck as _0x3e088d,IconCancel as _0x18cd25}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1ac660,ConfirmMixin as _0x1f5fe4}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x14f379}from'es-toolkit/compat';import{AISpinnerView as _0xc808eb}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x3a7703}from'../../aicore/utils/common-translations.js';function _0x424a(){const _0x1d7ff0=['listitem','string','_createAcceptEditButtonView','ck-ai-chat-history__item--edit','ck-confirm-view-cancel','_createCancelEditButtonView','addMany','ck-ai-loader__text','withText','focus','children','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','then','clear','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_LOADING_PINNING','panelPosition','isOn','ck-ai-loader','ck-ai-chat-history__item-check-container','match','bindTemplate','42bQWjuo','ck-ai-chat-history__item-row','_createPinButtonView','actions','AI_CHAT_HISTORY_EDIT_NAME','showConfirm','pinned','locale','click','AI_CHAT_HISTORY_LOADING_UNPINNING','key','bind','ck-ai-chat-history__item--active','fire','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_ACCEPT','value','4163608CYGoPZ','_createMenuDropdownView','mainContent','isEdit','removeConversation','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_CANCEL','set','execute','_titleView','updateTitle','760104bOlcQv','176771WHYFWH','updateLoadingState','highlightText','panelView','isVisible','1606zqzyXH','change:isEdit','buttonView','selectConversation','createCollection','ck-ai-chat-history__item-content','AI_CHAT_HISTORY_PIN_BUTTON','text','setTemplate','AI_CHAT_HISTORY_REMOVE_CONFIRM','AI_CHAT_HISTORY_REMOVE','editConversationTitle','Enter','ck-confirm-view-submit','ck-ai-chat-history__item-actions','items','_commitEditInputValue','ck-ai-chat-history__item','span','351846derqcQ','div','ck-hidden','ck-ai-chat-history__item-check','_createEditInputView','label','_createSpinnerView','tiny','extendTemplate','_createCheckView','ck-ai-chat-history__item-title','add','isMatching','2550590bjZFhn','loadingState','edit:cancel','setConversationPinned','ck-ai-chat-history__item-main-content','392946aqQBTa','LOADING_LABELS','element'];_0x424a=function(){return _0x1d7ff0;};return _0x424a();}function _0x59a2(_0x1b1634,_0x171f79){const _0x424a55=_0x424a();return _0x59a2=function(_0x59a2c0,_0x5571f8){_0x59a2c0=_0x59a2c0-0x81;let _0x5c0d14=_0x424a55[_0x59a2c0];return _0x5c0d14;},_0x59a2(_0x1b1634,_0x171f79);}export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x1f5fe4(_0x1e71c0){['id'];static [_0x4c1880(0xc7)]={'remove':_0x4c1880(0x95),'rename':_0x4c1880(0xd7),'pin':_0x4c1880(0xd8),'unpin':_0x4c1880(0x88)};[_0x4c1880(0x82)];[_0x4c1880(0x92)];[_0x4c1880(0x99)];constructor(_0x390fc1,_0x513e58){const _0x3e2102=_0x4c1880;super(_0x390fc1);const _0xed7951=this[_0x3e2102(0xde)];this[_0x3e2102(0x97)](_0x3e2102(0x93),!0x1),this[_0x3e2102(0x97)](_0x3e2102(0xa0),!0x0),this[_0x3e2102(0x97)](_0x3e2102(0x85),!!_0x513e58[_0x3e2102(0x85)]),this[_0x3e2102(0x97)](_0x3e2102(0xc2),null),this['id']=_0x513e58['id'];const {title:_0x5ba5a5,createdAt:_0x13331f,active:_0x259f5b=!0x1}=_0x513e58;this[_0x3e2102(0x99)]=new _0x28da63(),this[_0x3e2102(0x99)][_0x3e2102(0xa8)]=_0x5ba5a5,this[_0x3e2102(0x99)][_0x3e2102(0xbc)]({'attributes':{'class':[_0x3e2102(0xbe)]}});const _0x412b08=this[_0x3e2102(0xbd)](),_0x44432b=this[_0x3e2102(0x81)](_0x390fc1),_0x3539f2=this[_0x3e2102(0x91)](),_0x264189=this[_0x3e2102(0xb8)](_0x390fc1,_0x5ba5a5),_0x4ee587=this[_0x3e2102(0xcb)](_0x390fc1,_0x264189),_0x22d780=this[_0x3e2102(0xce)](_0x390fc1,_0x264189);this[_0x3e2102(0x82)]=this[_0x3e2102(0xa5)](),this[_0x3e2102(0x92)]=this[_0x3e2102(0xa5)](),this[_0x3e2102(0x92)][_0x3e2102(0xbf)](this[_0x3e2102(0x99)]),this[_0x3e2102(0x82)][_0x3e2102(0xbf)](_0x44432b),this[_0x3e2102(0x82)][_0x3e2102(0xbf)](_0x3539f2),this['on'](_0x3e2102(0xa2),(_0x364535,_0x4a2c67,_0x3bbc1e)=>{const _0x4decac=_0x3e2102;this[_0x4decac(0x82)][_0x4decac(0xd6)](),this[_0x4decac(0x92)][_0x4decac(0xd6)](),_0x3bbc1e?(this[_0x4decac(0x82)][_0x4decac(0xbf)](_0x4ee587),this[_0x4decac(0x82)][_0x4decac(0xbf)](_0x22d780),this[_0x4decac(0x92)][_0x4decac(0xbf)](_0x264189),_0x264189[_0x4decac(0xc8)][_0x4decac(0xd2)]()):(this[_0x4decac(0x82)][_0x4decac(0xbf)](_0x44432b),this[_0x4decac(0x82)][_0x4decac(0xbf)](_0x3539f2),this[_0x4decac(0x92)][_0x4decac(0xbf)](this[_0x4decac(0x99)]));}),this[_0x3e2102(0xa9)]({'tag':'li','attributes':{'class':[_0x3e2102(0xb2),_0x259f5b?_0x3e2102(0x8b):'',_0xed7951['if'](_0x3e2102(0xa0),_0x3e2102(0xb6),_0x452ac8=>!_0x452ac8),_0xed7951['if'](_0x3e2102(0x93),_0x3e2102(0xcc))],'role':_0x3e2102(0xc9)},'children':[{'tag':_0x3e2102(0xb3),'attributes':{'class':[_0x3e2102(0xdc)]},'children':[{'tag':_0x3e2102(0xb5),'attributes':{'class':[_0x3e2102(0xb7),_0xed7951['if'](_0x3e2102(0xc2),_0x3e2102(0xb6),_0x592193=>!!_0x592193)]},'children':_0x259f5b?[_0x412b08]:[]},{'tag':_0x3e2102(0xb5),'attributes':{'class':[_0x3e2102(0xdb),_0xed7951['if'](_0x3e2102(0xc2),_0x3e2102(0xb6),_0x3a6eed=>!_0x3a6eed)]},'children':[this[_0x3e2102(0xba)]()]}]},{'tag':_0x3e2102(0xb5),'attributes':{'class':[_0x3e2102(0xe0)]},'children':[{'tag':_0x3e2102(0xb5),'attributes':{'class':[_0x3e2102(0xa6)]},'on':{'click':this[_0x3e2102(0xde)]['to'](_0x3e2102(0x87))},'children':[{'tag':_0x3e2102(0xb5),'attributes':{'class':[_0x3e2102(0xc5)]},'children':[{'tag':_0x3e2102(0xb5),'attributes':{'class':[_0x3e2102(0xbe),_0xed7951['if'](_0x3e2102(0xc2),_0x3e2102(0xb6),_0x3c4228=>!!_0x3c4228)]},'children':this[_0x3e2102(0x92)]},{'tag':_0x3e2102(0xb5),'attributes':{'class':[_0x3e2102(0xd0),_0xed7951['if'](_0x3e2102(0xc2),_0x3e2102(0xb6),_0x361a03=>!_0x361a03)]},'children':[{'text':_0xed7951['to'](_0x3e2102(0xc2),_0x33c759=>_0x33c759?_0x3a7703(this[_0x3e2102(0x86)],AIChatHistoryListItemView[_0x3e2102(0xc7)][_0x33c759]):'')}]}]},{'tag':_0x3e2102(0xb3),'attributes':{'class':[_0x3e2102(0x8d)]},'children':[_0x13331f]}]},{'tag':_0x3e2102(0xb5),'attributes':{'class':[_0x3e2102(0xaf)]},'children':this[_0x3e2102(0x82)]}]}]}),this['on'](_0x3e2102(0x87),()=>{const _0x1d34c1=_0x3e2102;this[_0x1d34c1(0x93)]||this[_0x1d34c1(0x8c)](_0x1d34c1(0xa4),{'id':this['id']});});}[_0x4c1880(0x9a)](_0x259586){const _0x3eff5c=_0x4c1880;this[_0x3eff5c(0x99)][_0x3eff5c(0xa8)]=_0x14f379(_0x259586);}[_0x4c1880(0x9d)](_0xa0268a,_0x1f3a93){const _0x57184f=_0x4c1880;this[_0x57184f(0x97)](_0x57184f(0xc2),_0x1f3a93?_0xa0268a:null);}[_0x4c1880(0xbd)](){const _0x3e11c2=_0x4c1880,_0x3d74ee=new _0x3e396c();return _0x3d74ee[_0x3e11c2(0x97)]({'content':_0x3e088d}),_0x3d74ee;}[_0x4c1880(0x81)](_0x5d3d97){const _0x86d55c=_0x4c1880,_0x437900=new _0x2153cd(_0x5d3d97);return _0x437900[_0x86d55c(0x97)]({'label':_0x3a7703(_0x5d3d97,_0x86d55c(0xa7)),'icon':_0x5478cf,'withText':!0x1,'tooltip':!0x0}),_0x437900[_0x86d55c(0x8a)](_0x86d55c(0xda))['to'](this,_0x86d55c(0x85)),_0x437900['on'](_0x86d55c(0x98),()=>{const _0x4c6248=_0x86d55c,_0x1a72ec=!this[_0x4c6248(0x85)];this[_0x4c6248(0x8c)](_0x4c6248(0xc4),{'id':this['id'],'pinned':_0x1a72ec});}),_0x437900;}[_0x4c1880(0x91)](){const _0x16bb0b=_0x4c1880,_0x5bf122=_0x14ca19(this[_0x16bb0b(0x86)],_0x1ac660),_0x22f240=_0x5bf122[_0x16bb0b(0x9f)][_0x16bb0b(0xd3)];_0x5bf122[_0x16bb0b(0xa3)][_0x16bb0b(0x97)]({'label':_0x3a7703(this[_0x16bb0b(0x86)],_0x16bb0b(0xd4)),'icon':_0x45909d}),_0x5bf122[_0x16bb0b(0xd9)]='sw';const _0x1f91f7=new _0x2153cd(this[_0x16bb0b(0x86)]);_0x1f91f7[_0x16bb0b(0xb9)]=_0x3a7703(this[_0x16bb0b(0x86)],_0x16bb0b(0x83)),_0x1f91f7[_0x16bb0b(0xd1)]=!0x0,_0x1f91f7['on'](_0x16bb0b(0x98),()=>{const _0x7e4eaf=_0x16bb0b;this[_0x7e4eaf(0x93)]=!0x0;});const _0x59b9f0=new _0x2153cd(this[_0x16bb0b(0x86)]);_0x59b9f0[_0x16bb0b(0xb9)]=_0x3a7703(this[_0x16bb0b(0x86)],_0x16bb0b(0xab)),_0x59b9f0[_0x16bb0b(0xd1)]=!0x0,_0x59b9f0['on'](_0x16bb0b(0x98),()=>{const _0x335d2c=_0x16bb0b;this[_0x335d2c(0x84)](_0x3a7703(this[_0x335d2c(0x86)],_0x335d2c(0xaa)),this[_0x335d2c(0xc8)])[_0x335d2c(0xd5)](()=>{const _0x1c1826=_0x335d2c;this[_0x1c1826(0x8c)](_0x1c1826(0x94),{'id':this['id']});});});const _0x4565c4=new _0x1c4069(this[_0x16bb0b(0x86)]),_0x1688a2=new _0x1e71c0(this[_0x16bb0b(0x86)]);_0x1688a2[_0x16bb0b(0xd3)][_0x16bb0b(0xbf)](_0x1f91f7);const _0x7ef5d0=new _0x1e71c0(this[_0x16bb0b(0x86)]);return _0x7ef5d0[_0x16bb0b(0xd3)][_0x16bb0b(0xbf)](_0x59b9f0),_0x4565c4[_0x16bb0b(0xb0)][_0x16bb0b(0xcf)]([_0x1688a2,_0x7ef5d0]),_0x22f240[_0x16bb0b(0xbf)](_0x4565c4),_0x5bf122;}[_0x4c1880(0xb8)](_0xf526ae,_0x1b3679){const _0x4bc5a5=_0x4c1880,_0x468c9a=new _0x40dd9b(_0xf526ae),_0x1b7f1b=_0x468c9a[_0x4bc5a5(0xde)];return _0x468c9a[_0x4bc5a5(0x8f)]=_0x1b3679,_0x468c9a[_0x4bc5a5(0xbc)]({'on':{'keydown':_0x1b7f1b['to'](_0x431aa9=>{const _0x3eee85=_0x4bc5a5;_0x3eee85(0xad)==_0x431aa9[_0x3eee85(0x89)]&&this[_0x3eee85(0xb1)](_0x468c9a);})}}),_0x468c9a;}[_0x4c1880(0xcb)](_0xa9781f,_0x2e9c02){const _0x46d71d=_0x4c1880,_0x38d12c=new _0x2153cd(_0xa9781f);return _0x38d12c[_0x46d71d(0x97)]({'icon':_0x3e088d,'withText':!0x1,'tooltip':_0x3a7703(_0xa9781f,_0x46d71d(0x8e))}),_0x38d12c[_0x46d71d(0xbc)]({'attributes':{'class':[_0x46d71d(0xae)]}}),_0x38d12c['on'](_0x46d71d(0x98),()=>{const _0x13bbfb=_0x46d71d;this[_0x13bbfb(0xb1)](_0x2e9c02);}),_0x38d12c;}[_0x4c1880(0xb1)](_0x3f9d3f){const _0x57e0b5=_0x4c1880,_0x18e280=_0x3f9d3f[_0x57e0b5(0xc8)][_0x57e0b5(0x8f)]||'';this[_0x57e0b5(0x99)][_0x57e0b5(0xa8)]=_0x18e280,this[_0x57e0b5(0x93)]=!0x1,this[_0x57e0b5(0x8c)](_0x57e0b5(0xac),{'id':this['id'],'title':_0x18e280});}[_0x4c1880(0xce)](_0x4d7c34,_0x5bd0e3){const _0x3d52f3=_0x4c1880,_0xccc786=new _0x2153cd(_0x4d7c34);return _0xccc786[_0x3d52f3(0x97)]({'icon':_0x18cd25,'withText':!0x1,'tooltip':_0x3a7703(_0x4d7c34,_0x3d52f3(0x96))}),_0xccc786[_0x3d52f3(0xbc)]({'attributes':{'class':[_0x3d52f3(0xcd)]}}),_0xccc786['on'](_0x3d52f3(0x98),()=>{const _0x2ccbe7=_0x3d52f3;this[_0x2ccbe7(0x93)]=!0x1,_0x5bd0e3[_0x2ccbe7(0x8f)]=this[_0x2ccbe7(0x99)][_0x2ccbe7(0xa8)]||'',this[_0x2ccbe7(0x8c)](_0x2ccbe7(0xc3));}),_0xccc786;}[_0x4c1880(0xba)](){const _0x204968=_0x4c1880,_0x28c428=new _0xc808eb(_0x204968(0xbb));return _0x28c428[_0x204968(0xa0)]=!0x0,_0x28c428;}[_0x4c1880(0xc0)](_0x4de460){const _0x546195=_0x4c1880;return this[_0x546195(0x99)]&&_0x546195(0xca)==typeof this[_0x546195(0x99)][_0x546195(0xa8)]&&this[_0x546195(0x99)][_0x546195(0xa8)][_0x546195(0xdd)](_0x4de460)?{'title':!0x0}:null;}[_0x4c1880(0x9e)](_0x2a23b7){const _0x3cfab3=_0x4c1880;this[_0x3cfab3(0x99)][_0x3cfab3(0x9e)](_0x2a23b7);}}
@@ -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 _0x507d79=_0x3aa9;(function(_0x1d5b0f,_0x291c6a){const _0x40ef14=_0x3aa9,_0x5146f9=_0x1d5b0f();while(!![]){try{const _0x4dabf=parseInt(_0x40ef14(0xc4))/0x1+parseInt(_0x40ef14(0xe6))/0x2*(-parseInt(_0x40ef14(0xd3))/0x3)+-parseInt(_0x40ef14(0xeb))/0x4+-parseInt(_0x40ef14(0xd8))/0x5+-parseInt(_0x40ef14(0x9f))/0x6*(-parseInt(_0x40ef14(0xd9))/0x7)+parseInt(_0x40ef14(0xa5))/0x8+parseInt(_0x40ef14(0xc0))/0x9*(parseInt(_0x40ef14(0xc5))/0xa);if(_0x4dabf===_0x291c6a)break;else _0x5146f9['push'](_0x5146f9['shift']());}catch(_0x48fc67){_0x5146f9['push'](_0x5146f9['shift']());}}}(_0x4eaa,0xf0b3b));import{View as _0x1b7775,SearchTextView as _0x12b612,FormHeaderView as _0x16145a,ButtonView as _0x29fe1e}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x2dc3fa,IconCancel as _0x5f4238,IconPlus as _0x31aca1}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x16db90}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x52af4d}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4230f2}from'./aichathistorylistitemview.js';function _0x4eaa(){const _0x208577=['11835560vJWMGm','ck-ai-chat-history','isMaximized','updateItemLoadingState','ck-rounded-corners','hasItems','element','delegate','getItem','updateTitle','children','items','isSearchViewVisible','_refreshSearch','removeHistoryItem','some','indexOf','fieldView','fire','setTemplate','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','isVisible','removeItem','AI_CHAT_HISTORY_EMPTY_MESSAGE','render','isLoading','9KwlLjM','clear','execute','isEmptyViewVisible','147518eDHMAw','33174970JIZoxy','updateLoadingState','_createSearchView','_createErrorView','updateHistoryItemsWithCategories','AI_CHAT_HISTORY_HEADING','itemsViews','search','extendTemplate','_updateViewVisibility','mainErrorView','openChat','sections','value','21kgFSQH','sectionsView','ck-hidden','add','locale','7858665zHYNEX','3768296UGqBwo','ck-ai-chat__start-conversation','push','ck-ai-chat-history__empty','change:hasItems','_createListItemViews','ck-reset_all','change:isLoading','set','length','_createSkeletonView','ck-ai-notification','resizeButton','321446iyIehK','title','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','bind','ck-ai-chat-history__content','7200316rPpLmL','searchView','change:errorMessage','emptyView','updateItemTitle','ck-ai-header\x20ck-ai-header_history','queryView','div','_createEmptyStateView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','bindTemplate','ck-ai-chat-history__empty-message','isMainErrorViewVisible','ck-ai-notification_error','splice','skeletonView','addMany','6pAZdAE','remove','AI_CHAT_LABEL_NEW_CHAT','aiHistory','errorMessage','ck-ai-notification_error__dismiss-button'];_0x4eaa=function(){return _0x208577;};return _0x4eaa();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xb3576d}from'../aichathistoryui.js';import{AISkeletonView as _0x10c4cd,SKELETON_DEFINITIONS as _0x49b244}from'../../aicore/ui/aiskeleton.js';function _0x3aa9(_0x3b874d,_0x4348b0){const _0x4eaac2=_0x4eaa();return _0x3aa9=function(_0x3aa9af,_0x3d3817){_0x3aa9af=_0x3aa9af-0x92;let _0xf0dc25=_0x4eaac2[_0x3aa9af];return _0xf0dc25;},_0x3aa9(_0x3b874d,_0x4348b0);}import{createResizeButton as _0x245441}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x1884a0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x1b7775{[_0x507d79(0xec)];[_0x507d79(0xcf)];[_0x507d79(0x9d)];[_0x507d79(0xee)];[_0x507d79(0xd4)];[_0x507d79(0xe5)];constructor(_0x469c8c,_0x4f603c){const _0x36694b=_0x507d79;super(_0x469c8c),this[_0x36694b(0xe1)](_0x36694b(0xaa),!0x1),this[_0x36694b(0xe1)](_0x36694b(0xbf),!0x0),this[_0x36694b(0xe1)](_0x36694b(0xa3),''),this[_0x36694b(0xe1)](_0x36694b(0xa7),!0x1),this[_0x36694b(0xe1)](_0x36694b(0xb1),!0x1),this[_0x36694b(0xe1)](_0x36694b(0xc3),!0x1),this[_0x36694b(0xe1)](_0x36694b(0x9a),!0x1);const _0x1c6813=new _0x16145a(_0x469c8c,{'label':_0x1884a0(_0x469c8c,_0x36694b(0xca)),'icon':_0x2dc3fa,'class':_0x36694b(0x93)});_0x4f603c&&(this[_0x36694b(0xe5)]=_0x245441(_0x469c8c,this),_0x1c6813[_0x36694b(0xaf)][_0x36694b(0xd6)](this[_0x36694b(0xe5)])),this[_0x36694b(0xd4)]=new _0x16db90(_0x469c8c,[]),this[_0x36694b(0xd4)][_0x36694b(0xac)](..._0xb3576d)['to'](this),this[_0x36694b(0xcf)]=this[_0x36694b(0xc8)](),this[_0x36694b(0x9d)]=this[_0x36694b(0xe3)](),this[_0x36694b(0xee)]=this[_0x36694b(0x96)](),this[_0x36694b(0xec)]=this[_0x36694b(0xc7)](),this[_0x36694b(0xcf)][_0x36694b(0xcd)]({'attributes':{'class':[this[_0x36694b(0x98)]['if'](_0x36694b(0x9a),_0x36694b(0xd5),_0x5a3ad8=>!_0x5a3ad8)]}}),this['on'](_0x36694b(0xe0),()=>this[_0x36694b(0xce)]()),this['on'](_0x36694b(0xdd),()=>this[_0x36694b(0xce)]()),this['on'](_0x36694b(0xed),()=>this[_0x36694b(0xce)]()),this[_0x36694b(0xb8)]({'tag':_0x36694b(0x95),'attributes':{'class':['ck',_0x36694b(0xdf),_0x36694b(0xa6),_0x36694b(0xa9)],'dir':_0x36694b(0xba)},'children':[_0x1c6813,{'tag':_0x36694b(0x95),'attributes':{'class':[_0x36694b(0xea)]},'children':[this[_0x36694b(0x9d)],this[_0x36694b(0xcf)],this[_0x36694b(0xee)],this[_0x36694b(0xec)]]}]});}[_0x507d79(0xce)](){const _0x114ca4=_0x507d79;this[_0x114ca4(0xb1)]=!this[_0x114ca4(0xbf)]&&this[_0x114ca4(0xaa)],this[_0x114ca4(0xc3)]=!this[_0x114ca4(0xbf)]&&!this[_0x114ca4(0xaa)]&&!this[_0x114ca4(0xa3)],this[_0x114ca4(0x9a)]=!this[_0x114ca4(0xb1)]&&!!this[_0x114ca4(0xa3)];}[_0x507d79(0xc7)](){const _0x5b87c2=_0x507d79,_0x40cdc9=new _0x12b612(this[_0x5b87c2(0xd7)],{'filteredView':this[_0x5b87c2(0xd4)],'queryView':{'label':_0x1884a0(this[_0x5b87c2(0xd7)],_0x5b87c2(0xb9))},'infoView':{'text':{'notFound':{'primary':_0x84beeb=>_0x1884a0(this[_0x5b87c2(0xd7)],_0x5b87c2(0xe8),_0x84beeb),'secondary':_0x1884a0(this[_0x5b87c2(0xd7)],_0x5b87c2(0x97))}}}}),_0x2db64f=this[_0x5b87c2(0xc8)]();return _0x2db64f[_0x5b87c2(0xcd)]({'attributes':{'class':[this[_0x5b87c2(0x98)]['if'](_0x5b87c2(0xa3),_0x5b87c2(0xd5),_0x32cc16=>!_0x32cc16)]}}),_0x40cdc9['on'](_0x5b87c2(0xbe),()=>{const _0x2b88da=_0x5b87c2;_0x40cdc9[_0x2b88da(0xaf)][_0x2b88da(0xd6)](_0x2db64f,0x1);}),_0x40cdc9[_0x5b87c2(0xcd)]({'attributes':{'class':[this[_0x5b87c2(0x98)]['if'](_0x5b87c2(0xb1),_0x5b87c2(0xd5),_0x1daa68=>!_0x1daa68)]}}),_0x40cdc9;}[_0x507d79(0xe3)](){const _0xbe6df6=_0x507d79,_0x394f33=new _0x10c4cd(this[_0xbe6df6(0xd7)],_0x49b244[_0xbe6df6(0xa2)]);return _0x394f33[_0xbe6df6(0xcd)]({'attributes':{'class':[this[_0xbe6df6(0x98)]['if'](_0xbe6df6(0xbf),_0xbe6df6(0xd5),_0x205ead=>!_0x205ead)]}}),_0x394f33;}[_0x507d79(0xc8)](){const _0x2d3cb2=_0x507d79,_0x1e6b82=new _0x1b7775(this[_0x2d3cb2(0xd7)]),_0x56f603=new _0x29fe1e(this[_0x2d3cb2(0xd7)]);_0x56f603[_0x2d3cb2(0xe1)]({'withText':!0x1,'icon':_0x5f4238,'class':_0x2d3cb2(0xa4)}),_0x56f603[_0x2d3cb2(0xe9)](_0x2d3cb2(0xbb))['to'](this,_0x2d3cb2(0xaa),_0x51b189=>!!_0x51b189),_0x56f603['on'](_0x2d3cb2(0xc2),()=>{const _0x2a823d=_0x2d3cb2;this[_0x2a823d(0xa3)]='';});const _0x2f3345=this[_0x2d3cb2(0x98)];return _0x1e6b82[_0x2d3cb2(0xb8)]({'tag':_0x2d3cb2(0x95),'attributes':{'class':['ck',_0x2d3cb2(0xe4),_0x2d3cb2(0x9b)]},'children':[{'tag':'p','children':[{'text':_0x2f3345['to'](_0x2d3cb2(0xa3))}]},_0x56f603]}),_0x1e6b82;}[_0x507d79(0x96)](){const _0x79a3f=_0x507d79,_0x4121b7=new _0x29fe1e(this[_0x79a3f(0xd7)]);_0x4121b7[_0x79a3f(0xe1)]({'label':_0x1884a0(this[_0x79a3f(0xd7)],_0x79a3f(0xa1)),'withText':!0x0,'icon':_0x31aca1,'class':_0x79a3f(0xda)}),_0x4121b7['on'](_0x79a3f(0xc2),()=>{const _0x2621b4=_0x79a3f;this[_0x2621b4(0xb7)](_0x2621b4(0xd0));});const _0x38bad7=new _0x1b7775(this[_0x79a3f(0xd7)]);return _0x38bad7[_0x79a3f(0xb8)]({'tag':_0x79a3f(0x95),'attributes':{'class':[_0x79a3f(0xdc),this[_0x79a3f(0x98)]['if'](_0x79a3f(0xc3),_0x79a3f(0xd5),_0x49baf7=>!_0x49baf7)]},'children':[{'tag':'p','attributes':{'class':[_0x79a3f(0x99)]},'children':[_0x1884a0(this[_0x79a3f(0xd7)],_0x79a3f(0xbd))]},_0x4121b7]}),_0x38bad7;}[_0x507d79(0xde)](_0x569373,_0x238066){const _0x3720fe=_0x507d79,_0x501668=[];for(const _0x10f8ed of _0x569373){const _0x2c649e=new _0x4230f2(_0x238066,_0x10f8ed);_0x2c649e[_0x3720fe(0xac)](..._0xb3576d)['to'](this),_0x501668[_0x3720fe(0xdb)](_0x2c649e);}return _0x501668;}[_0x507d79(0xc9)](_0x4f6708){const _0x5a6839=_0x507d79,_0x3fa71e=this[_0x5a6839(0xd7)]||'en',_0x270698=[];for(const _0x52524f of _0x4f6708){const _0x248e0c=this[_0x5a6839(0xde)](_0x52524f[_0x5a6839(0xb0)],_0x3fa71e);_0x270698[_0x5a6839(0xdb)](new _0x52af4d(_0x3fa71e,{'title':_0x52524f[_0x5a6839(0xe7)],'items':_0x248e0c}));}this[_0x5a6839(0xd4)][_0x5a6839(0xd1)]=_0x270698,this[_0x5a6839(0xd4)][_0x5a6839(0xb0)][_0x5a6839(0xc1)](),this[_0x5a6839(0xd4)][_0x5a6839(0xb0)][_0x5a6839(0x9e)](_0x270698),this[_0x5a6839(0xaa)]=_0x4f6708[_0x5a6839(0xb4)](_0x4a3126=>_0x4a3126[_0x5a6839(0xb0)][_0x5a6839(0xe2)]>0x0),this[_0x5a6839(0xb2)]();}[_0x507d79(0xb3)](_0x46f387){const _0x483ec3=_0x507d79;for(const _0x15d38a of this[_0x483ec3(0xd4)][_0x483ec3(0xd1)]){const _0x1c935c=_0x15d38a[_0x483ec3(0xad)](_0x46f387);if(_0x1c935c){if(_0x15d38a[_0x483ec3(0xbc)](_0x1c935c),0x0===_0x15d38a[_0x483ec3(0xcb)][_0x483ec3(0xe2)]){const _0x14b2eb=this[_0x483ec3(0xd4)][_0x483ec3(0xd1)][_0x483ec3(0xb5)](_0x15d38a);-0x1!==_0x14b2eb&&(this[_0x483ec3(0xd4)][_0x483ec3(0xd1)][_0x483ec3(0x9c)](_0x14b2eb,0x1),this[_0x483ec3(0xd4)][_0x483ec3(0xb0)][_0x483ec3(0xa0)](_0x15d38a));}this[_0x483ec3(0xaa)]=this[_0x483ec3(0xd4)][_0x483ec3(0xd1)][_0x483ec3(0xe2)]>0x0,this[_0x483ec3(0xb2)]();break;}}}[_0x507d79(0x92)](_0x2efe2f,_0x35187e){const _0x387838=_0x507d79;for(const _0x2c1cc3 of this[_0x387838(0xd4)][_0x387838(0xd1)]){const _0x1a156b=_0x2c1cc3[_0x387838(0xad)](_0x2efe2f);if(_0x1a156b){_0x1a156b[_0x387838(0xae)](_0x35187e);break;}}}[_0x507d79(0xa8)](_0x3443e5,_0x30c7c4,_0xe09469){const _0x2954e7=_0x507d79;for(const _0x3da5b4 of this[_0x2954e7(0xd4)][_0x2954e7(0xd1)]){const _0x5b0c6a=_0x3da5b4[_0x2954e7(0xad)](_0x3443e5);if(_0x5b0c6a){_0x5b0c6a[_0x2954e7(0xc6)](_0x30c7c4,_0xe09469);break;}}}[_0x507d79(0xb2)](){const _0x2ad3c1=_0x507d79;if(this[_0x2ad3c1(0xaa)]){const _0xcda95c=this[_0x2ad3c1(0xec)][_0x2ad3c1(0x94)][_0x2ad3c1(0xb6)]?.[_0x2ad3c1(0xab)]?.[_0x2ad3c1(0xd2)]||'';this[_0x2ad3c1(0xec)][_0x2ad3c1(0xcc)](_0xcda95c);}}}
@@ -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 _0x32b09f=_0x56a8;(function(_0xb16b68,_0x101f8f){const _0x175d75=_0x56a8,_0x4fdb78=_0xb16b68();while(!![]){try{const _0x4b3696=-parseInt(_0x175d75(0x1e8))/0x1*(-parseInt(_0x175d75(0x230))/0x2)+-parseInt(_0x175d75(0x222))/0x3*(parseInt(_0x175d75(0x210))/0x4)+-parseInt(_0x175d75(0x221))/0x5+-parseInt(_0x175d75(0x23a))/0x6+parseInt(_0x175d75(0x204))/0x7*(-parseInt(_0x175d75(0x22f))/0x8)+-parseInt(_0x175d75(0x1e7))/0x9*(parseInt(_0x175d75(0x1e6))/0xa)+parseInt(_0x175d75(0x20a))/0xb;if(_0x4b3696===_0x101f8f)break;else _0x4fdb78['push'](_0x4fdb78['shift']());}catch(_0x4f6df1){_0x4fdb78['push'](_0x4fdb78['shift']());}}}(_0x5702,0xcdb4f));import{AIChatUI as _0x121a12}from'../aichat/aichatui.js';import{ContextPlugin as _0x2b6826}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0xe77167}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x59c608}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x32b09f(0x239);function _0x5702(){const _0x5d5e54=['destroy','_validateShortcuts','config','AIChat','isOfficialPlugin','ai-chat-shortcuts-ai-tabs-not-found','custom','chat-shortcuts','5450052CcMobf','translate','find','AIChatShortcuts','setPromptInputValue','_aiChatUI','review','pluginName','activeConversation','10RDlgjB','7073271WvHGvN','1zrMbfr','forEach','isFromHistory','ai.chat.shortcuts','setModel','ai-chat-shortcuts-invalid-config','render','_switchTab','fire','sendMessage','language','chat','context','execute','TRANSLATE','check','_executeShortcut','isPremiumPlugin','addFeedItemCustomElement','get','args','interactionStarted','AITranslateUI','source','getDefault','focusPromptInput','_shortcutsView','type','7zwiopo','_removeShortcuts','AITabs','listenTo','element','conversationCreated','44496067aXozoA','_runChatShortcut','REVIEW','CHAT','init','activateTab','933488vgXHRg','_injectShortcuts','ai-chat-shortcuts-review-mode-not-found','locale','AIChatController','length','plugins','ai-chat-shortcuts-translate-not-found','values','prompt','has','_shortcuts','label','string','hasFeedItem','includes','runReviewCheck','2387085rlmFbk','9SxIESo','view','params','chatModels','addCurrentDocumentToChatContext','_runReviewShortcut','removeFeedItem','setReasoning','getModel','reviewMode','requires','_runTranslateShortcut','setWebSearch','7869512ZHuMYH','1305922wNJKXH','AIReviewModeUI'];_0x5702=function(){return _0x5d5e54;};return _0x5702();}export var AIChatShortcutType;!function(_0x115412){const _0x350cae=_0x32b09f;_0x115412[_0x350cae(0x20d)]=_0x350cae(0x1f3),_0x115412[_0x350cae(0x20c)]=_0x350cae(0x240),_0x115412[_0x350cae(0x1f6)]=_0x350cae(0x23b);}(AIChatShortcutType||(AIChatShortcutType={}));function _0x56a8(_0x29785d,_0x2917af){const _0x5702bd=_0x5702();return _0x56a8=function(_0x56a876,_0x3aa16d){_0x56a876=_0x56a876-0x1e6;let _0x38d614=_0x5702bd[_0x56a876];return _0x38d614;},_0x56a8(_0x29785d,_0x2917af);}export class AIChatShortcuts extends _0x2b6826{[_0x32b09f(0x21b)];[_0x32b09f(0x202)];[_0x32b09f(0x23f)];static get[_0x32b09f(0x22c)](){return[_0x121a12];}static get[_0x32b09f(0x241)](){const _0x5cb08f=_0x32b09f;return _0x5cb08f(0x23d);}static get[_0x32b09f(0x236)](){return!0x0;}static get[_0x32b09f(0x1f9)](){return!0x0;}[_0x32b09f(0x20e)](){const _0x4d44c1=_0x32b09f;this[_0x4d44c1(0x23f)]=this[_0x4d44c1(0x1f4)][_0x4d44c1(0x216)][_0x4d44c1(0x1fb)](_0x121a12),this[_0x4d44c1(0x21b)]=this[_0x4d44c1(0x1f4)][_0x4d44c1(0x234)][_0x4d44c1(0x1fb)](_0x4d44c1(0x1eb))??[];const _0x2de8e1=this[_0x4d44c1(0x1f4)][_0x4d44c1(0x216)][_0x4d44c1(0x1fb)](_0x4d44c1(0x214));this[_0x4d44c1(0x21b)][_0x4d44c1(0x215)]&&(this[_0x4d44c1(0x233)](),this[_0x4d44c1(0x23f)]['on'](_0x4d44c1(0x209),()=>{const _0x53aa6f=_0x4d44c1;_0x2de8e1[_0x53aa6f(0x242)][_0x53aa6f(0x1ea)]||this[_0x53aa6f(0x211)]();}),this[_0x4d44c1(0x207)](_0x2de8e1,_0x4d44c1(0x1fd),()=>{const _0x58b834=_0x4d44c1;this[_0x58b834(0x205)]();}));}[_0x32b09f(0x233)](){const _0x564fd9=_0x32b09f,_0x251e23=Object[_0x564fd9(0x218)](AIChatShortcutType);this[_0x564fd9(0x21b)][_0x564fd9(0x1e9)](_0x3640c3=>{const _0x45a8c8=_0x564fd9;let _0x1eb3ab=!0x0;if(_0x3640c3['id']&&_0x3640c3[_0x45a8c8(0x21c)]&&_0x251e23[_0x45a8c8(0x21f)](_0x3640c3[_0x45a8c8(0x203)])?_0x45a8c8(0x1f3)===_0x3640c3[_0x45a8c8(0x203)]&&(_0x1eb3ab=_0x45a8c8(0x21d)==typeof _0x3640c3[_0x45a8c8(0x219)]):_0x1eb3ab=!0x1,!_0x1eb3ab)throw new _0x59c608(_0x45a8c8(0x1ed),this[_0x45a8c8(0x1f4)],{'shortcut':_0x3640c3});});}[_0x32b09f(0x211)](){const _0x1de5b5=_0x32b09f,_0x4cf3f1=this[_0x1de5b5(0x1f4)][_0x1de5b5(0x216)][_0x1de5b5(0x1fb)](_0x121a12);this[_0x1de5b5(0x202)]=new _0xe77167(this[_0x1de5b5(0x1f4)][_0x1de5b5(0x213)],this[_0x1de5b5(0x21b)]),this[_0x1de5b5(0x202)][_0x1de5b5(0x1ee)](),_0x4cf3f1[_0x1de5b5(0x1fa)](this[_0x1de5b5(0x202)][_0x1de5b5(0x208)],Ut),this[_0x1de5b5(0x202)]['on'](_0x1de5b5(0x1f5),_0xfd650a=>{const _0x11df56=_0x1de5b5,_0x3fbba2=_0xfd650a[_0x11df56(0x1ff)]['id'];this[_0x11df56(0x1f8)](_0x3fbba2);});}[_0x32b09f(0x205)](){const _0x2dbea2=_0x32b09f,_0x5d0f30=this[_0x2dbea2(0x1f4)][_0x2dbea2(0x216)][_0x2dbea2(0x1fb)](_0x121a12);_0x5d0f30[_0x2dbea2(0x21e)](Ut)&&_0x5d0f30[_0x2dbea2(0x228)](Ut),this[_0x2dbea2(0x202)]?.[_0x2dbea2(0x232)]();}[_0x32b09f(0x1f8)](_0x1554f4){const _0x206222=_0x32b09f,_0x13a91f=this[_0x206222(0x21b)][_0x206222(0x23c)](_0x590bf6=>_0x590bf6['id']===_0x1554f4),_0x24f243=_0x13a91f[_0x206222(0x203)];_0x206222(0x1f3)===_0x24f243?this[_0x206222(0x20b)](_0x13a91f):_0x206222(0x240)===_0x24f243?_0x13a91f[_0x206222(0x1f7)]?this[_0x206222(0x227)](_0x13a91f):this[_0x206222(0x1ef)](_0x206222(0x22b)):_0x206222(0x23b)===_0x24f243&&(_0x13a91f[_0x206222(0x1f2)]?this[_0x206222(0x22d)](_0x13a91f):this[_0x206222(0x1ef)](_0x206222(0x23b)));}[_0x32b09f(0x1ef)](_0x282e6f){const _0x1ccf22=_0x32b09f;if(!this[_0x1ccf22(0x1f4)][_0x1ccf22(0x216)][_0x1ccf22(0x21a)](_0x1ccf22(0x206)))throw new _0x59c608(_0x1ccf22(0x237),this[_0x1ccf22(0x1f4)],{'tabName':_0x282e6f});this[_0x1ccf22(0x1f4)][_0x1ccf22(0x216)][_0x1ccf22(0x1fb)](_0x1ccf22(0x206))[_0x1ccf22(0x223)][_0x1ccf22(0x20f)](_0x282e6f);}async[_0x32b09f(0x20b)]({prompt:_0x169b32,draftMode:_0x2bffea,useWebSearch:_0x17de51=!0x1,useReasoning:_0x1ff8dd=!0x1,model:_0x2bd68b}){const _0x15eb4c=_0x32b09f,_0x56275b=this[_0x15eb4c(0x1f4)][_0x15eb4c(0x216)][_0x15eb4c(0x1fb)](_0x15eb4c(0x235)),_0x4501cd=this[_0x15eb4c(0x1f4)][_0x15eb4c(0x216)][_0x15eb4c(0x1fb)](_0x15eb4c(0x214)),_0x224025=_0x4501cd[_0x15eb4c(0x242)];let _0x5db64c;_0x5db64c=_0x2bd68b?await _0x224025[_0x15eb4c(0x225)][_0x15eb4c(0x22a)](_0x2bd68b):await _0x224025[_0x15eb4c(0x225)][_0x15eb4c(0x200)](),_0x5db64c&&await _0x224025[_0x15eb4c(0x1ec)](_0x5db64c),_0x224025[_0x15eb4c(0x22e)](_0x17de51),_0x224025[_0x15eb4c(0x229)](_0x1ff8dd),_0x4501cd[_0x15eb4c(0x226)](),_0x2bffea?(this[_0x15eb4c(0x23f)][_0x15eb4c(0x23e)](_0x169b32),this[_0x15eb4c(0x23f)][_0x15eb4c(0x201)](!0x0)):_0x56275b[_0x15eb4c(0x1f1)]({'message':_0x169b32});}[_0x32b09f(0x227)]({check:_0x4b4b1c,model:_0x2dc1fb,prompt:_0x2968f7,params:_0x32cb0c}){const _0x253bc8=_0x32b09f;if(!this[_0x253bc8(0x1f4)][_0x253bc8(0x216)][_0x253bc8(0x21a)](_0x253bc8(0x231)))throw new _0x59c608(_0x253bc8(0x212),this[_0x253bc8(0x1f4)]);this[_0x253bc8(0x1ef)](_0x253bc8(0x22b));const _0x35778c={'id':_0x4b4b1c,'isCustom':_0x253bc8(0x238)===_0x4b4b1c};_0x2dc1fb&&_0x2968f7&&(_0x35778c[_0x253bc8(0x1fc)]={'model':_0x2dc1fb,'prompt':_0x2968f7}),_0x32cb0c&&(_0x35778c[_0x253bc8(0x224)]=_0x32cb0c),this[_0x253bc8(0x1f4)][_0x253bc8(0x216)][_0x253bc8(0x1fb)](_0x253bc8(0x231))[_0x253bc8(0x1f0)](_0x253bc8(0x220),_0x35778c);}[_0x32b09f(0x22d)]({language:_0x2b7f72}){const _0x5b88ec=_0x32b09f;if(!this[_0x5b88ec(0x1f4)][_0x5b88ec(0x216)][_0x5b88ec(0x21a)](_0x5b88ec(0x1fe)))throw new _0x59c608(_0x5b88ec(0x217),this[_0x5b88ec(0x1f4)]);this[_0x5b88ec(0x1ef)](_0x5b88ec(0x23b)),this[_0x5b88ec(0x1f4)][_0x5b88ec(0x216)][_0x5b88ec(0x1fb)](_0x5b88ec(0x1fe))[_0x5b88ec(0x1f0)](_0x5b88ec(0x220),{'id':_0x2b7f72,'args':{'language':_0x2b7f72}});}}
@@ -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 _0x2e1f44=_0x3fd4;(function(_0x415741,_0x26c9e7){const _0x5594e7=_0x3fd4,_0x4047a6=_0x415741();while(!![]){try{const _0xaac000=parseInt(_0x5594e7(0x1ea))/0x1*(-parseInt(_0x5594e7(0x1ed))/0x2)+-parseInt(_0x5594e7(0x1eb))/0x3*(parseInt(_0x5594e7(0x1db))/0x4)+-parseInt(_0x5594e7(0x1da))/0x5+-parseInt(_0x5594e7(0x1e3))/0x6+parseInt(_0x5594e7(0x1ec))/0x7+-parseInt(_0x5594e7(0x1e2))/0x8+parseInt(_0x5594e7(0x1e1))/0x9;if(_0xaac000===_0x26c9e7)break;else _0x4047a6['push'](_0x4047a6['shift']());}catch(_0x5dc19b){_0x4047a6['push'](_0x4047a6['shift']());}}}(_0x48e5,0x2dde3));function _0x3fd4(_0x54b3df,_0x38011b){const _0x48e5aa=_0x48e5();return _0x3fd4=function(_0x3fd4b7,_0x321120){_0x3fd4b7=_0x3fd4b7-0x1da;let _0x3e8e77=_0x48e5aa[_0x3fd4b7];return _0x3e8e77;},_0x3fd4(_0x54b3df,_0x38011b);}import{ListItemView as _0x38c9c0,ListView as _0xfcc3ba,View as _0x53505f}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x1cbfe9}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x53505f{[_0x2e1f44(0x1e7)];constructor(_0x44bc78,_0x3addb5){const _0xc474b9=_0x2e1f44;super(_0x44bc78);const _0x2a2664=_0x3addb5[_0xc474b9(0x1dc)](_0x5401ce=>{const _0x4c06cc=_0xc474b9,_0x2d779f=new _0x38c9c0(this[_0x4c06cc(0x1dd)]),_0x38b34d=new _0x1cbfe9(this[_0x4c06cc(0x1dd)],_0x5401ce);return _0x2d779f[_0x4c06cc(0x1e6)][_0x4c06cc(0x1ee)](_0x38b34d),_0x38b34d[_0x4c06cc(0x1e9)](_0x4c06cc(0x1e8))['to'](this),_0x2d779f;});this[_0xc474b9(0x1e7)]=new _0xfcc3ba(this[_0xc474b9(0x1dd)]),this[_0xc474b9(0x1e7)][_0xc474b9(0x1e5)][_0xc474b9(0x1df)](_0x2a2664),this[_0xc474b9(0x1e4)]({'tag':_0xc474b9(0x1e0),'attributes':{'class':['ck',_0xc474b9(0x1de)]},'children':[this[_0xc474b9(0x1e7)]]});}}function _0x48e5(){const _0x377ab5=['listView','execute','delegate','3272dVeUZw','33FIGRXf','2579402xMeefT','198LvuIlF','add','1716040kHcGdj','80548PNIpAZ','map','locale','ck-ai-chat-shortcuts','addMany','div','9510309HOuzfq','2304824KxziNT','363396llHPhe','setTemplate','items','children'];_0x48e5=function(){return _0x377ab5;};return _0x48e5();}
@@ -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(_0x3e1d0c,_0x39de20){const _0x3f5ccd=_0x323c,_0xa099e5=_0x3e1d0c();while(!![]){try{const _0x17fd35=parseInt(_0x3f5ccd(0xd8))/0x1+-parseInt(_0x3f5ccd(0xdc))/0x2+parseInt(_0x3f5ccd(0xdf))/0x3+parseInt(_0x3f5ccd(0xd1))/0x4*(parseInt(_0x3f5ccd(0xdb))/0x5)+parseInt(_0x3f5ccd(0xd7))/0x6*(parseInt(_0x3f5ccd(0xd0))/0x7)+parseInt(_0x3f5ccd(0xd9))/0x8+-parseInt(_0x3f5ccd(0xd4))/0x9;if(_0x17fd35===_0x39de20)break;else _0xa099e5['push'](_0xa099e5['shift']());}catch(_0x3caad8){_0xa099e5['push'](_0xa099e5['shift']());}}}(_0x4059,0xc2cf8));import{ButtonView as _0x56c4d9}from'ckeditor5/src/ui.js';import{IconAIChat as _0x359371,IconAIReview as _0x1061a9,IconAITranslate as _0x2fb2d2}from'@ckeditor/ckeditor5-icons';function _0x323c(_0x93d1fa,_0x1392de){const _0x40599a=_0x4059();return _0x323c=function(_0x323cfa,_0x59b40d){_0x323cfa=_0x323cfa-0xd0;let _0x2024e7=_0x40599a[_0x323cfa];return _0x2024e7;},_0x323c(_0x93d1fa,_0x1392de);}export class AIChatShortcutView extends _0x56c4d9{['id'];constructor(_0x48c6b3,_0x1c89d7){const _0x592896=_0x323c;super(_0x48c6b3);const {id:_0x138e70,type:_0x14a82e,icon:_0x31f0bb}=_0x1c89d7;this['id']=_0x138e70,this[_0x592896(0xd5)]({'label':_0x1c89d7[_0x592896(0xd3)],'withText':!0x0,'class':_0x592896(0xd2)}),this[_0x592896(0xd6)]({'attributes':{'data-cke-ai-shortcut-id':_0x1c89d7['id']}}),_0x31f0bb?this[_0x592896(0xde)]=_0x31f0bb:_0x592896(0xdd)===_0x14a82e?this[_0x592896(0xde)]=_0x359371:_0x592896(0xda)===_0x14a82e?this[_0x592896(0xde)]=_0x1061a9:_0x592896(0xe0)===_0x14a82e&&(this[_0x592896(0xde)]=_0x2fb2d2);}}function _0x4059(){const _0x2a3fb8=['1278174YrefRq','158958CVGUvV','6705760cKPtEF','review','7115fJRbZG','1869952dklzBe','chat','icon','725649QMIJVp','translate','7Tadcok','4364xKLohp','ck-ai-chat-shortcut','label','11444967rdIoFJ','set','extendTemplate'];_0x4059=function(){return _0x2a3fb8;};return _0x4059();}