UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 4.16 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 _0x31d8(_0x44d28f,_0x2319a1){var _0x3b0ea0=_0x3b0e();return _0x31d8=function(_0x31d8de,_0x4137c9){_0x31d8de=_0x31d8de-0x19f;var _0x10983e=_0x3b0ea0[_0x31d8de];return _0x10983e;},_0x31d8(_0x44d28f,_0x2319a1);}var _0x10b234=_0x31d8;(function(_0x12795d,_0x84443f){var _0x3f2497=_0x31d8,_0x3eb72a=_0x12795d();while(!![]){try{var _0x175b80=parseInt(_0x3f2497(0x1bc))/0x1+parseInt(_0x3f2497(0x1bb))/0x2+parseInt(_0x3f2497(0x1b9))/0x3+parseInt(_0x3f2497(0x1b0))/0x4*(-parseInt(_0x3f2497(0x1b1))/0x5)+parseInt(_0x3f2497(0x1b2))/0x6+-parseInt(_0x3f2497(0x1b6))/0x7+parseInt(_0x3f2497(0x1a2))/0x8*(-parseInt(_0x3f2497(0x1ae))/0x9);if(_0x175b80===_0x84443f)break;else _0x3eb72a['push'](_0x3eb72a['shift']());}catch(_0x1fee10){_0x3eb72a['push'](_0x3eb72a['shift']());}}}(_0x3b0e,0xddc66));import{AIChatFeedItemView as _0x728013}from'./aichatfeeditemview.js';function _0x3b0e(){var _0x2808c0=['extendTemplate','4808610FToQCy','_messageContentView','1578172FPNrGc','1088921eMnFTD','_bodyCollection','_contextChipsView','_locale','element','setTemplate','render','2595696FFtKMG','_createMessageContentView','children','options','initialContent','contextItems','ck-ai-chat__feed__message-content','ck-ai-chat__feed__user-message','filter','innerHTML','hidden','add','36eQKuqM','markAsDone','4672100Fmxuxe','5nGBCig','1272090QblisD','length','div','ck-ai-chat__feed__context-chips','2230403NgXzEc','_createContextChipsView'];_0x3b0e=function(){return _0x2808c0;};return _0x3b0e();}import{AIChatFeedContextChipsView as _0x1d4e2b}from'./aichatfeedcontextchipsview.js';import{View as _0x4c0a70}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x728013{[_0x10b234(0x1be)]=null;[_0x10b234(0x1bf)];[_0x10b234(0x1bd)];[_0x10b234(0x1ba)];constructor(_0x300185,_0x42fe9d,_0x25bb53){var _0xa95e8c=_0x10b234;super(_0x42fe9d),this[_0xa95e8c(0x1bf)]=_0x300185,this[_0xa95e8c(0x1bd)]=_0x25bb53,this[_0xa95e8c(0x1b7)](),this[_0xa95e8c(0x1a3)](),this[_0xa95e8c(0x1b8)]({'attributes':{'class':[_0xa95e8c(0x1a9)]}});}[_0x10b234(0x1b7)](){var _0x437b79=_0x10b234;this[_0x437b79(0x1a5)][_0x437b79(0x1a7)]&&this[_0x437b79(0x1a5)][_0x437b79(0x1a7)][_0x437b79(0x1b3)]>0x0&&(this[_0x437b79(0x1be)]=new _0x1d4e2b(this[_0x437b79(0x1bf)],this[_0x437b79(0x1a5)][_0x437b79(0x1a7)][_0x437b79(0x1aa)](_0x4d7eac=>!_0x4d7eac[_0x437b79(0x1ac)]),this[_0x437b79(0x1bd)]),this[_0x437b79(0x1be)][_0x437b79(0x1b8)]({'attributes':{'class':_0x437b79(0x1b5)}}),this[_0x437b79(0x1a4)][_0x437b79(0x1ad)](this[_0x437b79(0x1be)]));}[_0x10b234(0x1a3)](){var _0x1d81e3=_0x10b234;this[_0x1d81e3(0x1ba)]=new _0x4c0a70(this[_0x1d81e3(0x1bf)]),this[_0x1d81e3(0x1ba)][_0x1d81e3(0x1a0)]({'tag':_0x1d81e3(0x1b4),'attributes':{'class':_0x1d81e3(0x1a8)}}),this[_0x1d81e3(0x1a4)][_0x1d81e3(0x1ad)](this[_0x1d81e3(0x1ba)]);}[_0x10b234(0x1a1)](){var _0x139ef4=_0x10b234;super[_0x139ef4(0x1a1)](),this[_0x139ef4(0x1ba)][_0x139ef4(0x19f)][_0x139ef4(0x1ab)]=this[_0x139ef4(0x1a5)][_0x139ef4(0x1a6)],this[_0x139ef4(0x1af)]();}}