@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240122.0 → 0.0.0-nightly-20240124.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 _0x4a99=['getMultiRangeId','nodeBefore','_onDiscard','start','addMarker','decorate','_onAccept','attributes','filter','authoredAt','isIntersectingWithRange','hasComments','subType','toJSON','getMarkers','change','getFirstRange','substr','end','size','data','addRange','getFirstMarker','previous','removeAttribute','getRange','head','getRanges','suggestion:','add','getItems','creator','push','addMarkerName','isInContent','_isDataLoaded','discard','getAllAdjacentSuggestions','map','split','reduce','removeMarkers','_model','markers','clear','set','commentThread','author','createdAt','from','length','removeMarker','_markerNames','_onAttributesChange','accept','type','next','onAccept'];(function(_0x394933,_0x4a99ec){const _0x3b712f=function(_0x40cabf){while(--_0x40cabf){_0x394933['push'](_0x394933['shift']());}};_0x3b712f(++_0x4a99ec);}(_0x4a99,0x154));const _0x3b71=function(_0x394933,_0x4a99ec){_0x394933=_0x394933-0x0;let _0x3b712f=_0x4a99[_0x394933];return _0x3b712f;};import{Element as _0x21812b}from'ckeditor5/src/engine.js';import{ObservableMixin as _0xb746f2,uid as _0x4b0442}from'ckeditor5/src/utils.js';import{cloneDeep as _0x43c6f8,isEqual as _0x3adf0c,set as _0x22131d,unset as _0x38b7c0}from'lodash-es';export default class u extends _0xb746f2(){constructor(_0x38fa43,_0x2bad2f){super(),this[_0x3b71('0x2b')]=!0x1,this['id']=_0x2bad2f['id'],this[_0x3b71('0x5')]=_0x2bad2f[_0x3b71('0x5')],this[_0x3b71('0x14')]=_0x2bad2f[_0x3b71('0x14')]||null,this[_0x3b71('0x37')]=_0x2bad2f[_0x3b71('0x37')],this[_0x3b71('0x27')]=_0x2bad2f['creator']||_0x2bad2f[_0x3b71('0x37')],this['isExternal']=Boolean(_0x2bad2f[_0x3b71('0xf')]&&_0x2bad2f[_0x3b71('0xf')]['@external']),this[_0x3b71('0x1c')]=null,this[_0x3b71('0x32')]=_0x38fa43,this['_onAccept']=_0x2bad2f[_0x3b71('0x7')],this[_0x3b71('0xa')]=_0x2bad2f['onDiscard'],this['_onAttributesChange']=_0x2bad2f['onAttributesChange'],this[_0x3b71('0x2')]=new Set(),this[_0x3b71('0x38')]=null,this[_0x3b71('0x35')](_0x3b71('0x11'),null),this['set']('attributes',_0x2bad2f['attributes']||{}),this[_0x3b71('0x35')](_0x3b71('0x1f'),null),this[_0x3b71('0x35')](_0x3b71('0x6'),null),this[_0x3b71('0x35')](_0x3b71('0x36'),null),this[_0x3b71('0x35')]('_saved',!0x1),this[_0x3b71('0xd')](_0x3b71('0x4')),this['decorate'](_0x3b71('0x2c'));}get[_0x3b71('0x22')](){let _0x45510f=this;for(;_0x45510f[_0x3b71('0x1f')];)_0x45510f=_0x45510f[_0x3b71('0x1f')];return _0x45510f;}get[_0x3b71('0x13')](){return!!this[_0x3b71('0x36')]&&this[_0x3b71('0x36')][_0x3b71('0x0')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x3b71('0x2')][_0x3b71('0x1b')])return!0x1;return 0x6==Array[_0x3b71('0x39')](this[_0x3b71('0x2')])[0x0][_0x3b71('0x2f')](':')['length'];}get[_0x3b71('0x2a')](){return null!==this[_0x3b71('0x1e')]();}[_0x3b71('0x29')](_0x50615c){this[_0x3b71('0x2')][_0x3b71('0x25')](_0x50615c);}['getMarkerNames'](){return Array[_0x3b71('0x39')](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()[_0x3b71('0x2e')](_0x283983=>this[_0x3b71('0x32')][_0x3b71('0x33')]['get'](_0x283983))[_0x3b71('0x10')](_0x1306d6=>_0x1306d6);}[_0x3b71('0x1e')](){return this[_0x3b71('0x16')]()[0x0]||null;}['removeMarkers'](){this['_model'][_0x3b71('0x17')](_0x1cac3e=>{for(const _0x41236f of this[_0x3b71('0x16')]())_0x1cac3e[_0x3b71('0x1')](_0x41236f);}),this[_0x3b71('0x2')][_0x3b71('0x34')]();}['removeMarker'](_0x1e8052){this['_model']['change'](_0x5aefcb=>{_0x5aefcb[_0x3b71('0x1')](_0x1e8052);}),this[_0x3b71('0x2')]['delete'](_0x1e8052);}[_0x3b71('0x1d')](_0xd46893){const _0x2e4577=_0x3b71('0x24')+this['type']+':'+this[_0x3b71('0x14')]+':'+this['id']+':'+this[_0x3b71('0x27')]['id']+':'+u[_0x3b71('0x8')]();this[_0x3b71('0x29')](_0x2e4577),this[_0x3b71('0x32')][_0x3b71('0x17')](_0x29b40a=>{_0x29b40a[_0x3b71('0xc')](_0x2e4577,{'range':_0xd46893,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3b71('0x12')](_0x558340){for(const _0x3e48fc of this['getRanges']())if(_0x3e48fc['isIntersecting'](_0x558340))return!0x0;return!0x1;}[_0x3b71('0x23')](){return this[_0x3b71('0x16')]()[_0x3b71('0x2e')](_0x295338=>_0x295338[_0x3b71('0x21')]());}['getItems'](){return this[_0x3b71('0x23')]()[_0x3b71('0x30')]((_0x55dc1f,_0x218e9f)=>[..._0x55dc1f,..._0x218e9f[_0x3b71('0x26')]()],[]);}[_0x3b71('0x18')](){var _0x1d5840;return(null===(_0x1d5840=this['getFirstMarker']())||void 0x0===_0x1d5840?void 0x0:_0x1d5840[_0x3b71('0x21')]())||null;}['getContainedElement'](){const _0x1f4ffd=this[_0x3b71('0x23')]();if(0x1!=_0x1f4ffd[_0x3b71('0x0')])return null;const _0x10de53=_0x1f4ffd[0x0],_0x925e7c=_0x10de53[_0x3b71('0xb')]['nodeAfter'],_0xcc4166=_0x10de53[_0x3b71('0x1a')][_0x3b71('0x9')];return _0x925e7c instanceof _0x21812b?_0x925e7c!=_0xcc4166?null:_0x925e7c:null;}[_0x3b71('0x4')](){this[_0x3b71('0xe')](this['getRanges'](),this['data'],this[_0x3b71('0xf')]),this[_0x3b71('0x31')]();}[_0x3b71('0x2c')](){this[_0x3b71('0xa')](this[_0x3b71('0x23')](),this['data'],this[_0x3b71('0xf')]),this['removeMarkers']();}[_0x3b71('0x2d')](){const _0x4b05c2=[];let _0x4c87a1=this[_0x3b71('0x22')];for(;_0x4c87a1;)_0x4b05c2[_0x3b71('0x28')](_0x4c87a1),_0x4c87a1=_0x4c87a1[_0x3b71('0x6')];return _0x4b05c2;}['setAttribute'](_0x1a6a1b,_0x5538b4){const _0x2be5b6=_0x43c6f8(this[_0x3b71('0xf')]);_0x22131d(_0x2be5b6,_0x1a6a1b,_0x5538b4),_0x3adf0c(_0x2be5b6,this[_0x3b71('0xf')])||(this[_0x3b71('0xf')]=_0x2be5b6,this[_0x3b71('0x3')](_0x2be5b6));}[_0x3b71('0x20')](_0x452575){const _0x219968=_0x43c6f8(this[_0x3b71('0xf')]);_0x38b7c0(_0x219968,_0x452575),_0x3adf0c(_0x219968,this['attributes'])||(this[_0x3b71('0xf')]=_0x219968,this[_0x3b71('0x3')](this['attributes']));}[_0x3b71('0x15')](){return{'id':this['id'],'type':this[_0x3b71('0x14')]?this[_0x3b71('0x5')]+':'+this[_0x3b71('0x14')]:this[_0x3b71('0x5')],'authorId':this[_0x3b71('0x27')]['id'],'createdAt':this[_0x3b71('0x38')],'hasComments':this[_0x3b71('0x13')],'data':this[_0x3b71('0x1c')],'attributes':this[_0x3b71('0xf')]};}static[_0x3b71('0x8')](){return _0x4b0442()[_0x3b71('0x19')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3c5c=['replace','ELEMENT_SPACE','_itemLabelsCallbacks','newValue','add','key','getDescriptions','has','isInContent','_resolveDescriptionItems','matchingCallback','elementEnd','subType','Object','EmptyContainer','item','_schema','softBreak','nodeAfter','label','_itemLabels','skip','type','checkChild','removeEmptyContainer','format','set','*Remove\x20format:*\x20%0','previousSibling','nextSibling','getFirstRange','removeObject','registerDescriptionCallback','addFormat','*Remove:*\x20%0','Container','indexOf','_customCallbacks','deletion','name','length','element','$1\x20$2','_handleInsertRemoveSuggestionDescription','normal','start','insertion','get','_addDescriptionItems','quantity','registerElementLabel','_attributeLabels','$text','match','_locale','removeFormat','isEqual','addEmptyContainer','_handleRenameSuggestionDescription','map','addObject','$textProxy','addContainer','getItemLabel','isObject','*Insert:*\x20%0','removeContainer','data','push','pop','text','isEmpty','_handleAttributeSuggestionDescription','getWalker','end','attribute','_handleCustomCallbackDescription','remove','join'];(function(_0x1de29d,_0x3c5c71){const _0x5f5df6=function(_0x2c4f1c){while(--_0x2c4f1c){_0x1de29d['push'](_0x1de29d['shift']());}};_0x5f5df6(++_0x3c5c71);}(_0x3c5c,0xe1));const _0x5f5d=function(_0x1de29d,_0x3c5c71){_0x1de29d=_0x1de29d-0x0;let _0x5f5df6=_0x3c5c[_0x1de29d];return _0x5f5df6;};import{getTranslation as _0x224241}from'./utils/common-translations.js';import{priorities as _0x4d91b7,insertToPriorityArray as _0x84684a}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x477833}from'./trackchangesediting.js';export default class f{constructor(_0x1b3bdf,_0x1e149f){this['_customCallbacks']=[],this[_0x5f5d('0x20')]=new Map(),this[_0x5f5d('0xe')]=[],this[_0x5f5d('0x3f')]=new Map(),this[_0x5f5d('0x1c')]=_0x1b3bdf,this[_0x5f5d('0x42')]=_0x1e149f;}[_0x5f5d('0x12')](_0x312a2d){const _0x4bb5ce=[],_0x48d73b=new Set(),_0x5b8f42=new Set();for(let _0x2355ff=0x0;_0x2355ff<_0x312a2d[_0x5f5d('0x34')];_0x2355ff++){const _0x4873a5=_0x312a2d[_0x2355ff];if(!_0x4873a5[_0x5f5d('0x14')])continue;const _0x5bf19b=this['_handleCustomCallbackDescription'](_0x4873a5);if(_0x5bf19b){if(null!=_0x4873a5[_0x5f5d('0x18')]){if(_0x48d73b[_0x5f5d('0x13')](_0x4873a5['subType']))continue;_0x48d73b[_0x5f5d('0x10')](_0x4873a5['subType']);}_0x4bb5ce['push'](_0x5bf19b);}else{if(_0x5f5d('0x8')!=_0x4873a5[_0x5f5d('0x22')])_0x5f5d('0x3a')!=_0x4873a5['type']&&_0x5f5d('0x32')!=_0x4873a5[_0x5f5d('0x22')]||this[_0x5f5d('0x37')](_0x4bb5ce,_0x4873a5,_0x312a2d[_0x2355ff+0x1]);else{const _0x27163b=_0x4873a5[_0x5f5d('0x0')][_0x5f5d('0x11')];if(_0x5b8f42['has'](_0x27163b))continue;_0x5b8f42['add'](_0x4873a5[_0x5f5d('0x0')][_0x5f5d('0x11')]),_0x27163b==_0x477833?this[_0x5f5d('0x46')](_0x4bb5ce,_0x4873a5):this[_0x5f5d('0x5')](_0x4bb5ce,_0x4873a5);}}}return this[_0x5f5d('0x15')](_0x4bb5ce);}[_0x5f5d('0x2c')](_0x4e71fb){this['_customCallbacks'][_0x5f5d('0x1')](_0x4e71fb);}[_0x5f5d('0x3e')](_0x3dfad8,_0x19262d,_0x4d6f78=_0x4d91b7[_0x5f5d('0x38')]){'function'==typeof _0x3dfad8?_0x84684a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3dfad8,'label':_0x19262d,'priority':_0x4d6f78}):this[_0x5f5d('0x20')][_0x5f5d('0x26')](_0x3dfad8,_0x19262d);}['registerAttributeLabel'](_0x58975f,_0x213599){this[_0x5f5d('0x3f')][_0x5f5d('0x26')](_0x58975f,_0x213599);}['getItemLabel'](_0x77becd,_0x48f647=0x1){let _0x135f2f;for(const _0x26473a of this[_0x5f5d('0xe')])if(_0x26473a[_0x5f5d('0x16')](_0x77becd)){_0x135f2f=_0x26473a[_0x5f5d('0x1f')];break;}return _0x135f2f||(_0x135f2f=this['_itemLabels'][_0x5f5d('0x3b')](_0x77becd[_0x5f5d('0x33')])),_0x135f2f?_0x135f2f(_0x48f647):0x1!==_0x48f647?_0x48f647+'\x20'+_0x77becd[_0x5f5d('0x33')]+'s':''+_0x77becd[_0x5f5d('0x33')];}[_0x5f5d('0x3c')](_0x2995ff,_0x50b350){const _0x133ccf=_0x50b350[_0x5f5d('0x2a')]()[_0x5f5d('0x6')](),_0x7baca0=_0x5f5d('0x3a')==_0x50b350['type']?_0x5f5d('0x10'):'remove';for(const _0x5f1d26 of _0x133ccf){const _0x2f9f7d=_0x5f1d26[_0x5f5d('0x1b')],_0xeb1a59=_0x2995ff[_0x2995ff[_0x5f5d('0x34')]-0x1];if(_0x2f9f7d['is'](_0x5f5d('0x49')))_0xeb1a59&&_0xeb1a59[_0x5f5d('0x22')]['indexOf'](_0x5f5d('0x2f'))>-0x1&&_0x2995ff[_0x5f5d('0x2')](),_0xeb1a59&&_0x5f5d('0x3')==_0xeb1a59[_0x5f5d('0x22')]?_0xeb1a59[_0x7baca0]+=_0x2f9f7d[_0x5f5d('0x0')]:_0x2995ff[_0x5f5d('0x1')]({'type':_0x5f5d('0x3'),'add':_0x5f5d('0x10')==_0x7baca0?_0x2f9f7d[_0x5f5d('0x0')]:'','remove':_0x5f5d('0xa')==_0x7baca0?_0x2f9f7d['data']:''});else{if(this[_0x5f5d('0x1c')][_0x5f5d('0x4c')](_0x2f9f7d)){const _0x513ea4=_0x2f9f7d;if(_0xeb1a59&&_0xeb1a59[_0x5f5d('0x22')]['indexOf'](_0x5f5d('0x2f'))>-0x1&&_0x2995ff[_0x5f5d('0x2')](),_0x5f5d('0x17')==_0x5f1d26['type'])continue;_0xeb1a59&&_0xeb1a59[_0x5f5d('0x22')]==_0x7baca0+_0x5f5d('0x19')&&_0xeb1a59['element'][_0x5f5d('0x33')]==_0x513ea4[_0x5f5d('0x33')]?_0xeb1a59[_0x5f5d('0x3d')]++:_0x2995ff[_0x5f5d('0x1')]({'type':_0x7baca0+_0x5f5d('0x19'),'element':_0x513ea4,'quantity':0x1}),_0x133ccf[_0x5f5d('0x21')](_0x133c3a=>!(_0x5f5d('0x17')==_0x133c3a['type']&&_0x133c3a[_0x5f5d('0x1b')]==_0x2f9f7d));}else{if(this[_0x5f5d('0x1c')][_0x5f5d('0x23')](_0x2f9f7d,_0x5f5d('0x40'))||_0x2f9f7d['is'](_0x5f5d('0x35'),_0x5f5d('0x1d'))){const _0x41c216=_0x2f9f7d;if(_0x5f5d('0x10')==_0x7baca0&&'elementStart'==_0x5f1d26[_0x5f5d('0x22')]||_0x5f5d('0xa')==_0x7baca0&&'elementEnd'==_0x5f1d26[_0x5f5d('0x22')])continue;if(_0xeb1a59&&-0x1==_0xeb1a59[_0x5f5d('0x22')][_0x5f5d('0x30')]('Container')){_0x5f5d('0x3')==_0xeb1a59[_0x5f5d('0x22')]&&(_0xeb1a59[_0x7baca0]+='\x0a');continue;}let _0x57c6a4;if(_0x57c6a4='add'==_0x7baca0?_0x41c216[_0x5f5d('0x29')]&&!this[_0x5f5d('0x1c')][_0x5f5d('0x4c')](_0x41c216[_0x5f5d('0x29')])?_0x41c216['nextSibling']:null:_0x41c216[_0x5f5d('0x28')]&&!this['_schema']['isObject'](_0x41c216[_0x5f5d('0x28')])?_0x41c216[_0x5f5d('0x28')]:null,_0x41c216[_0x5f5d('0x4')]||_0x57c6a4&&_0x57c6a4[_0x5f5d('0x4')]){const _0x1a0935=_0x57c6a4&&_0x57c6a4[_0x5f5d('0x4')]?_0x57c6a4:_0x41c216;_0xeb1a59&&_0xeb1a59[_0x5f5d('0x22')]==_0x7baca0+'EmptyContainer'&&_0xeb1a59[_0x5f5d('0x35')]['name']==_0x1a0935[_0x5f5d('0x33')]?_0xeb1a59['quantity']++:_0x2995ff['push']({'type':_0x7baca0+_0x5f5d('0x1a'),'element':_0x1a0935,'quantity':0x1});}else _0x2995ff[_0x5f5d('0x1')]({'type':_0x7baca0+_0x5f5d('0x2f'),'element':_0x41c216});}}}}}[_0x5f5d('0x15')](_0x1f5a78){const _0x15e834=this['_locale'],_0x1cbce6=[],_0x18c268=[],_0x23e116=[];for(const _0x1d79d2 of _0x1f5a78)switch(_0x1d79d2[_0x5f5d('0x22')]){case _0x5f5d('0x3'):if(_0x1d79d2[_0x5f5d('0x10')]=_0x1d79d2['add'][_0x5f5d('0xc')](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1d79d2[_0x5f5d('0xa')]=_0x1d79d2[_0x5f5d('0xa')][_0x5f5d('0xc')](/(\S)\u000A+(\S)/g,_0x5f5d('0x36'))[_0x5f5d('0xc')](/\u000A/g,''),''!=_0x1d79d2[_0x5f5d('0x10')]&&''!=_0x1d79d2[_0x5f5d('0xa')]){_0x1cbce6[_0x5f5d('0x1')]({'type':_0x5f5d('0xc'),'content':_0x224241(_0x15e834,'REPLACE_TEXT',['\x22'+_0x1d79d2[_0x5f5d('0xa')]+'\x22','\x22'+_0x1d79d2[_0x5f5d('0x10')]+'\x22'])});continue;}if(null!=_0x1d79d2[_0x5f5d('0x10')]['match'](/^ +$/)){_0x1cbce6[_0x5f5d('0x1')]({'type':'insertion','content':_0x224241(_0x15e834,_0x5f5d('0x4d'),_0x224241(_0x15e834,_0x5f5d('0xd'),_0x1d79d2[_0x5f5d('0x10')][_0x5f5d('0x34')]))});continue;}if(null!=_0x1d79d2[_0x5f5d('0xa')][_0x5f5d('0x41')](/^ +$/)){_0x1cbce6[_0x5f5d('0x1')]({'type':_0x5f5d('0x32'),'content':_0x224241(_0x15e834,_0x5f5d('0x2e'),_0x224241(_0x15e834,'ELEMENT_SPACE',_0x1d79d2['remove']['length']))});continue;}if(''!=_0x1d79d2[_0x5f5d('0x10')]){_0x1cbce6['push']({'type':_0x5f5d('0x3a'),'content':_0x224241(_0x15e834,'*Insert:*\x20%0','\x22'+_0x1d79d2['add']+'\x22')});continue;}_0x1cbce6[_0x5f5d('0x1')]({'type':'deletion','content':_0x224241(_0x15e834,_0x5f5d('0x2e'),'\x22'+_0x1d79d2[_0x5f5d('0xa')]+'\x22')});continue;case _0x5f5d('0x45'):case _0x5f5d('0x48'):_0x1cbce6[_0x5f5d('0x1')]({'type':_0x5f5d('0x3a'),'content':_0x224241(_0x15e834,'*Insert:*\x20%0',this[_0x5f5d('0x4b')](_0x1d79d2['element'],_0x1d79d2[_0x5f5d('0x3d')]))});continue;case _0x5f5d('0x24'):case _0x5f5d('0x2b'):_0x1cbce6[_0x5f5d('0x1')]({'type':_0x5f5d('0x32'),'content':_0x224241(_0x15e834,_0x5f5d('0x2e'),this[_0x5f5d('0x4b')](_0x1d79d2[_0x5f5d('0x35')],_0x1d79d2[_0x5f5d('0x3d')]))});continue;case _0x5f5d('0x4a'):_0x1cbce6['push']({'type':_0x5f5d('0x3a'),'content':_0x224241(_0x15e834,'*Split:*\x20%0',this[_0x5f5d('0x4b')](_0x1d79d2[_0x5f5d('0x35')],_0x1d79d2[_0x5f5d('0x3d')]))});continue;case _0x5f5d('0x4e'):_0x1cbce6[_0x5f5d('0x1')]({'type':'deletion','content':_0x224241(_0x15e834,'*Merge:*\x20%0',this['getItemLabel'](_0x1d79d2[_0x5f5d('0x35')],_0x1d79d2[_0x5f5d('0x3d')]))});continue;case _0x5f5d('0x2d'):_0x18c268['push'](_0x1d79d2['key']);continue;case _0x5f5d('0x43'):_0x23e116[_0x5f5d('0x1')](_0x1d79d2[_0x5f5d('0x11')]);continue;default:_0x1cbce6[_0x5f5d('0x1')](_0x1d79d2);}if(_0x18c268[_0x5f5d('0x34')]){const _0x3f31c5=_0x18c268[_0x5f5d('0x47')](_0xf5f9b5=>this[_0x5f5d('0x3f')]['has'](_0xf5f9b5)?this[_0x5f5d('0x3f')][_0x5f5d('0x3b')](_0xf5f9b5):_0xf5f9b5)[_0x5f5d('0xb')](',\x20');_0x1cbce6['push']({'type':_0x5f5d('0x25'),'content':_0x224241(this[_0x5f5d('0x42')],'*Set\x20format:*\x20%0',_0x3f31c5)});}if(_0x23e116[_0x5f5d('0x34')]){const _0x377da1=_0x23e116['map'](_0x291a7d=>this[_0x5f5d('0x3f')][_0x5f5d('0x13')](_0x291a7d)?this[_0x5f5d('0x3f')][_0x5f5d('0x3b')](_0x291a7d):_0x291a7d)[_0x5f5d('0xb')](',\x20');_0x1cbce6[_0x5f5d('0x1')]({'type':_0x5f5d('0x25'),'content':_0x224241(this[_0x5f5d('0x42')],_0x5f5d('0x27'),_0x377da1)});}return _0x1cbce6;}[_0x5f5d('0x9')](_0x1d1c09){for(const _0x4b27b5 of this[_0x5f5d('0x31')]){const _0x437758=_0x4b27b5(_0x1d1c09);if(_0x437758&&_0x5f5d('0x22')in _0x437758)return _0x437758;}}[_0x5f5d('0x5')](_0x1a9ebb,_0x1640b4){const _0x1d9bda=_0x1640b4['data'],_0x365e8a=void 0x0===_0x1d9bda[_0x5f5d('0xf')]?_0x5f5d('0x43'):_0x5f5d('0x2d');_0x1a9ebb[_0x5f5d('0x1')]({'type':_0x365e8a,'key':_0x1d9bda[_0x5f5d('0x11')]});}[_0x5f5d('0x46')](_0x4fea3c,_0x495967){_0x4fea3c[_0x5f5d('0x1')]({'type':_0x5f5d('0x25'),'content':_0x224241(this[_0x5f5d('0x42')],'*Change\x20to:*\x20%0',this[_0x5f5d('0x4b')](_0x495967[_0x5f5d('0x2a')]()[_0x5f5d('0x39')][_0x5f5d('0x1e')],0x1))});}[_0x5f5d('0x37')](_0x1e7563,_0x5b6346,_0x1a2d46){if(this[_0x5f5d('0x3c')](_0x1e7563,_0x5b6346),_0x1a2d46&&_0x1a2d46[_0x5f5d('0x2a')]()&&!_0x5b6346['getFirstRange']()[_0x5f5d('0x7')][_0x5f5d('0x44')](_0x1a2d46[_0x5f5d('0x2a')]()[_0x5f5d('0x39')])){const _0x5013cd=_0x1e7563[_0x1e7563[_0x5f5d('0x34')]-0x1],_0x1028f4='insertion'==_0x5b6346[_0x5f5d('0x22')]?_0x5f5d('0x10'):_0x5f5d('0xa');_0x5013cd&&_0x5f5d('0x3')==_0x5013cd['type']&&(_0x5013cd[_0x1028f4]+='\x0a');}}}
|
|
23
|
+
const _0x38e1=['_customCallbacks','getItemLabel','REPLACE_TEXT','_itemLabelsCallbacks','softBreak','end','function','addFormat','getDescriptions','_handleCustomCallbackDescription','set','pop','removeObject','insertion','_resolveDescriptionItems','*Merge:*\x20%0','isObject','*Insert:*\x20%0','attribute','key','map','remove','join','EmptyContainer','registerElementLabel','Container','replace','_attributeLabels','*Remove:*\x20%0','get','add','push','nextSibling','text','checkChild','element','removeContainer','*Remove\x20format:*\x20%0','skip','registerAttributeLabel','indexOf','isInContent','deletion','elementStart','newValue','addObject','name','label','quantity','nodeAfter','subType','$1\x20$2','_schema','ELEMENT_SPACE','isEmpty','removeFormat','type','matchingCallback','item','$text','length','_handleAttributeSuggestionDescription','previousSibling','has','$textProxy','_locale','match','Object','isEqual','addEmptyContainer','elementEnd','data','_addDescriptionItems','removeEmptyContainer','*Set\x20format:*\x20%0','start','getFirstRange','_itemLabels','format'];(function(_0x46aa95,_0x38e1a4){const _0x31a94e=function(_0x21993d){while(--_0x21993d){_0x46aa95['push'](_0x46aa95['shift']());}};_0x31a94e(++_0x38e1a4);}(_0x38e1,0x18d));const _0x31a9=function(_0x46aa95,_0x38e1a4){_0x46aa95=_0x46aa95-0x0;let _0x31a94e=_0x38e1[_0x46aa95];return _0x31a94e;};import{getTranslation as _0x1231f0}from'./utils/common-translations.js';import{priorities as _0x383bca,insertToPriorityArray as _0x488f77}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x458b9a}from'./trackchangesediting.js';export default class f{constructor(_0xe261a7,_0x20e769){this[_0x31a9('0x4d')]=[],this[_0x31a9('0x4b')]=new Map(),this[_0x31a9('0x1')]=[],this['_attributeLabels']=new Map(),this[_0x31a9('0x32')]=_0xe261a7,this[_0x31a9('0x3f')]=_0x20e769;}[_0x31a9('0x6')](_0x3a49d0){const _0x550c8a=[],_0x50a34c=new Set(),_0x57741d=new Set();for(let _0x115d44=0x0;_0x115d44<_0x3a49d0[_0x31a9('0x3a')];_0x115d44++){const _0x54f581=_0x3a49d0[_0x115d44];if(!_0x54f581[_0x31a9('0x27')])continue;const _0x3884f4=this[_0x31a9('0x7')](_0x54f581);if(_0x3884f4){if(null!=_0x54f581['subType']){if(_0x50a34c[_0x31a9('0x3d')](_0x54f581[_0x31a9('0x30')]))continue;_0x50a34c[_0x31a9('0x1c')](_0x54f581[_0x31a9('0x30')]);}_0x550c8a[_0x31a9('0x1d')](_0x3884f4);}else{if(_0x31a9('0x10')!=_0x54f581[_0x31a9('0x36')])_0x31a9('0xb')!=_0x54f581[_0x31a9('0x36')]&&'deletion'!=_0x54f581[_0x31a9('0x36')]||this['_handleInsertRemoveSuggestionDescription'](_0x550c8a,_0x54f581,_0x3a49d0[_0x115d44+0x1]);else{const _0x16779a=_0x54f581[_0x31a9('0x45')][_0x31a9('0x11')];if(_0x57741d[_0x31a9('0x3d')](_0x16779a))continue;_0x57741d[_0x31a9('0x1c')](_0x54f581[_0x31a9('0x45')][_0x31a9('0x11')]),_0x16779a==_0x458b9a?this['_handleRenameSuggestionDescription'](_0x550c8a,_0x54f581):this[_0x31a9('0x3b')](_0x550c8a,_0x54f581);}}}return this[_0x31a9('0xc')](_0x550c8a);}['registerDescriptionCallback'](_0x47f159){this[_0x31a9('0x4d')][_0x31a9('0x1d')](_0x47f159);}[_0x31a9('0x16')](_0x1aeaa2,_0x59dfb2,_0x900295=_0x383bca['normal']){_0x31a9('0x4')==typeof _0x1aeaa2?_0x488f77(this[_0x31a9('0x1')],{'matchingCallback':_0x1aeaa2,'label':_0x59dfb2,'priority':_0x900295}):this[_0x31a9('0x4b')][_0x31a9('0x8')](_0x1aeaa2,_0x59dfb2);}[_0x31a9('0x25')](_0x534aa9,_0x20cb69){this[_0x31a9('0x19')]['set'](_0x534aa9,_0x20cb69);}[_0x31a9('0x4e')](_0x1620e7,_0x4806a7=0x1){let _0x162973;for(const _0x5e60dc of this[_0x31a9('0x1')])if(_0x5e60dc[_0x31a9('0x37')](_0x1620e7)){_0x162973=_0x5e60dc[_0x31a9('0x2d')];break;}return _0x162973||(_0x162973=this[_0x31a9('0x4b')]['get'](_0x1620e7[_0x31a9('0x2c')])),_0x162973?_0x162973(_0x4806a7):0x1!==_0x4806a7?_0x4806a7+'\x20'+_0x1620e7[_0x31a9('0x2c')]+'s':''+_0x1620e7[_0x31a9('0x2c')];}[_0x31a9('0x46')](_0x10220c,_0x3a214a){const _0x151964=_0x3a214a['getFirstRange']()['getWalker'](),_0x181c65=_0x31a9('0xb')==_0x3a214a['type']?_0x31a9('0x1c'):'remove';for(const _0xd805b1 of _0x151964){const _0x138965=_0xd805b1[_0x31a9('0x38')],_0x144b18=_0x10220c[_0x10220c[_0x31a9('0x3a')]-0x1];if(_0x138965['is'](_0x31a9('0x3e')))_0x144b18&&_0x144b18[_0x31a9('0x36')][_0x31a9('0x26')](_0x31a9('0x17'))>-0x1&&_0x10220c[_0x31a9('0x9')](),_0x144b18&&_0x31a9('0x1f')==_0x144b18[_0x31a9('0x36')]?_0x144b18[_0x181c65]+=_0x138965[_0x31a9('0x45')]:_0x10220c[_0x31a9('0x1d')]({'type':'text','add':'add'==_0x181c65?_0x138965[_0x31a9('0x45')]:'','remove':_0x31a9('0x13')==_0x181c65?_0x138965['data']:''});else{if(this[_0x31a9('0x32')][_0x31a9('0xe')](_0x138965)){const _0x33108b=_0x138965;if(_0x144b18&&_0x144b18['type'][_0x31a9('0x26')]('Container')>-0x1&&_0x10220c[_0x31a9('0x9')](),'elementEnd'==_0xd805b1[_0x31a9('0x36')])continue;_0x144b18&&_0x144b18[_0x31a9('0x36')]==_0x181c65+_0x31a9('0x41')&&_0x144b18[_0x31a9('0x21')][_0x31a9('0x2c')]==_0x33108b[_0x31a9('0x2c')]?_0x144b18['quantity']++:_0x10220c[_0x31a9('0x1d')]({'type':_0x181c65+_0x31a9('0x41'),'element':_0x33108b,'quantity':0x1}),_0x151964[_0x31a9('0x24')](_0xc8944e=>!(_0x31a9('0x44')==_0xc8944e[_0x31a9('0x36')]&&_0xc8944e[_0x31a9('0x38')]==_0x138965));}else{if(this[_0x31a9('0x32')][_0x31a9('0x20')](_0x138965,_0x31a9('0x39'))||_0x138965['is'](_0x31a9('0x21'),_0x31a9('0x2'))){const _0x70208f=_0x138965;if(_0x31a9('0x1c')==_0x181c65&&_0x31a9('0x29')==_0xd805b1[_0x31a9('0x36')]||_0x31a9('0x13')==_0x181c65&&_0x31a9('0x44')==_0xd805b1['type'])continue;if(_0x144b18&&-0x1==_0x144b18['type']['indexOf'](_0x31a9('0x17'))){_0x31a9('0x1f')==_0x144b18[_0x31a9('0x36')]&&(_0x144b18[_0x181c65]+='\x0a');continue;}let _0x53e3c8;if(_0x53e3c8='add'==_0x181c65?_0x70208f[_0x31a9('0x1e')]&&!this[_0x31a9('0x32')][_0x31a9('0xe')](_0x70208f['nextSibling'])?_0x70208f['nextSibling']:null:_0x70208f['previousSibling']&&!this[_0x31a9('0x32')][_0x31a9('0xe')](_0x70208f['previousSibling'])?_0x70208f[_0x31a9('0x3c')]:null,_0x70208f[_0x31a9('0x34')]||_0x53e3c8&&_0x53e3c8[_0x31a9('0x34')]){const _0x180911=_0x53e3c8&&_0x53e3c8[_0x31a9('0x34')]?_0x53e3c8:_0x70208f;_0x144b18&&_0x144b18[_0x31a9('0x36')]==_0x181c65+_0x31a9('0x15')&&_0x144b18[_0x31a9('0x21')][_0x31a9('0x2c')]==_0x180911[_0x31a9('0x2c')]?_0x144b18['quantity']++:_0x10220c[_0x31a9('0x1d')]({'type':_0x181c65+'EmptyContainer','element':_0x180911,'quantity':0x1});}else _0x10220c[_0x31a9('0x1d')]({'type':_0x181c65+_0x31a9('0x17'),'element':_0x70208f});}}}}}[_0x31a9('0xc')](_0x5d75f2){const _0x388b5f=this[_0x31a9('0x3f')],_0x34fd34=[],_0x54958c=[],_0x55c12a=[];for(const _0x55b683 of _0x5d75f2)switch(_0x55b683[_0x31a9('0x36')]){case _0x31a9('0x1f'):if(_0x55b683['add']=_0x55b683[_0x31a9('0x1c')][_0x31a9('0x18')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x31a9('0x18')](/\u000A/g,''),_0x55b683[_0x31a9('0x13')]=_0x55b683[_0x31a9('0x13')][_0x31a9('0x18')](/(\S)\u000A+(\S)/g,_0x31a9('0x31'))[_0x31a9('0x18')](/\u000A/g,''),''!=_0x55b683[_0x31a9('0x1c')]&&''!=_0x55b683[_0x31a9('0x13')]){_0x34fd34['push']({'type':'replace','content':_0x1231f0(_0x388b5f,_0x31a9('0x0'),['\x22'+_0x55b683[_0x31a9('0x13')]+'\x22','\x22'+_0x55b683[_0x31a9('0x1c')]+'\x22'])});continue;}if(null!=_0x55b683[_0x31a9('0x1c')][_0x31a9('0x40')](/^ +$/)){_0x34fd34[_0x31a9('0x1d')]({'type':'insertion','content':_0x1231f0(_0x388b5f,_0x31a9('0xf'),_0x1231f0(_0x388b5f,'ELEMENT_SPACE',_0x55b683[_0x31a9('0x1c')]['length']))});continue;}if(null!=_0x55b683[_0x31a9('0x13')]['match'](/^ +$/)){_0x34fd34[_0x31a9('0x1d')]({'type':_0x31a9('0x28'),'content':_0x1231f0(_0x388b5f,_0x31a9('0x1a'),_0x1231f0(_0x388b5f,_0x31a9('0x33'),_0x55b683[_0x31a9('0x13')]['length']))});continue;}if(''!=_0x55b683[_0x31a9('0x1c')]){_0x34fd34['push']({'type':_0x31a9('0xb'),'content':_0x1231f0(_0x388b5f,'*Insert:*\x20%0','\x22'+_0x55b683[_0x31a9('0x1c')]+'\x22')});continue;}_0x34fd34['push']({'type':_0x31a9('0x28'),'content':_0x1231f0(_0x388b5f,_0x31a9('0x1a'),'\x22'+_0x55b683[_0x31a9('0x13')]+'\x22')});continue;case _0x31a9('0x43'):case _0x31a9('0x2b'):_0x34fd34[_0x31a9('0x1d')]({'type':_0x31a9('0xb'),'content':_0x1231f0(_0x388b5f,_0x31a9('0xf'),this['getItemLabel'](_0x55b683[_0x31a9('0x21')],_0x55b683[_0x31a9('0x2e')]))});continue;case _0x31a9('0x47'):case _0x31a9('0xa'):_0x34fd34[_0x31a9('0x1d')]({'type':_0x31a9('0x28'),'content':_0x1231f0(_0x388b5f,'*Remove:*\x20%0',this[_0x31a9('0x4e')](_0x55b683[_0x31a9('0x21')],_0x55b683[_0x31a9('0x2e')]))});continue;case'addContainer':_0x34fd34[_0x31a9('0x1d')]({'type':'insertion','content':_0x1231f0(_0x388b5f,'*Split:*\x20%0',this[_0x31a9('0x4e')](_0x55b683[_0x31a9('0x21')],_0x55b683[_0x31a9('0x2e')]))});continue;case _0x31a9('0x22'):_0x34fd34['push']({'type':_0x31a9('0x28'),'content':_0x1231f0(_0x388b5f,_0x31a9('0xd'),this['getItemLabel'](_0x55b683[_0x31a9('0x21')],_0x55b683['quantity']))});continue;case _0x31a9('0x5'):_0x54958c['push'](_0x55b683[_0x31a9('0x11')]);continue;case'removeFormat':_0x55c12a[_0x31a9('0x1d')](_0x55b683['key']);continue;default:_0x34fd34[_0x31a9('0x1d')](_0x55b683);}if(_0x54958c[_0x31a9('0x3a')]){const _0x453e18=_0x54958c[_0x31a9('0x12')](_0xa4e49e=>this['_attributeLabels'][_0x31a9('0x3d')](_0xa4e49e)?this[_0x31a9('0x19')][_0x31a9('0x1b')](_0xa4e49e):_0xa4e49e)[_0x31a9('0x14')](',\x20');_0x34fd34[_0x31a9('0x1d')]({'type':'format','content':_0x1231f0(this[_0x31a9('0x3f')],_0x31a9('0x48'),_0x453e18)});}if(_0x55c12a[_0x31a9('0x3a')]){const _0xdd21f=_0x55c12a[_0x31a9('0x12')](_0x56c352=>this[_0x31a9('0x19')][_0x31a9('0x3d')](_0x56c352)?this['_attributeLabels']['get'](_0x56c352):_0x56c352)[_0x31a9('0x14')](',\x20');_0x34fd34['push']({'type':_0x31a9('0x4c'),'content':_0x1231f0(this[_0x31a9('0x3f')],_0x31a9('0x23'),_0xdd21f)});}return _0x34fd34;}[_0x31a9('0x7')](_0x1b34af){for(const _0x283bdb of this[_0x31a9('0x4d')]){const _0x58bd48=_0x283bdb(_0x1b34af);if(_0x58bd48&&_0x31a9('0x36')in _0x58bd48)return _0x58bd48;}}['_handleAttributeSuggestionDescription'](_0x119c4f,_0x1b875f){const _0x2c1ffe=_0x1b875f[_0x31a9('0x45')],_0x27dcec=void 0x0===_0x2c1ffe[_0x31a9('0x2a')]?_0x31a9('0x35'):'addFormat';_0x119c4f[_0x31a9('0x1d')]({'type':_0x27dcec,'key':_0x2c1ffe[_0x31a9('0x11')]});}['_handleRenameSuggestionDescription'](_0x3b0844,_0x777722){_0x3b0844['push']({'type':_0x31a9('0x4c'),'content':_0x1231f0(this[_0x31a9('0x3f')],'*Change\x20to:*\x20%0',this[_0x31a9('0x4e')](_0x777722[_0x31a9('0x4a')]()['start'][_0x31a9('0x2f')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x38250e,_0x1740d8,_0x3274ce){if(this[_0x31a9('0x46')](_0x38250e,_0x1740d8),_0x3274ce&&_0x3274ce[_0x31a9('0x4a')]()&&!_0x1740d8[_0x31a9('0x4a')]()[_0x31a9('0x3')][_0x31a9('0x42')](_0x3274ce[_0x31a9('0x4a')]()[_0x31a9('0x49')])){const _0xee8c8e=_0x38250e[_0x38250e[_0x31a9('0x3a')]-0x1],_0x4c59f2=_0x31a9('0xb')==_0x1740d8['type']?_0x31a9('0x1c'):'remove';_0xee8c8e&&_0x31a9('0x1f')==_0xee8c8e['type']&&(_0xee8c8e[_0x4c59f2]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1e8f=['plugins','adapter','get','getSuggestion','addSuggestionData','addSuggestion','editor','Comments','TrackChanges','requires','getSuggestions'];(function(_0x202da8,_0x1e8f05){var _0x343e48=function(_0x146a1d){while(--_0x146a1d){_0x202da8['push'](_0x202da8['shift']());}};_0x343e48(++_0x1e8f05);}(_0x1e8f,0xeb));var _0x343e=function(_0x202da8,_0x1e8f05){_0x202da8=_0x202da8-0x0;var _0x343e48=_0x1e8f[_0x202da8];return _0x343e48;};import{Plugin as _0x34cf00}from'ckeditor5/src/core.js';import _0x3fa41a from'./trackchangesui.js';import _0x46f295 from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x34cf00{static get[_0x343e('0x5')](){return[_0x46f295,_0x3fa41a,_0x343e('0x3')];}static get['pluginName'](){return _0x343e('0x4');}set[_0x343e('0x8')](_0x3ae447){this[_0x343e('0x2')][_0x343e('0x7')][_0x343e('0x9')](_0x46f295)['adapter']=_0x3ae447;}get[_0x343e('0x8')](){return this[_0x343e('0x2')]['plugins']['get'](_0x46f295)[_0x343e('0x8')];}[_0x343e('0x1')](_0x522ef0){return this[_0x343e('0x2')][_0x343e('0x7')][_0x343e('0x9')](_0x46f295)[_0x343e('0x0')](_0x522ef0);}[_0x343e('0x6')]({skipNotAttached:_0x1dfb5e=!0x1,toJSON:_0x4ae36=!0x1}={}){return this['editor'][_0x343e('0x7')][_0x343e('0x9')](_0x46f295)[_0x343e('0x6')]({'skipNotAttached':_0x1dfb5e,'toJSON':_0x4ae36});}['getSuggestion'](_0x28b1b4){return this[_0x343e('0x2')][_0x343e('0x7')][_0x343e('0x9')](_0x46f295)[_0x343e('0xa')](_0x28b1b4);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52b1=['end','editor','init','name','editorCreator','createElement','set','createDocumentFragment','discardAllSuggestions','pluginName','TrackChangesData','document','data','getUser','appendChild','create','div','getDataWithDiscardedSuggestions','map','model','requires','constructor','config','trackChangesData.editorCreator','result','_adapter','trackChangesData','users','Users','get','TrackChangesEditing','function','destroy','track-changes-data-invalid-editor-creator','getFullData','plugins','addUser','TrackChangesDataGetter','reduce'];(function(_0x5232dd,_0x52b160){const _0x52ff58=function(_0x83f7be){while(--_0x83f7be){_0x5232dd['push'](_0x5232dd['shift']());}};_0x52ff58(++_0x52b160);}(_0x52b1,0x1bd));const _0x52ff=function(_0x5232dd,_0x52b160){_0x5232dd=_0x5232dd-0x0;let _0x52ff58=_0x52b1[_0x5232dd];return _0x52ff58;};import{Plugin as _0x273009}from'ckeditor5/src/core.js';import{CKEditorError as _0x36e29f}from'ckeditor5/src/utils.js';import _0x440eaa from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x3e99ac}from'ckeditor5-collaboration/src/collaboration-core.js';const T=['Pagination'];export default class P extends _0x273009{static get[_0x52ff('0x4')](){return[_0x440eaa];}static get[_0x52ff('0x20')](){return _0x52ff('0x21');}[_0x52ff('0x19')](){const _0x4bddbb=this['editor'];if(_0x4bddbb[_0x52ff('0x6')]['define'](_0x52ff('0x7'),_0x15ea78=>{const _0x4a8595=_0x4bddbb[_0x52ff('0x3')]['document']['getRootNames']()['reduce']((_0x35ecf0,_0x5d4d94)=>(_0x35ecf0[_0x5d4d94]='',_0x35ecf0),{});return _0x4bddbb[_0x52ff('0x5')][_0x52ff('0x26')](_0x4a8595,_0x15ea78);}),_0x52ff('0xf')!=typeof _0x4bddbb[_0x52ff('0x6')]['get'](_0x52ff('0xa'))[_0x52ff('0x1b')])throw new _0x36e29f(_0x52ff('0x11'));}['getDataWithAcceptedSuggestions'](_0x419b15){return N(this[_0x52ff('0x18')],!0x0,_0x419b15);}[_0x52ff('0x1')](_0x2e5fd6){return N(this[_0x52ff('0x18')],!0x1,_0x2e5fd6);}}class D extends _0x273009{static get['pluginName'](){return _0x52ff('0x15');}constructor(_0x552df0){super(_0x552df0),this[_0x52ff('0x8')]=_0x52ff('0x17');}[_0x52ff('0x19')](){this[_0x52ff('0x18')][_0x52ff('0x13')][_0x52ff('0xd')]('CommentsRepository')[_0x52ff('0x9')]={'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[_0x52ff('0x18')][_0x52ff('0x13')][_0x52ff('0xd')](_0x52ff('0xe'))['_adapter']=null;}}function v(_0x1c0085){return void 0x0!==_0x1c0085['getRootsAttributes'];}async function N(_0x14688f,_0x378ad4,_0x4b7361){const _0x41425d=_0x3e99ac(_0x14688f,T);_0x41425d[_0x52ff('0x13')]['push'](_0x440eaa,D),_0x41425d['rootsAttributes']=v(_0x14688f)?_0x14688f['getRootsAttributes']():void 0x0;const _0x572b83=document[_0x52ff('0x1e')](),_0x1282c0=_0x14688f[_0x52ff('0x6')]['get'](_0x52ff('0xa'))[_0x52ff('0x1b')],_0x1949ce=await _0x1282c0(_0x41425d,()=>function(_0x1d78b9){const _0xa1ac13=document[_0x52ff('0x1c')](_0x52ff('0x0'));return _0x1d78b9[_0x52ff('0x25')](_0xa1ac13),_0xa1ac13;}(_0x572b83));!function(_0x153ffe,_0x2e19d8){const _0x3ccbff=_0x153ffe[_0x52ff('0x3')][_0x52ff('0x22')]['getRootNames']()[_0x52ff('0x16')]((_0xab852b,_0xd80de0)=>(_0xab852b[_0xd80de0]=_0x153ffe[_0x52ff('0x23')][_0x52ff('0xd')]({'rootName':_0xd80de0}),_0xab852b),{}),_0x590bfe=_0x153ffe[_0x52ff('0x13')]['get'](_0x52ff('0xc'))[_0x52ff('0xb')][_0x52ff('0x2')](_0x4b9833=>({'id':_0x4b9833['id'],'name':_0x4b9833[_0x52ff('0x1a')]})),_0x344d64=_0x153ffe[_0x52ff('0x13')][_0x52ff('0xd')]('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47125c=_0x2e19d8['plugins'][_0x52ff('0xd')](_0x52ff('0xc')),_0x3f2f73=_0x2e19d8[_0x52ff('0x13')][_0x52ff('0xd')]('TrackChangesEditing');for(const _0x320d68 of _0x590bfe)_0x47125c[_0x52ff('0x24')](_0x320d68['id'])||_0x47125c[_0x52ff('0x14')](_0x320d68);_0x47125c['me']||_0x47125c['useAnonymousUser']();for(const _0x4e8756 of _0x344d64)_0x3f2f73['addSuggestionData'](_0x4e8756);_0x2e19d8[_0x52ff('0x23')][_0x52ff('0x1d')](_0x3ccbff);}(_0x14688f,_0x1949ce),_0x1949ce['execute'](_0x378ad4?'acceptAllSuggestions':_0x52ff('0x1f'));const _0x31a07e=v(_0x1949ce)?_0x1949ce[_0x52ff('0x12')](_0x4b7361):_0x1949ce['data'][_0x52ff('0xd')](_0x4b7361);return await _0x1949ce[_0x52ff('0x10')](),_0x31a07e;}
|