UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 6.19 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 _0x592e29=_0x5a49;function _0x56ee(){const _0x3d20b0=['ariaLabel','_model','ck-suggestion-wrapper','</p>','push','set','9jhEYyH','bind','ck-suggestion-','isEnabled','disableComments','editorDestroyed','<p>','ck-suggestion-wrapper--active','color','SuggestionView','getTemplate','8888980GznBKe','div','36867jutHla','descriptionParts','ariaDescriptionView','bindTemplate','focusables','ck-suggestion--disabled-comments','6890810UDzNpG','91BytFTO','22810fnEAjP','_descriptionElement','isActive','editorReady','248wdGnfc','canAccept','11oewxBj','commentThread','suggestionView','discardSuggestion','setTemplate','discardButton','12BPYWpf','delegate','canDiscard','type','commentThreadInputView','560562GRbBlb','render','acceptSuggestion','description','formatDateTime','add','4439192yVfTJn','_config','author','56hSESPE','17762615tVQdCC','ck-rounded-corners','commentsListView','listitem','acceptButton','content'];_0x56ee=function(){return _0x3d20b0;};return _0x56ee();}function _0x5a49(_0x5d4098,_0x3f929f){const _0x56ee4d=_0x56ee();return _0x5a49=function(_0x5a49d2,_0x5756b8){_0x5a49d2=_0x5a49d2-0x178;let _0x6f238a=_0x56ee4d[_0x5a49d2];return _0x6f238a;},_0x5a49(_0x5d4098,_0x3f929f);}(function(_0x5ae66c,_0x451f3a){const _0x5b2425=_0x5a49,_0x45d00a=_0x5ae66c();while(!![]){try{const _0x16dcf2=-parseInt(_0x5b2425(0x1a6))/0x1*(-parseInt(_0x5b2425(0x1a7))/0x2)+-parseInt(_0x5b2425(0x19f))/0x3*(parseInt(_0x5b2425(0x1ab))/0x4)+parseInt(_0x5b2425(0x1a5))/0x5+parseInt(_0x5b2425(0x17c))/0x6*(-parseInt(_0x5b2425(0x185))/0x7)+-parseInt(_0x5b2425(0x182))/0x8*(parseInt(_0x5b2425(0x192))/0x9)+-parseInt(_0x5b2425(0x19d))/0xa*(parseInt(_0x5b2425(0x1ad))/0xb)+parseInt(_0x5b2425(0x1b3))/0xc*(parseInt(_0x5b2425(0x186))/0xd);if(_0x16dcf2===_0x451f3a)break;else _0x45d00a['push'](_0x45d00a['shift']());}catch(_0x49f044){_0x45d00a['push'](_0x45d00a['shift']());}}}(_0x56ee,0xca739));import{default as _0x15887b}from'./basesuggestionthreadview.js';import{trimHtml as _0x28ba88}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x730be9}from'../../utils/utils.js';export default class fe extends _0x15887b{[_0x592e29(0x1af)];[_0x592e29(0x1a8)];constructor(_0x11c3ed,_0x12c46e,_0x4087a2,_0x4b887f){const _0x559972=_0x592e29;super(_0x11c3ed,_0x12c46e,_0x4087a2,_0x4b887f),this[_0x559972(0x191)](_0x559972(0x17a),''),this[_0x559972(0x193)](_0x559972(0x17a))['to'](this,_0x559972(0x1a0),_0x3851a4=>_0x3851a4&&_0x3851a4[0x0]?_0x3851a4[0x0][_0x559972(0x17a)]:''),this[_0x559972(0x193)](_0x559972(0x17f))['to'](this,_0x559972(0x1a0),this,_0x559972(0x1a9),(_0x353d3b,_0x4bbc42)=>{const _0x22d2d7=_0x559972;let _0xf54ba9='';for(const _0x4d98b3 of _0x353d3b)_0xf54ba9+=_0x22d2d7(0x198)+_0x730be9(_0x4d98b3[_0x22d2d7(0x18b)],_0x4d98b3[_0x22d2d7(0x19a)])+_0x22d2d7(0x18f);return _0x4bbc42?_0xf54ba9:_0x28ba88(_0xf54ba9,{'limit':0x8c});}),this[_0x559972(0x1a8)]=null,this[_0x559972(0x1af)]=new _0x4b887f[(_0x559972(0x19b))](_0x11c3ed,_0x12c46e,{'formatDateTime':_0x4b887f[_0x559972(0x180)]}),this[_0x559972(0x1af)][_0x559972(0x193)](_0x559972(0x17f))['to'](this),this[_0x559972(0x1af)][_0x559972(0x178)](_0x559972(0x17e),_0x559972(0x1b0))['to'](this),this[_0x559972(0x1af)][_0x559972(0x18a)][_0x559972(0x193)](_0x559972(0x195))['to'](this,_0x559972(0x1ac)),this[_0x559972(0x1af)][_0x559972(0x1b2)][_0x559972(0x193)](_0x559972(0x195))['to'](this,_0x559972(0x179)),this[_0x559972(0x1a3)][_0x559972(0x181)](this[_0x559972(0x1af)]),this[_0x559972(0x188)]&&this[_0x559972(0x1a3)][_0x559972(0x181)](this[_0x559972(0x188)]),this[_0x559972(0x17b)]&&this[_0x559972(0x1a3)][_0x559972(0x181)](this[_0x559972(0x17b)]),this[_0x559972(0x1b1)](this[_0x559972(0x19c)]());}[_0x592e29(0x19c)](){const _0x287da5=_0x592e29,_0x36a52d=this[_0x287da5(0x1a2)],_0x41eaee=[this[_0x287da5(0x1af)]];return this[_0x287da5(0x188)]&&_0x41eaee[_0x287da5(0x190)](this[_0x287da5(0x188)]),this[_0x287da5(0x17b)]&&_0x41eaee[_0x287da5(0x190)](this[_0x287da5(0x17b)]),_0x41eaee[_0x287da5(0x190)](this[_0x287da5(0x1a1)]),{'tag':_0x287da5(0x19e),'attributes':{'class':['ck',_0x287da5(0x187),_0x287da5(0x18e),_0x36a52d['if'](_0x287da5(0x1a9),_0x287da5(0x199)),_0x36a52d['to'](_0x287da5(0x17a),_0x5eb6c5=>_0x287da5(0x194)+_0x5eb6c5),this[_0x287da5(0x183)][_0x287da5(0x196)]&&_0x287da5(0x1a4)],'data-suggestion-id':this[_0x287da5(0x18d)]['id'],'data-thread-id':this[_0x287da5(0x18d)][_0x287da5(0x1ae)]['id'],'data-author-id':this[_0x287da5(0x18d)][_0x287da5(0x184)]['id'],'tabindex':0x0,'role':_0x287da5(0x189),'aria-label':_0x36a52d['to'](_0x287da5(0x18c)),'aria-describedby':this[_0x287da5(0x1a1)]['id']},'children':_0x41eaee};}[_0x592e29(0x17d)](){const _0x2a5aab=_0x592e29;super[_0x2a5aab(0x17d)](),this[_0x2a5aab(0x188)]&&(this[_0x2a5aab(0x188)][_0x2a5aab(0x178)](_0x2a5aab(0x1aa))['to'](this),this[_0x2a5aab(0x188)][_0x2a5aab(0x178)](_0x2a5aab(0x197))['to'](this)),this[_0x2a5aab(0x17b)]&&(this[_0x2a5aab(0x17b)][_0x2a5aab(0x178)](_0x2a5aab(0x1aa))['to'](this),this[_0x2a5aab(0x17b)][_0x2a5aab(0x178)](_0x2a5aab(0x197))['to'](this));}}