UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 4.23 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 _0x48d12a=_0x11c7;(function(_0x4b8025,_0x4b5f8f){const _0x123259=_0x11c7,_0x4355da=_0x4b8025();while(!![]){try{const _0x20b8d7=parseInt(_0x123259(0x150))/0x1+parseInt(_0x123259(0x156))/0x2+-parseInt(_0x123259(0x155))/0x3+-parseInt(_0x123259(0x152))/0x4*(-parseInt(_0x123259(0x157))/0x5)+parseInt(_0x123259(0x167))/0x6*(-parseInt(_0x123259(0x15f))/0x7)+-parseInt(_0x123259(0x153))/0x8+parseInt(_0x123259(0x162))/0x9*(parseInt(_0x123259(0x161))/0xa);if(_0x20b8d7===_0x4b5f8f)break;else _0x4355da['push'](_0x4355da['shift']());}catch(_0x1012ad){_0x4355da['push'](_0x4355da['shift']());}}}(_0x494a,0x75567));import{ButtonView as _0x1470cd,View as _0x49ea6f}from'ckeditor5/src/ui.js';import{IconStop as _0x4b2532}from'ckeditor5/src/icons.js';import{getTranslation as _0x45af24}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x49ea6f{[_0x48d12a(0x15e)];[_0x48d12a(0x165)];constructor(_0x35c344){const _0x5b0376=_0x48d12a;super(_0x35c344),this[_0x5b0376(0x15e)]=this[_0x5b0376(0x154)](),this[_0x5b0376(0x165)]=this[_0x5b0376(0x163)](),this[_0x5b0376(0x15d)]({'tag':_0x5b0376(0x164),'attributes':{'class':['ck',_0x5b0376(0x14f),_0x5b0376(0x151)]},'children':[this[_0x5b0376(0x165)],this[_0x5b0376(0x15e)]]});}[_0x48d12a(0x154)](){const _0x1895fb=_0x48d12a,_0x3bf215=new _0x1470cd(this[_0x1895fb(0x159)]);return _0x3bf215[_0x1895fb(0x160)]({'label':_0x45af24(this[_0x1895fb(0x159)],_0x1895fb(0x14b)),'withText':!0x0,'class':_0x1895fb(0x158),'icon':_0x4b2532}),_0x3bf215['on'](_0x1895fb(0x166),()=>{const _0x2dc9f0=_0x1895fb;this[_0x2dc9f0(0x14e)](_0x2dc9f0(0x15b));}),_0x3bf215;}[_0x48d12a(0x163)](){const _0x1c556b=_0x48d12a,_0xc7211e=new _0x49ea6f(this[_0x1c556b(0x159)]);return _0xc7211e[_0x1c556b(0x15d)]({'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x14d)]},'children':[{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15c)]},'children':[{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}},{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}},{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}}]},{'text':_0x45af24(this[_0x1c556b(0x159)],_0x1c556b(0x14c))}]}),_0xc7211e;}}function _0x11c7(_0x1df95a,_0x4a1160){const _0x494af9=_0x494a();return _0x11c7=function(_0x11c782,_0x5f3cf0){_0x11c782=_0x11c782-0x14b;let _0x7b57f0=_0x494af9[_0x11c782];return _0x7b57f0;},_0x11c7(_0x1df95a,_0x4a1160);}function _0x494a(){const _0x26635=['set','3750020mOepDR','9sxwYti','_createLoaderView','div','_loaderView','execute','30NczlrO','AI_CHAT_STOP_GENERATING','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader','fire','ck-ai-chat-controls-loader-wrapper','265804WqOofI','ck-reset_all','56yeCBSL','1220968ZoAzKT','_createCancelButtonView','1782165klQmER','1053128svYDyX','171945qkNkNs','ck-ai-button-secondary\x20ck-ai-button-stop-generating','locale','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','ck-ai-chat-controls-loader-icon','setTemplate','_cancelButtonView','590135GXuZCr'];_0x494a=function(){return _0x26635;};return _0x494a();}