@ckeditor/ckeditor5-ai 47.7.2-alpha.0 → 47.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  8. package/src/aiassistant/aiassistantediting.js +1 -1
  9. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  10. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  12. package/src/aiassistant/ui/form/aiformview.js +1 -1
  13. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  14. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  15. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  16. package/src/aiballoon/aiballoon.js +1 -1
  17. package/src/aichat/aichat.js +1 -1
  18. package/src/aichat/aichatballoon.js +1 -1
  19. package/src/aichat/aichatcontroller.js +1 -1
  20. package/src/aichat/aichatui.js +1 -1
  21. package/src/aichat/model/aichatcontext.js +1 -1
  22. package/src/aichat/model/aichatconversation.js +1 -1
  23. package/src/aichat/model/aichatinteraction.js +1 -1
  24. package/src/aichat/ui/aichatballoonview.js +1 -1
  25. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  26. package/src/aichat/ui/aichatfeedview.js +1 -1
  27. package/src/aichat/ui/aichatheaderview.js +1 -1
  28. package/src/aichat/ui/aichatview.js +1 -1
  29. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  30. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  31. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  32. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  33. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  34. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  35. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  36. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  37. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  38. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  39. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  40. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  41. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  42. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  43. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  44. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  46. package/src/aichat/utils/eventnames.js +1 -1
  47. package/src/aichathistory/aichathistory.js +1 -1
  48. package/src/aichathistory/aichathistorycontroller.js +1 -1
  49. package/src/aichathistory/aichathistoryui.js +1 -1
  50. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  51. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  52. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  53. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  54. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  55. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  56. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  57. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  58. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  59. package/src/aicore/aiconnector.js +1 -1
  60. package/src/aicore/aiediting.js +1 -1
  61. package/src/aicore/model/aiinteraction.js +1 -1
  62. package/src/aicore/model/aimodels.js +1 -1
  63. package/src/aicore/model/aireply.js +1 -1
  64. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  65. package/src/aicore/pipeline/airesponseparser.js +2 -2
  66. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  67. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  68. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  69. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  70. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  71. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  72. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  75. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  76. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  77. package/src/aicore/utils/documentposition.js +1 -1
  78. package/src/aicore/utils/documentrange.js +1 -1
  79. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  80. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  81. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  82. package/src/aicore/utils/htmlparser.js +1 -1
  83. package/src/aicore/utils/htmlstreamer.js +1 -1
  84. package/src/aieditorintegration/aieditorintegration.js +1 -1
  85. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  86. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  87. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  88. package/src/aiquickactions/aiquickactionsui.js +1 -1
  89. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  90. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  91. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  92. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  93. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  94. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  95. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  96. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  97. package/src/aireviewcore/aireviewcoreui.js +1 -1
  98. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  99. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  100. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  101. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  102. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  103. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  104. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  105. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  106. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  107. package/src/aireviewmode/aireviewmode.js +1 -1
  108. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  109. package/src/aitabs/aitabs.js +1 -1
  110. package/src/aitranslate/aitranslate.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3886(_0x1a26f,_0x1f027e){var _0x1d0152=_0x1d01();return _0x3886=function(_0x388616,_0x544a4d){_0x388616=_0x388616-0x14a;var _0x5dac26=_0x1d0152[_0x388616];return _0x5dac26;},_0x3886(_0x1a26f,_0x1f027e);}var _0x2ec662=_0x3886;(function(_0xdc3219,_0x52b3ea){var _0x539663=_0x3886,_0x4ffd5a=_0xdc3219();while(!![]){try{var _0x21ed37=-parseInt(_0x539663(0x162))/0x1*(-parseInt(_0x539663(0x14a))/0x2)+-parseInt(_0x539663(0x152))/0x3+parseInt(_0x539663(0x15f))/0x4*(parseInt(_0x539663(0x159))/0x5)+-parseInt(_0x539663(0x153))/0x6*(parseInt(_0x539663(0x15a))/0x7)+parseInt(_0x539663(0x15e))/0x8*(-parseInt(_0x539663(0x15c))/0x9)+parseInt(_0x539663(0x14c))/0xa+-parseInt(_0x539663(0x160))/0xb*(-parseInt(_0x539663(0x157))/0xc);if(_0x21ed37===_0x52b3ea)break;else _0x4ffd5a['push'](_0x4ffd5a['shift']());}catch(_0x42dae8){_0x4ffd5a['push'](_0x4ffd5a['shift']());}}}(_0x1d01,0xc4f39));import{AICapabilities as _0xe7d83a}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5a4919}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3a2d0e}from'./aichatcontext.js';function _0x1d01(){var _0x14af98=['6395880ogSpgf','attributes','conversationId','getCapabilitiesRequestData','contextItems','queryAssistant','4466997DsXjkf','8130iQqXBg','connector','current-document','userMessage','36IRYgBA','model','65VtYSVa','3787PJHKuO','getDocumentContext','9oyMbEw','sendRequest','7717128ubqYTa','172504GLgFmr','5852363XKtgIq','capabilities','419iiWyhb','get','5714ZfKDin','mapContextItemsToRequestData'];_0x1d01=function(){return _0x14af98;};return _0x1d01();}export class AIChatInteraction extends _0x5a4919{[_0x2ec662(0x156)];[_0x2ec662(0x14e)];[_0x2ec662(0x150)]=new Map();[_0x2ec662(0x158)];[_0x2ec662(0x14d)];constructor(_0x97b1b6){var _0x5bc6df=_0x2ec662;super(_0x97b1b6),this[_0x5bc6df(0x14e)]=_0x97b1b6[_0x5bc6df(0x14e)],this[_0x5bc6df(0x150)]=_0x97b1b6[_0x5bc6df(0x150)],this[_0x5bc6df(0x161)]=_0x97b1b6[_0x5bc6df(0x161)],this[_0x5bc6df(0x156)]=_0x97b1b6[_0x5bc6df(0x156)],this[_0x5bc6df(0x158)]=_0x97b1b6[_0x5bc6df(0x158)],this[_0x5bc6df(0x14d)]=_0x97b1b6[_0x5bc6df(0x14d)];}async[_0x2ec662(0x15d)](){var _0x399692=_0x2ec662;return this[_0x399692(0x154)][_0x399692(0x151)]({'message':this[_0x399692(0x156)],'conversationId':this[_0x399692(0x14e)],'parts':_0x3a2d0e[_0x399692(0x14b)](this[_0x399692(0x150)]),'capabilities':_0xe7d83a[_0x399692(0x14f)](this[_0x399692(0x161)]),'model':this[_0x399692(0x158)],'attributes':this[_0x399692(0x14d)]});}[_0x2ec662(0x15b)](){var _0x20a99d=_0x2ec662;return this[_0x20a99d(0x150)][_0x20a99d(0x163)](_0x20a99d(0x155));}}
23
+ var _0x2c1c35=_0x5dc2;(function(_0x3944f9,_0x415f06){var _0x595270=_0x5dc2,_0x57bed0=_0x3944f9();while(!![]){try{var _0x5e5973=parseInt(_0x595270(0x181))/0x1*(parseInt(_0x595270(0x18a))/0x2)+parseInt(_0x595270(0x18f))/0x3+parseInt(_0x595270(0x191))/0x4*(-parseInt(_0x595270(0x18d))/0x5)+parseInt(_0x595270(0x184))/0x6*(parseInt(_0x595270(0x187))/0x7)+-parseInt(_0x595270(0x190))/0x8+parseInt(_0x595270(0x180))/0x9+parseInt(_0x595270(0x18c))/0xa;if(_0x5e5973===_0x415f06)break;else _0x57bed0['push'](_0x57bed0['shift']());}catch(_0x5f5549){_0x57bed0['push'](_0x57bed0['shift']());}}}(_0x39cd,0xb7447));import{AICapabilities as _0x23873a}from'../../aicore/model/aicapabilities.js';function _0x39cd(){var _0x56d167=['14646880AEFsga','15HWpfna','userMessage','737562sEhGoK','10500784YaHbMp','499192nHuYiI','model','connector','attributes','sendRequest','contextItems','current-document','1439550wluqVr','1839eglNrI','queryAssistant','getCapabilitiesRequestData','132vcTIfX','conversationId','get','47635GvCHRI','capabilities','getDocumentContext','454pcwwAI','mapContextItemsToRequestData'];_0x39cd=function(){return _0x56d167;};return _0x39cd();}import{AIInteraction as _0x38c980}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x14c200}from'./aichatcontext.js';function _0x5dc2(_0x4eb708,_0x273dd3){var _0x39cd1f=_0x39cd();return _0x5dc2=function(_0x5dc2b6,_0x164274){_0x5dc2b6=_0x5dc2b6-0x17b;var _0x522f7c=_0x39cd1f[_0x5dc2b6];return _0x522f7c;},_0x5dc2(_0x4eb708,_0x273dd3);}export class AIChatInteraction extends _0x38c980{[_0x2c1c35(0x18e)];[_0x2c1c35(0x185)];[_0x2c1c35(0x17e)]=new Map();[_0x2c1c35(0x192)];[_0x2c1c35(0x17c)];constructor(_0x54ab16){var _0x4c135f=_0x2c1c35;super(_0x54ab16),this[_0x4c135f(0x185)]=_0x54ab16[_0x4c135f(0x185)],this[_0x4c135f(0x17e)]=_0x54ab16[_0x4c135f(0x17e)],this[_0x4c135f(0x188)]=_0x54ab16[_0x4c135f(0x188)],this[_0x4c135f(0x18e)]=_0x54ab16[_0x4c135f(0x18e)],this[_0x4c135f(0x192)]=_0x54ab16[_0x4c135f(0x192)],this[_0x4c135f(0x17c)]=_0x54ab16[_0x4c135f(0x17c)];}async[_0x2c1c35(0x17d)](){var _0x27ff89=_0x2c1c35;return this[_0x27ff89(0x17b)][_0x27ff89(0x182)]({'message':this[_0x27ff89(0x18e)],'conversationId':this[_0x27ff89(0x185)],'parts':_0x14c200[_0x27ff89(0x18b)](this[_0x27ff89(0x17e)]),'capabilities':_0x23873a[_0x27ff89(0x183)](this[_0x27ff89(0x188)]),'model':this[_0x27ff89(0x192)],'attributes':this[_0x27ff89(0x17c)]});}[_0x2c1c35(0x189)](){var _0x4c0a4b=_0x2c1c35;return this[_0x4c0a4b(0x17e)][_0x4c0a4b(0x186)](_0x4c0a4b(0x17f));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x478421=_0x1aa1;(function(_0x295f13,_0x3ad7e7){const _0x54043e=_0x1aa1,_0x331bfb=_0x295f13();while(!![]){try{const _0x591686=-parseInt(_0x54043e(0x221))/0x1*(parseInt(_0x54043e(0x1e9))/0x2)+parseInt(_0x54043e(0x1e1))/0x3+parseInt(_0x54043e(0x1fa))/0x4*(parseInt(_0x54043e(0x1ee))/0x5)+parseInt(_0x54043e(0x1f8))/0x6*(parseInt(_0x54043e(0x1e7))/0x7)+-parseInt(_0x54043e(0x223))/0x8+-parseInt(_0x54043e(0x219))/0x9*(parseInt(_0x54043e(0x1f7))/0xa)+parseInt(_0x54043e(0x226))/0xb;if(_0x591686===_0x3ad7e7)break;else _0x331bfb['push'](_0x331bfb['shift']());}catch(_0x1c5d6a){_0x331bfb['push'](_0x331bfb['shift']());}}}(_0x5c8f,0x5798a));import{FocusTracker as _0x3405fe,KeystrokeHandler as _0x1b5439}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x2b1862}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x5c8f(){const _0x11e0e6=['execute','bind','10suvaOM','24iChToA','listenTo','1396OHWFTf','applySuggestion','_createNextButtonView','showPrevious','AI_BALLOON_NEXT_LABEL','ck-ai-chat-balloon-main','isShowChangesOn','element','div','children','isEnabled','delegate','_partToolbarView','focus','change:isTrackChangesOn','_focusables','AI_BALLOON_PREVIOUS_LABEL','destroy','setTemplate','keepErrors','toggleSuggestionDisplayMode','tab','ck-ai-chat-balloon-main_state_','locale','focusLast','includes','bindTemplate','ck-ai-chat-balloon__toolbar-container','add','has','_keystrokes','5104881cQuDeN','toggleRotatorButtonsVisibility','hideError','_stateView','showDiff','_focusTracker','focusFirst','showNext','7owIuFz','setButtonsVisibility','472840GlujNI','_streamableContentView','showBlockingError','6920573ztekpB','_state','focusCycler','_miniToolbarView','change:_state','render','_togglePartToolbarButtonsVisibility','togglePartToolbarEnabled','_isErrorVisible','addMany','set','shift\x20+\x20tab','nextButtonView','isTrackChangesOn','toggleShowChanges','updateContent','61974fbqGAo','update','insertSuggestion','_toolbarContainerView','fire','setState','76202FVTDGF','rejectSuggestion','97122qYbPjp','isVisible','_config','_createPreviousButtonView','_errorView','9050oUGKJP','previousButtonView','showError','pending','full','availableActions','createCollection'];_0x5c8f=function(){return _0x11e0e6;};return _0x5c8f();}import{AISuggestionContentPartToolbarView as _0x5ad5d4}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x8ecdaf}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';function _0x1aa1(_0x3b34d3,_0x445cb){const _0x5c8ff0=_0x5c8f();return _0x1aa1=function(_0x1aa171,_0x39ef2d){_0x1aa171=_0x1aa171-0x1d6;let _0x1c201e=_0x5c8ff0[_0x1aa171];return _0x1c201e;},_0x1aa1(_0x3b34d3,_0x445cb);}import{AIBalloonView as _0x1cc9b4}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x157bff,FocusCycler as _0x29fcc2,View as _0x464400}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x4cfc1b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x340878,IconChevronUp as _0x3832c0}from'ckeditor5/src/icons.js';import{getTranslation as _0x426a56}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x1cc9b4{[_0x478421(0x203)];[_0x478421(0x1dd)];[_0x478421(0x1ef)];[_0x478421(0x228)];[_0x478421(0x209)];[_0x478421(0x21e)];[_0x478421(0x218)];[_0x478421(0x1eb)];[_0x478421(0x224)];[_0x478421(0x1e4)];[_0x478421(0x206)];[_0x478421(0x21c)];[_0x478421(0x229)];constructor(_0x3a6cbe,_0x453ee3){const _0x5a44c4=_0x478421;super(_0x3a6cbe);const _0x4bb2dc=this[_0x5a44c4(0x214)];this[_0x5a44c4(0x1db)](_0x5a44c4(0x21d),!0x1),this[_0x5a44c4(0x1db)](_0x5a44c4(0x227),_0x5a44c4(0x1f1)),this[_0x5a44c4(0x21e)]=new _0x3405fe(),this[_0x5a44c4(0x218)]=new _0x1b5439(),this[_0x5a44c4(0x209)]=this[_0x5a44c4(0x1f4)](),this[_0x5a44c4(0x228)]=new _0x29fcc2({'focusables':this[_0x5a44c4(0x209)],'focusTracker':this[_0x5a44c4(0x21e)],'keystrokeHandler':this[_0x5a44c4(0x218)],'actions':{'focusPrevious':_0x5a44c4(0x1dc),'focusNext':_0x5a44c4(0x20f)}}),this[_0x5a44c4(0x1eb)]=_0x453ee3,this[_0x5a44c4(0x1dd)]=this[_0x5a44c4(0x1fc)](),this[_0x5a44c4(0x1ef)]=this[_0x5a44c4(0x1ec)](),this[_0x5a44c4(0x224)]=new _0x2b1862(_0x3a6cbe),this[_0x5a44c4(0x206)]=new _0x5ad5d4(_0x3a6cbe,_0x453ee3[_0x5a44c4(0x1f3)]),this[_0x5a44c4(0x206)][_0x5a44c4(0x205)](_0x5a44c4(0x1fb),_0x5a44c4(0x1e3),_0x5a44c4(0x1e8))['to'](this),this[_0x5a44c4(0x1d7)](_0x453ee3),this[_0x5a44c4(0x21c)]=new _0x4cfc1b(_0x3a6cbe),this[_0x5a44c4(0x21c)][_0x5a44c4(0x1ea)]=!0x1,this[_0x5a44c4(0x229)]=new _0x8ecdaf(_0x3a6cbe,{'showChanges':_0x5a44c4(0x1f2)}),this[_0x5a44c4(0x229)][_0x5a44c4(0x1f6)](_0x5a44c4(0x200))['to'](this,_0x5a44c4(0x21d)),this[_0x5a44c4(0x229)]['on'](_0x5a44c4(0x1df),()=>{const _0x3c344a=_0x5a44c4;this[_0x3c344a(0x1e5)](_0x3c344a(0x20e));}),this[_0x5a44c4(0x1e4)]=new AIChatBalloonToolbarContainerView(_0x3a6cbe,[this[_0x5a44c4(0x206)],this[_0x5a44c4(0x21c)],this[_0x5a44c4(0x229)]]),this[_0x5a44c4(0x203)]=this[_0x5a44c4(0x1f4)]([this[_0x5a44c4(0x224)],this[_0x5a44c4(0x1e4)]]),this['on'](_0x5a44c4(0x22a),(_0x2cc9c0,_0x4c5e46,_0x15e747,_0x2dcc93)=>{const _0x38e4f4=_0x5a44c4;let _0x329e49,_0x16695c;_0x38e4f4(0x1f1)===_0x2dcc93?(_0x329e49=this[_0x38e4f4(0x206)],_0x16695c=this[_0x38e4f4(0x21c)]):(_0x329e49=this[_0x38e4f4(0x21c)],_0x16695c=this[_0x38e4f4(0x206)]),this[_0x38e4f4(0x21c)][_0x38e4f4(0x1e6)](_0x15e747),_0x329e49[_0x38e4f4(0x1ea)]=!0x1,_0x16695c[_0x38e4f4(0x1ea)]=!0x0;}),this[_0x5a44c4(0x20c)]({'tag':_0x5a44c4(0x202),'attributes':{'class':['ck',_0x5a44c4(0x1ff),_0x4bb2dc['to'](_0x5a44c4(0x227),_0x269186=>_0x5a44c4(0x210)+_0x269186)]},'children':this[_0x5a44c4(0x203)]}),this['on'](_0x5a44c4(0x208),()=>{const _0x2e15e8=_0x5a44c4;this[_0x2e15e8(0x1d7)](_0x453ee3);});}[_0x478421(0x1d6)](){const _0x3e52ab=_0x478421;super[_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x1dd)][_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x1ef)][_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x201)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x1dd)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x1ef)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x229)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x206)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x201)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x1dd)][_0x3e52ab(0x201)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x1ef)][_0x3e52ab(0x201)]),this[_0x3e52ab(0x209)][_0x3e52ab(0x1da)]([this[_0x3e52ab(0x1dd)],this[_0x3e52ab(0x1ef)],this[_0x3e52ab(0x206)],this[_0x3e52ab(0x229)]]);}[_0x478421(0x20b)](){const _0x54c404=_0x478421;super[_0x54c404(0x20b)](),this[_0x54c404(0x1ef)][_0x54c404(0x20b)](),this[_0x54c404(0x1dd)][_0x54c404(0x20b)]();}[_0x478421(0x207)](){const _0x1b0e23=_0x478421;this[_0x1b0e23(0x228)][_0x1b0e23(0x21f)]();}[_0x478421(0x212)](){const _0x48ed60=_0x478421;this[_0x48ed60(0x228)][_0x48ed60(0x212)]();}async[_0x478421(0x1e0)](_0x35b744){const _0x9941d0=_0x478421;_0x35b744?.[_0x9941d0(0x20d)]||this[_0x9941d0(0x21b)](),await this[_0x9941d0(0x224)][_0x9941d0(0x1e2)](_0x35b744);}[_0x478421(0x1e6)](_0x41a7ca){const _0x43816d=_0x478421;this[_0x43816d(0x227)]=_0x41a7ca;}[_0x478421(0x1f0)](_0x43febb){const _0x2d88a3=_0x478421;super[_0x2d88a3(0x1f0)](_0x43febb),this[_0x2d88a3(0x203)][_0x2d88a3(0x217)](this[_0x2d88a3(0x1ed)])||this[_0x2d88a3(0x203)][_0x2d88a3(0x216)](this[_0x2d88a3(0x1ed)],0x0);}[_0x478421(0x21b)](){const _0x28d0ed=_0x478421;this[_0x28d0ed(0x1d9)]&&(super[_0x28d0ed(0x21b)](),this[_0x28d0ed(0x1d8)](!0x0));}[_0x478421(0x225)](_0x4637f2){const _0x2a84ab=_0x478421;super[_0x2a84ab(0x225)](_0x4637f2),this[_0x2a84ab(0x1d8)](!0x1);}[_0x478421(0x21a)](_0x469083){const _0x5edba5=_0x478421;this[_0x5edba5(0x1dd)][_0x5edba5(0x1ea)]=this[_0x5edba5(0x1ef)][_0x5edba5(0x1ea)]=_0x469083;}[_0x478421(0x1d8)](_0x272e4c){const _0x581513=_0x478421;this[_0x581513(0x206)][_0x581513(0x204)]=_0x272e4c;}[_0x478421(0x1d7)]({showApplyButton:_0x52a080,showSuggestButton:_0x1555d5}){const _0x228d70=_0x478421;_0x52a080=_0x52a080&&!this[_0x228d70(0x1de)]&&this[_0x228d70(0x1eb)][_0x228d70(0x1f3)][_0x228d70(0x213)](_0x228d70(0x1fb)),_0x1555d5=_0x1555d5&&this[_0x228d70(0x1eb)][_0x228d70(0x1f3)][_0x228d70(0x213)](_0x228d70(0x1e3)),this[_0x228d70(0x206)][_0x228d70(0x222)]({'showApplyButton':_0x52a080,'showSuggestButton':_0x1555d5});}[_0x478421(0x1fc)](){const _0x5f5c18=_0x478421,_0x3dcc70=new _0x157bff(this[_0x5f5c18(0x211)]);return _0x3dcc70[_0x5f5c18(0x1db)]({'icon':_0x340878,'label':_0x426a56(this[_0x5f5c18(0x211)],_0x5f5c18(0x1fe)),'isVisible':!0x0}),_0x3dcc70['on'](_0x5f5c18(0x1f5),()=>{const _0x1de86b=_0x5f5c18;this[_0x1de86b(0x1e5)](_0x1de86b(0x220));}),_0x3dcc70;}[_0x478421(0x1ec)](){const _0x47cf2c=_0x478421,_0x5839d7=new _0x157bff(this[_0x47cf2c(0x211)]);return _0x5839d7[_0x47cf2c(0x1db)]({'icon':_0x3832c0,'label':_0x426a56(this[_0x47cf2c(0x211)],_0x47cf2c(0x20a)),'isVisible':!0x0}),_0x5839d7['on'](_0x47cf2c(0x1f5),()=>{const _0x373f03=_0x47cf2c;this[_0x373f03(0x1e5)](_0x373f03(0x1fd));}),_0x5839d7;}}class AIChatBalloonToolbarContainerView extends _0x464400{constructor(_0x3b48b1,_0x47afc8){const _0x2ec5cd=_0x478421;super(_0x3b48b1),this[_0x2ec5cd(0x20c)]({'tag':_0x2ec5cd(0x202),'attributes':{'class':[_0x2ec5cd(0x215)]},'children':_0x47afc8});}}
23
+ const _0xe8a479=_0x1b89;(function(_0x17539c,_0x1ee796){const _0x48d476=_0x1b89,_0x51193b=_0x17539c();while(!![]){try{const _0x35491a=parseInt(_0x48d476(0x159))/0x1+parseInt(_0x48d476(0x16e))/0x2*(parseInt(_0x48d476(0x169))/0x3)+parseInt(_0x48d476(0x156))/0x4*(-parseInt(_0x48d476(0x152))/0x5)+parseInt(_0x48d476(0x163))/0x6*(parseInt(_0x48d476(0x17c))/0x7)+-parseInt(_0x48d476(0x18c))/0x8+-parseInt(_0x48d476(0x155))/0x9*(parseInt(_0x48d476(0x1a0))/0xa)+-parseInt(_0x48d476(0x194))/0xb*(-parseInt(_0x48d476(0x193))/0xc);if(_0x35491a===_0x1ee796)break;else _0x51193b['push'](_0x51193b['shift']());}catch(_0x154845){_0x51193b['push'](_0x51193b['shift']());}}}(_0x442d,0x19db0));import{FocusTracker as _0x19d1ec,KeystrokeHandler as _0x3f809b}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x1afe16}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0xa47c17}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';function _0x442d(){const _0x185c3e=['keepErrors','setState','execute','focus','showBlockingError','_stateView','_keystrokes','destroy','rejectSuggestion','_state','insertSuggestion','1576670CelZLT','update','change:isTrackChangesOn','_toolbarContainerView','showError','nextButtonView','shift\x20+\x20tab','children','94555RtrpWM','updateContent','tab','9BJhLTy','12jCPRDx','AI_BALLOON_PREVIOUS_LABEL','listenTo','44140xMASKK','locale','_focusTracker','bind','isTrackChangesOn','ck-ai-chat-balloon-main_state_','toggleShowChanges','hideError','_config','isVisible','2454VMeZjI','pending','setTemplate','full','showDiff','applySuggestion','3rawqOD','showNext','_createNextButtonView','availableActions','createCollection','149878Svuqwx','isEnabled','includes','setButtonsVisibility','_miniToolbarView','element','focusCycler','delegate','_errorView','has','togglePartToolbarEnabled','change:_state','_streamableContentView','toggleSuggestionDisplayMode','1323kYGylq','previousButtonView','_isErrorVisible','set','ck-ai-chat-balloon-main','_createPreviousButtonView','showPrevious','add','focusFirst','bindTemplate','_togglePartToolbarButtonsVisibility','_focusables','addMany','focusLast','fire','div','1032672WdIXpm','AI_BALLOON_NEXT_LABEL','toggleRotatorButtonsVisibility','ck-ai-chat-balloon__toolbar-container','isShowChangesOn','render','_partToolbarView','336KiOBTo','99396iqjXdZ'];_0x442d=function(){return _0x185c3e;};return _0x442d();}import{AIMiniToolbarView as _0x568330}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x27edcf}from'../../aiballoon/ui/aiballoonview.js';function _0x1b89(_0xe443d8,_0x5ccc66){const _0x442d50=_0x442d();return _0x1b89=function(_0x1b89cf,_0x56342d){_0x1b89cf=_0x1b89cf-0x14e;let _0x2b947c=_0x442d50[_0x1b89cf];return _0x2b947c;},_0x1b89(_0xe443d8,_0x5ccc66);}import{ButtonView as _0x2cef6a,FocusCycler as _0xebb36f,View as _0x3d2785}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x411a71}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x533d33,IconChevronUp as _0x1468fc}from'ckeditor5/src/icons.js';import{getTranslation as _0x1c74bf}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x27edcf{[_0xe8a479(0x151)];[_0xe8a479(0x14f)];[_0xe8a479(0x17d)];[_0xe8a479(0x174)];[_0xe8a479(0x187)];[_0xe8a479(0x15b)];[_0xe8a479(0x19b)];[_0xe8a479(0x161)];[_0xe8a479(0x17a)];[_0xe8a479(0x1a3)];[_0xe8a479(0x192)];[_0xe8a479(0x19a)];[_0xe8a479(0x172)];constructor(_0xac1fd2,_0x62eb4c){const _0x51cc7a=_0xe8a479;super(_0xac1fd2);const _0x59fc4d=this[_0x51cc7a(0x185)];this[_0x51cc7a(0x17f)](_0x51cc7a(0x167),!0x1),this[_0x51cc7a(0x17f)](_0x51cc7a(0x19e),_0x51cc7a(0x164)),this[_0x51cc7a(0x15b)]=new _0x19d1ec(),this[_0x51cc7a(0x19b)]=new _0x3f809b(),this[_0x51cc7a(0x187)]=this[_0x51cc7a(0x16d)](),this[_0x51cc7a(0x174)]=new _0xebb36f({'focusables':this[_0x51cc7a(0x187)],'focusTracker':this[_0x51cc7a(0x15b)],'keystrokeHandler':this[_0x51cc7a(0x19b)],'actions':{'focusPrevious':_0x51cc7a(0x150),'focusNext':_0x51cc7a(0x154)}}),this[_0x51cc7a(0x161)]=_0x62eb4c,this[_0x51cc7a(0x14f)]=this[_0x51cc7a(0x16b)](),this[_0x51cc7a(0x17d)]=this[_0x51cc7a(0x181)](),this[_0x51cc7a(0x17a)]=new _0x1afe16(_0xac1fd2),this[_0x51cc7a(0x192)]=new _0xa47c17(_0xac1fd2,_0x62eb4c[_0x51cc7a(0x16c)]),this[_0x51cc7a(0x192)][_0x51cc7a(0x175)](_0x51cc7a(0x168),_0x51cc7a(0x19f),_0x51cc7a(0x19d))['to'](this),this[_0x51cc7a(0x186)](_0x62eb4c),this[_0x51cc7a(0x19a)]=new _0x411a71(_0xac1fd2),this[_0x51cc7a(0x19a)][_0x51cc7a(0x162)]=!0x1,this[_0x51cc7a(0x172)]=new _0x568330(_0xac1fd2,{'showChanges':_0x51cc7a(0x166)}),this[_0x51cc7a(0x172)][_0x51cc7a(0x15c)](_0x51cc7a(0x190))['to'](this,_0x51cc7a(0x167)),this[_0x51cc7a(0x172)]['on'](_0x51cc7a(0x15f),()=>{const _0x5f0ace=_0x51cc7a;this[_0x5f0ace(0x18a)](_0x5f0ace(0x17b));}),this[_0x51cc7a(0x1a3)]=new AIChatBalloonToolbarContainerView(_0xac1fd2,[this[_0x51cc7a(0x192)],this[_0x51cc7a(0x19a)],this[_0x51cc7a(0x172)]]),this[_0x51cc7a(0x151)]=this[_0x51cc7a(0x16d)]([this[_0x51cc7a(0x17a)],this[_0x51cc7a(0x1a3)]]),this['on'](_0x51cc7a(0x179),(_0x51802e,_0x5b4aa3,_0x2ecd2f,_0x3c58e5)=>{const _0xa7dcab=_0x51cc7a;let _0x5a3115,_0x22801e;_0xa7dcab(0x164)===_0x3c58e5?(_0x5a3115=this[_0xa7dcab(0x192)],_0x22801e=this[_0xa7dcab(0x19a)]):(_0x5a3115=this[_0xa7dcab(0x19a)],_0x22801e=this[_0xa7dcab(0x192)]),this[_0xa7dcab(0x19a)][_0xa7dcab(0x196)](_0x2ecd2f),_0x5a3115[_0xa7dcab(0x162)]=!0x1,_0x22801e[_0xa7dcab(0x162)]=!0x0;}),this[_0x51cc7a(0x165)]({'tag':_0x51cc7a(0x18b),'attributes':{'class':['ck',_0x51cc7a(0x180),_0x59fc4d['to'](_0x51cc7a(0x19e),_0x8abb40=>_0x51cc7a(0x15e)+_0x8abb40)]},'children':this[_0x51cc7a(0x151)]}),this['on'](_0x51cc7a(0x1a2),()=>{const _0x4d0a80=_0x51cc7a;this[_0x4d0a80(0x186)](_0x62eb4c);});}[_0xe8a479(0x191)](){const _0x391113=_0xe8a479;super[_0x391113(0x191)](),this[_0x391113(0x14f)][_0x391113(0x191)](),this[_0x391113(0x17d)][_0x391113(0x191)](),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x173)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x14f)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x17d)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x172)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x192)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x173)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x14f)][_0x391113(0x173)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x17d)][_0x391113(0x173)]),this[_0x391113(0x187)][_0x391113(0x188)]([this[_0x391113(0x14f)],this[_0x391113(0x17d)],this[_0x391113(0x192)],this[_0x391113(0x172)]]);}[_0xe8a479(0x19c)](){const _0x47dd49=_0xe8a479;super[_0x47dd49(0x19c)](),this[_0x47dd49(0x17d)][_0x47dd49(0x19c)](),this[_0x47dd49(0x14f)][_0x47dd49(0x19c)]();}[_0xe8a479(0x198)](){const _0x3b6d11=_0xe8a479;this[_0x3b6d11(0x174)][_0x3b6d11(0x184)]();}[_0xe8a479(0x189)](){const _0x125369=_0xe8a479;this[_0x125369(0x174)][_0x125369(0x189)]();}async[_0xe8a479(0x153)](_0x1cbb4f){const _0x54d405=_0xe8a479;_0x1cbb4f?.[_0x54d405(0x195)]||this[_0x54d405(0x160)](),await this[_0x54d405(0x17a)][_0x54d405(0x1a1)](_0x1cbb4f);}[_0xe8a479(0x196)](_0xf6ed55){const _0xf06863=_0xe8a479;this[_0xf06863(0x19e)]=_0xf6ed55;}[_0xe8a479(0x14e)](_0x15f674){const _0x5423ad=_0xe8a479;super[_0x5423ad(0x14e)](_0x15f674),this[_0x5423ad(0x151)][_0x5423ad(0x177)](this[_0x5423ad(0x176)])||this[_0x5423ad(0x151)][_0x5423ad(0x183)](this[_0x5423ad(0x176)],0x0);}[_0xe8a479(0x160)](){const _0x5b74a0=_0xe8a479;this[_0x5b74a0(0x17e)]&&(super[_0x5b74a0(0x160)](),this[_0x5b74a0(0x178)](!0x0));}[_0xe8a479(0x199)](_0x49f6ec){const _0x55d7b0=_0xe8a479;super[_0x55d7b0(0x199)](_0x49f6ec),this[_0x55d7b0(0x178)](!0x1);}[_0xe8a479(0x18e)](_0x39a698){const _0x1ccb96=_0xe8a479;this[_0x1ccb96(0x14f)][_0x1ccb96(0x162)]=this[_0x1ccb96(0x17d)][_0x1ccb96(0x162)]=_0x39a698;}[_0xe8a479(0x178)](_0x9c0a3c){const _0x1a4874=_0xe8a479;this[_0x1a4874(0x192)][_0x1a4874(0x16f)]=_0x9c0a3c;}[_0xe8a479(0x186)]({showApplyButton:_0x425bea,showSuggestButton:_0x3b908a}){const _0x35c308=_0xe8a479;_0x425bea=_0x425bea&&!this[_0x35c308(0x15d)]&&this[_0x35c308(0x161)][_0x35c308(0x16c)][_0x35c308(0x170)](_0x35c308(0x168)),_0x3b908a=_0x3b908a&&this[_0x35c308(0x161)][_0x35c308(0x16c)][_0x35c308(0x170)](_0x35c308(0x19f)),this[_0x35c308(0x192)][_0x35c308(0x171)]({'showApplyButton':_0x425bea,'showSuggestButton':_0x3b908a});}[_0xe8a479(0x16b)](){const _0x332d89=_0xe8a479,_0x3f1f7a=new _0x2cef6a(this[_0x332d89(0x15a)]);return _0x3f1f7a[_0x332d89(0x17f)]({'icon':_0x533d33,'label':_0x1c74bf(this[_0x332d89(0x15a)],_0x332d89(0x18d)),'isVisible':!0x0}),_0x3f1f7a['on'](_0x332d89(0x197),()=>{const _0x196063=_0x332d89;this[_0x196063(0x18a)](_0x196063(0x16a));}),_0x3f1f7a;}[_0xe8a479(0x181)](){const _0x411436=_0xe8a479,_0x8df984=new _0x2cef6a(this[_0x411436(0x15a)]);return _0x8df984[_0x411436(0x17f)]({'icon':_0x1468fc,'label':_0x1c74bf(this[_0x411436(0x15a)],_0x411436(0x157)),'isVisible':!0x0}),_0x8df984['on'](_0x411436(0x197),()=>{const _0x45c372=_0x411436;this[_0x45c372(0x18a)](_0x45c372(0x182));}),_0x8df984;}}class AIChatBalloonToolbarContainerView extends _0x3d2785{constructor(_0xb99dc0,_0x335455){const _0x4290cf=_0xe8a479;super(_0xb99dc0),this[_0x4290cf(0x165)]({'tag':_0x4290cf(0x18b),'attributes':{'class':[_0x4290cf(0x18f)]},'children':_0x335455});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b716f=_0x5379;function _0x4b4a(){const _0x1b2370=['setPromptInputValue','form','isLoading','18wfvFDv','_createPromptCapabilitiesView','_loaderView','setModelList','setContextItemLoading','_modelUnavailableMessageView','removeContextItem','12807dLUqkl','startConversation','div','delegate','value','bindTemplate','clearCurrentContextItems','350236VtCKAH','execute','3376SKWavz','reset','change:isLoading','isDisabled','toggleWebSearch','setReasoning','setWebSearch','ck-ai-chat-controls-disabled','low','clearConversationContextUI','sendUserMessage','toggleReasoning','343HxCslK','_createLoaderView','_createModelUnavailableMessageView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setInputPlaceholder','clearConversationContextItems','setIsUploadInProgress','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setConversationContext','locale','focusPromptInput','disableModelSelector','3jYySOu','_createContextPanelView','setModel','focus','218946nuAnAB','1022769ADdvuz','ck-hidden','selectModel','enableModelSelector','ck-ai-chat-controls','_shouldRestorePromptInputFocus','ck-ai-chat-controls__start-new-chat-button','queryView','isModelAvailable','ck-ai-chat-controls-model-unavailable-message','clearPendingContextUI','188305SadHha','element','fieldView','_promptCapabilitiesView','_contextPanelView','set','setAddContextOptions','238912gMDVWS','addContextItem','bodyCollection','setPlaceholderText','resetMessageInput','contextResourcesSearchInputVisibleFrom','updateResourceState','_createPromptInputView','populateSourceResourceBalloon','abortPromptStream','closeSourceResourceBalloon','_handlePromptInputFocus','590UrbTdg','setTemplate','addContextButtonView','_promptInputView'];_0x4b4a=function(){return _0x1b2370;};return _0x4b4a();}(function(_0x4d30f4,_0x3e15ba){const _0x34e58b=_0x5379,_0x24290d=_0x4d30f4();while(!![]){try{const _0x1590e6=parseInt(_0x34e58b(0x22b))/0x1+parseInt(_0x34e58b(0x218))/0x2+-parseInt(_0x34e58b(0x214))/0x3*(-parseInt(_0x34e58b(0x1fa))/0x4)+-parseInt(_0x34e58b(0x224))/0x5*(parseInt(_0x34e58b(0x1ec))/0x6)+parseInt(_0x34e58b(0x208))/0x7*(-parseInt(_0x34e58b(0x1fc))/0x8)+-parseInt(_0x34e58b(0x1f3))/0x9*(parseInt(_0x34e58b(0x237))/0xa)+-parseInt(_0x34e58b(0x219))/0xb;if(_0x1590e6===_0x3e15ba)break;else _0x24290d['push'](_0x24290d['shift']());}catch(_0x542a7){_0x24290d['push'](_0x24290d['shift']());}}}(_0x4b4a,0x1e9a3));import{ButtonView as _0x40da0b,clickOutsideHandler as _0xdedae8,View as _0x32eeda}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x331c8f}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5b4703}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1ae62d,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x12997a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x34eab9}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4455a5}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';function _0x5379(_0xb7d46b,_0x1208f3){const _0x4b4a92=_0x4b4a();return _0x5379=function(_0x5379b1,_0x20c9bb){_0x5379b1=_0x5379b1-0x1e6;let _0x25081c=_0x4b4a92[_0x5379b1];return _0x25081c;},_0x5379(_0xb7d46b,_0x1208f3);}import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x32eeda{[_0x3b716f(0x228)];[_0x3b716f(0x1e8)];[_0x3b716f(0x227)];[_0x3b716f(0x1ee)];[_0x3b716f(0x1f1)];[_0x3b716f(0x21e)];constructor(_0x19955b,_0xcede71){const _0x6cd6f7=_0x3b716f;super(_0x19955b),this[_0x6cd6f7(0x228)]=this[_0x6cd6f7(0x215)](_0x19955b,{'bodyCollection':_0xcede71[_0x6cd6f7(0x22d)],'searchInputVisibleFrom':_0xcede71[_0x6cd6f7(0x230)]}),this[_0x6cd6f7(0x1e8)]=this[_0x6cd6f7(0x232)](_0x19955b),this[_0x6cd6f7(0x227)]=this[_0x6cd6f7(0x1ed)](_0x19955b),this[_0x6cd6f7(0x1ee)]=this[_0x6cd6f7(0x209)](_0x19955b),this[_0x6cd6f7(0x1f1)]=this[_0x6cd6f7(0x20a)](_0x19955b),this[_0x6cd6f7(0x21e)]=!0x1,this[_0x6cd6f7(0x1e8)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x206))['to'](this),this[_0x6cd6f7(0x1ee)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x234))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x200))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x207))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x21b))['to'](this),this[_0x6cd6f7(0x228)][_0x6cd6f7(0x1f6)](..._0x12997a)['to'](this),this[_0x6cd6f7(0x229)](_0x6cd6f7(0x221),!0x0),this[_0x6cd6f7(0x229)](_0x6cd6f7(0x1ff),!0x1);const _0x51df27=this[_0x6cd6f7(0x1f8)];this[_0x6cd6f7(0x1e6)]({'tag':_0x6cd6f7(0x1ea),'attributes':{'class':['ck',_0x6cd6f7(0x21d),_0x51df27['if'](_0x6cd6f7(0x1ff),_0x6cd6f7(0x203))]},'children':[{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x1eb),_0x6cd6f7(0x21a),_0x3ac5bd=>_0x3ac5bd||!this[_0x6cd6f7(0x221)]),_0x51df27['if'](_0x6cd6f7(0x221),_0x6cd6f7(0x21a),_0x3bfd39=>!_0x3bfd39||this[_0x6cd6f7(0x1eb)])]},'children':[this[_0x6cd6f7(0x228)],this[_0x6cd6f7(0x1e8)],this[_0x6cd6f7(0x227)]]},{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x1eb),_0x6cd6f7(0x21a),_0x5c3678=>!_0x5c3678)]},'children':[this[_0x6cd6f7(0x1ee)]]},{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x221),_0x6cd6f7(0x21a),_0x22710=>_0x22710)]},'children':[this[_0x6cd6f7(0x1f1)]]}]}),_0xdedae8({'emitter':this[_0x6cd6f7(0x1e8)],'activator':()=>this[_0x6cd6f7(0x1eb)],'contextElements':()=>[this[_0x6cd6f7(0x225)]],'callback':()=>{const _0x3c73d6=_0x6cd6f7;this[_0x3c73d6(0x21e)]=!0x1;}}),this['on'](_0x6cd6f7(0x1fe),this[_0x6cd6f7(0x236)],{'priority':_0x6cd6f7(0x204)});}[_0x3b716f(0x215)](_0x49edab,_0x53362e){return new _0x1ae62d(_0x49edab,_0x53362e);}[_0x3b716f(0x232)](_0x55210a){const _0x2da83e=_0x3b716f;return new _0x331c8f(_0x55210a,this[_0x2da83e(0x228)][_0x2da83e(0x1e7)]);}[_0x3b716f(0x1ed)](_0x5d982f){return new _0x5b4703(_0x5d982f);}[_0x3b716f(0x209)](_0x2d76cc){return new _0x34eab9(_0x2d76cc);}[_0x3b716f(0x20a)](_0x32e092){const _0x136175=_0x3b716f,_0x2eee17=new AIChatModelUnavailableMessageView(_0x32e092);return _0x2eee17[_0x136175(0x1f6)](_0x136175(0x1f4))['to'](this),_0x2eee17;}[_0x3b716f(0x236)](_0x53680f,_0x87aaad,_0x2ef975){const _0x1a4c32=_0x3b716f;_0x2ef975?this[_0x1a4c32(0x21e)]=!0x0:this[_0x1a4c32(0x21e)]&&this[_0x1a4c32(0x1e8)][_0x1a4c32(0x217)]();}[_0x3b716f(0x22c)](_0x43378e,_0x4c60f9){const _0x4ef389=_0x3b716f;this[_0x4ef389(0x228)][_0x4ef389(0x22c)](_0x43378e,_0x4c60f9);}[_0x3b716f(0x1f2)](_0x1872f7){const _0x3ce250=_0x3b716f;this[_0x3ce250(0x228)][_0x3ce250(0x1f2)](_0x1872f7);}[_0x3b716f(0x1f0)](_0x39d9fc,_0xaa47ce){const _0x4c216c=_0x3b716f;this[_0x4c216c(0x228)][_0x4c216c(0x1f0)](_0x39d9fc,_0xaa47ce);}[_0x3b716f(0x20e)](_0x3e5a8e){const _0x20e37f=_0x3b716f;this[_0x20e37f(0x1e8)][_0x20e37f(0x20e)](_0x3e5a8e);}[_0x3b716f(0x210)](_0x19b044){const _0x113fcb=_0x3b716f;this[_0x113fcb(0x228)][_0x113fcb(0x210)](_0x19b044);}[_0x3b716f(0x223)](){const _0x5425fa=_0x3b716f;this[_0x5425fa(0x228)][_0x5425fa(0x1f9)]();}[_0x3b716f(0x205)](){const _0x2b2384=_0x3b716f;this[_0x2b2384(0x228)][_0x2b2384(0x20d)]();}[_0x3b716f(0x231)](_0x98dbf0,_0x18e42b,_0x5118c9){const _0x999d61=_0x3b716f;this[_0x999d61(0x228)][_0x999d61(0x231)](_0x98dbf0,_0x18e42b,_0x5118c9);}[_0x3b716f(0x202)](_0x4aee44){const _0x30c899=_0x3b716f;this[_0x30c899(0x227)][_0x30c899(0x202)](_0x4aee44);}[_0x3b716f(0x201)](_0x381c28){const _0x1bcf58=_0x3b716f;this[_0x1bcf58(0x227)][_0x1bcf58(0x201)](_0x381c28);}[_0x3b716f(0x22f)](){const _0x4d35c2=_0x3b716f;this[_0x4d35c2(0x1e8)][_0x4d35c2(0x1fd)]();}[_0x3b716f(0x22a)](_0x4abe1a){const _0x1f697f=_0x3b716f;this[_0x1f697f(0x228)][_0x1f697f(0x22a)](_0x4abe1a);}[_0x3b716f(0x20c)](_0xdee1f4){const _0x4767ed=_0x3b716f;this[_0x4767ed(0x1e8)][_0x4767ed(0x22e)](_0xdee1f4);}[_0x3b716f(0x1ef)](_0x226fee,_0x394fef){const _0x2d30b6=_0x3b716f;this[_0x2d30b6(0x227)][_0x2d30b6(0x1ef)](_0x226fee,_0x394fef);}[_0x3b716f(0x216)](_0x428c2b){const _0x41e76a=_0x3b716f;_0x428c2b?(this[_0x41e76a(0x221)]=!0x0,this[_0x41e76a(0x227)][_0x41e76a(0x216)](_0x428c2b)):this[_0x41e76a(0x221)]=!0x1;}[_0x3b716f(0x21c)](){const _0xec3eee=_0x3b716f;this[_0xec3eee(0x227)][_0xec3eee(0x21c)]();}[_0x3b716f(0x213)](_0x1e4be5){const _0x50cf34=_0x3b716f;this[_0x50cf34(0x227)][_0x50cf34(0x213)](_0x1e4be5);}[_0x3b716f(0x233)](_0x5dfa31,_0x110b9d,_0x3caaa3,_0x4dd8db){const _0xcc0da2=_0x3b716f;this[_0xcc0da2(0x228)][_0xcc0da2(0x233)](_0x5dfa31,_0x110b9d,_0x3caaa3,_0x4dd8db);}[_0x3b716f(0x235)](_0x142500){const _0x3ed1e9=_0x3b716f;this[_0x3ed1e9(0x228)][_0x3ed1e9(0x235)](_0x142500);}[_0x3b716f(0x212)](_0x4469e7=!0x1){const _0x39492c=_0x3b716f;this[_0x39492c(0x1e8)][_0x39492c(0x217)](_0x4469e7);}[_0x3b716f(0x1e9)](_0x40c6ce){const _0x44b93f=_0x3b716f;this[_0x44b93f(0x1e8)][_0x44b93f(0x220)][_0x44b93f(0x226)][_0x44b93f(0x1fd)](),this[_0x44b93f(0x1e8)][_0x44b93f(0x220)][_0x44b93f(0x226)][_0x44b93f(0x1f7)]=_0x40c6ce;}}class AIChatModelUnavailableMessageView extends _0x32eeda{constructor(_0x34102f){const _0x2a1c99=_0x3b716f;super(_0x34102f);const _0x5a6539=new _0x40da0b(_0x34102f);_0x5a6539[_0x2a1c99(0x229)]({'label':_0x4455a5(this[_0x2a1c99(0x211)],_0x2a1c99(0x20b)),'withText':!0x0,'class':[_0x2a1c99(0x21f)],'tooltip':''}),_0x5a6539[_0x2a1c99(0x1f6)](_0x2a1c99(0x1fb))['to'](this,_0x2a1c99(0x1f4)),this[_0x2a1c99(0x1e6)]({'tag':_0x2a1c99(0x1f5),'attributes':{'class':['ck',_0x2a1c99(0x222)]},'children':[{'tag':'p','children':[{'text':_0x4455a5(this[_0x2a1c99(0x211)],_0x2a1c99(0x20f))+'\x20'},_0x5a6539]}]});}}
23
+ const _0x3d9146=_0x2fa5;(function(_0x27a82a,_0x18a947){const _0x2268b3=_0x2fa5,_0x256d59=_0x27a82a();while(!![]){try{const _0x3d16d4=-parseInt(_0x2268b3(0xc2))/0x1+parseInt(_0x2268b3(0xb0))/0x2+parseInt(_0x2268b3(0xb8))/0x3+-parseInt(_0x2268b3(0x94))/0x4+parseInt(_0x2268b3(0xb9))/0x5+parseInt(_0x2268b3(0x81))/0x6*(-parseInt(_0x2268b3(0xbd))/0x7)+parseInt(_0x2268b3(0x9a))/0x8;if(_0x3d16d4===_0x18a947)break;else _0x256d59['push'](_0x256d59['shift']());}catch(_0x135138){_0x256d59['push'](_0x256d59['shift']());}}}(_0x5943,0x30b69));import{ButtonView as _0x3b4686,clickOutsideHandler as _0x5c2b3e,View as _0x379c5d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4b5809}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x90c356}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x9eafd5,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x50ec9a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x55d830}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x373a31}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';function _0x2fa5(_0x1e09d5,_0x4de8e8){const _0x594309=_0x5943();return _0x2fa5=function(_0x2fa5c4,_0x9265e2){_0x2fa5c4=_0x2fa5c4-0x79;let _0x54a269=_0x594309[_0x2fa5c4];return _0x54a269;},_0x2fa5(_0x1e09d5,_0x4de8e8);}import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';function _0x5943(){const _0x4bc511=['removeContextItem','_createPromptInputView','fieldView','updateResourceState','set','254223IFuxDY','1041855ueQzqQ','setModel','_createPromptCapabilitiesView','setPromptInputValue','2263513RofyKT','setWebSearch','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','toggleWebSearch','isLoading','56604XrhMXY','ck-ai-chat-controls__start-new-chat-button','ck-ai-chat-controls-model-unavailable-message','_promptCapabilitiesView','setModelList','closeSourceResourceBalloon','setIsUploadInProgress','element','setTemplate','clearConversationContextItems','setAddContextOptions','focusPromptInput','locale','queryView','6YxXEsh','low','setInputPlaceholder','populateSourceResourceBalloon','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','enableModelSelector','bindTemplate','setPlaceholderText','startConversation','focus','execute','ck-ai-chat-controls','_createContextPanelView','sendUserMessage','_loaderView','contextResourcesSearchInputVisibleFrom','ck-ai-chat-controls-disabled','value','_createModelUnavailableMessageView','157264XHWxQs','isDisabled','isModelAvailable','change:isLoading','selectModel','bodyCollection','933912IKLdcl','_contextPanelView','clearPendingContextUI','_handlePromptInputFocus','addContextButtonView','toggleReasoning','ck-hidden','form','_modelUnavailableMessageView','resetMessageInput','delegate','abortPromptStream','setReasoning','div','_shouldRestorePromptInputFocus','addContextItem','disableModelSelector','_promptInputView','reset','setConversationContext','_createLoaderView','clearCurrentContextItems','417914ZTIYoY','clearConversationContextUI','setContextItemLoading'];_0x5943=function(){return _0x4bc511;};return _0x5943();}import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x379c5d{[_0x3d9146(0x9b)];[_0x3d9146(0xab)];[_0x3d9146(0xc5)];[_0x3d9146(0x8f)];[_0x3d9146(0xa2)];[_0x3d9146(0xa8)];constructor(_0x41646b,_0x3232fd){const _0x5a9c34=_0x3d9146;super(_0x41646b),this[_0x5a9c34(0x9b)]=this[_0x5a9c34(0x8d)](_0x41646b,{'bodyCollection':_0x3232fd[_0x5a9c34(0x99)],'searchInputVisibleFrom':_0x3232fd[_0x5a9c34(0x90)]}),this[_0x5a9c34(0xab)]=this[_0x5a9c34(0xb4)](_0x41646b),this[_0x5a9c34(0xc5)]=this[_0x5a9c34(0xbb)](_0x41646b),this[_0x5a9c34(0x8f)]=this[_0x5a9c34(0xae)](_0x41646b),this[_0x5a9c34(0xa2)]=this[_0x5a9c34(0x93)](_0x41646b),this[_0x5a9c34(0xa8)]=!0x1,this[_0x5a9c34(0xab)][_0x5a9c34(0xa4)](_0x5a9c34(0x8e))['to'](this),this[_0x5a9c34(0x8f)][_0x5a9c34(0xa4)](_0x5a9c34(0xa5))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0xc0))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0x9f))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0x98))['to'](this),this[_0x5a9c34(0x9b)][_0x5a9c34(0xa4)](..._0x50ec9a)['to'](this),this[_0x5a9c34(0xb7)](_0x5a9c34(0x96),!0x0),this[_0x5a9c34(0xb7)](_0x5a9c34(0x95),!0x1);const _0xdc1ddc=this[_0x5a9c34(0x87)];this[_0x5a9c34(0x7b)]({'tag':_0x5a9c34(0xa1),'attributes':{'class':['ck',_0x5a9c34(0x8c),_0xdc1ddc['if'](_0x5a9c34(0x95),_0x5a9c34(0x91))]},'children':[{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0xc1),_0x5a9c34(0xa0),_0x51e913=>_0x51e913||!this[_0x5a9c34(0x96)]),_0xdc1ddc['if'](_0x5a9c34(0x96),_0x5a9c34(0xa0),_0x5f3c39=>!_0x5f3c39||this[_0x5a9c34(0xc1)])]},'children':[this[_0x5a9c34(0x9b)],this[_0x5a9c34(0xab)],this[_0x5a9c34(0xc5)]]},{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0xc1),_0x5a9c34(0xa0),_0x3d84c8=>!_0x3d84c8)]},'children':[this[_0x5a9c34(0x8f)]]},{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0x96),_0x5a9c34(0xa0),_0x27827a=>_0x27827a)]},'children':[this[_0x5a9c34(0xa2)]]}]}),_0x5c2b3e({'emitter':this[_0x5a9c34(0xab)],'activator':()=>this[_0x5a9c34(0xc1)],'contextElements':()=>[this[_0x5a9c34(0x7a)]],'callback':()=>{const _0x5363f3=_0x5a9c34;this[_0x5363f3(0xa8)]=!0x1;}}),this['on'](_0x5a9c34(0x97),this[_0x5a9c34(0x9d)],{'priority':_0x5a9c34(0x82)});}[_0x3d9146(0x8d)](_0x55853d,_0x44d4d6){return new _0x9eafd5(_0x55853d,_0x44d4d6);}[_0x3d9146(0xb4)](_0x530d92){const _0x4faecd=_0x3d9146;return new _0x4b5809(_0x530d92,this[_0x4faecd(0x9b)][_0x4faecd(0x9e)]);}[_0x3d9146(0xbb)](_0x49440c){return new _0x90c356(_0x49440c);}[_0x3d9146(0xae)](_0x3226e1){return new _0x55d830(_0x3226e1);}[_0x3d9146(0x93)](_0x31c472){const _0x17e48e=_0x3d9146,_0x1de041=new AIChatModelUnavailableMessageView(_0x31c472);return _0x1de041[_0x17e48e(0xa4)](_0x17e48e(0x89))['to'](this),_0x1de041;}[_0x3d9146(0x9d)](_0x5815e3,_0x159177,_0x4ce8e9){const _0x355308=_0x3d9146;_0x4ce8e9?this[_0x355308(0xa8)]=!0x0:this[_0x355308(0xa8)]&&this[_0x355308(0xab)][_0x355308(0x8a)]();}[_0x3d9146(0xa9)](_0x185cf1,_0x2958d4){const _0x41ad0e=_0x3d9146;this[_0x41ad0e(0x9b)][_0x41ad0e(0xa9)](_0x185cf1,_0x2958d4);}[_0x3d9146(0xb3)](_0x126495){const _0x32178a=_0x3d9146;this[_0x32178a(0x9b)][_0x32178a(0xb3)](_0x126495);}[_0x3d9146(0xb2)](_0x2b5df4,_0x5e8fe5){const _0x45db1e=_0x3d9146;this[_0x45db1e(0x9b)][_0x45db1e(0xb2)](_0x2b5df4,_0x5e8fe5);}[_0x3d9146(0x79)](_0x10b2ee){const _0x178cbd=_0x3d9146;this[_0x178cbd(0xab)][_0x178cbd(0x79)](_0x10b2ee);}[_0x3d9146(0xad)](_0x51f1e0){const _0x5287bc=_0x3d9146;this[_0x5287bc(0x9b)][_0x5287bc(0xad)](_0x51f1e0);}[_0x3d9146(0x9c)](){const _0x32a335=_0x3d9146;this[_0x32a335(0x9b)][_0x32a335(0xaf)]();}[_0x3d9146(0xb1)](){const _0x10b511=_0x3d9146;this[_0x10b511(0x9b)][_0x10b511(0x7c)]();}[_0x3d9146(0xb6)](_0x5840ed,_0xcbf0cf,_0x5b49ce){const _0x585926=_0x3d9146;this[_0x585926(0x9b)][_0x585926(0xb6)](_0x5840ed,_0xcbf0cf,_0x5b49ce);}[_0x3d9146(0xbe)](_0x210660){const _0x382e44=_0x3d9146;this[_0x382e44(0xc5)][_0x382e44(0xbe)](_0x210660);}[_0x3d9146(0xa6)](_0x459daa){const _0x159e33=_0x3d9146;this[_0x159e33(0xc5)][_0x159e33(0xa6)](_0x459daa);}[_0x3d9146(0xa3)](){const _0x4d193e=_0x3d9146;this[_0x4d193e(0xab)][_0x4d193e(0xac)]();}[_0x3d9146(0x7d)](_0x585b39){const _0x5da42e=_0x3d9146;this[_0x5da42e(0x9b)][_0x5da42e(0x7d)](_0x585b39);}[_0x3d9146(0x83)](_0x1031e0){const _0x2c3d67=_0x3d9146;this[_0x2c3d67(0xab)][_0x2c3d67(0x88)](_0x1031e0);}[_0x3d9146(0xc6)](_0x348720,_0x197546){const _0x22e0d2=_0x3d9146;this[_0x22e0d2(0xc5)][_0x22e0d2(0xc6)](_0x348720,_0x197546);}[_0x3d9146(0xba)](_0x53bc50){const _0x2cbe7b=_0x3d9146;_0x53bc50?(this[_0x2cbe7b(0x96)]=!0x0,this[_0x2cbe7b(0xc5)][_0x2cbe7b(0xba)](_0x53bc50)):this[_0x2cbe7b(0x96)]=!0x1;}[_0x3d9146(0x86)](){const _0x55035e=_0x3d9146;this[_0x55035e(0xc5)][_0x55035e(0x86)]();}[_0x3d9146(0xaa)](_0x1d23ca){const _0x49d83b=_0x3d9146;this[_0x49d83b(0xc5)][_0x49d83b(0xaa)](_0x1d23ca);}[_0x3d9146(0x84)](_0x53dc55,_0x2647a3,_0x81086f,_0x225aa0){const _0x23f025=_0x3d9146;this[_0x23f025(0x9b)][_0x23f025(0x84)](_0x53dc55,_0x2647a3,_0x81086f,_0x225aa0);}[_0x3d9146(0xc7)](_0x7971ae){const _0x52abda=_0x3d9146;this[_0x52abda(0x9b)][_0x52abda(0xc7)](_0x7971ae);}[_0x3d9146(0x7e)](_0x5ecec2=!0x1){const _0x3846e9=_0x3d9146;this[_0x3846e9(0xab)][_0x3846e9(0x8a)](_0x5ecec2);}[_0x3d9146(0xbc)](_0x2b3d85){const _0x2a1b19=_0x3d9146;this[_0x2a1b19(0xab)][_0x2a1b19(0x80)][_0x2a1b19(0xb5)][_0x2a1b19(0xac)](),this[_0x2a1b19(0xab)][_0x2a1b19(0x80)][_0x2a1b19(0xb5)][_0x2a1b19(0x92)]=_0x2b3d85;}}class AIChatModelUnavailableMessageView extends _0x379c5d{constructor(_0x1f8d45){const _0x2c26c5=_0x3d9146;super(_0x1f8d45);const _0x5384ee=new _0x3b4686(_0x1f8d45);_0x5384ee[_0x2c26c5(0xb7)]({'label':_0x373a31(this[_0x2c26c5(0x7f)],_0x2c26c5(0x85)),'withText':!0x0,'class':[_0x2c26c5(0xc3)],'tooltip':''}),_0x5384ee[_0x2c26c5(0xa4)](_0x2c26c5(0x8b))['to'](this,_0x2c26c5(0x89)),this[_0x2c26c5(0x7b)]({'tag':_0x2c26c5(0xa7),'attributes':{'class':['ck',_0x2c26c5(0xc4)]},'children':[{'tag':'p','children':[{'text':_0x373a31(this[_0x2c26c5(0x7f)],_0x2c26c5(0xbf))+'\x20'},_0x5384ee]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a2681=_0x1c05;(function(_0x103e00,_0x12831e){const _0x273cc5=_0x1c05,_0x5f1077=_0x103e00();while(!![]){try{const _0x438075=parseInt(_0x273cc5(0x204))/0x1+parseInt(_0x273cc5(0x1e0))/0x2*(-parseInt(_0x273cc5(0x1f2))/0x3)+parseInt(_0x273cc5(0x1f6))/0x4+-parseInt(_0x273cc5(0x200))/0x5+-parseInt(_0x273cc5(0x225))/0x6+-parseInt(_0x273cc5(0x20b))/0x7*(parseInt(_0x273cc5(0x207))/0x8)+parseInt(_0x273cc5(0x202))/0x9*(parseInt(_0x273cc5(0x22d))/0xa);if(_0x438075===_0x12831e)break;else _0x5f1077['push'](_0x5f1077['shift']());}catch(_0x2c5f94){_0x5f1077['push'](_0x5f1077['shift']());}}}(_0x4048,0x7b449));import{CKEditorError as _0x13f48e,logWarning as _0x4bc04d,scrollAncestorsToShowTarget as _0x4cb20b}from'ckeditor5/src/utils.js';function _0x1c05(_0x2aba67,_0x36185c){const _0x4048e5=_0x4048();return _0x1c05=function(_0x1c0571,_0x73840f){_0x1c0571=_0x1c0571-0x1e0;let _0x1418c4=_0x4048e5[_0x1c0571];return _0x1418c4;},_0x1c05(_0x2aba67,_0x36185c);}import{View as _0x3cbc44}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5ab77b}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x887fc7}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x6583ce}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x37ca08}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5134b5}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x354246}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x59caaa}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x1be4f1,SKELETON_DEFINITIONS as _0x227905}from'../../aicore/ui/aiskeleton.js';function _0x4048(){const _0x43cd28=['ck-ai-chat__feed','bind','ai-chat-feed-view-item-not-found','isTrackChangesOn','includes','ai-chat-feed-view-item-not-a-reply-item','remove','_createTemplateChildren','aiFeed','div','updateWebSources','isLoadingSkeletonVisible','removeItem','scrollToSuggestion','ck-ai-chat__loader','delegate','markAsDone','3184974gQXbWZ','setPartActive','render','span','toggleLoadingSkeleton','setLoadingMessage','setSuggestionPartActive','user-message','17924770kLBMfw','find','clear','ck-ai-chat__feed__items','_createFeedLoader','destroy','addItem','isVisible','updatePartState','getPartView','children','4SSiasY','updateReplyItem','scrollManager','markItemAsDone','stop','forEach','custom-element','ck-hidden','_bodyCollection','hasItem','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','startAutoScroll','interaction-header','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateContent','bindTemplate','createCollection','getItemIds','199869OncdtB','options','_createLoaderChildren','_createSkeletonLoader','1219600VDgGUT','ck-ai-chat__loader-text','_createFeedItems','_setupTemplate','setTemplate','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updateSuggestionItem','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionPartState','1166255XUObXQ','getItemById','9IsohYS','parentElement','191298PRJEWP','loadingMessage','start','8ilwOEG','filter','stopAutoScroll','isPending','6205108AAoyhI','extendTemplate','ai-suggestion-reply','set','add','locale','updateSources','ai-reply','map'];_0x4048=function(){return _0x43cd28;};return _0x4048();}import{AISpinnerView as _0x4737a0}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x1d9f37}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x3cbc44{[_0x3a2681(0x237)];[_0x3a2681(0x1e2)];[_0x3a2681(0x1e8)];constructor(_0x3bc1d5,_0x41daf9){const _0x3690dd=_0x3a2681;super(_0x3bc1d5),this[_0x3690dd(0x1e8)]=_0x41daf9,this[_0x3690dd(0x20e)](_0x3690dd(0x20a),!0x1),this[_0x3690dd(0x20e)](_0x3690dd(0x205),''),this[_0x3690dd(0x20e)](_0x3690dd(0x21f),!0x1),this[_0x3690dd(0x20e)](_0x3690dd(0x217),!0x1),this[_0x3690dd(0x237)]=this[_0x3690dd(0x1f0)](),this[_0x3690dd(0x237)][_0x3690dd(0x223)](..._0x5ab77b)['to'](this),this[_0x3690dd(0x1f9)]();}[_0x3a2681(0x227)](){const _0x1a8b7f=_0x3a2681;super[_0x1a8b7f(0x227)](),this[_0x1a8b7f(0x1e2)]=new _0x59caaa(this[_0x1a8b7f(0x1fb)]);}[_0x3a2681(0x232)](){const _0x2f5c78=_0x3a2681;super[_0x2f5c78(0x232)](),this[_0x2f5c78(0x1e2)][_0x2f5c78(0x232)]();}[_0x3a2681(0x22f)](){const _0x4f1ffe=_0x3a2681;this[_0x4f1ffe(0x237)][_0x4f1ffe(0x22f)]();}[_0x3a2681(0x233)](_0xc32480,_0x167c60){const _0x249358=_0x3a2681;let _0x4443a3;return _0x249358(0x212)===_0xc32480?_0x4443a3=new _0x6583ce(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]):_0x249358(0x20d)===_0xc32480?(_0x4443a3=new _0x887fc7(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]),_0x4443a3[_0x249358(0x215)](_0x249358(0x217))['to'](this)):_0x4443a3=_0x249358(0x22c)===_0xc32480?new _0x37ca08(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]):_0x249358(0x1ec)===_0xc32480?new _0x354246(this[_0x249358(0x210)],_0x167c60):_0x249358(0x1e6)===_0xc32480?new _0x1d9f37(_0x167c60):new _0x5134b5(_0x167c60),this[_0x249358(0x237)][_0x249358(0x20f)](_0x4443a3),_0x4443a3;}async[_0x3a2681(0x1e1)]({id:_0x80d43e,parsedContent:_0x3aa552,renderingStrategy:_0x2112b0,abortSignal:_0x423fb8}){const _0x5660cd=_0x3a2681,_0x505f93=this[_0x5660cd(0x201)](_0x80d43e);if(!(_0x505f93 instanceof _0x6583ce))throw new _0x13f48e(_0x5660cd(0x219),null,{'itemView':_0x505f93,'id':_0x80d43e,'parsedContent':_0x3aa552});await _0x505f93[_0x5660cd(0x1ee)]({'parsedContent':_0x3aa552,'renderingStrategy':_0x2112b0,'abortSignal':_0x423fb8});}async[_0x3a2681(0x21e)](_0x10a1c0,_0xf3b403){const _0xb9d022=_0x3a2681,_0x19dff4=this[_0xb9d022(0x201)](_0x10a1c0);if(_0x19dff4 instanceof _0x887fc7)_0x19dff4[_0xb9d022(0x211)](_0xf3b403);else{if(!(_0x19dff4 instanceof _0x6583ce))throw new _0x13f48e(_0xb9d022(0x1ea),null,{'itemView':_0x19dff4,'id':_0x10a1c0,'sources':_0xf3b403});_0x19dff4[_0xb9d022(0x211)](_0xf3b403);}}async[_0x3a2681(0x1fd)]({id:_0x494eb4,parts:_0x314e1e,renderingStrategy:_0x1f4623,abortSignal:_0x3f501b}){const _0x57709b=_0x3a2681,_0x51b08a=this[_0x57709b(0x201)](_0x494eb4);if(!(_0x51b08a instanceof _0x887fc7))throw new _0x13f48e(_0x57709b(0x1fe),null,{'itemView':_0x51b08a,'id':_0x494eb4,'parts':_0x314e1e});await _0x51b08a[_0x57709b(0x1ee)]({'parts':_0x314e1e,'renderingStrategy':_0x1f4623,'abortSignal':_0x3f501b});}[_0x3a2681(0x1ff)]({id:_0x4ba37d,index:_0x55ed65,state:_0x4ab232}){const _0x42fc5b=_0x3a2681,_0x352490=this[_0x42fc5b(0x201)](_0x4ba37d);if(!(_0x352490 instanceof _0x887fc7))throw new _0x13f48e(_0x42fc5b(0x1fe),this,{'id':_0x4ba37d});_0x352490[_0x42fc5b(0x235)](_0x55ed65,_0x4ab232);}[_0x3a2681(0x22b)]({id:_0x5343dd,index:_0x3891b3,isActive:_0xd786c0}){const _0x32999c=_0x3a2681,_0x4f68be=this[_0x32999c(0x201)](_0x5343dd);if(!(_0x4f68be instanceof _0x887fc7))throw new _0x13f48e(_0x32999c(0x1fe),this,{'id':_0x5343dd});this[_0x32999c(0x237)][_0x32999c(0x208)](_0x438934=>_0x438934 instanceof _0x887fc7)[_0x32999c(0x1e5)](_0x4c4de6=>{const _0x44d492=_0x32999c;_0x4c4de6[_0x44d492(0x226)](!0x1);}),_0x4f68be[_0x32999c(0x226)](_0x3891b3,_0xd786c0);}[_0x3a2681(0x1e3)](_0x4e7a6d){const _0x25bfe1=_0x3a2681;this[_0x25bfe1(0x201)](_0x4e7a6d)[_0x25bfe1(0x224)]();}[_0x3a2681(0x1f1)](){const _0x554f46=_0x3a2681;return this[_0x554f46(0x237)][_0x554f46(0x213)](_0x5e6b73=>_0x5e6b73[_0x554f46(0x1f3)]['id']);}[_0x3a2681(0x220)](_0x2e2bd9){const _0x4f4541=_0x3a2681;this[_0x4f4541(0x237)][_0x4f4541(0x21a)](this[_0x4f4541(0x201)](_0x2e2bd9));}[_0x3a2681(0x1e9)](_0x1675f3){const _0x1357e4=_0x3a2681;return!!this[_0x1357e4(0x237)][_0x1357e4(0x22e)](_0x5b2d4d=>_0x5b2d4d[_0x1357e4(0x1f3)]['id'][_0x1357e4(0x218)](_0x1675f3));}[_0x3a2681(0x221)](_0x42e5a5,_0x382e06){const _0x5de7a2=_0x3a2681,_0x552f54=this[_0x5de7a2(0x201)](_0x42e5a5);if(!(_0x552f54 instanceof _0x887fc7))return void _0x4bc04d(_0x5de7a2(0x1fc),{'replyId':_0x42e5a5,'partIndex':_0x382e06});const _0x519500=_0x552f54[_0x5de7a2(0x236)](_0x382e06);_0x519500?_0x4cb20b(_0x519500[_0x5de7a2(0x1fb)],0x14,this[_0x5de7a2(0x1fb)][_0x5de7a2(0x203)],!0x0,!0x0):_0x4bc04d(_0x5de7a2(0x1ed),{'replyId':_0x42e5a5,'partIndex':_0x382e06});}[_0x3a2681(0x1f9)](){const _0x1ae8e8=_0x3a2681;this[_0x1ae8e8(0x1fa)]({'tag':_0x1ae8e8(0x21d),'attributes':{'class':['ck',_0x1ae8e8(0x214)]},'children':this[_0x1ae8e8(0x21b)]()});}[_0x3a2681(0x21b)](){const _0x12b6a7=_0x3a2681,_0x5ee27b=this[_0x12b6a7(0x1f5)]();return[this[_0x12b6a7(0x1f8)](),_0x5ee27b,this[_0x12b6a7(0x231)]()];}[_0x3a2681(0x1f5)](){const _0x2aa0e8=_0x3a2681,_0x22fc4a=new _0x1be4f1(this[_0x2aa0e8(0x210)],_0x227905[_0x2aa0e8(0x21c)]);return _0x22fc4a[_0x2aa0e8(0x20c)]({'attributes':{'class':[this[_0x2aa0e8(0x1ef)]['if'](_0x2aa0e8(0x21f),_0x2aa0e8(0x1e7),_0x9f9c9a=>!_0x9f9c9a)]}}),_0x22fc4a;}[_0x3a2681(0x1f8)](){const _0x80b2b6=_0x3a2681,_0x1a630b=new _0x3cbc44(this[_0x80b2b6(0x210)]);return _0x1a630b[_0x80b2b6(0x1fa)]({'tag':_0x80b2b6(0x21d),'attributes':{'class':['ck',_0x80b2b6(0x230),this[_0x80b2b6(0x1ef)]['if'](_0x80b2b6(0x21f),_0x80b2b6(0x1e7))]},'children':this[_0x80b2b6(0x237)]}),_0x1a630b;}[_0x3a2681(0x231)](){const _0x47c726=_0x3a2681,_0xd95d66=new _0x3cbc44(this[_0x47c726(0x210)]);return _0xd95d66[_0x47c726(0x1fa)]({'tag':_0x47c726(0x21d),'attributes':{'class':['ck',_0x47c726(0x222),this[_0x47c726(0x1ef)]['if'](_0x47c726(0x20a),_0x47c726(0x1e7),_0x11c0c3=>!_0x11c0c3)]},'children':this[_0x47c726(0x1f4)]()}),_0xd95d66;}[_0x3a2681(0x1f4)](){const _0x101bdf=_0x3a2681,_0x356a3=new _0x4737a0();return _0x356a3[_0x101bdf(0x234)]=!0x0,[_0x356a3,{'tag':_0x101bdf(0x228),'attributes':{'class':['ck',_0x101bdf(0x1f7)]},'children':[{'text':this[_0x101bdf(0x1ef)]['to'](_0x101bdf(0x205))}]}];}[_0x3a2681(0x201)](_0x11a263){const _0x3ff145=_0x3a2681,_0xf1738e=this[_0x3ff145(0x237)][_0x3ff145(0x22e)](_0x456bc6=>_0x456bc6[_0x3ff145(0x1f3)]['id'][_0x3ff145(0x218)](_0x11a263));if(!_0xf1738e)throw new _0x13f48e(_0x3ff145(0x216),this,{'id':_0x11a263});return _0xf1738e;}[_0x3a2681(0x22a)](_0x5a078a){const _0xc5dbee=_0x3a2681;this[_0xc5dbee(0x20e)](_0xc5dbee(0x205),_0x5a078a);}[_0x3a2681(0x229)](_0x2db0f3){const _0x10e53a=_0x3a2681;this[_0x10e53a(0x20e)](_0x10e53a(0x21f),_0x2db0f3);}[_0x3a2681(0x1eb)](){const _0x3bf9cc=_0x3a2681;this[_0x3bf9cc(0x1e2)][_0x3bf9cc(0x206)]();}[_0x3a2681(0x209)](){const _0xa100cb=_0x3a2681;this[_0xa100cb(0x1e2)][_0xa100cb(0x1e4)]();}}
23
+ const _0x2d872a=_0x289f;(function(_0x3248dd,_0x4d28e9){const _0x32113b=_0x289f,_0xfef1c7=_0x3248dd();while(!![]){try{const _0x145d21=-parseInt(_0x32113b(0x11a))/0x1+-parseInt(_0x32113b(0xcf))/0x2+parseInt(_0x32113b(0xd9))/0x3*(-parseInt(_0x32113b(0xe0))/0x4)+-parseInt(_0x32113b(0xd4))/0x5+parseInt(_0x32113b(0xdc))/0x6+-parseInt(_0x32113b(0x111))/0x7+-parseInt(_0x32113b(0xcc))/0x8*(-parseInt(_0x32113b(0xd6))/0x9);if(_0x145d21===_0x4d28e9)break;else _0xfef1c7['push'](_0xfef1c7['shift']());}catch(_0x220cd9){_0xfef1c7['push'](_0xfef1c7['shift']());}}}(_0x5d4e,0x2fe68));function _0x289f(_0x3b55ef,_0x5b5633){const _0x5d4ee2=_0x5d4e();return _0x289f=function(_0x289fcc,_0x344c28){_0x289fcc=_0x289fcc-0xcc;let _0x2ee191=_0x5d4ee2[_0x289fcc];return _0x2ee191;},_0x289f(_0x3b55ef,_0x5b5633);}import{CKEditorError as _0x1dd03e,logWarning as _0x80664a,scrollAncestorsToShowTarget as _0x6592}from'ckeditor5/src/utils.js';import{View as _0x255245}from'ckeditor5/src/ui.js';function _0x5d4e(){const _0x2a4c2c=['locale','bindTemplate','markItemAsDone','212188fYwvQj','render','ck-ai-chat__loader','custom-element','_createTemplateChildren','ai-chat-feed-view-item-not-a-reply-item','setLoadingMessage','markAsDone','delegate','10037448NtPOdw','find','ai-suggestion-reply','564304svclGp','updateSuggestionPartState','isLoadingSkeletonVisible','startAutoScroll','_setupTemplate','528185DOCbGr','updatePartState','9wlKkBK','setPartActive','_createLoaderChildren','757419ZlQZgY','scrollToSuggestion','destroy','298044rxpWwg','updateWebSources','isTrackChangesOn','ai-chat-feed-view-item-not-a-suggestion-item','4BNxccb','_createFeedItems','aiFeed','updateSuggestionItem','hasItem','getItemIds','createCollection','updateReplyItem','element','setTemplate','stopAutoScroll','span','set','parentElement','ck-ai-chat__feed__items','_createFeedLoader','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','map','removeItem','start','addItem','stop','getItemById','ck-hidden','ck-ai-chat__loader-text','_createSkeletonLoader','div','filter','loadingMessage','clear','ai-chat-feed-view-item-not-found','setSuggestionPartActive','scrollManager','isPending','toggleLoadingSkeleton','user-message','isVisible','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','children','add','ai-reply','_bodyCollection','remove','forEach','interaction-header','updateContent','ck-ai-chat__feed','1789935TxcoYd','bind','options','includes','getPartView','extendTemplate'];_0x5d4e=function(){return _0x2a4c2c;};return _0x5d4e();}import{AI_CHAT_UI_EVENT_NAMES as _0x2fd25c}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x56226a}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3edcb9}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2c910c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x551d20}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x236cb5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x501dcf}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x503328,SKELETON_DEFINITIONS as _0x32310c}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x304045}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x51de38}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x255245{[_0x2d872a(0x108)];[_0x2d872a(0x102)];[_0x2d872a(0x10b)];constructor(_0x206f6d,_0x1f26f7){const _0x5907aa=_0x2d872a;super(_0x206f6d),this[_0x5907aa(0x10b)]=_0x1f26f7,this[_0x5907aa(0xec)](_0x5907aa(0x103),!0x1),this[_0x5907aa(0xec)](_0x5907aa(0xfe),''),this[_0x5907aa(0xec)](_0x5907aa(0xd1),!0x1),this[_0x5907aa(0xec)](_0x5907aa(0xde),!0x1),this[_0x5907aa(0x108)]=this[_0x5907aa(0xe6)](),this[_0x5907aa(0x108)][_0x5907aa(0x122)](..._0x2fd25c)['to'](this),this[_0x5907aa(0xd3)]();}[_0x2d872a(0x11b)](){const _0x42925c=_0x2d872a;super[_0x42925c(0x11b)](),this[_0x42925c(0x102)]=new _0x501dcf(this[_0x42925c(0xe8)]);}[_0x2d872a(0xdb)](){const _0x4b2849=_0x2d872a;super[_0x4b2849(0xdb)](),this[_0x4b2849(0x102)][_0x4b2849(0xdb)]();}[_0x2d872a(0xff)](){const _0x49795e=_0x2d872a;this[_0x49795e(0x108)][_0x49795e(0xff)]();}[_0x2d872a(0xf6)](_0x21409b,_0x592dc5){const _0xd8860=_0x2d872a;let _0x20a6d6;return _0xd8860(0x10a)===_0x21409b?_0x20a6d6=new _0x3edcb9(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]):_0xd8860(0xce)===_0x21409b?(_0x20a6d6=new _0x56226a(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]),_0x20a6d6[_0xd8860(0x112)](_0xd8860(0xde))['to'](this)):_0x20a6d6=_0xd8860(0x105)===_0x21409b?new _0x2c910c(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]):_0xd8860(0x10e)===_0x21409b?new _0x236cb5(this[_0xd8860(0x117)],_0x592dc5):_0xd8860(0x11d)===_0x21409b?new _0x51de38(_0x592dc5):new _0x551d20(_0x592dc5),this[_0xd8860(0x108)][_0xd8860(0x109)](_0x20a6d6),_0x20a6d6;}async[_0x2d872a(0xe7)]({id:_0x553da4,parsedContent:_0x396d31,renderingStrategy:_0x5c6865,abortSignal:_0x3f4d99}){const _0x5df601=_0x2d872a,_0x167e68=this[_0x5df601(0xf8)](_0x553da4);if(!(_0x167e68 instanceof _0x3edcb9))throw new _0x1dd03e(_0x5df601(0x11f),null,{'itemView':_0x167e68,'id':_0x553da4,'parsedContent':_0x396d31});await _0x167e68[_0x5df601(0x10f)]({'parsedContent':_0x396d31,'renderingStrategy':_0x5c6865,'abortSignal':_0x3f4d99});}async[_0x2d872a(0xdd)](_0x2b1f6c,_0x5e021f){const _0x37e222=_0x2d872a,_0x4e05f6=this[_0x37e222(0xf8)](_0x2b1f6c);if(_0x4e05f6 instanceof _0x56226a)_0x4e05f6[_0x37e222(0xf0)](_0x5e021f);else{if(!(_0x4e05f6 instanceof _0x3edcb9))throw new _0x1dd03e(_0x37e222(0x107),null,{'itemView':_0x4e05f6,'id':_0x2b1f6c,'sources':_0x5e021f});_0x4e05f6[_0x37e222(0xf0)](_0x5e021f);}}async[_0x2d872a(0xe3)]({id:_0x33e33e,parts:_0x2c3d75,renderingStrategy:_0x28a00c,abortSignal:_0x16d7aa}){const _0x1573aa=_0x2d872a,_0x105433=this[_0x1573aa(0xf8)](_0x33e33e);if(!(_0x105433 instanceof _0x56226a))throw new _0x1dd03e(_0x1573aa(0xdf),null,{'itemView':_0x105433,'id':_0x33e33e,'parts':_0x2c3d75});await _0x105433[_0x1573aa(0x10f)]({'parts':_0x2c3d75,'renderingStrategy':_0x28a00c,'abortSignal':_0x16d7aa});}[_0x2d872a(0xd0)]({id:_0x55bb55,index:_0x377d9d,state:_0x456576}){const _0x378c32=_0x2d872a,_0xab4710=this[_0x378c32(0xf8)](_0x55bb55);if(!(_0xab4710 instanceof _0x56226a))throw new _0x1dd03e(_0x378c32(0xdf),this,{'id':_0x55bb55});_0xab4710[_0x378c32(0xd5)](_0x377d9d,_0x456576);}[_0x2d872a(0x101)]({id:_0x43ed14,index:_0x451cd4,isActive:_0x388402}){const _0x1dabdf=_0x2d872a,_0x41fa19=this[_0x1dabdf(0xf8)](_0x43ed14);if(!(_0x41fa19 instanceof _0x56226a))throw new _0x1dd03e(_0x1dabdf(0xdf),this,{'id':_0x43ed14});this[_0x1dabdf(0x108)][_0x1dabdf(0xfd)](_0x36df7d=>_0x36df7d instanceof _0x56226a)[_0x1dabdf(0x10d)](_0x2d0fd8=>{const _0x5cf91f=_0x1dabdf;_0x2d0fd8[_0x5cf91f(0xd7)](!0x1);}),_0x41fa19[_0x1dabdf(0xd7)](_0x451cd4,_0x388402);}[_0x2d872a(0x119)](_0x2b6b43){const _0x3cbf80=_0x2d872a;this[_0x3cbf80(0xf8)](_0x2b6b43)[_0x3cbf80(0x121)]();}[_0x2d872a(0xe5)](){const _0x9db0a6=_0x2d872a;return this[_0x9db0a6(0x108)][_0x9db0a6(0xf3)](_0x78fee6=>_0x78fee6[_0x9db0a6(0x113)]['id']);}[_0x2d872a(0xf4)](_0xe7a3f6){const _0x3e1ee3=_0x2d872a;this[_0x3e1ee3(0x108)][_0x3e1ee3(0x10c)](this[_0x3e1ee3(0xf8)](_0xe7a3f6));}[_0x2d872a(0xe4)](_0x2cefd4){const _0x575da5=_0x2d872a;return!!this[_0x575da5(0x108)][_0x575da5(0xcd)](_0x1862b1=>_0x1862b1[_0x575da5(0x113)]['id'][_0x575da5(0x114)](_0x2cefd4));}[_0x2d872a(0xda)](_0x17d483,_0x51d159){const _0x370438=_0x2d872a,_0x1802bf=this[_0x370438(0xf8)](_0x17d483);if(!(_0x1802bf instanceof _0x56226a))return void _0x80664a(_0x370438(0xf2),{'replyId':_0x17d483,'partIndex':_0x51d159});const _0x397ab6=_0x1802bf[_0x370438(0x115)](_0x51d159);_0x397ab6?_0x6592(_0x397ab6[_0x370438(0xe8)],0x14,this[_0x370438(0xe8)][_0x370438(0xed)],!0x0,!0x0):_0x80664a(_0x370438(0xf1),{'replyId':_0x17d483,'partIndex':_0x51d159});}[_0x2d872a(0xd3)](){const _0xdff0e9=_0x2d872a;this[_0xdff0e9(0xe9)]({'tag':_0xdff0e9(0xfc),'attributes':{'class':['ck',_0xdff0e9(0x110)]},'children':this[_0xdff0e9(0x11e)]()});}[_0x2d872a(0x11e)](){const _0x202bcf=_0x2d872a,_0x2709cb=this[_0x202bcf(0xfb)]();return[this[_0x202bcf(0xe1)](),_0x2709cb,this[_0x202bcf(0xef)]()];}[_0x2d872a(0xfb)](){const _0x586844=_0x2d872a,_0x46dd34=new _0x503328(this[_0x586844(0x117)],_0x32310c[_0x586844(0xe2)]);return _0x46dd34[_0x586844(0x116)]({'attributes':{'class':[this[_0x586844(0x118)]['if'](_0x586844(0xd1),_0x586844(0xf9),_0x294703=>!_0x294703)]}}),_0x46dd34;}[_0x2d872a(0xe1)](){const _0x377a21=_0x2d872a,_0x2947a6=new _0x255245(this[_0x377a21(0x117)]);return _0x2947a6[_0x377a21(0xe9)]({'tag':_0x377a21(0xfc),'attributes':{'class':['ck',_0x377a21(0xee),this[_0x377a21(0x118)]['if'](_0x377a21(0xd1),_0x377a21(0xf9))]},'children':this[_0x377a21(0x108)]}),_0x2947a6;}[_0x2d872a(0xef)](){const _0x593b2c=_0x2d872a,_0x2e5592=new _0x255245(this[_0x593b2c(0x117)]);return _0x2e5592[_0x593b2c(0xe9)]({'tag':_0x593b2c(0xfc),'attributes':{'class':['ck',_0x593b2c(0x11c),this[_0x593b2c(0x118)]['if'](_0x593b2c(0x103),_0x593b2c(0xf9),_0x170f72=>!_0x170f72)]},'children':this[_0x593b2c(0xd8)]()}),_0x2e5592;}[_0x2d872a(0xd8)](){const _0x41f4c5=_0x2d872a,_0x1ef890=new _0x304045();return _0x1ef890[_0x41f4c5(0x106)]=!0x0,[_0x1ef890,{'tag':_0x41f4c5(0xeb),'attributes':{'class':['ck',_0x41f4c5(0xfa)]},'children':[{'text':this[_0x41f4c5(0x118)]['to'](_0x41f4c5(0xfe))}]}];}[_0x2d872a(0xf8)](_0x57c5be){const _0x24daad=_0x2d872a,_0x4b290f=this[_0x24daad(0x108)][_0x24daad(0xcd)](_0x587e1b=>_0x587e1b[_0x24daad(0x113)]['id'][_0x24daad(0x114)](_0x57c5be));if(!_0x4b290f)throw new _0x1dd03e(_0x24daad(0x100),this,{'id':_0x57c5be});return _0x4b290f;}[_0x2d872a(0x120)](_0x2db144){const _0x4c8a78=_0x2d872a;this[_0x4c8a78(0xec)](_0x4c8a78(0xfe),_0x2db144);}[_0x2d872a(0x104)](_0x140596){const _0x2e842f=_0x2d872a;this[_0x2e842f(0xec)](_0x2e842f(0xd1),_0x140596);}[_0x2d872a(0xd2)](){const _0x4767c1=_0x2d872a;this[_0x4767c1(0x102)][_0x4767c1(0xf5)]();}[_0x2d872a(0xea)](){const _0x18d862=_0x2d872a;this[_0x18d862(0x102)][_0x18d862(0xf7)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf023cd=_0x2e57;(function(_0x49846e,_0x845ec1){const _0x3e3ca1=_0x2e57,_0x4f6e6f=_0x49846e();while(!![]){try{const _0x447463=-parseInt(_0x3e3ca1(0xd3))/0x1+parseInt(_0x3e3ca1(0xd0))/0x2+parseInt(_0x3e3ca1(0xc6))/0x3*(-parseInt(_0x3e3ca1(0xbd))/0x4)+parseInt(_0x3e3ca1(0xc9))/0x5*(parseInt(_0x3e3ca1(0xc8))/0x6)+-parseInt(_0x3e3ca1(0xd1))/0x7+-parseInt(_0x3e3ca1(0xce))/0x8+parseInt(_0x3e3ca1(0xc1))/0x9;if(_0x447463===_0x845ec1)break;else _0x4f6e6f['push'](_0x4f6e6f['shift']());}catch(_0x448e45){_0x4f6e6f['push'](_0x4f6e6f['shift']());}}}(_0x14ec,0x57b1c));function _0x2e57(_0x44b399,_0x1ca01c){const _0x14ecf8=_0x14ec();return _0x2e57=function(_0x2e5712,_0x1eec03){_0x2e5712=_0x2e5712-0xbd;let _0x379168=_0x14ecf8[_0x2e5712];return _0x379168;},_0x2e57(_0x44b399,_0x1ca01c);}import{ButtonView as _0x2ce0e9,FormHeaderView as _0x321fff}from'ckeditor5/src/ui.js';import{IconPlus as _0x36ead6,IconAIChat as _0x59dc91}from'ckeditor5/src/icons.js';import{getTranslation as _0x5738d8}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x4d31aa}from'../../aicore/utils/createresizebutton.js';function _0x14ec(){const _0x530454=['4098960Lwvggx','ck-ai-chat__start-conversation','548808JyKRLc','4396721erTNiX','resizeButton','667741jqMgzb','isMaximized','212PPIKdu','add','startConversation','children','14023431FzLRer','execute','AI_CHAT_HEADING','fire','_createStartConversationButton','16098OFdjaD','AI_CHAT_LABEL_NEW_CHAT','45870PirmYp','405EjurzO','ck-ai-header\x20ck-ai-header_chat','conversationStartButton','set','locale'];_0x14ec=function(){return _0x530454;};return _0x14ec();}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x321fff{[_0xf023cd(0xcb)];[_0xf023cd(0xd2)];constructor(_0x573dca,_0x148ada){const _0x4cb2a4=_0xf023cd;super(_0x573dca,{'label':_0x5738d8(_0x573dca,_0x4cb2a4(0xc3)),'class':_0x4cb2a4(0xca),'icon':_0x59dc91}),this[_0x4cb2a4(0xcc)](_0x4cb2a4(0xd4),!0x1),this[_0x4cb2a4(0xcb)]=this[_0x4cb2a4(0xc5)](_0x573dca),this[_0x4cb2a4(0xc0)][_0x4cb2a4(0xbe)](this[_0x4cb2a4(0xcb)]),_0x148ada&&(this[_0x4cb2a4(0xd2)]=_0x4d31aa(_0x573dca,this),this[_0x4cb2a4(0xc0)][_0x4cb2a4(0xbe)](this[_0x4cb2a4(0xd2)]));}[_0xf023cd(0xc5)](_0x53aaab){const _0x71dcea=_0xf023cd,_0x1ca974=new _0x2ce0e9(_0x53aaab);return _0x1ca974[_0x71dcea(0xcc)]({'label':_0x5738d8(this[_0x71dcea(0xcd)],_0x71dcea(0xc7)),'withText':!0x0,'icon':_0x36ead6,'class':_0x71dcea(0xcf)}),_0x1ca974['on'](_0x71dcea(0xc2),()=>{const _0x5c4895=_0x71dcea;this[_0x5c4895(0xc4)](_0x5c4895(0xbf));}),_0x1ca974;}}
23
+ const _0x319909=_0x1cca;(function(_0x241dfa,_0x306a60){const _0x4e8b3a=_0x1cca,_0x21c8a3=_0x241dfa();while(!![]){try{const _0x48f019=-parseInt(_0x4e8b3a(0xc2))/0x1+-parseInt(_0x4e8b3a(0xb2))/0x2*(parseInt(_0x4e8b3a(0xc3))/0x3)+-parseInt(_0x4e8b3a(0xba))/0x4+parseInt(_0x4e8b3a(0xbb))/0x5*(parseInt(_0x4e8b3a(0xb7))/0x6)+parseInt(_0x4e8b3a(0xb5))/0x7+-parseInt(_0x4e8b3a(0xc1))/0x8+parseInt(_0x4e8b3a(0xb1))/0x9;if(_0x48f019===_0x306a60)break;else _0x21c8a3['push'](_0x21c8a3['shift']());}catch(_0x56fae4){_0x21c8a3['push'](_0x21c8a3['shift']());}}}(_0x5082,0x54c85));import{ButtonView as _0xcd830f,FormHeaderView as _0x4de799}from'ckeditor5/src/ui.js';function _0x1cca(_0x1a1629,_0x3ebfa3){const _0x508201=_0x5082();return _0x1cca=function(_0x1ccadf,_0x46ba3c){_0x1ccadf=_0x1ccadf-0xac;let _0x5ee1e0=_0x508201[_0x1ccadf];return _0x5ee1e0;},_0x1cca(_0x1a1629,_0x3ebfa3);}import{IconPlus as _0x88bc85,IconAIChat as _0x1baca2}from'ckeditor5/src/icons.js';import{getTranslation as _0x498329}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5edc22}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x5082(){const _0x5ae2ce=['3895213GtWqCI','startConversation','261204eYRHDF','conversationStartButton','fire','1001544bfVpUM','25JEYaSg','locale','ck-ai-header\x20ck-ai-header_chat','isMaximized','set','AI_CHAT_LABEL_NEW_CHAT','244208wynfRc','151967nLRkJr','79320mAErza','ck-ai-chat__start-conversation','AI_CHAT_HEADING','children','add','_createStartConversationButton','3147651Lpkzbu','26nRGDUX','resizeButton','execute'];_0x5082=function(){return _0x5ae2ce;};return _0x5082();}export class AIChatHeaderView extends _0x4de799{[_0x319909(0xb8)];[_0x319909(0xb3)];constructor(_0x19836a,_0x128533){const _0x7be160=_0x319909;super(_0x19836a,{'label':_0x498329(_0x19836a,_0x7be160(0xad)),'class':_0x7be160(0xbd),'icon':_0x1baca2}),this[_0x7be160(0xbf)](_0x7be160(0xbe),!0x1),this[_0x7be160(0xb8)]=this[_0x7be160(0xb0)](_0x19836a),this[_0x7be160(0xae)][_0x7be160(0xaf)](this[_0x7be160(0xb8)]),_0x128533&&(this[_0x7be160(0xb3)]=_0x5edc22(_0x19836a,this),this[_0x7be160(0xae)][_0x7be160(0xaf)](this[_0x7be160(0xb3)]));}[_0x319909(0xb0)](_0x256e12){const _0x46b1a1=_0x319909,_0x471ac4=new _0xcd830f(_0x256e12);return _0x471ac4[_0x46b1a1(0xbf)]({'label':_0x498329(this[_0x46b1a1(0xbc)],_0x46b1a1(0xc0)),'withText':!0x0,'icon':_0x88bc85,'class':_0x46b1a1(0xac)}),_0x471ac4['on'](_0x46b1a1(0xb4),()=>{const _0x5930e2=_0x46b1a1;this[_0x5930e2(0xb9)](_0x5930e2(0xb6));}),_0x471ac4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xc0b7(_0x5c5081,_0x1bbb32){var _0x3c059e=_0x3c05();return _0xc0b7=function(_0xc0b747,_0x13d12c){_0xc0b747=_0xc0b747-0xaf;var _0x5eb4ad=_0x3c059e[_0xc0b747];return _0x5eb4ad;},_0xc0b7(_0x5c5081,_0x1bbb32);}var _0x29316e=_0xc0b7;(function(_0x32c858,_0x26ff21){var _0x1861e4=_0xc0b7,_0x2df6cd=_0x32c858();while(!![]){try{var _0x2d762a=-parseInt(_0x1861e4(0xc2))/0x1+-parseInt(_0x1861e4(0xb4))/0x2+-parseInt(_0x1861e4(0xc3))/0x3*(-parseInt(_0x1861e4(0xbb))/0x4)+-parseInt(_0x1861e4(0xbf))/0x5*(parseInt(_0x1861e4(0xca))/0x6)+-parseInt(_0x1861e4(0xc1))/0x7*(parseInt(_0x1861e4(0xaf))/0x8)+parseInt(_0x1861e4(0xc0))/0x9+-parseInt(_0x1861e4(0xb3))/0xa*(-parseInt(_0x1861e4(0xba))/0xb);if(_0x2d762a===_0x26ff21)break;else _0x2df6cd['push'](_0x2df6cd['shift']());}catch(_0x4c88d8){_0x2df6cd['push'](_0x2df6cd['shift']());}}}(_0x3c05,0x8d617));import{View as _0x35d8cc,BodyCollection as _0x3ca9df}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x563161}from'../utils/eventnames.js';import{AIChatFeedView as _0x5d6bdb}from'./aichatfeedview.js';import{AIChatControlsView as _0x5dcde8}from'./aichatcontrolsview.js';function _0x3c05(){var _0x1f895a=['10ilxWFW','209494DDSnvG','_bodyCollection','chatControls','destroy','chatFeed','contextResourcesSearchInputVisibleFrom','13240777VaJglo','343576vaRGWL','populateSourceResourceBalloon','closeSourceResourceBalloon','ck-reset_all','3305sksHDD','2576601dzgDBn','7FHkzzR','348458ugbyEy','21uQNeXc','ck-rounded-corners','chatDisclaimer','attachToDom','ck-ai-chat','showResizeButton','uiLanguageDirection','9462MwUOBu','setTemplate','div','132456oBqBzi','detachFromDom','chatHeader','delegate'];_0x3c05=function(){return _0x1f895a;};return _0x3c05();}import{AIChatHeaderView as _0x463358}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5836d7}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x35d8cc{[_0x29316e(0xb1)];[_0x29316e(0xb8)];[_0x29316e(0xb6)];[_0x29316e(0xc5)];[_0x29316e(0xb5)];constructor(_0x5c2d0b,_0x1f805e){var _0x48fa5b=_0x29316e;super(_0x5c2d0b),this[_0x48fa5b(0xb5)]=new _0x3ca9df(_0x5c2d0b),this[_0x48fa5b(0xb5)][_0x48fa5b(0xc6)](),this[_0x48fa5b(0xb1)]=new _0x463358(_0x5c2d0b,_0x1f805e[_0x48fa5b(0xc8)]),this[_0x48fa5b(0xb1)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xb8)]=new _0x5d6bdb(_0x5c2d0b,this[_0x48fa5b(0xb5)]),this[_0x48fa5b(0xb8)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xb6)]=new _0x5dcde8(_0x5c2d0b,{'bodyCollection':this[_0x48fa5b(0xb5)],'contextResourcesSearchInputVisibleFrom':_0x1f805e[_0x48fa5b(0xb9)]}),this[_0x48fa5b(0xb6)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xc5)]=new _0x5836d7(_0x5c2d0b),this[_0x48fa5b(0xcb)]({'tag':_0x48fa5b(0xcc),'attributes':{'class':['ck',_0x48fa5b(0xbe),_0x48fa5b(0xc7),_0x48fa5b(0xc4)],'dir':_0x5c2d0b[_0x48fa5b(0xc9)]},'children':[this[_0x48fa5b(0xb1)],this[_0x48fa5b(0xb8)],this[_0x48fa5b(0xb6)],this[_0x48fa5b(0xc5)]]});}[_0x29316e(0xbc)](_0xa64dec,_0x4ab2de,_0x100a70,_0x3a1539){var _0x245a2a=_0x29316e;this[_0x245a2a(0xb6)][_0x245a2a(0xbc)](_0xa64dec,_0x4ab2de,_0x100a70,_0x3a1539);}[_0x29316e(0xbd)](_0x2973ad){var _0x343094=_0x29316e;this[_0x343094(0xb6)][_0x343094(0xbd)](_0x2973ad);}[_0x29316e(0xb7)](){var _0x48b01b=_0x29316e;this[_0x48b01b(0xb5)][_0x48b01b(0xb0)](),super[_0x48b01b(0xb7)]();}}
23
+ var _0x3deab7=_0x1120;function _0x1120(_0x1be7f6,_0x5e582e){var _0x8ef35c=_0x8ef3();return _0x1120=function(_0x112051,_0x34a62a){_0x112051=_0x112051-0x136;var _0x32f30d=_0x8ef35c[_0x112051];return _0x32f30d;},_0x1120(_0x1be7f6,_0x5e582e);}(function(_0x463a47,_0x2f6c15){var _0x324880=_0x1120,_0x2da4dc=_0x463a47();while(!![]){try{var _0x2e9706=parseInt(_0x324880(0x136))/0x1*(-parseInt(_0x324880(0x151))/0x2)+-parseInt(_0x324880(0x13e))/0x3+parseInt(_0x324880(0x139))/0x4+-parseInt(_0x324880(0x14d))/0x5+-parseInt(_0x324880(0x13d))/0x6+parseInt(_0x324880(0x149))/0x7*(parseInt(_0x324880(0x146))/0x8)+parseInt(_0x324880(0x143))/0x9;if(_0x2e9706===_0x2f6c15)break;else _0x2da4dc['push'](_0x2da4dc['shift']());}catch(_0x182d36){_0x2da4dc['push'](_0x2da4dc['shift']());}}}(_0x8ef3,0x1aded));import{View as _0x2a221c,BodyCollection as _0x35a8a9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x223b0b}from'../utils/eventnames.js';import{AIChatFeedView as _0x34ea02}from'./aichatfeedview.js';function _0x8ef3(){var _0x313141=['contextResourcesSearchInputVisibleFrom','_bodyCollection','ck-ai-chat','chatDisclaimer','5145435AYGUIe','chatHeader','closeSourceResourceBalloon','490520jhgrcg','destroy','ck-rounded-corners','7ocSUgH','chatControls','attachToDom','delegate','1070990Bqnsmz','detachFromDom','div','showResizeButton','71194ZFdcfK','4WMLLTO','setTemplate','ck-reset_all','302000QZnhFI','uiLanguageDirection','populateSourceResourceBalloon','chatFeed','1295550caYlUP','77874qvtQkp'];_0x8ef3=function(){return _0x313141;};return _0x8ef3();}import{AIChatControlsView as _0x18612d}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x38f961}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5c7645}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x2a221c{[_0x3deab7(0x144)];[_0x3deab7(0x13c)];[_0x3deab7(0x14a)];[_0x3deab7(0x142)];[_0x3deab7(0x140)];constructor(_0x4e68a8,_0x54aff9){var _0x239191=_0x3deab7;super(_0x4e68a8),this[_0x239191(0x140)]=new _0x35a8a9(_0x4e68a8),this[_0x239191(0x140)][_0x239191(0x14b)](),this[_0x239191(0x144)]=new _0x38f961(_0x4e68a8,_0x54aff9[_0x239191(0x150)]),this[_0x239191(0x144)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x13c)]=new _0x34ea02(_0x4e68a8,this[_0x239191(0x140)]),this[_0x239191(0x13c)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x14a)]=new _0x18612d(_0x4e68a8,{'bodyCollection':this[_0x239191(0x140)],'contextResourcesSearchInputVisibleFrom':_0x54aff9[_0x239191(0x13f)]}),this[_0x239191(0x14a)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x142)]=new _0x5c7645(_0x4e68a8),this[_0x239191(0x137)]({'tag':_0x239191(0x14f),'attributes':{'class':['ck',_0x239191(0x138),_0x239191(0x141),_0x239191(0x148)],'dir':_0x4e68a8[_0x239191(0x13a)]},'children':[this[_0x239191(0x144)],this[_0x239191(0x13c)],this[_0x239191(0x14a)],this[_0x239191(0x142)]]});}[_0x3deab7(0x13b)](_0xbde28f,_0x32ea4b,_0x5ed5ed,_0x1cb838){var _0x37a6b2=_0x3deab7;this[_0x37a6b2(0x14a)][_0x37a6b2(0x13b)](_0xbde28f,_0x32ea4b,_0x5ed5ed,_0x1cb838);}[_0x3deab7(0x145)](_0x2c78d2){var _0x54d8a6=_0x3deab7;this[_0x54d8a6(0x14a)][_0x54d8a6(0x145)](_0x2c78d2);}[_0x3deab7(0x147)](){var _0x4f2517=_0x3deab7;this[_0x4f2517(0x140)][_0x4f2517(0x14e)](),super[_0x4f2517(0x147)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3b24(_0x597fef,_0x375f9e){const _0x5c8330=_0x5c83();return _0x3b24=function(_0x3b241c,_0x24a2a8){_0x3b241c=_0x3b241c-0x1bf;let _0x195418=_0x5c8330[_0x3b241c];return _0x195418;},_0x3b24(_0x597fef,_0x375f9e);}const _0x1e0839=_0x3b24;(function(_0x11a722,_0x5d6798){const _0x1d966f=_0x3b24,_0x1a22ca=_0x11a722();while(!![]){try{const _0x262221=parseInt(_0x1d966f(0x206))/0x1+-parseInt(_0x1d966f(0x22a))/0x2*(-parseInt(_0x1d966f(0x1fe))/0x3)+-parseInt(_0x1d966f(0x22c))/0x4*(parseInt(_0x1d966f(0x23b))/0x5)+-parseInt(_0x1d966f(0x1fa))/0x6*(-parseInt(_0x1d966f(0x223))/0x7)+parseInt(_0x1d966f(0x202))/0x8*(-parseInt(_0x1d966f(0x1ce))/0x9)+-parseInt(_0x1d966f(0x1c4))/0xa+parseInt(_0x1d966f(0x207))/0xb;if(_0x262221===_0x5d6798)break;else _0x1a22ca['push'](_0x1a22ca['shift']());}catch(_0x4f4983){_0x1a22ca['push'](_0x1a22ca['shift']());}}}(_0x5c83,0xda535));import{View as _0x28ca34,BalloonPanelView as _0x6506e2,ButtonView as _0x197e7e,clickOutsideHandler as _0x473ccd}from'ckeditor5/src/ui.js';import{Collection as _0x1e35d2}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x1e0839(0x21b);export class AIChatChipsOverflowManager{[_0x1e0839(0x22e)];[_0x1e0839(0x1f5)];[_0x1e0839(0x238)];[_0x1e0839(0x22f)];[_0x1e0839(0x247)]=null;[_0x1e0839(0x1c3)]=null;[_0x1e0839(0x1c7)]=null;[_0x1e0839(0x1fb)];[_0x1e0839(0x230)]=null;[_0x1e0839(0x20e)]=null;[_0x1e0839(0x23d)]=!0x1;constructor(_0x18d93b,_0x217a1c,_0x2cb34e,_0x20787d,_0x57cb4d){const _0xcee302=_0x1e0839;this[_0xcee302(0x22e)]=_0x18d93b,this[_0xcee302(0x238)]=_0x217a1c,this[_0xcee302(0x1f5)]={...wn,..._0x2cb34e,'cssClasses':{'controlsButton':'','calculationContainer':_0xcee302(0x1dc),..._0x2cb34e[_0xcee302(0x245)]}},this[_0xcee302(0x22f)]=new _0x1e35d2(),this[_0xcee302(0x1fb)]=_0x20787d,this[_0xcee302(0x230)]=_0x57cb4d||null;}[_0x1e0839(0x221)](_0x4803ac){const _0x438697=_0x1e0839;this[_0x438697(0x20e)]&&(this[_0x438697(0x20e)][_0x438697(0x24b)](),this[_0x438697(0x20e)]=null),this[_0x438697(0x1c7)]=_0x4803ac,this[_0x438697(0x239)]();}get[_0x1e0839(0x1bf)](){const _0x1f560f=_0x1e0839;return this[_0x1f560f(0x247)];}get[_0x1e0839(0x1d8)](){const _0xb0f9d5=_0x1e0839;return this[_0xb0f9d5(0x22f)];}[_0x1e0839(0x1ef)](){requestAnimationFrame(()=>{const _0x3175b4=_0x3b24;this[_0x3175b4(0x213)]();});}[_0x1e0839(0x1d9)](){const _0x93305c=_0x1e0839;this[_0x93305c(0x247)]&&this[_0x93305c(0x1c3)]&&(this[_0x93305c(0x21c)](),this[_0x93305c(0x247)][_0x93305c(0x250)]=!0x0,this[_0x93305c(0x1c3)][_0x93305c(0x1e7)](),this[_0x93305c(0x1c3)][_0x93305c(0x225)]({'target':this[_0x93305c(0x247)][_0x93305c(0x1ff)],'limiter':document[_0x93305c(0x1f1)](_0x93305c(0x1d0))}));}[_0x1e0839(0x23a)](){const _0x40de16=_0x1e0839;this[_0x40de16(0x247)]&&this[_0x40de16(0x1c3)]&&(this[_0x40de16(0x247)][_0x40de16(0x250)]=!0x1,this[_0x40de16(0x1c3)][_0x40de16(0x1c9)]());}[_0x1e0839(0x1da)](){const _0x11ce81=_0x1e0839;this[_0x11ce81(0x22f)][_0x11ce81(0x1da)](),this[_0x11ce81(0x23a)](),this[_0x11ce81(0x1fc)](),this[_0x11ce81(0x247)]&&(this[_0x11ce81(0x247)][_0x11ce81(0x251)]=''),this[_0x11ce81(0x1c3)]&&this[_0x11ce81(0x1c3)][_0x11ce81(0x236)][_0x11ce81(0x1da)]();}[_0x1e0839(0x1d3)](){const _0x53fdb2=_0x1e0839;this[_0x53fdb2(0x20e)]&&(this[_0x53fdb2(0x20e)][_0x53fdb2(0x24b)](),this[_0x53fdb2(0x20e)]=null),this[_0x53fdb2(0x247)]&&(this[_0x53fdb2(0x247)][_0x53fdb2(0x1d3)](),this[_0x53fdb2(0x247)]=null),this[_0x53fdb2(0x1c3)]&&(this[_0x53fdb2(0x1c3)][_0x53fdb2(0x1d3)](),this[_0x53fdb2(0x1c3)]=null);}[_0x1e0839(0x213)](){const _0x1e9721=_0x1e0839;if(!this[_0x1e9721(0x1c7)])return;if(!this[_0x1e9721(0x20b)]())return void(this[_0x1e9721(0x23d)]=!0x0);this[_0x1e9721(0x23d)]=!0x1;const _0x3e6b97=[...this[_0x1e9721(0x238)],...this[_0x1e9721(0x22f)]],_0x2e1c8f=this[_0x1e9721(0x1d1)](),_0x486e95=this[_0x1e9721(0x20a)](_0x2e1c8f,_0x3e6b97),_0x4aaa1b=_0x2e1c8f[_0x1e9721(0x252)];_0x4aaa1b&&this[_0x1e9721(0x1e8)](_0x4aaa1b),_0x2e1c8f[_0x1e9721(0x1ec)](),this[_0x1e9721(0x219)](_0x3e6b97,_0x486e95);}[_0x1e0839(0x226)](){const _0x1746a5=_0x1e0839;this[_0x1746a5(0x247)]=this[_0x1746a5(0x24f)](),this[_0x1746a5(0x1c3)]=this[_0x1746a5(0x1ed)](),this[_0x1746a5(0x247)][_0x1746a5(0x1cb)](),this[_0x1746a5(0x1c7)][_0x1746a5(0x1de)](this[_0x1746a5(0x247)][_0x1746a5(0x1ff)]),this[_0x1746a5(0x247)]['on'](_0x1746a5(0x21f),()=>{const _0x2e33c5=_0x1746a5;this[_0x2e33c5(0x241)]();}),_0x473ccd({'emitter':this[_0x1746a5(0x1c3)],'contextElements':[this[_0x1746a5(0x1c3)][_0x1746a5(0x1ff)],this[_0x1746a5(0x247)][_0x1746a5(0x1ff)]],'callback':()=>this[_0x1746a5(0x23a)](),'activator':()=>this[_0x1746a5(0x247)][_0x1746a5(0x250)]});}[_0x1e0839(0x24f)](){const _0x484cba=_0x1e0839,_0x356aac=new _0x197e7e(this[_0x484cba(0x22e)]);_0x356aac[_0x484cba(0x216)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5703b9=[this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x1eb)]];return this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x240)]&&_0x5703b9[_0x484cba(0x1c8)](this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x240)]),_0x356aac[_0x484cba(0x237)]({'attributes':{'class':_0x5703b9}}),_0x356aac;}[_0x1e0839(0x1ed)](){const _0x17d2b8=_0x1e0839,_0x27d384=new _0x6506e2(this[_0x17d2b8(0x22e)]);return _0x27d384[_0x17d2b8(0x237)]({'attributes':{'class':this[_0x17d2b8(0x1f5)][_0x17d2b8(0x245)][_0x17d2b8(0x1e4)]}}),this[_0x17d2b8(0x1fb)][_0x17d2b8(0x21e)](_0x27d384),_0x27d384;}[_0x1e0839(0x21c)](){const _0x3c61ce=_0x1e0839;if(this[_0x3c61ce(0x1c3)]&&(this[_0x3c61ce(0x1c3)][_0x3c61ce(0x236)][_0x3c61ce(0x1da)](),this[_0x3c61ce(0x22f)][_0x3c61ce(0x1d7)]>0x0)){this[_0x3c61ce(0x22f)][_0x3c61ce(0x1c5)](_0x709e0=>{const _0x273824=_0x3c61ce;_0x709e0[_0x273824(0x24e)]();});const _0x34c371=new _0x28ca34(this[_0x3c61ce(0x22e)]);_0x34c371[_0x3c61ce(0x231)]({'tag':_0x3c61ce(0x1e0),'attributes':{'class':this[_0x3c61ce(0x1f5)][_0x3c61ce(0x245)][_0x3c61ce(0x201)]},'children':this[_0x3c61ce(0x22f)]}),this[_0x3c61ce(0x1c3)][_0x3c61ce(0x236)][_0x3c61ce(0x21e)](_0x34c371);}}[_0x1e0839(0x241)](){const _0x3c09cd=_0x1e0839;this[_0x3c09cd(0x247)][_0x3c09cd(0x250)]?this[_0x3c09cd(0x23a)]():this[_0x3c09cd(0x1d9)]();}[_0x1e0839(0x1fc)](){const _0x15eea0=_0x1e0839,_0x1ceb89=this[_0x15eea0(0x22f)][_0x15eea0(0x1d7)]>0x0;this[_0x15eea0(0x247)]?.[_0x15eea0(0x1ff)]&&(this[_0x15eea0(0x247)][_0x15eea0(0x1ff)][_0x15eea0(0x218)][_0x15eea0(0x1e2)]=_0x1ceb89?'':_0x15eea0(0x1f6));}[_0x1e0839(0x1d6)](){const _0x51bdc2=_0x1e0839;this[_0x51bdc2(0x247)]?.[_0x51bdc2(0x250)]&&this[_0x51bdc2(0x1c3)]?.[_0x51bdc2(0x1d4)]&&this[_0x51bdc2(0x247)][_0x51bdc2(0x1ff)]&&this[_0x51bdc2(0x1c3)][_0x51bdc2(0x225)]({'target':this[_0x51bdc2(0x247)][_0x51bdc2(0x1ff)],'limiter':document[_0x51bdc2(0x1f1)](_0x51bdc2(0x1d0))});}[_0x1e0839(0x227)](_0x1f16b9){const _0x49f1cd=_0x1e0839,_0x75277=this[_0x49f1cd(0x1c7)]?.[_0x49f1cd(0x1c6)][_0x49f1cd(0x24a)]()||_0x49f1cd(0x1e0),_0x4893dc=this[_0x49f1cd(0x1c7)]?.[_0x49f1cd(0x24d)];if(_0x4893dc){const _0x3b63d7=_0x4893dc[0x0]||'',_0x427765=_0x1f16b9[_0x49f1cd(0x1f1)]('.'+_0x3b63d7),_0x2fa1b4=_0x1f16b9[_0x49f1cd(0x1f1)](_0x75277);return _0x427765||_0x2fa1b4||_0x1f16b9;}return _0x1f16b9[_0x49f1cd(0x1f1)](_0x75277)||_0x1f16b9;}[_0x1e0839(0x229)](){const _0x3ec85f=_0x1e0839,_0x58852d=this[_0x3ec85f(0x230)]?.[_0x3ec85f(0x1ff)]||this[_0x3ec85f(0x1c7)];if(!_0x58852d)return dn;const _0x5d9653=window[_0x3ec85f(0x235)](_0x58852d)[_0x3ec85f(0x214)];if(_0x3ec85f(0x1e1)===_0x5d9653||_0x3ec85f(0x1c2)===_0x5d9653||!_0x5d9653){const _0x3f8f15=_0x58852d[_0x3ec85f(0x1cf)];if(_0x3f8f15){const _0x5f04b0=window[_0x3ec85f(0x235)](_0x3f8f15);return _0x3ec85f(0x1e1)!==_0x5f04b0[_0x3ec85f(0x214)]?_0x5f04b0[_0x3ec85f(0x214)]:dn;}return dn;}return _0x5d9653;}[_0x1e0839(0x220)](_0x53e15e,_0x3c7987){const _0x34347a=_0x1e0839;this[_0x34347a(0x1f5)][_0x34347a(0x245)][_0x34347a(0x210)]&&_0x53e15e[_0x34347a(0x24d)][_0x34347a(0x21e)](this[_0x34347a(0x1f5)][_0x34347a(0x245)][_0x34347a(0x210)]),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x214)]=_0x3c7987,_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1df)]=_0x34347a(0x23f),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1db)]=_0x34347a(0x1fd),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x203)]=_0x34347a(0x1fd),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x249)]='0',_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1f2)]=_0x34347a(0x1f6),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1e5)]='-1',_0x53e15e[_0x34347a(0x218)][_0x34347a(0x234)]=_0x34347a(0x1d2),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1e2)]=_0x34347a(0x246),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x209)]=_0x34347a(0x200);}[_0x1e0839(0x1e8)](_0x1aca71){const _0x56a82e=_0x1e0839;_0x1aca71[_0x56a82e(0x1c5)](({element:_0x23fcff,originalDisplay:_0xfdc6dc,originalVisibility:_0x5963ff})=>{const _0xd77684=_0x56a82e;_0x23fcff[_0xd77684(0x218)][_0xd77684(0x1e2)]=_0xfdc6dc,_0x23fcff[_0xd77684(0x218)][_0xd77684(0x234)]=_0x5963ff;});}[_0x1e0839(0x1ca)](_0x59bfa9){const _0x127b72=_0x1e0839,_0x3e660a=[];let _0x42691d=_0x59bfa9;for(;_0x42691d&&_0x42691d!==document[_0x127b72(0x244)];){const _0x5ce8f5=window[_0x127b72(0x235)](_0x42691d);_0x127b72(0x1f6)!==_0x5ce8f5[_0x127b72(0x1e2)]&&_0x127b72(0x1d5)!==_0x5ce8f5[_0x127b72(0x234)]||(_0x3e660a[_0x127b72(0x1c8)]({'element':_0x42691d,'originalDisplay':_0x42691d[_0x127b72(0x218)][_0x127b72(0x1e2)],'originalVisibility':_0x42691d[_0x127b72(0x218)][_0x127b72(0x234)]}),_0x42691d[_0x127b72(0x218)][_0x127b72(0x1e2)]=_0x127b72(0x222),_0x42691d[_0x127b72(0x218)][_0x127b72(0x234)]=_0x127b72(0x20d)),_0x42691d=_0x42691d[_0x127b72(0x1cf)];}return _0x3e660a;}[_0x1e0839(0x208)](){const _0x278817=_0x1e0839;let _0xaf737a,_0x2db91d;return this[_0x278817(0x230)]?.[_0x278817(0x1ff)]?(_0xaf737a=this[_0x278817(0x230)][_0x278817(0x1ff)][_0x278817(0x21d)](!0x0),_0x2db91d=this[_0x278817(0x227)](_0xaf737a)):(_0xaf737a=document[_0x278817(0x23e)](_0x278817(0x1e0)),_0x2db91d=_0xaf737a),{'calculationContainer':_0xaf737a,'targetContainer':_0x2db91d};}[_0x1e0839(0x1d1)](){const _0x46a6ae=_0x1e0839,{calculationContainer:_0x40d842,targetContainer:_0x4c2224}=this[_0x46a6ae(0x208)](),_0x13d0b0=this[_0x46a6ae(0x229)]();this[_0x46a6ae(0x220)](_0x40d842,_0x13d0b0);const _0x16a1dd=this[_0x46a6ae(0x230)]?.[_0x46a6ae(0x1ff)]||this[_0x46a6ae(0x1c7)],_0x48bd9b=_0x16a1dd?.[_0x46a6ae(0x1cf)];_0x48bd9b?_0x48bd9b[_0x46a6ae(0x1de)](_0x40d842):document[_0x46a6ae(0x244)][_0x46a6ae(0x1de)](_0x40d842),_0x40d842[_0x46a6ae(0x24c)]=_0x4c2224;const _0x1a47e5=this[_0x46a6ae(0x1ca)](_0x48bd9b||null);return _0x40d842[_0x46a6ae(0x20f)],_0x40d842[_0x46a6ae(0x252)]=_0x1a47e5,_0x40d842;}[_0x1e0839(0x20a)](_0x2dfcc0,_0x1621a6){const _0x4492eb=_0x1e0839,_0x143adc=_0x2dfcc0[_0x4492eb(0x24c)]||_0x2dfcc0,_0xee9a7e=[],{rowCount:_0x27ac75}=this[_0x4492eb(0x242)](_0x143adc,_0x1621a6);if(_0x27ac75<=this[_0x4492eb(0x1f5)][_0x4492eb(0x1f7)])return _0xee9a7e;const _0x462061=_0x1621a6[_0x4492eb(0x1cc)]();for(;_0x462061[_0x4492eb(0x1d7)]>0x0;){if(this[_0x4492eb(0x22d)](_0x2dfcc0,_0x143adc,_0x462061)){const _0x2a34bd=_0x1621a6[_0x4492eb(0x233)](_0x59a36b=>!_0x462061[_0x4492eb(0x217)](_0x59a36b));_0xee9a7e[_0x4492eb(0x1c8)](..._0x2a34bd);break;}if(!_0x462061[_0x4492eb(0x23c)]())break;}return _0xee9a7e;}[_0x1e0839(0x242)](_0x30815a,_0x3b1ba5){const _0x48fa5e=_0x1e0839;_0x30815a[_0x48fa5e(0x212)]='',_0x3b1ba5[_0x48fa5e(0x1c5)](_0x4a9a20=>{const _0x719ce3=_0x48fa5e;if(_0x4a9a20[_0x719ce3(0x1ff)]){const _0x3ce175=_0x4a9a20[_0x719ce3(0x1ff)][_0x719ce3(0x21d)](!0x0);_0x30815a[_0x719ce3(0x1de)](_0x3ce175);}}),_0x30815a[_0x48fa5e(0x20f)];const _0x1e3268=_0x30815a[_0x48fa5e(0x1e3)],_0x37498e=[];return Array[_0x48fa5e(0x228)](_0x1e3268)[_0x48fa5e(0x1c5)](_0x1debf3=>{const _0xf555e4=_0x48fa5e,_0x3bfbc3=_0x1debf3[_0xf555e4(0x1f4)]()[_0xf555e4(0x1db)];_0x37498e[_0xf555e4(0x205)](_0xf42e4e=>Math[_0xf555e4(0x1ea)](_0xf42e4e-_0x3bfbc3)<this[_0xf555e4(0x1f5)][_0xf555e4(0x1cd)])||_0x37498e[_0xf555e4(0x1c8)](_0x3bfbc3);}),{'rowCount':_0x37498e[_0x48fa5e(0x1d7)]};}[_0x1e0839(0x1ee)](){const _0x1d1a05=_0x1e0839,_0x48d58f=document[_0x1d1a05(0x23e)](_0x1d1a05(0x1f9));return _0x48d58f[_0x1d1a05(0x248)]=this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x1eb)],this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x240)]&&_0x48d58f[_0x1d1a05(0x24d)][_0x1d1a05(0x21e)](this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x240)]),_0x48d58f[_0x1d1a05(0x224)]=_0x1d1a05(0x1e6),_0x48d58f;}[_0x1e0839(0x22d)](_0x229f38,_0x16e83c,_0x5ef7bf){const _0x538ada=_0x1e0839;this[_0x538ada(0x242)](_0x16e83c,_0x5ef7bf);const _0x120b94=this[_0x538ada(0x1ee)]();_0x229f38[_0x538ada(0x1de)](_0x120b94),_0x229f38[_0x538ada(0x20f)];const _0xaf4f5b=[..._0x16e83c[_0x538ada(0x1e3)],_0x120b94],_0x3c8a74=[];_0xaf4f5b[_0x538ada(0x1c5)](_0xd9d437=>{const _0x1aee79=_0x538ada,_0x4b3206=_0xd9d437[_0x1aee79(0x1f4)]()[_0x1aee79(0x1db)];_0x3c8a74[_0x1aee79(0x205)](_0x2a48e7=>Math[_0x1aee79(0x1ea)](_0x2a48e7-_0x4b3206)<this[_0x1aee79(0x1f5)][_0x1aee79(0x1cd)])||_0x3c8a74[_0x1aee79(0x1c8)](_0x4b3206);});const _0x10ceb1=_0x3c8a74[_0x538ada(0x1d7)];return _0x120b94[_0x538ada(0x1ec)](),_0x10ceb1<=this[_0x538ada(0x1f5)][_0x538ada(0x1f7)];}[_0x1e0839(0x1c0)](_0x3703f0,_0x1e67fd){const _0x1f495f=_0x1e0839;this[_0x1f495f(0x238)][_0x1f495f(0x1da)](),this[_0x1f495f(0x22f)][_0x1f495f(0x1da)](),_0x3703f0[_0x1f495f(0x1c5)](_0x205b53=>{const _0x10a18a=_0x1f495f;_0x1e67fd[_0x10a18a(0x217)](_0x205b53)?this[_0x10a18a(0x22f)][_0x10a18a(0x21e)](_0x205b53):this[_0x10a18a(0x238)][_0x10a18a(0x21e)](_0x205b53);});}[_0x1e0839(0x1f8)](_0x33d7dd){const _0x2059d6=_0x1e0839;if(_0x33d7dd>0x0&&!this[_0x2059d6(0x247)]&&this[_0x2059d6(0x226)](),_0x33d7dd>0x0&&this[_0x2059d6(0x247)]){const _0x2aca28=''+this[_0x2059d6(0x1f5)][_0x2059d6(0x1e9)]+(_0x33d7dd<0x63?_0x33d7dd:'99');this[_0x2059d6(0x247)][_0x2059d6(0x251)]=_0x2aca28;}this[_0x2059d6(0x21c)](),this[_0x2059d6(0x1fc)](),this[_0x2059d6(0x1d6)]();}[_0x1e0839(0x219)](_0x389028,_0x46978f){const _0x3adcb4=_0x1e0839;this[_0x3adcb4(0x1c0)](_0x389028,_0x46978f),this[_0x3adcb4(0x1f8)](_0x46978f[_0x3adcb4(0x1d7)]);}[_0x1e0839(0x239)](){const _0x1d0a4f=_0x1e0839;this[_0x1d0a4f(0x1c7)]&&_0x1d0a4f(0x21a)!=typeof IntersectionObserver&&(this[_0x1d0a4f(0x20e)]=new IntersectionObserver(_0x16ad0f=>{const _0x59ad31=_0x1d0a4f;_0x16ad0f[0x0][_0x59ad31(0x22b)]&&this[_0x59ad31(0x23d)]&&requestAnimationFrame(()=>{const _0x5bed5d=_0x59ad31;this[_0x5bed5d(0x213)]();});},{'threshold':0.01,'rootMargin':_0x1d0a4f(0x1c1)}),this[_0x1d0a4f(0x20e)][_0x1d0a4f(0x204)](this[_0x1d0a4f(0x1c7)]));}[_0x1e0839(0x20b)](){const _0x4d7c12=_0x1e0839;if(!this[_0x4d7c12(0x1c7)])return!0x1;if(!this[_0x4d7c12(0x1c7)][_0x4d7c12(0x243)])return!0x1;const _0xdfa23e=this[_0x4d7c12(0x1c7)][_0x4d7c12(0x1f4)]();if(0x0===_0xdfa23e[_0x4d7c12(0x214)]||0x0===_0xdfa23e[_0x4d7c12(0x1f3)])return!0x1;const _0x1fa123=window[_0x4d7c12(0x20c)]||document[_0x4d7c12(0x211)][_0x4d7c12(0x253)],_0x25a702=window[_0x4d7c12(0x1f0)]||document[_0x4d7c12(0x211)][_0x4d7c12(0x1dd)],_0x4625d1=0xc8;return _0xdfa23e[_0x4d7c12(0x232)]>=-0xc8&&_0xdfa23e[_0x4d7c12(0x1db)]<=_0x1fa123+_0x4625d1&&_0xdfa23e[_0x4d7c12(0x215)]>=-0xc8&&_0xdfa23e[_0x4d7c12(0x203)]<=_0x25a702+_0x4625d1;}}function _0x5c83(){const _0x4844b6=['pointerEvents','height','getBoundingClientRect','_config','none','maxVisibleRows','_updateOverflowUI','button','12aRbrFb','_bodyCollection','_updateShowMoreButtonVisibility','-9999px','3XczbTL','element','border-box','overflowContainer','376nmBcCU','left','observe','some','644872SNgtqc','9149382pjbIDc','_createContainerElements','boxSizing','_calculateOverflowInContainer','_isContainerVisible','innerHeight','visible','_intersectionObserver','offsetWidth','calculationContainer','documentElement','innerHTML','_checkAndHandleOverflow','width','right','set','includes','style','_applyOverflowResults','undefined','300px','_updateBalloonContent','cloneNode','add','execute','_applyCalculationStyles','setContainerElement','block','657601kMVPUO','textContent','pin','_createShowMoreButton','_findTargetContainer','from','_calculateContainerWidth','56040AByRrU','isIntersecting','4mHcbZk','_testButtonFit','_locale','_overflowChips','_parentView','setTemplate','bottom','filter','visibility','getComputedStyle','content','extendTemplate','_visibleChips','_setupVisibilityObserver','hideBalloonPanel','1879015Qgyzpz','pop','_pendingCalculation','createElement','absolute','controlsButton','_handleShowMoreButtonClick','_renderChipsAndCountRows','isConnected','body','cssClasses','block\x20!important','_showMoreButtonView','className','opacity','toLowerCase','disconnect','_targetContainer','classList','disableAnimationOnEnter','_createShowMoreButtonView','isOn','label','_ancestorsToRestore','clientHeight','showMoreButtonView','_distributeChips','50px','0px','_showMoreBalloonPanelView','3107570KVmaTw','forEach','tagName','_containerElement','push','hide','_makeAncestorsVisible','render','slice','rowDetectionTolerance','21393rrOrju','parentElement','.ck-ai-chat','_createCalculationContainer','visible\x20!important','destroy','isVisible','hidden','_repinBalloonPanel','length','overflowChips','showBalloonPanel','clear','top','ck-calculation-container','clientWidth','appendChild','position','div','auto','display','children','showMoreBalloon','zIndex','+\x201','show','_restoreAncestorVisibility','showMoreLabelPrefix','abs','showMoreButton','remove','_createShowMoreBalloonPanelView','_createMockButton','reorganizeChips','innerWidth','querySelector'];_0x5c83=function(){return _0x4844b6;};return _0x5c83();}
23
+ function _0x4795(_0x29cb9f,_0x111cff){const _0x1f6894=_0x1f68();return _0x4795=function(_0x47955f,_0x49230e){_0x47955f=_0x47955f-0x6c;let _0x1b9b3a=_0x1f6894[_0x47955f];return _0x1b9b3a;},_0x4795(_0x29cb9f,_0x111cff);}const _0x36cb7f=_0x4795;(function(_0x5815b3,_0x4c9460){const _0x4f0ca8=_0x4795,_0x1de3c7=_0x5815b3();while(!![]){try{const _0x4f0216=-parseInt(_0x4f0ca8(0x91))/0x1+parseInt(_0x4f0ca8(0xbd))/0x2*(parseInt(_0x4f0ca8(0xfa))/0x3)+parseInt(_0x4f0ca8(0xe6))/0x4+-parseInt(_0x4f0ca8(0x82))/0x5+-parseInt(_0x4f0ca8(0x83))/0x6*(parseInt(_0x4f0ca8(0xb9))/0x7)+parseInt(_0x4f0ca8(0x85))/0x8+-parseInt(_0x4f0ca8(0xb7))/0x9*(-parseInt(_0x4f0ca8(0xc7))/0xa);if(_0x4f0216===_0x4c9460)break;else _0x1de3c7['push'](_0x1de3c7['shift']());}catch(_0x5505aa){_0x1de3c7['push'](_0x1de3c7['shift']());}}}(_0x1f68,0x3e2e1));import{View as _0x5f1800,BalloonPanelView as _0x2c140b,ButtonView as _0x2e2b90,clickOutsideHandler as _0x5c1e8d}from'ckeditor5/src/ui.js';import{Collection as _0x5720a8}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x36cb7f(0x70);function _0x1f68(){const _0x1ecbf0=['_testButtonFit','_checkAndHandleOverflow','clientWidth','setTemplate','offsetWidth','block\x20!important','_updateBalloonContent','_createMockButton','innerWidth','40391CqlIHN','_updateOverflowUI','isOn','destroy','showMoreLabelPrefix','height','_bodyCollection','auto','_createContainerElements','_overflowChips','_pendingCalculation','50px','isIntersecting','div','body','label','getBoundingClientRect','top','abs','_isContainerVisible','observe','visible','_createShowMoreButtonView','visible\x20!important','_updateShowMoreButtonVisibility','.ck-ai-chat','undefined','filter','_calculateOverflowInContainer','block','_findTargetContainer','includes','_applyOverflowResults','display','createElement','_visibleChips','innerHTML','execute','154278uKKuRJ','_renderChipsAndCountRows','35sZOaTz','show','disableAnimationOnEnter','showMoreBalloon','466dxhfDZ','_config','forEach','slice','extendTemplate','_intersectionObserver','_containerElement','bottom','_createShowMoreBalloonPanelView','button','90eoGYsI','hidden','_makeAncestorsVisible','_repinBalloonPanel','documentElement','classList','className','position','_applyCalculationStyles','zIndex','reorganizeChips','_showMoreButtonView','hide','overflowContainer','pin','tagName','some','overflowChips','toLowerCase','+\x201','clear','hideBalloonPanel','length','_parentView','showMoreButton','maxVisibleRows','showBalloonPanel','_restoreAncestorVisibility','from','_distributeChips','ck-calculation-container','1609692ogFCtL','isVisible','_createCalculationContainer','right','width','pointerEvents','children','controlsButton','none','border-box','showMoreButtonView','cssClasses','-9999px','clientHeight','innerHeight','visibility','appendChild','opacity','_locale','_calculateContainerWidth','465zIDMHs','isConnected','style','set','rowDetectionTolerance','left','setContainerElement','cloneNode','textContent','element','300px','render','_showMoreBalloonPanelView','_ancestorsToRestore','_targetContainer','_handleShowMoreButtonClick','disconnect','0px','querySelector','push','_setupVisibilityObserver','pop','add','getComputedStyle','boxSizing','calculationContainer','remove','absolute','403875nJYPyE','487626dAeNgz','_createShowMoreButton','1515152HWiGNp','content','parentElement'];_0x1f68=function(){return _0x1ecbf0;};return _0x1f68();}export class AIChatChipsOverflowManager{[_0x36cb7f(0xf8)];[_0x36cb7f(0xbe)];[_0x36cb7f(0xb4)];[_0x36cb7f(0x9a)];[_0x36cb7f(0xd2)]=null;[_0x36cb7f(0x72)]=null;[_0x36cb7f(0xc3)]=null;[_0x36cb7f(0x97)];[_0x36cb7f(0xde)]=null;[_0x36cb7f(0xc2)]=null;[_0x36cb7f(0x9b)]=!0x1;constructor(_0x1058eb,_0x5dccaf,_0x60e6f4,_0x18e8f6,_0x3cdb26){const _0x5465dd=_0x36cb7f;this[_0x5465dd(0xf8)]=_0x1058eb,this[_0x5465dd(0xb4)]=_0x5dccaf,this[_0x5465dd(0xbe)]={...hn,..._0x60e6f4,'cssClasses':{'controlsButton':'','calculationContainer':_0x5465dd(0xe5),..._0x60e6f4[_0x5465dd(0xf1)]}},this[_0x5465dd(0x9a)]=new _0x5720a8(),this[_0x5465dd(0x97)]=_0x18e8f6,this[_0x5465dd(0xde)]=_0x3cdb26||null;}[_0x36cb7f(0x6c)](_0x116c16){const _0x397326=_0x36cb7f;this[_0x397326(0xc2)]&&(this[_0x397326(0xc2)][_0x397326(0x76)](),this[_0x397326(0xc2)]=null),this[_0x397326(0xc3)]=_0x116c16,this[_0x397326(0x7a)]();}get[_0x36cb7f(0xf0)](){const _0x57a456=_0x36cb7f;return this[_0x57a456(0xd2)];}get[_0x36cb7f(0xd8)](){const _0x23b895=_0x36cb7f;return this[_0x23b895(0x9a)];}[_0x36cb7f(0xd1)](){requestAnimationFrame(()=>{const _0x2c3c2f=_0x4795;this[_0x2c3c2f(0x89)]();});}[_0x36cb7f(0xe1)](){const _0x4d5baa=_0x36cb7f;this[_0x4d5baa(0xd2)]&&this[_0x4d5baa(0x72)]&&(this[_0x4d5baa(0x8e)](),this[_0x4d5baa(0xd2)][_0x4d5baa(0x93)]=!0x0,this[_0x4d5baa(0x72)][_0x4d5baa(0xba)](),this[_0x4d5baa(0x72)][_0x4d5baa(0xd5)]({'target':this[_0x4d5baa(0xd2)][_0x4d5baa(0x6f)],'limiter':document[_0x4d5baa(0x78)](_0x4d5baa(0xaa))}));}[_0x36cb7f(0xdc)](){const _0x55c5d4=_0x36cb7f;this[_0x55c5d4(0xd2)]&&this[_0x55c5d4(0x72)]&&(this[_0x55c5d4(0xd2)][_0x55c5d4(0x93)]=!0x1,this[_0x55c5d4(0x72)][_0x55c5d4(0xd3)]());}[_0x36cb7f(0xdb)](){const _0x475d8d=_0x36cb7f;this[_0x475d8d(0x9a)][_0x475d8d(0xdb)](),this[_0x475d8d(0xdc)](),this[_0x475d8d(0xa9)](),this[_0x475d8d(0xd2)]&&(this[_0x475d8d(0xd2)][_0x475d8d(0xa0)]=''),this[_0x475d8d(0x72)]&&this[_0x475d8d(0x72)][_0x475d8d(0x86)][_0x475d8d(0xdb)]();}[_0x36cb7f(0x94)](){const _0x3fff1d=_0x36cb7f;this[_0x3fff1d(0xc2)]&&(this[_0x3fff1d(0xc2)][_0x3fff1d(0x76)](),this[_0x3fff1d(0xc2)]=null),this[_0x3fff1d(0xd2)]&&(this[_0x3fff1d(0xd2)][_0x3fff1d(0x94)](),this[_0x3fff1d(0xd2)]=null),this[_0x3fff1d(0x72)]&&(this[_0x3fff1d(0x72)][_0x3fff1d(0x94)](),this[_0x3fff1d(0x72)]=null);}[_0x36cb7f(0x89)](){const _0x120a3e=_0x36cb7f;if(!this[_0x120a3e(0xc3)])return;if(!this[_0x120a3e(0xa4)]())return void(this[_0x120a3e(0x9b)]=!0x0);this[_0x120a3e(0x9b)]=!0x1;const _0x26e409=[...this[_0x120a3e(0xb4)],...this[_0x120a3e(0x9a)]],_0x327aca=this[_0x120a3e(0xe8)](),_0x4cc559=this[_0x120a3e(0xad)](_0x327aca,_0x26e409),_0x16a2e4=_0x327aca[_0x120a3e(0x73)];_0x16a2e4&&this[_0x120a3e(0xe2)](_0x16a2e4),_0x327aca[_0x120a3e(0x80)](),this[_0x120a3e(0xb1)](_0x26e409,_0x4cc559);}[_0x36cb7f(0x84)](){const _0x208e1d=_0x36cb7f;this[_0x208e1d(0xd2)]=this[_0x208e1d(0xa7)](),this[_0x208e1d(0x72)]=this[_0x208e1d(0xc5)](),this[_0x208e1d(0xd2)][_0x208e1d(0x71)](),this[_0x208e1d(0xc3)][_0x208e1d(0xf6)](this[_0x208e1d(0xd2)][_0x208e1d(0x6f)]),this[_0x208e1d(0xd2)]['on'](_0x208e1d(0xb6),()=>{const _0x16c35e=_0x208e1d;this[_0x16c35e(0x75)]();}),_0x5c1e8d({'emitter':this[_0x208e1d(0x72)],'contextElements':[this[_0x208e1d(0x72)][_0x208e1d(0x6f)],this[_0x208e1d(0xd2)][_0x208e1d(0x6f)]],'callback':()=>this[_0x208e1d(0xdc)](),'activator':()=>this[_0x208e1d(0xd2)][_0x208e1d(0x93)]});}[_0x36cb7f(0xa7)](){const _0x37aa54=_0x36cb7f,_0x5122ca=new _0x2e2b90(this[_0x37aa54(0xf8)]);_0x5122ca[_0x37aa54(0xfd)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5a14dc=[this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xdf)]];return this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xed)]&&_0x5a14dc[_0x37aa54(0x79)](this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xed)]),_0x5122ca[_0x37aa54(0xc1)]({'attributes':{'class':_0x5a14dc}}),_0x5122ca;}[_0x36cb7f(0xc5)](){const _0x2c290d=_0x36cb7f,_0x138ece=new _0x2c140b(this[_0x2c290d(0xf8)]);return _0x138ece[_0x2c290d(0xc1)]({'attributes':{'class':this[_0x2c290d(0xbe)][_0x2c290d(0xf1)][_0x2c290d(0xbc)]}}),this[_0x2c290d(0x97)][_0x2c290d(0x7c)](_0x138ece),_0x138ece;}[_0x36cb7f(0x8e)](){const _0x350874=_0x36cb7f;if(this[_0x350874(0x72)]&&(this[_0x350874(0x72)][_0x350874(0x86)][_0x350874(0xdb)](),this[_0x350874(0x9a)][_0x350874(0xdd)]>0x0)){this[_0x350874(0x9a)][_0x350874(0xbf)](_0x4a0422=>{const _0x45a43d=_0x350874;_0x4a0422[_0x45a43d(0xbb)]();});const _0x332982=new _0x5f1800(this[_0x350874(0xf8)]);_0x332982[_0x350874(0x8b)]({'tag':_0x350874(0x9e),'attributes':{'class':this[_0x350874(0xbe)][_0x350874(0xf1)][_0x350874(0xd4)]},'children':this[_0x350874(0x9a)]}),this[_0x350874(0x72)][_0x350874(0x86)][_0x350874(0x7c)](_0x332982);}}[_0x36cb7f(0x75)](){const _0x3e3a44=_0x36cb7f;this[_0x3e3a44(0xd2)][_0x3e3a44(0x93)]?this[_0x3e3a44(0xdc)]():this[_0x3e3a44(0xe1)]();}[_0x36cb7f(0xa9)](){const _0x1a89be=_0x36cb7f,_0x4c240b=this[_0x1a89be(0x9a)][_0x1a89be(0xdd)]>0x0;this[_0x1a89be(0xd2)]?.[_0x1a89be(0x6f)]&&(this[_0x1a89be(0xd2)][_0x1a89be(0x6f)][_0x1a89be(0xfc)][_0x1a89be(0xb2)]=_0x4c240b?'':_0x1a89be(0xee));}[_0x36cb7f(0xca)](){const _0x2f5104=_0x36cb7f;this[_0x2f5104(0xd2)]?.[_0x2f5104(0x93)]&&this[_0x2f5104(0x72)]?.[_0x2f5104(0xe7)]&&this[_0x2f5104(0xd2)][_0x2f5104(0x6f)]&&this[_0x2f5104(0x72)][_0x2f5104(0xd5)]({'target':this[_0x2f5104(0xd2)][_0x2f5104(0x6f)],'limiter':document[_0x2f5104(0x78)](_0x2f5104(0xaa))});}[_0x36cb7f(0xaf)](_0x4059b9){const _0x28f07b=_0x36cb7f,_0x2ff78d=this[_0x28f07b(0xc3)]?.[_0x28f07b(0xd6)][_0x28f07b(0xd9)]()||_0x28f07b(0x9e),_0x3bd43a=this[_0x28f07b(0xc3)]?.[_0x28f07b(0xcc)];if(_0x3bd43a){const _0x5f308f=_0x3bd43a[0x0]||'',_0x385612=_0x4059b9[_0x28f07b(0x78)]('.'+_0x5f308f),_0x2c5046=_0x4059b9[_0x28f07b(0x78)](_0x2ff78d);return _0x385612||_0x2c5046||_0x4059b9;}return _0x4059b9[_0x28f07b(0x78)](_0x2ff78d)||_0x4059b9;}[_0x36cb7f(0xf9)](){const _0x3bbcb2=_0x36cb7f,_0x2842bf=this[_0x3bbcb2(0xde)]?.[_0x3bbcb2(0x6f)]||this[_0x3bbcb2(0xc3)];if(!_0x2842bf)return an;const _0x2da5b0=window[_0x3bbcb2(0x7d)](_0x2842bf)[_0x3bbcb2(0xea)];if(_0x3bbcb2(0x98)===_0x2da5b0||_0x3bbcb2(0x77)===_0x2da5b0||!_0x2da5b0){const _0x5be9a3=_0x2842bf[_0x3bbcb2(0x87)];if(_0x5be9a3){const _0x1af4bb=window[_0x3bbcb2(0x7d)](_0x5be9a3);return _0x3bbcb2(0x98)!==_0x1af4bb[_0x3bbcb2(0xea)]?_0x1af4bb[_0x3bbcb2(0xea)]:an;}return an;}return _0x2da5b0;}[_0x36cb7f(0xcf)](_0x47de59,_0x2ce1bb){const _0x10f1cd=_0x36cb7f;this[_0x10f1cd(0xbe)][_0x10f1cd(0xf1)][_0x10f1cd(0x7f)]&&_0x47de59[_0x10f1cd(0xcc)][_0x10f1cd(0x7c)](this[_0x10f1cd(0xbe)][_0x10f1cd(0xf1)][_0x10f1cd(0x7f)]),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xea)]=_0x2ce1bb,_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xce)]=_0x10f1cd(0x81),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xa2)]=_0x10f1cd(0xf2),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xff)]=_0x10f1cd(0xf2),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xf7)]='0',_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xeb)]=_0x10f1cd(0xee),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xd0)]='-1',_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xf5)]=_0x10f1cd(0xa8),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xb2)]=_0x10f1cd(0x8d),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0x7e)]=_0x10f1cd(0xef);}[_0x36cb7f(0xe2)](_0x43441a){const _0x2061fe=_0x36cb7f;_0x43441a[_0x2061fe(0xbf)](({element:_0x1a5d02,originalDisplay:_0x56e696,originalVisibility:_0x36f082})=>{const _0x5f18c9=_0x2061fe;_0x1a5d02[_0x5f18c9(0xfc)][_0x5f18c9(0xb2)]=_0x56e696,_0x1a5d02[_0x5f18c9(0xfc)][_0x5f18c9(0xf5)]=_0x36f082;});}[_0x36cb7f(0xc9)](_0x5cf3e0){const _0x5d8ef1=_0x36cb7f,_0x87b9e=[];let _0x1cac7b=_0x5cf3e0;for(;_0x1cac7b&&_0x1cac7b!==document[_0x5d8ef1(0x9f)];){const _0x1fad1a=window[_0x5d8ef1(0x7d)](_0x1cac7b);_0x5d8ef1(0xee)!==_0x1fad1a[_0x5d8ef1(0xb2)]&&_0x5d8ef1(0xc8)!==_0x1fad1a[_0x5d8ef1(0xf5)]||(_0x87b9e[_0x5d8ef1(0x79)]({'element':_0x1cac7b,'originalDisplay':_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xb2)],'originalVisibility':_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xf5)]}),_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xb2)]=_0x5d8ef1(0xae),_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xf5)]=_0x5d8ef1(0xa6)),_0x1cac7b=_0x1cac7b[_0x5d8ef1(0x87)];}return _0x87b9e;}[_0x36cb7f(0x99)](){const _0x131359=_0x36cb7f;let _0x237a42,_0x50733d;return this[_0x131359(0xde)]?.[_0x131359(0x6f)]?(_0x237a42=this[_0x131359(0xde)][_0x131359(0x6f)][_0x131359(0x6d)](!0x0),_0x50733d=this[_0x131359(0xaf)](_0x237a42)):(_0x237a42=document[_0x131359(0xb3)](_0x131359(0x9e)),_0x50733d=_0x237a42),{'calculationContainer':_0x237a42,'targetContainer':_0x50733d};}[_0x36cb7f(0xe8)](){const _0xc373a0=_0x36cb7f,{calculationContainer:_0x5ea9c7,targetContainer:_0x1ea3e4}=this[_0xc373a0(0x99)](),_0x5000ce=this[_0xc373a0(0xf9)]();this[_0xc373a0(0xcf)](_0x5ea9c7,_0x5000ce);const _0x195b86=this[_0xc373a0(0xde)]?.[_0xc373a0(0x6f)]||this[_0xc373a0(0xc3)],_0x264c95=_0x195b86?.[_0xc373a0(0x87)];_0x264c95?_0x264c95[_0xc373a0(0xf6)](_0x5ea9c7):document[_0xc373a0(0x9f)][_0xc373a0(0xf6)](_0x5ea9c7),_0x5ea9c7[_0xc373a0(0x74)]=_0x1ea3e4;const _0x4f11e2=this[_0xc373a0(0xc9)](_0x264c95||null);return _0x5ea9c7[_0xc373a0(0x8c)],_0x5ea9c7[_0xc373a0(0x73)]=_0x4f11e2,_0x5ea9c7;}[_0x36cb7f(0xad)](_0x3d42cc,_0x56895f){const _0x22f26b=_0x36cb7f,_0x50f038=_0x3d42cc[_0x22f26b(0x74)]||_0x3d42cc,_0x1a561e=[],{rowCount:_0x3f039f}=this[_0x22f26b(0xb8)](_0x50f038,_0x56895f);if(_0x3f039f<=this[_0x22f26b(0xbe)][_0x22f26b(0xe0)])return _0x1a561e;const _0x1dfbcc=_0x56895f[_0x22f26b(0xc0)]();for(;_0x1dfbcc[_0x22f26b(0xdd)]>0x0;){if(this[_0x22f26b(0x88)](_0x3d42cc,_0x50f038,_0x1dfbcc)){const _0x30f82b=_0x56895f[_0x22f26b(0xac)](_0x25abe1=>!_0x1dfbcc[_0x22f26b(0xb0)](_0x25abe1));_0x1a561e[_0x22f26b(0x79)](..._0x30f82b);break;}if(!_0x1dfbcc[_0x22f26b(0x7b)]())break;}return _0x1a561e;}[_0x36cb7f(0xb8)](_0xb1957f,_0x3aaf4b){const _0xe82ff1=_0x36cb7f;_0xb1957f[_0xe82ff1(0xb5)]='',_0x3aaf4b[_0xe82ff1(0xbf)](_0x4336a1=>{const _0x207fbd=_0xe82ff1;if(_0x4336a1[_0x207fbd(0x6f)]){const _0x28e94d=_0x4336a1[_0x207fbd(0x6f)][_0x207fbd(0x6d)](!0x0);_0xb1957f[_0x207fbd(0xf6)](_0x28e94d);}}),_0xb1957f[_0xe82ff1(0x8c)];const _0x15e919=_0xb1957f[_0xe82ff1(0xec)],_0x10085e=[];return Array[_0xe82ff1(0xe3)](_0x15e919)[_0xe82ff1(0xbf)](_0x16ac6c=>{const _0x187220=_0xe82ff1,_0x5a29b7=_0x16ac6c[_0x187220(0xa1)]()[_0x187220(0xa2)];_0x10085e[_0x187220(0xd7)](_0x403492=>Math[_0x187220(0xa3)](_0x403492-_0x5a29b7)<this[_0x187220(0xbe)][_0x187220(0xfe)])||_0x10085e[_0x187220(0x79)](_0x5a29b7);}),{'rowCount':_0x10085e[_0xe82ff1(0xdd)]};}[_0x36cb7f(0x8f)](){const _0x33527a=_0x36cb7f,_0x1bc35c=document[_0x33527a(0xb3)](_0x33527a(0xc6));return _0x1bc35c[_0x33527a(0xcd)]=this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xdf)],this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xed)]&&_0x1bc35c[_0x33527a(0xcc)][_0x33527a(0x7c)](this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xed)]),_0x1bc35c[_0x33527a(0x6e)]=_0x33527a(0xda),_0x1bc35c;}[_0x36cb7f(0x88)](_0x568ecb,_0x122a82,_0xf4dc5d){const _0x26ef12=_0x36cb7f;this[_0x26ef12(0xb8)](_0x122a82,_0xf4dc5d);const _0x49e1b1=this[_0x26ef12(0x8f)]();_0x568ecb[_0x26ef12(0xf6)](_0x49e1b1),_0x568ecb[_0x26ef12(0x8c)];const _0xc2eeb0=[..._0x122a82[_0x26ef12(0xec)],_0x49e1b1],_0x11f839=[];_0xc2eeb0[_0x26ef12(0xbf)](_0x3c3c90=>{const _0x13590f=_0x26ef12,_0x112481=_0x3c3c90[_0x13590f(0xa1)]()[_0x13590f(0xa2)];_0x11f839[_0x13590f(0xd7)](_0x37bd6a=>Math[_0x13590f(0xa3)](_0x37bd6a-_0x112481)<this[_0x13590f(0xbe)][_0x13590f(0xfe)])||_0x11f839[_0x13590f(0x79)](_0x112481);});const _0x1b1840=_0x11f839[_0x26ef12(0xdd)];return _0x49e1b1[_0x26ef12(0x80)](),_0x1b1840<=this[_0x26ef12(0xbe)][_0x26ef12(0xe0)];}[_0x36cb7f(0xe4)](_0x4cbfe3,_0x3021f2){const _0x26ebe4=_0x36cb7f;this[_0x26ebe4(0xb4)][_0x26ebe4(0xdb)](),this[_0x26ebe4(0x9a)][_0x26ebe4(0xdb)](),_0x4cbfe3[_0x26ebe4(0xbf)](_0x2efe18=>{const _0x1064cb=_0x26ebe4;_0x3021f2[_0x1064cb(0xb0)](_0x2efe18)?this[_0x1064cb(0x9a)][_0x1064cb(0x7c)](_0x2efe18):this[_0x1064cb(0xb4)][_0x1064cb(0x7c)](_0x2efe18);});}[_0x36cb7f(0x92)](_0xb57a98){const _0x2f46c4=_0x36cb7f;if(_0xb57a98>0x0&&!this[_0x2f46c4(0xd2)]&&this[_0x2f46c4(0x84)](),_0xb57a98>0x0&&this[_0x2f46c4(0xd2)]){const _0x4251a0=''+this[_0x2f46c4(0xbe)][_0x2f46c4(0x95)]+(_0xb57a98<0x63?_0xb57a98:'99');this[_0x2f46c4(0xd2)][_0x2f46c4(0xa0)]=_0x4251a0;}this[_0x2f46c4(0x8e)](),this[_0x2f46c4(0xa9)](),this[_0x2f46c4(0xca)]();}[_0x36cb7f(0xb1)](_0x379709,_0x49f14a){const _0x254ba1=_0x36cb7f;this[_0x254ba1(0xe4)](_0x379709,_0x49f14a),this[_0x254ba1(0x92)](_0x49f14a[_0x254ba1(0xdd)]);}[_0x36cb7f(0x7a)](){const _0x34f267=_0x36cb7f;this[_0x34f267(0xc3)]&&_0x34f267(0xab)!=typeof IntersectionObserver&&(this[_0x34f267(0xc2)]=new IntersectionObserver(_0x591782=>{const _0x63296c=_0x34f267;_0x591782[0x0][_0x63296c(0x9d)]&&this[_0x63296c(0x9b)]&&requestAnimationFrame(()=>{const _0x427a6d=_0x63296c;this[_0x427a6d(0x89)]();});},{'threshold':0.01,'rootMargin':_0x34f267(0x9c)}),this[_0x34f267(0xc2)][_0x34f267(0xa5)](this[_0x34f267(0xc3)]));}[_0x36cb7f(0xa4)](){const _0x209f80=_0x36cb7f;if(!this[_0x209f80(0xc3)])return!0x1;if(!this[_0x209f80(0xc3)][_0x209f80(0xfb)])return!0x1;const _0x21ecad=this[_0x209f80(0xc3)][_0x209f80(0xa1)]();if(0x0===_0x21ecad[_0x209f80(0xea)]||0x0===_0x21ecad[_0x209f80(0x96)])return!0x1;const _0x5941ff=window[_0x209f80(0xf4)]||document[_0x209f80(0xcb)][_0x209f80(0xf3)],_0xc73be9=window[_0x209f80(0x90)]||document[_0x209f80(0xcb)][_0x209f80(0x8a)],_0x4af16e=0xc8;return _0x21ecad[_0x209f80(0xc4)]>=-0xc8&&_0x21ecad[_0x209f80(0xa2)]<=_0x5941ff+_0x4af16e&&_0x21ecad[_0x209f80(0xe9)]>=-0xc8&&_0x21ecad[_0x209f80(0xff)]<=_0xc73be9+_0x4af16e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14631a=_0x3326;(function(_0x169ede,_0x31fa1f){const _0x3adbea=_0x3326,_0x18320c=_0x169ede();while(!![]){try{const _0x36fde1=-parseInt(_0x3adbea(0x12d))/0x1*(parseInt(_0x3adbea(0x10b))/0x2)+parseInt(_0x3adbea(0x129))/0x3*(parseInt(_0x3adbea(0x130))/0x4)+-parseInt(_0x3adbea(0x137))/0x5+parseInt(_0x3adbea(0x136))/0x6+-parseInt(_0x3adbea(0x13b))/0x7+parseInt(_0x3adbea(0x13a))/0x8*(parseInt(_0x3adbea(0x12b))/0x9)+parseInt(_0x3adbea(0x11f))/0xa*(parseInt(_0x3adbea(0x11d))/0xb);if(_0x36fde1===_0x31fa1f)break;else _0x18320c['push'](_0x18320c['shift']());}catch(_0xb6958d){_0x18320c['push'](_0x18320c['shift']());}}}(_0x95dc,0x4dd8c));import{ButtonView as _0x2e3c72,IconView as _0x4cebdc}from'ckeditor5/src/ui.js';import{IconClose as _0x3d82ee,IconDocument as _0x116b7c,IconFileUpload as _0x1f6a19,IconLink as _0x4a9e6d,IconSelection as _0x2f39a6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x244db0}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x54aa6b}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x1f6a19,'document':_0x116b7c,'web-resource':_0x4a9e6d,'text':_0x1f6a19,'selection':_0x2f39a6,'mcp-tool-context':_0x116b7c},Tn=_0x14631a(0x133),En=_0x14631a(0x144),fn=_0x14631a(0x125),An=_0x14631a(0x108),Cn=_0x14631a(0x10e),In=_0x14631a(0x131),On='n';function _0x3326(_0x1766c8,_0x360e29){const _0x95dcb3=_0x95dc();return _0x3326=function(_0x3326cd,_0x217363){_0x3326cd=_0x3326cd-0x102;let _0x38580d=_0x95dcb3[_0x3326cd];return _0x38580d;},_0x3326(_0x1766c8,_0x360e29);}function _0x95dc(){const _0x347aca=['15VEciCP','render','26307TNAiWS','label','281QXRukS','fire','_setupTemplate','231388ejVrme','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','ck-ai-chat-context-chip','classList','type','2194806wNpUVN','410160UMYlBz','tooltip','setTemplate','888AXIkmF','4290195DydrLg','itemType','div','_createIconView','_createTemplateAttributes','removeContextItemChip','set','span','uiId','ck-ai-chat-context-chip_wide','lastIndexOf','_createLoaderIcon','disableAnimationOnEnter','webkitAnimationEnd','ck-hidden','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip__label','bind','animationend','2126RidJLW','removeEventListener','extendTemplate','ck-ai-chat-context-chip__type-icon','locale','readonly','document','small','element','length','_initializeProperties','_createRemoveButton','_handleAnimationEndOnce','addEventListener','bindTemplate','content','_createLabelElement','isVisible','135663syiZoE','selection','270vyoNeX','add','_isAnimationOnEnterEnabled','_createTemplateChildren','slice','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_document','remove','isLoading','execute'];_0x95dc=function(){return _0x347aca;};return _0x95dc();}export class AIChatContextItemButtonView extends _0x2e3c72{constructor(_0x1efd43,_0x596e0c,_0x2865f4,_0x39a0af,_0xc53f62=!0x1){const _0x3ecd85=_0x14631a;super(_0x1efd43),this[_0x3ecd85(0x121)]=_0x39a0af,this[_0x3ecd85(0x115)](_0x596e0c,_0x2865f4,_0xc53f62),this[_0x3ecd85(0x12f)]();}[_0x14631a(0x12a)](){const _0x149a33=_0x14631a;super[_0x149a33(0x12a)](),this[_0x149a33(0x121)]&&this[_0x149a33(0x113)]&&(this[_0x149a33(0x113)][_0x149a33(0x134)][_0x149a33(0x120)](_0x149a33(0x107)),this[_0x149a33(0x117)](this[_0x149a33(0x113)],()=>{const _0x1948d2=_0x149a33;this[_0x1948d2(0x113)]&&this[_0x1948d2(0x113)][_0x1948d2(0x134)][_0x1948d2(0x126)](_0x1948d2(0x107));}));}[_0x14631a(0x104)](){const _0x56e0d8=_0x14631a;this[_0x56e0d8(0x121)]=!0x1,this[_0x56e0d8(0x113)]&&this[_0x56e0d8(0x113)][_0x56e0d8(0x134)][_0x56e0d8(0x126)](_0x56e0d8(0x107));}[_0x14631a(0x115)](_0x1731d1,_0x37be27,_0x503c42){const _0x3d81ed=_0x14631a;this[_0x3d81ed(0x141)](_0x3d81ed(0x12c),_0x1731d1[_0x3d81ed(0x12c)]),this[_0x3d81ed(0x141)](_0x3d81ed(0x138),!0x0),this[_0x3d81ed(0x141)](_0x3d81ed(0x13c),_0x1731d1[_0x3d81ed(0x135)]),this[_0x3d81ed(0x141)]('id',_0x1731d1[_0x3d81ed(0x143)]),this[_0x3d81ed(0x141)](_0x3d81ed(0x110),_0x37be27),this[_0x3d81ed(0x141)](_0x3d81ed(0x127),_0x503c42);}[_0x14631a(0x12f)](){const _0x267f10=_0x14631a,_0x1c9769=this[_0x267f10(0x13e)](),_0x54982e=this[_0x267f10(0x116)](),_0x3276ce=this[_0x267f10(0x119)];this[_0x267f10(0x139)]({'tag':_0x267f10(0x13d),'attributes':this[_0x267f10(0x13f)](_0x3276ce),'children':this[_0x267f10(0x122)](_0x1c9769,_0x54982e,_0x3276ce)});}[_0x14631a(0x13f)](_0x5b9a0c){const _0x428dd6=_0x14631a;return{'class':[Tn,_0x5b9a0c['if'](_0x428dd6(0x13c),fn,_0xadbfd4=>_0x428dd6(0x111)==_0xadbfd4),_0x5b9a0c['if'](_0x428dd6(0x13c),En,_0x2c014b=>_0x428dd6(0x11e)==_0x2c014b)],'data-cke-tooltip-text':_0x5b9a0c['to'](_0x428dd6(0x12c),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x14631a(0x122)](_0x3d2801,_0x2e5ce8,_0x13e943){const _0x4fccfa=_0x14631a,_0x126240=this[_0x4fccfa(0x11b)](_0x13e943),_0xe66f52=this[_0x4fccfa(0x103)]();return this[_0x4fccfa(0x110)]?[_0x3d2801,_0x126240]:[_0x3d2801,_0xe66f52,_0x126240,_0x2e5ce8];}[_0x14631a(0x11b)](_0x269f24){const _0x371045=_0x14631a;return{'tag':_0x371045(0x142),'attributes':{'class':An},'children':[{'text':_0x269f24['to'](_0x371045(0x12c))}]};}[_0x14631a(0x116)](){const _0x2e1a34=_0x14631a,_0x3f1f73=new _0x2e3c72(this[_0x2e1a34(0x10f)]);return _0x3f1f73[_0x2e1a34(0x141)]({'label':_0x244db0(this[_0x2e1a34(0x10f)],_0x2e1a34(0x124)),'icon':_0x3d82ee}),this[_0x2e1a34(0x132)](_0x3f1f73),_0x3f1f73;}[_0x14631a(0x132)](_0x3f4695){const _0x8389f0=_0x14631a;_0x3f4695['on'](_0x8389f0(0x128),()=>{const _0x1b6ef9=_0x8389f0;this[_0x1b6ef9(0x12e)](_0x1b6ef9(0x140),this['id']);});}[_0x14631a(0x13e)](){const _0x6b58eb=_0x14631a,_0x1c5fd9=this[_0x6b58eb(0x119)],_0x23d4d2=new _0x4cebdc();return _0x23d4d2[_0x6b58eb(0x11a)]=bn[this[_0x6b58eb(0x13c)]],_0x23d4d2[_0x6b58eb(0x10d)]({'attributes':{'class':[Cn,_0x1c5fd9['if'](_0x6b58eb(0x127),_0x6b58eb(0x106),_0x3b8fb8=>_0x3b8fb8)]}}),_0x23d4d2;}[_0x14631a(0x117)](_0x462e7f,_0x241e03){const _0x1cbe20=_0x14631a;if(!_0x462e7f)return;const _0x2d21c3=()=>{const _0x57a79=_0x3326;_0x241e03(),_0x462e7f[_0x57a79(0x10c)](_0x57a79(0x10a),_0x2d21c3),_0x462e7f[_0x57a79(0x10c)](_0x57a79(0x105),_0x2d21c3);};_0x462e7f[_0x1cbe20(0x118)](_0x1cbe20(0x10a),_0x2d21c3),_0x462e7f[_0x1cbe20(0x118)](_0x1cbe20(0x105),_0x2d21c3);}[_0x14631a(0x103)](){const _0x265f72=_0x14631a,_0x50186d=new _0x54aa6b(_0x265f72(0x112));return _0x50186d[_0x265f72(0x109)](_0x265f72(0x11c))['to'](this,_0x265f72(0x127),_0x164430=>_0x164430),_0x50186d;}}function gn(_0x15e109){const _0x47fcfb=_0x14631a;if(!_0x15e109)return _0x15e109;if(_0x15e109[_0x47fcfb(0x114)]<=0x78)return _0x15e109;const _0x22c9fe=_0x15e109[_0x47fcfb(0x123)](0x0,0x78),_0x2a3f7e=_0x22c9fe[_0x47fcfb(0x102)]('\x20');return(_0x2a3f7e>0x0?_0x22c9fe[_0x47fcfb(0x123)](0x0,_0x2a3f7e):_0x22c9fe)+'…';}
23
+ const _0x32827b=_0x3c67;(function(_0x556f23,_0x16d043){const _0x1b813a=_0x3c67,_0x1023da=_0x556f23();while(!![]){try{const _0x3eb335=-parseInt(_0x1b813a(0x81))/0x1*(-parseInt(_0x1b813a(0x90))/0x2)+parseInt(_0x1b813a(0x96))/0x3+parseInt(_0x1b813a(0x73))/0x4*(parseInt(_0x1b813a(0xa6))/0x5)+parseInt(_0x1b813a(0x99))/0x6+-parseInt(_0x1b813a(0x9a))/0x7+-parseInt(_0x1b813a(0xab))/0x8*(parseInt(_0x1b813a(0xaa))/0x9)+-parseInt(_0x1b813a(0x8b))/0xa*(parseInt(_0x1b813a(0xa5))/0xb);if(_0x3eb335===_0x16d043)break;else _0x1023da['push'](_0x1023da['shift']());}catch(_0xaaf6a2){_0x1023da['push'](_0x1023da['shift']());}}}(_0x31ba,0x344f0));import{ButtonView as _0x49bd97,IconView as _0x112c9e}from'ckeditor5/src/ui.js';import{IconClose as _0x1ee2fa,IconDocument as _0x2c8a5d,IconFileUpload as _0xa0eebb,IconLink as _0x305965,IconSelection as _0x3586eb}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x54e787}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3dca62}from'../../../aicore/ui/aispinner.js';function _0x31ba(){const _0x62aca5=['15HTUFCP','_setupTemplate','itemType','_createRemoveButton','72pcZFuF','307128MypOKg','addEventListener','_createTemplateAttributes','animationend','_createIconView','removeEventListener','lastIndexOf','bindTemplate','execute','ck-ai-chat-context-controls__chip-tooltip','removeContextItemChip','423068polKoP','ck-ai-chat-context-chip_new-chip','length','ck-ai-chat-context-chip_wide','_createLoaderIcon','webkitAnimationEnd','selection','_createTemplateChildren','bind','small','slice','remove','setTemplate','ck-ai-chat-context-chip_document','178INMNbv','ck-ai-chat-context-chip__type-icon','locale','ck-ai-chat-context-chip__label','_createLabelElement','_isAnimationOnEnterEnabled','ck-hidden','extendTemplate','disableAnimationOnEnter','ck-ai-chat-context-chip','80090QRohEP','isLoading','set','_setupRemoveButtonEvent','tooltip','2066qkcWCU','isVisible','uiId','fire','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','content','463827DFBdih','render','readonly','975588cDljtJ','2022923cETXdk','span','classList','add','label','type','_initializeProperties','_handleAnimationEndOnce','div','element','document','11uwUbmm'];_0x31ba=function(){return _0x62aca5;};return _0x31ba();}const xn={'file':_0xa0eebb,'document':_0x2c8a5d,'web-resource':_0x305965,'text':_0xa0eebb,'selection':_0x3586eb,'mcp-tool-context':_0x2c8a5d},bn=_0x32827b(0x8a),wn=_0x32827b(0x76),Tn=_0x32827b(0x80),En=_0x32827b(0x84),fn=_0x32827b(0x82),An=_0x32827b(0x71),Cn='n';export class AIChatContextItemButtonView extends _0x49bd97{constructor(_0x4245f8,_0xfe184c,_0x1fc399,_0x547dd5,_0x331dc7=!0x1){const _0x2950d2=_0x32827b;super(_0x4245f8),this[_0x2950d2(0x86)]=_0x547dd5,this[_0x2950d2(0xa0)](_0xfe184c,_0x1fc399,_0x331dc7),this[_0x2950d2(0xa7)]();}[_0x32827b(0x97)](){const _0x49cc4a=_0x32827b;super[_0x49cc4a(0x97)](),this[_0x49cc4a(0x86)]&&this[_0x49cc4a(0xa3)]&&(this[_0x49cc4a(0xa3)][_0x49cc4a(0x9c)][_0x49cc4a(0x9d)](_0x49cc4a(0x74)),this[_0x49cc4a(0xa1)](this[_0x49cc4a(0xa3)],()=>{const _0x2ae48c=_0x49cc4a;this[_0x2ae48c(0xa3)]&&this[_0x2ae48c(0xa3)][_0x2ae48c(0x9c)][_0x2ae48c(0x7e)](_0x2ae48c(0x74));}));}[_0x32827b(0x89)](){const _0x2fc4b9=_0x32827b;this[_0x2fc4b9(0x86)]=!0x1,this[_0x2fc4b9(0xa3)]&&this[_0x2fc4b9(0xa3)][_0x2fc4b9(0x9c)][_0x2fc4b9(0x7e)](_0x2fc4b9(0x74));}[_0x32827b(0xa0)](_0x2d985c,_0x53cf04,_0x4e55e2){const _0x2adff5=_0x32827b;this[_0x2adff5(0x8d)](_0x2adff5(0x9e),_0x2d985c[_0x2adff5(0x9e)]),this[_0x2adff5(0x8d)](_0x2adff5(0x8f),!0x0),this[_0x2adff5(0x8d)](_0x2adff5(0xa8),_0x2d985c[_0x2adff5(0x9f)]),this[_0x2adff5(0x8d)]('id',_0x2d985c[_0x2adff5(0x92)]),this[_0x2adff5(0x8d)](_0x2adff5(0x98),_0x53cf04),this[_0x2adff5(0x8d)](_0x2adff5(0x8c),_0x4e55e2);}[_0x32827b(0xa7)](){const _0x12aa75=_0x32827b,_0x527a1d=this[_0x12aa75(0xaf)](),_0x3c2df9=this[_0x12aa75(0xa9)](),_0xf47981=this[_0x12aa75(0x6f)];this[_0x12aa75(0x7f)]({'tag':_0x12aa75(0xa2),'attributes':this[_0x12aa75(0xad)](_0xf47981),'children':this[_0x12aa75(0x7a)](_0x527a1d,_0x3c2df9,_0xf47981)});}[_0x32827b(0xad)](_0x27d220){const _0x27912d=_0x32827b;return{'class':[bn,_0x27d220['if'](_0x27912d(0xa8),Tn,_0x237b97=>_0x27912d(0xa4)==_0x237b97),_0x27d220['if'](_0x27912d(0xa8),wn,_0x8dbc0a=>_0x27912d(0x79)==_0x8dbc0a)],'data-cke-tooltip-text':_0x27d220['to'](_0x27912d(0x9e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x32827b(0x7a)](_0x36e067,_0x4afd0c,_0x5769d6){const _0x32e623=_0x32827b,_0x18898f=this[_0x32e623(0x85)](_0x5769d6),_0x329edf=this[_0x32e623(0x77)]();return this[_0x32e623(0x98)]?[_0x36e067,_0x18898f]:[_0x36e067,_0x329edf,_0x18898f,_0x4afd0c];}[_0x32827b(0x85)](_0x4efe65){const _0x311bbc=_0x32827b;return{'tag':_0x311bbc(0x9b),'attributes':{'class':En},'children':[{'text':_0x4efe65['to'](_0x311bbc(0x9e))}]};}[_0x32827b(0xa9)](){const _0x40219d=_0x32827b,_0x59bfaf=new _0x49bd97(this[_0x40219d(0x83)]);return _0x59bfaf[_0x40219d(0x8d)]({'label':_0x54e787(this[_0x40219d(0x83)],_0x40219d(0x94)),'icon':_0x1ee2fa}),this[_0x40219d(0x8e)](_0x59bfaf),_0x59bfaf;}[_0x32827b(0x8e)](_0x14714f){const _0x1a6c78=_0x32827b;_0x14714f['on'](_0x1a6c78(0x70),()=>{const _0x417b5d=_0x1a6c78;this[_0x417b5d(0x93)](_0x417b5d(0x72),this['id']);});}[_0x32827b(0xaf)](){const _0x79245=_0x32827b,_0x80579a=this[_0x79245(0x6f)],_0x37d2d4=new _0x112c9e();return _0x37d2d4[_0x79245(0x95)]=xn[this[_0x79245(0xa8)]],_0x37d2d4[_0x79245(0x88)]({'attributes':{'class':[fn,_0x80579a['if'](_0x79245(0x8c),_0x79245(0x87),_0x43f6f9=>_0x43f6f9)]}}),_0x37d2d4;}[_0x32827b(0xa1)](_0x5ca764,_0x5c199d){const _0x3a147a=_0x32827b;if(!_0x5ca764)return;const _0x101a6a=()=>{const _0x4725a1=_0x3c67;_0x5c199d(),_0x5ca764[_0x4725a1(0x6d)](_0x4725a1(0xae),_0x101a6a),_0x5ca764[_0x4725a1(0x6d)](_0x4725a1(0x78),_0x101a6a);};_0x5ca764[_0x3a147a(0xac)](_0x3a147a(0xae),_0x101a6a),_0x5ca764[_0x3a147a(0xac)](_0x3a147a(0x78),_0x101a6a);}[_0x32827b(0x77)](){const _0x5b7f61=_0x32827b,_0x254b45=new _0x3dca62(_0x5b7f61(0x7c));return _0x254b45[_0x5b7f61(0x7b)](_0x5b7f61(0x91))['to'](this,_0x5b7f61(0x8c),_0x175910=>_0x175910),_0x254b45;}}function _0x3c67(_0xb3a4ad,_0x2a4a62){const _0x31ba90=_0x31ba();return _0x3c67=function(_0x3c678c,_0x2dda8e){_0x3c678c=_0x3c678c-0x6d;let _0xc73824=_0x31ba90[_0x3c678c];return _0xc73824;},_0x3c67(_0xb3a4ad,_0x2a4a62);}function In(_0x6fa06a){const _0x855c49=_0x32827b;if(!_0x6fa06a)return _0x6fa06a;if(_0x6fa06a[_0x855c49(0x75)]<=0x78)return _0x6fa06a;const _0x1c7107=_0x6fa06a[_0x855c49(0x7d)](0x0,0x78),_0x4114d5=_0x1c7107[_0x855c49(0x6e)]('\x20');return(_0x4114d5>0x0?_0x1c7107[_0x855c49(0x7d)](0x0,_0x4114d5):_0x1c7107)+'…';}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10ab7b=_0x17ba;(function(_0x310b1b,_0x7730a8){const _0x4b7637=_0x17ba,_0x2eda6d=_0x310b1b();while(!![]){try{const _0x44161c=parseInt(_0x4b7637(0x8f))/0x1*(-parseInt(_0x4b7637(0x9e))/0x2)+parseInt(_0x4b7637(0x86))/0x3*(parseInt(_0x4b7637(0x7c))/0x4)+parseInt(_0x4b7637(0x78))/0x5+parseInt(_0x4b7637(0x7f))/0x6+parseInt(_0x4b7637(0xa1))/0x7*(-parseInt(_0x4b7637(0x90))/0x8)+-parseInt(_0x4b7637(0x97))/0x9*(parseInt(_0x4b7637(0x83))/0xa)+parseInt(_0x4b7637(0x9c))/0xb;if(_0x44161c===_0x7730a8)break;else _0x2eda6d['push'](_0x2eda6d['shift']());}catch(_0x9601e3){_0x2eda6d['push'](_0x2eda6d['shift']());}}}(_0x34c0,0xb0836));function _0x17ba(_0x37ebfd,_0x143de0){const _0x34c04d=_0x34c0();return _0x17ba=function(_0x17ba57,_0x55d261){_0x17ba57=_0x17ba57-0x74;let _0x281909=_0x34c04d[_0x17ba57];return _0x281909;},_0x17ba(_0x37ebfd,_0x143de0);}import{FocusTracker as _0x5b821c,KeystrokeHandler as _0x1b299d}from'ckeditor5/src/utils.js';import{ButtonView as _0x3b0ff4,FocusCycler as _0x27e662,LabeledFieldView as _0x3f419e,View as _0x5ea860,FormHeaderView as _0x374da6,createLabeledInputText as _0x3d499c,submitHandler as _0x51cd28}from'ckeditor5/src/ui.js';function _0x34c0(){const _0x1fa1e1=['AI_CHAT_CONTEXT_URL_EMPTY_ERROR','input','_setupEventHandlers','30864AVbbtX','withBackButton','render','3057156rBncBx','length','trim','setError','9505210EYgjMi','_createBackButton','fire','267EoJgXz','submit','_createConfirmButton','_setupKeystrokes','keystrokes','setTemplate','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_focusables','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','76565tTcbZw','72ZQAQsA','_handleSubmit','destroy','urlInputField','tab','clear','confirmButton','9nvveMG','_createUrlInputField','ck-ai-chat-context-controls__url-form','value','ck-ai-chat-context-controls__url-input-section','8623153LaTVof','clearError','12VnVVYN','shift+tab','cancel','400302wIEnua','AI_CHAT_CONTEXT_URL_INVALID_ERROR','submitUrl','getValue','set','isEnabled','ck-button-icon\x20ck-button-back','focusTracker','add','ck-labeled-field-view_empty','form','focusCycler','errorText','div','listenTo','children','change:withBackButton','focus','execute','\x20ck-hidden','fieldView','ck-button-icon','AI_CHAT_CONTEXT_URL_ADD_URL','AI_CHAT_CONTEXT_URL_LABEL','stop','backButton','locale','forEach','createCollection','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','esc','_updateConfirmButtonState','_isValidUrl','element','_setupTemplate','refreshBalloon','3337050gVUZgb'];_0x34c0=function(){return _0x1fa1e1;};return _0x34c0();}import{IconCheck as _0x5ca6c9,IconPreviousArrow as _0x3ef4c4}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4ab2b1}from'../../../aicore/utils/common-translations.js';const ch=_0x10ab7b(0x99),rh=_0x10ab7b(0x9b);export class AIChatContextPanelUrlInputView extends _0x5ea860{[_0x10ab7b(0xa8)];[_0x10ab7b(0x8a)];[_0x10ab7b(0x8d)];[_0x10ab7b(0xac)];[_0x10ab7b(0x93)];[_0x10ab7b(0xba)];[_0x10ab7b(0x96)];constructor(_0x539d0c){const _0x72cff3=_0x10ab7b;super(_0x539d0c),this[_0x72cff3(0xa8)]=new _0x5b821c(),this[_0x72cff3(0x8a)]=new _0x1b299d(),this[_0x72cff3(0xba)]=this[_0x72cff3(0x84)](),this[_0x72cff3(0x93)]=this[_0x72cff3(0x98)](),this[_0x72cff3(0x96)]=this[_0x72cff3(0x88)](),this[_0x72cff3(0x8d)]=this[_0x72cff3(0xbd)]([this[_0x72cff3(0xba)],this[_0x72cff3(0x93)],this[_0x72cff3(0x96)]]),this[_0x72cff3(0xac)]=new _0x27e662({'focusables':this[_0x72cff3(0x8d)],'focusTracker':this[_0x72cff3(0xa8)],'keystrokeHandler':this[_0x72cff3(0x8a)],'actions':{'focusPrevious':_0x72cff3(0x9f),'focusNext':_0x72cff3(0x94)}}),this[_0x72cff3(0xa5)](_0x72cff3(0x7d),!0x0),this[_0x72cff3(0x76)](),this[_0x72cff3(0x7b)](),this[_0x72cff3(0x89)]();}[_0x10ab7b(0x7e)](){const _0x459737=_0x10ab7b;super[_0x459737(0x7e)](),this[_0x459737(0x8d)][_0x459737(0xbc)](_0x225e62=>{const _0x1c9c61=_0x459737;this[_0x1c9c61(0xa8)][_0x1c9c61(0xa9)](_0x225e62[_0x1c9c61(0x75)]),this[_0x1c9c61(0x8a)][_0x1c9c61(0xaf)](_0x225e62[_0x1c9c61(0x75)]);}),_0x51cd28({'view':this}),this[_0x459737(0xb2)]();}[_0x10ab7b(0x92)](){const _0x107d35=_0x10ab7b;super[_0x107d35(0x92)](),this[_0x107d35(0xa8)][_0x107d35(0x92)](),this[_0x107d35(0x8a)][_0x107d35(0x92)]();}[_0x10ab7b(0xb2)](){const _0x48900b=_0x10ab7b;this[_0x48900b(0x93)][_0x48900b(0xb2)]();}[_0x10ab7b(0xa4)](){const _0x1d4a2b=_0x10ab7b;return this[_0x1d4a2b(0x93)][_0x1d4a2b(0xb5)][_0x1d4a2b(0x75)]?.[_0x1d4a2b(0x9a)]?.[_0x1d4a2b(0x81)]()||'';}[_0x10ab7b(0x95)](){const _0x39fede=_0x10ab7b;this[_0x39fede(0x93)][_0x39fede(0xb5)][_0x39fede(0x75)][_0x39fede(0x9a)]='',this[_0x39fede(0x93)][_0x39fede(0xad)]=null,this[_0x39fede(0x96)][_0x39fede(0xa6)]=!0x1;}[_0x10ab7b(0x82)](_0x42136b){const _0x5b4e63=_0x10ab7b;this[_0x5b4e63(0x93)][_0x5b4e63(0xad)]=_0x42136b,this[_0x5b4e63(0xc0)](),this[_0x5b4e63(0x85)](_0x5b4e63(0x77));}[_0x10ab7b(0x9d)](){const _0x82048e=_0x10ab7b;this[_0x82048e(0x93)][_0x82048e(0xad)]=null,this[_0x82048e(0xc0)]();}[_0x10ab7b(0x84)](){const _0x171e49=_0x10ab7b,_0x49115f=new _0x3b0ff4(this[_0x171e49(0xbb)]);return _0x49115f[_0x171e49(0xa5)]({'icon':_0x3ef4c4,'tooltip':_0x4ab2b1(this[_0x171e49(0xbb)],_0x171e49(0xbe)),'tooltipPosition':'n','class':[_0x171e49(0xa7)]}),this['on'](_0x171e49(0xb1),(_0x264577,_0x255789,_0x2937cc)=>{const _0x370c4e=_0x171e49;_0x49115f[_0x370c4e(0xa5)]({'class':[_0x370c4e(0xa7)+(_0x2937cc?'':_0x370c4e(0xb4))]});}),_0x49115f;}[_0x10ab7b(0x98)](){const _0x629011=_0x10ab7b,_0x1e9922=new _0x3f419e(this[_0x629011(0xbb)],_0x3d499c);return _0x1e9922[_0x629011(0xa5)]({'label':_0x4ab2b1(this[_0x629011(0xbb)],_0x629011(0xb8)),'class':_0x629011(0xaa)}),_0x1e9922[_0x629011(0xb5)][_0x629011(0xa5)]({'placeholder':_0x4ab2b1(this[_0x629011(0xbb)],_0x629011(0x8c))}),_0x1e9922;}[_0x10ab7b(0x88)](){const _0x2817a5=_0x10ab7b,_0x1471bb=new _0x3b0ff4(this[_0x2817a5(0xbb)]);return _0x1471bb[_0x2817a5(0xa5)]({'icon':_0x5ca6c9,'tooltip':_0x4ab2b1(this[_0x2817a5(0xbb)],_0x2817a5(0xb7)),'tooltipPosition':'n','class':_0x2817a5(0xb6),'type':_0x2817a5(0x87),'isEnabled':!0x1}),_0x1471bb;}[_0x10ab7b(0x76)](){const _0x486ef2=_0x10ab7b,_0x65d52e=new _0x374da6(this[_0x486ef2(0xbb)],{'label':_0x4ab2b1(this[_0x486ef2(0xbb)],_0x486ef2(0xb7)),'class':_0x486ef2(0x8e)});_0x65d52e[_0x486ef2(0xb0)][_0x486ef2(0xa9)](this[_0x486ef2(0xba)],0x0),this[_0x486ef2(0x8b)]({'tag':_0x486ef2(0xab),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x65d52e,{'tag':_0x486ef2(0xae),'attributes':{'class':rh},'children':[this[_0x486ef2(0x93)],this[_0x486ef2(0x96)]]}]});}[_0x10ab7b(0x7b)](){const _0x4373da=_0x10ab7b;this[_0x4373da(0xba)]['on'](_0x4373da(0xb3),()=>{const _0x453437=_0x4373da;this[_0x453437(0x95)](),this[_0x453437(0x85)](_0x453437(0xa0));}),this[_0x4373da(0x93)][_0x4373da(0xb5)]['on'](_0x4373da(0x7a),()=>{const _0x108c6b=_0x4373da;this[_0x108c6b(0x9d)](),this[_0x108c6b(0xc0)](),this[_0x108c6b(0x85)](_0x108c6b(0x77));}),this['on'](_0x4373da(0x87),_0x18f087=>{const _0x5b7607=_0x4373da;_0x18f087[_0x5b7607(0xb9)](),this[_0x5b7607(0x91)]();});}[_0x10ab7b(0x89)](){const _0xa6d6e2=_0x10ab7b;this[_0xa6d6e2(0x8a)][_0xa6d6e2(0xa5)](_0xa6d6e2(0xbf),(_0x1998c9,_0x2b59a7)=>{const _0x844119=_0xa6d6e2;this[_0x844119(0x95)](),this[_0x844119(0x85)](_0x844119(0xa0)),_0x2b59a7();});}[_0x10ab7b(0x91)](){const _0x161611=_0x10ab7b,_0x4b18f0=this[_0x161611(0xa4)]()[_0x161611(0x81)]();_0x4b18f0?this[_0x161611(0x74)](_0x4b18f0)?(this[_0x161611(0x9d)](),this[_0x161611(0x85)](_0x161611(0xa3),_0x4b18f0)):this[_0x161611(0x82)](_0x4ab2b1(this[_0x161611(0xbb)],_0x161611(0xa2))):this[_0x161611(0x82)](_0x4ab2b1(this[_0x161611(0xbb)],_0x161611(0x79)));}[_0x10ab7b(0xc0)](){const _0x404bf8=_0x10ab7b,_0x4e0c6b=this[_0x404bf8(0xa4)]()[_0x404bf8(0x81)](),_0x5cb2b9=!!this[_0x404bf8(0x93)][_0x404bf8(0xad)];this[_0x404bf8(0x96)][_0x404bf8(0xa6)]=_0x4e0c6b[_0x404bf8(0x80)]>0x0&&!_0x5cb2b9;}[_0x10ab7b(0x74)](_0x2eb47a){try{return!!new URL(_0x2eb47a);}catch{return!0x1;}}}
23
+ const _0x12af7e=_0x5c99;(function(_0x1fd96f,_0xdb8241){const _0x2fa5f4=_0x5c99,_0xbf2b7f=_0x1fd96f();while(!![]){try{const _0x57bd87=-parseInt(_0x2fa5f4(0xa8))/0x1+-parseInt(_0x2fa5f4(0xaa))/0x2+-parseInt(_0x2fa5f4(0xb9))/0x3+parseInt(_0x2fa5f4(0xad))/0x4*(parseInt(_0x2fa5f4(0xdb))/0x5)+parseInt(_0x2fa5f4(0xb0))/0x6*(parseInt(_0x2fa5f4(0xb7))/0x7)+parseInt(_0x2fa5f4(0xa1))/0x8*(-parseInt(_0x2fa5f4(0xcd))/0x9)+parseInt(_0x2fa5f4(0xc8))/0xa;if(_0x57bd87===_0xdb8241)break;else _0xbf2b7f['push'](_0xbf2b7f['shift']());}catch(_0x5898dc){_0xbf2b7f['push'](_0xbf2b7f['shift']());}}}(_0x2854,0x49efa));import{FocusTracker as _0x1be1ad,KeystrokeHandler as _0x3d39a0}from'ckeditor5/src/utils.js';import{ButtonView as _0x324c32,FocusCycler as _0x14cc58,LabeledFieldView as _0x523302,View as _0x11d689,FormHeaderView as _0x39bad7,createLabeledInputText as _0x517f76,submitHandler as _0x53eec5}from'ckeditor5/src/ui.js';function _0x5c99(_0x3bb206,_0x21b362){const _0x285488=_0x2854();return _0x5c99=function(_0x5c99f5,_0x4832fc){_0x5c99f5=_0x5c99f5-0x93;let _0xad53d=_0x285488[_0x5c99f5];return _0xad53d;},_0x5c99(_0x3bb206,_0x21b362);}import{IconCheck as _0x177bb7,IconPreviousArrow as _0x519ff4}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x189c9e}from'../../../aicore/utils/common-translations.js';const oh=_0x12af7e(0xd7),ch=_0x12af7e(0xc4);export class AIChatContextPanelUrlInputView extends _0x11d689{[_0x12af7e(0xdc)];[_0x12af7e(0x9f)];[_0x12af7e(0xbc)];[_0x12af7e(0xd1)];[_0x12af7e(0x94)];[_0x12af7e(0x97)];[_0x12af7e(0xde)];constructor(_0x2aa225){const _0x2b84b1=_0x12af7e;super(_0x2aa225),this[_0x2b84b1(0xdc)]=new _0x1be1ad(),this[_0x2b84b1(0x9f)]=new _0x3d39a0(),this[_0x2b84b1(0x97)]=this[_0x2b84b1(0xa3)](),this[_0x2b84b1(0x94)]=this[_0x2b84b1(0xae)](),this[_0x2b84b1(0xde)]=this[_0x2b84b1(0xc5)](),this[_0x2b84b1(0xbc)]=this[_0x2b84b1(0xc1)]([this[_0x2b84b1(0x97)],this[_0x2b84b1(0x94)],this[_0x2b84b1(0xde)]]),this[_0x2b84b1(0xd1)]=new _0x14cc58({'focusables':this[_0x2b84b1(0xbc)],'focusTracker':this[_0x2b84b1(0xdc)],'keystrokeHandler':this[_0x2b84b1(0x9f)],'actions':{'focusPrevious':_0x2b84b1(0xb5),'focusNext':_0x2b84b1(0x95)}}),this[_0x2b84b1(0xa6)](_0x2b84b1(0xb1),!0x0),this[_0x2b84b1(0x9b)](),this[_0x2b84b1(0xa0)](),this[_0x2b84b1(0xc2)]();}[_0x12af7e(0xd0)](){const _0x414c14=_0x12af7e;super[_0x414c14(0xd0)](),this[_0x414c14(0xbc)][_0x414c14(0xdd)](_0x1d5828=>{const _0x30fe85=_0x414c14;this[_0x30fe85(0xdc)][_0x30fe85(0x96)](_0x1d5828[_0x30fe85(0xbf)]),this[_0x30fe85(0x9f)][_0x30fe85(0xc7)](_0x1d5828[_0x30fe85(0xbf)]);}),_0x53eec5({'view':this}),this[_0x414c14(0xd3)]();}[_0x12af7e(0xc6)](){const _0x53978a=_0x12af7e;super[_0x53978a(0xc6)](),this[_0x53978a(0xdc)][_0x53978a(0xc6)](),this[_0x53978a(0x9f)][_0x53978a(0xc6)]();}[_0x12af7e(0xd3)](){const _0x1730e5=_0x12af7e;this[_0x1730e5(0x94)][_0x1730e5(0xd3)]();}[_0x12af7e(0xcc)](){const _0x58817b=_0x12af7e;return this[_0x58817b(0x94)][_0x58817b(0x93)][_0x58817b(0xbf)]?.[_0x58817b(0xb3)]?.[_0x58817b(0x98)]()||'';}[_0x12af7e(0x9d)](){const _0x402c49=_0x12af7e;this[_0x402c49(0x94)][_0x402c49(0x93)][_0x402c49(0xbf)][_0x402c49(0xb3)]='',this[_0x402c49(0x94)][_0x402c49(0xba)]=null,this[_0x402c49(0xde)][_0x402c49(0xa4)]=!0x1;}[_0x12af7e(0xbe)](_0x1cebb3){const _0x4e5ccc=_0x12af7e;this[_0x4e5ccc(0x94)][_0x4e5ccc(0xba)]=_0x1cebb3,this[_0x4e5ccc(0xd8)](),this[_0x4e5ccc(0xb8)](_0x4e5ccc(0xd5));}[_0x12af7e(0xce)](){const _0x445d44=_0x12af7e;this[_0x445d44(0x94)][_0x445d44(0xba)]=null,this[_0x445d44(0xd8)]();}[_0x12af7e(0xa3)](){const _0x10dcce=_0x12af7e,_0x3d8b52=new _0x324c32(this[_0x10dcce(0x9c)]);return _0x3d8b52[_0x10dcce(0xa6)]({'icon':_0x519ff4,'tooltip':_0x189c9e(this[_0x10dcce(0x9c)],_0x10dcce(0xda)),'tooltipPosition':'n','class':[_0x10dcce(0xc9)]}),this['on'](_0x10dcce(0xbb),(_0x225c56,_0x40a715,_0x95837a)=>{const _0x1e2636=_0x10dcce;_0x3d8b52[_0x1e2636(0xa6)]({'class':[_0x1e2636(0xc9)+(_0x95837a?'':_0x1e2636(0xd4))]});}),_0x3d8b52;}[_0x12af7e(0xae)](){const _0x5bc4a3=_0x12af7e,_0x1d4bb0=new _0x523302(this[_0x5bc4a3(0x9c)],_0x517f76);return _0x1d4bb0[_0x5bc4a3(0xa6)]({'label':_0x189c9e(this[_0x5bc4a3(0x9c)],_0x5bc4a3(0xaf)),'class':_0x5bc4a3(0xca)}),_0x1d4bb0[_0x5bc4a3(0x93)][_0x5bc4a3(0xa6)]({'placeholder':_0x189c9e(this[_0x5bc4a3(0x9c)],_0x5bc4a3(0xd9))}),_0x1d4bb0;}[_0x12af7e(0xc5)](){const _0x1b6943=_0x12af7e,_0xda714f=new _0x324c32(this[_0x1b6943(0x9c)]);return _0xda714f[_0x1b6943(0xa6)]({'icon':_0x177bb7,'tooltip':_0x189c9e(this[_0x1b6943(0x9c)],_0x1b6943(0xb2)),'tooltipPosition':'n','class':_0x1b6943(0xa5),'type':_0x1b6943(0xa2),'isEnabled':!0x1}),_0xda714f;}[_0x12af7e(0x9b)](){const _0x2ca180=_0x12af7e,_0x3e8177=new _0x39bad7(this[_0x2ca180(0x9c)],{'label':_0x189c9e(this[_0x2ca180(0x9c)],_0x2ca180(0xb2)),'class':_0x2ca180(0xac)});_0x3e8177[_0x2ca180(0x9e)][_0x2ca180(0x96)](this[_0x2ca180(0x97)],0x0),this[_0x2ca180(0xb6)]({'tag':_0x2ca180(0xbd),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x3e8177,{'tag':_0x2ca180(0xd2),'attributes':{'class':ch},'children':[this[_0x2ca180(0x94)],this[_0x2ca180(0xde)]]}]});}[_0x12af7e(0xa0)](){const _0x2c225b=_0x12af7e;this[_0x2c225b(0x97)]['on'](_0x2c225b(0xb4),()=>{const _0x46b35f=_0x2c225b;this[_0x46b35f(0x9d)](),this[_0x46b35f(0xb8)](_0x46b35f(0xd6));}),this[_0x2c225b(0x94)][_0x2c225b(0x93)]['on'](_0x2c225b(0xcb),()=>{const _0x3f624b=_0x2c225b;this[_0x3f624b(0xce)](),this[_0x3f624b(0xd8)](),this[_0x3f624b(0xb8)](_0x3f624b(0xd5));}),this['on'](_0x2c225b(0xa2),_0x257cc1=>{const _0x116e9e=_0x2c225b;_0x257cc1[_0x116e9e(0xcf)](),this[_0x116e9e(0xa7)]();});}[_0x12af7e(0xc2)](){const _0x103f12=_0x12af7e;this[_0x103f12(0x9f)][_0x103f12(0xa6)](_0x103f12(0xa9),(_0x172bfc,_0x5ed21a)=>{const _0x343b34=_0x103f12;this[_0x343b34(0x9d)](),this[_0x343b34(0xb8)](_0x343b34(0xd6)),_0x5ed21a();});}[_0x12af7e(0xa7)](){const _0x492f8f=_0x12af7e,_0x468516=this[_0x492f8f(0xcc)]()[_0x492f8f(0x98)]();_0x468516?this[_0x492f8f(0xc0)](_0x468516)?(this[_0x492f8f(0xce)](),this[_0x492f8f(0xb8)](_0x492f8f(0xab),_0x468516)):this[_0x492f8f(0xbe)](_0x189c9e(this[_0x492f8f(0x9c)],_0x492f8f(0x9a))):this[_0x492f8f(0xbe)](_0x189c9e(this[_0x492f8f(0x9c)],_0x492f8f(0xc3)));}[_0x12af7e(0xd8)](){const _0x4fb367=_0x12af7e,_0x213fb1=this[_0x4fb367(0xcc)]()[_0x4fb367(0x98)](),_0x171cd8=!!this[_0x4fb367(0x94)][_0x4fb367(0xba)];this[_0x4fb367(0xde)][_0x4fb367(0xa4)]=_0x213fb1[_0x4fb367(0x99)]>0x0&&!_0x171cd8;}[_0x12af7e(0xc0)](_0x45003d){try{return!!new URL(_0x45003d);}catch{return!0x1;}}}function _0x2854(){const _0x537a2c=['ck-button-icon\x20ck-button-back','ck-labeled-field-view_empty','input','getValue','9tZVinR','clearError','stop','render','focusCycler','div','focus','\x20ck-hidden','refreshBalloon','cancel','ck-ai-chat-context-controls__url-form','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_PLACEHOLDER','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','10CoeqAH','focusTracker','forEach','confirmButton','fieldView','urlInputField','tab','add','backButton','trim','length','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_setupTemplate','locale','clear','children','keystrokes','_setupEventHandlers','3001864FPdoAX','submit','_createBackButton','isEnabled','ck-button-icon','set','_handleSubmit','250441HtIRqT','esc','725092ShTzGC','submitUrl','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','833836vzzwpy','_createUrlInputField','AI_CHAT_CONTEXT_URL_LABEL','158292MlrBxl','withBackButton','AI_CHAT_CONTEXT_URL_ADD_URL','value','execute','shift+tab','setTemplate','49xvEeEc','fire','112710wSgQso','errorText','change:withBackButton','_focusables','form','setError','element','_isValidUrl','createCollection','_setupKeystrokes','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','ck-ai-chat-context-controls__url-input-section','_createConfirmButton','destroy','listenTo','7270400GzlZzp'];_0x2854=function(){return _0x537a2c;};return _0x2854();}