@ckeditor/ckeditor5-track-changes 34.1.0 → 35.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -0
  5. package/build/translations/bn.js +1 -0
  6. package/build/translations/ca.js +1 -0
  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 -0
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -0
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -0
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -0
  24. package/build/translations/ko.js +1 -0
  25. package/build/translations/lt.js +1 -0
  26. package/build/translations/lv.js +1 -0
  27. package/build/translations/ms.js +1 -0
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -0
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -0
  33. package/build/translations/ro.js +1 -0
  34. package/build/translations/ru.js +1 -0
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -0
  39. package/build/translations/th.js +1 -0
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -0
  43. package/build/translations/uk.js +1 -0
  44. package/build/translations/ur.js +1 -0
  45. package/build/translations/vi.js +1 -0
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -0
  49. package/lang/translations/ar.po +469 -0
  50. package/lang/translations/az.po +10 -0
  51. package/lang/translations/bg.po +397 -0
  52. package/lang/translations/bn.po +423 -0
  53. package/lang/translations/ca.po +397 -0
  54. package/lang/translations/cs.po +39 -27
  55. package/lang/translations/da.po +41 -31
  56. package/lang/translations/de.po +12 -2
  57. package/lang/translations/el.po +10 -0
  58. package/lang/translations/en-au.po +10 -0
  59. package/lang/translations/en.po +10 -0
  60. package/lang/translations/es.po +72 -44
  61. package/lang/translations/et.po +107 -97
  62. package/lang/translations/fi.po +397 -0
  63. package/lang/translations/fr.po +34 -6
  64. package/lang/translations/gl.po +10 -0
  65. package/lang/translations/he.po +433 -0
  66. package/lang/translations/hi.po +21 -11
  67. package/lang/translations/hr.po +11 -0
  68. package/lang/translations/hu.po +397 -0
  69. package/lang/translations/id.po +84 -75
  70. package/lang/translations/it.po +29 -1
  71. package/lang/translations/ja.po +379 -0
  72. package/lang/translations/ko.po +379 -0
  73. package/lang/translations/lt.po +433 -0
  74. package/lang/translations/lv.po +415 -0
  75. package/lang/translations/ms.po +379 -0
  76. package/lang/translations/nl.po +39 -29
  77. package/lang/translations/no.po +397 -0
  78. package/lang/translations/pl.po +25 -13
  79. package/lang/translations/pt-br.po +29 -1
  80. package/lang/translations/pt.po +415 -0
  81. package/lang/translations/ro.po +415 -0
  82. package/lang/translations/ru.po +435 -0
  83. package/lang/translations/sk.po +12 -0
  84. package/lang/translations/sr-latn.po +11 -0
  85. package/lang/translations/sr.po +62 -51
  86. package/lang/translations/sv.po +397 -0
  87. package/lang/translations/th.po +379 -0
  88. package/lang/translations/tk.po +10 -0
  89. package/lang/translations/tr.po +21 -11
  90. package/lang/translations/tt.po +379 -0
  91. package/lang/translations/uk.po +433 -0
  92. package/lang/translations/ur.po +397 -0
  93. package/lang/translations/vi.po +379 -0
  94. package/lang/translations/zh-cn.po +9 -0
  95. package/lang/translations/zh.po +73 -64
  96. package/package.json +5 -4
  97. package/src/commands/acceptallsuggestionscommand.js +1 -1
  98. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardallsuggestionscommand.js +1 -1
  101. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  102. package/src/commands/discardsuggestioncommand.js +1 -1
  103. package/src/commands/trackchangescommand.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 +23 -0
  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/entercommand.js +1 -1
  112. package/src/integrations/font.js +1 -1
  113. package/src/integrations/heading.js +1 -1
  114. package/src/integrations/highlight.js +1 -1
  115. package/src/integrations/horizontalline.js +1 -1
  116. package/src/integrations/htmlembed.js +23 -0
  117. package/src/integrations/image.js +1 -1
  118. package/src/integrations/indent.js +1 -1
  119. package/src/integrations/inputcommand.js +1 -1
  120. package/src/integrations/link.js +1 -1
  121. package/src/integrations/list.js +1 -1
  122. package/src/integrations/mediaembed.js +1 -1
  123. package/src/integrations/mention.js +1 -1
  124. package/src/integrations/pagebreak.js +1 -1
  125. package/src/integrations/paragraph.js +1 -1
  126. package/src/integrations/removeformat.js +1 -1
  127. package/src/integrations/restrictededitingmode.js +1 -1
  128. package/src/integrations/shiftentercommand.js +1 -1
  129. package/src/integrations/standardeditingmode.js +1 -1
  130. package/src/integrations/style.js +23 -0
  131. package/src/integrations/table.js +1 -1
  132. package/src/integrations/tableclipboard.js +1 -1
  133. package/src/integrations/tableheadings.js +1 -1
  134. package/src/integrations/tablemergesplit.js +1 -1
  135. package/src/integrations/title.js +1 -1
  136. package/src/integrations/undo.js +1 -1
  137. package/src/integrations/utils.js +1 -1
  138. package/src/suggestion.js +1 -1
  139. package/src/suggestiondescriptionfactory.js +1 -1
  140. package/src/trackchanges.js +1 -1
  141. package/src/trackchangesdata.js +1 -1
  142. package/src/trackchangesediting.js +1 -1
  143. package/src/trackchangesui.js +1 -1
  144. package/src/ui/suggestioncontroller.js +1 -1
  145. package/src/ui/view/basesuggestionthreadview.js +1 -1
  146. package/src/ui/view/suggestionthreadview.js +1 -1
  147. package/src/utils/common-translations.js +1 -1
  148. package/src/utils/getrangesofblockgroups.js +23 -0
  149. package/src/utils/getselectedsuggestions.js +1 -1
  150. package/src/utils/hashobject.js +1 -1
  151. package/src/utils/normalizedescription.js +1 -1
  152. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4932=['activeMarkers','createPositionAfter','getSuggestion','getColumnIndexes','stop','TableEditing','ck-suggestion-marker-','highest','removeMarker:suggestion','format','TableUtils','findAncestor','removeClass','selection','commandName','item','commands','addMarker:suggestion','*Format:*\x20%0','end','mapper','showSuggestionHighlights','data-suggestion','nodeBefore','markerNameToElements','createTableWalker','addClass','registerDescriptionCallback','getSelectionAffectedTableCells','options','enableCommand','FORMAT_HEADER_COLUMN','getCellLocation','value','index','ck-suggestion-marker--active','markerRange','has','parent','afterInit','plugins','first','_splitMarkerName','consume','cell','setAttribute','includes','forceValue','createPositionBefore','document','isBefore','accept','TrackChangesEditing','editing','childCount','FORMAT_HEADER_ROW','registerCustomCallback','setTableRowHeader','locale','from','commandParams','formatBlock','get','markBlockFormat','markerName','writer','last','table','model','data','setTableColumnHeader','FORMAT_REGULAR_COLUMN','requires','_descriptionFactory','createRange','change','downcastDispatcher','getChild','_acceptFormatSuggestionCallbackFactory','getAttribute','name','FORMAT_REGULAR_ROW','removeAttribute'];(function(_0x4bd689,_0x493212){const _0x2ca9e4=function(_0x5842b3){while(--_0x5842b3){_0x4bd689['push'](_0x4bd689['shift']());}};_0x2ca9e4(++_0x493212);}(_0x4932,0x1a2));const _0x2ca9=function(_0x4bd689,_0x493212){_0x4bd689=_0x4bd689-0x0;let _0x2ca9e4=_0x4932[_0x4bd689];return _0x2ca9e4;};import{Plugin as _0x333f22}from'ckeditor5/src/core';import _0x4e24c7 from'./table';import{getTranslation as _0x27eb06}from'../utils/common-translations';export default class ct extends _0x333f22{static get[_0x2ca9('0x45')](){return[_0x4e24c7];}[_0x2ca9('0x24')](){const _0x4cca5d=this['editor'];if(!_0x4cca5d['plugins'][_0x2ca9('0x22')](_0x2ca9('0x2')))return;const _0x2d3ce2=_0x4cca5d[_0x2ca9('0x37')],_0x3aa996=_0x4cca5d[_0x2ca9('0x25')][_0x2ca9('0x3b')](_0x2ca9('0x31')),_0x302042=_0x4cca5d[_0x2ca9('0x25')]['get'](_0x2ca9('0x7')),_0x4be1bd=_0x4cca5d['plugins'][_0x2ca9('0x3b')](_0x4e24c7);function _0x3f56fd({showActiveMarker:_0x6a5e5f=!0x0,setDataAttribute:_0x36e3c7=!0x0}={}){return(_0x5805f8,_0x2138ad,_0xf76803)=>{const {type:_0x2cdb34,id:_0x355d19}=_0x3aa996[_0x2ca9('0x27')](_0x2138ad[_0x2ca9('0x3d')]),_0x594e17=_0x3aa996[_0x2ca9('0x52')](_0x355d19);if(!_0x594e17[_0x2ca9('0x42')]||_0x2ca9('0x43')!=_0x594e17[_0x2ca9('0x42')][_0x2ca9('0xb')])return;if(_0x2138ad[_0x2ca9('0xc')])return void _0x5805f8[_0x2ca9('0x1')]();if(!_0xf76803['consumable'][_0x2ca9('0x28')](_0x2138ad['markerRange'],_0x5805f8[_0x2ca9('0x4d')]))return;const _0x4edd4b=_0x2138ad[_0x2ca9('0x21')]['start']['nodeAfter'],_0x5d2044=_0x2138ad[_0x2ca9('0x21')][_0x2ca9('0x10')][_0x2ca9('0x14')],_0x454298=_0x4edd4b['parent'][_0x2ca9('0x23')],{column:_0x440fd3}=_0x302042['getCellLocation'](_0x4edd4b),{column:_0x37aa78}=_0x302042[_0x2ca9('0x1d')](_0x5d2044);for(let _0x102239=_0x440fd3;_0x102239<=_0x37aa78;_0x102239++){const _0x1a65fb=_0x302042['createTableWalker'](_0x454298,{'column':_0x102239,'includeAllSlots':!0x1});for(const _0x805543 of _0x1a65fb){const _0x5a8c30=_0x805543[_0x2ca9('0x29')],_0x4eaaa6=_0xf76803[_0x2ca9('0x11')]['toViewElement'](_0x5a8c30);_0xf76803[_0x2ca9('0x3e')][_0x2ca9('0x17')](_0x2ca9('0x3')+_0x2cdb34,_0x4eaaa6),_0x36e3c7&&_0xf76803[_0x2ca9('0x3e')][_0x2ca9('0x2a')](_0x2ca9('0x13'),_0x355d19,_0x4eaaa6),_0xf76803[_0x2ca9('0x11')]['bindElementToMarker'](_0x4eaaa6,_0x2138ad[_0x2ca9('0x3d')]),_0x6a5e5f&&(_0x3aa996[_0x2ca9('0x50')][_0x2ca9('0x2b')](_0x2138ad[_0x2ca9('0x3d')])?_0xf76803['writer'][_0x2ca9('0x17')](_0x2ca9('0x20'),_0x4eaaa6):_0xf76803[_0x2ca9('0x3e')][_0x2ca9('0x9')](_0x2ca9('0x20'),_0x4eaaa6));}}};}_0x3aa996[_0x2ca9('0x1b')](_0x2ca9('0x36'),(_0x7665fc,_0x586a67)=>{const _0x3ffcd9=_0x302042[_0x2ca9('0x19')](_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x2e')][_0x2ca9('0xa')]),_0x1c10a3=_0x302042['getRowIndexes'](_0x3ffcd9),_0x4075af=_0x3ffcd9[0x0][_0x2ca9('0x8')](_0x2ca9('0x40')),_0x114798=_0x4075af[_0x2ca9('0x4c')]('headingRows')||0x0,_0x36ab69=_0x586a67&&null!==_0x586a67['forceValue']?_0x586a67['forceValue']:!_0x4cca5d[_0x2ca9('0xd')][_0x2ca9('0x3b')](_0x2ca9('0x36'))[_0x2ca9('0x1e')],_0x411b01=_0x36ab69?_0x1c10a3[_0x2ca9('0x3f')]:_0x1c10a3[_0x2ca9('0x26')],_0x23ed5c=_0x4075af[_0x2ca9('0x4a')](_0x411b01);let _0x1247ef;if(_0x36ab69){const _0x2d0f3f=_0x4075af[_0x2ca9('0x4a')](_0x114798);if(_0x23ed5c[_0x2ca9('0x1f')]<_0x2d0f3f[_0x2ca9('0x1f')])return;_0x1247ef=_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x47')](_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x2d')](_0x2d0f3f[_0x2ca9('0x4a')](0x0)),_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x51')](_0x23ed5c['getChild'](_0x23ed5c['childCount']-0x1)));}else{const _0x2a3188=_0x4075af[_0x2ca9('0x4a')](_0x114798-0x1);if(!_0x2a3188)return;_0x1247ef=_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x47')](_0x4cca5d[_0x2ca9('0x41')]['createPositionBefore'](_0x23ed5c[_0x2ca9('0x4a')](0x0)),_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x51')](_0x2a3188[_0x2ca9('0x4a')](_0x2a3188[_0x2ca9('0x33')]-0x1)));}_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x48')](()=>{_0x3aa996[_0x2ca9('0x3c')](_0x1247ef,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x36ab69}]},[],_0x2ca9('0x36'));});}),_0x3aa996['enableCommand'](_0x2ca9('0x43'),(_0x726383,_0xbd60be)=>{const _0x17151b=_0x4cca5d[_0x2ca9('0x25')][_0x2ca9('0x3b')](_0x2ca9('0x7')),_0x175fe5=_0x17151b[_0x2ca9('0x19')](_0x4cca5d['model'][_0x2ca9('0x2e')][_0x2ca9('0xa')]),_0x4d067a=_0x17151b[_0x2ca9('0x0')](_0x175fe5),_0x1a1825=_0x175fe5[0x0][_0x2ca9('0x8')](_0x2ca9('0x40')),_0x61bb7=_0x1a1825[_0x2ca9('0x4c')]('headingColumns')||0x0,_0x22706d=_0xbd60be&&null!==_0xbd60be[_0x2ca9('0x2c')]?_0xbd60be['forceValue']:!_0x4cca5d[_0x2ca9('0xd')][_0x2ca9('0x3b')](_0x2ca9('0x43'))[_0x2ca9('0x1e')];let _0x1e6e3;const _0x1892f4=_0x1a1825['getChild'](0x0),_0x1582a7=_0x22706d?_0x4d067a[_0x2ca9('0x3f')]:_0x4d067a[_0x2ca9('0x26')],_0x30ca67=_0x17151b[_0x2ca9('0x16')](_0x1a1825,{'startRow':0x0,'column':_0x1582a7,'includeAllSlots':!0x1}),_0xe296b=Array[_0x2ca9('0x38')](_0x30ca67)[0x0]['cell'];if(_0x22706d){const _0xe53818=_0x1892f4[_0x2ca9('0x4a')](_0x61bb7);if(_0xe296b[_0x2ca9('0x2f')](_0xe53818))return;_0x1e6e3=_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x47')](_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x2d')](_0xe53818),_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x51')](_0xe296b));}else{const _0x15ee0f=_0x1892f4['getChild'](_0x61bb7-0x1);if(!_0x15ee0f)return;_0x1e6e3=_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x47')](_0x4cca5d['model'][_0x2ca9('0x2d')](_0xe296b),_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x51')](_0x15ee0f));}_0x4cca5d[_0x2ca9('0x41')][_0x2ca9('0x48')](()=>{_0x3aa996[_0x2ca9('0x3c')](_0x1e6e3,{'commandName':'setTableColumnHeader','commandParams':[{'forceValue':_0x22706d}]},[],_0x2ca9('0x43'));});}),_0x4cca5d[_0x2ca9('0x32')][_0x2ca9('0x49')]['on'](_0x2ca9('0xe'),_0x3f56fd(),{'priority':_0x2ca9('0x4')}),_0x4cca5d[_0x2ca9('0x42')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x1bbe4b,_0x4c54b2,_0x53795b)=>{_0x53795b[_0x2ca9('0x1a')][_0x2ca9('0x12')]&&_0x3f56fd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1bbe4b,_0x4c54b2,_0x53795b);},{'priority':_0x2ca9('0x4')}),_0x4cca5d[_0x2ca9('0x32')][_0x2ca9('0x49')]['on'](_0x2ca9('0x5'),(_0x1419fc,_0xdeec91,_0xd81437)=>{const {type:_0x5118ab,id:_0x55e896}=_0x3aa996[_0x2ca9('0x27')](_0xdeec91[_0x2ca9('0x3d')]),_0x8c876d=_0x3aa996[_0x2ca9('0x52')](_0x55e896);if(!_0x8c876d[_0x2ca9('0x42')]||_0x2ca9('0x43')!=_0x8c876d[_0x2ca9('0x42')][_0x2ca9('0xb')])return;const _0x588f6c=_0xd81437['mapper'][_0x2ca9('0x15')](_0xdeec91['markerName']);if(_0x588f6c)for(const _0x144ab7 of _0x588f6c)_0xd81437['writer'][_0x2ca9('0x9')](_0x2ca9('0x3')+_0x5118ab,_0x144ab7),_0xd81437[_0x2ca9('0x3e')][_0x2ca9('0x9')]('ck-suggestion-marker--active',_0x144ab7),_0xd81437[_0x2ca9('0x3e')][_0x2ca9('0x4f')](_0x2ca9('0x13'),_0x144ab7),_0xd81437[_0x2ca9('0x11')]['unbindElementFromMarkerName'](_0x144ab7,_0xdeec91[_0x2ca9('0x3d')]);},{'priority':_0x2ca9('0x4')}),_0x3aa996[_0x2ca9('0x46')][_0x2ca9('0x18')](_0x4fab83=>{const {data:_0xed0839}=_0x4fab83;if(_0xed0839){if('setTableRowHeader'==_0xed0839[_0x2ca9('0xb')]){const _0x96dea6=_0xed0839[_0x2ca9('0x39')][0x0][_0x2ca9('0x2c')];return _0x59c174(_0x27eb06(_0x2d3ce2,_0x96dea6?_0x2ca9('0x34'):_0x2ca9('0x4e')));}if(_0x2ca9('0x43')==_0xed0839[_0x2ca9('0xb')]){const _0x513d96=_0xed0839[_0x2ca9('0x39')][0x0][_0x2ca9('0x2c')];return _0x59c174(_0x27eb06(_0x2d3ce2,_0x513d96?_0x2ca9('0x1c'):_0x2ca9('0x44')));}}function _0x59c174(_0x34592d){return{'type':_0x2ca9('0x6'),'content':_0x27eb06(_0x2d3ce2,_0x2ca9('0xf'),_0x34592d)};}});const _0x60a5d5=_0x4be1bd[_0x2ca9('0x4b')]();_0x3aa996['_suggestionFactory'][_0x2ca9('0x35')](_0x2ca9('0x3a'),_0x2ca9('0x36'),_0x2ca9('0x30'),_0x60a5d5),_0x3aa996['_suggestionFactory'][_0x2ca9('0x35')](_0x2ca9('0x3a'),'setTableColumnHeader',_0x2ca9('0x30'),_0x60a5d5);}}
23
+ const _0x28bc=['highest','editor','FORMAT_REGULAR_COLUMN','formatBlock','commandName','format','parent','FORMAT_HEADER_ROW','has','nodeBefore','commandParams','childCount','selection','end','_acceptFormatSuggestionCallbackFactory','headingRows','getCellLocation','_descriptionFactory','change','getSuggestion','value','from','TableUtils','mapper','registerCustomCallback','markerRange','get','consumable','createRange','setTableColumnHeader','addClass','headingColumns','includes','commands','createTableWalker','setTableRowHeader','downcastDispatcher','editing','cell','index','start','model','nodeAfter','removeMarker:suggestion','createPositionAfter','findAncestor','markerName','getChild','enableCommand','document','_splitMarkerName','unbindElementFromMarkerName','stop','item','isBefore','writer','first','markerNameToElements','forceValue','getAttribute','setAttribute','requires','_suggestionFactory','getSelectionAffectedTableCells','name','*Format:*\x20%0','accept','registerDescriptionCallback','data-suggestion','consume','options','addMarker:suggestion','markBlockFormat','plugins','afterInit','last','removeClass','ck-suggestion-marker--active','data','TrackChangesEditing','createPositionBefore','FORMAT_REGULAR_ROW','activeMarkers'];(function(_0x994e71,_0x28bc17){const _0x3d9737=function(_0x10de2d){while(--_0x10de2d){_0x994e71['push'](_0x994e71['shift']());}};_0x3d9737(++_0x28bc17);}(_0x28bc,0x8c));const _0x3d97=function(_0x994e71,_0x28bc17){_0x994e71=_0x994e71-0x0;let _0x3d9737=_0x28bc[_0x994e71];return _0x3d9737;};import{Plugin as _0x3bd52a}from'ckeditor5/src/core';import _0x1b19c3 from'./table';import{getTranslation as _0x304afa}from'../utils/common-translations';export default class gt extends _0x3bd52a{static get[_0x3d97('0x4')](){return[_0x1b19c3];}[_0x3d97('0x11')](){const _0x27d848=this[_0x3d97('0x1b')];if(!_0x27d848[_0x3d97('0x10')][_0x3d97('0x22')]('TableEditing'))return;const _0x2f7d8c=_0x27d848['locale'],_0x1ecd52=_0x27d848['plugins'][_0x3d97('0x34')](_0x3d97('0x16')),_0x3fd107=_0x27d848[_0x3d97('0x10')][_0x3d97('0x34')]('TableUtils'),_0x461da7=_0x27d848[_0x3d97('0x10')]['get'](_0x1b19c3);function _0x16d770({showActiveMarker:_0x13a67f=!0x0,setDataAttribute:_0x14300c=!0x0}={}){return(_0x1c4035,_0x378f2c,_0x148425)=>{const {type:_0x4ac24e,id:_0xb1d08f}=_0x1ecd52[_0x3d97('0x4c')](_0x378f2c[_0x3d97('0x48')]),_0x55c511=_0x1ecd52[_0x3d97('0x2d')](_0xb1d08f);if(!_0x55c511[_0x3d97('0x15')]||_0x3d97('0x37')!=_0x55c511[_0x3d97('0x15')]['commandName'])return;if(_0x378f2c[_0x3d97('0x4f')])return void _0x1c4035[_0x3d97('0x4e')]();if(!_0x148425[_0x3d97('0x35')][_0x3d97('0xc')](_0x378f2c[_0x3d97('0x33')],_0x1c4035[_0x3d97('0x7')]))return;const _0x8bb0a9=_0x378f2c[_0x3d97('0x33')][_0x3d97('0x42')][_0x3d97('0x44')],_0x2e1fb3=_0x378f2c[_0x3d97('0x33')][_0x3d97('0x27')][_0x3d97('0x23')],_0x46fa5d=_0x8bb0a9['parent'][_0x3d97('0x20')],{column:_0x3a3623}=_0x3fd107[_0x3d97('0x2a')](_0x8bb0a9),{column:_0x29c370}=_0x3fd107[_0x3d97('0x2a')](_0x2e1fb3);for(let _0x530adc=_0x3a3623;_0x530adc<=_0x29c370;_0x530adc++){const _0x2a9cb3=_0x3fd107[_0x3d97('0x3c')](_0x46fa5d,{'column':_0x530adc,'includeAllSlots':!0x1});for(const _0x5713ad of _0x2a9cb3){const _0x3a3b5e=_0x5713ad[_0x3d97('0x40')],_0x2ddabb=_0x148425[_0x3d97('0x31')]['toViewElement'](_0x3a3b5e);_0x148425[_0x3d97('0x51')][_0x3d97('0x38')]('ck-suggestion-marker-'+_0x4ac24e,_0x2ddabb),_0x14300c&&_0x148425['writer'][_0x3d97('0x3')](_0x3d97('0xb'),_0xb1d08f,_0x2ddabb),_0x148425[_0x3d97('0x31')]['bindElementToMarker'](_0x2ddabb,_0x378f2c[_0x3d97('0x48')]),_0x13a67f&&(_0x1ecd52[_0x3d97('0x19')][_0x3d97('0x3a')](_0x378f2c[_0x3d97('0x48')])?_0x148425['writer'][_0x3d97('0x38')](_0x3d97('0x14'),_0x2ddabb):_0x148425[_0x3d97('0x51')][_0x3d97('0x13')](_0x3d97('0x14'),_0x2ddabb));}}};}_0x1ecd52[_0x3d97('0x4a')](_0x3d97('0x3d'),(_0xd21bee,_0x5dc60a)=>{const _0x2a5995=_0x3fd107[_0x3d97('0x6')](_0x27d848[_0x3d97('0x43')][_0x3d97('0x4b')][_0x3d97('0x26')]),_0x58c088=_0x3fd107['getRowIndexes'](_0x2a5995),_0x45b056=_0x2a5995[0x0]['findAncestor']('table'),_0x492877=_0x45b056[_0x3d97('0x2')](_0x3d97('0x29'))||0x0,_0x370740=_0x5dc60a&&null!==_0x5dc60a[_0x3d97('0x1')]?_0x5dc60a[_0x3d97('0x1')]:!_0x27d848[_0x3d97('0x3b')]['get']('setTableRowHeader')[_0x3d97('0x2e')],_0x5696dd=_0x370740?_0x58c088[_0x3d97('0x12')]:_0x58c088[_0x3d97('0x52')],_0x5201e7=_0x45b056['getChild'](_0x5696dd);let _0x55cd2d;if(_0x370740){const _0x57f0b1=_0x45b056['getChild'](_0x492877);if(_0x5201e7[_0x3d97('0x41')]<_0x57f0b1[_0x3d97('0x41')])return;_0x55cd2d=_0x27d848[_0x3d97('0x43')]['createRange'](_0x27d848[_0x3d97('0x43')]['createPositionBefore'](_0x57f0b1['getChild'](0x0)),_0x27d848['model']['createPositionAfter'](_0x5201e7[_0x3d97('0x49')](_0x5201e7[_0x3d97('0x25')]-0x1)));}else{const _0xfbda79=_0x45b056[_0x3d97('0x49')](_0x492877-0x1);if(!_0xfbda79)return;_0x55cd2d=_0x27d848[_0x3d97('0x43')]['createRange'](_0x27d848[_0x3d97('0x43')][_0x3d97('0x17')](_0x5201e7[_0x3d97('0x49')](0x0)),_0x27d848[_0x3d97('0x43')][_0x3d97('0x46')](_0xfbda79[_0x3d97('0x49')](_0xfbda79[_0x3d97('0x25')]-0x1)));}_0x27d848['model'][_0x3d97('0x2c')](()=>{_0x1ecd52['markBlockFormat'](_0x55cd2d,{'commandName':_0x3d97('0x3d'),'commandParams':[{'forceValue':_0x370740}]},[],_0x3d97('0x3d'));});}),_0x1ecd52[_0x3d97('0x4a')](_0x3d97('0x37'),(_0x46fa66,_0x19d63d)=>{const _0x1fa46b=_0x27d848[_0x3d97('0x10')][_0x3d97('0x34')](_0x3d97('0x30')),_0x38fdfa=_0x1fa46b[_0x3d97('0x6')](_0x27d848[_0x3d97('0x43')][_0x3d97('0x4b')][_0x3d97('0x26')]),_0x14c40a=_0x1fa46b['getColumnIndexes'](_0x38fdfa),_0x4cd238=_0x38fdfa[0x0][_0x3d97('0x47')]('table'),_0x1a0734=_0x4cd238[_0x3d97('0x2')](_0x3d97('0x39'))||0x0,_0x358b79=_0x19d63d&&null!==_0x19d63d[_0x3d97('0x1')]?_0x19d63d['forceValue']:!_0x27d848[_0x3d97('0x3b')][_0x3d97('0x34')](_0x3d97('0x37'))[_0x3d97('0x2e')];let _0x28f3c3;const _0x45298b=_0x4cd238[_0x3d97('0x49')](0x0),_0x282256=_0x358b79?_0x14c40a[_0x3d97('0x12')]:_0x14c40a[_0x3d97('0x52')],_0x5c3585=_0x1fa46b[_0x3d97('0x3c')](_0x4cd238,{'startRow':0x0,'column':_0x282256,'includeAllSlots':!0x1}),_0x523eed=Array[_0x3d97('0x2f')](_0x5c3585)[0x0][_0x3d97('0x40')];if(_0x358b79){const _0x545aa2=_0x45298b['getChild'](_0x1a0734);if(_0x523eed[_0x3d97('0x50')](_0x545aa2))return;_0x28f3c3=_0x27d848['model'][_0x3d97('0x36')](_0x27d848['model'][_0x3d97('0x17')](_0x545aa2),_0x27d848['model'][_0x3d97('0x46')](_0x523eed));}else{const _0x44622c=_0x45298b[_0x3d97('0x49')](_0x1a0734-0x1);if(!_0x44622c)return;_0x28f3c3=_0x27d848[_0x3d97('0x43')]['createRange'](_0x27d848[_0x3d97('0x43')][_0x3d97('0x17')](_0x523eed),_0x27d848[_0x3d97('0x43')]['createPositionAfter'](_0x44622c));}_0x27d848[_0x3d97('0x43')][_0x3d97('0x2c')](()=>{_0x1ecd52[_0x3d97('0xf')](_0x28f3c3,{'commandName':_0x3d97('0x37'),'commandParams':[{'forceValue':_0x358b79}]},[],'setTableColumnHeader');});}),_0x27d848[_0x3d97('0x3f')][_0x3d97('0x3e')]['on'](_0x3d97('0xe'),_0x16d770(),{'priority':_0x3d97('0x1a')}),_0x27d848[_0x3d97('0x15')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x44eebc,_0x1dc460,_0x160d36)=>{_0x160d36[_0x3d97('0xd')]['showSuggestionHighlights']&&_0x16d770({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x44eebc,_0x1dc460,_0x160d36);},{'priority':_0x3d97('0x1a')}),_0x27d848[_0x3d97('0x3f')][_0x3d97('0x3e')]['on'](_0x3d97('0x45'),(_0x32e610,_0x3af235,_0x3a161c)=>{const {type:_0x337c29,id:_0x89bc3a}=_0x1ecd52[_0x3d97('0x4c')](_0x3af235[_0x3d97('0x48')]),_0x4dc7c6=_0x1ecd52[_0x3d97('0x2d')](_0x89bc3a);if(!_0x4dc7c6['data']||_0x3d97('0x37')!=_0x4dc7c6[_0x3d97('0x15')][_0x3d97('0x1e')])return;const _0x1d85d0=_0x3a161c[_0x3d97('0x31')][_0x3d97('0x0')](_0x3af235[_0x3d97('0x48')]);if(_0x1d85d0)for(const _0x59dd0f of _0x1d85d0)_0x3a161c[_0x3d97('0x51')]['removeClass']('ck-suggestion-marker-'+_0x337c29,_0x59dd0f),_0x3a161c['writer'][_0x3d97('0x13')]('ck-suggestion-marker--active',_0x59dd0f),_0x3a161c['writer']['removeAttribute'](_0x3d97('0xb'),_0x59dd0f),_0x3a161c[_0x3d97('0x31')][_0x3d97('0x4d')](_0x59dd0f,_0x3af235[_0x3d97('0x48')]);},{'priority':_0x3d97('0x1a')}),_0x1ecd52[_0x3d97('0x2b')][_0x3d97('0xa')](_0x2310be=>{const {data:_0x2fc67c}=_0x2310be;if(_0x2fc67c){if(_0x3d97('0x3d')==_0x2fc67c[_0x3d97('0x1e')]){const _0x2da92d=_0x2fc67c[_0x3d97('0x24')][0x0][_0x3d97('0x1')];return _0x2e3b1c(_0x304afa(_0x2f7d8c,_0x2da92d?_0x3d97('0x21'):_0x3d97('0x18')));}if(_0x3d97('0x37')==_0x2fc67c[_0x3d97('0x1e')]){const _0x3201f9=_0x2fc67c[_0x3d97('0x24')][0x0][_0x3d97('0x1')];return _0x2e3b1c(_0x304afa(_0x2f7d8c,_0x3201f9?'FORMAT_HEADER_COLUMN':_0x3d97('0x1c')));}}function _0x2e3b1c(_0x54d231){return{'type':_0x3d97('0x1f'),'content':_0x304afa(_0x2f7d8c,_0x3d97('0x8'),_0x54d231)};}});const _0x2618cf=_0x461da7[_0x3d97('0x28')]();_0x1ecd52[_0x3d97('0x5')][_0x3d97('0x32')](_0x3d97('0x1d'),_0x3d97('0x3d'),_0x3d97('0x9'),_0x2618cf),_0x1ecd52['_suggestionFactory'][_0x3d97('0x32')](_0x3d97('0x1d'),_0x3d97('0x37'),_0x3d97('0x9'),_0x2618cf);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x352c=['afterInit','_suggestionFactory','getRanges','map','value','get','TableUtils','set:isEnabled','accept','splitTableCellVertically','subType','mergeTableCells','_isForcedDefaultExecutionBlock','table','cell','getSelectionAffectedTableCells','commands','highest','editor','_acceptFormatSuggestionCallbackFactory','fromRange','type','enableCommand','_areSelectedCellsMergable','isInContent','mergeTableCellLeft','locale','change','insertion','element','has','containsRange','root','mergeTableCellUp','formatBlock','add','return','getAncestors','length','model','execute','getCellLocation','$graveyard','setSelection','format','TableEditing','tableCell','selection','size','_areMergableCells','low','deletion','_tablePostFixingSubtypes','createTableWalker','getFirstPosition','from','TrackChangesEditing','*Split\x20cell:*\x20horizontally','commandName','*Merge\x20cells*','mergeTableCellDown','markMultiRangeBlockFormat','registerDescriptionCallback','author','filter','document','find','detach','registerCustomCallback','mergeTableCellRight','stop','splitTableCellHorizontally','plugins','rootName','createRangeOn','_descriptionFactory','refresh'];(function(_0x13c0cb,_0x352ca1){const _0x10549a=function(_0x11ad51){while(--_0x11ad51){_0x13c0cb['push'](_0x13c0cb['shift']());}};_0x10549a(++_0x352ca1);}(_0x352c,0xb7));const _0x1054=function(_0x13c0cb,_0x352ca1){_0x13c0cb=_0x13c0cb-0x0;let _0x10549a=_0x352c[_0x13c0cb];return _0x10549a;};import{Plugin as _0x5248e8}from'ckeditor5/src/core';import _0x29f571 from'./table';import{LiveRange as _0x2dc8d7}from'ckeditor5/src/engine';import{getTranslation as _0xb4f6d8}from'../utils/common-translations';export default class at extends _0x5248e8{static get['requires'](){return[_0x29f571];}[_0x1054('0x30')](){const _0x2561d3=this['editor'],_0x21160e=_0x2561d3[_0x1054('0xa')][_0x1054('0x24')][_0x1054('0x12')],_0x29c397=_0x2561d3[_0x1054('0x4a')];if(!_0x2561d3[_0x1054('0x2b')][_0x1054('0x1')](_0x1054('0x10')))return;const _0x4de931=_0x2561d3[_0x1054('0x2b')][_0x1054('0x35')]('TrackChangesEditing'),_0x3f5534=_0x2561d3[_0x1054('0x2b')][_0x1054('0x35')]('TableUtils'),_0x3af322=_0x2561d3['plugins'][_0x1054('0x35')](_0x29f571);_0x3af322[_0x1054('0x17')]['push'](_0x1054('0x3b')),_0x4de931[_0x1054('0x46')](_0x1054('0x3b'),()=>{const _0x13e4fb=_0x3f5534['getSelectionAffectedTableCells'](_0x2561d3[_0x1054('0xa')][_0x1054('0x24')]['selection']);_0x2561d3[_0x1054('0xa')][_0x1054('0x4b')](()=>{_0x4de931['markMultiRangeBlockFormat'](_0x13e4fb,{'commandName':'mergeTableCells','commandParams':[]},[],_0x1054('0x3b'));});}),_0x2561d3['commands']['get']('mergeTableCells')['on'](_0x1054('0xb'),(_0x52966c,_0x82cb86)=>{_0x2561d3['commands'][_0x1054('0x35')]('trackChanges')['value']&&(_0x82cb86[_0x1054('0x9')]>0x0&&_0x82cb86[_0x82cb86[_0x1054('0x9')]-0x1]&&_0x82cb86[_0x82cb86[_0x1054('0x9')]-0x1]['forceDefaultExecution']||_0x4de931[_0x1054('0x3c')]||this[_0x1054('0x47')]()||_0x52966c[_0x1054('0x29')]());},{'priority':_0x1054('0x41')});for(const _0x569e33 of['mergeTableCellUp','mergeTableCellRight',_0x1054('0x1f'),'mergeTableCellLeft']){const _0x365a48=_0x2561d3[_0x1054('0x40')][_0x1054('0x35')](_0x569e33);_0x4de931['enableCommand'](_0x569e33,()=>{const _0x401de0=_0x2561d3[_0x1054('0xa')]['document'][_0x1054('0x12')][_0x1054('0x19')]()[_0x1054('0x8')]()[_0x1054('0x25')](_0x2310c3=>_0x2310c3['is']('element',_0x1054('0x11'))),_0x2dcb93=_0x365a48[_0x1054('0x34')];_0x2561d3[_0x1054('0xa')][_0x1054('0x4b')](()=>{_0x4de931[_0x1054('0x20')]([_0x401de0,_0x2dcb93],{'commandName':_0x1054('0x3b'),'commandParams':[]},[],_0x1054('0x3b'));});});}for(const _0x446c2c of[_0x1054('0x39'),_0x1054('0x2a')]){const _0x52fcc9=_0x2561d3[_0x1054('0x40')]['get'](_0x446c2c);_0x4de931[_0x1054('0x46')](_0x446c2c,()=>{const _0x1cda5f=_0x3f5534[_0x1054('0x3f')](_0x2561d3[_0x1054('0xa')]['document']['selection'])[0x0],_0xdba38=_0x1cda5f['findAncestor'](_0x1054('0x3d')),{column:_0x3b1c1d,row:_0x1cac48}=_0x3f5534[_0x1054('0xc')](_0x1cda5f);let _0x32b2ed=[];if('horizontally'==_0x52fcc9['direction']){const _0x28d6c6=_0x3f5534[_0x1054('0x18')](_0xdba38,{'startRow':_0x1cac48,'endRow':_0x1cac48,'includeAllSlots':!0x0});_0x32b2ed=Array[_0x1054('0x1a')](_0x28d6c6)['map'](_0x5129c3=>_0x5129c3[_0x1054('0x3e')]);}else{const _0x59cc32=_0x3f5534[_0x1054('0x18')](_0xdba38,{'column':_0x3b1c1d,'includeAllSlots':!0x0});_0x32b2ed=Array[_0x1054('0x1a')](_0x59cc32)[_0x1054('0x33')](_0x5495b4=>_0x5495b4[_0x1054('0x3e')]);}_0x2561d3['model']['change'](_0x17ce2e=>{_0x4de931['markBlockFormat'](_0x17ce2e[_0x1054('0x2d')](_0x1cda5f),{'commandName':_0x446c2c,'commandParams':[]},_0x32b2ed,_0x446c2c);});});}_0x4de931[_0x1054('0x2e')][_0x1054('0x21')](_0x5b23e4=>{const {data:_0x54a514}=_0x5b23e4;if(_0x54a514)return'mergeTableCells'==_0x54a514['commandName']?{'type':_0x1054('0xf'),'content':_0xb4f6d8(_0x29c397,_0x1054('0x1e'))}:void 0x0;}),_0x4de931[_0x1054('0x2e')][_0x1054('0x21')](_0x19846b=>{const {data:_0x57c798}=_0x19846b;if(_0x57c798)return'splitTableCellVertically'==_0x57c798[_0x1054('0x1d')]?{'type':_0x1054('0xf'),'content':_0xb4f6d8(_0x29c397,'*Split\x20cell:*\x20vertically')}:_0x1054('0x2a')==_0x57c798['commandName']?{'type':_0x1054('0xf'),'content':_0xb4f6d8(_0x29c397,_0x1054('0x1c'))}:void 0x0;});const _0x9da3e7=_0x3af322[_0x1054('0x43')]();for(const _0x37d7ec of['mergeTableCellUp',_0x1054('0x28'),'mergeTableCellDown',_0x1054('0x49')])_0x4de931[_0x1054('0x31')][_0x1054('0x27')]('formatBlock',_0x37d7ec,_0x1054('0x38'),_0x9da3e7);for(const _0x26a20e of['splitTableCellVertically',_0x1054('0x2a')])_0x4de931['_suggestionFactory'][_0x1054('0x27')]('formatBlock',_0x26a20e,'accept',_0x9da3e7);_0x4de931[_0x1054('0x31')]['registerCustomCallback'](_0x1054('0x5'),_0x1054('0x3b'),_0x1054('0x38'),_0xa28f62=>{_0x2561d3[_0x1054('0xa')][_0x1054('0x4b')](_0x4321cd=>{const _0x21ceee=Array[_0x1054('0x1a')](_0x21160e['getRanges']())[_0x1054('0x33')](_0x571f5b=>_0x2dc8d7[_0x1054('0x44')](_0x571f5b));_0x4321cd['setSelection'](_0xa28f62),_0x2561d3[_0x1054('0x40')]['get'](_0x1054('0x3b'))[_0x1054('0x2f')](),_0x2561d3['execute'](_0x1054('0x3b'),{'forceDefaultExecution':!0x0});const _0x2e6f88=_0x21ceee[_0x1054('0x23')](_0x8c8843=>_0x1054('0xd')!=_0x8c8843[_0x1054('0x3')][_0x1054('0x2c')]);_0x2e6f88['length']>0x0&&_0x4321cd[_0x1054('0xe')](_0x2e6f88);for(const _0x30dc1e of _0x21ceee)_0x30dc1e[_0x1054('0x26')]();});});for(const _0x2091c6 of[_0x1054('0x4'),_0x1054('0x1f'),'mergeTableCellLeft',_0x1054('0x28')]){const _0x4b56d7=_0x2561d3[_0x1054('0x40')][_0x1054('0x35')](_0x2091c6);_0x4b56d7['on'](_0x1054('0x37'),(_0x1b3033,_0x18d126,_0x467878)=>{if(_0x467878){const _0x39c7c5=_0x2561d3[_0x1054('0xa')][_0x1054('0x24')][_0x1054('0x12')]['getFirstPosition']()[_0x1054('0x8')]()[_0x1054('0x25')](_0x127c34=>_0x127c34['is'](_0x1054('0x0'),_0x1054('0x11')));this[_0x1054('0x14')](_0x4b56d7[_0x1054('0x34')],_0x39c7c5)||(_0x1b3033[_0x1054('0x7')]=!0x1,_0x1b3033['stop']());}},{'priority':_0x1054('0x15')});}}[_0x1054('0x47')](){const _0x32459b=this[_0x1054('0x42')][_0x1054('0x40')][_0x1054('0x35')]('mergeTableCells'),_0x2a13bd=this[_0x1054('0x42')][_0x1054('0x2b')][_0x1054('0x35')](_0x1054('0x36'));if(!_0x32459b['isEnabled'])return!0x1;const _0x3925f2=_0x2a13bd[_0x1054('0x3f')](this[_0x1054('0x42')]['model'][_0x1054('0x24')]['selection']);for(const _0x510bea of _0x3925f2)for(const _0x2f25d6 of _0x3925f2)if(_0x510bea!=_0x2f25d6&&!this[_0x1054('0x14')](_0x510bea,_0x2f25d6))return!0x1;return!0x0;}[_0x1054('0x14')](_0x353372,_0x4623c5){const _0x3a4ed2=this[_0x1054('0x42')]['plugins'][_0x1054('0x35')](_0x1054('0x1b')),_0x539c90=this[_0x1054('0x42')][_0x1054('0xa')][_0x1054('0x2d')](_0x353372),_0x944eee=this[_0x1054('0x42')]['model'][_0x1054('0x2d')](_0x4623c5),_0x4d9132=new Set(),_0x235c78=new Set();for(const _0x43ee7f of _0x3a4ed2['getSuggestions']())if((_0x1054('0x4c')==_0x43ee7f[_0x1054('0x45')]||_0x1054('0x16')==_0x43ee7f['type']||_0x1054('0x3b')==_0x43ee7f[_0x1054('0x3a')])&&_0x43ee7f[_0x1054('0x48')])for(const _0x4125e3 of _0x43ee7f[_0x1054('0x32')]())_0x4125e3[_0x1054('0x2')](_0x539c90,!0x0)&&_0x4d9132[_0x1054('0x6')](_0x43ee7f[_0x1054('0x45')]+':'+_0x43ee7f[_0x1054('0x22')]['id']),_0x4125e3[_0x1054('0x2')](_0x944eee,!0x0)&&_0x235c78[_0x1054('0x6')](_0x43ee7f['type']+':'+_0x43ee7f[_0x1054('0x22')]['id']);if(_0x4d9132['size']!=_0x235c78[_0x1054('0x13')])return!0x1;for(const _0x2cf3b0 of _0x4d9132)if(!_0x235c78[_0x1054('0x1')](_0x2cf3b0))return!0x1;return!0x0;}}
23
+ const _0x49c2=['cell','find','getSuggestions','stop','table','createTableWalker','selection','getAncestors','add','registerDescriptionCallback','element','getFirstPosition','_areSelectedCellsMergable','mergeTableCells','size','model','insertion','mergeTableCellRight','_suggestionFactory','return','root','requires','_acceptFormatSuggestionCallbackFactory','_areMergableCells','trackChanges','length','forceDefaultExecution','commandName','fromRange','document','map','has','author','direction','set:isEnabled','highest','push','detach','mergeTableCellUp','_tablePostFixingSubtypes','filter','editor','mergeTableCellDown','get','type','_isForcedDefaultExecutionBlock','format','*Split\x20cell:*\x20vertically','*Merge\x20cells*','TableUtils','*Split\x20cell:*\x20horizontally','subType','refresh','registerCustomCallback','accept','getRanges','_descriptionFactory','afterInit','rootName','createRangeOn','splitTableCellHorizontally','execute','splitTableCellVertically','TrackChangesEditing','value','mergeTableCellLeft','getSelectionAffectedTableCells','markMultiRangeBlockFormat','formatBlock','locale','plugins','change','commands','from','findAncestor','tableCell','enableCommand'];(function(_0x3db3a0,_0x49c2ff){const _0x4f68b5=function(_0x36a600){while(--_0x36a600){_0x3db3a0['push'](_0x3db3a0['shift']());}};_0x4f68b5(++_0x49c2ff);}(_0x49c2,0x167));const _0x4f68=function(_0x3db3a0,_0x49c2ff){_0x3db3a0=_0x3db3a0-0x0;let _0x4f68b5=_0x49c2[_0x3db3a0];return _0x4f68b5;};import{Plugin as _0x4cfaa1}from'ckeditor5/src/core';import _0x561996 from'./table';import{LiveRange as _0x2b71c8}from'ckeditor5/src/engine';import{getTranslation as _0xa7e3e5}from'../utils/common-translations';export default class ft extends _0x4cfaa1{static get[_0x4f68('0x2f')](){return[_0x561996];}[_0x4f68('0x6')](){const _0xc80f3c=this[_0x4f68('0x43')],_0x65bccf=_0xc80f3c['model'][_0x4f68('0x37')][_0x4f68('0x20')],_0xc762d3=_0xc80f3c[_0x4f68('0x12')];if(!_0xc80f3c[_0x4f68('0x13')]['has']('TableEditing'))return;const _0x3ea4b4=_0xc80f3c[_0x4f68('0x13')][_0x4f68('0x45')](_0x4f68('0xc')),_0x6dd008=_0xc80f3c[_0x4f68('0x13')][_0x4f68('0x45')](_0x4f68('0x4b')),_0x4c8293=_0xc80f3c[_0x4f68('0x13')][_0x4f68('0x45')](_0x561996);_0x4c8293[_0x4f68('0x41')][_0x4f68('0x3e')]('mergeTableCells'),_0x3ea4b4[_0x4f68('0x19')](_0x4f68('0x27'),()=>{const _0x3ddf52=_0x6dd008['getSelectionAffectedTableCells'](_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x37')][_0x4f68('0x20')]);_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x14')](()=>{_0x3ea4b4[_0x4f68('0x10')](_0x3ddf52,{'commandName':'mergeTableCells','commandParams':[]},[],_0x4f68('0x27'));});}),_0xc80f3c['commands']['get'](_0x4f68('0x27'))['on']('execute',(_0x3e9828,_0x2402bb)=>{_0xc80f3c['commands'][_0x4f68('0x45')](_0x4f68('0x32'))[_0x4f68('0xd')]&&(_0x2402bb['length']>0x0&&_0x2402bb[_0x2402bb[_0x4f68('0x33')]-0x1]&&_0x2402bb[_0x2402bb[_0x4f68('0x33')]-0x1][_0x4f68('0x34')]||_0x3ea4b4[_0x4f68('0x47')]||this[_0x4f68('0x26')]()||_0x3e9828['stop']());},{'priority':_0x4f68('0x3d')});for(const _0x57f11c of[_0x4f68('0x40'),_0x4f68('0x2b'),'mergeTableCellDown',_0x4f68('0xe')]){const _0x4e7202=_0xc80f3c[_0x4f68('0x15')][_0x4f68('0x45')](_0x57f11c);_0x3ea4b4[_0x4f68('0x19')](_0x57f11c,()=>{const _0x35fe51=_0xc80f3c['model'][_0x4f68('0x37')][_0x4f68('0x20')][_0x4f68('0x25')]()[_0x4f68('0x21')]()[_0x4f68('0x1b')](_0xd90825=>_0xd90825['is'](_0x4f68('0x24'),_0x4f68('0x18'))),_0x8a8bb5=_0x4e7202[_0x4f68('0xd')];_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x14')](()=>{_0x3ea4b4['markMultiRangeBlockFormat']([_0x35fe51,_0x8a8bb5],{'commandName':_0x4f68('0x27'),'commandParams':[]},[],_0x4f68('0x27'));});});}for(const _0x489fbe of[_0x4f68('0xb'),'splitTableCellHorizontally']){const _0x599b4c=_0xc80f3c[_0x4f68('0x15')]['get'](_0x489fbe);_0x3ea4b4[_0x4f68('0x19')](_0x489fbe,()=>{const _0x326106=_0x6dd008[_0x4f68('0xf')](_0xc80f3c['model'][_0x4f68('0x37')][_0x4f68('0x20')])[0x0],_0xe01268=_0x326106[_0x4f68('0x17')](_0x4f68('0x1e')),{column:_0x5087f9,row:_0x48a5d1}=_0x6dd008['getCellLocation'](_0x326106);let _0x19ae48=[];if('horizontally'==_0x599b4c[_0x4f68('0x3b')]){const _0x26ff64=_0x6dd008[_0x4f68('0x1f')](_0xe01268,{'startRow':_0x48a5d1,'endRow':_0x48a5d1,'includeAllSlots':!0x0});_0x19ae48=Array[_0x4f68('0x16')](_0x26ff64)['map'](_0x1b2ef1=>_0x1b2ef1[_0x4f68('0x1a')]);}else{const _0x8fda71=_0x6dd008[_0x4f68('0x1f')](_0xe01268,{'column':_0x5087f9,'includeAllSlots':!0x0});_0x19ae48=Array[_0x4f68('0x16')](_0x8fda71)[_0x4f68('0x38')](_0x433225=>_0x433225[_0x4f68('0x1a')]);}_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x14')](_0x4ce7d6=>{_0x3ea4b4['markBlockFormat'](_0x4ce7d6[_0x4f68('0x8')](_0x326106),{'commandName':_0x489fbe,'commandParams':[]},_0x19ae48,_0x489fbe);});});}_0x3ea4b4['_descriptionFactory'][_0x4f68('0x23')](_0x3975a4=>{const {data:_0x339e84}=_0x3975a4;if(_0x339e84)return _0x4f68('0x27')==_0x339e84[_0x4f68('0x35')]?{'type':_0x4f68('0x48'),'content':_0xa7e3e5(_0xc762d3,_0x4f68('0x4a'))}:void 0x0;}),_0x3ea4b4[_0x4f68('0x5')][_0x4f68('0x23')](_0x5ec265=>{const {data:_0x17c3bd}=_0x5ec265;if(_0x17c3bd)return _0x4f68('0xb')==_0x17c3bd[_0x4f68('0x35')]?{'type':_0x4f68('0x48'),'content':_0xa7e3e5(_0xc762d3,_0x4f68('0x49'))}:_0x4f68('0x9')==_0x17c3bd[_0x4f68('0x35')]?{'type':_0x4f68('0x48'),'content':_0xa7e3e5(_0xc762d3,_0x4f68('0x4c'))}:void 0x0;});const _0x40adb8=_0x4c8293[_0x4f68('0x30')]();for(const _0x345e1c of[_0x4f68('0x40'),_0x4f68('0x2b'),_0x4f68('0x44'),'mergeTableCellLeft'])_0x3ea4b4['_suggestionFactory'][_0x4f68('0x2')](_0x4f68('0x11'),_0x345e1c,_0x4f68('0x3'),_0x40adb8);for(const _0x18b9df of[_0x4f68('0xb'),_0x4f68('0x9')])_0x3ea4b4[_0x4f68('0x2c')][_0x4f68('0x2')](_0x4f68('0x11'),_0x18b9df,_0x4f68('0x3'),_0x40adb8);_0x3ea4b4['_suggestionFactory'][_0x4f68('0x2')]('formatBlock',_0x4f68('0x27'),'accept',_0x238080=>{_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x14')](_0x1b177f=>{const _0xd048c1=Array[_0x4f68('0x16')](_0x65bccf[_0x4f68('0x4')]())[_0x4f68('0x38')](_0x39a3fa=>_0x2b71c8[_0x4f68('0x36')](_0x39a3fa));_0x1b177f['setSelection'](_0x238080),_0xc80f3c[_0x4f68('0x15')][_0x4f68('0x45')](_0x4f68('0x27'))[_0x4f68('0x1')](),_0xc80f3c[_0x4f68('0xa')](_0x4f68('0x27'),{'forceDefaultExecution':!0x0});const _0x51b3a6=_0xd048c1[_0x4f68('0x42')](_0x92fbbf=>'$graveyard'!=_0x92fbbf[_0x4f68('0x2e')][_0x4f68('0x7')]);_0x51b3a6[_0x4f68('0x33')]>0x0&&_0x1b177f['setSelection'](_0x51b3a6);for(const _0x16376b of _0xd048c1)_0x16376b[_0x4f68('0x3f')]();});});for(const _0x1352a5 of[_0x4f68('0x40'),'mergeTableCellDown',_0x4f68('0xe'),_0x4f68('0x2b')]){const _0x93eba4=_0xc80f3c[_0x4f68('0x15')][_0x4f68('0x45')](_0x1352a5);_0x93eba4['on'](_0x4f68('0x3c'),(_0x19af19,_0x9a2356,_0xe991ea)=>{if(_0xe991ea){const _0x3f0119=_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x37')][_0x4f68('0x20')][_0x4f68('0x25')]()[_0x4f68('0x21')]()[_0x4f68('0x1b')](_0x110a6c=>_0x110a6c['is']('element',_0x4f68('0x18')));this['_areMergableCells'](_0x93eba4[_0x4f68('0xd')],_0x3f0119)||(_0x19af19[_0x4f68('0x2d')]=!0x1,_0x19af19[_0x4f68('0x1d')]());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x912876=this[_0x4f68('0x43')][_0x4f68('0x15')][_0x4f68('0x45')](_0x4f68('0x27')),_0x23a49c=this['editor']['plugins'][_0x4f68('0x45')]('TableUtils');if(!_0x912876['isEnabled'])return!0x1;const _0xb253ea=_0x23a49c[_0x4f68('0xf')](this['editor'][_0x4f68('0x29')][_0x4f68('0x37')]['selection']);for(const _0x1b09e0 of _0xb253ea)for(const _0x3e375f of _0xb253ea)if(_0x1b09e0!=_0x3e375f&&!this[_0x4f68('0x31')](_0x1b09e0,_0x3e375f))return!0x1;return!0x0;}[_0x4f68('0x31')](_0x517403,_0x1f52d3){const _0x5005e2=this[_0x4f68('0x43')][_0x4f68('0x13')][_0x4f68('0x45')](_0x4f68('0xc')),_0x3d9335=this[_0x4f68('0x43')][_0x4f68('0x29')][_0x4f68('0x8')](_0x517403),_0x610fb9=this[_0x4f68('0x43')][_0x4f68('0x29')][_0x4f68('0x8')](_0x1f52d3),_0x44d4ce=new Set(),_0x28e89e=new Set();for(const _0x38a9e7 of _0x5005e2[_0x4f68('0x1c')]())if((_0x4f68('0x2a')==_0x38a9e7['type']||'deletion'==_0x38a9e7[_0x4f68('0x46')]||_0x4f68('0x27')==_0x38a9e7[_0x4f68('0x0')])&&_0x38a9e7['isInContent'])for(const _0x2820a0 of _0x38a9e7['getRanges']())_0x2820a0['containsRange'](_0x3d9335,!0x0)&&_0x44d4ce[_0x4f68('0x22')](_0x38a9e7[_0x4f68('0x46')]+':'+_0x38a9e7[_0x4f68('0x3a')]['id']),_0x2820a0['containsRange'](_0x610fb9,!0x0)&&_0x28e89e['add'](_0x38a9e7[_0x4f68('0x46')]+':'+_0x38a9e7[_0x4f68('0x3a')]['id']);if(_0x44d4ce[_0x4f68('0x28')]!=_0x28e89e[_0x4f68('0x28')])return!0x1;for(const _0x4c3734 of _0x44d4ce)if(!_0x28e89e[_0x4f68('0x39')](_0x4c3734))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3631=['ELEMENT_TITLE','registerElementLabel','removeMarker','document','differ','_splitMarkerName','from','isEqual','getNearestSelectionRange','newRange','updateMarker','isCollapsed','isTouching','TrackChangesEditing','start','createRange','registerPostFixer','schema','title-content','element','model','plugins','nodeBefore','Title','end','afterInit','editor','locale'];(function(_0x5f4e42,_0x363125){const _0x339733=function(_0x5dc833){while(--_0x5dc833){_0x5f4e42['push'](_0x5f4e42['shift']());}};_0x339733(++_0x363125);}(_0x3631,0x7d));const _0x3397=function(_0x5f4e42,_0x363125){_0x5f4e42=_0x5f4e42-0x0;let _0x339733=_0x3631[_0x5f4e42];return _0x339733;};import{Plugin as _0x1669e4}from'ckeditor5/src/core';import{getTranslation as _0x24ab68}from'../utils/common-translations';export default class ut extends _0x1669e4{[_0x3397('0xc')](){const _0x2c79ae=this[_0x3397('0xd')];if(!_0x2c79ae['plugins']['has'](_0x3397('0xa')))return;const _0x36d3fb=_0x2c79ae[_0x3397('0x8')]['get'](_0x3397('0x0'));_0x36d3fb['_descriptionFactory'][_0x3397('0x10')]('title-content',()=>_0x24ab68(_0x2c79ae[_0x3397('0xe')],_0x3397('0xf'))),_0x2c79ae[_0x3397('0x7')][_0x3397('0x12')][_0x3397('0x3')](_0xa1b0a5=>{let _0x39a822=!0x1;const _0x5e5eef=Array[_0x3397('0x15')](_0x2c79ae[_0x3397('0x7')]['document'][_0x3397('0x13')]['getChangedMarkers']());for(const {name:_0x5beedc,data:_0x411229}of _0x5e5eef){const {group:_0x8eb50c}=_0x36d3fb[_0x3397('0x14')](_0x5beedc);if('suggestion'!==_0x8eb50c||!_0x411229['newRange'])continue;const _0x1d3a07=_0x411229[_0x3397('0x18')],_0x186513=_0x1d3a07['end'][_0x3397('0x9')];if(!_0x186513||!_0x186513['is'](_0x3397('0x6'),_0x3397('0x5')))continue;if(!_0x1d3a07['start'][_0x3397('0x1b')](_0x1d3a07[_0x3397('0xb')]))continue;const _0x206869=_0x2c79ae[_0x3397('0x7')][_0x3397('0x4')][_0x3397('0x17')](_0x1d3a07[_0x3397('0xb')],'forward');if(_0x206869&&_0x206869[_0x3397('0x1a')]){const _0x191b51=_0xa1b0a5[_0x3397('0x2')](_0x1d3a07[_0x3397('0x1')],_0x206869[_0x3397('0x1')]);_0x191b51[_0x3397('0x16')](_0x1d3a07)||(_0xa1b0a5[_0x3397('0x19')](_0x5beedc,{'range':_0x191b51}),_0x39a822=!0x0);}_0x39a822||(_0xa1b0a5[_0x3397('0x11')](_0x5beedc),_0x39a822=!0x0);}return _0x39a822;});}}
23
+ const _0x2720=['isTouching','afterInit','suggestion','title-content','model','from','start','locale','registerElementLabel','plugins','createRange','document','has','updateMarker','ELEMENT_TITLE','differ','editor','_splitMarkerName','_descriptionFactory','end','removeMarker','isEqual','Title','get','TrackChangesEditing','forward','isCollapsed','getChangedMarkers','nodeBefore','schema','element','newRange'];(function(_0x12c84b,_0x27209c){const _0x49d596=function(_0x2795ea){while(--_0x2795ea){_0x12c84b['push'](_0x12c84b['shift']());}};_0x49d596(++_0x27209c);}(_0x2720,0xb2));const _0x49d5=function(_0x12c84b,_0x27209c){_0x12c84b=_0x12c84b-0x0;let _0x49d596=_0x2720[_0x12c84b];return _0x49d596;};import{Plugin as _0x56ea83}from'ckeditor5/src/core';import{getTranslation as _0x26f35c}from'../utils/common-translations';export default class mt extends _0x56ea83{[_0x49d5('0xf')](){const _0x3a151c=this[_0x49d5('0x1e')];if(!_0x3a151c['plugins'][_0x49d5('0x1a')](_0x49d5('0x4')))return;const _0x132f44=_0x3a151c[_0x49d5('0x17')][_0x49d5('0x5')](_0x49d5('0x6'));_0x132f44[_0x49d5('0x0')][_0x49d5('0x16')](_0x49d5('0x11'),()=>_0x26f35c(_0x3a151c[_0x49d5('0x15')],_0x49d5('0x1c'))),_0x3a151c['model'][_0x49d5('0x19')]['registerPostFixer'](_0x4fd99d=>{let _0x55f064=!0x1;const _0x1aed4d=Array[_0x49d5('0x13')](_0x3a151c[_0x49d5('0x12')][_0x49d5('0x19')][_0x49d5('0x1d')][_0x49d5('0x9')]());for(const {name:_0x1a424e,data:_0x101f6c}of _0x1aed4d){const {group:_0x545d27}=_0x132f44[_0x49d5('0x1f')](_0x1a424e);if(_0x49d5('0x10')!==_0x545d27||!_0x101f6c[_0x49d5('0xd')])continue;const _0x64b387=_0x101f6c['newRange'],_0x1302bb=_0x64b387[_0x49d5('0x1')][_0x49d5('0xa')];if(!_0x1302bb||!_0x1302bb['is'](_0x49d5('0xc'),'title-content'))continue;if(!_0x64b387[_0x49d5('0x14')][_0x49d5('0xe')](_0x64b387['end']))continue;const _0x1cff72=_0x3a151c[_0x49d5('0x12')][_0x49d5('0xb')]['getNearestSelectionRange'](_0x64b387[_0x49d5('0x1')],_0x49d5('0x7'));if(_0x1cff72&&_0x1cff72[_0x49d5('0x8')]){const _0x5e6f91=_0x4fd99d[_0x49d5('0x18')](_0x64b387[_0x49d5('0x14')],_0x1cff72[_0x49d5('0x14')]);_0x5e6f91[_0x49d5('0x3')](_0x64b387)||(_0x4fd99d[_0x49d5('0x1b')](_0x1a424e,{'range':_0x5e6f91}),_0x55f064=!0x0);}_0x55f064||(_0x4fd99d[_0x49d5('0x2')](_0x1a424e),_0x55f064=!0x0);}return _0x55f064;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56d5=['TrackChangesEditing','editor','undo','has','plugins','get','enableCommand'];(function(_0x49be06,_0x56d5b6){const _0x33799f=function(_0x19ff6a){while(--_0x19ff6a){_0x49be06['push'](_0x49be06['shift']());}};_0x33799f(++_0x56d5b6);}(_0x56d5,0x19a));const _0x3379=function(_0x49be06,_0x56d5b6){_0x49be06=_0x49be06-0x0;let _0x33799f=_0x56d5[_0x49be06];return _0x33799f;};import{Plugin as _0x1e6612}from'ckeditor5/src/core';export default class ft extends _0x1e6612{['afterInit'](){const _0x1612ed=this[_0x3379('0x4')],_0x191b51=_0x1612ed['plugins'][_0x3379('0x1')](_0x3379('0x3'));_0x1612ed[_0x3379('0x0')][_0x3379('0x6')]('UndoEditing')&&(_0x191b51[_0x3379('0x2')](_0x3379('0x5')),_0x191b51[_0x3379('0x2')]('redo'));}}
23
+ const _0x4606=['enableCommand','plugins','get','has','editor','undo','TrackChangesEditing','redo','afterInit','UndoEditing'];(function(_0x56195e,_0x460645){const _0xca29fc=function(_0x761631){while(--_0x761631){_0x56195e['push'](_0x56195e['shift']());}};_0xca29fc(++_0x460645);}(_0x4606,0x1ce));const _0xca29=function(_0x56195e,_0x460645){_0x56195e=_0x56195e-0x0;let _0xca29fc=_0x4606[_0x56195e];return _0xca29fc;};import{Plugin as _0x2cdcde}from'ckeditor5/src/core';export default class dt extends _0x2cdcde{[_0xca29('0x6')](){const _0x110298=this[_0xca29('0x2')],_0x4e5231=_0x110298[_0xca29('0x9')][_0xca29('0x0')](_0xca29('0x4'));_0x110298[_0xca29('0x9')][_0xca29('0x1')](_0xca29('0x7'))&&(_0x4e5231[_0xca29('0x8')](_0xca29('0x3')),_0x4e5231[_0xca29('0x8')](_0xca29('0x5')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5afa=['listItem','activeMarkers','getWalker','elementEnd','isContent','plugins','push','isAtEnd','markerName','listIndent','isBlock','createRangeOn','TrackChangesEditing','hasAttribute','mapper','schema','writer','type','bindElementToMarker','test','getAttribute','createUIElement','getItems','toViewPosition','previousPosition','markerRange','ck-suggestion-marker-','getCustomProperty','name','nextSibling','toViewElement','element','consumable','parent','isLimit','span','item'];(function(_0x18156b,_0x5afa63){const _0x224ba9=function(_0x18b443){while(--_0x18b443){_0x18156b['push'](_0x18156b['shift']());}};_0x224ba9(++_0x5afa63);}(_0x5afa,0xc9));const _0x224b=function(_0x18156b,_0x5afa63){_0x18156b=_0x18156b-0x0;let _0x224ba9=_0x5afa[_0x18156b];return _0x224ba9;};export function getRangesWithAttribute(_0x3a3239,_0xf116ae,_0x1a5ad9){const _0x310bd0=[];for(const _0x945eab of _0xf116ae[_0x224b('0x6')]())_0x945eab[_0x224b('0x22')](_0x3a3239)&&_0x310bd0['push'](_0x1a5ad9[_0x224b('0x20')](_0x945eab));return _0x310bd0;}export function getElementsAffectedByListItemRename(_0x89fb55){const _0x1af56c=[];if(_0x89fb55['is'](_0x224b('0xf'),_0x224b('0x15'))){let _0xc9f05e=_0x89fb55['nextSibling'];for(;_0xc9f05e&&_0xc9f05e['is'](_0x224b('0xf'),'listItem')&&_0xc9f05e[_0x224b('0x4')](_0x224b('0x1e'))>0x0;)_0x1af56c[_0x224b('0x1b')](_0xc9f05e),_0xc9f05e=_0xc9f05e[_0x224b('0xd')];}return _0x1af56c;}export function downcastSplitMergeMarker(_0x39ec19,_0x58aac5,{showActiveMarker:_0x5dccde=!0x0}={}){const _0x20dd78=_0x39ec19[_0x224b('0x1a')]['get'](_0x224b('0x21'));return(_0x467289,_0x486715,_0x2fa848)=>{if(!_0x2fa848[_0x224b('0x10')][_0x224b('0x3')](_0x486715[_0x224b('0x9')],_0x467289[_0x224b('0xc')]))return;const _0x15eae7=_0x486715['markerRange'][_0x224b('0x17')](),_0x1e4c69=_0x486715['markerRange']['start'],_0x280d51=_0x39ec19['model'][_0x224b('0x24')];let _0x575527=null,_0x360ce2=null,_0x194bb4=!0x1,_0xb76acd=!0x1;for(const _0x47b66b of _0x15eae7){const _0x567e31=_0x47b66b[_0x224b('0x14')];_0x194bb4=_0x194bb4||_0x280d51[_0x224b('0x19')](_0x567e31);const _0x1c7c81=_0x2fa848[_0x224b('0x23')][_0x224b('0xe')](_0x567e31);if(_0x1c7c81&&_0x1c7c81[_0x224b('0xb')]('addHighlight'))return;_0x224b('0x18')==_0x47b66b[_0x224b('0x1')]&&(_0x280d51[_0x224b('0x1f')](_0x567e31)&&!_0x280d51[_0x224b('0x12')](_0x567e31)&&(_0x567e31[_0x224b('0xd')]||_0x1e4c69[_0x224b('0x1c')]?_0x575527&&_0x575527[_0x224b('0x11')]==_0x567e31||(_0x575527=_0x567e31,_0x3d6aa1(_0x47b66b[_0x224b('0x8')]),_0xb76acd=!0x0):_0x360ce2=_0x360ce2||_0x47b66b[_0x224b('0x8')]));}function _0x3d6aa1(_0x7b1707){const _0x5a8825=_0x2fa848['writer'][_0x224b('0x5')](_0x224b('0x13'),{'class':_0x224b('0xa')+_0x58aac5}),_0x20d177=_0x2fa848[_0x224b('0x23')][_0x224b('0x7')](_0x7b1707);_0x5dccde&&_0x20dd78[_0x224b('0x16')]['includes'](_0x486715[_0x224b('0x1d')])&&_0x2fa848[_0x224b('0x0')]['addClass']('ck-suggestion-marker--active',_0x5a8825),_0x2fa848['writer']['insert'](_0x20d177,_0x5a8825),_0x2fa848[_0x224b('0x23')][_0x224b('0x2')](_0x5a8825,_0x486715['markerName']);}_0x194bb4||_0xb76acd||!_0x360ce2||_0x3d6aa1(_0x360ce2);};}
23
+ const _0x2c8e=['span','parent','ck-suggestion-marker--active','toViewElement','addClass','writer','item','markerRange','isAtEnd','activeMarkers','element','getItems','getAttribute','mapper','push','ck-suggestion-marker-','createRangeOn','nextSibling','listItem','plugins','insert','get','getWalker','isLimit','elementEnd','markerName','toViewPosition','previousPosition','includes','isBlock','bindElementToMarker','type','start','consumable'];(function(_0x33618e,_0x2c8e3f){const _0x505840=function(_0x116acb){while(--_0x116acb){_0x33618e['push'](_0x33618e['shift']());}};_0x505840(++_0x2c8e3f);}(_0x2c8e,0x13c));const _0x5058=function(_0x33618e,_0x2c8e3f){_0x33618e=_0x33618e-0x0;let _0x505840=_0x2c8e[_0x33618e];return _0x505840;};export function getRangesWithAttribute(_0x5eb75d,_0x23440,_0x2fbab){const _0x4e8bcd=[];for(const _0x1b9d70 of _0x23440[_0x5058('0x1')]())_0x1b9d70['hasAttribute'](_0x5eb75d)&&_0x4e8bcd[_0x5058('0x4')](_0x2fbab[_0x5058('0x6')](_0x1b9d70));return _0x4e8bcd;}export function getElementsAffectedByListItemRename(_0xb5b58a){const _0x5d8f1b=[];if(_0xb5b58a['is'](_0x5058('0x0'),_0x5058('0x8'))){let _0x8d61d3=_0xb5b58a[_0x5058('0x7')];for(;_0x8d61d3&&_0x8d61d3['is']('element','listItem')&&_0x8d61d3[_0x5058('0x2')]('listIndent')>0x0;)_0x5d8f1b[_0x5058('0x4')](_0x8d61d3),_0x8d61d3=_0x8d61d3[_0x5058('0x7')];}return _0x5d8f1b;}export function downcastSplitMergeMarker(_0x2ccf8f,_0x2d4653,{showActiveMarker:_0x8427f6=!0x0}={}){const _0x25ccc1=_0x2ccf8f[_0x5058('0x9')][_0x5058('0xb')]('TrackChangesEditing');return(_0x450538,_0x4a9cf5,_0x2ceacf)=>{if(!_0x2ceacf[_0x5058('0x17')]['test'](_0x4a9cf5[_0x5058('0x1f')],_0x450538['name']))return;const _0x2a9738=_0x4a9cf5['markerRange'][_0x5058('0xc')](),_0x827b3c=_0x4a9cf5[_0x5058('0x1f')][_0x5058('0x16')],_0x1e352a=_0x2ccf8f['model']['schema'];let _0x3c4892=null,_0x5656ba=null,_0x1823c8=!0x1,_0x243938=!0x1;for(const _0x1d6da8 of _0x2a9738){const _0x2ec6f9=_0x1d6da8[_0x5058('0x1e')];_0x1823c8=_0x1823c8||_0x1e352a['isContent'](_0x2ec6f9);const _0x10bbd7=_0x2ceacf[_0x5058('0x3')][_0x5058('0x1b')](_0x2ec6f9);if(_0x10bbd7&&_0x10bbd7['getCustomProperty']('addHighlight'))return;_0x5058('0xe')==_0x1d6da8[_0x5058('0x15')]&&(_0x1e352a[_0x5058('0x13')](_0x2ec6f9)&&!_0x1e352a[_0x5058('0xd')](_0x2ec6f9)&&(_0x2ec6f9[_0x5058('0x7')]||_0x827b3c[_0x5058('0x20')]?_0x3c4892&&_0x3c4892[_0x5058('0x19')]==_0x2ec6f9||(_0x3c4892=_0x2ec6f9,_0x740ac3(_0x1d6da8['previousPosition']),_0x243938=!0x0):_0x5656ba=_0x5656ba||_0x1d6da8[_0x5058('0x11')]));}function _0x740ac3(_0x30a13a){const _0x2022b1=_0x2ceacf['writer']['createUIElement'](_0x5058('0x18'),{'class':_0x5058('0x5')+_0x2d4653}),_0x12134f=_0x2ceacf[_0x5058('0x3')][_0x5058('0x10')](_0x30a13a);_0x8427f6&&_0x25ccc1[_0x5058('0x21')][_0x5058('0x12')](_0x4a9cf5['markerName'])&&_0x2ceacf[_0x5058('0x1d')][_0x5058('0x1c')](_0x5058('0x1a'),_0x2022b1),_0x2ceacf[_0x5058('0x1d')][_0x5058('0xa')](_0x12134f,_0x2022b1),_0x2ceacf[_0x5058('0x3')][_0x5058('0x14')](_0x2022b1,_0x4a9cf5[_0x5058('0xf')]);}_0x1823c8||_0x243938||!_0x5656ba||_0x740ac3(_0x5656ba);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x589b=['removeMarker','accept','_onAttributesChange','_onAccept','addMarker','push','isInContent','decorate','end','getAllAdjacentSuggestions','getContainedElement','createdAt','isMultiRange','subType','markers','data','length','addMarkerName','getMarkerNames','isIntersectingWithRange','from','author','getRange','change','filter','onDiscard','attributes','set','onAccept','_saved','map','getMultiRangeId','getFirstRange','isIntersecting','discard','previous','suggestion:','commentThread','next','type','split','_markerNames','onAttributesChange','getRanges','_onDiscard','getMarkers','removeMarkers','toJSON','hasComments','clear','removeAttribute','getFirstMarker','_model','delete','getItems','head'];(function(_0x334450,_0x589b54){const _0x57b25f=function(_0x5b3cf1){while(--_0x5b3cf1){_0x334450['push'](_0x334450['shift']());}};_0x57b25f(++_0x589b54);}(_0x589b,0x13b));const _0x57b2=function(_0x334450,_0x589b54){_0x334450=_0x334450-0x0;let _0x57b25f=_0x589b[_0x334450];return _0x57b25f;};import{Element as _0x1507e8}from'ckeditor5/src/engine';import{ObservableMixin as _0x488d66,mix as _0x131de3,uid as _0x10211a}from'ckeditor5/src/utils';import{cloneDeep as _0x48e858,isEqual as _0x2e8fec,set as _0x375b40,unset as _0x592288}from'lodash-es';export default class o{constructor(_0x5290f8,_0x322566){this['id']=_0x322566['id'],this[_0x57b2('0x4')]=_0x322566[_0x57b2('0x4')],this[_0x57b2('0x22')]=_0x322566[_0x57b2('0x22')]||null,this[_0x57b2('0x2a')]=_0x322566[_0x57b2('0x2a')],this['data']=null,this[_0x57b2('0x11')]=_0x5290f8,this['_onAccept']=_0x322566[_0x57b2('0x31')],this[_0x57b2('0x9')]=_0x322566[_0x57b2('0x2e')],this[_0x57b2('0x17')]=_0x322566[_0x57b2('0x7')],this[_0x57b2('0x6')]=new Set(),this['set'](_0x57b2('0x20'),null),this[_0x57b2('0x30')](_0x57b2('0x2f'),_0x322566['attributes']||{}),this['set'](_0x57b2('0x0'),null),this['set']('next',null),this['set'](_0x57b2('0x2'),null),this[_0x57b2('0x30')](_0x57b2('0x32'),!0x1),this['decorate'](_0x57b2('0x16')),this[_0x57b2('0x1c')]('discard');}get['head'](){let _0x4130be=this;for(;_0x4130be[_0x57b2('0x0')];)_0x4130be=_0x4130be[_0x57b2('0x0')];return _0x4130be;}get[_0x57b2('0xd')](){return!!this[_0x57b2('0x2')]&&this[_0x57b2('0x2')][_0x57b2('0x25')]>0x0;}get[_0x57b2('0x21')](){if(0x0==this[_0x57b2('0x6')]['size'])return!0x1;return 0x6==Array['from'](this[_0x57b2('0x6')])[0x0][_0x57b2('0x5')](':')[_0x57b2('0x25')];}get[_0x57b2('0x1b')](){return null!==this['getFirstMarker']();}[_0x57b2('0x26')](_0x2ac597){this[_0x57b2('0x6')]['add'](_0x2ac597);}[_0x57b2('0x27')](){return Array[_0x57b2('0x29')](this['_markerNames']);}[_0x57b2('0xa')](){return this[_0x57b2('0x27')]()[_0x57b2('0x33')](_0x2140df=>this[_0x57b2('0x11')][_0x57b2('0x23')]['get'](_0x2140df))[_0x57b2('0x2d')](_0x55adcb=>_0x55adcb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}[_0x57b2('0xb')](){this['_model'][_0x57b2('0x2c')](_0x262e31=>{for(const _0x14ca33 of this['getMarkers']())_0x262e31[_0x57b2('0x15')](_0x14ca33);}),this[_0x57b2('0x6')][_0x57b2('0xe')]();}['removeMarker'](_0x5a5164){this[_0x57b2('0x11')][_0x57b2('0x2c')](_0x13fef5=>{_0x13fef5[_0x57b2('0x15')](_0x5a5164);}),this[_0x57b2('0x6')][_0x57b2('0x12')](_0x5a5164);}['addRange'](_0x537eb7){const _0x4c2f8b=_0x57b2('0x1')+this['type']+':'+this[_0x57b2('0x22')]+':'+this['id']+':'+this['author']['id']+':'+o[_0x57b2('0x34')]();this[_0x57b2('0x26')](_0x4c2f8b),this[_0x57b2('0x11')][_0x57b2('0x2c')](_0x3164ec=>{_0x3164ec[_0x57b2('0x19')](_0x4c2f8b,{'range':_0x537eb7,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x57b2('0x28')](_0x1a1d83){for(const _0x1a0dd8 of this[_0x57b2('0x8')]())if(_0x1a0dd8[_0x57b2('0x36')](_0x1a1d83))return!0x0;return!0x1;}['getRanges'](){return this[_0x57b2('0xa')]()[_0x57b2('0x33')](_0x429d23=>_0x429d23[_0x57b2('0x2b')]());}['getItems'](){return this[_0x57b2('0x8')]()['reduce']((_0x2ba7e7,_0x516c96)=>[..._0x2ba7e7,..._0x516c96[_0x57b2('0x13')]()],[]);}[_0x57b2('0x35')](){return this[_0x57b2('0x10')]()[_0x57b2('0x2b')]();}[_0x57b2('0x1f')](){const _0x54dffb=this[_0x57b2('0x8')]();if(0x1!=_0x54dffb[_0x57b2('0x25')])return null;const _0x3099a4=_0x54dffb[0x0],_0x5c25e6=_0x3099a4['start']['nodeAfter'],_0x88bfbc=_0x3099a4[_0x57b2('0x1d')]['nodeBefore'];return _0x5c25e6 instanceof _0x1507e8?_0x5c25e6!=_0x88bfbc?null:_0x5c25e6:null;}[_0x57b2('0x16')](){this[_0x57b2('0x18')](this['getRanges'](),this[_0x57b2('0x24')],this[_0x57b2('0x2f')]),this[_0x57b2('0xb')]();}[_0x57b2('0x37')](){this['_onDiscard'](this[_0x57b2('0x8')](),this[_0x57b2('0x24')],this[_0x57b2('0x2f')]),this[_0x57b2('0xb')]();}[_0x57b2('0x1e')](){const _0x39f5e1=[];let _0x5a60=this[_0x57b2('0x14')];for(;_0x5a60;)_0x39f5e1[_0x57b2('0x1a')](_0x5a60),_0x5a60=_0x5a60[_0x57b2('0x3')];return _0x39f5e1;}['setAttribute'](_0xba1bd1,_0x343a00){const _0x5d3032=_0x48e858(this['attributes']);_0x375b40(_0x5d3032,_0xba1bd1,_0x343a00),_0x2e8fec(_0x5d3032,this[_0x57b2('0x2f')])||(this[_0x57b2('0x2f')]=_0x5d3032,this['_onAttributesChange'](_0x5d3032));}[_0x57b2('0xf')](_0x5ef570){const _0x1c5ad3=_0x48e858(this[_0x57b2('0x2f')]);_0x592288(_0x1c5ad3,_0x5ef570),_0x2e8fec(_0x1c5ad3,this[_0x57b2('0x2f')])||(this[_0x57b2('0x2f')]=_0x1c5ad3,this[_0x57b2('0x17')](this['attributes']));}[_0x57b2('0xc')](){return{'id':this['id'],'type':this[_0x57b2('0x22')]?this['type']+':'+this[_0x57b2('0x22')]:this[_0x57b2('0x4')],'authorId':this['author']['id'],'createdAt':this[_0x57b2('0x20')],'hasComments':this[_0x57b2('0xd')],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x10211a()['substr'](0x1,0x5);}}_0x131de3(o,_0x488d66);
23
+ const _0x33dc=['getContainedElement','getItems','commentThread','removeMarker','suggestion:','addMarker','head','_markerNames','addRange','length','_saved','_onDiscard','previous','removeAttribute','subType','map','attributes','getFirstMarker','getAllAdjacentSuggestions','start','_onAttributesChange','split','author','getMarkerNames','getRange','onAccept','onAttributesChange','getFirstRange','decorate','accept','reduce','delete','change','createdAt','addMarkerName','_model','markers','getRanges','type','clear','isIntersecting','hasComments','_onAccept','isMultiRange','set','nodeBefore','nodeAfter','next','toJSON','getMultiRangeId','from','discard','isIntersectingWithRange','removeMarkers','onDiscard','get','isInContent','substr','getMarkers','data'];(function(_0xbb795f,_0x33dc79){const _0x49cc92=function(_0x1d6c90){while(--_0x1d6c90){_0xbb795f['push'](_0xbb795f['shift']());}};_0x49cc92(++_0x33dc79);}(_0x33dc,0x95));const _0x49cc=function(_0xbb795f,_0x33dc79){_0xbb795f=_0xbb795f-0x0;let _0x49cc92=_0x33dc[_0xbb795f];return _0x49cc92;};import{Element as _0x4ede34}from'ckeditor5/src/engine';import{ObservableMixin as _0x33126e,mix as _0x94e7ff,uid as _0x424184}from'ckeditor5/src/utils';import{cloneDeep as _0x30a065,isEqual as _0x3ac39b,set as _0x5cc7b8,unset as _0x2acfe7}from'lodash-es';export default class o{constructor(_0x23e4e0,_0x4aa385){this['id']=_0x4aa385['id'],this[_0x49cc('0x9')]=_0x4aa385[_0x49cc('0x9')],this[_0x49cc('0x2d')]=_0x4aa385[_0x49cc('0x2d')]||null,this['author']=_0x4aa385['author'],this[_0x49cc('0x1e')]=null,this[_0x49cc('0x6')]=_0x23e4e0,this[_0x49cc('0xd')]=_0x4aa385[_0x49cc('0x38')],this[_0x49cc('0x2a')]=_0x4aa385[_0x49cc('0x19')],this[_0x49cc('0x33')]=_0x4aa385[_0x49cc('0x39')],this[_0x49cc('0x26')]=new Set(),this[_0x49cc('0xf')](_0x49cc('0x4'),null),this[_0x49cc('0xf')](_0x49cc('0x2f'),_0x4aa385[_0x49cc('0x2f')]||{}),this[_0x49cc('0xf')](_0x49cc('0x2b'),null),this['set']('next',null),this[_0x49cc('0xf')](_0x49cc('0x21'),null),this[_0x49cc('0xf')](_0x49cc('0x29'),!0x1),this[_0x49cc('0x3b')](_0x49cc('0x0')),this[_0x49cc('0x3b')](_0x49cc('0x16'));}get[_0x49cc('0x25')](){let _0x17723f=this;for(;_0x17723f[_0x49cc('0x2b')];)_0x17723f=_0x17723f[_0x49cc('0x2b')];return _0x17723f;}get[_0x49cc('0xc')](){return!!this[_0x49cc('0x21')]&&this['commentThread'][_0x49cc('0x28')]>0x0;}get[_0x49cc('0xe')](){if(0x0==this[_0x49cc('0x26')]['size'])return!0x1;return 0x6==Array[_0x49cc('0x15')](this[_0x49cc('0x26')])[0x0][_0x49cc('0x34')](':')[_0x49cc('0x28')];}get[_0x49cc('0x1b')](){return null!==this['getFirstMarker']();}[_0x49cc('0x5')](_0x5e79fb){this['_markerNames']['add'](_0x5e79fb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}[_0x49cc('0x1d')](){return this[_0x49cc('0x36')]()[_0x49cc('0x2e')](_0x2f3962=>this[_0x49cc('0x6')][_0x49cc('0x7')][_0x49cc('0x1a')](_0x2f3962))['filter'](_0x21c1df=>_0x21c1df);}[_0x49cc('0x30')](){return this['getMarkers']()[0x0]||null;}[_0x49cc('0x18')](){this['_model'][_0x49cc('0x3')](_0x10d873=>{for(const _0x4cd9e8 of this[_0x49cc('0x1d')]())_0x10d873[_0x49cc('0x22')](_0x4cd9e8);}),this[_0x49cc('0x26')][_0x49cc('0xa')]();}[_0x49cc('0x22')](_0x57b43f){this[_0x49cc('0x6')]['change'](_0xc36950=>{_0xc36950[_0x49cc('0x22')](_0x57b43f);}),this[_0x49cc('0x26')][_0x49cc('0x2')](_0x57b43f);}[_0x49cc('0x27')](_0x526b22){const _0x381f99=_0x49cc('0x23')+this['type']+':'+this['subType']+':'+this['id']+':'+this[_0x49cc('0x35')]['id']+':'+o[_0x49cc('0x14')]();this[_0x49cc('0x5')](_0x381f99),this['_model']['change'](_0x3dd781=>{_0x3dd781[_0x49cc('0x24')](_0x381f99,{'range':_0x526b22,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x49cc('0x17')](_0x10f265){for(const _0xe2f9ef of this[_0x49cc('0x8')]())if(_0xe2f9ef[_0x49cc('0xb')](_0x10f265))return!0x0;return!0x1;}[_0x49cc('0x8')](){return this[_0x49cc('0x1d')]()[_0x49cc('0x2e')](_0x115dab=>_0x115dab[_0x49cc('0x37')]());}[_0x49cc('0x20')](){return this[_0x49cc('0x8')]()[_0x49cc('0x1')]((_0x3ce81e,_0x1b396a)=>[..._0x3ce81e,..._0x1b396a[_0x49cc('0x20')]()],[]);}[_0x49cc('0x3a')](){return this[_0x49cc('0x30')]()[_0x49cc('0x37')]();}[_0x49cc('0x1f')](){const _0x207e19=this[_0x49cc('0x8')]();if(0x1!=_0x207e19[_0x49cc('0x28')])return null;const _0x4f15b1=_0x207e19[0x0],_0xe698dc=_0x4f15b1[_0x49cc('0x32')][_0x49cc('0x11')],_0x1c507b=_0x4f15b1['end'][_0x49cc('0x10')];return _0xe698dc instanceof _0x4ede34?_0xe698dc!=_0x1c507b?null:_0xe698dc:null;}['accept'](){this[_0x49cc('0xd')](this[_0x49cc('0x8')](),this['data'],this[_0x49cc('0x2f')]),this[_0x49cc('0x18')]();}['discard'](){this[_0x49cc('0x2a')](this[_0x49cc('0x8')](),this[_0x49cc('0x1e')],this[_0x49cc('0x2f')]),this[_0x49cc('0x18')]();}[_0x49cc('0x31')](){const _0x53c50a=[];let _0xcb489=this[_0x49cc('0x25')];for(;_0xcb489;)_0x53c50a['push'](_0xcb489),_0xcb489=_0xcb489[_0x49cc('0x12')];return _0x53c50a;}['setAttribute'](_0x22cc0e,_0x3a4446){const _0x4156ff=_0x30a065(this[_0x49cc('0x2f')]);_0x5cc7b8(_0x4156ff,_0x22cc0e,_0x3a4446),_0x3ac39b(_0x4156ff,this[_0x49cc('0x2f')])||(this[_0x49cc('0x2f')]=_0x4156ff,this['_onAttributesChange'](_0x4156ff));}[_0x49cc('0x2c')](_0x13166f){const _0x5e6ae4=_0x30a065(this[_0x49cc('0x2f')]);_0x2acfe7(_0x5e6ae4,_0x13166f),_0x3ac39b(_0x5e6ae4,this[_0x49cc('0x2f')])||(this[_0x49cc('0x2f')]=_0x5e6ae4,this[_0x49cc('0x33')](this['attributes']));}[_0x49cc('0x13')](){return{'id':this['id'],'type':this['subType']?this[_0x49cc('0x9')]+':'+this[_0x49cc('0x2d')]:this[_0x49cc('0x9')],'authorId':this[_0x49cc('0x35')]['id'],'createdAt':this[_0x49cc('0x4')],'hasComments':this[_0x49cc('0xc')],'data':this[_0x49cc('0x1e')],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x424184()[_0x49cc('0x1c')](0x1,0x5);}}_0x94e7ff(o,_0x33126e);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5792=['start','getItemLabel','*Merge:*\x20%0','indexOf','set','element','addEmptyContainer','remove','EmptyContainer','getFirstRange','_addDescriptionItems','name','addObject','deletion','length','insertion','replace','*Split:*\x20%0','softBreak','end','data','_schema','$text','*Insert:*\x20%0','removeContainer','_resolveDescriptionItems','text','addContainer','Container','*Remove:*\x20%0','isEqual','checkChild','elementStart','isEmpty','getDescriptions','_itemLabels','pop','_locale','elementEnd','add','item','push','Object','isObject','skip','_customCallbacks','ELEMENT_SPACE','function','nextSibling','previousSibling','get','type','REPLACE_TEXT','$1\x20$2','removeEmptyContainer','quantity','isInContent'];(function(_0x2b3d44,_0x57926c){const _0x323ef5=function(_0x578719){while(--_0x578719){_0x2b3d44['push'](_0x2b3d44['shift']());}};_0x323ef5(++_0x57926c);}(_0x5792,0x119));const _0x323e=function(_0x2b3d44,_0x57926c){_0x2b3d44=_0x2b3d44-0x0;let _0x323ef5=_0x5792[_0x2b3d44];return _0x323ef5;};import{getTranslation as _0x274fb8}from'./utils/common-translations';export default class l{constructor(_0xb11b8f,_0x1c3fd2){this[_0x323e('0x31')]=[],this[_0x323e('0x27')]=new Map(),this[_0x323e('0x19')]=_0xb11b8f,this['_locale']=_0x1c3fd2;}[_0x323e('0x26')](_0xd6ac34){const _0x1fbc90=[];for(let _0x81ba03=0x0;_0x81ba03<_0xd6ac34['length'];_0x81ba03++){const _0x3f136f=_0xd6ac34[_0x81ba03];if(!_0x3f136f[_0x323e('0x3')])continue;let _0x3f1a59=!0x1;for(const _0x250d44 of this[_0x323e('0x31')]){const _0x261652=_0x250d44(_0x3f136f);if(_0x261652){_0x261652[_0x323e('0x37')]&&_0x1fbc90[_0x323e('0x2d')](_0x261652),_0x3f1a59=!0x0;break;}}if(!_0x3f1a59){this[_0x323e('0xe')](_0x1fbc90,_0x3f136f);const _0x308284=_0xd6ac34[_0x81ba03+0x1];if(_0x308284&&!_0x3f136f[_0x323e('0xd')]()[_0x323e('0x17')][_0x323e('0x22')](_0x308284[_0x323e('0xd')]()[_0x323e('0x4')])){const _0x5a7d06=_0x1fbc90[_0x1fbc90['length']-0x1],_0x22331f=_0x323e('0x13')==_0x3f136f[_0x323e('0x37')]?'add':_0x323e('0xb');_0x5a7d06&&'text'==_0x5a7d06['type']&&(_0x5a7d06[_0x22331f]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x1fbc90);}['registerDescriptionCallback'](_0x4a08bb){this['_customCallbacks'][_0x323e('0x2d')](_0x4a08bb);}['registerElementLabel'](_0x44fb97,_0x42b36a){this[_0x323e('0x27')][_0x323e('0x8')](_0x44fb97,_0x42b36a);}[_0x323e('0x5')](_0x58f875,_0xe1b1a4=0x1){const _0x4d201b=this[_0x323e('0x27')][_0x323e('0x36')](_0x58f875)||_0x58f875;return _0x323e('0x33')==typeof _0x4d201b?_0x4d201b(_0xe1b1a4):0x1!==_0xe1b1a4?_0xe1b1a4+'\x20'+_0x4d201b+'s':''+_0x4d201b;}[_0x323e('0xe')](_0x177dcf,_0x3ea43f){const _0x993c95=_0x3ea43f['getFirstRange']()['getWalker'](),_0x3d335f=_0x323e('0x13')==_0x3ea43f['type']?'add':_0x323e('0xb');for(const _0x139d73 of _0x993c95){const _0x5448e7=_0x139d73[_0x323e('0x2c')],_0x26fcd4=_0x177dcf[_0x177dcf['length']-0x1];if(_0x5448e7['is']('textProxy'))_0x26fcd4&&_0x26fcd4['type'][_0x323e('0x7')](_0x323e('0x20'))>-0x1&&_0x177dcf[_0x323e('0x28')](),_0x26fcd4&&_0x323e('0x1e')==_0x26fcd4[_0x323e('0x37')]?_0x26fcd4[_0x3d335f]+=_0x5448e7[_0x323e('0x18')]:_0x177dcf[_0x323e('0x2d')]({'type':_0x323e('0x1e'),'add':_0x323e('0x2b')==_0x3d335f?_0x5448e7[_0x323e('0x18')]:'','remove':'remove'==_0x3d335f?_0x5448e7[_0x323e('0x18')]:''});else{if(this['_schema'][_0x323e('0x2f')](_0x5448e7)){if(_0x26fcd4&&_0x26fcd4['type'][_0x323e('0x7')](_0x323e('0x20'))>-0x1&&_0x177dcf[_0x323e('0x28')](),_0x323e('0x2a')==_0x139d73[_0x323e('0x37')])continue;_0x26fcd4&&_0x26fcd4[_0x323e('0x37')]==_0x3d335f+_0x323e('0x2e')&&_0x26fcd4[_0x323e('0xf')]==_0x5448e7[_0x323e('0xf')]?_0x26fcd4[_0x323e('0x2')]++:_0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+'Object','name':_0x5448e7[_0x323e('0xf')],'quantity':0x1}),_0x993c95[_0x323e('0x30')](_0x488c51=>!(_0x323e('0x2a')==_0x488c51[_0x323e('0x37')]&&_0x488c51[_0x323e('0x2c')]==_0x5448e7));}else{if(this['_schema'][_0x323e('0x23')](_0x5448e7,_0x323e('0x1a'))||_0x5448e7['is'](_0x323e('0x9'),_0x323e('0x16'))){if(_0x323e('0x2b')==_0x3d335f&&_0x323e('0x24')==_0x139d73[_0x323e('0x37')]||_0x323e('0xb')==_0x3d335f&&_0x323e('0x2a')==_0x139d73[_0x323e('0x37')])continue;if(_0x26fcd4&&-0x1==_0x26fcd4[_0x323e('0x37')][_0x323e('0x7')](_0x323e('0x20'))){_0x323e('0x1e')==_0x26fcd4['type']&&(_0x26fcd4[_0x3d335f]+='\x0a');continue;}let _0x352cbf;if(_0x352cbf=_0x323e('0x2b')==_0x3d335f?_0x5448e7['nextSibling']&&!this[_0x323e('0x19')][_0x323e('0x2f')](_0x5448e7[_0x323e('0x34')])?_0x5448e7[_0x323e('0x34')]:null:_0x5448e7[_0x323e('0x35')]&&!this[_0x323e('0x19')][_0x323e('0x2f')](_0x5448e7[_0x323e('0x35')])?_0x5448e7[_0x323e('0x35')]:null,_0x5448e7['isEmpty']||_0x352cbf&&_0x352cbf[_0x323e('0x25')]){const _0xfc4dbf=_0x352cbf&&_0x352cbf['isEmpty']?_0x352cbf['name']:_0x5448e7[_0x323e('0xf')];_0x26fcd4&&_0x26fcd4[_0x323e('0x37')]==_0x3d335f+_0x323e('0xc')&&_0x26fcd4[_0x323e('0xf')]==_0xfc4dbf?_0x26fcd4[_0x323e('0x2')]++:_0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+_0x323e('0xc'),'name':_0xfc4dbf,'quantity':0x1});}else _0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+_0x323e('0x20'),'name':_0x5448e7[_0x323e('0xf')]});}}}}}[_0x323e('0x1d')](_0x274ebd){const _0x5b4565=this[_0x323e('0x29')],_0x730a08=[];for(const _0x196efc of _0x274ebd){switch(_0x196efc['type']){case _0x323e('0x1e'):if(_0x196efc[_0x323e('0x2b')]=_0x196efc[_0x323e('0x2b')][_0x323e('0x14')](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x196efc[_0x323e('0xb')]=_0x196efc[_0x323e('0xb')]['replace'](/(\S)\u000A+(\S)/g,_0x323e('0x0'))[_0x323e('0x14')](/\u000A/g,''),''!=_0x196efc['add']&&''!=_0x196efc[_0x323e('0xb')]){_0x730a08[_0x323e('0x2d')]({'type':_0x323e('0x14'),'content':_0x274fb8(_0x5b4565,_0x323e('0x38'),['\x22'+_0x196efc[_0x323e('0xb')]+'\x22','\x22'+_0x196efc[_0x323e('0x2b')]+'\x22'])});continue;}if(null!=_0x196efc[_0x323e('0x2b')]['match'](/^ +$/)){_0x730a08['push']({'type':_0x323e('0x13'),'content':_0x274fb8(_0x5b4565,_0x323e('0x1b'),_0x274fb8(_0x5b4565,_0x323e('0x32'),_0x196efc[_0x323e('0x2b')][_0x323e('0x12')]))});continue;}if(null!=_0x196efc['remove']['match'](/^ +$/)){_0x730a08[_0x323e('0x2d')]({'type':_0x323e('0x11'),'content':_0x274fb8(_0x5b4565,_0x323e('0x21'),_0x274fb8(_0x5b4565,_0x323e('0x32'),_0x196efc[_0x323e('0xb')]['length']))});continue;}if(''!=_0x196efc[_0x323e('0x2b')]){_0x730a08['push']({'type':_0x323e('0x13'),'content':_0x274fb8(_0x5b4565,'*Insert:*\x20%0','\x22'+_0x196efc[_0x323e('0x2b')]+'\x22')});continue;}_0x730a08[_0x323e('0x2d')]({'type':'deletion','content':_0x274fb8(_0x5b4565,_0x323e('0x21'),'\x22'+_0x196efc[_0x323e('0xb')]+'\x22')});continue;case _0x323e('0xa'):case _0x323e('0x10'):_0x730a08['push']({'type':'insertion','content':_0x274fb8(_0x5b4565,_0x323e('0x1b'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc['quantity']))});continue;case _0x323e('0x1'):case'removeObject':_0x730a08['push']({'type':_0x323e('0x11'),'content':_0x274fb8(_0x5b4565,_0x323e('0x21'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc['quantity']))});continue;case _0x323e('0x1f'):_0x730a08['push']({'type':'insertion','content':_0x274fb8(_0x5b4565,_0x323e('0x15'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc[_0x323e('0x2')]))});continue;case _0x323e('0x1c'):_0x730a08[_0x323e('0x2d')]({'type':'deletion','content':_0x274fb8(_0x5b4565,_0x323e('0x6'),this['getItemLabel'](_0x196efc['name'],_0x196efc[_0x323e('0x2')]))});continue;}_0x730a08[_0x323e('0x2d')](_0x196efc);}return _0x730a08;}}
23
+ const _0xeab9=['start','match','function','pop','type','*Split:*\x20%0','set','_itemLabels','nextSibling','Container','indexOf','_locale','quantity','addEmptyContainer','isObject','length','REPLACE_TEXT','element','*Merge:*\x20%0','insertion','replace','getFirstRange','elementEnd','registerDescriptionCallback','deletion','_schema','softBreak','addContainer','removeObject','add','end','textProxy','elementStart','Object','getDescriptions','previousSibling','addObject','getItemLabel','get','data','EmptyContainer','item','checkChild','*Remove:*\x20%0','isEmpty','name','push','remove','_customCallbacks','_resolveDescriptionItems','text','$1\x20$2','isInContent','removeEmptyContainer','_addDescriptionItems','ELEMENT_SPACE','getWalker','isEqual'];(function(_0x1508ba,_0xeab9f4){const _0x37bd4c=function(_0x47b7f4){while(--_0x47b7f4){_0x1508ba['push'](_0x1508ba['shift']());}};_0x37bd4c(++_0xeab9f4);}(_0xeab9,0xbc));const _0x37bd=function(_0x1508ba,_0xeab9f4){_0x1508ba=_0x1508ba-0x0;let _0x37bd4c=_0xeab9[_0x1508ba];return _0x37bd4c;};import{getTranslation as _0x5da5bc}from'./utils/common-translations';export default class l{constructor(_0x1effb2,_0x2e0926){this[_0x37bd('0x22')]=[],this['_itemLabels']=new Map(),this[_0x37bd('0xb')]=_0x1effb2,this[_0x37bd('0x37')]=_0x2e0926;}[_0x37bd('0x14')](_0x590baa){const _0x4e3b66=[];for(let _0x2ea2a0=0x0;_0x2ea2a0<_0x590baa[_0x37bd('0x1')];_0x2ea2a0++){const _0x438e1a=_0x590baa[_0x2ea2a0];if(!_0x438e1a[_0x37bd('0x26')])continue;let _0x3eddfe=!0x1;for(const _0x230176 of this[_0x37bd('0x22')]){const _0x2d4572=_0x230176(_0x438e1a);if(_0x2d4572){_0x2d4572[_0x37bd('0x30')]&&_0x4e3b66['push'](_0x2d4572),_0x3eddfe=!0x0;break;}}if(!_0x3eddfe){this[_0x37bd('0x28')](_0x4e3b66,_0x438e1a);const _0x33393a=_0x590baa[_0x2ea2a0+0x1];if(_0x33393a&&!_0x438e1a['getFirstRange']()[_0x37bd('0x10')][_0x37bd('0x2b')](_0x33393a[_0x37bd('0x7')]()[_0x37bd('0x2c')])){const _0x132f50=_0x4e3b66[_0x4e3b66[_0x37bd('0x1')]-0x1],_0xcbfd1f=_0x37bd('0x5')==_0x438e1a[_0x37bd('0x30')]?_0x37bd('0xf'):_0x37bd('0x21');_0x132f50&&_0x37bd('0x24')==_0x132f50['type']&&(_0x132f50[_0xcbfd1f]+='\x0a');}}}return this[_0x37bd('0x23')](_0x4e3b66);}[_0x37bd('0x9')](_0x3c75ac){this[_0x37bd('0x22')]['push'](_0x3c75ac);}['registerElementLabel'](_0x42fb60,_0x3a1513){this[_0x37bd('0x33')][_0x37bd('0x32')](_0x42fb60,_0x3a1513);}[_0x37bd('0x17')](_0x520869,_0x554499=0x1){const _0x1c69e4=this['_itemLabels'][_0x37bd('0x18')](_0x520869)||_0x520869;return _0x37bd('0x2e')==typeof _0x1c69e4?_0x1c69e4(_0x554499):0x1!==_0x554499?_0x554499+'\x20'+_0x1c69e4+'s':''+_0x1c69e4;}[_0x37bd('0x28')](_0x19823e,_0x556ae1){const _0x29373b=_0x556ae1[_0x37bd('0x7')]()[_0x37bd('0x2a')](),_0x246e71=_0x37bd('0x5')==_0x556ae1[_0x37bd('0x30')]?_0x37bd('0xf'):'remove';for(const _0x30e4f4 of _0x29373b){const _0x962085=_0x30e4f4[_0x37bd('0x1b')],_0xde0ac8=_0x19823e[_0x19823e[_0x37bd('0x1')]-0x1];if(_0x962085['is'](_0x37bd('0x11')))_0xde0ac8&&_0xde0ac8['type'][_0x37bd('0x36')](_0x37bd('0x35'))>-0x1&&_0x19823e[_0x37bd('0x2f')](),_0xde0ac8&&_0x37bd('0x24')==_0xde0ac8[_0x37bd('0x30')]?_0xde0ac8[_0x246e71]+=_0x962085[_0x37bd('0x19')]:_0x19823e[_0x37bd('0x20')]({'type':_0x37bd('0x24'),'add':_0x37bd('0xf')==_0x246e71?_0x962085[_0x37bd('0x19')]:'','remove':_0x37bd('0x21')==_0x246e71?_0x962085['data']:''});else{if(this[_0x37bd('0xb')][_0x37bd('0x0')](_0x962085)){if(_0xde0ac8&&_0xde0ac8[_0x37bd('0x30')][_0x37bd('0x36')](_0x37bd('0x35'))>-0x1&&_0x19823e[_0x37bd('0x2f')](),_0x37bd('0x8')==_0x30e4f4[_0x37bd('0x30')])continue;_0xde0ac8&&_0xde0ac8[_0x37bd('0x30')]==_0x246e71+_0x37bd('0x13')&&_0xde0ac8[_0x37bd('0x1f')]==_0x962085[_0x37bd('0x1f')]?_0xde0ac8[_0x37bd('0x38')]++:_0x19823e['push']({'type':_0x246e71+_0x37bd('0x13'),'name':_0x962085['name'],'quantity':0x1}),_0x29373b['skip'](_0xc2493e=>!(_0x37bd('0x8')==_0xc2493e['type']&&_0xc2493e[_0x37bd('0x1b')]==_0x962085));}else{if(this[_0x37bd('0xb')][_0x37bd('0x1c')](_0x962085,'$text')||_0x962085['is'](_0x37bd('0x3'),_0x37bd('0xc'))){if(_0x37bd('0xf')==_0x246e71&&_0x37bd('0x12')==_0x30e4f4[_0x37bd('0x30')]||_0x37bd('0x21')==_0x246e71&&'elementEnd'==_0x30e4f4[_0x37bd('0x30')])continue;if(_0xde0ac8&&-0x1==_0xde0ac8[_0x37bd('0x30')][_0x37bd('0x36')](_0x37bd('0x35'))){'text'==_0xde0ac8['type']&&(_0xde0ac8[_0x246e71]+='\x0a');continue;}let _0x2e85e7;if(_0x2e85e7=_0x37bd('0xf')==_0x246e71?_0x962085[_0x37bd('0x34')]&&!this[_0x37bd('0xb')][_0x37bd('0x0')](_0x962085['nextSibling'])?_0x962085[_0x37bd('0x34')]:null:_0x962085[_0x37bd('0x15')]&&!this[_0x37bd('0xb')]['isObject'](_0x962085[_0x37bd('0x15')])?_0x962085[_0x37bd('0x15')]:null,_0x962085[_0x37bd('0x1e')]||_0x2e85e7&&_0x2e85e7[_0x37bd('0x1e')]){const _0x76d5f7=_0x2e85e7&&_0x2e85e7[_0x37bd('0x1e')]?_0x2e85e7[_0x37bd('0x1f')]:_0x962085['name'];_0xde0ac8&&_0xde0ac8[_0x37bd('0x30')]==_0x246e71+_0x37bd('0x1a')&&_0xde0ac8['name']==_0x76d5f7?_0xde0ac8[_0x37bd('0x38')]++:_0x19823e[_0x37bd('0x20')]({'type':_0x246e71+_0x37bd('0x1a'),'name':_0x76d5f7,'quantity':0x1});}else _0x19823e['push']({'type':_0x246e71+_0x37bd('0x35'),'name':_0x962085['name']});}}}}}['_resolveDescriptionItems'](_0x188444){const _0x5c51fc=this[_0x37bd('0x37')],_0x4604d4=[];for(const _0x5903cc of _0x188444){switch(_0x5903cc[_0x37bd('0x30')]){case _0x37bd('0x24'):if(_0x5903cc[_0x37bd('0xf')]=_0x5903cc[_0x37bd('0xf')][_0x37bd('0x6')](/(\S)\u000A+(\S)/g,_0x37bd('0x25'))[_0x37bd('0x6')](/\u000A/g,''),_0x5903cc[_0x37bd('0x21')]=_0x5903cc[_0x37bd('0x21')][_0x37bd('0x6')](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5903cc[_0x37bd('0xf')]&&''!=_0x5903cc['remove']){_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x6'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x2'),['\x22'+_0x5903cc[_0x37bd('0x21')]+'\x22','\x22'+_0x5903cc[_0x37bd('0xf')]+'\x22'])});continue;}if(null!=_0x5903cc['add'][_0x37bd('0x2d')](/^ +$/)){_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x5'),'content':_0x5da5bc(_0x5c51fc,'*Insert:*\x20%0',_0x5da5bc(_0x5c51fc,_0x37bd('0x29'),_0x5903cc[_0x37bd('0xf')][_0x37bd('0x1')]))});continue;}if(null!=_0x5903cc[_0x37bd('0x21')][_0x37bd('0x2d')](/^ +$/)){_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0xa'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x1d'),_0x5da5bc(_0x5c51fc,_0x37bd('0x29'),_0x5903cc[_0x37bd('0x21')][_0x37bd('0x1')]))});continue;}if(''!=_0x5903cc['add']){_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x5'),'content':_0x5da5bc(_0x5c51fc,'*Insert:*\x20%0','\x22'+_0x5903cc[_0x37bd('0xf')]+'\x22')});continue;}_0x4604d4['push']({'type':_0x37bd('0xa'),'content':_0x5da5bc(_0x5c51fc,'*Remove:*\x20%0','\x22'+_0x5903cc[_0x37bd('0x21')]+'\x22')});continue;case _0x37bd('0x39'):case _0x37bd('0x16'):_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x5'),'content':_0x5da5bc(_0x5c51fc,'*Insert:*\x20%0',this[_0x37bd('0x17')](_0x5903cc['name'],_0x5903cc['quantity']))});continue;case _0x37bd('0x27'):case _0x37bd('0xe'):_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0xa'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x1d'),this[_0x37bd('0x17')](_0x5903cc[_0x37bd('0x1f')],_0x5903cc['quantity']))});continue;case _0x37bd('0xd'):_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x5'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x31'),this[_0x37bd('0x17')](_0x5903cc['name'],_0x5903cc['quantity']))});continue;case'removeContainer':_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0xa'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x4'),this['getItemLabel'](_0x5903cc[_0x37bd('0x1f')],_0x5903cc[_0x37bd('0x38')]))});continue;}_0x4604d4[_0x37bd('0x20')](_0x5903cc);}return _0x4604d4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x235c=['addSuggestion','pluginName','adapter','getSuggestions','plugins','Comments','get','editor','getSuggestion','TrackChanges'];(function(_0x5d7633,_0x235c3b){var _0x123b05=function(_0x1258ed){while(--_0x1258ed){_0x5d7633['push'](_0x5d7633['shift']());}};_0x123b05(++_0x235c3b);}(_0x235c,0x1ec));var _0x123b=function(_0x5d7633,_0x235c3b){_0x5d7633=_0x5d7633-0x0;var _0x123b05=_0x235c[_0x5d7633];return _0x123b05;};import{Plugin as _0xf4910}from'ckeditor5/src/core';import _0x4c71ca from'./trackchangesui';import _0x2bf343 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0xf4910{static get['requires'](){return[_0x2bf343,_0x4c71ca,_0x123b('0x3')];}static get[_0x123b('0x9')](){return _0x123b('0x7');}set[_0x123b('0x0')](_0x2bd31c){this[_0x123b('0x5')]['plugins'][_0x123b('0x4')](_0x2bf343)[_0x123b('0x0')]=_0x2bd31c;}get[_0x123b('0x0')](){return this[_0x123b('0x5')][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)[_0x123b('0x0')];}[_0x123b('0x8')](_0x1ee802){return this[_0x123b('0x5')][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['addSuggestionData'](_0x1ee802);}[_0x123b('0x1')](_0x4dc562){return this['editor'][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['getSuggestions'](_0x4dc562);}[_0x123b('0x6')](_0x4bc9a7){return this['editor'][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['getSuggestion'](_0x4bc9a7);}}
23
+ var _0x4767=['adapter','plugins','addSuggestionData','TrackChanges','editor','get','getSuggestions','addSuggestion'];(function(_0x4853c0,_0x47678f){var _0x1c6ca0=function(_0x43e94a){while(--_0x43e94a){_0x4853c0['push'](_0x4853c0['shift']());}};_0x1c6ca0(++_0x47678f);}(_0x4767,0x194));var _0x1c6c=function(_0x4853c0,_0x47678f){_0x4853c0=_0x4853c0-0x0;var _0x1c6ca0=_0x4767[_0x4853c0];return _0x1c6ca0;};import{Plugin as _0x35bc8b}from'ckeditor5/src/core';import _0x133cec from'./trackchangesui';import _0xf78b97 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x35bc8b{static get['requires'](){return[_0xf78b97,_0x133cec,'Comments'];}static get['pluginName'](){return _0x1c6c('0x7');}set['adapter'](_0x2c5ece){this[_0x1c6c('0x0')][_0x1c6c('0x5')]['get'](_0xf78b97)[_0x1c6c('0x4')]=_0x2c5ece;}get[_0x1c6c('0x4')](){return this['editor'][_0x1c6c('0x5')][_0x1c6c('0x1')](_0xf78b97)[_0x1c6c('0x4')];}[_0x1c6c('0x3')](_0x4d710c){return this['editor'][_0x1c6c('0x5')][_0x1c6c('0x1')](_0xf78b97)[_0x1c6c('0x6')](_0x4d710c);}[_0x1c6c('0x2')](_0x3f5310){return this[_0x1c6c('0x0')]['plugins'][_0x1c6c('0x1')](_0xf78b97)[_0x1c6c('0x2')](_0x3f5310);}['getSuggestion'](_0xbb1b06){return this['editor']['plugins'][_0x1c6c('0x1')](_0xf78b97)['getSuggestion'](_0xbb1b06);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c94=['config','getRootNames','createDocumentFragment','context','TrackChangesEditing','trackChangesData.editorCreator','extraPlugins','requires','div','data','getSuggestions','trackChangesData','editorCreator','string','map','TrackChangesDataGetter','add','Autosave','RealTimeCollaborativeEditing','CommentsRepository','discardAllSuggestions','get','plugins','execute','includes','every','end','acceptAllSuggestions','function','from','push','editor','create','concat','track-changes-data-invalid-editor-creator','toolbar','constructor','addSuggestionData','Users','destroy','model','pluginName','TrackChangesData','result','useAnonymousUser','RealTimeCollaborativeTrackChanges','document','users','has','createElement','getDataWithAcceptedSuggestions','_adapter'];(function(_0x4e04d3,_0x5c94e7){const _0x1b3dba=function(_0x3902a5){while(--_0x3902a5){_0x4e04d3['push'](_0x4e04d3['shift']());}};_0x1b3dba(++_0x5c94e7);}(_0x5c94,0x1ac));const _0x1b3d=function(_0x4e04d3,_0x5c94e7){_0x4e04d3=_0x4e04d3-0x0;let _0x1b3dba=_0x5c94[_0x4e04d3];return _0x1b3dba;};import{Plugin as _0x2073ca}from'ckeditor5/src/core';import{CKEditorError as _0x25b348}from'ckeditor5/src/utils';import _0x59843f from'./trackchangesediting';const C=['initialData',_0x1b3d('0x2b'),_0x1b3d('0x17')],k=[_0x1b3d('0x6'),'RealTimeCollaborativeComments',_0x1b3d('0x21'),_0x1b3d('0x5')];export default class T extends _0x2073ca{static get[_0x1b3d('0x2f')](){return[_0x59843f];}static get[_0x1b3d('0x1d')](){return _0x1b3d('0x1e');}['init'](){const _0x247d51=this[_0x1b3d('0x13')];if(_0x247d51[_0x1b3d('0x28')]['define'](_0x1b3d('0x2d'),_0x5ecd7a=>_0x247d51[_0x1b3d('0x18')][_0x1b3d('0x14')]('',_0x5ecd7a)),_0x1b3d('0x10')!=typeof _0x247d51[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x1b3d('0x33'))[_0x1b3d('0x0')])throw new _0x25b348(_0x1b3d('0x16'));}[_0x1b3d('0x26')](_0x5c9478){return w(this['editor'],!0x0,_0x5c9478);}['getDataWithDiscardedSuggestions'](_0x158fb3){return w(this[_0x1b3d('0x13')],!0x1,_0x158fb3);}}class D extends _0x2073ca{static get['pluginName'](){return _0x1b3d('0x3');}['init'](){this[_0x1b3d('0x1f')]=_0x1b3d('0xe'),this[_0x1b3d('0x13')][_0x1b3d('0xa')][_0x1b3d('0x9')](_0x1b3d('0x7'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this[_0x1b3d('0x13')]['plugins'][_0x1b3d('0x9')](_0x1b3d('0x2c'))[_0x1b3d('0x27')]=null;}}async function w(_0x17f98b,_0x408377,_0x2e5f29){const _0x2a6421=function(_0xe96921){const _0xf442fe={};for(const _0x2dcdc7 of _0xe96921[_0x1b3d('0x28')]['names']())C['includes'](_0x2dcdc7)||(_0xf442fe[_0x2dcdc7]=_0xe96921[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x2dcdc7));const _0x2f9ae6=_0xe96921[_0x1b3d('0x18')]['builtinPlugins']||[],_0x50a06f=_0xf442fe[_0x1b3d('0x2e')]||[];delete _0xf442fe[_0x1b3d('0x2e')];const _0x4cc3e0=_0x2f9ae6[_0x1b3d('0x15')](_0xf442fe['plugins'])[_0x1b3d('0x15')](_0x50a06f)[_0x1b3d('0x2')](_0x864b80=>_0x1b3d('0x1')==typeof _0x864b80?_0x2f9ae6['find'](_0x1c38ad=>_0x1c38ad['pluginName']==_0x864b80):_0x864b80),_0x4f3f58=Array[_0x1b3d('0x11')](new Set(_0x4cc3e0));return _0xf442fe['plugins']=_0x4f3f58['filter'](_0x364b24=>S(_0x364b24,new Set())),_0xf442fe[_0x1b3d('0xa')][_0x1b3d('0x12')](D),_0xf442fe['plugins'][_0x1b3d('0x12')](_0x59843f),_0xf442fe;}(_0x17f98b),_0x177399=document[_0x1b3d('0x2a')](),_0x4d0c92=_0x17f98b[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x1b3d('0x33'))[_0x1b3d('0x0')],_0x4a5e24=await _0x4d0c92(_0x2a6421,()=>function(_0xea85a4){const _0x552999=document[_0x1b3d('0x25')](_0x1b3d('0x30'));return _0xea85a4['appendChild'](_0x552999),_0x552999;}(_0x177399));!function(_0x708ad0,_0x3f2ea5){const _0x1235ba=_0x708ad0[_0x1b3d('0x1c')][_0x1b3d('0x22')][_0x1b3d('0x29')]()['reduce']((_0x38e0b5,_0x570012)=>(_0x38e0b5[_0x570012]=_0x708ad0['data'][_0x1b3d('0x9')]({'rootName':_0x570012}),_0x38e0b5),{}),_0x156fa1=_0x708ad0['plugins'][_0x1b3d('0x9')](_0x1b3d('0x1a'))[_0x1b3d('0x23')][_0x1b3d('0x2')](_0x2b4bbc=>({'id':_0x2b4bbc['id']})),_0x1a72cf=_0x708ad0[_0x1b3d('0xa')][_0x1b3d('0x9')](_0x1b3d('0x2c'))[_0x1b3d('0x32')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf54306=_0x3f2ea5['plugins'][_0x1b3d('0x9')](_0x1b3d('0x1a')),_0x17f8cb=_0x3f2ea5[_0x1b3d('0xa')][_0x1b3d('0x9')]('TrackChangesEditing');for(const _0x25fc81 of _0x156fa1)_0xf54306['getUser'](_0x25fc81['id'])||_0xf54306['addUser'](_0x25fc81);_0xf54306['me']||_0xf54306[_0x1b3d('0x20')]();for(const _0x5bda0b of _0x1a72cf)_0x17f8cb[_0x1b3d('0x19')](_0x5bda0b);_0x3f2ea5['data']['set'](_0x1235ba);}(_0x17f98b,_0x4a5e24),_0x4a5e24[_0x1b3d('0xb')](_0x408377?_0x1b3d('0xf'):_0x1b3d('0x8'));const _0x1ff7c9=_0x4a5e24[_0x1b3d('0x31')][_0x1b3d('0x9')](_0x2e5f29);return await _0x4a5e24[_0x1b3d('0x1b')](),_0x1ff7c9;}function S(_0x33f726,_0x2a171a){if(_0x2a171a[_0x1b3d('0x24')](_0x33f726))return!0x0;_0x2a171a[_0x1b3d('0x4')](_0x33f726);const _0xb51d9b=_0x1b3d('0x10')==typeof _0x33f726?_0x33f726[_0x1b3d('0x1d')]||_0x33f726['name']:_0x33f726;return(!_0xb51d9b||!k[_0x1b3d('0xc')](_0xb51d9b))&&(!_0x33f726[_0x1b3d('0x2f')]||_0x33f726[_0x1b3d('0x2f')][_0x1b3d('0xd')](_0x462eef=>S(_0x462eef,_0x2a171a)));}
23
+ const _0x4137=['constructor','trackChangesData.editorCreator','set','concat','TrackChangesData','data','plugins','RealTimeCollaborativeTrackChanges','RealTimeCollaborativeRevisionHistory','pluginName','reduce','track-changes-data-invalid-editor-creator','document','requires','appendChild','add','context','get','createElement','filter','editorCreator','Users','name','RealTimeCollaborativeComments','toolbar','includes','_adapter','push','discardAllSuggestions','from','end','trackChangesData','string','every','execute','init','result','getRootNames','createDocumentFragment','map','CommentsRepository','destroy','getDataWithDiscardedSuggestions','function','TrackChangesEditing','extraPlugins','initialData','div','names','getUser','find','getSuggestions','editor','config'];(function(_0x73475e,_0x4137af){const _0x20ac49=function(_0x1f0bf7){while(--_0x1f0bf7){_0x73475e['push'](_0x73475e['shift']());}};_0x20ac49(++_0x4137af);}(_0x4137,0x82));const _0x20ac=function(_0x73475e,_0x4137af){_0x73475e=_0x73475e-0x0;let _0x20ac49=_0x4137[_0x73475e];return _0x20ac49;};import{Plugin as _0x17d1da}from'ckeditor5/src/core';import{CKEditorError as _0x513882}from'ckeditor5/src/utils';import _0x28259f from'./trackchangesediting';const C=[_0x20ac('0x18'),_0x20ac('0x30'),_0x20ac('0x2')],k=['RealTimeCollaborativeEditing',_0x20ac('0x1'),_0x20ac('0x27'),_0x20ac('0x28'),'Autosave'];export default class T extends _0x17d1da{static get[_0x20ac('0x2d')](){return[_0x28259f];}static get[_0x20ac('0x29')](){return _0x20ac('0x24');}[_0x20ac('0xd')](){const _0x59e3cd=this[_0x20ac('0x1e')];if(_0x59e3cd['config']['define'](_0x20ac('0x21'),_0x451866=>_0x59e3cd['constructor']['create']('',_0x451866)),'function'!=typeof _0x59e3cd['config'][_0x20ac('0x31')](_0x20ac('0x9'))[_0x20ac('0x34')])throw new _0x513882(_0x20ac('0x2b'));}['getDataWithAcceptedSuggestions'](_0x5892ee){return v(this['editor'],!0x0,_0x5892ee);}[_0x20ac('0x14')](_0x58afc5){return v(this[_0x20ac('0x1e')],!0x1,_0x58afc5);}}class D extends _0x17d1da{static get[_0x20ac('0x29')](){return'TrackChangesDataGetter';}[_0x20ac('0xd')](){this[_0x20ac('0xe')]=_0x20ac('0x8'),this[_0x20ac('0x1e')][_0x20ac('0x26')][_0x20ac('0x31')](_0x20ac('0x12'))[_0x20ac('0x4')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x20ac('0x1e')][_0x20ac('0x26')][_0x20ac('0x31')](_0x20ac('0x16'))['_adapter']=null;}}async function v(_0x23813e,_0x499be8,_0x45671b){const _0x1a2869=function(_0x1bda49){const _0x492cc8={};for(const _0x3fd03e of _0x1bda49[_0x20ac('0x1f')][_0x20ac('0x1a')]())C[_0x20ac('0x3')](_0x3fd03e)||(_0x492cc8[_0x3fd03e]=_0x1bda49[_0x20ac('0x1f')][_0x20ac('0x31')](_0x3fd03e));const _0x45377f=_0x1bda49[_0x20ac('0x20')]['builtinPlugins']||[],_0x18c91b=_0x492cc8[_0x20ac('0x17')]||[];delete _0x492cc8['extraPlugins'];const _0x6dcd4c=_0x45377f[_0x20ac('0x23')](_0x492cc8[_0x20ac('0x26')])[_0x20ac('0x23')](_0x18c91b)[_0x20ac('0x11')](_0x209777=>_0x20ac('0xa')==typeof _0x209777?_0x45377f[_0x20ac('0x1c')](_0xae7d51=>_0xae7d51[_0x20ac('0x29')]==_0x209777):_0x209777),_0x54b5fd=Array[_0x20ac('0x7')](new Set(_0x6dcd4c));return _0x492cc8[_0x20ac('0x26')]=_0x54b5fd[_0x20ac('0x33')](_0x2075fb=>w(_0x2075fb,new Set())),_0x492cc8[_0x20ac('0x26')][_0x20ac('0x5')](D),_0x492cc8['plugins'][_0x20ac('0x5')](_0x28259f),_0x492cc8;}(_0x23813e),_0x2d194b=document[_0x20ac('0x10')](),_0x2c7d54=_0x23813e[_0x20ac('0x1f')][_0x20ac('0x31')](_0x20ac('0x9'))['editorCreator'],_0x34c6dd=await _0x2c7d54(_0x1a2869,()=>function(_0x399dbf){const _0x4748ca=document[_0x20ac('0x32')](_0x20ac('0x19'));return _0x399dbf[_0x20ac('0x2e')](_0x4748ca),_0x4748ca;}(_0x2d194b));!function(_0x31aa0e,_0x3b2a89){const _0x42e56c=_0x31aa0e['model'][_0x20ac('0x2c')][_0x20ac('0xf')]()[_0x20ac('0x2a')]((_0x5d8667,_0x57db7c)=>(_0x5d8667[_0x57db7c]=_0x31aa0e[_0x20ac('0x25')][_0x20ac('0x31')]({'rootName':_0x57db7c}),_0x5d8667),{}),_0x154a7f=_0x31aa0e[_0x20ac('0x26')][_0x20ac('0x31')]('Users')['users']['map'](_0x1ff6fd=>({'id':_0x1ff6fd['id']})),_0x2bb15b=_0x31aa0e['plugins']['get'](_0x20ac('0x16'))[_0x20ac('0x1d')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41677d=_0x3b2a89[_0x20ac('0x26')][_0x20ac('0x31')](_0x20ac('0x35')),_0x339f97=_0x3b2a89[_0x20ac('0x26')][_0x20ac('0x31')](_0x20ac('0x16'));for(const _0x531061 of _0x154a7f)_0x41677d[_0x20ac('0x1b')](_0x531061['id'])||_0x41677d['addUser'](_0x531061);_0x41677d['me']||_0x41677d['useAnonymousUser']();for(const _0x59f4d7 of _0x2bb15b)_0x339f97['addSuggestionData'](_0x59f4d7);_0x3b2a89[_0x20ac('0x25')][_0x20ac('0x22')](_0x42e56c);}(_0x23813e,_0x34c6dd),_0x34c6dd[_0x20ac('0xc')](_0x499be8?'acceptAllSuggestions':_0x20ac('0x6'));const _0x436888=_0x34c6dd[_0x20ac('0x25')][_0x20ac('0x31')](_0x45671b);return await _0x34c6dd[_0x20ac('0x13')](),_0x436888;}function w(_0x4f8794,_0x49f57d){if(_0x49f57d['has'](_0x4f8794))return!0x0;_0x49f57d[_0x20ac('0x2f')](_0x4f8794);const _0xfed869=_0x20ac('0x15')==typeof _0x4f8794?_0x4f8794[_0x20ac('0x29')]||_0x4f8794[_0x20ac('0x0')]:_0x4f8794;return(!_0xfed869||!k[_0x20ac('0x3')](_0xfed869))&&(!_0x4f8794[_0x20ac('0x2d')]||_0x4f8794[_0x20ac('0x2d')][_0x20ac('0xb')](_0x1bddf0=>w(_0x1bddf0,_0x49f57d)));}