UNPKG

@ckeditor/ckeditor5-ai

Version:

AI Assistant feature for CKEditor 5.

23 lines 3.71 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 _0x40ae7c=_0x379f;(function(_0x2fae8e,_0xdd468d){const _0xe1031b=_0x379f,_0x3babc6=_0x2fae8e();while(!![]){try{const _0x2d4acc=-parseInt(_0xe1031b(0x7a))/0x1*(parseInt(_0xe1031b(0x94))/0x2)+-parseInt(_0xe1031b(0x89))/0x3*(parseInt(_0xe1031b(0x82))/0x4)+parseInt(_0xe1031b(0x7b))/0x5*(-parseInt(_0xe1031b(0x85))/0x6)+-parseInt(_0xe1031b(0x87))/0x7+-parseInt(_0xe1031b(0x84))/0x8*(-parseInt(_0xe1031b(0x80))/0x9)+-parseInt(_0xe1031b(0x7f))/0xa+parseInt(_0xe1031b(0x92))/0xb;if(_0x2d4acc===_0xdd468d)break;else _0x3babc6['push'](_0x3babc6['shift']());}catch(_0x50da62){_0x3babc6['push'](_0x3babc6['shift']());}}}(_0x4689,0xd8bef));import{ListView as _0x34c40a,ListItemGroupView as _0x489047,ButtonView as _0x41c745}from'ckeditor5/src/ui.js';function _0x4689(){const _0x44d2e3=['set','clearHistoryButton','1907330OOuGCw','99IYjQWK','_createClearHistoryButton','411664PYdgTn','label','706224UIjiWC','91734HMwqDL','Clear','7751961PsfeHb','Prompt\x20history','51OtipQe','locale','children','fire','items','add','delegate','clearHistory','execute','45316964lVsiGb','length','4qXsrVx','historyGroupView','157184CrLOeL','275NRNRxU','filter'];_0x4689=function(){return _0x44d2e3;};return _0x4689();}function _0x379f(_0x3ab002,_0x3d9328){const _0x4689d3=_0x4689();return _0x379f=function(_0x379fb5,_0x516b02){_0x379fb5=_0x379fb5-0x79;let _0x350631=_0x4689d3[_0x379fb5];return _0x350631;},_0x379f(_0x3ab002,_0x3d9328);}import{getTranslation as _0xd31ba1}from'../../utils/common-translations.js';export default class rs extends _0x34c40a{constructor(_0x334f1d){const _0x201bdd=_0x379f;super(_0x334f1d),this[_0x201bdd(0x7e)]=this[_0x201bdd(0x81)](),this[_0x201bdd(0x79)]=new _0x489047(),this[_0x201bdd(0x79)][_0x201bdd(0x8b)][_0x201bdd(0x8e)](this[_0x201bdd(0x7e)],0x1),this[_0x201bdd(0x79)][_0x201bdd(0x83)]=_0xd31ba1(_0x334f1d,_0x201bdd(0x88)),this[_0x201bdd(0x79)][_0x201bdd(0x8d)][_0x201bdd(0x8f)](_0x201bdd(0x91))['to'](this),this[_0x201bdd(0x8d)][_0x201bdd(0x8e)](this[_0x201bdd(0x79)]);}[_0x40ae7c(0x7c)](){const _0xbbbc62=_0x40ae7c;let _0xd4ca89=0x0;for(const _0x4cdc46 of this[_0xbbbc62(0x8d)])_0xd4ca89+=_0x4cdc46[_0xbbbc62(0x8d)][_0xbbbc62(0x93)];return{'resultsCount':_0xd4ca89,'totalItemsCount':_0xd4ca89};}[_0x40ae7c(0x81)](){const _0x557e70=_0x40ae7c,_0x34737d=this[_0x557e70(0x8a)],_0x33e6b1=new _0x41c745(this[_0x557e70(0x8a)]);return _0x33e6b1[_0x557e70(0x7d)]({'label':'('+_0xd31ba1(_0x34737d,_0x557e70(0x86))+')','withText':!0x0}),_0x33e6b1['on'](_0x557e70(0x91),()=>this[_0x557e70(0x8c)](_0x557e70(0x90))),_0x33e6b1;}}