@ckeditor/ckeditor5-track-changes 40.1.0 → 40.2.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 (163) hide show
  1. package/CHANGELOG.md +15 -15
  2. package/README.md +1 -1
  3. package/build/track-changes.js +2 -2
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/bg.js +1 -1
  7. package/build/translations/bn.js +1 -1
  8. package/build/translations/ca.js +1 -1
  9. package/build/translations/cs.js +1 -1
  10. package/build/translations/da.js +1 -1
  11. package/build/translations/de.js +1 -1
  12. package/build/translations/el.js +1 -1
  13. package/build/translations/en-au.js +1 -1
  14. package/build/translations/es.js +1 -1
  15. package/build/translations/et.js +1 -1
  16. package/build/translations/fi.js +1 -1
  17. package/build/translations/fr.js +1 -1
  18. package/build/translations/gl.js +1 -1
  19. package/build/translations/he.js +1 -1
  20. package/build/translations/hi.js +1 -1
  21. package/build/translations/hr.js +1 -1
  22. package/build/translations/hu.js +1 -1
  23. package/build/translations/id.js +1 -1
  24. package/build/translations/it.js +1 -1
  25. package/build/translations/ja.js +1 -1
  26. package/build/translations/ko.js +1 -1
  27. package/build/translations/lt.js +1 -1
  28. package/build/translations/lv.js +1 -1
  29. package/build/translations/ms.js +1 -1
  30. package/build/translations/nl.js +1 -1
  31. package/build/translations/no.js +1 -1
  32. package/build/translations/pl.js +1 -1
  33. package/build/translations/pt-br.js +1 -1
  34. package/build/translations/pt.js +1 -1
  35. package/build/translations/ro.js +1 -1
  36. package/build/translations/ru.js +1 -1
  37. package/build/translations/sk.js +1 -1
  38. package/build/translations/sq.js +1 -1
  39. package/build/translations/sr-latn.js +1 -1
  40. package/build/translations/sr.js +1 -1
  41. package/build/translations/sv.js +1 -1
  42. package/build/translations/th.js +1 -1
  43. package/build/translations/tk.js +1 -1
  44. package/build/translations/tr.js +1 -1
  45. package/build/translations/tt.js +1 -1
  46. package/build/translations/uk.js +1 -1
  47. package/build/translations/ur.js +1 -1
  48. package/build/translations/vi.js +1 -1
  49. package/build/translations/zh-cn.js +1 -1
  50. package/build/translations/zh.js +1 -1
  51. package/lang/translations/ar.po +5 -5
  52. package/lang/translations/az.po +4 -4
  53. package/lang/translations/bg.po +5 -5
  54. package/lang/translations/bn.po +5 -5
  55. package/lang/translations/ca.po +5 -5
  56. package/lang/translations/cs.po +5 -5
  57. package/lang/translations/da.po +5 -5
  58. package/lang/translations/de.po +5 -5
  59. package/lang/translations/el.po +5 -5
  60. package/lang/translations/en-au.po +5 -5
  61. package/lang/translations/en.po +5 -5
  62. package/lang/translations/es.po +5 -5
  63. package/lang/translations/et.po +5 -5
  64. package/lang/translations/fi.po +5 -5
  65. package/lang/translations/fr.po +5 -5
  66. package/lang/translations/gl.po +36 -36
  67. package/lang/translations/he.po +5 -5
  68. package/lang/translations/hi.po +5 -5
  69. package/lang/translations/hr.po +5 -5
  70. package/lang/translations/hu.po +5 -5
  71. package/lang/translations/id.po +5 -5
  72. package/lang/translations/it.po +5 -5
  73. package/lang/translations/ja.po +5 -5
  74. package/lang/translations/ko.po +5 -5
  75. package/lang/translations/lt.po +5 -5
  76. package/lang/translations/lv.po +5 -5
  77. package/lang/translations/ms.po +5 -5
  78. package/lang/translations/nl.po +5 -5
  79. package/lang/translations/no.po +5 -5
  80. package/lang/translations/pl.po +5 -5
  81. package/lang/translations/pt-br.po +5 -5
  82. package/lang/translations/pt.po +5 -5
  83. package/lang/translations/ro.po +5 -5
  84. package/lang/translations/ru.po +5 -5
  85. package/lang/translations/sk.po +5 -5
  86. package/lang/translations/sq.po +4 -4
  87. package/lang/translations/sr-latn.po +24 -24
  88. package/lang/translations/sr.po +5 -5
  89. package/lang/translations/sv.po +5 -5
  90. package/lang/translations/th.po +5 -5
  91. package/lang/translations/tk.po +4 -4
  92. package/lang/translations/tr.po +5 -5
  93. package/lang/translations/tt.po +4 -4
  94. package/lang/translations/uk.po +5 -5
  95. package/lang/translations/ur.po +4 -4
  96. package/lang/translations/vi.po +5 -5
  97. package/lang/translations/zh-cn.po +5 -5
  98. package/lang/translations/zh.po +5 -5
  99. package/package.json +3 -3
  100. package/src/commands/acceptsuggestioncommand.js +1 -1
  101. package/src/commands/discardsuggestioncommand.js +1 -1
  102. package/src/commands/executeonallsuggestionscommand.js +1 -1
  103. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  104. package/src/commands/trackchangescommand.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/ckbox.js +1 -1
  110. package/src/integrations/codeblock.js +1 -1
  111. package/src/integrations/comments.js +1 -1
  112. package/src/integrations/deletecommand.js +1 -1
  113. package/src/integrations/documentlist.js +1 -1
  114. package/src/integrations/documentlistproperties.js +1 -1
  115. package/src/integrations/entercommand.js +1 -1
  116. package/src/integrations/findandreplace.js +1 -1
  117. package/src/integrations/font.js +1 -1
  118. package/src/integrations/formatpainter.js +1 -1
  119. package/src/integrations/heading.js +1 -1
  120. package/src/integrations/highlight.js +1 -1
  121. package/src/integrations/horizontalline.js +1 -1
  122. package/src/integrations/htmlembed.js +1 -1
  123. package/src/integrations/image.js +1 -1
  124. package/src/integrations/imagereplace.js +1 -1
  125. package/src/integrations/imagestyle.js +1 -1
  126. package/src/integrations/importword.js +1 -1
  127. package/src/integrations/indent.js +1 -1
  128. package/src/integrations/inputcommand.js +1 -1
  129. package/src/integrations/link.js +1 -1
  130. package/src/integrations/list.js +1 -1
  131. package/src/integrations/listproperties.js +1 -1
  132. package/src/integrations/mediaembed.js +1 -1
  133. package/src/integrations/mention.js +1 -1
  134. package/src/integrations/pagebreak.js +1 -1
  135. package/src/integrations/paragraph.js +1 -1
  136. package/src/integrations/removeformat.js +1 -1
  137. package/src/integrations/restrictededitingmode.js +1 -1
  138. package/src/integrations/shiftentercommand.js +1 -1
  139. package/src/integrations/standardeditingmode.js +1 -1
  140. package/src/integrations/style.js +1 -1
  141. package/src/integrations/table.js +1 -1
  142. package/src/integrations/tablecaption.js +1 -1
  143. package/src/integrations/tableclipboard.js +1 -1
  144. package/src/integrations/tablecolumnresize.js +1 -1
  145. package/src/integrations/tableheadings.js +1 -1
  146. package/src/integrations/tablemergesplit.js +1 -1
  147. package/src/integrations/tableofcontents.js +1 -1
  148. package/src/integrations/tableproperties.js +1 -1
  149. package/src/integrations/template.js +1 -1
  150. package/src/integrations/title.js +1 -1
  151. package/src/integrations/undo.js +1 -1
  152. package/src/integrations/utils.js +1 -1
  153. package/src/suggestion.js +1 -1
  154. package/src/suggestiondescriptionfactory.js +1 -1
  155. package/src/trackchanges.js +1 -1
  156. package/src/trackchangesdata.js +1 -1
  157. package/src/trackchangesediting.js +1 -1
  158. package/src/trackchangesui.js +1 -1
  159. package/src/ui/suggestioncontroller.js +1 -1
  160. package/src/ui/view/basesuggestionthreadview.js +1 -1
  161. package/src/ui/view/suggestionthreadview.js +1 -1
  162. package/src/utils/common-translations.js +1 -1
  163. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x158f=['getFirstPosition','registerDescriptionCallback','change','get','tableBorderStyle','commandParams','getSuggestionCallback','tableBorderWidth','*Format:*\x20change\x20table\x20properties','_handlePropertyChange','findAncestor','handleSuggestionDescription','tableCellVerticalAlignment','_getSuggestion','getAttribute','start','tableCellBorderStyle','getSelectionAffectedTableCells','format','tableCellWidth','plugins','tableCellBorderColor','discard','nodeAfter','tableHeight','tableBorderColor','tableCellBorderWidth','setAttribute','markBlockFormat','subType','enqueueChange','TablePropertiesEditing','table','model','document','getSuggestions','data','editor','formatBlock','_suggestionFactory','tableBackgroundColor','getContainedElement','registerCustomCallback','accept','TrackChangesEditing','tableCellBackgroundColor','tableAlignment','selection','tableCellHeight','handleDiscardAction','tableCellProperties','TrackChangesTableProperties','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','tableProperties','pluginName','_descriptionFactory','tableCellPadding'];(function(_0x2a9d3d,_0x158f0a){const _0xf30c6b=function(_0xe87d90){while(--_0xe87d90){_0x2a9d3d['push'](_0x2a9d3d['shift']());}};_0xf30c6b(++_0x158f0a);}(_0x158f,0x117));const _0xf30c=function(_0x2a9d3d,_0x158f0a){_0x2a9d3d=_0x2a9d3d-0x0;let _0xf30c6b=_0x158f[_0x2a9d3d];return _0xf30c6b;};import{Plugin as _0x5ca2df}from'ckeditor5/src/core';import{getTranslation as _0x827c9}from'../utils/common-translations';export default class Mt extends _0x5ca2df{constructor(_0x3c0f0e){super(_0x3c0f0e),this[_0xf30c('0x7')]=[_0xf30c('0x24'),_0xf30c('0xf'),_0xf30c('0x12'),_0xf30c('0x39'),_0xf30c('0x6'),_0xf30c('0x23'),_0xf30c('0x33')],this[_0xf30c('0x3')]=[_0xf30c('0x20'),_0xf30c('0x1b'),_0xf30c('0x25'),_0xf30c('0xa'),_0xf30c('0x1e'),_0xf30c('0x1'),_0xf30c('0x38'),'tableCellHorizontalAlignment',_0xf30c('0x17')];}static get[_0xf30c('0x8')](){return _0xf30c('0x4');}['afterInit'](){const _0x3ee3e1=this[_0xf30c('0x30')]['plugins']['get'](_0xf30c('0x37'));if(this[_0xf30c('0x30')][_0xf30c('0x1f')]['has'](_0xf30c('0x2a'))){for(const _0x233517 of this[_0xf30c('0x7')])_0x3ee3e1['enableCommand'](_0x233517,(_0x7259e3,_0x340433)=>{const _0x45d055=this['editor'][_0xf30c('0x2c')][_0xf30c('0x2d')][_0xf30c('0x0')][_0xf30c('0xb')]()[_0xf30c('0x15')](_0xf30c('0x2b'));this[_0xf30c('0x14')](_0x233517,[_0x45d055],this['tableProperties'],_0xf30c('0x7'),_0x7259e3,_0x340433);});_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')](_0xf30c('0x31'),_0xf30c('0x7'),_0xf30c('0x36'),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x11')]('formatBlock',null,_0xf30c('0x21'))),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')](_0xf30c('0x31'),_0xf30c('0x7'),_0xf30c('0x21'),(_0x1d8bb2,_0x5c9f7e)=>this['handleDiscardAction'](this[_0xf30c('0x7')],_0x1d8bb2,_0x5c9f7e)),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')](_0xf30c('0x31'),'tableProperties','join',()=>!0x1);}if(this[_0xf30c('0x30')]['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48d5a8 of this[_0xf30c('0x3')])_0x3ee3e1['enableCommand'](_0x48d5a8,(_0x179feb,_0x935e0e)=>{const _0x3bfed0=this['editor'][_0xf30c('0x1f')][_0xf30c('0xe')]('TableUtils')[_0xf30c('0x1c')](this[_0xf30c('0x30')][_0xf30c('0x2c')]['document'][_0xf30c('0x0')]);this[_0xf30c('0x14')](_0x48d5a8,_0x3bfed0,this[_0xf30c('0x3')],'tableCellProperties',_0x179feb,_0x935e0e);});_0x3ee3e1['_suggestionFactory'][_0xf30c('0x35')](_0xf30c('0x31'),_0xf30c('0x3'),_0xf30c('0x36'),_0x3ee3e1[_0xf30c('0x32')]['getSuggestionCallback'](_0xf30c('0x31'),null,_0xf30c('0x21'))),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')](_0xf30c('0x31'),_0xf30c('0x3'),_0xf30c('0x21'),(_0x41a8df,_0x4bc742)=>this['handleDiscardAction'](this['tableCellProperties'],_0x41a8df,_0x4bc742)),_0x3ee3e1[_0xf30c('0x32')][_0xf30c('0x35')]('formatBlock',_0xf30c('0x3'),'join',()=>!0x1);}_0x3ee3e1[_0xf30c('0x9')][_0xf30c('0xc')](_0x5320f3=>this[_0xf30c('0x16')](_0x5320f3));}[_0xf30c('0x14')](_0xf1448f,_0x2e5e95,_0x46286c,_0x1aa1ce,_0x370ca1,_0x44305c){const _0x4a20d8=this[_0xf30c('0x30')][_0xf30c('0x1f')][_0xf30c('0xe')](_0xf30c('0x37'));this[_0xf30c('0x30')][_0xf30c('0x2c')][_0xf30c('0x29')](_0x44305c['batch'],()=>{for(const _0xf9ed78 of _0x2e5e95){if(this[_0xf30c('0x18')](_0xf9ed78,_0x1aa1ce))_0x370ca1(_0x44305c);else{const _0x2b06a3={};for(const _0x2402b0 of _0x46286c){const _0xb7ecc2=_0xf9ed78[_0xf30c('0x19')](_0x2402b0);void 0x0!==_0xb7ecc2&&(_0x2b06a3[_0x2402b0]=_0xb7ecc2);}_0x370ca1(_0x44305c),_0x4a20d8[_0xf30c('0x27')](_0xf9ed78,{'commandParams':[_0x2b06a3]},[],_0x1aa1ce);}}});}[_0xf30c('0x2')](_0x2c8240,_0x4b51b6,_0x320ea9){const _0x1d1a16=_0x4b51b6[0x0][_0xf30c('0x1a')][_0xf30c('0x22')],_0xcc878=_0x320ea9[_0xf30c('0x10')][0x0];this['editor'][_0xf30c('0x2c')][_0xf30c('0xd')](_0x545ec6=>{for(const _0x4c8e56 of _0x2c8240)void 0x0!==_0xcc878[_0x4c8e56]?_0x545ec6[_0xf30c('0x26')](_0x4c8e56,_0xcc878[_0x4c8e56],_0x1d1a16):_0x545ec6['removeAttribute'](_0x4c8e56,_0x1d1a16);});}[_0xf30c('0x16')](_0x502b50){if(_0x502b50[_0xf30c('0x2f')])switch(_0x502b50[_0xf30c('0x28')]){case _0xf30c('0x7'):return{'type':_0xf30c('0x1d'),'content':_0x827c9(this['editor']['locale'],_0xf30c('0x13'))};case'tableCellProperties':return{'type':_0xf30c('0x1d'),'content':_0x827c9(this[_0xf30c('0x30')]['locale'],_0xf30c('0x5'))};}}[_0xf30c('0x18')](_0x415c82,_0x4ef727){const _0x3371c6=this[_0xf30c('0x30')][_0xf30c('0x1f')][_0xf30c('0xe')](_0xf30c('0x37'));for(const _0x57ffc7 of _0x3371c6[_0xf30c('0x2e')]({'skipNotAttached':!0x0})){const _0x27d790=_0x57ffc7[_0xf30c('0x34')]();if(_0x57ffc7[_0xf30c('0x28')]===_0x4ef727&&_0x27d790===_0x415c82)return _0x57ffc7;}return null;}}
23
+ const _0x1ac7=['enableCommand','batch','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','get','has','nodeAfter','_suggestionFactory','registerDescriptionCallback','TrackChangesEditing','tableCellProperties','model','table','selection','tableHeight','discard','formatBlock','getFirstPosition','getSuggestionCallback','editor','handleDiscardAction','tableCellPadding','_descriptionFactory','_handlePropertyChange','tableBorderStyle','getAttribute','format','registerCustomCallback','TablePropertiesEditing','getContainedElement','tableProperties','tableCellWidth','getSuggestions','removeAttribute','tableBackgroundColor','tableCellHeight','enqueueChange','accept','handleSuggestionDescription','afterInit','data','document','join','plugins','tableCellHorizontalAlignment','locale','TableUtils','TableCellPropertiesEditing','markBlockFormat','tableBorderColor','subType','tableCellBorderColor'];(function(_0x432f1a,_0x1ac7a1){const _0x523dc4=function(_0x5a1688){while(--_0x5a1688){_0x432f1a['push'](_0x432f1a['shift']());}};_0x523dc4(++_0x1ac7a1);}(_0x1ac7,0x17e));const _0x523d=function(_0x432f1a,_0x1ac7a1){_0x432f1a=_0x432f1a-0x0;let _0x523dc4=_0x1ac7[_0x432f1a];return _0x523dc4;};import{Plugin as _0x890481}from'ckeditor5/src/core';import{getTranslation as _0x16f514}from'../utils/common-translations';export default class Mt extends _0x890481{constructor(_0x476054){super(_0x476054),this[_0x523d('0xc')]=[_0x523d('0x1f'),_0x523d('0x6'),'tableBorderWidth','tableAlignment',_0x523d('0x25'),_0x523d('0x30'),_0x523d('0x10')],this[_0x523d('0x2c')]=[_0x523d('0x21'),'tableCellBorderStyle','tableCellBorderWidth',_0x523d('0x3'),_0x523d('0xd'),_0x523d('0x11'),'tableCellBackgroundColor',_0x523d('0x1a'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x523d('0x15')](){const _0x5297b9=this[_0x523d('0x1')][_0x523d('0x19')]['get'](_0x523d('0x2b'));if(this[_0x523d('0x1')][_0x523d('0x19')]['has'](_0x523d('0xa'))){for(const _0x32be83 of this[_0x523d('0xc')])_0x5297b9['enableCommand'](_0x32be83,(_0x4c13db,_0x241ad2)=>{const _0x32637e=this[_0x523d('0x1')][_0x523d('0x2d')][_0x523d('0x17')][_0x523d('0x2f')][_0x523d('0x33')]()['findAncestor'](_0x523d('0x2e'));this['_handlePropertyChange'](_0x32be83,[_0x32637e],this[_0x523d('0xc')],_0x523d('0xc'),_0x4c13db,_0x241ad2);});_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'accept',_0x5297b9[_0x523d('0x29')]['getSuggestionCallback'](_0x523d('0x32'),null,'discard')),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),_0x523d('0x31'),(_0x1f1e1e,_0x4047cb)=>this[_0x523d('0x2')](this[_0x523d('0xc')],_0x1f1e1e,_0x4047cb)),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'join',()=>!0x1);}if(this[_0x523d('0x1')][_0x523d('0x19')][_0x523d('0x27')](_0x523d('0x1d'))){for(const _0x1d0d22 of this[_0x523d('0x2c')])_0x5297b9[_0x523d('0x22')](_0x1d0d22,(_0x1641c3,_0x3d2060)=>{const _0x35d13f=this[_0x523d('0x1')]['plugins'][_0x523d('0x26')](_0x523d('0x1c'))['getSelectionAffectedTableCells'](this[_0x523d('0x1')]['model'][_0x523d('0x17')]['selection']);this['_handlePropertyChange'](_0x1d0d22,_0x35d13f,this['tableCellProperties'],'tableCellProperties',_0x1641c3,_0x3d2060);});_0x5297b9[_0x523d('0x29')]['registerCustomCallback'](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x13'),_0x5297b9[_0x523d('0x29')][_0x523d('0x0')](_0x523d('0x32'),null,'discard')),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),'tableCellProperties',_0x523d('0x31'),(_0x1227d6,_0x14ca83)=>this[_0x523d('0x2')](this[_0x523d('0x2c')],_0x1227d6,_0x14ca83)),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x18'),()=>!0x1);}_0x5297b9[_0x523d('0x4')][_0x523d('0x2a')](_0x379646=>this[_0x523d('0x14')](_0x379646));}[_0x523d('0x5')](_0xa574e0,_0x2d5b46,_0x52fd71,_0x22749e,_0x3597cc,_0x5aaa70){const _0x4450e6=this['editor']['plugins'][_0x523d('0x26')](_0x523d('0x2b'));this[_0x523d('0x1')]['model'][_0x523d('0x12')](_0x5aaa70[_0x523d('0x23')],()=>{for(const _0x5e2d9d of _0x2d5b46){if(this['_getSuggestion'](_0x5e2d9d,_0x22749e))_0x3597cc(_0x5aaa70);else{const _0xbfcbee={};for(const _0x3e8fa8 of _0x52fd71){const _0x3e4cec=_0x5e2d9d[_0x523d('0x7')](_0x3e8fa8);void 0x0!==_0x3e4cec&&(_0xbfcbee[_0x3e8fa8]=_0x3e4cec);}_0x3597cc(_0x5aaa70),_0x4450e6[_0x523d('0x1e')](_0x5e2d9d,{'commandParams':[_0xbfcbee]},[],_0x22749e);}}});}[_0x523d('0x2')](_0x5b7e39,_0x5d1b58,_0x15c644){const _0x5ae496=_0x5d1b58[0x0]['start'][_0x523d('0x28')],_0x5965bd=_0x15c644['commandParams'][0x0];this['editor'][_0x523d('0x2d')]['change'](_0x203910=>{for(const _0xbabbe3 of _0x5b7e39)void 0x0!==_0x5965bd[_0xbabbe3]?_0x203910['setAttribute'](_0xbabbe3,_0x5965bd[_0xbabbe3],_0x5ae496):_0x203910[_0x523d('0xf')](_0xbabbe3,_0x5ae496);});}['handleSuggestionDescription'](_0x58734a){if(_0x58734a[_0x523d('0x16')])switch(_0x58734a[_0x523d('0x20')]){case _0x523d('0xc'):return{'type':_0x523d('0x8'),'content':_0x16f514(this[_0x523d('0x1')][_0x523d('0x1b')],'*Format:*\x20change\x20table\x20properties')};case _0x523d('0x2c'):return{'type':_0x523d('0x8'),'content':_0x16f514(this['editor'][_0x523d('0x1b')],_0x523d('0x24'))};}}['_getSuggestion'](_0x489a30,_0x206da1){const _0x522fea=this['editor'][_0x523d('0x19')][_0x523d('0x26')](_0x523d('0x2b'));for(const _0x43f9db of _0x522fea[_0x523d('0xe')]({'skipNotAttached':!0x0})){const _0x30fd14=_0x43f9db[_0x523d('0xb')]();if(_0x43f9db[_0x523d('0x20')]===_0x206da1&&_0x30fd14===_0x489a30)return _0x43f9db;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x533a=['editor','Template','plugins','TrackChangesEditing','afterInit','has','insertTemplate'];(function(_0x5cbdb0,_0x533a73){const _0x1c08e1=function(_0x4662fc){while(--_0x4662fc){_0x5cbdb0['push'](_0x5cbdb0['shift']());}};_0x1c08e1(++_0x533a73);}(_0x533a,0x1e9));const _0x1c08=function(_0x5cbdb0,_0x533a73){_0x5cbdb0=_0x5cbdb0-0x0;let _0x1c08e1=_0x533a[_0x5cbdb0];return _0x1c08e1;};import{Plugin as _0x42402b}from'ckeditor5/src/core';export default class vt extends _0x42402b{[_0x1c08('0x5')](){const _0x546c30=this[_0x1c08('0x1')];_0x546c30[_0x1c08('0x3')][_0x1c08('0x6')](_0x1c08('0x2'))&&_0x546c30[_0x1c08('0x3')]['get'](_0x1c08('0x4'))['enableCommand'](_0x1c08('0x0'));}}
23
+ const _0x2828=['afterInit','TrackChangesEditing','has','Template','enableCommand','plugins','get'];(function(_0x588cfb,_0x282820){const _0x4b76e2=function(_0x503933){while(--_0x503933){_0x588cfb['push'](_0x588cfb['shift']());}};_0x4b76e2(++_0x282820);}(_0x2828,0x1d8));const _0x4b76=function(_0x588cfb,_0x282820){_0x588cfb=_0x588cfb-0x0;let _0x4b76e2=_0x2828[_0x588cfb];return _0x4b76e2;};import{Plugin as _0x421c51}from'ckeditor5/src/core';export default class vt extends _0x421c51{[_0x4b76('0x4')](){const _0x2d4cfe=this['editor'];_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x6')](_0x4b76('0x0'))&&_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x3')](_0x4b76('0x5'))[_0x4b76('0x1')]('insertTemplate');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2f51=['locale','afterInit','plugins','editor','schema','get','isTouching','getChangedMarkers','document','element','title-content','end','from','updateMarker','getNearestSelectionRange','start','model','ELEMENT_TITLE','isCollapsed','removeMarker','nodeBefore'];(function(_0x3eb0e6,_0x2f5165){const _0x7ee46f=function(_0x5df858){while(--_0x5df858){_0x3eb0e6['push'](_0x3eb0e6['shift']());}};_0x7ee46f(++_0x2f5165);}(_0x2f51,0x16b));const _0x7ee4=function(_0x3eb0e6,_0x2f5165){_0x3eb0e6=_0x3eb0e6-0x0;let _0x7ee46f=_0x2f51[_0x3eb0e6];return _0x7ee46f;};import{Plugin as _0x4ea089}from'ckeditor5/src/core';import{getTranslation as _0x2d599b}from'../utils/common-translations';export default class Ct extends _0x4ea089{[_0x7ee4('0x10')](){const _0xab3a30=this[_0x7ee4('0x12')];if(!_0xab3a30[_0x7ee4('0x11')]['has']('Title'))return;const _0x50ec56=_0xab3a30[_0x7ee4('0x11')][_0x7ee4('0x14')]('TrackChangesEditing');_0x50ec56['_descriptionFactory']['registerElementLabel'](_0x7ee4('0x4'),()=>_0x2d599b(_0xab3a30[_0x7ee4('0xf')],_0x7ee4('0xb'))),_0xab3a30[_0x7ee4('0xa')]['document']['registerPostFixer'](_0x1dfabe=>{let _0x2c0c11=!0x1;const _0x2cae20=Array[_0x7ee4('0x6')](_0xab3a30[_0x7ee4('0xa')][_0x7ee4('0x2')]['differ'][_0x7ee4('0x1')]());for(const {name:_0x1142ae,data:_0x83abc8}of _0x2cae20){const {group:_0x39d16d}=_0x50ec56['_splitMarkerName'](_0x1142ae);if('suggestion'!==_0x39d16d||!_0x83abc8['newRange'])continue;const _0xa2b14e=_0x83abc8['newRange'],_0x4fe25f=_0xa2b14e[_0x7ee4('0x5')][_0x7ee4('0xe')];if(!_0x4fe25f||!_0x4fe25f['is'](_0x7ee4('0x3'),_0x7ee4('0x4')))continue;if(!_0xa2b14e[_0x7ee4('0x9')][_0x7ee4('0x0')](_0xa2b14e[_0x7ee4('0x5')]))continue;const _0x7d1f40=_0xab3a30[_0x7ee4('0xa')][_0x7ee4('0x13')][_0x7ee4('0x8')](_0xa2b14e[_0x7ee4('0x5')],'forward');if(_0x7d1f40&&_0x7d1f40[_0x7ee4('0xc')]){const _0x4cc846=_0x1dfabe['createRange'](_0xa2b14e['start'],_0x7d1f40[_0x7ee4('0x9')]);_0x4cc846['isEqual'](_0xa2b14e)||(_0x1dfabe[_0x7ee4('0x7')](_0x1142ae,{'range':_0x4cc846}),_0x2c0c11=!0x0);}_0x2c0c11||(_0x1dfabe[_0x7ee4('0xd')](_0x1142ae),_0x2c0c11=!0x0);}return _0x2c0c11;});}}
23
+ const _0x5e95=['schema','_splitMarkerName','has','isEqual','document','editor','isCollapsed','end','afterInit','suggestion','start','model','ELEMENT_TITLE','removeMarker','getChangedMarkers','createRange','forward','locale','title-content','from','updateMarker','element'];(function(_0x331b3b,_0x5e950c){const _0x5a9ba6=function(_0x45c03f){while(--_0x45c03f){_0x331b3b['push'](_0x331b3b['shift']());}};_0x5a9ba6(++_0x5e950c);}(_0x5e95,0x13a));const _0x5a9b=function(_0x331b3b,_0x5e950c){_0x331b3b=_0x331b3b-0x0;let _0x5a9ba6=_0x5e95[_0x331b3b];return _0x5a9ba6;};import{Plugin as _0x3f245a}from'ckeditor5/src/core';import{getTranslation as _0x61b65d}from'../utils/common-translations';export default class _t extends _0x3f245a{[_0x5a9b('0x2')](){const _0x14a488=this[_0x5a9b('0x15')];if(!_0x14a488['plugins'][_0x5a9b('0x12')]('Title'))return;const _0x43b8ac=_0x14a488['plugins']['get']('TrackChangesEditing');_0x43b8ac['_descriptionFactory']['registerElementLabel'](_0x5a9b('0xc'),()=>_0x61b65d(_0x14a488[_0x5a9b('0xb')],_0x5a9b('0x6'))),_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x14')]['registerPostFixer'](_0x2cd45a=>{let _0x3b9b55=!0x1;const _0x57180a=Array[_0x5a9b('0xd')](_0x14a488[_0x5a9b('0x5')]['document']['differ'][_0x5a9b('0x8')]());for(const {name:_0x1bec36,data:_0x3ae090}of _0x57180a){const {group:_0xdc6af9}=_0x43b8ac[_0x5a9b('0x11')](_0x1bec36);if(_0x5a9b('0x3')!==_0xdc6af9||!_0x3ae090['newRange'])continue;const _0x1c55c6=_0x3ae090['newRange'],_0x74aab7=_0x1c55c6['end']['nodeBefore'];if(!_0x74aab7||!_0x74aab7['is'](_0x5a9b('0xf'),_0x5a9b('0xc')))continue;if(!_0x1c55c6[_0x5a9b('0x4')]['isTouching'](_0x1c55c6[_0x5a9b('0x1')]))continue;const _0x168464=_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x10')]['getNearestSelectionRange'](_0x1c55c6[_0x5a9b('0x1')],_0x5a9b('0xa'));if(_0x168464&&_0x168464[_0x5a9b('0x0')]){const _0xf59709=_0x2cd45a[_0x5a9b('0x9')](_0x1c55c6[_0x5a9b('0x4')],_0x168464[_0x5a9b('0x4')]);_0xf59709[_0x5a9b('0x13')](_0x1c55c6)||(_0x2cd45a[_0x5a9b('0xe')](_0x1bec36,{'range':_0xf59709}),_0x3b9b55=!0x0);}_0x3b9b55||(_0x2cd45a[_0x5a9b('0x7')](_0x1bec36),_0x3b9b55=!0x0);}return _0x3b9b55;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19b9=['TrackChangesEditing','enableCommand','UndoEditing','plugins','afterInit','undo','editor'];(function(_0xbbc9e5,_0x19b9d8){const _0x2ad167=function(_0x1dd8b7){while(--_0x1dd8b7){_0xbbc9e5['push'](_0xbbc9e5['shift']());}};_0x2ad167(++_0x19b9d8);}(_0x19b9,0x95));const _0x2ad1=function(_0xbbc9e5,_0x19b9d8){_0xbbc9e5=_0xbbc9e5-0x0;let _0x2ad167=_0x19b9[_0xbbc9e5];return _0x2ad167;};import{Plugin as _0xdc75af}from'ckeditor5/src/core';export default class Dt extends _0xdc75af{[_0x2ad1('0x2')](){const _0xc66ae3=this[_0x2ad1('0x4')],_0x2291b8=_0xc66ae3[_0x2ad1('0x1')]['get'](_0x2ad1('0x5'));_0xc66ae3[_0x2ad1('0x1')]['has'](_0x2ad1('0x0'))&&(_0x2291b8[_0x2ad1('0x6')](_0x2ad1('0x3')),_0x2291b8[_0x2ad1('0x6')]('redo'));}}
23
+ const _0x1a11=['undo','get','enableCommand','has','TrackChangesEditing','editor','afterInit','plugins'];(function(_0x3c54cb,_0x1a11ad){const _0x31b686=function(_0x1fd816){while(--_0x1fd816){_0x3c54cb['push'](_0x3c54cb['shift']());}};_0x31b686(++_0x1a11ad);}(_0x1a11,0x161));const _0x31b6=function(_0x3c54cb,_0x1a11ad){_0x3c54cb=_0x3c54cb-0x0;let _0x31b686=_0x1a11[_0x3c54cb];return _0x31b686;};import{Plugin as _0x5f1e27}from'ckeditor5/src/core';export default class Dt extends _0x5f1e27{[_0x31b6('0x5')](){const _0xe299cf=this[_0x31b6('0x4')],_0x4bd904=_0xe299cf[_0x31b6('0x6')][_0x31b6('0x0')](_0x31b6('0x3'));_0xe299cf[_0x31b6('0x6')][_0x31b6('0x2')]('UndoEditing')&&(_0x4bd904['enableCommand'](_0x31b6('0x7')),_0x4bd904[_0x31b6('0x1')]('redo'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b52=['getWalker','writer','item','isAtEnd','ck-suggestion-marker-','addClass','start','consumable','model','ck-suggestion-marker--active','hasAttribute','isBlock','addHighlight','mapper','name','plugins','getCustomProperty','getAttribute','elementEnd','nextSibling','listItem','element','createUIElement','type','span','toViewPosition','get','markerName','isLimit','bindElementToMarker','schema','previousPosition','markerRange','test','includes','push'];(function(_0x368c60,_0x2b5266){const _0x1924b6=function(_0x4c5491){while(--_0x4c5491){_0x368c60['push'](_0x368c60['shift']());}};_0x1924b6(++_0x2b5266);}(_0x2b52,0x149));const _0x1924=function(_0x368c60,_0x2b5266){_0x368c60=_0x368c60-0x0;let _0x1924b6=_0x2b52[_0x368c60];return _0x1924b6;};export function getRangesWithAttribute(_0x5286f4,_0x4d47a6,_0x597b45){const _0xaf8299=[];for(const _0x29901a of _0x4d47a6['getItems']())_0x29901a[_0x1924('0x5')](_0x5286f4)&&_0xaf8299[_0x1924('0x1e')](_0x597b45['createRangeOn'](_0x29901a));return _0xaf8299;}export function getElementsAffectedByListItemRename(_0x106c80){const _0x31e6f0=[];if(_0x106c80['is'](_0x1924('0x10'),_0x1924('0xf'))){let _0x1e3d5f=_0x106c80[_0x1924('0xe')];for(;_0x1e3d5f&&_0x1e3d5f['is'](_0x1924('0x10'),_0x1924('0xf'))&&_0x1e3d5f[_0x1924('0xc')]('listIndent')>0x0;)_0x31e6f0[_0x1924('0x1e')](_0x1e3d5f),_0x1e3d5f=_0x1e3d5f[_0x1924('0xe')];}return _0x31e6f0;}export function downcastSplitMergeMarker(_0xa34aa8,_0x1a85f8,{showActiveMarker:_0x41e117=!0x0}={}){const _0x141666=_0xa34aa8[_0x1924('0xa')][_0x1924('0x15')]('TrackChangesEditing');return(_0x20d7de,_0x243bf7,_0x205f25)=>{if(!_0x205f25[_0x1924('0x2')][_0x1924('0x1c')](_0x243bf7[_0x1924('0x1b')],_0x20d7de[_0x1924('0x9')]))return;const _0x12641a=_0x243bf7[_0x1924('0x1b')][_0x1924('0x1f')](),_0x202716=_0x243bf7['markerRange'][_0x1924('0x1')],_0x5e777a=_0xa34aa8[_0x1924('0x3')][_0x1924('0x19')];let _0x63b2f7=null,_0x32257f=null,_0x2eafc3=!0x1,_0x59f49a=!0x1;for(const _0x130365 of _0x12641a){const _0x1c8568=_0x130365[_0x1924('0x21')];_0x2eafc3=_0x2eafc3||_0x5e777a['isContent'](_0x1c8568);const _0x41b830=_0x205f25[_0x1924('0x8')]['toViewElement'](_0x1c8568);if(_0x41b830&&_0x41b830[_0x1924('0xb')](_0x1924('0x7')))return;_0x1924('0xd')==_0x130365[_0x1924('0x12')]&&(_0x5e777a[_0x1924('0x6')](_0x1c8568)&&!_0x5e777a[_0x1924('0x17')](_0x1c8568)&&(_0x1c8568[_0x1924('0xe')]||_0x202716[_0x1924('0x22')]?_0x63b2f7&&_0x63b2f7['parent']==_0x1c8568||(_0x63b2f7=_0x1c8568,_0x3ced0a(_0x130365[_0x1924('0x1a')]),_0x59f49a=!0x0):_0x32257f=_0x32257f||_0x130365[_0x1924('0x1a')]));}function _0x3ced0a(_0x308e50){const _0x4c143d=_0x205f25[_0x1924('0x20')][_0x1924('0x11')](_0x1924('0x13'),{'class':_0x1924('0x23')+_0x1a85f8}),_0x575364=_0x205f25[_0x1924('0x8')][_0x1924('0x14')](_0x308e50);_0x41e117&&_0x141666['activeMarkers'][_0x1924('0x1d')](_0x243bf7[_0x1924('0x16')])&&_0x205f25['writer'][_0x1924('0x0')](_0x1924('0x4'),_0x4c143d),_0x205f25[_0x1924('0x20')]['insert'](_0x575364,_0x4c143d),_0x205f25['mapper'][_0x1924('0x18')](_0x4c143d,_0x243bf7[_0x1924('0x16')]);}_0x2eafc3||_0x59f49a||!_0x32257f||_0x3ced0a(_0x32257f);};}
23
+ const _0x24ba=['plugins','writer','activeMarkers','push','schema','getAttribute','getWalker','isAtEnd','ck-suggestion-marker--active','mapper','addClass','isContent','consumable','name','element','nextSibling','createUIElement','test','insert','type','elementEnd','get','markerName','getItems','isLimit','createRangeOn','toViewPosition','includes','parent','markerRange','previousPosition','listItem','item','getCustomProperty'];(function(_0x573cd9,_0x24ba71){const _0x4920d1=function(_0x42eb05){while(--_0x42eb05){_0x573cd9['push'](_0x573cd9['shift']());}};_0x4920d1(++_0x24ba71);}(_0x24ba,0x1d2));const _0x4920=function(_0x573cd9,_0x24ba71){_0x573cd9=_0x573cd9-0x0;let _0x4920d1=_0x24ba[_0x573cd9];return _0x4920d1;};export function getRangesWithAttribute(_0x417211,_0x1f5a50,_0xd96e01){const _0x1bb612=[];for(const _0x2a5d75 of _0x1f5a50[_0x4920('0x21')]())_0x2a5d75['hasAttribute'](_0x417211)&&_0x1bb612[_0x4920('0xd')](_0xd96e01[_0x4920('0x1')](_0x2a5d75));return _0x1bb612;}export function getElementsAffectedByListItemRename(_0x4775ac){const _0xcf7fb3=[];if(_0x4775ac['is'](_0x4920('0x18'),_0x4920('0x7'))){let _0x4a20a1=_0x4775ac[_0x4920('0x19')];for(;_0x4a20a1&&_0x4a20a1['is'](_0x4920('0x18'),_0x4920('0x7'))&&_0x4a20a1[_0x4920('0xf')]('listIndent')>0x0;)_0xcf7fb3[_0x4920('0xd')](_0x4a20a1),_0x4a20a1=_0x4a20a1['nextSibling'];}return _0xcf7fb3;}export function downcastSplitMergeMarker(_0x1320f8,_0x875cd6,{showActiveMarker:_0x54e40b=!0x0}={}){const _0x1aad58=_0x1320f8[_0x4920('0xa')][_0x4920('0x1f')]('TrackChangesEditing');return(_0x2f42e2,_0x33a0cc,_0x2312db)=>{if(!_0x2312db[_0x4920('0x16')][_0x4920('0x1b')](_0x33a0cc['markerRange'],_0x2f42e2[_0x4920('0x17')]))return;const _0x5887da=_0x33a0cc[_0x4920('0x5')][_0x4920('0x10')](),_0x4146d3=_0x33a0cc[_0x4920('0x5')]['start'],_0x3a9cde=_0x1320f8['model'][_0x4920('0xe')];let _0x4d1db5=null,_0x4f7b9f=null,_0x596b7f=!0x1,_0x5a4591=!0x1;for(const _0x408a3c of _0x5887da){const _0x4b44cc=_0x408a3c[_0x4920('0x8')];_0x596b7f=_0x596b7f||_0x3a9cde[_0x4920('0x15')](_0x4b44cc);const _0x342862=_0x2312db[_0x4920('0x13')]['toViewElement'](_0x4b44cc);if(_0x342862&&_0x342862[_0x4920('0x9')]('addHighlight'))return;_0x4920('0x1e')==_0x408a3c[_0x4920('0x1d')]&&(_0x3a9cde['isBlock'](_0x4b44cc)&&!_0x3a9cde[_0x4920('0x0')](_0x4b44cc)&&(_0x4b44cc[_0x4920('0x19')]||_0x4146d3[_0x4920('0x11')]?_0x4d1db5&&_0x4d1db5[_0x4920('0x4')]==_0x4b44cc||(_0x4d1db5=_0x4b44cc,_0x527016(_0x408a3c[_0x4920('0x6')]),_0x5a4591=!0x0):_0x4f7b9f=_0x4f7b9f||_0x408a3c[_0x4920('0x6')]));}function _0x527016(_0x4d97fa){const _0x96e38d=_0x2312db[_0x4920('0xb')][_0x4920('0x1a')]('span',{'class':'ck-suggestion-marker-'+_0x875cd6}),_0x2db5df=_0x2312db[_0x4920('0x13')][_0x4920('0x2')](_0x4d97fa);_0x54e40b&&_0x1aad58[_0x4920('0xc')][_0x4920('0x3')](_0x33a0cc[_0x4920('0x20')])&&_0x2312db['writer'][_0x4920('0x14')](_0x4920('0x12'),_0x96e38d),_0x2312db[_0x4920('0xb')][_0x4920('0x1c')](_0x2db5df,_0x96e38d),_0x2312db[_0x4920('0x13')]['bindElementToMarker'](_0x96e38d,_0x33a0cc[_0x4920('0x20')]);}_0x596b7f||_0x5a4591||!_0x4f7b9f||_0x527016(_0x4f7b9f);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e57=['_saved','onAttributesChange','markers','nodeBefore','reduce','addMarkerName','_onDiscard','author','nodeAfter','start','change','addRange','getRange','_model','add','get','isIntersecting','getFirstMarker','previous','substr','creator','commentThread','type','decorate','attributes','getRanges','hasComments','onDiscard','set','clear','_markerNames','data','_onAttributesChange','head','_onAccept','toJSON','push','getAllAdjacentSuggestions','end','getFirstRange','split','addMarker','next','_isDataLoaded','getMarkers','map','setAttribute','@external','delete','length','getItems','removeMarkers','removeAttribute','isIntersectingWithRange','getMarkerNames','subType','accept','createdAt','from','onAccept','getMultiRangeId','filter'];(function(_0x5f3d46,_0x5e57a8){const _0x462864=function(_0x547630){while(--_0x547630){_0x5f3d46['push'](_0x5f3d46['shift']());}};_0x462864(++_0x5e57a8);}(_0x5e57,0x1f4));const _0x4628=function(_0x5f3d46,_0x5e57a8){_0x5f3d46=_0x5f3d46-0x0;let _0x462864=_0x5e57[_0x5f3d46];return _0x462864;};import{Element as _0x537a7d}from'ckeditor5/src/engine';import{ObservableMixin as _0x274390,uid as _0x116f45}from'ckeditor5/src/utils';import{cloneDeep as _0x1bb168,isEqual as _0x26ed56,set as _0x53c8a7,unset as _0x27ae5f}from'lodash-es';export default class u extends _0x274390(){constructor(_0x5be231,_0x4b3103){super(),this[_0x4628('0x27')]=!0x1,this['id']=_0x4b3103['id'],this[_0x4628('0x12')]=_0x4b3103[_0x4628('0x12')],this[_0x4628('0x33')]=_0x4b3103[_0x4628('0x33')]||null,this[_0x4628('0x3')]=_0x4b3103[_0x4628('0x3')],this[_0x4628('0x10')]=_0x4b3103[_0x4628('0x10')]||_0x4b3103[_0x4628('0x3')],this['isExternal']=Boolean(_0x4b3103[_0x4628('0x14')]&&_0x4b3103[_0x4628('0x14')][_0x4628('0x2b')]),this[_0x4628('0x1b')]=null,this['_model']=_0x5be231,this[_0x4628('0x1e')]=_0x4b3103[_0x4628('0x37')],this[_0x4628('0x2')]=_0x4b3103[_0x4628('0x17')],this['_onAttributesChange']=_0x4b3103[_0x4628('0x3b')],this['_markerNames']=new Set(),this[_0x4628('0x35')]=null,this[_0x4628('0x18')]('authoredAt',null),this[_0x4628('0x18')](_0x4628('0x14'),_0x4b3103[_0x4628('0x14')]||{}),this[_0x4628('0x18')](_0x4628('0xe'),null),this[_0x4628('0x18')]('next',null),this[_0x4628('0x18')]('commentThread',null),this[_0x4628('0x18')](_0x4628('0x3a'),!0x1),this[_0x4628('0x13')](_0x4628('0x34')),this[_0x4628('0x13')]('discard');}get[_0x4628('0x1d')](){let _0x318faa=this;for(;_0x318faa['previous'];)_0x318faa=_0x318faa[_0x4628('0xe')];return _0x318faa;}get[_0x4628('0x16')](){return!!this[_0x4628('0x11')]&&this[_0x4628('0x11')][_0x4628('0x2d')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x4628('0x1a')]['size'])return!0x1;return 0x6==Array['from'](this[_0x4628('0x1a')])[0x0][_0x4628('0x24')](':')[_0x4628('0x2d')];}get['isInContent'](){return null!==this[_0x4628('0xd')]();}[_0x4628('0x1')](_0x20d94a){this[_0x4628('0x1a')][_0x4628('0xa')](_0x20d94a);}[_0x4628('0x32')](){return Array[_0x4628('0x36')](this['_markerNames']);}['getMarkers'](){return this[_0x4628('0x32')]()[_0x4628('0x29')](_0x5ceda4=>this['_model'][_0x4628('0x3c')][_0x4628('0xb')](_0x5ceda4))[_0x4628('0x39')](_0x1d91e5=>_0x1d91e5);}[_0x4628('0xd')](){return this[_0x4628('0x28')]()[0x0]||null;}[_0x4628('0x2f')](){this[_0x4628('0x9')][_0x4628('0x6')](_0x471123=>{for(const _0x34e737 of this[_0x4628('0x28')]())_0x471123['removeMarker'](_0x34e737);}),this[_0x4628('0x1a')][_0x4628('0x19')]();}['removeMarker'](_0x24a82b){this[_0x4628('0x9')][_0x4628('0x6')](_0x40f9e0=>{_0x40f9e0['removeMarker'](_0x24a82b);}),this[_0x4628('0x1a')][_0x4628('0x2c')](_0x24a82b);}[_0x4628('0x7')](_0x1fd0a3){const _0x223dc1='suggestion:'+this[_0x4628('0x12')]+':'+this[_0x4628('0x33')]+':'+this['id']+':'+this[_0x4628('0x10')]['id']+':'+u[_0x4628('0x38')]();this[_0x4628('0x1')](_0x223dc1),this[_0x4628('0x9')][_0x4628('0x6')](_0x454f05=>{_0x454f05[_0x4628('0x25')](_0x223dc1,{'range':_0x1fd0a3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4628('0x31')](_0x18db33){for(const _0x4241b6 of this[_0x4628('0x15')]())if(_0x4241b6[_0x4628('0xc')](_0x18db33))return!0x0;return!0x1;}[_0x4628('0x15')](){return this[_0x4628('0x28')]()[_0x4628('0x29')](_0x156f38=>_0x156f38[_0x4628('0x8')]());}[_0x4628('0x2e')](){return this[_0x4628('0x15')]()[_0x4628('0x0')]((_0x5e6d4b,_0x2cf422)=>[..._0x5e6d4b,..._0x2cf422[_0x4628('0x2e')]()],[]);}[_0x4628('0x23')](){var _0x27f450;return(null===(_0x27f450=this[_0x4628('0xd')]())||void 0x0===_0x27f450?void 0x0:_0x27f450['getRange']())||null;}['getContainedElement'](){const _0x162da7=this[_0x4628('0x15')]();if(0x1!=_0x162da7[_0x4628('0x2d')])return null;const _0x14ae7f=_0x162da7[0x0],_0x21d0a6=_0x14ae7f[_0x4628('0x5')][_0x4628('0x4')],_0x22231e=_0x14ae7f[_0x4628('0x22')][_0x4628('0x3d')];return _0x21d0a6 instanceof _0x537a7d?_0x21d0a6!=_0x22231e?null:_0x21d0a6:null;}[_0x4628('0x34')](){this['_onAccept'](this[_0x4628('0x15')](),this[_0x4628('0x1b')],this[_0x4628('0x14')]),this[_0x4628('0x2f')]();}['discard'](){this[_0x4628('0x2')](this[_0x4628('0x15')](),this[_0x4628('0x1b')],this[_0x4628('0x14')]),this[_0x4628('0x2f')]();}[_0x4628('0x21')](){const _0x138b77=[];let _0x53e888=this[_0x4628('0x1d')];for(;_0x53e888;)_0x138b77[_0x4628('0x20')](_0x53e888),_0x53e888=_0x53e888[_0x4628('0x26')];return _0x138b77;}[_0x4628('0x2a')](_0x8159c,_0x5c4e39){const _0xb27e3e=_0x1bb168(this[_0x4628('0x14')]);_0x53c8a7(_0xb27e3e,_0x8159c,_0x5c4e39),_0x26ed56(_0xb27e3e,this[_0x4628('0x14')])||(this[_0x4628('0x14')]=_0xb27e3e,this[_0x4628('0x1c')](_0xb27e3e));}[_0x4628('0x30')](_0x191d65){const _0x2a94f1=_0x1bb168(this[_0x4628('0x14')]);_0x27ae5f(_0x2a94f1,_0x191d65),_0x26ed56(_0x2a94f1,this[_0x4628('0x14')])||(this[_0x4628('0x14')]=_0x2a94f1,this[_0x4628('0x1c')](this[_0x4628('0x14')]));}[_0x4628('0x1f')](){return{'id':this['id'],'type':this[_0x4628('0x33')]?this[_0x4628('0x12')]+':'+this['subType']:this['type'],'authorId':this[_0x4628('0x10')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x4628('0x16')],'data':this['data'],'attributes':this['attributes']};}static[_0x4628('0x38')](){return _0x116f45()[_0x4628('0xf')](0x1,0x5);}}
23
+ const _0x2b8d=['from','decorate','_model','getFirstMarker','markers','hasComments','@external','discard','subType','onAttributesChange','getMarkerNames','split','attributes','getMarkers','next','getItems','onAccept','getRanges','creator','reduce','type','_onAccept','clear','nodeAfter','isMultiRange','setAttribute','previous','filter','author','getFirstRange','commentThread','onDiscard','substr','_onAttributesChange','removeMarker','removeMarkers','addMarkerName','getRange','addMarker','authoredAt','get','getMultiRangeId','isExternal','suggestion:','getAllAdjacentSuggestions','size','head','set','length','accept','end','_isDataLoaded','nodeBefore','isIntersectingWithRange','data','_markerNames','removeAttribute','map','createdAt','_onDiscard','change','getContainedElement'];(function(_0x558eef,_0x2b8dfc){const _0x2e70b8=function(_0x536c3c){while(--_0x536c3c){_0x558eef['push'](_0x558eef['shift']());}};_0x2e70b8(++_0x2b8dfc);}(_0x2b8d,0x1cb));const _0x2e70=function(_0x558eef,_0x2b8dfc){_0x558eef=_0x558eef-0x0;let _0x2e70b8=_0x2b8d[_0x558eef];return _0x2e70b8;};import{Element as _0x675665}from'ckeditor5/src/engine';import{ObservableMixin as _0x224d26,uid as _0x4a2373}from'ckeditor5/src/utils';import{cloneDeep as _0x171b68,isEqual as _0x50d259,set as _0x2d51a1,unset as _0x3077bb}from'lodash-es';export default class u extends _0x224d26(){constructor(_0x34df69,_0x1f1fe7){super(),this[_0x2e70('0x1a')]=!0x1,this['id']=_0x1f1fe7['id'],this[_0x2e70('0x39')]=_0x1f1fe7['type'],this[_0x2e70('0x2d')]=_0x1f1fe7[_0x2e70('0x2d')]||null,this[_0x2e70('0x3')]=_0x1f1fe7[_0x2e70('0x3')],this[_0x2e70('0x37')]=_0x1f1fe7[_0x2e70('0x37')]||_0x1f1fe7[_0x2e70('0x3')],this[_0x2e70('0x11')]=Boolean(_0x1f1fe7[_0x2e70('0x31')]&&_0x1f1fe7['attributes'][_0x2e70('0x2b')]),this['data']=null,this[_0x2e70('0x27')]=_0x34df69,this[_0x2e70('0x3a')]=_0x1f1fe7[_0x2e70('0x35')],this[_0x2e70('0x22')]=_0x1f1fe7[_0x2e70('0x6')],this[_0x2e70('0x8')]=_0x1f1fe7[_0x2e70('0x2e')],this[_0x2e70('0x1e')]=new Set(),this[_0x2e70('0x21')]=null,this[_0x2e70('0x16')](_0x2e70('0xe'),null),this[_0x2e70('0x16')](_0x2e70('0x31'),_0x1f1fe7[_0x2e70('0x31')]||{}),this['set'](_0x2e70('0x1'),null),this[_0x2e70('0x16')]('next',null),this[_0x2e70('0x16')](_0x2e70('0x5'),null),this[_0x2e70('0x16')]('_saved',!0x1),this[_0x2e70('0x26')](_0x2e70('0x18')),this['decorate'](_0x2e70('0x2c'));}get['head'](){let _0x9e557d=this;for(;_0x9e557d[_0x2e70('0x1')];)_0x9e557d=_0x9e557d[_0x2e70('0x1')];return _0x9e557d;}get[_0x2e70('0x2a')](){return!!this[_0x2e70('0x5')]&&this[_0x2e70('0x5')]['length']>0x0;}get[_0x2e70('0x3d')](){if(0x0==this[_0x2e70('0x1e')][_0x2e70('0x14')])return!0x1;return 0x6==Array[_0x2e70('0x25')](this[_0x2e70('0x1e')])[0x0][_0x2e70('0x30')](':')[_0x2e70('0x17')];}get['isInContent'](){return null!==this[_0x2e70('0x28')]();}[_0x2e70('0xb')](_0x2c4670){this[_0x2e70('0x1e')]['add'](_0x2c4670);}[_0x2e70('0x2f')](){return Array[_0x2e70('0x25')](this[_0x2e70('0x1e')]);}[_0x2e70('0x32')](){return this[_0x2e70('0x2f')]()[_0x2e70('0x20')](_0x4619df=>this[_0x2e70('0x27')][_0x2e70('0x29')][_0x2e70('0xf')](_0x4619df))[_0x2e70('0x2')](_0x202893=>_0x202893);}[_0x2e70('0x28')](){return this[_0x2e70('0x32')]()[0x0]||null;}[_0x2e70('0xa')](){this['_model'][_0x2e70('0x23')](_0x34c74b=>{for(const _0x411e3f of this[_0x2e70('0x32')]())_0x34c74b[_0x2e70('0x9')](_0x411e3f);}),this['_markerNames'][_0x2e70('0x3b')]();}[_0x2e70('0x9')](_0x594663){this['_model'][_0x2e70('0x23')](_0x4d881b=>{_0x4d881b[_0x2e70('0x9')](_0x594663);}),this['_markerNames']['delete'](_0x594663);}['addRange'](_0x51888c){const _0x10d927=_0x2e70('0x12')+this[_0x2e70('0x39')]+':'+this[_0x2e70('0x2d')]+':'+this['id']+':'+this[_0x2e70('0x37')]['id']+':'+u[_0x2e70('0x10')]();this[_0x2e70('0xb')](_0x10d927),this[_0x2e70('0x27')][_0x2e70('0x23')](_0x391436=>{_0x391436[_0x2e70('0xd')](_0x10d927,{'range':_0x51888c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2e70('0x1c')](_0x301632){for(const _0x512aa1 of this['getRanges']())if(_0x512aa1['isIntersecting'](_0x301632))return!0x0;return!0x1;}[_0x2e70('0x36')](){return this['getMarkers']()['map'](_0x3b5c3f=>_0x3b5c3f[_0x2e70('0xc')]());}[_0x2e70('0x34')](){return this[_0x2e70('0x36')]()[_0x2e70('0x38')]((_0x14304e,_0x4c6ae2)=>[..._0x14304e,..._0x4c6ae2['getItems']()],[]);}[_0x2e70('0x4')](){var _0x18656f;return(null===(_0x18656f=this[_0x2e70('0x28')]())||void 0x0===_0x18656f?void 0x0:_0x18656f['getRange']())||null;}[_0x2e70('0x24')](){const _0x1fa947=this[_0x2e70('0x36')]();if(0x1!=_0x1fa947[_0x2e70('0x17')])return null;const _0xf741e2=_0x1fa947[0x0],_0x2bcf34=_0xf741e2['start'][_0x2e70('0x3c')],_0x252914=_0xf741e2[_0x2e70('0x19')][_0x2e70('0x1b')];return _0x2bcf34 instanceof _0x675665?_0x2bcf34!=_0x252914?null:_0x2bcf34:null;}['accept'](){this[_0x2e70('0x3a')](this['getRanges'](),this[_0x2e70('0x1d')],this[_0x2e70('0x31')]),this[_0x2e70('0xa')]();}[_0x2e70('0x2c')](){this[_0x2e70('0x22')](this[_0x2e70('0x36')](),this[_0x2e70('0x1d')],this[_0x2e70('0x31')]),this['removeMarkers']();}[_0x2e70('0x13')](){const _0x25f320=[];let _0x1dfe3b=this[_0x2e70('0x15')];for(;_0x1dfe3b;)_0x25f320['push'](_0x1dfe3b),_0x1dfe3b=_0x1dfe3b[_0x2e70('0x33')];return _0x25f320;}[_0x2e70('0x0')](_0x6994ab,_0x581a32){const _0x224af7=_0x171b68(this[_0x2e70('0x31')]);_0x2d51a1(_0x224af7,_0x6994ab,_0x581a32),_0x50d259(_0x224af7,this[_0x2e70('0x31')])||(this[_0x2e70('0x31')]=_0x224af7,this['_onAttributesChange'](_0x224af7));}[_0x2e70('0x1f')](_0x49dee7){const _0x42b6a0=_0x171b68(this['attributes']);_0x3077bb(_0x42b6a0,_0x49dee7),_0x50d259(_0x42b6a0,this['attributes'])||(this[_0x2e70('0x31')]=_0x42b6a0,this[_0x2e70('0x8')](this[_0x2e70('0x31')]));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this[_0x2e70('0x2d')]:this[_0x2e70('0x39')],'authorId':this[_0x2e70('0x37')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x2e70('0x31')]};}static[_0x2e70('0x10')](){return _0x4a2373()[_0x2e70('0x7')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2bad=['length','_customCallbacks','end','*Change\x20to:*\x20%0','skip','add','key','_itemLabels','data','start','_handleInsertRemoveSuggestionDescription','Object','addFormat','_itemLabelsCallbacks','format','function','quantity','elementEnd','Container','removeFormat','_handleCustomCallbackDescription','EmptyContainer','_handleAttributeSuggestionDescription','_locale','getDescriptions','*Merge:*\x20%0','push','*Split:*\x20%0','_attributeLabels','getWalker','text','name','removeObject','item','previousSibling','map','isEqual','insertion','normal','isEmpty','getItemLabel','element','*Insert:*\x20%0','pop','isInContent','set','replace','match','nodeAfter','attribute','subType','isObject','indexOf','registerDescriptionCallback','join','_handleRenameSuggestionDescription','get','remove','removeEmptyContainer','*Set\x20format:*\x20%0','_addDescriptionItems','_schema','has','$1\x20$2','deletion','$textProxy','*Remove:*\x20%0','type','$text','ELEMENT_SPACE','getFirstRange'];(function(_0x49d925,_0x2bad40){const _0x4e2a79=function(_0x1ac116){while(--_0x1ac116){_0x49d925['push'](_0x49d925['shift']());}};_0x4e2a79(++_0x2bad40);}(_0x2bad,0x19a));const _0x4e2a=function(_0x49d925,_0x2bad40){_0x49d925=_0x49d925-0x0;let _0x4e2a79=_0x2bad[_0x49d925];return _0x4e2a79;};import{getTranslation as _0x3f1024}from'./utils/common-translations';import{priorities as _0x474877,insertToPriorityArray as _0x449b84}from'ckeditor5/src/utils';import{renameAttributeKey as _0x4b3d76}from'./trackchangesediting';export default class f{constructor(_0x4243d0,_0x201635){this[_0x4e2a('0x11')]=[],this[_0x4e2a('0x17')]=new Map(),this[_0x4e2a('0x1d')]=[],this[_0x4e2a('0x2c')]=new Map(),this[_0x4e2a('0x6')]=_0x4243d0,this[_0x4e2a('0x27')]=_0x201635;}[_0x4e2a('0x28')](_0x1c392f){const _0x294b6b=[],_0x5e1c88=new Set(),_0x5d90cf=new Set();for(let _0x5a00bf=0x0;_0x5a00bf<_0x1c392f['length'];_0x5a00bf++){const _0x2c556c=_0x1c392f[_0x5a00bf];if(!_0x2c556c[_0x4e2a('0x3c')])continue;const _0x111d1f=this[_0x4e2a('0x24')](_0x2c556c);if(_0x111d1f){if(null!=_0x2c556c[_0x4e2a('0x42')]){if(_0x5e1c88['has'](_0x2c556c[_0x4e2a('0x42')]))continue;_0x5e1c88[_0x4e2a('0x15')](_0x2c556c[_0x4e2a('0x42')]);}_0x294b6b['push'](_0x111d1f);}else{if(_0x4e2a('0x41')!=_0x2c556c['type'])_0x4e2a('0x35')!=_0x2c556c[_0x4e2a('0xc')]&&'deletion'!=_0x2c556c[_0x4e2a('0xc')]||this[_0x4e2a('0x1a')](_0x294b6b,_0x2c556c,_0x1c392f[_0x5a00bf+0x1]);else{const _0x2e4211=_0x2c556c[_0x4e2a('0x18')][_0x4e2a('0x16')];if(_0x5d90cf[_0x4e2a('0x7')](_0x2e4211))continue;_0x5d90cf[_0x4e2a('0x15')](_0x2c556c[_0x4e2a('0x18')][_0x4e2a('0x16')]),_0x2e4211==_0x4b3d76?this['_handleRenameSuggestionDescription'](_0x294b6b,_0x2c556c):this[_0x4e2a('0x26')](_0x294b6b,_0x2c556c);}}}return this['_resolveDescriptionItems'](_0x294b6b);}[_0x4e2a('0x45')](_0x1db3a9){this['_customCallbacks']['push'](_0x1db3a9);}['registerElementLabel'](_0x1ef336,_0x4e920b,_0x5d5458=_0x474877[_0x4e2a('0x36')]){_0x4e2a('0x1f')==typeof _0x1ef336?_0x449b84(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ef336,'label':_0x4e920b,'priority':_0x5d5458}):this[_0x4e2a('0x17')][_0x4e2a('0x3d')](_0x1ef336,_0x4e920b);}['registerAttributeLabel'](_0x492255,_0x5ddaf1){this['_attributeLabels'][_0x4e2a('0x3d')](_0x492255,_0x5ddaf1);}[_0x4e2a('0x38')](_0x4a2b07,_0x46ce56=0x1){let _0x115204;for(const _0x4060db of this[_0x4e2a('0x1d')])if(_0x4060db['matchingCallback'](_0x4a2b07)){_0x115204=_0x4060db['label'];break;}return _0x115204||(_0x115204=this['_itemLabels'][_0x4e2a('0x1')](_0x4a2b07[_0x4e2a('0x2f')])),_0x115204?_0x115204(_0x46ce56):0x1!==_0x46ce56?_0x46ce56+'\x20'+_0x4a2b07[_0x4e2a('0x2f')]+'s':''+_0x4a2b07[_0x4e2a('0x2f')];}[_0x4e2a('0x5')](_0x1e88bb,_0x5b553a){const _0x4b13c0=_0x5b553a[_0x4e2a('0xf')]()[_0x4e2a('0x2d')](),_0x17733d=_0x4e2a('0x35')==_0x5b553a['type']?_0x4e2a('0x15'):_0x4e2a('0x2');for(const _0x772dc6 of _0x4b13c0){const _0x5f4b7f=_0x772dc6[_0x4e2a('0x31')],_0x29c19d=_0x1e88bb[_0x1e88bb[_0x4e2a('0x10')]-0x1];if(_0x5f4b7f['is'](_0x4e2a('0xa')))_0x29c19d&&_0x29c19d[_0x4e2a('0xc')][_0x4e2a('0x44')](_0x4e2a('0x22'))>-0x1&&_0x1e88bb['pop'](),_0x29c19d&&_0x4e2a('0x2e')==_0x29c19d[_0x4e2a('0xc')]?_0x29c19d[_0x17733d]+=_0x5f4b7f['data']:_0x1e88bb[_0x4e2a('0x2a')]({'type':'text','add':_0x4e2a('0x15')==_0x17733d?_0x5f4b7f[_0x4e2a('0x18')]:'','remove':_0x4e2a('0x2')==_0x17733d?_0x5f4b7f[_0x4e2a('0x18')]:''});else{if(this[_0x4e2a('0x6')][_0x4e2a('0x43')](_0x5f4b7f)){const _0x50ab65=_0x5f4b7f;if(_0x29c19d&&_0x29c19d[_0x4e2a('0xc')][_0x4e2a('0x44')](_0x4e2a('0x22'))>-0x1&&_0x1e88bb[_0x4e2a('0x3b')](),_0x4e2a('0x21')==_0x772dc6[_0x4e2a('0xc')])continue;_0x29c19d&&_0x29c19d[_0x4e2a('0xc')]==_0x17733d+_0x4e2a('0x1b')&&_0x29c19d[_0x4e2a('0x39')][_0x4e2a('0x2f')]==_0x50ab65['name']?_0x29c19d[_0x4e2a('0x20')]++:_0x1e88bb['push']({'type':_0x17733d+_0x4e2a('0x1b'),'element':_0x50ab65,'quantity':0x1}),_0x4b13c0[_0x4e2a('0x14')](_0x425582=>!(_0x4e2a('0x21')==_0x425582['type']&&_0x425582[_0x4e2a('0x31')]==_0x5f4b7f));}else{if(this[_0x4e2a('0x6')]['checkChild'](_0x5f4b7f,_0x4e2a('0xd'))||_0x5f4b7f['is'](_0x4e2a('0x39'),'softBreak')){const _0x137d11=_0x5f4b7f;if(_0x4e2a('0x15')==_0x17733d&&'elementStart'==_0x772dc6['type']||'remove'==_0x17733d&&'elementEnd'==_0x772dc6[_0x4e2a('0xc')])continue;if(_0x29c19d&&-0x1==_0x29c19d[_0x4e2a('0xc')][_0x4e2a('0x44')]('Container')){_0x4e2a('0x2e')==_0x29c19d[_0x4e2a('0xc')]&&(_0x29c19d[_0x17733d]+='\x0a');continue;}let _0x2ff14e;if(_0x2ff14e=_0x4e2a('0x15')==_0x17733d?_0x137d11['nextSibling']&&!this[_0x4e2a('0x6')][_0x4e2a('0x43')](_0x137d11['nextSibling'])?_0x137d11['nextSibling']:null:_0x137d11['previousSibling']&&!this[_0x4e2a('0x6')][_0x4e2a('0x43')](_0x137d11['previousSibling'])?_0x137d11[_0x4e2a('0x32')]:null,_0x137d11['isEmpty']||_0x2ff14e&&_0x2ff14e[_0x4e2a('0x37')]){const _0x10cb75=_0x2ff14e&&_0x2ff14e['isEmpty']?_0x2ff14e:_0x137d11;_0x29c19d&&_0x29c19d[_0x4e2a('0xc')]==_0x17733d+_0x4e2a('0x25')&&_0x29c19d['element']['name']==_0x10cb75[_0x4e2a('0x2f')]?_0x29c19d[_0x4e2a('0x20')]++:_0x1e88bb[_0x4e2a('0x2a')]({'type':_0x17733d+_0x4e2a('0x25'),'element':_0x10cb75,'quantity':0x1});}else _0x1e88bb[_0x4e2a('0x2a')]({'type':_0x17733d+_0x4e2a('0x22'),'element':_0x137d11});}}}}}['_resolveDescriptionItems'](_0xc5edde){const _0x3e4024=this[_0x4e2a('0x27')],_0x418d32=[],_0x3b5c37=[],_0x370f5b=[];for(const _0x26791a of _0xc5edde)switch(_0x26791a[_0x4e2a('0xc')]){case _0x4e2a('0x2e'):if(_0x26791a['add']=_0x26791a[_0x4e2a('0x15')][_0x4e2a('0x3e')](/(\S)\u000A+(\S)/g,_0x4e2a('0x8'))[_0x4e2a('0x3e')](/\u000A/g,''),_0x26791a[_0x4e2a('0x2')]=_0x26791a[_0x4e2a('0x2')][_0x4e2a('0x3e')](/(\S)\u000A+(\S)/g,_0x4e2a('0x8'))['replace'](/\u000A/g,''),''!=_0x26791a[_0x4e2a('0x15')]&&''!=_0x26791a[_0x4e2a('0x2')]){_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x3e'),'content':_0x3f1024(_0x3e4024,'REPLACE_TEXT',['\x22'+_0x26791a[_0x4e2a('0x2')]+'\x22','\x22'+_0x26791a['add']+'\x22'])});continue;}if(null!=_0x26791a[_0x4e2a('0x15')][_0x4e2a('0x3f')](/^ +$/)){_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x35'),'content':_0x3f1024(_0x3e4024,_0x4e2a('0x3a'),_0x3f1024(_0x3e4024,_0x4e2a('0xe'),_0x26791a['add'][_0x4e2a('0x10')]))});continue;}if(null!=_0x26791a[_0x4e2a('0x2')][_0x4e2a('0x3f')](/^ +$/)){_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x9'),'content':_0x3f1024(_0x3e4024,_0x4e2a('0xb'),_0x3f1024(_0x3e4024,_0x4e2a('0xe'),_0x26791a[_0x4e2a('0x2')][_0x4e2a('0x10')]))});continue;}if(''!=_0x26791a['add']){_0x418d32[_0x4e2a('0x2a')]({'type':'insertion','content':_0x3f1024(_0x3e4024,'*Insert:*\x20%0','\x22'+_0x26791a['add']+'\x22')});continue;}_0x418d32[_0x4e2a('0x2a')]({'type':'deletion','content':_0x3f1024(_0x3e4024,_0x4e2a('0xb'),'\x22'+_0x26791a[_0x4e2a('0x2')]+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x418d32[_0x4e2a('0x2a')]({'type':'insertion','content':_0x3f1024(_0x3e4024,_0x4e2a('0x3a'),this[_0x4e2a('0x38')](_0x26791a[_0x4e2a('0x39')],_0x26791a[_0x4e2a('0x20')]))});continue;case _0x4e2a('0x3'):case _0x4e2a('0x30'):_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x9'),'content':_0x3f1024(_0x3e4024,_0x4e2a('0xb'),this[_0x4e2a('0x38')](_0x26791a['element'],_0x26791a[_0x4e2a('0x20')]))});continue;case'addContainer':_0x418d32[_0x4e2a('0x2a')]({'type':'insertion','content':_0x3f1024(_0x3e4024,_0x4e2a('0x2b'),this[_0x4e2a('0x38')](_0x26791a[_0x4e2a('0x39')],_0x26791a[_0x4e2a('0x20')]))});continue;case'removeContainer':_0x418d32[_0x4e2a('0x2a')]({'type':'deletion','content':_0x3f1024(_0x3e4024,_0x4e2a('0x29'),this[_0x4e2a('0x38')](_0x26791a['element'],_0x26791a[_0x4e2a('0x20')]))});continue;case'addFormat':_0x3b5c37['push'](_0x26791a[_0x4e2a('0x16')]);continue;case _0x4e2a('0x23'):_0x370f5b[_0x4e2a('0x2a')](_0x26791a['key']);continue;default:_0x418d32[_0x4e2a('0x2a')](_0x26791a);}if(_0x3b5c37[_0x4e2a('0x10')]){const _0x404951=_0x3b5c37[_0x4e2a('0x33')](_0x549952=>this[_0x4e2a('0x2c')][_0x4e2a('0x7')](_0x549952)?this[_0x4e2a('0x2c')][_0x4e2a('0x1')](_0x549952):_0x549952)[_0x4e2a('0x46')](',\x20');_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x1e'),'content':_0x3f1024(this[_0x4e2a('0x27')],_0x4e2a('0x4'),_0x404951)});}if(_0x370f5b[_0x4e2a('0x10')]){const _0x5494a0=_0x370f5b[_0x4e2a('0x33')](_0x4a57de=>this[_0x4e2a('0x2c')][_0x4e2a('0x7')](_0x4a57de)?this[_0x4e2a('0x2c')][_0x4e2a('0x1')](_0x4a57de):_0x4a57de)['join'](',\x20');_0x418d32[_0x4e2a('0x2a')]({'type':'format','content':_0x3f1024(this[_0x4e2a('0x27')],'*Remove\x20format:*\x20%0',_0x5494a0)});}return _0x418d32;}[_0x4e2a('0x24')](_0x258c4d){for(const _0x4265f8 of this[_0x4e2a('0x11')]){const _0x342d28=_0x4265f8(_0x258c4d);if(_0x342d28&&_0x4e2a('0xc')in _0x342d28)return _0x342d28;}}['_handleAttributeSuggestionDescription'](_0x20623e,_0x12af96){const _0x5b920f=_0x12af96[_0x4e2a('0x18')],_0xd435eb=void 0x0===_0x5b920f['newValue']?_0x4e2a('0x23'):_0x4e2a('0x1c');_0x20623e[_0x4e2a('0x2a')]({'type':_0xd435eb,'key':_0x5b920f[_0x4e2a('0x16')]});}[_0x4e2a('0x0')](_0x497cfc,_0x5a416b){_0x497cfc[_0x4e2a('0x2a')]({'type':_0x4e2a('0x1e'),'content':_0x3f1024(this[_0x4e2a('0x27')],_0x4e2a('0x13'),this[_0x4e2a('0x38')](_0x5a416b[_0x4e2a('0xf')]()[_0x4e2a('0x19')][_0x4e2a('0x40')],0x1))});}[_0x4e2a('0x1a')](_0x75c24f,_0x296d28,_0x300b6b){if(this['_addDescriptionItems'](_0x75c24f,_0x296d28),_0x300b6b&&_0x300b6b[_0x4e2a('0xf')]()&&!_0x296d28[_0x4e2a('0xf')]()[_0x4e2a('0x12')][_0x4e2a('0x34')](_0x300b6b[_0x4e2a('0xf')]()['start'])){const _0x1463ce=_0x75c24f[_0x75c24f[_0x4e2a('0x10')]-0x1],_0x53acc0=_0x4e2a('0x35')==_0x296d28[_0x4e2a('0xc')]?_0x4e2a('0x15'):'remove';_0x1463ce&&'text'==_0x1463ce[_0x4e2a('0xc')]&&(_0x1463ce[_0x53acc0]+='\x0a');}}}
23
+ const _0x27fc=['$text','quantity','_locale','get','_itemLabels','removeFormat','format','push','_attributeLabels','map','_handleAttributeSuggestionDescription','end','name','softBreak','match','type','*Remove:*\x20%0','has','*Change\x20to:*\x20%0','isInContent','$1\x20$2','*Merge:*\x20%0','Container','_handleCustomCallbackDescription','add','text','nextSibling','newValue','_handleRenameSuggestionDescription','addContainer','key','item','getItemLabel','remove','elementStart','getFirstRange','label','pop','registerAttributeLabel','_addDescriptionItems','element','subType','getWalker','start','insertion','_itemLabelsCallbacks','_customCallbacks','registerDescriptionCallback','getDescriptions','set','*Insert:*\x20%0','_handleInsertRemoveSuggestionDescription','*Remove\x20format:*\x20%0','matchingCallback','length','ELEMENT_SPACE','Object','removeEmptyContainer','data','addObject','skip','attribute','*Split:*\x20%0','previousSibling','registerElementLabel','isObject','indexOf','_schema','_resolveDescriptionItems','nodeAfter','elementEnd','removeContainer','EmptyContainer','deletion','replace','addFormat','isEqual','isEmpty','join'];(function(_0x896991,_0x27fc45){const _0x36688a=function(_0x15ca41){while(--_0x15ca41){_0x896991['push'](_0x896991['shift']());}};_0x36688a(++_0x27fc45);}(_0x27fc,0x88));const _0x3668=function(_0x896991,_0x27fc45){_0x896991=_0x896991-0x0;let _0x36688a=_0x27fc[_0x896991];return _0x36688a;};import{getTranslation as _0x373532}from'./utils/common-translations';import{priorities as _0x5b5709,insertToPriorityArray as _0xd71576}from'ckeditor5/src/utils';import{renameAttributeKey as _0x4d149a}from'./trackchangesediting';export default class f{constructor(_0x525239,_0x4c3bc3){this[_0x3668('0x44')]=[],this[_0x3668('0x1a')]=new Map(),this[_0x3668('0x43')]=[],this[_0x3668('0x1e')]=new Map(),this[_0x3668('0xa')]=_0x525239,this[_0x3668('0x18')]=_0x4c3bc3;}[_0x3668('0x46')](_0x59bee2){const _0x117029=[],_0x5c2010=new Set(),_0x12323c=new Set();for(let _0x108cc6=0x0;_0x108cc6<_0x59bee2[_0x3668('0x4c')];_0x108cc6++){const _0x1af494=_0x59bee2[_0x108cc6];if(!_0x1af494[_0x3668('0x29')])continue;const _0x1350fa=this['_handleCustomCallbackDescription'](_0x1af494);if(_0x1350fa){if(null!=_0x1af494[_0x3668('0x3f')]){if(_0x5c2010[_0x3668('0x27')](_0x1af494[_0x3668('0x3f')]))continue;_0x5c2010['add'](_0x1af494['subType']);}_0x117029[_0x3668('0x1d')](_0x1350fa);}else{if(_0x3668('0x4')!=_0x1af494[_0x3668('0x25')])_0x3668('0x42')!=_0x1af494[_0x3668('0x25')]&&_0x3668('0x10')!=_0x1af494['type']||this[_0x3668('0x49')](_0x117029,_0x1af494,_0x59bee2[_0x108cc6+0x1]);else{const _0x30b536=_0x1af494[_0x3668('0x1')][_0x3668('0x34')];if(_0x12323c[_0x3668('0x27')](_0x30b536))continue;_0x12323c[_0x3668('0x2e')](_0x1af494[_0x3668('0x1')][_0x3668('0x34')]),_0x30b536==_0x4d149a?this[_0x3668('0x32')](_0x117029,_0x1af494):this['_handleAttributeSuggestionDescription'](_0x117029,_0x1af494);}}}return this[_0x3668('0xb')](_0x117029);}[_0x3668('0x45')](_0x439ac1){this['_customCallbacks'][_0x3668('0x1d')](_0x439ac1);}[_0x3668('0x7')](_0x2773d7,_0x3c4bfd,_0x363867=_0x5b5709['normal']){'function'==typeof _0x2773d7?_0xd71576(this[_0x3668('0x43')],{'matchingCallback':_0x2773d7,'label':_0x3c4bfd,'priority':_0x363867}):this['_itemLabels']['set'](_0x2773d7,_0x3c4bfd);}[_0x3668('0x3c')](_0x1fa74d,_0xd21adb){this[_0x3668('0x1e')][_0x3668('0x47')](_0x1fa74d,_0xd21adb);}[_0x3668('0x36')](_0x490d5a,_0x4f96c2=0x1){let _0x534f1d;for(const _0x5bcfae of this[_0x3668('0x43')])if(_0x5bcfae[_0x3668('0x4b')](_0x490d5a)){_0x534f1d=_0x5bcfae[_0x3668('0x3a')];break;}return _0x534f1d||(_0x534f1d=this[_0x3668('0x1a')][_0x3668('0x19')](_0x490d5a[_0x3668('0x22')])),_0x534f1d?_0x534f1d(_0x4f96c2):0x1!==_0x4f96c2?_0x4f96c2+'\x20'+_0x490d5a['name']+'s':''+_0x490d5a[_0x3668('0x22')];}[_0x3668('0x3d')](_0x569a2a,_0x843b44){const _0x11dda8=_0x843b44[_0x3668('0x39')]()[_0x3668('0x40')](),_0x6b58c9=_0x3668('0x42')==_0x843b44['type']?_0x3668('0x2e'):_0x3668('0x37');for(const _0x4d8ff3 of _0x11dda8){const _0x122e68=_0x4d8ff3[_0x3668('0x35')],_0x44e7cb=_0x569a2a[_0x569a2a[_0x3668('0x4c')]-0x1];if(_0x122e68['is']('$textProxy'))_0x44e7cb&&_0x44e7cb[_0x3668('0x25')][_0x3668('0x9')](_0x3668('0x2c'))>-0x1&&_0x569a2a[_0x3668('0x3b')](),_0x44e7cb&&_0x3668('0x2f')==_0x44e7cb[_0x3668('0x25')]?_0x44e7cb[_0x6b58c9]+=_0x122e68['data']:_0x569a2a['push']({'type':_0x3668('0x2f'),'add':_0x3668('0x2e')==_0x6b58c9?_0x122e68['data']:'','remove':'remove'==_0x6b58c9?_0x122e68['data']:''});else{if(this['_schema']['isObject'](_0x122e68)){const _0x486b54=_0x122e68;if(_0x44e7cb&&_0x44e7cb[_0x3668('0x25')][_0x3668('0x9')](_0x3668('0x2c'))>-0x1&&_0x569a2a[_0x3668('0x3b')](),_0x3668('0xd')==_0x4d8ff3[_0x3668('0x25')])continue;_0x44e7cb&&_0x44e7cb[_0x3668('0x25')]==_0x6b58c9+_0x3668('0x4e')&&_0x44e7cb[_0x3668('0x3e')][_0x3668('0x22')]==_0x486b54[_0x3668('0x22')]?_0x44e7cb['quantity']++:_0x569a2a[_0x3668('0x1d')]({'type':_0x6b58c9+_0x3668('0x4e'),'element':_0x486b54,'quantity':0x1}),_0x11dda8[_0x3668('0x3')](_0x3871f6=>!('elementEnd'==_0x3871f6[_0x3668('0x25')]&&_0x3871f6['item']==_0x122e68));}else{if(this[_0x3668('0xa')]['checkChild'](_0x122e68,_0x3668('0x16'))||_0x122e68['is'](_0x3668('0x3e'),_0x3668('0x23'))){const _0x19b8a4=_0x122e68;if('add'==_0x6b58c9&&_0x3668('0x38')==_0x4d8ff3[_0x3668('0x25')]||_0x3668('0x37')==_0x6b58c9&&'elementEnd'==_0x4d8ff3[_0x3668('0x25')])continue;if(_0x44e7cb&&-0x1==_0x44e7cb[_0x3668('0x25')][_0x3668('0x9')](_0x3668('0x2c'))){_0x3668('0x2f')==_0x44e7cb[_0x3668('0x25')]&&(_0x44e7cb[_0x6b58c9]+='\x0a');continue;}let _0x285e37;if(_0x285e37=_0x3668('0x2e')==_0x6b58c9?_0x19b8a4[_0x3668('0x30')]&&!this[_0x3668('0xa')]['isObject'](_0x19b8a4[_0x3668('0x30')])?_0x19b8a4[_0x3668('0x30')]:null:_0x19b8a4[_0x3668('0x6')]&&!this['_schema'][_0x3668('0x8')](_0x19b8a4[_0x3668('0x6')])?_0x19b8a4[_0x3668('0x6')]:null,_0x19b8a4[_0x3668('0x14')]||_0x285e37&&_0x285e37['isEmpty']){const _0x2bb532=_0x285e37&&_0x285e37[_0x3668('0x14')]?_0x285e37:_0x19b8a4;_0x44e7cb&&_0x44e7cb[_0x3668('0x25')]==_0x6b58c9+_0x3668('0xf')&&_0x44e7cb[_0x3668('0x3e')][_0x3668('0x22')]==_0x2bb532['name']?_0x44e7cb['quantity']++:_0x569a2a[_0x3668('0x1d')]({'type':_0x6b58c9+_0x3668('0xf'),'element':_0x2bb532,'quantity':0x1});}else _0x569a2a[_0x3668('0x1d')]({'type':_0x6b58c9+_0x3668('0x2c'),'element':_0x19b8a4});}}}}}['_resolveDescriptionItems'](_0xd7c0ef){const _0x5088b0=this[_0x3668('0x18')],_0xa0c954=[],_0x1b09c7=[],_0x8ec6ed=[];for(const _0x1492ae of _0xd7c0ef)switch(_0x1492ae['type']){case _0x3668('0x2f'):if(_0x1492ae[_0x3668('0x2e')]=_0x1492ae[_0x3668('0x2e')][_0x3668('0x11')](/(\S)\u000A+(\S)/g,_0x3668('0x2a'))[_0x3668('0x11')](/\u000A/g,''),_0x1492ae['remove']=_0x1492ae[_0x3668('0x37')][_0x3668('0x11')](/(\S)\u000A+(\S)/g,_0x3668('0x2a'))[_0x3668('0x11')](/\u000A/g,''),''!=_0x1492ae[_0x3668('0x2e')]&&''!=_0x1492ae['remove']){_0xa0c954['push']({'type':_0x3668('0x11'),'content':_0x373532(_0x5088b0,'REPLACE_TEXT',['\x22'+_0x1492ae[_0x3668('0x37')]+'\x22','\x22'+_0x1492ae[_0x3668('0x2e')]+'\x22'])});continue;}if(null!=_0x1492ae[_0x3668('0x2e')]['match'](/^ +$/)){_0xa0c954[_0x3668('0x1d')]({'type':'insertion','content':_0x373532(_0x5088b0,_0x3668('0x48'),_0x373532(_0x5088b0,'ELEMENT_SPACE',_0x1492ae[_0x3668('0x2e')][_0x3668('0x4c')]))});continue;}if(null!=_0x1492ae['remove'][_0x3668('0x24')](/^ +$/)){_0xa0c954[_0x3668('0x1d')]({'type':'deletion','content':_0x373532(_0x5088b0,_0x3668('0x26'),_0x373532(_0x5088b0,_0x3668('0x4d'),_0x1492ae[_0x3668('0x37')][_0x3668('0x4c')]))});continue;}if(''!=_0x1492ae[_0x3668('0x2e')]){_0xa0c954[_0x3668('0x1d')]({'type':_0x3668('0x42'),'content':_0x373532(_0x5088b0,_0x3668('0x48'),'\x22'+_0x1492ae[_0x3668('0x2e')]+'\x22')});continue;}_0xa0c954[_0x3668('0x1d')]({'type':_0x3668('0x10'),'content':_0x373532(_0x5088b0,'*Remove:*\x20%0','\x22'+_0x1492ae[_0x3668('0x37')]+'\x22')});continue;case'addEmptyContainer':case _0x3668('0x2'):_0xa0c954[_0x3668('0x1d')]({'type':'insertion','content':_0x373532(_0x5088b0,_0x3668('0x48'),this[_0x3668('0x36')](_0x1492ae[_0x3668('0x3e')],_0x1492ae[_0x3668('0x17')]))});continue;case _0x3668('0x0'):case'removeObject':_0xa0c954[_0x3668('0x1d')]({'type':_0x3668('0x10'),'content':_0x373532(_0x5088b0,_0x3668('0x26'),this['getItemLabel'](_0x1492ae[_0x3668('0x3e')],_0x1492ae['quantity']))});continue;case _0x3668('0x33'):_0xa0c954['push']({'type':_0x3668('0x42'),'content':_0x373532(_0x5088b0,_0x3668('0x5'),this[_0x3668('0x36')](_0x1492ae[_0x3668('0x3e')],_0x1492ae[_0x3668('0x17')]))});continue;case _0x3668('0xe'):_0xa0c954[_0x3668('0x1d')]({'type':'deletion','content':_0x373532(_0x5088b0,_0x3668('0x2b'),this[_0x3668('0x36')](_0x1492ae[_0x3668('0x3e')],_0x1492ae[_0x3668('0x17')]))});continue;case _0x3668('0x12'):_0x1b09c7[_0x3668('0x1d')](_0x1492ae['key']);continue;case _0x3668('0x1b'):_0x8ec6ed['push'](_0x1492ae[_0x3668('0x34')]);continue;default:_0xa0c954[_0x3668('0x1d')](_0x1492ae);}if(_0x1b09c7[_0x3668('0x4c')]){const _0x43f39d=_0x1b09c7[_0x3668('0x1f')](_0x26a69a=>this['_attributeLabels']['has'](_0x26a69a)?this[_0x3668('0x1e')][_0x3668('0x19')](_0x26a69a):_0x26a69a)[_0x3668('0x15')](',\x20');_0xa0c954[_0x3668('0x1d')]({'type':'format','content':_0x373532(this[_0x3668('0x18')],'*Set\x20format:*\x20%0',_0x43f39d)});}if(_0x8ec6ed[_0x3668('0x4c')]){const _0x310a76=_0x8ec6ed['map'](_0x575210=>this[_0x3668('0x1e')][_0x3668('0x27')](_0x575210)?this[_0x3668('0x1e')][_0x3668('0x19')](_0x575210):_0x575210)['join'](',\x20');_0xa0c954[_0x3668('0x1d')]({'type':'format','content':_0x373532(this['_locale'],_0x3668('0x4a'),_0x310a76)});}return _0xa0c954;}[_0x3668('0x2d')](_0x19c62f){for(const _0x1705f8 of this[_0x3668('0x44')]){const _0x5e6ce5=_0x1705f8(_0x19c62f);if(_0x5e6ce5&&_0x3668('0x25')in _0x5e6ce5)return _0x5e6ce5;}}[_0x3668('0x20')](_0x3166cc,_0x2279f8){const _0x3e1eb3=_0x2279f8[_0x3668('0x1')],_0x4f2064=void 0x0===_0x3e1eb3[_0x3668('0x31')]?_0x3668('0x1b'):_0x3668('0x12');_0x3166cc[_0x3668('0x1d')]({'type':_0x4f2064,'key':_0x3e1eb3[_0x3668('0x34')]});}[_0x3668('0x32')](_0x1f4051,_0x962f9){_0x1f4051['push']({'type':_0x3668('0x1c'),'content':_0x373532(this[_0x3668('0x18')],_0x3668('0x28'),this[_0x3668('0x36')](_0x962f9['getFirstRange']()['start'][_0x3668('0xc')],0x1))});}[_0x3668('0x49')](_0x4a549f,_0x4ba6f9,_0x53d521){if(this[_0x3668('0x3d')](_0x4a549f,_0x4ba6f9),_0x53d521&&_0x53d521[_0x3668('0x39')]()&&!_0x4ba6f9[_0x3668('0x39')]()[_0x3668('0x21')][_0x3668('0x13')](_0x53d521[_0x3668('0x39')]()[_0x3668('0x41')])){const _0xea433b=_0x4a549f[_0x4a549f[_0x3668('0x4c')]-0x1],_0x501b17=_0x3668('0x42')==_0x4ba6f9[_0x3668('0x25')]?_0x3668('0x2e'):_0x3668('0x37');_0xea433b&&_0x3668('0x2f')==_0xea433b[_0x3668('0x25')]&&(_0xea433b[_0x501b17]+='\x0a');}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5cc4=['getSuggestion','addSuggestionData','getSuggestions','editor','Comments','addSuggestion','get','adapter','plugins','TrackChanges'];(function(_0x1c4016,_0x5cc4ab){var _0x52c1b4=function(_0x4da4d3){while(--_0x4da4d3){_0x1c4016['push'](_0x1c4016['shift']());}};_0x52c1b4(++_0x5cc4ab);}(_0x5cc4,0xda));var _0x52c1=function(_0x1c4016,_0x5cc4ab){_0x1c4016=_0x1c4016-0x0;var _0x52c1b4=_0x5cc4[_0x1c4016];return _0x52c1b4;};import{Plugin as _0x25f2e4}from'ckeditor5/src/core';import _0x3ac2f1 from'./trackchangesui';import _0x5eae06 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x25f2e4{static get['requires'](){return[_0x5eae06,_0x3ac2f1,_0x52c1('0x6')];}static get['pluginName'](){return _0x52c1('0x1');}set[_0x52c1('0x9')](_0x40ab1a){this[_0x52c1('0x5')]['plugins'][_0x52c1('0x8')](_0x5eae06)['adapter']=_0x40ab1a;}get[_0x52c1('0x9')](){return this['editor'][_0x52c1('0x0')][_0x52c1('0x8')](_0x5eae06)['adapter'];}[_0x52c1('0x7')](_0x43fa56){return this[_0x52c1('0x5')][_0x52c1('0x0')][_0x52c1('0x8')](_0x5eae06)[_0x52c1('0x3')](_0x43fa56);}[_0x52c1('0x4')]({skipNotAttached:_0xb91128=!0x1,toJSON:_0x1f2c51=!0x1}={}){return this[_0x52c1('0x5')]['plugins'][_0x52c1('0x8')](_0x5eae06)[_0x52c1('0x4')]({'skipNotAttached':_0xb91128,'toJSON':_0x1f2c51});}['getSuggestion'](_0xd0ad59){return this[_0x52c1('0x5')][_0x52c1('0x0')][_0x52c1('0x8')](_0x5eae06)[_0x52c1('0x2')](_0xd0ad59);}}
23
+ var _0x5530=['getSuggestion','editor','addSuggestionData','getSuggestions','Comments','requires','get','plugins','adapter'];(function(_0x274512,_0x55305f){var _0x8d564f=function(_0xafaa3a){while(--_0xafaa3a){_0x274512['push'](_0x274512['shift']());}};_0x8d564f(++_0x55305f);}(_0x5530,0x109));var _0x8d56=function(_0x274512,_0x55305f){_0x274512=_0x274512-0x0;var _0x8d564f=_0x5530[_0x274512];return _0x8d564f;};import{Plugin as _0x22d739}from'ckeditor5/src/core';import _0x4b66e5 from'./trackchangesui';import _0x4398e5 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x22d739{static get[_0x8d56('0x1')](){return[_0x4398e5,_0x4b66e5,_0x8d56('0x0')];}static get['pluginName'](){return'TrackChanges';}set[_0x8d56('0x4')](_0x1256f4){this[_0x8d56('0x6')][_0x8d56('0x3')][_0x8d56('0x2')](_0x4398e5)[_0x8d56('0x4')]=_0x1256f4;}get[_0x8d56('0x4')](){return this[_0x8d56('0x6')][_0x8d56('0x3')][_0x8d56('0x2')](_0x4398e5)[_0x8d56('0x4')];}['addSuggestion'](_0x567b97){return this[_0x8d56('0x6')][_0x8d56('0x3')][_0x8d56('0x2')](_0x4398e5)[_0x8d56('0x7')](_0x567b97);}[_0x8d56('0x8')]({skipNotAttached:_0x2ba71d=!0x1,toJSON:_0x44b5c3=!0x1}={}){return this[_0x8d56('0x6')][_0x8d56('0x3')][_0x8d56('0x2')](_0x4398e5)['getSuggestions']({'skipNotAttached':_0x2ba71d,'toJSON':_0x44b5c3});}['getSuggestion'](_0x1ee43b){return this[_0x8d56('0x6')][_0x8d56('0x3')]['get'](_0x4398e5)[_0x8d56('0x5')](_0x1ee43b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a23=['editor','appendChild','execute','push','getUser','rootsAttributes','getSuggestions','get','editorCreator','name','result','createElement','trackChangesData.editorCreator','map','discardAllSuggestions','TrackChangesEditing','document','init','config','model','create','getFullData','trackChangesData','define','plugins','Users','getRootNames','acceptAllSuggestions','users','addUser','pluginName','track-changes-data-invalid-editor-creator','useAnonymousUser','getRootsAttributes','TrackChangesDataGetter','getDataWithAcceptedSuggestions','_adapter','data','function','CommentsRepository'];(function(_0x307034,_0x2a2369){const _0x13a6ba=function(_0xc3c981){while(--_0xc3c981){_0x307034['push'](_0x307034['shift']());}};_0x13a6ba(++_0x2a2369);}(_0x2a23,0x12f));const _0x13a6=function(_0x307034,_0x2a2369){_0x307034=_0x307034-0x0;let _0x13a6ba=_0x2a23[_0x307034];return _0x13a6ba;};import{Plugin as _0x5d991a}from'ckeditor5/src/core';import{CKEditorError as _0x5e4817}from'ckeditor5/src/utils';import _0x268e3e from'./trackchangesediting';import{sanitizeEditorConfig as _0x21f2df}from'ckeditor5-collaboration/src/collaboration-core';const T=['Pagination'];export default class P extends _0x5d991a{static get['requires'](){return[_0x268e3e];}static get['pluginName'](){return'TrackChangesData';}[_0x13a6('0x22')](){const _0x7f8a39=this[_0x13a6('0x11')];if(_0x7f8a39['config'][_0x13a6('0x0')](_0x13a6('0x1d'),_0x41c1a9=>{const _0x139251=_0x7f8a39['model'][_0x13a6('0x21')]['getRootNames']()['reduce']((_0x35303e,_0x38bab6)=>(_0x35303e[_0x38bab6]='',_0x35303e),{});return _0x7f8a39['constructor'][_0x13a6('0x25')](_0x139251,_0x41c1a9);}),_0x13a6('0xf')!=typeof _0x7f8a39[_0x13a6('0x23')][_0x13a6('0x18')](_0x13a6('0x27'))[_0x13a6('0x19')])throw new _0x5e4817(_0x13a6('0x8'));}[_0x13a6('0xc')](_0xaf0666){return N(this[_0x13a6('0x11')],!0x0,_0xaf0666);}['getDataWithDiscardedSuggestions'](_0x428a24){return N(this[_0x13a6('0x11')],!0x1,_0x428a24);}}class D extends _0x5d991a{static get[_0x13a6('0x7')](){return _0x13a6('0xb');}constructor(_0x3700da){super(_0x3700da),this[_0x13a6('0x1b')]='end';}[_0x13a6('0x22')](){this['editor'][_0x13a6('0x1')]['get'](_0x13a6('0x10'))[_0x13a6('0xd')]={'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[_0x13a6('0x11')][_0x13a6('0x1')][_0x13a6('0x18')](_0x13a6('0x20'))[_0x13a6('0xd')]=null;}}function v(_0x14271b){return void 0x0!==_0x14271b[_0x13a6('0xa')];}async function N(_0x566f3e,_0x3cf04d,_0x34ceeb){const _0x346094=_0x21f2df(_0x566f3e,T);_0x346094[_0x13a6('0x1')][_0x13a6('0x14')](_0x268e3e,D),_0x346094[_0x13a6('0x16')]=v(_0x566f3e)?_0x566f3e[_0x13a6('0xa')]():void 0x0;const _0x55d8b3=document['createDocumentFragment'](),_0x42a06f=_0x566f3e[_0x13a6('0x23')][_0x13a6('0x18')](_0x13a6('0x27'))[_0x13a6('0x19')],_0x2109eb=await _0x42a06f(_0x346094,()=>function(_0x7fbc3b){const _0x4ab0cb=document[_0x13a6('0x1c')]('div');return _0x7fbc3b[_0x13a6('0x12')](_0x4ab0cb),_0x4ab0cb;}(_0x55d8b3));!function(_0x4e06aa,_0x55585f){const _0x1ef9c5=_0x4e06aa[_0x13a6('0x24')][_0x13a6('0x21')][_0x13a6('0x3')]()['reduce']((_0x473b2f,_0x4c20e7)=>(_0x473b2f[_0x4c20e7]=_0x4e06aa[_0x13a6('0xe')][_0x13a6('0x18')]({'rootName':_0x4c20e7}),_0x473b2f),{}),_0x3a6228=_0x4e06aa['plugins']['get'](_0x13a6('0x2'))[_0x13a6('0x5')][_0x13a6('0x1e')](_0x12e9f2=>({'id':_0x12e9f2['id'],'name':_0x12e9f2[_0x13a6('0x1a')]})),_0x42a8cc=_0x4e06aa[_0x13a6('0x1')][_0x13a6('0x18')](_0x13a6('0x20'))[_0x13a6('0x17')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c8108=_0x55585f['plugins'][_0x13a6('0x18')]('Users'),_0x5b5de9=_0x55585f[_0x13a6('0x1')][_0x13a6('0x18')](_0x13a6('0x20'));for(const _0x362d58 of _0x3a6228)_0x4c8108[_0x13a6('0x15')](_0x362d58['id'])||_0x4c8108[_0x13a6('0x6')](_0x362d58);_0x4c8108['me']||_0x4c8108[_0x13a6('0x9')]();for(const _0x460c89 of _0x42a8cc)_0x5b5de9['addSuggestionData'](_0x460c89);_0x55585f[_0x13a6('0xe')]['set'](_0x1ef9c5);}(_0x566f3e,_0x2109eb),_0x2109eb[_0x13a6('0x13')](_0x3cf04d?_0x13a6('0x4'):_0x13a6('0x1f'));const _0x12ba8=v(_0x2109eb)?_0x2109eb[_0x13a6('0x26')](_0x34ceeb):_0x2109eb['data'][_0x13a6('0x18')](_0x34ceeb);return await _0x2109eb['destroy'](),_0x12ba8;}
23
+ const _0x4007=['map','createDocumentFragment','model','TrackChangesData','reduce','rootsAttributes','getUser','acceptAllSuggestions','useAnonymousUser','requires','push','Users','set','define','appendChild','name','editor','destroy','result','users','execute','get','discardAllSuggestions','editorCreator','addUser','getRootNames','data','init','getFullData','pluginName','plugins','getDataWithDiscardedSuggestions','config','create','document','_adapter','TrackChangesEditing','trackChangesData','TrackChangesDataGetter','function','trackChangesData.editorCreator','getRootsAttributes','track-changes-data-invalid-editor-creator','getSuggestions','end'];(function(_0x5513a1,_0x400779){const _0xbfcfbd=function(_0x3758f5){while(--_0x3758f5){_0x5513a1['push'](_0x5513a1['shift']());}};_0xbfcfbd(++_0x400779);}(_0x4007,0x1c9));const _0xbfcf=function(_0x5513a1,_0x400779){_0x5513a1=_0x5513a1-0x0;let _0xbfcfbd=_0x4007[_0x5513a1];return _0xbfcfbd;};import{Plugin as _0xfd27ab}from'ckeditor5/src/core';import{CKEditorError as _0x39cf0b}from'ckeditor5/src/utils';import _0x5d0f95 from'./trackchangesediting';import{sanitizeEditorConfig as _0x3be4ae}from'ckeditor5-collaboration/src/collaboration-core';const T=['Pagination'];export default class P extends _0xfd27ab{static get[_0xbfcf('0x2')](){return[_0x5d0f95];}static get[_0xbfcf('0x16')](){return _0xbfcf('0x29');}[_0xbfcf('0x14')](){const _0x20b2b6=this['editor'];if(_0x20b2b6['config'][_0xbfcf('0x6')](_0xbfcf('0x21'),_0x46cad6=>{const _0x10492f=_0x20b2b6['model'][_0xbfcf('0x1b')][_0xbfcf('0x12')]()[_0xbfcf('0x2a')]((_0xc84a60,_0x32a510)=>(_0xc84a60[_0x32a510]='',_0xc84a60),{});return _0x20b2b6['constructor'][_0xbfcf('0x1a')](_0x10492f,_0x46cad6);}),_0xbfcf('0x20')!=typeof _0x20b2b6[_0xbfcf('0x19')][_0xbfcf('0xe')]('trackChangesData')['editorCreator'])throw new _0x39cf0b(_0xbfcf('0x23'));}['getDataWithAcceptedSuggestions'](_0x3b073e){return N(this['editor'],!0x0,_0x3b073e);}[_0xbfcf('0x18')](_0x439407){return N(this[_0xbfcf('0x9')],!0x1,_0x439407);}}class D extends _0xfd27ab{static get[_0xbfcf('0x16')](){return _0xbfcf('0x1f');}constructor(_0xeca25a){super(_0xeca25a),this[_0xbfcf('0xb')]=_0xbfcf('0x25');}[_0xbfcf('0x14')](){this[_0xbfcf('0x9')][_0xbfcf('0x17')][_0xbfcf('0xe')]('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor'][_0xbfcf('0x17')][_0xbfcf('0xe')](_0xbfcf('0x1d'))[_0xbfcf('0x1c')]=null;}}function v(_0xd5503e){return void 0x0!==_0xd5503e['getRootsAttributes'];}async function N(_0x270103,_0xbb65e,_0x4c30d9){const _0x38df77=_0x3be4ae(_0x270103,T);_0x38df77[_0xbfcf('0x17')][_0xbfcf('0x3')](_0x5d0f95,D),_0x38df77[_0xbfcf('0x2b')]=v(_0x270103)?_0x270103[_0xbfcf('0x22')]():void 0x0;const _0x2b5982=document[_0xbfcf('0x27')](),_0x4f5fd9=_0x270103[_0xbfcf('0x19')][_0xbfcf('0xe')](_0xbfcf('0x1e'))[_0xbfcf('0x10')],_0x26df41=await _0x4f5fd9(_0x38df77,()=>function(_0x222e20){const _0x39f167=document['createElement']('div');return _0x222e20[_0xbfcf('0x7')](_0x39f167),_0x39f167;}(_0x2b5982));!function(_0x11d8b2,_0x5031fc){const _0x3b203f=_0x11d8b2[_0xbfcf('0x28')][_0xbfcf('0x1b')][_0xbfcf('0x12')]()[_0xbfcf('0x2a')]((_0x282c12,_0x2a8dec)=>(_0x282c12[_0x2a8dec]=_0x11d8b2['data'][_0xbfcf('0xe')]({'rootName':_0x2a8dec}),_0x282c12),{}),_0x4f2fc9=_0x11d8b2['plugins'][_0xbfcf('0xe')](_0xbfcf('0x4'))[_0xbfcf('0xc')][_0xbfcf('0x26')](_0x4dc8eb=>({'id':_0x4dc8eb['id'],'name':_0x4dc8eb[_0xbfcf('0x8')]})),_0x569c7b=_0x11d8b2['plugins'][_0xbfcf('0xe')](_0xbfcf('0x1d'))[_0xbfcf('0x24')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x326c8c=_0x5031fc[_0xbfcf('0x17')]['get'](_0xbfcf('0x4')),_0x54f7eb=_0x5031fc['plugins'][_0xbfcf('0xe')](_0xbfcf('0x1d'));for(const _0x446b26 of _0x4f2fc9)_0x326c8c[_0xbfcf('0x2c')](_0x446b26['id'])||_0x326c8c[_0xbfcf('0x11')](_0x446b26);_0x326c8c['me']||_0x326c8c[_0xbfcf('0x1')]();for(const _0x3f31ed of _0x569c7b)_0x54f7eb['addSuggestionData'](_0x3f31ed);_0x5031fc['data'][_0xbfcf('0x5')](_0x3b203f);}(_0x270103,_0x26df41),_0x26df41[_0xbfcf('0xd')](_0xbb65e?_0xbfcf('0x0'):_0xbfcf('0xf'));const _0x577eb9=v(_0x26df41)?_0x26df41[_0xbfcf('0x15')](_0x4c30d9):_0x26df41[_0xbfcf('0x13')][_0xbfcf('0xe')](_0x4c30d9);return await _0x26df41[_0xbfcf('0xa')](),_0x577eb9;}