@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 4.44 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 _0xe4ffa3=_0x5db8;function _0x5db8(_0x53b48a,_0x351339){const _0xdece1c=_0xdece();return _0x5db8=function(_0x5db88a,_0x14da47){_0x5db88a=_0x5db88a-0x16c;let _0x5162c4=_0xdece1c[_0x5db88a];return _0x5162c4;},_0x5db8(_0x53b48a,_0x351339);}function _0xdece(){const _0xe53467=['itemsViews','indexOf','ck-ai-chat-history__section-title','8mMURkA','1066560Lnjhrr','length','28LFMUel','isMatching','items','2835624wklzqw','ck-hidden','setTemplate','getItem','38upPXPx','find','div','22645720mxDQFD','bindTemplate','removeItem','highlightText','splice','68326wEElZA','set','addMany','remove','1903605WudVTg','_itemsListView','title','ck-ai-chat-history__section','900621UAbhHE','isVisible','filter','1336086sBjMtO'];_0xdece=function(){return _0xe53467;};return _0xdece();}(function(_0x354a13,_0x287da1){const _0x52d2c1=_0x5db8,_0x1b6c11=_0x354a13();while(!![]){try{const _0xf26ec8=parseInt(_0x52d2c1(0x176))/0x1*(parseInt(_0x52d2c1(0x16e))/0x2)+parseInt(_0x52d2c1(0x18b))/0x3+parseInt(_0x52d2c1(0x186))/0x4+-parseInt(_0x52d2c1(0x17a))/0x5+parseInt(_0x52d2c1(0x181))/0x6*(parseInt(_0x52d2c1(0x188))/0x7)+parseInt(_0x52d2c1(0x185))/0x8*(-parseInt(_0x52d2c1(0x17e))/0x9)+-parseInt(_0x52d2c1(0x171))/0xa;if(_0xf26ec8===_0x287da1)break;else _0x1b6c11['push'](_0x1b6c11['shift']());}catch(_0x280041){_0x1b6c11['push'](_0x1b6c11['shift']());}}}(_0xdece,0xa002c));import{ListItemView as _0x172407,View as _0x303731,ListView as _0x4d1497}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x172407{[_0xe4ffa3(0x17c)];[_0xe4ffa3(0x182)];[_0xe4ffa3(0x17b)];constructor(_0x1604ce,{title:_0x1c248a,items:_0x31f5bd}){const _0x2d0994=_0xe4ffa3;super(_0x1604ce);const _0x4b1002=this[_0x2d0994(0x172)];this[_0x2d0994(0x177)](_0x2d0994(0x17f),!0x0),this[_0x2d0994(0x17c)]=_0x1c248a,this[_0x2d0994(0x182)]=_0x31f5bd;const _0x3c72e7=new _0x303731(_0x1604ce);_0x3c72e7[_0x2d0994(0x16c)]({'tag':_0x2d0994(0x170),'attributes':{'class':[_0x2d0994(0x184)]},'children':[this[_0x2d0994(0x17c)]]}),this[_0x2d0994(0x17b)]=new _0x4d1497(_0x1604ce),this[_0x2d0994(0x17b)][_0x2d0994(0x18a)][_0x2d0994(0x178)](this[_0x2d0994(0x182)]),this[_0x2d0994(0x16c)]({'tag':'li','attributes':{'class':[_0x2d0994(0x17d),_0x4b1002['if'](_0x2d0994(0x17f),_0x2d0994(0x18c),_0x51045a=>!_0x51045a)]},'children':[_0x3c72e7,this[_0x2d0994(0x17b)]]});}[_0xe4ffa3(0x180)](_0x313ca2){const _0x51c321=_0xe4ffa3,_0x16fdd0=this[_0x51c321(0x182)][_0x51c321(0x187)];let _0x216007=0x0;for(const _0x446daf of this[_0x51c321(0x182)]){if(_0x313ca2){const _0x81200d=_0x446daf[_0x51c321(0x189)](_0x313ca2);_0x446daf[_0x51c321(0x17f)]=!!_0x81200d,_0x446daf[_0x51c321(0x174)](_0x313ca2);}else _0x446daf[_0x51c321(0x17f)]=!0x0,_0x446daf[_0x51c321(0x174)](null);_0x446daf[_0x51c321(0x17f)]&&_0x216007++;}return this[_0x51c321(0x17f)]=_0x216007>0x0,{'resultsCount':_0x216007,'totalItemsCount':_0x16fdd0};}[_0xe4ffa3(0x16d)](_0x23ed3f){const _0x5bb065=_0xe4ffa3;return this[_0x5bb065(0x182)][_0x5bb065(0x16f)](_0x118ec1=>_0x118ec1['id']===_0x23ed3f);}[_0xe4ffa3(0x173)](_0x35efe1){const _0xafac95=_0xe4ffa3,_0x1b1c43=this[_0xafac95(0x182)][_0xafac95(0x183)](_0x35efe1);-0x1!==_0x1b1c43&&(this[_0xafac95(0x182)][_0xafac95(0x175)](_0x1b1c43,0x1),this[_0xafac95(0x17b)][_0xafac95(0x18a)][_0xafac95(0x179)](_0x35efe1));}}