UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 6.88 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 _0x86b97c=_0x585c;(function(_0xd4b0ec,_0xbdfab1){var _0x289d28=_0x585c,_0x25e3c5=_0xd4b0ec();while(!![]){try{var _0x443072=parseInt(_0x289d28(0xd8))/0x1*(parseInt(_0x289d28(0xcb))/0x2)+-parseInt(_0x289d28(0xe1))/0x3*(parseInt(_0x289d28(0xbd))/0x4)+-parseInt(_0x289d28(0xd2))/0x5*(-parseInt(_0x289d28(0xc1))/0x6)+parseInt(_0x289d28(0xb4))/0x7+parseInt(_0x289d28(0xce))/0x8*(-parseInt(_0x289d28(0xcc))/0x9)+parseInt(_0x289d28(0xd4))/0xa*(parseInt(_0x289d28(0xc3))/0xb)+parseInt(_0x289d28(0xdb))/0xc*(-parseInt(_0x289d28(0xda))/0xd);if(_0x443072===_0xbdfab1)break;else _0x25e3c5['push'](_0x25e3c5['shift']());}catch(_0x739aa){_0x25e3c5['push'](_0x25e3c5['shift']());}}}(_0x30c8,0xaf058));function _0x30c8(){var _0x5cc71c=['updateSources','toggleSuggestionDisplayMode','2705JwLfxN','hasNonEmptyParts','59810JFmCpz','set','mouseOverSuggestion','applySuggestion','2igVSxj','isVisible','87165HRPovZ','2004oPZrQG','ck-ai-chat__feed__ai-suggestion','mouseLeaveSuggestion','showDiff','options','updateContent','87648hjsLvv','getPartView','areActionsDisabled','8167460gxuYrr','children','markAsDone','rejectSuggestion','dislike','availableActions','fire','isTrackChangesOn','extendTemplate','72tOKuHy','bodyView','updateLabels','addMany','3288CMfEiH','isEnabled','2123anrDfJ','showChangeInText','actionsView','partsCount','like','containerView','insertSuggestion','updatePartState','707870WDafhn','90ZIeHrS','hasPendingParts','770352BhjMJV','bind'];_0x30c8=function(){return _0x5cc71c;};return _0x30c8();}import{AIChatFeedItemView as _0x3c9c6c}from'./aichatfeeditemview.js';function _0x585c(_0x5d2f19,_0xb8c70){var _0x30c8bd=_0x30c8();return _0x585c=function(_0x585cb6,_0x4120b8){_0x585cb6=_0x585cb6-0xb3;var _0x4888b2=_0x30c8bd[_0x585cb6];return _0x4888b2;},_0x585c(_0x5d2f19,_0xb8c70);}import{AISuggestionContainerView as _0x336a80}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0xd573b8}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x3c9c6c{[_0x86b97c(0xc8)];[_0x86b97c(0xc5)];constructor(_0x230773,_0x2dd150){var _0x438a4f=_0x86b97c;super(_0x2dd150),this[_0x438a4f(0xd5)](_0x438a4f(0xbb),!0x1),this[_0x438a4f(0xc8)]=new _0x336a80(_0x230773,{'showDiff':_0x2dd150[_0x438a4f(0xde)],'areActionsDisabled':_0x2dd150[_0x438a4f(0xb3)],'availableActions':_0x2dd150[_0x438a4f(0xb9)]}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xd1),(_0xc43bcc,_0x51ee35)=>{var _0x2c6588=_0x438a4f;this[_0x2c6588(0xba)](_0x2c6588(0xd1),{'replyId':this[_0x2c6588(0xdf)]['id'],'showDiff':_0x51ee35[_0x2c6588(0xde)]});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xc7),()=>{var _0x3a0f5d=_0x438a4f;this[_0x3a0f5d(0xba)](_0x3a0f5d(0xc7),{'replyId':this[_0x3a0f5d(0xdf)]['id']});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xb8),()=>{var _0x68cb21=_0x438a4f;this[_0x68cb21(0xba)](_0x68cb21(0xb8),{'replyId':this[_0x68cb21(0xdf)]['id']});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xc4),(_0x3e7c57,{index:_0x3820fe})=>{var _0x4459f2=_0x438a4f;this[_0x4459f2(0xba)](_0x4459f2(0xc4),{'replyId':this[_0x4459f2(0xdf)]['id'],'partIndex':_0x3820fe});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xc9),(_0x210eea,{index:_0xc6b56})=>{var _0x1e2232=_0x438a4f;this[_0x1e2232(0xba)](_0x1e2232(0xc9),{'replyId':this[_0x1e2232(0xdf)]['id'],'partIndex':_0xc6b56});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xb7),(_0xeac74c,{index:_0x6d05d0})=>{var _0x2b032a=_0x438a4f;this[_0x2b032a(0xba)](_0x2b032a(0xb7),{'replyId':this[_0x2b032a(0xdf)]['id'],'partIndex':_0x6d05d0});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xd6),(_0xab2916,{index:_0x121425})=>{var _0x46b876=_0x438a4f;this[_0x46b876(0xba)](_0x46b876(0xd6),{'replyId':this[_0x46b876(0xdf)]['id'],'partIndex':_0x121425});}),this[_0x438a4f(0xc8)]['on'](_0x438a4f(0xdd),(_0x576ddf,{index:_0x23e778})=>{var _0x1d698a=_0x438a4f;this[_0x1d698a(0xba)](_0x1d698a(0xdd),{'replyId':this[_0x1d698a(0xdf)]['id'],'partIndex':_0x23e778});}),this[_0x438a4f(0xc5)]=new _0xd573b8(_0x230773,this[_0x438a4f(0xdf)][_0x438a4f(0xb9)]),this[_0x438a4f(0xc5)][_0x438a4f(0xcf)](_0x438a4f(0xbb))['to'](this,_0x438a4f(0xbb)),this[_0x438a4f(0xc5)]['on'](_0x438a4f(0xc4),()=>{var _0x2f56f0=_0x438a4f;this[_0x2f56f0(0xba)](_0x2f56f0(0xc4),{'replyId':this[_0x2f56f0(0xdf)]['id']});}),this[_0x438a4f(0xc5)]['on'](_0x438a4f(0xc9),()=>{var _0x157f61=_0x438a4f;this[_0x157f61(0xba)](_0x157f61(0xc9),{'replyId':this[_0x157f61(0xdf)]['id']});}),this[_0x438a4f(0xc5)]['on'](_0x438a4f(0xd7),()=>{var _0x4d4b15=_0x438a4f;this[_0x4d4b15(0xba)](_0x4d4b15(0xd7),{'replyId':this[_0x4d4b15(0xdf)]['id']});}),_0x2dd150[_0x438a4f(0xb3)]?this[_0x438a4f(0xc5)][_0x438a4f(0xc2)]=!0x1:this[_0x438a4f(0xc5)][_0x438a4f(0xcf)](_0x438a4f(0xc2))['to'](this[_0x438a4f(0xc8)][_0x438a4f(0xbe)],_0x438a4f(0xcd)),this[_0x438a4f(0xb5)][_0x438a4f(0xc0)]([this[_0x438a4f(0xc8)],this[_0x438a4f(0xc5)]]),this[_0x438a4f(0xbc)]({'attributes':{'class':[_0x438a4f(0xdc)]}});}async[_0x86b97c(0xe0)](_0x74fd55){var _0x7af9bf=_0x86b97c;await this[_0x7af9bf(0xc8)][_0x7af9bf(0xe0)](_0x74fd55),this[_0x7af9bf(0xc5)][_0x7af9bf(0xbf)](this[_0x7af9bf(0xc8)][_0x7af9bf(0xbe)][_0x7af9bf(0xc6)]);}[_0x86b97c(0xca)](_0x5ea4d0,_0x284b52){var _0xaf1914=_0x86b97c;this[_0xaf1914(0xc8)][_0xaf1914(0xbe)][_0xaf1914(0xca)](_0x5ea4d0,_0x284b52);}[_0x86b97c(0xd0)](_0x6d1f28){var _0x2bebf0=_0x86b97c;this[_0x2bebf0(0xc8)][_0x2bebf0(0xd0)](_0x6d1f28);}[_0x86b97c(0xe2)](_0x3091ca){var _0xeded34=_0x86b97c;return this[_0xeded34(0xc8)][_0xeded34(0xbe)][_0xeded34(0xe2)](_0x3091ca);}[_0x86b97c(0xb6)](){var _0x2d344e=_0x86b97c;super[_0x2d344e(0xb6)](),this[_0x2d344e(0xc8)][_0x2d344e(0xb6)](),this[_0x2d344e(0xc5)][_0x2d344e(0xd9)]=this[_0x2d344e(0xc8)][_0x2d344e(0xbe)][_0x2d344e(0xd3)];}}