@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 5.84 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 _0x311a37=_0x1656;(function(_0x32d371,_0x1b6a2c){const _0xb41d98=_0x1656,_0x2ba3be=_0x32d371();while(!![]){try{const _0x3775de=parseInt(_0xb41d98(0xf9))/0x1+-parseInt(_0xb41d98(0xd8))/0x2*(-parseInt(_0xb41d98(0xe0))/0x3)+-parseInt(_0xb41d98(0xcb))/0x4+parseInt(_0xb41d98(0xfb))/0x5+parseInt(_0xb41d98(0xd3))/0x6*(parseInt(_0xb41d98(0xef))/0x7)+-parseInt(_0xb41d98(0xd1))/0x8*(-parseInt(_0xb41d98(0xeb))/0x9)+-parseInt(_0xb41d98(0xe8))/0xa*(parseInt(_0xb41d98(0xdb))/0xb);if(_0x3775de===_0x1b6a2c)break;else _0x2ba3be['push'](_0x2ba3be['shift']());}catch(_0x38eb08){_0x2ba3be['push'](_0x2ba3be['shift']());}}}(_0x2528,0x62a7a));import{ContextPlugin as _0x4f1f7d,Editor as _0x3da8b5}from'ckeditor5/src/core.js';import{CKEditorError as _0x61b51a}from'ckeditor5/src/utils.js';import{AITabsMainView as _0x4e959b,AI_TABS_VIEW_SIDES as _0x536f94,AI_TABS_VIEW_TYPES as _0x5456ad}from'./aitabsmainview.js';function _0x1656(_0xc6eef2,_0x290dac){const _0x2528bb=_0x2528();return _0x1656=function(_0x1656b0,_0x680e1b){_0x1656b0=_0x1656b0-0xc9;let _0x4c0c19=_0x2528bb[_0x1656b0];return _0x4c0c19;},_0x1656(_0xc6eef2,_0x290dac);}export class AITabs extends _0x4f1f7d{[_0x311a37(0xf6)];[_0x311a37(0xd4)]=null;[_0x311a37(0xf5)]=!0x0;static get[_0x311a37(0xcc)](){const _0x1ac0dc=_0x311a37;return _0x1ac0dc(0xd5);}static get[_0x311a37(0xdd)](){return!0x0;}static get[_0x311a37(0xe1)](){return!0x0;}constructor(_0x5d654f){const _0x722a8f=_0x311a37;super(_0x5d654f);const _0x3c7d1c=this[_0x722a8f(0xd0)][_0x722a8f(0xee)][_0x722a8f(0xd2)](_0x722a8f(0xe4));if(this[_0x722a8f(0xd6)](_0x722a8f(0xde),_0x722a8f(0xca)),!_0x3c7d1c)throw new _0x61b51a(_0x722a8f(0xe2));if(void 0x0!==_0x3c7d1c[_0x722a8f(0xf5)]&&(this[_0x722a8f(0xf5)]=_0x3c7d1c[_0x722a8f(0xf5)]),_0x722a8f(0xe7)!==_0x3c7d1c[_0x722a8f(0xf0)]&&_0x722a8f(0xf7)!==_0x3c7d1c[_0x722a8f(0xf0)]||_0x3c7d1c[_0x722a8f(0xde)]&&(this[_0x722a8f(0xde)]=_0x3c7d1c[_0x722a8f(0xde)]),_0x722a8f(0xe7)===_0x3c7d1c[_0x722a8f(0xf0)]){if(this[_0x722a8f(0xd4)]=_0x3c7d1c[_0x722a8f(0xcf)],this[_0x722a8f(0xd6)](_0x722a8f(0xf0),_0x722a8f(0xe7)),!this[_0x722a8f(0xd4)])throw new _0x61b51a(_0x722a8f(0xce));}else _0x722a8f(0xf7)===_0x3c7d1c[_0x722a8f(0xf0)]?(this[_0x722a8f(0xd4)]=document[_0x722a8f(0xf1)],this[_0x722a8f(0xd6)](_0x722a8f(0xf0),_0x722a8f(0xf7))):(this[_0x722a8f(0xd4)]=null,this[_0x722a8f(0xd6)](_0x722a8f(0xf0),_0x722a8f(0xcd)));this[_0x722a8f(0xf6)]=new _0x4e959b(this[_0x722a8f(0xd0)][_0x722a8f(0xfa)],{'side':this[_0x722a8f(0xde)],'type':this[_0x722a8f(0xf0)],'visibleByDefault':void 0x0===_0x3c7d1c[_0x722a8f(0xe3)]||_0x3c7d1c[_0x722a8f(0xe3)]}),this[_0x722a8f(0xf6)][_0x722a8f(0xdf)](),this[_0x722a8f(0xf6)][_0x722a8f(0xf2)](_0x722a8f(0xde))['to'](this,_0x722a8f(0xde)),this[_0x722a8f(0xf6)][_0x722a8f(0xf2)](_0x722a8f(0xf0))['to'](this,_0x722a8f(0xf0)),this[_0x722a8f(0xd4)]&&this[_0x722a8f(0xd4)][_0x722a8f(0xe6)](this[_0x722a8f(0xf6)][_0x722a8f(0xcf)]),this[_0x722a8f(0xd0)]instanceof _0x3da8b5&&this[_0x722a8f(0xd0)]['ui'][_0x722a8f(0xc9)][_0x722a8f(0xea)](this[_0x722a8f(0xf6)][_0x722a8f(0xcf)]);}[_0x311a37(0xf4)](_0x27411e){const _0x1117ad=_0x311a37;if(_0x27411e&&this[_0x1117ad(0xf0)]!==_0x27411e){if(!_0x5456ad[_0x1117ad(0xd7)](_0x27411e))throw new _0x61b51a(_0x1117ad(0xf8));this[_0x1117ad(0xf0)]=_0x27411e;}}[_0x311a37(0xe9)](_0x5210c5){const _0x32efce=_0x311a37;if(_0x5210c5&&this[_0x32efce(0xde)]!==_0x5210c5){if(!_0x536f94[_0x32efce(0xd7)](_0x5210c5))throw new _0x61b51a(_0x32efce(0xf3));this[_0x32efce(0xde)]=_0x5210c5;}}[_0x311a37(0xe5)](){const _0x5abe76=_0x311a37;this[_0x5abe76(0xf6)][_0x5abe76(0xed)]=!this[_0x5abe76(0xf6)][_0x5abe76(0xed)],this[_0x5abe76(0xda)](_0x5abe76(0xec),this[_0x5abe76(0xf6)][_0x5abe76(0xed)]);}[_0x311a37(0xdc)](){const _0x1275bc=_0x311a37;super[_0x1275bc(0xdc)](),this[_0x1275bc(0xf6)][_0x1275bc(0xdc)](),this[_0x1275bc(0xf6)][_0x1275bc(0xcf)]&&this[_0x1275bc(0xf6)][_0x1275bc(0xcf)][_0x1275bc(0xd9)]();}}function _0x2528(){const _0x5eb0d2=['3047WmBQHJ','destroy','isOfficialPlugin','side','render','3ZJEdgn','isPremiumPlugin','ai-tabs-configuration-not-found','visibleByDefault','ai.container','resize','appendChild','sidebar','80920TuHvtI','switchSide','add','9gJOzpp','resizedTabs','isMaximized','config','7AdAgXN','type','body','bind','ai-tabs-unsupported-ui-side','switchType','showResizeButton','view','overlay','ai-tabs-unsupported-ui-type','750371EvysIb','locale','2954800JQAcoc','focusTracker','right','1324184EoRCMx','pluginName','custom','ai-tabs-sidebar-container-element-not-found','element','context','3036736TOkteH','get','3335988fwUFXC','container','AITabs','set','includes','1399398ocheBf','remove','fire'];_0x2528=function(){return _0x5eb0d2;};return _0x2528();}