@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 2.97 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
var _0x42d897=_0x277d;(function(_0x2ce39a,_0x16c94b){var _0x1358f4=_0x277d,_0x58d4e0=_0x2ce39a();while(!![]){try{var _0x506bfd=-parseInt(_0x1358f4(0x161))/0x1+-parseInt(_0x1358f4(0x15f))/0x2+parseInt(_0x1358f4(0x15d))/0x3+-parseInt(_0x1358f4(0x162))/0x4*(parseInt(_0x1358f4(0x159))/0x5)+parseInt(_0x1358f4(0x160))/0x6*(parseInt(_0x1358f4(0x165))/0x7)+parseInt(_0x1358f4(0x154))/0x8+parseInt(_0x1358f4(0x15a))/0x9*(-parseInt(_0x1358f4(0x15e))/0xa);if(_0x506bfd===_0x16c94b)break;else _0x58d4e0['push'](_0x58d4e0['shift']());}catch(_0x542fef){_0x58d4e0['push'](_0x58d4e0['shift']());}}}(_0x1189,0xf2a00));function _0x1189(){var _0x2d970b=['490406GHrfwh','2190MDHYpR','654848xIjfoA','140jHNuLi','textAdapter','AIAdapter','12796Lwsmas','afterInit','14572936MByMvI','name','pluginName','isPremiumPlugin','isOfficialPlugin','123990XbrQKo','2481786SlUYro','aiadapter-text-adapter-not-set','AIRequestError','2473332VzLzGe','20DEBMGk'];_0x1189=function(){return _0x2d970b;};return _0x1189();}import{Plugin as _0x5378d0}from'ckeditor5/src/core.js';import{CKEditorError as _0x33c517}from'ckeditor5/src/utils.js';function _0x277d(_0x36ce40,_0x462e3f){var _0x11891f=_0x1189();return _0x277d=function(_0x277d58,_0x5b8fa7){_0x277d58=_0x277d58-0x154;var _0x61f5d7=_0x11891f[_0x277d58];return _0x61f5d7;},_0x277d(_0x36ce40,_0x462e3f);}export class AIAdapter extends _0x5378d0{static get[_0x42d897(0x156)](){var _0x1582ba=_0x42d897;return _0x1582ba(0x164);}static get[_0x42d897(0x158)](){return!0x0;}static get[_0x42d897(0x157)](){return!0x0;}[_0x42d897(0x166)](){var _0x548cae=_0x42d897;if(!this[_0x548cae(0x163)])throw new _0x33c517(_0x548cae(0x15b),null);}}export class AIRequestError extends Error{constructor(_0x4ef3e7){var _0xc519d0=_0x42d897;super(_0x4ef3e7),this[_0xc519d0(0x155)]=_0xc519d0(0x15c);}}