@ckeditor/ckeditor5-ai 47.1.0-alpha.1 → 47.1.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 (288) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  258. package/src/aireviewmode/aireviewmode.js +1 -1
  259. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  260. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  261. package/src/aireviewmode/aireviewmodeui.js +1 -1
  262. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  264. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  268. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  280. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  282. package/src/aitabs/aitabs.js +1 -1
  283. package/src/aitabs/aitabsmainview.js +1 -1
  284. package/src/aitabs/tabs/aitabsview.js +1 -1
  285. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  286. package/src/aitabs/tabs/tabpanelview.js +1 -1
  287. package/src/errors.js +1 -1
  288. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17f191=_0x2f0c;(function(_0x44db61,_0xcda217){const _0x3d0c44=_0x2f0c,_0x21e750=_0x44db61();while(!![]){try{const _0x3d0367=parseInt(_0x3d0c44(0xf1))/0x1*(-parseInt(_0x3d0c44(0xd1))/0x2)+parseInt(_0x3d0c44(0xe0))/0x3*(parseInt(_0x3d0c44(0xca))/0x4)+parseInt(_0x3d0c44(0xd2))/0x5+-parseInt(_0x3d0c44(0xd0))/0x6*(parseInt(_0x3d0c44(0xcd))/0x7)+parseInt(_0x3d0c44(0xe3))/0x8+parseInt(_0x3d0c44(0xe5))/0x9+parseInt(_0x3d0c44(0xd6))/0xa;if(_0x3d0367===_0xcda217)break;else _0x21e750['push'](_0x21e750['shift']());}catch(_0xc234be){_0x21e750['push'](_0x21e750['shift']());}}}(_0x1795,0xb1ff8));import{FocusTracker as _0x19eed6,KeystrokeHandler as _0x4b37e7}from'ckeditor5/src/utils.js';import{View as _0x573691,FocusCycler as _0x38a946,createLabeledTextarea as _0x8c6fb4}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x57faa7,AIFormToolbarViewMainActionLabel as _0x33a5a0}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x5bc507}from'./aiformcontentarea.js';function _0x1795(){const _0x2b0a34=['delegate','set','queryView','3811640izZXMS','value','clear','label','focusLast','ck-ai-form-content','startProcessing','toolbar','replaceContent','mainAction','760422DeXpuI','fieldView','_createPromptView','3881184aXafvk','isEnabled','4449906hFOZkd','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','bindTo','prompt','_focusables','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainEvent','replaceButton','clearHistory','items','listenTo','copyButtonView','696614qUjYuB','add','stopProcessing','_createToolbar','search','isVisible','focus','_promptHistory','bindTemplate','setTemplate','ck-ai-form','execute','isError','shift\x20+\x20tab','historyGroupView','keystrokes','high','element','bind','handleError','tryAgainButton','createCollection','_createHistoryView','fire','Empty\x20history','div','promptView','errorView','REPLACE','submit','focusCycler','focusFirst','tab','insertButton','AI_ERROR_FAILED','chain','ck-hidden','locale','focusTracker','reset','contentArea','trim','Ask\x20AI\x20to\x20improve\x20generated\x20text','render','isProcessing','stopButton','4iFDklJ','submitPrompt','text','217LmruaA','finishProcessing','insertContentBelow','259014KVjIua','2tqvScn','5748565tOZwQt'];_0x1795=function(){return _0x2b0a34;};return _0x1795();}function _0x2f0c(_0x42fc91,_0x5791c4){const _0x17953f=_0x1795();return _0x2f0c=function(_0x2f0c91,_0x1e6153){_0x2f0c91=_0x2f0c91-0xa2;let _0x11659b=_0x17953f[_0x2f0c91];return _0x11659b;},_0x2f0c(_0x42fc91,_0x5791c4);}import{AIFormErrorView as _0x3349dd}from'./aiformerrorview.js';import{AIFormPromptView as _0x52455a}from'./aiformpromptview.js';import{AIHistoryListView as _0xaaf5fc}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x7afc8}from'./aihistorylistitemview.js';import{PromptHistory as _0x113f01}from'./prompthistory.js';import{getTranslation as _0x894a20}from'../../utils/common-translations.js';import{escape as _0x54b8bb}from'es-toolkit/compat';export class AIFormView extends _0x573691{[_0x17f191(0xc2)];[_0x17f191(0xab)];[_0x17f191(0xc4)];[_0x17f191(0xdd)];[_0x17f191(0xb6)];[_0x17f191(0xb7)];[_0x17f191(0xe9)];[_0x17f191(0xba)];[_0x17f191(0xa3)];constructor(_0x1191b1,_0x18a29c,_0x4b6338=''){const _0x58b3d3=_0x17f191;super(_0x1191b1),this[_0x58b3d3(0xd4)](_0x58b3d3(0xe4),!0x0),this[_0x58b3d3(0xd4)](_0x58b3d3(0xc8),!0x1),this[_0x58b3d3(0xd4)](_0x58b3d3(0xe8),''),this[_0x58b3d3(0xd4)](_0x58b3d3(0xd7),''),this[_0x58b3d3(0xd4)](_0x58b3d3(0xa8),!0x1),this[_0x58b3d3(0xd4)](_0x58b3d3(0xdf),_0x33a5a0[_0x58b3d3(0xb8)]),this[_0x58b3d3(0xa3)]=new _0x113f01(),this[_0x58b3d3(0xb7)]=new _0x3349dd(_0x1191b1),this[_0x58b3d3(0xc4)]=new _0x5bc507(_0x1191b1,_0x4b6338),this[_0x58b3d3(0xc4)][_0x58b3d3(0xae)](_0x58b3d3(0xc8))['to'](this),this[_0x58b3d3(0xc4)][_0x58b3d3(0xae)](_0x58b3d3(0xd7))['to'](this),this[_0x58b3d3(0xdd)]=this[_0x58b3d3(0xf4)](),this[_0x58b3d3(0xdd)][_0x58b3d3(0xae)](_0x58b3d3(0xdf))['to'](this),this[_0x58b3d3(0xb6)]=this[_0x58b3d3(0xe2)](),this[_0x58b3d3(0xc2)]=new _0x19eed6(),this[_0x58b3d3(0xab)]=new _0x4b37e7(),this[_0x58b3d3(0xe9)]=this[_0x58b3d3(0xb1)]([this[_0x58b3d3(0xc4)],this[_0x58b3d3(0xc4)][_0x58b3d3(0xf0)],this[_0x58b3d3(0xdd)],this[_0x58b3d3(0xb6)]]),this[_0x58b3d3(0xba)]=new _0x38a946({'focusables':this[_0x58b3d3(0xe9)],'focusTracker':this[_0x58b3d3(0xc2)],'keystrokeHandler':this[_0x58b3d3(0xab)],'actions':{'focusPrevious':_0x58b3d3(0xa9),'focusNext':_0x58b3d3(0xbc)}}),this[_0x58b3d3(0xba)][_0x58b3d3(0xbf)](this[_0x58b3d3(0xb6)][_0x58b3d3(0xba)]),this[_0x58b3d3(0xb6)][_0x58b3d3(0xd5)][_0x58b3d3(0xe1)][_0x58b3d3(0xae)](_0x58b3d3(0xd7))['to'](this,_0x58b3d3(0xe8));const _0xc920d2=this[_0x58b3d3(0xa4)];this[_0x58b3d3(0xa5)]({'tag':_0x58b3d3(0xb5),'attributes':{'class':['ck',_0x58b3d3(0xa6),_0x18a29c],'tabindex':'-1'},'children':[{'tag':_0x58b3d3(0xb5),'attributes':{'class':['ck',_0x58b3d3(0xdb)]},'children':[{'tag':_0x58b3d3(0xb5),'attributes':{'class':[_0xc920d2['if'](_0x58b3d3(0xa8),_0x58b3d3(0xc0),_0x522044=>!_0x522044)]},'children':[this[_0x58b3d3(0xb7)]]},this[_0x58b3d3(0xc4)],this[_0x58b3d3(0xdd)],this[_0x58b3d3(0xb6)]]}]});}[_0x17f191(0xc7)](){const _0x5e958b=_0x17f191;super[_0x5e958b(0xc7)](),this[_0x5e958b(0xc2)][_0x5e958b(0xf2)](this[_0x5e958b(0xc4)][_0x5e958b(0xad)]),this[_0x5e958b(0xc2)][_0x5e958b(0xf2)](this[_0x5e958b(0xc4)][_0x5e958b(0xf0)][_0x5e958b(0xad)]),this[_0x5e958b(0xc2)][_0x5e958b(0xf2)](this[_0x5e958b(0xdd)][_0x5e958b(0xad)]),this[_0x5e958b(0xc2)][_0x5e958b(0xf2)](this[_0x5e958b(0xb6)][_0x5e958b(0xad)]),this[_0x5e958b(0xab)][_0x5e958b(0xef)](this[_0x5e958b(0xad)]);}[_0x17f191(0xa2)](_0x48d36a=0x1){const _0x4144d9=_0x17f191;-0x1===_0x48d36a?this[_0x4144d9(0xba)][_0x4144d9(0xda)]():this[_0x4144d9(0xba)][_0x4144d9(0xbb)]();}[_0x17f191(0xc3)](){const _0x8e9d9f=_0x17f191;this[_0x8e9d9f(0xe8)]='',this[_0x8e9d9f(0xd7)]='',this[_0x8e9d9f(0xa8)]=!0x1,this[_0x8e9d9f(0xb6)][_0x8e9d9f(0xc3)](),this[_0x8e9d9f(0xc4)][_0x8e9d9f(0xf6)]=!0x1,this[_0x8e9d9f(0xdd)][_0x8e9d9f(0xf6)]=!0x1;}[_0x17f191(0xe2)](){const _0x5806ab=_0x17f191,_0x3d8713=this[_0x5806ab(0xc1)],_0x3d8b29=new _0x52455a(_0x3d8713,{'queryView':{'label':_0x894a20(_0x3d8713,_0x5806ab(0xea)),'creator':_0x8c6fb4,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x894a20(_0x3d8713,_0x5806ab(0xb4)),'secondary':_0x894a20(_0x3d8713,_0x5806ab(0xe6))}}},'filteredView':this[_0x5806ab(0xb2)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x3d8b29[_0x5806ab(0xae)](_0x5806ab(0xe4))['to'](this,_0x5806ab(0xe4),this,_0x5806ab(0xc8),(_0x1889e8,_0x5df064)=>_0x1889e8&&!_0x5df064),this[_0x5806ab(0xef)](_0x3d8b29,_0x5806ab(0xb9),(_0xf23c96,_0x1b80fe)=>{const _0x2ebd7a=_0x5806ab;this[_0x2ebd7a(0xe8)]=_0x1b80fe;const _0x2aa72f=_0x54b8bb(_0x1b80fe);this[_0x2ebd7a(0xb3)](_0x2ebd7a(0xcb),_0x2aa72f),_0x1b80fe[_0x2ebd7a(0xc5)]()&&this[_0x2ebd7a(0xa3)][_0x2ebd7a(0xf2)]({'prompt':_0x2aa72f},0x0);},{'priority':_0x5806ab(0xac)}),_0x3d8b29;}[_0x17f191(0xb2)](){const _0x5c00e5=_0x17f191,_0x276d9d=new _0xaaf5fc(this[_0x5c00e5(0xc1)]);return _0x276d9d[_0x5c00e5(0xaa)][_0x5c00e5(0xee)][_0x5c00e5(0xe7)](this[_0x5c00e5(0xa3)])['as'](_0x7afc8),_0x276d9d['on'](_0x5c00e5(0xed),()=>{const _0x5c8a6=_0x5c00e5;this[_0x5c8a6(0xa3)][_0x5c8a6(0xd8)](),this[_0x5c8a6(0xb6)][_0x5c8a6(0xf5)](''),this[_0x5c8a6(0xb6)][_0x5c8a6(0xa2)]();}),_0x276d9d;}[_0x17f191(0xf4)](){const _0x140ca5=_0x17f191,_0x5a4ca5=new _0x57faa7(this[_0x140ca5(0xc1)]);return _0x5a4ca5[_0x140ca5(0xec)][_0x140ca5(0xae)](_0x140ca5(0xe4))['to'](this,_0x140ca5(0xe4),this,_0x140ca5(0xc8),this,_0x140ca5(0xd7),(_0x6594d6,_0x4bcc8b,_0x5f08a)=>_0x6594d6&&!_0x4bcc8b&&!!_0x5f08a),_0x5a4ca5[_0x140ca5(0xec)][_0x140ca5(0xd3)](_0x140ca5(0xa7))['to'](this,_0x140ca5(0xde)),_0x5a4ca5[_0x140ca5(0xbd)][_0x140ca5(0xae)](_0x140ca5(0xe4))['to'](this,_0x140ca5(0xe4),this,_0x140ca5(0xc8),this,_0x140ca5(0xd7),(_0x1571dd,_0x174dab,_0x31e136)=>_0x1571dd&&!_0x174dab&&!!_0x31e136),_0x5a4ca5[_0x140ca5(0xbd)][_0x140ca5(0xd3)](_0x140ca5(0xa7))['to'](this,_0x140ca5(0xcf)),_0x5a4ca5[_0x140ca5(0xb0)][_0x140ca5(0xae)](_0x140ca5(0xe4))['to'](this,_0x140ca5(0xe4),this,_0x140ca5(0xc8),(_0x51d192,_0x166512)=>_0x51d192&&!_0x166512),_0x5a4ca5[_0x140ca5(0xb0)][_0x140ca5(0xd3)](_0x140ca5(0xa7))['to'](this,_0x140ca5(0xeb)),_0x5a4ca5[_0x140ca5(0xc9)][_0x140ca5(0xae)](_0x140ca5(0xe4))['to'](this,_0x140ca5(0xc8)),_0x5a4ca5[_0x140ca5(0xc9)][_0x140ca5(0xd3)](_0x140ca5(0xa7))['to'](this,_0x140ca5(0xf3)),_0x5a4ca5;}[_0x17f191(0xdc)](){const _0x55175e=_0x17f191;this[_0x55175e(0xd7)]='',this[_0x55175e(0xa8)]=!0x1,this[_0x55175e(0xc8)]=!0x0,this[_0x55175e(0xc4)][_0x55175e(0xf6)]=!0x0,this[_0x55175e(0xdd)][_0x55175e(0xf6)]=!0x0,this[_0x55175e(0xc4)][_0x55175e(0xa2)]();}[_0x17f191(0xce)](){const _0x3e27d4=_0x17f191,_0x1e8f95=this[_0x3e27d4(0xc1)];this[_0x3e27d4(0xc8)]=!0x1,this[_0x3e27d4(0xe8)]='',this[_0x3e27d4(0xb6)][_0x3e27d4(0xc3)](),this[_0x3e27d4(0xd7)]&&(this[_0x3e27d4(0xb6)][_0x3e27d4(0xd5)][_0x3e27d4(0xd9)]=_0x894a20(_0x1e8f95,_0x3e27d4(0xc6)));}[_0x17f191(0xaf)](_0x528677){const _0x5850ff=_0x17f191,_0x15c5da=this[_0x5850ff(0xc1)];this[_0x5850ff(0xce)](),this[_0x5850ff(0xa8)]=!0x0,this[_0x5850ff(0xb7)][_0x5850ff(0xcc)]=_0x528677||_0x894a20(_0x15c5da,_0x5850ff(0xbe)),this[_0x5850ff(0xd7)]||(this[_0x5850ff(0xc4)][_0x5850ff(0xf6)]=!0x1);}}
23
+ const _0x16af6a=_0x2ef7;(function(_0x3305cd,_0x4f2888){const _0xff1af6=_0x2ef7,_0x2abce4=_0x3305cd();while(!![]){try{const _0x2665c1=parseInt(_0xff1af6(0xe1))/0x1+-parseInt(_0xff1af6(0xd3))/0x2+parseInt(_0xff1af6(0xcf))/0x3*(-parseInt(_0xff1af6(0xb5))/0x4)+-parseInt(_0xff1af6(0xa4))/0x5+-parseInt(_0xff1af6(0xc9))/0x6*(-parseInt(_0xff1af6(0xbb))/0x7)+-parseInt(_0xff1af6(0xbf))/0x8*(-parseInt(_0xff1af6(0xec))/0x9)+-parseInt(_0xff1af6(0xd1))/0xa;if(_0x2665c1===_0x4f2888)break;else _0x2abce4['push'](_0x2abce4['shift']());}catch(_0x26f9d4){_0x2abce4['push'](_0x2abce4['shift']());}}}(_0x5dbb,0x39efe));import{FocusTracker as _0x4ee65b,KeystrokeHandler as _0x5bae2b}from'ckeditor5/src/utils.js';import{View as _0x210afd,FocusCycler as _0x4e9d26,createLabeledTextarea as _0x3bbeb3}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x92a323,AIFormToolbarViewMainActionLabel as _0x39ddc2}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x30355e}from'./aiformcontentarea.js';import{AIFormErrorView as _0x5f19ee}from'./aiformerrorview.js';import{AIFormPromptView as _0x1487e1}from'./aiformpromptview.js';function _0x5dbb(){const _0x25eaf6=['bindTemplate','errorView','keystrokes','clearHistory','fire','18ByEVtY','tryAgainButton','Empty\x20history','label','_createPromptView','_focusables','102QWSsDz','fieldView','4287600IUHKKJ','_promptHistory','302864CBTifV','clear','set','bindTo','isEnabled','listenTo','queryView','locale','replaceButton','ck-hidden','copyButtonView','_createHistoryView','trim','ck-ai-form-content','449108vDelLo','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','createCollection','submitPrompt','shift\x20+\x20tab','toolbar','element','Ask\x20AI\x20to\x20edit\x20or\x20generate','chain','isVisible','promptView','24993tGODRt','focusLast','historyGroupView','stopProcessing','insertButton','isProcessing','high','value','render','text','AI_ERROR_FAILED','tryAgainEvent','execute','1400690glJpjF','tab','stopButton','Ask\x20AI\x20to\x20improve\x20generated\x20text','startProcessing','insertContentBelow','reset','focusCycler','finishProcessing','replaceContent','mainAction','_createToolbar','div','contentArea','delegate','focusTracker','items','21532GOZRnP','isError','prompt','focusFirst','focus','add','884107Byhdvt','search','setTemplate','REPLACE','1304vjEtCt','bind','submit','ck-ai-form','handleError'];_0x5dbb=function(){return _0x25eaf6;};return _0x5dbb();}function _0x2ef7(_0x265cc5,_0x1bb6ae){const _0x5dbb73=_0x5dbb();return _0x2ef7=function(_0x2ef7a2,_0x47c679){_0x2ef7a2=_0x2ef7a2-0xa2;let _0x232205=_0x5dbb73[_0x2ef7a2];return _0x232205;},_0x2ef7(_0x265cc5,_0x1bb6ae);}import{AIHistoryListView as _0x4afbac}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x26bac8}from'./aihistorylistitemview.js';import{PromptHistory as _0x41882d}from'./prompthistory.js';import{getTranslation as _0x5b6eb9}from'../../utils/common-translations.js';import{escape as _0x326701}from'es-toolkit/compat';export class AIFormView extends _0x210afd{[_0x16af6a(0xb3)];[_0x16af6a(0xc6)];[_0x16af6a(0xb1)];[_0x16af6a(0xe6)];[_0x16af6a(0xeb)];[_0x16af6a(0xc5)];[_0x16af6a(0xce)];[_0x16af6a(0xab)];[_0x16af6a(0xd2)];constructor(_0x14f118,_0x14705e,_0x5d2cfc=''){const _0x4690f9=_0x16af6a;super(_0x14f118),this[_0x4690f9(0xd5)](_0x4690f9(0xd7),!0x0),this[_0x4690f9(0xd5)](_0x4690f9(0xf1),!0x1),this[_0x4690f9(0xd5)](_0x4690f9(0xb7),''),this[_0x4690f9(0xd5)](_0x4690f9(0xf3),''),this[_0x4690f9(0xd5)](_0x4690f9(0xb6),!0x1),this[_0x4690f9(0xd5)](_0x4690f9(0xae),_0x39ddc2[_0x4690f9(0xbe)]),this[_0x4690f9(0xd2)]=new _0x41882d(),this[_0x4690f9(0xc5)]=new _0x5f19ee(_0x14f118),this[_0x4690f9(0xb1)]=new _0x30355e(_0x14f118,_0x5d2cfc),this[_0x4690f9(0xb1)][_0x4690f9(0xc0)](_0x4690f9(0xf1))['to'](this),this[_0x4690f9(0xb1)][_0x4690f9(0xc0)](_0x4690f9(0xf3))['to'](this),this[_0x4690f9(0xe6)]=this[_0x4690f9(0xaf)](),this[_0x4690f9(0xe6)][_0x4690f9(0xc0)](_0x4690f9(0xae))['to'](this),this[_0x4690f9(0xeb)]=this[_0x4690f9(0xcd)](),this[_0x4690f9(0xb3)]=new _0x4ee65b(),this[_0x4690f9(0xc6)]=new _0x5bae2b(),this[_0x4690f9(0xce)]=this[_0x4690f9(0xe3)]([this[_0x4690f9(0xb1)],this[_0x4690f9(0xb1)][_0x4690f9(0xdd)],this[_0x4690f9(0xe6)],this[_0x4690f9(0xeb)]]),this[_0x4690f9(0xab)]=new _0x4e9d26({'focusables':this[_0x4690f9(0xce)],'focusTracker':this[_0x4690f9(0xb3)],'keystrokeHandler':this[_0x4690f9(0xc6)],'actions':{'focusPrevious':_0x4690f9(0xe5),'focusNext':_0x4690f9(0xa5)}}),this[_0x4690f9(0xab)][_0x4690f9(0xe9)](this[_0x4690f9(0xeb)][_0x4690f9(0xab)]),this[_0x4690f9(0xeb)][_0x4690f9(0xd9)][_0x4690f9(0xd0)][_0x4690f9(0xc0)](_0x4690f9(0xf3))['to'](this,_0x4690f9(0xb7));const _0x2fb40c=this[_0x4690f9(0xc4)];this[_0x4690f9(0xbd)]({'tag':_0x4690f9(0xb0),'attributes':{'class':['ck',_0x4690f9(0xc2),_0x14705e],'tabindex':'-1'},'children':[{'tag':_0x4690f9(0xb0),'attributes':{'class':['ck',_0x4690f9(0xe0)]},'children':[{'tag':_0x4690f9(0xb0),'attributes':{'class':[_0x2fb40c['if'](_0x4690f9(0xb6),_0x4690f9(0xdc),_0x3f8546=>!_0x3f8546)]},'children':[this[_0x4690f9(0xc5)]]},this[_0x4690f9(0xb1)],this[_0x4690f9(0xe6)],this[_0x4690f9(0xeb)]]}]});}[_0x16af6a(0xf4)](){const _0x3d2f73=_0x16af6a;super[_0x3d2f73(0xf4)](),this[_0x3d2f73(0xb3)][_0x3d2f73(0xba)](this[_0x3d2f73(0xb1)][_0x3d2f73(0xe7)]),this[_0x3d2f73(0xb3)][_0x3d2f73(0xba)](this[_0x3d2f73(0xb1)][_0x3d2f73(0xdd)][_0x3d2f73(0xe7)]),this[_0x3d2f73(0xb3)][_0x3d2f73(0xba)](this[_0x3d2f73(0xe6)][_0x3d2f73(0xe7)]),this[_0x3d2f73(0xb3)][_0x3d2f73(0xba)](this[_0x3d2f73(0xeb)][_0x3d2f73(0xe7)]),this[_0x3d2f73(0xc6)][_0x3d2f73(0xd8)](this[_0x3d2f73(0xe7)]);}[_0x16af6a(0xb9)](_0x197b19=0x1){const _0x5e64b8=_0x16af6a;-0x1===_0x197b19?this[_0x5e64b8(0xab)][_0x5e64b8(0xed)]():this[_0x5e64b8(0xab)][_0x5e64b8(0xb8)]();}[_0x16af6a(0xaa)](){const _0x5dd26a=_0x16af6a;this[_0x5dd26a(0xb7)]='',this[_0x5dd26a(0xf3)]='',this[_0x5dd26a(0xb6)]=!0x1,this[_0x5dd26a(0xeb)][_0x5dd26a(0xaa)](),this[_0x5dd26a(0xb1)][_0x5dd26a(0xea)]=!0x1,this[_0x5dd26a(0xe6)][_0x5dd26a(0xea)]=!0x1;}[_0x16af6a(0xcd)](){const _0x1c459a=_0x16af6a,_0x9f4ce=this[_0x1c459a(0xda)],_0x273514=new _0x1487e1(_0x9f4ce,{'queryView':{'label':_0x5b6eb9(_0x9f4ce,_0x1c459a(0xe8)),'creator':_0x3bbeb3,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x5b6eb9(_0x9f4ce,_0x1c459a(0xcb)),'secondary':_0x5b6eb9(_0x9f4ce,_0x1c459a(0xe2))}}},'filteredView':this[_0x1c459a(0xde)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x273514[_0x1c459a(0xc0)](_0x1c459a(0xd7))['to'](this,_0x1c459a(0xd7),this,_0x1c459a(0xf1),(_0x247433,_0x5a0caa)=>_0x247433&&!_0x5a0caa),this[_0x1c459a(0xd8)](_0x273514,_0x1c459a(0xc1),(_0x11a5aa,_0x4f7e4d)=>{const _0x44d766=_0x1c459a;this[_0x44d766(0xb7)]=_0x4f7e4d;const _0x16ef3b=_0x326701(_0x4f7e4d);this[_0x44d766(0xc8)](_0x44d766(0xe4),_0x16ef3b),_0x4f7e4d[_0x44d766(0xdf)]()&&this[_0x44d766(0xd2)][_0x44d766(0xba)]({'prompt':_0x16ef3b},0x0);},{'priority':_0x1c459a(0xf2)}),_0x273514;}[_0x16af6a(0xde)](){const _0x291504=_0x16af6a,_0xafdfca=new _0x4afbac(this[_0x291504(0xda)]);return _0xafdfca[_0x291504(0xee)][_0x291504(0xb4)][_0x291504(0xd6)](this[_0x291504(0xd2)])['as'](_0x26bac8),_0xafdfca['on'](_0x291504(0xc7),()=>{const _0x2582cb=_0x291504;this[_0x2582cb(0xd2)][_0x2582cb(0xd4)](),this[_0x2582cb(0xeb)][_0x2582cb(0xbc)](''),this[_0x2582cb(0xeb)][_0x2582cb(0xb9)]();}),_0xafdfca;}[_0x16af6a(0xaf)](){const _0x4b1ece=_0x16af6a,_0x3565aa=new _0x92a323(this[_0x4b1ece(0xda)]);return _0x3565aa[_0x4b1ece(0xdb)][_0x4b1ece(0xc0)](_0x4b1ece(0xd7))['to'](this,_0x4b1ece(0xd7),this,_0x4b1ece(0xf1),this,_0x4b1ece(0xf3),(_0x1439ec,_0x508c8d,_0x407c8b)=>_0x1439ec&&!_0x508c8d&&!!_0x407c8b),_0x3565aa[_0x4b1ece(0xdb)][_0x4b1ece(0xb2)](_0x4b1ece(0xa3))['to'](this,_0x4b1ece(0xad)),_0x3565aa[_0x4b1ece(0xf0)][_0x4b1ece(0xc0)](_0x4b1ece(0xd7))['to'](this,_0x4b1ece(0xd7),this,_0x4b1ece(0xf1),this,_0x4b1ece(0xf3),(_0x4c2250,_0x36f9e6,_0x2cd7a0)=>_0x4c2250&&!_0x36f9e6&&!!_0x2cd7a0),_0x3565aa[_0x4b1ece(0xf0)][_0x4b1ece(0xb2)](_0x4b1ece(0xa3))['to'](this,_0x4b1ece(0xa9)),_0x3565aa[_0x4b1ece(0xca)][_0x4b1ece(0xc0)](_0x4b1ece(0xd7))['to'](this,_0x4b1ece(0xd7),this,_0x4b1ece(0xf1),(_0x1ff11a,_0x6d4c0d)=>_0x1ff11a&&!_0x6d4c0d),_0x3565aa[_0x4b1ece(0xca)][_0x4b1ece(0xb2)](_0x4b1ece(0xa3))['to'](this,_0x4b1ece(0xa2)),_0x3565aa[_0x4b1ece(0xa6)][_0x4b1ece(0xc0)](_0x4b1ece(0xd7))['to'](this,_0x4b1ece(0xf1)),_0x3565aa[_0x4b1ece(0xa6)][_0x4b1ece(0xb2)](_0x4b1ece(0xa3))['to'](this,_0x4b1ece(0xef)),_0x3565aa;}[_0x16af6a(0xa8)](){const _0x4bde98=_0x16af6a;this[_0x4bde98(0xf3)]='',this[_0x4bde98(0xb6)]=!0x1,this[_0x4bde98(0xf1)]=!0x0,this[_0x4bde98(0xb1)][_0x4bde98(0xea)]=!0x0,this[_0x4bde98(0xe6)][_0x4bde98(0xea)]=!0x0,this[_0x4bde98(0xb1)][_0x4bde98(0xb9)]();}[_0x16af6a(0xac)](){const _0x5e9419=_0x16af6a,_0x3bf7e9=this[_0x5e9419(0xda)];this[_0x5e9419(0xf1)]=!0x1,this[_0x5e9419(0xb7)]='',this[_0x5e9419(0xeb)][_0x5e9419(0xaa)](),this[_0x5e9419(0xf3)]&&(this[_0x5e9419(0xeb)][_0x5e9419(0xd9)][_0x5e9419(0xcc)]=_0x5b6eb9(_0x3bf7e9,_0x5e9419(0xa7)));}[_0x16af6a(0xc3)](_0x4d3c8c){const _0x26a2d3=_0x16af6a,_0x41b971=this[_0x26a2d3(0xda)];this[_0x26a2d3(0xac)](),this[_0x26a2d3(0xb6)]=!0x0,this[_0x26a2d3(0xc5)][_0x26a2d3(0xf5)]=_0x4d3c8c||_0x5b6eb9(_0x41b971,_0x26a2d3(0xf6)),this[_0x26a2d3(0xf3)]||(this[_0x26a2d3(0xb1)][_0x26a2d3(0xea)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x28b7(_0xa3cec3,_0x3141bf){const _0x30527e=_0x3052();return _0x28b7=function(_0x28b744,_0x5f4cb7){_0x28b744=_0x28b744-0x1b6;let _0x22c88d=_0x30527e[_0x28b744];return _0x22c88d;},_0x28b7(_0xa3cec3,_0x3141bf);}(function(_0x4bcbdd,_0x597db4){const _0x1e5b9f=_0x28b7,_0xe3eb65=_0x4bcbdd();while(!![]){try{const _0x435bfb=-parseInt(_0x1e5b9f(0x1b9))/0x1*(-parseInt(_0x1e5b9f(0x1ba))/0x2)+parseInt(_0x1e5b9f(0x1c7))/0x3*(-parseInt(_0x1e5b9f(0x1c2))/0x4)+parseInt(_0x1e5b9f(0x1bc))/0x5+-parseInt(_0x1e5b9f(0x1c3))/0x6+-parseInt(_0x1e5b9f(0x1c6))/0x7*(parseInt(_0x1e5b9f(0x1c1))/0x8)+-parseInt(_0x1e5b9f(0x1c4))/0x9*(-parseInt(_0x1e5b9f(0x1b8))/0xa)+parseInt(_0x1e5b9f(0x1bf))/0xb*(parseInt(_0x1e5b9f(0x1c0))/0xc);if(_0x435bfb===_0x597db4)break;else _0xe3eb65['push'](_0xe3eb65['shift']());}catch(_0x3b2953){_0xe3eb65['push'](_0xe3eb65['shift']());}}}(_0x3052,0xc265d));import{ListItemView as _0x3f7ea1,ButtonView as _0xd247c2,ButtonLabelView as _0x16e19c}from'ckeditor5/src/ui.js';import{unescape as _0x25eb43}from'es-toolkit/compat';function _0x3052(){const _0x5ad78a=['156068yfGnCk','4265118ZBPVCt','72dNhYzX','execute','7lUUYDS','60goGBMb','children','add','set','660220jxzlay','3528fNAjPS','314ZULLYA','locale','3550625TLuQoG','prompt','fire','18836081tDIhQp','12vHKTNX','9736976EWUzhi'];_0x3052=function(){return _0x5ad78a;};return _0x3052();}export class AIHistoryListItemView extends _0x3f7ea1{constructor(_0x3b7dfd){const _0x386f03=_0x28b7;super();const _0x2d8f3e=new _0x16e19c(),_0x3d4281=new _0xd247c2(this[_0x386f03(0x1bb)],_0x2d8f3e);this[_0x386f03(0x1c8)][_0x386f03(0x1b6)](_0x3d4281),_0x3d4281[_0x386f03(0x1b7)]({'label':_0x3b7dfd[_0x386f03(0x1bd)],'withText':!0x0}),_0x3d4281['on'](_0x386f03(0x1c5),()=>{const _0x2e3790=_0x386f03;this[_0x2e3790(0x1be)](_0x2e3790(0x1c5),{'value':_0x25eb43(_0x3b7dfd[_0x2e3790(0x1bd)])});});}}
23
+ (function(_0xe1986d,_0x20505c){const _0xe04746=_0x89b5,_0x182b6a=_0xe1986d();while(!![]){try{const _0x53e0fb=-parseInt(_0xe04746(0xca))/0x1*(parseInt(_0xe04746(0xc4))/0x2)+-parseInt(_0xe04746(0xd3))/0x3*(parseInt(_0xe04746(0xd2))/0x4)+parseInt(_0xe04746(0xd1))/0x5*(parseInt(_0xe04746(0xc7))/0x6)+parseInt(_0xe04746(0xcb))/0x7+-parseInt(_0xe04746(0xcf))/0x8+-parseInt(_0xe04746(0xc5))/0x9*(-parseInt(_0xe04746(0xcc))/0xa)+-parseInt(_0xe04746(0xce))/0xb*(-parseInt(_0xe04746(0xc9))/0xc);if(_0x53e0fb===_0x20505c)break;else _0x182b6a['push'](_0x182b6a['shift']());}catch(_0x4a0921){_0x182b6a['push'](_0x182b6a['shift']());}}}(_0x21ca,0x7e55c));function _0x21ca(){const _0x283c4c=['add','execute','fire','2nWaNbM','2150973IhjePz','prompt','195642YXXNbB','locale','11803836oaTXlS','971342oXbYur','5517491aMcSDj','20fSmrTP','set','11cqZcuw','1026328GLtQGr','children','15NdbnVV','16mJOACl','547935oHvIHl'];_0x21ca=function(){return _0x283c4c;};return _0x21ca();}import{ListItemView as _0xa8e1d1,ButtonView as _0xbb299e,ButtonLabelView as _0x5583b2}from'ckeditor5/src/ui.js';import{unescape as _0x78de2e}from'es-toolkit/compat';function _0x89b5(_0x3c7b60,_0x19d01a){const _0x21caaa=_0x21ca();return _0x89b5=function(_0x89b528,_0x79d814){_0x89b528=_0x89b528-0xc1;let _0x40be89=_0x21caaa[_0x89b528];return _0x40be89;},_0x89b5(_0x3c7b60,_0x19d01a);}export class AIHistoryListItemView extends _0xa8e1d1{constructor(_0x527d0){const _0x838c8e=_0x89b5;super();const _0x261164=new _0x5583b2(),_0xf98716=new _0xbb299e(this[_0x838c8e(0xc8)],_0x261164);this[_0x838c8e(0xd0)][_0x838c8e(0xc1)](_0xf98716),_0xf98716[_0x838c8e(0xcd)]({'label':_0x527d0[_0x838c8e(0xc6)],'withText':!0x0}),_0xf98716['on'](_0x838c8e(0xc2),()=>{const _0x1495f4=_0x838c8e;this[_0x1495f4(0xc3)](_0x1495f4(0xc2),{'value':_0x78de2e(_0x527d0[_0x1495f4(0xc6)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20079f=_0x3990;(function(_0x5f399b,_0x424576){const _0x46d350=_0x3990,_0x6b424c=_0x5f399b();while(!![]){try{const _0xfa4b40=parseInt(_0x46d350(0x1c1))/0x1*(-parseInt(_0x46d350(0x1ca))/0x2)+parseInt(_0x46d350(0x1c3))/0x3*(parseInt(_0x46d350(0x1bc))/0x4)+-parseInt(_0x46d350(0x1c2))/0x5*(parseInt(_0x46d350(0x1c0))/0x6)+-parseInt(_0x46d350(0x1b2))/0x7+parseInt(_0x46d350(0x1c4))/0x8+-parseInt(_0x46d350(0x1b1))/0x9*(parseInt(_0x46d350(0x1bb))/0xa)+parseInt(_0x46d350(0x1b6))/0xb;if(_0xfa4b40===_0x424576)break;else _0x6b424c['push'](_0x6b424c['shift']());}catch(_0x4f86b4){_0x6b424c['push'](_0x6b424c['shift']());}}}(_0x5280,0x3348d));function _0x3990(_0x14356a,_0x807f07){const _0x52802d=_0x5280();return _0x3990=function(_0x3990df,_0x579e91){_0x3990df=_0x3990df-0x1b1;let _0x739787=_0x52802d[_0x3990df];return _0x739787;},_0x3990(_0x14356a,_0x807f07);}import{ListView as _0x438c78,ListItemGroupView as _0x17206c,ButtonView as _0x51d5d3}from'ckeditor5/src/ui.js';import{getTranslation as _0x40064c}from'../../utils/common-translations.js';function _0x5280(){const _0xfc8b03=['5jdLKxx','531gvlIOM','1409000HPHCjx','historyGroupView','clearHistoryButton','fire','execute','clearHistory','24602lxiqYj','children','label','3411rpLDNf','79905kghIEj','Clear','length','_createClearHistoryButton','5716227LyJXrM','Prompt\x20history','filter','delegate','locale','6470oCECBt','3596IIgtSU','add','items','set','1591236pKxpOt','10sCqWce'];_0x5280=function(){return _0xfc8b03;};return _0x5280();}export class AIHistoryListView extends _0x438c78{[_0x20079f(0x1c5)];[_0x20079f(0x1c6)];constructor(_0x14780a){const _0x4255ec=_0x20079f;super(_0x14780a),this[_0x4255ec(0x1c6)]=this[_0x4255ec(0x1b5)](),this[_0x4255ec(0x1c5)]=new _0x17206c(),this[_0x4255ec(0x1c5)][_0x4255ec(0x1cb)][_0x4255ec(0x1bd)](this[_0x4255ec(0x1c6)],0x1),this[_0x4255ec(0x1c5)][_0x4255ec(0x1cc)]=_0x40064c(_0x14780a,_0x4255ec(0x1b7)),this[_0x4255ec(0x1c5)][_0x4255ec(0x1be)][_0x4255ec(0x1b9)](_0x4255ec(0x1c8))['to'](this),this[_0x4255ec(0x1be)][_0x4255ec(0x1bd)](this[_0x4255ec(0x1c5)]);}[_0x20079f(0x1b8)](){const _0x21ccff=_0x20079f;let _0x4acf2b=0x0;for(const _0x2e7cdb of this[_0x21ccff(0x1be)])_0x4acf2b+=_0x2e7cdb[_0x21ccff(0x1be)][_0x21ccff(0x1b4)];return{'resultsCount':_0x4acf2b,'totalItemsCount':_0x4acf2b};}[_0x20079f(0x1b5)](){const _0x12350b=_0x20079f,_0x33f646=this[_0x12350b(0x1ba)],_0x5f2e95=new _0x51d5d3(this[_0x12350b(0x1ba)]);return _0x5f2e95[_0x12350b(0x1bf)]({'label':'('+_0x40064c(_0x33f646,_0x12350b(0x1b3))+')','withText':!0x0}),_0x5f2e95['on'](_0x12350b(0x1c8),()=>this[_0x12350b(0x1c7)](_0x12350b(0x1c9))),_0x5f2e95;}}
23
+ const _0x481de9=_0x48d4;(function(_0x41704a,_0x3a939f){const _0x59711e=_0x48d4,_0x6b7bc3=_0x41704a();while(!![]){try{const _0x387af8=parseInt(_0x59711e(0x1ae))/0x1+-parseInt(_0x59711e(0x1bf))/0x2*(-parseInt(_0x59711e(0x1c0))/0x3)+-parseInt(_0x59711e(0x1b0))/0x4*(parseInt(_0x59711e(0x1ba))/0x5)+-parseInt(_0x59711e(0x1b1))/0x6*(parseInt(_0x59711e(0x1bd))/0x7)+parseInt(_0x59711e(0x1b7))/0x8+parseInt(_0x59711e(0x1b4))/0x9+-parseInt(_0x59711e(0x1bc))/0xa;if(_0x387af8===_0x3a939f)break;else _0x6b7bc3['push'](_0x6b7bc3['shift']());}catch(_0x48e895){_0x6b7bc3['push'](_0x6b7bc3['shift']());}}}(_0x3962,0xb122e));function _0x48d4(_0x10eebc,_0x3b8bad){const _0x396273=_0x3962();return _0x48d4=function(_0x48d497,_0x5d0c86){_0x48d497=_0x48d497-0x1ae;let _0x1a97f2=_0x396273[_0x48d497];return _0x1a97f2;},_0x48d4(_0x10eebc,_0x3b8bad);}import{ListView as _0x15b80e,ListItemGroupView as _0x12d009,ButtonView as _0x35dd29}from'ckeditor5/src/ui.js';function _0x3962(){const _0x14ab4f=['78560Zvptyl','fire','11621240XoDFOn','350yFLVeg','_createClearHistoryButton','61518emvgKH','78tYPCUW','filter','clearHistoryButton','set','execute','items','locale','historyGroupView','Prompt\x20history','1873GnLbfv','length','4PSLkXw','72714keDbiB','Clear','clearHistory','13004370mnZjIG','label','add','2102392rRWjVG','delegate','children'];_0x3962=function(){return _0x14ab4f;};return _0x3962();}import{getTranslation as _0x3c31fb}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x15b80e{[_0x481de9(0x1c7)];[_0x481de9(0x1c2)];constructor(_0x5ecb8b){const _0x4abae3=_0x481de9;super(_0x5ecb8b),this[_0x4abae3(0x1c2)]=this[_0x4abae3(0x1be)](),this[_0x4abae3(0x1c7)]=new _0x12d009(),this[_0x4abae3(0x1c7)][_0x4abae3(0x1b9)][_0x4abae3(0x1b6)](this[_0x4abae3(0x1c2)],0x1),this[_0x4abae3(0x1c7)][_0x4abae3(0x1b5)]=_0x3c31fb(_0x5ecb8b,_0x4abae3(0x1c8)),this[_0x4abae3(0x1c7)][_0x4abae3(0x1c5)][_0x4abae3(0x1b8)](_0x4abae3(0x1c4))['to'](this),this[_0x4abae3(0x1c5)][_0x4abae3(0x1b6)](this[_0x4abae3(0x1c7)]);}[_0x481de9(0x1c1)](){const _0xf19d20=_0x481de9;let _0x21351d=0x0;for(const _0x5e0dd5 of this[_0xf19d20(0x1c5)])_0x21351d+=_0x5e0dd5[_0xf19d20(0x1c5)][_0xf19d20(0x1af)];return{'resultsCount':_0x21351d,'totalItemsCount':_0x21351d};}[_0x481de9(0x1be)](){const _0x25a4d5=_0x481de9,_0x383da6=this[_0x25a4d5(0x1c6)],_0x1b3196=new _0x35dd29(this[_0x25a4d5(0x1c6)]);return _0x1b3196[_0x25a4d5(0x1c3)]({'label':'('+_0x3c31fb(_0x383da6,_0x25a4d5(0x1b2))+')','withText':!0x0}),_0x1b3196['on'](_0x25a4d5(0x1c4),()=>this[_0x25a4d5(0x1bb)](_0x25a4d5(0x1b3))),_0x1b3196;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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)]();}
23
+ const _0x2a8aa3=_0x4ae1;function _0x4ae1(_0x4db4e3,_0x3034da){const _0x1ca274=_0x1ca2();return _0x4ae1=function(_0x4ae148,_0x4a9b39){_0x4ae148=_0x4ae148-0x1ba;let _0xb8f2df=_0x1ca274[_0x4ae148];return _0xb8f2df;},_0x4ae1(_0x4db4e3,_0x3034da);}(function(_0xc5eeea,_0x4b248b){const _0x5a5d02=_0x4ae1,_0x3f7755=_0xc5eeea();while(!![]){try{const _0x25dab5=parseInt(_0x5a5d02(0x1ca))/0x1*(parseInt(_0x5a5d02(0x1cf))/0x2)+-parseInt(_0x5a5d02(0x1d4))/0x3+-parseInt(_0x5a5d02(0x1c7))/0x4+-parseInt(_0x5a5d02(0x1c8))/0x5*(-parseInt(_0x5a5d02(0x1ce))/0x6)+-parseInt(_0x5a5d02(0x1cd))/0x7+parseInt(_0x5a5d02(0x1c9))/0x8*(parseInt(_0x5a5d02(0x1d2))/0x9)+-parseInt(_0x5a5d02(0x1bf))/0xa*(parseInt(_0x5a5d02(0x1cb))/0xb);if(_0x25dab5===_0x4b248b)break;else _0x3f7755['push'](_0x3f7755['shift']());}catch(_0x56b06b){_0x3f7755['push'](_0x3f7755['shift']());}}}(_0x1ca2,0x83169));import{Collection as _0x3ff33c}from'ckeditor5/src/utils.js';function _0x1ca2(){const _0x3da973=['stringify','addMany','3580cfOlEz','last','_loadFromSessionStorage','length','prompt','add','map','remove','1201924XZLajY','585275bvIEhx','153552GuEQet','548342wYUGmz','121eEYiaT','toLowerCase','2956492PtKQln','18BnfSxI','2Xpbqxs','setItem','CKEditor/AIFormView/PromptHistory','315HbJHLk','parse','922755nGxTkR','getItem','_saveToSessionStorage','trim'];_0x1ca2=function(){return _0x3da973;};return _0x1ca2();}const ao=_0x2a8aa3(0x1d1);export class PromptHistory extends _0x3ff33c{constructor(){const _0x2e4605=_0x2a8aa3;super(),this[_0x2e4605(0x1c1)](),this['on'](_0x2e4605(0x1c4),(_0x59dbf7,_0x1d7402)=>{const _0x1ef3f8=_0x2e4605,_0x1fb1c4=So(_0x1d7402[_0x1ef3f8(0x1c3)]);for(const _0x54d26a of this)if(_0x54d26a!=_0x1d7402&&So(_0x54d26a[_0x1ef3f8(0x1c3)])===_0x1fb1c4){this[_0x1ef3f8(0x1c6)](_0x54d26a);break;}this[_0x1ef3f8(0x1c2)]>0x14&&this[_0x1ef3f8(0x1c6)](this[_0x1ef3f8(0x1c0)]),this[_0x1ef3f8(0x1bb)]();}),this['on'](_0x2e4605(0x1c6),()=>{const _0x1adff7=_0x2e4605;this[_0x1adff7(0x1bb)]();});}[_0x2a8aa3(0x1c1)](){const _0x470005=_0x2a8aa3,_0x131ee5=sessionStorage[_0x470005(0x1ba)](ao)||'[]';this[_0x470005(0x1be)](JSON[_0x470005(0x1d3)](_0x131ee5));}[_0x2a8aa3(0x1bb)](){const _0xe94288=_0x2a8aa3;sessionStorage[_0xe94288(0x1d0)](ao,JSON[_0xe94288(0x1bd)](this[_0xe94288(0x1c5)](_0x557e9f=>_0x557e9f)));}}function So(_0x2d8b8c){const _0xcf6964=_0x2a8aa3;return _0x2d8b8c[_0xcf6964(0x1cc)]()[_0xcf6964(0x1bc)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc44153=_0xb910;function _0xb910(_0x974d31,_0x45b02f){const _0x2f1eca=_0x2f1e();return _0xb910=function(_0xb910bb,_0x495fb1){_0xb910bb=_0xb910bb-0x190;let _0x514571=_0x2f1eca[_0xb910bb];return _0x514571;},_0xb910(_0x974d31,_0x45b02f);}(function(_0x388744,_0x3cb6cb){const _0x345410=_0xb910,_0x2113c2=_0x388744();while(!![]){try{const _0x4d7834=-parseInt(_0x345410(0x1a6))/0x1+-parseInt(_0x345410(0x1b6))/0x2+-parseInt(_0x345410(0x198))/0x3*(parseInt(_0x345410(0x1ad))/0x4)+parseInt(_0x345410(0x19e))/0x5*(parseInt(_0x345410(0x19f))/0x6)+parseInt(_0x345410(0x193))/0x7*(parseInt(_0x345410(0x19a))/0x8)+parseInt(_0x345410(0x1a1))/0x9*(parseInt(_0x345410(0x1a7))/0xa)+parseInt(_0x345410(0x1a2))/0xb*(parseInt(_0x345410(0x192))/0xc);if(_0x4d7834===_0x3cb6cb)break;else _0x2113c2['push'](_0x2113c2['shift']());}catch(_0x9994b4){_0x2113c2['push'](_0x2113c2['shift']());}}}(_0x2f1e,0x73606));import{Command as _0x33cf11}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x27ed1c}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x33cf11{[_0xc44153(0x1bb)];constructor(_0x57f060,_0xdd833c){const _0x40a802=_0xc44153;super(_0x57f060),this[_0x40a802(0x1bb)]=_0xdd833c,this[_0x40a802(0x194)](_0x40a802(0x1a4),[]),this['on'](_0x40a802(0x1a0),(_0x4d7d42,_0x28daab,_0x43cf0a)=>{const _0x14b4f7=_0x40a802;this[_0x14b4f7(0x1ba)]&&(this[_0x14b4f7(0x1a4)]=ns(this[_0x14b4f7(0x1bb)],_0x43cf0a));}),this[_0x40a802(0x194)](_0x40a802(0x190),!0x1),this['on'](_0x40a802(0x1b4),(_0x1cac1b,_0x43a6ff,_0x45832e)=>{const _0x1298be=_0x40a802;this[_0x1298be(0x1a4)]=_0x45832e?ns(this[_0x1298be(0x1bb)],this[_0x1298be(0x190)]):[];});}[_0xc44153(0x191)](){const _0x1a0041=_0xc44153,_0x54fe96=this[_0x1a0041(0x1b7)][_0x1a0041(0x1b3)];this[_0x1a0041(0x190)]=function(_0x1ed1d2){const _0x4ade50=_0x1a0041,_0x2e2191=_0x1ed1d2[_0x4ade50(0x1bd)][_0x4ade50(0x1ae)];return _0x2e2191[_0x4ade50(0x1a5)]?0x0!==[..._0x2e2191[_0x4ade50(0x19c)]()][_0x4ade50(0x1a3)]&&![..._0x2e2191[_0x4ade50(0x19c)]()][0x0][_0x4ade50(0x1b2)]:!!_0x1ed1d2[_0x4ade50(0x19b)](_0x2e2191[_0x4ade50(0x1ab)]());}(_0x54fe96);const _0x1cebd2=_0x54fe96[_0x1a0041(0x1bd)][_0x1a0041(0x1ae)],_0x528d29=this[_0x1a0041(0x1b7)][_0x1a0041(0x1bc)][_0x1a0041(0x196)](_0x1a0041(0x1a8));for(const _0xb4c84f of _0x1cebd2[_0x1a0041(0x197)]())for(const _0xe11fd8 of _0xb4c84f[_0x1a0041(0x1b8)]())if(_0xe11fd8['is'](_0x1a0041(0x1b1))&&_0x528d29[_0x1a0041(0x1a9)](_0xe11fd8[_0x1a0041(0x1b0)]))return void(this[_0x1a0041(0x1ba)]=!0x1);this[_0x1a0041(0x1ba)]=!0x0;}[_0xc44153(0x195)](_0x3be505='',_0x39d610='',_0x305638=_0xc44153(0x19d)){const _0x4bfbf3=_0xc44153;this[_0x4bfbf3(0x1b7)][_0x4bfbf3(0x199)][_0x4bfbf3(0x196)](_0x27ed1c)[_0x4bfbf3(0x1b9)](_0x3be505,_0x39d610,_0x305638);}}function _0x2f1e(){const _0x4b64bf=['getFirstRange','add','1067716PtnlmY','selection','requiresContent','name','element','isEmpty','model','change:isEnabled','from','1444816HktzOp','editor','getItems','showUI','isEnabled','_commandDefinitions','config','document','_hasContext','refresh','468564PdPGJw','2425801CoBfAP','set','execute','get','getRanges','9AUzsWF','plugins','8AQTeSL','hasContent','getSelectedBlocks','custom','190WzRQUk','100266PNjmiV','change:_hasContext','5071824YlGCmt','385zcUIuP','length','enabledCommandsIds','isCollapsed','915965HIGbdJ','10jMwRNj','ai.assistant.disabledElements','includes','values'];_0x2f1e=function(){return _0x4b64bf;};return _0x2f1e();}function ns(_0x10da67,_0x48c3e1){const _0x227669=_0xc44153,_0x12fcb9=new Set();for(const _0x59dded of _0x10da67[_0x227669(0x1aa)]())(_0x48c3e1||!0x1===_0x59dded[_0x227669(0x1af)])&&_0x12fcb9[_0x227669(0x1ac)](_0x59dded['id']);return Array[_0x227669(0x1b5)](_0x12fcb9);}
23
+ const _0x57a494=_0xecf4;function _0xecf4(_0x6c16ea,_0x193bfd){const _0x38d5ea=_0x38d5();return _0xecf4=function(_0xecf41b,_0x5bde32){_0xecf41b=_0xecf41b-0x15a;let _0x1b3a1a=_0x38d5ea[_0xecf41b];return _0x1b3a1a;},_0xecf4(_0x6c16ea,_0x193bfd);}(function(_0x40be71,_0x29f2dd){const _0x3d04e2=_0xecf4,_0x18657d=_0x40be71();while(!![]){try{const _0x17dc09=parseInt(_0x3d04e2(0x17a))/0x1+parseInt(_0x3d04e2(0x169))/0x2*(-parseInt(_0x3d04e2(0x165))/0x3)+-parseInt(_0x3d04e2(0x184))/0x4*(parseInt(_0x3d04e2(0x15e))/0x5)+-parseInt(_0x3d04e2(0x174))/0x6*(parseInt(_0x3d04e2(0x187))/0x7)+-parseInt(_0x3d04e2(0x188))/0x8*(-parseInt(_0x3d04e2(0x16e))/0x9)+parseInt(_0x3d04e2(0x16f))/0xa*(parseInt(_0x3d04e2(0x15c))/0xb)+parseInt(_0x3d04e2(0x17d))/0xc*(parseInt(_0x3d04e2(0x170))/0xd);if(_0x17dc09===_0x29f2dd)break;else _0x18657d['push'](_0x18657d['shift']());}catch(_0x5ef697){_0x18657d['push'](_0x18657d['shift']());}}}(_0x38d5,0xebad4));import{Command as _0x260440}from'ckeditor5/src/core.js';function _0x38d5(){const _0x48949d=['custom','36VTHnIp','isEnabled','add','requiresContent','execute','hasContent','getFirstRange','24572xMwSZu','element','get','10763284IfomNO','4995880czHhXC','refresh','selection','286rDCClX','document','1535vRSIWS','getItems','change:_hasContext','set','ai.assistant.disabledElements','editor','enabledCommandsIds','1563OXIaRO','length','showUI','getRanges','34dKbtim','_commandDefinitions','config','getSelectedBlocks','includes','9EGkBFM','446450LHNkKR','4809779yAxNew','isCollapsed','plugins','isEmpty','6EjoYUG','model','_hasContext','from','change:isEnabled','name','1502498zVCPQc','values'];_0x38d5=function(){return _0x48949d;};return _0x38d5();}import{AIAssistantUI as _0x1d63ec}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x260440{[_0x57a494(0x16a)];constructor(_0x3a09e3,_0x4eaad4){const _0x208873=_0x57a494;super(_0x3a09e3),this[_0x208873(0x16a)]=_0x4eaad4,this[_0x208873(0x161)](_0x208873(0x164),[]),this['on'](_0x208873(0x160),(_0x277ffb,_0x36ec95,_0x1ee973)=>{const _0x38e429=_0x208873;this[_0x38e429(0x17e)]&&(this[_0x38e429(0x164)]=ns(this[_0x38e429(0x16a)],_0x1ee973));}),this[_0x208873(0x161)](_0x208873(0x176),!0x1),this['on'](_0x208873(0x178),(_0x3d72d8,_0x2e8aaa,_0x4dc7a9)=>{const _0x5cee93=_0x208873;this[_0x5cee93(0x164)]=_0x4dc7a9?ns(this[_0x5cee93(0x16a)],this[_0x5cee93(0x176)]):[];});}[_0x57a494(0x15a)](){const _0x454bad=_0x57a494,_0x2424b3=this[_0x454bad(0x163)][_0x454bad(0x175)];this[_0x454bad(0x176)]=function(_0x4f5eac){const _0x42ace3=_0x454bad,_0x19c44b=_0x4f5eac[_0x42ace3(0x15d)][_0x42ace3(0x15b)];return _0x19c44b[_0x42ace3(0x171)]?0x0!==[..._0x19c44b[_0x42ace3(0x16c)]()][_0x42ace3(0x166)]&&![..._0x19c44b[_0x42ace3(0x16c)]()][0x0][_0x42ace3(0x173)]:!!_0x4f5eac[_0x42ace3(0x182)](_0x19c44b[_0x42ace3(0x183)]());}(_0x2424b3);const _0x11ced3=_0x2424b3[_0x454bad(0x15d)][_0x454bad(0x15b)],_0x4e205e=this[_0x454bad(0x163)][_0x454bad(0x16b)][_0x454bad(0x186)](_0x454bad(0x162));for(const _0x3e34b2 of _0x11ced3[_0x454bad(0x168)]())for(const _0x58c5ba of _0x3e34b2[_0x454bad(0x15f)]())if(_0x58c5ba['is'](_0x454bad(0x185))&&_0x4e205e[_0x454bad(0x16d)](_0x58c5ba[_0x454bad(0x179)]))return void(this[_0x454bad(0x17e)]=!0x1);this[_0x454bad(0x17e)]=!0x0;}[_0x57a494(0x181)](_0x313119='',_0x5ebb40='',_0x99b9b4=_0x57a494(0x17c)){const _0x37e386=_0x57a494;this[_0x37e386(0x163)][_0x37e386(0x172)][_0x37e386(0x186)](_0x1d63ec)[_0x37e386(0x167)](_0x313119,_0x5ebb40,_0x99b9b4);}}function ns(_0x5e933e,_0x5ca2c9){const _0x1d6a01=_0x57a494,_0x461156=new Set();for(const _0x58cfcf of _0x5e933e[_0x1d6a01(0x17b)]())(_0x5ca2c9||!0x1===_0x58cfcf[_0x1d6a01(0x180)])&&_0x461156[_0x1d6a01(0x17f)](_0x58cfcf['id']);return Array[_0x1d6a01(0x177)](_0x461156);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ export function getTranslation(_0x180664,_0x425a53,_0x4e1575){const t=_0x180664['t'];switch(_0x425a53){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',_0x4e1575);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4e1575);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'},_0x4e1575);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 _0x425a53;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x4f46f8,_0x47039b){const _0x1079e2=(0x0,_0x47039b['t'])('Other');return _0x4f46f8['length']?'groupId'in _0x4f46f8[0x0]?_0x4f46f8:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1079e2,'order':0x1/0x0,'commands':_0x4f46f8}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x1079e2,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x425afe=_0x24dc;(function(_0x4b40ec,_0x220452){const _0x1165db=_0x24dc,_0x4ec043=_0x4b40ec();while(!![]){try{const _0x1a5bb2=-parseInt(_0x1165db(0xb9))/0x1+parseInt(_0x1165db(0xcb))/0x2*(-parseInt(_0x1165db(0xa7))/0x3)+parseInt(_0x1165db(0xaf))/0x4+-parseInt(_0x1165db(0xa1))/0x5+parseInt(_0x1165db(0xa0))/0x6+parseInt(_0x1165db(0xd4))/0x7+parseInt(_0x1165db(0xa5))/0x8;if(_0x1a5bb2===_0x220452)break;else _0x4ec043['push'](_0x4ec043['shift']());}catch(_0x4c87ba){_0x4ec043['push'](_0x4ec043['shift']());}}}(_0xadfc,0xb97d7));import{ContextPlugin as _0x56be98}from'ckeditor5/src/core.js';import{AIConnector as _0x5be4e6}from'../aicore/aiconnector.js';import{AIEditing as _0x5894df}from'../aicore/aiediting.js';function _0xadfc(){const _0x528eb7=['index','icon','2nbVNqJ','open','get','model','length','showRotator','fire','pluginName','_showDialog','6842563KiHlsS','top','isOfficialPlugin','Dialog','requires','hide','show','plugins','\x20ai-balloon-rotator','getBoundingClientRect','getMarkersGroup','commands','left','_calculateOptimalTopPosition','878274CcFxQl','140975hkNnXL','dialogClosed','ai-selection','width','3655360bstzEd','aiBalloon','4352619WrglOd','close','isTrackChangesOn','locale','bind','_config','height','value','5224332StRbwk','AIEditing','_setupVisualSelection','isPremiumPlugin','ranges','AIBalloon','hideFakeVisualSelection','round','isOpen','ai-balloon-selection','648056ybstZY','context','config','ai-balloon-','setupRotator','editing','markers','balloonView','ai.availableReplyActions','_calculateDialogPosition','ai-balloon','trackChanges','innerHeight','showFakeVisualSelection','delegate','title'];_0xadfc=function(){return _0x528eb7;};return _0xadfc();}function _0x24dc(_0x57f674,_0x439f56){const _0xadfc37=_0xadfc();return _0x24dc=function(_0x24dcf0,_0x49e095){_0x24dcf0=_0x24dcf0-0x9e;let _0x1955ec=_0xadfc37[_0x24dcf0];return _0x1955ec;},_0x24dc(_0x57f674,_0x439f56);}import{AI_BALLOON_VIEW_EVENT_NAMES as _0xfbdde7,AIBalloonView as _0x2166f0}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0xa18fff}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x415d71}from'../aicore/utils/geteditorfromcontext.js';import{ACTIONS as _0x1ba587}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export const AI_BALLOON_EVENT_NAMES=[..._0xfbdde7,_0x425afe(0xa2)];export class AIBalloon extends _0x56be98{static get[_0x425afe(0xd8)](){return[_0x5be4e6,_0x5894df];}static get[_0x425afe(0xd2)](){const _0x57bb37=_0x425afe;return _0x57bb37(0xb4);}static get[_0x425afe(0xd6)](){return!0x0;}static get[_0x425afe(0xb2)](){return!0x0;}[_0x425afe(0xb7)]=!0x1;[_0x425afe(0xac)];[_0x425afe(0xcc)](_0x14e077){const _0x3cc451=_0x425afe,_0x43bf31=_0x415d71(this[_0x3cc451(0xba)]);this[_0x3cc451(0xac)]=_0x14e077;const _0x2264ee=this[_0x3cc451(0xba)][_0x3cc451(0xbb)][_0x3cc451(0xcd)](_0x3cc451(0xc1))||[..._0x1ba587],_0x52d512=_0x43bf31?.[_0x3cc451(0xdf)][_0x3cc451(0xcd)](_0x3cc451(0xc4)),_0x45d876=_0x52d512?.[_0x3cc451(0xae)];this[_0x3cc451(0xc0)]=new _0x2166f0(_0x43bf31[_0x3cc451(0xaa)],_0x14e077,_0x2264ee,!!_0x45d876),this[_0x3cc451(0xc0)][_0x3cc451(0xc7)](..._0xfbdde7)['to'](this),_0x52d512&&this[_0x3cc451(0xc0)][_0x3cc451(0xab)](_0x3cc451(0xa9))['to'](_0x52d512,_0x3cc451(0xae)),this[_0x3cc451(0xd3)](_0x14e077);}[_0x425afe(0xa8)](){const _0x113d69=_0x425afe;_0x415d71(this[_0x113d69(0xba)])[_0x113d69(0xdb)][_0x113d69(0xcd)](_0x113d69(0xd7))[_0x113d69(0xd9)]();}[_0x425afe(0xb1)](_0x5f1b63,_0x33bb5f){const _0x2eff00=_0x425afe;this[_0x2eff00(0xba)][_0x2eff00(0xdb)][_0x2eff00(0xcd)](_0x5894df)[_0x2eff00(0xc6)](_0x5f1b63,_0x2eff00(0xbc)+_0x33bb5f,!0x0,!0x0);}[_0x425afe(0xd3)](_0x500959){const _0x1474dc=_0x425afe,_0x27208b=_0x415d71(this[_0x1474dc(0xba)]);this[_0x1474dc(0xb1)](_0x500959[_0x1474dc(0xb3)],_0x500959[_0x1474dc(0xc9)]),_0x27208b[_0x1474dc(0xdb)][_0x1474dc(0xcd)](_0x1474dc(0xd7))[_0x1474dc(0xda)]({'title':_0x500959[_0x1474dc(0xc8)],'icon':_0x500959[_0x1474dc(0xca)],'hasCloseButton':!0x0,'id':_0x1474dc(0xa6),'position':this[_0x1474dc(0xc2)][_0x1474dc(0xab)](this),'className':_0x1474dc(0xc3)+(_0x500959[_0x1474dc(0xd0)]?_0x1474dc(0xdc):''),'content':this[_0x1474dc(0xc0)],'onShow':_0x42c6e0=>{const _0x48bff7=_0x1474dc;_0x500959[_0x48bff7(0xd0)]&&this[_0x48bff7(0xc0)][_0x48bff7(0xbd)](_0x42c6e0),this[_0x48bff7(0xb7)]=!0x0;},'onHide':()=>{const _0x44670f=_0x1474dc;this[_0x44670f(0xba)][_0x44670f(0xdb)][_0x44670f(0xcd)](_0x44670f(0xb0))[_0x44670f(0xb5)](_0x44670f(0xbc)+_0x500959[_0x44670f(0xc9)]),this[_0x44670f(0xd1)](_0x44670f(0xa2)),this[_0x44670f(0xb7)]=!0x1;}});}[_0x425afe(0xc2)](_0x2f8022,_0x4985cd){const _0x4adf34=_0x425afe,_0x164f25=_0x415d71(this[_0x4adf34(0xba)]);if(!_0x4985cd)return null;const _0x5b4aae=_0xa18fff(_0x164f25[_0x4adf34(0xbe)],[..._0x164f25[_0x4adf34(0xce)][_0x4adf34(0xbf)][_0x4adf34(0xde)](_0x4adf34(0xa3)),..._0x164f25[_0x4adf34(0xce)][_0x4adf34(0xbf)][_0x4adf34(0xde)](_0x4adf34(0xb8))]);if(!_0x5b4aae||0x0===_0x5b4aae[_0x4adf34(0xcf)])return{'left':Math[_0x4adf34(0xb6)](_0x4985cd[_0x4adf34(0x9e)]+_0x4985cd[_0x4adf34(0xa4)]/0x2-_0x2f8022[_0x4adf34(0xa4)]/0x2),'top':Math[_0x4adf34(0xb6)](_0x4985cd[_0x4adf34(0xd5)]+_0x4985cd[_0x4adf34(0xad)]/0x2-_0x2f8022[_0x4adf34(0xad)]/0x2)};const _0xef0e49=Math[_0x4adf34(0xb6)](_0x4985cd[_0x4adf34(0x9e)]+_0x4985cd[_0x4adf34(0xa4)]/0x2-_0x2f8022[_0x4adf34(0xa4)]/0x2),_0x133307=_0x5b4aae[0x0][_0x4adf34(0xdd)](),_0x1a12e1=_0x5b4aae[_0x5b4aae[_0x4adf34(0xcf)]-0x1][_0x4adf34(0xdd)](),_0xe650e8=_0x2f8022[_0x4adf34(0xad)],_0xb00a1e=this[_0x4adf34(0xac)][_0x4adf34(0xd0)]?0x8:0x0;return{'left':_0xef0e49,'top':this[_0x4adf34(0x9f)](_0x133307,_0x1a12e1,_0xe650e8,_0xb00a1e)};}[_0x425afe(0x9f)](_0x55523a,_0x2bdc6c,_0x13c9f9,_0x3dce8=0x0){const _0x120282=_0x425afe,_0xc0e88=_0x2bdc6c[_0x120282(0xd5)]+_0x2bdc6c[_0x120282(0xad)],_0x5f4210=_0x55523a[_0x120282(0xd5)]-_0x13c9f9-_0x3dce8,_0x4ec8cf=window[_0x120282(0xc5)]-_0xc0e88-0xa,_0x4180a6=_0x55523a[_0x120282(0xd5)]-_0x3dce8-0xa;let _0x59ad65;if(_0x4ec8cf>=_0x13c9f9)_0x59ad65=_0xc0e88+0xa;else{if(_0x4180a6>=_0x13c9f9)_0x59ad65=_0x5f4210-0xa;else _0x59ad65=_0x55523a[_0x120282(0xd5)]+(_0x2bdc6c[_0x120282(0xd5)]+_0x2bdc6c[_0x120282(0xad)])/0x2-(_0x13c9f9+_0x3dce8)/0x2;}return _0x59ad65;}}
23
+ const _0x54cc2e=_0x3af7;(function(_0x11c55a,_0x4ecb5e){const _0x331747=_0x3af7,_0x238fdc=_0x11c55a();while(!![]){try{const _0x36aab3=parseInt(_0x331747(0x1a9))/0x1+parseInt(_0x331747(0x1b3))/0x2+parseInt(_0x331747(0x197))/0x3+-parseInt(_0x331747(0x1b8))/0x4+-parseInt(_0x331747(0x1a4))/0x5+parseInt(_0x331747(0x192))/0x6+parseInt(_0x331747(0x1c2))/0x7*(parseInt(_0x331747(0x1c6))/0x8);if(_0x36aab3===_0x4ecb5e)break;else _0x238fdc['push'](_0x238fdc['shift']());}catch(_0x4c3d22){_0x238fdc['push'](_0x238fdc['shift']());}}}(_0x38a4,0xc1c38));import{ContextPlugin as _0x1eef6c}from'ckeditor5/src/core.js';import{AIConnector as _0x4b8ea8}from'../aicore/aiconnector.js';import{AIEditing as _0x1d8cc7}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x8bcbe7,AIBalloonView as _0x25e9cb}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5334c3}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x3fe23f}from'../aicore/utils/geteditorfromcontext.js';import{ACTIONS as _0x18e9bf}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x3af7(_0x147448,_0x3d9bcc){const _0x38a4b1=_0x38a4();return _0x3af7=function(_0x3af703,_0x2709ff){_0x3af703=_0x3af703-0x18f;let _0x3dcce2=_0x38a4b1[_0x3af703];return _0x3dcce2;},_0x3af7(_0x147448,_0x3d9bcc);}export const AI_BALLOON_EVENT_NAMES=[..._0x8bcbe7,_0x54cc2e(0x198)];function _0x38a4(){const _0x152bb0=['_config','trackChanges','1027142VOWyqk','icon','model','round','config','2214372iGYBfT','isPremiumPlugin','getBoundingClientRect','_calculateDialogPosition','get','bind','open','\x20ai-balloon-rotator','fire','_calculateOptimalTopPosition','315NQefSF','AIBalloon','setupRotator','innerHeight','11928TfMoAr','close','locale','ai-selection','left','ai-balloon','showRotator','_setupVisualSelection','editing','width','markers','plugins','getMarkersGroup','AIEditing','2155290OOjxzR','hide','isTrackChangesOn','ai-balloon-selection','delegate','1360179pIRImP','dialogClosed','balloonView','hideFakeVisualSelection','aiBalloon','context','Dialog','_showDialog','ai.availableReplyActions','index','length','show','requires','2146095auamNP','height','isOfficialPlugin','ai-balloon-','showFakeVisualSelection','383194ZYYinp','commands','ranges','top','title','pluginName','value','isOpen'];_0x38a4=function(){return _0x152bb0;};return _0x38a4();}export class AIBalloon extends _0x1eef6c{static get[_0x54cc2e(0x1a3)](){return[_0x4b8ea8,_0x1d8cc7];}static get[_0x54cc2e(0x1ae)](){const _0x4cc4b9=_0x54cc2e;return _0x4cc4b9(0x1c3);}static get[_0x54cc2e(0x1a6)](){return!0x0;}static get[_0x54cc2e(0x1b9)](){return!0x0;}[_0x54cc2e(0x1b0)]=!0x1;[_0x54cc2e(0x1b1)];[_0x54cc2e(0x1be)](_0x1e7b18){const _0x4ee915=_0x54cc2e,_0xb5528e=_0x3fe23f(this[_0x4ee915(0x19c)]);this[_0x4ee915(0x1b1)]=_0x1e7b18;const _0x4cfebc=this[_0x4ee915(0x19c)][_0x4ee915(0x1b7)][_0x4ee915(0x1bc)](_0x4ee915(0x19f))||[..._0x18e9bf],_0x4fc7e8=_0xb5528e?.[_0x4ee915(0x1aa)][_0x4ee915(0x1bc)](_0x4ee915(0x1b2)),_0x229fa6=_0x4fc7e8?.[_0x4ee915(0x1af)];this[_0x4ee915(0x199)]=new _0x25e9cb(_0xb5528e[_0x4ee915(0x1c8)],_0x1e7b18,_0x4cfebc,!!_0x229fa6),this[_0x4ee915(0x199)][_0x4ee915(0x196)](..._0x8bcbe7)['to'](this),_0x4fc7e8&&this[_0x4ee915(0x199)][_0x4ee915(0x1bd)](_0x4ee915(0x194))['to'](_0x4fc7e8,_0x4ee915(0x1af)),this[_0x4ee915(0x19e)](_0x1e7b18);}[_0x54cc2e(0x1c7)](){const _0x1fccf9=_0x54cc2e;_0x3fe23f(this[_0x1fccf9(0x19c)])[_0x1fccf9(0x18f)][_0x1fccf9(0x1bc)](_0x1fccf9(0x19d))[_0x1fccf9(0x193)]();}[_0x54cc2e(0x1cd)](_0xfe4e,_0x334102){const _0x344046=_0x54cc2e;this[_0x344046(0x19c)][_0x344046(0x18f)][_0x344046(0x1bc)](_0x1d8cc7)[_0x344046(0x1a8)](_0xfe4e,_0x344046(0x1a7)+_0x334102,!0x0,!0x0);}[_0x54cc2e(0x19e)](_0x311fe8){const _0x5cc576=_0x54cc2e,_0x1154f4=_0x3fe23f(this[_0x5cc576(0x19c)]);this[_0x5cc576(0x1cd)](_0x311fe8[_0x5cc576(0x1ab)],_0x311fe8[_0x5cc576(0x1a0)]),_0x1154f4[_0x5cc576(0x18f)][_0x5cc576(0x1bc)](_0x5cc576(0x19d))[_0x5cc576(0x1a2)]({'title':_0x311fe8[_0x5cc576(0x1ad)],'icon':_0x311fe8[_0x5cc576(0x1b4)],'hasCloseButton':!0x0,'id':_0x5cc576(0x19b),'position':this[_0x5cc576(0x1bb)][_0x5cc576(0x1bd)](this),'className':_0x5cc576(0x1cb)+(_0x311fe8[_0x5cc576(0x1cc)]?_0x5cc576(0x1bf):''),'content':this[_0x5cc576(0x199)],'onShow':_0x3e05be=>{const _0x2a6665=_0x5cc576;_0x311fe8[_0x2a6665(0x1cc)]&&this[_0x2a6665(0x199)][_0x2a6665(0x1c4)](_0x3e05be),this[_0x2a6665(0x1b0)]=!0x0;},'onHide':()=>{const _0x3fa792=_0x5cc576;this[_0x3fa792(0x19c)][_0x3fa792(0x18f)][_0x3fa792(0x1bc)](_0x3fa792(0x191))[_0x3fa792(0x19a)](_0x3fa792(0x1a7)+_0x311fe8[_0x3fa792(0x1a0)]),this[_0x3fa792(0x1c0)](_0x3fa792(0x198)),this[_0x3fa792(0x1b0)]=!0x1;}});}[_0x54cc2e(0x1bb)](_0x5216cb,_0x4270a0){const _0x423d8e=_0x54cc2e,_0x24567c=_0x3fe23f(this[_0x423d8e(0x19c)]);if(!_0x4270a0)return null;const _0x3c8774=_0x5334c3(_0x24567c[_0x423d8e(0x1ce)],[..._0x24567c[_0x423d8e(0x1b5)][_0x423d8e(0x1d0)][_0x423d8e(0x190)](_0x423d8e(0x1c9)),..._0x24567c[_0x423d8e(0x1b5)][_0x423d8e(0x1d0)][_0x423d8e(0x190)](_0x423d8e(0x195))]);if(!_0x3c8774||0x0===_0x3c8774[_0x423d8e(0x1a1)])return{'left':Math[_0x423d8e(0x1b6)](_0x4270a0[_0x423d8e(0x1ca)]+_0x4270a0[_0x423d8e(0x1cf)]/0x2-_0x5216cb[_0x423d8e(0x1cf)]/0x2),'top':Math[_0x423d8e(0x1b6)](_0x4270a0[_0x423d8e(0x1ac)]+_0x4270a0[_0x423d8e(0x1a5)]/0x2-_0x5216cb[_0x423d8e(0x1a5)]/0x2)};const _0x409c32=Math[_0x423d8e(0x1b6)](_0x4270a0[_0x423d8e(0x1ca)]+_0x4270a0[_0x423d8e(0x1cf)]/0x2-_0x5216cb[_0x423d8e(0x1cf)]/0x2),_0x1e36e3=_0x3c8774[0x0][_0x423d8e(0x1ba)](),_0x1b00cf=_0x3c8774[_0x3c8774[_0x423d8e(0x1a1)]-0x1][_0x423d8e(0x1ba)](),_0x43122a=_0x5216cb[_0x423d8e(0x1a5)],_0x589ef2=this[_0x423d8e(0x1b1)][_0x423d8e(0x1cc)]?0x8:0x0;return{'left':_0x409c32,'top':this[_0x423d8e(0x1c1)](_0x1e36e3,_0x1b00cf,_0x43122a,_0x589ef2)};}[_0x54cc2e(0x1c1)](_0x113d0e,_0x43f160,_0xc256bb,_0x1950ff=0x0){const _0x1e647d=_0x54cc2e,_0x28befc=_0x43f160[_0x1e647d(0x1ac)]+_0x43f160[_0x1e647d(0x1a5)],_0x438a2b=_0x113d0e[_0x1e647d(0x1ac)]-_0xc256bb-_0x1950ff,_0x18e2c0=window[_0x1e647d(0x1c5)]-_0x28befc-0xa,_0x331568=_0x113d0e[_0x1e647d(0x1ac)]-_0x1950ff-0xa;let _0x2cd0ff;if(_0x18e2c0>=_0xc256bb)_0x2cd0ff=_0x28befc+0xa;else{if(_0x331568>=_0xc256bb)_0x2cd0ff=_0x438a2b-0xa;else _0x2cd0ff=_0x113d0e[_0x1e647d(0x1ac)]+(_0x43f160[_0x1e647d(0x1ac)]+_0x43f160[_0x1e647d(0x1a5)])/0x2-(_0xc256bb+_0x1950ff)/0x2;}return _0x2cd0ff;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4bf8(_0xf2af6c,_0x4e43e3){var _0xd1c768=_0xd1c7();return _0x4bf8=function(_0x4bf848,_0x288403){_0x4bf848=_0x4bf848-0xe5;var _0x3e62cf=_0xd1c768[_0x4bf848];return _0x3e62cf;},_0x4bf8(_0xf2af6c,_0x4e43e3);}(function(_0x116de9,_0x3157a0){var _0x3ae1b9=_0x4bf8,_0x2dc085=_0x116de9();while(!![]){try{var _0x52906a=parseInt(_0x3ae1b9(0xec))/0x1*(parseInt(_0x3ae1b9(0xf0))/0x2)+parseInt(_0x3ae1b9(0xe7))/0x3*(-parseInt(_0x3ae1b9(0xed))/0x4)+-parseInt(_0x3ae1b9(0xe9))/0x5+-parseInt(_0x3ae1b9(0xef))/0x6+-parseInt(_0x3ae1b9(0xe6))/0x7*(parseInt(_0x3ae1b9(0xf3))/0x8)+-parseInt(_0x3ae1b9(0xe5))/0x9+parseInt(_0x3ae1b9(0xea))/0xa;if(_0x52906a===_0x3157a0)break;else _0x2dc085['push'](_0x2dc085['shift']());}catch(_0x59698f){_0x2dc085['push'](_0x2dc085['shift']());}}}(_0xd1c7,0xc4d37));function _0xd1c7(){var _0x369ad9=['8eadeLr','ck-ai-balloon__disclaimer-content','8012154LeMHVd','2sGMTCi','div','ck-ai-balloon__disclaimer','8pprosP','5071734yqBoEa','10150091IQIrNY','1347wPmgWI','setTemplate','6248865MDmdrl','48047990AljBkX','AI_DISCLAIMER_TEXT','600969nqffDM'];_0xd1c7=function(){return _0x369ad9;};return _0xd1c7();}import{View as _0x201ab9}from'ckeditor5/src/ui.js';import{getTranslation as _0x20156e}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x201ab9{constructor(_0x41641d){var _0x855286=_0x4bf8;super(_0x41641d),this[_0x855286(0xe8)]({'tag':_0x855286(0xf1),'attributes':{'class':['ck',_0x855286(0xf2)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x855286(0xee)]},'children':[{'text':_0x20156e(_0x41641d,_0x855286(0xeb))}]}]});}}
23
+ function _0x58d0(_0x29c30c,_0x3df007){var _0x5c2b01=_0x5c2b();return _0x58d0=function(_0x58d004,_0x2f4979){_0x58d004=_0x58d004-0x165;var _0x467bfb=_0x5c2b01[_0x58d004];return _0x467bfb;},_0x58d0(_0x29c30c,_0x3df007);}(function(_0x3546c3,_0x2b3185){var _0x4a0044=_0x58d0,_0x986e2f=_0x3546c3();while(!![]){try{var _0x1acd9d=parseInt(_0x4a0044(0x167))/0x1*(-parseInt(_0x4a0044(0x168))/0x2)+-parseInt(_0x4a0044(0x16a))/0x3+-parseInt(_0x4a0044(0x172))/0x4*(parseInt(_0x4a0044(0x174))/0x5)+-parseInt(_0x4a0044(0x166))/0x6+-parseInt(_0x4a0044(0x16f))/0x7*(-parseInt(_0x4a0044(0x165))/0x8)+parseInt(_0x4a0044(0x173))/0x9+parseInt(_0x4a0044(0x169))/0xa*(parseInt(_0x4a0044(0x170))/0xb);if(_0x1acd9d===_0x2b3185)break;else _0x986e2f['push'](_0x986e2f['shift']());}catch(_0x2b0949){_0x986e2f['push'](_0x986e2f['shift']());}}}(_0x5c2b,0x76875));import{View as _0x24428b}from'ckeditor5/src/ui.js';import{getTranslation as _0x5c4b47}from'../../aicore/utils/common-translations.js';function _0x5c2b(){var _0x5cfc58=['865728csyJVv','15445uMSRcx','400xQASAQ','176124AwcIdJ','4217oixpOg','26sYgROB','10tpUvAy','282906ZkbkiT','ck-ai-balloon__disclaimer-content','AI_DISCLAIMER_TEXT','setTemplate','ck-ai-balloon__disclaimer','121058dWsmMg','3563637RvsYxw','div','804eXdSlP'];_0x5c2b=function(){return _0x5cfc58;};return _0x5c2b();}export class AIBalloonDisclaimerView extends _0x24428b{constructor(_0x1c7903){var _0x471fed=_0x58d0;super(_0x1c7903),this[_0x471fed(0x16d)]({'tag':_0x471fed(0x171),'attributes':{'class':['ck',_0x471fed(0x16e)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x471fed(0x16b)]},'children':[{'text':_0x5c4b47(_0x1c7903,_0x471fed(0x16c))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12f4bd=_0x1cf2;(function(_0x22414d,_0x41f369){const _0x1c97cd=_0x1cf2,_0x568ca6=_0x22414d();while(!![]){try{const _0x434e35=parseInt(_0x1c97cd(0x148))/0x1+-parseInt(_0x1c97cd(0x15a))/0x2*(-parseInt(_0x1c97cd(0x158))/0x3)+-parseInt(_0x1c97cd(0x153))/0x4+parseInt(_0x1c97cd(0x14b))/0x5*(parseInt(_0x1c97cd(0x161))/0x6)+parseInt(_0x1c97cd(0x15d))/0x7*(-parseInt(_0x1c97cd(0x14d))/0x8)+-parseInt(_0x1c97cd(0x149))/0x9+parseInt(_0x1c97cd(0x15b))/0xa;if(_0x434e35===_0x41f369)break;else _0x568ca6['push'](_0x568ca6['shift']());}catch(_0x2a07cf){_0x568ca6['push'](_0x568ca6['shift']());}}}(_0x4f62,0x2928a));import{ToolbarView as _0x3268b6,ButtonView as _0x385ae6}from'ckeditor5/src/ui.js';import{getTranslation as _0x4fbd84}from'../../aicore/utils/common-translations.js';function _0x4f62(){const _0x316db6=['set','8560GEfRPK','extendTemplate','8LqeRSm','add','_createButton','ck-ai-balloon__toolbar','applyButton','suggestButton','123052khbTMz','items','locale','isEnabled','ck-ai-button-secondary','87IpjglD','AI_BALLOON_APPLY_BUTTON','550zNIAmA','784180CgtHPC','isLoading','393659vrdPZS','ck-ai-button-primary','AI_BALLOON_SUGGEST_BUTTON','bind','894kxpxCh','139756MmUSuV','2030859zyZnro'];_0x4f62=function(){return _0x316db6;};return _0x4f62();}function _0x1cf2(_0x13a7b7,_0x1029a6){const _0x4f62c1=_0x4f62();return _0x1cf2=function(_0x1cf2be,_0x55cbb8){_0x1cf2be=_0x1cf2be-0x148;let _0x3b6578=_0x4f62c1[_0x1cf2be];return _0x3b6578;},_0x1cf2(_0x13a7b7,_0x1029a6);}export class AIBalloonToolbarView extends _0x3268b6{constructor(_0x5be119,_0x46a7e0=!0x0,_0x5e910b=!0x0){const _0x344b98=_0x1cf2;super(_0x5be119),this[_0x344b98(0x14a)](_0x344b98(0x15c),!0x1),_0x46a7e0&&(this[_0x344b98(0x151)]=this[_0x344b98(0x14f)](_0x4fbd84(_0x5be119,_0x344b98(0x159)),_0x344b98(0x15e)),this[_0x344b98(0x151)][_0x344b98(0x160)](_0x344b98(0x156))['to'](this,_0x344b98(0x15c),_0x9434f4=>!_0x9434f4),this[_0x344b98(0x154)][_0x344b98(0x14e)](this[_0x344b98(0x151)])),_0x5e910b&&(this[_0x344b98(0x152)]=this[_0x344b98(0x14f)](_0x4fbd84(_0x5be119,_0x344b98(0x15f)),_0x46a7e0?_0x344b98(0x157):_0x344b98(0x15e)),this[_0x344b98(0x152)][_0x344b98(0x160)](_0x344b98(0x156))['to'](this,_0x344b98(0x15c),_0x4b213=>!_0x4b213),this[_0x344b98(0x154)][_0x344b98(0x14e)](this[_0x344b98(0x152)])),this[_0x344b98(0x14c)]({'attributes':{'class':[_0x344b98(0x150)]}});}[_0x12f4bd(0x14f)](_0xc673c5,_0x57db7d){const _0x366f97=_0x12f4bd,_0x2dd4a6=new _0x385ae6(this[_0x366f97(0x155)]);return _0x2dd4a6[_0x366f97(0x14a)]({'label':_0xc673c5,'class':_0x57db7d||'','isVisible':!0x0,'withText':!0x0}),_0x2dd4a6;}}
23
+ const _0xd179b4=_0x3551;(function(_0x942655,_0x1ce496){const _0x21b93b=_0x3551,_0x1052b7=_0x942655();while(!![]){try{const _0x2a007d=parseInt(_0x21b93b(0xed))/0x1*(parseInt(_0x21b93b(0xfc))/0x2)+parseInt(_0x21b93b(0xf4))/0x3+parseInt(_0x21b93b(0xfb))/0x4*(parseInt(_0x21b93b(0xef))/0x5)+parseInt(_0x21b93b(0x102))/0x6+-parseInt(_0x21b93b(0xee))/0x7+-parseInt(_0x21b93b(0xfa))/0x8+parseInt(_0x21b93b(0x100))/0x9;if(_0x2a007d===_0x1ce496)break;else _0x1052b7['push'](_0x1052b7['shift']());}catch(_0x3364b2){_0x1052b7['push'](_0x1052b7['shift']());}}}(_0x16f3,0x87d68));import{ToolbarView as _0x2744cc,ButtonView as _0x1c9ee5}from'ckeditor5/src/ui.js';import{getTranslation as _0x589433}from'../../aicore/utils/common-translations.js';function _0x3551(_0x31f9e6,_0x2c7040){const _0x16f379=_0x16f3();return _0x3551=function(_0x355130,_0x57f1ec){_0x355130=_0x355130-0xeb;let _0x5773dc=_0x16f379[_0x355130];return _0x5773dc;},_0x3551(_0x31f9e6,_0x2c7040);}export class AIBalloonToolbarView extends _0x2744cc{constructor(_0x539378,_0x3e99de=!0x0,_0x3856ca=!0x0){const _0x398a05=_0x3551;super(_0x539378),this[_0x398a05(0xf8)](_0x398a05(0xec),!0x1),_0x3e99de&&(this[_0x398a05(0x103)]=this[_0x398a05(0xf5)](_0x589433(_0x539378,_0x398a05(0xf0)),_0x398a05(0xf9)),this[_0x398a05(0x103)][_0x398a05(0xfd)](_0x398a05(0x101))['to'](this,_0x398a05(0xec),_0x228c70=>!_0x228c70),this[_0x398a05(0xeb)][_0x398a05(0xf1)](this[_0x398a05(0x103)])),_0x3856ca&&(this[_0x398a05(0xf7)]=this[_0x398a05(0xf5)](_0x589433(_0x539378,_0x398a05(0xff)),_0x3e99de?_0x398a05(0xf3):_0x398a05(0xf9)),this[_0x398a05(0xf7)][_0x398a05(0xfd)](_0x398a05(0x101))['to'](this,_0x398a05(0xec),_0x409171=>!_0x409171),this[_0x398a05(0xeb)][_0x398a05(0xf1)](this[_0x398a05(0xf7)])),this[_0x398a05(0xf6)]({'attributes':{'class':[_0x398a05(0xf2)]}});}[_0xd179b4(0xf5)](_0x362cdb,_0x393196){const _0x5d2cee=_0xd179b4,_0x1e60a0=new _0x1c9ee5(this[_0x5d2cee(0xfe)]);return _0x1e60a0[_0x5d2cee(0xf8)]({'label':_0x362cdb,'class':_0x393196||'','isVisible':!0x0,'withText':!0x0}),_0x1e60a0;}}function _0x16f3(){const _0x2b6d95=['6396880dKPmzh','16maLcdj','13322EroqTg','bind','locale','AI_BALLOON_SUGGEST_BUTTON','3111777bXBxBd','isEnabled','2851704AwoGQR','applyButton','items','isLoading','85jkBWkC','7348530YYmKlz','944215HGEswJ','AI_BALLOON_APPLY_BUTTON','add','ck-ai-balloon__toolbar','ck-ai-button-secondary','789594UDpvBs','_createButton','extendTemplate','suggestButton','set','ck-ai-button-primary'];_0x16f3=function(){return _0x2b6d95;};return _0x16f3();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d2658=_0x2d24;function _0x4a27(){const _0x27eede=['createCollection','_addToolbar','disclaimerView','listenTo','addMany','focus','div','_focusables','setLoading','2BnNmhP','toolbar','suggestButton','includes','applyButton','_addContentView','isLoading','_createNextButtonView','insertSuggestion','1702672kEDzCu','focusLast','children','applySuggestion','487392CGzuNi','5416726ynPUxN','set','shift\x20+\x20tab','15218199WquosI','clearLoading','change:isTrackChangesOn','_dropdownConfig','view','372780Kmgeid','headerView','showNext','setTemplate','AI_BALLOON_NEXT_TOOLTIP','showSuggestButton','showPrevious','setupRotator','clear','tab','showApplyButton','583900hpTlRK','focusTracker','_createPreviousButtonView','_mainView','isTrackChangesOn','_dialogContent','remove','focusFirst','5HjuMJU','_addDisclaimerView','execute','add','render','focusCycler','ai-balloon-content','fire','element','locale','113914jdZjAW','bind','AI_BALLOON_PREVIOUS_TOOLTIP','mainView','keystrokes'];_0x4a27=function(){return _0x27eede;};return _0x4a27();}(function(_0x1e9986,_0x422708){const _0x45e2cc=_0x2d24,_0x283a25=_0x1e9986();while(!![]){try{const _0x3599b6=-parseInt(_0x45e2cc(0xa3))/0x1*(parseInt(_0x45e2cc(0xb1))/0x2)+-parseInt(_0x45e2cc(0xc7))/0x3+-parseInt(_0x45e2cc(0xd2))/0x4*(parseInt(_0x45e2cc(0x99))/0x5)+parseInt(_0x45e2cc(0xbe))/0x6+-parseInt(_0x45e2cc(0xbf))/0x7+-parseInt(_0x45e2cc(0xba))/0x8+parseInt(_0x45e2cc(0xc2))/0x9;if(_0x3599b6===_0x422708)break;else _0x283a25['push'](_0x283a25['shift']());}catch(_0x56b6ed){_0x283a25['push'](_0x283a25['shift']());}}}(_0x4a27,0x61fbe));import{ButtonView as _0x292a7b,View as _0x2adb83,ViewCollection as _0x25e067,FocusCycler as _0x2e7d89}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1a251b,KeystrokeHandler as _0x36f943}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x2a77b7,IconPreviousArrow as _0x385981}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x375ff7}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x50be0e}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4ee114}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2d2658(0xbd),_0x2d2658(0xb9),_0x2d2658(0xc9),_0x2d2658(0xcd)];function _0x2d24(_0xcdd022,_0x81cd9e){const _0x4a2783=_0x4a27();return _0x2d24=function(_0x2d2460,_0x382ed8){_0x2d2460=_0x2d2460-0x95;let _0x5f5d3a=_0x4a2783[_0x2d2460];return _0x5f5d3a;},_0x2d24(_0xcdd022,_0x81cd9e);}export class AIBalloonView extends _0x2adb83{[_0x2d2658(0xd3)];[_0x2d2658(0xa7)];[_0x2d2658(0x9e)];[_0x2d2658(0xc5)];[_0x2d2658(0xaf)];constructor(_0x420aaa,_0x1dcc12,_0x2eae0a,_0x1e9a26){const _0x1e368c=_0x2d2658;super(_0x420aaa),this[_0x1e368c(0xc5)]=_0x2eae0a,this[_0x1e368c(0xc0)](_0x1e368c(0xb7),!0x1),this[_0x1e368c(0xc0)](_0x1e368c(0x95),_0x1e9a26),this[_0x1e368c(0xd3)]=new _0x1a251b(),this[_0x1e368c(0xa7)]=new _0x36f943(),this[_0x1e368c(0xaf)]=this[_0x1e368c(0xa8)](),this[_0x1e368c(0x9e)]=new _0x2e7d89({'focusables':this[_0x1e368c(0xaf)],'focusTracker':this[_0x1e368c(0xd3)],'keystrokeHandler':this[_0x1e368c(0xa7)],'actions':{'focusPrevious':_0x1e368c(0xc1),'focusNext':_0x1e368c(0xd0)}}),this[_0x1e368c(0x96)]=new _0x25e067(),this[_0x1e368c(0xb6)](_0x1dcc12[_0x1e368c(0xa6)]),this[_0x1e368c(0x9a)](),this[_0x1e368c(0xa9)](_0x1dcc12[_0x1e368c(0xd1)],_0x1dcc12[_0x1e368c(0xcc)]),this[_0x1e368c(0xb2)][_0x1e368c(0xa4)](_0x1e368c(0xb7))['to'](this),this[_0x1e368c(0xaf)][_0x1e368c(0xcf)](),this[_0x1e368c(0xaf)][_0x1e368c(0xac)]([this[_0x1e368c(0xb2)]]),this[_0x1e368c(0xca)]({'tag':_0x1e368c(0xae),'attributes':{'class':_0x1e368c(0x9f)},'children':this[_0x1e368c(0x96)]}),this[_0x1e368c(0xab)](this,_0x1e368c(0xc4),()=>{const _0x1acf81=_0x1e368c;this[_0x1acf81(0x96)][_0x1acf81(0x97)](this[_0x1acf81(0xb2)]),this[_0x1acf81(0xa9)](_0x1dcc12[_0x1acf81(0xd1)],_0x1dcc12[_0x1acf81(0xcc)]);});}[_0x2d2658(0x9d)](){const _0x444c64=_0x2d2658;super[_0x444c64(0x9d)]();for(const _0x34bc5a of this[_0x444c64(0xaf)])this[_0x444c64(0xd3)][_0x444c64(0x9c)](_0x34bc5a[_0x444c64(0xa1)]);this[_0x444c64(0xa7)][_0x444c64(0xab)](this[_0x444c64(0xa1)]);}[_0x2d2658(0xad)](_0x262956){const _0x8794a1=_0x2d2658;-0x1===_0x262956?this[_0x8794a1(0x9e)][_0x8794a1(0xbb)]():this[_0x8794a1(0x9e)][_0x8794a1(0x98)]();}[_0x2d2658(0xb0)](){const _0x28f8a2=_0x2d2658;this[_0x28f8a2(0xb7)]=!0x0;}[_0x2d2658(0xc3)](){const _0x56911b=_0x2d2658;this[_0x56911b(0xb7)]=!0x1;}[_0x2d2658(0xce)](_0x3e71fb){const _0x32de0a=_0x2d2658,_0x1f45d8=this[_0x32de0a(0xb8)](),_0xa9b381=this[_0x32de0a(0xd4)]();_0x3e71fb[_0x32de0a(0xc6)][_0x32de0a(0xc8)][_0x32de0a(0xbc)][_0x32de0a(0x9c)](_0x1f45d8,0x2),_0x3e71fb[_0x32de0a(0xc6)][_0x32de0a(0xc8)][_0x32de0a(0xbc)][_0x32de0a(0x9c)](_0xa9b381,0x0),this[_0x32de0a(0xaf)][_0x32de0a(0xac)]([_0x1f45d8,_0xa9b381]),this[_0x32de0a(0xd3)][_0x32de0a(0x9c)](_0x1f45d8[_0x32de0a(0xa1)]),this[_0x32de0a(0xd3)][_0x32de0a(0x9c)](_0xa9b381[_0x32de0a(0xa1)]);}[_0x2d2658(0xb6)](_0x11b86b){const _0x525a46=_0x2d2658;this[_0x525a46(0xd5)]=_0x11b86b,this[_0x525a46(0x96)][_0x525a46(0x9c)](this[_0x525a46(0xd5)]);}[_0x2d2658(0x9a)](){const _0x5c7fd6=_0x2d2658;this[_0x5c7fd6(0xaa)]=new _0x50be0e(this[_0x5c7fd6(0xa2)]),this[_0x5c7fd6(0x96)][_0x5c7fd6(0x9c)](this[_0x5c7fd6(0xaa)]);}[_0x2d2658(0xa9)](_0x5154ac=!0x0,_0x3502a9=!0x0){const _0x14949e=_0x2d2658;_0x5154ac=_0x5154ac&&!this[_0x14949e(0x95)]&&this[_0x14949e(0xc5)][_0x14949e(0xb4)](_0x14949e(0xbd)),_0x3502a9=_0x3502a9&&this[_0x14949e(0xc5)][_0x14949e(0xb4)](_0x14949e(0xb9)),this[_0x14949e(0xb2)]=new _0x375ff7(this[_0x14949e(0xa2)],_0x5154ac,_0x3502a9),this[_0x14949e(0xb2)][_0x14949e(0xb5)]?.['on'](_0x14949e(0x9b),()=>{const _0x495104=_0x14949e;this[_0x495104(0xa0)](_0x495104(0xbd));}),this[_0x14949e(0xb2)][_0x14949e(0xb3)]?.['on'](_0x14949e(0x9b),()=>{const _0x3cdc27=_0x14949e;this[_0x3cdc27(0xa0)](_0x3cdc27(0xb9));}),this[_0x14949e(0x96)][_0x14949e(0x9c)](this[_0x14949e(0xb2)]);}[_0x2d2658(0xb8)](){const _0x454092=_0x2d2658,_0x25fcc0=new _0x292a7b(this[_0x454092(0xa2)]);return _0x25fcc0[_0x454092(0xc0)]({'icon':_0x2a77b7,'tooltip':_0x4ee114(this[_0x454092(0xa2)],_0x454092(0xcb))}),_0x25fcc0['on'](_0x454092(0x9b),()=>{const _0xa216f0=_0x454092;this[_0xa216f0(0xa0)](_0xa216f0(0xc9));}),_0x25fcc0;}[_0x2d2658(0xd4)](){const _0x557796=_0x2d2658,_0x5aecdb=new _0x292a7b(this[_0x557796(0xa2)]);return _0x5aecdb[_0x557796(0xc0)]({'icon':_0x385981,'tooltip':_0x4ee114(this[_0x557796(0xa2)],_0x557796(0xa5))}),_0x5aecdb['on'](_0x557796(0x9b),()=>{const _0xfb6700=_0x557796;this[_0xfb6700(0xa0)](_0xfb6700(0xcd));}),_0x5aecdb;}}
23
+ function _0x11dd(){const _0x20f450=['543710sDiftW','bind','focusTracker','showSuggestButton','3mlHcne','1206948NuUtEc','shift\x20+\x20tab','_dropdownConfig','insertSuggestion','focusCycler','setTemplate','4882224OrwZgQ','suggestButton','applyButton','2524428SonqEJ','isLoading','setLoading','tab','showNext','keystrokes','change:isTrackChangesOn','clearLoading','focusLast','_dialogContent','9grtOBB','_addContentView','addMany','isTrackChangesOn','includes','toolbar','focusFirst','headerView','AI_BALLOON_PREVIOUS_TOOLTIP','7zpLSxm','_createNextButtonView','view','30CPSVop','9163074HEHDNd','_mainView','createCollection','_addToolbar','render','remove','applySuggestion','set','showPrevious','div','clear','listenTo','execute','ai-balloon-content','AI_BALLOON_NEXT_TOOLTIP','showApplyButton','_createPreviousButtonView','_focusables','fire','_addDisclaimerView','1768187aXFpej','setupRotator','element','focus','children','locale','disclaimerView','add','mainView','914606kaMqZQ'];_0x11dd=function(){return _0x20f450;};return _0x11dd();}const _0x534792=_0x2815;function _0x2815(_0x2673a0,_0x66344){const _0x11dd76=_0x11dd();return _0x2815=function(_0x281526,_0x1696db){_0x281526=_0x281526-0x1d5;let _0x37610d=_0x11dd76[_0x281526];return _0x37610d;},_0x2815(_0x2673a0,_0x66344);}(function(_0x1adb8c,_0x2375e7){const _0x38679b=_0x2815,_0xafbce6=_0x1adb8c();while(!![]){try{const _0x4e3351=-parseInt(_0x38679b(0x1f0))/0x1+parseInt(_0x38679b(0x208))/0x2*(-parseInt(_0x38679b(0x1fe))/0x3)+parseInt(_0x38679b(0x1ff))/0x4*(parseInt(_0x38679b(0x1db))/0x5)+-parseInt(_0x38679b(0x1dc))/0x6*(-parseInt(_0x38679b(0x1d8))/0x7)+parseInt(_0x38679b(0x205))/0x8+-parseInt(_0x38679b(0x212))/0x9*(parseInt(_0x38679b(0x1fa))/0xa)+parseInt(_0x38679b(0x1f9))/0xb;if(_0x4e3351===_0x2375e7)break;else _0xafbce6['push'](_0xafbce6['shift']());}catch(_0x1d4f06){_0xafbce6['push'](_0xafbce6['shift']());}}}(_0x11dd,0xe704d));import{ButtonView as _0x17c116,View as _0x16c41f,ViewCollection as _0x28ff5a,FocusCycler as _0x77cb40}from'ckeditor5/src/ui.js';import{FocusTracker as _0x4edfc2,KeystrokeHandler as _0xc90f1f}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x16311a,IconPreviousArrow as _0x30c27c}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5d60b0}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x3015d7}from'./aiballoondisclaimerview.js';import{getTranslation as _0x102fc4}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x534792(0x1e2),_0x534792(0x202),_0x534792(0x20c),_0x534792(0x1e4)];export class AIBalloonView extends _0x16c41f{[_0x534792(0x1fc)];[_0x534792(0x20d)];[_0x534792(0x203)];[_0x534792(0x201)];[_0x534792(0x1ed)];constructor(_0x24e7c3,_0x15f83e,_0xb0c9ad,_0x4ab474){const _0xa65812=_0x534792;super(_0x24e7c3),this[_0xa65812(0x201)]=_0xb0c9ad,this[_0xa65812(0x1e3)](_0xa65812(0x209),!0x1),this[_0xa65812(0x1e3)](_0xa65812(0x215),_0x4ab474),this[_0xa65812(0x1fc)]=new _0x4edfc2(),this[_0xa65812(0x20d)]=new _0xc90f1f(),this[_0xa65812(0x1ed)]=this[_0xa65812(0x1de)](),this[_0xa65812(0x203)]=new _0x77cb40({'focusables':this[_0xa65812(0x1ed)],'focusTracker':this[_0xa65812(0x1fc)],'keystrokeHandler':this[_0xa65812(0x20d)],'actions':{'focusPrevious':_0xa65812(0x200),'focusNext':_0xa65812(0x20b)}}),this[_0xa65812(0x211)]=new _0x28ff5a(),this[_0xa65812(0x213)](_0x15f83e[_0xa65812(0x1f8)]),this[_0xa65812(0x1ef)](),this[_0xa65812(0x1df)](_0x15f83e[_0xa65812(0x1eb)],_0x15f83e[_0xa65812(0x1fd)]),this[_0xa65812(0x217)][_0xa65812(0x1fb)](_0xa65812(0x209))['to'](this),this[_0xa65812(0x1ed)][_0xa65812(0x1e6)](),this[_0xa65812(0x1ed)][_0xa65812(0x214)]([this[_0xa65812(0x217)]]),this[_0xa65812(0x204)]({'tag':_0xa65812(0x1e5),'attributes':{'class':_0xa65812(0x1e9)},'children':this[_0xa65812(0x211)]}),this[_0xa65812(0x1e7)](this,_0xa65812(0x20e),()=>{const _0x5bd2a7=_0xa65812;this[_0x5bd2a7(0x211)][_0x5bd2a7(0x1e1)](this[_0x5bd2a7(0x217)]),this[_0x5bd2a7(0x1df)](_0x15f83e[_0x5bd2a7(0x1eb)],_0x15f83e[_0x5bd2a7(0x1fd)]);});}[_0x534792(0x1e0)](){const _0x42b498=_0x534792;super[_0x42b498(0x1e0)]();for(const _0x377c27 of this[_0x42b498(0x1ed)])this[_0x42b498(0x1fc)][_0x42b498(0x1f7)](_0x377c27[_0x42b498(0x1f2)]);this[_0x42b498(0x20d)][_0x42b498(0x1e7)](this[_0x42b498(0x1f2)]);}[_0x534792(0x1f3)](_0x77e1e0){const _0xf6b2be=_0x534792;-0x1===_0x77e1e0?this[_0xf6b2be(0x203)][_0xf6b2be(0x210)]():this[_0xf6b2be(0x203)][_0xf6b2be(0x1d5)]();}[_0x534792(0x20a)](){const _0x363b8b=_0x534792;this[_0x363b8b(0x209)]=!0x0;}[_0x534792(0x20f)](){const _0x4cebac=_0x534792;this[_0x4cebac(0x209)]=!0x1;}[_0x534792(0x1f1)](_0x16c98e){const _0x48f124=_0x534792,_0x572d82=this[_0x48f124(0x1d9)](),_0x5346d4=this[_0x48f124(0x1ec)]();_0x16c98e[_0x48f124(0x1da)][_0x48f124(0x1d6)][_0x48f124(0x1f4)][_0x48f124(0x1f7)](_0x572d82,0x2),_0x16c98e[_0x48f124(0x1da)][_0x48f124(0x1d6)][_0x48f124(0x1f4)][_0x48f124(0x1f7)](_0x5346d4,0x0),this[_0x48f124(0x1ed)][_0x48f124(0x214)]([_0x572d82,_0x5346d4]),this[_0x48f124(0x1fc)][_0x48f124(0x1f7)](_0x572d82[_0x48f124(0x1f2)]),this[_0x48f124(0x1fc)][_0x48f124(0x1f7)](_0x5346d4[_0x48f124(0x1f2)]);}[_0x534792(0x213)](_0x17bd2f){const _0x46b487=_0x534792;this[_0x46b487(0x1dd)]=_0x17bd2f,this[_0x46b487(0x211)][_0x46b487(0x1f7)](this[_0x46b487(0x1dd)]);}[_0x534792(0x1ef)](){const _0x570735=_0x534792;this[_0x570735(0x1f6)]=new _0x3015d7(this[_0x570735(0x1f5)]),this[_0x570735(0x211)][_0x570735(0x1f7)](this[_0x570735(0x1f6)]);}[_0x534792(0x1df)](_0x142482=!0x0,_0x4ac955=!0x0){const _0x285088=_0x534792;_0x142482=_0x142482&&!this[_0x285088(0x215)]&&this[_0x285088(0x201)][_0x285088(0x216)](_0x285088(0x1e2)),_0x4ac955=_0x4ac955&&this[_0x285088(0x201)][_0x285088(0x216)](_0x285088(0x202)),this[_0x285088(0x217)]=new _0x5d60b0(this[_0x285088(0x1f5)],_0x142482,_0x4ac955),this[_0x285088(0x217)][_0x285088(0x207)]?.['on'](_0x285088(0x1e8),()=>{const _0x2a1bc4=_0x285088;this[_0x2a1bc4(0x1ee)](_0x2a1bc4(0x1e2));}),this[_0x285088(0x217)][_0x285088(0x206)]?.['on'](_0x285088(0x1e8),()=>{const _0x5845f6=_0x285088;this[_0x5845f6(0x1ee)](_0x5845f6(0x202));}),this[_0x285088(0x211)][_0x285088(0x1f7)](this[_0x285088(0x217)]);}[_0x534792(0x1d9)](){const _0x515337=_0x534792,_0x1299a6=new _0x17c116(this[_0x515337(0x1f5)]);return _0x1299a6[_0x515337(0x1e3)]({'icon':_0x16311a,'tooltip':_0x102fc4(this[_0x515337(0x1f5)],_0x515337(0x1ea))}),_0x1299a6['on'](_0x515337(0x1e8),()=>{const _0x5f14e4=_0x515337;this[_0x5f14e4(0x1ee)](_0x5f14e4(0x20c));}),_0x1299a6;}[_0x534792(0x1ec)](){const _0x2ab95a=_0x534792,_0x501d9e=new _0x17c116(this[_0x2ab95a(0x1f5)]);return _0x501d9e[_0x2ab95a(0x1e3)]({'icon':_0x30c27c,'tooltip':_0x102fc4(this[_0x2ab95a(0x1f5)],_0x2ab95a(0x1d7))}),_0x501d9e['on'](_0x2ab95a(0x1e8),()=>{const _0x40677c=_0x2ab95a;this[_0x40677c(0x1ee)](_0x40677c(0x1e4));}),_0x501d9e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x44421a=_0x4d59;(function(_0x413e1d,_0x5b6e76){var _0x56af7d=_0x4d59,_0x5dee0e=_0x413e1d();while(!![]){try{var _0x44ef18=-parseInt(_0x56af7d(0x1f2))/0x1+parseInt(_0x56af7d(0x1f0))/0x2*(parseInt(_0x56af7d(0x1f5))/0x3)+-parseInt(_0x56af7d(0x1e4))/0x4*(-parseInt(_0x56af7d(0x1ef))/0x5)+parseInt(_0x56af7d(0x1e5))/0x6*(parseInt(_0x56af7d(0x1e6))/0x7)+parseInt(_0x56af7d(0x1f6))/0x8*(parseInt(_0x56af7d(0x1eb))/0x9)+parseInt(_0x56af7d(0x1f8))/0xa*(-parseInt(_0x56af7d(0x1f4))/0xb)+-parseInt(_0x56af7d(0x1ed))/0xc;if(_0x44ef18===_0x5b6e76)break;else _0x5dee0e['push'](_0x5dee0e['shift']());}catch(_0x2192a6){_0x5dee0e['push'](_0x5dee0e['shift']());}}}(_0x28f5,0xabce8));function _0x4d59(_0x56a567,_0x51bd01){var _0x28f594=_0x28f5();return _0x4d59=function(_0x4d59e7,_0x147f54){_0x4d59e7=_0x4d59e7-0x1dc;var _0x2cf4cf=_0x28f594[_0x4d59e7];return _0x2cf4cf;},_0x4d59(_0x56a567,_0x51bd01);}import{ContextPlugin as _0x4d2ce0}from'ckeditor5/src/core.js';import{AIChatController as _0x2ba55d}from'./aichatcontroller.js';function _0x28f5(){var _0x161dab=['define','context','focusPromptInput','config','602091pyhRNZ','get','2423340cUIICG','isOfficialPlugin','90FcUwxR','2PuRKid','startConversation','763474KqmCpk','removeSelectionFromChatContext','1121230SZGKOw','3417711rdbiwK','56WtVBtN','pluginName','60peTRFz','AIChat','ai.chat.models','plugins','sendMessage','addSelectionToChatContext','ai.chat.context','isPremiumPlugin','requires','23780vwJKuY','6HvuQOs','3963253DRyIUz'];_0x28f5=function(){return _0x161dab;};return _0x28f5();}import{AIEditing as _0x152d6c}from'../aicore/aiediting.js';import{AIChatUI as _0x282ffb}from'./aichatui.js';import{AIChatHistory as _0x10d152}from'../aichathistory/aichathistory.js';export class AIChat extends _0x4d2ce0{static get[_0x44421a(0x1e3)](){return[_0x2ba55d,_0x152d6c,_0x282ffb,_0x10d152];}static get[_0x44421a(0x1f7)](){var _0x34ee4e=_0x44421a;return _0x34ee4e(0x1dc);}static get[_0x44421a(0x1ee)](){return!0x0;}static get[_0x44421a(0x1e2)](){return!0x0;}constructor(_0x281bff){var _0x16b463=_0x44421a;super(_0x281bff),this[_0x16b463(0x1e8)][_0x16b463(0x1ea)][_0x16b463(0x1e7)](_0x16b463(0x1e1),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x16b463(0x1e8)][_0x16b463(0x1ea)][_0x16b463(0x1e7)](_0x16b463(0x1dd),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x44421a(0x1e0)](){var _0x125eb6=_0x44421a;await this[_0x125eb6(0x1e8)][_0x125eb6(0x1de)][_0x125eb6(0x1ec)](_0x2ba55d)[_0x125eb6(0x1e0)]();}async[_0x44421a(0x1f1)](){var _0x3b7968=_0x44421a;await this[_0x3b7968(0x1e8)][_0x3b7968(0x1de)][_0x3b7968(0x1ec)](_0x2ba55d)[_0x3b7968(0x1f1)]();}async[_0x44421a(0x1df)]({message:_0x166017,quickActionData:_0x51eaa1}){var _0x10d60e=_0x44421a;await this[_0x10d60e(0x1e8)][_0x10d60e(0x1de)][_0x10d60e(0x1ec)](_0x2ba55d)[_0x10d60e(0x1df)]({'message':_0x166017,'quickActionData':_0x51eaa1});}[_0x44421a(0x1f3)](){var _0x5bab8d=_0x44421a;this[_0x5bab8d(0x1e8)][_0x5bab8d(0x1de)][_0x5bab8d(0x1ec)](_0x2ba55d)[_0x5bab8d(0x1f3)]();}[_0x44421a(0x1e9)](){var _0x104cbe=_0x44421a;this[_0x104cbe(0x1e8)][_0x104cbe(0x1de)][_0x104cbe(0x1ec)](_0x2ba55d)[_0x104cbe(0x1e9)]();}}
23
+ var _0x103e37=_0x3022;(function(_0x1de653,_0x2423cb){var _0x30efa2=_0x3022,_0x4afa4c=_0x1de653();while(!![]){try{var _0x501169=parseInt(_0x30efa2(0x181))/0x1+parseInt(_0x30efa2(0x183))/0x2+parseInt(_0x30efa2(0x179))/0x3+-parseInt(_0x30efa2(0x190))/0x4+parseInt(_0x30efa2(0x18c))/0x5+-parseInt(_0x30efa2(0x17b))/0x6*(parseInt(_0x30efa2(0x18b))/0x7)+-parseInt(_0x30efa2(0x182))/0x8;if(_0x501169===_0x2423cb)break;else _0x4afa4c['push'](_0x4afa4c['shift']());}catch(_0x3a4fdd){_0x4afa4c['push'](_0x4afa4c['shift']());}}}(_0x4326,0x38f67));import{ContextPlugin as _0xb29108}from'ckeditor5/src/core.js';import{AIChatController as _0xeb99b3}from'./aichatcontroller.js';function _0x4326(){var _0x1e0f97=['requires','119225apNGwc','844608snngfd','484702Hjecgz','removeSelectionFromChatContext','context','isOfficialPlugin','startConversation','AIChat','ai.chat.models','define','21xqCHEW','1100080rULIBS','isPremiumPlugin','focusPromptInput','plugins','747908oejRdu','ai.chat.context','459078RatFtO','config','417492UfTOYo','pluginName','get','sendMessage','addSelectionToChatContext'];_0x4326=function(){return _0x1e0f97;};return _0x4326();}function _0x3022(_0x5202ff,_0x1f123a){var _0x43268e=_0x4326();return _0x3022=function(_0x3022a5,_0x3525fb){_0x3022a5=_0x3022a5-0x178;var _0x4e8432=_0x43268e[_0x3022a5];return _0x4e8432;},_0x3022(_0x5202ff,_0x1f123a);}import{AIEditing as _0x1f2279}from'../aicore/aiediting.js';import{AIChatUI as _0xea0436}from'./aichatui.js';import{AIChatHistory as _0x27fe11}from'../aichathistory/aichathistory.js';export class AIChat extends _0xb29108{static get[_0x103e37(0x180)](){return[_0xeb99b3,_0x1f2279,_0xea0436,_0x27fe11];}static get[_0x103e37(0x17c)](){var _0x512eed=_0x103e37;return _0x512eed(0x188);}static get[_0x103e37(0x186)](){return!0x0;}static get[_0x103e37(0x18d)](){return!0x0;}constructor(_0x2bfdb6){var _0x48796e=_0x103e37;super(_0x2bfdb6),this[_0x48796e(0x185)][_0x48796e(0x17a)][_0x48796e(0x18a)](_0x48796e(0x178),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x48796e(0x185)][_0x48796e(0x17a)][_0x48796e(0x18a)](_0x48796e(0x189),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x103e37(0x17f)](){var _0x2de138=_0x103e37;await this[_0x2de138(0x185)][_0x2de138(0x18f)][_0x2de138(0x17d)](_0xeb99b3)[_0x2de138(0x17f)]();}async[_0x103e37(0x187)](){var _0xe3f217=_0x103e37;await this[_0xe3f217(0x185)][_0xe3f217(0x18f)][_0xe3f217(0x17d)](_0xeb99b3)[_0xe3f217(0x187)]();}async[_0x103e37(0x17e)]({message:_0x51e84b,quickActionData:_0xaaedfb}){var _0x3f5e31=_0x103e37;await this[_0x3f5e31(0x185)][_0x3f5e31(0x18f)][_0x3f5e31(0x17d)](_0xeb99b3)[_0x3f5e31(0x17e)]({'message':_0x51e84b,'quickActionData':_0xaaedfb});}[_0x103e37(0x184)](){var _0x375e21=_0x103e37;this[_0x375e21(0x185)][_0x375e21(0x18f)][_0x375e21(0x17d)](_0xeb99b3)[_0x375e21(0x184)]();}[_0x103e37(0x18e)](){var _0x225f0b=_0x103e37;this[_0x225f0b(0x185)][_0x225f0b(0x18f)][_0x225f0b(0x17d)](_0xeb99b3)[_0x225f0b(0x18e)]();}}