@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.8

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 (490) hide show
  1. package/LICENSE.md +4 -0
  2. package/build/ai.js +2 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/eo.js +1 -1
  20. package/build/translations/es-co.js +1 -1
  21. package/build/translations/es.js +1 -1
  22. package/build/translations/et.js +1 -1
  23. package/build/translations/eu.js +1 -1
  24. package/build/translations/fa.js +1 -1
  25. package/build/translations/fi.js +1 -1
  26. package/build/translations/fr.js +1 -1
  27. package/build/translations/gl.js +1 -1
  28. package/build/translations/gu.js +1 -1
  29. package/build/translations/he.js +1 -1
  30. package/build/translations/hi.js +1 -1
  31. package/build/translations/hr.js +1 -1
  32. package/build/translations/hu.js +1 -1
  33. package/build/translations/hy.js +1 -1
  34. package/build/translations/id.js +1 -1
  35. package/build/translations/it.js +1 -1
  36. package/build/translations/ja.js +1 -1
  37. package/build/translations/jv.js +1 -1
  38. package/build/translations/kk.js +1 -1
  39. package/build/translations/km.js +1 -1
  40. package/build/translations/kn.js +1 -1
  41. package/build/translations/ko.js +1 -1
  42. package/build/translations/ku.js +1 -1
  43. package/build/translations/lt.js +1 -1
  44. package/build/translations/lv.js +1 -1
  45. package/build/translations/ms.js +1 -1
  46. package/build/translations/nb.js +1 -1
  47. package/build/translations/ne.js +1 -1
  48. package/build/translations/nl.js +1 -1
  49. package/build/translations/no.js +1 -1
  50. package/build/translations/oc.js +1 -1
  51. package/build/translations/pl.js +1 -1
  52. package/build/translations/pt-br.js +1 -1
  53. package/build/translations/pt.js +1 -1
  54. package/build/translations/ro.js +1 -1
  55. package/build/translations/ru.js +1 -1
  56. package/build/translations/si.js +1 -1
  57. package/build/translations/sk.js +1 -1
  58. package/build/translations/sl.js +1 -1
  59. package/build/translations/sq.js +1 -1
  60. package/build/translations/sr-latn.js +1 -1
  61. package/build/translations/sr.js +1 -1
  62. package/build/translations/sv.js +1 -1
  63. package/build/translations/th.js +1 -1
  64. package/build/translations/ti.js +1 -1
  65. package/build/translations/tk.js +1 -1
  66. package/build/translations/tr.js +1 -1
  67. package/build/translations/tt.js +1 -1
  68. package/build/translations/ug.js +1 -1
  69. package/build/translations/uk.js +1 -1
  70. package/build/translations/ur.js +1 -1
  71. package/build/translations/uz.js +1 -1
  72. package/build/translations/vi.js +1 -1
  73. package/build/translations/zh-cn.js +1 -1
  74. package/build/translations/zh.js +1 -1
  75. package/dist/index-editor.css +147 -23
  76. package/dist/index.css +182 -24
  77. package/dist/index.js +4 -4
  78. package/dist/translations/af.js +1 -1
  79. package/dist/translations/af.umd.js +1 -1
  80. package/dist/translations/ar.js +1 -1
  81. package/dist/translations/ar.umd.js +1 -1
  82. package/dist/translations/ast.js +1 -1
  83. package/dist/translations/ast.umd.js +1 -1
  84. package/dist/translations/az.js +1 -1
  85. package/dist/translations/az.umd.js +1 -1
  86. package/dist/translations/be.js +1 -1
  87. package/dist/translations/be.umd.js +1 -1
  88. package/dist/translations/bg.js +1 -1
  89. package/dist/translations/bg.umd.js +1 -1
  90. package/dist/translations/bn.js +1 -1
  91. package/dist/translations/bn.umd.js +1 -1
  92. package/dist/translations/bs.js +1 -1
  93. package/dist/translations/bs.umd.js +1 -1
  94. package/dist/translations/ca.js +1 -1
  95. package/dist/translations/ca.umd.js +1 -1
  96. package/dist/translations/cs.js +1 -1
  97. package/dist/translations/cs.umd.js +1 -1
  98. package/dist/translations/da.js +1 -1
  99. package/dist/translations/da.umd.js +1 -1
  100. package/dist/translations/de-ch.js +1 -1
  101. package/dist/translations/de-ch.umd.js +1 -1
  102. package/dist/translations/de.js +1 -1
  103. package/dist/translations/de.umd.js +1 -1
  104. package/dist/translations/el.js +1 -1
  105. package/dist/translations/el.umd.js +1 -1
  106. package/dist/translations/en-au.js +1 -1
  107. package/dist/translations/en-au.umd.js +1 -1
  108. package/dist/translations/en-gb.js +1 -1
  109. package/dist/translations/en-gb.umd.js +1 -1
  110. package/dist/translations/en.js +1 -1
  111. package/dist/translations/en.umd.js +1 -1
  112. package/dist/translations/eo.js +1 -1
  113. package/dist/translations/eo.umd.js +1 -1
  114. package/dist/translations/es-co.js +1 -1
  115. package/dist/translations/es-co.umd.js +1 -1
  116. package/dist/translations/es.js +1 -1
  117. package/dist/translations/es.umd.js +1 -1
  118. package/dist/translations/et.js +1 -1
  119. package/dist/translations/et.umd.js +1 -1
  120. package/dist/translations/eu.js +1 -1
  121. package/dist/translations/eu.umd.js +1 -1
  122. package/dist/translations/fa.js +1 -1
  123. package/dist/translations/fa.umd.js +1 -1
  124. package/dist/translations/fi.js +1 -1
  125. package/dist/translations/fi.umd.js +1 -1
  126. package/dist/translations/fr.js +1 -1
  127. package/dist/translations/fr.umd.js +1 -1
  128. package/dist/translations/gl.js +1 -1
  129. package/dist/translations/gl.umd.js +1 -1
  130. package/dist/translations/gu.js +1 -1
  131. package/dist/translations/gu.umd.js +1 -1
  132. package/dist/translations/he.js +1 -1
  133. package/dist/translations/he.umd.js +1 -1
  134. package/dist/translations/hi.js +1 -1
  135. package/dist/translations/hi.umd.js +1 -1
  136. package/dist/translations/hr.js +1 -1
  137. package/dist/translations/hr.umd.js +1 -1
  138. package/dist/translations/hu.js +1 -1
  139. package/dist/translations/hu.umd.js +1 -1
  140. package/dist/translations/hy.js +1 -1
  141. package/dist/translations/hy.umd.js +1 -1
  142. package/dist/translations/id.js +1 -1
  143. package/dist/translations/id.umd.js +1 -1
  144. package/dist/translations/it.js +1 -1
  145. package/dist/translations/it.umd.js +1 -1
  146. package/dist/translations/ja.js +1 -1
  147. package/dist/translations/ja.umd.js +1 -1
  148. package/dist/translations/jv.js +1 -1
  149. package/dist/translations/jv.umd.js +1 -1
  150. package/dist/translations/kk.js +1 -1
  151. package/dist/translations/kk.umd.js +1 -1
  152. package/dist/translations/km.js +1 -1
  153. package/dist/translations/km.umd.js +1 -1
  154. package/dist/translations/kn.js +1 -1
  155. package/dist/translations/kn.umd.js +1 -1
  156. package/dist/translations/ko.js +1 -1
  157. package/dist/translations/ko.umd.js +1 -1
  158. package/dist/translations/ku.js +1 -1
  159. package/dist/translations/ku.umd.js +1 -1
  160. package/dist/translations/lt.js +1 -1
  161. package/dist/translations/lt.umd.js +1 -1
  162. package/dist/translations/lv.js +1 -1
  163. package/dist/translations/lv.umd.js +1 -1
  164. package/dist/translations/ms.js +1 -1
  165. package/dist/translations/ms.umd.js +1 -1
  166. package/dist/translations/nb.js +1 -1
  167. package/dist/translations/nb.umd.js +1 -1
  168. package/dist/translations/ne.js +1 -1
  169. package/dist/translations/ne.umd.js +1 -1
  170. package/dist/translations/nl.js +1 -1
  171. package/dist/translations/nl.umd.js +1 -1
  172. package/dist/translations/no.js +1 -1
  173. package/dist/translations/no.umd.js +1 -1
  174. package/dist/translations/oc.js +1 -1
  175. package/dist/translations/oc.umd.js +1 -1
  176. package/dist/translations/pl.js +1 -1
  177. package/dist/translations/pl.umd.js +1 -1
  178. package/dist/translations/pt-br.js +1 -1
  179. package/dist/translations/pt-br.umd.js +1 -1
  180. package/dist/translations/pt.js +1 -1
  181. package/dist/translations/pt.umd.js +1 -1
  182. package/dist/translations/ro.js +1 -1
  183. package/dist/translations/ro.umd.js +1 -1
  184. package/dist/translations/ru.js +1 -1
  185. package/dist/translations/ru.umd.js +1 -1
  186. package/dist/translations/si.js +1 -1
  187. package/dist/translations/si.umd.js +1 -1
  188. package/dist/translations/sk.js +1 -1
  189. package/dist/translations/sk.umd.js +1 -1
  190. package/dist/translations/sl.js +1 -1
  191. package/dist/translations/sl.umd.js +1 -1
  192. package/dist/translations/sq.js +1 -1
  193. package/dist/translations/sq.umd.js +1 -1
  194. package/dist/translations/sr-latn.js +1 -1
  195. package/dist/translations/sr-latn.umd.js +1 -1
  196. package/dist/translations/sr.js +1 -1
  197. package/dist/translations/sr.umd.js +1 -1
  198. package/dist/translations/sv.js +1 -1
  199. package/dist/translations/sv.umd.js +1 -1
  200. package/dist/translations/th.js +1 -1
  201. package/dist/translations/th.umd.js +1 -1
  202. package/dist/translations/ti.js +1 -1
  203. package/dist/translations/ti.umd.js +1 -1
  204. package/dist/translations/tk.js +1 -1
  205. package/dist/translations/tk.umd.js +1 -1
  206. package/dist/translations/tr.js +1 -1
  207. package/dist/translations/tr.umd.js +1 -1
  208. package/dist/translations/tt.js +1 -1
  209. package/dist/translations/tt.umd.js +1 -1
  210. package/dist/translations/ug.js +1 -1
  211. package/dist/translations/ug.umd.js +1 -1
  212. package/dist/translations/uk.js +1 -1
  213. package/dist/translations/uk.umd.js +1 -1
  214. package/dist/translations/ur.js +1 -1
  215. package/dist/translations/ur.umd.js +1 -1
  216. package/dist/translations/uz.js +1 -1
  217. package/dist/translations/uz.umd.js +1 -1
  218. package/dist/translations/vi.js +1 -1
  219. package/dist/translations/vi.umd.js +1 -1
  220. package/dist/translations/zh-cn.js +1 -1
  221. package/dist/translations/zh-cn.umd.js +1 -1
  222. package/dist/translations/zh.js +1 -1
  223. package/dist/translations/zh.umd.js +1 -1
  224. package/lang/contexts.json +5 -0
  225. package/lang/translations/af.po +224 -0
  226. package/lang/translations/ar.po +232 -0
  227. package/lang/translations/ast.po +224 -0
  228. package/lang/translations/az.po +224 -0
  229. package/lang/translations/be.po +226 -0
  230. package/lang/translations/bg.po +224 -0
  231. package/lang/translations/bn.po +224 -0
  232. package/lang/translations/bs.po +226 -0
  233. package/lang/translations/ca.po +224 -0
  234. package/lang/translations/cs.po +226 -0
  235. package/lang/translations/da.po +224 -0
  236. package/lang/translations/de-ch.po +224 -0
  237. package/lang/translations/de.po +224 -0
  238. package/lang/translations/el.po +224 -0
  239. package/lang/translations/en-au.po +224 -0
  240. package/lang/translations/en-gb.po +224 -0
  241. package/lang/translations/en.po +224 -0
  242. package/lang/translations/eo.po +224 -0
  243. package/lang/translations/es-co.po +224 -0
  244. package/lang/translations/es.po +224 -0
  245. package/lang/translations/et.po +224 -0
  246. package/lang/translations/eu.po +224 -0
  247. package/lang/translations/fa.po +222 -0
  248. package/lang/translations/fi.po +224 -0
  249. package/lang/translations/fr.po +224 -0
  250. package/lang/translations/gl.po +224 -0
  251. package/lang/translations/gu.po +224 -0
  252. package/lang/translations/he.po +224 -0
  253. package/lang/translations/hi.po +224 -0
  254. package/lang/translations/hr.po +226 -0
  255. package/lang/translations/hu.po +224 -0
  256. package/lang/translations/hy.po +224 -0
  257. package/lang/translations/id.po +222 -0
  258. package/lang/translations/it.po +224 -0
  259. package/lang/translations/ja.po +222 -0
  260. package/lang/translations/jv.po +224 -0
  261. package/lang/translations/kk.po +224 -0
  262. package/lang/translations/km.po +222 -0
  263. package/lang/translations/kn.po +224 -0
  264. package/lang/translations/ko.po +222 -0
  265. package/lang/translations/ku.po +224 -0
  266. package/lang/translations/lt.po +226 -0
  267. package/lang/translations/lv.po +226 -0
  268. package/lang/translations/ms.po +222 -0
  269. package/lang/translations/nb.po +224 -0
  270. package/lang/translations/ne.po +224 -0
  271. package/lang/translations/nl.po +224 -0
  272. package/lang/translations/no.po +224 -0
  273. package/lang/translations/oc.po +224 -0
  274. package/lang/translations/pl.po +226 -0
  275. package/lang/translations/pt-br.po +224 -0
  276. package/lang/translations/pt.po +224 -0
  277. package/lang/translations/ro.po +226 -0
  278. package/lang/translations/ru.po +226 -0
  279. package/lang/translations/si.po +224 -0
  280. package/lang/translations/sk.po +226 -0
  281. package/lang/translations/sl.po +228 -0
  282. package/lang/translations/sq.po +224 -0
  283. package/lang/translations/sr-latn.po +226 -0
  284. package/lang/translations/sr.po +226 -0
  285. package/lang/translations/sv.po +224 -0
  286. package/lang/translations/th.po +222 -0
  287. package/lang/translations/ti.po +224 -0
  288. package/lang/translations/tk.po +224 -0
  289. package/lang/translations/tr.po +224 -0
  290. package/lang/translations/tt.po +222 -0
  291. package/lang/translations/ug.po +222 -0
  292. package/lang/translations/uk.po +226 -0
  293. package/lang/translations/ur.po +224 -0
  294. package/lang/translations/uz.po +224 -0
  295. package/lang/translations/vi.po +222 -0
  296. package/lang/translations/zh-cn.po +222 -0
  297. package/lang/translations/zh.po +222 -0
  298. package/package.json +15 -15
  299. package/src/aiactions/aiactions.d.ts +0 -2
  300. package/src/aiactions/aiactions.js +1 -1
  301. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
  302. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  303. package/src/aiactions/model/aiactionsreply.js +1 -1
  304. package/src/aiassistant/adapters/aiadapter.js +1 -1
  305. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  306. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  307. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  308. package/src/aiassistant/aiassistant.js +1 -1
  309. package/src/aiassistant/aiassistantediting.js +1 -1
  310. package/src/aiassistant/aiassistantui.js +1 -1
  311. package/src/aiassistant/legacyerrors.js +1 -1
  312. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  313. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  314. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  316. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  317. package/src/aiassistant/ui/form/aiformview.js +1 -1
  318. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  319. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  320. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  321. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  322. package/src/aiassistant/utils/common-translations.js +1 -1
  323. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  324. package/src/aiballoon/aiballoon.js +1 -1
  325. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  326. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  327. package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
  328. package/src/aiballoon/ui/aiballoonview.js +1 -1
  329. package/src/aichat/aichat.d.ts +12 -4
  330. package/src/aichat/aichat.js +1 -1
  331. package/src/aichat/aichatcontroller.d.ts +0 -1
  332. package/src/aichat/aichatcontroller.js +1 -1
  333. package/src/aichat/aichatui.d.ts +7 -3
  334. package/src/aichat/aichatui.js +1 -1
  335. package/src/aichat/model/aichatcontext.d.ts +1 -227
  336. package/src/aichat/model/aichatcontext.js +1 -1
  337. package/src/aichat/model/aichatconversation.js +1 -1
  338. package/src/aichat/model/aichatinteraction.d.ts +3 -0
  339. package/src/aichat/model/aichatinteraction.js +1 -1
  340. package/src/aichat/model/aichatmodels.d.ts +0 -30
  341. package/src/aichat/model/aichatmodels.js +1 -1
  342. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  343. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  344. package/src/aichat/ui/aichatfeedview.js +1 -1
  345. package/src/aichat/ui/aichatheaderview.js +1 -1
  346. package/src/aichat/ui/aichatview.js +1 -1
  347. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  348. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  349. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  350. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  351. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  352. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  353. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  354. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  355. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  356. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  357. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  358. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  359. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  362. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
  363. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  366. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
  367. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  368. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
  369. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  370. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  371. package/src/aichat/utils/eventnames.js +1 -1
  372. package/src/aichat/utils/promisequeue.js +1 -1
  373. package/src/aichat/utils/scrollmanager.js +1 -1
  374. package/src/aichathistory/aichathistory.js +1 -1
  375. package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
  376. package/src/aichathistory/aichathistorycontroller.js +1 -1
  377. package/src/aichathistory/aichathistoryui.d.ts +0 -1
  378. package/src/aichathistory/aichathistoryui.js +1 -1
  379. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  380. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  381. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  382. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  383. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  384. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  385. package/src/aiconfig.d.ts +64 -9
  386. package/src/aicore/aiconnector.d.ts +13 -1
  387. package/src/aicore/aiconnector.js +1 -1
  388. package/src/aicore/aiediting.d.ts +0 -1
  389. package/src/aicore/aiediting.js +1 -1
  390. package/src/aicore/model/aicapabilities.js +1 -1
  391. package/src/aicore/model/aicontext.js +1 -1
  392. package/src/aicore/model/aiinteraction.d.ts +41 -1
  393. package/src/aicore/model/aiinteraction.js +1 -1
  394. package/src/aicore/model/aireply.d.ts +2 -2
  395. package/src/aicore/model/aireply.js +1 -1
  396. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  397. package/src/aicore/pipeline/airesponseparser.js +2 -2
  398. package/src/aicore/ui/aidisclaimerview.js +1 -1
  399. package/src/aicore/ui/aiskeleton.js +1 -1
  400. package/src/aicore/ui/aispinner.js +1 -1
  401. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
  404. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  407. package/src/aicore/utils/common-translations.js +1 -1
  408. package/src/aicore/utils/createresizebutton.js +1 -1
  409. package/src/aicore/utils/documentposition.js +1 -1
  410. package/src/aicore/utils/documentrange.js +1 -1
  411. package/src/aicore/utils/eventnames.d.ts +0 -1
  412. package/src/aicore/utils/eventnames.js +1 -1
  413. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  414. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  415. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  416. package/src/aicore/utils/htmlparser.js +1 -1
  417. package/src/aicore/utils/htmlstreamer.js +1 -1
  418. package/src/aieditorintegration/aieditorintegration.js +1 -1
  419. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
  420. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  421. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  422. package/src/aiquickactions/aiquickactions.d.ts +164 -1
  423. package/src/aiquickactions/aiquickactions.js +1 -1
  424. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  425. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  426. package/src/aiquickactions/aiquickactionsui.d.ts +0 -49
  427. package/src/aiquickactions/aiquickactionsui.js +1 -1
  428. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  431. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
  432. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  433. package/src/aireviewmode/aireviewmode.d.ts +29 -0
  434. package/src/aireviewmode/aireviewmode.js +1 -1
  435. package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
  436. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  437. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
  438. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  439. package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
  440. package/src/aireviewmode/aireviewmodeui.js +1 -1
  441. package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
  442. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  443. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
  444. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  445. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  446. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  447. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  448. package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
  449. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  450. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
  451. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  452. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  453. package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
  454. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  455. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  456. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  457. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  458. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  459. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  460. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  461. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  462. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  463. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  464. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  465. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  466. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  467. package/src/aitabs/aitabs.d.ts +6 -16
  468. package/src/aitabs/aitabs.js +1 -1
  469. package/src/aitabs/aitabsmainview.js +1 -1
  470. package/src/aitabs/tabs/aitabsview.js +1 -1
  471. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  472. package/src/aitabs/tabs/tabpanelview.js +1 -1
  473. package/src/index.d.ts +1 -1
  474. package/src/index.js +1 -1
  475. package/theme/aiballoon/aiballoon.css +17 -4
  476. package/theme/aichat/aichat.css +1 -0
  477. package/theme/aichat/aichatfeed.css +39 -0
  478. package/theme/aichat/aichathistory.css +26 -9
  479. package/theme/aichat/aiminitoolbar.css +8 -0
  480. package/theme/aichat/aisuggestioncontainer.css +6 -0
  481. package/theme/aieditorintegration/aitogglebutton.css +23 -0
  482. package/theme/aiquickactions/aiquickactions.css +23 -4
  483. package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
  484. package/theme/aireviewmode/aireviewmode.css +23 -0
  485. package/theme/aitabs/aitabsview.css +6 -1
  486. package/theme/common/aibutton.css +1 -5
  487. package/theme/common/aiheader.css +1 -0
  488. package/theme/common/aitrackchanges.css +13 -0
  489. package/src/aiquickactions/utils/common-translations.d.ts +0 -9
  490. package/src/aiquickactions/utils/common-translations.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a45fc=_0xb415;(function(_0x55fa73,_0x11b980){const _0x25d29f=_0xb415,_0x10837a=_0x55fa73();while(!![]){try{const _0x23f583=parseInt(_0x25d29f(0x15d))/0x1+parseInt(_0x25d29f(0x167))/0x2+-parseInt(_0x25d29f(0x149))/0x3*(parseInt(_0x25d29f(0x14a))/0x4)+parseInt(_0x25d29f(0x155))/0x5*(-parseInt(_0x25d29f(0x18a))/0x6)+-parseInt(_0x25d29f(0x182))/0x7+parseInt(_0x25d29f(0x154))/0x8*(-parseInt(_0x25d29f(0x192))/0x9)+-parseInt(_0x25d29f(0x151))/0xa*(-parseInt(_0x25d29f(0x184))/0xb);if(_0x23f583===_0x11b980)break;else _0x10837a['push'](_0x10837a['shift']());}catch(_0x3cf49f){_0x10837a['push'](_0x10837a['shift']());}}}(_0xe52d,0xe304b));import{ObservableMixin as _0x20bf9b,uid as _0x3829f5}from'ckeditor5/src/utils.js';import{Element as _0x392cbd,findAll as _0xc3ba80,getAttribute as _0x56407f,getParents as _0x38bae6,Document as _0x30f4e8,parse as _0x53df46,Text as _0x18f811}from'../utils/htmlparser.js';import{AIResponseParser as _0xc10d8f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4890ca}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x2a45fc(0x14c),_0x2a45fc(0x176)];export const AI_REPLY_TYPES_IGNORED=[_0x2a45fc(0x183)];export const AI_REPLY_TITLE_TYPE=_0x2a45fc(0x16c);export class AIReply extends _0x20bf9b(){['id'];[_0x2a45fc(0x17c)];[_0x2a45fc(0x175)];[_0x2a45fc(0x18c)]=[];[_0x2a45fc(0x15e)]=new _0x30f4e8([]);[_0x2a45fc(0x18b)]=new _0x30f4e8([]);[_0x2a45fc(0x152)]=[];[_0x2a45fc(0x185)]=!0x1;[_0x2a45fc(0x157)];[_0x2a45fc(0x17b)];[_0x2a45fc(0x158)];[_0x2a45fc(0x159)];constructor({type:_0x224088,content:_0x5a2d9f='',isDone:_0x375b2b=!0x1,interactionId:_0x15ed44,areActionsDisabled:_0x4e6952,documentContextContent:_0x17ba84,editor:_0x601ed3}){const _0x200174=_0x2a45fc;super(),this['id']=_0x3829f5(),this[_0x200174(0x17c)]=_0x15ed44,this[_0x200174(0x175)]=_0x224088,this[_0x200174(0x185)]=!!_0x4e6952,this[_0x200174(0x159)]=_0x601ed3,this[_0x200174(0x17b)]=new _0xc10d8f(),this[_0x200174(0x158)]=new _0x4890ca(),this[_0x200174(0x157)]=_0x53df46(_0x17ba84||''),this[_0x200174(0x177)](_0x200174(0x174),_0x375b2b),this['on'](_0x200174(0x170),()=>{const _0x37e6d9=_0x200174;this[_0x37e6d9(0x17a)]();}),this[_0x200174(0x177)](_0x200174(0x169),_0x5a2d9f);}[_0x2a45fc(0x15a)](_0x454837){const _0x21c48c=_0x2a45fc;this[_0x21c48c(0x177)](_0x21c48c(0x169),this[_0x21c48c(0x169)]+_0x454837);}[_0x2a45fc(0x15f)](){const _0x3e5898=_0x2a45fc;this[_0x3e5898(0x174)]||(this[_0x3e5898(0x177)](_0x3e5898(0x174),!0x0),this[_0x3e5898(0x17a)]());}[_0x2a45fc(0x178)](){const _0x49613a=_0x2a45fc;this[_0x49613a(0x18f)]();}[_0x2a45fc(0x191)](_0x2ef789,_0x326a6a){const _0x35c0fc=_0x2a45fc;this[_0x35c0fc(0x152)][_0x2ef789][_0x35c0fc(0x160)]=_0x326a6a,this[_0x35c0fc(0x18d)](_0x35c0fc(0x187),{'reply':this,'index':_0x2ef789,'state':_0x326a6a});}[_0x2a45fc(0x17a)](){const _0x12f6a2=_0x2a45fc;if(_0x12f6a2(0x14c)===this[_0x12f6a2(0x175)]){this[_0x12f6a2(0x15e)]=this[_0x12f6a2(0x17b)][_0x12f6a2(0x153)](this[_0x12f6a2(0x169)]);const _0x53c9d1=this[_0x12f6a2(0x152)];this[_0x12f6a2(0x150)]();const _0x4a96b3=this[_0x12f6a2(0x17e)](_0x53c9d1,this[_0x12f6a2(0x152)]);(_0x4a96b3[_0x12f6a2(0x168)]||this[_0x12f6a2(0x174)])&&this[_0x12f6a2(0x18d)](_0x12f6a2(0x14f),this,_0x4a96b3);}else this[_0x12f6a2(0x15e)]=this[_0x12f6a2(0x17b)][_0x12f6a2(0x188)](this[_0x12f6a2(0x169)]),this[_0x12f6a2(0x18d)](_0x12f6a2(0x14f),this);}[_0x2a45fc(0x17e)](_0x300502,_0x1d9c06){const _0x5d44fd=_0x2a45fc,_0xdfafc6=[];for(const _0x33317f of _0x1d9c06){const _0x3c1bce=_0x300502[_0x33317f[_0x5d44fd(0x17f)]];_0x3c1bce?_0x3c1bce[_0x5d44fd(0x180)][_0x5d44fd(0x168)]!==_0x33317f[_0x5d44fd(0x180)][_0x5d44fd(0x168)]?_0xdfafc6[_0x5d44fd(0x16d)](_0x33317f):_0x3c1bce[_0x5d44fd(0x180)][_0x5d44fd(0x14b)]((_0x28ef4b,_0x538ed4)=>{const _0x4cd1f5=_0x5d44fd,_0x415b78=_0x33317f[_0x4cd1f5(0x180)][_0x538ed4];_0x28ef4b['id']!==_0x415b78['id']&&_0xdfafc6[_0x4cd1f5(0x16d)](_0x33317f);}):_0xdfafc6[_0x5d44fd(0x16d)](_0x33317f);}return _0xdfafc6;}[_0x2a45fc(0x150)](){const _0x1a9f2b=_0x2a45fc,_0x558269=new _0x392cbd('p',{},[new _0x392cbd(_0x1a9f2b(0x165),{'style':_0x1a9f2b(0x166)},[new _0x18f811(_0x1a9f2b(0x190))])]),_0x11a7e5=this[_0x1a9f2b(0x158)][_0x1a9f2b(0x181)](this[_0x1a9f2b(0x15e)],this[_0x1a9f2b(0x157)][_0x1a9f2b(0x163)](!0x0),{'markUnstableElements':!this[_0x1a9f2b(0x174)],'replaceRemovedWith':_0x558269,'cutAfterLastChange':!this[_0x1a9f2b(0x174)]});if(!_0x11a7e5[_0x1a9f2b(0x14d)][_0x1a9f2b(0x168)]&&!this[_0x1a9f2b(0x174)])return;this[_0x1a9f2b(0x18b)]=_0x11a7e5[_0x1a9f2b(0x15e)];let _0x4c0a68=[];if(_0xc3ba80(_0x51f7b7=>{const _0x17b91b=_0x1a9f2b,_0x83a7e5=_0x56407f(_0x51f7b7,_0x17b91b(0x18e));if(!_0x83a7e5||!_0xc744a7(_0x83a7e5))return!0x1;const _0x23ea13=[_0x51f7b7,..._0x38bae6(_0x51f7b7)]['at'](-0x2);if(_0x51f7b7!=_0x23ea13){const _0x420e46=_0x56407f(_0x23ea13,_0x17b91b(0x18e));_0xc744a7(_0x420e46)||(_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x23ea13,'id':_0x420e46,'type':_0x17b91b(0x171)}),_0x11a7e5[_0x17b91b(0x14d)][_0x17b91b(0x16d)](_0x420e46));}else _0x11a7e5[_0x17b91b(0x14d)][_0x17b91b(0x172)](_0x83a7e5)?_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x171),'id':_0x83a7e5}):_0x11a7e5[_0x17b91b(0x156)][_0x17b91b(0x172)](_0x83a7e5)?_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x16f),'id':_0x83a7e5,'anchorId':_0x56407f(_0x51f7b7[_0x17b91b(0x179)],_0x17b91b(0x18e))}):_0x4c0a68[_0x17b91b(0x16d)]({'node':_0x51f7b7,'type':_0x17b91b(0x162),'id':_0x83a7e5});return!0x0;},this[_0x1a9f2b(0x18b)]),_0x4c0a68=_0x4c0a68[_0x1a9f2b(0x15b)](({node:_0x24b46d})=>[..._0x38bae6(_0x24b46d),_0x24b46d][_0x1a9f2b(0x186)](_0x4ffb63=>!_0x56407f(_0x4ffb63,_0x1a9f2b(0x16b)))),0x0==_0x4c0a68[_0x1a9f2b(0x168)])return;const _0x16b694=[[_0x4c0a68[0x0]]];for(let _0x4416fb=0x1;_0x4416fb<_0x4c0a68[_0x1a9f2b(0x168)];_0x4416fb++){const _0x554986=_0x16b694[_0x16b694[_0x1a9f2b(0x168)]-0x1],_0x324e49=_0x554986[_0x554986[_0x1a9f2b(0x168)]-0x1];_0x4c0a68[_0x4416fb][_0x1a9f2b(0x15c)][_0x1a9f2b(0x179)]==_0x324e49[_0x1a9f2b(0x15c)]&&_0x1a9f2b(0x171)!=_0x4c0a68[_0x4416fb][_0x1a9f2b(0x175)]&&_0x1a9f2b(0x171)!=_0x324e49[_0x1a9f2b(0x175)]?_0x554986[_0x1a9f2b(0x16d)](_0x4c0a68[_0x4416fb]):_0x16b694[_0x1a9f2b(0x16d)]([_0x4c0a68[_0x4416fb]]);}for(const _0x16733e of _0x16b694){const _0x1ad921=_0x16733e[0x0],_0x55c1ee=_0x16733e[_0x16733e[_0x1a9f2b(0x168)]-0x1],_0x273993=_0x4599d2(_0x1ad921[_0x1a9f2b(0x15c)][_0x1a9f2b(0x179)]);_0x273993&&_0x16733e[_0x1a9f2b(0x164)](_0x273993);const _0x140225=_0x4599d2(_0x55c1ee[_0x1a9f2b(0x15c)][_0x1a9f2b(0x173)]);_0x140225&&_0x16733e[_0x1a9f2b(0x16d)](_0x140225);}function _0xc744a7(_0x313d1e){const _0x5cb6be=_0x1a9f2b;return _0x11a7e5[_0x5cb6be(0x14d)][_0x5cb6be(0x172)](_0x313d1e)||_0x11a7e5[_0x5cb6be(0x156)][_0x5cb6be(0x172)](_0x313d1e)||_0x11a7e5[_0x5cb6be(0x161)][_0x5cb6be(0x172)](_0x313d1e);}function _0x4599d2(_0x80631f){const _0x4fc427=_0x1a9f2b;if(_0x80631f&&_0x56407f(_0x80631f,_0x4fc427(0x18e))&&!_0x56407f(_0x80631f,_0x4fc427(0x16b))){const _0x18f340=_0x56407f(_0x80631f,_0x4fc427(0x18e));if(!_0xc744a7(_0x18f340))return{'node':_0x80631f,'type':_0x4fc427(0x14e),'id':_0x18f340};}return null;}this[_0x1a9f2b(0x152)]=_0x16b694[_0x1a9f2b(0x189)]((_0x2646ae,_0x55ebae)=>({'changes':_0x2646ae,'state':_0x1a9f2b(0x17d),'index':_0x55ebae}));}}function _0xb415(_0x10ab0b,_0x448428){const _0xe52dc8=_0xe52d();return _0xb415=function(_0xb4157a,_0x292b1d){_0xb4157a=_0xb4157a-0x149;let _0x2adb67=_0xe52dc8[_0xb4157a];return _0x2adb67;},_0xb415(_0x10ab0b,_0x448428);}export function isValidReplyType(_0x128d0d){const _0x4c0325=_0x2a45fc;return Object[_0x4c0325(0x16e)](AI_REPLY_TYPES)[_0x4c0325(0x172)](_0x128d0d);}export function isIgnoredReplyType(_0x44bbb7){const _0x1860c4=_0x2a45fc;return AI_REPLY_TYPES_IGNORED[_0x1860c4(0x172)](_0x44bbb7);}export function isReplyTitleType(_0x1570bf){return _0x1570bf===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2c2966){const _0x3aba57=_0x2a45fc;return _0x3aba57(0x16a)===_0x2c2966;}function _0xe52d(){const _0x34fbfe=['content','source','data-unstable','conversation-title','push','values','new','change:content','modified','includes','nextSibling','isDone','type','text-delta','set','destroy','previousSibling','onContentChange','aiResponseParser','interactionId','pending','_getDifferentChangeGroups','index','changes','merge','7448602pNHixh','reasoning','87681niIChG','areActionsDisabled','every','replyChangeGroupStateUpdated','convertMarkdownToHTML','map','84KWEYGl','parsedMergedContent','sources','fire','data-id','stopListening','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','setChangeGroupState','126AUjlZH','636129ARJHgE','28MlClIT','forEach','modification-delta','modifiedNodeIds','context','replyContentUpdated','updateChangeGroups','4600CTDxIc','changeGroups','parseAndNormalizeHTML','234328HUqRXm','460025tnajtY','newNodeIds','documentContextContent','aiResponseApplier','editor','appendContent','filter','node','589538qrXlKC','parsedContent','done','state','removedNodeIds','removed','cloneNode','unshift','span','color:\x20#808080;\x20font-style:\x20italic','1840400ZVFubO','length'];_0xe52d=function(){return _0x34fbfe;};return _0xe52d();}
23
+ const _0x402ebe=_0x612b;(function(_0x387310,_0x379658){const _0x292ce6=_0x612b,_0x640cc5=_0x387310();while(!![]){try{const _0x9581d7=parseInt(_0x292ce6(0x136))/0x1+parseInt(_0x292ce6(0x14d))/0x2+parseInt(_0x292ce6(0x153))/0x3*(parseInt(_0x292ce6(0x11c))/0x4)+parseInt(_0x292ce6(0x13a))/0x5*(-parseInt(_0x292ce6(0x131))/0x6)+-parseInt(_0x292ce6(0x128))/0x7*(-parseInt(_0x292ce6(0x157))/0x8)+parseInt(_0x292ce6(0x123))/0x9*(-parseInt(_0x292ce6(0x15f))/0xa)+-parseInt(_0x292ce6(0x147))/0xb*(-parseInt(_0x292ce6(0x141))/0xc);if(_0x9581d7===_0x379658)break;else _0x640cc5['push'](_0x640cc5['shift']());}catch(_0xf7ef65){_0x640cc5['push'](_0x640cc5['shift']());}}}(_0x1c63,0xe0545));function _0x612b(_0x21b833,_0x15a4ca){const _0x1c63a4=_0x1c63();return _0x612b=function(_0x612bbf,_0x1f9908){_0x612bbf=_0x612bbf-0x117;let _0x5ef188=_0x1c63a4[_0x612bbf];return _0x5ef188;},_0x612b(_0x21b833,_0x15a4ca);}import{ObservableMixin as _0x293c36,uid as _0x32b781}from'ckeditor5/src/utils.js';import{Element as _0x275a6a,findAll as _0x58dc15,getAttribute as _0x52582a,getParents as _0x31c1ad,Document as _0x48d9ef,parse as _0x295d2f,Text as _0x22f7d2}from'../utils/htmlparser.js';import{AIResponseParser as _0x22b690}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5a6cfd}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x402ebe(0x12d),_0x402ebe(0x133),_0x402ebe(0x124),_0x402ebe(0x121)];export const AI_REPLY_TYPES_IGNORED=[_0x402ebe(0x12a)];export const AI_REPLY_TITLE_TYPE=_0x402ebe(0x12a);function _0x1c63(){const _0x11e31c=['Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','set','change:content','push','202116zuZIgT','sources','fire','stopListening','_getDifferentChangeGroups','data-id','946Ynlmio','previousSibling','isDone','changes','updateChangeGroups','newNodeIds','521316ANhAUv','setChangeGroupState','includes','pending','removedNodeIds','appendContent','153eKPOXE','data-unstable','changeGroups','aiResponseParser','248DeGEOH','replyChangeGroupStateUpdated','type','documentContextContent','every','nextSibling','done','content','590UExkVI','context','filter','removed','map','length','editor','parseAndNormalizeHTML','unshift','63044GcaEiK','modified','merge','onContentChange','cloneNode','reasoning','interactionId','274779EDgcFs','web-search','source','node','areActionsDisabled','92267VtQBXq','new','conversation-title','destroy','values','modification-delta','forEach','state','convertMarkdownToHTML','306vsDiyA','parsedContent','text-delta','modifiedNodeIds','span','981957CrTgNv','aiResponseApplier','parsedMergedContent','index','116015ARfKTC','replyContentUpdated','color:\x20#808080;\x20font-style:\x20italic'];_0x1c63=function(){return _0x11e31c;};return _0x1c63();}export class AIReply extends _0x293c36(){['id'];[_0x402ebe(0x122)];[_0x402ebe(0x159)];[_0x402ebe(0x142)]=[];[_0x402ebe(0x132)]=new _0x48d9ef([]);[_0x402ebe(0x138)]=new _0x48d9ef([]);[_0x402ebe(0x155)]=[];[_0x402ebe(0x127)]=!0x1;[_0x402ebe(0x15a)];[_0x402ebe(0x156)];[_0x402ebe(0x137)];[_0x402ebe(0x119)];constructor({type:_0x4b8d67,content:_0x42fbf3='',isDone:_0x5eb4ed=!0x1,interactionId:_0xb62895,areActionsDisabled:_0x5d92b5,documentContextContent:_0x209301,editor:_0x5bce9b}){const _0x4a4768=_0x402ebe;super(),this['id']=_0x32b781(),this[_0x4a4768(0x122)]=_0xb62895,this[_0x4a4768(0x159)]=_0x4b8d67,this[_0x4a4768(0x127)]=!!_0x5d92b5,this[_0x4a4768(0x119)]=_0x5bce9b,this[_0x4a4768(0x156)]=new _0x22b690(),this[_0x4a4768(0x137)]=new _0x5a6cfd(),this[_0x4a4768(0x15a)]=_0x295d2f(_0x209301||''),this[_0x4a4768(0x13e)](_0x4a4768(0x149),_0x5eb4ed),this['on'](_0x4a4768(0x13f),()=>{const _0x1f32e2=_0x4a4768;this[_0x1f32e2(0x11f)]();}),this[_0x4a4768(0x13e)](_0x4a4768(0x15e),_0x42fbf3);}[_0x402ebe(0x152)](_0x526508){const _0x2aca1f=_0x402ebe;this[_0x2aca1f(0x13e)](_0x2aca1f(0x15e),this[_0x2aca1f(0x15e)]+_0x526508);}[_0x402ebe(0x15d)](){const _0x47e8f8=_0x402ebe;this[_0x47e8f8(0x149)]||(this[_0x47e8f8(0x13e)](_0x47e8f8(0x149),!0x0),this[_0x47e8f8(0x11f)]());}[_0x402ebe(0x12b)](){const _0x477c11=_0x402ebe;this[_0x477c11(0x144)]();}[_0x402ebe(0x14e)](_0x1b3454,_0x46fe28){const _0x410cde=_0x402ebe;this[_0x410cde(0x155)][_0x1b3454][_0x410cde(0x12f)]=_0x46fe28,this[_0x410cde(0x143)](_0x410cde(0x158),{'reply':this,'index':_0x1b3454,'state':_0x46fe28});}[_0x402ebe(0x11f)](){const _0x42684e=_0x402ebe;if(_0x42684e(0x12d)===this[_0x42684e(0x159)]){this[_0x42684e(0x132)]=this[_0x42684e(0x156)][_0x42684e(0x11a)](this[_0x42684e(0x15e)]);const _0x3c3406=this[_0x42684e(0x155)];this[_0x42684e(0x14b)]();const _0xfac42=this[_0x42684e(0x145)](_0x3c3406,this[_0x42684e(0x155)]);(_0xfac42[_0x42684e(0x118)]||this[_0x42684e(0x149)])&&this[_0x42684e(0x143)](_0x42684e(0x13b),this,_0xfac42);}else this[_0x42684e(0x132)]=this[_0x42684e(0x156)][_0x42684e(0x130)](this[_0x42684e(0x15e)]),this[_0x42684e(0x143)](_0x42684e(0x13b),this);}[_0x402ebe(0x145)](_0x314785,_0x205d9f){const _0x5d16a4=_0x402ebe,_0x51c01c=[];for(const _0x5756ed of _0x205d9f){const _0x582f54=_0x314785[_0x5756ed[_0x5d16a4(0x139)]];_0x582f54?_0x582f54[_0x5d16a4(0x14a)][_0x5d16a4(0x118)]!==_0x5756ed[_0x5d16a4(0x14a)][_0x5d16a4(0x118)]?_0x51c01c[_0x5d16a4(0x140)](_0x5756ed):_0x582f54[_0x5d16a4(0x14a)][_0x5d16a4(0x12e)]((_0x412afd,_0x25124f)=>{const _0x5173e3=_0x5d16a4,_0x392be0=_0x5756ed[_0x5173e3(0x14a)][_0x25124f];_0x412afd['id']!==_0x392be0['id']&&_0x51c01c[_0x5173e3(0x140)](_0x5756ed);}):_0x51c01c[_0x5d16a4(0x140)](_0x5756ed);}return _0x51c01c;}[_0x402ebe(0x14b)](){const _0x921784=_0x402ebe,_0x1462e2=new _0x275a6a('p',{},[new _0x275a6a(_0x921784(0x135),{'style':_0x921784(0x13c)},[new _0x22f7d2(_0x921784(0x13d))])]),_0x45645d=this[_0x921784(0x137)][_0x921784(0x11e)](this[_0x921784(0x132)],this[_0x921784(0x15a)][_0x921784(0x120)](!0x0),{'markUnstableElements':!this[_0x921784(0x149)],'replaceRemovedWith':_0x1462e2,'cutAfterLastChange':!this[_0x921784(0x149)]});if(!_0x45645d[_0x921784(0x134)][_0x921784(0x118)]&&!this[_0x921784(0x149)])return;this[_0x921784(0x138)]=_0x45645d[_0x921784(0x132)];let _0x331a1b=[];if(_0x58dc15(_0x584df2=>{const _0x388336=_0x921784,_0x90be56=_0x52582a(_0x584df2,_0x388336(0x146));if(!_0x90be56||!_0x9cfab8(_0x90be56))return!0x1;const _0x530ddb=[_0x584df2,..._0x31c1ad(_0x584df2)]['at'](-0x2);if(_0x584df2!=_0x530ddb){const _0x3032ab=_0x52582a(_0x530ddb,_0x388336(0x146));_0x9cfab8(_0x3032ab)||(_0x331a1b[_0x388336(0x140)]({'node':_0x530ddb,'id':_0x3032ab,'type':_0x388336(0x11d)}),_0x45645d[_0x388336(0x134)][_0x388336(0x140)](_0x3032ab));}else _0x45645d[_0x388336(0x134)][_0x388336(0x14f)](_0x90be56)?_0x331a1b[_0x388336(0x140)]({'node':_0x584df2,'type':_0x388336(0x11d),'id':_0x90be56}):_0x45645d[_0x388336(0x14c)][_0x388336(0x14f)](_0x90be56)?_0x331a1b[_0x388336(0x140)]({'node':_0x584df2,'type':_0x388336(0x129),'id':_0x90be56,'anchorId':_0x52582a(_0x584df2[_0x388336(0x148)],_0x388336(0x146))}):_0x331a1b[_0x388336(0x140)]({'node':_0x584df2,'type':_0x388336(0x162),'id':_0x90be56});return!0x0;},this[_0x921784(0x138)]),_0x331a1b=_0x331a1b[_0x921784(0x161)](({node:_0x1aa363})=>[..._0x31c1ad(_0x1aa363),_0x1aa363][_0x921784(0x15b)](_0x191989=>!_0x52582a(_0x191989,_0x921784(0x154)))),0x0==_0x331a1b[_0x921784(0x118)])return;const _0x174b44=[[_0x331a1b[0x0]]];for(let _0x58e417=0x1;_0x58e417<_0x331a1b[_0x921784(0x118)];_0x58e417++){const _0x29819b=_0x174b44[_0x174b44[_0x921784(0x118)]-0x1],_0x21ff0c=_0x29819b[_0x29819b[_0x921784(0x118)]-0x1];_0x331a1b[_0x58e417][_0x921784(0x126)][_0x921784(0x148)]==_0x21ff0c[_0x921784(0x126)]&&_0x921784(0x11d)!=_0x331a1b[_0x58e417][_0x921784(0x159)]&&_0x921784(0x11d)!=_0x21ff0c[_0x921784(0x159)]?_0x29819b[_0x921784(0x140)](_0x331a1b[_0x58e417]):_0x174b44[_0x921784(0x140)]([_0x331a1b[_0x58e417]]);}for(const _0xd72c25 of _0x174b44){const _0x2b207b=_0xd72c25[0x0],_0x28f5ee=_0xd72c25[_0xd72c25[_0x921784(0x118)]-0x1],_0x1f4ac8=_0x281136(_0x2b207b[_0x921784(0x126)][_0x921784(0x148)]);_0x1f4ac8&&_0xd72c25[_0x921784(0x11b)](_0x1f4ac8);const _0x49423d=_0x281136(_0x28f5ee[_0x921784(0x126)][_0x921784(0x15c)]);_0x49423d&&_0xd72c25[_0x921784(0x140)](_0x49423d);}function _0x9cfab8(_0x11fee8){const _0x4e3680=_0x921784;return _0x45645d[_0x4e3680(0x134)][_0x4e3680(0x14f)](_0x11fee8)||_0x45645d[_0x4e3680(0x14c)][_0x4e3680(0x14f)](_0x11fee8)||_0x45645d[_0x4e3680(0x151)][_0x4e3680(0x14f)](_0x11fee8);}function _0x281136(_0xf7452){const _0xd25661=_0x921784;if(_0xf7452&&_0x52582a(_0xf7452,_0xd25661(0x146))&&!_0x52582a(_0xf7452,_0xd25661(0x154))){const _0x5a9a0b=_0x52582a(_0xf7452,_0xd25661(0x146));if(!_0x9cfab8(_0x5a9a0b))return{'node':_0xf7452,'type':_0xd25661(0x160),'id':_0x5a9a0b};}return null;}this[_0x921784(0x155)]=_0x174b44[_0x921784(0x117)]((_0x2383da,_0x49f6e8)=>({'changes':_0x2383da,'state':_0x921784(0x150),'index':_0x49f6e8}));}}export function isValidReplyType(_0xa73b11){const _0x1fbcc3=_0x402ebe;return Object[_0x1fbcc3(0x12c)](AI_REPLY_TYPES)[_0x1fbcc3(0x14f)](_0xa73b11);}export function isIgnoredReplyType(_0x453ac1){const _0x1fff6c=_0x402ebe;return AI_REPLY_TYPES_IGNORED[_0x1fff6c(0x14f)](_0x453ac1);}export function isReplyTitleType(_0x19e1aa){return _0x19e1aa===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x4dd6cb){const _0x48b869=_0x402ebe;return _0x48b869(0x125)===_0x4dd6cb;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3febde=_0x5065;(function(_0x35bb6f,_0x325c6d){const _0x24c588=_0x5065,_0x397d7e=_0x35bb6f();while(!![]){try{const _0xb3bd6b=parseInt(_0x24c588(0x1ee))/0x1+parseInt(_0x24c588(0x1ef))/0x2*(parseInt(_0x24c588(0x1dd))/0x3)+parseInt(_0x24c588(0x205))/0x4*(parseInt(_0x24c588(0x1d8))/0x5)+parseInt(_0x24c588(0x1c6))/0x6+-parseInt(_0x24c588(0x1d0))/0x7*(parseInt(_0x24c588(0x1f0))/0x8)+parseInt(_0x24c588(0x1e8))/0x9*(-parseInt(_0x24c588(0x1c5))/0xa)+-parseInt(_0x24c588(0x1da))/0xb;if(_0xb3bd6b===_0x325c6d)break;else _0x397d7e['push'](_0x397d7e['shift']());}catch(_0x24155b){_0x397d7e['push'](_0x397d7e['shift']());}}}(_0x24aa,0x398eb));import{ObservableMixin as _0x5d1755,uid as _0x15d1e1}from'ckeditor5/src/utils.js';function _0x24aa(){const _0x38c81b=['afterend','_replaceNode','modifiedIds','_findFallbackReferenceNode','data-id','_findNextElementWithDataId','1810CScfCa','newIds','5797385Ahvqtf','indexOf','previousSibling','42702Uzpclu','reverse','length','cutAfterLastChange','splice','_findReferenceNode','removedIds','has','map','_existingDataIds','_hasWrappedParent','64026nOwQYU','_isDelNode','_markWrappedElements','lastChild','parentNode','_isExistingContentComment','146844wlYTcz','28xHzCAz','424AFwgBR','lastTouchedId','new-element','from','cloneNode','_isExistingNode','data-removed','trim','_removeSpecialComments','_touchedNodesState','_storeDeletedElementIds','_markLastTagElementUnstable','_findPrevElementWithDataId','filter','data-unstable','merge','nodeType','_getUid','_isNewNode','_insertNodes','includes','4584ulsUPw','_markUnstableElements','slice','nextSibling','push','_getNodeDataId','forEach','markUnstableElements','80untfiN','573390qEbAae','replaceRemovedWith','data-wrapped-id','afterbegin','childNodes','markUnstableElementsDepth','beforebegin','match','invalidIds','_generateUid','4865bURcbT','true'];_0x24aa=function(){return _0x38c81b;};return _0x24aa();}function _0x5065(_0x3748ad,_0x17663c){const _0x24aa45=_0x24aa();return _0x5065=function(_0x506502,_0x347536){_0x506502=_0x506502-0x1be;let _0x19723d=_0x24aa45[_0x506502];return _0x19723d;},_0x5065(_0x3748ad,_0x17663c);}import{findAllByAttribute as _0x3b2eec,findByAttribute as _0x48c6d9,getAttribute as _0x4e3db5,isComment as _0x51155c,isTag as _0x101422,insertElement as _0x44581f,moveElement as _0x2bbe62,removeElement as _0x25b599,replaceElement as _0x19a95c,serialize as _0x43b44b,setAttribute as _0x1ae963,clone as _0x137d8b,findAllComments as _0x294bf8,getParents as _0x2ff4fc,getNodeNestingLevel as _0x18160d,areNodesSame as _0x4b2257,removeElementsAfter as _0x416884}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x5d1755(){[_0x3febde(0x1cf)];[_0x3febde(0x1f9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3febde(0x1e6)]=new Set();constructor(_0x589873){const _0x27e1aa=_0x3febde;super(),this[_0x27e1aa(0x1cf)]=_0x589873||_0x15d1e1;}[_0x3febde(0x1ff)](_0x36c38e,_0x44ee52,_0x38408b){const _0x3202be=_0x3febde,_0x5c0eee=_0x137d8b(_0x36c38e);if(0x0===_0x44ee52[_0x3202be(0x1ca)][_0x3202be(0x1df)]){const _0xd06278=[];return _0x3b2eec(_0x3202be(0x1d6),_0x3202be(0x1f2),_0x5c0eee)[_0x3202be(0x1c3)](_0x412ccd=>{const _0x2ac5c5=_0x3202be,_0x2b7788=this[_0x2ac5c5(0x1cf)]();_0x1ae963(_0x412ccd,_0x2ac5c5(0x1d6),_0x2b7788),_0xd06278[_0x2ac5c5(0x1c1)](_0x2b7788);}),this[_0x3202be(0x1f8)](_0x5c0eee),{'parsedContent':_0x5c0eee,'newNodeIds':_0xd06278,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x38408b&&_0x38408b[_0x3202be(0x1c4)]&&this[_0x3202be(0x1fb)](_0x5c0eee),this[_0x3202be(0x1f9)][_0x3202be(0x1d9)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1d4)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1ce)]=[],this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]=null,this[_0x3202be(0x1e6)]=new Set(_0x3b2eec(_0x3202be(0x1d6),null,_0x44ee52)[_0x3202be(0x1e5)](_0x48f991=>_0x4e3db5(_0x48f991,_0x3202be(0x1d6)))[_0x3202be(0x1fd)](_0x623c15=>!!_0x623c15));let _0x1417fb=-0x1,_0x27cb98=!0x1;const _0x5d361b=_0x5c0eee[_0x3202be(0x1ca)],_0x12c9d6=Array[_0x3202be(0x1f3)](_0x5d361b)[_0x3202be(0x1fd)](_0x44ec29=>!(0x3===_0x44ec29[_0x3202be(0x200)]&&''===_0x43b44b(_0x44ec29)[_0x3202be(0x1f7)]())),_0x1ebc51=_0x12c9d6[_0x3202be(0x1df)];for(let _0x4a99ab=0x0;_0x4a99ab<_0x1ebc51;_0x4a99ab++){const _0x44b52e=_0x12c9d6[_0x4a99ab],_0x3a95cf=_0x12c9d6[_0x4a99ab+0x1];if(this[_0x3202be(0x202)](_0x44b52e)){if(-0x1===_0x1417fb&&(_0x1417fb=_0x4a99ab),this[_0x3202be(0x1ea)](_0x44b52e),!this[_0x3202be(0x202)](_0x3a95cf)){const [_0x411d28,_0x46ad4f]=this[_0x3202be(0x1e2)](_0x44b52e,_0x27cb98,_0x44ee52);if(_0x411d28){const _0x23f370=Array[_0x3202be(0x1f3)](_0x12c9d6)[_0x3202be(0x1bf)](_0x1417fb,_0x4a99ab+0x1);this[_0x3202be(0x203)](_0x411d28,_0x23f370,_0x46ad4f),_0x1417fb=-0x1;}}}else{if(this[_0x3202be(0x1ed)](_0x44b52e))_0x27cb98=!0x0;else{if(this[_0x3202be(0x1f5)](_0x44b52e)){const _0x4dd8d5=_0x4e3db5(_0x44b52e,_0x3202be(0x1d6));if(_0x4dd8d5&&this[_0x3202be(0x1e6)][_0x3202be(0x1e4)](_0x4dd8d5)){const _0x44c779=_0x48c6d9(_0x3202be(0x1d6),_0x4dd8d5,_0x44ee52);this[_0x3202be(0x1d3)](_0x44c779,_0x44b52e);}if(this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x204)](_0x4dd8d5)){const _0x437042=this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x1db)](_0x4dd8d5);this[_0x3202be(0x1f9)][_0x3202be(0x1e3)][_0x3202be(0x1e1)](_0x437042,0x1);}}else{if(this[_0x3202be(0x1e9)](_0x44b52e)){const _0x4c4442=_0x4e3db5(_0x44b52e,_0x3202be(0x1d6));this[_0x3202be(0x1f9)][_0x3202be(0x1d4)][_0x3202be(0x204)](_0x4c4442)||this[_0x3202be(0x1fa)](_0x44b52e);}}}}}for(const _0x2a5752 of this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]){const _0x5b4df0=_0x48c6d9(_0x3202be(0x1d6),_0x2a5752,_0x44ee52);if(_0x5b4df0){if(_0x38408b&&_0x38408b[_0x3202be(0x1c7)]){this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]=_0x2a5752;const _0x59c6e9=_0x38408b[_0x3202be(0x1c7)][_0x3202be(0x1f4)](!0x0);_0x1ae963(_0x59c6e9,_0x3202be(0x1d6),_0x2a5752),_0x1ae963(_0x59c6e9,_0x3202be(0x1f6),_0x3202be(0x1d1)),_0x19a95c(_0x5b4df0,_0x59c6e9);}else _0x25b599(_0x5b4df0);}}if(_0x3b2eec(_0x3202be(0x1c8),null,_0x44ee52)[_0x3202be(0x1c3)](_0x55d743=>{const _0xf5d36b=_0x3202be,_0xc9c1c6=_0x4e3db5(_0x55d743,_0xf5d36b(0x1c8)),_0x2d2735=_0x48c6d9(_0xf5d36b(0x1d6),_0xc9c1c6,_0x44ee52);_0x2d2735&&_0x2bbe62(_0x2d2735,_0x55d743);}),_0x3b2eec(_0x3202be(0x1d6),_0x3202be(0x1f2),_0x44ee52)[_0x3202be(0x1c3)](_0x29264f=>{const _0x3afaed=_0x3202be,_0x196c43=this[_0x3afaed(0x201)](_0x29264f);_0x1ae963(_0x29264f,_0x3afaed(0x1d6),_0x196c43),this[_0x3afaed(0x1f9)][_0x3afaed(0x1d9)][_0x3afaed(0x1c1)](_0x196c43);}),this[_0x3202be(0x1f8)](_0x44ee52),_0x38408b&&_0x38408b[_0x3202be(0x1c4)]&&this[_0x3202be(0x1be)](_0x44ee52,_0x38408b[_0x3202be(0x1cb)]||0x0),_0x38408b&&_0x38408b[_0x3202be(0x1e0)]&&this[_0x3202be(0x1f9)][_0x3202be(0x1f1)]){let _0x23969f=_0x48c6d9(_0x3202be(0x1d6),this[_0x3202be(0x1f9)][_0x3202be(0x1f1)],_0x44ee52);for(;_0x23969f;)_0x416884(_0x23969f),_0x23969f=_0x23969f[_0x3202be(0x1ec)];}return{'parsedContent':_0x44ee52,'newNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1d9)],'modifiedNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1d4)],'removedNodeIds':this[_0x3202be(0x1f9)][_0x3202be(0x1e3)]};}[_0x3febde(0x203)](_0x365dba,_0x4d004f,_0x2cd130){const _0x120203=_0x3febde;for(const _0x3fbce1 of _0x4d004f){const _0x1b5506=this[_0x120203(0x201)](_0x3fbce1);_0x1ae963(_0x3fbce1,_0x120203(0x1d6),_0x1b5506),this[_0x120203(0x1f9)][_0x120203(0x1d9)][_0x120203(0x1c1)](_0x1b5506),this[_0x120203(0x1f9)][_0x120203(0x1f1)]=_0x1b5506;}const _0x25e1d5=_0x120203(0x1c9)===_0x2cd130||_0x120203(0x1d2)===_0x2cd130?_0x4d004f[_0x120203(0x1de)]():_0x4d004f;for(const _0x437186 of _0x25e1d5)_0x44581f(_0x365dba,_0x437186,_0x2cd130);}[_0x3febde(0x1d3)](_0x1a8910,_0x2eefce){const _0x978614=_0x3febde;if(!_0x1a8910)return;if(_0x4b2257(_0x1a8910,_0x2eefce))return;const _0x528eef=this[_0x978614(0x201)](_0x1a8910);_0x1ae963(_0x2eefce,_0x978614(0x1d6),_0x528eef),this[_0x978614(0x1f9)][_0x978614(0x1d4)][_0x978614(0x1c1)](_0x528eef),this[_0x978614(0x1f9)][_0x978614(0x1f1)]=_0x528eef,_0x19a95c(_0x1a8910,_0x2eefce[_0x978614(0x1f4)](!0x0));}[_0x3febde(0x1e2)](_0x52e55e,_0x50c572,_0x5cb31e){const _0x281d0d=_0x3febde,_0x457011=this[_0x281d0d(0x1fc)](_0x52e55e,!0x1);if(_0x457011){const _0x2b2784=this[_0x281d0d(0x1c2)](_0x457011),_0x457b05=_0x48c6d9(_0x281d0d(0x1d6),_0x2b2784,_0x5cb31e);if(_0x457b05)return[_0x457b05,_0x281d0d(0x1d2)];this[_0x281d0d(0x1f9)][_0x281d0d(0x1ce)][_0x281d0d(0x1c1)](_0x2b2784);}const _0x492d7c=this[_0x281d0d(0x1d7)](_0x52e55e,!0x1);if(_0x492d7c){const _0x3d7c48=this[_0x281d0d(0x1c2)](_0x492d7c),_0x49cb21=_0x48c6d9(_0x281d0d(0x1d6),_0x3d7c48,_0x5cb31e);if(_0x49cb21)return[_0x49cb21,_0x281d0d(0x1cc)];this[_0x281d0d(0x1f9)][_0x281d0d(0x1ce)][_0x281d0d(0x1c1)](_0x3d7c48);}return _0x50c572?_0x52e55e[_0x281d0d(0x1c0)]?this[_0x281d0d(0x1d5)](_0x52e55e,_0x5cb31e):[_0x5cb31e[_0x281d0d(0x1ca)][_0x5cb31e[_0x281d0d(0x1ca)][_0x281d0d(0x1df)]-0x1],_0x281d0d(0x1d2)]:[_0x5cb31e[_0x281d0d(0x1ca)][0x0],_0x281d0d(0x1cc)];}[_0x3febde(0x1d5)](_0x21429a,_0x388a36){const _0x3ee238=_0x3febde,_0x5aae30=[],_0x2f7a3f=this[_0x3ee238(0x1fc)](_0x21429a,!0x0);if(_0x2f7a3f){const _0x6eabb2=this[_0x3ee238(0x1c2)](_0x2f7a3f),_0x47435d=_0x48c6d9(_0x3ee238(0x1d6),_0x6eabb2,_0x388a36);_0x47435d&&_0x5aae30[_0x3ee238(0x1c1)]([_0x47435d,_0x3ee238(0x1d2)]);}const _0x41ddd7=this[_0x3ee238(0x1d7)](_0x21429a,!0x0);if(_0x41ddd7){const _0x2084c5=this[_0x3ee238(0x1c2)](_0x41ddd7),_0x313cc2=_0x48c6d9(_0x3ee238(0x1d6),_0x2084c5,_0x388a36);_0x313cc2&&_0x5aae30[_0x3ee238(0x1c1)]([_0x313cc2,_0x3ee238(0x1cc)]);}if(_0x5aae30[_0x3ee238(0x1df)]>0x1)return _0x18160d(_0x5aae30[0x0][0x0])<=_0x18160d(_0x5aae30[0x1][0x0])?_0x5aae30[0x0]:_0x5aae30[0x1];return 0x1===_0x5aae30[_0x3ee238(0x1df)]?_0x5aae30[0x0]:[_0x388a36[_0x3ee238(0x1eb)],_0x3ee238(0x1d2)];}[_0x3febde(0x1d7)](_0xc65e81,_0x4ce1d0){const _0x17a7fc=_0x3febde;let _0x1c7c16=_0xc65e81[_0x17a7fc(0x1c0)],_0x4c7948=null,_0x1fdab4=!0x1;for(;_0x1c7c16;){if(_0x51155c(_0x1c7c16)){if(this[_0x17a7fc(0x1e9)](_0x1c7c16)&&(_0x4c7948=_0x1c7c16),this[_0x17a7fc(0x1ed)](_0x1c7c16)&&_0x4ce1d0&&!_0x1fdab4){_0x1fdab4=!0x0,_0x1c7c16=_0x1c7c16[_0x17a7fc(0x1c0)];continue;}break;}const _0x50fe9e=_0x4e3db5(_0x1c7c16,_0x17a7fc(0x1d6));if(_0x50fe9e&&_0x17a7fc(0x1f2)!==_0x50fe9e&&this[_0x17a7fc(0x1e6)][_0x17a7fc(0x1e4)](_0x50fe9e)){_0x4c7948=_0x1c7c16;break;}_0x1c7c16=_0x1c7c16[_0x17a7fc(0x1c0)];}return _0x4c7948;}[_0x3febde(0x1fc)](_0x14e0da,_0x562f6c){const _0x336011=_0x3febde;let _0x229b0a=_0x14e0da[_0x336011(0x1dc)],_0x32b96a=null,_0xbe0a13=!0x1;for(;_0x229b0a;){if(_0x51155c(_0x229b0a)){if(this[_0x336011(0x1e9)](_0x229b0a)&&(_0x32b96a=_0x229b0a),this[_0x336011(0x1ed)](_0x229b0a)&&_0x562f6c&&!_0xbe0a13){_0xbe0a13=!0x0,_0x229b0a=_0x229b0a[_0x336011(0x1dc)];continue;}break;}const _0x54091c=_0x4e3db5(_0x229b0a,_0x336011(0x1d6));if(_0x54091c&&_0x336011(0x1f2)!==_0x54091c&&this[_0x336011(0x1e6)][_0x336011(0x1e4)](_0x54091c)){_0x32b96a=_0x229b0a;break;}_0x229b0a=_0x229b0a[_0x336011(0x1dc)];}return _0x32b96a;}[_0x3febde(0x1ea)](_0x3329bf){const _0x49b0a3=_0x3febde;_0x101422(_0x3329bf)&&_0x3b2eec(_0x49b0a3(0x1d6),null,_0x3329bf)[_0x49b0a3(0x1c3)](_0x1cb815=>{const _0x201001=_0x49b0a3;if(this[_0x201001(0x1f5)](_0x1cb815)&&!this[_0x201001(0x1e7)](_0x1cb815)){const _0x204a94=_0x4e3db5(_0x1cb815,_0x201001(0x1d6));_0x1ae963(_0x1cb815,_0x201001(0x1c8),_0x204a94),_0x1ae963(_0x1cb815,_0x201001(0x1d6),null);}});}[_0x3febde(0x1c2)](_0x187dd3){const _0x3be7b6=_0x3febde;if(!_0x187dd3)return null;if(_0x101422(_0x187dd3))return _0x4e3db5(_0x187dd3,_0x3be7b6(0x1d6));if(_0x51155c(_0x187dd3)){const _0x2cb24b=_0x43b44b(_0x187dd3)[_0x3be7b6(0x1cd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2cb24b&&_0x2cb24b[0x1])return _0x2cb24b[0x1];}return null;}[_0x3febde(0x1fa)](_0x33a1b6){const _0x1d6091=_0x3febde;if(_0x51155c(_0x33a1b6)){const _0x4e6170=_0x43b44b(_0x33a1b6)[_0x1d6091(0x1cd)](/removed[\s*-]data-id="([^"]+)"/);_0x4e6170&&_0x4e6170[0x1]&&this[_0x1d6091(0x1f9)][_0x1d6091(0x1e3)][_0x1d6091(0x1c1)](_0x4e6170[0x1]);}}[_0x3febde(0x201)](_0x3abab6){const _0x148926=_0x3febde;return this[_0x148926(0x1f5)](_0x3abab6)?_0x4e3db5(_0x3abab6,_0x148926(0x1d6)):this[_0x148926(0x1cf)]();}[_0x3febde(0x1f8)](_0x2c805c){const _0x515568=_0x3febde;_0x294bf8(_0x2c805c)[_0x515568(0x1fd)](_0x5b898f=>this[_0x515568(0x1e9)](_0x5b898f)||this[_0x515568(0x1ed)](_0x5b898f))[_0x515568(0x1c3)](_0xfeb336=>{_0x25b599(_0xfeb336);});}[_0x3febde(0x1fb)](_0x20dc4a){const _0x559988=_0x3febde,_0x30f543=_0x20dc4a[_0x559988(0x1ca)],_0x410754=_0x30f543[_0x30f543[_0x559988(0x1df)]-0x1];_0x410754&&_0x101422(_0x410754)&&_0x1ae963(_0x410754,_0x559988(0x1fe),_0x559988(0x1d1));}[_0x3febde(0x1be)](_0x2eba3f,_0x413f92){const _0x4b28bc=_0x3febde,_0xcec155=_0x48c6d9(_0x4b28bc(0x1fe),_0x4b28bc(0x1d1),_0x2eba3f);if(!_0xcec155)return;const _0x1fc209=_0x2ff4fc(_0xcec155)[_0x4b28bc(0x1bf)](0x0,-0x1),_0x1f4838=_0x1fc209[_0x4b28bc(0x1df)];let _0x19ac7e=_0xcec155;if(_0x1f4838>_0x413f92){let _0x12393a=_0x1f4838,_0x5de675=null;for(;_0x12393a>_0x413f92&&_0x12393a>=0x0;)_0x12393a--,_0x5de675=_0x1fc209[_0x12393a];_0x5de675&&(_0x19ac7e=_0x5de675,_0x1ae963(_0xcec155,_0x4b28bc(0x1fe),null),_0x1ae963(_0x5de675,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1)));}else{if(_0x1f4838<_0x413f92){let _0x10aa2c=_0x1f4838,_0x470a69=_0xcec155;for(;_0x10aa2c<_0x413f92;){const _0x258919=_0x470a69[_0x4b28bc(0x1ca)][_0x4b28bc(0x1fd)](_0x39ada5=>_0x101422(_0x39ada5));if(0x0===_0x258919[_0x4b28bc(0x1df)])break;_0x10aa2c++,_0x470a69=_0x258919[_0x258919[_0x4b28bc(0x1df)]-0x1];}_0x470a69&&(_0x19ac7e=_0x470a69,_0x1ae963(_0xcec155,_0x4b28bc(0x1fe),null),_0x1ae963(_0x470a69,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1)));}}let _0x135e1c=_0x19ac7e;for(;_0x135e1c;){for(;_0x135e1c[_0x4b28bc(0x1c0)];)_0x135e1c=_0x135e1c[_0x4b28bc(0x1c0)],_0x101422(_0x135e1c)&&_0x1ae963(_0x135e1c,_0x4b28bc(0x1fe),_0x4b28bc(0x1d1));_0x135e1c=_0x135e1c[_0x4b28bc(0x1ec)];}}[_0x3febde(0x202)](_0x3b036f){const _0x4bd638=_0x3febde;return Boolean(_0x4bd638(0x1f2)===_0x4e3db5(_0x3b036f,_0x4bd638(0x1d6)));}[_0x3febde(0x1f5)](_0x45dd06){const _0x597fc7=_0x3febde;return Boolean((_0x4e3db5(_0x45dd06,_0x597fc7(0x1d6))||'')[_0x597fc7(0x1df)]>0x0&&_0x597fc7(0x1f2)!==_0x4e3db5(_0x45dd06,_0x597fc7(0x1d6)));}[_0x3febde(0x1e9)](_0xb346af){const _0x316643=_0x3febde;return!!_0xb346af&&Boolean(_0x51155c(_0xb346af)&&_0x43b44b(_0xb346af)[_0x316643(0x1cd)](/removed[\s*-]data-id="[^"]+"/));}[_0x3febde(0x1e7)](_0x46a7e4){const _0x2d84f6=_0x3febde;let _0xf655da=_0x46a7e4[_0x2d84f6(0x1ec)];for(;_0xf655da;){if(_0x4e3db5(_0xf655da,_0x2d84f6(0x1c8)))return!0x0;_0xf655da=_0xf655da[_0x2d84f6(0x1ec)];}return!0x1;}[_0x3febde(0x1ed)](_0x352128){const _0x4b9416=_0x3febde;return Boolean(_0x51155c(_0x352128)&&_0x43b44b(_0x352128)[_0x4b9416(0x1cd)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x26bb20=_0x24cc;(function(_0x540ff3,_0x252d96){const _0x5e896c=_0x24cc,_0x29160d=_0x540ff3();while(!![]){try{const _0x5f16d1=parseInt(_0x5e896c(0xc5))/0x1+-parseInt(_0x5e896c(0xd2))/0x2*(parseInt(_0x5e896c(0xaf))/0x3)+parseInt(_0x5e896c(0xca))/0x4+-parseInt(_0x5e896c(0xe7))/0x5+-parseInt(_0x5e896c(0xda))/0x6*(-parseInt(_0x5e896c(0xad))/0x7)+parseInt(_0x5e896c(0xce))/0x8+-parseInt(_0x5e896c(0xb4))/0x9;if(_0x5f16d1===_0x252d96)break;else _0x29160d['push'](_0x29160d['shift']());}catch(_0x3d279e){_0x29160d['push'](_0x29160d['shift']());}}}(_0x147b,0x555ae));function _0x24cc(_0x590705,_0x1728e0){const _0x147b59=_0x147b();return _0x24cc=function(_0x24cc52,_0x38a1e1){_0x24cc52=_0x24cc52-0xa6;let _0x55d7ba=_0x147b59[_0x24cc52];return _0x55d7ba;},_0x24cc(_0x590705,_0x1728e0);}import{ObservableMixin as _0x425c60,uid as _0xecfa42}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x40412f,findByAttribute as _0x365d3d,getAttribute as _0x1a9dce,isComment as _0x23f551,isTag as _0x2c0616,insertElement as _0x3eca1a,moveElement as _0x2c405d,removeElement as _0x28b5bf,replaceElement as _0x113e76,serialize as _0xd6c8f5,setAttribute as _0xef529c,clone as _0xf1862f,findAllComments as _0x2c1da3,getParents as _0x443be0,getNodeNestingLevel as _0x1ebbe0,areNodesSame as _0xf89914,removeElementsAfter as _0xecbfa}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x425c60(){[_0x26bb20(0xbb)];[_0x26bb20(0xdf)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x26bb20(0xb0)]=new Set();constructor(_0x1d4495){const _0x2ac4c0=_0x26bb20;super(),this[_0x2ac4c0(0xbb)]=_0x1d4495||_0xecfa42;}[_0x26bb20(0xa8)](_0x590f30,_0x5834de,_0x2c0c5e){const _0x5247e1=_0x26bb20,_0x583ae0=_0xf1862f(_0x590f30);if(0x0===_0x5834de[_0x5247e1(0xd3)][_0x5247e1(0xdb)]){const _0x18d407=[];return _0x40412f(_0x5247e1(0xde),_0x5247e1(0xc9),_0x583ae0)[_0x5247e1(0xbe)](_0x3908f8=>{const _0x21c56f=_0x5247e1,_0x3ae13b=this[_0x21c56f(0xbb)]();_0xef529c(_0x3908f8,_0x21c56f(0xde),_0x3ae13b),_0x18d407[_0x21c56f(0xba)](_0x3ae13b);}),this[_0x5247e1(0xc1)](_0x583ae0),{'parsedContent':_0x583ae0,'newNodeIds':_0x18d407,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2c0c5e&&_0x2c0c5e[_0x5247e1(0xe9)]&&this[_0x5247e1(0xc7)](_0x583ae0),this[_0x5247e1(0xdf)][_0x5247e1(0xb2)]=[],this[_0x5247e1(0xdf)][_0x5247e1(0xa7)]=[],this[_0x5247e1(0xdf)][_0x5247e1(0xd6)]=[],this[_0x5247e1(0xdf)][_0x5247e1(0xe8)]=[],this[_0x5247e1(0xdf)][_0x5247e1(0xcc)]=null,this[_0x5247e1(0xb0)]=new Set(_0x40412f(_0x5247e1(0xde),null,_0x5834de)[_0x5247e1(0xb3)](_0x453c44=>_0x1a9dce(_0x453c44,_0x5247e1(0xde)))[_0x5247e1(0xc0)](_0x211d59=>!!_0x211d59));let _0x400472=-0x1,_0x492742=!0x1;const _0x211a0d=_0x583ae0[_0x5247e1(0xd3)],_0x2d6231=Array[_0x5247e1(0xd5)](_0x211a0d)[_0x5247e1(0xc0)](_0x23d85c=>!(0x3===_0x23d85c[_0x5247e1(0xd1)]&&''===_0xd6c8f5(_0x23d85c)[_0x5247e1(0xbf)]())),_0x257f68=_0x2d6231[_0x5247e1(0xdb)];for(let _0x4e0a13=0x0;_0x4e0a13<_0x257f68;_0x4e0a13++){const _0x50f350=_0x2d6231[_0x4e0a13],_0x4d4f53=_0x2d6231[_0x4e0a13+0x1];if(this[_0x5247e1(0xae)](_0x50f350)){if(-0x1===_0x400472&&(_0x400472=_0x4e0a13),this[_0x5247e1(0xe5)](_0x50f350),!this[_0x5247e1(0xae)](_0x4d4f53)){const [_0x2bdd47,_0x3a2360]=this[_0x5247e1(0xb1)](_0x50f350,_0x492742,_0x5834de);if(_0x2bdd47){const _0x539bb2=Array[_0x5247e1(0xd5)](_0x2d6231)[_0x5247e1(0xa9)](_0x400472,_0x4e0a13+0x1);this[_0x5247e1(0xe3)](_0x2bdd47,_0x539bb2,_0x3a2360),_0x400472=-0x1;}}}else{if(this[_0x5247e1(0xaa)](_0x50f350))_0x492742=!0x0;else{if(this[_0x5247e1(0xb5)](_0x50f350)){const _0x432fe9=_0x1a9dce(_0x50f350,_0x5247e1(0xde));if(_0x432fe9&&this[_0x5247e1(0xb0)][_0x5247e1(0xe2)](_0x432fe9)){const _0x1bfdf8=_0x365d3d(_0x5247e1(0xde),_0x432fe9,_0x5834de);this[_0x5247e1(0xd9)](_0x1bfdf8,_0x50f350);}if(this[_0x5247e1(0xdf)][_0x5247e1(0xd6)][_0x5247e1(0xb8)](_0x432fe9)){const _0x22c958=this[_0x5247e1(0xdf)][_0x5247e1(0xd6)][_0x5247e1(0xa6)](_0x432fe9);this[_0x5247e1(0xdf)][_0x5247e1(0xd6)][_0x5247e1(0xb7)](_0x22c958,0x1);}}else{if(this[_0x5247e1(0xcf)](_0x50f350)){const _0x518332=_0x1a9dce(_0x50f350,_0x5247e1(0xde));this[_0x5247e1(0xdf)][_0x5247e1(0xa7)][_0x5247e1(0xb8)](_0x518332)||this[_0x5247e1(0xc6)](_0x50f350);}}}}}for(const _0x97a202 of this[_0x5247e1(0xdf)][_0x5247e1(0xd6)]){const _0x4f39ef=_0x365d3d(_0x5247e1(0xde),_0x97a202,_0x5834de);if(_0x4f39ef){if(_0x2c0c5e&&_0x2c0c5e[_0x5247e1(0xdd)]){this[_0x5247e1(0xdf)][_0x5247e1(0xcc)]=_0x97a202;const _0x38b43f=_0x2c0c5e[_0x5247e1(0xdd)][_0x5247e1(0xd4)](!0x0);_0xef529c(_0x38b43f,_0x5247e1(0xde),_0x97a202),_0xef529c(_0x38b43f,_0x5247e1(0xe0),_0x5247e1(0xb6)),_0x113e76(_0x4f39ef,_0x38b43f);}else _0x28b5bf(_0x4f39ef);}}if(_0x40412f(_0x5247e1(0xbc),null,_0x5834de)[_0x5247e1(0xbe)](_0xe02dd1=>{const _0x555fcc=_0x5247e1,_0x4121b0=_0x1a9dce(_0xe02dd1,_0x555fcc(0xbc)),_0x5b4fe1=_0x365d3d(_0x555fcc(0xde),_0x4121b0,_0x5834de);_0x5b4fe1&&_0x2c405d(_0x5b4fe1,_0xe02dd1);}),_0x40412f(_0x5247e1(0xde),_0x5247e1(0xc9),_0x5834de)[_0x5247e1(0xbe)](_0x261a22=>{const _0x231eea=_0x5247e1,_0x4f7135=this[_0x231eea(0xe1)](_0x261a22);_0xef529c(_0x261a22,_0x231eea(0xde),_0x4f7135),this[_0x231eea(0xdf)][_0x231eea(0xb2)][_0x231eea(0xba)](_0x4f7135);}),this[_0x5247e1(0xc1)](_0x5834de),_0x2c0c5e&&_0x2c0c5e[_0x5247e1(0xe9)]&&this[_0x5247e1(0xc3)](_0x5834de,_0x2c0c5e[_0x5247e1(0xd8)]||0x0),_0x2c0c5e&&_0x2c0c5e[_0x5247e1(0xc4)]&&this[_0x5247e1(0xdf)][_0x5247e1(0xcc)]){let _0x13b28d=_0x365d3d(_0x5247e1(0xde),this[_0x5247e1(0xdf)][_0x5247e1(0xcc)],_0x5834de);for(;_0x13b28d;)_0xecbfa(_0x13b28d),_0x13b28d=_0x13b28d[_0x5247e1(0xab)];}return{'parsedContent':_0x5834de,'newNodeIds':this[_0x5247e1(0xdf)][_0x5247e1(0xb2)],'modifiedNodeIds':this[_0x5247e1(0xdf)][_0x5247e1(0xa7)],'removedNodeIds':this[_0x5247e1(0xdf)][_0x5247e1(0xd6)]};}[_0x26bb20(0xe3)](_0x53a3cd,_0x2c9f6e,_0x1fbe91){const _0xb3fe6b=_0x26bb20;for(const _0xd4d34b of _0x2c9f6e){const _0x563d6e=this[_0xb3fe6b(0xe1)](_0xd4d34b);_0xef529c(_0xd4d34b,_0xb3fe6b(0xde),_0x563d6e),this[_0xb3fe6b(0xdf)][_0xb3fe6b(0xb2)][_0xb3fe6b(0xba)](_0x563d6e),this[_0xb3fe6b(0xdf)][_0xb3fe6b(0xcc)]=_0x563d6e;}const _0x1ea42e=_0xb3fe6b(0xbd)===_0x1fbe91||_0xb3fe6b(0xcb)===_0x1fbe91?_0x2c9f6e[_0xb3fe6b(0xd7)]():_0x2c9f6e;for(const _0x2999b4 of _0x1ea42e)_0x3eca1a(_0x53a3cd,_0x2999b4,_0x1fbe91);}[_0x26bb20(0xd9)](_0x223733,_0x564647){const _0x56c04e=_0x26bb20;if(!_0x223733)return;if(_0xf89914(_0x223733,_0x564647))return;const _0x4ca26a=this[_0x56c04e(0xe1)](_0x223733);_0xef529c(_0x564647,_0x56c04e(0xde),_0x4ca26a),this[_0x56c04e(0xdf)][_0x56c04e(0xa7)][_0x56c04e(0xba)](_0x4ca26a),this[_0x56c04e(0xdf)][_0x56c04e(0xcc)]=_0x4ca26a,_0x113e76(_0x223733,_0x564647[_0x56c04e(0xd4)](!0x0));}[_0x26bb20(0xb1)](_0xd29032,_0x414a0f,_0x2aff87){const _0xd6b46=_0x26bb20,_0x18ae5d=this[_0xd6b46(0xac)](_0xd29032,!0x1);if(_0x18ae5d){const _0xaaa4f3=this[_0xd6b46(0xc8)](_0x18ae5d),_0x13eea2=_0x365d3d(_0xd6b46(0xde),_0xaaa4f3,_0x2aff87);if(_0x13eea2)return[_0x13eea2,_0xd6b46(0xcb)];this[_0xd6b46(0xdf)][_0xd6b46(0xe8)][_0xd6b46(0xba)](_0xaaa4f3);}const _0x14ffb6=this[_0xd6b46(0xea)](_0xd29032,!0x1);if(_0x14ffb6){const _0x132ea3=this[_0xd6b46(0xc8)](_0x14ffb6),_0x235653=_0x365d3d(_0xd6b46(0xde),_0x132ea3,_0x2aff87);if(_0x235653)return[_0x235653,_0xd6b46(0xcd)];this[_0xd6b46(0xdf)][_0xd6b46(0xe8)][_0xd6b46(0xba)](_0x132ea3);}return _0x414a0f?_0xd29032[_0xd6b46(0xeb)]?this[_0xd6b46(0xc2)](_0xd29032,_0x2aff87):[_0x2aff87[_0xd6b46(0xd3)][_0x2aff87[_0xd6b46(0xd3)][_0xd6b46(0xdb)]-0x1],_0xd6b46(0xcb)]:[_0x2aff87[_0xd6b46(0xd3)][0x0],_0xd6b46(0xcd)];}[_0x26bb20(0xc2)](_0x7915c9,_0x24b11f){const _0xb16ea8=_0x26bb20,_0xba5185=[],_0x2196b6=this[_0xb16ea8(0xac)](_0x7915c9,!0x0);if(_0x2196b6){const _0x38dc1e=this[_0xb16ea8(0xc8)](_0x2196b6),_0x5c8d81=_0x365d3d(_0xb16ea8(0xde),_0x38dc1e,_0x24b11f);_0x5c8d81&&_0xba5185[_0xb16ea8(0xba)]([_0x5c8d81,_0xb16ea8(0xcb)]);}const _0x3af8a6=this[_0xb16ea8(0xea)](_0x7915c9,!0x0);if(_0x3af8a6){const _0x351312=this[_0xb16ea8(0xc8)](_0x3af8a6),_0x2900a3=_0x365d3d(_0xb16ea8(0xde),_0x351312,_0x24b11f);_0x2900a3&&_0xba5185[_0xb16ea8(0xba)]([_0x2900a3,_0xb16ea8(0xcd)]);}if(_0xba5185[_0xb16ea8(0xdb)]>0x1)return _0x1ebbe0(_0xba5185[0x0][0x0])<=_0x1ebbe0(_0xba5185[0x1][0x0])?_0xba5185[0x0]:_0xba5185[0x1];return 0x1===_0xba5185[_0xb16ea8(0xdb)]?_0xba5185[0x0]:[_0x24b11f[_0xb16ea8(0xe4)],_0xb16ea8(0xcb)];}[_0x26bb20(0xea)](_0x755de8,_0x10d1bb){const _0x457740=_0x26bb20;let _0xec314f=_0x755de8[_0x457740(0xeb)],_0x570fdd=null,_0x407a29=!0x1;for(;_0xec314f;){if(_0x23f551(_0xec314f)){if(this[_0x457740(0xcf)](_0xec314f)&&(_0x570fdd=_0xec314f),this[_0x457740(0xaa)](_0xec314f)&&_0x10d1bb&&!_0x407a29){_0x407a29=!0x0,_0xec314f=_0xec314f[_0x457740(0xeb)];continue;}break;}const _0x3aa876=_0x1a9dce(_0xec314f,_0x457740(0xde));if(_0x3aa876&&_0x457740(0xc9)!==_0x3aa876&&this[_0x457740(0xb0)][_0x457740(0xe2)](_0x3aa876)){_0x570fdd=_0xec314f;break;}_0xec314f=_0xec314f[_0x457740(0xeb)];}return _0x570fdd;}[_0x26bb20(0xac)](_0x4ebf65,_0x598c8a){const _0x59464f=_0x26bb20;let _0x71b19d=_0x4ebf65[_0x59464f(0xb9)],_0x19bed5=null,_0x315b33=!0x1;for(;_0x71b19d;){if(_0x23f551(_0x71b19d)){if(this[_0x59464f(0xcf)](_0x71b19d)&&(_0x19bed5=_0x71b19d),this[_0x59464f(0xaa)](_0x71b19d)&&_0x598c8a&&!_0x315b33){_0x315b33=!0x0,_0x71b19d=_0x71b19d[_0x59464f(0xb9)];continue;}break;}const _0x5d4a58=_0x1a9dce(_0x71b19d,_0x59464f(0xde));if(_0x5d4a58&&_0x59464f(0xc9)!==_0x5d4a58&&this[_0x59464f(0xb0)][_0x59464f(0xe2)](_0x5d4a58)){_0x19bed5=_0x71b19d;break;}_0x71b19d=_0x71b19d[_0x59464f(0xb9)];}return _0x19bed5;}[_0x26bb20(0xe5)](_0x35cc43){const _0x2a4cc2=_0x26bb20;_0x2c0616(_0x35cc43)&&_0x40412f(_0x2a4cc2(0xde),null,_0x35cc43)[_0x2a4cc2(0xbe)](_0x2bdf9b=>{const _0x858a2a=_0x2a4cc2;if(this[_0x858a2a(0xb5)](_0x2bdf9b)&&!this[_0x858a2a(0xdc)](_0x2bdf9b)){const _0x3ae0ff=_0x1a9dce(_0x2bdf9b,_0x858a2a(0xde));_0xef529c(_0x2bdf9b,_0x858a2a(0xbc),_0x3ae0ff),_0xef529c(_0x2bdf9b,_0x858a2a(0xde),null);}});}[_0x26bb20(0xc8)](_0x32f970){const _0xa6fb6a=_0x26bb20;if(!_0x32f970)return null;if(_0x2c0616(_0x32f970))return _0x1a9dce(_0x32f970,_0xa6fb6a(0xde));if(_0x23f551(_0x32f970)){const _0xac3f69=_0xd6c8f5(_0x32f970)[_0xa6fb6a(0xd0)](/removed[\s*-]data-id="([^"]+)"/);if(_0xac3f69&&_0xac3f69[0x1])return _0xac3f69[0x1];}return null;}[_0x26bb20(0xc6)](_0x4ad38d){const _0x4a3d2a=_0x26bb20;if(_0x23f551(_0x4ad38d)){const _0x53dc06=_0xd6c8f5(_0x4ad38d)[_0x4a3d2a(0xd0)](/removed[\s*-]data-id="([^"]+)"/);_0x53dc06&&_0x53dc06[0x1]&&this[_0x4a3d2a(0xdf)][_0x4a3d2a(0xd6)][_0x4a3d2a(0xba)](_0x53dc06[0x1]);}}[_0x26bb20(0xe1)](_0x540cda){const _0x2220ab=_0x26bb20;return this[_0x2220ab(0xb5)](_0x540cda)?_0x1a9dce(_0x540cda,_0x2220ab(0xde)):this[_0x2220ab(0xbb)]();}[_0x26bb20(0xc1)](_0x1fbf99){const _0x375cd7=_0x26bb20;_0x2c1da3(_0x1fbf99)[_0x375cd7(0xc0)](_0x8d9d18=>this[_0x375cd7(0xcf)](_0x8d9d18)||this[_0x375cd7(0xaa)](_0x8d9d18))[_0x375cd7(0xbe)](_0x28615d=>{_0x28b5bf(_0x28615d);});}[_0x26bb20(0xc7)](_0x108a55){const _0x26ce74=_0x26bb20,_0x5adf20=_0x108a55[_0x26ce74(0xd3)],_0x332cfd=_0x5adf20[_0x5adf20[_0x26ce74(0xdb)]-0x1];_0x332cfd&&_0x2c0616(_0x332cfd)&&_0xef529c(_0x332cfd,_0x26ce74(0xe6),_0x26ce74(0xb6));}[_0x26bb20(0xc3)](_0x1465f9,_0x2b5dff){const _0xb8aebf=_0x26bb20,_0x37ab9a=_0x365d3d(_0xb8aebf(0xe6),_0xb8aebf(0xb6),_0x1465f9);if(!_0x37ab9a)return;const _0x56fbc9=_0x443be0(_0x37ab9a)[_0xb8aebf(0xa9)](0x0,-0x1),_0x57deb8=_0x56fbc9[_0xb8aebf(0xdb)];let _0x390129=_0x37ab9a;if(_0x57deb8>_0x2b5dff){let _0x1648c5=_0x57deb8,_0x35b3f5=null;for(;_0x1648c5>_0x2b5dff&&_0x1648c5>=0x0;)_0x1648c5--,_0x35b3f5=_0x56fbc9[_0x1648c5];_0x35b3f5&&(_0x390129=_0x35b3f5,_0xef529c(_0x37ab9a,_0xb8aebf(0xe6),null),_0xef529c(_0x35b3f5,_0xb8aebf(0xe6),_0xb8aebf(0xb6)));}else{if(_0x57deb8<_0x2b5dff){let _0x119a45=_0x57deb8,_0x1764a5=_0x37ab9a;for(;_0x119a45<_0x2b5dff;){const _0x38bc51=_0x1764a5[_0xb8aebf(0xd3)][_0xb8aebf(0xc0)](_0x30ff55=>_0x2c0616(_0x30ff55));if(0x0===_0x38bc51[_0xb8aebf(0xdb)])break;_0x119a45++,_0x1764a5=_0x38bc51[_0x38bc51[_0xb8aebf(0xdb)]-0x1];}_0x1764a5&&(_0x390129=_0x1764a5,_0xef529c(_0x37ab9a,_0xb8aebf(0xe6),null),_0xef529c(_0x1764a5,_0xb8aebf(0xe6),_0xb8aebf(0xb6)));}}let _0x50194a=_0x390129;for(;_0x50194a;){for(;_0x50194a[_0xb8aebf(0xeb)];)_0x50194a=_0x50194a[_0xb8aebf(0xeb)],_0x2c0616(_0x50194a)&&_0xef529c(_0x50194a,_0xb8aebf(0xe6),_0xb8aebf(0xb6));_0x50194a=_0x50194a[_0xb8aebf(0xab)];}}[_0x26bb20(0xae)](_0x4793b9){const _0x3e980b=_0x26bb20;return Boolean(_0x3e980b(0xc9)===_0x1a9dce(_0x4793b9,_0x3e980b(0xde)));}[_0x26bb20(0xb5)](_0x1fe3ce){const _0x982c2e=_0x26bb20;return Boolean((_0x1a9dce(_0x1fe3ce,_0x982c2e(0xde))||'')[_0x982c2e(0xdb)]>0x0&&_0x982c2e(0xc9)!==_0x1a9dce(_0x1fe3ce,_0x982c2e(0xde)));}[_0x26bb20(0xcf)](_0x1c34a3){const _0x25d99c=_0x26bb20;return!!_0x1c34a3&&Boolean(_0x23f551(_0x1c34a3)&&_0xd6c8f5(_0x1c34a3)[_0x25d99c(0xd0)](/removed[\s*-]data-id="[^"]+"/));}[_0x26bb20(0xdc)](_0x4dc332){const _0xb24285=_0x26bb20;let _0xae1767=_0x4dc332[_0xb24285(0xab)];for(;_0xae1767;){if(_0x1a9dce(_0xae1767,_0xb24285(0xbc)))return!0x0;_0xae1767=_0xae1767[_0xb24285(0xab)];}return!0x1;}[_0x26bb20(0xaa)](_0x11adb4){const _0x3e82f3=_0x26bb20;return Boolean(_0x23f551(_0x11adb4)&&_0xd6c8f5(_0x11adb4)[_0x3e82f3(0xd0)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x147b(){const _0xca7870=['afterbegin','forEach','trim','filter','_removeSpecialComments','_findFallbackReferenceNode','_markUnstableElements','cutAfterLastChange','530657LiMXCb','_storeDeletedElementIds','_markLastTagElementUnstable','_getNodeDataId','new-element','1920828UVshrR','afterend','lastTouchedId','beforebegin','2664600Tglbmv','_isDelNode','match','nodeType','18716xPDcac','childNodes','cloneNode','from','removedIds','reverse','markUnstableElementsDepth','_replaceNode','6cwLxBV','length','_hasWrappedParent','replaceRemovedWith','data-id','_touchedNodesState','data-removed','_getUid','has','_insertNodes','lastChild','_markWrappedElements','data-unstable','1054605zwwrKy','invalidIds','markUnstableElements','_findNextElementWithDataId','nextSibling','indexOf','modifiedIds','merge','slice','_isExistingContentComment','parentNode','_findPrevElementWithDataId','1789501AhUhhl','_isNewNode','198QFCqTy','_existingDataIds','_findReferenceNode','newIds','map','3792771CyAbEq','_isExistingNode','true','splice','includes','previousSibling','push','_generateUid','data-wrapped-id'];_0x147b=function(){return _0xca7870;};return _0x147b();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2755(){const _0x2211a7=['replace','51872HgWxGv','2401446QEIpJy','1185slPpzZ','231mWCQyp','14384WlqYTp','</dummy>','60071ytobAx','parseAndNormalizeHTML','2368SdfDxC','children','_parseHTML','13623468hLKKkB','convertMarkdownToHTML','<dummy>','_m2html','540lbyAHB','7sFEHZi','135rItIOP','601874fqqAZm','parse'];_0x2755=function(){return _0x2211a7;};return _0x2755();}const _0x138970=_0x26ba;(function(_0x46b2fd,_0x35e905){const _0x344660=_0x26ba,_0x12000c=_0x46b2fd();while(!![]){try{const _0x40022d=-parseInt(_0x344660(0x19c))/0x1+parseInt(_0x344660(0x192))/0x2*(-parseInt(_0x344660(0x1a2))/0x3)+-parseInt(_0x344660(0x1a3))/0x4*(-parseInt(_0x344660(0x1a1))/0x5)+-parseInt(_0x344660(0x1a0))/0x6*(parseInt(_0x344660(0x19a))/0x7)+-parseInt(_0x344660(0x19f))/0x8*(parseInt(_0x344660(0x19b))/0x9)+parseInt(_0x344660(0x199))/0xa*(-parseInt(_0x344660(0x190))/0xb)+parseInt(_0x344660(0x195))/0xc;if(_0x40022d===_0x35e905)break;else _0x12000c['push'](_0x12000c['shift']());}catch(_0x5927c0){_0x12000c['push'](_0x12000c['shift']());}}}(_0x2755,0x7a958));import{ObservableMixin as _0x3a59bd}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x10b906}from'@ckeditor/ckeditor5-markdown-gfm';function _0x26ba(_0x213fd4,_0x424791){const _0x2755f5=_0x2755();return _0x26ba=function(_0x26bab3,_0x257a86){_0x26bab3=_0x26bab3-0x18f;let _0x344423=_0x2755f5[_0x26bab3];return _0x344423;},_0x26ba(_0x213fd4,_0x424791);}import{parse as _0x4fedee}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x3a59bd(){[_0x138970(0x198)];constructor(){const _0x1a0933=_0x138970;super(),this[_0x1a0933(0x198)]=new _0x10b906();}[_0x138970(0x196)](_0x38c2f7){const _0x3a12c2=_0x138970,_0x560384=this[_0x3a12c2(0x198)][_0x3a12c2(0x19d)](_0x38c2f7);return this[_0x3a12c2(0x191)](_0x560384);}[_0x138970(0x191)](_0x22c0ce){const _0x3ca16e=_0x138970;return this[_0x3ca16e(0x194)](_0x22c0ce);}[_0x138970(0x194)](_0x5f3a73){const _0x27231c=_0x138970,_0x253e09=_0x5f3a73[_0x27231c(0x19e)](/^\t+/gm,'\x20')[_0x27231c(0x19e)](/\n*/g,'')[_0x27231c(0x19e)](/\s+/g,'\x20')[_0x27231c(0x19e)](/<[^>]*?$/g,''),_0x236d0c=_0x4fedee(_0x27231c(0x197)+_0x253e09+_0x27231c(0x18f));return _0x236d0c[_0x27231c(0x193)]=_0x236d0c[_0x27231c(0x193)][0x0][_0x27231c(0x193)],_0x236d0c;}}
23
+ const _0x3472f1=_0x4e2b;function _0xeebb(){const _0x2d02cb=['3481028COaCey','parse','961456jBXcPe','replace','3yAKwgq','_m2html','parseAndNormalizeHTML','_parseHTML','40374DWNwTj','465NjFXsd','convertMarkdownToHTML','1373147lcxxyE','</dummy>','957haRITm','<dummy>','5966604jtcNBx','7hXOdTo','417670HjbDZq','children','14509602eNCQJx'];_0xeebb=function(){return _0x2d02cb;};return _0xeebb();}(function(_0x1fcd62,_0x3c0a1c){const _0x4a4237=_0x4e2b,_0x362e36=_0x1fcd62();while(!![]){try{const _0x48673c=parseInt(_0x4a4237(0x79))/0x1+parseInt(_0x4a4237(0x6e))/0x2*(-parseInt(_0x4a4237(0x72))/0x3)+-parseInt(_0x4a4237(0x69))/0x4+parseInt(_0x4a4237(0x77))/0x5*(parseInt(_0x4a4237(0x76))/0x6)+parseInt(_0x4a4237(0x6a))/0x7*(parseInt(_0x4a4237(0x70))/0x8)+-parseInt(_0x4a4237(0x6d))/0x9+parseInt(_0x4a4237(0x6b))/0xa*(parseInt(_0x4a4237(0x67))/0xb);if(_0x48673c===_0x3c0a1c)break;else _0x362e36['push'](_0x362e36['shift']());}catch(_0x114c1f){_0x362e36['push'](_0x362e36['shift']());}}}(_0xeebb,0xddce0));import{ObservableMixin as _0x2be034}from'ckeditor5/src/utils.js';function _0x4e2b(_0x96c79b,_0x1b92db){const _0xeebb01=_0xeebb();return _0x4e2b=function(_0x4e2be4,_0x2cd869){_0x4e2be4=_0x4e2be4-0x66;let _0x12a6c1=_0xeebb01[_0x4e2be4];return _0x12a6c1;},_0x4e2b(_0x96c79b,_0x1b92db);}import{MarkdownGfmMdToHtml as _0x4b9354}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x318d95}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x2be034(){[_0x3472f1(0x73)];constructor(){const _0x323e0c=_0x3472f1;super(),this[_0x323e0c(0x73)]=new _0x4b9354();}[_0x3472f1(0x78)](_0x1f6f46){const _0x594301=_0x3472f1,_0x522ce7=this[_0x594301(0x73)][_0x594301(0x6f)](_0x1f6f46);return this[_0x594301(0x74)](_0x522ce7);}[_0x3472f1(0x74)](_0x294eb9){const _0x2e63f5=_0x3472f1;return this[_0x2e63f5(0x75)](_0x294eb9);}[_0x3472f1(0x75)](_0xb611d4){const _0x2693c1=_0x3472f1,_0x5eb4f3=_0xb611d4[_0x2693c1(0x71)](/^\t+/gm,'\x20')[_0x2693c1(0x71)](/\n*/g,'')[_0x2693c1(0x71)](/\s+/g,'\x20')[_0x2693c1(0x71)](/<[^>]*?$/g,''),_0x2d9e5c=_0x318d95(_0x2693c1(0x68)+_0x5eb4f3+_0x2693c1(0x66));return _0x2d9e5c[_0x2693c1(0x6c)]=_0x2d9e5c[_0x2693c1(0x6c)][0x0][_0x2693c1(0x6c)],_0x2d9e5c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2f5e(_0x394d05,_0x2c4a2a){var _0x269d39=_0x269d();return _0x2f5e=function(_0x2f5eca,_0x4422d7){_0x2f5eca=_0x2f5eca-0x11c;var _0x4a739a=_0x269d39[_0x2f5eca];return _0x4a739a;},_0x2f5e(_0x394d05,_0x2c4a2a);}(function(_0x1e94bc,_0x5db1e7){var _0x29faee=_0x2f5e,_0x31cf63=_0x1e94bc();while(!![]){try{var _0x487f2e=parseInt(_0x29faee(0x11c))/0x1+-parseInt(_0x29faee(0x123))/0x2*(parseInt(_0x29faee(0x120))/0x3)+parseInt(_0x29faee(0x11d))/0x4*(parseInt(_0x29faee(0x121))/0x5)+-parseInt(_0x29faee(0x11e))/0x6*(parseInt(_0x29faee(0x12b))/0x7)+-parseInt(_0x29faee(0x126))/0x8+-parseInt(_0x29faee(0x129))/0x9*(-parseInt(_0x29faee(0x124))/0xa)+parseInt(_0x29faee(0x127))/0xb;if(_0x487f2e===_0x5db1e7)break;else _0x31cf63['push'](_0x31cf63['shift']());}catch(_0x94f6a0){_0x31cf63['push'](_0x31cf63['shift']());}}}(_0x269d,0xd5923));function _0x269d(){var _0x1d63a7=['9397000ldLPga','18888925XwdGaO','AI_DISCLAIMER_TEXT','75177cNmUyx','setTemplate','1216131DwJmFq','1561047kJaneZ','4gjiKEz','6ozeDZe','ck-ai-disclaimer','27nsPxrj','1757260Rmnxzt','div','379386FClvXe','360GcHmIe','ck-ai-disclaimer__content'];_0x269d=function(){return _0x1d63a7;};return _0x269d();}import{View as _0x26402f}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e47ba}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x26402f{constructor(_0x3c9481){var _0x3dc3c7=_0x2f5e;super(_0x3c9481),this[_0x3dc3c7(0x12a)]({'tag':_0x3dc3c7(0x122),'attributes':{'class':['ck',_0x3dc3c7(0x11f)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3dc3c7(0x125)]},'children':[{'text':_0x5e47ba(_0x3c9481,_0x3dc3c7(0x128))}]}]});}}
23
+ function _0x211d(){var _0x5bff2b=['443540BqIlQa','AI_DISCLAIMER_TEXT','36978NbTUlA','ck-ai-disclaimer__content','4098213SnPGOZ','1130493ytNzHV','div','4108592DtSncQ','17123348SRVien','ck-ai-disclaimer','26454jUNeKs','264KdqkZO','10PqTSjf','8zVCGDi','setTemplate','602XnLuyy'];_0x211d=function(){return _0x5bff2b;};return _0x211d();}(function(_0x2ae461,_0x2dada){var _0x2bf368=_0x1bd0,_0x4ba829=_0x2ae461();while(!![]){try{var _0x3dad6e=parseInt(_0x2bf368(0x1de))/0x1+parseInt(_0x2bf368(0x1e3))/0x2*(parseInt(_0x2bf368(0x1e4))/0x3)+parseInt(_0x2bf368(0x1e0))/0x4+-parseInt(_0x2bf368(0x1e9))/0x5+-parseInt(_0x2bf368(0x1eb))/0x6*(parseInt(_0x2bf368(0x1e8))/0x7)+parseInt(_0x2bf368(0x1e6))/0x8*(-parseInt(_0x2bf368(0x1dd))/0x9)+parseInt(_0x2bf368(0x1e5))/0xa*(-parseInt(_0x2bf368(0x1e1))/0xb);if(_0x3dad6e===_0x2dada)break;else _0x4ba829['push'](_0x4ba829['shift']());}catch(_0x211f21){_0x4ba829['push'](_0x4ba829['shift']());}}}(_0x211d,0xa8ab2));import{View as _0x419c56}from'ckeditor5/src/ui.js';function _0x1bd0(_0x12be20,_0x4ed4c5){var _0x211d18=_0x211d();return _0x1bd0=function(_0x1bd0a6,_0x357620){_0x1bd0a6=_0x1bd0a6-0x1dd;var _0x18f47a=_0x211d18[_0x1bd0a6];return _0x18f47a;},_0x1bd0(_0x12be20,_0x4ed4c5);}import{getTranslation as _0x24a33e}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x419c56{constructor(_0x4817e7){var _0x10fae2=_0x1bd0;super(_0x4817e7),this[_0x10fae2(0x1e7)]({'tag':_0x10fae2(0x1df),'attributes':{'class':['ck',_0x10fae2(0x1e2)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x10fae2(0x1ec)]},'children':[{'text':_0x24a33e(_0x4817e7,_0x10fae2(0x1ea))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x15c4(){const _0x294b6c=['ck-ai-skeleton__item','21xbvlLU','ck-ai-skeleton','150px','24px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','map','width:\x20','div','center',';\x20height:\x20','315980aqwwvB','72GirmSz','right','100%','left','84734rSPfxI','287772QmSNpC','height','class','88px','265850RNmaRS','4hRbfgN','250px','fill','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','1072449zhKwfI','128px','8rMBZoD','44px','tag','attributes','40px','width','6fOECNY','940bRdiHL','_createSkeletonItems','328084hxwWJw','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','72px','140px','align','setTemplate','22286KfLapT'];_0x15c4=function(){return _0x294b6c;};return _0x15c4();}const _0x5e5325=_0x2293;(function(_0x215455,_0x537120){const _0x24d866=_0x2293,_0x2a05bc=_0x215455();while(!![]){try{const _0x33f65b=parseInt(_0x24d866(0xc8))/0x1*(-parseInt(_0x24d866(0xce))/0x2)+parseInt(_0x24d866(0xda))/0x3*(parseInt(_0x24d866(0xdd))/0x4)+parseInt(_0x24d866(0xc3))/0x5+-parseInt(_0x24d866(0xc9))/0x6*(parseInt(_0x24d866(0xe5))/0x7)+parseInt(_0x24d866(0xd4))/0x8*(parseInt(_0x24d866(0xd2))/0x9)+parseInt(_0x24d866(0xdb))/0xa*(parseInt(_0x24d866(0xe3))/0xb)+parseInt(_0x24d866(0xc4))/0xc*(-parseInt(_0x24d866(0xcd))/0xd);if(_0x33f65b===_0x537120)break;else _0x2a05bc['push'](_0x2a05bc['shift']());}catch(_0xebbc8c){_0x2a05bc['push'](_0x2a05bc['shift']());}}}(_0x15c4,0x189b5));import{View as _0x4d1bcc}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x4d1bcc{constructor(_0x5b13ce,_0x1e525f){const _0x4028c0=_0x2293;super(_0x5b13ce),this[_0x4028c0(0xe2)]({'tag':_0x4028c0(0xc0),'attributes':{'class':['ck',_0x4028c0(0xe6)]},'children':this[_0x4028c0(0xdc)](_0x1e525f)});}[_0x5e5325(0xdc)](_0x4776aa){const _0x335ae7=_0x5e5325,_0x5861e0=['ck',_0x335ae7(0xe4)];return _0x4776aa[_0x335ae7(0xea)](_0x1c251e=>{const _0x4f71c3=_0x335ae7;let _0x7c41cc='';switch(_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xe1)]){case _0x4f71c3(0xc5):_0x7c41cc=_0x4f71c3(0xde);break;case _0x4f71c3(0xc1):_0x7c41cc=_0x4f71c3(0xe9);break;case _0x4f71c3(0xc7):_0x7c41cc=_0x4f71c3(0xd1);}return{'tag':_0x1c251e[_0x4f71c3(0xd6)],'attributes':{'class':[..._0x5861e0,_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xcb)]?_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xcb)]:''],'style':_0x4f71c3(0xeb)+_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xd9)]+_0x4f71c3(0xc2)+_0x1c251e[_0x4f71c3(0xd7)][_0x4f71c3(0xca)]+';'+_0x7c41cc}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xdf),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xcf),'height':_0x5e5325(0xd8),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xcc),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xe7),'height':_0x5e5325(0xd8),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xe0),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xcf),'height':_0x5e5325(0xd8),'align':_0x5e5325(0xc5)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xcc),'align':_0x5e5325(0xc5)}}],'aiHistory':$i(0x5,_0x5e5325(0xc6),_0x5e5325(0xd5),_0x5e5325(0xc5)),'aiChatResources':$i(0x8,_0x5e5325(0xc6),_0x5e5325(0xe8),_0x5e5325(0xc5)),'aiReviewChecks':[{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xd3),'height':_0x5e5325(0xe8),'align':_0x5e5325(0xc7)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xc6),'height':_0x5e5325(0xe8),'align':_0x5e5325(0xc7)}},{'tag':_0x5e5325(0xc0),'attributes':{'width':_0x5e5325(0xd3),'height':_0x5e5325(0xe8),'align':_0x5e5325(0xc7)}}]};function _0x2293(_0x4f79b2,_0x2e2a33){const _0x15c4e0=_0x15c4();return _0x2293=function(_0x22932d,_0x22a0a3){_0x22932d=_0x22932d-0xc0;let _0x4a982e=_0x15c4e0[_0x22932d];return _0x4a982e;},_0x2293(_0x4f79b2,_0x2e2a33);}function $i(_0x268314,_0x193b02,_0x3187e0,_0x34e90a){const _0x312b32=_0x5e5325;return new Array(_0x268314)[_0x312b32(0xd0)](null)[_0x312b32(0xea)](()=>({'tag':_0x312b32(0xc0),'attributes':{'width':_0x193b02,'height':_0x3187e0,'align':_0x34e90a}}));}
23
+ const _0x457c8b=_0x5106;function _0x5106(_0x3909fd,_0x5b5384){const _0x439888=_0x4398();return _0x5106=function(_0x51066a,_0x3f5caf){_0x51066a=_0x51066a-0xab;let _0x8e10bf=_0x439888[_0x51066a];return _0x8e10bf;},_0x5106(_0x3909fd,_0x5b5384);}(function(_0x563996,_0x1e1c7b){const _0x4b4ee6=_0x5106,_0x194f73=_0x563996();while(!![]){try{const _0x5c8ed5=-parseInt(_0x4b4ee6(0xc5))/0x1+-parseInt(_0x4b4ee6(0xac))/0x2+-parseInt(_0x4b4ee6(0xd3))/0x3*(parseInt(_0x4b4ee6(0xc7))/0x4)+-parseInt(_0x4b4ee6(0xce))/0x5*(parseInt(_0x4b4ee6(0xc8))/0x6)+-parseInt(_0x4b4ee6(0xbb))/0x7*(-parseInt(_0x4b4ee6(0xc3))/0x8)+-parseInt(_0x4b4ee6(0xaf))/0x9*(parseInt(_0x4b4ee6(0xca))/0xa)+-parseInt(_0x4b4ee6(0xc9))/0xb*(-parseInt(_0x4b4ee6(0xb1))/0xc);if(_0x5c8ed5===_0x1e1c7b)break;else _0x194f73['push'](_0x194f73['shift']());}catch(_0xf30542){_0x194f73['push'](_0x194f73['shift']());}}}(_0x4398,0x69ba0));import{View as _0x2801e0}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x2801e0{constructor(_0x1e2141,_0x10d22c){const _0x480254=_0x5106;super(_0x1e2141),this[_0x480254(0xcd)]({'tag':_0x480254(0xbf),'attributes':{'class':['ck',_0x480254(0xae)]},'children':this[_0x480254(0xc1)](_0x10d22c)});}[_0x457c8b(0xc1)](_0x2daddf){const _0x49a9c8=_0x457c8b,_0x23fea1=['ck',_0x49a9c8(0xb5)];return _0x2daddf[_0x49a9c8(0xb8)](_0x52704a=>{const _0x5d2ac5=_0x49a9c8;let _0x5064f9='';switch(_0x52704a[_0x5d2ac5(0xab)][_0x5d2ac5(0xad)]){case _0x5d2ac5(0xc4):_0x5064f9=_0x5d2ac5(0xb0);break;case _0x5d2ac5(0xcf):_0x5064f9=_0x5d2ac5(0xc2);break;case _0x5d2ac5(0xd1):_0x5064f9=_0x5d2ac5(0xbd);}return{'tag':_0x52704a[_0x5d2ac5(0xd5)],'attributes':{'class':[..._0x23fea1,_0x52704a[_0x5d2ac5(0xab)][_0x5d2ac5(0xb4)]?_0x52704a[_0x5d2ac5(0xab)][_0x5d2ac5(0xb4)]:''],'style':_0x5d2ac5(0xb7)+_0x52704a[_0x5d2ac5(0xab)][_0x5d2ac5(0xd2)]+_0x5d2ac5(0xcc)+_0x52704a[_0x5d2ac5(0xab)][_0x5d2ac5(0xbe)]+';'+_0x5064f9}};});}}function _0x4398(){const _0x1304fd=['918972bPzArb','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','180WfzPpR','72px','44px','class','ck-ai-skeleton__item','128px','width:\x20','map','250px','88px','529613BEtpSD','40px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','height','div','100%','_createSkeletonItems','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','8DcxrNj','right','699918lNOwBM','150px','54348sPclLd','222kTeXWF','1624579vLzSBj','50krzxJf','fill',';\x20height:\x20','setTemplate','21145HfMHFR','center','24px','left','width','78ocvZEb','140px','tag','attributes','275490sxumPU','align','ck-ai-skeleton'];_0x4398=function(){return _0x1304fd;};return _0x4398();}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xc0),'height':_0x457c8b(0xb2),'align':_0x457c8b(0xc4)}},{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xb9),'height':_0x457c8b(0xbc),'align':_0x457c8b(0xc4)}},{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xc0),'height':_0x457c8b(0xba),'align':_0x457c8b(0xc4)}},{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xc6),'height':_0x457c8b(0xbc),'align':_0x457c8b(0xc4)}},{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xc0),'height':_0x457c8b(0xd4),'align':_0x457c8b(0xc4)}},{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xb9),'height':_0x457c8b(0xbc),'align':_0x457c8b(0xc4)}},{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xc0),'height':_0x457c8b(0xba),'align':_0x457c8b(0xc4)}}],'aiHistory':$i(0x5,_0x457c8b(0xc0),_0x457c8b(0xb3),_0x457c8b(0xc4)),'aiChatResources':$i(0x8,_0x457c8b(0xc0),_0x457c8b(0xd0),_0x457c8b(0xc4)),'aiReviewChecks':[{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xb6),'height':_0x457c8b(0xd0),'align':_0x457c8b(0xd1)}},{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xc0),'height':_0x457c8b(0xd0),'align':_0x457c8b(0xd1)}},{'tag':_0x457c8b(0xbf),'attributes':{'width':_0x457c8b(0xb6),'height':_0x457c8b(0xd0),'align':_0x457c8b(0xd1)}}]};function $i(_0x20c563,_0x5c65cc,_0x4c58a5,_0x3ed16a){const _0x44777e=_0x457c8b;return new Array(_0x20c563)[_0x44777e(0xcb)](null)[_0x44777e(0xb8)](()=>({'tag':_0x44777e(0xbf),'attributes':{'width':_0x5c65cc,'height':_0x4c58a5,'align':_0x3ed16a}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3014(_0x437634,_0x1601c7){const _0x4bba91=_0x4bba();return _0x3014=function(_0x301426,_0x122972){_0x301426=_0x301426-0x17b;let _0x54f5ff=_0x4bba91[_0x301426];return _0x54f5ff;},_0x3014(_0x437634,_0x1601c7);}(function(_0x18ad5a,_0x39de81){const _0x14b5a6=_0x3014,_0x384197=_0x18ad5a();while(!![]){try{const _0x5846f4=parseInt(_0x14b5a6(0x187))/0x1*(parseInt(_0x14b5a6(0x182))/0x2)+-parseInt(_0x14b5a6(0x185))/0x3+-parseInt(_0x14b5a6(0x17d))/0x4+parseInt(_0x14b5a6(0x186))/0x5+parseInt(_0x14b5a6(0x17f))/0x6+parseInt(_0x14b5a6(0x17e))/0x7+-parseInt(_0x14b5a6(0x184))/0x8*(parseInt(_0x14b5a6(0x17b))/0x9);if(_0x5846f4===_0x39de81)break;else _0x384197['push'](_0x384197['shift']());}catch(_0x51481e){_0x384197['push'](_0x384197['shift']());}}}(_0x4bba,0xd2412));import{SpinnerView as _0x2df626}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x2df626{constructor(_0x2d7cc2=void 0x0){const _0x3e3363=_0x3014;super();const _0x53e47c=_0x2d7cc2?_0x3e3363(0x183)+_0x2d7cc2:'';this[_0x3e3363(0x181)]({'tag':_0x3e3363(0x17c),'attributes':{'class':[_0x3e3363(0x180),_0x53e47c]}});}}function _0x4bba(){const _0x3210f9=['16ihGovS','ck-ai-spinner_','4376EVsNsP','767766CrlhPt','3962335YCqQNW','50923eaQbIJ','2934gwGETg','span','3436636gXKngH','5580785BZVxur','944994TtSXmj','ck-ai-spinner','extendTemplate'];_0x4bba=function(){return _0x3210f9;};return _0x4bba();}
23
+ function _0x2bf9(_0x38d0d7,_0x1d51e5){const _0x1d25b7=_0x1d25();return _0x2bf9=function(_0x2bf900,_0x3c040a){_0x2bf900=_0x2bf900-0x11b;let _0x5db4ff=_0x1d25b7[_0x2bf900];return _0x5db4ff;},_0x2bf9(_0x38d0d7,_0x1d51e5);}(function(_0x4698a1,_0x59709c){const _0x26cafd=_0x2bf9,_0x4ec46a=_0x4698a1();while(!![]){try{const _0x3c06ba=parseInt(_0x26cafd(0x11b))/0x1*(-parseInt(_0x26cafd(0x129))/0x2)+parseInt(_0x26cafd(0x11f))/0x3+parseInt(_0x26cafd(0x124))/0x4*(parseInt(_0x26cafd(0x127))/0x5)+parseInt(_0x26cafd(0x12b))/0x6*(parseInt(_0x26cafd(0x126))/0x7)+parseInt(_0x26cafd(0x125))/0x8*(parseInt(_0x26cafd(0x128))/0x9)+parseInt(_0x26cafd(0x120))/0xa*(-parseInt(_0x26cafd(0x12a))/0xb)+-parseInt(_0x26cafd(0x123))/0xc*(parseInt(_0x26cafd(0x11d))/0xd);if(_0x3c06ba===_0x59709c)break;else _0x4ec46a['push'](_0x4ec46a['shift']());}catch(_0x22da9b){_0x4ec46a['push'](_0x4ec46a['shift']());}}}(_0x1d25,0x2aff1));function _0x1d25(){const _0x567a14=['ck-ai-spinner','169BVYmEm','span','400395tFQyso','10JlfQCx','extendTemplate','ck-ai-spinner_','362928xSHbwS','4vcQYqu','16lAApYL','54565nIFsib','1533635SaHVTL','398826NuFbQZ','842JkwkKU','1688291iYaxeR','264KlJIMZ','354iHNRGP'];_0x1d25=function(){return _0x567a14;};return _0x1d25();}import{SpinnerView as _0x1a6f1e}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x1a6f1e{constructor(_0x3b7dda=void 0x0){const _0x140eb7=_0x2bf9;super();const _0x191d73=_0x3b7dda?_0x140eb7(0x122)+_0x3b7dda:'';this[_0x140eb7(0x121)]({'tag':_0x140eb7(0x11e),'attributes':{'class':[_0x140eb7(0x11c),_0x191d73]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x202ed2=_0x14dc;(function(_0x2b872c,_0xa339){const _0x1669c5=_0x14dc,_0x338aff=_0x2b872c();while(!![]){try{const _0x588c7f=-parseInt(_0x1669c5(0x1ca))/0x1*(-parseInt(_0x1669c5(0x1c5))/0x2)+parseInt(_0x1669c5(0x1d4))/0x3+-parseInt(_0x1669c5(0x1e9))/0x4+-parseInt(_0x1669c5(0x1ec))/0x5+-parseInt(_0x1669c5(0x1df))/0x6+parseInt(_0x1669c5(0x1ed))/0x7*(-parseInt(_0x1669c5(0x1ef))/0x8)+parseInt(_0x1669c5(0x1ce))/0x9;if(_0x588c7f===_0xa339)break;else _0x338aff['push'](_0x338aff['shift']());}catch(_0x3b7e67){_0x338aff['push'](_0x338aff['shift']());}}}(_0x5a36,0xedf13));import{ButtonView as _0x4a6d7f,IconView as _0x5559e9,ToolbarView as _0xa56694}from'ckeditor5/src/ui.js';function _0x14dc(_0x5b96ac,_0x12f506){const _0x5a3621=_0x5a36();return _0x14dc=function(_0x14dc09,_0x4850e7){_0x14dc09=_0x14dc09-0x1bf;let _0x754845=_0x5a3621[_0x14dc09];return _0x754845;},_0x14dc(_0x5b96ac,_0x12f506);}function _0x5a36(){const _0x40b9bc=['AI_SUGGESTION_BUTTON_SHOW_CHANGES','extendTemplate','isEnabled','ck-ai-mini-toolbar-copy-button','ck-ai-mini-toolbar-copy-button__check-mark','2KuZRRP','addMany','fire','AI_MINI_TOOLBAR_DISLIKE','_setupShowChangesButton','582320OZYrHO','ck-ai-mini-toolbar\x20ck-hidden','copyButton','class','7066179DPgQro','execute','showCopy','showDislike','toggleShowChanges','length','5028228yjtYzD','likeButton','customView','set','AI_MINI_TOOLBAR_COPY','showChanges','children','AI_MINI_TOOLBAR_LIKE','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','add','_setupRatingButtons','363732rRGCIX','_setupCopyButton','dislike','isLoading','bind','like','showLike','ck-ai-mini-toolbar','_config','locale','1831804BYWMFT','isOn','items','1957245rdnkWH','63tMiCYW','showChangesButton','1030128wCaqWX','dislikeButton','full'];_0x5a36=function(){return _0x40b9bc;};return _0x5a36();}import{IconCheck as _0x5346a5,IconCopy as _0x43892b,IconShowChangesOff as _0x37b546,IconShowChangesOn as _0x1a6677,IconThumbDown as _0x1cedde,IconThumbUp as _0x26bd37}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x26738f}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0xa56694{[_0x202ed2(0x1cc)];[_0x202ed2(0x1d5)];[_0x202ed2(0x1f0)];[_0x202ed2(0x1ee)];[_0x202ed2(0x1e7)];constructor(_0x23d8c0,_0x1a05e2={},_0x2f36db){const _0xb4bf3a=_0x202ed2;super(_0x23d8c0),this[_0xb4bf3a(0x1d7)](_0xb4bf3a(0x1e2),!0x1),this[_0xb4bf3a(0x1e7)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x1a05e2};const _0x31e305=!(this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d0)]||this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d9)]||this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1e5)]||this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d1)]||this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d6)]?.[_0xb4bf3a(0x1d3)]);this[_0xb4bf3a(0x1cd)]=_0x31e305?_0xb4bf3a(0x1cb):_0xb4bf3a(0x1e6),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d0)]&&(this[_0xb4bf3a(0x1e0)](),this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1dd)](this[_0xb4bf3a(0x1cc)])),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d9)]&&(this[_0xb4bf3a(0x1c9)](_0x2f36db),this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1dd)](this[_0xb4bf3a(0x1ee)])),this[_0xb4bf3a(0x1de)](),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1e5)]&&this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1dd)](this[_0xb4bf3a(0x1d5)]),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d1)]&&this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1dd)](this[_0xb4bf3a(0x1f0)]),this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d6)]&&this[_0xb4bf3a(0x1eb)][_0xb4bf3a(0x1c6)](this[_0xb4bf3a(0x1e7)][_0xb4bf3a(0x1d6)]);}[_0x202ed2(0x1de)](){const _0x464dd9=_0x202ed2;this[_0x464dd9(0x1d5)]=new _0x4a6d7f(this[_0x464dd9(0x1e8)]),this[_0x464dd9(0x1d5)][_0x464dd9(0x1d7)]({'icon':_0x26bd37,'label':_0x26738f(this[_0x464dd9(0x1e8)],_0x464dd9(0x1db)),'tooltip':!0x0}),this[_0x464dd9(0x1d5)][_0x464dd9(0x1e3)](_0x464dd9(0x1c2))['to'](this,_0x464dd9(0x1e2),_0x5b1a68=>!_0x5b1a68),this[_0x464dd9(0x1d5)]['on'](_0x464dd9(0x1cf),()=>{const _0xc96854=_0x464dd9;this[_0xc96854(0x1c7)](_0xc96854(0x1e4));}),this[_0x464dd9(0x1f0)]=new _0x4a6d7f(this[_0x464dd9(0x1e8)]),this[_0x464dd9(0x1f0)][_0x464dd9(0x1d7)]({'icon':_0x1cedde,'label':_0x26738f(this[_0x464dd9(0x1e8)],_0x464dd9(0x1c8)),'tooltip':!0x0}),this[_0x464dd9(0x1f0)][_0x464dd9(0x1e3)](_0x464dd9(0x1c2))['to'](this,_0x464dd9(0x1e2),_0x5c5336=>!_0x5c5336),this[_0x464dd9(0x1f0)]['on'](_0x464dd9(0x1cf),()=>{const _0x47f95b=_0x464dd9;this[_0x47f95b(0x1c7)](_0x47f95b(0x1e1));});}[_0x202ed2(0x1e0)](){const _0x32bab3=_0x202ed2;this[_0x32bab3(0x1cc)]=new _0x4a6d7f(this[_0x32bab3(0x1e8)]),this[_0x32bab3(0x1cc)][_0x32bab3(0x1d7)]({'icon':_0x43892b,'label':_0x26738f(this[_0x32bab3(0x1e8)],_0x32bab3(0x1d8)),'class':_0x32bab3(0x1c3),'tooltip':!0x0}),this[_0x32bab3(0x1cc)][_0x32bab3(0x1e3)](_0x32bab3(0x1c2))['to'](this,_0x32bab3(0x1e2),_0x447636=>!_0x447636);const _0x1c8266=new _0x5559e9();_0x1c8266[_0x32bab3(0x1d7)]({'content':_0x5346a5}),_0x1c8266[_0x32bab3(0x1c1)]({'attributes':{'class':[_0x32bab3(0x1c4)]}}),this[_0x32bab3(0x1cc)]['on'](_0x32bab3(0x1cf),()=>{const _0x504d77=_0x32bab3;this[_0x504d77(0x1cc)][_0x504d77(0x1cd)]=_0x504d77(0x1dc),setTimeout(()=>{const _0x4261a8=_0x504d77;this[_0x4261a8(0x1cc)][_0x4261a8(0x1cd)]=_0x4261a8(0x1c3);},0x7d0);}),this[_0x32bab3(0x1cc)][_0x32bab3(0x1da)][_0x32bab3(0x1dd)](_0x1c8266);}[_0x202ed2(0x1c9)](_0x51335c){const _0x41a720=_0x202ed2;this[_0x41a720(0x1ee)]=new _0x4a6d7f(this[_0x41a720(0x1e8)]),this[_0x41a720(0x1ee)][_0x41a720(0x1d7)]({'icon':_0x37b546,'label':_0x26738f(this[_0x41a720(0x1e8)],_0x41a720(0x1c0)),'withText':_0x41a720(0x1bf)==this[_0x41a720(0x1e7)][_0x41a720(0x1d9)],'isOn':_0x51335c}),this[_0x41a720(0x1ee)][_0x41a720(0x1e3)](_0x41a720(0x1c2))['to'](this,_0x41a720(0x1e2),_0x503ca4=>!_0x503ca4),this[_0x41a720(0x1ee)]['on'](_0x41a720(0x1cf),()=>{const _0x4a51cf=_0x41a720,_0x7c65f5=!this[_0x4a51cf(0x1ee)][_0x4a51cf(0x1ea)];this[_0x4a51cf(0x1ee)][_0x4a51cf(0x1d7)]({'isOn':_0x7c65f5,'icon':_0x7c65f5?_0x1a6677:_0x37b546}),this[_0x4a51cf(0x1c7)](_0x4a51cf(0x1d2),_0x7c65f5);});}}
23
+ function _0x512e(_0x4b79a0,_0x362524){const _0x34d8aa=_0x34d8();return _0x512e=function(_0x512e48,_0x5a39dd){_0x512e48=_0x512e48-0xab;let _0x3e4927=_0x34d8aa[_0x512e48];return _0x3e4927;},_0x512e(_0x4b79a0,_0x362524);}const _0x40e0a9=_0x512e;(function(_0x12a803,_0x213656){const _0xf1d2d2=_0x512e,_0x4b9ee8=_0x12a803();while(!![]){try{const _0x4d76c8=-parseInt(_0xf1d2d2(0xce))/0x1+parseInt(_0xf1d2d2(0xd6))/0x2*(-parseInt(_0xf1d2d2(0xc3))/0x3)+-parseInt(_0xf1d2d2(0xda))/0x4*(parseInt(_0xf1d2d2(0xae))/0x5)+parseInt(_0xf1d2d2(0xc9))/0x6*(-parseInt(_0xf1d2d2(0xb9))/0x7)+parseInt(_0xf1d2d2(0xdb))/0x8+parseInt(_0xf1d2d2(0xd1))/0x9*(parseInt(_0xf1d2d2(0xcd))/0xa)+parseInt(_0xf1d2d2(0xbe))/0xb*(parseInt(_0xf1d2d2(0xbc))/0xc);if(_0x4d76c8===_0x213656)break;else _0x4b9ee8['push'](_0x4b9ee8['shift']());}catch(_0x15ef2d){_0x4b9ee8['push'](_0x4b9ee8['shift']());}}}(_0x34d8,0xa3c76));import{ButtonView as _0x30ffc4,IconView as _0x3f134e,ToolbarView as _0x42905e}from'ckeditor5/src/ui.js';import{IconCheck as _0x161dd8,IconCopy as _0x251d1b,IconShowChangesOff as _0x226718,IconShowChangesOn as _0x1796f0,IconThumbDown as _0x3fef23,IconThumbUp as _0x167645}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x317485}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x42905e{[_0x40e0a9(0xcf)];[_0x40e0a9(0xcb)];[_0x40e0a9(0xdf)];[_0x40e0a9(0xad)];[_0x40e0a9(0xd2)];constructor(_0x3b808a,_0x2b4ea6={},_0x4e20a1){const _0x3dffc3=_0x40e0a9;super(_0x3b808a),this[_0x3dffc3(0xc7)](_0x3dffc3(0xc1),!0x1),this[_0x3dffc3(0xd2)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x2b4ea6};const _0xcdee8d=!(this[_0x3dffc3(0xd2)][_0x3dffc3(0xdc)]||this[_0x3dffc3(0xd2)][_0x3dffc3(0xc4)]||this[_0x3dffc3(0xd2)][_0x3dffc3(0xd4)]||this[_0x3dffc3(0xd2)][_0x3dffc3(0xb1)]||this[_0x3dffc3(0xd2)][_0x3dffc3(0xca)]?.[_0x3dffc3(0xbb)]);this[_0x3dffc3(0xaf)]=_0xcdee8d?_0x3dffc3(0xcc):_0x3dffc3(0xba),this[_0x3dffc3(0xd2)][_0x3dffc3(0xdc)]&&(this[_0x3dffc3(0xb3)](),this[_0x3dffc3(0xde)][_0x3dffc3(0xb5)](this[_0x3dffc3(0xcf)])),this[_0x3dffc3(0xd2)][_0x3dffc3(0xc4)]&&(this[_0x3dffc3(0xc0)](_0x4e20a1),this[_0x3dffc3(0xde)][_0x3dffc3(0xb5)](this[_0x3dffc3(0xad)])),this[_0x3dffc3(0xb0)](),this[_0x3dffc3(0xd2)][_0x3dffc3(0xd4)]&&this[_0x3dffc3(0xde)][_0x3dffc3(0xb5)](this[_0x3dffc3(0xcb)]),this[_0x3dffc3(0xd2)][_0x3dffc3(0xb1)]&&this[_0x3dffc3(0xde)][_0x3dffc3(0xb5)](this[_0x3dffc3(0xdf)]),this[_0x3dffc3(0xd2)][_0x3dffc3(0xca)]&&this[_0x3dffc3(0xde)][_0x3dffc3(0xc6)](this[_0x3dffc3(0xd2)][_0x3dffc3(0xca)]);}[_0x40e0a9(0xb0)](){const _0x1584fa=_0x40e0a9;this[_0x1584fa(0xcb)]=new _0x30ffc4(this[_0x1584fa(0xb7)]),this[_0x1584fa(0xcb)][_0x1584fa(0xc7)]({'icon':_0x167645,'label':_0x317485(this[_0x1584fa(0xb7)],_0x1584fa(0xd9)),'tooltip':!0x0}),this[_0x1584fa(0xcb)][_0x1584fa(0xd3)](_0x1584fa(0xdd))['to'](this,_0x1584fa(0xc1),_0x128c58=>!_0x128c58),this[_0x1584fa(0xcb)]['on'](_0x1584fa(0xab),()=>{const _0x1c52f8=_0x1584fa;this[_0x1c52f8(0xd5)](_0x1c52f8(0xc5));}),this[_0x1584fa(0xdf)]=new _0x30ffc4(this[_0x1584fa(0xb7)]),this[_0x1584fa(0xdf)][_0x1584fa(0xc7)]({'icon':_0x3fef23,'label':_0x317485(this[_0x1584fa(0xb7)],_0x1584fa(0xb8)),'tooltip':!0x0}),this[_0x1584fa(0xdf)][_0x1584fa(0xd3)](_0x1584fa(0xdd))['to'](this,_0x1584fa(0xc1),_0x4f97d9=>!_0x4f97d9),this[_0x1584fa(0xdf)]['on'](_0x1584fa(0xab),()=>{const _0x2e1f81=_0x1584fa;this[_0x2e1f81(0xd5)](_0x2e1f81(0xbf));});}[_0x40e0a9(0xb3)](){const _0x5abcc0=_0x40e0a9;this[_0x5abcc0(0xcf)]=new _0x30ffc4(this[_0x5abcc0(0xb7)]),this[_0x5abcc0(0xcf)][_0x5abcc0(0xc7)]({'icon':_0x251d1b,'label':_0x317485(this[_0x5abcc0(0xb7)],_0x5abcc0(0xb4)),'class':_0x5abcc0(0xc8),'tooltip':!0x0}),this[_0x5abcc0(0xcf)][_0x5abcc0(0xd3)](_0x5abcc0(0xdd))['to'](this,_0x5abcc0(0xc1),_0x23e3cb=>!_0x23e3cb);const _0x542ac6=new _0x3f134e();_0x542ac6[_0x5abcc0(0xc7)]({'content':_0x161dd8}),_0x542ac6[_0x5abcc0(0xb2)]({'attributes':{'class':[_0x5abcc0(0xbd)]}}),this[_0x5abcc0(0xcf)]['on'](_0x5abcc0(0xab),()=>{const _0x57aef9=_0x5abcc0;this[_0x57aef9(0xcf)][_0x57aef9(0xaf)]=_0x57aef9(0xac),setTimeout(()=>{const _0x2472fc=_0x57aef9;this[_0x2472fc(0xcf)][_0x2472fc(0xaf)]=_0x2472fc(0xc8);},0x7d0);}),this[_0x5abcc0(0xcf)][_0x5abcc0(0xb6)][_0x5abcc0(0xb5)](_0x542ac6);}[_0x40e0a9(0xc0)](_0x312813){const _0x66386f=_0x40e0a9;this[_0x66386f(0xad)]=new _0x30ffc4(this[_0x66386f(0xb7)]),this[_0x66386f(0xad)][_0x66386f(0xc7)]({'icon':_0x226718,'label':_0x317485(this[_0x66386f(0xb7)],_0x66386f(0xd0)),'withText':_0x66386f(0xc2)==this[_0x66386f(0xd2)][_0x66386f(0xc4)],'tooltip':_0x66386f(0xc2)!=this[_0x66386f(0xd2)][_0x66386f(0xc4)],'isOn':_0x312813}),this[_0x66386f(0xad)][_0x66386f(0xd3)](_0x66386f(0xdd))['to'](this,_0x66386f(0xc1),_0x44cba9=>!_0x44cba9),this[_0x66386f(0xad)]['on'](_0x66386f(0xab),()=>{const _0x444f85=_0x66386f,_0x944a9e=!this[_0x444f85(0xad)][_0x444f85(0xd8)];this[_0x444f85(0xad)][_0x444f85(0xc7)]({'isOn':_0x944a9e,'icon':_0x944a9e?_0x1796f0:_0x226718}),this[_0x444f85(0xd5)](_0x444f85(0xd7),_0x944a9e);});}}function _0x34d8(){const _0xc09c96=['showDislike','extendTemplate','_setupCopyButton','AI_MINI_TOOLBAR_COPY','add','children','locale','AI_MINI_TOOLBAR_DISLIKE','73997KnRVWa','ck-ai-mini-toolbar','length','370212qOukmT','ck-ai-mini-toolbar-copy-button__check-mark','55uHCuQE','dislike','_setupShowChangesButton','isLoading','full','3012hNDGGm','showChanges','like','addMany','set','ck-ai-mini-toolbar-copy-button','114dNefZk','customView','likeButton','ck-ai-mini-toolbar\x20ck-hidden','20cydeVC','533303jUNhBT','copyButton','AI_SUGGESTION_BUTTON_SHOW_CHANGES','6001191ItPWPC','_config','bind','showLike','fire','622pnnjRl','toggleShowChanges','isOn','AI_MINI_TOOLBAR_LIKE','48192OMluQm','3473576IDBWTi','showCopy','isEnabled','items','dislikeButton','execute','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChangesButton','85Datszm','class','_setupRatingButtons'];_0x34d8=function(){return _0xc09c96;};return _0x34d8();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x450bc5=_0x23f5;(function(_0x5b4846,_0x3f990a){const _0x45d26f=_0x23f5,_0x2ef9a1=_0x5b4846();while(!![]){try{const _0x1c55d2=-parseInt(_0x45d26f(0x1e4))/0x1*(-parseInt(_0x45d26f(0x1f5))/0x2)+-parseInt(_0x45d26f(0x1ec))/0x3+parseInt(_0x45d26f(0x1d7))/0x4+-parseInt(_0x45d26f(0x204))/0x5*(parseInt(_0x45d26f(0x20b))/0x6)+-parseInt(_0x45d26f(0x1e7))/0x7+parseInt(_0x45d26f(0x1e3))/0x8*(parseInt(_0x45d26f(0x1e0))/0x9)+parseInt(_0x45d26f(0x1ee))/0xa*(parseInt(_0x45d26f(0x20d))/0xb);if(_0x1c55d2===_0x3f990a)break;else _0x2ef9a1['push'](_0x2ef9a1['shift']());}catch(_0x5cbcbc){_0x2ef9a1['push'](_0x2ef9a1['shift']());}}}(_0x30e1,0xb6ee4));import{View as _0x4b7c09}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x228684}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x14273d}from'../../utils/eventnames.js';import{PromiseQueue as _0x20e9b2}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x48e6dd}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x32a418}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x4b7c09{[_0x450bc5(0x1d5)];[_0x450bc5(0x1f7)];[_0x450bc5(0x1f4)];[_0x450bc5(0x203)];[_0x450bc5(0x1f6)];constructor(_0xc0f813,{areActionsDisabled:_0x4b0dee,showUnchangedParts:_0x12e39b}){const _0x42332e=_0x450bc5;super(_0xc0f813),this[_0x42332e(0x1f7)]=_0x4b0dee,this[_0x42332e(0x1f4)]=_0x12e39b,this[_0x42332e(0x1dd)](_0x42332e(0x205),!0x1),this[_0x42332e(0x1d5)]=this[_0x42332e(0x1fa)](),this[_0x42332e(0x203)]=new _0x20e9b2(),this[_0x42332e(0x1f6)]=new _0x48e6dd({'id':_0x42332e(0x1ef),'initialContent':_0x32a418(_0xc0f813,_0x42332e(0x200)),'level':_0x42332e(0x1d8)}),this[_0x42332e(0x1f6)][_0x42332e(0x208)]=!0x1,this[_0x42332e(0x1f1)]({'tag':_0x42332e(0x1db),'attributes':{'class':['ck',_0x42332e(0x1f8),_0x42332e(0x1da),_0x42332e(0x206)]},'children':[{'tag':_0x42332e(0x1db),'attributes':{'class':['ck',_0x42332e(0x1dc)]},'children':this[_0x42332e(0x1d5)]},this[_0x42332e(0x1f6)]]});}get[_0x450bc5(0x20a)](){const _0x323828=_0x450bc5;return this[_0x323828(0x1d5)][_0x323828(0x1d9)];}async[_0x450bc5(0x207)]({parts:_0x68de9a,renderingStrategy:_0x1a8ad4,abortSignal:_0x35be79}){const _0x19b2ec=_0x450bc5;for(const _0x22cf27 of _0x68de9a)this[_0x19b2ec(0x203)][_0x19b2ec(0x1e8)](async _0x3cf26d=>{const _0x5f4f26=_0x19b2ec;let _0x416b80=this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1fd)](_0x1df72f=>_0x1df72f[_0x5f4f26(0x1fb)][_0x5f4f26(0x1ed)]==_0x22cf27[_0x5f4f26(0x1ed)]);_0x416b80||(_0x416b80=new _0x228684(this[_0x5f4f26(0x202)],{'part':_0x22cf27,'areActionsDisabled':this[_0x5f4f26(0x1f7)]}),_0x416b80[_0x5f4f26(0x20c)](..._0x14273d)['to'](this),this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1f2)](_0x416b80),this[_0x5f4f26(0x205)]=!0x0),0x2===this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1d9)]&&this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1f3)][_0x5f4f26(0x1f9)](!0x0),_0x416b80[_0x5f4f26(0x1f9)](this[_0x5f4f26(0x1d5)][_0x5f4f26(0x1d9)]>0x1),await _0x416b80[_0x5f4f26(0x1eb)]({'part':_0x22cf27,'renderingStrategy':_0x1a8ad4,'showUnchangedParts':this[_0x5f4f26(0x1f4)],'abortSignal':_0x3cf26d});});return _0x35be79?.[_0x19b2ec(0x1e9)](_0x19b2ec(0x1e5),()=>{const _0x26a145=_0x19b2ec;this[_0x26a145(0x203)][_0x26a145(0x1e5)]();}),this[_0x19b2ec(0x203)][_0x19b2ec(0x1f0)];}[_0x450bc5(0x1fc)](_0x4904ec,_0x11a4cb){const _0x127846=_0x450bc5;this[_0x127846(0x1d5)][_0x127846(0x1e1)](_0x4904ec)[_0x127846(0x1e2)]=_0x11a4cb,this[_0x127846(0x205)]=_0x127846(0x201)==_0x11a4cb||Array[_0x127846(0x1fe)](this[_0x127846(0x1d5)])[_0x127846(0x209)](_0x1f2c6b=>_0x127846(0x201)==_0x1f2c6b[_0x127846(0x1e2)]);}[_0x450bc5(0x1e6)](_0x5b9aa0){const _0x4b837b=_0x450bc5;return this[_0x4b837b(0x1d5)][_0x4b837b(0x1e1)](_0x5b9aa0);}[_0x450bc5(0x1ff)](){const _0x14ea4a=_0x450bc5;if(!this[_0x14ea4a(0x1f4)]){const _0x3136e0=!this[_0x14ea4a(0x1d5)][_0x14ea4a(0x1fd)](_0x3c7bfe=>_0x3c7bfe[_0x14ea4a(0x1fb)][_0x14ea4a(0x1ea)]),_0x512a2b=!!this[_0x14ea4a(0x1d5)][_0x14ea4a(0x1fd)](_0x443085=>!_0x443085[_0x14ea4a(0x1fb)][_0x14ea4a(0x1ea)]);this[_0x14ea4a(0x1f6)][_0x14ea4a(0x208)]=_0x512a2b,_0x3136e0?this[_0x14ea4a(0x1f6)][_0x14ea4a(0x1d6)](_0x32a418(this[_0x14ea4a(0x202)],_0x14ea4a(0x1de))):this[_0x14ea4a(0x1f6)][_0x14ea4a(0x1d6)](_0x32a418(this[_0x14ea4a(0x202)],_0x14ea4a(0x200)));}}get[_0x450bc5(0x1df)](){const _0x39cb42=_0x450bc5;return!!this[_0x39cb42(0x1d5)][_0x39cb42(0x1fd)](_0x50166b=>_0x50166b[_0x39cb42(0x1fb)][_0x39cb42(0x1ea)]);}}function _0x23f5(_0x11b08c,_0x23b7b8){const _0x30e1a0=_0x30e1();return _0x23f5=function(_0x23f5bf,_0x20ae41){_0x23f5bf=_0x23f5bf-0x1d5;let _0x25e495=_0x30e1a0[_0x23f5bf];return _0x25e495;},_0x23f5(_0x11b08c,_0x23b7b8);}function _0x30e1(){const _0x2396a2=['get','state','42504DCbuMz','381741jXJMQT','abort','getPartView','8986019SrQnEf','enqueue','addEventListener','hasChanges','updateContent','83175ewaXZN','index','9703180choQUN','empty-parts-warning','queueEmptyPromise','setTemplate','add','first','_showUnchangedParts','6tQGlPI','_emptyPartsWarningView','_areActionsDisabled','ck-reset_all-excluded','toggleHeader','createCollection','partDefinition','updatePartState','find','from','markAsDone','AI_SUGGESTION_EMPTY_PART_WARNING','pending','locale','_updateContentPartsPromiseQueue','5OhMGcl','hasPendingParts','ck-content','updateContentParts','isVisible','some','partsCount','8101812jnJNhQ','delegate','11YLgCeG','_children','setContent','4055592LZXbiN','warning','length','ck-ai-suggestion__body','div','ck-ai-suggestion__body__content-parts','set','AI_SUGGESTION_NO_PARTS_WARNING','hasNonEmptyParts','477KOhIuH'];_0x30e1=function(){return _0x2396a2;};return _0x30e1();}
23
+ function _0x368d(){const _0x50658c=['first','addEventListener','_areActionsDisabled','enqueue','some','_updateContentPartsPromiseQueue','find','_emptyPartsWarningView','markAsDone','updatePartState','_children','2430315Ymfbpc','set','hasNonEmptyParts','get','hasChanges','100NKqxXC','10dZGnLU','delegate','AI_SUGGESTION_EMPTY_PART_WARNING','length','pending','createCollection','144560hzAyzJ','ck-ai-suggestion__body__content-parts','6RnLele','getPartView','partsCount','locale','updateContent','div','isVisible','index','state','_showUnchangedParts','updateContentParts','hasPendingParts','empty-parts-warning','from','823704fZkiIE','warning','ck-ai-suggestion__body','4593nvPUIr','queueEmptyPromise','add','partDefinition','abort','setTemplate','4331822oWWgbt','1261244GPSGRD','996828yuLXhm','setContent','toggleHeader','AI_SUGGESTION_NO_PARTS_WARNING','5SjLlFz'];_0x368d=function(){return _0x50658c;};return _0x368d();}const _0x5904fa=_0x82c0;(function(_0x2886c4,_0x30d847){const _0x3b96b4=_0x82c0,_0x5ee28c=_0x2886c4();while(!![]){try{const _0x4cdd98=-parseInt(_0x3b96b4(0x1cb))/0x1+-parseInt(_0x3b96b4(0x1fb))/0x2*(parseInt(_0x3b96b4(0x1de))/0x3)+-parseInt(_0x3b96b4(0x1e5))/0x4*(-parseInt(_0x3b96b4(0x1ea))/0x5)+parseInt(_0x3b96b4(0x1cd))/0x6*(parseInt(_0x3b96b4(0x1e6))/0x7)+parseInt(_0x3b96b4(0x1db))/0x8+-parseInt(_0x3b96b4(0x1f6))/0x9*(-parseInt(_0x3b96b4(0x1fc))/0xa)+-parseInt(_0x3b96b4(0x1e4))/0xb;if(_0x4cdd98===_0x30d847)break;else _0x5ee28c['push'](_0x5ee28c['shift']());}catch(_0x23c676){_0x5ee28c['push'](_0x5ee28c['shift']());}}}(_0x368d,0x34af9));import{View as _0x32a80d}from'ckeditor5/src/ui.js';function _0x82c0(_0x3f4789,_0x54c1ba){const _0x368d61=_0x368d();return _0x82c0=function(_0x82c02,_0x3e276f){_0x82c02=_0x82c02-0x1c6;let _0x416594=_0x368d61[_0x82c02];return _0x416594;},_0x82c0(_0x3f4789,_0x54c1ba);}import{AISuggestionBodyViewContentPartView as _0x316837}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x50ca25}from'../../utils/eventnames.js';import{PromiseQueue as _0x13c022}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x39b09b}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x5202d9}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x32a80d{[_0x5904fa(0x1f5)];[_0x5904fa(0x1ed)];[_0x5904fa(0x1d6)];[_0x5904fa(0x1f0)];[_0x5904fa(0x1f2)];constructor(_0x1a4a4c,{areActionsDisabled:_0x21d778,showUnchangedParts:_0x28b4be}){const _0x1d719f=_0x5904fa;super(_0x1a4a4c),this[_0x1d719f(0x1ed)]=_0x21d778,this[_0x1d719f(0x1d6)]=_0x28b4be,this[_0x1d719f(0x1f7)](_0x1d719f(0x1d8),!0x1),this[_0x1d719f(0x1f5)]=this[_0x1d719f(0x1ca)](),this[_0x1d719f(0x1f0)]=new _0x13c022(),this[_0x1d719f(0x1f2)]=new _0x39b09b({'id':_0x1d719f(0x1d9),'initialContent':_0x5202d9(_0x1a4a4c,_0x1d719f(0x1c7)),'level':_0x1d719f(0x1dc)}),this[_0x1d719f(0x1f2)][_0x1d719f(0x1d3)]=!0x1,this[_0x1d719f(0x1e3)]({'tag':_0x1d719f(0x1d2),'attributes':{'class':['ck',_0x1d719f(0x1dd)]},'children':[{'tag':_0x1d719f(0x1d2),'attributes':{'class':['ck',_0x1d719f(0x1cc)]},'children':this[_0x1d719f(0x1f5)]},this[_0x1d719f(0x1f2)]]});}get[_0x5904fa(0x1cf)](){const _0x504aea=_0x5904fa;return this[_0x504aea(0x1f5)][_0x504aea(0x1c8)];}async[_0x5904fa(0x1d7)]({parts:_0x5e0077,renderingStrategy:_0x43d403,abortSignal:_0x5930fd}){const _0x56c9eb=_0x5904fa;for(const _0x395f88 of _0x5e0077)this[_0x56c9eb(0x1f0)][_0x56c9eb(0x1ee)](async _0x2a9ea0=>{const _0x34663f=_0x56c9eb;let _0x22778d=this[_0x34663f(0x1f5)][_0x34663f(0x1f1)](_0x3003d9=>_0x3003d9[_0x34663f(0x1e1)][_0x34663f(0x1d4)]==_0x395f88[_0x34663f(0x1d4)]);_0x22778d||(_0x22778d=new _0x316837(this[_0x34663f(0x1d0)],{'part':_0x395f88,'areActionsDisabled':this[_0x34663f(0x1ed)]}),_0x22778d[_0x34663f(0x1c6)](..._0x50ca25)['to'](this),this[_0x34663f(0x1f5)][_0x34663f(0x1e0)](_0x22778d),this[_0x34663f(0x1d8)]=!0x0),0x2===this[_0x34663f(0x1f5)][_0x34663f(0x1c8)]&&this[_0x34663f(0x1f5)][_0x34663f(0x1eb)][_0x34663f(0x1e8)](!0x0),_0x22778d[_0x34663f(0x1e8)](this[_0x34663f(0x1f5)][_0x34663f(0x1c8)]>0x1),await _0x22778d[_0x34663f(0x1d1)]({'part':_0x395f88,'renderingStrategy':_0x43d403,'showUnchangedParts':this[_0x34663f(0x1d6)],'abortSignal':_0x2a9ea0});});return _0x5930fd?.[_0x56c9eb(0x1ec)](_0x56c9eb(0x1e2),()=>{const _0x517309=_0x56c9eb;this[_0x517309(0x1f0)][_0x517309(0x1e2)]();}),this[_0x56c9eb(0x1f0)][_0x56c9eb(0x1df)];}[_0x5904fa(0x1f4)](_0x94090,_0x59cbd1){const _0x352b66=_0x5904fa;this[_0x352b66(0x1f5)][_0x352b66(0x1f9)](_0x94090)[_0x352b66(0x1d5)]=_0x59cbd1,this[_0x352b66(0x1d8)]=_0x352b66(0x1c9)==_0x59cbd1||Array[_0x352b66(0x1da)](this[_0x352b66(0x1f5)])[_0x352b66(0x1ef)](_0xaf4fc6=>_0x352b66(0x1c9)==_0xaf4fc6[_0x352b66(0x1d5)]);}[_0x5904fa(0x1ce)](_0x1ffeae){const _0x310ca4=_0x5904fa;return this[_0x310ca4(0x1f5)][_0x310ca4(0x1f9)](_0x1ffeae);}[_0x5904fa(0x1f3)](){const _0x3f5ff2=_0x5904fa;if(!this[_0x3f5ff2(0x1d6)]){const _0xfd2c86=!this[_0x3f5ff2(0x1f5)][_0x3f5ff2(0x1f1)](_0x4f5cc9=>_0x4f5cc9[_0x3f5ff2(0x1e1)][_0x3f5ff2(0x1fa)]),_0x22b1e1=!!this[_0x3f5ff2(0x1f5)][_0x3f5ff2(0x1f1)](_0x5433f9=>!_0x5433f9[_0x3f5ff2(0x1e1)][_0x3f5ff2(0x1fa)]);this[_0x3f5ff2(0x1f2)][_0x3f5ff2(0x1d3)]=0x0==this[_0x3f5ff2(0x1f5)][_0x3f5ff2(0x1c8)]||_0x22b1e1,_0xfd2c86?this[_0x3f5ff2(0x1f2)][_0x3f5ff2(0x1e7)](_0x5202d9(this[_0x3f5ff2(0x1d0)],_0x3f5ff2(0x1e9))):this[_0x3f5ff2(0x1f2)][_0x3f5ff2(0x1e7)](_0x5202d9(this[_0x3f5ff2(0x1d0)],_0x3f5ff2(0x1c7)));}}get[_0x5904fa(0x1f8)](){const _0x3d3623=_0x5904fa;return!!this[_0x3d3623(0x1f5)][_0x3d3623(0x1f1)](_0x3baeaa=>_0x3baeaa[_0x3d3623(0x1e1)][_0x3d3623(0x1fa)]);}}
@@ -44,6 +44,14 @@ export declare class AISuggestionContainerView extends View<HTMLDivElement> {
44
44
  * Hides the loader if it exists.
45
45
  */
46
46
  hideLoader(): void;
47
+ /**
48
+ * Shows an error message in the suggestion container.
49
+ */
50
+ showError(message: string): void;
51
+ /**
52
+ * Hides the error message.
53
+ */
54
+ hideError(): void;
47
55
  /**
48
56
  * Marks the suggestion container as done.
49
57
  */
@@ -56,6 +64,14 @@ export declare class AISuggestionContainerView extends View<HTMLDivElement> {
56
64
  * Clears the loading state, enabling all interactive elements.
57
65
  */
58
66
  clearLoading(): void;
67
+ /**
68
+ * Disables specific buttons (show changes) for error state.
69
+ */
70
+ setErrorState(): void;
71
+ /**
72
+ * Re-enables specific buttons (show changes) after clearing error state.
73
+ */
74
+ clearErrorState(): void;
59
75
  }
60
76
  export type AISuggestionContainerToggleSuggestionDisplayModeEvent = {
61
77
  name: 'toggleSuggestionDisplayMode';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12e091=_0x5ec5;(function(_0x313481,_0x23c9d6){const _0x141d20=_0x5ec5,_0x2f22a3=_0x313481();while(!![]){try{const _0x30c60a=parseInt(_0x141d20(0xd6))/0x1+-parseInt(_0x141d20(0xc7))/0x2*(parseInt(_0x141d20(0x96))/0x3)+-parseInt(_0x141d20(0xb5))/0x4*(parseInt(_0x141d20(0xaf))/0x5)+-parseInt(_0x141d20(0xb9))/0x6*(parseInt(_0x141d20(0xb7))/0x7)+parseInt(_0x141d20(0xca))/0x8+-parseInt(_0x141d20(0xcc))/0x9*(parseInt(_0x141d20(0xbe))/0xa)+-parseInt(_0x141d20(0xc3))/0xb*(-parseInt(_0x141d20(0xcd))/0xc);if(_0x30c60a===_0x23c9d6)break;else _0x2f22a3['push'](_0x2f22a3['shift']());}catch(_0x3ae3af){_0x2f22a3['push'](_0x2f22a3['shift']());}}}(_0x1e0c,0xcf4ba));import{IconWeb as _0x2769a4}from'@ckeditor/ckeditor5-icons';import{View as _0x1faaef,ButtonView as _0x3d7785,IconView as _0x340cbe}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x4caa3f}from'./aiminitoolbarview.js';function _0x1e0c(){const _0x5b9abc=['sourcesView','children','fire','title','url','add','miniToolbarView','delegate','1579082dxSOVe','bodyView','ck-ai-web-sources__header','hasNonEmptyParts','icon','extendTemplate','173514HMxBFR','ck-ai-web-sources','markAsDone','ck-ai-web-source__image','ck-ai-suggestion__loader','isVisible','span','div','createCollection','AI_CHAT_SOURCES_HEADER','toggleSuggestionDisplayMode','hideLoader','bindTemplate','map','addMany','ck-hidden','isLoading','setLoading','updateContentParts','AI_CHAT_IS_WRITING','content','isShowChangesToggleVisible','img','clearLoading','setTemplate','39865MIGzqI','set','favicon','ck-ai-suggestion__container','updateSources','updateContent','232CtmNOg','_blank','246953GOGcZi','ck-rounded-corners','132lkxiSr','isOn','small','ck-ai-suggestion__loader-text','toggleShowChanges','2541170YkcJYy','_createLoaderView','open','bind','showLoader','14974795gzsrkf','isLoaderVisible','ck\x20ck-ai-web-source','headerView','20ibvPAw','loaderView','areChangesVisible','5936600RFJunF','locale','36CruHnB','12IYeroa'];_0x1e0c=function(){return _0x5b9abc;};return _0x1e0c();}import{AISuggestionHeaderView as _0xd0aa34}from'./aisuggestionheaderview.js';function _0x5ec5(_0x501c77,_0x23b441){const _0x1e0c47=_0x1e0c();return _0x5ec5=function(_0x5ec5aa,_0x2047c2){_0x5ec5aa=_0x5ec5aa-0x92;let _0x5477b0=_0x1e0c47[_0x5ec5aa];return _0x5477b0;},_0x5ec5(_0x501c77,_0x23b441);}import{AISuggestionBodyView as _0x4935ed}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xfbb5f6}from'../../utils/eventnames.js';import{AISpinnerView as _0x364e39}from'../aispinner.js';import{getTranslation as _0x1a9844}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x1faaef{[_0x12e091(0xd7)];[_0x12e091(0xcf)];[_0x12e091(0xc6)];[_0x12e091(0xd4)];[_0x12e091(0xc8)];[_0x12e091(0xce)];constructor(_0x19206d,{showDiff:_0x51cae5,areActionsDisabled:_0x123860,miniToolbarConfig:_0x53b3c4,hideHeader:_0x2f527a,showLoader:_0x54b76d,showUnchangedParts:_0x14eb55}){const _0x150f7d=_0x12e091;super(_0x19206d),this[_0x150f7d(0xb0)](_0x150f7d(0xc9),!0x1),this[_0x150f7d(0xb0)](_0x150f7d(0xc4),!!_0x54b76d),this[_0x150f7d(0xb0)](_0x150f7d(0xa6),!0x1),this[_0x150f7d(0xcf)]=this[_0x150f7d(0x9e)](),_0x2f527a||(this[_0x150f7d(0xc6)]=new _0xd0aa34(_0x19206d,{'showDiff':_0x51cae5}),this[_0x150f7d(0xc6)]['on'](_0x150f7d(0xbd),(_0x4fade1,_0x5acf27)=>{const _0xdc42a1=_0x150f7d;this[_0xdc42a1(0xc9)]=_0x5acf27[_0xdc42a1(0xba)],this[_0xdc42a1(0xd0)](_0xdc42a1(0xa0),{'showDiff':_0x5acf27[_0xdc42a1(0xba)]});}),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xc6)])),this[_0x150f7d(0xd7)]=new _0x4935ed(_0x19206d,{'areActionsDisabled':_0x123860,'showUnchangedParts':!!_0x14eb55}),this[_0x150f7d(0xd7)][_0x150f7d(0xd5)](..._0xfbb5f6)['to'](this),this[_0x150f7d(0xd7)][_0x150f7d(0x95)]({'attributes':{'class':[this[_0x150f7d(0xa2)]['if'](_0x150f7d(0xc4),_0x150f7d(0xa5))]}}),this[_0x150f7d(0xd4)]=new _0x4caa3f(_0x19206d,_0x53b3c4,_0x51cae5),this[_0x150f7d(0xd4)][_0x150f7d(0xd5)](..._0xfbb5f6)['to'](this),this[_0x150f7d(0xd4)]['on'](_0x150f7d(0xbd),(_0x252c06,_0x6898a6)=>{const _0x378931=_0x150f7d;this[_0x378931(0xc9)]=_0x6898a6,this[_0x378931(0xd0)](_0x378931(0xa0),{'showDiff':_0x6898a6});}),this[_0x150f7d(0xd4)][_0x150f7d(0xc1)](_0x150f7d(0xa6))['to'](this),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xd7)]),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xd4)]),this[_0x150f7d(0xce)]=new AIWebSourcesView(this[_0x150f7d(0xcb)]),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xce)]),_0x54b76d&&(this[_0x150f7d(0xc8)]=this[_0x150f7d(0xbf)](),this[_0x150f7d(0xcf)][_0x150f7d(0xd3)](this[_0x150f7d(0xc8)])),this[_0x150f7d(0xae)]({'tag':_0x150f7d(0x9d),'attributes':{'class':['ck',_0x150f7d(0xb2),_0x150f7d(0xb8)]},'children':this[_0x150f7d(0xcf)]});}async[_0x12e091(0xb4)](_0x2d505c){const _0x1b7e3b=_0x12e091;await this[_0x1b7e3b(0xd7)][_0x1b7e3b(0xa8)](_0x2d505c);}[_0x12e091(0xb3)](_0x5ac10b){const _0x26ff11=_0x12e091;this[_0x26ff11(0xce)][_0x26ff11(0xcf)][_0x26ff11(0xa4)](_0x5ac10b[_0x26ff11(0xa3)](_0x2c04dd=>new AIWebSourceView(this[_0x26ff11(0xcb)],_0x2c04dd))),this[_0x26ff11(0xce)][_0x26ff11(0x9b)]=!0x0;}[_0x12e091(0xc2)](){const _0x1c3b75=_0x12e091;this[_0x1c3b75(0xc8)]&&(this[_0x1c3b75(0xc4)]=!0x0);}[_0x12e091(0xa1)](){const _0x103fa0=_0x12e091;this[_0x103fa0(0xc8)]&&(this[_0x103fa0(0xc4)]=!0x1);}[_0x12e091(0x98)](){const _0x7f10f=_0x12e091;this[_0x7f10f(0xd7)][_0x7f10f(0x98)](),this[_0x7f10f(0xc6)]&&(this[_0x7f10f(0xc6)][_0x7f10f(0xab)]=this[_0x7f10f(0xd7)][_0x7f10f(0x93)]);}[_0x12e091(0xa7)](){const _0x29bf12=_0x12e091;this[_0x29bf12(0xa6)]=!0x0;}[_0x12e091(0xad)](){const _0x2a89ab=_0x12e091;this[_0x2a89ab(0xa6)]=!0x1;}[_0x12e091(0xbf)](){const _0x2e9205=_0x12e091,_0x466f0b=new _0x1faaef(this[_0x2e9205(0xcb)]),_0x2c835e=new _0x364e39(_0x2e9205(0xbb));_0x2c835e[_0x2e9205(0x9b)]=!0x0;const _0x215b16=new _0x1faaef(this[_0x2e9205(0xcb)]);return _0x215b16[_0x2e9205(0xae)]({'tag':_0x2e9205(0x9c),'attributes':{'class':['ck',_0x2e9205(0xbc)]},'children':[_0x1a9844(this[_0x2e9205(0xcb)],_0x2e9205(0xa9))]}),_0x466f0b[_0x2e9205(0xae)]({'tag':_0x2e9205(0x9d),'attributes':{'class':['ck',_0x2e9205(0x9a),this[_0x2e9205(0xa2)]['if'](_0x2e9205(0xc4),_0x2e9205(0xa5),_0x542f63=>!_0x542f63)]},'children':[_0x2c835e,_0x215b16]}),_0x466f0b;}}export class AIWebSourcesView extends _0x1faaef{[_0x12e091(0xcf)];constructor(_0x1e445c){const _0x2c077f=_0x12e091;super(_0x1e445c),this[_0x2c077f(0xcf)]=this[_0x2c077f(0x9e)](),this[_0x2c077f(0xb0)](_0x2c077f(0x9b),!0x1),this[_0x2c077f(0xae)]({'tag':_0x2c077f(0x9d),'attributes':{'class':['ck',_0x2c077f(0x97),this[_0x2c077f(0xa2)]['if'](_0x2c077f(0x9b),_0x2c077f(0xa5),_0x1c3eba=>!_0x1c3eba)]},'children':this[_0x2c077f(0xcf)]});const _0x4ea645=new _0x1faaef(this[_0x2c077f(0xcb)]),_0x11a2e0=new _0x340cbe();_0x11a2e0[_0x2c077f(0xaa)]=_0x2769a4,_0x4ea645[_0x2c077f(0xae)]({'tag':_0x2c077f(0x9d),'attributes':{'class':['ck',_0x2c077f(0x92)]},'children':[_0x11a2e0,{'tag':_0x2c077f(0x9c),'children':[{'text':_0x1a9844(this[_0x2c077f(0xcb)],_0x2c077f(0x9f))}]}]}),this[_0x2c077f(0xcf)][_0x2c077f(0xd3)](_0x4ea645);}}export class AIWebSourceView extends _0x3d7785{constructor(_0x587f14,_0x161909){const _0x33c5cc=_0x12e091;super(_0x587f14),this[_0x33c5cc(0xb0)]({'label':_0x161909[_0x33c5cc(0xd1)],'tooltip':_0x161909[_0x33c5cc(0xd1)],'class':[_0x33c5cc(0xc5)],'withText':!0x0});const _0x2ee161=this[_0x33c5cc(0xa2)];if(this[_0x33c5cc(0x95)]({'on':{'click':_0x2ee161['to'](()=>{const _0x589c86=_0x33c5cc;window[_0x589c86(0xc0)](_0x161909[_0x589c86(0xd2)],_0x589c86(0xb6));})}}),_0x161909[_0x33c5cc(0xb1)]){const _0x56b653=new _0x1faaef(_0x587f14);_0x56b653[_0x33c5cc(0xae)]({'tag':_0x33c5cc(0xac),'attributes':{'src':_0x161909[_0x33c5cc(0xb1)]||_0x2769a4,'alt':_0x161909[_0x33c5cc(0xd1)],'class':[_0x33c5cc(0x99)]}}),this[_0x33c5cc(0xcf)][_0x33c5cc(0xd3)](_0x56b653);}else this[_0x33c5cc(0xb0)](_0x33c5cc(0x94),_0x2769a4);}}
23
+ const _0x196f6e=_0x123c;(function(_0x4ceb54,_0x3faa7e){const _0x4b866b=_0x123c,_0x957e0=_0x4ceb54();while(!![]){try{const _0x4f161a=-parseInt(_0x4b866b(0x105))/0x1+-parseInt(_0x4b866b(0xcb))/0x2+parseInt(_0x4b866b(0x118))/0x3+-parseInt(_0x4b866b(0x106))/0x4+parseInt(_0x4b866b(0xe5))/0x5*(parseInt(_0x4b866b(0xed))/0x6)+parseInt(_0x4b866b(0x10f))/0x7+parseInt(_0x4b866b(0xde))/0x8;if(_0x4f161a===_0x3faa7e)break;else _0x957e0['push'](_0x957e0['shift']());}catch(_0x5ed7e0){_0x957e0['push'](_0x957e0['shift']());}}}(_0x3885,0xafd91));import{IconWeb as _0x4cbcf5}from'@ckeditor/ckeditor5-icons';import{View as _0x154121,ButtonView as _0x3b8bbf,IconView as _0x3f67a8}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x2ea8a3}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x779060}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x2f42fe}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2cc1b3}from'../../utils/eventnames.js';import{AISpinnerView as _0x5781d0}from'../aispinner.js';import{getTranslation as _0x406e47}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x154121{[_0x196f6e(0xfa)];[_0x196f6e(0x10d)];[_0x196f6e(0x103)];[_0x196f6e(0xfe)];[_0x196f6e(0xdd)];[_0x196f6e(0x112)];[_0x196f6e(0x116)];constructor(_0x4b1f70,{showDiff:_0x477751,areActionsDisabled:_0x1ab0f8,miniToolbarConfig:_0x193130,hideHeader:_0x14cfa7,showLoader:_0x4dc3dd,showUnchangedParts:_0x594d0e}){const _0x549592=_0x196f6e;super(_0x4b1f70),this[_0x549592(0xd3)](_0x549592(0xe7),!0x1),this[_0x549592(0xd3)](_0x549592(0xe0),!!_0x4dc3dd),this[_0x549592(0xd3)](_0x549592(0xe8),!0x1),this[_0x549592(0xd3)](_0x549592(0xea),!0x1),this[_0x549592(0x103)]=this[_0x549592(0x117)](),_0x14cfa7||(this[_0x549592(0xfe)]=new _0x779060(_0x4b1f70,{'showDiff':_0x477751}),this[_0x549592(0xfe)]['on'](_0x549592(0xe1),(_0x3d28e4,_0x523b48)=>{const _0x2b221f=_0x549592;this[_0x2b221f(0xe7)]=_0x523b48[_0x2b221f(0xee)],this[_0x2b221f(0xc9)](_0x2b221f(0xd7),{'showDiff':_0x523b48[_0x2b221f(0xee)]});}),this[_0x549592(0x103)][_0x549592(0xf4)](this[_0x549592(0xfe)])),this[_0x549592(0xfa)]=new _0x2f42fe(_0x4b1f70,{'areActionsDisabled':_0x1ab0f8,'showUnchangedParts':!!_0x594d0e}),this[_0x549592(0xfa)][_0x549592(0x11a)](..._0x2cc1b3)['to'](this),this[_0x549592(0xfa)][_0x549592(0xcd)]({'attributes':{'class':[this[_0x549592(0x104)]['if'](_0x549592(0xe0),_0x549592(0xc8)),this[_0x549592(0x104)]['if'](_0x549592(0xe8),_0x549592(0xc8))]}}),this[_0x549592(0x10d)]=new _0x2ea8a3(_0x4b1f70,_0x193130,_0x477751),this[_0x549592(0x10d)][_0x549592(0x11a)](..._0x2cc1b3)['to'](this),this[_0x549592(0x10d)]['on'](_0x549592(0xe1),(_0x5e679a,_0x573f60)=>{const _0x1dc9b9=_0x549592;this[_0x1dc9b9(0xe7)]=_0x573f60,this[_0x1dc9b9(0xc9)](_0x1dc9b9(0xd7),{'showDiff':_0x573f60});}),this[_0x549592(0x10d)][_0x549592(0xca)](_0x549592(0xea))['to'](this),this[_0x549592(0x103)][_0x549592(0xf4)](this[_0x549592(0xfa)]),this[_0x549592(0x103)][_0x549592(0xf4)](this[_0x549592(0x10d)]),this[_0x549592(0x116)]=new AIWebSourcesView(this[_0x549592(0xc6)]),this[_0x549592(0x103)][_0x549592(0xf4)](this[_0x549592(0x116)]),_0x4dc3dd&&(this[_0x549592(0xdd)]=this[_0x549592(0xe9)](),this[_0x549592(0x103)][_0x549592(0xf4)](this[_0x549592(0xdd)])),this[_0x549592(0x112)]=this[_0x549592(0xd8)](),this[_0x549592(0x103)][_0x549592(0xf4)](this[_0x549592(0x112)]),this[_0x549592(0xcf)]({'tag':_0x549592(0x10a),'attributes':{'class':['ck',_0x549592(0x109),_0x549592(0xc7)]},'children':this[_0x549592(0x103)]});}async[_0x196f6e(0xd9)](_0xf0236e){const _0xdb9177=_0x196f6e;await this[_0xdb9177(0xfa)][_0xdb9177(0xe3)](_0xf0236e);}[_0x196f6e(0xff)](_0x3222e6){const _0x287183=_0x196f6e;this[_0x287183(0x116)][_0x287183(0x103)][_0x287183(0x10b)](_0x3222e6[_0x287183(0xf9)](_0x282234=>new AIWebSourceView(this[_0x287183(0xc6)],_0x282234))),this[_0x287183(0x116)][_0x287183(0x100)]=!0x0;}[_0x196f6e(0xd6)](){const _0x35c2c0=_0x196f6e;this[_0x35c2c0(0xdd)]&&(this[_0x35c2c0(0xe0)]=!0x0);}[_0x196f6e(0xf0)](){const _0x6d887d=_0x196f6e;this[_0x6d887d(0xdd)]&&(this[_0x6d887d(0xe0)]=!0x1);}[_0x196f6e(0xe6)](_0x3ed728){const _0x5a3197=_0x196f6e;if(this[_0x5a3197(0x112)]){const _0x239f71=this[_0x5a3197(0x112)][_0x5a3197(0xf3)]?.[_0x5a3197(0xf6)](_0x5a3197(0xfd));_0x239f71&&(_0x239f71[_0x5a3197(0xe4)]=_0x3ed728),this[_0x5a3197(0xe8)]=!0x0;}}[_0x196f6e(0x102)](){const _0x31020f=_0x196f6e;this[_0x31020f(0x112)]&&(this[_0x31020f(0xe8)]=!0x1);}[_0x196f6e(0x114)](){const _0x5747f2=_0x196f6e;this[_0x5747f2(0xfa)][_0x5747f2(0x114)](),this[_0x5747f2(0xfe)]&&(this[_0x5747f2(0xfe)][_0x5747f2(0xdb)]=this[_0x5747f2(0xfa)][_0x5747f2(0xef)]);}[_0x196f6e(0xcc)](){const _0x27dcd6=_0x196f6e;this[_0x27dcd6(0xea)]=!0x0;}[_0x196f6e(0x110)](){const _0x111f69=_0x196f6e;this[_0x111f69(0xea)]=!0x1;}[_0x196f6e(0x111)](){const _0x1896c0=_0x196f6e;this[_0x1896c0(0x10d)]&&(this[_0x1896c0(0x10d)][_0x1896c0(0xea)]=!0x0),this[_0x1896c0(0xfe)]?.[_0x1896c0(0xeb)]&&(this[_0x1896c0(0xfe)][_0x1896c0(0xeb)][_0x1896c0(0x107)]=!0x1);}[_0x196f6e(0xf8)](){const _0x4d69c5=_0x196f6e;this[_0x4d69c5(0x10d)]&&(this[_0x4d69c5(0x10d)][_0x4d69c5(0xea)]=!0x1),this[_0x4d69c5(0xfe)]?.[_0x4d69c5(0xeb)]&&(this[_0x4d69c5(0xfe)][_0x4d69c5(0xeb)][_0x4d69c5(0x107)]=!0x0);}[_0x196f6e(0xf7)](_0x455d65){const _0x40164e=_0x196f6e;this[_0x40164e(0x10d)][_0x40164e(0xd1)][_0x40164e(0xf4)](_0x455d65);}[_0x196f6e(0xda)](_0x519bae){const _0x390f73=_0x196f6e;this[_0x390f73(0x10d)][_0x390f73(0xd1)][_0x390f73(0x10c)](_0x519bae);}[_0x196f6e(0xe9)](){const _0x9a9fd7=_0x196f6e,_0x4bea50=new _0x154121(this[_0x9a9fd7(0xc6)]),_0x2aece0=new _0x5781d0(_0x9a9fd7(0x113));_0x2aece0[_0x9a9fd7(0x100)]=!0x0;const _0x49e09c=new _0x154121(this[_0x9a9fd7(0xc6)]);return _0x49e09c[_0x9a9fd7(0xcf)]({'tag':_0x9a9fd7(0xf1),'attributes':{'class':['ck',_0x9a9fd7(0xdf)]},'children':[_0x406e47(this[_0x9a9fd7(0xc6)],_0x9a9fd7(0xf5))]}),_0x4bea50[_0x9a9fd7(0xcf)]({'tag':_0x9a9fd7(0x10a),'attributes':{'class':['ck',_0x9a9fd7(0x108),this[_0x9a9fd7(0x104)]['if'](_0x9a9fd7(0xe0),_0x9a9fd7(0xc8),_0x45f45e=>!_0x45f45e)]},'children':[_0x2aece0,_0x49e09c]}),_0x4bea50;}[_0x196f6e(0xd8)](){const _0x2565ec=_0x196f6e,_0x479923=new _0x154121(this[_0x2565ec(0xc6)]),_0x56ca37=new _0x154121(this[_0x2565ec(0xc6)]);return _0x56ca37[_0x2565ec(0xcf)]({'tag':_0x2565ec(0xf1),'attributes':{'class':['ck',_0x2565ec(0xdc)]},'children':[_0x406e47(this[_0x2565ec(0xc6)],_0x2565ec(0xf2))]}),_0x479923[_0x2565ec(0xcf)]({'tag':_0x2565ec(0x10a),'attributes':{'class':['ck',_0x2565ec(0xd4),this[_0x2565ec(0x104)]['if'](_0x2565ec(0xe8),_0x2565ec(0xc8),_0x49e9e9=>!_0x49e9e9)]},'children':[_0x56ca37]}),_0x479923;}}export class AIWebSourcesView extends _0x154121{[_0x196f6e(0x103)];constructor(_0x283f35){const _0xaeceee=_0x196f6e;super(_0x283f35),this[_0xaeceee(0x103)]=this[_0xaeceee(0x117)](),this[_0xaeceee(0xd3)](_0xaeceee(0x100),!0x1),this[_0xaeceee(0xcf)]({'tag':_0xaeceee(0x10a),'attributes':{'class':['ck',_0xaeceee(0x119),this[_0xaeceee(0x104)]['if'](_0xaeceee(0x100),_0xaeceee(0xc8),_0x185388=>!_0x185388)]},'children':this[_0xaeceee(0x103)]});const _0xb092da=new _0x154121(this[_0xaeceee(0xc6)]),_0x5e0945=new _0x3f67a8();_0x5e0945[_0xaeceee(0x115)]=_0x4cbcf5,_0xb092da[_0xaeceee(0xcf)]({'tag':_0xaeceee(0x10a),'attributes':{'class':['ck',_0xaeceee(0xe2)]},'children':[_0x5e0945,{'tag':_0xaeceee(0xf1),'children':[{'text':_0x406e47(this[_0xaeceee(0xc6)],_0xaeceee(0xfb))}]}]}),this[_0xaeceee(0x103)][_0xaeceee(0xf4)](_0xb092da);}}function _0x123c(_0xd7934d,_0x54ad3e){const _0x38859b=_0x3885();return _0x123c=function(_0x123c2b,_0x19c0f4){_0x123c2b=_0x123c2b-0xc5;let _0x23fd80=_0x38859b[_0x123c2b];return _0x23fd80;},_0x123c(_0xd7934d,_0x54ad3e);}export class AIWebSourceView extends _0x3b8bbf{constructor(_0x33ae69,_0x386950){const _0x27a7a8=_0x196f6e;super(_0x33ae69),this[_0x27a7a8(0xd3)]({'label':_0x386950[_0x27a7a8(0x10e)],'tooltip':_0x386950[_0x27a7a8(0x10e)],'class':[_0x27a7a8(0xce)],'withText':!0x0});const _0x3b6a96=this[_0x27a7a8(0x104)];if(this[_0x27a7a8(0xcd)]({'on':{'click':_0x3b6a96['to'](()=>{const _0x3195eb=_0x27a7a8;window[_0x3195eb(0xd5)](_0x386950[_0x3195eb(0x101)],_0x3195eb(0xfc));})}}),_0x386950[_0x27a7a8(0xc5)]){const _0x3d8f2d=new _0x154121(_0x33ae69);_0x3d8f2d[_0x27a7a8(0xcf)]({'tag':_0x27a7a8(0xec),'attributes':{'src':_0x386950[_0x27a7a8(0xc5)]||_0x4cbcf5,'alt':_0x386950[_0x27a7a8(0x10e)],'class':[_0x27a7a8(0xd0)]}}),this[_0x27a7a8(0x103)][_0x27a7a8(0xf4)](_0x3d8f2d);}else this[_0x27a7a8(0xd3)](_0x27a7a8(0xd2),_0x4cbcf5);}}function _0x3885(){const _0x46989c=['updateContentParts','textContent','31195rIUASm','showError','areChangesVisible','isErrorVisible','_createLoaderView','isLoading','showChangesToggleView','img','24LJPAiJ','isOn','hasNonEmptyParts','hideLoader','span','AI_CHAT_GENERIC_ERROR','element','add','AI_CHAT_IS_WRITING','querySelector','addNavigationItem','clearErrorState','map','bodyView','AI_CHAT_SOURCES_HEADER','_blank','.ck-ai-suggestion__error-text','headerView','updateSources','isVisible','url','hideError','children','bindTemplate','424417tmdfYr','5657948CfGjBF','isEnabled','ck-ai-suggestion__loader','ck-ai-suggestion__container','div','addMany','remove','miniToolbarView','title','578116GaZAsF','clearLoading','setErrorState','errorView','small','markAsDone','content','sourcesView','createCollection','1222884BDUscE','ck-ai-web-sources','delegate','favicon','locale','ck-rounded-corners','ck-hidden','fire','bind','19414lPPOtq','setLoading','extendTemplate','ck\x20ck-ai-web-source','setTemplate','ck-ai-web-source__image','items','icon','set','ck-ai-suggestion__error','open','showLoader','toggleSuggestionDisplayMode','_createErrorView','updateContent','removeNavigationItem','isShowChangesToggleVisible','ck-ai-suggestion__error-text','loaderView','16429696IqjxLK','ck-ai-suggestion__loader-text','isLoaderVisible','toggleShowChanges','ck-ai-web-sources__header'];_0x3885=function(){return _0x46989c;};return _0x3885();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3788(_0x468e73,_0x2c8570){const _0x3e5f1f=_0x3e5f();return _0x3788=function(_0x378808,_0x43acb9){_0x378808=_0x378808-0x80;let _0xe39fd7=_0x3e5f1f[_0x378808];return _0xe39fd7;},_0x3788(_0x468e73,_0x2c8570);}const _0x21b743=_0x3788;(function(_0x383a6f,_0x47f136){const _0x7152db=_0x3788,_0x4bab29=_0x383a6f();while(!![]){try{const _0x1b796c=parseInt(_0x7152db(0xb9))/0x1+parseInt(_0x7152db(0x99))/0x2+parseInt(_0x7152db(0xa7))/0x3+-parseInt(_0x7152db(0xbb))/0x4+parseInt(_0x7152db(0x80))/0x5+parseInt(_0x7152db(0xbd))/0x6*(parseInt(_0x7152db(0x94))/0x7)+-parseInt(_0x7152db(0x9b))/0x8*(parseInt(_0x7152db(0x8e))/0x9);if(_0x1b796c===_0x47f136)break;else _0x4bab29['push'](_0x4bab29['shift']());}catch(_0x1252b5){_0x4bab29['push'](_0x4bab29['shift']());}}}(_0x3e5f,0x75ca4));import{View as _0x13a6f2,IconView as _0x2dc6f7,ToolbarView as _0x4c2d54,ButtonView as _0x53a9bd}from'ckeditor5/src/ui.js';import{IconAddComment as _0x45c227,IconDocumentWithLoupe as _0x4f1eb6,IconDocumentWithCheckmark as _0x590f29,IconDocumentWithCross as _0x23a2ee,IconRemove as _0x98614b,IconThreeStars as _0x16beb2}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0xa67fe8}from'../../utils/htmlstreamer.js';import{getTranslation as _0xbb1955}from'../../utils/common-translations.js';import{serialize as _0x5b3c0f}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1ff98f}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x13a6f2{[_0x21b743(0xc4)];[_0x21b743(0x9c)];[_0x21b743(0x8d)];[_0x21b743(0x81)];constructor(_0x496e93,{part:_0x40636d,areActionsDisabled:_0x561bac}){const _0x5d9dbe=_0x21b743;super(_0x496e93),this[_0x5d9dbe(0xa9)](_0x5d9dbe(0x86),_0x40636d),this[_0x5d9dbe(0xa9)](_0x5d9dbe(0x90),_0x5d9dbe(0xc2)),this[_0x5d9dbe(0xa9)](_0x5d9dbe(0x8b),!0x1),this[_0x5d9dbe(0xb2)](_0x5d9dbe(0xc3))['to'](this,_0x5d9dbe(0x90),_0x48448c=>_0x5d9dbe(0xc2)==_0x48448c&&!_0x561bac),this[_0x5d9dbe(0x9c)]=this[_0x5d9dbe(0xa8)](),this[_0x5d9dbe(0xc4)]=new _0xa67fe8({'textNodeStyle':_0x5d9dbe(0x87),'delay':0x14}),this[_0x5d9dbe(0x8d)]=new Gn(_0x496e93,_0x40636d),this[_0x5d9dbe(0x8d)][_0x5d9dbe(0xb2)](_0x5d9dbe(0x86))['to'](this),this[_0x5d9dbe(0x8d)][_0x5d9dbe(0xb2)](_0x5d9dbe(0xc3))['to'](this),this[_0x5d9dbe(0x8d)][_0x5d9dbe(0xb2)](_0x5d9dbe(0x90))['to'](this),this[_0x5d9dbe(0x8d)][_0x5d9dbe(0xb4)](..._0x1ff98f)['to'](this);const _0xdb8b95=this[_0x5d9dbe(0xb8)];this[_0x5d9dbe(0x81)]=new _0x13a6f2(),this[_0x5d9dbe(0x81)][_0x5d9dbe(0xb5)]({'tag':_0x5d9dbe(0xae),'attributes':{'class':['ck',_0x5d9dbe(0x82)]}}),this[_0x5d9dbe(0x9c)][_0x5d9dbe(0x85)]([this[_0x5d9dbe(0x81)]]),this[_0x5d9dbe(0xb5)]({'tag':_0x5d9dbe(0xae),'attributes':{'class':['ck',_0x5d9dbe(0x98),_0xdb8b95['to'](_0x5d9dbe(0x90),_0x58d00e=>_0x5d9dbe(0x9a)+_0x58d00e),_0xdb8b95['to'](_0x5d9dbe(0xc3),_0x5e9a74=>_0x5e9a74?_0x5d9dbe(0x8a):void 0x0),_0xdb8b95['if'](_0x5d9dbe(0x8b),_0x5d9dbe(0xbe),_0x192aed=>!_0x192aed)]},'children':this[_0x5d9dbe(0x9c)],'on':{'mouseenter':_0xdb8b95['to'](()=>{const _0x1df4b2=_0x5d9dbe;this[_0x1df4b2(0xc3)]&&this[_0x1df4b2(0xc0)](_0x1df4b2(0xc5),{'index':_0x40636d[_0x1df4b2(0x89)]});}),'mouseleave':_0xdb8b95['to'](()=>{const _0x87d8d0=_0x5d9dbe;this[_0x87d8d0(0xc3)]&&this[_0x87d8d0(0xc0)](_0x87d8d0(0x84),{'index':_0x40636d[_0x87d8d0(0x89)]});})}});}async[_0x21b743(0xc7)]({part:_0x1e329a,renderingStrategy:_0x52a9dc,showUnchangedParts:_0x2d2137=!0x1,abortSignal:_0xe1b3a4}){const _0xe14eee=_0x21b743;this[_0xe14eee(0x86)]=_0x1e329a,this[_0xe14eee(0x8b)]=this[_0xe14eee(0x86)][_0xe14eee(0xba)]||_0x2d2137,this[_0xe14eee(0x8b)]&&(_0xe14eee(0xac)===_0x52a9dc?await this[_0xe14eee(0xc4)][_0xe14eee(0x9f)]({'document':this[_0xe14eee(0x86)][_0xe14eee(0xb1)],'targetElement':this[_0xe14eee(0x81)][_0xe14eee(0xaf)],'abortSignal':_0xe1b3a4}):this[_0xe14eee(0x81)][_0xe14eee(0xaf)][_0xe14eee(0x8c)]=_0x5b3c0f(this[_0xe14eee(0x86)][_0xe14eee(0xb1)]));}[_0x21b743(0x83)](_0xc81b6c){const _0x53ee1d=_0x21b743;_0xc81b6c?this[_0x53ee1d(0x9c)][_0x53ee1d(0xb0)](this[_0x53ee1d(0x8d)])||this[_0x53ee1d(0x9c)][_0x53ee1d(0x96)](this[_0x53ee1d(0x8d)],0x0):this[_0x53ee1d(0x9c)][_0x53ee1d(0xb0)](this[_0x53ee1d(0x8d)])&&this[_0x53ee1d(0x9c)][_0x53ee1d(0x97)](this[_0x53ee1d(0x8d)]);}}function _0x3e5f(){const _0x266805=['ck-ai-suggestion__body__content-part__content','toggleHeader','mouseLeaveSuggestion','addMany','partDefinition','animation:\x20ck-html-streamer-fade-in\x20.5s','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','index','ck-ai-suggestion__body__content-part_active','isVisible','innerHTML','headerView','348633lcDBCk','rejected','state','ck-ai-suggestion__body__content-part__icon-rejected','AI_SUGGESTION_CONTENT_PART_TITLE','rejectSuggestion','5585111gajaMu','span','add','remove','ck-ai-suggestion__body__content-part','1782132xCSdeF','ck-ai-suggestion__body__content-part_','344lgbZjC','children','execute','insertSuggestion','stream','AI_SUGGESTION_CONTENT_PART_REJECTED','toString','accepted','AI_SUGGESTION_CONTENT_PART_DELETE','_iconStateAccepted','ck-ai-suggestion__body__content-part__icon-accepted','items','458670buUxAG','createCollection','set','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','_iconStateRejected','streaming','showChangeInText','div','element','has','content','bind','ck-ai-suggestion__body__content-part__icon-title','delegate','setTemplate','ck-ai-suggestion__body__content-part__title','_toolbarView','bindTemplate','676746UYKsTt','hasChanges','3280880MlIcRN','ck-ai-suggestion__body__content-part__title__label','6sIcIPD','ck-hidden','change:state','fire','extendTemplate','pending','isEnabled','htmlStreamer','mouseOverSuggestion','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','updateContent','2249020juqJAA','contentView'];_0x3e5f=function(){return _0x266805;};return _0x3e5f();}class Gn extends _0x13a6f2{[_0x21b743(0x9c)];[_0x21b743(0xb7)];[_0x21b743(0xa4)];[_0x21b743(0xab)];constructor(_0x4afcc5,_0x1c4ff1){const _0xf39a54=_0x21b743;super(_0x4afcc5),this[_0xf39a54(0xa9)](_0xf39a54(0x86),_0x1c4ff1),this[_0xf39a54(0xa9)](_0xf39a54(0xc3),!0x0),this[_0xf39a54(0xa9)](_0xf39a54(0x90),_0xf39a54(0xc2));const _0x3c79da=new _0x2dc6f7();_0x3c79da[_0xf39a54(0xb1)]=_0x16beb2,_0x3c79da[_0xf39a54(0xc1)]({'attributes':{'class':[_0xf39a54(0xb3)]}});const _0x3597f3=new _0x53a9bd(_0x4afcc5);_0x3597f3[_0xf39a54(0xa9)]({'label':_0xbb1955(_0x4afcc5,_0xf39a54(0x88)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4f1eb6}),_0x3597f3[_0xf39a54(0xb2)](_0xf39a54(0xc3))['to'](this),_0x3597f3['on'](_0xf39a54(0x9d),()=>{const _0x537750=_0xf39a54;this[_0x537750(0xc0)](_0x537750(0xad),{'index':_0x1c4ff1[_0x537750(0x89)]});});const _0x4a723b=new _0x53a9bd(_0x4afcc5);_0x4a723b[_0xf39a54(0xa9)]({'label':_0xbb1955(_0x4afcc5,_0xf39a54(0xc6)),'tooltip':!0x0,'withText':!0x1,'icon':_0x45c227}),_0x4a723b[_0xf39a54(0xb2)](_0xf39a54(0xc3))['to'](this),_0x4a723b['on'](_0xf39a54(0x9d),()=>{const _0x446131=_0xf39a54;this[_0x446131(0xc0)](_0x446131(0x9e),{'index':_0x1c4ff1[_0x446131(0x89)]});});const _0x5250ac=new _0x53a9bd(_0x4afcc5);_0x5250ac[_0xf39a54(0xa9)]({'label':_0xbb1955(_0x4afcc5,_0xf39a54(0xa3)),'tooltip':!0x0,'withText':!0x1,'icon':_0x98614b}),_0x5250ac['on'](_0xf39a54(0x9d),()=>{const _0x305fe5=_0xf39a54;this[_0x305fe5(0xc0)](_0x305fe5(0x93),{'index':_0x1c4ff1[_0x305fe5(0x89)]});}),_0x5250ac[_0xf39a54(0xb2)](_0xf39a54(0xc3))['to'](this),this[_0xf39a54(0xb7)]=new _0x4c2d54(_0x4afcc5),this[_0xf39a54(0xb7)][_0xf39a54(0xa6)][_0xf39a54(0x85)]([_0x3597f3,_0x4a723b,_0x5250ac]),this[_0xf39a54(0xa4)]=new _0x2dc6f7(),this[_0xf39a54(0xa4)][_0xf39a54(0xb1)]=_0x590f29,this[_0xf39a54(0xa4)][_0xf39a54(0xc1)]({'attributes':{'class':[_0xf39a54(0xa5)],'data-cke-tooltip-text':_0xbb1955(_0x4afcc5,_0xf39a54(0xaa)),'data-cke-tooltip-position':'n'}}),this[_0xf39a54(0xab)]=new _0x2dc6f7(),this[_0xf39a54(0xab)][_0xf39a54(0xb1)]=_0x23a2ee,this[_0xf39a54(0xab)][_0xf39a54(0xc1)]({'attributes':{'class':[_0xf39a54(0x91)],'data-cke-tooltip-text':_0xbb1955(_0x4afcc5,_0xf39a54(0xa0)),'data-cke-tooltip-position':'n'}});const _0xbfa787=new _0x13a6f2(_0x4afcc5);_0xbfa787[_0xf39a54(0xb5)]({'tag':_0xf39a54(0x95),'attributes':{'class':['ck',_0xf39a54(0xbc)]},'children':[_0xbb1955(_0x4afcc5,_0xf39a54(0x92),(_0x1c4ff1[_0xf39a54(0x89)]+0x1)[_0xf39a54(0xa1)]())]}),this[_0xf39a54(0x9c)]=this[_0xf39a54(0xa8)](),this[_0xf39a54(0x9c)][_0xf39a54(0x85)]([_0x3c79da,_0xbfa787,this[_0xf39a54(0xb7)]]),this[_0xf39a54(0xb5)]({'tag':_0xf39a54(0xae),'attributes':{'class':['ck',_0xf39a54(0xb6)]},'children':this[_0xf39a54(0x9c)]}),this['on'](_0xf39a54(0xbf),(_0x266b23,_0x298472,_0x2107a8,_0x1194d2)=>{const _0x267949=_0xf39a54;switch(_0x1194d2){case _0x267949(0xc2):this[_0x267949(0x9c)][_0x267949(0x97)](this[_0x267949(0xb7)]);break;case _0x267949(0xa2):this[_0x267949(0x9c)][_0x267949(0x97)](this[_0x267949(0xa4)]);break;case _0x267949(0x8f):this[_0x267949(0x9c)][_0x267949(0x97)](this[_0x267949(0xab)]);}switch(_0x2107a8){case _0x267949(0xc2):this[_0x267949(0x9c)][_0x267949(0x96)](this[_0x267949(0xb7)]);break;case _0x267949(0xa2):this[_0x267949(0x9c)][_0x267949(0x96)](this[_0x267949(0xa4)]);break;case _0x267949(0x8f):this[_0x267949(0x9c)][_0x267949(0x96)](this[_0x267949(0xab)]);}});}}
23
+ const _0x3eb41b=_0x39e3;(function(_0x1b0bc3,_0x5563a5){const _0x26b316=_0x39e3,_0x5d4a82=_0x1b0bc3();while(!![]){try{const _0x3ec4c8=-parseInt(_0x26b316(0x7f))/0x1*(parseInt(_0x26b316(0x95))/0x2)+parseInt(_0x26b316(0xac))/0x3+parseInt(_0x26b316(0x91))/0x4+parseInt(_0x26b316(0x6a))/0x5+parseInt(_0x26b316(0x72))/0x6+-parseInt(_0x26b316(0x93))/0x7+parseInt(_0x26b316(0x77))/0x8*(-parseInt(_0x26b316(0x90))/0x9);if(_0x3ec4c8===_0x5563a5)break;else _0x5d4a82['push'](_0x5d4a82['shift']());}catch(_0x2bf50c){_0x5d4a82['push'](_0x5d4a82['shift']());}}}(_0x1bd0,0x4e898));import{View as _0x3e15af,IconView as _0x5462d0,ToolbarView as _0x206f3a,ButtonView as _0x415537}from'ckeditor5/src/ui.js';function _0x39e3(_0x36bfae,_0x331830){const _0x1bd05e=_0x1bd0();return _0x39e3=function(_0x39e3bb,_0x3d133e){_0x39e3bb=_0x39e3bb-0x64;let _0x3de572=_0x1bd05e[_0x39e3bb];return _0x3de572;},_0x39e3(_0x36bfae,_0x331830);}import{IconAddComment as _0x30f746,IconDocumentWithLoupe as _0x581fa7,IconDocumentWithCheckmark as _0x332a06,IconDocumentWithCross as _0x15c0d5,IconRemove as _0x3e8268,IconThreeStars as _0x1d6cce}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x4711ec}from'../../utils/htmlstreamer.js';import{getTranslation as _0xaed52b}from'../../utils/common-translations.js';import{serialize as _0x1192ef}from'../../utils/htmlparser.js';function _0x1bd0(){const _0xe513d6=['showChangeInText','insertSuggestion','fire','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','updateContent','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','12561iHKEUe','toggleHeader','setTemplate','ck-ai-suggestion__body__content-part_active','htmlStreamer','_toolbarView','ck-hidden','index','ck-ai-suggestion__body__content-part__icon-rejected','accepted','add','rejected','ck-ai-suggestion__body__content-part__icon-accepted','execute','state','_iconStateAccepted','isEnabled','1458CtBTRO','2223368CWJbkC','delegate','1379805Rnpbiu','span','56WMkIsT','streaming','ck-ai-suggestion__body__content-part__title','bind','ck-ai-suggestion__body__content-part','addMany','content','remove','AI_SUGGESTION_CONTENT_PART_REJECTED','createCollection','ck-content','AI_SUGGESTION_CONTENT_PART_DELETE','_iconStateRejected','partDefinition','children','ck-reset_all-excluded','ck-ai-suggestion__body__content-part_','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','mouseOverSuggestion','toString','isVisible','ck-ai-suggestion__body__content-part__title__label','innerHTML','277785ZNbviY','contentView','headerView','change:state','rejectSuggestion','bindTemplate','element','has','566330AWwgSh','items','animation:\x20ck-html-streamer-fade-in\x20.5s','stream','hasChanges','pending','div','AI_SUGGESTION_CONTENT_PART_TITLE','864744rEkysw','set','extendTemplate','mouseLeaveSuggestion','ck-ai-suggestion__body__content-part__icon-title','1744ecPrlH','ck-ai-suggestion__body__content-part__content'];_0x1bd0=function(){return _0xe513d6;};return _0x1bd0();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x463e10}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x3e15af{[_0x3eb41b(0x83)];[_0x3eb41b(0xa3)];[_0x3eb41b(0x64)];[_0x3eb41b(0xad)];constructor(_0x2fe18f,{part:_0x3d39db,areActionsDisabled:_0x23d51e}){const _0x3b0a28=_0x3eb41b;super(_0x2fe18f),this[_0x3b0a28(0x73)](_0x3b0a28(0xa2),_0x3d39db),this[_0x3b0a28(0x73)](_0x3b0a28(0x8d),_0x3b0a28(0x6f)),this[_0x3b0a28(0x73)](_0x3b0a28(0xa9),!0x1),this[_0x3b0a28(0x98)](_0x3b0a28(0x8f))['to'](this,_0x3b0a28(0x8d),_0x3c2ed5=>_0x3b0a28(0x6f)==_0x3c2ed5&&!_0x23d51e),this[_0x3b0a28(0xa3)]=this[_0x3b0a28(0x9e)](),this[_0x3b0a28(0x83)]=new _0x4711ec({'textNodeStyle':_0x3b0a28(0x6c),'delay':0x14}),this[_0x3b0a28(0x64)]=new Jn(_0x2fe18f,_0x3d39db),this[_0x3b0a28(0x64)][_0x3b0a28(0x98)](_0x3b0a28(0xa2))['to'](this),this[_0x3b0a28(0x64)][_0x3b0a28(0x98)](_0x3b0a28(0x8f))['to'](this),this[_0x3b0a28(0x64)][_0x3b0a28(0x98)](_0x3b0a28(0x8d))['to'](this),this[_0x3b0a28(0x64)][_0x3b0a28(0x92)](..._0x463e10)['to'](this);const _0x3d1004=this[_0x3b0a28(0x67)];this[_0x3b0a28(0xad)]=new _0x3e15af(),this[_0x3b0a28(0xad)][_0x3b0a28(0x81)]({'tag':_0x3b0a28(0x70),'attributes':{'class':['ck',_0x3b0a28(0x9f),_0x3b0a28(0xa4),_0x3b0a28(0x78)]}}),this[_0x3b0a28(0xa3)][_0x3b0a28(0x9a)]([this[_0x3b0a28(0xad)]]),this[_0x3b0a28(0x81)]({'tag':_0x3b0a28(0x70),'attributes':{'class':['ck',_0x3b0a28(0x99),_0x3d1004['to'](_0x3b0a28(0x8d),_0x209261=>_0x3b0a28(0xa5)+_0x209261),_0x3d1004['to'](_0x3b0a28(0x8f),_0x5e8147=>_0x5e8147?_0x3b0a28(0x82):void 0x0),_0x3d1004['if'](_0x3b0a28(0xa9),_0x3b0a28(0x85),_0x457cc2=>!_0x457cc2)]},'children':this[_0x3b0a28(0xa3)],'on':{'mouseenter':_0x3d1004['to'](()=>{const _0x1798c5=_0x3b0a28;this[_0x1798c5(0x8f)]&&this[_0x1798c5(0x7b)](_0x1798c5(0xa7),{'index':_0x3d39db[_0x1798c5(0x86)]});}),'mouseleave':_0x3d1004['to'](()=>{const _0x4ae310=_0x3b0a28;this[_0x4ae310(0x8f)]&&this[_0x4ae310(0x7b)](_0x4ae310(0x75),{'index':_0x3d39db[_0x4ae310(0x86)]});})}});}async[_0x3eb41b(0x7d)]({part:_0x22abb0,renderingStrategy:_0x158659,showUnchangedParts:_0xa88112=!0x1,abortSignal:_0x4c802f}){const _0x189b7a=_0x3eb41b;this[_0x189b7a(0xa2)]=_0x22abb0,this[_0x189b7a(0xa9)]=this[_0x189b7a(0xa2)][_0x189b7a(0x6e)]||_0xa88112,this[_0x189b7a(0xa9)]&&(_0x189b7a(0x96)===_0x158659?await this[_0x189b7a(0x83)][_0x189b7a(0x6d)]({'document':this[_0x189b7a(0xa2)][_0x189b7a(0x9b)],'targetElement':this[_0x189b7a(0xad)][_0x189b7a(0x68)],'abortSignal':_0x4c802f}):this[_0x189b7a(0xad)][_0x189b7a(0x68)][_0x189b7a(0xab)]=_0x1192ef(this[_0x189b7a(0xa2)][_0x189b7a(0x9b)]));}[_0x3eb41b(0x80)](_0x5ebc40){const _0x3409a7=_0x3eb41b;_0x5ebc40?this[_0x3409a7(0xa3)][_0x3409a7(0x69)](this[_0x3409a7(0x64)])||this[_0x3409a7(0xa3)][_0x3409a7(0x89)](this[_0x3409a7(0x64)],0x0):this[_0x3409a7(0xa3)][_0x3409a7(0x69)](this[_0x3409a7(0x64)])&&this[_0x3409a7(0xa3)][_0x3409a7(0x9c)](this[_0x3409a7(0x64)]);}}class Jn extends _0x3e15af{[_0x3eb41b(0xa3)];[_0x3eb41b(0x84)];[_0x3eb41b(0x8e)];[_0x3eb41b(0xa1)];constructor(_0x2459c9,_0x2bb469){const _0xf5d26b=_0x3eb41b;super(_0x2459c9),this[_0xf5d26b(0x73)](_0xf5d26b(0xa2),_0x2bb469),this[_0xf5d26b(0x73)](_0xf5d26b(0x8f),!0x0),this[_0xf5d26b(0x73)](_0xf5d26b(0x8d),_0xf5d26b(0x6f));const _0x422efd=new _0x5462d0();_0x422efd[_0xf5d26b(0x9b)]=_0x1d6cce,_0x422efd[_0xf5d26b(0x74)]({'attributes':{'class':[_0xf5d26b(0x76)]}});const _0x40ab63=new _0x415537(_0x2459c9);_0x40ab63[_0xf5d26b(0x73)]({'label':_0xaed52b(_0x2459c9,_0xf5d26b(0xa6)),'tooltip':!0x0,'withText':!0x1,'icon':_0x581fa7}),_0x40ab63[_0xf5d26b(0x98)](_0xf5d26b(0x8f))['to'](this),_0x40ab63['on'](_0xf5d26b(0x8c),()=>{const _0x5aab57=_0xf5d26b;this[_0x5aab57(0x7b)](_0x5aab57(0x79),{'index':_0x2bb469[_0x5aab57(0x86)]});});const _0x41370c=new _0x415537(_0x2459c9);_0x41370c[_0xf5d26b(0x73)]({'label':_0xaed52b(_0x2459c9,_0xf5d26b(0x7e)),'tooltip':!0x0,'withText':!0x1,'icon':_0x30f746}),_0x41370c[_0xf5d26b(0x98)](_0xf5d26b(0x8f))['to'](this),_0x41370c['on'](_0xf5d26b(0x8c),()=>{const _0x14e826=_0xf5d26b;this[_0x14e826(0x7b)](_0x14e826(0x7a),{'index':_0x2bb469[_0x14e826(0x86)]});});const _0x353a30=new _0x415537(_0x2459c9);_0x353a30[_0xf5d26b(0x73)]({'label':_0xaed52b(_0x2459c9,_0xf5d26b(0xa0)),'tooltip':!0x0,'withText':!0x1,'icon':_0x3e8268}),_0x353a30['on'](_0xf5d26b(0x8c),()=>{const _0x208d59=_0xf5d26b;this[_0x208d59(0x7b)](_0x208d59(0x66),{'index':_0x2bb469[_0x208d59(0x86)]});}),_0x353a30[_0xf5d26b(0x98)](_0xf5d26b(0x8f))['to'](this),this[_0xf5d26b(0x84)]=new _0x206f3a(_0x2459c9),this[_0xf5d26b(0x84)][_0xf5d26b(0x6b)][_0xf5d26b(0x9a)]([_0x40ab63,_0x41370c,_0x353a30]),this[_0xf5d26b(0x8e)]=new _0x5462d0(),this[_0xf5d26b(0x8e)][_0xf5d26b(0x9b)]=_0x332a06,this[_0xf5d26b(0x8e)][_0xf5d26b(0x74)]({'attributes':{'class':[_0xf5d26b(0x8b)],'data-cke-tooltip-text':_0xaed52b(_0x2459c9,_0xf5d26b(0x7c)),'data-cke-tooltip-position':'n'}}),this[_0xf5d26b(0xa1)]=new _0x5462d0(),this[_0xf5d26b(0xa1)][_0xf5d26b(0x9b)]=_0x15c0d5,this[_0xf5d26b(0xa1)][_0xf5d26b(0x74)]({'attributes':{'class':[_0xf5d26b(0x87)],'data-cke-tooltip-text':_0xaed52b(_0x2459c9,_0xf5d26b(0x9d)),'data-cke-tooltip-position':'n'}});const _0x4371ed=new _0x3e15af(_0x2459c9);_0x4371ed[_0xf5d26b(0x81)]({'tag':_0xf5d26b(0x94),'attributes':{'class':['ck',_0xf5d26b(0xaa)]},'children':[_0xaed52b(_0x2459c9,_0xf5d26b(0x71),(_0x2bb469[_0xf5d26b(0x86)]+0x1)[_0xf5d26b(0xa8)]())]}),this[_0xf5d26b(0xa3)]=this[_0xf5d26b(0x9e)](),this[_0xf5d26b(0xa3)][_0xf5d26b(0x9a)]([_0x422efd,_0x4371ed,this[_0xf5d26b(0x84)]]),this[_0xf5d26b(0x81)]({'tag':_0xf5d26b(0x70),'attributes':{'class':['ck',_0xf5d26b(0xa4),_0xf5d26b(0x97)]},'children':this[_0xf5d26b(0xa3)]}),this['on'](_0xf5d26b(0x65),(_0x2bc6ee,_0x969f78,_0x48a6cd,_0x396d49)=>{const _0x174d6f=_0xf5d26b;switch(_0x396d49){case _0x174d6f(0x6f):this[_0x174d6f(0xa3)][_0x174d6f(0x9c)](this[_0x174d6f(0x84)]);break;case _0x174d6f(0x88):this[_0x174d6f(0xa3)][_0x174d6f(0x9c)](this[_0x174d6f(0x8e)]);break;case _0x174d6f(0x8a):this[_0x174d6f(0xa3)][_0x174d6f(0x9c)](this[_0x174d6f(0xa1)]);}switch(_0x48a6cd){case _0x174d6f(0x6f):this[_0x174d6f(0xa3)][_0x174d6f(0x89)](this[_0x174d6f(0x84)]);break;case _0x174d6f(0x88):this[_0x174d6f(0xa3)][_0x174d6f(0x89)](this[_0x174d6f(0x8e)]);break;case _0x174d6f(0x8a):this[_0x174d6f(0xa3)][_0x174d6f(0x89)](this[_0x174d6f(0xa1)]);}});}}