@ckeditor/ckeditor5-ai 47.4.0-alpha.2 → 47.4.0-alpha.4
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/model/aiactionsreply.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/form/prompthistory.js +1 -1
- package/src/aichat/aichat.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/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/aichatcontrolsloaderview.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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.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/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/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cba81=_0x58a7;(function(_0x2ac3e3,_0x4c06ea){const _0x5529c5=_0x58a7,_0xac5268=_0x2ac3e3();while(!![]){try{const _0x52a853=-parseInt(_0x5529c5(0x100))/0x1+parseInt(_0x5529c5(0xec))/0x2+-parseInt(_0x5529c5(0xf7))/0x3*(-parseInt(_0x5529c5(0x108))/0x4)+-parseInt(_0x5529c5(0xf0))/0x5*(-parseInt(_0x5529c5(0xee))/0x6)+parseInt(_0x5529c5(0x10f))/0x7*(parseInt(_0x5529c5(0x11d))/0x8)+parseInt(_0x5529c5(0xf1))/0x9+parseInt(_0x5529c5(0x113))/0xa*(-parseInt(_0x5529c5(0x137))/0xb);if(_0x52a853===_0x4c06ea)break;else _0xac5268['push'](_0xac5268['shift']());}catch(_0x39b517){_0xac5268['push'](_0xac5268['shift']());}}}(_0x538e,0x49929));import{CKEditorError as _0x273be1,logWarning as _0x54b765,scrollViewportToShowTarget as _0x195149}from'ckeditor5/src/utils.js';import{View as _0x6f3657}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x515ab8}from'../utils/eventnames.js';function _0x58a7(_0x4edaab,_0x1d77ec){const _0x538e77=_0x538e();return _0x58a7=function(_0x58a7c6,_0x2f00a2){_0x58a7c6=_0x58a7c6-0xe7;let _0x47b918=_0x538e77[_0x58a7c6];return _0x47b918;},_0x58a7(_0x4edaab,_0x1d77ec);}import{AIChatFeedSuggestionItemView as _0x48e213}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0xa277f9}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x56c3c1}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x48f535}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4251e0}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x16ff2f}from'../../aicore/utils/scrollmanager.js';function _0x538e(){const _0x5b45d6=['1354505aByGFI','4250241siHSRB','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','setLoadingMessage','children','find','scrollToSuggestion','60465yfsMmn','_createFeedLoader','_bodyCollection','updatePartState','addItem','createCollection','_createLoaderChildren','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','map','152002pARywz','extendTemplate','ai-reply','element','getPartView','isVisible','aiFeed','ai-chat-feed-view-item-not-a-suggestion-item','44pcLDJk','_createFeedItems','ai-suggestion-reply','includes','destroy','bindTemplate','locale','7WIKrxK','set','getItemById','markItemAsDone','10BNGNDv','stopAutoScroll','ai-chat-feed-view-item-not-found','bind','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','render','getItemIds','ck-hidden','markAsDone','user-message','2961528qRGnqj','delegate','remove','toggleLoadingSkeleton','ck-ai-chat__loader','start','clear','span','ai-chat-feed-view-item-not-a-reply-item','div','updateContent','_createTemplateChildren','startAutoScroll','updateSuggestionItem','isLoadingSkeletonVisible','_createSkeletonLoader','ck-ai-chat__loader-text','interaction-header','ck-ai-chat__feed','options','ck-ai-chat__feed__items','isPending','setTemplate','removeItem','updateSources','loadingMessage','12952038tcDdXH','updateWebSources','scrollManager','updateSuggestionPartState','updateReplyItem','_setupTemplate','isTrackChangesOn','591534OFaoaA','stop','6BThVWb','add'];_0x538e=function(){return _0x5b45d6;};return _0x538e();}import{AISkeletonView as _0x30ae6b,SKELETON_DEFINITIONS as _0x4e35e9}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x158ea6}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x6f3657{[_0x4cba81(0xf4)];[_0x4cba81(0xe7)];[_0x4cba81(0xf9)];constructor(_0x175b2e,_0x510cba){const _0x2cb114=_0x4cba81;super(_0x175b2e),this[_0x2cb114(0xf9)]=_0x510cba,this[_0x2cb114(0x110)](_0x2cb114(0x132),!0x1),this[_0x2cb114(0x110)](_0x2cb114(0x136),''),this[_0x2cb114(0x110)](_0x2cb114(0x12b),!0x1),this[_0x2cb114(0x110)](_0x2cb114(0xeb),!0x1),this[_0x2cb114(0xf4)]=this[_0x2cb114(0xfc)](),this[_0x2cb114(0xf4)][_0x2cb114(0x11e)](..._0x515ab8)['to'](this),this[_0x2cb114(0xea)]();}[_0x4cba81(0x118)](){const _0x550801=_0x4cba81;super[_0x550801(0x118)](),this[_0x550801(0xe7)]=new _0x16ff2f(this[_0x550801(0x103)]);}[_0x4cba81(0x10c)](){const _0x1aa1a9=_0x4cba81;super[_0x1aa1a9(0x10c)](),this[_0x1aa1a9(0xe7)][_0x1aa1a9(0x10c)]();}[_0x4cba81(0x123)](){const _0x1a1270=_0x4cba81;this[_0x1a1270(0xf4)][_0x1a1270(0x123)]();}[_0x4cba81(0xfb)](_0x479db6,_0x38436a){const _0x14e16b=_0x4cba81;let _0x1439a2;_0x14e16b(0x102)===_0x479db6?_0x1439a2=new _0xa277f9(this[_0x14e16b(0x10e)],_0x38436a,this[_0x14e16b(0xf9)]):_0x14e16b(0x10a)===_0x479db6?(_0x1439a2=new _0x48e213(this[_0x14e16b(0x10e)],_0x38436a,this[_0x14e16b(0xf9)]),_0x1439a2[_0x14e16b(0x116)](_0x14e16b(0xeb))['to'](this,_0x14e16b(0xeb))):_0x1439a2=_0x14e16b(0x11c)===_0x479db6?new _0x56c3c1(this[_0x14e16b(0x10e)],_0x38436a,this[_0x14e16b(0xf9)]):_0x14e16b(0x12e)===_0x479db6?new _0x4251e0(this[_0x14e16b(0x10e)],_0x38436a):new _0x48f535(_0x38436a),this[_0x14e16b(0xf4)][_0x14e16b(0xef)](_0x1439a2);}async[_0x4cba81(0xe9)]({id:_0x1fc5d4,parsedContent:_0x41384b,renderingStrategy:_0x17cf33,abortSignal:_0x1d07e1}){const _0x38f26e=_0x4cba81,_0x569e26=this[_0x38f26e(0x111)](_0x1fc5d4);if(!(_0x569e26 instanceof _0xa277f9))throw new _0x273be1(_0x38f26e(0x125),null,{'itemView':_0x569e26,'id':_0x1fc5d4,'parsedContent':_0x41384b});await _0x569e26[_0x38f26e(0x127)]({'parsedContent':_0x41384b,'renderingStrategy':_0x17cf33,'abortSignal':_0x1d07e1});}async[_0x4cba81(0x138)](_0x5759cc,_0x5edb76){const _0x166217=_0x4cba81,_0x2b38ce=this[_0x166217(0x111)](_0x5759cc);if(_0x2b38ce instanceof _0x48e213)_0x2b38ce[_0x166217(0x135)](_0x5edb76);else{if(!(_0x2b38ce instanceof _0xa277f9))throw new _0x273be1(_0x166217(0xf2),null,{'itemView':_0x2b38ce,'id':_0x5759cc,'sources':_0x5edb76});_0x2b38ce[_0x166217(0x135)](_0x5edb76);}}async[_0x4cba81(0x12a)]({id:_0x11d611,parts:_0x2ae989,renderingStrategy:_0x186819,abortSignal:_0x525f98}){const _0x42963a=_0x4cba81,_0xfa861f=this[_0x42963a(0x111)](_0x11d611);if(!(_0xfa861f instanceof _0x48e213))throw new _0x273be1(_0x42963a(0x107),null,{'itemView':_0xfa861f,'id':_0x11d611,'parts':_0x2ae989});await _0xfa861f[_0x42963a(0x127)]({'parts':_0x2ae989,'renderingStrategy':_0x186819,'abortSignal':_0x525f98});}[_0x4cba81(0xe8)]({id:_0x4e3ad6,index:_0x190a77,state:_0x3ecc53}){const _0xee9817=_0x4cba81,_0xa5c1b8=this[_0xee9817(0x111)](_0x4e3ad6);if(!(_0xa5c1b8 instanceof _0x48e213))throw new _0x273be1(_0xee9817(0x107),this,{'id':_0x4e3ad6});_0xa5c1b8[_0xee9817(0xfa)](_0x190a77,_0x3ecc53);}[_0x4cba81(0x112)](_0x412906){const _0xbfecff=_0x4cba81;this[_0xbfecff(0x111)](_0x412906)[_0xbfecff(0x11b)]();}[_0x4cba81(0x119)](){const _0x3eb046=_0x4cba81;return this[_0x3eb046(0xf4)][_0x3eb046(0xff)](_0x5d562d=>_0x5d562d[_0x3eb046(0x130)]['id']);}[_0x4cba81(0x134)](_0xfeb718){const _0x21dd2e=_0x4cba81;this[_0x21dd2e(0xf4)][_0x21dd2e(0x11f)](this[_0x21dd2e(0x111)](_0xfeb718));}[_0x4cba81(0xf6)](_0x162c96,_0x3fb919){const _0x4f5640=_0x4cba81,_0x37343e=this[_0x4f5640(0x111)](_0x162c96);if(!(_0x37343e instanceof _0x48e213))return void _0x54b765(_0x4f5640(0x117),{'replyId':_0x162c96,'partIndex':_0x3fb919});const _0x35df8d=_0x37343e[_0x4f5640(0x104)](_0x3fb919);_0x35df8d?_0x195149({'target':_0x35df8d[_0x4f5640(0x103)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x54b765(_0x4f5640(0xfe),{'replyId':_0x162c96,'partIndex':_0x3fb919});}[_0x4cba81(0xea)](){const _0x3f4ccf=_0x4cba81;this[_0x3f4ccf(0x133)]({'tag':_0x3f4ccf(0x126),'attributes':{'class':['ck',_0x3f4ccf(0x12f)]},'children':this[_0x3f4ccf(0x128)]()});}[_0x4cba81(0x128)](){const _0xc1be73=_0x4cba81,_0x29d5c7=this[_0xc1be73(0x12c)]();return[this[_0xc1be73(0x109)](),_0x29d5c7,this[_0xc1be73(0xf8)]()];}[_0x4cba81(0x12c)](){const _0x167a60=_0x4cba81,_0x5d3c2b=new _0x30ae6b(this[_0x167a60(0x10e)],_0x4e35e9[_0x167a60(0x106)]);return _0x5d3c2b[_0x167a60(0x101)]({'attributes':{'class':[this[_0x167a60(0x10d)]['if'](_0x167a60(0x12b),_0x167a60(0x11a),_0x59af96=>!_0x59af96)]}}),_0x5d3c2b;}[_0x4cba81(0x109)](){const _0x116d58=_0x4cba81,_0x25b872=new _0x6f3657(this[_0x116d58(0x10e)]);return _0x25b872[_0x116d58(0x133)]({'tag':_0x116d58(0x126),'attributes':{'class':['ck',_0x116d58(0x131),this[_0x116d58(0x10d)]['if'](_0x116d58(0x12b),_0x116d58(0x11a))]},'children':this[_0x116d58(0xf4)]}),_0x25b872;}[_0x4cba81(0xf8)](){const _0x35751f=_0x4cba81,_0x576c2c=new _0x6f3657(this[_0x35751f(0x10e)]);return _0x576c2c[_0x35751f(0x133)]({'tag':_0x35751f(0x126),'attributes':{'class':['ck',_0x35751f(0x121),this[_0x35751f(0x10d)]['if'](_0x35751f(0x132),_0x35751f(0x11a),_0x5e74b9=>!_0x5e74b9)]},'children':this[_0x35751f(0xfd)]()}),_0x576c2c;}[_0x4cba81(0xfd)](){const _0xfccf6c=_0x4cba81,_0x13f654=new _0x158ea6();return _0x13f654[_0xfccf6c(0x105)]=!0x0,[_0x13f654,{'tag':_0xfccf6c(0x124),'attributes':{'class':['ck',_0xfccf6c(0x12d)]},'children':[{'text':this[_0xfccf6c(0x10d)]['to'](_0xfccf6c(0x136))}]}];}[_0x4cba81(0x111)](_0x3fdef0){const _0x5a072f=_0x4cba81,_0x293bd2=this[_0x5a072f(0xf4)][_0x5a072f(0xf5)](_0x5c3786=>_0x5c3786[_0x5a072f(0x130)]['id'][_0x5a072f(0x10b)](_0x3fdef0));if(!_0x293bd2)throw new _0x273be1(_0x5a072f(0x115),this,{'id':_0x3fdef0});return _0x293bd2;}[_0x4cba81(0xf3)](_0x9009c8){const _0x309854=_0x4cba81;this[_0x309854(0x110)](_0x309854(0x136),_0x9009c8);}[_0x4cba81(0x120)](_0x396c80){const _0x2ba553=_0x4cba81;this[_0x2ba553(0x110)](_0x2ba553(0x12b),_0x396c80);}[_0x4cba81(0x129)](){const _0x3e61ef=_0x4cba81;this[_0x3e61ef(0xe7)][_0x3e61ef(0x122)]();}[_0x4cba81(0x114)](){const _0x340e4b=_0x4cba81;this[_0x340e4b(0xe7)][_0x340e4b(0xed)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x51ce31=_0x59e2;function _0x59e2(_0x5a2cbb,_0xaf62bd){const _0xf66b54=_0xf66b();return _0x59e2=function(_0x59e28e,_0xa021bb){_0x59e28e=_0x59e28e-0x16a;let _0x273002=_0xf66b54[_0x59e28e];return _0x273002;},_0x59e2(_0x5a2cbb,_0xaf62bd);}(function(_0x1478da,_0x3a26a3){const _0x3fe0d8=_0x59e2,_0x59ff32=_0x1478da();while(!![]){try{const _0x466834=-parseInt(_0x3fe0d8(0x17b))/0x1*(-parseInt(_0x3fe0d8(0x17d))/0x2)+parseInt(_0x3fe0d8(0x17c))/0x3+-parseInt(_0x3fe0d8(0x16b))/0x4*(-parseInt(_0x3fe0d8(0x173))/0x5)+parseInt(_0x3fe0d8(0x17e))/0x6*(-parseInt(_0x3fe0d8(0x180))/0x7)+-parseInt(_0x3fe0d8(0x174))/0x8+-parseInt(_0x3fe0d8(0x175))/0x9+-parseInt(_0x3fe0d8(0x170))/0xa;if(_0x466834===_0x3a26a3)break;else _0x59ff32['push'](_0x59ff32['shift']());}catch(_0x4dc466){_0x59ff32['push'](_0x59ff32['shift']());}}}(_0xf66b,0x90963));import{ButtonView as _0x571835,FormHeaderView as _0x114f28}from'ckeditor5/src/ui.js';import{IconPlus as _0x3693e5,IconAIChat as _0x458f8c}from'ckeditor5/src/icons.js';function _0xf66b(){const _0x530aa3=['set','4739akzWUf','fire','execute','isMaximized','528nWXSvN','AI_CHAT_HEADING','locale','ck-ai-chat__start-conversation','resizeButton','969550jMTqpg','startConversation','conversationStartButton','37645DIaMHR','6347736HIpenB','2136123JVcJWs','_createStartConversationButton','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_LABEL_NEW_CHAT','add','children','1xLMngu','2790408eRnbEx','175638uKnlBe','2586HZjqyb'];_0xf66b=function(){return _0x530aa3;};return _0xf66b();}import{getTranslation as _0x24d345}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x58f43e}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x114f28{[_0x51ce31(0x172)];[_0x51ce31(0x16f)];constructor(_0x23b97d,_0x3031d7){const _0x3159c6=_0x51ce31;super(_0x23b97d,{'label':_0x24d345(_0x23b97d,_0x3159c6(0x16c)),'class':_0x3159c6(0x177),'icon':_0x458f8c}),this[_0x3159c6(0x17f)](_0x3159c6(0x16a),!0x1),this[_0x3159c6(0x172)]=this[_0x3159c6(0x176)](_0x23b97d),this[_0x3159c6(0x17a)][_0x3159c6(0x179)](this[_0x3159c6(0x172)]),_0x3031d7&&(this[_0x3159c6(0x16f)]=_0x58f43e(_0x23b97d,this),this[_0x3159c6(0x17a)][_0x3159c6(0x179)](this[_0x3159c6(0x16f)]));}[_0x51ce31(0x176)](_0x2dcf07){const _0x1b5597=_0x51ce31,_0x5c0607=new _0x571835(_0x2dcf07);return _0x5c0607[_0x1b5597(0x17f)]({'label':_0x24d345(this[_0x1b5597(0x16d)],_0x1b5597(0x178)),'withText':!0x0,'icon':_0x3693e5,'class':_0x1b5597(0x16e)}),_0x5c0607['on'](_0x1b5597(0x182),()=>{const _0x121ede=_0x1b5597;this[_0x121ede(0x181)](_0x121ede(0x171));}),_0x5c0607;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3177a7=_0x1953;(function(_0x3ff7bf,_0x948f51){var _0x475536=_0x1953,_0x735861=_0x3ff7bf();while(!![]){try{var _0x54c537=parseInt(_0x475536(0x136))/0x1*(parseInt(_0x475536(0x127))/0x2)+parseInt(_0x475536(0x13d))/0x3+parseInt(_0x475536(0x133))/0x4+-parseInt(_0x475536(0x13f))/0x5+parseInt(_0x475536(0x129))/0x6*(parseInt(_0x475536(0x12c))/0x7)+-parseInt(_0x475536(0x126))/0x8*(-parseInt(_0x475536(0x138))/0x9)+-parseInt(_0x475536(0x130))/0xa;if(_0x54c537===_0x948f51)break;else _0x735861['push'](_0x735861['shift']());}catch(_0x312f38){_0x735861['push'](_0x735861['shift']());}}}(_0x50da,0xd3e35));import{View as _0x6dea56,BodyCollection as _0x416c8d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x57ade1}from'../utils/eventnames.js';function _0x50da(){var _0x525a63=['chatDisclaimer','6507748ZYdlTp','chatFeed','_bodyCollection','27957vxMTjv','chatControls','9235521gOxggs','destroy','detachFromDom','chatHeader','ck-ai-chat','3868635ctGoym','setTemplate','912805mwwbOK','uiLanguageDirection','div','contextResourcesSearchInputVisibleFrom','8KHmwAy','26NGyFSJ','populateSourceResourceBalloon','6uHJGBb','delegate','showResizeButton','5901238EwqZNg','ck-reset_all','ck-rounded-corners','closeSourceResourceBalloon','40986720gpJNbS','attachToDom'];_0x50da=function(){return _0x525a63;};return _0x50da();}import{AIChatFeedView as _0x8e1765}from'./aichatfeedview.js';import{AIChatControlsView as _0x3fb60d}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x496837}from'./aichatheaderview.js';import{AIDisclaimerView as _0x1862a5}from'../../aicore/ui/aidisclaimerview.js';function _0x1953(_0x5142c0,_0x12a3f3){var _0x50da93=_0x50da();return _0x1953=function(_0x1953b3,_0x908e34){_0x1953b3=_0x1953b3-0x125;var _0x2ef41e=_0x50da93[_0x1953b3];return _0x2ef41e;},_0x1953(_0x5142c0,_0x12a3f3);}export class AIChatView extends _0x6dea56{[_0x3177a7(0x13b)];[_0x3177a7(0x134)];[_0x3177a7(0x137)];[_0x3177a7(0x132)];[_0x3177a7(0x135)];constructor(_0x36652c,_0xa75329){var _0x2890a6=_0x3177a7;super(_0x36652c),this[_0x2890a6(0x135)]=new _0x416c8d(_0x36652c),this[_0x2890a6(0x135)][_0x2890a6(0x131)](),this[_0x2890a6(0x13b)]=new _0x496837(_0x36652c,_0xa75329[_0x2890a6(0x12b)]),this[_0x2890a6(0x13b)][_0x2890a6(0x12a)](..._0x57ade1)['to'](this),this[_0x2890a6(0x134)]=new _0x8e1765(_0x36652c,this[_0x2890a6(0x135)]),this[_0x2890a6(0x134)][_0x2890a6(0x12a)](..._0x57ade1)['to'](this),this[_0x2890a6(0x137)]=new _0x3fb60d(_0x36652c,{'bodyCollection':this[_0x2890a6(0x135)],'contextResourcesSearchInputVisibleFrom':_0xa75329[_0x2890a6(0x125)]}),this[_0x2890a6(0x137)][_0x2890a6(0x12a)](..._0x57ade1)['to'](this),this[_0x2890a6(0x132)]=new _0x1862a5(_0x36652c),this[_0x2890a6(0x13e)]({'tag':_0x2890a6(0x141),'attributes':{'class':['ck',_0x2890a6(0x12d),_0x2890a6(0x13c),_0x2890a6(0x12e)],'dir':_0x36652c[_0x2890a6(0x140)]},'children':[this[_0x2890a6(0x13b)],this[_0x2890a6(0x134)],this[_0x2890a6(0x137)],this[_0x2890a6(0x132)]]});}[_0x3177a7(0x128)](_0x20aace,_0x2576c9,_0x137b25,_0x360380){var _0x14f2c5=_0x3177a7;this[_0x14f2c5(0x137)][_0x14f2c5(0x128)](_0x20aace,_0x2576c9,_0x137b25,_0x360380);}[_0x3177a7(0x12f)](_0x437057){var _0x450394=_0x3177a7;this[_0x450394(0x137)][_0x450394(0x12f)](_0x437057);}[_0x3177a7(0x139)](){var _0x2d06f7=_0x3177a7;this[_0x2d06f7(0x135)][_0x2d06f7(0x13a)](),super[_0x2d06f7(0x139)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x590f(){const _0x52c7b0=['_setupVisibilityObserver','_applyCalculationStyles','_locale','_createShowMoreButtonView','length','execute','1241835yJqhgq','absolute','show','+\x201','_config','cssClasses','pointerEvents','_targetContainer','setContainerElement','273343MxYXTe','_calculateOverflowInContainer','none','push','filter','extendTemplate','showMoreLabelPrefix','pin','_ancestorsToRestore','9zNVxit','textContent','_renderChipsAndCountRows','disableAnimationOnEnter','height','clientWidth','zIndex','isConnected','_updateShowMoreButtonVisibility','add','-9999px','_calculateContainerWidth','_checkAndHandleOverflow','includes','showBalloonPanel','_handleShowMoreButtonClick','96qVSZTe','_overflowChips','_applyOverflowResults','2101FTMzpr','_repinBalloonPanel','boxSizing','_createCalculationContainer','rowDetectionTolerance','_isContainerVisible','children','left','from','_showMoreBalloonPanelView','visible\x20!important','set','_pendingCalculation','clear','right','className','clientHeight','label','body','controlsButton','300px','element','tagName','_createShowMoreBalloonPanelView','calculationContainer','render','hidden','width','_distributeChips','_bodyCollection','isIntersecting','_parentView','_createMockButton','0px','visibility','hide','_findTargetContainer','createElement','destroy','forEach','pop','showMoreButton','content','classList','_updateBalloonContent','showMoreButtonView','block\x20!important','opacity','setTemplate','isOn','_visibleChips','ck-calculation-container','div','auto','35175336zyRcAv','remove','809448ZKdTDF','.ck-ai-chat','innerHeight','disconnect','86070EnPAgQ','style','top','_containerElement','querySelector','some','hideBalloonPanel','2644cSlFzd','getBoundingClientRect','18odqVGr','position','toLowerCase','_testButtonFit','observe','block','maxVisibleRows','appendChild','_createContainerElements','7634EMwsSS','abs','50px','documentElement','_showMoreButtonView','_createShowMoreButton','_makeAncestorsVisible','_updateOverflowUI','innerHTML','_restoreAncestorVisibility','undefined','display','showMoreBalloon','border-box','button','overflowContainer','slice','offsetWidth','cloneNode','parentElement','reorganizeChips','overflowChips','14255susJMc','_intersectionObserver','isVisible','innerWidth','getComputedStyle','visible','bottom'];_0x590f=function(){return _0x52c7b0;};return _0x590f();}const _0x1ef46b=_0x166f;function _0x166f(_0x170840,_0x3e0308){const _0x590f28=_0x590f();return _0x166f=function(_0x166f15,_0x584663){_0x166f15=_0x166f15-0x175;let _0x1da4b2=_0x590f28[_0x166f15];return _0x1da4b2;},_0x166f(_0x170840,_0x3e0308);}(function(_0x320756,_0x28d6c2){const _0x2a5757=_0x166f,_0x201aca=_0x320756();while(!![]){try{const _0x12bd3f=parseInt(_0x2a5757(0x1dd))/0x1+parseInt(_0x2a5757(0x1ba))/0x2*(parseInt(_0x2a5757(0x1ff))/0x3)+-parseInt(_0x2a5757(0x1af))/0x4*(parseInt(_0x2a5757(0x1d0))/0x5)+-parseInt(_0x2a5757(0x1b1))/0x6*(-parseInt(_0x2a5757(0x1e6))/0x7)+-parseInt(_0x2a5757(0x1a4))/0x8*(-parseInt(_0x2a5757(0x1ef))/0x9)+parseInt(_0x2a5757(0x1a8))/0xa*(-parseInt(_0x2a5757(0x202))/0xb)+parseInt(_0x2a5757(0x1a2))/0xc;if(_0x12bd3f===_0x28d6c2)break;else _0x201aca['push'](_0x201aca['shift']());}catch(_0x1a8c74){_0x201aca['push'](_0x201aca['shift']());}}}(_0x590f,0xf0831));import{View as _0x5307be,BalloonPanelView as _0x1f07f7,ButtonView as _0x5c0b92,clickOutsideHandler as _0x738804}from'ckeditor5/src/ui.js';import{Collection as _0x362882}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x1ef46b(0x180);export class AIChatChipsOverflowManager{[_0x1ef46b(0x1d9)];[_0x1ef46b(0x1e1)];[_0x1ef46b(0x19e)];[_0x1ef46b(0x200)];[_0x1ef46b(0x1be)]=null;[_0x1ef46b(0x175)]=null;[_0x1ef46b(0x1ab)]=null;[_0x1ef46b(0x189)];[_0x1ef46b(0x18b)]=null;[_0x1ef46b(0x1d1)]=null;[_0x1ef46b(0x178)]=!0x1;constructor(_0x1c6bce,_0x21e75f,_0x325684,_0x256e24,_0x452ba3){const _0x5d1af7=_0x1ef46b;this[_0x5d1af7(0x1d9)]=_0x1c6bce,this[_0x5d1af7(0x19e)]=_0x21e75f,this[_0x5d1af7(0x1e1)]={...hn,..._0x325684,'cssClasses':{'controlsButton':'','calculationContainer':_0x5d1af7(0x19f),..._0x325684[_0x5d1af7(0x1e2)]}},this[_0x5d1af7(0x200)]=new _0x362882(),this[_0x5d1af7(0x189)]=_0x256e24,this[_0x5d1af7(0x18b)]=_0x452ba3||null;}[_0x1ef46b(0x1e5)](_0x4ab61a){const _0x420dc8=_0x1ef46b;this[_0x420dc8(0x1d1)]&&(this[_0x420dc8(0x1d1)][_0x420dc8(0x1a7)](),this[_0x420dc8(0x1d1)]=null),this[_0x420dc8(0x1ab)]=_0x4ab61a,this[_0x420dc8(0x1d7)]();}get[_0x1ef46b(0x199)](){const _0x4ebddd=_0x1ef46b;return this[_0x4ebddd(0x1be)];}get[_0x1ef46b(0x1cf)](){const _0x3fd1c8=_0x1ef46b;return this[_0x3fd1c8(0x200)];}[_0x1ef46b(0x1ce)](){requestAnimationFrame(()=>{const _0x487d8b=_0x166f;this[_0x487d8b(0x1fb)]();});}[_0x1ef46b(0x1fd)](){const _0x4023fd=_0x1ef46b;this[_0x4023fd(0x1be)]&&this[_0x4023fd(0x175)]&&(this[_0x4023fd(0x198)](),this[_0x4023fd(0x1be)][_0x4023fd(0x19d)]=!0x0,this[_0x4023fd(0x175)][_0x4023fd(0x1df)](),this[_0x4023fd(0x175)][_0x4023fd(0x1ed)]({'target':this[_0x4023fd(0x1be)][_0x4023fd(0x181)],'limiter':document[_0x4023fd(0x1ac)](_0x4023fd(0x1a5))}));}[_0x1ef46b(0x1ae)](){const _0x22ba8c=_0x1ef46b;this[_0x22ba8c(0x1be)]&&this[_0x22ba8c(0x175)]&&(this[_0x22ba8c(0x1be)][_0x22ba8c(0x19d)]=!0x1,this[_0x22ba8c(0x175)][_0x22ba8c(0x18f)]());}[_0x1ef46b(0x179)](){const _0x5f4b10=_0x1ef46b;this[_0x5f4b10(0x200)][_0x5f4b10(0x179)](),this[_0x5f4b10(0x1ae)](),this[_0x5f4b10(0x1f7)](),this[_0x5f4b10(0x1be)]&&(this[_0x5f4b10(0x1be)][_0x5f4b10(0x17d)]=''),this[_0x5f4b10(0x175)]&&this[_0x5f4b10(0x175)][_0x5f4b10(0x196)][_0x5f4b10(0x179)]();}[_0x1ef46b(0x192)](){const _0x79f8ef=_0x1ef46b;this[_0x79f8ef(0x1d1)]&&(this[_0x79f8ef(0x1d1)][_0x79f8ef(0x1a7)](),this[_0x79f8ef(0x1d1)]=null),this[_0x79f8ef(0x1be)]&&(this[_0x79f8ef(0x1be)][_0x79f8ef(0x192)](),this[_0x79f8ef(0x1be)]=null),this[_0x79f8ef(0x175)]&&(this[_0x79f8ef(0x175)][_0x79f8ef(0x192)](),this[_0x79f8ef(0x175)]=null);}[_0x1ef46b(0x1fb)](){const _0x58f7b5=_0x1ef46b;if(!this[_0x58f7b5(0x1ab)])return;if(!this[_0x58f7b5(0x207)]())return void(this[_0x58f7b5(0x178)]=!0x0);this[_0x58f7b5(0x178)]=!0x1;const _0x1f7ed1=[...this[_0x58f7b5(0x19e)],...this[_0x58f7b5(0x200)]],_0x445b7e=this[_0x58f7b5(0x205)](),_0x2e0929=this[_0x58f7b5(0x1e7)](_0x445b7e,_0x1f7ed1),_0x23ea6e=_0x445b7e[_0x58f7b5(0x1ee)];_0x23ea6e&&this[_0x58f7b5(0x1c3)](_0x23ea6e),_0x445b7e[_0x58f7b5(0x1a3)](),this[_0x58f7b5(0x201)](_0x1f7ed1,_0x2e0929);}[_0x1ef46b(0x1bf)](){const _0xe50188=_0x1ef46b;this[_0xe50188(0x1be)]=this[_0xe50188(0x1da)](),this[_0xe50188(0x175)]=this[_0xe50188(0x183)](),this[_0xe50188(0x1be)][_0xe50188(0x185)](),this[_0xe50188(0x1ab)][_0xe50188(0x1b8)](this[_0xe50188(0x1be)][_0xe50188(0x181)]),this[_0xe50188(0x1be)]['on'](_0xe50188(0x1dc),()=>{const _0x574e93=_0xe50188;this[_0x574e93(0x1fe)]();}),_0x738804({'emitter':this[_0xe50188(0x175)],'contextElements':[this[_0xe50188(0x175)][_0xe50188(0x181)],this[_0xe50188(0x1be)][_0xe50188(0x181)]],'callback':()=>this[_0xe50188(0x1ae)](),'activator':()=>this[_0xe50188(0x1be)][_0xe50188(0x19d)]});}[_0x1ef46b(0x1da)](){const _0x4eb7c6=_0x1ef46b,_0x32c067=new _0x5c0b92(this[_0x4eb7c6(0x1d9)]);_0x32c067[_0x4eb7c6(0x177)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1d93c7=[this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x195)]];return this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x17f)]&&_0x1d93c7[_0x4eb7c6(0x1e9)](this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x17f)]),_0x32c067[_0x4eb7c6(0x1eb)]({'attributes':{'class':_0x1d93c7}}),_0x32c067;}[_0x1ef46b(0x183)](){const _0x71f1bd=_0x1ef46b,_0x31c694=new _0x1f07f7(this[_0x71f1bd(0x1d9)]);return _0x31c694[_0x71f1bd(0x1eb)]({'attributes':{'class':this[_0x71f1bd(0x1e1)][_0x71f1bd(0x1e2)][_0x71f1bd(0x1c6)]}}),this[_0x71f1bd(0x189)][_0x71f1bd(0x1f8)](_0x31c694),_0x31c694;}[_0x1ef46b(0x198)](){const _0x34126d=_0x1ef46b;if(this[_0x34126d(0x175)]&&(this[_0x34126d(0x175)][_0x34126d(0x196)][_0x34126d(0x179)](),this[_0x34126d(0x200)][_0x34126d(0x1db)]>0x0)){this[_0x34126d(0x200)][_0x34126d(0x193)](_0x431617=>{const _0x154319=_0x34126d;_0x431617[_0x154319(0x1f2)]();});const _0x10cf23=new _0x5307be(this[_0x34126d(0x1d9)]);_0x10cf23[_0x34126d(0x19c)]({'tag':_0x34126d(0x1a0),'attributes':{'class':this[_0x34126d(0x1e1)][_0x34126d(0x1e2)][_0x34126d(0x1c9)]},'children':this[_0x34126d(0x200)]}),this[_0x34126d(0x175)][_0x34126d(0x196)][_0x34126d(0x1f8)](_0x10cf23);}}[_0x1ef46b(0x1fe)](){const _0x1f24d7=_0x1ef46b;this[_0x1f24d7(0x1be)][_0x1f24d7(0x19d)]?this[_0x1f24d7(0x1ae)]():this[_0x1f24d7(0x1fd)]();}[_0x1ef46b(0x1f7)](){const _0x20426e=_0x1ef46b,_0x17f550=this[_0x20426e(0x200)][_0x20426e(0x1db)]>0x0;this[_0x20426e(0x1be)]?.[_0x20426e(0x181)]&&(this[_0x20426e(0x1be)][_0x20426e(0x181)][_0x20426e(0x1a9)][_0x20426e(0x1c5)]=_0x17f550?'':_0x20426e(0x1e8));}[_0x1ef46b(0x203)](){const _0x4ee974=_0x1ef46b;this[_0x4ee974(0x1be)]?.[_0x4ee974(0x19d)]&&this[_0x4ee974(0x175)]?.[_0x4ee974(0x1d2)]&&this[_0x4ee974(0x1be)][_0x4ee974(0x181)]&&this[_0x4ee974(0x175)][_0x4ee974(0x1ed)]({'target':this[_0x4ee974(0x1be)][_0x4ee974(0x181)],'limiter':document[_0x4ee974(0x1ac)](_0x4ee974(0x1a5))});}[_0x1ef46b(0x190)](_0xdc5dc){const _0x25040f=_0x1ef46b,_0x5c8271=this[_0x25040f(0x1ab)]?.[_0x25040f(0x182)][_0x25040f(0x1b3)]()||_0x25040f(0x1a0),_0x11fa3e=this[_0x25040f(0x1ab)]?.[_0x25040f(0x197)];if(_0x11fa3e){const _0x22852b=_0x11fa3e[0x0]||'',_0x42a22c=_0xdc5dc[_0x25040f(0x1ac)]('.'+_0x22852b),_0x17c1be=_0xdc5dc[_0x25040f(0x1ac)](_0x5c8271);return _0x42a22c||_0x17c1be||_0xdc5dc;}return _0xdc5dc[_0x25040f(0x1ac)](_0x5c8271)||_0xdc5dc;}[_0x1ef46b(0x1fa)](){const _0x8f9e1=_0x1ef46b,_0x467a56=this[_0x8f9e1(0x18b)]?.[_0x8f9e1(0x181)]||this[_0x8f9e1(0x1ab)];if(!_0x467a56)return an;const _0x2bcb98=window[_0x8f9e1(0x1d4)](_0x467a56)[_0x8f9e1(0x187)];if(_0x8f9e1(0x1a1)===_0x2bcb98||_0x8f9e1(0x18d)===_0x2bcb98||!_0x2bcb98){const _0x589747=_0x467a56[_0x8f9e1(0x1cd)];if(_0x589747){const _0x487233=window[_0x8f9e1(0x1d4)](_0x589747);return _0x8f9e1(0x1a1)!==_0x487233[_0x8f9e1(0x187)]?_0x487233[_0x8f9e1(0x187)]:an;}return an;}return _0x2bcb98;}[_0x1ef46b(0x1d8)](_0x31b782,_0x401356){const _0x44111f=_0x1ef46b;this[_0x44111f(0x1e1)][_0x44111f(0x1e2)][_0x44111f(0x184)]&&_0x31b782[_0x44111f(0x197)][_0x44111f(0x1f8)](this[_0x44111f(0x1e1)][_0x44111f(0x1e2)][_0x44111f(0x184)]),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x187)]=_0x401356,_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1b2)]=_0x44111f(0x1de),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1aa)]=_0x44111f(0x1f9),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x209)]=_0x44111f(0x1f9),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x19b)]='0',_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1e3)]=_0x44111f(0x1e8),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1f5)]='-1',_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x18e)]=_0x44111f(0x176),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1c5)]=_0x44111f(0x19a),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x204)]=_0x44111f(0x1c7);}[_0x1ef46b(0x1c3)](_0x49214f){const _0x35a9f8=_0x1ef46b;_0x49214f[_0x35a9f8(0x193)](({element:_0x1c25c3,originalDisplay:_0x6e2ad5,originalVisibility:_0xf58b90})=>{const _0x4d0fe2=_0x35a9f8;_0x1c25c3[_0x4d0fe2(0x1a9)][_0x4d0fe2(0x1c5)]=_0x6e2ad5,_0x1c25c3[_0x4d0fe2(0x1a9)][_0x4d0fe2(0x18e)]=_0xf58b90;});}[_0x1ef46b(0x1c0)](_0xd6b613){const _0x4b05fd=_0x1ef46b,_0x5a475e=[];let _0xdc9a2d=_0xd6b613;for(;_0xdc9a2d&&_0xdc9a2d!==document[_0x4b05fd(0x17e)];){const _0x1152a1=window[_0x4b05fd(0x1d4)](_0xdc9a2d);_0x4b05fd(0x1e8)!==_0x1152a1[_0x4b05fd(0x1c5)]&&_0x4b05fd(0x186)!==_0x1152a1[_0x4b05fd(0x18e)]||(_0x5a475e[_0x4b05fd(0x1e9)]({'element':_0xdc9a2d,'originalDisplay':_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x1c5)],'originalVisibility':_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x18e)]}),_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x1c5)]=_0x4b05fd(0x1b6),_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x18e)]=_0x4b05fd(0x1d5)),_0xdc9a2d=_0xdc9a2d[_0x4b05fd(0x1cd)];}return _0x5a475e;}[_0x1ef46b(0x1b9)](){const _0x174fcd=_0x1ef46b;let _0x1ce289,_0x47581c;return this[_0x174fcd(0x18b)]?.[_0x174fcd(0x181)]?(_0x1ce289=this[_0x174fcd(0x18b)][_0x174fcd(0x181)][_0x174fcd(0x1cc)](!0x0),_0x47581c=this[_0x174fcd(0x190)](_0x1ce289)):(_0x1ce289=document[_0x174fcd(0x191)](_0x174fcd(0x1a0)),_0x47581c=_0x1ce289),{'calculationContainer':_0x1ce289,'targetContainer':_0x47581c};}[_0x1ef46b(0x205)](){const _0xd55de6=_0x1ef46b,{calculationContainer:_0x468cfd,targetContainer:_0x19a540}=this[_0xd55de6(0x1b9)](),_0x523415=this[_0xd55de6(0x1fa)]();this[_0xd55de6(0x1d8)](_0x468cfd,_0x523415);const _0x11d63a=this[_0xd55de6(0x18b)]?.[_0xd55de6(0x181)]||this[_0xd55de6(0x1ab)],_0x2fc487=_0x11d63a?.[_0xd55de6(0x1cd)];_0x2fc487?_0x2fc487[_0xd55de6(0x1b8)](_0x468cfd):document[_0xd55de6(0x17e)][_0xd55de6(0x1b8)](_0x468cfd),_0x468cfd[_0xd55de6(0x1e4)]=_0x19a540;const _0x70128b=this[_0xd55de6(0x1c0)](_0x2fc487||null);return _0x468cfd[_0xd55de6(0x1cb)],_0x468cfd[_0xd55de6(0x1ee)]=_0x70128b,_0x468cfd;}[_0x1ef46b(0x1e7)](_0xe64465,_0x1c6100){const _0x1c20eb=_0x1ef46b,_0x3fad8b=_0xe64465[_0x1c20eb(0x1e4)]||_0xe64465,_0x34ae4f=[],{rowCount:_0x17cef3}=this[_0x1c20eb(0x1f1)](_0x3fad8b,_0x1c6100);if(_0x17cef3<=this[_0x1c20eb(0x1e1)][_0x1c20eb(0x1b7)])return _0x34ae4f;const _0x20b7e3=_0x1c6100[_0x1c20eb(0x1ca)]();for(;_0x20b7e3[_0x1c20eb(0x1db)]>0x0;){if(this[_0x1c20eb(0x1b4)](_0xe64465,_0x3fad8b,_0x20b7e3)){const _0x3c994b=_0x1c6100[_0x1c20eb(0x1ea)](_0x29732e=>!_0x20b7e3[_0x1c20eb(0x1fc)](_0x29732e));_0x34ae4f[_0x1c20eb(0x1e9)](..._0x3c994b);break;}if(!_0x20b7e3[_0x1c20eb(0x194)]())break;}return _0x34ae4f;}[_0x1ef46b(0x1f1)](_0x22201c,_0x499711){const _0x4236a0=_0x1ef46b;_0x22201c[_0x4236a0(0x1c2)]='',_0x499711[_0x4236a0(0x193)](_0x750742=>{const _0x3ca153=_0x4236a0;if(_0x750742[_0x3ca153(0x181)]){const _0x37c935=_0x750742[_0x3ca153(0x181)][_0x3ca153(0x1cc)](!0x0);_0x22201c[_0x3ca153(0x1b8)](_0x37c935);}}),_0x22201c[_0x4236a0(0x1cb)];const _0x3f08d6=_0x22201c[_0x4236a0(0x208)],_0x598f05=[];return Array[_0x4236a0(0x20a)](_0x3f08d6)[_0x4236a0(0x193)](_0x2f3bff=>{const _0x407d65=_0x4236a0,_0x3bbc5c=_0x2f3bff[_0x407d65(0x1b0)]()[_0x407d65(0x1aa)];_0x598f05[_0x407d65(0x1ad)](_0x18d122=>Math[_0x407d65(0x1bb)](_0x18d122-_0x3bbc5c)<this[_0x407d65(0x1e1)][_0x407d65(0x206)])||_0x598f05[_0x407d65(0x1e9)](_0x3bbc5c);}),{'rowCount':_0x598f05[_0x4236a0(0x1db)]};}[_0x1ef46b(0x18c)](){const _0x52892e=_0x1ef46b,_0x1c4b91=document[_0x52892e(0x191)](_0x52892e(0x1c8));return _0x1c4b91[_0x52892e(0x17b)]=this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x195)],this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x17f)]&&_0x1c4b91[_0x52892e(0x197)][_0x52892e(0x1f8)](this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x17f)]),_0x1c4b91[_0x52892e(0x1f0)]=_0x52892e(0x1e0),_0x1c4b91;}[_0x1ef46b(0x1b4)](_0x348a65,_0x377b78,_0x5bf918){const _0x35f3d6=_0x1ef46b;this[_0x35f3d6(0x1f1)](_0x377b78,_0x5bf918);const _0x2afd4a=this[_0x35f3d6(0x18c)]();_0x348a65[_0x35f3d6(0x1b8)](_0x2afd4a),_0x348a65[_0x35f3d6(0x1cb)];const _0x5a92fe=[..._0x377b78[_0x35f3d6(0x208)],_0x2afd4a],_0x2573dc=[];_0x5a92fe[_0x35f3d6(0x193)](_0x13d7e0=>{const _0x50a7bf=_0x35f3d6,_0x3655ca=_0x13d7e0[_0x50a7bf(0x1b0)]()[_0x50a7bf(0x1aa)];_0x2573dc[_0x50a7bf(0x1ad)](_0x265a38=>Math[_0x50a7bf(0x1bb)](_0x265a38-_0x3655ca)<this[_0x50a7bf(0x1e1)][_0x50a7bf(0x206)])||_0x2573dc[_0x50a7bf(0x1e9)](_0x3655ca);});const _0x397b4e=_0x2573dc[_0x35f3d6(0x1db)];return _0x2afd4a[_0x35f3d6(0x1a3)](),_0x397b4e<=this[_0x35f3d6(0x1e1)][_0x35f3d6(0x1b7)];}[_0x1ef46b(0x188)](_0xa60a16,_0x5e338a){const _0x58a621=_0x1ef46b;this[_0x58a621(0x19e)][_0x58a621(0x179)](),this[_0x58a621(0x200)][_0x58a621(0x179)](),_0xa60a16[_0x58a621(0x193)](_0x224cd1=>{const _0x5e9d5c=_0x58a621;_0x5e338a[_0x5e9d5c(0x1fc)](_0x224cd1)?this[_0x5e9d5c(0x200)][_0x5e9d5c(0x1f8)](_0x224cd1):this[_0x5e9d5c(0x19e)][_0x5e9d5c(0x1f8)](_0x224cd1);});}[_0x1ef46b(0x1c1)](_0x3735b6){const _0x42bd4c=_0x1ef46b;if(_0x3735b6>0x0&&!this[_0x42bd4c(0x1be)]&&this[_0x42bd4c(0x1bf)](),_0x3735b6>0x0&&this[_0x42bd4c(0x1be)]){const _0x15dd5f=''+this[_0x42bd4c(0x1e1)][_0x42bd4c(0x1ec)]+(_0x3735b6<0x63?_0x3735b6:'99');this[_0x42bd4c(0x1be)][_0x42bd4c(0x17d)]=_0x15dd5f;}this[_0x42bd4c(0x198)](),this[_0x42bd4c(0x1f7)](),this[_0x42bd4c(0x203)]();}[_0x1ef46b(0x201)](_0x54cbbc,_0x2a2bc6){const _0x9c97e=_0x1ef46b;this[_0x9c97e(0x188)](_0x54cbbc,_0x2a2bc6),this[_0x9c97e(0x1c1)](_0x2a2bc6[_0x9c97e(0x1db)]);}[_0x1ef46b(0x1d7)](){const _0x36c2e6=_0x1ef46b;this[_0x36c2e6(0x1ab)]&&_0x36c2e6(0x1c4)!=typeof IntersectionObserver&&(this[_0x36c2e6(0x1d1)]=new IntersectionObserver(_0x40e9be=>{const _0x4dc04f=_0x36c2e6;_0x40e9be[0x0][_0x4dc04f(0x18a)]&&this[_0x4dc04f(0x178)]&&requestAnimationFrame(()=>{const _0x3379c3=_0x4dc04f;this[_0x3379c3(0x1fb)]();});},{'threshold':0.01,'rootMargin':_0x36c2e6(0x1bc)}),this[_0x36c2e6(0x1d1)][_0x36c2e6(0x1b5)](this[_0x36c2e6(0x1ab)]));}[_0x1ef46b(0x207)](){const _0x2538ca=_0x1ef46b;if(!this[_0x2538ca(0x1ab)])return!0x1;if(!this[_0x2538ca(0x1ab)][_0x2538ca(0x1f6)])return!0x1;const _0x2726c8=this[_0x2538ca(0x1ab)][_0x2538ca(0x1b0)]();if(0x0===_0x2726c8[_0x2538ca(0x187)]||0x0===_0x2726c8[_0x2538ca(0x1f3)])return!0x1;const _0x1cece6=window[_0x2538ca(0x1a6)]||document[_0x2538ca(0x1bd)][_0x2538ca(0x17c)],_0x5e1121=window[_0x2538ca(0x1d3)]||document[_0x2538ca(0x1bd)][_0x2538ca(0x1f4)],_0x5d127e=0xc8;return _0x2726c8[_0x2538ca(0x1d6)]>=-0xc8&&_0x2726c8[_0x2538ca(0x1aa)]<=_0x1cece6+_0x5d127e&&_0x2726c8[_0x2538ca(0x17a)]>=-0xc8&&_0x2726c8[_0x2538ca(0x209)]<=_0x5e1121+_0x5d127e;}}
|
|
23
|
+
const _0x389fab=_0x1337;(function(_0xd6296d,_0x2de577){const _0x26bb60=_0x1337,_0x3bef1c=_0xd6296d();while(!![]){try{const _0x1ab1f5=-parseInt(_0x26bb60(0x1e3))/0x1+parseInt(_0x26bb60(0x222))/0x2*(parseInt(_0x26bb60(0x21e))/0x3)+parseInt(_0x26bb60(0x1d4))/0x4+parseInt(_0x26bb60(0x1b7))/0x5+parseInt(_0x26bb60(0x1cc))/0x6+parseInt(_0x26bb60(0x211))/0x7+-parseInt(_0x26bb60(0x216))/0x8*(parseInt(_0x26bb60(0x204))/0x9);if(_0x1ab1f5===_0x2de577)break;else _0x3bef1c['push'](_0x3bef1c['shift']());}catch(_0x3990d4){_0x3bef1c['push'](_0x3bef1c['shift']());}}}(_0x3b8d,0x7aa89));import{View as _0x2acbeb,BalloonPanelView as _0x591ebd,ButtonView as _0x4d3bf4,clickOutsideHandler as _0x232eaf}from'ckeditor5/src/ui.js';import{Collection as _0x1c4f28}from'ckeditor5/src/utils.js';function _0x1337(_0x4d9e13,_0x1699c9){const _0x3b8d36=_0x3b8d();return _0x1337=function(_0x133753,_0x37e013){_0x133753=_0x133753-0x1b6;let _0xa249d9=_0x3b8d36[_0x133753];return _0xa249d9;},_0x1337(_0x4d9e13,_0x1699c9);}function _0x3b8d(){const _0x2fc850=['_intersectionObserver','2522768ODnOeC','undefined','some','set','offsetWidth','disableAnimationOnEnter','push','hidden','div','isVisible','includes','_parentView','position','50px','content','968011aSemia','showBalloonPanel','height','overflowChips','_createCalculationContainer','_handleShowMoreButtonClick','visibility','clientHeight','boxSizing','pin','isOn','maxVisibleRows','hide','.ck-ai-chat','createElement','right','_repinBalloonPanel','_config','none','_testButtonFit','_makeAncestorsVisible','isConnected','element','slice','innerWidth','zIndex','add','_overflowChips','block','_ancestorsToRestore','from','display','_isContainerVisible','924075CMZDuj','button','appendChild','_createContainerElements','_applyOverflowResults','innerHTML','+\x201','ck-calculation-container','className','textContent','filter','calculationContainer','_bodyCollection','2920393yYEgnA','_pendingCalculation','toLowerCase','cssClasses','_createShowMoreButton','80WfuYwk','parentElement','forEach','show','controlsButton','tagName','_setupVisibilityObserver','execute','18syfUrP','_distributeChips','render','body','302778AJfkDx','_visibleChips','hideBalloonPanel','remove','showMoreButton','_updateOverflowUI','_findTargetContainer','extendTemplate','visible\x20!important','getComputedStyle','_applyCalculationStyles','children','_createShowMoreButtonView','_calculateContainerWidth','style','pop','rowDetectionTolerance','auto','isIntersecting','clientWidth','clear','top','opacity','documentElement','_calculateOverflowInContainer','cloneNode','showMoreBalloon','_containerElement','bottom','length','left','_updateBalloonContent','-9999px','block\x20!important','width','pointerEvents','_updateShowMoreButtonVisibility','visible','overflowContainer','setTemplate','1674155DbzZRN','label','classList','setContainerElement','querySelector','_showMoreButtonView','_createMockButton','_locale','getBoundingClientRect','_checkAndHandleOverflow','_showMoreBalloonPanelView','_renderChipsAndCountRows','300px','0px','reorganizeChips','absolute','destroy','innerHeight','border-box','abs','_targetContainer','1236684buZyrq','showMoreLabelPrefix','disconnect','_createShowMoreBalloonPanelView','observe','_restoreAncestorVisibility','showMoreButtonView'];_0x3b8d=function(){return _0x2fc850;};return _0x3b8d();}const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x389fab(0x1c3);export class AIChatChipsOverflowManager{[_0x389fab(0x1be)];[_0x389fab(0x1f4)];[_0x389fab(0x223)];[_0x389fab(0x1fe)];[_0x389fab(0x1bc)]=null;[_0x389fab(0x1c1)]=null;[_0x389fab(0x23d)]=null;[_0x389fab(0x210)];[_0x389fab(0x1df)]=null;[_0x389fab(0x1d3)]=null;[_0x389fab(0x212)]=!0x1;constructor(_0x118a8f,_0x23099a,_0x1442e6,_0x4dbbfb,_0x5c36cf){const _0x297b8e=_0x389fab;this[_0x297b8e(0x1be)]=_0x118a8f,this[_0x297b8e(0x223)]=_0x23099a,this[_0x297b8e(0x1f4)]={...wn,..._0x1442e6,'cssClasses':{'controlsButton':'','calculationContainer':_0x297b8e(0x20b),..._0x1442e6[_0x297b8e(0x214)]}},this[_0x297b8e(0x1fe)]=new _0x1c4f28(),this[_0x297b8e(0x210)]=_0x4dbbfb,this[_0x297b8e(0x1df)]=_0x5c36cf||null;}[_0x389fab(0x1ba)](_0x3556d5){const _0x24006f=_0x389fab;this[_0x24006f(0x1d3)]&&(this[_0x24006f(0x1d3)][_0x24006f(0x1ce)](),this[_0x24006f(0x1d3)]=null),this[_0x24006f(0x23d)]=_0x3556d5,this[_0x24006f(0x21c)]();}get[_0x389fab(0x1d2)](){const _0x57549a=_0x389fab;return this[_0x57549a(0x1bc)];}get[_0x389fab(0x1e6)](){const _0x1ca702=_0x389fab;return this[_0x1ca702(0x1fe)];}[_0x389fab(0x1c5)](){requestAnimationFrame(()=>{const _0x4b06cb=_0x1337;this[_0x4b06cb(0x1c0)]();});}[_0x389fab(0x1e4)](){const _0x56a55c=_0x389fab;this[_0x56a55c(0x1bc)]&&this[_0x56a55c(0x1c1)]&&(this[_0x56a55c(0x241)](),this[_0x56a55c(0x1bc)][_0x56a55c(0x1ed)]=!0x0,this[_0x56a55c(0x1c1)][_0x56a55c(0x219)](),this[_0x56a55c(0x1c1)][_0x56a55c(0x1ec)]({'target':this[_0x56a55c(0x1bc)][_0x56a55c(0x1f9)],'limiter':document[_0x56a55c(0x1bb)](_0x56a55c(0x1f0))}));}[_0x389fab(0x224)](){const _0x5fa8fa=_0x389fab;this[_0x5fa8fa(0x1bc)]&&this[_0x5fa8fa(0x1c1)]&&(this[_0x5fa8fa(0x1bc)][_0x5fa8fa(0x1ed)]=!0x1,this[_0x5fa8fa(0x1c1)][_0x5fa8fa(0x1ef)]());}[_0x389fab(0x236)](){const _0x5c7f1f=_0x389fab;this[_0x5c7f1f(0x1fe)][_0x5c7f1f(0x236)](),this[_0x5c7f1f(0x224)](),this[_0x5c7f1f(0x246)](),this[_0x5c7f1f(0x1bc)]&&(this[_0x5c7f1f(0x1bc)][_0x5c7f1f(0x1b8)]=''),this[_0x5c7f1f(0x1c1)]&&this[_0x5c7f1f(0x1c1)][_0x5c7f1f(0x1e2)][_0x5c7f1f(0x236)]();}[_0x389fab(0x1c7)](){const _0x17f1d6=_0x389fab;this[_0x17f1d6(0x1d3)]&&(this[_0x17f1d6(0x1d3)][_0x17f1d6(0x1ce)](),this[_0x17f1d6(0x1d3)]=null),this[_0x17f1d6(0x1bc)]&&(this[_0x17f1d6(0x1bc)][_0x17f1d6(0x1c7)](),this[_0x17f1d6(0x1bc)]=null),this[_0x17f1d6(0x1c1)]&&(this[_0x17f1d6(0x1c1)][_0x17f1d6(0x1c7)](),this[_0x17f1d6(0x1c1)]=null);}[_0x389fab(0x1c0)](){const _0x30501e=_0x389fab;if(!this[_0x30501e(0x23d)])return;if(!this[_0x30501e(0x203)]())return void(this[_0x30501e(0x212)]=!0x0);this[_0x30501e(0x212)]=!0x1;const _0x3156b=[...this[_0x30501e(0x223)],...this[_0x30501e(0x1fe)]],_0x4b076c=this[_0x30501e(0x1e7)](),_0x5db99a=this[_0x30501e(0x23a)](_0x4b076c,_0x3156b),_0x55820e=_0x4b076c[_0x30501e(0x200)];_0x55820e&&this[_0x30501e(0x1d1)](_0x55820e),_0x4b076c[_0x30501e(0x225)](),this[_0x30501e(0x208)](_0x3156b,_0x5db99a);}[_0x389fab(0x215)](){const _0x39b283=_0x389fab;this[_0x39b283(0x1bc)]=this[_0x39b283(0x22e)](),this[_0x39b283(0x1c1)]=this[_0x39b283(0x1cf)](),this[_0x39b283(0x1bc)][_0x39b283(0x220)](),this[_0x39b283(0x23d)][_0x39b283(0x206)](this[_0x39b283(0x1bc)][_0x39b283(0x1f9)]),this[_0x39b283(0x1bc)]['on'](_0x39b283(0x21d),()=>{const _0x3a6d96=_0x39b283;this[_0x3a6d96(0x1e8)]();}),_0x232eaf({'emitter':this[_0x39b283(0x1c1)],'contextElements':[this[_0x39b283(0x1c1)][_0x39b283(0x1f9)],this[_0x39b283(0x1bc)][_0x39b283(0x1f9)]],'callback':()=>this[_0x39b283(0x224)](),'activator':()=>this[_0x39b283(0x1bc)][_0x39b283(0x1ed)]});}[_0x389fab(0x22e)](){const _0x1515dc=_0x389fab,_0x2b2b4a=new _0x4d3bf4(this[_0x1515dc(0x1be)]);_0x2b2b4a[_0x1515dc(0x1d7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x45866d=[this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x226)]];return this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x21a)]&&_0x45866d[_0x1515dc(0x1da)](this[_0x1515dc(0x1f4)][_0x1515dc(0x214)][_0x1515dc(0x21a)]),_0x2b2b4a[_0x1515dc(0x229)]({'attributes':{'class':_0x45866d}}),_0x2b2b4a;}[_0x389fab(0x1cf)](){const _0x44f605=_0x389fab,_0x579b1f=new _0x591ebd(this[_0x44f605(0x1be)]);return _0x579b1f[_0x44f605(0x229)]({'attributes':{'class':this[_0x44f605(0x1f4)][_0x44f605(0x214)][_0x44f605(0x23c)]}}),this[_0x44f605(0x210)][_0x44f605(0x1fd)](_0x579b1f),_0x579b1f;}[_0x389fab(0x241)](){const _0x2435c3=_0x389fab;if(this[_0x2435c3(0x1c1)]&&(this[_0x2435c3(0x1c1)][_0x2435c3(0x1e2)][_0x2435c3(0x236)](),this[_0x2435c3(0x1fe)][_0x2435c3(0x23f)]>0x0)){this[_0x2435c3(0x1fe)][_0x2435c3(0x218)](_0xc5e78a=>{const _0x58b486=_0x2435c3;_0xc5e78a[_0x58b486(0x1d9)]();});const _0xf09477=new _0x2acbeb(this[_0x2435c3(0x1be)]);_0xf09477[_0x2435c3(0x1b6)]({'tag':_0x2435c3(0x1dc),'attributes':{'class':this[_0x2435c3(0x1f4)][_0x2435c3(0x214)][_0x2435c3(0x248)]},'children':this[_0x2435c3(0x1fe)]}),this[_0x2435c3(0x1c1)][_0x2435c3(0x1e2)][_0x2435c3(0x1fd)](_0xf09477);}}[_0x389fab(0x1e8)](){const _0x337072=_0x389fab;this[_0x337072(0x1bc)][_0x337072(0x1ed)]?this[_0x337072(0x224)]():this[_0x337072(0x1e4)]();}[_0x389fab(0x246)](){const _0x20e237=_0x389fab,_0x49d7c1=this[_0x20e237(0x1fe)][_0x20e237(0x23f)]>0x0;this[_0x20e237(0x1bc)]?.[_0x20e237(0x1f9)]&&(this[_0x20e237(0x1bc)][_0x20e237(0x1f9)][_0x20e237(0x230)][_0x20e237(0x202)]=_0x49d7c1?'':_0x20e237(0x1f5));}[_0x389fab(0x1f3)](){const _0x2deb09=_0x389fab;this[_0x2deb09(0x1bc)]?.[_0x2deb09(0x1ed)]&&this[_0x2deb09(0x1c1)]?.[_0x2deb09(0x1dd)]&&this[_0x2deb09(0x1bc)][_0x2deb09(0x1f9)]&&this[_0x2deb09(0x1c1)][_0x2deb09(0x1ec)]({'target':this[_0x2deb09(0x1bc)][_0x2deb09(0x1f9)],'limiter':document[_0x2deb09(0x1bb)](_0x2deb09(0x1f0))});}[_0x389fab(0x228)](_0xc74061){const _0x12bf2e=_0x389fab,_0x55bf63=this[_0x12bf2e(0x23d)]?.[_0x12bf2e(0x21b)][_0x12bf2e(0x213)]()||_0x12bf2e(0x1dc),_0x3ece63=this[_0x12bf2e(0x23d)]?.[_0x12bf2e(0x1b9)];if(_0x3ece63){const _0x51a6a3=_0x3ece63[0x0]||'',_0x77dac1=_0xc74061[_0x12bf2e(0x1bb)]('.'+_0x51a6a3),_0x51c8b3=_0xc74061[_0x12bf2e(0x1bb)](_0x55bf63);return _0x77dac1||_0x51c8b3||_0xc74061;}return _0xc74061[_0x12bf2e(0x1bb)](_0x55bf63)||_0xc74061;}[_0x389fab(0x22f)](){const _0x2bb945=_0x389fab,_0x5dec18=this[_0x2bb945(0x1df)]?.[_0x2bb945(0x1f9)]||this[_0x2bb945(0x23d)];if(!_0x5dec18)return dn;const _0x5f388b=window[_0x2bb945(0x22b)](_0x5dec18)[_0x2bb945(0x244)];if(_0x2bb945(0x233)===_0x5f388b||_0x2bb945(0x1c4)===_0x5f388b||!_0x5f388b){const _0x38d509=_0x5dec18[_0x2bb945(0x217)];if(_0x38d509){const _0x4939f6=window[_0x2bb945(0x22b)](_0x38d509);return _0x2bb945(0x233)!==_0x4939f6[_0x2bb945(0x244)]?_0x4939f6[_0x2bb945(0x244)]:dn;}return dn;}return _0x5f388b;}[_0x389fab(0x22c)](_0x48354d,_0x455884){const _0xda83eb=_0x389fab;this[_0xda83eb(0x1f4)][_0xda83eb(0x214)][_0xda83eb(0x20f)]&&_0x48354d[_0xda83eb(0x1b9)][_0xda83eb(0x1fd)](this[_0xda83eb(0x1f4)][_0xda83eb(0x214)][_0xda83eb(0x20f)]),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x244)]=_0x455884,_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1e0)]=_0xda83eb(0x1c6),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x237)]=_0xda83eb(0x242),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x240)]=_0xda83eb(0x242),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x238)]='0',_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x245)]=_0xda83eb(0x1f5),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1fc)]='-1',_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1e9)]=_0xda83eb(0x22a),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x202)]=_0xda83eb(0x243),_0x48354d[_0xda83eb(0x230)][_0xda83eb(0x1eb)]=_0xda83eb(0x1c9);}[_0x389fab(0x1d1)](_0x4de33c){const _0x19c095=_0x389fab;_0x4de33c[_0x19c095(0x218)](({element:_0x5c82c2,originalDisplay:_0x524f7e,originalVisibility:_0x312e8b})=>{const _0x1ba168=_0x19c095;_0x5c82c2[_0x1ba168(0x230)][_0x1ba168(0x202)]=_0x524f7e,_0x5c82c2[_0x1ba168(0x230)][_0x1ba168(0x1e9)]=_0x312e8b;});}[_0x389fab(0x1f7)](_0x5b5611){const _0x165901=_0x389fab,_0x1df46a=[];let _0x3cb3a3=_0x5b5611;for(;_0x3cb3a3&&_0x3cb3a3!==document[_0x165901(0x221)];){const _0x23a952=window[_0x165901(0x22b)](_0x3cb3a3);_0x165901(0x1f5)!==_0x23a952[_0x165901(0x202)]&&_0x165901(0x1db)!==_0x23a952[_0x165901(0x1e9)]||(_0x1df46a[_0x165901(0x1da)]({'element':_0x3cb3a3,'originalDisplay':_0x3cb3a3[_0x165901(0x230)][_0x165901(0x202)],'originalVisibility':_0x3cb3a3[_0x165901(0x230)][_0x165901(0x1e9)]}),_0x3cb3a3[_0x165901(0x230)][_0x165901(0x202)]=_0x165901(0x1ff),_0x3cb3a3[_0x165901(0x230)][_0x165901(0x1e9)]=_0x165901(0x247)),_0x3cb3a3=_0x3cb3a3[_0x165901(0x217)];}return _0x1df46a;}[_0x389fab(0x207)](){const _0x2c8fcb=_0x389fab;let _0x66df8,_0x1e1b38;return this[_0x2c8fcb(0x1df)]?.[_0x2c8fcb(0x1f9)]?(_0x66df8=this[_0x2c8fcb(0x1df)][_0x2c8fcb(0x1f9)][_0x2c8fcb(0x23b)](!0x0),_0x1e1b38=this[_0x2c8fcb(0x228)](_0x66df8)):(_0x66df8=document[_0x2c8fcb(0x1f1)](_0x2c8fcb(0x1dc)),_0x1e1b38=_0x66df8),{'calculationContainer':_0x66df8,'targetContainer':_0x1e1b38};}[_0x389fab(0x1e7)](){const _0x4acba4=_0x389fab,{calculationContainer:_0x22815f,targetContainer:_0x43659b}=this[_0x4acba4(0x207)](),_0xe78a27=this[_0x4acba4(0x22f)]();this[_0x4acba4(0x22c)](_0x22815f,_0xe78a27);const _0x2f682d=this[_0x4acba4(0x1df)]?.[_0x4acba4(0x1f9)]||this[_0x4acba4(0x23d)],_0x482b9c=_0x2f682d?.[_0x4acba4(0x217)];_0x482b9c?_0x482b9c[_0x4acba4(0x206)](_0x22815f):document[_0x4acba4(0x221)][_0x4acba4(0x206)](_0x22815f),_0x22815f[_0x4acba4(0x1cb)]=_0x43659b;const _0x589b96=this[_0x4acba4(0x1f7)](_0x482b9c||null);return _0x22815f[_0x4acba4(0x1d8)],_0x22815f[_0x4acba4(0x200)]=_0x589b96,_0x22815f;}[_0x389fab(0x23a)](_0x4a1103,_0x44de4d){const _0x2a74a6=_0x389fab,_0x390748=_0x4a1103[_0x2a74a6(0x1cb)]||_0x4a1103,_0x4f6c55=[],{rowCount:_0x38e0d1}=this[_0x2a74a6(0x1c2)](_0x390748,_0x44de4d);if(_0x38e0d1<=this[_0x2a74a6(0x1f4)][_0x2a74a6(0x1ee)])return _0x4f6c55;const _0x47718b=_0x44de4d[_0x2a74a6(0x1fa)]();for(;_0x47718b[_0x2a74a6(0x23f)]>0x0;){if(this[_0x2a74a6(0x1f6)](_0x4a1103,_0x390748,_0x47718b)){const _0x3c6708=_0x44de4d[_0x2a74a6(0x20e)](_0x1f2f29=>!_0x47718b[_0x2a74a6(0x1de)](_0x1f2f29));_0x4f6c55[_0x2a74a6(0x1da)](..._0x3c6708);break;}if(!_0x47718b[_0x2a74a6(0x231)]())break;}return _0x4f6c55;}[_0x389fab(0x1c2)](_0x4bb148,_0x27f039){const _0x47ee77=_0x389fab;_0x4bb148[_0x47ee77(0x209)]='',_0x27f039[_0x47ee77(0x218)](_0x4de4e7=>{const _0x32122f=_0x47ee77;if(_0x4de4e7[_0x32122f(0x1f9)]){const _0x2f43f3=_0x4de4e7[_0x32122f(0x1f9)][_0x32122f(0x23b)](!0x0);_0x4bb148[_0x32122f(0x206)](_0x2f43f3);}}),_0x4bb148[_0x47ee77(0x1d8)];const _0x59c645=_0x4bb148[_0x47ee77(0x22d)],_0x5eae0c=[];return Array[_0x47ee77(0x201)](_0x59c645)[_0x47ee77(0x218)](_0x4ed46a=>{const _0x28e691=_0x47ee77,_0x4dbe98=_0x4ed46a[_0x28e691(0x1bf)]()[_0x28e691(0x237)];_0x5eae0c[_0x28e691(0x1d6)](_0x34aeee=>Math[_0x28e691(0x1ca)](_0x34aeee-_0x4dbe98)<this[_0x28e691(0x1f4)][_0x28e691(0x232)])||_0x5eae0c[_0x28e691(0x1da)](_0x4dbe98);}),{'rowCount':_0x5eae0c[_0x47ee77(0x23f)]};}[_0x389fab(0x1bd)](){const _0x4d9e5f=_0x389fab,_0x370f82=document[_0x4d9e5f(0x1f1)](_0x4d9e5f(0x205));return _0x370f82[_0x4d9e5f(0x20c)]=this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x226)],this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x21a)]&&_0x370f82[_0x4d9e5f(0x1b9)][_0x4d9e5f(0x1fd)](this[_0x4d9e5f(0x1f4)][_0x4d9e5f(0x214)][_0x4d9e5f(0x21a)]),_0x370f82[_0x4d9e5f(0x20d)]=_0x4d9e5f(0x20a),_0x370f82;}[_0x389fab(0x1f6)](_0x19f255,_0x295a35,_0x43db48){const _0x338d01=_0x389fab;this[_0x338d01(0x1c2)](_0x295a35,_0x43db48);const _0x4a6bd8=this[_0x338d01(0x1bd)]();_0x19f255[_0x338d01(0x206)](_0x4a6bd8),_0x19f255[_0x338d01(0x1d8)];const _0x8808d5=[..._0x295a35[_0x338d01(0x22d)],_0x4a6bd8],_0x2abd5e=[];_0x8808d5[_0x338d01(0x218)](_0xf3968a=>{const _0x2b1a85=_0x338d01,_0x56b696=_0xf3968a[_0x2b1a85(0x1bf)]()[_0x2b1a85(0x237)];_0x2abd5e[_0x2b1a85(0x1d6)](_0x47d0b1=>Math[_0x2b1a85(0x1ca)](_0x47d0b1-_0x56b696)<this[_0x2b1a85(0x1f4)][_0x2b1a85(0x232)])||_0x2abd5e[_0x2b1a85(0x1da)](_0x56b696);});const _0x579211=_0x2abd5e[_0x338d01(0x23f)];return _0x4a6bd8[_0x338d01(0x225)](),_0x579211<=this[_0x338d01(0x1f4)][_0x338d01(0x1ee)];}[_0x389fab(0x21f)](_0x5881ba,_0x62dafa){const _0x301f05=_0x389fab;this[_0x301f05(0x223)][_0x301f05(0x236)](),this[_0x301f05(0x1fe)][_0x301f05(0x236)](),_0x5881ba[_0x301f05(0x218)](_0x323c4f=>{const _0x2582e4=_0x301f05;_0x62dafa[_0x2582e4(0x1de)](_0x323c4f)?this[_0x2582e4(0x1fe)][_0x2582e4(0x1fd)](_0x323c4f):this[_0x2582e4(0x223)][_0x2582e4(0x1fd)](_0x323c4f);});}[_0x389fab(0x227)](_0x547dd1){const _0xd54837=_0x389fab;if(_0x547dd1>0x0&&!this[_0xd54837(0x1bc)]&&this[_0xd54837(0x215)](),_0x547dd1>0x0&&this[_0xd54837(0x1bc)]){const _0x1d4de5=''+this[_0xd54837(0x1f4)][_0xd54837(0x1cd)]+(_0x547dd1<0x63?_0x547dd1:'99');this[_0xd54837(0x1bc)][_0xd54837(0x1b8)]=_0x1d4de5;}this[_0xd54837(0x241)](),this[_0xd54837(0x246)](),this[_0xd54837(0x1f3)]();}[_0x389fab(0x208)](_0x2a54b5,_0x591c9c){const _0xf7f37b=_0x389fab;this[_0xf7f37b(0x21f)](_0x2a54b5,_0x591c9c),this[_0xf7f37b(0x227)](_0x591c9c[_0xf7f37b(0x23f)]);}[_0x389fab(0x21c)](){const _0x232572=_0x389fab;this[_0x232572(0x23d)]&&_0x232572(0x1d5)!=typeof IntersectionObserver&&(this[_0x232572(0x1d3)]=new IntersectionObserver(_0x2fa50f=>{const _0xcd617=_0x232572;_0x2fa50f[0x0][_0xcd617(0x234)]&&this[_0xcd617(0x212)]&&requestAnimationFrame(()=>{const _0x540150=_0xcd617;this[_0x540150(0x1c0)]();});},{'threshold':0.01,'rootMargin':_0x232572(0x1e1)}),this[_0x232572(0x1d3)][_0x232572(0x1d0)](this[_0x232572(0x23d)]));}[_0x389fab(0x203)](){const _0xe3d404=_0x389fab;if(!this[_0xe3d404(0x23d)])return!0x1;if(!this[_0xe3d404(0x23d)][_0xe3d404(0x1f8)])return!0x1;const _0x3838f3=this[_0xe3d404(0x23d)][_0xe3d404(0x1bf)]();if(0x0===_0x3838f3[_0xe3d404(0x244)]||0x0===_0x3838f3[_0xe3d404(0x1e5)])return!0x1;const _0xb96b07=window[_0xe3d404(0x1c8)]||document[_0xe3d404(0x239)][_0xe3d404(0x1ea)],_0x23e35e=window[_0xe3d404(0x1fb)]||document[_0xe3d404(0x239)][_0xe3d404(0x235)],_0x44a622=0xc8;return _0x3838f3[_0xe3d404(0x23e)]>=-0xc8&&_0x3838f3[_0xe3d404(0x237)]<=_0xb96b07+_0x44a622&&_0x3838f3[_0xe3d404(0x1f2)]>=-0xc8&&_0x3838f3[_0xe3d404(0x240)]<=_0x23e35e+_0x44a622;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4d18(_0x147616,_0x278eb8){const _0x4d6bc4=_0x4d6b();return _0x4d18=function(_0x4d184b,_0x3b5dc6){_0x4d184b=_0x4d184b-0x140;let _0x10c73a=_0x4d6bc4[_0x4d184b];return _0x10c73a;},_0x4d18(_0x147616,_0x278eb8);}const _0x519279=_0x4d18;(function(_0x3c37f8,_0x3b63fb){const _0xfed1d=_0x4d18,_0x463f40=_0x3c37f8();while(!![]){try{const _0x176147=parseInt(_0xfed1d(0x144))/0x1+-parseInt(_0xfed1d(0x159))/0x2+-parseInt(_0xfed1d(0x175))/0x3+-parseInt(_0xfed1d(0x155))/0x4*(-parseInt(_0xfed1d(0x15b))/0x5)+-parseInt(_0xfed1d(0x179))/0x6+-parseInt(_0xfed1d(0x150))/0x7*(parseInt(_0xfed1d(0x16d))/0x8)+parseInt(_0xfed1d(0x154))/0x9;if(_0x176147===_0x3b63fb)break;else _0x463f40['push'](_0x463f40['shift']());}catch(_0x241684){_0x463f40['push'](_0x463f40['shift']());}}}(_0x4d6b,0xb75c1));import{ButtonView as _0x70aff3,IconView as _0x23b33a}from'ckeditor5/src/ui.js';import{IconClose as _0x2b92b1,IconDocument as _0x38203e,IconFileUpload as _0x4bc4ab,IconLink as _0x25c0a5,IconSelection as _0x1d5304}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2b357f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x1034b5}from'../../../aicore/ui/aispinner.js';function _0x4d6b(){const _0x1d9317=['disableAnimationOnEnter','remove','_createTemplateAttributes','tooltip','889924hEIbhG','_createLabelElement','addEventListener','div','25064037SOjUYx','4ZZzJDf','uiId','bindTemplate','isLoading','2360150ASqUsz','itemType','781710kksItj','content','locale','removeEventListener','_initializeProperties','animationend','setTemplate','add','type','bind','ck-ai-chat-context-chip_document','ck-ai-chat-context-chip__type-icon','_createTemplateChildren','classList','span','set','_createRemoveButton','readonly','24RgWOLD','execute','ck-ai-chat-context-controls__chip-tooltip','isVisible','document','small','ck-ai-chat-context-chip','label','2353431sywjtt','removeContextItemChip','_createLoaderIcon','_setupTemplate','3874224zbbvAY','slice','webkitAnimationEnd','_setupRemoveButtonEvent','ck-ai-chat-context-chip_wide','render','lastIndexOf','extendTemplate','ck-hidden','element','_handleAnimationEndOnce','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','801458BsmKWY','length','_isAnimationOnEnterEnabled','ck-ai-chat-context-chip_new-chip','selection','_createIconView','fire','ck-ai-chat-context-chip__label'];_0x4d6b=function(){return _0x1d9317;};return _0x4d6b();}const bn={'file':_0x4bc4ab,'document':_0x38203e,'web-resource':_0x25c0a5,'text':_0x4bc4ab,'selection':_0x1d5304},Tn=_0x519279(0x173),En=_0x519279(0x17d),fn=_0x519279(0x165),An=_0x519279(0x14b),Cn=_0x519279(0x166),In=_0x519279(0x16f),On='n';export class AIChatContextItemButtonView extends _0x70aff3{constructor(_0x5c7ba1,_0x11bb89,_0x3fc0d4,_0x5ab330,_0x25ff12=!0x1){const _0x53eef9=_0x519279;super(_0x5c7ba1),this[_0x53eef9(0x146)]=_0x5ab330,this[_0x53eef9(0x15f)](_0x11bb89,_0x3fc0d4,_0x25ff12),this[_0x53eef9(0x178)]();}[_0x519279(0x17e)](){const _0x12b9c8=_0x519279;super[_0x12b9c8(0x17e)](),this[_0x12b9c8(0x146)]&&this[_0x12b9c8(0x141)]&&(this[_0x12b9c8(0x141)][_0x12b9c8(0x168)][_0x12b9c8(0x162)](_0x12b9c8(0x147)),this[_0x12b9c8(0x142)](this[_0x12b9c8(0x141)],()=>{const _0x533650=_0x12b9c8;this[_0x533650(0x141)]&&this[_0x533650(0x141)][_0x533650(0x168)][_0x533650(0x14d)](_0x533650(0x147));}));}[_0x519279(0x14c)](){const _0x22b4b1=_0x519279;this[_0x22b4b1(0x146)]=!0x1,this[_0x22b4b1(0x141)]&&this[_0x22b4b1(0x141)][_0x22b4b1(0x168)][_0x22b4b1(0x14d)](_0x22b4b1(0x147));}[_0x519279(0x15f)](_0x3b52ca,_0x2725ae,_0xb0899d){const _0x13115b=_0x519279;this[_0x13115b(0x16a)](_0x13115b(0x174),_0x3b52ca[_0x13115b(0x174)]),this[_0x13115b(0x16a)](_0x13115b(0x14f),!0x0),this[_0x13115b(0x16a)](_0x13115b(0x15a),_0x3b52ca[_0x13115b(0x163)]),this[_0x13115b(0x16a)]('id',_0x3b52ca[_0x13115b(0x156)]),this[_0x13115b(0x16a)](_0x13115b(0x16c),_0x2725ae),this[_0x13115b(0x16a)](_0x13115b(0x158),_0xb0899d);}[_0x519279(0x178)](){const _0x5af127=_0x519279,_0x5d7bcc=this[_0x5af127(0x149)](),_0x2259c5=this[_0x5af127(0x16b)](),_0x5a2b53=this[_0x5af127(0x157)];this[_0x5af127(0x161)]({'tag':_0x5af127(0x153),'attributes':this[_0x5af127(0x14e)](_0x5a2b53),'children':this[_0x5af127(0x167)](_0x5d7bcc,_0x2259c5,_0x5a2b53)});}[_0x519279(0x14e)](_0x59ee1b){const _0x198e93=_0x519279;return{'class':[Tn,_0x59ee1b['if'](_0x198e93(0x15a),fn,_0x26caee=>_0x198e93(0x171)==_0x26caee),_0x59ee1b['if'](_0x198e93(0x15a),En,_0x38870e=>_0x198e93(0x148)==_0x38870e)],'data-cke-tooltip-text':_0x59ee1b['to'](_0x198e93(0x174),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x519279(0x167)](_0x3f3b0d,_0x3b5a49,_0x2eb351){const _0x3b1b74=_0x519279,_0x2bb2ef=this[_0x3b1b74(0x151)](_0x2eb351),_0x430a85=this[_0x3b1b74(0x177)]();return this[_0x3b1b74(0x16c)]?[_0x3f3b0d,_0x2bb2ef]:[_0x3f3b0d,_0x430a85,_0x2bb2ef,_0x3b5a49];}[_0x519279(0x151)](_0x4a67aa){const _0x57ad8d=_0x519279;return{'tag':_0x57ad8d(0x169),'attributes':{'class':An},'children':[{'text':_0x4a67aa['to'](_0x57ad8d(0x174))}]};}[_0x519279(0x16b)](){const _0x551ccd=_0x519279,_0x8e7d04=new _0x70aff3(this[_0x551ccd(0x15d)]);return _0x8e7d04[_0x551ccd(0x16a)]({'label':_0x2b357f(this[_0x551ccd(0x15d)],_0x551ccd(0x143)),'icon':_0x2b92b1}),this[_0x551ccd(0x17c)](_0x8e7d04),_0x8e7d04;}[_0x519279(0x17c)](_0x43d9ec){const _0x1dfe09=_0x519279;_0x43d9ec['on'](_0x1dfe09(0x16e),()=>{const _0x7df151=_0x1dfe09;this[_0x7df151(0x14a)](_0x7df151(0x176),this['id']);});}[_0x519279(0x149)](){const _0x111fd2=_0x519279,_0x3ef0ed=this[_0x111fd2(0x157)],_0x294d00=new _0x23b33a();return _0x294d00[_0x111fd2(0x15c)]=bn[this[_0x111fd2(0x15a)]],_0x294d00[_0x111fd2(0x180)]({'attributes':{'class':[Cn,_0x3ef0ed['if'](_0x111fd2(0x158),_0x111fd2(0x140),_0x48173c=>_0x48173c)]}}),_0x294d00;}[_0x519279(0x142)](_0x285636,_0x34d9f6){const _0x407185=_0x519279;if(!_0x285636)return;const _0x829b86=()=>{const _0x3c8985=_0x4d18;_0x34d9f6(),_0x285636[_0x3c8985(0x15e)](_0x3c8985(0x160),_0x829b86),_0x285636[_0x3c8985(0x15e)](_0x3c8985(0x17b),_0x829b86);};_0x285636[_0x407185(0x152)](_0x407185(0x160),_0x829b86),_0x285636[_0x407185(0x152)](_0x407185(0x17b),_0x829b86);}[_0x519279(0x177)](){const _0x4efb84=_0x519279,_0x44fdc0=new _0x1034b5(_0x4efb84(0x172));return _0x44fdc0[_0x4efb84(0x164)](_0x4efb84(0x170))['to'](this,_0x4efb84(0x158),_0x5919eb=>_0x5919eb),_0x44fdc0;}}function gn(_0x125adb){const _0x2758ae=_0x519279;if(!_0x125adb)return _0x125adb;if(_0x125adb[_0x2758ae(0x145)]<=0x78)return _0x125adb;const _0x6c474f=_0x125adb[_0x2758ae(0x17a)](0x0,0x78),_0xe1bead=_0x6c474f[_0x2758ae(0x17f)]('\x20');return(_0xe1bead>0x0?_0x6c474f[_0x2758ae(0x17a)](0x0,_0xe1bead):_0x6c474f)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x55bc2f=_0xc7d6;(function(_0x3f51ac,_0x440673){const _0x35b1cf=_0xc7d6,_0x38d6a2=_0x3f51ac();while(!![]){try{const _0x28a39b=parseInt(_0x35b1cf(0x147))/0x1*(parseInt(_0x35b1cf(0x158))/0x2)+parseInt(_0x35b1cf(0x12e))/0x3*(parseInt(_0x35b1cf(0x121))/0x4)+-parseInt(_0x35b1cf(0x133))/0x5+parseInt(_0x35b1cf(0x168))/0x6*(parseInt(_0x35b1cf(0x15d))/0x7)+parseInt(_0x35b1cf(0x163))/0x8*(-parseInt(_0x35b1cf(0x127))/0x9)+parseInt(_0x35b1cf(0x15a))/0xa*(parseInt(_0x35b1cf(0x140))/0xb)+parseInt(_0x35b1cf(0x135))/0xc*(-parseInt(_0x35b1cf(0x159))/0xd);if(_0x28a39b===_0x440673)break;else _0x38d6a2['push'](_0x38d6a2['shift']());}catch(_0x2b83e1){_0x38d6a2['push'](_0x38d6a2['shift']());}}}(_0x1408,0x720af));import{FocusTracker as _0x2e164e,KeystrokeHandler as _0x5c4ab6}from'ckeditor5/src/utils.js';function _0x1408(){const _0x44a765=['2744esCJiO','set','ck-button-icon\x20ck-button-back','tab','focusTracker','12ABnxcb','_handleSubmit','ck-labeled-field-view_empty','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','8URJrdA','stop','ck-button-icon','div','AI_CHAT_CONTEXT_URL_ADD_URL','refreshBalloon','16704WiZdLc','execute','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','form','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupKeystrokes','_focusables','1097859aMAvga','createCollection','submitUrl','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','input','647360REwuBX','_updateConfirmButtonState','12YgqlWW','focus','_createConfirmButton','trim','_createBackButton','setTemplate','submit','_setupEventHandlers','getValue','urlInputField','clearError','6018892FMOoLm','element','errorText','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','cancel','length','locale','2WvATIA','AI_CHAT_CONTEXT_URL_LABEL','fire','destroy','_createUrlInputField','isEnabled','listenTo','confirmButton','add','ck-ai-chat-context-controls__url-form','keystrokes','render','shift+tab','children','value','setError','ck-ai-chat-context-controls__url-input-section','681916IwzPzG','18944861rbwFFF','10QAMLxg','forEach','backButton','2553257KocJjT','focusCycler','_isValidUrl','esc','_setupTemplate','clear'];_0x1408=function(){return _0x44a765;};return _0x1408();}import{ButtonView as _0x525a96,FocusCycler as _0x209504,LabeledFieldView as _0x59f884,View as _0x59fc57,FormHeaderView as _0x379b4b,createLabeledInputText as _0x5d8fdb,submitHandler as _0x4b2d54}from'ckeditor5/src/ui.js';import{IconCheck as _0x5a71dd,IconPreviousArrow as _0x1f38d1}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x455522}from'../../../aicore/utils/common-translations.js';function _0xc7d6(_0x31977b,_0x145a20){const _0x140808=_0x1408();return _0xc7d6=function(_0xc7d649,_0x3ada0a){_0xc7d649=_0xc7d649-0x11e;let _0x5729a6=_0x140808[_0xc7d649];return _0x5729a6;},_0xc7d6(_0x31977b,_0x145a20);}const ch=_0x55bc2f(0x150),nh=_0x55bc2f(0x157);export class AIChatContextPanelUrlInputView extends _0x59fc57{[_0x55bc2f(0x167)];[_0x55bc2f(0x151)];[_0x55bc2f(0x12d)];[_0x55bc2f(0x15e)];[_0x55bc2f(0x13e)];[_0x55bc2f(0x15c)];[_0x55bc2f(0x14e)];constructor(_0x5c99a9){const _0x1f00cc=_0x55bc2f;super(_0x5c99a9),this[_0x1f00cc(0x167)]=new _0x2e164e(),this[_0x1f00cc(0x151)]=new _0x5c4ab6(),this[_0x1f00cc(0x15c)]=this[_0x1f00cc(0x139)](),this[_0x1f00cc(0x13e)]=this[_0x1f00cc(0x14b)](),this[_0x1f00cc(0x14e)]=this[_0x1f00cc(0x137)](),this[_0x1f00cc(0x12d)]=this[_0x1f00cc(0x12f)]([this[_0x1f00cc(0x15c)],this[_0x1f00cc(0x13e)],this[_0x1f00cc(0x14e)]]),this[_0x1f00cc(0x15e)]=new _0x209504({'focusables':this[_0x1f00cc(0x12d)],'focusTracker':this[_0x1f00cc(0x167)],'keystrokeHandler':this[_0x1f00cc(0x151)],'actions':{'focusPrevious':_0x1f00cc(0x153),'focusNext':_0x1f00cc(0x166)}}),this[_0x1f00cc(0x161)](),this[_0x1f00cc(0x13c)](),this[_0x1f00cc(0x12c)]();}[_0x55bc2f(0x152)](){const _0x554d34=_0x55bc2f;super[_0x554d34(0x152)](),this[_0x554d34(0x12d)][_0x554d34(0x15b)](_0x25fd26=>{const _0x1df416=_0x554d34;this[_0x1df416(0x167)][_0x1df416(0x14f)](_0x25fd26[_0x1df416(0x141)]),this[_0x1df416(0x151)][_0x1df416(0x14d)](_0x25fd26[_0x1df416(0x141)]);}),_0x4b2d54({'view':this}),this[_0x554d34(0x136)]();}[_0x55bc2f(0x14a)](){const _0x4b2010=_0x55bc2f;super[_0x4b2010(0x14a)](),this[_0x4b2010(0x167)][_0x4b2010(0x14a)](),this[_0x4b2010(0x151)][_0x4b2010(0x14a)]();}[_0x55bc2f(0x136)](){const _0x1d5396=_0x55bc2f;this[_0x1d5396(0x13e)][_0x1d5396(0x136)]();}[_0x55bc2f(0x13d)](){const _0x3ce01c=_0x55bc2f;return this[_0x3ce01c(0x13e)][_0x3ce01c(0x11f)][_0x3ce01c(0x141)]?.[_0x3ce01c(0x155)]?.[_0x3ce01c(0x138)]()||'';}[_0x55bc2f(0x162)](){const _0x2c0233=_0x55bc2f;this[_0x2c0233(0x13e)][_0x2c0233(0x11f)][_0x2c0233(0x141)][_0x2c0233(0x155)]='',this[_0x2c0233(0x13e)][_0x2c0233(0x142)]=null,this[_0x2c0233(0x14e)][_0x2c0233(0x14c)]=!0x1;}[_0x55bc2f(0x156)](_0x53a47c){const _0x20f08d=_0x55bc2f;this[_0x20f08d(0x13e)][_0x20f08d(0x142)]=_0x53a47c,this[_0x20f08d(0x134)](),this[_0x20f08d(0x149)](_0x20f08d(0x126));}[_0x55bc2f(0x13f)](){const _0x38ebd1=_0x55bc2f;this[_0x38ebd1(0x13e)][_0x38ebd1(0x142)]=null,this[_0x38ebd1(0x134)]();}[_0x55bc2f(0x139)](){const _0x1b5763=_0x55bc2f,_0x38d3f5=new _0x525a96(this[_0x1b5763(0x146)]);return _0x38d3f5[_0x1b5763(0x164)]({'icon':_0x1f38d1,'tooltip':_0x455522(this[_0x1b5763(0x146)],_0x1b5763(0x131)),'tooltipPosition':'n','class':_0x1b5763(0x165)}),_0x38d3f5;}[_0x55bc2f(0x14b)](){const _0x5f5512=_0x55bc2f,_0x4158bb=new _0x59f884(this[_0x5f5512(0x146)],_0x5d8fdb);return _0x4158bb[_0x5f5512(0x164)]({'label':_0x455522(this[_0x5f5512(0x146)],_0x5f5512(0x148)),'class':_0x5f5512(0x11e)}),_0x4158bb[_0x5f5512(0x11f)][_0x5f5512(0x164)]({'placeholder':_0x455522(this[_0x5f5512(0x146)],_0x5f5512(0x12b))}),_0x4158bb;}[_0x55bc2f(0x137)](){const _0x11988e=_0x55bc2f,_0x5538fd=new _0x525a96(this[_0x11988e(0x146)]);return _0x5538fd[_0x11988e(0x164)]({'icon':_0x5a71dd,'tooltip':_0x455522(this[_0x11988e(0x146)],_0x11988e(0x125)),'tooltipPosition':'n','class':_0x11988e(0x123),'type':_0x11988e(0x13b),'isEnabled':!0x1}),_0x5538fd;}[_0x55bc2f(0x161)](){const _0xba15d1=_0x55bc2f,_0x55dc15=new _0x379b4b(this[_0xba15d1(0x146)],{'label':_0x455522(this[_0xba15d1(0x146)],_0xba15d1(0x125)),'class':_0xba15d1(0x129)});_0x55dc15[_0xba15d1(0x154)][_0xba15d1(0x14f)](this[_0xba15d1(0x15c)],0x0),this[_0xba15d1(0x13a)]({'tag':_0xba15d1(0x12a),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x55dc15,{'tag':_0xba15d1(0x124),'attributes':{'class':nh},'children':[this[_0xba15d1(0x13e)],this[_0xba15d1(0x14e)]]}]});}[_0x55bc2f(0x13c)](){const _0x15f1ef=_0x55bc2f;this[_0x15f1ef(0x15c)]['on'](_0x15f1ef(0x128),()=>{const _0x570132=_0x15f1ef;this[_0x570132(0x162)](),this[_0x570132(0x149)](_0x570132(0x144));}),this[_0x15f1ef(0x13e)][_0x15f1ef(0x11f)]['on'](_0x15f1ef(0x132),()=>{const _0x3cc853=_0x15f1ef;this[_0x3cc853(0x13f)](),this[_0x3cc853(0x134)](),this[_0x3cc853(0x149)](_0x3cc853(0x126));}),this['on'](_0x15f1ef(0x13b),_0x25ba5d=>{const _0x599eba=_0x15f1ef;_0x25ba5d[_0x599eba(0x122)](),this[_0x599eba(0x169)]();});}[_0x55bc2f(0x12c)](){const _0x91efd2=_0x55bc2f;this[_0x91efd2(0x151)][_0x91efd2(0x164)](_0x91efd2(0x160),(_0x1031d3,_0x486ead)=>{const _0x18112b=_0x91efd2;this[_0x18112b(0x162)](),this[_0x18112b(0x149)](_0x18112b(0x144)),_0x486ead();});}[_0x55bc2f(0x169)](){const _0xb0667f=_0x55bc2f,_0x41f83a=this[_0xb0667f(0x13d)]()[_0xb0667f(0x138)]();_0x41f83a?this[_0xb0667f(0x15f)](_0x41f83a)?(this[_0xb0667f(0x13f)](),this[_0xb0667f(0x149)](_0xb0667f(0x130),_0x41f83a)):this[_0xb0667f(0x156)](_0x455522(this[_0xb0667f(0x146)],_0xb0667f(0x120))):this[_0xb0667f(0x156)](_0x455522(this[_0xb0667f(0x146)],_0xb0667f(0x143)));}[_0x55bc2f(0x134)](){const _0x5ba0b9=_0x55bc2f,_0x47436a=this[_0x5ba0b9(0x13d)]()[_0x5ba0b9(0x138)](),_0x500a37=!!this[_0x5ba0b9(0x13e)][_0x5ba0b9(0x142)];this[_0x5ba0b9(0x14e)][_0x5ba0b9(0x14c)]=_0x47436a[_0x5ba0b9(0x145)]>0x0&&!_0x500a37;}[_0x55bc2f(0x15f)](_0x28c202){try{return!!new URL(_0x28c202);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x436a(){const _0x9a4e=['isEnabled','cancel','icon','ck-ai-chat','show','southArrowNorthEast','submitUrl','children','tooltip','northArrowSouthEast','ck-ai-chat-context-controls__add-context-balloon-panel','document','closeSourceResourceBalloon','hide','bind','createCollection','_createAddContextButtonView','southArrowNorth','11065txydmu','_setAddContextButtonEnabled','_getLimiterElement','render','clearCurrentContextItems','sources','element','northArrowSouthWest','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBalloonButton','remove','AI_CHAT_CONTEXT_FILE_LABEL','buttonView','extendTemplate','ck-ai-chat-context-controls__balloon-button','reorganizeChips','setContextItemLoading','populateSourceResourceBalloon','_addContextToCollection','defaultPositions','_overflowManager','arrowView','_bindEventHandlers','removeContextItemChip','addDocumentToContext','enabled','8657310YEjWQP','ck-ai-chat-context-controls__url-balloon-panel','pin','balloonView','hideAddContextBalloonPanel','destroy','30165ulRURE','setContainerElement','isAnyResourceBalloonVisible','isOn','_createBaseBalloonPanel','clearConversationContextItems','_conversationContextsChips','showUrlBalloonPanel','setConversationContext','setTemplate','urls','_createResourcesBalloonView','_createContextButton','AI_CHAT_CONTEXT_ADD_CONTEXT','8YziOkL','refreshBalloon','removeContextItem','48YUgWgr','_toggleAddContextBalloon','_setBalloonPanelContent','_handleAddContextButtonClick','_setupAddContextBalloonClickOutsideHandler','_createUrlBalloonPanelView','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-controls-button','_currentContextsChips','bodyCollection','set','_setupUrlBalloonClickOutsideHandler','isLoading','locale','updateResourceState','isHidden','__arrow','fire','div','hideUrlBalloonPanel','ck-ai-chat-context-controls__show-more-balloon-panel','current','_createAddContextBalloonPanelView','closest','addFileToContext','_addContextBalloonConfig','clear','add','_resourcesBalloonView','204vflyvl','_createArrowView','1045440kNdQPU','6144bwGXts','_urlInputView','setAddContextOptions','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','files','done','searchInputVisibleFrom','conversation','ck-ai-chat-context-controls__add-context-button','execute','focus','isVisible','source','_handleUrlSubmit','_addUrlContent','addResourceToContext','_setupTemplate','2424THMtrn','label','ck-ai-chat-context-controls__pending-contexts','addContextButtonView','_addContextBalloonPanelView','menuitem','overflowChips','find','_showSourceResourcesBalloon','_urlBalloonPanelView','5804436nXZOiF','loadSourceResources','334936FNhXzW','AI_CHAT_CONTEXT_URL_LABEL','showAddContextBalloonPanel','ck-ai-chat-context-controls','addContextItem','ck-reset_all-excluded','addUrlToContext','southArrowNorthWest','body','_removeContextFromCollection','showSourceResourcesBalloon','northArrowSouth','isReadOnly','type','content'];_0x436a=function(){return _0x9a4e;};return _0x436a();}const _0x4acd59=_0x51dd;(function(_0x537bd0,_0x8bf7e){const _0x482415=_0x51dd,_0x365349=_0x537bd0();while(!![]){try{const _0x2dd45a=parseInt(_0x482415(0x1c4))/0x1*(parseInt(_0x482415(0x1a1))/0x2)+parseInt(_0x482415(0x224))/0x3*(-parseInt(_0x482415(0x1c1))/0x4)+parseInt(_0x482415(0x204))/0x5*(parseInt(_0x482415(0x1d7))/0x6)+-parseInt(_0x482415(0x1e3))/0x7*(-parseInt(_0x482415(0x1a4))/0x8)+parseInt(_0x482415(0x1c3))/0x9+-parseInt(_0x482415(0x21e))/0xa+parseInt(_0x482415(0x1e1))/0xb;if(_0x2dd45a===_0x8bf7e)break;else _0x365349['push'](_0x365349['shift']());}catch(_0x5d7c91){_0x365349['push'](_0x365349['shift']());}}}(_0x436a,0x72fe8));import{BalloonPanelView as _0x1be137,ButtonView as _0x3808bb,clickOutsideHandler as _0x199031,FileDialogButtonView as _0x3c1e31,IconView as _0x4ec24f,View as _0x5e48bb}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x329c58,IconDocument as _0x175401,IconDocumentOutline as _0x540d6b,IconDropdownArrow as _0x428490,IconLink as _0x4dbdea,IconPaperClip as _0x4fb726}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x43dea2}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xbbf1a6}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2c9b7e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3c5d82}from'../../../aicore/utils/common-translations.js';function _0x51dd(_0x24d09f,_0x3bde50){const _0x436afb=_0x436a();return _0x51dd=function(_0x51ddd3,_0x40a244){_0x51ddd3=_0x51ddd3-0x195;let _0x5dc6e1=_0x436afb[_0x51ddd3];return _0x5dc6e1;},_0x51dd(_0x24d09f,_0x3bde50);}import{AIChatResourcesBalloonView as _0x72adf1}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4acd59(0x21c),_0x4acd59(0x1bc),_0x4acd59(0x1e9),_0x4acd59(0x1d5),_0x4acd59(0x1a3),_0x4acd59(0x1e2)];const ko=_0x4acd59(0x1e6),Eo=_0x4acd59(0x1d9),vo=_0x4acd59(0x1fc),Vo=_0x4acd59(0x1ce),Io=_0x4acd59(0x21f),Po=_0x4acd59(0x212),Ro=_0x4acd59(0x1c8),Uo=_0x4acd59(0x1ab),Lo=_0x4acd59(0x1aa),No=_0x4acd59(0x1c9),Oo=_0x4acd59(0x1b8),Mo=_0x4acd59(0x1f5),Ho=[_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x20b)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1ee)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1fb)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1ea)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x203)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1f7)]];export class AIChatContextPanelView extends _0x5e48bb{[_0x4acd59(0x1da)];[_0x4acd59(0x1ac)]=this[_0x4acd59(0x201)]();[_0x4acd59(0x199)]=this[_0x4acd59(0x201)]();[_0x4acd59(0x218)];[_0x4acd59(0x1db)];[_0x4acd59(0x1e0)];[_0x4acd59(0x1c5)];[_0x4acd59(0x1c0)];[_0x4acd59(0x1bd)];[_0x4acd59(0x1ad)];constructor(_0x5c3559,_0x267484){const _0x280aa1=_0x4acd59;super(_0x5c3559),this[_0x280aa1(0x1ad)]=_0x267484[_0x280aa1(0x1ad)],this[_0x280aa1(0x1ac)]=this[_0x280aa1(0x201)](),this[_0x280aa1(0x199)]=this[_0x280aa1(0x201)](),this[_0x280aa1(0x1da)]=this[_0x280aa1(0x202)](_0x5c3559),this[_0x280aa1(0x1db)]=this[_0x280aa1(0x1ba)](_0x5c3559),this[_0x280aa1(0x1e0)]=this[_0x280aa1(0x1a9)](_0x5c3559),this[_0x280aa1(0x1c0)]=this[_0x280aa1(0x19e)](_0x5c3559,_0x267484);const _0x21e268={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x280aa1(0x218)]=new _0x2c9b7e(_0x5c3559,this[_0x280aa1(0x1ac)],_0x21e268,this[_0x280aa1(0x1ad)],this),this[_0x280aa1(0x1bd)]={'buttonView':this[_0x280aa1(0x1da)],'balloonView':this[_0x280aa1(0x1db)],'hideMethod':this[_0x280aa1(0x222)][_0x280aa1(0x200)](this),'showMethod':this[_0x280aa1(0x1e5)][_0x280aa1(0x200)](this)},this[_0x280aa1(0x1d6)](),this[_0x280aa1(0x21a)]();}[_0x4acd59(0x207)](){const _0x270225=_0x4acd59;super[_0x270225(0x207)](),this[_0x270225(0x1c7)](),this[_0x270225(0x218)][_0x270225(0x225)](this[_0x270225(0x20a)]),this[_0x270225(0x218)][_0x270225(0x213)]();}[_0x4acd59(0x223)](){const _0x2a97d1=_0x4acd59;super[_0x2a97d1(0x223)](),this[_0x2a97d1(0x218)][_0x2a97d1(0x223)](),this[_0x2a97d1(0x1c0)][_0x2a97d1(0x223)]();}[_0x4acd59(0x1e7)](_0x5a2d57,_0x2ff556){const _0x15d023=_0x4acd59,_0xf387d0=this[_0x15d023(0x19f)](_0x5a2d57,_0x15d023(0x1b9),!0x0,_0x2ff556);this[_0x15d023(0x216)](_0xf387d0,this[_0x15d023(0x1ac)]),this[_0x15d023(0x218)][_0x15d023(0x213)]();}[_0x4acd59(0x1a3)](_0x36b6bd){const _0x2346ee=_0x4acd59;this[_0x2346ee(0x1ec)](_0x36b6bd,this[_0x2346ee(0x1ac)]),this[_0x2346ee(0x1ec)](_0x36b6bd,this[_0x2346ee(0x218)][_0x2346ee(0x1dd)]),this[_0x2346ee(0x218)][_0x2346ee(0x213)]();}[_0x4acd59(0x214)](_0x4c94c0,_0x5919c6){const _0x1fc899=_0x4acd59;let _0x323790=this[_0x1fc899(0x1ac)][_0x1fc899(0x1de)](_0x4cb6df=>_0x4cb6df['id']===_0x4c94c0);_0x323790||(_0x323790=this[_0x1fc899(0x218)][_0x1fc899(0x1dd)][_0x1fc899(0x1de)](_0x4027e3=>_0x4027e3['id']===_0x4c94c0)),_0x323790&&(_0x323790[_0x1fc899(0x1b0)]=_0x5919c6);}[_0x4acd59(0x19b)](_0x5b7eeb){const _0x41cbb3=_0x4acd59;this[_0x41cbb3(0x199)][_0x41cbb3(0x1be)]();for(const _0x587bac of _0x5b7eeb){const _0x4d459a=this[_0x41cbb3(0x19f)](_0x587bac,_0x41cbb3(0x1cd),!0x1,!0x1);this[_0x41cbb3(0x216)](_0x4d459a,this[_0x41cbb3(0x199)]);}}[_0x4acd59(0x208)](){const _0x38978c=_0x4acd59;this[_0x38978c(0x1ac)][_0x38978c(0x1be)](),this[_0x38978c(0x218)][_0x38978c(0x1be)]();}[_0x4acd59(0x198)](){const _0x4026f8=_0x4acd59;this[_0x4026f8(0x199)][_0x4026f8(0x1be)]();}[_0x4acd59(0x1b2)](_0x523c1e,_0x42fbba,_0x23a60a){const _0x41bd46=_0x4acd59;this[_0x41bd46(0x1c0)][_0x41bd46(0x1b2)](_0x523c1e,_0x42fbba,_0x23a60a);}[_0x4acd59(0x222)](){const _0x59fc0c=_0x4acd59;this[_0x59fc0c(0x1a5)](!0x1);}[_0x4acd59(0x1e5)](){const _0x145970=_0x4acd59;this[_0x145970(0x1a5)](!0x0);}[_0x4acd59(0x1b7)](){const _0x42e17a=_0x4acd59;this[_0x42e17a(0x1e0)][_0x42e17a(0x1ff)](),this[_0x42e17a(0x1da)][_0x42e17a(0x196)]=!0x1,this[_0x42e17a(0x1c5)]&&this[_0x42e17a(0x1c5)][_0x42e17a(0x1be)]();}[_0x4acd59(0x19a)](){const _0x4717c6=_0x4acd59;this[_0x4717c6(0x1e0)][_0x4717c6(0x1f6)](),this[_0x4717c6(0x1da)][_0x4717c6(0x196)]=!0x0;}[_0x4acd59(0x1df)](_0x1b2eaa){const _0x2d9e25=_0x4acd59;this[_0x2d9e25(0x1c0)][_0x2d9e25(0x1ed)](_0x1b2eaa),this[_0x2d9e25(0x1da)][_0x2d9e25(0x196)]=!0x0;}[_0x4acd59(0x215)](_0x335a41,_0x1e1382,_0x8b06ff,_0xb8b745){const _0x27b8a6=_0x4acd59;this[_0x27b8a6(0x1c0)][_0x27b8a6(0x215)](_0x335a41,_0x8b06ff,_0xb8b745);}[_0x4acd59(0x1fe)](_0x279f53){const _0x3eef89=_0x4acd59;this[_0x3eef89(0x1c0)][_0x3eef89(0x1fe)](_0x279f53),this[_0x3eef89(0x1da)][_0x3eef89(0x196)]=!0x1;}[_0x4acd59(0x1c6)](_0x13c673){const _0xf006ec=_0x4acd59;this[_0xf006ec(0x1a6)](this[_0xf006ec(0x1db)],this[_0xf006ec(0x1b1)],_0x13c673),this[_0xf006ec(0x205)](_0x13c673);}[_0x4acd59(0x205)](_0x2204e4){const _0x3c8c32=_0x4acd59,_0x45b253=!_0x2204e4[_0x3c8c32(0x1fd)][_0x3c8c32(0x1b3)]&&_0x2204e4[_0x3c8c32(0x1fd)][_0x3c8c32(0x21d)],_0x1921b9=_0x2204e4[_0x3c8c32(0x19d)][_0x3c8c32(0x21d)],_0x12c5f5=_0x2204e4[_0x3c8c32(0x1ca)][_0x3c8c32(0x21d)];this[_0x3c8c32(0x1da)][_0x3c8c32(0x1f2)]=_0x45b253||_0x1921b9||_0x12c5f5;}[_0x4acd59(0x1d6)](){const _0x5e2166=_0x4acd59;this[_0x5e2166(0x19c)]({'tag':_0x5e2166(0x1b6),'attributes':{'class':[ko,_0x5e2166(0x1e8)]},'children':[{'tag':_0x5e2166(0x1b6),'attributes':{'class':Eo},'children':this[_0x5e2166(0x1ac)]}]});}[_0x4acd59(0x21a)](){const _0x127cee=_0x4acd59;this[_0x127cee(0x1da)]['on'](_0x127cee(0x1cf),()=>{const _0x218b44=_0x127cee;this[_0x218b44(0x1a7)]();});}[_0x4acd59(0x202)](_0x523465){const _0x3dbe92=_0x4acd59,_0xa535f1=new _0x3808bb(_0x523465);return _0xa535f1[_0x3dbe92(0x1ae)]({'label':_0x3c5d82(_0x523465,_0x3dbe92(0x1a0)),'class':Uo+'\x20'+Vo,'icon':_0x4fb726,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xa535f1;}[_0x4acd59(0x1ba)](_0x173b13){const _0x12f13a=_0x4acd59;return this[_0x12f13a(0x197)](_0x173b13,vo);}[_0x4acd59(0x1a9)](_0x5e3ac2){const _0x428c3c=_0x4acd59,_0x1f4814=this[_0x428c3c(0x197)](_0x5e3ac2,Io);return this[_0x428c3c(0x1d4)](_0x1f4814,_0x5e3ac2),_0x1f4814;}[_0x4acd59(0x19e)](_0x28df8c,_0x46c55c){const _0x257698=_0x4acd59,_0x438ccd={'searchInputVisibleFrom':_0x46c55c[_0x257698(0x1cc)],'onBackToContext':()=>{const _0x387e22=_0x257698;this[_0x387e22(0x1e5)](),this[_0x387e22(0x1db)][_0x387e22(0x220)]({'target':this[_0x387e22(0x1da)][_0x387e22(0x20a)],'limiter':this[_0x387e22(0x206)](),'positions':Ho});},'onResourceSelected':(_0x3411b4,_0x674a5)=>{const _0x3382e6=_0x257698;this[_0x3382e6(0x1b5)](_0x3382e6(0x1d5),{'source':_0x3411b4,'resource':_0x674a5});},'onLoadSourceResources':_0x2f2408=>{const _0xac3a82=_0x257698;this[_0xac3a82(0x1b5)](_0xac3a82(0x1e2),_0x2f2408);},'onBalloonClosed':()=>{const _0x25f806=_0x257698;this[_0x25f806(0x1da)][_0x25f806(0x196)]=!0x1;},'getLimiterElement':()=>this[_0x257698(0x206)](),'getTargetElement':()=>this[_0x257698(0x1da)][_0x257698(0x20a)]};return new _0x72adf1(_0x28df8c,_0x46c55c[_0x257698(0x1ad)],_0x438ccd);}[_0x4acd59(0x206)](){const _0x46f3df=_0x4acd59;return this[_0x46f3df(0x20a)]?.[_0x46f3df(0x1bb)]('.'+Mo)||document[_0x46f3df(0x1eb)];}[_0x4acd59(0x197)](_0x39399d,_0x1b78ad){const _0x34492f=_0x4acd59,_0x34bce8=new _0x1be137(_0x39399d);return _0x34bce8[_0x34492f(0x211)]({'attributes':{'class':_0x1b78ad}}),this[_0x34492f(0x1ad)][_0x34492f(0x1bf)](_0x34bce8),_0x34bce8;}[_0x4acd59(0x1a6)](_0x903611,_0x4299a3,_0x3f27d8){const _0x5e4f3b=_0x4acd59;if(_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1be)](),!_0x3f27d8[_0x5e4f3b(0x1fd)][_0x5e4f3b(0x1b3)]&&_0x3f27d8[_0x5e4f3b(0x1fd)][_0x5e4f3b(0x21d)]){const _0x565ed3=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x20c)),'icon':_0x175401});_0x565ed3['on'](_0x5e4f3b(0x1cf),()=>{const _0xf292c3=_0x5e4f3b;this[_0xf292c3(0x1b5)](_0xf292c3(0x21c)),this[_0xf292c3(0x222)]();}),_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x565ed3);}if(_0x3f27d8[_0x5e4f3b(0x19d)][_0x5e4f3b(0x21d)]){const _0x4a2a31=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x1e4)),'icon':_0x4dbdea});_0x4a2a31['on'](_0x5e4f3b(0x1cf),()=>{const _0x3f46e6=_0x5e4f3b;this[_0x3f46e6(0x222)](),this[_0x3f46e6(0x19a)](),this[_0x3f46e6(0x1e0)][_0x3f46e6(0x220)]({'target':this[_0x3f46e6(0x1da)][_0x3f46e6(0x20a)],'limiter':this[_0x3f46e6(0x206)](),'positions':Ho}),this[_0x3f46e6(0x1c5)][_0x3f46e6(0x1d0)]();}),_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x4a2a31);}if(_0x3f27d8[_0x5e4f3b(0x1ca)][_0x5e4f3b(0x21d)]){const _0x4cce0f=new _0x3c1e31(_0x4299a3);_0x4cce0f[_0x5e4f3b(0x1ae)]({'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x20f)),'icon':_0x329c58,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4cce0f['on'](_0x5e4f3b(0x1cb),(_0x29f99e,_0x5c103b)=>{const _0x246bb2=_0x5e4f3b;this[_0x246bb2(0x1b5)](_0x246bb2(0x1bc),_0x5c103b),this[_0x246bb2(0x222)]();}),_0x4cce0f[_0x5e4f3b(0x1fa)]=!0x0,_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x4cce0f);}for(const _0x3d231a of _0x3f27d8[_0x5e4f3b(0x209)]){const _0x5d317d=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3d231a[_0x5e4f3b(0x1d8)],'icon':_0x3d231a[_0x5e4f3b(0x1f4)]||_0x540d6b,'type':_0x5e4f3b(0x1d2)});_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x5d317d),_0x5d317d['on'](_0x5e4f3b(0x1cf),()=>{const _0x57aff4=_0x5e4f3b;this[_0x57aff4(0x222)](),this[_0x57aff4(0x1df)](_0x3d231a);});}}[_0x4acd59(0x1d4)](_0x4fd2b8,_0x2450df){const _0x462ec8=_0x4acd59;this[_0x462ec8(0x1c5)]=new _0xbbf1a6(_0x2450df),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1f8),(_0x541291,_0xc51ea1)=>{const _0x3429ff=_0x462ec8;this[_0x3429ff(0x1d3)](_0xc51ea1);}),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1f3),()=>{const _0x390fc9=_0x462ec8;this[_0x390fc9(0x1b7)](),this[_0x390fc9(0x1e5)](),this[_0x390fc9(0x1db)][_0x390fc9(0x220)]({'target':this[_0x390fc9(0x1da)][_0x390fc9(0x20a)],'limiter':this[_0x390fc9(0x206)](),'positions':Ho});}),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1a2),()=>{const _0x1c2e05=_0x462ec8;this[_0x1c2e05(0x1e0)][_0x1c2e05(0x1d1)]&&this[_0x1c2e05(0x1e0)][_0x1c2e05(0x220)]({'target':this[_0x1c2e05(0x1da)][_0x1c2e05(0x20a)],'limiter':this[_0x1c2e05(0x206)](),'positions':Ho});}),_0x4fd2b8[_0x462ec8(0x1f1)][_0x462ec8(0x1bf)](this[_0x462ec8(0x1c5)]);}[_0x4acd59(0x20d)](_0x46915f,_0x456b09){const _0x5c310d=_0x4acd59,_0x17a1d9=_0x5c310d(0x1d2)===_0x456b09[_0x5c310d(0x1f0)]?new SourcesBalloonButtonView(_0x46915f):new _0x3808bb(_0x46915f);return _0x17a1d9[_0x5c310d(0x1ae)]({'label':_0x456b09[_0x5c310d(0x1d8)],'icon':_0x456b09[_0x5c310d(0x1f4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x17a1d9;}[_0x4acd59(0x1c7)](){const _0x2599ad=_0x4acd59;this[_0x2599ad(0x1a8)](),this[_0x2599ad(0x1af)]();}[_0x4acd59(0x1af)](){const _0x3b3560=_0x4acd59;_0x199031({'emitter':this[_0x3b3560(0x1e0)],'contextElements':[this[_0x3b3560(0x1e0)][_0x3b3560(0x20a)]],'callback':()=>{const _0x3b9cf8=_0x3b3560;this[_0x3b9cf8(0x1b7)]();},'activator':()=>this[_0x3b3560(0x1e0)][_0x3b3560(0x1d1)]});}[_0x4acd59(0x1a5)](_0x209779){const _0x10b768=_0x4acd59,_0x26ad8d=this[_0x10b768(0x1bd)];_0x26ad8d[_0x10b768(0x210)][_0x10b768(0x196)]=_0x209779,_0x209779?_0x26ad8d[_0x10b768(0x221)][_0x10b768(0x1f6)]():_0x26ad8d[_0x10b768(0x221)][_0x10b768(0x1ff)]();}[_0x4acd59(0x1a8)](){const _0xef8231=_0x4acd59,{balloonView:_0xe8beb0,buttonView:_0x54d1ec,hideMethod:_0x2c391b}=this[_0xef8231(0x1bd)];_0x199031({'emitter':_0xe8beb0,'contextElements':[_0xe8beb0[_0xef8231(0x20a)],_0x54d1ec[_0xef8231(0x20a)]],'callback':()=>{_0x2c391b();},'activator':()=>_0x54d1ec[_0xef8231(0x196)]&&!this[_0xef8231(0x1e0)][_0xef8231(0x1d1)]&&!this[_0xef8231(0x1c0)][_0xef8231(0x195)]()});}[_0x4acd59(0x19f)](_0xf9a8c6,_0x430061,_0x297c0f=!0x1,_0xd36195=!0x1){const _0x3494fa=_0x4acd59,_0x15381d=_0x3494fa(0x1cd)===_0x430061||!0x0===_0xf9a8c6[_0x3494fa(0x1ef)],_0x103cb1=new _0x43dea2(this[_0x3494fa(0x1b1)],_0xf9a8c6,_0x15381d,_0x297c0f,_0xd36195);return _0x15381d||_0x103cb1['on'](_0x3494fa(0x21b),()=>{const _0x515274=_0x3494fa;this[_0x515274(0x1b5)](_0x515274(0x1a3),_0x103cb1['id']);}),_0x103cb1;}[_0x4acd59(0x216)](_0x34c63d,_0x6daa68){const _0x515e9f=_0x4acd59;_0x6daa68[_0x515e9f(0x1bf)](_0x34c63d,0x0);}[_0x4acd59(0x1ec)](_0x5c5035,_0xe7f486){const _0x2098ee=_0x4acd59,_0x61eb0b=_0xe7f486[_0x2098ee(0x1de)](_0x194ca0=>_0x194ca0['id']===_0x5c5035);_0x61eb0b&&_0xe7f486[_0x2098ee(0x20e)](_0x61eb0b);}[_0x4acd59(0x1a7)](){const _0x3220ee=_0x4acd59;this[_0x3220ee(0x1da)][_0x3220ee(0x196)]?this[_0x3220ee(0x222)]():(this[_0x3220ee(0x1e5)](),this[_0x3220ee(0x1db)][_0x3220ee(0x220)]({'target':this[_0x3220ee(0x1da)][_0x3220ee(0x20a)],'limiter':this[_0x3220ee(0x206)](),'positions':Ho}));}[_0x4acd59(0x1d3)](_0x124a03){const _0x317ac3=_0x4acd59;this[_0x317ac3(0x1c5)][_0x317ac3(0x1be)](),this[_0x317ac3(0x1b7)](),this[_0x317ac3(0x1b5)](_0x317ac3(0x1e9),_0x124a03);}}export class SourcesBalloonButtonView extends _0x3808bb{[_0x4acd59(0x219)];constructor(_0x318159){const _0x30c07f=_0x4acd59;super(_0x318159),this[_0x30c07f(0x1ae)]({'withText':!0x0,'role':_0x30c07f(0x1dc)}),this[_0x30c07f(0x219)]=this[_0x30c07f(0x1c2)](),this[_0x30c07f(0x211)]({'attributes':{'class':[Ro]}});}[_0x4acd59(0x207)](){const _0x2a4293=_0x4acd59;super[_0x2a4293(0x207)](),this[_0x2a4293(0x1f9)][_0x2a4293(0x1bf)](this[_0x2a4293(0x219)]);}[_0x4acd59(0x1c2)](){const _0x2fe587=_0x4acd59,_0x437f2c=new _0x4ec24f();return _0x437f2c[_0x2fe587(0x1f1)]=_0x428490,_0x437f2c[_0x2fe587(0x211)]({'attributes':{'class':Ro+_0x2fe587(0x1b4)}}),_0x437f2c;}}
|
|
23
|
+
const _0x4adc52=_0x212e;(function(_0x4da68d,_0x43bbf0){const _0x431752=_0x212e,_0x4534f4=_0x4da68d();while(!![]){try{const _0x369c27=parseInt(_0x431752(0xba))/0x1+-parseInt(_0x431752(0xfc))/0x2+parseInt(_0x431752(0xa8))/0x3+parseInt(_0x431752(0x7e))/0x4+parseInt(_0x431752(0xaa))/0x5*(parseInt(_0x431752(0xf9))/0x6)+parseInt(_0x431752(0xc4))/0x7+parseInt(_0x431752(0xd8))/0x8*(-parseInt(_0x431752(0x105))/0x9);if(_0x369c27===_0x43bbf0)break;else _0x4534f4['push'](_0x4534f4['shift']());}catch(_0x51d6b9){_0x4534f4['push'](_0x4534f4['shift']());}}}(_0x2b38,0x29ecb));import{BalloonPanelView as _0x48f9f5,ButtonView as _0x1e96b6,clickOutsideHandler as _0xf40a8b,FileDialogButtonView as _0xf7735a,IconView as _0x5c74f8,View as _0x10363f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x2f67bd,IconDocument as _0x366f67,IconDocumentOutline as _0x44bf07,IconDropdownArrow as _0x3f56cb,IconLink as _0x2bb478,IconPaperClip as _0x20c5fc}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fbe32}from'./aichatcontextitembuttonview.js';function _0x2b38(){const _0x7a4dec=['locale','submitUrl','setContainerElement','_createResourcesBalloonView','children','_setupUrlBalloonClickOutsideHandler','_bindEventHandlers','addDocumentToContext','isOn','ck-ai-chat-context-controls__pending-contexts','updateResourceState','document','refreshBalloon','render','conversation','southArrowNorthEast','ck-ai-chat-context-controls__balloon-button','northArrowSouthWest','_handleUrlSubmit','content','ck-ai-chat-context-controls__add-context-balloon-panel','_toggleAddContextBalloon','reorganizeChips','ck-ai-chat-context-controls__add-context-button','AI_CHAT_CONTEXT_URL_LABEL','945105HVTXuG','_createBalloonButton','45UzPXrp','execute','current','enabled','clearCurrentContextItems','_getLimiterElement','setConversationContext','isLoading','ck-ai-chat-controls_context_show-more-button','hideAddContextBalloonPanel','type','_createContextButton','_addContextBalloonConfig','_resourcesBalloonView','hide','defaultPositions','150493QHeRcu','sources','showSourceResourcesBalloon','destroy','removeContextItemChip','southArrowNorth','_removeContextFromCollection','addFileToContext','_conversationContextsChips','_createAddContextBalloonPanelView','2253517XZqYlB','_overflowManager','ck-ai-chat-context-controls','isAnyResourceBalloonVisible','ck-ai-chat','tooltip','body','showUrlBalloonPanel','isReadOnly','overflowChips','element','source','setContextItemLoading','addUrlToContext','_setupAddContextBalloonClickOutsideHandler','_createBaseBalloonPanel','populateSourceResourceBalloon','addContextButtonView','find','files','288qPYzfu','_urlInputView','addResourceToContext','div','removeContextItem','fire','AI_CHAT_CONTEXT_ADD_CONTEXT','balloonView','pin','ck-ai-chat-context-controls__balloon-button-source','__arrow','focus','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouth','_setBalloonPanelContent','_handleAddContextButtonClick','closeSourceResourceBalloon','ck-ai-chat-controls-button','_addContextToCollection','createCollection','buttonView','menuitem','arrowView','AI_CHAT_CONTEXT_FILE_LABEL','setTemplate','label','loadSourceResources','setAddContextOptions','_setAddContextButtonEnabled','_setupTemplate','cancel','_createArrowView','223386Xijrem','add','northArrowSouthEast','403308krSupT','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','icon','ck-ai-chat-context-controls__show-more-balloon-panel','_urlBalloonPanelView','extendTemplate','addContextItem','bind','ck-ai-chat-context-chips-wrapper-balloon','205830NKXGhi','done','_createAddContextButtonView','closest','isHidden','searchInputVisibleFrom','urls','ck-reset_all-excluded','296636RhdqLN','clear','_setupAllBalloonClickOutsideHandlers','southArrowNorthWest','_addContextBalloonPanelView','_createUrlBalloonPanelView','bodyCollection','showAddContextBalloonPanel','_showSourceResourcesBalloon','_addUrlContent','set','_currentContextsChips','show','remove','clearConversationContextItems','isEnabled','isVisible'];_0x2b38=function(){return _0x7a4dec;};return _0x2b38();}import{AIChatContextPanelUrlInputView as _0x26d493}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x47e753}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3b3cc5}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5ef869}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4adc52(0x96),_0x4adc52(0xc1),_0x4adc52(0xd1),_0x4adc52(0xda),_0x4adc52(0xdc),_0x4adc52(0xf3)];const ko=_0x4adc52(0xc6),Eo=_0x4adc52(0x98),vo=_0x4adc52(0xa3),Vo=_0x4adc52(0xa6),Io=_0x4adc52(0xe5),Po=_0x4adc52(0x9f),Ro=_0x4adc52(0xe1),Uo=_0x4adc52(0xea),Lo=_0x4adc52(0x104),No=_0x4adc52(0xb2),Oo=_0x4adc52(0xff),Mo=_0x4adc52(0xc8),Ho=[_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xa0)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xe6)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xfb)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0x81)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0xbf)],_0x48f9f5[_0x4adc52(0xb9)][_0x4adc52(0x9e)]];export class AIChatContextPanelView extends _0x10363f{[_0x4adc52(0xd5)];[_0x4adc52(0x89)]=this[_0x4adc52(0xec)]();[_0x4adc52(0xc2)]=this[_0x4adc52(0xec)]();[_0x4adc52(0xc5)];[_0x4adc52(0x82)];[_0x4adc52(0x100)];[_0x4adc52(0xd9)];[_0x4adc52(0xb7)];[_0x4adc52(0xb6)];[_0x4adc52(0x84)];constructor(_0x4c5b78,_0x2684b5){const _0x1a09d5=_0x4adc52;super(_0x4c5b78),this[_0x1a09d5(0x84)]=_0x2684b5[_0x1a09d5(0x84)],this[_0x1a09d5(0x89)]=this[_0x1a09d5(0xec)](),this[_0x1a09d5(0xc2)]=this[_0x1a09d5(0xec)](),this[_0x1a09d5(0xd5)]=this[_0x1a09d5(0x107)](_0x4c5b78),this[_0x1a09d5(0x82)]=this[_0x1a09d5(0xc3)](_0x4c5b78),this[_0x1a09d5(0x100)]=this[_0x1a09d5(0x83)](_0x4c5b78),this[_0x1a09d5(0xb7)]=this[_0x1a09d5(0x92)](_0x4c5b78,_0x2684b5);const _0x10a60b={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1a09d5(0xc5)]=new _0x47e753(_0x4c5b78,this[_0x1a09d5(0x89)],_0x10a60b,this[_0x1a09d5(0x84)],this),this[_0x1a09d5(0xb6)]={'buttonView':this[_0x1a09d5(0xd5)],'balloonView':this[_0x1a09d5(0x82)],'hideMethod':this[_0x1a09d5(0xb3)][_0x1a09d5(0x103)](this),'showMethod':this[_0x1a09d5(0x85)][_0x1a09d5(0x103)](this)},this[_0x1a09d5(0xf6)](),this[_0x1a09d5(0x95)]();}[_0x4adc52(0x9c)](){const _0x2f8dff=_0x4adc52;super[_0x2f8dff(0x9c)](),this[_0x2f8dff(0x80)](),this[_0x2f8dff(0xc5)][_0x2f8dff(0x91)](this[_0x2f8dff(0xce)]),this[_0x2f8dff(0xc5)][_0x2f8dff(0xa5)]();}[_0x4adc52(0xbd)](){const _0x3b34a0=_0x4adc52;super[_0x3b34a0(0xbd)](),this[_0x3b34a0(0xc5)][_0x3b34a0(0xbd)](),this[_0x3b34a0(0xb7)][_0x3b34a0(0xbd)]();}[_0x4adc52(0x102)](_0x34073b,_0x4f2374){const _0x4eb496=_0x4adc52,_0x4d74c6=this[_0x4eb496(0xb5)](_0x34073b,_0x4eb496(0xac),!0x0,_0x4f2374);this[_0x4eb496(0xeb)](_0x4d74c6,this[_0x4eb496(0x89)]),this[_0x4eb496(0xc5)][_0x4eb496(0xa5)]();}[_0x4adc52(0xdc)](_0xef998b){const _0x4bdcdc=_0x4adc52;this[_0x4bdcdc(0xc0)](_0xef998b,this[_0x4bdcdc(0x89)]),this[_0x4bdcdc(0xc0)](_0xef998b,this[_0x4bdcdc(0xc5)][_0x4bdcdc(0xcd)]),this[_0x4bdcdc(0xc5)][_0x4bdcdc(0xa5)]();}[_0x4adc52(0xd0)](_0x55469e,_0x572730){const _0x3e2c2d=_0x4adc52;let _0x1a602f=this[_0x3e2c2d(0x89)][_0x3e2c2d(0xd6)](_0x574935=>_0x574935['id']===_0x55469e);_0x1a602f||(_0x1a602f=this[_0x3e2c2d(0xc5)][_0x3e2c2d(0xcd)][_0x3e2c2d(0xd6)](_0x5840f5=>_0x5840f5['id']===_0x55469e)),_0x1a602f&&(_0x1a602f[_0x3e2c2d(0xb1)]=_0x572730);}[_0x4adc52(0xb0)](_0x528c26){const _0x4de052=_0x4adc52;this[_0x4de052(0xc2)][_0x4de052(0x7f)]();for(const _0x1a17ce of _0x528c26){const _0x50fbf2=this[_0x4de052(0xb5)](_0x1a17ce,_0x4de052(0x9d),!0x1,!0x1);this[_0x4de052(0xeb)](_0x50fbf2,this[_0x4de052(0xc2)]);}}[_0x4adc52(0xae)](){const _0x4e670a=_0x4adc52;this[_0x4e670a(0x89)][_0x4e670a(0x7f)](),this[_0x4e670a(0xc5)][_0x4e670a(0x7f)]();}[_0x4adc52(0x8c)](){const _0x1c935a=_0x4adc52;this[_0x1c935a(0xc2)][_0x1c935a(0x7f)]();}[_0x4adc52(0x99)](_0x171843,_0x2e9782,_0x7ffbf7){const _0x4657f5=_0x4adc52;this[_0x4657f5(0xb7)][_0x4657f5(0x99)](_0x171843,_0x2e9782,_0x7ffbf7);}[_0x4adc52(0xb3)](){const _0x5c2677=_0x4adc52;this[_0x5c2677(0xa4)](!0x1);}[_0x4adc52(0x85)](){const _0x1e16a3=_0x4adc52;this[_0x1e16a3(0xa4)](!0x0);}[_0x4adc52(0xe4)](){const _0x27bf64=_0x4adc52;this[_0x27bf64(0x100)][_0x27bf64(0xb8)](),this[_0x27bf64(0xd5)][_0x27bf64(0x97)]=!0x1,this[_0x27bf64(0xd9)]&&this[_0x27bf64(0xd9)][_0x27bf64(0x7f)]();}[_0x4adc52(0xcb)](){const _0xc942be=_0x4adc52;this[_0xc942be(0x100)][_0xc942be(0x8a)](),this[_0xc942be(0xd5)][_0xc942be(0x97)]=!0x0;}[_0x4adc52(0x86)](_0x58617d){const _0x5e806d=_0x4adc52;this[_0x5e806d(0xb7)][_0x5e806d(0xbc)](_0x58617d),this[_0x5e806d(0xd5)][_0x5e806d(0x97)]=!0x0;}[_0x4adc52(0xd4)](_0x3e7939,_0x1e3355,_0x42af75,_0x22d2f2){const _0x563dff=_0x4adc52;this[_0x563dff(0xb7)][_0x563dff(0xd4)](_0x3e7939,_0x42af75,_0x22d2f2);}[_0x4adc52(0xe9)](_0x4c0faf){const _0x3fdc2b=_0x4adc52;this[_0x3fdc2b(0xb7)][_0x3fdc2b(0xe9)](_0x4c0faf),this[_0x3fdc2b(0xd5)][_0x3fdc2b(0x97)]=!0x1;}[_0x4adc52(0xf4)](_0x55474e){const _0x4aa1af=_0x4adc52;this[_0x4aa1af(0xe7)](this[_0x4aa1af(0x82)],this[_0x4aa1af(0x8f)],_0x55474e),this[_0x4aa1af(0xf5)](_0x55474e);}[_0x4adc52(0xf5)](_0x3c74bf){const _0x1060d7=_0x4adc52,_0x12cf9a=!_0x3c74bf[_0x1060d7(0x9a)][_0x1060d7(0x109)]&&_0x3c74bf[_0x1060d7(0x9a)][_0x1060d7(0xad)],_0x3f684e=_0x3c74bf[_0x1060d7(0x10b)][_0x1060d7(0xad)],_0x52a283=_0x3c74bf[_0x1060d7(0xd7)][_0x1060d7(0xad)];this[_0x1060d7(0xd5)][_0x1060d7(0x8d)]=_0x12cf9a||_0x3f684e||_0x52a283;}[_0x4adc52(0xf6)](){const _0x1172f6=_0x4adc52;this[_0x1172f6(0xf1)]({'tag':_0x1172f6(0xdb),'attributes':{'class':[ko,_0x1172f6(0x10c)]},'children':[{'tag':_0x1172f6(0xdb),'attributes':{'class':Eo},'children':this[_0x1172f6(0x89)]}]});}[_0x4adc52(0x95)](){const _0x52b1fd=_0x4adc52;this[_0x52b1fd(0xd5)]['on'](_0x52b1fd(0xab),()=>{const _0x1ca7d1=_0x52b1fd;this[_0x1ca7d1(0xe8)]();});}[_0x4adc52(0x107)](_0x31155e){const _0x50b62d=_0x4adc52,_0xdd8b13=new _0x1e96b6(_0x31155e);return _0xdd8b13[_0x50b62d(0x88)]({'label':_0x3b3cc5(_0x31155e,_0x50b62d(0xde)),'class':Uo+'\x20'+Vo,'icon':_0x20c5fc,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xdd8b13;}[_0x4adc52(0xc3)](_0x49f196){const _0x56cc94=_0x4adc52;return this[_0x56cc94(0xd3)](_0x49f196,vo);}[_0x4adc52(0x83)](_0x424675){const _0x1f228c=_0x4adc52,_0x336635=this[_0x1f228c(0xd3)](_0x424675,Io);return this[_0x1f228c(0x87)](_0x336635,_0x424675),_0x336635;}[_0x4adc52(0x92)](_0x2f1ccf,_0x4ad403){const _0x90720c=_0x4adc52,_0x1e00f1={'searchInputVisibleFrom':_0x4ad403[_0x90720c(0x10a)],'onBackToContext':()=>{const _0x49e7c5=_0x90720c;this[_0x49e7c5(0x85)](),this[_0x49e7c5(0x82)][_0x49e7c5(0xe0)]({'target':this[_0x49e7c5(0xd5)][_0x49e7c5(0xce)],'limiter':this[_0x49e7c5(0xaf)](),'positions':Ho});},'onResourceSelected':(_0x45f631,_0x2866eb)=>{const _0x1a4466=_0x90720c;this[_0x1a4466(0xdd)](_0x1a4466(0xda),{'source':_0x45f631,'resource':_0x2866eb});},'onLoadSourceResources':_0x29624e=>{const _0x3b99c2=_0x90720c;this[_0x3b99c2(0xdd)](_0x3b99c2(0xf3),_0x29624e);},'onBalloonClosed':()=>{const _0x2cfd9d=_0x90720c;this[_0x2cfd9d(0xd5)][_0x2cfd9d(0x97)]=!0x1;},'getLimiterElement':()=>this[_0x90720c(0xaf)](),'getTargetElement':()=>this[_0x90720c(0xd5)][_0x90720c(0xce)]};return new _0x5ef869(_0x2f1ccf,_0x4ad403[_0x90720c(0x84)],_0x1e00f1);}[_0x4adc52(0xaf)](){const _0x4b3519=_0x4adc52;return this[_0x4b3519(0xce)]?.[_0x4b3519(0x108)]('.'+Mo)||document[_0x4b3519(0xca)];}[_0x4adc52(0xd3)](_0x43261a,_0x34b94e){const _0x296aba=_0x4adc52,_0xd69494=new _0x48f9f5(_0x43261a);return _0xd69494[_0x296aba(0x101)]({'attributes':{'class':_0x34b94e}}),this[_0x296aba(0x84)][_0x296aba(0xfa)](_0xd69494),_0xd69494;}[_0x4adc52(0xe7)](_0x367520,_0x1336a3,_0x2e2da8){const _0x36d014=_0x4adc52;if(_0x367520[_0x36d014(0xa2)][_0x36d014(0x7f)](),!_0x2e2da8[_0x36d014(0x9a)][_0x36d014(0x109)]&&_0x2e2da8[_0x36d014(0x9a)][_0x36d014(0xad)]){const _0x432ec1=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xfd)),'icon':_0x366f67});_0x432ec1['on'](_0x36d014(0xab),()=>{const _0x4e0cc8=_0x36d014;this[_0x4e0cc8(0xdd)](_0x4e0cc8(0x96)),this[_0x4e0cc8(0xb3)]();}),_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x432ec1);}if(_0x2e2da8[_0x36d014(0x10b)][_0x36d014(0xad)]){const _0x11f647=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xa7)),'icon':_0x2bb478});_0x11f647['on'](_0x36d014(0xab),()=>{const _0x874e04=_0x36d014;this[_0x874e04(0xb3)](),this[_0x874e04(0xcb)](),this[_0x874e04(0x100)][_0x874e04(0xe0)]({'target':this[_0x874e04(0xd5)][_0x874e04(0xce)],'limiter':this[_0x874e04(0xaf)](),'positions':Ho}),this[_0x874e04(0xd9)][_0x874e04(0xe3)]();}),_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x11f647);}if(_0x2e2da8[_0x36d014(0xd7)][_0x36d014(0xad)]){const _0x4199d7=new _0xf7735a(_0x1336a3);_0x4199d7[_0x36d014(0x88)]({'label':_0x3b3cc5(_0x1336a3,_0x36d014(0xf0)),'icon':_0x2f67bd,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4199d7['on'](_0x36d014(0x106),(_0x542dcc,_0x5ea601)=>{const _0x15d996=_0x36d014;this[_0x15d996(0xdd)](_0x15d996(0xc1),_0x5ea601),this[_0x15d996(0xb3)]();}),_0x4199d7[_0x36d014(0xc9)]=!0x0,_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x4199d7);}for(const _0x861d6f of _0x2e2da8[_0x36d014(0xbb)]){const _0x5d6f83=this[_0x36d014(0xa9)](_0x1336a3,{'label':_0x861d6f[_0x36d014(0xf2)],'icon':_0x861d6f[_0x36d014(0xfe)]||_0x44bf07,'type':_0x36d014(0xcf)});_0x367520[_0x36d014(0xa2)][_0x36d014(0xfa)](_0x5d6f83),_0x5d6f83['on'](_0x36d014(0xab),()=>{const _0x2efdf1=_0x36d014;this[_0x2efdf1(0xb3)](),this[_0x2efdf1(0x86)](_0x861d6f);});}}[_0x4adc52(0x87)](_0x527f53,_0x5348ab){const _0x1f8e4f=_0x4adc52;this[_0x1f8e4f(0xd9)]=new _0x26d493(_0x5348ab),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0x90),(_0x50d735,_0x1b1b4f)=>{const _0x568ec6=_0x1f8e4f;this[_0x568ec6(0xa1)](_0x1b1b4f);}),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0xf7),()=>{const _0x336ea6=_0x1f8e4f;this[_0x336ea6(0xe4)](),this[_0x336ea6(0x85)](),this[_0x336ea6(0x82)][_0x336ea6(0xe0)]({'target':this[_0x336ea6(0xd5)][_0x336ea6(0xce)],'limiter':this[_0x336ea6(0xaf)](),'positions':Ho});}),this[_0x1f8e4f(0xd9)]['on'](_0x1f8e4f(0x9b),()=>{const _0x594794=_0x1f8e4f;this[_0x594794(0x100)][_0x594794(0x8e)]&&this[_0x594794(0x100)][_0x594794(0xe0)]({'target':this[_0x594794(0xd5)][_0x594794(0xce)],'limiter':this[_0x594794(0xaf)](),'positions':Ho});}),_0x527f53[_0x1f8e4f(0xa2)][_0x1f8e4f(0xfa)](this[_0x1f8e4f(0xd9)]);}[_0x4adc52(0xa9)](_0x11a0c0,_0x289a81){const _0x4301d8=_0x4adc52,_0x1088b3=_0x4301d8(0xcf)===_0x289a81[_0x4301d8(0xb4)]?new SourcesBalloonButtonView(_0x11a0c0):new _0x1e96b6(_0x11a0c0);return _0x1088b3[_0x4301d8(0x88)]({'label':_0x289a81[_0x4301d8(0xf2)],'icon':_0x289a81[_0x4301d8(0xfe)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x1088b3;}[_0x4adc52(0x80)](){const _0x67dcc=_0x4adc52;this[_0x67dcc(0xd2)](),this[_0x67dcc(0x94)]();}[_0x4adc52(0x94)](){const _0x3c4799=_0x4adc52;_0xf40a8b({'emitter':this[_0x3c4799(0x100)],'contextElements':[this[_0x3c4799(0x100)][_0x3c4799(0xce)]],'callback':()=>{const _0x509195=_0x3c4799;this[_0x509195(0xe4)]();},'activator':()=>this[_0x3c4799(0x100)][_0x3c4799(0x8e)]});}[_0x4adc52(0xa4)](_0x457374){const _0x12a027=_0x4adc52,_0xada094=this[_0x12a027(0xb6)];_0xada094[_0x12a027(0xed)][_0x12a027(0x97)]=_0x457374,_0x457374?_0xada094[_0x12a027(0xdf)][_0x12a027(0x8a)]():_0xada094[_0x12a027(0xdf)][_0x12a027(0xb8)]();}[_0x4adc52(0xd2)](){const _0x47a477=_0x4adc52,{balloonView:_0x506c9d,buttonView:_0x234e90,hideMethod:_0x4e286e}=this[_0x47a477(0xb6)];_0xf40a8b({'emitter':_0x506c9d,'contextElements':[_0x506c9d[_0x47a477(0xce)],_0x234e90[_0x47a477(0xce)]],'callback':()=>{_0x4e286e();},'activator':()=>_0x234e90[_0x47a477(0x97)]&&!this[_0x47a477(0x100)][_0x47a477(0x8e)]&&!this[_0x47a477(0xb7)][_0x47a477(0xc7)]()});}[_0x4adc52(0xb5)](_0x2e2c10,_0x442932,_0x3d7903=!0x1,_0x29654d=!0x1){const _0x24c8d5=_0x4adc52,_0x519dc2=_0x24c8d5(0x9d)===_0x442932||!0x0===_0x2e2c10[_0x24c8d5(0xcc)],_0x47841b=new _0x2fbe32(this[_0x24c8d5(0x8f)],_0x2e2c10,_0x519dc2,_0x3d7903,_0x29654d);return _0x519dc2||_0x47841b['on'](_0x24c8d5(0xbe),()=>{const _0x3b8b0b=_0x24c8d5;this[_0x3b8b0b(0xdd)](_0x3b8b0b(0xdc),_0x47841b['id']);}),_0x47841b;}[_0x4adc52(0xeb)](_0x1774a3,_0x51489f){const _0xc1e2fc=_0x4adc52;_0x51489f[_0xc1e2fc(0xfa)](_0x1774a3,0x0);}[_0x4adc52(0xc0)](_0x3a6022,_0x3d4b91){const _0x3f79d8=_0x4adc52,_0x55cab0=_0x3d4b91[_0x3f79d8(0xd6)](_0x53b284=>_0x53b284['id']===_0x3a6022);_0x55cab0&&_0x3d4b91[_0x3f79d8(0x8b)](_0x55cab0);}[_0x4adc52(0xe8)](){const _0x111663=_0x4adc52;this[_0x111663(0xd5)][_0x111663(0x97)]?this[_0x111663(0xb3)]():(this[_0x111663(0x85)](),this[_0x111663(0x82)][_0x111663(0xe0)]({'target':this[_0x111663(0xd5)][_0x111663(0xce)],'limiter':this[_0x111663(0xaf)](),'positions':Ho}));}[_0x4adc52(0xa1)](_0x8a9c5b){const _0x549946=_0x4adc52;this[_0x549946(0xd9)][_0x549946(0x7f)](),this[_0x549946(0xe4)](),this[_0x549946(0xdd)](_0x549946(0xd1),_0x8a9c5b);}}function _0x212e(_0x1ccb41,_0x32c7f1){const _0x2b38bd=_0x2b38();return _0x212e=function(_0x212e69,_0x2682c2){_0x212e69=_0x212e69-0x7e;let _0x2776c5=_0x2b38bd[_0x212e69];return _0x2776c5;},_0x212e(_0x1ccb41,_0x32c7f1);}export class SourcesBalloonButtonView extends _0x1e96b6{[_0x4adc52(0xef)];constructor(_0xfc7598){const _0x36024d=_0x4adc52;super(_0xfc7598),this[_0x36024d(0x88)]({'withText':!0x0,'role':_0x36024d(0xee)}),this[_0x36024d(0xef)]=this[_0x36024d(0xf8)](),this[_0x36024d(0x101)]({'attributes':{'class':[Ro]}});}[_0x4adc52(0x9c)](){const _0x17584e=_0x4adc52;super[_0x17584e(0x9c)](),this[_0x17584e(0x93)][_0x17584e(0xfa)](this[_0x17584e(0xef)]);}[_0x4adc52(0xf8)](){const _0x51eac2=_0x4adc52,_0x41be35=new _0x5c74f8();return _0x41be35[_0x51eac2(0xa2)]=_0x3f56cb,_0x41be35[_0x51eac2(0x101)]({'attributes':{'class':Ro+_0x51eac2(0xe2)}}),_0x41be35;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x39c0ad=_0x26d9;(function(_0x3c76d0,_0x36b867){const _0x58a445=_0x26d9,_0x173d0e=_0x3c76d0();while(!![]){try{const _0xbad45=parseInt(_0x58a445(0x11f))/0x1*(parseInt(_0x58a445(0x10c))/0x2)+parseInt(_0x58a445(0x117))/0x3*(parseInt(_0x58a445(0x115))/0x4)+parseInt(_0x58a445(0x103))/0x5+parseInt(_0x58a445(0x104))/0x6*(parseInt(_0x58a445(0x11e))/0x7)+-parseInt(_0x58a445(0x110))/0x8*(parseInt(_0x58a445(0x116))/0x9)+-parseInt(_0x58a445(0x114))/0xa+-parseInt(_0x58a445(0x105))/0xb;if(_0xbad45===_0x36b867)break;else _0x173d0e['push'](_0x173d0e['shift']());}catch(_0x33d31c){_0x173d0e['push'](_0x173d0e['shift']());}}}(_0x4563,0xd2cdd));import{ButtonView as _0x2eb9a8,View as _0xa776fd}from'ckeditor5/src/ui.js';import{IconStop as _0x17f73c}from'ckeditor5/src/icons.js';import{getTranslation as _0x23e169}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0xa776fd{[_0x39c0ad(0x118)];[_0x39c0ad(0x119)];constructor(_0x39c106){const _0xb8f99f=_0x39c0ad;super(_0x39c106),this[_0xb8f99f(0x118)]=this[_0xb8f99f(0x11b)](),this[_0xb8f99f(0x119)]=this[_0xb8f99f(0x11d)](),this[_0xb8f99f(0x106)]({'tag':_0xb8f99f(0x111),'attributes':{'class':['ck',_0xb8f99f(0x112),_0xb8f99f(0x10b)]},'children':[this[_0xb8f99f(0x119)],this[_0xb8f99f(0x118)]]});}[_0x39c0ad(0x11b)](){const _0x1eeb5f=_0x39c0ad,_0x17f15b=new _0x2eb9a8(this[_0x1eeb5f(0x11a)]);return _0x17f15b[_0x1eeb5f(0x113)]({'label':_0x23e169(this[_0x1eeb5f(0x11a)],_0x1eeb5f(0x10e)),'withText':!0x0,'class':_0x1eeb5f(0x107),'icon':_0x17f73c}),_0x17f15b['on'](_0x1eeb5f(0x11c),()=>{const _0x4e8316=_0x1eeb5f;this[_0x4e8316(0x10d)](_0x4e8316(0x10f));}),_0x17f15b;}[_0x39c0ad(0x11d)](){const _0x14efdd=_0x39c0ad,_0x31a39b=new _0xa776fd(this[_0x14efdd(0x11a)]);return _0x31a39b[_0x14efdd(0x106)]({'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x10a)]},'children':[{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x109)]},'children':[{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}},{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}},{'tag':_0x14efdd(0x111),'attributes':{'class':[_0x14efdd(0x108)]}}]},{'text':_0x23e169(this[_0x14efdd(0x11a)],_0x14efdd(0x102))}]}),_0x31a39b;}}function _0x26d9(_0x100eaf,_0x7235d7){const _0x456328=_0x4563();return _0x26d9=function(_0x26d9e5,_0x11fe08){_0x26d9e5=_0x26d9e5-0x102;let _0x232102=_0x456328[_0x26d9e5];return _0x232102;},_0x26d9(_0x100eaf,_0x7235d7);}function _0x4563(){const _0x511f93=['AI_CHAT_IS_WRITING','5855530uwkDpM','4640334qVgPoj','13434575cWARdG','setTemplate','ck-ai-button-secondary\x20ck-ai-button-stop-generating','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-icon','ck-ai-chat-controls-loader','ck-reset_all','578uLSJeL','fire','AI_CHAT_STOP_GENERATING','abortPromptStream','284792upcbfm','div','ck-ai-chat-controls-loader-wrapper','set','257090juapHg','68QghYyM','270LlATHM','214647OUmyAG','_cancelButtonView','_loaderView','locale','_createCancelButtonView','execute','_createLoaderView','7cWcLbA','61JWmoNT'];_0x4563=function(){return _0x511f93;};return _0x4563();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x206f6c=_0x3347;(function(_0x5b3d83,_0x18427c){const _0x4cbae9=_0x3347,_0x8489a8=_0x5b3d83();while(!![]){try{const _0x3a6336=-parseInt(_0x4cbae9(0x1f0))/0x1*(-parseInt(_0x4cbae9(0x1e0))/0x2)+parseInt(_0x4cbae9(0x206))/0x3+-parseInt(_0x4cbae9(0x1e5))/0x4*(-parseInt(_0x4cbae9(0x1eb))/0x5)+parseInt(_0x4cbae9(0x1d1))/0x6*(parseInt(_0x4cbae9(0x217))/0x7)+parseInt(_0x4cbae9(0x1c3))/0x8*(-parseInt(_0x4cbae9(0x1fe))/0x9)+-parseInt(_0x4cbae9(0x1c2))/0xa*(parseInt(_0x4cbae9(0x220))/0xb)+parseInt(_0x4cbae9(0x1e8))/0xc*(parseInt(_0x4cbae9(0x21d))/0xd);if(_0x3a6336===_0x18427c)break;else _0x8489a8['push'](_0x8489a8['shift']());}catch(_0x5386cf){_0x8489a8['push'](_0x8489a8['shift']());}}}(_0x2466,0x38dee));import{Collection as _0x23f1eb}from'ckeditor5/src/utils.js';import{IconAI as _0x103b6e,IconBulb as _0x14c6ea,IconWeb as _0x79d5c0}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x369e46,ButtonLabelView as _0x2f83aa,ButtonView as _0x4aee6b,createDropdown as _0x2bcede,IconView as _0x563876,UIModel as _0xfd2744,View as _0xfe161e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e060f}from'../../../aicore/utils/common-translations.js';function _0x2466(){const _0x45b92d=['setModelList','capabilities','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-name','ck-ai-chat-controls__model-selection__item-description','_commandsButton','enabled','220113JddBYE','locale','log','_createModelSelectionDropdown','disableModelSelector','clear','enableModelSelector','addMany','124338qTCORv','webSearch','listenTo','isEnabled','AI_CHAT_REASONING','name','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','description','_modelSelectionDropdown','style','AI_CHAT_SEARCH_WEB','isVisible','content','model','AI_CHAT_COMMANDS','activeModelName','createCollection','583646rQdyYl','reasoningActive','startsWith','reasoning','_createCommandsButton','ck-ai-chat-controls-button--commands','325TphazB','ck-ai-chat-controls-button','isOn','77NbExJu','div','_createReasoningButton','agent','AI_CHAT_ENABLE_REASONING','menuitemradio','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection','436510XYFZGB','8hdGSfj','execute','_createWebSearchButton','toLowerCase','setReasoning','set','bindTemplate','_createModelNameView','toggleReasoning','add','buttonView','span','length','ck-button__label','12YRvEEt','text','_modelSelectionDropdownItems','webSearchActive','extendTemplate','button','_modelNameView','modelSelectorEnabled','bind','setTemplate','AI_CHAT_DISABLE_REASONING','_webSearchButton','fire','toggleWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','114254mwewnO','tooltip','ck-ai-chat-controls__model-selection__item-name','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','1524WUwVVg','AI_CHAT_ENABLE_WEB_SEARCH','modelSelectorVisible','66600tRvWZx','selectModel','_reasoningButton','2085JJOanl','label','withText','ck-hidden','activeModelId','1QNWpRJ','setWebSearch','source','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','ck-ai-chat__prompt-capabilities','setModel'];_0x2466=function(){return _0x45b92d;};return _0x2466();}const yo=_0x206f6c(0x1f5),Uo=_0x206f6c(0x21e),Go=_0x206f6c(0x21c),jo=_0x206f6c(0x1c1),Yo=_0x206f6c(0x1e2),qo=_0x206f6c(0x1fb),zo=_0x206f6c(0x1f3),Fo='n';function _0x3347(_0x2e6668,_0x11fddc){const _0x246633=_0x2466();return _0x3347=function(_0x33475c,_0xb562bb){_0x33475c=_0x33475c-0x1bb;let _0x2802ca=_0x246633[_0x33475c];return _0x2802ca;},_0x3347(_0x2e6668,_0x11fddc);}export class AIChatPromptCapabilitiesView extends _0xfe161e{[_0x206f6c(0x1dc)];[_0x206f6c(0x1ea)];[_0x206f6c(0x1fc)];[_0x206f6c(0x20e)];[_0x206f6c(0x1d3)];[_0x206f6c(0x1d7)];constructor(_0x554e81){const _0x389d0e=_0x206f6c;super(_0x554e81),this[_0x389d0e(0x1c8)](_0x389d0e(0x1d4),!0x1),this[_0x389d0e(0x1c8)](_0x389d0e(0x218),!0x1),this[_0x389d0e(0x1c8)](_0x389d0e(0x1e7),!0x0),this[_0x389d0e(0x1c8)](_0x389d0e(0x1d8),!0x0),this[_0x389d0e(0x1c8)](_0x389d0e(0x1ef),null),this[_0x389d0e(0x1c8)](_0x389d0e(0x215),null),this[_0x389d0e(0x20e)]=this[_0x389d0e(0x201)](),this[_0x389d0e(0x1d7)]=this[_0x389d0e(0x1ca)](),this[_0x389d0e(0x1dc)]=this[_0x389d0e(0x1c5)](),this[_0x389d0e(0x1ea)]=this[_0x389d0e(0x1bc)](),this[_0x389d0e(0x1fc)]=this[_0x389d0e(0x21b)](),this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1d9)](_0x389d0e(0x211))['to'](this,_0x389d0e(0x1e7),_0x101719=>_0x101719),this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x1d8),_0x20ea27=>_0x20ea27?this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1ec)]:_0x5e060f(this[_0x389d0e(0x1ff)],_0x389d0e(0x20c))),this[_0x389d0e(0x20e)][_0x389d0e(0x1d9)](_0x389d0e(0x209))['to'](this,_0x389d0e(0x1d8),_0x11e00c=>_0x11e00c),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x21f))['to'](this,_0x389d0e(0x1d4),_0xa261c=>_0xa261c),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x1ed))['to'](this,_0x389d0e(0x1e7),_0x4d112f=>!_0x4d112f),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x1d4),_0x537aff=>_0x5e060f(this[_0x389d0e(0x1ff)],_0x537aff?_0x389d0e(0x1e4):_0x389d0e(0x1e6))),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x21f))['to'](this,_0x389d0e(0x218),_0xd0bd60=>_0xd0bd60),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x1ed))['to'](this,_0x389d0e(0x1e7),_0x407e17=>!_0x407e17),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x218),_0x49abe4=>_0x5e060f(this[_0x389d0e(0x1ff)],_0x49abe4?_0x389d0e(0x1db):_0x389d0e(0x1be))),this[_0x389d0e(0x1da)]({'tag':_0x389d0e(0x1bb),'attributes':{'class':[yo]},'children':[this[_0x389d0e(0x20e)],this[_0x389d0e(0x1d7)],this[_0x389d0e(0x1dc)],this[_0x389d0e(0x1ea)],this[_0x389d0e(0x1fc)]]}),this[_0x389d0e(0x1d3)]=new _0x23f1eb(),_0x369e46(this[_0x389d0e(0x20e)],this[_0x389d0e(0x1d3)]);}[_0x206f6c(0x1f7)](_0x3576b0,_0x5d64ed){const _0x4ce994=_0x206f6c;if(this[_0x4ce994(0x1c8)](_0x4ce994(0x1e7),!(_0x5d64ed&&_0x3576b0[_0x4ce994(0x1cf)]<=0x1)),this[_0x4ce994(0x1d3)][_0x4ce994(0x203)](),_0x3576b0?.[_0x4ce994(0x1cf)])for(const _0x120b82 of _0x3576b0){const _0x2abf8f=new _0xfd2744({'label':_0x120b82[_0x4ce994(0x20b)],'withText':!0x0,'role':_0x4ce994(0x1bf),'id':_0x120b82['id'],'model':_0x120b82});_0x2abf8f[_0x4ce994(0x1d9)](_0x4ce994(0x21f))['to'](this,_0x4ce994(0x1ef),_0x5ed78b=>_0x5ed78b===_0x120b82['id']),this[_0x4ce994(0x1d3)][_0x4ce994(0x1cc)]({'type':_0x4ce994(0x1d6),'model':_0x2abf8f,'labelView':new Us(this[_0x4ce994(0x1ff)],_0x120b82)});}}[_0x206f6c(0x1f1)](_0x4c34c5){const _0x561d5f=_0x206f6c;this[_0x561d5f(0x1c8)](_0x561d5f(0x1d4),_0x4c34c5);}[_0x206f6c(0x1c7)](_0x54ec7a){const _0x122b0b=_0x206f6c;this[_0x122b0b(0x1c8)](_0x122b0b(0x218),_0x54ec7a);}[_0x206f6c(0x1f6)](_0x540ae2){const _0x49b12f=_0x206f6c;if(!_0x540ae2)return;this[_0x49b12f(0x1ef)]=_0x540ae2['id'],this[_0x49b12f(0x215)]=_0x540ae2[_0x49b12f(0x20b)]||_0x540ae2['id'],this[_0x49b12f(0x20e)][_0x49b12f(0x1cd)][_0x49b12f(0x1c8)](_0x49b12f(0x1ec),_0x540ae2[_0x49b12f(0x20b)]),this[_0x49b12f(0x20e)][_0x49b12f(0x1cd)][_0x49b12f(0x1c8)](_0x49b12f(0x1e1),_0x540ae2[_0x49b12f(0x20b)]);const _0x8c2321=_0x540ae2[_0x49b12f(0x1f8)][_0x49b12f(0x207)]?.[_0x49b12f(0x1fd)]??!0x1;this[_0x49b12f(0x1c8)](_0x49b12f(0x1d4),!0x1),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x21f),!0x1),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x209),_0x8c2321),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x211),_0x8c2321);const _0x34ed02=_0x540ae2[_0x49b12f(0x1f8)][_0x49b12f(0x21a)]?.[_0x49b12f(0x1fd)]??!0x1;this[_0x49b12f(0x1c8)](_0x49b12f(0x218),!0x1),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x21f),!0x1),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x209),_0x34ed02),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x211),_0x34ed02);}[_0x206f6c(0x204)](){const _0x380990=_0x206f6c;this[_0x380990(0x1c8)](_0x380990(0x1d8),!0x0),this[_0x380990(0x1c8)](_0x380990(0x1e7),!0x0);}[_0x206f6c(0x202)](_0x3c6fc7){const _0x51a72e=_0x206f6c;this[_0x51a72e(0x1c8)](_0x51a72e(0x1d8),!0x1),_0x3c6fc7&&this[_0x51a72e(0x1c8)](_0x51a72e(0x1e7),!0x1);}[_0x206f6c(0x1c5)](){const _0x1e687a=_0x206f6c,_0xa2f9d9=new _0x4aee6b();return _0xa2f9d9[_0x1e687a(0x1c8)]({'label':_0x5e060f(this[_0x1e687a(0x1ff)],_0x1e687a(0x210)),'icon':_0x79d5c0,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xa2f9d9['on'](_0x1e687a(0x1c4),()=>{const _0x5e6a2d=_0x1e687a;this[_0x5e6a2d(0x1dd)](_0x5e6a2d(0x1de));}),_0xa2f9d9;}[_0x206f6c(0x1bc)](){const _0x55d491=_0x206f6c,_0x507f90=new _0x4aee6b();return _0x507f90[_0x55d491(0x1c8)]({'label':_0x5e060f(this[_0x55d491(0x1ff)],_0x55d491(0x20a)),'icon':_0x14c6ea,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x507f90['on'](_0x55d491(0x1c4),()=>{const _0x1d00fb=_0x55d491;this[_0x1d00fb(0x1dd)](_0x1d00fb(0x1cb));}),_0x507f90;}[_0x206f6c(0x21b)](){const _0x20c918=_0x206f6c,_0x557a35=new _0x4aee6b();return _0x557a35[_0x20c918(0x1c8)]({'label':_0x5e060f(this[_0x20c918(0x1ff)],_0x20c918(0x214)),'icon':_0x103b6e,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e060f(this[_0x20c918(0x1ff)],_0x20c918(0x214)),'tooltipPosition':Fo}),_0x557a35[_0x20c918(0x1d5)]({'attributes':{'class':[Go]}}),_0x557a35['on'](_0x20c918(0x1c4),()=>{const _0x5cbe8d=_0x20c918;console[_0x5cbe8d(0x200)](_0x5cbe8d(0x1df)),alert(_0x5cbe8d(0x1df));}),_0x557a35;}[_0x206f6c(0x201)](){const _0x194eb6=_0x206f6c,_0x7f88fc=_0x2bcede(this[_0x194eb6(0x1ff)]);return _0x7f88fc[_0x194eb6(0x1c8)]({'panelPosition':'ne','class':[jo]}),_0x7f88fc[_0x194eb6(0x1cd)][_0x194eb6(0x1c8)]({'label':_0x5e060f(this[_0x194eb6(0x1ff)],_0x194eb6(0x1c0)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x194eb6(0x208)](_0x7f88fc,_0x194eb6(0x1c4),_0x232cc7=>{const _0x1187d3=_0x194eb6;this[_0x1187d3(0x1dd)](_0x1187d3(0x1e9),_0x232cc7[_0x1187d3(0x1f2)][_0x1187d3(0x213)]);}),_0x7f88fc;}[_0x206f6c(0x1ca)](){const _0x29bfc5=_0x206f6c,_0x58160f=new Jo(this[_0x29bfc5(0x1ff)]);return _0x58160f[_0x29bfc5(0x1d9)](_0x29bfc5(0x1d2))['to'](this,_0x29bfc5(0x215),_0x485493=>_0x485493??''),_0x58160f[_0x29bfc5(0x1d9)](_0x29bfc5(0x211))['to'](this,_0x29bfc5(0x1e7),this,_0x29bfc5(0x215),(_0x3f0bcc,_0xbcf433)=>!_0x3f0bcc&&!_0xbcf433?.[_0x29bfc5(0x1c6)]()[_0x29bfc5(0x219)](_0x29bfc5(0x1bd))),_0x58160f;}}class Us extends _0x2f83aa{constructor(_0x2eebfb,_0x2b3fa3){const _0x4d8915=_0x206f6c;super();const _0x202709=this[_0x4d8915(0x1c9)],_0x4b7810=this[_0x4d8915(0x216)]();this[_0x4d8915(0x1da)]({'tag':_0x4d8915(0x1bb),'attributes':{'class':['ck',_0x4d8915(0x1d0)],'style':_0x202709['to'](_0x4d8915(0x20f)),'id':_0x202709['to']('id')},'children':[{'tag':_0x4d8915(0x1bb),'attributes':{'class':[Yo]},'children':[{'text':_0x202709['to'](_0x4d8915(0x1d2))}]},{'tag':_0x4d8915(0x1bb),'attributes':{'class':[qo]},'children':[{'tag':_0x4d8915(0x1ce),'children':[{'text':_0x2b3fa3[_0x4d8915(0x20d)]}]}]},{'tag':_0x4d8915(0x1bb),'attributes':{'class':[zo]},'children':_0x4b7810}]}),_0x4b7810[_0x4d8915(0x205)](this[_0x4d8915(0x1e3)](_0x2eebfb,_0x79d5c0,_0x4d8915(0x210),_0x2b3fa3[_0x4d8915(0x1f8)][_0x4d8915(0x207)]?.[_0x4d8915(0x1fd)]??!0x1)),_0x4b7810[_0x4d8915(0x205)](this[_0x4d8915(0x1e3)](_0x2eebfb,_0x14c6ea,_0x4d8915(0x20a),_0x2b3fa3[_0x4d8915(0x1f8)][_0x4d8915(0x21a)]?.[_0x4d8915(0x1fd)]??!0x1));}[_0x206f6c(0x1e3)](_0x2645a2,_0x19c463,_0x572ba6,_0x3e008f){const _0x37417d=_0x206f6c,_0xb42ce8=new _0x563876();_0xb42ce8[_0x37417d(0x212)]=_0x19c463;const _0x320463=new _0xfe161e(_0x2645a2);_0x320463[_0x37417d(0x1da)]({'tag':_0x37417d(0x1ce),'children':[{'text':_0x5e060f(_0x2645a2,_0x572ba6)+':\x20'}]});const _0x4ced8d=new _0xfe161e(_0x2645a2);return _0x4ced8d[_0x37417d(0x1da)]({'tag':_0x37417d(0x1ce),'children':[{'text':_0x5e060f(_0x2645a2,_0x3e008f?_0x37417d(0x1f4):_0x37417d(0x1f9))}]}),[_0xb42ce8,_0x320463,_0x4ced8d];}}class Jo extends _0xfe161e{constructor(_0x53c167){const _0x34dae2=_0x206f6c;super(_0x53c167),this[_0x34dae2(0x1c8)](_0x34dae2(0x1d2),void 0x0),this[_0x34dae2(0x1c8)](_0x34dae2(0x211),!0x0);const _0x75ee0a=this[_0x34dae2(0x1c9)];this[_0x34dae2(0x1da)]({'tag':_0x34dae2(0x1ce),'attributes':{'class':['ck',_0x34dae2(0x1fa),_0x75ee0a['if'](_0x34dae2(0x211),_0x34dae2(0x1ee),_0x47e019=>!_0x47e019)]},'children':[{'text':_0x75ee0a['to'](_0x34dae2(0x1d2))}]});}}
|
|
23
|
+
const _0x23067d=_0x3f97;(function(_0x153316,_0x2ef88b){const _0xd3f95e=_0x3f97,_0x53be0f=_0x153316();while(!![]){try{const _0x2aa56f=-parseInt(_0xd3f95e(0x17a))/0x1*(parseInt(_0xd3f95e(0x11f))/0x2)+-parseInt(_0xd3f95e(0x149))/0x3+parseInt(_0xd3f95e(0x143))/0x4+-parseInt(_0xd3f95e(0x16d))/0x5*(-parseInt(_0xd3f95e(0x16b))/0x6)+-parseInt(_0xd3f95e(0x16e))/0x7+parseInt(_0xd3f95e(0x17c))/0x8+-parseInt(_0xd3f95e(0x12a))/0x9*(-parseInt(_0xd3f95e(0x144))/0xa);if(_0x2aa56f===_0x2ef88b)break;else _0x53be0f['push'](_0x53be0f['shift']());}catch(_0x2e0176){_0x53be0f['push'](_0x53be0f['shift']());}}}(_0x7d38,0x97dab));import{Collection as _0x536faf}from'ckeditor5/src/utils.js';import{IconAI as _0x54d5a5,IconBulb as _0x5e110f,IconWeb as _0x50c83b}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x276fc9,ButtonLabelView as _0x5aa600,ButtonView as _0x4e05d0,createDropdown as _0x3ba751,IconView as _0x1f8dd1,UIModel as _0x1241d6,View as _0x421a9a}from'ckeditor5/src/ui.js';import{getTranslation as _0x987e38}from'../../../aicore/utils/common-translations.js';function _0x7d38(){const _0x56dc4b=['_createReasoningButton','webSearchActive','model','isOn','AI_CHAT_DISABLE_REASONING','_modelSelectionDropdown','setReasoning','webSearch','1053612wHMwJb','10lHDujW','tooltip','_modelNameView','span','AI_CHAT_REASONING','2800803lMpXFk','AI_CHAT_ENABLE_REASONING','clear','isVisible','ck-ai-chat-controls-button','enabled','activeModelName','_createCommandsButton','selectModel','listenTo','_reasoningButton','_commandsButton','name','AI_CHAT_ENABLE_WEB_SEARCH','bind','_createWebSearchButton','ck-ai-chat-controls__model-selection__item-description','setWebSearch','toLowerCase','log','extendTemplate','set','activeModelId','setModel','setTemplate','AI_CHAT_CAPABILITIES_NO','label','AI_CHAT_COMMANDS','_createModelNameView','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','reasoningActive','button','ck-ai-chat-controls__model-selection','102lKMspB','AI_CHAT_CAPABILITIES_YES','169610gIZoBG','7333578VucBFQ','ck-button__label','_createModelSelectionDropdown','locale','buttonView','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','withText','description','fire','setModelList','ck-ai-chat-controls__model-name','_modelSelectionDropdownItems','64618bwLGHB','modelSelectorVisible','1660944vSOyiG','ck-ai-chat-controls__model-selection__item-name','execute','enableModelSelector','reasoning','startsWith','2ROkZqQ','addMany','ck-ai-chat-controls-button--commands','isEnabled','createCollection','disableModelSelector','toggleReasoning','_webSearchButton','bindTemplate','text','source','14581557CBNTLW','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','modelSelectorEnabled','ck-hidden','agent','div','ck-ai-chat-controls__model-selection__item-capabilities','content','add','menuitemradio','toggleWebSearch','style','ck-ai-chat__prompt-capabilities','capabilities','AI_CHAT_SEARCH_WEB','length','_getCapabilityParts'];_0x7d38=function(){return _0x56dc4b;};return _0x7d38();}function _0x3f97(_0xc82fba,_0x149811){const _0x7d3883=_0x7d38();return _0x3f97=function(_0x3f97d7,_0x36116b){_0x3f97d7=_0x3f97d7-0x11f;let _0x21aaef=_0x7d3883[_0x3f97d7];return _0x21aaef;},_0x3f97(_0xc82fba,_0x149811);}const yo=_0x23067d(0x136),Uo=_0x23067d(0x14d),Go=_0x23067d(0x121),jo=_0x23067d(0x16a),Yo=_0x23067d(0x17d),qo=_0x23067d(0x159),zo=_0x23067d(0x130),Fo='n';export class AIChatPromptCapabilitiesView extends _0x421a9a{[_0x23067d(0x126)];[_0x23067d(0x153)];[_0x23067d(0x154)];[_0x23067d(0x140)];[_0x23067d(0x179)];[_0x23067d(0x146)];constructor(_0x5b1c48){const _0x29f3fd=_0x23067d;super(_0x5b1c48),this[_0x29f3fd(0x15e)](_0x29f3fd(0x13c),!0x1),this[_0x29f3fd(0x15e)](_0x29f3fd(0x168),!0x1),this[_0x29f3fd(0x15e)](_0x29f3fd(0x17b),!0x0),this[_0x29f3fd(0x15e)](_0x29f3fd(0x12c),!0x0),this[_0x29f3fd(0x15e)](_0x29f3fd(0x15f),null),this[_0x29f3fd(0x15e)](_0x29f3fd(0x14f),null),this[_0x29f3fd(0x140)]=this[_0x29f3fd(0x170)](),this[_0x29f3fd(0x146)]=this[_0x29f3fd(0x165)](),this[_0x29f3fd(0x126)]=this[_0x29f3fd(0x158)](),this[_0x29f3fd(0x153)]=this[_0x29f3fd(0x13b)](),this[_0x29f3fd(0x154)]=this[_0x29f3fd(0x150)](),this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x157)](_0x29f3fd(0x14c))['to'](this,_0x29f3fd(0x17b),_0xe6de17=>_0xe6de17),this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x12c),_0x2acaeb=>_0x2acaeb?this[_0x29f3fd(0x140)][_0x29f3fd(0x172)][_0x29f3fd(0x163)]:_0x987e38(this[_0x29f3fd(0x171)],_0x29f3fd(0x173))),this[_0x29f3fd(0x140)][_0x29f3fd(0x157)](_0x29f3fd(0x122))['to'](this,_0x29f3fd(0x12c),_0x5abafa=>_0x5abafa),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x13e))['to'](this,_0x29f3fd(0x13c),_0x5c5f86=>_0x5c5f86),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x174))['to'](this,_0x29f3fd(0x17b),_0x4f3cb3=>!_0x4f3cb3),this[_0x29f3fd(0x126)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x13c),_0x349592=>_0x987e38(this[_0x29f3fd(0x171)],_0x349592?_0x29f3fd(0x167):_0x29f3fd(0x156))),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x13e))['to'](this,_0x29f3fd(0x168),_0x4c9769=>_0x4c9769),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x174))['to'](this,_0x29f3fd(0x17b),_0x297ed4=>!_0x297ed4),this[_0x29f3fd(0x153)][_0x29f3fd(0x157)](_0x29f3fd(0x145))['to'](this,_0x29f3fd(0x168),_0x204ca9=>_0x987e38(this[_0x29f3fd(0x171)],_0x204ca9?_0x29f3fd(0x13f):_0x29f3fd(0x14a))),this[_0x29f3fd(0x161)]({'tag':_0x29f3fd(0x12f),'attributes':{'class':[yo]},'children':[this[_0x29f3fd(0x140)],this[_0x29f3fd(0x146)],this[_0x29f3fd(0x126)],this[_0x29f3fd(0x153)],this[_0x29f3fd(0x154)]]}),this[_0x29f3fd(0x179)]=new _0x536faf(),_0x276fc9(this[_0x29f3fd(0x140)],this[_0x29f3fd(0x179)]);}[_0x23067d(0x177)](_0x4c190f,_0x20f00e){const _0x40501c=_0x23067d;if(this[_0x40501c(0x15e)](_0x40501c(0x17b),!(_0x20f00e&&_0x4c190f[_0x40501c(0x139)]<=0x1)),this[_0x40501c(0x179)][_0x40501c(0x14b)](),_0x4c190f?.[_0x40501c(0x139)])for(const _0xc58aff of _0x4c190f){const _0x449c58=new _0x1241d6({'label':_0xc58aff[_0x40501c(0x155)],'withText':!0x0,'role':_0x40501c(0x133),'id':_0xc58aff['id'],'model':_0xc58aff});_0x449c58[_0x40501c(0x157)](_0x40501c(0x13e))['to'](this,_0x40501c(0x15f),_0x6d64e1=>_0x6d64e1===_0xc58aff['id']),this[_0x40501c(0x179)][_0x40501c(0x132)]({'type':_0x40501c(0x169),'model':_0x449c58,'labelView':new Js(this[_0x40501c(0x171)],_0xc58aff)});}}[_0x23067d(0x15a)](_0x3a322e){const _0xcbc7ea=_0x23067d;this[_0xcbc7ea(0x15e)](_0xcbc7ea(0x13c),_0x3a322e);}[_0x23067d(0x141)](_0x56b59a){const _0x45c722=_0x23067d;this[_0x45c722(0x15e)](_0x45c722(0x168),_0x56b59a);}[_0x23067d(0x160)](_0x1a73a7){const _0x64640e=_0x23067d;if(!_0x1a73a7)return;this[_0x64640e(0x15f)]=_0x1a73a7['id'],this[_0x64640e(0x14f)]=_0x1a73a7[_0x64640e(0x155)]||_0x1a73a7['id'],this[_0x64640e(0x140)][_0x64640e(0x172)][_0x64640e(0x15e)](_0x64640e(0x163),_0x1a73a7[_0x64640e(0x155)]),this[_0x64640e(0x140)][_0x64640e(0x172)][_0x64640e(0x15e)](_0x64640e(0x145),_0x1a73a7[_0x64640e(0x155)]);const _0x4200c0=_0x1a73a7[_0x64640e(0x137)][_0x64640e(0x142)]?.[_0x64640e(0x14e)]??!0x1;this[_0x64640e(0x15e)](_0x64640e(0x13c),!0x1),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x13e),!0x1),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x122),_0x4200c0),this[_0x64640e(0x126)][_0x64640e(0x15e)](_0x64640e(0x14c),_0x4200c0);const _0x5b4561=_0x1a73a7[_0x64640e(0x137)][_0x64640e(0x180)]?.[_0x64640e(0x14e)]??!0x1;this[_0x64640e(0x15e)](_0x64640e(0x168),!0x1),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x13e),!0x1),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x122),_0x5b4561),this[_0x64640e(0x153)][_0x64640e(0x15e)](_0x64640e(0x14c),_0x5b4561);}[_0x23067d(0x17f)](){const _0x3bd0f6=_0x23067d;this[_0x3bd0f6(0x15e)](_0x3bd0f6(0x12c),!0x0),this[_0x3bd0f6(0x15e)](_0x3bd0f6(0x17b),!0x0);}[_0x23067d(0x124)](_0x1fe4b1){const _0x136264=_0x23067d;this[_0x136264(0x15e)](_0x136264(0x12c),!0x1),_0x1fe4b1&&this[_0x136264(0x15e)](_0x136264(0x17b),!0x1);}[_0x23067d(0x158)](){const _0x4f8a99=_0x23067d,_0x2ca694=new _0x4e05d0();return _0x2ca694[_0x4f8a99(0x15e)]({'label':_0x987e38(this[_0x4f8a99(0x171)],_0x4f8a99(0x138)),'icon':_0x50c83b,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x2ca694['on'](_0x4f8a99(0x17e),()=>{const _0x4870ec=_0x4f8a99;this[_0x4870ec(0x176)](_0x4870ec(0x134));}),_0x2ca694;}[_0x23067d(0x13b)](){const _0x5ad203=_0x23067d,_0x476310=new _0x4e05d0();return _0x476310[_0x5ad203(0x15e)]({'label':_0x987e38(this[_0x5ad203(0x171)],_0x5ad203(0x148)),'icon':_0x5e110f,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x476310['on'](_0x5ad203(0x17e),()=>{const _0x47d5bf=_0x5ad203;this[_0x47d5bf(0x176)](_0x47d5bf(0x125));}),_0x476310;}[_0x23067d(0x150)](){const _0x87a658=_0x23067d,_0x1ec238=new _0x4e05d0();return _0x1ec238[_0x87a658(0x15e)]({'label':_0x987e38(this[_0x87a658(0x171)],_0x87a658(0x164)),'icon':_0x54d5a5,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x987e38(this[_0x87a658(0x171)],_0x87a658(0x164)),'tooltipPosition':Fo}),_0x1ec238[_0x87a658(0x15d)]({'attributes':{'class':[Go]}}),_0x1ec238['on'](_0x87a658(0x17e),()=>{const _0x458c25=_0x87a658;console[_0x458c25(0x15c)](_0x458c25(0x166)),alert(_0x458c25(0x166));}),_0x1ec238;}[_0x23067d(0x170)](){const _0x412f81=_0x23067d,_0x28188c=_0x3ba751(this[_0x412f81(0x171)]);return _0x28188c[_0x412f81(0x15e)]({'panelPosition':'ne','class':[jo]}),_0x28188c[_0x412f81(0x172)][_0x412f81(0x15e)]({'label':_0x987e38(this[_0x412f81(0x171)],_0x412f81(0x12b)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x412f81(0x152)](_0x28188c,_0x412f81(0x17e),_0x4cd2c8=>{const _0x138a66=_0x412f81;this[_0x138a66(0x176)](_0x138a66(0x151),_0x4cd2c8[_0x138a66(0x129)][_0x138a66(0x13d)]);}),_0x28188c;}[_0x23067d(0x165)](){const _0x145082=_0x23067d,_0x136105=new Jo(this[_0x145082(0x171)]);return _0x136105[_0x145082(0x157)](_0x145082(0x128))['to'](this,_0x145082(0x14f),_0x479a94=>_0x479a94??''),_0x136105[_0x145082(0x157)](_0x145082(0x14c))['to'](this,_0x145082(0x17b),this,_0x145082(0x14f),(_0x1d8a55,_0x894ccb)=>!_0x1d8a55&&!_0x894ccb?.[_0x145082(0x15b)]()[_0x145082(0x181)](_0x145082(0x12e))),_0x136105;}}class Js extends _0x5aa600{constructor(_0x3d5f4a,_0x4b0e62){const _0x3527a0=_0x23067d;super();const _0x211c91=this[_0x3527a0(0x127)],_0x267164=this[_0x3527a0(0x123)]();this[_0x3527a0(0x161)]({'tag':_0x3527a0(0x12f),'attributes':{'class':['ck',_0x3527a0(0x16f)],'style':_0x211c91['to'](_0x3527a0(0x135)),'id':_0x211c91['to']('id')},'children':[{'tag':_0x3527a0(0x12f),'attributes':{'class':[Yo]},'children':[{'text':_0x211c91['to'](_0x3527a0(0x128))}]},{'tag':_0x3527a0(0x12f),'attributes':{'class':[qo]},'children':[{'tag':_0x3527a0(0x147),'children':[{'text':_0x4b0e62[_0x3527a0(0x175)]}]}]},{'tag':_0x3527a0(0x12f),'attributes':{'class':[zo]},'children':_0x267164}]}),_0x267164[_0x3527a0(0x120)](this[_0x3527a0(0x13a)](_0x3d5f4a,_0x50c83b,_0x3527a0(0x138),_0x4b0e62[_0x3527a0(0x137)][_0x3527a0(0x142)]?.[_0x3527a0(0x14e)]??!0x1)),_0x267164[_0x3527a0(0x120)](this[_0x3527a0(0x13a)](_0x3d5f4a,_0x5e110f,_0x3527a0(0x148),_0x4b0e62[_0x3527a0(0x137)][_0x3527a0(0x180)]?.[_0x3527a0(0x14e)]??!0x1));}[_0x23067d(0x13a)](_0x4badd6,_0xd51b6c,_0x4ad453,_0x3efd45){const _0x578c53=_0x23067d,_0x47aa48=new _0x1f8dd1();_0x47aa48[_0x578c53(0x131)]=_0xd51b6c;const _0x537001=new _0x421a9a(_0x4badd6);_0x537001[_0x578c53(0x161)]({'tag':_0x578c53(0x147),'children':[{'text':_0x987e38(_0x4badd6,_0x4ad453)+':\x20'}]});const _0x45ebfb=new _0x421a9a(_0x4badd6);return _0x45ebfb[_0x578c53(0x161)]({'tag':_0x578c53(0x147),'children':[{'text':_0x987e38(_0x4badd6,_0x3efd45?_0x578c53(0x16c):_0x578c53(0x162))}]}),[_0x47aa48,_0x537001,_0x45ebfb];}}class Jo extends _0x421a9a{constructor(_0x21a1c5){const _0x2d9735=_0x23067d;super(_0x21a1c5),this[_0x2d9735(0x15e)](_0x2d9735(0x128),void 0x0),this[_0x2d9735(0x15e)](_0x2d9735(0x14c),!0x0);const _0x4c2eba=this[_0x2d9735(0x127)];this[_0x2d9735(0x161)]({'tag':_0x2d9735(0x147),'attributes':{'class':['ck',_0x2d9735(0x178),_0x4c2eba['if'](_0x2d9735(0x14c),_0x2d9735(0x12d),_0x502f05=>!_0x502f05)]},'children':[{'text':_0x4c2eba['to'](_0x2d9735(0x128))}]});}}
|