@ckeditor/ckeditor5-ai 47.2.0-alpha.1 → 47.2.0-alpha.2

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 (365) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index.js +5 -5
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/lang/translations/ar.po +34 -34
  188. package/lang/translations/bg.po +26 -26
  189. package/lang/translations/bn.po +26 -26
  190. package/lang/translations/ca.po +26 -26
  191. package/lang/translations/cs.po +28 -28
  192. package/lang/translations/da.po +26 -26
  193. package/lang/translations/de.po +26 -26
  194. package/lang/translations/el.po +26 -26
  195. package/lang/translations/es.po +26 -26
  196. package/lang/translations/et.po +26 -26
  197. package/lang/translations/fi.po +26 -26
  198. package/lang/translations/fr.po +26 -26
  199. package/lang/translations/he.po +26 -26
  200. package/lang/translations/hi.po +26 -26
  201. package/lang/translations/hu.po +26 -26
  202. package/lang/translations/id.po +24 -24
  203. package/lang/translations/it.po +26 -26
  204. package/lang/translations/ja.po +24 -24
  205. package/lang/translations/ko.po +24 -24
  206. package/lang/translations/lt.po +28 -28
  207. package/lang/translations/lv.po +28 -28
  208. package/lang/translations/ms.po +24 -24
  209. package/lang/translations/nl.po +26 -26
  210. package/lang/translations/no.po +26 -26
  211. package/lang/translations/pl.po +28 -28
  212. package/lang/translations/pt-br.po +26 -26
  213. package/lang/translations/pt.po +26 -26
  214. package/lang/translations/ro.po +28 -28
  215. package/lang/translations/ru.po +28 -28
  216. package/lang/translations/sk.po +28 -28
  217. package/lang/translations/sr.po +28 -28
  218. package/lang/translations/sv.po +26 -26
  219. package/lang/translations/th.po +24 -24
  220. package/lang/translations/tr.po +26 -26
  221. package/lang/translations/uk.po +28 -28
  222. package/lang/translations/vi.po +24 -24
  223. package/lang/translations/zh-cn.po +24 -24
  224. package/lang/translations/zh.po +24 -24
  225. package/package.json +15 -15
  226. package/src/aiactions/aiactions.js +1 -1
  227. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  228. package/src/aiactions/model/aiactionsreply.js +1 -1
  229. package/src/aiassistant/adapters/aiadapter.js +1 -1
  230. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  231. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  232. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  233. package/src/aiassistant/aiassistant.js +1 -1
  234. package/src/aiassistant/aiassistantediting.js +1 -1
  235. package/src/aiassistant/aiassistantui.js +1 -1
  236. package/src/aiassistant/legacyerrors.js +1 -1
  237. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  238. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  239. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  240. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  241. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  242. package/src/aiassistant/ui/form/aiformview.js +1 -1
  243. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  244. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  245. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  246. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  247. package/src/aiassistant/utils/common-translations.js +1 -1
  248. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  249. package/src/aiballoon/aiballoon.js +1 -1
  250. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  251. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  252. package/src/aiballoon/ui/aiballoonview.js +1 -1
  253. package/src/aichat/aichat.js +1 -1
  254. package/src/aichat/aichatcontroller.js +1 -1
  255. package/src/aichat/aichatui.js +1 -1
  256. package/src/aichat/model/aichatcontext.js +1 -1
  257. package/src/aichat/model/aichatconversation.js +1 -1
  258. package/src/aichat/model/aichatinteraction.js +1 -1
  259. package/src/aichat/model/aichatmodels.js +1 -1
  260. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  261. package/src/aichat/ui/aichatfeedview.js +1 -1
  262. package/src/aichat/ui/aichatheaderview.js +1 -1
  263. package/src/aichat/ui/aichatview.js +1 -1
  264. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  265. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  266. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  267. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  268. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  269. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  270. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  271. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  272. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  273. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  274. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  275. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  277. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  278. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  279. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  280. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  285. package/src/aichat/utils/eventnames.js +1 -1
  286. package/src/aichat/utils/promisequeue.js +1 -1
  287. package/src/aichat/utils/scrollmanager.js +1 -1
  288. package/src/aichathistory/aichathistory.js +1 -1
  289. package/src/aichathistory/aichathistorycontroller.js +1 -1
  290. package/src/aichathistory/aichathistoryui.js +1 -1
  291. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  292. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  293. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  294. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  295. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  296. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  297. package/src/aicore/aiconnector.js +1 -1
  298. package/src/aicore/aiediting.js +1 -1
  299. package/src/aicore/model/aicapabilities.js +1 -1
  300. package/src/aicore/model/aicontext.js +1 -1
  301. package/src/aicore/model/aiinteraction.js +1 -1
  302. package/src/aicore/model/aimodels.js +1 -1
  303. package/src/aicore/model/aireply.js +1 -1
  304. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  305. package/src/aicore/pipeline/airesponseparser.js +2 -2
  306. package/src/aicore/ui/aidisclaimerview.js +1 -1
  307. package/src/aicore/ui/aiskeleton.js +1 -1
  308. package/src/aicore/ui/aispinner.js +1 -1
  309. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  310. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  311. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  312. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  313. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  314. package/src/aicore/utils/common-translations.js +1 -1
  315. package/src/aicore/utils/createresizebutton.js +1 -1
  316. package/src/aicore/utils/documentposition.js +1 -1
  317. package/src/aicore/utils/documentrange.js +1 -1
  318. package/src/aicore/utils/eventnames.js +1 -1
  319. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  320. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  321. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  322. package/src/aicore/utils/htmlparser.js +1 -1
  323. package/src/aicore/utils/htmlstreamer.js +1 -1
  324. package/src/aieditorintegration/aieditorintegration.js +1 -1
  325. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  326. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  327. package/src/aiquickactions/aiquickactions.js +1 -1
  328. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  329. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  330. package/src/aiquickactions/aiquickactionsui.js +1 -1
  331. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  332. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  333. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  334. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  335. package/src/aireviewmode/aireviewmode.js +1 -1
  336. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  337. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  338. package/src/aireviewmode/aireviewmodeui.js +1 -1
  339. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  340. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  341. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  342. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  343. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  344. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  345. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  346. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  347. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  348. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  349. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  350. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  351. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  352. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  353. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  354. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  355. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  356. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  357. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  358. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  359. package/src/aitabs/aitabs.js +1 -1
  360. package/src/aitabs/aitabsmainview.js +1 -1
  361. package/src/aitabs/tabs/aitabsview.js +1 -1
  362. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  363. package/src/aitabs/tabs/tabpanelview.js +1 -1
  364. package/src/errors.js +1 -1
  365. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e65(){const _0x15654a=['3209129AcFzMn','3093464uEelBo','3jNmVRX','14880Itikrk','locale','mainAction','insertButton','addMany','toUpperCase','tryAgainButton','bind','_createButton','stopButton','items','49830VyPyXH','ck-ai-form__toolbar','915QWvynn','41592CINheE','bindTemplate','ck-button-action','REPLACE','_CONTENT','set','Stop','ck-hidden','13532XdwUdh','1280710OoYUsj','extendTemplate','isVisible','replaceButton','insert','replace','Insert\x20below','Try\x20again','label','AI_','9RZHFjy'];_0x1e65=function(){return _0x15654a;};return _0x1e65();}const _0x328c40=_0x8f7e;(function(_0x1973b6,_0x2cf3db){const _0x21f866=_0x8f7e,_0x53349c=_0x1973b6();while(!![]){try{const _0x2dd473=-parseInt(_0x21f866(0x14b))/0x1+-parseInt(_0x21f866(0x14e))/0x2+-parseInt(_0x21f866(0x13f))/0x3*(-parseInt(_0x21f866(0x156))/0x4)+-parseInt(_0x21f866(0x14d))/0x5*(-parseInt(_0x21f866(0x140))/0x6)+parseInt(_0x21f866(0x13d))/0x7+-parseInt(_0x21f866(0x13e))/0x8+parseInt(_0x21f866(0x13c))/0x9*(-parseInt(_0x21f866(0x157))/0xa);if(_0x2dd473===_0x2cf3db)break;else _0x53349c['push'](_0x53349c['shift']());}catch(_0x101fec){_0x53349c['push'](_0x53349c['shift']());}}}(_0x1e65,0x50a32));import{ToolbarView as _0x59eb65,ButtonView as _0x9bb21f}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c89fd}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x328c40(0x137),'INSERT':_0x328c40(0x136)};function _0x8f7e(_0x467211,_0x324ae4){const _0x1e65e8=_0x1e65();return _0x8f7e=function(_0x8f7e2d,_0x20aa6a){_0x8f7e2d=_0x8f7e2d-0x134;let _0x4f8f69=_0x1e65e8[_0x8f7e2d];return _0x4f8f69;},_0x8f7e(_0x467211,_0x324ae4);}export class AIFormToolbarView extends _0x59eb65{constructor(_0x69122c){const _0x64fab7=_0x328c40;super(_0x69122c),this[_0x64fab7(0x153)](_0x64fab7(0x134),!0x1),this[_0x64fab7(0x153)](_0x64fab7(0x142),AIFormToolbarViewMainActionLabel[_0x64fab7(0x151)]),this[_0x64fab7(0x135)]=this[_0x64fab7(0x148)]('',_0x64fab7(0x150)),this[_0x64fab7(0x135)][_0x64fab7(0x147)](_0x64fab7(0x13a))['to'](this,_0x64fab7(0x142),_0x50d7a5=>_0x2c89fd(_0x69122c,_0x64fab7(0x13b)+_0x50d7a5[_0x64fab7(0x145)]()+_0x64fab7(0x152))),this[_0x64fab7(0x143)]=this[_0x64fab7(0x148)](_0x2c89fd(_0x69122c,_0x64fab7(0x138))),this[_0x64fab7(0x146)]=this[_0x64fab7(0x148)](_0x2c89fd(_0x69122c,_0x64fab7(0x139))),this[_0x64fab7(0x149)]=this[_0x64fab7(0x148)](_0x2c89fd(_0x69122c,_0x64fab7(0x154)));const _0x595457=this[_0x64fab7(0x14f)];this[_0x64fab7(0x158)]({'attributes':{'class':[_0x64fab7(0x14c),_0x595457['if'](_0x64fab7(0x134),_0x64fab7(0x155),_0x1a4810=>!_0x1a4810)]}}),this[_0x64fab7(0x14a)][_0x64fab7(0x144)]([this[_0x64fab7(0x135)],this[_0x64fab7(0x143)],this[_0x64fab7(0x146)],this[_0x64fab7(0x149)]]);}[_0x328c40(0x148)](_0x384579,_0x4a1054){const _0x46b63b=_0x328c40,_0x28a88c=new _0x9bb21f(this[_0x46b63b(0x141)]);return _0x28a88c[_0x46b63b(0x153)]({'label':_0x384579,'class':_0x4a1054||'','isVisible':!0x0,'withText':!0x0}),_0x28a88c;}}
23
+ const _0x3a55cf=_0x318f;(function(_0x3dca59,_0x3f6e3d){const _0x307a20=_0x318f,_0x2e47c5=_0x3dca59();while(!![]){try{const _0x2cd88c=parseInt(_0x307a20(0x179))/0x1*(parseInt(_0x307a20(0x173))/0x2)+parseInt(_0x307a20(0x17a))/0x3*(parseInt(_0x307a20(0x17c))/0x4)+-parseInt(_0x307a20(0x18b))/0x5+-parseInt(_0x307a20(0x172))/0x6*(parseInt(_0x307a20(0x185))/0x7)+parseInt(_0x307a20(0x17f))/0x8+-parseInt(_0x307a20(0x17b))/0x9+parseInt(_0x307a20(0x18e))/0xa*(parseInt(_0x307a20(0x17d))/0xb);if(_0x2cd88c===_0x3f6e3d)break;else _0x2e47c5['push'](_0x2e47c5['shift']());}catch(_0x5662c6){_0x2e47c5['push'](_0x2e47c5['shift']());}}}(_0x10c3,0x3408b));import{ToolbarView as _0xec32fc,ButtonView as _0x803eb7}from'ckeditor5/src/ui.js';import{getTranslation as _0x181db2}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x3a55cf(0x177),'INSERT':_0x3a55cf(0x188)};export class AIFormToolbarView extends _0xec32fc{constructor(_0x474afd){const _0x7762c3=_0x3a55cf;super(_0x474afd),this[_0x7762c3(0x16a)](_0x7762c3(0x189),!0x1),this[_0x7762c3(0x16a)](_0x7762c3(0x183),AIFormToolbarViewMainActionLabel[_0x7762c3(0x16b)]),this[_0x7762c3(0x16f)]=this[_0x7762c3(0x178)]('',_0x7762c3(0x176)),this[_0x7762c3(0x16f)][_0x7762c3(0x182)](_0x7762c3(0x171))['to'](this,_0x7762c3(0x183),_0x2d79e1=>_0x181db2(_0x474afd,_0x7762c3(0x16d)+_0x2d79e1[_0x7762c3(0x181)]()+_0x7762c3(0x17e))),this[_0x7762c3(0x169)]=this[_0x7762c3(0x178)](_0x181db2(_0x474afd,_0x7762c3(0x175))),this[_0x7762c3(0x18a)]=this[_0x7762c3(0x178)](_0x181db2(_0x474afd,_0x7762c3(0x18d))),this[_0x7762c3(0x16c)]=this[_0x7762c3(0x178)](_0x181db2(_0x474afd,_0x7762c3(0x186)));const _0x4e34ce=this[_0x7762c3(0x16e)];this[_0x7762c3(0x170)]({'attributes':{'class':[_0x7762c3(0x18c),_0x4e34ce['if'](_0x7762c3(0x189),_0x7762c3(0x174),_0x5c358c=>!_0x5c358c)]}}),this[_0x7762c3(0x187)][_0x7762c3(0x184)]([this[_0x7762c3(0x16f)],this[_0x7762c3(0x169)],this[_0x7762c3(0x18a)],this[_0x7762c3(0x16c)]]);}[_0x3a55cf(0x178)](_0x152649,_0x44c223){const _0x52baad=_0x3a55cf,_0x5029aa=new _0x803eb7(this[_0x52baad(0x180)]);return _0x5029aa[_0x52baad(0x16a)]({'label':_0x152649,'class':_0x44c223||'','isVisible':!0x0,'withText':!0x0}),_0x5029aa;}}function _0x318f(_0x469b8c,_0x5b26bc){const _0x10c35f=_0x10c3();return _0x318f=function(_0x318fd4,_0x4ec1c9){_0x318fd4=_0x318fd4-0x169;let _0x4a9bdb=_0x10c35f[_0x318fd4];return _0x4a9bdb;},_0x318f(_0x469b8c,_0x5b26bc);}function _0x10c3(){const _0x474c93=['tryAgainButton','1114545vHSGCX','ck-ai-form__toolbar','Try\x20again','62850wEomoh','insertButton','set','REPLACE','stopButton','AI_','bindTemplate','replaceButton','extendTemplate','label','5052WSKUnv','2dRBqcy','ck-hidden','Insert\x20below','ck-button-action','replace','_createButton','322019MVaKrX','90267szgpdS','3819294RpWAfK','4UzGQnH','781UQbSAX','_CONTENT','2524040DaYRJG','locale','toUpperCase','bind','mainAction','addMany','2107VOFRgC','Stop','items','insert','isVisible'];_0x10c3=function(){return _0x474c93;};return _0x10c3();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x564d72=_0x25ac;function _0x25ac(_0x317b15,_0x29dcff){const _0x19e71c=_0x19e7();return _0x25ac=function(_0x25ac5d,_0x305cab){_0x25ac5d=_0x25ac5d-0xb8;let _0xa67a98=_0x19e71c[_0x25ac5d];return _0xa67a98;},_0x25ac(_0x317b15,_0x29dcff);}(function(_0x46741f,_0x53e508){const _0x1786fb=_0x25ac,_0x3dd7a5=_0x46741f();while(!![]){try{const _0x38cd69=-parseInt(_0x1786fb(0xbf))/0x1+-parseInt(_0x1786fb(0xbe))/0x2*(-parseInt(_0x1786fb(0xfd))/0x3)+-parseInt(_0x1786fb(0xcc))/0x4*(parseInt(_0x1786fb(0xdd))/0x5)+parseInt(_0x1786fb(0xef))/0x6+-parseInt(_0x1786fb(0x104))/0x7+parseInt(_0x1786fb(0xdc))/0x8+parseInt(_0x1786fb(0xc4))/0x9;if(_0x38cd69===_0x53e508)break;else _0x3dd7a5['push'](_0x3dd7a5['shift']());}catch(_0x550f25){_0x3dd7a5['push'](_0x3dd7a5['shift']());}}}(_0x19e7,0x9f0c1));import{FocusTracker as _0x49af79,KeystrokeHandler as _0x36abe5}from'ckeditor5/src/utils.js';import{View as _0x15f78b,FocusCycler as _0x3dfe86,createLabeledTextarea as _0x70c226}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x495cd3,AIFormToolbarViewMainActionLabel as _0x1adab4}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x574651}from'./aiformcontentarea.js';import{AIFormErrorView as _0x52d5f7}from'./aiformerrorview.js';import{AIFormPromptView as _0x58e00c}from'./aiformpromptview.js';import{AIHistoryListView as _0x392e16}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x5b8fe9}from'./aihistorylistitemview.js';import{PromptHistory as _0x2302e4}from'./prompthistory.js';import{getTranslation as _0x30312e}from'../../utils/common-translations.js';import{escape as _0x513423}from'es-toolkit/compat';export class AIFormView extends _0x15f78b{[_0x564d72(0xe8)];[_0x564d72(0x107)];[_0x564d72(0x106)];[_0x564d72(0xf8)];[_0x564d72(0x102)];[_0x564d72(0x105)];[_0x564d72(0xd4)];[_0x564d72(0xc9)];[_0x564d72(0xc3)];constructor(_0x32d1c5,_0x276258,_0x8b7ead=''){const _0x4bfd27=_0x564d72;super(_0x32d1c5),this[_0x4bfd27(0xcb)](_0x4bfd27(0xd3),!0x0),this[_0x4bfd27(0xcb)](_0x4bfd27(0xb8),!0x1),this[_0x4bfd27(0xcb)](_0x4bfd27(0xca),''),this[_0x4bfd27(0xcb)](_0x4bfd27(0xce),''),this[_0x4bfd27(0xcb)](_0x4bfd27(0xe2),!0x1),this[_0x4bfd27(0xcb)](_0x4bfd27(0x100),_0x1adab4[_0x4bfd27(0x103)]),this[_0x4bfd27(0xc3)]=new _0x2302e4(),this[_0x4bfd27(0x105)]=new _0x52d5f7(_0x32d1c5),this[_0x4bfd27(0x106)]=new _0x574651(_0x32d1c5,_0x8b7ead),this[_0x4bfd27(0x106)][_0x4bfd27(0xf5)](_0x4bfd27(0xb8))['to'](this),this[_0x4bfd27(0x106)][_0x4bfd27(0xf5)](_0x4bfd27(0xce))['to'](this),this[_0x4bfd27(0xf8)]=this[_0x4bfd27(0xc0)](),this[_0x4bfd27(0xf8)][_0x4bfd27(0xf5)](_0x4bfd27(0x100))['to'](this),this[_0x4bfd27(0x102)]=this[_0x4bfd27(0xdb)](),this[_0x4bfd27(0xe8)]=new _0x49af79(),this[_0x4bfd27(0x107)]=new _0x36abe5(),this[_0x4bfd27(0xd4)]=this[_0x4bfd27(0xf9)]([this[_0x4bfd27(0x106)],this[_0x4bfd27(0x106)][_0x4bfd27(0xbd)],this[_0x4bfd27(0xf8)],this[_0x4bfd27(0x102)]]),this[_0x4bfd27(0xc9)]=new _0x3dfe86({'focusables':this[_0x4bfd27(0xd4)],'focusTracker':this[_0x4bfd27(0xe8)],'keystrokeHandler':this[_0x4bfd27(0x107)],'actions':{'focusPrevious':_0x4bfd27(0xe0),'focusNext':_0x4bfd27(0xc1)}}),this[_0x4bfd27(0xc9)][_0x4bfd27(0xe4)](this[_0x4bfd27(0x102)][_0x4bfd27(0xc9)]),this[_0x4bfd27(0x102)][_0x4bfd27(0xf1)][_0x4bfd27(0xd7)][_0x4bfd27(0xf5)](_0x4bfd27(0xce))['to'](this,_0x4bfd27(0xca));const _0x115c04=this[_0x4bfd27(0xfe)];this[_0x4bfd27(0xc6)]({'tag':_0x4bfd27(0xde),'attributes':{'class':['ck',_0x4bfd27(0xe3),_0x276258],'tabindex':'-1'},'children':[{'tag':_0x4bfd27(0xde),'attributes':{'class':['ck',_0x4bfd27(0xf6)]},'children':[{'tag':_0x4bfd27(0xde),'attributes':{'class':[_0x115c04['if'](_0x4bfd27(0xe2),_0x4bfd27(0xd5),_0x506140=>!_0x506140)]},'children':[this[_0x4bfd27(0x105)]]},this[_0x4bfd27(0x106)],this[_0x4bfd27(0xf8)],this[_0x4bfd27(0x102)]]}]});}[_0x564d72(0xf4)](){const _0x48bf9c=_0x564d72;super[_0x48bf9c(0xf4)](),this[_0x48bf9c(0xe8)][_0x48bf9c(0xf3)](this[_0x48bf9c(0x106)][_0x48bf9c(0x109)]),this[_0x48bf9c(0xe8)][_0x48bf9c(0xf3)](this[_0x48bf9c(0x106)][_0x48bf9c(0xbd)][_0x48bf9c(0x109)]),this[_0x48bf9c(0xe8)][_0x48bf9c(0xf3)](this[_0x48bf9c(0xf8)][_0x48bf9c(0x109)]),this[_0x48bf9c(0xe8)][_0x48bf9c(0xf3)](this[_0x48bf9c(0x102)][_0x48bf9c(0x109)]),this[_0x48bf9c(0x107)][_0x48bf9c(0xd0)](this[_0x48bf9c(0x109)]);}[_0x564d72(0x101)](_0x6d2bf4=0x1){const _0x59890a=_0x564d72;-0x1===_0x6d2bf4?this[_0x59890a(0xc9)][_0x59890a(0xc8)]():this[_0x59890a(0xc9)][_0x59890a(0x108)]();}[_0x564d72(0xc5)](){const _0xd2dfca=_0x564d72;this[_0xd2dfca(0xca)]='',this[_0xd2dfca(0xce)]='',this[_0xd2dfca(0xe2)]=!0x1,this[_0xd2dfca(0x102)][_0xd2dfca(0xc5)](),this[_0xd2dfca(0x106)][_0xd2dfca(0x10a)]=!0x1,this[_0xd2dfca(0xf8)][_0xd2dfca(0x10a)]=!0x1;}[_0x564d72(0xdb)](){const _0x32d192=_0x564d72,_0x30dce6=this[_0x32d192(0xd8)],_0x51b3ab=new _0x58e00c(_0x30dce6,{'queryView':{'label':_0x30312e(_0x30dce6,_0x32d192(0xcd)),'creator':_0x70c226,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x30312e(_0x30dce6,_0x32d192(0xc7)),'secondary':_0x30312e(_0x30dce6,_0x32d192(0xe7))}}},'filteredView':this[_0x32d192(0xdf)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x51b3ab[_0x32d192(0xf5)](_0x32d192(0xd3))['to'](this,_0x32d192(0xd3),this,_0x32d192(0xb8),(_0x3c33ed,_0xd52acb)=>_0x3c33ed&&!_0xd52acb),this[_0x32d192(0xd0)](_0x51b3ab,_0x32d192(0xd6),(_0x30a405,_0x223df8)=>{const _0x129d15=_0x32d192;this[_0x129d15(0xca)]=_0x223df8;const _0x34a521=_0x513423(_0x223df8);this[_0x129d15(0xe5)](_0x129d15(0xfc),_0x34a521),_0x223df8[_0x129d15(0xfa)]()&&this[_0x129d15(0xc3)][_0x129d15(0xf3)]({'prompt':_0x34a521},0x0);},{'priority':_0x32d192(0xe1)}),_0x51b3ab;}[_0x564d72(0xdf)](){const _0x25b607=_0x564d72,_0x16cfb9=new _0x392e16(this[_0x25b607(0xd8)]);return _0x16cfb9[_0x25b607(0xf7)][_0x25b607(0xeb)][_0x25b607(0xd1)](this[_0x25b607(0xc3)])['as'](_0x5b8fe9),_0x16cfb9['on'](_0x25b607(0xed),()=>{const _0x12c79a=_0x25b607;this[_0x12c79a(0xc3)][_0x12c79a(0xea)](),this[_0x12c79a(0x102)][_0x12c79a(0xec)](''),this[_0x12c79a(0x102)][_0x12c79a(0x101)]();}),_0x16cfb9;}[_0x564d72(0xc0)](){const _0x259c60=_0x564d72,_0x256555=new _0x495cd3(this[_0x259c60(0xd8)]);return _0x256555[_0x259c60(0xba)][_0x259c60(0xf5)](_0x259c60(0xd3))['to'](this,_0x259c60(0xd3),this,_0x259c60(0xb8),this,_0x259c60(0xce),(_0x5e8e62,_0x574d6c,_0x1dd6cf)=>_0x5e8e62&&!_0x574d6c&&!!_0x1dd6cf),_0x256555[_0x259c60(0xba)][_0x259c60(0xb9)](_0x259c60(0xf0))['to'](this,_0x259c60(0xd9)),_0x256555[_0x259c60(0xbc)][_0x259c60(0xf5)](_0x259c60(0xd3))['to'](this,_0x259c60(0xd3),this,_0x259c60(0xb8),this,_0x259c60(0xce),(_0x2b5750,_0x45c689,_0x4729c2)=>_0x2b5750&&!_0x45c689&&!!_0x4729c2),_0x256555[_0x259c60(0xbc)][_0x259c60(0xb9)](_0x259c60(0xf0))['to'](this,_0x259c60(0xee)),_0x256555[_0x259c60(0xf2)][_0x259c60(0xf5)](_0x259c60(0xd3))['to'](this,_0x259c60(0xd3),this,_0x259c60(0xb8),(_0x6cd295,_0xedb9eb)=>_0x6cd295&&!_0xedb9eb),_0x256555[_0x259c60(0xf2)][_0x259c60(0xb9)](_0x259c60(0xf0))['to'](this,_0x259c60(0xbb)),_0x256555[_0x259c60(0xe6)][_0x259c60(0xf5)](_0x259c60(0xd3))['to'](this,_0x259c60(0xb8)),_0x256555[_0x259c60(0xe6)][_0x259c60(0xb9)](_0x259c60(0xf0))['to'](this,_0x259c60(0xda)),_0x256555;}[_0x564d72(0xd2)](){const _0x5612e7=_0x564d72;this[_0x5612e7(0xce)]='',this[_0x5612e7(0xe2)]=!0x1,this[_0x5612e7(0xb8)]=!0x0,this[_0x5612e7(0x106)][_0x5612e7(0x10a)]=!0x0,this[_0x5612e7(0xf8)][_0x5612e7(0x10a)]=!0x0,this[_0x5612e7(0x106)][_0x5612e7(0x101)]();}[_0x564d72(0xc2)](){const _0x3f25be=_0x564d72,_0x23e6f0=this[_0x3f25be(0xd8)];this[_0x3f25be(0xb8)]=!0x1,this[_0x3f25be(0xca)]='',this[_0x3f25be(0x102)][_0x3f25be(0xc5)](),this[_0x3f25be(0xce)]&&(this[_0x3f25be(0x102)][_0x3f25be(0xf1)][_0x3f25be(0xfb)]=_0x30312e(_0x23e6f0,_0x3f25be(0x10b)));}[_0x564d72(0xcf)](_0x1d9652){const _0x1a40e7=_0x564d72,_0x596949=this[_0x1a40e7(0xd8)];this[_0x1a40e7(0xc2)](),this[_0x1a40e7(0xe2)]=!0x0,this[_0x1a40e7(0x105)][_0x1a40e7(0xff)]=_0x1d9652||_0x30312e(_0x596949,_0x1a40e7(0xe9)),this[_0x1a40e7(0xce)]||(this[_0x1a40e7(0x106)][_0x1a40e7(0x10a)]=!0x1);}}function _0x19e7(){const _0x13982f=['focusLast','focusCycler','prompt','set','8452VgNQWo','Ask\x20AI\x20to\x20edit\x20or\x20generate','value','handleError','listenTo','bindTo','startProcessing','isEnabled','_focusables','ck-hidden','submit','fieldView','locale','replaceContent','stopProcessing','_createPromptView','906928idWYrN','970ICkiJF','div','_createHistoryView','shift\x20+\x20tab','high','isError','ck-ai-form','chain','fire','stopButton','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','focusTracker','AI_ERROR_FAILED','clear','items','search','clearHistory','insertContentBelow','3460032vrPyki','execute','queryView','tryAgainButton','add','render','bind','ck-ai-form-content','historyGroupView','toolbar','createCollection','trim','label','submitPrompt','76077eZNbyj','bindTemplate','text','mainAction','focus','promptView','REPLACE','5624339akduUt','errorView','contentArea','keystrokes','focusFirst','element','isVisible','Ask\x20AI\x20to\x20improve\x20generated\x20text','isProcessing','delegate','replaceButton','tryAgainEvent','insertButton','copyButtonView','52XnEznY','486092WYrFXy','_createToolbar','tab','finishProcessing','_promptHistory','9014184HiAZxa','reset','setTemplate','Empty\x20history'];_0x19e7=function(){return _0x13982f;};return _0x19e7();}
23
+ const _0x154f05=_0x39ee;(function(_0x29105f,_0xdbff8f){const _0x43ba5f=_0x39ee,_0x4d7f22=_0x29105f();while(!![]){try{const _0x3063f0=parseInt(_0x43ba5f(0x1fc))/0x1+parseInt(_0x43ba5f(0x1fa))/0x2+-parseInt(_0x43ba5f(0x209))/0x3+parseInt(_0x43ba5f(0x1ed))/0x4*(parseInt(_0x43ba5f(0x1df))/0x5)+-parseInt(_0x43ba5f(0x215))/0x6*(-parseInt(_0x43ba5f(0x1f9))/0x7)+parseInt(_0x43ba5f(0x21a))/0x8+-parseInt(_0x43ba5f(0x20b))/0x9;if(_0x3063f0===_0xdbff8f)break;else _0x4d7f22['push'](_0x4d7f22['shift']());}catch(_0x136406){_0x4d7f22['push'](_0x4d7f22['shift']());}}}(_0x22cc,0x5d0ef));import{FocusTracker as _0x56ebc6,KeystrokeHandler as _0x1e197e}from'ckeditor5/src/utils.js';import{View as _0x1925cd,FocusCycler as _0x28b9aa,createLabeledTextarea as _0x129179}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x5d2a7d,AIFormToolbarViewMainActionLabel as _0x10d6e8}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x5c44f1}from'./aiformcontentarea.js';import{AIFormErrorView as _0x4d9ba4}from'./aiformerrorview.js';import{AIFormPromptView as _0x4ff81f}from'./aiformpromptview.js';import{AIHistoryListView as _0x3c0649}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x104ff9}from'./aihistorylistitemview.js';import{PromptHistory as _0x2f9c29}from'./prompthistory.js';function _0x22cc(){const _0x25686b=['render','element','stopButton','fire','isVisible','value','4902709qgUWKF','577432WoMgaP','contentArea','245150suGgzj','bindTemplate','toolbar','focusCycler','focusLast','ck-ai-form-content','clear','tryAgainButton','label','Empty\x20history','finishProcessing','historyGroupView','focusTracker','1637577dKhlnM','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','12581037rIYNRo','handleError','insertButton','_promptHistory','copyButtonView','Ask\x20AI\x20to\x20improve\x20generated\x20text','replaceButton','fieldView','errorView','listenTo','6GqvzLh','promptView','stopProcessing','mainAction','chain','5549616ZFrzjV','Ask\x20AI\x20to\x20edit\x20or\x20generate','focus','startProcessing','REPLACE','_focusables','items','add','search','ck-ai-form','_createHistoryView','clearHistory','execute','prompt','tab','shift\x20+\x20tab','bindTo','text','insertContentBelow','createCollection','_createPromptView','isEnabled','_createToolbar','trim','high','5aovAhV','setTemplate','AI_ERROR_FAILED','focusFirst','keystrokes','isProcessing','isError','submit','set','tryAgainEvent','submitPrompt','ck-hidden','locale','delegate','1587856EIMKBB','queryView','bind','replaceContent','reset','div'];_0x22cc=function(){return _0x25686b;};return _0x22cc();}import{getTranslation as _0x1bcba4}from'../../utils/common-translations.js';function _0x39ee(_0x113b1a,_0x24e220){const _0x22cc21=_0x22cc();return _0x39ee=function(_0x39ee31,_0x201f3d){_0x39ee31=_0x39ee31-0x1ca;let _0x4bd200=_0x22cc21[_0x39ee31];return _0x4bd200;},_0x39ee(_0x113b1a,_0x24e220);}import{escape as _0x54dd5c}from'es-toolkit/compat';export class AIFormView extends _0x1925cd{[_0x154f05(0x208)];[_0x154f05(0x1e3)];[_0x154f05(0x1fb)];[_0x154f05(0x1fe)];[_0x154f05(0x216)];[_0x154f05(0x213)];[_0x154f05(0x1cb)];[_0x154f05(0x1ff)];[_0x154f05(0x20e)];constructor(_0x330ca4,_0x4af242,_0x4ff06e=''){const _0x49c9aa=_0x154f05;super(_0x330ca4),this[_0x49c9aa(0x1e7)](_0x49c9aa(0x1db),!0x0),this[_0x49c9aa(0x1e7)](_0x49c9aa(0x1e4),!0x1),this[_0x49c9aa(0x1e7)](_0x49c9aa(0x1d3),''),this[_0x49c9aa(0x1e7)](_0x49c9aa(0x1f8),''),this[_0x49c9aa(0x1e7)](_0x49c9aa(0x1e5),!0x1),this[_0x49c9aa(0x1e7)](_0x49c9aa(0x218),_0x10d6e8[_0x49c9aa(0x1ca)]),this[_0x49c9aa(0x20e)]=new _0x2f9c29(),this[_0x49c9aa(0x213)]=new _0x4d9ba4(_0x330ca4),this[_0x49c9aa(0x1fb)]=new _0x5c44f1(_0x330ca4,_0x4ff06e),this[_0x49c9aa(0x1fb)][_0x49c9aa(0x1ef)](_0x49c9aa(0x1e4))['to'](this),this[_0x49c9aa(0x1fb)][_0x49c9aa(0x1ef)](_0x49c9aa(0x1f8))['to'](this),this[_0x49c9aa(0x1fe)]=this[_0x49c9aa(0x1dc)](),this[_0x49c9aa(0x1fe)][_0x49c9aa(0x1ef)](_0x49c9aa(0x218))['to'](this),this[_0x49c9aa(0x216)]=this[_0x49c9aa(0x1da)](),this[_0x49c9aa(0x208)]=new _0x56ebc6(),this[_0x49c9aa(0x1e3)]=new _0x1e197e(),this[_0x49c9aa(0x1cb)]=this[_0x49c9aa(0x1d9)]([this[_0x49c9aa(0x1fb)],this[_0x49c9aa(0x1fb)][_0x49c9aa(0x20f)],this[_0x49c9aa(0x1fe)],this[_0x49c9aa(0x216)]]),this[_0x49c9aa(0x1ff)]=new _0x28b9aa({'focusables':this[_0x49c9aa(0x1cb)],'focusTracker':this[_0x49c9aa(0x208)],'keystrokeHandler':this[_0x49c9aa(0x1e3)],'actions':{'focusPrevious':_0x49c9aa(0x1d5),'focusNext':_0x49c9aa(0x1d4)}}),this[_0x49c9aa(0x1ff)][_0x49c9aa(0x219)](this[_0x49c9aa(0x216)][_0x49c9aa(0x1ff)]),this[_0x49c9aa(0x216)][_0x49c9aa(0x1ee)][_0x49c9aa(0x212)][_0x49c9aa(0x1ef)](_0x49c9aa(0x1f8))['to'](this,_0x49c9aa(0x1d3));const _0x41e362=this[_0x49c9aa(0x1fd)];this[_0x49c9aa(0x1e0)]({'tag':_0x49c9aa(0x1f2),'attributes':{'class':['ck',_0x49c9aa(0x1cf),_0x4af242],'tabindex':'-1'},'children':[{'tag':_0x49c9aa(0x1f2),'attributes':{'class':['ck',_0x49c9aa(0x201)]},'children':[{'tag':_0x49c9aa(0x1f2),'attributes':{'class':[_0x41e362['if'](_0x49c9aa(0x1e5),_0x49c9aa(0x1ea),_0x50bbdc=>!_0x50bbdc)]},'children':[this[_0x49c9aa(0x213)]]},this[_0x49c9aa(0x1fb)],this[_0x49c9aa(0x1fe)],this[_0x49c9aa(0x216)]]}]});}[_0x154f05(0x1f3)](){const _0x47d7c0=_0x154f05;super[_0x47d7c0(0x1f3)](),this[_0x47d7c0(0x208)][_0x47d7c0(0x1cd)](this[_0x47d7c0(0x1fb)][_0x47d7c0(0x1f4)]),this[_0x47d7c0(0x208)][_0x47d7c0(0x1cd)](this[_0x47d7c0(0x1fb)][_0x47d7c0(0x20f)][_0x47d7c0(0x1f4)]),this[_0x47d7c0(0x208)][_0x47d7c0(0x1cd)](this[_0x47d7c0(0x1fe)][_0x47d7c0(0x1f4)]),this[_0x47d7c0(0x208)][_0x47d7c0(0x1cd)](this[_0x47d7c0(0x216)][_0x47d7c0(0x1f4)]),this[_0x47d7c0(0x1e3)][_0x47d7c0(0x214)](this[_0x47d7c0(0x1f4)]);}[_0x154f05(0x21c)](_0x36350c=0x1){const _0x4450a5=_0x154f05;-0x1===_0x36350c?this[_0x4450a5(0x1ff)][_0x4450a5(0x200)]():this[_0x4450a5(0x1ff)][_0x4450a5(0x1e2)]();}[_0x154f05(0x1f1)](){const _0x128f1c=_0x154f05;this[_0x128f1c(0x1d3)]='',this[_0x128f1c(0x1f8)]='',this[_0x128f1c(0x1e5)]=!0x1,this[_0x128f1c(0x216)][_0x128f1c(0x1f1)](),this[_0x128f1c(0x1fb)][_0x128f1c(0x1f7)]=!0x1,this[_0x128f1c(0x1fe)][_0x128f1c(0x1f7)]=!0x1;}[_0x154f05(0x1da)](){const _0x372a1d=_0x154f05,_0xe54a6=this[_0x372a1d(0x1eb)],_0x33599e=new _0x4ff81f(_0xe54a6,{'queryView':{'label':_0x1bcba4(_0xe54a6,_0x372a1d(0x21b)),'creator':_0x129179,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1bcba4(_0xe54a6,_0x372a1d(0x205)),'secondary':_0x1bcba4(_0xe54a6,_0x372a1d(0x20a))}}},'filteredView':this[_0x372a1d(0x1d0)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x33599e[_0x372a1d(0x1ef)](_0x372a1d(0x1db))['to'](this,_0x372a1d(0x1db),this,_0x372a1d(0x1e4),(_0xb2ecf6,_0x3c7ff0)=>_0xb2ecf6&&!_0x3c7ff0),this[_0x372a1d(0x214)](_0x33599e,_0x372a1d(0x1e6),(_0x32c8ea,_0x2c2551)=>{const _0x487078=_0x372a1d;this[_0x487078(0x1d3)]=_0x2c2551;const _0x4fde25=_0x54dd5c(_0x2c2551);this[_0x487078(0x1f6)](_0x487078(0x1e9),_0x4fde25),_0x2c2551[_0x487078(0x1dd)]()&&this[_0x487078(0x20e)][_0x487078(0x1cd)]({'prompt':_0x4fde25},0x0);},{'priority':_0x372a1d(0x1de)}),_0x33599e;}[_0x154f05(0x1d0)](){const _0x801cec=_0x154f05,_0xfbbf92=new _0x3c0649(this[_0x801cec(0x1eb)]);return _0xfbbf92[_0x801cec(0x207)][_0x801cec(0x1cc)][_0x801cec(0x1d6)](this[_0x801cec(0x20e)])['as'](_0x104ff9),_0xfbbf92['on'](_0x801cec(0x1d1),()=>{const _0x1c923a=_0x801cec;this[_0x1c923a(0x20e)][_0x1c923a(0x202)](),this[_0x1c923a(0x216)][_0x1c923a(0x1ce)](''),this[_0x1c923a(0x216)][_0x1c923a(0x21c)]();}),_0xfbbf92;}[_0x154f05(0x1dc)](){const _0x320575=_0x154f05,_0x399be3=new _0x5d2a7d(this[_0x320575(0x1eb)]);return _0x399be3[_0x320575(0x211)][_0x320575(0x1ef)](_0x320575(0x1db))['to'](this,_0x320575(0x1db),this,_0x320575(0x1e4),this,_0x320575(0x1f8),(_0x59cc03,_0x3e3b84,_0x35f889)=>_0x59cc03&&!_0x3e3b84&&!!_0x35f889),_0x399be3[_0x320575(0x211)][_0x320575(0x1ec)](_0x320575(0x1d2))['to'](this,_0x320575(0x1f0)),_0x399be3[_0x320575(0x20d)][_0x320575(0x1ef)](_0x320575(0x1db))['to'](this,_0x320575(0x1db),this,_0x320575(0x1e4),this,_0x320575(0x1f8),(_0x29ca63,_0x48a7ee,_0x482ebc)=>_0x29ca63&&!_0x48a7ee&&!!_0x482ebc),_0x399be3[_0x320575(0x20d)][_0x320575(0x1ec)](_0x320575(0x1d2))['to'](this,_0x320575(0x1d8)),_0x399be3[_0x320575(0x203)][_0x320575(0x1ef)](_0x320575(0x1db))['to'](this,_0x320575(0x1db),this,_0x320575(0x1e4),(_0x25ff0f,_0x5455d3)=>_0x25ff0f&&!_0x5455d3),_0x399be3[_0x320575(0x203)][_0x320575(0x1ec)](_0x320575(0x1d2))['to'](this,_0x320575(0x1e8)),_0x399be3[_0x320575(0x1f5)][_0x320575(0x1ef)](_0x320575(0x1db))['to'](this,_0x320575(0x1e4)),_0x399be3[_0x320575(0x1f5)][_0x320575(0x1ec)](_0x320575(0x1d2))['to'](this,_0x320575(0x217)),_0x399be3;}[_0x154f05(0x21d)](){const _0x83607=_0x154f05;this[_0x83607(0x1f8)]='',this[_0x83607(0x1e5)]=!0x1,this[_0x83607(0x1e4)]=!0x0,this[_0x83607(0x1fb)][_0x83607(0x1f7)]=!0x0,this[_0x83607(0x1fe)][_0x83607(0x1f7)]=!0x0,this[_0x83607(0x1fb)][_0x83607(0x21c)]();}[_0x154f05(0x206)](){const _0x138b5c=_0x154f05,_0x1d667b=this[_0x138b5c(0x1eb)];this[_0x138b5c(0x1e4)]=!0x1,this[_0x138b5c(0x1d3)]='',this[_0x138b5c(0x216)][_0x138b5c(0x1f1)](),this[_0x138b5c(0x1f8)]&&(this[_0x138b5c(0x216)][_0x138b5c(0x1ee)][_0x138b5c(0x204)]=_0x1bcba4(_0x1d667b,_0x138b5c(0x210)));}[_0x154f05(0x20c)](_0x43cbf1){const _0x215eda=_0x154f05,_0x534056=this[_0x215eda(0x1eb)];this[_0x215eda(0x206)](),this[_0x215eda(0x1e5)]=!0x0,this[_0x215eda(0x213)][_0x215eda(0x1d7)]=_0x43cbf1||_0x1bcba4(_0x534056,_0x215eda(0x1e1)),this[_0x215eda(0x1f8)]||(this[_0x215eda(0x1fb)][_0x215eda(0x1f7)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x427be5,_0x1daae2){const _0x37a99f=_0x52bc,_0x177cee=_0x427be5();while(!![]){try{const _0x47c5d9=parseInt(_0x37a99f(0x197))/0x1*(parseInt(_0x37a99f(0x1a0))/0x2)+-parseInt(_0x37a99f(0x19f))/0x3*(-parseInt(_0x37a99f(0x19b))/0x4)+parseInt(_0x37a99f(0x19a))/0x5*(parseInt(_0x37a99f(0x199))/0x6)+-parseInt(_0x37a99f(0x198))/0x7+parseInt(_0x37a99f(0x19d))/0x8+parseInt(_0x37a99f(0x196))/0x9*(-parseInt(_0x37a99f(0x1a6))/0xa)+-parseInt(_0x37a99f(0x1a7))/0xb;if(_0x47c5d9===_0x1daae2)break;else _0x177cee['push'](_0x177cee['shift']());}catch(_0x56357d){_0x177cee['push'](_0x177cee['shift']());}}}(_0x426f,0xe9a0a));import{ListItemView as _0x352569,ButtonView as _0x3961fd,ButtonLabelView as _0x99f58a}from'ckeditor5/src/ui.js';import{unescape as _0x5c923}from'es-toolkit/compat';function _0x52bc(_0xc481fc,_0x5d3be8){const _0x426fa0=_0x426f();return _0x52bc=function(_0x52bcdc,_0x3930c1){_0x52bcdc=_0x52bcdc-0x196;let _0x2a2ef0=_0x426fa0[_0x52bcdc];return _0x2a2ef0;},_0x52bc(_0xc481fc,_0x5d3be8);}export class AIHistoryListItemView extends _0x352569{constructor(_0x331408){const _0x413019=_0x52bc;super();const _0x52f400=new _0x99f58a(),_0x49f3d1=new _0x3961fd(this[_0x413019(0x1a5)],_0x52f400);this[_0x413019(0x1a3)][_0x413019(0x1a4)](_0x49f3d1),_0x49f3d1[_0x413019(0x19c)]({'label':_0x331408[_0x413019(0x1a1)],'withText':!0x0}),_0x49f3d1['on'](_0x413019(0x1a2),()=>{const _0x190ff6=_0x413019;this[_0x190ff6(0x19e)](_0x190ff6(0x1a2),{'value':_0x5c923(_0x331408[_0x190ff6(0x1a1)])});});}}function _0x426f(){const _0x43ddd6=['execute','children','add','locale','20VSLjQj','17594016otcsOT','7745157oshyWU','1025021VKMZOW','4035955XvPwJj','18oRQKeo','2791935BdAcQD','1796aFrvoB','set','7421632RBtVOT','fire','8193vyWVRb','2yZHvSg','prompt'];_0x426f=function(){return _0x43ddd6;};return _0x426f();}
23
+ (function(_0x30fc6d,_0x44a350){const _0x33a968=_0x5a8e,_0x29de6e=_0x30fc6d();while(!![]){try{const _0x1195a0=-parseInt(_0x33a968(0x8c))/0x1+-parseInt(_0x33a968(0x83))/0x2+-parseInt(_0x33a968(0x89))/0x3+-parseInt(_0x33a968(0x8e))/0x4+-parseInt(_0x33a968(0x8b))/0x5+-parseInt(_0x33a968(0x88))/0x6+-parseInt(_0x33a968(0x8f))/0x7*(-parseInt(_0x33a968(0x8a))/0x8);if(_0x1195a0===_0x44a350)break;else _0x29de6e['push'](_0x29de6e['shift']());}catch(_0x2e7b56){_0x29de6e['push'](_0x29de6e['shift']());}}}(_0x31ab,0x66d66));function _0x31ab(){const _0x21aecf=['fire','execute','prompt','2229918fvWbhB','1476819bgBnnI','10312LGItWT','2465860yueqET','539666KUiLmH','children','1924176ITfGHZ','15505Xnapug','set','add','112210RWqaBB','locale'];_0x31ab=function(){return _0x21aecf;};return _0x31ab();}import{ListItemView as _0x212e53,ButtonView as _0xa55702,ButtonLabelView as _0x46e20d}from'ckeditor5/src/ui.js';function _0x5a8e(_0x4478cb,_0x382e77){const _0x31abe3=_0x31ab();return _0x5a8e=function(_0x5a8e14,_0x13aec6){_0x5a8e14=_0x5a8e14-0x81;let _0xfc90ef=_0x31abe3[_0x5a8e14];return _0xfc90ef;},_0x5a8e(_0x4478cb,_0x382e77);}import{unescape as _0x24efb6}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x212e53{constructor(_0x17c0c8){const _0x6dc0b8=_0x5a8e;super();const _0x5d293a=new _0x46e20d(),_0x20af7b=new _0xa55702(this[_0x6dc0b8(0x84)],_0x5d293a);this[_0x6dc0b8(0x8d)][_0x6dc0b8(0x82)](_0x20af7b),_0x20af7b[_0x6dc0b8(0x81)]({'label':_0x17c0c8[_0x6dc0b8(0x87)],'withText':!0x0}),_0x20af7b['on'](_0x6dc0b8(0x86),()=>{const _0x256ffc=_0x6dc0b8;this[_0x256ffc(0x85)](_0x256ffc(0x86),{'value':_0x24efb6(_0x17c0c8[_0x256ffc(0x87)])});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x92d1(_0x5393c6,_0x2252d7){const _0x36a3c0=_0x36a3();return _0x92d1=function(_0x92d1f3,_0x2860ff){_0x92d1f3=_0x92d1f3-0xc5;let _0x4c0433=_0x36a3c0[_0x92d1f3];return _0x4c0433;},_0x92d1(_0x5393c6,_0x2252d7);}const _0x536c04=_0x92d1;(function(_0x3715c0,_0x119629){const _0x407491=_0x92d1,_0x2ea9cb=_0x3715c0();while(!![]){try{const _0x4a6662=parseInt(_0x407491(0xd4))/0x1*(-parseInt(_0x407491(0xc7))/0x2)+parseInt(_0x407491(0xd7))/0x3*(-parseInt(_0x407491(0xd0))/0x4)+parseInt(_0x407491(0xd3))/0x5+-parseInt(_0x407491(0xda))/0x6*(parseInt(_0x407491(0xcc))/0x7)+parseInt(_0x407491(0xdc))/0x8+parseInt(_0x407491(0xdd))/0x9+parseInt(_0x407491(0xd5))/0xa;if(_0x4a6662===_0x119629)break;else _0x2ea9cb['push'](_0x2ea9cb['shift']());}catch(_0x38a618){_0x2ea9cb['push'](_0x2ea9cb['shift']());}}}(_0x36a3,0xc01fd));import{ListView as _0x49165d,ListItemGroupView as _0x46382d,ButtonView as _0x1aca05}from'ckeditor5/src/ui.js';function _0x36a3(){const _0x303617=['add','locale','35592kQSRiP','length','historyGroupView','7748655ZcIHIo','1StfnPn','4705090BIMtOv','execute','276oKCWAV','delegate','_createClearHistoryButton','5166qEYgLr','fire','3898640KICYpO','1256751RXJyOH','label','Clear','clearHistoryButton','children','862406jHprZg','set','filter','Prompt\x20history','items','4963uRzksz','clearHistory'];_0x36a3=function(){return _0x303617;};return _0x36a3();}import{getTranslation as _0x33be5c}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x49165d{[_0x536c04(0xd2)];[_0x536c04(0xc5)];constructor(_0x246e91){const _0x13845d=_0x536c04;super(_0x246e91),this[_0x13845d(0xc5)]=this[_0x13845d(0xd9)](),this[_0x13845d(0xd2)]=new _0x46382d(),this[_0x13845d(0xd2)][_0x13845d(0xc6)][_0x13845d(0xce)](this[_0x13845d(0xc5)],0x1),this[_0x13845d(0xd2)][_0x13845d(0xde)]=_0x33be5c(_0x246e91,_0x13845d(0xca)),this[_0x13845d(0xd2)][_0x13845d(0xcb)][_0x13845d(0xd8)](_0x13845d(0xd6))['to'](this),this[_0x13845d(0xcb)][_0x13845d(0xce)](this[_0x13845d(0xd2)]);}[_0x536c04(0xc9)](){const _0x4d8d75=_0x536c04;let _0x51fced=0x0;for(const _0x2f11d3 of this[_0x4d8d75(0xcb)])_0x51fced+=_0x2f11d3[_0x4d8d75(0xcb)][_0x4d8d75(0xd1)];return{'resultsCount':_0x51fced,'totalItemsCount':_0x51fced};}[_0x536c04(0xd9)](){const _0x367840=_0x536c04,_0x61e0d9=this[_0x367840(0xcf)],_0x3c9522=new _0x1aca05(this[_0x367840(0xcf)]);return _0x3c9522[_0x367840(0xc8)]({'label':'('+_0x33be5c(_0x61e0d9,_0x367840(0xdf))+')','withText':!0x0}),_0x3c9522['on'](_0x367840(0xd6),()=>this[_0x367840(0xdb)](_0x367840(0xcd))),_0x3c9522;}}
23
+ const _0x28c5b2=_0x1da1;(function(_0x24e455,_0x2b6e90){const _0x5caac2=_0x1da1,_0x3232e1=_0x24e455();while(!![]){try{const _0x386126=-parseInt(_0x5caac2(0x203))/0x1+-parseInt(_0x5caac2(0x1f1))/0x2*(-parseInt(_0x5caac2(0x204))/0x3)+parseInt(_0x5caac2(0x1f4))/0x4+-parseInt(_0x5caac2(0x1f7))/0x5*(parseInt(_0x5caac2(0x200))/0x6)+-parseInt(_0x5caac2(0x1e9))/0x7*(-parseInt(_0x5caac2(0x201))/0x8)+parseInt(_0x5caac2(0x1ff))/0x9*(-parseInt(_0x5caac2(0x1ee))/0xa)+parseInt(_0x5caac2(0x1f0))/0xb*(parseInt(_0x5caac2(0x1ec))/0xc);if(_0x386126===_0x2b6e90)break;else _0x3232e1['push'](_0x3232e1['shift']());}catch(_0x11ff0d){_0x3232e1['push'](_0x3232e1['shift']());}}}(_0x4510,0x97722));function _0x4510(){const _0x2c6359=['locale','269852gQKrRU','806DEVeiG','children','filter','1616520jJgOqr','items','Clear','26735TFSzyW','delegate','label','historyGroupView','clearHistoryButton','Prompt\x20history','clearHistory','set','816183zCvNJx','1254JGNigX','288EYgSQx','add','402687enAwPu','8727wFXBnw','_createClearHistoryButton','17444qifVrS','length','fire','720OzWgQS','execute','110jbEiEL'];_0x4510=function(){return _0x2c6359;};return _0x4510();}import{ListView as _0x45f863,ListItemGroupView as _0x26c3d4,ButtonView as _0x198be5}from'ckeditor5/src/ui.js';import{getTranslation as _0x50522a}from'../../utils/common-translations.js';function _0x1da1(_0x7a811c,_0x3c7d56){const _0x45106c=_0x4510();return _0x1da1=function(_0x1da138,_0x4d662b){_0x1da138=_0x1da138-0x1e9;let _0x15eb3b=_0x45106c[_0x1da138];return _0x15eb3b;},_0x1da1(_0x7a811c,_0x3c7d56);}export class AIHistoryListView extends _0x45f863{[_0x28c5b2(0x1fa)];[_0x28c5b2(0x1fb)];constructor(_0x74cf6){const _0x23eace=_0x28c5b2;super(_0x74cf6),this[_0x23eace(0x1fb)]=this[_0x23eace(0x205)](),this[_0x23eace(0x1fa)]=new _0x26c3d4(),this[_0x23eace(0x1fa)][_0x23eace(0x1f2)][_0x23eace(0x202)](this[_0x23eace(0x1fb)],0x1),this[_0x23eace(0x1fa)][_0x23eace(0x1f9)]=_0x50522a(_0x74cf6,_0x23eace(0x1fc)),this[_0x23eace(0x1fa)][_0x23eace(0x1f5)][_0x23eace(0x1f8)](_0x23eace(0x1ed))['to'](this),this[_0x23eace(0x1f5)][_0x23eace(0x202)](this[_0x23eace(0x1fa)]);}[_0x28c5b2(0x1f3)](){const _0xd30b22=_0x28c5b2;let _0x131bdf=0x0;for(const _0x52d983 of this[_0xd30b22(0x1f5)])_0x131bdf+=_0x52d983[_0xd30b22(0x1f5)][_0xd30b22(0x1ea)];return{'resultsCount':_0x131bdf,'totalItemsCount':_0x131bdf};}[_0x28c5b2(0x205)](){const _0x2d51a8=_0x28c5b2,_0x26a365=this[_0x2d51a8(0x1ef)],_0x56fb5f=new _0x198be5(this[_0x2d51a8(0x1ef)]);return _0x56fb5f[_0x2d51a8(0x1fe)]({'label':'('+_0x50522a(_0x26a365,_0x2d51a8(0x1f6))+')','withText':!0x0}),_0x56fb5f['on'](_0x2d51a8(0x1ed),()=>this[_0x2d51a8(0x1eb)](_0x2d51a8(0x1fd))),_0x56fb5f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13c775=_0x1379;(function(_0x456753,_0x39b76a){const _0x12a2b3=_0x1379,_0x525b21=_0x456753();while(!![]){try{const _0x19f4d1=parseInt(_0x12a2b3(0xe8))/0x1*(-parseInt(_0x12a2b3(0xf5))/0x2)+-parseInt(_0x12a2b3(0xeb))/0x3*(parseInt(_0x12a2b3(0xf9))/0x4)+parseInt(_0x12a2b3(0xec))/0x5*(-parseInt(_0x12a2b3(0xff))/0x6)+parseInt(_0x12a2b3(0xf3))/0x7+parseInt(_0x12a2b3(0xf8))/0x8*(parseInt(_0x12a2b3(0xfd))/0x9)+parseInt(_0x12a2b3(0x101))/0xa*(-parseInt(_0x12a2b3(0xe7))/0xb)+-parseInt(_0x12a2b3(0xf4))/0xc*(-parseInt(_0x12a2b3(0xf0))/0xd);if(_0x19f4d1===_0x39b76a)break;else _0x525b21['push'](_0x525b21['shift']());}catch(_0x54ebcc){_0x525b21['push'](_0x525b21['shift']());}}}(_0x4bf6,0xdd022));import{Collection as _0x5290f0}from'ckeditor5/src/utils.js';function _0x1379(_0x476caf,_0x2d268e){const _0x4bf661=_0x4bf6();return _0x1379=function(_0x13794d,_0x9dc7ca){_0x13794d=_0x13794d-0xe7;let _0x5a71a0=_0x4bf661[_0x13794d];return _0x5a71a0;},_0x1379(_0x476caf,_0x2d268e);}const So=_0x13c775(0x100);export class PromptHistory extends _0x5290f0{constructor(){const _0x4d9756=_0x13c775;super(),this[_0x4d9756(0xf1)](),this['on'](_0x4d9756(0xe9),(_0x566170,_0x52bb11)=>{const _0x503a85=_0x4d9756,_0x1062e8=fo(_0x52bb11[_0x503a85(0xef)]);for(const _0xf5bae8 of this)if(_0xf5bae8!=_0x52bb11&&fo(_0xf5bae8[_0x503a85(0xef)])===_0x1062e8){this[_0x503a85(0xf2)](_0xf5bae8);break;}this[_0x503a85(0xed)]>0x14&&this[_0x503a85(0xf2)](this[_0x503a85(0xfa)]),this[_0x503a85(0x102)]();}),this['on'](_0x4d9756(0xf2),()=>{const _0x395c16=_0x4d9756;this[_0x395c16(0x102)]();});}[_0x13c775(0xf1)](){const _0x71e172=_0x13c775,_0x215972=sessionStorage[_0x71e172(0xfc)](So)||'[]';this[_0x71e172(0xf7)](JSON[_0x71e172(0xfe)](_0x215972));}[_0x13c775(0x102)](){const _0x46bb0d=_0x13c775;sessionStorage[_0x46bb0d(0xfb)](So,JSON[_0x46bb0d(0xea)](this[_0x46bb0d(0xf6)](_0x3befd6=>_0x3befd6)));}}function fo(_0x3fa6d5){const _0x5dc186=_0x13c775;return _0x3fa6d5[_0x5dc186(0xee)]()[_0x5dc186(0x103)]();}function _0x4bf6(){const _0x5287e3=['add','stringify','6SxFiTi','212730qMRvJN','length','toLowerCase','prompt','13IyzWDz','_loadFromSessionStorage','remove','6671637Asuchh','37136424EoVqmC','2EyhVwP','map','addMany','768lAikgo','1893908DkhJFh','last','setItem','getItem','48204eSWwpl','parse','18eyziqI','CKEditor/AIFormView/PromptHistory','8247700kNXnac','_saveToSessionStorage','trim','22lxDbWg','932587IJjzSQ'];_0x4bf6=function(){return _0x5287e3;};return _0x4bf6();}
23
+ const _0x577877=_0x538e;(function(_0x845948,_0x5eb504){const _0x4f8660=_0x538e,_0x3cd89a=_0x845948();while(!![]){try{const _0x1c4341=-parseInt(_0x4f8660(0x76))/0x1*(-parseInt(_0x4f8660(0x6e))/0x2)+parseInt(_0x4f8660(0x7c))/0x3+-parseInt(_0x4f8660(0x7a))/0x4+parseInt(_0x4f8660(0x80))/0x5*(-parseInt(_0x4f8660(0x7b))/0x6)+-parseInt(_0x4f8660(0x6d))/0x7*(-parseInt(_0x4f8660(0x74))/0x8)+parseInt(_0x4f8660(0x6c))/0x9+parseInt(_0x4f8660(0x78))/0xa*(-parseInt(_0x4f8660(0x86))/0xb);if(_0x1c4341===_0x5eb504)break;else _0x3cd89a['push'](_0x3cd89a['shift']());}catch(_0x382888){_0x3cd89a['push'](_0x3cd89a['shift']());}}}(_0x2b18,0xdab8c));import{Collection as _0x37b00e}from'ckeditor5/src/utils.js';function _0x538e(_0x4f283e,_0x3c80af){const _0x2b1870=_0x2b18();return _0x538e=function(_0x538e71,_0x155070){_0x538e71=_0x538e71-0x6c;let _0x24639e=_0x2b1870[_0x538e71];return _0x24639e;},_0x538e(_0x4f283e,_0x3c80af);}const Jo=_0x577877(0x79);export class PromptHistory extends _0x37b00e{constructor(){const _0x36c143=_0x577877;super(),this[_0x36c143(0x81)](),this['on'](_0x36c143(0x71),(_0x59a78b,_0x4526c9)=>{const _0x45a0c7=_0x36c143,_0x273bff=zo(_0x4526c9[_0x45a0c7(0x7e)]);for(const _0x9e3fba of this)if(_0x9e3fba!=_0x4526c9&&zo(_0x9e3fba[_0x45a0c7(0x7e)])===_0x273bff){this[_0x45a0c7(0x70)](_0x9e3fba);break;}this[_0x45a0c7(0x83)]>0x14&&this[_0x45a0c7(0x70)](this[_0x45a0c7(0x77)]),this[_0x45a0c7(0x73)]();}),this['on'](_0x36c143(0x70),()=>{const _0x424105=_0x36c143;this[_0x424105(0x73)]();});}[_0x577877(0x81)](){const _0x4e5fd5=_0x577877,_0x1c74d8=sessionStorage[_0x4e5fd5(0x6f)](Jo)||'[]';this[_0x4e5fd5(0x7f)](JSON[_0x4e5fd5(0x82)](_0x1c74d8));}[_0x577877(0x73)](){const _0x2772af=_0x577877;sessionStorage[_0x2772af(0x75)](Jo,JSON[_0x2772af(0x85)](this[_0x2772af(0x84)](_0x46157e=>_0x46157e)));}}function _0x2b18(){const _0x57b04d=['14158qsabaQ','getItem','remove','add','toLowerCase','_saveToSessionStorage','16536XQJcax','setItem','229OsYiSZ','last','233150XsFRLY','CKEditor/AIFormView/PromptHistory','2588456QlVzpb','36nidhRo','2417082NhPYSa','trim','prompt','addMany','346930dyBmNR','_loadFromSessionStorage','parse','length','map','stringify','1144SuFVjt','10676682xuwpuw','2611lIDwTn'];_0x2b18=function(){return _0x57b04d;};return _0x2b18();}function zo(_0x3d64cb){const _0x3ffce4=_0x577877;return _0x3d64cb[_0x3ffce4(0x72)]()[_0x3ffce4(0x7d)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7423ad=_0x39a8;(function(_0x3d0710,_0x192470){const _0x5a9fd3=_0x39a8,_0x20a5a5=_0x3d0710();while(!![]){try{const _0x4a8e43=-parseInt(_0x5a9fd3(0xc4))/0x1*(-parseInt(_0x5a9fd3(0xaa))/0x2)+parseInt(_0x5a9fd3(0x99))/0x3*(-parseInt(_0x5a9fd3(0xa5))/0x4)+-parseInt(_0x5a9fd3(0xad))/0x5*(-parseInt(_0x5a9fd3(0xb7))/0x6)+-parseInt(_0x5a9fd3(0xb2))/0x7+parseInt(_0x5a9fd3(0x9c))/0x8*(parseInt(_0x5a9fd3(0x9b))/0x9)+parseInt(_0x5a9fd3(0xc2))/0xa+parseInt(_0x5a9fd3(0xb9))/0xb*(-parseInt(_0x5a9fd3(0xc5))/0xc);if(_0x4a8e43===_0x192470)break;else _0x20a5a5['push'](_0x20a5a5['shift']());}catch(_0x230275){_0x20a5a5['push'](_0x20a5a5['shift']());}}}(_0x22c6,0x47769));function _0x39a8(_0x2e6dbe,_0xe19043){const _0x22c6d4=_0x22c6();return _0x39a8=function(_0x39a87f,_0x286b34){_0x39a87f=_0x39a87f-0x98;let _0x229200=_0x22c6d4[_0x39a87f];return _0x229200;},_0x39a8(_0x2e6dbe,_0xe19043);}import{Command as _0x3c0011}from'ckeditor5/src/core.js';function _0x22c6(){const _0x1c5510=['length','enabledCommandsIds','ai.assistant.disabledElements','get','values','4WOsmHJ','showUI','_commandDefinitions','hasContent','change:isEnabled','184jsiqVr','editor','isEmpty','8225yiveUg','set','change:_hasContext','refresh','includes','1389234WtFezy','element','document','add','plugins','1608jGKkmN','name','913rlvKVf','model','custom','getFirstRange','execute','isEnabled','config','isCollapsed','getItems','1749870FgeFJP','getSelectedBlocks','4481ureSUe','72180AmefXG','from','160629CFlZRj','getRanges','54STAZuo','21152AtsGaQ','selection','_hasContext','requiresContent'];_0x22c6=function(){return _0x1c5510;};return _0x22c6();}import{AIAssistantUI as _0x30c4b0}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x3c0011{[_0x7423ad(0xa7)];constructor(_0x1d3368,_0x1fa415){const _0x57f800=_0x7423ad;super(_0x1d3368),this[_0x57f800(0xa7)]=_0x1fa415,this[_0x57f800(0xae)](_0x57f800(0xa1),[]),this['on'](_0x57f800(0xaf),(_0x347107,_0x156b29,_0x8f22b1)=>{const _0x4565e7=_0x57f800;this[_0x4565e7(0xbe)]&&(this[_0x4565e7(0xa1)]=cs(this[_0x4565e7(0xa7)],_0x8f22b1));}),this[_0x57f800(0xae)](_0x57f800(0x9e),!0x1),this['on'](_0x57f800(0xa9),(_0x42d4e2,_0xa44f97,_0x4b94d2)=>{const _0x6f4d8e=_0x57f800;this[_0x6f4d8e(0xa1)]=_0x4b94d2?cs(this[_0x6f4d8e(0xa7)],this[_0x6f4d8e(0x9e)]):[];});}[_0x7423ad(0xb0)](){const _0xa55ed4=_0x7423ad,_0x2e55a6=this[_0xa55ed4(0xab)][_0xa55ed4(0xba)];this[_0xa55ed4(0x9e)]=function(_0x124ab9){const _0x30ab3c=_0xa55ed4,_0x17b157=_0x124ab9[_0x30ab3c(0xb4)][_0x30ab3c(0x9d)];return _0x17b157[_0x30ab3c(0xc0)]?0x0!==[..._0x17b157[_0x30ab3c(0xc3)]()][_0x30ab3c(0xa0)]&&![..._0x17b157[_0x30ab3c(0xc3)]()][0x0][_0x30ab3c(0xac)]:!!_0x124ab9[_0x30ab3c(0xa8)](_0x17b157[_0x30ab3c(0xbc)]());}(_0x2e55a6);const _0x338f79=_0x2e55a6[_0xa55ed4(0xb4)][_0xa55ed4(0x9d)],_0x2e7410=this[_0xa55ed4(0xab)][_0xa55ed4(0xbf)][_0xa55ed4(0xa3)](_0xa55ed4(0xa2));for(const _0x5c1590 of _0x338f79[_0xa55ed4(0x9a)]())for(const _0x5392b7 of _0x5c1590[_0xa55ed4(0xc1)]())if(_0x5392b7['is'](_0xa55ed4(0xb3))&&_0x2e7410[_0xa55ed4(0xb1)](_0x5392b7[_0xa55ed4(0xb8)]))return void(this[_0xa55ed4(0xbe)]=!0x1);this[_0xa55ed4(0xbe)]=!0x0;}[_0x7423ad(0xbd)](_0x51c95a='',_0x325315='',_0x5d4454=_0x7423ad(0xbb)){const _0x13fde9=_0x7423ad;this[_0x13fde9(0xab)][_0x13fde9(0xb6)][_0x13fde9(0xa3)](_0x30c4b0)[_0x13fde9(0xa6)](_0x51c95a,_0x325315,_0x5d4454);}}function cs(_0x49ffb9,_0x439e12){const _0x5cba03=_0x7423ad,_0x1516d5=new Set();for(const _0x21a16f of _0x49ffb9[_0x5cba03(0xa4)]())(_0x439e12||!0x1===_0x21a16f[_0x5cba03(0x9f)])&&_0x1516d5[_0x5cba03(0xb5)](_0x21a16f['id']);return Array[_0x5cba03(0x98)](_0x1516d5);}
23
+ const _0x5a6b0a=_0xc3e4;function _0xc3e4(_0x149734,_0x14f32e){const _0x453700=_0x4537();return _0xc3e4=function(_0xc3e47,_0x4dfcb8){_0xc3e47=_0xc3e47-0x10a;let _0x3823d7=_0x453700[_0xc3e47];return _0x3823d7;},_0xc3e4(_0x149734,_0x14f32e);}(function(_0x10dc64,_0x3888d2){const _0x256357=_0xc3e4,_0x4f79be=_0x10dc64();while(!![]){try{const _0x250741=-parseInt(_0x256357(0x10c))/0x1+-parseInt(_0x256357(0x110))/0x2+-parseInt(_0x256357(0x12f))/0x3+-parseInt(_0x256357(0x116))/0x4+-parseInt(_0x256357(0x12e))/0x5*(parseInt(_0x256357(0x121))/0x6)+-parseInt(_0x256357(0x128))/0x7+parseInt(_0x256357(0x11e))/0x8*(parseInt(_0x256357(0x111))/0x9);if(_0x250741===_0x3888d2)break;else _0x4f79be['push'](_0x4f79be['shift']());}catch(_0x195ef3){_0x4f79be['push'](_0x4f79be['shift']());}}}(_0x4537,0xb047a));import{Command as _0x444bbd}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x50d20a}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x444bbd{[_0x5a6b0a(0x118)];constructor(_0x156156,_0x422fcb){const _0x630855=_0x5a6b0a;super(_0x156156),this[_0x630855(0x118)]=_0x422fcb,this[_0x630855(0x119)](_0x630855(0x10e),[]),this['on'](_0x630855(0x131),(_0x5e2c39,_0x2727f7,_0x20ad88)=>{const _0x50833a=_0x630855;this[_0x50833a(0x12a)]&&(this[_0x50833a(0x10e)]=hn(this[_0x50833a(0x118)],_0x20ad88));}),this[_0x630855(0x119)](_0x630855(0x129),!0x1),this['on'](_0x630855(0x112),(_0x49d2e4,_0x4e7004,_0x176b39)=>{const _0x406841=_0x630855;this[_0x406841(0x10e)]=_0x176b39?hn(this[_0x406841(0x118)],this[_0x406841(0x129)]):[];});}[_0x5a6b0a(0x11d)](){const _0x1b52bd=_0x5a6b0a,_0x15b469=this[_0x1b52bd(0x126)][_0x1b52bd(0x11a)];this[_0x1b52bd(0x129)]=function(_0x467549){const _0x2a3826=_0x1b52bd,_0x7a1f=_0x467549[_0x2a3826(0x10a)][_0x2a3826(0x132)];return _0x7a1f[_0x2a3826(0x117)]?0x0!==[..._0x7a1f[_0x2a3826(0x130)]()][_0x2a3826(0x10b)]&&![..._0x7a1f[_0x2a3826(0x130)]()][0x0][_0x2a3826(0x122)]:!!_0x467549[_0x2a3826(0x113)](_0x7a1f[_0x2a3826(0x10f)]());}(_0x15b469);const _0x3e2899=_0x15b469[_0x1b52bd(0x10a)][_0x1b52bd(0x132)],_0x39936e=this[_0x1b52bd(0x126)][_0x1b52bd(0x12d)][_0x1b52bd(0x115)](_0x1b52bd(0x12c));for(const _0x2e85a4 of _0x3e2899[_0x1b52bd(0x12b)]())for(const _0x30b40f of _0x2e85a4[_0x1b52bd(0x125)]())if(_0x30b40f['is'](_0x1b52bd(0x124))&&_0x39936e[_0x1b52bd(0x11f)](_0x30b40f[_0x1b52bd(0x11c)]))return void(this[_0x1b52bd(0x12a)]=!0x1);this[_0x1b52bd(0x12a)]=!0x0;}[_0x5a6b0a(0x123)](_0x50006a='',_0x4bf01b='',_0x2be2e6=_0x5a6b0a(0x11b)){const _0x31f2a1=_0x5a6b0a;this[_0x31f2a1(0x126)][_0x31f2a1(0x134)][_0x31f2a1(0x115)](_0x50d20a)[_0x31f2a1(0x10d)](_0x50006a,_0x4bf01b,_0x2be2e6);}}function hn(_0x4f191b,_0xfc8c89){const _0x72ee2e=_0x5a6b0a,_0x3be7a7=new Set();for(const _0x5b2c99 of _0x4f191b[_0x72ee2e(0x114)]())(_0xfc8c89||!0x1===_0x5b2c99[_0x72ee2e(0x120)])&&_0x3be7a7[_0x72ee2e(0x133)](_0x5b2c99['id']);return Array[_0x72ee2e(0x127)](_0x3be7a7);}function _0x4537(){const _0x18aab6=['getItems','editor','from','7166005CcKIOn','_hasContext','isEnabled','getRanges','ai.assistant.disabledElements','config','90umBnLF','1086039rbXaxb','getSelectedBlocks','change:_hasContext','selection','add','plugins','document','length','470814fjJbeJ','showUI','enabledCommandsIds','getFirstRange','2429326krFvlt','1719QWBnUb','change:isEnabled','hasContent','values','get','1588928VsrooQ','isCollapsed','_commandDefinitions','set','model','custom','name','refresh','177256JPfxhg','includes','requiresContent','13836dBNHyv','isEmpty','execute','element'];_0x4537=function(){return _0x18aab6;};return _0x4537();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3fb0e1,_0x51ba25,_0x5715d9){const t=_0x3fb0e1['t'];switch(_0x51ba25){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',_0x5715d9);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x5715d9);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'},_0x5715d9);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 _0x51ba25;}}
23
+ export function getTranslation(_0x4b4f8f,_0xdaa1fa,_0x44805a){const t=_0x4b4f8f['t'];switch(_0xdaa1fa){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',_0x44805a);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x44805a);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'},_0x44805a);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 _0xdaa1fa;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x2e68dc,_0x1b2551){const _0x23d81b=(0x0,_0x1b2551['t'])('Other');return _0x2e68dc['length']?'groupId'in _0x2e68dc[0x0]?_0x2e68dc:[{'groupId':'_ungrouppedCommands','groupLabel':_0x23d81b,'order':0x1/0x0,'commands':_0x2e68dc}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x23d81b,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x3b78ba,_0x2a738a){const _0x3c07b3=(0x0,_0x2a738a['t'])('Other');return _0x3b78ba['length']?'groupId'in _0x3b78ba[0x0]?_0x3b78ba:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3c07b3,'order':0x1/0x0,'commands':_0x3b78ba}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3c07b3,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1385f3=_0x20ee;(function(_0x3ced5c,_0x40bc4c){const _0x374506=_0x20ee,_0x184952=_0x3ced5c();while(!![]){try{const _0x4ae5a7=-parseInt(_0x374506(0xf0))/0x1+-parseInt(_0x374506(0x110))/0x2+-parseInt(_0x374506(0xd9))/0x3+-parseInt(_0x374506(0xe6))/0x4+parseInt(_0x374506(0xde))/0x5*(parseInt(_0x374506(0xc6))/0x6)+-parseInt(_0x374506(0xff))/0x7*(-parseInt(_0x374506(0xf1))/0x8)+-parseInt(_0x374506(0xfe))/0x9*(-parseInt(_0x374506(0x104))/0xa);if(_0x4ae5a7===_0x40bc4c)break;else _0x184952['push'](_0x184952['shift']());}catch(_0x4f1957){_0x184952['push'](_0x184952['shift']());}}}(_0x5f45,0x28593));import{ContextPlugin as _0x2670c8}from'ckeditor5/src/core.js';function _0x5f45(){const _0x562a65=['filter','editing','ai-balloon-','_calculateDialogPosition','label','1328874KGwDMj','getIntersection','pluginName','get','open','show','iconView','max','differ','_isUpdatingMarkers','round','_setupMarkerRemovalListener','headerView','selectionRemoved','showBlockingError','trackChanges','once','$graveyard','isEqual','109842GRTJmv','ai-balloon','plugins','getVisible','setupRotator','5hwFIXp','ai-selection','isOfficialPlugin','markers','index','showFakeVisualSelection','isOpen','width','1080896CqvDLC','render','hide','document','left','off','mainView','ai-balloon-selection','dialogClosed','stopListening','270812PKnFll','560pdyest','isPremiumPlugin','getChangedMarkers','_updateBalloon','delegate','_getSelectionElements','_config','fire','AIBalloon','end','value','commands','context','513hDBvTY','32277dfWrlR','height','rootName','showRotator','change','44670MDzMmr','startsWith','_cleanupMarkerRemovalListener','locale','config','\x20ai-balloon-rotator','_pendingRenderCallback','window','ranges','root','updateContent','title','111902Thcuxh','getBoundingRect','AI_ACTIONS_SELECTION_REMOVED_ERROR','isTrackChangesOn','Dialog','_showDialog','getMarkersGroup','ai-selection:','balloonView','model','hideFakeVisualSelection','listenTo','length','_setupVisualSelection','bind','AIEditing','start','_calculateOptimalTopPosition','content','bottom','requires','top','ai.availableReplyActions','icon','aiBalloon','close','updatePosition','view'];_0x5f45=function(){return _0x562a65;};return _0x5f45();}import{AIConnector as _0x3f2c6b}from'../aicore/aiconnector.js';import{AIEditing as _0x4f7730}from'../aicore/aiediting.js';function _0x20ee(_0x300aa4,_0x2d8bd2){const _0x5f4556=_0x5f45();return _0x20ee=function(_0x20ee11,_0x18120e){_0x20ee11=_0x20ee11-0xa7;let _0x5ca6cd=_0x5f4556[_0x20ee11];return _0x5ca6cd;},_0x20ee(_0x300aa4,_0x2d8bd2);}import{AI_BALLOON_VIEW_EVENT_NAMES as _0x19a71d,AIBalloonView as _0xedfd75}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0xae99dc}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x58d99f,Rect as _0x5e6feb,scrollViewportToShowTarget as _0x1ae617}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5c270d}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x534886}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x3001c2}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x19a71d,_0x1385f3(0xee),_0x1385f3(0xd3)];const x=0xa;export class AIBalloon extends _0x2670c8{static get[_0x1385f3(0xb9)](){return[_0x3f2c6b,_0x4f7730];}static get[_0x1385f3(0xc8)](){const _0x1428d2=_0x1385f3;return _0x1428d2(0xf9);}static get[_0x1385f3(0xe0)](){return!0x0;}static get[_0x1385f3(0xf2)](){return!0x0;}[_0x1385f3(0xe4)]=!0x1;[_0x1385f3(0xf7)];[_0x1385f3(0xcf)]=!0x1;[_0x1385f3(0x10a)]=null;[_0x1385f3(0xca)](_0x37458e){const _0x2a5916=_0x1385f3,_0x184c55=_0x5c270d(this[_0x2a5916(0xfd)]);if(this[_0x2a5916(0xf7)]=_0x37458e,this[_0x2a5916(0xe4)])return void this[_0x2a5916(0xf4)](_0x37458e);const _0x56adba=this[_0x2a5916(0xfd)][_0x2a5916(0x108)][_0x2a5916(0xc9)](_0x2a5916(0xbb))||[..._0x534886],_0x444dcd=_0x184c55?.[_0x2a5916(0xfc)][_0x2a5916(0xc9)](_0x2a5916(0xd5)),_0x4d6bfd=_0x444dcd?.[_0x2a5916(0xfb)];this[_0x2a5916(0xad)]=new _0xedfd75(_0x184c55[_0x2a5916(0x107)],_0x37458e,_0x56adba,!!_0x4d6bfd),this[_0x2a5916(0xad)][_0x2a5916(0xf5)](..._0x19a71d)['to'](this),_0x444dcd&&this[_0x2a5916(0xad)][_0x2a5916(0xb3)](_0x2a5916(0xa8))['to'](_0x444dcd,_0x2a5916(0xfb)),this[_0x2a5916(0xaa)](_0x37458e);}[_0x1385f3(0xbe)](){const _0x25f708=_0x1385f3;_0x5c270d(this[_0x25f708(0xfd)])[_0x25f708(0xdb)][_0x25f708(0xc9)](_0x25f708(0xa9))[_0x25f708(0xe8)]();}[_0x1385f3(0xf4)](_0x255124){const _0x492cc9=_0x1385f3,_0x22658f=_0x5c270d(this[_0x492cc9(0xfd)]),_0x14b24e=_0x22658f[_0x492cc9(0xdb)][_0x492cc9(0xc9)](_0x492cc9(0xa9));this[_0x492cc9(0x10a)]&&(_0x22658f[_0x492cc9(0xc2)][_0x492cc9(0xc0)][_0x492cc9(0xeb)](_0x492cc9(0xe7),this[_0x492cc9(0x10a)]),this[_0x492cc9(0x10a)]=null),this[_0x492cc9(0xcf)]=!0x0,_0x14b24e[_0x492cc9(0xc0)]?.[_0x492cc9(0xd2)]&&(_0x14b24e[_0x492cc9(0xc0)][_0x492cc9(0xd2)][_0x492cc9(0xc5)]=_0x255124[_0x492cc9(0x10f)],_0x14b24e[_0x492cc9(0xc0)][_0x492cc9(0xd2)][_0x492cc9(0xcc)]&&_0x255124[_0x492cc9(0xbc)]&&(_0x14b24e[_0x492cc9(0xc0)][_0x492cc9(0xd2)][_0x492cc9(0xcc)][_0x492cc9(0xb7)]=_0x255124[_0x492cc9(0xbc)])),this[_0x492cc9(0xad)][_0x492cc9(0x10e)](_0x255124[_0x492cc9(0xec)]),this[_0x492cc9(0xb2)](_0x255124[_0x492cc9(0x10c)],_0x255124[_0x492cc9(0xe2)]),this[_0x492cc9(0x10a)]=()=>{const _0x50e606=_0x492cc9;this[_0x50e606(0xcf)]=!0x1,this[_0x50e606(0x10a)]=null,_0x14b24e[_0x50e606(0xc0)]&&_0x14b24e[_0x50e606(0xc0)][_0x50e606(0xbf)]();},_0x22658f[_0x492cc9(0xc2)][_0x492cc9(0xc0)][_0x492cc9(0xd6)](_0x492cc9(0xe7),this[_0x492cc9(0x10a)]);}[_0x1385f3(0xb2)](_0x191146,_0x266a99){const _0x3a741b=_0x1385f3;this[_0x3a741b(0xfd)][_0x3a741b(0xdb)][_0x3a741b(0xc9)](_0x4f7730)[_0x3a741b(0xe3)](_0x191146,_0x3a741b(0xc3)+_0x266a99,!0x0,!0x0);}[_0x1385f3(0xaa)](_0x40d002){const _0x1e3f0a=_0x1385f3,_0x534375=_0x5c270d(this[_0x1e3f0a(0xfd)]);this[_0x1e3f0a(0xb2)](_0x40d002[_0x1e3f0a(0x10c)],_0x40d002[_0x1e3f0a(0xe2)]);const _0xfca7af=this[_0x1e3f0a(0xf6)]();_0xfca7af&&_0xfca7af[0x0]&&_0x1ae617({'target':_0xfca7af[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x534375[_0x1e3f0a(0xdb)][_0x1e3f0a(0xc9)](_0x1e3f0a(0xa9))[_0x1e3f0a(0xcb)]({'title':_0x40d002[_0x1e3f0a(0x10f)],'icon':_0x40d002[_0x1e3f0a(0xbc)],'hasCloseButton':!0x0,'id':_0x1e3f0a(0xbd),'position':this[_0x1e3f0a(0xc4)][_0x1e3f0a(0xb3)](this),'className':_0x1e3f0a(0xda)+(_0x40d002[_0x1e3f0a(0x102)]?_0x1e3f0a(0x109):''),'content':this[_0x1e3f0a(0xad)],'onShow':_0x16ef50=>{const _0x2e8afd=_0x1e3f0a;_0x40d002[_0x2e8afd(0x102)]&&this[_0x2e8afd(0xad)][_0x2e8afd(0xdd)](_0x16ef50),this[_0x2e8afd(0xd1)](),this[_0x2e8afd(0xe4)]=!0x0;},'onHide':()=>{const _0x440dd5=_0x1e3f0a;this[_0x440dd5(0xfd)][_0x440dd5(0xdb)][_0x440dd5(0xc9)](_0x440dd5(0xb4))[_0x440dd5(0xaf)](_0x440dd5(0xc3)+this[_0x440dd5(0xf7)][_0x440dd5(0xe2)]),this[_0x440dd5(0x106)](),this[_0x440dd5(0xf8)](_0x440dd5(0xee)),this[_0x440dd5(0xe4)]=!0x1;}});}[_0x1385f3(0xc4)](_0x137f36,_0x29867e){const _0x4cf316=_0x1385f3;if(!_0x29867e)return null;const _0x977472=this[_0x4cf316(0xf6)]();if(!_0x977472||0x0===_0x977472[_0x4cf316(0xb1)])return{'left':Math[_0x4cf316(0xd0)](_0x29867e[_0x4cf316(0xea)]+_0x29867e[_0x4cf316(0xe5)]/0x2-_0x137f36[_0x4cf316(0xe5)]/0x2),'top':Math[_0x4cf316(0xd0)](_0x29867e[_0x4cf316(0xba)]+_0x29867e[_0x4cf316(0x100)]/0x2-_0x137f36[_0x4cf316(0x100)]/0x2)};const _0x3126cc=Math[_0x4cf316(0xd0)](_0x29867e[_0x4cf316(0xea)]+_0x29867e[_0x4cf316(0xe5)]/0x2-_0x137f36[_0x4cf316(0xe5)]/0x2),_0x5f0454=new _0x5e6feb(_0x977472[0x0]),_0x1ba5d1=new _0x5e6feb(_0x977472[_0x977472[_0x4cf316(0xb1)]-0x1]),_0x5bfd45=_0x137f36[_0x4cf316(0x100)],_0xa14914=this[_0x4cf316(0xf7)][_0x4cf316(0x102)]?0x8:0x0;return{'left':_0x3126cc,'top':this[_0x4cf316(0xb6)](_0x5f0454,_0x1ba5d1,_0x5bfd45,_0xa14914,_0x29867e)};}[_0x1385f3(0xb6)](_0x1f9bf9,_0x56605d,_0x2e00c5,_0x373c17=0x0,_0x463c35){const _0x3b8bb4=_0x1385f3,_0x2bdfdb=_0x2e00c5+_0x373c17,_0x2df297=new _0x5e6feb(_0x58d99f[_0x3b8bb4(0x10b)]),_0x5c2c56=[_0x1f9bf9[_0x3b8bb4(0xdc)](),_0x56605d[_0x3b8bb4(0xdc)]()][_0x3b8bb4(0xc1)](_0x2b0002=>_0x2b0002),_0x3ff981=_0x5e6feb[_0x3b8bb4(0x111)](_0x5c2c56);if(!_0x3ff981)return Math[_0x3b8bb4(0xd0)](_0x463c35[_0x3b8bb4(0xba)]+_0x463c35[_0x3b8bb4(0x100)]/0x2);const _0x4ea3b4=_0x2df297[_0x3b8bb4(0xc7)](_0x3ff981);if(!_0x4ea3b4)return Math[_0x3b8bb4(0xd0)](_0x463c35[_0x3b8bb4(0xba)]+_0x463c35[_0x3b8bb4(0x100)]/0x2);const _0x3b18af=_0x463c35[_0x3b8bb4(0xdc)](),_0x1b10bf=_0x3b18af&&_0x3ff981[_0x3b8bb4(0x100)]>_0x3b18af[_0x3b8bb4(0x100)],_0x525926=_0x4ea3b4[_0x3b8bb4(0xba)],_0x3bfe26=_0x4ea3b4[_0x3b8bb4(0xb8)];if(_0x1b10bf){const _0x2dabf4=(_0x3b18af||_0x2df297)[_0x3b8bb4(0x100)]/0x2-_0x2bdfdb/0x2,_0x42066d=_0x525926-x-_0x463c35[_0x3b8bb4(0xba)],_0x439f97=_0x463c35[_0x3b8bb4(0xb8)]-_0x3bfe26-x;return _0x42066d>=_0x2bdfdb?Math[_0x3b8bb4(0xcd)](x,_0x525926-_0x2bdfdb-x):_0x439f97>=_0x2bdfdb?_0x3bfe26+x:Math[_0x3b8bb4(0xcd)](x,_0x2dabf4);}const _0x534962=_0x525926-_0x2bdfdb,_0x3a5d1b=_0x463c35[_0x3b8bb4(0xb8)]-_0x3bfe26-x,_0x72c2d=_0x525926-x-_0x463c35[_0x3b8bb4(0xba)];let _0x39fb90;if(_0x3a5d1b>=_0x2bdfdb)_0x39fb90=_0x3bfe26+x;else{if(_0x72c2d>=_0x2bdfdb)_0x39fb90=_0x534962-x;else _0x39fb90=_0x525926+_0x3ff981[_0x3b8bb4(0x100)]/0x2-_0x2bdfdb/0x2;}return _0x39fb90;}[_0x1385f3(0xd1)](){const _0x1bc773=_0x1385f3,_0x4d6864=_0x5c270d(this[_0x1bc773(0xfd)]);this[_0x1bc773(0xb0)](_0x4d6864[_0x1bc773(0xae)][_0x1bc773(0xe9)],_0x1bc773(0x103),()=>{const _0x43f98e=_0x1bc773;if(this[_0x43f98e(0xcf)])return;for(const {name:_0x86a161,data:{newRange:_0x2319ea}}of _0x4d6864[_0x43f98e(0xae)][_0x43f98e(0xe9)][_0x43f98e(0xce)][_0x43f98e(0xf3)]())if(_0x86a161[_0x43f98e(0x105)](_0x43f98e(0xac))&&(_0x2319ea&&(_0x2319ea[_0x43f98e(0xb5)][_0x43f98e(0xd8)](_0x2319ea[_0x43f98e(0xfa)])||_0x43f98e(0xd7)==_0x2319ea[_0x43f98e(0x10d)][_0x43f98e(0x101)])||null==_0x2319ea)){const _0x454ca2=_0x3001c2(this[_0x43f98e(0xfd)][_0x43f98e(0x107)],_0x43f98e(0xa7));this[_0x43f98e(0xad)][_0x43f98e(0xd4)](_0x454ca2),this[_0x43f98e(0xf8)](_0x43f98e(0xd3));}});}[_0x1385f3(0x106)](){const _0x3e18b0=_0x1385f3,_0x1055da=_0x5c270d(this[_0x3e18b0(0xfd)]);this[_0x3e18b0(0xef)](_0x1055da[_0x3e18b0(0xae)][_0x3e18b0(0xe9)]);}[_0x1385f3(0xf6)](){const _0x5600cd=_0x1385f3,_0x1d68d4=_0x5c270d(this[_0x5600cd(0xfd)]);return _0xae99dc(_0x1d68d4[_0x5600cd(0xc2)],[..._0x1d68d4[_0x5600cd(0xae)][_0x5600cd(0xe1)][_0x5600cd(0xab)](_0x5600cd(0xdf)),..._0x1d68d4[_0x5600cd(0xae)][_0x5600cd(0xe1)][_0x5600cd(0xab)](_0x5600cd(0xed))]);}}
23
+ const _0x228359=_0x47ca;(function(_0xc7f601,_0x43e14c){const _0x52ae4d=_0x47ca,_0x114f1d=_0xc7f601();while(!![]){try{const _0x77069f=parseInt(_0x52ae4d(0x158))/0x1+parseInt(_0x52ae4d(0x161))/0x2+-parseInt(_0x52ae4d(0x15b))/0x3+-parseInt(_0x52ae4d(0x172))/0x4+parseInt(_0x52ae4d(0x137))/0x5*(-parseInt(_0x52ae4d(0x194))/0x6)+parseInt(_0x52ae4d(0x12f))/0x7+-parseInt(_0x52ae4d(0x191))/0x8;if(_0x77069f===_0x43e14c)break;else _0x114f1d['push'](_0x114f1d['shift']());}catch(_0x304d02){_0x114f1d['push'](_0x114f1d['shift']());}}}(_0x529a,0x77384));import{ContextPlugin as _0x2e8034}from'ckeditor5/src/core.js';import{AIConnector as _0x350e5d}from'../aicore/aiconnector.js';import{AIEditing as _0x3637a8}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x3107c1,AIBalloonView as _0x54c7ff}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';function _0x47ca(_0x49f826,_0x19e92d){const _0x529a8d=_0x529a();return _0x47ca=function(_0x47ca6e,_0x27e847){_0x47ca6e=_0x47ca6e-0x12c;let _0x39e856=_0x529a8d[_0x47ca6e];return _0x39e856;},_0x47ca(_0x49f826,_0x19e92d);}import{getAllMarkersDomElementsSorted as _0x5641f2}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1b2592,Rect as _0x5f2fb3,scrollViewportToShowTarget as _0x106d7d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x2498a6}from'../aicore/utils/geteditorfromcontext.js';function _0x529a(){const _0x2aa84b=['AIBalloon','setupRotator','dialogClosed','updateContent','_setupMarkerRemovalListener','isEqual','_getSelectionElements','start','ai-selection:','config','stopListening','mainView','width','AI_ACTIONS_SELECTION_REMOVED_ERROR','iconView','isPremiumPlugin','commands','end','close','bind','aiBalloon','showRotator','startsWith','label','updatePosition','differ','editing','hide','906788WinoZU','max','getChangedMarkers','924279ZLhGfk','requires','ai-balloon-selection','isOpen','left','isTrackChangesOn','785858SLdAyk','markers','getVisible','context','_cleanupMarkerRemovalListener','_updateBalloon','_showDialog','getIntersection','model','pluginName','_isUpdatingMarkers','ai-balloon-','isOfficialPlugin','top','_pendingRenderCallback','window','height','585336Nmdkld','ai-balloon','fire','hideFakeVisualSelection','AIEditing','ai-selection','value','getBoundingRect','_config','open','_calculateDialogPosition','change','view','showFakeVisualSelection','\x20ai-balloon-rotator','title','render','content','ranges','ai.availableReplyActions','rootName','root','_setupVisualSelection','document','get','balloonView','getMarkersGroup','selectionRemoved','locale','show','filter','5335496MeoBRe','bottom','delegate','1924908dkJxHZ','listenTo','showBlockingError','$graveyard','6661249KBGiNJ','round','off','trackChanges','headerView','_calculateOptimalTopPosition','length','index','10iDPUkX','Dialog','once','plugins','icon'];_0x529a=function(){return _0x2aa84b;};return _0x529a();}import{AI_REPLY_ACTIONS as _0x38b078}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{getTranslation as _0x38d4ba}from'../aicore/utils/common-translations.js';export const AI_BALLOON_EVENT_NAMES=[..._0x3107c1,_0x228359(0x13e),_0x228359(0x18d)];const z=0xa;export class AIBalloon extends _0x2e8034{static get[_0x228359(0x15c)](){return[_0x350e5d,_0x3637a8];}static get[_0x228359(0x16a)](){const _0xe1f861=_0x228359;return _0xe1f861(0x13c);}static get[_0x228359(0x16d)](){return!0x0;}static get[_0x228359(0x14b)](){return!0x0;}[_0x228359(0x15e)]=!0x1;[_0x228359(0x17a)];[_0x228359(0x16b)]=!0x1;[_0x228359(0x16f)]=null;[_0x228359(0x17b)](_0x407664){const _0x4afc11=_0x228359,_0x43d252=_0x2498a6(this[_0x4afc11(0x164)]);if(this[_0x4afc11(0x17a)]=_0x407664,this[_0x4afc11(0x15e)])return void this[_0x4afc11(0x166)](_0x407664);const _0x3509c2=this[_0x4afc11(0x164)][_0x4afc11(0x145)][_0x4afc11(0x18a)](_0x4afc11(0x185))||[..._0x38b078],_0x21de6d=_0x43d252?.[_0x4afc11(0x14c)][_0x4afc11(0x18a)](_0x4afc11(0x132)),_0x2b206e=_0x21de6d?.[_0x4afc11(0x178)];this[_0x4afc11(0x18b)]=new _0x54c7ff(_0x43d252[_0x4afc11(0x18e)],_0x407664,_0x3509c2,!!_0x2b206e),this[_0x4afc11(0x18b)][_0x4afc11(0x193)](..._0x3107c1)['to'](this),_0x21de6d&&this[_0x4afc11(0x18b)][_0x4afc11(0x14f)](_0x4afc11(0x160))['to'](_0x21de6d,_0x4afc11(0x178)),this[_0x4afc11(0x167)](_0x407664);}[_0x228359(0x14e)](){const _0x4fa599=_0x228359;_0x2498a6(this[_0x4fa599(0x164)])[_0x4fa599(0x13a)][_0x4fa599(0x18a)](_0x4fa599(0x138))[_0x4fa599(0x157)]();}[_0x228359(0x166)](_0x294376){const _0x3fb212=_0x228359,_0x265380=_0x2498a6(this[_0x3fb212(0x164)]),_0x5c9fdc=_0x265380[_0x3fb212(0x13a)][_0x3fb212(0x18a)](_0x3fb212(0x138));this[_0x3fb212(0x16f)]&&(_0x265380[_0x3fb212(0x156)][_0x3fb212(0x17e)][_0x3fb212(0x131)](_0x3fb212(0x182),this[_0x3fb212(0x16f)]),this[_0x3fb212(0x16f)]=null),this[_0x3fb212(0x16b)]=!0x0,_0x5c9fdc[_0x3fb212(0x17e)]?.[_0x3fb212(0x133)]&&(_0x5c9fdc[_0x3fb212(0x17e)][_0x3fb212(0x133)][_0x3fb212(0x153)]=_0x294376[_0x3fb212(0x181)],_0x5c9fdc[_0x3fb212(0x17e)][_0x3fb212(0x133)][_0x3fb212(0x14a)]&&_0x294376[_0x3fb212(0x13b)]&&(_0x5c9fdc[_0x3fb212(0x17e)][_0x3fb212(0x133)][_0x3fb212(0x14a)][_0x3fb212(0x183)]=_0x294376[_0x3fb212(0x13b)])),this[_0x3fb212(0x18b)][_0x3fb212(0x13f)](_0x294376[_0x3fb212(0x147)]),this[_0x3fb212(0x188)](_0x294376[_0x3fb212(0x184)],_0x294376[_0x3fb212(0x136)]),this[_0x3fb212(0x16f)]=()=>{const _0x2b919e=_0x3fb212;this[_0x2b919e(0x16b)]=!0x1,this[_0x2b919e(0x16f)]=null,_0x5c9fdc[_0x2b919e(0x17e)]&&_0x5c9fdc[_0x2b919e(0x17e)][_0x2b919e(0x154)]();},_0x265380[_0x3fb212(0x156)][_0x3fb212(0x17e)][_0x3fb212(0x139)](_0x3fb212(0x182),this[_0x3fb212(0x16f)]);}[_0x228359(0x188)](_0x5045ec,_0x6a19a6){const _0x52f1e7=_0x228359;this[_0x52f1e7(0x164)][_0x52f1e7(0x13a)][_0x52f1e7(0x18a)](_0x3637a8)[_0x52f1e7(0x17f)](_0x5045ec,_0x52f1e7(0x16c)+_0x6a19a6,!0x0,!0x0);}[_0x228359(0x167)](_0x53aa6f){const _0x40780a=_0x228359,_0x3e78dd=_0x2498a6(this[_0x40780a(0x164)]);this[_0x40780a(0x188)](_0x53aa6f[_0x40780a(0x184)],_0x53aa6f[_0x40780a(0x136)]);const _0x101ece=this[_0x40780a(0x142)]();_0x101ece&&_0x101ece[0x0]&&_0x106d7d({'target':_0x101ece[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),_0x3e78dd[_0x40780a(0x13a)][_0x40780a(0x18a)](_0x40780a(0x138))[_0x40780a(0x18f)]({'title':_0x53aa6f[_0x40780a(0x181)],'icon':_0x53aa6f[_0x40780a(0x13b)],'hasCloseButton':!0x0,'id':_0x40780a(0x150),'position':this[_0x40780a(0x17c)][_0x40780a(0x14f)](this),'className':_0x40780a(0x173)+(_0x53aa6f[_0x40780a(0x151)]?_0x40780a(0x180):''),'content':this[_0x40780a(0x18b)],'onShow':_0x2da2de=>{const _0x5c2518=_0x40780a;_0x53aa6f[_0x5c2518(0x151)]&&this[_0x5c2518(0x18b)][_0x5c2518(0x13d)](_0x2da2de),this[_0x5c2518(0x140)](),this[_0x5c2518(0x15e)]=!0x0;},'onHide':()=>{const _0x332ee5=_0x40780a;this[_0x332ee5(0x164)][_0x332ee5(0x13a)][_0x332ee5(0x18a)](_0x332ee5(0x176))[_0x332ee5(0x175)](_0x332ee5(0x16c)+this[_0x332ee5(0x17a)][_0x332ee5(0x136)]),this[_0x332ee5(0x165)](),this[_0x332ee5(0x174)](_0x332ee5(0x13e)),this[_0x332ee5(0x15e)]=!0x1;}});}[_0x228359(0x17c)](_0x4888af,_0x533be7){const _0x4890e8=_0x228359;if(!_0x533be7)return null;const _0x323733=this[_0x4890e8(0x142)]();if(!_0x323733||0x0===_0x323733[_0x4890e8(0x135)])return{'left':Math[_0x4890e8(0x130)](_0x533be7[_0x4890e8(0x15f)]+_0x533be7[_0x4890e8(0x148)]/0x2-_0x4888af[_0x4890e8(0x148)]/0x2),'top':Math[_0x4890e8(0x130)](_0x533be7[_0x4890e8(0x16e)]+_0x533be7[_0x4890e8(0x171)]/0x2-_0x4888af[_0x4890e8(0x171)]/0x2)};const _0x52d157=Math[_0x4890e8(0x130)](_0x533be7[_0x4890e8(0x15f)]+_0x533be7[_0x4890e8(0x148)]/0x2-_0x4888af[_0x4890e8(0x148)]/0x2),_0x46b6a5=new _0x5f2fb3(_0x323733[0x0]),_0x1d4877=new _0x5f2fb3(_0x323733[_0x323733[_0x4890e8(0x135)]-0x1]),_0x24204f=_0x4888af[_0x4890e8(0x171)],_0x48af5a=this[_0x4890e8(0x17a)][_0x4890e8(0x151)]?0x8:0x0;return{'left':_0x52d157,'top':this[_0x4890e8(0x134)](_0x46b6a5,_0x1d4877,_0x24204f,_0x48af5a,_0x533be7)};}[_0x228359(0x134)](_0x2a8bac,_0x1def6b,_0x167d97,_0x4dbb35=0x0,_0x55ed36){const _0x2c0d15=_0x228359,_0x2aeccc=_0x167d97+_0x4dbb35,_0xb21c9b=new _0x5f2fb3(_0x1b2592[_0x2c0d15(0x170)]),_0x2afce0=[_0x2a8bac[_0x2c0d15(0x163)](),_0x1def6b[_0x2c0d15(0x163)]()][_0x2c0d15(0x190)](_0x159966=>_0x159966),_0x2d30a8=_0x5f2fb3[_0x2c0d15(0x179)](_0x2afce0);if(!_0x2d30a8)return Math[_0x2c0d15(0x130)](_0x55ed36[_0x2c0d15(0x16e)]+_0x55ed36[_0x2c0d15(0x171)]/0x2);const _0x5c49d1=_0xb21c9b[_0x2c0d15(0x168)](_0x2d30a8);if(!_0x5c49d1)return Math[_0x2c0d15(0x130)](_0x55ed36[_0x2c0d15(0x16e)]+_0x55ed36[_0x2c0d15(0x171)]/0x2);const _0x1e11a0=_0x55ed36[_0x2c0d15(0x163)](),_0x46f0c6=_0x1e11a0&&_0x2d30a8[_0x2c0d15(0x171)]>_0x1e11a0[_0x2c0d15(0x171)],_0x2bc166=_0x5c49d1[_0x2c0d15(0x16e)],_0x5c2c5a=_0x5c49d1[_0x2c0d15(0x192)];if(_0x46f0c6){const _0x107276=(_0x1e11a0||_0xb21c9b)[_0x2c0d15(0x171)]/0x2-_0x2aeccc/0x2,_0x1b2925=_0x2bc166-z-_0x55ed36[_0x2c0d15(0x16e)],_0x563cc2=_0x55ed36[_0x2c0d15(0x192)]-_0x5c2c5a-z;return _0x1b2925>=_0x2aeccc?Math[_0x2c0d15(0x159)](z,_0x2bc166-_0x2aeccc-z):_0x563cc2>=_0x2aeccc?_0x5c2c5a+z:Math[_0x2c0d15(0x159)](z,_0x107276);}const _0x2cf051=_0x2bc166-_0x2aeccc,_0x12fb9e=_0x55ed36[_0x2c0d15(0x192)]-_0x5c2c5a-z,_0x28735e=_0x2bc166-z-_0x55ed36[_0x2c0d15(0x16e)];let _0x4696b5;if(_0x12fb9e>=_0x2aeccc)_0x4696b5=_0x5c2c5a+z;else{if(_0x28735e>=_0x2aeccc)_0x4696b5=_0x2cf051-z;else _0x4696b5=_0x2bc166+_0x2d30a8[_0x2c0d15(0x171)]/0x2-_0x2aeccc/0x2;}return _0x4696b5;}[_0x228359(0x140)](){const _0x20a09f=_0x228359,_0x572e2d=_0x2498a6(this[_0x20a09f(0x164)]);this[_0x20a09f(0x12c)](_0x572e2d[_0x20a09f(0x169)][_0x20a09f(0x189)],_0x20a09f(0x17d),()=>{const _0x580734=_0x20a09f;if(this[_0x580734(0x16b)])return;for(const {name:_0x3b393b,data:{newRange:_0x4a28d7}}of _0x572e2d[_0x580734(0x169)][_0x580734(0x189)][_0x580734(0x155)][_0x580734(0x15a)]())if(_0x3b393b[_0x580734(0x152)](_0x580734(0x144))&&(_0x4a28d7&&(_0x4a28d7[_0x580734(0x143)][_0x580734(0x141)](_0x4a28d7[_0x580734(0x14d)])||_0x580734(0x12e)==_0x4a28d7[_0x580734(0x187)][_0x580734(0x186)])||null==_0x4a28d7)){const _0x42e0ee=_0x38d4ba(this[_0x580734(0x164)][_0x580734(0x18e)],_0x580734(0x149));this[_0x580734(0x18b)][_0x580734(0x12d)](_0x42e0ee),this[_0x580734(0x174)](_0x580734(0x18d));}});}[_0x228359(0x165)](){const _0x3f0af3=_0x228359,_0x45f27d=_0x2498a6(this[_0x3f0af3(0x164)]);this[_0x3f0af3(0x146)](_0x45f27d[_0x3f0af3(0x169)][_0x3f0af3(0x189)]);}[_0x228359(0x142)](){const _0x29aed3=_0x228359,_0x56b350=_0x2498a6(this[_0x29aed3(0x164)]);return _0x5641f2(_0x56b350[_0x29aed3(0x156)],[..._0x56b350[_0x29aed3(0x169)][_0x29aed3(0x162)][_0x29aed3(0x18c)](_0x29aed3(0x177)),..._0x56b350[_0x29aed3(0x169)][_0x29aed3(0x162)][_0x29aed3(0x18c)](_0x29aed3(0x15d))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x49e3(_0x4fd1d7,_0x2e3525){var _0xc5d2f6=_0xc5d2();return _0x49e3=function(_0x49e3cb,_0x3a2273){_0x49e3cb=_0x49e3cb-0x16a;var _0x339f9b=_0xc5d2f6[_0x49e3cb];return _0x339f9b;},_0x49e3(_0x4fd1d7,_0x2e3525);}(function(_0x5b9912,_0xf26a8){var _0x5db68d=_0x49e3,_0x1b35a5=_0x5b9912();while(!![]){try{var _0x4a6040=parseInt(_0x5db68d(0x170))/0x1*(-parseInt(_0x5db68d(0x16f))/0x2)+-parseInt(_0x5db68d(0x173))/0x3+parseInt(_0x5db68d(0x171))/0x4+parseInt(_0x5db68d(0x16c))/0x5+-parseInt(_0x5db68d(0x172))/0x6*(-parseInt(_0x5db68d(0x16d))/0x7)+-parseInt(_0x5db68d(0x177))/0x8+parseInt(_0x5db68d(0x16e))/0x9;if(_0x4a6040===_0xf26a8)break;else _0x1b35a5['push'](_0x1b35a5['shift']());}catch(_0xe2129){_0x1b35a5['push'](_0x1b35a5['shift']());}}}(_0xc5d2,0xe56f9));import{View as _0x33dd7a}from'ckeditor5/src/ui.js';function _0xc5d2(){var _0xae08dd=['13955310BZKlwm','930ipipnf','2999LPZLwy','4320428AKUsUZ','18keCGxc','393564eocXBs','ck-ai-balloon__disclaimer-content','setTemplate','div','3737144wdioFZ','AI_DISCLAIMER_TEXT','ck-ai-balloon__disclaimer','846345ZvKhNW','309561uqzMNr'];_0xc5d2=function(){return _0xae08dd;};return _0xc5d2();}import{getTranslation as _0x4fd470}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x33dd7a{constructor(_0x392c2f){var _0x4d8c2c=_0x49e3;super(_0x392c2f),this[_0x4d8c2c(0x175)]({'tag':_0x4d8c2c(0x176),'attributes':{'class':['ck',_0x4d8c2c(0x16b)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4d8c2c(0x174)]},'children':[{'text':_0x4fd470(_0x392c2f,_0x4d8c2c(0x16a))}]}]});}}
23
+ (function(_0x13f674,_0x27a807){var _0x4505a9=_0x3c5f,_0x55fed3=_0x13f674();while(!![]){try{var _0x2ab279=-parseInt(_0x4505a9(0x88))/0x1*(-parseInt(_0x4505a9(0x89))/0x2)+-parseInt(_0x4505a9(0x87))/0x3+-parseInt(_0x4505a9(0x86))/0x4+-parseInt(_0x4505a9(0x8c))/0x5+-parseInt(_0x4505a9(0x8e))/0x6+-parseInt(_0x4505a9(0x85))/0x7*(-parseInt(_0x4505a9(0x8a))/0x8)+parseInt(_0x4505a9(0x8d))/0x9;if(_0x2ab279===_0x27a807)break;else _0x55fed3['push'](_0x55fed3['shift']());}catch(_0x5d5618){_0x55fed3['push'](_0x55fed3['shift']());}}}(_0x3ac0,0x895d6));import{View as _0x51c353}from'ckeditor5/src/ui.js';import{getTranslation as _0x4f84b6}from'../../aicore/utils/common-translations.js';function _0x3c5f(_0x1b5142,_0x2c446d){var _0x3ac0d1=_0x3ac0();return _0x3c5f=function(_0x3c5f0c,_0x3c35e1){_0x3c5f0c=_0x3c5f0c-0x81;var _0x280963=_0x3ac0d1[_0x3c5f0c];return _0x280963;},_0x3c5f(_0x1b5142,_0x2c446d);}function _0x3ac0(){var _0x53dcee=['19530864smeYWt','5285982LkLeup','div','setTemplate','ck-ai-balloon__disclaimer-content','ck-ai-balloon__disclaimer','2195144QnuXVa','3943988VvRUWv','484302eyYCZU','1UHaVRS','2008232bgkRYE','8ydXkpy','AI_DISCLAIMER_TEXT','4483650YXNfGN'];_0x3ac0=function(){return _0x53dcee;};return _0x3ac0();}export class AIBalloonDisclaimerView extends _0x51c353{constructor(_0x336f25){var _0x4512e7=_0x3c5f;super(_0x336f25),this[_0x4512e7(0x82)]({'tag':_0x4512e7(0x81),'attributes':{'class':['ck',_0x4512e7(0x84)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4512e7(0x83)]},'children':[{'text':_0x4f84b6(_0x336f25,_0x4512e7(0x8b))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x439d(){const _0x3a4bef=['suggestButton','AI_BALLOON_SUGGEST_BUTTON','ck-ai-balloon__toolbar','2ktwWZm','bind','48qDNrUm','1563935gxvAVU','set','AI_BALLOON_APPLY_BUTTON','680088WEqEXX','8KGxjMv','1909629PZaIOd','_createButton','items','ck-ai-button-primary','isEnabled','252658xfZTfk','isLoading','extendTemplate','add','4574040trQzEP','ck-ai-button-secondary','52012ajxdHf','locale','6937100PAbIZj','applyButton'];_0x439d=function(){return _0x3a4bef;};return _0x439d();}const _0x3912a9=_0x2714;(function(_0x3fd495,_0x4c7f01){const _0x34ae1c=_0x2714,_0x5dc733=_0x3fd495();while(!![]){try{const _0x20c833=parseInt(_0x34ae1c(0xbc))/0x1*(-parseInt(_0x34ae1c(0xc3))/0x2)+parseInt(_0x34ae1c(0xc9))/0x3+-parseInt(_0x34ae1c(0xca))/0x4*(parseInt(_0x34ae1c(0xc6))/0x5)+-parseInt(_0x34ae1c(0xc5))/0x6*(parseInt(_0x34ae1c(0xb6))/0x7)+parseInt(_0x34ae1c(0xba))/0x8+-parseInt(_0x34ae1c(0xcb))/0x9+parseInt(_0x34ae1c(0xbe))/0xa;if(_0x20c833===_0x4c7f01)break;else _0x5dc733['push'](_0x5dc733['shift']());}catch(_0x24e63e){_0x5dc733['push'](_0x5dc733['shift']());}}}(_0x439d,0x4c92a));import{ToolbarView as _0x4d1f5c,ButtonView as _0x20bd15}from'ckeditor5/src/ui.js';import{getTranslation as _0x893593}from'../../aicore/utils/common-translations.js';function _0x2714(_0x4a26b8,_0x27007b){const _0x439d42=_0x439d();return _0x2714=function(_0x2714c4,_0x5f4b42){_0x2714c4=_0x2714c4-0xb4;let _0x2f67b8=_0x439d42[_0x2714c4];return _0x2f67b8;},_0x2714(_0x4a26b8,_0x27007b);}export class AIBalloonToolbarView extends _0x4d1f5c{constructor(_0x5054e5,_0x1eea85=!0x0,_0x30ffae=!0x0){const _0x4d6572=_0x2714;super(_0x5054e5),this[_0x4d6572(0xc7)](_0x4d6572(0xb7),!0x1),_0x1eea85&&(this[_0x4d6572(0xbf)]=this[_0x4d6572(0xcc)](_0x893593(_0x5054e5,_0x4d6572(0xc8)),_0x4d6572(0xb4)),this[_0x4d6572(0xbf)][_0x4d6572(0xc4)](_0x4d6572(0xb5))['to'](this,_0x4d6572(0xb7),_0x274be5=>!_0x274be5),this[_0x4d6572(0xcd)][_0x4d6572(0xb9)](this[_0x4d6572(0xbf)])),_0x30ffae&&(this[_0x4d6572(0xc0)]=this[_0x4d6572(0xcc)](_0x893593(_0x5054e5,_0x4d6572(0xc1)),_0x1eea85?_0x4d6572(0xbb):_0x4d6572(0xb4)),this[_0x4d6572(0xc0)][_0x4d6572(0xc4)](_0x4d6572(0xb5))['to'](this,_0x4d6572(0xb7),_0x31cc95=>!_0x31cc95),this[_0x4d6572(0xcd)][_0x4d6572(0xb9)](this[_0x4d6572(0xc0)])),this[_0x4d6572(0xb8)]({'attributes':{'class':[_0x4d6572(0xc2)]}});}[_0x3912a9(0xcc)](_0x3419fe,_0x1f72c0){const _0xd3b410=_0x3912a9,_0x4d57a2=new _0x20bd15(this[_0xd3b410(0xbd)]);return _0x4d57a2[_0xd3b410(0xc7)]({'label':_0x3419fe,'class':_0x1f72c0||'','isVisible':!0x0,'withText':!0x0}),_0x4d57a2;}}
23
+ function _0x5bfb(_0x250935,_0x226c8a){const _0x51f65e=_0x51f6();return _0x5bfb=function(_0x5bfbf1,_0x255ad3){_0x5bfbf1=_0x5bfbf1-0x179;let _0x5b55ff=_0x51f65e[_0x5bfbf1];return _0x5b55ff;},_0x5bfb(_0x250935,_0x226c8a);}const _0x3b2cd4=_0x5bfb;(function(_0xccb73d,_0x16bac8){const _0x42ed8f=_0x5bfb,_0x43d8b5=_0xccb73d();while(!![]){try{const _0x2ff8dc=-parseInt(_0x42ed8f(0x181))/0x1+parseInt(_0x42ed8f(0x180))/0x2*(parseInt(_0x42ed8f(0x18a))/0x3)+-parseInt(_0x42ed8f(0x187))/0x4+parseInt(_0x42ed8f(0x17c))/0x5*(parseInt(_0x42ed8f(0x191))/0x6)+parseInt(_0x42ed8f(0x183))/0x7+parseInt(_0x42ed8f(0x17b))/0x8+-parseInt(_0x42ed8f(0x186))/0x9*(parseInt(_0x42ed8f(0x18c))/0xa);if(_0x2ff8dc===_0x16bac8)break;else _0x43d8b5['push'](_0x43d8b5['shift']());}catch(_0x12fcfb){_0x43d8b5['push'](_0x43d8b5['shift']());}}}(_0x51f6,0x59151));function _0x51f6(){const _0x64870=['720jaRBvc','ck-ai-button-secondary','set','items','606992RHPRuJ','21695Qrszgt','locale','AI_BALLOON_APPLY_BUTTON','applyButton','383118casYBu','345519IiroMH','AI_BALLOON_SUGGEST_BUTTON','783958jFnsqK','isEnabled','ck-ai-button-primary','9YKthsi','673428zjkncO','isLoading','extendTemplate','9OlKBXS','add','4044680BdvMaJ','ck-ai-balloon__toolbar','_createButton','bind','suggestButton'];_0x51f6=function(){return _0x64870;};return _0x51f6();}import{ToolbarView as _0x50411d,ButtonView as _0x4f1182}from'ckeditor5/src/ui.js';import{getTranslation as _0x519570}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x50411d{constructor(_0x242936,_0x543c3a=!0x0,_0x1d3699=!0x0){const _0x425f97=_0x5bfb;super(_0x242936),this[_0x425f97(0x179)](_0x425f97(0x188),!0x1),_0x543c3a&&(this[_0x425f97(0x17f)]=this[_0x425f97(0x18e)](_0x519570(_0x242936,_0x425f97(0x17e)),_0x425f97(0x185)),this[_0x425f97(0x17f)][_0x425f97(0x18f)](_0x425f97(0x184))['to'](this,_0x425f97(0x188),_0x21e4f3=>!_0x21e4f3),this[_0x425f97(0x17a)][_0x425f97(0x18b)](this[_0x425f97(0x17f)])),_0x1d3699&&(this[_0x425f97(0x190)]=this[_0x425f97(0x18e)](_0x519570(_0x242936,_0x425f97(0x182)),_0x543c3a?_0x425f97(0x192):_0x425f97(0x185)),this[_0x425f97(0x190)][_0x425f97(0x18f)](_0x425f97(0x184))['to'](this,_0x425f97(0x188),_0x48d847=>!_0x48d847),this[_0x425f97(0x17a)][_0x425f97(0x18b)](this[_0x425f97(0x190)])),this[_0x425f97(0x189)]({'attributes':{'class':[_0x425f97(0x18d)]}});}[_0x3b2cd4(0x18e)](_0x149101,_0x1208f3){const _0x521042=_0x3b2cd4,_0x292bd7=new _0x4f1182(this[_0x521042(0x17d)]);return _0x292bd7[_0x521042(0x179)]({'label':_0x149101,'class':_0x1208f3||'','isVisible':!0x0,'withText':!0x0}),_0x292bd7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5dc702=_0x4cd3;(function(_0x3d8716,_0x51e418){const _0x496061=_0x4cd3,_0x50d148=_0x3d8716();while(!![]){try{const _0x6a2d95=parseInt(_0x496061(0x94))/0x1+parseInt(_0x496061(0xbd))/0x2+parseInt(_0x496061(0xaf))/0x3+-parseInt(_0x496061(0xb4))/0x4+parseInt(_0x496061(0x97))/0x5+parseInt(_0x496061(0xc5))/0x6+-parseInt(_0x496061(0xae))/0x7;if(_0x6a2d95===_0x51e418)break;else _0x50d148['push'](_0x50d148['shift']());}catch(_0x325e2e){_0x50d148['push'](_0x50d148['shift']());}}}(_0x3fff,0x615a5));import{ButtonView as _0x19489e,View as _0x4c6834,ViewCollection as _0x428fe1,FocusCycler as _0x53fc40}from'ckeditor5/src/ui.js';import{FocusTracker as _0x1d23ad,KeystrokeHandler as _0x1c4fb6}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x2e9cf0,IconPreviousArrow as _0x2cde93}from'@ckeditor/ckeditor5-icons';function _0x4cd3(_0x4d1a9e,_0x1c48cf){const _0x3fff1c=_0x3fff();return _0x4cd3=function(_0x4cd371,_0x3afe5e){_0x4cd371=_0x4cd371-0x78;let _0x1398b4=_0x3fff1c[_0x4cd371];return _0x1398b4;},_0x4cd3(_0x4d1a9e,_0x1c48cf);}import{AIBalloonToolbarView as _0x469df5}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0xd31054}from'./aiballoondisclaimerview.js';import{getTranslation as _0x15ce59}from'../../aicore/utils/common-translations.js';function _0x3fff(){const _0x3840da=['applySuggestion','clearLoading','keystrokes','ck-ai-suggestion__error-text','ck-ai-suggestion__error','set','tab','suggestButton','add','view','change:isTrackChangesOn','isLoading','showApplyButton','252153bmOOpp','AI_BALLOON_NEXT_TOOLTIP','showRecoverableError','395520GDcpxs','applyButton','addMany','_createErrorView','includes','_createPreviousButtonView','insertSuggestion','showBlockingError','ai-balloon-error','AI_BALLOON_PREVIOUS_TOOLTIP','setLoading','focusTracker','createCollection','focusLast','mainView','_createNextButtonView','showNext','clear','setTemplate','render','bind','hideError','_addToolbar','7246001fGFyNe','563709GTcnOl','getIndex','shift\x20+\x20tab','showSuggestButton','children','419944rxfGGw','fire','div','span','ai-balloon-content','bindTemplate','ck-hidden','listenTo','disclaimerView','1212712oCIEON','element','updateContent','_mainView','headerView','remove','locale','errorMessage','2480220tSUMAk','_dialogContent','_addContentView','focus','isErrorVisible','_focusables','execute','focusFirst','isTrackChangesOn','showPrevious','_errorView','showError','setupRotator','isEnabled','_availableActions','focusCycler','toolbar','_addDisclaimerView'];_0x3fff=function(){return _0x3840da;};return _0x3fff();}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x5dc702(0x87),_0x5dc702(0x9d),_0x5dc702(0xa7),_0x5dc702(0x7e)];export class AIBalloonView extends _0x4c6834{[_0x5dc702(0xa2)];[_0x5dc702(0x89)];[_0x5dc702(0x84)];[_0x5dc702(0x83)];[_0x5dc702(0x7a)];[_0x5dc702(0x7f)];constructor(_0x2f4f40,_0x2da93e,_0x4e538d,_0xb216e){const _0xa6e81a=_0x5dc702;super(_0x2f4f40),this[_0xa6e81a(0x83)]=_0x4e538d,this[_0xa6e81a(0x8c)](_0xa6e81a(0x92),!0x1),this[_0xa6e81a(0x8c)](_0xa6e81a(0x7d),_0xb216e),this[_0xa6e81a(0x8c)](_0xa6e81a(0x79),!0x1),this[_0xa6e81a(0x8c)](_0xa6e81a(0xc4),''),this[_0xa6e81a(0xa2)]=new _0x1d23ad(),this[_0xa6e81a(0x89)]=new _0x1c4fb6(),this[_0xa6e81a(0x7a)]=this[_0xa6e81a(0xa3)](),this[_0xa6e81a(0x84)]=new _0x53fc40({'focusables':this[_0xa6e81a(0x7a)],'focusTracker':this[_0xa6e81a(0xa2)],'keystrokeHandler':this[_0xa6e81a(0x89)],'actions':{'focusPrevious':_0xa6e81a(0xb1),'focusNext':_0xa6e81a(0x8d)}}),this[_0xa6e81a(0xc6)]=new _0x428fe1(),this[_0xa6e81a(0xc7)](_0x2da93e[_0xa6e81a(0xa5)]),this[_0xa6e81a(0x86)](),this[_0xa6e81a(0xad)](_0x2da93e[_0xa6e81a(0x93)],_0x2da93e[_0xa6e81a(0xb2)]),this[_0xa6e81a(0x85)][_0xa6e81a(0xab)](_0xa6e81a(0x92))['to'](this),this[_0xa6e81a(0x7a)][_0xa6e81a(0xa8)](),this[_0xa6e81a(0x7a)][_0xa6e81a(0x99)]([this[_0xa6e81a(0x85)]]),this[_0xa6e81a(0xa9)]({'tag':_0xa6e81a(0xb6),'attributes':{'class':_0xa6e81a(0xb8)},'children':this[_0xa6e81a(0xc6)]}),this['on'](_0xa6e81a(0x91),()=>{const _0x5e36c0=_0xa6e81a;this[_0x5e36c0(0xc6)][_0x5e36c0(0xc2)](this[_0x5e36c0(0x85)]),this[_0x5e36c0(0xad)](_0x2da93e[_0x5e36c0(0x93)],_0x2da93e[_0x5e36c0(0xb2)]);});}[_0x5dc702(0xaa)](){const _0x189f11=_0x5dc702;super[_0x189f11(0xaa)]();for(const _0x3210a1 of this[_0x189f11(0x7a)])this[_0x189f11(0xa2)][_0x189f11(0x8f)](_0x3210a1[_0x189f11(0xbe)]);this[_0x189f11(0x89)][_0x189f11(0xbb)](this[_0x189f11(0xbe)]);}[_0x5dc702(0x78)](_0x5879ee){const _0x40fcfc=_0x5dc702;-0x1===_0x5879ee?this[_0x40fcfc(0x84)][_0x40fcfc(0xa4)]():this[_0x40fcfc(0x84)][_0x40fcfc(0x7c)]();}[_0x5dc702(0xa1)](){const _0x567f6a=_0x5dc702;this[_0x567f6a(0x92)]=!0x0;}[_0x5dc702(0x88)](){const _0x1098d2=_0x5dc702;this[_0x1098d2(0x92)]=!0x1;}[_0x5dc702(0x80)](_0xe6c094){const _0x444f79=_0x5dc702;this[_0x444f79(0x7f)]||(this[_0x444f79(0x7f)]=this[_0x444f79(0x9a)](),this[_0x444f79(0xc6)][_0x444f79(0x99)]([this[_0x444f79(0x7f)]],0x0)),this[_0x444f79(0xc4)]=_0xe6c094,this[_0x444f79(0x79)]=!0x0;}[_0x5dc702(0xac)](){const _0x5455cb=_0x5dc702;this[_0x5455cb(0x79)]=!0x1;}[_0x5dc702(0x96)](_0x65ae3){const _0x16b520=_0x5dc702;this[_0x16b520(0x80)](_0x65ae3);}[_0x5dc702(0x9e)](_0x41d77c){const _0x136e8b=_0x5dc702;this[_0x136e8b(0x80)](_0x41d77c),this[_0x136e8b(0x85)]&&(this[_0x136e8b(0x85)][_0x136e8b(0x98)]&&(this[_0x136e8b(0x85)][_0x136e8b(0x98)][_0x136e8b(0x82)]=!0x1),this[_0x136e8b(0x85)][_0x136e8b(0x8e)]&&(this[_0x136e8b(0x85)][_0x136e8b(0x8e)][_0x136e8b(0x82)]=!0x1));}[_0x5dc702(0x81)](_0xf5ae85){const _0x1f8dfb=_0x5dc702,_0x3397c9=this[_0x1f8dfb(0xa6)](),_0x2731e4=this[_0x1f8dfb(0x9c)]();_0xf5ae85[_0x1f8dfb(0x90)][_0x1f8dfb(0xc1)][_0x1f8dfb(0xb3)][_0x1f8dfb(0x8f)](_0x3397c9,0x2),_0xf5ae85[_0x1f8dfb(0x90)][_0x1f8dfb(0xc1)][_0x1f8dfb(0xb3)][_0x1f8dfb(0x8f)](_0x2731e4,0x0),this[_0x1f8dfb(0x7a)][_0x1f8dfb(0x99)]([_0x3397c9,_0x2731e4]),this[_0x1f8dfb(0xa2)][_0x1f8dfb(0x8f)](_0x3397c9[_0x1f8dfb(0xbe)]),this[_0x1f8dfb(0xa2)][_0x1f8dfb(0x8f)](_0x2731e4[_0x1f8dfb(0xbe)]);}[_0x5dc702(0xc7)](_0x25f890){const _0x65ede4=_0x5dc702;this[_0x65ede4(0xc0)]=_0x25f890,this[_0x65ede4(0xc6)][_0x65ede4(0x8f)](this[_0x65ede4(0xc0)]);}[_0x5dc702(0xbf)](_0x4a918f){const _0x116349=_0x5dc702,_0x549d00=this[_0x116349(0xc6)][_0x116349(0xb0)](this[_0x116349(0xc0)]);this[_0x116349(0xc6)][_0x116349(0xc2)](this[_0x116349(0xc0)]),this[_0x116349(0xc0)]=_0x4a918f,this[_0x116349(0xc6)][_0x116349(0x8f)](this[_0x116349(0xc0)],_0x549d00),this[_0x116349(0xac)]();}[_0x5dc702(0x86)](){const _0x6eaf98=_0x5dc702;this[_0x6eaf98(0xbc)]=new _0xd31054(this[_0x6eaf98(0xc3)]),this[_0x6eaf98(0xc6)][_0x6eaf98(0x8f)](this[_0x6eaf98(0xbc)]);}[_0x5dc702(0xad)](_0x1ea215=!0x0,_0x4746e1=!0x0){const _0x59daaa=_0x5dc702;_0x1ea215=_0x1ea215&&!this[_0x59daaa(0x7d)]&&this[_0x59daaa(0x83)][_0x59daaa(0x9b)](_0x59daaa(0x87)),_0x4746e1=_0x4746e1&&this[_0x59daaa(0x83)][_0x59daaa(0x9b)](_0x59daaa(0x9d)),this[_0x59daaa(0x85)]=new _0x469df5(this[_0x59daaa(0xc3)],_0x1ea215,_0x4746e1),this[_0x59daaa(0x85)][_0x59daaa(0x98)]?.['on'](_0x59daaa(0x7b),()=>{const _0x5d582f=_0x59daaa;this[_0x5d582f(0xb5)](_0x5d582f(0x87));}),this[_0x59daaa(0x85)][_0x59daaa(0x8e)]?.['on'](_0x59daaa(0x7b),()=>{const _0x3a4471=_0x59daaa;this[_0x3a4471(0xb5)](_0x3a4471(0x9d));}),this[_0x59daaa(0xc6)][_0x59daaa(0x8f)](this[_0x59daaa(0x85)]);}[_0x5dc702(0xa6)](){const _0x58620a=_0x5dc702,_0x5df82a=new _0x19489e(this[_0x58620a(0xc3)]);return _0x5df82a[_0x58620a(0x8c)]({'icon':_0x2e9cf0,'tooltip':_0x15ce59(this[_0x58620a(0xc3)],_0x58620a(0x95))}),_0x5df82a['on'](_0x58620a(0x7b),()=>{const _0x5a0cce=_0x58620a;this[_0x5a0cce(0xb5)](_0x5a0cce(0xa7));}),_0x5df82a;}[_0x5dc702(0x9c)](){const _0x46e619=_0x5dc702,_0x2068ed=new _0x19489e(this[_0x46e619(0xc3)]);return _0x2068ed[_0x46e619(0x8c)]({'icon':_0x2cde93,'tooltip':_0x15ce59(this[_0x46e619(0xc3)],_0x46e619(0xa0))}),_0x2068ed['on'](_0x46e619(0x7b),()=>{const _0x17a108=_0x46e619;this[_0x17a108(0xb5)](_0x17a108(0x7e));}),_0x2068ed;}[_0x5dc702(0x9a)](){const _0x52244f=_0x5dc702,_0x94e797=new _0x4c6834(this[_0x52244f(0xc3)]),_0x365e3a=new _0x4c6834(this[_0x52244f(0xc3)]);return _0x365e3a[_0x52244f(0xa9)]({'tag':_0x52244f(0xb7),'attributes':{'class':['ck',_0x52244f(0x8a)]},'children':[{'text':this[_0x52244f(0xb9)]['to'](_0x52244f(0xc4))}]}),_0x94e797[_0x52244f(0xa9)]({'tag':_0x52244f(0xb6),'attributes':{'class':['ck',_0x52244f(0x8b),_0x52244f(0x9f),this[_0x52244f(0xb9)]['if'](_0x52244f(0x79),_0x52244f(0xba),_0x26ff76=>!_0x26ff76)]},'children':[_0x365e3a]}),_0x94e797;}}
23
+ const _0x3cf892=_0x4e0b;function _0x4e0b(_0x355005,_0x154390){const _0x2df68b=_0x2df6();return _0x4e0b=function(_0x4e0bb9,_0x536984){_0x4e0bb9=_0x4e0bb9-0xf5;let _0x50182e=_0x2df68b[_0x4e0bb9];return _0x50182e;},_0x4e0b(_0x355005,_0x154390);}(function(_0x56ada7,_0x5403f4){const _0x45e77a=_0x4e0b,_0x45928f=_0x56ada7();while(!![]){try{const _0x193063=parseInt(_0x45e77a(0x109))/0x1*(parseInt(_0x45e77a(0x114))/0x2)+parseInt(_0x45e77a(0x141))/0x3+-parseInt(_0x45e77a(0x11b))/0x4*(parseInt(_0x45e77a(0x139))/0x5)+-parseInt(_0x45e77a(0x144))/0x6*(parseInt(_0x45e77a(0x148))/0x7)+parseInt(_0x45e77a(0x12f))/0x8+-parseInt(_0x45e77a(0x133))/0x9+-parseInt(_0x45e77a(0x131))/0xa*(parseInt(_0x45e77a(0x118))/0xb);if(_0x193063===_0x5403f4)break;else _0x45928f['push'](_0x45928f['shift']());}catch(_0x5cb7f9){_0x45928f['push'](_0x45928f['shift']());}}}(_0x2df6,0x9958a));import{ButtonView as _0x29a596,View as _0x106112,ViewCollection as _0x8c120a,FocusCycler as _0x3283e5}from'ckeditor5/src/ui.js';import{FocusTracker as _0x54865c,KeystrokeHandler as _0x1f3a1a}from'ckeditor5/src/utils.js';import{IconNextArrow as _0xf71701,IconPreviousArrow as _0x2791c2}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5c73ff}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x5d0072}from'./aiballoondisclaimerview.js';function _0x2df6(){const _0x110b7e=['clearLoading','bind','1336PXWCth','setLoading','showError','focus','locale','listenTo','div','ck-hidden','isTrackChangesOn','remove','ck-ai-suggestion__error-text','_createErrorView','tab','focusFirst','clear','applySuggestion','_availableActions','showNext','keystrokes','_dialogContent','4694808JWtcLG','suggestButton','30EEsNAk','disclaimerView','4709628TgfInZ','isLoading','errorMessage','getIndex','ai-balloon-content','render','1635Gocmyd','bindTemplate','focusTracker','view','_mainView','focusLast','set','showApplyButton','1063041sIunah','AI_BALLOON_NEXT_TOOLTIP','fire','6GyzAIn','_addContentView','span','createCollection','1322881cbtrfj','insertSuggestion','execute','_focusables','showPrevious','shift\x20+\x20tab','showRecoverableError','toolbar','_createNextButtonView','element','setupRotator','focusCycler','AI_BALLOON_PREVIOUS_TOOLTIP','showBlockingError','_addDisclaimerView','add','addMany','isEnabled','applyButton','updateContent','children','24866OajiiM','isErrorVisible','setTemplate','ai-balloon-error','showSuggestButton','change:isTrackChangesOn','includes','headerView','hideError','_addToolbar','_createPreviousButtonView','66tPeZPf','_errorView','mainView','ck-ai-suggestion__error','1144649QyQcpt'];_0x2df6=function(){return _0x110b7e;};return _0x2df6();}import{getTranslation as _0x3eb326}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3cf892(0x12a),_0x3cf892(0xf5),_0x3cf892(0x12c),_0x3cf892(0xf8)];export class AIBalloonView extends _0x106112{[_0x3cf892(0x13b)];[_0x3cf892(0x12d)];[_0x3cf892(0xff)];[_0x3cf892(0x12b)];[_0x3cf892(0xf7)];[_0x3cf892(0x115)];constructor(_0x1fabcb,_0x4c92f4,_0x23ad9c,_0x418ca8){const _0x272095=_0x3cf892;super(_0x1fabcb),this[_0x272095(0x12b)]=_0x23ad9c,this[_0x272095(0x13f)](_0x272095(0x134),!0x1),this[_0x272095(0x13f)](_0x272095(0x123),_0x418ca8),this[_0x272095(0x13f)](_0x272095(0x10a),!0x1),this[_0x272095(0x13f)](_0x272095(0x135),''),this[_0x272095(0x13b)]=new _0x54865c(),this[_0x272095(0x12d)]=new _0x1f3a1a(),this[_0x272095(0xf7)]=this[_0x272095(0x147)](),this[_0x272095(0xff)]=new _0x3283e5({'focusables':this[_0x272095(0xf7)],'focusTracker':this[_0x272095(0x13b)],'keystrokeHandler':this[_0x272095(0x12d)],'actions':{'focusPrevious':_0x272095(0xf9),'focusNext':_0x272095(0x127)}}),this[_0x272095(0x12e)]=new _0x8c120a(),this[_0x272095(0x145)](_0x4c92f4[_0x272095(0x116)]),this[_0x272095(0x102)](),this[_0x272095(0x112)](_0x4c92f4[_0x272095(0x140)],_0x4c92f4[_0x272095(0x10d)]),this[_0x272095(0xfb)][_0x272095(0x11a)](_0x272095(0x134))['to'](this),this[_0x272095(0xf7)][_0x272095(0x129)](),this[_0x272095(0xf7)][_0x272095(0x104)]([this[_0x272095(0xfb)]]),this[_0x272095(0x10b)]({'tag':_0x272095(0x121),'attributes':{'class':_0x272095(0x137)},'children':this[_0x272095(0x12e)]}),this['on'](_0x272095(0x10e),()=>{const _0x479ab7=_0x272095;this[_0x479ab7(0x12e)][_0x479ab7(0x124)](this[_0x479ab7(0xfb)]),this[_0x479ab7(0x112)](_0x4c92f4[_0x479ab7(0x140)],_0x4c92f4[_0x479ab7(0x10d)]);});}[_0x3cf892(0x138)](){const _0x176939=_0x3cf892;super[_0x176939(0x138)]();for(const _0x1393ff of this[_0x176939(0xf7)])this[_0x176939(0x13b)][_0x176939(0x103)](_0x1393ff[_0x176939(0xfd)]);this[_0x176939(0x12d)][_0x176939(0x120)](this[_0x176939(0xfd)]);}[_0x3cf892(0x11e)](_0x26e839){const _0x3dae31=_0x3cf892;-0x1===_0x26e839?this[_0x3dae31(0xff)][_0x3dae31(0x13e)]():this[_0x3dae31(0xff)][_0x3dae31(0x128)]();}[_0x3cf892(0x11c)](){const _0x2b0d29=_0x3cf892;this[_0x2b0d29(0x134)]=!0x0;}[_0x3cf892(0x119)](){const _0x5365c2=_0x3cf892;this[_0x5365c2(0x134)]=!0x1;}[_0x3cf892(0x11d)](_0x40da1c){const _0x4c8f4a=_0x3cf892;this[_0x4c8f4a(0x115)]||(this[_0x4c8f4a(0x115)]=this[_0x4c8f4a(0x126)](),this[_0x4c8f4a(0x12e)][_0x4c8f4a(0x104)]([this[_0x4c8f4a(0x115)]],0x0)),this[_0x4c8f4a(0x135)]=_0x40da1c,this[_0x4c8f4a(0x10a)]=!0x0;}[_0x3cf892(0x111)](){const _0x26e624=_0x3cf892;this[_0x26e624(0x10a)]=!0x1;}[_0x3cf892(0xfa)](_0x2de52b){const _0x42cb5e=_0x3cf892;this[_0x42cb5e(0x11d)](_0x2de52b);}[_0x3cf892(0x101)](_0x5dce4b){const _0x2533c1=_0x3cf892;this[_0x2533c1(0x11d)](_0x5dce4b),this[_0x2533c1(0xfb)]&&(this[_0x2533c1(0xfb)][_0x2533c1(0x106)]&&(this[_0x2533c1(0xfb)][_0x2533c1(0x106)][_0x2533c1(0x105)]=!0x1),this[_0x2533c1(0xfb)][_0x2533c1(0x130)]&&(this[_0x2533c1(0xfb)][_0x2533c1(0x130)][_0x2533c1(0x105)]=!0x1));}[_0x3cf892(0xfe)](_0x4b7284){const _0xb772c3=_0x3cf892,_0x3fc82a=this[_0xb772c3(0xfc)](),_0x33faef=this[_0xb772c3(0x113)]();_0x4b7284[_0xb772c3(0x13c)][_0xb772c3(0x110)][_0xb772c3(0x108)][_0xb772c3(0x103)](_0x3fc82a,0x2),_0x4b7284[_0xb772c3(0x13c)][_0xb772c3(0x110)][_0xb772c3(0x108)][_0xb772c3(0x103)](_0x33faef,0x0),this[_0xb772c3(0xf7)][_0xb772c3(0x104)]([_0x3fc82a,_0x33faef]),this[_0xb772c3(0x13b)][_0xb772c3(0x103)](_0x3fc82a[_0xb772c3(0xfd)]),this[_0xb772c3(0x13b)][_0xb772c3(0x103)](_0x33faef[_0xb772c3(0xfd)]);}[_0x3cf892(0x145)](_0x4d0ccb){const _0x2f2b3c=_0x3cf892;this[_0x2f2b3c(0x13d)]=_0x4d0ccb,this[_0x2f2b3c(0x12e)][_0x2f2b3c(0x103)](this[_0x2f2b3c(0x13d)]);}[_0x3cf892(0x107)](_0x41fc92){const _0x4c54cc=_0x3cf892,_0xfc5d54=this[_0x4c54cc(0x12e)][_0x4c54cc(0x136)](this[_0x4c54cc(0x13d)]);this[_0x4c54cc(0x12e)][_0x4c54cc(0x124)](this[_0x4c54cc(0x13d)]),this[_0x4c54cc(0x13d)]=_0x41fc92,this[_0x4c54cc(0x12e)][_0x4c54cc(0x103)](this[_0x4c54cc(0x13d)],_0xfc5d54),this[_0x4c54cc(0x111)]();}[_0x3cf892(0x102)](){const _0x20b2b1=_0x3cf892;this[_0x20b2b1(0x132)]=new _0x5d0072(this[_0x20b2b1(0x11f)]),this[_0x20b2b1(0x12e)][_0x20b2b1(0x103)](this[_0x20b2b1(0x132)]);}[_0x3cf892(0x112)](_0x450a85=!0x0,_0x36e27c=!0x0){const _0x7e31ed=_0x3cf892;_0x450a85=_0x450a85&&!this[_0x7e31ed(0x123)]&&this[_0x7e31ed(0x12b)][_0x7e31ed(0x10f)](_0x7e31ed(0x12a)),_0x36e27c=_0x36e27c&&this[_0x7e31ed(0x12b)][_0x7e31ed(0x10f)](_0x7e31ed(0xf5)),this[_0x7e31ed(0xfb)]=new _0x5c73ff(this[_0x7e31ed(0x11f)],_0x450a85,_0x36e27c),this[_0x7e31ed(0xfb)][_0x7e31ed(0x106)]?.['on'](_0x7e31ed(0xf6),()=>{const _0x274008=_0x7e31ed;this[_0x274008(0x143)](_0x274008(0x12a));}),this[_0x7e31ed(0xfb)][_0x7e31ed(0x130)]?.['on'](_0x7e31ed(0xf6),()=>{const _0x30ffe0=_0x7e31ed;this[_0x30ffe0(0x143)](_0x30ffe0(0xf5));}),this[_0x7e31ed(0x12e)][_0x7e31ed(0x103)](this[_0x7e31ed(0xfb)]);}[_0x3cf892(0xfc)](){const _0x5706ee=_0x3cf892,_0x53074b=new _0x29a596(this[_0x5706ee(0x11f)]);return _0x53074b[_0x5706ee(0x13f)]({'icon':_0xf71701,'tooltip':_0x3eb326(this[_0x5706ee(0x11f)],_0x5706ee(0x142))}),_0x53074b['on'](_0x5706ee(0xf6),()=>{const _0x11c892=_0x5706ee;this[_0x11c892(0x143)](_0x11c892(0x12c));}),_0x53074b;}[_0x3cf892(0x113)](){const _0x61a8b7=_0x3cf892,_0x427630=new _0x29a596(this[_0x61a8b7(0x11f)]);return _0x427630[_0x61a8b7(0x13f)]({'icon':_0x2791c2,'tooltip':_0x3eb326(this[_0x61a8b7(0x11f)],_0x61a8b7(0x100))}),_0x427630['on'](_0x61a8b7(0xf6),()=>{const _0x2c71fc=_0x61a8b7;this[_0x2c71fc(0x143)](_0x2c71fc(0xf8));}),_0x427630;}[_0x3cf892(0x126)](){const _0x53541b=_0x3cf892,_0x29cc1c=new _0x106112(this[_0x53541b(0x11f)]),_0xa91083=new _0x106112(this[_0x53541b(0x11f)]);return _0xa91083[_0x53541b(0x10b)]({'tag':_0x53541b(0x146),'attributes':{'class':['ck',_0x53541b(0x125)]},'children':[{'text':this[_0x53541b(0x13a)]['to'](_0x53541b(0x135))}]}),_0x29cc1c[_0x53541b(0x10b)]({'tag':_0x53541b(0x121),'attributes':{'class':['ck',_0x53541b(0x117),_0x53541b(0x10c),this[_0x53541b(0x13a)]['if'](_0x53541b(0x10a),_0x53541b(0x122),_0x117e15=>!_0x117e15)]},'children':[_0xa91083]}),_0x29cc1c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x563ca1=_0x5a84;function _0x5a84(_0x31f7a9,_0x56a3d9){var _0x17ad89=_0x17ad();return _0x5a84=function(_0x5a8421,_0x493663){_0x5a8421=_0x5a8421-0x6f;var _0x54fbbc=_0x17ad89[_0x5a8421];return _0x54fbbc;},_0x5a84(_0x31f7a9,_0x56a3d9);}(function(_0x1b0cc1,_0x19ff3b){var _0x5ed2bb=_0x5a84,_0x3d5b4f=_0x1b0cc1();while(!![]){try{var _0x4df5b9=-parseInt(_0x5ed2bb(0x7f))/0x1+-parseInt(_0x5ed2bb(0x78))/0x2*(-parseInt(_0x5ed2bb(0x75))/0x3)+parseInt(_0x5ed2bb(0x6f))/0x4+-parseInt(_0x5ed2bb(0x7e))/0x5*(parseInt(_0x5ed2bb(0x7b))/0x6)+parseInt(_0x5ed2bb(0x84))/0x7+-parseInt(_0x5ed2bb(0x72))/0x8+-parseInt(_0x5ed2bb(0x76))/0x9*(-parseInt(_0x5ed2bb(0x85))/0xa);if(_0x4df5b9===_0x19ff3b)break;else _0x3d5b4f['push'](_0x3d5b4f['shift']());}catch(_0x3b152c){_0x3d5b4f['push'](_0x3d5b4f['shift']());}}}(_0x17ad,0xa38d1));import{ContextPlugin as _0x56e854}from'ckeditor5/src/core.js';import{AIChatController as _0x225d6f}from'./aichatcontroller.js';function _0x17ad(){var _0x4fbb9e=['2337612MDInkB','get','AIChat','786472wNOSrs','plugins','startConversation','21qQFJak','1012806rROVgU','ai.chat.models','8668joYZwu','isOfficialPlugin','pluginName','6saawdo','context','removeSelectionFromChatContext','4173230cZvHEJ','1021908njEMae','addSelectionToChatContext','config','define','requires','6980547brizIH','90desQMw','isPremiumPlugin','focusPromptInput','sendMessage','ai.chat.context'];_0x17ad=function(){return _0x4fbb9e;};return _0x17ad();}import{AIEditing as _0x24ce0e}from'../aicore/aiediting.js';import{AIChatUI as _0x37e8e7}from'./aichatui.js';import{AIChatHistory as _0x37b907}from'../aichathistory/aichathistory.js';export class AIChat extends _0x56e854{static get[_0x563ca1(0x83)](){return[_0x225d6f,_0x24ce0e,_0x37e8e7,_0x37b907];}static get[_0x563ca1(0x7a)](){var _0x397908=_0x563ca1;return _0x397908(0x71);}static get[_0x563ca1(0x79)](){return!0x0;}static get[_0x563ca1(0x86)](){return!0x0;}constructor(_0xeef0f1){var _0x5b59c3=_0x563ca1;super(_0xeef0f1),this[_0x5b59c3(0x7c)][_0x5b59c3(0x81)][_0x5b59c3(0x82)](_0x5b59c3(0x89),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x5b59c3(0x7c)][_0x5b59c3(0x81)][_0x5b59c3(0x82)](_0x5b59c3(0x77),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x563ca1(0x80)](){var _0x12c236=_0x563ca1;await this[_0x12c236(0x7c)][_0x12c236(0x73)][_0x12c236(0x70)](_0x225d6f)[_0x12c236(0x80)]();}async[_0x563ca1(0x74)](){var _0x435574=_0x563ca1;await this[_0x435574(0x7c)][_0x435574(0x73)][_0x435574(0x70)](_0x225d6f)[_0x435574(0x74)]();}async[_0x563ca1(0x88)]({message:_0xc20c3a,quickActionData:_0x122333}){var _0x5bdbfa=_0x563ca1;await this[_0x5bdbfa(0x7c)][_0x5bdbfa(0x73)][_0x5bdbfa(0x70)](_0x225d6f)[_0x5bdbfa(0x88)]({'message':_0xc20c3a,'quickActionData':_0x122333});}[_0x563ca1(0x7d)](){var _0x3c74f3=_0x563ca1;this[_0x3c74f3(0x7c)][_0x3c74f3(0x73)][_0x3c74f3(0x70)](_0x225d6f)[_0x3c74f3(0x7d)]();}[_0x563ca1(0x87)](){var _0x1a4c78=_0x563ca1;this[_0x1a4c78(0x7c)][_0x1a4c78(0x73)][_0x1a4c78(0x70)](_0x225d6f)[_0x1a4c78(0x87)]();}}
23
+ var _0xe11a26=_0x53b9;(function(_0x3b38e0,_0xc2756a){var _0x3b6e9f=_0x53b9,_0x20d3e9=_0x3b38e0();while(!![]){try{var _0xb707ec=parseInt(_0x3b6e9f(0xfe))/0x1*(-parseInt(_0x3b6e9f(0xfd))/0x2)+parseInt(_0x3b6e9f(0x10c))/0x3*(parseInt(_0x3b6e9f(0x101))/0x4)+parseInt(_0x3b6e9f(0x10a))/0x5*(parseInt(_0x3b6e9f(0xf9))/0x6)+-parseInt(_0x3b6e9f(0xfc))/0x7+parseInt(_0x3b6e9f(0x10b))/0x8+parseInt(_0x3b6e9f(0xf5))/0x9+parseInt(_0x3b6e9f(0x107))/0xa*(-parseInt(_0x3b6e9f(0x103))/0xb);if(_0xb707ec===_0xc2756a)break;else _0x20d3e9['push'](_0x20d3e9['shift']());}catch(_0x1ff789){_0x20d3e9['push'](_0x20d3e9['shift']());}}}(_0x1a8f,0xd191a));function _0x53b9(_0x57ac89,_0x30abc2){var _0x1a8f6c=_0x1a8f();return _0x53b9=function(_0x53b935,_0x5f0eaf){_0x53b935=_0x53b935-0xf5;var _0x53ddd6=_0x1a8f6c[_0x53b935];return _0x53ddd6;},_0x53b9(_0x57ac89,_0x30abc2);}function _0x1a8f(){var _0x518d53=['isPremiumPlugin','30eWQiyX','focusPromptInput','AIChat','2570kmvaLa','11163712JqZeaK','3WTfMXV','config','isOfficialPlugin','plugins','requires','15256170husaIB','removeSelectionFromChatContext','addSelectionToChatContext','sendMessage','4458UZioYW','pluginName','ai.chat.models','6675690XPvJip','2Dzaxac','352671yGQxaV','startConversation','ai.chat.context','3203156vDEyxv','context','7731350XGzIIW','get','define'];_0x1a8f=function(){return _0x518d53;};return _0x1a8f();}import{ContextPlugin as _0x2594f3}from'ckeditor5/src/core.js';import{AIChatController as _0x5218a3}from'./aichatcontroller.js';import{AIEditing as _0x2ef271}from'../aicore/aiediting.js';import{AIChatUI as _0x411c4c}from'./aichatui.js';import{AIChatHistory as _0x4c313c}from'../aichathistory/aichathistory.js';export class AIChat extends _0x2594f3{static get[_0xe11a26(0x110)](){return[_0x5218a3,_0x2ef271,_0x411c4c,_0x4c313c];}static get[_0xe11a26(0xfa)](){var _0x1cc906=_0xe11a26;return _0x1cc906(0x109);}static get[_0xe11a26(0x10e)](){return!0x0;}static get[_0xe11a26(0x106)](){return!0x0;}constructor(_0x13ca54){var _0x31eb8f=_0xe11a26;super(_0x13ca54),this[_0x31eb8f(0x102)][_0x31eb8f(0x10d)][_0x31eb8f(0x105)](_0x31eb8f(0x100),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x31eb8f(0x102)][_0x31eb8f(0x10d)][_0x31eb8f(0x105)](_0x31eb8f(0xfb),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0xe11a26(0xf7)](){var _0x1693d7=_0xe11a26;await this[_0x1693d7(0x102)][_0x1693d7(0x10f)][_0x1693d7(0x104)](_0x5218a3)[_0x1693d7(0xf7)]();}async[_0xe11a26(0xff)](){var _0xea4a7=_0xe11a26;await this[_0xea4a7(0x102)][_0xea4a7(0x10f)][_0xea4a7(0x104)](_0x5218a3)[_0xea4a7(0xff)]();}async[_0xe11a26(0xf8)]({message:_0x1c692d,quickActionData:_0x1c1401}){var _0x2d2426=_0xe11a26;await this[_0x2d2426(0x102)][_0x2d2426(0x10f)][_0x2d2426(0x104)](_0x5218a3)[_0x2d2426(0xf8)]({'message':_0x1c692d,'quickActionData':_0x1c1401});}[_0xe11a26(0xf6)](){var _0x226903=_0xe11a26;this[_0x226903(0x102)][_0x226903(0x10f)][_0x226903(0x104)](_0x5218a3)[_0x226903(0xf6)]();}[_0xe11a26(0x108)](){var _0x44c4f4=_0xe11a26;this[_0x44c4f4(0x102)][_0x44c4f4(0x10f)][_0x44c4f4(0x104)](_0x5218a3)[_0x44c4f4(0x108)]();}}