@ckeditor/ckeditor5-ai 47.6.0 → 47.6.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.d.ts +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcba9d9=_0x330a;(function(_0x7c49b0,_0x5cf4ce){const _0xb6bd7f=_0x330a,_0x52dfa3=_0x7c49b0();while(!![]){try{const _0x4ec746=-parseInt(_0xb6bd7f(0x208))/0x1*(-parseInt(_0xb6bd7f(0x1e2))/0x2)+-parseInt(_0xb6bd7f(0x225))/0x3*(parseInt(_0xb6bd7f(0x1ce))/0x4)+parseInt(_0xb6bd7f(0x1c7))/0x5+-parseInt(_0xb6bd7f(0x21d))/0x6*(parseInt(_0xb6bd7f(0x1ed))/0x7)+parseInt(_0xb6bd7f(0x1d4))/0x8*(parseInt(_0xb6bd7f(0x201))/0x9)+parseInt(_0xb6bd7f(0x1c3))/0xa*(parseInt(_0xb6bd7f(0x1dc))/0xb)+parseInt(_0xb6bd7f(0x1fa))/0xc*(parseInt(_0xb6bd7f(0x20c))/0xd);if(_0x4ec746===_0x5cf4ce)break;else _0x52dfa3['push'](_0x52dfa3['shift']());}catch(_0x5cca22){_0x52dfa3['push'](_0x52dfa3['shift']());}}}(_0x4ed9,0xb1e88));import{ObservableMixin as _0x54d812}from'ckeditor5/src/utils.js';import{AIRequestError as _0x4d8980}from'../adapters/aiadapter.js';import{Matcher as _0x782727,ViewUpcastWriter as _0x4825cb}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x330a(_0x1b427d,_0x222fd1){const _0x4ed938=_0x4ed9();return _0x330a=function(_0x330a67,_0x2ec927){_0x330a67=_0x330a67-0x1c2;let _0x4840b2=_0x4ed938[_0x330a67];return _0x4840b2;},_0x330a(_0x1b427d,_0x222fd1);}export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
- _0x54d812(){[_0xcba9d9(0x1e3)];[_0xcba9d9(0x21c)];[_0xcba9d9(0x209)];[_0xcba9d9(0x1d6)];[_0xcba9d9(0x1d0)];[_0xcba9d9(0x223)];constructor(_0x22992d,_0x4e93d8,_0x4a35aa){const _0x5bb6d4=_0xcba9d9;super(),this[_0x5bb6d4(0x1e3)]=_0x22992d,this[_0x5bb6d4(0x21c)]=_0x4e93d8,this[_0x5bb6d4(0x1d6)]=document[_0x5bb6d4(0x21e)](_0x5bb6d4(0x20f)),this[_0x5bb6d4(0x1d0)]=new DOMParser(),this[_0x5bb6d4(0x223)]=new XMLSerializer(),this[_0x5bb6d4(0x209)]=_0x4a35aa,this[_0x5bb6d4(0x1d3)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x5bb6d4(0x1fc),(_0x536b3f,_0x221b17,_0x2af3d8)=>{const _0x8e87ce=_0x5bb6d4;this[_0x8e87ce(0x209)][_0x8e87ce(0x1f3)]=this[_0x8e87ce(0x20d)](_0x2af3d8);}),this[_0x5bb6d4(0x1df)](this[_0x5bb6d4(0x209)],_0x5bb6d4(0x1d7),(_0x411d69,_0x407097)=>{const _0x2f5199=_0x5bb6d4,_0x25823e=this[_0x2f5199(0x21b)]||this[_0x2f5199(0x222)];this[_0x2f5199(0x227)](_0x407097,_0x25823e,_0x2f5199(0x1e4));}),this[_0x5bb6d4(0x1df)](this[_0x5bb6d4(0x209)],_0x5bb6d4(0x1ef),()=>{const _0x349791=_0x5bb6d4;this[_0x349791(0x209)][_0x349791(0x1fe)]=this[_0x349791(0x21f)],this[_0x349791(0x227)](this[_0x349791(0x1f1)],this[_0x349791(0x21a)],this[_0x349791(0x1f4)],this[_0x349791(0x21f)]);}),this[_0x5bb6d4(0x1df)](this[_0x5bb6d4(0x209)],_0x5bb6d4(0x1d8),()=>{const _0x4f57a4=_0x5bb6d4;this[_0x4f57a4(0x1d8)]();});}[_0xcba9d9(0x1e6)](){const _0x4128b5=_0xcba9d9;this[_0x4128b5(0x210)]();}async[_0xcba9d9(0x218)]({actionId:_0x5da347,query:_0x5de19b,htmlContent:_0x5f0e8f,label:_0x5450c7,mainActionLabel:_0x228e10}){const _0x2b0a98=_0xcba9d9;this[_0x2b0a98(0x209)][_0x2b0a98(0x1fe)]=_0x5450c7,this[_0x2b0a98(0x209)][_0x2b0a98(0x1f5)]=_0x228e10,this[_0x2b0a98(0x222)]=_0x5f0e8f,_0x5de19b&&(this[_0x2b0a98(0x209)][_0x2b0a98(0x1c6)]?this[_0x2b0a98(0x227)](_0x5de19b,_0x5f0e8f,_0x5da347,_0x5450c7):this[_0x2b0a98(0x209)][_0x2b0a98(0x203)](_0x2b0a98(0x224),()=>{const _0x2722ab=_0x2b0a98;this[_0x2722ab(0x227)](_0x5de19b,_0x5f0e8f,_0x5da347,_0x5450c7);}));}[_0xcba9d9(0x1d8)](){const _0xb3f6e6=_0xcba9d9;this[_0xb3f6e6(0x1e5)]&&(this[_0xb3f6e6(0x1e5)]=!0x1,this[_0xb3f6e6(0x209)][_0xb3f6e6(0x1dd)](),this[_0xb3f6e6(0x21c)][_0xb3f6e6(0x228)]());}[_0xcba9d9(0x1c2)](){const _0x4d03e7=_0xcba9d9;this[_0x4d03e7(0x222)]='',this[_0x4d03e7(0x21b)]='',this[_0x4d03e7(0x1ff)]='',this[_0x4d03e7(0x21a)]='',this[_0x4d03e7(0x1f1)]='',this[_0x4d03e7(0x21f)]='',this[_0x4d03e7(0x1f4)]=void 0x0,this[_0x4d03e7(0x209)][_0x4d03e7(0x1c2)](),this[_0x4d03e7(0x1d8)]();}async[_0xcba9d9(0x227)](_0x1f95a1,_0x4c6a33,_0x266eb2,_0x44a4c5){const _0x77effb=_0xcba9d9;return this[_0x77effb(0x1e5)]=!0x0,this[_0x77effb(0x209)][_0x77effb(0x1f7)](),this[_0x77effb(0x21a)]=_0x4c6a33,this[_0x77effb(0x1f1)]=_0x1f95a1,this[_0x77effb(0x21f)]=_0x44a4c5||_0x1f95a1,this[_0x77effb(0x1f4)]=_0x266eb2,new Promise(_0x16e5f3=>{const _0x372d5b=_0x77effb;this[_0x372d5b(0x21c)][_0x372d5b(0x1ee)]({'query':_0x1f95a1,'context':_0x4c6a33,'onData':_0xaca04e=>{const _0x316885=_0x372d5b;this[_0x316885(0x1ff)]=_0xaca04e,this[_0x316885(0x21b)]=this[_0x316885(0x1d9)](this[_0x316885(0x1ff)]);},'actionId':_0x266eb2})[_0x372d5b(0x1f8)](()=>{const _0x18d7b3=_0x372d5b;!this[_0x18d7b3(0x21b)]&&this[_0x18d7b3(0x1ff)]&&(this[_0x18d7b3(0x21b)]=this[_0x18d7b3(0x1d9)](this[_0x18d7b3(0x1ff)],!0x0));})[_0x372d5b(0x219)](_0x39dddd=>{const _0x29f10b=_0x372d5b;_0x39dddd instanceof _0x4d8980?this[_0x29f10b(0x209)][_0x29f10b(0x202)](_0x39dddd[_0x29f10b(0x1d2)]):this[_0x29f10b(0x209)][_0x29f10b(0x202)](),_0x16e5f3();})[_0x372d5b(0x212)](()=>{const _0x40e6b2=_0x372d5b;this[_0x40e6b2(0x1d8)](),_0x16e5f3();});});}[_0xcba9d9(0x1d9)](_0x2eb734,_0x5061ac=!0x1){const _0x3f134b=_0xcba9d9,_0x3be331=hs[_0x3f134b(0x1f2)](_0x2eb734);_0x2eb734=_0x3be331?_0x2eb734[_0x3f134b(0x1d1)](_0x3be331[0x1][_0x3f134b(0x1cc)]):_0x2eb734[_0x3f134b(0x1cc)]<0x64&&!_0x5061ac?'':this[_0x3f134b(0x1e9)](_0x2eb734);const _0x5ce16b=this[_0x3f134b(0x1d0)][_0x3f134b(0x221)](_0x2eb734,_0x3f134b(0x20e));if(_0x3be331){const _0x4026a5=Array[_0x3f134b(0x1c8)](_0x5ce16b[_0x3f134b(0x1ec)][_0x3f134b(0x1cb)]);_0x4026a5[_0x3f134b(0x211)]();for(const _0x2aa858 of _0x4026a5){if(_0x2aa858[_0x3f134b(0x1cd)]==Node[_0x3f134b(0x1c9)])break;_0x2aa858[_0x3f134b(0x1f9)]();}}const _0x5ca5c5=this[_0x3f134b(0x1e3)][_0x3f134b(0x216)][_0x3f134b(0x1cf)][_0x3f134b(0x20a)](this[_0x3f134b(0x223)][_0x3f134b(0x1db)](_0x5ce16b[_0x3f134b(0x1ec)]));this[_0x3f134b(0x1ca)]()||this[_0x3f134b(0x1fb)](_0x5ca5c5);const _0x1605f5=this[_0x3f134b(0x1e3)][_0x3f134b(0x1e7)][_0x3f134b(0x1e1)](_0x3f134b(0x220)),_0x3ad8e9=this[_0x3f134b(0x1e3)][_0x3f134b(0x216)][_0x3f134b(0x1c4)](_0x5ca5c5);return _0x1605f5||_0x3ad8e9[_0x3f134b(0x1e8)][_0x3f134b(0x217)](),this[_0x3f134b(0x1e3)][_0x3f134b(0x216)][_0x3f134b(0x205)](_0x3ad8e9);}[_0xcba9d9(0x1fb)](_0x5a95ae){const _0x1a5773=_0xcba9d9,_0x4996c9=new _0x4825cb(this[_0x1a5773(0x1e3)][_0x1a5773(0x1e0)][_0x1a5773(0x209)][_0x1a5773(0x204)]),_0x50d10e=new _0x782727({'name':/^h[1-5]$/}),_0x686746=[];let _0x525320=!0x1;for(const _0x5d43a2 of _0x5a95ae)_0x5d43a2['is'](_0x1a5773(0x226))&&_0x50d10e[_0x1a5773(0x1eb)](_0x5d43a2)&&(_0x686746[_0x1a5773(0x215)](_0x5d43a2),'h1'==_0x5d43a2[_0x1a5773(0x206)]&&(_0x525320=!0x0));if(_0x525320){for(const _0x15c953 of _0x686746)_0x4996c9[_0x1a5773(0x207)]('h'+(parseInt(_0x15c953[_0x1a5773(0x206)][0x1])+0x1),_0x15c953);}}[_0xcba9d9(0x1ca)](){const _0x5944ce=_0xcba9d9,{data:_0x486c98,editing:_0xa98d49}=this[_0x5944ce(0x1e3)],_0x3be9fb=_0x486c98[_0x5944ce(0x214)][_0x5944ce(0x20a)](_0x5944ce(0x1f0)),_0x25e974=_0x486c98[_0x5944ce(0x20a)](_0x486c98[_0x5944ce(0x1c4)](_0x3be9fb));return!!_0xa98d49[_0x5944ce(0x209)][_0x5944ce(0x1c5)][_0x5944ce(0x1ea)](_0x25e974)[_0x5944ce(0x1de)]('h1');}[_0xcba9d9(0x20d)](_0x3724b4){const _0x40b763=_0xcba9d9;return this[_0x40b763(0x1e3)][_0x40b763(0x1e0)][_0x40b763(0x209)][_0x40b763(0x1c5)][_0x40b763(0x1f6)](this[_0x40b763(0x1d6)],_0x3724b4),this[_0x40b763(0x1d6)][_0x40b763(0x1d5)];}[_0xcba9d9(0x1e9)](_0x52e9c8){const _0x226600=_0xcba9d9,_0x3d64ad=_0x52e9c8[_0x226600(0x1da)]();return _0x3d64ad[_0x226600(0x200)](_0x226600(0x1fd))?_0x3d64ad[_0x226600(0x20b)](_0x226600(0x213))?_0x3d64ad[_0x226600(0x1d1)](0x7,_0x3d64ad[_0x226600(0x1cc)]-0x3):_0x3d64ad[_0x226600(0x1d1)](0x7):_0x52e9c8;}}function _0x4ed9(){const _0x103596=['set','40bahYyp','innerHTML','_sanitizationContainer','submitPrompt','stopProcessing','_parseAndNormalizeContent','trim','serializeToString','79024IDnvlL','finishProcessing','querySelector','listenTo','editing','get','1073698uZnDOm','editor','custom','isProcessing','destroy','config','markers','_stripMarkdownSyntax','viewToDom','match','body','91ozpMVQ','makeRequest','tryAgainEvent','<h1></h1>','previousQuery','exec','value','previousActionId','mainAction','setContentOf','startProcessing','then','remove','24jMyOnb','_normalizeResponseHeadings','set:currentContext','```html','prompt','currentResponse','startsWith','281511ofFUXv','handleError','once','document','stringify','name','rename','1gaSMxb','view','toView','endsWith','9001187nmgett','_sanitizeHTML','text/html','div','stopListening','reverse','finally','```','htmlProcessor','push','data','clear','updateView','catch','previousContext','currentContext','textAdapter','623778MHFqPU','createElement','previousLabel','ai.assistant.preserveComments','parseFromString','initialContext','_xmlSerializer','render','969606XBjhbl','element','_handleQuery','abort','reset','420KsUUDO','toModel','domConverter','isRendered','1734325piQHoN','from','ELEMENT_NODE','_isH1TagSupportEnabled','childNodes','length','nodeType','8TrPveA','processor','_domParser','substring','message'];_0x4ed9=function(){return _0x103596;};return _0x4ed9();}
23
+ const _0x3fa83f=_0x48ee;(function(_0x329e84,_0x3f62af){const _0x478d85=_0x48ee,_0xf2b841=_0x329e84();while(!![]){try{const _0x35c0e7=-parseInt(_0x478d85(0x1cf))/0x1+parseInt(_0x478d85(0x1d8))/0x2*(-parseInt(_0x478d85(0x182))/0x3)+-parseInt(_0x478d85(0x184))/0x4+parseInt(_0x478d85(0x18d))/0x5*(parseInt(_0x478d85(0x1ac))/0x6)+parseInt(_0x478d85(0x1bc))/0x7+-parseInt(_0x478d85(0x19f))/0x8+parseInt(_0x478d85(0x1c3))/0x9*(parseInt(_0x478d85(0x1c7))/0xa);if(_0x35c0e7===_0x3f62af)break;else _0xf2b841['push'](_0xf2b841['shift']());}catch(_0x20eefe){_0xf2b841['push'](_0xf2b841['shift']());}}}(_0x2fd8,0x4203f));function _0x2fd8(){const _0x445b1b=['finishProcessing','_parseAndNormalizeContent','toModel','submitPrompt','push','reset','initialContext','reverse','isProcessing','set','view','1482usjoaR','_normalizeResponseHeadings','clear','abort','stopProcessing','currentResponse','editor','startProcessing','<h1></h1>','config','processor','then','createElement','previousQuery','stopListening','custom','959917CpYKLV','text/html','endsWith','startsWith','rename','previousLabel','_domParser','10339083dgndpX','name','document','element','10WgiFpZ','_isH1TagSupportEnabled','serializeToString','```','tryAgainEvent','updateView','_handleQuery','get','111585xOvHxG','handleError','from','body','listenTo','message','setContentOf','value','finally','150014YwligA','data','_xmlSerializer','isRendered','querySelector','```html','once','trim','markers','nodeType','viewToDom','set:currentContext','ai.assistant.preserveComments','editing','15ZYfTMF','ELEMENT_NODE','1875780biwQDp','catch','_stripMarkdownSyntax','remove','innerHTML','exec','toView','previousContext','previousActionId','355ypbiLU','destroy','parseFromString','_sanitizeHTML','length','mainAction','domConverter','substring','match','childNodes','prompt','_sanitizationContainer','stringify','textAdapter','htmlProcessor','div','currentContext','makeRequest','619928kWjNCN','render'];_0x2fd8=function(){return _0x445b1b;};return _0x2fd8();}import{ObservableMixin as _0x5b6258}from'ckeditor5/src/utils.js';import{AIRequestError as _0x6d9f7e}from'../adapters/aiadapter.js';import{Matcher as _0x34dbb4,ViewUpcastWriter as _0x5548b4}from'ckeditor5/src/engine.js';function _0x48ee(_0x341644,_0x338e41){const _0x2fd8a2=_0x2fd8();return _0x48ee=function(_0x48ee14,_0x31a8cd){_0x48ee14=_0x48ee14-0x179;let _0x8d8790=_0x2fd8a2[_0x48ee14];return _0x8d8790;},_0x48ee(_0x341644,_0x338e41);}const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
+ _0x5b6258(){[_0x3fa83f(0x1b2)];[_0x3fa83f(0x19a)];[_0x3fa83f(0x1ab)];[_0x3fa83f(0x198)];[_0x3fa83f(0x1c2)];[_0x3fa83f(0x1da)];constructor(_0x3f7768,_0x320c04,_0x2e9cd2){const _0x10c054=_0x3fa83f;super(),this[_0x10c054(0x1b2)]=_0x3f7768,this[_0x10c054(0x19a)]=_0x320c04,this[_0x10c054(0x198)]=document[_0x10c054(0x1b8)](_0x10c054(0x19c)),this[_0x10c054(0x1c2)]=new DOMParser(),this[_0x10c054(0x1da)]=new XMLSerializer(),this[_0x10c054(0x1ab)]=_0x2e9cd2,this[_0x10c054(0x1aa)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x10c054(0x17f),(_0x51d056,_0x695d67,_0x4297d8)=>{const _0x575109=_0x10c054;this[_0x575109(0x1ab)][_0x575109(0x1d6)]=this[_0x575109(0x190)](_0x4297d8);}),this[_0x10c054(0x1d3)](this[_0x10c054(0x1ab)],_0x10c054(0x1a4),(_0x2e763e,_0x5e8b7e)=>{const _0x1ca081=_0x10c054,_0x3a9c19=this[_0x1ca081(0x19d)]||this[_0x1ca081(0x1a7)];this[_0x1ca081(0x1cd)](_0x5e8b7e,_0x3a9c19,_0x1ca081(0x1bb));}),this[_0x10c054(0x1d3)](this[_0x10c054(0x1ab)],_0x10c054(0x1cb),()=>{const _0x4499b1=_0x10c054;this[_0x4499b1(0x1ab)][_0x4499b1(0x197)]=this[_0x4499b1(0x1c1)],this[_0x4499b1(0x1cd)](this[_0x4499b1(0x1b9)],this[_0x4499b1(0x18b)],this[_0x4499b1(0x18c)],this[_0x4499b1(0x1c1)]);}),this[_0x10c054(0x1d3)](this[_0x10c054(0x1ab)],_0x10c054(0x1b0),()=>{const _0x47e51f=_0x10c054;this[_0x47e51f(0x1b0)]();});}[_0x3fa83f(0x18e)](){const _0x5d050c=_0x3fa83f;this[_0x5d050c(0x1ba)]();}async[_0x3fa83f(0x1cc)]({actionId:_0x4cc8cc,query:_0x3d2452,htmlContent:_0x22c8e1,label:_0x3fb740,mainActionLabel:_0x5a8096}){const _0x437f0b=_0x3fa83f;this[_0x437f0b(0x1ab)][_0x437f0b(0x197)]=_0x3fb740,this[_0x437f0b(0x1ab)][_0x437f0b(0x192)]=_0x5a8096,this[_0x437f0b(0x1a7)]=_0x22c8e1,_0x3d2452&&(this[_0x437f0b(0x1ab)][_0x437f0b(0x1db)]?this[_0x437f0b(0x1cd)](_0x3d2452,_0x22c8e1,_0x4cc8cc,_0x3fb740):this[_0x437f0b(0x1ab)][_0x437f0b(0x17a)](_0x437f0b(0x1a0),()=>{const _0x355b02=_0x437f0b;this[_0x355b02(0x1cd)](_0x3d2452,_0x22c8e1,_0x4cc8cc,_0x3fb740);}));}[_0x3fa83f(0x1b0)](){const _0x4da023=_0x3fa83f;this[_0x4da023(0x1a9)]&&(this[_0x4da023(0x1a9)]=!0x1,this[_0x4da023(0x1ab)][_0x4da023(0x1a1)](),this[_0x4da023(0x19a)][_0x4da023(0x1af)]());}[_0x3fa83f(0x1a6)](){const _0x19f945=_0x3fa83f;this[_0x19f945(0x1a7)]='',this[_0x19f945(0x19d)]='',this[_0x19f945(0x1b1)]='',this[_0x19f945(0x18b)]='',this[_0x19f945(0x1b9)]='',this[_0x19f945(0x1c1)]='',this[_0x19f945(0x18c)]=void 0x0,this[_0x19f945(0x1ab)][_0x19f945(0x1a6)](),this[_0x19f945(0x1b0)]();}async[_0x3fa83f(0x1cd)](_0x3810ec,_0x19da8e,_0x394eaa,_0x591b2b){const _0x1c17ac=_0x3fa83f;return this[_0x1c17ac(0x1a9)]=!0x0,this[_0x1c17ac(0x1ab)][_0x1c17ac(0x1b3)](),this[_0x1c17ac(0x18b)]=_0x19da8e,this[_0x1c17ac(0x1b9)]=_0x3810ec,this[_0x1c17ac(0x1c1)]=_0x591b2b||_0x3810ec,this[_0x1c17ac(0x18c)]=_0x394eaa,new Promise(_0x2b9fa2=>{const _0xe11271=_0x1c17ac;this[_0xe11271(0x19a)][_0xe11271(0x19e)]({'query':_0x3810ec,'context':_0x19da8e,'onData':_0x1121f6=>{const _0x2f9246=_0xe11271;this[_0x2f9246(0x1b1)]=_0x1121f6,this[_0x2f9246(0x19d)]=this[_0x2f9246(0x1a2)](this[_0x2f9246(0x1b1)]);},'actionId':_0x394eaa})[_0xe11271(0x1b7)](()=>{const _0x27ebea=_0xe11271;!this[_0x27ebea(0x19d)]&&this[_0x27ebea(0x1b1)]&&(this[_0x27ebea(0x19d)]=this[_0x27ebea(0x1a2)](this[_0x27ebea(0x1b1)],!0x0));})[_0xe11271(0x185)](_0x177149=>{const _0x134039=_0xe11271;_0x177149 instanceof _0x6d9f7e?this[_0x134039(0x1ab)][_0x134039(0x1d0)](_0x177149[_0x134039(0x1d4)]):this[_0x134039(0x1ab)][_0x134039(0x1d0)](),_0x2b9fa2();})[_0xe11271(0x1d7)](()=>{const _0x54721c=_0xe11271;this[_0x54721c(0x1b0)](),_0x2b9fa2();});});}[_0x3fa83f(0x1a2)](_0xae9574,_0x429da3=!0x1){const _0x23dbc8=_0x3fa83f,_0x1f4bcb=hs[_0x23dbc8(0x189)](_0xae9574);_0xae9574=_0x1f4bcb?_0xae9574[_0x23dbc8(0x194)](_0x1f4bcb[0x1][_0x23dbc8(0x191)]):_0xae9574[_0x23dbc8(0x191)]<0x64&&!_0x429da3?'':this[_0x23dbc8(0x186)](_0xae9574);const _0x65edc8=this[_0x23dbc8(0x1c2)][_0x23dbc8(0x18f)](_0xae9574,_0x23dbc8(0x1bd));if(_0x1f4bcb){const _0x5bb687=Array[_0x23dbc8(0x1d1)](_0x65edc8[_0x23dbc8(0x1d2)][_0x23dbc8(0x196)]);_0x5bb687[_0x23dbc8(0x1a8)]();for(const _0x3cbde5 of _0x5bb687){if(_0x3cbde5[_0x23dbc8(0x17d)]==Node[_0x23dbc8(0x183)])break;_0x3cbde5[_0x23dbc8(0x187)]();}}const _0x1b7563=this[_0x23dbc8(0x1b2)][_0x23dbc8(0x1d9)][_0x23dbc8(0x1b6)][_0x23dbc8(0x18a)](this[_0x23dbc8(0x1da)][_0x23dbc8(0x1c9)](_0x65edc8[_0x23dbc8(0x1d2)]));this[_0x23dbc8(0x1c8)]()||this[_0x23dbc8(0x1ad)](_0x1b7563);const _0x483df1=this[_0x23dbc8(0x1b2)][_0x23dbc8(0x1b5)][_0x23dbc8(0x1ce)](_0x23dbc8(0x180)),_0x17c213=this[_0x23dbc8(0x1b2)][_0x23dbc8(0x1d9)][_0x23dbc8(0x1a3)](_0x1b7563);return _0x483df1||_0x17c213[_0x23dbc8(0x17c)][_0x23dbc8(0x1ae)](),this[_0x23dbc8(0x1b2)][_0x23dbc8(0x1d9)][_0x23dbc8(0x199)](_0x17c213);}[_0x3fa83f(0x1ad)](_0x1c0fe9){const _0x4f17a7=_0x3fa83f,_0x1b9397=new _0x5548b4(this[_0x4f17a7(0x1b2)][_0x4f17a7(0x181)][_0x4f17a7(0x1ab)][_0x4f17a7(0x1c5)]),_0xf8d095=new _0x34dbb4({'name':/^h[1-5]$/}),_0x5f4e71=[];let _0x5ed92a=!0x1;for(const _0x2d71aa of _0x1c0fe9)_0x2d71aa['is'](_0x4f17a7(0x1c6))&&_0xf8d095[_0x4f17a7(0x195)](_0x2d71aa)&&(_0x5f4e71[_0x4f17a7(0x1a5)](_0x2d71aa),'h1'==_0x2d71aa[_0x4f17a7(0x1c4)]&&(_0x5ed92a=!0x0));if(_0x5ed92a){for(const _0x2627d3 of _0x5f4e71)_0x1b9397[_0x4f17a7(0x1c0)]('h'+(parseInt(_0x2627d3[_0x4f17a7(0x1c4)][0x1])+0x1),_0x2627d3);}}[_0x3fa83f(0x1c8)](){const _0x1c1d85=_0x3fa83f,{data:_0x33c2e7,editing:_0x419063}=this[_0x1c1d85(0x1b2)],_0x2d5dbb=_0x33c2e7[_0x1c1d85(0x19b)][_0x1c1d85(0x18a)](_0x1c1d85(0x1b4)),_0x598d09=_0x33c2e7[_0x1c1d85(0x18a)](_0x33c2e7[_0x1c1d85(0x1a3)](_0x2d5dbb));return!!_0x419063[_0x1c1d85(0x1ab)][_0x1c1d85(0x193)][_0x1c1d85(0x17e)](_0x598d09)[_0x1c1d85(0x1dc)]('h1');}[_0x3fa83f(0x190)](_0x1b5db2){const _0x3c0088=_0x3fa83f;return this[_0x3c0088(0x1b2)][_0x3c0088(0x181)][_0x3c0088(0x1ab)][_0x3c0088(0x193)][_0x3c0088(0x1d5)](this[_0x3c0088(0x198)],_0x1b5db2),this[_0x3c0088(0x198)][_0x3c0088(0x188)];}[_0x3fa83f(0x186)](_0x33d20b){const _0x5020ab=_0x3fa83f,_0x370888=_0x33d20b[_0x5020ab(0x17b)]();return _0x370888[_0x5020ab(0x1bf)](_0x5020ab(0x179))?_0x370888[_0x5020ab(0x1be)](_0x5020ab(0x1ca))?_0x370888[_0x5020ab(0x194)](0x7,_0x370888[_0x5020ab(0x191)]-0x3):_0x370888[_0x5020ab(0x194)](0x7):_0x33d20b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c2df1=_0x5b18;(function(_0x15c2d3,_0x4365f4){const _0x490ebf=_0x5b18,_0x55dc1a=_0x15c2d3();while(!![]){try{const _0x567042=parseInt(_0x490ebf(0x1f0))/0x1*(-parseInt(_0x490ebf(0x1d4))/0x2)+-parseInt(_0x490ebf(0x1c3))/0x3*(-parseInt(_0x490ebf(0x1e6))/0x4)+parseInt(_0x490ebf(0x1b2))/0x5*(-parseInt(_0x490ebf(0x1c6))/0x6)+parseInt(_0x490ebf(0x1ee))/0x7*(-parseInt(_0x490ebf(0x1ef))/0x8)+parseInt(_0x490ebf(0x1f2))/0x9+-parseInt(_0x490ebf(0x1cd))/0xa*(-parseInt(_0x490ebf(0x1c8))/0xb)+parseInt(_0x490ebf(0x1b8))/0xc;if(_0x567042===_0x4365f4)break;else _0x55dc1a['push'](_0x55dc1a['shift']());}catch(_0x4e5b3a){_0x55dc1a['push'](_0x55dc1a['shift']());}}}(_0x43ec,0x37fda));function _0x43ec(){const _0x4915e4=['element','clipboard','contentFieldView','removeAllRanges','style','ck-reset_all-excluded','remove','left','set','text/html','ck-ai-form__content-area','_createCopyButton','locale','Copy','loaderView','14176WglNvm','isProcessing','-9999px','<span>[</span>','setTemplate','div','_createLoader','icon','749OzXXpV','8032DHrZdZ','25vBUrhT','AI\x20is\x20writing...','2445291SKRjph','scrollTo','innerHTML','ck-ai-form__content-area--processing','position','createElement','setStartAfter','ck-ai-form__copy-button','ClipboardItem','setEndBefore','render','scrollHeight','body','isVisible','ck-ai-form__copy-button-wrapper','ck-content','querySelector','lastElementChild','ck-hidden','mousedown','bind','setContent','copyButtonView','11035xruJom','createRange','ck-ai-form__content-field','ck-ai-form__content-area-wrapper','appendLoader','copy','4456812zcZzkW','ck-ai-form__loader','smooth','.ck-ai-form__loader','bindTemplate','_copyHTMLToClipboard','listenTo','isEnabled','appendChild','value','\x20ck-ai-form__copy-button--copied','126EVHaeI','text/plain','addRange','918nLYBJV','execCommand','33mmQvak','firstElementChild','change:value','execute','focus','1069630pqPXMn','wheel','textContent','change:isProcessing','absolute','<span>]</span>','class','35072lLNKNz','getSelection','write'];_0x43ec=function(){return _0x4915e4;};return _0x43ec();}import{global as _0x5d24cd}from'ckeditor5/src/utils.js';import{View as _0x4718aa,ButtonView as _0x581a88,SpinnerView as _0x2b0742}from'ckeditor5/src/ui.js';import{IconCheck as _0x35fffb,IconCopy as _0x5c5705}from'ckeditor5/src/icons.js';import{getTranslation as _0x155ce3}from'../../utils/common-translations.js';function _0x5b18(_0x3bba2d,_0x4d35c4){const _0x43ec8e=_0x43ec();return _0x5b18=function(_0x5b18ff,_0x541f64){_0x5b18ff=_0x5b18ff-0x1a7;let _0x8fcc6=_0x43ec8e[_0x5b18ff];return _0x8fcc6;},_0x5b18(_0x3bba2d,_0x4d35c4);}export class AIFormContentArea extends _0x4718aa{[_0x5c2df1(0x1d9)];[_0x5c2df1(0x1b1)];constructor(_0x42f082,_0x486bc3=''){const _0x145a07=_0x5c2df1;super(_0x42f082),this[_0x145a07(0x1df)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x3be15a=this[_0x145a07(0x1bc)];this[_0x145a07(0x1d9)]=new ContentFieldView(_0x42f082,_0x486bc3),this[_0x145a07(0x1b1)]=this[_0x145a07(0x1e2)](),this[_0x145a07(0x1ea)]({'tag':_0x145a07(0x1eb),'attributes':{'class':['ck',_0x145a07(0x1b5),_0x3be15a['if'](_0x145a07(0x1a8),_0x145a07(0x1ad),_0x330ee9=>!_0x330ee9)],'tabindex':'-1'},'children':[{'tag':_0x145a07(0x1eb),'attributes':{'class':['ck',_0x145a07(0x1e1),_0x3be15a['if'](_0x145a07(0x1e7),_0x145a07(0x1f5))]},'children':[this[_0x145a07(0x1d9)],{'tag':_0x145a07(0x1eb),'attributes':{'class':['ck',_0x145a07(0x1a9)]},'children':[this[_0x145a07(0x1b1)]]}]}]});}[_0x5c2df1(0x1fc)](){const _0x546319=_0x5c2df1;super[_0x546319(0x1fc)](),this[_0x546319(0x1c1)]&&this[_0x546319(0x1d9)][_0x546319(0x1b0)](this[_0x546319(0x1c1)]);let _0x1b3a2f=!0x1;this['on'](_0x546319(0x1ca),(_0x3c5982,_0x306983,_0x22800c)=>{const _0x286428=_0x546319,_0x5122a4=!this[_0x286428(0x1d9)][_0x286428(0x1d7)][_0x286428(0x1ab)](_0x286428(0x1bb));this[_0x286428(0x1d9)][_0x286428(0x1b0)](_0x22800c),this[_0x286428(0x1e7)]&&_0x5122a4&&!_0x1b3a2f&&this[_0x286428(0x1d7)][_0x286428(0x1f3)]({'top':this[_0x286428(0x1d7)][_0x286428(0x1fd)],'behavior':_0x286428(0x1ba)});}),this['on'](_0x546319(0x1d0),(_0x52500d,_0x700c05,_0x48b0f8)=>{const _0x535dd6=_0x546319;_0x1b3a2f=!0x1,_0x48b0f8?(this[_0x535dd6(0x1c1)]=null,this[_0x535dd6(0x1d9)][_0x535dd6(0x1b6)]()):this[_0x535dd6(0x1c1)]||this[_0x535dd6(0x1d9)][_0x535dd6(0x1b0)]('');}),this[_0x546319(0x1be)](this[_0x546319(0x1d7)],_0x546319(0x1ce),()=>{_0x1b3a2f=!0x0;}),this[_0x546319(0x1be)](this[_0x546319(0x1d7)],_0x546319(0x1ae),()=>{_0x1b3a2f=!0x0;});}[_0x5c2df1(0x1cc)](){const _0x1cb534=_0x5c2df1;this[_0x1cb534(0x1d7)][_0x1cb534(0x1cc)]();}[_0x5c2df1(0x1e2)](){const _0x29207d=_0x5c2df1,_0x3ddd06=this[_0x29207d(0x1e3)],_0x5b1d31=new _0x581a88(this[_0x29207d(0x1e3)]),_0x57f04f=_0x29207d(0x1f9);return _0x5b1d31[_0x29207d(0x1df)]({'label':_0x155ce3(_0x3ddd06,_0x29207d(0x1e4)),'icon':_0x5c5705,'class':_0x57f04f,'tooltip':!0x0}),_0x5b1d31[_0x29207d(0x1af)](_0x29207d(0x1a8))['to'](this,_0x29207d(0x1c1),_0x3a489b=>!!_0x3a489b),_0x5b1d31[_0x29207d(0x1af)](_0x29207d(0x1bf))['to'](this,_0x29207d(0x1e7),_0x41153b=>!_0x41153b),_0x5b1d31['on'](_0x29207d(0x1cb),()=>{const _0x542c97=_0x29207d;this[_0x542c97(0x1bd)](this[_0x542c97(0x1d9)][_0x542c97(0x1d7)]),_0x5b1d31[_0x542c97(0x1ed)]=_0x35fffb,_0x5b1d31[_0x542c97(0x1d3)]=_0x57f04f+_0x542c97(0x1c2),this[_0x542c97(0x1cc)](),setTimeout(()=>{const _0xd243fd=_0x542c97;_0x5b1d31[_0xd243fd(0x1ed)]=_0x5c5705,_0x5b1d31[_0xd243fd(0x1d3)]=_0x57f04f;},0x3e8);}),_0x5b1d31;}[_0x5c2df1(0x1bd)](_0x47d7ec){const _0x5925be=_0x5c2df1,{window:_0x534ffe,document:_0x5ea383}=_0x5d24cd;if(_0x534ffe[_0x5925be(0x1fa)]){const {Blob:_0xc204d9,ClipboardItem:_0x19292a}=_0x534ffe,_0xac9ff7=[new _0x19292a({'text/html':new _0xc204d9([_0x47d7ec[_0x5925be(0x1f4)]],{'type':_0x5925be(0x1e0)}),'text/plain':new _0xc204d9([_0x47d7ec[_0x5925be(0x1cf)]||''],{'type':_0x5925be(0x1c4)})})];navigator[_0x5925be(0x1d8)][_0x5925be(0x1d6)](_0xac9ff7);}else{const _0x51c258=_0x5ea383[_0x5925be(0x1f7)](_0x5925be(0x1eb));_0x51c258[_0x5925be(0x1db)][_0x5925be(0x1f6)]=_0x5925be(0x1d1),_0x51c258[_0x5925be(0x1db)][_0x5925be(0x1de)]=_0x5925be(0x1e8),_0x51c258[_0x5925be(0x1f4)]=_0x5925be(0x1e9)+_0x47d7ec[_0x5925be(0x1f4)]+_0x5925be(0x1d2),_0x5ea383[_0x5925be(0x1a7)][_0x5925be(0x1c0)](_0x51c258);const _0x42d5c4=_0x5ea383[_0x5925be(0x1b3)]();_0x42d5c4[_0x5925be(0x1f8)](_0x51c258[_0x5925be(0x1c9)]),_0x42d5c4[_0x5925be(0x1fb)](_0x51c258[_0x5925be(0x1ac)]);const _0x2771d6=_0x534ffe[_0x5925be(0x1d5)]();_0x2771d6[_0x5925be(0x1da)](),_0x2771d6[_0x5925be(0x1c5)](_0x42d5c4),_0x5ea383[_0x5925be(0x1c7)](_0x5925be(0x1b7)),_0x51c258[_0x5925be(0x1dd)]();}}}export class ContentFieldView extends _0x4718aa{constructor(_0x1d4f28,_0x73de52=''){const _0x4c61e5=_0x5c2df1;super(_0x1d4f28),this[_0x4c61e5(0x1e5)]=this[_0x4c61e5(0x1ec)](),this[_0x4c61e5(0x1ea)]({'tag':_0x4c61e5(0x1eb),'attributes':{'class':['ck',_0x4c61e5(0x1aa),_0x73de52,_0x4c61e5(0x1dc),_0x4c61e5(0x1b4)]}});}[_0x5c2df1(0x1b0)](_0x4f7efe){const _0x272e2b=_0x5c2df1;this[_0x272e2b(0x1d7)][_0x272e2b(0x1f4)]=_0x4f7efe;}[_0x5c2df1(0x1b6)](){const _0x37a0aa=_0x5c2df1;this[_0x37a0aa(0x1d7)][_0x37a0aa(0x1c0)](this[_0x37a0aa(0x1e5)][_0x37a0aa(0x1d7)]);}[_0x5c2df1(0x1ec)](){const _0x392ecd=_0x5c2df1,_0x25db46=new _0x4718aa(),_0x7f98d0=this[_0x392ecd(0x1e3)],_0x72aa02=new _0x2b0742();return _0x72aa02[_0x392ecd(0x1a8)]=!0x0,_0x25db46[_0x392ecd(0x1ea)]({'tag':_0x392ecd(0x1eb),'attributes':{'class':['ck',_0x392ecd(0x1b9)]},'children':[_0x72aa02,{'text':_0x155ce3(_0x7f98d0,_0x392ecd(0x1f1))}]}),_0x25db46[_0x392ecd(0x1fc)](),_0x25db46;}}
23
+ const _0xeba073=_0x31d4;(function(_0x5cd55e,_0x349fd5){const _0x3eb6c7=_0x31d4,_0x2dca10=_0x5cd55e();while(!![]){try{const _0x4aede3=-parseInt(_0x3eb6c7(0x12b))/0x1+-parseInt(_0x3eb6c7(0xf3))/0x2+parseInt(_0x3eb6c7(0x102))/0x3+-parseInt(_0x3eb6c7(0xe9))/0x4*(parseInt(_0x3eb6c7(0x129))/0x5)+-parseInt(_0x3eb6c7(0xf8))/0x6+-parseInt(_0x3eb6c7(0xf7))/0x7+parseInt(_0x3eb6c7(0xe6))/0x8;if(_0x4aede3===_0x349fd5)break;else _0x2dca10['push'](_0x2dca10['shift']());}catch(_0x27888c){_0x2dca10['push'](_0x2dca10['shift']());}}}(_0x2b6f,0xa591e));function _0x2b6f(){const _0x57c1fd=['position','mousedown','appendChild','Copy','ck-ai-form__content-field','clipboard','ck-ai-form__content-area--processing','div','33131552REepsp','ck-ai-form__copy-button','AI\x20is\x20writing...','51176OOqYar','bindTemplate','write','scrollHeight','body','createElement','setTemplate','getSelection','absolute','loaderView','1722078LnLPpA','copy','change:value','wheel','8300992VECgKD','6612252aQsedQ','isEnabled','ck-ai-form__loader','.ck-ai-form__loader','text/plain','addRange','createRange','execCommand','value','querySelector','3266976CFPhJi','_copyHTMLToClipboard','_createLoader','focus','\x20ck-ai-form__copy-button--copied','<span>]</span>','class','removeAllRanges','copyButtonView','appendLoader','locale','ck-ai-form__content-area','ck-reset_all-excluded','ck-ai-form__copy-button-wrapper','setStartAfter','text/html','style','change:isProcessing','textContent','isVisible','icon','element','setEndBefore','setContent','execute','ck-content','listenTo','left','-9999px','ClipboardItem','set','smooth','scrollTo','_createCopyButton','bind','ck-ai-form__content-area-wrapper','contentFieldView','ck-hidden','isProcessing','115AvEuWD','remove','1109063elqWLo','render','firstElementChild','lastElementChild','<span>[</span>','innerHTML'];_0x2b6f=function(){return _0x57c1fd;};return _0x2b6f();}import{global as _0x2cbd78}from'ckeditor5/src/utils.js';import{View as _0x427ee2,ButtonView as _0x3fab4e,SpinnerView as _0x5b08df}from'ckeditor5/src/ui.js';import{IconCheck as _0x4bd8cf,IconCopy as _0x318a7c}from'ckeditor5/src/icons.js';function _0x31d4(_0x5ce5c5,_0x3c0b09){const _0x2b6fec=_0x2b6f();return _0x31d4=function(_0x31d4b6,_0xdd2c28){_0x31d4b6=_0x31d4b6-0xe3;let _0x4d8d2b=_0x2b6fec[_0x31d4b6];return _0x4d8d2b;},_0x31d4(_0x5ce5c5,_0x3c0b09);}import{getTranslation as _0x584aed}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x427ee2{[_0xeba073(0x126)];[_0xeba073(0x10a)];constructor(_0x64df61,_0x33a434=''){const _0x4f85d9=_0xeba073;super(_0x64df61),this[_0x4f85d9(0x120)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x48300a=this[_0x4f85d9(0xea)];this[_0x4f85d9(0x126)]=new ContentFieldView(_0x64df61,_0x33a434),this[_0x4f85d9(0x10a)]=this[_0x4f85d9(0x123)](),this[_0x4f85d9(0xef)]({'tag':_0x4f85d9(0xe5),'attributes':{'class':['ck',_0x4f85d9(0x125),_0x48300a['if'](_0x4f85d9(0x115),_0x4f85d9(0x127),_0xee94f4=>!_0xee94f4)],'tabindex':'-1'},'children':[{'tag':_0x4f85d9(0xe5),'attributes':{'class':['ck',_0x4f85d9(0x10d),_0x48300a['if'](_0x4f85d9(0x128),_0x4f85d9(0xe4))]},'children':[this[_0x4f85d9(0x126)],{'tag':_0x4f85d9(0xe5),'attributes':{'class':['ck',_0x4f85d9(0x10f)]},'children':[this[_0x4f85d9(0x10a)]]}]}]});}[_0xeba073(0x12c)](){const _0x1f4281=_0xeba073;super[_0x1f4281(0x12c)](),this[_0x1f4281(0x100)]&&this[_0x1f4281(0x126)][_0x1f4281(0x119)](this[_0x1f4281(0x100)]);let _0x51d080=!0x1;this['on'](_0x1f4281(0xf5),(_0xf629f4,_0x1bb99c,_0x4b82c5)=>{const _0x1cf2fe=_0x1f4281,_0x325622=!this[_0x1cf2fe(0x126)][_0x1cf2fe(0x117)][_0x1cf2fe(0x101)](_0x1cf2fe(0xfb));this[_0x1cf2fe(0x126)][_0x1cf2fe(0x119)](_0x4b82c5),this[_0x1cf2fe(0x128)]&&_0x325622&&!_0x51d080&&this[_0x1cf2fe(0x117)][_0x1cf2fe(0x122)]({'top':this[_0x1cf2fe(0x117)][_0x1cf2fe(0xec)],'behavior':_0x1cf2fe(0x121)});}),this['on'](_0x1f4281(0x113),(_0x17eae5,_0x3af978,_0x4468f8)=>{const _0x4e6571=_0x1f4281;_0x51d080=!0x1,_0x4468f8?(this[_0x4e6571(0x100)]=null,this[_0x4e6571(0x126)][_0x4e6571(0x10b)]()):this[_0x4e6571(0x100)]||this[_0x4e6571(0x126)][_0x4e6571(0x119)]('');}),this[_0x1f4281(0x11c)](this[_0x1f4281(0x117)],_0x1f4281(0xf6),()=>{_0x51d080=!0x0;}),this[_0x1f4281(0x11c)](this[_0x1f4281(0x117)],_0x1f4281(0x132),()=>{_0x51d080=!0x0;});}[_0xeba073(0x105)](){const _0x2d24d4=_0xeba073;this[_0x2d24d4(0x117)][_0x2d24d4(0x105)]();}[_0xeba073(0x123)](){const _0x5300c8=_0xeba073,_0x27d9cb=this[_0x5300c8(0x10c)],_0x23ad7c=new _0x3fab4e(this[_0x5300c8(0x10c)]),_0x2f9675=_0x5300c8(0xe7);return _0x23ad7c[_0x5300c8(0x120)]({'label':_0x584aed(_0x27d9cb,_0x5300c8(0x134)),'icon':_0x318a7c,'class':_0x2f9675,'tooltip':!0x0}),_0x23ad7c[_0x5300c8(0x124)](_0x5300c8(0x115))['to'](this,_0x5300c8(0x100),_0x18e3ac=>!!_0x18e3ac),_0x23ad7c[_0x5300c8(0x124)](_0x5300c8(0xf9))['to'](this,_0x5300c8(0x128),_0x5d4c10=>!_0x5d4c10),_0x23ad7c['on'](_0x5300c8(0x11a),()=>{const _0x27a0bd=_0x5300c8;this[_0x27a0bd(0x103)](this[_0x27a0bd(0x126)][_0x27a0bd(0x117)]),_0x23ad7c[_0x27a0bd(0x116)]=_0x4bd8cf,_0x23ad7c[_0x27a0bd(0x108)]=_0x2f9675+_0x27a0bd(0x106),this[_0x27a0bd(0x105)](),setTimeout(()=>{const _0x3b00e6=_0x27a0bd;_0x23ad7c[_0x3b00e6(0x116)]=_0x318a7c,_0x23ad7c[_0x3b00e6(0x108)]=_0x2f9675;},0x3e8);}),_0x23ad7c;}[_0xeba073(0x103)](_0x47fe76){const _0x543fad=_0xeba073,{window:_0x457f29,document:_0x2eaa11}=_0x2cbd78;if(_0x457f29[_0x543fad(0x11f)]){const {Blob:_0xcabaec,ClipboardItem:_0x268fc5}=_0x457f29,_0x475308=[new _0x268fc5({'text/html':new _0xcabaec([_0x47fe76[_0x543fad(0x130)]],{'type':_0x543fad(0x111)}),'text/plain':new _0xcabaec([_0x47fe76[_0x543fad(0x114)]||''],{'type':_0x543fad(0xfc)})})];navigator[_0x543fad(0xe3)][_0x543fad(0xeb)](_0x475308);}else{const _0x1b5ecf=_0x2eaa11[_0x543fad(0xee)](_0x543fad(0xe5));_0x1b5ecf[_0x543fad(0x112)][_0x543fad(0x131)]=_0x543fad(0xf1),_0x1b5ecf[_0x543fad(0x112)][_0x543fad(0x11d)]=_0x543fad(0x11e),_0x1b5ecf[_0x543fad(0x130)]=_0x543fad(0x12f)+_0x47fe76[_0x543fad(0x130)]+_0x543fad(0x107),_0x2eaa11[_0x543fad(0xed)][_0x543fad(0x133)](_0x1b5ecf);const _0x22e542=_0x2eaa11[_0x543fad(0xfe)]();_0x22e542[_0x543fad(0x110)](_0x1b5ecf[_0x543fad(0x12d)]),_0x22e542[_0x543fad(0x118)](_0x1b5ecf[_0x543fad(0x12e)]);const _0x2849f3=_0x457f29[_0x543fad(0xf0)]();_0x2849f3[_0x543fad(0x109)](),_0x2849f3[_0x543fad(0xfd)](_0x22e542),_0x2eaa11[_0x543fad(0xff)](_0x543fad(0xf4)),_0x1b5ecf[_0x543fad(0x12a)]();}}}export class ContentFieldView extends _0x427ee2{constructor(_0x4ca1e4,_0x1afb51=''){const _0x44c2e6=_0xeba073;super(_0x4ca1e4),this[_0x44c2e6(0xf2)]=this[_0x44c2e6(0x104)](),this[_0x44c2e6(0xef)]({'tag':_0x44c2e6(0xe5),'attributes':{'class':['ck',_0x44c2e6(0x11b),_0x1afb51,_0x44c2e6(0x10e),_0x44c2e6(0x135)]}});}[_0xeba073(0x119)](_0x5aec9c){const _0x1b97bc=_0xeba073;this[_0x1b97bc(0x117)][_0x1b97bc(0x130)]=_0x5aec9c;}[_0xeba073(0x10b)](){const _0x61277=_0xeba073;this[_0x61277(0x117)][_0x61277(0x133)](this[_0x61277(0xf2)][_0x61277(0x117)]);}[_0xeba073(0x104)](){const _0x1b64b8=_0xeba073,_0x57490a=new _0x427ee2(),_0x102816=this[_0x1b64b8(0x10c)],_0x46e093=new _0x5b08df();return _0x46e093[_0x1b64b8(0x115)]=!0x0,_0x57490a[_0x1b64b8(0xef)]({'tag':_0x1b64b8(0xe5),'attributes':{'class':['ck',_0x1b64b8(0xfa)]},'children':[_0x46e093,{'text':_0x584aed(_0x102816,_0x1b64b8(0xe8))}]}),_0x57490a[_0x1b64b8(0x12c)](),_0x57490a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2c6e(_0x7aece5,_0x52ec97){const _0x53decc=_0x53de();return _0x2c6e=function(_0x2c6ef7,_0x56a18d){_0x2c6ef7=_0x2c6ef7-0x1ba;let _0x1bbaee=_0x53decc[_0x2c6ef7];return _0x1bbaee;},_0x2c6e(_0x7aece5,_0x52ec97);}(function(_0x2b4d86,_0x50a2ef){const _0x1de58f=_0x2c6e,_0x47caf3=_0x2b4d86();while(!![]){try{const _0x35bfb9=-parseInt(_0x1de58f(0x1bb))/0x1+parseInt(_0x1de58f(0x1ca))/0x2*(-parseInt(_0x1de58f(0x1c7))/0x3)+-parseInt(_0x1de58f(0x1cc))/0x4*(-parseInt(_0x1de58f(0x1c1))/0x5)+parseInt(_0x1de58f(0x1c3))/0x6*(-parseInt(_0x1de58f(0x1be))/0x7)+parseInt(_0x1de58f(0x1bf))/0x8+parseInt(_0x1de58f(0x1c4))/0x9*(parseInt(_0x1de58f(0x1c9))/0xa)+-parseInt(_0x1de58f(0x1c2))/0xb*(-parseInt(_0x1de58f(0x1bc))/0xc);if(_0x35bfb9===_0x50a2ef)break;else _0x47caf3['push'](_0x47caf3['shift']());}catch(_0x3c96c7){_0x47caf3['push'](_0x47caf3['shift']());}}}(_0x53de,0x9a51b));import{IconError as _0x437bbb}from'ckeditor5/src/icons.js';import{View as _0x29f5b5,IconView as _0x1475b2}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x29f5b5{constructor(_0x132dc0,_0x2a537a=''){const _0x49bbcf=_0x2c6e;super(_0x132dc0);const _0xd5968=new _0x1475b2(),_0x49908d=this[_0x49bbcf(0x1c6)];this[_0x49bbcf(0x1ba)](_0x49bbcf(0x1c5),_0x2a537a),_0xd5968[_0x49bbcf(0x1c8)]=_0x437bbb,this[_0x49bbcf(0x1c0)]({'tag':_0x49bbcf(0x1bd),'attributes':{'class':['ck',_0x49bbcf(0x1cb)]},'children':[_0xd5968,{'text':_0x49908d['to'](_0x49bbcf(0x1c5))}]});}}function _0x53de(){const _0x4d2388=['div','42KtyJzg','2770240LRfRio','setTemplate','5KjzAss','1138313GMsHVj','742902roGsln','1039086bZWemu','text','bindTemplate','2494911bqvRFH','content','70GRdkcx','2hLAXdV','ck-ai-form__error','962244XRLLcH','set','740634nvNWlD','180sWPlES'];_0x53de=function(){return _0x4d2388;};return _0x53de();}
23
+ function _0x314c(_0x22e7ed,_0x1842be){const _0x51008d=_0x5100();return _0x314c=function(_0x314c92,_0x95a788){_0x314c92=_0x314c92-0x197;let _0x291c5d=_0x51008d[_0x314c92];return _0x291c5d;},_0x314c(_0x22e7ed,_0x1842be);}(function(_0x43c3d2,_0x5040fc){const _0xfdea5b=_0x314c,_0x303f20=_0x43c3d2();while(!![]){try{const _0x1fef2b=-parseInt(_0xfdea5b(0x197))/0x1+parseInt(_0xfdea5b(0x1a1))/0x2+-parseInt(_0xfdea5b(0x1a5))/0x3+parseInt(_0xfdea5b(0x1a4))/0x4+parseInt(_0xfdea5b(0x19b))/0x5+-parseInt(_0xfdea5b(0x19c))/0x6+-parseInt(_0xfdea5b(0x1a0))/0x7*(-parseInt(_0xfdea5b(0x1a2))/0x8);if(_0x1fef2b===_0x5040fc)break;else _0x303f20['push'](_0x303f20['shift']());}catch(_0x23861e){_0x303f20['push'](_0x303f20['shift']());}}}(_0x5100,0x8c834));import{IconError as _0x3849fd}from'ckeditor5/src/icons.js';function _0x5100(){const _0xf0e4f3=['7IDlCXR','119488sdXlIf','10016704DUdZly','set','3545964xjrMLu','1333992gVZErs','638256rMLFOs','div','bindTemplate','text','121525JekCBS','3385008ZrIDQQ','setTemplate','ck-ai-form__error','content'];_0x5100=function(){return _0xf0e4f3;};return _0x5100();}import{View as _0x3eb9f7,IconView as _0x455b34}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x3eb9f7{constructor(_0x2eb429,_0x58b165=''){const _0x4a62f8=_0x314c;super(_0x2eb429);const _0x11027d=new _0x455b34(),_0x4d7ef2=this[_0x4a62f8(0x199)];this[_0x4a62f8(0x1a3)](_0x4a62f8(0x19a),_0x58b165),_0x11027d[_0x4a62f8(0x19f)]=_0x3849fd,this[_0x4a62f8(0x19d)]({'tag':_0x4a62f8(0x198),'attributes':{'class':['ck',_0x4a62f8(0x19e)]},'children':[_0x11027d,{'text':_0x4d7ef2['to'](_0x4a62f8(0x19a))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17da18=_0x184e;function _0x184e(_0x2007cf,_0x2755c8){const _0xb00477=_0xb004();return _0x184e=function(_0x184eb7,_0x74f1dd){_0x184eb7=_0x184eb7-0x12a;let _0x1ed9fc=_0xb00477[_0x184eb7];return _0x1ed9fc;},_0x184e(_0x2007cf,_0x2755c8);}function _0xb004(){const _0x168141=['focusLast','queryView','children','style','filteredView','locale','fieldView','submitButtonView','175606lNqUYx','focusableChildren','_createShowHistoryButton','element','530QLiGTQ','submit','History','1gJhRzA','keystrokes','isVisible','144988EpfJFm','excludeScrollbarsAndBorders','_createSubmitButton','isEnabled','isOn','showHistoryButtonView','30KuCaRA','update','width','maxRows','2485664pIDbDd','requestAnimationFrame','5881435iclxYo','add','focusCycler','right','minRows','resultsView','uiLanguageDirection','left','961872DqoJTA','bind','window','rtl','enter','value','isEmpty','577434YEFEOE','target','render','Submit','ck-ai-form__toggle-history','fieldWrapperChildren','execute','146727demqIO','set','fire','focus','ck-ai-form__submit','focusFirst'];_0xb004=function(){return _0x168141;};return _0xb004();}(function(_0x2d73aa,_0x262b36){const _0x33c323=_0x184e,_0x27eb16=_0x2d73aa();while(!![]){try{const _0x6dc766=parseInt(_0x33c323(0x150))/0x1*(-parseInt(_0x33c323(0x149))/0x2)+-parseInt(_0x33c323(0x134))/0x3+-parseInt(_0x33c323(0x153))/0x4*(-parseInt(_0x33c323(0x159))/0x5)+parseInt(_0x33c323(0x12d))/0x6+-parseInt(_0x33c323(0x15f))/0x7+parseInt(_0x33c323(0x15d))/0x8+-parseInt(_0x33c323(0x13b))/0x9*(-parseInt(_0x33c323(0x14d))/0xa);if(_0x6dc766===_0x262b36)break;else _0x27eb16['push'](_0x27eb16['shift']());}catch(_0x28789d){_0x27eb16['push'](_0x27eb16['shift']());}}}(_0xb004,0x697cb));import{Rect as _0x4e363b,global as _0x229f65,isVisible as _0x3a730d}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x576fb9,IconSubmit as _0x54139e}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x4c14ed,ButtonView as _0x2a3ada}from'ckeditor5/src/ui.js';import{getTranslation as _0x3db4e3}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x4c14ed{[_0x17da18(0x148)];[_0x17da18(0x158)];constructor(_0x3d8545,_0x40f3be){const _0x5be9ab=_0x17da18;super(_0x3d8545,_0x40f3be),this[_0x5be9ab(0x142)][_0x5be9ab(0x147)][_0x5be9ab(0x163)]=0x1,this[_0x5be9ab(0x142)][_0x5be9ab(0x147)][_0x5be9ab(0x15c)]=0x3,this[_0x5be9ab(0x148)]=this[_0x5be9ab(0x155)](),this[_0x5be9ab(0x158)]=this[_0x5be9ab(0x14b)](),this[_0x5be9ab(0x14a)][_0x5be9ab(0x160)](this[_0x5be9ab(0x158)],0x1),this[_0x5be9ab(0x14a)][_0x5be9ab(0x160)](this[_0x5be9ab(0x148)]);}[_0x17da18(0x136)](){const _0x2504d0=_0x17da18;super[_0x2504d0(0x136)](),this[_0x2504d0(0x142)][_0x2504d0(0x139)][_0x2504d0(0x160)](this[_0x2504d0(0x158)]),this[_0x2504d0(0x143)][_0x2504d0(0x160)](this[_0x2504d0(0x148)]),this[_0x2504d0(0x151)][_0x2504d0(0x13c)](_0x2504d0(0x131),(_0x50e9e3,_0x496a39)=>{const _0x5abb35=_0x2504d0;_0x50e9e3[_0x5abb35(0x135)]==this[_0x5abb35(0x142)][_0x5abb35(0x147)][_0x5abb35(0x14c)]&&(this[_0x5abb35(0x14e)](),_0x496a39());});}[_0x17da18(0x155)](){const _0x4f9da4=_0x17da18,_0x3dbfd4=new _0x2a3ada(this[_0x4f9da4(0x146)]),_0x21ae71=this[_0x4f9da4(0x146)];return _0x3dbfd4[_0x4f9da4(0x13c)]({'icon':_0x54139e,'label':_0x3db4e3(_0x21ae71,_0x4f9da4(0x137)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x4f9da4(0x13f)}),_0x3dbfd4['on'](_0x4f9da4(0x13a),()=>{const _0x44f45a=_0x4f9da4;this[_0x44f45a(0x14e)]();}),_0x3dbfd4[_0x4f9da4(0x12e)](_0x4f9da4(0x156))['to'](this[_0x4f9da4(0x142)][_0x4f9da4(0x147)],_0x4f9da4(0x133),this,_0x4f9da4(0x156),(_0x4483c3,_0x3840b6)=>!_0x4483c3&&_0x3840b6),_0x3dbfd4;}[_0x17da18(0x14b)](){const _0x171013=_0x17da18,_0x440bb0=new _0x2a3ada(this[_0x171013(0x146)]),_0x340514=this[_0x171013(0x12a)],_0x364c0a=this[_0x171013(0x146)];_0x440bb0[_0x171013(0x13c)]({'label':_0x3db4e3(_0x364c0a,_0x171013(0x14f)),'withText':!0x1,'icon':_0x576fb9,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x171013(0x138)}),_0x440bb0[_0x171013(0x12e)](_0x171013(0x157))['to'](_0x340514,_0x171013(0x152)),_0x440bb0[_0x171013(0x12e)](_0x171013(0x156))['to'](this,_0x171013(0x156)),_0x440bb0['on'](_0x171013(0x13a),()=>{const _0x5282e3=_0x171013;_0x340514[_0x5282e3(0x152)]=!_0x340514[_0x5282e3(0x152)],_0x340514[_0x5282e3(0x152)]?this[_0x5282e3(0x145)][_0x5282e3(0x13e)]():this[_0x5282e3(0x13e)]();});const _0x363596=()=>{const _0x24d03a=_0x171013;_0x229f65[_0x24d03a(0x12f)][_0x24d03a(0x15e)](()=>{const _0x343363=_0x24d03a;if(_0x3a730d(this[_0x343363(0x14c)])){const _0x589115=new _0x4e363b(this[_0x343363(0x142)][_0x343363(0x147)][_0x343363(0x14c)]),_0x435b8b=_0x589115[_0x343363(0x15b)],_0x531ed5=_0x343363(0x130)===_0x364c0a[_0x343363(0x12b)]?_0x343363(0x12c):_0x343363(0x162);_0x589115[_0x343363(0x154)](),_0x440bb0[_0x343363(0x14c)][_0x343363(0x144)][_0x531ed5]=_0x435b8b-_0x589115[_0x343363(0x15b)]+0x1+'px';}});};return this[_0x171013(0x142)][_0x171013(0x147)]['on'](_0x171013(0x15a),_0x363596),this['on'](_0x171013(0x136),_0x363596),_0x440bb0;}[_0x17da18(0x14e)](){const _0x1f652d=_0x17da18,_0x3668d7=this[_0x1f652d(0x142)][_0x1f652d(0x147)][_0x1f652d(0x14c)][_0x1f652d(0x132)];this[_0x1f652d(0x13d)](_0x1f652d(0x14e),_0x3668d7);}[_0x17da18(0x13e)](_0x5be7d2){const _0x3a3d8d=_0x17da18;-0x1===_0x5be7d2?this[_0x3a3d8d(0x161)][_0x3a3d8d(0x141)]():this[_0x3a3d8d(0x161)][_0x3a3d8d(0x140)]();}}
23
+ const _0x3d5d01=_0x419c;(function(_0xa7ed93,_0x5f44f2){const _0x4a2cef=_0x419c,_0x5b28b3=_0xa7ed93();while(!![]){try{const _0x43a7a4=parseInt(_0x4a2cef(0x89))/0x1*(parseInt(_0x4a2cef(0xa7))/0x2)+parseInt(_0x4a2cef(0x87))/0x3*(-parseInt(_0x4a2cef(0x80))/0x4)+-parseInt(_0x4a2cef(0xa8))/0x5*(parseInt(_0x4a2cef(0x7f))/0x6)+parseInt(_0x4a2cef(0xa6))/0x7+parseInt(_0x4a2cef(0xb2))/0x8+parseInt(_0x4a2cef(0xb7))/0x9*(parseInt(_0x4a2cef(0xa4))/0xa)+-parseInt(_0x4a2cef(0x8f))/0xb;if(_0x43a7a4===_0x5f44f2)break;else _0x5b28b3['push'](_0x5b28b3['shift']());}catch(_0x410b34){_0x5b28b3['push'](_0x5b28b3['shift']());}}}(_0x2c56,0xbc02b));function _0x419c(_0x387dfa,_0x5711fe){const _0x2c568c=_0x2c56();return _0x419c=function(_0x419c05,_0x29e80c){_0x419c05=_0x419c05-0x7d;let _0xbaf79=_0x2c568c[_0x419c05];return _0xbaf79;},_0x419c(_0x387dfa,_0x5711fe);}import{Rect as _0x15a225,global as _0x4c92db,isVisible as _0x450a11}from'ckeditor5/src/utils.js';function _0x2c56(){const _0x37d77c=['focusFirst','excludeScrollbarsAndBorders','ck-ai-form__toggle-history','resultsView','update','children','right','focusLast','fieldWrapperChildren','10986616FYcgzk','enter','_createShowHistoryButton','style','fieldView','4487976KcLOnc','showHistoryButtonView','queryView','3719694ahePSW','92YcegLK','keystrokes','submitButtonView','minRows','focus','submit','rtl','60177JPTnop','filteredView','5GFfzMa','isEnabled','fire','Submit','maxRows','left','16792446eDHRCY','target','uiLanguageDirection','bind','focusableChildren','_createSubmitButton','window','isOn','render','History','locale','width','add','set','focusCycler','ck-ai-form__submit','execute','isEmpty','value','requestAnimationFrame','isVisible','30ufTfZo','element','856016jIFaiS','402530VHZVHT','10KVjzFm'];_0x2c56=function(){return _0x37d77c;};return _0x2c56();}import{IconAIHistory as _0x12f33f,IconSubmit as _0x2b907d}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x59e11b,ButtonView as _0x29fc7e}from'ckeditor5/src/ui.js';import{getTranslation as _0x35e943}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x59e11b{[_0x3d5d01(0x82)];[_0x3d5d01(0x7d)];constructor(_0x10bfe1,_0x1a6aab){const _0x14c2ce=_0x3d5d01;super(_0x10bfe1,_0x1a6aab),this[_0x14c2ce(0x7e)][_0x14c2ce(0xb6)][_0x14c2ce(0x83)]=0x1,this[_0x14c2ce(0x7e)][_0x14c2ce(0xb6)][_0x14c2ce(0x8d)]=0x3,this[_0x14c2ce(0x82)]=this[_0x14c2ce(0x94)](),this[_0x14c2ce(0x7d)]=this[_0x14c2ce(0xb4)](),this[_0x14c2ce(0x93)][_0x14c2ce(0x9b)](this[_0x14c2ce(0x7d)],0x1),this[_0x14c2ce(0x93)][_0x14c2ce(0x9b)](this[_0x14c2ce(0x82)]);}[_0x3d5d01(0x97)](){const _0x2a33d6=_0x3d5d01;super[_0x2a33d6(0x97)](),this[_0x2a33d6(0x7e)][_0x2a33d6(0xb1)][_0x2a33d6(0x9b)](this[_0x2a33d6(0x7d)]),this[_0x2a33d6(0xae)][_0x2a33d6(0x9b)](this[_0x2a33d6(0x82)]),this[_0x2a33d6(0x81)][_0x2a33d6(0x9c)](_0x2a33d6(0xb3),(_0x295113,_0x2ce242)=>{const _0x4193a9=_0x2a33d6;_0x295113[_0x4193a9(0x90)]==this[_0x4193a9(0x7e)][_0x4193a9(0xb6)][_0x4193a9(0xa5)]&&(this[_0x4193a9(0x85)](),_0x2ce242());});}[_0x3d5d01(0x94)](){const _0x691868=_0x3d5d01,_0xdcd202=new _0x29fc7e(this[_0x691868(0x99)]),_0x37f162=this[_0x691868(0x99)];return _0xdcd202[_0x691868(0x9c)]({'icon':_0x2b907d,'label':_0x35e943(_0x37f162,_0x691868(0x8c)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x691868(0x9e)}),_0xdcd202['on'](_0x691868(0x9f),()=>{const _0x280b1c=_0x691868;this[_0x280b1c(0x85)]();}),_0xdcd202[_0x691868(0x92)](_0x691868(0x8a))['to'](this[_0x691868(0x7e)][_0x691868(0xb6)],_0x691868(0xa0),this,_0x691868(0x8a),(_0x3e5698,_0xc92512)=>!_0x3e5698&&_0xc92512),_0xdcd202;}[_0x3d5d01(0xb4)](){const _0x44fd52=_0x3d5d01,_0x4ce2bb=new _0x29fc7e(this[_0x44fd52(0x99)]),_0x1f558c=this[_0x44fd52(0xac)],_0x113c80=this[_0x44fd52(0x99)];_0x4ce2bb[_0x44fd52(0x9c)]({'label':_0x35e943(_0x113c80,_0x44fd52(0x98)),'withText':!0x1,'icon':_0x12f33f,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x44fd52(0xab)}),_0x4ce2bb[_0x44fd52(0x92)](_0x44fd52(0x96))['to'](_0x1f558c,_0x44fd52(0xa3)),_0x4ce2bb[_0x44fd52(0x92)](_0x44fd52(0x8a))['to'](this,_0x44fd52(0x8a)),_0x4ce2bb['on'](_0x44fd52(0x9f),()=>{const _0x1b7813=_0x44fd52;_0x1f558c[_0x1b7813(0xa3)]=!_0x1f558c[_0x1b7813(0xa3)],_0x1f558c[_0x1b7813(0xa3)]?this[_0x1b7813(0x88)][_0x1b7813(0x84)]():this[_0x1b7813(0x84)]();});const _0x3cc64d=()=>{const _0x1ee306=_0x44fd52;_0x4c92db[_0x1ee306(0x95)][_0x1ee306(0xa2)](()=>{const _0x44a9ad=_0x1ee306;if(_0x450a11(this[_0x44a9ad(0xa5)])){const _0x90d29e=new _0x15a225(this[_0x44a9ad(0x7e)][_0x44a9ad(0xb6)][_0x44a9ad(0xa5)]),_0x2edcb3=_0x90d29e[_0x44a9ad(0x9a)],_0x831b8c=_0x44a9ad(0x86)===_0x113c80[_0x44a9ad(0x91)]?_0x44a9ad(0x8e):_0x44a9ad(0xaf);_0x90d29e[_0x44a9ad(0xaa)](),_0x4ce2bb[_0x44a9ad(0xa5)][_0x44a9ad(0xb5)][_0x831b8c]=_0x2edcb3-_0x90d29e[_0x44a9ad(0x9a)]+0x1+'px';}});};return this[_0x44fd52(0x7e)][_0x44fd52(0xb6)]['on'](_0x44fd52(0xad),_0x3cc64d),this['on'](_0x44fd52(0x97),_0x3cc64d),_0x4ce2bb;}[_0x3d5d01(0x85)](){const _0x450bfc=_0x3d5d01,_0x165987=this[_0x450bfc(0x7e)][_0x450bfc(0xb6)][_0x450bfc(0xa5)][_0x450bfc(0xa1)];this[_0x450bfc(0x8b)](_0x450bfc(0x85),_0x165987);}[_0x3d5d01(0x84)](_0x3cb236){const _0x377d0c=_0x3d5d01;-0x1===_0x3cb236?this[_0x377d0c(0x9d)][_0x377d0c(0xb0)]():this[_0x377d0c(0x9d)][_0x377d0c(0xa9)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x529eb4=_0x4dfe;(function(_0x2f2bf5,_0x25a88d){const _0x29abbb=_0x4dfe,_0x504580=_0x2f2bf5();while(!![]){try{const _0x40834f=-parseInt(_0x29abbb(0x173))/0x1*(-parseInt(_0x29abbb(0x16e))/0x2)+-parseInt(_0x29abbb(0x16a))/0x3*(-parseInt(_0x29abbb(0x17f))/0x4)+parseInt(_0x29abbb(0x172))/0x5*(parseInt(_0x29abbb(0x164))/0x6)+-parseInt(_0x29abbb(0x178))/0x7*(-parseInt(_0x29abbb(0x17e))/0x8)+-parseInt(_0x29abbb(0x166))/0x9+-parseInt(_0x29abbb(0x175))/0xa*(-parseInt(_0x29abbb(0x163))/0xb)+-parseInt(_0x29abbb(0x15a))/0xc;if(_0x40834f===_0x25a88d)break;else _0x504580['push'](_0x504580['shift']());}catch(_0x596820){_0x504580['push'](_0x504580['shift']());}}}(_0x104e,0x62152));import{ToolbarView as _0xa0ab08,ButtonView as _0x401a58}from'ckeditor5/src/ui.js';import{getTranslation as _0x4a7238}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x529eb4(0x15f),'INSERT':_0x529eb4(0x16c)};export class AIFormToolbarView extends _0xa0ab08{constructor(_0xd31017){const _0x2c61dc=_0x529eb4;super(_0xd31017),this[_0x2c61dc(0x17d)](_0x2c61dc(0x160),!0x1),this[_0x2c61dc(0x17d)](_0x2c61dc(0x165),AIFormToolbarViewMainActionLabel[_0x2c61dc(0x161)]),this[_0x2c61dc(0x162)]=this[_0x2c61dc(0x177)]('',_0x2c61dc(0x15c)),this[_0x2c61dc(0x162)][_0x2c61dc(0x159)](_0x2c61dc(0x15d))['to'](this,_0x2c61dc(0x165),_0x25c0d1=>_0x4a7238(_0xd31017,_0x2c61dc(0x16b)+_0x25c0d1[_0x2c61dc(0x16d)]()+_0x2c61dc(0x171))),this[_0x2c61dc(0x16f)]=this[_0x2c61dc(0x177)](_0x4a7238(_0xd31017,_0x2c61dc(0x168))),this[_0x2c61dc(0x15b)]=this[_0x2c61dc(0x177)](_0x4a7238(_0xd31017,_0x2c61dc(0x15e))),this[_0x2c61dc(0x176)]=this[_0x2c61dc(0x177)](_0x4a7238(_0xd31017,_0x2c61dc(0x17b)));const _0x1ae1de=this[_0x2c61dc(0x167)];this[_0x2c61dc(0x179)]({'attributes':{'class':[_0x2c61dc(0x174),_0x1ae1de['if'](_0x2c61dc(0x160),_0x2c61dc(0x17c),_0x241b32=>!_0x241b32)]}}),this[_0x2c61dc(0x17a)][_0x2c61dc(0x170)]([this[_0x2c61dc(0x162)],this[_0x2c61dc(0x16f)],this[_0x2c61dc(0x15b)],this[_0x2c61dc(0x176)]]);}[_0x529eb4(0x177)](_0x101348,_0xd51d9e){const _0x1a1f78=_0x529eb4,_0x27ccac=new _0x401a58(this[_0x1a1f78(0x169)]);return _0x27ccac[_0x1a1f78(0x17d)]({'label':_0x101348,'class':_0xd51d9e||'','isVisible':!0x0,'withText':!0x0}),_0x27ccac;}}function _0x4dfe(_0x387681,_0x1439c4){const _0x104e6=_0x104e();return _0x4dfe=function(_0x4dfec6,_0x528f01){_0x4dfec6=_0x4dfec6-0x159;let _0x310e58=_0x104e6[_0x4dfec6];return _0x310e58;},_0x4dfe(_0x387681,_0x1439c4);}function _0x104e(){const _0x16ae2c=['insertButton','addMany','_CONTENT','232835wrpyuC','632345Icalto','ck-ai-form__toolbar','2336830pTqeID','stopButton','_createButton','973uHGcZY','extendTemplate','items','Stop','ck-hidden','set','34264PlEMud','8jCgIVG','bind','14055252RoZLhn','tryAgainButton','ck-button-action','label','Try\x20again','replace','isVisible','REPLACE','replaceButton','33hObenP','42YaVmvP','mainAction','6939135ELHfKD','bindTemplate','Insert\x20below','locale','133998TrWPae','AI_','insert','toUpperCase','2nBJdQE'];_0x104e=function(){return _0x16ae2c;};return _0x104e();}
23
+ function _0x4989(){const _0x2b4f76=['15240020pxdJdg','AI_','836965UZYELe','bindTemplate','extendTemplate','1075739uzDDKt','bind','48wPBJZN','2LKqXpk','label','Try\x20again','insertButton','replace','8402634HAlYcg','isVisible','5798832eWjbmc','ck-button-action','16pCyVil','Stop','_CONTENT','items','locale','set','toUpperCase','REPLACE','insert','stopButton','mainAction','ck-ai-form__toolbar','_createButton','111442dDKEaf','addMany','2120124mTgqxF','tryAgainButton','ck-hidden','replaceButton','Insert\x20below'];_0x4989=function(){return _0x2b4f76;};return _0x4989();}const _0x55784e=_0x21eb;(function(_0x24e213,_0x2632ac){const _0x26bb56=_0x21eb,_0x287be3=_0x24e213();while(!![]){try{const _0x5e6008=parseInt(_0x26bb56(0x8b))/0x1*(-parseInt(_0x26bb56(0xa1))/0x2)+-parseInt(_0x26bb56(0x7e))/0x3+parseInt(_0x26bb56(0x94))/0x4*(parseInt(_0x26bb56(0x85))/0x5)+parseInt(_0x26bb56(0x92))/0x6+parseInt(_0x26bb56(0x88))/0x7*(-parseInt(_0x26bb56(0x8a))/0x8)+-parseInt(_0x26bb56(0x90))/0x9+parseInt(_0x26bb56(0x83))/0xa;if(_0x5e6008===_0x2632ac)break;else _0x287be3['push'](_0x287be3['shift']());}catch(_0x13509e){_0x287be3['push'](_0x287be3['shift']());}}}(_0x4989,0x76b40));import{ToolbarView as _0x1ef501,ButtonView as _0x22e36f}from'ckeditor5/src/ui.js';import{getTranslation as _0x454cd0}from'../../utils/common-translations.js';function _0x21eb(_0x44e952,_0x2edc8d){const _0x498941=_0x4989();return _0x21eb=function(_0x21eb3f,_0x5005ec){_0x21eb3f=_0x21eb3f-0x7d;let _0x5e1cd2=_0x498941[_0x21eb3f];return _0x5e1cd2;},_0x21eb(_0x44e952,_0x2edc8d);}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x55784e(0x8f),'INSERT':_0x55784e(0x9c)};export class AIFormToolbarView extends _0x1ef501{constructor(_0x279826){const _0xcd8c14=_0x55784e;super(_0x279826),this[_0xcd8c14(0x99)](_0xcd8c14(0x91),!0x1),this[_0xcd8c14(0x99)](_0xcd8c14(0x9e),AIFormToolbarViewMainActionLabel[_0xcd8c14(0x9b)]),this[_0xcd8c14(0x81)]=this[_0xcd8c14(0xa0)]('',_0xcd8c14(0x93)),this[_0xcd8c14(0x81)][_0xcd8c14(0x89)](_0xcd8c14(0x8c))['to'](this,_0xcd8c14(0x9e),_0x8c197f=>_0x454cd0(_0x279826,_0xcd8c14(0x84)+_0x8c197f[_0xcd8c14(0x9a)]()+_0xcd8c14(0x96))),this[_0xcd8c14(0x8e)]=this[_0xcd8c14(0xa0)](_0x454cd0(_0x279826,_0xcd8c14(0x82))),this[_0xcd8c14(0x7f)]=this[_0xcd8c14(0xa0)](_0x454cd0(_0x279826,_0xcd8c14(0x8d))),this[_0xcd8c14(0x9d)]=this[_0xcd8c14(0xa0)](_0x454cd0(_0x279826,_0xcd8c14(0x95)));const _0x41d166=this[_0xcd8c14(0x86)];this[_0xcd8c14(0x87)]({'attributes':{'class':[_0xcd8c14(0x9f),_0x41d166['if'](_0xcd8c14(0x91),_0xcd8c14(0x80),_0x301293=>!_0x301293)]}}),this[_0xcd8c14(0x97)][_0xcd8c14(0x7d)]([this[_0xcd8c14(0x81)],this[_0xcd8c14(0x8e)],this[_0xcd8c14(0x7f)],this[_0xcd8c14(0x9d)]]);}[_0x55784e(0xa0)](_0x5b32de,_0x173981){const _0x22e1fa=_0x55784e,_0x5d9892=new _0x22e36f(this[_0x22e1fa(0x98)]);return _0x5d9892[_0x22e1fa(0x99)]({'label':_0x5b32de,'class':_0x173981||'','isVisible':!0x0,'withText':!0x0}),_0x5d9892;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2480a5=_0x4380;(function(_0x173f92,_0xef5afc){const _0x5b74fc=_0x4380,_0x391300=_0x173f92();while(!![]){try{const _0x31cbd3=parseInt(_0x5b74fc(0xd8))/0x1*(parseInt(_0x5b74fc(0xe9))/0x2)+parseInt(_0x5b74fc(0xd4))/0x3*(parseInt(_0x5b74fc(0xd0))/0x4)+parseInt(_0x5b74fc(0xf3))/0x5*(-parseInt(_0x5b74fc(0x10c))/0x6)+parseInt(_0x5b74fc(0xd6))/0x7*(parseInt(_0x5b74fc(0x10f))/0x8)+-parseInt(_0x5b74fc(0xda))/0x9+-parseInt(_0x5b74fc(0xcc))/0xa+parseInt(_0x5b74fc(0xbd))/0xb;if(_0x31cbd3===_0xef5afc)break;else _0x391300['push'](_0x391300['shift']());}catch(_0x4a4d8d){_0x391300['push'](_0x391300['shift']());}}}(_0x136c,0x23c9e));import{FocusTracker as _0xf76388,KeystrokeHandler as _0x400e5a}from'ckeditor5/src/utils.js';import{View as _0x38b38e,FocusCycler as _0x5237f5,createLabeledTextarea as _0x3671fe}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3de244,AIFormToolbarViewMainActionLabel as _0x46b7ef}from'./aiformtoolbarview.js';function _0x4380(_0x5a3181,_0x3afa95){const _0x136c61=_0x136c();return _0x4380=function(_0x43809f,_0x370a8d){_0x43809f=_0x43809f-0xba;let _0x1d27d8=_0x136c61[_0x43809f];return _0x1d27d8;},_0x4380(_0x5a3181,_0x3afa95);}import{AIFormContentArea as _0xa974a1}from'./aiformcontentarea.js';import{AIFormErrorView as _0x21ea81}from'./aiformerrorview.js';import{AIFormPromptView as _0x4f40b1}from'./aiformpromptview.js';function _0x136c(){const _0x2f6462=['2263626mVKWlK','shift\x20+\x20tab','div','insertContentBelow','clear','fieldView','set','errorView','reset','value','isProcessing','keystrokes','submit','fire','replaceButton','2974XsviYF','trim','element','_promptHistory','focus','focusTracker','replaceContent','_focusables','submitPrompt','tryAgainButton','281340veBXlH','bindTemplate','_createHistoryView','AI_ERROR_FAILED','Empty\x20history','stopButton','createCollection','focusCycler','isVisible','execute','chain','Ask\x20AI\x20to\x20improve\x20generated\x20text','label','copyButtonView','setTemplate','tab','REPLACE','prompt','_createToolbar','clearHistory','_createPromptView','handleError','ck-ai-form','promptView','isEnabled','12pLJunw','mainAction','historyGroupView','111736gSqrgC','stopProcessing','contentArea','high','3485757YwNksY','locale','insertButton','render','isError','text','bind','focusLast','queryView','tryAgainEvent','bindTo','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','Ask\x20AI\x20to\x20edit\x20or\x20generate','listenTo','add','1430650ZyeRAq','items','ck-hidden','toolbar','8cepwxc','delegate','finishProcessing','startProcessing','104694iWaHUa','search','28QVRfPa','focusFirst','142CBMMNk','ck-ai-form-content'];_0x136c=function(){return _0x2f6462;};return _0x136c();}import{AIHistoryListView as _0x17d3e1}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x4f19f7}from'./aihistorylistitemview.js';import{PromptHistory as _0x44f2a3}from'./prompthistory.js';import{getTranslation as _0x47d7cc}from'../../utils/common-translations.js';import{escape as _0x14554b}from'es-toolkit/compat';export class AIFormView extends _0x38b38e{[_0x2480a5(0xee)];[_0x2480a5(0xe5)];[_0x2480a5(0xbb)];[_0x2480a5(0xcf)];[_0x2480a5(0x10a)];[_0x2480a5(0xe1)];[_0x2480a5(0xf0)];[_0x2480a5(0xfa)];[_0x2480a5(0xec)];constructor(_0x16e9b9,_0x38a931,_0x4ab1e7=''){const _0xd40975=_0x2480a5;super(_0x16e9b9),this[_0xd40975(0xe0)](_0xd40975(0x10b),!0x0),this[_0xd40975(0xe0)](_0xd40975(0xe4),!0x1),this[_0xd40975(0xe0)](_0xd40975(0x104),''),this[_0xd40975(0xe0)](_0xd40975(0xe3),''),this[_0xd40975(0xe0)](_0xd40975(0xc1),!0x1),this[_0xd40975(0xe0)](_0xd40975(0x10d),_0x46b7ef[_0xd40975(0x103)]),this[_0xd40975(0xec)]=new _0x44f2a3(),this[_0xd40975(0xe1)]=new _0x21ea81(_0x16e9b9),this[_0xd40975(0xbb)]=new _0xa974a1(_0x16e9b9,_0x4ab1e7),this[_0xd40975(0xbb)][_0xd40975(0xc3)](_0xd40975(0xe4))['to'](this),this[_0xd40975(0xbb)][_0xd40975(0xc3)](_0xd40975(0xe3))['to'](this),this[_0xd40975(0xcf)]=this[_0xd40975(0x105)](),this[_0xd40975(0xcf)][_0xd40975(0xc3)](_0xd40975(0x10d))['to'](this),this[_0xd40975(0x10a)]=this[_0xd40975(0x107)](),this[_0xd40975(0xee)]=new _0xf76388(),this[_0xd40975(0xe5)]=new _0x400e5a(),this[_0xd40975(0xf0)]=this[_0xd40975(0xf9)]([this[_0xd40975(0xbb)],this[_0xd40975(0xbb)][_0xd40975(0x100)],this[_0xd40975(0xcf)],this[_0xd40975(0x10a)]]),this[_0xd40975(0xfa)]=new _0x5237f5({'focusables':this[_0xd40975(0xf0)],'focusTracker':this[_0xd40975(0xee)],'keystrokeHandler':this[_0xd40975(0xe5)],'actions':{'focusPrevious':_0xd40975(0xdb),'focusNext':_0xd40975(0x102)}}),this[_0xd40975(0xfa)][_0xd40975(0xfd)](this[_0xd40975(0x10a)][_0xd40975(0xfa)]),this[_0xd40975(0x10a)][_0xd40975(0xc5)][_0xd40975(0xdf)][_0xd40975(0xc3)](_0xd40975(0xe3))['to'](this,_0xd40975(0x104));const _0x43c049=this[_0xd40975(0xf4)];this[_0xd40975(0x101)]({'tag':_0xd40975(0xdc),'attributes':{'class':['ck',_0xd40975(0x109),_0x38a931],'tabindex':'-1'},'children':[{'tag':_0xd40975(0xdc),'attributes':{'class':['ck',_0xd40975(0xd9)]},'children':[{'tag':_0xd40975(0xdc),'attributes':{'class':[_0x43c049['if'](_0xd40975(0xc1),_0xd40975(0xce),_0x3c6fa1=>!_0x3c6fa1)]},'children':[this[_0xd40975(0xe1)]]},this[_0xd40975(0xbb)],this[_0xd40975(0xcf)],this[_0xd40975(0x10a)]]}]});}[_0x2480a5(0xc0)](){const _0x1dba43=_0x2480a5;super[_0x1dba43(0xc0)](),this[_0x1dba43(0xee)][_0x1dba43(0xcb)](this[_0x1dba43(0xbb)][_0x1dba43(0xeb)]),this[_0x1dba43(0xee)][_0x1dba43(0xcb)](this[_0x1dba43(0xbb)][_0x1dba43(0x100)][_0x1dba43(0xeb)]),this[_0x1dba43(0xee)][_0x1dba43(0xcb)](this[_0x1dba43(0xcf)][_0x1dba43(0xeb)]),this[_0x1dba43(0xee)][_0x1dba43(0xcb)](this[_0x1dba43(0x10a)][_0x1dba43(0xeb)]),this[_0x1dba43(0xe5)][_0x1dba43(0xca)](this[_0x1dba43(0xeb)]);}[_0x2480a5(0xed)](_0xaa2ad0=0x1){const _0x34beec=_0x2480a5;-0x1===_0xaa2ad0?this[_0x34beec(0xfa)][_0x34beec(0xc4)]():this[_0x34beec(0xfa)][_0x34beec(0xd7)]();}[_0x2480a5(0xe2)](){const _0x487b70=_0x2480a5;this[_0x487b70(0x104)]='',this[_0x487b70(0xe3)]='',this[_0x487b70(0xc1)]=!0x1,this[_0x487b70(0x10a)][_0x487b70(0xe2)](),this[_0x487b70(0xbb)][_0x487b70(0xfb)]=!0x1,this[_0x487b70(0xcf)][_0x487b70(0xfb)]=!0x1;}[_0x2480a5(0x107)](){const _0x32975e=_0x2480a5,_0x4feb75=this[_0x32975e(0xbe)],_0x177fe9=new _0x4f40b1(_0x4feb75,{'queryView':{'label':_0x47d7cc(_0x4feb75,_0x32975e(0xc9)),'creator':_0x3671fe,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x47d7cc(_0x4feb75,_0x32975e(0xf7)),'secondary':_0x47d7cc(_0x4feb75,_0x32975e(0xc8))}}},'filteredView':this[_0x32975e(0xf5)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x177fe9[_0x32975e(0xc3)](_0x32975e(0x10b))['to'](this,_0x32975e(0x10b),this,_0x32975e(0xe4),(_0xef3332,_0x5e6cec)=>_0xef3332&&!_0x5e6cec),this[_0x32975e(0xca)](_0x177fe9,_0x32975e(0xe6),(_0x58ac89,_0x8a5e0f)=>{const _0x16ac04=_0x32975e;this[_0x16ac04(0x104)]=_0x8a5e0f;const _0x1df278=_0x14554b(_0x8a5e0f);this[_0x16ac04(0xe7)](_0x16ac04(0xf1),_0x1df278),_0x8a5e0f[_0x16ac04(0xea)]()&&this[_0x16ac04(0xec)][_0x16ac04(0xcb)]({'prompt':_0x1df278},0x0);},{'priority':_0x32975e(0xbc)}),_0x177fe9;}[_0x2480a5(0xf5)](){const _0x5ba13b=_0x2480a5,_0x23a40a=new _0x17d3e1(this[_0x5ba13b(0xbe)]);return _0x23a40a[_0x5ba13b(0x10e)][_0x5ba13b(0xcd)][_0x5ba13b(0xc7)](this[_0x5ba13b(0xec)])['as'](_0x4f19f7),_0x23a40a['on'](_0x5ba13b(0x106),()=>{const _0xa9e901=_0x5ba13b;this[_0xa9e901(0xec)][_0xa9e901(0xde)](),this[_0xa9e901(0x10a)][_0xa9e901(0xd5)](''),this[_0xa9e901(0x10a)][_0xa9e901(0xed)]();}),_0x23a40a;}[_0x2480a5(0x105)](){const _0x6dc332=_0x2480a5,_0xbaf34=new _0x3de244(this[_0x6dc332(0xbe)]);return _0xbaf34[_0x6dc332(0xe8)][_0x6dc332(0xc3)](_0x6dc332(0x10b))['to'](this,_0x6dc332(0x10b),this,_0x6dc332(0xe4),this,_0x6dc332(0xe3),(_0x526b5e,_0x43dc16,_0x1e28dd)=>_0x526b5e&&!_0x43dc16&&!!_0x1e28dd),_0xbaf34[_0x6dc332(0xe8)][_0x6dc332(0xd1)](_0x6dc332(0xfc))['to'](this,_0x6dc332(0xef)),_0xbaf34[_0x6dc332(0xbf)][_0x6dc332(0xc3)](_0x6dc332(0x10b))['to'](this,_0x6dc332(0x10b),this,_0x6dc332(0xe4),this,_0x6dc332(0xe3),(_0x13cc4f,_0xb593f5,_0x542ae5)=>_0x13cc4f&&!_0xb593f5&&!!_0x542ae5),_0xbaf34[_0x6dc332(0xbf)][_0x6dc332(0xd1)](_0x6dc332(0xfc))['to'](this,_0x6dc332(0xdd)),_0xbaf34[_0x6dc332(0xf2)][_0x6dc332(0xc3)](_0x6dc332(0x10b))['to'](this,_0x6dc332(0x10b),this,_0x6dc332(0xe4),(_0x4d5eb8,_0x395f65)=>_0x4d5eb8&&!_0x395f65),_0xbaf34[_0x6dc332(0xf2)][_0x6dc332(0xd1)](_0x6dc332(0xfc))['to'](this,_0x6dc332(0xc6)),_0xbaf34[_0x6dc332(0xf8)][_0x6dc332(0xc3)](_0x6dc332(0x10b))['to'](this,_0x6dc332(0xe4)),_0xbaf34[_0x6dc332(0xf8)][_0x6dc332(0xd1)](_0x6dc332(0xfc))['to'](this,_0x6dc332(0xba)),_0xbaf34;}[_0x2480a5(0xd3)](){const _0x1fdd6d=_0x2480a5;this[_0x1fdd6d(0xe3)]='',this[_0x1fdd6d(0xc1)]=!0x1,this[_0x1fdd6d(0xe4)]=!0x0,this[_0x1fdd6d(0xbb)][_0x1fdd6d(0xfb)]=!0x0,this[_0x1fdd6d(0xcf)][_0x1fdd6d(0xfb)]=!0x0,this[_0x1fdd6d(0xbb)][_0x1fdd6d(0xed)]();}[_0x2480a5(0xd2)](){const _0x3c83dd=_0x2480a5,_0xcc0c5f=this[_0x3c83dd(0xbe)];this[_0x3c83dd(0xe4)]=!0x1,this[_0x3c83dd(0x104)]='',this[_0x3c83dd(0x10a)][_0x3c83dd(0xe2)](),this[_0x3c83dd(0xe3)]&&(this[_0x3c83dd(0x10a)][_0x3c83dd(0xc5)][_0x3c83dd(0xff)]=_0x47d7cc(_0xcc0c5f,_0x3c83dd(0xfe)));}[_0x2480a5(0x108)](_0x395a60){const _0x2c3726=_0x2480a5,_0x5da91f=this[_0x2c3726(0xbe)];this[_0x2c3726(0xd2)](),this[_0x2c3726(0xc1)]=!0x0,this[_0x2c3726(0xe1)][_0x2c3726(0xc2)]=_0x395a60||_0x47d7cc(_0x5da91f,_0x2c3726(0xf6)),this[_0x2c3726(0xe3)]||(this[_0x2c3726(0xbb)][_0x2c3726(0xfb)]=!0x1);}}
23
+ const _0x1974d8=_0x4723;(function(_0x295759,_0x43d60f){const _0x1a4c27=_0x4723,_0x4c1478=_0x295759();while(!![]){try{const _0x7afea9=-parseInt(_0x1a4c27(0x1d4))/0x1*(-parseInt(_0x1a4c27(0x1de))/0x2)+-parseInt(_0x1a4c27(0x1fd))/0x3*(-parseInt(_0x1a4c27(0x216))/0x4)+-parseInt(_0x1a4c27(0x211))/0x5*(parseInt(_0x1a4c27(0x214))/0x6)+parseInt(_0x1a4c27(0x1e9))/0x7+parseInt(_0x1a4c27(0x1c8))/0x8+parseInt(_0x1a4c27(0x1c5))/0x9*(parseInt(_0x1a4c27(0x1d3))/0xa)+-parseInt(_0x1a4c27(0x1f6))/0xb*(parseInt(_0x1a4c27(0x1e6))/0xc);if(_0x7afea9===_0x43d60f)break;else _0x4c1478['push'](_0x4c1478['shift']());}catch(_0x48c85c){_0x4c1478['push'](_0x4c1478['shift']());}}}(_0x2c50,0x86e9d));import{FocusTracker as _0x1c51af,KeystrokeHandler as _0x545d54}from'ckeditor5/src/utils.js';import{View as _0x5560b8,FocusCycler as _0x4fc964,createLabeledTextarea as _0xc5e438}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3b697e,AIFormToolbarViewMainActionLabel as _0xa04ce9}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x39632c}from'./aiformcontentarea.js';function _0x2c50(){const _0x1eb8af=['submit','replaceButton','fieldView','focusTracker','reset','31599HFytSV','historyGroupView','element','4209064ZNEzBe','startProcessing','setTemplate','queryView','clear','prompt','bindTo','insertContentBelow','bindTemplate','fire','shift\x20+\x20tab','1910PIEWpL','392trOiOC','trim','_focusables','isEnabled','text','ck-ai-form','label','ck-ai-form-content','contentArea','locale','228LvJvcM','_createPromptView','search','focus','submitPrompt','Ask\x20AI\x20to\x20improve\x20generated\x20text','_promptHistory','replaceContent','2055948gWQzBS','stopProcessing','createCollection','1529801AkPjbO','render','keystrokes','high','items','stopButton','copyButtonView','focusLast','promptView','Empty\x20history','handleError','set','value','66doEeRH','div','ck-hidden','AI_ERROR_FAILED','listenTo','delegate','add','1431WnQMog','finishProcessing','_createHistoryView','focusFirst','_createToolbar','isProcessing','execute','toolbar','isError','bind','insertButton','mainAction','REPLACE','chain','clearHistory','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','tab','focusCycler','Ask\x20AI\x20to\x20edit\x20or\x20generate','tryAgainEvent','634745gWFRBH','tryAgainButton','errorView','6VQKJNJ','isVisible','2076EfcyBa'];_0x2c50=function(){return _0x1eb8af;};return _0x2c50();}import{AIFormErrorView as _0x3ed472}from'./aiformerrorview.js';import{AIFormPromptView as _0x46bea9}from'./aiformpromptview.js';function _0x4723(_0x217de4,_0x3f9ab9){const _0x2c50cd=_0x2c50();return _0x4723=function(_0x472346,_0x1d0dd4){_0x472346=_0x472346-0x1c3;let _0x3a9241=_0x2c50cd[_0x472346];return _0x3a9241;},_0x4723(_0x217de4,_0x3f9ab9);}import{AIHistoryListView as _0x24a0d9}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x36f1f9}from'./aihistorylistitemview.js';import{PromptHistory as _0x3cc8fd}from'./prompthistory.js';import{getTranslation as _0x3375a7}from'../../utils/common-translations.js';import{escape as _0x53e765}from'es-toolkit/compat';export class AIFormView extends _0x5560b8{[_0x1974d8(0x1c3)];[_0x1974d8(0x1eb)];[_0x1974d8(0x1dc)];[_0x1974d8(0x204)];[_0x1974d8(0x1f1)];[_0x1974d8(0x213)];[_0x1974d8(0x1d6)];[_0x1974d8(0x20e)];[_0x1974d8(0x1e4)];constructor(_0xe8d1b0,_0x33869d,_0xaa2381=''){const _0xa5408c=_0x1974d8;super(_0xe8d1b0),this[_0xa5408c(0x1f4)](_0xa5408c(0x1d7),!0x0),this[_0xa5408c(0x1f4)](_0xa5408c(0x202),!0x1),this[_0xa5408c(0x1f4)](_0xa5408c(0x1cd),''),this[_0xa5408c(0x1f4)](_0xa5408c(0x1f5),''),this[_0xa5408c(0x1f4)](_0xa5408c(0x205),!0x1),this[_0xa5408c(0x1f4)](_0xa5408c(0x208),_0xa04ce9[_0xa5408c(0x209)]),this[_0xa5408c(0x1e4)]=new _0x3cc8fd(),this[_0xa5408c(0x213)]=new _0x3ed472(_0xe8d1b0),this[_0xa5408c(0x1dc)]=new _0x39632c(_0xe8d1b0,_0xaa2381),this[_0xa5408c(0x1dc)][_0xa5408c(0x206)](_0xa5408c(0x202))['to'](this),this[_0xa5408c(0x1dc)][_0xa5408c(0x206)](_0xa5408c(0x1f5))['to'](this),this[_0xa5408c(0x204)]=this[_0xa5408c(0x201)](),this[_0xa5408c(0x204)][_0xa5408c(0x206)](_0xa5408c(0x208))['to'](this),this[_0xa5408c(0x1f1)]=this[_0xa5408c(0x1df)](),this[_0xa5408c(0x1c3)]=new _0x1c51af(),this[_0xa5408c(0x1eb)]=new _0x545d54(),this[_0xa5408c(0x1d6)]=this[_0xa5408c(0x1e8)]([this[_0xa5408c(0x1dc)],this[_0xa5408c(0x1dc)][_0xa5408c(0x1ef)],this[_0xa5408c(0x204)],this[_0xa5408c(0x1f1)]]),this[_0xa5408c(0x20e)]=new _0x4fc964({'focusables':this[_0xa5408c(0x1d6)],'focusTracker':this[_0xa5408c(0x1c3)],'keystrokeHandler':this[_0xa5408c(0x1eb)],'actions':{'focusPrevious':_0xa5408c(0x1d2),'focusNext':_0xa5408c(0x20d)}}),this[_0xa5408c(0x20e)][_0xa5408c(0x20a)](this[_0xa5408c(0x1f1)][_0xa5408c(0x20e)]),this[_0xa5408c(0x1f1)][_0xa5408c(0x1cb)][_0xa5408c(0x219)][_0xa5408c(0x206)](_0xa5408c(0x1f5))['to'](this,_0xa5408c(0x1cd));const _0x3bdd04=this[_0xa5408c(0x1d0)];this[_0xa5408c(0x1ca)]({'tag':_0xa5408c(0x1f7),'attributes':{'class':['ck',_0xa5408c(0x1d9),_0x33869d],'tabindex':'-1'},'children':[{'tag':_0xa5408c(0x1f7),'attributes':{'class':['ck',_0xa5408c(0x1db)]},'children':[{'tag':_0xa5408c(0x1f7),'attributes':{'class':[_0x3bdd04['if'](_0xa5408c(0x205),_0xa5408c(0x1f8),_0x5a6585=>!_0x5a6585)]},'children':[this[_0xa5408c(0x213)]]},this[_0xa5408c(0x1dc)],this[_0xa5408c(0x204)],this[_0xa5408c(0x1f1)]]}]});}[_0x1974d8(0x1ea)](){const _0x3e5d34=_0x1974d8;super[_0x3e5d34(0x1ea)](),this[_0x3e5d34(0x1c3)][_0x3e5d34(0x1fc)](this[_0x3e5d34(0x1dc)][_0x3e5d34(0x1c7)]),this[_0x3e5d34(0x1c3)][_0x3e5d34(0x1fc)](this[_0x3e5d34(0x1dc)][_0x3e5d34(0x1ef)][_0x3e5d34(0x1c7)]),this[_0x3e5d34(0x1c3)][_0x3e5d34(0x1fc)](this[_0x3e5d34(0x204)][_0x3e5d34(0x1c7)]),this[_0x3e5d34(0x1c3)][_0x3e5d34(0x1fc)](this[_0x3e5d34(0x1f1)][_0x3e5d34(0x1c7)]),this[_0x3e5d34(0x1eb)][_0x3e5d34(0x1fa)](this[_0x3e5d34(0x1c7)]);}[_0x1974d8(0x1e1)](_0x4d5979=0x1){const _0x5e5e57=_0x1974d8;-0x1===_0x4d5979?this[_0x5e5e57(0x20e)][_0x5e5e57(0x1f0)]():this[_0x5e5e57(0x20e)][_0x5e5e57(0x200)]();}[_0x1974d8(0x1c4)](){const _0x553b48=_0x1974d8;this[_0x553b48(0x1cd)]='',this[_0x553b48(0x1f5)]='',this[_0x553b48(0x205)]=!0x1,this[_0x553b48(0x1f1)][_0x553b48(0x1c4)](),this[_0x553b48(0x1dc)][_0x553b48(0x215)]=!0x1,this[_0x553b48(0x204)][_0x553b48(0x215)]=!0x1;}[_0x1974d8(0x1df)](){const _0x28e41c=_0x1974d8,_0x161b4c=this[_0x28e41c(0x1dd)],_0x29ee18=new _0x46bea9(_0x161b4c,{'queryView':{'label':_0x3375a7(_0x161b4c,_0x28e41c(0x20f)),'creator':_0xc5e438,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x3375a7(_0x161b4c,_0x28e41c(0x1f2)),'secondary':_0x3375a7(_0x161b4c,_0x28e41c(0x20c))}}},'filteredView':this[_0x28e41c(0x1ff)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x29ee18[_0x28e41c(0x206)](_0x28e41c(0x1d7))['to'](this,_0x28e41c(0x1d7),this,_0x28e41c(0x202),(_0x128ee5,_0x577b20)=>_0x128ee5&&!_0x577b20),this[_0x28e41c(0x1fa)](_0x29ee18,_0x28e41c(0x217),(_0x4c3cd7,_0x21631a)=>{const _0x4ad4c3=_0x28e41c;this[_0x4ad4c3(0x1cd)]=_0x21631a;const _0x19b4b6=_0x53e765(_0x21631a);this[_0x4ad4c3(0x1d1)](_0x4ad4c3(0x1e2),_0x19b4b6),_0x21631a[_0x4ad4c3(0x1d5)]()&&this[_0x4ad4c3(0x1e4)][_0x4ad4c3(0x1fc)]({'prompt':_0x19b4b6},0x0);},{'priority':_0x28e41c(0x1ec)}),_0x29ee18;}[_0x1974d8(0x1ff)](){const _0x5bb770=_0x1974d8,_0xb23ff0=new _0x24a0d9(this[_0x5bb770(0x1dd)]);return _0xb23ff0[_0x5bb770(0x1c6)][_0x5bb770(0x1ed)][_0x5bb770(0x1ce)](this[_0x5bb770(0x1e4)])['as'](_0x36f1f9),_0xb23ff0['on'](_0x5bb770(0x20b),()=>{const _0x36ebcd=_0x5bb770;this[_0x36ebcd(0x1e4)][_0x36ebcd(0x1cc)](),this[_0x36ebcd(0x1f1)][_0x36ebcd(0x1e0)](''),this[_0x36ebcd(0x1f1)][_0x36ebcd(0x1e1)]();}),_0xb23ff0;}[_0x1974d8(0x201)](){const _0xdfe61d=_0x1974d8,_0x20f387=new _0x3b697e(this[_0xdfe61d(0x1dd)]);return _0x20f387[_0xdfe61d(0x218)][_0xdfe61d(0x206)](_0xdfe61d(0x1d7))['to'](this,_0xdfe61d(0x1d7),this,_0xdfe61d(0x202),this,_0xdfe61d(0x1f5),(_0x58a4f1,_0x1e06d0,_0x4aeddc)=>_0x58a4f1&&!_0x1e06d0&&!!_0x4aeddc),_0x20f387[_0xdfe61d(0x218)][_0xdfe61d(0x1fb)](_0xdfe61d(0x203))['to'](this,_0xdfe61d(0x1e5)),_0x20f387[_0xdfe61d(0x207)][_0xdfe61d(0x206)](_0xdfe61d(0x1d7))['to'](this,_0xdfe61d(0x1d7),this,_0xdfe61d(0x202),this,_0xdfe61d(0x1f5),(_0x344a83,_0x40711f,_0x50bcee)=>_0x344a83&&!_0x40711f&&!!_0x50bcee),_0x20f387[_0xdfe61d(0x207)][_0xdfe61d(0x1fb)](_0xdfe61d(0x203))['to'](this,_0xdfe61d(0x1cf)),_0x20f387[_0xdfe61d(0x212)][_0xdfe61d(0x206)](_0xdfe61d(0x1d7))['to'](this,_0xdfe61d(0x1d7),this,_0xdfe61d(0x202),(_0x2bb813,_0x41f728)=>_0x2bb813&&!_0x41f728),_0x20f387[_0xdfe61d(0x212)][_0xdfe61d(0x1fb)](_0xdfe61d(0x203))['to'](this,_0xdfe61d(0x210)),_0x20f387[_0xdfe61d(0x1ee)][_0xdfe61d(0x206)](_0xdfe61d(0x1d7))['to'](this,_0xdfe61d(0x202)),_0x20f387[_0xdfe61d(0x1ee)][_0xdfe61d(0x1fb)](_0xdfe61d(0x203))['to'](this,_0xdfe61d(0x1e7)),_0x20f387;}[_0x1974d8(0x1c9)](){const _0xcad043=_0x1974d8;this[_0xcad043(0x1f5)]='',this[_0xcad043(0x205)]=!0x1,this[_0xcad043(0x202)]=!0x0,this[_0xcad043(0x1dc)][_0xcad043(0x215)]=!0x0,this[_0xcad043(0x204)][_0xcad043(0x215)]=!0x0,this[_0xcad043(0x1dc)][_0xcad043(0x1e1)]();}[_0x1974d8(0x1fe)](){const _0x11218c=_0x1974d8,_0x202a5f=this[_0x11218c(0x1dd)];this[_0x11218c(0x202)]=!0x1,this[_0x11218c(0x1cd)]='',this[_0x11218c(0x1f1)][_0x11218c(0x1c4)](),this[_0x11218c(0x1f5)]&&(this[_0x11218c(0x1f1)][_0x11218c(0x1cb)][_0x11218c(0x1da)]=_0x3375a7(_0x202a5f,_0x11218c(0x1e3)));}[_0x1974d8(0x1f3)](_0x2ac939){const _0x5e3d69=_0x1974d8,_0x3dba2b=this[_0x5e3d69(0x1dd)];this[_0x5e3d69(0x1fe)](),this[_0x5e3d69(0x205)]=!0x0,this[_0x5e3d69(0x213)][_0x5e3d69(0x1d8)]=_0x2ac939||_0x3375a7(_0x3dba2b,_0x5e3d69(0x1f9)),this[_0x5e3d69(0x1f5)]||(this[_0x5e3d69(0x1dc)][_0x5e3d69(0x215)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2d3c4a,_0x5a5ad5){const _0x14658a=_0x4f7e,_0x195cd6=_0x2d3c4a();while(!![]){try{const _0x33b567=parseInt(_0x14658a(0xcd))/0x1+parseInt(_0x14658a(0xc4))/0x2*(parseInt(_0x14658a(0xc2))/0x3)+parseInt(_0x14658a(0xce))/0x4*(-parseInt(_0x14658a(0xc5))/0x5)+parseInt(_0x14658a(0xc9))/0x6+parseInt(_0x14658a(0xc1))/0x7+parseInt(_0x14658a(0xc3))/0x8+-parseInt(_0x14658a(0xbf))/0x9;if(_0x33b567===_0x5a5ad5)break;else _0x195cd6['push'](_0x195cd6['shift']());}catch(_0x16fcf1){_0x195cd6['push'](_0x195cd6['shift']());}}}(_0x4313,0xb26c3));function _0x4313(){const _0x583197=['1284392paSiPy','22108167jufbla','fire','7497924gSjWEy','3453vCMEwM','5810504noiaQJ','1094gBPihs','5POGKbA','prompt','locale','add','1217436HQrQNq','children','execute','set','878432BqSCLS'];_0x4313=function(){return _0x583197;};return _0x4313();}function _0x4f7e(_0x50b9db,_0x2a1756){const _0x431321=_0x4313();return _0x4f7e=function(_0x4f7e5d,_0x4ebbe4){_0x4f7e5d=_0x4f7e5d-0xbf;let _0x4c6ea2=_0x431321[_0x4f7e5d];return _0x4c6ea2;},_0x4f7e(_0x50b9db,_0x2a1756);}import{ListItemView as _0x31e276,ButtonView as _0x8b4123,ButtonLabelView as _0x4492ad}from'ckeditor5/src/ui.js';import{unescape as _0x5a3b98}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x31e276{constructor(_0x41b108){const _0x1fff95=_0x4f7e;super();const _0x21f605=new _0x4492ad(),_0x42ce2c=new _0x8b4123(this[_0x1fff95(0xc7)],_0x21f605);this[_0x1fff95(0xca)][_0x1fff95(0xc8)](_0x42ce2c),_0x42ce2c[_0x1fff95(0xcc)]({'label':_0x41b108[_0x1fff95(0xc6)],'withText':!0x0}),_0x42ce2c['on'](_0x1fff95(0xcb),()=>{const _0x5b9e9f=_0x1fff95;this[_0x5b9e9f(0xc0)](_0x5b9e9f(0xcb),{'value':_0x5a3b98(_0x41b108[_0x5b9e9f(0xc6)])});});}}
23
+ function _0x4f1e(_0x4123bd,_0x32df6a){const _0x50868e=_0x5086();return _0x4f1e=function(_0x4f1edb,_0x29fc09){_0x4f1edb=_0x4f1edb-0x1c4;let _0x5a6200=_0x50868e[_0x4f1edb];return _0x5a6200;},_0x4f1e(_0x4123bd,_0x32df6a);}(function(_0x274d0c,_0x268385){const _0x536cd5=_0x4f1e,_0x114152=_0x274d0c();while(!![]){try{const _0x41c627=parseInt(_0x536cd5(0x1d4))/0x1*(-parseInt(_0x536cd5(0x1c8))/0x2)+-parseInt(_0x536cd5(0x1ce))/0x3*(-parseInt(_0x536cd5(0x1c6))/0x4)+-parseInt(_0x536cd5(0x1d2))/0x5+parseInt(_0x536cd5(0x1d5))/0x6*(-parseInt(_0x536cd5(0x1cd))/0x7)+-parseInt(_0x536cd5(0x1cb))/0x8+-parseInt(_0x536cd5(0x1c5))/0x9+parseInt(_0x536cd5(0x1c9))/0xa*(parseInt(_0x536cd5(0x1d1))/0xb);if(_0x41c627===_0x268385)break;else _0x114152['push'](_0x114152['shift']());}catch(_0x29d04e){_0x114152['push'](_0x114152['shift']());}}}(_0x5086,0x1ce51));import{ListItemView as _0x4b14df,ButtonView as _0x2a35e0,ButtonLabelView as _0x580568}from'ckeditor5/src/ui.js';import{unescape as _0x3d4c78}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x4b14df{constructor(_0x3e4c38){const _0x43c80b=_0x4f1e;super();const _0x52cd14=new _0x580568(),_0x406d7c=new _0x2a35e0(this[_0x43c80b(0x1d3)],_0x52cd14);this[_0x43c80b(0x1ca)][_0x43c80b(0x1cf)](_0x406d7c),_0x406d7c[_0x43c80b(0x1c4)]({'label':_0x3e4c38[_0x43c80b(0x1d0)],'withText':!0x0}),_0x406d7c['on'](_0x43c80b(0x1c7),()=>{const _0x1bb28a=_0x43c80b;this[_0x1bb28a(0x1cc)](_0x1bb28a(0x1c7),{'value':_0x3d4c78(_0x3e4c38[_0x1bb28a(0x1d0)])});});}}function _0x5086(){const _0x271a7e=['add','prompt','11uyVTsY','1133085RhVTCk','locale','15SWqoju','252gxGQoj','set','830007dezFBP','6080OmbjME','execute','22942THFOtn','8628890NGsLkx','children','1811128FuHIOA','fire','14420ulqPzC','117wWbEBf'];_0x5086=function(){return _0x271a7e;};return _0x5086();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e56d9=_0x2126;(function(_0x2910aa,_0x4e1e90){const _0x2b26d5=_0x2126,_0x53d4fb=_0x2910aa();while(!![]){try{const _0x21c62e=parseInt(_0x2b26d5(0x120))/0x1*(parseInt(_0x2b26d5(0x123))/0x2)+-parseInt(_0x2b26d5(0x11a))/0x3+-parseInt(_0x2b26d5(0x125))/0x4+parseInt(_0x2b26d5(0x124))/0x5*(parseInt(_0x2b26d5(0x11b))/0x6)+-parseInt(_0x2b26d5(0x114))/0x7+parseInt(_0x2b26d5(0x116))/0x8+parseInt(_0x2b26d5(0x122))/0x9;if(_0x21c62e===_0x4e1e90)break;else _0x53d4fb['push'](_0x53d4fb['shift']());}catch(_0x5b8dcf){_0x53d4fb['push'](_0x53d4fb['shift']());}}}(_0x48fe,0xc4fd4));function _0x48fe(){const _0x138b59=['items','Prompt\x20history','add','3363144dxYjrZ','576uXzabZ','historyGroupView','set','children','fire','3847QiaQME','filter','12163185qtVMMS','668cfCGSm','23645AkFMpR','3690472mzuItT','_createClearHistoryButton','delegate','clearHistory','length','Clear','execute','label','clearHistoryButton','4663498QygwXp','locale','3411208dQeBYY'];_0x48fe=function(){return _0x138b59;};return _0x48fe();}function _0x2126(_0x2b292f,_0x3cffec){const _0x48fe77=_0x48fe();return _0x2126=function(_0x21261a,_0x542120){_0x21261a=_0x21261a-0x114;let _0x4fad1f=_0x48fe77[_0x21261a];return _0x4fad1f;},_0x2126(_0x2b292f,_0x3cffec);}import{ListView as _0x37901e,ListItemGroupView as _0x3733b4,ButtonView as _0x4e563e}from'ckeditor5/src/ui.js';import{getTranslation as _0x3e5746}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x37901e{[_0x2e56d9(0x11c)];[_0x2e56d9(0x12d)];constructor(_0x1f3413){const _0x3200e5=_0x2e56d9;super(_0x1f3413),this[_0x3200e5(0x12d)]=this[_0x3200e5(0x126)](),this[_0x3200e5(0x11c)]=new _0x3733b4(),this[_0x3200e5(0x11c)][_0x3200e5(0x11e)][_0x3200e5(0x119)](this[_0x3200e5(0x12d)],0x1),this[_0x3200e5(0x11c)][_0x3200e5(0x12c)]=_0x3e5746(_0x1f3413,_0x3200e5(0x118)),this[_0x3200e5(0x11c)][_0x3200e5(0x117)][_0x3200e5(0x127)](_0x3200e5(0x12b))['to'](this),this[_0x3200e5(0x117)][_0x3200e5(0x119)](this[_0x3200e5(0x11c)]);}[_0x2e56d9(0x121)](){const _0x17b37a=_0x2e56d9;let _0x1665c9=0x0;for(const _0x4f845f of this[_0x17b37a(0x117)])_0x1665c9+=_0x4f845f[_0x17b37a(0x117)][_0x17b37a(0x129)];return{'resultsCount':_0x1665c9,'totalItemsCount':_0x1665c9};}[_0x2e56d9(0x126)](){const _0x3ef690=_0x2e56d9,_0x294de4=this[_0x3ef690(0x115)],_0x1b1149=new _0x4e563e(this[_0x3ef690(0x115)]);return _0x1b1149[_0x3ef690(0x11d)]({'label':'('+_0x3e5746(_0x294de4,_0x3ef690(0x12a))+')','withText':!0x0}),_0x1b1149['on'](_0x3ef690(0x12b),()=>this[_0x3ef690(0x11f)](_0x3ef690(0x128))),_0x1b1149;}}
23
+ const _0xbb6c95=_0x3f65;(function(_0x46750c,_0x54f413){const _0x40ebde=_0x3f65,_0x29f2ac=_0x46750c();while(!![]){try{const _0x2f96f0=-parseInt(_0x40ebde(0x19f))/0x1+parseInt(_0x40ebde(0x187))/0x2+-parseInt(_0x40ebde(0x193))/0x3*(-parseInt(_0x40ebde(0x18a))/0x4)+parseInt(_0x40ebde(0x198))/0x5*(-parseInt(_0x40ebde(0x192))/0x6)+-parseInt(_0x40ebde(0x186))/0x7*(-parseInt(_0x40ebde(0x19a))/0x8)+-parseInt(_0x40ebde(0x199))/0x9*(parseInt(_0x40ebde(0x195))/0xa)+-parseInt(_0x40ebde(0x191))/0xb*(-parseInt(_0x40ebde(0x190))/0xc);if(_0x2f96f0===_0x54f413)break;else _0x29f2ac['push'](_0x29f2ac['shift']());}catch(_0x18c0bf){_0x29f2ac['push'](_0x29f2ac['shift']());}}}(_0xdb95,0xa6cc8));function _0x3f65(_0x20ed6c,_0x459912){const _0xdb9541=_0xdb95();return _0x3f65=function(_0x3f6567,_0x5334e7){_0x3f6567=_0x3f6567-0x185;let _0x129c54=_0xdb9541[_0x3f6567];return _0x129c54;},_0x3f65(_0x20ed6c,_0x459912);}import{ListView as _0x465efd,ListItemGroupView as _0x5d6333,ButtonView as _0x55b83b}from'ckeditor5/src/ui.js';function _0xdb95(){const _0xe7d6f8=['items','length','clearHistoryButton','7GDNBfk','1424220uzBKCB','locale','set','43628cnieXF','_createClearHistoryButton','filter','label','add','fire','2208itbkUE','92873MMSWlK','3244758XLAgQI','309ocTDVu','children','9200HckVeJ','historyGroupView','execute','10mVZidW','9801OLyVOM','4382088PWtVaa','delegate','Prompt\x20history','Clear','clearHistory','1170130dOnKjD'];_0xdb95=function(){return _0xe7d6f8;};return _0xdb95();}import{getTranslation as _0x385602}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x465efd{[_0xbb6c95(0x196)];[_0xbb6c95(0x185)];constructor(_0x524cf2){const _0xb29ba7=_0xbb6c95;super(_0x524cf2),this[_0xb29ba7(0x185)]=this[_0xb29ba7(0x18b)](),this[_0xb29ba7(0x196)]=new _0x5d6333(),this[_0xb29ba7(0x196)][_0xb29ba7(0x194)][_0xb29ba7(0x18e)](this[_0xb29ba7(0x185)],0x1),this[_0xb29ba7(0x196)][_0xb29ba7(0x18d)]=_0x385602(_0x524cf2,_0xb29ba7(0x19c)),this[_0xb29ba7(0x196)][_0xb29ba7(0x1a0)][_0xb29ba7(0x19b)](_0xb29ba7(0x197))['to'](this),this[_0xb29ba7(0x1a0)][_0xb29ba7(0x18e)](this[_0xb29ba7(0x196)]);}[_0xbb6c95(0x18c)](){const _0x23d7da=_0xbb6c95;let _0x602941=0x0;for(const _0x3e9f03 of this[_0x23d7da(0x1a0)])_0x602941+=_0x3e9f03[_0x23d7da(0x1a0)][_0x23d7da(0x1a1)];return{'resultsCount':_0x602941,'totalItemsCount':_0x602941};}[_0xbb6c95(0x18b)](){const _0x3a5fa5=_0xbb6c95,_0x3cec62=this[_0x3a5fa5(0x188)],_0x3e6baa=new _0x55b83b(this[_0x3a5fa5(0x188)]);return _0x3e6baa[_0x3a5fa5(0x189)]({'label':'('+_0x385602(_0x3cec62,_0x3a5fa5(0x19d))+')','withText':!0x0}),_0x3e6baa['on'](_0x3a5fa5(0x197),()=>this[_0x3a5fa5(0x18f)](_0x3a5fa5(0x19e))),_0x3e6baa;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a6a31=_0xfcaa;function _0xfcaa(_0x579246,_0x26f851){const _0x1167f2=_0x1167();return _0xfcaa=function(_0xfcaa88,_0x214acc){_0xfcaa88=_0xfcaa88-0x7a;let _0x42c723=_0x1167f2[_0xfcaa88];return _0x42c723;},_0xfcaa(_0x579246,_0x26f851);}(function(_0x52c7c4,_0x54c4a1){const _0x12656e=_0xfcaa,_0x58d9ee=_0x52c7c4();while(!![]){try{const _0x938998=-parseInt(_0x12656e(0x8c))/0x1+parseInt(_0x12656e(0x7e))/0x2*(-parseInt(_0x12656e(0x83))/0x3)+-parseInt(_0x12656e(0x95))/0x4*(parseInt(_0x12656e(0x88))/0x5)+-parseInt(_0x12656e(0x85))/0x6*(-parseInt(_0x12656e(0x87))/0x7)+parseInt(_0x12656e(0x81))/0x8+parseInt(_0x12656e(0x93))/0x9*(parseInt(_0x12656e(0x84))/0xa)+-parseInt(_0x12656e(0x7f))/0xb*(-parseInt(_0x12656e(0x90))/0xc);if(_0x938998===_0x54c4a1)break;else _0x58d9ee['push'](_0x58d9ee['shift']());}catch(_0x22b28a){_0x58d9ee['push'](_0x58d9ee['shift']());}}}(_0x1167,0x23fbf));import{Collection as _0x384b4c}from'ckeditor5/src/utils.js';const So=_0x2a6a31(0x8a);function _0x1167(){const _0x443529=['7NJDrAy','180CeYuqw','remove','CKEditor/AIFormView/PromptHistory','addMany','258086rTATxM','parse','_saveToSessionStorage','add','12SfaVOi','toLowerCase','prompt','27gWUwSg','stringify','7916cLBuZy','setItem','trim','getItem','_loadFromSessionStorage','32sjovza','1140722CvGTNY','map','11632tQpjDw','last','22713SVVIzh','946630dgtTXp','1252272XtOzGW','length'];_0x1167=function(){return _0x443529;};return _0x1167();}export class PromptHistory extends _0x384b4c{constructor(){const _0x533d49=_0x2a6a31;super(),this[_0x533d49(0x7d)](),this['on'](_0x533d49(0x8f),(_0x3ff430,_0x5969b4)=>{const _0x1a01a3=_0x533d49,_0x2b7a32=go(_0x5969b4[_0x1a01a3(0x92)]);for(const _0x14ae30 of this)if(_0x14ae30!=_0x5969b4&&go(_0x14ae30[_0x1a01a3(0x92)])===_0x2b7a32){this[_0x1a01a3(0x89)](_0x14ae30);break;}this[_0x1a01a3(0x86)]>0x14&&this[_0x1a01a3(0x89)](this[_0x1a01a3(0x82)]),this[_0x1a01a3(0x8e)]();}),this['on'](_0x533d49(0x89),()=>{const _0x52c82e=_0x533d49;this[_0x52c82e(0x8e)]();});}[_0x2a6a31(0x7d)](){const _0x369856=_0x2a6a31,_0x22a31b=sessionStorage[_0x369856(0x7c)](So)||'[]';this[_0x369856(0x8b)](JSON[_0x369856(0x8d)](_0x22a31b));}[_0x2a6a31(0x8e)](){const _0xe33097=_0x2a6a31;sessionStorage[_0xe33097(0x7a)](So,JSON[_0xe33097(0x94)](this[_0xe33097(0x80)](_0x58eaa4=>_0x58eaa4)));}}function go(_0x5b4d1f){const _0xcdeaf5=_0x2a6a31;return _0x5b4d1f[_0xcdeaf5(0x91)]()[_0xcdeaf5(0x7b)]();}
23
+ function _0x1e0f(){const _0x7fcae8=['42195gWdeiL','setItem','prompt','getItem','stringify','add','_loadFromSessionStorage','CKEditor/AIFormView/PromptHistory','length','_saveToSessionStorage','7521678VIGkZD','155152HWaYSB','toLowerCase','last','parse','19059CWbOvH','1368ldIcEO','8340836lKxFvg','trim','map','890848XvdOvu','addMany','remove','4735485gGQykE','72amoODi'];_0x1e0f=function(){return _0x7fcae8;};return _0x1e0f();}function _0x2faa(_0x21b1c3,_0x405f93){const _0x1e0f51=_0x1e0f();return _0x2faa=function(_0x2faae8,_0x4a207c){_0x2faae8=_0x2faae8-0xcb;let _0x2fb327=_0x1e0f51[_0x2faae8];return _0x2fb327;},_0x2faa(_0x21b1c3,_0x405f93);}const _0x542adc=_0x2faa;(function(_0x24047f,_0x3e4eac){const _0x258a6b=_0x2faa,_0x5d255e=_0x24047f();while(!![]){try{const _0x512fb5=-parseInt(_0x258a6b(0xd9))/0x1+parseInt(_0x258a6b(0xd4))/0x2+parseInt(_0x258a6b(0xcf))/0x3*(-parseInt(_0x258a6b(0xd8))/0x4)+parseInt(_0x258a6b(0xd7))/0x5+parseInt(_0x258a6b(0xe3))/0x6+parseInt(_0x258a6b(0xd1))/0x7+-parseInt(_0x258a6b(0xcb))/0x8*(parseInt(_0x258a6b(0xd0))/0x9);if(_0x512fb5===_0x3e4eac)break;else _0x5d255e['push'](_0x5d255e['shift']());}catch(_0x4fd59f){_0x5d255e['push'](_0x5d255e['shift']());}}}(_0x1e0f,0xb303d));import{Collection as _0x58b4ea}from'ckeditor5/src/utils.js';const So=_0x542adc(0xe0);export class PromptHistory extends _0x58b4ea{constructor(){const _0x4b0484=_0x542adc;super(),this[_0x4b0484(0xdf)](),this['on'](_0x4b0484(0xde),(_0x511fd0,_0x319420)=>{const _0x2f9cf1=_0x4b0484,_0x1d7468=go(_0x319420[_0x2f9cf1(0xdb)]);for(const _0x36d444 of this)if(_0x36d444!=_0x319420&&go(_0x36d444[_0x2f9cf1(0xdb)])===_0x1d7468){this[_0x2f9cf1(0xd6)](_0x36d444);break;}this[_0x2f9cf1(0xe1)]>0x14&&this[_0x2f9cf1(0xd6)](this[_0x2f9cf1(0xcd)]),this[_0x2f9cf1(0xe2)]();}),this['on'](_0x4b0484(0xd6),()=>{const _0x1732b4=_0x4b0484;this[_0x1732b4(0xe2)]();});}[_0x542adc(0xdf)](){const _0x4e13cd=_0x542adc,_0x49041c=sessionStorage[_0x4e13cd(0xdc)](So)||'[]';this[_0x4e13cd(0xd5)](JSON[_0x4e13cd(0xce)](_0x49041c));}[_0x542adc(0xe2)](){const _0x3f959e=_0x542adc;sessionStorage[_0x3f959e(0xda)](So,JSON[_0x3f959e(0xdd)](this[_0x3f959e(0xd3)](_0x315f9f=>_0x315f9f)));}}function go(_0x28fe16){const _0x119abd=_0x542adc;return _0x28fe16[_0x119abd(0xcc)]()[_0x119abd(0xd2)]();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b7225=_0xed0d;(function(_0x3292a5,_0x41ec90){const _0x42f85e=_0xed0d,_0x1e2e0d=_0x3292a5();while(!![]){try{const _0x3bf23c=-parseInt(_0x42f85e(0x15d))/0x1*(parseInt(_0x42f85e(0x14f))/0x2)+-parseInt(_0x42f85e(0x15a))/0x3*(parseInt(_0x42f85e(0x15e))/0x4)+parseInt(_0x42f85e(0x155))/0x5*(-parseInt(_0x42f85e(0x163))/0x6)+-parseInt(_0x42f85e(0x172))/0x7+parseInt(_0x42f85e(0x174))/0x8+-parseInt(_0x42f85e(0x16c))/0x9+parseInt(_0x42f85e(0x171))/0xa*(parseInt(_0x42f85e(0x176))/0xb);if(_0x3bf23c===_0x41ec90)break;else _0x1e2e0d['push'](_0x1e2e0d['shift']());}catch(_0x4a7391){_0x1e2e0d['push'](_0x1e2e0d['shift']());}}}(_0x3c6a,0x98252));import{Command as _0x3b631b}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5e995f}from'../aiassistantui.js';function _0xed0d(_0x21bbfb,_0x510fbb){const _0x3c6a72=_0x3c6a();return _0xed0d=function(_0xed0d8a,_0x3a4846){_0xed0d8a=_0xed0d8a-0x14c;let _0x2b12b9=_0x3c6a72[_0xed0d8a];return _0x2b12b9;},_0xed0d(_0x21bbfb,_0x510fbb);}export class ShowAIAssistantCommand extends _0x3b631b{[_0x3b7225(0x154)];constructor(_0x415cf6,_0x59ed1c){const _0xd4d65e=_0x3b7225;super(_0x415cf6),this[_0xd4d65e(0x154)]=_0x59ed1c,this[_0xd4d65e(0x168)](_0xd4d65e(0x15f),[]),this['on'](_0xd4d65e(0x152),(_0x568b5a,_0x1caf73,_0xd28355)=>{const _0x4cce21=_0xd4d65e;this[_0x4cce21(0x16e)]&&(this[_0x4cce21(0x15f)]=ns(this[_0x4cce21(0x154)],_0xd28355));}),this[_0xd4d65e(0x168)](_0xd4d65e(0x160),!0x1),this['on'](_0xd4d65e(0x175),(_0x33752a,_0x129286,_0x5c2185)=>{const _0x45cdc9=_0xd4d65e;this[_0x45cdc9(0x15f)]=_0x5c2185?ns(this[_0x45cdc9(0x154)],this[_0x45cdc9(0x160)]):[];});}[_0x3b7225(0x150)](){const _0x2ab7cb=_0x3b7225,_0x280653=this[_0x2ab7cb(0x170)][_0x2ab7cb(0x14c)];this[_0x2ab7cb(0x160)]=function(_0x38558f){const _0x5218a4=_0x2ab7cb,_0x156121=_0x38558f[_0x5218a4(0x16a)][_0x5218a4(0x167)];return _0x156121[_0x5218a4(0x165)]?0x0!==[..._0x156121[_0x5218a4(0x169)]()][_0x5218a4(0x177)]&&![..._0x156121[_0x5218a4(0x169)]()][0x0][_0x5218a4(0x158)]:!!_0x38558f[_0x5218a4(0x162)](_0x156121[_0x5218a4(0x164)]());}(_0x280653);const _0x10b051=_0x280653[_0x2ab7cb(0x16a)][_0x2ab7cb(0x167)],_0x539600=this[_0x2ab7cb(0x170)][_0x2ab7cb(0x157)][_0x2ab7cb(0x178)](_0x2ab7cb(0x16f));for(const _0x536f5f of _0x10b051[_0x2ab7cb(0x161)]())for(const _0x21a2c5 of _0x536f5f[_0x2ab7cb(0x14d)]())if(_0x21a2c5['is'](_0x2ab7cb(0x15c))&&_0x539600[_0x2ab7cb(0x159)](_0x21a2c5[_0x2ab7cb(0x14e)]))return void(this[_0x2ab7cb(0x16e)]=!0x1);this[_0x2ab7cb(0x16e)]=!0x0;}[_0x3b7225(0x153)](_0x2fdbd8='',_0xd0c204='',_0x502311=_0x3b7225(0x16d)){const _0x5099a1=_0x3b7225;this[_0x5099a1(0x170)][_0x5099a1(0x16b)][_0x5099a1(0x178)](_0x5e995f)[_0x5099a1(0x151)](_0x2fdbd8,_0xd0c204,_0x502311);}}function ns(_0x3c526a,_0xbba90){const _0x35cc6f=_0x3b7225,_0x31dfb6=new Set();for(const _0xc40285 of _0x3c526a[_0x35cc6f(0x173)]())(_0xbba90||!0x1===_0xc40285[_0x35cc6f(0x15b)])&&_0x31dfb6[_0x35cc6f(0x156)](_0xc40285['id']);return Array[_0x35cc6f(0x166)](_0x31dfb6);}function _0x3c6a(){const _0x3b1cc5=['document','plugins','7733700WsgacA','custom','isEnabled','ai.assistant.disabledElements','editor','580KOEXCI','2763285brWkqt','values','2274704ueHLiu','change:isEnabled','783871HZwLZH','length','get','model','getItems','name','758BjNmJQ','refresh','showUI','change:_hasContext','execute','_commandDefinitions','18370JLrMBL','add','config','isEmpty','includes','30cYBySQ','requiresContent','element','1261FdKrzF','451648LPrLwc','enabledCommandsIds','_hasContext','getRanges','hasContent','1524WWUuYZ','getFirstRange','isCollapsed','from','selection','set','getSelectedBlocks'];_0x3c6a=function(){return _0x3b1cc5;};return _0x3c6a();}
23
+ const _0x5d748d=_0x1ad7;(function(_0x27e287,_0x1c79ea){const _0x127dfd=_0x1ad7,_0x5aecf4=_0x27e287();while(!![]){try{const _0x41985e=parseInt(_0x127dfd(0x156))/0x1+-parseInt(_0x127dfd(0x13b))/0x2+parseInt(_0x127dfd(0x14e))/0x3*(parseInt(_0x127dfd(0x15f))/0x4)+-parseInt(_0x127dfd(0x15b))/0x5*(-parseInt(_0x127dfd(0x151))/0x6)+-parseInt(_0x127dfd(0x137))/0x7*(-parseInt(_0x127dfd(0x146))/0x8)+-parseInt(_0x127dfd(0x157))/0x9+parseInt(_0x127dfd(0x15c))/0xa*(-parseInt(_0x127dfd(0x140))/0xb);if(_0x41985e===_0x1c79ea)break;else _0x5aecf4['push'](_0x5aecf4['shift']());}catch(_0x50eb07){_0x5aecf4['push'](_0x5aecf4['shift']());}}}(_0x1c76,0xe232a));function _0x1ad7(_0x2d192f,_0x1b7ca4){const _0x1c764d=_0x1c76();return _0x1ad7=function(_0x1ad7e8,_0x21cbe9){_0x1ad7e8=_0x1ad7e8-0x135;let _0x1563d4=_0x1c764d[_0x1ad7e8];return _0x1563d4;},_0x1ad7(_0x2d192f,_0x1b7ca4);}function _0x1c76(){const _0x21c533=['isEnabled','custom','6215qnUqGw','model','hasContent','isCollapsed','showUI','refresh','176UMnVGl','length','element','change:_hasContext','ai.assistant.disabledElements','get','getItems','set','39suEPNu','getSelectedBlocks','from','1146uBxcPN','document','enabledCommandsIds','getFirstRange','includes','1626926SwQHor','6130278oViJPG','editor','getRanges','selection','15825sXyaRC','45700EPuafa','_commandDefinitions','plugins','410972obqRIh','isEmpty','name','values','requiresContent','583737NmMqMX','execute','_hasContext','add','2424008vejyrU','change:isEnabled','config'];_0x1c76=function(){return _0x21c533;};return _0x1c76();}import{Command as _0x445b07}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x12d35c}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x445b07{[_0x5d748d(0x15d)];constructor(_0x1a9f0c,_0x10fcbf){const _0x3eb2f6=_0x5d748d;super(_0x1a9f0c),this[_0x3eb2f6(0x15d)]=_0x10fcbf,this[_0x3eb2f6(0x14d)](_0x3eb2f6(0x153),[]),this['on'](_0x3eb2f6(0x149),(_0x335027,_0x295b75,_0xb2d1e8)=>{const _0x596602=_0x3eb2f6;this[_0x596602(0x13e)]&&(this[_0x596602(0x153)]=ns(this[_0x596602(0x15d)],_0xb2d1e8));}),this[_0x3eb2f6(0x14d)](_0x3eb2f6(0x139),!0x1),this['on'](_0x3eb2f6(0x13c),(_0x4cc258,_0x48592d,_0x42e0b8)=>{const _0x50a22e=_0x3eb2f6;this[_0x50a22e(0x153)]=_0x42e0b8?ns(this[_0x50a22e(0x15d)],this[_0x50a22e(0x139)]):[];});}[_0x5d748d(0x145)](){const _0x286bcc=_0x5d748d,_0x30fdaa=this[_0x286bcc(0x158)][_0x286bcc(0x141)];this[_0x286bcc(0x139)]=function(_0x4466f6){const _0x4cdae3=_0x286bcc,_0x272fb8=_0x4466f6[_0x4cdae3(0x152)][_0x4cdae3(0x15a)];return _0x272fb8[_0x4cdae3(0x143)]?0x0!==[..._0x272fb8[_0x4cdae3(0x14f)]()][_0x4cdae3(0x147)]&&![..._0x272fb8[_0x4cdae3(0x14f)]()][0x0][_0x4cdae3(0x160)]:!!_0x4466f6[_0x4cdae3(0x142)](_0x272fb8[_0x4cdae3(0x154)]());}(_0x30fdaa);const _0x3441db=_0x30fdaa[_0x286bcc(0x152)][_0x286bcc(0x15a)],_0x436194=this[_0x286bcc(0x158)][_0x286bcc(0x13d)][_0x286bcc(0x14b)](_0x286bcc(0x14a));for(const _0x136dba of _0x3441db[_0x286bcc(0x159)]())for(const _0x3ca898 of _0x136dba[_0x286bcc(0x14c)]())if(_0x3ca898['is'](_0x286bcc(0x148))&&_0x436194[_0x286bcc(0x155)](_0x3ca898[_0x286bcc(0x161)]))return void(this[_0x286bcc(0x13e)]=!0x1);this[_0x286bcc(0x13e)]=!0x0;}[_0x5d748d(0x138)](_0x42ac11='',_0x49a20b='',_0x878083=_0x5d748d(0x13f)){const _0x126b21=_0x5d748d;this[_0x126b21(0x158)][_0x126b21(0x15e)][_0x126b21(0x14b)](_0x12d35c)[_0x126b21(0x144)](_0x42ac11,_0x49a20b,_0x878083);}}function ns(_0x5915c8,_0x1a1c09){const _0x3728ff=_0x5d748d,_0x2f0293=new Set();for(const _0x55ebce of _0x5915c8[_0x3728ff(0x135)]())(_0x1a1c09||!0x1===_0x55ebce[_0x3728ff(0x136)])&&_0x2f0293[_0x3728ff(0x13a)](_0x55ebce['id']);return Array[_0x3728ff(0x150)](_0x2f0293);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x22cddc,_0x553bef,_0x1bf592){const t=_0x22cddc['t'];switch(_0x553bef){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',_0x1bf592);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1bf592);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'},_0x1bf592);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 _0x553bef;}}
23
+ export function getTranslation(_0x4d90ef,_0xeb11e7,_0x29fea1){const t=_0x4d90ef['t'];switch(_0xeb11e7){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',_0x29fea1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x29fea1);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'},_0x29fea1);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 _0xeb11e7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x20e3b2,_0x2c3817){const _0x3cde6d=(0x0,_0x2c3817['t'])('Other');return _0x20e3b2['length']?'groupId'in _0x20e3b2[0x0]?_0x20e3b2:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3cde6d,'order':0x1/0x0,'commands':_0x20e3b2}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3cde6d,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x53f529,_0xf10b8b){const _0x5896a6=(0x0,_0xf10b8b['t'])('Other');return _0x53f529['length']?'groupId'in _0x53f529[0x0]?_0x53f529:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5896a6,'order':0x1/0x0,'commands':_0x53f529}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5896a6,'order':0x1/0x0,'commands':[]}];}