@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 3.35 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 _0x2290(){const _0x404e31=['1460100KiGqRR','bind','AI_TABS_LABEL_MAXIMIZE','ck-ai-tabs__resize\x20ck-ai-button-tertiary-text','execute','2357988yKJqEb','37460520UfiMHD','fire','icon','label','2492fDSVOU','5804322vHAoNb','isMaximized','resizeTabs','isOn','22728Cpgtfn','798444qHNhes','set','72cHCRtK','AI_TABS_LABEL_MINIMIZE','145036wkTqEV'];_0x2290=function(){return _0x404e31;};return _0x2290();}(function(_0x5b8201,_0x316e41){const _0x1e4868=_0x26ce,_0x52bfd6=_0x5b8201();while(!![]){try{const _0x149d8a=parseInt(_0x1e4868(0x19b))/0x1+-parseInt(_0x1e4868(0x190))/0x2+parseInt(_0x1e4868(0x19d))/0x3*(-parseInt(_0x1e4868(0x18a))/0x4)+-parseInt(_0x1e4868(0x18b))/0x5+-parseInt(_0x1e4868(0x196))/0x6+parseInt(_0x1e4868(0x195))/0x7*(-parseInt(_0x1e4868(0x19a))/0x8)+parseInt(_0x1e4868(0x191))/0x9;if(_0x149d8a===_0x316e41)break;else _0x52bfd6['push'](_0x52bfd6['shift']());}catch(_0x1e3ba0){_0x52bfd6['push'](_0x52bfd6['shift']());}}}(_0x2290,0x9c6c7));import{ButtonView as _0x2a5648}from'ckeditor5/src/ui.js';import{IconMaximize as _0x4a95ec,IconMinimize as _0x149d23}from'ckeditor5/src/icons.js';import{getTranslation as _0x44c5d1}from'../../aicore/utils/common-translations.js';function _0x26ce(_0xf4b822,_0x4ed489){const _0x2290be=_0x2290();return _0x26ce=function(_0x26ce5c,_0x3cc494){_0x26ce5c=_0x26ce5c-0x18a;let _0x231053=_0x2290be[_0x26ce5c];return _0x231053;},_0x26ce(_0xf4b822,_0x4ed489);}export function createResizeButton(_0x36b480,_0x1fc020){const _0x463b95=_0x26ce,_0xd66c23=new _0x2a5648(_0x36b480),_0x710094=_0x44c5d1(_0x36b480,_0x463b95(0x19e)),_0x56865d=_0x44c5d1(_0x36b480,_0x463b95(0x18d));return _0xd66c23[_0x463b95(0x19c)]({'withText':!0x1,'icon':_0x4a95ec,'tooltip':!0x0,'class':_0x463b95(0x18e)}),_0xd66c23[_0x463b95(0x18c)](_0x463b95(0x194))['to'](_0x1fc020,_0x463b95(0x197),_0x120bf3=>_0x120bf3?_0x710094:_0x56865d),_0xd66c23[_0x463b95(0x18c)](_0x463b95(0x193))['to'](_0x1fc020,_0x463b95(0x197),_0x2f5807=>_0x2f5807?_0x149d23:_0x4a95ec),_0xd66c23[_0x463b95(0x18c)](_0x463b95(0x199))['to'](_0x1fc020,_0x463b95(0x197)),_0xd66c23['on'](_0x463b95(0x18f),()=>{const _0x22addd=_0x463b95;_0x1fc020[_0x22addd(0x192)](_0x22addd(0x198));}),_0xd66c23;}