UNPKG

@ckeditor/ckeditor5-ai

Version:

AI Assistant feature for CKEditor 5.

23 lines 3.51 kB
/* * 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 _0x107491=_0x10e2;(function(_0x5787e3,_0x6296a5){const _0x2e193e=_0x10e2,_0x298847=_0x5787e3();while(!![]){try{const _0x3b328a=parseInt(_0x2e193e(0x18a))/0x1+-parseInt(_0x2e193e(0x193))/0x2*(-parseInt(_0x2e193e(0x183))/0x3)+parseInt(_0x2e193e(0x184))/0x4+-parseInt(_0x2e193e(0x185))/0x5+-parseInt(_0x2e193e(0x17d))/0x6*(parseInt(_0x2e193e(0x195))/0x7)+parseInt(_0x2e193e(0x181))/0x8+-parseInt(_0x2e193e(0x186))/0x9*(parseInt(_0x2e193e(0x18d))/0xa);if(_0x3b328a===_0x6296a5)break;else _0x298847['push'](_0x298847['shift']());}catch(_0x5dcaf1){_0x298847['push'](_0x298847['shift']());}}}(_0x3333,0x3add1));function _0x10e2(_0xcf6c8d,_0xfcd871){const _0x3333b4=_0x3333();return _0x10e2=function(_0x10e292,_0x81239a){_0x10e292=_0x10e292-0x17c;let _0x5ef570=_0x3333b4[_0x10e292];return _0x5ef570;},_0x10e2(_0xcf6c8d,_0xfcd871);}import{Collection as _0x420a91}from'ckeditor5/src/utils.js';const cs=_0x107491(0x18c);export default class os extends _0x420a91{constructor(){const _0x16873b=_0x107491;super(),this[_0x16873b(0x18e)](),this['on'](_0x16873b(0x189),(_0x2cf4cb,_0x438501)=>{const _0x5f1907=_0x16873b,_0x25f2b8=Ss(_0x438501[_0x5f1907(0x182)]);for(const _0x2b1751 of this)if(_0x2b1751!=_0x438501&&Ss(_0x2b1751[_0x5f1907(0x182)])===_0x25f2b8){this[_0x5f1907(0x192)](_0x2b1751);break;}this[_0x5f1907(0x18f)]>0x14&&this[_0x5f1907(0x192)](this[_0x5f1907(0x187)]),this[_0x5f1907(0x190)]();}),this['on'](_0x16873b(0x192),()=>{const _0x565543=_0x16873b;this[_0x565543(0x190)]();});}[_0x107491(0x18e)](){const _0x47225a=_0x107491,_0xf7d785=sessionStorage[_0x47225a(0x194)](cs)||'[]';this[_0x47225a(0x17f)](JSON[_0x47225a(0x18b)](_0xf7d785));}[_0x107491(0x190)](){const _0x5ba21e=_0x107491;sessionStorage[_0x5ba21e(0x17c)](cs,JSON[_0x5ba21e(0x188)](this[_0x5ba21e(0x180)](_0x176943=>_0x176943)));}}function Ss(_0x4d39b5){const _0x4d1193=_0x107491;return _0x4d39b5[_0x4d1193(0x191)]()[_0x4d1193(0x17e)]();}function _0x3333(){const _0x39955=['312909SBJmsL','1214524ZzcGUC','439680VHkgwj','9XWlDmx','last','stringify','add','293067vpMZBh','parse','CKEditor/AIFormView/PromptHistory','6471110kapLpr','_loadFromSessionStorage','length','_saveToSessionStorage','toLowerCase','remove','8OdcViD','getItem','57197LjIjLw','setItem','30BuvZmO','trim','addMany','map','24776ofyyNk','prompt'];_0x3333=function(){return _0x39955;};return _0x3333();}