@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +9 -2
  3. package/dist/index-editor.css +119 -34
  4. package/dist/index.css +144 -35
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.d.ts +3 -3
  182. package/src/aichat/aichat.js +1 -1
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +6 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.d.ts +2 -4
  188. package/src/aichat/model/aichatconversation.js +1 -1
  189. package/src/aichat/model/aichatinteraction.js +1 -1
  190. package/src/aichat/model/aichatmodels.d.ts +11 -4
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
  193. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  217. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  218. package/src/aichat/utils/eventnames.js +1 -1
  219. package/src/aichat/utils/promisequeue.js +1 -1
  220. package/src/aichat/utils/scrollmanager.js +1 -1
  221. package/src/aichathistory/aichathistory.js +1 -1
  222. package/src/aichathistory/aichathistorycontroller.js +1 -1
  223. package/src/aichathistory/aichathistoryui.js +1 -1
  224. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  225. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  226. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  227. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  228. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  229. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  230. package/src/aiconfig.d.ts +4 -0
  231. package/src/aicore/aiconnector.js +1 -1
  232. package/src/aicore/aiediting.js +1 -1
  233. package/src/aicore/model/aicapabilities.js +1 -1
  234. package/src/aicore/model/aicontext.js +1 -1
  235. package/src/aicore/model/aiinteraction.js +1 -1
  236. package/src/aicore/model/aireply.d.ts +1 -1
  237. package/src/aicore/model/aireply.js +1 -1
  238. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  239. package/src/aicore/pipeline/airesponseparser.js +2 -2
  240. package/src/aicore/ui/aidisclaimerview.js +1 -1
  241. package/src/aicore/ui/aiskeleton.js +1 -1
  242. package/src/aicore/ui/aispinner.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  248. package/src/aicore/utils/common-translations.js +1 -1
  249. package/src/aicore/utils/createresizebutton.js +1 -1
  250. package/src/aicore/utils/documentposition.js +1 -1
  251. package/src/aicore/utils/documentrange.js +1 -1
  252. package/src/aicore/utils/eventnames.js +1 -1
  253. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  254. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  255. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  256. package/src/aicore/utils/htmlparser.js +1 -1
  257. package/src/aicore/utils/htmlstreamer.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.d.ts +2 -1
  262. package/src/aiquickactions/aiquickactions.js +1 -1
  263. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  264. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  265. package/src/aiquickactions/aiquickactionsui.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -1
  267. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  270. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  271. package/src/aireviewmode/aireviewmode.js +1 -1
  272. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  273. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  274. package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
  275. package/src/aireviewmode/aireviewmodeui.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  278. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
  281. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
  283. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
  285. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  287. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
  290. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
  292. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
  294. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
  296. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  298. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
  299. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  300. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  301. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  302. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  303. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
  304. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  305. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  306. package/src/aitabs/aitabs.js +1 -1
  307. package/src/aitabs/aitabsmainview.d.ts +4 -0
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/errors.d.ts +5 -0
  313. package/src/errors.js +23 -0
  314. package/src/index.js +1 -1
  315. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
  316. package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
  317. package/theme/aichat/aichat-controls.css +1 -0
  318. package/theme/aichat/aichat.css +0 -1
  319. package/theme/aichat/aichatfeed.css +9 -0
  320. package/theme/aichat/aisuggestioncontainer.css +7 -1
  321. package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
  322. package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
  323. package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
  324. package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
  325. package/theme/aitabs/aitabsview.css +2 -2
  326. package/theme/aitabs/tabs/tabsview.css +13 -3
  327. package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
  328. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x179493=_0x4c61;(function(_0x5e4d65,_0x56bafa){const _0x90a79d=_0x4c61,_0x143644=_0x5e4d65();while(!![]){try{const _0x50c3d8=parseInt(_0x90a79d(0xc2))/0x1*(-parseInt(_0x90a79d(0xdc))/0x2)+parseInt(_0x90a79d(0xe1))/0x3+-parseInt(_0x90a79d(0xa6))/0x4+parseInt(_0x90a79d(0xaa))/0x5+-parseInt(_0x90a79d(0xb4))/0x6+parseInt(_0x90a79d(0xb7))/0x7+parseInt(_0x90a79d(0xa0))/0x8*(parseInt(_0x90a79d(0xcd))/0x9);if(_0x50c3d8===_0x56bafa)break;else _0x143644['push'](_0x143644['shift']());}catch(_0x24c9be){_0x143644['push'](_0x143644['shift']());}}}(_0x32f5,0x4bc16));import{FocusTracker as _0x3b60e8,KeystrokeHandler as _0x4af8fb}from'ckeditor5/src/utils.js';function _0x4c61(_0x3bc70f,_0x42bd17){const _0x32f51b=_0x32f5();return _0x4c61=function(_0x4c61d,_0x2e19c1){_0x4c61d=_0x4c61d-0x9f;let _0x5c3950=_0x32f51b[_0x4c61d];return _0x5c3950;},_0x4c61(_0x3bc70f,_0x42bd17);}function _0x32f5(){const _0x2ac903=['REPLACE','bind','fieldView','insertButton','Empty\x20history','add','replaceContent','_focusables','trim','2CXfyPG','tryAgainButton','clear','isVisible','focus','toolbar','Ask\x20AI\x20to\x20edit\x20or\x20generate','handleError','submitPrompt','isEnabled','stopProcessing','333DjHGBY','div','focusTracker','errorView','locale','ck-ai-form-content','chain','finishProcessing','clearHistory','submit','ck-hidden','Ask\x20AI\x20to\x20improve\x20generated\x20text','items','set','high','600268xiXBLx','delegate','keystrokes','tryAgainEvent','execute','1715592tzvkWC','stopButton','_createPromptView','replaceButton','focusLast','bindTo','historyGroupView','element','text','prompt','shift\x20+\x20tab','isProcessing','listenTo','render','_promptHistory','queryView','focusCycler','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusFirst','193096MfPpKB','insertContentBelow','tab','contentArea','startProcessing','mainAction','2048284CfbfGb','reset','isError','_createHistoryView','664640WiyJHm','AI_ERROR_FAILED','bindTemplate','fire','createCollection','search','value','setTemplate','_createToolbar','promptView','1576812gQkuBI','copyButtonView','ck-ai-form','613018rOdzTq','label'];_0x32f5=function(){return _0x2ac903;};return _0x32f5();}import{View as _0x23f694,FocusCycler as _0x7c3cf1,createLabeledTextarea as _0x4ce526}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x39b05d,AIFormToolbarViewMainActionLabel as _0x11ad30}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x517851}from'./aiformcontentarea.js';import{AIFormErrorView as _0x8a8b3b}from'./aiformerrorview.js';import{AIFormPromptView as _0x462699}from'./aiformpromptview.js';import{AIHistoryListView as _0x369e0f}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x22ae10}from'./aihistorylistitemview.js';import{PromptHistory as _0x449984}from'./prompthistory.js';import{getTranslation as _0x30e33c}from'../../utils/common-translations.js';import{escape as _0x53e715}from'es-toolkit/compat';export class AIFormView extends _0x23f694{[_0x179493(0xcf)];[_0x179493(0xde)];[_0x179493(0xa3)];[_0x179493(0xc7)];[_0x179493(0xb3)];[_0x179493(0xd0)];[_0x179493(0xc0)];[_0x179493(0xf1)];[_0x179493(0xef)];constructor(_0xb6426a,_0x344ff0,_0x231abc=''){const _0x17e2d7=_0x179493;super(_0xb6426a),this[_0x17e2d7(0xda)](_0x17e2d7(0xcb),!0x0),this[_0x17e2d7(0xda)](_0x17e2d7(0xec),!0x1),this[_0x17e2d7(0xda)](_0x17e2d7(0xea),''),this[_0x17e2d7(0xda)](_0x17e2d7(0xb0),''),this[_0x17e2d7(0xda)](_0x17e2d7(0xa8),!0x1),this[_0x17e2d7(0xda)](_0x17e2d7(0xa5),_0x11ad30[_0x17e2d7(0xb9)]),this[_0x17e2d7(0xef)]=new _0x449984(),this[_0x17e2d7(0xd0)]=new _0x8a8b3b(_0xb6426a),this[_0x17e2d7(0xa3)]=new _0x517851(_0xb6426a,_0x231abc),this[_0x17e2d7(0xa3)][_0x17e2d7(0xba)](_0x17e2d7(0xec))['to'](this),this[_0x17e2d7(0xa3)][_0x17e2d7(0xba)](_0x17e2d7(0xb0))['to'](this),this[_0x17e2d7(0xc7)]=this[_0x17e2d7(0xb2)](),this[_0x17e2d7(0xc7)][_0x17e2d7(0xba)](_0x17e2d7(0xa5))['to'](this),this[_0x17e2d7(0xb3)]=this[_0x17e2d7(0xe3)](),this[_0x17e2d7(0xcf)]=new _0x3b60e8(),this[_0x17e2d7(0xde)]=new _0x4af8fb(),this[_0x17e2d7(0xc0)]=this[_0x17e2d7(0xae)]([this[_0x17e2d7(0xa3)],this[_0x17e2d7(0xa3)][_0x17e2d7(0xb5)],this[_0x17e2d7(0xc7)],this[_0x17e2d7(0xb3)]]),this[_0x17e2d7(0xf1)]=new _0x7c3cf1({'focusables':this[_0x17e2d7(0xc0)],'focusTracker':this[_0x17e2d7(0xcf)],'keystrokeHandler':this[_0x17e2d7(0xde)],'actions':{'focusPrevious':_0x17e2d7(0xeb),'focusNext':_0x17e2d7(0xa2)}}),this[_0x17e2d7(0xf1)][_0x17e2d7(0xd3)](this[_0x17e2d7(0xb3)][_0x17e2d7(0xf1)]),this[_0x17e2d7(0xb3)][_0x17e2d7(0xf0)][_0x17e2d7(0xbb)][_0x17e2d7(0xba)](_0x17e2d7(0xb0))['to'](this,_0x17e2d7(0xea));const _0x406095=this[_0x17e2d7(0xac)];this[_0x17e2d7(0xb1)]({'tag':_0x17e2d7(0xce),'attributes':{'class':['ck',_0x17e2d7(0xb6),_0x344ff0],'tabindex':'-1'},'children':[{'tag':_0x17e2d7(0xce),'attributes':{'class':['ck',_0x17e2d7(0xd2)]},'children':[{'tag':_0x17e2d7(0xce),'attributes':{'class':[_0x406095['if'](_0x17e2d7(0xa8),_0x17e2d7(0xd7),_0x59df9b=>!_0x59df9b)]},'children':[this[_0x17e2d7(0xd0)]]},this[_0x17e2d7(0xa3)],this[_0x17e2d7(0xc7)],this[_0x17e2d7(0xb3)]]}]});}[_0x179493(0xee)](){const _0x350d45=_0x179493;super[_0x350d45(0xee)](),this[_0x350d45(0xcf)][_0x350d45(0xbe)](this[_0x350d45(0xa3)][_0x350d45(0xe8)]),this[_0x350d45(0xcf)][_0x350d45(0xbe)](this[_0x350d45(0xa3)][_0x350d45(0xb5)][_0x350d45(0xe8)]),this[_0x350d45(0xcf)][_0x350d45(0xbe)](this[_0x350d45(0xc7)][_0x350d45(0xe8)]),this[_0x350d45(0xcf)][_0x350d45(0xbe)](this[_0x350d45(0xb3)][_0x350d45(0xe8)]),this[_0x350d45(0xde)][_0x350d45(0xed)](this[_0x350d45(0xe8)]);}[_0x179493(0xc6)](_0x494c78=0x1){const _0x105a9e=_0x179493;-0x1===_0x494c78?this[_0x105a9e(0xf1)][_0x105a9e(0xe5)]():this[_0x105a9e(0xf1)][_0x105a9e(0x9f)]();}[_0x179493(0xa7)](){const _0x2c3ec9=_0x179493;this[_0x2c3ec9(0xea)]='',this[_0x2c3ec9(0xb0)]='',this[_0x2c3ec9(0xa8)]=!0x1,this[_0x2c3ec9(0xb3)][_0x2c3ec9(0xa7)](),this[_0x2c3ec9(0xa3)][_0x2c3ec9(0xc5)]=!0x1,this[_0x2c3ec9(0xc7)][_0x2c3ec9(0xc5)]=!0x1;}[_0x179493(0xe3)](){const _0x192724=_0x179493,_0x9eb67a=this[_0x192724(0xd1)],_0x4b0f3b=new _0x462699(_0x9eb67a,{'queryView':{'label':_0x30e33c(_0x9eb67a,_0x192724(0xc8)),'creator':_0x4ce526,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x30e33c(_0x9eb67a,_0x192724(0xbd)),'secondary':_0x30e33c(_0x9eb67a,_0x192724(0xf2))}}},'filteredView':this[_0x192724(0xa9)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4b0f3b[_0x192724(0xba)](_0x192724(0xcb))['to'](this,_0x192724(0xcb),this,_0x192724(0xec),(_0x8e847e,_0x11ed4f)=>_0x8e847e&&!_0x11ed4f),this[_0x192724(0xed)](_0x4b0f3b,_0x192724(0xd6),(_0x261507,_0x907e26)=>{const _0x340eaa=_0x192724;this[_0x340eaa(0xea)]=_0x907e26;const _0x5b8c42=_0x53e715(_0x907e26);this[_0x340eaa(0xad)](_0x340eaa(0xca),_0x5b8c42),_0x907e26[_0x340eaa(0xc1)]()&&this[_0x340eaa(0xef)][_0x340eaa(0xbe)]({'prompt':_0x5b8c42},0x0);},{'priority':_0x192724(0xdb)}),_0x4b0f3b;}[_0x179493(0xa9)](){const _0x104675=_0x179493,_0x9d270f=new _0x369e0f(this[_0x104675(0xd1)]);return _0x9d270f[_0x104675(0xe7)][_0x104675(0xd9)][_0x104675(0xe6)](this[_0x104675(0xef)])['as'](_0x22ae10),_0x9d270f['on'](_0x104675(0xd5),()=>{const _0x4087b5=_0x104675;this[_0x4087b5(0xef)][_0x4087b5(0xc4)](),this[_0x4087b5(0xb3)][_0x4087b5(0xaf)](''),this[_0x4087b5(0xb3)][_0x4087b5(0xc6)]();}),_0x9d270f;}[_0x179493(0xb2)](){const _0x27d0ce=_0x179493,_0x2c19ae=new _0x39b05d(this[_0x27d0ce(0xd1)]);return _0x2c19ae[_0x27d0ce(0xe4)][_0x27d0ce(0xba)](_0x27d0ce(0xcb))['to'](this,_0x27d0ce(0xcb),this,_0x27d0ce(0xec),this,_0x27d0ce(0xb0),(_0x2da110,_0x953094,_0x3ba910)=>_0x2da110&&!_0x953094&&!!_0x3ba910),_0x2c19ae[_0x27d0ce(0xe4)][_0x27d0ce(0xdd)](_0x27d0ce(0xe0))['to'](this,_0x27d0ce(0xbf)),_0x2c19ae[_0x27d0ce(0xbc)][_0x27d0ce(0xba)](_0x27d0ce(0xcb))['to'](this,_0x27d0ce(0xcb),this,_0x27d0ce(0xec),this,_0x27d0ce(0xb0),(_0x2b5e96,_0x1d40eb,_0x5d5b2b)=>_0x2b5e96&&!_0x1d40eb&&!!_0x5d5b2b),_0x2c19ae[_0x27d0ce(0xbc)][_0x27d0ce(0xdd)](_0x27d0ce(0xe0))['to'](this,_0x27d0ce(0xa1)),_0x2c19ae[_0x27d0ce(0xc3)][_0x27d0ce(0xba)](_0x27d0ce(0xcb))['to'](this,_0x27d0ce(0xcb),this,_0x27d0ce(0xec),(_0x306ab7,_0x155ada)=>_0x306ab7&&!_0x155ada),_0x2c19ae[_0x27d0ce(0xc3)][_0x27d0ce(0xdd)](_0x27d0ce(0xe0))['to'](this,_0x27d0ce(0xdf)),_0x2c19ae[_0x27d0ce(0xe2)][_0x27d0ce(0xba)](_0x27d0ce(0xcb))['to'](this,_0x27d0ce(0xec)),_0x2c19ae[_0x27d0ce(0xe2)][_0x27d0ce(0xdd)](_0x27d0ce(0xe0))['to'](this,_0x27d0ce(0xcc)),_0x2c19ae;}[_0x179493(0xa4)](){const _0x11dbaa=_0x179493;this[_0x11dbaa(0xb0)]='',this[_0x11dbaa(0xa8)]=!0x1,this[_0x11dbaa(0xec)]=!0x0,this[_0x11dbaa(0xa3)][_0x11dbaa(0xc5)]=!0x0,this[_0x11dbaa(0xc7)][_0x11dbaa(0xc5)]=!0x0,this[_0x11dbaa(0xa3)][_0x11dbaa(0xc6)]();}[_0x179493(0xd4)](){const _0x5dd72a=_0x179493,_0x42d323=this[_0x5dd72a(0xd1)];this[_0x5dd72a(0xec)]=!0x1,this[_0x5dd72a(0xea)]='',this[_0x5dd72a(0xb3)][_0x5dd72a(0xa7)](),this[_0x5dd72a(0xb0)]&&(this[_0x5dd72a(0xb3)][_0x5dd72a(0xf0)][_0x5dd72a(0xb8)]=_0x30e33c(_0x42d323,_0x5dd72a(0xd8)));}[_0x179493(0xc9)](_0x1a3568){const _0x2a42a8=_0x179493,_0x5c231f=this[_0x2a42a8(0xd1)];this[_0x2a42a8(0xd4)](),this[_0x2a42a8(0xa8)]=!0x0,this[_0x2a42a8(0xd0)][_0x2a42a8(0xe9)]=_0x1a3568||_0x30e33c(_0x5c231f,_0x2a42a8(0xab)),this[_0x2a42a8(0xb0)]||(this[_0x2a42a8(0xa3)][_0x2a42a8(0xc5)]=!0x1);}}
23
+ const _0x39769f=_0x7b84;(function(_0x374d3c,_0xa8c14){const _0x23a98b=_0x7b84,_0x4aa937=_0x374d3c();while(!![]){try{const _0x539c21=-parseInt(_0x23a98b(0x1e6))/0x1*(-parseInt(_0x23a98b(0x1de))/0x2)+-parseInt(_0x23a98b(0x1cb))/0x3+parseInt(_0x23a98b(0x1e3))/0x4*(-parseInt(_0x23a98b(0x1ce))/0x5)+-parseInt(_0x23a98b(0x1a0))/0x6*(parseInt(_0x23a98b(0x1eb))/0x7)+-parseInt(_0x23a98b(0x1a8))/0x8*(-parseInt(_0x23a98b(0x1dd))/0x9)+parseInt(_0x23a98b(0x1d5))/0xa+-parseInt(_0x23a98b(0x1a3))/0xb*(-parseInt(_0x23a98b(0x1c3))/0xc);if(_0x539c21===_0xa8c14)break;else _0x4aa937['push'](_0x4aa937['shift']());}catch(_0x19098e){_0x4aa937['push'](_0x4aa937['shift']());}}}(_0x5154,0xd7642));import{FocusTracker as _0x4a324d,KeystrokeHandler as _0x1b9ea2}from'ckeditor5/src/utils.js';import{View as _0x98d478,FocusCycler as _0x33a9b7,createLabeledTextarea as _0x59e04a}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x44b4cf,AIFormToolbarViewMainActionLabel as _0x234d24}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x4c6e75}from'./aiformcontentarea.js';import{AIFormErrorView as _0x19b803}from'./aiformerrorview.js';function _0x5154(){const _0x4ad321=['clearHistory','render','Ask\x20AI\x20to\x20edit\x20or\x20generate','items','label','historyGroupView','replaceButton','element','bindTemplate','stopProcessing','add','delegate','5450352PFNVsU','high','ck-ai-form-content','fire','execute','shift\x20+\x20tab','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tryAgainEvent','2983284dTJNUP','trim','toolbar','365zpOlwg','isError','prompt','clear','promptView','_createPromptView','search','699810TFNdHC','startProcessing','tryAgainButton','focus','reset','errorView','focusFirst','queryView','14585013ubkzGr','122xdSLhr','value','_focusables','handleError','setTemplate','15148xLOBPL','tab','listenTo','23555XLtXDI','finishProcessing','ck-hidden','contentArea','stopButton','3333092CgHAZv','insertButton','focusTracker','REPLACE','fieldView','copyButtonView','submit','isVisible','Empty\x20history','focusCycler','bindTo','chain','18SaaoqD','createCollection','text','11IGYoan','bind','ck-ai-form','focusLast','set','8ypIjTc','mainAction','_promptHistory','keystrokes','isProcessing','Ask\x20AI\x20to\x20improve\x20generated\x20text','submitPrompt','div','replaceContent','insertContentBelow','_createHistoryView','locale','isEnabled','_createToolbar','AI_ERROR_FAILED'];_0x5154=function(){return _0x4ad321;};return _0x5154();}import{AIFormPromptView as _0x3fad7e}from'./aiformpromptview.js';import{AIHistoryListView as _0x1cfde0}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x276ea0}from'./aihistorylistitemview.js';import{PromptHistory as _0xff4e54}from'./prompthistory.js';function _0x7b84(_0x466a52,_0x494a46){const _0x515454=_0x5154();return _0x7b84=function(_0x7b84f4,_0x111710){_0x7b84f4=_0x7b84f4-0x19f;let _0x17c355=_0x515454[_0x7b84f4];return _0x17c355;},_0x7b84(_0x466a52,_0x494a46);}import{getTranslation as _0x5cd4c9}from'../../utils/common-translations.js';import{escape as _0x1cbdba}from'es-toolkit/compat';export class AIFormView extends _0x98d478{[_0x39769f(0x1ed)];[_0x39769f(0x1ab)];[_0x39769f(0x1e9)];[_0x39769f(0x1cd)];[_0x39769f(0x1d2)];[_0x39769f(0x1da)];[_0x39769f(0x1e0)];[_0x39769f(0x1f4)];[_0x39769f(0x1aa)];constructor(_0x1f5632,_0x3585c7,_0x231e9c=''){const _0x54c007=_0x39769f;super(_0x1f5632),this[_0x54c007(0x1a7)](_0x54c007(0x1b4),!0x0),this[_0x54c007(0x1a7)](_0x54c007(0x1ac),!0x1),this[_0x54c007(0x1a7)](_0x54c007(0x1d0),''),this[_0x54c007(0x1a7)](_0x54c007(0x1df),''),this[_0x54c007(0x1a7)](_0x54c007(0x1cf),!0x1),this[_0x54c007(0x1a7)](_0x54c007(0x1a9),_0x234d24[_0x54c007(0x1ee)]),this[_0x54c007(0x1aa)]=new _0xff4e54(),this[_0x54c007(0x1da)]=new _0x19b803(_0x1f5632),this[_0x54c007(0x1e9)]=new _0x4c6e75(_0x1f5632,_0x231e9c),this[_0x54c007(0x1e9)][_0x54c007(0x1a4)](_0x54c007(0x1ac))['to'](this),this[_0x54c007(0x1e9)][_0x54c007(0x1a4)](_0x54c007(0x1df))['to'](this),this[_0x54c007(0x1cd)]=this[_0x54c007(0x1b5)](),this[_0x54c007(0x1cd)][_0x54c007(0x1a4)](_0x54c007(0x1a9))['to'](this),this[_0x54c007(0x1d2)]=this[_0x54c007(0x1d3)](),this[_0x54c007(0x1ed)]=new _0x4a324d(),this[_0x54c007(0x1ab)]=new _0x1b9ea2(),this[_0x54c007(0x1e0)]=this[_0x54c007(0x1a1)]([this[_0x54c007(0x1e9)],this[_0x54c007(0x1e9)][_0x54c007(0x1f0)],this[_0x54c007(0x1cd)],this[_0x54c007(0x1d2)]]),this[_0x54c007(0x1f4)]=new _0x33a9b7({'focusables':this[_0x54c007(0x1e0)],'focusTracker':this[_0x54c007(0x1ed)],'keystrokeHandler':this[_0x54c007(0x1ab)],'actions':{'focusPrevious':_0x54c007(0x1c8),'focusNext':_0x54c007(0x1e4)}}),this[_0x54c007(0x1f4)][_0x54c007(0x19f)](this[_0x54c007(0x1d2)][_0x54c007(0x1f4)]),this[_0x54c007(0x1d2)][_0x54c007(0x1dc)][_0x54c007(0x1ef)][_0x54c007(0x1a4)](_0x54c007(0x1df))['to'](this,_0x54c007(0x1d0));const _0x40b229=this[_0x54c007(0x1bf)];this[_0x54c007(0x1e2)]({'tag':_0x54c007(0x1af),'attributes':{'class':['ck',_0x54c007(0x1a5),_0x3585c7],'tabindex':'-1'},'children':[{'tag':_0x54c007(0x1af),'attributes':{'class':['ck',_0x54c007(0x1c5)]},'children':[{'tag':_0x54c007(0x1af),'attributes':{'class':[_0x40b229['if'](_0x54c007(0x1cf),_0x54c007(0x1e8),_0xd107c6=>!_0xd107c6)]},'children':[this[_0x54c007(0x1da)]]},this[_0x54c007(0x1e9)],this[_0x54c007(0x1cd)],this[_0x54c007(0x1d2)]]}]});}[_0x39769f(0x1b8)](){const _0x7ef827=_0x39769f;super[_0x7ef827(0x1b8)](),this[_0x7ef827(0x1ed)][_0x7ef827(0x1c1)](this[_0x7ef827(0x1e9)][_0x7ef827(0x1be)]),this[_0x7ef827(0x1ed)][_0x7ef827(0x1c1)](this[_0x7ef827(0x1e9)][_0x7ef827(0x1f0)][_0x7ef827(0x1be)]),this[_0x7ef827(0x1ed)][_0x7ef827(0x1c1)](this[_0x7ef827(0x1cd)][_0x7ef827(0x1be)]),this[_0x7ef827(0x1ed)][_0x7ef827(0x1c1)](this[_0x7ef827(0x1d2)][_0x7ef827(0x1be)]),this[_0x7ef827(0x1ab)][_0x7ef827(0x1e5)](this[_0x7ef827(0x1be)]);}[_0x39769f(0x1d8)](_0x417832=0x1){const _0x3c484d=_0x39769f;-0x1===_0x417832?this[_0x3c484d(0x1f4)][_0x3c484d(0x1a6)]():this[_0x3c484d(0x1f4)][_0x3c484d(0x1db)]();}[_0x39769f(0x1d9)](){const _0x460eb1=_0x39769f;this[_0x460eb1(0x1d0)]='',this[_0x460eb1(0x1df)]='',this[_0x460eb1(0x1cf)]=!0x1,this[_0x460eb1(0x1d2)][_0x460eb1(0x1d9)](),this[_0x460eb1(0x1e9)][_0x460eb1(0x1f2)]=!0x1,this[_0x460eb1(0x1cd)][_0x460eb1(0x1f2)]=!0x1;}[_0x39769f(0x1d3)](){const _0x41e026=_0x39769f,_0x126c02=this[_0x41e026(0x1b3)],_0x25ccc3=new _0x3fad7e(_0x126c02,{'queryView':{'label':_0x5cd4c9(_0x126c02,_0x41e026(0x1b9)),'creator':_0x59e04a,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5cd4c9(_0x126c02,_0x41e026(0x1f3)),'secondary':_0x5cd4c9(_0x126c02,_0x41e026(0x1c9))}}},'filteredView':this[_0x41e026(0x1b2)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x25ccc3[_0x41e026(0x1a4)](_0x41e026(0x1b4))['to'](this,_0x41e026(0x1b4),this,_0x41e026(0x1ac),(_0x24d78a,_0x4dcb01)=>_0x24d78a&&!_0x4dcb01),this[_0x41e026(0x1e5)](_0x25ccc3,_0x41e026(0x1f1),(_0x4049cd,_0xebb2c8)=>{const _0x390d20=_0x41e026;this[_0x390d20(0x1d0)]=_0xebb2c8;const _0x334f66=_0x1cbdba(_0xebb2c8);this[_0x390d20(0x1c6)](_0x390d20(0x1ae),_0x334f66),_0xebb2c8[_0x390d20(0x1cc)]()&&this[_0x390d20(0x1aa)][_0x390d20(0x1c1)]({'prompt':_0x334f66},0x0);},{'priority':_0x41e026(0x1c4)}),_0x25ccc3;}[_0x39769f(0x1b2)](){const _0x2eb689=_0x39769f,_0x5f5046=new _0x1cfde0(this[_0x2eb689(0x1b3)]);return _0x5f5046[_0x2eb689(0x1bc)][_0x2eb689(0x1ba)][_0x2eb689(0x1f5)](this[_0x2eb689(0x1aa)])['as'](_0x276ea0),_0x5f5046['on'](_0x2eb689(0x1b7),()=>{const _0x4ccbcf=_0x2eb689;this[_0x4ccbcf(0x1aa)][_0x4ccbcf(0x1d1)](),this[_0x4ccbcf(0x1d2)][_0x4ccbcf(0x1d4)](''),this[_0x4ccbcf(0x1d2)][_0x4ccbcf(0x1d8)]();}),_0x5f5046;}[_0x39769f(0x1b5)](){const _0x50b810=_0x39769f,_0x1bd68e=new _0x44b4cf(this[_0x50b810(0x1b3)]);return _0x1bd68e[_0x50b810(0x1bd)][_0x50b810(0x1a4)](_0x50b810(0x1b4))['to'](this,_0x50b810(0x1b4),this,_0x50b810(0x1ac),this,_0x50b810(0x1df),(_0x483c83,_0x2d703f,_0x373aff)=>_0x483c83&&!_0x2d703f&&!!_0x373aff),_0x1bd68e[_0x50b810(0x1bd)][_0x50b810(0x1c2)](_0x50b810(0x1c7))['to'](this,_0x50b810(0x1b0)),_0x1bd68e[_0x50b810(0x1ec)][_0x50b810(0x1a4)](_0x50b810(0x1b4))['to'](this,_0x50b810(0x1b4),this,_0x50b810(0x1ac),this,_0x50b810(0x1df),(_0x361f73,_0x97ac1a,_0xdadad0)=>_0x361f73&&!_0x97ac1a&&!!_0xdadad0),_0x1bd68e[_0x50b810(0x1ec)][_0x50b810(0x1c2)](_0x50b810(0x1c7))['to'](this,_0x50b810(0x1b1)),_0x1bd68e[_0x50b810(0x1d7)][_0x50b810(0x1a4)](_0x50b810(0x1b4))['to'](this,_0x50b810(0x1b4),this,_0x50b810(0x1ac),(_0x1cf6cf,_0x35d845)=>_0x1cf6cf&&!_0x35d845),_0x1bd68e[_0x50b810(0x1d7)][_0x50b810(0x1c2)](_0x50b810(0x1c7))['to'](this,_0x50b810(0x1ca)),_0x1bd68e[_0x50b810(0x1ea)][_0x50b810(0x1a4)](_0x50b810(0x1b4))['to'](this,_0x50b810(0x1ac)),_0x1bd68e[_0x50b810(0x1ea)][_0x50b810(0x1c2)](_0x50b810(0x1c7))['to'](this,_0x50b810(0x1c0)),_0x1bd68e;}[_0x39769f(0x1d6)](){const _0x14c6ef=_0x39769f;this[_0x14c6ef(0x1df)]='',this[_0x14c6ef(0x1cf)]=!0x1,this[_0x14c6ef(0x1ac)]=!0x0,this[_0x14c6ef(0x1e9)][_0x14c6ef(0x1f2)]=!0x0,this[_0x14c6ef(0x1cd)][_0x14c6ef(0x1f2)]=!0x0,this[_0x14c6ef(0x1e9)][_0x14c6ef(0x1d8)]();}[_0x39769f(0x1e7)](){const _0x525858=_0x39769f,_0x5e86a1=this[_0x525858(0x1b3)];this[_0x525858(0x1ac)]=!0x1,this[_0x525858(0x1d0)]='',this[_0x525858(0x1d2)][_0x525858(0x1d9)](),this[_0x525858(0x1df)]&&(this[_0x525858(0x1d2)][_0x525858(0x1dc)][_0x525858(0x1bb)]=_0x5cd4c9(_0x5e86a1,_0x525858(0x1ad)));}[_0x39769f(0x1e1)](_0x1cffd4){const _0xc0a163=_0x39769f,_0x2d8158=this[_0xc0a163(0x1b3)];this[_0xc0a163(0x1e7)](),this[_0xc0a163(0x1cf)]=!0x0,this[_0xc0a163(0x1da)][_0xc0a163(0x1a2)]=_0x1cffd4||_0x5cd4c9(_0x2d8158,_0xc0a163(0x1b6)),this[_0xc0a163(0x1df)]||(this[_0xc0a163(0x1e9)][_0xc0a163(0x1f2)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x22bf7a,_0x89aa9f){const _0x59eda0=_0x2e6c,_0x599325=_0x22bf7a();while(!![]){try{const _0x4fa2aa=parseInt(_0x59eda0(0x10b))/0x1*(parseInt(_0x59eda0(0x112))/0x2)+parseInt(_0x59eda0(0x102))/0x3*(parseInt(_0x59eda0(0x110))/0x4)+-parseInt(_0x59eda0(0x105))/0x5*(parseInt(_0x59eda0(0x10a))/0x6)+-parseInt(_0x59eda0(0x10f))/0x7+-parseInt(_0x59eda0(0x108))/0x8*(parseInt(_0x59eda0(0x109))/0x9)+-parseInt(_0x59eda0(0x113))/0xa+parseInt(_0x59eda0(0x106))/0xb*(parseInt(_0x59eda0(0x10e))/0xc);if(_0x4fa2aa===_0x89aa9f)break;else _0x599325['push'](_0x599325['shift']());}catch(_0x5c0521){_0x599325['push'](_0x599325['shift']());}}}(_0x4e68,0x6ef48));import{ListItemView as _0x2c6368,ButtonView as _0x411588,ButtonLabelView as _0x4c23da}from'ckeditor5/src/ui.js';import{unescape as _0x3d0533}from'es-toolkit/compat';function _0x2e6c(_0x177297,_0x465116){const _0x4e680d=_0x4e68();return _0x2e6c=function(_0x2e6c98,_0x108aa7){_0x2e6c98=_0x2e6c98-0x102;let _0x4c1d74=_0x4e680d[_0x2e6c98];return _0x4c1d74;},_0x2e6c(_0x177297,_0x465116);}function _0x4e68(){const _0x506b5a=['fire','8050UkGpVF','418CrPQYw','execute','7496wOLyaf','6813RceMMb','672ZWMEFZ','5LUxaEh','set','locale','409236mYCOhA','2995839yEEdRD','172VZXkpR','children','18906SUMdWQ','121950clGpej','prompt','30774MqUWwL','add'];_0x4e68=function(){return _0x506b5a;};return _0x4e68();}export class AIHistoryListItemView extends _0x2c6368{constructor(_0x1cd731){const _0xa5c4db=_0x2e6c;super();const _0x21bfce=new _0x4c23da(),_0x2232b1=new _0x411588(this[_0xa5c4db(0x10d)],_0x21bfce);this[_0xa5c4db(0x111)][_0xa5c4db(0x103)](_0x2232b1),_0x2232b1[_0xa5c4db(0x10c)]({'label':_0x1cd731[_0xa5c4db(0x114)],'withText':!0x0}),_0x2232b1['on'](_0xa5c4db(0x107),()=>{const _0x258ca1=_0xa5c4db;this[_0x258ca1(0x104)](_0x258ca1(0x107),{'value':_0x3d0533(_0x1cd731[_0x258ca1(0x114)])});});}}
23
+ (function(_0x4e6221,_0x3d46e1){const _0x2e048f=_0x336f,_0x121e20=_0x4e6221();while(!![]){try{const _0x52afdc=-parseInt(_0x2e048f(0x17c))/0x1+parseInt(_0x2e048f(0x189))/0x2+parseInt(_0x2e048f(0x17f))/0x3+-parseInt(_0x2e048f(0x182))/0x4*(-parseInt(_0x2e048f(0x188))/0x5)+parseInt(_0x2e048f(0x183))/0x6*(parseInt(_0x2e048f(0x17a))/0x7)+-parseInt(_0x2e048f(0x187))/0x8+-parseInt(_0x2e048f(0x17b))/0x9;if(_0x52afdc===_0x3d46e1)break;else _0x121e20['push'](_0x121e20['shift']());}catch(_0x4aa649){_0x121e20['push'](_0x121e20['shift']());}}}(_0x345e,0xa9ef2));function _0x345e(){const _0x92bd0a=['add','1983684SonLkZ','fire','children','100nKAUcw','30SciIAz','set','execute','prompt','9917968aQcNsN','277730GhCGEs','1211454lGypMP','1337686SBcoHw','13192326tIzBPo','209485SWPVUD','locale'];_0x345e=function(){return _0x92bd0a;};return _0x345e();}import{ListItemView as _0x23afa9,ButtonView as _0x28a44b,ButtonLabelView as _0x5ab7c6}from'ckeditor5/src/ui.js';function _0x336f(_0x52c529,_0x1e772d){const _0x345e41=_0x345e();return _0x336f=function(_0x336fe9,_0x3e7884){_0x336fe9=_0x336fe9-0x17a;let _0x4b76be=_0x345e41[_0x336fe9];return _0x4b76be;},_0x336f(_0x52c529,_0x1e772d);}import{unescape as _0x10ef45}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x23afa9{constructor(_0x5cf9fd){const _0x1fe132=_0x336f;super();const _0x16cd11=new _0x5ab7c6(),_0x641abd=new _0x28a44b(this[_0x1fe132(0x17d)],_0x16cd11);this[_0x1fe132(0x181)][_0x1fe132(0x17e)](_0x641abd),_0x641abd[_0x1fe132(0x184)]({'label':_0x5cf9fd[_0x1fe132(0x186)],'withText':!0x0}),_0x641abd['on'](_0x1fe132(0x185),()=>{const _0x3c6986=_0x1fe132;this[_0x3c6986(0x180)](_0x3c6986(0x185),{'value':_0x10ef45(_0x5cf9fd[_0x3c6986(0x186)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57d261=_0x4802;function _0x3b75(){const _0x2b2197=['fire','length','7017579WaCLdr','locale','add','label','execute','5259955pjwCMd','Clear','delegate','set','items','children','clearHistoryButton','clearHistory','48688CABgTV','1000600DAPjSG','7IMLlcN','historyGroupView','151525zYFvXY','filter','10648788omdfNB','_createClearHistoryButton','7013180QoUpzc','Prompt\x20history','90pKNxge'];_0x3b75=function(){return _0x2b2197;};return _0x3b75();}function _0x4802(_0x1f8935,_0x561554){const _0x3b7574=_0x3b75();return _0x4802=function(_0x4802fb,_0x4cf181){_0x4802fb=_0x4802fb-0x18e;let _0x42521d=_0x3b7574[_0x4802fb];return _0x42521d;},_0x4802(_0x1f8935,_0x561554);}(function(_0x20c91e,_0x7c6275){const _0x138ac1=_0x4802,_0x326af7=_0x20c91e();while(!![]){try{const _0x22c2f8=-parseInt(_0x138ac1(0x199))/0x1+parseInt(_0x138ac1(0x195))/0x2*(-parseInt(_0x138ac1(0x19f))/0x3)+parseInt(_0x138ac1(0x19d))/0x4+-parseInt(_0x138ac1(0x1a7))/0x5+-parseInt(_0x138ac1(0x19b))/0x6*(-parseInt(_0x138ac1(0x197))/0x7)+parseInt(_0x138ac1(0x196))/0x8+-parseInt(_0x138ac1(0x1a2))/0x9;if(_0x22c2f8===_0x7c6275)break;else _0x326af7['push'](_0x326af7['shift']());}catch(_0x50556a){_0x326af7['push'](_0x326af7['shift']());}}}(_0x3b75,0xe5651));import{ListView as _0x4f8f52,ListItemGroupView as _0x40883e,ButtonView as _0xdaabe2}from'ckeditor5/src/ui.js';import{getTranslation as _0xb88026}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x4f8f52{[_0x57d261(0x198)];[_0x57d261(0x193)];constructor(_0x1badec){const _0x43c925=_0x57d261;super(_0x1badec),this[_0x43c925(0x193)]=this[_0x43c925(0x19c)](),this[_0x43c925(0x198)]=new _0x40883e(),this[_0x43c925(0x198)][_0x43c925(0x192)][_0x43c925(0x1a4)](this[_0x43c925(0x193)],0x1),this[_0x43c925(0x198)][_0x43c925(0x1a5)]=_0xb88026(_0x1badec,_0x43c925(0x19e)),this[_0x43c925(0x198)][_0x43c925(0x191)][_0x43c925(0x18f)](_0x43c925(0x1a6))['to'](this),this[_0x43c925(0x191)][_0x43c925(0x1a4)](this[_0x43c925(0x198)]);}[_0x57d261(0x19a)](){const _0x51f22e=_0x57d261;let _0x16d7d4=0x0;for(const _0x26ed86 of this[_0x51f22e(0x191)])_0x16d7d4+=_0x26ed86[_0x51f22e(0x191)][_0x51f22e(0x1a1)];return{'resultsCount':_0x16d7d4,'totalItemsCount':_0x16d7d4};}[_0x57d261(0x19c)](){const _0x2d4149=_0x57d261,_0x4b7714=this[_0x2d4149(0x1a3)],_0xb8c954=new _0xdaabe2(this[_0x2d4149(0x1a3)]);return _0xb8c954[_0x2d4149(0x190)]({'label':'('+_0xb88026(_0x4b7714,_0x2d4149(0x18e))+')','withText':!0x0}),_0xb8c954['on'](_0x2d4149(0x1a6),()=>this[_0x2d4149(0x1a0)](_0x2d4149(0x194))),_0xb8c954;}}
23
+ const _0x1a0864=_0x25be;function _0x460a(){const _0x3e02c5=['2097840mgKgLK','clearHistory','label','40ACTRdM','36vfowQL','execute','add','fire','children','8qdyyKw','_createClearHistoryButton','historyGroupView','24864565XKkrje','463020UNjwym','12vTczbG','filter','69587opmiTC','Clear','items','Prompt\x20history','59468iUsdgM','delegate','134012rpguub','locale','4855092UvbbtS','132AOIeUT','length','set','clearHistoryButton'];_0x460a=function(){return _0x3e02c5;};return _0x460a();}(function(_0x2abc1f,_0x4b73db){const _0x3025cc=_0x25be,_0xadbcb9=_0x2abc1f();while(!![]){try{const _0x14c683=parseInt(_0x3025cc(0xa8))/0x1*(-parseInt(_0x3025cc(0x98))/0x2)+parseInt(_0x3025cc(0x9b))/0x3*(-parseInt(_0x3025cc(0x96))/0x4)+parseInt(_0x3025cc(0x9f))/0x5+-parseInt(_0x3025cc(0x9a))/0x6+-parseInt(_0x3025cc(0x92))/0x7*(-parseInt(_0x3025cc(0xa2))/0x8)+-parseInt(_0x3025cc(0xa3))/0x9*(parseInt(_0x3025cc(0xac))/0xa)+-parseInt(_0x3025cc(0xab))/0xb*(-parseInt(_0x3025cc(0x90))/0xc);if(_0x14c683===_0x4b73db)break;else _0xadbcb9['push'](_0xadbcb9['shift']());}catch(_0x3d33da){_0xadbcb9['push'](_0xadbcb9['shift']());}}}(_0x460a,0x8514e));import{ListView as _0x513b8f,ListItemGroupView as _0x1a8883,ButtonView as _0x215283}from'ckeditor5/src/ui.js';import{getTranslation as _0x47ef98}from'../../utils/common-translations.js';function _0x25be(_0x25dde3,_0x451397){const _0x460ac2=_0x460a();return _0x25be=function(_0x25be5f,_0x4d7884){_0x25be5f=_0x25be5f-0x90;let _0x32cb6d=_0x460ac2[_0x25be5f];return _0x32cb6d;},_0x25be(_0x25dde3,_0x451397);}export class AIHistoryListView extends _0x513b8f{[_0x1a0864(0xaa)];[_0x1a0864(0x9e)];constructor(_0x52c1cb){const _0x2b3647=_0x1a0864;super(_0x52c1cb),this[_0x2b3647(0x9e)]=this[_0x2b3647(0xa9)](),this[_0x2b3647(0xaa)]=new _0x1a8883(),this[_0x2b3647(0xaa)][_0x2b3647(0xa7)][_0x2b3647(0xa5)](this[_0x2b3647(0x9e)],0x1),this[_0x2b3647(0xaa)][_0x2b3647(0xa1)]=_0x47ef98(_0x52c1cb,_0x2b3647(0x95)),this[_0x2b3647(0xaa)][_0x2b3647(0x94)][_0x2b3647(0x97)](_0x2b3647(0xa4))['to'](this),this[_0x2b3647(0x94)][_0x2b3647(0xa5)](this[_0x2b3647(0xaa)]);}[_0x1a0864(0x91)](){const _0x3a91f5=_0x1a0864;let _0x49b3a5=0x0;for(const _0x52b2d1 of this[_0x3a91f5(0x94)])_0x49b3a5+=_0x52b2d1[_0x3a91f5(0x94)][_0x3a91f5(0x9c)];return{'resultsCount':_0x49b3a5,'totalItemsCount':_0x49b3a5};}[_0x1a0864(0xa9)](){const _0x505e95=_0x1a0864,_0x16c844=this[_0x505e95(0x99)],_0x3f5a38=new _0x215283(this[_0x505e95(0x99)]);return _0x3f5a38[_0x505e95(0x9d)]({'label':'('+_0x47ef98(_0x16c844,_0x505e95(0x93))+')','withText':!0x0}),_0x3f5a38['on'](_0x505e95(0xa4),()=>this[_0x505e95(0xa6)](_0x505e95(0xa0))),_0x3f5a38;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19df7a=_0x3000;(function(_0x44121e,_0x37d5d6){const _0x55e228=_0x3000,_0x269793=_0x44121e();while(!![]){try{const _0x17a90f=parseInt(_0x55e228(0x9c))/0x1*(parseInt(_0x55e228(0x9e))/0x2)+-parseInt(_0x55e228(0x8e))/0x3*(-parseInt(_0x55e228(0x8f))/0x4)+-parseInt(_0x55e228(0x99))/0x5*(-parseInt(_0x55e228(0x9b))/0x6)+parseInt(_0x55e228(0x91))/0x7*(parseInt(_0x55e228(0x92))/0x8)+parseInt(_0x55e228(0x8c))/0x9+parseInt(_0x55e228(0x97))/0xa+-parseInt(_0x55e228(0x9a))/0xb;if(_0x17a90f===_0x37d5d6)break;else _0x269793['push'](_0x269793['shift']());}catch(_0x4e8651){_0x269793['push'](_0x269793['shift']());}}}(_0x567e,0x7cc0d));import{Collection as _0x56d8c5}from'ckeditor5/src/utils.js';const no=_0x19df7a(0xa1);export class PromptHistory extends _0x56d8c5{constructor(){const _0x533a00=_0x19df7a;super(),this[_0x533a00(0xa4)](),this['on'](_0x533a00(0x93),(_0x248f90,_0x38d75e)=>{const _0x4183b8=_0x533a00,_0x293172=ho(_0x38d75e[_0x4183b8(0x90)]);for(const _0x4a55af of this)if(_0x4a55af!=_0x38d75e&&ho(_0x4a55af[_0x4183b8(0x90)])===_0x293172){this[_0x4183b8(0x8d)](_0x4a55af);break;}this[_0x4183b8(0x95)]>0x14&&this[_0x4183b8(0x8d)](this[_0x4183b8(0xa0)]),this[_0x4183b8(0xa2)]();}),this['on'](_0x533a00(0x8d),()=>{const _0x4754e2=_0x533a00;this[_0x4754e2(0xa2)]();});}[_0x19df7a(0xa4)](){const _0x5669ba=_0x19df7a,_0x1b8562=sessionStorage[_0x5669ba(0x98)](no)||'[]';this[_0x5669ba(0xa5)](JSON[_0x5669ba(0x9f)](_0x1b8562));}[_0x19df7a(0xa2)](){const _0x3012e0=_0x19df7a;sessionStorage[_0x3012e0(0x94)](no,JSON[_0x3012e0(0xa3)](this[_0x3012e0(0x96)](_0x301dce=>_0x301dce)));}}function ho(_0x522cfe){const _0x18a6db=_0x19df7a;return _0x522cfe[_0x18a6db(0x9d)]()[_0x18a6db(0xa6)]();}function _0x3000(_0x3f1f9,_0x5ef088){const _0x567e33=_0x567e();return _0x3000=function(_0x300018,_0x5e209a){_0x300018=_0x300018-0x8c;let _0x4b8ce0=_0x567e33[_0x300018];return _0x4b8ce0;},_0x3000(_0x3f1f9,_0x5ef088);}function _0x567e(){const _0x2d79c5=['length','map','2262490rvzvwO','getItem','16225ywZOwn','31671673ITmoXK','1446GygliY','8cdGdhu','toLowerCase','227874hCAnwU','parse','last','CKEditor/AIFormView/PromptHistory','_saveToSessionStorage','stringify','_loadFromSessionStorage','addMany','trim','3479004pnjQws','remove','569892jNfqPK','4WnpAPH','prompt','2723RKeEft','18384GvDzAF','add','setItem'];_0x567e=function(){return _0x2d79c5;};return _0x567e();}
23
+ function _0x2f6b(){const _0x414f21=['883810QHmEfQ','CKEditor/AIFormView/PromptHistory','315521YVbyxS','3706516nRPJoU','trim','243872GJCvdD','stringify','168VNBhyX','setItem','map','2cybYpK','5702730oRyzpB','last','getItem','length','_saveToSessionStorage','toLowerCase','addMany','_loadFromSessionStorage','765114UbHDsh','remove','prompt','add','parse','8794782tpWvJX'];_0x2f6b=function(){return _0x414f21;};return _0x2f6b();}function _0x1e99(_0x16f6b1,_0xd34a6){const _0x2f6bc0=_0x2f6b();return _0x1e99=function(_0x1e9928,_0x1727e3){_0x1e9928=_0x1e9928-0x7f;let _0x1207ee=_0x2f6bc0[_0x1e9928];return _0x1207ee;},_0x1e99(_0x16f6b1,_0xd34a6);}const _0x403052=_0x1e99;(function(_0x3cac96,_0x3667d8){const _0xf9924b=_0x1e99,_0x3c52a0=_0x3cac96();while(!![]){try{const _0x1b0a3a=-parseInt(_0xf9924b(0x8c))/0x1*(-parseInt(_0xf9924b(0x94))/0x2)+parseInt(_0xf9924b(0x84))/0x3+-parseInt(_0xf9924b(0x8d))/0x4+parseInt(_0xf9924b(0x8a))/0x5+parseInt(_0xf9924b(0x95))/0x6+parseInt(_0xf9924b(0x91))/0x7*(parseInt(_0xf9924b(0x8f))/0x8)+-parseInt(_0xf9924b(0x89))/0x9;if(_0x1b0a3a===_0x3667d8)break;else _0x3c52a0['push'](_0x3c52a0['shift']());}catch(_0x226864){_0x3c52a0['push'](_0x3c52a0['shift']());}}}(_0x2f6b,0x804fd));import{Collection as _0x10fd37}from'ckeditor5/src/utils.js';const ao=_0x403052(0x8b);export class PromptHistory extends _0x10fd37{constructor(){const _0x3ba310=_0x403052;super(),this[_0x3ba310(0x83)](),this['on'](_0x3ba310(0x87),(_0x42ba49,_0x27e293)=>{const _0x13cecc=_0x3ba310,_0x1e0ebd=So(_0x27e293[_0x13cecc(0x86)]);for(const _0x356b64 of this)if(_0x356b64!=_0x27e293&&So(_0x356b64[_0x13cecc(0x86)])===_0x1e0ebd){this[_0x13cecc(0x85)](_0x356b64);break;}this[_0x13cecc(0x7f)]>0x14&&this[_0x13cecc(0x85)](this[_0x13cecc(0x96)]),this[_0x13cecc(0x80)]();}),this['on'](_0x3ba310(0x85),()=>{const _0x5baa8b=_0x3ba310;this[_0x5baa8b(0x80)]();});}[_0x403052(0x83)](){const _0x3ff3be=_0x403052,_0x2e2b62=sessionStorage[_0x3ff3be(0x97)](ao)||'[]';this[_0x3ff3be(0x82)](JSON[_0x3ff3be(0x88)](_0x2e2b62));}[_0x403052(0x80)](){const _0x49e6b2=_0x403052;sessionStorage[_0x49e6b2(0x92)](ao,JSON[_0x49e6b2(0x90)](this[_0x49e6b2(0x93)](_0x218988=>_0x218988)));}}function So(_0x9e25d1){const _0x132db2=_0x403052;return _0x9e25d1[_0x132db2(0x81)]()[_0x132db2(0x8e)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a5b3e=_0x40f1;(function(_0x361e9a,_0x75fb47){const _0x1e0d82=_0x40f1,_0x28600b=_0x361e9a();while(!![]){try{const _0x4041fe=parseInt(_0x1e0d82(0xc9))/0x1+parseInt(_0x1e0d82(0xd2))/0x2+-parseInt(_0x1e0d82(0xb0))/0x3*(-parseInt(_0x1e0d82(0xca))/0x4)+parseInt(_0x1e0d82(0xd8))/0x5+-parseInt(_0x1e0d82(0xcc))/0x6*(parseInt(_0x1e0d82(0xb9))/0x7)+-parseInt(_0x1e0d82(0xaf))/0x8*(parseInt(_0x1e0d82(0xb5))/0x9)+parseInt(_0x1e0d82(0xb1))/0xa*(parseInt(_0x1e0d82(0xc4))/0xb);if(_0x4041fe===_0x75fb47)break;else _0x28600b['push'](_0x28600b['shift']());}catch(_0x26381a){_0x28600b['push'](_0x28600b['shift']());}}}(_0x4c30,0x9cc6f));function _0x4c30(){const _0x1419f3=['selection','24886EgRVkT','plugins','get','length','_hasContext','editor','2419355BzRcUw','values','custom','model','4629368UKUKVy','152211OXrUnS','30JXUIhO','execute','from','change:isEnabled','9ZVazyd','isEnabled','set','_commandDefinitions','1962807jrbnZC','getFirstRange','getSelectedBlocks','change:_hasContext','hasContent','showUI','name','element','requiresContent','getItems','refresh','2917563CQcRiN','isEmpty','add','enabledCommandsIds','getRanges','719283aVkbxH','4gfhwDi','document','18qVaFVD','isCollapsed','config','ai.assistant.disabledElements','includes'];_0x4c30=function(){return _0x1419f3;};return _0x4c30();}import{Command as _0x4465be}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x488c0e}from'../aiassistantui.js';function _0x40f1(_0x1db0ec,_0x2b3d02){const _0x4c3090=_0x4c30();return _0x40f1=function(_0x40f1e4,_0x5dfc5a){_0x40f1e4=_0x40f1e4-0xac;let _0x1e7e14=_0x4c3090[_0x40f1e4];return _0x1e7e14;},_0x40f1(_0x1db0ec,_0x2b3d02);}export class ShowAIAssistantCommand extends _0x4465be{[_0x5a5b3e(0xb8)];constructor(_0x181882,_0x4d4d58){const _0x4e81c4=_0x5a5b3e;super(_0x181882),this[_0x4e81c4(0xb8)]=_0x4d4d58,this[_0x4e81c4(0xb7)](_0x4e81c4(0xc7),[]),this['on'](_0x4e81c4(0xbc),(_0x2b7c35,_0x239d9c,_0x221800)=>{const _0x532b37=_0x4e81c4;this[_0x532b37(0xb6)]&&(this[_0x532b37(0xc7)]=fs(this[_0x532b37(0xb8)],_0x221800));}),this[_0x4e81c4(0xb7)](_0x4e81c4(0xd6),!0x1),this['on'](_0x4e81c4(0xb4),(_0x4cc962,_0x3285b5,_0x444f04)=>{const _0x572e78=_0x4e81c4;this[_0x572e78(0xc7)]=_0x444f04?fs(this[_0x572e78(0xb8)],this[_0x572e78(0xd6)]):[];});}[_0x5a5b3e(0xc3)](){const _0x3fde09=_0x5a5b3e,_0x1a53d4=this[_0x3fde09(0xd7)][_0x3fde09(0xae)];this[_0x3fde09(0xd6)]=function(_0x57064e){const _0x1180a7=_0x3fde09,_0x48d3f2=_0x57064e[_0x1180a7(0xcb)][_0x1180a7(0xd1)];return _0x48d3f2[_0x1180a7(0xcd)]?0x0!==[..._0x48d3f2[_0x1180a7(0xbb)]()][_0x1180a7(0xd5)]&&![..._0x48d3f2[_0x1180a7(0xbb)]()][0x0][_0x1180a7(0xc5)]:!!_0x57064e[_0x1180a7(0xbd)](_0x48d3f2[_0x1180a7(0xba)]());}(_0x1a53d4);const _0x1c0830=_0x1a53d4[_0x3fde09(0xcb)][_0x3fde09(0xd1)],_0x31a654=this[_0x3fde09(0xd7)][_0x3fde09(0xce)][_0x3fde09(0xd4)](_0x3fde09(0xcf));for(const _0x2ecae5 of _0x1c0830[_0x3fde09(0xc8)]())for(const _0x2991ad of _0x2ecae5[_0x3fde09(0xc2)]())if(_0x2991ad['is'](_0x3fde09(0xc0))&&_0x31a654[_0x3fde09(0xd0)](_0x2991ad[_0x3fde09(0xbf)]))return void(this[_0x3fde09(0xb6)]=!0x1);this[_0x3fde09(0xb6)]=!0x0;}[_0x5a5b3e(0xb2)](_0x3f5f18='',_0x534a10='',_0x5551db=_0x5a5b3e(0xad)){const _0x25cefb=_0x5a5b3e;this[_0x25cefb(0xd7)][_0x25cefb(0xd3)][_0x25cefb(0xd4)](_0x488c0e)[_0x25cefb(0xbe)](_0x3f5f18,_0x534a10,_0x5551db);}}function fs(_0x395205,_0x791c8a){const _0x4438c9=_0x5a5b3e,_0x51264c=new Set();for(const _0x35b2e4 of _0x395205[_0x4438c9(0xac)]())(_0x791c8a||!0x1===_0x35b2e4[_0x4438c9(0xc1)])&&_0x51264c[_0x4438c9(0xc6)](_0x35b2e4['id']);return Array[_0x4438c9(0xb3)](_0x51264c);}
23
+ const _0xae2f93=_0xd680;function _0xd680(_0x1726e3,_0x19a15e){const _0x39440c=_0x3944();return _0xd680=function(_0xd6807,_0x3e189a){_0xd6807=_0xd6807-0x171;let _0x164169=_0x39440c[_0xd6807];return _0x164169;},_0xd680(_0x1726e3,_0x19a15e);}(function(_0x401e59,_0x526e88){const _0x38f932=_0xd680,_0x21577e=_0x401e59();while(!![]){try{const _0x3895d0=parseInt(_0x38f932(0x19e))/0x1+parseInt(_0x38f932(0x177))/0x2*(-parseInt(_0x38f932(0x194))/0x3)+parseInt(_0x38f932(0x181))/0x4*(parseInt(_0x38f932(0x189))/0x5)+-parseInt(_0x38f932(0x19a))/0x6+-parseInt(_0x38f932(0x196))/0x7*(-parseInt(_0x38f932(0x18d))/0x8)+-parseInt(_0x38f932(0x172))/0x9*(-parseInt(_0x38f932(0x171))/0xa)+-parseInt(_0x38f932(0x18c))/0xb*(parseInt(_0x38f932(0x190))/0xc);if(_0x3895d0===_0x526e88)break;else _0x21577e['push'](_0x21577e['shift']());}catch(_0xa7b4e3){_0x21577e['push'](_0x21577e['shift']());}}}(_0x3944,0x91a95));import{Command as _0x4e51c4}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2c8a8d}from'../aiassistantui.js';function _0x3944(){const _0x5f4111=['refresh','966607FLWjfL','100rngibs','255321eJgGFc','showUI','model','name','change:isEnabled','138rfCBfT','_hasContext','isEnabled','from','getFirstRange','ai.assistant.disabledElements','change:_hasContext','custom','set','getSelectedBlocks','1616RTBIJT','includes','getItems','plugins','hasContent','selection','element','requiresContent','2155jWXhkg','enabledCommandsIds','config','11FfTGtq','6126784OrVWxd','execute','isEmpty','9107244fIxBBU','values','add','get','14769ATzKjx','_commandDefinitions','7HfyKjP','document','getRanges','length','2970096SnujNx','isCollapsed','editor'];_0x3944=function(){return _0x5f4111;};return _0x3944();}export class ShowAIAssistantCommand extends _0x4e51c4{[_0xae2f93(0x195)];constructor(_0x434563,_0x42b193){const _0x1336bd=_0xae2f93;super(_0x434563),this[_0x1336bd(0x195)]=_0x42b193,this[_0x1336bd(0x17f)](_0x1336bd(0x18a),[]),this['on'](_0x1336bd(0x17d),(_0x3a110f,_0xa32fbe,_0x163580)=>{const _0xce57b9=_0x1336bd;this[_0xce57b9(0x179)]&&(this[_0xce57b9(0x18a)]=ns(this[_0xce57b9(0x195)],_0x163580));}),this[_0x1336bd(0x17f)](_0x1336bd(0x178),!0x1),this['on'](_0x1336bd(0x176),(_0xa95c0,_0x1a0d27,_0x1a18ac)=>{const _0x3fa903=_0x1336bd;this[_0x3fa903(0x18a)]=_0x1a18ac?ns(this[_0x3fa903(0x195)],this[_0x3fa903(0x178)]):[];});}[_0xae2f93(0x19d)](){const _0x1942da=_0xae2f93,_0x1d6ea4=this[_0x1942da(0x19c)][_0x1942da(0x174)];this[_0x1942da(0x178)]=function(_0x529a65){const _0x329c19=_0x1942da,_0x220d8c=_0x529a65[_0x329c19(0x197)][_0x329c19(0x186)];return _0x220d8c[_0x329c19(0x19b)]?0x0!==[..._0x220d8c[_0x329c19(0x180)]()][_0x329c19(0x199)]&&![..._0x220d8c[_0x329c19(0x180)]()][0x0][_0x329c19(0x18f)]:!!_0x529a65[_0x329c19(0x185)](_0x220d8c[_0x329c19(0x17b)]());}(_0x1d6ea4);const _0x48dddd=_0x1d6ea4[_0x1942da(0x197)][_0x1942da(0x186)],_0x49bec=this[_0x1942da(0x19c)][_0x1942da(0x18b)][_0x1942da(0x193)](_0x1942da(0x17c));for(const _0x2c5f75 of _0x48dddd[_0x1942da(0x198)]())for(const _0x46eeac of _0x2c5f75[_0x1942da(0x183)]())if(_0x46eeac['is'](_0x1942da(0x187))&&_0x49bec[_0x1942da(0x182)](_0x46eeac[_0x1942da(0x175)]))return void(this[_0x1942da(0x179)]=!0x1);this[_0x1942da(0x179)]=!0x0;}[_0xae2f93(0x18e)](_0x3ab914='',_0x35f2db='',_0x1a7bff=_0xae2f93(0x17e)){const _0x2be808=_0xae2f93;this[_0x2be808(0x19c)][_0x2be808(0x184)][_0x2be808(0x193)](_0x2c8a8d)[_0x2be808(0x173)](_0x3ab914,_0x35f2db,_0x1a7bff);}}function ns(_0x3e46fb,_0x5265c4){const _0x2003a3=_0xae2f93,_0x868273=new Set();for(const _0x325b10 of _0x3e46fb[_0x2003a3(0x191)]())(_0x5265c4||!0x1===_0x325b10[_0x2003a3(0x188)])&&_0x868273[_0x2003a3(0x192)](_0x325b10['id']);return Array[_0x2003a3(0x17a)](_0x868273);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x43381d,_0x3b64af,_0x90c813){const t=_0x43381d['t'];switch(_0x3b64af){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x90c813);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x90c813);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x90c813);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x3b64af;}}
23
+ export function getTranslation(_0xa7dc1c,_0x20fc0a,_0x23a4f7){const t=_0xa7dc1c['t'];switch(_0x20fc0a){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x23a4f7);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x23a4f7);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x23a4f7);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x20fc0a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x3a4b43,_0x375528){const _0xa8d0ce=(0x0,_0x375528['t'])('Other');return _0x3a4b43['length']?'groupId'in _0x3a4b43[0x0]?_0x3a4b43:[{'groupId':'_ungrouppedCommands','groupLabel':_0xa8d0ce,'order':0x1/0x0,'commands':_0x3a4b43}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0xa8d0ce,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x16269d,_0x2caf31){const _0xba5de9=(0x0,_0x2caf31['t'])('Other');return _0x16269d['length']?'groupId'in _0x16269d[0x0]?_0x16269d:[{'groupId':'_ungrouppedCommands','groupLabel':_0xba5de9,'order':0x1/0x0,'commands':_0x16269d}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0xba5de9,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1524(){const _0x4a996d=['showFakeVisualSelection','2985544jbiGoy','bind','ai-balloon-','ranges','2Rmnxsr','close','ai-selection','open','index','getBoundingClientRect','hide','fire','left','height','round','balloonView','trackChanges','length','6630910sSLpcH','editing','AIBalloon','icon','isOfficialPlugin','isPremiumPlugin','286265czuyzR','hideFakeVisualSelection','width','1062486ypOZVK','\x20ai-balloon-rotator','delegate','AIEditing','pluginName','locale','show','innerHeight','commands','123507hclNoy','10nZCVgm','markers','plugins','isOpen','ai-balloon','setupRotator','230xcbGjK','485337FbZrzY','aiBalloon','_config','_calculateDialogPosition','_showDialog','28RLHWST','model','_calculateOptimalTopPosition','Dialog','showRotator','ai.availableReplyActions','top','title','get','getMarkersGroup','value','requires','context','ai-balloon-selection','dialogClosed','config','isTrackChangesOn','118089GsWLBI','_setupVisualSelection'];_0x1524=function(){return _0x4a996d;};return _0x1524();}const _0x48d1ac=_0x1e2e;(function(_0x49acec,_0x4580e8){const _0x5263cd=_0x1e2e,_0x133254=_0x49acec();while(!![]){try{const _0x51cff4=-parseInt(_0x5263cd(0xf8))/0x1*(parseInt(_0x5263cd(0x115))/0x2)+-parseInt(_0x5263cd(0xf0))/0x3*(-parseInt(_0x5263cd(0xfd))/0x4)+-parseInt(_0x5263cd(0xf1))/0x5*(-parseInt(_0x5263cd(0xe7))/0x6)+parseInt(_0x5263cd(0xe4))/0x7+parseInt(_0x5263cd(0x111))/0x8+-parseInt(_0x5263cd(0x10e))/0x9*(-parseInt(_0x5263cd(0xf7))/0xa)+-parseInt(_0x5263cd(0xde))/0xb;if(_0x51cff4===_0x4580e8)break;else _0x133254['push'](_0x133254['shift']());}catch(_0x32a494){_0x133254['push'](_0x133254['shift']());}}}(_0x1524,0x41ef5));import{ContextPlugin as _0x53fc0a}from'ckeditor5/src/core.js';function _0x1e2e(_0xb8292d,_0x26f227){const _0x15246e=_0x1524();return _0x1e2e=function(_0x1e2edb,_0x193e34){_0x1e2edb=_0x1e2edb-0xd1;let _0xa8f395=_0x15246e[_0x1e2edb];return _0xa8f395;},_0x1e2e(_0xb8292d,_0x26f227);}import{AIConnector as _0x1daac4}from'../aicore/aiconnector.js';import{AIEditing as _0x2209f8}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x836997,AIBalloonView as _0x2644e9}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x3765f0}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x2901bd}from'../aicore/utils/geteditorfromcontext.js';import{ACTIONS as _0x1ee5ec}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x836997,_0x48d1ac(0x10b)];export class AIBalloon extends _0x53fc0a{static get[_0x48d1ac(0x108)](){return[_0x1daac4,_0x2209f8];}static get[_0x48d1ac(0xeb)](){const _0xf4b9f9=_0x48d1ac;return _0xf4b9f9(0xe0);}static get[_0x48d1ac(0xe2)](){return!0x0;}static get[_0x48d1ac(0xe3)](){return!0x0;}[_0x48d1ac(0xf4)]=!0x1;[_0x48d1ac(0xfa)];[_0x48d1ac(0xd3)](_0xe5a81){const _0x194f99=_0x48d1ac,_0x234066=_0x2901bd(this[_0x194f99(0x109)]);this[_0x194f99(0xfa)]=_0xe5a81;const _0x17a727=this[_0x194f99(0x109)][_0x194f99(0x10c)][_0x194f99(0x105)](_0x194f99(0x102))||[..._0x1ee5ec],_0xe5668d=_0x234066?.[_0x194f99(0xef)][_0x194f99(0x105)](_0x194f99(0xdc)),_0x52b259=_0xe5668d?.[_0x194f99(0x107)];this[_0x194f99(0xdb)]=new _0x2644e9(_0x234066[_0x194f99(0xec)],_0xe5a81,_0x17a727,!!_0x52b259),this[_0x194f99(0xdb)][_0x194f99(0xe9)](..._0x836997)['to'](this),_0xe5668d&&this[_0x194f99(0xdb)][_0x194f99(0x112)](_0x194f99(0x10d))['to'](_0xe5668d,_0x194f99(0x107)),this[_0x194f99(0xfc)](_0xe5a81);}[_0x48d1ac(0xd1)](){const _0x3e6d31=_0x48d1ac;_0x2901bd(this[_0x3e6d31(0x109)])[_0x3e6d31(0xf3)][_0x3e6d31(0x105)](_0x3e6d31(0x100))[_0x3e6d31(0xd6)]();}[_0x48d1ac(0x10f)](_0x52795e,_0x157d75){const _0x5b6274=_0x48d1ac;this[_0x5b6274(0x109)][_0x5b6274(0xf3)][_0x5b6274(0x105)](_0x2209f8)[_0x5b6274(0x110)](_0x52795e,_0x5b6274(0x113)+_0x157d75,!0x0,!0x0);}[_0x48d1ac(0xfc)](_0x31fda3){const _0x23e58c=_0x48d1ac,_0x12f539=_0x2901bd(this[_0x23e58c(0x109)]);this[_0x23e58c(0x10f)](_0x31fda3[_0x23e58c(0x114)],_0x31fda3[_0x23e58c(0xd4)]),_0x12f539[_0x23e58c(0xf3)][_0x23e58c(0x105)](_0x23e58c(0x100))[_0x23e58c(0xed)]({'title':_0x31fda3[_0x23e58c(0x104)],'icon':_0x31fda3[_0x23e58c(0xe1)],'hasCloseButton':!0x0,'id':_0x23e58c(0xf9),'position':this[_0x23e58c(0xfb)][_0x23e58c(0x112)](this),'className':_0x23e58c(0xf5)+(_0x31fda3[_0x23e58c(0x101)]?_0x23e58c(0xe8):''),'content':this[_0x23e58c(0xdb)],'onShow':_0x50fa6c=>{const _0x37844e=_0x23e58c;_0x31fda3[_0x37844e(0x101)]&&this[_0x37844e(0xdb)][_0x37844e(0xf6)](_0x50fa6c),this[_0x37844e(0xf4)]=!0x0;},'onHide':()=>{const _0xa6a3be=_0x23e58c;this[_0xa6a3be(0x109)][_0xa6a3be(0xf3)][_0xa6a3be(0x105)](_0xa6a3be(0xea))[_0xa6a3be(0xe5)](_0xa6a3be(0x113)+_0x31fda3[_0xa6a3be(0xd4)]),this[_0xa6a3be(0xd7)](_0xa6a3be(0x10b)),this[_0xa6a3be(0xf4)]=!0x1;}});}[_0x48d1ac(0xfb)](_0x22704f,_0xf9c1a3){const _0x1355ce=_0x48d1ac,_0xcb3667=_0x2901bd(this[_0x1355ce(0x109)]);if(!_0xf9c1a3)return null;const _0x217b9e=_0x3765f0(_0xcb3667[_0x1355ce(0xdf)],[..._0xcb3667[_0x1355ce(0xfe)][_0x1355ce(0xf2)][_0x1355ce(0x106)](_0x1355ce(0xd2)),..._0xcb3667[_0x1355ce(0xfe)][_0x1355ce(0xf2)][_0x1355ce(0x106)](_0x1355ce(0x10a))]);if(!_0x217b9e||0x0===_0x217b9e[_0x1355ce(0xdd)])return{'left':Math[_0x1355ce(0xda)](_0xf9c1a3[_0x1355ce(0xd8)]+_0xf9c1a3[_0x1355ce(0xe6)]/0x2-_0x22704f[_0x1355ce(0xe6)]/0x2),'top':Math[_0x1355ce(0xda)](_0xf9c1a3[_0x1355ce(0x103)]+_0xf9c1a3[_0x1355ce(0xd9)]/0x2-_0x22704f[_0x1355ce(0xd9)]/0x2)};const _0x4720c3=Math[_0x1355ce(0xda)](_0xf9c1a3[_0x1355ce(0xd8)]+_0xf9c1a3[_0x1355ce(0xe6)]/0x2-_0x22704f[_0x1355ce(0xe6)]/0x2),_0x2252a1=_0x217b9e[0x0][_0x1355ce(0xd5)](),_0x3ddacf=_0x217b9e[_0x217b9e[_0x1355ce(0xdd)]-0x1][_0x1355ce(0xd5)](),_0x41fca9=_0x22704f[_0x1355ce(0xd9)],_0x426505=this[_0x1355ce(0xfa)][_0x1355ce(0x101)]?0x8:0x0;return{'left':_0x4720c3,'top':this[_0x1355ce(0xff)](_0x2252a1,_0x3ddacf,_0x41fca9,_0x426505)};}[_0x48d1ac(0xff)](_0x32c7ea,_0x31f31b,_0x201446,_0x153cbf=0x0){const _0x5c2a71=_0x48d1ac,_0x52d4ec=_0x31f31b[_0x5c2a71(0x103)]+_0x31f31b[_0x5c2a71(0xd9)],_0x453c76=_0x32c7ea[_0x5c2a71(0x103)]-_0x201446-_0x153cbf,_0x2db41f=window[_0x5c2a71(0xee)]-_0x52d4ec-0xa,_0x20ce06=_0x32c7ea[_0x5c2a71(0x103)]-_0x153cbf-0xa;let _0x4324ef;if(_0x2db41f>=_0x201446)_0x4324ef=_0x52d4ec+0xa;else{if(_0x20ce06>=_0x201446)_0x4324ef=_0x453c76-0xa;else _0x4324ef=_0x32c7ea[_0x5c2a71(0x103)]+(_0x31f31b[_0x5c2a71(0x103)]+_0x31f31b[_0x5c2a71(0xd9)])/0x2-(_0x201446+_0x153cbf)/0x2;}return _0x4324ef;}}
23
+ const _0x506009=_0x133b;(function(_0x495a25,_0x55e78b){const _0x2087c5=_0x133b,_0xf5ee1=_0x495a25();while(!![]){try{const _0x577a22=parseInt(_0x2087c5(0xc9))/0x1*(parseInt(_0x2087c5(0xb4))/0x2)+parseInt(_0x2087c5(0xcc))/0x3*(-parseInt(_0x2087c5(0xd5))/0x4)+parseInt(_0x2087c5(0xa1))/0x5+parseInt(_0x2087c5(0xb6))/0x6+parseInt(_0x2087c5(0x99))/0x7+-parseInt(_0x2087c5(0xd7))/0x8+parseInt(_0x2087c5(0xa0))/0x9*(-parseInt(_0x2087c5(0xbf))/0xa);if(_0x577a22===_0x55e78b)break;else _0xf5ee1['push'](_0xf5ee1['shift']());}catch(_0x35422a){_0xf5ee1['push'](_0xf5ee1['shift']());}}}(_0x35a0,0x22a11));import{ContextPlugin as _0x3b5846}from'ckeditor5/src/core.js';import{AIConnector as _0x2d8062}from'../aicore/aiconnector.js';import{AIEditing as _0x854368}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2f4f12,AIBalloonView as _0xae4e0b}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x228ddc}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x5bb570}from'../aicore/utils/geteditorfromcontext.js';function _0x133b(_0xca0f51,_0xb19880){const _0x35a0e4=_0x35a0();return _0x133b=function(_0x133b06,_0x252610){_0x133b06=_0x133b06-0x98;let _0x2c31ab=_0x35a0e4[_0x133b06];return _0x2c31ab;},_0x133b(_0xca0f51,_0xb19880);}function _0x35a0(){const _0xea8cf9=['pluginName','_config','length','ai.availableReplyActions','_calculateOptimalTopPosition','fire','524324wiVaQZ','innerHeight','1007704ckcgUt','_setupVisualSelection','ai-balloon-','delegate','model','requires','1421182zDjiBq','AIEditing','close','getMarkersGroup','value','locale','isOpen','63zcckMK','1264505doJPom','isOfficialPlugin','dialogClosed','ai-selection','editing','aiBalloon','ai-balloon','title','showRotator','_calculateDialogPosition','bind','config','isPremiumPlugin','showFakeVisualSelection','height','AIBalloon','context','isTrackChangesOn','ai-balloon-selection','2SFFRrA','get','163044fqKCbc','left','commands','getBoundingClientRect','\x20ai-balloon-rotator','top','plugins','ranges','setupRotator','195410OWArev','width','balloonView','Dialog','open','hide','show','hideFakeVisualSelection','index','trackChanges','52571edZryi','markers','round','3VbhJNS','_showDialog','icon'];_0x35a0=function(){return _0xea8cf9;};return _0x35a0();}import{ACTIONS as _0xb6711d}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x2f4f12,_0x506009(0xa3)];export class AIBalloon extends _0x3b5846{static get[_0x506009(0x98)](){return[_0x2d8062,_0x854368];}static get[_0x506009(0xcf)](){const _0x45d754=_0x506009;return _0x45d754(0xb0);}static get[_0x506009(0xa2)](){return!0x0;}static get[_0x506009(0xad)](){return!0x0;}[_0x506009(0x9f)]=!0x1;[_0x506009(0xd0)];[_0x506009(0xc3)](_0xd61acf){const _0x5ee484=_0x506009,_0x3ddeb5=_0x5bb570(this[_0x5ee484(0xb1)]);this[_0x5ee484(0xd0)]=_0xd61acf;const _0x95ee10=this[_0x5ee484(0xb1)][_0x5ee484(0xac)][_0x5ee484(0xb5)](_0x5ee484(0xd2))||[..._0xb6711d],_0x28e64c=_0x3ddeb5?.[_0x5ee484(0xb8)][_0x5ee484(0xb5)](_0x5ee484(0xc8)),_0x21c778=_0x28e64c?.[_0x5ee484(0x9d)];this[_0x5ee484(0xc1)]=new _0xae4e0b(_0x3ddeb5[_0x5ee484(0x9e)],_0xd61acf,_0x95ee10,!!_0x21c778),this[_0x5ee484(0xc1)][_0x5ee484(0xda)](..._0x2f4f12)['to'](this),_0x28e64c&&this[_0x5ee484(0xc1)][_0x5ee484(0xab)](_0x5ee484(0xb2))['to'](_0x28e64c,_0x5ee484(0x9d)),this[_0x5ee484(0xcd)](_0xd61acf);}[_0x506009(0x9b)](){const _0x4690ec=_0x506009;_0x5bb570(this[_0x4690ec(0xb1)])[_0x4690ec(0xbc)][_0x4690ec(0xb5)](_0x4690ec(0xc2))[_0x4690ec(0xc4)]();}[_0x506009(0xd8)](_0xf0c1f7,_0x412b28){const _0x5a9d62=_0x506009;this[_0x5a9d62(0xb1)][_0x5a9d62(0xbc)][_0x5a9d62(0xb5)](_0x854368)[_0x5a9d62(0xae)](_0xf0c1f7,_0x5a9d62(0xd9)+_0x412b28,!0x0,!0x0);}[_0x506009(0xcd)](_0x5b2d31){const _0x45a914=_0x506009,_0x3aa72c=_0x5bb570(this[_0x45a914(0xb1)]);this[_0x45a914(0xd8)](_0x5b2d31[_0x45a914(0xbd)],_0x5b2d31[_0x45a914(0xc7)]),_0x3aa72c[_0x45a914(0xbc)][_0x45a914(0xb5)](_0x45a914(0xc2))[_0x45a914(0xc5)]({'title':_0x5b2d31[_0x45a914(0xa8)],'icon':_0x5b2d31[_0x45a914(0xce)],'hasCloseButton':!0x0,'id':_0x45a914(0xa6),'position':this[_0x45a914(0xaa)][_0x45a914(0xab)](this),'className':_0x45a914(0xa7)+(_0x5b2d31[_0x45a914(0xa9)]?_0x45a914(0xba):''),'content':this[_0x45a914(0xc1)],'onShow':_0x2dbb12=>{const _0x2c089f=_0x45a914;_0x5b2d31[_0x2c089f(0xa9)]&&this[_0x2c089f(0xc1)][_0x2c089f(0xbe)](_0x2dbb12),this[_0x2c089f(0x9f)]=!0x0;},'onHide':()=>{const _0x30427b=_0x45a914;this[_0x30427b(0xb1)][_0x30427b(0xbc)][_0x30427b(0xb5)](_0x30427b(0x9a))[_0x30427b(0xc6)](_0x30427b(0xd9)+_0x5b2d31[_0x30427b(0xc7)]),this[_0x30427b(0xd4)](_0x30427b(0xa3)),this[_0x30427b(0x9f)]=!0x1;}});}[_0x506009(0xaa)](_0x4396c8,_0x1397c4){const _0x2507ae=_0x506009,_0x2238d6=_0x5bb570(this[_0x2507ae(0xb1)]);if(!_0x1397c4)return null;const _0x4a8239=_0x228ddc(_0x2238d6[_0x2507ae(0xa5)],[..._0x2238d6[_0x2507ae(0xdb)][_0x2507ae(0xca)][_0x2507ae(0x9c)](_0x2507ae(0xa4)),..._0x2238d6[_0x2507ae(0xdb)][_0x2507ae(0xca)][_0x2507ae(0x9c)](_0x2507ae(0xb3))]);if(!_0x4a8239||0x0===_0x4a8239[_0x2507ae(0xd1)])return{'left':Math[_0x2507ae(0xcb)](_0x1397c4[_0x2507ae(0xb7)]+_0x1397c4[_0x2507ae(0xc0)]/0x2-_0x4396c8[_0x2507ae(0xc0)]/0x2),'top':Math[_0x2507ae(0xcb)](_0x1397c4[_0x2507ae(0xbb)]+_0x1397c4[_0x2507ae(0xaf)]/0x2-_0x4396c8[_0x2507ae(0xaf)]/0x2)};const _0x485b3e=Math[_0x2507ae(0xcb)](_0x1397c4[_0x2507ae(0xb7)]+_0x1397c4[_0x2507ae(0xc0)]/0x2-_0x4396c8[_0x2507ae(0xc0)]/0x2),_0x285a1e=_0x4a8239[0x0][_0x2507ae(0xb9)](),_0x58ad85=_0x4a8239[_0x4a8239[_0x2507ae(0xd1)]-0x1][_0x2507ae(0xb9)](),_0x2d8198=_0x4396c8[_0x2507ae(0xaf)],_0x46ec10=this[_0x2507ae(0xd0)][_0x2507ae(0xa9)]?0x8:0x0;return{'left':_0x485b3e,'top':this[_0x2507ae(0xd3)](_0x285a1e,_0x58ad85,_0x2d8198,_0x46ec10)};}[_0x506009(0xd3)](_0xbcde69,_0x2868f0,_0x5f074c,_0x3d1f8c=0x0){const _0x547f64=_0x506009,_0x2ce4ec=_0x2868f0[_0x547f64(0xbb)]+_0x2868f0[_0x547f64(0xaf)],_0x519dfb=_0xbcde69[_0x547f64(0xbb)]-_0x5f074c-_0x3d1f8c,_0x549208=window[_0x547f64(0xd6)]-_0x2ce4ec-0xa,_0x12faba=_0xbcde69[_0x547f64(0xbb)]-_0x3d1f8c-0xa;let _0x3fe19d;if(_0x549208>=_0x5f074c)_0x3fe19d=_0x2ce4ec+0xa;else{if(_0x12faba>=_0x5f074c)_0x3fe19d=_0x519dfb-0xa;else _0x3fe19d=_0xbcde69[_0x547f64(0xbb)]+(_0x2868f0[_0x547f64(0xbb)]+_0x2868f0[_0x547f64(0xaf)])/0x2-(_0x5f074c+_0x3d1f8c)/0x2;}return _0x3fe19d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x50fc49,_0x42bb42){var _0x343018=_0x43ef,_0x1b3a8a=_0x50fc49();while(!![]){try{var _0x523df4=parseInt(_0x343018(0x102))/0x1+parseInt(_0x343018(0x100))/0x2*(-parseInt(_0x343018(0xf4))/0x3)+-parseInt(_0x343018(0xf8))/0x4*(-parseInt(_0x343018(0xfb))/0x5)+-parseInt(_0x343018(0xfd))/0x6*(parseInt(_0x343018(0xff))/0x7)+parseInt(_0x343018(0x103))/0x8*(parseInt(_0x343018(0x104))/0x9)+-parseInt(_0x343018(0xf5))/0xa*(parseInt(_0x343018(0xf6))/0xb)+-parseInt(_0x343018(0xf9))/0xc*(parseInt(_0x343018(0xf7))/0xd);if(_0x523df4===_0x42bb42)break;else _0x1b3a8a['push'](_0x1b3a8a['shift']());}catch(_0x3d7077){_0x1b3a8a['push'](_0x1b3a8a['shift']());}}}(_0xc3db,0xbfc16));function _0x43ef(_0x381cdd,_0x35fac9){var _0xc3db6e=_0xc3db();return _0x43ef=function(_0x43ef5f,_0xe1b2bb){_0x43ef5f=_0x43ef5f-0xf4;var _0x4c03f8=_0xc3db6e[_0x43ef5f];return _0x4c03f8;},_0x43ef(_0x381cdd,_0x35fac9);}import{View as _0x598312}from'ckeditor5/src/ui.js';import{getTranslation as _0x166131}from'../../aicore/utils/common-translations.js';function _0xc3db(){var _0x3186be=['setTemplate','10fUFVMC','AI_DISCLAIMER_TEXT','21342rETRfV','div','77GiUBKB','1029354mCRwlE','ck-ai-balloon__disclaimer-content','813857AbXhtt','49144GFjmsq','441UmhQgE','ck-ai-balloon__disclaimer','3OgUwth','9197510aTDFVk','11MmQCsW','11791uXwWMf','2398896AYUWlT','732ZvFnmO'];_0xc3db=function(){return _0x3186be;};return _0xc3db();}export class AIBalloonDisclaimerView extends _0x598312{constructor(_0x49d119){var _0xd67098=_0x43ef;super(_0x49d119),this[_0xd67098(0xfa)]({'tag':_0xd67098(0xfe),'attributes':{'class':['ck',_0xd67098(0x105)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xd67098(0x101)]},'children':[{'text':_0x166131(_0x49d119,_0xd67098(0xfc))}]}]});}}
23
+ (function(_0xe356c4,_0xd8cd03){var _0x2f11ee=_0x2689,_0x11c669=_0xe356c4();while(!![]){try{var _0x428519=parseInt(_0x2f11ee(0x1b0))/0x1*(parseInt(_0x2f11ee(0x1b8))/0x2)+-parseInt(_0x2f11ee(0x1af))/0x3+-parseInt(_0x2f11ee(0x1ac))/0x4*(-parseInt(_0x2f11ee(0x1ab))/0x5)+parseInt(_0x2f11ee(0x1b5))/0x6*(-parseInt(_0x2f11ee(0x1b3))/0x7)+parseInt(_0x2f11ee(0x1ae))/0x8*(-parseInt(_0x2f11ee(0x1a8))/0x9)+-parseInt(_0x2f11ee(0x1aa))/0xa+-parseInt(_0x2f11ee(0x1b6))/0xb*(-parseInt(_0x2f11ee(0x1b2))/0xc);if(_0x428519===_0xd8cd03)break;else _0x11c669['push'](_0x11c669['shift']());}catch(_0x4f0d17){_0x11c669['push'](_0x11c669['shift']());}}}(_0x44b5,0xeb489));function _0x2689(_0x5b6734,_0x45eaaa){var _0x44b58d=_0x44b5();return _0x2689=function(_0x26894d,_0x194e04){_0x26894d=_0x26894d-0x1a8;var _0x47cab7=_0x44b58d[_0x26894d];return _0x47cab7;},_0x2689(_0x5b6734,_0x45eaaa);}function _0x44b5(){var _0x24326e=['ck-ai-balloon__disclaimer-content','65292xIhdmf','7FqAcBR','setTemplate','8156514sbHKIh','8239egDdPD','div','8vFpTDN','2531097BHNYHG','ck-ai-balloon__disclaimer','13123510bqxLSU','82445xvJtUg','244fEIzDf','AI_DISCLAIMER_TEXT','32aWqbfM','2029137jPmqlU','88916GWzSAp'];_0x44b5=function(){return _0x24326e;};return _0x44b5();}import{View as _0x123346}from'ckeditor5/src/ui.js';import{getTranslation as _0xe2de31}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x123346{constructor(_0x2c316d){var _0x5cc937=_0x2689;super(_0x2c316d),this[_0x5cc937(0x1b4)]({'tag':_0x5cc937(0x1b7),'attributes':{'class':['ck',_0x5cc937(0x1a9)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5cc937(0x1b1)]},'children':[{'text':_0xe2de31(_0x2c316d,_0x5cc937(0x1ad))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11426b=_0x52c8;(function(_0x59658a,_0x5eefaf){const _0x41da94=_0x52c8,_0x279469=_0x59658a();while(!![]){try{const _0x328bec=parseInt(_0x41da94(0x1cc))/0x1+parseInt(_0x41da94(0x1db))/0x2+parseInt(_0x41da94(0x1df))/0x3*(parseInt(_0x41da94(0x1d5))/0x4)+parseInt(_0x41da94(0x1d4))/0x5+parseInt(_0x41da94(0x1e0))/0x6*(-parseInt(_0x41da94(0x1d6))/0x7)+parseInt(_0x41da94(0x1d7))/0x8+parseInt(_0x41da94(0x1e2))/0x9*(-parseInt(_0x41da94(0x1d2))/0xa);if(_0x328bec===_0x5eefaf)break;else _0x279469['push'](_0x279469['shift']());}catch(_0x466b01){_0x279469['push'](_0x279469['shift']());}}}(_0x5c77,0xdccd9));import{ToolbarView as _0xc0b06d,ButtonView as _0x39c2e7}from'ckeditor5/src/ui.js';import{getTranslation as _0x2b64d6}from'../../aicore/utils/common-translations.js';function _0x5c77(){const _0x4358ce=['items','bind','extendTemplate','2022520eIkfaS','add','ck-ai-balloon__toolbar','ck-ai-button-secondary','786tSpjWV','6MakaAl','locale','3377727ZqsrKr','isEnabled','applyButton','isLoading','1496654AtvPcT','AI_BALLOON_APPLY_BUTTON','set','_createButton','AI_BALLOON_SUGGEST_BUTTON','suggestButton','90JmmfiQ','ck-ai-button-primary','3174655zzVOBV','12528ZedUIi','7761467rVWvTF','11419904Ibdcka'];_0x5c77=function(){return _0x4358ce;};return _0x5c77();}function _0x52c8(_0x25638a,_0x3c04f0){const _0x5c7701=_0x5c77();return _0x52c8=function(_0x52c847,_0xf097d6){_0x52c847=_0x52c847-0x1c9;let _0x312195=_0x5c7701[_0x52c847];return _0x312195;},_0x52c8(_0x25638a,_0x3c04f0);}export class AIBalloonToolbarView extends _0xc0b06d{constructor(_0x204cfd,_0x1f21fe=!0x0,_0x28a238=!0x0){const _0xdf4b7e=_0x52c8;super(_0x204cfd),this[_0xdf4b7e(0x1ce)](_0xdf4b7e(0x1cb),!0x1),_0x1f21fe&&(this[_0xdf4b7e(0x1ca)]=this[_0xdf4b7e(0x1cf)](_0x2b64d6(_0x204cfd,_0xdf4b7e(0x1cd)),_0xdf4b7e(0x1d3)),this[_0xdf4b7e(0x1ca)][_0xdf4b7e(0x1d9)](_0xdf4b7e(0x1c9))['to'](this,_0xdf4b7e(0x1cb),_0x21cbc7=>!_0x21cbc7),this[_0xdf4b7e(0x1d8)][_0xdf4b7e(0x1dc)](this[_0xdf4b7e(0x1ca)])),_0x28a238&&(this[_0xdf4b7e(0x1d1)]=this[_0xdf4b7e(0x1cf)](_0x2b64d6(_0x204cfd,_0xdf4b7e(0x1d0)),_0x1f21fe?_0xdf4b7e(0x1de):_0xdf4b7e(0x1d3)),this[_0xdf4b7e(0x1d1)][_0xdf4b7e(0x1d9)](_0xdf4b7e(0x1c9))['to'](this,_0xdf4b7e(0x1cb),_0x2165dc=>!_0x2165dc),this[_0xdf4b7e(0x1d8)][_0xdf4b7e(0x1dc)](this[_0xdf4b7e(0x1d1)])),this[_0xdf4b7e(0x1da)]({'attributes':{'class':[_0xdf4b7e(0x1dd)]}});}[_0x11426b(0x1cf)](_0x41231a,_0x31d879){const _0x5211d3=_0x11426b,_0x45c768=new _0x39c2e7(this[_0x5211d3(0x1e1)]);return _0x45c768[_0x5211d3(0x1ce)]({'label':_0x41231a,'class':_0x31d879||'','isVisible':!0x0,'withText':!0x0}),_0x45c768;}}
23
+ function _0x6edd(){const _0x1cc7b5=['ck-ai-button-secondary','1838802ryWnYC','isEnabled','1147917kAFqOS','865314rVZzuK','AI_BALLOON_SUGGEST_BUTTON','_createButton','1725988wVfvYj','isLoading','ck-ai-balloon__toolbar','set','suggestButton','AI_BALLOON_APPLY_BUTTON','211VgjOiQ','items','1314NbnyJU','locale','applyButton','bind','add','687415EXeuBv','ck-ai-button-primary','extendTemplate','213912YcMPpD'];_0x6edd=function(){return _0x1cc7b5;};return _0x6edd();}const _0x55c66d=_0x39ec;(function(_0x3e24e9,_0x298593){const _0x31ca4e=_0x39ec,_0x3e0ee9=_0x3e24e9();while(!![]){try{const _0x2f899b=-parseInt(_0x31ca4e(0x19b))/0x1*(-parseInt(_0x31ca4e(0x19d))/0x2)+-parseInt(_0x31ca4e(0x1a9))/0x3+parseInt(_0x31ca4e(0x1ad))/0x4+parseInt(_0x31ca4e(0x1a2))/0x5+parseInt(_0x31ca4e(0x1aa))/0x6+-parseInt(_0x31ca4e(0x1a7))/0x7+parseInt(_0x31ca4e(0x1a5))/0x8;if(_0x2f899b===_0x298593)break;else _0x3e0ee9['push'](_0x3e0ee9['shift']());}catch(_0x59b480){_0x3e0ee9['push'](_0x3e0ee9['shift']());}}}(_0x6edd,0x38f18));import{ToolbarView as _0x8a3d1,ButtonView as _0x3b37ce}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e2633}from'../../aicore/utils/common-translations.js';function _0x39ec(_0x5ec863,_0x44f1d6){const _0x6edd79=_0x6edd();return _0x39ec=function(_0x39ec64,_0x21af3a){_0x39ec64=_0x39ec64-0x197;let _0x5ca08d=_0x6edd79[_0x39ec64];return _0x5ca08d;},_0x39ec(_0x5ec863,_0x44f1d6);}export class AIBalloonToolbarView extends _0x8a3d1{constructor(_0xd169d8,_0x51831d=!0x0,_0x55d88a=!0x0){const _0x39cd02=_0x39ec;super(_0xd169d8),this[_0x39cd02(0x198)](_0x39cd02(0x1ae),!0x1),_0x51831d&&(this[_0x39cd02(0x19f)]=this[_0x39cd02(0x1ac)](_0x5e2633(_0xd169d8,_0x39cd02(0x19a)),_0x39cd02(0x1a3)),this[_0x39cd02(0x19f)][_0x39cd02(0x1a0)](_0x39cd02(0x1a8))['to'](this,_0x39cd02(0x1ae),_0x15f70f=>!_0x15f70f),this[_0x39cd02(0x19c)][_0x39cd02(0x1a1)](this[_0x39cd02(0x19f)])),_0x55d88a&&(this[_0x39cd02(0x199)]=this[_0x39cd02(0x1ac)](_0x5e2633(_0xd169d8,_0x39cd02(0x1ab)),_0x51831d?_0x39cd02(0x1a6):_0x39cd02(0x1a3)),this[_0x39cd02(0x199)][_0x39cd02(0x1a0)](_0x39cd02(0x1a8))['to'](this,_0x39cd02(0x1ae),_0x267c4a=>!_0x267c4a),this[_0x39cd02(0x19c)][_0x39cd02(0x1a1)](this[_0x39cd02(0x199)])),this[_0x39cd02(0x1a4)]({'attributes':{'class':[_0x39cd02(0x197)]}});}[_0x55c66d(0x1ac)](_0x54fc74,_0xb437ee){const _0x83b7dc=_0x55c66d,_0x4f5f63=new _0x3b37ce(this[_0x83b7dc(0x19e)]);return _0x4f5f63[_0x83b7dc(0x198)]({'label':_0x54fc74,'class':_0xb437ee||'','isVisible':!0x0,'withText':!0x0}),_0x4f5f63;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2998cc=_0xa7c9;(function(_0x4fa813,_0x10aa1e){const _0x269acf=_0xa7c9,_0x53c113=_0x4fa813();while(!![]){try{const _0x39a46b=-parseInt(_0x269acf(0x217))/0x1+parseInt(_0x269acf(0x211))/0x2*(parseInt(_0x269acf(0x20b))/0x3)+-parseInt(_0x269acf(0x1e3))/0x4*(-parseInt(_0x269acf(0x1ed))/0x5)+parseInt(_0x269acf(0x1da))/0x6*(-parseInt(_0x269acf(0x1f8))/0x7)+-parseInt(_0x269acf(0x21c))/0x8*(-parseInt(_0x269acf(0x1f7))/0x9)+parseInt(_0x269acf(0x210))/0xa*(-parseInt(_0x269acf(0x1e0))/0xb)+-parseInt(_0x269acf(0x1d8))/0xc*(-parseInt(_0x269acf(0x1e2))/0xd);if(_0x39a46b===_0x10aa1e)break;else _0x53c113['push'](_0x53c113['shift']());}catch(_0x15854d){_0x53c113['push'](_0x53c113['shift']());}}}(_0x2a55,0x72459));import{ButtonView as _0x330873,View as _0x795a80,ViewCollection as _0x47b814,FocusCycler as _0x46cbcc}from'ckeditor5/src/ui.js';function _0xa7c9(_0x16ef03,_0x2eae8d){const _0x2a5580=_0x2a55();return _0xa7c9=function(_0xa7c9ff,_0x28a411){_0xa7c9ff=_0xa7c9ff-0x1d8;let _0x213ff6=_0x2a5580[_0xa7c9ff];return _0x213ff6;},_0xa7c9(_0x16ef03,_0x2eae8d);}import{FocusTracker as _0x32d079,KeystrokeHandler as _0x1da24c}from'ckeditor5/src/utils.js';function _0x2a55(){const _0x24b2dd=['45ralzlh','228473PoFwqD','insertSuggestion','focusCycler','focusLast','setLoading','focusFirst','_createNextButtonView','applySuggestion','shift\x20+\x20tab','children','createCollection','suggestButton','_addContentView','remove','listenTo','isLoading','execute','setTemplate','showNext','3AKZzEe','clear','_dropdownConfig','headerView','add','77830iCLdLm','864202GdaKEt','addMany','ai-balloon-content','focusTracker','focus','includes','416952exxHhg','_focusables','showSuggestButton','locale','applyButton','872432pXYqAr','748884GTJJzH','showApplyButton','132Ebasql','AI_BALLOON_PREVIOUS_TOOLTIP','_addDisclaimerView','div','bind','showPrevious','1243WQOMyO','AI_BALLOON_NEXT_TOOLTIP','130mhPsbZ','20jEguvL','isTrackChangesOn','render','mainView','_createPreviousButtonView','fire','set','clearLoading','setupRotator','keystrokes','881105HDBCNb','disclaimerView','_mainView','view','tab','_addToolbar','toolbar','_dialogContent','element','change:isTrackChangesOn'];_0x2a55=function(){return _0x24b2dd;};return _0x2a55();}import{IconNextArrow as _0x393c49,IconPreviousArrow as _0x24e1ff}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x457329}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x363168}from'./aiballoondisclaimerview.js';import{getTranslation as _0x18fbd8}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2998cc(0x1ff),_0x2998cc(0x1f9),_0x2998cc(0x20a),_0x2998cc(0x1df)];export class AIBalloonView extends _0x795a80{[_0x2998cc(0x214)];[_0x2998cc(0x1ec)];[_0x2998cc(0x1fa)];[_0x2998cc(0x20d)];[_0x2998cc(0x218)];constructor(_0x2ac306,_0x5420ee,_0x56f271,_0x379f8e){const _0x585de6=_0x2998cc;super(_0x2ac306),this[_0x585de6(0x20d)]=_0x56f271,this[_0x585de6(0x1e9)](_0x585de6(0x207),!0x1),this[_0x585de6(0x1e9)](_0x585de6(0x1e4),_0x379f8e),this[_0x585de6(0x214)]=new _0x32d079(),this[_0x585de6(0x1ec)]=new _0x1da24c(),this[_0x585de6(0x218)]=this[_0x585de6(0x202)](),this[_0x585de6(0x1fa)]=new _0x46cbcc({'focusables':this[_0x585de6(0x218)],'focusTracker':this[_0x585de6(0x214)],'keystrokeHandler':this[_0x585de6(0x1ec)],'actions':{'focusPrevious':_0x585de6(0x200),'focusNext':_0x585de6(0x1f1)}}),this[_0x585de6(0x1f4)]=new _0x47b814(),this[_0x585de6(0x204)](_0x5420ee[_0x585de6(0x1e6)]),this[_0x585de6(0x1dc)](),this[_0x585de6(0x1f2)](_0x5420ee[_0x585de6(0x1d9)],_0x5420ee[_0x585de6(0x219)]),this[_0x585de6(0x1f3)][_0x585de6(0x1de)](_0x585de6(0x207))['to'](this),this[_0x585de6(0x218)][_0x585de6(0x20c)](),this[_0x585de6(0x218)][_0x585de6(0x212)]([this[_0x585de6(0x1f3)]]),this[_0x585de6(0x209)]({'tag':_0x585de6(0x1dd),'attributes':{'class':_0x585de6(0x213)},'children':this[_0x585de6(0x1f4)]}),this[_0x585de6(0x206)](this,_0x585de6(0x1f6),()=>{const _0x33889a=_0x585de6;this[_0x33889a(0x1f4)][_0x33889a(0x205)](this[_0x33889a(0x1f3)]),this[_0x33889a(0x1f2)](_0x5420ee[_0x33889a(0x1d9)],_0x5420ee[_0x33889a(0x219)]);});}[_0x2998cc(0x1e5)](){const _0x4eacea=_0x2998cc;super[_0x4eacea(0x1e5)]();for(const _0x3fe1b2 of this[_0x4eacea(0x218)])this[_0x4eacea(0x214)][_0x4eacea(0x20f)](_0x3fe1b2[_0x4eacea(0x1f5)]);this[_0x4eacea(0x1ec)][_0x4eacea(0x206)](this[_0x4eacea(0x1f5)]);}[_0x2998cc(0x215)](_0x5022c1){const _0x21cda1=_0x2998cc;-0x1===_0x5022c1?this[_0x21cda1(0x1fa)][_0x21cda1(0x1fb)]():this[_0x21cda1(0x1fa)][_0x21cda1(0x1fd)]();}[_0x2998cc(0x1fc)](){const _0x294b46=_0x2998cc;this[_0x294b46(0x207)]=!0x0;}[_0x2998cc(0x1ea)](){const _0x2f4c4f=_0x2998cc;this[_0x2f4c4f(0x207)]=!0x1;}[_0x2998cc(0x1eb)](_0x51f4c9){const _0x8e9917=_0x2998cc,_0x189840=this[_0x8e9917(0x1fe)](),_0x13499b=this[_0x8e9917(0x1e7)]();_0x51f4c9[_0x8e9917(0x1f0)][_0x8e9917(0x20e)][_0x8e9917(0x201)][_0x8e9917(0x20f)](_0x189840,0x2),_0x51f4c9[_0x8e9917(0x1f0)][_0x8e9917(0x20e)][_0x8e9917(0x201)][_0x8e9917(0x20f)](_0x13499b,0x0),this[_0x8e9917(0x218)][_0x8e9917(0x212)]([_0x189840,_0x13499b]),this[_0x8e9917(0x214)][_0x8e9917(0x20f)](_0x189840[_0x8e9917(0x1f5)]),this[_0x8e9917(0x214)][_0x8e9917(0x20f)](_0x13499b[_0x8e9917(0x1f5)]);}[_0x2998cc(0x204)](_0x2e3cfb){const _0x49b5c4=_0x2998cc;this[_0x49b5c4(0x1ef)]=_0x2e3cfb,this[_0x49b5c4(0x1f4)][_0x49b5c4(0x20f)](this[_0x49b5c4(0x1ef)]);}[_0x2998cc(0x1dc)](){const _0x5d632c=_0x2998cc;this[_0x5d632c(0x1ee)]=new _0x363168(this[_0x5d632c(0x21a)]),this[_0x5d632c(0x1f4)][_0x5d632c(0x20f)](this[_0x5d632c(0x1ee)]);}[_0x2998cc(0x1f2)](_0x2cdc5b=!0x0,_0xb6fc55=!0x0){const _0xcf8ff6=_0x2998cc;_0x2cdc5b=_0x2cdc5b&&!this[_0xcf8ff6(0x1e4)]&&this[_0xcf8ff6(0x20d)][_0xcf8ff6(0x216)](_0xcf8ff6(0x1ff)),_0xb6fc55=_0xb6fc55&&this[_0xcf8ff6(0x20d)][_0xcf8ff6(0x216)](_0xcf8ff6(0x1f9)),this[_0xcf8ff6(0x1f3)]=new _0x457329(this[_0xcf8ff6(0x21a)],_0x2cdc5b,_0xb6fc55),this[_0xcf8ff6(0x1f3)][_0xcf8ff6(0x21b)]?.['on'](_0xcf8ff6(0x208),()=>{const _0x2df644=_0xcf8ff6;this[_0x2df644(0x1e8)](_0x2df644(0x1ff));}),this[_0xcf8ff6(0x1f3)][_0xcf8ff6(0x203)]?.['on'](_0xcf8ff6(0x208),()=>{const _0x127823=_0xcf8ff6;this[_0x127823(0x1e8)](_0x127823(0x1f9));}),this[_0xcf8ff6(0x1f4)][_0xcf8ff6(0x20f)](this[_0xcf8ff6(0x1f3)]);}[_0x2998cc(0x1fe)](){const _0x2bf070=_0x2998cc,_0x79fd05=new _0x330873(this[_0x2bf070(0x21a)]);return _0x79fd05[_0x2bf070(0x1e9)]({'icon':_0x393c49,'tooltip':_0x18fbd8(this[_0x2bf070(0x21a)],_0x2bf070(0x1e1))}),_0x79fd05['on'](_0x2bf070(0x208),()=>{const _0x2f96c5=_0x2bf070;this[_0x2f96c5(0x1e8)](_0x2f96c5(0x20a));}),_0x79fd05;}[_0x2998cc(0x1e7)](){const _0x16fa6b=_0x2998cc,_0x3595ca=new _0x330873(this[_0x16fa6b(0x21a)]);return _0x3595ca[_0x16fa6b(0x1e9)]({'icon':_0x24e1ff,'tooltip':_0x18fbd8(this[_0x16fa6b(0x21a)],_0x16fa6b(0x1db))}),_0x3595ca['on'](_0x16fa6b(0x208),()=>{const _0x21d820=_0x16fa6b;this[_0x21d820(0x1e8)](_0x21d820(0x1df));}),_0x3595ca;}}
23
+ const _0x2190f9=_0x3547;(function(_0x356e33,_0x1c8782){const _0x583e0b=_0x3547,_0x14eff7=_0x356e33();while(!![]){try{const _0xdab924=-parseInt(_0x583e0b(0x171))/0x1+parseInt(_0x583e0b(0x14a))/0x2+-parseInt(_0x583e0b(0x150))/0x3+parseInt(_0x583e0b(0x167))/0x4+parseInt(_0x583e0b(0x16a))/0x5+-parseInt(_0x583e0b(0x177))/0x6*(-parseInt(_0x583e0b(0x14f))/0x7)+-parseInt(_0x583e0b(0x17c))/0x8*(parseInt(_0x583e0b(0x168))/0x9);if(_0xdab924===_0x1c8782)break;else _0x14eff7['push'](_0x14eff7['shift']());}catch(_0x365a67){_0x14eff7['push'](_0x14eff7['shift']());}}}(_0xd2a3,0x4e5ad));function _0xd2a3(){const _0x801243=['251112DWizEq','children','set','focusCycler','focusTracker','91aatURT','587274UbTVll','view','AI_BALLOON_NEXT_TOOLTIP','setTemplate','focusLast','showApplyButton','mainView','locale','headerView','element','showSuggestButton','addMany','listenTo','ai-balloon-content','_createNextButtonView','_addDisclaimerView','showPrevious','_dialogContent','createCollection','fire','bind','clearLoading','tab','943868KwRSZJ','63vfmVIR','isTrackChangesOn','2356160crkivB','keystrokes','add','AI_BALLOON_PREVIOUS_TOOLTIP','_createPreviousButtonView','applySuggestion','toolbar','277330vZVNXZ','_mainView','_focusables','disclaimerView','change:isTrackChangesOn','setLoading','117696eLFpiR','suggestButton','setupRotator','focusFirst','remove','335696FTrsYb','insertSuggestion','_addContentView','_dropdownConfig','includes','isLoading','clear','focus','applyButton','showNext','render','shift\x20+\x20tab','div','execute','_addToolbar'];_0xd2a3=function(){return _0x801243;};return _0xd2a3();}import{ButtonView as _0x24e733,View as _0x274d32,ViewCollection as _0x7ab7c6,FocusCycler as _0x28d1fa}from'ckeditor5/src/ui.js';import{FocusTracker as _0x48051e,KeystrokeHandler as _0x4fb8cc}from'ckeditor5/src/utils.js';function _0x3547(_0x37997b,_0x1c0c4a){const _0xd2a3a6=_0xd2a3();return _0x3547=function(_0x3547b3,_0x5ebaf7){_0x3547b3=_0x3547b3-0x13d;let _0x37c880=_0xd2a3a6[_0x3547b3];return _0x37c880;},_0x3547(_0x37997b,_0x1c0c4a);}import{IconNextArrow as _0x1f209e,IconPreviousArrow as _0x190ede}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x3405da}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x5dfd9c}from'./aiballoondisclaimerview.js';import{getTranslation as _0x59a1b8}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2190f9(0x16f),_0x2190f9(0x17d),_0x2190f9(0x144),_0x2190f9(0x160)];export class AIBalloonView extends _0x274d32{[_0x2190f9(0x14e)];[_0x2190f9(0x16b)];[_0x2190f9(0x14d)];[_0x2190f9(0x13e)];[_0x2190f9(0x173)];constructor(_0x41e797,_0x3367c8,_0x4b2caf,_0xe7f6e3){const _0x62761a=_0x2190f9;super(_0x41e797),this[_0x62761a(0x13e)]=_0x4b2caf,this[_0x62761a(0x14c)](_0x62761a(0x140),!0x1),this[_0x62761a(0x14c)](_0x62761a(0x169),_0xe7f6e3),this[_0x62761a(0x14e)]=new _0x48051e(),this[_0x62761a(0x16b)]=new _0x4fb8cc(),this[_0x62761a(0x173)]=this[_0x62761a(0x162)](),this[_0x62761a(0x14d)]=new _0x28d1fa({'focusables':this[_0x62761a(0x173)],'focusTracker':this[_0x62761a(0x14e)],'keystrokeHandler':this[_0x62761a(0x16b)],'actions':{'focusPrevious':_0x62761a(0x146),'focusNext':_0x62761a(0x166)}}),this[_0x62761a(0x161)]=new _0x7ab7c6(),this[_0x62761a(0x13d)](_0x3367c8[_0x62761a(0x156)]),this[_0x62761a(0x15f)](),this[_0x62761a(0x149)](_0x3367c8[_0x62761a(0x155)],_0x3367c8[_0x62761a(0x15a)]),this[_0x62761a(0x170)][_0x62761a(0x164)](_0x62761a(0x140))['to'](this),this[_0x62761a(0x173)][_0x62761a(0x141)](),this[_0x62761a(0x173)][_0x62761a(0x15b)]([this[_0x62761a(0x170)]]),this[_0x62761a(0x153)]({'tag':_0x62761a(0x147),'attributes':{'class':_0x62761a(0x15d)},'children':this[_0x62761a(0x161)]}),this[_0x62761a(0x15c)](this,_0x62761a(0x175),()=>{const _0x23c0dd=_0x62761a;this[_0x23c0dd(0x161)][_0x23c0dd(0x17b)](this[_0x23c0dd(0x170)]),this[_0x23c0dd(0x149)](_0x3367c8[_0x23c0dd(0x155)],_0x3367c8[_0x23c0dd(0x15a)]);});}[_0x2190f9(0x145)](){const _0x1af26e=_0x2190f9;super[_0x1af26e(0x145)]();for(const _0x4c10b0 of this[_0x1af26e(0x173)])this[_0x1af26e(0x14e)][_0x1af26e(0x16c)](_0x4c10b0[_0x1af26e(0x159)]);this[_0x1af26e(0x16b)][_0x1af26e(0x15c)](this[_0x1af26e(0x159)]);}[_0x2190f9(0x142)](_0x51bac3){const _0x382dec=_0x2190f9;-0x1===_0x51bac3?this[_0x382dec(0x14d)][_0x382dec(0x154)]():this[_0x382dec(0x14d)][_0x382dec(0x17a)]();}[_0x2190f9(0x176)](){const _0x51ae78=_0x2190f9;this[_0x51ae78(0x140)]=!0x0;}[_0x2190f9(0x165)](){const _0x3c3df9=_0x2190f9;this[_0x3c3df9(0x140)]=!0x1;}[_0x2190f9(0x179)](_0x25684c){const _0x140105=_0x2190f9,_0x3c5447=this[_0x140105(0x15e)](),_0x31dcca=this[_0x140105(0x16e)]();_0x25684c[_0x140105(0x151)][_0x140105(0x158)][_0x140105(0x14b)][_0x140105(0x16c)](_0x3c5447,0x2),_0x25684c[_0x140105(0x151)][_0x140105(0x158)][_0x140105(0x14b)][_0x140105(0x16c)](_0x31dcca,0x0),this[_0x140105(0x173)][_0x140105(0x15b)]([_0x3c5447,_0x31dcca]),this[_0x140105(0x14e)][_0x140105(0x16c)](_0x3c5447[_0x140105(0x159)]),this[_0x140105(0x14e)][_0x140105(0x16c)](_0x31dcca[_0x140105(0x159)]);}[_0x2190f9(0x13d)](_0xb944ee){const _0xcda4b5=_0x2190f9;this[_0xcda4b5(0x172)]=_0xb944ee,this[_0xcda4b5(0x161)][_0xcda4b5(0x16c)](this[_0xcda4b5(0x172)]);}[_0x2190f9(0x15f)](){const _0x1494d9=_0x2190f9;this[_0x1494d9(0x174)]=new _0x5dfd9c(this[_0x1494d9(0x157)]),this[_0x1494d9(0x161)][_0x1494d9(0x16c)](this[_0x1494d9(0x174)]);}[_0x2190f9(0x149)](_0x594102=!0x0,_0xcdeea9=!0x0){const _0x166a64=_0x2190f9;_0x594102=_0x594102&&!this[_0x166a64(0x169)]&&this[_0x166a64(0x13e)][_0x166a64(0x13f)](_0x166a64(0x16f)),_0xcdeea9=_0xcdeea9&&this[_0x166a64(0x13e)][_0x166a64(0x13f)](_0x166a64(0x17d)),this[_0x166a64(0x170)]=new _0x3405da(this[_0x166a64(0x157)],_0x594102,_0xcdeea9),this[_0x166a64(0x170)][_0x166a64(0x143)]?.['on'](_0x166a64(0x148),()=>{const _0x58ab14=_0x166a64;this[_0x58ab14(0x163)](_0x58ab14(0x16f));}),this[_0x166a64(0x170)][_0x166a64(0x178)]?.['on'](_0x166a64(0x148),()=>{const _0x376c7f=_0x166a64;this[_0x376c7f(0x163)](_0x376c7f(0x17d));}),this[_0x166a64(0x161)][_0x166a64(0x16c)](this[_0x166a64(0x170)]);}[_0x2190f9(0x15e)](){const _0x5bed64=_0x2190f9,_0xa4906e=new _0x24e733(this[_0x5bed64(0x157)]);return _0xa4906e[_0x5bed64(0x14c)]({'icon':_0x1f209e,'tooltip':_0x59a1b8(this[_0x5bed64(0x157)],_0x5bed64(0x152))}),_0xa4906e['on'](_0x5bed64(0x148),()=>{const _0x1293fb=_0x5bed64;this[_0x1293fb(0x163)](_0x1293fb(0x144));}),_0xa4906e;}[_0x2190f9(0x16e)](){const _0x5b204e=_0x2190f9,_0xfda692=new _0x24e733(this[_0x5b204e(0x157)]);return _0xfda692[_0x5b204e(0x14c)]({'icon':_0x190ede,'tooltip':_0x59a1b8(this[_0x5b204e(0x157)],_0x5b204e(0x16d))}),_0xfda692['on'](_0x5b204e(0x148),()=>{const _0x14cb39=_0x5b204e;this[_0x14cb39(0x163)](_0x14cb39(0x160));}),_0xfda692;}}
@@ -6,7 +6,7 @@
6
6
  * @module ai/aichat/aichat
7
7
  * @publicApi
8
8
  */
9
- import { type Context, ContextPlugin } from 'ckeditor5/src/core.js';
9
+ import { type Context, ContextPlugin, type Editor } from 'ckeditor5/src/core.js';
10
10
  import { AIChatController } from './aichatcontroller.js';
11
11
  import { AIEditing } from '../aicore/aiediting.js';
12
12
  import { AIChatUI } from './aichatui.js';
@@ -39,7 +39,7 @@ export declare class AIChat extends ContextPlugin {
39
39
  * @inheritDoc
40
40
  */
41
41
  static get isPremiumPlugin(): true;
42
- constructor(context: Context);
42
+ constructor(context: Context | Editor);
43
43
  addSelectionToChatContext(): Promise<void>;
44
44
  startConversation(): Promise<void>;
45
45
  sendMessage({ message, quickActionData }: {
@@ -83,5 +83,5 @@ export interface AIChatConfig {
83
83
  *
84
84
  * Read more in {@link module:ai/aichat/model/aichatmodels~AIChatModelsConfig}.
85
85
  */
86
- models: AIChatModelsConfig;
86
+ models?: AIChatModelsConfig;
87
87
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbd8456=_0x1733;(function(_0x1f1fa8,_0x22732d){const _0x1ecf78=_0x1733,_0x3034e7=_0x1f1fa8();while(!![]){try{const _0x31ebc4=-parseInt(_0x1ecf78(0x163))/0x1+-parseInt(_0x1ecf78(0x15b))/0x2*(parseInt(_0x1ecf78(0x14f))/0x3)+-parseInt(_0x1ecf78(0x154))/0x4+-parseInt(_0x1ecf78(0x15e))/0x5+-parseInt(_0x1ecf78(0x166))/0x6+-parseInt(_0x1ecf78(0x152))/0x7*(-parseInt(_0x1ecf78(0x15d))/0x8)+parseInt(_0x1ecf78(0x164))/0x9*(parseInt(_0x1ecf78(0x153))/0xa);if(_0x31ebc4===_0x22732d)break;else _0x3034e7['push'](_0x3034e7['shift']());}catch(_0x4735a6){_0x3034e7['push'](_0x3034e7['shift']());}}}(_0x54bf,0x5ff8e));function _0x1733(_0x18e89b,_0x570aec){const _0x54bf63=_0x54bf();return _0x1733=function(_0x173342,_0x1dcf3f){_0x173342=_0x173342-0x14e;let _0x2a3f25=_0x54bf63[_0x173342];return _0x2a3f25;},_0x1733(_0x18e89b,_0x570aec);}import{ContextPlugin as _0x1cd626}from'ckeditor5/src/core.js';import{AIChatController as _0x3cd9f3}from'./aichatcontroller.js';import{AIEditing as _0xc65e93}from'../aicore/aiediting.js';function _0x54bf(){const _0x442f65=['152214fwOGOt','get','56QSTKdI','796915DvOcdP','ai.chat.context','pluginName','config','requires','186818BQQSBB','39456qwiOTB','isOfficialPlugin','1317282QAlrPE','context','focusPromptInput','sendMessage','3snFEKr','ai.chat.models','define','4382LiMyOA','4090PYeOIQ','3049924AjqKgB','addSelectionToChatContext','removeSelectionFromChatContext','startConversation','AIChat','plugins','isPremiumPlugin'];_0x54bf=function(){return _0x442f65;};return _0x54bf();}import{AIChatUI as _0x41a699}from'./aichatui.js';import{AIChatHistory as _0x156ccf}from'../aichathistory/aichathistory.js';export class AIChat extends _0x1cd626{static get[_0xbd8456(0x162)](){return[_0x3cd9f3,_0xc65e93,_0x41a699,_0x156ccf];}static get[_0xbd8456(0x160)](){const _0x116d42=_0xbd8456;return _0x116d42(0x158);}static get[_0xbd8456(0x165)](){return!0x0;}static get[_0xbd8456(0x15a)](){return!0x0;}constructor(_0x1eb97b){const _0x76c9b6=_0xbd8456;super(_0x1eb97b);const _0x3b20a3=_0x1eb97b[_0x76c9b6(0x161)];_0x3b20a3[_0x76c9b6(0x151)](_0x76c9b6(0x15f),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x3b20a3[_0x76c9b6(0x151)](_0x76c9b6(0x150),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0xbd8456(0x155)](){const _0x3a6905=_0xbd8456;await this[_0x3a6905(0x167)][_0x3a6905(0x159)][_0x3a6905(0x15c)](_0x3cd9f3)[_0x3a6905(0x155)]();}async[_0xbd8456(0x157)](){const _0x11aea8=_0xbd8456;await this[_0x11aea8(0x167)][_0x11aea8(0x159)][_0x11aea8(0x15c)](_0x3cd9f3)[_0x11aea8(0x157)]();}async[_0xbd8456(0x14e)]({message:_0x3cbba0,quickActionData:_0x92c90a}){const _0x5bd349=_0xbd8456;await this[_0x5bd349(0x167)][_0x5bd349(0x159)][_0x5bd349(0x15c)](_0x3cd9f3)[_0x5bd349(0x14e)]({'message':_0x3cbba0,'quickActionData':_0x92c90a});}[_0xbd8456(0x156)](){const _0xe4a993=_0xbd8456;this[_0xe4a993(0x167)][_0xe4a993(0x159)][_0xe4a993(0x15c)](_0x3cd9f3)[_0xe4a993(0x156)]();}[_0xbd8456(0x168)](){const _0x9e0481=_0xbd8456;this[_0x9e0481(0x167)][_0x9e0481(0x159)][_0x9e0481(0x15c)](_0x3cd9f3)[_0x9e0481(0x168)]();}}
23
+ var _0x595dfb=_0x3b02;(function(_0x12ee00,_0x5480c8){var _0x540595=_0x3b02,_0x7acac8=_0x12ee00();while(!![]){try{var _0x579d3b=parseInt(_0x540595(0x1e9))/0x1*(parseInt(_0x540595(0x1d6))/0x2)+parseInt(_0x540595(0x1ee))/0x3+-parseInt(_0x540595(0x1dd))/0x4+-parseInt(_0x540595(0x1de))/0x5*(-parseInt(_0x540595(0x1e2))/0x6)+-parseInt(_0x540595(0x1e0))/0x7+parseInt(_0x540595(0x1e7))/0x8*(-parseInt(_0x540595(0x1dc))/0x9)+-parseInt(_0x540595(0x1d7))/0xa*(-parseInt(_0x540595(0x1eb))/0xb);if(_0x579d3b===_0x5480c8)break;else _0x7acac8['push'](_0x7acac8['shift']());}catch(_0x15a7dd){_0x7acac8['push'](_0x7acac8['shift']());}}}(_0x46c3,0xc0c73));import{ContextPlugin as _0x431a9a}from'ckeditor5/src/core.js';import{AIChatController as _0x14a58c}from'./aichatcontroller.js';import{AIEditing as _0x3b59f8}from'../aicore/aiediting.js';function _0x46c3(){var _0x507148=['config','pluginName','isOfficialPlugin','5719576fxVqql','sendMessage','352666necqdT','requires','7571927bVGQlx','define','AIChat','667470msxzMS','isPremiumPlugin','removeSelectionFromChatContext','get','6puYKoS','30Ckfkbh','startConversation','plugins','addSelectionToChatContext','ai.chat.models','9gOVtdD','4011312ZAUjLv','6865SLrMBz','ai.chat.context','10268993dhXtXH','focusPromptInput','2748TZpfaj','context'];_0x46c3=function(){return _0x507148;};return _0x46c3();}import{AIChatUI as _0x5e9a00}from'./aichatui.js';import{AIChatHistory as _0x248be0}from'../aichathistory/aichathistory.js';function _0x3b02(_0x560d1a,_0x1677e6){var _0x46c3b4=_0x46c3();return _0x3b02=function(_0x3b0249,_0x4a7d2e){_0x3b0249=_0x3b0249-0x1d3;var _0x26cc2a=_0x46c3b4[_0x3b0249];return _0x26cc2a;},_0x3b02(_0x560d1a,_0x1677e6);}export class AIChat extends _0x431a9a{static get[_0x595dfb(0x1ea)](){return[_0x14a58c,_0x3b59f8,_0x5e9a00,_0x248be0];}static get[_0x595dfb(0x1e5)](){var _0x5a72ba=_0x595dfb;return _0x5a72ba(0x1ed);}static get[_0x595dfb(0x1e6)](){return!0x0;}static get[_0x595dfb(0x1d3)](){return!0x0;}constructor(_0x222ba1){var _0x36b51b=_0x595dfb;super(_0x222ba1),this[_0x36b51b(0x1e3)][_0x36b51b(0x1e4)][_0x36b51b(0x1ec)](_0x36b51b(0x1df),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x36b51b(0x1e3)][_0x36b51b(0x1e4)][_0x36b51b(0x1ec)](_0x36b51b(0x1db),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x595dfb(0x1da)](){var _0x37e9e9=_0x595dfb;await this[_0x37e9e9(0x1e3)][_0x37e9e9(0x1d9)][_0x37e9e9(0x1d5)](_0x14a58c)[_0x37e9e9(0x1da)]();}async[_0x595dfb(0x1d8)](){var _0x40ae54=_0x595dfb;await this[_0x40ae54(0x1e3)][_0x40ae54(0x1d9)][_0x40ae54(0x1d5)](_0x14a58c)[_0x40ae54(0x1d8)]();}async[_0x595dfb(0x1e8)]({message:_0x4afc2e,quickActionData:_0x18166d}){var _0x4de7e4=_0x595dfb;await this[_0x4de7e4(0x1e3)][_0x4de7e4(0x1d9)][_0x4de7e4(0x1d5)](_0x14a58c)[_0x4de7e4(0x1e8)]({'message':_0x4afc2e,'quickActionData':_0x18166d});}[_0x595dfb(0x1d4)](){var _0x526bdc=_0x595dfb;this[_0x526bdc(0x1e3)][_0x526bdc(0x1d9)][_0x526bdc(0x1d5)](_0x14a58c)[_0x526bdc(0x1d4)]();}[_0x595dfb(0x1e1)](){var _0x2ba164=_0x595dfb;this[_0x2ba164(0x1e3)][_0x2ba164(0x1d9)][_0x2ba164(0x1d5)](_0x14a58c)[_0x2ba164(0x1e1)]();}}