@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.7

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 (290) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/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.d.ts +10 -2
  181. package/src/aichat/model/aichatcontext.js +1 -1
  182. package/src/aichat/model/aichatconversation.js +1 -1
  183. package/src/aichat/model/aichatinteraction.js +1 -1
  184. package/src/aichat/model/aichatmodels.js +1 -1
  185. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  186. package/src/aichat/ui/aichatfeedview.js +1 -1
  187. package/src/aichat/ui/aichatheaderview.js +1 -1
  188. package/src/aichat/ui/aichatview.js +1 -1
  189. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichat/utils/scrollmanager.js +1 -1
  213. package/src/aichathistory/aichathistory.js +1 -1
  214. package/src/aichathistory/aichathistorycontroller.js +1 -1
  215. package/src/aichathistory/aichathistoryui.js +1 -1
  216. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  217. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  219. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  222. package/src/aicore/aiconnector.js +1 -1
  223. package/src/aicore/aiediting.js +1 -1
  224. package/src/aicore/model/aicapabilities.js +1 -1
  225. package/src/aicore/model/aicontext.js +1 -1
  226. package/src/aicore/model/aiinteraction.js +1 -1
  227. package/src/aicore/model/aimodels.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aieditorintegration/aieditorintegration.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  252. package/src/aiquickactions/aiquickactions.js +1 -1
  253. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  254. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  255. package/src/aiquickactions/aiquickactionsui.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  284. package/src/aitabs/aitabs.js +1 -1
  285. package/src/aitabs/aitabsmainview.js +1 -1
  286. package/src/aitabs/tabs/aitabsview.js +1 -1
  287. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  288. package/src/aitabs/tabs/tabpanelview.js +1 -1
  289. package/src/errors.js +1 -1
  290. package/src/index.js +1 -1
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c24(_0x3c5916,_0x176e30){const _0x3eb01c=_0x3eb0();return _0x2c24=function(_0x2c2491,_0x5efafb){_0x2c2491=_0x2c2491-0x1a6;let _0x9e8b8f=_0x3eb01c[_0x2c2491];return _0x9e8b8f;},_0x2c24(_0x3c5916,_0x176e30);}const _0x43041c=_0x2c24;(function(_0x38c5fb,_0x947d03){const _0x50ee45=_0x2c24,_0x38cf4a=_0x38c5fb();while(!![]){try{const _0x4a8b8d=parseInt(_0x50ee45(0x1c7))/0x1*(-parseInt(_0x50ee45(0x1e4))/0x2)+parseInt(_0x50ee45(0x1b8))/0x3+parseInt(_0x50ee45(0x1f7))/0x4*(parseInt(_0x50ee45(0x1b1))/0x5)+parseInt(_0x50ee45(0x1ae))/0x6*(parseInt(_0x50ee45(0x1bc))/0x7)+-parseInt(_0x50ee45(0x1eb))/0x8+-parseInt(_0x50ee45(0x208))/0x9*(-parseInt(_0x50ee45(0x1ce))/0xa)+-parseInt(_0x50ee45(0x1b0))/0xb;if(_0x4a8b8d===_0x947d03)break;else _0x38cf4a['push'](_0x38cf4a['shift']());}catch(_0x5dd2e3){_0x38cf4a['push'](_0x38cf4a['shift']());}}}(_0x3eb0,0x9065a));function _0x3eb0(){const _0x2ae52e=['_normalizeResponseHeadings','setContentOf','currentResponse','view','46236MXxAGE','createElement','startsWith','reverse','nodeType','from','isRendered','message','markers','finishProcessing','abort','get','ELEMENT_NODE','childNodes','value','clear','document','4915269XbaEAi','toView','_handleQuery','editing','serializeToString','_sanitizationContainer','currentContext','ai.assistant.preserveComments','set','previousQuery','then','90GhNDGE','exec','18143103MfwsKw','365AroMJQ','initialContext','previousContext','reset','_parseAndNormalizeContent','parseFromString','listenTo','740880xQPZDi','element','div','name','518798DbPEYo','finally','handleError','once','toModel','_xmlSerializer','render','tryAgainEvent','catch','previousActionId','endsWith','936219qozFbF','_sanitizeHTML','isProcessing','<h1></h1>','submitPrompt','editor','length','20ScPPQH','_isH1TagSupportEnabled','```html','previousLabel','mainAction','_domParser','domConverter','processor','destroy','makeRequest','stopProcessing','trim','config','viewToDom','set:currentContext','prompt','text/html','updateView','querySelector','push','stopListening','substring','2jrgXIt','innerHTML','remove','```','data','rename','body','941736jXwuEq','htmlProcessor','match','stringify','custom','startProcessing','_stripMarkdownSyntax','textAdapter'];_0x3eb0=function(){return _0x2ae52e;};return _0x3eb0();}import{ObservableMixin as _0x3a26b5}from'ckeditor5/src/utils.js';import{AIRequestError as _0x33e1bd}from'../adapters/aiadapter.js';import{Matcher as _0x1f1421,ViewUpcastWriter as _0xdec8fb}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
- _0x3a26b5(){[_0x43041c(0x1cc)];[_0x43041c(0x1f2)];[_0x43041c(0x1f6)];[_0x43041c(0x1a8)];[_0x43041c(0x1d3)];[_0x43041c(0x1c1)];constructor(_0x3f14e8,_0x28fb93,_0x5db12d){const _0x4bf4eb=_0x43041c;super(),this[_0x4bf4eb(0x1cc)]=_0x3f14e8,this[_0x4bf4eb(0x1f2)]=_0x28fb93,this[_0x4bf4eb(0x1a8)]=document[_0x4bf4eb(0x1f8)](_0x4bf4eb(0x1ba)),this[_0x4bf4eb(0x1d3)]=new DOMParser(),this[_0x4bf4eb(0x1c1)]=new XMLSerializer(),this[_0x4bf4eb(0x1f6)]=_0x5db12d,this[_0x4bf4eb(0x1ab)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x4bf4eb(0x1dc),(_0x34cb6a,_0x1c90a6,_0x43ad66)=>{const _0x1937c0=_0x4bf4eb;this[_0x1937c0(0x1f6)][_0x1937c0(0x205)]=this[_0x1937c0(0x1c8)](_0x43ad66);}),this[_0x4bf4eb(0x1b7)](this[_0x4bf4eb(0x1f6)],_0x4bf4eb(0x1cb),(_0x240c07,_0x425f81)=>{const _0x3311c3=_0x4bf4eb,_0x163ea6=this[_0x3311c3(0x1a9)]||this[_0x3311c3(0x1b2)];this[_0x3311c3(0x20a)](_0x425f81,_0x163ea6,_0x3311c3(0x1ef));}),this[_0x4bf4eb(0x1b7)](this[_0x4bf4eb(0x1f6)],_0x4bf4eb(0x1c3),()=>{const _0x5821bc=_0x4bf4eb;this[_0x5821bc(0x1f6)][_0x5821bc(0x1dd)]=this[_0x5821bc(0x1d1)],this[_0x5821bc(0x20a)](this[_0x5821bc(0x1ac)],this[_0x5821bc(0x1b3)],this[_0x5821bc(0x1c5)],this[_0x5821bc(0x1d1)]);}),this[_0x4bf4eb(0x1b7)](this[_0x4bf4eb(0x1f6)],_0x4bf4eb(0x1d8),()=>{const _0x36c556=_0x4bf4eb;this[_0x36c556(0x1d8)]();});}[_0x43041c(0x1d6)](){const _0x416e93=_0x43041c;this[_0x416e93(0x1e2)]();}async[_0x43041c(0x1df)]({actionId:_0x2607c9,query:_0x5ed0ee,htmlContent:_0x229938,label:_0x4c9789,mainActionLabel:_0x8c6f08}){const _0x51db8d=_0x43041c;this[_0x51db8d(0x1f6)][_0x51db8d(0x1dd)]=_0x4c9789,this[_0x51db8d(0x1f6)][_0x51db8d(0x1d2)]=_0x8c6f08,this[_0x51db8d(0x1b2)]=_0x229938,_0x5ed0ee&&(this[_0x51db8d(0x1f6)][_0x51db8d(0x1fd)]?this[_0x51db8d(0x20a)](_0x5ed0ee,_0x229938,_0x2607c9,_0x4c9789):this[_0x51db8d(0x1f6)][_0x51db8d(0x1bf)](_0x51db8d(0x1c2),()=>{const _0x14b834=_0x51db8d;this[_0x14b834(0x20a)](_0x5ed0ee,_0x229938,_0x2607c9,_0x4c9789);}));}[_0x43041c(0x1d8)](){const _0x95e641=_0x43041c;this[_0x95e641(0x1c9)]&&(this[_0x95e641(0x1c9)]=!0x1,this[_0x95e641(0x1f6)][_0x95e641(0x200)](),this[_0x95e641(0x1f2)][_0x95e641(0x201)]());}[_0x43041c(0x1b4)](){const _0x364acb=_0x43041c;this[_0x364acb(0x1b2)]='',this[_0x364acb(0x1a9)]='',this[_0x364acb(0x1f5)]='',this[_0x364acb(0x1b3)]='',this[_0x364acb(0x1ac)]='',this[_0x364acb(0x1d1)]='',this[_0x364acb(0x1c5)]=void 0x0,this[_0x364acb(0x1f6)][_0x364acb(0x1b4)](),this[_0x364acb(0x1d8)]();}async[_0x43041c(0x20a)](_0x2840a4,_0x1a5975,_0x855bd4,_0x433883){const _0x5d493f=_0x43041c;return this[_0x5d493f(0x1c9)]=!0x0,this[_0x5d493f(0x1f6)][_0x5d493f(0x1f0)](),this[_0x5d493f(0x1b3)]=_0x1a5975,this[_0x5d493f(0x1ac)]=_0x2840a4,this[_0x5d493f(0x1d1)]=_0x433883||_0x2840a4,this[_0x5d493f(0x1c5)]=_0x855bd4,new Promise(_0x2099b4=>{const _0x531f04=_0x5d493f;this[_0x531f04(0x1f2)][_0x531f04(0x1d7)]({'query':_0x2840a4,'context':_0x1a5975,'onData':_0x18d145=>{const _0x35f508=_0x531f04;this[_0x35f508(0x1f5)]=_0x18d145,this[_0x35f508(0x1a9)]=this[_0x35f508(0x1b5)](this[_0x35f508(0x1f5)]);},'actionId':_0x855bd4})[_0x531f04(0x1ad)](()=>{const _0xf4706c=_0x531f04;!this[_0xf4706c(0x1a9)]&&this[_0xf4706c(0x1f5)]&&(this[_0xf4706c(0x1a9)]=this[_0xf4706c(0x1b5)](this[_0xf4706c(0x1f5)],!0x0));})[_0x531f04(0x1c4)](_0x5de741=>{const _0x49e0db=_0x531f04;_0x5de741 instanceof _0x33e1bd?this[_0x49e0db(0x1f6)][_0x49e0db(0x1be)](_0x5de741[_0x49e0db(0x1fe)]):this[_0x49e0db(0x1f6)][_0x49e0db(0x1be)](),_0x2099b4();})[_0x531f04(0x1bd)](()=>{const _0x13c6c0=_0x531f04;this[_0x13c6c0(0x1d8)](),_0x2099b4();});});}[_0x43041c(0x1b5)](_0x545dab,_0x5942df=!0x1){const _0x1ca632=_0x43041c,_0x2feaea=hs[_0x1ca632(0x1af)](_0x545dab);_0x545dab=_0x2feaea?_0x545dab[_0x1ca632(0x1e3)](_0x2feaea[0x1][_0x1ca632(0x1cd)]):_0x545dab[_0x1ca632(0x1cd)]<0x64&&!_0x5942df?'':this[_0x1ca632(0x1f1)](_0x545dab);const _0x19af9d=this[_0x1ca632(0x1d3)][_0x1ca632(0x1b6)](_0x545dab,_0x1ca632(0x1de));if(_0x2feaea){const _0x49e9fc=Array[_0x1ca632(0x1fc)](_0x19af9d[_0x1ca632(0x1ea)][_0x1ca632(0x204)]);_0x49e9fc[_0x1ca632(0x1fa)]();for(const _0x4c21de of _0x49e9fc){if(_0x4c21de[_0x1ca632(0x1fb)]==Node[_0x1ca632(0x203)])break;_0x4c21de[_0x1ca632(0x1e6)]();}}const _0x57c6c6=this[_0x1ca632(0x1cc)][_0x1ca632(0x1e8)][_0x1ca632(0x1d5)][_0x1ca632(0x209)](this[_0x1ca632(0x1c1)][_0x1ca632(0x1a7)](_0x19af9d[_0x1ca632(0x1ea)]));this[_0x1ca632(0x1cf)]()||this[_0x1ca632(0x1f3)](_0x57c6c6);const _0x34a4da=this[_0x1ca632(0x1cc)][_0x1ca632(0x1da)][_0x1ca632(0x202)](_0x1ca632(0x1aa)),_0x4d2390=this[_0x1ca632(0x1cc)][_0x1ca632(0x1e8)][_0x1ca632(0x1c0)](_0x57c6c6);return _0x34a4da||_0x4d2390[_0x1ca632(0x1ff)][_0x1ca632(0x206)](),this[_0x1ca632(0x1cc)][_0x1ca632(0x1e8)][_0x1ca632(0x1ee)](_0x4d2390);}[_0x43041c(0x1f3)](_0x5627f5){const _0x10d6bc=_0x43041c,_0x18b694=new _0xdec8fb(this[_0x10d6bc(0x1cc)][_0x10d6bc(0x1a6)][_0x10d6bc(0x1f6)][_0x10d6bc(0x207)]),_0x29ab67=new _0x1f1421({'name':/^h[1-5]$/}),_0x5ae59b=[];let _0x579f3b=!0x1;for(const _0x2afa75 of _0x5627f5)_0x2afa75['is'](_0x10d6bc(0x1b9))&&_0x29ab67[_0x10d6bc(0x1ed)](_0x2afa75)&&(_0x5ae59b[_0x10d6bc(0x1e1)](_0x2afa75),'h1'==_0x2afa75[_0x10d6bc(0x1bb)]&&(_0x579f3b=!0x0));if(_0x579f3b){for(const _0x404bf5 of _0x5ae59b)_0x18b694[_0x10d6bc(0x1e9)]('h'+(parseInt(_0x404bf5[_0x10d6bc(0x1bb)][0x1])+0x1),_0x404bf5);}}[_0x43041c(0x1cf)](){const _0xc45f49=_0x43041c,{data:_0x4bed3f,editing:_0x3d35b9}=this[_0xc45f49(0x1cc)],_0x2ea873=_0x4bed3f[_0xc45f49(0x1ec)][_0xc45f49(0x209)](_0xc45f49(0x1ca)),_0x3e0231=_0x4bed3f[_0xc45f49(0x209)](_0x4bed3f[_0xc45f49(0x1c0)](_0x2ea873));return!!_0x3d35b9[_0xc45f49(0x1f6)][_0xc45f49(0x1d4)][_0xc45f49(0x1db)](_0x3e0231)[_0xc45f49(0x1e0)]('h1');}[_0x43041c(0x1c8)](_0x448a14){const _0x5570c4=_0x43041c;return this[_0x5570c4(0x1cc)][_0x5570c4(0x1a6)][_0x5570c4(0x1f6)][_0x5570c4(0x1d4)][_0x5570c4(0x1f4)](this[_0x5570c4(0x1a8)],_0x448a14),this[_0x5570c4(0x1a8)][_0x5570c4(0x1e5)];}[_0x43041c(0x1f1)](_0x17e8dc){const _0x3ea361=_0x43041c,_0xde8b81=_0x17e8dc[_0x3ea361(0x1d9)]();return _0xde8b81[_0x3ea361(0x1f9)](_0x3ea361(0x1d0))?_0xde8b81[_0x3ea361(0x1c6)](_0x3ea361(0x1e7))?_0xde8b81[_0x3ea361(0x1e3)](0x7,_0xde8b81[_0x3ea361(0x1cd)]-0x3):_0xde8b81[_0x3ea361(0x1e3)](0x7):_0x17e8dc;}}
23
+ const _0x51fea6=_0x8ba8;(function(_0x1a328e,_0x529337){const _0x428288=_0x8ba8,_0x17be3f=_0x1a328e();while(!![]){try{const _0x38d91d=parseInt(_0x428288(0xf5))/0x1+-parseInt(_0x428288(0xf2))/0x2*(-parseInt(_0x428288(0xfd))/0x3)+-parseInt(_0x428288(0xac))/0x4+parseInt(_0x428288(0xc2))/0x5*(parseInt(_0x428288(0xad))/0x6)+parseInt(_0x428288(0xd7))/0x7+-parseInt(_0x428288(0xc1))/0x8*(parseInt(_0x428288(0xf3))/0x9)+-parseInt(_0x428288(0xfa))/0xa;if(_0x38d91d===_0x529337)break;else _0x17be3f['push'](_0x17be3f['shift']());}catch(_0x378b1a){_0x17be3f['push'](_0x17be3f['shift']());}}}(_0x4ed0,0x5f52f));import{ObservableMixin as _0x5048aa}from'ckeditor5/src/utils.js';import{AIRequestError as _0x300750}from'../adapters/aiadapter.js';import{Matcher as _0x50b5bd,ViewUpcastWriter as _0x581f2b}from'ckeditor5/src/engine.js';function _0x8ba8(_0x4426d7,_0x4e0d05){const _0x4ed056=_0x4ed0();return _0x8ba8=function(_0x8ba82a,_0x487a36){_0x8ba82a=_0x8ba82a-0xa2;let _0xce843b=_0x4ed056[_0x8ba82a];return _0xce843b;},_0x8ba8(_0x4426d7,_0x4e0d05);}const as=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x4ed0(){const _0x4e3a8b=['stringify','trim','previousActionId','message','element','catch','<h1></h1>','finally','_sanitizeHTML','remove','set','render','htmlProcessor','_isH1TagSupportEnabled','submitPrompt','handleError','viewToDom','stopListening','_handleQuery','clear','text/html','toModel','previousLabel','```html','endsWith','once','932rZJyCz','77814yrNTFg','value','552284MVeYTN','initialContext','exec','mainAction','_domParser','5807090GZxfOt','_stripMarkdownSyntax','isProcessing','4569EYkMHt','currentContext','domConverter','nodeType','makeRequest','toView','stopProcessing','name','editor','div','innerHTML','config','```','createElement','get','listenTo','reset','updateView','_sanitizationContainer','980832ZJYUQo','1416uqhxBo','previousQuery','currentResponse','isRendered','previousContext','destroy','startProcessing','length','setContentOf','prompt','data','parseFromString','querySelector','startsWith','rename','_normalizeResponseHeadings','_parseAndNormalizeContent','tryAgainEvent','childNodes','abort','672CWdKqD','1640HTRGfh','reverse','processor','editing','set:currentContext','view','_xmlSerializer','markers','body','from','then','finishProcessing','ai.assistant.preserveComments','ELEMENT_NODE','match','document','serializeToString','push','substring','custom','textAdapter','4222526eMdYcF'];_0x4ed0=function(){return _0x4e3a8b;};return _0x4ed0();}export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
+ _0x5048aa(){[_0x51fea6(0x105)];[_0x51fea6(0xd6)];[_0x51fea6(0xc7)];[_0x51fea6(0xab)];[_0x51fea6(0xf9)];[_0x51fea6(0xc8)];constructor(_0x491efd,_0x5ae590,_0x4b79ca){const _0x2bb339=_0x51fea6;super(),this[_0x2bb339(0x105)]=_0x491efd,this[_0x2bb339(0xd6)]=_0x5ae590,this[_0x2bb339(0xab)]=document[_0x2bb339(0xa6)](_0x2bb339(0xa2)),this[_0x2bb339(0xf9)]=new DOMParser(),this[_0x2bb339(0xc8)]=new XMLSerializer(),this[_0x2bb339(0xc7)]=_0x4b79ca,this[_0x2bb339(0xe2)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x2bb339(0xc6),(_0x52ac76,_0x1a0e0f,_0xc49bf2)=>{const _0xfe6baf=_0x2bb339;this[_0xfe6baf(0xc7)][_0xfe6baf(0xf4)]=this[_0xfe6baf(0xe0)](_0xc49bf2);}),this[_0x2bb339(0xa8)](this[_0x2bb339(0xc7)],_0x2bb339(0xe6),(_0x2f3c36,_0x4cc4cf)=>{const _0x499bae=_0x2bb339,_0x405c03=this[_0x499bae(0xfe)]||this[_0x499bae(0xf6)];this[_0x499bae(0xea)](_0x4cc4cf,_0x405c03,_0x499bae(0xd5));}),this[_0x2bb339(0xa8)](this[_0x2bb339(0xc7)],_0x2bb339(0xbe),()=>{const _0x4cb8e0=_0x2bb339;this[_0x4cb8e0(0xc7)][_0x4cb8e0(0xb6)]=this[_0x4cb8e0(0xee)],this[_0x4cb8e0(0xea)](this[_0x4cb8e0(0xae)],this[_0x4cb8e0(0xb1)],this[_0x4cb8e0(0xda)],this[_0x4cb8e0(0xee)]);}),this[_0x2bb339(0xa8)](this[_0x2bb339(0xc7)],_0x2bb339(0x103),()=>{const _0x2cbed1=_0x2bb339;this[_0x2cbed1(0x103)]();});}[_0x51fea6(0xb2)](){const _0x42a5f9=_0x51fea6;this[_0x42a5f9(0xe9)]();}async[_0x51fea6(0xaa)]({actionId:_0x195388,query:_0xd9ea4d,htmlContent:_0x28ce1c,label:_0x50e76f,mainActionLabel:_0x21eeb4}){const _0x2ad597=_0x51fea6;this[_0x2ad597(0xc7)][_0x2ad597(0xb6)]=_0x50e76f,this[_0x2ad597(0xc7)][_0x2ad597(0xf8)]=_0x21eeb4,this[_0x2ad597(0xf6)]=_0x28ce1c,_0xd9ea4d&&(this[_0x2ad597(0xc7)][_0x2ad597(0xb0)]?this[_0x2ad597(0xea)](_0xd9ea4d,_0x28ce1c,_0x195388,_0x50e76f):this[_0x2ad597(0xc7)][_0x2ad597(0xf1)](_0x2ad597(0xe3),()=>{const _0x2374b8=_0x2ad597;this[_0x2374b8(0xea)](_0xd9ea4d,_0x28ce1c,_0x195388,_0x50e76f);}));}[_0x51fea6(0x103)](){const _0x985d40=_0x51fea6;this[_0x985d40(0xfc)]&&(this[_0x985d40(0xfc)]=!0x1,this[_0x985d40(0xc7)][_0x985d40(0xcd)](),this[_0x985d40(0xd6)][_0x985d40(0xc0)]());}[_0x51fea6(0xa9)](){const _0x411c84=_0x51fea6;this[_0x411c84(0xf6)]='',this[_0x411c84(0xfe)]='',this[_0x411c84(0xaf)]='',this[_0x411c84(0xb1)]='',this[_0x411c84(0xae)]='',this[_0x411c84(0xee)]='',this[_0x411c84(0xda)]=void 0x0,this[_0x411c84(0xc7)][_0x411c84(0xa9)](),this[_0x411c84(0x103)]();}async[_0x51fea6(0xea)](_0x4a9e1d,_0x38151e,_0x984f3b,_0x75679b){const _0x3a8bd6=_0x51fea6;return this[_0x3a8bd6(0xfc)]=!0x0,this[_0x3a8bd6(0xc7)][_0x3a8bd6(0xb3)](),this[_0x3a8bd6(0xb1)]=_0x38151e,this[_0x3a8bd6(0xae)]=_0x4a9e1d,this[_0x3a8bd6(0xee)]=_0x75679b||_0x4a9e1d,this[_0x3a8bd6(0xda)]=_0x984f3b,new Promise(_0x10f79d=>{const _0x4f59bb=_0x3a8bd6;this[_0x4f59bb(0xd6)][_0x4f59bb(0x101)]({'query':_0x4a9e1d,'context':_0x38151e,'onData':_0x49d2e8=>{const _0x5400=_0x4f59bb;this[_0x5400(0xaf)]=_0x49d2e8,this[_0x5400(0xfe)]=this[_0x5400(0xbd)](this[_0x5400(0xaf)]);},'actionId':_0x984f3b})[_0x4f59bb(0xcc)](()=>{const _0x38ef5e=_0x4f59bb;!this[_0x38ef5e(0xfe)]&&this[_0x38ef5e(0xaf)]&&(this[_0x38ef5e(0xfe)]=this[_0x38ef5e(0xbd)](this[_0x38ef5e(0xaf)],!0x0));})[_0x4f59bb(0xdd)](_0x164cbb=>{const _0x3d8bce=_0x4f59bb;_0x164cbb instanceof _0x300750?this[_0x3d8bce(0xc7)][_0x3d8bce(0xe7)](_0x164cbb[_0x3d8bce(0xdb)]):this[_0x3d8bce(0xc7)][_0x3d8bce(0xe7)](),_0x10f79d();})[_0x4f59bb(0xdf)](()=>{const _0x35cd3c=_0x4f59bb;this[_0x35cd3c(0x103)](),_0x10f79d();});});}[_0x51fea6(0xbd)](_0x51b6b0,_0x3116a2=!0x1){const _0x328c8c=_0x51fea6,_0x4ab41b=as[_0x328c8c(0xf7)](_0x51b6b0);_0x51b6b0=_0x4ab41b?_0x51b6b0[_0x328c8c(0xd4)](_0x4ab41b[0x1][_0x328c8c(0xb4)]):_0x51b6b0[_0x328c8c(0xb4)]<0x64&&!_0x3116a2?'':this[_0x328c8c(0xfb)](_0x51b6b0);const _0x53354b=this[_0x328c8c(0xf9)][_0x328c8c(0xb8)](_0x51b6b0,_0x328c8c(0xec));if(_0x4ab41b){const _0x5e7ad9=Array[_0x328c8c(0xcb)](_0x53354b[_0x328c8c(0xca)][_0x328c8c(0xbf)]);_0x5e7ad9[_0x328c8c(0xc3)]();for(const _0x3d2c06 of _0x5e7ad9){if(_0x3d2c06[_0x328c8c(0x100)]==Node[_0x328c8c(0xcf)])break;_0x3d2c06[_0x328c8c(0xe1)]();}}const _0x5857e8=this[_0x328c8c(0x105)][_0x328c8c(0xb7)][_0x328c8c(0xc4)][_0x328c8c(0x102)](this[_0x328c8c(0xc8)][_0x328c8c(0xd2)](_0x53354b[_0x328c8c(0xca)]));this[_0x328c8c(0xe5)]()||this[_0x328c8c(0xbc)](_0x5857e8);const _0xeec4ce=this[_0x328c8c(0x105)][_0x328c8c(0xa4)][_0x328c8c(0xa7)](_0x328c8c(0xce)),_0x12d8e6=this[_0x328c8c(0x105)][_0x328c8c(0xb7)][_0x328c8c(0xed)](_0x5857e8);return _0xeec4ce||_0x12d8e6[_0x328c8c(0xc9)][_0x328c8c(0xeb)](),this[_0x328c8c(0x105)][_0x328c8c(0xb7)][_0x328c8c(0xd8)](_0x12d8e6);}[_0x51fea6(0xbc)](_0xe8c607){const _0x1fb548=_0x51fea6,_0x477b34=new _0x581f2b(this[_0x1fb548(0x105)][_0x1fb548(0xc5)][_0x1fb548(0xc7)][_0x1fb548(0xd1)]),_0x21b3af=new _0x50b5bd({'name':/^h[1-5]$/}),_0x3f220a=[];let _0x176fa1=!0x1;for(const _0x1858f0 of _0xe8c607)_0x1858f0['is'](_0x1fb548(0xdc))&&_0x21b3af[_0x1fb548(0xd0)](_0x1858f0)&&(_0x3f220a[_0x1fb548(0xd3)](_0x1858f0),'h1'==_0x1858f0[_0x1fb548(0x104)]&&(_0x176fa1=!0x0));if(_0x176fa1){for(const _0x1dbbf1 of _0x3f220a)_0x477b34[_0x1fb548(0xbb)]('h'+(parseInt(_0x1dbbf1[_0x1fb548(0x104)][0x1])+0x1),_0x1dbbf1);}}[_0x51fea6(0xe5)](){const _0x1f6408=_0x51fea6,{data:_0x5bc898,editing:_0x58aa8d}=this[_0x1f6408(0x105)],_0x101eca=_0x5bc898[_0x1f6408(0xe4)][_0x1f6408(0x102)](_0x1f6408(0xde)),_0x109e8d=_0x5bc898[_0x1f6408(0x102)](_0x5bc898[_0x1f6408(0xed)](_0x101eca));return!!_0x58aa8d[_0x1f6408(0xc7)][_0x1f6408(0xff)][_0x1f6408(0xe8)](_0x109e8d)[_0x1f6408(0xb9)]('h1');}[_0x51fea6(0xe0)](_0x7fd392){const _0x336755=_0x51fea6;return this[_0x336755(0x105)][_0x336755(0xc5)][_0x336755(0xc7)][_0x336755(0xff)][_0x336755(0xb5)](this[_0x336755(0xab)],_0x7fd392),this[_0x336755(0xab)][_0x336755(0xa3)];}[_0x51fea6(0xfb)](_0x56cc61){const _0x112fe8=_0x51fea6,_0x48a4a6=_0x56cc61[_0x112fe8(0xd9)]();return _0x48a4a6[_0x112fe8(0xba)](_0x112fe8(0xef))?_0x48a4a6[_0x112fe8(0xf0)](_0x112fe8(0xa5))?_0x48a4a6[_0x112fe8(0xd4)](0x7,_0x48a4a6[_0x112fe8(0xb4)]-0x3):_0x48a4a6[_0x112fe8(0xd4)](0x7):_0x56cc61;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cbf3f=_0x1026;(function(_0x479d87,_0x9ebf6a){const _0x341560=_0x1026,_0x266a39=_0x479d87();while(!![]){try{const _0x12404a=-parseInt(_0x341560(0x1d6))/0x1*(parseInt(_0x341560(0x1b1))/0x2)+-parseInt(_0x341560(0x1a7))/0x3*(parseInt(_0x341560(0x1c2))/0x4)+-parseInt(_0x341560(0x194))/0x5+-parseInt(_0x341560(0x1a1))/0x6*(-parseInt(_0x341560(0x1b4))/0x7)+-parseInt(_0x341560(0x1c1))/0x8+-parseInt(_0x341560(0x1d8))/0x9*(-parseInt(_0x341560(0x1e1))/0xa)+parseInt(_0x341560(0x1d4))/0xb;if(_0x12404a===_0x9ebf6a)break;else _0x266a39['push'](_0x266a39['shift']());}catch(_0x556fc1){_0x266a39['push'](_0x266a39['shift']());}}}(_0x2537,0x4c2d8));import{global as _0xd979e9}from'ckeditor5/src/utils.js';import{View as _0x848727,ButtonView as _0x48c682,SpinnerView as _0x265f1a}from'ckeditor5/src/ui.js';import{IconCheck as _0x439050,IconCopy as _0x4f9c25}from'ckeditor5/src/icons.js';import{getTranslation as _0x341eb5}from'../../utils/common-translations.js';function _0x1026(_0x3a4042,_0x4cfa16){const _0x2537e5=_0x2537();return _0x1026=function(_0x10262e,_0xdeba75){_0x10262e=_0x10262e-0x191;let _0x317c3f=_0x2537e5[_0x10262e];return _0x317c3f;},_0x1026(_0x3a4042,_0x4cfa16);}function _0x2537(){const _0x3a6462=['createElement','appendLoader','Copy','scrollHeight','addRange','textContent','appendChild','execute','copy','smooth','class','style','position','ck-ai-form__content-area--processing','createRange','contentFieldView','text/html','15880513DFhZcA','ck-ai-form__content-field','2catBDQ','isVisible','52596fNmzWs','ck-ai-form__content-area','execCommand','listenTo','ck-hidden','div','change:isProcessing','innerHTML','set','360cpUJvs','remove','<span>[</span>','focus','getSelection','element','_copyHTMLToClipboard','text/plain','mousedown','1691310IeTVIJ','\x20ck-ai-form__copy-button--copied','isProcessing','-9999px','ck-ai-form__loader','ClipboardItem','isEnabled','bind','loaderView','ck-ai-form__copy-button-wrapper','setStartAfter','clipboard','.ck-ai-form__loader','153366ILulay','absolute','setEndBefore','ck-ai-form__content-area-wrapper','scrollTo','<span>]</span>','70164fgblTh','ck-ai-form__copy-button','copyButtonView','ck-reset_all-excluded','write','lastElementChild','wheel','value','_createCopyButton','AI\x20is\x20writing...','259778uFvdqm','firstElementChild','_createLoader','35HVutUb','change:value','removeAllRanges','querySelector','body','locale','render','ck-content','setTemplate','setContent','icon','left','bindTemplate','2109760RDHHKv','104ktSTPK'];_0x2537=function(){return _0x3a6462;};return _0x2537();}export class AIFormContentArea extends _0x848727{[_0x1cbf3f(0x1d2)];[_0x1cbf3f(0x1a9)];constructor(_0x11008c,_0x35e3eb=''){const _0x19a2d1=_0x1cbf3f;super(_0x11008c),this[_0x19a2d1(0x1e0)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x194f7d=this[_0x19a2d1(0x1c0)];this[_0x19a2d1(0x1d2)]=new ContentFieldView(_0x11008c,_0x35e3eb),this[_0x19a2d1(0x1a9)]=this[_0x19a2d1(0x1af)](),this[_0x19a2d1(0x1bc)]({'tag':_0x19a2d1(0x1dd),'attributes':{'class':['ck',_0x19a2d1(0x1a4),_0x194f7d['if'](_0x19a2d1(0x1d7),_0x19a2d1(0x1dc),_0x53a99b=>!_0x53a99b)],'tabindex':'-1'},'children':[{'tag':_0x19a2d1(0x1dd),'attributes':{'class':['ck',_0x19a2d1(0x1d9),_0x194f7d['if'](_0x19a2d1(0x196),_0x19a2d1(0x1d0))]},'children':[this[_0x19a2d1(0x1d2)],{'tag':_0x19a2d1(0x1dd),'attributes':{'class':['ck',_0x19a2d1(0x19d)]},'children':[this[_0x19a2d1(0x1a9)]]}]}]});}[_0x1cbf3f(0x1ba)](){const _0x21e17a=_0x1cbf3f;super[_0x21e17a(0x1ba)](),this[_0x21e17a(0x1ae)]&&this[_0x21e17a(0x1d2)][_0x21e17a(0x1bd)](this[_0x21e17a(0x1ae)]);let _0x12b997=!0x1;this['on'](_0x21e17a(0x1b5),(_0x5229d9,_0x34edba,_0x3a2371)=>{const _0x46df0b=_0x21e17a,_0x2cd8db=!this[_0x46df0b(0x1d2)][_0x46df0b(0x1e6)][_0x46df0b(0x1b7)](_0x46df0b(0x1a0));this[_0x46df0b(0x1d2)][_0x46df0b(0x1bd)](_0x3a2371),this[_0x46df0b(0x196)]&&_0x2cd8db&&!_0x12b997&&this[_0x46df0b(0x1e6)][_0x46df0b(0x1a5)]({'top':this[_0x46df0b(0x1e6)][_0x46df0b(0x1c6)],'behavior':_0x46df0b(0x1cc)});}),this['on'](_0x21e17a(0x1de),(_0x2ce27e,_0x3d6b03,_0x30cdcd)=>{const _0x42ec0b=_0x21e17a;_0x12b997=!0x1,_0x30cdcd?(this[_0x42ec0b(0x1ae)]=null,this[_0x42ec0b(0x1d2)][_0x42ec0b(0x1c4)]()):this[_0x42ec0b(0x1ae)]||this[_0x42ec0b(0x1d2)][_0x42ec0b(0x1bd)]('');}),this[_0x21e17a(0x1db)](this[_0x21e17a(0x1e6)],_0x21e17a(0x1ad),()=>{_0x12b997=!0x0;}),this[_0x21e17a(0x1db)](this[_0x21e17a(0x1e6)],_0x21e17a(0x193),()=>{_0x12b997=!0x0;});}[_0x1cbf3f(0x1e4)](){const _0x4493bf=_0x1cbf3f;this[_0x4493bf(0x1e6)][_0x4493bf(0x1e4)]();}[_0x1cbf3f(0x1af)](){const _0xcd9c32=_0x1cbf3f,_0x4465e5=this[_0xcd9c32(0x1b9)],_0x2bee0a=new _0x48c682(this[_0xcd9c32(0x1b9)]),_0x1386da=_0xcd9c32(0x1a8);return _0x2bee0a[_0xcd9c32(0x1e0)]({'label':_0x341eb5(_0x4465e5,_0xcd9c32(0x1c5)),'icon':_0x4f9c25,'class':_0x1386da,'tooltip':!0x0}),_0x2bee0a[_0xcd9c32(0x19b)](_0xcd9c32(0x1d7))['to'](this,_0xcd9c32(0x1ae),_0x435a0f=>!!_0x435a0f),_0x2bee0a[_0xcd9c32(0x19b)](_0xcd9c32(0x19a))['to'](this,_0xcd9c32(0x196),_0x28e160=>!_0x28e160),_0x2bee0a['on'](_0xcd9c32(0x1ca),()=>{const _0x1ccd52=_0xcd9c32;this[_0x1ccd52(0x191)](this[_0x1ccd52(0x1d2)][_0x1ccd52(0x1e6)]),_0x2bee0a[_0x1ccd52(0x1be)]=_0x439050,_0x2bee0a[_0x1ccd52(0x1cd)]=_0x1386da+_0x1ccd52(0x195),this[_0x1ccd52(0x1e4)](),setTimeout(()=>{const _0x5f1886=_0x1ccd52;_0x2bee0a[_0x5f1886(0x1be)]=_0x4f9c25,_0x2bee0a[_0x5f1886(0x1cd)]=_0x1386da;},0x3e8);}),_0x2bee0a;}[_0x1cbf3f(0x191)](_0x30bdc4){const _0x5713ad=_0x1cbf3f,{window:_0x5a3772,document:_0x1305f5}=_0xd979e9;if(_0x5a3772[_0x5713ad(0x199)]){const {Blob:_0x4bae38,ClipboardItem:_0x106b38}=_0x5a3772,_0x554592=[new _0x106b38({'text/html':new _0x4bae38([_0x30bdc4[_0x5713ad(0x1df)]],{'type':_0x5713ad(0x1d3)}),'text/plain':new _0x4bae38([_0x30bdc4[_0x5713ad(0x1c8)]||''],{'type':_0x5713ad(0x192)})})];navigator[_0x5713ad(0x19f)][_0x5713ad(0x1ab)](_0x554592);}else{const _0xa572ea=_0x1305f5[_0x5713ad(0x1c3)](_0x5713ad(0x1dd));_0xa572ea[_0x5713ad(0x1ce)][_0x5713ad(0x1cf)]=_0x5713ad(0x1a2),_0xa572ea[_0x5713ad(0x1ce)][_0x5713ad(0x1bf)]=_0x5713ad(0x197),_0xa572ea[_0x5713ad(0x1df)]=_0x5713ad(0x1e3)+_0x30bdc4[_0x5713ad(0x1df)]+_0x5713ad(0x1a6),_0x1305f5[_0x5713ad(0x1b8)][_0x5713ad(0x1c9)](_0xa572ea);const _0x13c13b=_0x1305f5[_0x5713ad(0x1d1)]();_0x13c13b[_0x5713ad(0x19e)](_0xa572ea[_0x5713ad(0x1b2)]),_0x13c13b[_0x5713ad(0x1a3)](_0xa572ea[_0x5713ad(0x1ac)]);const _0x3d4ad5=_0x5a3772[_0x5713ad(0x1e5)]();_0x3d4ad5[_0x5713ad(0x1b6)](),_0x3d4ad5[_0x5713ad(0x1c7)](_0x13c13b),_0x1305f5[_0x5713ad(0x1da)](_0x5713ad(0x1cb)),_0xa572ea[_0x5713ad(0x1e2)]();}}}export class ContentFieldView extends _0x848727{constructor(_0x2e1b66,_0x14c2ff=''){const _0x20690b=_0x1cbf3f;super(_0x2e1b66),this[_0x20690b(0x19c)]=this[_0x20690b(0x1b3)](),this[_0x20690b(0x1bc)]({'tag':_0x20690b(0x1dd),'attributes':{'class':['ck',_0x20690b(0x1bb),_0x14c2ff,_0x20690b(0x1aa),_0x20690b(0x1d5)]}});}[_0x1cbf3f(0x1bd)](_0xac5b08){const _0x1d997f=_0x1cbf3f;this[_0x1d997f(0x1e6)][_0x1d997f(0x1df)]=_0xac5b08;}[_0x1cbf3f(0x1c4)](){const _0x3f1a14=_0x1cbf3f;this[_0x3f1a14(0x1e6)][_0x3f1a14(0x1c9)](this[_0x3f1a14(0x19c)][_0x3f1a14(0x1e6)]);}[_0x1cbf3f(0x1b3)](){const _0x2d618a=_0x1cbf3f,_0x29548e=new _0x848727(),_0x24eff3=this[_0x2d618a(0x1b9)],_0x298f86=new _0x265f1a();return _0x298f86[_0x2d618a(0x1d7)]=!0x0,_0x29548e[_0x2d618a(0x1bc)]({'tag':_0x2d618a(0x1dd),'attributes':{'class':['ck',_0x2d618a(0x198)]},'children':[_0x298f86,{'text':_0x341eb5(_0x24eff3,_0x2d618a(0x1b0))}]}),_0x29548e[_0x2d618a(0x1ba)](),_0x29548e;}}
23
+ function _0x2c5e(_0x32aac9,_0x23f5f4){const _0x5a23c6=_0x5a23();return _0x2c5e=function(_0x2c5e02,_0x15ae88){_0x2c5e02=_0x2c5e02-0x190;let _0x2e7f81=_0x5a23c6[_0x2c5e02];return _0x2e7f81;},_0x2c5e(_0x32aac9,_0x23f5f4);}const _0xc79497=_0x2c5e;(function(_0x211d41,_0x62e1a){const _0x34014e=_0x2c5e,_0x4ee413=_0x211d41();while(!![]){try{const _0x5a6de6=parseInt(_0x34014e(0x197))/0x1+parseInt(_0x34014e(0x190))/0x2+-parseInt(_0x34014e(0x1ae))/0x3*(-parseInt(_0x34014e(0x1d2))/0x4)+parseInt(_0x34014e(0x196))/0x5+parseInt(_0x34014e(0x1df))/0x6+parseInt(_0x34014e(0x19f))/0x7*(parseInt(_0x34014e(0x1d0))/0x8)+-parseInt(_0x34014e(0x1b4))/0x9;if(_0x5a6de6===_0x62e1a)break;else _0x4ee413['push'](_0x4ee413['shift']());}catch(_0x195857){_0x4ee413['push'](_0x4ee413['shift']());}}}(_0x5a23,0x8c21e));import{global as _0x48e01c}from'ckeditor5/src/utils.js';import{View as _0xfa25d0,ButtonView as _0x26ae74,SpinnerView as _0x94b1b3}from'ckeditor5/src/ui.js';import{IconCheck as _0x1b0b44,IconCopy as _0x5319f3}from'ckeditor5/src/icons.js';import{getTranslation as _0x7c3c28}from'../../utils/common-translations.js';export class AIFormContentArea extends _0xfa25d0{[_0xc79497(0x19a)];[_0xc79497(0x1bc)];constructor(_0x6c2e30,_0x3b285c=''){const _0x4bdba6=_0xc79497;super(_0x6c2e30),this[_0x4bdba6(0x1bd)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x20811d=this[_0x4bdba6(0x1ca)];this[_0x4bdba6(0x19a)]=new ContentFieldView(_0x6c2e30,_0x3b285c),this[_0x4bdba6(0x1bc)]=this[_0x4bdba6(0x1d7)](),this[_0x4bdba6(0x1c2)]({'tag':_0x4bdba6(0x1a5),'attributes':{'class':['ck',_0x4bdba6(0x1da),_0x20811d['if'](_0x4bdba6(0x1a4),_0x4bdba6(0x1b1),_0x260694=>!_0x260694)],'tabindex':'-1'},'children':[{'tag':_0x4bdba6(0x1a5),'attributes':{'class':['ck',_0x4bdba6(0x1cd),_0x20811d['if'](_0x4bdba6(0x1d8),_0x4bdba6(0x1ce))]},'children':[this[_0x4bdba6(0x19a)],{'tag':_0x4bdba6(0x1a5),'attributes':{'class':['ck',_0x4bdba6(0x1d1)]},'children':[this[_0x4bdba6(0x1bc)]]}]}]});}[_0xc79497(0x194)](){const _0x592bee=_0xc79497;super[_0x592bee(0x194)](),this[_0x592bee(0x1be)]&&this[_0x592bee(0x19a)][_0x592bee(0x1b3)](this[_0x592bee(0x1be)]);let _0x503737=!0x1;this['on'](_0x592bee(0x1af),(_0x669e48,_0x438b99,_0x5c0f1f)=>{const _0x2efe69=_0x592bee,_0x98e20a=!this[_0x2efe69(0x19a)][_0x2efe69(0x1c5)][_0x2efe69(0x1aa)](_0x2efe69(0x191));this[_0x2efe69(0x19a)][_0x2efe69(0x1b3)](_0x5c0f1f),this[_0x2efe69(0x1d8)]&&_0x98e20a&&!_0x503737&&this[_0x2efe69(0x1c5)][_0x2efe69(0x1a6)]({'top':this[_0x2efe69(0x1c5)][_0x2efe69(0x1ab)],'behavior':_0x2efe69(0x1ad)});}),this['on'](_0x592bee(0x198),(_0x48e49a,_0x8adc9c,_0x43727a)=>{const _0x228f90=_0x592bee;_0x503737=!0x1,_0x43727a?(this[_0x228f90(0x1be)]=null,this[_0x228f90(0x19a)][_0x228f90(0x1cf)]()):this[_0x228f90(0x1be)]||this[_0x228f90(0x19a)][_0x228f90(0x1b3)]('');}),this[_0x592bee(0x1ac)](this[_0x592bee(0x1c5)],_0x592bee(0x19c),()=>{_0x503737=!0x0;}),this[_0x592bee(0x1ac)](this[_0x592bee(0x1c5)],_0x592bee(0x1a0),()=>{_0x503737=!0x0;});}[_0xc79497(0x1a7)](){const _0x3566c9=_0xc79497;this[_0x3566c9(0x1c5)][_0x3566c9(0x1a7)]();}[_0xc79497(0x1d7)](){const _0x4ae7f6=_0xc79497,_0x41b5ec=this[_0x4ae7f6(0x1c8)],_0x1b3217=new _0x26ae74(this[_0x4ae7f6(0x1c8)]),_0xd14a3a=_0x4ae7f6(0x1bb);return _0x1b3217[_0x4ae7f6(0x1bd)]({'label':_0x7c3c28(_0x41b5ec,_0x4ae7f6(0x1d6)),'icon':_0x5319f3,'class':_0xd14a3a,'tooltip':!0x0}),_0x1b3217[_0x4ae7f6(0x1c3)](_0x4ae7f6(0x1a4))['to'](this,_0x4ae7f6(0x1be),_0x277867=>!!_0x277867),_0x1b3217[_0x4ae7f6(0x1c3)](_0x4ae7f6(0x199))['to'](this,_0x4ae7f6(0x1d8),_0x2bd6ce=>!_0x2bd6ce),_0x1b3217['on'](_0x4ae7f6(0x1b5),()=>{const _0x423b78=_0x4ae7f6;this[_0x423b78(0x1db)](this[_0x423b78(0x19a)][_0x423b78(0x1c5)]),_0x1b3217[_0x423b78(0x1d5)]=_0x1b0b44,_0x1b3217[_0x423b78(0x1b9)]=_0xd14a3a+_0x423b78(0x1cc),this[_0x423b78(0x1a7)](),setTimeout(()=>{const _0x5f35ce=_0x423b78;_0x1b3217[_0x5f35ce(0x1d5)]=_0x5319f3,_0x1b3217[_0x5f35ce(0x1b9)]=_0xd14a3a;},0x3e8);}),_0x1b3217;}[_0xc79497(0x1db)](_0x44c620){const _0x6eb447=_0xc79497,{window:_0x1c3ef8,document:_0x541ae2}=_0x48e01c;if(_0x1c3ef8[_0x6eb447(0x1e3)]){const {Blob:_0x302941,ClipboardItem:_0x12b504}=_0x1c3ef8,_0x4656ef=[new _0x12b504({'text/html':new _0x302941([_0x44c620[_0x6eb447(0x1a8)]],{'type':_0x6eb447(0x1b7)}),'text/plain':new _0x302941([_0x44c620[_0x6eb447(0x1b6)]||''],{'type':_0x6eb447(0x1c0)})})];navigator[_0x6eb447(0x1b2)][_0x6eb447(0x1a2)](_0x4656ef);}else{const _0x151b1e=_0x541ae2[_0x6eb447(0x1d9)](_0x6eb447(0x1a5));_0x151b1e[_0x6eb447(0x1bf)][_0x6eb447(0x19e)]=_0x6eb447(0x1c4),_0x151b1e[_0x6eb447(0x1bf)][_0x6eb447(0x1a1)]=_0x6eb447(0x1de),_0x151b1e[_0x6eb447(0x1a8)]=_0x6eb447(0x1c1)+_0x44c620[_0x6eb447(0x1a8)]+_0x6eb447(0x1d4),_0x541ae2[_0x6eb447(0x1cb)][_0x6eb447(0x1b8)](_0x151b1e);const _0x3d6a2b=_0x541ae2[_0x6eb447(0x192)]();_0x3d6a2b[_0x6eb447(0x1dd)](_0x151b1e[_0x6eb447(0x1d3)]),_0x3d6a2b[_0x6eb447(0x193)](_0x151b1e[_0x6eb447(0x1c7)]);const _0x171de0=_0x1c3ef8[_0x6eb447(0x1e1)]();_0x171de0[_0x6eb447(0x1a9)](),_0x171de0[_0x6eb447(0x1a3)](_0x3d6a2b),_0x541ae2[_0x6eb447(0x195)](_0x6eb447(0x1c6)),_0x151b1e[_0x6eb447(0x1ba)]();}}}function _0x5a23(){const _0x2f308f=['write','addRange','isVisible','div','scrollTo','focus','innerHTML','removeAllRanges','querySelector','scrollHeight','listenTo','smooth','174NyEvOn','change:value','ck-content','ck-hidden','clipboard','setContent','21953439FYyAGa','execute','textContent','text/html','appendChild','class','remove','ck-ai-form__copy-button','copyButtonView','set','value','style','text/plain','<span>[</span>','setTemplate','bind','absolute','element','copy','lastElementChild','locale','loaderView','bindTemplate','body','\x20ck-ai-form__copy-button--copied','ck-ai-form__content-area','ck-ai-form__content-area--processing','appendLoader','8VfSZUO','ck-ai-form__copy-button-wrapper','31856mPsGWX','firstElementChild','<span>]</span>','icon','Copy','_createCopyButton','isProcessing','createElement','ck-ai-form__content-area-wrapper','_copyHTMLToClipboard','ck-ai-form__loader','setStartAfter','-9999px','1264164tLfepf','AI\x20is\x20writing...','getSelection','ck-reset_all-excluded','ClipboardItem','757396YiURxl','.ck-ai-form__loader','createRange','setEndBefore','render','execCommand','4625945SbrQWQ','891601SgDcjp','change:isProcessing','isEnabled','contentFieldView','_createLoader','wheel','ck-ai-form__content-field','position','1016113JIEzVJ','mousedown','left'];_0x5a23=function(){return _0x2f308f;};return _0x5a23();}export class ContentFieldView extends _0xfa25d0{constructor(_0x3b73ae,_0x27eed2=''){const _0x54762a=_0xc79497;super(_0x3b73ae),this[_0x54762a(0x1c9)]=this[_0x54762a(0x19b)](),this[_0x54762a(0x1c2)]({'tag':_0x54762a(0x1a5),'attributes':{'class':['ck',_0x54762a(0x1b0),_0x27eed2,_0x54762a(0x1e2),_0x54762a(0x19d)]}});}[_0xc79497(0x1b3)](_0x1cdbf0){const _0x3beeb6=_0xc79497;this[_0x3beeb6(0x1c5)][_0x3beeb6(0x1a8)]=_0x1cdbf0;}[_0xc79497(0x1cf)](){const _0x16c80a=_0xc79497;this[_0x16c80a(0x1c5)][_0x16c80a(0x1b8)](this[_0x16c80a(0x1c9)][_0x16c80a(0x1c5)]);}[_0xc79497(0x19b)](){const _0x127fdd=_0xc79497,_0x254c61=new _0xfa25d0(),_0x3df227=this[_0x127fdd(0x1c8)],_0x17e8c4=new _0x94b1b3();return _0x17e8c4[_0x127fdd(0x1a4)]=!0x0,_0x254c61[_0x127fdd(0x1c2)]({'tag':_0x127fdd(0x1a5),'attributes':{'class':['ck',_0x127fdd(0x1dc)]},'children':[_0x17e8c4,{'text':_0x7c3c28(_0x3df227,_0x127fdd(0x1e0))}]}),_0x254c61[_0x127fdd(0x194)](),_0x254c61;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3defcd,_0x34c726){const _0x3020d4=_0x1259,_0x174708=_0x3defcd();while(!![]){try{const _0x1fde7a=-parseInt(_0x3020d4(0xe4))/0x1*(parseInt(_0x3020d4(0xe7))/0x2)+parseInt(_0x3020d4(0xe1))/0x3*(-parseInt(_0x3020d4(0xde))/0x4)+-parseInt(_0x3020d4(0xe5))/0x5*(parseInt(_0x3020d4(0xdd))/0x6)+-parseInt(_0x3020d4(0xda))/0x7*(parseInt(_0x3020d4(0xdc))/0x8)+parseInt(_0x3020d4(0xea))/0x9+parseInt(_0x3020d4(0xe6))/0xa*(parseInt(_0x3020d4(0xe9))/0xb)+parseInt(_0x3020d4(0xec))/0xc;if(_0x1fde7a===_0x34c726)break;else _0x174708['push'](_0x174708['shift']());}catch(_0x40b2fd){_0x174708['push'](_0x174708['shift']());}}}(_0x27f5,0x5b424));import{IconError as _0x4c8348}from'ckeditor5/src/icons.js';import{View as _0x165d0a,IconView as _0x2ccb96}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x165d0a{constructor(_0x1c1400,_0x6e2f6f=''){const _0x2ebeea=_0x1259;super(_0x1c1400);const _0x3ff564=new _0x2ccb96(),_0x37b2d2=this[_0x2ebeea(0xe8)];this[_0x2ebeea(0xe3)](_0x2ebeea(0xe2),_0x6e2f6f),_0x3ff564[_0x2ebeea(0xdb)]=_0x4c8348,this[_0x2ebeea(0xdf)]({'tag':_0x2ebeea(0xeb),'attributes':{'class':['ck',_0x2ebeea(0xe0)]},'children':[_0x3ff564,{'text':_0x37b2d2['to'](_0x2ebeea(0xe2))}]});}}function _0x1259(_0x51b05f,_0x2c5465){const _0x27f572=_0x27f5();return _0x1259=function(_0x1259b0,_0x236cb9){_0x1259b0=_0x1259b0-0xda;let _0x19756f=_0x27f572[_0x1259b0];return _0x19756f;},_0x1259(_0x51b05f,_0x2c5465);}function _0x27f5(){const _0x18ed67=['216330ZzThqf','bindTemplate','11WLSeuo','5507820njMCbe','div','10311156bQEddi','166607vWLsef','content','8TjKMEa','953136FOkrtz','224CeDpqy','setTemplate','ck-ai-form__error','20526BhUwJS','text','set','3XKLOfq','20AjybSI','2694250FAzWsn'];_0x27f5=function(){return _0x18ed67;};return _0x27f5();}
23
+ (function(_0x2c94da,_0x24e501){const _0x3bdaed=_0x10cd,_0x4e0af1=_0x2c94da();while(!![]){try{const _0x158f06=parseInt(_0x3bdaed(0x149))/0x1+parseInt(_0x3bdaed(0x14c))/0x2*(parseInt(_0x3bdaed(0x140))/0x3)+parseInt(_0x3bdaed(0x146))/0x4*(parseInt(_0x3bdaed(0x144))/0x5)+parseInt(_0x3bdaed(0x14e))/0x6*(parseInt(_0x3bdaed(0x14f))/0x7)+-parseInt(_0x3bdaed(0x143))/0x8*(-parseInt(_0x3bdaed(0x14b))/0x9)+parseInt(_0x3bdaed(0x150))/0xa*(parseInt(_0x3bdaed(0x152))/0xb)+parseInt(_0x3bdaed(0x142))/0xc*(-parseInt(_0x3bdaed(0x141))/0xd);if(_0x158f06===_0x24e501)break;else _0x4e0af1['push'](_0x4e0af1['shift']());}catch(_0x491c18){_0x4e0af1['push'](_0x4e0af1['shift']());}}}(_0x520e,0x7f360));function _0x520e(){const _0x354c26=['26dzheXa','ck-ai-form__error','6tEypUq','1145179NbgrqE','118210dlUKiV','setTemplate','176TRVlvU','text','23913uMreHT','2749097JfXReo','132kAyaGy','12968MbZYwQ','55yezjwA','bindTemplate','278420VTRjmu','content','set','1010845eWRHqI','div','3411fIFbek'];_0x520e=function(){return _0x354c26;};return _0x520e();}function _0x10cd(_0x9a9639,_0x2e4694){const _0x520e95=_0x520e();return _0x10cd=function(_0x10cd88,_0x1ae350){_0x10cd88=_0x10cd88-0x13f;let _0x4134fd=_0x520e95[_0x10cd88];return _0x4134fd;},_0x10cd(_0x9a9639,_0x2e4694);}import{IconError as _0x21a68a}from'ckeditor5/src/icons.js';import{View as _0x5d1f27,IconView as _0x42450f}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x5d1f27{constructor(_0x41671f,_0x19f269=''){const _0x59d6c5=_0x10cd;super(_0x41671f);const _0x73003f=new _0x42450f(),_0x4daeed=this[_0x59d6c5(0x145)];this[_0x59d6c5(0x148)](_0x59d6c5(0x13f),_0x19f269),_0x73003f[_0x59d6c5(0x147)]=_0x21a68a,this[_0x59d6c5(0x151)]({'tag':_0x59d6c5(0x14a),'attributes':{'class':['ck',_0x59d6c5(0x14d)]},'children':[_0x73003f,{'text':_0x4daeed['to'](_0x59d6c5(0x13f))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ad92e=_0x3c74;(function(_0x1d5d8b,_0x50a6a8){const _0x2fbd15=_0x3c74,_0x1ab42e=_0x1d5d8b();while(!![]){try{const _0x33b161=parseInt(_0x2fbd15(0x9f))/0x1+parseInt(_0x2fbd15(0x89))/0x2+-parseInt(_0x2fbd15(0x9b))/0x3+parseInt(_0x2fbd15(0xa6))/0x4+-parseInt(_0x2fbd15(0x76))/0x5+-parseInt(_0x2fbd15(0x82))/0x6*(parseInt(_0x2fbd15(0x9d))/0x7)+-parseInt(_0x2fbd15(0x9e))/0x8;if(_0x33b161===_0x50a6a8)break;else _0x1ab42e['push'](_0x1ab42e['shift']());}catch(_0x447b84){_0x1ab42e['push'](_0x1ab42e['shift']());}}}(_0x3fe6,0x841cf));import{Rect as _0x3dc2e7,global as _0x558a9e,isVisible as _0x4f12f5}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x1d0a15,IconSubmit as _0x1a36d3}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x46cad8,ButtonView as _0x96575c}from'ckeditor5/src/ui.js';function _0x3c74(_0x2d29c0,_0x4f1549){const _0x3fe636=_0x3fe6();return _0x3c74=function(_0x3c7407,_0x446ac9){_0x3c7407=_0x3c7407-0x71;let _0x398eba=_0x3fe636[_0x3c7407];return _0x398eba;},_0x3c74(_0x2d29c0,_0x4f1549);}import{getTranslation as _0x382c79}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x46cad8{[_0x2ad92e(0x90)];[_0x2ad92e(0x73)];constructor(_0x5e5fab,_0x2682b5){const _0x35a95a=_0x2ad92e;super(_0x5e5fab,_0x2682b5),this[_0x35a95a(0x7c)][_0x35a95a(0x7e)][_0x35a95a(0x85)]=0x1,this[_0x35a95a(0x7c)][_0x35a95a(0x7e)][_0x35a95a(0x98)]=0x3,this[_0x35a95a(0x90)]=this[_0x35a95a(0x84)](),this[_0x35a95a(0x73)]=this[_0x35a95a(0x72)](),this[_0x35a95a(0xa3)][_0x35a95a(0x92)](this[_0x35a95a(0x73)],0x1),this[_0x35a95a(0xa3)][_0x35a95a(0x92)](this[_0x35a95a(0x90)]);}[_0x2ad92e(0x83)](){const _0x4d1dc3=_0x2ad92e;super[_0x4d1dc3(0x83)](),this[_0x4d1dc3(0x7c)][_0x4d1dc3(0x74)][_0x4d1dc3(0x92)](this[_0x4d1dc3(0x73)]),this[_0x4d1dc3(0xa1)][_0x4d1dc3(0x92)](this[_0x4d1dc3(0x90)]),this[_0x4d1dc3(0x78)][_0x4d1dc3(0x79)](_0x4d1dc3(0xa0),(_0x1692f9,_0x3189f3)=>{const _0xbb1417=_0x4d1dc3;_0x1692f9[_0xbb1417(0x7f)]==this[_0xbb1417(0x7c)][_0xbb1417(0x7e)][_0xbb1417(0x8a)]&&(this[_0xbb1417(0x88)](),_0x3189f3());});}[_0x2ad92e(0x84)](){const _0x545c8c=_0x2ad92e,_0x20dad5=new _0x96575c(this[_0x545c8c(0x8f)]),_0x3afcb9=this[_0x545c8c(0x8f)];return _0x20dad5[_0x545c8c(0x79)]({'icon':_0x1a36d3,'label':_0x382c79(_0x3afcb9,_0x545c8c(0x77)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x545c8c(0x7a)}),_0x20dad5['on'](_0x545c8c(0x87),()=>{const _0x49dc22=_0x545c8c;this[_0x49dc22(0x88)]();}),_0x20dad5[_0x545c8c(0xa8)](_0x545c8c(0x9a))['to'](this[_0x545c8c(0x7c)][_0x545c8c(0x7e)],_0x545c8c(0x86),this,_0x545c8c(0x9a),(_0x24f4f6,_0x2da522)=>!_0x24f4f6&&_0x2da522),_0x20dad5;}[_0x2ad92e(0x72)](){const _0x4b3615=_0x2ad92e,_0x5646ec=new _0x96575c(this[_0x4b3615(0x8f)]),_0x3007e5=this[_0x4b3615(0x93)],_0x1e8f3f=this[_0x4b3615(0x8f)];_0x5646ec[_0x4b3615(0x79)]({'label':_0x382c79(_0x1e8f3f,_0x4b3615(0x99)),'withText':!0x1,'icon':_0x1d0a15,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x4b3615(0x7d)}),_0x5646ec[_0x4b3615(0xa8)](_0x4b3615(0x8c))['to'](_0x3007e5,_0x4b3615(0x8e)),_0x5646ec[_0x4b3615(0xa8)](_0x4b3615(0x9a))['to'](this,_0x4b3615(0x9a)),_0x5646ec['on'](_0x4b3615(0x87),()=>{const _0x1b0f74=_0x4b3615;_0x3007e5[_0x1b0f74(0x8e)]=!_0x3007e5[_0x1b0f74(0x8e)],_0x3007e5[_0x1b0f74(0x8e)]?this[_0x1b0f74(0xa2)][_0x1b0f74(0x97)]():this[_0x1b0f74(0x97)]();});const _0x38fe63=()=>{const _0x1f45b5=_0x4b3615;_0x558a9e[_0x1f45b5(0xa4)][_0x1f45b5(0xa7)](()=>{const _0xbfcff8=_0x1f45b5;if(_0x4f12f5(this[_0xbfcff8(0x8a)])){const _0x5b8009=new _0x3dc2e7(this[_0xbfcff8(0x7c)][_0xbfcff8(0x7e)][_0xbfcff8(0x8a)]),_0x525150=_0x5b8009[_0xbfcff8(0xa5)],_0x168a5d=_0xbfcff8(0x91)===_0x1e8f3f[_0xbfcff8(0x80)]?_0xbfcff8(0x94):_0xbfcff8(0x75);_0x5b8009[_0xbfcff8(0x81)](),_0x5646ec[_0xbfcff8(0x8a)][_0xbfcff8(0x7b)][_0x168a5d]=_0x525150-_0x5b8009[_0xbfcff8(0xa5)]+0x1+'px';}});};return this[_0x4b3615(0x7c)][_0x4b3615(0x7e)]['on'](_0x4b3615(0x71),_0x38fe63),this['on'](_0x4b3615(0x83),_0x38fe63),_0x5646ec;}[_0x2ad92e(0x88)](){const _0x4dbc46=_0x2ad92e,_0x204d1e=this[_0x4dbc46(0x7c)][_0x4dbc46(0x7e)][_0x4dbc46(0x8a)][_0x4dbc46(0x96)];this[_0x4dbc46(0x9c)](_0x4dbc46(0x88),_0x204d1e);}[_0x2ad92e(0x97)](_0x3a7c16){const _0x2f38c5=_0x2ad92e;-0x1===_0x3a7c16?this[_0x2f38c5(0x8b)][_0x2f38c5(0x8d)]():this[_0x2f38c5(0x8b)][_0x2f38c5(0x95)]();}}function _0x3fe6(){const _0x2fe37e=['add','resultsView','left','focusFirst','value','focus','maxRows','History','isEnabled','2565678ctFozl','fire','534562wIqapD','2206024ivkjwx','505114LNnZDt','enter','children','filteredView','focusableChildren','window','width','3122580rDdBlc','requestAnimationFrame','bind','update','_createShowHistoryButton','showHistoryButtonView','fieldWrapperChildren','right','72315gWsRfW','Submit','keystrokes','set','ck-ai-form__submit','style','queryView','ck-ai-form__toggle-history','fieldView','target','uiLanguageDirection','excludeScrollbarsAndBorders','6SZHJVW','render','_createSubmitButton','minRows','isEmpty','execute','submit','954368xTGCyY','element','focusCycler','isOn','focusLast','isVisible','locale','submitButtonView','rtl'];_0x3fe6=function(){return _0x2fe37e;};return _0x3fe6();}
23
+ const _0xf07f3a=_0x427f;(function(_0x22c388,_0x189f51){const _0x2f1cd2=_0x427f,_0x13b63b=_0x22c388();while(!![]){try{const _0x4eb99b=parseInt(_0x2f1cd2(0xd4))/0x1*(parseInt(_0x2f1cd2(0xca))/0x2)+parseInt(_0x2f1cd2(0xcc))/0x3+parseInt(_0x2f1cd2(0xb9))/0x4*(parseInt(_0x2f1cd2(0xb8))/0x5)+-parseInt(_0x2f1cd2(0xd9))/0x6+parseInt(_0x2f1cd2(0xdf))/0x7*(-parseInt(_0x2f1cd2(0xb4))/0x8)+-parseInt(_0x2f1cd2(0xd5))/0x9+parseInt(_0x2f1cd2(0xc5))/0xa;if(_0x4eb99b===_0x189f51)break;else _0x13b63b['push'](_0x13b63b['shift']());}catch(_0x3de603){_0x13b63b['push'](_0x13b63b['shift']());}}}(_0x5f20,0x832d4));import{Rect as _0x21b497,global as _0x17a5d2,isVisible as _0x1e0d8d}from'ckeditor5/src/utils.js';function _0x427f(_0x14db5d,_0x1c205e){const _0x5f2078=_0x5f20();return _0x427f=function(_0x427f6e,_0x23ae2f){_0x427f6e=_0x427f6e-0xb4;let _0x118d50=_0x5f2078[_0x427f6e];return _0x118d50;},_0x427f(_0x14db5d,_0x1c205e);}import{IconAIHistory as _0x728cab,IconSubmit as _0x51da7d}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x3dc5c6,ButtonView as _0x6f9a7c}from'ckeditor5/src/ui.js';function _0x5f20(){const _0x12fe77=['locale','103101SxIQRw','100359iONmhg','requestAnimationFrame','focus','History','1334550UaCdYW','window','minRows','update','isEmpty','resultsView','28IzmqMt','enter','left','execute','showHistoryButtonView','focusLast','isEnabled','submitButtonView','_createSubmitButton','excludeScrollbarsAndBorders','children','right','bind','filteredView','isVisible','1610768oZyIQg','value','focusFirst','width','1642870WnlPaZ','4xOzeNI','isOn','focusCycler','queryView','fieldWrapperChildren','ck-ai-form__toggle-history','maxRows','keystrokes','uiLanguageDirection','focusableChildren','element','ck-ai-form__submit','5032360XxHTlo','style','rtl','fieldView','add','6VnalOO','set','1305441UBaxBj','_createShowHistoryButton','submit','target','fire','Submit','render'];_0x5f20=function(){return _0x12fe77;};return _0x5f20();}import{getTranslation as _0x5dd869}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x3dc5c6{[_0xf07f3a(0xe6)];[_0xf07f3a(0xe3)];constructor(_0x7de20f,_0x5c1403){const _0x22cabf=_0xf07f3a;super(_0x7de20f,_0x5c1403),this[_0x22cabf(0xbc)][_0x22cabf(0xc8)][_0x22cabf(0xdb)]=0x1,this[_0x22cabf(0xbc)][_0x22cabf(0xc8)][_0x22cabf(0xbf)]=0x3,this[_0x22cabf(0xe6)]=this[_0x22cabf(0xe7)](),this[_0x22cabf(0xe3)]=this[_0x22cabf(0xcd)](),this[_0x22cabf(0xc2)][_0x22cabf(0xc9)](this[_0x22cabf(0xe3)],0x1),this[_0x22cabf(0xc2)][_0x22cabf(0xc9)](this[_0x22cabf(0xe6)]);}[_0xf07f3a(0xd2)](){const _0x2bf391=_0xf07f3a;super[_0x2bf391(0xd2)](),this[_0x2bf391(0xbc)][_0x2bf391(0xbd)][_0x2bf391(0xc9)](this[_0x2bf391(0xe3)]),this[_0x2bf391(0xe9)][_0x2bf391(0xc9)](this[_0x2bf391(0xe6)]),this[_0x2bf391(0xc0)][_0x2bf391(0xcb)](_0x2bf391(0xe0),(_0x41cb15,_0x201b5e)=>{const _0x4c3ff5=_0x2bf391;_0x41cb15[_0x4c3ff5(0xcf)]==this[_0x4c3ff5(0xbc)][_0x4c3ff5(0xc8)][_0x4c3ff5(0xc3)]&&(this[_0x4c3ff5(0xce)](),_0x201b5e());});}[_0xf07f3a(0xe7)](){const _0x35f411=_0xf07f3a,_0x11e4e1=new _0x6f9a7c(this[_0x35f411(0xd3)]),_0x32fa32=this[_0x35f411(0xd3)];return _0x11e4e1[_0x35f411(0xcb)]({'icon':_0x51da7d,'label':_0x5dd869(_0x32fa32,_0x35f411(0xd1)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x35f411(0xc4)}),_0x11e4e1['on'](_0x35f411(0xe2),()=>{const _0x45b0c2=_0x35f411;this[_0x45b0c2(0xce)]();}),_0x11e4e1[_0x35f411(0xeb)](_0x35f411(0xe5))['to'](this[_0x35f411(0xbc)][_0x35f411(0xc8)],_0x35f411(0xdd),this,_0x35f411(0xe5),(_0x581240,_0x112b82)=>!_0x581240&&_0x112b82),_0x11e4e1;}[_0xf07f3a(0xcd)](){const _0x336432=_0xf07f3a,_0x247342=new _0x6f9a7c(this[_0x336432(0xd3)]),_0x44026b=this[_0x336432(0xde)],_0x477432=this[_0x336432(0xd3)];_0x247342[_0x336432(0xcb)]({'label':_0x5dd869(_0x477432,_0x336432(0xd8)),'withText':!0x1,'icon':_0x728cab,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x336432(0xbe)}),_0x247342[_0x336432(0xeb)](_0x336432(0xba))['to'](_0x44026b,_0x336432(0xed)),_0x247342[_0x336432(0xeb)](_0x336432(0xe5))['to'](this,_0x336432(0xe5)),_0x247342['on'](_0x336432(0xe2),()=>{const _0x5561e1=_0x336432;_0x44026b[_0x5561e1(0xed)]=!_0x44026b[_0x5561e1(0xed)],_0x44026b[_0x5561e1(0xed)]?this[_0x5561e1(0xec)][_0x5561e1(0xd7)]():this[_0x5561e1(0xd7)]();});const _0x2a2c85=()=>{const _0x22a607=_0x336432;_0x17a5d2[_0x22a607(0xda)][_0x22a607(0xd6)](()=>{const _0x5ce04a=_0x22a607;if(_0x1e0d8d(this[_0x5ce04a(0xc3)])){const _0x447e41=new _0x21b497(this[_0x5ce04a(0xbc)][_0x5ce04a(0xc8)][_0x5ce04a(0xc3)]),_0x32c750=_0x447e41[_0x5ce04a(0xb7)],_0x467bbf=_0x5ce04a(0xc7)===_0x477432[_0x5ce04a(0xc1)]?_0x5ce04a(0xe1):_0x5ce04a(0xea);_0x447e41[_0x5ce04a(0xe8)](),_0x247342[_0x5ce04a(0xc3)][_0x5ce04a(0xc6)][_0x467bbf]=_0x32c750-_0x447e41[_0x5ce04a(0xb7)]+0x1+'px';}});};return this[_0x336432(0xbc)][_0x336432(0xc8)]['on'](_0x336432(0xdc),_0x2a2c85),this['on'](_0x336432(0xd2),_0x2a2c85),_0x247342;}[_0xf07f3a(0xce)](){const _0x1fc8dc=_0xf07f3a,_0x3652ca=this[_0x1fc8dc(0xbc)][_0x1fc8dc(0xc8)][_0x1fc8dc(0xc3)][_0x1fc8dc(0xb5)];this[_0x1fc8dc(0xd0)](_0x1fc8dc(0xce),_0x3652ca);}[_0xf07f3a(0xd7)](_0x5270bf){const _0x7f781f=_0xf07f3a;-0x1===_0x5270bf?this[_0x7f781f(0xbb)][_0x7f781f(0xe4)]():this[_0x7f781f(0xbb)][_0x7f781f(0xb6)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f7a6d=_0x8380;(function(_0x479b2f,_0x1383cb){const _0x1ae601=_0x8380,_0x178194=_0x479b2f();while(!![]){try{const _0x22ca1a=-parseInt(_0x1ae601(0xa9))/0x1*(parseInt(_0x1ae601(0x9d))/0x2)+-parseInt(_0x1ae601(0xaa))/0x3+parseInt(_0x1ae601(0xa4))/0x4+-parseInt(_0x1ae601(0x9f))/0x5+-parseInt(_0x1ae601(0xb3))/0x6*(-parseInt(_0x1ae601(0x99))/0x7)+-parseInt(_0x1ae601(0xa3))/0x8+parseInt(_0x1ae601(0xb0))/0x9;if(_0x22ca1a===_0x1383cb)break;else _0x178194['push'](_0x178194['shift']());}catch(_0x55f0d6){_0x178194['push'](_0x178194['shift']());}}}(_0x5418,0xbbf18));function _0x8380(_0x2355f7,_0x396182){const _0x541871=_0x5418();return _0x8380=function(_0x83804d,_0x281bdc){_0x83804d=_0x83804d-0x91;let _0x48e33f=_0x541871[_0x83804d];return _0x48e33f;},_0x8380(_0x2355f7,_0x396182);}import{ToolbarView as _0x5eb22a,ButtonView as _0x1f0e95}from'ckeditor5/src/ui.js';function _0x5418(){const _0x5c4a9c=['label','1874694nJlEcF','insert','7521265tVyfbW','set','stopButton','toUpperCase','7122728MZezFr','5202308TKoluH','tryAgainButton','ck-button-action','replace','extendTemplate','1AeMSdI','4348488tcrNor','bind','isVisible','replaceButton','insertButton','REPLACE','33633882ZmSuuS','addMany','ck-ai-form__toolbar','237036bvSYGs','bindTemplate','items','mainAction','ck-hidden','_createButton','_CONTENT','locale','Insert\x20below','Stop','91AoGiBn','Try\x20again','AI_'];_0x5418=function(){return _0x5c4a9c;};return _0x5418();}import{getTranslation as _0xa2ec75}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x1f7a6d(0xa7),'INSERT':_0x1f7a6d(0x9e)};export class AIFormToolbarView extends _0x5eb22a{constructor(_0x1e2237){const _0x55ae60=_0x1f7a6d;super(_0x1e2237),this[_0x55ae60(0xa0)](_0x55ae60(0xac),!0x1),this[_0x55ae60(0xa0)](_0x55ae60(0x92),AIFormToolbarViewMainActionLabel[_0x55ae60(0xaf)]),this[_0x55ae60(0xad)]=this[_0x55ae60(0x94)]('',_0x55ae60(0xa6)),this[_0x55ae60(0xad)][_0x55ae60(0xab)](_0x55ae60(0x9c))['to'](this,_0x55ae60(0x92),_0x247253=>_0xa2ec75(_0x1e2237,_0x55ae60(0x9b)+_0x247253[_0x55ae60(0xa2)]()+_0x55ae60(0x95))),this[_0x55ae60(0xae)]=this[_0x55ae60(0x94)](_0xa2ec75(_0x1e2237,_0x55ae60(0x97))),this[_0x55ae60(0xa5)]=this[_0x55ae60(0x94)](_0xa2ec75(_0x1e2237,_0x55ae60(0x9a))),this[_0x55ae60(0xa1)]=this[_0x55ae60(0x94)](_0xa2ec75(_0x1e2237,_0x55ae60(0x98)));const _0xf7111=this[_0x55ae60(0xb4)];this[_0x55ae60(0xa8)]({'attributes':{'class':[_0x55ae60(0xb2),_0xf7111['if'](_0x55ae60(0xac),_0x55ae60(0x93),_0x4a82de=>!_0x4a82de)]}}),this[_0x55ae60(0x91)][_0x55ae60(0xb1)]([this[_0x55ae60(0xad)],this[_0x55ae60(0xae)],this[_0x55ae60(0xa5)],this[_0x55ae60(0xa1)]]);}[_0x1f7a6d(0x94)](_0x111200,_0x6937ba){const _0x5086d8=_0x1f7a6d,_0x3f2dd9=new _0x1f0e95(this[_0x5086d8(0x96)]);return _0x3f2dd9[_0x5086d8(0xa0)]({'label':_0x111200,'class':_0x6937ba||'','isVisible':!0x0,'withText':!0x0}),_0x3f2dd9;}}
23
+ const _0xd62341=_0x276f;function _0x30ad(){const _0x872fd1=['label','638605srLvxx','replace','locale','set','157608GbgDKp','toUpperCase','993754LMJfcg','2079VvkfIG','Try\x20again','1OvpAYn','isVisible','bind','addMany','ck-ai-form__toolbar','Insert\x20below','tryAgainButton','1571601hZehNJ','42icTYcc','6310VNkpDI','ck-hidden','insertButton','stopButton','replaceButton','extendTemplate','REPLACE','16293761SGkLsv','4QYfuhu','_CONTENT','AI_','_createButton','ck-button-action','bindTemplate','insert','mainAction','Stop','items','185552UkhYeu'];_0x30ad=function(){return _0x872fd1;};return _0x30ad();}(function(_0x43ac95,_0x56c2e1){const _0x406cac=_0x276f,_0x32b2a9=_0x43ac95();while(!![]){try{const _0x3d7d77=parseInt(_0x406cac(0x153))/0x1*(-parseInt(_0x406cac(0x150))/0x2)+-parseInt(_0x406cac(0x15a))/0x3+-parseInt(_0x406cac(0x164))/0x4*(parseInt(_0x406cac(0x14a))/0x5)+parseInt(_0x406cac(0x14e))/0x6*(-parseInt(_0x406cac(0x15b))/0x7)+-parseInt(_0x406cac(0x148))/0x8+-parseInt(_0x406cac(0x151))/0x9*(-parseInt(_0x406cac(0x15c))/0xa)+parseInt(_0x406cac(0x163))/0xb;if(_0x3d7d77===_0x56c2e1)break;else _0x32b2a9['push'](_0x32b2a9['shift']());}catch(_0x36a2ef){_0x32b2a9['push'](_0x32b2a9['shift']());}}}(_0x30ad,0x48b11));function _0x276f(_0x147607,_0xe0932f){const _0x30ad67=_0x30ad();return _0x276f=function(_0x276fff,_0x4cda4b){_0x276fff=_0x276fff-0x13f;let _0x48991a=_0x30ad67[_0x276fff];return _0x48991a;},_0x276f(_0x147607,_0xe0932f);}import{ToolbarView as _0x322af6,ButtonView as _0x53dd7f}from'ckeditor5/src/ui.js';import{getTranslation as _0x516d27}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0xd62341(0x14b),'INSERT':_0xd62341(0x144)};export class AIFormToolbarView extends _0x322af6{constructor(_0x5ef703){const _0x59faf0=_0xd62341;super(_0x5ef703),this[_0x59faf0(0x14d)](_0x59faf0(0x154),!0x1),this[_0x59faf0(0x14d)](_0x59faf0(0x145),AIFormToolbarViewMainActionLabel[_0x59faf0(0x162)]),this[_0x59faf0(0x160)]=this[_0x59faf0(0x141)]('',_0x59faf0(0x142)),this[_0x59faf0(0x160)][_0x59faf0(0x155)](_0x59faf0(0x149))['to'](this,_0x59faf0(0x145),_0x4553f9=>_0x516d27(_0x5ef703,_0x59faf0(0x140)+_0x4553f9[_0x59faf0(0x14f)]()+_0x59faf0(0x13f))),this[_0x59faf0(0x15e)]=this[_0x59faf0(0x141)](_0x516d27(_0x5ef703,_0x59faf0(0x158))),this[_0x59faf0(0x159)]=this[_0x59faf0(0x141)](_0x516d27(_0x5ef703,_0x59faf0(0x152))),this[_0x59faf0(0x15f)]=this[_0x59faf0(0x141)](_0x516d27(_0x5ef703,_0x59faf0(0x146)));const _0x23431b=this[_0x59faf0(0x143)];this[_0x59faf0(0x161)]({'attributes':{'class':[_0x59faf0(0x157),_0x23431b['if'](_0x59faf0(0x154),_0x59faf0(0x15d),_0x564de6=>!_0x564de6)]}}),this[_0x59faf0(0x147)][_0x59faf0(0x156)]([this[_0x59faf0(0x160)],this[_0x59faf0(0x15e)],this[_0x59faf0(0x159)],this[_0x59faf0(0x15f)]]);}[_0xd62341(0x141)](_0x20999c,_0x2d601e){const _0x68737a=_0xd62341,_0x81bdd=new _0x53dd7f(this[_0x68737a(0x14c)]);return _0x81bdd[_0x68737a(0x14d)]({'label':_0x20999c,'class':_0x2d601e||'','isVisible':!0x0,'withText':!0x0}),_0x81bdd;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x35d1(){const _0x2e8d9f=['element','startProcessing','trim','isProcessing','467583SvHjEk','Empty\x20history','delegate','_createToolbar','historyGroupView','replaceContent','focus','listenTo','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-hidden','errorView','insertContentBelow','bind','11722272dvljKf','tryAgainButton','label','fire','isError','_createPromptView','copyButtonView','bindTo','handleError','chain','700176BloklX','value','submitPrompt','1087632mOgoyb','6VmwnMb','focusTracker','ck-ai-form','render','setTemplate','submit','promptView','fieldView','prompt','tab','set','clearHistory','add','_promptHistory','AI_ERROR_FAILED','stopButton','_createHistoryView','isEnabled','ck-ai-form-content','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusLast','finishProcessing','bindTemplate','clear','search','text','isVisible','createCollection','14788nduSHI','reset','queryView','keystrokes','_focusables','high','2617695oJbGoY','contentArea','stopProcessing','focusCycler','Ask\x20AI\x20to\x20edit\x20or\x20generate','2153943fKTPWu','replaceButton','insertButton','REPLACE','shift\x20+\x20tab','tryAgainEvent','locale','focusFirst','execute','mainAction','toolbar','items','div'];_0x35d1=function(){return _0x2e8d9f;};return _0x35d1();}const _0xd6a836=_0xf3fa;(function(_0x2cc29d,_0x27c4d7){const _0x577107=_0xf3fa,_0x18d891=_0x2cc29d();while(!![]){try{const _0x461177=parseInt(_0x577107(0x179))/0x1+-parseInt(_0x577107(0x13d))/0x2+-parseInt(_0x577107(0x168))/0x3+parseInt(_0x577107(0x15d))/0x4+parseInt(_0x577107(0x163))/0x5*(-parseInt(_0x577107(0x141))/0x6)+parseInt(_0x577107(0x140))/0x7+parseInt(_0x577107(0x133))/0x8;if(_0x461177===_0x27c4d7)break;else _0x18d891['push'](_0x18d891['shift']());}catch(_0x46e7cb){_0x18d891['push'](_0x18d891['shift']());}}}(_0x35d1,0x7a26c));import{FocusTracker as _0x3b34eb,KeystrokeHandler as _0x5b5e24}from'ckeditor5/src/utils.js';import{View as _0x3e9b83,FocusCycler as _0x3fa3c1,createLabeledTextarea as _0x2b7e8a}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3efd8e,AIFormToolbarViewMainActionLabel as _0x1c9b6d}from'./aiformtoolbarview.js';import{AIFormContentArea as _0xc96067}from'./aiformcontentarea.js';import{AIFormErrorView as _0x12a7c2}from'./aiformerrorview.js';import{AIFormPromptView as _0x1c2f6b}from'./aiformpromptview.js';import{AIHistoryListView as _0x451606}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x4b0876}from'./aihistorylistitemview.js';import{PromptHistory as _0x216173}from'./prompthistory.js';import{getTranslation as _0x4a025b}from'../../utils/common-translations.js';import{escape as _0x39c286}from'es-toolkit/compat';function _0xf3fa(_0x3dcce0,_0x37e4da){const _0x35d1a0=_0x35d1();return _0xf3fa=function(_0xf3fa4a,_0x594255){_0xf3fa4a=_0xf3fa4a-0x12b;let _0x250bc6=_0x35d1a0[_0xf3fa4a];return _0x250bc6;},_0xf3fa(_0x3dcce0,_0x37e4da);}export class AIFormView extends _0x3e9b83{[_0xd6a836(0x142)];[_0xd6a836(0x160)];[_0xd6a836(0x164)];[_0xd6a836(0x172)];[_0xd6a836(0x147)];[_0xd6a836(0x130)];[_0xd6a836(0x161)];[_0xd6a836(0x166)];[_0xd6a836(0x14e)];constructor(_0x4abf63,_0x2da250,_0x30583=''){const _0x8a7e02=_0xd6a836;super(_0x4abf63),this[_0x8a7e02(0x14b)](_0x8a7e02(0x152),!0x0),this[_0x8a7e02(0x14b)](_0x8a7e02(0x178),!0x1),this[_0x8a7e02(0x14b)](_0x8a7e02(0x149),''),this[_0x8a7e02(0x14b)](_0x8a7e02(0x13e),''),this[_0x8a7e02(0x14b)](_0x8a7e02(0x137),!0x1),this[_0x8a7e02(0x14b)](_0x8a7e02(0x171),_0x1c9b6d[_0x8a7e02(0x16b)]),this[_0x8a7e02(0x14e)]=new _0x216173(),this[_0x8a7e02(0x130)]=new _0x12a7c2(_0x4abf63),this[_0x8a7e02(0x164)]=new _0xc96067(_0x4abf63,_0x30583),this[_0x8a7e02(0x164)][_0x8a7e02(0x132)](_0x8a7e02(0x178))['to'](this),this[_0x8a7e02(0x164)][_0x8a7e02(0x132)](_0x8a7e02(0x13e))['to'](this),this[_0x8a7e02(0x172)]=this[_0x8a7e02(0x17c)](),this[_0x8a7e02(0x172)][_0x8a7e02(0x132)](_0x8a7e02(0x171))['to'](this),this[_0x8a7e02(0x147)]=this[_0x8a7e02(0x138)](),this[_0x8a7e02(0x142)]=new _0x3b34eb(),this[_0x8a7e02(0x160)]=new _0x5b5e24(),this[_0x8a7e02(0x161)]=this[_0x8a7e02(0x15c)]([this[_0x8a7e02(0x164)],this[_0x8a7e02(0x164)][_0x8a7e02(0x139)],this[_0x8a7e02(0x172)],this[_0x8a7e02(0x147)]]),this[_0x8a7e02(0x166)]=new _0x3fa3c1({'focusables':this[_0x8a7e02(0x161)],'focusTracker':this[_0x8a7e02(0x142)],'keystrokeHandler':this[_0x8a7e02(0x160)],'actions':{'focusPrevious':_0x8a7e02(0x16c),'focusNext':_0x8a7e02(0x14a)}}),this[_0x8a7e02(0x166)][_0x8a7e02(0x13c)](this[_0x8a7e02(0x147)][_0x8a7e02(0x166)]),this[_0x8a7e02(0x147)][_0x8a7e02(0x15f)][_0x8a7e02(0x148)][_0x8a7e02(0x132)](_0x8a7e02(0x13e))['to'](this,_0x8a7e02(0x149));const _0x37faca=this[_0x8a7e02(0x157)];this[_0x8a7e02(0x145)]({'tag':_0x8a7e02(0x174),'attributes':{'class':['ck',_0x8a7e02(0x143),_0x2da250],'tabindex':'-1'},'children':[{'tag':_0x8a7e02(0x174),'attributes':{'class':['ck',_0x8a7e02(0x153)]},'children':[{'tag':_0x8a7e02(0x174),'attributes':{'class':[_0x37faca['if'](_0x8a7e02(0x137),_0x8a7e02(0x12f),_0x3d2e73=>!_0x3d2e73)]},'children':[this[_0x8a7e02(0x130)]]},this[_0x8a7e02(0x164)],this[_0x8a7e02(0x172)],this[_0x8a7e02(0x147)]]}]});}[_0xd6a836(0x144)](){const _0x933c3b=_0xd6a836;super[_0x933c3b(0x144)](),this[_0x933c3b(0x142)][_0x933c3b(0x14d)](this[_0x933c3b(0x164)][_0x933c3b(0x175)]),this[_0x933c3b(0x142)][_0x933c3b(0x14d)](this[_0x933c3b(0x164)][_0x933c3b(0x139)][_0x933c3b(0x175)]),this[_0x933c3b(0x142)][_0x933c3b(0x14d)](this[_0x933c3b(0x172)][_0x933c3b(0x175)]),this[_0x933c3b(0x142)][_0x933c3b(0x14d)](this[_0x933c3b(0x147)][_0x933c3b(0x175)]),this[_0x933c3b(0x160)][_0x933c3b(0x12d)](this[_0x933c3b(0x175)]);}[_0xd6a836(0x12c)](_0x13432f=0x1){const _0x3c0f11=_0xd6a836;-0x1===_0x13432f?this[_0x3c0f11(0x166)][_0x3c0f11(0x155)]():this[_0x3c0f11(0x166)][_0x3c0f11(0x16f)]();}[_0xd6a836(0x15e)](){const _0x2d38bd=_0xd6a836;this[_0x2d38bd(0x149)]='',this[_0x2d38bd(0x13e)]='',this[_0x2d38bd(0x137)]=!0x1,this[_0x2d38bd(0x147)][_0x2d38bd(0x15e)](),this[_0x2d38bd(0x164)][_0x2d38bd(0x15b)]=!0x1,this[_0x2d38bd(0x172)][_0x2d38bd(0x15b)]=!0x1;}[_0xd6a836(0x138)](){const _0x4a98bc=_0xd6a836,_0x260e74=this[_0x4a98bc(0x16e)],_0x2cdcac=new _0x1c2f6b(_0x260e74,{'queryView':{'label':_0x4a025b(_0x260e74,_0x4a98bc(0x167)),'creator':_0x2b7e8a,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x4a025b(_0x260e74,_0x4a98bc(0x17a)),'secondary':_0x4a025b(_0x260e74,_0x4a98bc(0x154))}}},'filteredView':this[_0x4a98bc(0x151)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x2cdcac[_0x4a98bc(0x132)](_0x4a98bc(0x152))['to'](this,_0x4a98bc(0x152),this,_0x4a98bc(0x178),(_0x3c8ea4,_0x1d85d1)=>_0x3c8ea4&&!_0x1d85d1),this[_0x4a98bc(0x12d)](_0x2cdcac,_0x4a98bc(0x146),(_0xc01f2c,_0x78b573)=>{const _0x5d0bce=_0x4a98bc;this[_0x5d0bce(0x149)]=_0x78b573;const _0x396ebb=_0x39c286(_0x78b573);this[_0x5d0bce(0x136)](_0x5d0bce(0x13f),_0x396ebb),_0x78b573[_0x5d0bce(0x177)]()&&this[_0x5d0bce(0x14e)][_0x5d0bce(0x14d)]({'prompt':_0x396ebb},0x0);},{'priority':_0x4a98bc(0x162)}),_0x2cdcac;}[_0xd6a836(0x151)](){const _0x30b899=_0xd6a836,_0x3be426=new _0x451606(this[_0x30b899(0x16e)]);return _0x3be426[_0x30b899(0x17d)][_0x30b899(0x173)][_0x30b899(0x13a)](this[_0x30b899(0x14e)])['as'](_0x4b0876),_0x3be426['on'](_0x30b899(0x14c),()=>{const _0x4c5c69=_0x30b899;this[_0x4c5c69(0x14e)][_0x4c5c69(0x158)](),this[_0x4c5c69(0x147)][_0x4c5c69(0x159)](''),this[_0x4c5c69(0x147)][_0x4c5c69(0x12c)]();}),_0x3be426;}[_0xd6a836(0x17c)](){const _0x1f33a5=_0xd6a836,_0x44931c=new _0x3efd8e(this[_0x1f33a5(0x16e)]);return _0x44931c[_0x1f33a5(0x169)][_0x1f33a5(0x132)](_0x1f33a5(0x152))['to'](this,_0x1f33a5(0x152),this,_0x1f33a5(0x178),this,_0x1f33a5(0x13e),(_0x622b8,_0x5a9d97,_0xa721fa)=>_0x622b8&&!_0x5a9d97&&!!_0xa721fa),_0x44931c[_0x1f33a5(0x169)][_0x1f33a5(0x17b)](_0x1f33a5(0x170))['to'](this,_0x1f33a5(0x12b)),_0x44931c[_0x1f33a5(0x16a)][_0x1f33a5(0x132)](_0x1f33a5(0x152))['to'](this,_0x1f33a5(0x152),this,_0x1f33a5(0x178),this,_0x1f33a5(0x13e),(_0x3f06ea,_0x14bd73,_0x2af92a)=>_0x3f06ea&&!_0x14bd73&&!!_0x2af92a),_0x44931c[_0x1f33a5(0x16a)][_0x1f33a5(0x17b)](_0x1f33a5(0x170))['to'](this,_0x1f33a5(0x131)),_0x44931c[_0x1f33a5(0x134)][_0x1f33a5(0x132)](_0x1f33a5(0x152))['to'](this,_0x1f33a5(0x152),this,_0x1f33a5(0x178),(_0x1a24aa,_0x4ffc11)=>_0x1a24aa&&!_0x4ffc11),_0x44931c[_0x1f33a5(0x134)][_0x1f33a5(0x17b)](_0x1f33a5(0x170))['to'](this,_0x1f33a5(0x16d)),_0x44931c[_0x1f33a5(0x150)][_0x1f33a5(0x132)](_0x1f33a5(0x152))['to'](this,_0x1f33a5(0x178)),_0x44931c[_0x1f33a5(0x150)][_0x1f33a5(0x17b)](_0x1f33a5(0x170))['to'](this,_0x1f33a5(0x165)),_0x44931c;}[_0xd6a836(0x176)](){const _0x175806=_0xd6a836;this[_0x175806(0x13e)]='',this[_0x175806(0x137)]=!0x1,this[_0x175806(0x178)]=!0x0,this[_0x175806(0x164)][_0x175806(0x15b)]=!0x0,this[_0x175806(0x172)][_0x175806(0x15b)]=!0x0,this[_0x175806(0x164)][_0x175806(0x12c)]();}[_0xd6a836(0x156)](){const _0x4d09bf=_0xd6a836,_0x29ba02=this[_0x4d09bf(0x16e)];this[_0x4d09bf(0x178)]=!0x1,this[_0x4d09bf(0x149)]='',this[_0x4d09bf(0x147)][_0x4d09bf(0x15e)](),this[_0x4d09bf(0x13e)]&&(this[_0x4d09bf(0x147)][_0x4d09bf(0x15f)][_0x4d09bf(0x135)]=_0x4a025b(_0x29ba02,_0x4d09bf(0x12e)));}[_0xd6a836(0x13b)](_0x3688d1){const _0x53468e=_0xd6a836,_0x51a039=this[_0x53468e(0x16e)];this[_0x53468e(0x156)](),this[_0x53468e(0x137)]=!0x0,this[_0x53468e(0x130)][_0x53468e(0x15a)]=_0x3688d1||_0x4a025b(_0x51a039,_0x53468e(0x14f)),this[_0x53468e(0x13e)]||(this[_0x53468e(0x164)][_0x53468e(0x15b)]=!0x1);}}
23
+ const _0xefb756=_0x22b5;(function(_0x52cffa,_0x174b92){const _0x452a5c=_0x22b5,_0x1f7c1b=_0x52cffa();while(!![]){try{const _0x47c9dc=parseInt(_0x452a5c(0xbb))/0x1+-parseInt(_0x452a5c(0xcc))/0x2*(-parseInt(_0x452a5c(0xeb))/0x3)+-parseInt(_0x452a5c(0xf3))/0x4+parseInt(_0x452a5c(0xfb))/0x5+parseInt(_0x452a5c(0xf1))/0x6+-parseInt(_0x452a5c(0xe5))/0x7+-parseInt(_0x452a5c(0xb9))/0x8*(parseInt(_0x452a5c(0xec))/0x9);if(_0x47c9dc===_0x174b92)break;else _0x1f7c1b['push'](_0x1f7c1b['shift']());}catch(_0x71be72){_0x1f7c1b['push'](_0x1f7c1b['shift']());}}}(_0x259e,0x614c6));import{FocusTracker as _0x1a9ac5,KeystrokeHandler as _0x428fff}from'ckeditor5/src/utils.js';import{View as _0xd4e1f6,FocusCycler as _0x2007a8,createLabeledTextarea as _0x1990cf}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x1f62dc,AIFormToolbarViewMainActionLabel as _0x46724a}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x3f56a2}from'./aiformcontentarea.js';import{AIFormErrorView as _0x4ca828}from'./aiformerrorview.js';import{AIFormPromptView as _0x507b75}from'./aiformpromptview.js';import{AIHistoryListView as _0xf6310d}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x20b015}from'./aihistorylistitemview.js';import{PromptHistory as _0x38a9cd}from'./prompthistory.js';import{getTranslation as _0x1ecb98}from'../../utils/common-translations.js';import{escape as _0x4bb73e}from'es-toolkit/compat';export class AIFormView extends _0xd4e1f6{[_0xefb756(0xde)];[_0xefb756(0xca)];[_0xefb756(0xe9)];[_0xefb756(0x103)];[_0xefb756(0x100)];[_0xefb756(0xe4)];[_0xefb756(0xdc)];[_0xefb756(0xbc)];[_0xefb756(0xb8)];constructor(_0x469bb5,_0x27f661,_0xfbac44=''){const _0x4c9b95=_0xefb756;super(_0x469bb5),this[_0x4c9b95(0xd2)](_0x4c9b95(0xb6),!0x0),this[_0x4c9b95(0xd2)](_0x4c9b95(0xc4),!0x1),this[_0x4c9b95(0xd2)](_0x4c9b95(0xb7),''),this[_0x4c9b95(0xd2)](_0x4c9b95(0xc8),''),this[_0x4c9b95(0xd2)](_0x4c9b95(0xcf),!0x1),this[_0x4c9b95(0xd2)](_0x4c9b95(0xcd),_0x46724a[_0x4c9b95(0xf0)]),this[_0x4c9b95(0xb8)]=new _0x38a9cd(),this[_0x4c9b95(0xe4)]=new _0x4ca828(_0x469bb5),this[_0x4c9b95(0xe9)]=new _0x3f56a2(_0x469bb5,_0xfbac44),this[_0x4c9b95(0xe9)][_0x4c9b95(0xc2)](_0x4c9b95(0xc4))['to'](this),this[_0x4c9b95(0xe9)][_0x4c9b95(0xc2)](_0x4c9b95(0xc8))['to'](this),this[_0x4c9b95(0x103)]=this[_0x4c9b95(0xe0)](),this[_0x4c9b95(0x103)][_0x4c9b95(0xc2)](_0x4c9b95(0xcd))['to'](this),this[_0x4c9b95(0x100)]=this[_0x4c9b95(0xf6)](),this[_0x4c9b95(0xde)]=new _0x1a9ac5(),this[_0x4c9b95(0xca)]=new _0x428fff(),this[_0x4c9b95(0xdc)]=this[_0x4c9b95(0xff)]([this[_0x4c9b95(0xe9)],this[_0x4c9b95(0xe9)][_0x4c9b95(0xc7)],this[_0x4c9b95(0x103)],this[_0x4c9b95(0x100)]]),this[_0x4c9b95(0xbc)]=new _0x2007a8({'focusables':this[_0x4c9b95(0xdc)],'focusTracker':this[_0x4c9b95(0xde)],'keystrokeHandler':this[_0x4c9b95(0xca)],'actions':{'focusPrevious':_0x4c9b95(0x105),'focusNext':_0x4c9b95(0xc9)}}),this[_0x4c9b95(0xbc)][_0x4c9b95(0xb5)](this[_0x4c9b95(0x100)][_0x4c9b95(0xbc)]),this[_0x4c9b95(0x100)][_0x4c9b95(0xc1)][_0x4c9b95(0xce)][_0x4c9b95(0xc2)](_0x4c9b95(0xc8))['to'](this,_0x4c9b95(0xb7));const _0x191af7=this[_0x4c9b95(0xf4)];this[_0x4c9b95(0xe3)]({'tag':_0x4c9b95(0xdd),'attributes':{'class':['ck',_0x4c9b95(0x108),_0x27f661],'tabindex':'-1'},'children':[{'tag':_0x4c9b95(0xdd),'attributes':{'class':['ck',_0x4c9b95(0xe1)]},'children':[{'tag':_0x4c9b95(0xdd),'attributes':{'class':[_0x191af7['if'](_0x4c9b95(0xcf),_0x4c9b95(0xe8),_0x28346c=>!_0x28346c)]},'children':[this[_0x4c9b95(0xe4)]]},this[_0x4c9b95(0xe9)],this[_0x4c9b95(0x103)],this[_0x4c9b95(0x100)]]}]});}[_0xefb756(0xf5)](){const _0x240114=_0xefb756;super[_0x240114(0xf5)](),this[_0x240114(0xde)][_0x240114(0xd7)](this[_0x240114(0xe9)][_0x240114(0xf9)]),this[_0x240114(0xde)][_0x240114(0xd7)](this[_0x240114(0xe9)][_0x240114(0xc7)][_0x240114(0xf9)]),this[_0x240114(0xde)][_0x240114(0xd7)](this[_0x240114(0x103)][_0x240114(0xf9)]),this[_0x240114(0xde)][_0x240114(0xd7)](this[_0x240114(0x100)][_0x240114(0xf9)]),this[_0x240114(0xca)][_0x240114(0xc5)](this[_0x240114(0xf9)]);}[_0xefb756(0xf2)](_0x4fe69f=0x1){const _0x5d0f2c=_0xefb756;-0x1===_0x4fe69f?this[_0x5d0f2c(0xbc)][_0x5d0f2c(0xe6)]():this[_0x5d0f2c(0xbc)][_0x5d0f2c(0xd1)]();}[_0xefb756(0xd0)](){const _0x555730=_0xefb756;this[_0x555730(0xb7)]='',this[_0x555730(0xc8)]='',this[_0x555730(0xcf)]=!0x1,this[_0x555730(0x100)][_0x555730(0xd0)](),this[_0x555730(0xe9)][_0x555730(0xdb)]=!0x1,this[_0x555730(0x103)][_0x555730(0xdb)]=!0x1;}[_0xefb756(0xf6)](){const _0x18026d=_0xefb756,_0x5548d6=this[_0x18026d(0x106)],_0x5058e3=new _0x507b75(_0x5548d6,{'queryView':{'label':_0x1ecb98(_0x5548d6,_0x18026d(0xfe)),'creator':_0x1990cf,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1ecb98(_0x5548d6,_0x18026d(0xc0)),'secondary':_0x1ecb98(_0x5548d6,_0x18026d(0xc3))}}},'filteredView':this[_0x18026d(0xbe)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x5058e3[_0x18026d(0xc2)](_0x18026d(0xb6))['to'](this,_0x18026d(0xb6),this,_0x18026d(0xc4),(_0x211003,_0x3923b4)=>_0x211003&&!_0x3923b4),this[_0x18026d(0xc5)](_0x5058e3,_0x18026d(0xba),(_0x45a4a3,_0x29bbd9)=>{const _0x127189=_0x18026d;this[_0x127189(0xb7)]=_0x29bbd9;const _0x44ceb6=_0x4bb73e(_0x29bbd9);this[_0x127189(0xd5)](_0x127189(0xd3),_0x44ceb6),_0x29bbd9[_0x127189(0xda)]()&&this[_0x127189(0xb8)][_0x127189(0xd7)]({'prompt':_0x44ceb6},0x0);},{'priority':_0x18026d(0xef)}),_0x5058e3;}[_0xefb756(0xbe)](){const _0x8416a0=_0xefb756,_0x2cfe71=new _0xf6310d(this[_0x8416a0(0x106)]);return _0x2cfe71[_0x8416a0(0xd8)][_0x8416a0(0x101)][_0x8416a0(0xd6)](this[_0x8416a0(0xb8)])['as'](_0x20b015),_0x2cfe71['on'](_0x8416a0(0xc6),()=>{const _0x31e9a3=_0x8416a0;this[_0x31e9a3(0xb8)][_0x31e9a3(0xfd)](),this[_0x31e9a3(0x100)][_0x31e9a3(0x102)](''),this[_0x31e9a3(0x100)][_0x31e9a3(0xf2)]();}),_0x2cfe71;}[_0xefb756(0xe0)](){const _0x22f637=_0xefb756,_0x1abbc1=new _0x1f62dc(this[_0x22f637(0x106)]);return _0x1abbc1[_0x22f637(0xea)][_0x22f637(0xc2)](_0x22f637(0xb6))['to'](this,_0x22f637(0xb6),this,_0x22f637(0xc4),this,_0x22f637(0xc8),(_0x2645eb,_0x4c055e,_0x5e9f7d)=>_0x2645eb&&!_0x4c055e&&!!_0x5e9f7d),_0x1abbc1[_0x22f637(0xea)][_0x22f637(0x107)](_0x22f637(0xe2))['to'](this,_0x22f637(0xd9)),_0x1abbc1[_0x22f637(0xdf)][_0x22f637(0xc2)](_0x22f637(0xb6))['to'](this,_0x22f637(0xb6),this,_0x22f637(0xc4),this,_0x22f637(0xc8),(_0x19adb6,_0x20d572,_0x36b3f5)=>_0x19adb6&&!_0x20d572&&!!_0x36b3f5),_0x1abbc1[_0x22f637(0xdf)][_0x22f637(0x107)](_0x22f637(0xe2))['to'](this,_0x22f637(0xbd)),_0x1abbc1[_0x22f637(0x104)][_0x22f637(0xc2)](_0x22f637(0xb6))['to'](this,_0x22f637(0xb6),this,_0x22f637(0xc4),(_0x5244ad,_0x3262ea)=>_0x5244ad&&!_0x3262ea),_0x1abbc1[_0x22f637(0x104)][_0x22f637(0x107)](_0x22f637(0xe2))['to'](this,_0x22f637(0xee)),_0x1abbc1[_0x22f637(0xf7)][_0x22f637(0xc2)](_0x22f637(0xb6))['to'](this,_0x22f637(0xc4)),_0x1abbc1[_0x22f637(0xf7)][_0x22f637(0x107)](_0x22f637(0xe2))['to'](this,_0x22f637(0xd4)),_0x1abbc1;}[_0xefb756(0xed)](){const _0x4ebca6=_0xefb756;this[_0x4ebca6(0xc8)]='',this[_0x4ebca6(0xcf)]=!0x1,this[_0x4ebca6(0xc4)]=!0x0,this[_0x4ebca6(0xe9)][_0x4ebca6(0xdb)]=!0x0,this[_0x4ebca6(0x103)][_0x4ebca6(0xdb)]=!0x0,this[_0x4ebca6(0xe9)][_0x4ebca6(0xf2)]();}[_0xefb756(0xfa)](){const _0x26f710=_0xefb756,_0x436bd4=this[_0x26f710(0x106)];this[_0x26f710(0xc4)]=!0x1,this[_0x26f710(0xb7)]='',this[_0x26f710(0x100)][_0x26f710(0xd0)](),this[_0x26f710(0xc8)]&&(this[_0x26f710(0x100)][_0x26f710(0xc1)][_0x26f710(0xcb)]=_0x1ecb98(_0x436bd4,_0x26f710(0xe7)));}[_0xefb756(0xfc)](_0x55ed12){const _0x37303a=_0xefb756,_0x12c8d2=this[_0x37303a(0x106)];this[_0x37303a(0xfa)](),this[_0x37303a(0xcf)]=!0x0,this[_0x37303a(0xe4)][_0x37303a(0xf8)]=_0x55ed12||_0x1ecb98(_0x12c8d2,_0x37303a(0xbf)),this[_0x37303a(0xc8)]||(this[_0x37303a(0xe9)][_0x37303a(0xdb)]=!0x1);}}function _0x22b5(_0x120365,_0xf14957){const _0x259e1b=_0x259e();return _0x22b5=function(_0x22b547,_0x30e710){_0x22b547=_0x22b547-0xb5;let _0x3eb7d6=_0x259e1b[_0x22b547];return _0x3eb7d6;},_0x22b5(_0x120365,_0xf14957);}function _0x259e(){const _0x48294f=['clearHistory','copyButtonView','value','tab','keystrokes','label','162446WquzVz','mainAction','fieldView','isError','reset','focusFirst','set','submitPrompt','stopProcessing','fire','bindTo','add','historyGroupView','replaceContent','trim','isVisible','_focusables','div','focusTracker','insertButton','_createToolbar','ck-ai-form-content','execute','setTemplate','errorView','1233603wLStiC','focusLast','Ask\x20AI\x20to\x20improve\x20generated\x20text','ck-hidden','contentArea','replaceButton','15idKZSR','27ctqOVw','startProcessing','tryAgainEvent','high','REPLACE','3233664aCIpTd','focus','1918580nyNRMz','bindTemplate','render','_createPromptView','stopButton','text','element','finishProcessing','3402230EwRlJy','handleError','clear','Ask\x20AI\x20to\x20edit\x20or\x20generate','createCollection','promptView','items','search','toolbar','tryAgainButton','shift\x20+\x20tab','locale','delegate','ck-ai-form','chain','isEnabled','prompt','_promptHistory','2190040dUmtTV','submit','250168TbeMdI','focusCycler','insertContentBelow','_createHistoryView','AI_ERROR_FAILED','Empty\x20history','queryView','bind','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','isProcessing','listenTo'];_0x259e=function(){return _0x48294f;};return _0x259e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e5b(_0xf6dbcc,_0x5e5c5f){const _0x23811e=_0x2381();return _0x1e5b=function(_0x1e5b40,_0x13a494){_0x1e5b40=_0x1e5b40-0x1f4;let _0x5b68da=_0x23811e[_0x1e5b40];return _0x5b68da;},_0x1e5b(_0xf6dbcc,_0x5e5c5f);}(function(_0x1269d9,_0x401e4f){const _0x186d4e=_0x1e5b,_0x84d139=_0x1269d9();while(!![]){try{const _0x14af01=parseInt(_0x186d4e(0x1fd))/0x1+parseInt(_0x186d4e(0x1f8))/0x2+parseInt(_0x186d4e(0x1fc))/0x3+parseInt(_0x186d4e(0x1f4))/0x4+-parseInt(_0x186d4e(0x203))/0x5+parseInt(_0x186d4e(0x1fb))/0x6*(-parseInt(_0x186d4e(0x1f9))/0x7)+-parseInt(_0x186d4e(0x1fe))/0x8*(parseInt(_0x186d4e(0x1f5))/0x9);if(_0x14af01===_0x401e4f)break;else _0x84d139['push'](_0x84d139['shift']());}catch(_0x34cad4){_0x84d139['push'](_0x84d139['shift']());}}}(_0x2381,0x669f6));import{ListItemView as _0x1f6c55,ButtonView as _0x295c07,ButtonLabelView as _0x1afec6}from'ckeditor5/src/ui.js';function _0x2381(){const _0xbcf534=['fire','execute','locale','133145lLfyge','1754360TTRJxQ','270594azVmYK','set','children','847258UZnwXv','7CoPzbI','add','4241466esBNfW','2306127xIBmcn','815792FkWETM','344xQdeKH','prompt'];_0x2381=function(){return _0xbcf534;};return _0x2381();}import{unescape as _0x10a58c}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x1f6c55{constructor(_0x395324){const _0x52b441=_0x1e5b;super();const _0x5e3a95=new _0x1afec6(),_0x541e73=new _0x295c07(this[_0x52b441(0x202)],_0x5e3a95);this[_0x52b441(0x1f7)][_0x52b441(0x1fa)](_0x541e73),_0x541e73[_0x52b441(0x1f6)]({'label':_0x395324[_0x52b441(0x1ff)],'withText':!0x0}),_0x541e73['on'](_0x52b441(0x201),()=>{const _0xdcd5fb=_0x52b441;this[_0xdcd5fb(0x200)](_0xdcd5fb(0x201),{'value':_0x10a58c(_0x395324[_0xdcd5fb(0x1ff)])});});}}
23
+ function _0x4844(){const _0xfac0d9=['1429489SgsZuw','116340dZQaVB','5049121ifmpWS','prompt','84832RteHqU','50548743YxbSDn','children','fire','12xhZqdY','982269MWowZi','add','locale','8689528AaagOF','set','212MJHgAd','execute'];_0x4844=function(){return _0xfac0d9;};return _0x4844();}(function(_0x3e91a7,_0x4673e0){const _0x157d5b=_0x1046,_0x17a4bc=_0x3e91a7();while(!![]){try{const _0x1e9cdf=-parseInt(_0x157d5b(0x89))/0x1+parseInt(_0x157d5b(0x8d))/0x2+parseInt(_0x157d5b(0x92))/0x3+-parseInt(_0x157d5b(0x97))/0x4*(parseInt(_0x157d5b(0x8a))/0x5)+parseInt(_0x157d5b(0x91))/0x6*(-parseInt(_0x157d5b(0x8b))/0x7)+-parseInt(_0x157d5b(0x95))/0x8+parseInt(_0x157d5b(0x8e))/0x9;if(_0x1e9cdf===_0x4673e0)break;else _0x17a4bc['push'](_0x17a4bc['shift']());}catch(_0xd9a77){_0x17a4bc['push'](_0x17a4bc['shift']());}}}(_0x4844,0xc20fc));function _0x1046(_0x23ed99,_0x22ebf9){const _0x4844ed=_0x4844();return _0x1046=function(_0x104644,_0x547605){_0x104644=_0x104644-0x89;let _0x33b9df=_0x4844ed[_0x104644];return _0x33b9df;},_0x1046(_0x23ed99,_0x22ebf9);}import{ListItemView as _0x149699,ButtonView as _0x429cd5,ButtonLabelView as _0x2071e6}from'ckeditor5/src/ui.js';import{unescape as _0x38c22d}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x149699{constructor(_0x1b0e75){const _0xceb351=_0x1046;super();const _0x4d6e83=new _0x2071e6(),_0x4008d6=new _0x429cd5(this[_0xceb351(0x94)],_0x4d6e83);this[_0xceb351(0x8f)][_0xceb351(0x93)](_0x4008d6),_0x4008d6[_0xceb351(0x96)]({'label':_0x1b0e75[_0xceb351(0x8c)],'withText':!0x0}),_0x4008d6['on'](_0xceb351(0x98),()=>{const _0x1bd1f0=_0xceb351;this[_0x1bd1f0(0x90)](_0x1bd1f0(0x98),{'value':_0x38c22d(_0x1b0e75[_0x1bd1f0(0x8c)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x544934=_0x1daa;function _0x1daa(_0x3fcd51,_0x293b57){const _0x164614=_0x1646();return _0x1daa=function(_0x1daa8e,_0x5dc9ee){_0x1daa8e=_0x1daa8e-0x1ad;let _0x115563=_0x164614[_0x1daa8e];return _0x115563;},_0x1daa(_0x3fcd51,_0x293b57);}(function(_0x29679e,_0xa9f304){const _0x189a1e=_0x1daa,_0x445ee3=_0x29679e();while(!![]){try{const _0x3041fe=-parseInt(_0x189a1e(0x1af))/0x1*(-parseInt(_0x189a1e(0x1b0))/0x2)+parseInt(_0x189a1e(0x1b5))/0x3+-parseInt(_0x189a1e(0x1c3))/0x4*(-parseInt(_0x189a1e(0x1b6))/0x5)+parseInt(_0x189a1e(0x1c4))/0x6+-parseInt(_0x189a1e(0x1c6))/0x7+-parseInt(_0x189a1e(0x1b9))/0x8*(parseInt(_0x189a1e(0x1bb))/0x9)+-parseInt(_0x189a1e(0x1bf))/0xa;if(_0x3041fe===_0xa9f304)break;else _0x445ee3['push'](_0x445ee3['shift']());}catch(_0x1caf20){_0x445ee3['push'](_0x445ee3['shift']());}}}(_0x1646,0x8a281));import{ListView as _0xbc4f76,ListItemGroupView as _0x399152,ButtonView as _0x1a7144}from'ckeditor5/src/ui.js';function _0x1646(){const _0x3818b8=['label','2836248gnVajN','children','18IpMmwo','length','execute','Prompt\x20history','9860150cvXgVX','clearHistoryButton','items','historyGroupView','383036EYLdnF','6097344GHjvXv','fire','3616228MoumYM','Clear','clearHistory','set','514403BepajR','4valmgz','add','delegate','filter','locale','761235DZGwZA','25UNxnnj','_createClearHistoryButton'];_0x1646=function(){return _0x3818b8;};return _0x1646();}import{getTranslation as _0x44e907}from'../../utils/common-translations.js';export class AIHistoryListView extends _0xbc4f76{[_0x544934(0x1c2)];[_0x544934(0x1c0)];constructor(_0x1018ac){const _0x402cda=_0x544934;super(_0x1018ac),this[_0x402cda(0x1c0)]=this[_0x402cda(0x1b7)](),this[_0x402cda(0x1c2)]=new _0x399152(),this[_0x402cda(0x1c2)][_0x402cda(0x1ba)][_0x402cda(0x1b1)](this[_0x402cda(0x1c0)],0x1),this[_0x402cda(0x1c2)][_0x402cda(0x1b8)]=_0x44e907(_0x1018ac,_0x402cda(0x1be)),this[_0x402cda(0x1c2)][_0x402cda(0x1c1)][_0x402cda(0x1b2)](_0x402cda(0x1bd))['to'](this),this[_0x402cda(0x1c1)][_0x402cda(0x1b1)](this[_0x402cda(0x1c2)]);}[_0x544934(0x1b3)](){const _0x372f33=_0x544934;let _0x49b98a=0x0;for(const _0x29518b of this[_0x372f33(0x1c1)])_0x49b98a+=_0x29518b[_0x372f33(0x1c1)][_0x372f33(0x1bc)];return{'resultsCount':_0x49b98a,'totalItemsCount':_0x49b98a};}[_0x544934(0x1b7)](){const _0xaa0bea=_0x544934,_0x4611cd=this[_0xaa0bea(0x1b4)],_0x2e69da=new _0x1a7144(this[_0xaa0bea(0x1b4)]);return _0x2e69da[_0xaa0bea(0x1ae)]({'label':'('+_0x44e907(_0x4611cd,_0xaa0bea(0x1c7))+')','withText':!0x0}),_0x2e69da['on'](_0xaa0bea(0x1bd),()=>this[_0xaa0bea(0x1c5)](_0xaa0bea(0x1ad))),_0x2e69da;}}
23
+ function _0x3d4d(){const _0x4fd263=['length','set','640nZxswK','filter','12075700LHsoai','clearHistoryButton','759pmxfYx','14EqiYIq','clearHistory','Prompt\x20history','_createClearHistoryButton','6958518GPbJav','5845779ngkTQx','children','historyGroupView','fire','add','locale','3922952egsrdU','items','execute','3546LfebuN','delegate','Clear','125450PYrtKY','label','17132rlQyhS'];_0x3d4d=function(){return _0x4fd263;};return _0x3d4d();}const _0x2bf652=_0x58f8;(function(_0x3fc2f8,_0x5563b2){const _0x2d1975=_0x58f8,_0x5e7179=_0x3fc2f8();while(!![]){try{const _0x3a864d=-parseInt(_0x2d1975(0x1b2))/0x1*(parseInt(_0x2d1975(0x1ba))/0x2)+-parseInt(_0x2d1975(0x1be))/0x3*(-parseInt(_0x2d1975(0x1b7))/0x4)+-parseInt(_0x2d1975(0x1b5))/0x5+parseInt(_0x2d1975(0x1c3))/0x6+-parseInt(_0x2d1975(0x1bf))/0x7*(parseInt(_0x2d1975(0x1ca))/0x8)+-parseInt(_0x2d1975(0x1c4))/0x9+parseInt(_0x2d1975(0x1bc))/0xa;if(_0x3a864d===_0x5563b2)break;else _0x5e7179['push'](_0x5e7179['shift']());}catch(_0x30d115){_0x5e7179['push'](_0x5e7179['shift']());}}}(_0x3d4d,0xa156b));import{ListView as _0x236fa3,ListItemGroupView as _0x5efd28,ButtonView as _0x6bab96}from'ckeditor5/src/ui.js';import{getTranslation as _0x5d735f}from'../../utils/common-translations.js';function _0x58f8(_0x2e2b8b,_0x2f1b62){const _0x3d4d0c=_0x3d4d();return _0x58f8=function(_0x58f852,_0x2f209d){_0x58f852=_0x58f852-0x1b1;let _0xfb4df3=_0x3d4d0c[_0x58f852];return _0xfb4df3;},_0x58f8(_0x2e2b8b,_0x2f1b62);}export class AIHistoryListView extends _0x236fa3{[_0x2bf652(0x1c6)];[_0x2bf652(0x1bd)];constructor(_0x3817c4){const _0x37c542=_0x2bf652;super(_0x3817c4),this[_0x37c542(0x1bd)]=this[_0x37c542(0x1c2)](),this[_0x37c542(0x1c6)]=new _0x5efd28(),this[_0x37c542(0x1c6)][_0x37c542(0x1c5)][_0x37c542(0x1c8)](this[_0x37c542(0x1bd)],0x1),this[_0x37c542(0x1c6)][_0x37c542(0x1b6)]=_0x5d735f(_0x3817c4,_0x37c542(0x1c1)),this[_0x37c542(0x1c6)][_0x37c542(0x1cb)][_0x37c542(0x1b3)](_0x37c542(0x1b1))['to'](this),this[_0x37c542(0x1cb)][_0x37c542(0x1c8)](this[_0x37c542(0x1c6)]);}[_0x2bf652(0x1bb)](){const _0x4c699c=_0x2bf652;let _0x1bfa86=0x0;for(const _0x32816a of this[_0x4c699c(0x1cb)])_0x1bfa86+=_0x32816a[_0x4c699c(0x1cb)][_0x4c699c(0x1b8)];return{'resultsCount':_0x1bfa86,'totalItemsCount':_0x1bfa86};}[_0x2bf652(0x1c2)](){const _0x4091e5=_0x2bf652,_0x5a813d=this[_0x4091e5(0x1c9)],_0x5cd9e5=new _0x6bab96(this[_0x4091e5(0x1c9)]);return _0x5cd9e5[_0x4091e5(0x1b9)]({'label':'('+_0x5d735f(_0x5a813d,_0x4091e5(0x1b4))+')','withText':!0x0}),_0x5cd9e5['on'](_0x4091e5(0x1b1),()=>this[_0x4091e5(0x1c7)](_0x4091e5(0x1c0))),_0x5cd9e5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34b4e6=_0x10b1;(function(_0x48dd0f,_0x3bbfc8){const _0x547ad9=_0x10b1,_0x4f6318=_0x48dd0f();while(!![]){try{const _0x189525=parseInt(_0x547ad9(0x120))/0x1*(-parseInt(_0x547ad9(0x12f))/0x2)+-parseInt(_0x547ad9(0x126))/0x3*(-parseInt(_0x547ad9(0x119))/0x4)+-parseInt(_0x547ad9(0x124))/0x5+parseInt(_0x547ad9(0x12b))/0x6+-parseInt(_0x547ad9(0x118))/0x7*(-parseInt(_0x547ad9(0x130))/0x8)+-parseInt(_0x547ad9(0x12c))/0x9*(parseInt(_0x547ad9(0x132))/0xa)+parseInt(_0x547ad9(0x125))/0xb*(parseInt(_0x547ad9(0x133))/0xc);if(_0x189525===_0x3bbfc8)break;else _0x4f6318['push'](_0x4f6318['shift']());}catch(_0x1b7528){_0x4f6318['push'](_0x4f6318['shift']());}}}(_0x1aaa,0xa312c));import{Collection as _0x12eedd}from'ckeditor5/src/utils.js';function _0x10b1(_0x361cc8,_0x468766){const _0x1aaa00=_0x1aaa();return _0x10b1=function(_0x10b104,_0xa01020){_0x10b104=_0x10b104-0x118;let _0x49a632=_0x1aaa00[_0x10b104];return _0x49a632;},_0x10b1(_0x361cc8,_0x468766);}const So=_0x34b4e6(0x128);function _0x1aaa(){const _0x3adcd9=['length','parse','536735keSdBm','297UIxsbx','753MqnwVQ','trim','CKEditor/AIFormView/PromptHistory','remove','map','6150492QwLNbB','63dwcNCo','_loadFromSessionStorage','_saveToSessionStorage','2CiRkzF','2834680nJRZKF','add','1176040iGiyNW','269988imZuUt','7mCQEiF','4888grnOSD','prompt','toLowerCase','last','addMany','setItem','getItem','695089ULdxjq','stringify'];_0x1aaa=function(){return _0x3adcd9;};return _0x1aaa();}export class PromptHistory extends _0x12eedd{constructor(){const _0x4bba44=_0x34b4e6;super(),this[_0x4bba44(0x12d)](),this['on'](_0x4bba44(0x131),(_0x48650a,_0x5d2a4f)=>{const _0x1edf04=_0x4bba44,_0x9412ad=fo(_0x5d2a4f[_0x1edf04(0x11a)]);for(const _0x10e009 of this)if(_0x10e009!=_0x5d2a4f&&fo(_0x10e009[_0x1edf04(0x11a)])===_0x9412ad){this[_0x1edf04(0x129)](_0x10e009);break;}this[_0x1edf04(0x122)]>0x14&&this[_0x1edf04(0x129)](this[_0x1edf04(0x11c)]),this[_0x1edf04(0x12e)]();}),this['on'](_0x4bba44(0x129),()=>{const _0x4a7113=_0x4bba44;this[_0x4a7113(0x12e)]();});}[_0x34b4e6(0x12d)](){const _0x4f74eb=_0x34b4e6,_0x951759=sessionStorage[_0x4f74eb(0x11f)](So)||'[]';this[_0x4f74eb(0x11d)](JSON[_0x4f74eb(0x123)](_0x951759));}[_0x34b4e6(0x12e)](){const _0x4e5ad9=_0x34b4e6;sessionStorage[_0x4e5ad9(0x11e)](So,JSON[_0x4e5ad9(0x121)](this[_0x4e5ad9(0x12a)](_0x8562ab=>_0x8562ab)));}}function fo(_0x5170f5){const _0x46e1bf=_0x34b4e6;return _0x5170f5[_0x46e1bf(0x11b)]()[_0x46e1bf(0x127)]();}
23
+ const _0xb3f8dc=_0x502b;(function(_0x3883fd,_0xde08aa){const _0x242237=_0x502b,_0x1ce3df=_0x3883fd();while(!![]){try{const _0x46228d=-parseInt(_0x242237(0x120))/0x1+parseInt(_0x242237(0x119))/0x2+-parseInt(_0x242237(0x11d))/0x3*(parseInt(_0x242237(0x115))/0x4)+-parseInt(_0x242237(0x117))/0x5+-parseInt(_0x242237(0x116))/0x6+parseInt(_0x242237(0x121))/0x7*(-parseInt(_0x242237(0x113))/0x8)+-parseInt(_0x242237(0x122))/0x9*(-parseInt(_0x242237(0x118))/0xa);if(_0x46228d===_0xde08aa)break;else _0x1ce3df['push'](_0x1ce3df['shift']());}catch(_0x12b5aa){_0x1ce3df['push'](_0x1ce3df['shift']());}}}(_0x49cd,0x38f18));function _0x502b(_0x1ade32,_0x3c321b){const _0x49cd70=_0x49cd();return _0x502b=function(_0x502b2c,_0x552cea){_0x502b2c=_0x502b2c-0x112;let _0x310e6d=_0x49cd70[_0x502b2c];return _0x310e6d;},_0x502b(_0x1ade32,_0x3c321b);}import{Collection as _0x44dc25}from'ckeditor5/src/utils.js';const So=_0xb3f8dc(0x127);function _0x49cd(){const _0x41633f=['toLowerCase','getItem','map','760BDWFQN','addMany','27124kvaanI','2492100yuvzNi','2178170aiRCYU','10HdCQaR','327250rfVXVH','trim','remove','_saveToSessionStorage','123znSJon','setItem','length','283354aHvxOk','20545wDpysl','15847191UjxVRM','stringify','_loadFromSessionStorage','add','parse','CKEditor/AIFormView/PromptHistory','prompt','last'];_0x49cd=function(){return _0x41633f;};return _0x49cd();}export class PromptHistory extends _0x44dc25{constructor(){const _0x4ca297=_0xb3f8dc;super(),this[_0x4ca297(0x124)](),this['on'](_0x4ca297(0x125),(_0x42ad6f,_0xa942d3)=>{const _0x52b32c=_0x4ca297,_0xdf3fb7=fo(_0xa942d3[_0x52b32c(0x128)]);for(const _0x2a55f5 of this)if(_0x2a55f5!=_0xa942d3&&fo(_0x2a55f5[_0x52b32c(0x128)])===_0xdf3fb7){this[_0x52b32c(0x11b)](_0x2a55f5);break;}this[_0x52b32c(0x11f)]>0x14&&this[_0x52b32c(0x11b)](this[_0x52b32c(0x129)]),this[_0x52b32c(0x11c)]();}),this['on'](_0x4ca297(0x11b),()=>{const _0x5c3a8b=_0x4ca297;this[_0x5c3a8b(0x11c)]();});}[_0xb3f8dc(0x124)](){const _0x22b52b=_0xb3f8dc,_0x13ddba=sessionStorage[_0x22b52b(0x12b)](So)||'[]';this[_0x22b52b(0x114)](JSON[_0x22b52b(0x126)](_0x13ddba));}[_0xb3f8dc(0x11c)](){const _0x4aed64=_0xb3f8dc;sessionStorage[_0x4aed64(0x11e)](So,JSON[_0x4aed64(0x123)](this[_0x4aed64(0x112)](_0x499c62=>_0x499c62)));}}function fo(_0x484a8f){const _0x450750=_0xb3f8dc;return _0x484a8f[_0x450750(0x12a)]()[_0x450750(0x11a)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4a4e(_0x124627,_0x2465b8){const _0x8e9cad=_0x8e9c();return _0x4a4e=function(_0x4a4e83,_0x4c008b){_0x4a4e83=_0x4a4e83-0x139;let _0x19654a=_0x8e9cad[_0x4a4e83];return _0x19654a;},_0x4a4e(_0x124627,_0x2465b8);}function _0x8e9c(){const _0x3d2008=['341DNYUqM','enabledCommandsIds','editor','config','723367YCdYtM','6026800HlMJHT','getFirstRange','add','2GPKCTg','isEnabled','301BIIWeQ','showUI','903690Fexmyl','getSelectedBlocks','model','isEmpty','document','getItems','10CFsadd','_commandDefinitions','custom','getRanges','943188UZzcGm','41120RcjMym','from','hasContent','_hasContext','30gzgkaV','refresh','3423786LrBpfz','selection','requiresContent','length','get','name','change:_hasContext','values','plugins','set','element','4118463pJnmgw','isCollapsed','change:isEnabled','execute','ai.assistant.disabledElements','includes'];_0x8e9c=function(){return _0x3d2008;};return _0x8e9c();}const _0x898cc=_0x4a4e;(function(_0x548b27,_0x29a34a){const _0x10ff05=_0x4a4e,_0x1a4743=_0x548b27();while(!![]){try{const _0x26647e=parseInt(_0x10ff05(0x15c))/0x1*(-parseInt(_0x10ff05(0x160))/0x2)+-parseInt(_0x10ff05(0x164))/0x3+parseInt(_0x10ff05(0x15d))/0x4+-parseInt(_0x10ff05(0x13c))/0x5*(-parseInt(_0x10ff05(0x147))/0x6)+-parseInt(_0x10ff05(0x162))/0x7*(-parseInt(_0x10ff05(0x141))/0x8)+-parseInt(_0x10ff05(0x152))/0x9*(-parseInt(_0x10ff05(0x145))/0xa)+parseInt(_0x10ff05(0x158))/0xb*(-parseInt(_0x10ff05(0x140))/0xc);if(_0x26647e===_0x29a34a)break;else _0x1a4743['push'](_0x1a4743['shift']());}catch(_0xd4ce6f){_0x1a4743['push'](_0x1a4743['shift']());}}}(_0x8e9c,0xbe95d));import{Command as _0x435257}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x41a3f1}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x435257{[_0x898cc(0x13d)];constructor(_0x2f63fa,_0x56125f){const _0x1ad884=_0x898cc;super(_0x2f63fa),this[_0x1ad884(0x13d)]=_0x56125f,this[_0x1ad884(0x150)](_0x1ad884(0x159),[]),this['on'](_0x1ad884(0x14d),(_0xe54824,_0x51d296,_0x243963)=>{const _0xb5762b=_0x1ad884;this[_0xb5762b(0x161)]&&(this[_0xb5762b(0x159)]=ns(this[_0xb5762b(0x13d)],_0x243963));}),this[_0x1ad884(0x150)](_0x1ad884(0x144),!0x1),this['on'](_0x1ad884(0x154),(_0x226096,_0x5a8133,_0x29bc00)=>{const _0x6e8704=_0x1ad884;this[_0x6e8704(0x159)]=_0x29bc00?ns(this[_0x6e8704(0x13d)],this[_0x6e8704(0x144)]):[];});}[_0x898cc(0x146)](){const _0x585d35=_0x898cc,_0x4b807b=this[_0x585d35(0x15a)][_0x585d35(0x166)];this[_0x585d35(0x144)]=function(_0x46888b){const _0x2f083a=_0x585d35,_0x2d8196=_0x46888b[_0x2f083a(0x13a)][_0x2f083a(0x148)];return _0x2d8196[_0x2f083a(0x153)]?0x0!==[..._0x2d8196[_0x2f083a(0x165)]()][_0x2f083a(0x14a)]&&![..._0x2d8196[_0x2f083a(0x165)]()][0x0][_0x2f083a(0x139)]:!!_0x46888b[_0x2f083a(0x143)](_0x2d8196[_0x2f083a(0x15e)]());}(_0x4b807b);const _0x46e3e6=_0x4b807b[_0x585d35(0x13a)][_0x585d35(0x148)],_0x515ba5=this[_0x585d35(0x15a)][_0x585d35(0x15b)][_0x585d35(0x14b)](_0x585d35(0x156));for(const _0x678352 of _0x46e3e6[_0x585d35(0x13f)]())for(const _0x35496b of _0x678352[_0x585d35(0x13b)]())if(_0x35496b['is'](_0x585d35(0x151))&&_0x515ba5[_0x585d35(0x157)](_0x35496b[_0x585d35(0x14c)]))return void(this[_0x585d35(0x161)]=!0x1);this[_0x585d35(0x161)]=!0x0;}[_0x898cc(0x155)](_0x43413f='',_0x421c9d='',_0xe1a3ff=_0x898cc(0x13e)){const _0x5e1a88=_0x898cc;this[_0x5e1a88(0x15a)][_0x5e1a88(0x14f)][_0x5e1a88(0x14b)](_0x41a3f1)[_0x5e1a88(0x163)](_0x43413f,_0x421c9d,_0xe1a3ff);}}function ns(_0x3405d6,_0x224482){const _0x5c5cff=_0x898cc,_0xbcb8d2=new Set();for(const _0x50499a of _0x3405d6[_0x5c5cff(0x14e)]())(_0x224482||!0x1===_0x50499a[_0x5c5cff(0x149)])&&_0xbcb8d2[_0x5c5cff(0x15f)](_0x50499a['id']);return Array[_0x5c5cff(0x142)](_0xbcb8d2);}
23
+ const _0x440258=_0x45ac;(function(_0x665fd5,_0x551924){const _0x38fee5=_0x45ac,_0x2f3d5d=_0x665fd5();while(!![]){try{const _0x189c3a=-parseInt(_0x38fee5(0x1e6))/0x1*(-parseInt(_0x38fee5(0x1f5))/0x2)+parseInt(_0x38fee5(0x1e8))/0x3+-parseInt(_0x38fee5(0x1f7))/0x4+-parseInt(_0x38fee5(0x1da))/0x5*(-parseInt(_0x38fee5(0x1df))/0x6)+-parseInt(_0x38fee5(0x1ea))/0x7+-parseInt(_0x38fee5(0x1e0))/0x8*(parseInt(_0x38fee5(0x1ee))/0x9)+-parseInt(_0x38fee5(0x1eb))/0xa;if(_0x189c3a===_0x551924)break;else _0x2f3d5d['push'](_0x2f3d5d['shift']());}catch(_0x4f142b){_0x2f3d5d['push'](_0x2f3d5d['shift']());}}}(_0xfa73,0x4fdec));import{Command as _0x5c2856}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2b2ebb}from'../aiassistantui.js';function _0xfa73(){const _0x285531=['54118TUQOkO','includes','58352hSqCml','change:_hasContext','custom','execute','_hasContext','change:isEnabled','getItems','document','enabledCommandsIds','isEmpty','name','hasContent','plugins','model','get','3160160XlFlxd','isEnabled','from','isCollapsed','selection','6lYojvr','168oJUdWa','_commandDefinitions','add','editor','getFirstRange','getRanges','1CcAEus','element','1682418pImImp','showUI','1453557qpWmVH','6457090JTEqEZ','config','getSelectedBlocks','10629pvrTKx','requiresContent','refresh','ai.assistant.disabledElements','length','set','values'];_0xfa73=function(){return _0x285531;};return _0xfa73();}function _0x45ac(_0x16bfd9,_0x22b519){const _0xfa7301=_0xfa73();return _0x45ac=function(_0x45aced,_0x1f8233){_0x45aced=_0x45aced-0x1da;let _0x2e1c6c=_0xfa7301[_0x45aced];return _0x2e1c6c;},_0x45ac(_0x16bfd9,_0x22b519);}export class ShowAIAssistantCommand extends _0x5c2856{[_0x440258(0x1e1)];constructor(_0x512715,_0x5da5a8){const _0x4fead7=_0x440258;super(_0x512715),this[_0x4fead7(0x1e1)]=_0x5da5a8,this[_0x4fead7(0x1f3)](_0x4fead7(0x1ff),[]),this['on'](_0x4fead7(0x1f8),(_0x42fc7b,_0x30740f,_0x110d60)=>{const _0x43a469=_0x4fead7;this[_0x43a469(0x1db)]&&(this[_0x43a469(0x1ff)]=cs(this[_0x43a469(0x1e1)],_0x110d60));}),this[_0x4fead7(0x1f3)](_0x4fead7(0x1fb),!0x1),this['on'](_0x4fead7(0x1fc),(_0x5d8295,_0x482bd0,_0x426d94)=>{const _0x526a96=_0x4fead7;this[_0x526a96(0x1ff)]=_0x426d94?cs(this[_0x526a96(0x1e1)],this[_0x526a96(0x1fb)]):[];});}[_0x440258(0x1f0)](){const _0xfb0383=_0x440258,_0x3a0859=this[_0xfb0383(0x1e3)][_0xfb0383(0x204)];this[_0xfb0383(0x1fb)]=function(_0x574d51){const _0x50a32e=_0xfb0383,_0x20de14=_0x574d51[_0x50a32e(0x1fe)][_0x50a32e(0x1de)];return _0x20de14[_0x50a32e(0x1dd)]?0x0!==[..._0x20de14[_0x50a32e(0x1ed)]()][_0x50a32e(0x1f2)]&&![..._0x20de14[_0x50a32e(0x1ed)]()][0x0][_0x50a32e(0x200)]:!!_0x574d51[_0x50a32e(0x202)](_0x20de14[_0x50a32e(0x1e4)]());}(_0x3a0859);const _0x25b2cb=_0x3a0859[_0xfb0383(0x1fe)][_0xfb0383(0x1de)],_0x3ee10e=this[_0xfb0383(0x1e3)][_0xfb0383(0x1ec)][_0xfb0383(0x205)](_0xfb0383(0x1f1));for(const _0x2dca5f of _0x25b2cb[_0xfb0383(0x1e5)]())for(const _0x953980 of _0x2dca5f[_0xfb0383(0x1fd)]())if(_0x953980['is'](_0xfb0383(0x1e7))&&_0x3ee10e[_0xfb0383(0x1f6)](_0x953980[_0xfb0383(0x201)]))return void(this[_0xfb0383(0x1db)]=!0x1);this[_0xfb0383(0x1db)]=!0x0;}[_0x440258(0x1fa)](_0x5eba3f='',_0x358548='',_0x531f08=_0x440258(0x1f9)){const _0x1f186a=_0x440258;this[_0x1f186a(0x1e3)][_0x1f186a(0x203)][_0x1f186a(0x205)](_0x2b2ebb)[_0x1f186a(0x1e9)](_0x5eba3f,_0x358548,_0x531f08);}}function cs(_0x5d0d6f,_0x870d9a){const _0x12608e=_0x440258,_0x336555=new Set();for(const _0x5f3b66 of _0x5d0d6f[_0x12608e(0x1f4)]())(_0x870d9a||!0x1===_0x5f3b66[_0x12608e(0x1ef)])&&_0x336555[_0x12608e(0x1e2)](_0x5f3b66['id']);return Array[_0x12608e(0x1dc)](_0x336555);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x25f9bb,_0x1ba2e4,_0xfe5c51){const t=_0x25f9bb['t'];switch(_0x1ba2e4){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',_0xfe5c51);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0xfe5c51);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'},_0xfe5c51);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 _0x1ba2e4;}}
23
+ export function getTranslation(_0x3ed1d4,_0xdd77ad,_0x47629a){const t=_0x3ed1d4['t'];switch(_0xdd77ad){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',_0x47629a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x47629a);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'},_0x47629a);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 _0xdd77ad;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x151413,_0x49972d){const _0x5a00a6=(0x0,_0x49972d['t'])('Other');return _0x151413['length']?'groupId'in _0x151413[0x0]?_0x151413:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5a00a6,'order':0x1/0x0,'commands':_0x151413}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5a00a6,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x11bec7,_0x1b4612){const _0x110886=(0x0,_0x1b4612['t'])('Other');return _0x11bec7['length']?'groupId'in _0x11bec7[0x0]?_0x11bec7:[{'groupId':'_ungrouppedCommands','groupLabel':_0x110886,'order':0x1/0x0,'commands':_0x11bec7}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x110886,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a5506=_0x129b;(function(_0x3cd69d,_0x30a4e2){const _0x4a983b=_0x129b,_0xdc800c=_0x3cd69d();while(!![]){try{const _0x601eb2=-parseInt(_0x4a983b(0x196))/0x1*(-parseInt(_0x4a983b(0x1d8))/0x2)+-parseInt(_0x4a983b(0x1a2))/0x3+-parseInt(_0x4a983b(0x1fa))/0x4+-parseInt(_0x4a983b(0x19c))/0x5*(-parseInt(_0x4a983b(0x1c5))/0x6)+-parseInt(_0x4a983b(0x1f4))/0x7+-parseInt(_0x4a983b(0x1d5))/0x8*(-parseInt(_0x4a983b(0x198))/0x9)+-parseInt(_0x4a983b(0x1f5))/0xa*(-parseInt(_0x4a983b(0x1b6))/0xb);if(_0x601eb2===_0x30a4e2)break;else _0xdc800c['push'](_0xdc800c['shift']());}catch(_0x54c968){_0xdc800c['push'](_0xdc800c['shift']());}}}(_0x3386,0xb938c));import{ContextPlugin as _0x1709b6}from'ckeditor5/src/core.js';import{AIConnector as _0x5339d4}from'../aicore/aiconnector.js';import{AIEditing as _0x413e53}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x2810c3,AIBalloonView as _0x133ed0}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5611b8}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x552de6,Rect as _0x28ab44,scrollViewportToShowTarget as _0x40c2ae}from'ckeditor5/src/utils.js';function _0x3386(){const _0x2d9cae=['_cleanupMarkerRemovalListener','isTrackChangesOn','_config','_setupVisualSelection','ai-balloon-selection','rootName','Dialog','_calculateOptimalTopPosition','\x20ai-balloon-rotator','trackChanges','showRotator','8fbGnGO','getMarkersGroup','mainView','2WxaXpj','label','isPremiumPlugin','showBlockingError','isOfficialPlugin','off','context','setupRotator','balloonView','_showDialog','differ','close','height','config','aiBalloon','value','getVisible','_setupMarkerRemovalListener','open','show','window','fire','_updateBalloon','document','isEqual','listenTo','pluginName','_isUpdatingMarkers','1658825QvCHxH','50KOiBBV','bottom','markers','ai-selection','updatePosition','2460600jCsuCt','_pendingRenderCallback','ai-balloon','top','headerView','_calculateDialogPosition','filter','view','300194LDobHm','left','7629867WPAyah','getIntersection','plugins','selectionRemoved','40NLGhmq','hide','length','AIBalloon','ai-balloon-','editing','3996579XnvSLa','model','end','dialogClosed','startsWith','round','root','render','index','once','locale','showFakeVisualSelection','AIEditing','iconView','requires','content','$graveyard','getBoundingRect','isOpen','width','1152019NiRrID','get','ai.availableReplyActions','updateContent','commands','change','AI_ACTIONS_SELECTION_REMOVED_ERROR','start','delegate','hideFakeVisualSelection','bind','ranges','ai-selection:','max','stopListening','953538SdCgMn','_getSelectionElements','title','getChangedMarkers','icon'];_0x3386=function(){return _0x2d9cae;};return _0x3386();}import{getEditorFromContext as _0x479610}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x114d18}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x1a49e6}from'../aicore/utils/common-translations.js';function _0x129b(_0xd2c9f0,_0x24dc06){const _0x33860a=_0x3386();return _0x129b=function(_0x129b03,_0x13091e){_0x129b03=_0x129b03-0x196;let _0x4b6f60=_0x33860a[_0x129b03];return _0x4b6f60;},_0x129b(_0xd2c9f0,_0x24dc06);}export const AI_BALLOON_EVENT_NAMES=[..._0x2810c3,_0x4a5506(0x1a5),_0x4a5506(0x19b)];const z=0xa;export class AIBalloon extends _0x1709b6{static get[_0x4a5506(0x1b0)](){return[_0x5339d4,_0x413e53];}static get[_0x4a5506(0x1f2)](){const _0x46a9c4=_0x4a5506;return _0x46a9c4(0x19f);}static get[_0x4a5506(0x1dc)](){return!0x0;}static get[_0x4a5506(0x1da)](){return!0x0;}[_0x4a5506(0x1b4)]=!0x1;[_0x4a5506(0x1cc)];[_0x4a5506(0x1f3)]=!0x1;[_0x4a5506(0x1fb)]=null;[_0x4a5506(0x1ea)](_0x461beb){const _0x34f571=_0x4a5506,_0x3f8ef6=_0x479610(this[_0x34f571(0x1de)]);if(this[_0x34f571(0x1cc)]=_0x461beb,this[_0x34f571(0x1b4)])return void this[_0x34f571(0x1ee)](_0x461beb);const _0x2c22c3=this[_0x34f571(0x1de)][_0x34f571(0x1e5)][_0x34f571(0x1b7)](_0x34f571(0x1b8))||[..._0x114d18],_0xa04964=_0x3f8ef6?.[_0x34f571(0x1ba)][_0x34f571(0x1b7)](_0x34f571(0x1d3)),_0x73dba8=_0xa04964?.[_0x34f571(0x1e7)];this[_0x34f571(0x1e0)]=new _0x133ed0(_0x3f8ef6[_0x34f571(0x1ac)],_0x461beb,_0x2c22c3,!!_0x73dba8),this[_0x34f571(0x1e0)][_0x34f571(0x1be)](..._0x2810c3)['to'](this),_0xa04964&&this[_0x34f571(0x1e0)][_0x34f571(0x1c0)](_0x34f571(0x1cb))['to'](_0xa04964,_0x34f571(0x1e7)),this[_0x34f571(0x1e1)](_0x461beb);}[_0x4a5506(0x1e3)](){const _0x336513=_0x4a5506;_0x479610(this[_0x336513(0x1de)])[_0x336513(0x19a)][_0x336513(0x1b7)](_0x336513(0x1d0))[_0x336513(0x19d)]();}[_0x4a5506(0x1ee)](_0x5d5a82){const _0x119ca8=_0x4a5506,_0x231dce=_0x479610(this[_0x119ca8(0x1de)]),_0x3cafb3=_0x231dce[_0x119ca8(0x19a)][_0x119ca8(0x1b7)](_0x119ca8(0x1d0));this[_0x119ca8(0x1fb)]&&(_0x231dce[_0x119ca8(0x1a1)][_0x119ca8(0x201)][_0x119ca8(0x1dd)](_0x119ca8(0x1a9),this[_0x119ca8(0x1fb)]),this[_0x119ca8(0x1fb)]=null),this[_0x119ca8(0x1f3)]=!0x0,_0x3cafb3[_0x119ca8(0x201)]?.[_0x119ca8(0x1fe)]&&(_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1d9)]=_0x5d5a82[_0x119ca8(0x1c7)],_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1af)]&&_0x5d5a82[_0x119ca8(0x1c9)]&&(_0x3cafb3[_0x119ca8(0x201)][_0x119ca8(0x1fe)][_0x119ca8(0x1af)][_0x119ca8(0x1b1)]=_0x5d5a82[_0x119ca8(0x1c9)])),this[_0x119ca8(0x1e0)][_0x119ca8(0x1b9)](_0x5d5a82[_0x119ca8(0x1d7)]),this[_0x119ca8(0x1cd)](_0x5d5a82[_0x119ca8(0x1c1)],_0x5d5a82[_0x119ca8(0x1aa)]),this[_0x119ca8(0x1fb)]=()=>{const _0x39229c=_0x119ca8;this[_0x39229c(0x1f3)]=!0x1,this[_0x39229c(0x1fb)]=null,_0x3cafb3[_0x39229c(0x201)]&&_0x3cafb3[_0x39229c(0x201)][_0x39229c(0x1f9)]();},_0x231dce[_0x119ca8(0x1a1)][_0x119ca8(0x201)][_0x119ca8(0x1ab)](_0x119ca8(0x1a9),this[_0x119ca8(0x1fb)]);}[_0x4a5506(0x1cd)](_0xa6046a,_0x3addb6){const _0x43ea14=_0x4a5506;this[_0x43ea14(0x1de)][_0x43ea14(0x19a)][_0x43ea14(0x1b7)](_0x413e53)[_0x43ea14(0x1ad)](_0xa6046a,_0x43ea14(0x1a0)+_0x3addb6,!0x0,!0x0);}[_0x4a5506(0x1e1)](_0x4cf1be){const _0x523372=_0x4a5506,_0x40c529=_0x479610(this[_0x523372(0x1de)]);this[_0x523372(0x1cd)](_0x4cf1be[_0x523372(0x1c1)],_0x4cf1be[_0x523372(0x1aa)]);const _0x4fcb4c=this[_0x523372(0x1c6)]();_0x4fcb4c&&_0x4fcb4c[0x0]&&_0x40c2ae({'target':_0x4fcb4c[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x40c529[_0x523372(0x19a)][_0x523372(0x1b7)](_0x523372(0x1d0))[_0x523372(0x1eb)]({'title':_0x4cf1be[_0x523372(0x1c7)],'icon':_0x4cf1be[_0x523372(0x1c9)],'hasCloseButton':!0x0,'id':_0x523372(0x1e6),'position':this[_0x523372(0x1ff)][_0x523372(0x1c0)](this),'className':_0x523372(0x1fc)+(_0x4cf1be[_0x523372(0x1d4)]?_0x523372(0x1d2):''),'content':this[_0x523372(0x1e0)],'onShow':_0x2d2c95=>{const _0x5cbef1=_0x523372;_0x4cf1be[_0x5cbef1(0x1d4)]&&this[_0x5cbef1(0x1e0)][_0x5cbef1(0x1df)](_0x2d2c95),this[_0x5cbef1(0x1e9)](),this[_0x5cbef1(0x1b4)]=!0x0;},'onHide':()=>{const _0x414a5f=_0x523372;this[_0x414a5f(0x1de)][_0x414a5f(0x19a)][_0x414a5f(0x1b7)](_0x414a5f(0x1ae))[_0x414a5f(0x1bf)](_0x414a5f(0x1a0)+this[_0x414a5f(0x1cc)][_0x414a5f(0x1aa)]),this[_0x414a5f(0x1ca)](),this[_0x414a5f(0x1ed)](_0x414a5f(0x1a5)),this[_0x414a5f(0x1b4)]=!0x1;}});}[_0x4a5506(0x1ff)](_0x25e14b,_0x329937){const _0x511935=_0x4a5506;if(!_0x329937)return null;const _0x3670aa=this[_0x511935(0x1c6)]();if(!_0x3670aa||0x0===_0x3670aa[_0x511935(0x19e)])return{'left':Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x197)]+_0x329937[_0x511935(0x1b5)]/0x2-_0x25e14b[_0x511935(0x1b5)]/0x2),'top':Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x1fd)]+_0x329937[_0x511935(0x1e4)]/0x2-_0x25e14b[_0x511935(0x1e4)]/0x2)};const _0x1dd6cd=Math[_0x511935(0x1a7)](_0x329937[_0x511935(0x197)]+_0x329937[_0x511935(0x1b5)]/0x2-_0x25e14b[_0x511935(0x1b5)]/0x2),_0x16d905=new _0x28ab44(_0x3670aa[0x0]),_0x447e4f=new _0x28ab44(_0x3670aa[_0x3670aa[_0x511935(0x19e)]-0x1]),_0x45bef2=_0x25e14b[_0x511935(0x1e4)],_0x1ea8b8=this[_0x511935(0x1cc)][_0x511935(0x1d4)]?0x8:0x0;return{'left':_0x1dd6cd,'top':this[_0x511935(0x1d1)](_0x16d905,_0x447e4f,_0x45bef2,_0x1ea8b8,_0x329937)};}[_0x4a5506(0x1d1)](_0x5e3628,_0xf6d569,_0x48f693,_0x429c9d=0x0,_0x4e5a7c){const _0x2e0690=_0x4a5506,_0xd81072=_0x48f693+_0x429c9d,_0x41c6e0=new _0x28ab44(_0x552de6[_0x2e0690(0x1ec)]),_0x3e3a0f=[_0x5e3628[_0x2e0690(0x1e8)](),_0xf6d569[_0x2e0690(0x1e8)]()][_0x2e0690(0x200)](_0x20fa01=>_0x20fa01),_0x5f14d3=_0x28ab44[_0x2e0690(0x1b3)](_0x3e3a0f);if(!_0x5f14d3)return Math[_0x2e0690(0x1a7)](_0x4e5a7c[_0x2e0690(0x1fd)]+_0x4e5a7c[_0x2e0690(0x1e4)]/0x2);const _0x1be4a4=_0x41c6e0[_0x2e0690(0x199)](_0x5f14d3);if(!_0x1be4a4)return Math[_0x2e0690(0x1a7)](_0x4e5a7c[_0x2e0690(0x1fd)]+_0x4e5a7c[_0x2e0690(0x1e4)]/0x2);const _0x4eca91=_0x4e5a7c[_0x2e0690(0x1e8)](),_0x5012ad=_0x4eca91&&_0x5f14d3[_0x2e0690(0x1e4)]>_0x4eca91[_0x2e0690(0x1e4)],_0x116b3f=_0x1be4a4[_0x2e0690(0x1fd)],_0x574675=_0x1be4a4[_0x2e0690(0x1f6)];if(_0x5012ad){const _0x25db59=(_0x4eca91||_0x41c6e0)[_0x2e0690(0x1e4)]/0x2-_0xd81072/0x2,_0x4a4d3f=_0x116b3f-z-_0x4e5a7c[_0x2e0690(0x1fd)],_0x3a3d16=_0x4e5a7c[_0x2e0690(0x1f6)]-_0x574675-z;return _0x4a4d3f>=_0xd81072?Math[_0x2e0690(0x1c3)](z,_0x116b3f-_0xd81072-z):_0x3a3d16>=_0xd81072?_0x574675+z:Math[_0x2e0690(0x1c3)](z,_0x25db59);}const _0x79fedf=_0x116b3f-_0xd81072,_0x4fccc2=_0x4e5a7c[_0x2e0690(0x1f6)]-_0x574675-z,_0xf5f0cc=_0x116b3f-z-_0x4e5a7c[_0x2e0690(0x1fd)];let _0x592268;if(_0x4fccc2>=_0xd81072)_0x592268=_0x574675+z;else{if(_0xf5f0cc>=_0xd81072)_0x592268=_0x79fedf-z;else _0x592268=_0x116b3f+_0x5f14d3[_0x2e0690(0x1e4)]/0x2-_0xd81072/0x2;}return _0x592268;}[_0x4a5506(0x1e9)](){const _0x5b717c=_0x4a5506,_0x11b1c8=_0x479610(this[_0x5b717c(0x1de)]);this[_0x5b717c(0x1f1)](_0x11b1c8[_0x5b717c(0x1a3)][_0x5b717c(0x1ef)],_0x5b717c(0x1bb),()=>{const _0xc824ee=_0x5b717c;if(this[_0xc824ee(0x1f3)])return;for(const {name:_0x509578,data:{newRange:_0xcf47c0}}of _0x11b1c8[_0xc824ee(0x1a3)][_0xc824ee(0x1ef)][_0xc824ee(0x1e2)][_0xc824ee(0x1c8)]())if(_0x509578[_0xc824ee(0x1a6)](_0xc824ee(0x1c2))&&(_0xcf47c0&&(_0xcf47c0[_0xc824ee(0x1bd)][_0xc824ee(0x1f0)](_0xcf47c0[_0xc824ee(0x1a4)])||_0xc824ee(0x1b2)==_0xcf47c0[_0xc824ee(0x1a8)][_0xc824ee(0x1cf)])||null==_0xcf47c0)){const _0x10daba=_0x1a49e6(this[_0xc824ee(0x1de)][_0xc824ee(0x1ac)],_0xc824ee(0x1bc));this[_0xc824ee(0x1e0)][_0xc824ee(0x1db)](_0x10daba),this[_0xc824ee(0x1ed)](_0xc824ee(0x19b));}});}[_0x4a5506(0x1ca)](){const _0x1f42fc=_0x4a5506,_0xe440a9=_0x479610(this[_0x1f42fc(0x1de)]);this[_0x1f42fc(0x1c4)](_0xe440a9[_0x1f42fc(0x1a3)][_0x1f42fc(0x1ef)]);}[_0x4a5506(0x1c6)](){const _0x1295a0=_0x4a5506,_0x12efb1=_0x479610(this[_0x1295a0(0x1de)]);return _0x5611b8(_0x12efb1[_0x1295a0(0x1a1)],[..._0x12efb1[_0x1295a0(0x1a3)][_0x1295a0(0x1f7)][_0x1295a0(0x1d6)](_0x1295a0(0x1f8)),..._0x12efb1[_0x1295a0(0x1a3)][_0x1295a0(0x1f7)][_0x1295a0(0x1d6)](_0x1295a0(0x1ce))]);}}
23
+ const _0x338301=_0x3857;(function(_0x3502c0,_0x2b1d1a){const _0x20d93b=_0x3857,_0x5c4155=_0x3502c0();while(!![]){try{const _0x2d7675=-parseInt(_0x20d93b(0x1d1))/0x1*(-parseInt(_0x20d93b(0x1aa))/0x2)+parseInt(_0x20d93b(0x1ca))/0x3*(-parseInt(_0x20d93b(0x1d8))/0x4)+parseInt(_0x20d93b(0x1d5))/0x5+parseInt(_0x20d93b(0x1d2))/0x6*(-parseInt(_0x20d93b(0x193))/0x7)+parseInt(_0x20d93b(0x1bc))/0x8+parseInt(_0x20d93b(0x1c0))/0x9+parseInt(_0x20d93b(0x1dc))/0xa*(-parseInt(_0x20d93b(0x1b6))/0xb);if(_0x2d7675===_0x2b1d1a)break;else _0x5c4155['push'](_0x5c4155['shift']());}catch(_0x284cde){_0x5c4155['push'](_0x5c4155['shift']());}}}(_0x431d,0xc6a39));function _0x3857(_0x1dcb10,_0x3cebc7){const _0x431d9c=_0x431d();return _0x3857=function(_0x3857d7,_0x194a96){_0x3857d7=_0x3857d7-0x181;let _0x44aead=_0x431d9c[_0x3857d7];return _0x44aead;},_0x3857(_0x1dcb10,_0x3cebc7);}import{ContextPlugin as _0x2c1daf}from'ckeditor5/src/core.js';import{AIConnector as _0x54f72f}from'../aicore/aiconnector.js';import{AIEditing as _0x21ccac}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4fe881,AIBalloonView as _0x190371}from'./ui/aiballoonview.js';function _0x431d(){const _0x6fbcd2=['config','ai.availableReplyActions','_setupMarkerRemovalListener','showRotator','Dialog','ai-selection:','_calculateOptimalTopPosition','markers','hide','1232082WxnGlK','listenTo','rootName','content','length','trackChanges','getChangedMarkers','9853KKppLY','102fhmebM','value','balloonView','5941500sMYHjy','setupRotator','_config','4fYWyAQ','root','showFakeVisualSelection','_cleanupMarkerRemovalListener','1190580JVxQGV','off','label','getIntersection','width','getBoundingRect','iconView','view','start','end','isOfficialPlugin','index','bottom','hideFakeVisualSelection','AIBalloon','bind','aiBalloon','icon','updateContent','fire','$graveyard','_updateBalloon','delegate','max','\x20ai-balloon-rotator','updatePosition','filter','startsWith','ai-balloon-','plugins','AI_ACTIONS_SELECTION_REMOVED_ERROR','getMarkersGroup','mainView','dialogClosed','round','270109poZeoA','_setupVisualSelection','_getSelectionElements','headerView','editing','isEqual','AIEditing','title','isPremiumPlugin','showBlockingError','_isUpdatingMarkers','document','close','differ','_pendingRenderCallback','isTrackChangesOn','ranges','stopListening','ai-balloon-selection','requires','getVisible','left','context','6AvSzgj','pluginName','get','selectionRemoved','ai-balloon','show','model','_calculateDialogPosition','open','_showDialog','top','render','154pnCOJU','window','commands','locale','ai-selection','isOpen','10909136uYXExX','once','change','height','8690481zKwtXT'];_0x431d=function(){return _0x6fbcd2;};return _0x431d();}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x3b711d}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x33ddfb,Rect as _0x560d9e,scrollViewportToShowTarget as _0xaedae9}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x25e598}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x82e048}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x2427b7}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4fe881,_0x338301(0x191),_0x338301(0x1ad)];const x=0xa;export class AIBalloon extends _0x2c1daf{static get[_0x338301(0x1a6)](){return[_0x54f72f,_0x21ccac];}static get[_0x338301(0x1ab)](){const _0x407952=_0x338301;return _0x407952(0x1ea);}static get[_0x338301(0x1e6)](){return!0x0;}static get[_0x338301(0x19b)](){return!0x0;}[_0x338301(0x1bb)]=!0x1;[_0x338301(0x1d7)];[_0x338301(0x19d)]=!0x1;[_0x338301(0x1a1)]=null;[_0x338301(0x1b2)](_0x8953d4){const _0x19f017=_0x338301,_0x140dea=_0x25e598(this[_0x19f017(0x1a9)]);if(this[_0x19f017(0x1d7)]=_0x8953d4,this[_0x19f017(0x1bb)])return void this[_0x19f017(0x185)](_0x8953d4);const _0x344c8d=this[_0x19f017(0x1a9)][_0x19f017(0x1c1)][_0x19f017(0x1ac)](_0x19f017(0x1c2))||[..._0x82e048],_0x3b3a7d=_0x140dea?.[_0x19f017(0x1b8)][_0x19f017(0x1ac)](_0x19f017(0x1cf)),_0x1a8805=_0x3b3a7d?.[_0x19f017(0x1d3)];this[_0x19f017(0x1d4)]=new _0x190371(_0x140dea[_0x19f017(0x1b9)],_0x8953d4,_0x344c8d,!!_0x1a8805),this[_0x19f017(0x1d4)][_0x19f017(0x186)](..._0x4fe881)['to'](this),_0x3b3a7d&&this[_0x19f017(0x1d4)][_0x19f017(0x1eb)](_0x19f017(0x1a2))['to'](_0x3b3a7d,_0x19f017(0x1d3)),this[_0x19f017(0x1b3)](_0x8953d4);}[_0x338301(0x19f)](){const _0x274141=_0x338301;_0x25e598(this[_0x274141(0x1a9)])[_0x274141(0x18d)][_0x274141(0x1ac)](_0x274141(0x1c5))[_0x274141(0x1c9)]();}[_0x338301(0x185)](_0x2efa97){const _0x25fd57=_0x338301,_0x5d97d3=_0x25e598(this[_0x25fd57(0x1a9)]),_0x478cc3=_0x5d97d3[_0x25fd57(0x18d)][_0x25fd57(0x1ac)](_0x25fd57(0x1c5));this[_0x25fd57(0x1a1)]&&(_0x5d97d3[_0x25fd57(0x197)][_0x25fd57(0x1e3)][_0x25fd57(0x1dd)](_0x25fd57(0x1b5),this[_0x25fd57(0x1a1)]),this[_0x25fd57(0x1a1)]=null),this[_0x25fd57(0x19d)]=!0x0,_0x478cc3[_0x25fd57(0x1e3)]?.[_0x25fd57(0x196)]&&(_0x478cc3[_0x25fd57(0x1e3)][_0x25fd57(0x196)][_0x25fd57(0x1de)]=_0x2efa97[_0x25fd57(0x19a)],_0x478cc3[_0x25fd57(0x1e3)][_0x25fd57(0x196)][_0x25fd57(0x1e2)]&&_0x2efa97[_0x25fd57(0x181)]&&(_0x478cc3[_0x25fd57(0x1e3)][_0x25fd57(0x196)][_0x25fd57(0x1e2)][_0x25fd57(0x1cd)]=_0x2efa97[_0x25fd57(0x181)])),this[_0x25fd57(0x1d4)][_0x25fd57(0x182)](_0x2efa97[_0x25fd57(0x190)]),this[_0x25fd57(0x194)](_0x2efa97[_0x25fd57(0x1a3)],_0x2efa97[_0x25fd57(0x1e7)]),this[_0x25fd57(0x1a1)]=()=>{const _0xa418fe=_0x25fd57;this[_0xa418fe(0x19d)]=!0x1,this[_0xa418fe(0x1a1)]=null,_0x478cc3[_0xa418fe(0x1e3)]&&_0x478cc3[_0xa418fe(0x1e3)][_0xa418fe(0x189)]();},_0x5d97d3[_0x25fd57(0x197)][_0x25fd57(0x1e3)][_0x25fd57(0x1bd)](_0x25fd57(0x1b5),this[_0x25fd57(0x1a1)]);}[_0x338301(0x194)](_0x46fe4a,_0x5057e1){const _0x42e201=_0x338301;this[_0x42e201(0x1a9)][_0x42e201(0x18d)][_0x42e201(0x1ac)](_0x21ccac)[_0x42e201(0x1da)](_0x46fe4a,_0x42e201(0x18c)+_0x5057e1,!0x0,!0x0);}[_0x338301(0x1b3)](_0x8b49e5){const _0x27e2e0=_0x338301,_0x3362ee=_0x25e598(this[_0x27e2e0(0x1a9)]);this[_0x27e2e0(0x194)](_0x8b49e5[_0x27e2e0(0x1a3)],_0x8b49e5[_0x27e2e0(0x1e7)]);const _0x577118=this[_0x27e2e0(0x195)]();_0x577118&&_0x577118[0x0]&&_0xaedae9({'target':_0x577118[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x3362ee[_0x27e2e0(0x18d)][_0x27e2e0(0x1ac)](_0x27e2e0(0x1c5))[_0x27e2e0(0x1af)]({'title':_0x8b49e5[_0x27e2e0(0x19a)],'icon':_0x8b49e5[_0x27e2e0(0x181)],'hasCloseButton':!0x0,'id':_0x27e2e0(0x1ec),'position':this[_0x27e2e0(0x1b1)][_0x27e2e0(0x1eb)](this),'className':_0x27e2e0(0x1ae)+(_0x8b49e5[_0x27e2e0(0x1c4)]?_0x27e2e0(0x188):''),'content':this[_0x27e2e0(0x1d4)],'onShow':_0x20023d=>{const _0x9c6afe=_0x27e2e0;_0x8b49e5[_0x9c6afe(0x1c4)]&&this[_0x9c6afe(0x1d4)][_0x9c6afe(0x1d6)](_0x20023d),this[_0x9c6afe(0x1c3)](),this[_0x9c6afe(0x1bb)]=!0x0;},'onHide':()=>{const _0xf6b6cf=_0x27e2e0;this[_0xf6b6cf(0x1a9)][_0xf6b6cf(0x18d)][_0xf6b6cf(0x1ac)](_0xf6b6cf(0x199))[_0xf6b6cf(0x1e9)](_0xf6b6cf(0x18c)+this[_0xf6b6cf(0x1d7)][_0xf6b6cf(0x1e7)]),this[_0xf6b6cf(0x1db)](),this[_0xf6b6cf(0x183)](_0xf6b6cf(0x191)),this[_0xf6b6cf(0x1bb)]=!0x1;}});}[_0x338301(0x1b1)](_0x4e6242,_0x287282){const _0x27d948=_0x338301;if(!_0x287282)return null;const _0x55e216=this[_0x27d948(0x195)]();if(!_0x55e216||0x0===_0x55e216[_0x27d948(0x1ce)])return{'left':Math[_0x27d948(0x192)](_0x287282[_0x27d948(0x1a8)]+_0x287282[_0x27d948(0x1e0)]/0x2-_0x4e6242[_0x27d948(0x1e0)]/0x2),'top':Math[_0x27d948(0x192)](_0x287282[_0x27d948(0x1b4)]+_0x287282[_0x27d948(0x1bf)]/0x2-_0x4e6242[_0x27d948(0x1bf)]/0x2)};const _0x383bcd=Math[_0x27d948(0x192)](_0x287282[_0x27d948(0x1a8)]+_0x287282[_0x27d948(0x1e0)]/0x2-_0x4e6242[_0x27d948(0x1e0)]/0x2),_0x560b4c=new _0x560d9e(_0x55e216[0x0]),_0x2d3379=new _0x560d9e(_0x55e216[_0x55e216[_0x27d948(0x1ce)]-0x1]),_0x555d9e=_0x4e6242[_0x27d948(0x1bf)],_0x405db3=this[_0x27d948(0x1d7)][_0x27d948(0x1c4)]?0x8:0x0;return{'left':_0x383bcd,'top':this[_0x27d948(0x1c7)](_0x560b4c,_0x2d3379,_0x555d9e,_0x405db3,_0x287282)};}[_0x338301(0x1c7)](_0x3bfb5f,_0x285849,_0x10d16b,_0x331f77=0x0,_0x10653c){const _0x5d613a=_0x338301,_0x147545=_0x10d16b+_0x331f77,_0x58560f=new _0x560d9e(_0x33ddfb[_0x5d613a(0x1b7)]),_0x195a4f=[_0x3bfb5f[_0x5d613a(0x1a7)](),_0x285849[_0x5d613a(0x1a7)]()][_0x5d613a(0x18a)](_0xc0c419=>_0xc0c419),_0x3750b9=_0x560d9e[_0x5d613a(0x1e1)](_0x195a4f);if(!_0x3750b9)return Math[_0x5d613a(0x192)](_0x10653c[_0x5d613a(0x1b4)]+_0x10653c[_0x5d613a(0x1bf)]/0x2);const _0x11a2a9=_0x58560f[_0x5d613a(0x1df)](_0x3750b9);if(!_0x11a2a9)return Math[_0x5d613a(0x192)](_0x10653c[_0x5d613a(0x1b4)]+_0x10653c[_0x5d613a(0x1bf)]/0x2);const _0xb46a50=_0x10653c[_0x5d613a(0x1a7)](),_0x428cb4=_0xb46a50&&_0x3750b9[_0x5d613a(0x1bf)]>_0xb46a50[_0x5d613a(0x1bf)],_0x344969=_0x11a2a9[_0x5d613a(0x1b4)],_0x46e87a=_0x11a2a9[_0x5d613a(0x1e8)];if(_0x428cb4){const _0x5eff9b=(_0xb46a50||_0x58560f)[_0x5d613a(0x1bf)]/0x2-_0x147545/0x2,_0x6f303c=_0x344969-x-_0x10653c[_0x5d613a(0x1b4)],_0x2dd7b0=_0x10653c[_0x5d613a(0x1e8)]-_0x46e87a-x;return _0x6f303c>=_0x147545?Math[_0x5d613a(0x187)](x,_0x344969-_0x147545-x):_0x2dd7b0>=_0x147545?_0x46e87a+x:Math[_0x5d613a(0x187)](x,_0x5eff9b);}const _0x4c2df6=_0x344969-_0x147545,_0x158a4c=_0x10653c[_0x5d613a(0x1e8)]-_0x46e87a-x,_0x3e5b1=_0x344969-x-_0x10653c[_0x5d613a(0x1b4)];let _0x46500f;if(_0x158a4c>=_0x147545)_0x46500f=_0x46e87a+x;else{if(_0x3e5b1>=_0x147545)_0x46500f=_0x4c2df6-x;else _0x46500f=_0x344969+_0x3750b9[_0x5d613a(0x1bf)]/0x2-_0x147545/0x2;}return _0x46500f;}[_0x338301(0x1c3)](){const _0x28f3ad=_0x338301,_0x23059b=_0x25e598(this[_0x28f3ad(0x1a9)]);this[_0x28f3ad(0x1cb)](_0x23059b[_0x28f3ad(0x1b0)][_0x28f3ad(0x19e)],_0x28f3ad(0x1be),()=>{const _0x5ada7d=_0x28f3ad;if(this[_0x5ada7d(0x19d)])return;for(const {name:_0x59f4d9,data:{newRange:_0x5a71a6}}of _0x23059b[_0x5ada7d(0x1b0)][_0x5ada7d(0x19e)][_0x5ada7d(0x1a0)][_0x5ada7d(0x1d0)]())if(_0x59f4d9[_0x5ada7d(0x18b)](_0x5ada7d(0x1c6))&&(_0x5a71a6&&(_0x5a71a6[_0x5ada7d(0x1e4)][_0x5ada7d(0x198)](_0x5a71a6[_0x5ada7d(0x1e5)])||_0x5ada7d(0x184)==_0x5a71a6[_0x5ada7d(0x1d9)][_0x5ada7d(0x1cc)])||null==_0x5a71a6)){const _0x2723f9=_0x2427b7(this[_0x5ada7d(0x1a9)][_0x5ada7d(0x1b9)],_0x5ada7d(0x18e));this[_0x5ada7d(0x1d4)][_0x5ada7d(0x19c)](_0x2723f9),this[_0x5ada7d(0x183)](_0x5ada7d(0x1ad));}});}[_0x338301(0x1db)](){const _0x8a29f9=_0x338301,_0x4b7c83=_0x25e598(this[_0x8a29f9(0x1a9)]);this[_0x8a29f9(0x1a4)](_0x4b7c83[_0x8a29f9(0x1b0)][_0x8a29f9(0x19e)]);}[_0x338301(0x195)](){const _0xfa213d=_0x338301,_0x1bef7b=_0x25e598(this[_0xfa213d(0x1a9)]);return _0x3b711d(_0x1bef7b[_0xfa213d(0x197)],[..._0x1bef7b[_0xfa213d(0x1b0)][_0xfa213d(0x1c8)][_0xfa213d(0x18f)](_0xfa213d(0x1ba)),..._0x1bef7b[_0xfa213d(0x1b0)][_0xfa213d(0x1c8)][_0xfa213d(0x18f)](_0xfa213d(0x1a5))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x30b6(){var _0x60cff4=['5154105EzXSTs','ck-ai-balloon__disclaimer','AI_DISCLAIMER_TEXT','357QhXvXt','3785076NCCguy','198135LLJGOa','setTemplate','ck-ai-balloon__disclaimer-content','div','151208OHngzN','6ZjTXsT','20890SghXPy','861658XhAPjc','3077007ChdnWI','4OWHBfk','264afVtbY','1gIREpT'];_0x30b6=function(){return _0x60cff4;};return _0x30b6();}(function(_0xab37e8,_0x1b93bb){var _0x30dc68=_0x3126,_0x3c3092=_0xab37e8();while(!![]){try{var _0x3da7af=parseInt(_0x30dc68(0x1a8))/0x1*(-parseInt(_0x30dc68(0x1a4))/0x2)+-parseInt(_0x30dc68(0x1a5))/0x3*(parseInt(_0x30dc68(0x1a6))/0x4)+-parseInt(_0x30dc68(0x1a9))/0x5*(-parseInt(_0x30dc68(0x1a2))/0x6)+-parseInt(_0x30dc68(0x1ac))/0x7*(-parseInt(_0x30dc68(0x1a1))/0x8)+parseInt(_0x30dc68(0x19d))/0x9+-parseInt(_0x30dc68(0x1a3))/0xa*(parseInt(_0x30dc68(0x1a7))/0xb)+parseInt(_0x30dc68(0x19c))/0xc;if(_0x3da7af===_0x1b93bb)break;else _0x3c3092['push'](_0x3c3092['shift']());}catch(_0x2171de){_0x3c3092['push'](_0x3c3092['shift']());}}}(_0x30b6,0xc98e8));function _0x3126(_0xa2abb4,_0x1d326d){var _0x30b6f1=_0x30b6();return _0x3126=function(_0x31263b,_0x4700d7){_0x31263b=_0x31263b-0x19c;var _0x26c79c=_0x30b6f1[_0x31263b];return _0x26c79c;},_0x3126(_0xa2abb4,_0x1d326d);}import{View as _0x566c81}from'ckeditor5/src/ui.js';import{getTranslation as _0x5ba8e3}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x566c81{constructor(_0x2e05c3){var _0x1809a1=_0x3126;super(_0x2e05c3),this[_0x1809a1(0x19e)]({'tag':_0x1809a1(0x1a0),'attributes':{'class':['ck',_0x1809a1(0x1aa)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x1809a1(0x19f)]},'children':[{'text':_0x5ba8e3(_0x2e05c3,_0x1809a1(0x1ab))}]}]});}}
23
+ (function(_0x4582c0,_0x429a8f){var _0x4e7301=_0x42bc,_0x58fb4a=_0x4582c0();while(!![]){try{var _0x20dd48=-parseInt(_0x4e7301(0x1ab))/0x1+-parseInt(_0x4e7301(0x1a4))/0x2+-parseInt(_0x4e7301(0x1a6))/0x3*(parseInt(_0x4e7301(0x1a2))/0x4)+parseInt(_0x4e7301(0x1aa))/0x5*(parseInt(_0x4e7301(0x1ad))/0x6)+parseInt(_0x4e7301(0x1a5))/0x7*(-parseInt(_0x4e7301(0x1af))/0x8)+-parseInt(_0x4e7301(0x1a1))/0x9*(parseInt(_0x4e7301(0x1a7))/0xa)+-parseInt(_0x4e7301(0x1a8))/0xb*(-parseInt(_0x4e7301(0x1ae))/0xc);if(_0x20dd48===_0x429a8f)break;else _0x58fb4a['push'](_0x58fb4a['shift']());}catch(_0x4c5d7e){_0x58fb4a['push'](_0x58fb4a['shift']());}}}(_0x3014,0xce7e9));import{View as _0x63e53c}from'ckeditor5/src/ui.js';import{getTranslation as _0x278261}from'../../aicore/utils/common-translations.js';function _0x42bc(_0x17f70a,_0x2b79dc){var _0x3014d4=_0x3014();return _0x42bc=function(_0x42bceb,_0x5e634d){_0x42bceb=_0x42bceb-0x1a1;var _0x1cdb8f=_0x3014d4[_0x42bceb];return _0x1cdb8f;},_0x42bc(_0x17f70a,_0x2b79dc);}export class AIBalloonDisclaimerView extends _0x63e53c{constructor(_0x2754be){var _0x5294e4=_0x42bc;super(_0x2754be),this[_0x5294e4(0x1a9)]({'tag':_0x5294e4(0x1a3),'attributes':{'class':['ck',_0x5294e4(0x1b1)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5294e4(0x1b0)]},'children':[{'text':_0x278261(_0x2754be,_0x5294e4(0x1ac))}]}]});}}function _0x3014(){var _0x39f09e=['setTemplate','55865UmWuvY','111501xDTMrQ','AI_DISCLAIMER_TEXT','834FcLMEA','12GLffha','2384falzVD','ck-ai-balloon__disclaimer-content','ck-ai-balloon__disclaimer','531QJQnRg','76884lheqMR','div','1794280KMLFee','27944kKWzJf','129awvcxE','32730trGmdM','27616831tRObOV'];_0x3014=function(){return _0x39f09e;};return _0x3014();}