UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 4.22 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x49cb76=_0x5221;(function(_0x222c87,_0x8bc147){const _0x570168=_0x5221,_0x55412b=_0x222c87();while(!![]){try{const _0x78bd51=-parseInt(_0x570168(0x8b))/0x1*(parseInt(_0x570168(0x95))/0x2)+parseInt(_0x570168(0xa6))/0x3*(parseInt(_0x570168(0x91))/0x4)+-parseInt(_0x570168(0x93))/0x5*(parseInt(_0x570168(0xa1))/0x6)+parseInt(_0x570168(0xa7))/0x7*(-parseInt(_0x570168(0x90))/0x8)+parseInt(_0x570168(0x98))/0x9*(parseInt(_0x570168(0x87))/0xa)+-parseInt(_0x570168(0xad))/0xb*(parseInt(_0x570168(0xa2))/0xc)+-parseInt(_0x570168(0xa5))/0xd*(-parseInt(_0x570168(0xaa))/0xe);if(_0x78bd51===_0x8bc147)break;else _0x55412b['push'](_0x55412b['shift']());}catch(_0x1eee3a){_0x55412b['push'](_0x55412b['shift']());}}}(_0x212e,0x1dc2a));import{View as _0x4446ee}from'ckeditor5/src/ui.js';function _0x212e(){const _0x292ae8=['querySelectorAll','createCollection','div','element','7456odWzpi','125684yzMeYm','[data-id]','9025CzFvBP','setTemplate','2270TBxbIU','ck-ai-chat__feed__text-item','markAsDone','18tOEUSU','set','bindTemplate','htmlStreamer','options','content','ck-ai-chat__feed__item','animation:\x20ck-html-streamer-fade-in\x20.5s','removeAttribute','12HFctbE','12KYqRBb','data-id','isVisible','52Ovdtyl','6ssOkbN','126GbFeIB','ck-ai-chat__feed__item_done','ck-hidden','821996iCCRiq','children','streamIntoElement','213862cpqBxe','isDone','262190IiQILn','forEach','stream','cleanUpAnimations','166LrkuIv'];_0x212e=function(){return _0x292ae8;};return _0x212e();}function _0x5221(_0x16e0c2,_0xe304ed){const _0x212e01=_0x212e();return _0x5221=function(_0x522176,_0x9e7632){_0x522176=_0x522176-0x86;let _0x552972=_0x212e01[_0x522176];return _0x552972;},_0x5221(_0x16e0c2,_0xe304ed);}import{HTMLStreamer as _0x16cbc3}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x4446ee{[_0x49cb76(0x9c)];[_0x49cb76(0x9d)]='';[_0x49cb76(0x9b)];[_0x49cb76(0xab)];constructor(_0x1cd9ee){const _0x3f5517=_0x49cb76;super();const _0x5b89a5=this[_0x3f5517(0x9a)];this[_0x3f5517(0x99)](_0x3f5517(0x86),!0x1),this[_0x3f5517(0x99)](_0x3f5517(0xa4),!0x0),this[_0x3f5517(0x9b)]=new _0x16cbc3({'textNodeStyle':_0x3f5517(0x9f),'delay':0x14}),this[_0x3f5517(0x9c)]=_0x1cd9ee,this[_0x3f5517(0xab)]=this[_0x3f5517(0x8d)](),this[_0x3f5517(0x94)]({'tag':_0x3f5517(0x8e),'attributes':{'class':['ck',_0x3f5517(0x9e),_0x5b89a5['if'](_0x3f5517(0x86),_0x3f5517(0xa8)),_0x5b89a5['if'](_0x3f5517(0xa4),_0x3f5517(0xa9),_0x48ffa8=>!_0x48ffa8),_0x3f5517(0x96)],'data-cke-ai-id':this[_0x3f5517(0x9c)]['id']},'children':this[_0x3f5517(0xab)]});}[_0x49cb76(0x97)](){const _0x337071=_0x49cb76;this[_0x337071(0x9b)][_0x337071(0x8a)]({'targetElement':this[_0x337071(0x8f)]}),this[_0x337071(0x8f)][_0x337071(0x8c)](_0x337071(0x92))[_0x337071(0x88)](_0x2a984a=>{const _0x3a22cc=_0x337071;_0x2a984a[_0x3a22cc(0xa0)](_0x3a22cc(0xa3));}),this[_0x337071(0x86)]=!0x0;}async[_0x49cb76(0xac)](_0x360d90,_0x5ce81e,_0x3d56c9){const _0x4854a9=_0x49cb76;await this[_0x4854a9(0x9b)][_0x4854a9(0x89)]({'document':_0x360d90,'targetElement':_0x5ce81e,'abortSignal':_0x3d56c9});}}