@ckeditor/ckeditor5-track-changes 29.0.0 → 31.0.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 (61) hide show
  1. package/lang/translations/de.po +3 -3
  2. package/lang/translations/gl.po +3 -3
  3. package/lang/translations/it.po +3 -3
  4. package/lang/translations/sr-latn.po +1 -1
  5. package/lang/translations/sr.po +1 -1
  6. package/package.json +7 -7
  7. package/src/commands/acceptallsuggestionscommand.js +1 -1
  8. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  9. package/src/commands/acceptsuggestioncommand.js +1 -1
  10. package/src/commands/discardallsuggestionscommand.js +1 -1
  11. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  12. package/src/commands/discardsuggestioncommand.js +1 -1
  13. package/src/commands/trackchangescommand.js +1 -1
  14. package/src/integrations/alignment.js +1 -1
  15. package/src/integrations/basicstyles.js +1 -1
  16. package/src/integrations/blockquote.js +1 -1
  17. package/src/integrations/codeblock.js +1 -1
  18. package/src/integrations/comments.js +1 -1
  19. package/src/integrations/deletecommand.js +1 -1
  20. package/src/integrations/entercommand.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/indent.js +1 -1
  27. package/src/integrations/inputcommand.js +1 -1
  28. package/src/integrations/link.js +1 -1
  29. package/src/integrations/list.js +1 -1
  30. package/src/integrations/mediaembed.js +1 -1
  31. package/src/integrations/mention.js +1 -1
  32. package/src/integrations/pagebreak.js +1 -1
  33. package/src/integrations/paragraph.js +1 -1
  34. package/src/integrations/removeformat.js +1 -1
  35. package/src/integrations/restrictededitingmode.js +1 -1
  36. package/src/integrations/shiftentercommand.js +1 -1
  37. package/src/integrations/standardeditingmode.js +1 -1
  38. package/src/integrations/table.js +1 -1
  39. package/src/integrations/tableclipboard.js +1 -1
  40. package/src/integrations/tableheadings.js +1 -1
  41. package/src/integrations/tablemergesplit.js +1 -1
  42. package/src/integrations/title.js +1 -1
  43. package/src/integrations/undo.js +1 -1
  44. package/src/integrations/utils.js +1 -1
  45. package/src/suggestion.js +1 -1
  46. package/src/suggestiondescriptionfactory.js +1 -1
  47. package/src/trackchanges.js +1 -1
  48. package/src/trackchangesdata.js +1 -1
  49. package/src/trackchangesediting.js +1 -1
  50. package/src/trackchangesui.js +1 -1
  51. package/src/ui/suggestioncontroller.js +1 -1
  52. package/src/ui/view/basesuggestionthreadview.js +1 -1
  53. package/src/ui/view/suggestionthreadview.js +1 -1
  54. package/src/utils/getselectedsuggestions.js +1 -1
  55. package/src/utils/hashobject.js +1 -1
  56. package/src/utils/normalizedescription.js +1 -1
  57. package/src/utils/sortsuggestions.js +1 -1
  58. package/theme/integrations/table.css +57 -48
  59. package/theme/suggestionmarker.css +1 -0
  60. package/src/integrations/exportpdf.js +0 -23
  61. package/src/integrations/selectall.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1a7126}from'ckeditor5/src/core';export default class mt extends _0x1a7126{['afterInit'](){const _0x1f72df=this['editor'],t=_0x1f72df['t'];if(!_0x1f72df['plugins']['has']('Title'))return;const _0x246754=_0x1f72df['plugins']['get']('TrackChangesEditing');_0x246754['_descriptionFactory']['registerElementLabel']('title-content',()=>t({'id':'ELEMENT_TITLE','string':'title'})),_0x1f72df['model']['document']['registerPostFixer'](_0x171a1c=>{let _0x358a8e=!0x1;const _0x449bb1=Array['from'](_0x1f72df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24133a,data:_0x32e350}of _0x449bb1){const {group:_0x5b806f}=_0x246754['_splitMarkerName'](_0x24133a);if('suggestion'!==_0x5b806f||!_0x32e350['newRange'])continue;const _0x112e2d=_0x32e350['newRange'],_0x255fab=_0x112e2d['end']['nodeBefore'];if(!_0x255fab||!_0x255fab['is']('element','title-content'))continue;if(!_0x112e2d['start']['isTouching'](_0x112e2d['end']))continue;const _0x443f3c=_0x1f72df['model']['schema']['getNearestSelectionRange'](_0x112e2d['end'],'forward');if(_0x443f3c&&_0x443f3c['isCollapsed']){const _0x2d45a0=_0x171a1c['createRange'](_0x112e2d['start'],_0x443f3c['start']);_0x2d45a0['isEqual'](_0x112e2d)||(_0x171a1c['updateMarker'](_0x24133a,{'range':_0x2d45a0}),_0x358a8e=!0x0);}_0x358a8e||(_0x171a1c['removeMarker'](_0x24133a),_0x358a8e=!0x0);}return _0x358a8e;});}}
23
+ import{Plugin as _0x329045}from'ckeditor5/src/core';export default class lt extends _0x329045{['afterInit'](){const _0x371792=this['editor'],t=_0x371792['t'];if(!_0x371792['plugins']['has']('Title'))return;const _0xcd20cf=_0x371792['plugins']['get']('TrackChangesEditing');_0xcd20cf['_descriptionFactory']['registerElementLabel']('title-content',()=>t({'id':'ELEMENT_TITLE','string':'title'})),_0x371792['model']['document']['registerPostFixer'](_0x348c6c=>{let _0x8cd9de=!0x1;const _0x3a5a4f=Array['from'](_0x371792['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x44dfde,data:_0x42725d}of _0x3a5a4f){const {group:_0x5d3f91}=_0xcd20cf['_splitMarkerName'](_0x44dfde);if('suggestion'!==_0x5d3f91||!_0x42725d['newRange'])continue;const _0x34af48=_0x42725d['newRange'],_0x23681a=_0x34af48['end']['nodeBefore'];if(!_0x23681a||!_0x23681a['is']('element','title-content'))continue;if(!_0x34af48['start']['isTouching'](_0x34af48['end']))continue;const _0x12e43f=_0x371792['model']['schema']['getNearestSelectionRange'](_0x34af48['end'],'forward');if(_0x12e43f&&_0x12e43f['isCollapsed']){const _0x56bb49=_0x348c6c['createRange'](_0x34af48['start'],_0x12e43f['start']);_0x56bb49['isEqual'](_0x34af48)||(_0x348c6c['updateMarker'](_0x44dfde,{'range':_0x56bb49}),_0x8cd9de=!0x0);}_0x8cd9de||(_0x348c6c['removeMarker'](_0x44dfde),_0x8cd9de=!0x0);}return _0x8cd9de;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cd6=['get','afterInit','plugins','enableCommand','redo','TrackChangesEditing','UndoEditing','editor'];(function(_0x56be2f,_0x1cd621){const _0x4053be=function(_0x21f967){while(--_0x21f967){_0x56be2f['push'](_0x56be2f['shift']());}};_0x4053be(++_0x1cd621);}(_0x1cd6,0x1d0));const _0x4053=function(_0x56be2f,_0x1cd621){_0x56be2f=_0x56be2f-0x0;let _0x4053be=_0x1cd6[_0x56be2f];return _0x4053be;};import{Plugin as _0x3ecc76}from'ckeditor5/src/core';export default class pt extends _0x3ecc76{[_0x4053('0x1')](){const _0x496a21=this[_0x4053('0x7')],_0x3c9bab=_0x496a21[_0x4053('0x2')][_0x4053('0x0')](_0x4053('0x5'));_0x496a21[_0x4053('0x2')]['has'](_0x4053('0x6'))&&(_0x3c9bab['enableCommand']('undo'),_0x3c9bab[_0x4053('0x3')](_0x4053('0x4')));}}
23
+ const _0x191a=['undo','get','redo','enableCommand','editor','has','afterInit','UndoEditing','TrackChangesEditing','plugins'];(function(_0x3a98fe,_0x191a48){const _0x4d7e4c=function(_0x577b89){while(--_0x577b89){_0x3a98fe['push'](_0x3a98fe['shift']());}};_0x4d7e4c(++_0x191a48);}(_0x191a,0x15a));const _0x4d7e=function(_0x3a98fe,_0x191a48){_0x3a98fe=_0x3a98fe-0x0;let _0x4d7e4c=_0x191a[_0x3a98fe];return _0x4d7e4c;};import{Plugin as _0x59236d}from'ckeditor5/src/core';export default class dt extends _0x59236d{[_0x4d7e('0x0')](){const _0x3d47d1=this[_0x4d7e('0x8')],_0x1d7698=_0x3d47d1[_0x4d7e('0x3')][_0x4d7e('0x5')](_0x4d7e('0x2'));_0x3d47d1['plugins'][_0x4d7e('0x9')](_0x4d7e('0x1'))&&(_0x1d7698[_0x4d7e('0x7')](_0x4d7e('0x4')),_0x1d7698[_0x4d7e('0x7')](_0x4d7e('0x6')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cff=['isAtEnd','schema','TrackChangesEditing','writer','createUIElement','nextSibling','activeMarkers','toViewPosition','get','start','listIndent','includes','type','insert','isContent','ck-suggestion-marker-','getAttribute','addHighlight','elementEnd','mapper','getItems','isLimit','model','element','item','consumable','toViewElement','markerRange','push','plugins','bindElementToMarker','listItem','isBlock','getWalker','previousPosition','addClass','markerName'];(function(_0x5d6413,_0x2cff87){const _0xd2143f=function(_0x59da67){while(--_0x59da67){_0x5d6413['push'](_0x5d6413['shift']());}};_0xd2143f(++_0x2cff87);}(_0x2cff,0x1ec));const _0xd214=function(_0x5d6413,_0x2cff87){_0x5d6413=_0x5d6413-0x0;let _0xd2143f=_0x2cff[_0x5d6413];return _0xd2143f;};export function getRangesWithAttribute(_0x38476b,_0x5370a1,_0x4cf009){const _0x387f30=[];for(const _0x3d07f7 of _0x5370a1[_0xd214('0x9')]())_0x3d07f7['hasAttribute'](_0x38476b)&&_0x387f30[_0xd214('0x11')](_0x4cf009['createRangeOn'](_0x3d07f7));return _0x387f30;}export function getElementsAffectedByListItemRename(_0x1db865){const _0xa6488b=[];if(_0x1db865['is']('element',_0xd214('0x14'))){let _0x197cfc=_0x1db865[_0xd214('0x1f')];for(;_0x197cfc&&_0x197cfc['is'](_0xd214('0xc'),_0xd214('0x14'))&&_0x197cfc[_0xd214('0x5')](_0xd214('0x24'))>0x0;)_0xa6488b[_0xd214('0x11')](_0x197cfc),_0x197cfc=_0x197cfc[_0xd214('0x1f')];}return _0xa6488b;}export function downcastSplitMergeMarker(_0x39133c,_0x1d385c,{showActiveMarker:_0x1b02ec=!0x0}={}){const _0x40bb4f=_0x39133c[_0xd214('0x12')][_0xd214('0x22')](_0xd214('0x1c'));return(_0x2e167f,_0x580f12,_0x3f5d54)=>{if(!_0x3f5d54[_0xd214('0xe')]['test'](_0x580f12[_0xd214('0x10')],_0x2e167f['name']))return;const _0xbc4102=_0x580f12[_0xd214('0x10')][_0xd214('0x16')](),_0x59b8d5=_0x580f12['markerRange'][_0xd214('0x23')],_0x4e96df=_0x39133c[_0xd214('0xb')][_0xd214('0x1b')];let _0x58464a=null,_0x1ea413=null,_0x10a9ca=!0x1,_0x1cac79=!0x1;for(const _0xdccaa5 of _0xbc4102){const _0x309673=_0xdccaa5[_0xd214('0xd')];_0x10a9ca=_0x10a9ca||_0x4e96df[_0xd214('0x3')](_0x309673);const _0x515953=_0x3f5d54['mapper'][_0xd214('0xf')](_0x309673);if(_0x515953&&_0x515953['getCustomProperty'](_0xd214('0x6')))return;_0xd214('0x7')==_0xdccaa5[_0xd214('0x1')]&&(_0x4e96df[_0xd214('0x15')](_0x309673)&&!_0x4e96df[_0xd214('0xa')](_0x309673)&&(_0x309673[_0xd214('0x1f')]||_0x59b8d5[_0xd214('0x1a')]?_0x58464a&&_0x58464a['parent']==_0x309673||(_0x58464a=_0x309673,_0x21f49f(_0xdccaa5[_0xd214('0x17')]),_0x1cac79=!0x0):_0x1ea413=_0x1ea413||_0xdccaa5[_0xd214('0x17')]));}function _0x21f49f(_0x2a3a0c){const _0xd29839=_0x3f5d54[_0xd214('0x1d')][_0xd214('0x1e')]('span',{'class':_0xd214('0x4')+_0x1d385c}),_0xc39071=_0x3f5d54['mapper'][_0xd214('0x21')](_0x2a3a0c);_0x1b02ec&&_0x40bb4f[_0xd214('0x20')][_0xd214('0x0')](_0x580f12['markerName'])&&_0x3f5d54[_0xd214('0x1d')][_0xd214('0x18')]('ck-suggestion-marker--active',_0xd29839),_0x3f5d54[_0xd214('0x1d')][_0xd214('0x2')](_0xc39071,_0xd29839),_0x3f5d54[_0xd214('0x8')][_0xd214('0x13')](_0xd29839,_0x580f12[_0xd214('0x19')]);}_0x10a9ca||_0x1cac79||!_0x1ea413||_0x21f49f(_0x1ea413);};}
23
+ const _0x46ed=['mapper','previousPosition','getAttribute','span','element','createUIElement','addClass','item','nextSibling','writer','markerName','elementEnd','test','insert','getWalker','getItems','name','type','isContent','ck-suggestion-marker--active','consumable','schema','listItem','listIndent','start','activeMarkers','plugins','parent','toViewElement','bindElementToMarker','isBlock','markerRange'];(function(_0x5c0f61,_0x46ed8c){const _0x3a9621=function(_0x5a680e){while(--_0x5a680e){_0x5c0f61['push'](_0x5c0f61['shift']());}};_0x3a9621(++_0x46ed8c);}(_0x46ed,0x1e7));const _0x3a96=function(_0x5c0f61,_0x46ed8c){_0x5c0f61=_0x5c0f61-0x0;let _0x3a9621=_0x46ed[_0x5c0f61];return _0x3a9621;};export function getRangesWithAttribute(_0x1e392c,_0x246654,_0x2ac360){const _0x104df3=[];for(const _0x1dc7b7 of _0x246654[_0x3a96('0x8')]())_0x1dc7b7['hasAttribute'](_0x1e392c)&&_0x104df3['push'](_0x2ac360['createRangeOn'](_0x1dc7b7));return _0x104df3;}export function getElementsAffectedByListItemRename(_0x4262d2){const _0x25a029=[];if(_0x4262d2['is'](_0x3a96('0x1d'),_0x3a96('0xf'))){let _0xb261f5=_0x4262d2[_0x3a96('0x1')];for(;_0xb261f5&&_0xb261f5['is'](_0x3a96('0x1d'),_0x3a96('0xf'))&&_0xb261f5[_0x3a96('0x1b')](_0x3a96('0x10'))>0x0;)_0x25a029['push'](_0xb261f5),_0xb261f5=_0xb261f5[_0x3a96('0x1')];}return _0x25a029;}export function downcastSplitMergeMarker(_0x3ecaf7,_0x4e5b18,{showActiveMarker:_0x18ef8e=!0x0}={}){const _0x35dfc5=_0x3ecaf7[_0x3a96('0x13')]['get']('TrackChangesEditing');return(_0x4089ac,_0x5d19a9,_0x2891c2)=>{if(!_0x2891c2[_0x3a96('0xd')][_0x3a96('0x5')](_0x5d19a9['markerRange'],_0x4089ac[_0x3a96('0x9')]))return;const _0xa288e5=_0x5d19a9[_0x3a96('0x18')][_0x3a96('0x7')](),_0x10279c=_0x5d19a9[_0x3a96('0x18')][_0x3a96('0x11')],_0x3c2d58=_0x3ecaf7['model'][_0x3a96('0xe')];let _0x17a596=null,_0x83ed88=null,_0x1969bc=!0x1,_0xe0091c=!0x1;for(const _0x4cc5a3 of _0xa288e5){const _0x134af0=_0x4cc5a3[_0x3a96('0x0')];_0x1969bc=_0x1969bc||_0x3c2d58[_0x3a96('0xb')](_0x134af0);const _0x1c43fe=_0x2891c2['mapper'][_0x3a96('0x15')](_0x134af0);if(_0x1c43fe&&_0x1c43fe['getCustomProperty']('addHighlight'))return;_0x3a96('0x4')==_0x4cc5a3[_0x3a96('0xa')]&&(_0x3c2d58[_0x3a96('0x17')](_0x134af0)&&!_0x3c2d58['isLimit'](_0x134af0)&&(_0x134af0['nextSibling']||_0x10279c['isAtEnd']?_0x17a596&&_0x17a596[_0x3a96('0x14')]==_0x134af0||(_0x17a596=_0x134af0,_0x90579d(_0x4cc5a3[_0x3a96('0x1a')]),_0xe0091c=!0x0):_0x83ed88=_0x83ed88||_0x4cc5a3[_0x3a96('0x1a')]));}function _0x90579d(_0x2fee69){const _0x1b340f=_0x2891c2['writer'][_0x3a96('0x1e')](_0x3a96('0x1c'),{'class':'ck-suggestion-marker-'+_0x4e5b18}),_0x4e0c06=_0x2891c2[_0x3a96('0x19')]['toViewPosition'](_0x2fee69);_0x18ef8e&&_0x35dfc5[_0x3a96('0x12')]['includes'](_0x5d19a9[_0x3a96('0x3')])&&_0x2891c2['writer'][_0x3a96('0x1f')](_0x3a96('0xc'),_0x1b340f),_0x2891c2[_0x3a96('0x2')][_0x3a96('0x6')](_0x4e0c06,_0x1b340f),_0x2891c2[_0x3a96('0x19')][_0x3a96('0x16')](_0x1b340f,_0x5d19a9['markerName']);}_0x1969bc||_0xe0091c||!_0x83ed88||_0x90579d(_0x83ed88);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24e8=['data','isMultiRange','isIntersectingWithRange','type','removeAttribute','commentThread','add','push','getMultiRangeId','get','_onAttributesChange','removeMarkers','onAttributesChange','change','getItems','removeMarker','markers','decorate','previous','getRange','length','substr','subType','addMarker','from','nodeAfter','isInContent','createdAt','delete','_onDiscard','getMarkers','setAttribute','next','suggestion:','accept','_model','hasComments','end','onAccept','set','discard','_onAccept','getContainedElement','getFirstRange','author','getRanges','map','getFirstMarker','size','_markerNames','filter','toJSON','clear','addMarkerName','attributes','head'];(function(_0x36e3a3,_0x24e84c){const _0x5207bd=function(_0x4e25a7){while(--_0x4e25a7){_0x36e3a3['push'](_0x36e3a3['shift']());}};_0x5207bd(++_0x24e84c);}(_0x24e8,0x14a));const _0x5207=function(_0x36e3a3,_0x24e84c){_0x36e3a3=_0x36e3a3-0x0;let _0x5207bd=_0x24e8[_0x36e3a3];return _0x5207bd;};import{Element as _0x370fe5}from'ckeditor5/src/engine';import{ObservableMixin as _0x4d36d9,mix as _0x21914a,uid as _0x5b91e9}from'ckeditor5/src/utils';import{cloneDeep as _0x14880c,isEqual as _0x12ad63,set as _0x4ad1cd,unset as _0x11e786}from'lodash-es';export default class o{constructor(_0x11accd,_0x355c4b){this['id']=_0x355c4b['id'],this[_0x5207('0x9')]=_0x355c4b[_0x5207('0x9')],this['subType']=_0x355c4b[_0x5207('0x1c')]||null,this[_0x5207('0x32')]=_0x355c4b[_0x5207('0x32')],this[_0x5207('0x6')]=null,this['_model']=_0x11accd,this[_0x5207('0x2f')]=_0x355c4b[_0x5207('0x2c')],this[_0x5207('0x23')]=_0x355c4b['onDiscard'],this[_0x5207('0x10')]=_0x355c4b[_0x5207('0x12')],this[_0x5207('0x37')]=new Set(),this['set'](_0x5207('0x21'),null),this[_0x5207('0x2d')](_0x5207('0x4'),_0x355c4b[_0x5207('0x4')]||{}),this[_0x5207('0x2d')]('previous',null),this[_0x5207('0x2d')](_0x5207('0x26'),null),this['set'](_0x5207('0xb'),null),this[_0x5207('0x2d')]('_saved',!0x1),this['decorate'](_0x5207('0x28')),this[_0x5207('0x17')](_0x5207('0x2e'));}get[_0x5207('0x5')](){let _0x40abcf=this;for(;_0x40abcf['previous'];)_0x40abcf=_0x40abcf[_0x5207('0x18')];return _0x40abcf;}get[_0x5207('0x2a')](){return!!this['commentThread']&&this[_0x5207('0xb')]['length']>0x0;}get[_0x5207('0x7')](){if(0x0==this[_0x5207('0x37')][_0x5207('0x36')])return!0x1;return 0x6==Array[_0x5207('0x1e')](this[_0x5207('0x37')])[0x0]['split'](':')[_0x5207('0x1a')];}get[_0x5207('0x20')](){return null!==this[_0x5207('0x35')]();}[_0x5207('0x3')](_0x2f451b){this[_0x5207('0x37')][_0x5207('0xc')](_0x2f451b);}['getMarkerNames'](){return Array[_0x5207('0x1e')](this['_markerNames']);}[_0x5207('0x24')](){return this['getMarkerNames']()['map'](_0x198463=>this[_0x5207('0x29')][_0x5207('0x16')][_0x5207('0xf')](_0x198463))[_0x5207('0x0')](_0x10c02c=>_0x10c02c);}[_0x5207('0x35')](){return this['getMarkers']()[0x0]||null;}[_0x5207('0x11')](){this['_model'][_0x5207('0x13')](_0x9391da=>{for(const _0x2b7523 of this['getMarkers']())_0x9391da[_0x5207('0x15')](_0x2b7523);}),this[_0x5207('0x37')][_0x5207('0x2')]();}[_0x5207('0x15')](_0x7cbea){this[_0x5207('0x29')][_0x5207('0x13')](_0x1fd87d=>{_0x1fd87d[_0x5207('0x15')](_0x7cbea);}),this['_markerNames'][_0x5207('0x22')](_0x7cbea);}['addRange'](_0x532a88){const _0x553423=_0x5207('0x27')+this['type']+':'+this[_0x5207('0x1c')]+':'+this['id']+':'+this[_0x5207('0x32')]['id']+':'+o['getMultiRangeId']();this[_0x5207('0x3')](_0x553423),this[_0x5207('0x29')]['change'](_0x32b6a5=>{_0x32b6a5[_0x5207('0x1d')](_0x553423,{'range':_0x532a88,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5207('0x8')](_0x4fe9af){for(const _0x1b2822 of this[_0x5207('0x33')]())if(_0x1b2822['isIntersecting'](_0x4fe9af))return!0x0;return!0x1;}['getRanges'](){return this[_0x5207('0x24')]()[_0x5207('0x34')](_0x77b94a=>_0x77b94a[_0x5207('0x19')]());}[_0x5207('0x14')](){return this[_0x5207('0x33')]()['reduce']((_0x186016,_0x24d93b)=>[..._0x186016,..._0x24d93b[_0x5207('0x14')]()],[]);}[_0x5207('0x31')](){return this['getFirstMarker']()[_0x5207('0x19')]();}[_0x5207('0x30')](){const _0x2839dd=this[_0x5207('0x33')]();if(0x1!=_0x2839dd[_0x5207('0x1a')])return null;const _0x9dfa23=_0x2839dd[0x0],_0x55bdf0=_0x9dfa23['start'][_0x5207('0x1f')],_0xaa58c1=_0x9dfa23[_0x5207('0x2b')]['nodeBefore'];return _0x55bdf0 instanceof _0x370fe5?_0x55bdf0!=_0xaa58c1?null:_0x55bdf0:null;}['accept'](){this[_0x5207('0x2f')](this[_0x5207('0x33')](),this['data'],this['attributes']),this[_0x5207('0x11')]();}[_0x5207('0x2e')](){this[_0x5207('0x23')](this[_0x5207('0x33')](),this['data'],this['attributes']),this[_0x5207('0x11')]();}['getAllAdjacentSuggestions'](){const _0x38cc29=[];let _0x5a06c0=this['head'];for(;_0x5a06c0;)_0x38cc29[_0x5207('0xd')](_0x5a06c0),_0x5a06c0=_0x5a06c0['next'];return _0x38cc29;}[_0x5207('0x25')](_0x15f7d7,_0x8b5888){const _0x2dfcd7=_0x14880c(this['attributes']);_0x4ad1cd(_0x2dfcd7,_0x15f7d7,_0x8b5888),_0x12ad63(_0x2dfcd7,this['attributes'])||(this[_0x5207('0x4')]=_0x2dfcd7,this['_onAttributesChange'](_0x2dfcd7));}[_0x5207('0xa')](_0x284443){const _0xcec612=_0x14880c(this[_0x5207('0x4')]);_0x11e786(_0xcec612,_0x284443),_0x12ad63(_0xcec612,this[_0x5207('0x4')])||(this[_0x5207('0x4')]=_0xcec612,this['_onAttributesChange'](this[_0x5207('0x4')]));}[_0x5207('0x1')](){return{'id':this['id'],'type':this[_0x5207('0x1c')]?this['type']+':'+this[_0x5207('0x1c')]:this[_0x5207('0x9')],'authorId':this[_0x5207('0x32')]['id'],'createdAt':this[_0x5207('0x21')],'hasComments':this[_0x5207('0x2a')],'data':this[_0x5207('0x6')],'attributes':this[_0x5207('0x4')]};}static[_0x5207('0xe')](){return _0x5b91e9()[_0x5207('0x1b')](0x1,0x5);}}_0x21914a(o,_0x4d36d9);
23
+ const _0x1548=['get','from','hasComments','removeMarker','_markerNames','removeMarkers','removeAttribute','decorate','addMarkerName','_model','subType','onAccept','nodeBefore','markers','end','set','change','commentThread','onAttributesChange','previous','attributes','isIntersecting','start','author','onDiscard','map','setAttribute','getRanges','reduce','_saved','getRange','_onDiscard','getItems','discard','split','addMarker','suggestion:','_onAccept','nodeAfter','getMarkers','next','data','getMarkerNames','type','push','substr','getFirstMarker','add','isIntersectingWithRange','clear','head','createdAt','length','delete','_onAttributesChange','getMultiRangeId','accept','getContainedElement','isInContent'];(function(_0x3ca52d,_0x154885){const _0x3be44a=function(_0x1b64c7){while(--_0x1b64c7){_0x3ca52d['push'](_0x3ca52d['shift']());}};_0x3be44a(++_0x154885);}(_0x1548,0x73));const _0x3be4=function(_0x3ca52d,_0x154885){_0x3ca52d=_0x3ca52d-0x0;let _0x3be44a=_0x1548[_0x3ca52d];return _0x3be44a;};import{Element as _0x2fdb2f}from'ckeditor5/src/engine';import{ObservableMixin as _0x22bcc1,mix as _0xe6d106,uid as _0x358fa3}from'ckeditor5/src/utils';import{cloneDeep as _0x33707d,isEqual as _0x4177c2,set as _0x595feb,unset as _0x1e5930}from'lodash-es';export default class o{constructor(_0x1f658d,_0x3c500f){this['id']=_0x3c500f['id'],this['type']=_0x3c500f['type'],this['subType']=_0x3c500f['subType']||null,this['author']=_0x3c500f[_0x3be4('0x1a')],this[_0x3be4('0x2c')]=null,this[_0x3be4('0xc')]=_0x1f658d,this[_0x3be4('0x28')]=_0x3c500f[_0x3be4('0xe')],this['_onDiscard']=_0x3c500f[_0x3be4('0x1b')],this[_0x3be4('0x39')]=_0x3c500f[_0x3be4('0x15')],this[_0x3be4('0x7')]=new Set(),this[_0x3be4('0x12')](_0x3be4('0x36'),null),this[_0x3be4('0x12')]('attributes',_0x3c500f[_0x3be4('0x17')]||{}),this[_0x3be4('0x12')]('previous',null),this['set'](_0x3be4('0x2b'),null),this[_0x3be4('0x12')]('commentThread',null),this['set'](_0x3be4('0x20'),!0x1),this[_0x3be4('0xa')](_0x3be4('0x0')),this[_0x3be4('0xa')](_0x3be4('0x24'));}get[_0x3be4('0x35')](){let _0x58d43b=this;for(;_0x58d43b[_0x3be4('0x16')];)_0x58d43b=_0x58d43b[_0x3be4('0x16')];return _0x58d43b;}get[_0x3be4('0x5')](){return!!this[_0x3be4('0x14')]&&this[_0x3be4('0x14')][_0x3be4('0x37')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x3be4('0x7')]['size'])return!0x1;return 0x6==Array[_0x3be4('0x4')](this[_0x3be4('0x7')])[0x0][_0x3be4('0x25')](':')[_0x3be4('0x37')];}get[_0x3be4('0x2')](){return null!==this[_0x3be4('0x31')]();}[_0x3be4('0xb')](_0x58cd68){this[_0x3be4('0x7')][_0x3be4('0x32')](_0x58cd68);}[_0x3be4('0x2d')](){return Array[_0x3be4('0x4')](this['_markerNames']);}[_0x3be4('0x2a')](){return this[_0x3be4('0x2d')]()[_0x3be4('0x1c')](_0x3e8965=>this[_0x3be4('0xc')][_0x3be4('0x10')][_0x3be4('0x3')](_0x3e8965))['filter'](_0x2288a0=>_0x2288a0);}[_0x3be4('0x31')](){return this['getMarkers']()[0x0]||null;}[_0x3be4('0x8')](){this[_0x3be4('0xc')][_0x3be4('0x13')](_0xfc9ab7=>{for(const _0xab373f of this[_0x3be4('0x2a')]())_0xfc9ab7[_0x3be4('0x6')](_0xab373f);}),this[_0x3be4('0x7')][_0x3be4('0x34')]();}[_0x3be4('0x6')](_0x1b8cc4){this[_0x3be4('0xc')][_0x3be4('0x13')](_0x2bb56f=>{_0x2bb56f[_0x3be4('0x6')](_0x1b8cc4);}),this[_0x3be4('0x7')][_0x3be4('0x38')](_0x1b8cc4);}['addRange'](_0x10b20d){const _0x3fc20b=_0x3be4('0x27')+this[_0x3be4('0x2e')]+':'+this[_0x3be4('0xd')]+':'+this['id']+':'+this[_0x3be4('0x1a')]['id']+':'+o['getMultiRangeId']();this[_0x3be4('0xb')](_0x3fc20b),this[_0x3be4('0xc')]['change'](_0x5bb60e=>{_0x5bb60e[_0x3be4('0x26')](_0x3fc20b,{'range':_0x10b20d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3be4('0x33')](_0x2724b7){for(const _0x485b84 of this['getRanges']())if(_0x485b84[_0x3be4('0x18')](_0x2724b7))return!0x0;return!0x1;}[_0x3be4('0x1e')](){return this[_0x3be4('0x2a')]()[_0x3be4('0x1c')](_0x5b011e=>_0x5b011e[_0x3be4('0x21')]());}['getItems'](){return this[_0x3be4('0x1e')]()[_0x3be4('0x1f')]((_0x31f20b,_0x583de8)=>[..._0x31f20b,..._0x583de8[_0x3be4('0x23')]()],[]);}['getFirstRange'](){return this[_0x3be4('0x31')]()[_0x3be4('0x21')]();}[_0x3be4('0x1')](){const _0x56adb0=this[_0x3be4('0x1e')]();if(0x1!=_0x56adb0[_0x3be4('0x37')])return null;const _0x17af9=_0x56adb0[0x0],_0x38341a=_0x17af9[_0x3be4('0x19')][_0x3be4('0x29')],_0x2e0117=_0x17af9[_0x3be4('0x11')][_0x3be4('0xf')];return _0x38341a instanceof _0x2fdb2f?_0x38341a!=_0x2e0117?null:_0x38341a:null;}[_0x3be4('0x0')](){this[_0x3be4('0x28')](this[_0x3be4('0x1e')](),this[_0x3be4('0x2c')],this[_0x3be4('0x17')]),this['removeMarkers']();}[_0x3be4('0x24')](){this[_0x3be4('0x22')](this[_0x3be4('0x1e')](),this['data'],this[_0x3be4('0x17')]),this[_0x3be4('0x8')]();}['getAllAdjacentSuggestions'](){const _0x7b2df9=[];let _0xf2f888=this[_0x3be4('0x35')];for(;_0xf2f888;)_0x7b2df9[_0x3be4('0x2f')](_0xf2f888),_0xf2f888=_0xf2f888[_0x3be4('0x2b')];return _0x7b2df9;}[_0x3be4('0x1d')](_0x498279,_0xfb39d9){const _0x4ad4c9=_0x33707d(this[_0x3be4('0x17')]);_0x595feb(_0x4ad4c9,_0x498279,_0xfb39d9),_0x4177c2(_0x4ad4c9,this[_0x3be4('0x17')])||(this['attributes']=_0x4ad4c9,this[_0x3be4('0x39')](_0x4ad4c9));}[_0x3be4('0x9')](_0x4cd3d8){const _0x402d51=_0x33707d(this['attributes']);_0x1e5930(_0x402d51,_0x4cd3d8),_0x4177c2(_0x402d51,this[_0x3be4('0x17')])||(this['attributes']=_0x402d51,this[_0x3be4('0x39')](this[_0x3be4('0x17')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x3be4('0xd')]?this['type']+':'+this[_0x3be4('0xd')]:this['type'],'authorId':this[_0x3be4('0x1a')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x3be4('0x5')],'data':this[_0x3be4('0x2c')],'attributes':this['attributes']};}static[_0x3be4('0x3a')](){return _0x358fa3()[_0x3be4('0x30')](0x1,0x5);}}_0xe6d106(o,_0x22bcc1);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class c{constructor(_0x5aa32e,_0x4e82d1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_schema']=_0x5aa32e,this['_locale']=_0x4e82d1;}['getDescriptions'](_0x40c73e){const _0x1e796e=[];for(let _0x2a157b=0x0;_0x2a157b<_0x40c73e['length'];_0x2a157b++){const _0x21e26b=_0x40c73e[_0x2a157b];if(!_0x21e26b['isInContent'])continue;let _0x52a224=!0x1;for(const _0x25b355 of this['_customCallbacks']){const _0x45ae62=_0x25b355(_0x21e26b);if(_0x45ae62){_0x45ae62['type']&&_0x1e796e['push'](_0x45ae62),_0x52a224=!0x0;break;}}if(!_0x52a224){this['_addDescriptionItems'](_0x1e796e,_0x21e26b);const _0xc6624d=_0x40c73e[_0x2a157b+0x1];if(_0xc6624d&&!_0x21e26b['getFirstRange']()['end']['isEqual'](_0xc6624d['getFirstRange']()['start'])){const _0x380c08=_0x1e796e[_0x1e796e['length']-0x1],_0x2d3e59='insertion'==_0x21e26b['type']?'add':'remove';_0x380c08&&'text'==_0x380c08['type']&&(_0x380c08[_0x2d3e59]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x1e796e);}['registerDescriptionCallback'](_0x2c74c1){this['_customCallbacks']['push'](_0x2c74c1);}['registerElementLabel'](_0x17c0a6,_0x499ecc){this['_itemLabels']['set'](_0x17c0a6,_0x499ecc);}['getItemLabel'](_0x48da09,_0x420791=0x1){const _0x124a7d=this['_itemLabels']['get'](_0x48da09)||_0x48da09;return'function'==typeof _0x124a7d?_0x124a7d(_0x420791):0x1!==_0x420791?_0x420791+'\x20'+_0x124a7d+'s':''+_0x124a7d;}['_addDescriptionItems'](_0x87e20c,_0x521557){const _0x72deb0=_0x521557['getFirstRange']()['getWalker'](),_0x311c33='insertion'==_0x521557['type']?'add':'remove';for(const _0x24598a of _0x72deb0){const _0x43468e=_0x24598a['item'],_0x31258c=_0x87e20c[_0x87e20c['length']-0x1];if(_0x43468e['is']('textProxy'))_0x31258c&&_0x31258c['type']['indexOf']('Container')>-0x1&&_0x87e20c['pop'](),_0x31258c&&'text'==_0x31258c['type']?_0x31258c[_0x311c33]+=_0x43468e['data']:_0x87e20c['push']({'type':'text','add':'add'==_0x311c33?_0x43468e['data']:'','remove':'remove'==_0x311c33?_0x43468e['data']:''});else{if(this['_schema']['isObject'](_0x43468e)){if(_0x31258c&&_0x31258c['type']['indexOf']('Container')>-0x1&&_0x87e20c['pop'](),'elementEnd'==_0x24598a['type'])continue;_0x31258c&&_0x31258c['type']==_0x311c33+'Object'&&_0x31258c['name']==_0x43468e['name']?_0x31258c['quantity']++:_0x87e20c['push']({'type':_0x311c33+'Object','name':_0x43468e['name'],'quantity':0x1}),_0x72deb0['skip'](_0x314127=>!('elementEnd'==_0x314127['type']&&_0x314127['item']==_0x43468e));}else{if(this['_schema']['checkChild'](_0x43468e,'$text')||_0x43468e['is']('element','softBreak')){if('add'==_0x311c33&&'elementStart'==_0x24598a['type']||'remove'==_0x311c33&&'elementEnd'==_0x24598a['type'])continue;if(_0x31258c&&-0x1==_0x31258c['type']['indexOf']('Container')){'text'==_0x31258c['type']&&(_0x31258c[_0x311c33]+='\x0a');continue;}let _0x1aeb48;if(_0x1aeb48='add'==_0x311c33?_0x43468e['nextSibling']&&!this['_schema']['isObject'](_0x43468e['nextSibling'])?_0x43468e['nextSibling']:null:_0x43468e['previousSibling']&&!this['_schema']['isObject'](_0x43468e['previousSibling'])?_0x43468e['previousSibling']:null,_0x43468e['isEmpty']||_0x1aeb48&&_0x1aeb48['isEmpty']){const _0x333ce5=_0x1aeb48&&_0x1aeb48['isEmpty']?_0x1aeb48['name']:_0x43468e['name'];_0x31258c&&_0x31258c['type']==_0x311c33+'EmptyContainer'&&_0x31258c['name']==_0x333ce5?_0x31258c['quantity']++:_0x87e20c['push']({'type':_0x311c33+'EmptyContainer','name':_0x333ce5,'quantity':0x1});}else _0x87e20c['push']({'type':_0x311c33+'Container','name':_0x43468e['name']});}}}}}['_resolveDescriptionItems'](_0x59312b){const {t:t}=this['_locale'],_0x11d696=[];for(const _0x18f38a of _0x59312b){switch(_0x18f38a['type']){case'text':if(_0x18f38a['add']=_0x18f38a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x18f38a['remove']=_0x18f38a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x18f38a['add']&&''!=_0x18f38a['remove']){_0x11d696['push']({'type':'replace','content':t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},['\x22'+_0x18f38a['remove']+'\x22','\x22'+_0x18f38a['add']+'\x22'])});continue;}if(null!=_0x18f38a['add']['match'](/^ +$/)){_0x11d696['push']({'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x18f38a['add']['length']))});continue;}if(null!=_0x18f38a['remove']['match'](/^ +$/)){_0x11d696['push']({'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x18f38a['remove']['length']))});continue;}if(''!=_0x18f38a['add']){_0x11d696['push']({'type':'insertion','content':t('*Insert:*\x20%0','\x22'+_0x18f38a['add']+'\x22')});continue;}_0x11d696['push']({'type':'deletion','content':t('*Remove:*\x20%0','\x22'+_0x18f38a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x11d696['push']({'type':'insertion','content':t('*Insert:*\x20%0',this['getItemLabel'](_0x18f38a['name'],_0x18f38a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x11d696['push']({'type':'deletion','content':t('*Remove:*\x20%0',this['getItemLabel'](_0x18f38a['name'],_0x18f38a['quantity']))});continue;case'addContainer':_0x11d696['push']({'type':'insertion','content':t('*Split:*\x20%0',this['getItemLabel'](_0x18f38a['name'],_0x18f38a['quantity']))});continue;case'removeContainer':_0x11d696['push']({'type':'deletion','content':t('*Merge:*\x20%0',this['getItemLabel'](_0x18f38a['name'],_0x18f38a['quantity']))});continue;}_0x11d696['push'](_0x18f38a);}return _0x11d696;}}
23
+ export default class c{constructor(_0x9d323c,_0x2ec581){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_schema']=_0x9d323c,this['_locale']=_0x2ec581;}['getDescriptions'](_0x2f4133){const _0x294c87=[];for(let _0x3696f6=0x0;_0x3696f6<_0x2f4133['length'];_0x3696f6++){const _0x370e2e=_0x2f4133[_0x3696f6];if(!_0x370e2e['isInContent'])continue;let _0x1d231b=!0x1;for(const _0x458680 of this['_customCallbacks']){const _0x583fcd=_0x458680(_0x370e2e);if(_0x583fcd){_0x583fcd['type']&&_0x294c87['push'](_0x583fcd),_0x1d231b=!0x0;break;}}if(!_0x1d231b){this['_addDescriptionItems'](_0x294c87,_0x370e2e);const _0x292534=_0x2f4133[_0x3696f6+0x1];if(_0x292534&&!_0x370e2e['getFirstRange']()['end']['isEqual'](_0x292534['getFirstRange']()['start'])){const _0x1acc17=_0x294c87[_0x294c87['length']-0x1],_0x586298='insertion'==_0x370e2e['type']?'add':'remove';_0x1acc17&&'text'==_0x1acc17['type']&&(_0x1acc17[_0x586298]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x294c87);}['registerDescriptionCallback'](_0x3cf72e){this['_customCallbacks']['push'](_0x3cf72e);}['registerElementLabel'](_0x40a9b8,_0x37b02d){this['_itemLabels']['set'](_0x40a9b8,_0x37b02d);}['getItemLabel'](_0x28f840,_0x54ebab=0x1){const _0x1495ba=this['_itemLabels']['get'](_0x28f840)||_0x28f840;return'function'==typeof _0x1495ba?_0x1495ba(_0x54ebab):0x1!==_0x54ebab?_0x54ebab+'\x20'+_0x1495ba+'s':''+_0x1495ba;}['_addDescriptionItems'](_0x4bef6c,_0x1da55c){const _0x28f7fb=_0x1da55c['getFirstRange']()['getWalker'](),_0x5d0a4f='insertion'==_0x1da55c['type']?'add':'remove';for(const _0x3e38d2 of _0x28f7fb){const _0x2fa32c=_0x3e38d2['item'],_0x3553dd=_0x4bef6c[_0x4bef6c['length']-0x1];if(_0x2fa32c['is']('textProxy'))_0x3553dd&&_0x3553dd['type']['indexOf']('Container')>-0x1&&_0x4bef6c['pop'](),_0x3553dd&&'text'==_0x3553dd['type']?_0x3553dd[_0x5d0a4f]+=_0x2fa32c['data']:_0x4bef6c['push']({'type':'text','add':'add'==_0x5d0a4f?_0x2fa32c['data']:'','remove':'remove'==_0x5d0a4f?_0x2fa32c['data']:''});else{if(this['_schema']['isObject'](_0x2fa32c)){if(_0x3553dd&&_0x3553dd['type']['indexOf']('Container')>-0x1&&_0x4bef6c['pop'](),'elementEnd'==_0x3e38d2['type'])continue;_0x3553dd&&_0x3553dd['type']==_0x5d0a4f+'Object'&&_0x3553dd['name']==_0x2fa32c['name']?_0x3553dd['quantity']++:_0x4bef6c['push']({'type':_0x5d0a4f+'Object','name':_0x2fa32c['name'],'quantity':0x1}),_0x28f7fb['skip'](_0x3ecf02=>!('elementEnd'==_0x3ecf02['type']&&_0x3ecf02['item']==_0x2fa32c));}else{if(this['_schema']['checkChild'](_0x2fa32c,'$text')||_0x2fa32c['is']('element','softBreak')){if('add'==_0x5d0a4f&&'elementStart'==_0x3e38d2['type']||'remove'==_0x5d0a4f&&'elementEnd'==_0x3e38d2['type'])continue;if(_0x3553dd&&-0x1==_0x3553dd['type']['indexOf']('Container')){'text'==_0x3553dd['type']&&(_0x3553dd[_0x5d0a4f]+='\x0a');continue;}let _0x34d86d;if(_0x34d86d='add'==_0x5d0a4f?_0x2fa32c['nextSibling']&&!this['_schema']['isObject'](_0x2fa32c['nextSibling'])?_0x2fa32c['nextSibling']:null:_0x2fa32c['previousSibling']&&!this['_schema']['isObject'](_0x2fa32c['previousSibling'])?_0x2fa32c['previousSibling']:null,_0x2fa32c['isEmpty']||_0x34d86d&&_0x34d86d['isEmpty']){const _0x3d8fbf=_0x34d86d&&_0x34d86d['isEmpty']?_0x34d86d['name']:_0x2fa32c['name'];_0x3553dd&&_0x3553dd['type']==_0x5d0a4f+'EmptyContainer'&&_0x3553dd['name']==_0x3d8fbf?_0x3553dd['quantity']++:_0x4bef6c['push']({'type':_0x5d0a4f+'EmptyContainer','name':_0x3d8fbf,'quantity':0x1});}else _0x4bef6c['push']({'type':_0x5d0a4f+'Container','name':_0x2fa32c['name']});}}}}}['_resolveDescriptionItems'](_0x21df25){const {t:t}=this['_locale'],_0x1bf2aa=[];for(const _0x1ce54b of _0x21df25){switch(_0x1ce54b['type']){case'text':if(_0x1ce54b['add']=_0x1ce54b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1ce54b['remove']=_0x1ce54b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1ce54b['add']&&''!=_0x1ce54b['remove']){_0x1bf2aa['push']({'type':'replace','content':t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},['\x22'+_0x1ce54b['remove']+'\x22','\x22'+_0x1ce54b['add']+'\x22'])});continue;}if(null!=_0x1ce54b['add']['match'](/^ +$/)){_0x1bf2aa['push']({'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ce54b['add']['length']))});continue;}if(null!=_0x1ce54b['remove']['match'](/^ +$/)){_0x1bf2aa['push']({'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ce54b['remove']['length']))});continue;}if(''!=_0x1ce54b['add']){_0x1bf2aa['push']({'type':'insertion','content':t('*Insert:*\x20%0','\x22'+_0x1ce54b['add']+'\x22')});continue;}_0x1bf2aa['push']({'type':'deletion','content':t('*Remove:*\x20%0','\x22'+_0x1ce54b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1bf2aa['push']({'type':'insertion','content':t('*Insert:*\x20%0',this['getItemLabel'](_0x1ce54b['name'],_0x1ce54b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1bf2aa['push']({'type':'deletion','content':t('*Remove:*\x20%0',this['getItemLabel'](_0x1ce54b['name'],_0x1ce54b['quantity']))});continue;case'addContainer':_0x1bf2aa['push']({'type':'insertion','content':t('*Split:*\x20%0',this['getItemLabel'](_0x1ce54b['name'],_0x1ce54b['quantity']))});continue;case'removeContainer':_0x1bf2aa['push']({'type':'deletion','content':t('*Merge:*\x20%0',this['getItemLabel'](_0x1ce54b['name'],_0x1ce54b['quantity']))});continue;}_0x1bf2aa['push'](_0x1ce54b);}return _0x1bf2aa;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x743e=['editor','get','addSuggestionData','addSuggestion','requires','getSuggestion','adapter','plugins'];(function(_0x415e50,_0x743e05){var _0x265d4e=function(_0x40d18b){while(--_0x40d18b){_0x415e50['push'](_0x415e50['shift']());}};_0x265d4e(++_0x743e05);}(_0x743e,0x176));var _0x265d=function(_0x415e50,_0x743e05){_0x415e50=_0x415e50-0x0;var _0x265d4e=_0x743e[_0x415e50];return _0x265d4e;};import{Plugin as _0x395076}from'ckeditor5/src/core';import _0x4f715c from'@ckeditor/ckeditor5-comments/src/comments';import _0x2a1ec3 from'@ckeditor/ckeditor5-comments/src/annotations/widesidebar';import _0x1171d6 from'@ckeditor/ckeditor5-comments/src/annotations/narrowsidebar';import _0x15f79d from'@ckeditor/ckeditor5-comments/src/annotations/inlineannotations';import _0x144252 from'./trackchangesui';import _0x446110 from'./trackchangesediting';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';export default class S extends _0x395076{static get[_0x265d('0x6')](){return[_0x446110,_0x144252,_0x4f715c,_0x2a1ec3,_0x1171d6,_0x15f79d];}static get['pluginName'](){return'TrackChanges';}set[_0x265d('0x0')](_0x281c55){this[_0x265d('0x2')]['plugins'][_0x265d('0x3')](_0x446110)[_0x265d('0x0')]=_0x281c55;}get['adapter'](){return this[_0x265d('0x2')]['plugins'][_0x265d('0x3')](_0x446110)[_0x265d('0x0')];}[_0x265d('0x5')](_0x13e7d5){return this[_0x265d('0x2')][_0x265d('0x1')][_0x265d('0x3')](_0x446110)[_0x265d('0x4')](_0x13e7d5);}['getSuggestions'](_0x3ad68f){return this['editor']['plugins'][_0x265d('0x3')](_0x446110)['getSuggestions'](_0x3ad68f);}[_0x265d('0x7')](_0x2affa9){return this[_0x265d('0x2')][_0x265d('0x1')][_0x265d('0x3')](_0x446110)[_0x265d('0x7')](_0x2affa9);}}
23
+ var _0x3ec6=['get','editor','requires','pluginName','getSuggestions','adapter','plugins','addSuggestionData','getSuggestion'];(function(_0x181ba3,_0x3ec64d){var _0x20cb5b=function(_0x39d4ad){while(--_0x39d4ad){_0x181ba3['push'](_0x181ba3['shift']());}};_0x20cb5b(++_0x3ec64d);}(_0x3ec6,0xc9));var _0x20cb=function(_0x181ba3,_0x3ec64d){_0x181ba3=_0x181ba3-0x0;var _0x20cb5b=_0x3ec6[_0x181ba3];return _0x20cb5b;};import{Plugin as _0x3681f1}from'ckeditor5/src/core';import _0x9a4751 from'@ckeditor/ckeditor5-comments/src/comments';import _0x10f059 from'@ckeditor/ckeditor5-comments/src/annotations/widesidebar';import _0xe09d6d from'@ckeditor/ckeditor5-comments/src/annotations/narrowsidebar';import _0x1a9f0f from'@ckeditor/ckeditor5-comments/src/annotations/inlineannotations';import _0x154d31 from'./trackchangesui';import _0x194e36 from'./trackchangesediting';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';export default class S extends _0x3681f1{static get[_0x20cb('0x8')](){return[_0x194e36,_0x154d31,_0x9a4751,_0x10f059,_0xe09d6d,_0x1a9f0f];}static get[_0x20cb('0x0')](){return'TrackChanges';}set[_0x20cb('0x2')](_0x56a092){this[_0x20cb('0x7')][_0x20cb('0x3')]['get'](_0x194e36)[_0x20cb('0x2')]=_0x56a092;}get[_0x20cb('0x2')](){return this[_0x20cb('0x7')]['plugins'][_0x20cb('0x6')](_0x194e36)[_0x20cb('0x2')];}['addSuggestion'](_0x50fcad){return this[_0x20cb('0x7')][_0x20cb('0x3')]['get'](_0x194e36)[_0x20cb('0x4')](_0x50fcad);}[_0x20cb('0x1')](_0x14a21b){return this[_0x20cb('0x7')]['plugins'][_0x20cb('0x6')](_0x194e36)[_0x20cb('0x1')](_0x14a21b);}[_0x20cb('0x5')](_0x40d03f){return this[_0x20cb('0x7')]['plugins']['get'](_0x194e36)[_0x20cb('0x5')](_0x40d03f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb794=['includes','set','track-changes-data-invalid-editor-creator','concat','addUser','plugins','context','addSuggestionData','RealTimeCollaborativeEditing','getDataWithDiscardedSuggestions','names','pluginName','getDataWithAcceptedSuggestions','users','init','requires','result','getUser','acceptAllSuggestions','initialData','createDocumentFragment','config','name','reduce','push','create','editorCreator','RealTimeCollaborativeTrackChanges','TrackChangesDataGetter','destroy','add','div','getSuggestions','define','data','_adapter','constructor','discardAllSuggestions','trackChangesData.editorCreator','getRootNames','model','editor','execute','useAnonymousUser','builtinPlugins','trackChangesData','Users','get','map','extraPlugins','function','has','toolbar','TrackChangesEditing'];(function(_0x42011e,_0xb7940f){const _0x36f58d=function(_0x2429e3){while(--_0x2429e3){_0x42011e['push'](_0x42011e['shift']());}};_0x36f58d(++_0xb7940f);}(_0xb794,0x179));const _0x36f5=function(_0x42011e,_0xb7940f){_0x42011e=_0x42011e-0x0;let _0x36f58d=_0xb794[_0x42011e];return _0x36f58d;};import{Plugin as _0xf788ba}from'ckeditor5/src/core';import _0x4ad043 from'./trackchangesediting';import{CKEditorError as _0x41dd0d}from'ckeditor5/src/utils';const T=[_0x36f5('0x14'),_0x36f5('0x7'),_0x36f5('0x35')],D=[_0x36f5('0x9'),'RealTimeCollaborativeComments',_0x36f5('0x1c')];export default class w extends _0xf788ba{static get[_0x36f5('0x10')](){return[_0x4ad043];}static get[_0x36f5('0xc')](){return'TrackChangesData';}[_0x36f5('0xf')](){const _0x42bc10=this[_0x36f5('0x2a')];if(_0x42bc10['config'][_0x36f5('0x22')](_0x36f5('0x27'),_0x1ce0b4=>_0x42bc10[_0x36f5('0x25')][_0x36f5('0x1a')]('',_0x1ce0b4)),_0x36f5('0x33')!=typeof _0x42bc10[_0x36f5('0x16')][_0x36f5('0x30')](_0x36f5('0x2e'))[_0x36f5('0x1b')])throw new _0x41dd0d(_0x36f5('0x3'));}[_0x36f5('0xd')](_0x4866ed){return v(this[_0x36f5('0x2a')],!0x0,_0x4866ed);}[_0x36f5('0xa')](_0x588a95){return v(this['editor'],!0x1,_0x588a95);}}class y extends _0xf788ba{static get[_0x36f5('0xc')](){return _0x36f5('0x1d');}[_0x36f5('0xf')](){this[_0x36f5('0x11')]='end',this['editor'][_0x36f5('0x6')][_0x36f5('0x30')]('CommentsRepository')[_0x36f5('0x24')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x36f5('0x2a')][_0x36f5('0x6')]['get']('TrackChangesEditing')[_0x36f5('0x24')]=null;}}async function v(_0x3c0c07,_0x470552,_0x421ec9){const _0x17fe5e=function(_0x4f019b){const _0x47066e={};for(const _0x2e5977 of _0x4f019b[_0x36f5('0x16')][_0x36f5('0xb')]())T[_0x36f5('0x1')](_0x2e5977)||(_0x47066e[_0x2e5977]=_0x4f019b[_0x36f5('0x16')][_0x36f5('0x30')](_0x2e5977));const _0x504924=_0x4f019b[_0x36f5('0x25')][_0x36f5('0x2d')]||[],_0x6a8f31=_0x47066e[_0x36f5('0x32')]||[];delete _0x47066e[_0x36f5('0x32')];const _0x4cee8c=_0x504924['concat'](_0x47066e['plugins'])[_0x36f5('0x4')](_0x6a8f31)[_0x36f5('0x31')](_0x3f8c20=>'string'==typeof _0x3f8c20?_0x504924['find'](_0x462434=>_0x462434['pluginName']==_0x3f8c20):_0x3f8c20),_0x1d5646=Array['from'](new Set(_0x4cee8c));return _0x47066e[_0x36f5('0x6')]=_0x1d5646['filter'](_0x3a7e62=>A(_0x3a7e62,new Set())),_0x47066e[_0x36f5('0x6')][_0x36f5('0x19')](y),_0x47066e[_0x36f5('0x6')][_0x36f5('0x19')](_0x4ad043),_0x47066e;}(_0x3c0c07),_0x291d72=document[_0x36f5('0x15')](),_0x8d7619=_0x3c0c07['config']['get'](_0x36f5('0x2e'))[_0x36f5('0x1b')],_0xb5d6b0=await _0x8d7619(_0x17fe5e,()=>function(_0x1a8ecc){const _0x1d8cd8=document['createElement'](_0x36f5('0x20'));return _0x1a8ecc['appendChild'](_0x1d8cd8),_0x1d8cd8;}(_0x291d72));!function(_0x68b95a,_0x57124a){const _0x52ab9a=_0x68b95a[_0x36f5('0x29')]['document'][_0x36f5('0x28')]()[_0x36f5('0x18')]((_0x54f0f0,_0x4d5c16)=>(_0x54f0f0[_0x4d5c16]=_0x68b95a['data'][_0x36f5('0x30')]({'rootName':_0x4d5c16}),_0x54f0f0),{}),_0x5aa0aa=_0x68b95a[_0x36f5('0x6')][_0x36f5('0x30')](_0x36f5('0x2f'))[_0x36f5('0xe')][_0x36f5('0x31')](_0x19e850=>({'id':_0x19e850['id']})),_0x4d06fe=_0x68b95a[_0x36f5('0x6')][_0x36f5('0x30')](_0x36f5('0x0'))[_0x36f5('0x21')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x217cad=_0x57124a[_0x36f5('0x6')]['get'](_0x36f5('0x2f')),_0x5c8907=_0x57124a[_0x36f5('0x6')][_0x36f5('0x30')]('TrackChangesEditing');for(const _0x3e457e of _0x5aa0aa)_0x217cad[_0x36f5('0x12')](_0x3e457e['id'])||_0x217cad[_0x36f5('0x5')](_0x3e457e);_0x217cad['me']||_0x217cad[_0x36f5('0x2c')]();for(const _0x68238c of _0x4d06fe)_0x5c8907[_0x36f5('0x8')](_0x68238c);_0x57124a[_0x36f5('0x23')][_0x36f5('0x2')](_0x52ab9a);}(_0x3c0c07,_0xb5d6b0),_0xb5d6b0[_0x36f5('0x2b')](_0x470552?_0x36f5('0x13'):_0x36f5('0x26'));const _0x4db800=_0xb5d6b0[_0x36f5('0x23')][_0x36f5('0x30')](_0x421ec9);return await _0xb5d6b0[_0x36f5('0x1e')](),_0x4db800;}function A(_0x2929d1,_0x2750ab){if(_0x2750ab[_0x36f5('0x34')](_0x2929d1))return!0x0;_0x2750ab[_0x36f5('0x1f')](_0x2929d1);const _0x587e3d=_0x36f5('0x33')==typeof _0x2929d1?_0x2929d1[_0x36f5('0xc')]||_0x2929d1[_0x36f5('0x17')]:_0x2929d1;return(!_0x587e3d||!D[_0x36f5('0x1')](_0x587e3d))&&(!_0x2929d1[_0x36f5('0x10')]||_0x2929d1['requires']['every'](_0x3ef390=>A(_0x3ef390,_0x2750ab)));}
23
+ const _0x3b2f=['define','result','users','RealTimeCollaborativeTrackChanges','getSuggestions','editor','pluginName','TrackChangesDataGetter','function','Autosave','get','constructor','editorCreator','filter','getDataWithDiscardedSuggestions','addSuggestionData','track-changes-data-invalid-editor-creator','TrackChangesEditing','every','from','div','trackChangesData.editorCreator','string','extraPlugins','plugins','init','map','trackChangesData','document','push','Users','acceptAllSuggestions','RealTimeCollaborativeComments','concat','config','model','destroy','includes','toolbar','getDataWithAcceptedSuggestions','data','context','createDocumentFragment','useAnonymousUser','reduce','getUser','end','requires','has','appendChild','discardAllSuggestions','create','_adapter','createElement'];(function(_0x4bd04c,_0x3b2ffd){const _0x2c90d7=function(_0xb18e4e){while(--_0xb18e4e){_0x4bd04c['push'](_0x4bd04c['shift']());}};_0x2c90d7(++_0x3b2ffd);}(_0x3b2f,0x1a2));const _0x2c90=function(_0x4bd04c,_0x3b2ffd){_0x4bd04c=_0x4bd04c-0x0;let _0x2c90d7=_0x3b2f[_0x4bd04c];return _0x2c90d7;};import{Plugin as _0x55f0a5}from'ckeditor5/src/core';import _0x1df7bf from'./trackchangesediting';import{CKEditorError as _0xaba277}from'ckeditor5/src/utils';const T=['initialData',_0x2c90('0x1'),_0x2c90('0x34')],D=['RealTimeCollaborativeEditing',_0x2c90('0x2e'),_0x2c90('0x11'),_0x2c90('0x17')];export default class w extends _0x55f0a5{static get[_0x2c90('0x7')](){return[_0x1df7bf];}static get[_0x2c90('0x14')](){return'TrackChangesData';}[_0x2c90('0x27')](){const _0x1b92d4=this[_0x2c90('0x13')];if(_0x1b92d4[_0x2c90('0x30')][_0x2c90('0xe')](_0x2c90('0x23'),_0x592a8d=>_0x1b92d4[_0x2c90('0x19')][_0x2c90('0xb')]('',_0x592a8d)),_0x2c90('0x16')!=typeof _0x1b92d4[_0x2c90('0x30')][_0x2c90('0x18')](_0x2c90('0x29'))[_0x2c90('0x1a')])throw new _0xaba277(_0x2c90('0x1e'));}[_0x2c90('0x35')](_0x3c27d1){return y(this[_0x2c90('0x13')],!0x0,_0x3c27d1);}[_0x2c90('0x1c')](_0x411372){return y(this['editor'],!0x1,_0x411372);}}class v extends _0x55f0a5{static get['pluginName'](){return _0x2c90('0x15');}[_0x2c90('0x27')](){this[_0x2c90('0xf')]=_0x2c90('0x6'),this[_0x2c90('0x13')][_0x2c90('0x26')][_0x2c90('0x18')]('CommentsRepository')[_0x2c90('0xc')]={'getCommentThread':()=>new Promise(()=>{})},this['editor']['plugins'][_0x2c90('0x18')](_0x2c90('0x1f'))[_0x2c90('0xc')]=null;}}async function y(_0xbec424,_0x50919b,_0x398e9e){const _0x1cff77=function(_0x343df9){const _0x3b8131={};for(const _0x2a61e5 of _0x343df9['config']['names']())T[_0x2c90('0x33')](_0x2a61e5)||(_0x3b8131[_0x2a61e5]=_0x343df9['config'][_0x2c90('0x18')](_0x2a61e5));const _0x540a1a=_0x343df9[_0x2c90('0x19')]['builtinPlugins']||[],_0x29ed24=_0x3b8131[_0x2c90('0x25')]||[];delete _0x3b8131['extraPlugins'];const _0x31d6ff=_0x540a1a[_0x2c90('0x2f')](_0x3b8131[_0x2c90('0x26')])[_0x2c90('0x2f')](_0x29ed24)['map'](_0x24f469=>_0x2c90('0x24')==typeof _0x24f469?_0x540a1a['find'](_0x4ce516=>_0x4ce516[_0x2c90('0x14')]==_0x24f469):_0x24f469),_0x46e49a=Array[_0x2c90('0x21')](new Set(_0x31d6ff));return _0x3b8131[_0x2c90('0x26')]=_0x46e49a[_0x2c90('0x1b')](_0x1594c4=>A(_0x1594c4,new Set())),_0x3b8131[_0x2c90('0x26')][_0x2c90('0x2b')](v),_0x3b8131[_0x2c90('0x26')][_0x2c90('0x2b')](_0x1df7bf),_0x3b8131;}(_0xbec424),_0x37b999=document[_0x2c90('0x2')](),_0x48b455=_0xbec424[_0x2c90('0x30')][_0x2c90('0x18')](_0x2c90('0x29'))['editorCreator'],_0x218392=await _0x48b455(_0x1cff77,()=>function(_0x10d459){const _0x45dca6=document[_0x2c90('0xd')](_0x2c90('0x22'));return _0x10d459[_0x2c90('0x9')](_0x45dca6),_0x45dca6;}(_0x37b999));!function(_0xb9d801,_0x94af58){const _0x1bf795=_0xb9d801[_0x2c90('0x31')][_0x2c90('0x2a')]['getRootNames']()[_0x2c90('0x4')]((_0x4a3a5a,_0x26ff3e)=>(_0x4a3a5a[_0x26ff3e]=_0xb9d801[_0x2c90('0x0')][_0x2c90('0x18')]({'rootName':_0x26ff3e}),_0x4a3a5a),{}),_0x40da15=_0xb9d801[_0x2c90('0x26')][_0x2c90('0x18')](_0x2c90('0x2c'))[_0x2c90('0x10')][_0x2c90('0x28')](_0x287423=>({'id':_0x287423['id']})),_0xb60bd9=_0xb9d801[_0x2c90('0x26')]['get']('TrackChangesEditing')[_0x2c90('0x12')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfe3193=_0x94af58[_0x2c90('0x26')][_0x2c90('0x18')](_0x2c90('0x2c')),_0x588557=_0x94af58[_0x2c90('0x26')][_0x2c90('0x18')](_0x2c90('0x1f'));for(const _0xad1d1e of _0x40da15)_0xfe3193[_0x2c90('0x5')](_0xad1d1e['id'])||_0xfe3193['addUser'](_0xad1d1e);_0xfe3193['me']||_0xfe3193[_0x2c90('0x3')]();for(const _0x2d15ff of _0xb60bd9)_0x588557[_0x2c90('0x1d')](_0x2d15ff);_0x94af58[_0x2c90('0x0')]['set'](_0x1bf795);}(_0xbec424,_0x218392),_0x218392['execute'](_0x50919b?_0x2c90('0x2d'):_0x2c90('0xa'));const _0x3e2b93=_0x218392[_0x2c90('0x0')][_0x2c90('0x18')](_0x398e9e);return await _0x218392[_0x2c90('0x32')](),_0x3e2b93;}function A(_0x3349f1,_0xad752d){if(_0xad752d[_0x2c90('0x8')](_0x3349f1))return!0x0;_0xad752d['add'](_0x3349f1);const _0x230050=_0x2c90('0x16')==typeof _0x3349f1?_0x3349f1[_0x2c90('0x14')]||_0x3349f1['name']:_0x3349f1;return(!_0x230050||!D[_0x2c90('0x33')](_0x230050))&&(!_0x3349f1[_0x2c90('0x7')]||_0x3349f1[_0x2c90('0x7')][_0x2c90('0x20')](_0x230dd9=>A(_0x230dd9,_0xad752d)));}