@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 4.36 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 _0xe7416e=_0x56aa;function _0x5c18(){const _0xfab260=['7030590shIZDA','children','element','6276776iTuTdT','replyContainer','372LDgyoy','map','render','isVisible','17559100FPKwUc','7381535WZJzFg','streaming','545217pVzQUB','div','2760408foFxHE','innerHTML','extendTemplate','ck-ai-chat__feed__ai-reply-container','ck-ai-chat__feed__ai-reply','setTemplate','addMany','9SkxZVx','ck-reset_all-excluded','34785DuWZAn','updateContent','updateSources','options','locale','markAsDone','add','streamIntoElement','2GtppwR','static','initialContent'];_0x5c18=function(){return _0xfab260;};return _0x5c18();}(function(_0x2452db,_0x4967de){const _0x58c197=_0x56aa,_0x167ff9=_0x2452db();while(!![]){try{const _0x460cc1=-parseInt(_0x58c197(0x1ef))/0x1*(-parseInt(_0x58c197(0x202))/0x2)+-parseInt(_0x58c197(0x1f1))/0x3+-parseInt(_0x58c197(0x20a))/0x4*(-parseInt(_0x58c197(0x1fa))/0x5)+-parseInt(_0x58c197(0x205))/0x6+-parseInt(_0x58c197(0x1ed))/0x7+parseInt(_0x58c197(0x208))/0x8*(parseInt(_0x58c197(0x1f8))/0x9)+parseInt(_0x58c197(0x1ec))/0xa;if(_0x460cc1===_0x4967de)break;else _0x167ff9['push'](_0x167ff9['shift']());}catch(_0x3fd496){_0x167ff9['push'](_0x167ff9['shift']());}}}(_0x5c18,0x8f24f));import{AIChatFeedItemView as _0x15fe1f}from'./aichatfeeditemview.js';function _0x56aa(_0x51529d,_0x5407d8){const _0x5c18dc=_0x5c18();return _0x56aa=function(_0x56aa5d,_0x46b926){_0x56aa5d=_0x56aa5d-0x1eb;let _0x3d853f=_0x5c18dc[_0x56aa5d];return _0x3d853f;},_0x56aa(_0x51529d,_0x5407d8);}import{parse as _0x47998b,render as _0x4e7285}from'../../../aicore/utils/htmlparser.js';import{View as _0x1fa872}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x2c6b0e,AIWebSourceView as _0x5e1657}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x15fe1f{[_0xe7416e(0x209)];constructor(_0x235cf3,_0x26139f){const _0x5f0911=_0xe7416e;super(_0x26139f),this[_0x5f0911(0x1fe)]=_0x235cf3,this[_0x5f0911(0x1f3)]({'attributes':{'class':[_0x5f0911(0x1f5)]}}),this[_0x5f0911(0x209)]=new _0x1fa872(),this[_0x5f0911(0x209)][_0x5f0911(0x1f6)]({'tag':_0x5f0911(0x1f0),'attributes':{'class':['ck',_0x5f0911(0x1f9),_0x5f0911(0x1f4)]}}),this[_0x5f0911(0x206)][_0x5f0911(0x200)](this[_0x5f0911(0x209)]);}async[_0xe7416e(0x20c)](){const _0x221cf6=_0xe7416e;super[_0x221cf6(0x20c)](),this[_0x221cf6(0x1fd)][_0x221cf6(0x204)]&&(await this[_0x221cf6(0x1fb)]({'parsedContent':_0x47998b(this[_0x221cf6(0x1fd)][_0x221cf6(0x204)]),'renderingStrategy':_0x221cf6(0x203)}),this[_0x221cf6(0x1ff)]());}async[_0xe7416e(0x1fb)]({parsedContent:_0x236413,renderingStrategy:_0x11c9c1,abortSignal:_0xfe70e0}){const _0x5229ea=_0xe7416e;_0x5229ea(0x1ee)===_0x11c9c1?await this[_0x5229ea(0x201)](_0x236413,this[_0x5229ea(0x209)][_0x5229ea(0x207)],_0xfe70e0):this[_0x5229ea(0x209)][_0x5229ea(0x207)][_0x5229ea(0x1f2)]=_0x4e7285(_0x236413);}[_0xe7416e(0x1fc)](_0x5d98b4){const _0x2ebe33=_0xe7416e,_0x2bac28=new _0x2c6b0e(this[_0x2ebe33(0x1fe)]);_0x2bac28[_0x2ebe33(0x206)][_0x2ebe33(0x1f7)](_0x5d98b4[_0x2ebe33(0x20b)](_0x1feb98=>new _0x5e1657(this[_0x2ebe33(0x1fe)],_0x1feb98))),_0x2bac28[_0x2ebe33(0x1eb)]=!0x0,this[_0x2ebe33(0x206)][_0x2ebe33(0x200)](_0x2bac28);}}