UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.95 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 _0x83f014=_0x7045;(function(_0x4f8b6d,_0x46fd88){const _0x4cc811=_0x7045,_0x24a984=_0x4f8b6d();while(!![]){try{const _0xb6f02f=-parseInt(_0x4cc811(0x182))/0x1+-parseInt(_0x4cc811(0x17f))/0x2+-parseInt(_0x4cc811(0x183))/0x3+-parseInt(_0x4cc811(0x190))/0x4*(parseInt(_0x4cc811(0x195))/0x5)+-parseInt(_0x4cc811(0x1a3))/0x6+-parseInt(_0x4cc811(0x18e))/0x7+parseInt(_0x4cc811(0x189))/0x8;if(_0xb6f02f===_0x46fd88)break;else _0x24a984['push'](_0x24a984['shift']());}catch(_0x4aef7c){_0x24a984['push'](_0x24a984['shift']());}}}(_0x121c,0x81485));function _0x7045(_0x4739de,_0x1ad972){const _0x121c11=_0x121c();return _0x7045=function(_0x7045db,_0x3c33ff){_0x7045db=_0x7045db-0x177;let _0x561ef5=_0x121c11[_0x7045db];return _0x561ef5;},_0x7045(_0x4739de,_0x1ad972);}import{default as _0x126ece}from'./basesuggestionthreadview.js';function _0x121c(){const _0x1b0ef6=['listitem','discardSuggestion','1177330lNvxKL','commentThreadInputView','24VsyOOv','ck-suggestion-','suggestionView','isEnabled','canDiscard','375990IpdkMs','set','div','focusables','ariaDescriptionView','SuggestionView','editorReady','formatDateTime','_config','disableComments','ariaLabel','push','</p>','ck-rounded-corners','4897542IfiTmG','bindTemplate','commentThread','delegate','add','_descriptionElement','ck-suggestion-wrapper','render','setTemplate','author','content','commentsListView','type','ck-suggestion--disabled-comments','getTemplate','acceptSuggestion','isActive','descriptionParts','_model','1442898dyuFXZ','description','acceptButton','673995dpEiyS','73749QpMDEq','ck-suggestion-wrapper--active','bind','canAccept','editorDestroyed','discardButton','27081624yNMOWY','<p>','color'];_0x121c=function(){return _0x1b0ef6;};return _0x121c();}import{trimHtml as _0x24a027}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x1683d6}from'../../utils/utils.js';export default class fe extends _0x126ece{[_0x83f014(0x192)];[_0x83f014(0x1a8)];constructor(_0x2f17e3,_0x4dc47,_0x50aac6,_0x81759e){const _0x233593=_0x83f014;super(_0x2f17e3,_0x4dc47,_0x50aac6,_0x81759e),this[_0x233593(0x196)](_0x233593(0x178),''),this[_0x233593(0x185)](_0x233593(0x178))['to'](this,_0x233593(0x17d),_0x5086fa=>_0x5086fa&&_0x5086fa[0x0]?_0x5086fa[0x0][_0x233593(0x178)]:''),this[_0x233593(0x185)](_0x233593(0x180))['to'](this,_0x233593(0x17d),this,_0x233593(0x17c),(_0x5a3476,_0x5272a0)=>{const _0x21a6b6=_0x233593;let _0x5eb3cd='';for(const _0x51bf53 of _0x5a3476)_0x5eb3cd+=_0x21a6b6(0x18a)+_0x1683d6(_0x51bf53[_0x21a6b6(0x1ad)],_0x51bf53[_0x21a6b6(0x18b)])+_0x21a6b6(0x1a1);return _0x5272a0?_0x5eb3cd:_0x24a027(_0x5eb3cd,{'limit':0x8c});}),this[_0x233593(0x1a8)]=null,this[_0x233593(0x192)]=new _0x81759e[(_0x233593(0x19a))](_0x2f17e3,_0x4dc47,{'formatDateTime':_0x81759e[_0x233593(0x19c)]}),this[_0x233593(0x192)][_0x233593(0x185)](_0x233593(0x180))['to'](this),this[_0x233593(0x192)][_0x233593(0x1a6)](_0x233593(0x17b),_0x233593(0x18d))['to'](this),this[_0x233593(0x192)][_0x233593(0x181)][_0x233593(0x185)](_0x233593(0x193))['to'](this,_0x233593(0x186)),this[_0x233593(0x192)][_0x233593(0x188)][_0x233593(0x185)](_0x233593(0x193))['to'](this,_0x233593(0x194)),this[_0x233593(0x198)][_0x233593(0x1a7)](this[_0x233593(0x192)]),this[_0x233593(0x177)]&&this[_0x233593(0x198)][_0x233593(0x1a7)](this[_0x233593(0x177)]),this[_0x233593(0x18f)]&&this[_0x233593(0x198)][_0x233593(0x1a7)](this[_0x233593(0x18f)]),this[_0x233593(0x1ab)](this[_0x233593(0x17a)]());}[_0x83f014(0x17a)](){const _0x3b8d19=_0x83f014,_0x3f0e8a=this[_0x3b8d19(0x1a4)],_0x2ec1a3=[this[_0x3b8d19(0x192)]];return this[_0x3b8d19(0x177)]&&_0x2ec1a3[_0x3b8d19(0x1a0)](this[_0x3b8d19(0x177)]),this[_0x3b8d19(0x18f)]&&_0x2ec1a3[_0x3b8d19(0x1a0)](this[_0x3b8d19(0x18f)]),_0x2ec1a3[_0x3b8d19(0x1a0)](this[_0x3b8d19(0x199)]),{'tag':_0x3b8d19(0x197),'attributes':{'class':['ck',_0x3b8d19(0x1a2),_0x3b8d19(0x1a9),_0x3f0e8a['if'](_0x3b8d19(0x17c),_0x3b8d19(0x184)),_0x3f0e8a['to'](_0x3b8d19(0x178),_0x6650d6=>_0x3b8d19(0x191)+_0x6650d6),this[_0x3b8d19(0x19d)][_0x3b8d19(0x19e)]&&_0x3b8d19(0x179)],'data-suggestion-id':this[_0x3b8d19(0x17e)]['id'],'data-thread-id':this[_0x3b8d19(0x17e)][_0x3b8d19(0x1a5)]['id'],'data-author-id':this[_0x3b8d19(0x17e)][_0x3b8d19(0x1ac)]['id'],'tabindex':0x0,'role':_0x3b8d19(0x18c),'aria-label':_0x3f0e8a['to'](_0x3b8d19(0x19f)),'aria-describedby':this[_0x3b8d19(0x199)]['id']},'children':_0x2ec1a3};}[_0x83f014(0x1aa)](){const _0x423f4=_0x83f014;super[_0x423f4(0x1aa)](),this[_0x423f4(0x177)]&&(this[_0x423f4(0x177)][_0x423f4(0x1a6)](_0x423f4(0x19b))['to'](this),this[_0x423f4(0x177)][_0x423f4(0x1a6)](_0x423f4(0x187))['to'](this)),this[_0x423f4(0x18f)]&&(this[_0x423f4(0x18f)][_0x423f4(0x1a6)](_0x423f4(0x19b))['to'](this),this[_0x423f4(0x18f)][_0x423f4(0x1a6)](_0x423f4(0x187))['to'](this));}}