UNPKG

@ckeditor/ckeditor5-ai

Version:

AI Assistant feature for CKEditor 5.

23 lines 3.65 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 _0x4c8875=_0x3961;(function(_0xc36d55,_0x2868dd){const _0x4c2079=_0x3961,_0x1c9f41=_0xc36d55();while(!![]){try{const _0x1ea92f=parseInt(_0x4c2079(0x97))/0x1+parseInt(_0x4c2079(0x92))/0x2*(parseInt(_0x4c2079(0x9d))/0x3)+-parseInt(_0x4c2079(0x91))/0x4+parseInt(_0x4c2079(0x9e))/0x5+parseInt(_0x4c2079(0xa5))/0x6+parseInt(_0x4c2079(0x90))/0x7*(-parseInt(_0x4c2079(0x9b))/0x8)+-parseInt(_0x4c2079(0x8d))/0x9;if(_0x1ea92f===_0x2868dd)break;else _0x1c9f41['push'](_0x1c9f41['shift']());}catch(_0x5a8248){_0x1c9f41['push'](_0x1c9f41['shift']());}}}(_0x2637,0x377e5));function _0x3961(_0x18d6ec,_0x499466){const _0x2637f0=_0x2637();return _0x3961=function(_0x3961d1,_0x5ac428){_0x3961d1=_0x3961d1-0x8c;let _0x41debc=_0x2637f0[_0x3961d1];return _0x41debc;},_0x3961(_0x18d6ec,_0x499466);}import{ListView as _0x4460e4,ListItemGroupView as _0x8956cc,ButtonView as _0x4594a9}from'ckeditor5/src/ui.js';import{getTranslation as _0x43ce76}from'../../utils/common-translations.js';function _0x2637(){const _0x1aecbe=['Clear','delegate','250296itjQlH','add','children','clearHistoryButton','1600584xeFYXD','clearHistory','8547aRfcFh','2171935uftJTH','length','label','filter','set','execute','_createClearHistoryButton','642642ztZFho','Prompt\x20history','3074778avVKCY','items','historyGroupView','14BBImWa','168296ZMPiOC','154ojmTer','locale','fire'];_0x2637=function(){return _0x1aecbe;};return _0x2637();}export default class ft extends _0x4460e4{[_0x4c8875(0x8f)];[_0x4c8875(0x9a)];constructor(_0x110564){const _0x165eb2=_0x4c8875;super(_0x110564),this[_0x165eb2(0x9a)]=this[_0x165eb2(0xa4)](),this[_0x165eb2(0x8f)]=new _0x8956cc(),this[_0x165eb2(0x8f)][_0x165eb2(0x99)][_0x165eb2(0x98)](this[_0x165eb2(0x9a)],0x1),this[_0x165eb2(0x8f)][_0x165eb2(0xa0)]=_0x43ce76(_0x110564,_0x165eb2(0x8c)),this[_0x165eb2(0x8f)][_0x165eb2(0x8e)][_0x165eb2(0x96)](_0x165eb2(0xa3))['to'](this),this[_0x165eb2(0x8e)][_0x165eb2(0x98)](this[_0x165eb2(0x8f)]);}[_0x4c8875(0xa1)](){const _0x429d9b=_0x4c8875;let _0x3613b8=0x0;for(const _0x35ff1f of this[_0x429d9b(0x8e)])_0x3613b8+=_0x35ff1f[_0x429d9b(0x8e)][_0x429d9b(0x9f)];return{'resultsCount':_0x3613b8,'totalItemsCount':_0x3613b8};}[_0x4c8875(0xa4)](){const _0x152582=_0x4c8875,_0x4f3e74=this[_0x152582(0x93)],_0x386135=new _0x4594a9(this[_0x152582(0x93)]);return _0x386135[_0x152582(0xa2)]({'label':'('+_0x43ce76(_0x4f3e74,_0x152582(0x95))+')','withText':!0x0}),_0x386135['on'](_0x152582(0xa3),()=>this[_0x152582(0x94)](_0x152582(0x9c))),_0x386135;}}