@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 3.56 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 _0x4b61(){const _0x414a0c=['parse','remove','60xFSoiY','getItem','map','516606EYMlpJ','44aDKafk','add','251640oKeGFr','addMany','20610xKOqhe','stringify','trim','1144EMxgCN','1979992VMRnuZ','_saveToSessionStorage','toLowerCase','154810djAHjY','prompt','CKEditor/AIFormView/PromptHistory','533269xbsvGM','setItem','length','505NqDOxX','last','1370mqkdbL','_loadFromSessionStorage'];_0x4b61=function(){return _0x414a0c;};return _0x4b61();}function _0x31b4(_0x30fb48,_0x487b85){const _0x4b6139=_0x4b61();return _0x31b4=function(_0x31b4ea,_0x1c2de1){_0x31b4ea=_0x31b4ea-0x1b6;let _0x32b6e4=_0x4b6139[_0x31b4ea];return _0x32b6e4;},_0x31b4(_0x30fb48,_0x487b85);}const _0x392818=_0x31b4;(function(_0x53712a,_0x24815b){const _0x5a3b6d=_0x31b4,_0x677ab5=_0x53712a();while(!![]){try{const _0x1f6c22=parseInt(_0x5a3b6d(0x1cb))/0x1*(-parseInt(_0x5a3b6d(0x1cd))/0x2)+-parseInt(_0x5a3b6d(0x1b9))/0x3+parseInt(_0x5a3b6d(0x1ba))/0x4*(parseInt(_0x5a3b6d(0x1c5))/0x5)+parseInt(_0x5a3b6d(0x1bc))/0x6+parseInt(_0x5a3b6d(0x1c2))/0x7+parseInt(_0x5a3b6d(0x1c1))/0x8*(parseInt(_0x5a3b6d(0x1be))/0x9)+parseInt(_0x5a3b6d(0x1b6))/0xa*(-parseInt(_0x5a3b6d(0x1c8))/0xb);if(_0x1f6c22===_0x24815b)break;else _0x677ab5['push'](_0x677ab5['shift']());}catch(_0xf9cd6a){_0x677ab5['push'](_0x677ab5['shift']());}}}(_0x4b61,0x2ce27));import{Collection as _0x313dc8}from'ckeditor5/src/utils.js';const So=_0x392818(0x1c7);export class PromptHistory extends _0x313dc8{constructor(){const _0x37e6e1=_0x392818;super(),this[_0x37e6e1(0x1ce)](),this['on'](_0x37e6e1(0x1bb),(_0x97faf5,_0xa76f7)=>{const _0x1f8066=_0x37e6e1,_0x3fa5ed=fo(_0xa76f7[_0x1f8066(0x1c6)]);for(const _0x528060 of this)if(_0x528060!=_0xa76f7&&fo(_0x528060[_0x1f8066(0x1c6)])===_0x3fa5ed){this[_0x1f8066(0x1d0)](_0x528060);break;}this[_0x1f8066(0x1ca)]>0x14&&this[_0x1f8066(0x1d0)](this[_0x1f8066(0x1cc)]),this[_0x1f8066(0x1c3)]();}),this['on'](_0x37e6e1(0x1d0),()=>{const _0x3081a0=_0x37e6e1;this[_0x3081a0(0x1c3)]();});}[_0x392818(0x1ce)](){const _0xd6817e=_0x392818,_0x548dd8=sessionStorage[_0xd6817e(0x1b7)](So)||'[]';this[_0xd6817e(0x1bd)](JSON[_0xd6817e(0x1cf)](_0x548dd8));}[_0x392818(0x1c3)](){const _0x2b4b4b=_0x392818;sessionStorage[_0x2b4b4b(0x1c9)](So,JSON[_0x2b4b4b(0x1bf)](this[_0x2b4b4b(0x1b8)](_0x2f9b8d=>_0x2f9b8d)));}}function fo(_0x4f2362){const _0x425b29=_0x392818;return _0x4f2362[_0x425b29(0x1c4)]()[_0x425b29(0x1c0)]();}