@ckeditor/ckeditor5-track-changes 35.3.1 → 35.4.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 (152) 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 +13 -0
  49. package/lang/translations/ar.po +55 -3
  50. package/lang/translations/az.po +52 -0
  51. package/lang/translations/bg.po +55 -3
  52. package/lang/translations/bn.po +55 -3
  53. package/lang/translations/ca.po +55 -3
  54. package/lang/translations/cs.po +55 -3
  55. package/lang/translations/da.po +55 -3
  56. package/lang/translations/de.po +55 -3
  57. package/lang/translations/el.po +55 -3
  58. package/lang/translations/en-au.po +52 -0
  59. package/lang/translations/en.po +52 -0
  60. package/lang/translations/es.po +55 -3
  61. package/lang/translations/et.po +55 -3
  62. package/lang/translations/fi.po +55 -3
  63. package/lang/translations/fr.po +55 -3
  64. package/lang/translations/gl.po +52 -0
  65. package/lang/translations/he.po +55 -3
  66. package/lang/translations/hi.po +55 -3
  67. package/lang/translations/hr.po +52 -0
  68. package/lang/translations/hu.po +55 -3
  69. package/lang/translations/id.po +55 -3
  70. package/lang/translations/it.po +55 -3
  71. package/lang/translations/ja.po +55 -3
  72. package/lang/translations/ko.po +55 -3
  73. package/lang/translations/lt.po +55 -3
  74. package/lang/translations/lv.po +55 -3
  75. package/lang/translations/ms.po +55 -3
  76. package/lang/translations/nl.po +55 -3
  77. package/lang/translations/no.po +55 -3
  78. package/lang/translations/pl.po +55 -3
  79. package/lang/translations/pt-br.po +55 -3
  80. package/lang/translations/pt.po +55 -3
  81. package/lang/translations/ro.po +55 -3
  82. package/lang/translations/ru.po +55 -3
  83. package/lang/translations/sk.po +55 -3
  84. package/lang/translations/sr-latn.po +52 -0
  85. package/lang/translations/sr.po +55 -3
  86. package/lang/translations/sv.po +55 -3
  87. package/lang/translations/th.po +55 -3
  88. package/lang/translations/tk.po +52 -0
  89. package/lang/translations/tr.po +55 -3
  90. package/lang/translations/tt.po +52 -0
  91. package/lang/translations/uk.po +55 -3
  92. package/lang/translations/ur.po +52 -0
  93. package/lang/translations/vi.po +55 -3
  94. package/lang/translations/zh-cn.po +55 -3
  95. package/lang/translations/zh.po +55 -3
  96. package/package.json +4 -4
  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/integrations/alignment.js +1 -1
  103. package/src/integrations/basicstyles.js +1 -1
  104. package/src/integrations/blockquote.js +1 -1
  105. package/src/integrations/ckbox.js +1 -1
  106. package/src/integrations/codeblock.js +1 -1
  107. package/src/integrations/comments.js +1 -1
  108. package/src/integrations/deletecommand.js +1 -1
  109. package/src/integrations/documentlist.js +1 -1
  110. package/src/integrations/documentlistproperties.js +23 -0
  111. package/src/integrations/entercommand.js +1 -1
  112. package/src/integrations/font.js +1 -1
  113. package/src/integrations/heading.js +1 -1
  114. package/src/integrations/highlight.js +1 -1
  115. package/src/integrations/horizontalline.js +1 -1
  116. package/src/integrations/htmlembed.js +1 -1
  117. package/src/integrations/image.js +1 -1
  118. package/src/integrations/importword.js +1 -1
  119. package/src/integrations/indent.js +1 -1
  120. package/src/integrations/inputcommand.js +1 -1
  121. package/src/integrations/link.js +1 -1
  122. package/src/integrations/list.js +1 -1
  123. package/src/integrations/listproperties.js +23 -0
  124. package/src/integrations/mediaembed.js +1 -1
  125. package/src/integrations/mention.js +1 -1
  126. package/src/integrations/pagebreak.js +1 -1
  127. package/src/integrations/paragraph.js +1 -1
  128. package/src/integrations/removeformat.js +1 -1
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.js +1 -1
  131. package/src/integrations/standardeditingmode.js +1 -1
  132. package/src/integrations/style.js +1 -1
  133. package/src/integrations/table.js +1 -1
  134. package/src/integrations/tablecaption.js +1 -1
  135. package/src/integrations/tableclipboard.js +1 -1
  136. package/src/integrations/tablecolumnresize.js +23 -0
  137. package/src/integrations/tableheadings.js +1 -1
  138. package/src/integrations/tablemergesplit.js +1 -1
  139. package/src/integrations/title.js +1 -1
  140. package/src/integrations/undo.js +1 -1
  141. package/src/integrations/utils.js +1 -1
  142. package/src/suggestion.js +1 -1
  143. package/src/suggestiondescriptionfactory.js +1 -1
  144. package/src/trackchanges.js +1 -1
  145. package/src/trackchangesdata.js +1 -1
  146. package/src/trackchangesediting.js +1 -1
  147. package/src/trackchangesui.js +1 -1
  148. package/src/ui/suggestioncontroller.js +1 -1
  149. package/src/ui/view/basesuggestionthreadview.js +1 -1
  150. package/src/ui/view/suggestionthreadview.js +1 -1
  151. package/src/utils/common-translations.js +1 -1
  152. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1658=['document','_descriptionFactory','has','createRange','_splitMarkerName','getChangedMarkers','Title','forward','ELEMENT_TITLE','TrackChangesEditing','model','get','registerElementLabel','from','start','isCollapsed','getNearestSelectionRange','schema','updateMarker','end','newRange','title-content','isTouching','removeMarker','nodeBefore'];(function(_0x34f2ba,_0x1658f5){const _0x473fc6=function(_0x5df86d){while(--_0x5df86d){_0x34f2ba['push'](_0x34f2ba['shift']());}};_0x473fc6(++_0x1658f5);}(_0x1658,0x142));const _0x473f=function(_0x34f2ba,_0x1658f5){_0x34f2ba=_0x34f2ba-0x0;let _0x473fc6=_0x1658[_0x34f2ba];return _0x473fc6;};import{Plugin as _0x4ab924}from'ckeditor5/src/core';import{getTranslation as _0x23f868}from'../utils/common-translations';export default class dt extends _0x4ab924{['afterInit'](){const _0x2deee3=this['editor'];if(!_0x2deee3['plugins'][_0x473f('0x5')](_0x473f('0x9')))return;const _0x3a21f2=_0x2deee3['plugins'][_0x473f('0xe')](_0x473f('0xc'));_0x3a21f2[_0x473f('0x4')][_0x473f('0xf')](_0x473f('0x18'),()=>_0x23f868(_0x2deee3['locale'],_0x473f('0xb'))),_0x2deee3['model'][_0x473f('0x3')]['registerPostFixer'](_0x248c7a=>{let _0x1dc887=!0x1;const _0x514acd=Array[_0x473f('0x10')](_0x2deee3[_0x473f('0xd')]['document']['differ'][_0x473f('0x8')]());for(const {name:_0x7941b6,data:_0xabeef6}of _0x514acd){const {group:_0x59ee50}=_0x3a21f2[_0x473f('0x7')](_0x7941b6);if('suggestion'!==_0x59ee50||!_0xabeef6[_0x473f('0x17')])continue;const _0x2f26e4=_0xabeef6['newRange'],_0x45080f=_0x2f26e4[_0x473f('0x16')][_0x473f('0x2')];if(!_0x45080f||!_0x45080f['is']('element','title-content'))continue;if(!_0x2f26e4[_0x473f('0x11')][_0x473f('0x0')](_0x2f26e4[_0x473f('0x16')]))continue;const _0x3248e4=_0x2deee3[_0x473f('0xd')][_0x473f('0x14')][_0x473f('0x13')](_0x2f26e4['end'],_0x473f('0xa'));if(_0x3248e4&&_0x3248e4[_0x473f('0x12')]){const _0x13cfd3=_0x248c7a[_0x473f('0x6')](_0x2f26e4[_0x473f('0x11')],_0x3248e4['start']);_0x13cfd3['isEqual'](_0x2f26e4)||(_0x248c7a[_0x473f('0x15')](_0x7941b6,{'range':_0x13cfd3}),_0x1dc887=!0x0);}_0x1dc887||(_0x248c7a[_0x473f('0x1')](_0x7941b6),_0x1dc887=!0x0);}return _0x1dc887;});}}
23
+ const _0x2440=['updateMarker','has','get','Title','nodeBefore','element','start','ELEMENT_TITLE','title-content','schema','locale','end','isTouching','forward','removeMarker','_descriptionFactory','document','plugins','registerPostFixer','TrackChangesEditing','suggestion','newRange','isCollapsed','model','afterInit','from'];(function(_0x44728,_0x2440b5){const _0x4d47b2=function(_0x247d6f){while(--_0x247d6f){_0x44728['push'](_0x44728['shift']());}};_0x4d47b2(++_0x2440b5);}(_0x2440,0x65));const _0x4d47=function(_0x44728,_0x2440b5){_0x44728=_0x44728-0x0;let _0x4d47b2=_0x2440[_0x44728];return _0x4d47b2;};import{Plugin as _0x593aec}from'ckeditor5/src/core';import{getTranslation as _0x1acea1}from'../utils/common-translations';export default class wt extends _0x593aec{[_0x4d47('0x1')](){const _0x575dd6=this['editor'];if(!_0x575dd6[_0x4d47('0x14')][_0x4d47('0x4')](_0x4d47('0x6')))return;const _0x2c47a5=_0x575dd6[_0x4d47('0x14')][_0x4d47('0x5')](_0x4d47('0x16'));_0x2c47a5[_0x4d47('0x12')]['registerElementLabel'](_0x4d47('0xb'),()=>_0x1acea1(_0x575dd6[_0x4d47('0xd')],_0x4d47('0xa'))),_0x575dd6[_0x4d47('0x0')][_0x4d47('0x13')][_0x4d47('0x15')](_0xdb6a35=>{let _0x30108c=!0x1;const _0x42fe59=Array[_0x4d47('0x2')](_0x575dd6[_0x4d47('0x0')][_0x4d47('0x13')]['differ']['getChangedMarkers']());for(const {name:_0x3ad1d9,data:_0x5e4ab0}of _0x42fe59){const {group:_0xcf7715}=_0x2c47a5['_splitMarkerName'](_0x3ad1d9);if(_0x4d47('0x17')!==_0xcf7715||!_0x5e4ab0[_0x4d47('0x18')])continue;const _0x41080a=_0x5e4ab0[_0x4d47('0x18')],_0x244b4e=_0x41080a['end'][_0x4d47('0x7')];if(!_0x244b4e||!_0x244b4e['is'](_0x4d47('0x8'),_0x4d47('0xb')))continue;if(!_0x41080a['start'][_0x4d47('0xf')](_0x41080a[_0x4d47('0xe')]))continue;const _0x2cd4e1=_0x575dd6[_0x4d47('0x0')][_0x4d47('0xc')]['getNearestSelectionRange'](_0x41080a[_0x4d47('0xe')],_0x4d47('0x10'));if(_0x2cd4e1&&_0x2cd4e1[_0x4d47('0x19')]){const _0x14a276=_0xdb6a35['createRange'](_0x41080a[_0x4d47('0x9')],_0x2cd4e1[_0x4d47('0x9')]);_0x14a276['isEqual'](_0x41080a)||(_0xdb6a35[_0x4d47('0x3')](_0x3ad1d9,{'range':_0x14a276}),_0x30108c=!0x0);}_0x30108c||(_0xdb6a35[_0x4d47('0x11')](_0x3ad1d9),_0x30108c=!0x0);}return _0x30108c;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ad5=['has','undo','UndoEditing','redo','TrackChangesEditing','editor','get','afterInit','enableCommand'];(function(_0xa65315,_0x4ad5ad){const _0x1286cb=function(_0x1c19a2){while(--_0x1c19a2){_0xa65315['push'](_0xa65315['shift']());}};_0x1286cb(++_0x4ad5ad);}(_0x4ad5,0x8f));const _0x1286=function(_0xa65315,_0x4ad5ad){_0xa65315=_0xa65315-0x0;let _0x1286cb=_0x4ad5[_0xa65315];return _0x1286cb;};import{Plugin as _0x1128f6}from'ckeditor5/src/core';export default class pt extends _0x1128f6{[_0x1286('0x8')](){const _0x38e4f4=this[_0x1286('0x6')],_0x5376ef=_0x38e4f4['plugins'][_0x1286('0x7')](_0x1286('0x5'));_0x38e4f4['plugins'][_0x1286('0x1')](_0x1286('0x3'))&&(_0x5376ef['enableCommand'](_0x1286('0x2')),_0x5376ef[_0x1286('0x0')](_0x1286('0x4')));}}
23
+ const _0x579d=['plugins','editor','redo','has','get','UndoEditing','TrackChangesEditing','afterInit'];(function(_0x222c9c,_0x579d23){const _0x2d7d15=function(_0xab18d){while(--_0xab18d){_0x222c9c['push'](_0x222c9c['shift']());}};_0x2d7d15(++_0x579d23);}(_0x579d,0xf3));const _0x2d7d=function(_0x222c9c,_0x579d23){_0x222c9c=_0x222c9c-0x0;let _0x2d7d15=_0x579d[_0x222c9c];return _0x2d7d15;};import{Plugin as _0x540257}from'ckeditor5/src/core';export default class yt extends _0x540257{[_0x2d7d('0x4')](){const _0x151dc2=this[_0x2d7d('0x6')],_0x2bf193=_0x151dc2[_0x2d7d('0x5')][_0x2d7d('0x1')](_0x2d7d('0x3'));_0x151dc2[_0x2d7d('0x5')][_0x2d7d('0x0')](_0x2d7d('0x2'))&&(_0x2bf193['enableCommand']('undo'),_0x2bf193['enableCommand'](_0x2d7d('0x7')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13a0=['markerRange','createUIElement','getWalker','isContent','element','TrackChangesEditing','hasAttribute','elementEnd','getItems','start','get','getAttribute','markerName','previousPosition','createRangeOn','name','isLimit','bindElementToMarker','type','activeMarkers','ck-suggestion-marker-','nextSibling','listIndent','test','listItem','writer','plugins','addHighlight','parent','push','item','ck-suggestion-marker--active','mapper','schema','span'];(function(_0x2afbea,_0x13a0ab){const _0x5cb988=function(_0x5ad923){while(--_0x5ad923){_0x2afbea['push'](_0x2afbea['shift']());}};_0x5cb988(++_0x13a0ab);}(_0x13a0,0x118));const _0x5cb9=function(_0x2afbea,_0x13a0ab){_0x2afbea=_0x2afbea-0x0;let _0x5cb988=_0x13a0[_0x2afbea];return _0x5cb988;};export function getRangesWithAttribute(_0x34114a,_0xe006,_0xe31cc1){const _0x22078b=[];for(const _0x129a5e of _0xe006[_0x5cb9('0x8')]())_0x129a5e[_0x5cb9('0x6')](_0x34114a)&&_0x22078b[_0x5cb9('0x1d')](_0xe31cc1[_0x5cb9('0xe')](_0x129a5e));return _0x22078b;}export function getElementsAffectedByListItemRename(_0x4224b3){const _0x13adf5=[];if(_0x4224b3['is']('element',_0x5cb9('0x18'))){let _0x3e0364=_0x4224b3[_0x5cb9('0x15')];for(;_0x3e0364&&_0x3e0364['is'](_0x5cb9('0x4'),'listItem')&&_0x3e0364[_0x5cb9('0xb')](_0x5cb9('0x16'))>0x0;)_0x13adf5['push'](_0x3e0364),_0x3e0364=_0x3e0364[_0x5cb9('0x15')];}return _0x13adf5;}export function downcastSplitMergeMarker(_0x3a680a,_0xc82ef0,{showActiveMarker:_0xe0baa1=!0x0}={}){const _0x3bb192=_0x3a680a[_0x5cb9('0x1a')][_0x5cb9('0xa')](_0x5cb9('0x5'));return(_0xf4d68b,_0x5f2362,_0x77cae3)=>{if(!_0x77cae3['consumable'][_0x5cb9('0x17')](_0x5f2362[_0x5cb9('0x0')],_0xf4d68b[_0x5cb9('0xf')]))return;const _0x253430=_0x5f2362[_0x5cb9('0x0')][_0x5cb9('0x2')](),_0x3a6f6f=_0x5f2362['markerRange'][_0x5cb9('0x9')],_0x1c734e=_0x3a680a['model'][_0x5cb9('0x21')];let _0x1f7da1=null,_0x394592=null,_0x115b5e=!0x1,_0x59fb5b=!0x1;for(const _0x5731d6 of _0x253430){const _0x1d0d8c=_0x5731d6[_0x5cb9('0x1e')];_0x115b5e=_0x115b5e||_0x1c734e[_0x5cb9('0x3')](_0x1d0d8c);const _0x24fea4=_0x77cae3[_0x5cb9('0x20')]['toViewElement'](_0x1d0d8c);if(_0x24fea4&&_0x24fea4['getCustomProperty'](_0x5cb9('0x1b')))return;_0x5cb9('0x7')==_0x5731d6[_0x5cb9('0x12')]&&(_0x1c734e['isBlock'](_0x1d0d8c)&&!_0x1c734e[_0x5cb9('0x10')](_0x1d0d8c)&&(_0x1d0d8c[_0x5cb9('0x15')]||_0x3a6f6f['isAtEnd']?_0x1f7da1&&_0x1f7da1[_0x5cb9('0x1c')]==_0x1d0d8c||(_0x1f7da1=_0x1d0d8c,_0x1ca8cf(_0x5731d6[_0x5cb9('0xd')]),_0x59fb5b=!0x0):_0x394592=_0x394592||_0x5731d6[_0x5cb9('0xd')]));}function _0x1ca8cf(_0x485ea0){const _0x3196e7=_0x77cae3['writer'][_0x5cb9('0x1')](_0x5cb9('0x22'),{'class':_0x5cb9('0x14')+_0xc82ef0}),_0x580e58=_0x77cae3[_0x5cb9('0x20')]['toViewPosition'](_0x485ea0);_0xe0baa1&&_0x3bb192[_0x5cb9('0x13')]['includes'](_0x5f2362[_0x5cb9('0xc')])&&_0x77cae3[_0x5cb9('0x19')]['addClass'](_0x5cb9('0x1f'),_0x3196e7),_0x77cae3['writer']['insert'](_0x580e58,_0x3196e7),_0x77cae3[_0x5cb9('0x20')][_0x5cb9('0x11')](_0x3196e7,_0x5f2362[_0x5cb9('0xc')]);}_0x115b5e||_0x59fb5b||!_0x394592||_0x1ca8cf(_0x394592);};}
23
+ const _0x2a5e=['isContent','test','getItems','ck-suggestion-marker--active','bindElementToMarker','listItem','markerRange','writer','ck-suggestion-marker-','nextSibling','addHighlight','schema','hasAttribute','plugins','element','getWalker','addClass','elementEnd','span','type','item','consumable','activeMarkers','toViewPosition','start','isLimit','model','TrackChangesEditing','markerName','previousPosition','toViewElement','mapper','parent','push','get','getAttribute'];(function(_0x325be4,_0x2a5e6a){const _0x9db3bc=function(_0x1d3db4){while(--_0x1d3db4){_0x325be4['push'](_0x325be4['shift']());}};_0x9db3bc(++_0x2a5e6a);}(_0x2a5e,0x137));const _0x9db3=function(_0x325be4,_0x2a5e6a){_0x325be4=_0x325be4-0x0;let _0x9db3bc=_0x2a5e[_0x325be4];return _0x9db3bc;};export function getRangesWithAttribute(_0x2a4f3f,_0x2d69be,_0x491eb8){const _0x5a0bb9=[];for(const _0x50c25b of _0x2d69be[_0x9db3('0xf')]())_0x50c25b[_0x9db3('0x19')](_0x2a4f3f)&&_0x5a0bb9['push'](_0x491eb8['createRangeOn'](_0x50c25b));return _0x5a0bb9;}export function getElementsAffectedByListItemRename(_0x2ed107){const _0x262bcc=[];if(_0x2ed107['is'](_0x9db3('0x1b'),_0x9db3('0x12'))){let _0xa0fd74=_0x2ed107[_0x9db3('0x16')];for(;_0xa0fd74&&_0xa0fd74['is'](_0x9db3('0x1b'),'listItem')&&_0xa0fd74[_0x9db3('0xc')]('listIndent')>0x0;)_0x262bcc[_0x9db3('0xa')](_0xa0fd74),_0xa0fd74=_0xa0fd74[_0x9db3('0x16')];}return _0x262bcc;}export function downcastSplitMergeMarker(_0xa8188,_0x56fa21,{showActiveMarker:_0x380e8f=!0x0}={}){const _0x432425=_0xa8188[_0x9db3('0x1a')][_0x9db3('0xb')](_0x9db3('0x4'));return(_0x268951,_0x4762b1,_0x1c3e84)=>{if(!_0x1c3e84[_0x9db3('0x22')][_0x9db3('0xe')](_0x4762b1[_0x9db3('0x13')],_0x268951['name']))return;const _0x7898a3=_0x4762b1[_0x9db3('0x13')][_0x9db3('0x1c')](),_0x4e5dbe=_0x4762b1['markerRange'][_0x9db3('0x1')],_0x2b97c6=_0xa8188[_0x9db3('0x3')][_0x9db3('0x18')];let _0x3f4506=null,_0x3a6994=null,_0x20a929=!0x1,_0x16c7fa=!0x1;for(const _0xc67671 of _0x7898a3){const _0x1b69ca=_0xc67671[_0x9db3('0x21')];_0x20a929=_0x20a929||_0x2b97c6[_0x9db3('0xd')](_0x1b69ca);const _0x317175=_0x1c3e84[_0x9db3('0x8')][_0x9db3('0x7')](_0x1b69ca);if(_0x317175&&_0x317175['getCustomProperty'](_0x9db3('0x17')))return;_0x9db3('0x1e')==_0xc67671[_0x9db3('0x20')]&&(_0x2b97c6['isBlock'](_0x1b69ca)&&!_0x2b97c6[_0x9db3('0x2')](_0x1b69ca)&&(_0x1b69ca[_0x9db3('0x16')]||_0x4e5dbe['isAtEnd']?_0x3f4506&&_0x3f4506[_0x9db3('0x9')]==_0x1b69ca||(_0x3f4506=_0x1b69ca,_0x575fac(_0xc67671[_0x9db3('0x6')]),_0x16c7fa=!0x0):_0x3a6994=_0x3a6994||_0xc67671[_0x9db3('0x6')]));}function _0x575fac(_0x13c728){const _0x50a3a6=_0x1c3e84[_0x9db3('0x14')]['createUIElement'](_0x9db3('0x1f'),{'class':_0x9db3('0x15')+_0x56fa21}),_0x45046b=_0x1c3e84[_0x9db3('0x8')][_0x9db3('0x0')](_0x13c728);_0x380e8f&&_0x432425[_0x9db3('0x23')]['includes'](_0x4762b1[_0x9db3('0x5')])&&_0x1c3e84[_0x9db3('0x14')][_0x9db3('0x1d')](_0x9db3('0x10'),_0x50a3a6),_0x1c3e84['writer']['insert'](_0x45046b,_0x50a3a6),_0x1c3e84['mapper'][_0x9db3('0x11')](_0x50a3a6,_0x4762b1[_0x9db3('0x5')]);}_0x20a929||_0x16c7fa||!_0x3a6994||_0x575fac(_0x3a6994);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x566a=['subType','_saved','author','isInContent','set','map','toJSON','data','_model','getItems','add','end','accept','previous','isIntersecting','getMarkerNames','addRange','getFirstMarker','onAccept','filter','getMultiRangeId','decorate','_onAccept','get','push','_onAttributesChange','createdAt','change','delete','size','getRange','isMultiRange','creator','split','removeAttribute','removeMarkers','from','getMarkers','removeMarker','getRanges','onAttributesChange','type','@external','next','markers','_onDiscard','length','addMarkerName','suggestion:','getContainedElement','clear','attributes','head','commentThread','_markerNames','start','hasComments','setAttribute','onDiscard','discard','getFirstRange','addMarker'];(function(_0x4364e2,_0x566aad){const _0x374fa3=function(_0x438740){while(--_0x438740){_0x4364e2['push'](_0x4364e2['shift']());}};_0x374fa3(++_0x566aad);}(_0x566a,0x17f));const _0x374f=function(_0x4364e2,_0x566aad){_0x4364e2=_0x4364e2-0x0;let _0x374fa3=_0x566a[_0x4364e2];return _0x374fa3;};import{Element as _0x381cea}from'ckeditor5/src/engine';import{ObservableMixin as _0x2c01aa,mix as _0x59292e,uid as _0x5bb4bc}from'ckeditor5/src/utils';import{cloneDeep as _0x48c9af,isEqual as _0x41bdf9,set as _0x777d35,unset as _0x30208f}from'lodash-es';export default class o{constructor(_0x4e9f3d,_0x75a3e6){this['id']=_0x75a3e6['id'],this[_0x374f('0x1e')]=_0x75a3e6[_0x374f('0x1e')],this[_0x374f('0x33')]=_0x75a3e6[_0x374f('0x33')]||null,this[_0x374f('0x35')]=_0x75a3e6[_0x374f('0x35')],this[_0x374f('0x15')]=_0x75a3e6[_0x374f('0x15')]||_0x75a3e6[_0x374f('0x35')],this['isExternal']=Boolean(_0x75a3e6[_0x374f('0x28')]&&_0x75a3e6[_0x374f('0x28')][_0x374f('0x1f')]),this[_0x374f('0x3a')]=null,this[_0x374f('0x3b')]=_0x4e9f3d,this[_0x374f('0xb')]=_0x75a3e6[_0x374f('0x7')],this[_0x374f('0x22')]=_0x75a3e6[_0x374f('0x2f')],this[_0x374f('0xe')]=_0x75a3e6[_0x374f('0x1d')],this[_0x374f('0x2b')]=new Set(),this[_0x374f('0xf')]=null,this[_0x374f('0x37')]('authoredAt',null),this[_0x374f('0x37')](_0x374f('0x28'),_0x75a3e6[_0x374f('0x28')]||{}),this[_0x374f('0x37')]('previous',null),this[_0x374f('0x37')]('next',null),this[_0x374f('0x37')](_0x374f('0x2a'),null),this[_0x374f('0x37')](_0x374f('0x34'),!0x1),this['decorate'](_0x374f('0x1')),this[_0x374f('0xa')](_0x374f('0x30'));}get['head'](){let _0x187a05=this;for(;_0x187a05[_0x374f('0x2')];)_0x187a05=_0x187a05['previous'];return _0x187a05;}get[_0x374f('0x2d')](){return!!this[_0x374f('0x2a')]&&this['commentThread'][_0x374f('0x23')]>0x0;}get[_0x374f('0x14')](){if(0x0==this['_markerNames'][_0x374f('0x12')])return!0x1;return 0x6==Array[_0x374f('0x19')](this[_0x374f('0x2b')])[0x0][_0x374f('0x16')](':')['length'];}get[_0x374f('0x36')](){return null!==this[_0x374f('0x6')]();}['addMarkerName'](_0x1a87e1){this[_0x374f('0x2b')][_0x374f('0x3d')](_0x1a87e1);}[_0x374f('0x4')](){return Array[_0x374f('0x19')](this[_0x374f('0x2b')]);}['getMarkers'](){return this[_0x374f('0x4')]()[_0x374f('0x38')](_0x4a5869=>this[_0x374f('0x3b')][_0x374f('0x21')][_0x374f('0xc')](_0x4a5869))[_0x374f('0x8')](_0x26596b=>_0x26596b);}['getFirstMarker'](){return this[_0x374f('0x1a')]()[0x0]||null;}[_0x374f('0x18')](){this['_model'][_0x374f('0x10')](_0xf0afd1=>{for(const _0x3817d0 of this[_0x374f('0x1a')]())_0xf0afd1[_0x374f('0x1b')](_0x3817d0);}),this[_0x374f('0x2b')][_0x374f('0x27')]();}[_0x374f('0x1b')](_0x1819f1){this['_model'][_0x374f('0x10')](_0x5b1f09=>{_0x5b1f09['removeMarker'](_0x1819f1);}),this[_0x374f('0x2b')][_0x374f('0x11')](_0x1819f1);}[_0x374f('0x5')](_0x30ebcb){const _0x42b0ea=_0x374f('0x25')+this['type']+':'+this[_0x374f('0x33')]+':'+this['id']+':'+this[_0x374f('0x15')]['id']+':'+o[_0x374f('0x9')]();this[_0x374f('0x24')](_0x42b0ea),this['_model'][_0x374f('0x10')](_0x127c66=>{_0x127c66[_0x374f('0x32')](_0x42b0ea,{'range':_0x30ebcb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f6d40){for(const _0x169a92 of this[_0x374f('0x1c')]())if(_0x169a92[_0x374f('0x3')](_0x1f6d40))return!0x0;return!0x1;}[_0x374f('0x1c')](){return this['getMarkers']()[_0x374f('0x38')](_0x4ee1da=>_0x4ee1da['getRange']());}[_0x374f('0x3c')](){return this['getRanges']()['reduce']((_0x55761f,_0x166c0c)=>[..._0x55761f,..._0x166c0c[_0x374f('0x3c')]()],[]);}[_0x374f('0x31')](){return this[_0x374f('0x6')]()[_0x374f('0x13')]();}[_0x374f('0x26')](){const _0x4af99f=this['getRanges']();if(0x1!=_0x4af99f[_0x374f('0x23')])return null;const _0x581b26=_0x4af99f[0x0],_0xff0a19=_0x581b26[_0x374f('0x2c')]['nodeAfter'],_0x46b3e4=_0x581b26[_0x374f('0x0')]['nodeBefore'];return _0xff0a19 instanceof _0x381cea?_0xff0a19!=_0x46b3e4?null:_0xff0a19:null;}[_0x374f('0x1')](){this[_0x374f('0xb')](this[_0x374f('0x1c')](),this[_0x374f('0x3a')],this['attributes']),this[_0x374f('0x18')]();}['discard'](){this[_0x374f('0x22')](this[_0x374f('0x1c')](),this[_0x374f('0x3a')],this[_0x374f('0x28')]),this[_0x374f('0x18')]();}['getAllAdjacentSuggestions'](){const _0x10c8d7=[];let _0x42e34c=this[_0x374f('0x29')];for(;_0x42e34c;)_0x10c8d7[_0x374f('0xd')](_0x42e34c),_0x42e34c=_0x42e34c[_0x374f('0x20')];return _0x10c8d7;}[_0x374f('0x2e')](_0x449a87,_0x908522){const _0x32d1ea=_0x48c9af(this[_0x374f('0x28')]);_0x777d35(_0x32d1ea,_0x449a87,_0x908522),_0x41bdf9(_0x32d1ea,this[_0x374f('0x28')])||(this[_0x374f('0x28')]=_0x32d1ea,this[_0x374f('0xe')](_0x32d1ea));}[_0x374f('0x17')](_0x4a53ec){const _0x4a42fa=_0x48c9af(this[_0x374f('0x28')]);_0x30208f(_0x4a42fa,_0x4a53ec),_0x41bdf9(_0x4a42fa,this[_0x374f('0x28')])||(this[_0x374f('0x28')]=_0x4a42fa,this[_0x374f('0xe')](this[_0x374f('0x28')]));}[_0x374f('0x39')](){return{'id':this['id'],'type':this['subType']?this[_0x374f('0x1e')]+':'+this[_0x374f('0x33')]:this[_0x374f('0x1e')],'authorId':this[_0x374f('0x15')]['id'],'createdAt':this[_0x374f('0xf')],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x374f('0x28')]};}static[_0x374f('0x9')](){return _0x5bb4bc()['substr'](0x1,0x5);}}_0x59292e(o,_0x2c01aa);
23
+ const _0x1312=['get','suggestion:','_saved','removeAttribute','change','head','reduce','getContainedElement','data','length','onAttributesChange','toJSON','from','previous','isIntersecting','creator','@external','isInContent','isExternal','getItems','clear','next','_markerNames','attributes','onDiscard','hasComments','createdAt','decorate','author','addRange','map','accept','removeMarker','getMarkers','set','push','addMarkerName','onAccept','discard','size','type','_model','getRange','getMultiRangeId','_onAccept','_onDiscard','filter','getMarkerNames','subType','nodeAfter','getRanges','end','getFirstMarker','commentThread','substr','add','removeMarkers','setAttribute','_onAttributesChange','delete'];(function(_0x1bd61a,_0x131276){const _0x374109=function(_0x234c6b){while(--_0x234c6b){_0x1bd61a['push'](_0x1bd61a['shift']());}};_0x374109(++_0x131276);}(_0x1312,0xd9));const _0x3741=function(_0x1bd61a,_0x131276){_0x1bd61a=_0x1bd61a-0x0;let _0x374109=_0x1312[_0x1bd61a];return _0x374109;};import{Element as _0x5de625}from'ckeditor5/src/engine';import{ObservableMixin as _0x36f049,mix as _0x479369,uid as _0x4cc549}from'ckeditor5/src/utils';import{cloneDeep as _0x2db8da,isEqual as _0x4a72ac,set as _0x18238c,unset as _0x1a5a4b}from'lodash-es';export default class o{constructor(_0x1e5d2d,_0x2acd78){this['id']=_0x2acd78['id'],this[_0x3741('0x3')]=_0x2acd78[_0x3741('0x3')],this['subType']=_0x2acd78[_0x3741('0xb')]||null,this['author']=_0x2acd78[_0x3741('0x33')],this[_0x3741('0x26')]=_0x2acd78[_0x3741('0x26')]||_0x2acd78['author'],this[_0x3741('0x29')]=Boolean(_0x2acd78['attributes']&&_0x2acd78[_0x3741('0x2e')][_0x3741('0x27')]),this[_0x3741('0x1f')]=null,this[_0x3741('0x4')]=_0x1e5d2d,this[_0x3741('0x7')]=_0x2acd78[_0x3741('0x0')],this['_onDiscard']=_0x2acd78[_0x3741('0x2f')],this[_0x3741('0x15')]=_0x2acd78[_0x3741('0x21')],this[_0x3741('0x2d')]=new Set(),this[_0x3741('0x31')]=null,this['set']('authoredAt',null),this['set'](_0x3741('0x2e'),_0x2acd78['attributes']||{}),this[_0x3741('0x39')](_0x3741('0x24'),null),this[_0x3741('0x39')](_0x3741('0x2c'),null),this[_0x3741('0x39')](_0x3741('0x10'),null),this[_0x3741('0x39')](_0x3741('0x19'),!0x1),this[_0x3741('0x32')]('accept'),this[_0x3741('0x32')](_0x3741('0x1'));}get['head'](){let _0x850334=this;for(;_0x850334[_0x3741('0x24')];)_0x850334=_0x850334[_0x3741('0x24')];return _0x850334;}get[_0x3741('0x30')](){return!!this[_0x3741('0x10')]&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames'][_0x3741('0x2')])return!0x1;return 0x6==Array[_0x3741('0x23')](this[_0x3741('0x2d')])[0x0]['split'](':')[_0x3741('0x20')];}get[_0x3741('0x28')](){return null!==this[_0x3741('0xf')]();}['addMarkerName'](_0x16914d){this[_0x3741('0x2d')][_0x3741('0x12')](_0x16914d);}[_0x3741('0xa')](){return Array['from'](this[_0x3741('0x2d')]);}[_0x3741('0x38')](){return this[_0x3741('0xa')]()[_0x3741('0x35')](_0x8885da=>this[_0x3741('0x4')]['markers'][_0x3741('0x17')](_0x8885da))[_0x3741('0x9')](_0x27f4cb=>_0x27f4cb);}[_0x3741('0xf')](){return this[_0x3741('0x38')]()[0x0]||null;}[_0x3741('0x13')](){this['_model'][_0x3741('0x1b')](_0x5eb833=>{for(const _0x1de3e1 of this['getMarkers']())_0x5eb833['removeMarker'](_0x1de3e1);}),this['_markerNames'][_0x3741('0x2b')]();}['removeMarker'](_0x5689a2){this[_0x3741('0x4')][_0x3741('0x1b')](_0x12e6eb=>{_0x12e6eb[_0x3741('0x37')](_0x5689a2);}),this[_0x3741('0x2d')][_0x3741('0x16')](_0x5689a2);}[_0x3741('0x34')](_0x477329){const _0x3eb92c=_0x3741('0x18')+this[_0x3741('0x3')]+':'+this[_0x3741('0xb')]+':'+this['id']+':'+this['creator']['id']+':'+o[_0x3741('0x6')]();this[_0x3741('0x3b')](_0x3eb92c),this[_0x3741('0x4')][_0x3741('0x1b')](_0x1643b9=>{_0x1643b9['addMarker'](_0x3eb92c,{'range':_0x477329,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7f5402){for(const _0x4683c5 of this['getRanges']())if(_0x4683c5[_0x3741('0x25')](_0x7f5402))return!0x0;return!0x1;}[_0x3741('0xd')](){return this['getMarkers']()[_0x3741('0x35')](_0x251500=>_0x251500[_0x3741('0x5')]());}[_0x3741('0x2a')](){return this[_0x3741('0xd')]()[_0x3741('0x1d')]((_0x11b5f5,_0x21ae8e)=>[..._0x11b5f5,..._0x21ae8e[_0x3741('0x2a')]()],[]);}['getFirstRange'](){return this[_0x3741('0xf')]()[_0x3741('0x5')]();}[_0x3741('0x1e')](){const _0x2e6047=this['getRanges']();if(0x1!=_0x2e6047['length'])return null;const _0x16664f=_0x2e6047[0x0],_0xf2e107=_0x16664f['start'][_0x3741('0xc')],_0x3d147a=_0x16664f[_0x3741('0xe')]['nodeBefore'];return _0xf2e107 instanceof _0x5de625?_0xf2e107!=_0x3d147a?null:_0xf2e107:null;}[_0x3741('0x36')](){this[_0x3741('0x7')](this[_0x3741('0xd')](),this['data'],this[_0x3741('0x2e')]),this[_0x3741('0x13')]();}[_0x3741('0x1')](){this[_0x3741('0x8')](this[_0x3741('0xd')](),this[_0x3741('0x1f')],this[_0x3741('0x2e')]),this[_0x3741('0x13')]();}['getAllAdjacentSuggestions'](){const _0x4a47db=[];let _0x1cf0ed=this[_0x3741('0x1c')];for(;_0x1cf0ed;)_0x4a47db[_0x3741('0x3a')](_0x1cf0ed),_0x1cf0ed=_0x1cf0ed[_0x3741('0x2c')];return _0x4a47db;}[_0x3741('0x14')](_0x55949a,_0x3a4d24){const _0xee7735=_0x2db8da(this[_0x3741('0x2e')]);_0x18238c(_0xee7735,_0x55949a,_0x3a4d24),_0x4a72ac(_0xee7735,this[_0x3741('0x2e')])||(this['attributes']=_0xee7735,this[_0x3741('0x15')](_0xee7735));}[_0x3741('0x1a')](_0x4418ea){const _0x3c1ae8=_0x2db8da(this[_0x3741('0x2e')]);_0x1a5a4b(_0x3c1ae8,_0x4418ea),_0x4a72ac(_0x3c1ae8,this[_0x3741('0x2e')])||(this[_0x3741('0x2e')]=_0x3c1ae8,this[_0x3741('0x15')](this[_0x3741('0x2e')]));}[_0x3741('0x22')](){return{'id':this['id'],'type':this[_0x3741('0xb')]?this['type']+':'+this['subType']:this[_0x3741('0x3')],'authorId':this[_0x3741('0x26')]['id'],'createdAt':this[_0x3741('0x31')],'hasComments':this['hasComments'],'data':this[_0x3741('0x1f')],'attributes':this[_0x3741('0x2e')]};}static[_0x3741('0x6')](){return _0x4cc549()[_0x3741('0x11')](0x1,0x5);}}_0x479369(o,_0x36f049);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x251a=['textProxy','matchingCallback','deletion','nextSibling','add','softBreak','removeContainer','replace','_itemLabels','isEqual','label','Object','get','start','addObject','isObject','*Insert:*\x20%0','indexOf','_addDescriptionItems','previousSibling','_itemLabelsCallbacks','elementEnd','match','registerDescriptionCallback','removeEmptyContainer','isEmpty','insertion','quantity','_resolveDescriptionItems','REPLACE_TEXT','_locale','$text','$1\x20$2','getFirstRange','_schema','_customCallbacks','addContainer','push','getWalker','type','end','getItemLabel','element','pop','*Merge:*\x20%0','set','data','name','elementStart','registerElementLabel','isInContent','text','remove','length','checkChild','function','item','skip','EmptyContainer','removeObject','Container','ELEMENT_SPACE','*Split:*\x20%0'];(function(_0x241d9b,_0x251afc){const _0x423609=function(_0x1d4ad8){while(--_0x1d4ad8){_0x241d9b['push'](_0x241d9b['shift']());}};_0x423609(++_0x251afc);}(_0x251a,0xfb));const _0x4236=function(_0x241d9b,_0x251afc){_0x241d9b=_0x241d9b-0x0;let _0x423609=_0x251a[_0x241d9b];return _0x423609;};import{getTranslation as _0x492f79}from'./utils/common-translations';import{priorities as _0x23089b,insertToPriorityArray as _0x1daef4}from'ckeditor5/src/utils';export default class f{constructor(_0x11909e,_0x4bb8ff){this['_customCallbacks']=[],this[_0x4236('0x9')]=new Map(),this[_0x4236('0x15')]=[],this['_schema']=_0x11909e,this[_0x4236('0x1f')]=_0x4bb8ff;}['getDescriptions'](_0x1ec78b){const _0x30fc89=[];for(let _0x39768b=0x0;_0x39768b<_0x1ec78b[_0x4236('0x36')];_0x39768b++){const _0x57b2d8=_0x1ec78b[_0x39768b];if(!_0x57b2d8[_0x4236('0x33')])continue;let _0x3b75a5=!0x1;for(const _0x5ec5b6 of this[_0x4236('0x24')]){const _0x5647c9=_0x5ec5b6(_0x57b2d8);if(_0x5647c9){_0x5647c9[_0x4236('0x28')]&&_0x30fc89[_0x4236('0x26')](_0x5647c9),_0x3b75a5=!0x0;break;}}if(!_0x3b75a5){this[_0x4236('0x13')](_0x30fc89,_0x57b2d8);const _0x1af32f=_0x1ec78b[_0x39768b+0x1];if(_0x1af32f&&!_0x57b2d8[_0x4236('0x22')]()[_0x4236('0x29')][_0x4236('0xa')](_0x1af32f[_0x4236('0x22')]()[_0x4236('0xe')])){const _0x4fb4eb=_0x30fc89[_0x30fc89['length']-0x1],_0x1ee508=_0x4236('0x1b')==_0x57b2d8[_0x4236('0x28')]?_0x4236('0x5'):_0x4236('0x35');_0x4fb4eb&&_0x4236('0x34')==_0x4fb4eb[_0x4236('0x28')]&&(_0x4fb4eb[_0x1ee508]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x30fc89);}[_0x4236('0x18')](_0x145d97){this[_0x4236('0x24')]['push'](_0x145d97);}[_0x4236('0x32')](_0x510889,_0x49ef31,_0x4be1db=_0x23089b['normal']){_0x4236('0x38')==typeof _0x510889?_0x1daef4(this[_0x4236('0x15')],{'matchingCallback':_0x510889,'label':_0x49ef31,'priority':_0x4be1db}):this[_0x4236('0x9')][_0x4236('0x2e')](_0x510889,_0x49ef31);}[_0x4236('0x2a')](_0x24b033,_0x5b4ea8=0x1){let _0x4734f3;for(const _0x48f38f of this['_itemLabelsCallbacks'])if(_0x48f38f[_0x4236('0x2')](_0x24b033)){_0x4734f3=_0x48f38f[_0x4236('0xb')];break;}return _0x4734f3||(_0x4734f3=this[_0x4236('0x9')][_0x4236('0xd')](_0x24b033[_0x4236('0x30')])),_0x4734f3?_0x4734f3(_0x5b4ea8):0x1!==_0x5b4ea8?_0x5b4ea8+'\x20'+_0x24b033[_0x4236('0x30')]+'s':''+_0x24b033[_0x4236('0x30')];}[_0x4236('0x13')](_0x5e1bfa,_0x5a33f9){const _0x222015=_0x5a33f9[_0x4236('0x22')]()[_0x4236('0x27')](),_0x190219='insertion'==_0x5a33f9[_0x4236('0x28')]?'add':_0x4236('0x35');for(const _0x56dcca of _0x222015){const _0x302837=_0x56dcca[_0x4236('0x39')],_0x5c9fc9=_0x5e1bfa[_0x5e1bfa['length']-0x1];if(_0x302837['is'](_0x4236('0x1')))_0x5c9fc9&&_0x5c9fc9[_0x4236('0x28')][_0x4236('0x12')](_0x4236('0x3d'))>-0x1&&_0x5e1bfa[_0x4236('0x2c')](),_0x5c9fc9&&'text'==_0x5c9fc9[_0x4236('0x28')]?_0x5c9fc9[_0x190219]+=_0x302837[_0x4236('0x2f')]:_0x5e1bfa[_0x4236('0x26')]({'type':_0x4236('0x34'),'add':'add'==_0x190219?_0x302837[_0x4236('0x2f')]:'','remove':_0x4236('0x35')==_0x190219?_0x302837['data']:''});else{if(this[_0x4236('0x23')][_0x4236('0x10')](_0x302837)){if(_0x5c9fc9&&_0x5c9fc9[_0x4236('0x28')][_0x4236('0x12')](_0x4236('0x3d'))>-0x1&&_0x5e1bfa[_0x4236('0x2c')](),_0x4236('0x16')==_0x56dcca[_0x4236('0x28')])continue;_0x5c9fc9&&_0x5c9fc9[_0x4236('0x28')]==_0x190219+'Object'&&_0x5c9fc9[_0x4236('0x2b')][_0x4236('0x30')]==_0x302837['name']?_0x5c9fc9[_0x4236('0x1c')]++:_0x5e1bfa[_0x4236('0x26')]({'type':_0x190219+_0x4236('0xc'),'element':_0x302837,'quantity':0x1}),_0x222015[_0x4236('0x3a')](_0x2660e4=>!('elementEnd'==_0x2660e4['type']&&_0x2660e4[_0x4236('0x39')]==_0x302837));}else{if(this['_schema'][_0x4236('0x37')](_0x302837,_0x4236('0x20'))||_0x302837['is'](_0x4236('0x2b'),_0x4236('0x6'))){if('add'==_0x190219&&_0x4236('0x31')==_0x56dcca[_0x4236('0x28')]||_0x4236('0x35')==_0x190219&&_0x4236('0x16')==_0x56dcca[_0x4236('0x28')])continue;if(_0x5c9fc9&&-0x1==_0x5c9fc9[_0x4236('0x28')][_0x4236('0x12')](_0x4236('0x3d'))){_0x4236('0x34')==_0x5c9fc9[_0x4236('0x28')]&&(_0x5c9fc9[_0x190219]+='\x0a');continue;}let _0x22fc60;if(_0x22fc60=_0x4236('0x5')==_0x190219?_0x302837['nextSibling']&&!this['_schema'][_0x4236('0x10')](_0x302837[_0x4236('0x4')])?_0x302837['nextSibling']:null:_0x302837[_0x4236('0x14')]&&!this[_0x4236('0x23')][_0x4236('0x10')](_0x302837[_0x4236('0x14')])?_0x302837[_0x4236('0x14')]:null,_0x302837[_0x4236('0x1a')]||_0x22fc60&&_0x22fc60['isEmpty']){const _0x974379=_0x22fc60&&_0x22fc60[_0x4236('0x1a')]?_0x22fc60:_0x302837;_0x5c9fc9&&_0x5c9fc9[_0x4236('0x28')]==_0x190219+_0x4236('0x3b')&&_0x5c9fc9['element'][_0x4236('0x30')]==_0x974379['name']?_0x5c9fc9['quantity']++:_0x5e1bfa[_0x4236('0x26')]({'type':_0x190219+_0x4236('0x3b'),'element':_0x974379,'quantity':0x1});}else _0x5e1bfa['push']({'type':_0x190219+'Container','element':_0x302837});}}}}}[_0x4236('0x1d')](_0x302bba){const _0x578a8f=this[_0x4236('0x1f')],_0x30adc2=[];for(const _0x1d3dbd of _0x302bba){switch(_0x1d3dbd[_0x4236('0x28')]){case _0x4236('0x34'):if(_0x1d3dbd['add']=_0x1d3dbd['add'][_0x4236('0x8')](/(\S)\u000A+(\S)/g,_0x4236('0x21'))['replace'](/\u000A/g,''),_0x1d3dbd[_0x4236('0x35')]=_0x1d3dbd['remove'][_0x4236('0x8')](/(\S)\u000A+(\S)/g,_0x4236('0x21'))[_0x4236('0x8')](/\u000A/g,''),''!=_0x1d3dbd[_0x4236('0x5')]&&''!=_0x1d3dbd[_0x4236('0x35')]){_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x8'),'content':_0x492f79(_0x578a8f,_0x4236('0x1e'),['\x22'+_0x1d3dbd[_0x4236('0x35')]+'\x22','\x22'+_0x1d3dbd[_0x4236('0x5')]+'\x22'])});continue;}if(null!=_0x1d3dbd[_0x4236('0x5')]['match'](/^ +$/)){_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x1b'),'content':_0x492f79(_0x578a8f,_0x4236('0x11'),_0x492f79(_0x578a8f,'ELEMENT_SPACE',_0x1d3dbd['add'][_0x4236('0x36')]))});continue;}if(null!=_0x1d3dbd[_0x4236('0x35')][_0x4236('0x17')](/^ +$/)){_0x30adc2['push']({'type':_0x4236('0x3'),'content':_0x492f79(_0x578a8f,'*Remove:*\x20%0',_0x492f79(_0x578a8f,_0x4236('0x3e'),_0x1d3dbd[_0x4236('0x35')]['length']))});continue;}if(''!=_0x1d3dbd[_0x4236('0x5')]){_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x1b'),'content':_0x492f79(_0x578a8f,_0x4236('0x11'),'\x22'+_0x1d3dbd[_0x4236('0x5')]+'\x22')});continue;}_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x3'),'content':_0x492f79(_0x578a8f,'*Remove:*\x20%0','\x22'+_0x1d3dbd[_0x4236('0x35')]+'\x22')});continue;case'addEmptyContainer':case _0x4236('0xf'):_0x30adc2[_0x4236('0x26')]({'type':'insertion','content':_0x492f79(_0x578a8f,_0x4236('0x11'),this[_0x4236('0x2a')](_0x1d3dbd[_0x4236('0x2b')],_0x1d3dbd['quantity']))});continue;case _0x4236('0x19'):case _0x4236('0x3c'):_0x30adc2['push']({'type':_0x4236('0x3'),'content':_0x492f79(_0x578a8f,'*Remove:*\x20%0',this['getItemLabel'](_0x1d3dbd['element'],_0x1d3dbd[_0x4236('0x1c')]))});continue;case _0x4236('0x25'):_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x1b'),'content':_0x492f79(_0x578a8f,_0x4236('0x0'),this[_0x4236('0x2a')](_0x1d3dbd[_0x4236('0x2b')],_0x1d3dbd['quantity']))});continue;case _0x4236('0x7'):_0x30adc2[_0x4236('0x26')]({'type':_0x4236('0x3'),'content':_0x492f79(_0x578a8f,_0x4236('0x2d'),this[_0x4236('0x2a')](_0x1d3dbd[_0x4236('0x2b')],_0x1d3dbd[_0x4236('0x1c')]))});continue;}_0x30adc2[_0x4236('0x26')](_0x1d3dbd);}return _0x30adc2;}}
23
+ const _0x44ed=['registerElementLabel','EmptyContainer','item','softBreak','remove','deletion','pop','replace','type','isEmpty','_itemLabelsCallbacks','addContainer','*Merge:*\x20%0','isInContent','*Remove:*\x20%0','add','elementStart','start','_addDescriptionItems','textProxy','text','quantity','indexOf','*Insert:*\x20%0','registerDescriptionCallback','previousSibling','label','Container','removeObject','Object','getFirstRange','insertion','length','_itemLabels','addEmptyContainer','normal','$text','elementEnd','_schema','get','_locale','push','*Split:*\x20%0','_customCallbacks','removeContainer','$1\x20$2','skip','isObject','getWalker','data','element','REPLACE_TEXT','getItemLabel','end','isEqual','checkChild','nextSibling','match','name'];(function(_0xe0764,_0x44edc7){const _0x23acc7=function(_0x36e42b){while(--_0x36e42b){_0xe0764['push'](_0xe0764['shift']());}};_0x23acc7(++_0x44edc7);}(_0x44ed,0x67));const _0x23ac=function(_0xe0764,_0x44edc7){_0xe0764=_0xe0764-0x0;let _0x23acc7=_0x44ed[_0xe0764];return _0x23acc7;};import{getTranslation as _0x274c2e}from'./utils/common-translations';import{priorities as _0x5eb1c5,insertToPriorityArray as _0x25be2b}from'ckeditor5/src/utils';export default class f{constructor(_0x328dfa,_0x45c86d){this[_0x23ac('0x3a')]=[],this[_0x23ac('0x30')]=new Map(),this[_0x23ac('0x19')]=[],this[_0x23ac('0x35')]=_0x328dfa,this[_0x23ac('0x37')]=_0x45c86d;}['getDescriptions'](_0x49d28c){const _0x256c17=[];for(let _0x1abdfd=0x0;_0x1abdfd<_0x49d28c[_0x23ac('0x2f')];_0x1abdfd++){const _0x544d3d=_0x49d28c[_0x1abdfd];if(!_0x544d3d[_0x23ac('0x1c')])continue;let _0x52a398=!0x1;for(const _0x2eba6f of this['_customCallbacks']){const _0x42157f=_0x2eba6f(_0x544d3d);if(_0x42157f){_0x42157f['type']&&_0x256c17[_0x23ac('0x38')](_0x42157f),_0x52a398=!0x0;break;}}if(!_0x52a398){this[_0x23ac('0x21')](_0x256c17,_0x544d3d);const _0xac5ea4=_0x49d28c[_0x1abdfd+0x1];if(_0xac5ea4&&!_0x544d3d[_0x23ac('0x2d')]()[_0x23ac('0x9')][_0x23ac('0xa')](_0xac5ea4[_0x23ac('0x2d')]()[_0x23ac('0x20')])){const _0x39e7e4=_0x256c17[_0x256c17[_0x23ac('0x2f')]-0x1],_0x22eeda='insertion'==_0x544d3d['type']?'add':'remove';_0x39e7e4&&_0x23ac('0x23')==_0x39e7e4['type']&&(_0x39e7e4[_0x22eeda]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x256c17);}[_0x23ac('0x27')](_0x3c2cf5){this[_0x23ac('0x3a')][_0x23ac('0x38')](_0x3c2cf5);}[_0x23ac('0xf')](_0x37ce11,_0x5e6909,_0x428d5b=_0x5eb1c5[_0x23ac('0x32')]){'function'==typeof _0x37ce11?_0x25be2b(this[_0x23ac('0x19')],{'matchingCallback':_0x37ce11,'label':_0x5e6909,'priority':_0x428d5b}):this['_itemLabels']['set'](_0x37ce11,_0x5e6909);}[_0x23ac('0x8')](_0x36ac7f,_0x2bc7ab=0x1){let _0x388187;for(const _0x198bcb of this[_0x23ac('0x19')])if(_0x198bcb['matchingCallback'](_0x36ac7f)){_0x388187=_0x198bcb[_0x23ac('0x29')];break;}return _0x388187||(_0x388187=this[_0x23ac('0x30')][_0x23ac('0x36')](_0x36ac7f[_0x23ac('0xe')])),_0x388187?_0x388187(_0x2bc7ab):0x1!==_0x2bc7ab?_0x2bc7ab+'\x20'+_0x36ac7f[_0x23ac('0xe')]+'s':''+_0x36ac7f[_0x23ac('0xe')];}[_0x23ac('0x21')](_0x2c46,_0x29fab2){const _0x34b271=_0x29fab2[_0x23ac('0x2d')]()[_0x23ac('0x4')](),_0x94dcb3=_0x23ac('0x2e')==_0x29fab2[_0x23ac('0x17')]?_0x23ac('0x1e'):_0x23ac('0x13');for(const _0x79c24b of _0x34b271){const _0x2b0496=_0x79c24b[_0x23ac('0x11')],_0x24e2b8=_0x2c46[_0x2c46['length']-0x1];if(_0x2b0496['is'](_0x23ac('0x22')))_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')][_0x23ac('0x25')](_0x23ac('0x2a'))>-0x1&&_0x2c46['pop'](),_0x24e2b8&&_0x23ac('0x23')==_0x24e2b8[_0x23ac('0x17')]?_0x24e2b8[_0x94dcb3]+=_0x2b0496[_0x23ac('0x5')]:_0x2c46[_0x23ac('0x38')]({'type':_0x23ac('0x23'),'add':_0x23ac('0x1e')==_0x94dcb3?_0x2b0496[_0x23ac('0x5')]:'','remove':_0x23ac('0x13')==_0x94dcb3?_0x2b0496[_0x23ac('0x5')]:''});else{if(this['_schema'][_0x23ac('0x3')](_0x2b0496)){if(_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')][_0x23ac('0x25')](_0x23ac('0x2a'))>-0x1&&_0x2c46[_0x23ac('0x15')](),'elementEnd'==_0x79c24b[_0x23ac('0x17')])continue;_0x24e2b8&&_0x24e2b8[_0x23ac('0x17')]==_0x94dcb3+_0x23ac('0x2c')&&_0x24e2b8[_0x23ac('0x6')][_0x23ac('0xe')]==_0x2b0496[_0x23ac('0xe')]?_0x24e2b8[_0x23ac('0x24')]++:_0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x2c'),'element':_0x2b0496,'quantity':0x1}),_0x34b271[_0x23ac('0x2')](_0x107b62=>!(_0x23ac('0x34')==_0x107b62[_0x23ac('0x17')]&&_0x107b62['item']==_0x2b0496));}else{if(this[_0x23ac('0x35')][_0x23ac('0xb')](_0x2b0496,_0x23ac('0x33'))||_0x2b0496['is'](_0x23ac('0x6'),_0x23ac('0x12'))){if(_0x23ac('0x1e')==_0x94dcb3&&_0x23ac('0x1f')==_0x79c24b[_0x23ac('0x17')]||_0x23ac('0x13')==_0x94dcb3&&_0x23ac('0x34')==_0x79c24b[_0x23ac('0x17')])continue;if(_0x24e2b8&&-0x1==_0x24e2b8[_0x23ac('0x17')]['indexOf'](_0x23ac('0x2a'))){_0x23ac('0x23')==_0x24e2b8[_0x23ac('0x17')]&&(_0x24e2b8[_0x94dcb3]+='\x0a');continue;}let _0x5e4146;if(_0x5e4146='add'==_0x94dcb3?_0x2b0496['nextSibling']&&!this[_0x23ac('0x35')]['isObject'](_0x2b0496[_0x23ac('0xc')])?_0x2b0496[_0x23ac('0xc')]:null:_0x2b0496[_0x23ac('0x28')]&&!this['_schema'][_0x23ac('0x3')](_0x2b0496['previousSibling'])?_0x2b0496[_0x23ac('0x28')]:null,_0x2b0496[_0x23ac('0x18')]||_0x5e4146&&_0x5e4146[_0x23ac('0x18')]){const _0x12adf7=_0x5e4146&&_0x5e4146[_0x23ac('0x18')]?_0x5e4146:_0x2b0496;_0x24e2b8&&_0x24e2b8['type']==_0x94dcb3+_0x23ac('0x10')&&_0x24e2b8[_0x23ac('0x6')][_0x23ac('0xe')]==_0x12adf7[_0x23ac('0xe')]?_0x24e2b8[_0x23ac('0x24')]++:_0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x10'),'element':_0x12adf7,'quantity':0x1});}else _0x2c46[_0x23ac('0x38')]({'type':_0x94dcb3+_0x23ac('0x2a'),'element':_0x2b0496});}}}}}['_resolveDescriptionItems'](_0x293102){const _0x35c225=this['_locale'],_0x4a25af=[];for(const _0x14d733 of _0x293102){switch(_0x14d733[_0x23ac('0x17')]){case _0x23ac('0x23'):if(_0x14d733[_0x23ac('0x1e')]=_0x14d733[_0x23ac('0x1e')][_0x23ac('0x16')](/(\S)\u000A+(\S)/g,_0x23ac('0x1'))['replace'](/\u000A/g,''),_0x14d733[_0x23ac('0x13')]=_0x14d733[_0x23ac('0x13')]['replace'](/(\S)\u000A+(\S)/g,_0x23ac('0x1'))[_0x23ac('0x16')](/\u000A/g,''),''!=_0x14d733[_0x23ac('0x1e')]&&''!=_0x14d733[_0x23ac('0x13')]){_0x4a25af[_0x23ac('0x38')]({'type':'replace','content':_0x274c2e(_0x35c225,_0x23ac('0x7'),['\x22'+_0x14d733[_0x23ac('0x13')]+'\x22','\x22'+_0x14d733['add']+'\x22'])});continue;}if(null!=_0x14d733['add'][_0x23ac('0xd')](/^ +$/)){_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),_0x274c2e(_0x35c225,'ELEMENT_SPACE',_0x14d733[_0x23ac('0x1e')][_0x23ac('0x2f')]))});continue;}if(null!=_0x14d733['remove'][_0x23ac('0xd')](/^ +$/)){_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),_0x274c2e(_0x35c225,'ELEMENT_SPACE',_0x14d733[_0x23ac('0x13')][_0x23ac('0x2f')]))});continue;}if(''!=_0x14d733['add']){_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),'\x22'+_0x14d733['add']+'\x22')});continue;}_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),'\x22'+_0x14d733[_0x23ac('0x13')]+'\x22')});continue;case _0x23ac('0x31'):case'addObject':_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x26'),this[_0x23ac('0x8')](_0x14d733['element'],_0x14d733[_0x23ac('0x24')]))});continue;case'removeEmptyContainer':case _0x23ac('0x2b'):_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1d'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;case _0x23ac('0x1a'):_0x4a25af[_0x23ac('0x38')]({'type':_0x23ac('0x2e'),'content':_0x274c2e(_0x35c225,_0x23ac('0x39'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;case _0x23ac('0x0'):_0x4a25af['push']({'type':_0x23ac('0x14'),'content':_0x274c2e(_0x35c225,_0x23ac('0x1b'),this[_0x23ac('0x8')](_0x14d733[_0x23ac('0x6')],_0x14d733[_0x23ac('0x24')]))});continue;}_0x4a25af[_0x23ac('0x38')](_0x14d733);}return _0x4a25af;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3c0a=['getSuggestion','requires','TrackChanges','get','addSuggestion','editor','addSuggestionData','Comments','getSuggestions','plugins','adapter'];(function(_0x11e46b,_0x3c0ab0){var _0x3fd861=function(_0xe31512){while(--_0xe31512){_0x11e46b['push'](_0x11e46b['shift']());}};_0x3fd861(++_0x3c0ab0);}(_0x3c0a,0xaf));var _0x3fd8=function(_0x11e46b,_0x3c0ab0){_0x11e46b=_0x11e46b-0x0;var _0x3fd861=_0x3c0a[_0x11e46b];return _0x3fd861;};import{Plugin as _0x28e685}from'ckeditor5/src/core';import _0x3ef0a5 from'./trackchangesui';import _0x5b9109 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x28e685{static get[_0x3fd8('0x2')](){return[_0x5b9109,_0x3ef0a5,_0x3fd8('0x8')];}static get['pluginName'](){return _0x3fd8('0x3');}set[_0x3fd8('0x0')](_0x33918d){this[_0x3fd8('0x6')]['plugins'][_0x3fd8('0x4')](_0x5b9109)['adapter']=_0x33918d;}get['adapter'](){return this['editor']['plugins'][_0x3fd8('0x4')](_0x5b9109)[_0x3fd8('0x0')];}[_0x3fd8('0x5')](_0x24808d){return this['editor']['plugins'][_0x3fd8('0x4')](_0x5b9109)[_0x3fd8('0x7')](_0x24808d);}['getSuggestions'](_0x528597){return this[_0x3fd8('0x6')][_0x3fd8('0xa')][_0x3fd8('0x4')](_0x5b9109)[_0x3fd8('0x9')](_0x528597);}[_0x3fd8('0x1')](_0x25a4d6){return this['editor']['plugins']['get'](_0x5b9109)['getSuggestion'](_0x25a4d6);}}
23
+ var _0xba4c=['addSuggestionData','editor','getSuggestion','getSuggestions','requires','get','plugins','Comments','adapter','addSuggestion','TrackChanges','pluginName'];(function(_0x3d772b,_0xba4c16){var _0x53fb93=function(_0x222c31){while(--_0x222c31){_0x3d772b['push'](_0x3d772b['shift']());}};_0x53fb93(++_0xba4c16);}(_0xba4c,0x166));var _0x53fb=function(_0x3d772b,_0xba4c16){_0x3d772b=_0x3d772b-0x0;var _0x53fb93=_0xba4c[_0x3d772b];return _0x53fb93;};import{Plugin as _0x4faa4d}from'ckeditor5/src/core';import _0x70925 from'./trackchangesui';import _0x379619 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x4faa4d{static get[_0x53fb('0x6')](){return[_0x379619,_0x70925,_0x53fb('0x9')];}static get[_0x53fb('0x1')](){return _0x53fb('0x0');}set[_0x53fb('0xa')](_0x11f7bc){this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)[_0x53fb('0xa')]=_0x11f7bc;}get[_0x53fb('0xa')](){return this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)[_0x53fb('0xa')];}[_0x53fb('0xb')](_0x189c19){return this[_0x53fb('0x3')][_0x53fb('0x8')][_0x53fb('0x7')](_0x379619)[_0x53fb('0x2')](_0x189c19);}[_0x53fb('0x5')](_0x35522c){return this[_0x53fb('0x3')][_0x53fb('0x8')]['get'](_0x379619)['getSuggestions'](_0x35522c);}['getSuggestion'](_0x444f42){return this[_0x53fb('0x3')][_0x53fb('0x8')][_0x53fb('0x7')](_0x379619)[_0x53fb('0x4')](_0x444f42);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3323=['getDataWithDiscardedSuggestions','config','set','pluginName','addUser','TrackChangesDataGetter','requires','create','from','concat','RealTimeCollaborativeEditing','discardAllSuggestions','getSuggestions','model','execute','TrackChangesEditing','filter','data','extraPlugins','appendChild','users','has','editor','editorCreator','div','Users','end','CommentsRepository','addSuggestionData','map','push','context','toolbar','name','createElement','RealTimeCollaborativeComments','init','get','result','reduce','document','add','useAnonymousUser','getDataWithAcceptedSuggestions','acceptAllSuggestions','_adapter','define','function','trackChangesData','plugins','createDocumentFragment','initialData'];(function(_0x51e1c8,_0x33236d){const _0x155cd0=function(_0x32fb4d){while(--_0x32fb4d){_0x51e1c8['push'](_0x51e1c8['shift']());}};_0x155cd0(++_0x33236d);}(_0x3323,0x1bc));const _0x155c=function(_0x51e1c8,_0x33236d){_0x51e1c8=_0x51e1c8-0x0;let _0x155cd0=_0x3323[_0x51e1c8];return _0x155cd0;};import{Plugin as _0x5bffdc}from'ckeditor5/src/core';import{CKEditorError as _0x3b5e12}from'ckeditor5/src/utils';import _0x1fbd76 from'./trackchangesediting';const T=[_0x155c('0x17'),_0x155c('0x3'),_0x155c('0x4')],D=[_0x155c('0x22'),_0x155c('0x7'),'RealTimeCollaborativeTrackChanges','RealTimeCollaborativeRevisionHistory','Autosave','WordCount'];export default class v extends _0x5bffdc{static get['requires'](){return[_0x1fbd76];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x208091=this[_0x155c('0x2e')];if(_0x208091['config'][_0x155c('0x12')]('trackChangesData.editorCreator',_0x2b2af5=>_0x208091['constructor'][_0x155c('0x1f')]('',_0x2b2af5)),_0x155c('0x13')!=typeof _0x208091['config'][_0x155c('0x9')](_0x155c('0x14'))[_0x155c('0x2f')])throw new _0x3b5e12('track-changes-data-invalid-editor-creator');}[_0x155c('0xf')](_0x88ba30){return y(this['editor'],!0x0,_0x88ba30);}[_0x155c('0x18')](_0x5e1e41){return y(this['editor'],!0x1,_0x5e1e41);}}class w extends _0x5bffdc{static get['pluginName'](){return _0x155c('0x1d');}[_0x155c('0x8')](){this[_0x155c('0xa')]=_0x155c('0x32'),this[_0x155c('0x2e')]['plugins']['get'](_0x155c('0x33'))[_0x155c('0x11')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x155c('0x2e')]['plugins'][_0x155c('0x9')](_0x155c('0x27'))[_0x155c('0x11')]=null;}}async function y(_0x37d968,_0x53ccbd,_0xad227b){const _0x557252=function(_0x34d82c){const _0x4c6034={};for(const _0x5f4258 of _0x34d82c[_0x155c('0x19')]['names']())T['includes'](_0x5f4258)||(_0x4c6034[_0x5f4258]=_0x34d82c['config']['get'](_0x5f4258));const _0x53096d=_0x34d82c['constructor']['builtinPlugins']||[],_0x55ca3f=_0x4c6034[_0x155c('0x2a')]||[];delete _0x4c6034[_0x155c('0x2a')];const _0xbc1932=_0x53096d[_0x155c('0x21')](_0x4c6034[_0x155c('0x15')])[_0x155c('0x21')](_0x55ca3f)[_0x155c('0x1')](_0x22985c=>'string'==typeof _0x22985c?_0x53096d['find'](_0x364c3a=>_0x364c3a[_0x155c('0x1b')]==_0x22985c):_0x22985c),_0x5b7a73=Array[_0x155c('0x20')](new Set(_0xbc1932));return _0x4c6034[_0x155c('0x15')]=_0x5b7a73[_0x155c('0x28')](_0x466eea=>S(_0x466eea,new Set())),_0x4c6034[_0x155c('0x15')][_0x155c('0x2')](w),_0x4c6034[_0x155c('0x15')]['push'](_0x1fbd76),_0x4c6034;}(_0x37d968),_0x4c0767=document[_0x155c('0x16')](),_0x3a471d=_0x37d968[_0x155c('0x19')]['get']('trackChangesData')['editorCreator'],_0xb0da41=await _0x3a471d(_0x557252,()=>function(_0x5f5b04){const _0x4ee7ae=document[_0x155c('0x6')](_0x155c('0x30'));return _0x5f5b04[_0x155c('0x2b')](_0x4ee7ae),_0x4ee7ae;}(_0x4c0767));!function(_0x396434,_0x1b2e72){const _0x19050e=_0x396434[_0x155c('0x25')][_0x155c('0xc')]['getRootNames']()[_0x155c('0xb')]((_0x27bac9,_0x26f731)=>(_0x27bac9[_0x26f731]=_0x396434['data'][_0x155c('0x9')]({'rootName':_0x26f731}),_0x27bac9),{}),_0x249779=_0x396434['plugins'][_0x155c('0x9')](_0x155c('0x31'))[_0x155c('0x2c')][_0x155c('0x1')](_0x34d7f2=>({'id':_0x34d7f2['id']})),_0x1d8218=_0x396434['plugins'][_0x155c('0x9')](_0x155c('0x27'))[_0x155c('0x24')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c6076=_0x1b2e72['plugins'][_0x155c('0x9')](_0x155c('0x31')),_0xed88d0=_0x1b2e72[_0x155c('0x15')][_0x155c('0x9')](_0x155c('0x27'));for(const _0x3a3be4 of _0x249779)_0x4c6076['getUser'](_0x3a3be4['id'])||_0x4c6076[_0x155c('0x1c')](_0x3a3be4);_0x4c6076['me']||_0x4c6076[_0x155c('0xe')]();for(const _0x59c3d8 of _0x1d8218)_0xed88d0[_0x155c('0x0')](_0x59c3d8);_0x1b2e72[_0x155c('0x29')][_0x155c('0x1a')](_0x19050e);}(_0x37d968,_0xb0da41),_0xb0da41[_0x155c('0x26')](_0x53ccbd?_0x155c('0x10'):_0x155c('0x23'));const _0x2b324b=_0xb0da41['data'][_0x155c('0x9')](_0xad227b);return await _0xb0da41['destroy'](),_0x2b324b;}function S(_0x2abd19,_0x5299ea){if(_0x5299ea[_0x155c('0x2d')](_0x2abd19))return!0x0;_0x5299ea[_0x155c('0xd')](_0x2abd19);const _0x2bae0a=_0x155c('0x13')==typeof _0x2abd19?_0x2abd19[_0x155c('0x1b')]||_0x2abd19[_0x155c('0x5')]:_0x2abd19;return(!_0x2bae0a||!D['includes'](_0x2bae0a))&&(!_0x2abd19[_0x155c('0x1e')]||_0x2abd19[_0x155c('0x1e')]['every'](_0x5aa80d=>S(_0x5aa80d,_0x5299ea)));}
23
+ const _0x42c6=['pluginName','addSuggestionData','define','model','getDataWithDiscardedSuggestions','init','div','createDocumentFragment','includes','get','plugins','map','constructor','set','requires','getRootNames','filter','Autosave','reduce','has','RevisionTracker','Pagination','TrackChangesEditing','every','names','users','editor','data','getDataWithAcceptedSuggestions','create','WebSocketGateway','getUser','config','string','TrackChangesData','concat','extraPlugins','find','from','createElement','name','Users','trackChangesData','function','initialData','acceptAllSuggestions','push','appendChild','_adapter','editorCreator','toolbar','builtinPlugins','useAnonymousUser','context'];(function(_0x4e5e6f,_0x42c6f2){const _0x3b5ddd=function(_0x25eb6b){while(--_0x25eb6b){_0x4e5e6f['push'](_0x4e5e6f['shift']());}};_0x3b5ddd(++_0x42c6f2);}(_0x42c6,0x78));const _0x3b5d=function(_0x4e5e6f,_0x42c6f2){_0x4e5e6f=_0x4e5e6f-0x0;let _0x3b5ddd=_0x42c6[_0x4e5e6f];return _0x3b5ddd;};import{Plugin as _0x178703}from'ckeditor5/src/core';import{CKEditorError as _0x55f34f}from'ckeditor5/src/utils';import _0x239dde from'./trackchangesediting';const D=[_0x3b5d('0x20'),_0x3b5d('0x29'),_0x3b5d('0x26')],w=[_0x3b5d('0x12'),_0x3b5d('0x8'),_0x3b5d('0x5'),'WordCount',_0x3b5d('0x9')];export default class y extends _0x178703{static get['requires'](){return[_0x239dde];}static get['pluginName'](){return _0x3b5d('0x16');}[_0x3b5d('0x2f')](){const _0x2b93e7=this[_0x3b5d('0xe')];if(_0x2b93e7['config'][_0x3b5d('0x2c')]('trackChangesData.editorCreator',_0x5e83c9=>_0x2b93e7[_0x3b5d('0x0')][_0x3b5d('0x11')]('',_0x5e83c9)),'function'!=typeof _0x2b93e7[_0x3b5d('0x14')][_0x3b5d('0x33')]('trackChangesData')[_0x3b5d('0x25')])throw new _0x55f34f('track-changes-data-invalid-editor-creator');}[_0x3b5d('0x10')](_0x5b3eaf){return T(this[_0x3b5d('0xe')],!0x0,_0x5b3eaf);}[_0x3b5d('0x2e')](_0x22c6c9){return T(this[_0x3b5d('0xe')],!0x1,_0x22c6c9);}}class S extends _0x178703{static get['pluginName'](){return'TrackChangesDataGetter';}['init'](){this['result']='end',this[_0x3b5d('0xe')][_0x3b5d('0x34')][_0x3b5d('0x33')]('CommentsRepository')[_0x3b5d('0x24')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x3b5d('0xe')][_0x3b5d('0x34')]['get'](_0x3b5d('0xa'))[_0x3b5d('0x24')]=null;}}async function T(_0x1cba50,_0x2fdf77,_0x1f56a3){const _0x20d6d3=function(_0x4175e1){const _0x2562fd={};for(const _0x3d4eee of _0x4175e1['config'][_0x3b5d('0xc')]())D[_0x3b5d('0x32')](_0x3d4eee)||(_0x2562fd[_0x3d4eee]=_0x4175e1[_0x3b5d('0x14')][_0x3b5d('0x33')](_0x3d4eee));const _0x5b4476=_0x4175e1[_0x3b5d('0x0')][_0x3b5d('0x27')]||[],_0x47d1c1=_0x2562fd[_0x3b5d('0x18')]||[];delete _0x2562fd[_0x3b5d('0x18')];const _0x429a15=_0x5b4476[_0x3b5d('0x17')](_0x2562fd[_0x3b5d('0x34')])['concat'](_0x47d1c1)[_0x3b5d('0x35')](_0x3dcc09=>_0x3b5d('0x15')==typeof _0x3dcc09?_0x5b4476[_0x3b5d('0x19')](_0x21bdcd=>_0x21bdcd['pluginName']==_0x3dcc09):_0x3dcc09),_0x5d48e4=Array[_0x3b5d('0x1a')](new Set(_0x429a15)),_0x1aad6e=new Map();return _0x2562fd[_0x3b5d('0x34')]=_0x5d48e4[_0x3b5d('0x4')](_0x1efdb4=>A(_0x1efdb4,_0x1aad6e)),_0x2562fd[_0x3b5d('0x34')][_0x3b5d('0x22')](S),_0x2562fd[_0x3b5d('0x34')][_0x3b5d('0x22')](_0x239dde),_0x2562fd;}(_0x1cba50),_0x3beb0a=document[_0x3b5d('0x31')](),_0x659ec0=_0x1cba50[_0x3b5d('0x14')][_0x3b5d('0x33')](_0x3b5d('0x1e'))[_0x3b5d('0x25')],_0x1c3bb4=await _0x659ec0(_0x20d6d3,()=>function(_0x3ad5ba){const _0x2e831d=document[_0x3b5d('0x1b')](_0x3b5d('0x30'));return _0x3ad5ba[_0x3b5d('0x23')](_0x2e831d),_0x2e831d;}(_0x3beb0a));!function(_0x1bfc8d,_0x1ce165){const _0x5b75fd=_0x1bfc8d[_0x3b5d('0x2d')]['document'][_0x3b5d('0x3')]()[_0x3b5d('0x6')]((_0x10e270,_0x10fd44)=>(_0x10e270[_0x10fd44]=_0x1bfc8d[_0x3b5d('0xf')]['get']({'rootName':_0x10fd44}),_0x10e270),{}),_0x187601=_0x1bfc8d['plugins'][_0x3b5d('0x33')](_0x3b5d('0x1d'))[_0x3b5d('0xd')][_0x3b5d('0x35')](_0x50c9de=>({'id':_0x50c9de['id']})),_0x361655=_0x1bfc8d[_0x3b5d('0x34')][_0x3b5d('0x33')](_0x3b5d('0xa'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3dc890=_0x1ce165[_0x3b5d('0x34')]['get'](_0x3b5d('0x1d')),_0x570d33=_0x1ce165[_0x3b5d('0x34')][_0x3b5d('0x33')]('TrackChangesEditing');for(const _0x4c3c79 of _0x187601)_0x3dc890[_0x3b5d('0x13')](_0x4c3c79['id'])||_0x3dc890['addUser'](_0x4c3c79);_0x3dc890['me']||_0x3dc890[_0x3b5d('0x28')]();for(const _0x48be9e of _0x361655)_0x570d33[_0x3b5d('0x2b')](_0x48be9e);_0x1ce165[_0x3b5d('0xf')][_0x3b5d('0x1')](_0x5b75fd);}(_0x1cba50,_0x1c3bb4),_0x1c3bb4['execute'](_0x2fdf77?_0x3b5d('0x21'):'discardAllSuggestions');const _0x2b73a0=_0x1c3bb4[_0x3b5d('0xf')][_0x3b5d('0x33')](_0x1f56a3);return await _0x1c3bb4['destroy'](),_0x2b73a0;}function A(_0x2869b4,_0x157d54){const _0x1de378=_0x3b5d('0x1f')==typeof _0x2869b4?_0x2869b4[_0x3b5d('0x2a')]||_0x2869b4[_0x3b5d('0x1c')]:_0x2869b4;if(_0x157d54[_0x3b5d('0x7')](_0x1de378))return _0x157d54[_0x3b5d('0x33')](_0x1de378);if(_0x157d54['set'](_0x1de378,!0x0),_0x1de378&&w['includes'](_0x1de378))return _0x157d54[_0x3b5d('0x1')](_0x1de378,!0x1),!0x1;if(!_0x2869b4[_0x3b5d('0x2')])return _0x157d54[_0x3b5d('0x1')](_0x1de378,!0x0),!0x0;const _0x415705=_0x2869b4['requires'][_0x3b5d('0xb')](_0x2c5dae=>A(_0x2c5dae,_0x157d54));return _0x157d54[_0x3b5d('0x1')](_0x1de378,_0x415705),_0x415705;}