UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 4.13 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 _0x1e3ae6=_0x4978;(function(_0x36d050,_0x31381a){const _0x34c978=_0x4978,_0x3dcab3=_0x36d050();while(!![]){try{const _0x1f9678=-parseInt(_0x34c978(0x1ba))/0x1*(-parseInt(_0x34c978(0x1c1))/0x2)+parseInt(_0x34c978(0x1b3))/0x3+-parseInt(_0x34c978(0x1a9))/0x4+parseInt(_0x34c978(0x1b6))/0x5+parseInt(_0x34c978(0x1be))/0x6+-parseInt(_0x34c978(0x1aa))/0x7+-parseInt(_0x34c978(0x1b2))/0x8*(parseInt(_0x34c978(0x1ab))/0x9);if(_0x1f9678===_0x31381a)break;else _0x3dcab3['push'](_0x3dcab3['shift']());}catch(_0x2521eb){_0x3dcab3['push'](_0x3dcab3['shift']());}}}(_0x244d,0x4c501));function _0x244d(){const _0x2e21b5=['push','add','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','4215472OSmNfg','1868406mKLUsH','span','ck-ai-chat__feed__interaction-header__capabilities','1398065wHJQBR','content','children','div','532624RcwLyv','ck-hidden','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','3503814thAKBj','setTemplate','extendTemplate','2qVtilT','2086932gDGFot','915810ivNjDl','18LFcDbO'];_0x244d=function(){return _0x2e21b5;};return _0x244d();}import{IconBulb as _0x529814,IconWeb as _0x43e569}from'@ckeditor/ckeditor5-icons';import{IconView as _0x47a833,View as _0x36e9f5}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x2c4e59}from'./aichatfeeditemview.js';import{getTranslation as _0x25178b}from'../../../aicore/utils/common-translations.js';function _0x4978(_0xe42bde,_0x497d39){const _0x244deb=_0x244d();return _0x4978=function(_0x49782d,_0x27c8ed){_0x49782d=_0x49782d-0x1a9;let _0x340a36=_0x244deb[_0x49782d];return _0x340a36;},_0x4978(_0xe42bde,_0x497d39);}export class AIChatFeedInteractionHeaderView extends _0x2c4e59{[_0x1e3ae6(0x1bc)];constructor(_0xe0df9f,_0x4dbbbb){const _0x570d6d=_0x1e3ae6;super(_0x4dbbbb);const {isWebSearchEnabled:_0x44a34a,isReasoningEnabled:_0x271b26}=_0x4dbbbb[_0x570d6d(0x1bc)],_0x3a7364=[];let _0xcfc1ce='';_0x44a34a&&_0x271b26?(_0xcfc1ce=_0x25178b(_0xe0df9f,_0x570d6d(0x1b0)),_0x3a7364[_0x570d6d(0x1ac)](aa(_0x43e569)),_0x3a7364[_0x570d6d(0x1ac)](aa(_0x529814))):_0x44a34a?(_0xcfc1ce=_0x25178b(_0xe0df9f,_0x570d6d(0x1bd)),_0x3a7364[_0x570d6d(0x1ac)](aa(_0x43e569))):_0x271b26&&(_0xcfc1ce=_0x25178b(_0xe0df9f,_0x570d6d(0x1ae)),_0x3a7364[_0x570d6d(0x1ac)](aa(_0x529814))),this[_0x570d6d(0x1c0)]({'attributes':{'class':[_0x570d6d(0x1af),_0xcfc1ce?'':_0x570d6d(0x1bb)]}});const _0x3a64cc=new _0x36e9f5();_0x3a64cc[_0x570d6d(0x1bf)]({'tag':_0x570d6d(0x1b9),'attributes':{'class':['ck',_0x570d6d(0x1b5)]},'children':[..._0x3a7364,{'tag':_0x570d6d(0x1b4),'attributes':{'class':[_0x570d6d(0x1b1)]},'children':[_0xcfc1ce]}]}),this[_0x570d6d(0x1b8)][_0x570d6d(0x1ad)](_0x3a64cc),this[_0x570d6d(0x1bc)]=_0x4dbbbb[_0x570d6d(0x1bc)];}}function aa(_0x23f917){const _0x121607=_0x1e3ae6,_0x343a0d=new _0x47a833();return _0x343a0d[_0x121607(0x1b7)]=_0x23f917,_0x343a0d;}