@ckeditor/ckeditor5-ai
Version:
AI Assistant feature for CKEditor 5.
23 lines • 3.47 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 _0x368b74=_0x27ea;function _0x27ea(_0x1de61a,_0x14e659){const _0x2fb9a3=_0x2fb9();return _0x27ea=function(_0x27ea83,_0x1b5d84){_0x27ea83=_0x27ea83-0x14e;let _0x2da7a6=_0x2fb9a3[_0x27ea83];return _0x2da7a6;},_0x27ea(_0x1de61a,_0x14e659);}(function(_0x3bb97b,_0x2dfa22){const _0x110d02=_0x27ea,_0x24a04e=_0x3bb97b();while(!![]){try{const _0x3554e2=parseInt(_0x110d02(0x150))/0x1+-parseInt(_0x110d02(0x164))/0x2+parseInt(_0x110d02(0x153))/0x3+-parseInt(_0x110d02(0x159))/0x4+parseInt(_0x110d02(0x160))/0x5+-parseInt(_0x110d02(0x161))/0x6*(-parseInt(_0x110d02(0x14e))/0x7)+-parseInt(_0x110d02(0x158))/0x8*(parseInt(_0x110d02(0x15f))/0x9);if(_0x3554e2===_0x2dfa22)break;else _0x24a04e['push'](_0x24a04e['shift']());}catch(_0x306086){_0x24a04e['push'](_0x24a04e['shift']());}}}(_0x2fb9,0x6fb91));import{Collection as _0x440088}from'ckeditor5/src/utils.js';const ts=_0x368b74(0x165);function _0x2fb9(){const _0x410434=['getItem','745132QLbbSa','stringify','_loadFromSessionStorage','2453799DlJYlF','addMany','map','last','length','14042776SWqdWn','1483428fnutsz','prompt','trim','setItem','_saveToSessionStorage','add','9zsVUwk','2626430qWAEbT','5307864AFIPwb','toLowerCase','parse','778348rTqxTo','CKEditor/AIFormView/PromptHistory','remove','7SgImpp'];_0x2fb9=function(){return _0x410434;};return _0x2fb9();}export default class wt extends _0x440088{constructor(){const _0x44a33c=_0x368b74;super(),this[_0x44a33c(0x152)](),this['on'](_0x44a33c(0x15e),(_0x19dc59,_0x4e4aab)=>{const _0x1cd115=_0x44a33c,_0x270f3e=os(_0x4e4aab[_0x1cd115(0x15a)]);for(const _0x37592f of this)if(_0x37592f!=_0x4e4aab&&os(_0x37592f[_0x1cd115(0x15a)])===_0x270f3e){this[_0x1cd115(0x166)](_0x37592f);break;}this[_0x1cd115(0x157)]>0x14&&this[_0x1cd115(0x166)](this[_0x1cd115(0x156)]),this[_0x1cd115(0x15d)]();}),this['on'](_0x44a33c(0x166),()=>{const _0x1499e9=_0x44a33c;this[_0x1499e9(0x15d)]();});}[_0x368b74(0x152)](){const _0x377a20=_0x368b74,_0x71cb2e=sessionStorage[_0x377a20(0x14f)](ts)||'[]';this[_0x377a20(0x154)](JSON[_0x377a20(0x163)](_0x71cb2e));}[_0x368b74(0x15d)](){const _0x555a47=_0x368b74;sessionStorage[_0x555a47(0x15c)](ts,JSON[_0x555a47(0x151)](this[_0x555a47(0x155)](_0x38bd0d=>_0x38bd0d)));}}function os(_0x17c5fc){const _0xfff305=_0x368b74;return _0x17c5fc[_0xfff305(0x162)]()[_0xfff305(0x15b)]();}