@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 4.51 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x332fd8=_0x4315;(function(_0x3ae1ea,_0x57ec2d){const _0x434efe=_0x4315,_0x5cda1e=_0x3ae1ea();while(!![]){try{const _0x15f6aa=-parseInt(_0x434efe(0x79))/0x1*(-parseInt(_0x434efe(0x70))/0x2)+parseInt(_0x434efe(0x7f))/0x3*(-parseInt(_0x434efe(0x80))/0x4)+parseInt(_0x434efe(0x68))/0x5*(-parseInt(_0x434efe(0x8a))/0x6)+-parseInt(_0x434efe(0x86))/0x7*(parseInt(_0x434efe(0x6f))/0x8)+-parseInt(_0x434efe(0x76))/0x9*(-parseInt(_0x434efe(0x82))/0xa)+parseInt(_0x434efe(0x7c))/0xb*(parseInt(_0x434efe(0x6c))/0xc)+-parseInt(_0x434efe(0x6b))/0xd*(-parseInt(_0x434efe(0x83))/0xe);if(_0x15f6aa===_0x57ec2d)break;else _0x5cda1e['push'](_0x5cda1e['shift']());}catch(_0x531044){_0x5cda1e['push'](_0x5cda1e['shift']());}}}(_0x42ed,0xeda7a));import{View as _0x2bfcb4}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x1ebe0c}from'../controls/aichatcontextitembuttonview.js';function _0x42ed(){const _0xd8b086=['locale','_overflowManager','40XERAwW','19678jUmhYK','ck-reset_all','setContainerElement','ck-ai-chat-context-chips-wrapper','ck-ai-chat__feed__context-chips','_contextChips','18fkjrCs','ck-ai-chat-controls-button','_createContextChips','10GlUFyU','createCollection','setTemplate','6665021fjUMgI','querySelector','div','51yiNCKe','253196MFJKPo','ck-ai-chat-controls_context_show-more-button','1112830LXBVYV','1167222IqUgBm','ck-ai-chat-context-chips-wrapper-balloon','render','1869798ZpTaYJ','element','_bodyCollection','destroy','6QxnxNe','reorganizeChips','20985jJzeWC','ck-ai-chat-context-controls__show-more-balloon-panel','add','195dARDyH','36fdzKqK'];_0x42ed=function(){return _0xd8b086;};return _0x42ed();}function _0x4315(_0x58b850,_0x271d74){const _0x42edfd=_0x42ed();return _0x4315=function(_0x4315d1,_0x14764a){_0x4315d1=_0x4315d1-0x68;let _0x16b9ff=_0x42edfd[_0x4315d1];return _0x16b9ff;},_0x4315(_0x58b850,_0x271d74);}import{AIChatChipsOverflowManager as _0x1649fb}from'../controls/aichatchipsoverflowmanager.js';const $o=_0x332fd8(0x74),Ko=_0x332fd8(0x73),Qo=_0x332fd8(0x84),Uo=_0x332fd8(0x77),No=_0x332fd8(0x81),Oo=_0x332fd8(0x69);export class AIChatFeedContextChipsView extends _0x2bfcb4{[_0x332fd8(0x75)]=this[_0x332fd8(0x7a)]();[_0x332fd8(0x6e)];[_0x332fd8(0x88)];constructor(_0x1de347,_0x4e2e40,_0x20f85c){const _0x5211e5=_0x332fd8;super(_0x1de347),this[_0x5211e5(0x88)]=_0x20f85c,this[_0x5211e5(0x78)](_0x4e2e40);const _0x1b1fca={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Qo,'controlsButton':Uo}};this[_0x5211e5(0x6e)]=new _0x1649fb(_0x1de347,this[_0x5211e5(0x75)],_0x1b1fca,this[_0x5211e5(0x88)],this),this[_0x5211e5(0x7b)]({'tag':_0x5211e5(0x7e),'attributes':{'class':[$o,'ck',_0x5211e5(0x71)]},'children':[{'tag':_0x5211e5(0x7e),'attributes':{'class':Ko},'children':this[_0x5211e5(0x75)]}]});}[_0x332fd8(0x85)](){const _0x1eee74=_0x332fd8;super[_0x1eee74(0x85)]();const _0x3d4c9a=this[_0x1eee74(0x87)][_0x1eee74(0x7d)]('.'+Ko);_0x3d4c9a&&(this[_0x1eee74(0x6e)][_0x1eee74(0x72)](_0x3d4c9a),this[_0x1eee74(0x6e)][_0x1eee74(0x8b)]());}[_0x332fd8(0x89)](){const _0x22b2b9=_0x332fd8;super[_0x22b2b9(0x89)](),this[_0x22b2b9(0x6e)][_0x22b2b9(0x89)]();}[_0x332fd8(0x78)](_0x58d112){const _0x4f01df=_0x332fd8;for(const _0x56ffd5 of _0x58d112){const _0x11df10=new _0x1ebe0c(this[_0x4f01df(0x6d)],_0x56ffd5,!0x0,!0x1);this[_0x4f01df(0x75)][_0x4f01df(0x6a)](_0x11df10);}}}