@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.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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();}
|