UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 3.69 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ var _0x48a82f=_0x3132;(function(_0x5d8630,_0x55440c){var _0x362806=_0x3132,_0x175ced=_0x5d8630();while(!![]){try{var _0x57afc0=parseInt(_0x362806(0x1f4))/0x1+-parseInt(_0x362806(0x204))/0x2+parseInt(_0x362806(0x1f5))/0x3+parseInt(_0x362806(0x1fc))/0x4*(parseInt(_0x362806(0x203))/0x5)+parseInt(_0x362806(0x1ff))/0x6*(parseInt(_0x362806(0x200))/0x7)+parseInt(_0x362806(0x1f7))/0x8*(parseInt(_0x362806(0x207))/0x9)+-parseInt(_0x362806(0x1fe))/0xa;if(_0x57afc0===_0x55440c)break;else _0x175ced['push'](_0x175ced['shift']());}catch(_0x231371){_0x175ced['push'](_0x175ced['shift']());}}}(_0x58e1,0xb3e04));function _0x58e1(){var _0x4454ca=['785kRgisv','2801818FjQDKU','current-document','getDocumentContext','12328092LqKRaw','userMessage','quickActionData','contextItems','connector','1278997PlHDkc','3816063TxBPnG','capabilities','8DnlTXc','sendRequest','getCapabilitiesRequestData','get','queryAssistant','18832VCcwtw','model','33856470vGLRBe','62412OmFAEg','581MWFWov','conversationId','mapContextItemsToRequestData'];_0x58e1=function(){return _0x4454ca;};return _0x58e1();}function _0x3132(_0x458dc7,_0x4c3f0a){var _0x58e174=_0x58e1();return _0x3132=function(_0x313227,_0xeab68c){_0x313227=_0x313227-0x1f4;var _0x4b2614=_0x58e174[_0x313227];return _0x4b2614;},_0x3132(_0x458dc7,_0x4c3f0a);}import{AICapabilities as _0x4c81ea}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x560663}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3a8db0}from'./aichatcontext.js';export class AIChatInteraction extends _0x560663{[_0x48a82f(0x208)];[_0x48a82f(0x201)];[_0x48a82f(0x20a)]=new Map();[_0x48a82f(0x1fd)];[_0x48a82f(0x209)];constructor(_0x327a72){var _0x472a6e=_0x48a82f;super(_0x327a72),this[_0x472a6e(0x201)]=_0x327a72[_0x472a6e(0x201)],this[_0x472a6e(0x20a)]=_0x327a72[_0x472a6e(0x20a)],this[_0x472a6e(0x1f6)]=_0x327a72[_0x472a6e(0x1f6)],this[_0x472a6e(0x208)]=_0x327a72[_0x472a6e(0x208)],this[_0x472a6e(0x1fd)]=_0x327a72[_0x472a6e(0x1fd)],this[_0x472a6e(0x209)]=_0x327a72[_0x472a6e(0x209)];}async[_0x48a82f(0x1f8)](){var _0x229e1a=_0x48a82f;return this[_0x229e1a(0x20b)][_0x229e1a(0x1fb)]({'message':this[_0x229e1a(0x208)],'conversationId':this[_0x229e1a(0x201)],'parts':_0x3a8db0[_0x229e1a(0x202)](this[_0x229e1a(0x20a)]),'capabilities':_0x4c81ea[_0x229e1a(0x1f9)](this[_0x229e1a(0x1f6)]),'model':this[_0x229e1a(0x1fd)],'quickActionData':this[_0x229e1a(0x209)]});}[_0x48a82f(0x206)](){var _0x339d5d=_0x48a82f;return this[_0x339d5d(0x20a)][_0x339d5d(0x1fa)](_0x339d5d(0x205));}}