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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.d.ts +197 -1
  181. package/src/aichat/model/aichatcontext.js +1 -1
  182. package/src/aichat/model/aichatconversation.js +1 -1
  183. package/src/aichat/model/aichatinteraction.js +1 -1
  184. package/src/aichat/model/aichatmodels.d.ts +30 -0
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichat/utils/scrollmanager.js +1 -1
  214. package/src/aichathistory/aichathistory.js +1 -1
  215. package/src/aichathistory/aichathistorycontroller.js +1 -1
  216. package/src/aichathistory/aichathistoryui.js +1 -1
  217. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  218. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  219. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aieditorintegration/aieditorintegration.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  252. package/src/aiquickactions/aiquickactions.d.ts +1 -0
  253. package/src/aiquickactions/aiquickactions.js +1 -1
  254. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  255. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  256. package/src/aiquickactions/aiquickactionsui.d.ts +49 -0
  257. package/src/aiquickactions/aiquickactionsui.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  259. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  260. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  261. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  262. package/src/aireviewmode/aireviewmode.js +1 -1
  263. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  264. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  265. package/src/aireviewmode/aireviewmodeui.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  268. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  271. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  272. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  273. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  274. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  275. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  286. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  287. package/src/aitabs/aitabs.d.ts +14 -0
  288. package/src/aitabs/aitabs.js +1 -1
  289. package/src/aitabs/aitabsmainview.js +1 -1
  290. package/src/aitabs/tabs/aitabsview.js +1 -1
  291. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  292. package/src/aitabs/tabs/tabpanelview.js +1 -1
  293. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1aa33a=_0x20b8;function _0x51ad(){const _0x1ed277=['_createShowMoreBalloonPanelView','right','innerWidth','_distributeChips','hideBalloonPanel','innerHeight','filter','undefined','position','isOn','_config','_makeAncestorsVisible','_updateBalloonContent','_checkAndHandleOverflow','absolute','300px','ck-calculation-container','remove','pin','48917270icOohp','div','body','createElement','children','clientHeight','toLowerCase','_renderChipsAndCountRows','isVisible','display','opacity','width','render','includes','calculationContainer','_visibleChips','_pendingCalculation','querySelector','_applyCalculationStyles','5176736KXgMsx','pop','push','clientWidth','isIntersecting','overflowChips','_createMockButton','add','disableAnimationOnEnter','button','destroy','extendTemplate','66VqgYRX','_createShowMoreButton','getBoundingClientRect','overflowContainer','visibility','from','length','documentElement','2759973QlXgMf','style','setTemplate','content','abs','_testButtonFit','-9999px','border-box','top','_bodyCollection','parentElement','_calculateContainerWidth','showMoreBalloon','8UwNOQR','setContainerElement','none','zIndex','_createShowMoreButtonView','.ck-ai-chat','disconnect','50906ngIYDa','show','_showMoreBalloonPanelView','showMoreButtonView','isConnected','showMoreButton','showMoreLabelPrefix','5tkBlCf','0px','rowDetectionTolerance','_ancestorsToRestore','innerHTML','block','_applyOverflowResults','_restoreAncestorVisibility','offsetWidth','maxVisibleRows','_createCalculationContainer','appendChild','_repinBalloonPanel','reorganizeChips','_locale','7891245hKIPrh','_findTargetContainer','visible','className','_targetContainer','_handleShowMoreButtonClick','pointerEvents','_showMoreButtonView','hidden','50px','slice','clear','height','11ikiOBX','_createContainerElements','left','textContent','_isContainerVisible','boxSizing','_parentView','forEach','2242632lDFlcv','+\x201','hide','block\x20!important','cssClasses','4187750eJDXzA','element','some','auto','_containerElement','_updateOverflowUI','bottom','observe','tagName','visible\x20!important','cloneNode','controlsButton','classList','showBalloonPanel','label','_calculateOverflowInContainer','_updateShowMoreButtonVisibility','execute','getComputedStyle','_setupVisibilityObserver','_intersectionObserver','_overflowChips','set'];_0x51ad=function(){return _0x1ed277;};return _0x51ad();}(function(_0x1e57c2,_0x4a7eb0){const _0x466b85=_0x20b8,_0x481cb0=_0x1e57c2();while(!![]){try{const _0xe06e19=parseInt(_0x466b85(0x1c6))/0x1*(-parseInt(_0x466b85(0x1e2))/0x2)+-parseInt(_0x466b85(0x1ce))/0x3+parseInt(_0x466b85(0x1ba))/0x4*(-parseInt(_0x466b85(0x154))/0x5)+-parseInt(_0x466b85(0x178))/0x6+-parseInt(_0x466b85(0x17d))/0x7+-parseInt(_0x466b85(0x1db))/0x8*(-parseInt(_0x466b85(0x163))/0x9)+parseInt(_0x466b85(0x1a7))/0xa*(parseInt(_0x466b85(0x170))/0xb);if(_0xe06e19===_0x4a7eb0)break;else _0x481cb0['push'](_0x481cb0['shift']());}catch(_0x5dc3a7){_0x481cb0['push'](_0x481cb0['shift']());}}}(_0x51ad,0xdc525));import{View as _0x1a43a9,BalloonPanelView as _0x5d2c75,ButtonView as _0x551de0,clickOutsideHandler as _0x18bb58}from'ckeditor5/src/ui.js';import{Collection as _0x1d4733}from'ckeditor5/src/utils.js';function _0x20b8(_0x2b7aef,_0x2a1a45){const _0x51ad2e=_0x51ad();return _0x20b8=function(_0x20b859,_0xd337b){_0x20b859=_0x20b859-0x14f;let _0x3693df=_0x51ad2e[_0x20b859];return _0x3693df;},_0x20b8(_0x2b7aef,_0x2a1a45);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x1aa33a(0x1a3);export class AIChatChipsOverflowManager{[_0x1aa33a(0x162)];[_0x1aa33a(0x19e)];[_0x1aa33a(0x1b6)];[_0x1aa33a(0x192)];[_0x1aa33a(0x16a)]=null;[_0x1aa33a(0x14f)]=null;[_0x1aa33a(0x181)]=null;[_0x1aa33a(0x1d7)];[_0x1aa33a(0x176)]=null;[_0x1aa33a(0x191)]=null;[_0x1aa33a(0x1b7)]=!0x1;constructor(_0xec398c,_0x5ab587,_0x46f6d3,_0x41e98a,_0x99993b){const _0xee61d5=_0x1aa33a;this[_0xee61d5(0x162)]=_0xec398c,this[_0xee61d5(0x1b6)]=_0x5ab587,this[_0xee61d5(0x19e)]={...hn,..._0x46f6d3,'cssClasses':{'controlsButton':'','calculationContainer':_0xee61d5(0x1a4),..._0x46f6d3[_0xee61d5(0x17c)]}},this[_0xee61d5(0x192)]=new _0x1d4733(),this[_0xee61d5(0x1d7)]=_0x41e98a,this[_0xee61d5(0x176)]=_0x99993b||null;}[_0x1aa33a(0x1dc)](_0x4452db){const _0x3fa08e=_0x1aa33a;this[_0x3fa08e(0x191)]&&(this[_0x3fa08e(0x191)][_0x3fa08e(0x1e1)](),this[_0x3fa08e(0x191)]=null),this[_0x3fa08e(0x181)]=_0x4452db,this[_0x3fa08e(0x190)]();}get[_0x1aa33a(0x150)](){const _0xcbacd=_0x1aa33a;return this[_0xcbacd(0x16a)];}get[_0x1aa33a(0x1bf)](){const _0x3ee463=_0x1aa33a;return this[_0x3ee463(0x192)];}[_0x1aa33a(0x161)](){requestAnimationFrame(()=>{const _0x5d4bf5=_0x20b8;this[_0x5d4bf5(0x1a1)]();});}[_0x1aa33a(0x18a)](){const _0x20dd23=_0x1aa33a;this[_0x20dd23(0x16a)]&&this[_0x20dd23(0x14f)]&&(this[_0x20dd23(0x1a0)](),this[_0x20dd23(0x16a)][_0x20dd23(0x19d)]=!0x0,this[_0x20dd23(0x14f)][_0x20dd23(0x1e3)](),this[_0x20dd23(0x14f)][_0x20dd23(0x1a6)]({'target':this[_0x20dd23(0x16a)][_0x20dd23(0x17e)],'limiter':document[_0x20dd23(0x1b8)](_0x20dd23(0x1e0))}));}[_0x1aa33a(0x198)](){const _0x19bab6=_0x1aa33a;this[_0x19bab6(0x16a)]&&this[_0x19bab6(0x14f)]&&(this[_0x19bab6(0x16a)][_0x19bab6(0x19d)]=!0x1,this[_0x19bab6(0x14f)][_0x19bab6(0x17a)]());}[_0x1aa33a(0x16e)](){const _0x228558=_0x1aa33a;this[_0x228558(0x192)][_0x228558(0x16e)](),this[_0x228558(0x198)](),this[_0x228558(0x18d)](),this[_0x228558(0x16a)]&&(this[_0x228558(0x16a)][_0x228558(0x18b)]=''),this[_0x228558(0x14f)]&&this[_0x228558(0x14f)][_0x228558(0x1d1)][_0x228558(0x16e)]();}[_0x1aa33a(0x1c4)](){const _0x55f04b=_0x1aa33a;this[_0x55f04b(0x191)]&&(this[_0x55f04b(0x191)][_0x55f04b(0x1e1)](),this[_0x55f04b(0x191)]=null),this[_0x55f04b(0x16a)]&&(this[_0x55f04b(0x16a)][_0x55f04b(0x1c4)](),this[_0x55f04b(0x16a)]=null),this[_0x55f04b(0x14f)]&&(this[_0x55f04b(0x14f)][_0x55f04b(0x1c4)](),this[_0x55f04b(0x14f)]=null);}[_0x1aa33a(0x1a1)](){const _0x6b9398=_0x1aa33a;if(!this[_0x6b9398(0x181)])return;if(!this[_0x6b9398(0x174)]())return void(this[_0x6b9398(0x1b7)]=!0x0);this[_0x6b9398(0x1b7)]=!0x1;const _0x194dfd=[...this[_0x6b9398(0x1b6)],...this[_0x6b9398(0x192)]],_0x3b50dc=this[_0x6b9398(0x15e)](),_0x2a5b8f=this[_0x6b9398(0x18c)](_0x3b50dc,_0x194dfd),_0x33b067=_0x3b50dc[_0x6b9398(0x157)];_0x33b067&&this[_0x6b9398(0x15b)](_0x33b067),_0x3b50dc[_0x6b9398(0x1a5)](),this[_0x6b9398(0x15a)](_0x194dfd,_0x2a5b8f);}[_0x1aa33a(0x1c7)](){const _0x40bbd0=_0x1aa33a;this[_0x40bbd0(0x16a)]=this[_0x40bbd0(0x1df)](),this[_0x40bbd0(0x14f)]=this[_0x40bbd0(0x194)](),this[_0x40bbd0(0x16a)][_0x40bbd0(0x1b3)](),this[_0x40bbd0(0x181)][_0x40bbd0(0x15f)](this[_0x40bbd0(0x16a)][_0x40bbd0(0x17e)]),this[_0x40bbd0(0x16a)]['on'](_0x40bbd0(0x18e),()=>{const _0x14e65e=_0x40bbd0;this[_0x14e65e(0x168)]();}),_0x18bb58({'emitter':this[_0x40bbd0(0x14f)],'contextElements':[this[_0x40bbd0(0x14f)][_0x40bbd0(0x17e)],this[_0x40bbd0(0x16a)][_0x40bbd0(0x17e)]],'callback':()=>this[_0x40bbd0(0x198)](),'activator':()=>this[_0x40bbd0(0x16a)][_0x40bbd0(0x19d)]});}[_0x1aa33a(0x1df)](){const _0x4a4c5a=_0x1aa33a,_0x1c1071=new _0x551de0(this[_0x4a4c5a(0x162)]);_0x1c1071[_0x4a4c5a(0x193)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x36d051=[this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x152)]];return this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x188)]&&_0x36d051[_0x4a4c5a(0x1bc)](this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x188)]),_0x1c1071[_0x4a4c5a(0x1c5)]({'attributes':{'class':_0x36d051}}),_0x1c1071;}[_0x1aa33a(0x194)](){const _0x1546e5=_0x1aa33a,_0x567ad5=new _0x5d2c75(this[_0x1546e5(0x162)]);return _0x567ad5[_0x1546e5(0x1c5)]({'attributes':{'class':this[_0x1546e5(0x19e)][_0x1546e5(0x17c)][_0x1546e5(0x1da)]}}),this[_0x1546e5(0x1d7)][_0x1546e5(0x1c1)](_0x567ad5),_0x567ad5;}[_0x1aa33a(0x1a0)](){const _0xd12a3=_0x1aa33a;if(this[_0xd12a3(0x14f)]&&(this[_0xd12a3(0x14f)][_0xd12a3(0x1d1)][_0xd12a3(0x16e)](),this[_0xd12a3(0x192)][_0xd12a3(0x1cc)]>0x0)){this[_0xd12a3(0x192)][_0xd12a3(0x177)](_0x544371=>{const _0x4275d9=_0xd12a3;_0x544371[_0x4275d9(0x1c2)]();});const _0x31515a=new _0x1a43a9(this[_0xd12a3(0x162)]);_0x31515a[_0xd12a3(0x1d0)]({'tag':_0xd12a3(0x1a8),'attributes':{'class':this[_0xd12a3(0x19e)][_0xd12a3(0x17c)][_0xd12a3(0x1c9)]},'children':this[_0xd12a3(0x192)]}),this[_0xd12a3(0x14f)][_0xd12a3(0x1d1)][_0xd12a3(0x1c1)](_0x31515a);}}[_0x1aa33a(0x168)](){const _0x181748=_0x1aa33a;this[_0x181748(0x16a)][_0x181748(0x19d)]?this[_0x181748(0x198)]():this[_0x181748(0x18a)]();}[_0x1aa33a(0x18d)](){const _0x444e42=_0x1aa33a,_0x9d2beb=this[_0x444e42(0x192)][_0x444e42(0x1cc)]>0x0;this[_0x444e42(0x16a)]?.[_0x444e42(0x17e)]&&(this[_0x444e42(0x16a)][_0x444e42(0x17e)][_0x444e42(0x1cf)][_0x444e42(0x1b0)]=_0x9d2beb?'':_0x444e42(0x1dd));}[_0x1aa33a(0x160)](){const _0x4aae51=_0x1aa33a;this[_0x4aae51(0x16a)]?.[_0x4aae51(0x19d)]&&this[_0x4aae51(0x14f)]?.[_0x4aae51(0x1af)]&&this[_0x4aae51(0x16a)][_0x4aae51(0x17e)]&&this[_0x4aae51(0x14f)][_0x4aae51(0x1a6)]({'target':this[_0x4aae51(0x16a)][_0x4aae51(0x17e)],'limiter':document[_0x4aae51(0x1b8)](_0x4aae51(0x1e0))});}[_0x1aa33a(0x164)](_0x41d0b2){const _0x563d67=_0x1aa33a,_0xac41ed=this[_0x563d67(0x181)]?.[_0x563d67(0x185)][_0x563d67(0x1ad)]()||_0x563d67(0x1a8),_0x2867b3=this[_0x563d67(0x181)]?.[_0x563d67(0x189)];if(_0x2867b3){const _0x2ae90d=_0x2867b3[0x0]||'',_0x3dce15=_0x41d0b2[_0x563d67(0x1b8)]('.'+_0x2ae90d),_0x17d6b9=_0x41d0b2[_0x563d67(0x1b8)](_0xac41ed);return _0x3dce15||_0x17d6b9||_0x41d0b2;}return _0x41d0b2[_0x563d67(0x1b8)](_0xac41ed)||_0x41d0b2;}[_0x1aa33a(0x1d9)](){const _0x2d520d=_0x1aa33a,_0x1beba0=this[_0x2d520d(0x176)]?.[_0x2d520d(0x17e)]||this[_0x2d520d(0x181)];if(!_0x1beba0)return wn;const _0x3271b1=window[_0x2d520d(0x18f)](_0x1beba0)[_0x2d520d(0x1b2)];if(_0x2d520d(0x180)===_0x3271b1||_0x2d520d(0x155)===_0x3271b1||!_0x3271b1){const _0x11c856=_0x1beba0[_0x2d520d(0x1d8)];if(_0x11c856){const _0x47f440=window[_0x2d520d(0x18f)](_0x11c856);return _0x2d520d(0x180)!==_0x47f440[_0x2d520d(0x1b2)]?_0x47f440[_0x2d520d(0x1b2)]:wn;}return wn;}return _0x3271b1;}[_0x1aa33a(0x1b9)](_0x203de5,_0x955aed){const _0xe526c6=_0x1aa33a;this[_0xe526c6(0x19e)][_0xe526c6(0x17c)][_0xe526c6(0x1b5)]&&_0x203de5[_0xe526c6(0x189)][_0xe526c6(0x1c1)](this[_0xe526c6(0x19e)][_0xe526c6(0x17c)][_0xe526c6(0x1b5)]),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b2)]=_0x955aed,_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x19c)]=_0xe526c6(0x1a2),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1d6)]=_0xe526c6(0x1d4),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x172)]=_0xe526c6(0x1d4),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b1)]='0',_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x169)]=_0xe526c6(0x1dd),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1de)]='-1',_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1ca)]=_0xe526c6(0x186),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b0)]=_0xe526c6(0x17b),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x175)]=_0xe526c6(0x1d5);}[_0x1aa33a(0x15b)](_0x387c02){const _0x21c0db=_0x1aa33a;_0x387c02[_0x21c0db(0x177)](({element:_0x140af8,originalDisplay:_0x1dcc2b,originalVisibility:_0x1bca9f})=>{const _0x9e6ca2=_0x21c0db;_0x140af8[_0x9e6ca2(0x1cf)][_0x9e6ca2(0x1b0)]=_0x1dcc2b,_0x140af8[_0x9e6ca2(0x1cf)][_0x9e6ca2(0x1ca)]=_0x1bca9f;});}[_0x1aa33a(0x19f)](_0x6789ad){const _0x2d2429=_0x1aa33a,_0xb653d0=[];let _0x464db5=_0x6789ad;for(;_0x464db5&&_0x464db5!==document[_0x2d2429(0x1a9)];){const _0x20d4ba=window[_0x2d2429(0x18f)](_0x464db5);_0x2d2429(0x1dd)!==_0x20d4ba[_0x2d2429(0x1b0)]&&_0x2d2429(0x16b)!==_0x20d4ba[_0x2d2429(0x1ca)]||(_0xb653d0[_0x2d2429(0x1bc)]({'element':_0x464db5,'originalDisplay':_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1b0)],'originalVisibility':_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1ca)]}),_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1b0)]=_0x2d2429(0x159),_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1ca)]=_0x2d2429(0x165)),_0x464db5=_0x464db5[_0x2d2429(0x1d8)];}return _0xb653d0;}[_0x1aa33a(0x171)](){const _0x519c86=_0x1aa33a;let _0x21eea8,_0x262e2b;return this[_0x519c86(0x176)]?.[_0x519c86(0x17e)]?(_0x21eea8=this[_0x519c86(0x176)][_0x519c86(0x17e)][_0x519c86(0x187)](!0x0),_0x262e2b=this[_0x519c86(0x164)](_0x21eea8)):(_0x21eea8=document[_0x519c86(0x1aa)](_0x519c86(0x1a8)),_0x262e2b=_0x21eea8),{'calculationContainer':_0x21eea8,'targetContainer':_0x262e2b};}[_0x1aa33a(0x15e)](){const _0x3c1d7d=_0x1aa33a,{calculationContainer:_0x7d812b,targetContainer:_0x5e5776}=this[_0x3c1d7d(0x171)](),_0x453570=this[_0x3c1d7d(0x1d9)]();this[_0x3c1d7d(0x1b9)](_0x7d812b,_0x453570);const _0x9d84a9=this[_0x3c1d7d(0x176)]?.[_0x3c1d7d(0x17e)]||this[_0x3c1d7d(0x181)],_0x1f1b91=_0x9d84a9?.[_0x3c1d7d(0x1d8)];_0x1f1b91?_0x1f1b91[_0x3c1d7d(0x15f)](_0x7d812b):document[_0x3c1d7d(0x1a9)][_0x3c1d7d(0x15f)](_0x7d812b),_0x7d812b[_0x3c1d7d(0x167)]=_0x5e5776;const _0x496cea=this[_0x3c1d7d(0x19f)](_0x1f1b91||null);return _0x7d812b[_0x3c1d7d(0x15c)],_0x7d812b[_0x3c1d7d(0x157)]=_0x496cea,_0x7d812b;}[_0x1aa33a(0x18c)](_0x471e9f,_0x5bd5ed){const _0x137df3=_0x1aa33a,_0xb3578f=_0x471e9f[_0x137df3(0x167)]||_0x471e9f,_0x40853d=[],{rowCount:_0x47fa0b}=this[_0x137df3(0x1ae)](_0xb3578f,_0x5bd5ed);if(_0x47fa0b<=this[_0x137df3(0x19e)][_0x137df3(0x15d)])return _0x40853d;const _0x532dd6=_0x5bd5ed[_0x137df3(0x16d)]();for(;_0x532dd6[_0x137df3(0x1cc)]>0x0;){if(this[_0x137df3(0x1d3)](_0x471e9f,_0xb3578f,_0x532dd6)){const _0x321b54=_0x5bd5ed[_0x137df3(0x19a)](_0x14f644=>!_0x532dd6[_0x137df3(0x1b4)](_0x14f644));_0x40853d[_0x137df3(0x1bc)](..._0x321b54);break;}if(!_0x532dd6[_0x137df3(0x1bb)]())break;}return _0x40853d;}[_0x1aa33a(0x1ae)](_0x893b5e,_0xbeaa82){const _0x293b20=_0x1aa33a;_0x893b5e[_0x293b20(0x158)]='',_0xbeaa82[_0x293b20(0x177)](_0x5c88cb=>{const _0x1e550f=_0x293b20;if(_0x5c88cb[_0x1e550f(0x17e)]){const _0xd472fd=_0x5c88cb[_0x1e550f(0x17e)][_0x1e550f(0x187)](!0x0);_0x893b5e[_0x1e550f(0x15f)](_0xd472fd);}}),_0x893b5e[_0x293b20(0x15c)];const _0x4c81fa=_0x893b5e[_0x293b20(0x1ab)],_0x5436cc=[];return Array[_0x293b20(0x1cb)](_0x4c81fa)[_0x293b20(0x177)](_0x462f93=>{const _0x293cba=_0x293b20,_0x254e7e=_0x462f93[_0x293cba(0x1c8)]()[_0x293cba(0x1d6)];_0x5436cc[_0x293cba(0x17f)](_0x10dcdf=>Math[_0x293cba(0x1d2)](_0x10dcdf-_0x254e7e)<this[_0x293cba(0x19e)][_0x293cba(0x156)])||_0x5436cc[_0x293cba(0x1bc)](_0x254e7e);}),{'rowCount':_0x5436cc[_0x293b20(0x1cc)]};}[_0x1aa33a(0x1c0)](){const _0x406a57=_0x1aa33a,_0x9e6d8=document[_0x406a57(0x1aa)](_0x406a57(0x1c3));return _0x9e6d8[_0x406a57(0x166)]=this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x152)],this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x188)]&&_0x9e6d8[_0x406a57(0x189)][_0x406a57(0x1c1)](this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x188)]),_0x9e6d8[_0x406a57(0x173)]=_0x406a57(0x179),_0x9e6d8;}[_0x1aa33a(0x1d3)](_0x2bb704,_0x3aea36,_0x521614){const _0x21e70a=_0x1aa33a;this[_0x21e70a(0x1ae)](_0x3aea36,_0x521614);const _0x10d420=this[_0x21e70a(0x1c0)]();_0x2bb704[_0x21e70a(0x15f)](_0x10d420),_0x2bb704[_0x21e70a(0x15c)];const _0x49be08=[..._0x3aea36[_0x21e70a(0x1ab)],_0x10d420],_0x5f4313=[];_0x49be08[_0x21e70a(0x177)](_0x41be2f=>{const _0x32e9d3=_0x21e70a,_0x57a48f=_0x41be2f[_0x32e9d3(0x1c8)]()[_0x32e9d3(0x1d6)];_0x5f4313[_0x32e9d3(0x17f)](_0x5b93af=>Math[_0x32e9d3(0x1d2)](_0x5b93af-_0x57a48f)<this[_0x32e9d3(0x19e)][_0x32e9d3(0x156)])||_0x5f4313[_0x32e9d3(0x1bc)](_0x57a48f);});const _0x3fd037=_0x5f4313[_0x21e70a(0x1cc)];return _0x10d420[_0x21e70a(0x1a5)](),_0x3fd037<=this[_0x21e70a(0x19e)][_0x21e70a(0x15d)];}[_0x1aa33a(0x197)](_0x55092b,_0x3ef29d){const _0x3883d3=_0x1aa33a;this[_0x3883d3(0x1b6)][_0x3883d3(0x16e)](),this[_0x3883d3(0x192)][_0x3883d3(0x16e)](),_0x55092b[_0x3883d3(0x177)](_0x4445d2=>{const _0x710701=_0x3883d3;_0x3ef29d[_0x710701(0x1b4)](_0x4445d2)?this[_0x710701(0x192)][_0x710701(0x1c1)](_0x4445d2):this[_0x710701(0x1b6)][_0x710701(0x1c1)](_0x4445d2);});}[_0x1aa33a(0x182)](_0x2bc427){const _0xd9ce7c=_0x1aa33a;if(_0x2bc427>0x0&&!this[_0xd9ce7c(0x16a)]&&this[_0xd9ce7c(0x1c7)](),_0x2bc427>0x0&&this[_0xd9ce7c(0x16a)]){const _0x1d41e6=''+this[_0xd9ce7c(0x19e)][_0xd9ce7c(0x153)]+(_0x2bc427<0x63?_0x2bc427:'99');this[_0xd9ce7c(0x16a)][_0xd9ce7c(0x18b)]=_0x1d41e6;}this[_0xd9ce7c(0x1a0)](),this[_0xd9ce7c(0x18d)](),this[_0xd9ce7c(0x160)]();}[_0x1aa33a(0x15a)](_0x5e5b2e,_0x47093f){const _0x5f3882=_0x1aa33a;this[_0x5f3882(0x197)](_0x5e5b2e,_0x47093f),this[_0x5f3882(0x182)](_0x47093f[_0x5f3882(0x1cc)]);}[_0x1aa33a(0x190)](){const _0x335ce6=_0x1aa33a;this[_0x335ce6(0x181)]&&_0x335ce6(0x19b)!=typeof IntersectionObserver&&(this[_0x335ce6(0x191)]=new IntersectionObserver(_0x4f6aea=>{const _0xba789=_0x335ce6;_0x4f6aea[0x0][_0xba789(0x1be)]&&this[_0xba789(0x1b7)]&&requestAnimationFrame(()=>{const _0x4aa609=_0xba789;this[_0x4aa609(0x1a1)]();});},{'threshold':0.01,'rootMargin':_0x335ce6(0x16c)}),this[_0x335ce6(0x191)][_0x335ce6(0x184)](this[_0x335ce6(0x181)]));}[_0x1aa33a(0x174)](){const _0x106366=_0x1aa33a;if(!this[_0x106366(0x181)])return!0x1;if(!this[_0x106366(0x181)][_0x106366(0x151)])return!0x1;const _0x4b5327=this[_0x106366(0x181)][_0x106366(0x1c8)]();if(0x0===_0x4b5327[_0x106366(0x1b2)]||0x0===_0x4b5327[_0x106366(0x16f)])return!0x1;const _0x4d9ab0=window[_0x106366(0x199)]||document[_0x106366(0x1cd)][_0x106366(0x1ac)],_0x9e6de9=window[_0x106366(0x196)]||document[_0x106366(0x1cd)][_0x106366(0x1bd)],_0x1bba51=0xc8;return _0x4b5327[_0x106366(0x183)]>=-0xc8&&_0x4b5327[_0x106366(0x1d6)]<=_0x4d9ab0+_0x1bba51&&_0x4b5327[_0x106366(0x195)]>=-0xc8&&_0x4b5327[_0x106366(0x172)]<=_0x9e6de9+_0x1bba51;}}
23
+ const _0x4ab944=_0x1277;(function(_0x5b0ba3,_0xa36371){const _0x5b1c48=_0x1277,_0x28b12a=_0x5b0ba3();while(!![]){try{const _0x119628=parseInt(_0x5b1c48(0x137))/0x1*(-parseInt(_0x5b1c48(0xf9))/0x2)+-parseInt(_0x5b1c48(0x129))/0x3*(parseInt(_0x5b1c48(0x116))/0x4)+parseInt(_0x5b1c48(0x173))/0x5*(-parseInt(_0x5b1c48(0x177))/0x6)+-parseInt(_0x5b1c48(0x14e))/0x7*(-parseInt(_0x5b1c48(0x103))/0x8)+parseInt(_0x5b1c48(0x10c))/0x9+-parseInt(_0x5b1c48(0x178))/0xa*(parseInt(_0x5b1c48(0x10d))/0xb)+parseInt(_0x5b1c48(0x113))/0xc*(parseInt(_0x5b1c48(0x140))/0xd);if(_0x119628===_0xa36371)break;else _0x28b12a['push'](_0x28b12a['shift']());}catch(_0x52d6d1){_0x28b12a['push'](_0x28b12a['shift']());}}}(_0x49d7,0xef156));import{View as _0x39cd95,BalloonPanelView as _0x236c43,ButtonView as _0x5780e8,clickOutsideHandler as _0x50119c}from'ckeditor5/src/ui.js';function _0x49d7(){const _0x107bb8=['forEach','innerHTML','_updateOverflowUI','observe','_createCalculationContainer','zIndex','_createShowMoreButtonView','slice','showBalloonPanel','includes','_calculateContainerWidth','2400559tTqqnj','createElement','clear','position','overflowContainer','bottom','_handleShowMoreButtonClick','textContent','_applyCalculationStyles','boxSizing','_showMoreBalloonPanelView','visible','width','_repinBalloonPanel','_setupVisibilityObserver','_containerElement','label','_config','disableAnimationOnEnter','block\x20!important','border-box','from','hideBalloonPanel','_visibleChips','_createShowMoreButton','hide','auto','-9999px','_calculateOverflowInContainer','showMoreButtonView','tagName','clientWidth','display','visibility','pin','_pendingCalculation','_showMoreButtonView','5dzqYlm','pointerEvents','disconnect','some','4008012QNKijg','10jHcUcx','cssClasses','toLowerCase','controlsButton','block','_bodyCollection','_updateShowMoreButtonVisibility','_isContainerVisible','visible\x20!important','reorganizeChips','_renderChipsAndCountRows','.ck-ai-chat','top','isIntersecting','remove','isOn','_ancestorsToRestore','_testButtonFit','content','push','div','set','left','button','36wVPKSD','body','appendChild','filter','clientHeight','abs','element','documentElement','showMoreBalloon','_makeAncestorsVisible','16EGNHqs','execute','undefined','getComputedStyle','300px','ck-calculation-container','_applyOverflowResults','none','destroy','2455857gKOtKv','4948834Tsyyia','opacity','classList','style','_locale','height','55725636ylAZno','parentElement','isConnected','6617784STonfN','_restoreAncestorVisibility','showMoreLabelPrefix','_distributeChips','maxVisibleRows','absolute','cloneNode','isVisible','add','extendTemplate','_targetContainer','_findTargetContainer','show','right','offsetWidth','setTemplate','setContainerElement','overflowChips','calculationContainer','3suSwRs','+\x201','getBoundingClientRect','children','showMoreButton','innerHeight','pop','_checkAndHandleOverflow','className','hidden','querySelector','innerWidth','rowDetectionTolerance','_overflowChips','102829pJaQRB','0px','_parentView','_createContainerElements','_updateBalloonContent','_createShowMoreBalloonPanelView','_intersectionObserver','length','50px','13wkaDUJ','_createMockButton','render'];_0x49d7=function(){return _0x107bb8;};return _0x49d7();}import{Collection as _0x1e6e7b}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x4ab944(0x107);function _0x1277(_0x153342,_0x1e75b3){const _0x49d733=_0x49d7();return _0x1277=function(_0x1277e4,_0x29ea00){_0x1277e4=_0x1277e4-0xe5;let _0x2863c6=_0x49d733[_0x1277e4];return _0x2863c6;},_0x1277(_0x153342,_0x1e75b3);}export class AIChatChipsOverflowManager{[_0x4ab944(0x111)];[_0x4ab944(0x15f)];[_0x4ab944(0x165)];[_0x4ab944(0x136)];[_0x4ab944(0x172)]=null;[_0x4ab944(0x158)]=null;[_0x4ab944(0x15d)]=null;[_0x4ab944(0xe6)];[_0x4ab944(0x139)]=null;[_0x4ab944(0x13d)]=null;[_0x4ab944(0x171)]=!0x1;constructor(_0x48cab7,_0x38c7ca,_0x392e36,_0x1bf5a4,_0x199dfc){const _0x1a842b=_0x4ab944;this[_0x1a842b(0x111)]=_0x48cab7,this[_0x1a842b(0x165)]=_0x38c7ca,this[_0x1a842b(0x15f)]={...hn,..._0x392e36,'cssClasses':{'controlsButton':'','calculationContainer':_0x1a842b(0x108),..._0x392e36[_0x1a842b(0x179)]}},this[_0x1a842b(0x136)]=new _0x1e6e7b(),this[_0x1a842b(0xe6)]=_0x1bf5a4,this[_0x1a842b(0x139)]=_0x199dfc||null;}[_0x4ab944(0x126)](_0x2e5125){const _0x5b8eed=_0x4ab944;this[_0x5b8eed(0x13d)]&&(this[_0x5b8eed(0x13d)][_0x5b8eed(0x175)](),this[_0x5b8eed(0x13d)]=null),this[_0x5b8eed(0x15d)]=_0x2e5125,this[_0x5b8eed(0x15c)]();}get[_0x4ab944(0x16b)](){const _0x44dc6e=_0x4ab944;return this[_0x44dc6e(0x172)];}get[_0x4ab944(0x127)](){const _0x1850f8=_0x4ab944;return this[_0x1850f8(0x136)];}[_0x4ab944(0xea)](){requestAnimationFrame(()=>{const _0x6f0375=_0x1277;this[_0x6f0375(0x130)]();});}[_0x4ab944(0x14b)](){const _0x3355e2=_0x4ab944;this[_0x3355e2(0x172)]&&this[_0x3355e2(0x158)]&&(this[_0x3355e2(0x13b)](),this[_0x3355e2(0x172)][_0x3355e2(0xf0)]=!0x0,this[_0x3355e2(0x158)][_0x3355e2(0x122)](),this[_0x3355e2(0x158)][_0x3355e2(0x170)]({'target':this[_0x3355e2(0x172)][_0x3355e2(0xff)],'limiter':document[_0x3355e2(0x133)](_0x3355e2(0xec))}));}[_0x4ab944(0x164)](){const _0x10e7f2=_0x4ab944;this[_0x10e7f2(0x172)]&&this[_0x10e7f2(0x158)]&&(this[_0x10e7f2(0x172)][_0x10e7f2(0xf0)]=!0x1,this[_0x10e7f2(0x158)][_0x10e7f2(0x167)]());}[_0x4ab944(0x150)](){const _0x6295e4=_0x4ab944;this[_0x6295e4(0x136)][_0x6295e4(0x150)](),this[_0x6295e4(0x164)](),this[_0x6295e4(0xe7)](),this[_0x6295e4(0x172)]&&(this[_0x6295e4(0x172)][_0x6295e4(0x15e)]=''),this[_0x6295e4(0x158)]&&this[_0x6295e4(0x158)][_0x6295e4(0xf3)][_0x6295e4(0x150)]();}[_0x4ab944(0x10b)](){const _0xab1121=_0x4ab944;this[_0xab1121(0x13d)]&&(this[_0xab1121(0x13d)][_0xab1121(0x175)](),this[_0xab1121(0x13d)]=null),this[_0xab1121(0x172)]&&(this[_0xab1121(0x172)][_0xab1121(0x10b)](),this[_0xab1121(0x172)]=null),this[_0xab1121(0x158)]&&(this[_0xab1121(0x158)][_0xab1121(0x10b)](),this[_0xab1121(0x158)]=null);}[_0x4ab944(0x130)](){const _0x4254d9=_0x4ab944;if(!this[_0x4254d9(0x15d)])return;if(!this[_0x4254d9(0xe8)]())return void(this[_0x4254d9(0x171)]=!0x0);this[_0x4254d9(0x171)]=!0x1;const _0x4c7795=[...this[_0x4254d9(0x165)],...this[_0x4254d9(0x136)]],_0x5bc250=this[_0x4254d9(0x147)](),_0x5e716c=this[_0x4254d9(0x16a)](_0x5bc250,_0x4c7795),_0x1dcc22=_0x5bc250[_0x4254d9(0xf1)];_0x1dcc22&&this[_0x4254d9(0x117)](_0x1dcc22),_0x5bc250[_0x4254d9(0xef)](),this[_0x4254d9(0x109)](_0x4c7795,_0x5e716c);}[_0x4ab944(0x166)](){const _0x8ee1c=_0x4ab944;this[_0x8ee1c(0x172)]=this[_0x8ee1c(0x149)](),this[_0x8ee1c(0x158)]=this[_0x8ee1c(0x13c)](),this[_0x8ee1c(0x172)][_0x8ee1c(0x142)](),this[_0x8ee1c(0x15d)][_0x8ee1c(0xfb)](this[_0x8ee1c(0x172)][_0x8ee1c(0xff)]),this[_0x8ee1c(0x172)]['on'](_0x8ee1c(0x104),()=>{const _0x360b85=_0x8ee1c;this[_0x360b85(0x154)]();}),_0x50119c({'emitter':this[_0x8ee1c(0x158)],'contextElements':[this[_0x8ee1c(0x158)][_0x8ee1c(0xff)],this[_0x8ee1c(0x172)][_0x8ee1c(0xff)]],'callback':()=>this[_0x8ee1c(0x164)](),'activator':()=>this[_0x8ee1c(0x172)][_0x8ee1c(0xf0)]});}[_0x4ab944(0x149)](){const _0x32b8b9=_0x4ab944,_0x5c75ea=new _0x5780e8(this[_0x32b8b9(0x111)]);_0x5c75ea[_0x32b8b9(0xf6)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x8f432d=[this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x12d)]];return this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x17b)]&&_0x8f432d[_0x32b8b9(0xf4)](this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x17b)]),_0x5c75ea[_0x32b8b9(0x11f)]({'attributes':{'class':_0x8f432d}}),_0x5c75ea;}[_0x4ab944(0x13c)](){const _0x4e9648=_0x4ab944,_0x3777fa=new _0x236c43(this[_0x4e9648(0x111)]);return _0x3777fa[_0x4e9648(0x11f)]({'attributes':{'class':this[_0x4e9648(0x15f)][_0x4e9648(0x179)][_0x4e9648(0x101)]}}),this[_0x4e9648(0xe6)][_0x4e9648(0x11e)](_0x3777fa),_0x3777fa;}[_0x4ab944(0x13b)](){const _0x2d08fd=_0x4ab944;if(this[_0x2d08fd(0x158)]&&(this[_0x2d08fd(0x158)][_0x2d08fd(0xf3)][_0x2d08fd(0x150)](),this[_0x2d08fd(0x136)][_0x2d08fd(0x13e)]>0x0)){this[_0x2d08fd(0x136)][_0x2d08fd(0x143)](_0x1e4cdd=>{const _0x53fa7b=_0x2d08fd;_0x1e4cdd[_0x53fa7b(0x160)]();});const _0x496ab0=new _0x39cd95(this[_0x2d08fd(0x111)]);_0x496ab0[_0x2d08fd(0x125)]({'tag':_0x2d08fd(0xf5),'attributes':{'class':this[_0x2d08fd(0x15f)][_0x2d08fd(0x179)][_0x2d08fd(0x152)]},'children':this[_0x2d08fd(0x136)]}),this[_0x2d08fd(0x158)][_0x2d08fd(0xf3)][_0x2d08fd(0x11e)](_0x496ab0);}}[_0x4ab944(0x154)](){const _0x439e3b=_0x4ab944;this[_0x439e3b(0x172)][_0x439e3b(0xf0)]?this[_0x439e3b(0x164)]():this[_0x439e3b(0x14b)]();}[_0x4ab944(0xe7)](){const _0x3cd5cc=_0x4ab944,_0x59b514=this[_0x3cd5cc(0x136)][_0x3cd5cc(0x13e)]>0x0;this[_0x3cd5cc(0x172)]?.[_0x3cd5cc(0xff)]&&(this[_0x3cd5cc(0x172)][_0x3cd5cc(0xff)][_0x3cd5cc(0x110)][_0x3cd5cc(0x16e)]=_0x59b514?'':_0x3cd5cc(0x10a));}[_0x4ab944(0x15b)](){const _0x528b92=_0x4ab944;this[_0x528b92(0x172)]?.[_0x528b92(0xf0)]&&this[_0x528b92(0x158)]?.[_0x528b92(0x11d)]&&this[_0x528b92(0x172)][_0x528b92(0xff)]&&this[_0x528b92(0x158)][_0x528b92(0x170)]({'target':this[_0x528b92(0x172)][_0x528b92(0xff)],'limiter':document[_0x528b92(0x133)](_0x528b92(0xec))});}[_0x4ab944(0x121)](_0x3774f9){const _0x460fec=_0x4ab944,_0x5ca573=this[_0x460fec(0x15d)]?.[_0x460fec(0x16c)][_0x460fec(0x17a)]()||_0x460fec(0xf5),_0x5db1d8=this[_0x460fec(0x15d)]?.[_0x460fec(0x10f)];if(_0x5db1d8){const _0x5367a5=_0x5db1d8[0x0]||'',_0xe5eb40=_0x3774f9[_0x460fec(0x133)]('.'+_0x5367a5),_0x9865bd=_0x3774f9[_0x460fec(0x133)](_0x5ca573);return _0xe5eb40||_0x9865bd||_0x3774f9;}return _0x3774f9[_0x460fec(0x133)](_0x5ca573)||_0x3774f9;}[_0x4ab944(0x14d)](){const _0x17db4e=_0x4ab944,_0x551af5=this[_0x17db4e(0x139)]?.[_0x17db4e(0xff)]||this[_0x17db4e(0x15d)];if(!_0x551af5)return wn;const _0x5d1ac4=window[_0x17db4e(0x106)](_0x551af5)[_0x17db4e(0x15a)];if(_0x17db4e(0x168)===_0x5d1ac4||_0x17db4e(0x138)===_0x5d1ac4||!_0x5d1ac4){const _0x35a019=_0x551af5[_0x17db4e(0x114)];if(_0x35a019){const _0x62dd58=window[_0x17db4e(0x106)](_0x35a019);return _0x17db4e(0x168)!==_0x62dd58[_0x17db4e(0x15a)]?_0x62dd58[_0x17db4e(0x15a)]:wn;}return wn;}return _0x5d1ac4;}[_0x4ab944(0x156)](_0x583fef,_0x29c026){const _0x289dec=_0x4ab944;this[_0x289dec(0x15f)][_0x289dec(0x179)][_0x289dec(0x128)]&&_0x583fef[_0x289dec(0x10f)][_0x289dec(0x11e)](this[_0x289dec(0x15f)][_0x289dec(0x179)][_0x289dec(0x128)]),_0x583fef[_0x289dec(0x110)][_0x289dec(0x15a)]=_0x29c026,_0x583fef[_0x289dec(0x110)][_0x289dec(0x151)]=_0x289dec(0x11b),_0x583fef[_0x289dec(0x110)][_0x289dec(0xed)]=_0x289dec(0x169),_0x583fef[_0x289dec(0x110)][_0x289dec(0xf7)]=_0x289dec(0x169),_0x583fef[_0x289dec(0x110)][_0x289dec(0x10e)]='0',_0x583fef[_0x289dec(0x110)][_0x289dec(0x174)]=_0x289dec(0x10a),_0x583fef[_0x289dec(0x110)][_0x289dec(0x148)]='-1',_0x583fef[_0x289dec(0x110)][_0x289dec(0x16f)]=_0x289dec(0xe9),_0x583fef[_0x289dec(0x110)][_0x289dec(0x16e)]=_0x289dec(0x161),_0x583fef[_0x289dec(0x110)][_0x289dec(0x157)]=_0x289dec(0x162);}[_0x4ab944(0x117)](_0x1cf0ac){const _0x512054=_0x4ab944;_0x1cf0ac[_0x512054(0x143)](({element:_0x297bba,originalDisplay:_0x67955f,originalVisibility:_0x3bbf65})=>{const _0x382cc9=_0x512054;_0x297bba[_0x382cc9(0x110)][_0x382cc9(0x16e)]=_0x67955f,_0x297bba[_0x382cc9(0x110)][_0x382cc9(0x16f)]=_0x3bbf65;});}[_0x4ab944(0x102)](_0x55ec3f){const _0x17f6d9=_0x4ab944,_0x21ef24=[];let _0x11b402=_0x55ec3f;for(;_0x11b402&&_0x11b402!==document[_0x17f6d9(0xfa)];){const _0x4a8fc6=window[_0x17f6d9(0x106)](_0x11b402);_0x17f6d9(0x10a)!==_0x4a8fc6[_0x17f6d9(0x16e)]&&_0x17f6d9(0x132)!==_0x4a8fc6[_0x17f6d9(0x16f)]||(_0x21ef24[_0x17f6d9(0xf4)]({'element':_0x11b402,'originalDisplay':_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16e)],'originalVisibility':_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16f)]}),_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16e)]=_0x17f6d9(0xe5),_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16f)]=_0x17f6d9(0x159)),_0x11b402=_0x11b402[_0x17f6d9(0x114)];}return _0x21ef24;}[_0x4ab944(0x13a)](){const _0x410b25=_0x4ab944;let _0x5977d8,_0x1d5d15;return this[_0x410b25(0x139)]?.[_0x410b25(0xff)]?(_0x5977d8=this[_0x410b25(0x139)][_0x410b25(0xff)][_0x410b25(0x11c)](!0x0),_0x1d5d15=this[_0x410b25(0x121)](_0x5977d8)):(_0x5977d8=document[_0x410b25(0x14f)](_0x410b25(0xf5)),_0x1d5d15=_0x5977d8),{'calculationContainer':_0x5977d8,'targetContainer':_0x1d5d15};}[_0x4ab944(0x147)](){const _0x4b577e=_0x4ab944,{calculationContainer:_0x413f21,targetContainer:_0x4b3501}=this[_0x4b577e(0x13a)](),_0x24d7d8=this[_0x4b577e(0x14d)]();this[_0x4b577e(0x156)](_0x413f21,_0x24d7d8);const _0x39d475=this[_0x4b577e(0x139)]?.[_0x4b577e(0xff)]||this[_0x4b577e(0x15d)],_0x500b6f=_0x39d475?.[_0x4b577e(0x114)];_0x500b6f?_0x500b6f[_0x4b577e(0xfb)](_0x413f21):document[_0x4b577e(0xfa)][_0x4b577e(0xfb)](_0x413f21),_0x413f21[_0x4b577e(0x120)]=_0x4b3501;const _0x530809=this[_0x4b577e(0x102)](_0x500b6f||null);return _0x413f21[_0x4b577e(0x124)],_0x413f21[_0x4b577e(0xf1)]=_0x530809,_0x413f21;}[_0x4ab944(0x16a)](_0x4aedec,_0x91861b){const _0x1f2da0=_0x4ab944,_0x170ab2=_0x4aedec[_0x1f2da0(0x120)]||_0x4aedec,_0x1bc76c=[],{rowCount:_0x36c5cb}=this[_0x1f2da0(0xeb)](_0x170ab2,_0x91861b);if(_0x36c5cb<=this[_0x1f2da0(0x15f)][_0x1f2da0(0x11a)])return _0x1bc76c;const _0x245506=_0x91861b[_0x1f2da0(0x14a)]();for(;_0x245506[_0x1f2da0(0x13e)]>0x0;){if(this[_0x1f2da0(0xf2)](_0x4aedec,_0x170ab2,_0x245506)){const _0xba11c1=_0x91861b[_0x1f2da0(0xfc)](_0x1982a7=>!_0x245506[_0x1f2da0(0x14c)](_0x1982a7));_0x1bc76c[_0x1f2da0(0xf4)](..._0xba11c1);break;}if(!_0x245506[_0x1f2da0(0x12f)]())break;}return _0x1bc76c;}[_0x4ab944(0xeb)](_0x4930f7,_0x10490f){const _0xf30d01=_0x4ab944;_0x4930f7[_0xf30d01(0x144)]='',_0x10490f[_0xf30d01(0x143)](_0x2d8d4c=>{const _0x58ee47=_0xf30d01;if(_0x2d8d4c[_0x58ee47(0xff)]){const _0x1a1794=_0x2d8d4c[_0x58ee47(0xff)][_0x58ee47(0x11c)](!0x0);_0x4930f7[_0x58ee47(0xfb)](_0x1a1794);}}),_0x4930f7[_0xf30d01(0x124)];const _0x96e796=_0x4930f7[_0xf30d01(0x12c)],_0x5a7713=[];return Array[_0xf30d01(0x163)](_0x96e796)[_0xf30d01(0x143)](_0x3e9291=>{const _0x249bc7=_0xf30d01,_0x3ebd94=_0x3e9291[_0x249bc7(0x12b)]()[_0x249bc7(0xed)];_0x5a7713[_0x249bc7(0x176)](_0x15bf93=>Math[_0x249bc7(0xfe)](_0x15bf93-_0x3ebd94)<this[_0x249bc7(0x15f)][_0x249bc7(0x135)])||_0x5a7713[_0x249bc7(0xf4)](_0x3ebd94);}),{'rowCount':_0x5a7713[_0xf30d01(0x13e)]};}[_0x4ab944(0x141)](){const _0xa87372=_0x4ab944,_0x9a55b7=document[_0xa87372(0x14f)](_0xa87372(0xf8));return _0x9a55b7[_0xa87372(0x131)]=this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x12d)],this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x17b)]&&_0x9a55b7[_0xa87372(0x10f)][_0xa87372(0x11e)](this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x17b)]),_0x9a55b7[_0xa87372(0x155)]=_0xa87372(0x12a),_0x9a55b7;}[_0x4ab944(0xf2)](_0x6443b0,_0x4a6abf,_0x55514a){const _0x257b9a=_0x4ab944;this[_0x257b9a(0xeb)](_0x4a6abf,_0x55514a);const _0x4b4627=this[_0x257b9a(0x141)]();_0x6443b0[_0x257b9a(0xfb)](_0x4b4627),_0x6443b0[_0x257b9a(0x124)];const _0x4ff50e=[..._0x4a6abf[_0x257b9a(0x12c)],_0x4b4627],_0x475658=[];_0x4ff50e[_0x257b9a(0x143)](_0x3e11db=>{const _0x26b9e9=_0x257b9a,_0x378d5a=_0x3e11db[_0x26b9e9(0x12b)]()[_0x26b9e9(0xed)];_0x475658[_0x26b9e9(0x176)](_0x545264=>Math[_0x26b9e9(0xfe)](_0x545264-_0x378d5a)<this[_0x26b9e9(0x15f)][_0x26b9e9(0x135)])||_0x475658[_0x26b9e9(0xf4)](_0x378d5a);});const _0x1e69ad=_0x475658[_0x257b9a(0x13e)];return _0x4b4627[_0x257b9a(0xef)](),_0x1e69ad<=this[_0x257b9a(0x15f)][_0x257b9a(0x11a)];}[_0x4ab944(0x119)](_0x23b5e0,_0x528fc8){const _0x31c700=_0x4ab944;this[_0x31c700(0x165)][_0x31c700(0x150)](),this[_0x31c700(0x136)][_0x31c700(0x150)](),_0x23b5e0[_0x31c700(0x143)](_0xf8a55d=>{const _0x49e0fe=_0x31c700;_0x528fc8[_0x49e0fe(0x14c)](_0xf8a55d)?this[_0x49e0fe(0x136)][_0x49e0fe(0x11e)](_0xf8a55d):this[_0x49e0fe(0x165)][_0x49e0fe(0x11e)](_0xf8a55d);});}[_0x4ab944(0x145)](_0xe409a0){const _0x2d77d6=_0x4ab944;if(_0xe409a0>0x0&&!this[_0x2d77d6(0x172)]&&this[_0x2d77d6(0x166)](),_0xe409a0>0x0&&this[_0x2d77d6(0x172)]){const _0x3023df=''+this[_0x2d77d6(0x15f)][_0x2d77d6(0x118)]+(_0xe409a0<0x63?_0xe409a0:'99');this[_0x2d77d6(0x172)][_0x2d77d6(0x15e)]=_0x3023df;}this[_0x2d77d6(0x13b)](),this[_0x2d77d6(0xe7)](),this[_0x2d77d6(0x15b)]();}[_0x4ab944(0x109)](_0x477dc3,_0x4a9858){const _0x3b7167=_0x4ab944;this[_0x3b7167(0x119)](_0x477dc3,_0x4a9858),this[_0x3b7167(0x145)](_0x4a9858[_0x3b7167(0x13e)]);}[_0x4ab944(0x15c)](){const _0x590308=_0x4ab944;this[_0x590308(0x15d)]&&_0x590308(0x105)!=typeof IntersectionObserver&&(this[_0x590308(0x13d)]=new IntersectionObserver(_0x4c1b22=>{const _0x2dd6eb=_0x590308;_0x4c1b22[0x0][_0x2dd6eb(0xee)]&&this[_0x2dd6eb(0x171)]&&requestAnimationFrame(()=>{const _0x40f308=_0x2dd6eb;this[_0x40f308(0x130)]();});},{'threshold':0.01,'rootMargin':_0x590308(0x13f)}),this[_0x590308(0x13d)][_0x590308(0x146)](this[_0x590308(0x15d)]));}[_0x4ab944(0xe8)](){const _0x5aa775=_0x4ab944;if(!this[_0x5aa775(0x15d)])return!0x1;if(!this[_0x5aa775(0x15d)][_0x5aa775(0x115)])return!0x1;const _0x3b30a1=this[_0x5aa775(0x15d)][_0x5aa775(0x12b)]();if(0x0===_0x3b30a1[_0x5aa775(0x15a)]||0x0===_0x3b30a1[_0x5aa775(0x112)])return!0x1;const _0x22dcc3=window[_0x5aa775(0x12e)]||document[_0x5aa775(0x100)][_0x5aa775(0xfd)],_0x408d81=window[_0x5aa775(0x134)]||document[_0x5aa775(0x100)][_0x5aa775(0x16d)],_0x3106f8=0xc8;return _0x3b30a1[_0x5aa775(0x153)]>=-0xc8&&_0x3b30a1[_0x5aa775(0xed)]<=_0x22dcc3+_0x3106f8&&_0x3b30a1[_0x5aa775(0x123)]>=-0xc8&&_0x3b30a1[_0x5aa775(0xf7)]<=_0x408d81+_0x3106f8;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e5cfd=_0x477a;(function(_0xf1a4d9,_0x23039c){const _0x419e0a=_0x477a,_0x1ecadd=_0xf1a4d9();while(!![]){try{const _0x35cc28=parseInt(_0x419e0a(0x174))/0x1+-parseInt(_0x419e0a(0x14d))/0x2*(parseInt(_0x419e0a(0x16a))/0x3)+parseInt(_0x419e0a(0x140))/0x4+-parseInt(_0x419e0a(0x157))/0x5+parseInt(_0x419e0a(0x171))/0x6*(-parseInt(_0x419e0a(0x154))/0x7)+-parseInt(_0x419e0a(0x158))/0x8+parseInt(_0x419e0a(0x173))/0x9;if(_0x35cc28===_0x23039c)break;else _0x1ecadd['push'](_0x1ecadd['shift']());}catch(_0xc67716){_0x1ecadd['push'](_0x1ecadd['shift']());}}}(_0x55c7,0xd85f2));function _0x477a(_0x419ae8,_0x6c08ef){const _0x55c7b6=_0x55c7();return _0x477a=function(_0x477a0e,_0x2b4852){_0x477a0e=_0x477a0e-0x13a;let _0x978bed=_0x55c7b6[_0x477a0e];return _0x978bed;},_0x477a(_0x419ae8,_0x6c08ef);}import{ButtonView as _0x3217b9,IconView as _0x287cf8}from'ckeditor5/src/ui.js';import{IconClose as _0x155ccf,IconDocument as _0x323bd2,IconFileUpload as _0x4aede2,IconLink as _0xe9c2e0,IconSelection as _0x5ae350}from'@ckeditor/ckeditor5-icons';function _0x55c7(){const _0x272493=['ck-ai-chat-context-chip__type-icon','animationend','itemType','ck-ai-chat-context-chip_document','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','selection','isLoading','removeContextItemChip','lastIndexOf','isVisible','664611YIwvbs','slice','add','document','ck-ai-chat-context-chip','render','length','9496782QtfdCI','_createLoaderIcon','42182604BZPFWG','91438ivXsqN','tooltip','_createIconView','setTemplate','locale','_setupRemoveButtonEvent','fire','webkitAnimationEnd','type','label','ck-ai-chat-context-chip_wide','set','_createTemplateChildren','2283808KFTuyU','readonly','ck-ai-chat-context-controls__chip-tooltip','disableAnimationOnEnter','div','_isAnimationOnEnterEnabled','content','ck-ai-chat-context-chip__label','small','remove','removeEventListener','_createTemplateAttributes','_initializeProperties','2CHYilz','uiId','_setupTemplate','element','bind','_createLabelElement','ck-ai-chat-context-chip_new-chip','7QKnoHB','span','bindTemplate','6105660nwLnwy','11500976dUPzyt','execute','_handleAnimationEndOnce','classList','_createRemoveButton','ck-hidden','extendTemplate','addEventListener'];_0x55c7=function(){return _0x272493;};return _0x55c7();}import{getTranslation as _0x340952}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x47d1aa}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x4aede2,'document':_0x323bd2,'web-resource':_0xe9c2e0,'text':_0x4aede2,'selection':_0x5ae350},Tn=_0x1e5cfd(0x16e),En=_0x1e5cfd(0x13d),An=_0x1e5cfd(0x163),Cn=_0x1e5cfd(0x147),In=_0x1e5cfd(0x160),On=_0x1e5cfd(0x142),gn='n';export class AIChatContextItemButtonView extends _0x3217b9{constructor(_0x4514d7,_0x404498,_0x1b8016,_0x384688,_0x8ac7f3=!0x1){const _0x1c7860=_0x1e5cfd;super(_0x4514d7),this[_0x1c7860(0x145)]=_0x384688,this[_0x1c7860(0x14c)](_0x404498,_0x1b8016,_0x8ac7f3),this[_0x1c7860(0x14f)]();}[_0x1e5cfd(0x16f)](){const _0x2884bb=_0x1e5cfd;super[_0x2884bb(0x16f)](),this[_0x2884bb(0x145)]&&this[_0x2884bb(0x150)]&&(this[_0x2884bb(0x150)][_0x2884bb(0x15b)][_0x2884bb(0x16c)](_0x2884bb(0x153)),this[_0x2884bb(0x15a)](this[_0x2884bb(0x150)],()=>{const _0x5662b2=_0x2884bb;this[_0x5662b2(0x150)]&&this[_0x5662b2(0x150)][_0x5662b2(0x15b)][_0x5662b2(0x149)](_0x5662b2(0x153));}));}[_0x1e5cfd(0x143)](){const _0x26d371=_0x1e5cfd;this[_0x26d371(0x145)]=!0x1,this[_0x26d371(0x150)]&&this[_0x26d371(0x150)][_0x26d371(0x15b)][_0x26d371(0x149)](_0x26d371(0x153));}[_0x1e5cfd(0x14c)](_0x4d16b4,_0x23a9c9,_0x26dfdb){const _0x164f07=_0x1e5cfd;this[_0x164f07(0x13e)](_0x164f07(0x13c),_0x4d16b4[_0x164f07(0x13c)]),this[_0x164f07(0x13e)](_0x164f07(0x175),!0x0),this[_0x164f07(0x13e)](_0x164f07(0x162),_0x4d16b4[_0x164f07(0x13b)]),this[_0x164f07(0x13e)]('id',_0x4d16b4[_0x164f07(0x14e)]),this[_0x164f07(0x13e)](_0x164f07(0x141),_0x23a9c9),this[_0x164f07(0x13e)](_0x164f07(0x166),_0x26dfdb);}[_0x1e5cfd(0x14f)](){const _0x1770dd=_0x1e5cfd,_0x2b72b9=this[_0x1770dd(0x176)](),_0x4466c7=this[_0x1770dd(0x15c)](),_0x250d58=this[_0x1770dd(0x156)];this[_0x1770dd(0x177)]({'tag':_0x1770dd(0x144),'attributes':this[_0x1770dd(0x14b)](_0x250d58),'children':this[_0x1770dd(0x13f)](_0x2b72b9,_0x4466c7,_0x250d58)});}[_0x1e5cfd(0x14b)](_0x2cfd74){const _0x28f18d=_0x1e5cfd;return{'class':[Tn,_0x2cfd74['if'](_0x28f18d(0x162),An,_0x25c8b7=>_0x28f18d(0x16d)==_0x25c8b7),_0x2cfd74['if'](_0x28f18d(0x162),En,_0x308d52=>_0x28f18d(0x165)==_0x308d52)],'data-cke-tooltip-text':_0x2cfd74['to'](_0x28f18d(0x13c),vn),'data-cke-tooltip-position':gn,'data-cke-tooltip-class':On};}[_0x1e5cfd(0x13f)](_0x38dc17,_0x2d276b,_0x333eb7){const _0x3f9c1f=_0x1e5cfd,_0x10c216=this[_0x3f9c1f(0x152)](_0x333eb7),_0x160607=this[_0x3f9c1f(0x172)]();return this[_0x3f9c1f(0x141)]?[_0x38dc17,_0x10c216]:[_0x38dc17,_0x160607,_0x10c216,_0x2d276b];}[_0x1e5cfd(0x152)](_0x28f911){const _0x1dcecb=_0x1e5cfd;return{'tag':_0x1dcecb(0x155),'attributes':{'class':Cn},'children':[{'text':_0x28f911['to'](_0x1dcecb(0x13c))}]};}[_0x1e5cfd(0x15c)](){const _0x425e9c=_0x1e5cfd,_0x4c8d5a=new _0x3217b9(this[_0x425e9c(0x178)]);return _0x4c8d5a[_0x425e9c(0x13e)]({'label':_0x340952(this[_0x425e9c(0x178)],_0x425e9c(0x164)),'icon':_0x155ccf}),this[_0x425e9c(0x179)](_0x4c8d5a),_0x4c8d5a;}[_0x1e5cfd(0x179)](_0x2589b7){const _0x20d054=_0x1e5cfd;_0x2589b7['on'](_0x20d054(0x159),()=>{const _0x18c9b9=_0x20d054;this[_0x18c9b9(0x17a)](_0x18c9b9(0x167),this['id']);});}[_0x1e5cfd(0x176)](){const _0x1beaaa=_0x1e5cfd,_0x26c032=this[_0x1beaaa(0x156)],_0x2860e2=new _0x287cf8();return _0x2860e2[_0x1beaaa(0x146)]=bn[this[_0x1beaaa(0x162)]],_0x2860e2[_0x1beaaa(0x15e)]({'attributes':{'class':[In,_0x26c032['if'](_0x1beaaa(0x166),_0x1beaaa(0x15d),_0x170952=>_0x170952)]}}),_0x2860e2;}[_0x1e5cfd(0x15a)](_0x456291,_0x198b23){const _0x3f819c=_0x1e5cfd;if(!_0x456291)return;const _0x501912=()=>{const _0x229c66=_0x477a;_0x198b23(),_0x456291[_0x229c66(0x14a)](_0x229c66(0x161),_0x501912),_0x456291[_0x229c66(0x14a)](_0x229c66(0x13a),_0x501912);};_0x456291[_0x3f819c(0x15f)](_0x3f819c(0x161),_0x501912),_0x456291[_0x3f819c(0x15f)](_0x3f819c(0x13a),_0x501912);}[_0x1e5cfd(0x172)](){const _0x43d153=_0x1e5cfd,_0x341d8c=new _0x47d1aa(_0x43d153(0x148));return _0x341d8c[_0x43d153(0x151)](_0x43d153(0x169))['to'](this,_0x43d153(0x166),_0x463226=>_0x463226),_0x341d8c;}}function vn(_0x1a910d){const _0x4be3aa=_0x1e5cfd;if(!_0x1a910d)return _0x1a910d;if(_0x1a910d[_0x4be3aa(0x170)]<=0x78)return _0x1a910d;const _0x4c5830=_0x1a910d[_0x4be3aa(0x16b)](0x0,0x78),_0x1a7e77=_0x4c5830[_0x4be3aa(0x168)]('\x20');return(_0x1a7e77>0x0?_0x4c5830[_0x4be3aa(0x16b)](0x0,_0x1a7e77):_0x4c5830)+'…';}
23
+ function _0x3680(_0x29a67b,_0x477fca){const _0x2e7532=_0x2e75();return _0x3680=function(_0x36800f,_0x432068){_0x36800f=_0x36800f-0x1a8;let _0x5355a1=_0x2e7532[_0x36800f];return _0x5355a1;},_0x3680(_0x29a67b,_0x477fca);}const _0x2a89aa=_0x3680;(function(_0x5e0d0e,_0x3ca934){const _0x4028b1=_0x3680,_0x117ede=_0x5e0d0e();while(!![]){try{const _0x3353d1=parseInt(_0x4028b1(0x1bb))/0x1*(-parseInt(_0x4028b1(0x1b5))/0x2)+parseInt(_0x4028b1(0x1c4))/0x3+-parseInt(_0x4028b1(0x1dd))/0x4*(parseInt(_0x4028b1(0x1d9))/0x5)+-parseInt(_0x4028b1(0x1b8))/0x6+parseInt(_0x4028b1(0x1ac))/0x7*(-parseInt(_0x4028b1(0x1c3))/0x8)+-parseInt(_0x4028b1(0x1d0))/0x9*(parseInt(_0x4028b1(0x1ce))/0xa)+parseInt(_0x4028b1(0x1b6))/0xb;if(_0x3353d1===_0x3ca934)break;else _0x117ede['push'](_0x117ede['shift']());}catch(_0x160d70){_0x117ede['push'](_0x117ede['shift']());}}}(_0x2e75,0x760dd));import{ButtonView as _0x2e5b44,IconView as _0x2e5402}from'ckeditor5/src/ui.js';import{IconClose as _0x36b0d0,IconDocument as _0x262dc9,IconFileUpload as _0xab1dec,IconLink as _0x677f03,IconSelection as _0x2401ed}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x354072}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x158a6f}from'../../../aicore/ui/aispinner.js';function _0x2e75(){const _0x9d03cb=['extendTemplate','ck-hidden','classList','_setupRemoveButtonEvent','_createIconView','ck-ai-chat-context-controls__chip-tooltip','_isAnimationOnEnterEnabled','element','140ccvPdH','ck-ai-chat-context-chip_document','262557RaSprt','_createRemoveButton','lastIndexOf','label','locale','_createLabelElement','_initializeProperties','set','type','5PgrJJo','tooltip','isLoading','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','1821364tuefxY','addEventListener','span','small','itemType','selection','bind','ck-ai-chat-context-chip__label','_createLoaderIcon','_setupTemplate','document','render','remove','ck-ai-chat-context-chip_wide','fire','setTemplate','ck-ai-chat-context-chip__type-icon','execute','56gbFAQM','ck-ai-chat-context-chip','add','content','div','_handleAnimationEndOnce','removeContextItemChip','isVisible','length','497450FpcdKx','30935861gZdFkz','_createTemplateAttributes','4873932tRHweJ','bindTemplate','ck-ai-chat-context-chip_new-chip','1LbNUQA','_createTemplateChildren','uiId','animationend','webkitAnimationEnd','removeEventListener','disableAnimationOnEnter','readonly','616744shuQZj','638256lcnvKw','slice'];_0x2e75=function(){return _0x9d03cb;};return _0x2e75();}const bn={'file':_0xab1dec,'document':_0x262dc9,'web-resource':_0x677f03,'text':_0xab1dec,'selection':_0x2401ed},Tn=_0x2a89aa(0x1ad),En=_0x2a89aa(0x1ea),An=_0x2a89aa(0x1cf),Cn=_0x2a89aa(0x1e4),In=_0x2a89aa(0x1aa),On=_0x2a89aa(0x1cb),gn='n';export class AIChatContextItemButtonView extends _0x2e5b44{constructor(_0x2f1379,_0x217fc9,_0x33ff7b,_0x71cb32,_0x11eca6=!0x1){const _0x46706e=_0x2a89aa;super(_0x2f1379),this[_0x46706e(0x1cc)]=_0x71cb32,this[_0x46706e(0x1d6)](_0x217fc9,_0x33ff7b,_0x11eca6),this[_0x46706e(0x1e6)]();}[_0x2a89aa(0x1e8)](){const _0x2451c9=_0x2a89aa;super[_0x2451c9(0x1e8)](),this[_0x2451c9(0x1cc)]&&this[_0x2451c9(0x1cd)]&&(this[_0x2451c9(0x1cd)][_0x2451c9(0x1c8)][_0x2451c9(0x1ae)](_0x2451c9(0x1ba)),this[_0x2451c9(0x1b1)](this[_0x2451c9(0x1cd)],()=>{const _0x2a01cb=_0x2451c9;this[_0x2a01cb(0x1cd)]&&this[_0x2a01cb(0x1cd)][_0x2a01cb(0x1c8)][_0x2a01cb(0x1e9)](_0x2a01cb(0x1ba));}));}[_0x2a89aa(0x1c1)](){const _0xec22c7=_0x2a89aa;this[_0xec22c7(0x1cc)]=!0x1,this[_0xec22c7(0x1cd)]&&this[_0xec22c7(0x1cd)][_0xec22c7(0x1c8)][_0xec22c7(0x1e9)](_0xec22c7(0x1ba));}[_0x2a89aa(0x1d6)](_0x44f909,_0x16a621,_0x5f8bdb){const _0x3ba96c=_0x2a89aa;this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1d3),_0x44f909[_0x3ba96c(0x1d3)]),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1da),!0x0),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1e1),_0x44f909[_0x3ba96c(0x1d8)]),this[_0x3ba96c(0x1d7)]('id',_0x44f909[_0x3ba96c(0x1bd)]),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1c2),_0x16a621),this[_0x3ba96c(0x1d7)](_0x3ba96c(0x1db),_0x5f8bdb);}[_0x2a89aa(0x1e6)](){const _0x1f929a=_0x2a89aa,_0x4eb73e=this[_0x1f929a(0x1ca)](),_0x3e23e5=this[_0x1f929a(0x1d1)](),_0x6a005c=this[_0x1f929a(0x1b9)];this[_0x1f929a(0x1a9)]({'tag':_0x1f929a(0x1b0),'attributes':this[_0x1f929a(0x1b7)](_0x6a005c),'children':this[_0x1f929a(0x1bc)](_0x4eb73e,_0x3e23e5,_0x6a005c)});}[_0x2a89aa(0x1b7)](_0x3b248d){const _0x3bb02f=_0x2a89aa;return{'class':[Tn,_0x3b248d['if'](_0x3bb02f(0x1e1),An,_0x1b594f=>_0x3bb02f(0x1e7)==_0x1b594f),_0x3b248d['if'](_0x3bb02f(0x1e1),En,_0x13194f=>_0x3bb02f(0x1e2)==_0x13194f)],'data-cke-tooltip-text':_0x3b248d['to'](_0x3bb02f(0x1d3),vn),'data-cke-tooltip-position':gn,'data-cke-tooltip-class':On};}[_0x2a89aa(0x1bc)](_0x309496,_0x5e05cc,_0x3e551c){const _0x5802f6=_0x2a89aa,_0x256cc9=this[_0x5802f6(0x1d5)](_0x3e551c),_0x3986f3=this[_0x5802f6(0x1e5)]();return this[_0x5802f6(0x1c2)]?[_0x309496,_0x256cc9]:[_0x309496,_0x3986f3,_0x256cc9,_0x5e05cc];}[_0x2a89aa(0x1d5)](_0x226ff0){const _0xc5932a=_0x2a89aa;return{'tag':_0xc5932a(0x1df),'attributes':{'class':Cn},'children':[{'text':_0x226ff0['to'](_0xc5932a(0x1d3))}]};}[_0x2a89aa(0x1d1)](){const _0x1bb282=_0x2a89aa,_0x52c277=new _0x2e5b44(this[_0x1bb282(0x1d4)]);return _0x52c277[_0x1bb282(0x1d7)]({'label':_0x354072(this[_0x1bb282(0x1d4)],_0x1bb282(0x1dc)),'icon':_0x36b0d0}),this[_0x1bb282(0x1c9)](_0x52c277),_0x52c277;}[_0x2a89aa(0x1c9)](_0x1f02bf){const _0x74ed98=_0x2a89aa;_0x1f02bf['on'](_0x74ed98(0x1ab),()=>{const _0x1fa30f=_0x74ed98;this[_0x1fa30f(0x1a8)](_0x1fa30f(0x1b2),this['id']);});}[_0x2a89aa(0x1ca)](){const _0x6d3112=_0x2a89aa,_0x3fa37c=this[_0x6d3112(0x1b9)],_0x440aaa=new _0x2e5402();return _0x440aaa[_0x6d3112(0x1af)]=bn[this[_0x6d3112(0x1e1)]],_0x440aaa[_0x6d3112(0x1c6)]({'attributes':{'class':[In,_0x3fa37c['if'](_0x6d3112(0x1db),_0x6d3112(0x1c7),_0x564e85=>_0x564e85)]}}),_0x440aaa;}[_0x2a89aa(0x1b1)](_0xa2e576,_0x100abb){const _0x19c176=_0x2a89aa;if(!_0xa2e576)return;const _0x548a85=()=>{const _0x48c5d3=_0x3680;_0x100abb(),_0xa2e576[_0x48c5d3(0x1c0)](_0x48c5d3(0x1be),_0x548a85),_0xa2e576[_0x48c5d3(0x1c0)](_0x48c5d3(0x1bf),_0x548a85);};_0xa2e576[_0x19c176(0x1de)](_0x19c176(0x1be),_0x548a85),_0xa2e576[_0x19c176(0x1de)](_0x19c176(0x1bf),_0x548a85);}[_0x2a89aa(0x1e5)](){const _0x5bcc66=_0x2a89aa,_0x13c3f0=new _0x158a6f(_0x5bcc66(0x1e0));return _0x13c3f0[_0x5bcc66(0x1e3)](_0x5bcc66(0x1b3))['to'](this,_0x5bcc66(0x1db),_0x565e23=>_0x565e23),_0x13c3f0;}}function vn(_0xfd5ec3){const _0x5ad99b=_0x2a89aa;if(!_0xfd5ec3)return _0xfd5ec3;if(_0xfd5ec3[_0x5ad99b(0x1b4)]<=0x78)return _0xfd5ec3;const _0x2b4ae4=_0xfd5ec3[_0x5ad99b(0x1c5)](0x0,0x78),_0xb18bae=_0x2b4ae4[_0x5ad99b(0x1d2)]('\x20');return(_0xb18bae>0x0?_0x2b4ae4[_0x5ad99b(0x1c5)](0x0,_0xb18bae):_0x2b4ae4)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x181995=_0x3919;(function(_0x15c58a,_0x54e3bf){const _0x274fb1=_0x3919,_0x40ad6b=_0x15c58a();while(!![]){try{const _0x110e35=-parseInt(_0x274fb1(0x184))/0x1*(parseInt(_0x274fb1(0x1a6))/0x2)+-parseInt(_0x274fb1(0x1a5))/0x3+parseInt(_0x274fb1(0x1a0))/0x4+parseInt(_0x274fb1(0x179))/0x5*(parseInt(_0x274fb1(0x174))/0x6)+-parseInt(_0x274fb1(0x1a8))/0x7*(parseInt(_0x274fb1(0x17d))/0x8)+parseInt(_0x274fb1(0x18d))/0x9+parseInt(_0x274fb1(0x172))/0xa;if(_0x110e35===_0x54e3bf)break;else _0x40ad6b['push'](_0x40ad6b['shift']());}catch(_0x3797ab){_0x40ad6b['push'](_0x40ad6b['shift']());}}}(_0xf0cb,0x92b80));function _0x3919(_0x1297f8,_0x18de7d){const _0xf0cb6c=_0xf0cb();return _0x3919=function(_0x391989,_0x28ad13){_0x391989=_0x391989-0x160;let _0x56f250=_0xf0cb6c[_0x391989];return _0x56f250;},_0x3919(_0x1297f8,_0x18de7d);}import{FocusTracker as _0x32d5c0,KeystrokeHandler as _0x102746}from'ckeditor5/src/utils.js';import{ButtonView as _0x2dbff7,FocusCycler as _0x2805ab,LabeledFieldView as _0xd605b7,View as _0x3371c2,FormHeaderView as _0x213855,createLabeledInputText as _0x6b1af5,submitHandler as _0x56d19d}from'ckeditor5/src/ui.js';import{IconCheck as _0x6e6fc2,IconPreviousArrow as _0x4a194e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xfc4ccc}from'../../../aicore/utils/common-translations.js';const eh=_0x181995(0x18a),hh=_0x181995(0x18b);export class AIChatContextPanelUrlInputView extends _0x3371c2{[_0x181995(0x19f)];[_0x181995(0x1a3)];[_0x181995(0x16d)];[_0x181995(0x194)];[_0x181995(0x192)];[_0x181995(0x16f)];[_0x181995(0x178)];constructor(_0x316916){const _0x5345de=_0x181995;super(_0x316916),this[_0x5345de(0x19f)]=new _0x32d5c0(),this[_0x5345de(0x1a3)]=new _0x102746(),this[_0x5345de(0x16f)]=this[_0x5345de(0x1a1)](),this[_0x5345de(0x192)]=this[_0x5345de(0x1a7)](),this[_0x5345de(0x178)]=this[_0x5345de(0x189)](),this[_0x5345de(0x16d)]=this[_0x5345de(0x181)]([this[_0x5345de(0x16f)],this[_0x5345de(0x192)],this[_0x5345de(0x178)]]),this[_0x5345de(0x194)]=new _0x2805ab({'focusables':this[_0x5345de(0x16d)],'focusTracker':this[_0x5345de(0x19f)],'keystrokeHandler':this[_0x5345de(0x1a3)],'actions':{'focusPrevious':_0x5345de(0x17e),'focusNext':_0x5345de(0x199)}}),this[_0x5345de(0x16b)](),this[_0x5345de(0x160)](),this[_0x5345de(0x197)]();}[_0x181995(0x176)](){const _0x3ddc91=_0x181995;super[_0x3ddc91(0x176)](),this[_0x3ddc91(0x16d)][_0x3ddc91(0x168)](_0x258a3a=>{const _0x2cc088=_0x3ddc91;this[_0x2cc088(0x19f)][_0x2cc088(0x196)](_0x258a3a[_0x2cc088(0x16c)]),this[_0x2cc088(0x1a3)][_0x2cc088(0x193)](_0x258a3a[_0x2cc088(0x16c)]);}),_0x56d19d({'view':this}),this[_0x3ddc91(0x166)]();}[_0x181995(0x164)](){const _0x2c0435=_0x181995;super[_0x2c0435(0x164)](),this[_0x2c0435(0x19f)][_0x2c0435(0x164)](),this[_0x2c0435(0x1a3)][_0x2c0435(0x164)]();}[_0x181995(0x166)](){const _0x5d817f=_0x181995;this[_0x5d817f(0x192)][_0x5d817f(0x166)]();}[_0x181995(0x18e)](){const _0x4d217d=_0x181995;return this[_0x4d217d(0x192)][_0x4d217d(0x182)][_0x4d217d(0x16c)]?.[_0x4d217d(0x198)]?.[_0x4d217d(0x195)]()||'';}[_0x181995(0x18f)](){const _0x9b7a14=_0x181995;this[_0x9b7a14(0x192)][_0x9b7a14(0x182)][_0x9b7a14(0x16c)][_0x9b7a14(0x198)]='',this[_0x9b7a14(0x192)][_0x9b7a14(0x187)]=null,this[_0x9b7a14(0x178)][_0x9b7a14(0x167)]=!0x1;}[_0x181995(0x161)](_0x4bcd0e){const _0x59ae88=_0x181995;this[_0x59ae88(0x192)][_0x59ae88(0x187)]=_0x4bcd0e,this[_0x59ae88(0x183)](),this[_0x59ae88(0x171)](_0x59ae88(0x180));}[_0x181995(0x18c)](){const _0x15ae47=_0x181995;this[_0x15ae47(0x192)][_0x15ae47(0x187)]=null,this[_0x15ae47(0x183)]();}[_0x181995(0x1a1)](){const _0x471aaa=_0x181995,_0x31897f=new _0x2dbff7(this[_0x471aaa(0x19a)]);return _0x31897f[_0x471aaa(0x169)]({'icon':_0x4a194e,'tooltip':_0xfc4ccc(this[_0x471aaa(0x19a)],_0x471aaa(0x19b)),'tooltipPosition':'n','class':_0x471aaa(0x19c)}),_0x31897f;}[_0x181995(0x1a7)](){const _0x55805f=_0x181995,_0x4880b0=new _0xd605b7(this[_0x55805f(0x19a)],_0x6b1af5);return _0x4880b0[_0x55805f(0x169)]({'label':_0xfc4ccc(this[_0x55805f(0x19a)],_0x55805f(0x16a)),'class':_0x55805f(0x177)}),_0x4880b0[_0x55805f(0x182)][_0x55805f(0x169)]({'placeholder':_0xfc4ccc(this[_0x55805f(0x19a)],_0x55805f(0x185))}),_0x4880b0;}[_0x181995(0x189)](){const _0x5b6e4e=_0x181995,_0x413ae5=new _0x2dbff7(this[_0x5b6e4e(0x19a)]);return _0x413ae5[_0x5b6e4e(0x169)]({'icon':_0x6e6fc2,'tooltip':_0xfc4ccc(this[_0x5b6e4e(0x19a)],_0x5b6e4e(0x17f)),'tooltipPosition':'n','class':_0x5b6e4e(0x17c),'type':_0x5b6e4e(0x1a4),'isEnabled':!0x1}),_0x413ae5;}[_0x181995(0x16b)](){const _0x432c91=_0x181995,_0x1aacb5=new _0x213855(this[_0x432c91(0x19a)],{'label':_0xfc4ccc(this[_0x432c91(0x19a)],_0x432c91(0x17f)),'class':_0x432c91(0x17a)});_0x1aacb5[_0x432c91(0x191)][_0x432c91(0x196)](this[_0x432c91(0x16f)],0x0),this[_0x432c91(0x1a2)]({'tag':_0x432c91(0x170),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x1aacb5,{'tag':_0x432c91(0x16e),'attributes':{'class':hh},'children':[this[_0x432c91(0x192)],this[_0x432c91(0x178)]]}]});}[_0x181995(0x160)](){const _0x2a96f8=_0x181995;this[_0x2a96f8(0x16f)]['on'](_0x2a96f8(0x162),()=>{const _0x1da80a=_0x2a96f8;this[_0x1da80a(0x18f)](),this[_0x1da80a(0x171)](_0x1da80a(0x19d));}),this[_0x2a96f8(0x192)][_0x2a96f8(0x182)]['on'](_0x2a96f8(0x188),()=>{const _0x19e869=_0x2a96f8;this[_0x19e869(0x18c)](),this[_0x19e869(0x183)](),this[_0x19e869(0x171)](_0x19e869(0x180));}),this['on'](_0x2a96f8(0x1a4),_0x254eb6=>{const _0x5d94d5=_0x2a96f8;_0x254eb6[_0x5d94d5(0x186)](),this[_0x5d94d5(0x190)]();});}[_0x181995(0x197)](){const _0x49d732=_0x181995;this[_0x49d732(0x1a3)][_0x49d732(0x169)](_0x49d732(0x165),(_0xe7abc1,_0x4f94e6)=>{const _0x19f0e9=_0x49d732;this[_0x19f0e9(0x18f)](),this[_0x19f0e9(0x171)](_0x19f0e9(0x19d)),_0x4f94e6();});}[_0x181995(0x190)](){const _0xc0a7c0=_0x181995,_0x33701f=this[_0xc0a7c0(0x18e)]()[_0xc0a7c0(0x195)]();_0x33701f?this[_0xc0a7c0(0x163)](_0x33701f)?(this[_0xc0a7c0(0x18c)](),this[_0xc0a7c0(0x171)](_0xc0a7c0(0x175),_0x33701f)):this[_0xc0a7c0(0x161)](_0xfc4ccc(this[_0xc0a7c0(0x19a)],_0xc0a7c0(0x17b))):this[_0xc0a7c0(0x161)](_0xfc4ccc(this[_0xc0a7c0(0x19a)],_0xc0a7c0(0x173)));}[_0x181995(0x183)](){const _0x1eb991=_0x181995,_0x5b2532=this[_0x1eb991(0x18e)]()[_0x1eb991(0x195)](),_0x48b858=!!this[_0x1eb991(0x192)][_0x1eb991(0x187)];this[_0x1eb991(0x178)][_0x1eb991(0x167)]=_0x5b2532[_0x1eb991(0x19e)]>0x0&&!_0x48b858;}[_0x181995(0x163)](_0x118386){try{return!!new URL(_0x118386);}catch{return!0x1;}}}function _0xf0cb(){const _0x3537cf=['_handleSubmit','children','urlInputField','listenTo','focusCycler','trim','add','_setupKeystrokes','value','tab','locale','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon\x20ck-button-back','cancel','length','focusTracker','4357284oHEPrx','_createBackButton','setTemplate','keystrokes','submit','1632144rDsPvr','2321978ISiWNP','_createUrlInputField','8743XilEVi','_setupEventHandlers','setError','execute','_isValidUrl','destroy','esc','focus','isEnabled','forEach','set','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','element','_focusables','div','backButton','form','fire','6222640PwiPJi','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','456RhTyDK','submitUrl','render','ck-labeled-field-view_empty','confirmButton','17615EjDxeT','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-button-icon','2696PgKcMT','shift+tab','AI_CHAT_CONTEXT_URL_ADD_URL','refreshBalloon','createCollection','fieldView','_updateConfirmButtonState','1vxzaGU','AI_CHAT_CONTEXT_URL_PLACEHOLDER','stop','errorText','input','_createConfirmButton','ck-ai-chat-context-controls__url-form','ck-ai-chat-context-controls__url-input-section','clearError','6728193YSlLhU','getValue','clear'];_0xf0cb=function(){return _0x3537cf;};return _0xf0cb();}
23
+ const _0x1dc769=_0x3a22;function _0x5750(){const _0x1313b2=['urlInputField','listenTo','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','esc','input','5508vpNlvU','submit','value','_setupEventHandlers','errorText','3386024NUJmvX','destroy','clearError','render','ck-button-icon','_handleSubmit','trim','fieldView','_createBackButton','_createConfirmButton','_setupKeystrokes','locale','submitUrl','AI_CHAT_CONTEXT_URL_INVALID_ERROR','refreshBalloon','focusCycler','clear','46735ELqAfr','ck-ai-chat-context-controls__url-form','cancel','setTemplate','ck-button-icon\x20ck-button-back','focus','6WwTnui','div','2651448uUMkjo','getValue','setError','form','AI_CHAT_CONTEXT_URL_ADD_URL','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','5124dcEPDz','children','ck-ai-chat-context-controls__url-input-section','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','_setupTemplate','forEach','346880wCyzon','ck-labeled-field-view_empty','stop','_updateConfirmButtonState','fire','isEnabled','18RFAVVV','shift+tab','AI_CHAT_CONTEXT_URL_LABEL','createCollection','focusTracker','_focusables','set','execute','backButton','_createUrlInputField','confirmButton','element','_isValidUrl','add','length','keystrokes','104068BKSaTw','1228295IiJvLH'];_0x5750=function(){return _0x1313b2;};return _0x5750();}(function(_0x1910bc,_0x54ae7d){const _0x38ff49=_0x3a22,_0x37227b=_0x1910bc();while(!![]){try{const _0xe64617=parseInt(_0x38ff49(0xd4))/0x1+parseInt(_0x38ff49(0x100))/0x2*(parseInt(_0x38ff49(0xda))/0x3)+parseInt(_0x38ff49(0xdc))/0x4+-parseInt(_0x38ff49(0x101))/0x5+parseInt(_0x38ff49(0x107))/0x6*(parseInt(_0x38ff49(0xe2))/0x7)+parseInt(_0x38ff49(0x10c))/0x8*(-parseInt(_0x38ff49(0xf0))/0x9)+parseInt(_0x38ff49(0xea))/0xa;if(_0xe64617===_0x54ae7d)break;else _0x37227b['push'](_0x37227b['shift']());}catch(_0x137e09){_0x37227b['push'](_0x37227b['shift']());}}}(_0x5750,0x68884));import{FocusTracker as _0x153891,KeystrokeHandler as _0x21448d}from'ckeditor5/src/utils.js';function _0x3a22(_0x237d04,_0x32d8a3){const _0x575043=_0x5750();return _0x3a22=function(_0x3a226d,_0x7a1c66){_0x3a226d=_0x3a226d-0xc4;let _0x2f1976=_0x575043[_0x3a226d];return _0x2f1976;},_0x3a22(_0x237d04,_0x32d8a3);}import{ButtonView as _0x4135da,FocusCycler as _0xa444b4,LabeledFieldView as _0x50bd36,View as _0x1c7116,FormHeaderView as _0x48062b,createLabeledInputText as _0x124d4c,submitHandler as _0x88b37b}from'ckeditor5/src/ui.js';import{IconCheck as _0x42c1df,IconPreviousArrow as _0x5d6ea1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x7a3674}from'../../../aicore/utils/common-translations.js';const eh=_0x1dc769(0xd5),hh=_0x1dc769(0xe4);export class AIChatContextPanelUrlInputView extends _0x1c7116{[_0x1dc769(0xf4)];[_0x1dc769(0xff)];[_0x1dc769(0xf5)];[_0x1dc769(0xd2)];[_0x1dc769(0x102)];[_0x1dc769(0xf8)];[_0x1dc769(0xfa)];constructor(_0x53e18c){const _0x554b97=_0x1dc769;super(_0x53e18c),this[_0x554b97(0xf4)]=new _0x153891(),this[_0x554b97(0xff)]=new _0x21448d(),this[_0x554b97(0xf8)]=this[_0x554b97(0xcb)](),this[_0x554b97(0x102)]=this[_0x554b97(0xf9)](),this[_0x554b97(0xfa)]=this[_0x554b97(0xcc)](),this[_0x554b97(0xf5)]=this[_0x554b97(0xf3)]([this[_0x554b97(0xf8)],this[_0x554b97(0x102)],this[_0x554b97(0xfa)]]),this[_0x554b97(0xd2)]=new _0xa444b4({'focusables':this[_0x554b97(0xf5)],'focusTracker':this[_0x554b97(0xf4)],'keystrokeHandler':this[_0x554b97(0xff)],'actions':{'focusPrevious':_0x554b97(0xf1),'focusNext':_0x554b97(0xe7)}}),this[_0x554b97(0xe8)](),this[_0x554b97(0x10a)](),this[_0x554b97(0xcd)]();}[_0x1dc769(0xc6)](){const _0x41ea82=_0x1dc769;super[_0x41ea82(0xc6)](),this[_0x41ea82(0xf5)][_0x41ea82(0xe9)](_0x5dd97b=>{const _0x478647=_0x41ea82;this[_0x478647(0xf4)][_0x478647(0xfd)](_0x5dd97b[_0x478647(0xfb)]),this[_0x478647(0xff)][_0x478647(0x103)](_0x5dd97b[_0x478647(0xfb)]);}),_0x88b37b({'view':this}),this[_0x41ea82(0xd9)]();}[_0x1dc769(0xc4)](){const _0xd668e3=_0x1dc769;super[_0xd668e3(0xc4)](),this[_0xd668e3(0xf4)][_0xd668e3(0xc4)](),this[_0xd668e3(0xff)][_0xd668e3(0xc4)]();}[_0x1dc769(0xd9)](){const _0x3262aa=_0x1dc769;this[_0x3262aa(0x102)][_0x3262aa(0xd9)]();}[_0x1dc769(0xdd)](){const _0x142be5=_0x1dc769;return this[_0x142be5(0x102)][_0x142be5(0xca)][_0x142be5(0xfb)]?.[_0x142be5(0x109)]?.[_0x142be5(0xc9)]()||'';}[_0x1dc769(0xd3)](){const _0x145a99=_0x1dc769;this[_0x145a99(0x102)][_0x145a99(0xca)][_0x145a99(0xfb)][_0x145a99(0x109)]='',this[_0x145a99(0x102)][_0x145a99(0x10b)]=null,this[_0x145a99(0xfa)][_0x145a99(0xef)]=!0x1;}[_0x1dc769(0xde)](_0x307d00){const _0x8956b1=_0x1dc769;this[_0x8956b1(0x102)][_0x8956b1(0x10b)]=_0x307d00,this[_0x8956b1(0xed)](),this[_0x8956b1(0xee)](_0x8956b1(0xd1));}[_0x1dc769(0xc5)](){const _0x54e519=_0x1dc769;this[_0x54e519(0x102)][_0x54e519(0x10b)]=null,this[_0x54e519(0xed)]();}[_0x1dc769(0xcb)](){const _0x149fb6=_0x1dc769,_0x24c270=new _0x4135da(this[_0x149fb6(0xce)]);return _0x24c270[_0x149fb6(0xf6)]({'icon':_0x5d6ea1,'tooltip':_0x7a3674(this[_0x149fb6(0xce)],_0x149fb6(0xe1)),'tooltipPosition':'n','class':_0x149fb6(0xd8)}),_0x24c270;}[_0x1dc769(0xf9)](){const _0x5e1df=_0x1dc769,_0x4bfa11=new _0x50bd36(this[_0x5e1df(0xce)],_0x124d4c);return _0x4bfa11[_0x5e1df(0xf6)]({'label':_0x7a3674(this[_0x5e1df(0xce)],_0x5e1df(0xf2)),'class':_0x5e1df(0xeb)}),_0x4bfa11[_0x5e1df(0xca)][_0x5e1df(0xf6)]({'placeholder':_0x7a3674(this[_0x5e1df(0xce)],_0x5e1df(0xe6))}),_0x4bfa11;}[_0x1dc769(0xcc)](){const _0xafd7bd=_0x1dc769,_0x1c8812=new _0x4135da(this[_0xafd7bd(0xce)]);return _0x1c8812[_0xafd7bd(0xf6)]({'icon':_0x42c1df,'tooltip':_0x7a3674(this[_0xafd7bd(0xce)],_0xafd7bd(0xe0)),'tooltipPosition':'n','class':_0xafd7bd(0xc7),'type':_0xafd7bd(0x108),'isEnabled':!0x1}),_0x1c8812;}[_0x1dc769(0xe8)](){const _0x6d287c=_0x1dc769,_0x3e02b8=new _0x48062b(this[_0x6d287c(0xce)],{'label':_0x7a3674(this[_0x6d287c(0xce)],_0x6d287c(0xe0)),'class':_0x6d287c(0xe5)});_0x3e02b8[_0x6d287c(0xe3)][_0x6d287c(0xfd)](this[_0x6d287c(0xf8)],0x0),this[_0x6d287c(0xd7)]({'tag':_0x6d287c(0xdf),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x3e02b8,{'tag':_0x6d287c(0xdb),'attributes':{'class':hh},'children':[this[_0x6d287c(0x102)],this[_0x6d287c(0xfa)]]}]});}[_0x1dc769(0x10a)](){const _0x48ef37=_0x1dc769;this[_0x48ef37(0xf8)]['on'](_0x48ef37(0xf7),()=>{const _0x218161=_0x48ef37;this[_0x218161(0xd3)](),this[_0x218161(0xee)](_0x218161(0xd6));}),this[_0x48ef37(0x102)][_0x48ef37(0xca)]['on'](_0x48ef37(0x106),()=>{const _0x4e5c80=_0x48ef37;this[_0x4e5c80(0xc5)](),this[_0x4e5c80(0xed)](),this[_0x4e5c80(0xee)](_0x4e5c80(0xd1));}),this['on'](_0x48ef37(0x108),_0x2fe267=>{const _0x344e62=_0x48ef37;_0x2fe267[_0x344e62(0xec)](),this[_0x344e62(0xc8)]();});}[_0x1dc769(0xcd)](){const _0x24c38f=_0x1dc769;this[_0x24c38f(0xff)][_0x24c38f(0xf6)](_0x24c38f(0x105),(_0x163e14,_0xf8cafe)=>{const _0xe0cc5d=_0x24c38f;this[_0xe0cc5d(0xd3)](),this[_0xe0cc5d(0xee)](_0xe0cc5d(0xd6)),_0xf8cafe();});}[_0x1dc769(0xc8)](){const _0xacce1c=_0x1dc769,_0x912db4=this[_0xacce1c(0xdd)]()[_0xacce1c(0xc9)]();_0x912db4?this[_0xacce1c(0xfc)](_0x912db4)?(this[_0xacce1c(0xc5)](),this[_0xacce1c(0xee)](_0xacce1c(0xcf),_0x912db4)):this[_0xacce1c(0xde)](_0x7a3674(this[_0xacce1c(0xce)],_0xacce1c(0xd0))):this[_0xacce1c(0xde)](_0x7a3674(this[_0xacce1c(0xce)],_0xacce1c(0x104)));}[_0x1dc769(0xed)](){const _0x2a46cd=_0x1dc769,_0x5868b9=this[_0x2a46cd(0xdd)]()[_0x2a46cd(0xc9)](),_0x5dbefa=!!this[_0x2a46cd(0x102)][_0x2a46cd(0x10b)];this[_0x2a46cd(0xfa)][_0x2a46cd(0xef)]=_0x5868b9[_0x2a46cd(0xfe)]>0x0&&!_0x5dbefa;}[_0x1dc769(0xfc)](_0x19898b){try{return!!new URL(_0x19898b);}catch{return!0x1;}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e9c08=_0x1021;(function(_0x252e14,_0x4000f5){const _0x32e602=_0x1021,_0x5a37df=_0x252e14();while(!![]){try{const _0x52377c=parseInt(_0x32e602(0xef))/0x1*(parseInt(_0x32e602(0x94))/0x2)+parseInt(_0x32e602(0xdf))/0x3+parseInt(_0x32e602(0xd7))/0x4*(-parseInt(_0x32e602(0xb5))/0x5)+parseInt(_0x32e602(0xe2))/0x6*(-parseInt(_0x32e602(0xd3))/0x7)+parseInt(_0x32e602(0xfe))/0x8+parseInt(_0x32e602(0x9f))/0x9*(parseInt(_0x32e602(0x99))/0xa)+parseInt(_0x32e602(0xbd))/0xb*(parseInt(_0x32e602(0xa6))/0xc);if(_0x52377c===_0x4000f5)break;else _0x5a37df['push'](_0x5a37df['shift']());}catch(_0x139c2a){_0x5a37df['push'](_0x5a37df['shift']());}}}(_0x28bb,0xc9ea0));function _0x28bb(){const _0x199844=['12NWyptG','addContextButtonView','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__add-context-button','reorganizeChips','_setBalloonPanelContent','ck-ai-chat','ck-reset_all-excluded','clearConversationContextItems','removeContextItem','source','overflowChips','updateResourceState','div','sources','1985sMxwVT','northArrowSouthWest','document','isVisible','_setupTemplate','done','__arrow','southArrowNorthWest','11753786MoSVHG','isLoading','clearCurrentContextItems','_toggleAddContextBalloon','icon','setConversationContext','showSourceResourcesBalloon','northArrowSouth','addDocumentToContext','extendTemplate','createCollection','ck-ai-chat-context-controls__show-more-balloon-panel','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','add','hideAddContextBalloonPanel','label','_showSourceResourcesBalloon','_createAddContextBalloonPanelView','render','bind','_bindEventHandlers','21wHYKYv','hideUrlBalloonPanel','populateSourceResourceBalloon','setContainerElement','16508ogXlMr','body','ck-ai-chat-controls-button','ck-ai-chat-context-controls','conversation','show','_addContextToCollection','_createAddContextButtonView','4400199nLmEIu','northArrowSouthEast','submitUrl','3015120JhASiM','isHidden','arrowView','content','tooltip','ck-ai-chat-context-chips-wrapper-balloon','set','addResourceToContext','_addContextBalloonPanelView','element','_urlInputView','_handleUrlSubmit','showAddContextBalloonPanel','1FoDpay','locale','hide','isAnyResourceBalloonVisible','urls','ck-ai-chat-controls_context_show-more-button','_createBalloonButton','ck-ai-chat-context-controls__balloon-button','focus','refreshBalloon','_setupAllBalloonClickOutsideHandlers','bodyCollection','_addUrlContent','ck-ai-chat-context-controls__pending-contexts','cancel','2646976AFquCF','addFileToContext','AI_CHAT_CONTEXT_URL_LABEL','isReadOnly','menuitem','children','closest','files','removeContextItemChip','_createUrlBalloonPanelView','closeSourceResourceBalloon','destroy','fire','enabled','addUrlToContext','type','setContextItemLoading','buttonView','_createResourcesBalloonView','_setAddContextButtonEnabled','_overflowManager','pin','isOn','loadSourceResources','_currentContextsChips','ck-ai-chat-context-controls__balloon-button-source','balloonView','setAddContextOptions','_createBaseBalloonPanel','execute','_resourcesBalloonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_urlBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','_conversationContextsChips','isEnabled','southArrowNorth','showUrlBalloonPanel','addContextItem','439996UsWnJm','_createArrowView','current','_removeContextFromCollection','_handleAddContextButtonClick','47940XgYkBo','_setupUrlBalloonClickOutsideHandler','_createContextButton','remove','clear','ck-ai-chat-context-controls__add-context-balloon-panel','1665CCYWdf','_getLimiterElement','southArrowNorthEast','AI_CHAT_CONTEXT_ADD_CONTEXT','setTemplate','find','_addContextBalloonConfig'];_0x28bb=function(){return _0x199844;};return _0x28bb();}import{BalloonPanelView as _0x1fa834,ButtonView as _0x2971f0,clickOutsideHandler as _0xf04abc,FileDialogButtonView as _0x355495,IconView as _0xd63c0e,View as _0x56bbf4}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x443d82,IconDocument as _0x68bfbc,IconDocumentOutline as _0x2f94a4,IconDropdownArrow as _0x24ec6c,IconLink as _0x878118,IconPaperClip as _0x4e10a3}from'@ckeditor/ckeditor5-icons';function _0x1021(_0x232a52,_0x1f4559){const _0x28bb80=_0x28bb();return _0x1021=function(_0x1021e7,_0x4ccb6d){_0x1021e7=_0x1021e7-0x87;let _0x72f2f9=_0x28bb80[_0x1021e7];return _0x72f2f9;},_0x1021(_0x232a52,_0x1f4559);}import{AIChatContextItemButtonView as _0x21b72b}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa41e7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x29fa93}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4374fa}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x58e0fd}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4e9c08(0xc5),_0x4e9c08(0xff),_0x4e9c08(0x10c),_0x4e9c08(0xe9),_0x4e9c08(0xaf),_0x4e9c08(0x115)];const bo=_0x4e9c08(0xda),To=_0x4e9c08(0xfc),Ao=_0x4e9c08(0x9e),ko=_0x4e9c08(0xa9),Eo=_0x4e9c08(0xa8),vo=_0x4e9c08(0xf6),go=_0x4e9c08(0x117),Vo=_0x4e9c08(0xd9),fo=_0x4e9c08(0xe7),Io=_0x4e9c08(0xf4),Po=_0x4e9c08(0xc8),Ro=_0x4e9c08(0xac),So=[_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xb6)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xc4)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xe0)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xbc)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0x91)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xa1)]];export class AIChatContextPanelView extends _0x56bbf4{[_0x4e9c08(0xa7)];[_0x4e9c08(0x116)]=this[_0x4e9c08(0xc7)]();[_0x4e9c08(0x8f)]=this[_0x4e9c08(0xc7)]();[_0x4e9c08(0x112)];[_0x4e9c08(0xea)];[_0x4e9c08(0x8d)];[_0x4e9c08(0xec)];[_0x4e9c08(0x8b)];[_0x4e9c08(0xa5)];[_0x4e9c08(0xfa)];constructor(_0x14bda0,_0x54aa46){const _0x17ab5c=_0x4e9c08;super(_0x14bda0),this[_0x17ab5c(0xfa)]=_0x54aa46,this[_0x17ab5c(0x116)]=this[_0x17ab5c(0xc7)](),this[_0x17ab5c(0x8f)]=this[_0x17ab5c(0xc7)](),this[_0x17ab5c(0xa7)]=this[_0x17ab5c(0xde)](_0x14bda0),this[_0x17ab5c(0xea)]=this[_0x17ab5c(0xcf)](_0x14bda0),this[_0x17ab5c(0x8d)]=this[_0x17ab5c(0x107)](_0x14bda0),this[_0x17ab5c(0x8b)]=this[_0x17ab5c(0x110)](_0x14bda0,_0x54aa46);const _0x7665c8={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x17ab5c(0x112)]=new _0x29fa93(_0x14bda0,this[_0x17ab5c(0x116)],_0x7665c8,this[_0x17ab5c(0xfa)],this),this[_0x17ab5c(0xa5)]={'buttonView':this[_0x17ab5c(0xa7)],'balloonView':this[_0x17ab5c(0xea)],'hideMethod':this[_0x17ab5c(0xcc)][_0x17ab5c(0xd1)](this),'showMethod':this[_0x17ab5c(0xee)][_0x17ab5c(0xd1)](this)},this[_0x17ab5c(0xb9)](),this[_0x17ab5c(0xd2)]();}[_0x4e9c08(0xd0)](){const _0x4ef260=_0x4e9c08;super[_0x4ef260(0xd0)](),this[_0x4ef260(0xf9)](),this[_0x4ef260(0x112)][_0x4ef260(0xd6)](this[_0x4ef260(0xeb)]),this[_0x4ef260(0x112)][_0x4ef260(0xaa)]();}[_0x4e9c08(0x109)](){const _0xde2c25=_0x4e9c08;super[_0xde2c25(0x109)](),this[_0xde2c25(0x112)][_0xde2c25(0x109)](),this[_0xde2c25(0x8b)][_0xde2c25(0x109)]();}[_0x4e9c08(0x93)](_0x1c2c1e,_0x4ef4e6){const _0x2ca2df=_0x4e9c08,_0x4dbdbe=this[_0x2ca2df(0x9b)](_0x1c2c1e,_0x2ca2df(0x96),!0x0,_0x4ef4e6);this[_0x2ca2df(0xdd)](_0x4dbdbe,this[_0x2ca2df(0x116)]),this[_0x2ca2df(0x112)][_0x2ca2df(0xaa)]();}[_0x4e9c08(0xaf)](_0x3839f8){const _0x2cdf49=_0x4e9c08;this[_0x2cdf49(0x97)](_0x3839f8,this[_0x2cdf49(0x116)]),this[_0x2cdf49(0x97)](_0x3839f8,this[_0x2cdf49(0x112)][_0x2cdf49(0xb1)]),this[_0x2cdf49(0x112)][_0x2cdf49(0xaa)]();}[_0x4e9c08(0x10e)](_0x27c616,_0x5c35d7){const _0x43aa34=_0x4e9c08;let _0x235678=this[_0x43aa34(0x116)][_0x43aa34(0xa4)](_0x59d48=>_0x59d48['id']===_0x27c616);_0x235678||(_0x235678=this[_0x43aa34(0x112)][_0x43aa34(0xb1)][_0x43aa34(0xa4)](_0x534787=>_0x534787['id']===_0x27c616)),_0x235678&&(_0x235678[_0x43aa34(0xbe)]=_0x5c35d7);}[_0x4e9c08(0xc2)](_0x305293){const _0x5b4bdd=_0x4e9c08;this[_0x5b4bdd(0x8f)][_0x5b4bdd(0x9d)]();for(const _0x1048e3 of _0x305293){const _0x528db3=this[_0x5b4bdd(0x9b)](_0x1048e3,_0x5b4bdd(0xdb),!0x1,!0x1);this[_0x5b4bdd(0xdd)](_0x528db3,this[_0x5b4bdd(0x8f)]);}}[_0x4e9c08(0xbf)](){const _0x31d78f=_0x4e9c08;this[_0x31d78f(0x116)][_0x31d78f(0x9d)](),this[_0x31d78f(0x112)][_0x31d78f(0x9d)]();}[_0x4e9c08(0xae)](){const _0x108fa7=_0x4e9c08;this[_0x108fa7(0x8f)][_0x108fa7(0x9d)]();}[_0x4e9c08(0xb2)](_0x2bf51e,_0x2d83f4,_0x31559e){const _0x23f364=_0x4e9c08;this[_0x23f364(0x8b)][_0x23f364(0xb2)](_0x2bf51e,_0x2d83f4,_0x31559e);}[_0x4e9c08(0xcc)](){const _0x59bd39=_0x4e9c08;this[_0x59bd39(0xc0)](!0x1);}[_0x4e9c08(0xee)](){const _0x36141f=_0x4e9c08;this[_0x36141f(0xc0)](!0x0);}[_0x4e9c08(0xd4)](){const _0x4f56a0=_0x4e9c08;this[_0x4f56a0(0x8d)][_0x4f56a0(0xf1)](),this[_0x4f56a0(0xa7)][_0x4f56a0(0x114)]=!0x1,this[_0x4f56a0(0xec)]&&this[_0x4f56a0(0xec)][_0x4f56a0(0x9d)]();}[_0x4e9c08(0x92)](){const _0x20e1f1=_0x4e9c08;this[_0x20e1f1(0x8d)][_0x20e1f1(0xdc)](),this[_0x20e1f1(0xa7)][_0x20e1f1(0x114)]=!0x0;}[_0x4e9c08(0xce)](_0x515306){const _0x226b7d=_0x4e9c08;this[_0x226b7d(0x8b)][_0x226b7d(0xc3)](_0x515306),this[_0x226b7d(0xa7)][_0x226b7d(0x114)]=!0x0;}[_0x4e9c08(0xd5)](_0x499689,_0x3e1864,_0x230d39,_0x47e238){const _0x5875b2=_0x4e9c08;this[_0x5875b2(0x8b)][_0x5875b2(0xd5)](_0x499689,_0x230d39,_0x47e238);}[_0x4e9c08(0x108)](_0x3c5687){const _0x46cce6=_0x4e9c08;this[_0x46cce6(0x8b)][_0x46cce6(0x108)](_0x3c5687),this[_0x46cce6(0xa7)][_0x46cce6(0x114)]=!0x1;}[_0x4e9c08(0x88)](_0x2844cb){const _0x854aa5=_0x4e9c08;this[_0x854aa5(0xab)](this[_0x854aa5(0xea)],this[_0x854aa5(0xf0)],_0x2844cb),this[_0x854aa5(0x111)](_0x2844cb);}[_0x4e9c08(0x111)](_0x3ac439){const _0x46290e=_0x4e9c08,_0x313bf0=!_0x3ac439[_0x46290e(0xb7)][_0x46290e(0xe3)]&&_0x3ac439[_0x46290e(0xb7)][_0x46290e(0x10b)],_0x2c97c7=_0x3ac439[_0x46290e(0xf3)][_0x46290e(0x10b)],_0x36ca7b=_0x3ac439[_0x46290e(0x105)][_0x46290e(0x10b)];this[_0x46290e(0xa7)][_0x46290e(0x90)]=_0x313bf0||_0x2c97c7||_0x36ca7b;}[_0x4e9c08(0xb9)](){const _0x2e57d8=_0x4e9c08;this[_0x2e57d8(0xa3)]({'tag':_0x2e57d8(0xb3),'attributes':{'class':[bo,_0x2e57d8(0xad)]},'children':[{'tag':_0x2e57d8(0xb3),'attributes':{'class':To},'children':this[_0x2e57d8(0x116)]}]});}[_0x4e9c08(0xd2)](){const _0x13395d=_0x4e9c08;this[_0x13395d(0xa7)]['on'](_0x13395d(0x8a),()=>{const _0x206d17=_0x13395d;this[_0x206d17(0x98)]();});}[_0x4e9c08(0xde)](_0x4a15d8){const _0x4629ff=_0x4e9c08,_0x85cac4=new _0x2971f0(_0x4a15d8);return _0x85cac4[_0x4629ff(0xe8)]({'label':_0x4374fa(_0x4a15d8,_0x4629ff(0xa2)),'class':Vo+'\x20'+ko,'icon':_0x4e10a3,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x85cac4;}[_0x4e9c08(0xcf)](_0x36f452){const _0x11d111=_0x4e9c08;return this[_0x11d111(0x89)](_0x36f452,Ao);}[_0x4e9c08(0x107)](_0x3f15b1){const _0x467b1d=_0x4e9c08,_0x423775=this[_0x467b1d(0x89)](_0x3f15b1,Eo);return this[_0x467b1d(0xfb)](_0x423775,_0x3f15b1),_0x423775;}[_0x4e9c08(0x110)](_0x446865,_0x4fc519){const _0x44d8c5=_0x4e9c08;return new _0x58e0fd(_0x446865,_0x4fc519,{'onBackToContext':()=>{const _0x534602=_0x1021;this[_0x534602(0xee)](),this[_0x534602(0xea)][_0x534602(0x113)]({'target':this[_0x534602(0xa7)][_0x534602(0xeb)],'limiter':this[_0x534602(0xa0)](),'positions':So});},'onResourceSelected':(_0x4f746e,_0x42e664)=>{const _0x392c1b=_0x1021;this[_0x392c1b(0x10a)](_0x392c1b(0xe9),{'source':_0x4f746e,'resource':_0x42e664});},'onLoadSourceResources':_0x19d638=>{const _0x4b945c=_0x1021;this[_0x4b945c(0x10a)](_0x4b945c(0x115),_0x19d638);},'onBalloonClosed':()=>{const _0x505512=_0x1021;this[_0x505512(0xa7)][_0x505512(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x44d8c5(0xa0)](),'getTargetElement':()=>this[_0x44d8c5(0xa7)][_0x44d8c5(0xeb)]});}[_0x4e9c08(0xa0)](){const _0x37e790=_0x4e9c08;return this[_0x37e790(0xeb)]?.[_0x37e790(0x104)]('.'+Ro)||document[_0x37e790(0xd8)];}[_0x4e9c08(0x89)](_0x2cea4c,_0x5c7564){const _0x370fd7=_0x4e9c08,_0x9f42e8=new _0x1fa834(_0x2cea4c);return _0x9f42e8[_0x370fd7(0xc6)]({'attributes':{'class':_0x5c7564}}),this[_0x370fd7(0xfa)][_0x370fd7(0xcb)](_0x9f42e8),_0x9f42e8;}[_0x4e9c08(0xab)](_0x3f3756,_0x192164,_0x4516f0){const _0xa2e6b7=_0x4e9c08;if(_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0x9d)](),!_0x4516f0[_0xa2e6b7(0xb7)][_0xa2e6b7(0xe3)]&&_0x4516f0[_0xa2e6b7(0xb7)][_0xa2e6b7(0x10b)]){const _0x377d5e=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x4374fa(_0x192164,_0xa2e6b7(0x8c)),'icon':_0x68bfbc});_0x377d5e['on'](_0xa2e6b7(0x8a),()=>{const _0x1b5e40=_0xa2e6b7;this[_0x1b5e40(0x10a)](_0x1b5e40(0xc5)),this[_0x1b5e40(0xcc)]();}),_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x377d5e);}if(_0x4516f0[_0xa2e6b7(0xf3)][_0xa2e6b7(0x10b)]){const _0x4b9317=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x4374fa(_0x192164,_0xa2e6b7(0x100)),'icon':_0x878118});_0x4b9317['on'](_0xa2e6b7(0x8a),()=>{const _0x1fe7f7=_0xa2e6b7;this[_0x1fe7f7(0xcc)](),this[_0x1fe7f7(0x92)](),this[_0x1fe7f7(0x8d)][_0x1fe7f7(0x113)]({'target':this[_0x1fe7f7(0xa7)][_0x1fe7f7(0xeb)],'limiter':this[_0x1fe7f7(0xa0)](),'positions':So}),this[_0x1fe7f7(0xec)][_0x1fe7f7(0xf7)]();}),_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x4b9317);}if(_0x4516f0[_0xa2e6b7(0x105)][_0xa2e6b7(0x10b)]){const _0x51d48b=new _0x355495(_0x192164);_0x51d48b[_0xa2e6b7(0xe8)]({'label':_0x4374fa(_0x192164,_0xa2e6b7(0xca)),'icon':_0x443d82,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x51d48b['on'](_0xa2e6b7(0xba),(_0x40ff0c,_0x47b439)=>{const _0x33bdea=_0xa2e6b7;this[_0x33bdea(0x10a)](_0x33bdea(0xff),_0x47b439),this[_0x33bdea(0xcc)]();}),_0x51d48b[_0xa2e6b7(0xe6)]=!0x0,_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x51d48b);}for(const _0x1d4f5f of _0x4516f0[_0xa2e6b7(0xb4)]){const _0x531991=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x1d4f5f[_0xa2e6b7(0xcd)],'icon':_0x1d4f5f[_0xa2e6b7(0xc1)]||_0x2f94a4,'type':_0xa2e6b7(0xb0)});_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x531991),_0x531991['on'](_0xa2e6b7(0x8a),()=>{const _0x243f88=_0xa2e6b7;this[_0x243f88(0xcc)](),this[_0x243f88(0xce)](_0x1d4f5f);});}}[_0x4e9c08(0xfb)](_0x5730b6,_0x18874a){const _0x265449=_0x4e9c08;this[_0x265449(0xec)]=new _0xa41e7(_0x18874a),this[_0x265449(0xec)]['on'](_0x265449(0xe1),(_0x12fb4c,_0x5d5a72)=>{const _0x5cdabe=_0x265449;this[_0x5cdabe(0xed)](_0x5d5a72);}),this[_0x265449(0xec)]['on'](_0x265449(0xfd),()=>{const _0xe23011=_0x265449;this[_0xe23011(0xd4)](),this[_0xe23011(0xee)](),this[_0xe23011(0xea)][_0xe23011(0x113)]({'target':this[_0xe23011(0xa7)][_0xe23011(0xeb)],'limiter':this[_0xe23011(0xa0)](),'positions':So});}),this[_0x265449(0xec)]['on'](_0x265449(0xf8),()=>{const _0x50ab1b=_0x265449;this[_0x50ab1b(0x8d)][_0x50ab1b(0xb8)]&&this[_0x50ab1b(0x8d)][_0x50ab1b(0x113)]({'target':this[_0x50ab1b(0xa7)][_0x50ab1b(0xeb)],'limiter':this[_0x50ab1b(0xa0)](),'positions':So});}),_0x5730b6[_0x265449(0xe5)][_0x265449(0xcb)](this[_0x265449(0xec)]);}[_0x4e9c08(0xf5)](_0x512bd9,_0x50990a){const _0x28d4e7=_0x4e9c08,_0x13f60d=_0x28d4e7(0xb0)===_0x50990a[_0x28d4e7(0x10d)]?new SourcesBalloonButtonView(_0x512bd9):new _0x2971f0(_0x512bd9);return _0x13f60d[_0x28d4e7(0xe8)]({'label':_0x50990a[_0x28d4e7(0xcd)],'icon':_0x50990a[_0x28d4e7(0xc1)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x13f60d;}[_0x4e9c08(0xf9)](){const _0x532d2f=_0x4e9c08;this[_0x532d2f(0x8e)](),this[_0x532d2f(0x9a)]();}[_0x4e9c08(0x9a)](){const _0x24c174=_0x4e9c08;_0xf04abc({'emitter':this[_0x24c174(0x8d)],'contextElements':[this[_0x24c174(0x8d)][_0x24c174(0xeb)]],'callback':()=>{const _0x5877fb=_0x24c174;this[_0x5877fb(0xd4)]();},'activator':()=>this[_0x24c174(0x8d)][_0x24c174(0xb8)]});}[_0x4e9c08(0xc0)](_0x28c6f0){const _0x31689a=_0x4e9c08,_0x38c726=this[_0x31689a(0xa5)];_0x38c726[_0x31689a(0x10f)][_0x31689a(0x114)]=_0x28c6f0,_0x28c6f0?_0x38c726[_0x31689a(0x87)][_0x31689a(0xdc)]():_0x38c726[_0x31689a(0x87)][_0x31689a(0xf1)]();}[_0x4e9c08(0x8e)](){const _0x4d9a36=_0x4e9c08,{balloonView:_0x13ac51,buttonView:_0x48db7d,hideMethod:_0x5e897a}=this[_0x4d9a36(0xa5)];_0xf04abc({'emitter':_0x13ac51,'contextElements':[_0x13ac51[_0x4d9a36(0xeb)],_0x48db7d[_0x4d9a36(0xeb)]],'callback':()=>{_0x5e897a();},'activator':()=>_0x48db7d[_0x4d9a36(0x114)]&&!this[_0x4d9a36(0x8d)][_0x4d9a36(0xb8)]&&!this[_0x4d9a36(0x8b)][_0x4d9a36(0xf2)]()});}[_0x4e9c08(0x9b)](_0x2e2097,_0x245663,_0xeec991=!0x1,_0x2b04f8=!0x1){const _0x416035=_0x4e9c08,_0x146c3c=_0x416035(0xdb)===_0x245663||!0x0===_0x2e2097[_0x416035(0x101)],_0x1b149d=new _0x21b72b(this[_0x416035(0xf0)],_0x2e2097,_0x146c3c,_0xeec991,_0x2b04f8);return _0x146c3c||_0x1b149d['on'](_0x416035(0x106),()=>{const _0x3de272=_0x416035;this[_0x3de272(0x10a)](_0x3de272(0xaf),_0x1b149d['id']);}),_0x1b149d;}[_0x4e9c08(0xdd)](_0x354f2d,_0x570517){const _0x2423e4=_0x4e9c08;_0x570517[_0x2423e4(0xcb)](_0x354f2d,0x0);}[_0x4e9c08(0x97)](_0x208e9a,_0x396011){const _0x4351a3=_0x4e9c08,_0x40bf03=_0x396011[_0x4351a3(0xa4)](_0x151500=>_0x151500['id']===_0x208e9a);_0x40bf03&&_0x396011[_0x4351a3(0x9c)](_0x40bf03);}[_0x4e9c08(0x98)](){const _0x341ba0=_0x4e9c08;this[_0x341ba0(0xa7)][_0x341ba0(0x114)]?this[_0x341ba0(0xcc)]():(this[_0x341ba0(0xee)](),this[_0x341ba0(0xea)][_0x341ba0(0x113)]({'target':this[_0x341ba0(0xa7)][_0x341ba0(0xeb)],'limiter':this[_0x341ba0(0xa0)](),'positions':So}));}[_0x4e9c08(0xed)](_0x4dcc7c){const _0x4c3722=_0x4e9c08;this[_0x4c3722(0xec)][_0x4c3722(0x9d)](),this[_0x4c3722(0xd4)](),this[_0x4c3722(0x10a)](_0x4c3722(0x10c),_0x4dcc7c);}}export class SourcesBalloonButtonView extends _0x2971f0{[_0x4e9c08(0xe4)];constructor(_0x871a26){const _0x3b5f64=_0x4e9c08;super(_0x871a26),this[_0x3b5f64(0xe8)]({'withText':!0x0,'role':_0x3b5f64(0x102)}),this[_0x3b5f64(0xe4)]=this[_0x3b5f64(0x95)](),this[_0x3b5f64(0xc6)]({'attributes':{'class':[go]}});}[_0x4e9c08(0xd0)](){const _0x1ddc0a=_0x4e9c08;super[_0x1ddc0a(0xd0)](),this[_0x1ddc0a(0x103)][_0x1ddc0a(0xcb)](this[_0x1ddc0a(0xe4)]);}[_0x4e9c08(0x95)](){const _0x54b3cb=_0x4e9c08,_0x158986=new _0xd63c0e();return _0x158986[_0x54b3cb(0xe5)]=_0x24ec6c,_0x158986[_0x54b3cb(0xc6)]({'attributes':{'class':go+_0x54b3cb(0xbb)}}),_0x158986;}}
23
+ function _0x5af7(_0x5572ce,_0x190d5d){const _0x5c018b=_0x5c01();return _0x5af7=function(_0x5af798,_0xc92ce7){_0x5af798=_0x5af798-0x1f2;let _0x236f65=_0x5c018b[_0x5af798];return _0x236f65;},_0x5af7(_0x5572ce,_0x190d5d);}const _0x5295ce=_0x5af7;(function(_0x433e86,_0x2adb5a){const _0x538d2f=_0x5af7,_0x1fc99c=_0x433e86();while(!![]){try{const _0x388719=parseInt(_0x538d2f(0x20e))/0x1+parseInt(_0x538d2f(0x23a))/0x2+-parseInt(_0x538d2f(0x26a))/0x3*(parseInt(_0x538d2f(0x259))/0x4)+-parseInt(_0x538d2f(0x222))/0x5+parseInt(_0x538d2f(0x21a))/0x6+-parseInt(_0x538d2f(0x207))/0x7+-parseInt(_0x538d2f(0x26c))/0x8*(-parseInt(_0x538d2f(0x22f))/0x9);if(_0x388719===_0x2adb5a)break;else _0x1fc99c['push'](_0x1fc99c['shift']());}catch(_0x462be5){_0x1fc99c['push'](_0x1fc99c['shift']());}}}(_0x5c01,0x69437));import{BalloonPanelView as _0xe68e74,ButtonView as _0x338a4f,clickOutsideHandler as _0x365b23,FileDialogButtonView as _0x4f054f,IconView as _0x2be7bd,View as _0x55c271}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3337bc,IconDocument as _0x41a09f,IconDocumentOutline as _0x279a9f,IconDropdownArrow as _0x93c803,IconLink as _0x30491c,IconPaperClip as _0x2d847b}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fc5d8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1611c8}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5d1362}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x37ce30}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x370ec7}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5295ce(0x27b),_0x5295ce(0x235),_0x5295ce(0x258),_0x5295ce(0x1f4),_0x5295ce(0x215),_0x5295ce(0x21f)];const bo=_0x5295ce(0x23e),To=_0x5295ce(0x24b),Ao=_0x5295ce(0x22c),ko=_0x5295ce(0x24c),Eo=_0x5295ce(0x21c),vo=_0x5295ce(0x263),go=_0x5295ce(0x1f5),Vo=_0x5295ce(0x265),fo=_0x5295ce(0x250),Io=_0x5295ce(0x24e),Po=_0x5295ce(0x272),Ro=_0x5295ce(0x27d),So=[_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x245)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x1f2)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x23f)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x261)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x267)],_0xe68e74[_0x5295ce(0x201)][_0x5295ce(0x20c)]];export class AIChatContextPanelView extends _0x55c271{[_0x5295ce(0x228)];[_0x5295ce(0x211)]=this[_0x5295ce(0x25a)]();[_0x5295ce(0x20d)]=this[_0x5295ce(0x25a)]();[_0x5295ce(0x1fd)];[_0x5295ce(0x209)];[_0x5295ce(0x210)];[_0x5295ce(0x1f9)];[_0x5295ce(0x27c)];[_0x5295ce(0x213)];[_0x5295ce(0x249)];constructor(_0x32f703,_0x2e657f){const _0x376a05=_0x5295ce;super(_0x32f703),this[_0x376a05(0x249)]=_0x2e657f,this[_0x376a05(0x211)]=this[_0x376a05(0x25a)](),this[_0x376a05(0x20d)]=this[_0x376a05(0x25a)](),this[_0x376a05(0x228)]=this[_0x376a05(0x20a)](_0x32f703),this[_0x376a05(0x209)]=this[_0x376a05(0x216)](_0x32f703),this[_0x376a05(0x210)]=this[_0x376a05(0x25b)](_0x32f703),this[_0x376a05(0x27c)]=this[_0x376a05(0x220)](_0x32f703,_0x2e657f);const _0x26d3dd={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x376a05(0x1fd)]=new _0x5d1362(_0x32f703,this[_0x376a05(0x211)],_0x26d3dd,this[_0x376a05(0x249)],this),this[_0x376a05(0x213)]={'buttonView':this[_0x376a05(0x228)],'balloonView':this[_0x376a05(0x209)],'hideMethod':this[_0x376a05(0x1f8)][_0x376a05(0x260)](this),'showMethod':this[_0x376a05(0x238)][_0x376a05(0x260)](this)},this[_0x376a05(0x224)](),this[_0x376a05(0x274)]();}[_0x5295ce(0x20f)](){const _0x52ecf5=_0x5295ce;super[_0x52ecf5(0x20f)](),this[_0x52ecf5(0x1f6)](),this[_0x52ecf5(0x1fd)][_0x52ecf5(0x278)](this[_0x52ecf5(0x254)]),this[_0x52ecf5(0x1fd)][_0x52ecf5(0x230)]();}[_0x5295ce(0x239)](){const _0x1e93a1=_0x5295ce;super[_0x1e93a1(0x239)](),this[_0x1e93a1(0x1fd)][_0x1e93a1(0x239)](),this[_0x1e93a1(0x27c)][_0x1e93a1(0x239)]();}[_0x5295ce(0x275)](_0x248aec,_0x20c157){const _0x46e363=_0x5295ce,_0x3c1376=this[_0x46e363(0x269)](_0x248aec,_0x46e363(0x257),!0x0,_0x20c157);this[_0x46e363(0x268)](_0x3c1376,this[_0x46e363(0x211)]),this[_0x46e363(0x1fd)][_0x46e363(0x230)]();}[_0x5295ce(0x215)](_0x3e4530){const _0x2d141a=_0x5295ce;this[_0x2d141a(0x27a)](_0x3e4530,this[_0x2d141a(0x211)]),this[_0x2d141a(0x27a)](_0x3e4530,this[_0x2d141a(0x1fd)][_0x2d141a(0x240)]),this[_0x2d141a(0x1fd)][_0x2d141a(0x230)]();}[_0x5295ce(0x262)](_0x3ed6f8,_0x4f9b0f){const _0x4b8e12=_0x5295ce;let _0x582df7=this[_0x4b8e12(0x211)][_0x4b8e12(0x27e)](_0x52062b=>_0x52062b['id']===_0x3ed6f8);_0x582df7||(_0x582df7=this[_0x4b8e12(0x1fd)][_0x4b8e12(0x240)][_0x4b8e12(0x27e)](_0x503487=>_0x503487['id']===_0x3ed6f8)),_0x582df7&&(_0x582df7[_0x4b8e12(0x22b)]=_0x4f9b0f);}[_0x5295ce(0x271)](_0x5940b4){const _0x3304a4=_0x5295ce;this[_0x3304a4(0x20d)][_0x3304a4(0x26b)]();for(const _0xbee25c of _0x5940b4){const _0x4e00ef=this[_0x3304a4(0x269)](_0xbee25c,_0x3304a4(0x23c),!0x1,!0x1);this[_0x3304a4(0x268)](_0x4e00ef,this[_0x3304a4(0x20d)]);}}[_0x5295ce(0x25e)](){const _0x239691=_0x5295ce;this[_0x239691(0x211)][_0x239691(0x26b)](),this[_0x239691(0x1fd)][_0x239691(0x26b)]();}[_0x5295ce(0x246)](){const _0x195f92=_0x5295ce;this[_0x195f92(0x20d)][_0x195f92(0x26b)]();}[_0x5295ce(0x255)](_0x5137ad,_0x3fd357,_0x2aa241){const _0x4887bd=_0x5295ce;this[_0x4887bd(0x27c)][_0x4887bd(0x255)](_0x5137ad,_0x3fd357,_0x2aa241);}[_0x5295ce(0x1f8)](){const _0x106749=_0x5295ce;this[_0x106749(0x24a)](!0x1);}[_0x5295ce(0x238)](){const _0x36f2be=_0x5295ce;this[_0x36f2be(0x24a)](!0x0);}[_0x5295ce(0x214)](){const _0x2078f9=_0x5295ce;this[_0x2078f9(0x210)][_0x2078f9(0x23b)](),this[_0x2078f9(0x228)][_0x2078f9(0x21e)]=!0x1,this[_0x2078f9(0x1f9)]&&this[_0x2078f9(0x1f9)][_0x2078f9(0x26b)]();}[_0x5295ce(0x1f3)](){const _0xf602cd=_0x5295ce;this[_0xf602cd(0x210)][_0xf602cd(0x227)](),this[_0xf602cd(0x228)][_0xf602cd(0x21e)]=!0x0;}[_0x5295ce(0x243)](_0x5bda21){const _0x5d0aa3=_0x5295ce;this[_0x5d0aa3(0x27c)][_0x5d0aa3(0x233)](_0x5bda21),this[_0x5d0aa3(0x228)][_0x5d0aa3(0x21e)]=!0x0;}[_0x5295ce(0x276)](_0x4a58c0,_0x52b726,_0x18d620,_0x5971c2){const _0x5293f4=_0x5295ce;this[_0x5293f4(0x27c)][_0x5293f4(0x276)](_0x4a58c0,_0x18d620,_0x5971c2);}[_0x5295ce(0x1fa)](_0x44e3a6){const _0x55b12c=_0x5295ce;this[_0x55b12c(0x27c)][_0x55b12c(0x1fa)](_0x44e3a6),this[_0x55b12c(0x228)][_0x55b12c(0x21e)]=!0x1;}[_0x5295ce(0x236)](_0x3aa2bd){const _0x2f8124=_0x5295ce;this[_0x2f8124(0x24f)](this[_0x2f8124(0x209)],this[_0x2f8124(0x205)],_0x3aa2bd),this[_0x2f8124(0x203)](_0x3aa2bd);}[_0x5295ce(0x203)](_0x27866d){const _0x53fc5a=_0x5295ce,_0x109460=!_0x27866d[_0x53fc5a(0x273)][_0x53fc5a(0x212)]&&_0x27866d[_0x53fc5a(0x273)][_0x53fc5a(0x244)],_0x3cc8f8=_0x27866d[_0x53fc5a(0x1ff)][_0x53fc5a(0x244)],_0x319965=_0x27866d[_0x53fc5a(0x277)][_0x53fc5a(0x244)];this[_0x53fc5a(0x228)][_0x53fc5a(0x26d)]=_0x109460||_0x3cc8f8||_0x319965;}[_0x5295ce(0x224)](){const _0xb483e1=_0x5295ce;this[_0xb483e1(0x231)]({'tag':_0xb483e1(0x226),'attributes':{'class':[bo,_0xb483e1(0x264)]},'children':[{'tag':_0xb483e1(0x226),'attributes':{'class':To},'children':this[_0xb483e1(0x211)]}]});}[_0x5295ce(0x274)](){const _0x55c4c0=_0x5295ce;this[_0x55c4c0(0x228)]['on'](_0x55c4c0(0x279),()=>{const _0x3f48f5=_0x55c4c0;this[_0x3f48f5(0x248)]();});}[_0x5295ce(0x20a)](_0x40095b){const _0x11fe1b=_0x5295ce,_0x112e94=new _0x338a4f(_0x40095b);return _0x112e94[_0x11fe1b(0x266)]({'label':_0x37ce30(_0x40095b,_0x11fe1b(0x229)),'class':Vo+'\x20'+ko,'icon':_0x2d847b,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x112e94;}[_0x5295ce(0x216)](_0x57f09c){const _0x60a526=_0x5295ce;return this[_0x60a526(0x23d)](_0x57f09c,Ao);}[_0x5295ce(0x25b)](_0x413e1e){const _0x383dc8=_0x5295ce,_0xe3fd02=this[_0x383dc8(0x23d)](_0x413e1e,Eo);return this[_0x383dc8(0x234)](_0xe3fd02,_0x413e1e),_0xe3fd02;}[_0x5295ce(0x220)](_0x5cc4f7,_0x3e4827){const _0x2fe1e4=_0x5295ce;return new _0x370ec7(_0x5cc4f7,_0x3e4827,{'onBackToContext':()=>{const _0x1ab4c7=_0x5af7;this[_0x1ab4c7(0x238)](),this[_0x1ab4c7(0x209)][_0x1ab4c7(0x225)]({'target':this[_0x1ab4c7(0x228)][_0x1ab4c7(0x254)],'limiter':this[_0x1ab4c7(0x20b)](),'positions':So});},'onResourceSelected':(_0x373230,_0x34a1cb)=>{const _0x164ffa=_0x5af7;this[_0x164ffa(0x26f)](_0x164ffa(0x1f4),{'source':_0x373230,'resource':_0x34a1cb});},'onLoadSourceResources':_0xe0c609=>{const _0x3a60a1=_0x5af7;this[_0x3a60a1(0x26f)](_0x3a60a1(0x21f),_0xe0c609);},'onBalloonClosed':()=>{const _0x287f4f=_0x5af7;this[_0x287f4f(0x228)][_0x287f4f(0x21e)]=!0x1;},'getLimiterElement':()=>this[_0x2fe1e4(0x20b)](),'getTargetElement':()=>this[_0x2fe1e4(0x228)][_0x2fe1e4(0x254)]});}[_0x5295ce(0x20b)](){const _0x7eb720=_0x5295ce;return this[_0x7eb720(0x254)]?.[_0x7eb720(0x208)]('.'+Ro)||document[_0x7eb720(0x22a)];}[_0x5295ce(0x23d)](_0x10b6c8,_0x2b1559){const _0x448e22=_0x5295ce,_0x2b9631=new _0xe68e74(_0x10b6c8);return _0x2b9631[_0x448e22(0x241)]({'attributes':{'class':_0x2b1559}}),this[_0x448e22(0x249)][_0x448e22(0x200)](_0x2b9631),_0x2b9631;}[_0x5295ce(0x24f)](_0x3806d,_0x139dbf,_0x1302bd){const _0x524710=_0x5295ce;if(_0x3806d[_0x524710(0x232)][_0x524710(0x26b)](),!_0x1302bd[_0x524710(0x273)][_0x524710(0x212)]&&_0x1302bd[_0x524710(0x273)][_0x524710(0x244)]){const _0x58664a=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x37ce30(_0x139dbf,_0x524710(0x24d)),'icon':_0x41a09f});_0x58664a['on'](_0x524710(0x279),()=>{const _0x2f33b3=_0x524710;this[_0x2f33b3(0x26f)](_0x2f33b3(0x27b)),this[_0x2f33b3(0x1f8)]();}),_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x58664a);}if(_0x1302bd[_0x524710(0x1ff)][_0x524710(0x244)]){const _0x5c08a2=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x37ce30(_0x139dbf,_0x524710(0x1fc)),'icon':_0x30491c});_0x5c08a2['on'](_0x524710(0x279),()=>{const _0x3610cd=_0x524710;this[_0x3610cd(0x1f8)](),this[_0x3610cd(0x1f3)](),this[_0x3610cd(0x210)][_0x3610cd(0x225)]({'target':this[_0x3610cd(0x228)][_0x3610cd(0x254)],'limiter':this[_0x3610cd(0x20b)](),'positions':So}),this[_0x3610cd(0x1f9)][_0x3610cd(0x237)]();}),_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x5c08a2);}if(_0x1302bd[_0x524710(0x277)][_0x524710(0x244)]){const _0x8ce114=new _0x4f054f(_0x139dbf);_0x8ce114[_0x524710(0x266)]({'label':_0x37ce30(_0x139dbf,_0x524710(0x202)),'icon':_0x3337bc,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x8ce114['on'](_0x524710(0x22d),(_0x3f4616,_0x30d15c)=>{const _0x232255=_0x524710;this[_0x232255(0x26f)](_0x232255(0x235),_0x30d15c),this[_0x232255(0x1f8)]();}),_0x8ce114[_0x524710(0x25f)]=!0x0,_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x8ce114);}for(const _0x23cfee of _0x1302bd[_0x524710(0x253)]){const _0x2ece6a=this[_0x524710(0x21b)](_0x139dbf,{'label':_0x23cfee[_0x524710(0x251)],'icon':_0x23cfee[_0x524710(0x270)]||_0x279a9f,'type':_0x524710(0x252)});_0x3806d[_0x524710(0x232)][_0x524710(0x200)](_0x2ece6a),_0x2ece6a['on'](_0x524710(0x279),()=>{const _0x372a65=_0x524710;this[_0x372a65(0x1f8)](),this[_0x372a65(0x243)](_0x23cfee);});}}[_0x5295ce(0x234)](_0x34bed7,_0x120945){const _0x37dc4f=_0x5295ce;this[_0x37dc4f(0x1f9)]=new _0x1611c8(_0x120945),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x223),(_0xe6677d,_0x2f27f8)=>{const _0x25f985=_0x37dc4f;this[_0x25f985(0x22e)](_0x2f27f8);}),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x247),()=>{const _0x56ceb1=_0x37dc4f;this[_0x56ceb1(0x214)](),this[_0x56ceb1(0x238)](),this[_0x56ceb1(0x209)][_0x56ceb1(0x225)]({'target':this[_0x56ceb1(0x228)][_0x56ceb1(0x254)],'limiter':this[_0x56ceb1(0x20b)](),'positions':So});}),this[_0x37dc4f(0x1f9)]['on'](_0x37dc4f(0x206),()=>{const _0x1c46a7=_0x37dc4f;this[_0x1c46a7(0x210)][_0x1c46a7(0x204)]&&this[_0x1c46a7(0x210)][_0x1c46a7(0x225)]({'target':this[_0x1c46a7(0x228)][_0x1c46a7(0x254)],'limiter':this[_0x1c46a7(0x20b)](),'positions':So});}),_0x34bed7[_0x37dc4f(0x232)][_0x37dc4f(0x200)](this[_0x37dc4f(0x1f9)]);}[_0x5295ce(0x21b)](_0x1527d7,_0x3e016f){const _0x460f9b=_0x5295ce,_0x14de27=_0x460f9b(0x252)===_0x3e016f[_0x460f9b(0x221)]?new SourcesBalloonButtonView(_0x1527d7):new _0x338a4f(_0x1527d7);return _0x14de27[_0x460f9b(0x266)]({'label':_0x3e016f[_0x460f9b(0x251)],'icon':_0x3e016f[_0x460f9b(0x270)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x14de27;}[_0x5295ce(0x1f6)](){const _0xab15c4=_0x5295ce;this[_0xab15c4(0x218)](),this[_0xab15c4(0x27f)]();}[_0x5295ce(0x27f)](){const _0x59bb6a=_0x5295ce;_0x365b23({'emitter':this[_0x59bb6a(0x210)],'contextElements':[this[_0x59bb6a(0x210)][_0x59bb6a(0x254)]],'callback':()=>{const _0xbe37e=_0x59bb6a;this[_0xbe37e(0x214)]();},'activator':()=>this[_0x59bb6a(0x210)][_0x59bb6a(0x204)]});}[_0x5295ce(0x24a)](_0x1eaace){const _0xa2d607=_0x5295ce,_0x61cd05=this[_0xa2d607(0x213)];_0x61cd05[_0xa2d607(0x242)][_0xa2d607(0x21e)]=_0x1eaace,_0x1eaace?_0x61cd05[_0xa2d607(0x219)][_0xa2d607(0x227)]():_0x61cd05[_0xa2d607(0x219)][_0xa2d607(0x23b)]();}[_0x5295ce(0x218)](){const _0x47f8b6=_0x5295ce,{balloonView:_0x5f37e2,buttonView:_0x24e323,hideMethod:_0x3223e1}=this[_0x47f8b6(0x213)];_0x365b23({'emitter':_0x5f37e2,'contextElements':[_0x5f37e2[_0x47f8b6(0x254)],_0x24e323[_0x47f8b6(0x254)]],'callback':()=>{_0x3223e1();},'activator':()=>_0x24e323[_0x47f8b6(0x21e)]&&!this[_0x47f8b6(0x210)][_0x47f8b6(0x204)]&&!this[_0x47f8b6(0x27c)][_0x47f8b6(0x1fe)]()});}[_0x5295ce(0x269)](_0x338e22,_0x5359a0,_0x559eb1=!0x1,_0x3bd3be=!0x1){const _0x4c3659=_0x5295ce,_0x1792ca=_0x4c3659(0x23c)===_0x5359a0||!0x0===_0x338e22[_0x4c3659(0x25c)],_0xf25d74=new _0x2fc5d8(this[_0x4c3659(0x205)],_0x338e22,_0x1792ca,_0x559eb1,_0x3bd3be);return _0x1792ca||_0xf25d74['on'](_0x4c3659(0x21d),()=>{const _0xd2413a=_0x4c3659;this[_0xd2413a(0x26f)](_0xd2413a(0x215),_0xf25d74['id']);}),_0xf25d74;}[_0x5295ce(0x268)](_0x276ca6,_0xe6cc0e){const _0x530b77=_0x5295ce;_0xe6cc0e[_0x530b77(0x200)](_0x276ca6,0x0);}[_0x5295ce(0x27a)](_0x10338c,_0x1fba37){const _0x2349d5=_0x5295ce,_0x5ed8f6=_0x1fba37[_0x2349d5(0x27e)](_0x2927d0=>_0x2927d0['id']===_0x10338c);_0x5ed8f6&&_0x1fba37[_0x2349d5(0x1fb)](_0x5ed8f6);}[_0x5295ce(0x248)](){const _0x1ce86c=_0x5295ce;this[_0x1ce86c(0x228)][_0x1ce86c(0x21e)]?this[_0x1ce86c(0x1f8)]():(this[_0x1ce86c(0x238)](),this[_0x1ce86c(0x209)][_0x1ce86c(0x225)]({'target':this[_0x1ce86c(0x228)][_0x1ce86c(0x254)],'limiter':this[_0x1ce86c(0x20b)](),'positions':So}));}[_0x5295ce(0x22e)](_0x300ab3){const _0x187b61=_0x5295ce;this[_0x187b61(0x1f9)][_0x187b61(0x26b)](),this[_0x187b61(0x214)](),this[_0x187b61(0x26f)](_0x187b61(0x258),_0x300ab3);}}export class SourcesBalloonButtonView extends _0x338a4f{[_0x5295ce(0x26e)];constructor(_0x391c0b){const _0x2dd6df=_0x5295ce;super(_0x391c0b),this[_0x2dd6df(0x266)]({'withText':!0x0,'role':_0x2dd6df(0x1f7)}),this[_0x2dd6df(0x26e)]=this[_0x2dd6df(0x217)](),this[_0x2dd6df(0x241)]({'attributes':{'class':[go]}});}[_0x5295ce(0x20f)](){const _0x2bab17=_0x5295ce;super[_0x2bab17(0x20f)](),this[_0x2bab17(0x256)][_0x2bab17(0x200)](this[_0x2bab17(0x26e)]);}[_0x5295ce(0x217)](){const _0x6df028=_0x5295ce,_0x36713b=new _0x2be7bd();return _0x36713b[_0x6df028(0x232)]=_0x93c803,_0x36713b[_0x6df028(0x241)]({'attributes':{'class':go+_0x6df028(0x25d)}}),_0x36713b;}}function _0x5c01(){const _0x3b2863=['urls','add','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','_setAddContextButtonEnabled','isVisible','locale','refreshBalloon','802319zcOnnv','closest','_addContextBalloonPanelView','_createAddContextButtonView','_getLimiterElement','southArrowNorthEast','_conversationContextsChips','663926UxQCIO','render','_urlBalloonPanelView','_currentContextsChips','isHidden','_addContextBalloonConfig','hideUrlBalloonPanel','removeContextItem','_createAddContextBalloonPanelView','_createArrowView','_setupAddContextBalloonClickOutsideHandler','balloonView','3571116JjNyqr','_createBalloonButton','ck-ai-chat-context-controls__url-balloon-panel','removeContextItemChip','isOn','loadSourceResources','_createResourcesBalloonView','type','3830690aatwAQ','submitUrl','_setupTemplate','pin','div','show','addContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','body','isLoading','ck-ai-chat-context-controls__add-context-balloon-panel','done','_handleUrlSubmit','1962wpYxQV','reorganizeChips','setTemplate','content','showSourceResourcesBalloon','_addUrlContent','addFileToContext','setAddContextOptions','focus','showAddContextBalloonPanel','destroy','1200736AVFbWE','hide','conversation','_createBaseBalloonPanel','ck-ai-chat-context-controls','northArrowSouthEast','overflowChips','extendTemplate','buttonView','_showSourceResourcesBalloon','enabled','northArrowSouthWest','clearConversationContextItems','cancel','_handleAddContextButtonClick','bodyCollection','_toggleAddContextBalloon','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','ck-ai-chat-controls_context_show-more-button','_setBalloonPanelContent','ck-ai-chat-context-chips-wrapper-balloon','label','source','sources','element','updateResourceState','children','current','addUrlToContext','2221656LajaFZ','createCollection','_createUrlBalloonPanelView','isReadOnly','__arrow','clearCurrentContextItems','tooltip','bind','southArrowNorthWest','setContextItemLoading','ck-ai-chat-context-controls__balloon-button','ck-reset_all-excluded','ck-ai-chat-controls-button','set','southArrowNorth','_addContextToCollection','_createContextButton','3lywUrI','clear','288RWsToM','isEnabled','arrowView','fire','icon','setConversationContext','ck-ai-chat-context-controls__show-more-balloon-panel','document','_bindEventHandlers','addContextItem','populateSourceResourceBalloon','files','setContainerElement','execute','_removeContextFromCollection','addDocumentToContext','_resourcesBalloonView','ck-ai-chat','find','_setupUrlBalloonClickOutsideHandler','northArrowSouth','showUrlBalloonPanel','addResourceToContext','ck-ai-chat-context-controls__balloon-button-source','_setupAllBalloonClickOutsideHandlers','menuitem','hideAddContextBalloonPanel','_urlInputView','closeSourceResourceBalloon','remove','AI_CHAT_CONTEXT_URL_LABEL','_overflowManager','isAnyResourceBalloonVisible'];_0x5c01=function(){return _0x3b2863;};return _0x5c01();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c4574=_0x3783;(function(_0x4240ac,_0x377419){const _0x133ef5=_0x3783,_0x54962d=_0x4240ac();while(!![]){try{const _0x5142db=parseInt(_0x133ef5(0xbd))/0x1*(parseInt(_0x133ef5(0xbb))/0x2)+parseInt(_0x133ef5(0xcc))/0x3+parseInt(_0x133ef5(0xc5))/0x4*(parseInt(_0x133ef5(0xc7))/0x5)+parseInt(_0x133ef5(0xb9))/0x6*(parseInt(_0x133ef5(0xca))/0x7)+-parseInt(_0x133ef5(0xbc))/0x8*(parseInt(_0x133ef5(0xc9))/0x9)+-parseInt(_0x133ef5(0xc1))/0xa+parseInt(_0x133ef5(0xd0))/0xb*(-parseInt(_0x133ef5(0xd3))/0xc);if(_0x5142db===_0x377419)break;else _0x54962d['push'](_0x54962d['shift']());}catch(_0x4fce28){_0x54962d['push'](_0x54962d['shift']());}}}(_0x32b3,0x1b652));import{ButtonView as _0x35867c,View as _0x5e2836}from'ckeditor5/src/ui.js';import{IconStop as _0x2074d3}from'ckeditor5/src/icons.js';function _0x3783(_0x56bfaa,_0x5ef9d7){const _0x32b325=_0x32b3();return _0x3783=function(_0x378321,_0x553666){_0x378321=_0x378321-0xb8;let _0x8aaaf8=_0x32b325[_0x378321];return _0x8aaaf8;},_0x3783(_0x56bfaa,_0x5ef9d7);}function _0x32b3(){const _0x33e181=['ck-ai-chat-controls-loader-wrapper','665799WsxsPm','locale','_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','2227654cIbXYQ','div','ck-ai-chat-controls-loader-icon','12bkiUoD','ai-chat-controls-loader__cancel-button','abortPromptStream','set','fire','4116cmGavA','_createLoaderView','2pvZkgM','257768KjJkiv','79479rmQYdd','AI_CHAT_IS_WRITING','ck-reset_all','_createCancelButtonView','832870PocAFx','AI_CHAT_STOP_GENERATING','setTemplate','execute','364108KdeWeI','_loaderView','5BKDJWL','ck-ai-chat-controls-loader','36ZQFIBT','1372BtmUlW'];_0x32b3=function(){return _0x33e181;};return _0x32b3();}import{getTranslation as _0x444d97}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5e2836{[_0x1c4574(0xce)];[_0x1c4574(0xc6)];constructor(_0x24d5ef){const _0x115f8e=_0x1c4574;super(_0x24d5ef),this[_0x115f8e(0xce)]=this[_0x115f8e(0xc0)](),this[_0x115f8e(0xc6)]=this[_0x115f8e(0xba)](),this[_0x115f8e(0xc3)]({'tag':_0x115f8e(0xd1),'attributes':{'class':['ck',_0x115f8e(0xcb),_0x115f8e(0xbf)]},'children':[this[_0x115f8e(0xc6)],this[_0x115f8e(0xce)]]});}[_0x1c4574(0xc0)](){const _0x3c1265=_0x1c4574,_0x3cfd6e=new _0x35867c(this[_0x3c1265(0xcd)]);return _0x3cfd6e[_0x3c1265(0xd6)]({'label':_0x444d97(this[_0x3c1265(0xcd)],_0x3c1265(0xc2)),'withText':!0x0,'class':_0x3c1265(0xd4),'icon':_0x2074d3}),_0x3cfd6e['on'](_0x3c1265(0xc4),()=>{const _0x4e1a14=_0x3c1265;this[_0x4e1a14(0xb8)](_0x4e1a14(0xd5));}),_0x3cfd6e;}[_0x1c4574(0xba)](){const _0x350e93=_0x1c4574,_0x91c58e=new _0x5e2836(this[_0x350e93(0xcd)]);return _0x91c58e[_0x350e93(0xc3)]({'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xc8)]},'children':[{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xd2)]},'children':[{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}},{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}},{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}}]},{'text':_0x444d97(this[_0x350e93(0xcd)],_0x350e93(0xbe))}]}),_0x91c58e;}}
23
+ const _0xab7b0f=_0x31e7;(function(_0x3d70de,_0x1f897f){const _0x3f2884=_0x31e7,_0x5a32b6=_0x3d70de();while(!![]){try{const _0x34fd73=parseInt(_0x3f2884(0x175))/0x1*(-parseInt(_0x3f2884(0x17b))/0x2)+parseInt(_0x3f2884(0x165))/0x3*(-parseInt(_0x3f2884(0x177))/0x4)+parseInt(_0x3f2884(0x15f))/0x5*(-parseInt(_0x3f2884(0x15e))/0x6)+-parseInt(_0x3f2884(0x166))/0x7*(parseInt(_0x3f2884(0x160))/0x8)+-parseInt(_0x3f2884(0x16d))/0x9*(parseInt(_0x3f2884(0x171))/0xa)+parseInt(_0x3f2884(0x167))/0xb+parseInt(_0x3f2884(0x164))/0xc*(parseInt(_0x3f2884(0x16c))/0xd);if(_0x34fd73===_0x1f897f)break;else _0x5a32b6['push'](_0x5a32b6['shift']());}catch(_0x153771){_0x5a32b6['push'](_0x5a32b6['shift']());}}}(_0x1a84,0x4c9cb));function _0x31e7(_0x220fb4,_0x1a9ea0){const _0x1a849b=_0x1a84();return _0x31e7=function(_0x31e78a,_0x5ae45e){_0x31e78a=_0x31e78a-0x15d;let _0x385493=_0x1a849b[_0x31e78a];return _0x385493;},_0x31e7(_0x220fb4,_0x1a9ea0);}import{ButtonView as _0x11571d,View as _0x41b449}from'ckeditor5/src/ui.js';import{IconStop as _0x180439}from'ckeditor5/src/icons.js';import{getTranslation as _0x412048}from'../../../aicore/utils/common-translations.js';function _0x1a84(){const _0x12ca91=['ai-chat-controls-loader__cancel-button','_cancelButtonView','24ZOkSyi','set','execute','24oWWaPj','26640VHKnhL','104kEDqgs','abortPromptStream','fire','AI_CHAT_STOP_GENERATING','383772aSxZJn','449487EWFvqp','240261MVvSqE','4251522VXYmYx','setTemplate','ck-reset_all','div','ck-ai-chat-controls-loader','533LQoDTP','18WVVNkc','ck-ai-chat-controls-loader-icon-dot','_loaderView','locale','1285120ACjRIX','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon','AI_CHAT_IS_WRITING','42463gDXHzB','_createLoaderView','4jBtCyN','_createCancelButtonView'];_0x1a84=function(){return _0x12ca91;};return _0x1a84();}export class AIChatControlsLoaderView extends _0x41b449{[_0xab7b0f(0x17a)];[_0xab7b0f(0x16f)];constructor(_0x40a456){const _0x2a46d9=_0xab7b0f;super(_0x40a456),this[_0x2a46d9(0x17a)]=this[_0x2a46d9(0x178)](),this[_0x2a46d9(0x16f)]=this[_0x2a46d9(0x176)](),this[_0x2a46d9(0x168)]({'tag':_0x2a46d9(0x16a),'attributes':{'class':['ck',_0x2a46d9(0x172),_0x2a46d9(0x169)]},'children':[this[_0x2a46d9(0x16f)],this[_0x2a46d9(0x17a)]]});}[_0xab7b0f(0x178)](){const _0x5459d3=_0xab7b0f,_0x365c66=new _0x11571d(this[_0x5459d3(0x170)]);return _0x365c66[_0x5459d3(0x17c)]({'label':_0x412048(this[_0x5459d3(0x170)],_0x5459d3(0x163)),'withText':!0x0,'class':_0x5459d3(0x179),'icon':_0x180439}),_0x365c66['on'](_0x5459d3(0x15d),()=>{const _0x565ede=_0x5459d3;this[_0x565ede(0x162)](_0x565ede(0x161));}),_0x365c66;}[_0xab7b0f(0x176)](){const _0x4f4743=_0xab7b0f,_0x5842b5=new _0x41b449(this[_0x4f4743(0x170)]);return _0x5842b5[_0x4f4743(0x168)]({'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16b)]},'children':[{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x173)]},'children':[{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}},{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}},{'tag':_0x4f4743(0x16a),'attributes':{'class':[_0x4f4743(0x16e)]}}]},{'text':_0x412048(this[_0x4f4743(0x170)],_0x4f4743(0x174))}]}),_0x5842b5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfbf6aa=_0x5227;(function(_0x2f7ca1,_0x47cdba){const _0x49410d=_0x5227,_0xd8f9e8=_0x2f7ca1();while(!![]){try{const _0x48b819=parseInt(_0x49410d(0x153))/0x1*(-parseInt(_0x49410d(0x13c))/0x2)+parseInt(_0x49410d(0x145))/0x3+parseInt(_0x49410d(0x163))/0x4*(-parseInt(_0x49410d(0x196))/0x5)+-parseInt(_0x49410d(0x177))/0x6*(parseInt(_0x49410d(0x18a))/0x7)+parseInt(_0x49410d(0x190))/0x8+-parseInt(_0x49410d(0x152))/0x9+parseInt(_0x49410d(0x157))/0xa;if(_0x48b819===_0x47cdba)break;else _0xd8f9e8['push'](_0xd8f9e8['shift']());}catch(_0x3492e8){_0xd8f9e8['push'](_0xd8f9e8['shift']());}}}(_0x33a0,0x988fa));import{Collection as _0x531ddd}from'ckeditor5/src/utils.js';function _0x33a0(){const _0x5e03fa=['tooltip','_webSearchButton','withText','webSearchActive','name','model','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection__item-capabilities','_createReasoningButton','selectModel','toggleWebSearch','_createWebSearchButton','8131179PRIRhk','setReasoning','length','activeModelId','menuitemradio','source','1121016HkYcpX','add','setWebSearch','ck-button__label','clear','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','115kQpuyE','button','agent','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_SEARCH_WEB','bind','setTemplate','setModelList','22RWQmxI','content','modelSelectorVisible','reasoning','_commandsButton','toLowerCase','AI_CHAT_ENABLE_REASONING','webSearch','ck-ai-chat__prompt-capabilities','1974552HSruLf','isVisible','extendTemplate','AI_CHAT_DISABLE_REASONING','_modelNameView','addMany','capabilities','_modelSelectionDropdown','toggleReasoning','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-name','_createModelSelectionDropdown','modelSelectorEnabled','9443556UWAFji','44692FepBup','style','AI_CHAT_CAPABILITIES_YES','bindTemplate','36725630msBpEM','AI_CHAT_COMMANDS','label','span','reasoningActive','log','ck-ai-chat-controls__model-selection__item-name','_modelSelectionDropdownItems','locale','createCollection','description','_createModelNameView','198868cidnGP','disableModelSelector','_createCommandsButton','listenTo','enableModelSelector','buttonView','_reasoningButton','AI_CHAT_CAPABILITIES_NO','ck-hidden','activeModelName','set','Commands\x20are\x20not\x20implemented\x20yet.','fire','ck-ai-chat-controls-button--commands','enabled','ck-ai-chat-controls__model-selection','execute','div','isEnabled','AI_CHAT_REASONING','6kmfLFT','_getCapabilityParts','setModel','startsWith','isOn','text','ck-ai-chat-controls-button'];_0x33a0=function(){return _0x5e03fa;};return _0x33a0();}import{IconAI as _0x5b1e93,IconBulb as _0x114f11,IconWeb as _0x2c8924}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x5b6a71,ButtonLabelView as _0x3a5e5f,ButtonView as _0x197670,createDropdown as _0x1382f6,IconView as _0x5bbedc,UIModel as _0x1f7318,View as _0x1fac1c}from'ckeditor5/src/ui.js';import{getTranslation as _0x369d55}from'../../../aicore/utils/common-translations.js';const Ho=_0xfbf6aa(0x144),Vo=_0xfbf6aa(0x17d),Mo=_0xfbf6aa(0x170),Lo=_0xfbf6aa(0x172),Do=_0xfbf6aa(0x15d),Wo=_0xfbf6aa(0x19a),yo=_0xfbf6aa(0x185),Go='n';export class AIChatPromptCapabilitiesView extends _0x1fac1c{[_0xfbf6aa(0x17f)];[_0xfbf6aa(0x169)];[_0xfbf6aa(0x140)];[_0xfbf6aa(0x14c)];[_0xfbf6aa(0x15e)];[_0xfbf6aa(0x149)];constructor(_0xbd2136){const _0x42b809=_0xfbf6aa;super(_0xbd2136),this[_0x42b809(0x16d)](_0x42b809(0x181),!0x1),this[_0x42b809(0x16d)](_0x42b809(0x15b),!0x1),this[_0x42b809(0x16d)](_0x42b809(0x13e),!0x0),this[_0x42b809(0x16d)](_0x42b809(0x151),!0x0),this[_0x42b809(0x16d)](_0x42b809(0x18d),''),this[_0x42b809(0x16d)](_0x42b809(0x16c),''),this[_0x42b809(0x14c)]=this[_0x42b809(0x150)](),this[_0x42b809(0x149)]=this[_0x42b809(0x162)](),this[_0x42b809(0x17f)]=this[_0x42b809(0x189)](),this[_0x42b809(0x169)]=this[_0x42b809(0x186)](),this[_0x42b809(0x140)]=this[_0x42b809(0x165)](),this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x19c)](_0x42b809(0x146))['to'](this,_0x42b809(0x13e),_0x5cf74d=>_0x5cf74d),this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x151),_0x532312=>_0x532312?this[_0x42b809(0x14c)][_0x42b809(0x168)][_0x42b809(0x159)]:_0x369d55(this[_0x42b809(0x15f)],_0x42b809(0x199))),this[_0x42b809(0x14c)][_0x42b809(0x19c)](_0x42b809(0x175))['to'](this,_0x42b809(0x151),_0x1ede30=>_0x1ede30),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x17b))['to'](this,_0x42b809(0x181),_0xc9f8c5=>_0xc9f8c5),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x180))['to'](this,_0x42b809(0x13e),_0x400526=>!_0x400526),this[_0x42b809(0x17f)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x181),_0x344100=>_0x369d55(this[_0x42b809(0x15f)],_0x344100?_0x42b809(0x14e):_0x42b809(0x184))),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x17b))['to'](this,_0x42b809(0x15b),_0x4dd906=>_0x4dd906),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x180))['to'](this,_0x42b809(0x13e),_0x4bda6f=>!_0x4bda6f),this[_0x42b809(0x169)][_0x42b809(0x19c)](_0x42b809(0x17e))['to'](this,_0x42b809(0x15b),_0x174c10=>_0x369d55(this[_0x42b809(0x15f)],_0x174c10?_0x42b809(0x148):_0x42b809(0x142))),this[_0x42b809(0x19d)]({'tag':_0x42b809(0x174),'attributes':{'class':[Ho]},'children':[this[_0x42b809(0x14c)],this[_0x42b809(0x149)],this[_0x42b809(0x17f)],this[_0x42b809(0x169)],this[_0x42b809(0x140)]]}),this[_0x42b809(0x15e)]=new _0x531ddd(),_0x5b6a71(this[_0x42b809(0x14c)],this[_0x42b809(0x15e)]);}[_0xfbf6aa(0x13b)](_0x1fe1d1,_0x4d9962){const _0x122984=_0xfbf6aa;if(this[_0x122984(0x16d)](_0x122984(0x13e),!(_0x4d9962&&_0x1fe1d1[_0x122984(0x18c)]<=0x1)),this[_0x122984(0x15e)][_0x122984(0x194)](),_0x1fe1d1?.[_0x122984(0x18c)])for(const _0x502d31 of _0x1fe1d1){const _0x45378a=new _0x1f7318({'label':_0x502d31[_0x122984(0x182)],'withText':!0x0,'role':_0x122984(0x18e),'id':_0x502d31['id'],'model':_0x502d31});_0x45378a[_0x122984(0x19c)](_0x122984(0x17b))['to'](this,_0x122984(0x18d),_0x36fd5a=>_0x36fd5a===_0x502d31['id']),this[_0x122984(0x15e)][_0x122984(0x191)]({'type':_0x122984(0x197),'model':_0x45378a,'labelView':new js(this[_0x122984(0x15f)],_0x502d31)});}}[_0xfbf6aa(0x192)](_0x2f862d){const _0x103bda=_0xfbf6aa;this[_0x103bda(0x16d)](_0x103bda(0x181),_0x2f862d);}[_0xfbf6aa(0x18b)](_0x1c863e){const _0x43cf42=_0xfbf6aa;this[_0x43cf42(0x16d)](_0x43cf42(0x15b),_0x1c863e);}[_0xfbf6aa(0x179)](_0x9d104c){const _0x29b6f0=_0xfbf6aa;if(!_0x9d104c)return;this[_0x29b6f0(0x18d)]=_0x9d104c['id'],this[_0x29b6f0(0x16c)]=_0x9d104c[_0x29b6f0(0x182)]||_0x9d104c['id'],this[_0x29b6f0(0x14c)][_0x29b6f0(0x168)][_0x29b6f0(0x16d)](_0x29b6f0(0x159),_0x9d104c[_0x29b6f0(0x182)]),this[_0x29b6f0(0x14c)][_0x29b6f0(0x168)][_0x29b6f0(0x16d)](_0x29b6f0(0x17e),_0x9d104c[_0x29b6f0(0x182)]);const _0x3ad2bb=_0x9d104c[_0x29b6f0(0x14b)][_0x29b6f0(0x143)]?.[_0x29b6f0(0x171)]??!0x1;this[_0x29b6f0(0x16d)](_0x29b6f0(0x181),!0x1),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x17b),!0x1),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x175),_0x3ad2bb),this[_0x29b6f0(0x17f)][_0x29b6f0(0x16d)](_0x29b6f0(0x146),_0x3ad2bb);const _0x55594b=_0x9d104c[_0x29b6f0(0x14b)][_0x29b6f0(0x13f)]?.[_0x29b6f0(0x171)]??!0x1;this[_0x29b6f0(0x16d)](_0x29b6f0(0x15b),!0x1),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x17b),!0x1),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x175),_0x55594b),this[_0x29b6f0(0x169)][_0x29b6f0(0x16d)](_0x29b6f0(0x146),_0x55594b);}[_0xfbf6aa(0x167)](){const _0x5dacd7=_0xfbf6aa;this[_0x5dacd7(0x16d)](_0x5dacd7(0x151),!0x0),this[_0x5dacd7(0x16d)](_0x5dacd7(0x13e),!0x0);}[_0xfbf6aa(0x164)](_0x56b4bc){const _0x14e87c=_0xfbf6aa;this[_0x14e87c(0x16d)](_0x14e87c(0x151),!0x1),_0x56b4bc&&this[_0x14e87c(0x16d)](_0x14e87c(0x13e),!0x1);}[_0xfbf6aa(0x189)](){const _0x43b794=_0xfbf6aa,_0x456bec=new _0x197670();return _0x456bec[_0x43b794(0x16d)]({'label':_0x369d55(this[_0x43b794(0x15f)],_0x43b794(0x19b)),'icon':_0x2c8924,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x456bec['on'](_0x43b794(0x173),()=>{const _0x47242a=_0x43b794;this[_0x47242a(0x16f)](_0x47242a(0x188));}),_0x456bec;}[_0xfbf6aa(0x186)](){const _0x2c0393=_0xfbf6aa,_0x5d05a1=new _0x197670();return _0x5d05a1[_0x2c0393(0x16d)]({'label':_0x369d55(this[_0x2c0393(0x15f)],_0x2c0393(0x176)),'icon':_0x114f11,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x5d05a1['on'](_0x2c0393(0x173),()=>{const _0x37646f=_0x2c0393;this[_0x37646f(0x16f)](_0x37646f(0x14d));}),_0x5d05a1;}[_0xfbf6aa(0x165)](){const _0x22d181=_0xfbf6aa,_0x526bc4=new _0x197670();return _0x526bc4[_0x22d181(0x16d)]({'label':_0x369d55(this[_0x22d181(0x15f)],_0x22d181(0x158)),'icon':_0x5b1e93,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x369d55(this[_0x22d181(0x15f)],_0x22d181(0x158)),'tooltipPosition':Go}),_0x526bc4[_0x22d181(0x147)]({'attributes':{'class':[Mo]}}),_0x526bc4['on'](_0x22d181(0x173),()=>{const _0x35cce2=_0x22d181;console[_0x35cce2(0x15c)](_0x35cce2(0x16e)),alert(_0x35cce2(0x16e));}),_0x526bc4;}[_0xfbf6aa(0x150)](){const _0x432fe1=_0xfbf6aa,_0x28a096=_0x1382f6(this[_0x432fe1(0x15f)]);return _0x28a096[_0x432fe1(0x16d)]({'panelPosition':'ne','class':[Lo]}),_0x28a096[_0x432fe1(0x168)][_0x432fe1(0x16d)]({'label':_0x369d55(this[_0x432fe1(0x15f)],_0x432fe1(0x195)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x432fe1(0x166)](_0x28a096,_0x432fe1(0x173),_0x6a003d=>{const _0x1788a0=_0x432fe1;this[_0x1788a0(0x16f)](_0x1788a0(0x187),_0x6a003d[_0x1788a0(0x18f)][_0x1788a0(0x183)]);}),_0x28a096;}[_0xfbf6aa(0x162)](){const _0xa465aa=_0xfbf6aa,_0x253696=new jo(this[_0xa465aa(0x15f)]);return _0x253696[_0xa465aa(0x19c)](_0xa465aa(0x17c))['to'](this,_0xa465aa(0x16c),_0x11307b=>_0x11307b??''),_0x253696[_0xa465aa(0x19c)](_0xa465aa(0x146))['to'](this,_0xa465aa(0x13e),this,_0xa465aa(0x16c),(_0x5d60fe,_0x524240)=>!_0x5d60fe&&!_0x524240?.[_0xa465aa(0x141)]()[_0xa465aa(0x17a)](_0xa465aa(0x198))),_0x253696;}}class js extends _0x3a5e5f{constructor(_0x327a65,_0x4d2ac9){const _0x58b726=_0xfbf6aa;super();const _0x53150b=this[_0x58b726(0x156)],_0x4150e3=this[_0x58b726(0x160)]();this[_0x58b726(0x19d)]({'tag':_0x58b726(0x174),'attributes':{'class':['ck',_0x58b726(0x193)],'style':_0x53150b['to'](_0x58b726(0x154)),'id':_0x53150b['to']('id')},'children':[{'tag':_0x58b726(0x174),'attributes':{'class':[Do]},'children':[{'text':_0x53150b['to'](_0x58b726(0x17c))}]},{'tag':_0x58b726(0x174),'attributes':{'class':[Wo]},'children':[{'tag':_0x58b726(0x15a),'children':[{'text':_0x4d2ac9[_0x58b726(0x161)]}]}]},{'tag':_0x58b726(0x174),'attributes':{'class':[yo]},'children':_0x4150e3}]}),_0x4150e3[_0x58b726(0x14a)](this[_0x58b726(0x178)](_0x327a65,_0x2c8924,_0x58b726(0x19b),_0x4d2ac9[_0x58b726(0x14b)][_0x58b726(0x143)]?.[_0x58b726(0x171)]??!0x1)),_0x4150e3[_0x58b726(0x14a)](this[_0x58b726(0x178)](_0x327a65,_0x114f11,_0x58b726(0x176),_0x4d2ac9[_0x58b726(0x14b)][_0x58b726(0x13f)]?.[_0x58b726(0x171)]??!0x1));}[_0xfbf6aa(0x178)](_0x265f80,_0x3f5650,_0x2a0276,_0xeacb34){const _0x183610=_0xfbf6aa,_0x22358f=new _0x5bbedc();_0x22358f[_0x183610(0x13d)]=_0x3f5650;const _0x1c6565=new _0x1fac1c(_0x265f80);_0x1c6565[_0x183610(0x19d)]({'tag':_0x183610(0x15a),'children':[{'text':_0x369d55(_0x265f80,_0x2a0276)+':\x20'}]});const _0x4f38c5=new _0x1fac1c(_0x265f80);return _0x4f38c5[_0x183610(0x19d)]({'tag':_0x183610(0x15a),'children':[{'text':_0x369d55(_0x265f80,_0xeacb34?_0x183610(0x155):_0x183610(0x16a))}]}),[_0x22358f,_0x1c6565,_0x4f38c5];}}function _0x5227(_0x14ef7f,_0x25fe26){const _0x33a063=_0x33a0();return _0x5227=function(_0x522703,_0x130f5a){_0x522703=_0x522703-0x13b;let _0x271c87=_0x33a063[_0x522703];return _0x271c87;},_0x5227(_0x14ef7f,_0x25fe26);}class jo extends _0x1fac1c{constructor(_0x49d7a9){const _0x3cd426=_0xfbf6aa;super(_0x49d7a9),this[_0x3cd426(0x16d)](_0x3cd426(0x17c),void 0x0),this[_0x3cd426(0x16d)](_0x3cd426(0x146),!0x0);const _0x431976=this[_0x3cd426(0x156)];this[_0x3cd426(0x19d)]({'tag':_0x3cd426(0x15a),'attributes':{'class':['ck',_0x3cd426(0x14f),_0x431976['if'](_0x3cd426(0x146),_0x3cd426(0x16b),_0x5bc737=>!_0x5bc737)]},'children':[{'text':_0x431976['to'](_0x3cd426(0x17c))}]});}}
23
+ const _0x5e100a=_0x2ddd;(function(_0x25d1ae,_0x236851){const _0x155c3c=_0x2ddd,_0x12bbe9=_0x25d1ae();while(!![]){try{const _0x1815ae=parseInt(_0x155c3c(0xf7))/0x1*(-parseInt(_0x155c3c(0xef))/0x2)+-parseInt(_0x155c3c(0xc5))/0x3*(parseInt(_0x155c3c(0xd7))/0x4)+parseInt(_0x155c3c(0xde))/0x5+parseInt(_0x155c3c(0xc0))/0x6*(parseInt(_0x155c3c(0xa8))/0x7)+parseInt(_0x155c3c(0xf1))/0x8+-parseInt(_0x155c3c(0xe7))/0x9+-parseInt(_0x155c3c(0xed))/0xa;if(_0x1815ae===_0x236851)break;else _0x12bbe9['push'](_0x12bbe9['shift']());}catch(_0x8f9063){_0x12bbe9['push'](_0x12bbe9['shift']());}}}(_0x2881,0x86d3b));import{Collection as _0xfc2991}from'ckeditor5/src/utils.js';import{IconAI as _0xa9523b,IconBulb as _0x2c3d2e,IconWeb as _0x1808c9}from'@ckeditor/ckeditor5-icons';function _0x2ddd(_0x426d76,_0x3f5fe7){const _0x288126=_0x2881();return _0x2ddd=function(_0x2dddfa,_0x42f497){_0x2dddfa=_0x2dddfa-0x97;let _0x468d84=_0x288126[_0x2dddfa];return _0x468d84;},_0x2ddd(_0x426d76,_0x3f5fe7);}import{addListToDropdown as _0x3b1778,ButtonLabelView as _0x3edc36,ButtonView as _0x5e4c81,createDropdown as _0xcbe46d,IconView as _0x3cea26,UIModel as _0x48d887,View as _0x50fe97}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c93d2}from'../../../aicore/utils/common-translations.js';const Ho=_0x5e100a(0xe5),Vo=_0x5e100a(0xdc),Mo=_0x5e100a(0x9d),Lo=_0x5e100a(0xd3),Do=_0x5e100a(0x9a),Wo=_0x5e100a(0xa6),yo=_0x5e100a(0xea),Go='n';function _0x2881(){const _0x12d985=['toLowerCase','ck-ai-chat-controls__model-selection__item-description','bindTemplate','7TqCndr','listenTo','reasoningActive','AI_CHAT_COMMANDS','ck-hidden','add','modelSelectorVisible','_createCommandsButton','isEnabled','addMany','capabilities','button','activeModelId','log','_getCapabilityParts','toggleReasoning','AI_CHAT_REASONING','setWebSearch','description','fire','buttonView','extendTemplate','enabled','text','5322090QJWZBE','startsWith','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','agent','setModelList','3CxXZUq','reasoning','AI_CHAT_SEARCH_WEB','isVisible','_modelSelectionDropdownItems','_createModelSelectionDropdown','isOn','ck-button__label','setModel','_reasoningButton','AI_CHAT_DISABLE_WEB_SEARCH','tooltip','style','webSearchActive','ck-ai-chat-controls__model-selection','div','withText','AI_CHAT_ENABLE_WEB_SEARCH','2435588sruKPV','ck-ai-chat-controls__model-name','_webSearchButton','webSearch','toggleWebSearch','ck-ai-chat-controls-button','_createWebSearchButton','3609065wIcpbA','_createModelNameView','activeModelName','execute','setReasoning','_createReasoningButton','set','ck-ai-chat__prompt-capabilities','modelSelectorEnabled','1278414ORJYNe','createCollection','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-capabilities','model','content','574520bkfzaH','label','6476UhYztE','Commands\x20are\x20not\x20implemented\x20yet.','242288STUGqF','selectModel','locale','AI_CHAT_CAPABILITIES_NO','span','_modelSelectionDropdown','86FIoOKt','disableModelSelector','length','setTemplate','menuitemradio','bind','ck-ai-chat-controls__model-selection__item-name','enableModelSelector','name','ck-ai-chat-controls-button--commands','AI_CHAT_DISABLE_REASONING','_commandsButton','_modelNameView','source','AI_CHAT_ENABLE_REASONING','AI_CHAT_CAPABILITIES_YES','clear'];_0x2881=function(){return _0x12d985;};return _0x2881();}export class AIChatPromptCapabilitiesView extends _0x50fe97{[_0x5e100a(0xd9)];[_0x5e100a(0xce)];[_0x5e100a(0x9f)];[_0x5e100a(0xf6)];[_0x5e100a(0xc9)];[_0x5e100a(0xa0)];constructor(_0x50aa8c){const _0x2907c5=_0x5e100a;super(_0x50aa8c),this[_0x2907c5(0xe4)](_0x2907c5(0xd2),!0x1),this[_0x2907c5(0xe4)](_0x2907c5(0xaa),!0x1),this[_0x2907c5(0xe4)](_0x2907c5(0xae),!0x0),this[_0x2907c5(0xe4)](_0x2907c5(0xe6),!0x0),this[_0x2907c5(0xe4)](_0x2907c5(0xb4),''),this[_0x2907c5(0xe4)](_0x2907c5(0xe0),''),this[_0x2907c5(0xf6)]=this[_0x2907c5(0xca)](),this[_0x2907c5(0xa0)]=this[_0x2907c5(0xdf)](),this[_0x2907c5(0xd9)]=this[_0x2907c5(0xdd)](),this[_0x2907c5(0xce)]=this[_0x2907c5(0xe3)](),this[_0x2907c5(0x9f)]=this[_0x2907c5(0xaf)](),this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0x99)](_0x2907c5(0xc8))['to'](this,_0x2907c5(0xae),_0x120e59=>_0x120e59),this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xe6),_0x4eee06=>_0x4eee06?this[_0x2907c5(0xf6)][_0x2907c5(0xbc)][_0x2907c5(0xee)]:_0x2c93d2(this[_0x2907c5(0xf3)],_0x2907c5(0xc2))),this[_0x2907c5(0xf6)][_0x2907c5(0x99)](_0x2907c5(0xb0))['to'](this,_0x2907c5(0xe6),_0x1c2d49=>_0x1c2d49),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xcb))['to'](this,_0x2907c5(0xd2),_0x55847b=>_0x55847b),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xd5))['to'](this,_0x2907c5(0xae),_0x4b5502=>!_0x4b5502),this[_0x2907c5(0xd9)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xd2),_0x3b7946=>_0x2c93d2(this[_0x2907c5(0xf3)],_0x3b7946?_0x2907c5(0xcf):_0x2907c5(0xd6))),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xcb))['to'](this,_0x2907c5(0xaa),_0x84ffea=>_0x84ffea),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xd5))['to'](this,_0x2907c5(0xae),_0x2a44b5=>!_0x2a44b5),this[_0x2907c5(0xce)][_0x2907c5(0x99)](_0x2907c5(0xd0))['to'](this,_0x2907c5(0xaa),_0x4982ad=>_0x2c93d2(this[_0x2907c5(0xf3)],_0x4982ad?_0x2907c5(0x9e):_0x2907c5(0xa2))),this[_0x2907c5(0x97)]({'tag':_0x2907c5(0xd4),'attributes':{'class':[Ho]},'children':[this[_0x2907c5(0xf6)],this[_0x2907c5(0xa0)],this[_0x2907c5(0xd9)],this[_0x2907c5(0xce)],this[_0x2907c5(0x9f)]]}),this[_0x2907c5(0xc9)]=new _0xfc2991(),_0x3b1778(this[_0x2907c5(0xf6)],this[_0x2907c5(0xc9)]);}[_0x5e100a(0xc4)](_0x7525f,_0x300fb0){const _0x14fab3=_0x5e100a;if(this[_0x14fab3(0xe4)](_0x14fab3(0xae),!(_0x300fb0&&_0x7525f[_0x14fab3(0xf9)]<=0x1)),this[_0x14fab3(0xc9)][_0x14fab3(0xa4)](),_0x7525f?.[_0x14fab3(0xf9)])for(const _0x5e33a3 of _0x7525f){const _0x30547d=new _0x48d887({'label':_0x5e33a3[_0x14fab3(0x9c)],'withText':!0x0,'role':_0x14fab3(0x98),'id':_0x5e33a3['id'],'model':_0x5e33a3});_0x30547d[_0x14fab3(0x99)](_0x14fab3(0xcb))['to'](this,_0x14fab3(0xb4),_0x41c8d8=>_0x41c8d8===_0x5e33a3['id']),this[_0x14fab3(0xc9)][_0x14fab3(0xad)]({'type':_0x14fab3(0xb3),'model':_0x30547d,'labelView':new js(this[_0x14fab3(0xf3)],_0x5e33a3)});}}[_0x5e100a(0xb9)](_0x4ebd57){const _0x1851b1=_0x5e100a;this[_0x1851b1(0xe4)](_0x1851b1(0xd2),_0x4ebd57);}[_0x5e100a(0xe2)](_0x36e27d){const _0x3b825d=_0x5e100a;this[_0x3b825d(0xe4)](_0x3b825d(0xaa),_0x36e27d);}[_0x5e100a(0xcd)](_0x6c8b8c){const _0x5dc7f4=_0x5e100a;if(!_0x6c8b8c)return;this[_0x5dc7f4(0xb4)]=_0x6c8b8c['id'],this[_0x5dc7f4(0xe0)]=_0x6c8b8c[_0x5dc7f4(0x9c)]||_0x6c8b8c['id'],this[_0x5dc7f4(0xf6)][_0x5dc7f4(0xbc)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xee),_0x6c8b8c[_0x5dc7f4(0x9c)]),this[_0x5dc7f4(0xf6)][_0x5dc7f4(0xbc)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xd0),_0x6c8b8c[_0x5dc7f4(0x9c)]);const _0x1f5072=_0x6c8b8c[_0x5dc7f4(0xb2)][_0x5dc7f4(0xda)]?.[_0x5dc7f4(0xbe)]??!0x1;this[_0x5dc7f4(0xe4)](_0x5dc7f4(0xd2),!0x1),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xcb),!0x1),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xb0),_0x1f5072),this[_0x5dc7f4(0xd9)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xc8),_0x1f5072);const _0x126afd=_0x6c8b8c[_0x5dc7f4(0xb2)][_0x5dc7f4(0xc6)]?.[_0x5dc7f4(0xbe)]??!0x1;this[_0x5dc7f4(0xe4)](_0x5dc7f4(0xaa),!0x1),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xcb),!0x1),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xb0),_0x126afd),this[_0x5dc7f4(0xce)][_0x5dc7f4(0xe4)](_0x5dc7f4(0xc8),_0x126afd);}[_0x5e100a(0x9b)](){const _0x4d559f=_0x5e100a;this[_0x4d559f(0xe4)](_0x4d559f(0xe6),!0x0),this[_0x4d559f(0xe4)](_0x4d559f(0xae),!0x0);}[_0x5e100a(0xf8)](_0x4c6a73){const _0x5e0e80=_0x5e100a;this[_0x5e0e80(0xe4)](_0x5e0e80(0xe6),!0x1),_0x4c6a73&&this[_0x5e0e80(0xe4)](_0x5e0e80(0xae),!0x1);}[_0x5e100a(0xdd)](){const _0x27b78e=_0x5e100a,_0x2f6ce1=new _0x5e4c81();return _0x2f6ce1[_0x27b78e(0xe4)]({'label':_0x2c93d2(this[_0x27b78e(0xf3)],_0x27b78e(0xc7)),'icon':_0x1808c9,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x2f6ce1['on'](_0x27b78e(0xe1),()=>{const _0x5b63b7=_0x27b78e;this[_0x5b63b7(0xbb)](_0x5b63b7(0xdb));}),_0x2f6ce1;}[_0x5e100a(0xe3)](){const _0x188af5=_0x5e100a,_0x2215f3=new _0x5e4c81();return _0x2215f3[_0x188af5(0xe4)]({'label':_0x2c93d2(this[_0x188af5(0xf3)],_0x188af5(0xb8)),'icon':_0x2c3d2e,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x2215f3['on'](_0x188af5(0xe1),()=>{const _0x6c34f1=_0x188af5;this[_0x6c34f1(0xbb)](_0x6c34f1(0xb7));}),_0x2215f3;}[_0x5e100a(0xaf)](){const _0x2c27d6=_0x5e100a,_0x2be18f=new _0x5e4c81();return _0x2be18f[_0x2c27d6(0xe4)]({'label':_0x2c93d2(this[_0x2c27d6(0xf3)],_0x2c27d6(0xab)),'icon':_0xa9523b,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x2c93d2(this[_0x2c27d6(0xf3)],_0x2c27d6(0xab)),'tooltipPosition':Go}),_0x2be18f[_0x2c27d6(0xbd)]({'attributes':{'class':[Mo]}}),_0x2be18f['on'](_0x2c27d6(0xe1),()=>{const _0x5dd426=_0x2c27d6;console[_0x5dd426(0xb5)](_0x5dd426(0xf0)),alert(_0x5dd426(0xf0));}),_0x2be18f;}[_0x5e100a(0xca)](){const _0x57afe4=_0x5e100a,_0xabfb2c=_0xcbe46d(this[_0x57afe4(0xf3)]);return _0xabfb2c[_0x57afe4(0xe4)]({'panelPosition':'ne','class':[Lo]}),_0xabfb2c[_0x57afe4(0xbc)][_0x57afe4(0xe4)]({'label':_0x2c93d2(this[_0x57afe4(0xf3)],_0x57afe4(0xe9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x57afe4(0xa9)](_0xabfb2c,_0x57afe4(0xe1),_0x1adeb7=>{const _0x30033f=_0x57afe4;this[_0x30033f(0xbb)](_0x30033f(0xf2),_0x1adeb7[_0x30033f(0xa1)][_0x30033f(0xeb)]);}),_0xabfb2c;}[_0x5e100a(0xdf)](){const _0x58e911=_0x5e100a,_0x2ae8ae=new jo(this[_0x58e911(0xf3)]);return _0x2ae8ae[_0x58e911(0x99)](_0x58e911(0xbf))['to'](this,_0x58e911(0xe0),_0x4baee4=>_0x4baee4??''),_0x2ae8ae[_0x58e911(0x99)](_0x58e911(0xc8))['to'](this,_0x58e911(0xae),this,_0x58e911(0xe0),(_0x166d5d,_0x2d9139)=>!_0x166d5d&&!_0x2d9139?.[_0x58e911(0xa5)]()[_0x58e911(0xc1)](_0x58e911(0xc3))),_0x2ae8ae;}}class js extends _0x3edc36{constructor(_0x2c850b,_0x34dd2e){const _0x34f2a1=_0x5e100a;super();const _0x299caa=this[_0x34f2a1(0xa7)],_0x368ff3=this[_0x34f2a1(0xe8)]();this[_0x34f2a1(0x97)]({'tag':_0x34f2a1(0xd4),'attributes':{'class':['ck',_0x34f2a1(0xcc)],'style':_0x299caa['to'](_0x34f2a1(0xd1)),'id':_0x299caa['to']('id')},'children':[{'tag':_0x34f2a1(0xd4),'attributes':{'class':[Do]},'children':[{'text':_0x299caa['to'](_0x34f2a1(0xbf))}]},{'tag':_0x34f2a1(0xd4),'attributes':{'class':[Wo]},'children':[{'tag':_0x34f2a1(0xf5),'children':[{'text':_0x34dd2e[_0x34f2a1(0xba)]}]}]},{'tag':_0x34f2a1(0xd4),'attributes':{'class':[yo]},'children':_0x368ff3}]}),_0x368ff3[_0x34f2a1(0xb1)](this[_0x34f2a1(0xb6)](_0x2c850b,_0x1808c9,_0x34f2a1(0xc7),_0x34dd2e[_0x34f2a1(0xb2)][_0x34f2a1(0xda)]?.[_0x34f2a1(0xbe)]??!0x1)),_0x368ff3[_0x34f2a1(0xb1)](this[_0x34f2a1(0xb6)](_0x2c850b,_0x2c3d2e,_0x34f2a1(0xb8),_0x34dd2e[_0x34f2a1(0xb2)][_0x34f2a1(0xc6)]?.[_0x34f2a1(0xbe)]??!0x1));}[_0x5e100a(0xb6)](_0x46e31e,_0x4611b0,_0x3553c5,_0x24c922){const _0x4b9ee7=_0x5e100a,_0x506451=new _0x3cea26();_0x506451[_0x4b9ee7(0xec)]=_0x4611b0;const _0x180eec=new _0x50fe97(_0x46e31e);_0x180eec[_0x4b9ee7(0x97)]({'tag':_0x4b9ee7(0xf5),'children':[{'text':_0x2c93d2(_0x46e31e,_0x3553c5)+':\x20'}]});const _0x6544ca=new _0x50fe97(_0x46e31e);return _0x6544ca[_0x4b9ee7(0x97)]({'tag':_0x4b9ee7(0xf5),'children':[{'text':_0x2c93d2(_0x46e31e,_0x24c922?_0x4b9ee7(0xa3):_0x4b9ee7(0xf4))}]}),[_0x506451,_0x180eec,_0x6544ca];}}class jo extends _0x50fe97{constructor(_0x5c1cd6){const _0x27b9fd=_0x5e100a;super(_0x5c1cd6),this[_0x27b9fd(0xe4)](_0x27b9fd(0xbf),void 0x0),this[_0x27b9fd(0xe4)](_0x27b9fd(0xc8),!0x0);const _0x1c7e00=this[_0x27b9fd(0xa7)];this[_0x27b9fd(0x97)]({'tag':_0x27b9fd(0xf5),'attributes':{'class':['ck',_0x27b9fd(0xd8),_0x1c7e00['if'](_0x27b9fd(0xc8),_0x27b9fd(0xac),_0x422d46=>!_0x422d46)]},'children':[{'text':_0x1c7e00['to'](_0x27b9fd(0xbf))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d2db1=_0x26ec;(function(_0x29dee2,_0x57fa1b){const _0x243edb=_0x26ec,_0x5bda30=_0x29dee2();while(!![]){try{const _0x25a063=parseInt(_0x243edb(0xc2))/0x1*(parseInt(_0x243edb(0xd2))/0x2)+-parseInt(_0x243edb(0xaa))/0x3+-parseInt(_0x243edb(0xb5))/0x4+parseInt(_0x243edb(0xdd))/0x5*(parseInt(_0x243edb(0xba))/0x6)+parseInt(_0x243edb(0xc5))/0x7+-parseInt(_0x243edb(0xe5))/0x8+parseInt(_0x243edb(0xb4))/0x9*(-parseInt(_0x243edb(0xdf))/0xa);if(_0x25a063===_0x57fa1b)break;else _0x5bda30['push'](_0x5bda30['shift']());}catch(_0x43d665){_0x5bda30['push'](_0x5bda30['shift']());}}}(_0x1640,0x6605f));import{IconSubmit as _0xfa816d}from'ckeditor5/src/icons.js';import{ButtonView as _0xd3d38d,AutocompleteView as _0x883e64,createLabeledTextarea as _0x3e2022}from'ckeditor5/src/ui.js';import{global as _0x1c66f5,isVisible as _0x1d9223,Rect as _0x501948,ResizeObserver as _0x4c0eec}from'ckeditor5/src/utils.js';import{getTranslation as _0x15a219}from'../../../aicore/utils/common-translations.js';function _0x26ec(_0x564d2c,_0x2e42cf){const _0x164047=_0x1640();return _0x26ec=function(_0x26eca8,_0x1e5432){_0x26eca8=_0x26eca8-0xa8;let _0x1070ae=_0x164047[_0x26eca8];return _0x1070ae;},_0x26ec(_0x564d2c,_0x2e42cf);}function _0x1640(){const _0x5c89bb=['_createSubmitButton','set','uiLanguageDirection','MIN_ROWS','329576osrEKf','rtl','isEmpty','reset','ck-ai-chat__prompt-input','add','px\x20-\x20var(--ck-spacing-tiny))','render','focusableChildren','placeholder','right','205piOjWN','width','90TlWBLg','target','submitButtonView','AI_CHAT_LABEL_SUBMIT','_addContextButtonView','submit','6446096PHCdbl','element','MAX_ROWS','value','enter','isEnabled','1905138WeVUBt','left','keystrokes','setIsUploadInProgress','destroy','requestAnimationFrame','isUploadInProgress','bind','hasError','locale','423477ADKNIz','739612ShipZT','execute','window','ck-ai-chat__prompt-submit-button','fire','122106PNrCbq','AI_CHAT_PROMPT_EMPTY_ERROR','minRows','trim','fieldWrapperChildren','maxRows','queryView','extendTemplate','5QLnoWg','_queryViewResizeObserver','calc(','5661208NVxXiJ','errorText','excludeScrollbarsAndBorders','setPlaceholderText','_setUpAddContextButtonPositioning','style','update','fieldView','sendUserMessage'];_0x1640=function(){return _0x5c89bb;};return _0x1640();}import{AIChatPromptSuggestionsListView as _0x500fc7}from'./aichatpromptsuggestionslistview.js';import{escape as _0x57a065}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x883e64{[_0x3d2db1(0xe1)];static [_0x3d2db1(0xd1)]=0x1;static [_0x3d2db1(0xe7)]=0xc;[_0x3d2db1(0xe3)];[_0x3d2db1(0xc3)];constructor(_0x4dc125,_0x29af5f){const _0x4af32a=_0x3d2db1;super(_0x4dc125,{'queryView':{'label':'','creator':_0x3e2022,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x500fc7(_0x4dc125),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4af32a(0xcf)](_0x4af32a(0xd4),!0x0),this[_0x4af32a(0xcf)](_0x4af32a(0xb0),!0x1),this[_0x4af32a(0xe3)]=_0x29af5f,this[_0x4af32a(0xc3)]=null,this[_0x4af32a(0xc0)][_0x4af32a(0xcc)][_0x4af32a(0xbc)]=AIChatPromptInputView[_0x4af32a(0xd1)],this[_0x4af32a(0xc0)][_0x4af32a(0xcc)][_0x4af32a(0xbf)]=AIChatPromptInputView[_0x4af32a(0xe7)],this[_0x4af32a(0xc0)][_0x4af32a(0xbe)][_0x4af32a(0xd7)](this[_0x4af32a(0xe3)]),this[_0x4af32a(0xc9)](),this[_0x4af32a(0xc1)]({'attributes':{'class':['ck',_0x4af32a(0xd6)]}}),this[_0x4af32a(0xe1)]=this[_0x4af32a(0xce)](),this[_0x4af32a(0xe1)][_0x4af32a(0xb1)](_0x4af32a(0xa9))['to'](this,_0x4af32a(0xd4),this,_0x4af32a(0xb0),(_0x482121,_0x37320a)=>!_0x482121&&!_0x37320a),this[_0x4af32a(0xda)][_0x4af32a(0xd7)](this[_0x4af32a(0xe1)]);}[_0x3d2db1(0xd9)](){const _0x16dc26=_0x3d2db1;super[_0x16dc26(0xd9)](),this[_0x16dc26(0xc0)][_0x16dc26(0xbe)][_0x16dc26(0xd7)](this[_0x16dc26(0xe1)]),this[_0x16dc26(0xac)][_0x16dc26(0xcf)](_0x16dc26(0xa8),(_0x518df8,_0x16eb8e)=>{const _0x1075e0=_0x16dc26;this[_0x1075e0(0xb0)]||this[_0x1075e0(0xd4)]||_0x518df8[_0x1075e0(0xe0)]==this[_0x1075e0(0xc0)][_0x1075e0(0xcc)][_0x1075e0(0xe6)]&&(this[_0x1075e0(0xe4)](),_0x16eb8e());}),this[_0x16dc26(0xc0)][_0x16dc26(0xcc)]['on'](_0x16dc26(0xcb),()=>{const _0x5ba0f8=_0x16dc26;this[_0x5ba0f8(0xd4)]=''===this[_0x5ba0f8(0xc0)][_0x5ba0f8(0xcc)][_0x5ba0f8(0xe6)][_0x5ba0f8(0xe8)]?.[_0x5ba0f8(0xbd)]();});}[_0x3d2db1(0xae)](){const _0x476286=_0x3d2db1;super[_0x476286(0xae)](),this[_0x476286(0xc3)]&&this[_0x476286(0xc3)][_0x476286(0xae)]();}[_0x3d2db1(0xe4)](){const _0x34cfbb=_0x3d2db1,_0x47d06d=this[_0x34cfbb(0xc0)][_0x34cfbb(0xcc)][_0x34cfbb(0xe6)][_0x34cfbb(0xe8)]?.[_0x34cfbb(0xbd)]();if(!_0x47d06d)return this[_0x34cfbb(0xc0)][_0x34cfbb(0xc6)]=_0x15a219(this[_0x34cfbb(0xb3)],_0x34cfbb(0xbb)),void(this[_0x34cfbb(0xc0)][_0x34cfbb(0xcc)][_0x34cfbb(0xb2)]=!0x0);this[_0x34cfbb(0xc0)][_0x34cfbb(0xcc)][_0x34cfbb(0xb2)]=!0x1;const _0x13bf97=_0x57a065(_0x47d06d);this[_0x34cfbb(0xb9)](_0x34cfbb(0xcd),_0x13bf97),this[_0x34cfbb(0xc0)][_0x34cfbb(0xcc)][_0x34cfbb(0xd5)]();}[_0x3d2db1(0xc8)](_0x2e1675){const _0x46d4b9=_0x3d2db1;this[_0x46d4b9(0xc0)][_0x46d4b9(0xcc)][_0x46d4b9(0xcf)](_0x46d4b9(0xdb),_0x2e1675);}[_0x3d2db1(0xce)](){const _0x530b5b=_0x3d2db1,_0x44581f=new _0xd3d38d(this[_0x530b5b(0xb3)]);return _0x44581f[_0x530b5b(0xcf)]({'icon':_0xfa816d,'label':_0x15a219(this[_0x530b5b(0xb3)],_0x530b5b(0xe2)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x530b5b(0xb8),'isEnabled':!0x1}),_0x44581f['on'](_0x530b5b(0xb6),()=>{const _0x5c46b4=_0x530b5b;this[_0x5c46b4(0xe4)]();}),_0x44581f;}[_0x3d2db1(0xad)](_0xcd31bf){const _0x4228fd=_0x3d2db1;this[_0x4228fd(0xb0)]=_0xcd31bf;}[_0x3d2db1(0xc9)](){const _0x5c9215=_0x3d2db1,_0x11997c=this[_0x5c9215(0xb3)],_0x25043f=()=>{const _0x1e54d2=_0x5c9215;_0x1c66f5[_0x1e54d2(0xb7)][_0x1e54d2(0xaf)](()=>{const _0x516fe0=_0x1e54d2;if(_0x1d9223(this[_0x516fe0(0xe6)])){const _0x55a5f9=new _0x501948(this[_0x516fe0(0xc0)][_0x516fe0(0xcc)][_0x516fe0(0xe6)]),_0x4f0219=new _0x501948(this[_0x516fe0(0xe3)][_0x516fe0(0xe6)]),_0x4c695e=_0x55a5f9[_0x516fe0(0xde)],_0x359b5b=_0x516fe0(0xd3)===_0x11997c[_0x516fe0(0xd0)]?_0x516fe0(0xdc):_0x516fe0(0xab);_0x55a5f9[_0x516fe0(0xc7)]();const _0x36d9b6=_0x4c695e-_0x55a5f9[_0x516fe0(0xde)]+0x1;this[_0x516fe0(0xe3)][_0x516fe0(0xe6)][_0x516fe0(0xca)][_0x359b5b]=_0x516fe0(0xc4)+(_0x4c695e-_0x4f0219[_0x516fe0(0xde)]-_0x36d9b6)+_0x516fe0(0xd8);}});};this[_0x5c9215(0xc0)][_0x5c9215(0xcc)]['on'](_0x5c9215(0xcb),_0x25043f),this['on'](_0x5c9215(0xd9),()=>{const _0x541e35=_0x5c9215;_0x25043f(),this[_0x541e35(0xc3)]=new _0x4c0eec(this[_0x541e35(0xc0)][_0x541e35(0xcc)][_0x541e35(0xe6)],()=>{_0x25043f();});});}}
23
+ const _0x3f31cc=_0x3005;function _0x4c81(){const _0xecbf50=['_addContextButtonView','add','1775901EZivXm','focusableChildren','style','keystrokes','fieldWrapperChildren','5zBayiU','fire','_setUpAddContextButtonPositioning','MIN_ROWS','errorText','MAX_ROWS','hasError','px\x20-\x20var(--ck-spacing-tiny))','right','AI_CHAT_PROMPT_EMPTY_ERROR','calc(','width','isEnabled','508lXgaOu','7185310UgRpJG','setIsUploadInProgress','14rRREnE','5158616qEseTS','1041354DdvhZO','_queryViewResizeObserver','excludeScrollbarsAndBorders','reset','bind','2705nOtGCo','submitButtonView','placeholder','value','uiLanguageDirection','ck-ai-chat__prompt-input','minRows','setPlaceholderText','isUploadInProgress','1440063yOlMUy','left','_createSubmitButton','target','ck-ai-chat__prompt-submit-button','rtl','window','update','isEmpty','40dMEqfw','render','submit','queryView','AI_CHAT_LABEL_SUBMIT','requestAnimationFrame','execute','element','extendTemplate','set','2236076LKBlDv','destroy','locale','enter','fieldView','maxRows','trim','sendUserMessage'];_0x4c81=function(){return _0xecbf50;};return _0x4c81();}(function(_0x112403,_0x29fe81){const _0x5c6e9b=_0x3005,_0x38153f=_0x112403();while(!![]){try{const _0x23117a=parseInt(_0x5c6e9b(0x1a8))/0x1*(parseInt(_0x5c6e9b(0x19e))/0x2)+parseInt(_0x5c6e9b(0x18c))/0x3+parseInt(_0x5c6e9b(0x1c4))/0x4*(parseInt(_0x5c6e9b(0x191))/0x5)+-parseInt(_0x5c6e9b(0x1a3))/0x6*(-parseInt(_0x5c6e9b(0x1a1))/0x7)+parseInt(_0x5c6e9b(0x1a2))/0x8+parseInt(_0x5c6e9b(0x1b1))/0x9+-parseInt(_0x5c6e9b(0x1ba))/0xa*(parseInt(_0x5c6e9b(0x19f))/0xb);if(_0x23117a===_0x29fe81)break;else _0x38153f['push'](_0x38153f['shift']());}catch(_0x458d13){_0x38153f['push'](_0x38153f['shift']());}}}(_0x4c81,0x5c150));import{IconSubmit as _0x14ff81}from'ckeditor5/src/icons.js';import{ButtonView as _0x5c1a30,AutocompleteView as _0x366119,createLabeledTextarea as _0x54526a}from'ckeditor5/src/ui.js';import{global as _0x2064f8,isVisible as _0x583f79,Rect as _0x306e79,ResizeObserver as _0x1b2700}from'ckeditor5/src/utils.js';import{getTranslation as _0x3bd97d}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x57b142}from'./aichatpromptsuggestionslistview.js';import{escape as _0x1baac0}from'es-toolkit/compat';function _0x3005(_0x14025b,_0x28d6a1){const _0x4c81e0=_0x4c81();return _0x3005=function(_0x3005ed,_0x316ab0){_0x3005ed=_0x3005ed-0x185;let _0x3e3ac0=_0x4c81e0[_0x3005ed];return _0x3e3ac0;},_0x3005(_0x14025b,_0x28d6a1);}export class AIChatPromptInputView extends _0x366119{[_0x3f31cc(0x1a9)];static [_0x3f31cc(0x194)]=0x1;static [_0x3f31cc(0x196)]=0xc;[_0x3f31cc(0x18a)];[_0x3f31cc(0x1a4)];constructor(_0x1da687,_0x53e3a7){const _0x5d12be=_0x3f31cc;super(_0x1da687,{'queryView':{'label':'','creator':_0x54526a,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x57b142(_0x1da687),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x5d12be(0x1c3)](_0x5d12be(0x1b9),!0x0),this[_0x5d12be(0x1c3)](_0x5d12be(0x1b0),!0x1),this[_0x5d12be(0x18a)]=_0x53e3a7,this[_0x5d12be(0x1a4)]=null,this[_0x5d12be(0x1bd)][_0x5d12be(0x186)][_0x5d12be(0x1ae)]=AIChatPromptInputView[_0x5d12be(0x194)],this[_0x5d12be(0x1bd)][_0x5d12be(0x186)][_0x5d12be(0x187)]=AIChatPromptInputView[_0x5d12be(0x196)],this[_0x5d12be(0x1bd)][_0x5d12be(0x190)][_0x5d12be(0x18b)](this[_0x5d12be(0x18a)]),this[_0x5d12be(0x193)](),this[_0x5d12be(0x1c2)]({'attributes':{'class':['ck',_0x5d12be(0x1ad)]}}),this[_0x5d12be(0x1a9)]=this[_0x5d12be(0x1b3)](),this[_0x5d12be(0x1a9)][_0x5d12be(0x1a7)](_0x5d12be(0x19d))['to'](this,_0x5d12be(0x1b9),this,_0x5d12be(0x1b0),(_0x156b0d,_0x597ae8)=>!_0x156b0d&&!_0x597ae8),this[_0x5d12be(0x18d)][_0x5d12be(0x18b)](this[_0x5d12be(0x1a9)]);}[_0x3f31cc(0x1bb)](){const _0x51218b=_0x3f31cc;super[_0x51218b(0x1bb)](),this[_0x51218b(0x1bd)][_0x51218b(0x190)][_0x51218b(0x18b)](this[_0x51218b(0x1a9)]),this[_0x51218b(0x18f)][_0x51218b(0x1c3)](_0x51218b(0x185),(_0x598d1d,_0x135467)=>{const _0x9f20af=_0x51218b;this[_0x9f20af(0x1b0)]||this[_0x9f20af(0x1b9)]||_0x598d1d[_0x9f20af(0x1b4)]==this[_0x9f20af(0x1bd)][_0x9f20af(0x186)][_0x9f20af(0x1c1)]&&(this[_0x9f20af(0x1bc)](),_0x135467());}),this[_0x51218b(0x1bd)][_0x51218b(0x186)]['on'](_0x51218b(0x1b8),()=>{const _0x161a23=_0x51218b;this[_0x161a23(0x1b9)]=''===this[_0x161a23(0x1bd)][_0x161a23(0x186)][_0x161a23(0x1c1)][_0x161a23(0x1ab)]?.[_0x161a23(0x188)]();});}[_0x3f31cc(0x1c5)](){const _0x14f33f=_0x3f31cc;super[_0x14f33f(0x1c5)](),this[_0x14f33f(0x1a4)]&&this[_0x14f33f(0x1a4)][_0x14f33f(0x1c5)]();}[_0x3f31cc(0x1bc)](){const _0x371c93=_0x3f31cc,_0x176e80=this[_0x371c93(0x1bd)][_0x371c93(0x186)][_0x371c93(0x1c1)][_0x371c93(0x1ab)]?.[_0x371c93(0x188)]();if(!_0x176e80)return this[_0x371c93(0x1bd)][_0x371c93(0x195)]=_0x3bd97d(this[_0x371c93(0x1c6)],_0x371c93(0x19a)),void(this[_0x371c93(0x1bd)][_0x371c93(0x186)][_0x371c93(0x197)]=!0x0);this[_0x371c93(0x1bd)][_0x371c93(0x186)][_0x371c93(0x197)]=!0x1;const _0x4a442a=_0x1baac0(_0x176e80);this[_0x371c93(0x192)](_0x371c93(0x189),_0x4a442a),this[_0x371c93(0x1bd)][_0x371c93(0x186)][_0x371c93(0x1a6)]();}[_0x3f31cc(0x1af)](_0x4f147b){const _0xc307cc=_0x3f31cc;this[_0xc307cc(0x1bd)][_0xc307cc(0x186)][_0xc307cc(0x1c3)](_0xc307cc(0x1aa),_0x4f147b);}[_0x3f31cc(0x1b3)](){const _0x563f1b=_0x3f31cc,_0x2e49df=new _0x5c1a30(this[_0x563f1b(0x1c6)]);return _0x2e49df[_0x563f1b(0x1c3)]({'icon':_0x14ff81,'label':_0x3bd97d(this[_0x563f1b(0x1c6)],_0x563f1b(0x1be)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x563f1b(0x1b5),'isEnabled':!0x1}),_0x2e49df['on'](_0x563f1b(0x1c0),()=>{const _0x24eb2d=_0x563f1b;this[_0x24eb2d(0x1bc)]();}),_0x2e49df;}[_0x3f31cc(0x1a0)](_0x58855e){const _0x44c600=_0x3f31cc;this[_0x44c600(0x1b0)]=_0x58855e;}[_0x3f31cc(0x193)](){const _0x57f7ff=_0x3f31cc,_0x5bb095=this[_0x57f7ff(0x1c6)],_0x3bc73f=()=>{const _0xbe31e1=_0x57f7ff;_0x2064f8[_0xbe31e1(0x1b7)][_0xbe31e1(0x1bf)](()=>{const _0x25ad0e=_0xbe31e1;if(_0x583f79(this[_0x25ad0e(0x1c1)])){const _0x5d67a1=new _0x306e79(this[_0x25ad0e(0x1bd)][_0x25ad0e(0x186)][_0x25ad0e(0x1c1)]),_0xfa7612=new _0x306e79(this[_0x25ad0e(0x18a)][_0x25ad0e(0x1c1)]),_0x5b5359=_0x5d67a1[_0x25ad0e(0x19c)],_0xa28ba5=_0x25ad0e(0x1b6)===_0x5bb095[_0x25ad0e(0x1ac)]?_0x25ad0e(0x199):_0x25ad0e(0x1b2);_0x5d67a1[_0x25ad0e(0x1a5)]();const _0x58ae9b=_0x5b5359-_0x5d67a1[_0x25ad0e(0x19c)]+0x1;this[_0x25ad0e(0x18a)][_0x25ad0e(0x1c1)][_0x25ad0e(0x18e)][_0xa28ba5]=_0x25ad0e(0x19b)+(_0x5b5359-_0xfa7612[_0x25ad0e(0x19c)]-_0x58ae9b)+_0x25ad0e(0x198);}});};this[_0x57f7ff(0x1bd)][_0x57f7ff(0x186)]['on'](_0x57f7ff(0x1b8),_0x3bc73f),this['on'](_0x57f7ff(0x1bb),()=>{const _0x1af385=_0x57f7ff;_0x3bc73f(),this[_0x1af385(0x1a4)]=new _0x1b2700(this[_0x1af385(0x1bd)][_0x1af385(0x186)][_0x1af385(0x1c1)],()=>{_0x3bc73f();});});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x692f89=_0xbd76;(function(_0x581c37,_0x3afe3c){const _0x33afeb=_0xbd76,_0x24b468=_0x581c37();while(!![]){try{const _0xcbc3ad=-parseInt(_0x33afeb(0x176))/0x1*(-parseInt(_0x33afeb(0x174))/0x2)+-parseInt(_0x33afeb(0x177))/0x3+parseInt(_0x33afeb(0x175))/0x4*(parseInt(_0x33afeb(0x178))/0x5)+-parseInt(_0x33afeb(0x179))/0x6+-parseInt(_0x33afeb(0x17e))/0x7*(parseInt(_0x33afeb(0x172))/0x8)+-parseInt(_0x33afeb(0x17b))/0x9*(-parseInt(_0x33afeb(0x17a))/0xa)+parseInt(_0x33afeb(0x17d))/0xb;if(_0xcbc3ad===_0x3afe3c)break;else _0x24b468['push'](_0x24b468['shift']());}catch(_0x44cb80){_0x24b468['push'](_0x24b468['shift']());}}}(_0x3dea,0xbee9b));function _0xbd76(_0x1c0821,_0x3f3c80){const _0x3dea79=_0x3dea();return _0xbd76=function(_0xbd76e1,_0x312497){_0xbd76e1=_0xbd76e1-0x172;let _0x587a21=_0x3dea79[_0xbd76e1];return _0x587a21;},_0xbd76(_0x1c0821,_0x3f3c80);}import{ListView as _0x3a778c}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x3a778c{[_0x692f89(0x17c)](){const _0x469417=_0x692f89;let _0x4a3512=0x0;for(const _0xbfb89c of this[_0x469417(0x173)])_0x4a3512+=_0xbfb89c[_0x469417(0x173)][_0x469417(0x17f)];return{'resultsCount':_0x4a3512,'totalItemsCount':_0x4a3512};}}function _0x3dea(){const _0x62717d=['1582uRTlQv','269370msGZgi','646110UQyYTx','2017488gYNrFy','3341070kEhRln','9dFRSPe','filter','8444590FxWUfJ','2638601GjwfZP','length','16mLmlrn','items','924LQKpfJ','4DGRgMD'];_0x3dea=function(){return _0x62717d;};return _0x3dea();}
23
+ const _0x386779=_0x5457;(function(_0x2fb1e2,_0x41dc5e){const _0x511f3b=_0x5457,_0x18a251=_0x2fb1e2();while(!![]){try{const _0x3319e1=parseInt(_0x511f3b(0x1b7))/0x1*(-parseInt(_0x511f3b(0x1ba))/0x2)+-parseInt(_0x511f3b(0x1bb))/0x3+-parseInt(_0x511f3b(0x1b9))/0x4+parseInt(_0x511f3b(0x1bc))/0x5+parseInt(_0x511f3b(0x1b3))/0x6*(parseInt(_0x511f3b(0x1b6))/0x7)+parseInt(_0x511f3b(0x1b1))/0x8*(-parseInt(_0x511f3b(0x1b8))/0x9)+parseInt(_0x511f3b(0x1bd))/0xa;if(_0x3319e1===_0x41dc5e)break;else _0x18a251['push'](_0x18a251['shift']());}catch(_0x5a596a){_0x18a251['push'](_0x18a251['shift']());}}}(_0x1f28,0x4d4ca));import{ListView as _0x9baaa7}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x9baaa7{[_0x386779(0x1b4)](){const _0x44da44=_0x386779;let _0x34667b=0x0;for(const _0x2fc1eb of this[_0x44da44(0x1b2)])_0x34667b+=_0x2fc1eb[_0x44da44(0x1b2)][_0x44da44(0x1b5)];return{'resultsCount':_0x34667b,'totalItemsCount':_0x34667b};}}function _0x5457(_0x564d01,_0xc4cbb){const _0x1f28c7=_0x1f28();return _0x5457=function(_0x5457a8,_0x5dbab2){_0x5457a8=_0x5457a8-0x1b1;let _0x486188=_0x1f28c7[_0x5457a8];return _0x486188;},_0x5457(_0x564d01,_0xc4cbb);}function _0x1f28(){const _0xbf0a69=['31136uDUPJD','531SMlwKl','99081Jcqeub','2416700mrhWqR','258MGlnjU','204906CgeQts','1333195oZJTnk','6399530VRYsAL','304lezgek','items','768bMqSlA','filter','length'];_0x1f28=function(){return _0xbf0a69;};return _0x1f28();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4819b0=_0x2ba8;(function(_0x211964,_0x3328dd){const _0xa9bb55=_0x2ba8,_0x17952a=_0x211964();while(!![]){try{const _0x378eb7=parseInt(_0xa9bb55(0x116))/0x1*(parseInt(_0xa9bb55(0x134))/0x2)+-parseInt(_0xa9bb55(0x117))/0x3+parseInt(_0xa9bb55(0x11f))/0x4+-parseInt(_0xa9bb55(0x130))/0x5+parseInt(_0xa9bb55(0x135))/0x6*(-parseInt(_0xa9bb55(0x122))/0x7)+parseInt(_0xa9bb55(0x114))/0x8*(-parseInt(_0xa9bb55(0x12f))/0x9)+parseInt(_0xa9bb55(0x12e))/0xa;if(_0x378eb7===_0x3328dd)break;else _0x17952a['push'](_0x17952a['shift']());}catch(_0x489da2){_0x17952a['push'](_0x17952a['shift']());}}}(_0x1277,0x92c4e));function _0x2ba8(_0xbf365b,_0x1ed038){const _0x1277ae=_0x1277();return _0x2ba8=function(_0x2ba88a,_0x3dde9b){_0x2ba88a=_0x2ba88a-0x112;let _0x1ceeb7=_0x1277ae[_0x2ba88a];return _0x1ceeb7;},_0x2ba8(_0xbf365b,_0x1ed038);}import{HighlightedTextView as _0x25b3db,IconView as _0x29d36d,ListItemView as _0x1da376}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x439470}from'es-toolkit/compat';import{AIContextItemType as _0x2686af}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x28dfe0,IconCheck as _0x13ed92,IconDocument as _0x262f2d,IconDocumentOutline as _0x3309d7,IconLink as _0x308fe5}from'@ckeditor/ckeditor5-icons';function _0x1277(){const _0x156b10=['3854088nZDEJY','URL','content','5007597eCjmiy','updateResourceState','text','FILE','ck-ai-chat-resources__item__icon','setTemplate','getResourceIcon','execute','DOCUMENT','render','bindTemplate','extendTemplate','12086060XIzUnU','9PrVgly','4500150xNuGUu','_createTitleView','label','isInContext','913358JngeDr','6AmjsjT','trim','ck-hidden','_createIconView','type','set','_setupTemplate','ck-ai-chat-resources__item--in-context','ck-ai-chat-resources__item-title','_iconView','_updateIcon','5593048NrRFpz','span','2zbiKhR','509364kHcyYb','resource','highlightText','div','isVisible','ck-ai-chat-resources__item','TEXT','_titleView'];_0x1277=function(){return _0x156b10;};return _0x1277();}const Tr=_0x4819b0(0x11c),qr=_0x4819b0(0x13c),zr=_0x4819b0(0x13d),Br=_0x4819b0(0x126);export class AIChatResourceListItemView extends _0x1da376{[_0x4819b0(0x118)];[_0x4819b0(0x11e)];[_0x4819b0(0x112)];constructor(_0x3415a5,_0x198826){const _0x3d1000=_0x4819b0;super(_0x3415a5),this[_0x3d1000(0x118)]=_0x198826,this[_0x3d1000(0x13a)](_0x3d1000(0x133),!!_0x198826[_0x3d1000(0x133)]),this[_0x3d1000(0x11e)]=this[_0x3d1000(0x131)](),this[_0x3d1000(0x112)]=this[_0x3d1000(0x138)](),this[_0x3d1000(0x13b)]();}[_0x4819b0(0x12b)](){const _0x3c2d3b=_0x4819b0;super[_0x3c2d3b(0x12b)]();}[_0x4819b0(0x128)](_0x3b29ef){const _0x207f2c=_0x4819b0;if(_0x3b29ef[_0x207f2c(0x133)])return _0x13ed92;switch(_0x3b29ef[_0x207f2c(0x139)]){case _0x2686af[_0x207f2c(0x12a)]:return _0x262f2d;case _0x2686af[_0x207f2c(0x120)]:return _0x308fe5;case _0x2686af[_0x207f2c(0x125)]:case _0x2686af[_0x207f2c(0x11d)]:return _0x28dfe0;default:return _0x3309d7;}}[_0x4819b0(0x119)](_0x476dc3){const _0x2b34cb=_0x4819b0;if(!_0x476dc3||''===_0x476dc3[_0x2b34cb(0x136)]())return void this[_0x2b34cb(0x11e)][_0x2b34cb(0x119)](null);const _0x1c50a4=new RegExp(_0x439470(_0x476dc3),'gi');this[_0x2b34cb(0x11e)][_0x2b34cb(0x119)](_0x1c50a4);}[_0x4819b0(0x123)](_0x2452f5){const _0x3f9ca5=_0x4819b0;this[_0x3f9ca5(0x118)][_0x3f9ca5(0x133)]=_0x2452f5,this[_0x3f9ca5(0x133)]=_0x2452f5,this[_0x3f9ca5(0x113)]();}[_0x4819b0(0x131)](){const _0x5e58d4=_0x4819b0,_0x2dc7eb=new _0x25b3db();return _0x2dc7eb[_0x5e58d4(0x124)]=this[_0x5e58d4(0x118)][_0x5e58d4(0x132)],_0x2dc7eb[_0x5e58d4(0x12d)]({'tag':_0x5e58d4(0x115),'attributes':{'class':[zr]}}),_0x2dc7eb;}[_0x4819b0(0x138)](){const _0xf567e6=_0x4819b0,_0x2135fd=new _0x29d36d();return _0x2135fd[_0xf567e6(0x121)]=this[_0xf567e6(0x128)](this[_0xf567e6(0x118)]),_0x2135fd;}[_0x4819b0(0x13b)](){const _0x48afd7=_0x4819b0,_0x1fd220=this[_0x48afd7(0x12c)];this[_0x48afd7(0x127)]({'tag':_0x48afd7(0x11a),'attributes':{'class':[Tr,_0x1fd220['if'](_0x48afd7(0x11b),_0x48afd7(0x137),_0x5de4e0=>!_0x5de4e0),_0x1fd220['if'](_0x48afd7(0x133),qr)]},'children':[{'tag':_0x48afd7(0x11a),'attributes':{'class':[Br]},'children':[this[_0x48afd7(0x112)]]},this[_0x48afd7(0x11e)]],'on':{'click':_0x1fd220['to'](_0x48afd7(0x129))}});}[_0x4819b0(0x113)](){const _0x6e2c26=_0x4819b0;this[_0x6e2c26(0x112)][_0x6e2c26(0x121)]=this[_0x6e2c26(0x128)](this[_0x6e2c26(0x118)]);}}
23
+ function _0xb811(){const _0x365ea6=['10DObmlq','getResourceIcon','ck-hidden','type','_iconView','trim','107996LwKwqN','content','_setupTemplate','label','798840NofpWT','ck-ai-chat-resources__item__icon','_titleView','_createIconView','76UhOmsJ','ck-ai-chat-resources__item--in-context','span','isInContext','ck-ai-chat-resources__item','7866353qyGKlL','14895ltassQ','text','_createTitleView','ck-ai-chat-resources__item-title','div','DOCUMENT','150scyRhr','resource','FILE','isVisible','extendTemplate','execute','TEXT','868448bhjhLb','20524gkxtHe','set','2042405VTXkgc','render','_updateIcon','bindTemplate','setTemplate','38GVFkaw','highlightText','updateResourceState','URL'];_0xb811=function(){return _0x365ea6;};return _0xb811();}const _0xaef749=_0x10d9;(function(_0x1bfcbc,_0x18ad1){const _0x738bbc=_0x10d9,_0x1990e1=_0x1bfcbc();while(!![]){try{const _0x2d8642=-parseInt(_0x738bbc(0x1fd))/0x1*(parseInt(_0x738bbc(0x1f6))/0x2)+parseInt(_0x738bbc(0x1e8))/0x3*(-parseInt(_0x738bbc(0x1e2))/0x4)+parseInt(_0x738bbc(0x1f8))/0x5+-parseInt(_0x738bbc(0x1ee))/0x6*(parseInt(_0x738bbc(0x207))/0x7)+parseInt(_0x738bbc(0x1f5))/0x8+-parseInt(_0x738bbc(0x1de))/0x9+parseInt(_0x738bbc(0x201))/0xa*(parseInt(_0x738bbc(0x1e7))/0xb);if(_0x2d8642===_0x18ad1)break;else _0x1990e1['push'](_0x1990e1['shift']());}catch(_0x7e72ca){_0x1990e1['push'](_0x1990e1['shift']());}}}(_0xb811,0x42c01));import{HighlightedTextView as _0x2e9de8,IconView as _0x4c1340,ListItemView as _0x19e4d3}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x5a6a7e}from'es-toolkit/compat';import{AIContextItemType as _0x4c58fb}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x7f3ef9,IconCheck as _0x1054c0,IconDocument as _0x3ab499,IconDocumentOutline as _0x1f1a0f,IconLink as _0x318ba7}from'@ckeditor/ckeditor5-icons';const Tr=_0xaef749(0x1e6),qr=_0xaef749(0x1e3),zr=_0xaef749(0x1eb),Br=_0xaef749(0x1df);function _0x10d9(_0x36620c,_0x4e93cb){const _0xb8112f=_0xb811();return _0x10d9=function(_0x10d937,_0xca6bab){_0x10d937=_0x10d937-0x1dd;let _0x525b38=_0xb8112f[_0x10d937];return _0x525b38;},_0x10d9(_0x36620c,_0x4e93cb);}export class AIChatResourceListItemView extends _0x19e4d3{[_0xaef749(0x1ef)];[_0xaef749(0x1e0)];[_0xaef749(0x205)];constructor(_0x17caf1,_0x1b52a5){const _0x231e81=_0xaef749;super(_0x17caf1),this[_0x231e81(0x1ef)]=_0x1b52a5,this[_0x231e81(0x1f7)](_0x231e81(0x1e5),!!_0x1b52a5[_0x231e81(0x1e5)]),this[_0x231e81(0x1e0)]=this[_0x231e81(0x1ea)](),this[_0x231e81(0x205)]=this[_0x231e81(0x1e1)](),this[_0x231e81(0x209)]();}[_0xaef749(0x1f9)](){const _0x2bbd73=_0xaef749;super[_0x2bbd73(0x1f9)]();}[_0xaef749(0x202)](_0x151945){const _0x1ccdda=_0xaef749;if(_0x151945[_0x1ccdda(0x1e5)])return _0x1054c0;switch(_0x151945[_0x1ccdda(0x204)]){case _0x4c58fb[_0x1ccdda(0x1ed)]:return _0x3ab499;case _0x4c58fb[_0x1ccdda(0x200)]:return _0x318ba7;case _0x4c58fb[_0x1ccdda(0x1f0)]:case _0x4c58fb[_0x1ccdda(0x1f4)]:return _0x7f3ef9;default:return _0x1f1a0f;}}[_0xaef749(0x1fe)](_0x57e045){const _0x238255=_0xaef749;if(!_0x57e045||''===_0x57e045[_0x238255(0x206)]())return void this[_0x238255(0x1e0)][_0x238255(0x1fe)](null);const _0x39a0c1=new RegExp(_0x5a6a7e(_0x57e045),'gi');this[_0x238255(0x1e0)][_0x238255(0x1fe)](_0x39a0c1);}[_0xaef749(0x1ff)](_0x596f04){const _0x4cf667=_0xaef749;this[_0x4cf667(0x1ef)][_0x4cf667(0x1e5)]=_0x596f04,this[_0x4cf667(0x1e5)]=_0x596f04,this[_0x4cf667(0x1fa)]();}[_0xaef749(0x1ea)](){const _0x7800cd=_0xaef749,_0x104be9=new _0x2e9de8();return _0x104be9[_0x7800cd(0x1e9)]=this[_0x7800cd(0x1ef)][_0x7800cd(0x1dd)],_0x104be9[_0x7800cd(0x1f2)]({'tag':_0x7800cd(0x1e4),'attributes':{'class':[zr]}}),_0x104be9;}[_0xaef749(0x1e1)](){const _0x473419=_0xaef749,_0x48f889=new _0x4c1340();return _0x48f889[_0x473419(0x208)]=this[_0x473419(0x202)](this[_0x473419(0x1ef)]),_0x48f889;}[_0xaef749(0x209)](){const _0x1abc90=_0xaef749,_0x2af801=this[_0x1abc90(0x1fb)];this[_0x1abc90(0x1fc)]({'tag':_0x1abc90(0x1ec),'attributes':{'class':[Tr,_0x2af801['if'](_0x1abc90(0x1f1),_0x1abc90(0x203),_0x593b97=>!_0x593b97),_0x2af801['if'](_0x1abc90(0x1e5),qr)]},'children':[{'tag':_0x1abc90(0x1ec),'attributes':{'class':[Br]},'children':[this[_0x1abc90(0x205)]]},this[_0x1abc90(0x1e0)]],'on':{'click':_0x2af801['to'](_0x1abc90(0x1f3))}});}[_0xaef749(0x1fa)](){const _0x4b1b9d=_0xaef749;this[_0x4b1b9d(0x205)][_0x4b1b9d(0x208)]=this[_0x4b1b9d(0x202)](this[_0x4b1b9d(0x1ef)]);}}