@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230830.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 (65) 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.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.d.ts +29 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x322f=['addRange','authoredAt','substr','removeMarkers','decorate','removeMarker','end','_onAccept','data','onAccept','_onDiscard','push','from','split','getAllAdjacentSuggestions','suggestion:','isMultiRange','discard','creator','commentThread','length','addMarkerName','start','getFirstRange','markers','change','@external','getMultiRangeId','get','size','isIntersecting','previous','_model','getRange','set','getMarkers','add','getItems','type','getRanges','getMarkerNames','attributes','getFirstMarker','map','subType','delete','filter','createdAt','_onAttributesChange','nodeBefore','toJSON','removeAttribute','onAttributesChange','hasComments','_markerNames','author','_saved','head','accept','next'];(function(_0x135b47,_0x322ff1){const _0x18cce8=function(_0x2757e9){while(--_0x2757e9){_0x135b47['push'](_0x135b47['shift']());}};_0x18cce8(++_0x322ff1);}(_0x322f,0x69));const _0x18cc=function(_0x135b47,_0x322ff1){_0x135b47=_0x135b47-0x0;let _0x18cce8=_0x322f[_0x135b47];return _0x18cce8;};import{Element as _0x2f7333}from'ckeditor5/src/engine';import{ObservableMixin as _0x16e30c,uid as _0x3608b8}from'ckeditor5/src/utils';import{cloneDeep as _0x2c8439,isEqual as _0x39cd98,set as _0x27926e,unset as _0x5113f8}from'lodash-es';export default class u extends _0x16e30c(){constructor(_0x5ee463,_0x422030){super(),this['id']=_0x422030['id'],this[_0x18cc('0x35')]=_0x422030[_0x18cc('0x35')],this[_0x18cc('0x3b')]=_0x422030[_0x18cc('0x3b')]||null,this[_0x18cc('0xa')]=_0x422030[_0x18cc('0xa')],this[_0x18cc('0x21')]=_0x422030[_0x18cc('0x21')]||_0x422030[_0x18cc('0xa')],this['isExternal']=Boolean(_0x422030[_0x18cc('0x38')]&&_0x422030['attributes'][_0x18cc('0x29')]),this[_0x18cc('0x17')]=null,this[_0x18cc('0x2f')]=_0x5ee463,this['_onAccept']=_0x422030[_0x18cc('0x18')],this[_0x18cc('0x19')]=_0x422030['onDiscard'],this[_0x18cc('0x3')]=_0x422030[_0x18cc('0x7')],this[_0x18cc('0x9')]=new Set(),this['createdAt']=null,this[_0x18cc('0x31')](_0x18cc('0x10'),null),this[_0x18cc('0x31')](_0x18cc('0x38'),_0x422030[_0x18cc('0x38')]||{}),this['set'](_0x18cc('0x2e'),null),this[_0x18cc('0x31')](_0x18cc('0xe'),null),this['set']('commentThread',null),this[_0x18cc('0x31')](_0x18cc('0xb'),!0x1),this['decorate'](_0x18cc('0xd')),this[_0x18cc('0x13')](_0x18cc('0x20'));}get[_0x18cc('0xc')](){let _0x52a7da=this;for(;_0x52a7da['previous'];)_0x52a7da=_0x52a7da[_0x18cc('0x2e')];return _0x52a7da;}get[_0x18cc('0x8')](){return!!this[_0x18cc('0x22')]&&this['commentThread'][_0x18cc('0x23')]>0x0;}get[_0x18cc('0x1f')](){if(0x0==this['_markerNames'][_0x18cc('0x2c')])return!0x1;return 0x6==Array['from'](this[_0x18cc('0x9')])[0x0][_0x18cc('0x1c')](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}[_0x18cc('0x24')](_0x457e4e){this[_0x18cc('0x9')][_0x18cc('0x33')](_0x457e4e);}[_0x18cc('0x37')](){return Array[_0x18cc('0x1b')](this[_0x18cc('0x9')]);}[_0x18cc('0x32')](){return this[_0x18cc('0x37')]()[_0x18cc('0x3a')](_0x2914da=>this['_model'][_0x18cc('0x27')][_0x18cc('0x2b')](_0x2914da))[_0x18cc('0x1')](_0x5c948a=>_0x5c948a);}['getFirstMarker'](){return this[_0x18cc('0x32')]()[0x0]||null;}['removeMarkers'](){this[_0x18cc('0x2f')][_0x18cc('0x28')](_0x395c1a=>{for(const _0x3c7465 of this['getMarkers']())_0x395c1a[_0x18cc('0x14')](_0x3c7465);}),this[_0x18cc('0x9')]['clear']();}[_0x18cc('0x14')](_0x1f2d15){this[_0x18cc('0x2f')][_0x18cc('0x28')](_0x1106bc=>{_0x1106bc[_0x18cc('0x14')](_0x1f2d15);}),this[_0x18cc('0x9')][_0x18cc('0x0')](_0x1f2d15);}[_0x18cc('0xf')](_0x2e3c0d){const _0xb36926=_0x18cc('0x1e')+this[_0x18cc('0x35')]+':'+this[_0x18cc('0x3b')]+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xb36926),this[_0x18cc('0x2f')][_0x18cc('0x28')](_0x3af1ed=>{_0x3af1ed['addMarker'](_0xb36926,{'range':_0x2e3c0d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x360071){for(const _0x5f1718 of this[_0x18cc('0x36')]())if(_0x5f1718[_0x18cc('0x2d')](_0x360071))return!0x0;return!0x1;}[_0x18cc('0x36')](){return this['getMarkers']()[_0x18cc('0x3a')](_0xfd5ced=>_0xfd5ced[_0x18cc('0x30')]());}[_0x18cc('0x34')](){return this[_0x18cc('0x36')]()['reduce']((_0x3d267b,_0x2b51d2)=>[..._0x3d267b,..._0x2b51d2[_0x18cc('0x34')]()],[]);}[_0x18cc('0x26')](){var _0x3b8e64;return(null===(_0x3b8e64=this[_0x18cc('0x39')]())||void 0x0===_0x3b8e64?void 0x0:_0x3b8e64['getRange']())||null;}['getContainedElement'](){const _0x210f7e=this[_0x18cc('0x36')]();if(0x1!=_0x210f7e[_0x18cc('0x23')])return null;const _0x54f12c=_0x210f7e[0x0],_0x26913=_0x54f12c[_0x18cc('0x25')]['nodeAfter'],_0x53bdf9=_0x54f12c[_0x18cc('0x15')][_0x18cc('0x4')];return _0x26913 instanceof _0x2f7333?_0x26913!=_0x53bdf9?null:_0x26913:null;}[_0x18cc('0xd')](){this[_0x18cc('0x16')](this[_0x18cc('0x36')](),this[_0x18cc('0x17')],this[_0x18cc('0x38')]),this['removeMarkers']();}[_0x18cc('0x20')](){this[_0x18cc('0x19')](this[_0x18cc('0x36')](),this[_0x18cc('0x17')],this[_0x18cc('0x38')]),this[_0x18cc('0x12')]();}[_0x18cc('0x1d')](){const _0x2e6b00=[];let _0x3c912f=this['head'];for(;_0x3c912f;)_0x2e6b00[_0x18cc('0x1a')](_0x3c912f),_0x3c912f=_0x3c912f[_0x18cc('0xe')];return _0x2e6b00;}['setAttribute'](_0x59f725,_0x474a88){const _0x2288b5=_0x2c8439(this[_0x18cc('0x38')]);_0x27926e(_0x2288b5,_0x59f725,_0x474a88),_0x39cd98(_0x2288b5,this[_0x18cc('0x38')])||(this[_0x18cc('0x38')]=_0x2288b5,this[_0x18cc('0x3')](_0x2288b5));}[_0x18cc('0x6')](_0x36981e){const _0x58df68=_0x2c8439(this['attributes']);_0x5113f8(_0x58df68,_0x36981e),_0x39cd98(_0x58df68,this[_0x18cc('0x38')])||(this[_0x18cc('0x38')]=_0x58df68,this[_0x18cc('0x3')](this['attributes']));}[_0x18cc('0x5')](){return{'id':this['id'],'type':this[_0x18cc('0x3b')]?this[_0x18cc('0x35')]+':'+this[_0x18cc('0x3b')]:this[_0x18cc('0x35')],'authorId':this['creator']['id'],'createdAt':this[_0x18cc('0x2')],'hasComments':this[_0x18cc('0x8')],'data':this[_0x18cc('0x17')],'attributes':this[_0x18cc('0x38')]};}static[_0x18cc('0x2a')](){return _0x3608b8()[_0x18cc('0x11')](0x1,0x5);}}
23
+ const _0x4a75=['accept','getRanges','end','delete','next','set','markers','addMarkerName','onAttributesChange','getRange','map','@external','_onAttributesChange','isIntersecting','addMarker','addRange','_markerNames','getAllAdjacentSuggestions','attributes','_onDiscard','data','hasComments','removeMarker','onAccept','removeAttribute','start','add','isIntersectingWithRange','createdAt','filter','getFirstRange','authoredAt','getItems','setAttribute','push','getFirstMarker','creator','author','commentThread','isInContent','nodeBefore','getMarkers','length','from','previous','discard','toJSON','suggestion:','change','head','clear','nodeAfter','subType','isMultiRange','_onAccept','getContainedElement','getMarkerNames','split','size','_isDataLoaded','_model','_saved','substr','type','getMultiRangeId','removeMarkers'];(function(_0x33cdda,_0x4a754c){const _0x146e11=function(_0x2dba0e){while(--_0x2dba0e){_0x33cdda['push'](_0x33cdda['shift']());}};_0x146e11(++_0x4a754c);}(_0x4a75,0x13d));const _0x146e=function(_0x33cdda,_0x4a754c){_0x33cdda=_0x33cdda-0x0;let _0x146e11=_0x4a75[_0x33cdda];return _0x146e11;};import{Element as _0x3b0c7f}from'ckeditor5/src/engine';import{ObservableMixin as _0x3e01ad,uid as _0x1783d0}from'ckeditor5/src/utils';import{cloneDeep as _0x2d19b5,isEqual as _0x4cd50d,set as _0x367a99,unset as _0xf9133e}from'lodash-es';export default class u extends _0x3e01ad(){constructor(_0x36cbc4,_0x27993a){super(),this[_0x146e('0x6')]=!0x1,this['id']=_0x27993a['id'],this['type']=_0x27993a['type'],this[_0x146e('0x41')]=_0x27993a[_0x146e('0x41')]||null,this['author']=_0x27993a[_0x146e('0x32')],this[_0x146e('0x31')]=_0x27993a[_0x146e('0x31')]||_0x27993a[_0x146e('0x32')],this['isExternal']=Boolean(_0x27993a[_0x146e('0x1f')]&&_0x27993a[_0x146e('0x1f')][_0x146e('0x18')]),this[_0x146e('0x21')]=null,this[_0x146e('0x7')]=_0x36cbc4,this[_0x146e('0x1')]=_0x27993a[_0x146e('0x24')],this[_0x146e('0x20')]=_0x27993a['onDiscard'],this['_onAttributesChange']=_0x27993a[_0x146e('0x15')],this[_0x146e('0x1d')]=new Set(),this['createdAt']=null,this[_0x146e('0x12')](_0x146e('0x2c'),null),this['set'](_0x146e('0x1f'),_0x27993a['attributes']||{}),this[_0x146e('0x12')](_0x146e('0x39'),null),this[_0x146e('0x12')](_0x146e('0x11'),null),this['set']('commentThread',null),this[_0x146e('0x12')](_0x146e('0x8'),!0x1),this['decorate'](_0x146e('0xd')),this['decorate'](_0x146e('0x3a'));}get['head'](){let _0x1c102e=this;for(;_0x1c102e[_0x146e('0x39')];)_0x1c102e=_0x1c102e[_0x146e('0x39')];return _0x1c102e;}get[_0x146e('0x22')](){return!!this['commentThread']&&this[_0x146e('0x33')]['length']>0x0;}get[_0x146e('0x0')](){if(0x0==this[_0x146e('0x1d')][_0x146e('0x5')])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0][_0x146e('0x4')](':')[_0x146e('0x37')];}get[_0x146e('0x34')](){return null!==this[_0x146e('0x30')]();}['addMarkerName'](_0x5ac08d){this[_0x146e('0x1d')][_0x146e('0x27')](_0x5ac08d);}['getMarkerNames'](){return Array[_0x146e('0x38')](this[_0x146e('0x1d')]);}[_0x146e('0x36')](){return this[_0x146e('0x3')]()[_0x146e('0x17')](_0x4f8642=>this[_0x146e('0x7')][_0x146e('0x13')]['get'](_0x4f8642))[_0x146e('0x2a')](_0x29fe2c=>_0x29fe2c);}[_0x146e('0x30')](){return this[_0x146e('0x36')]()[0x0]||null;}[_0x146e('0xc')](){this[_0x146e('0x7')]['change'](_0x391d91=>{for(const _0xb5ec40 of this[_0x146e('0x36')]())_0x391d91['removeMarker'](_0xb5ec40);}),this[_0x146e('0x1d')][_0x146e('0x3f')]();}[_0x146e('0x23')](_0x3cbbd7){this['_model'][_0x146e('0x3d')](_0x4a2193=>{_0x4a2193[_0x146e('0x23')](_0x3cbbd7);}),this[_0x146e('0x1d')][_0x146e('0x10')](_0x3cbbd7);}[_0x146e('0x1c')](_0x3a8db4){const _0x684990=_0x146e('0x3c')+this[_0x146e('0xa')]+':'+this[_0x146e('0x41')]+':'+this['id']+':'+this[_0x146e('0x31')]['id']+':'+u[_0x146e('0xb')]();this[_0x146e('0x14')](_0x684990),this[_0x146e('0x7')][_0x146e('0x3d')](_0xfef311=>{_0xfef311[_0x146e('0x1b')](_0x684990,{'range':_0x3a8db4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x146e('0x28')](_0x15b0f7){for(const _0x1cee8a of this[_0x146e('0xe')]())if(_0x1cee8a[_0x146e('0x1a')](_0x15b0f7))return!0x0;return!0x1;}[_0x146e('0xe')](){return this[_0x146e('0x36')]()[_0x146e('0x17')](_0x125fb3=>_0x125fb3[_0x146e('0x16')]());}[_0x146e('0x2d')](){return this[_0x146e('0xe')]()['reduce']((_0x5b71f5,_0x317bd4)=>[..._0x5b71f5,..._0x317bd4[_0x146e('0x2d')]()],[]);}[_0x146e('0x2b')](){var _0x35834a;return(null===(_0x35834a=this[_0x146e('0x30')]())||void 0x0===_0x35834a?void 0x0:_0x35834a[_0x146e('0x16')]())||null;}[_0x146e('0x2')](){const _0x19609f=this[_0x146e('0xe')]();if(0x1!=_0x19609f['length'])return null;const _0x3473ca=_0x19609f[0x0],_0xe6dd01=_0x3473ca[_0x146e('0x26')][_0x146e('0x40')],_0x4f56f1=_0x3473ca[_0x146e('0xf')][_0x146e('0x35')];return _0xe6dd01 instanceof _0x3b0c7f?_0xe6dd01!=_0x4f56f1?null:_0xe6dd01:null;}[_0x146e('0xd')](){this['_onAccept'](this[_0x146e('0xe')](),this[_0x146e('0x21')],this[_0x146e('0x1f')]),this[_0x146e('0xc')]();}[_0x146e('0x3a')](){this['_onDiscard'](this[_0x146e('0xe')](),this['data'],this['attributes']),this[_0x146e('0xc')]();}[_0x146e('0x1e')](){const _0x5d3083=[];let _0x280e7e=this[_0x146e('0x3e')];for(;_0x280e7e;)_0x5d3083[_0x146e('0x2f')](_0x280e7e),_0x280e7e=_0x280e7e[_0x146e('0x11')];return _0x5d3083;}[_0x146e('0x2e')](_0x5d4c07,_0x37fe80){const _0x40da1d=_0x2d19b5(this[_0x146e('0x1f')]);_0x367a99(_0x40da1d,_0x5d4c07,_0x37fe80),_0x4cd50d(_0x40da1d,this[_0x146e('0x1f')])||(this[_0x146e('0x1f')]=_0x40da1d,this['_onAttributesChange'](_0x40da1d));}[_0x146e('0x25')](_0x40ecdd){const _0xc357a2=_0x2d19b5(this['attributes']);_0xf9133e(_0xc357a2,_0x40ecdd),_0x4cd50d(_0xc357a2,this[_0x146e('0x1f')])||(this['attributes']=_0xc357a2,this[_0x146e('0x19')](this[_0x146e('0x1f')]));}[_0x146e('0x3b')](){return{'id':this['id'],'type':this[_0x146e('0x41')]?this[_0x146e('0xa')]+':'+this[_0x146e('0x41')]:this[_0x146e('0xa')],'authorId':this['creator']['id'],'createdAt':this[_0x146e('0x29')],'hasComments':this[_0x146e('0x22')],'data':this[_0x146e('0x21')],'attributes':this['attributes']};}static[_0x146e('0xb')](){return _0x1783d0()[_0x146e('0x9')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13dc=['_locale','name','matchingCallback','pop','_itemLabels','_itemLabelsCallbacks','EmptyContainer','REPLACE_TEXT','element','push','removeEmptyContainer','getDescriptions','isEmpty','set','addObject','label','isEqual','_resolveDescriptionItems','indexOf','*Merge:*\x20%0','*Split:*\x20%0','get','previousSibling','insertion','Container','addEmptyContainer','softBreak','isInContent','_customCallbacks','_schema','remove','*Insert:*\x20%0','checkChild','replace','getItemLabel','addContainer','nextSibling','type','$textProxy','match','ELEMENT_SPACE','elementStart','isObject','_addDescriptionItems','removeObject','$1\x20$2','registerDescriptionCallback','add','getFirstRange','text','start','*Remove:*\x20%0','elementEnd','quantity','deletion','length','Object'];(function(_0x2e756e,_0x13dc35){const _0x807769=function(_0x32e6cd){while(--_0x32e6cd){_0x2e756e['push'](_0x2e756e['shift']());}};_0x807769(++_0x13dc35);}(_0x13dc,0x127));const _0x8077=function(_0x2e756e,_0x13dc35){_0x2e756e=_0x2e756e-0x0;let _0x807769=_0x13dc[_0x2e756e];return _0x807769;};import{getTranslation as _0x580497}from'./utils/common-translations';import{priorities as _0x513c51,insertToPriorityArray as _0xed46d3}from'ckeditor5/src/utils';export default class m{constructor(_0x5e8f26,_0x164c1a){this['_customCallbacks']=[],this[_0x8077('0x33')]=new Map(),this[_0x8077('0x34')]=[],this[_0x8077('0x13')]=_0x5e8f26,this[_0x8077('0x2f')]=_0x164c1a;}[_0x8077('0x1')](_0x4c089b){const _0x44b9a0=[];for(let _0x182ec4=0x0;_0x182ec4<_0x4c089b[_0x8077('0x2d')];_0x182ec4++){const _0x166d1f=_0x4c089b[_0x182ec4];if(!_0x166d1f[_0x8077('0x11')])continue;let _0x1971ba=!0x1;for(const _0x4bbfe0 of this[_0x8077('0x12')]){const _0x3d9c48=_0x4bbfe0(_0x166d1f);if(_0x3d9c48){'type'in _0x3d9c48&&_0x44b9a0[_0x8077('0x38')](_0x3d9c48),_0x1971ba=!0x0;break;}}if(!_0x1971ba){this[_0x8077('0x21')](_0x44b9a0,_0x166d1f);const _0xc453de=_0x4c089b[_0x182ec4+0x1];if(_0xc453de&&!_0x166d1f['getFirstRange']()['end'][_0x8077('0x6')](_0xc453de[_0x8077('0x26')]()[_0x8077('0x28')])){const _0x3edad8=_0x44b9a0[_0x44b9a0[_0x8077('0x2d')]-0x1],_0x3494b8=_0x8077('0xd')==_0x166d1f[_0x8077('0x1b')]?'add':_0x8077('0x14');_0x3edad8&&'text'==_0x3edad8[_0x8077('0x1b')]&&(_0x3edad8[_0x3494b8]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x44b9a0);}[_0x8077('0x24')](_0x4a79b6){this[_0x8077('0x12')][_0x8077('0x38')](_0x4a79b6);}['registerElementLabel'](_0xc3d952,_0x3406e4,_0x4871fa=_0x513c51['normal']){'function'==typeof _0xc3d952?_0xed46d3(this[_0x8077('0x34')],{'matchingCallback':_0xc3d952,'label':_0x3406e4,'priority':_0x4871fa}):this['_itemLabels'][_0x8077('0x3')](_0xc3d952,_0x3406e4);}[_0x8077('0x18')](_0x4e6682,_0x2dcfc3=0x1){let _0x530046;for(const _0x83609a of this[_0x8077('0x34')])if(_0x83609a[_0x8077('0x31')](_0x4e6682)){_0x530046=_0x83609a[_0x8077('0x5')];break;}return _0x530046||(_0x530046=this[_0x8077('0x33')][_0x8077('0xb')](_0x4e6682[_0x8077('0x30')])),_0x530046?_0x530046(_0x2dcfc3):0x1!==_0x2dcfc3?_0x2dcfc3+'\x20'+_0x4e6682[_0x8077('0x30')]+'s':''+_0x4e6682[_0x8077('0x30')];}[_0x8077('0x21')](_0x4dda9d,_0x148258){const _0x3199a9=_0x148258[_0x8077('0x26')]()['getWalker'](),_0x12ddbb=_0x8077('0xd')==_0x148258[_0x8077('0x1b')]?_0x8077('0x25'):'remove';for(const _0x294586 of _0x3199a9){const _0x3cc1c3=_0x294586['item'],_0x4b20db=_0x4dda9d[_0x4dda9d[_0x8077('0x2d')]-0x1];if(_0x3cc1c3['is'](_0x8077('0x1c')))_0x4b20db&&_0x4b20db[_0x8077('0x1b')][_0x8077('0x8')](_0x8077('0xe'))>-0x1&&_0x4dda9d[_0x8077('0x32')](),_0x4b20db&&_0x8077('0x27')==_0x4b20db[_0x8077('0x1b')]?_0x4b20db[_0x12ddbb]+=_0x3cc1c3['data']:_0x4dda9d[_0x8077('0x38')]({'type':_0x8077('0x27'),'add':_0x8077('0x25')==_0x12ddbb?_0x3cc1c3['data']:'','remove':_0x8077('0x14')==_0x12ddbb?_0x3cc1c3['data']:''});else{if(this[_0x8077('0x13')][_0x8077('0x20')](_0x3cc1c3)){const _0x50ec34=_0x3cc1c3;if(_0x4b20db&&_0x4b20db[_0x8077('0x1b')]['indexOf']('Container')>-0x1&&_0x4dda9d['pop'](),_0x8077('0x2a')==_0x294586[_0x8077('0x1b')])continue;_0x4b20db&&_0x4b20db[_0x8077('0x1b')]==_0x12ddbb+_0x8077('0x2e')&&_0x4b20db[_0x8077('0x37')][_0x8077('0x30')]==_0x50ec34[_0x8077('0x30')]?_0x4b20db[_0x8077('0x2b')]++:_0x4dda9d[_0x8077('0x38')]({'type':_0x12ddbb+'Object','element':_0x50ec34,'quantity':0x1}),_0x3199a9['skip'](_0xf2d977=>!(_0x8077('0x2a')==_0xf2d977[_0x8077('0x1b')]&&_0xf2d977['item']==_0x3cc1c3));}else{if(this[_0x8077('0x13')][_0x8077('0x16')](_0x3cc1c3,'$text')||_0x3cc1c3['is'](_0x8077('0x37'),_0x8077('0x10'))){const _0x22b542=_0x3cc1c3;if(_0x8077('0x25')==_0x12ddbb&&_0x8077('0x1f')==_0x294586[_0x8077('0x1b')]||'remove'==_0x12ddbb&&_0x8077('0x2a')==_0x294586[_0x8077('0x1b')])continue;if(_0x4b20db&&-0x1==_0x4b20db['type'][_0x8077('0x8')]('Container')){_0x8077('0x27')==_0x4b20db[_0x8077('0x1b')]&&(_0x4b20db[_0x12ddbb]+='\x0a');continue;}let _0x4abce2;if(_0x4abce2=_0x8077('0x25')==_0x12ddbb?_0x22b542[_0x8077('0x1a')]&&!this[_0x8077('0x13')][_0x8077('0x20')](_0x22b542['nextSibling'])?_0x22b542[_0x8077('0x1a')]:null:_0x22b542[_0x8077('0xc')]&&!this[_0x8077('0x13')][_0x8077('0x20')](_0x22b542[_0x8077('0xc')])?_0x22b542[_0x8077('0xc')]:null,_0x22b542[_0x8077('0x2')]||_0x4abce2&&_0x4abce2[_0x8077('0x2')]){const _0xcc02=_0x4abce2&&_0x4abce2[_0x8077('0x2')]?_0x4abce2:_0x22b542;_0x4b20db&&_0x4b20db['type']==_0x12ddbb+'EmptyContainer'&&_0x4b20db['element'][_0x8077('0x30')]==_0xcc02[_0x8077('0x30')]?_0x4b20db[_0x8077('0x2b')]++:_0x4dda9d[_0x8077('0x38')]({'type':_0x12ddbb+_0x8077('0x35'),'element':_0xcc02,'quantity':0x1});}else _0x4dda9d['push']({'type':_0x12ddbb+_0x8077('0xe'),'element':_0x22b542});}}}}}[_0x8077('0x7')](_0x20a22b){const _0x3273a7=this[_0x8077('0x2f')],_0x106ef8=[];for(const _0x1bdaa7 of _0x20a22b){switch(_0x1bdaa7['type']){case'text':if(_0x1bdaa7[_0x8077('0x25')]=_0x1bdaa7[_0x8077('0x25')][_0x8077('0x17')](/(\S)\u000A+(\S)/g,_0x8077('0x23'))[_0x8077('0x17')](/\u000A/g,''),_0x1bdaa7['remove']=_0x1bdaa7[_0x8077('0x14')][_0x8077('0x17')](/(\S)\u000A+(\S)/g,_0x8077('0x23'))[_0x8077('0x17')](/\u000A/g,''),''!=_0x1bdaa7[_0x8077('0x25')]&&''!=_0x1bdaa7[_0x8077('0x14')]){_0x106ef8['push']({'type':'replace','content':_0x580497(_0x3273a7,_0x8077('0x36'),['\x22'+_0x1bdaa7['remove']+'\x22','\x22'+_0x1bdaa7[_0x8077('0x25')]+'\x22'])});continue;}if(null!=_0x1bdaa7['add'][_0x8077('0x1d')](/^ +$/)){_0x106ef8[_0x8077('0x38')]({'type':'insertion','content':_0x580497(_0x3273a7,_0x8077('0x15'),_0x580497(_0x3273a7,_0x8077('0x1e'),_0x1bdaa7[_0x8077('0x25')]['length']))});continue;}if(null!=_0x1bdaa7[_0x8077('0x14')]['match'](/^ +$/)){_0x106ef8[_0x8077('0x38')]({'type':'deletion','content':_0x580497(_0x3273a7,_0x8077('0x29'),_0x580497(_0x3273a7,'ELEMENT_SPACE',_0x1bdaa7[_0x8077('0x14')]['length']))});continue;}if(''!=_0x1bdaa7[_0x8077('0x25')]){_0x106ef8['push']({'type':_0x8077('0xd'),'content':_0x580497(_0x3273a7,_0x8077('0x15'),'\x22'+_0x1bdaa7[_0x8077('0x25')]+'\x22')});continue;}_0x106ef8[_0x8077('0x38')]({'type':_0x8077('0x2c'),'content':_0x580497(_0x3273a7,'*Remove:*\x20%0','\x22'+_0x1bdaa7['remove']+'\x22')});continue;case _0x8077('0xf'):case _0x8077('0x4'):_0x106ef8[_0x8077('0x38')]({'type':_0x8077('0xd'),'content':_0x580497(_0x3273a7,'*Insert:*\x20%0',this[_0x8077('0x18')](_0x1bdaa7['element'],_0x1bdaa7['quantity']))});continue;case _0x8077('0x0'):case _0x8077('0x22'):_0x106ef8[_0x8077('0x38')]({'type':'deletion','content':_0x580497(_0x3273a7,_0x8077('0x29'),this[_0x8077('0x18')](_0x1bdaa7['element'],_0x1bdaa7[_0x8077('0x2b')]))});continue;case _0x8077('0x19'):_0x106ef8[_0x8077('0x38')]({'type':_0x8077('0xd'),'content':_0x580497(_0x3273a7,_0x8077('0xa'),this[_0x8077('0x18')](_0x1bdaa7[_0x8077('0x37')],_0x1bdaa7[_0x8077('0x2b')]))});continue;case'removeContainer':_0x106ef8['push']({'type':'deletion','content':_0x580497(_0x3273a7,_0x8077('0x9'),this[_0x8077('0x18')](_0x1bdaa7[_0x8077('0x37')],_0x1bdaa7[_0x8077('0x2b')]))});continue;}_0x106ef8[_0x8077('0x38')](_0x1bdaa7);}return _0x106ef8;}}
23
+ const _0x1fcc=['data','skip','remove','matchingCallback','_schema','_locale','*Remove:*\x20%0','indexOf','_addDescriptionItems','item','isObject','isInContent','element','getDescriptions','_customCallbacks','ELEMENT_SPACE','_itemLabelsCallbacks','match','_itemLabels','$1\x20$2','label','text','REPLACE_TEXT','softBreak','registerElementLabel','add','addObject','isEqual','end','deletion','getFirstRange','$textProxy','start','replace','Object','previousSibling','isEmpty','length','removeEmptyContainer','getItemLabel','nextSibling','insertion','_resolveDescriptionItems','name','EmptyContainer','normal','quantity','registerDescriptionCallback','pop','elementStart','type','elementEnd','*Insert:*\x20%0','Container','function','push'];(function(_0x4925ff,_0x1fccb9){const _0x3bf85c=function(_0x3daede){while(--_0x3daede){_0x4925ff['push'](_0x4925ff['shift']());}};_0x3bf85c(++_0x1fccb9);}(_0x1fcc,0x197));const _0x3bf8=function(_0x4925ff,_0x1fccb9){_0x4925ff=_0x4925ff-0x0;let _0x3bf85c=_0x1fcc[_0x4925ff];return _0x3bf85c;};import{getTranslation as _0x263dc3}from'./utils/common-translations';import{priorities as _0x25a766,insertToPriorityArray as _0x3017b7}from'ckeditor5/src/utils';export default class m{constructor(_0x4a08c9,_0x58bd7a){this[_0x3bf8('0x37')]=[],this[_0x3bf8('0x3')]=new Map(),this[_0x3bf8('0x1')]=[],this['_schema']=_0x4a08c9,this[_0x3bf8('0x2e')]=_0x58bd7a;}[_0x3bf8('0x36')](_0x6c1682){const _0x400e2c=[];for(let _0x17c679=0x0;_0x17c679<_0x6c1682['length'];_0x17c679++){const _0x7765f8=_0x6c1682[_0x17c679];if(!_0x7765f8[_0x3bf8('0x34')])continue;let _0xb8a2fa=!0x1;for(const _0xf081e4 of this['_customCallbacks']){const _0x50b912=_0xf081e4(_0x7765f8);if(_0x50b912){_0x3bf8('0x23')in _0x50b912&&_0x400e2c[_0x3bf8('0x28')](_0x50b912),_0xb8a2fa=!0x0;break;}}if(!_0xb8a2fa){this[_0x3bf8('0x31')](_0x400e2c,_0x7765f8);const _0xd7bf2a=_0x6c1682[_0x17c679+0x1];if(_0xd7bf2a&&!_0x7765f8['getFirstRange']()[_0x3bf8('0xd')][_0x3bf8('0xc')](_0xd7bf2a['getFirstRange']()[_0x3bf8('0x11')])){const _0x287e71=_0x400e2c[_0x400e2c[_0x3bf8('0x16')]-0x1],_0x25520c=_0x3bf8('0x1a')==_0x7765f8[_0x3bf8('0x23')]?'add':_0x3bf8('0x2b');_0x287e71&&_0x3bf8('0x6')==_0x287e71[_0x3bf8('0x23')]&&(_0x287e71[_0x25520c]+='\x0a');}}}return this[_0x3bf8('0x1b')](_0x400e2c);}[_0x3bf8('0x20')](_0x2d4ec3){this['_customCallbacks'][_0x3bf8('0x28')](_0x2d4ec3);}[_0x3bf8('0x9')](_0x323598,_0x302b4e,_0x4086b9=_0x25a766[_0x3bf8('0x1e')]){_0x3bf8('0x27')==typeof _0x323598?_0x3017b7(this[_0x3bf8('0x1')],{'matchingCallback':_0x323598,'label':_0x302b4e,'priority':_0x4086b9}):this['_itemLabels']['set'](_0x323598,_0x302b4e);}[_0x3bf8('0x18')](_0x367d95,_0x32e0ec=0x1){let _0x38e912;for(const _0x331ae3 of this[_0x3bf8('0x1')])if(_0x331ae3[_0x3bf8('0x2c')](_0x367d95)){_0x38e912=_0x331ae3[_0x3bf8('0x5')];break;}return _0x38e912||(_0x38e912=this['_itemLabels']['get'](_0x367d95[_0x3bf8('0x1c')])),_0x38e912?_0x38e912(_0x32e0ec):0x1!==_0x32e0ec?_0x32e0ec+'\x20'+_0x367d95['name']+'s':''+_0x367d95[_0x3bf8('0x1c')];}['_addDescriptionItems'](_0x3a593c,_0x24be98){const _0x3ef00b=_0x24be98[_0x3bf8('0xf')]()['getWalker'](),_0x3ae1d1=_0x3bf8('0x1a')==_0x24be98[_0x3bf8('0x23')]?'add':_0x3bf8('0x2b');for(const _0x15bf84 of _0x3ef00b){const _0x145fd3=_0x15bf84[_0x3bf8('0x32')],_0x3723ce=_0x3a593c[_0x3a593c[_0x3bf8('0x16')]-0x1];if(_0x145fd3['is'](_0x3bf8('0x10')))_0x3723ce&&_0x3723ce[_0x3bf8('0x23')][_0x3bf8('0x30')](_0x3bf8('0x26'))>-0x1&&_0x3a593c[_0x3bf8('0x21')](),_0x3723ce&&_0x3bf8('0x6')==_0x3723ce['type']?_0x3723ce[_0x3ae1d1]+=_0x145fd3[_0x3bf8('0x29')]:_0x3a593c[_0x3bf8('0x28')]({'type':_0x3bf8('0x6'),'add':'add'==_0x3ae1d1?_0x145fd3[_0x3bf8('0x29')]:'','remove':_0x3bf8('0x2b')==_0x3ae1d1?_0x145fd3[_0x3bf8('0x29')]:''});else{if(this[_0x3bf8('0x2d')][_0x3bf8('0x33')](_0x145fd3)){const _0x20c5d2=_0x145fd3;if(_0x3723ce&&_0x3723ce[_0x3bf8('0x23')][_0x3bf8('0x30')](_0x3bf8('0x26'))>-0x1&&_0x3a593c[_0x3bf8('0x21')](),'elementEnd'==_0x15bf84[_0x3bf8('0x23')])continue;_0x3723ce&&_0x3723ce[_0x3bf8('0x23')]==_0x3ae1d1+_0x3bf8('0x13')&&_0x3723ce[_0x3bf8('0x35')][_0x3bf8('0x1c')]==_0x20c5d2[_0x3bf8('0x1c')]?_0x3723ce['quantity']++:_0x3a593c[_0x3bf8('0x28')]({'type':_0x3ae1d1+'Object','element':_0x20c5d2,'quantity':0x1}),_0x3ef00b[_0x3bf8('0x2a')](_0x3a16db=>!('elementEnd'==_0x3a16db['type']&&_0x3a16db[_0x3bf8('0x32')]==_0x145fd3));}else{if(this[_0x3bf8('0x2d')]['checkChild'](_0x145fd3,'$text')||_0x145fd3['is'](_0x3bf8('0x35'),_0x3bf8('0x8'))){const _0x35c5d3=_0x145fd3;if(_0x3bf8('0xa')==_0x3ae1d1&&_0x3bf8('0x22')==_0x15bf84[_0x3bf8('0x23')]||_0x3bf8('0x2b')==_0x3ae1d1&&_0x3bf8('0x24')==_0x15bf84[_0x3bf8('0x23')])continue;if(_0x3723ce&&-0x1==_0x3723ce[_0x3bf8('0x23')]['indexOf'](_0x3bf8('0x26'))){_0x3bf8('0x6')==_0x3723ce['type']&&(_0x3723ce[_0x3ae1d1]+='\x0a');continue;}let _0x25da29;if(_0x25da29='add'==_0x3ae1d1?_0x35c5d3[_0x3bf8('0x19')]&&!this[_0x3bf8('0x2d')][_0x3bf8('0x33')](_0x35c5d3[_0x3bf8('0x19')])?_0x35c5d3[_0x3bf8('0x19')]:null:_0x35c5d3['previousSibling']&&!this[_0x3bf8('0x2d')][_0x3bf8('0x33')](_0x35c5d3[_0x3bf8('0x14')])?_0x35c5d3[_0x3bf8('0x14')]:null,_0x35c5d3[_0x3bf8('0x15')]||_0x25da29&&_0x25da29[_0x3bf8('0x15')]){const _0x47537f=_0x25da29&&_0x25da29['isEmpty']?_0x25da29:_0x35c5d3;_0x3723ce&&_0x3723ce[_0x3bf8('0x23')]==_0x3ae1d1+_0x3bf8('0x1d')&&_0x3723ce[_0x3bf8('0x35')]['name']==_0x47537f[_0x3bf8('0x1c')]?_0x3723ce[_0x3bf8('0x1f')]++:_0x3a593c[_0x3bf8('0x28')]({'type':_0x3ae1d1+'EmptyContainer','element':_0x47537f,'quantity':0x1});}else _0x3a593c['push']({'type':_0x3ae1d1+'Container','element':_0x35c5d3});}}}}}[_0x3bf8('0x1b')](_0x21c5ab){const _0x317b4a=this['_locale'],_0x5ade0d=[];for(const _0x1ec861 of _0x21c5ab){switch(_0x1ec861[_0x3bf8('0x23')]){case _0x3bf8('0x6'):if(_0x1ec861[_0x3bf8('0xa')]=_0x1ec861[_0x3bf8('0xa')][_0x3bf8('0x12')](/(\S)\u000A+(\S)/g,_0x3bf8('0x4'))[_0x3bf8('0x12')](/\u000A/g,''),_0x1ec861['remove']=_0x1ec861[_0x3bf8('0x2b')][_0x3bf8('0x12')](/(\S)\u000A+(\S)/g,_0x3bf8('0x4'))['replace'](/\u000A/g,''),''!=_0x1ec861['add']&&''!=_0x1ec861['remove']){_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x12'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x7'),['\x22'+_0x1ec861['remove']+'\x22','\x22'+_0x1ec861[_0x3bf8('0xa')]+'\x22'])});continue;}if(null!=_0x1ec861[_0x3bf8('0xa')][_0x3bf8('0x2')](/^ +$/)){_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x1a'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x25'),_0x263dc3(_0x317b4a,_0x3bf8('0x0'),_0x1ec861[_0x3bf8('0xa')][_0x3bf8('0x16')]))});continue;}if(null!=_0x1ec861[_0x3bf8('0x2b')]['match'](/^ +$/)){_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0xe'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x2f'),_0x263dc3(_0x317b4a,_0x3bf8('0x0'),_0x1ec861[_0x3bf8('0x2b')]['length']))});continue;}if(''!=_0x1ec861[_0x3bf8('0xa')]){_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x1a'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x25'),'\x22'+_0x1ec861[_0x3bf8('0xa')]+'\x22')});continue;}_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0xe'),'content':_0x263dc3(_0x317b4a,'*Remove:*\x20%0','\x22'+_0x1ec861[_0x3bf8('0x2b')]+'\x22')});continue;case'addEmptyContainer':case _0x3bf8('0xb'):_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x1a'),'content':_0x263dc3(_0x317b4a,'*Insert:*\x20%0',this[_0x3bf8('0x18')](_0x1ec861[_0x3bf8('0x35')],_0x1ec861['quantity']))});continue;case _0x3bf8('0x17'):case'removeObject':_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0xe'),'content':_0x263dc3(_0x317b4a,_0x3bf8('0x2f'),this[_0x3bf8('0x18')](_0x1ec861[_0x3bf8('0x35')],_0x1ec861['quantity']))});continue;case'addContainer':_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0x1a'),'content':_0x263dc3(_0x317b4a,'*Split:*\x20%0',this[_0x3bf8('0x18')](_0x1ec861['element'],_0x1ec861[_0x3bf8('0x1f')]))});continue;case'removeContainer':_0x5ade0d[_0x3bf8('0x28')]({'type':_0x3bf8('0xe'),'content':_0x263dc3(_0x317b4a,'*Merge:*\x20%0',this[_0x3bf8('0x18')](_0x1ec861[_0x3bf8('0x35')],_0x1ec861[_0x3bf8('0x1f')]))});continue;}_0x5ade0d['push'](_0x1ec861);}return _0x5ade0d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5d05=['editor','TrackChanges','adapter','addSuggestion','getSuggestion','get','requires','plugins','getSuggestions','addSuggestionData'];(function(_0x174c21,_0x5d054f){var _0x36763a=function(_0x4f8b76){while(--_0x4f8b76){_0x174c21['push'](_0x174c21['shift']());}};_0x36763a(++_0x5d054f);}(_0x5d05,0xc5));var _0x3676=function(_0x174c21,_0x5d054f){_0x174c21=_0x174c21-0x0;var _0x36763a=_0x5d05[_0x174c21];return _0x36763a;};import{Plugin as _0x5e7348}from'ckeditor5/src/core';import _0x10957c from'./trackchangesui';import _0x889be4 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x5e7348{static get[_0x3676('0x9')](){return[_0x889be4,_0x10957c,'Comments'];}static get['pluginName'](){return _0x3676('0x4');}set[_0x3676('0x5')](_0x46b556){this[_0x3676('0x3')][_0x3676('0x0')]['get'](_0x889be4)['adapter']=_0x46b556;}get[_0x3676('0x5')](){return this[_0x3676('0x3')][_0x3676('0x0')][_0x3676('0x8')](_0x889be4)[_0x3676('0x5')];}[_0x3676('0x6')](_0x1de728){return this[_0x3676('0x3')]['plugins'][_0x3676('0x8')](_0x889be4)[_0x3676('0x2')](_0x1de728);}[_0x3676('0x1')]({skipNotAttached:_0x9d4405=!0x1,toJSON:_0x510f42=!0x1}={}){return this['editor'][_0x3676('0x0')][_0x3676('0x8')](_0x889be4)[_0x3676('0x1')]({'skipNotAttached':_0x9d4405,'toJSON':_0x510f42});}['getSuggestion'](_0x1e529c){return this[_0x3676('0x3')][_0x3676('0x0')][_0x3676('0x8')](_0x889be4)[_0x3676('0x7')](_0x1e529c);}}
23
+ var _0x1e73=['getSuggestions','TrackChanges','plugins','addSuggestionData','adapter','get','getSuggestion','editor','Comments','requires','addSuggestion','pluginName'];(function(_0x2dc8b4,_0x1e73ca){var _0x487fe8=function(_0x453d9a){while(--_0x453d9a){_0x2dc8b4['push'](_0x2dc8b4['shift']());}};_0x487fe8(++_0x1e73ca);}(_0x1e73,0x124));var _0x487f=function(_0x2dc8b4,_0x1e73ca){_0x2dc8b4=_0x2dc8b4-0x0;var _0x487fe8=_0x1e73[_0x2dc8b4];return _0x487fe8;};import{Plugin as _0x44cf21}from'ckeditor5/src/core';import _0x2c0692 from'./trackchangesui';import _0x583cb0 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x44cf21{static get[_0x487f('0x5')](){return[_0x583cb0,_0x2c0692,_0x487f('0x4')];}static get[_0x487f('0x7')](){return _0x487f('0x9');}set[_0x487f('0x0')](_0x2c410e){this['editor']['plugins'][_0x487f('0x1')](_0x583cb0)[_0x487f('0x0')]=_0x2c410e;}get[_0x487f('0x0')](){return this[_0x487f('0x3')][_0x487f('0xa')][_0x487f('0x1')](_0x583cb0)[_0x487f('0x0')];}[_0x487f('0x6')](_0x469d59){return this['editor'][_0x487f('0xa')][_0x487f('0x1')](_0x583cb0)[_0x487f('0xb')](_0x469d59);}[_0x487f('0x8')]({skipNotAttached:_0xe0d294=!0x1,toJSON:_0xb79a05=!0x1}={}){return this[_0x487f('0x3')]['plugins'][_0x487f('0x1')](_0x583cb0)[_0x487f('0x8')]({'skipNotAttached':_0xe0d294,'toJSON':_0xb79a05});}[_0x487f('0x2')](_0x13339d){return this['editor'][_0x487f('0xa')][_0x487f('0x1')](_0x583cb0)[_0x487f('0x2')](_0x13339d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3451=['editorCreator','model','track-changes-data-invalid-editor-creator','name','TrackChangesDataGetter','define','end','addUser','reduce','addSuggestionData','CommentsRepository','_adapter','pluginName','push','create','acceptAllSuggestions','result','createElement','discardAllSuggestions','getRootNames','plugins','getSuggestions','get','useAnonymousUser','getUser','config','trackChangesData.editorCreator','Pagination','div','constructor','init','getRootsAttributes','getDataWithDiscardedSuggestions','trackChangesData','data','rootsAttributes','Users','TrackChangesEditing','set','execute','editor','requires','getDataWithAcceptedSuggestions','getFullData','users'];(function(_0x8b7362,_0x3451f6){const _0x1c2c4e=function(_0x3eeb9e){while(--_0x3eeb9e){_0x8b7362['push'](_0x8b7362['shift']());}};_0x1c2c4e(++_0x3451f6);}(_0x3451,0x88));const _0x1c2c=function(_0x8b7362,_0x3451f6){_0x8b7362=_0x8b7362-0x0;let _0x1c2c4e=_0x3451[_0x8b7362];return _0x1c2c4e;};import{Plugin as _0x1ab105}from'ckeditor5/src/core';import{CKEditorError as _0x502228}from'ckeditor5/src/utils';import _0x399c9f from'./trackchangesediting';import{sanitizeEditorConfig as _0x1d4537}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x1c2c('0x1a')];export default class T extends _0x1ab105{static get[_0x1c2c('0x28')](){return[_0x399c9f];}static get[_0x1c2c('0xb')](){return'TrackChangesData';}['init'](){const _0x5cfd10=this[_0x1c2c('0x27')];if(_0x5cfd10[_0x1c2c('0x18')][_0x1c2c('0x4')](_0x1c2c('0x19'),_0xf5b884=>{const _0x4908d0=_0x5cfd10[_0x1c2c('0x0')]['document'][_0x1c2c('0x12')]()[_0x1c2c('0x7')]((_0x5610df,_0x171e8a)=>(_0x5610df[_0x171e8a]='',_0x5610df),{});return _0x5cfd10[_0x1c2c('0x1c')][_0x1c2c('0xd')](_0x4908d0,_0xf5b884);}),'function'!=typeof _0x5cfd10[_0x1c2c('0x18')]['get'](_0x1c2c('0x20'))[_0x1c2c('0x2c')])throw new _0x502228(_0x1c2c('0x1'));}[_0x1c2c('0x29')](_0x49252c){return v(this[_0x1c2c('0x27')],!0x0,_0x49252c);}[_0x1c2c('0x1f')](_0x2c9324){return v(this[_0x1c2c('0x27')],!0x1,_0x2c9324);}}class P extends _0x1ab105{static get[_0x1c2c('0xb')](){return _0x1c2c('0x3');}constructor(_0x3469cf){super(_0x3469cf),this[_0x1c2c('0xf')]=_0x1c2c('0x5');}[_0x1c2c('0x1d')](){this[_0x1c2c('0x27')][_0x1c2c('0x13')][_0x1c2c('0x15')](_0x1c2c('0x9'))[_0x1c2c('0xa')]={'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[_0x1c2c('0x27')]['plugins'][_0x1c2c('0x15')]('TrackChangesEditing')['_adapter']=null;}}function D(_0x201f40){return void 0x0!==_0x201f40[_0x1c2c('0x1e')];}async function v(_0x55d1f0,_0x32f0ba,_0x592764){const _0x5e2ed8=_0x1d4537(_0x55d1f0,w);_0x5e2ed8[_0x1c2c('0x13')][_0x1c2c('0xc')](_0x399c9f,P),_0x5e2ed8[_0x1c2c('0x22')]=D(_0x55d1f0)?_0x55d1f0[_0x1c2c('0x1e')]():void 0x0;const _0x7677bc=document['createDocumentFragment'](),_0x3d78ad=_0x55d1f0[_0x1c2c('0x18')][_0x1c2c('0x15')]('trackChangesData')['editorCreator'],_0x1db1d2=await _0x3d78ad(_0x5e2ed8,()=>function(_0x27721a){const _0x3dc1cc=document[_0x1c2c('0x10')](_0x1c2c('0x1b'));return _0x27721a['appendChild'](_0x3dc1cc),_0x3dc1cc;}(_0x7677bc));!function(_0x445c8e,_0x47e4cd){const _0xceb00b=_0x445c8e[_0x1c2c('0x0')]['document'][_0x1c2c('0x12')]()[_0x1c2c('0x7')]((_0x77e689,_0x4173e6)=>(_0x77e689[_0x4173e6]=_0x445c8e[_0x1c2c('0x21')][_0x1c2c('0x15')]({'rootName':_0x4173e6}),_0x77e689),{}),_0xba562e=_0x445c8e['plugins'][_0x1c2c('0x15')](_0x1c2c('0x23'))[_0x1c2c('0x2b')]['map'](_0x3c2fdd=>({'id':_0x3c2fdd['id'],'name':_0x3c2fdd[_0x1c2c('0x2')]})),_0x2feb74=_0x445c8e['plugins'][_0x1c2c('0x15')](_0x1c2c('0x24'))[_0x1c2c('0x14')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ff9c9=_0x47e4cd['plugins'][_0x1c2c('0x15')](_0x1c2c('0x23')),_0x2fb422=_0x47e4cd[_0x1c2c('0x13')][_0x1c2c('0x15')](_0x1c2c('0x24'));for(const _0x29fc51 of _0xba562e)_0x1ff9c9[_0x1c2c('0x17')](_0x29fc51['id'])||_0x1ff9c9[_0x1c2c('0x6')](_0x29fc51);_0x1ff9c9['me']||_0x1ff9c9[_0x1c2c('0x16')]();for(const _0x39c044 of _0x2feb74)_0x2fb422[_0x1c2c('0x8')](_0x39c044);_0x47e4cd['data'][_0x1c2c('0x25')](_0xceb00b);}(_0x55d1f0,_0x1db1d2),_0x1db1d2[_0x1c2c('0x26')](_0x32f0ba?_0x1c2c('0xe'):_0x1c2c('0x11'));const _0x2b3c44=D(_0x1db1d2)?_0x1db1d2[_0x1c2c('0x2a')](_0x592764):_0x1db1d2[_0x1c2c('0x21')][_0x1c2c('0x15')](_0x592764);return await _0x1db1d2['destroy'](),_0x2b3c44;}
23
+ const _0x3600=['Users','requires','end','plugins','getRootNames','addSuggestionData','getRootsAttributes','trackChangesData','discardAllSuggestions','addUser','getSuggestions','CommentsRepository','document','div','constructor','users','set','createDocumentFragment','result','pluginName','rootsAttributes','reduce','editor','get','map','define','track-changes-data-invalid-editor-creator','execute','function','useAnonymousUser','TrackChangesEditing','acceptAllSuggestions','create','_adapter','appendChild','data','model','config','trackChangesData.editorCreator','init','push','createElement','Pagination','editorCreator'];(function(_0x13a75c,_0x3600ca){const _0x26018b=function(_0x29f980){while(--_0x29f980){_0x13a75c['push'](_0x13a75c['shift']());}};_0x26018b(++_0x3600ca);}(_0x3600,0xb6));const _0x2601=function(_0x13a75c,_0x3600ca){_0x13a75c=_0x13a75c-0x0;let _0x26018b=_0x3600[_0x13a75c];return _0x26018b;};import{Plugin as _0x249dd3}from'ckeditor5/src/core';import{CKEditorError as _0x22c5ca}from'ckeditor5/src/utils';import _0x38aefa from'./trackchangesediting';import{sanitizeEditorConfig as _0x452fe3}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x2601('0x24')];export default class T extends _0x249dd3{static get[_0x2601('0x27')](){return[_0x38aefa];}static get['pluginName'](){return'TrackChangesData';}[_0x2601('0x21')](){const _0x2c0021=this[_0x2601('0x10')];if(_0x2c0021[_0x2601('0x1f')][_0x2601('0x13')](_0x2601('0x20'),_0x11ece7=>{const _0xb5cfe9=_0x2c0021[_0x2601('0x1e')]['document'][_0x2601('0x2a')]()[_0x2601('0xf')]((_0x3a191a,_0x3a4dcf)=>(_0x3a191a[_0x3a4dcf]='',_0x3a191a),{});return _0x2c0021[_0x2601('0x8')][_0x2601('0x1a')](_0xb5cfe9,_0x11ece7);}),_0x2601('0x16')!=typeof _0x2c0021['config'][_0x2601('0x11')](_0x2601('0x1'))['editorCreator'])throw new _0x22c5ca(_0x2601('0x14'));}['getDataWithAcceptedSuggestions'](_0x4370c0){return v(this[_0x2601('0x10')],!0x0,_0x4370c0);}['getDataWithDiscardedSuggestions'](_0x248140){return v(this[_0x2601('0x10')],!0x1,_0x248140);}}class P extends _0x249dd3{static get[_0x2601('0xd')](){return'TrackChangesDataGetter';}constructor(_0x5950d3){super(_0x5950d3),this[_0x2601('0xc')]=_0x2601('0x28');}[_0x2601('0x21')](){this[_0x2601('0x10')][_0x2601('0x29')][_0x2601('0x11')](_0x2601('0x5'))[_0x2601('0x1b')]={'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'][_0x2601('0x29')][_0x2601('0x11')]('TrackChangesEditing')[_0x2601('0x1b')]=null;}}function D(_0x3749fd){return void 0x0!==_0x3749fd[_0x2601('0x0')];}async function v(_0x32c256,_0x43a395,_0x204377){const _0x31ab53=_0x452fe3(_0x32c256,w);_0x31ab53[_0x2601('0x29')][_0x2601('0x22')](_0x38aefa,P),_0x31ab53[_0x2601('0xe')]=D(_0x32c256)?_0x32c256['getRootsAttributes']():void 0x0;const _0x40ebb6=document[_0x2601('0xb')](),_0x2fc37b=_0x32c256['config']['get']('trackChangesData')[_0x2601('0x25')],_0x6f89b8=await _0x2fc37b(_0x31ab53,()=>function(_0x46c53d){const _0x1a81f6=document[_0x2601('0x23')](_0x2601('0x7'));return _0x46c53d[_0x2601('0x1c')](_0x1a81f6),_0x1a81f6;}(_0x40ebb6));!function(_0x56cc4a,_0x2a2f75){const _0x5cb6ad=_0x56cc4a[_0x2601('0x1e')][_0x2601('0x6')][_0x2601('0x2a')]()[_0x2601('0xf')]((_0x9025cf,_0x12a74a)=>(_0x9025cf[_0x12a74a]=_0x56cc4a['data'][_0x2601('0x11')]({'rootName':_0x12a74a}),_0x9025cf),{}),_0x44ac51=_0x56cc4a['plugins']['get'](_0x2601('0x26'))[_0x2601('0x9')][_0x2601('0x12')](_0x1a4fa7=>({'id':_0x1a4fa7['id'],'name':_0x1a4fa7['name']})),_0xc385a=_0x56cc4a['plugins']['get'](_0x2601('0x18'))[_0x2601('0x4')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56cc3b=_0x2a2f75[_0x2601('0x29')]['get'](_0x2601('0x26')),_0x34b4c1=_0x2a2f75['plugins'][_0x2601('0x11')](_0x2601('0x18'));for(const _0x19ee14 of _0x44ac51)_0x56cc3b['getUser'](_0x19ee14['id'])||_0x56cc3b[_0x2601('0x3')](_0x19ee14);_0x56cc3b['me']||_0x56cc3b[_0x2601('0x17')]();for(const _0x4d295d of _0xc385a)_0x34b4c1[_0x2601('0x2b')](_0x4d295d);_0x2a2f75[_0x2601('0x1d')][_0x2601('0xa')](_0x5cb6ad);}(_0x32c256,_0x6f89b8),_0x6f89b8[_0x2601('0x15')](_0x43a395?_0x2601('0x19'):_0x2601('0x2'));const _0x39ff3c=D(_0x6f89b8)?_0x6f89b8['getFullData'](_0x204377):_0x6f89b8[_0x2601('0x1d')][_0x2601('0x11')](_0x204377);return await _0x6f89b8['destroy'](),_0x39ff3c;}
@@ -159,6 +159,10 @@ export default class TrackChangesEditing extends Plugin {
159
159
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
160
160
  * this method are bound with one undo step.
161
161
  *
162
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
163
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
164
+ * the existing suggestion).
165
+ *
162
166
  * See {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
163
167
  * features guide} to learn more about enabling your feature in the suggestion mode.
164
168
  *
@@ -189,12 +193,16 @@ export default class TrackChangesEditing extends Plugin {
189
193
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
190
194
  * this method are bound with one undo step.
191
195
  *
196
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
197
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
198
+ * the existing suggestion).
199
+ *
192
200
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
193
201
  * features} guide to learn more about enabling your feature in the suggestion mode.
194
202
  *
195
203
  * @param ranges Ranges which got inserted.
196
204
  * @param subType Suggestion {@link module:track-changes/suggestion~Suggestion#subType} to set. Only suggestions
197
- * with the same sub type will be joined.
205
+ * with the same subtype will be joined.
198
206
  * @param attributes Custom suggestion attributes.
199
207
  * @returns {module:track-changes/suggestion~Suggestion} Suggestion created or expanded as a result of execution of this method.
200
208
  */
@@ -228,6 +236,10 @@ export default class TrackChangesEditing extends Plugin {
228
236
  * If an inline format suggestion is marked inside the local user's insertion suggestion, the change is applied directly
229
237
  * and no suggestion is created. This supports partial intersections with insertion suggestions.
230
238
  *
239
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
240
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
241
+ * the existing suggestion).
242
+ *
231
243
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
232
244
  * features} guide to learn more about enabling your feature in the suggestion mode.
233
245
  *
@@ -301,6 +313,10 @@ export default class TrackChangesEditing extends Plugin {
301
313
  * and no suggestion is created. Note that this does not support partial intersections with insertion suggestions
302
314
  * (as opposed to inline format suggestions).
303
315
  *
316
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
317
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
318
+ * the existing suggestion).
319
+ *
304
320
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
305
321
  * features} guide to learn more about enabling your feature in the suggestion mode.
306
322
  *
@@ -336,6 +352,10 @@ export default class TrackChangesEditing extends Plugin {
336
352
  * and no suggestion is created. Note that this does not support partial intersections with insertion suggestions
337
353
  * (as opposed to inline format suggestions).
338
354
  *
355
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
356
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
357
+ * the existing suggestion).
358
+ *
339
359
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
340
360
  * features} guide to learn more about enabling your feature in the suggestion mode.
341
361
  *
@@ -369,6 +389,10 @@ export default class TrackChangesEditing extends Plugin {
369
389
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
370
390
  * this method are bound with one undo step.
371
391
  *
392
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
393
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
394
+ * the existing suggestion).
395
+ *
372
396
  * See {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
373
397
  * features guide} to learn more about enabling your feature in the suggestion mode.
374
398
  *
@@ -400,6 +424,10 @@ export default class TrackChangesEditing extends Plugin {
400
424
  * Always call this method inside `model.change()` or `model.enqueueChange()` block to ensure that all operations performed by
401
425
  * this method are bound with one undo step.
402
426
  *
427
+ * If possible, the new suggestion will be joined with an existing suggestion (of the same type). This happens only if
428
+ * the suggestions are created by the same user and have similar attributes (i.e. passed `attributes` do not conflict with
429
+ * the existing suggestion).
430
+ *
403
431
  * See the {@glink features/collaboration/track-changes/track-changes-custom-features Integrating track changes with custom
404
432
  * features} guide to learn more about enabling your feature in the suggestion mode.
405
433
  *