@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 4.29 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
var _0x4945ac=_0x4b70;(function(_0x2ab75b,_0x59dfbf){var _0x1f7485=_0x4b70,_0x13b44c=_0x2ab75b();while(!![]){try{var _0x3ea00f=-parseInt(_0x1f7485(0xf6))/0x1+-parseInt(_0x1f7485(0xea))/0x2*(-parseInt(_0x1f7485(0xfc))/0x3)+parseInt(_0x1f7485(0xf8))/0x4+-parseInt(_0x1f7485(0xf3))/0x5+-parseInt(_0x1f7485(0xf5))/0x6*(parseInt(_0x1f7485(0xef))/0x7)+parseInt(_0x1f7485(0xf7))/0x8*(parseInt(_0x1f7485(0xf4))/0x9)+parseInt(_0x1f7485(0xf0))/0xa*(-parseInt(_0x1f7485(0xee))/0xb);if(_0x3ea00f===_0x59dfbf)break;else _0x13b44c['push'](_0x13b44c['shift']());}catch(_0x54a289){_0x13b44c['push'](_0x13b44c['shift']());}}}(_0x298b,0x620d7));function _0x298b(){var _0x3d7966=['AIChat','plugins','requires','sendMessage','ai.chat.models','2nSPAIN','config','pluginName','isOfficialPlugin','503129tqmSdn','721PboVXS','190zBQMzk','isPremiumPlugin','removeSelectionFromChatContext','693010trOzUG','9JascWa','3678JxOfvq','303226MEjxjD','5920280MUvCGS','1540596aDyzCQ','startConversation','define','focusPromptInput','1951341wclQBb','get','addSelectionToChatContext','ai.chat.context','context'];_0x298b=function(){return _0x3d7966;};return _0x298b();}function _0x4b70(_0xebcbb,_0x5f282e){var _0x298bf1=_0x298b();return _0x4b70=function(_0x4b704c,_0x59f03e){_0x4b704c=_0x4b704c-0xe6;var _0x308391=_0x298bf1[_0x4b704c];return _0x308391;},_0x4b70(_0xebcbb,_0x5f282e);}import{ContextPlugin as _0xfef4fb}from'ckeditor5/src/core.js';import{AIChatController as _0x4e4d5e}from'./aichatcontroller.js';import{AIEditing as _0x3368a1}from'../aicore/aiediting.js';import{AIChatUI as _0x42fcf5}from'./aichatui.js';import{AIChatHistory as _0x489b41}from'../aichathistory/aichathistory.js';export class AIChat extends _0xfef4fb{static get[_0x4945ac(0xe7)](){return[_0x4e4d5e,_0x3368a1,_0x42fcf5,_0x489b41];}static get[_0x4945ac(0xec)](){var _0x3cc056=_0x4945ac;return _0x3cc056(0x101);}static get[_0x4945ac(0xed)](){return!0x0;}static get[_0x4945ac(0xf1)](){return!0x0;}constructor(_0x34ce41){var _0x137190=_0x4945ac;super(_0x34ce41),this[_0x137190(0x100)][_0x137190(0xeb)][_0x137190(0xfa)](_0x137190(0xff),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x137190(0x100)][_0x137190(0xeb)][_0x137190(0xfa)](_0x137190(0xe9),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x4945ac(0xfe)](){var _0x4e2c2d=_0x4945ac;await this[_0x4e2c2d(0x100)][_0x4e2c2d(0xe6)][_0x4e2c2d(0xfd)](_0x4e4d5e)[_0x4e2c2d(0xfe)]();}async[_0x4945ac(0xf9)](){var _0x20d2f5=_0x4945ac;await this[_0x20d2f5(0x100)][_0x20d2f5(0xe6)][_0x20d2f5(0xfd)](_0x4e4d5e)[_0x20d2f5(0xf9)]();}async[_0x4945ac(0xe8)]({message:_0x259389,quickActionData:_0x59f17c}){var _0x3290a8=_0x4945ac;await this[_0x3290a8(0x100)][_0x3290a8(0xe6)][_0x3290a8(0xfd)](_0x4e4d5e)[_0x3290a8(0xe8)]({'message':_0x259389,'quickActionData':_0x59f17c});}[_0x4945ac(0xf2)](){var _0x561b26=_0x4945ac;this[_0x561b26(0x100)][_0x561b26(0xe6)][_0x561b26(0xfd)](_0x4e4d5e)[_0x561b26(0xf2)]();}[_0x4945ac(0xfb)](){var _0x1d5be2=_0x4945ac;this[_0x1d5be2(0x100)][_0x1d5be2(0xe6)][_0x1d5be2(0xfd)](_0x4e4d5e)[_0x1d5be2(0xfb)]();}}