@ckeditor/ckeditor5-track-changes 37.0.1 → 38.0.0-rc.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 (164) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -0
  49. package/lang/translations/ar.po +15 -1
  50. package/lang/translations/az.po +11 -1
  51. package/lang/translations/bg.po +11 -1
  52. package/lang/translations/bn.po +11 -1
  53. package/lang/translations/ca.po +11 -1
  54. package/lang/translations/cs.po +13 -1
  55. package/lang/translations/da.po +11 -1
  56. package/lang/translations/de.po +11 -1
  57. package/lang/translations/el.po +11 -1
  58. package/lang/translations/en-au.po +31 -21
  59. package/lang/translations/en.po +10 -0
  60. package/lang/translations/es.po +12 -1
  61. package/lang/translations/et.po +11 -1
  62. package/lang/translations/fi.po +11 -1
  63. package/lang/translations/fr.po +12 -1
  64. package/lang/translations/gl.po +11 -1
  65. package/lang/translations/he.po +13 -1
  66. package/lang/translations/hi.po +11 -1
  67. package/lang/translations/hr.po +34 -23
  68. package/lang/translations/hu.po +11 -1
  69. package/lang/translations/id.po +10 -1
  70. package/lang/translations/it.po +12 -1
  71. package/lang/translations/ja.po +10 -1
  72. package/lang/translations/ko.po +10 -1
  73. package/lang/translations/lt.po +13 -1
  74. package/lang/translations/lv.po +12 -1
  75. package/lang/translations/ms.po +10 -1
  76. package/lang/translations/nl.po +11 -1
  77. package/lang/translations/no.po +11 -1
  78. package/lang/translations/pl.po +13 -1
  79. package/lang/translations/pt-br.po +12 -1
  80. package/lang/translations/pt.po +12 -1
  81. package/lang/translations/ro.po +12 -1
  82. package/lang/translations/ru.po +13 -1
  83. package/lang/translations/sk.po +13 -1
  84. package/lang/translations/sr-latn.po +15 -4
  85. package/lang/translations/sr.po +33 -22
  86. package/lang/translations/sv.po +11 -1
  87. package/lang/translations/th.po +10 -1
  88. package/lang/translations/tk.po +11 -1
  89. package/lang/translations/tr.po +11 -1
  90. package/lang/translations/tt.po +10 -1
  91. package/lang/translations/uk.po +13 -1
  92. package/lang/translations/ur.po +11 -1
  93. package/lang/translations/vi.po +10 -1
  94. package/lang/translations/zh-cn.po +10 -1
  95. package/lang/translations/zh.po +10 -1
  96. package/package.json +3 -3
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardsuggestioncommand.js +1 -1
  99. package/src/commands/executeonallsuggestionscommand.js +1 -1
  100. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/index.d.ts +1 -1
  103. package/src/integrations/alignment.js +1 -1
  104. package/src/integrations/basicstyles.js +1 -1
  105. package/src/integrations/blockquote.js +1 -1
  106. package/src/integrations/ckbox.js +1 -1
  107. package/src/integrations/codeblock.js +1 -1
  108. package/src/integrations/comments.js +1 -1
  109. package/src/integrations/deletecommand.js +1 -1
  110. package/src/integrations/documentlist.js +1 -1
  111. package/src/integrations/documentlistproperties.js +1 -1
  112. package/src/integrations/entercommand.js +1 -1
  113. package/src/integrations/findandreplace.js +1 -1
  114. package/src/integrations/font.js +1 -1
  115. package/src/integrations/formatpainter.d.ts +13 -0
  116. package/src/integrations/formatpainter.js +23 -0
  117. package/src/integrations/heading.js +1 -1
  118. package/src/integrations/highlight.js +1 -1
  119. package/src/integrations/horizontalline.js +1 -1
  120. package/src/integrations/htmlembed.js +1 -1
  121. package/src/integrations/image.js +1 -1
  122. package/src/integrations/imagereplace.js +1 -1
  123. package/src/integrations/importword.js +1 -1
  124. package/src/integrations/indent.js +1 -1
  125. package/src/integrations/inputcommand.js +1 -1
  126. package/src/integrations/link.js +1 -1
  127. package/src/integrations/list.js +1 -1
  128. package/src/integrations/listproperties.js +1 -1
  129. package/src/integrations/mediaembed.js +1 -1
  130. package/src/integrations/mention.js +1 -1
  131. package/src/integrations/pagebreak.js +1 -1
  132. package/src/integrations/paragraph.js +1 -1
  133. package/src/integrations/removeformat.js +1 -1
  134. package/src/integrations/restrictededitingmode.js +1 -1
  135. package/src/integrations/shiftentercommand.js +1 -1
  136. package/src/integrations/standardeditingmode.js +1 -1
  137. package/src/integrations/style.js +1 -1
  138. package/src/integrations/table.js +1 -1
  139. package/src/integrations/tablecaption.js +1 -1
  140. package/src/integrations/tableclipboard.js +1 -1
  141. package/src/integrations/tablecolumnresize.js +1 -1
  142. package/src/integrations/tableheadings.js +1 -1
  143. package/src/integrations/tablemergesplit.js +1 -1
  144. package/src/integrations/tableofcontents.d.ts +13 -0
  145. package/src/integrations/tableofcontents.js +23 -0
  146. package/src/integrations/tableproperties.js +1 -1
  147. package/src/integrations/template.d.ts +13 -0
  148. package/src/integrations/template.js +23 -0
  149. package/src/integrations/title.js +1 -1
  150. package/src/integrations/undo.js +1 -1
  151. package/src/integrations/utils.js +1 -1
  152. package/src/suggestion.js +1 -1
  153. package/src/suggestiondescriptionfactory.js +1 -1
  154. package/src/trackchanges.d.ts +23 -5
  155. package/src/trackchanges.js +1 -1
  156. package/src/trackchangesconfig.d.ts +23 -5
  157. package/src/trackchangesdata.js +1 -1
  158. package/src/trackchangesediting.js +1 -1
  159. package/src/trackchangesui.js +1 -1
  160. package/src/ui/suggestioncontroller.js +1 -1
  161. package/src/ui/view/basesuggestionthreadview.js +1 -1
  162. package/src/ui/view/suggestionthreadview.js +1 -1
  163. package/src/utils/common-translations.js +1 -1
  164. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ba7=['join','registerCustomCallback','tableCellProperties','enableCommand','_suggestionFactory','tableCellPadding','removeAttribute','tableCellVerticalAlignment','TableCellPropertiesEditing','_handlePropertyChange','tableHeight','tableBackgroundColor','handleDiscardAction','tableAlignment','TrackChangesTableProperties','tableCellBorderWidth','data','format','enqueueChange','editor','_getSuggestion','tableCellHorizontalAlignment','tableBorderColor','start','tableCellBorderColor','getAttribute','getSuggestionCallback','getContainedElement','pluginName','plugins','commandParams','getFirstPosition','discard','afterInit','table','*Format:*\x20change\x20table\x20cell\x20properties','setAttribute','handleSuggestionDescription','tableProperties','selection','getSelectionAffectedTableCells','TablePropertiesEditing','change','model','*Format:*\x20change\x20table\x20properties','findAncestor','tableBorderWidth','get','TableUtils','has','subType','TrackChangesEditing','getSuggestions','accept','registerDescriptionCallback','formatBlock','tableWidth','locale','tableCellHeight','tableCellWidth','document'];(function(_0x5063a4,_0x4ba720){const _0x4df3af=function(_0x4b051d){while(--_0x4b051d){_0x5063a4['push'](_0x5063a4['shift']());}};_0x4df3af(++_0x4ba720);}(_0x4ba7,0x1b6));const _0x4df3=function(_0x5063a4,_0x4ba720){_0x5063a4=_0x5063a4-0x0;let _0x4df3af=_0x4ba7[_0x5063a4];return _0x4df3af;};import{Plugin as _0x3e56b8}from'ckeditor5/src/core';import{getTranslation as _0x37477f}from'../utils/common-translations';export default class It extends _0x3e56b8{constructor(_0x2e3371){super(_0x2e3371),this[_0x4df3('0x1b')]=[_0x4df3('0xb'),'tableBorderStyle',_0x4df3('0x23'),_0x4df3('0x2'),_0x4df3('0x2d'),_0x4df3('0x3c'),_0x4df3('0x0')],this[_0x4df3('0x34')]=[_0x4df3('0xd'),'tableCellBorderStyle',_0x4df3('0x4'),_0x4df3('0x37'),_0x4df3('0x30'),_0x4df3('0x2f'),'tableCellBackgroundColor',_0x4df3('0xa'),_0x4df3('0x39')];}static get[_0x4df3('0x11')](){return _0x4df3('0x3');}[_0x4df3('0x16')](){const _0x203bfd=this[_0x4df3('0x8')][_0x4df3('0x12')][_0x4df3('0x24')](_0x4df3('0x28'));if(this[_0x4df3('0x8')][_0x4df3('0x12')]['has'](_0x4df3('0x1e'))){for(const _0x248990 of this[_0x4df3('0x1b')])_0x203bfd[_0x4df3('0x35')](_0x248990,(_0x11fd8c,_0x4a897a)=>{const _0x4fd53a=this[_0x4df3('0x8')][_0x4df3('0x20')][_0x4df3('0x31')][_0x4df3('0x1c')][_0x4df3('0x14')]()[_0x4df3('0x22')](_0x4df3('0x17'));this['_handlePropertyChange'](_0x248990,[_0x4fd53a],this['tableProperties'],_0x4df3('0x1b'),_0x11fd8c,_0x4a897a);});_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')](_0x4df3('0x2c'),_0x4df3('0x1b'),_0x4df3('0x2a'),_0x203bfd['_suggestionFactory']['getSuggestionCallback'](_0x4df3('0x2c'),null,_0x4df3('0x15'))),_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')]('formatBlock',_0x4df3('0x1b'),_0x4df3('0x15'),(_0xaf72a0,_0x355253)=>this[_0x4df3('0x1')](this[_0x4df3('0x1b')],_0xaf72a0,_0x355253)),_0x203bfd[_0x4df3('0x36')]['registerCustomCallback'](_0x4df3('0x2c'),_0x4df3('0x1b'),_0x4df3('0x32'),()=>!0x1);}if(this['editor'][_0x4df3('0x12')][_0x4df3('0x26')](_0x4df3('0x3a'))){for(const _0x33554e of this['tableCellProperties'])_0x203bfd[_0x4df3('0x35')](_0x33554e,(_0x4ca592,_0x5a7edb)=>{const _0x196404=this[_0x4df3('0x8')][_0x4df3('0x12')]['get'](_0x4df3('0x25'))[_0x4df3('0x1d')](this[_0x4df3('0x8')]['model']['document']['selection']);this[_0x4df3('0x3b')](_0x33554e,_0x196404,this['tableCellProperties'],_0x4df3('0x34'),_0x4ca592,_0x5a7edb);});_0x203bfd[_0x4df3('0x36')]['registerCustomCallback'](_0x4df3('0x2c'),_0x4df3('0x34'),_0x4df3('0x2a'),_0x203bfd[_0x4df3('0x36')][_0x4df3('0xf')](_0x4df3('0x2c'),null,_0x4df3('0x15'))),_0x203bfd[_0x4df3('0x36')][_0x4df3('0x33')](_0x4df3('0x2c'),'tableCellProperties',_0x4df3('0x15'),(_0x14414f,_0x472364)=>this[_0x4df3('0x1')](this[_0x4df3('0x34')],_0x14414f,_0x472364)),_0x203bfd['_suggestionFactory'][_0x4df3('0x33')](_0x4df3('0x2c'),'tableCellProperties','join',()=>!0x1);}_0x203bfd['_descriptionFactory'][_0x4df3('0x2b')](_0x597ca1=>this['handleSuggestionDescription'](_0x597ca1));}[_0x4df3('0x3b')](_0x1fc7b5,_0x5c65e2,_0x20b061,_0x4b97a4,_0x410588,_0x46c70b){const _0x2e06ed=this[_0x4df3('0x8')]['plugins'][_0x4df3('0x24')](_0x4df3('0x28'));this[_0x4df3('0x8')]['model'][_0x4df3('0x7')](_0x46c70b['batch'],()=>{for(const _0x20e304 of _0x5c65e2){if(this[_0x4df3('0x9')](_0x20e304,_0x4b97a4))_0x410588(_0x46c70b);else{const _0x24a8a0={};for(const _0x13fe9c of _0x20b061){const _0x1743c6=_0x20e304[_0x4df3('0xe')](_0x13fe9c);void 0x0!==_0x1743c6&&(_0x24a8a0[_0x13fe9c]=_0x1743c6);}_0x410588(_0x46c70b),_0x2e06ed['markBlockFormat'](_0x20e304,{'commandParams':[_0x24a8a0]},[],_0x4b97a4);}}});}['handleDiscardAction'](_0x30aa9b,_0x5f35a0,_0x401d37){const _0x325fba=_0x5f35a0[0x0][_0x4df3('0xc')]['nodeAfter'],_0x3df365=_0x401d37[_0x4df3('0x13')][0x0];this[_0x4df3('0x8')][_0x4df3('0x20')][_0x4df3('0x1f')](_0x4b545f=>{for(const _0x1c6a46 of _0x30aa9b)void 0x0!==_0x3df365[_0x1c6a46]?_0x4b545f[_0x4df3('0x19')](_0x1c6a46,_0x3df365[_0x1c6a46],_0x325fba):_0x4b545f[_0x4df3('0x38')](_0x1c6a46,_0x325fba);});}[_0x4df3('0x1a')](_0xdb6fdc){if(_0xdb6fdc[_0x4df3('0x5')])switch(_0xdb6fdc[_0x4df3('0x27')]){case _0x4df3('0x1b'):return{'type':_0x4df3('0x6'),'content':_0x37477f(this['editor'][_0x4df3('0x2e')],_0x4df3('0x21'))};case _0x4df3('0x34'):return{'type':_0x4df3('0x6'),'content':_0x37477f(this[_0x4df3('0x8')][_0x4df3('0x2e')],_0x4df3('0x18'))};}}['_getSuggestion'](_0x26dfc6,_0x153e98){const _0x4372bc=this[_0x4df3('0x8')]['plugins']['get']('TrackChangesEditing');for(const _0x113783 of _0x4372bc[_0x4df3('0x29')]({'skipNotAttached':!0x0})){const _0x1e58bf=_0x113783[_0x4df3('0x10')]();if(_0x113783[_0x4df3('0x27')]===_0x153e98&&_0x1e58bf===_0x26dfc6)return _0x113783;}return null;}}
23
+ const _0xc83f=['_handlePropertyChange','_descriptionFactory','pluginName','model','handleDiscardAction','get','getFirstPosition','tableWidth','TrackChangesTableProperties','getSuggestions','removeAttribute','tableCellBorderColor','TrackChangesEditing','locale','accept','subType','setAttribute','tableCellBorderWidth','*Format:*\x20change\x20table\x20properties','enableCommand','formatBlock','tableBorderColor','discard','TablePropertiesEditing','registerCustomCallback','change','document','join','tableProperties','tableCellWidth','batch','TableUtils','tableBackgroundColor','getContainedElement','*Format:*\x20change\x20table\x20cell\x20properties','_getSuggestion','tableBorderWidth','plugins','tableCellHeight','tableAlignment','tableCellVerticalAlignment','has','handleSuggestionDescription','editor','tableCellBorderStyle','TableCellPropertiesEditing','tableCellBackgroundColor','selection','tableBorderStyle','_suggestionFactory','table','getSelectionAffectedTableCells','getAttribute','afterInit','tableCellProperties','getSuggestionCallback'];(function(_0x52ff05,_0xc83f0e){const _0x121c8d=function(_0x334d71){while(--_0x334d71){_0x52ff05['push'](_0x52ff05['shift']());}};_0x121c8d(++_0xc83f0e);}(_0xc83f,0x1c0));const _0x121c=function(_0x52ff05,_0xc83f0e){_0x52ff05=_0x52ff05-0x0;let _0x121c8d=_0xc83f[_0x52ff05];return _0x121c8d;};import{Plugin as _0x35c326}from'ckeditor5/src/core';import{getTranslation as _0x386dd}from'../utils/common-translations';export default class Ct extends _0x35c326{constructor(_0x26c180){super(_0x26c180),this[_0x121c('0x1c')]=[_0x121c('0x15'),_0x121c('0x30'),_0x121c('0x24'),_0x121c('0x27'),_0x121c('0x7'),'tableHeight',_0x121c('0x20')],this['tableCellProperties']=[_0x121c('0xb'),_0x121c('0x2c'),_0x121c('0x11'),'tableCellPadding',_0x121c('0x1d'),_0x121c('0x26'),_0x121c('0x2e'),'tableCellHorizontalAlignment',_0x121c('0x28')];}static get[_0x121c('0x2')](){return _0x121c('0x8');}[_0x121c('0x35')](){const _0x184c0c=this[_0x121c('0x2b')][_0x121c('0x25')][_0x121c('0x5')](_0x121c('0xc'));if(this[_0x121c('0x2b')]['plugins'][_0x121c('0x29')](_0x121c('0x17'))){for(const _0x2a6f3f of this[_0x121c('0x1c')])_0x184c0c['enableCommand'](_0x2a6f3f,(_0x28802c,_0x40ab39)=>{const _0x1425c0=this['editor'][_0x121c('0x3')][_0x121c('0x1a')][_0x121c('0x2f')][_0x121c('0x6')]()['findAncestor'](_0x121c('0x32'));this['_handlePropertyChange'](_0x2a6f3f,[_0x1425c0],this[_0x121c('0x1c')],'tableProperties',_0x28802c,_0x40ab39);});_0x184c0c[_0x121c('0x31')]['registerCustomCallback'](_0x121c('0x14'),_0x121c('0x1c'),'accept',_0x184c0c[_0x121c('0x31')]['getSuggestionCallback'](_0x121c('0x14'),null,_0x121c('0x16'))),_0x184c0c[_0x121c('0x31')]['registerCustomCallback']('formatBlock',_0x121c('0x1c'),_0x121c('0x16'),(_0x2d8ec1,_0x48a32c)=>this['handleDiscardAction'](this[_0x121c('0x1c')],_0x2d8ec1,_0x48a32c)),_0x184c0c[_0x121c('0x31')][_0x121c('0x18')](_0x121c('0x14'),'tableProperties',_0x121c('0x1b'),()=>!0x1);}if(this[_0x121c('0x2b')][_0x121c('0x25')][_0x121c('0x29')](_0x121c('0x2d'))){for(const _0x200cbd of this[_0x121c('0x36')])_0x184c0c[_0x121c('0x13')](_0x200cbd,(_0x57a76b,_0x261e83)=>{const _0x463758=this[_0x121c('0x2b')][_0x121c('0x25')][_0x121c('0x5')](_0x121c('0x1f'))[_0x121c('0x33')](this[_0x121c('0x2b')][_0x121c('0x3')]['document'][_0x121c('0x2f')]);this[_0x121c('0x0')](_0x200cbd,_0x463758,this[_0x121c('0x36')],'tableCellProperties',_0x57a76b,_0x261e83);});_0x184c0c[_0x121c('0x31')]['registerCustomCallback'](_0x121c('0x14'),_0x121c('0x36'),_0x121c('0xe'),_0x184c0c[_0x121c('0x31')][_0x121c('0x37')](_0x121c('0x14'),null,_0x121c('0x16'))),_0x184c0c['_suggestionFactory'][_0x121c('0x18')]('formatBlock',_0x121c('0x36'),_0x121c('0x16'),(_0x469e75,_0x3285a9)=>this[_0x121c('0x4')](this[_0x121c('0x36')],_0x469e75,_0x3285a9)),_0x184c0c[_0x121c('0x31')][_0x121c('0x18')](_0x121c('0x14'),_0x121c('0x36'),_0x121c('0x1b'),()=>!0x1);}_0x184c0c[_0x121c('0x1')]['registerDescriptionCallback'](_0x344453=>this[_0x121c('0x2a')](_0x344453));}['_handlePropertyChange'](_0x57d9f5,_0x4a269b,_0x38c669,_0x5c2076,_0x7f00d7,_0x3c5690){const _0x1656d5=this[_0x121c('0x2b')][_0x121c('0x25')][_0x121c('0x5')](_0x121c('0xc'));this[_0x121c('0x2b')][_0x121c('0x3')]['enqueueChange'](_0x3c5690[_0x121c('0x1e')],()=>{for(const _0x2d41ed of _0x4a269b){if(this[_0x121c('0x23')](_0x2d41ed,_0x5c2076))_0x7f00d7(_0x3c5690);else{const _0x1c31df={};for(const _0x3a2568 of _0x38c669){const _0x3e9732=_0x2d41ed[_0x121c('0x34')](_0x3a2568);void 0x0!==_0x3e9732&&(_0x1c31df[_0x3a2568]=_0x3e9732);}_0x7f00d7(_0x3c5690),_0x1656d5['markBlockFormat'](_0x2d41ed,{'commandParams':[_0x1c31df]},[],_0x5c2076);}}});}['handleDiscardAction'](_0x262801,_0x39f6fe,_0x30e39a){const _0x27bb91=_0x39f6fe[0x0]['start']['nodeAfter'],_0x169a00=_0x30e39a['commandParams'][0x0];this[_0x121c('0x2b')]['model'][_0x121c('0x19')](_0x36d75f=>{for(const _0x1320f2 of _0x262801)void 0x0!==_0x169a00[_0x1320f2]?_0x36d75f[_0x121c('0x10')](_0x1320f2,_0x169a00[_0x1320f2],_0x27bb91):_0x36d75f[_0x121c('0xa')](_0x1320f2,_0x27bb91);});}['handleSuggestionDescription'](_0x3794d8){if(_0x3794d8['data'])switch(_0x3794d8['subType']){case _0x121c('0x1c'):return{'type':'format','content':_0x386dd(this[_0x121c('0x2b')][_0x121c('0xd')],_0x121c('0x12'))};case'tableCellProperties':return{'type':'format','content':_0x386dd(this[_0x121c('0x2b')][_0x121c('0xd')],_0x121c('0x22'))};}}[_0x121c('0x23')](_0x34fb78,_0x5bbba5){const _0x20d52d=this['editor']['plugins']['get'](_0x121c('0xc'));for(const _0x2368d7 of _0x20d52d[_0x121c('0x9')]({'skipNotAttached':!0x0})){const _0x48d725=_0x2368d7[_0x121c('0x21')]();if(_0x2368d7[_0x121c('0xf')]===_0x5bbba5&&_0x48d725===_0x34fb78)return _0x2368d7;}return null;}}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @module track-changes/integrations/template
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ /**
6
+ * Provides track changes plugin integration for template feature.
7
+ */
8
+ export default class TrackChangesTemplate extends Plugin {
9
+ /**
10
+ * @inheritDoc
11
+ */
12
+ afterInit(): void;
13
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x5d8b=['get','TrackChangesEditing','afterInit','Template','has','plugins','editor'];(function(_0x4e18af,_0x5d8b0d){const _0x1c01b4=function(_0x187e15){while(--_0x187e15){_0x4e18af['push'](_0x4e18af['shift']());}};_0x1c01b4(++_0x5d8b0d);}(_0x5d8b,0x1ac));const _0x1c01=function(_0x4e18af,_0x5d8b0d){_0x4e18af=_0x4e18af-0x0;let _0x1c01b4=_0x5d8b[_0x4e18af];return _0x1c01b4;};import{Plugin as _0x4b0628}from'ckeditor5/src/core';export default class yt extends _0x4b0628{[_0x1c01('0x1')](){const _0x560e72=this[_0x1c01('0x5')];_0x560e72[_0x1c01('0x4')][_0x1c01('0x3')](_0x1c01('0x2'))&&_0x560e72['plugins'][_0x1c01('0x6')](_0x1c01('0x0'))['enableCommand']('insertTemplate');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d6c=['element','registerPostFixer','registerElementLabel','ELEMENT_TITLE','_splitMarkerName','get','differ','start','isTouching','TrackChangesEditing','nodeBefore','_descriptionFactory','document','locale','model','from','title-content','Title','removeMarker','isCollapsed','editor','getNearestSelectionRange','schema','getChangedMarkers','newRange','plugins','end','afterInit'];(function(_0x4a4851,_0x1d6cb4){const _0x5a0296=function(_0x29d626){while(--_0x29d626){_0x4a4851['push'](_0x4a4851['shift']());}};_0x5a0296(++_0x1d6cb4);}(_0x1d6c,0x77));const _0x5a02=function(_0x4a4851,_0x1d6cb4){_0x4a4851=_0x4a4851-0x0;let _0x5a0296=_0x1d6c[_0x4a4851];return _0x5a0296;};import{Plugin as _0x1148de}from'ckeditor5/src/core';import{getTranslation as _0x3b4727}from'../utils/common-translations';export default class wt extends _0x1148de{[_0x5a02('0x14')](){const _0x19c741=this[_0x5a02('0xd')];if(!_0x19c741[_0x5a02('0x12')]['has'](_0x5a02('0xa')))return;const _0x7b4f40=_0x19c741[_0x5a02('0x12')][_0x5a02('0x1a')](_0x5a02('0x2'));_0x7b4f40[_0x5a02('0x4')][_0x5a02('0x17')](_0x5a02('0x9'),()=>_0x3b4727(_0x19c741[_0x5a02('0x6')],_0x5a02('0x18'))),_0x19c741[_0x5a02('0x7')]['document'][_0x5a02('0x16')](_0x54995b=>{let _0x58018b=!0x1;const _0x35d0db=Array[_0x5a02('0x8')](_0x19c741[_0x5a02('0x7')][_0x5a02('0x5')][_0x5a02('0x1b')][_0x5a02('0x10')]());for(const {name:_0x62360d,data:_0x42e677}of _0x35d0db){const {group:_0x24d2d3}=_0x7b4f40[_0x5a02('0x19')](_0x62360d);if('suggestion'!==_0x24d2d3||!_0x42e677['newRange'])continue;const _0x22456e=_0x42e677[_0x5a02('0x11')],_0x148568=_0x22456e[_0x5a02('0x13')][_0x5a02('0x3')];if(!_0x148568||!_0x148568['is'](_0x5a02('0x15'),_0x5a02('0x9')))continue;if(!_0x22456e['start'][_0x5a02('0x1')](_0x22456e[_0x5a02('0x13')]))continue;const _0x4bf1d6=_0x19c741[_0x5a02('0x7')][_0x5a02('0xf')][_0x5a02('0xe')](_0x22456e[_0x5a02('0x13')],'forward');if(_0x4bf1d6&&_0x4bf1d6[_0x5a02('0xc')]){const _0x5e8162=_0x54995b['createRange'](_0x22456e[_0x5a02('0x0')],_0x4bf1d6[_0x5a02('0x0')]);_0x5e8162['isEqual'](_0x22456e)||(_0x54995b['updateMarker'](_0x62360d,{'range':_0x5e8162}),_0x58018b=!0x0);}_0x58018b||(_0x54995b[_0x5a02('0xb')](_0x62360d),_0x58018b=!0x0);}return _0x58018b;});}}
23
+ const _0xf06f=['nodeBefore','from','registerPostFixer','model','TrackChangesEditing','_descriptionFactory','Title','registerElementLabel','plugins','isEqual','get','isTouching','differ','forward','end','editor','document','start','getChangedMarkers','newRange','getNearestSelectionRange'];(function(_0x52baf4,_0xf06ff4){const _0x10a50d=function(_0x1e7a6c){while(--_0x1e7a6c){_0x52baf4['push'](_0x52baf4['shift']());}};_0x10a50d(++_0xf06ff4);}(_0xf06f,0x1bf));const _0x10a5=function(_0x52baf4,_0xf06ff4){_0x52baf4=_0x52baf4-0x0;let _0x10a50d=_0xf06f[_0x52baf4];return _0x10a50d;};import{Plugin as _0xc66d5}from'ckeditor5/src/core';import{getTranslation as _0x222bbe}from'../utils/common-translations';export default class St extends _0xc66d5{['afterInit'](){const _0x321997=this[_0x10a5('0x9')];if(!_0x321997[_0x10a5('0x2')]['has'](_0x10a5('0x0')))return;const _0x2f5385=_0x321997[_0x10a5('0x2')][_0x10a5('0x4')](_0x10a5('0x13'));_0x2f5385[_0x10a5('0x14')][_0x10a5('0x1')]('title-content',()=>_0x222bbe(_0x321997['locale'],'ELEMENT_TITLE')),_0x321997['model'][_0x10a5('0xa')][_0x10a5('0x11')](_0x44175e=>{let _0x4df359=!0x1;const _0x31f7ff=Array[_0x10a5('0x10')](_0x321997['model'][_0x10a5('0xa')][_0x10a5('0x6')][_0x10a5('0xc')]());for(const {name:_0x4562d0,data:_0x8b49e7}of _0x31f7ff){const {group:_0x1b5292}=_0x2f5385['_splitMarkerName'](_0x4562d0);if('suggestion'!==_0x1b5292||!_0x8b49e7['newRange'])continue;const _0x2f12d6=_0x8b49e7[_0x10a5('0xd')],_0x8632be=_0x2f12d6[_0x10a5('0x8')][_0x10a5('0xf')];if(!_0x8632be||!_0x8632be['is']('element','title-content'))continue;if(!_0x2f12d6[_0x10a5('0xb')][_0x10a5('0x5')](_0x2f12d6[_0x10a5('0x8')]))continue;const _0xf93132=_0x321997[_0x10a5('0x12')]['schema'][_0x10a5('0xe')](_0x2f12d6[_0x10a5('0x8')],_0x10a5('0x7'));if(_0xf93132&&_0xf93132['isCollapsed']){const _0x83e67d=_0x44175e['createRange'](_0x2f12d6[_0x10a5('0xb')],_0xf93132[_0x10a5('0xb')]);_0x83e67d[_0x10a5('0x3')](_0x2f12d6)||(_0x44175e['updateMarker'](_0x4562d0,{'range':_0x83e67d}),_0x4df359=!0x0);}_0x4df359||(_0x44175e['removeMarker'](_0x4562d0),_0x4df359=!0x0);}return _0x4df359;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa766=['enableCommand','plugins','TrackChangesEditing','UndoEditing','undo','afterInit','get','editor'];(function(_0x15f101,_0xa7663a){const _0x59889f=function(_0x3968e3){while(--_0x3968e3){_0x15f101['push'](_0x15f101['shift']());}};_0x59889f(++_0xa7663a);}(_0xa766,0xc0));const _0x5988=function(_0x15f101,_0xa7663a){_0x15f101=_0x15f101-0x0;let _0x59889f=_0xa766[_0x15f101];return _0x59889f;};import{Plugin as _0x5bddb8}from'ckeditor5/src/core';export default class yt extends _0x5bddb8{[_0x5988('0x5')](){const _0x24a53e=this[_0x5988('0x7')],_0x205917=_0x24a53e['plugins'][_0x5988('0x6')](_0x5988('0x2'));_0x24a53e[_0x5988('0x1')]['has'](_0x5988('0x3'))&&(_0x205917[_0x5988('0x0')](_0x5988('0x4')),_0x205917['enableCommand']('redo'));}}
23
+ const _0x2f86=['UndoEditing','has','enableCommand','get','TrackChangesEditing','redo','plugins'];(function(_0x5e2e9c,_0x2f862e){const _0x5eda9a=function(_0x478a5d){while(--_0x478a5d){_0x5e2e9c['push'](_0x5e2e9c['shift']());}};_0x5eda9a(++_0x2f862e);}(_0x2f86,0x1f0));const _0x5eda=function(_0x5e2e9c,_0x2f862e){_0x5e2e9c=_0x5e2e9c-0x0;let _0x5eda9a=_0x2f86[_0x5e2e9c];return _0x5eda9a;};import{Plugin as _0xd5d237}from'ckeditor5/src/core';export default class It extends _0xd5d237{['afterInit'](){const _0x4fd5aa=this['editor'],_0x150d3a=_0x4fd5aa[_0x5eda('0x0')][_0x5eda('0x4')](_0x5eda('0x5'));_0x4fd5aa[_0x5eda('0x0')][_0x5eda('0x2')](_0x5eda('0x1'))&&(_0x150d3a['enableCommand']('undo'),_0x150d3a[_0x5eda('0x3')](_0x5eda('0x6')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1edc=['span','isBlock','listItem','createUIElement','getAttribute','ck-suggestion-marker-','markerName','TrackChangesEditing','get','includes','toViewElement','isLimit','insert','createRangeOn','previousPosition','listIndent','parent','writer','consumable','mapper','isContent','name','item','bindElementToMarker','nextSibling','push','ck-suggestion-marker--active','plugins','toViewPosition','test','markerRange','getItems','type','activeMarkers','element'];(function(_0x26e2a7,_0x1edc98){const _0x7b5ffe=function(_0x161ca6){while(--_0x161ca6){_0x26e2a7['push'](_0x26e2a7['shift']());}};_0x7b5ffe(++_0x1edc98);}(_0x1edc,0x107));const _0x7b5f=function(_0x26e2a7,_0x1edc98){_0x26e2a7=_0x26e2a7-0x0;let _0x7b5ffe=_0x1edc[_0x26e2a7];return _0x7b5ffe;};export function getRangesWithAttribute(_0x1deeaa,_0x169755,_0x374149){const _0x5dec77=[];for(const _0x378237 of _0x169755[_0x7b5f('0xd')]())_0x378237['hasAttribute'](_0x1deeaa)&&_0x5dec77[_0x7b5f('0x7')](_0x374149[_0x7b5f('0x1e')](_0x378237));return _0x5dec77;}export function getElementsAffectedByListItemRename(_0x219a86){const _0x184814=[];if(_0x219a86['is'](_0x7b5f('0x10'),_0x7b5f('0x13'))){let _0x4c68d5=_0x219a86['nextSibling'];for(;_0x4c68d5&&_0x4c68d5['is'](_0x7b5f('0x10'),'listItem')&&_0x4c68d5[_0x7b5f('0x15')](_0x7b5f('0x20'))>0x0;)_0x184814['push'](_0x4c68d5),_0x4c68d5=_0x4c68d5[_0x7b5f('0x6')];}return _0x184814;}export function downcastSplitMergeMarker(_0x1f5f2d,_0x4624b8,{showActiveMarker:_0x182060=!0x0}={}){const _0x39981c=_0x1f5f2d[_0x7b5f('0x9')][_0x7b5f('0x19')](_0x7b5f('0x18'));return(_0x28555b,_0x518706,_0x3a8a43)=>{if(!_0x3a8a43[_0x7b5f('0x0')][_0x7b5f('0xb')](_0x518706[_0x7b5f('0xc')],_0x28555b[_0x7b5f('0x3')]))return;const _0x1b1f83=_0x518706[_0x7b5f('0xc')]['getWalker'](),_0x3c7211=_0x518706[_0x7b5f('0xc')]['start'],_0x4fee0a=_0x1f5f2d['model']['schema'];let _0x1c6edb=null,_0x1608c6=null,_0x1aff7b=!0x1,_0x408d3a=!0x1;for(const _0x2aad85 of _0x1b1f83){const _0x4bb188=_0x2aad85[_0x7b5f('0x4')];_0x1aff7b=_0x1aff7b||_0x4fee0a[_0x7b5f('0x2')](_0x4bb188);const _0x4b0ea4=_0x3a8a43['mapper'][_0x7b5f('0x1b')](_0x4bb188);if(_0x4b0ea4&&_0x4b0ea4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2aad85[_0x7b5f('0xe')]&&(_0x4fee0a[_0x7b5f('0x12')](_0x4bb188)&&!_0x4fee0a[_0x7b5f('0x1c')](_0x4bb188)&&(_0x4bb188['nextSibling']||_0x3c7211['isAtEnd']?_0x1c6edb&&_0x1c6edb[_0x7b5f('0x21')]==_0x4bb188||(_0x1c6edb=_0x4bb188,_0x5444aa(_0x2aad85[_0x7b5f('0x1f')]),_0x408d3a=!0x0):_0x1608c6=_0x1608c6||_0x2aad85[_0x7b5f('0x1f')]));}function _0x5444aa(_0x25a46b){const _0x215bb7=_0x3a8a43[_0x7b5f('0x22')][_0x7b5f('0x14')](_0x7b5f('0x11'),{'class':_0x7b5f('0x16')+_0x4624b8}),_0x26e694=_0x3a8a43[_0x7b5f('0x1')][_0x7b5f('0xa')](_0x25a46b);_0x182060&&_0x39981c[_0x7b5f('0xf')][_0x7b5f('0x1a')](_0x518706[_0x7b5f('0x17')])&&_0x3a8a43[_0x7b5f('0x22')]['addClass'](_0x7b5f('0x8'),_0x215bb7),_0x3a8a43[_0x7b5f('0x22')][_0x7b5f('0x1d')](_0x26e694,_0x215bb7),_0x3a8a43[_0x7b5f('0x1')][_0x7b5f('0x5')](_0x215bb7,_0x518706[_0x7b5f('0x17')]);}_0x1aff7b||_0x408d3a||!_0x1608c6||_0x5444aa(_0x1608c6);};}
23
+ const _0x5bbf=['ck-suggestion-marker--active','activeMarkers','toViewPosition','createRangeOn','nextSibling','mapper','addHighlight','test','isContent','previousPosition','bindElementToMarker','markerName','getWalker','writer','item','plugins','elementEnd','get','insert','isAtEnd','push','addClass','createUIElement','ck-suggestion-marker-','markerRange','span','listIndent','type','TrackChangesEditing','getItems','element','model','listItem','includes','parent','start'];(function(_0x5408b6,_0x5bbfdb){const _0x26ebb1=function(_0x583b8f){while(--_0x583b8f){_0x5408b6['push'](_0x5408b6['shift']());}};_0x26ebb1(++_0x5bbfdb);}(_0x5bbf,0x1c5));const _0x26eb=function(_0x5408b6,_0x5bbfdb){_0x5408b6=_0x5408b6-0x0;let _0x26ebb1=_0x5bbf[_0x5408b6];return _0x26ebb1;};export function getRangesWithAttribute(_0x19ffc1,_0x459de2,_0x4380b0){const _0x127dfd=[];for(const _0x301a0e of _0x459de2[_0x26eb('0x8')]())_0x301a0e['hasAttribute'](_0x19ffc1)&&_0x127dfd[_0x26eb('0x23')](_0x4380b0[_0x26eb('0x12')](_0x301a0e));return _0x127dfd;}export function getElementsAffectedByListItemRename(_0x160457){const _0x3ea817=[];if(_0x160457['is'](_0x26eb('0x9'),_0x26eb('0xb'))){let _0x118034=_0x160457[_0x26eb('0x13')];for(;_0x118034&&_0x118034['is'](_0x26eb('0x9'),_0x26eb('0xb'))&&_0x118034['getAttribute'](_0x26eb('0x5'))>0x0;)_0x3ea817[_0x26eb('0x23')](_0x118034),_0x118034=_0x118034['nextSibling'];}return _0x3ea817;}export function downcastSplitMergeMarker(_0x1d2f12,_0x289929,{showActiveMarker:_0x1f7f9f=!0x0}={}){const _0x2bf766=_0x1d2f12[_0x26eb('0x1e')][_0x26eb('0x20')](_0x26eb('0x7'));return(_0xb814e4,_0x949e6e,_0x55287b)=>{if(!_0x55287b['consumable'][_0x26eb('0x16')](_0x949e6e[_0x26eb('0x3')],_0xb814e4['name']))return;const _0x73bdff=_0x949e6e['markerRange'][_0x26eb('0x1b')](),_0x4218d4=_0x949e6e['markerRange'][_0x26eb('0xe')],_0x5ce24=_0x1d2f12[_0x26eb('0xa')]['schema'];let _0x3e1dd5=null,_0x4d361e=null,_0x35a0a3=!0x1,_0x4298a3=!0x1;for(const _0x2ea188 of _0x73bdff){const _0x319abc=_0x2ea188[_0x26eb('0x1d')];_0x35a0a3=_0x35a0a3||_0x5ce24[_0x26eb('0x17')](_0x319abc);const _0xc0298d=_0x55287b[_0x26eb('0x14')]['toViewElement'](_0x319abc);if(_0xc0298d&&_0xc0298d['getCustomProperty'](_0x26eb('0x15')))return;_0x26eb('0x1f')==_0x2ea188[_0x26eb('0x6')]&&(_0x5ce24['isBlock'](_0x319abc)&&!_0x5ce24['isLimit'](_0x319abc)&&(_0x319abc[_0x26eb('0x13')]||_0x4218d4[_0x26eb('0x22')]?_0x3e1dd5&&_0x3e1dd5[_0x26eb('0xd')]==_0x319abc||(_0x3e1dd5=_0x319abc,_0x5748aa(_0x2ea188[_0x26eb('0x18')]),_0x4298a3=!0x0):_0x4d361e=_0x4d361e||_0x2ea188['previousPosition']));}function _0x5748aa(_0x9e3833){const _0x4fc855=_0x55287b[_0x26eb('0x1c')][_0x26eb('0x1')](_0x26eb('0x4'),{'class':_0x26eb('0x2')+_0x289929}),_0x3449b9=_0x55287b[_0x26eb('0x14')][_0x26eb('0x11')](_0x9e3833);_0x1f7f9f&&_0x2bf766[_0x26eb('0x10')][_0x26eb('0xc')](_0x949e6e[_0x26eb('0x1a')])&&_0x55287b[_0x26eb('0x1c')][_0x26eb('0x0')](_0x26eb('0xf'),_0x4fc855),_0x55287b[_0x26eb('0x1c')][_0x26eb('0x21')](_0x3449b9,_0x4fc855),_0x55287b['mapper'][_0x26eb('0x19')](_0x4fc855,_0x949e6e[_0x26eb('0x1a')]);}_0x35a0a3||_0x4298a3||!_0x4d361e||_0x5748aa(_0x4d361e);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f35=['push','accept','head','discard','createdAt','getMarkers','getMarkerNames','_saved','getContainedElement','onAccept','_onAccept','previous','isMultiRange','getAllAdjacentSuggestions','delete','nodeAfter','_onDiscard','removeAttribute','removeMarkers','author','attributes','clear','decorate','addMarker','removeMarker','creator','setAttribute','change','markers','authoredAt','size','getRanges','data','hasComments','reduce','subType','toJSON','map','filter','isInContent','add','getMultiRangeId','isIntersecting','addMarkerName','addRange','nodeBefore','getFirstMarker','set','onAttributesChange','getItems','_markerNames','length','getRange','commentThread','from','type','isIntersectingWithRange','_model','_onAttributesChange','onDiscard'];(function(_0x164fb6,_0x2f354a){const _0x3ff9b4=function(_0x5e25fc){while(--_0x5e25fc){_0x164fb6['push'](_0x164fb6['shift']());}};_0x3ff9b4(++_0x2f354a);}(_0x2f35,0xc1));const _0x3ff9=function(_0x164fb6,_0x2f354a){_0x164fb6=_0x164fb6-0x0;let _0x3ff9b4=_0x2f35[_0x164fb6];return _0x3ff9b4;};import{Element as _0x732472}from'ckeditor5/src/engine';import{ObservableMixin as _0x357297,uid as _0x43d692}from'ckeditor5/src/utils';import{cloneDeep as _0x30a10f,isEqual as _0x3c7654,set as _0x395f0d,unset as _0x313dce}from'lodash-es';export default class u extends _0x357297(){constructor(_0x339feb,_0x2f99f5){super(),this['id']=_0x2f99f5['id'],this[_0x3ff9('0x2a')]=_0x2f99f5[_0x3ff9('0x2a')],this[_0x3ff9('0x16')]=_0x2f99f5[_0x3ff9('0x16')]||null,this[_0x3ff9('0x6')]=_0x2f99f5['author'],this['creator']=_0x2f99f5['creator']||_0x2f99f5['author'],this['isExternal']=Boolean(_0x2f99f5[_0x3ff9('0x7')]&&_0x2f99f5[_0x3ff9('0x7')]['@external']),this[_0x3ff9('0x13')]=null,this['_model']=_0x339feb,this['_onAccept']=_0x2f99f5[_0x3ff9('0x38')],this[_0x3ff9('0x3')]=_0x2f99f5[_0x3ff9('0x2e')],this[_0x3ff9('0x2d')]=_0x2f99f5[_0x3ff9('0x23')],this['_markerNames']=new Set(),this['createdAt']=null,this['set'](_0x3ff9('0x10'),null),this[_0x3ff9('0x22')]('attributes',_0x2f99f5['attributes']||{}),this[_0x3ff9('0x22')](_0x3ff9('0x3a'),null),this[_0x3ff9('0x22')]('next',null),this[_0x3ff9('0x22')](_0x3ff9('0x28'),null),this[_0x3ff9('0x22')](_0x3ff9('0x36'),!0x1),this['decorate'](_0x3ff9('0x30')),this[_0x3ff9('0x9')](_0x3ff9('0x32'));}get['head'](){let _0x4d388b=this;for(;_0x4d388b[_0x3ff9('0x3a')];)_0x4d388b=_0x4d388b[_0x3ff9('0x3a')];return _0x4d388b;}get[_0x3ff9('0x14')](){return!!this[_0x3ff9('0x28')]&&this[_0x3ff9('0x28')][_0x3ff9('0x26')]>0x0;}get[_0x3ff9('0x3b')](){if(0x0==this[_0x3ff9('0x25')][_0x3ff9('0x11')])return!0x1;return 0x6==Array[_0x3ff9('0x29')](this[_0x3ff9('0x25')])[0x0]['split'](':')[_0x3ff9('0x26')];}get[_0x3ff9('0x1a')](){return null!==this['getFirstMarker']();}[_0x3ff9('0x1e')](_0x36ae12){this[_0x3ff9('0x25')][_0x3ff9('0x1b')](_0x36ae12);}[_0x3ff9('0x35')](){return Array[_0x3ff9('0x29')](this[_0x3ff9('0x25')]);}['getMarkers'](){return this[_0x3ff9('0x35')]()[_0x3ff9('0x18')](_0x401243=>this[_0x3ff9('0x2c')][_0x3ff9('0xf')]['get'](_0x401243))[_0x3ff9('0x19')](_0x419c8a=>_0x419c8a);}[_0x3ff9('0x21')](){return this[_0x3ff9('0x34')]()[0x0]||null;}[_0x3ff9('0x5')](){this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x2b2ac9=>{for(const _0x389dec of this['getMarkers']())_0x2b2ac9[_0x3ff9('0xb')](_0x389dec);}),this[_0x3ff9('0x25')][_0x3ff9('0x8')]();}[_0x3ff9('0xb')](_0x3f908b){this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x39e7d4=>{_0x39e7d4[_0x3ff9('0xb')](_0x3f908b);}),this['_markerNames'][_0x3ff9('0x1')](_0x3f908b);}[_0x3ff9('0x1f')](_0x1ac774){const _0x498f72='suggestion:'+this['type']+':'+this[_0x3ff9('0x16')]+':'+this['id']+':'+this[_0x3ff9('0xc')]['id']+':'+u[_0x3ff9('0x1c')]();this[_0x3ff9('0x1e')](_0x498f72),this[_0x3ff9('0x2c')][_0x3ff9('0xe')](_0x513eb4=>{_0x513eb4[_0x3ff9('0xa')](_0x498f72,{'range':_0x1ac774,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ff9('0x2b')](_0x237a89){for(const _0x4fc1af of this['getRanges']())if(_0x4fc1af[_0x3ff9('0x1d')](_0x237a89))return!0x0;return!0x1;}[_0x3ff9('0x12')](){return this[_0x3ff9('0x34')]()[_0x3ff9('0x18')](_0xd0683e=>_0xd0683e[_0x3ff9('0x27')]());}[_0x3ff9('0x24')](){return this[_0x3ff9('0x12')]()[_0x3ff9('0x15')]((_0x4d19ab,_0x47dc94)=>[..._0x4d19ab,..._0x47dc94[_0x3ff9('0x24')]()],[]);}['getFirstRange'](){var _0xcb7361;return(null===(_0xcb7361=this[_0x3ff9('0x21')]())||void 0x0===_0xcb7361?void 0x0:_0xcb7361[_0x3ff9('0x27')]())||null;}[_0x3ff9('0x37')](){const _0x5a26a0=this['getRanges']();if(0x1!=_0x5a26a0[_0x3ff9('0x26')])return null;const _0x31cf94=_0x5a26a0[0x0],_0x6b71bb=_0x31cf94['start'][_0x3ff9('0x2')],_0x377dec=_0x31cf94['end'][_0x3ff9('0x20')];return _0x6b71bb instanceof _0x732472?_0x6b71bb!=_0x377dec?null:_0x6b71bb:null;}['accept'](){this[_0x3ff9('0x39')](this['getRanges'](),this['data'],this[_0x3ff9('0x7')]),this[_0x3ff9('0x5')]();}['discard'](){this[_0x3ff9('0x3')](this['getRanges'](),this[_0x3ff9('0x13')],this[_0x3ff9('0x7')]),this['removeMarkers']();}[_0x3ff9('0x0')](){const _0x914010=[];let _0x55d5fa=this[_0x3ff9('0x31')];for(;_0x55d5fa;)_0x914010[_0x3ff9('0x2f')](_0x55d5fa),_0x55d5fa=_0x55d5fa['next'];return _0x914010;}[_0x3ff9('0xd')](_0x243493,_0x438179){const _0x5283dd=_0x30a10f(this[_0x3ff9('0x7')]);_0x395f0d(_0x5283dd,_0x243493,_0x438179),_0x3c7654(_0x5283dd,this[_0x3ff9('0x7')])||(this[_0x3ff9('0x7')]=_0x5283dd,this[_0x3ff9('0x2d')](_0x5283dd));}[_0x3ff9('0x4')](_0x461e56){const _0x27dc0a=_0x30a10f(this[_0x3ff9('0x7')]);_0x313dce(_0x27dc0a,_0x461e56),_0x3c7654(_0x27dc0a,this[_0x3ff9('0x7')])||(this['attributes']=_0x27dc0a,this[_0x3ff9('0x2d')](this[_0x3ff9('0x7')]));}[_0x3ff9('0x17')](){return{'id':this['id'],'type':this['subType']?this[_0x3ff9('0x2a')]+':'+this[_0x3ff9('0x16')]:this[_0x3ff9('0x2a')],'authorId':this[_0x3ff9('0xc')]['id'],'createdAt':this[_0x3ff9('0x33')],'hasComments':this[_0x3ff9('0x14')],'data':this[_0x3ff9('0x13')],'attributes':this[_0x3ff9('0x7')]};}static[_0x3ff9('0x1c')](){return _0x43d692()['substr'](0x1,0x5);}}
23
+ const _0x1113=['onAttributesChange','getMarkers','subType','nodeBefore','push','isIntersecting','add','setAttribute','_onDiscard','isMultiRange','creator','start','isExternal','commentThread','toJSON','map','end','addRange','discard','getContainedElement','_markerNames','getFirstMarker','getItems','_onAccept','substr','previous','getAllAdjacentSuggestions','author','authoredAt','_model','decorate','next','accept','addMarkerName','getMarkerNames','isIntersectingWithRange','get','type','nodeAfter','getFirstRange','onDiscard','removeMarkers','getRanges','markers','filter','change','set','_onAttributesChange','onAccept','addMarker','removeMarker','data','clear','isInContent','from','hasComments','createdAt','length','attributes'];(function(_0x465afb,_0x111380){const _0x4cf9d5=function(_0x3184a4){while(--_0x3184a4){_0x465afb['push'](_0x465afb['shift']());}};_0x4cf9d5(++_0x111380);}(_0x1113,0x18b));const _0x4cf9=function(_0x465afb,_0x111380){_0x465afb=_0x465afb-0x0;let _0x4cf9d5=_0x1113[_0x465afb];return _0x4cf9d5;};import{Element as _0x4acb27}from'ckeditor5/src/engine';import{ObservableMixin as _0x83784b,uid as _0x368a8c}from'ckeditor5/src/utils';import{cloneDeep as _0x35d73d,isEqual as _0x132e11,set as _0x1c5d72,unset as _0xc60b39}from'lodash-es';export default class u extends _0x83784b(){constructor(_0x19f1a0,_0x23e374){super(),this['id']=_0x23e374['id'],this[_0x4cf9('0x37')]=_0x23e374[_0x4cf9('0x37')],this[_0x4cf9('0x14')]=_0x23e374[_0x4cf9('0x14')]||null,this['author']=_0x23e374[_0x4cf9('0x2d')],this['creator']=_0x23e374[_0x4cf9('0x1c')]||_0x23e374[_0x4cf9('0x2d')],this[_0x4cf9('0x1e')]=Boolean(_0x23e374[_0x4cf9('0x11')]&&_0x23e374[_0x4cf9('0x11')]['@external']),this[_0x4cf9('0xa')]=null,this[_0x4cf9('0x2f')]=_0x19f1a0,this[_0x4cf9('0x29')]=_0x23e374[_0x4cf9('0x7')],this[_0x4cf9('0x1a')]=_0x23e374[_0x4cf9('0x3a')],this[_0x4cf9('0x6')]=_0x23e374[_0x4cf9('0x12')],this[_0x4cf9('0x26')]=new Set(),this[_0x4cf9('0xf')]=null,this[_0x4cf9('0x5')](_0x4cf9('0x2e'),null),this[_0x4cf9('0x5')](_0x4cf9('0x11'),_0x23e374[_0x4cf9('0x11')]||{}),this[_0x4cf9('0x5')](_0x4cf9('0x2b'),null),this[_0x4cf9('0x5')](_0x4cf9('0x31'),null),this[_0x4cf9('0x5')]('commentThread',null),this[_0x4cf9('0x5')]('_saved',!0x1),this[_0x4cf9('0x30')](_0x4cf9('0x32')),this[_0x4cf9('0x30')](_0x4cf9('0x24'));}get['head'](){let _0x40e471=this;for(;_0x40e471[_0x4cf9('0x2b')];)_0x40e471=_0x40e471[_0x4cf9('0x2b')];return _0x40e471;}get[_0x4cf9('0xe')](){return!!this['commentThread']&&this[_0x4cf9('0x1f')]['length']>0x0;}get[_0x4cf9('0x1b')](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array[_0x4cf9('0xd')](this[_0x4cf9('0x26')])[0x0]['split'](':')[_0x4cf9('0x10')];}get[_0x4cf9('0xc')](){return null!==this[_0x4cf9('0x27')]();}[_0x4cf9('0x33')](_0x40013e){this['_markerNames'][_0x4cf9('0x18')](_0x40013e);}['getMarkerNames'](){return Array[_0x4cf9('0xd')](this[_0x4cf9('0x26')]);}[_0x4cf9('0x13')](){return this[_0x4cf9('0x34')]()[_0x4cf9('0x21')](_0x471d54=>this[_0x4cf9('0x2f')][_0x4cf9('0x2')][_0x4cf9('0x36')](_0x471d54))[_0x4cf9('0x3')](_0x3d1055=>_0x3d1055);}[_0x4cf9('0x27')](){return this[_0x4cf9('0x13')]()[0x0]||null;}[_0x4cf9('0x0')](){this[_0x4cf9('0x2f')][_0x4cf9('0x4')](_0x1702c8=>{for(const _0x52c56a of this[_0x4cf9('0x13')]())_0x1702c8[_0x4cf9('0x9')](_0x52c56a);}),this[_0x4cf9('0x26')][_0x4cf9('0xb')]();}[_0x4cf9('0x9')](_0x3d8a56){this[_0x4cf9('0x2f')][_0x4cf9('0x4')](_0x1be4d5=>{_0x1be4d5[_0x4cf9('0x9')](_0x3d8a56);}),this[_0x4cf9('0x26')]['delete'](_0x3d8a56);}[_0x4cf9('0x23')](_0x25d548){const _0x43b13a='suggestion:'+this['type']+':'+this[_0x4cf9('0x14')]+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this[_0x4cf9('0x33')](_0x43b13a),this[_0x4cf9('0x2f')]['change'](_0x526d79=>{_0x526d79[_0x4cf9('0x8')](_0x43b13a,{'range':_0x25d548,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4cf9('0x35')](_0x4ad62d){for(const _0x543a2f of this['getRanges']())if(_0x543a2f[_0x4cf9('0x17')](_0x4ad62d))return!0x0;return!0x1;}[_0x4cf9('0x1')](){return this[_0x4cf9('0x13')]()[_0x4cf9('0x21')](_0x3f3584=>_0x3f3584['getRange']());}['getItems'](){return this[_0x4cf9('0x1')]()['reduce']((_0x22ba27,_0x43ad05)=>[..._0x22ba27,..._0x43ad05[_0x4cf9('0x28')]()],[]);}[_0x4cf9('0x39')](){var _0x31d94d;return(null===(_0x31d94d=this[_0x4cf9('0x27')]())||void 0x0===_0x31d94d?void 0x0:_0x31d94d['getRange']())||null;}[_0x4cf9('0x25')](){const _0x4835bf=this[_0x4cf9('0x1')]();if(0x1!=_0x4835bf[_0x4cf9('0x10')])return null;const _0x52068d=_0x4835bf[0x0],_0x5b244e=_0x52068d[_0x4cf9('0x1d')][_0x4cf9('0x38')],_0x478583=_0x52068d[_0x4cf9('0x22')][_0x4cf9('0x15')];return _0x5b244e instanceof _0x4acb27?_0x5b244e!=_0x478583?null:_0x5b244e:null;}[_0x4cf9('0x32')](){this['_onAccept'](this[_0x4cf9('0x1')](),this[_0x4cf9('0xa')],this[_0x4cf9('0x11')]),this[_0x4cf9('0x0')]();}[_0x4cf9('0x24')](){this['_onDiscard'](this[_0x4cf9('0x1')](),this[_0x4cf9('0xa')],this[_0x4cf9('0x11')]),this[_0x4cf9('0x0')]();}[_0x4cf9('0x2c')](){const _0x1d2e02=[];let _0x1b9e3d=this['head'];for(;_0x1b9e3d;)_0x1d2e02[_0x4cf9('0x16')](_0x1b9e3d),_0x1b9e3d=_0x1b9e3d['next'];return _0x1d2e02;}[_0x4cf9('0x19')](_0x11ed76,_0x214f6f){const _0x3a281c=_0x35d73d(this['attributes']);_0x1c5d72(_0x3a281c,_0x11ed76,_0x214f6f),_0x132e11(_0x3a281c,this[_0x4cf9('0x11')])||(this['attributes']=_0x3a281c,this[_0x4cf9('0x6')](_0x3a281c));}['removeAttribute'](_0x99e7aa){const _0x1a06c5=_0x35d73d(this[_0x4cf9('0x11')]);_0xc60b39(_0x1a06c5,_0x99e7aa),_0x132e11(_0x1a06c5,this['attributes'])||(this[_0x4cf9('0x11')]=_0x1a06c5,this['_onAttributesChange'](this[_0x4cf9('0x11')]));}[_0x4cf9('0x20')](){return{'id':this['id'],'type':this[_0x4cf9('0x14')]?this[_0x4cf9('0x37')]+':'+this[_0x4cf9('0x14')]:this[_0x4cf9('0x37')],'authorId':this[_0x4cf9('0x1c')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x4cf9('0xe')],'data':this[_0x4cf9('0xa')],'attributes':this[_0x4cf9('0x11')]};}static['getMultiRangeId'](){return _0x368a8c()[_0x4cf9('0x2a')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2142=['_schema','text','matchingCallback','previousSibling','checkChild','_itemLabels','_itemLabelsCallbacks','indexOf','deletion','_resolveDescriptionItems','getFirstRange','element','item','elementEnd','$1\x20$2','replace','ELEMENT_SPACE','addObject','length','label','data','registerDescriptionCallback','*Merge:*\x20%0','isObject','type','*Insert:*\x20%0','isEmpty','start','function','registerElementLabel','isEqual','elementStart','getDescriptions','get','softBreak','add','_addDescriptionItems','normal','push','name','match','quantity','Container','Object','getItemLabel','addContainer','removeObject','insertion','isInContent','nextSibling','*Remove:*\x20%0','EmptyContainer','_locale','skip','end','_customCallbacks','remove'];(function(_0x278d2e,_0x2142cf){const _0x24d782=function(_0x49b693){while(--_0x49b693){_0x278d2e['push'](_0x278d2e['shift']());}};_0x24d782(++_0x2142cf);}(_0x2142,0x10a));const _0x24d7=function(_0x278d2e,_0x2142cf){_0x278d2e=_0x278d2e-0x0;let _0x24d782=_0x2142[_0x278d2e];return _0x24d782;};import{getTranslation as _0x59c14e}from'./utils/common-translations';import{priorities as _0xc5af37,insertToPriorityArray as _0x5dc15b}from'ckeditor5/src/utils';export default class m{constructor(_0x1dd1ab,_0x3afcaf){this[_0x24d7('0x11')]=[],this['_itemLabels']=new Map(),this[_0x24d7('0x19')]=[],this[_0x24d7('0x13')]=_0x1dd1ab,this[_0x24d7('0xe')]=_0x3afcaf;}[_0x24d7('0x33')](_0x5289ea){const _0x42c638=[];for(let _0x209e50=0x0;_0x209e50<_0x5289ea[_0x24d7('0x25')];_0x209e50++){const _0x13eedf=_0x5289ea[_0x209e50];if(!_0x13eedf[_0x24d7('0xa')])continue;let _0x292deb=!0x1;for(const _0x2a0e29 of this[_0x24d7('0x11')]){const _0xa39f95=_0x2a0e29(_0x13eedf);if(_0xa39f95){_0x24d7('0x2b')in _0xa39f95&&_0x42c638[_0x24d7('0x0')](_0xa39f95),_0x292deb=!0x0;break;}}if(!_0x292deb){this[_0x24d7('0x37')](_0x42c638,_0x13eedf);const _0x1ca998=_0x5289ea[_0x209e50+0x1];if(_0x1ca998&&!_0x13eedf[_0x24d7('0x1d')]()[_0x24d7('0x10')][_0x24d7('0x31')](_0x1ca998[_0x24d7('0x1d')]()[_0x24d7('0x2e')])){const _0xbc33ec=_0x42c638[_0x42c638[_0x24d7('0x25')]-0x1],_0x4fd32c=_0x24d7('0x9')==_0x13eedf[_0x24d7('0x2b')]?_0x24d7('0x36'):'remove';_0xbc33ec&&_0x24d7('0x14')==_0xbc33ec[_0x24d7('0x2b')]&&(_0xbc33ec[_0x4fd32c]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x42c638);}[_0x24d7('0x28')](_0xe8340d){this['_customCallbacks'][_0x24d7('0x0')](_0xe8340d);}[_0x24d7('0x30')](_0x104e75,_0x2620b1,_0x3adf06=_0xc5af37[_0x24d7('0x38')]){_0x24d7('0x2f')==typeof _0x104e75?_0x5dc15b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x104e75,'label':_0x2620b1,'priority':_0x3adf06}):this[_0x24d7('0x18')]['set'](_0x104e75,_0x2620b1);}['getItemLabel'](_0x234f7d,_0x421e88=0x1){let _0x290a30;for(const _0x2a1d83 of this['_itemLabelsCallbacks'])if(_0x2a1d83[_0x24d7('0x15')](_0x234f7d)){_0x290a30=_0x2a1d83[_0x24d7('0x26')];break;}return _0x290a30||(_0x290a30=this['_itemLabels'][_0x24d7('0x34')](_0x234f7d[_0x24d7('0x1')])),_0x290a30?_0x290a30(_0x421e88):0x1!==_0x421e88?_0x421e88+'\x20'+_0x234f7d[_0x24d7('0x1')]+'s':''+_0x234f7d[_0x24d7('0x1')];}[_0x24d7('0x37')](_0x27a54e,_0xe2dd4f){const _0x210587=_0xe2dd4f[_0x24d7('0x1d')]()['getWalker'](),_0x2b1239='insertion'==_0xe2dd4f[_0x24d7('0x2b')]?_0x24d7('0x36'):_0x24d7('0x12');for(const _0x4f8c35 of _0x210587){const _0x45bb8a=_0x4f8c35[_0x24d7('0x1f')],_0xc199e6=_0x27a54e[_0x27a54e[_0x24d7('0x25')]-0x1];if(_0x45bb8a['is']('$textProxy'))_0xc199e6&&_0xc199e6['type'][_0x24d7('0x1a')](_0x24d7('0x4'))>-0x1&&_0x27a54e['pop'](),_0xc199e6&&_0x24d7('0x14')==_0xc199e6[_0x24d7('0x2b')]?_0xc199e6[_0x2b1239]+=_0x45bb8a[_0x24d7('0x27')]:_0x27a54e[_0x24d7('0x0')]({'type':_0x24d7('0x14'),'add':'add'==_0x2b1239?_0x45bb8a['data']:'','remove':_0x24d7('0x12')==_0x2b1239?_0x45bb8a[_0x24d7('0x27')]:''});else{if(this[_0x24d7('0x13')]['isObject'](_0x45bb8a)){const _0x4614bd=_0x45bb8a;if(_0xc199e6&&_0xc199e6['type'][_0x24d7('0x1a')](_0x24d7('0x4'))>-0x1&&_0x27a54e['pop'](),_0x24d7('0x20')==_0x4f8c35[_0x24d7('0x2b')])continue;_0xc199e6&&_0xc199e6['type']==_0x2b1239+_0x24d7('0x5')&&_0xc199e6['element'][_0x24d7('0x1')]==_0x4614bd['name']?_0xc199e6[_0x24d7('0x3')]++:_0x27a54e[_0x24d7('0x0')]({'type':_0x2b1239+_0x24d7('0x5'),'element':_0x4614bd,'quantity':0x1}),_0x210587[_0x24d7('0xf')](_0x21523e=>!(_0x24d7('0x20')==_0x21523e[_0x24d7('0x2b')]&&_0x21523e['item']==_0x45bb8a));}else{if(this['_schema'][_0x24d7('0x17')](_0x45bb8a,'$text')||_0x45bb8a['is'](_0x24d7('0x1e'),_0x24d7('0x35'))){const _0x351ccc=_0x45bb8a;if('add'==_0x2b1239&&_0x24d7('0x32')==_0x4f8c35['type']||_0x24d7('0x12')==_0x2b1239&&_0x24d7('0x20')==_0x4f8c35['type'])continue;if(_0xc199e6&&-0x1==_0xc199e6[_0x24d7('0x2b')][_0x24d7('0x1a')](_0x24d7('0x4'))){_0x24d7('0x14')==_0xc199e6[_0x24d7('0x2b')]&&(_0xc199e6[_0x2b1239]+='\x0a');continue;}let _0x4a7ddf;if(_0x4a7ddf='add'==_0x2b1239?_0x351ccc[_0x24d7('0xb')]&&!this[_0x24d7('0x13')][_0x24d7('0x2a')](_0x351ccc[_0x24d7('0xb')])?_0x351ccc['nextSibling']:null:_0x351ccc['previousSibling']&&!this['_schema'][_0x24d7('0x2a')](_0x351ccc[_0x24d7('0x16')])?_0x351ccc[_0x24d7('0x16')]:null,_0x351ccc[_0x24d7('0x2d')]||_0x4a7ddf&&_0x4a7ddf['isEmpty']){const _0x420a02=_0x4a7ddf&&_0x4a7ddf[_0x24d7('0x2d')]?_0x4a7ddf:_0x351ccc;_0xc199e6&&_0xc199e6[_0x24d7('0x2b')]==_0x2b1239+_0x24d7('0xd')&&_0xc199e6['element'][_0x24d7('0x1')]==_0x420a02[_0x24d7('0x1')]?_0xc199e6[_0x24d7('0x3')]++:_0x27a54e[_0x24d7('0x0')]({'type':_0x2b1239+'EmptyContainer','element':_0x420a02,'quantity':0x1});}else _0x27a54e['push']({'type':_0x2b1239+'Container','element':_0x351ccc});}}}}}[_0x24d7('0x1c')](_0x1bcf47){const _0x29a117=this['_locale'],_0x27e30b=[];for(const _0x183fc4 of _0x1bcf47){switch(_0x183fc4['type']){case'text':if(_0x183fc4[_0x24d7('0x36')]=_0x183fc4['add'][_0x24d7('0x22')](/(\S)\u000A+(\S)/g,_0x24d7('0x21'))[_0x24d7('0x22')](/\u000A/g,''),_0x183fc4[_0x24d7('0x12')]=_0x183fc4['remove'][_0x24d7('0x22')](/(\S)\u000A+(\S)/g,_0x24d7('0x21'))[_0x24d7('0x22')](/\u000A/g,''),''!=_0x183fc4[_0x24d7('0x36')]&&''!=_0x183fc4[_0x24d7('0x12')]){_0x27e30b[_0x24d7('0x0')]({'type':'replace','content':_0x59c14e(_0x29a117,'REPLACE_TEXT',['\x22'+_0x183fc4[_0x24d7('0x12')]+'\x22','\x22'+_0x183fc4['add']+'\x22'])});continue;}if(null!=_0x183fc4['add'][_0x24d7('0x2')](/^ +$/)){_0x27e30b[_0x24d7('0x0')]({'type':_0x24d7('0x9'),'content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),_0x59c14e(_0x29a117,_0x24d7('0x23'),_0x183fc4[_0x24d7('0x36')][_0x24d7('0x25')]))});continue;}if(null!=_0x183fc4['remove']['match'](/^ +$/)){_0x27e30b['push']({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,'*Remove:*\x20%0',_0x59c14e(_0x29a117,_0x24d7('0x23'),_0x183fc4[_0x24d7('0x12')][_0x24d7('0x25')]))});continue;}if(''!=_0x183fc4['add']){_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),'\x22'+_0x183fc4[_0x24d7('0x36')]+'\x22')});continue;}_0x27e30b[_0x24d7('0x0')]({'type':'deletion','content':_0x59c14e(_0x29a117,'*Remove:*\x20%0','\x22'+_0x183fc4[_0x24d7('0x12')]+'\x22')});continue;case'addEmptyContainer':case _0x24d7('0x24'):_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),this[_0x24d7('0x6')](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case'removeEmptyContainer':case _0x24d7('0x8'):_0x27e30b[_0x24d7('0x0')]({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,_0x24d7('0xc'),this['getItemLabel'](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case _0x24d7('0x7'):_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,'*Split:*\x20%0',this[_0x24d7('0x6')](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case'removeContainer':_0x27e30b['push']({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,_0x24d7('0x29'),this['getItemLabel'](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;}_0x27e30b['push'](_0x183fc4);}return _0x27e30b;}}
23
+ const _0x156a=['getWalker','elementStart','set','start','remove','removeEmptyContainer','indexOf','nextSibling','length','name','element','_resolveDescriptionItems','$1\x20$2','Object','registerDescriptionCallback','isObject','previousSibling','push','Container','deletion','*Merge:*\x20%0','_schema','addContainer','_itemLabelsCallbacks','getItemLabel','REPLACE_TEXT','type','_locale','matchingCallback','*Split:*\x20%0','match','*Insert:*\x20%0','elementEnd','getFirstRange','replace','$textProxy','registerElementLabel','_itemLabels','ELEMENT_SPACE','insertion','isInContent','pop','_customCallbacks','_addDescriptionItems','item','end','quantity','skip','add','isEmpty','*Remove:*\x20%0','data','checkChild','text','get'];(function(_0x2a9f14,_0x156a9f){const _0x293f83=function(_0x3570d3){while(--_0x3570d3){_0x2a9f14['push'](_0x2a9f14['shift']());}};_0x293f83(++_0x156a9f);}(_0x156a,0x117));const _0x293f=function(_0x2a9f14,_0x156a9f){_0x2a9f14=_0x2a9f14-0x0;let _0x293f83=_0x156a[_0x2a9f14];return _0x293f83;};import{getTranslation as _0x6de871}from'./utils/common-translations';import{priorities as _0x199d60,insertToPriorityArray as _0x1eda7f}from'ckeditor5/src/utils';export default class m{constructor(_0x30efb1,_0x3e4982){this[_0x293f('0x26')]=[],this[_0x293f('0x21')]=new Map(),this[_0x293f('0x13')]=[],this[_0x293f('0x11')]=_0x30efb1,this[_0x293f('0x17')]=_0x3e4982;}['getDescriptions'](_0x45ddb8){const _0x256c60=[];for(let _0xb321ff=0x0;_0xb321ff<_0x45ddb8['length'];_0xb321ff++){const _0x2c2beb=_0x45ddb8[_0xb321ff];if(!_0x2c2beb[_0x293f('0x24')])continue;let _0x511909=!0x1;for(const _0xf431e9 of this[_0x293f('0x26')]){const _0x3a09fd=_0xf431e9(_0x2c2beb);if(_0x3a09fd){_0x293f('0x16')in _0x3a09fd&&_0x256c60[_0x293f('0xd')](_0x3a09fd),_0x511909=!0x0;break;}}if(!_0x511909){this['_addDescriptionItems'](_0x256c60,_0x2c2beb);const _0x4c18ff=_0x45ddb8[_0xb321ff+0x1];if(_0x4c18ff&&!_0x2c2beb[_0x293f('0x1d')]()[_0x293f('0x29')]['isEqual'](_0x4c18ff[_0x293f('0x1d')]()[_0x293f('0x36')])){const _0x146e42=_0x256c60[_0x256c60[_0x293f('0x4')]-0x1],_0x10005c=_0x293f('0x23')==_0x2c2beb[_0x293f('0x16')]?_0x293f('0x2c'):_0x293f('0x0');_0x146e42&&_0x293f('0x31')==_0x146e42['type']&&(_0x146e42[_0x10005c]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x256c60);}[_0x293f('0xa')](_0x93f621){this[_0x293f('0x26')][_0x293f('0xd')](_0x93f621);}[_0x293f('0x20')](_0x12a341,_0x2ecd7d,_0x27a571=_0x199d60['normal']){'function'==typeof _0x12a341?_0x1eda7f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x12a341,'label':_0x2ecd7d,'priority':_0x27a571}):this[_0x293f('0x21')][_0x293f('0x35')](_0x12a341,_0x2ecd7d);}[_0x293f('0x14')](_0x982f96,_0x3565e1=0x1){let _0x3b97eb;for(const _0x519e55 of this['_itemLabelsCallbacks'])if(_0x519e55[_0x293f('0x18')](_0x982f96)){_0x3b97eb=_0x519e55['label'];break;}return _0x3b97eb||(_0x3b97eb=this[_0x293f('0x21')][_0x293f('0x32')](_0x982f96['name'])),_0x3b97eb?_0x3b97eb(_0x3565e1):0x1!==_0x3565e1?_0x3565e1+'\x20'+_0x982f96['name']+'s':''+_0x982f96[_0x293f('0x5')];}[_0x293f('0x27')](_0x2cbdef,_0x3369df){const _0x75d538=_0x3369df[_0x293f('0x1d')]()[_0x293f('0x33')](),_0x230459=_0x293f('0x23')==_0x3369df[_0x293f('0x16')]?_0x293f('0x2c'):_0x293f('0x0');for(const _0x5773ec of _0x75d538){const _0x1636cb=_0x5773ec[_0x293f('0x28')],_0x339bb8=_0x2cbdef[_0x2cbdef[_0x293f('0x4')]-0x1];if(_0x1636cb['is'](_0x293f('0x1f')))_0x339bb8&&_0x339bb8[_0x293f('0x16')][_0x293f('0x2')]('Container')>-0x1&&_0x2cbdef[_0x293f('0x25')](),_0x339bb8&&_0x293f('0x31')==_0x339bb8[_0x293f('0x16')]?_0x339bb8[_0x230459]+=_0x1636cb[_0x293f('0x2f')]:_0x2cbdef[_0x293f('0xd')]({'type':_0x293f('0x31'),'add':_0x293f('0x2c')==_0x230459?_0x1636cb[_0x293f('0x2f')]:'','remove':_0x293f('0x0')==_0x230459?_0x1636cb[_0x293f('0x2f')]:''});else{if(this[_0x293f('0x11')][_0x293f('0xb')](_0x1636cb)){const _0x4e9d1f=_0x1636cb;if(_0x339bb8&&_0x339bb8[_0x293f('0x16')][_0x293f('0x2')]('Container')>-0x1&&_0x2cbdef['pop'](),_0x293f('0x1c')==_0x5773ec['type'])continue;_0x339bb8&&_0x339bb8['type']==_0x230459+'Object'&&_0x339bb8['element'][_0x293f('0x5')]==_0x4e9d1f[_0x293f('0x5')]?_0x339bb8['quantity']++:_0x2cbdef[_0x293f('0xd')]({'type':_0x230459+_0x293f('0x9'),'element':_0x4e9d1f,'quantity':0x1}),_0x75d538[_0x293f('0x2b')](_0xa05555=>!(_0x293f('0x1c')==_0xa05555[_0x293f('0x16')]&&_0xa05555['item']==_0x1636cb));}else{if(this[_0x293f('0x11')][_0x293f('0x30')](_0x1636cb,'$text')||_0x1636cb['is']('element','softBreak')){const _0x4166d3=_0x1636cb;if('add'==_0x230459&&_0x293f('0x34')==_0x5773ec[_0x293f('0x16')]||_0x293f('0x0')==_0x230459&&_0x293f('0x1c')==_0x5773ec['type'])continue;if(_0x339bb8&&-0x1==_0x339bb8[_0x293f('0x16')]['indexOf'](_0x293f('0xe'))){_0x293f('0x31')==_0x339bb8[_0x293f('0x16')]&&(_0x339bb8[_0x230459]+='\x0a');continue;}let _0x46850d;if(_0x46850d='add'==_0x230459?_0x4166d3[_0x293f('0x3')]&&!this['_schema'][_0x293f('0xb')](_0x4166d3[_0x293f('0x3')])?_0x4166d3['nextSibling']:null:_0x4166d3['previousSibling']&&!this['_schema']['isObject'](_0x4166d3['previousSibling'])?_0x4166d3[_0x293f('0xc')]:null,_0x4166d3[_0x293f('0x2d')]||_0x46850d&&_0x46850d[_0x293f('0x2d')]){const _0x3a5e1e=_0x46850d&&_0x46850d[_0x293f('0x2d')]?_0x46850d:_0x4166d3;_0x339bb8&&_0x339bb8['type']==_0x230459+'EmptyContainer'&&_0x339bb8['element'][_0x293f('0x5')]==_0x3a5e1e['name']?_0x339bb8[_0x293f('0x2a')]++:_0x2cbdef[_0x293f('0xd')]({'type':_0x230459+'EmptyContainer','element':_0x3a5e1e,'quantity':0x1});}else _0x2cbdef['push']({'type':_0x230459+_0x293f('0xe'),'element':_0x4166d3});}}}}}[_0x293f('0x7')](_0x3afd54){const _0x20e9c7=this[_0x293f('0x17')],_0x25f15c=[];for(const _0x4e2992 of _0x3afd54){switch(_0x4e2992[_0x293f('0x16')]){case _0x293f('0x31'):if(_0x4e2992[_0x293f('0x2c')]=_0x4e2992['add'][_0x293f('0x1e')](/(\S)\u000A+(\S)/g,_0x293f('0x8'))[_0x293f('0x1e')](/\u000A/g,''),_0x4e2992[_0x293f('0x0')]=_0x4e2992['remove'][_0x293f('0x1e')](/(\S)\u000A+(\S)/g,_0x293f('0x8'))[_0x293f('0x1e')](/\u000A/g,''),''!=_0x4e2992[_0x293f('0x2c')]&&''!=_0x4e2992['remove']){_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0x1e'),'content':_0x6de871(_0x20e9c7,_0x293f('0x15'),['\x22'+_0x4e2992['remove']+'\x22','\x22'+_0x4e2992[_0x293f('0x2c')]+'\x22'])});continue;}if(null!=_0x4e2992[_0x293f('0x2c')][_0x293f('0x1a')](/^ +$/)){_0x25f15c[_0x293f('0xd')]({'type':'insertion','content':_0x6de871(_0x20e9c7,_0x293f('0x1b'),_0x6de871(_0x20e9c7,_0x293f('0x22'),_0x4e2992[_0x293f('0x2c')][_0x293f('0x4')]))});continue;}if(null!=_0x4e2992[_0x293f('0x0')][_0x293f('0x1a')](/^ +$/)){_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0xf'),'content':_0x6de871(_0x20e9c7,_0x293f('0x2e'),_0x6de871(_0x20e9c7,_0x293f('0x22'),_0x4e2992['remove'][_0x293f('0x4')]))});continue;}if(''!=_0x4e2992[_0x293f('0x2c')]){_0x25f15c['push']({'type':'insertion','content':_0x6de871(_0x20e9c7,_0x293f('0x1b'),'\x22'+_0x4e2992[_0x293f('0x2c')]+'\x22')});continue;}_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0xf'),'content':_0x6de871(_0x20e9c7,_0x293f('0x2e'),'\x22'+_0x4e2992[_0x293f('0x0')]+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x25f15c['push']({'type':_0x293f('0x23'),'content':_0x6de871(_0x20e9c7,_0x293f('0x1b'),this[_0x293f('0x14')](_0x4e2992[_0x293f('0x6')],_0x4e2992[_0x293f('0x2a')]))});continue;case _0x293f('0x1'):case'removeObject':_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0xf'),'content':_0x6de871(_0x20e9c7,'*Remove:*\x20%0',this['getItemLabel'](_0x4e2992[_0x293f('0x6')],_0x4e2992[_0x293f('0x2a')]))});continue;case _0x293f('0x12'):_0x25f15c[_0x293f('0xd')]({'type':_0x293f('0x23'),'content':_0x6de871(_0x20e9c7,_0x293f('0x19'),this['getItemLabel'](_0x4e2992[_0x293f('0x6')],_0x4e2992[_0x293f('0x2a')]))});continue;case'removeContainer':_0x25f15c[_0x293f('0xd')]({'type':'deletion','content':_0x6de871(_0x20e9c7,_0x293f('0x10'),this[_0x293f('0x14')](_0x4e2992['element'],_0x4e2992[_0x293f('0x2a')]))});continue;}_0x25f15c[_0x293f('0xd')](_0x4e2992);}return _0x25f15c;}}
@@ -112,8 +112,10 @@ export default class TrackChanges extends Plugin {
112
112
  * trackChanges: {
113
113
  * // Do not allow users to comment suggestions (default is `false`).
114
114
  * disableComments: true,
115
- * // Do not track styling and formatting changes (default is `true`).
116
- * trackFormatChanges: false
115
+ * // Do not track styling and formatting changes (default is `default`).
116
+ * trackFormatChanges: 'never',
117
+ * // Merges suggestion changes inside a block. (default is `true`).
118
+ * mergeNestedSuggestions: true
117
119
  * }
118
120
  * } )
119
121
  * .then( ... )
@@ -133,13 +135,29 @@ export interface TrackChangesConfig {
133
135
  */
134
136
  disableComments: boolean;
135
137
  /**
136
- * A property that specifies whether format changes should be tracked (`true`) or not (`false`).
138
+ * A property that specifies whether format changes should be tracked.
137
139
  *
138
140
  * Format changes are all changes other than insertions and deletions, including: styling, structure, widgets properties, etc.
139
141
  *
140
- * Defaults to `true`.
142
+ * Possible values are:
143
+ *
144
+ * * `'always'` - all changes are going to be tracked independently (without merging).
145
+ * * `'default'` - format changes made inside your own insertion suggestion will be merged with it.
146
+ * * `'never'` - format changes will not be tracked.
147
+ *
148
+ * Defaults to `'default'`.
149
+ */
150
+ trackFormatChanges: 'never' | 'default' | 'always';
151
+ /**
152
+ * Specifies whether suggestions on an object (e.g. image, table) should be automatically merged
153
+ * with suggestions inside the object (e.g. image caption, table cell).
154
+ *
155
+ * For example, when set to `true`, creating a table and writing some text inside the table will result in one suggestion.
156
+ * When set to `false`, it will be two separate suggestions, one for the inserted table and one for the inserted text.
157
+ *
158
+ * Keep in mind that only suggestions from the same author and of the same type are merged this way.
141
159
  */
142
- trackFormatChanges: boolean;
160
+ mergeNestedSuggestions: boolean;
143
161
  /**
144
162
  * A view class to be used to create suggestion thread views.
145
163
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2818=['TrackChanges','get','editor','adapter','getSuggestions','requires','addSuggestionData','plugins','pluginName','getSuggestion'];(function(_0x2d8288,_0x2818b8){var _0xbb126e=function(_0x592a8f){while(--_0x592a8f){_0x2d8288['push'](_0x2d8288['shift']());}};_0xbb126e(++_0x2818b8);}(_0x2818,0x123));var _0xbb12=function(_0x2d8288,_0x2818b8){_0x2d8288=_0x2d8288-0x0;var _0xbb126e=_0x2818[_0x2d8288];return _0xbb126e;};import{Plugin as _0x5c1cd6}from'ckeditor5/src/core';import _0x300084 from'./trackchangesui';import _0x359ba5 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x5c1cd6{static get[_0xbb12('0x4')](){return[_0x359ba5,_0x300084,'Comments'];}static get[_0xbb12('0x7')](){return _0xbb12('0x9');}set['adapter'](_0x4b979f){this[_0xbb12('0x1')]['plugins']['get'](_0x359ba5)[_0xbb12('0x2')]=_0x4b979f;}get['adapter'](){return this[_0xbb12('0x1')][_0xbb12('0x6')]['get'](_0x359ba5)[_0xbb12('0x2')];}['addSuggestion'](_0x3c98fa){return this[_0xbb12('0x1')][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x5')](_0x3c98fa);}[_0xbb12('0x3')]({skipNotAttached:_0x5d1957=!0x1,toJSON:_0x55893d=!0x1}={}){return this['editor'][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x3')]({'skipNotAttached':_0x5d1957,'toJSON':_0x55893d});}[_0xbb12('0x8')](_0x4c0e04){return this[_0xbb12('0x1')][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x8')](_0x4c0e04);}}
23
+ var _0x2cb9=['Comments','adapter','get','plugins','editor','addSuggestionData','TrackChanges','getSuggestions','getSuggestion','pluginName'];(function(_0x483fef,_0x2cb991){var _0x86e6dd=function(_0x2ff9ce){while(--_0x2ff9ce){_0x483fef['push'](_0x483fef['shift']());}};_0x86e6dd(++_0x2cb991);}(_0x2cb9,0x193));var _0x86e6=function(_0x483fef,_0x2cb991){_0x483fef=_0x483fef-0x0;var _0x86e6dd=_0x2cb9[_0x483fef];return _0x86e6dd;};import{Plugin as _0x1ff5a3}from'ckeditor5/src/core';import _0x21d1e4 from'./trackchangesui';import _0x2d05fd from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x1ff5a3{static get['requires'](){return[_0x2d05fd,_0x21d1e4,_0x86e6('0x7')];}static get[_0x86e6('0x6')](){return _0x86e6('0x3');}set[_0x86e6('0x8')](_0x5fcca){this['editor'][_0x86e6('0x0')][_0x86e6('0x9')](_0x2d05fd)[_0x86e6('0x8')]=_0x5fcca;}get[_0x86e6('0x8')](){return this[_0x86e6('0x1')]['plugins'][_0x86e6('0x9')](_0x2d05fd)['adapter'];}['addSuggestion'](_0x186c70){return this['editor']['plugins']['get'](_0x2d05fd)[_0x86e6('0x2')](_0x186c70);}['getSuggestions']({skipNotAttached:_0x1c5cb1=!0x1,toJSON:_0x28bd7c=!0x1}={}){return this[_0x86e6('0x1')][_0x86e6('0x0')]['get'](_0x2d05fd)[_0x86e6('0x4')]({'skipNotAttached':_0x1c5cb1,'toJSON':_0x28bd7c});}[_0x86e6('0x5')](_0xa568d2){return this[_0x86e6('0x1')][_0x86e6('0x0')][_0x86e6('0x9')](_0x2d05fd)[_0x86e6('0x5')](_0xa568d2);}}
@@ -15,8 +15,10 @@ import type SuggestionThreadView from './ui/view/suggestionthreadview';
15
15
  * trackChanges: {
16
16
  * // Do not allow users to comment suggestions (default is `false`).
17
17
  * disableComments: true,
18
- * // Do not track styling and formatting changes (default is `true`).
19
- * trackFormatChanges: false
18
+ * // Do not track styling and formatting changes (default is `default`).
19
+ * trackFormatChanges: 'never',
20
+ * // Merges suggestion changes inside a block. (default is `true`).
21
+ * mergeNestedSuggestions: true
20
22
  * }
21
23
  * } )
22
24
  * .then( ... )
@@ -36,13 +38,29 @@ export interface TrackChangesConfig {
36
38
  */
37
39
  disableComments: boolean;
38
40
  /**
39
- * A property that specifies whether format changes should be tracked (`true`) or not (`false`).
41
+ * A property that specifies whether format changes should be tracked.
40
42
  *
41
43
  * Format changes are all changes other than insertions and deletions, including: styling, structure, widgets properties, etc.
42
44
  *
43
- * Defaults to `true`.
45
+ * Possible values are:
46
+ *
47
+ * * `'always'` - all changes are going to be tracked independently (without merging).
48
+ * * `'default'` - format changes made inside your own insertion suggestion will be merged with it.
49
+ * * `'never'` - format changes will not be tracked.
50
+ *
51
+ * Defaults to `'default'`.
52
+ */
53
+ trackFormatChanges: 'never' | 'default' | 'always';
54
+ /**
55
+ * Specifies whether suggestions on an object (e.g. image, table) should be automatically merged
56
+ * with suggestions inside the object (e.g. image caption, table cell).
57
+ *
58
+ * For example, when set to `true`, creating a table and writing some text inside the table will result in one suggestion.
59
+ * When set to `false`, it will be two separate suggestions, one for the inserted table and one for the inserted text.
60
+ *
61
+ * Keep in mind that only suggestions from the same author and of the same type are merged this way.
44
62
  */
45
- trackFormatChanges: boolean;
63
+ mergeNestedSuggestions: boolean;
46
64
  /**
47
65
  * A view class to be used to create suggestion thread views.
48
66
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20fd=['useAnonymousUser','track-changes-data-invalid-editor-creator','extraPlugins','find','editorCreator','users','builtinPlugins','model','discardAllSuggestions','end','WebSocketGateway','constructor','getUser','editor','appendChild','Autosave','WordCount','TrackChangesData','requires','push','includes','trackChangesData.editorCreator','set','init','adapter','name','pluginName','config','RevisionTracker','filter','getRootNames','getDataWithDiscardedSuggestions','map','trackChangesData','has','create','execute','string','plugins','document','addSuggestionData','createElement','CommentsRepository','TrackChangesEditing','createDocumentFragment','data','destroy','concat','getDataWithAcceptedSuggestions','context','Users','TrackChangesDataGetter','function','get'];(function(_0x5a37ee,_0x20fda8){const _0x414c46=function(_0x2e2529){while(--_0x2e2529){_0x5a37ee['push'](_0x5a37ee['shift']());}};_0x414c46(++_0x20fda8);}(_0x20fd,0x1df));const _0x414c=function(_0x5a37ee,_0x20fda8){_0x5a37ee=_0x5a37ee-0x0;let _0x414c46=_0x20fd[_0x5a37ee];return _0x414c46;};import{Plugin as _0x30e67d}from'ckeditor5/src/core';import{CKEditorError as _0x18edc4}from'ckeditor5/src/utils';import _0x25b209 from'./trackchangesediting';const C=['initialData',_0x414c('0x2'),'toolbar'],w=[_0x414c('0x11'),_0x414c('0x23'),_0x414c('0x16'),_0x414c('0x17'),'Pagination'];export default class T extends _0x30e67d{static get[_0x414c('0x19')](){return[_0x25b209];}static get['pluginName'](){return _0x414c('0x18');}['init'](){const _0x11e265=this[_0x414c('0x14')];if(_0x11e265['config']['define'](_0x414c('0x1c'),_0x52fa35=>_0x11e265[_0x414c('0x12')][_0x414c('0x2a')]('',_0x52fa35)),_0x414c('0x5')!=typeof _0x11e265[_0x414c('0x22')][_0x414c('0x6')](_0x414c('0x28'))[_0x414c('0xb')])throw new _0x18edc4(_0x414c('0x8'));}[_0x414c('0x1')](_0x11ab8e){return D(this[_0x414c('0x14')],!0x0,_0x11ab8e);}[_0x414c('0x26')](_0x620506){return D(this[_0x414c('0x14')],!0x1,_0x620506);}}class P extends _0x30e67d{static get['pluginName'](){return _0x414c('0x4');}constructor(_0x13abf3){super(_0x13abf3),this['result']=_0x414c('0x10');}[_0x414c('0x1e')](){this[_0x414c('0x14')][_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x31'))[_0x414c('0x1f')]={'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[_0x414c('0x14')][_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x32'))['_adapter']=null;}}async function D(_0x31f8d3,_0x2d1a01,_0x4311e2){const _0x2e612c=function(_0x528070){const _0x3b3b17={};for(const _0x2ccb08 of _0x528070['config']['names']())C[_0x414c('0x1b')](_0x2ccb08)||(_0x3b3b17[_0x2ccb08]=_0x528070[_0x414c('0x22')][_0x414c('0x6')](_0x2ccb08));const _0x1f58b5=_0x528070['constructor'][_0x414c('0xd')]||[],_0x228195=_0x3b3b17[_0x414c('0x9')]||[];delete _0x3b3b17[_0x414c('0x9')];const _0x19743e=_0x1f58b5[_0x414c('0x0')](_0x3b3b17['plugins'])['concat'](_0x228195)[_0x414c('0x27')](_0x1ea9ca=>_0x414c('0x2c')==typeof _0x1ea9ca?_0x1f58b5[_0x414c('0xa')](_0x197979=>_0x197979[_0x414c('0x21')]==_0x1ea9ca):_0x1ea9ca),_0x19bb11=Array['from'](new Set(_0x19743e)),_0x523973=new Map();return _0x3b3b17['plugins']=_0x19bb11[_0x414c('0x24')](_0x5635c0=>v(_0x5635c0,_0x523973)),_0x3b3b17[_0x414c('0x2d')][_0x414c('0x1a')](P),_0x3b3b17[_0x414c('0x2d')]['push'](_0x25b209),_0x3b3b17;}(_0x31f8d3),_0x148b40=document[_0x414c('0x33')](),_0x46ed23=_0x31f8d3[_0x414c('0x22')]['get'](_0x414c('0x28'))[_0x414c('0xb')],_0x92ee5=await _0x46ed23(_0x2e612c,()=>function(_0x1857d3){const _0x2a8d77=document[_0x414c('0x30')]('div');return _0x1857d3[_0x414c('0x15')](_0x2a8d77),_0x2a8d77;}(_0x148b40));!function(_0x501b89,_0x5c7d60){const _0x1c9f94=_0x501b89[_0x414c('0xe')][_0x414c('0x2e')][_0x414c('0x25')]()['reduce']((_0x272b66,_0x3cfd7c)=>(_0x272b66[_0x3cfd7c]=_0x501b89[_0x414c('0x34')][_0x414c('0x6')]({'rootName':_0x3cfd7c}),_0x272b66),{}),_0x315624=_0x501b89['plugins'][_0x414c('0x6')](_0x414c('0x3'))[_0x414c('0xc')]['map'](_0x501df9=>({'id':_0x501df9['id'],'name':_0x501df9[_0x414c('0x20')]})),_0x37df8e=_0x501b89[_0x414c('0x2d')]['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c1c10=_0x5c7d60['plugins']['get'](_0x414c('0x3')),_0x434f7f=_0x5c7d60[_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x32'));for(const _0x1bdca6 of _0x315624)_0x5c1c10[_0x414c('0x13')](_0x1bdca6['id'])||_0x5c1c10['addUser'](_0x1bdca6);_0x5c1c10['me']||_0x5c1c10[_0x414c('0x7')]();for(const _0x2c5e87 of _0x37df8e)_0x434f7f[_0x414c('0x2f')](_0x2c5e87);_0x5c7d60[_0x414c('0x34')][_0x414c('0x1d')](_0x1c9f94);}(_0x31f8d3,_0x92ee5),_0x92ee5[_0x414c('0x2b')](_0x2d1a01?'acceptAllSuggestions':_0x414c('0xf'));const _0x26e3d3=_0x92ee5[_0x414c('0x34')]['get'](_0x4311e2);return await _0x92ee5[_0x414c('0x35')](),_0x26e3d3;}function v(_0x1d6d10,_0x3f305c){const _0x5022c0=_0x414c('0x5')==typeof _0x1d6d10?_0x1d6d10['pluginName']||_0x1d6d10[_0x414c('0x20')]:_0x1d6d10;if(_0x3f305c[_0x414c('0x29')](_0x5022c0))return _0x3f305c['get'](_0x5022c0);if(_0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x0),_0x5022c0&&w[_0x414c('0x1b')](_0x5022c0))return _0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x1),!0x1;if(!_0x1d6d10[_0x414c('0x19')])return _0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x0),!0x0;const _0x3fa570=_0x1d6d10[_0x414c('0x19')]['every'](_0x4cdfa6=>v(_0x4cdfa6,_0x3f305c));return _0x3f305c[_0x414c('0x1d')](_0x5022c0,_0x3fa570),_0x3fa570;}
23
+ const _0x5085=['addSuggestionData','data','WebSocketGateway','reduce','has','create','document','getSuggestions','includes','filter','useAnonymousUser','define','plugins','acceptAllSuggestions','WordCount','trackChangesData.editorCreator','string','concat','appendChild','map','editor','getDataWithDiscardedSuggestions','RevisionTracker','set','pluginName','names','TrackChangesDataGetter','track-changes-data-invalid-editor-creator','constructor','CommentsRepository','config','editorCreator','createElement','builtinPlugins','discardAllSuggestions','requires','div','get','TrackChangesData','init','TrackChangesEditing','from','trackChangesData','createDocumentFragment','users','Users','find','Autosave','getRootNames','function','name','push','extraPlugins','model'];(function(_0x5e93f9,_0x508560){const _0x55bb14=function(_0x53af10){while(--_0x53af10){_0x5e93f9['push'](_0x5e93f9['shift']());}};_0x55bb14(++_0x508560);}(_0x5085,0x1f1));const _0x55bb=function(_0x5e93f9,_0x508560){_0x5e93f9=_0x5e93f9-0x0;let _0x55bb14=_0x5085[_0x5e93f9];return _0x55bb14;};import{Plugin as _0x306775}from'ckeditor5/src/core';import{CKEditorError as _0x338c16}from'ckeditor5/src/utils';import _0x451638 from'./trackchangesediting';const C=['initialData','context','toolbar'],w=[_0x55bb('0x2d'),_0x55bb('0xb'),_0x55bb('0x24'),_0x55bb('0x3'),'Pagination','DocumentOutline'];export default class T extends _0x306775{static get[_0x55bb('0x18')](){return[_0x451638];}static get['pluginName'](){return _0x55bb('0x1b');}[_0x55bb('0x1c')](){const _0x39c0be=this['editor'];if(_0x39c0be[_0x55bb('0x13')][_0x55bb('0x0')](_0x55bb('0x4'),_0x47ba08=>_0x39c0be[_0x55bb('0x11')][_0x55bb('0x30')]('',_0x47ba08)),_0x55bb('0x26')!=typeof _0x39c0be[_0x55bb('0x13')][_0x55bb('0x1a')](_0x55bb('0x1f'))['editorCreator'])throw new _0x338c16(_0x55bb('0x10'));}['getDataWithAcceptedSuggestions'](_0x31ba88){return P(this[_0x55bb('0x9')],!0x0,_0x31ba88);}[_0x55bb('0xa')](_0xbde695){return P(this[_0x55bb('0x9')],!0x1,_0xbde695);}}class D extends _0x306775{static get[_0x55bb('0xd')](){return _0x55bb('0xf');}constructor(_0x69266a){super(_0x69266a),this['result']='end';}[_0x55bb('0x1c')](){this[_0x55bb('0x9')][_0x55bb('0x1')]['get'](_0x55bb('0x12'))['adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor'][_0x55bb('0x1')][_0x55bb('0x1a')]('TrackChangesEditing')['_adapter']=null;}}async function P(_0x31e4b0,_0xcc00c4,_0x4c21d6){const _0x3a18db=function(_0x1a8d86){const _0x18e3a5={};for(const _0x3ce101 of _0x1a8d86[_0x55bb('0x13')][_0x55bb('0xe')]())C[_0x55bb('0x33')](_0x3ce101)||(_0x18e3a5[_0x3ce101]=_0x1a8d86['config'][_0x55bb('0x1a')](_0x3ce101));const _0x114f36=_0x1a8d86[_0x55bb('0x11')][_0x55bb('0x16')]||[],_0x268aa1=_0x18e3a5[_0x55bb('0x29')]||[];delete _0x18e3a5[_0x55bb('0x29')];const _0x35d6bb=_0x114f36['concat'](_0x18e3a5[_0x55bb('0x1')])[_0x55bb('0x6')](_0x268aa1)['map'](_0x45bd9f=>_0x55bb('0x5')==typeof _0x45bd9f?_0x114f36[_0x55bb('0x23')](_0x47f8cd=>_0x47f8cd[_0x55bb('0xd')]==_0x45bd9f):_0x45bd9f),_0x5912e0=Array[_0x55bb('0x1e')](new Set(_0x35d6bb)),_0x169f46=new Map();return _0x18e3a5[_0x55bb('0x1')]=_0x5912e0[_0x55bb('0x34')](_0x4f0a24=>v(_0x4f0a24,_0x169f46)),_0x18e3a5[_0x55bb('0x1')][_0x55bb('0x28')](D),_0x18e3a5['plugins'][_0x55bb('0x28')](_0x451638),_0x18e3a5;}(_0x31e4b0),_0x3f0296=document[_0x55bb('0x20')](),_0x2269b6=_0x31e4b0[_0x55bb('0x13')][_0x55bb('0x1a')]('trackChangesData')[_0x55bb('0x14')],_0x495a03=await _0x2269b6(_0x3a18db,()=>function(_0x1e697f){const _0x1e1035=document[_0x55bb('0x15')](_0x55bb('0x19'));return _0x1e697f[_0x55bb('0x7')](_0x1e1035),_0x1e1035;}(_0x3f0296));!function(_0x27c3e2,_0x34fc4a){const _0x237046=_0x27c3e2[_0x55bb('0x2a')][_0x55bb('0x31')][_0x55bb('0x25')]()[_0x55bb('0x2e')]((_0x301507,_0x5868e6)=>(_0x301507[_0x5868e6]=_0x27c3e2[_0x55bb('0x2c')][_0x55bb('0x1a')]({'rootName':_0x5868e6}),_0x301507),{}),_0x4ab205=_0x27c3e2[_0x55bb('0x1')]['get'](_0x55bb('0x22'))[_0x55bb('0x21')][_0x55bb('0x8')](_0x5c6b5a=>({'id':_0x5c6b5a['id'],'name':_0x5c6b5a[_0x55bb('0x27')]})),_0x364a0c=_0x27c3e2[_0x55bb('0x1')][_0x55bb('0x1a')](_0x55bb('0x1d'))[_0x55bb('0x32')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ee5d3=_0x34fc4a[_0x55bb('0x1')]['get'](_0x55bb('0x22')),_0x3f1011=_0x34fc4a[_0x55bb('0x1')]['get'](_0x55bb('0x1d'));for(const _0x14af74 of _0x4ab205)_0x4ee5d3['getUser'](_0x14af74['id'])||_0x4ee5d3['addUser'](_0x14af74);_0x4ee5d3['me']||_0x4ee5d3[_0x55bb('0x35')]();for(const _0x479ba1 of _0x364a0c)_0x3f1011[_0x55bb('0x2b')](_0x479ba1);_0x34fc4a[_0x55bb('0x2c')][_0x55bb('0xc')](_0x237046);}(_0x31e4b0,_0x495a03),_0x495a03['execute'](_0xcc00c4?_0x55bb('0x2'):_0x55bb('0x17'));const _0x21847f=_0x495a03['data'][_0x55bb('0x1a')](_0x4c21d6);return await _0x495a03['destroy'](),_0x21847f;}function v(_0x342fba,_0x3c152e){const _0x5bda1e='function'==typeof _0x342fba?_0x342fba[_0x55bb('0xd')]||_0x342fba[_0x55bb('0x27')]:_0x342fba;if(_0x3c152e[_0x55bb('0x2f')](_0x5bda1e))return _0x3c152e[_0x55bb('0x1a')](_0x5bda1e);if(_0x3c152e[_0x55bb('0xc')](_0x5bda1e,!0x0),_0x5bda1e&&w['includes'](_0x5bda1e))return _0x3c152e[_0x55bb('0xc')](_0x5bda1e,!0x1),!0x1;if(!_0x342fba[_0x55bb('0x18')])return _0x3c152e[_0x55bb('0xc')](_0x5bda1e,!0x0),!0x0;const _0x3c26a2=_0x342fba[_0x55bb('0x18')]['every'](_0x2b2579=>v(_0x2b2579,_0x3c152e));return _0x3c152e[_0x55bb('0xc')](_0x5bda1e,_0x3c26a2),_0x3c26a2;}