@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231221.0 → 0.0.0-nightly-20231223.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 _0x1afa=['getContainedElement','@external','subType','type','addRange','getRanges','end','createdAt','_onAttributesChange','previous','filter','set','reduce','isMultiRange','length','_onDiscard','isIntersecting','split','_onAccept','change','_isDataLoaded','_markerNames','substr','onAccept','commentThread','setAttribute','markers','getFirstMarker','decorate','_model','map','accept','_saved','getAllAdjacentSuggestions','discard','creator','addMarkerName','removeMarker','onAttributesChange','start','hasComments','getMultiRangeId','getMarkerNames','push','data','isIntersectingWithRange','nodeBefore','next','getRange','attributes','authoredAt','author','removeMarkers','getMarkers','from','delete','getFirstRange','addMarker','nodeAfter'];(function(_0x1b8b18,_0x1afaa6){const _0x277d7e=function(_0x521545){while(--_0x521545){_0x1b8b18['push'](_0x1b8b18['shift']());}};_0x277d7e(++_0x1afaa6);}(_0x1afa,0xd7));const _0x277d=function(_0x1b8b18,_0x1afaa6){_0x1b8b18=_0x1b8b18-0x0;let _0x277d7e=_0x1afa[_0x1b8b18];return _0x277d7e;};import{Element as _0x515d28}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x3f8abf,uid as _0x2a951f}from'ckeditor5/src/utils.js';import{cloneDeep as _0x1603f4,isEqual as _0x277d25,set as _0x5f2e31,unset as _0x4ab91f}from'lodash-es';export default class u extends _0x3f8abf(){constructor(_0x19bdd5,_0x1c26ee){super(),this[_0x277d('0x29')]=!0x1,this['id']=_0x1c26ee['id'],this['type']=_0x1c26ee[_0x277d('0x18')],this[_0x277d('0x17')]=_0x1c26ee[_0x277d('0x17')]||null,this[_0x277d('0xd')]=_0x1c26ee['author'],this['creator']=_0x1c26ee['creator']||_0x1c26ee['author'],this['isExternal']=Boolean(_0x1c26ee[_0x277d('0xb')]&&_0x1c26ee[_0x277d('0xb')][_0x277d('0x16')]),this['data']=null,this[_0x277d('0x32')]=_0x19bdd5,this[_0x277d('0x27')]=_0x1c26ee[_0x277d('0x2c')],this[_0x277d('0x24')]=_0x1c26ee['onDiscard'],this[_0x277d('0x1d')]=_0x1c26ee[_0x277d('0x0')],this['_markerNames']=new Set(),this[_0x277d('0x1c')]=null,this[_0x277d('0x20')](_0x277d('0xc'),null),this[_0x277d('0x20')]('attributes',_0x1c26ee['attributes']||{}),this[_0x277d('0x20')](_0x277d('0x1e'),null),this[_0x277d('0x20')]('next',null),this['set'](_0x277d('0x2d'),null),this[_0x277d('0x20')](_0x277d('0x35'),!0x1),this[_0x277d('0x31')](_0x277d('0x34')),this[_0x277d('0x31')](_0x277d('0x37'));}get['head'](){let _0x13e92d=this;for(;_0x13e92d[_0x277d('0x1e')];)_0x13e92d=_0x13e92d[_0x277d('0x1e')];return _0x13e92d;}get[_0x277d('0x2')](){return!!this[_0x277d('0x2d')]&&this[_0x277d('0x2d')]['length']>0x0;}get[_0x277d('0x22')](){if(0x0==this[_0x277d('0x2a')]['size'])return!0x1;return 0x6==Array[_0x277d('0x10')](this[_0x277d('0x2a')])[0x0][_0x277d('0x26')](':')['length'];}get['isInContent'](){return null!==this[_0x277d('0x30')]();}[_0x277d('0x39')](_0x22e0ac){this[_0x277d('0x2a')]['add'](_0x22e0ac);}[_0x277d('0x4')](){return Array['from'](this[_0x277d('0x2a')]);}[_0x277d('0xf')](){return this[_0x277d('0x4')]()['map'](_0x38adcc=>this[_0x277d('0x32')][_0x277d('0x2f')]['get'](_0x38adcc))[_0x277d('0x1f')](_0x3a8c0c=>_0x3a8c0c);}['getFirstMarker'](){return this[_0x277d('0xf')]()[0x0]||null;}[_0x277d('0xe')](){this[_0x277d('0x32')][_0x277d('0x28')](_0x4b4388=>{for(const _0x932f61 of this[_0x277d('0xf')]())_0x4b4388[_0x277d('0x3a')](_0x932f61);}),this[_0x277d('0x2a')]['clear']();}['removeMarker'](_0x3be935){this[_0x277d('0x32')][_0x277d('0x28')](_0x1edb64=>{_0x1edb64[_0x277d('0x3a')](_0x3be935);}),this[_0x277d('0x2a')][_0x277d('0x11')](_0x3be935);}[_0x277d('0x19')](_0x492574){const _0x275898='suggestion:'+this[_0x277d('0x18')]+':'+this[_0x277d('0x17')]+':'+this['id']+':'+this[_0x277d('0x38')]['id']+':'+u[_0x277d('0x3')]();this[_0x277d('0x39')](_0x275898),this[_0x277d('0x32')]['change'](_0x4aa348=>{_0x4aa348[_0x277d('0x13')](_0x275898,{'range':_0x492574,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x277d('0x7')](_0x594a07){for(const _0xfac5ba of this[_0x277d('0x1a')]())if(_0xfac5ba[_0x277d('0x25')](_0x594a07))return!0x0;return!0x1;}['getRanges'](){return this[_0x277d('0xf')]()[_0x277d('0x33')](_0x36d285=>_0x36d285[_0x277d('0xa')]());}['getItems'](){return this[_0x277d('0x1a')]()[_0x277d('0x21')]((_0x3c2a22,_0x914590)=>[..._0x3c2a22,..._0x914590['getItems']()],[]);}[_0x277d('0x12')](){var _0x5aceba;return(null===(_0x5aceba=this[_0x277d('0x30')]())||void 0x0===_0x5aceba?void 0x0:_0x5aceba[_0x277d('0xa')]())||null;}[_0x277d('0x15')](){const _0xe0820c=this['getRanges']();if(0x1!=_0xe0820c[_0x277d('0x23')])return null;const _0x4f986d=_0xe0820c[0x0],_0x4e87ff=_0x4f986d[_0x277d('0x1')][_0x277d('0x14')],_0x358d30=_0x4f986d[_0x277d('0x1b')][_0x277d('0x8')];return _0x4e87ff instanceof _0x515d28?_0x4e87ff!=_0x358d30?null:_0x4e87ff:null;}['accept'](){this['_onAccept'](this[_0x277d('0x1a')](),this[_0x277d('0x6')],this['attributes']),this[_0x277d('0xe')]();}[_0x277d('0x37')](){this[_0x277d('0x24')](this['getRanges'](),this[_0x277d('0x6')],this[_0x277d('0xb')]),this[_0x277d('0xe')]();}[_0x277d('0x36')](){const _0xa7cc2d=[];let _0x101f43=this['head'];for(;_0x101f43;)_0xa7cc2d[_0x277d('0x5')](_0x101f43),_0x101f43=_0x101f43[_0x277d('0x9')];return _0xa7cc2d;}[_0x277d('0x2e')](_0x4f0dfc,_0x337b2f){const _0x5d4cd2=_0x1603f4(this[_0x277d('0xb')]);_0x5f2e31(_0x5d4cd2,_0x4f0dfc,_0x337b2f),_0x277d25(_0x5d4cd2,this[_0x277d('0xb')])||(this[_0x277d('0xb')]=_0x5d4cd2,this['_onAttributesChange'](_0x5d4cd2));}['removeAttribute'](_0x1d620e){const _0x480bf9=_0x1603f4(this['attributes']);_0x4ab91f(_0x480bf9,_0x1d620e),_0x277d25(_0x480bf9,this[_0x277d('0xb')])||(this['attributes']=_0x480bf9,this[_0x277d('0x1d')](this[_0x277d('0xb')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x277d('0x17')]?this[_0x277d('0x18')]+':'+this[_0x277d('0x17')]:this[_0x277d('0x18')],'authorId':this[_0x277d('0x38')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x277d('0x2')],'data':this['data'],'attributes':this[_0x277d('0xb')]};}static[_0x277d('0x3')](){return _0x2a951f()[_0x277d('0x2b')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4c1a=['_resolveDescriptionItems','Object','_customCallbacks','_schema','registerElementLabel','getDescriptions','remove','normal','type','length','item','pop','*Merge:*\x20%0','addContainer','addFormat','previousSibling','*Change\x20to:*\x20%0','*Split:*\x20%0','ELEMENT_SPACE','newValue','checkChild','addObject','element','subType','_addDescriptionItems','nextSibling','get','_handleAttributeSuggestionDescription','_locale','push','quantity','replace','$text','isEqual','_itemLabels','function','addEmptyContainer','_attributeLabels','*Insert:*\x20%0','*Remove:*\x20%0','_handleRenameSuggestionDescription','end','$1\x20$2','_itemLabelsCallbacks','isInContent','isObject','has','nodeAfter','name','removeContainer','isEmpty','insertion','skip','match','registerAttributeLabel','add','text','map','elementEnd','format','removeFormat','deletion','key','_handleCustomCallbackDescription','join','*Set\x20format:*\x20%0','Container','data','start','getWalker','getItemLabel','matchingCallback','_handleInsertRemoveSuggestionDescription','attribute','set','indexOf','label','elementStart','*Remove\x20format:*\x20%0','getFirstRange','EmptyContainer'];(function(_0x5c2ec0,_0x4c1a31){const _0x17ad0f=function(_0x378df2){while(--_0x378df2){_0x5c2ec0['push'](_0x5c2ec0['shift']());}};_0x17ad0f(++_0x4c1a31);}(_0x4c1a,0x1e7));const _0x17ad=function(_0x5c2ec0,_0x4c1a31){_0x5c2ec0=_0x5c2ec0-0x0;let _0x17ad0f=_0x4c1a[_0x5c2ec0];return _0x17ad0f;};import{getTranslation as _0x5cebb4}from'./utils/common-translations.js';import{priorities as _0x58a560,insertToPriorityArray as _0x42910e}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0xd6221a}from'./trackchangesediting.js';export default class f{constructor(_0xa706ed,_0x5ca8b0){this['_customCallbacks']=[],this[_0x17ad('0x21')]=new Map(),this[_0x17ad('0x2a')]=[],this[_0x17ad('0x24')]=new Map(),this[_0x17ad('0x2')]=_0xa706ed,this[_0x17ad('0x1b')]=_0x5ca8b0;}[_0x17ad('0x4')](_0x253eba){const _0x149b17=[],_0x20a770=new Set(),_0x8118b8=new Set();for(let _0x52c83c=0x0;_0x52c83c<_0x253eba[_0x17ad('0x8')];_0x52c83c++){const _0x416cea=_0x253eba[_0x52c83c];if(!_0x416cea[_0x17ad('0x2b')])continue;const _0x1ef3d5=this[_0x17ad('0x3e')](_0x416cea);if(_0x1ef3d5){if(null!=_0x416cea[_0x17ad('0x16')]){if(_0x20a770['has'](_0x416cea['subType']))continue;_0x20a770[_0x17ad('0x36')](_0x416cea[_0x17ad('0x16')]);}_0x149b17[_0x17ad('0x1c')](_0x1ef3d5);}else{if(_0x17ad('0x48')!=_0x416cea[_0x17ad('0x7')])_0x17ad('0x32')!=_0x416cea['type']&&_0x17ad('0x3c')!=_0x416cea[_0x17ad('0x7')]||this[_0x17ad('0x47')](_0x149b17,_0x416cea,_0x253eba[_0x52c83c+0x1]);else{const _0x3d21e9=_0x416cea['data'][_0x17ad('0x3d')];if(_0x8118b8['has'](_0x3d21e9))continue;_0x8118b8[_0x17ad('0x36')](_0x416cea[_0x17ad('0x42')][_0x17ad('0x3d')]),_0x3d21e9==_0xd6221a?this[_0x17ad('0x27')](_0x149b17,_0x416cea):this[_0x17ad('0x1a')](_0x149b17,_0x416cea);}}}return this[_0x17ad('0x50')](_0x149b17);}['registerDescriptionCallback'](_0x3363a5){this[_0x17ad('0x1')][_0x17ad('0x1c')](_0x3363a5);}[_0x17ad('0x3')](_0x16b4bf,_0x588ddb,_0x1a0526=_0x58a560[_0x17ad('0x6')]){_0x17ad('0x22')==typeof _0x16b4bf?_0x42910e(this[_0x17ad('0x2a')],{'matchingCallback':_0x16b4bf,'label':_0x588ddb,'priority':_0x1a0526}):this['_itemLabels'][_0x17ad('0x49')](_0x16b4bf,_0x588ddb);}[_0x17ad('0x35')](_0x29337a,_0x515e20){this[_0x17ad('0x24')][_0x17ad('0x49')](_0x29337a,_0x515e20);}[_0x17ad('0x45')](_0x5e63a7,_0x1f8dfe=0x1){let _0x42f979;for(const _0x54b0d0 of this['_itemLabelsCallbacks'])if(_0x54b0d0[_0x17ad('0x46')](_0x5e63a7)){_0x42f979=_0x54b0d0[_0x17ad('0x4b')];break;}return _0x42f979||(_0x42f979=this[_0x17ad('0x21')][_0x17ad('0x19')](_0x5e63a7['name'])),_0x42f979?_0x42f979(_0x1f8dfe):0x1!==_0x1f8dfe?_0x1f8dfe+'\x20'+_0x5e63a7[_0x17ad('0x2f')]+'s':''+_0x5e63a7[_0x17ad('0x2f')];}['_addDescriptionItems'](_0x56f94f,_0x46da02){const _0x29bd4c=_0x46da02['getFirstRange']()[_0x17ad('0x44')](),_0x17ef4f=_0x17ad('0x32')==_0x46da02['type']?_0x17ad('0x36'):_0x17ad('0x5');for(const _0x158a12 of _0x29bd4c){const _0x4d612c=_0x158a12[_0x17ad('0x9')],_0x57fa6c=_0x56f94f[_0x56f94f[_0x17ad('0x8')]-0x1];if(_0x4d612c['is']('$textProxy'))_0x57fa6c&&_0x57fa6c[_0x17ad('0x7')][_0x17ad('0x4a')](_0x17ad('0x41'))>-0x1&&_0x56f94f[_0x17ad('0xa')](),_0x57fa6c&&'text'==_0x57fa6c[_0x17ad('0x7')]?_0x57fa6c[_0x17ef4f]+=_0x4d612c[_0x17ad('0x42')]:_0x56f94f[_0x17ad('0x1c')]({'type':_0x17ad('0x37'),'add':'add'==_0x17ef4f?_0x4d612c[_0x17ad('0x42')]:'','remove':'remove'==_0x17ef4f?_0x4d612c[_0x17ad('0x42')]:''});else{if(this[_0x17ad('0x2')][_0x17ad('0x2c')](_0x4d612c)){const _0x33a579=_0x4d612c;if(_0x57fa6c&&_0x57fa6c[_0x17ad('0x7')][_0x17ad('0x4a')](_0x17ad('0x41'))>-0x1&&_0x56f94f[_0x17ad('0xa')](),_0x17ad('0x39')==_0x158a12[_0x17ad('0x7')])continue;_0x57fa6c&&_0x57fa6c[_0x17ad('0x7')]==_0x17ef4f+_0x17ad('0x0')&&_0x57fa6c['element']['name']==_0x33a579['name']?_0x57fa6c[_0x17ad('0x1d')]++:_0x56f94f[_0x17ad('0x1c')]({'type':_0x17ef4f+_0x17ad('0x0'),'element':_0x33a579,'quantity':0x1}),_0x29bd4c[_0x17ad('0x33')](_0x476d73=>!(_0x17ad('0x39')==_0x476d73[_0x17ad('0x7')]&&_0x476d73['item']==_0x4d612c));}else{if(this[_0x17ad('0x2')][_0x17ad('0x13')](_0x4d612c,_0x17ad('0x1f'))||_0x4d612c['is'](_0x17ad('0x15'),'softBreak')){const _0x2dd45d=_0x4d612c;if('add'==_0x17ef4f&&_0x17ad('0x4c')==_0x158a12['type']||_0x17ad('0x5')==_0x17ef4f&&_0x17ad('0x39')==_0x158a12['type'])continue;if(_0x57fa6c&&-0x1==_0x57fa6c[_0x17ad('0x7')][_0x17ad('0x4a')](_0x17ad('0x41'))){'text'==_0x57fa6c[_0x17ad('0x7')]&&(_0x57fa6c[_0x17ef4f]+='\x0a');continue;}let _0x34ec63;if(_0x34ec63=_0x17ad('0x36')==_0x17ef4f?_0x2dd45d['nextSibling']&&!this[_0x17ad('0x2')][_0x17ad('0x2c')](_0x2dd45d[_0x17ad('0x18')])?_0x2dd45d['nextSibling']:null:_0x2dd45d['previousSibling']&&!this[_0x17ad('0x2')][_0x17ad('0x2c')](_0x2dd45d[_0x17ad('0xe')])?_0x2dd45d[_0x17ad('0xe')]:null,_0x2dd45d[_0x17ad('0x31')]||_0x34ec63&&_0x34ec63[_0x17ad('0x31')]){const _0x2fb985=_0x34ec63&&_0x34ec63['isEmpty']?_0x34ec63:_0x2dd45d;_0x57fa6c&&_0x57fa6c[_0x17ad('0x7')]==_0x17ef4f+_0x17ad('0x4f')&&_0x57fa6c[_0x17ad('0x15')]['name']==_0x2fb985[_0x17ad('0x2f')]?_0x57fa6c[_0x17ad('0x1d')]++:_0x56f94f[_0x17ad('0x1c')]({'type':_0x17ef4f+_0x17ad('0x4f'),'element':_0x2fb985,'quantity':0x1});}else _0x56f94f['push']({'type':_0x17ef4f+_0x17ad('0x41'),'element':_0x2dd45d});}}}}}[_0x17ad('0x50')](_0x941c2a){const _0x30455b=this[_0x17ad('0x1b')],_0x126ef2=[],_0x2b5ef2=[],_0x3836b=[];for(const _0x51aba9 of _0x941c2a)switch(_0x51aba9[_0x17ad('0x7')]){case'text':if(_0x51aba9[_0x17ad('0x36')]=_0x51aba9[_0x17ad('0x36')][_0x17ad('0x1e')](/(\S)\u000A+(\S)/g,_0x17ad('0x29'))[_0x17ad('0x1e')](/\u000A/g,''),_0x51aba9[_0x17ad('0x5')]=_0x51aba9['remove'][_0x17ad('0x1e')](/(\S)\u000A+(\S)/g,_0x17ad('0x29'))[_0x17ad('0x1e')](/\u000A/g,''),''!=_0x51aba9[_0x17ad('0x36')]&&''!=_0x51aba9[_0x17ad('0x5')]){_0x126ef2['push']({'type':_0x17ad('0x1e'),'content':_0x5cebb4(_0x30455b,'REPLACE_TEXT',['\x22'+_0x51aba9['remove']+'\x22','\x22'+_0x51aba9[_0x17ad('0x36')]+'\x22'])});continue;}if(null!=_0x51aba9[_0x17ad('0x36')][_0x17ad('0x34')](/^ +$/)){_0x126ef2['push']({'type':_0x17ad('0x32'),'content':_0x5cebb4(_0x30455b,'*Insert:*\x20%0',_0x5cebb4(_0x30455b,_0x17ad('0x11'),_0x51aba9[_0x17ad('0x36')][_0x17ad('0x8')]))});continue;}if(null!=_0x51aba9[_0x17ad('0x5')][_0x17ad('0x34')](/^ +$/)){_0x126ef2[_0x17ad('0x1c')]({'type':'deletion','content':_0x5cebb4(_0x30455b,_0x17ad('0x26'),_0x5cebb4(_0x30455b,'ELEMENT_SPACE',_0x51aba9[_0x17ad('0x5')]['length']))});continue;}if(''!=_0x51aba9[_0x17ad('0x36')]){_0x126ef2[_0x17ad('0x1c')]({'type':_0x17ad('0x32'),'content':_0x5cebb4(_0x30455b,_0x17ad('0x25'),'\x22'+_0x51aba9[_0x17ad('0x36')]+'\x22')});continue;}_0x126ef2[_0x17ad('0x1c')]({'type':'deletion','content':_0x5cebb4(_0x30455b,_0x17ad('0x26'),'\x22'+_0x51aba9[_0x17ad('0x5')]+'\x22')});continue;case _0x17ad('0x23'):case _0x17ad('0x14'):_0x126ef2[_0x17ad('0x1c')]({'type':_0x17ad('0x32'),'content':_0x5cebb4(_0x30455b,_0x17ad('0x25'),this[_0x17ad('0x45')](_0x51aba9[_0x17ad('0x15')],_0x51aba9[_0x17ad('0x1d')]))});continue;case'removeEmptyContainer':case'removeObject':_0x126ef2[_0x17ad('0x1c')]({'type':_0x17ad('0x3c'),'content':_0x5cebb4(_0x30455b,_0x17ad('0x26'),this['getItemLabel'](_0x51aba9[_0x17ad('0x15')],_0x51aba9[_0x17ad('0x1d')]))});continue;case _0x17ad('0xc'):_0x126ef2[_0x17ad('0x1c')]({'type':_0x17ad('0x32'),'content':_0x5cebb4(_0x30455b,_0x17ad('0x10'),this[_0x17ad('0x45')](_0x51aba9[_0x17ad('0x15')],_0x51aba9[_0x17ad('0x1d')]))});continue;case _0x17ad('0x30'):_0x126ef2[_0x17ad('0x1c')]({'type':_0x17ad('0x3c'),'content':_0x5cebb4(_0x30455b,_0x17ad('0xb'),this['getItemLabel'](_0x51aba9[_0x17ad('0x15')],_0x51aba9['quantity']))});continue;case _0x17ad('0xd'):_0x2b5ef2[_0x17ad('0x1c')](_0x51aba9[_0x17ad('0x3d')]);continue;case _0x17ad('0x3b'):_0x3836b[_0x17ad('0x1c')](_0x51aba9['key']);continue;default:_0x126ef2[_0x17ad('0x1c')](_0x51aba9);}if(_0x2b5ef2['length']){const _0x31bcad=_0x2b5ef2[_0x17ad('0x38')](_0x5394dd=>this[_0x17ad('0x24')]['has'](_0x5394dd)?this[_0x17ad('0x24')][_0x17ad('0x19')](_0x5394dd):_0x5394dd)[_0x17ad('0x3f')](',\x20');_0x126ef2[_0x17ad('0x1c')]({'type':_0x17ad('0x3a'),'content':_0x5cebb4(this[_0x17ad('0x1b')],_0x17ad('0x40'),_0x31bcad)});}if(_0x3836b[_0x17ad('0x8')]){const _0x4aed15=_0x3836b[_0x17ad('0x38')](_0x2b2727=>this[_0x17ad('0x24')][_0x17ad('0x2d')](_0x2b2727)?this['_attributeLabels'][_0x17ad('0x19')](_0x2b2727):_0x2b2727)[_0x17ad('0x3f')](',\x20');_0x126ef2['push']({'type':_0x17ad('0x3a'),'content':_0x5cebb4(this[_0x17ad('0x1b')],_0x17ad('0x4d'),_0x4aed15)});}return _0x126ef2;}[_0x17ad('0x3e')](_0x3beda6){for(const _0x186098 of this[_0x17ad('0x1')]){const _0x3cc9c5=_0x186098(_0x3beda6);if(_0x3cc9c5&&_0x17ad('0x7')in _0x3cc9c5)return _0x3cc9c5;}}['_handleAttributeSuggestionDescription'](_0x4ce64a,_0x520287){const _0x3f02b6=_0x520287[_0x17ad('0x42')],_0x49c0eb=void 0x0===_0x3f02b6[_0x17ad('0x12')]?_0x17ad('0x3b'):_0x17ad('0xd');_0x4ce64a[_0x17ad('0x1c')]({'type':_0x49c0eb,'key':_0x3f02b6[_0x17ad('0x3d')]});}[_0x17ad('0x27')](_0x957257,_0x3403f6){_0x957257[_0x17ad('0x1c')]({'type':_0x17ad('0x3a'),'content':_0x5cebb4(this[_0x17ad('0x1b')],_0x17ad('0xf'),this[_0x17ad('0x45')](_0x3403f6[_0x17ad('0x4e')]()['start'][_0x17ad('0x2e')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2212e0,_0x295219,_0x2edad4){if(this[_0x17ad('0x17')](_0x2212e0,_0x295219),_0x2edad4&&_0x2edad4[_0x17ad('0x4e')]()&&!_0x295219['getFirstRange']()[_0x17ad('0x28')][_0x17ad('0x20')](_0x2edad4[_0x17ad('0x4e')]()[_0x17ad('0x43')])){const _0x197d25=_0x2212e0[_0x2212e0[_0x17ad('0x8')]-0x1],_0x8d0152=_0x17ad('0x32')==_0x295219[_0x17ad('0x7')]?_0x17ad('0x36'):_0x17ad('0x5');_0x197d25&&'text'==_0x197d25[_0x17ad('0x7')]&&(_0x197d25[_0x8d0152]+='\x0a');}}}
|
|
23
|
+
const _0x1b0f=['isInContent','data','deletion','_attributeLabels','indexOf','function','$textProxy','_locale','replace','getFirstRange','type','element','*Remove\x20format:*\x20%0','$1\x20$2','item','_addDescriptionItems','pop','name','*Insert:*\x20%0','format','EmptyContainer','getItemLabel','start','set','normal','_itemLabelsCallbacks','removeObject','skip','softBreak','_handleCustomCallbackDescription','_schema','has','isObject','remove','add','*Change\x20to:*\x20%0','registerElementLabel','join','_handleRenameSuggestionDescription','match','*Remove:*\x20%0','addFormat','previousSibling','ELEMENT_SPACE','label','checkChild','*Merge:*\x20%0','_handleInsertRemoveSuggestionDescription','matchingCallback','nextSibling','length','text','$text','get','isEmpty','elementEnd','insertion','nodeAfter','_handleAttributeSuggestionDescription','Object','subType','isEqual','_itemLabels','elementStart','addObject','getWalker','quantity','newValue','attribute','key','registerAttributeLabel','removeFormat','_customCallbacks','addContainer','push','Container','map'];(function(_0x919e54,_0x1b0f00){const _0x19f150=function(_0x15b98c){while(--_0x15b98c){_0x919e54['push'](_0x919e54['shift']());}};_0x19f150(++_0x1b0f00);}(_0x1b0f,0x8a));const _0x19f1=function(_0x919e54,_0x1b0f00){_0x919e54=_0x919e54-0x0;let _0x19f150=_0x1b0f[_0x919e54];return _0x19f150;};import{getTranslation as _0x4f2854}from'./utils/common-translations.js';import{priorities as _0xa1aff5,insertToPriorityArray as _0x5f02b6}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x50f32f}from'./trackchangesediting.js';export default class f{constructor(_0x1e0594,_0x427b49){this[_0x19f1('0xb')]=[],this[_0x19f1('0x1')]=new Map(),this[_0x19f1('0x29')]=[],this['_attributeLabels']=new Map(),this[_0x19f1('0x2e')]=_0x1e0594,this[_0x19f1('0x17')]=_0x427b49;}['getDescriptions'](_0x3d9c07){const _0x56d54e=[],_0x17ff0b=new Set(),_0x264cb5=new Set();for(let _0x510d94=0x0;_0x510d94<_0x3d9c07[_0x19f1('0x42')];_0x510d94++){const _0x4355d3=_0x3d9c07[_0x510d94];if(!_0x4355d3[_0x19f1('0x10')])continue;const _0x1f28a0=this['_handleCustomCallbackDescription'](_0x4355d3);if(_0x1f28a0){if(null!=_0x4355d3[_0x19f1('0x4c')]){if(_0x17ff0b[_0x19f1('0x2f')](_0x4355d3[_0x19f1('0x4c')]))continue;_0x17ff0b[_0x19f1('0x32')](_0x4355d3[_0x19f1('0x4c')]);}_0x56d54e['push'](_0x1f28a0);}else{if(_0x19f1('0x7')!=_0x4355d3['type'])'insertion'!=_0x4355d3[_0x19f1('0x1a')]&&_0x19f1('0x12')!=_0x4355d3[_0x19f1('0x1a')]||this[_0x19f1('0x3f')](_0x56d54e,_0x4355d3,_0x3d9c07[_0x510d94+0x1]);else{const _0x5aba97=_0x4355d3[_0x19f1('0x11')][_0x19f1('0x8')];if(_0x264cb5[_0x19f1('0x2f')](_0x5aba97))continue;_0x264cb5[_0x19f1('0x32')](_0x4355d3['data'][_0x19f1('0x8')]),_0x5aba97==_0x50f32f?this[_0x19f1('0x36')](_0x56d54e,_0x4355d3):this['_handleAttributeSuggestionDescription'](_0x56d54e,_0x4355d3);}}}return this['_resolveDescriptionItems'](_0x56d54e);}['registerDescriptionCallback'](_0x49ac55){this[_0x19f1('0xb')][_0x19f1('0xd')](_0x49ac55);}[_0x19f1('0x34')](_0x33f6eb,_0x3fc7ce,_0x328ef5=_0xa1aff5[_0x19f1('0x28')]){_0x19f1('0x15')==typeof _0x33f6eb?_0x5f02b6(this[_0x19f1('0x29')],{'matchingCallback':_0x33f6eb,'label':_0x3fc7ce,'priority':_0x328ef5}):this['_itemLabels'][_0x19f1('0x27')](_0x33f6eb,_0x3fc7ce);}[_0x19f1('0x9')](_0x4dc00d,_0x5e3b35){this[_0x19f1('0x13')][_0x19f1('0x27')](_0x4dc00d,_0x5e3b35);}[_0x19f1('0x25')](_0x585bbc,_0x57b9a4=0x1){let _0x532d93;for(const _0x136d3e of this[_0x19f1('0x29')])if(_0x136d3e[_0x19f1('0x40')](_0x585bbc)){_0x532d93=_0x136d3e[_0x19f1('0x3c')];break;}return _0x532d93||(_0x532d93=this['_itemLabels'][_0x19f1('0x45')](_0x585bbc[_0x19f1('0x21')])),_0x532d93?_0x532d93(_0x57b9a4):0x1!==_0x57b9a4?_0x57b9a4+'\x20'+_0x585bbc[_0x19f1('0x21')]+'s':''+_0x585bbc['name'];}[_0x19f1('0x1f')](_0x333f79,_0xaab565){const _0x348aeb=_0xaab565[_0x19f1('0x19')]()[_0x19f1('0x4')](),_0x5798f8=_0x19f1('0x48')==_0xaab565['type']?'add':_0x19f1('0x31');for(const _0x5b80a0 of _0x348aeb){const _0x2dcd97=_0x5b80a0[_0x19f1('0x1e')],_0xbd1435=_0x333f79[_0x333f79[_0x19f1('0x42')]-0x1];if(_0x2dcd97['is'](_0x19f1('0x16')))_0xbd1435&&_0xbd1435['type'][_0x19f1('0x14')](_0x19f1('0xe'))>-0x1&&_0x333f79[_0x19f1('0x20')](),_0xbd1435&&_0x19f1('0x43')==_0xbd1435['type']?_0xbd1435[_0x5798f8]+=_0x2dcd97[_0x19f1('0x11')]:_0x333f79[_0x19f1('0xd')]({'type':_0x19f1('0x43'),'add':_0x19f1('0x32')==_0x5798f8?_0x2dcd97[_0x19f1('0x11')]:'','remove':_0x19f1('0x31')==_0x5798f8?_0x2dcd97[_0x19f1('0x11')]:''});else{if(this[_0x19f1('0x2e')][_0x19f1('0x30')](_0x2dcd97)){const _0xf0909c=_0x2dcd97;if(_0xbd1435&&_0xbd1435['type']['indexOf']('Container')>-0x1&&_0x333f79['pop'](),_0x19f1('0x47')==_0x5b80a0[_0x19f1('0x1a')])continue;_0xbd1435&&_0xbd1435[_0x19f1('0x1a')]==_0x5798f8+'Object'&&_0xbd1435[_0x19f1('0x1b')][_0x19f1('0x21')]==_0xf0909c[_0x19f1('0x21')]?_0xbd1435[_0x19f1('0x5')]++:_0x333f79[_0x19f1('0xd')]({'type':_0x5798f8+_0x19f1('0x4b'),'element':_0xf0909c,'quantity':0x1}),_0x348aeb[_0x19f1('0x2b')](_0x23c194=>!(_0x19f1('0x47')==_0x23c194['type']&&_0x23c194[_0x19f1('0x1e')]==_0x2dcd97));}else{if(this['_schema'][_0x19f1('0x3d')](_0x2dcd97,_0x19f1('0x44'))||_0x2dcd97['is']('element',_0x19f1('0x2c'))){const _0x29c0ca=_0x2dcd97;if('add'==_0x5798f8&&_0x19f1('0x2')==_0x5b80a0[_0x19f1('0x1a')]||_0x19f1('0x31')==_0x5798f8&&_0x19f1('0x47')==_0x5b80a0[_0x19f1('0x1a')])continue;if(_0xbd1435&&-0x1==_0xbd1435[_0x19f1('0x1a')]['indexOf'](_0x19f1('0xe'))){_0x19f1('0x43')==_0xbd1435[_0x19f1('0x1a')]&&(_0xbd1435[_0x5798f8]+='\x0a');continue;}let _0x10d174;if(_0x10d174=_0x19f1('0x32')==_0x5798f8?_0x29c0ca[_0x19f1('0x41')]&&!this[_0x19f1('0x2e')][_0x19f1('0x30')](_0x29c0ca['nextSibling'])?_0x29c0ca[_0x19f1('0x41')]:null:_0x29c0ca[_0x19f1('0x3a')]&&!this[_0x19f1('0x2e')]['isObject'](_0x29c0ca[_0x19f1('0x3a')])?_0x29c0ca[_0x19f1('0x3a')]:null,_0x29c0ca[_0x19f1('0x46')]||_0x10d174&&_0x10d174[_0x19f1('0x46')]){const _0x1e1a57=_0x10d174&&_0x10d174[_0x19f1('0x46')]?_0x10d174:_0x29c0ca;_0xbd1435&&_0xbd1435[_0x19f1('0x1a')]==_0x5798f8+'EmptyContainer'&&_0xbd1435[_0x19f1('0x1b')][_0x19f1('0x21')]==_0x1e1a57['name']?_0xbd1435['quantity']++:_0x333f79[_0x19f1('0xd')]({'type':_0x5798f8+_0x19f1('0x24'),'element':_0x1e1a57,'quantity':0x1});}else _0x333f79['push']({'type':_0x5798f8+_0x19f1('0xe'),'element':_0x29c0ca});}}}}}['_resolveDescriptionItems'](_0x6d8ffb){const _0x4f3f09=this[_0x19f1('0x17')],_0x85922f=[],_0x27da1e=[],_0x4d3ed5=[];for(const _0x2440ef of _0x6d8ffb)switch(_0x2440ef[_0x19f1('0x1a')]){case _0x19f1('0x43'):if(_0x2440ef['add']=_0x2440ef[_0x19f1('0x32')][_0x19f1('0x18')](/(\S)\u000A+(\S)/g,_0x19f1('0x1d'))[_0x19f1('0x18')](/\u000A/g,''),_0x2440ef['remove']=_0x2440ef[_0x19f1('0x31')]['replace'](/(\S)\u000A+(\S)/g,_0x19f1('0x1d'))[_0x19f1('0x18')](/\u000A/g,''),''!=_0x2440ef['add']&&''!=_0x2440ef[_0x19f1('0x31')]){_0x85922f['push']({'type':'replace','content':_0x4f2854(_0x4f3f09,'REPLACE_TEXT',['\x22'+_0x2440ef[_0x19f1('0x31')]+'\x22','\x22'+_0x2440ef['add']+'\x22'])});continue;}if(null!=_0x2440ef['add'][_0x19f1('0x37')](/^ +$/)){_0x85922f['push']({'type':_0x19f1('0x48'),'content':_0x4f2854(_0x4f3f09,_0x19f1('0x22'),_0x4f2854(_0x4f3f09,'ELEMENT_SPACE',_0x2440ef[_0x19f1('0x32')][_0x19f1('0x42')]))});continue;}if(null!=_0x2440ef['remove']['match'](/^ +$/)){_0x85922f['push']({'type':_0x19f1('0x12'),'content':_0x4f2854(_0x4f3f09,_0x19f1('0x38'),_0x4f2854(_0x4f3f09,_0x19f1('0x3b'),_0x2440ef[_0x19f1('0x31')][_0x19f1('0x42')]))});continue;}if(''!=_0x2440ef['add']){_0x85922f['push']({'type':_0x19f1('0x48'),'content':_0x4f2854(_0x4f3f09,_0x19f1('0x22'),'\x22'+_0x2440ef[_0x19f1('0x32')]+'\x22')});continue;}_0x85922f[_0x19f1('0xd')]({'type':_0x19f1('0x12'),'content':_0x4f2854(_0x4f3f09,_0x19f1('0x38'),'\x22'+_0x2440ef[_0x19f1('0x31')]+'\x22')});continue;case'addEmptyContainer':case _0x19f1('0x3'):_0x85922f[_0x19f1('0xd')]({'type':_0x19f1('0x48'),'content':_0x4f2854(_0x4f3f09,_0x19f1('0x22'),this[_0x19f1('0x25')](_0x2440ef[_0x19f1('0x1b')],_0x2440ef[_0x19f1('0x5')]))});continue;case'removeEmptyContainer':case _0x19f1('0x2a'):_0x85922f[_0x19f1('0xd')]({'type':'deletion','content':_0x4f2854(_0x4f3f09,_0x19f1('0x38'),this[_0x19f1('0x25')](_0x2440ef[_0x19f1('0x1b')],_0x2440ef[_0x19f1('0x5')]))});continue;case _0x19f1('0xc'):_0x85922f[_0x19f1('0xd')]({'type':_0x19f1('0x48'),'content':_0x4f2854(_0x4f3f09,'*Split:*\x20%0',this[_0x19f1('0x25')](_0x2440ef[_0x19f1('0x1b')],_0x2440ef[_0x19f1('0x5')]))});continue;case'removeContainer':_0x85922f[_0x19f1('0xd')]({'type':_0x19f1('0x12'),'content':_0x4f2854(_0x4f3f09,_0x19f1('0x3e'),this[_0x19f1('0x25')](_0x2440ef[_0x19f1('0x1b')],_0x2440ef[_0x19f1('0x5')]))});continue;case'addFormat':_0x27da1e['push'](_0x2440ef[_0x19f1('0x8')]);continue;case _0x19f1('0xa'):_0x4d3ed5['push'](_0x2440ef[_0x19f1('0x8')]);continue;default:_0x85922f[_0x19f1('0xd')](_0x2440ef);}if(_0x27da1e[_0x19f1('0x42')]){const _0x555385=_0x27da1e[_0x19f1('0xf')](_0x2a11cd=>this[_0x19f1('0x13')][_0x19f1('0x2f')](_0x2a11cd)?this[_0x19f1('0x13')][_0x19f1('0x45')](_0x2a11cd):_0x2a11cd)[_0x19f1('0x35')](',\x20');_0x85922f[_0x19f1('0xd')]({'type':_0x19f1('0x23'),'content':_0x4f2854(this['_locale'],'*Set\x20format:*\x20%0',_0x555385)});}if(_0x4d3ed5['length']){const _0x15f0df=_0x4d3ed5[_0x19f1('0xf')](_0x4258db=>this[_0x19f1('0x13')][_0x19f1('0x2f')](_0x4258db)?this[_0x19f1('0x13')][_0x19f1('0x45')](_0x4258db):_0x4258db)[_0x19f1('0x35')](',\x20');_0x85922f[_0x19f1('0xd')]({'type':_0x19f1('0x23'),'content':_0x4f2854(this[_0x19f1('0x17')],_0x19f1('0x1c'),_0x15f0df)});}return _0x85922f;}[_0x19f1('0x2d')](_0x55216f){for(const _0x3f19eb of this[_0x19f1('0xb')]){const _0x4d6ec9=_0x3f19eb(_0x55216f);if(_0x4d6ec9&&'type'in _0x4d6ec9)return _0x4d6ec9;}}[_0x19f1('0x4a')](_0x838684,_0x50ebab){const _0x31dee0=_0x50ebab[_0x19f1('0x11')],_0x10b02f=void 0x0===_0x31dee0[_0x19f1('0x6')]?_0x19f1('0xa'):_0x19f1('0x39');_0x838684[_0x19f1('0xd')]({'type':_0x10b02f,'key':_0x31dee0[_0x19f1('0x8')]});}[_0x19f1('0x36')](_0x53cc3b,_0x1df89e){_0x53cc3b[_0x19f1('0xd')]({'type':'format','content':_0x4f2854(this[_0x19f1('0x17')],_0x19f1('0x33'),this['getItemLabel'](_0x1df89e[_0x19f1('0x19')]()['start'][_0x19f1('0x49')],0x1))});}[_0x19f1('0x3f')](_0x284bf1,_0x1a2de4,_0x136afb){if(this[_0x19f1('0x1f')](_0x284bf1,_0x1a2de4),_0x136afb&&_0x136afb[_0x19f1('0x19')]()&&!_0x1a2de4['getFirstRange']()['end'][_0x19f1('0x0')](_0x136afb['getFirstRange']()[_0x19f1('0x26')])){const _0x580be6=_0x284bf1[_0x284bf1['length']-0x1],_0x409e98='insertion'==_0x1a2de4[_0x19f1('0x1a')]?_0x19f1('0x32'):_0x19f1('0x31');_0x580be6&&'text'==_0x580be6['type']&&(_0x580be6[_0x409e98]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3b7d=['getSuggestions','addSuggestion','TrackChanges','get','requires','plugins','Comments','getSuggestion','editor','pluginName','adapter'];(function(_0x2e2edf,_0x3b7d32){var _0x12e6fe=function(_0x1dac92){while(--_0x1dac92){_0x2e2edf['push'](_0x2e2edf['shift']());}};_0x12e6fe(++_0x3b7d32);}(_0x3b7d,0x126));var _0x12e6=function(_0x2e2edf,_0x3b7d32){_0x2e2edf=_0x2e2edf-0x0;var _0x12e6fe=_0x3b7d[_0x2e2edf];return _0x12e6fe;};import{Plugin as _0x1419a4}from'ckeditor5/src/core.js';import _0x122bfa from'./trackchangesui.js';import _0xc7429f from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x1419a4{static get[_0x12e6('0x7')](){return[_0xc7429f,_0x122bfa,_0x12e6('0x9')];}static get[_0x12e6('0x1')](){return _0x12e6('0x5');}set[_0x12e6('0x2')](_0x29405a){this[_0x12e6('0x0')][_0x12e6('0x8')][_0x12e6('0x6')](_0xc7429f)[_0x12e6('0x2')]=_0x29405a;}get[_0x12e6('0x2')](){return this[_0x12e6('0x0')][_0x12e6('0x8')]['get'](_0xc7429f)[_0x12e6('0x2')];}[_0x12e6('0x4')](_0x2e7584){return this['editor'][_0x12e6('0x8')][_0x12e6('0x6')](_0xc7429f)['addSuggestionData'](_0x2e7584);}[_0x12e6('0x3')]({skipNotAttached:_0x52a28d=!0x1,toJSON:_0x5c574e=!0x1}={}){return this[_0x12e6('0x0')]['plugins'][_0x12e6('0x6')](_0xc7429f)[_0x12e6('0x3')]({'skipNotAttached':_0x52a28d,'toJSON':_0x5c574e});}['getSuggestion'](_0x27cc13){return this[_0x12e6('0x0')][_0x12e6('0x8')][_0x12e6('0x6')](_0xc7429f)[_0x12e6('0xa')](_0x27cc13);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5839=['rootsAttributes','addSuggestionData','result','name','create','data','createDocumentFragment','editor','requires','pluginName','createElement','editorCreator','TrackChangesEditing','trackChangesData.editorCreator','getSuggestions','getRootNames','init','_adapter','useAnonymousUser','getDataWithDiscardedSuggestions','addUser','track-changes-data-invalid-editor-creator','end','Pagination','acceptAllSuggestions','document','getRootsAttributes','push','config','getUser','get','trackChangesData','plugins','function','Users','execute','constructor','appendChild','model','destroy','define'];(function(_0x4efe50,_0x5839f4){const _0x508de4=function(_0x3ae2e1){while(--_0x3ae2e1){_0x4efe50['push'](_0x4efe50['shift']());}};_0x508de4(++_0x5839f4);}(_0x5839,0x78));const _0x508d=function(_0x4efe50,_0x5839f4){_0x4efe50=_0x4efe50-0x0;let _0x508de4=_0x5839[_0x4efe50];return _0x508de4;};import{Plugin as _0x5e20d1}from'ckeditor5/src/core.js';import{CKEditorError as _0x387feb}from'ckeditor5/src/utils.js';import _0x431365 from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x4d7efa}from'ckeditor5-collaboration/src/collaboration-core.js';const T=[_0x508d('0x1a')];export default class P extends _0x5e20d1{static get[_0x508d('0xb')](){return[_0x431365];}static get['pluginName'](){return'TrackChangesData';}[_0x508d('0x13')](){const _0x32ebe4=this['editor'];if(_0x32ebe4['config'][_0x508d('0x2')](_0x508d('0x10'),_0x4c6830=>{const _0x1e1b2b=_0x32ebe4[_0x508d('0x0')]['document'][_0x508d('0x12')]()['reduce']((_0x54d475,_0xa9786)=>(_0x54d475[_0xa9786]='',_0x54d475),{});return _0x32ebe4[_0x508d('0x27')][_0x508d('0x7')](_0x1e1b2b,_0x4c6830);}),_0x508d('0x24')!=typeof _0x32ebe4[_0x508d('0x1f')][_0x508d('0x21')](_0x508d('0x22'))['editorCreator'])throw new _0x387feb(_0x508d('0x18'));}['getDataWithAcceptedSuggestions'](_0x4f6359){return N(this['editor'],!0x0,_0x4f6359);}[_0x508d('0x16')](_0x44c2a8){return N(this['editor'],!0x1,_0x44c2a8);}}class D extends _0x5e20d1{static get[_0x508d('0xc')](){return'TrackChangesDataGetter';}constructor(_0x45534b){super(_0x45534b),this[_0x508d('0x5')]=_0x508d('0x19');}[_0x508d('0x13')](){this[_0x508d('0xa')][_0x508d('0x23')]['get']('CommentsRepository')['_adapter']={'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[_0x508d('0xa')]['plugins'][_0x508d('0x21')](_0x508d('0xf'))[_0x508d('0x14')]=null;}}function v(_0x531696){return void 0x0!==_0x531696[_0x508d('0x1d')];}async function N(_0x4ac149,_0x2a5a42,_0x5348f8){const _0x29fd51=_0x4d7efa(_0x4ac149,T);_0x29fd51[_0x508d('0x23')][_0x508d('0x1e')](_0x431365,D),_0x29fd51[_0x508d('0x3')]=v(_0x4ac149)?_0x4ac149[_0x508d('0x1d')]():void 0x0;const _0x3af061=document[_0x508d('0x9')](),_0xff3252=_0x4ac149[_0x508d('0x1f')][_0x508d('0x21')]('trackChangesData')[_0x508d('0xe')],_0x3977c5=await _0xff3252(_0x29fd51,()=>function(_0x4e6cb3){const _0x3ee2d7=document[_0x508d('0xd')]('div');return _0x4e6cb3[_0x508d('0x28')](_0x3ee2d7),_0x3ee2d7;}(_0x3af061));!function(_0x46027b,_0x4b7e46){const _0x513b47=_0x46027b[_0x508d('0x0')][_0x508d('0x1c')]['getRootNames']()['reduce']((_0x5b1a66,_0x2013a9)=>(_0x5b1a66[_0x2013a9]=_0x46027b[_0x508d('0x8')][_0x508d('0x21')]({'rootName':_0x2013a9}),_0x5b1a66),{}),_0x4ff8f3=_0x46027b[_0x508d('0x23')]['get'](_0x508d('0x25'))['users']['map'](_0x22906a=>({'id':_0x22906a['id'],'name':_0x22906a[_0x508d('0x6')]})),_0x28feef=_0x46027b[_0x508d('0x23')][_0x508d('0x21')](_0x508d('0xf'))[_0x508d('0x11')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d59ab=_0x4b7e46[_0x508d('0x23')][_0x508d('0x21')]('Users'),_0x20fbb0=_0x4b7e46[_0x508d('0x23')][_0x508d('0x21')](_0x508d('0xf'));for(const _0x409cc5 of _0x4ff8f3)_0x4d59ab[_0x508d('0x20')](_0x409cc5['id'])||_0x4d59ab[_0x508d('0x17')](_0x409cc5);_0x4d59ab['me']||_0x4d59ab[_0x508d('0x15')]();for(const _0x7a4fe0 of _0x28feef)_0x20fbb0[_0x508d('0x4')](_0x7a4fe0);_0x4b7e46['data']['set'](_0x513b47);}(_0x4ac149,_0x3977c5),_0x3977c5[_0x508d('0x26')](_0x2a5a42?_0x508d('0x1b'):'discardAllSuggestions');const _0x25524e=v(_0x3977c5)?_0x3977c5['getFullData'](_0x5348f8):_0x3977c5[_0x508d('0x8')][_0x508d('0x21')](_0x5348f8);return await _0x3977c5[_0x508d('0x1')](),_0x25524e;}
|