@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ee2=['reduce','data','split','getRanges','_saved','end','delete','getMultiRangeId','_markerNames','map','getMarkers','removeMarker','commentThread','onAccept','markers','addMarkerName','nodeBefore','author','_isDataLoaded','length','decorate','head','hasComments','_onAccept','previous','getRange','getMarkerNames','discard','getFirstMarker','from','type','_onAttributesChange','getContainedElement','getItems','setAttribute','attributes','creator','toJSON','isIntersectingWithRange','authoredAt','getFirstRange','accept','subType','start','set','next','change','clear','_model','isExternal','_onDiscard','removeMarkers','addMarker','onAttributesChange','getAllAdjacentSuggestions','get','isMultiRange','@external','createdAt','addRange','isIntersecting','add','nodeAfter'];(function(_0x45fa24,_0x4ee27f){const _0x4368e7=function(_0x34b4a6){while(--_0x34b4a6){_0x45fa24['push'](_0x45fa24['shift']());}};_0x4368e7(++_0x4ee27f);}(_0x4ee2,0x18a));const _0x4368=function(_0x45fa24,_0x4ee27f){_0x45fa24=_0x45fa24-0x0;let _0x4368e7=_0x4ee2[_0x45fa24];return _0x4368e7;};import{Element as _0x547a8d}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x1dc614,uid as _0x5303a2}from'ckeditor5/src/utils.js';import{cloneDeep as _0x5b3a6c,isEqual as _0x34cfae,set as _0xc22a59,unset as _0x4c8ac7}from'lodash-es';export default class u extends _0x1dc614(){constructor(_0x4ef936,_0x62a734){super(),this[_0x4368('0x2')]=!0x1,this['id']=_0x62a734['id'],this[_0x4368('0xe')]=_0x62a734['type'],this[_0x4368('0x1a')]=_0x62a734[_0x4368('0x1a')]||null,this[_0x4368('0x1')]=_0x62a734['author'],this[_0x4368('0x14')]=_0x62a734[_0x4368('0x14')]||_0x62a734['author'],this[_0x4368('0x21')]=Boolean(_0x62a734[_0x4368('0x13')]&&_0x62a734['attributes'][_0x4368('0x29')]),this[_0x4368('0x30')]=null,this[_0x4368('0x20')]=_0x4ef936,this['_onAccept']=_0x62a734[_0x4368('0x3c')],this[_0x4368('0x22')]=_0x62a734['onDiscard'],this['_onAttributesChange']=_0x62a734[_0x4368('0x25')],this['_markerNames']=new Set(),this['createdAt']=null,this[_0x4368('0x1c')](_0x4368('0x17'),null),this['set'](_0x4368('0x13'),_0x62a734['attributes']||{}),this[_0x4368('0x1c')](_0x4368('0x8'),null),this[_0x4368('0x1c')]('next',null),this[_0x4368('0x1c')](_0x4368('0x3b'),null),this['set'](_0x4368('0x33'),!0x1),this[_0x4368('0x4')]('accept'),this['decorate'](_0x4368('0xb'));}get[_0x4368('0x5')](){let _0x3c959b=this;for(;_0x3c959b[_0x4368('0x8')];)_0x3c959b=_0x3c959b['previous'];return _0x3c959b;}get[_0x4368('0x6')](){return!!this[_0x4368('0x3b')]&&this[_0x4368('0x3b')]['length']>0x0;}get[_0x4368('0x28')](){if(0x0==this[_0x4368('0x37')]['size'])return!0x1;return 0x6==Array[_0x4368('0xd')](this[_0x4368('0x37')])[0x0][_0x4368('0x31')](':')[_0x4368('0x3')];}get['isInContent'](){return null!==this[_0x4368('0xc')]();}[_0x4368('0x3e')](_0x51a512){this[_0x4368('0x37')][_0x4368('0x2d')](_0x51a512);}[_0x4368('0xa')](){return Array[_0x4368('0xd')](this[_0x4368('0x37')]);}[_0x4368('0x39')](){return this[_0x4368('0xa')]()[_0x4368('0x38')](_0x23c0b9=>this[_0x4368('0x20')][_0x4368('0x3d')][_0x4368('0x27')](_0x23c0b9))['filter'](_0x13f6d3=>_0x13f6d3);}[_0x4368('0xc')](){return this[_0x4368('0x39')]()[0x0]||null;}[_0x4368('0x23')](){this[_0x4368('0x20')][_0x4368('0x1e')](_0x24f9a0=>{for(const _0x4b33ec of this['getMarkers']())_0x24f9a0[_0x4368('0x3a')](_0x4b33ec);}),this[_0x4368('0x37')][_0x4368('0x1f')]();}[_0x4368('0x3a')](_0x474138){this['_model'][_0x4368('0x1e')](_0x203fd9=>{_0x203fd9['removeMarker'](_0x474138);}),this[_0x4368('0x37')][_0x4368('0x35')](_0x474138);}[_0x4368('0x2b')](_0x4337fc){const _0x1767d3='suggestion:'+this['type']+':'+this[_0x4368('0x1a')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x4368('0x36')]();this[_0x4368('0x3e')](_0x1767d3),this[_0x4368('0x20')][_0x4368('0x1e')](_0x359f51=>{_0x359f51[_0x4368('0x24')](_0x1767d3,{'range':_0x4337fc,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4368('0x16')](_0xd57c0){for(const _0x55dc3c of this['getRanges']())if(_0x55dc3c[_0x4368('0x2c')](_0xd57c0))return!0x0;return!0x1;}[_0x4368('0x32')](){return this[_0x4368('0x39')]()[_0x4368('0x38')](_0x2bfe09=>_0x2bfe09[_0x4368('0x9')]());}['getItems'](){return this['getRanges']()[_0x4368('0x2f')]((_0x2ba7a1,_0x5f09dc)=>[..._0x2ba7a1,..._0x5f09dc[_0x4368('0x11')]()],[]);}[_0x4368('0x18')](){var _0x4906d3;return(null===(_0x4906d3=this[_0x4368('0xc')]())||void 0x0===_0x4906d3?void 0x0:_0x4906d3[_0x4368('0x9')]())||null;}[_0x4368('0x10')](){const _0x1df29=this[_0x4368('0x32')]();if(0x1!=_0x1df29[_0x4368('0x3')])return null;const _0x58dbae=_0x1df29[0x0],_0x4032ff=_0x58dbae[_0x4368('0x1b')][_0x4368('0x2e')],_0x56991b=_0x58dbae[_0x4368('0x34')][_0x4368('0x0')];return _0x4032ff instanceof _0x547a8d?_0x4032ff!=_0x56991b?null:_0x4032ff:null;}[_0x4368('0x19')](){this[_0x4368('0x7')](this[_0x4368('0x32')](),this[_0x4368('0x30')],this[_0x4368('0x13')]),this['removeMarkers']();}[_0x4368('0xb')](){this[_0x4368('0x22')](this[_0x4368('0x32')](),this[_0x4368('0x30')],this[_0x4368('0x13')]),this['removeMarkers']();}[_0x4368('0x26')](){const _0x13aa00=[];let _0x2772c3=this[_0x4368('0x5')];for(;_0x2772c3;)_0x13aa00['push'](_0x2772c3),_0x2772c3=_0x2772c3[_0x4368('0x1d')];return _0x13aa00;}[_0x4368('0x12')](_0x416d1d,_0x38a735){const _0x1f0690=_0x5b3a6c(this[_0x4368('0x13')]);_0xc22a59(_0x1f0690,_0x416d1d,_0x38a735),_0x34cfae(_0x1f0690,this[_0x4368('0x13')])||(this[_0x4368('0x13')]=_0x1f0690,this[_0x4368('0xf')](_0x1f0690));}['removeAttribute'](_0xf7c189){const _0x9a1dc8=_0x5b3a6c(this['attributes']);_0x4c8ac7(_0x9a1dc8,_0xf7c189),_0x34cfae(_0x9a1dc8,this[_0x4368('0x13')])||(this[_0x4368('0x13')]=_0x9a1dc8,this[_0x4368('0xf')](this['attributes']));}[_0x4368('0x15')](){return{'id':this['id'],'type':this[_0x4368('0x1a')]?this[_0x4368('0xe')]+':'+this[_0x4368('0x1a')]:this[_0x4368('0xe')],'authorId':this[_0x4368('0x14')]['id'],'createdAt':this[_0x4368('0x2a')],'hasComments':this[_0x4368('0x6')],'data':this[_0x4368('0x30')],'attributes':this[_0x4368('0x13')]};}static['getMultiRangeId'](){return _0x5303a2()['substr'](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27af=['type','isEmpty','_attributeLabels','data','format','*Remove:*\x20%0','$textProxy','element','function','nextSibling','push','subType','registerDescriptionCallback','_handleInsertRemoveSuggestionDescription','getFirstRange','match','set','join','add','_handleRenameSuggestionDescription','isEqual','_locale','replace','newValue','has','registerElementLabel','_customCallbacks','ELEMENT_SPACE','insertion','*Change\x20to:*\x20%0','Container','_schema','item','previousSibling','$text','text','length','_resolveDescriptionItems','end','*Set\x20format:*\x20%0','_handleAttributeSuggestionDescription','skip','nodeAfter','_itemLabels','getWalker','addEmptyContainer','name','removeContainer','pop','addFormat','start','isObject','attribute','$1\x20$2','REPLACE_TEXT','removeFormat','removeEmptyContainer','_addDescriptionItems','*Split:*\x20%0','getItemLabel','addContainer','*Insert:*\x20%0','*Remove\x20format:*\x20%0','_handleCustomCallbackDescription','key','quantity','Object','map','remove','_itemLabelsCallbacks','matchingCallback','elementEnd','indexOf','get','deletion','registerAttributeLabel','removeObject'];(function(_0x211644,_0x27af6c){const _0x15ed43=function(_0x36bd41){while(--_0x36bd41){_0x211644['push'](_0x211644['shift']());}};_0x15ed43(++_0x27af6c);}(_0x27af,0xef));const _0x15ed=function(_0x211644,_0x27af6c){_0x211644=_0x211644-0x0;let _0x15ed43=_0x27af[_0x211644];return _0x15ed43;};import{getTranslation as _0x26e76a}from'./utils/common-translations.js';import{priorities as _0x5eda7a,insertToPriorityArray as _0x4aff39}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x31024f}from'./trackchangesediting.js';export default class f{constructor(_0x5bab82,_0xee105f){this['_customCallbacks']=[],this[_0x15ed('0x23')]=new Map(),this[_0x15ed('0x3d')]=[],this[_0x15ed('0x47')]=new Map(),this[_0x15ed('0x17')]=_0x5bab82,this['_locale']=_0xee105f;}['getDescriptions'](_0x5825b7){const _0x5ec8c7=[],_0x415a81=new Set(),_0x47db07=new Set();for(let _0x58ab53=0x0;_0x58ab53<_0x5825b7['length'];_0x58ab53++){const _0x32cf6f=_0x5825b7[_0x58ab53];if(!_0x32cf6f['isInContent'])continue;const _0x3a9d40=this[_0x15ed('0x37')](_0x32cf6f);if(_0x3a9d40){if(null!=_0x32cf6f[_0x15ed('0x3')]){if(_0x415a81[_0x15ed('0x10')](_0x32cf6f[_0x15ed('0x3')]))continue;_0x415a81[_0x15ed('0xa')](_0x32cf6f[_0x15ed('0x3')]);}_0x5ec8c7[_0x15ed('0x2')](_0x3a9d40);}else{if(_0x15ed('0x2c')!=_0x32cf6f[_0x15ed('0x45')])_0x15ed('0x14')!=_0x32cf6f[_0x15ed('0x45')]&&_0x15ed('0x42')!=_0x32cf6f[_0x15ed('0x45')]||this[_0x15ed('0x5')](_0x5ec8c7,_0x32cf6f,_0x5825b7[_0x58ab53+0x1]);else{const _0x57dc79=_0x32cf6f[_0x15ed('0x48')][_0x15ed('0x38')];if(_0x47db07[_0x15ed('0x10')](_0x57dc79))continue;_0x47db07[_0x15ed('0xa')](_0x32cf6f[_0x15ed('0x48')]['key']),_0x57dc79==_0x31024f?this['_handleRenameSuggestionDescription'](_0x5ec8c7,_0x32cf6f):this[_0x15ed('0x20')](_0x5ec8c7,_0x32cf6f);}}}return this['_resolveDescriptionItems'](_0x5ec8c7);}[_0x15ed('0x4')](_0x2b1124){this[_0x15ed('0x12')][_0x15ed('0x2')](_0x2b1124);}[_0x15ed('0x11')](_0x377f2c,_0x36c27c,_0x451810=_0x5eda7a['normal']){_0x15ed('0x0')==typeof _0x377f2c?_0x4aff39(this[_0x15ed('0x3d')],{'matchingCallback':_0x377f2c,'label':_0x36c27c,'priority':_0x451810}):this[_0x15ed('0x23')][_0x15ed('0x8')](_0x377f2c,_0x36c27c);}[_0x15ed('0x43')](_0xb7eb80,_0x32ca4d){this['_attributeLabels']['set'](_0xb7eb80,_0x32ca4d);}[_0x15ed('0x33')](_0x1ef685,_0xeab75e=0x1){let _0x403c6b;for(const _0xa7e82d of this[_0x15ed('0x3d')])if(_0xa7e82d[_0x15ed('0x3e')](_0x1ef685)){_0x403c6b=_0xa7e82d['label'];break;}return _0x403c6b||(_0x403c6b=this[_0x15ed('0x23')][_0x15ed('0x41')](_0x1ef685['name'])),_0x403c6b?_0x403c6b(_0xeab75e):0x1!==_0xeab75e?_0xeab75e+'\x20'+_0x1ef685[_0x15ed('0x26')]+'s':''+_0x1ef685[_0x15ed('0x26')];}['_addDescriptionItems'](_0x9cd1e0,_0x410888){const _0x5474de=_0x410888['getFirstRange']()[_0x15ed('0x24')](),_0x540544=_0x15ed('0x14')==_0x410888[_0x15ed('0x45')]?_0x15ed('0xa'):_0x15ed('0x3c');for(const _0x386dd6 of _0x5474de){const _0x2f478=_0x386dd6[_0x15ed('0x18')],_0x3bfd00=_0x9cd1e0[_0x9cd1e0[_0x15ed('0x1c')]-0x1];if(_0x2f478['is'](_0x15ed('0x4b')))_0x3bfd00&&_0x3bfd00[_0x15ed('0x45')][_0x15ed('0x40')]('Container')>-0x1&&_0x9cd1e0[_0x15ed('0x28')](),_0x3bfd00&&_0x15ed('0x1b')==_0x3bfd00[_0x15ed('0x45')]?_0x3bfd00[_0x540544]+=_0x2f478[_0x15ed('0x48')]:_0x9cd1e0['push']({'type':_0x15ed('0x1b'),'add':_0x15ed('0xa')==_0x540544?_0x2f478[_0x15ed('0x48')]:'','remove':_0x15ed('0x3c')==_0x540544?_0x2f478[_0x15ed('0x48')]:''});else{if(this[_0x15ed('0x17')]['isObject'](_0x2f478)){const _0x3f450b=_0x2f478;if(_0x3bfd00&&_0x3bfd00[_0x15ed('0x45')][_0x15ed('0x40')](_0x15ed('0x16'))>-0x1&&_0x9cd1e0[_0x15ed('0x28')](),'elementEnd'==_0x386dd6[_0x15ed('0x45')])continue;_0x3bfd00&&_0x3bfd00['type']==_0x540544+'Object'&&_0x3bfd00[_0x15ed('0x4c')][_0x15ed('0x26')]==_0x3f450b[_0x15ed('0x26')]?_0x3bfd00[_0x15ed('0x39')]++:_0x9cd1e0[_0x15ed('0x2')]({'type':_0x540544+_0x15ed('0x3a'),'element':_0x3f450b,'quantity':0x1}),_0x5474de[_0x15ed('0x21')](_0x26bb18=>!(_0x15ed('0x3f')==_0x26bb18['type']&&_0x26bb18[_0x15ed('0x18')]==_0x2f478));}else{if(this['_schema']['checkChild'](_0x2f478,_0x15ed('0x1a'))||_0x2f478['is'](_0x15ed('0x4c'),'softBreak')){const _0x16502b=_0x2f478;if(_0x15ed('0xa')==_0x540544&&'elementStart'==_0x386dd6[_0x15ed('0x45')]||_0x15ed('0x3c')==_0x540544&&_0x15ed('0x3f')==_0x386dd6[_0x15ed('0x45')])continue;if(_0x3bfd00&&-0x1==_0x3bfd00[_0x15ed('0x45')]['indexOf']('Container')){_0x15ed('0x1b')==_0x3bfd00[_0x15ed('0x45')]&&(_0x3bfd00[_0x540544]+='\x0a');continue;}let _0x336998;if(_0x336998='add'==_0x540544?_0x16502b[_0x15ed('0x1')]&&!this[_0x15ed('0x17')]['isObject'](_0x16502b['nextSibling'])?_0x16502b[_0x15ed('0x1')]:null:_0x16502b[_0x15ed('0x19')]&&!this[_0x15ed('0x17')][_0x15ed('0x2b')](_0x16502b[_0x15ed('0x19')])?_0x16502b['previousSibling']:null,_0x16502b[_0x15ed('0x46')]||_0x336998&&_0x336998[_0x15ed('0x46')]){const _0x4c3afa=_0x336998&&_0x336998[_0x15ed('0x46')]?_0x336998:_0x16502b;_0x3bfd00&&_0x3bfd00[_0x15ed('0x45')]==_0x540544+'EmptyContainer'&&_0x3bfd00[_0x15ed('0x4c')][_0x15ed('0x26')]==_0x4c3afa[_0x15ed('0x26')]?_0x3bfd00[_0x15ed('0x39')]++:_0x9cd1e0[_0x15ed('0x2')]({'type':_0x540544+'EmptyContainer','element':_0x4c3afa,'quantity':0x1});}else _0x9cd1e0[_0x15ed('0x2')]({'type':_0x540544+_0x15ed('0x16'),'element':_0x16502b});}}}}}[_0x15ed('0x1d')](_0x408ea3){const _0x2a91c3=this[_0x15ed('0xd')],_0x1c0859=[],_0x7fd8b=[],_0x4d9730=[];for(const _0x326462 of _0x408ea3)switch(_0x326462[_0x15ed('0x45')]){case _0x15ed('0x1b'):if(_0x326462[_0x15ed('0xa')]=_0x326462[_0x15ed('0xa')][_0x15ed('0xe')](/(\S)\u000A+(\S)/g,_0x15ed('0x2d'))[_0x15ed('0xe')](/\u000A/g,''),_0x326462[_0x15ed('0x3c')]=_0x326462[_0x15ed('0x3c')]['replace'](/(\S)\u000A+(\S)/g,_0x15ed('0x2d'))[_0x15ed('0xe')](/\u000A/g,''),''!=_0x326462['add']&&''!=_0x326462[_0x15ed('0x3c')]){_0x1c0859['push']({'type':_0x15ed('0xe'),'content':_0x26e76a(_0x2a91c3,_0x15ed('0x2e'),['\x22'+_0x326462[_0x15ed('0x3c')]+'\x22','\x22'+_0x326462['add']+'\x22'])});continue;}if(null!=_0x326462[_0x15ed('0xa')][_0x15ed('0x7')](/^ +$/)){_0x1c0859[_0x15ed('0x2')]({'type':'insertion','content':_0x26e76a(_0x2a91c3,_0x15ed('0x35'),_0x26e76a(_0x2a91c3,_0x15ed('0x13'),_0x326462['add']['length']))});continue;}if(null!=_0x326462[_0x15ed('0x3c')][_0x15ed('0x7')](/^ +$/)){_0x1c0859[_0x15ed('0x2')]({'type':'deletion','content':_0x26e76a(_0x2a91c3,_0x15ed('0x4a'),_0x26e76a(_0x2a91c3,_0x15ed('0x13'),_0x326462['remove'][_0x15ed('0x1c')]))});continue;}if(''!=_0x326462[_0x15ed('0xa')]){_0x1c0859[_0x15ed('0x2')]({'type':'insertion','content':_0x26e76a(_0x2a91c3,_0x15ed('0x35'),'\x22'+_0x326462[_0x15ed('0xa')]+'\x22')});continue;}_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x42'),'content':_0x26e76a(_0x2a91c3,_0x15ed('0x4a'),'\x22'+_0x326462[_0x15ed('0x3c')]+'\x22')});continue;case _0x15ed('0x25'):case'addObject':_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x14'),'content':_0x26e76a(_0x2a91c3,_0x15ed('0x35'),this[_0x15ed('0x33')](_0x326462[_0x15ed('0x4c')],_0x326462[_0x15ed('0x39')]))});continue;case _0x15ed('0x30'):case _0x15ed('0x44'):_0x1c0859[_0x15ed('0x2')]({'type':'deletion','content':_0x26e76a(_0x2a91c3,_0x15ed('0x4a'),this[_0x15ed('0x33')](_0x326462[_0x15ed('0x4c')],_0x326462['quantity']))});continue;case _0x15ed('0x34'):_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x14'),'content':_0x26e76a(_0x2a91c3,_0x15ed('0x32'),this[_0x15ed('0x33')](_0x326462[_0x15ed('0x4c')],_0x326462['quantity']))});continue;case _0x15ed('0x27'):_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x42'),'content':_0x26e76a(_0x2a91c3,'*Merge:*\x20%0',this[_0x15ed('0x33')](_0x326462['element'],_0x326462[_0x15ed('0x39')]))});continue;case _0x15ed('0x29'):_0x7fd8b[_0x15ed('0x2')](_0x326462[_0x15ed('0x38')]);continue;case _0x15ed('0x2f'):_0x4d9730[_0x15ed('0x2')](_0x326462[_0x15ed('0x38')]);continue;default:_0x1c0859[_0x15ed('0x2')](_0x326462);}if(_0x7fd8b[_0x15ed('0x1c')]){const _0x74c413=_0x7fd8b[_0x15ed('0x3b')](_0x32bfd3=>this[_0x15ed('0x47')][_0x15ed('0x10')](_0x32bfd3)?this[_0x15ed('0x47')][_0x15ed('0x41')](_0x32bfd3):_0x32bfd3)[_0x15ed('0x9')](',\x20');_0x1c0859['push']({'type':'format','content':_0x26e76a(this[_0x15ed('0xd')],_0x15ed('0x1f'),_0x74c413)});}if(_0x4d9730['length']){const _0x19f6ef=_0x4d9730['map'](_0x4eb8e5=>this['_attributeLabels'][_0x15ed('0x10')](_0x4eb8e5)?this['_attributeLabels'][_0x15ed('0x41')](_0x4eb8e5):_0x4eb8e5)[_0x15ed('0x9')](',\x20');_0x1c0859[_0x15ed('0x2')]({'type':_0x15ed('0x49'),'content':_0x26e76a(this[_0x15ed('0xd')],_0x15ed('0x36'),_0x19f6ef)});}return _0x1c0859;}[_0x15ed('0x37')](_0x300c79){for(const _0x245e6b of this[_0x15ed('0x12')]){const _0x58b248=_0x245e6b(_0x300c79);if(_0x58b248&&_0x15ed('0x45')in _0x58b248)return _0x58b248;}}[_0x15ed('0x20')](_0x4f3721,_0x294c2e){const _0x102a54=_0x294c2e[_0x15ed('0x48')],_0x7bc435=void 0x0===_0x102a54[_0x15ed('0xf')]?_0x15ed('0x2f'):_0x15ed('0x29');_0x4f3721[_0x15ed('0x2')]({'type':_0x7bc435,'key':_0x102a54[_0x15ed('0x38')]});}[_0x15ed('0xb')](_0x416885,_0x1bd7a7){_0x416885[_0x15ed('0x2')]({'type':_0x15ed('0x49'),'content':_0x26e76a(this['_locale'],_0x15ed('0x15'),this['getItemLabel'](_0x1bd7a7['getFirstRange']()[_0x15ed('0x2a')][_0x15ed('0x22')],0x1))});}[_0x15ed('0x5')](_0x2173e6,_0x10d985,_0x3ade9e){if(this[_0x15ed('0x31')](_0x2173e6,_0x10d985),_0x3ade9e&&_0x3ade9e[_0x15ed('0x6')]()&&!_0x10d985['getFirstRange']()[_0x15ed('0x1e')][_0x15ed('0xc')](_0x3ade9e[_0x15ed('0x6')]()['start'])){const _0x3328ae=_0x2173e6[_0x2173e6[_0x15ed('0x1c')]-0x1],_0x2a5bfd=_0x15ed('0x14')==_0x10d985[_0x15ed('0x45')]?_0x15ed('0xa'):_0x15ed('0x3c');_0x3328ae&&_0x15ed('0x1b')==_0x3328ae[_0x15ed('0x45')]&&(_0x3328ae[_0x2a5bfd]+='\x0a');}}}
|
|
23
|
+
const _0x4c6a=['$1\x20$2','getDescriptions','_itemLabels','_handleInsertRemoveSuggestionDescription','_customCallbacks','data','*Remove\x20format:*\x20%0','addFormat','getFirstRange','subType','$text','attribute','nodeAfter','newValue','matchingCallback','has','item','match','length','getWalker','push','*Remove:*\x20%0','_schema','_handleAttributeSuggestionDescription','deletion','softBreak','indexOf','checkChild','format','removeFormat','isObject','start','remove','_resolveDescriptionItems','insertion','_locale','Object','getItemLabel','_itemLabelsCallbacks','label','addObject','ELEMENT_SPACE','*Change\x20to:*\x20%0','previousSibling','add','element','_attributeLabels','elementEnd','quantity','addEmptyContainer','EmptyContainer','normal','elementStart','REPLACE_TEXT','text','join','_handleCustomCallbackDescription','*Set\x20format:*\x20%0','registerElementLabel','nextSibling','$textProxy','removeObject','map','removeContainer','_addDescriptionItems','isEmpty','*Insert:*\x20%0','Container','key','replace','name','addContainer','type','registerDescriptionCallback','_handleRenameSuggestionDescription','get','skip','removeEmptyContainer'];(function(_0x426635,_0x4c6a28){const _0x25d5bd=function(_0x9c5ce0){while(--_0x9c5ce0){_0x426635['push'](_0x426635['shift']());}};_0x25d5bd(++_0x4c6a28);}(_0x4c6a,0x17b));const _0x25d5=function(_0x426635,_0x4c6a28){_0x426635=_0x426635-0x0;let _0x25d5bd=_0x4c6a[_0x426635];return _0x25d5bd;};import{getTranslation as _0x4156af}from'./utils/common-translations.js';import{priorities as _0x2d4a56,insertToPriorityArray as _0x2acdcc}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x38bbf8}from'./trackchangesediting.js';export default class f{constructor(_0x10a83b,_0x3a2565){this[_0x25d5('0xf')]=[],this[_0x25d5('0xd')]=new Map(),this[_0x25d5('0x31')]=[],this[_0x25d5('0x39')]=new Map(),this['_schema']=_0x10a83b,this[_0x25d5('0x2e')]=_0x3a2565;}[_0x25d5('0xc')](_0x353136){const _0x2519ad=[],_0x53dfb2=new Set(),_0x385c26=new Set();for(let _0x3f7f24=0x0;_0x3f7f24<_0x353136[_0x25d5('0x1d')];_0x3f7f24++){const _0x1ed9f9=_0x353136[_0x3f7f24];if(!_0x1ed9f9['isInContent'])continue;const _0x2e439d=this['_handleCustomCallbackDescription'](_0x1ed9f9);if(_0x2e439d){if(null!=_0x1ed9f9['subType']){if(_0x53dfb2[_0x25d5('0x1a')](_0x1ed9f9[_0x25d5('0x14')]))continue;_0x53dfb2[_0x25d5('0x37')](_0x1ed9f9[_0x25d5('0x14')]);}_0x2519ad[_0x25d5('0x1f')](_0x2e439d);}else{if(_0x25d5('0x16')!=_0x1ed9f9[_0x25d5('0x5')])_0x25d5('0x2d')!=_0x1ed9f9['type']&&'deletion'!=_0x1ed9f9['type']||this[_0x25d5('0xe')](_0x2519ad,_0x1ed9f9,_0x353136[_0x3f7f24+0x1]);else{const _0xf6a447=_0x1ed9f9[_0x25d5('0x10')][_0x25d5('0x1')];if(_0x385c26[_0x25d5('0x1a')](_0xf6a447))continue;_0x385c26[_0x25d5('0x37')](_0x1ed9f9[_0x25d5('0x10')][_0x25d5('0x1')]),_0xf6a447==_0x38bbf8?this[_0x25d5('0x7')](_0x2519ad,_0x1ed9f9):this['_handleAttributeSuggestionDescription'](_0x2519ad,_0x1ed9f9);}}}return this[_0x25d5('0x2c')](_0x2519ad);}[_0x25d5('0x6')](_0x565040){this[_0x25d5('0xf')][_0x25d5('0x1f')](_0x565040);}[_0x25d5('0x45')](_0x52f993,_0x5980c2,_0x1cd3aa=_0x2d4a56[_0x25d5('0x3e')]){'function'==typeof _0x52f993?_0x2acdcc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x52f993,'label':_0x5980c2,'priority':_0x1cd3aa}):this[_0x25d5('0xd')]['set'](_0x52f993,_0x5980c2);}['registerAttributeLabel'](_0xda1fcf,_0x289015){this[_0x25d5('0x39')]['set'](_0xda1fcf,_0x289015);}[_0x25d5('0x30')](_0x41b623,_0x276a67=0x1){let _0x331ca9;for(const _0x311c64 of this['_itemLabelsCallbacks'])if(_0x311c64[_0x25d5('0x19')](_0x41b623)){_0x331ca9=_0x311c64[_0x25d5('0x32')];break;}return _0x331ca9||(_0x331ca9=this[_0x25d5('0xd')]['get'](_0x41b623[_0x25d5('0x3')])),_0x331ca9?_0x331ca9(_0x276a67):0x1!==_0x276a67?_0x276a67+'\x20'+_0x41b623[_0x25d5('0x3')]+'s':''+_0x41b623[_0x25d5('0x3')];}[_0x25d5('0x4b')](_0x16f59d,_0x17cf26){const _0x20206b=_0x17cf26[_0x25d5('0x13')]()[_0x25d5('0x1e')](),_0x1c549b=_0x25d5('0x2d')==_0x17cf26[_0x25d5('0x5')]?_0x25d5('0x37'):_0x25d5('0x2b');for(const _0x5e6e08 of _0x20206b){const _0x2120db=_0x5e6e08[_0x25d5('0x1b')],_0x2eb7ef=_0x16f59d[_0x16f59d['length']-0x1];if(_0x2120db['is'](_0x25d5('0x47')))_0x2eb7ef&&_0x2eb7ef[_0x25d5('0x5')][_0x25d5('0x25')](_0x25d5('0x0'))>-0x1&&_0x16f59d['pop'](),_0x2eb7ef&&_0x25d5('0x41')==_0x2eb7ef[_0x25d5('0x5')]?_0x2eb7ef[_0x1c549b]+=_0x2120db[_0x25d5('0x10')]:_0x16f59d[_0x25d5('0x1f')]({'type':_0x25d5('0x41'),'add':_0x25d5('0x37')==_0x1c549b?_0x2120db[_0x25d5('0x10')]:'','remove':'remove'==_0x1c549b?_0x2120db[_0x25d5('0x10')]:''});else{if(this[_0x25d5('0x21')][_0x25d5('0x29')](_0x2120db)){const _0x2a9d74=_0x2120db;if(_0x2eb7ef&&_0x2eb7ef[_0x25d5('0x5')][_0x25d5('0x25')]('Container')>-0x1&&_0x16f59d['pop'](),_0x25d5('0x3a')==_0x5e6e08[_0x25d5('0x5')])continue;_0x2eb7ef&&_0x2eb7ef[_0x25d5('0x5')]==_0x1c549b+_0x25d5('0x2f')&&_0x2eb7ef[_0x25d5('0x38')][_0x25d5('0x3')]==_0x2a9d74[_0x25d5('0x3')]?_0x2eb7ef['quantity']++:_0x16f59d[_0x25d5('0x1f')]({'type':_0x1c549b+_0x25d5('0x2f'),'element':_0x2a9d74,'quantity':0x1}),_0x20206b[_0x25d5('0x9')](_0x40154a=>!(_0x25d5('0x3a')==_0x40154a['type']&&_0x40154a['item']==_0x2120db));}else{if(this[_0x25d5('0x21')][_0x25d5('0x26')](_0x2120db,_0x25d5('0x15'))||_0x2120db['is'](_0x25d5('0x38'),_0x25d5('0x24'))){const _0xe66abf=_0x2120db;if('add'==_0x1c549b&&_0x25d5('0x3f')==_0x5e6e08['type']||'remove'==_0x1c549b&&_0x25d5('0x3a')==_0x5e6e08['type'])continue;if(_0x2eb7ef&&-0x1==_0x2eb7ef[_0x25d5('0x5')][_0x25d5('0x25')]('Container')){'text'==_0x2eb7ef[_0x25d5('0x5')]&&(_0x2eb7ef[_0x1c549b]+='\x0a');continue;}let _0x15ac75;if(_0x15ac75=_0x25d5('0x37')==_0x1c549b?_0xe66abf[_0x25d5('0x46')]&&!this['_schema'][_0x25d5('0x29')](_0xe66abf[_0x25d5('0x46')])?_0xe66abf[_0x25d5('0x46')]:null:_0xe66abf['previousSibling']&&!this[_0x25d5('0x21')][_0x25d5('0x29')](_0xe66abf[_0x25d5('0x36')])?_0xe66abf['previousSibling']:null,_0xe66abf[_0x25d5('0x4c')]||_0x15ac75&&_0x15ac75['isEmpty']){const _0x166e93=_0x15ac75&&_0x15ac75[_0x25d5('0x4c')]?_0x15ac75:_0xe66abf;_0x2eb7ef&&_0x2eb7ef['type']==_0x1c549b+_0x25d5('0x3d')&&_0x2eb7ef[_0x25d5('0x38')][_0x25d5('0x3')]==_0x166e93[_0x25d5('0x3')]?_0x2eb7ef[_0x25d5('0x3b')]++:_0x16f59d[_0x25d5('0x1f')]({'type':_0x1c549b+_0x25d5('0x3d'),'element':_0x166e93,'quantity':0x1});}else _0x16f59d[_0x25d5('0x1f')]({'type':_0x1c549b+_0x25d5('0x0'),'element':_0xe66abf});}}}}}['_resolveDescriptionItems'](_0x48d95e){const _0x2faebb=this[_0x25d5('0x2e')],_0x5dfa99=[],_0x59a67b=[],_0x1bc80b=[];for(const _0x240d6a of _0x48d95e)switch(_0x240d6a[_0x25d5('0x5')]){case _0x25d5('0x41'):if(_0x240d6a[_0x25d5('0x37')]=_0x240d6a[_0x25d5('0x37')][_0x25d5('0x2')](/(\S)\u000A+(\S)/g,_0x25d5('0xb'))[_0x25d5('0x2')](/\u000A/g,''),_0x240d6a[_0x25d5('0x2b')]=_0x240d6a[_0x25d5('0x2b')]['replace'](/(\S)\u000A+(\S)/g,_0x25d5('0xb'))[_0x25d5('0x2')](/\u000A/g,''),''!=_0x240d6a[_0x25d5('0x37')]&&''!=_0x240d6a[_0x25d5('0x2b')]){_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x2'),'content':_0x4156af(_0x2faebb,_0x25d5('0x40'),['\x22'+_0x240d6a['remove']+'\x22','\x22'+_0x240d6a['add']+'\x22'])});continue;}if(null!=_0x240d6a[_0x25d5('0x37')][_0x25d5('0x1c')](/^ +$/)){_0x5dfa99['push']({'type':'insertion','content':_0x4156af(_0x2faebb,_0x25d5('0x4d'),_0x4156af(_0x2faebb,_0x25d5('0x34'),_0x240d6a[_0x25d5('0x37')]['length']))});continue;}if(null!=_0x240d6a[_0x25d5('0x2b')]['match'](/^ +$/)){_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x23'),'content':_0x4156af(_0x2faebb,_0x25d5('0x20'),_0x4156af(_0x2faebb,_0x25d5('0x34'),_0x240d6a[_0x25d5('0x2b')]['length']))});continue;}if(''!=_0x240d6a[_0x25d5('0x37')]){_0x5dfa99['push']({'type':_0x25d5('0x2d'),'content':_0x4156af(_0x2faebb,_0x25d5('0x4d'),'\x22'+_0x240d6a[_0x25d5('0x37')]+'\x22')});continue;}_0x5dfa99['push']({'type':_0x25d5('0x23'),'content':_0x4156af(_0x2faebb,_0x25d5('0x20'),'\x22'+_0x240d6a[_0x25d5('0x2b')]+'\x22')});continue;case _0x25d5('0x3c'):case _0x25d5('0x33'):_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x2d'),'content':_0x4156af(_0x2faebb,_0x25d5('0x4d'),this[_0x25d5('0x30')](_0x240d6a['element'],_0x240d6a[_0x25d5('0x3b')]))});continue;case _0x25d5('0xa'):case _0x25d5('0x48'):_0x5dfa99[_0x25d5('0x1f')]({'type':'deletion','content':_0x4156af(_0x2faebb,_0x25d5('0x20'),this[_0x25d5('0x30')](_0x240d6a[_0x25d5('0x38')],_0x240d6a[_0x25d5('0x3b')]))});continue;case _0x25d5('0x4'):_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x2d'),'content':_0x4156af(_0x2faebb,'*Split:*\x20%0',this[_0x25d5('0x30')](_0x240d6a[_0x25d5('0x38')],_0x240d6a[_0x25d5('0x3b')]))});continue;case _0x25d5('0x4a'):_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x23'),'content':_0x4156af(_0x2faebb,'*Merge:*\x20%0',this[_0x25d5('0x30')](_0x240d6a[_0x25d5('0x38')],_0x240d6a[_0x25d5('0x3b')]))});continue;case'addFormat':_0x59a67b[_0x25d5('0x1f')](_0x240d6a['key']);continue;case _0x25d5('0x28'):_0x1bc80b[_0x25d5('0x1f')](_0x240d6a[_0x25d5('0x1')]);continue;default:_0x5dfa99[_0x25d5('0x1f')](_0x240d6a);}if(_0x59a67b[_0x25d5('0x1d')]){const _0x3f4c7a=_0x59a67b['map'](_0x3e8d95=>this[_0x25d5('0x39')][_0x25d5('0x1a')](_0x3e8d95)?this['_attributeLabels'][_0x25d5('0x8')](_0x3e8d95):_0x3e8d95)[_0x25d5('0x42')](',\x20');_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x27'),'content':_0x4156af(this[_0x25d5('0x2e')],_0x25d5('0x44'),_0x3f4c7a)});}if(_0x1bc80b[_0x25d5('0x1d')]){const _0x2a8585=_0x1bc80b[_0x25d5('0x49')](_0x3ec95f=>this['_attributeLabels']['has'](_0x3ec95f)?this['_attributeLabels'][_0x25d5('0x8')](_0x3ec95f):_0x3ec95f)[_0x25d5('0x42')](',\x20');_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x27'),'content':_0x4156af(this[_0x25d5('0x2e')],_0x25d5('0x11'),_0x2a8585)});}return _0x5dfa99;}[_0x25d5('0x43')](_0x51b3ed){for(const _0x40e6fe of this[_0x25d5('0xf')]){const _0x12b891=_0x40e6fe(_0x51b3ed);if(_0x12b891&&_0x25d5('0x5')in _0x12b891)return _0x12b891;}}[_0x25d5('0x22')](_0x3facbc,_0x4cce30){const _0x3f42b8=_0x4cce30['data'],_0x5ecc9a=void 0x0===_0x3f42b8[_0x25d5('0x18')]?_0x25d5('0x28'):_0x25d5('0x12');_0x3facbc[_0x25d5('0x1f')]({'type':_0x5ecc9a,'key':_0x3f42b8[_0x25d5('0x1')]});}[_0x25d5('0x7')](_0x439da8,_0x14ef38){_0x439da8['push']({'type':_0x25d5('0x27'),'content':_0x4156af(this[_0x25d5('0x2e')],_0x25d5('0x35'),this[_0x25d5('0x30')](_0x14ef38[_0x25d5('0x13')]()[_0x25d5('0x2a')][_0x25d5('0x17')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x203134,_0xf2ee84,_0x1c7ed4){if(this[_0x25d5('0x4b')](_0x203134,_0xf2ee84),_0x1c7ed4&&_0x1c7ed4['getFirstRange']()&&!_0xf2ee84[_0x25d5('0x13')]()['end']['isEqual'](_0x1c7ed4[_0x25d5('0x13')]()['start'])){const _0x4e65ca=_0x203134[_0x203134[_0x25d5('0x1d')]-0x1],_0x4f91e9='insertion'==_0xf2ee84['type']?_0x25d5('0x37'):_0x25d5('0x2b');_0x4e65ca&&'text'==_0x4e65ca[_0x25d5('0x5')]&&(_0x4e65ca[_0x4f91e9]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x238b=['editor','pluginName','getSuggestions','adapter','getSuggestion','addSuggestionData','requires','get','addSuggestion','plugins'];(function(_0x3420d9,_0x238b71){var _0xb92aff=function(_0x17dad8){while(--_0x17dad8){_0x3420d9['push'](_0x3420d9['shift']());}};_0xb92aff(++_0x238b71);}(_0x238b,0x13f));var _0xb92a=function(_0x3420d9,_0x238b71){_0x3420d9=_0x3420d9-0x0;var _0xb92aff=_0x238b[_0x3420d9];return _0xb92aff;};import{Plugin as _0x465651}from'ckeditor5/src/core.js';import _0x544a36 from'./trackchangesui.js';import _0x42b7bb from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x465651{static get[_0xb92a('0x7')](){return[_0x42b7bb,_0x544a36,'Comments'];}static get[_0xb92a('0x2')](){return'TrackChanges';}set[_0xb92a('0x4')](_0x4ae955){this['editor'][_0xb92a('0x0')][_0xb92a('0x8')](_0x42b7bb)[_0xb92a('0x4')]=_0x4ae955;}get[_0xb92a('0x4')](){return this[_0xb92a('0x1')][_0xb92a('0x0')][_0xb92a('0x8')](_0x42b7bb)[_0xb92a('0x4')];}[_0xb92a('0x9')](_0x68ba4c){return this[_0xb92a('0x1')][_0xb92a('0x0')]['get'](_0x42b7bb)[_0xb92a('0x6')](_0x68ba4c);}[_0xb92a('0x3')]({skipNotAttached:_0xea48cf=!0x1,toJSON:_0xd2cb84=!0x1}={}){return this['editor'][_0xb92a('0x0')]['get'](_0x42b7bb)[_0xb92a('0x3')]({'skipNotAttached':_0xea48cf,'toJSON':_0xd2cb84});}[_0xb92a('0x5')](_0x4468b6){return this['editor'][_0xb92a('0x0')]['get'](_0x42b7bb)[_0xb92a('0x5')](_0x4468b6);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b4b=['init','data','TrackChangesData','discardAllSuggestions','trackChangesData.editorCreator','function','createDocumentFragment','users','getDataWithDiscardedSuggestions','get','rootsAttributes','result','config','editorCreator','trackChangesData','addUser','name','pluginName','div','getFullData','getDataWithAcceptedSuggestions','create','track-changes-data-invalid-editor-creator','set','model','TrackChangesDataGetter','appendChild','destroy','TrackChangesEditing','document','getRootsAttributes','editor','CommentsRepository','_adapter','plugins','useAnonymousUser','Users','addSuggestionData','end','reduce'];(function(_0x2e865a,_0x2b4b66){const _0x40ca86=function(_0x4523a4){while(--_0x4523a4){_0x2e865a['push'](_0x2e865a['shift']());}};_0x40ca86(++_0x2b4b66);}(_0x2b4b,0x127));const _0x40ca=function(_0x2e865a,_0x2b4b66){_0x2e865a=_0x2e865a-0x0;let _0x40ca86=_0x2b4b[_0x2e865a];return _0x40ca86;};import{Plugin as _0x533b84}from'ckeditor5/src/core.js';import{CKEditorError as _0x3a34cd}from'ckeditor5/src/utils.js';import _0x5ce0b1 from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x1e9a54}from'ckeditor5-collaboration/src/collaboration-core.js';const T=['Pagination'];export default class P extends _0x533b84{static get['requires'](){return[_0x5ce0b1];}static get['pluginName'](){return _0x40ca('0x1b');}[_0x40ca('0x19')](){const _0x5679a7=this[_0x40ca('0x10')];if(_0x5679a7['config']['define'](_0x40ca('0x1d'),_0x6a206f=>{const _0x1fbfa=_0x5679a7['model']['document']['getRootNames']()[_0x40ca('0x18')]((_0x2473e6,_0x414749)=>(_0x2473e6[_0x414749]='',_0x2473e6),{});return _0x5679a7['constructor'][_0x40ca('0x6')](_0x1fbfa,_0x6a206f);}),_0x40ca('0x1e')!=typeof _0x5679a7['config'][_0x40ca('0x22')](_0x40ca('0x27'))[_0x40ca('0x26')])throw new _0x3a34cd(_0x40ca('0x7'));}[_0x40ca('0x5')](_0x2dc962){return N(this[_0x40ca('0x10')],!0x0,_0x2dc962);}[_0x40ca('0x21')](_0x411286){return N(this['editor'],!0x1,_0x411286);}}class D extends _0x533b84{static get[_0x40ca('0x2')](){return _0x40ca('0xa');}constructor(_0x355abe){super(_0x355abe),this[_0x40ca('0x24')]=_0x40ca('0x17');}[_0x40ca('0x19')](){this['editor'][_0x40ca('0x13')][_0x40ca('0x22')](_0x40ca('0x11'))[_0x40ca('0x12')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x40ca('0x10')]['plugins']['get'](_0x40ca('0xd'))[_0x40ca('0x12')]=null;}}function v(_0x300ccb){return void 0x0!==_0x300ccb[_0x40ca('0xf')];}async function N(_0x4306c0,_0x268920,_0x3b1875){const _0x38aecf=_0x1e9a54(_0x4306c0,T);_0x38aecf[_0x40ca('0x13')]['push'](_0x5ce0b1,D),_0x38aecf[_0x40ca('0x23')]=v(_0x4306c0)?_0x4306c0[_0x40ca('0xf')]():void 0x0;const _0x5ebd38=document[_0x40ca('0x1f')](),_0x30a4cb=_0x4306c0[_0x40ca('0x25')][_0x40ca('0x22')]('trackChangesData')[_0x40ca('0x26')],_0x564254=await _0x30a4cb(_0x38aecf,()=>function(_0x544c1d){const _0xc5383b=document['createElement'](_0x40ca('0x3'));return _0x544c1d[_0x40ca('0xb')](_0xc5383b),_0xc5383b;}(_0x5ebd38));!function(_0x3f9500,_0x923794){const _0x239e28=_0x3f9500[_0x40ca('0x9')][_0x40ca('0xe')]['getRootNames']()[_0x40ca('0x18')]((_0x4e71b4,_0x598fd1)=>(_0x4e71b4[_0x598fd1]=_0x3f9500[_0x40ca('0x1a')][_0x40ca('0x22')]({'rootName':_0x598fd1}),_0x4e71b4),{}),_0x361453=_0x3f9500[_0x40ca('0x13')][_0x40ca('0x22')]('Users')[_0x40ca('0x20')]['map'](_0xdcce14=>({'id':_0xdcce14['id'],'name':_0xdcce14[_0x40ca('0x1')]})),_0x1e0c8a=_0x3f9500[_0x40ca('0x13')][_0x40ca('0x22')](_0x40ca('0xd'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c2008=_0x923794[_0x40ca('0x13')][_0x40ca('0x22')](_0x40ca('0x15')),_0x50e62f=_0x923794[_0x40ca('0x13')]['get'](_0x40ca('0xd'));for(const _0x236512 of _0x361453)_0x4c2008['getUser'](_0x236512['id'])||_0x4c2008[_0x40ca('0x0')](_0x236512);_0x4c2008['me']||_0x4c2008[_0x40ca('0x14')]();for(const _0x13453f of _0x1e0c8a)_0x50e62f[_0x40ca('0x16')](_0x13453f);_0x923794[_0x40ca('0x1a')][_0x40ca('0x8')](_0x239e28);}(_0x4306c0,_0x564254),_0x564254['execute'](_0x268920?'acceptAllSuggestions':_0x40ca('0x1c'));const _0x120731=v(_0x564254)?_0x564254[_0x40ca('0x4')](_0x3b1875):_0x564254[_0x40ca('0x1a')][_0x40ca('0x22')](_0x3b1875);return await _0x564254[_0x40ca('0xc')](),_0x120731;}
|