@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231119.0 → 0.0.0-nightly-20231121.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 _0x23ce=['getItems','isIntersecting','getFirstMarker','suggestion:','_saved','map','next','set','getMarkerNames','type','change','createdAt','_markerNames','getMultiRangeId','nodeAfter','removeAttribute','attributes','hasComments','onDiscard','data','addMarkerName','removeMarkers','onAttributesChange','from','_isDataLoaded','accept','addRange','start','getMarkers','toJSON','getAllAdjacentSuggestions','author','split','_onAttributesChange','nodeBefore','creator','length','push','previous','discard','decorate','addMarker','getRange','getRanges','removeMarker','isInContent','@external','isIntersectingWithRange','end','clear','subType','delete','head','get','commentThread','_model','filter'];(function(_0x3b9157,_0x23ce90){const _0x423149=function(_0x1b224){while(--_0x1b224){_0x3b9157['push'](_0x3b9157['shift']());}};_0x423149(++_0x23ce90);}(_0x23ce,0x15e));const _0x4231=function(_0x3b9157,_0x23ce90){_0x3b9157=_0x3b9157-0x0;let _0x423149=_0x23ce[_0x3b9157];return _0x423149;};import{Element as _0x56ce9f}from'ckeditor5/src/engine';import{ObservableMixin as _0x57a541,uid as _0x3cfbe5}from'ckeditor5/src/utils';import{cloneDeep as _0x2f934c,isEqual as _0x224b49,set as _0x339afd,unset as _0x54917b}from'lodash-es';export default class u extends _0x57a541(){constructor(_0x5e58a1,_0x2f02c2){super(),this[_0x4231('0x10')]=!0x1,this['id']=_0x2f02c2['id'],this[_0x4231('0x1')]=_0x2f02c2[_0x4231('0x1')],this[_0x4231('0x2a')]=_0x2f02c2['subType']||null,this[_0x4231('0x17')]=_0x2f02c2[_0x4231('0x17')],this[_0x4231('0x1b')]=_0x2f02c2[_0x4231('0x1b')]||_0x2f02c2[_0x4231('0x17')],this['isExternal']=Boolean(_0x2f02c2[_0x4231('0x8')]&&_0x2f02c2[_0x4231('0x8')][_0x4231('0x26')]),this['data']=null,this['_model']=_0x5e58a1,this['_onAccept']=_0x2f02c2['onAccept'],this['_onDiscard']=_0x2f02c2[_0x4231('0xa')],this['_onAttributesChange']=_0x2f02c2[_0x4231('0xe')],this[_0x4231('0x4')]=new Set(),this[_0x4231('0x3')]=null,this[_0x4231('0x38')]('authoredAt',null),this['set'](_0x4231('0x8'),_0x2f02c2[_0x4231('0x8')]||{}),this[_0x4231('0x38')](_0x4231('0x1e'),null),this[_0x4231('0x38')]('next',null),this['set']('commentThread',null),this['set'](_0x4231('0x35'),!0x1),this[_0x4231('0x20')]('accept'),this[_0x4231('0x20')](_0x4231('0x1f'));}get[_0x4231('0x2c')](){let _0x37fb56=this;for(;_0x37fb56[_0x4231('0x1e')];)_0x37fb56=_0x37fb56[_0x4231('0x1e')];return _0x37fb56;}get[_0x4231('0x9')](){return!!this[_0x4231('0x2e')]&&this[_0x4231('0x2e')]['length']>0x0;}get['isMultiRange'](){if(0x0==this[_0x4231('0x4')]['size'])return!0x1;return 0x6==Array[_0x4231('0xf')](this['_markerNames'])[0x0][_0x4231('0x18')](':')[_0x4231('0x1c')];}get[_0x4231('0x25')](){return null!==this[_0x4231('0x33')]();}[_0x4231('0xc')](_0x33ebd){this[_0x4231('0x4')]['add'](_0x33ebd);}[_0x4231('0x0')](){return Array[_0x4231('0xf')](this[_0x4231('0x4')]);}[_0x4231('0x14')](){return this[_0x4231('0x0')]()[_0x4231('0x36')](_0xd314e3=>this['_model']['markers'][_0x4231('0x2d')](_0xd314e3))[_0x4231('0x30')](_0x17c9f5=>_0x17c9f5);}[_0x4231('0x33')](){return this[_0x4231('0x14')]()[0x0]||null;}['removeMarkers'](){this[_0x4231('0x2f')]['change'](_0x148d47=>{for(const _0xd99bba of this['getMarkers']())_0x148d47[_0x4231('0x24')](_0xd99bba);}),this['_markerNames'][_0x4231('0x29')]();}[_0x4231('0x24')](_0x42fbe0){this['_model'][_0x4231('0x2')](_0x3f6ad6=>{_0x3f6ad6[_0x4231('0x24')](_0x42fbe0);}),this[_0x4231('0x4')][_0x4231('0x2b')](_0x42fbe0);}[_0x4231('0x12')](_0xbbf4b){const _0x1862c8=_0x4231('0x34')+this[_0x4231('0x1')]+':'+this[_0x4231('0x2a')]+':'+this['id']+':'+this[_0x4231('0x1b')]['id']+':'+u[_0x4231('0x5')]();this[_0x4231('0xc')](_0x1862c8),this['_model'][_0x4231('0x2')](_0x16f6e1=>{_0x16f6e1[_0x4231('0x21')](_0x1862c8,{'range':_0xbbf4b,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4231('0x27')](_0x272227){for(const _0x2672c0 of this[_0x4231('0x23')]())if(_0x2672c0[_0x4231('0x32')](_0x272227))return!0x0;return!0x1;}[_0x4231('0x23')](){return this['getMarkers']()[_0x4231('0x36')](_0x96a6c6=>_0x96a6c6['getRange']());}[_0x4231('0x31')](){return this['getRanges']()['reduce']((_0x5e3e4e,_0x223782)=>[..._0x5e3e4e,..._0x223782[_0x4231('0x31')]()],[]);}['getFirstRange'](){var _0x2851b3;return(null===(_0x2851b3=this['getFirstMarker']())||void 0x0===_0x2851b3?void 0x0:_0x2851b3[_0x4231('0x22')]())||null;}['getContainedElement'](){const _0x15e495=this[_0x4231('0x23')]();if(0x1!=_0x15e495[_0x4231('0x1c')])return null;const _0x4c1b99=_0x15e495[0x0],_0x378d72=_0x4c1b99[_0x4231('0x13')][_0x4231('0x6')],_0x10383f=_0x4c1b99[_0x4231('0x28')][_0x4231('0x1a')];return _0x378d72 instanceof _0x56ce9f?_0x378d72!=_0x10383f?null:_0x378d72:null;}[_0x4231('0x11')](){this['_onAccept'](this[_0x4231('0x23')](),this['data'],this['attributes']),this[_0x4231('0xd')]();}[_0x4231('0x1f')](){this['_onDiscard'](this['getRanges'](),this[_0x4231('0xb')],this[_0x4231('0x8')]),this[_0x4231('0xd')]();}[_0x4231('0x16')](){const _0x2b8887=[];let _0x4b3bab=this['head'];for(;_0x4b3bab;)_0x2b8887[_0x4231('0x1d')](_0x4b3bab),_0x4b3bab=_0x4b3bab[_0x4231('0x37')];return _0x2b8887;}['setAttribute'](_0xbc9d4c,_0x229010){const _0x28841c=_0x2f934c(this['attributes']);_0x339afd(_0x28841c,_0xbc9d4c,_0x229010),_0x224b49(_0x28841c,this[_0x4231('0x8')])||(this['attributes']=_0x28841c,this[_0x4231('0x19')](_0x28841c));}[_0x4231('0x7')](_0x148c73){const _0x28eda1=_0x2f934c(this[_0x4231('0x8')]);_0x54917b(_0x28eda1,_0x148c73),_0x224b49(_0x28eda1,this['attributes'])||(this[_0x4231('0x8')]=_0x28eda1,this['_onAttributesChange'](this['attributes']));}[_0x4231('0x15')](){return{'id':this['id'],'type':this['subType']?this[_0x4231('0x1')]+':'+this['subType']:this[_0x4231('0x1')],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this[_0x4231('0x9')],'data':this[_0x4231('0xb')],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x3cfbe5()['substr'](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1f32=['_itemLabels','name','item','has','getWalker','_handleCustomCallbackDescription','newValue','elementEnd','attribute','getFirstRange','EmptyContainer','indexOf','registerElementLabel','addEmptyContainer','removeContainer','_customCallbacks','_locale','Container','_schema','deletion','_attributeLabels','quantity','type','*Split:*\x20%0','remove','add','get','nodeAfter','length','removeEmptyContainer','_addDescriptionItems','skip','set','_handleInsertRemoveSuggestionDescription','end','normal','insertion','previousSibling','start','*Insert:*\x20%0','softBreak','label','data','isEmpty','removeObject','element','replace','$text','ELEMENT_SPACE','nextSibling','match','_handleRenameSuggestionDescription','_handleAttributeSuggestionDescription','checkChild','key','text','registerDescriptionCallback','removeFormat','join','pop','format','map','function','subType','getItemLabel','addFormat','isObject','push','*Remove\x20format:*\x20%0','Object','*Remove:*\x20%0','_itemLabelsCallbacks','addObject'];(function(_0x572c71,_0x1f322a){const _0x5578e6=function(_0x246b57){while(--_0x246b57){_0x572c71['push'](_0x572c71['shift']());}};_0x5578e6(++_0x1f322a);}(_0x1f32,0x1d2));const _0x5578=function(_0x572c71,_0x1f322a){_0x572c71=_0x572c71-0x0;let _0x5578e6=_0x1f32[_0x572c71];return _0x5578e6;};import{getTranslation as _0x2ec26a}from'./utils/common-translations';import{priorities as _0x342bbd,insertToPriorityArray as _0x2eec1b}from'ckeditor5/src/utils';import{renameAttributeKey as _0x3b4326}from'./trackchangesediting';export default class f{constructor(_0x390be5,_0x402aa6){this['_customCallbacks']=[],this[_0x5578('0x2d')]=new Map(),this[_0x5578('0x2b')]=[],this[_0x5578('0x41')]=new Map(),this[_0x5578('0x3f')]=_0x390be5,this[_0x5578('0x3d')]=_0x402aa6;}['getDescriptions'](_0x138dff){const _0x21521f=[],_0x4541c8=new Set(),_0x2454a4=new Set();for(let _0xca99eb=0x0;_0xca99eb<_0x138dff['length'];_0xca99eb++){const _0x4a739a=_0x138dff[_0xca99eb];if(!_0x4a739a['isInContent'])continue;const _0x4453f4=this[_0x5578('0x32')](_0x4a739a);if(_0x4453f4){if(null!=_0x4a739a[_0x5578('0x23')]){if(_0x4541c8['has'](_0x4a739a[_0x5578('0x23')]))continue;_0x4541c8[_0x5578('0x46')](_0x4a739a[_0x5578('0x23')]);}_0x21521f['push'](_0x4453f4);}else{if(_0x5578('0x35')!=_0x4a739a[_0x5578('0x43')])_0x5578('0x8')!=_0x4a739a[_0x5578('0x43')]&&'deletion'!=_0x4a739a[_0x5578('0x43')]||this[_0x5578('0x5')](_0x21521f,_0x4a739a,_0x138dff[_0xca99eb+0x1]);else{const _0x809b98=_0x4a739a[_0x5578('0xe')][_0x5578('0x1a')];if(_0x2454a4[_0x5578('0x30')](_0x809b98))continue;_0x2454a4[_0x5578('0x46')](_0x4a739a[_0x5578('0xe')][_0x5578('0x1a')]),_0x809b98==_0x3b4326?this[_0x5578('0x17')](_0x21521f,_0x4a739a):this['_handleAttributeSuggestionDescription'](_0x21521f,_0x4a739a);}}}return this['_resolveDescriptionItems'](_0x21521f);}[_0x5578('0x1c')](_0x5118d6){this['_customCallbacks']['push'](_0x5118d6);}[_0x5578('0x39')](_0x3152b5,_0x4b6542,_0x2c9b59=_0x342bbd[_0x5578('0x7')]){_0x5578('0x22')==typeof _0x3152b5?_0x2eec1b(this[_0x5578('0x2b')],{'matchingCallback':_0x3152b5,'label':_0x4b6542,'priority':_0x2c9b59}):this[_0x5578('0x2d')][_0x5578('0x4')](_0x3152b5,_0x4b6542);}['registerAttributeLabel'](_0x38698c,_0x411c03){this['_attributeLabels'][_0x5578('0x4')](_0x38698c,_0x411c03);}[_0x5578('0x24')](_0x49ca15,_0x4aaaf6=0x1){let _0xafedfe;for(const _0x50ab99 of this['_itemLabelsCallbacks'])if(_0x50ab99['matchingCallback'](_0x49ca15)){_0xafedfe=_0x50ab99[_0x5578('0xd')];break;}return _0xafedfe||(_0xafedfe=this[_0x5578('0x2d')][_0x5578('0x47')](_0x49ca15[_0x5578('0x2e')])),_0xafedfe?_0xafedfe(_0x4aaaf6):0x1!==_0x4aaaf6?_0x4aaaf6+'\x20'+_0x49ca15[_0x5578('0x2e')]+'s':''+_0x49ca15[_0x5578('0x2e')];}['_addDescriptionItems'](_0xba55d3,_0x2eae72){const _0x7f20b2=_0x2eae72['getFirstRange']()[_0x5578('0x31')](),_0x1afa8d='insertion'==_0x2eae72['type']?_0x5578('0x46'):_0x5578('0x45');for(const _0xcc11b8 of _0x7f20b2){const _0x5bcde5=_0xcc11b8[_0x5578('0x2f')],_0x415bc9=_0xba55d3[_0xba55d3[_0x5578('0x0')]-0x1];if(_0x5bcde5['is']('$textProxy'))_0x415bc9&&_0x415bc9[_0x5578('0x43')][_0x5578('0x38')](_0x5578('0x3e'))>-0x1&&_0xba55d3[_0x5578('0x1f')](),_0x415bc9&&'text'==_0x415bc9[_0x5578('0x43')]?_0x415bc9[_0x1afa8d]+=_0x5bcde5[_0x5578('0xe')]:_0xba55d3[_0x5578('0x27')]({'type':'text','add':_0x5578('0x46')==_0x1afa8d?_0x5bcde5[_0x5578('0xe')]:'','remove':'remove'==_0x1afa8d?_0x5bcde5['data']:''});else{if(this[_0x5578('0x3f')][_0x5578('0x26')](_0x5bcde5)){const _0xd7a87f=_0x5bcde5;if(_0x415bc9&&_0x415bc9[_0x5578('0x43')][_0x5578('0x38')](_0x5578('0x3e'))>-0x1&&_0xba55d3[_0x5578('0x1f')](),'elementEnd'==_0xcc11b8[_0x5578('0x43')])continue;_0x415bc9&&_0x415bc9[_0x5578('0x43')]==_0x1afa8d+_0x5578('0x29')&&_0x415bc9[_0x5578('0x11')]['name']==_0xd7a87f[_0x5578('0x2e')]?_0x415bc9[_0x5578('0x42')]++:_0xba55d3[_0x5578('0x27')]({'type':_0x1afa8d+_0x5578('0x29'),'element':_0xd7a87f,'quantity':0x1}),_0x7f20b2[_0x5578('0x3')](_0x104521=>!('elementEnd'==_0x104521[_0x5578('0x43')]&&_0x104521['item']==_0x5bcde5));}else{if(this[_0x5578('0x3f')][_0x5578('0x19')](_0x5bcde5,_0x5578('0x13'))||_0x5bcde5['is'](_0x5578('0x11'),_0x5578('0xc'))){const _0x5f2be7=_0x5bcde5;if(_0x5578('0x46')==_0x1afa8d&&'elementStart'==_0xcc11b8[_0x5578('0x43')]||_0x5578('0x45')==_0x1afa8d&&_0x5578('0x34')==_0xcc11b8[_0x5578('0x43')])continue;if(_0x415bc9&&-0x1==_0x415bc9[_0x5578('0x43')][_0x5578('0x38')]('Container')){'text'==_0x415bc9[_0x5578('0x43')]&&(_0x415bc9[_0x1afa8d]+='\x0a');continue;}let _0x24714b;if(_0x24714b=_0x5578('0x46')==_0x1afa8d?_0x5f2be7['nextSibling']&&!this[_0x5578('0x3f')][_0x5578('0x26')](_0x5f2be7[_0x5578('0x15')])?_0x5f2be7[_0x5578('0x15')]:null:_0x5f2be7[_0x5578('0x9')]&&!this[_0x5578('0x3f')]['isObject'](_0x5f2be7[_0x5578('0x9')])?_0x5f2be7['previousSibling']:null,_0x5f2be7['isEmpty']||_0x24714b&&_0x24714b[_0x5578('0xf')]){const _0x4e3c51=_0x24714b&&_0x24714b[_0x5578('0xf')]?_0x24714b:_0x5f2be7;_0x415bc9&&_0x415bc9[_0x5578('0x43')]==_0x1afa8d+_0x5578('0x37')&&_0x415bc9[_0x5578('0x11')][_0x5578('0x2e')]==_0x4e3c51[_0x5578('0x2e')]?_0x415bc9[_0x5578('0x42')]++:_0xba55d3[_0x5578('0x27')]({'type':_0x1afa8d+_0x5578('0x37'),'element':_0x4e3c51,'quantity':0x1});}else _0xba55d3[_0x5578('0x27')]({'type':_0x1afa8d+_0x5578('0x3e'),'element':_0x5f2be7});}}}}}['_resolveDescriptionItems'](_0x4d2187){const _0x5974ce=this['_locale'],_0x144f18=[],_0x34495d=[],_0x101f73=[];for(const _0x4fac44 of _0x4d2187)switch(_0x4fac44[_0x5578('0x43')]){case'text':if(_0x4fac44[_0x5578('0x46')]=_0x4fac44[_0x5578('0x46')][_0x5578('0x12')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x5578('0x12')](/\u000A/g,''),_0x4fac44[_0x5578('0x45')]=_0x4fac44[_0x5578('0x45')][_0x5578('0x12')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x5578('0x12')](/\u000A/g,''),''!=_0x4fac44['add']&&''!=_0x4fac44[_0x5578('0x45')]){_0x144f18['push']({'type':_0x5578('0x12'),'content':_0x2ec26a(_0x5974ce,'REPLACE_TEXT',['\x22'+_0x4fac44[_0x5578('0x45')]+'\x22','\x22'+_0x4fac44[_0x5578('0x46')]+'\x22'])});continue;}if(null!=_0x4fac44[_0x5578('0x46')][_0x5578('0x16')](/^ +$/)){_0x144f18['push']({'type':_0x5578('0x8'),'content':_0x2ec26a(_0x5974ce,_0x5578('0xb'),_0x2ec26a(_0x5974ce,_0x5578('0x14'),_0x4fac44[_0x5578('0x46')]['length']))});continue;}if(null!=_0x4fac44[_0x5578('0x45')][_0x5578('0x16')](/^ +$/)){_0x144f18[_0x5578('0x27')]({'type':_0x5578('0x40'),'content':_0x2ec26a(_0x5974ce,_0x5578('0x2a'),_0x2ec26a(_0x5974ce,'ELEMENT_SPACE',_0x4fac44[_0x5578('0x45')]['length']))});continue;}if(''!=_0x4fac44[_0x5578('0x46')]){_0x144f18[_0x5578('0x27')]({'type':_0x5578('0x8'),'content':_0x2ec26a(_0x5974ce,_0x5578('0xb'),'\x22'+_0x4fac44[_0x5578('0x46')]+'\x22')});continue;}_0x144f18[_0x5578('0x27')]({'type':_0x5578('0x40'),'content':_0x2ec26a(_0x5974ce,_0x5578('0x2a'),'\x22'+_0x4fac44[_0x5578('0x45')]+'\x22')});continue;case _0x5578('0x3a'):case _0x5578('0x2c'):_0x144f18[_0x5578('0x27')]({'type':'insertion','content':_0x2ec26a(_0x5974ce,'*Insert:*\x20%0',this[_0x5578('0x24')](_0x4fac44[_0x5578('0x11')],_0x4fac44[_0x5578('0x42')]))});continue;case _0x5578('0x1'):case _0x5578('0x10'):_0x144f18[_0x5578('0x27')]({'type':_0x5578('0x40'),'content':_0x2ec26a(_0x5974ce,_0x5578('0x2a'),this[_0x5578('0x24')](_0x4fac44['element'],_0x4fac44['quantity']))});continue;case'addContainer':_0x144f18[_0x5578('0x27')]({'type':_0x5578('0x8'),'content':_0x2ec26a(_0x5974ce,_0x5578('0x44'),this[_0x5578('0x24')](_0x4fac44[_0x5578('0x11')],_0x4fac44['quantity']))});continue;case _0x5578('0x3b'):_0x144f18[_0x5578('0x27')]({'type':_0x5578('0x40'),'content':_0x2ec26a(_0x5974ce,'*Merge:*\x20%0',this[_0x5578('0x24')](_0x4fac44['element'],_0x4fac44[_0x5578('0x42')]))});continue;case _0x5578('0x25'):_0x34495d[_0x5578('0x27')](_0x4fac44[_0x5578('0x1a')]);continue;case _0x5578('0x1d'):_0x101f73[_0x5578('0x27')](_0x4fac44['key']);continue;default:_0x144f18[_0x5578('0x27')](_0x4fac44);}if(_0x34495d[_0x5578('0x0')]){const _0x1819d6=_0x34495d[_0x5578('0x21')](_0x447693=>this[_0x5578('0x41')]['has'](_0x447693)?this[_0x5578('0x41')][_0x5578('0x47')](_0x447693):_0x447693)[_0x5578('0x1e')](',\x20');_0x144f18[_0x5578('0x27')]({'type':_0x5578('0x20'),'content':_0x2ec26a(this[_0x5578('0x3d')],'*Set\x20format:*\x20%0',_0x1819d6)});}if(_0x101f73[_0x5578('0x0')]){const _0x1c0b49=_0x101f73['map'](_0x3b08eb=>this[_0x5578('0x41')][_0x5578('0x30')](_0x3b08eb)?this[_0x5578('0x41')][_0x5578('0x47')](_0x3b08eb):_0x3b08eb)[_0x5578('0x1e')](',\x20');_0x144f18[_0x5578('0x27')]({'type':'format','content':_0x2ec26a(this[_0x5578('0x3d')],_0x5578('0x28'),_0x1c0b49)});}return _0x144f18;}[_0x5578('0x32')](_0x24df82){for(const _0x283be5 of this[_0x5578('0x3c')]){const _0x252a6a=_0x283be5(_0x24df82);if(_0x252a6a&&_0x5578('0x43')in _0x252a6a)return _0x252a6a;}}[_0x5578('0x18')](_0x3a0252,_0x4c961f){const _0x2e9293=_0x4c961f[_0x5578('0xe')],_0x14d9ee=void 0x0===_0x2e9293[_0x5578('0x33')]?_0x5578('0x1d'):_0x5578('0x25');_0x3a0252[_0x5578('0x27')]({'type':_0x14d9ee,'key':_0x2e9293[_0x5578('0x1a')]});}[_0x5578('0x17')](_0x53f4d2,_0x3c6749){_0x53f4d2[_0x5578('0x27')]({'type':'format','content':_0x2ec26a(this[_0x5578('0x3d')],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3c6749[_0x5578('0x36')]()[_0x5578('0xa')][_0x5578('0x48')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2ed41b,_0xe10fd8,_0x46ea69){if(this[_0x5578('0x2')](_0x2ed41b,_0xe10fd8),_0x46ea69&&_0x46ea69[_0x5578('0x36')]()&&!_0xe10fd8[_0x5578('0x36')]()[_0x5578('0x6')]['isEqual'](_0x46ea69[_0x5578('0x36')]()[_0x5578('0xa')])){const _0x133e51=_0x2ed41b[_0x2ed41b['length']-0x1],_0x490a6a=_0x5578('0x8')==_0xe10fd8[_0x5578('0x43')]?_0x5578('0x46'):_0x5578('0x45');_0x133e51&&_0x5578('0x1b')==_0x133e51[_0x5578('0x43')]&&(_0x133e51[_0x490a6a]+='\x0a');}}}
|
|
23
|
+
const _0x50d5=['get','$1\x20$2','*Split:*\x20%0','item','start','elementEnd','add','getWalker','quantity','checkChild','length','key','_handleInsertRemoveSuggestionDescription','match','remove','data','addEmptyContainer','addFormat','isInContent','registerDescriptionCallback','$text','_handleAttributeSuggestionDescription','function','EmptyContainer','normal','replace','$textProxy','has','removeEmptyContainer','indexOf','format','isObject','_handleRenameSuggestionDescription','matchingCallback','insertion','newValue','name','_addDescriptionItems','_attributeLabels','text','addContainer','push','_locale','*Insert:*\x20%0','set','*Change\x20to:*\x20%0','previousSibling','removeObject','subType','type','isEmpty','*Remove\x20format:*\x20%0','pop','deletion','_handleCustomCallbackDescription','label','removeFormat','REPLACE_TEXT','ELEMENT_SPACE','isEqual','_itemLabels','registerElementLabel','_resolveDescriptionItems','elementStart','nextSibling','_schema','registerAttributeLabel','Object','getDescriptions','_itemLabelsCallbacks','getItemLabel','join','map','_customCallbacks','addObject','attribute','*Merge:*\x20%0','element','*Remove:*\x20%0','getFirstRange','removeContainer','Container'];(function(_0x5ef784,_0x50d530){const _0x520906=function(_0x25ab5d){while(--_0x25ab5d){_0x5ef784['push'](_0x5ef784['shift']());}};_0x520906(++_0x50d530);}(_0x50d5,0x1f3));const _0x5209=function(_0x5ef784,_0x50d530){_0x5ef784=_0x5ef784-0x0;let _0x520906=_0x50d5[_0x5ef784];return _0x520906;};import{getTranslation as _0x4b1ea6}from'./utils/common-translations';import{priorities as _0xa86e78,insertToPriorityArray as _0x34940f}from'ckeditor5/src/utils';import{renameAttributeKey as _0x39d24c}from'./trackchangesediting';export default class f{constructor(_0x57c016,_0x3852c0){this[_0x5209('0x42')]=[],this[_0x5209('0x35')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x5209('0x1f')]=new Map(),this[_0x5209('0x3a')]=_0x57c016,this[_0x5209('0x23')]=_0x3852c0;}[_0x5209('0x3d')](_0x7d2bb4){const _0x4a90d5=[],_0x568671=new Set(),_0x41da55=new Set();for(let _0x21fd52=0x0;_0x21fd52<_0x7d2bb4[_0x5209('0x3')];_0x21fd52++){const _0x218850=_0x7d2bb4[_0x21fd52];if(!_0x218850[_0x5209('0xb')])continue;const _0x39acba=this[_0x5209('0x2f')](_0x218850);if(_0x39acba){if(null!=_0x218850[_0x5209('0x29')]){if(_0x568671['has'](_0x218850['subType']))continue;_0x568671['add'](_0x218850[_0x5209('0x29')]);}_0x4a90d5['push'](_0x39acba);}else{if(_0x5209('0x44')!=_0x218850[_0x5209('0x2a')])'insertion'!=_0x218850[_0x5209('0x2a')]&&_0x5209('0x2e')!=_0x218850[_0x5209('0x2a')]||this[_0x5209('0x5')](_0x4a90d5,_0x218850,_0x7d2bb4[_0x21fd52+0x1]);else{const _0x14dc9b=_0x218850[_0x5209('0x8')][_0x5209('0x4')];if(_0x41da55[_0x5209('0x14')](_0x14dc9b))continue;_0x41da55[_0x5209('0x51')](_0x218850[_0x5209('0x8')]['key']),_0x14dc9b==_0x39d24c?this[_0x5209('0x19')](_0x4a90d5,_0x218850):this['_handleAttributeSuggestionDescription'](_0x4a90d5,_0x218850);}}}return this[_0x5209('0x37')](_0x4a90d5);}[_0x5209('0xc')](_0x2caa00){this[_0x5209('0x42')][_0x5209('0x22')](_0x2caa00);}[_0x5209('0x36')](_0x521ac1,_0x149bf2,_0x35165e=_0xa86e78[_0x5209('0x11')]){_0x5209('0xf')==typeof _0x521ac1?_0x34940f(this[_0x5209('0x3e')],{'matchingCallback':_0x521ac1,'label':_0x149bf2,'priority':_0x35165e}):this[_0x5209('0x35')][_0x5209('0x25')](_0x521ac1,_0x149bf2);}[_0x5209('0x3b')](_0x4ca801,_0x4388bf){this[_0x5209('0x1f')]['set'](_0x4ca801,_0x4388bf);}['getItemLabel'](_0x4fad52,_0x6b6a24=0x1){let _0xdd3e9d;for(const _0x3fe4bd of this[_0x5209('0x3e')])if(_0x3fe4bd[_0x5209('0x1a')](_0x4fad52)){_0xdd3e9d=_0x3fe4bd[_0x5209('0x30')];break;}return _0xdd3e9d||(_0xdd3e9d=this[_0x5209('0x35')][_0x5209('0x4b')](_0x4fad52[_0x5209('0x1d')])),_0xdd3e9d?_0xdd3e9d(_0x6b6a24):0x1!==_0x6b6a24?_0x6b6a24+'\x20'+_0x4fad52[_0x5209('0x1d')]+'s':''+_0x4fad52['name'];}[_0x5209('0x1e')](_0x3dae25,_0x196d06){const _0x529b9c=_0x196d06[_0x5209('0x48')]()[_0x5209('0x0')](),_0x473603=_0x5209('0x1b')==_0x196d06[_0x5209('0x2a')]?'add':_0x5209('0x7');for(const _0x48d657 of _0x529b9c){const _0x250b53=_0x48d657['item'],_0x5b21f2=_0x3dae25[_0x3dae25[_0x5209('0x3')]-0x1];if(_0x250b53['is'](_0x5209('0x13')))_0x5b21f2&&_0x5b21f2[_0x5209('0x2a')][_0x5209('0x16')](_0x5209('0x4a'))>-0x1&&_0x3dae25[_0x5209('0x2d')](),_0x5b21f2&&_0x5209('0x20')==_0x5b21f2['type']?_0x5b21f2[_0x473603]+=_0x250b53[_0x5209('0x8')]:_0x3dae25[_0x5209('0x22')]({'type':'text','add':'add'==_0x473603?_0x250b53[_0x5209('0x8')]:'','remove':_0x5209('0x7')==_0x473603?_0x250b53['data']:''});else{if(this[_0x5209('0x3a')][_0x5209('0x18')](_0x250b53)){const _0x3d5b12=_0x250b53;if(_0x5b21f2&&_0x5b21f2['type'][_0x5209('0x16')](_0x5209('0x4a'))>-0x1&&_0x3dae25[_0x5209('0x2d')](),_0x5209('0x50')==_0x48d657[_0x5209('0x2a')])continue;_0x5b21f2&&_0x5b21f2[_0x5209('0x2a')]==_0x473603+_0x5209('0x3c')&&_0x5b21f2[_0x5209('0x46')][_0x5209('0x1d')]==_0x3d5b12['name']?_0x5b21f2['quantity']++:_0x3dae25['push']({'type':_0x473603+'Object','element':_0x3d5b12,'quantity':0x1}),_0x529b9c['skip'](_0x441dec=>!(_0x5209('0x50')==_0x441dec[_0x5209('0x2a')]&&_0x441dec[_0x5209('0x4e')]==_0x250b53));}else{if(this[_0x5209('0x3a')][_0x5209('0x2')](_0x250b53,_0x5209('0xd'))||_0x250b53['is'](_0x5209('0x46'),'softBreak')){const _0x104aae=_0x250b53;if(_0x5209('0x51')==_0x473603&&_0x5209('0x38')==_0x48d657[_0x5209('0x2a')]||_0x5209('0x7')==_0x473603&&_0x5209('0x50')==_0x48d657['type'])continue;if(_0x5b21f2&&-0x1==_0x5b21f2[_0x5209('0x2a')][_0x5209('0x16')](_0x5209('0x4a'))){'text'==_0x5b21f2[_0x5209('0x2a')]&&(_0x5b21f2[_0x473603]+='\x0a');continue;}let _0x141c5f;if(_0x141c5f=_0x5209('0x51')==_0x473603?_0x104aae['nextSibling']&&!this[_0x5209('0x3a')][_0x5209('0x18')](_0x104aae[_0x5209('0x39')])?_0x104aae[_0x5209('0x39')]:null:_0x104aae[_0x5209('0x27')]&&!this[_0x5209('0x3a')][_0x5209('0x18')](_0x104aae['previousSibling'])?_0x104aae[_0x5209('0x27')]:null,_0x104aae[_0x5209('0x2b')]||_0x141c5f&&_0x141c5f['isEmpty']){const _0x155d6c=_0x141c5f&&_0x141c5f[_0x5209('0x2b')]?_0x141c5f:_0x104aae;_0x5b21f2&&_0x5b21f2[_0x5209('0x2a')]==_0x473603+'EmptyContainer'&&_0x5b21f2[_0x5209('0x46')]['name']==_0x155d6c[_0x5209('0x1d')]?_0x5b21f2[_0x5209('0x1')]++:_0x3dae25[_0x5209('0x22')]({'type':_0x473603+_0x5209('0x10'),'element':_0x155d6c,'quantity':0x1});}else _0x3dae25[_0x5209('0x22')]({'type':_0x473603+_0x5209('0x4a'),'element':_0x104aae});}}}}}[_0x5209('0x37')](_0x1f280d){const _0x10b6fc=this['_locale'],_0xa77b1e=[],_0x40666f=[],_0xa079e4=[];for(const _0xe64a0d of _0x1f280d)switch(_0xe64a0d[_0x5209('0x2a')]){case _0x5209('0x20'):if(_0xe64a0d[_0x5209('0x51')]=_0xe64a0d[_0x5209('0x51')][_0x5209('0x12')](/(\S)\u000A+(\S)/g,_0x5209('0x4c'))[_0x5209('0x12')](/\u000A/g,''),_0xe64a0d['remove']=_0xe64a0d['remove'][_0x5209('0x12')](/(\S)\u000A+(\S)/g,_0x5209('0x4c'))[_0x5209('0x12')](/\u000A/g,''),''!=_0xe64a0d['add']&&''!=_0xe64a0d[_0x5209('0x7')]){_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x12'),'content':_0x4b1ea6(_0x10b6fc,_0x5209('0x32'),['\x22'+_0xe64a0d['remove']+'\x22','\x22'+_0xe64a0d[_0x5209('0x51')]+'\x22'])});continue;}if(null!=_0xe64a0d[_0x5209('0x51')][_0x5209('0x6')](/^ +$/)){_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x1b'),'content':_0x4b1ea6(_0x10b6fc,_0x5209('0x24'),_0x4b1ea6(_0x10b6fc,_0x5209('0x33'),_0xe64a0d[_0x5209('0x51')][_0x5209('0x3')]))});continue;}if(null!=_0xe64a0d[_0x5209('0x7')][_0x5209('0x6')](/^ +$/)){_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x2e'),'content':_0x4b1ea6(_0x10b6fc,_0x5209('0x47'),_0x4b1ea6(_0x10b6fc,_0x5209('0x33'),_0xe64a0d[_0x5209('0x7')][_0x5209('0x3')]))});continue;}if(''!=_0xe64a0d[_0x5209('0x51')]){_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x1b'),'content':_0x4b1ea6(_0x10b6fc,'*Insert:*\x20%0','\x22'+_0xe64a0d[_0x5209('0x51')]+'\x22')});continue;}_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x2e'),'content':_0x4b1ea6(_0x10b6fc,'*Remove:*\x20%0','\x22'+_0xe64a0d[_0x5209('0x7')]+'\x22')});continue;case _0x5209('0x9'):case _0x5209('0x43'):_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x1b'),'content':_0x4b1ea6(_0x10b6fc,'*Insert:*\x20%0',this[_0x5209('0x3f')](_0xe64a0d['element'],_0xe64a0d['quantity']))});continue;case _0x5209('0x15'):case _0x5209('0x28'):_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x2e'),'content':_0x4b1ea6(_0x10b6fc,_0x5209('0x47'),this[_0x5209('0x3f')](_0xe64a0d[_0x5209('0x46')],_0xe64a0d[_0x5209('0x1')]))});continue;case _0x5209('0x21'):_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x1b'),'content':_0x4b1ea6(_0x10b6fc,_0x5209('0x4d'),this[_0x5209('0x3f')](_0xe64a0d[_0x5209('0x46')],_0xe64a0d[_0x5209('0x1')]))});continue;case _0x5209('0x49'):_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x2e'),'content':_0x4b1ea6(_0x10b6fc,_0x5209('0x45'),this[_0x5209('0x3f')](_0xe64a0d[_0x5209('0x46')],_0xe64a0d['quantity']))});continue;case _0x5209('0xa'):_0x40666f[_0x5209('0x22')](_0xe64a0d[_0x5209('0x4')]);continue;case _0x5209('0x31'):_0xa079e4[_0x5209('0x22')](_0xe64a0d[_0x5209('0x4')]);continue;default:_0xa77b1e[_0x5209('0x22')](_0xe64a0d);}if(_0x40666f[_0x5209('0x3')]){const _0x58ce3f=_0x40666f['map'](_0x51ee4f=>this['_attributeLabels']['has'](_0x51ee4f)?this['_attributeLabels']['get'](_0x51ee4f):_0x51ee4f)[_0x5209('0x40')](',\x20');_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x17'),'content':_0x4b1ea6(this[_0x5209('0x23')],'*Set\x20format:*\x20%0',_0x58ce3f)});}if(_0xa079e4[_0x5209('0x3')]){const _0x57885d=_0xa079e4[_0x5209('0x41')](_0x433e5c=>this[_0x5209('0x1f')]['has'](_0x433e5c)?this[_0x5209('0x1f')][_0x5209('0x4b')](_0x433e5c):_0x433e5c)[_0x5209('0x40')](',\x20');_0xa77b1e[_0x5209('0x22')]({'type':_0x5209('0x17'),'content':_0x4b1ea6(this[_0x5209('0x23')],_0x5209('0x2c'),_0x57885d)});}return _0xa77b1e;}[_0x5209('0x2f')](_0x27b71b){for(const _0x3685a4 of this[_0x5209('0x42')]){const _0x98b2ad=_0x3685a4(_0x27b71b);if(_0x98b2ad&&_0x5209('0x2a')in _0x98b2ad)return _0x98b2ad;}}[_0x5209('0xe')](_0x193c9c,_0x27ecbd){const _0x4e4c07=_0x27ecbd[_0x5209('0x8')],_0x213968=void 0x0===_0x4e4c07[_0x5209('0x1c')]?_0x5209('0x31'):_0x5209('0xa');_0x193c9c['push']({'type':_0x213968,'key':_0x4e4c07[_0x5209('0x4')]});}[_0x5209('0x19')](_0x387729,_0x2c2520){_0x387729[_0x5209('0x22')]({'type':_0x5209('0x17'),'content':_0x4b1ea6(this[_0x5209('0x23')],_0x5209('0x26'),this[_0x5209('0x3f')](_0x2c2520[_0x5209('0x48')]()[_0x5209('0x4f')]['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x19abb1,_0x24cfdb,_0x606093){if(this['_addDescriptionItems'](_0x19abb1,_0x24cfdb),_0x606093&&_0x606093[_0x5209('0x48')]()&&!_0x24cfdb[_0x5209('0x48')]()['end'][_0x5209('0x34')](_0x606093[_0x5209('0x48')]()[_0x5209('0x4f')])){const _0x1ec491=_0x19abb1[_0x19abb1[_0x5209('0x3')]-0x1],_0x3f4333=_0x5209('0x1b')==_0x24cfdb['type']?_0x5209('0x51'):'remove';_0x1ec491&&_0x5209('0x20')==_0x1ec491[_0x5209('0x2a')]&&(_0x1ec491[_0x3f4333]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c01=['pluginName','requires','adapter','editor','getSuggestion','getSuggestions','plugins','addSuggestionData','Comments','get'];(function(_0x57c496,_0x5c0165){var _0x1e88e4=function(_0x57a0df){while(--_0x57a0df){_0x57c496['push'](_0x57c496['shift']());}};_0x1e88e4(++_0x5c0165);}(_0x5c01,0x1d5));var _0x1e88=function(_0x57c496,_0x5c0165){_0x57c496=_0x57c496-0x0;var _0x1e88e4=_0x5c01[_0x57c496];return _0x1e88e4;};import{Plugin as _0x16555a}from'ckeditor5/src/core';import _0x15ddf6 from'./trackchangesui';import _0x24cfd0 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x16555a{static get[_0x1e88('0x2')](){return[_0x24cfd0,_0x15ddf6,_0x1e88('0x9')];}static get[_0x1e88('0x1')](){return'TrackChanges';}set['adapter'](_0x3c51af){this[_0x1e88('0x4')][_0x1e88('0x7')][_0x1e88('0x0')](_0x24cfd0)[_0x1e88('0x3')]=_0x3c51af;}get[_0x1e88('0x3')](){return this[_0x1e88('0x4')][_0x1e88('0x7')][_0x1e88('0x0')](_0x24cfd0)[_0x1e88('0x3')];}['addSuggestion'](_0x3bd241){return this[_0x1e88('0x4')][_0x1e88('0x7')][_0x1e88('0x0')](_0x24cfd0)[_0x1e88('0x8')](_0x3bd241);}[_0x1e88('0x6')]({skipNotAttached:_0x120dad=!0x1,toJSON:_0x2c9a6a=!0x1}={}){return this[_0x1e88('0x4')][_0x1e88('0x7')][_0x1e88('0x0')](_0x24cfd0)[_0x1e88('0x6')]({'skipNotAttached':_0x120dad,'toJSON':_0x2c9a6a});}[_0x1e88('0x5')](_0x2dcb9f){return this[_0x1e88('0x4')][_0x1e88('0x7')]['get'](_0x24cfd0)[_0x1e88('0x5')](_0x2dcb9f);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42b9=['execute','init','CommentsRepository','TrackChangesEditing','getDataWithDiscardedSuggestions','getRootsAttributes','trackChangesData','plugins','push','create','TrackChangesDataGetter','_adapter','function','createElement','config','Users','reduce','set','pluginName','define','result','addUser','data','editorCreator','name','requires','get','getFullData','end','getRootNames','addSuggestionData','document','trackChangesData.editorCreator','map','model','track-changes-data-invalid-editor-creator','Pagination','destroy','users','editor'];(function(_0x20b282,_0x42b9ed){const _0x59bc0a=function(_0x524530){while(--_0x524530){_0x20b282['push'](_0x20b282['shift']());}};_0x59bc0a(++_0x42b9ed);}(_0x42b9,0xed));const _0x59bc=function(_0x20b282,_0x42b9ed){_0x20b282=_0x20b282-0x0;let _0x59bc0a=_0x42b9[_0x20b282];return _0x59bc0a;};import{Plugin as _0x61dec1}from'ckeditor5/src/core';import{CKEditorError as _0xe1e9ac}from'ckeditor5/src/utils';import _0x2543d7 from'./trackchangesediting';import{sanitizeEditorConfig as _0x475a8d}from'ckeditor5-collaboration/src/collaboration-core';const T=[_0x59bc('0x27')];export default class P extends _0x61dec1{static get[_0x59bc('0x1c')](){return[_0x2543d7];}static get['pluginName'](){return'TrackChangesData';}[_0x59bc('0x4')](){const _0x2b0df1=this[_0x59bc('0x2')];if(_0x2b0df1['config'][_0x59bc('0x16')](_0x59bc('0x23'),_0xfbd6ad=>{const _0x58c4e5=_0x2b0df1[_0x59bc('0x25')]['document'][_0x59bc('0x20')]()[_0x59bc('0x13')]((_0x3bdc65,_0x49d4d6)=>(_0x3bdc65[_0x49d4d6]='',_0x3bdc65),{});return _0x2b0df1['constructor'][_0x59bc('0xc')](_0x58c4e5,_0xfbd6ad);}),_0x59bc('0xf')!=typeof _0x2b0df1[_0x59bc('0x11')][_0x59bc('0x1d')](_0x59bc('0x9'))[_0x59bc('0x1a')])throw new _0xe1e9ac(_0x59bc('0x26'));}['getDataWithAcceptedSuggestions'](_0x1f1e7e){return N(this[_0x59bc('0x2')],!0x0,_0x1f1e7e);}[_0x59bc('0x7')](_0x4b3ca9){return N(this[_0x59bc('0x2')],!0x1,_0x4b3ca9);}}class D extends _0x61dec1{static get[_0x59bc('0x15')](){return _0x59bc('0xd');}constructor(_0x4c0b5f){super(_0x4c0b5f),this[_0x59bc('0x17')]=_0x59bc('0x1f');}['init'](){this['editor'][_0x59bc('0xa')][_0x59bc('0x1d')](_0x59bc('0x5'))[_0x59bc('0xe')]={'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[_0x59bc('0x2')][_0x59bc('0xa')][_0x59bc('0x1d')](_0x59bc('0x6'))[_0x59bc('0xe')]=null;}}function v(_0x4074f4){return void 0x0!==_0x4074f4[_0x59bc('0x8')];}async function N(_0x2903a8,_0x513468,_0x2990fc){const _0x233d9c=_0x475a8d(_0x2903a8,T);_0x233d9c[_0x59bc('0xa')][_0x59bc('0xb')](_0x2543d7,D),_0x233d9c['rootsAttributes']=v(_0x2903a8)?_0x2903a8[_0x59bc('0x8')]():void 0x0;const _0x22bc0d=document['createDocumentFragment'](),_0x5180cf=_0x2903a8['config']['get']('trackChangesData')[_0x59bc('0x1a')],_0x2362b3=await _0x5180cf(_0x233d9c,()=>function(_0x15549c){const _0x588e32=document[_0x59bc('0x10')]('div');return _0x15549c['appendChild'](_0x588e32),_0x588e32;}(_0x22bc0d));!function(_0x703748,_0x5a2fa7){const _0x374bd5=_0x703748['model'][_0x59bc('0x22')][_0x59bc('0x20')]()[_0x59bc('0x13')]((_0x3f7e78,_0x2f0dd1)=>(_0x3f7e78[_0x2f0dd1]=_0x703748[_0x59bc('0x19')][_0x59bc('0x1d')]({'rootName':_0x2f0dd1}),_0x3f7e78),{}),_0x2acfba=_0x703748['plugins']['get'](_0x59bc('0x12'))[_0x59bc('0x1')][_0x59bc('0x24')](_0x2373e1=>({'id':_0x2373e1['id'],'name':_0x2373e1[_0x59bc('0x1b')]})),_0x2f9730=_0x703748[_0x59bc('0xa')][_0x59bc('0x1d')]('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17b653=_0x5a2fa7['plugins'][_0x59bc('0x1d')](_0x59bc('0x12')),_0x20ca9d=_0x5a2fa7[_0x59bc('0xa')][_0x59bc('0x1d')](_0x59bc('0x6'));for(const _0x184f39 of _0x2acfba)_0x17b653['getUser'](_0x184f39['id'])||_0x17b653[_0x59bc('0x18')](_0x184f39);_0x17b653['me']||_0x17b653['useAnonymousUser']();for(const _0x1b2fe0 of _0x2f9730)_0x20ca9d[_0x59bc('0x21')](_0x1b2fe0);_0x5a2fa7['data'][_0x59bc('0x14')](_0x374bd5);}(_0x2903a8,_0x2362b3),_0x2362b3[_0x59bc('0x3')](_0x513468?'acceptAllSuggestions':'discardAllSuggestions');const _0x136fe2=v(_0x2362b3)?_0x2362b3[_0x59bc('0x1e')](_0x2990fc):_0x2362b3[_0x59bc('0x19')][_0x59bc('0x1d')](_0x2990fc);return await _0x2362b3[_0x59bc('0x0')](),_0x136fe2;}
|