UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 3.29 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x2745(_0x2dea86,_0x366163){var _0x297646=_0x2976();return _0x2745=function(_0x2745e5,_0x55b79c){_0x2745e5=_0x2745e5-0x7a;var _0x4bc58e=_0x297646[_0x2745e5];return _0x4bc58e;},_0x2745(_0x2dea86,_0x366163);}var _0x1ca135=_0x2745;(function(_0x444a14,_0x439eba){var _0xf87e42=_0x2745,_0x280e37=_0x444a14();while(!![]){try{var _0x5b803a=-parseInt(_0xf87e42(0x7b))/0x1+parseInt(_0xf87e42(0x81))/0x2+-parseInt(_0xf87e42(0x88))/0x3*(-parseInt(_0xf87e42(0x8c))/0x4)+parseInt(_0xf87e42(0x8f))/0x5*(-parseInt(_0xf87e42(0x7a))/0x6)+parseInt(_0xf87e42(0x90))/0x7+-parseInt(_0xf87e42(0x7e))/0x8+parseInt(_0xf87e42(0x8d))/0x9;if(_0x5b803a===_0x439eba)break;else _0x280e37['push'](_0x280e37['shift']());}catch(_0x3737b8){_0x280e37['push'](_0x280e37['shift']());}}}(_0x2976,0x335be));import{TextareaView as _0x521fbc}from'ckeditor5/src/ui.js';function _0x2976(){var _0x35a94f=['1005840wfjekz','maxRows','value','277920HsYYwy','trim','render','set','ai-review-mode-prompt-input','isEmpty','minRows','75Nxhfie','element','keystrokes','MAX_ROWS','23752yTANey','5578560tnjFAM','listenTo','1885CtFqUp','289604ACoWBE','MIN_ROWS','update','4152jixtUM','351642OauRKg','ck-review-mode__prompt-input','extendTemplate'];_0x2976=function(){return _0x35a94f;};return _0x2976();}import{KeystrokeHandler as _0x47ff04}from'ckeditor5/src/utils.js';export class AIReviewModePromptInputView extends _0x521fbc{[_0x1ca135(0x8a)];static [_0x1ca135(0x91)]=0x1;static [_0x1ca135(0x8b)]=0xc;constructor(_0x475dfa){var _0x1d8302=_0x1ca135;super(_0x475dfa),this[_0x1d8302(0x84)](_0x1d8302(0x86),!0x0),this[_0x1d8302(0x8a)]=new _0x47ff04(),this[_0x1d8302(0x87)]=AIReviewModePromptInputView[_0x1d8302(0x91)],this[_0x1d8302(0x7f)]=AIReviewModePromptInputView[_0x1d8302(0x8b)],this[_0x1d8302(0x7d)]({'attributes':{'id':_0x1d8302(0x85),'class':['ck',_0x1d8302(0x7c)]}});}[_0x1ca135(0x83)](){var _0x179059=_0x1ca135;super[_0x179059(0x83)](),this['on'](_0x179059(0x92),()=>{var _0x5b7c18=_0x179059;this[_0x5b7c18(0x86)]=''===this[_0x5b7c18(0x89)][_0x5b7c18(0x80)]?.[_0x5b7c18(0x82)]();}),this[_0x179059(0x8a)][_0x179059(0x8e)](this[_0x179059(0x89)]);}}