@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 3.78 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x2e1b(){const _0x5b3979=['add','fire','ck-ai-chat__start-conversation','resizeButton','778DKuMCL','5614308IqKMoI','ck-ai-header\x20ck-ai-header_chat','conversationStartButton','_createStartConversationButton','13385RjUaHt','2976xDWRbc','execute','locale','isMaximized','172774oAsSnT','1891761wHPaDb','501sNbNhd','children','1920YIDlUX','1280VzHGHQ','AI_CHAT_HEADING','27555FthbaA','22239epExiQ','set','startConversation','AI_CHAT_LABEL_NEW_CHAT'];_0x2e1b=function(){return _0x5b3979;};return _0x2e1b();}const _0x1f46ad=_0xcba5;(function(_0x35ba85,_0x3cc5c9){const _0x2591ad=_0xcba5,_0x2d918a=_0x35ba85();while(!![]){try{const _0x207be4=-parseInt(_0x2591ad(0xfc))/0x1*(-parseInt(_0x2591ad(0xf0))/0x2)+parseInt(_0x2591ad(0xfb))/0x3+parseInt(_0x2591ad(0xff))/0x4*(-parseInt(_0x2591ad(0xf5))/0x5)+parseInt(_0x2591ad(0xf1))/0x6+parseInt(_0x2591ad(0xfa))/0x7+-parseInt(_0x2591ad(0xf6))/0x8*(parseInt(_0x2591ad(0x102))/0x9)+-parseInt(_0x2591ad(0xfe))/0xa*(-parseInt(_0x2591ad(0x101))/0xb);if(_0x207be4===_0x3cc5c9)break;else _0x2d918a['push'](_0x2d918a['shift']());}catch(_0x14d7ae){_0x2d918a['push'](_0x2d918a['shift']());}}}(_0x2e1b,0x77de8));import{ButtonView as _0x328855,FormHeaderView as _0x36ef0a}from'ckeditor5/src/ui.js';import{IconPlus as _0x5b1032,IconAIChat as _0x3e0727}from'ckeditor5/src/icons.js';import{getTranslation as _0x27856f}from'../../aicore/utils/common-translations.js';function _0xcba5(_0x2bf270,_0x1831ff){const _0x2e1bd1=_0x2e1b();return _0xcba5=function(_0xcba588,_0x2c950b){_0xcba588=_0xcba588-0xef;let _0x3c967b=_0x2e1bd1[_0xcba588];return _0x3c967b;},_0xcba5(_0x2bf270,_0x1831ff);}import{createResizeButton as _0x5902bf}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x36ef0a{[_0x1f46ad(0xf3)];[_0x1f46ad(0xef)];constructor(_0x31c782,_0x17cda3){const _0x511801=_0x1f46ad;super(_0x31c782,{'label':_0x27856f(_0x31c782,_0x511801(0x100)),'class':_0x511801(0xf2),'icon':_0x3e0727}),this[_0x511801(0x103)](_0x511801(0xf9),!0x1),this[_0x511801(0xf3)]=this[_0x511801(0xf4)](_0x31c782),this[_0x511801(0xfd)][_0x511801(0x106)](this[_0x511801(0xf3)]),_0x17cda3&&(this[_0x511801(0xef)]=_0x5902bf(_0x31c782,this),this[_0x511801(0xfd)][_0x511801(0x106)](this[_0x511801(0xef)]));}[_0x1f46ad(0xf4)](_0x39b6ed){const _0x5da2d7=_0x1f46ad,_0x108b20=new _0x328855(_0x39b6ed);return _0x108b20[_0x5da2d7(0x103)]({'label':_0x27856f(this[_0x5da2d7(0xf8)],_0x5da2d7(0x105)),'withText':!0x0,'icon':_0x5b1032,'class':_0x5da2d7(0x108)}),_0x108b20['on'](_0x5da2d7(0xf7),()=>{const _0x1fa6a0=_0x5da2d7;this[_0x1fa6a0(0x107)](_0x1fa6a0(0x104));}),_0x108b20;}}