@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 3.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 _0x352d72=_0x4fb3;(function(_0x4658b1,_0x2e415a){const _0x430f85=_0x4fb3,_0x56c59f=_0x4658b1();while(!![]){try{const _0x41a396=-parseInt(_0x430f85(0x1d8))/0x1*(-parseInt(_0x430f85(0x1e0))/0x2)+parseInt(_0x430f85(0x1dc))/0x3+-parseInt(_0x430f85(0x1de))/0x4*(-parseInt(_0x430f85(0x1e6))/0x5)+parseInt(_0x430f85(0x1dd))/0x6*(parseInt(_0x430f85(0x1cb))/0x7)+parseInt(_0x430f85(0x1d3))/0x8*(-parseInt(_0x430f85(0x1ce))/0x9)+parseInt(_0x430f85(0x1d7))/0xa*(-parseInt(_0x430f85(0x1d6))/0xb)+-parseInt(_0x430f85(0x1db))/0xc;if(_0x41a396===_0x2e415a)break;else _0x56c59f['push'](_0x56c59f['shift']());}catch(_0x33f86c){_0x56c59f['push'](_0x56c59f['shift']());}}}(_0xb4ed,0x9f41c));import{ListView as _0x1a68b4,ListItemGroupView as _0x538d8f,ButtonView as _0x57f34c}from'ckeditor5/src/ui.js';import{getTranslation as _0x22f6de}from'../../utils/common-translations.js';function _0xb4ed(){const _0x58f269=['Clear','fire','703185HspIbf','delegate','709975NPdqfF','execute','length','1821708MkOsgi','set','items','children','Prompt\x20history','40NynJoT','add','_createClearHistoryButton','208241CxwBRF','250gCmYGo','3431sxMwFy','locale','clearHistory','5453832vUEKyC','1161978cZxYbg','18AzPssV','28SAoJvd','clearHistoryButton','534HHBmtQ','label','filter','historyGroupView'];_0xb4ed=function(){return _0x58f269;};return _0xb4ed();}function _0x4fb3(_0x1e8513,_0x11fd49){const _0xb4ed23=_0xb4ed();return _0x4fb3=function(_0x4fb37f,_0x22a0bd){_0x4fb37f=_0x4fb37f-0x1cb;let _0x1ea095=_0xb4ed23[_0x4fb37f];return _0x1ea095;},_0x4fb3(_0x1e8513,_0x11fd49);}export class AIHistoryListView extends _0x1a68b4{[_0x352d72(0x1e3)];[_0x352d72(0x1df)];constructor(_0x1fddcd){const _0x52978b=_0x352d72;super(_0x1fddcd),this[_0x52978b(0x1df)]=this[_0x52978b(0x1d5)](),this[_0x52978b(0x1e3)]=new _0x538d8f(),this[_0x52978b(0x1e3)][_0x52978b(0x1d1)][_0x52978b(0x1d4)](this[_0x52978b(0x1df)],0x1),this[_0x52978b(0x1e3)][_0x52978b(0x1e1)]=_0x22f6de(_0x1fddcd,_0x52978b(0x1d2)),this[_0x52978b(0x1e3)][_0x52978b(0x1d0)][_0x52978b(0x1e7)](_0x52978b(0x1cc))['to'](this),this[_0x52978b(0x1d0)][_0x52978b(0x1d4)](this[_0x52978b(0x1e3)]);}[_0x352d72(0x1e2)](){const _0x3938a9=_0x352d72;let _0x255cc9=0x0;for(const _0x1665bc of this[_0x3938a9(0x1d0)])_0x255cc9+=_0x1665bc[_0x3938a9(0x1d0)][_0x3938a9(0x1cd)];return{'resultsCount':_0x255cc9,'totalItemsCount':_0x255cc9};}[_0x352d72(0x1d5)](){const _0x488330=_0x352d72,_0x402175=this[_0x488330(0x1d9)],_0x1a1f1b=new _0x57f34c(this[_0x488330(0x1d9)]);return _0x1a1f1b[_0x488330(0x1cf)]({'label':'('+_0x22f6de(_0x402175,_0x488330(0x1e4))+')','withText':!0x0}),_0x1a1f1b['on'](_0x488330(0x1cc),()=>this[_0x488330(0x1e5)](_0x488330(0x1da))),_0x1a1f1b;}}