@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231122.0 → 0.0.0-nightly-20231124.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 _0x36d8=['change','from','getContainedElement','removeMarker','getMarkers','removeAttribute','head','nodeAfter','addMarker','createdAt','filter','_onAttributesChange','length','nodeBefore','_isDataLoaded','authoredAt','accept','substr','setAttribute','attributes','getFirstMarker','author','getMarkerNames','getAllAdjacentSuggestions','_model','clear','toJSON','creator','set','addMarkerName','getItems','_saved','onAccept','next','getMultiRangeId','onDiscard','map','subType','isInContent','start','commentThread','data','split','previous','push','removeMarkers','hasComments','_onAccept','onAttributesChange','@external','size','getRanges','discard','delete','_onDiscard','isIntersecting','isMultiRange','_markerNames','type'];(function(_0x224eb9,_0x36d866){const _0x466c16=function(_0x930a71){while(--_0x930a71){_0x224eb9['push'](_0x224eb9['shift']());}};_0x466c16(++_0x36d866);}(_0x36d8,0xf4));const _0x466c=function(_0x224eb9,_0x36d866){_0x224eb9=_0x224eb9-0x0;let _0x466c16=_0x36d8[_0x224eb9];return _0x466c16;};import{Element as _0x48f3f0}from'ckeditor5/src/engine';import{ObservableMixin as _0x425ddc,uid as _0x169b8d}from'ckeditor5/src/utils';import{cloneDeep as _0x4f238d,isEqual as _0x486432,set as _0xeff8ca,unset as _0x4a32c9}from'lodash-es';export default class u extends _0x425ddc(){constructor(_0x59ced8,_0x5bcd09){super(),this[_0x466c('0x6')]=!0x1,this['id']=_0x5bcd09['id'],this[_0x466c('0x32')]=_0x5bcd09['type'],this['subType']=_0x5bcd09[_0x466c('0x1d')]||null,this[_0x466c('0xd')]=_0x5bcd09[_0x466c('0xd')],this[_0x466c('0x13')]=_0x5bcd09[_0x466c('0x13')]||_0x5bcd09[_0x466c('0xd')],this['isExternal']=Boolean(_0x5bcd09[_0x466c('0xb')]&&_0x5bcd09[_0x466c('0xb')][_0x466c('0x29')]),this[_0x466c('0x21')]=null,this[_0x466c('0x10')]=_0x59ced8,this[_0x466c('0x27')]=_0x5bcd09[_0x466c('0x18')],this[_0x466c('0x2e')]=_0x5bcd09[_0x466c('0x1b')],this['_onAttributesChange']=_0x5bcd09[_0x466c('0x28')],this[_0x466c('0x31')]=new Set(),this[_0x466c('0x1')]=null,this[_0x466c('0x14')](_0x466c('0x7'),null),this[_0x466c('0x14')](_0x466c('0xb'),_0x5bcd09[_0x466c('0xb')]||{}),this['set'](_0x466c('0x23'),null),this[_0x466c('0x14')](_0x466c('0x19'),null),this[_0x466c('0x14')](_0x466c('0x20'),null),this['set'](_0x466c('0x17'),!0x1),this['decorate']('accept'),this['decorate'](_0x466c('0x2c'));}get['head'](){let _0x1e44b6=this;for(;_0x1e44b6[_0x466c('0x23')];)_0x1e44b6=_0x1e44b6[_0x466c('0x23')];return _0x1e44b6;}get[_0x466c('0x26')](){return!!this[_0x466c('0x20')]&&this['commentThread'][_0x466c('0x4')]>0x0;}get[_0x466c('0x30')](){if(0x0==this[_0x466c('0x31')][_0x466c('0x2a')])return!0x1;return 0x6==Array[_0x466c('0x34')](this[_0x466c('0x31')])[0x0][_0x466c('0x22')](':')['length'];}get[_0x466c('0x1e')](){return null!==this['getFirstMarker']();}[_0x466c('0x15')](_0x39880a){this[_0x466c('0x31')]['add'](_0x39880a);}['getMarkerNames'](){return Array[_0x466c('0x34')](this[_0x466c('0x31')]);}[_0x466c('0x37')](){return this[_0x466c('0xe')]()[_0x466c('0x1c')](_0x361a7b=>this['_model']['markers']['get'](_0x361a7b))[_0x466c('0x2')](_0x17ec43=>_0x17ec43);}[_0x466c('0xc')](){return this[_0x466c('0x37')]()[0x0]||null;}['removeMarkers'](){this['_model'][_0x466c('0x33')](_0x4e6b0d=>{for(const _0x20dbaa of this[_0x466c('0x37')]())_0x4e6b0d[_0x466c('0x36')](_0x20dbaa);}),this['_markerNames'][_0x466c('0x11')]();}[_0x466c('0x36')](_0x204d76){this[_0x466c('0x10')][_0x466c('0x33')](_0x4d4410=>{_0x4d4410[_0x466c('0x36')](_0x204d76);}),this['_markerNames'][_0x466c('0x2d')](_0x204d76);}['addRange'](_0x5e916c){const _0x33a8e6='suggestion:'+this[_0x466c('0x32')]+':'+this[_0x466c('0x1d')]+':'+this['id']+':'+this[_0x466c('0x13')]['id']+':'+u[_0x466c('0x1a')]();this[_0x466c('0x15')](_0x33a8e6),this['_model'][_0x466c('0x33')](_0x148545=>{_0x148545[_0x466c('0x0')](_0x33a8e6,{'range':_0x5e916c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5d0fbc){for(const _0x2bdbf7 of this[_0x466c('0x2b')]())if(_0x2bdbf7[_0x466c('0x2f')](_0x5d0fbc))return!0x0;return!0x1;}['getRanges'](){return this[_0x466c('0x37')]()[_0x466c('0x1c')](_0x269b19=>_0x269b19['getRange']());}[_0x466c('0x16')](){return this[_0x466c('0x2b')]()['reduce']((_0x159dc6,_0x5d9b5a)=>[..._0x159dc6,..._0x5d9b5a[_0x466c('0x16')]()],[]);}['getFirstRange'](){var _0x24c640;return(null===(_0x24c640=this[_0x466c('0xc')]())||void 0x0===_0x24c640?void 0x0:_0x24c640['getRange']())||null;}[_0x466c('0x35')](){const _0x14ff95=this['getRanges']();if(0x1!=_0x14ff95[_0x466c('0x4')])return null;const _0x4a0726=_0x14ff95[0x0],_0x22e9fd=_0x4a0726[_0x466c('0x1f')][_0x466c('0x3a')],_0x1c1e25=_0x4a0726['end'][_0x466c('0x5')];return _0x22e9fd instanceof _0x48f3f0?_0x22e9fd!=_0x1c1e25?null:_0x22e9fd:null;}[_0x466c('0x8')](){this[_0x466c('0x27')](this[_0x466c('0x2b')](),this[_0x466c('0x21')],this[_0x466c('0xb')]),this[_0x466c('0x25')]();}['discard'](){this['_onDiscard'](this[_0x466c('0x2b')](),this[_0x466c('0x21')],this[_0x466c('0xb')]),this[_0x466c('0x25')]();}[_0x466c('0xf')](){const _0x5d7087=[];let _0x53968c=this[_0x466c('0x39')];for(;_0x53968c;)_0x5d7087[_0x466c('0x24')](_0x53968c),_0x53968c=_0x53968c[_0x466c('0x19')];return _0x5d7087;}[_0x466c('0xa')](_0x5dde67,_0x25f12e){const _0x3fbcdf=_0x4f238d(this[_0x466c('0xb')]);_0xeff8ca(_0x3fbcdf,_0x5dde67,_0x25f12e),_0x486432(_0x3fbcdf,this[_0x466c('0xb')])||(this[_0x466c('0xb')]=_0x3fbcdf,this[_0x466c('0x3')](_0x3fbcdf));}[_0x466c('0x38')](_0x5d5507){const _0x210a54=_0x4f238d(this[_0x466c('0xb')]);_0x4a32c9(_0x210a54,_0x5d5507),_0x486432(_0x210a54,this[_0x466c('0xb')])||(this[_0x466c('0xb')]=_0x210a54,this['_onAttributesChange'](this['attributes']));}[_0x466c('0x12')](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this[_0x466c('0x1d')]:this[_0x466c('0x32')],'authorId':this[_0x466c('0x13')]['id'],'createdAt':this[_0x466c('0x1')],'hasComments':this[_0x466c('0x26')],'data':this[_0x466c('0x21')],'attributes':this[_0x466c('0xb')]};}static[_0x466c('0x1a')](){return _0x169b8d()[_0x466c('0x9')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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');}}}
|
|
23
|
+
const _0x158f=['getDescriptions','addObject','end','format','element','replace','_itemLabels','nextSibling','addContainer','name','*Split:*\x20%0','attribute','text','checkChild','Object','pop','insertion','quantity','isEmpty','_itemLabelsCallbacks','indexOf','matchingCallback','remove','type','EmptyContainer','_handleCustomCallbackDescription','subType','elementStart','removeObject','_handleInsertRemoveSuggestionDescription','*Remove\x20format:*\x20%0','key','push','normal','addEmptyContainer','addFormat','*Merge:*\x20%0','join','_attributeLabels','_resolveDescriptionItems','REPLACE_TEXT','_schema','add','length','$1\x20$2','getItemLabel','get','_handleAttributeSuggestionDescription','*Insert:*\x20%0','registerElementLabel','isInContent','newValue','set','elementEnd','data','getWalker','removeFormat','Container','ELEMENT_SPACE','previousSibling','*Remove:*\x20%0','deletion','match','*Set\x20format:*\x20%0','label','_handleRenameSuggestionDescription','softBreak','start','_customCallbacks','map','getFirstRange','item','_locale','has','_addDescriptionItems','registerAttributeLabel'];(function(_0x500df7,_0x158f74){const _0x36e45c=function(_0x166b73){while(--_0x166b73){_0x500df7['push'](_0x500df7['shift']());}};_0x36e45c(++_0x158f74);}(_0x158f,0x1b4));const _0x36e4=function(_0x500df7,_0x158f74){_0x500df7=_0x500df7-0x0;let _0x36e45c=_0x158f[_0x500df7];return _0x36e45c;};import{getTranslation as _0x50bb57}from'./utils/common-translations';import{priorities as _0x49807c,insertToPriorityArray as _0x5a7916}from'ckeditor5/src/utils';import{renameAttributeKey as _0x3da1a9}from'./trackchangesediting';export default class f{constructor(_0x4ad7b2,_0x2e8089){this[_0x36e4('0xc')]=[],this['_itemLabels']=new Map(),this[_0x36e4('0x27')]=[],this[_0x36e4('0x3a')]=new Map(),this[_0x36e4('0x3d')]=_0x4ad7b2,this[_0x36e4('0x10')]=_0x2e8089;}[_0x36e4('0x14')](_0x4efd18){const _0x59b2a3=[],_0x1e09b0=new Set(),_0x4cfd06=new Set();for(let _0x4203e5=0x0;_0x4203e5<_0x4efd18[_0x36e4('0x3f')];_0x4203e5++){const _0x2cc34a=_0x4efd18[_0x4203e5];if(!_0x2cc34a[_0x36e4('0x46')])continue;const _0x55337c=this[_0x36e4('0x2d')](_0x2cc34a);if(_0x55337c){if(null!=_0x2cc34a[_0x36e4('0x2e')]){if(_0x1e09b0['has'](_0x2cc34a[_0x36e4('0x2e')]))continue;_0x1e09b0[_0x36e4('0x3e')](_0x2cc34a[_0x36e4('0x2e')]);}_0x59b2a3['push'](_0x55337c);}else{if(_0x36e4('0x1f')!=_0x2cc34a[_0x36e4('0x2b')])'insertion'!=_0x2cc34a[_0x36e4('0x2b')]&&_0x36e4('0x5')!=_0x2cc34a[_0x36e4('0x2b')]||this[_0x36e4('0x31')](_0x59b2a3,_0x2cc34a,_0x4efd18[_0x4203e5+0x1]);else{const _0x207817=_0x2cc34a[_0x36e4('0x4a')][_0x36e4('0x33')];if(_0x4cfd06[_0x36e4('0x11')](_0x207817))continue;_0x4cfd06[_0x36e4('0x3e')](_0x2cc34a['data'][_0x36e4('0x33')]),_0x207817==_0x3da1a9?this['_handleRenameSuggestionDescription'](_0x59b2a3,_0x2cc34a):this['_handleAttributeSuggestionDescription'](_0x59b2a3,_0x2cc34a);}}}return this['_resolveDescriptionItems'](_0x59b2a3);}['registerDescriptionCallback'](_0x38abe6){this['_customCallbacks']['push'](_0x38abe6);}[_0x36e4('0x45')](_0x332342,_0x149a14,_0x1c1d91=_0x49807c[_0x36e4('0x35')]){'function'==typeof _0x332342?_0x5a7916(this['_itemLabelsCallbacks'],{'matchingCallback':_0x332342,'label':_0x149a14,'priority':_0x1c1d91}):this[_0x36e4('0x1a')][_0x36e4('0x48')](_0x332342,_0x149a14);}[_0x36e4('0x13')](_0x2299b3,_0x176b7d){this[_0x36e4('0x3a')][_0x36e4('0x48')](_0x2299b3,_0x176b7d);}['getItemLabel'](_0x1b6b30,_0x3e7faa=0x1){let _0x4b1388;for(const _0x1b0101 of this[_0x36e4('0x27')])if(_0x1b0101[_0x36e4('0x29')](_0x1b6b30)){_0x4b1388=_0x1b0101[_0x36e4('0x8')];break;}return _0x4b1388||(_0x4b1388=this[_0x36e4('0x1a')][_0x36e4('0x42')](_0x1b6b30[_0x36e4('0x1d')])),_0x4b1388?_0x4b1388(_0x3e7faa):0x1!==_0x3e7faa?_0x3e7faa+'\x20'+_0x1b6b30[_0x36e4('0x1d')]+'s':''+_0x1b6b30[_0x36e4('0x1d')];}[_0x36e4('0x12')](_0x329148,_0x5e7f0f){const _0x3cca6b=_0x5e7f0f[_0x36e4('0xe')]()[_0x36e4('0x4b')](),_0x3dc44c='insertion'==_0x5e7f0f[_0x36e4('0x2b')]?_0x36e4('0x3e'):_0x36e4('0x2a');for(const _0x507480 of _0x3cca6b){const _0x3a22f8=_0x507480['item'],_0x51b7f8=_0x329148[_0x329148[_0x36e4('0x3f')]-0x1];if(_0x3a22f8['is']('$textProxy'))_0x51b7f8&&_0x51b7f8['type'][_0x36e4('0x28')](_0x36e4('0x1'))>-0x1&&_0x329148[_0x36e4('0x23')](),_0x51b7f8&&'text'==_0x51b7f8[_0x36e4('0x2b')]?_0x51b7f8[_0x3dc44c]+=_0x3a22f8['data']:_0x329148['push']({'type':_0x36e4('0x20'),'add':_0x36e4('0x3e')==_0x3dc44c?_0x3a22f8[_0x36e4('0x4a')]:'','remove':_0x36e4('0x2a')==_0x3dc44c?_0x3a22f8[_0x36e4('0x4a')]:''});else{if(this[_0x36e4('0x3d')]['isObject'](_0x3a22f8)){const _0x56a9fc=_0x3a22f8;if(_0x51b7f8&&_0x51b7f8[_0x36e4('0x2b')][_0x36e4('0x28')]('Container')>-0x1&&_0x329148['pop'](),_0x36e4('0x49')==_0x507480[_0x36e4('0x2b')])continue;_0x51b7f8&&_0x51b7f8[_0x36e4('0x2b')]==_0x3dc44c+_0x36e4('0x22')&&_0x51b7f8[_0x36e4('0x18')][_0x36e4('0x1d')]==_0x56a9fc[_0x36e4('0x1d')]?_0x51b7f8[_0x36e4('0x25')]++:_0x329148['push']({'type':_0x3dc44c+_0x36e4('0x22'),'element':_0x56a9fc,'quantity':0x1}),_0x3cca6b['skip'](_0x50fec6=>!('elementEnd'==_0x50fec6[_0x36e4('0x2b')]&&_0x50fec6[_0x36e4('0xf')]==_0x3a22f8));}else{if(this[_0x36e4('0x3d')][_0x36e4('0x21')](_0x3a22f8,'$text')||_0x3a22f8['is']('element',_0x36e4('0xa'))){const _0x476b6f=_0x3a22f8;if(_0x36e4('0x3e')==_0x3dc44c&&_0x36e4('0x2f')==_0x507480[_0x36e4('0x2b')]||_0x36e4('0x2a')==_0x3dc44c&&'elementEnd'==_0x507480['type'])continue;if(_0x51b7f8&&-0x1==_0x51b7f8[_0x36e4('0x2b')][_0x36e4('0x28')](_0x36e4('0x1'))){_0x36e4('0x20')==_0x51b7f8[_0x36e4('0x2b')]&&(_0x51b7f8[_0x3dc44c]+='\x0a');continue;}let _0x43f4d7;if(_0x43f4d7='add'==_0x3dc44c?_0x476b6f[_0x36e4('0x1b')]&&!this[_0x36e4('0x3d')]['isObject'](_0x476b6f['nextSibling'])?_0x476b6f[_0x36e4('0x1b')]:null:_0x476b6f[_0x36e4('0x3')]&&!this[_0x36e4('0x3d')]['isObject'](_0x476b6f[_0x36e4('0x3')])?_0x476b6f[_0x36e4('0x3')]:null,_0x476b6f['isEmpty']||_0x43f4d7&&_0x43f4d7[_0x36e4('0x26')]){const _0x44a143=_0x43f4d7&&_0x43f4d7[_0x36e4('0x26')]?_0x43f4d7:_0x476b6f;_0x51b7f8&&_0x51b7f8[_0x36e4('0x2b')]==_0x3dc44c+'EmptyContainer'&&_0x51b7f8[_0x36e4('0x18')][_0x36e4('0x1d')]==_0x44a143[_0x36e4('0x1d')]?_0x51b7f8[_0x36e4('0x25')]++:_0x329148[_0x36e4('0x34')]({'type':_0x3dc44c+_0x36e4('0x2c'),'element':_0x44a143,'quantity':0x1});}else _0x329148['push']({'type':_0x3dc44c+'Container','element':_0x476b6f});}}}}}[_0x36e4('0x3b')](_0x3e1795){const _0x4826a7=this[_0x36e4('0x10')],_0x54a8ae=[],_0x56628d=[],_0x5da80d=[];for(const _0x55c61d of _0x3e1795)switch(_0x55c61d[_0x36e4('0x2b')]){case'text':if(_0x55c61d['add']=_0x55c61d[_0x36e4('0x3e')][_0x36e4('0x19')](/(\S)\u000A+(\S)/g,_0x36e4('0x40'))[_0x36e4('0x19')](/\u000A/g,''),_0x55c61d['remove']=_0x55c61d[_0x36e4('0x2a')][_0x36e4('0x19')](/(\S)\u000A+(\S)/g,_0x36e4('0x40'))[_0x36e4('0x19')](/\u000A/g,''),''!=_0x55c61d['add']&&''!=_0x55c61d[_0x36e4('0x2a')]){_0x54a8ae[_0x36e4('0x34')]({'type':_0x36e4('0x19'),'content':_0x50bb57(_0x4826a7,_0x36e4('0x3c'),['\x22'+_0x55c61d[_0x36e4('0x2a')]+'\x22','\x22'+_0x55c61d['add']+'\x22'])});continue;}if(null!=_0x55c61d[_0x36e4('0x3e')][_0x36e4('0x6')](/^ +$/)){_0x54a8ae['push']({'type':_0x36e4('0x24'),'content':_0x50bb57(_0x4826a7,_0x36e4('0x44'),_0x50bb57(_0x4826a7,'ELEMENT_SPACE',_0x55c61d[_0x36e4('0x3e')][_0x36e4('0x3f')]))});continue;}if(null!=_0x55c61d['remove'][_0x36e4('0x6')](/^ +$/)){_0x54a8ae[_0x36e4('0x34')]({'type':_0x36e4('0x5'),'content':_0x50bb57(_0x4826a7,_0x36e4('0x4'),_0x50bb57(_0x4826a7,_0x36e4('0x2'),_0x55c61d[_0x36e4('0x2a')]['length']))});continue;}if(''!=_0x55c61d[_0x36e4('0x3e')]){_0x54a8ae[_0x36e4('0x34')]({'type':'insertion','content':_0x50bb57(_0x4826a7,_0x36e4('0x44'),'\x22'+_0x55c61d['add']+'\x22')});continue;}_0x54a8ae[_0x36e4('0x34')]({'type':'deletion','content':_0x50bb57(_0x4826a7,_0x36e4('0x4'),'\x22'+_0x55c61d['remove']+'\x22')});continue;case _0x36e4('0x36'):case _0x36e4('0x15'):_0x54a8ae[_0x36e4('0x34')]({'type':_0x36e4('0x24'),'content':_0x50bb57(_0x4826a7,_0x36e4('0x44'),this[_0x36e4('0x41')](_0x55c61d['element'],_0x55c61d[_0x36e4('0x25')]))});continue;case'removeEmptyContainer':case _0x36e4('0x30'):_0x54a8ae[_0x36e4('0x34')]({'type':_0x36e4('0x5'),'content':_0x50bb57(_0x4826a7,_0x36e4('0x4'),this['getItemLabel'](_0x55c61d[_0x36e4('0x18')],_0x55c61d[_0x36e4('0x25')]))});continue;case _0x36e4('0x1c'):_0x54a8ae[_0x36e4('0x34')]({'type':'insertion','content':_0x50bb57(_0x4826a7,_0x36e4('0x1e'),this[_0x36e4('0x41')](_0x55c61d[_0x36e4('0x18')],_0x55c61d[_0x36e4('0x25')]))});continue;case'removeContainer':_0x54a8ae[_0x36e4('0x34')]({'type':'deletion','content':_0x50bb57(_0x4826a7,_0x36e4('0x38'),this['getItemLabel'](_0x55c61d[_0x36e4('0x18')],_0x55c61d['quantity']))});continue;case _0x36e4('0x37'):_0x56628d['push'](_0x55c61d[_0x36e4('0x33')]);continue;case _0x36e4('0x0'):_0x5da80d[_0x36e4('0x34')](_0x55c61d[_0x36e4('0x33')]);continue;default:_0x54a8ae[_0x36e4('0x34')](_0x55c61d);}if(_0x56628d[_0x36e4('0x3f')]){const _0x21303e=_0x56628d[_0x36e4('0xd')](_0x35ebb9=>this[_0x36e4('0x3a')][_0x36e4('0x11')](_0x35ebb9)?this[_0x36e4('0x3a')][_0x36e4('0x42')](_0x35ebb9):_0x35ebb9)[_0x36e4('0x39')](',\x20');_0x54a8ae[_0x36e4('0x34')]({'type':_0x36e4('0x17'),'content':_0x50bb57(this[_0x36e4('0x10')],_0x36e4('0x7'),_0x21303e)});}if(_0x5da80d[_0x36e4('0x3f')]){const _0x4c4adc=_0x5da80d[_0x36e4('0xd')](_0x236bfd=>this[_0x36e4('0x3a')][_0x36e4('0x11')](_0x236bfd)?this[_0x36e4('0x3a')][_0x36e4('0x42')](_0x236bfd):_0x236bfd)[_0x36e4('0x39')](',\x20');_0x54a8ae[_0x36e4('0x34')]({'type':_0x36e4('0x17'),'content':_0x50bb57(this[_0x36e4('0x10')],_0x36e4('0x32'),_0x4c4adc)});}return _0x54a8ae;}[_0x36e4('0x2d')](_0x3f7542){for(const _0x325993 of this[_0x36e4('0xc')]){const _0x28a1f1=_0x325993(_0x3f7542);if(_0x28a1f1&&'type'in _0x28a1f1)return _0x28a1f1;}}[_0x36e4('0x43')](_0x10db28,_0x220171){const _0x23d7bf=_0x220171[_0x36e4('0x4a')],_0x5345b1=void 0x0===_0x23d7bf[_0x36e4('0x47')]?_0x36e4('0x0'):_0x36e4('0x37');_0x10db28[_0x36e4('0x34')]({'type':_0x5345b1,'key':_0x23d7bf[_0x36e4('0x33')]});}[_0x36e4('0x9')](_0x5280eb,_0x34c0ce){_0x5280eb[_0x36e4('0x34')]({'type':_0x36e4('0x17'),'content':_0x50bb57(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x34c0ce[_0x36e4('0xe')]()[_0x36e4('0xb')]['nodeAfter'],0x1))});}[_0x36e4('0x31')](_0x95ffff,_0x2a1bdb,_0x38fa7b){if(this[_0x36e4('0x12')](_0x95ffff,_0x2a1bdb),_0x38fa7b&&_0x38fa7b[_0x36e4('0xe')]()&&!_0x2a1bdb[_0x36e4('0xe')]()[_0x36e4('0x16')]['isEqual'](_0x38fa7b['getFirstRange']()['start'])){const _0xade38a=_0x95ffff[_0x95ffff[_0x36e4('0x3f')]-0x1],_0x209aa6=_0x36e4('0x24')==_0x2a1bdb[_0x36e4('0x2b')]?_0x36e4('0x3e'):'remove';_0xade38a&&_0x36e4('0x20')==_0xade38a[_0x36e4('0x2b')]&&(_0xade38a[_0x209aa6]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5567=['addSuggestionData','adapter','Comments','requires','getSuggestions','TrackChanges','getSuggestion','editor','plugins','addSuggestion','pluginName'];(function(_0x592986,_0x55678b){var _0x23846f=function(_0x449f46){while(--_0x449f46){_0x592986['push'](_0x592986['shift']());}};_0x23846f(++_0x55678b);}(_0x5567,0x1da));var _0x2384=function(_0x592986,_0x55678b){_0x592986=_0x592986-0x0;var _0x23846f=_0x5567[_0x592986];return _0x23846f;};import{Plugin as _0x4a95cf}from'ckeditor5/src/core';import _0x4ce300 from'./trackchangesui';import _0x318f9 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x4a95cf{static get[_0x2384('0x2')](){return[_0x318f9,_0x4ce300,_0x2384('0x1')];}static get[_0x2384('0x9')](){return _0x2384('0x4');}set[_0x2384('0x0')](_0x373365){this[_0x2384('0x6')][_0x2384('0x7')]['get'](_0x318f9)[_0x2384('0x0')]=_0x373365;}get['adapter'](){return this[_0x2384('0x6')][_0x2384('0x7')]['get'](_0x318f9)[_0x2384('0x0')];}[_0x2384('0x8')](_0xce7712){return this[_0x2384('0x6')][_0x2384('0x7')]['get'](_0x318f9)[_0x2384('0xa')](_0xce7712);}[_0x2384('0x3')]({skipNotAttached:_0x104fee=!0x1,toJSON:_0x2938ac=!0x1}={}){return this[_0x2384('0x6')][_0x2384('0x7')]['get'](_0x318f9)['getSuggestions']({'skipNotAttached':_0x104fee,'toJSON':_0x2938ac});}[_0x2384('0x5')](_0x3e1d02){return this[_0x2384('0x6')]['plugins']['get'](_0x318f9)[_0x2384('0x5')](_0x3e1d02);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46e0=['push','result','Users','trackChangesData','TrackChangesDataGetter','getUser','_adapter','getFullData','execute','TrackChangesData','trackChangesData.editorCreator','getDataWithDiscardedSuggestions','appendChild','discardAllSuggestions','define','requires','data','useAnonymousUser','getSuggestions','getRootsAttributes','TrackChangesEditing','reduce','getRootNames','editorCreator','editor','track-changes-data-invalid-editor-creator','CommentsRepository','config','rootsAttributes','pluginName','function','destroy','init','users','create','name','plugins','get','set','document','model','createDocumentFragment'];(function(_0x3f3c22,_0x46e0ae){const _0x3d98fc=function(_0xf595ef){while(--_0xf595ef){_0x3f3c22['push'](_0x3f3c22['shift']());}};_0x3d98fc(++_0x46e0ae);}(_0x46e0,0x16d));const _0x3d98=function(_0x3f3c22,_0x46e0ae){_0x3f3c22=_0x3f3c22-0x0;let _0x3d98fc=_0x46e0[_0x3f3c22];return _0x3d98fc;};import{Plugin as _0x202af3}from'ckeditor5/src/core';import{CKEditorError as _0x3f88cd}from'ckeditor5/src/utils';import _0x3b79c7 from'./trackchangesediting';import{sanitizeEditorConfig as _0x2afb81}from'ckeditor5-collaboration/src/collaboration-core';const T=['Pagination'];export default class P extends _0x202af3{static get[_0x3d98('0x1c')](){return[_0x3b79c7];}static get[_0x3d98('0x0')](){return _0x3d98('0x16');}[_0x3d98('0x3')](){const _0x588437=this['editor'];if(_0x588437[_0x3d98('0x28')][_0x3d98('0x1b')](_0x3d98('0x17'),_0x5f2e73=>{const _0x315624=_0x588437[_0x3d98('0xb')][_0x3d98('0xa')][_0x3d98('0x23')]()[_0x3d98('0x22')]((_0x4e21a0,_0x3eaf71)=>(_0x4e21a0[_0x3eaf71]='',_0x4e21a0),{});return _0x588437['constructor'][_0x3d98('0x5')](_0x315624,_0x5f2e73);}),_0x3d98('0x1')!=typeof _0x588437['config'][_0x3d98('0x8')](_0x3d98('0x10'))[_0x3d98('0x24')])throw new _0x3f88cd(_0x3d98('0x26'));}['getDataWithAcceptedSuggestions'](_0x31fada){return N(this[_0x3d98('0x25')],!0x0,_0x31fada);}[_0x3d98('0x18')](_0x5b6041){return N(this[_0x3d98('0x25')],!0x1,_0x5b6041);}}class D extends _0x202af3{static get[_0x3d98('0x0')](){return _0x3d98('0x11');}constructor(_0xb63574){super(_0xb63574),this[_0x3d98('0xe')]='end';}[_0x3d98('0x3')](){this[_0x3d98('0x25')][_0x3d98('0x7')][_0x3d98('0x8')](_0x3d98('0x27'))[_0x3d98('0x13')]={'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[_0x3d98('0x25')][_0x3d98('0x7')]['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x18d815){return void 0x0!==_0x18d815[_0x3d98('0x20')];}async function N(_0x11c3e1,_0x1f6066,_0x27d716){const _0x343cf1=_0x2afb81(_0x11c3e1,T);_0x343cf1['plugins'][_0x3d98('0xd')](_0x3b79c7,D),_0x343cf1[_0x3d98('0x29')]=v(_0x11c3e1)?_0x11c3e1[_0x3d98('0x20')]():void 0x0;const _0x3bf81a=document[_0x3d98('0xc')](),_0x3477fc=_0x11c3e1['config'][_0x3d98('0x8')]('trackChangesData')['editorCreator'],_0x4d5375=await _0x3477fc(_0x343cf1,()=>function(_0xd9a879){const _0x1144bc=document['createElement']('div');return _0xd9a879[_0x3d98('0x19')](_0x1144bc),_0x1144bc;}(_0x3bf81a));!function(_0x28306c,_0x4b6fe8){const _0x365c8e=_0x28306c[_0x3d98('0xb')][_0x3d98('0xa')][_0x3d98('0x23')]()['reduce']((_0x4eb8b0,_0x5aa93d)=>(_0x4eb8b0[_0x5aa93d]=_0x28306c[_0x3d98('0x1d')][_0x3d98('0x8')]({'rootName':_0x5aa93d}),_0x4eb8b0),{}),_0xaf4c67=_0x28306c[_0x3d98('0x7')][_0x3d98('0x8')]('Users')[_0x3d98('0x4')]['map'](_0x1eaa4f=>({'id':_0x1eaa4f['id'],'name':_0x1eaa4f[_0x3d98('0x6')]})),_0x53d6f8=_0x28306c[_0x3d98('0x7')][_0x3d98('0x8')](_0x3d98('0x21'))[_0x3d98('0x1f')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10ed65=_0x4b6fe8['plugins'][_0x3d98('0x8')](_0x3d98('0xf')),_0x16c753=_0x4b6fe8[_0x3d98('0x7')]['get'](_0x3d98('0x21'));for(const _0x26054a of _0xaf4c67)_0x10ed65[_0x3d98('0x12')](_0x26054a['id'])||_0x10ed65['addUser'](_0x26054a);_0x10ed65['me']||_0x10ed65[_0x3d98('0x1e')]();for(const _0x4f6f7d of _0x53d6f8)_0x16c753['addSuggestionData'](_0x4f6f7d);_0x4b6fe8[_0x3d98('0x1d')][_0x3d98('0x9')](_0x365c8e);}(_0x11c3e1,_0x4d5375),_0x4d5375[_0x3d98('0x15')](_0x1f6066?'acceptAllSuggestions':_0x3d98('0x1a'));const _0x41a3a2=v(_0x4d5375)?_0x4d5375[_0x3d98('0x14')](_0x27d716):_0x4d5375[_0x3d98('0x1d')][_0x3d98('0x8')](_0x27d716);return await _0x4d5375[_0x3d98('0x2')](),_0x41a3a2;}
|