@ckeditor/ckeditor5-ai
Version:
AI Assistant feature 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 _0x584954=_0x5ca6;function _0x5ca6(_0x1948c0,_0x41833c){const _0x4a6e8e=_0x4a6e();return _0x5ca6=function(_0x5ca640,_0x12b490){_0x5ca640=_0x5ca640-0x1d3;let _0x30ad09=_0x4a6e8e[_0x5ca640];return _0x30ad09;},_0x5ca6(_0x1948c0,_0x41833c);}(function(_0x4e6711,_0x18467b){const _0x495e38=_0x5ca6,_0xfd66de=_0x4e6711();while(!![]){try{const _0x48ecc5=-parseInt(_0x495e38(0x1e4))/0x1+-parseInt(_0x495e38(0x1e9))/0x2*(parseInt(_0x495e38(0x1df))/0x3)+parseInt(_0x495e38(0x1e8))/0x4*(parseInt(_0x495e38(0x1ef))/0x5)+-parseInt(_0x495e38(0x1db))/0x6+-parseInt(_0x495e38(0x1e0))/0x7*(-parseInt(_0x495e38(0x1d7))/0x8)+-parseInt(_0x495e38(0x1ec))/0x9*(-parseInt(_0x495e38(0x1d3))/0xa)+parseInt(_0x495e38(0x1d8))/0xb*(parseInt(_0x495e38(0x1d6))/0xc);if(_0x48ecc5===_0x18467b)break;else _0xfd66de['push'](_0xfd66de['shift']());}catch(_0x503749){_0xfd66de['push'](_0xfd66de['shift']());}}}(_0x4a6e,0xdafa5));import{ListView as _0x156bbf,ListItemGroupView as _0x1eb038,ButtonView as _0x3f69d0}from'ckeditor5/src/ui.js';import{getTranslation as _0x51a257}from'../../utils/common-translations.js';function _0x4a6e(){const _0x140a98=['delegate','9WFdFML','filter','clearHistory','1683635RhSJPe','10574170RVpKjU','fire','historyGroupView','624144UmmFtJ','1976WMeMHS','143oFCgkG','execute','children','8087706tWzlHY','Prompt\x20history','locale','items','180NHTPtW','20307MLFpDf','_createClearHistoryButton','Clear','label','425291hINnUn','length','add','set','20fIfkwz','48786UWIdTJ','clearHistoryButton'];_0x4a6e=function(){return _0x140a98;};return _0x4a6e();}export class AIHistoryListView extends _0x156bbf{[_0x584954(0x1d5)];[_0x584954(0x1ea)];constructor(_0x33f0f5){const _0x164d49=_0x584954;super(_0x33f0f5),this[_0x164d49(0x1ea)]=this[_0x164d49(0x1e1)](),this[_0x164d49(0x1d5)]=new _0x1eb038(),this[_0x164d49(0x1d5)][_0x164d49(0x1da)][_0x164d49(0x1e6)](this[_0x164d49(0x1ea)],0x1),this[_0x164d49(0x1d5)][_0x164d49(0x1e3)]=_0x51a257(_0x33f0f5,_0x164d49(0x1dc)),this[_0x164d49(0x1d5)][_0x164d49(0x1de)][_0x164d49(0x1eb)](_0x164d49(0x1d9))['to'](this),this[_0x164d49(0x1de)][_0x164d49(0x1e6)](this[_0x164d49(0x1d5)]);}[_0x584954(0x1ed)](){const _0x5dcecd=_0x584954;let _0x435493=0x0;for(const _0x292c58 of this[_0x5dcecd(0x1de)])_0x435493+=_0x292c58[_0x5dcecd(0x1de)][_0x5dcecd(0x1e5)];return{'resultsCount':_0x435493,'totalItemsCount':_0x435493};}[_0x584954(0x1e1)](){const _0x521e0d=_0x584954,_0x4fc286=this[_0x521e0d(0x1dd)],_0x64d6fe=new _0x3f69d0(this[_0x521e0d(0x1dd)]);return _0x64d6fe[_0x521e0d(0x1e7)]({'label':'('+_0x51a257(_0x4fc286,_0x521e0d(0x1e2))+')','withText':!0x0}),_0x64d6fe['on'](_0x521e0d(0x1d9),()=>this[_0x521e0d(0x1d4)](_0x521e0d(0x1ee))),_0x64d6fe;}}