@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231208.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 (161) 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/sq.js +1 -1
  37. package/build/translations/sr-latn.js +1 -1
  38. package/build/translations/sr.js +1 -1
  39. package/build/translations/sv.js +1 -1
  40. package/build/translations/th.js +1 -1
  41. package/build/translations/tk.js +1 -1
  42. package/build/translations/tr.js +1 -1
  43. package/build/translations/tt.js +1 -1
  44. package/build/translations/uk.js +1 -1
  45. package/build/translations/ur.js +1 -1
  46. package/build/translations/vi.js +1 -1
  47. package/build/translations/zh-cn.js +1 -1
  48. package/build/translations/zh.js +1 -1
  49. package/lang/translations/ar.po +5 -5
  50. package/lang/translations/az.po +4 -4
  51. package/lang/translations/bg.po +5 -5
  52. package/lang/translations/bn.po +5 -5
  53. package/lang/translations/ca.po +5 -5
  54. package/lang/translations/cs.po +5 -5
  55. package/lang/translations/da.po +5 -5
  56. package/lang/translations/de.po +5 -5
  57. package/lang/translations/el.po +5 -5
  58. package/lang/translations/en-au.po +5 -5
  59. package/lang/translations/en.po +5 -5
  60. package/lang/translations/es.po +5 -5
  61. package/lang/translations/et.po +5 -5
  62. package/lang/translations/fi.po +5 -5
  63. package/lang/translations/fr.po +5 -5
  64. package/lang/translations/gl.po +36 -36
  65. package/lang/translations/he.po +5 -5
  66. package/lang/translations/hi.po +5 -5
  67. package/lang/translations/hr.po +5 -5
  68. package/lang/translations/hu.po +5 -5
  69. package/lang/translations/id.po +5 -5
  70. package/lang/translations/it.po +5 -5
  71. package/lang/translations/ja.po +5 -5
  72. package/lang/translations/ko.po +5 -5
  73. package/lang/translations/lt.po +5 -5
  74. package/lang/translations/lv.po +5 -5
  75. package/lang/translations/ms.po +5 -5
  76. package/lang/translations/nl.po +5 -5
  77. package/lang/translations/no.po +5 -5
  78. package/lang/translations/pl.po +5 -5
  79. package/lang/translations/pt-br.po +5 -5
  80. package/lang/translations/pt.po +5 -5
  81. package/lang/translations/ro.po +5 -5
  82. package/lang/translations/ru.po +5 -5
  83. package/lang/translations/sk.po +5 -5
  84. package/lang/translations/sq.po +4 -4
  85. package/lang/translations/sr-latn.po +24 -24
  86. package/lang/translations/sr.po +5 -5
  87. package/lang/translations/sv.po +5 -5
  88. package/lang/translations/th.po +5 -5
  89. package/lang/translations/tk.po +4 -4
  90. package/lang/translations/tr.po +5 -5
  91. package/lang/translations/tt.po +4 -4
  92. package/lang/translations/uk.po +5 -5
  93. package/lang/translations/ur.po +4 -4
  94. package/lang/translations/vi.po +5 -5
  95. package/lang/translations/zh-cn.po +5 -5
  96. package/lang/translations/zh.po +5 -5
  97. package/package.json +3 -3
  98. package/src/commands/acceptsuggestioncommand.js +1 -1
  99. package/src/commands/discardsuggestioncommand.js +1 -1
  100. package/src/commands/executeonallsuggestionscommand.js +1 -1
  101. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  102. package/src/commands/trackchangescommand.js +1 -1
  103. package/src/integrations/aiassistant.js +1 -1
  104. package/src/integrations/alignment.js +1 -1
  105. package/src/integrations/basicstyles.js +1 -1
  106. package/src/integrations/blockquote.js +1 -1
  107. package/src/integrations/ckbox.js +1 -1
  108. package/src/integrations/codeblock.js +1 -1
  109. package/src/integrations/comments.js +1 -1
  110. package/src/integrations/deletecommand.js +1 -1
  111. package/src/integrations/documentlist.js +1 -1
  112. package/src/integrations/documentlistproperties.js +1 -1
  113. package/src/integrations/entercommand.js +1 -1
  114. package/src/integrations/findandreplace.js +1 -1
  115. package/src/integrations/font.js +1 -1
  116. package/src/integrations/formatpainter.js +1 -1
  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/imagestyle.js +1 -1
  124. package/src/integrations/importword.js +1 -1
  125. package/src/integrations/indent.js +1 -1
  126. package/src/integrations/inputcommand.js +1 -1
  127. package/src/integrations/link.js +1 -1
  128. package/src/integrations/list.js +1 -1
  129. package/src/integrations/listproperties.js +1 -1
  130. package/src/integrations/mediaembed.js +1 -1
  131. package/src/integrations/mention.js +1 -1
  132. package/src/integrations/pagebreak.js +1 -1
  133. package/src/integrations/paragraph.js +1 -1
  134. package/src/integrations/removeformat.js +1 -1
  135. package/src/integrations/restrictededitingmode.js +1 -1
  136. package/src/integrations/shiftentercommand.js +1 -1
  137. package/src/integrations/standardeditingmode.js +1 -1
  138. package/src/integrations/style.js +1 -1
  139. package/src/integrations/table.js +1 -1
  140. package/src/integrations/tablecaption.js +1 -1
  141. package/src/integrations/tableclipboard.js +1 -1
  142. package/src/integrations/tablecolumnresize.js +1 -1
  143. package/src/integrations/tableheadings.js +1 -1
  144. package/src/integrations/tablemergesplit.js +1 -1
  145. package/src/integrations/tableofcontents.js +1 -1
  146. package/src/integrations/tableproperties.js +1 -1
  147. package/src/integrations/template.js +1 -1
  148. package/src/integrations/title.js +1 -1
  149. package/src/integrations/undo.js +1 -1
  150. package/src/integrations/utils.js +1 -1
  151. package/src/suggestion.js +1 -1
  152. package/src/suggestiondescriptionfactory.js +1 -1
  153. package/src/trackchanges.js +1 -1
  154. package/src/trackchangesdata.js +1 -1
  155. package/src/trackchangesediting.js +1 -1
  156. package/src/trackchangesui.js +1 -1
  157. package/src/ui/suggestioncontroller.js +1 -1
  158. package/src/ui/view/basesuggestionthreadview.js +1 -1
  159. package/src/ui/view/suggestionthreadview.js +1 -1
  160. package/src/utils/common-translations.js +1 -1
  161. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29aa=['tableBorderColor','tableCellHeight','discard','_descriptionFactory','tableHeight','*Format:*\x20change\x20table\x20properties','tableProperties','get','getSuggestionCallback','tableCellVerticalAlignment','TableCellPropertiesEditing','pluginName','removeAttribute','subType','accept','tableCellBorderWidth','TableUtils','tableCellBackgroundColor','tableCellPadding','tableCellProperties','selection','formatBlock','afterInit','model','enableCommand','enqueueChange','format','_handlePropertyChange','plugins','handleDiscardAction','handleSuggestionDescription','tableAlignment','commandParams','has','tableBorderWidth','_getSuggestion','table','nodeAfter','markBlockFormat','document','locale','TrackChangesTableProperties','registerCustomCallback','getContainedElement','TrackChangesEditing','registerDescriptionCallback','editor','start','tableCellBorderStyle','tableCellHorizontalAlignment','getSuggestions','_suggestionFactory','tableWidth','batch','join'];(function(_0x35507a,_0x29aab1){const _0x4555ea=function(_0x56723c){while(--_0x56723c){_0x35507a['push'](_0x35507a['shift']());}};_0x4555ea(++_0x29aab1);}(_0x29aa,0x144));const _0x4555=function(_0x35507a,_0x29aab1){_0x35507a=_0x35507a-0x0;let _0x4555ea=_0x29aa[_0x35507a];return _0x4555ea;};import{Plugin as _0x3b2c3c}from'ckeditor5/src/core';import{getTranslation as _0x5dbe65}from'../utils/common-translations';export default class Mt extends _0x3b2c3c{constructor(_0x444919){super(_0x444919),this[_0x4555('0xc')]=[_0x4555('0x6'),'tableBorderStyle',_0x4555('0x28'),_0x4555('0x25'),_0x4555('0x3'),_0x4555('0xa'),'tableBackgroundColor'],this[_0x4555('0x19')]=['tableCellBorderColor',_0x4555('0x36'),_0x4555('0x15'),_0x4555('0x18'),'tableCellWidth',_0x4555('0x7'),_0x4555('0x17'),_0x4555('0x0'),_0x4555('0xf')];}static get[_0x4555('0x11')](){return _0x4555('0x2f');}[_0x4555('0x1c')](){const _0x19eeb2=this[_0x4555('0x34')][_0x4555('0x22')][_0x4555('0xd')](_0x4555('0x32'));if(this[_0x4555('0x34')][_0x4555('0x22')][_0x4555('0x27')]('TablePropertiesEditing')){for(const _0x3b3ab5 of this[_0x4555('0xc')])_0x19eeb2[_0x4555('0x1e')](_0x3b3ab5,(_0x97075c,_0x49d77d)=>{const _0x24dd67=this[_0x4555('0x34')][_0x4555('0x1d')]['document']['selection']['getFirstPosition']()['findAncestor'](_0x4555('0x2a'));this[_0x4555('0x21')](_0x3b3ab5,[_0x24dd67],this[_0x4555('0xc')],_0x4555('0xc'),_0x97075c,_0x49d77d);});_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')]('formatBlock',_0x4555('0xc'),_0x4555('0x14'),_0x19eeb2[_0x4555('0x2')][_0x4555('0xe')]('formatBlock',null,_0x4555('0x8'))),_0x19eeb2[_0x4555('0x2')]['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x46f936,_0x1cbcd7)=>this[_0x4555('0x23')](this['tableProperties'],_0x46f936,_0x1cbcd7)),_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')]('formatBlock',_0x4555('0xc'),'join',()=>!0x1);}if(this['editor'][_0x4555('0x22')][_0x4555('0x27')](_0x4555('0x10'))){for(const _0x2d16db of this[_0x4555('0x19')])_0x19eeb2['enableCommand'](_0x2d16db,(_0x1df5f2,_0x430377)=>{const _0x2042fa=this[_0x4555('0x34')][_0x4555('0x22')][_0x4555('0xd')](_0x4555('0x16'))['getSelectionAffectedTableCells'](this['editor'][_0x4555('0x1d')][_0x4555('0x2d')][_0x4555('0x1a')]);this[_0x4555('0x21')](_0x2d16db,_0x2042fa,this[_0x4555('0x19')],_0x4555('0x19'),_0x1df5f2,_0x430377);});_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')]('formatBlock',_0x4555('0x19'),_0x4555('0x14'),_0x19eeb2[_0x4555('0x2')][_0x4555('0xe')](_0x4555('0x1b'),null,_0x4555('0x8'))),_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')](_0x4555('0x1b'),_0x4555('0x19'),_0x4555('0x8'),(_0x1eea81,_0x23f7df)=>this[_0x4555('0x23')](this['tableCellProperties'],_0x1eea81,_0x23f7df)),_0x19eeb2[_0x4555('0x2')][_0x4555('0x30')](_0x4555('0x1b'),'tableCellProperties',_0x4555('0x5'),()=>!0x1);}_0x19eeb2[_0x4555('0x9')][_0x4555('0x33')](_0x1c8d9e=>this['handleSuggestionDescription'](_0x1c8d9e));}[_0x4555('0x21')](_0x2930cc,_0x4f93e3,_0x45818a,_0x4a5714,_0x4ac0cb,_0x3374fd){const _0x1a3963=this['editor']['plugins']['get'](_0x4555('0x32'));this['editor'][_0x4555('0x1d')][_0x4555('0x1f')](_0x3374fd[_0x4555('0x4')],()=>{for(const _0x11dc0c of _0x4f93e3){if(this[_0x4555('0x29')](_0x11dc0c,_0x4a5714))_0x4ac0cb(_0x3374fd);else{const _0x351fc0={};for(const _0x140380 of _0x45818a){const _0x407843=_0x11dc0c['getAttribute'](_0x140380);void 0x0!==_0x407843&&(_0x351fc0[_0x140380]=_0x407843);}_0x4ac0cb(_0x3374fd),_0x1a3963[_0x4555('0x2c')](_0x11dc0c,{'commandParams':[_0x351fc0]},[],_0x4a5714);}}});}[_0x4555('0x23')](_0x20eaab,_0x330b17,_0x1f0242){const _0xa78abf=_0x330b17[0x0][_0x4555('0x35')][_0x4555('0x2b')],_0xf14983=_0x1f0242[_0x4555('0x26')][0x0];this['editor'][_0x4555('0x1d')]['change'](_0xf5d9b2=>{for(const _0x1df45c of _0x20eaab)void 0x0!==_0xf14983[_0x1df45c]?_0xf5d9b2['setAttribute'](_0x1df45c,_0xf14983[_0x1df45c],_0xa78abf):_0xf5d9b2[_0x4555('0x12')](_0x1df45c,_0xa78abf);});}[_0x4555('0x24')](_0x4bc4bc){if(_0x4bc4bc['data'])switch(_0x4bc4bc['subType']){case _0x4555('0xc'):return{'type':_0x4555('0x20'),'content':_0x5dbe65(this[_0x4555('0x34')][_0x4555('0x2e')],_0x4555('0xb'))};case'tableCellProperties':return{'type':_0x4555('0x20'),'content':_0x5dbe65(this[_0x4555('0x34')][_0x4555('0x2e')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x4555('0x29')](_0x249385,_0x4e2890){const _0x3e09d5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1c59dc of _0x3e09d5[_0x4555('0x1')]({'skipNotAttached':!0x0})){const _0xd93cc=_0x1c59dc[_0x4555('0x31')]();if(_0x1c59dc[_0x4555('0x13')]===_0x4e2890&&_0xd93cc===_0x249385)return _0x1c59dc;}return null;}}
23
+ const _0x1170=['getFirstPosition','markBlockFormat','*Format:*\x20change\x20table\x20properties','tableCellWidth','enableCommand','registerDescriptionCallback','nodeAfter','pluginName','_getSuggestion','handleDiscardAction','handleSuggestionDescription','tableBorderWidth','TrackChangesTableProperties','tableCellHorizontalAlignment','format','tableBorderColor','tableCellHeight','tableCellVerticalAlignment','_handlePropertyChange','tableAlignment','TableCellPropertiesEditing','data','findAncestor','accept','commandParams','TableUtils','change','table','tableCellProperties','plugins','getSuggestionCallback','tableProperties','getContainedElement','tableCellBorderWidth','model','setAttribute','discard','tableBorderStyle','tableCellPadding','tableCellBorderStyle','batch','tableHeight','has','TablePropertiesEditing','subType','getSuggestions','_descriptionFactory','registerCustomCallback','get','TrackChangesEditing','document','formatBlock','editor','removeAttribute','selection','locale','tableWidth','_suggestionFactory'];(function(_0x204775,_0x11707){const _0x490ab1=function(_0x43a3bf){while(--_0x43a3bf){_0x204775['push'](_0x204775['shift']());}};_0x490ab1(++_0x11707);}(_0x1170,0xeb));const _0x490a=function(_0x204775,_0x11707){_0x204775=_0x204775-0x0;let _0x490ab1=_0x1170[_0x204775];return _0x490ab1;};import{Plugin as _0x556551}from'ckeditor5/src/core';import{getTranslation as _0x4453fc}from'../utils/common-translations';export default class Mt extends _0x556551{constructor(_0x296a59){super(_0x296a59),this[_0x490a('0x1c')]=[_0x490a('0xc'),_0x490a('0x22'),_0x490a('0x8'),_0x490a('0x10'),_0x490a('0x35'),_0x490a('0x26'),'tableBackgroundColor'],this[_0x490a('0x19')]=['tableCellBorderColor',_0x490a('0x24'),_0x490a('0x1e'),_0x490a('0x23'),_0x490a('0x0'),_0x490a('0xd'),'tableCellBackgroundColor',_0x490a('0xa'),_0x490a('0xe')];}static get[_0x490a('0x4')](){return _0x490a('0x9');}['afterInit'](){const _0x14f236=this[_0x490a('0x31')][_0x490a('0x1a')][_0x490a('0x2d')](_0x490a('0x2e'));if(this[_0x490a('0x31')][_0x490a('0x1a')][_0x490a('0x27')](_0x490a('0x28'))){for(const _0x39ff4f of this[_0x490a('0x1c')])_0x14f236['enableCommand'](_0x39ff4f,(_0x1b54df,_0x34a461)=>{const _0x30ccea=this[_0x490a('0x31')]['model'][_0x490a('0x2f')][_0x490a('0x33')][_0x490a('0x37')]()[_0x490a('0x13')](_0x490a('0x18'));this[_0x490a('0xf')](_0x39ff4f,[_0x30ccea],this[_0x490a('0x1c')],_0x490a('0x1c'),_0x1b54df,_0x34a461);});_0x14f236['_suggestionFactory']['registerCustomCallback'](_0x490a('0x30'),'tableProperties',_0x490a('0x14'),_0x14f236[_0x490a('0x36')]['getSuggestionCallback']('formatBlock',null,_0x490a('0x21'))),_0x14f236[_0x490a('0x36')]['registerCustomCallback']('formatBlock',_0x490a('0x1c'),_0x490a('0x21'),(_0x5d57b9,_0x2b3f5e)=>this['handleDiscardAction'](this[_0x490a('0x1c')],_0x5d57b9,_0x2b3f5e)),_0x14f236[_0x490a('0x36')]['registerCustomCallback'](_0x490a('0x30'),'tableProperties','join',()=>!0x1);}if(this[_0x490a('0x31')][_0x490a('0x1a')][_0x490a('0x27')](_0x490a('0x11'))){for(const _0x472a9d of this['tableCellProperties'])_0x14f236[_0x490a('0x1')](_0x472a9d,(_0x3bea97,_0x120050)=>{const _0x2b1acd=this['editor'][_0x490a('0x1a')][_0x490a('0x2d')](_0x490a('0x16'))['getSelectionAffectedTableCells'](this[_0x490a('0x31')][_0x490a('0x1f')][_0x490a('0x2f')]['selection']);this[_0x490a('0xf')](_0x472a9d,_0x2b1acd,this['tableCellProperties'],_0x490a('0x19'),_0x3bea97,_0x120050);});_0x14f236[_0x490a('0x36')][_0x490a('0x2c')](_0x490a('0x30'),_0x490a('0x19'),_0x490a('0x14'),_0x14f236[_0x490a('0x36')][_0x490a('0x1b')](_0x490a('0x30'),null,_0x490a('0x21'))),_0x14f236[_0x490a('0x36')][_0x490a('0x2c')](_0x490a('0x30'),_0x490a('0x19'),_0x490a('0x21'),(_0x387833,_0x356274)=>this[_0x490a('0x6')](this['tableCellProperties'],_0x387833,_0x356274)),_0x14f236['_suggestionFactory']['registerCustomCallback'](_0x490a('0x30'),_0x490a('0x19'),'join',()=>!0x1);}_0x14f236[_0x490a('0x2b')][_0x490a('0x2')](_0xc0edd4=>this[_0x490a('0x7')](_0xc0edd4));}[_0x490a('0xf')](_0x2bd15e,_0x5cb14d,_0x579ea9,_0x52d9bf,_0x539c4a,_0x28a09a){const _0x4d0c55=this[_0x490a('0x31')][_0x490a('0x1a')]['get']('TrackChangesEditing');this[_0x490a('0x31')][_0x490a('0x1f')]['enqueueChange'](_0x28a09a[_0x490a('0x25')],()=>{for(const _0x539218 of _0x5cb14d){if(this[_0x490a('0x5')](_0x539218,_0x52d9bf))_0x539c4a(_0x28a09a);else{const _0x4d8825={};for(const _0x2bcbc9 of _0x579ea9){const _0x3f197d=_0x539218['getAttribute'](_0x2bcbc9);void 0x0!==_0x3f197d&&(_0x4d8825[_0x2bcbc9]=_0x3f197d);}_0x539c4a(_0x28a09a),_0x4d0c55[_0x490a('0x38')](_0x539218,{'commandParams':[_0x4d8825]},[],_0x52d9bf);}}});}[_0x490a('0x6')](_0x5d9ea9,_0x16e59e,_0x369c48){const _0xddab91=_0x16e59e[0x0]['start'][_0x490a('0x3')],_0x5cdbb3=_0x369c48[_0x490a('0x15')][0x0];this[_0x490a('0x31')]['model'][_0x490a('0x17')](_0x1b46f5=>{for(const _0x57267b of _0x5d9ea9)void 0x0!==_0x5cdbb3[_0x57267b]?_0x1b46f5[_0x490a('0x20')](_0x57267b,_0x5cdbb3[_0x57267b],_0xddab91):_0x1b46f5[_0x490a('0x32')](_0x57267b,_0xddab91);});}['handleSuggestionDescription'](_0x2e7cfc){if(_0x2e7cfc[_0x490a('0x12')])switch(_0x2e7cfc['subType']){case'tableProperties':return{'type':'format','content':_0x4453fc(this[_0x490a('0x31')][_0x490a('0x34')],_0x490a('0x39'))};case'tableCellProperties':return{'type':_0x490a('0xb'),'content':_0x4453fc(this[_0x490a('0x31')][_0x490a('0x34')],'*Format:*\x20change\x20table\x20cell\x20properties')};}}[_0x490a('0x5')](_0x2c6e2e,_0x220921){const _0x59149e=this['editor'][_0x490a('0x1a')][_0x490a('0x2d')](_0x490a('0x2e'));for(const _0x1b5c2e of _0x59149e[_0x490a('0x2a')]({'skipNotAttached':!0x0})){const _0x4c7f7b=_0x1b5c2e[_0x490a('0x1d')]();if(_0x1b5c2e[_0x490a('0x29')]===_0x220921&&_0x4c7f7b===_0x2c6e2e)return _0x1b5c2e;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x165d=['plugins','insertTemplate','editor','Template','enableCommand','afterInit','TrackChangesEditing'];(function(_0x33f258,_0x165d19){const _0x2ba609=function(_0x1c0fc4){while(--_0x1c0fc4){_0x33f258['push'](_0x33f258['shift']());}};_0x2ba609(++_0x165d19);}(_0x165d,0x13e));const _0x2ba6=function(_0x33f258,_0x165d19){_0x33f258=_0x33f258-0x0;let _0x2ba609=_0x165d[_0x33f258];return _0x2ba609;};import{Plugin as _0x4dfaa2}from'ckeditor5/src/core';export default class vt extends _0x4dfaa2{[_0x2ba6('0x2')](){const _0x50bf60=this[_0x2ba6('0x6')];_0x50bf60[_0x2ba6('0x4')]['has'](_0x2ba6('0x0'))&&_0x50bf60[_0x2ba6('0x4')]['get'](_0x2ba6('0x3'))[_0x2ba6('0x1')](_0x2ba6('0x5'));}}
23
+ const _0x42c5=['Template','afterInit','has','get','TrackChangesEditing','plugins','insertTemplate','editor'];(function(_0x1db3f4,_0x42c569){const _0x31dfaa=function(_0x5bdb53){while(--_0x5bdb53){_0x1db3f4['push'](_0x1db3f4['shift']());}};_0x31dfaa(++_0x42c569);}(_0x42c5,0xe0));const _0x31df=function(_0x1db3f4,_0x42c569){_0x1db3f4=_0x1db3f4-0x0;let _0x31dfaa=_0x42c5[_0x1db3f4];return _0x31dfaa;};import{Plugin as _0x5e17eb}from'ckeditor5/src/core';export default class vt extends _0x5e17eb{[_0x31df('0x1')](){const _0x151de0=this[_0x31df('0x7')];_0x151de0[_0x31df('0x5')][_0x31df('0x2')](_0x31df('0x0'))&&_0x151de0[_0x31df('0x5')][_0x31df('0x3')](_0x31df('0x4'))['enableCommand'](_0x31df('0x6'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x850f=['isTouching','model','has','ELEMENT_TITLE','removeMarker','registerElementLabel','element','createRange','isEqual','locale','get','getNearestSelectionRange','schema','suggestion','end','Title','updateMarker','isCollapsed','editor','title-content','start','plugins','TrackChangesEditing','registerPostFixer','document','getChangedMarkers','from','_descriptionFactory','newRange','afterInit','differ'];(function(_0x2655b7,_0x850fbf){const _0x3ae93f=function(_0x3f7889){while(--_0x3f7889){_0x2655b7['push'](_0x2655b7['shift']());}};_0x3ae93f(++_0x850fbf);}(_0x850f,0x105));const _0x3ae9=function(_0x2655b7,_0x850fbf){_0x2655b7=_0x2655b7-0x0;let _0x3ae93f=_0x850f[_0x2655b7];return _0x3ae93f;};import{Plugin as _0x35ec51}from'ckeditor5/src/core';import{getTranslation as _0x1dce0a}from'../utils/common-translations';export default class _t extends _0x35ec51{[_0x3ae9('0x10')](){const _0x3ea472=this[_0x3ae9('0x5')];if(!_0x3ea472['plugins'][_0x3ae9('0x14')](_0x3ae9('0x2')))return;const _0xa137e4=_0x3ea472[_0x3ae9('0x8')][_0x3ae9('0x1c')](_0x3ae9('0x9'));_0xa137e4[_0x3ae9('0xe')][_0x3ae9('0x17')]('title-content',()=>_0x1dce0a(_0x3ea472[_0x3ae9('0x1b')],_0x3ae9('0x15'))),_0x3ea472[_0x3ae9('0x13')]['document'][_0x3ae9('0xa')](_0x2a6136=>{let _0x568cba=!0x1;const _0x1b7a61=Array[_0x3ae9('0xd')](_0x3ea472[_0x3ae9('0x13')][_0x3ae9('0xb')][_0x3ae9('0x11')][_0x3ae9('0xc')]());for(const {name:_0x1481fa,data:_0x3b0e7c}of _0x1b7a61){const {group:_0x3518dc}=_0xa137e4['_splitMarkerName'](_0x1481fa);if(_0x3ae9('0x0')!==_0x3518dc||!_0x3b0e7c[_0x3ae9('0xf')])continue;const _0x552b86=_0x3b0e7c[_0x3ae9('0xf')],_0x5679f6=_0x552b86[_0x3ae9('0x1')]['nodeBefore'];if(!_0x5679f6||!_0x5679f6['is'](_0x3ae9('0x18'),_0x3ae9('0x6')))continue;if(!_0x552b86[_0x3ae9('0x7')][_0x3ae9('0x12')](_0x552b86['end']))continue;const _0x56fc70=_0x3ea472[_0x3ae9('0x13')][_0x3ae9('0x1e')][_0x3ae9('0x1d')](_0x552b86[_0x3ae9('0x1')],'forward');if(_0x56fc70&&_0x56fc70[_0x3ae9('0x4')]){const _0x46f8d6=_0x2a6136[_0x3ae9('0x19')](_0x552b86['start'],_0x56fc70[_0x3ae9('0x7')]);_0x46f8d6[_0x3ae9('0x1a')](_0x552b86)||(_0x2a6136[_0x3ae9('0x3')](_0x1481fa,{'range':_0x46f8d6}),_0x568cba=!0x0);}_0x568cba||(_0x2a6136[_0x3ae9('0x16')](_0x1481fa),_0x568cba=!0x0);}return _0x568cba;});}}
23
+ const _0x4378=['getChangedMarkers','isTouching','model','registerElementLabel','forward','getNearestSelectionRange','title-content','locale','document','differ','newRange','removeMarker','_descriptionFactory','suggestion','createRange','start','isCollapsed','nodeBefore','get','isEqual','end','editor','ELEMENT_TITLE','Title','schema','_splitMarkerName','has'];(function(_0x19994e,_0x437841){const _0x372fec=function(_0x1764a3){while(--_0x1764a3){_0x19994e['push'](_0x19994e['shift']());}};_0x372fec(++_0x437841);}(_0x4378,0xcf));const _0x372f=function(_0x19994e,_0x437841){_0x19994e=_0x19994e-0x0;let _0x372fec=_0x4378[_0x19994e];return _0x372fec;};import{Plugin as _0x1216a0}from'ckeditor5/src/core';import{getTranslation as _0x3d7c93}from'../utils/common-translations';export default class _t extends _0x1216a0{['afterInit'](){const _0x46f89e=this[_0x372f('0x3')];if(!_0x46f89e['plugins'][_0x372f('0x8')](_0x372f('0x5')))return;const _0x23d8c9=_0x46f89e['plugins'][_0x372f('0x0')]('TrackChangesEditing');_0x23d8c9[_0x372f('0x15')][_0x372f('0xc')](_0x372f('0xf'),()=>_0x3d7c93(_0x46f89e[_0x372f('0x10')],_0x372f('0x4'))),_0x46f89e['model'][_0x372f('0x11')]['registerPostFixer'](_0x5d7e11=>{let _0x541465=!0x1;const _0xba5216=Array['from'](_0x46f89e[_0x372f('0xb')][_0x372f('0x11')][_0x372f('0x12')][_0x372f('0x9')]());for(const {name:_0x37cb37,data:_0x292098}of _0xba5216){const {group:_0x421007}=_0x23d8c9[_0x372f('0x7')](_0x37cb37);if(_0x372f('0x16')!==_0x421007||!_0x292098['newRange'])continue;const _0x479e7f=_0x292098[_0x372f('0x13')],_0x284f21=_0x479e7f[_0x372f('0x2')][_0x372f('0x1a')];if(!_0x284f21||!_0x284f21['is']('element','title-content'))continue;if(!_0x479e7f[_0x372f('0x18')][_0x372f('0xa')](_0x479e7f[_0x372f('0x2')]))continue;const _0x225fb6=_0x46f89e[_0x372f('0xb')][_0x372f('0x6')][_0x372f('0xe')](_0x479e7f[_0x372f('0x2')],_0x372f('0xd'));if(_0x225fb6&&_0x225fb6[_0x372f('0x19')]){const _0x367dd9=_0x5d7e11[_0x372f('0x17')](_0x479e7f[_0x372f('0x18')],_0x225fb6[_0x372f('0x18')]);_0x367dd9[_0x372f('0x1')](_0x479e7f)||(_0x5d7e11['updateMarker'](_0x37cb37,{'range':_0x367dd9}),_0x541465=!0x0);}_0x541465||(_0x5d7e11[_0x372f('0x14')](_0x37cb37),_0x541465=!0x0);}return _0x541465;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd722=['UndoEditing','TrackChangesEditing','plugins','redo','afterInit','undo','get','enableCommand','has'];(function(_0x42b12b,_0xd72295){const _0x148928=function(_0xe3b641){while(--_0xe3b641){_0x42b12b['push'](_0x42b12b['shift']());}};_0x148928(++_0xd72295);}(_0xd722,0x17c));const _0x1489=function(_0x42b12b,_0xd72295){_0x42b12b=_0x42b12b-0x0;let _0x148928=_0xd722[_0x42b12b];return _0x148928;};import{Plugin as _0x1193d6}from'ckeditor5/src/core';export default class Dt extends _0x1193d6{[_0x1489('0x2')](){const _0x25d807=this['editor'],_0x8f16bf=_0x25d807[_0x1489('0x0')][_0x1489('0x4')](_0x1489('0x8'));_0x25d807[_0x1489('0x0')][_0x1489('0x6')](_0x1489('0x7'))&&(_0x8f16bf[_0x1489('0x5')](_0x1489('0x3')),_0x8f16bf[_0x1489('0x5')](_0x1489('0x1')));}}
23
+ const _0x11ae=['UndoEditing','has','afterInit','get','TrackChangesEditing','enableCommand','plugins'];(function(_0x9d5493,_0x11aef9){const _0x348de4=function(_0x3edd43){while(--_0x3edd43){_0x9d5493['push'](_0x9d5493['shift']());}};_0x348de4(++_0x11aef9);}(_0x11ae,0x8d));const _0x348d=function(_0x9d5493,_0x11aef9){_0x9d5493=_0x9d5493-0x0;let _0x348de4=_0x11ae[_0x9d5493];return _0x348de4;};import{Plugin as _0x2996e2}from'ckeditor5/src/core';export default class Dt extends _0x2996e2{[_0x348d('0x1')](){const _0x531819=this['editor'],_0x3de4a8=_0x531819[_0x348d('0x5')][_0x348d('0x2')](_0x348d('0x3'));_0x531819[_0x348d('0x5')][_0x348d('0x0')](_0x348d('0x6'))&&(_0x3de4a8[_0x348d('0x4')]('undo'),_0x3de4a8[_0x348d('0x4')]('redo'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3447=['markerName','getItems','isAtEnd','ck-suggestion-marker-','nextSibling','toViewElement','isLimit','writer','previousPosition','hasAttribute','includes','addHighlight','isContent','addClass','name','item','getCustomProperty','mapper','markerRange','push','elementEnd','listItem','getAttribute','get','span','TrackChangesEditing','createUIElement','plugins','start','model','test','schema','consumable','toViewPosition','element','ck-suggestion-marker--active','createRangeOn','getWalker'];(function(_0x3aac09,_0x344783){const _0x411c77=function(_0x198acb){while(--_0x198acb){_0x3aac09['push'](_0x3aac09['shift']());}};_0x411c77(++_0x344783);}(_0x3447,0x73));const _0x411c=function(_0x3aac09,_0x344783){_0x3aac09=_0x3aac09-0x0;let _0x411c77=_0x3447[_0x3aac09];return _0x411c77;};export function getRangesWithAttribute(_0x410304,_0x577808,_0x2ad600){const _0x4a9da2=[];for(const _0x5a95d8 of _0x577808[_0x411c('0x0')]())_0x5a95d8[_0x411c('0x8')](_0x410304)&&_0x4a9da2[_0x411c('0x12')](_0x2ad600[_0x411c('0x23')](_0x5a95d8));return _0x4a9da2;}export function getElementsAffectedByListItemRename(_0xe289d6){const _0xd72603=[];if(_0xe289d6['is'](_0x411c('0x21'),'listItem')){let _0x28eef6=_0xe289d6[_0x411c('0x3')];for(;_0x28eef6&&_0x28eef6['is']('element',_0x411c('0x14'))&&_0x28eef6[_0x411c('0x15')]('listIndent')>0x0;)_0xd72603[_0x411c('0x12')](_0x28eef6),_0x28eef6=_0x28eef6[_0x411c('0x3')];}return _0xd72603;}export function downcastSplitMergeMarker(_0x56fe95,_0x4c675c,{showActiveMarker:_0x3ebd1e=!0x0}={}){const _0x498b78=_0x56fe95[_0x411c('0x1a')][_0x411c('0x16')](_0x411c('0x18'));return(_0x320e0a,_0x35e5f4,_0x2260f7)=>{if(!_0x2260f7[_0x411c('0x1f')][_0x411c('0x1d')](_0x35e5f4[_0x411c('0x11')],_0x320e0a[_0x411c('0xd')]))return;const _0x194565=_0x35e5f4['markerRange'][_0x411c('0x24')](),_0x245a25=_0x35e5f4['markerRange'][_0x411c('0x1b')],_0x4493d7=_0x56fe95[_0x411c('0x1c')][_0x411c('0x1e')];let _0x23faf2=null,_0x42bdc4=null,_0x4d144f=!0x1,_0xa52ac9=!0x1;for(const _0x2beede of _0x194565){const _0x4f7acb=_0x2beede[_0x411c('0xe')];_0x4d144f=_0x4d144f||_0x4493d7[_0x411c('0xb')](_0x4f7acb);const _0x3648a5=_0x2260f7['mapper'][_0x411c('0x4')](_0x4f7acb);if(_0x3648a5&&_0x3648a5[_0x411c('0xf')](_0x411c('0xa')))return;_0x411c('0x13')==_0x2beede['type']&&(_0x4493d7['isBlock'](_0x4f7acb)&&!_0x4493d7[_0x411c('0x5')](_0x4f7acb)&&(_0x4f7acb[_0x411c('0x3')]||_0x245a25[_0x411c('0x1')]?_0x23faf2&&_0x23faf2['parent']==_0x4f7acb||(_0x23faf2=_0x4f7acb,_0x181115(_0x2beede[_0x411c('0x7')]),_0xa52ac9=!0x0):_0x42bdc4=_0x42bdc4||_0x2beede['previousPosition']));}function _0x181115(_0x3e917f){const _0x588a20=_0x2260f7['writer'][_0x411c('0x19')](_0x411c('0x17'),{'class':_0x411c('0x2')+_0x4c675c}),_0x1d68a7=_0x2260f7[_0x411c('0x10')][_0x411c('0x20')](_0x3e917f);_0x3ebd1e&&_0x498b78['activeMarkers'][_0x411c('0x9')](_0x35e5f4[_0x411c('0x25')])&&_0x2260f7[_0x411c('0x6')][_0x411c('0xc')](_0x411c('0x22'),_0x588a20),_0x2260f7[_0x411c('0x6')]['insert'](_0x1d68a7,_0x588a20),_0x2260f7[_0x411c('0x10')]['bindElementToMarker'](_0x588a20,_0x35e5f4[_0x411c('0x25')]);}_0x4d144f||_0xa52ac9||!_0x42bdc4||_0x181115(_0x42bdc4);};}
23
+ const _0x4a07=['name','element','plugins','mapper','hasAttribute','toViewPosition','nextSibling','listIndent','previousPosition','addHighlight','span','createRangeOn','test','isLimit','isBlock','type','getCustomProperty','markerRange','start','getWalker','toViewElement','listItem','item','markerName','isAtEnd','includes','push','writer','model','ck-suggestion-marker--active','isContent','bindElementToMarker','getItems','schema','getAttribute','TrackChangesEditing'];(function(_0x1f2873,_0x4a079b){const _0x579380=function(_0x31cbb5){while(--_0x31cbb5){_0x1f2873['push'](_0x1f2873['shift']());}};_0x579380(++_0x4a079b);}(_0x4a07,0xe6));const _0x5793=function(_0x1f2873,_0x4a079b){_0x1f2873=_0x1f2873-0x0;let _0x579380=_0x4a07[_0x1f2873];return _0x579380;};export function getRangesWithAttribute(_0x22ce5b,_0x19acfb,_0x111fb8){const _0x295222=[];for(const _0x26a814 of _0x19acfb[_0x5793('0x12')]())_0x26a814[_0x5793('0x1a')](_0x22ce5b)&&_0x295222['push'](_0x111fb8[_0x5793('0x21')](_0x26a814));return _0x295222;}export function getElementsAffectedByListItemRename(_0x4059b3){const _0x83a4b1=[];if(_0x4059b3['is'](_0x5793('0x17'),_0x5793('0x7'))){let _0x4b64e0=_0x4059b3[_0x5793('0x1c')];for(;_0x4b64e0&&_0x4b64e0['is'](_0x5793('0x17'),_0x5793('0x7'))&&_0x4b64e0[_0x5793('0x14')](_0x5793('0x1d'))>0x0;)_0x83a4b1[_0x5793('0xc')](_0x4b64e0),_0x4b64e0=_0x4b64e0[_0x5793('0x1c')];}return _0x83a4b1;}export function downcastSplitMergeMarker(_0xa5851a,_0x5acf55,{showActiveMarker:_0x25c626=!0x0}={}){const _0x266d5d=_0xa5851a[_0x5793('0x18')]['get'](_0x5793('0x15'));return(_0x18681f,_0x5bdfd9,_0xb9d42c)=>{if(!_0xb9d42c['consumable'][_0x5793('0x22')](_0x5bdfd9['markerRange'],_0x18681f[_0x5793('0x16')]))return;const _0x1ac9fa=_0x5bdfd9['markerRange'][_0x5793('0x5')](),_0x439e38=_0x5bdfd9[_0x5793('0x3')][_0x5793('0x4')],_0x1b30c3=_0xa5851a[_0x5793('0xe')][_0x5793('0x13')];let _0x461cd9=null,_0x2a22dd=null,_0x350eb6=!0x1,_0x3ed2be=!0x1;for(const _0x2e0870 of _0x1ac9fa){const _0x42166e=_0x2e0870[_0x5793('0x8')];_0x350eb6=_0x350eb6||_0x1b30c3[_0x5793('0x10')](_0x42166e);const _0x75f0d8=_0xb9d42c[_0x5793('0x19')][_0x5793('0x6')](_0x42166e);if(_0x75f0d8&&_0x75f0d8[_0x5793('0x2')](_0x5793('0x1f')))return;'elementEnd'==_0x2e0870[_0x5793('0x1')]&&(_0x1b30c3[_0x5793('0x0')](_0x42166e)&&!_0x1b30c3[_0x5793('0x23')](_0x42166e)&&(_0x42166e[_0x5793('0x1c')]||_0x439e38[_0x5793('0xa')]?_0x461cd9&&_0x461cd9['parent']==_0x42166e||(_0x461cd9=_0x42166e,_0x52da69(_0x2e0870['previousPosition']),_0x3ed2be=!0x0):_0x2a22dd=_0x2a22dd||_0x2e0870[_0x5793('0x1e')]));}function _0x52da69(_0x573c27){const _0x9d81db=_0xb9d42c[_0x5793('0xd')]['createUIElement'](_0x5793('0x20'),{'class':'ck-suggestion-marker-'+_0x5acf55}),_0x242d15=_0xb9d42c[_0x5793('0x19')][_0x5793('0x1b')](_0x573c27);_0x25c626&&_0x266d5d['activeMarkers'][_0x5793('0xb')](_0x5bdfd9[_0x5793('0x9')])&&_0xb9d42c[_0x5793('0xd')]['addClass'](_0x5793('0xf'),_0x9d81db),_0xb9d42c['writer']['insert'](_0x242d15,_0x9d81db),_0xb9d42c[_0x5793('0x19')][_0x5793('0x11')](_0x9d81db,_0x5bdfd9[_0x5793('0x9')]);}_0x350eb6||_0x3ed2be||!_0x2a22dd||_0x52da69(_0x2a22dd);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3723=['removeMarkers','attributes','subType','_model','previous','clear','nodeAfter','decorate','author','isExternal','_saved','discard','_onAccept','removeMarker','hasComments','getAllAdjacentSuggestions','getFirstRange','accept','substr','data','getMultiRangeId','removeAttribute','_onDiscard','change','addMarkerName','setAttribute','getMarkers','markers','next','end','onAccept','_markerNames','getItems','toJSON','split','from','head','type','creator','reduce','delete','isIntersecting','get','_onAttributesChange','push','add','getFirstMarker','_isDataLoaded','nodeBefore','commentThread','map','authoredAt','set','suggestion:','size','addMarker','onDiscard','isMultiRange','createdAt','@external','getRanges','onAttributesChange','isInContent','start','getContainedElement','getMarkerNames','length'];(function(_0x28cd48,_0x3723c9){const _0x2ad545=function(_0x329e8c){while(--_0x329e8c){_0x28cd48['push'](_0x28cd48['shift']());}};_0x2ad545(++_0x3723c9);}(_0x3723,0x10f));const _0x2ad5=function(_0x28cd48,_0x3723c9){_0x28cd48=_0x28cd48-0x0;let _0x2ad545=_0x3723[_0x28cd48];return _0x2ad545;};import{Element as _0x5a33b2}from'ckeditor5/src/engine';import{ObservableMixin as _0x2f1864,uid as _0x33c7ae}from'ckeditor5/src/utils';import{cloneDeep as _0xa789,isEqual as _0x1fb2f5,set as _0x5968ec,unset as _0x36afa8}from'lodash-es';export default class u extends _0x2f1864(){constructor(_0x1190e6,_0x27e8e9){super(),this[_0x2ad5('0x2c')]=!0x1,this['id']=_0x27e8e9['id'],this['type']=_0x27e8e9['type'],this[_0x2ad5('0x42')]=_0x27e8e9['subType']||null,this[_0x2ad5('0x5')]=_0x27e8e9[_0x2ad5('0x5')],this[_0x2ad5('0x23')]=_0x27e8e9[_0x2ad5('0x23')]||_0x27e8e9[_0x2ad5('0x5')],this[_0x2ad5('0x6')]=Boolean(_0x27e8e9[_0x2ad5('0x41')]&&_0x27e8e9[_0x2ad5('0x41')][_0x2ad5('0x38')]),this[_0x2ad5('0x10')]=null,this[_0x2ad5('0x0')]=_0x1190e6,this[_0x2ad5('0x9')]=_0x27e8e9[_0x2ad5('0x1b')],this[_0x2ad5('0x13')]=_0x27e8e9[_0x2ad5('0x35')],this[_0x2ad5('0x28')]=_0x27e8e9[_0x2ad5('0x3a')],this[_0x2ad5('0x1c')]=new Set(),this['createdAt']=null,this[_0x2ad5('0x31')](_0x2ad5('0x30'),null),this['set'](_0x2ad5('0x41'),_0x27e8e9[_0x2ad5('0x41')]||{}),this['set'](_0x2ad5('0x1'),null),this['set'](_0x2ad5('0x19'),null),this['set']('commentThread',null),this[_0x2ad5('0x31')](_0x2ad5('0x7'),!0x1),this[_0x2ad5('0x4')](_0x2ad5('0xe')),this[_0x2ad5('0x4')](_0x2ad5('0x8'));}get[_0x2ad5('0x21')](){let _0x3b5c4a=this;for(;_0x3b5c4a[_0x2ad5('0x1')];)_0x3b5c4a=_0x3b5c4a[_0x2ad5('0x1')];return _0x3b5c4a;}get[_0x2ad5('0xb')](){return!!this[_0x2ad5('0x2e')]&&this[_0x2ad5('0x2e')][_0x2ad5('0x3f')]>0x0;}get[_0x2ad5('0x36')](){if(0x0==this['_markerNames'][_0x2ad5('0x33')])return!0x1;return 0x6==Array[_0x2ad5('0x20')](this[_0x2ad5('0x1c')])[0x0][_0x2ad5('0x1f')](':')['length'];}get[_0x2ad5('0x3b')](){return null!==this[_0x2ad5('0x2b')]();}[_0x2ad5('0x15')](_0x2dad5c){this['_markerNames'][_0x2ad5('0x2a')](_0x2dad5c);}[_0x2ad5('0x3e')](){return Array[_0x2ad5('0x20')](this['_markerNames']);}[_0x2ad5('0x17')](){return this[_0x2ad5('0x3e')]()[_0x2ad5('0x2f')](_0x19a08c=>this[_0x2ad5('0x0')][_0x2ad5('0x18')][_0x2ad5('0x27')](_0x19a08c))['filter'](_0x5c7d1f=>_0x5c7d1f);}[_0x2ad5('0x2b')](){return this[_0x2ad5('0x17')]()[0x0]||null;}[_0x2ad5('0x40')](){this[_0x2ad5('0x0')][_0x2ad5('0x14')](_0xcd0c5=>{for(const _0x2152ed of this['getMarkers']())_0xcd0c5[_0x2ad5('0xa')](_0x2152ed);}),this[_0x2ad5('0x1c')][_0x2ad5('0x2')]();}[_0x2ad5('0xa')](_0x2285ee){this['_model'][_0x2ad5('0x14')](_0xdb6b9=>{_0xdb6b9[_0x2ad5('0xa')](_0x2285ee);}),this['_markerNames'][_0x2ad5('0x25')](_0x2285ee);}['addRange'](_0x4528bc){const _0x1ecb0e=_0x2ad5('0x32')+this[_0x2ad5('0x22')]+':'+this['subType']+':'+this['id']+':'+this[_0x2ad5('0x23')]['id']+':'+u[_0x2ad5('0x11')]();this[_0x2ad5('0x15')](_0x1ecb0e),this[_0x2ad5('0x0')][_0x2ad5('0x14')](_0x4275e4=>{_0x4275e4[_0x2ad5('0x34')](_0x1ecb0e,{'range':_0x4528bc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4e288a){for(const _0x5df0ce of this[_0x2ad5('0x39')]())if(_0x5df0ce[_0x2ad5('0x26')](_0x4e288a))return!0x0;return!0x1;}[_0x2ad5('0x39')](){return this[_0x2ad5('0x17')]()[_0x2ad5('0x2f')](_0x1f3d68=>_0x1f3d68['getRange']());}[_0x2ad5('0x1d')](){return this[_0x2ad5('0x39')]()[_0x2ad5('0x24')]((_0x570d75,_0x367441)=>[..._0x570d75,..._0x367441[_0x2ad5('0x1d')]()],[]);}[_0x2ad5('0xd')](){var _0x3f568d;return(null===(_0x3f568d=this['getFirstMarker']())||void 0x0===_0x3f568d?void 0x0:_0x3f568d['getRange']())||null;}[_0x2ad5('0x3d')](){const _0x178ba2=this['getRanges']();if(0x1!=_0x178ba2[_0x2ad5('0x3f')])return null;const _0x64412e=_0x178ba2[0x0],_0x4e3cab=_0x64412e[_0x2ad5('0x3c')][_0x2ad5('0x3')],_0x2b2c1f=_0x64412e[_0x2ad5('0x1a')][_0x2ad5('0x2d')];return _0x4e3cab instanceof _0x5a33b2?_0x4e3cab!=_0x2b2c1f?null:_0x4e3cab:null;}[_0x2ad5('0xe')](){this[_0x2ad5('0x9')](this[_0x2ad5('0x39')](),this['data'],this[_0x2ad5('0x41')]),this[_0x2ad5('0x40')]();}['discard'](){this[_0x2ad5('0x13')](this['getRanges'](),this['data'],this[_0x2ad5('0x41')]),this[_0x2ad5('0x40')]();}[_0x2ad5('0xc')](){const _0x2e7df3=[];let _0x35cfcc=this['head'];for(;_0x35cfcc;)_0x2e7df3[_0x2ad5('0x29')](_0x35cfcc),_0x35cfcc=_0x35cfcc[_0x2ad5('0x19')];return _0x2e7df3;}[_0x2ad5('0x16')](_0x955485,_0x3b3657){const _0x12c61e=_0xa789(this['attributes']);_0x5968ec(_0x12c61e,_0x955485,_0x3b3657),_0x1fb2f5(_0x12c61e,this[_0x2ad5('0x41')])||(this[_0x2ad5('0x41')]=_0x12c61e,this[_0x2ad5('0x28')](_0x12c61e));}[_0x2ad5('0x12')](_0x202d6b){const _0x50587b=_0xa789(this[_0x2ad5('0x41')]);_0x36afa8(_0x50587b,_0x202d6b),_0x1fb2f5(_0x50587b,this[_0x2ad5('0x41')])||(this[_0x2ad5('0x41')]=_0x50587b,this['_onAttributesChange'](this[_0x2ad5('0x41')]));}[_0x2ad5('0x1e')](){return{'id':this['id'],'type':this[_0x2ad5('0x42')]?this[_0x2ad5('0x22')]+':'+this[_0x2ad5('0x42')]:this[_0x2ad5('0x22')],'authorId':this[_0x2ad5('0x23')]['id'],'createdAt':this[_0x2ad5('0x37')],'hasComments':this[_0x2ad5('0xb')],'data':this[_0x2ad5('0x10')],'attributes':this[_0x2ad5('0x41')]};}static[_0x2ad5('0x11')](){return _0x33c7ae()[_0x2ad5('0xf')](0x1,0x5);}}
23
+ const _0x3b3a=['isMultiRange','set','suggestion:','type','add','size','discard','_model','createdAt','clear','getRange','getMultiRangeId','start','_onAccept','isIntersectingWithRange','nodeBefore','onDiscard','creator','next','_saved','previous','accept','getRanges','addRange','@external','data','removeMarkers','getMarkerNames','getItems','_markerNames','attributes','subType','commentThread','isExternal','addMarkerName','from','authoredAt','setAttribute','getFirstMarker','onAccept','push','delete','substr','getMarkers','removeMarker','length','markers','isInContent','decorate','getFirstRange','_onAttributesChange','change','head','hasComments','author','_onDiscard','map'];(function(_0x517536,_0x3b3a3b){const _0x40e5e2=function(_0x227f55){while(--_0x227f55){_0x517536['push'](_0x517536['shift']());}};_0x40e5e2(++_0x3b3a3b);}(_0x3b3a,0x1ba));const _0x40e5=function(_0x517536,_0x3b3a3b){_0x517536=_0x517536-0x0;let _0x40e5e2=_0x3b3a[_0x517536];return _0x40e5e2;};import{Element as _0x2cbdb4}from'ckeditor5/src/engine';import{ObservableMixin as _0x3b0e51,uid as _0x97d0bd}from'ckeditor5/src/utils';import{cloneDeep as _0x2fd5d0,isEqual as _0x546737,set as _0x2cc105,unset as _0x46d823}from'lodash-es';export default class u extends _0x3b0e51(){constructor(_0x424622,_0x4c53a5){super(),this['_isDataLoaded']=!0x1,this['id']=_0x4c53a5['id'],this[_0x40e5('0x11')]=_0x4c53a5[_0x40e5('0x11')],this[_0x40e5('0x2d')]=_0x4c53a5[_0x40e5('0x2d')]||null,this['author']=_0x4c53a5[_0x40e5('0xb')],this[_0x40e5('0x1f')]=_0x4c53a5['creator']||_0x4c53a5['author'],this[_0x40e5('0x2f')]=Boolean(_0x4c53a5[_0x40e5('0x2c')]&&_0x4c53a5[_0x40e5('0x2c')][_0x40e5('0x26')]),this['data']=null,this[_0x40e5('0x15')]=_0x424622,this[_0x40e5('0x1b')]=_0x4c53a5[_0x40e5('0x35')],this[_0x40e5('0xc')]=_0x4c53a5[_0x40e5('0x1e')],this[_0x40e5('0x7')]=_0x4c53a5['onAttributesChange'],this[_0x40e5('0x2b')]=new Set(),this[_0x40e5('0x16')]=null,this['set'](_0x40e5('0x32'),null),this[_0x40e5('0xf')](_0x40e5('0x2c'),_0x4c53a5[_0x40e5('0x2c')]||{}),this['set'](_0x40e5('0x22'),null),this[_0x40e5('0xf')](_0x40e5('0x20'),null),this['set'](_0x40e5('0x2e'),null),this['set'](_0x40e5('0x21'),!0x1),this[_0x40e5('0x5')](_0x40e5('0x23')),this['decorate']('discard');}get['head'](){let _0x3ef0cd=this;for(;_0x3ef0cd['previous'];)_0x3ef0cd=_0x3ef0cd[_0x40e5('0x22')];return _0x3ef0cd;}get[_0x40e5('0xa')](){return!!this[_0x40e5('0x2e')]&&this[_0x40e5('0x2e')]['length']>0x0;}get[_0x40e5('0xe')](){if(0x0==this['_markerNames'][_0x40e5('0x13')])return!0x1;return 0x6==Array[_0x40e5('0x31')](this['_markerNames'])[0x0]['split'](':')[_0x40e5('0x2')];}get[_0x40e5('0x4')](){return null!==this['getFirstMarker']();}[_0x40e5('0x30')](_0x3eb817){this[_0x40e5('0x2b')][_0x40e5('0x12')](_0x3eb817);}[_0x40e5('0x29')](){return Array[_0x40e5('0x31')](this[_0x40e5('0x2b')]);}[_0x40e5('0x0')](){return this[_0x40e5('0x29')]()[_0x40e5('0xd')](_0x369cca=>this[_0x40e5('0x15')][_0x40e5('0x3')]['get'](_0x369cca))['filter'](_0x4e6d40=>_0x4e6d40);}[_0x40e5('0x34')](){return this[_0x40e5('0x0')]()[0x0]||null;}[_0x40e5('0x28')](){this[_0x40e5('0x15')][_0x40e5('0x8')](_0x4397c7=>{for(const _0x3ac11a of this['getMarkers']())_0x4397c7[_0x40e5('0x1')](_0x3ac11a);}),this[_0x40e5('0x2b')][_0x40e5('0x17')]();}[_0x40e5('0x1')](_0x5d7f11){this[_0x40e5('0x15')][_0x40e5('0x8')](_0xff4018=>{_0xff4018[_0x40e5('0x1')](_0x5d7f11);}),this[_0x40e5('0x2b')][_0x40e5('0x37')](_0x5d7f11);}[_0x40e5('0x25')](_0x5de1b8){const _0x27d613=_0x40e5('0x10')+this[_0x40e5('0x11')]+':'+this[_0x40e5('0x2d')]+':'+this['id']+':'+this[_0x40e5('0x1f')]['id']+':'+u[_0x40e5('0x19')]();this[_0x40e5('0x30')](_0x27d613),this['_model'][_0x40e5('0x8')](_0x4f309e=>{_0x4f309e['addMarker'](_0x27d613,{'range':_0x5de1b8,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x40e5('0x1c')](_0x4665b6){for(const _0x5814b2 of this[_0x40e5('0x24')]())if(_0x5814b2['isIntersecting'](_0x4665b6))return!0x0;return!0x1;}[_0x40e5('0x24')](){return this[_0x40e5('0x0')]()[_0x40e5('0xd')](_0x310b8a=>_0x310b8a[_0x40e5('0x18')]());}['getItems'](){return this[_0x40e5('0x24')]()['reduce']((_0x133a4d,_0x6a1d97)=>[..._0x133a4d,..._0x6a1d97[_0x40e5('0x2a')]()],[]);}[_0x40e5('0x6')](){var _0x340763;return(null===(_0x340763=this[_0x40e5('0x34')]())||void 0x0===_0x340763?void 0x0:_0x340763[_0x40e5('0x18')]())||null;}['getContainedElement'](){const _0x2e0f37=this['getRanges']();if(0x1!=_0x2e0f37[_0x40e5('0x2')])return null;const _0x4f4b58=_0x2e0f37[0x0],_0x5b9362=_0x4f4b58[_0x40e5('0x1a')]['nodeAfter'],_0x1529a7=_0x4f4b58['end'][_0x40e5('0x1d')];return _0x5b9362 instanceof _0x2cbdb4?_0x5b9362!=_0x1529a7?null:_0x5b9362:null;}[_0x40e5('0x23')](){this[_0x40e5('0x1b')](this['getRanges'](),this[_0x40e5('0x27')],this['attributes']),this[_0x40e5('0x28')]();}[_0x40e5('0x14')](){this[_0x40e5('0xc')](this[_0x40e5('0x24')](),this[_0x40e5('0x27')],this[_0x40e5('0x2c')]),this[_0x40e5('0x28')]();}['getAllAdjacentSuggestions'](){const _0x347616=[];let _0x58d81b=this[_0x40e5('0x9')];for(;_0x58d81b;)_0x347616[_0x40e5('0x36')](_0x58d81b),_0x58d81b=_0x58d81b[_0x40e5('0x20')];return _0x347616;}[_0x40e5('0x33')](_0x171729,_0x5b75d6){const _0xc0d509=_0x2fd5d0(this['attributes']);_0x2cc105(_0xc0d509,_0x171729,_0x5b75d6),_0x546737(_0xc0d509,this[_0x40e5('0x2c')])||(this[_0x40e5('0x2c')]=_0xc0d509,this[_0x40e5('0x7')](_0xc0d509));}['removeAttribute'](_0x548980){const _0x5a3b54=_0x2fd5d0(this[_0x40e5('0x2c')]);_0x46d823(_0x5a3b54,_0x548980),_0x546737(_0x5a3b54,this[_0x40e5('0x2c')])||(this['attributes']=_0x5a3b54,this[_0x40e5('0x7')](this[_0x40e5('0x2c')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x40e5('0x2d')]?this['type']+':'+this[_0x40e5('0x2d')]:this[_0x40e5('0x11')],'authorId':this['creator']['id'],'createdAt':this[_0x40e5('0x16')],'hasComments':this[_0x40e5('0xa')],'data':this[_0x40e5('0x27')],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x97d0bd()[_0x40e5('0x38')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46cc=['replace','addObject','newValue','type','addContainer','insertion','isEqual','matchingCallback','isObject','add','_itemLabels','match','elementStart','nodeAfter','*Remove:*\x20%0','label','text','key','elementEnd','join','format','_attributeLabels','removeFormat','subType','$textProxy','_handleAttributeSuggestionDescription','isEmpty','REPLACE_TEXT','getFirstRange','map','Object','removeObject','getItemLabel','_locale','nextSibling','pop','indexOf','*Merge:*\x20%0','removeContainer','function','_resolveDescriptionItems','*Insert:*\x20%0','_handleInsertRemoveSuggestionDescription','*Change\x20to:*\x20%0','item','name','element','_itemLabelsCallbacks','_schema','EmptyContainer','$1\x20$2','data','registerElementLabel','Container','deletion','softBreak','attribute','remove','_handleCustomCallbackDescription','isInContent','push','length','get','quantity','_handleRenameSuggestionDescription','start','registerAttributeLabel','normal','_addDescriptionItems','set','_customCallbacks','addEmptyContainer','has','addFormat','ELEMENT_SPACE'];(function(_0x225df4,_0x46cc1d){const _0x2577ec=function(_0x392f4d){while(--_0x392f4d){_0x225df4['push'](_0x225df4['shift']());}};_0x2577ec(++_0x46cc1d);}(_0x46cc,0xf4));const _0x2577=function(_0x225df4,_0x46cc1d){_0x225df4=_0x225df4-0x0;let _0x2577ec=_0x46cc[_0x225df4];return _0x2577ec;};import{getTranslation as _0xd1e2b}from'./utils/common-translations';import{priorities as _0x2247ff,insertToPriorityArray as _0x303e1a}from'ckeditor5/src/utils';import{renameAttributeKey as _0x50673f}from'./trackchangesediting';export default class f{constructor(_0x168a73,_0x5eecfb){this[_0x2577('0x33')]=[],this[_0x2577('0x42')]=new Map(),this[_0x2577('0x1c')]=[],this['_attributeLabels']=new Map(),this['_schema']=_0x168a73,this['_locale']=_0x5eecfb;}['getDescriptions'](_0x355ed6){const _0x33ab69=[],_0x1cd37d=new Set(),_0x5157be=new Set();for(let _0x7e0a67=0x0;_0x7e0a67<_0x355ed6['length'];_0x7e0a67++){const _0x4ddd08=_0x355ed6[_0x7e0a67];if(!_0x4ddd08[_0x2577('0x28')])continue;const _0x3cb7c4=this[_0x2577('0x27')](_0x4ddd08);if(_0x3cb7c4){if(null!=_0x4ddd08[_0x2577('0x4')]){if(_0x1cd37d[_0x2577('0x35')](_0x4ddd08['subType']))continue;_0x1cd37d['add'](_0x4ddd08[_0x2577('0x4')]);}_0x33ab69[_0x2577('0x29')](_0x3cb7c4);}else{if(_0x2577('0x25')!=_0x4ddd08['type'])_0x2577('0x3d')!=_0x4ddd08['type']&&'deletion'!=_0x4ddd08[_0x2577('0x3b')]||this[_0x2577('0x17')](_0x33ab69,_0x4ddd08,_0x355ed6[_0x7e0a67+0x1]);else{const _0x25f694=_0x4ddd08[_0x2577('0x20')][_0x2577('0x49')];if(_0x5157be[_0x2577('0x35')](_0x25f694))continue;_0x5157be[_0x2577('0x41')](_0x4ddd08[_0x2577('0x20')]['key']),_0x25f694==_0x50673f?this[_0x2577('0x2d')](_0x33ab69,_0x4ddd08):this[_0x2577('0x6')](_0x33ab69,_0x4ddd08);}}}return this['_resolveDescriptionItems'](_0x33ab69);}['registerDescriptionCallback'](_0x192ed2){this['_customCallbacks'][_0x2577('0x29')](_0x192ed2);}[_0x2577('0x21')](_0x2722aa,_0x47d51b,_0x2308bf=_0x2247ff[_0x2577('0x30')]){_0x2577('0x14')==typeof _0x2722aa?_0x303e1a(this[_0x2577('0x1c')],{'matchingCallback':_0x2722aa,'label':_0x47d51b,'priority':_0x2308bf}):this['_itemLabels']['set'](_0x2722aa,_0x47d51b);}[_0x2577('0x2f')](_0x8a6af9,_0x39396e){this[_0x2577('0x2')][_0x2577('0x32')](_0x8a6af9,_0x39396e);}[_0x2577('0xd')](_0x5ebe47,_0x3a573d=0x1){let _0x33ab1a;for(const _0xef136c of this['_itemLabelsCallbacks'])if(_0xef136c[_0x2577('0x3f')](_0x5ebe47)){_0x33ab1a=_0xef136c[_0x2577('0x47')];break;}return _0x33ab1a||(_0x33ab1a=this[_0x2577('0x42')][_0x2577('0x2b')](_0x5ebe47[_0x2577('0x1a')])),_0x33ab1a?_0x33ab1a(_0x3a573d):0x1!==_0x3a573d?_0x3a573d+'\x20'+_0x5ebe47[_0x2577('0x1a')]+'s':''+_0x5ebe47[_0x2577('0x1a')];}[_0x2577('0x31')](_0x1a47a7,_0x3b5cfb){const _0x122c33=_0x3b5cfb['getFirstRange']()['getWalker'](),_0x5a8ea0=_0x2577('0x3d')==_0x3b5cfb[_0x2577('0x3b')]?_0x2577('0x41'):_0x2577('0x26');for(const _0x6aa0db of _0x122c33){const _0x58a407=_0x6aa0db[_0x2577('0x19')],_0x16c594=_0x1a47a7[_0x1a47a7[_0x2577('0x2a')]-0x1];if(_0x58a407['is'](_0x2577('0x5')))_0x16c594&&_0x16c594[_0x2577('0x3b')][_0x2577('0x11')]('Container')>-0x1&&_0x1a47a7[_0x2577('0x10')](),_0x16c594&&_0x2577('0x48')==_0x16c594[_0x2577('0x3b')]?_0x16c594[_0x5a8ea0]+=_0x58a407[_0x2577('0x20')]:_0x1a47a7[_0x2577('0x29')]({'type':_0x2577('0x48'),'add':_0x2577('0x41')==_0x5a8ea0?_0x58a407[_0x2577('0x20')]:'','remove':_0x2577('0x26')==_0x5a8ea0?_0x58a407['data']:''});else{if(this['_schema'][_0x2577('0x40')](_0x58a407)){const _0x108f63=_0x58a407;if(_0x16c594&&_0x16c594['type']['indexOf'](_0x2577('0x22'))>-0x1&&_0x1a47a7[_0x2577('0x10')](),_0x2577('0x4a')==_0x6aa0db[_0x2577('0x3b')])continue;_0x16c594&&_0x16c594['type']==_0x5a8ea0+'Object'&&_0x16c594[_0x2577('0x1b')][_0x2577('0x1a')]==_0x108f63[_0x2577('0x1a')]?_0x16c594[_0x2577('0x2c')]++:_0x1a47a7[_0x2577('0x29')]({'type':_0x5a8ea0+_0x2577('0xb'),'element':_0x108f63,'quantity':0x1}),_0x122c33['skip'](_0x134293=>!(_0x2577('0x4a')==_0x134293[_0x2577('0x3b')]&&_0x134293[_0x2577('0x19')]==_0x58a407));}else{if(this[_0x2577('0x1d')]['checkChild'](_0x58a407,'$text')||_0x58a407['is'](_0x2577('0x1b'),_0x2577('0x24'))){const _0x14d7b1=_0x58a407;if(_0x2577('0x41')==_0x5a8ea0&&_0x2577('0x44')==_0x6aa0db[_0x2577('0x3b')]||'remove'==_0x5a8ea0&&_0x2577('0x4a')==_0x6aa0db[_0x2577('0x3b')])continue;if(_0x16c594&&-0x1==_0x16c594[_0x2577('0x3b')][_0x2577('0x11')](_0x2577('0x22'))){_0x2577('0x48')==_0x16c594[_0x2577('0x3b')]&&(_0x16c594[_0x5a8ea0]+='\x0a');continue;}let _0x1868c6;if(_0x1868c6=_0x2577('0x41')==_0x5a8ea0?_0x14d7b1['nextSibling']&&!this[_0x2577('0x1d')][_0x2577('0x40')](_0x14d7b1[_0x2577('0xf')])?_0x14d7b1[_0x2577('0xf')]:null:_0x14d7b1['previousSibling']&&!this[_0x2577('0x1d')][_0x2577('0x40')](_0x14d7b1['previousSibling'])?_0x14d7b1['previousSibling']:null,_0x14d7b1[_0x2577('0x7')]||_0x1868c6&&_0x1868c6[_0x2577('0x7')]){const _0x347a6e=_0x1868c6&&_0x1868c6[_0x2577('0x7')]?_0x1868c6:_0x14d7b1;_0x16c594&&_0x16c594['type']==_0x5a8ea0+_0x2577('0x1e')&&_0x16c594[_0x2577('0x1b')][_0x2577('0x1a')]==_0x347a6e['name']?_0x16c594[_0x2577('0x2c')]++:_0x1a47a7[_0x2577('0x29')]({'type':_0x5a8ea0+'EmptyContainer','element':_0x347a6e,'quantity':0x1});}else _0x1a47a7[_0x2577('0x29')]({'type':_0x5a8ea0+'Container','element':_0x14d7b1});}}}}}[_0x2577('0x15')](_0x202b79){const _0x43d928=this['_locale'],_0xa9874f=[],_0x3f1a7c=[],_0x299c0b=[];for(const _0x39caa5 of _0x202b79)switch(_0x39caa5[_0x2577('0x3b')]){case _0x2577('0x48'):if(_0x39caa5[_0x2577('0x41')]=_0x39caa5['add'][_0x2577('0x38')](/(\S)\u000A+(\S)/g,_0x2577('0x1f'))[_0x2577('0x38')](/\u000A/g,''),_0x39caa5[_0x2577('0x26')]=_0x39caa5[_0x2577('0x26')][_0x2577('0x38')](/(\S)\u000A+(\S)/g,_0x2577('0x1f'))[_0x2577('0x38')](/\u000A/g,''),''!=_0x39caa5[_0x2577('0x41')]&&''!=_0x39caa5[_0x2577('0x26')]){_0xa9874f['push']({'type':_0x2577('0x38'),'content':_0xd1e2b(_0x43d928,_0x2577('0x8'),['\x22'+_0x39caa5[_0x2577('0x26')]+'\x22','\x22'+_0x39caa5['add']+'\x22'])});continue;}if(null!=_0x39caa5[_0x2577('0x41')][_0x2577('0x43')](/^ +$/)){_0xa9874f[_0x2577('0x29')]({'type':'insertion','content':_0xd1e2b(_0x43d928,_0x2577('0x16'),_0xd1e2b(_0x43d928,_0x2577('0x37'),_0x39caa5[_0x2577('0x41')][_0x2577('0x2a')]))});continue;}if(null!=_0x39caa5['remove']['match'](/^ +$/)){_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x23'),'content':_0xd1e2b(_0x43d928,_0x2577('0x46'),_0xd1e2b(_0x43d928,_0x2577('0x37'),_0x39caa5['remove'][_0x2577('0x2a')]))});continue;}if(''!=_0x39caa5[_0x2577('0x41')]){_0xa9874f['push']({'type':_0x2577('0x3d'),'content':_0xd1e2b(_0x43d928,_0x2577('0x16'),'\x22'+_0x39caa5[_0x2577('0x41')]+'\x22')});continue;}_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x23'),'content':_0xd1e2b(_0x43d928,_0x2577('0x46'),'\x22'+_0x39caa5[_0x2577('0x26')]+'\x22')});continue;case _0x2577('0x34'):case _0x2577('0x39'):_0xa9874f['push']({'type':_0x2577('0x3d'),'content':_0xd1e2b(_0x43d928,_0x2577('0x16'),this[_0x2577('0xd')](_0x39caa5[_0x2577('0x1b')],_0x39caa5[_0x2577('0x2c')]))});continue;case'removeEmptyContainer':case _0x2577('0xc'):_0xa9874f['push']({'type':_0x2577('0x23'),'content':_0xd1e2b(_0x43d928,_0x2577('0x46'),this[_0x2577('0xd')](_0x39caa5[_0x2577('0x1b')],_0x39caa5['quantity']))});continue;case _0x2577('0x3c'):_0xa9874f['push']({'type':_0x2577('0x3d'),'content':_0xd1e2b(_0x43d928,'*Split:*\x20%0',this['getItemLabel'](_0x39caa5[_0x2577('0x1b')],_0x39caa5[_0x2577('0x2c')]))});continue;case _0x2577('0x13'):_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x23'),'content':_0xd1e2b(_0x43d928,_0x2577('0x12'),this[_0x2577('0xd')](_0x39caa5[_0x2577('0x1b')],_0x39caa5[_0x2577('0x2c')]))});continue;case'addFormat':_0x3f1a7c[_0x2577('0x29')](_0x39caa5[_0x2577('0x49')]);continue;case _0x2577('0x3'):_0x299c0b[_0x2577('0x29')](_0x39caa5['key']);continue;default:_0xa9874f[_0x2577('0x29')](_0x39caa5);}if(_0x3f1a7c[_0x2577('0x2a')]){const _0x3a102d=_0x3f1a7c[_0x2577('0xa')](_0x3ad743=>this[_0x2577('0x2')]['has'](_0x3ad743)?this[_0x2577('0x2')]['get'](_0x3ad743):_0x3ad743)[_0x2577('0x0')](',\x20');_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x1'),'content':_0xd1e2b(this[_0x2577('0xe')],'*Set\x20format:*\x20%0',_0x3a102d)});}if(_0x299c0b[_0x2577('0x2a')]){const _0x62c932=_0x299c0b[_0x2577('0xa')](_0x1b78c0=>this[_0x2577('0x2')][_0x2577('0x35')](_0x1b78c0)?this[_0x2577('0x2')]['get'](_0x1b78c0):_0x1b78c0)[_0x2577('0x0')](',\x20');_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x1'),'content':_0xd1e2b(this[_0x2577('0xe')],'*Remove\x20format:*\x20%0',_0x62c932)});}return _0xa9874f;}[_0x2577('0x27')](_0x5d5950){for(const _0x124a92 of this[_0x2577('0x33')]){const _0x5bdbb9=_0x124a92(_0x5d5950);if(_0x5bdbb9&&'type'in _0x5bdbb9)return _0x5bdbb9;}}[_0x2577('0x6')](_0x36116a,_0x4f0f8c){const _0x5e9d5c=_0x4f0f8c[_0x2577('0x20')],_0x3aca68=void 0x0===_0x5e9d5c[_0x2577('0x3a')]?'removeFormat':_0x2577('0x36');_0x36116a[_0x2577('0x29')]({'type':_0x3aca68,'key':_0x5e9d5c[_0x2577('0x49')]});}['_handleRenameSuggestionDescription'](_0xbb30a7,_0x4a60bb){_0xbb30a7[_0x2577('0x29')]({'type':_0x2577('0x1'),'content':_0xd1e2b(this[_0x2577('0xe')],_0x2577('0x18'),this[_0x2577('0xd')](_0x4a60bb[_0x2577('0x9')]()[_0x2577('0x2e')][_0x2577('0x45')],0x1))});}[_0x2577('0x17')](_0x329471,_0x1e8329,_0xa364d1){if(this[_0x2577('0x31')](_0x329471,_0x1e8329),_0xa364d1&&_0xa364d1[_0x2577('0x9')]()&&!_0x1e8329['getFirstRange']()['end'][_0x2577('0x3e')](_0xa364d1[_0x2577('0x9')]()[_0x2577('0x2e')])){const _0x34905c=_0x329471[_0x329471[_0x2577('0x2a')]-0x1],_0x328e64=_0x2577('0x3d')==_0x1e8329[_0x2577('0x3b')]?_0x2577('0x41'):_0x2577('0x26');_0x34905c&&_0x2577('0x48')==_0x34905c[_0x2577('0x3b')]&&(_0x34905c[_0x328e64]+='\x0a');}}}
23
+ const _0x2c8a=['function','insertion','has','$textProxy','_handleRenameSuggestionDescription','quantity','*Remove\x20format:*\x20%0','join','element','registerElementLabel','type','removeContainer','REPLACE_TEXT','registerDescriptionCallback','$1\x20$2','match','addFormat','end','normal','_customCallbacks','newValue','pop','previousSibling','length','elementStart','attribute','getItemLabel','data','isObject','removeFormat','_itemLabelsCallbacks','text','_schema','addEmptyContainer','_itemLabels','getFirstRange','ELEMENT_SPACE','push','deletion','remove','key','name','map','skip','set','start','subType','_handleInsertRemoveSuggestionDescription','_handleAttributeSuggestionDescription','isInContent','Container','*Insert:*\x20%0','_handleCustomCallbackDescription','format','Object','_addDescriptionItems','_attributeLabels','add','checkChild','*Split:*\x20%0','EmptyContainer','*Set\x20format:*\x20%0','*Merge:*\x20%0','isEqual','*Remove:*\x20%0','softBreak','isEmpty','nextSibling','$text','replace','_resolveDescriptionItems','elementEnd','_locale','indexOf','item','get'];(function(_0x1ecef7,_0x2c8a6c){const _0x28311d=function(_0x425d7d){while(--_0x425d7d){_0x1ecef7['push'](_0x1ecef7['shift']());}};_0x28311d(++_0x2c8a6c);}(_0x2c8a,0xe5));const _0x2831=function(_0x1ecef7,_0x2c8a6c){_0x1ecef7=_0x1ecef7-0x0;let _0x28311d=_0x2c8a[_0x1ecef7];return _0x28311d;};import{getTranslation as _0xcbaae9}from'./utils/common-translations';import{priorities as _0x20d61b,insertToPriorityArray as _0x5a30de}from'ckeditor5/src/utils';import{renameAttributeKey as _0xd8ad5f}from'./trackchangesediting';export default class f{constructor(_0x55093e,_0x2aac95){this[_0x2831('0x12')]=[],this['_itemLabels']=new Map(),this[_0x2831('0x1d')]=[],this[_0x2831('0x37')]=new Map(),this[_0x2831('0x1f')]=_0x55093e,this['_locale']=_0x2aac95;}['getDescriptions'](_0x224c00){const _0x3b9d50=[],_0x3d3c93=new Set(),_0x358639=new Set();for(let _0x5226af=0x0;_0x5226af<_0x224c00['length'];_0x5226af++){const _0x18e7be=_0x224c00[_0x5226af];if(!_0x18e7be[_0x2831('0x30')])continue;const _0x595f68=this[_0x2831('0x33')](_0x18e7be);if(_0x595f68){if(null!=_0x18e7be[_0x2831('0x2d')]){if(_0x3d3c93['has'](_0x18e7be[_0x2831('0x2d')]))continue;_0x3d3c93[_0x2831('0x38')](_0x18e7be[_0x2831('0x2d')]);}_0x3b9d50[_0x2831('0x24')](_0x595f68);}else{if(_0x2831('0x18')!=_0x18e7be[_0x2831('0x9')])_0x2831('0x0')!=_0x18e7be['type']&&_0x2831('0x25')!=_0x18e7be[_0x2831('0x9')]||this[_0x2831('0x2e')](_0x3b9d50,_0x18e7be,_0x224c00[_0x5226af+0x1]);else{const _0xd132d=_0x18e7be[_0x2831('0x1a')][_0x2831('0x27')];if(_0x358639[_0x2831('0x1')](_0xd132d))continue;_0x358639['add'](_0x18e7be[_0x2831('0x1a')][_0x2831('0x27')]),_0xd132d==_0xd8ad5f?this[_0x2831('0x3')](_0x3b9d50,_0x18e7be):this['_handleAttributeSuggestionDescription'](_0x3b9d50,_0x18e7be);}}}return this[_0x2831('0x45')](_0x3b9d50);}[_0x2831('0xc')](_0x15850d){this['_customCallbacks'][_0x2831('0x24')](_0x15850d);}[_0x2831('0x8')](_0x1c7429,_0x2523f0,_0x24e5b9=_0x20d61b[_0x2831('0x11')]){_0x2831('0x4b')==typeof _0x1c7429?_0x5a30de(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1c7429,'label':_0x2523f0,'priority':_0x24e5b9}):this[_0x2831('0x21')][_0x2831('0x2b')](_0x1c7429,_0x2523f0);}['registerAttributeLabel'](_0x3204bb,_0x489478){this[_0x2831('0x37')]['set'](_0x3204bb,_0x489478);}[_0x2831('0x19')](_0x2471f1,_0x55b7bb=0x1){let _0x203120;for(const _0xd880fe of this[_0x2831('0x1d')])if(_0xd880fe['matchingCallback'](_0x2471f1)){_0x203120=_0xd880fe['label'];break;}return _0x203120||(_0x203120=this[_0x2831('0x21')]['get'](_0x2471f1[_0x2831('0x28')])),_0x203120?_0x203120(_0x55b7bb):0x1!==_0x55b7bb?_0x55b7bb+'\x20'+_0x2471f1[_0x2831('0x28')]+'s':''+_0x2471f1[_0x2831('0x28')];}[_0x2831('0x36')](_0x4aaad4,_0x105aae){const _0x51625f=_0x105aae[_0x2831('0x22')]()['getWalker'](),_0x5f2e17='insertion'==_0x105aae['type']?_0x2831('0x38'):_0x2831('0x26');for(const _0x57d4de of _0x51625f){const _0x53c7a0=_0x57d4de['item'],_0x492a5d=_0x4aaad4[_0x4aaad4[_0x2831('0x16')]-0x1];if(_0x53c7a0['is'](_0x2831('0x2')))_0x492a5d&&_0x492a5d[_0x2831('0x9')][_0x2831('0x48')](_0x2831('0x31'))>-0x1&&_0x4aaad4[_0x2831('0x14')](),_0x492a5d&&_0x2831('0x1e')==_0x492a5d[_0x2831('0x9')]?_0x492a5d[_0x5f2e17]+=_0x53c7a0[_0x2831('0x1a')]:_0x4aaad4[_0x2831('0x24')]({'type':_0x2831('0x1e'),'add':'add'==_0x5f2e17?_0x53c7a0[_0x2831('0x1a')]:'','remove':_0x2831('0x26')==_0x5f2e17?_0x53c7a0['data']:''});else{if(this[_0x2831('0x1f')][_0x2831('0x1b')](_0x53c7a0)){const _0x3329b2=_0x53c7a0;if(_0x492a5d&&_0x492a5d[_0x2831('0x9')]['indexOf']('Container')>-0x1&&_0x4aaad4['pop'](),_0x2831('0x46')==_0x57d4de['type'])continue;_0x492a5d&&_0x492a5d[_0x2831('0x9')]==_0x5f2e17+_0x2831('0x35')&&_0x492a5d[_0x2831('0x7')][_0x2831('0x28')]==_0x3329b2['name']?_0x492a5d[_0x2831('0x4')]++:_0x4aaad4[_0x2831('0x24')]({'type':_0x5f2e17+_0x2831('0x35'),'element':_0x3329b2,'quantity':0x1}),_0x51625f[_0x2831('0x2a')](_0x22aba2=>!(_0x2831('0x46')==_0x22aba2[_0x2831('0x9')]&&_0x22aba2[_0x2831('0x49')]==_0x53c7a0));}else{if(this[_0x2831('0x1f')][_0x2831('0x39')](_0x53c7a0,_0x2831('0x43'))||_0x53c7a0['is']('element',_0x2831('0x40'))){const _0x2aa075=_0x53c7a0;if(_0x2831('0x38')==_0x5f2e17&&_0x2831('0x17')==_0x57d4de['type']||_0x2831('0x26')==_0x5f2e17&&_0x2831('0x46')==_0x57d4de[_0x2831('0x9')])continue;if(_0x492a5d&&-0x1==_0x492a5d['type'][_0x2831('0x48')](_0x2831('0x31'))){'text'==_0x492a5d[_0x2831('0x9')]&&(_0x492a5d[_0x5f2e17]+='\x0a');continue;}let _0xb5387b;if(_0xb5387b='add'==_0x5f2e17?_0x2aa075[_0x2831('0x42')]&&!this[_0x2831('0x1f')][_0x2831('0x1b')](_0x2aa075[_0x2831('0x42')])?_0x2aa075[_0x2831('0x42')]:null:_0x2aa075['previousSibling']&&!this['_schema'][_0x2831('0x1b')](_0x2aa075[_0x2831('0x15')])?_0x2aa075['previousSibling']:null,_0x2aa075[_0x2831('0x41')]||_0xb5387b&&_0xb5387b[_0x2831('0x41')]){const _0x1d3a6d=_0xb5387b&&_0xb5387b[_0x2831('0x41')]?_0xb5387b:_0x2aa075;_0x492a5d&&_0x492a5d[_0x2831('0x9')]==_0x5f2e17+'EmptyContainer'&&_0x492a5d[_0x2831('0x7')]['name']==_0x1d3a6d[_0x2831('0x28')]?_0x492a5d[_0x2831('0x4')]++:_0x4aaad4[_0x2831('0x24')]({'type':_0x5f2e17+_0x2831('0x3b'),'element':_0x1d3a6d,'quantity':0x1});}else _0x4aaad4['push']({'type':_0x5f2e17+'Container','element':_0x2aa075});}}}}}[_0x2831('0x45')](_0x133924){const _0x23f623=this['_locale'],_0x16900c=[],_0x4e9d8f=[],_0x3846b7=[];for(const _0x29583c of _0x133924)switch(_0x29583c[_0x2831('0x9')]){case _0x2831('0x1e'):if(_0x29583c[_0x2831('0x38')]=_0x29583c['add'][_0x2831('0x44')](/(\S)\u000A+(\S)/g,_0x2831('0xd'))[_0x2831('0x44')](/\u000A/g,''),_0x29583c[_0x2831('0x26')]=_0x29583c[_0x2831('0x26')]['replace'](/(\S)\u000A+(\S)/g,_0x2831('0xd'))[_0x2831('0x44')](/\u000A/g,''),''!=_0x29583c[_0x2831('0x38')]&&''!=_0x29583c[_0x2831('0x26')]){_0x16900c[_0x2831('0x24')]({'type':'replace','content':_0xcbaae9(_0x23f623,_0x2831('0xb'),['\x22'+_0x29583c['remove']+'\x22','\x22'+_0x29583c['add']+'\x22'])});continue;}if(null!=_0x29583c[_0x2831('0x38')][_0x2831('0xe')](/^ +$/)){_0x16900c['push']({'type':_0x2831('0x0'),'content':_0xcbaae9(_0x23f623,_0x2831('0x32'),_0xcbaae9(_0x23f623,_0x2831('0x23'),_0x29583c[_0x2831('0x38')][_0x2831('0x16')]))});continue;}if(null!=_0x29583c[_0x2831('0x26')]['match'](/^ +$/)){_0x16900c['push']({'type':'deletion','content':_0xcbaae9(_0x23f623,_0x2831('0x3f'),_0xcbaae9(_0x23f623,_0x2831('0x23'),_0x29583c[_0x2831('0x26')]['length']))});continue;}if(''!=_0x29583c[_0x2831('0x38')]){_0x16900c[_0x2831('0x24')]({'type':_0x2831('0x0'),'content':_0xcbaae9(_0x23f623,_0x2831('0x32'),'\x22'+_0x29583c[_0x2831('0x38')]+'\x22')});continue;}_0x16900c[_0x2831('0x24')]({'type':_0x2831('0x25'),'content':_0xcbaae9(_0x23f623,'*Remove:*\x20%0','\x22'+_0x29583c['remove']+'\x22')});continue;case _0x2831('0x20'):case'addObject':_0x16900c[_0x2831('0x24')]({'type':'insertion','content':_0xcbaae9(_0x23f623,_0x2831('0x32'),this[_0x2831('0x19')](_0x29583c[_0x2831('0x7')],_0x29583c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x16900c[_0x2831('0x24')]({'type':_0x2831('0x25'),'content':_0xcbaae9(_0x23f623,'*Remove:*\x20%0',this[_0x2831('0x19')](_0x29583c[_0x2831('0x7')],_0x29583c[_0x2831('0x4')]))});continue;case'addContainer':_0x16900c[_0x2831('0x24')]({'type':_0x2831('0x0'),'content':_0xcbaae9(_0x23f623,_0x2831('0x3a'),this[_0x2831('0x19')](_0x29583c[_0x2831('0x7')],_0x29583c[_0x2831('0x4')]))});continue;case _0x2831('0xa'):_0x16900c['push']({'type':'deletion','content':_0xcbaae9(_0x23f623,_0x2831('0x3d'),this[_0x2831('0x19')](_0x29583c[_0x2831('0x7')],_0x29583c[_0x2831('0x4')]))});continue;case _0x2831('0xf'):_0x4e9d8f['push'](_0x29583c[_0x2831('0x27')]);continue;case _0x2831('0x1c'):_0x3846b7[_0x2831('0x24')](_0x29583c[_0x2831('0x27')]);continue;default:_0x16900c[_0x2831('0x24')](_0x29583c);}if(_0x4e9d8f['length']){const _0x5c3cdf=_0x4e9d8f[_0x2831('0x29')](_0x3898a5=>this[_0x2831('0x37')][_0x2831('0x1')](_0x3898a5)?this['_attributeLabels'][_0x2831('0x4a')](_0x3898a5):_0x3898a5)[_0x2831('0x6')](',\x20');_0x16900c['push']({'type':'format','content':_0xcbaae9(this[_0x2831('0x47')],_0x2831('0x3c'),_0x5c3cdf)});}if(_0x3846b7[_0x2831('0x16')]){const _0x6f755e=_0x3846b7[_0x2831('0x29')](_0x9a0a04=>this['_attributeLabels'][_0x2831('0x1')](_0x9a0a04)?this['_attributeLabels']['get'](_0x9a0a04):_0x9a0a04)[_0x2831('0x6')](',\x20');_0x16900c['push']({'type':'format','content':_0xcbaae9(this[_0x2831('0x47')],_0x2831('0x5'),_0x6f755e)});}return _0x16900c;}[_0x2831('0x33')](_0x4a9b9a){for(const _0x6b947 of this[_0x2831('0x12')]){const _0x13dbeb=_0x6b947(_0x4a9b9a);if(_0x13dbeb&&_0x2831('0x9')in _0x13dbeb)return _0x13dbeb;}}[_0x2831('0x2f')](_0x1c9ca6,_0x58aec7){const _0x18741b=_0x58aec7[_0x2831('0x1a')],_0x4a9705=void 0x0===_0x18741b[_0x2831('0x13')]?'removeFormat':_0x2831('0xf');_0x1c9ca6[_0x2831('0x24')]({'type':_0x4a9705,'key':_0x18741b['key']});}['_handleRenameSuggestionDescription'](_0x11b7ab,_0x5c802b){_0x11b7ab['push']({'type':_0x2831('0x34'),'content':_0xcbaae9(this['_locale'],'*Change\x20to:*\x20%0',this[_0x2831('0x19')](_0x5c802b[_0x2831('0x22')]()[_0x2831('0x2c')]['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3388c5,_0x3f3131,_0xf28ef4){if(this[_0x2831('0x36')](_0x3388c5,_0x3f3131),_0xf28ef4&&_0xf28ef4[_0x2831('0x22')]()&&!_0x3f3131[_0x2831('0x22')]()[_0x2831('0x10')][_0x2831('0x3e')](_0xf28ef4['getFirstRange']()[_0x2831('0x2c')])){const _0x45fcfd=_0x3388c5[_0x3388c5[_0x2831('0x16')]-0x1],_0x17577e='insertion'==_0x3f3131[_0x2831('0x9')]?'add':'remove';_0x45fcfd&&_0x2831('0x1e')==_0x45fcfd[_0x2831('0x9')]&&(_0x45fcfd[_0x17577e]+='\x0a');}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3f7c=['requires','TrackChanges','get','getSuggestion','plugins','addSuggestion','adapter','editor','pluginName'];(function(_0x21c93b,_0x3f7ce5){var _0x460be3=function(_0x262617){while(--_0x262617){_0x21c93b['push'](_0x21c93b['shift']());}};_0x460be3(++_0x3f7ce5);}(_0x3f7c,0xf2));var _0x460b=function(_0x21c93b,_0x3f7ce5){_0x21c93b=_0x21c93b-0x0;var _0x460be3=_0x3f7c[_0x21c93b];return _0x460be3;};import{Plugin as _0x5adb36}from'ckeditor5/src/core';import _0x4f05fb from'./trackchangesui';import _0x4eb974 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x5adb36{static get[_0x460b('0x1')](){return[_0x4eb974,_0x4f05fb,'Comments'];}static get[_0x460b('0x0')](){return _0x460b('0x2');}set[_0x460b('0x7')](_0x42a31a){this[_0x460b('0x8')][_0x460b('0x5')]['get'](_0x4eb974)[_0x460b('0x7')]=_0x42a31a;}get[_0x460b('0x7')](){return this[_0x460b('0x8')][_0x460b('0x5')][_0x460b('0x3')](_0x4eb974)[_0x460b('0x7')];}[_0x460b('0x6')](_0x5a20f2){return this['editor']['plugins'][_0x460b('0x3')](_0x4eb974)['addSuggestionData'](_0x5a20f2);}['getSuggestions']({skipNotAttached:_0x19391e=!0x1,toJSON:_0x4ca820=!0x1}={}){return this[_0x460b('0x8')][_0x460b('0x5')][_0x460b('0x3')](_0x4eb974)['getSuggestions']({'skipNotAttached':_0x19391e,'toJSON':_0x4ca820});}[_0x460b('0x4')](_0x12fa43){return this[_0x460b('0x8')][_0x460b('0x5')][_0x460b('0x3')](_0x4eb974)[_0x460b('0x4')](_0x12fa43);}}
23
+ var _0x2b8a=['get','editor','plugins','addSuggestion','requires','adapter','getSuggestions','addSuggestionData','Comments','pluginName','getSuggestion'];(function(_0x2d80a5,_0x2b8a0d){var _0x2aa3a7=function(_0x5ee567){while(--_0x5ee567){_0x2d80a5['push'](_0x2d80a5['shift']());}};_0x2aa3a7(++_0x2b8a0d);}(_0x2b8a,0x123));var _0x2aa3=function(_0x2d80a5,_0x2b8a0d){_0x2d80a5=_0x2d80a5-0x0;var _0x2aa3a7=_0x2b8a[_0x2d80a5];return _0x2aa3a7;};import{Plugin as _0x579102}from'ckeditor5/src/core';import _0x29cb9d from'./trackchangesui';import _0x5f4298 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x579102{static get[_0x2aa3('0xa')](){return[_0x5f4298,_0x29cb9d,_0x2aa3('0x3')];}static get[_0x2aa3('0x4')](){return'TrackChanges';}set['adapter'](_0x2c942b){this[_0x2aa3('0x7')]['plugins'][_0x2aa3('0x6')](_0x5f4298)[_0x2aa3('0x0')]=_0x2c942b;}get['adapter'](){return this[_0x2aa3('0x7')][_0x2aa3('0x8')][_0x2aa3('0x6')](_0x5f4298)[_0x2aa3('0x0')];}[_0x2aa3('0x9')](_0xd66863){return this['editor']['plugins'][_0x2aa3('0x6')](_0x5f4298)[_0x2aa3('0x2')](_0xd66863);}[_0x2aa3('0x1')]({skipNotAttached:_0x393443=!0x1,toJSON:_0x4f0fc1=!0x1}={}){return this[_0x2aa3('0x7')][_0x2aa3('0x8')]['get'](_0x5f4298)[_0x2aa3('0x1')]({'skipNotAttached':_0x393443,'toJSON':_0x4f0fc1});}[_0x2aa3('0x5')](_0x20a7e9){return this['editor'][_0x2aa3('0x8')]['get'](_0x5f4298)[_0x2aa3('0x5')](_0x20a7e9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe9f5=['end','map','getRootsAttributes','getDataWithAcceptedSuggestions','get','plugins','editor','getRootNames','document','createElement','_adapter','TrackChangesEditing','pluginName','requires','init','set','div','discardAllSuggestions','reduce','createDocumentFragment','getUser','define','CommentsRepository','editorCreator','addSuggestionData','getFullData','Pagination','getDataWithDiscardedSuggestions','trackChangesData','execute','track-changes-data-invalid-editor-creator','rootsAttributes','model','constructor','addUser','data','config'];(function(_0x41bd8f,_0xe9f5ef){const _0x32cc6b=function(_0x404f90){while(--_0x404f90){_0x41bd8f['push'](_0x41bd8f['shift']());}};_0x32cc6b(++_0xe9f5ef);}(_0xe9f5,0x178));const _0x32cc=function(_0x41bd8f,_0xe9f5ef){_0x41bd8f=_0x41bd8f-0x0;let _0x32cc6b=_0xe9f5[_0x41bd8f];return _0x32cc6b;};import{Plugin as _0x35c0b6}from'ckeditor5/src/core';import{CKEditorError as _0x1d29b1}from'ckeditor5/src/utils';import _0x5209b4 from'./trackchangesediting';import{sanitizeEditorConfig as _0x54266e}from'ckeditor5-collaboration/src/collaboration-core';const T=[_0x32cc('0x14')];export default class P extends _0x35c0b6{static get[_0x32cc('0x7')](){return[_0x5209b4];}static get[_0x32cc('0x6')](){return'TrackChangesData';}[_0x32cc('0x8')](){const _0xef8592=this[_0x32cc('0x0')];if(_0xef8592[_0x32cc('0x1e')][_0x32cc('0xf')]('trackChangesData.editorCreator',_0x144d86=>{const _0x3e42db=_0xef8592['model'][_0x32cc('0x2')][_0x32cc('0x1')]()[_0x32cc('0xc')]((_0x43b2b,_0x523553)=>(_0x43b2b[_0x523553]='',_0x43b2b),{});return _0xef8592[_0x32cc('0x1b')]['create'](_0x3e42db,_0x144d86);}),'function'!=typeof _0xef8592[_0x32cc('0x1e')][_0x32cc('0x23')]('trackChangesData')['editorCreator'])throw new _0x1d29b1(_0x32cc('0x18'));}[_0x32cc('0x22')](_0x377092){return N(this['editor'],!0x0,_0x377092);}[_0x32cc('0x15')](_0x4ccd4a){return N(this['editor'],!0x1,_0x4ccd4a);}}class D extends _0x35c0b6{static get[_0x32cc('0x6')](){return'TrackChangesDataGetter';}constructor(_0x13a50a){super(_0x13a50a),this['result']=_0x32cc('0x1f');}['init'](){this[_0x32cc('0x0')][_0x32cc('0x24')][_0x32cc('0x23')](_0x32cc('0x10'))[_0x32cc('0x4')]={'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[_0x32cc('0x0')][_0x32cc('0x24')][_0x32cc('0x23')](_0x32cc('0x5'))[_0x32cc('0x4')]=null;}}function v(_0x3d630a){return void 0x0!==_0x3d630a[_0x32cc('0x21')];}async function N(_0x1c8502,_0x115298,_0x2d6dda){const _0xaa5c10=_0x54266e(_0x1c8502,T);_0xaa5c10[_0x32cc('0x24')]['push'](_0x5209b4,D),_0xaa5c10[_0x32cc('0x19')]=v(_0x1c8502)?_0x1c8502[_0x32cc('0x21')]():void 0x0;const _0x4e03c0=document[_0x32cc('0xd')](),_0x1c20bc=_0x1c8502[_0x32cc('0x1e')]['get'](_0x32cc('0x16'))[_0x32cc('0x11')],_0x384242=await _0x1c20bc(_0xaa5c10,()=>function(_0x22c815){const _0x366270=document[_0x32cc('0x3')](_0x32cc('0xa'));return _0x22c815['appendChild'](_0x366270),_0x366270;}(_0x4e03c0));!function(_0x42f71e,_0x2afae0){const _0x84c05d=_0x42f71e[_0x32cc('0x1a')]['document'][_0x32cc('0x1')]()[_0x32cc('0xc')]((_0x1f11ff,_0x55244d)=>(_0x1f11ff[_0x55244d]=_0x42f71e[_0x32cc('0x1d')][_0x32cc('0x23')]({'rootName':_0x55244d}),_0x1f11ff),{}),_0x45a827=_0x42f71e[_0x32cc('0x24')][_0x32cc('0x23')]('Users')['users'][_0x32cc('0x20')](_0x33cfa3=>({'id':_0x33cfa3['id'],'name':_0x33cfa3['name']})),_0x3239b9=_0x42f71e[_0x32cc('0x24')][_0x32cc('0x23')]('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10f210=_0x2afae0[_0x32cc('0x24')][_0x32cc('0x23')]('Users'),_0x3e52ea=_0x2afae0['plugins'][_0x32cc('0x23')]('TrackChangesEditing');for(const _0x16239e of _0x45a827)_0x10f210[_0x32cc('0xe')](_0x16239e['id'])||_0x10f210[_0x32cc('0x1c')](_0x16239e);_0x10f210['me']||_0x10f210['useAnonymousUser']();for(const _0x3c345a of _0x3239b9)_0x3e52ea[_0x32cc('0x12')](_0x3c345a);_0x2afae0['data'][_0x32cc('0x9')](_0x84c05d);}(_0x1c8502,_0x384242),_0x384242[_0x32cc('0x17')](_0x115298?'acceptAllSuggestions':_0x32cc('0xb'));const _0x4ea82f=v(_0x384242)?_0x384242[_0x32cc('0x13')](_0x2d6dda):_0x384242[_0x32cc('0x1d')][_0x32cc('0x23')](_0x2d6dda);return await _0x384242['destroy'](),_0x4ea82f;}
23
+ const _0x288c=['model','track-changes-data-invalid-editor-creator','getUser','Users','reduce','config','addSuggestionData','define','get','pluginName','TrackChangesData','getSuggestions','Pagination','editor','_adapter','constructor','div','end','document','name','editorCreator','TrackChangesDataGetter','data','addUser','TrackChangesEditing','CommentsRepository','push','plugins','trackChangesData.editorCreator','getDataWithAcceptedSuggestions','trackChangesData','createDocumentFragment','getRootNames','init','function','users','discardAllSuggestions','set','getFullData','getDataWithDiscardedSuggestions','appendChild'];(function(_0x7d4490,_0x288c48){const _0x37c266=function(_0xbc5fbd){while(--_0xbc5fbd){_0x7d4490['push'](_0x7d4490['shift']());}};_0x37c266(++_0x288c48);}(_0x288c,0x84));const _0x37c2=function(_0x7d4490,_0x288c48){_0x7d4490=_0x7d4490-0x0;let _0x37c266=_0x288c[_0x7d4490];return _0x37c266;};import{Plugin as _0x2f6968}from'ckeditor5/src/core';import{CKEditorError as _0xdc91}from'ckeditor5/src/utils';import _0x9dc6eb from'./trackchangesediting';import{sanitizeEditorConfig as _0x387417}from'ckeditor5-collaboration/src/collaboration-core';const T=[_0x37c2('0x3')];export default class P extends _0x2f6968{static get['requires'](){return[_0x9dc6eb];}static get[_0x37c2('0x0')](){return _0x37c2('0x1');}[_0x37c2('0x18')](){const _0x181187=this[_0x37c2('0x4')];if(_0x181187['config'][_0x37c2('0x27')](_0x37c2('0x13'),_0x3388dd=>{const _0x2bcdb7=_0x181187[_0x37c2('0x20')][_0x37c2('0x9')][_0x37c2('0x17')]()[_0x37c2('0x24')]((_0x305228,_0x2571d6)=>(_0x305228[_0x2571d6]='',_0x305228),{});return _0x181187[_0x37c2('0x6')]['create'](_0x2bcdb7,_0x3388dd);}),_0x37c2('0x19')!=typeof _0x181187[_0x37c2('0x25')][_0x37c2('0x28')](_0x37c2('0x15'))[_0x37c2('0xb')])throw new _0xdc91(_0x37c2('0x21'));}[_0x37c2('0x14')](_0x24952f){return N(this[_0x37c2('0x4')],!0x0,_0x24952f);}[_0x37c2('0x1e')](_0x3b5d3b){return N(this[_0x37c2('0x4')],!0x1,_0x3b5d3b);}}class D extends _0x2f6968{static get['pluginName'](){return _0x37c2('0xc');}constructor(_0x47876f){super(_0x47876f),this['result']=_0x37c2('0x8');}[_0x37c2('0x18')](){this['editor'][_0x37c2('0x12')][_0x37c2('0x28')](_0x37c2('0x10'))[_0x37c2('0x5')]={'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[_0x37c2('0x4')][_0x37c2('0x12')][_0x37c2('0x28')](_0x37c2('0xf'))[_0x37c2('0x5')]=null;}}function v(_0x11c641){return void 0x0!==_0x11c641['getRootsAttributes'];}async function N(_0x5df4ce,_0x15e429,_0x501327){const _0x28b323=_0x387417(_0x5df4ce,T);_0x28b323['plugins'][_0x37c2('0x11')](_0x9dc6eb,D),_0x28b323['rootsAttributes']=v(_0x5df4ce)?_0x5df4ce['getRootsAttributes']():void 0x0;const _0x318090=document[_0x37c2('0x16')](),_0x822155=_0x5df4ce[_0x37c2('0x25')]['get'](_0x37c2('0x15'))[_0x37c2('0xb')],_0x247805=await _0x822155(_0x28b323,()=>function(_0x41f990){const _0x543fdb=document['createElement'](_0x37c2('0x7'));return _0x41f990[_0x37c2('0x1f')](_0x543fdb),_0x543fdb;}(_0x318090));!function(_0x3843fc,_0x44bfef){const _0x52babc=_0x3843fc[_0x37c2('0x20')]['document'][_0x37c2('0x17')]()['reduce']((_0x461b4a,_0x204057)=>(_0x461b4a[_0x204057]=_0x3843fc[_0x37c2('0xd')][_0x37c2('0x28')]({'rootName':_0x204057}),_0x461b4a),{}),_0x1dbc90=_0x3843fc['plugins'][_0x37c2('0x28')](_0x37c2('0x23'))[_0x37c2('0x1a')]['map'](_0x5a1d56=>({'id':_0x5a1d56['id'],'name':_0x5a1d56[_0x37c2('0xa')]})),_0x165e63=_0x3843fc[_0x37c2('0x12')][_0x37c2('0x28')](_0x37c2('0xf'))[_0x37c2('0x2')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x31b5d8=_0x44bfef['plugins'][_0x37c2('0x28')](_0x37c2('0x23')),_0xf091b0=_0x44bfef[_0x37c2('0x12')][_0x37c2('0x28')](_0x37c2('0xf'));for(const _0x30a50f of _0x1dbc90)_0x31b5d8[_0x37c2('0x22')](_0x30a50f['id'])||_0x31b5d8[_0x37c2('0xe')](_0x30a50f);_0x31b5d8['me']||_0x31b5d8['useAnonymousUser']();for(const _0x57f305 of _0x165e63)_0xf091b0[_0x37c2('0x26')](_0x57f305);_0x44bfef['data'][_0x37c2('0x1c')](_0x52babc);}(_0x5df4ce,_0x247805),_0x247805['execute'](_0x15e429?'acceptAllSuggestions':_0x37c2('0x1b'));const _0x4bcbca=v(_0x247805)?_0x247805[_0x37c2('0x1d')](_0x501327):_0x247805['data'][_0x37c2('0x28')](_0x501327);return await _0x247805['destroy'](),_0x4bcbca;}