@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231128.0 → 0.0.0-nightly-20231129.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/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/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.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/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 _0x3024=['removeMarker','map','subType','accept','getMultiRangeId','previous','isExternal','decorate','split','_onAccept','substr','_onDiscard','add','delete','_isDataLoaded','isMultiRange','getRanges','data','type','getFirstRange','size','onDiscard','_onAttributesChange','nodeBefore','start','_model','filter','end','addRange','author','commentThread','next','addMarkerName','getFirstMarker','attributes','getAllAdjacentSuggestions','isIntersecting','isIntersectingWithRange','push','from','reduce','onAccept','getRange','length','hasComments','nodeAfter','suggestion:','createdAt','head','getItems','discard','getContainedElement','_markerNames','_saved','creator','set','removeMarkers','getMarkers','change','onAttributesChange','@external'];(function(_0x35a769,_0x302404){const _0x1ea555=function(_0xed0bbf){while(--_0xed0bbf){_0x35a769['push'](_0x35a769['shift']());}};_0x1ea555(++_0x302404);}(_0x3024,0x145));const _0x1ea5=function(_0x35a769,_0x302404){_0x35a769=_0x35a769-0x0;let _0x1ea555=_0x3024[_0x35a769];return _0x1ea555;};import{Element as _0x229a60}from'ckeditor5/src/engine';import{ObservableMixin as _0xa1a6a,uid as _0xd71a4}from'ckeditor5/src/utils';import{cloneDeep as _0x199eee,isEqual as _0x469433,set as _0x12bef5,unset as _0x420068}from'lodash-es';export default class u extends _0xa1a6a(){constructor(_0x493041,_0x586613){super(),this[_0x1ea5('0x37')]=!0x1,this['id']=_0x586613['id'],this[_0x1ea5('0x3b')]=_0x586613['type'],this[_0x1ea5('0x2b')]=_0x586613[_0x1ea5('0x2b')]||null,this['author']=_0x586613[_0x1ea5('0x9')],this[_0x1ea5('0x22')]=_0x586613['creator']||_0x586613['author'],this[_0x1ea5('0x2f')]=Boolean(_0x586613[_0x1ea5('0xe')]&&_0x586613[_0x1ea5('0xe')][_0x1ea5('0x28')]),this[_0x1ea5('0x3a')]=null,this['_model']=_0x493041,this[_0x1ea5('0x32')]=_0x586613[_0x1ea5('0x15')],this[_0x1ea5('0x34')]=_0x586613[_0x1ea5('0x1')],this[_0x1ea5('0x2')]=_0x586613[_0x1ea5('0x27')],this['_markerNames']=new Set(),this[_0x1ea5('0x1b')]=null,this[_0x1ea5('0x23')]('authoredAt',null),this[_0x1ea5('0x23')]('attributes',_0x586613[_0x1ea5('0xe')]||{}),this[_0x1ea5('0x23')](_0x1ea5('0x2e'),null),this[_0x1ea5('0x23')](_0x1ea5('0xb'),null),this[_0x1ea5('0x23')](_0x1ea5('0xa'),null),this['set'](_0x1ea5('0x21'),!0x1),this[_0x1ea5('0x30')](_0x1ea5('0x2c')),this[_0x1ea5('0x30')](_0x1ea5('0x1e'));}get[_0x1ea5('0x1c')](){let _0x554161=this;for(;_0x554161[_0x1ea5('0x2e')];)_0x554161=_0x554161[_0x1ea5('0x2e')];return _0x554161;}get[_0x1ea5('0x18')](){return!!this['commentThread']&&this['commentThread'][_0x1ea5('0x17')]>0x0;}get[_0x1ea5('0x38')](){if(0x0==this['_markerNames'][_0x1ea5('0x0')])return!0x1;return 0x6==Array[_0x1ea5('0x13')](this[_0x1ea5('0x20')])[0x0][_0x1ea5('0x31')](':')[_0x1ea5('0x17')];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x56d5ae){this[_0x1ea5('0x20')][_0x1ea5('0x35')](_0x56d5ae);}['getMarkerNames'](){return Array[_0x1ea5('0x13')](this[_0x1ea5('0x20')]);}['getMarkers'](){return this['getMarkerNames']()[_0x1ea5('0x2a')](_0x48938c=>this[_0x1ea5('0x5')]['markers']['get'](_0x48938c))[_0x1ea5('0x6')](_0x51d3b8=>_0x51d3b8);}[_0x1ea5('0xd')](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this[_0x1ea5('0x5')]['change'](_0x28e4ca=>{for(const _0x44884c of this[_0x1ea5('0x25')]())_0x28e4ca['removeMarker'](_0x44884c);}),this[_0x1ea5('0x20')]['clear']();}[_0x1ea5('0x29')](_0x163551){this[_0x1ea5('0x5')][_0x1ea5('0x26')](_0x4048c6=>{_0x4048c6[_0x1ea5('0x29')](_0x163551);}),this[_0x1ea5('0x20')][_0x1ea5('0x36')](_0x163551);}[_0x1ea5('0x8')](_0x48a42a){const _0x7fe2eb=_0x1ea5('0x1a')+this[_0x1ea5('0x3b')]+':'+this['subType']+':'+this['id']+':'+this[_0x1ea5('0x22')]['id']+':'+u['getMultiRangeId']();this[_0x1ea5('0xc')](_0x7fe2eb),this[_0x1ea5('0x5')][_0x1ea5('0x26')](_0x2df1d3=>{_0x2df1d3['addMarker'](_0x7fe2eb,{'range':_0x48a42a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1ea5('0x11')](_0x4c9590){for(const _0x582007 of this[_0x1ea5('0x39')]())if(_0x582007[_0x1ea5('0x10')](_0x4c9590))return!0x0;return!0x1;}[_0x1ea5('0x39')](){return this['getMarkers']()[_0x1ea5('0x2a')](_0x51ae3b=>_0x51ae3b[_0x1ea5('0x16')]());}[_0x1ea5('0x1d')](){return this['getRanges']()[_0x1ea5('0x14')]((_0x441d90,_0x8ae80c)=>[..._0x441d90,..._0x8ae80c['getItems']()],[]);}[_0x1ea5('0x3c')](){var _0x34966f;return(null===(_0x34966f=this['getFirstMarker']())||void 0x0===_0x34966f?void 0x0:_0x34966f[_0x1ea5('0x16')]())||null;}[_0x1ea5('0x1f')](){const _0x5312cc=this[_0x1ea5('0x39')]();if(0x1!=_0x5312cc[_0x1ea5('0x17')])return null;const _0xe2658c=_0x5312cc[0x0],_0xe84df4=_0xe2658c[_0x1ea5('0x4')][_0x1ea5('0x19')],_0xc364df=_0xe2658c[_0x1ea5('0x7')][_0x1ea5('0x3')];return _0xe84df4 instanceof _0x229a60?_0xe84df4!=_0xc364df?null:_0xe84df4:null;}['accept'](){this[_0x1ea5('0x32')](this[_0x1ea5('0x39')](),this[_0x1ea5('0x3a')],this[_0x1ea5('0xe')]),this[_0x1ea5('0x24')]();}[_0x1ea5('0x1e')](){this['_onDiscard'](this[_0x1ea5('0x39')](),this[_0x1ea5('0x3a')],this['attributes']),this[_0x1ea5('0x24')]();}[_0x1ea5('0xf')](){const _0x171192=[];let _0x5cee1a=this[_0x1ea5('0x1c')];for(;_0x5cee1a;)_0x171192[_0x1ea5('0x12')](_0x5cee1a),_0x5cee1a=_0x5cee1a[_0x1ea5('0xb')];return _0x171192;}['setAttribute'](_0x2e4b70,_0x142a29){const _0x513a6f=_0x199eee(this[_0x1ea5('0xe')]);_0x12bef5(_0x513a6f,_0x2e4b70,_0x142a29),_0x469433(_0x513a6f,this[_0x1ea5('0xe')])||(this['attributes']=_0x513a6f,this[_0x1ea5('0x2')](_0x513a6f));}['removeAttribute'](_0x310e1f){const _0x292d2d=_0x199eee(this[_0x1ea5('0xe')]);_0x420068(_0x292d2d,_0x310e1f),_0x469433(_0x292d2d,this[_0x1ea5('0xe')])||(this['attributes']=_0x292d2d,this[_0x1ea5('0x2')](this[_0x1ea5('0xe')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x1ea5('0x2b')]?this[_0x1ea5('0x3b')]+':'+this['subType']:this[_0x1ea5('0x3b')],'authorId':this['creator']['id'],'createdAt':this[_0x1ea5('0x1b')],'hasComments':this[_0x1ea5('0x18')],'data':this[_0x1ea5('0x3a')],'attributes':this['attributes']};}static[_0x1ea5('0x2d')](){return _0xd71a4()[_0x1ea5('0x33')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x26c2=['previousSibling','_handleRenameSuggestionDescription','_addDescriptionItems','*Set\x20format:*\x20%0','isEmpty','key','name','nextSibling','format','_handleInsertRemoveSuggestionDescription','addFormat','_itemLabels','subType','text','isEqual','registerAttributeLabel','isInContent','deletion','_itemLabelsCallbacks','has','registerDescriptionCallback','removeContainer','removeEmptyContainer','add','indexOf','end','_schema','removeFormat','item','ELEMENT_SPACE','start','REPLACE_TEXT','*Merge:*\x20%0','replace','getFirstRange','label','elementEnd','getWalker','_customCallbacks','*Insert:*\x20%0','join','pop','Container','*Split:*\x20%0','isObject','checkChild','insertion','_attributeLabels','_resolveDescriptionItems','$textProxy','quantity','length','_locale','match','set','push','getItemLabel','get','_handleCustomCallbackDescription','elementStart','normal','remove','Object','*Change\x20to:*\x20%0','newValue','_handleAttributeSuggestionDescription','softBreak','$text','data','element','*Remove:*\x20%0','type','nodeAfter','$1\x20$2'];(function(_0x4f22a2,_0x26c2db){const _0x3574e4=function(_0x4bb140){while(--_0x4bb140){_0x4f22a2['push'](_0x4f22a2['shift']());}};_0x3574e4(++_0x26c2db);}(_0x26c2,0x1b0));const _0x3574=function(_0x4f22a2,_0x26c2db){_0x4f22a2=_0x4f22a2-0x0;let _0x3574e4=_0x26c2[_0x4f22a2];return _0x3574e4;};import{getTranslation as _0x31a5a6}from'./utils/common-translations';import{priorities as _0x11de8c,insertToPriorityArray as _0xfe934f}from'ckeditor5/src/utils';import{renameAttributeKey as _0x168e2e}from'./trackchangesediting';export default class f{constructor(_0x2c387d,_0xe3cb6c){this[_0x3574('0x32')]=[],this[_0x3574('0x17')]=new Map(),this[_0x3574('0x1e')]=[],this[_0x3574('0x3b')]=new Map(),this[_0x3574('0x26')]=_0x2c387d,this[_0x3574('0x40')]=_0xe3cb6c;}['getDescriptions'](_0x4cac9a){const _0x5b9cc6=[],_0x27b4b7=new Set(),_0x599dd9=new Set();for(let _0x378953=0x0;_0x378953<_0x4cac9a[_0x3574('0x3f')];_0x378953++){const _0x40ad7d=_0x4cac9a[_0x378953];if(!_0x40ad7d[_0x3574('0x1c')])continue;const _0x3da323=this['_handleCustomCallbackDescription'](_0x40ad7d);if(_0x3da323){if(null!=_0x40ad7d['subType']){if(_0x27b4b7['has'](_0x40ad7d[_0x3574('0x18')]))continue;_0x27b4b7['add'](_0x40ad7d[_0x3574('0x18')]);}_0x5b9cc6['push'](_0x3da323);}else{if('attribute'!=_0x40ad7d['type'])_0x3574('0x3a')!=_0x40ad7d[_0x3574('0x9')]&&_0x3574('0x1d')!=_0x40ad7d[_0x3574('0x9')]||this[_0x3574('0x15')](_0x5b9cc6,_0x40ad7d,_0x4cac9a[_0x378953+0x1]);else{const _0x46a893=_0x40ad7d[_0x3574('0x6')][_0x3574('0x11')];if(_0x599dd9[_0x3574('0x1f')](_0x46a893))continue;_0x599dd9[_0x3574('0x23')](_0x40ad7d[_0x3574('0x6')][_0x3574('0x11')]),_0x46a893==_0x168e2e?this['_handleRenameSuggestionDescription'](_0x5b9cc6,_0x40ad7d):this[_0x3574('0x3')](_0x5b9cc6,_0x40ad7d);}}}return this[_0x3574('0x3c')](_0x5b9cc6);}[_0x3574('0x20')](_0x341376){this[_0x3574('0x32')][_0x3574('0x43')](_0x341376);}['registerElementLabel'](_0x500022,_0x2de8d6,_0x2e972e=_0x11de8c[_0x3574('0x48')]){'function'==typeof _0x500022?_0xfe934f(this[_0x3574('0x1e')],{'matchingCallback':_0x500022,'label':_0x2de8d6,'priority':_0x2e972e}):this[_0x3574('0x17')][_0x3574('0x42')](_0x500022,_0x2de8d6);}[_0x3574('0x1b')](_0x5bde2d,_0x5d924d){this['_attributeLabels'][_0x3574('0x42')](_0x5bde2d,_0x5d924d);}[_0x3574('0x44')](_0x427ce4,_0x38063f=0x1){let _0x400452;for(const _0x2a2610 of this[_0x3574('0x1e')])if(_0x2a2610['matchingCallback'](_0x427ce4)){_0x400452=_0x2a2610[_0x3574('0x2f')];break;}return _0x400452||(_0x400452=this['_itemLabels']['get'](_0x427ce4[_0x3574('0x12')])),_0x400452?_0x400452(_0x38063f):0x1!==_0x38063f?_0x38063f+'\x20'+_0x427ce4[_0x3574('0x12')]+'s':''+_0x427ce4[_0x3574('0x12')];}['_addDescriptionItems'](_0x563dba,_0x47e857){const _0x539477=_0x47e857[_0x3574('0x2e')]()[_0x3574('0x31')](),_0xce558b=_0x3574('0x3a')==_0x47e857[_0x3574('0x9')]?_0x3574('0x23'):_0x3574('0x49');for(const _0x15f87c of _0x539477){const _0x4b2159=_0x15f87c['item'],_0x3b5f16=_0x563dba[_0x563dba[_0x3574('0x3f')]-0x1];if(_0x4b2159['is'](_0x3574('0x3d')))_0x3b5f16&&_0x3b5f16[_0x3574('0x9')][_0x3574('0x24')]('Container')>-0x1&&_0x563dba['pop'](),_0x3b5f16&&'text'==_0x3b5f16[_0x3574('0x9')]?_0x3b5f16[_0xce558b]+=_0x4b2159['data']:_0x563dba[_0x3574('0x43')]({'type':_0x3574('0x19'),'add':'add'==_0xce558b?_0x4b2159[_0x3574('0x6')]:'','remove':_0x3574('0x49')==_0xce558b?_0x4b2159['data']:''});else{if(this['_schema'][_0x3574('0x38')](_0x4b2159)){const _0x2f1558=_0x4b2159;if(_0x3b5f16&&_0x3b5f16[_0x3574('0x9')][_0x3574('0x24')]('Container')>-0x1&&_0x563dba[_0x3574('0x35')](),'elementEnd'==_0x15f87c[_0x3574('0x9')])continue;_0x3b5f16&&_0x3b5f16[_0x3574('0x9')]==_0xce558b+_0x3574('0x0')&&_0x3b5f16[_0x3574('0x7')]['name']==_0x2f1558['name']?_0x3b5f16[_0x3574('0x3e')]++:_0x563dba[_0x3574('0x43')]({'type':_0xce558b+'Object','element':_0x2f1558,'quantity':0x1}),_0x539477['skip'](_0x218655=>!(_0x3574('0x30')==_0x218655[_0x3574('0x9')]&&_0x218655[_0x3574('0x28')]==_0x4b2159));}else{if(this[_0x3574('0x26')][_0x3574('0x39')](_0x4b2159,_0x3574('0x5'))||_0x4b2159['is']('element',_0x3574('0x4'))){const _0x1a6da6=_0x4b2159;if(_0x3574('0x23')==_0xce558b&&_0x3574('0x47')==_0x15f87c[_0x3574('0x9')]||_0x3574('0x49')==_0xce558b&&_0x3574('0x30')==_0x15f87c[_0x3574('0x9')])continue;if(_0x3b5f16&&-0x1==_0x3b5f16[_0x3574('0x9')][_0x3574('0x24')](_0x3574('0x36'))){_0x3574('0x19')==_0x3b5f16[_0x3574('0x9')]&&(_0x3b5f16[_0xce558b]+='\x0a');continue;}let _0x160d1a;if(_0x160d1a=_0x3574('0x23')==_0xce558b?_0x1a6da6['nextSibling']&&!this[_0x3574('0x26')]['isObject'](_0x1a6da6[_0x3574('0x13')])?_0x1a6da6[_0x3574('0x13')]:null:_0x1a6da6[_0x3574('0xc')]&&!this[_0x3574('0x26')][_0x3574('0x38')](_0x1a6da6[_0x3574('0xc')])?_0x1a6da6[_0x3574('0xc')]:null,_0x1a6da6['isEmpty']||_0x160d1a&&_0x160d1a[_0x3574('0x10')]){const _0x1576d1=_0x160d1a&&_0x160d1a['isEmpty']?_0x160d1a:_0x1a6da6;_0x3b5f16&&_0x3b5f16['type']==_0xce558b+'EmptyContainer'&&_0x3b5f16[_0x3574('0x7')][_0x3574('0x12')]==_0x1576d1['name']?_0x3b5f16['quantity']++:_0x563dba[_0x3574('0x43')]({'type':_0xce558b+'EmptyContainer','element':_0x1576d1,'quantity':0x1});}else _0x563dba[_0x3574('0x43')]({'type':_0xce558b+'Container','element':_0x1a6da6});}}}}}['_resolveDescriptionItems'](_0x4255be){const _0xa00724=this['_locale'],_0x407f54=[],_0x2ef046=[],_0x57f4ab=[];for(const _0x4b917c of _0x4255be)switch(_0x4b917c['type']){case _0x3574('0x19'):if(_0x4b917c[_0x3574('0x23')]=_0x4b917c['add'][_0x3574('0x2d')](/(\S)\u000A+(\S)/g,_0x3574('0xb'))[_0x3574('0x2d')](/\u000A/g,''),_0x4b917c['remove']=_0x4b917c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x3574('0x2d')](/\u000A/g,''),''!=_0x4b917c[_0x3574('0x23')]&&''!=_0x4b917c[_0x3574('0x49')]){_0x407f54[_0x3574('0x43')]({'type':_0x3574('0x2d'),'content':_0x31a5a6(_0xa00724,_0x3574('0x2b'),['\x22'+_0x4b917c[_0x3574('0x49')]+'\x22','\x22'+_0x4b917c['add']+'\x22'])});continue;}if(null!=_0x4b917c[_0x3574('0x23')][_0x3574('0x41')](/^ +$/)){_0x407f54[_0x3574('0x43')]({'type':_0x3574('0x3a'),'content':_0x31a5a6(_0xa00724,_0x3574('0x33'),_0x31a5a6(_0xa00724,_0x3574('0x29'),_0x4b917c[_0x3574('0x23')][_0x3574('0x3f')]))});continue;}if(null!=_0x4b917c[_0x3574('0x49')]['match'](/^ +$/)){_0x407f54[_0x3574('0x43')]({'type':_0x3574('0x1d'),'content':_0x31a5a6(_0xa00724,_0x3574('0x8'),_0x31a5a6(_0xa00724,_0x3574('0x29'),_0x4b917c['remove'][_0x3574('0x3f')]))});continue;}if(''!=_0x4b917c[_0x3574('0x23')]){_0x407f54[_0x3574('0x43')]({'type':_0x3574('0x3a'),'content':_0x31a5a6(_0xa00724,'*Insert:*\x20%0','\x22'+_0x4b917c[_0x3574('0x23')]+'\x22')});continue;}_0x407f54[_0x3574('0x43')]({'type':'deletion','content':_0x31a5a6(_0xa00724,_0x3574('0x8'),'\x22'+_0x4b917c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x407f54['push']({'type':_0x3574('0x3a'),'content':_0x31a5a6(_0xa00724,_0x3574('0x33'),this['getItemLabel'](_0x4b917c[_0x3574('0x7')],_0x4b917c['quantity']))});continue;case _0x3574('0x22'):case'removeObject':_0x407f54[_0x3574('0x43')]({'type':_0x3574('0x1d'),'content':_0x31a5a6(_0xa00724,_0x3574('0x8'),this[_0x3574('0x44')](_0x4b917c[_0x3574('0x7')],_0x4b917c[_0x3574('0x3e')]))});continue;case'addContainer':_0x407f54[_0x3574('0x43')]({'type':_0x3574('0x3a'),'content':_0x31a5a6(_0xa00724,_0x3574('0x37'),this[_0x3574('0x44')](_0x4b917c[_0x3574('0x7')],_0x4b917c['quantity']))});continue;case _0x3574('0x21'):_0x407f54[_0x3574('0x43')]({'type':_0x3574('0x1d'),'content':_0x31a5a6(_0xa00724,_0x3574('0x2c'),this[_0x3574('0x44')](_0x4b917c[_0x3574('0x7')],_0x4b917c[_0x3574('0x3e')]))});continue;case _0x3574('0x16'):_0x2ef046[_0x3574('0x43')](_0x4b917c[_0x3574('0x11')]);continue;case _0x3574('0x27'):_0x57f4ab[_0x3574('0x43')](_0x4b917c['key']);continue;default:_0x407f54[_0x3574('0x43')](_0x4b917c);}if(_0x2ef046[_0x3574('0x3f')]){const _0xc33755=_0x2ef046['map'](_0x319f6a=>this[_0x3574('0x3b')][_0x3574('0x1f')](_0x319f6a)?this[_0x3574('0x3b')][_0x3574('0x45')](_0x319f6a):_0x319f6a)[_0x3574('0x34')](',\x20');_0x407f54['push']({'type':_0x3574('0x14'),'content':_0x31a5a6(this[_0x3574('0x40')],_0x3574('0xf'),_0xc33755)});}if(_0x57f4ab[_0x3574('0x3f')]){const _0x257b00=_0x57f4ab['map'](_0xfa61d6=>this[_0x3574('0x3b')][_0x3574('0x1f')](_0xfa61d6)?this[_0x3574('0x3b')][_0x3574('0x45')](_0xfa61d6):_0xfa61d6)[_0x3574('0x34')](',\x20');_0x407f54[_0x3574('0x43')]({'type':_0x3574('0x14'),'content':_0x31a5a6(this[_0x3574('0x40')],'*Remove\x20format:*\x20%0',_0x257b00)});}return _0x407f54;}[_0x3574('0x46')](_0x20baec){for(const _0x294cda of this[_0x3574('0x32')]){const _0x1ed0c3=_0x294cda(_0x20baec);if(_0x1ed0c3&&'type'in _0x1ed0c3)return _0x1ed0c3;}}[_0x3574('0x3')](_0x2cdb1e,_0x9ce727){const _0x2b2b98=_0x9ce727[_0x3574('0x6')],_0xf3bbfd=void 0x0===_0x2b2b98[_0x3574('0x2')]?'removeFormat':_0x3574('0x16');_0x2cdb1e[_0x3574('0x43')]({'type':_0xf3bbfd,'key':_0x2b2b98[_0x3574('0x11')]});}[_0x3574('0xd')](_0x43c5e0,_0x23d5bf){_0x43c5e0['push']({'type':_0x3574('0x14'),'content':_0x31a5a6(this['_locale'],_0x3574('0x1'),this[_0x3574('0x44')](_0x23d5bf[_0x3574('0x2e')]()[_0x3574('0x2a')][_0x3574('0xa')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x8c3738,_0x4c8f08,_0x4b6118){if(this[_0x3574('0xe')](_0x8c3738,_0x4c8f08),_0x4b6118&&_0x4b6118[_0x3574('0x2e')]()&&!_0x4c8f08['getFirstRange']()[_0x3574('0x25')][_0x3574('0x1a')](_0x4b6118[_0x3574('0x2e')]()[_0x3574('0x2a')])){const _0x2e5692=_0x8c3738[_0x8c3738[_0x3574('0x3f')]-0x1],_0x5a6ae6=_0x3574('0x3a')==_0x4c8f08['type']?_0x3574('0x23'):'remove';_0x2e5692&&'text'==_0x2e5692['type']&&(_0x2e5692[_0x5a6ae6]+='\x0a');}}}
|
|
23
|
+
const _0x43c3=['_handleCustomCallbackDescription','label','$textProxy','match','registerAttributeLabel','removeFormat','replace','deletion','*Merge:*\x20%0','*Remove\x20format:*\x20%0','_addDescriptionItems','data','isEmpty','nextSibling','registerElementLabel','*Insert:*\x20%0','previousSibling','_schema','Container','addContainer','newValue','get','*Split:*\x20%0','element','_handleInsertRemoveSuggestionDescription','_handleAttributeSuggestionDescription','$1\x20$2','_handleRenameSuggestionDescription','getWalker','subType','join','add','set','softBreak','_itemLabelsCallbacks','removeEmptyContainer','attribute','addFormat','remove','EmptyContainer','end','start','push','*Change\x20to:*\x20%0','*Remove:*\x20%0','_locale','insertion','key','isObject','removeContainer','name','getDescriptions','isEqual','elementEnd','_attributeLabels','indexOf','isInContent','text','$text','has','map','_itemLabels','removeObject','getItemLabel','_resolveDescriptionItems','addEmptyContainer','length','ELEMENT_SPACE','quantity','normal','type','elementStart','format','Object','_customCallbacks','getFirstRange','function','pop'];(function(_0x5e1dd3,_0x43c3c0){const _0x188696=function(_0x34eb97){while(--_0x34eb97){_0x5e1dd3['push'](_0x5e1dd3['shift']());}};_0x188696(++_0x43c3c0);}(_0x43c3,0x1ef));const _0x1886=function(_0x5e1dd3,_0x43c3c0){_0x5e1dd3=_0x5e1dd3-0x0;let _0x188696=_0x43c3[_0x5e1dd3];return _0x188696;};import{getTranslation as _0xfc87cf}from'./utils/common-translations';import{priorities as _0x3e4fd7,insertToPriorityArray as _0x21090b}from'ckeditor5/src/utils';import{renameAttributeKey as _0x32153e}from'./trackchangesediting';export default class f{constructor(_0x419079,_0x5659f0){this[_0x1886('0x2f')]=[],this[_0x1886('0x22')]=new Map(),this[_0x1886('0x7')]=[],this[_0x1886('0x1b')]=new Map(),this[_0x1886('0x44')]=_0x419079,this['_locale']=_0x5659f0;}[_0x1886('0x18')](_0x8144d1){const _0x23b143=[],_0x17603=new Set(),_0x33e1b=new Set();for(let _0x5e11a9=0x0;_0x5e11a9<_0x8144d1['length'];_0x5e11a9++){const _0x26c36e=_0x8144d1[_0x5e11a9];if(!_0x26c36e[_0x1886('0x1d')])continue;const _0x10ce60=this[_0x1886('0x33')](_0x26c36e);if(_0x10ce60){if(null!=_0x26c36e[_0x1886('0x2')]){if(_0x17603[_0x1886('0x20')](_0x26c36e[_0x1886('0x2')]))continue;_0x17603['add'](_0x26c36e[_0x1886('0x2')]);}_0x23b143['push'](_0x10ce60);}else{if(_0x1886('0x9')!=_0x26c36e[_0x1886('0x2b')])_0x1886('0x13')!=_0x26c36e[_0x1886('0x2b')]&&_0x1886('0x3a')!=_0x26c36e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x23b143,_0x26c36e,_0x8144d1[_0x5e11a9+0x1]);else{const _0x39a6c5=_0x26c36e[_0x1886('0x3e')][_0x1886('0x14')];if(_0x33e1b[_0x1886('0x20')](_0x39a6c5))continue;_0x33e1b['add'](_0x26c36e[_0x1886('0x3e')]['key']),_0x39a6c5==_0x32153e?this[_0x1886('0x0')](_0x23b143,_0x26c36e):this['_handleAttributeSuggestionDescription'](_0x23b143,_0x26c36e);}}}return this[_0x1886('0x25')](_0x23b143);}['registerDescriptionCallback'](_0x1bb9a8){this[_0x1886('0x2f')][_0x1886('0xf')](_0x1bb9a8);}[_0x1886('0x41')](_0x4b6ea2,_0x272bcb,_0x199997=_0x3e4fd7[_0x1886('0x2a')]){_0x1886('0x31')==typeof _0x4b6ea2?_0x21090b(this[_0x1886('0x7')],{'matchingCallback':_0x4b6ea2,'label':_0x272bcb,'priority':_0x199997}):this[_0x1886('0x22')][_0x1886('0x5')](_0x4b6ea2,_0x272bcb);}[_0x1886('0x37')](_0x5bbae1,_0x524f62){this['_attributeLabels'][_0x1886('0x5')](_0x5bbae1,_0x524f62);}[_0x1886('0x24')](_0x313af8,_0x1d883=0x1){let _0x4cadce;for(const _0x2e0f87 of this[_0x1886('0x7')])if(_0x2e0f87['matchingCallback'](_0x313af8)){_0x4cadce=_0x2e0f87[_0x1886('0x34')];break;}return _0x4cadce||(_0x4cadce=this[_0x1886('0x22')][_0x1886('0x48')](_0x313af8['name'])),_0x4cadce?_0x4cadce(_0x1d883):0x1!==_0x1d883?_0x1d883+'\x20'+_0x313af8[_0x1886('0x17')]+'s':''+_0x313af8[_0x1886('0x17')];}[_0x1886('0x3d')](_0x41b13a,_0x1ff001){const _0x3df0fc=_0x1ff001[_0x1886('0x30')]()[_0x1886('0x1')](),_0x5b4c51='insertion'==_0x1ff001['type']?_0x1886('0x4'):_0x1886('0xb');for(const _0x35afb3 of _0x3df0fc){const _0x374566=_0x35afb3['item'],_0x4b38eb=_0x41b13a[_0x41b13a[_0x1886('0x27')]-0x1];if(_0x374566['is'](_0x1886('0x35')))_0x4b38eb&&_0x4b38eb[_0x1886('0x2b')][_0x1886('0x1c')]('Container')>-0x1&&_0x41b13a[_0x1886('0x32')](),_0x4b38eb&&_0x1886('0x1e')==_0x4b38eb[_0x1886('0x2b')]?_0x4b38eb[_0x5b4c51]+=_0x374566[_0x1886('0x3e')]:_0x41b13a['push']({'type':_0x1886('0x1e'),'add':_0x1886('0x4')==_0x5b4c51?_0x374566[_0x1886('0x3e')]:'','remove':_0x1886('0xb')==_0x5b4c51?_0x374566[_0x1886('0x3e')]:''});else{if(this[_0x1886('0x44')][_0x1886('0x15')](_0x374566)){const _0xa361b8=_0x374566;if(_0x4b38eb&&_0x4b38eb[_0x1886('0x2b')][_0x1886('0x1c')]('Container')>-0x1&&_0x41b13a['pop'](),_0x1886('0x1a')==_0x35afb3[_0x1886('0x2b')])continue;_0x4b38eb&&_0x4b38eb[_0x1886('0x2b')]==_0x5b4c51+_0x1886('0x2e')&&_0x4b38eb[_0x1886('0x4a')][_0x1886('0x17')]==_0xa361b8[_0x1886('0x17')]?_0x4b38eb[_0x1886('0x29')]++:_0x41b13a['push']({'type':_0x5b4c51+_0x1886('0x2e'),'element':_0xa361b8,'quantity':0x1}),_0x3df0fc['skip'](_0x32f022=>!(_0x1886('0x1a')==_0x32f022[_0x1886('0x2b')]&&_0x32f022['item']==_0x374566));}else{if(this[_0x1886('0x44')]['checkChild'](_0x374566,_0x1886('0x1f'))||_0x374566['is']('element',_0x1886('0x6'))){const _0x53998e=_0x374566;if('add'==_0x5b4c51&&_0x1886('0x2c')==_0x35afb3[_0x1886('0x2b')]||'remove'==_0x5b4c51&&_0x1886('0x1a')==_0x35afb3[_0x1886('0x2b')])continue;if(_0x4b38eb&&-0x1==_0x4b38eb[_0x1886('0x2b')]['indexOf'](_0x1886('0x45'))){'text'==_0x4b38eb['type']&&(_0x4b38eb[_0x5b4c51]+='\x0a');continue;}let _0x5ab94f;if(_0x5ab94f=_0x1886('0x4')==_0x5b4c51?_0x53998e[_0x1886('0x40')]&&!this[_0x1886('0x44')][_0x1886('0x15')](_0x53998e[_0x1886('0x40')])?_0x53998e[_0x1886('0x40')]:null:_0x53998e['previousSibling']&&!this['_schema']['isObject'](_0x53998e['previousSibling'])?_0x53998e[_0x1886('0x43')]:null,_0x53998e[_0x1886('0x3f')]||_0x5ab94f&&_0x5ab94f[_0x1886('0x3f')]){const _0x290ae5=_0x5ab94f&&_0x5ab94f[_0x1886('0x3f')]?_0x5ab94f:_0x53998e;_0x4b38eb&&_0x4b38eb['type']==_0x5b4c51+_0x1886('0xc')&&_0x4b38eb[_0x1886('0x4a')]['name']==_0x290ae5['name']?_0x4b38eb[_0x1886('0x29')]++:_0x41b13a[_0x1886('0xf')]({'type':_0x5b4c51+_0x1886('0xc'),'element':_0x290ae5,'quantity':0x1});}else _0x41b13a[_0x1886('0xf')]({'type':_0x5b4c51+_0x1886('0x45'),'element':_0x53998e});}}}}}[_0x1886('0x25')](_0x3f1a13){const _0x1dd7eb=this[_0x1886('0x12')],_0x3e9dc4=[],_0x325e3f=[],_0x12cc0d=[];for(const _0x4f56d5 of _0x3f1a13)switch(_0x4f56d5[_0x1886('0x2b')]){case _0x1886('0x1e'):if(_0x4f56d5[_0x1886('0x4')]=_0x4f56d5['add']['replace'](/(\S)\u000A+(\S)/g,_0x1886('0x4d'))[_0x1886('0x39')](/\u000A/g,''),_0x4f56d5[_0x1886('0xb')]=_0x4f56d5[_0x1886('0xb')][_0x1886('0x39')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x1886('0x39')](/\u000A/g,''),''!=_0x4f56d5[_0x1886('0x4')]&&''!=_0x4f56d5[_0x1886('0xb')]){_0x3e9dc4['push']({'type':_0x1886('0x39'),'content':_0xfc87cf(_0x1dd7eb,'REPLACE_TEXT',['\x22'+_0x4f56d5[_0x1886('0xb')]+'\x22','\x22'+_0x4f56d5[_0x1886('0x4')]+'\x22'])});continue;}if(null!=_0x4f56d5['add']['match'](/^ +$/)){_0x3e9dc4[_0x1886('0xf')]({'type':'insertion','content':_0xfc87cf(_0x1dd7eb,_0x1886('0x42'),_0xfc87cf(_0x1dd7eb,_0x1886('0x28'),_0x4f56d5[_0x1886('0x4')][_0x1886('0x27')]))});continue;}if(null!=_0x4f56d5['remove'][_0x1886('0x36')](/^ +$/)){_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x3a'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x11'),_0xfc87cf(_0x1dd7eb,_0x1886('0x28'),_0x4f56d5[_0x1886('0xb')][_0x1886('0x27')]))});continue;}if(''!=_0x4f56d5[_0x1886('0x4')]){_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x13'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x42'),'\x22'+_0x4f56d5['add']+'\x22')});continue;}_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x3a'),'content':_0xfc87cf(_0x1dd7eb,'*Remove:*\x20%0','\x22'+_0x4f56d5['remove']+'\x22')});continue;case _0x1886('0x26'):case'addObject':_0x3e9dc4[_0x1886('0xf')]({'type':'insertion','content':_0xfc87cf(_0x1dd7eb,'*Insert:*\x20%0',this[_0x1886('0x24')](_0x4f56d5[_0x1886('0x4a')],_0x4f56d5[_0x1886('0x29')]))});continue;case _0x1886('0x8'):case _0x1886('0x23'):_0x3e9dc4['push']({'type':_0x1886('0x3a'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x11'),this[_0x1886('0x24')](_0x4f56d5[_0x1886('0x4a')],_0x4f56d5[_0x1886('0x29')]))});continue;case _0x1886('0x46'):_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x13'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x49'),this[_0x1886('0x24')](_0x4f56d5[_0x1886('0x4a')],_0x4f56d5[_0x1886('0x29')]))});continue;case _0x1886('0x16'):_0x3e9dc4['push']({'type':_0x1886('0x3a'),'content':_0xfc87cf(_0x1dd7eb,_0x1886('0x3b'),this['getItemLabel'](_0x4f56d5[_0x1886('0x4a')],_0x4f56d5[_0x1886('0x29')]))});continue;case'addFormat':_0x325e3f[_0x1886('0xf')](_0x4f56d5[_0x1886('0x14')]);continue;case _0x1886('0x38'):_0x12cc0d[_0x1886('0xf')](_0x4f56d5[_0x1886('0x14')]);continue;default:_0x3e9dc4[_0x1886('0xf')](_0x4f56d5);}if(_0x325e3f[_0x1886('0x27')]){const _0x9083f1=_0x325e3f[_0x1886('0x21')](_0x5bb4de=>this[_0x1886('0x1b')][_0x1886('0x20')](_0x5bb4de)?this[_0x1886('0x1b')]['get'](_0x5bb4de):_0x5bb4de)[_0x1886('0x3')](',\x20');_0x3e9dc4[_0x1886('0xf')]({'type':_0x1886('0x2d'),'content':_0xfc87cf(this[_0x1886('0x12')],'*Set\x20format:*\x20%0',_0x9083f1)});}if(_0x12cc0d[_0x1886('0x27')]){const _0x288830=_0x12cc0d[_0x1886('0x21')](_0x3bff2b=>this[_0x1886('0x1b')]['has'](_0x3bff2b)?this[_0x1886('0x1b')]['get'](_0x3bff2b):_0x3bff2b)[_0x1886('0x3')](',\x20');_0x3e9dc4[_0x1886('0xf')]({'type':'format','content':_0xfc87cf(this[_0x1886('0x12')],_0x1886('0x3c'),_0x288830)});}return _0x3e9dc4;}['_handleCustomCallbackDescription'](_0x586059){for(const _0x3eb89c of this[_0x1886('0x2f')]){const _0x270688=_0x3eb89c(_0x586059);if(_0x270688&&_0x1886('0x2b')in _0x270688)return _0x270688;}}[_0x1886('0x4c')](_0x143a96,_0x45d4ed){const _0x36604f=_0x45d4ed[_0x1886('0x3e')],_0x3c3ab1=void 0x0===_0x36604f[_0x1886('0x47')]?'removeFormat':_0x1886('0xa');_0x143a96[_0x1886('0xf')]({'type':_0x3c3ab1,'key':_0x36604f['key']});}['_handleRenameSuggestionDescription'](_0x155227,_0x293495){_0x155227['push']({'type':_0x1886('0x2d'),'content':_0xfc87cf(this['_locale'],_0x1886('0x10'),this[_0x1886('0x24')](_0x293495[_0x1886('0x30')]()[_0x1886('0xe')]['nodeAfter'],0x1))});}[_0x1886('0x4b')](_0x2fd1a3,_0x35dd68,_0x394abb){if(this[_0x1886('0x3d')](_0x2fd1a3,_0x35dd68),_0x394abb&&_0x394abb['getFirstRange']()&&!_0x35dd68[_0x1886('0x30')]()[_0x1886('0xd')][_0x1886('0x19')](_0x394abb[_0x1886('0x30')]()['start'])){const _0x1c07de=_0x2fd1a3[_0x2fd1a3[_0x1886('0x27')]-0x1],_0x17f668=_0x1886('0x13')==_0x35dd68[_0x1886('0x2b')]?_0x1886('0x4'):_0x1886('0xb');_0x1c07de&&'text'==_0x1c07de[_0x1886('0x2b')]&&(_0x1c07de[_0x17f668]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x12bd=['getSuggestion','plugins','requires','addSuggestionData','TrackChanges','pluginName','addSuggestion','getSuggestions','get','Comments','editor','adapter'];(function(_0x396e94,_0x12bd2c){var _0x190e6d=function(_0x2b1f41){while(--_0x2b1f41){_0x396e94['push'](_0x396e94['shift']());}};_0x190e6d(++_0x12bd2c);}(_0x12bd,0x73));var _0x190e=function(_0x396e94,_0x12bd2c){_0x396e94=_0x396e94-0x0;var _0x190e6d=_0x12bd[_0x396e94];return _0x190e6d;};import{Plugin as _0x3799b5}from'ckeditor5/src/core';import _0x116c89 from'./trackchangesui';import _0x28f36c from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3799b5{static get[_0x190e('0x7')](){return[_0x28f36c,_0x116c89,_0x190e('0x2')];}static get[_0x190e('0xa')](){return _0x190e('0x9');}set[_0x190e('0x4')](_0x178a53){this[_0x190e('0x3')][_0x190e('0x6')]['get'](_0x28f36c)[_0x190e('0x4')]=_0x178a53;}get['adapter'](){return this[_0x190e('0x3')][_0x190e('0x6')][_0x190e('0x1')](_0x28f36c)[_0x190e('0x4')];}[_0x190e('0xb')](_0x42726f){return this[_0x190e('0x3')]['plugins'][_0x190e('0x1')](_0x28f36c)[_0x190e('0x8')](_0x42726f);}[_0x190e('0x0')]({skipNotAttached:_0x4f21a4=!0x1,toJSON:_0x327f42=!0x1}={}){return this[_0x190e('0x3')][_0x190e('0x6')][_0x190e('0x1')](_0x28f36c)[_0x190e('0x0')]({'skipNotAttached':_0x4f21a4,'toJSON':_0x327f42});}[_0x190e('0x5')](_0xdf739c){return this[_0x190e('0x3')][_0x190e('0x6')][_0x190e('0x1')](_0x28f36c)[_0x190e('0x5')](_0xdf739c);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x475a=['getRootsAttributes','getRootNames','discardAllSuggestions','track-changes-data-invalid-editor-creator','TrackChangesData','getFullData','addSuggestionData','data','map','appendChild','TrackChangesEditing','config','useAnonymousUser','users','plugins','get','end','set','Pagination','div','_adapter','acceptAllSuggestions','editor','Users','init','pluginName','getDataWithDiscardedSuggestions','result','getUser','getDataWithAcceptedSuggestions','createDocumentFragment','destroy','function','model','execute','reduce','document','editorCreator','define'];(function(_0x448208,_0x475a0b){const _0x1290bd=function(_0x504603){while(--_0x504603){_0x448208['push'](_0x448208['shift']());}};_0x1290bd(++_0x475a0b);}(_0x475a,0x184));const _0x1290=function(_0x448208,_0x475a0b){_0x448208=_0x448208-0x0;let _0x1290bd=_0x475a[_0x448208];return _0x1290bd;};import{Plugin as _0x35b367}from'ckeditor5/src/core';import{CKEditorError as _0x1034f8}from'ckeditor5/src/utils';import _0x32e8e4 from'./trackchangesediting';import{sanitizeEditorConfig as _0x54c691}from'ckeditor5-collaboration/src/collaboration-core';const T=[_0x1290('0x14')];export default class P extends _0x35b367{static get['requires'](){return[_0x32e8e4];}static get['pluginName'](){return _0x1290('0x6');}[_0x1290('0x1a')](){const _0x1054a9=this['editor'];if(_0x1054a9[_0x1290('0xd')][_0x1290('0x1')]('trackChangesData.editorCreator',_0x3113d9=>{const _0x1a1530=_0x1054a9[_0x1290('0x23')][_0x1290('0x26')][_0x1290('0x3')]()[_0x1290('0x25')]((_0xe7c83e,_0x5def59)=>(_0xe7c83e[_0x5def59]='',_0xe7c83e),{});return _0x1054a9['constructor']['create'](_0x1a1530,_0x3113d9);}),_0x1290('0x22')!=typeof _0x1054a9[_0x1290('0xd')][_0x1290('0x11')]('trackChangesData')[_0x1290('0x0')])throw new _0x1034f8(_0x1290('0x5'));}[_0x1290('0x1f')](_0x4bcdaf){return N(this['editor'],!0x0,_0x4bcdaf);}[_0x1290('0x1c')](_0x10f603){return N(this['editor'],!0x1,_0x10f603);}}class D extends _0x35b367{static get[_0x1290('0x1b')](){return'TrackChangesDataGetter';}constructor(_0x4c5eae){super(_0x4c5eae),this[_0x1290('0x1d')]=_0x1290('0x12');}[_0x1290('0x1a')](){this[_0x1290('0x18')][_0x1290('0x10')][_0x1290('0x11')]('CommentsRepository')[_0x1290('0x16')]={'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[_0x1290('0x18')]['plugins'][_0x1290('0x11')]('TrackChangesEditing')['_adapter']=null;}}function v(_0x48f71f){return void 0x0!==_0x48f71f['getRootsAttributes'];}async function N(_0x60aac0,_0x30604b,_0x4de179){const _0x3766a0=_0x54c691(_0x60aac0,T);_0x3766a0[_0x1290('0x10')]['push'](_0x32e8e4,D),_0x3766a0['rootsAttributes']=v(_0x60aac0)?_0x60aac0[_0x1290('0x2')]():void 0x0;const _0x538f43=document[_0x1290('0x20')](),_0x13c5b1=_0x60aac0[_0x1290('0xd')]['get']('trackChangesData')[_0x1290('0x0')],_0xa34c32=await _0x13c5b1(_0x3766a0,()=>function(_0x378408){const _0x19ad5e=document['createElement'](_0x1290('0x15'));return _0x378408[_0x1290('0xb')](_0x19ad5e),_0x19ad5e;}(_0x538f43));!function(_0x2489af,_0x43ac0c){const _0x22afea=_0x2489af[_0x1290('0x23')][_0x1290('0x26')][_0x1290('0x3')]()[_0x1290('0x25')]((_0x3706ec,_0x504dfe)=>(_0x3706ec[_0x504dfe]=_0x2489af[_0x1290('0x9')]['get']({'rootName':_0x504dfe}),_0x3706ec),{}),_0x10478f=_0x2489af['plugins'][_0x1290('0x11')](_0x1290('0x19'))[_0x1290('0xf')][_0x1290('0xa')](_0x97f872=>({'id':_0x97f872['id'],'name':_0x97f872['name']})),_0x55cd23=_0x2489af[_0x1290('0x10')]['get'](_0x1290('0xc'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4577e1=_0x43ac0c['plugins'][_0x1290('0x11')](_0x1290('0x19')),_0x3341eb=_0x43ac0c[_0x1290('0x10')][_0x1290('0x11')](_0x1290('0xc'));for(const _0x38eb62 of _0x10478f)_0x4577e1[_0x1290('0x1e')](_0x38eb62['id'])||_0x4577e1['addUser'](_0x38eb62);_0x4577e1['me']||_0x4577e1[_0x1290('0xe')]();for(const _0x78ad79 of _0x55cd23)_0x3341eb[_0x1290('0x8')](_0x78ad79);_0x43ac0c[_0x1290('0x9')][_0x1290('0x13')](_0x22afea);}(_0x60aac0,_0xa34c32),_0xa34c32[_0x1290('0x24')](_0x30604b?_0x1290('0x17'):_0x1290('0x4'));const _0xb74b34=v(_0xa34c32)?_0xa34c32[_0x1290('0x7')](_0x4de179):_0xa34c32['data'][_0x1290('0x11')](_0x4de179);return await _0xa34c32[_0x1290('0x21')](),_0xb74b34;}
|