UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 3.15 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 _0x57a321=_0x42ee;function _0x42ee(_0xd84c68,_0xee1665){const _0x3f5073=_0x3f50();return _0x42ee=function(_0x42ee23,_0x344a8a){_0x42ee23=_0x42ee23-0x6e;let _0x1f711e=_0x3f5073[_0x42ee23];return _0x1f711e;},_0x42ee(_0xd84c68,_0xee1665);}function _0x3f50(){const _0x81cda9=['ck-ai-chat-history__sections','1210693gPUdlK','3SWMKLX','8yzoVGF','993880pJYNoy','4KxRynk','1067910PNSnvS','items','10xwPtWV','187911xsgvYr','filter','1333911ocVHyR','addMany','6450385JaYSMZ','sections','4147onfKKu','extendTemplate','7wEDBTw','62004keIyyq'];_0x3f50=function(){return _0x81cda9;};return _0x3f50();}(function(_0x419f78,_0x5768a6){const _0x3bf49d=_0x42ee,_0x26b331=_0x419f78();while(!![]){try{const _0x417d99=-parseInt(_0x3bf49d(0x74))/0x1+-parseInt(_0x3bf49d(0x80))/0x2*(parseInt(_0x3bf49d(0x7e))/0x3)+parseInt(_0x3bf49d(0x6e))/0x4*(parseInt(_0x3bf49d(0x76))/0x5)+-parseInt(_0x3bf49d(0x6f))/0x6*(parseInt(_0x3bf49d(0x7a))/0x7)+-parseInt(_0x3bf49d(0x7f))/0x8*(-parseInt(_0x3bf49d(0x72))/0x9)+parseInt(_0x3bf49d(0x71))/0xa*(-parseInt(_0x3bf49d(0x7d))/0xb)+parseInt(_0x3bf49d(0x7b))/0xc*(parseInt(_0x3bf49d(0x78))/0xd);if(_0x417d99===_0x5768a6)break;else _0x26b331['push'](_0x26b331['shift']());}catch(_0x34fca2){_0x26b331['push'](_0x26b331['shift']());}}}(_0x3f50,0xcd28a));import{ListView as _0x41cf55}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x41cf55{[_0x57a321(0x77)];constructor(_0x5a0f0c,_0x3284dc){const _0x261ad9=_0x57a321;super(_0x5a0f0c),this[_0x261ad9(0x77)]=_0x3284dc,this[_0x261ad9(0x70)][_0x261ad9(0x75)](this[_0x261ad9(0x77)]),this[_0x261ad9(0x79)]({'attributes':{'class':[_0x261ad9(0x7c)]}});}[_0x57a321(0x73)](_0x123bc6){const _0x2888b2=_0x57a321;let _0x214c9d=0x0,_0xed69f2=0x0;for(const _0x1ff748 of this[_0x2888b2(0x77)]){const {resultsCount:_0x2de968,totalItemsCount:_0x519bf9}=_0x1ff748[_0x2888b2(0x73)](_0x123bc6);_0x214c9d+=_0x2de968,_0xed69f2+=_0x519bf9;}return{'resultsCount':_0x214c9d,'totalItemsCount':_0xed69f2};}}