@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230711.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.
Files changed (66) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.d.ts +12 -0
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.d.ts +2 -2
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52a7=['nodeBefore','decorate','_markerNames','removeAttribute','addMarkerName','accept','getMultiRangeId','next','@external','previous','getItems','getMarkerNames','_saved','getFirstRange','removeMarker','attributes','subType','data','get','type','change','isIntersectingWithRange','isExternal','getMarkers','map','head','size','substr','delete','filter','length','set','addRange','_model','onAccept','toJSON','onAttributesChange','_onDiscard','reduce','_onAccept','hasComments','start','isInContent','from','_onAttributesChange','getRanges','getRange','add','createdAt','markers','removeMarkers','getContainedElement','commentThread','discard','getFirstMarker','setAttribute','creator','author','isIntersecting'];(function(_0x4b40b5,_0x52a7be){const _0x4f608f=function(_0x2832fc){while(--_0x2832fc){_0x4b40b5['push'](_0x4b40b5['shift']());}};_0x4f608f(++_0x52a7be);}(_0x52a7,0x1a0));const _0x4f60=function(_0x4b40b5,_0x52a7be){_0x4b40b5=_0x4b40b5-0x0;let _0x4f608f=_0x52a7[_0x4b40b5];return _0x4f608f;};import{Element as _0x14f692}from'ckeditor5/src/engine';import{ObservableMixin as _0x565a7b,uid as _0x3325b6}from'ckeditor5/src/utils';import{cloneDeep as _0xe7ed31,isEqual as _0x5c9230,set as _0xa5bb23,unset as _0xff05fe}from'lodash-es';export default class u extends _0x565a7b(){constructor(_0x47c142,_0x203afe){super(),this['id']=_0x203afe['id'],this[_0x4f60('0x10')]=_0x203afe[_0x4f60('0x10')],this[_0x4f60('0xd')]=_0x203afe[_0x4f60('0xd')]||null,this[_0x4f60('0x36')]=_0x203afe[_0x4f60('0x36')],this['creator']=_0x203afe[_0x4f60('0x35')]||_0x203afe[_0x4f60('0x36')],this[_0x4f60('0x13')]=Boolean(_0x203afe[_0x4f60('0xc')]&&_0x203afe[_0x4f60('0xc')][_0x4f60('0x5')]),this[_0x4f60('0xe')]=null,this[_0x4f60('0x1e')]=_0x47c142,this['_onAccept']=_0x203afe[_0x4f60('0x1f')],this[_0x4f60('0x22')]=_0x203afe['onDiscard'],this[_0x4f60('0x29')]=_0x203afe[_0x4f60('0x21')],this[_0x4f60('0x3a')]=new Set(),this['createdAt']=null,this[_0x4f60('0x1c')]('authoredAt',null),this[_0x4f60('0x1c')](_0x4f60('0xc'),_0x203afe['attributes']||{}),this[_0x4f60('0x1c')](_0x4f60('0x6'),null),this[_0x4f60('0x1c')]('next',null),this['set']('commentThread',null),this[_0x4f60('0x1c')](_0x4f60('0x9'),!0x1),this[_0x4f60('0x39')](_0x4f60('0x2')),this['decorate'](_0x4f60('0x32'));}get[_0x4f60('0x16')](){let _0x2fd75d=this;for(;_0x2fd75d['previous'];)_0x2fd75d=_0x2fd75d[_0x4f60('0x6')];return _0x2fd75d;}get[_0x4f60('0x25')](){return!!this[_0x4f60('0x31')]&&this[_0x4f60('0x31')]['length']>0x0;}get['isMultiRange'](){if(0x0==this[_0x4f60('0x3a')][_0x4f60('0x17')])return!0x1;return 0x6==Array[_0x4f60('0x28')](this[_0x4f60('0x3a')])[0x0]['split'](':')['length'];}get[_0x4f60('0x27')](){return null!==this[_0x4f60('0x33')]();}[_0x4f60('0x1')](_0xa60128){this['_markerNames'][_0x4f60('0x2c')](_0xa60128);}[_0x4f60('0x8')](){return Array['from'](this['_markerNames']);}[_0x4f60('0x14')](){return this[_0x4f60('0x8')]()[_0x4f60('0x15')](_0xab3aae=>this['_model'][_0x4f60('0x2e')][_0x4f60('0xf')](_0xab3aae))[_0x4f60('0x1a')](_0x1120b0=>_0x1120b0);}[_0x4f60('0x33')](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this[_0x4f60('0x1e')][_0x4f60('0x11')](_0x113468=>{for(const _0x49c9c4 of this['getMarkers']())_0x113468[_0x4f60('0xb')](_0x49c9c4);}),this[_0x4f60('0x3a')]['clear']();}[_0x4f60('0xb')](_0x56175a){this['_model'][_0x4f60('0x11')](_0x508d81=>{_0x508d81[_0x4f60('0xb')](_0x56175a);}),this[_0x4f60('0x3a')][_0x4f60('0x19')](_0x56175a);}[_0x4f60('0x1d')](_0x4ed61c){const _0x54f110='suggestion:'+this[_0x4f60('0x10')]+':'+this[_0x4f60('0xd')]+':'+this['id']+':'+this[_0x4f60('0x35')]['id']+':'+u[_0x4f60('0x3')]();this[_0x4f60('0x1')](_0x54f110),this[_0x4f60('0x1e')]['change'](_0x5f351d=>{_0x5f351d['addMarker'](_0x54f110,{'range':_0x4ed61c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4f60('0x12')](_0xb65d21){for(const _0x46f195 of this[_0x4f60('0x2a')]())if(_0x46f195[_0x4f60('0x37')](_0xb65d21))return!0x0;return!0x1;}[_0x4f60('0x2a')](){return this[_0x4f60('0x14')]()['map'](_0xe8bb2=>_0xe8bb2[_0x4f60('0x2b')]());}['getItems'](){return this[_0x4f60('0x2a')]()[_0x4f60('0x23')]((_0x43636a,_0x3456fe)=>[..._0x43636a,..._0x3456fe[_0x4f60('0x7')]()],[]);}[_0x4f60('0xa')](){var _0x597279;return(null===(_0x597279=this[_0x4f60('0x33')]())||void 0x0===_0x597279?void 0x0:_0x597279['getRange']())||null;}[_0x4f60('0x30')](){const _0xea5cd9=this[_0x4f60('0x2a')]();if(0x1!=_0xea5cd9[_0x4f60('0x1b')])return null;const _0x5886ab=_0xea5cd9[0x0],_0x1bd32e=_0x5886ab[_0x4f60('0x26')]['nodeAfter'],_0x5d1e6a=_0x5886ab['end'][_0x4f60('0x38')];return _0x1bd32e instanceof _0x14f692?_0x1bd32e!=_0x5d1e6a?null:_0x1bd32e:null;}[_0x4f60('0x2')](){this[_0x4f60('0x24')](this[_0x4f60('0x2a')](),this['data'],this[_0x4f60('0xc')]),this[_0x4f60('0x2f')]();}[_0x4f60('0x32')](){this[_0x4f60('0x22')](this['getRanges'](),this[_0x4f60('0xe')],this['attributes']),this[_0x4f60('0x2f')]();}['getAllAdjacentSuggestions'](){const _0x5a5ed0=[];let _0x122c07=this[_0x4f60('0x16')];for(;_0x122c07;)_0x5a5ed0['push'](_0x122c07),_0x122c07=_0x122c07[_0x4f60('0x4')];return _0x5a5ed0;}[_0x4f60('0x34')](_0x10e11a,_0x468280){const _0x10d8ef=_0xe7ed31(this[_0x4f60('0xc')]);_0xa5bb23(_0x10d8ef,_0x10e11a,_0x468280),_0x5c9230(_0x10d8ef,this[_0x4f60('0xc')])||(this[_0x4f60('0xc')]=_0x10d8ef,this[_0x4f60('0x29')](_0x10d8ef));}[_0x4f60('0x0')](_0x44dcea){const _0x304f40=_0xe7ed31(this['attributes']);_0xff05fe(_0x304f40,_0x44dcea),_0x5c9230(_0x304f40,this[_0x4f60('0xc')])||(this[_0x4f60('0xc')]=_0x304f40,this[_0x4f60('0x29')](this['attributes']));}[_0x4f60('0x20')](){return{'id':this['id'],'type':this[_0x4f60('0xd')]?this['type']+':'+this['subType']:this[_0x4f60('0x10')],'authorId':this['creator']['id'],'createdAt':this[_0x4f60('0x2d')],'hasComments':this['hasComments'],'data':this[_0x4f60('0xe')],'attributes':this[_0x4f60('0xc')]};}static[_0x4f60('0x3')](){return _0x3325b6()[_0x4f60('0x18')](0x1,0x5);}}
23
+ const _0xa36a=['commentThread','removeMarkers','decorate','head','isIntersecting','setAttribute','toJSON','creator','getRange','_onAttributesChange','length','onDiscard','getFirstRange','previous','from','data','getRanges','filter','get','type','isExternal','removeMarker','getItems','addMarker','author','accept','attributes','authoredAt','size','discard','_onAccept','getMarkerNames','subType','addRange','_markerNames','end','split','getMarkers','getMultiRangeId','getContainedElement','set','nodeAfter','onAccept','map','_onDiscard','addMarkerName','hasComments','suggestion:','getFirstMarker','isInContent','delete','createdAt','change','add','_model','isIntersectingWithRange','next','nodeBefore','push'];(function(_0x282177,_0xa36ade){const _0x1891ee=function(_0x3e246b){while(--_0x3e246b){_0x282177['push'](_0x282177['shift']());}};_0x1891ee(++_0xa36ade);}(_0xa36a,0x10c));const _0x1891=function(_0x282177,_0xa36ade){_0x282177=_0x282177-0x0;let _0x1891ee=_0xa36a[_0x282177];return _0x1891ee;};import{Element as _0xdb1ac5}from'ckeditor5/src/engine';import{ObservableMixin as _0x1f264c,uid as _0x587eca}from'ckeditor5/src/utils';import{cloneDeep as _0x476971,isEqual as _0x543360,set as _0x2ee85d,unset as _0x543698}from'lodash-es';export default class u extends _0x1f264c(){constructor(_0x2a11f6,_0x491843){super(),this['id']=_0x491843['id'],this[_0x1891('0x2e')]=_0x491843[_0x1891('0x2e')],this[_0x1891('0x0')]=_0x491843['subType']||null,this[_0x1891('0x33')]=_0x491843['author'],this[_0x1891('0x22')]=_0x491843[_0x1891('0x22')]||_0x491843[_0x1891('0x33')],this[_0x1891('0x2f')]=Boolean(_0x491843['attributes']&&_0x491843[_0x1891('0x35')]['@external']),this[_0x1891('0x2a')]=null,this[_0x1891('0x16')]=_0x2a11f6,this['_onAccept']=_0x491843[_0x1891('0xa')],this[_0x1891('0xc')]=_0x491843[_0x1891('0x26')],this['_onAttributesChange']=_0x491843['onAttributesChange'],this[_0x1891('0x2')]=new Set(),this[_0x1891('0x13')]=null,this['set'](_0x1891('0x36'),null),this['set']('attributes',_0x491843[_0x1891('0x35')]||{}),this[_0x1891('0x8')]('previous',null),this[_0x1891('0x8')](_0x1891('0x18'),null),this[_0x1891('0x8')](_0x1891('0x1b'),null),this[_0x1891('0x8')]('_saved',!0x1),this[_0x1891('0x1d')](_0x1891('0x34')),this[_0x1891('0x1d')](_0x1891('0x38'));}get['head'](){let _0x32deec=this;for(;_0x32deec[_0x1891('0x28')];)_0x32deec=_0x32deec[_0x1891('0x28')];return _0x32deec;}get['hasComments'](){return!!this[_0x1891('0x1b')]&&this[_0x1891('0x1b')][_0x1891('0x25')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x1891('0x2')][_0x1891('0x37')])return!0x1;return 0x6==Array[_0x1891('0x29')](this[_0x1891('0x2')])[0x0][_0x1891('0x4')](':')[_0x1891('0x25')];}get[_0x1891('0x11')](){return null!==this['getFirstMarker']();}[_0x1891('0xd')](_0x4ae478){this['_markerNames'][_0x1891('0x15')](_0x4ae478);}[_0x1891('0x3a')](){return Array['from'](this[_0x1891('0x2')]);}['getMarkers'](){return this[_0x1891('0x3a')]()[_0x1891('0xb')](_0xa34a8f=>this[_0x1891('0x16')]['markers'][_0x1891('0x2d')](_0xa34a8f))[_0x1891('0x2c')](_0x1cd353=>_0x1cd353);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}[_0x1891('0x1c')](){this['_model']['change'](_0x1de3e8=>{for(const _0x15513f of this[_0x1891('0x5')]())_0x1de3e8[_0x1891('0x30')](_0x15513f);}),this[_0x1891('0x2')]['clear']();}[_0x1891('0x30')](_0x56be86){this[_0x1891('0x16')]['change'](_0x1bf969=>{_0x1bf969[_0x1891('0x30')](_0x56be86);}),this[_0x1891('0x2')][_0x1891('0x12')](_0x56be86);}[_0x1891('0x1')](_0x225162){const _0x232a77=_0x1891('0xf')+this[_0x1891('0x2e')]+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u[_0x1891('0x6')]();this['addMarkerName'](_0x232a77),this[_0x1891('0x16')][_0x1891('0x14')](_0x21911a=>{_0x21911a[_0x1891('0x32')](_0x232a77,{'range':_0x225162,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1891('0x17')](_0x2701b8){for(const _0x50b6e9 of this[_0x1891('0x2b')]())if(_0x50b6e9[_0x1891('0x1f')](_0x2701b8))return!0x0;return!0x1;}[_0x1891('0x2b')](){return this[_0x1891('0x5')]()['map'](_0x2f3d95=>_0x2f3d95[_0x1891('0x23')]());}[_0x1891('0x31')](){return this[_0x1891('0x2b')]()['reduce']((_0x49919c,_0x2fe461)=>[..._0x49919c,..._0x2fe461[_0x1891('0x31')]()],[]);}[_0x1891('0x27')](){var _0x22fce6;return(null===(_0x22fce6=this[_0x1891('0x10')]())||void 0x0===_0x22fce6?void 0x0:_0x22fce6['getRange']())||null;}[_0x1891('0x7')](){const _0x42f371=this[_0x1891('0x2b')]();if(0x1!=_0x42f371[_0x1891('0x25')])return null;const _0x20d443=_0x42f371[0x0],_0x138eeb=_0x20d443['start'][_0x1891('0x9')],_0x4f85a2=_0x20d443[_0x1891('0x3')][_0x1891('0x19')];return _0x138eeb instanceof _0xdb1ac5?_0x138eeb!=_0x4f85a2?null:_0x138eeb:null;}[_0x1891('0x34')](){this[_0x1891('0x39')](this['getRanges'](),this[_0x1891('0x2a')],this[_0x1891('0x35')]),this[_0x1891('0x1c')]();}['discard'](){this[_0x1891('0xc')](this[_0x1891('0x2b')](),this[_0x1891('0x2a')],this[_0x1891('0x35')]),this[_0x1891('0x1c')]();}['getAllAdjacentSuggestions'](){const _0x35da34=[];let _0x4b9796=this[_0x1891('0x1e')];for(;_0x4b9796;)_0x35da34[_0x1891('0x1a')](_0x4b9796),_0x4b9796=_0x4b9796[_0x1891('0x18')];return _0x35da34;}[_0x1891('0x20')](_0x1a3c17,_0x5f3fe6){const _0x414efa=_0x476971(this['attributes']);_0x2ee85d(_0x414efa,_0x1a3c17,_0x5f3fe6),_0x543360(_0x414efa,this[_0x1891('0x35')])||(this['attributes']=_0x414efa,this[_0x1891('0x24')](_0x414efa));}['removeAttribute'](_0x467d1b){const _0x233e45=_0x476971(this[_0x1891('0x35')]);_0x543698(_0x233e45,_0x467d1b),_0x543360(_0x233e45,this[_0x1891('0x35')])||(this[_0x1891('0x35')]=_0x233e45,this['_onAttributesChange'](this[_0x1891('0x35')]));}[_0x1891('0x21')](){return{'id':this['id'],'type':this[_0x1891('0x0')]?this[_0x1891('0x2e')]+':'+this[_0x1891('0x0')]:this[_0x1891('0x2e')],'authorId':this[_0x1891('0x22')]['id'],'createdAt':this[_0x1891('0x13')],'hasComments':this[_0x1891('0xe')],'data':this[_0x1891('0x2a')],'attributes':this[_0x1891('0x35')]};}static[_0x1891('0x6')](){return _0x587eca()['substr'](0x1,0x5);}}
@@ -149,3 +149,15 @@ export interface LabelCallbackObject {
149
149
  label: LabelCallback;
150
150
  priority: PriorityString;
151
151
  }
152
+ /**
153
+ * An intermediate state which is easier to operate on when consecutive suggestion
154
+ * ranges are traversed.
155
+ */
156
+ interface DescriptionItem {
157
+ type: 'text' | 'addEmptyContainer' | 'addObject' | 'removeEmptyContainer' | 'removeObject' | 'addContainer' | 'removeContainer';
158
+ add?: string;
159
+ remove?: string;
160
+ element?: Element;
161
+ quantity?: number;
162
+ }
163
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3794=['skip','get','*Merge:*\x20%0','$text','*Remove:*\x20%0','isInContent','$textProxy','item','previousSibling','replace','_locale','name','elementEnd','deletion','Container','type','indexOf','_addDescriptionItems','isObject','checkChild','ELEMENT_SPACE','Object','text','normal','_resolveDescriptionItems','data','*Insert:*\x20%0','nextSibling','match','remove','length','_customCallbacks','removeContainer','insertion','getFirstRange','function','_schema','EmptyContainer','pop','_itemLabelsCallbacks','isEmpty','start','$1\x20$2','_itemLabels','getDescriptions','registerDescriptionCallback','add','removeObject','push','getItemLabel','*Split:*\x20%0','quantity','element'];(function(_0x127101,_0x3794eb){const _0x50eba4=function(_0x2dcace){while(--_0x2dcace){_0x127101['push'](_0x127101['shift']());}};_0x50eba4(++_0x3794eb);}(_0x3794,0xb1));const _0x50eb=function(_0x127101,_0x3794eb){_0x127101=_0x127101-0x0;let _0x50eba4=_0x3794[_0x127101];return _0x50eba4;};import{getTranslation as _0x5675e8}from'./utils/common-translations';import{priorities as _0x3c26d6,insertToPriorityArray as _0x2d4495}from'ckeditor5/src/utils';export default class m{constructor(_0x4bcc02,_0x57e010){this[_0x50eb('0xd')]=[],this[_0x50eb('0x19')]=new Map(),this[_0x50eb('0x15')]=[],this[_0x50eb('0x12')]=_0x4bcc02,this[_0x50eb('0x2d')]=_0x57e010;}[_0x50eb('0x1a')](_0x585602){const _0x23c605=[];for(let _0x588cdd=0x0;_0x588cdd<_0x585602['length'];_0x588cdd++){const _0xd03616=_0x585602[_0x588cdd];if(!_0xd03616[_0x50eb('0x28')])continue;let _0x187b9c=!0x1;for(const _0x5e4ca1 of this['_customCallbacks']){const _0x202b67=_0x5e4ca1(_0xd03616);if(_0x202b67){_0x50eb('0x32')in _0x202b67&&_0x23c605['push'](_0x202b67),_0x187b9c=!0x0;break;}}if(!_0x187b9c){this['_addDescriptionItems'](_0x23c605,_0xd03616);const _0x42bd4d=_0x585602[_0x588cdd+0x1];if(_0x42bd4d&&!_0xd03616[_0x50eb('0x10')]()['end']['isEqual'](_0x42bd4d[_0x50eb('0x10')]()[_0x50eb('0x17')])){const _0x357660=_0x23c605[_0x23c605[_0x50eb('0xc')]-0x1],_0x594950=_0x50eb('0xf')==_0xd03616['type']?_0x50eb('0x1c'):_0x50eb('0xb');_0x357660&&_0x50eb('0x4')==_0x357660[_0x50eb('0x32')]&&(_0x357660[_0x594950]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x23c605);}[_0x50eb('0x1b')](_0x1ea6b0){this[_0x50eb('0xd')][_0x50eb('0x1e')](_0x1ea6b0);}['registerElementLabel'](_0x1c40f3,_0x3ead3b,_0x2f099c=_0x3c26d6[_0x50eb('0x5')]){_0x50eb('0x11')==typeof _0x1c40f3?_0x2d4495(this[_0x50eb('0x15')],{'matchingCallback':_0x1c40f3,'label':_0x3ead3b,'priority':_0x2f099c}):this['_itemLabels']['set'](_0x1c40f3,_0x3ead3b);}[_0x50eb('0x1f')](_0x5a254e,_0x464908=0x1){let _0x4c57a1;for(const _0x835d9e of this['_itemLabelsCallbacks'])if(_0x835d9e['matchingCallback'](_0x5a254e)){_0x4c57a1=_0x835d9e['label'];break;}return _0x4c57a1||(_0x4c57a1=this[_0x50eb('0x19')][_0x50eb('0x24')](_0x5a254e[_0x50eb('0x2e')])),_0x4c57a1?_0x4c57a1(_0x464908):0x1!==_0x464908?_0x464908+'\x20'+_0x5a254e[_0x50eb('0x2e')]+'s':''+_0x5a254e[_0x50eb('0x2e')];}[_0x50eb('0x34')](_0x47f6c7,_0x419494){const _0x30f1ba=_0x419494['getFirstRange']()['getWalker'](),_0x579515='insertion'==_0x419494[_0x50eb('0x32')]?_0x50eb('0x1c'):'remove';for(const _0x239a7e of _0x30f1ba){const _0x341708=_0x239a7e[_0x50eb('0x2a')],_0x47dc90=_0x47f6c7[_0x47f6c7[_0x50eb('0xc')]-0x1];if(_0x341708['is'](_0x50eb('0x29')))_0x47dc90&&_0x47dc90[_0x50eb('0x32')][_0x50eb('0x33')](_0x50eb('0x31'))>-0x1&&_0x47f6c7[_0x50eb('0x14')](),_0x47dc90&&_0x50eb('0x4')==_0x47dc90['type']?_0x47dc90[_0x579515]+=_0x341708[_0x50eb('0x7')]:_0x47f6c7[_0x50eb('0x1e')]({'type':_0x50eb('0x4'),'add':_0x50eb('0x1c')==_0x579515?_0x341708[_0x50eb('0x7')]:'','remove':_0x50eb('0xb')==_0x579515?_0x341708['data']:''});else{if(this[_0x50eb('0x12')][_0x50eb('0x0')](_0x341708)){const _0x3325f7=_0x341708;if(_0x47dc90&&_0x47dc90[_0x50eb('0x32')][_0x50eb('0x33')](_0x50eb('0x31'))>-0x1&&_0x47f6c7[_0x50eb('0x14')](),_0x50eb('0x2f')==_0x239a7e[_0x50eb('0x32')])continue;_0x47dc90&&_0x47dc90['type']==_0x579515+_0x50eb('0x3')&&_0x47dc90[_0x50eb('0x22')][_0x50eb('0x2e')]==_0x3325f7['name']?_0x47dc90['quantity']++:_0x47f6c7['push']({'type':_0x579515+_0x50eb('0x3'),'element':_0x3325f7,'quantity':0x1}),_0x30f1ba[_0x50eb('0x23')](_0x444906=>!('elementEnd'==_0x444906[_0x50eb('0x32')]&&_0x444906[_0x50eb('0x2a')]==_0x341708));}else{if(this[_0x50eb('0x12')][_0x50eb('0x1')](_0x341708,_0x50eb('0x26'))||_0x341708['is'](_0x50eb('0x22'),'softBreak')){const _0x488574=_0x341708;if('add'==_0x579515&&'elementStart'==_0x239a7e[_0x50eb('0x32')]||'remove'==_0x579515&&_0x50eb('0x2f')==_0x239a7e[_0x50eb('0x32')])continue;if(_0x47dc90&&-0x1==_0x47dc90['type'][_0x50eb('0x33')](_0x50eb('0x31'))){_0x50eb('0x4')==_0x47dc90[_0x50eb('0x32')]&&(_0x47dc90[_0x579515]+='\x0a');continue;}let _0x850d90;if(_0x850d90=_0x50eb('0x1c')==_0x579515?_0x488574[_0x50eb('0x9')]&&!this[_0x50eb('0x12')]['isObject'](_0x488574['nextSibling'])?_0x488574[_0x50eb('0x9')]:null:_0x488574[_0x50eb('0x2b')]&&!this[_0x50eb('0x12')][_0x50eb('0x0')](_0x488574[_0x50eb('0x2b')])?_0x488574[_0x50eb('0x2b')]:null,_0x488574['isEmpty']||_0x850d90&&_0x850d90[_0x50eb('0x16')]){const _0x3f3740=_0x850d90&&_0x850d90[_0x50eb('0x16')]?_0x850d90:_0x488574;_0x47dc90&&_0x47dc90[_0x50eb('0x32')]==_0x579515+_0x50eb('0x13')&&_0x47dc90[_0x50eb('0x22')][_0x50eb('0x2e')]==_0x3f3740['name']?_0x47dc90['quantity']++:_0x47f6c7[_0x50eb('0x1e')]({'type':_0x579515+_0x50eb('0x13'),'element':_0x3f3740,'quantity':0x1});}else _0x47f6c7['push']({'type':_0x579515+'Container','element':_0x488574});}}}}}[_0x50eb('0x6')](_0x489fe8){const _0x34d782=this[_0x50eb('0x2d')],_0x46d5f1=[];for(const _0x171736 of _0x489fe8){switch(_0x171736[_0x50eb('0x32')]){case'text':if(_0x171736['add']=_0x171736[_0x50eb('0x1c')][_0x50eb('0x2c')](/(\S)\u000A+(\S)/g,_0x50eb('0x18'))[_0x50eb('0x2c')](/\u000A/g,''),_0x171736[_0x50eb('0xb')]=_0x171736[_0x50eb('0xb')]['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x50eb('0x2c')](/\u000A/g,''),''!=_0x171736[_0x50eb('0x1c')]&&''!=_0x171736[_0x50eb('0xb')]){_0x46d5f1['push']({'type':_0x50eb('0x2c'),'content':_0x5675e8(_0x34d782,'REPLACE_TEXT',['\x22'+_0x171736[_0x50eb('0xb')]+'\x22','\x22'+_0x171736[_0x50eb('0x1c')]+'\x22'])});continue;}if(null!=_0x171736[_0x50eb('0x1c')][_0x50eb('0xa')](/^ +$/)){_0x46d5f1[_0x50eb('0x1e')]({'type':_0x50eb('0xf'),'content':_0x5675e8(_0x34d782,_0x50eb('0x8'),_0x5675e8(_0x34d782,'ELEMENT_SPACE',_0x171736['add']['length']))});continue;}if(null!=_0x171736[_0x50eb('0xb')][_0x50eb('0xa')](/^ +$/)){_0x46d5f1['push']({'type':_0x50eb('0x30'),'content':_0x5675e8(_0x34d782,_0x50eb('0x27'),_0x5675e8(_0x34d782,_0x50eb('0x2'),_0x171736[_0x50eb('0xb')]['length']))});continue;}if(''!=_0x171736[_0x50eb('0x1c')]){_0x46d5f1['push']({'type':'insertion','content':_0x5675e8(_0x34d782,_0x50eb('0x8'),'\x22'+_0x171736['add']+'\x22')});continue;}_0x46d5f1[_0x50eb('0x1e')]({'type':'deletion','content':_0x5675e8(_0x34d782,_0x50eb('0x27'),'\x22'+_0x171736[_0x50eb('0xb')]+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46d5f1[_0x50eb('0x1e')]({'type':'insertion','content':_0x5675e8(_0x34d782,_0x50eb('0x8'),this['getItemLabel'](_0x171736['element'],_0x171736[_0x50eb('0x21')]))});continue;case'removeEmptyContainer':case _0x50eb('0x1d'):_0x46d5f1[_0x50eb('0x1e')]({'type':_0x50eb('0x30'),'content':_0x5675e8(_0x34d782,_0x50eb('0x27'),this['getItemLabel'](_0x171736['element'],_0x171736[_0x50eb('0x21')]))});continue;case'addContainer':_0x46d5f1[_0x50eb('0x1e')]({'type':_0x50eb('0xf'),'content':_0x5675e8(_0x34d782,_0x50eb('0x20'),this[_0x50eb('0x1f')](_0x171736[_0x50eb('0x22')],_0x171736[_0x50eb('0x21')]))});continue;case _0x50eb('0xe'):_0x46d5f1['push']({'type':_0x50eb('0x30'),'content':_0x5675e8(_0x34d782,_0x50eb('0x25'),this[_0x50eb('0x1f')](_0x171736['element'],_0x171736['quantity']))});continue;}_0x46d5f1['push'](_0x171736);}return _0x46d5f1;}}
23
+ const _0x586f=['$textProxy','addObject','EmptyContainer','name','type','*Merge:*\x20%0','replace','$1\x20$2','getDescriptions','text','element','elementStart','*Split:*\x20%0','pop','get','deletion','function','set','_addDescriptionItems','previousSibling','length','getFirstRange','Container','_locale','indexOf','remove','nextSibling','add','isEmpty','ELEMENT_SPACE','insertion','registerElementLabel','data','addEmptyContainer','registerDescriptionCallback','removeEmptyContainer','removeObject','checkChild','skip','quantity','normal','getWalker','_customCallbacks','$text','push','_itemLabels','Object','item','REPLACE_TEXT','softBreak','elementEnd','removeContainer','*Insert:*\x20%0','_itemLabelsCallbacks','matchingCallback','_schema','getItemLabel','_resolveDescriptionItems','match','isObject','*Remove:*\x20%0'];(function(_0x315f97,_0x586fd2){const _0x5d5c6b=function(_0x45fbe9){while(--_0x45fbe9){_0x315f97['push'](_0x315f97['shift']());}};_0x5d5c6b(++_0x586fd2);}(_0x586f,0x133));const _0x5d5c=function(_0x315f97,_0x586fd2){_0x315f97=_0x315f97-0x0;let _0x5d5c6b=_0x586f[_0x315f97];return _0x5d5c6b;};import{getTranslation as _0x16fe99}from'./utils/common-translations';import{priorities as _0x58092e,insertToPriorityArray as _0xbd56ec}from'ckeditor5/src/utils';export default class m{constructor(_0x25a439,_0x3777f5){this[_0x5d5c('0x28')]=[],this[_0x5d5c('0x2b')]=new Map(),this[_0x5d5c('0x33')]=[],this[_0x5d5c('0x35')]=_0x25a439,this[_0x5d5c('0x15')]=_0x3777f5;}[_0x5d5c('0x6')](_0xbcba4f){const _0x1fadd1=[];for(let _0x1d584c=0x0;_0x1d584c<_0xbcba4f[_0x5d5c('0x12')];_0x1d584c++){const _0x52e241=_0xbcba4f[_0x1d584c];if(!_0x52e241['isInContent'])continue;let _0x443f1a=!0x1;for(const _0x20591e of this[_0x5d5c('0x28')]){const _0x257fb2=_0x20591e(_0x52e241);if(_0x257fb2){_0x5d5c('0x2')in _0x257fb2&&_0x1fadd1[_0x5d5c('0x2a')](_0x257fb2),_0x443f1a=!0x0;break;}}if(!_0x443f1a){this[_0x5d5c('0x10')](_0x1fadd1,_0x52e241);const _0x4f9180=_0xbcba4f[_0x1d584c+0x1];if(_0x4f9180&&!_0x52e241['getFirstRange']()['end']['isEqual'](_0x4f9180[_0x5d5c('0x13')]()['start'])){const _0x4e1a7a=_0x1fadd1[_0x1fadd1[_0x5d5c('0x12')]-0x1],_0x42f7e2=_0x5d5c('0x1c')==_0x52e241[_0x5d5c('0x2')]?_0x5d5c('0x19'):'remove';_0x4e1a7a&&'text'==_0x4e1a7a[_0x5d5c('0x2')]&&(_0x4e1a7a[_0x42f7e2]+='\x0a');}}}return this[_0x5d5c('0x37')](_0x1fadd1);}[_0x5d5c('0x20')](_0x216606){this[_0x5d5c('0x28')][_0x5d5c('0x2a')](_0x216606);}[_0x5d5c('0x1d')](_0x590223,_0x1b59cf,_0x5a4b44=_0x58092e[_0x5d5c('0x26')]){_0x5d5c('0xe')==typeof _0x590223?_0xbd56ec(this[_0x5d5c('0x33')],{'matchingCallback':_0x590223,'label':_0x1b59cf,'priority':_0x5a4b44}):this[_0x5d5c('0x2b')][_0x5d5c('0xf')](_0x590223,_0x1b59cf);}[_0x5d5c('0x36')](_0x3803c7,_0x1b9804=0x1){let _0x4818de;for(const _0x6c678e of this[_0x5d5c('0x33')])if(_0x6c678e[_0x5d5c('0x34')](_0x3803c7)){_0x4818de=_0x6c678e['label'];break;}return _0x4818de||(_0x4818de=this[_0x5d5c('0x2b')][_0x5d5c('0xc')](_0x3803c7[_0x5d5c('0x1')])),_0x4818de?_0x4818de(_0x1b9804):0x1!==_0x1b9804?_0x1b9804+'\x20'+_0x3803c7[_0x5d5c('0x1')]+'s':''+_0x3803c7[_0x5d5c('0x1')];}[_0x5d5c('0x10')](_0x403519,_0x2ec7ea){const _0x1d9d1a=_0x2ec7ea[_0x5d5c('0x13')]()[_0x5d5c('0x27')](),_0x3ceabe=_0x5d5c('0x1c')==_0x2ec7ea['type']?'add':_0x5d5c('0x17');for(const _0x439316 of _0x1d9d1a){const _0x345004=_0x439316[_0x5d5c('0x2d')],_0x281e9c=_0x403519[_0x403519['length']-0x1];if(_0x345004['is'](_0x5d5c('0x3b')))_0x281e9c&&_0x281e9c[_0x5d5c('0x2')]['indexOf'](_0x5d5c('0x14'))>-0x1&&_0x403519[_0x5d5c('0xb')](),_0x281e9c&&_0x5d5c('0x7')==_0x281e9c[_0x5d5c('0x2')]?_0x281e9c[_0x3ceabe]+=_0x345004[_0x5d5c('0x1e')]:_0x403519[_0x5d5c('0x2a')]({'type':_0x5d5c('0x7'),'add':'add'==_0x3ceabe?_0x345004[_0x5d5c('0x1e')]:'','remove':_0x5d5c('0x17')==_0x3ceabe?_0x345004[_0x5d5c('0x1e')]:''});else{if(this['_schema'][_0x5d5c('0x39')](_0x345004)){const _0x42c484=_0x345004;if(_0x281e9c&&_0x281e9c['type'][_0x5d5c('0x16')](_0x5d5c('0x14'))>-0x1&&_0x403519['pop'](),_0x5d5c('0x30')==_0x439316[_0x5d5c('0x2')])continue;_0x281e9c&&_0x281e9c[_0x5d5c('0x2')]==_0x3ceabe+_0x5d5c('0x2c')&&_0x281e9c[_0x5d5c('0x8')][_0x5d5c('0x1')]==_0x42c484[_0x5d5c('0x1')]?_0x281e9c[_0x5d5c('0x25')]++:_0x403519[_0x5d5c('0x2a')]({'type':_0x3ceabe+'Object','element':_0x42c484,'quantity':0x1}),_0x1d9d1a[_0x5d5c('0x24')](_0x45c61f=>!(_0x5d5c('0x30')==_0x45c61f[_0x5d5c('0x2')]&&_0x45c61f[_0x5d5c('0x2d')]==_0x345004));}else{if(this[_0x5d5c('0x35')][_0x5d5c('0x23')](_0x345004,_0x5d5c('0x29'))||_0x345004['is'](_0x5d5c('0x8'),_0x5d5c('0x2f'))){const _0x340a2a=_0x345004;if(_0x5d5c('0x19')==_0x3ceabe&&_0x5d5c('0x9')==_0x439316[_0x5d5c('0x2')]||_0x5d5c('0x17')==_0x3ceabe&&_0x5d5c('0x30')==_0x439316[_0x5d5c('0x2')])continue;if(_0x281e9c&&-0x1==_0x281e9c['type'][_0x5d5c('0x16')]('Container')){_0x5d5c('0x7')==_0x281e9c[_0x5d5c('0x2')]&&(_0x281e9c[_0x3ceabe]+='\x0a');continue;}let _0x5cf0c2;if(_0x5cf0c2=_0x5d5c('0x19')==_0x3ceabe?_0x340a2a[_0x5d5c('0x18')]&&!this[_0x5d5c('0x35')]['isObject'](_0x340a2a['nextSibling'])?_0x340a2a['nextSibling']:null:_0x340a2a[_0x5d5c('0x11')]&&!this[_0x5d5c('0x35')][_0x5d5c('0x39')](_0x340a2a['previousSibling'])?_0x340a2a[_0x5d5c('0x11')]:null,_0x340a2a[_0x5d5c('0x1a')]||_0x5cf0c2&&_0x5cf0c2['isEmpty']){const _0xfb5a1d=_0x5cf0c2&&_0x5cf0c2[_0x5d5c('0x1a')]?_0x5cf0c2:_0x340a2a;_0x281e9c&&_0x281e9c[_0x5d5c('0x2')]==_0x3ceabe+_0x5d5c('0x0')&&_0x281e9c[_0x5d5c('0x8')]['name']==_0xfb5a1d[_0x5d5c('0x1')]?_0x281e9c[_0x5d5c('0x25')]++:_0x403519[_0x5d5c('0x2a')]({'type':_0x3ceabe+'EmptyContainer','element':_0xfb5a1d,'quantity':0x1});}else _0x403519['push']({'type':_0x3ceabe+'Container','element':_0x340a2a});}}}}}['_resolveDescriptionItems'](_0x303839){const _0x232eb8=this[_0x5d5c('0x15')],_0xa0e8e2=[];for(const _0x2cbd67 of _0x303839){switch(_0x2cbd67['type']){case _0x5d5c('0x7'):if(_0x2cbd67[_0x5d5c('0x19')]=_0x2cbd67['add'][_0x5d5c('0x4')](/(\S)\u000A+(\S)/g,_0x5d5c('0x5'))[_0x5d5c('0x4')](/\u000A/g,''),_0x2cbd67[_0x5d5c('0x17')]=_0x2cbd67['remove']['replace'](/(\S)\u000A+(\S)/g,_0x5d5c('0x5'))[_0x5d5c('0x4')](/\u000A/g,''),''!=_0x2cbd67[_0x5d5c('0x19')]&&''!=_0x2cbd67[_0x5d5c('0x17')]){_0xa0e8e2[_0x5d5c('0x2a')]({'type':_0x5d5c('0x4'),'content':_0x16fe99(_0x232eb8,_0x5d5c('0x2e'),['\x22'+_0x2cbd67[_0x5d5c('0x17')]+'\x22','\x22'+_0x2cbd67['add']+'\x22'])});continue;}if(null!=_0x2cbd67['add'][_0x5d5c('0x38')](/^ +$/)){_0xa0e8e2[_0x5d5c('0x2a')]({'type':_0x5d5c('0x1c'),'content':_0x16fe99(_0x232eb8,_0x5d5c('0x32'),_0x16fe99(_0x232eb8,_0x5d5c('0x1b'),_0x2cbd67['add'][_0x5d5c('0x12')]))});continue;}if(null!=_0x2cbd67[_0x5d5c('0x17')][_0x5d5c('0x38')](/^ +$/)){_0xa0e8e2[_0x5d5c('0x2a')]({'type':_0x5d5c('0xd'),'content':_0x16fe99(_0x232eb8,'*Remove:*\x20%0',_0x16fe99(_0x232eb8,_0x5d5c('0x1b'),_0x2cbd67[_0x5d5c('0x17')]['length']))});continue;}if(''!=_0x2cbd67[_0x5d5c('0x19')]){_0xa0e8e2[_0x5d5c('0x2a')]({'type':_0x5d5c('0x1c'),'content':_0x16fe99(_0x232eb8,_0x5d5c('0x32'),'\x22'+_0x2cbd67['add']+'\x22')});continue;}_0xa0e8e2[_0x5d5c('0x2a')]({'type':'deletion','content':_0x16fe99(_0x232eb8,_0x5d5c('0x3a'),'\x22'+_0x2cbd67[_0x5d5c('0x17')]+'\x22')});continue;case _0x5d5c('0x1f'):case _0x5d5c('0x3c'):_0xa0e8e2[_0x5d5c('0x2a')]({'type':_0x5d5c('0x1c'),'content':_0x16fe99(_0x232eb8,'*Insert:*\x20%0',this[_0x5d5c('0x36')](_0x2cbd67['element'],_0x2cbd67['quantity']))});continue;case _0x5d5c('0x21'):case _0x5d5c('0x22'):_0xa0e8e2[_0x5d5c('0x2a')]({'type':_0x5d5c('0xd'),'content':_0x16fe99(_0x232eb8,'*Remove:*\x20%0',this['getItemLabel'](_0x2cbd67[_0x5d5c('0x8')],_0x2cbd67[_0x5d5c('0x25')]))});continue;case'addContainer':_0xa0e8e2[_0x5d5c('0x2a')]({'type':_0x5d5c('0x1c'),'content':_0x16fe99(_0x232eb8,_0x5d5c('0xa'),this[_0x5d5c('0x36')](_0x2cbd67[_0x5d5c('0x8')],_0x2cbd67[_0x5d5c('0x25')]))});continue;case _0x5d5c('0x31'):_0xa0e8e2[_0x5d5c('0x2a')]({'type':_0x5d5c('0xd'),'content':_0x16fe99(_0x232eb8,_0x5d5c('0x3'),this['getItemLabel'](_0x2cbd67['element'],_0x2cbd67[_0x5d5c('0x25')]))});continue;}_0xa0e8e2[_0x5d5c('0x2a')](_0x2cbd67);}return _0xa0e8e2;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x415e=['addSuggestion','pluginName','Comments','addSuggestionData','adapter','editor','get','plugins'];(function(_0x5f3a43,_0x415e93){var _0x179539=function(_0x205320){while(--_0x205320){_0x5f3a43['push'](_0x5f3a43['shift']());}};_0x179539(++_0x415e93);}(_0x415e,0x1f4));var _0x1795=function(_0x5f3a43,_0x415e93){_0x5f3a43=_0x5f3a43-0x0;var _0x179539=_0x415e[_0x5f3a43];return _0x179539;};import{Plugin as _0x3f1bbf}from'ckeditor5/src/core';import _0x59d3f4 from'./trackchangesui';import _0x187a8 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x3f1bbf{static get['requires'](){return[_0x187a8,_0x59d3f4,_0x1795('0x6')];}static get[_0x1795('0x5')](){return'TrackChanges';}set[_0x1795('0x0')](_0x1a5ef4){this['editor'][_0x1795('0x3')]['get'](_0x187a8)['adapter']=_0x1a5ef4;}get[_0x1795('0x0')](){return this[_0x1795('0x1')][_0x1795('0x3')][_0x1795('0x2')](_0x187a8)['adapter'];}[_0x1795('0x4')](_0x1ad97c){return this[_0x1795('0x1')][_0x1795('0x3')][_0x1795('0x2')](_0x187a8)[_0x1795('0x7')](_0x1ad97c);}['getSuggestions']({skipNotAttached:_0x1ac849=!0x1,toJSON:_0x225368=!0x1}={}){return this[_0x1795('0x1')]['plugins'][_0x1795('0x2')](_0x187a8)['getSuggestions']({'skipNotAttached':_0x1ac849,'toJSON':_0x225368});}['getSuggestion'](_0x5b2f48){return this[_0x1795('0x1')][_0x1795('0x3')][_0x1795('0x2')](_0x187a8)['getSuggestion'](_0x5b2f48);}}
23
+ var _0x1744=['plugins','pluginName','getSuggestion','addSuggestion','editor','requires','getSuggestions','adapter','get'];(function(_0x4aa0d8,_0x1744fd){var _0x337699=function(_0x424c58){while(--_0x424c58){_0x4aa0d8['push'](_0x4aa0d8['shift']());}};_0x337699(++_0x1744fd);}(_0x1744,0x19d));var _0x3376=function(_0x4aa0d8,_0x1744fd){_0x4aa0d8=_0x4aa0d8-0x0;var _0x337699=_0x1744[_0x4aa0d8];return _0x337699;};import{Plugin as _0x16e608}from'ckeditor5/src/core';import _0x3901e7 from'./trackchangesui';import _0x331af3 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x16e608{static get[_0x3376('0x6')](){return[_0x331af3,_0x3901e7,'Comments'];}static get[_0x3376('0x2')](){return'TrackChanges';}set[_0x3376('0x8')](_0x9149f5){this[_0x3376('0x5')][_0x3376('0x1')][_0x3376('0x0')](_0x331af3)[_0x3376('0x8')]=_0x9149f5;}get[_0x3376('0x8')](){return this[_0x3376('0x5')][_0x3376('0x1')]['get'](_0x331af3)[_0x3376('0x8')];}[_0x3376('0x4')](_0x2fb2cf){return this[_0x3376('0x5')][_0x3376('0x1')][_0x3376('0x0')](_0x331af3)['addSuggestionData'](_0x2fb2cf);}[_0x3376('0x7')]({skipNotAttached:_0x409f28=!0x1,toJSON:_0x37d4cf=!0x1}={}){return this[_0x3376('0x5')][_0x3376('0x1')][_0x3376('0x0')](_0x331af3)[_0x3376('0x7')]({'skipNotAttached':_0x409f28,'toJSON':_0x37d4cf});}[_0x3376('0x3')](_0x18012a){return this[_0x3376('0x5')][_0x3376('0x1')]['get'](_0x331af3)[_0x3376('0x3')](_0x18012a);}}
@@ -26,12 +26,12 @@ export default class TrackChangesData extends Plugin {
26
26
  * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
27
27
  * @returns A promise which resolves with the output data.
28
28
  */
29
- getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string>;
29
+ getDataWithAcceptedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
30
30
  /**
31
31
  * Returns the editor data with all the suggestions discarded.
32
32
  *
33
33
  * @param options Options for {@link module:engine/controller/datacontroller~DataController#get}.
34
34
  * @returns A promise which resolves with the output data.
35
35
  */
36
- getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string>;
36
+ getDataWithDiscardedSuggestions(options: Record<string, unknown>): Promise<string | Record<string, string>>;
37
37
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ea6=['WebSocketGateway','getSuggestions','builtinPlugins','context','result','execute','requires','model','toolbar','includes','DocumentOutline','track-changes-data-invalid-editor-creator','WordCount','editorCreator','_context','addUser','config','has','filter','init','appendChild','div','TrackChangesEditing','Autosave','extraPlugins','string','plugins','end','pluginName','constructor','CommentsRepository','find','every','Pagination','map','get','destroy','from','acceptAllSuggestions','trackChangesData.editorCreator','editor','create','names','set','trackChangesData','data','users','RevisionTracker','addSuggestionData','tokenUrl','concat','push','initialData','getDataWithDiscardedSuggestions','discardAllSuggestions','getRootNames','useAnonymousUser','getUser','cloudServices','TrackChangesDataGetter'];(function(_0x3e30bd,_0x1ea6dc){const _0x3a0706=function(_0x56d66c){while(--_0x56d66c){_0x3e30bd['push'](_0x3e30bd['shift']());}};_0x3a0706(++_0x1ea6dc);}(_0x1ea6,0x169));const _0x3a07=function(_0x3e30bd,_0x1ea6dc){_0x3e30bd=_0x3e30bd-0x0;let _0x3a0706=_0x1ea6[_0x3e30bd];return _0x3a0706;};import{Plugin as _0x1c3ff8}from'ckeditor5/src/core';import{CKEditorError as _0x3ab1b2}from'ckeditor5/src/utils';import _0x15a69c from'./trackchangesediting';const C=[_0x3a07('0x33'),_0x3a07('0x2'),_0x3a07('0x7')],w=[_0x3a07('0x3b'),_0x3a07('0x2e'),_0x3a07('0x16'),_0x3a07('0xb'),_0x3a07('0x20'),_0x3a07('0x9')];export default class T extends _0x1c3ff8{static get['requires'](){return[_0x15a69c];}static get[_0x3a07('0x1b')](){return'TrackChangesData';}[_0x3a07('0x12')](){const _0x57d425=this[_0x3a07('0x27')];if(_0x57d425[_0x3a07('0xf')]['define'](_0x3a07('0x26'),_0x38e6b2=>_0x57d425[_0x3a07('0x1c')][_0x3a07('0x28')]('',_0x38e6b2)),'function'!=typeof _0x57d425[_0x3a07('0xf')][_0x3a07('0x22')](_0x3a07('0x2b'))['editorCreator'])throw new _0x3ab1b2(_0x3a07('0xa'));}['getDataWithAcceptedSuggestions'](_0x457354){return P(this[_0x3a07('0x27')],!0x0,_0x457354);}[_0x3a07('0x34')](_0x42a5c2){return P(this['editor'],!0x1,_0x42a5c2);}}class D extends _0x1c3ff8{static get[_0x3a07('0x1b')](){return _0x3a07('0x3a');}constructor(_0x70c1){super(_0x70c1),this[_0x3a07('0x3')]=_0x3a07('0x1a');}[_0x3a07('0x12')](){this['editor'][_0x3a07('0x19')][_0x3a07('0x22')](_0x3a07('0x1d'))['_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[_0x3a07('0x27')][_0x3a07('0x19')][_0x3a07('0x22')](_0x3a07('0x15'))['_adapter']=null;}}async function P(_0x98272d,_0xdd82ce,_0x43c61c){const _0x2982f4=function(_0x58288b){const _0x227f9d={};for(const _0x143ff2 of _0x58288b[_0x3a07('0xf')][_0x3a07('0x29')]())C['includes'](_0x143ff2)||(_0x227f9d[_0x143ff2]=_0x58288b[_0x3a07('0xf')][_0x3a07('0x22')](_0x143ff2));_0x227f9d[_0x3a07('0x39')]&&_0x227f9d[_0x3a07('0x39')]['tokenUrl']&&delete _0x227f9d[_0x3a07('0x39')][_0x3a07('0x30')];const _0x3ac8d2=_0x58288b[_0x3a07('0x1c')][_0x3a07('0x1')]||[],_0x484bc2=_0x227f9d['extraPlugins']||[];delete _0x227f9d[_0x3a07('0x17')];const _0x3dbcde=_0x58288b[_0x3a07('0xd')][_0x3a07('0xf')]['get'](_0x3a07('0x19'))||[],_0x555a99=_0x3ac8d2[_0x3a07('0x31')](_0x227f9d[_0x3a07('0x19')])['concat'](_0x484bc2)[_0x3a07('0x31')](_0x3dbcde)[_0x3a07('0x21')](_0x29aa8b=>_0x3a07('0x18')==typeof _0x29aa8b?_0x3ac8d2[_0x3a07('0x1e')](_0x2b8138=>_0x2b8138[_0x3a07('0x1b')]==_0x29aa8b):_0x29aa8b),_0x330321=Array[_0x3a07('0x24')](new Set(_0x555a99)),_0x597c80=new Map();return _0x227f9d[_0x3a07('0x19')]=_0x330321[_0x3a07('0x11')](_0x29d7d9=>v(_0x29d7d9,_0x597c80)),_0x227f9d[_0x3a07('0x19')]['push'](_0x15a69c),_0x227f9d[_0x3a07('0x19')][_0x3a07('0x32')](D),_0x227f9d;}(_0x98272d),_0x148e73=document['createDocumentFragment'](),_0x1d03ea=_0x98272d['config'][_0x3a07('0x22')]('trackChangesData')[_0x3a07('0xc')],_0xac95f1=await _0x1d03ea(_0x2982f4,()=>function(_0x177f5){const _0x8ccdbe=document['createElement'](_0x3a07('0x14'));return _0x177f5[_0x3a07('0x13')](_0x8ccdbe),_0x8ccdbe;}(_0x148e73));!function(_0x5621c6,_0x1694e4){const _0x50c835=_0x5621c6[_0x3a07('0x6')]['document'][_0x3a07('0x36')]()['reduce']((_0x28b3d2,_0x75dcee)=>(_0x28b3d2[_0x75dcee]=_0x5621c6[_0x3a07('0x2c')][_0x3a07('0x22')]({'rootName':_0x75dcee}),_0x28b3d2),{}),_0x456ec7=_0x5621c6['plugins']['get']('Users')[_0x3a07('0x2d')][_0x3a07('0x21')](_0xf169cf=>({'id':_0xf169cf['id'],'name':_0xf169cf['name']})),_0x2ce9d4=_0x5621c6[_0x3a07('0x19')][_0x3a07('0x22')]('TrackChangesEditing')[_0x3a07('0x0')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43ed0f=_0x1694e4[_0x3a07('0x19')][_0x3a07('0x22')]('Users'),_0x39d4fc=_0x1694e4[_0x3a07('0x19')][_0x3a07('0x22')](_0x3a07('0x15'));for(const _0x375466 of _0x456ec7)_0x43ed0f[_0x3a07('0x38')](_0x375466['id'])||_0x43ed0f[_0x3a07('0xe')](_0x375466);_0x43ed0f['me']||_0x43ed0f[_0x3a07('0x37')]();for(const _0x1b0270 of _0x2ce9d4)_0x39d4fc[_0x3a07('0x2f')](_0x1b0270);_0x1694e4[_0x3a07('0x2c')][_0x3a07('0x2a')](_0x50c835);}(_0x98272d,_0xac95f1),_0xac95f1[_0x3a07('0x4')](_0xdd82ce?_0x3a07('0x25'):_0x3a07('0x35'));const _0x4e84c7=_0xac95f1['data'][_0x3a07('0x22')](_0x43c61c);return await _0xac95f1[_0x3a07('0x23')](),_0x4e84c7;}function v(_0x58d0ab,_0x528485){const _0x47a982='function'==typeof _0x58d0ab?_0x58d0ab[_0x3a07('0x1b')]||_0x58d0ab['name']:_0x58d0ab;if(_0x528485[_0x3a07('0x10')](_0x47a982))return _0x528485[_0x3a07('0x22')](_0x47a982);if(_0x528485[_0x3a07('0x2a')](_0x47a982,!0x0),_0x47a982&&w[_0x3a07('0x8')](_0x47a982))return _0x528485[_0x3a07('0x2a')](_0x47a982,!0x1),!0x1;if(!_0x58d0ab[_0x3a07('0x5')])return _0x528485[_0x3a07('0x2a')](_0x47a982,!0x0),!0x0;const _0xda82ff=_0x58d0ab['requires'][_0x3a07('0x1f')](_0x3a812e=>v(_0x3a812e,_0x528485));return _0x528485[_0x3a07('0x2a')](_0x47a982,_0xda82ff),_0xda82ff;}
23
+ const _0x4c87=['div','_adapter','discardAllSuggestions','pluginName','editorCreator','model','trackChangesData.editorCreator','end','config','CommentsRepository','getSuggestions','acceptAllSuggestions','useAnonymousUser','TrackChangesDataGetter','getFullData','push','createDocumentFragment','Users','name','get','plugins','createElement','addUser','rootsAttributes','create','function','getRootsAttributes','document','editor','appendChild','destroy','getDataWithDiscardedSuggestions','getRootNames','users','trackChangesData','getDataWithAcceptedSuggestions','set','init','getUser','execute','data','reduce','track-changes-data-invalid-editor-creator','TrackChangesEditing'];(function(_0x105c61,_0x4c8714){const _0x2b0e4f=function(_0x24f1e3){while(--_0x24f1e3){_0x105c61['push'](_0x105c61['shift']());}};_0x2b0e4f(++_0x4c8714);}(_0x4c87,0xa8));const _0x2b0e=function(_0x105c61,_0x4c8714){_0x105c61=_0x105c61-0x0;let _0x2b0e4f=_0x4c87[_0x105c61];return _0x2b0e4f;};import{Plugin as _0x12d9b0}from'ckeditor5/src/core';import{CKEditorError as _0x383a1e}from'ckeditor5/src/utils';import _0x5d78a2 from'./trackchangesediting';import{sanitizeEditorConfig as _0x37e7ab}from'ckeditor5-collaboration/src/collaboration-core';const w=['Pagination'];export default class T extends _0x12d9b0{static get['requires'](){return[_0x5d78a2];}static get[_0x2b0e('0xb')](){return'TrackChangesData';}[_0x2b0e('0x1')](){const _0x470ed7=this['editor'];if(_0x470ed7[_0x2b0e('0x10')]['define'](_0x2b0e('0xe'),_0x195a78=>{const _0x3bfea3=_0x470ed7[_0x2b0e('0xd')][_0x2b0e('0x23')][_0x2b0e('0x28')]()['reduce']((_0x1c229b,_0x4c0b9d)=>(_0x1c229b[_0x4c0b9d]='',_0x1c229b),{});return _0x470ed7['constructor'][_0x2b0e('0x20')](_0x3bfea3,_0x195a78);}),_0x2b0e('0x21')!=typeof _0x470ed7[_0x2b0e('0x10')][_0x2b0e('0x1b')](_0x2b0e('0x2a'))[_0x2b0e('0xc')])throw new _0x383a1e(_0x2b0e('0x6'));}[_0x2b0e('0x2b')](_0x550f35){return v(this['editor'],!0x0,_0x550f35);}[_0x2b0e('0x27')](_0x2c17a2){return v(this['editor'],!0x1,_0x2c17a2);}}class P extends _0x12d9b0{static get[_0x2b0e('0xb')](){return _0x2b0e('0x15');}constructor(_0x3b71df){super(_0x3b71df),this['result']=_0x2b0e('0xf');}[_0x2b0e('0x1')](){this[_0x2b0e('0x24')][_0x2b0e('0x1c')][_0x2b0e('0x1b')](_0x2b0e('0x11'))[_0x2b0e('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['editor'][_0x2b0e('0x1c')][_0x2b0e('0x1b')](_0x2b0e('0x7'))[_0x2b0e('0x9')]=null;}}function D(_0x5a8351){return void 0x0!==_0x5a8351[_0x2b0e('0x22')];}async function v(_0x4db98f,_0x1c11bf,_0x1f3e4c){const _0x24a8f9=_0x37e7ab(_0x4db98f,w);_0x24a8f9[_0x2b0e('0x1c')][_0x2b0e('0x17')](_0x5d78a2,P),_0x24a8f9[_0x2b0e('0x1f')]=D(_0x4db98f)?_0x4db98f['getRootsAttributes']():void 0x0;const _0x26f609=document[_0x2b0e('0x18')](),_0x49f07b=_0x4db98f['config'][_0x2b0e('0x1b')](_0x2b0e('0x2a'))['editorCreator'],_0x1af812=await _0x49f07b(_0x24a8f9,()=>function(_0x3bd10c){const _0x2db4cf=document[_0x2b0e('0x1d')](_0x2b0e('0x8'));return _0x3bd10c[_0x2b0e('0x25')](_0x2db4cf),_0x2db4cf;}(_0x26f609));!function(_0x2f05a4,_0x3606cc){const _0x308a72=_0x2f05a4['model']['document'][_0x2b0e('0x28')]()[_0x2b0e('0x5')]((_0x3c8013,_0x5e9e3e)=>(_0x3c8013[_0x5e9e3e]=_0x2f05a4['data'][_0x2b0e('0x1b')]({'rootName':_0x5e9e3e}),_0x3c8013),{}),_0x99c6cb=_0x2f05a4[_0x2b0e('0x1c')][_0x2b0e('0x1b')]('Users')[_0x2b0e('0x29')]['map'](_0x275297=>({'id':_0x275297['id'],'name':_0x275297[_0x2b0e('0x1a')]})),_0x54a000=_0x2f05a4['plugins'][_0x2b0e('0x1b')](_0x2b0e('0x7'))[_0x2b0e('0x12')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xc0b936=_0x3606cc[_0x2b0e('0x1c')][_0x2b0e('0x1b')](_0x2b0e('0x19')),_0x428e8c=_0x3606cc[_0x2b0e('0x1c')][_0x2b0e('0x1b')](_0x2b0e('0x7'));for(const _0x352b5a of _0x99c6cb)_0xc0b936[_0x2b0e('0x2')](_0x352b5a['id'])||_0xc0b936[_0x2b0e('0x1e')](_0x352b5a);_0xc0b936['me']||_0xc0b936[_0x2b0e('0x14')]();for(const _0x403180 of _0x54a000)_0x428e8c['addSuggestionData'](_0x403180);_0x3606cc[_0x2b0e('0x4')][_0x2b0e('0x0')](_0x308a72);}(_0x4db98f,_0x1af812),_0x1af812[_0x2b0e('0x3')](_0x1c11bf?_0x2b0e('0x13'):_0x2b0e('0xa'));const _0x2964ab=D(_0x1af812)?_0x1af812[_0x2b0e('0x16')](_0x1f3e4c):_0x1af812[_0x2b0e('0x4')][_0x2b0e('0x1b')](_0x1f3e4c);return await _0x1af812[_0x2b0e('0x26')](),_0x2964ab;}