@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 4.23 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 _0x419300=_0x592d;(function(_0x419383,_0x1fa11a){const _0x588744=_0x592d,_0x31ae1f=_0x419383();while(!![]){try{const _0x28362=-parseInt(_0x588744(0x1da))/0x1*(parseInt(_0x588744(0x1d4))/0x2)+parseInt(_0x588744(0x1dc))/0x3*(parseInt(_0x588744(0x1be))/0x4)+-parseInt(_0x588744(0x1c8))/0x5*(parseInt(_0x588744(0x1c4))/0x6)+parseInt(_0x588744(0x1df))/0x7*(-parseInt(_0x588744(0x1d1))/0x8)+parseInt(_0x588744(0x1c7))/0x9*(parseInt(_0x588744(0x1cd))/0xa)+parseInt(_0x588744(0x1db))/0xb+-parseInt(_0x588744(0x1dd))/0xc;if(_0x28362===_0x1fa11a)break;else _0x31ae1f['push'](_0x31ae1f['shift']());}catch(_0x40fecb){_0x31ae1f['push'](_0x31ae1f['shift']());}}}(_0xd875,0xd4ccf));import{ToolbarView as _0x48da07,ButtonView as _0x1fb91a}from'ckeditor5/src/ui.js';function _0xd875(){const _0x12ba6f=['replaceButton','1352443NZsWlH','17198577ethVdf','2394822BrMGVq','6916428MEUQdf','isVisible','637DmJYPc','insert','replace','set','items','Try\x20again','4vOioHu','Stop','AI_','tryAgainButton','toUpperCase','ck-button-action','56466FHkeCc','bind','ck-hidden','9YVmiQu','45Tyjqtn','stopButton','ck-ai-form__toolbar','label','Insert\x20below','12472660VvnGdK','bindTemplate','_createButton','mainAction','63640vPnDpZ','_CONTENT','insertButton','2qHYKru','addMany','locale','REPLACE','extendTemplate'];_0xd875=function(){return _0x12ba6f;};return _0xd875();}import{getTranslation as _0x5cafe7}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x419300(0x1e1),'INSERT':_0x419300(0x1e0)};function _0x592d(_0x242fac,_0x84308){const _0xd8756c=_0xd875();return _0x592d=function(_0x592d08,_0x234217){_0x592d08=_0x592d08-0x1bc;let _0x100043=_0xd8756c[_0x592d08];return _0x100043;},_0x592d(_0x242fac,_0x84308);}export class AIFormToolbarView extends _0x48da07{constructor(_0x2b6eb1){const _0x55269a=_0x419300;super(_0x2b6eb1),this[_0x55269a(0x1e2)](_0x55269a(0x1de),!0x1),this[_0x55269a(0x1e2)](_0x55269a(0x1d0),AIFormToolbarViewMainActionLabel[_0x55269a(0x1d7)]),this[_0x55269a(0x1d9)]=this[_0x55269a(0x1cf)]('',_0x55269a(0x1c3)),this[_0x55269a(0x1d9)][_0x55269a(0x1c5)](_0x55269a(0x1cb))['to'](this,_0x55269a(0x1d0),_0xc5a7ae=>_0x5cafe7(_0x2b6eb1,_0x55269a(0x1c0)+_0xc5a7ae[_0x55269a(0x1c2)]()+_0x55269a(0x1d2))),this[_0x55269a(0x1d3)]=this[_0x55269a(0x1cf)](_0x5cafe7(_0x2b6eb1,_0x55269a(0x1cc))),this[_0x55269a(0x1c1)]=this[_0x55269a(0x1cf)](_0x5cafe7(_0x2b6eb1,_0x55269a(0x1bd))),this[_0x55269a(0x1c9)]=this[_0x55269a(0x1cf)](_0x5cafe7(_0x2b6eb1,_0x55269a(0x1bf)));const _0xcc1304=this[_0x55269a(0x1ce)];this[_0x55269a(0x1d8)]({'attributes':{'class':[_0x55269a(0x1ca),_0xcc1304['if'](_0x55269a(0x1de),_0x55269a(0x1c6),_0x2b6992=>!_0x2b6992)]}}),this[_0x55269a(0x1bc)][_0x55269a(0x1d5)]([this[_0x55269a(0x1d9)],this[_0x55269a(0x1d3)],this[_0x55269a(0x1c1)],this[_0x55269a(0x1c9)]]);}[_0x419300(0x1cf)](_0x48eb1a,_0x503cbd){const _0x23aa76=_0x419300,_0x198658=new _0x1fb91a(this[_0x23aa76(0x1d6)]);return _0x198658[_0x23aa76(0x1e2)]({'label':_0x48eb1a,'class':_0x503cbd||'','isVisible':!0x0,'withText':!0x0}),_0x198658;}}