UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 6.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 _0x42fde8=_0x9605;(function(_0x20acae,_0x4f8249){const _0x2208a8=_0x9605,_0x181224=_0x20acae();while(!![]){try{const _0x4b5541=parseInt(_0x2208a8(0x1b1))/0x1+parseInt(_0x2208a8(0x1cd))/0x2*(parseInt(_0x2208a8(0x1dd))/0x3)+-parseInt(_0x2208a8(0x1e9))/0x4*(parseInt(_0x2208a8(0x1c4))/0x5)+parseInt(_0x2208a8(0x1b2))/0x6*(-parseInt(_0x2208a8(0x1bf))/0x7)+-parseInt(_0x2208a8(0x1c5))/0x8*(parseInt(_0x2208a8(0x1dc))/0x9)+-parseInt(_0x2208a8(0x1cf))/0xa+parseInt(_0x2208a8(0x1df))/0xb;if(_0x4b5541===_0x4f8249)break;else _0x181224['push'](_0x181224['shift']());}catch(_0x44bcf2){_0x181224['push'](_0x181224['shift']());}}}(_0x4be7,0xe87bc));import{BaseSuggestionThreadView as _0x1654c3}from'./basesuggestionthreadview.js';import{trimHtml as _0x4cd4fe}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x457316}from'../../utils/utils.js';function _0x9605(_0x4d8e03,_0x3b76e3){const _0x4be7ef=_0x4be7();return _0x9605=function(_0x9605a8,_0x23d272){_0x9605a8=_0x9605a8-0x1b0;let _0x32a4fc=_0x4be7ef[_0x9605a8];return _0x32a4fc;},_0x9605(_0x4d8e03,_0x3b76e3);}export class SuggestionThreadView extends _0x1654c3{[_0x42fde8(0x1b0)];[_0x42fde8(0x1b5)];constructor(_0x32b88f,_0x4c71d1,_0x17fed4,_0x562a1c){const _0xf5f259=_0x42fde8;super(_0x32b88f,_0x4c71d1,_0x17fed4,_0x562a1c),this[_0xf5f259(0x1e2)](_0xf5f259(0x1d1),''),this[_0xf5f259(0x1d6)](_0xf5f259(0x1d1))['to'](this,_0xf5f259(0x1cb),_0x13bf58=>_0x13bf58&&_0x13bf58[0x0]?_0x13bf58[0x0][_0xf5f259(0x1d1)]:''),this[_0xf5f259(0x1d6)](_0xf5f259(0x1ce))['to'](this,_0xf5f259(0x1cb),this,_0xf5f259(0x1b7),(_0x2f6666,_0x4e9e80)=>{const _0x19d7be=_0xf5f259;let _0x5b2c75='';for(const _0xf08c0c of _0x2f6666)_0x5b2c75+=_0x19d7be(0x1ca)+_0x457316(_0xf08c0c[_0x19d7be(0x1b3)],_0xf08c0c[_0x19d7be(0x1b8)])+_0x19d7be(0x1c9);return _0x4e9e80?_0x5b2c75:_0x4cd4fe(_0x5b2c75,{'limit':0x8c});}),this[_0xf5f259(0x1b5)]=null,this[_0xf5f259(0x1b0)]=new _0x562a1c[(_0xf5f259(0x1c2))](_0x32b88f,_0x4c71d1,{'formatDateTime':_0x562a1c[_0xf5f259(0x1bc)]}),this[_0xf5f259(0x1b0)][_0xf5f259(0x1d6)](_0xf5f259(0x1ce))['to'](this),this[_0xf5f259(0x1b0)][_0xf5f259(0x1e6)](_0xf5f259(0x1e7),_0xf5f259(0x1e4))['to'](this),this[_0xf5f259(0x1b0)][_0xf5f259(0x1c7)][_0xf5f259(0x1d6)](_0xf5f259(0x1bd))['to'](this,_0xf5f259(0x1d5)),this[_0xf5f259(0x1b0)][_0xf5f259(0x1d0)][_0xf5f259(0x1d6)](_0xf5f259(0x1bd))['to'](this,_0xf5f259(0x1d2)),this[_0xf5f259(0x1d9)][_0xf5f259(0x1cc)](this[_0xf5f259(0x1b0)]),this[_0xf5f259(0x1db)]&&this[_0xf5f259(0x1d9)][_0xf5f259(0x1cc)](this[_0xf5f259(0x1db)]),this[_0xf5f259(0x1e1)]&&this[_0xf5f259(0x1d9)][_0xf5f259(0x1cc)](this[_0xf5f259(0x1e1)]),this[_0xf5f259(0x1e3)](this[_0xf5f259(0x1b6)]());}[_0x42fde8(0x1b6)](){const _0x124ec1=_0x42fde8,_0x6fd1a2=this[_0x124ec1(0x1de)],_0x331c00=[this[_0x124ec1(0x1b0)]];return this[_0x124ec1(0x1db)]&&_0x331c00[_0x124ec1(0x1c6)](this[_0x124ec1(0x1db)]),this[_0x124ec1(0x1e1)]&&_0x331c00[_0x124ec1(0x1c6)](this[_0x124ec1(0x1e1)]),_0x331c00[_0x124ec1(0x1c6)](this[_0x124ec1(0x1ba)]),{'tag':_0x124ec1(0x1e8),'attributes':{'class':['ck',_0x124ec1(0x1da),_0x124ec1(0x1bb),_0x6fd1a2['if'](_0x124ec1(0x1b7),_0x124ec1(0x1b9)),_0x6fd1a2['to'](_0x124ec1(0x1d1),_0x1ba265=>_0x124ec1(0x1c0)+_0x1ba265),this[_0x124ec1(0x1be)][_0x124ec1(0x1b4)]&&_0x124ec1(0x1e0)],'data-suggestion-id':this[_0x124ec1(0x1d7)]['id'],'data-thread-id':this[_0x124ec1(0x1d7)][_0x124ec1(0x1d8)]['id'],'data-author-id':this[_0x124ec1(0x1d7)][_0x124ec1(0x1c8)]['id'],'tabindex':0x0,'role':_0x124ec1(0x1d3),'aria-label':_0x6fd1a2['to'](_0x124ec1(0x1d4)),'aria-describedby':this[_0x124ec1(0x1ba)]['id']},'children':_0x331c00};}[_0x42fde8(0x1e5)](){const _0x10be42=_0x42fde8;super[_0x10be42(0x1e5)](),this[_0x10be42(0x1db)]&&(this[_0x10be42(0x1db)][_0x10be42(0x1e6)](_0x10be42(0x1c3))['to'](this),this[_0x10be42(0x1db)][_0x10be42(0x1e6)](_0x10be42(0x1c1))['to'](this)),this[_0x10be42(0x1e1)]&&(this[_0x10be42(0x1e1)][_0x10be42(0x1e6)](_0x10be42(0x1c3))['to'](this),this[_0x10be42(0x1e1)][_0x10be42(0x1e6)](_0x10be42(0x1c1))['to'](this));}}function _0x4be7(){const _0x211945=['getTemplate','isActive','color','ck-suggestion-wrapper--active','ariaDescriptionView','ck-suggestion-wrapper','formatDateTime','isEnabled','_config','58709UhJZSb','ck-suggestion-','editorDestroyed','SuggestionView','editorReady','15UzNeZx','465848svnIEI','push','acceptButton','author','</p>','<p>','descriptionParts','add','18ptqiXr','description','9201970WYFYHo','discardButton','type','canDiscard','listitem','ariaLabel','canAccept','bind','_model','commentThread','focusables','ck-rounded-corners','commentsListView','261djljCR','476664nYBwtI','bindTemplate','50344239bzgcwb','ck-suggestion--disabled-comments','commentThreadInputView','set','setTemplate','discardSuggestion','render','delegate','acceptSuggestion','div','1067316SfPHNf','suggestionView','124551khuHyu','1266BRDeWs','content','disableComments','_descriptionElement'];_0x4be7=function(){return _0x211945;};return _0x4be7();}