@ckeditor/ckeditor5-track-changes 37.1.0 → 38.0.0-rc.1

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 (148) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/en-au.js +1 -1
  11. package/build/translations/es.js +1 -1
  12. package/build/translations/et.js +1 -1
  13. package/build/translations/fi.js +1 -1
  14. package/build/translations/fr.js +1 -1
  15. package/build/translations/he.js +1 -1
  16. package/build/translations/hi.js +1 -1
  17. package/build/translations/hr.js +1 -1
  18. package/build/translations/hu.js +1 -1
  19. package/build/translations/id.js +1 -1
  20. package/build/translations/it.js +1 -1
  21. package/build/translations/ja.js +1 -1
  22. package/build/translations/ko.js +1 -1
  23. package/build/translations/lt.js +1 -1
  24. package/build/translations/lv.js +1 -1
  25. package/build/translations/ms.js +1 -1
  26. package/build/translations/nl.js +1 -1
  27. package/build/translations/no.js +1 -1
  28. package/build/translations/pl.js +1 -1
  29. package/build/translations/pt-br.js +1 -1
  30. package/build/translations/pt.js +1 -1
  31. package/build/translations/ro.js +1 -1
  32. package/build/translations/ru.js +1 -1
  33. package/build/translations/sk.js +1 -1
  34. package/build/translations/sr-latn.js +1 -1
  35. package/build/translations/sr.js +1 -1
  36. package/build/translations/sv.js +1 -1
  37. package/build/translations/th.js +1 -1
  38. package/build/translations/tr.js +1 -1
  39. package/build/translations/uk.js +1 -1
  40. package/build/translations/vi.js +1 -1
  41. package/build/translations/zh-cn.js +1 -1
  42. package/build/translations/zh.js +1 -1
  43. package/lang/translations/ar.po +7 -7
  44. package/lang/translations/bg.po +3 -3
  45. package/lang/translations/bn.po +3 -3
  46. package/lang/translations/ca.po +3 -3
  47. package/lang/translations/cs.po +5 -5
  48. package/lang/translations/da.po +3 -3
  49. package/lang/translations/de.po +3 -3
  50. package/lang/translations/el.po +3 -3
  51. package/lang/translations/en-au.po +23 -23
  52. package/lang/translations/es.po +4 -4
  53. package/lang/translations/et.po +3 -3
  54. package/lang/translations/fi.po +3 -3
  55. package/lang/translations/fr.po +4 -4
  56. package/lang/translations/he.po +5 -5
  57. package/lang/translations/hi.po +3 -3
  58. package/lang/translations/hr.po +26 -26
  59. package/lang/translations/hu.po +3 -3
  60. package/lang/translations/id.po +2 -2
  61. package/lang/translations/it.po +4 -4
  62. package/lang/translations/ja.po +2 -2
  63. package/lang/translations/ko.po +2 -2
  64. package/lang/translations/lt.po +5 -5
  65. package/lang/translations/lv.po +4 -4
  66. package/lang/translations/ms.po +2 -2
  67. package/lang/translations/nl.po +3 -3
  68. package/lang/translations/no.po +3 -3
  69. package/lang/translations/pl.po +5 -5
  70. package/lang/translations/pt-br.po +4 -4
  71. package/lang/translations/pt.po +4 -4
  72. package/lang/translations/ro.po +4 -4
  73. package/lang/translations/ru.po +5 -5
  74. package/lang/translations/sk.po +5 -5
  75. package/lang/translations/sr-latn.po +4 -4
  76. package/lang/translations/sr.po +4 -4
  77. package/lang/translations/sv.po +3 -3
  78. package/lang/translations/th.po +2 -2
  79. package/lang/translations/tr.po +3 -3
  80. package/lang/translations/uk.po +5 -5
  81. package/lang/translations/vi.po +2 -2
  82. package/lang/translations/zh-cn.po +2 -2
  83. package/lang/translations/zh.po +2 -2
  84. package/package.json +3 -3
  85. package/src/commands/acceptsuggestioncommand.js +1 -1
  86. package/src/commands/discardsuggestioncommand.js +1 -1
  87. package/src/commands/executeonallsuggestionscommand.js +1 -1
  88. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  89. package/src/commands/trackchangescommand.js +1 -1
  90. package/src/integrations/alignment.js +1 -1
  91. package/src/integrations/basicstyles.js +1 -1
  92. package/src/integrations/blockquote.js +1 -1
  93. package/src/integrations/ckbox.js +1 -1
  94. package/src/integrations/codeblock.js +1 -1
  95. package/src/integrations/comments.js +1 -1
  96. package/src/integrations/deletecommand.js +1 -1
  97. package/src/integrations/documentlist.js +1 -1
  98. package/src/integrations/documentlistproperties.js +1 -1
  99. package/src/integrations/entercommand.js +1 -1
  100. package/src/integrations/findandreplace.js +1 -1
  101. package/src/integrations/font.js +1 -1
  102. package/src/integrations/formatpainter.js +1 -1
  103. package/src/integrations/heading.js +1 -1
  104. package/src/integrations/highlight.js +1 -1
  105. package/src/integrations/horizontalline.js +1 -1
  106. package/src/integrations/htmlembed.js +1 -1
  107. package/src/integrations/image.js +1 -1
  108. package/src/integrations/imagereplace.js +1 -1
  109. package/src/integrations/importword.js +1 -1
  110. package/src/integrations/indent.js +1 -1
  111. package/src/integrations/inputcommand.js +1 -1
  112. package/src/integrations/link.js +1 -1
  113. package/src/integrations/list.js +1 -1
  114. package/src/integrations/listproperties.js +1 -1
  115. package/src/integrations/mediaembed.js +1 -1
  116. package/src/integrations/mention.js +1 -1
  117. package/src/integrations/pagebreak.js +1 -1
  118. package/src/integrations/paragraph.js +1 -1
  119. package/src/integrations/removeformat.js +1 -1
  120. package/src/integrations/restrictededitingmode.js +1 -1
  121. package/src/integrations/shiftentercommand.js +1 -1
  122. package/src/integrations/standardeditingmode.js +1 -1
  123. package/src/integrations/style.js +1 -1
  124. package/src/integrations/table.js +1 -1
  125. package/src/integrations/tablecaption.js +1 -1
  126. package/src/integrations/tableclipboard.js +1 -1
  127. package/src/integrations/tablecolumnresize.js +1 -1
  128. package/src/integrations/tableheadings.js +1 -1
  129. package/src/integrations/tablemergesplit.js +1 -1
  130. package/src/integrations/tableofcontents.js +1 -1
  131. package/src/integrations/tableproperties.js +1 -1
  132. package/src/integrations/template.js +1 -1
  133. package/src/integrations/title.js +1 -1
  134. package/src/integrations/undo.js +1 -1
  135. package/src/integrations/utils.js +1 -1
  136. package/src/suggestion.js +1 -1
  137. package/src/suggestiondescriptionfactory.js +1 -1
  138. package/src/trackchanges.d.ts +23 -5
  139. package/src/trackchanges.js +1 -1
  140. package/src/trackchangesconfig.d.ts +23 -5
  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/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2294=['locale','showSuggestionHighlights','ck-suggestion-marker-','forceValue','document','registerCustomCallback','formatBlock','createPositionBefore','selection','TableUtils','FORMAT_REGULAR_COLUMN','from','index','first','createPositionAfter','_suggestionFactory','writer','stop','nodeAfter','data','editor','requires','afterInit','unbindElementFromMarkerName','commands','consumable','TableEditing','end','downcastDispatcher','has','plugins','createTableWalker','headingRows','includes','*Format:*\x20%0','isBefore','ck-suggestion-marker--active','setTableColumnHeader','cell','addMarker:suggestion','markerName','childCount','markBlockFormat','getChild','_descriptionFactory','data-suggestion','removeClass','mapper','item','get','headingColumns','_splitMarkerName','highest','findAncestor','FORMAT_HEADER_ROW','markerNameToElements','accept','commandName','activeMarkers','editing','getCellLocation','removeAttribute','createRange','format','table','consume','enableCommand','options','markerRange','value','TrackChangesEditing','last','commandParams','getAttribute','setTableRowHeader','parent','getSelectionAffectedTableCells','toViewElement','setAttribute','registerDescriptionCallback','model','change'];(function(_0x2c1ee9,_0x22947a){const _0x3b32c9=function(_0x62bdc0){while(--_0x62bdc0){_0x2c1ee9['push'](_0x2c1ee9['shift']());}};_0x3b32c9(++_0x22947a);}(_0x2294,0x11d));const _0x3b32=function(_0x2c1ee9,_0x22947a){_0x2c1ee9=_0x2c1ee9-0x0;let _0x3b32c9=_0x2294[_0x2c1ee9];return _0x3b32c9;};import{Plugin as _0xe23478}from'ckeditor5/src/core';import _0x3a46e3 from'./table';import{getTranslation as _0x38158d}from'../utils/common-translations';export default class pt extends _0xe23478{static get[_0x3b32('0x40')](){return[_0x3a46e3];}[_0x3b32('0x41')](){const _0x2b60d8=this[_0x3b32('0x3f')];if(!_0x2b60d8['plugins'][_0x3b32('0x48')](_0x3b32('0x45')))return;const _0x316bfe=_0x2b60d8[_0x3b32('0x2b')],_0x287c4d=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3b32('0x1f')),_0x4be1f4=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3b32('0x34')),_0x3045ba=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')](_0x3a46e3);function _0x2cb40f({showActiveMarker:_0x14ad39=!0x0,setDataAttribute:_0x4b1d3a=!0x0}={}){return(_0x5f2654,_0x4903f0,_0x5d6c1d)=>{const {type:_0x45b4e8,id:_0x158866}=_0x287c4d[_0x3b32('0xc')](_0x4903f0[_0x3b32('0x1')]),_0x385202=_0x287c4d['getSuggestion'](_0x158866);if(!_0x385202[_0x3b32('0x3e')]||_0x3b32('0x50')!=_0x385202[_0x3b32('0x3e')]['commandName'])return;if(_0x4903f0[_0x3b32('0x9')])return void _0x5f2654[_0x3b32('0x3c')]();if(!_0x5d6c1d[_0x3b32('0x44')][_0x3b32('0x1a')](_0x4903f0[_0x3b32('0x1d')],_0x5f2654['name']))return;const _0x244af4=_0x4903f0[_0x3b32('0x1d')]['start'][_0x3b32('0x3d')],_0x38daf3=_0x4903f0['markerRange'][_0x3b32('0x46')]['nodeBefore'],_0x30992d=_0x244af4[_0x3b32('0x24')][_0x3b32('0x24')],{column:_0x2fb0b9}=_0x4be1f4[_0x3b32('0x15')](_0x244af4),{column:_0x402341}=_0x4be1f4[_0x3b32('0x15')](_0x38daf3);for(let _0x556aa6=_0x2fb0b9;_0x556aa6<=_0x402341;_0x556aa6++){const _0x178982=_0x4be1f4[_0x3b32('0x4a')](_0x30992d,{'column':_0x556aa6,'includeAllSlots':!0x1});for(const _0x2d7c6b of _0x178982){const _0x5ef385=_0x2d7c6b[_0x3b32('0x51')],_0x3afa22=_0x5d6c1d[_0x3b32('0x8')][_0x3b32('0x26')](_0x5ef385);_0x5d6c1d[_0x3b32('0x3b')]['addClass'](_0x3b32('0x2d')+_0x45b4e8,_0x3afa22),_0x4b1d3a&&_0x5d6c1d[_0x3b32('0x3b')][_0x3b32('0x27')](_0x3b32('0x6'),_0x158866,_0x3afa22),_0x5d6c1d[_0x3b32('0x8')]['bindElementToMarker'](_0x3afa22,_0x4903f0[_0x3b32('0x1')]),_0x14ad39&&(_0x287c4d[_0x3b32('0x13')][_0x3b32('0x4c')](_0x4903f0['markerName'])?_0x5d6c1d['writer']['addClass'](_0x3b32('0x4f'),_0x3afa22):_0x5d6c1d[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x4f'),_0x3afa22));}}};}_0x287c4d[_0x3b32('0x1b')](_0x3b32('0x23'),(_0xab16d2,_0x471c1c)=>{const _0x58bebe=_0x4be1f4[_0x3b32('0x25')](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x2f')][_0x3b32('0x33')]),_0xf6d528=_0x4be1f4['getRowIndexes'](_0x58bebe),_0x45c03e=_0x58bebe[0x0][_0x3b32('0xe')](_0x3b32('0x19')),_0x35b7aa=_0x45c03e[_0x3b32('0x22')](_0x3b32('0x4b'))||0x0,_0xc6b258=_0x471c1c&&null!==_0x471c1c[_0x3b32('0x2e')]?_0x471c1c[_0x3b32('0x2e')]:!_0x2b60d8[_0x3b32('0x43')]['get'](_0x3b32('0x23'))[_0x3b32('0x1e')],_0x4e66d9=_0xc6b258?_0xf6d528[_0x3b32('0x20')]:_0xf6d528[_0x3b32('0x38')],_0x2c92de=_0x45c03e[_0x3b32('0x4')](_0x4e66d9);let _0x316641;if(_0xc6b258){const _0xe13de7=_0x45c03e[_0x3b32('0x4')](_0x35b7aa);if(_0x2c92de[_0x3b32('0x37')]<_0xe13de7['index'])return;_0x316641=_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x17')](_0x2b60d8['model'][_0x3b32('0x32')](_0xe13de7[_0x3b32('0x4')](0x0)),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x2c92de[_0x3b32('0x4')](_0x2c92de[_0x3b32('0x2')]-0x1)));}else{const _0x5ae620=_0x45c03e['getChild'](_0x35b7aa-0x1);if(!_0x5ae620)return;_0x316641=_0x2b60d8['model'][_0x3b32('0x17')](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x32')](_0x2c92de['getChild'](0x0)),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x5ae620[_0x3b32('0x4')](_0x5ae620[_0x3b32('0x2')]-0x1)));}_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x2a')](()=>{_0x287c4d['markBlockFormat'](_0x316641,{'commandName':_0x3b32('0x23'),'commandParams':[{'forceValue':_0xc6b258}]},[],'setTableRowHeader');});}),_0x287c4d[_0x3b32('0x1b')](_0x3b32('0x50'),(_0xde6481,_0x1d1b3c)=>{const _0x3aaf40=_0x2b60d8[_0x3b32('0x49')][_0x3b32('0xa')]('TableUtils'),_0x40d6e2=_0x3aaf40['getSelectionAffectedTableCells'](_0x2b60d8['model']['document']['selection']),_0x58f826=_0x3aaf40['getColumnIndexes'](_0x40d6e2),_0x570ecf=_0x40d6e2[0x0]['findAncestor'](_0x3b32('0x19')),_0x55cfc9=_0x570ecf['getAttribute'](_0x3b32('0xb'))||0x0,_0x2c43c2=_0x1d1b3c&&null!==_0x1d1b3c[_0x3b32('0x2e')]?_0x1d1b3c[_0x3b32('0x2e')]:!_0x2b60d8[_0x3b32('0x43')][_0x3b32('0xa')](_0x3b32('0x50'))[_0x3b32('0x1e')];let _0x2738a7;const _0x29c4fd=_0x570ecf[_0x3b32('0x4')](0x0),_0x426387=_0x2c43c2?_0x58f826['last']:_0x58f826[_0x3b32('0x38')],_0xdaf4eb=_0x3aaf40[_0x3b32('0x4a')](_0x570ecf,{'startRow':0x0,'column':_0x426387,'includeAllSlots':!0x1}),_0x8b0b3=Array[_0x3b32('0x36')](_0xdaf4eb)[0x0][_0x3b32('0x51')];if(_0x2c43c2){const _0x2f4113=_0x29c4fd[_0x3b32('0x4')](_0x55cfc9);if(_0x8b0b3[_0x3b32('0x4e')](_0x2f4113))return;_0x2738a7=_0x2b60d8['model'][_0x3b32('0x17')](_0x2b60d8[_0x3b32('0x29')]['createPositionBefore'](_0x2f4113),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x8b0b3));}else{const _0x3cb9f9=_0x29c4fd[_0x3b32('0x4')](_0x55cfc9-0x1);if(!_0x3cb9f9)return;_0x2738a7=_0x2b60d8[_0x3b32('0x29')]['createRange'](_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x32')](_0x8b0b3),_0x2b60d8[_0x3b32('0x29')][_0x3b32('0x39')](_0x3cb9f9));}_0x2b60d8[_0x3b32('0x29')]['change'](()=>{_0x287c4d[_0x3b32('0x3')](_0x2738a7,{'commandName':_0x3b32('0x50'),'commandParams':[{'forceValue':_0x2c43c2}]},[],_0x3b32('0x50'));});}),_0x2b60d8['editing'][_0x3b32('0x47')]['on'](_0x3b32('0x0'),_0x2cb40f(),{'priority':_0x3b32('0xd')}),_0x2b60d8[_0x3b32('0x3e')][_0x3b32('0x47')]['on'](_0x3b32('0x0'),(_0x1fa8af,_0x3cd83e,_0x389aaf)=>{_0x389aaf[_0x3b32('0x1c')][_0x3b32('0x2c')]&&_0x2cb40f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1fa8af,_0x3cd83e,_0x389aaf);},{'priority':_0x3b32('0xd')}),_0x2b60d8[_0x3b32('0x14')][_0x3b32('0x47')]['on']('removeMarker:suggestion',(_0x14673b,_0x19852d,_0xfccdf5)=>{const {type:_0x2850af,id:_0xf08398}=_0x287c4d[_0x3b32('0xc')](_0x19852d[_0x3b32('0x1')]),_0x1b5352=_0x287c4d['getSuggestion'](_0xf08398);if(!_0x1b5352[_0x3b32('0x3e')]||'setTableColumnHeader'!=_0x1b5352[_0x3b32('0x3e')][_0x3b32('0x12')])return;const _0x521045=_0xfccdf5['mapper'][_0x3b32('0x10')](_0x19852d[_0x3b32('0x1')]);if(_0x521045)for(const _0x1cd703 of _0x521045)_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x2d')+_0x2850af,_0x1cd703),_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x7')](_0x3b32('0x4f'),_0x1cd703),_0xfccdf5[_0x3b32('0x3b')][_0x3b32('0x16')](_0x3b32('0x6'),_0x1cd703),_0xfccdf5[_0x3b32('0x8')][_0x3b32('0x42')](_0x1cd703,_0x19852d['markerName']);},{'priority':_0x3b32('0xd')}),_0x287c4d[_0x3b32('0x5')][_0x3b32('0x28')](_0x17a51b=>{const {data:_0x2260a8}=_0x17a51b;if(_0x2260a8){if(_0x3b32('0x23')==_0x2260a8['commandName']){const _0x32725f=_0x2260a8[_0x3b32('0x21')][0x0][_0x3b32('0x2e')];return _0x2b1662(_0x38158d(_0x316bfe,_0x32725f?_0x3b32('0xf'):'FORMAT_REGULAR_ROW'));}if(_0x3b32('0x50')==_0x2260a8[_0x3b32('0x12')]){const _0x4997ce=_0x2260a8[_0x3b32('0x21')][0x0]['forceValue'];return _0x2b1662(_0x38158d(_0x316bfe,_0x4997ce?'FORMAT_HEADER_COLUMN':_0x3b32('0x35')));}}function _0x2b1662(_0x1933f2){return{'type':_0x3b32('0x18'),'content':_0x38158d(_0x316bfe,_0x3b32('0x4d'),_0x1933f2)};}});const _0x232816=_0x3045ba['_acceptFormatSuggestionCallbackFactory']();_0x287c4d[_0x3b32('0x3a')][_0x3b32('0x30')]('formatBlock',_0x3b32('0x23'),_0x3b32('0x11'),_0x232816),_0x287c4d[_0x3b32('0x3a')][_0x3b32('0x30')](_0x3b32('0x31'),_0x3b32('0x50'),'accept',_0x232816);}}
23
+ const _0x1834=['forceValue','markerRange','addClass','_splitMarkerName','data','isBefore','table','getChild','afterInit','index','createTableWalker','cell','FORMAT_REGULAR_COLUMN','parent','change','commands','mapper','FORMAT_REGULAR_ROW','format','childCount','createPositionAfter','nodeAfter','last','downcastDispatcher','ck-suggestion-marker--active','getSuggestion','end','markBlockFormat','*Format:*\x20%0','commandParams','data-suggestion','TableUtils','removeMarker:suggestion','activeMarkers','markerName','TrackChangesEditing','enableCommand','start','getRowIndexes','writer','stop','ck-suggestion-marker-','includes','addMarker:suggestion','options','registerCustomCallback','item','first','get','getCellLocation','getAttribute','setTableRowHeader','registerDescriptionCallback','createRange','markerNameToElements','removeClass','from','getSelectionAffectedTableCells','headingRows','locale','highest','plugins','_suggestionFactory','showSuggestionHighlights','model','selection','value','consume','commandName','consumable','document','editor','FORMAT_HEADER_COLUMN','FORMAT_HEADER_ROW','unbindElementFromMarkerName','removeAttribute','formatBlock','accept','findAncestor','editing','setTableColumnHeader','setAttribute'];(function(_0x4f94f9,_0x183412){const _0xdc97af=function(_0x2a75e7){while(--_0x2a75e7){_0x4f94f9['push'](_0x4f94f9['shift']());}};_0xdc97af(++_0x183412);}(_0x1834,0x1b2));const _0xdc97=function(_0x4f94f9,_0x183412){_0x4f94f9=_0x4f94f9-0x0;let _0xdc97af=_0x1834[_0x4f94f9];return _0xdc97af;};import{Plugin as _0x25e171}from'ckeditor5/src/core';import _0x4ee334 from'./table';import{getTranslation as _0x54c3cb}from'../utils/common-translations';export default class pt extends _0x25e171{static get['requires'](){return[_0x4ee334];}[_0xdc97('0x42')](){const _0x40de47=this[_0xdc97('0x2f')];if(!_0x40de47[_0xdc97('0x25')]['has']('TableEditing'))return;const _0x203ac2=_0x40de47[_0xdc97('0x23')],_0x24e15e=_0x40de47['plugins'][_0xdc97('0x18')](_0xdc97('0xb')),_0x1f4331=_0x40de47[_0xdc97('0x25')][_0xdc97('0x18')](_0xdc97('0x7')),_0xeb316c=_0x40de47[_0xdc97('0x25')][_0xdc97('0x18')](_0x4ee334);function _0x1a767e({showActiveMarker:_0x5319be=!0x0,setDataAttribute:_0x2daa63=!0x0}={}){return(_0x12ef35,_0x57c547,_0x22ac45)=>{const {type:_0x558c36,id:_0x4d74d5}=_0x24e15e['_splitMarkerName'](_0x57c547['markerName']),_0x30c94d=_0x24e15e[_0xdc97('0x1')](_0x4d74d5);if(!_0x30c94d[_0xdc97('0x3e')]||_0xdc97('0x38')!=_0x30c94d[_0xdc97('0x3e')][_0xdc97('0x2c')])return;if(_0x57c547[_0xdc97('0x16')])return void _0x12ef35[_0xdc97('0x10')]();if(!_0x22ac45[_0xdc97('0x2d')][_0xdc97('0x2b')](_0x57c547[_0xdc97('0x3b')],_0x12ef35['name']))return;const _0x58cacc=_0x57c547[_0xdc97('0x3b')][_0xdc97('0xd')][_0xdc97('0x4f')],_0x2e2389=_0x57c547[_0xdc97('0x3b')][_0xdc97('0x2')]['nodeBefore'],_0x1111ae=_0x58cacc['parent'][_0xdc97('0x47')],{column:_0x1fdb47}=_0x1f4331[_0xdc97('0x19')](_0x58cacc),{column:_0x39e476}=_0x1f4331[_0xdc97('0x19')](_0x2e2389);for(let _0x3646ee=_0x1fdb47;_0x3646ee<=_0x39e476;_0x3646ee++){const _0x345254=_0x1f4331['createTableWalker'](_0x1111ae,{'column':_0x3646ee,'includeAllSlots':!0x1});for(const _0x14f362 of _0x345254){const _0x263ffa=_0x14f362[_0xdc97('0x45')],_0x5a0f35=_0x22ac45[_0xdc97('0x4a')]['toViewElement'](_0x263ffa);_0x22ac45[_0xdc97('0xf')][_0xdc97('0x3c')](_0xdc97('0x11')+_0x558c36,_0x5a0f35),_0x2daa63&&_0x22ac45[_0xdc97('0xf')][_0xdc97('0x39')](_0xdc97('0x6'),_0x4d74d5,_0x5a0f35),_0x22ac45['mapper']['bindElementToMarker'](_0x5a0f35,_0x57c547[_0xdc97('0xa')]),_0x5319be&&(_0x24e15e[_0xdc97('0x9')][_0xdc97('0x12')](_0x57c547[_0xdc97('0xa')])?_0x22ac45['writer']['addClass']('ck-suggestion-marker--active',_0x5a0f35):_0x22ac45['writer']['removeClass']('ck-suggestion-marker--active',_0x5a0f35));}}};}_0x24e15e['enableCommand']('setTableRowHeader',(_0x58cddf,_0x2011aa)=>{const _0x51f6cf=_0x1f4331[_0xdc97('0x21')](_0x40de47['model'][_0xdc97('0x2e')][_0xdc97('0x29')]),_0xc570c7=_0x1f4331[_0xdc97('0xe')](_0x51f6cf),_0x5de692=_0x51f6cf[0x0]['findAncestor'](_0xdc97('0x40')),_0x428387=_0x5de692[_0xdc97('0x1a')](_0xdc97('0x22'))||0x0,_0x3966e4=_0x2011aa&&null!==_0x2011aa[_0xdc97('0x3a')]?_0x2011aa[_0xdc97('0x3a')]:!_0x40de47['commands'][_0xdc97('0x18')]('setTableRowHeader')[_0xdc97('0x2a')],_0x54f795=_0x3966e4?_0xc570c7[_0xdc97('0x50')]:_0xc570c7['first'],_0x2c9275=_0x5de692[_0xdc97('0x41')](_0x54f795);let _0x4465e3;if(_0x3966e4){const _0x2ebbe5=_0x5de692[_0xdc97('0x41')](_0x428387);if(_0x2c9275['index']<_0x2ebbe5[_0xdc97('0x43')])return;_0x4465e3=_0x40de47[_0xdc97('0x28')][_0xdc97('0x1d')](_0x40de47['model']['createPositionBefore'](_0x2ebbe5[_0xdc97('0x41')](0x0)),_0x40de47[_0xdc97('0x28')][_0xdc97('0x4e')](_0x2c9275[_0xdc97('0x41')](_0x2c9275['childCount']-0x1)));}else{const _0x35cefb=_0x5de692[_0xdc97('0x41')](_0x428387-0x1);if(!_0x35cefb)return;_0x4465e3=_0x40de47[_0xdc97('0x28')][_0xdc97('0x1d')](_0x40de47[_0xdc97('0x28')]['createPositionBefore'](_0x2c9275['getChild'](0x0)),_0x40de47[_0xdc97('0x28')][_0xdc97('0x4e')](_0x35cefb[_0xdc97('0x41')](_0x35cefb[_0xdc97('0x4d')]-0x1)));}_0x40de47[_0xdc97('0x28')]['change'](()=>{_0x24e15e[_0xdc97('0x3')](_0x4465e3,{'commandName':_0xdc97('0x1b'),'commandParams':[{'forceValue':_0x3966e4}]},[],_0xdc97('0x1b'));});}),_0x24e15e[_0xdc97('0xc')](_0xdc97('0x38'),(_0x811695,_0x2da101)=>{const _0x193510=_0x40de47[_0xdc97('0x25')][_0xdc97('0x18')](_0xdc97('0x7')),_0x5eaba1=_0x193510['getSelectionAffectedTableCells'](_0x40de47[_0xdc97('0x28')][_0xdc97('0x2e')][_0xdc97('0x29')]),_0x2fbb08=_0x193510['getColumnIndexes'](_0x5eaba1),_0x5623ca=_0x5eaba1[0x0][_0xdc97('0x36')]('table'),_0x236723=_0x5623ca[_0xdc97('0x1a')]('headingColumns')||0x0,_0x43da67=_0x2da101&&null!==_0x2da101['forceValue']?_0x2da101[_0xdc97('0x3a')]:!_0x40de47[_0xdc97('0x49')][_0xdc97('0x18')](_0xdc97('0x38'))[_0xdc97('0x2a')];let _0xfe1e09;const _0x116ab9=_0x5623ca['getChild'](0x0),_0x521514=_0x43da67?_0x2fbb08['last']:_0x2fbb08[_0xdc97('0x17')],_0x1d7727=_0x193510[_0xdc97('0x44')](_0x5623ca,{'startRow':0x0,'column':_0x521514,'includeAllSlots':!0x1}),_0x1d2ce5=Array[_0xdc97('0x20')](_0x1d7727)[0x0][_0xdc97('0x45')];if(_0x43da67){const _0x3625c3=_0x116ab9[_0xdc97('0x41')](_0x236723);if(_0x1d2ce5[_0xdc97('0x3f')](_0x3625c3))return;_0xfe1e09=_0x40de47[_0xdc97('0x28')][_0xdc97('0x1d')](_0x40de47[_0xdc97('0x28')]['createPositionBefore'](_0x3625c3),_0x40de47[_0xdc97('0x28')][_0xdc97('0x4e')](_0x1d2ce5));}else{const _0x2244a5=_0x116ab9[_0xdc97('0x41')](_0x236723-0x1);if(!_0x2244a5)return;_0xfe1e09=_0x40de47[_0xdc97('0x28')]['createRange'](_0x40de47['model']['createPositionBefore'](_0x1d2ce5),_0x40de47[_0xdc97('0x28')]['createPositionAfter'](_0x2244a5));}_0x40de47[_0xdc97('0x28')][_0xdc97('0x48')](()=>{_0x24e15e[_0xdc97('0x3')](_0xfe1e09,{'commandName':_0xdc97('0x38'),'commandParams':[{'forceValue':_0x43da67}]},[],_0xdc97('0x38'));});}),_0x40de47[_0xdc97('0x37')]['downcastDispatcher']['on'](_0xdc97('0x13'),_0x1a767e(),{'priority':_0xdc97('0x24')}),_0x40de47['data'][_0xdc97('0x51')]['on'](_0xdc97('0x13'),(_0x42d866,_0x3f3c97,_0x27f035)=>{_0x27f035[_0xdc97('0x14')][_0xdc97('0x27')]&&_0x1a767e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x42d866,_0x3f3c97,_0x27f035);},{'priority':_0xdc97('0x24')}),_0x40de47[_0xdc97('0x37')][_0xdc97('0x51')]['on'](_0xdc97('0x8'),(_0x1d5d39,_0xd60e0,_0xe38bdb)=>{const {type:_0x192008,id:_0x1b15f5}=_0x24e15e[_0xdc97('0x3d')](_0xd60e0[_0xdc97('0xa')]),_0x7d3019=_0x24e15e['getSuggestion'](_0x1b15f5);if(!_0x7d3019[_0xdc97('0x3e')]||'setTableColumnHeader'!=_0x7d3019[_0xdc97('0x3e')][_0xdc97('0x2c')])return;const _0x23a20b=_0xe38bdb[_0xdc97('0x4a')][_0xdc97('0x1e')](_0xd60e0[_0xdc97('0xa')]);if(_0x23a20b)for(const _0x488ae3 of _0x23a20b)_0xe38bdb[_0xdc97('0xf')]['removeClass'](_0xdc97('0x11')+_0x192008,_0x488ae3),_0xe38bdb[_0xdc97('0xf')][_0xdc97('0x1f')](_0xdc97('0x0'),_0x488ae3),_0xe38bdb[_0xdc97('0xf')][_0xdc97('0x33')](_0xdc97('0x6'),_0x488ae3),_0xe38bdb[_0xdc97('0x4a')][_0xdc97('0x32')](_0x488ae3,_0xd60e0[_0xdc97('0xa')]);},{'priority':_0xdc97('0x24')}),_0x24e15e['_descriptionFactory'][_0xdc97('0x1c')](_0x26bb67=>{const {data:_0x15496f}=_0x26bb67;if(_0x15496f){if('setTableRowHeader'==_0x15496f[_0xdc97('0x2c')]){const _0x35164b=_0x15496f[_0xdc97('0x5')][0x0]['forceValue'];return _0x462fb8(_0x54c3cb(_0x203ac2,_0x35164b?_0xdc97('0x31'):_0xdc97('0x4b')));}if(_0xdc97('0x38')==_0x15496f[_0xdc97('0x2c')]){const _0x4f7c5f=_0x15496f[_0xdc97('0x5')][0x0][_0xdc97('0x3a')];return _0x462fb8(_0x54c3cb(_0x203ac2,_0x4f7c5f?_0xdc97('0x30'):_0xdc97('0x46')));}}function _0x462fb8(_0x4dbebf){return{'type':_0xdc97('0x4c'),'content':_0x54c3cb(_0x203ac2,_0xdc97('0x4'),_0x4dbebf)};}});const _0x374e06=_0xeb316c['_acceptFormatSuggestionCallbackFactory']();_0x24e15e[_0xdc97('0x26')][_0xdc97('0x15')](_0xdc97('0x34'),_0xdc97('0x1b'),_0xdc97('0x35'),_0x374e06),_0x24e15e['_suggestionFactory'][_0xdc97('0x15')](_0xdc97('0x34'),_0xdc97('0x38'),'accept',_0x374e06);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3211=['insertion','getSuggestions','TableUtils','getFirstPosition','length','mergeTableCells','forceDefaultExecution','has','isInContent','push','getAncestors','get','low','model','$graveyard','return','trackChanges','registerCustomCallback','find','stop','enableCommand','author','editor','TableEditing','document','containsRange','set:isEnabled','from','getRanges','format','_areSelectedCellsMergable','_isForcedDefaultExecutionBlock','createTableWalker','cell','change','_suggestionFactory','getSelectionAffectedTableCells','commandName','*Merge\x20cells*','_tablePostFixingSubtypes','size','splitTableCellVertically','_descriptionFactory','rootName','add','accept','registerDescriptionCallback','requires','mergeTableCellLeft','*Split\x20cell:*\x20vertically','mergeTableCellRight','table','tableCell','refresh','plugins','setSelection','*Split\x20cell:*\x20horizontally','element','markMultiRangeBlockFormat','type','getCellLocation','mergeTableCellDown','selection','isEnabled','TrackChangesEditing','value','detach','fromRange','filter','createRangeOn','mergeTableCellUp','splitTableCellHorizontally','commands','markBlockFormat','map','_areMergableCells','execute','formatBlock','locale'];(function(_0x480e3c,_0x3211aa){const _0x293ab0=function(_0x1a85f5){while(--_0x1a85f5){_0x480e3c['push'](_0x480e3c['shift']());}};_0x293ab0(++_0x3211aa);}(_0x3211,0x192));const _0x293a=function(_0x480e3c,_0x3211aa){_0x480e3c=_0x480e3c-0x0;let _0x293ab0=_0x3211[_0x480e3c];return _0x293ab0;};import{Plugin as _0x1cccc9}from'ckeditor5/src/core';import _0x3b97b1 from'./table';import{LiveRange as _0x9e4797}from'ckeditor5/src/engine';import{getTranslation as _0x4949c7}from'../utils/common-translations';export default class dt extends _0x1cccc9{static get[_0x293a('0x28')](){return[_0x3b97b1];}['afterInit'](){const _0x4f17ab=this['editor'],_0x56f0b4=_0x4f17ab['model'][_0x293a('0x11')][_0x293a('0x37')],_0x23c268=_0x4f17ab[_0x293a('0x47')];if(!_0x4f17ab[_0x293a('0x2f')][_0x293a('0x0')](_0x293a('0x10')))return;const _0x357492=_0x4f17ab['plugins']['get'](_0x293a('0x39')),_0x1dfbc1=_0x4f17ab[_0x293a('0x2f')][_0x293a('0x4')]('TableUtils'),_0x1428f0=_0x4f17ab[_0x293a('0x2f')][_0x293a('0x4')](_0x3b97b1);_0x1428f0[_0x293a('0x20')][_0x293a('0x2')](_0x293a('0x4d')),_0x357492['enableCommand'](_0x293a('0x4d'),()=>{const _0x337aec=_0x1dfbc1[_0x293a('0x1d')](_0x4f17ab[_0x293a('0x6')]['document']['selection']);_0x4f17ab['model'][_0x293a('0x1b')](()=>{_0x357492['markMultiRangeBlockFormat'](_0x337aec,{'commandName':_0x293a('0x4d'),'commandParams':[]},[],_0x293a('0x4d'));});}),_0x4f17ab[_0x293a('0x41')]['get'](_0x293a('0x4d'))['on'](_0x293a('0x45'),(_0x49a3a2,_0x4fa82a)=>{_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x293a('0x9'))[_0x293a('0x3a')]&&(_0x4fa82a[_0x293a('0x4c')]>0x0&&_0x4fa82a[_0x4fa82a[_0x293a('0x4c')]-0x1]&&_0x4fa82a[_0x4fa82a[_0x293a('0x4c')]-0x1][_0x293a('0x4e')]||_0x357492[_0x293a('0x18')]||this['_areSelectedCellsMergable']()||_0x49a3a2[_0x293a('0xc')]());},{'priority':'highest'});for(const _0x1309ba of['mergeTableCellUp',_0x293a('0x2b'),_0x293a('0x36'),_0x293a('0x29')]){const _0x2c06ac=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x1309ba);_0x357492[_0x293a('0xd')](_0x1309ba,()=>{const _0x53a6a9=_0x4f17ab[_0x293a('0x6')][_0x293a('0x11')][_0x293a('0x37')][_0x293a('0x4b')]()[_0x293a('0x3')]()[_0x293a('0xb')](_0x6e7fe=>_0x6e7fe['is'](_0x293a('0x32'),_0x293a('0x2d'))),_0x1643b5=_0x2c06ac[_0x293a('0x3a')];_0x4f17ab[_0x293a('0x6')][_0x293a('0x1b')](()=>{_0x357492[_0x293a('0x33')]([_0x53a6a9,_0x1643b5],{'commandName':_0x293a('0x4d'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x299b39 of[_0x293a('0x22'),_0x293a('0x40')]){const _0x494b56=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x299b39);_0x357492['enableCommand'](_0x299b39,()=>{const _0x1d9a67=_0x1dfbc1[_0x293a('0x1d')](_0x4f17ab['model'][_0x293a('0x11')][_0x293a('0x37')])[0x0],_0x172241=_0x1d9a67['findAncestor'](_0x293a('0x2c')),{column:_0x54d174,row:_0x1acd30}=_0x1dfbc1[_0x293a('0x35')](_0x1d9a67);let _0x36d8a4=[];if('horizontally'==_0x494b56['direction']){const _0x1c8e23=_0x1dfbc1[_0x293a('0x19')](_0x172241,{'startRow':_0x1acd30,'endRow':_0x1acd30,'includeAllSlots':!0x0});_0x36d8a4=Array[_0x293a('0x14')](_0x1c8e23)[_0x293a('0x43')](_0x33a640=>_0x33a640[_0x293a('0x1a')]);}else{const _0x21aab9=_0x1dfbc1['createTableWalker'](_0x172241,{'column':_0x54d174,'includeAllSlots':!0x0});_0x36d8a4=Array[_0x293a('0x14')](_0x21aab9)[_0x293a('0x43')](_0x5a2e15=>_0x5a2e15[_0x293a('0x1a')]);}_0x4f17ab[_0x293a('0x6')][_0x293a('0x1b')](_0x47209d=>{_0x357492[_0x293a('0x42')](_0x47209d[_0x293a('0x3e')](_0x1d9a67),{'commandName':_0x299b39,'commandParams':[]},_0x36d8a4,_0x299b39);});});}_0x357492[_0x293a('0x23')][_0x293a('0x27')](_0x132740=>{const {data:_0x11ba47}=_0x132740;if(_0x11ba47)return'mergeTableCells'==_0x11ba47['commandName']?{'type':'format','content':_0x4949c7(_0x23c268,_0x293a('0x1f'))}:void 0x0;}),_0x357492[_0x293a('0x23')][_0x293a('0x27')](_0x58bd88=>{const {data:_0x289784}=_0x58bd88;if(_0x289784)return'splitTableCellVertically'==_0x289784[_0x293a('0x1e')]?{'type':'format','content':_0x4949c7(_0x23c268,_0x293a('0x2a'))}:_0x293a('0x40')==_0x289784['commandName']?{'type':_0x293a('0x16'),'content':_0x4949c7(_0x23c268,_0x293a('0x31'))}:void 0x0;});const _0x1d8ea1=_0x1428f0['_acceptFormatSuggestionCallbackFactory']();for(const _0x206bf8 of[_0x293a('0x3f'),_0x293a('0x2b'),_0x293a('0x36'),_0x293a('0x29')])_0x357492['_suggestionFactory'][_0x293a('0xa')](_0x293a('0x46'),_0x206bf8,_0x293a('0x26'),_0x1d8ea1);for(const _0x1a583b of[_0x293a('0x22'),'splitTableCellHorizontally'])_0x357492[_0x293a('0x1c')][_0x293a('0xa')](_0x293a('0x46'),_0x1a583b,'accept',_0x1d8ea1);_0x357492[_0x293a('0x1c')]['registerCustomCallback'](_0x293a('0x46'),_0x293a('0x4d'),'accept',_0x46676c=>{_0x4f17ab[_0x293a('0x6')]['change'](_0x352721=>{const _0x56760a=Array[_0x293a('0x14')](_0x56f0b4[_0x293a('0x15')]())[_0x293a('0x43')](_0x4f82f7=>_0x9e4797[_0x293a('0x3c')](_0x4f82f7));_0x352721[_0x293a('0x30')](_0x46676c),_0x4f17ab['commands']['get']('mergeTableCells')[_0x293a('0x2e')](),_0x4f17ab['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x584417=_0x56760a[_0x293a('0x3d')](_0x247699=>_0x293a('0x7')!=_0x247699['root'][_0x293a('0x24')]);_0x584417[_0x293a('0x4c')]>0x0&&_0x352721[_0x293a('0x30')](_0x584417);for(const _0x56e0c5 of _0x56760a)_0x56e0c5[_0x293a('0x3b')]();});});for(const _0x3f1049 of[_0x293a('0x3f'),_0x293a('0x36'),_0x293a('0x29'),'mergeTableCellRight']){const _0xee5f34=_0x4f17ab[_0x293a('0x41')][_0x293a('0x4')](_0x3f1049);_0xee5f34['on'](_0x293a('0x13'),(_0x1c65e6,_0x66c182,_0x5bcbb9)=>{if(_0x5bcbb9){const _0x2119a1=_0x4f17ab['model'][_0x293a('0x11')]['selection'][_0x293a('0x4b')]()['getAncestors']()[_0x293a('0xb')](_0x52ab8e=>_0x52ab8e['is'](_0x293a('0x32'),'tableCell'));this['_areMergableCells'](_0xee5f34['value'],_0x2119a1)||(_0x1c65e6[_0x293a('0x8')]=!0x1,_0x1c65e6['stop']());}},{'priority':_0x293a('0x5')});}}[_0x293a('0x17')](){const _0x1f277a=this['editor'][_0x293a('0x41')][_0x293a('0x4')](_0x293a('0x4d')),_0xb82bbf=this['editor'][_0x293a('0x2f')][_0x293a('0x4')](_0x293a('0x4a'));if(!_0x1f277a[_0x293a('0x38')])return!0x1;const _0x41a2c7=_0xb82bbf['getSelectionAffectedTableCells'](this[_0x293a('0xf')]['model'][_0x293a('0x11')]['selection']);for(const _0x4bb772 of _0x41a2c7)for(const _0x15e69b of _0x41a2c7)if(_0x4bb772!=_0x15e69b&&!this[_0x293a('0x44')](_0x4bb772,_0x15e69b))return!0x1;return!0x0;}[_0x293a('0x44')](_0x2fbcd4,_0x1f71d8){const _0x4a9ba4=this[_0x293a('0xf')][_0x293a('0x2f')][_0x293a('0x4')]('TrackChangesEditing'),_0x1f8c02=this[_0x293a('0xf')][_0x293a('0x6')][_0x293a('0x3e')](_0x2fbcd4),_0x260ece=this[_0x293a('0xf')][_0x293a('0x6')][_0x293a('0x3e')](_0x1f71d8),_0x146dd9=new Set(),_0x458db7=new Set();for(const _0x54e107 of _0x4a9ba4[_0x293a('0x49')]())if((_0x293a('0x48')==_0x54e107[_0x293a('0x34')]||'deletion'==_0x54e107[_0x293a('0x34')]||'mergeTableCells'==_0x54e107['subType'])&&_0x54e107[_0x293a('0x1')])for(const _0x4348e0 of _0x54e107['getRanges']())_0x4348e0['containsRange'](_0x1f8c02,!0x0)&&_0x146dd9['add'](_0x54e107[_0x293a('0x34')]+':'+_0x54e107[_0x293a('0xe')]['id']),_0x4348e0[_0x293a('0x12')](_0x260ece,!0x0)&&_0x458db7[_0x293a('0x25')](_0x54e107[_0x293a('0x34')]+':'+_0x54e107['author']['id']);if(_0x146dd9[_0x293a('0x21')]!=_0x458db7[_0x293a('0x21')])return!0x1;for(const _0x403d01 of _0x146dd9)if(!_0x458db7[_0x293a('0x0')](_0x403d01))return!0x1;return!0x0;}}
23
+ const _0x2ecb=['root','getRanges','commands','isEnabled','getSuggestions','type','has','find','model','createRangeOn','detach','commandName','insertion','TableEditing','refresh','filter','change','mergeTableCellDown','rootName','tableCell','add','mergeTableCellUp','setSelection','author','mergeTableCellRight','*Merge\x20cells*','TableUtils','get','_suggestionFactory','low','plugins','containsRange','length','stop','enableCommand','formatBlock','createTableWalker','mergeTableCellLeft','format','accept','*Split\x20cell:*\x20horizontally','isInContent','map','_tablePostFixingSubtypes','_descriptionFactory','trackChanges','_areMergableCells','table','push','subType','deletion','selection','editor','from','size','element','getAncestors','splitTableCellHorizontally','highest','locale','return','markBlockFormat','getSelectionAffectedTableCells','registerCustomCallback','forceDefaultExecution','splitTableCellVertically','execute','markMultiRangeBlockFormat','registerDescriptionCallback','fromRange','document','mergeTableCells','cell','_areSelectedCellsMergable','_isForcedDefaultExecutionBlock','value'];(function(_0x54c307,_0x2ecbcd){const _0x139fd2=function(_0x3f6cae){while(--_0x3f6cae){_0x54c307['push'](_0x54c307['shift']());}};_0x139fd2(++_0x2ecbcd);}(_0x2ecb,0x1c8));const _0x139f=function(_0x54c307,_0x2ecbcd){_0x54c307=_0x54c307-0x0;let _0x139fd2=_0x2ecb[_0x54c307];return _0x139fd2;};import{Plugin as _0x1b57c3}from'ckeditor5/src/core';import _0x4d2bcb from'./table';import{LiveRange as _0x316689}from'ckeditor5/src/engine';import{getTranslation as _0x4bde9a}from'../utils/common-translations';export default class dt extends _0x1b57c3{static get['requires'](){return[_0x4d2bcb];}['afterInit'](){const _0x5bb890=this[_0x139f('0x34')],_0x4be9fa=_0x5bb890[_0x139f('0x8')][_0x139f('0x46')]['selection'],_0x45627a=_0x5bb890[_0x139f('0x3b')];if(!_0x5bb890[_0x139f('0x1e')][_0x139f('0x6')](_0x139f('0xd')))return;const _0x670d8=_0x5bb890[_0x139f('0x1e')][_0x139f('0x1b')]('TrackChangesEditing'),_0x5238e8=_0x5bb890['plugins'][_0x139f('0x1b')](_0x139f('0x1a')),_0x2ab76a=_0x5bb890['plugins'][_0x139f('0x1b')](_0x4d2bcb);_0x2ab76a[_0x139f('0x2b')][_0x139f('0x30')](_0x139f('0x47')),_0x670d8[_0x139f('0x22')](_0x139f('0x47'),()=>{const _0x406dc6=_0x5238e8['getSelectionAffectedTableCells'](_0x5bb890['model'][_0x139f('0x46')][_0x139f('0x33')]);_0x5bb890[_0x139f('0x8')][_0x139f('0x10')](()=>{_0x670d8['markMultiRangeBlockFormat'](_0x406dc6,{'commandName':_0x139f('0x47'),'commandParams':[]},[],_0x139f('0x47'));});}),_0x5bb890[_0x139f('0x2')][_0x139f('0x1b')]('mergeTableCells')['on'](_0x139f('0x42'),(_0x400e97,_0x57605c)=>{_0x5bb890['commands']['get'](_0x139f('0x2d'))[_0x139f('0x4b')]&&(_0x57605c['length']>0x0&&_0x57605c[_0x57605c[_0x139f('0x20')]-0x1]&&_0x57605c[_0x57605c['length']-0x1][_0x139f('0x40')]||_0x670d8[_0x139f('0x4a')]||this[_0x139f('0x49')]()||_0x400e97[_0x139f('0x21')]());},{'priority':_0x139f('0x3a')});for(const _0x30e9d4 of['mergeTableCellUp',_0x139f('0x18'),'mergeTableCellDown','mergeTableCellLeft']){const _0x2ff208=_0x5bb890[_0x139f('0x2')]['get'](_0x30e9d4);_0x670d8[_0x139f('0x22')](_0x30e9d4,()=>{const _0x268bec=_0x5bb890[_0x139f('0x8')][_0x139f('0x46')][_0x139f('0x33')]['getFirstPosition']()[_0x139f('0x38')]()[_0x139f('0x7')](_0x2dddec=>_0x2dddec['is']('element',_0x139f('0x13'))),_0x216385=_0x2ff208[_0x139f('0x4b')];_0x5bb890[_0x139f('0x8')][_0x139f('0x10')](()=>{_0x670d8[_0x139f('0x43')]([_0x268bec,_0x216385],{'commandName':'mergeTableCells','commandParams':[]},[],_0x139f('0x47'));});});}for(const _0x576baf of[_0x139f('0x41'),_0x139f('0x39')]){const _0x5f1d2a=_0x5bb890[_0x139f('0x2')][_0x139f('0x1b')](_0x576baf);_0x670d8[_0x139f('0x22')](_0x576baf,()=>{const _0x3cb9f0=_0x5238e8['getSelectionAffectedTableCells'](_0x5bb890[_0x139f('0x8')][_0x139f('0x46')][_0x139f('0x33')])[0x0],_0x412491=_0x3cb9f0['findAncestor'](_0x139f('0x2f')),{column:_0x72ddae,row:_0x1f35ed}=_0x5238e8['getCellLocation'](_0x3cb9f0);let _0x2cabd1=[];if('horizontally'==_0x5f1d2a['direction']){const _0x119a2a=_0x5238e8[_0x139f('0x24')](_0x412491,{'startRow':_0x1f35ed,'endRow':_0x1f35ed,'includeAllSlots':!0x0});_0x2cabd1=Array[_0x139f('0x35')](_0x119a2a)['map'](_0x5d733a=>_0x5d733a[_0x139f('0x48')]);}else{const _0x1c8e97=_0x5238e8[_0x139f('0x24')](_0x412491,{'column':_0x72ddae,'includeAllSlots':!0x0});_0x2cabd1=Array[_0x139f('0x35')](_0x1c8e97)[_0x139f('0x2a')](_0x514351=>_0x514351[_0x139f('0x48')]);}_0x5bb890[_0x139f('0x8')][_0x139f('0x10')](_0x338f44=>{_0x670d8[_0x139f('0x3d')](_0x338f44[_0x139f('0x9')](_0x3cb9f0),{'commandName':_0x576baf,'commandParams':[]},_0x2cabd1,_0x576baf);});});}_0x670d8[_0x139f('0x2c')][_0x139f('0x44')](_0x2a7f72=>{const {data:_0x37e940}=_0x2a7f72;if(_0x37e940)return _0x139f('0x47')==_0x37e940[_0x139f('0xb')]?{'type':_0x139f('0x26'),'content':_0x4bde9a(_0x45627a,_0x139f('0x19'))}:void 0x0;}),_0x670d8[_0x139f('0x2c')][_0x139f('0x44')](_0x578747=>{const {data:_0x422fbd}=_0x578747;if(_0x422fbd)return'splitTableCellVertically'==_0x422fbd['commandName']?{'type':'format','content':_0x4bde9a(_0x45627a,'*Split\x20cell:*\x20vertically')}:_0x139f('0x39')==_0x422fbd[_0x139f('0xb')]?{'type':'format','content':_0x4bde9a(_0x45627a,_0x139f('0x28'))}:void 0x0;});const _0x5df94b=_0x2ab76a['_acceptFormatSuggestionCallbackFactory']();for(const _0xe20c78 of[_0x139f('0x15'),_0x139f('0x18'),_0x139f('0x11'),_0x139f('0x25')])_0x670d8[_0x139f('0x1c')]['registerCustomCallback'](_0x139f('0x23'),_0xe20c78,_0x139f('0x27'),_0x5df94b);for(const _0x5d2aaa of[_0x139f('0x41'),_0x139f('0x39')])_0x670d8['_suggestionFactory'][_0x139f('0x3f')](_0x139f('0x23'),_0x5d2aaa,'accept',_0x5df94b);_0x670d8[_0x139f('0x1c')][_0x139f('0x3f')](_0x139f('0x23'),_0x139f('0x47'),_0x139f('0x27'),_0x296e21=>{_0x5bb890[_0x139f('0x8')]['change'](_0x1d75c5=>{const _0x45a2d2=Array[_0x139f('0x35')](_0x4be9fa[_0x139f('0x1')]())[_0x139f('0x2a')](_0x4dae6a=>_0x316689[_0x139f('0x45')](_0x4dae6a));_0x1d75c5[_0x139f('0x16')](_0x296e21),_0x5bb890[_0x139f('0x2')][_0x139f('0x1b')](_0x139f('0x47'))[_0x139f('0xe')](),_0x5bb890[_0x139f('0x42')](_0x139f('0x47'),{'forceDefaultExecution':!0x0});const _0x28ec38=_0x45a2d2[_0x139f('0xf')](_0x3cdc79=>'$graveyard'!=_0x3cdc79[_0x139f('0x0')][_0x139f('0x12')]);_0x28ec38[_0x139f('0x20')]>0x0&&_0x1d75c5[_0x139f('0x16')](_0x28ec38);for(const _0x2802c0 of _0x45a2d2)_0x2802c0[_0x139f('0xa')]();});});for(const _0x47dde7 of[_0x139f('0x15'),_0x139f('0x11'),'mergeTableCellLeft','mergeTableCellRight']){const _0x347f49=_0x5bb890[_0x139f('0x2')][_0x139f('0x1b')](_0x47dde7);_0x347f49['on']('set:isEnabled',(_0x3dde20,_0x15da7f,_0x521d60)=>{if(_0x521d60){const _0x2b5869=_0x5bb890[_0x139f('0x8')][_0x139f('0x46')]['selection']['getFirstPosition']()[_0x139f('0x38')]()[_0x139f('0x7')](_0x34ccb0=>_0x34ccb0['is'](_0x139f('0x37'),_0x139f('0x13')));this[_0x139f('0x2e')](_0x347f49[_0x139f('0x4b')],_0x2b5869)||(_0x3dde20[_0x139f('0x3c')]=!0x1,_0x3dde20[_0x139f('0x21')]());}},{'priority':_0x139f('0x1d')});}}['_areSelectedCellsMergable'](){const _0x34abd7=this['editor']['commands'][_0x139f('0x1b')](_0x139f('0x47')),_0x41b5c1=this[_0x139f('0x34')][_0x139f('0x1e')]['get'](_0x139f('0x1a'));if(!_0x34abd7[_0x139f('0x3')])return!0x1;const _0x2c3467=_0x41b5c1[_0x139f('0x3e')](this[_0x139f('0x34')][_0x139f('0x8')][_0x139f('0x46')][_0x139f('0x33')]);for(const _0xb00f6c of _0x2c3467)for(const _0x1d6e4f of _0x2c3467)if(_0xb00f6c!=_0x1d6e4f&&!this[_0x139f('0x2e')](_0xb00f6c,_0x1d6e4f))return!0x1;return!0x0;}['_areMergableCells'](_0x31895d,_0x2a2648){const _0x2c99a2=this[_0x139f('0x34')][_0x139f('0x1e')][_0x139f('0x1b')]('TrackChangesEditing'),_0x407caa=this['editor'][_0x139f('0x8')][_0x139f('0x9')](_0x31895d),_0x19f049=this[_0x139f('0x34')][_0x139f('0x8')]['createRangeOn'](_0x2a2648),_0x8cad15=new Set(),_0x2d9d09=new Set();for(const _0x2eaed9 of _0x2c99a2[_0x139f('0x4')]())if((_0x139f('0xc')==_0x2eaed9[_0x139f('0x5')]||_0x139f('0x32')==_0x2eaed9[_0x139f('0x5')]||'mergeTableCells'==_0x2eaed9[_0x139f('0x31')])&&_0x2eaed9[_0x139f('0x29')])for(const _0x2add4d of _0x2eaed9[_0x139f('0x1')]())_0x2add4d[_0x139f('0x1f')](_0x407caa,!0x0)&&_0x8cad15[_0x139f('0x14')](_0x2eaed9[_0x139f('0x5')]+':'+_0x2eaed9['author']['id']),_0x2add4d[_0x139f('0x1f')](_0x19f049,!0x0)&&_0x2d9d09[_0x139f('0x14')](_0x2eaed9[_0x139f('0x5')]+':'+_0x2eaed9[_0x139f('0x17')]['id']);if(_0x8cad15['size']!=_0x2d9d09[_0x139f('0x36')])return!0x1;for(const _0x6b9cbc of _0x8cad15)if(!_0x2d9d09[_0x139f('0x6')](_0x6b9cbc))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x429a=['plugins','afterInit','get','ELEMENT_TABLE_OF_CONTENTS','enableCommand','editor','commands','registerElementLabel','_descriptionFactory','TrackChangesEditing','insertTableOfContents','tableOfContents'];(function(_0x564e31,_0x429a6c){const _0x58c325=function(_0x26285a){while(--_0x26285a){_0x564e31['push'](_0x564e31['shift']());}};_0x58c325(++_0x429a6c);}(_0x429a,0x1ce));const _0x58c3=function(_0x564e31,_0x429a6c){_0x564e31=_0x564e31-0x0;let _0x58c325=_0x429a[_0x564e31];return _0x58c325;};import{Plugin as _0x9da20b}from'ckeditor5/src/core';import{getTranslation as _0x543cb4}from'../utils/common-translations';export default class bt extends _0x9da20b{[_0x58c3('0x7')](){const _0x4e8be4=this[_0x58c3('0xb')];if(!_0x4e8be4[_0x58c3('0x0')][_0x58c3('0x8')](_0x58c3('0x4')))return;_0x4e8be4[_0x58c3('0x6')]['get'](_0x58c3('0x3'))[_0x58c3('0xa')](_0x58c3('0x4'));const _0x220d64=_0x4e8be4['plugins']['get'](_0x58c3('0x3')),_0x181515=_0x4e8be4['locale'];_0x220d64[_0x58c3('0x2')][_0x58c3('0x1')](_0x58c3('0x5'),_0x36d10e=>_0x543cb4(_0x181515,_0x58c3('0x9'),_0x36d10e));}}
23
+ const _0x249c=['insertTableOfContents','get','_descriptionFactory','enableCommand','editor','ELEMENT_TABLE_OF_CONTENTS','afterInit','plugins','locale','commands','TrackChangesEditing'];(function(_0x10e746,_0x249cc0){const _0x583f59=function(_0x43595a){while(--_0x43595a){_0x10e746['push'](_0x10e746['shift']());}};_0x583f59(++_0x249cc0);}(_0x249c,0xab));const _0x583f=function(_0x10e746,_0x249cc0){_0x10e746=_0x10e746-0x0;let _0x583f59=_0x249c[_0x10e746];return _0x583f59;};import{Plugin as _0x5e1136}from'ckeditor5/src/core';import{getTranslation as _0x184ed8}from'../utils/common-translations';export default class bt extends _0x5e1136{[_0x583f('0x0')](){const _0x3fdb92=this[_0x583f('0x9')];if(!_0x3fdb92[_0x583f('0x3')]['get'](_0x583f('0x5')))return;_0x3fdb92[_0x583f('0x1')][_0x583f('0x6')](_0x583f('0x4'))[_0x583f('0x8')](_0x583f('0x5'));const _0x3820a6=_0x3fdb92['plugins'][_0x583f('0x6')]('TrackChangesEditing'),_0xa8ce96=_0x3fdb92[_0x583f('0x2')];_0x3820a6[_0x583f('0x7')]['registerElementLabel']('tableOfContents',_0x10c891=>_0x184ed8(_0xa8ce96,_0x583f('0xa'),_0x10c891));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3453=['model','getSelectionAffectedTableCells','registerDescriptionCallback','findAncestor','TableUtils','tableCellPadding','TrackChangesTableProperties','get','TrackChangesEditing','locale','commandParams','afterInit','*Format:*\x20change\x20table\x20properties','subType','tableCellWidth','tableBackgroundColor','getSuggestionCallback','tableCellHeight','registerCustomCallback','tableCellBorderWidth','document','tableBorderStyle','getAttribute','tableHeight','getContainedElement','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','tableCellProperties','pluginName','has','enqueueChange','tableBorderColor','handleSuggestionDescription','_suggestionFactory','removeAttribute','discard','tableCellVerticalAlignment','setAttribute','join','nodeAfter','tableCellBackgroundColor','markBlockFormat','_getSuggestion','plugins','tableProperties','tableCellHorizontalAlignment','_handlePropertyChange','TableCellPropertiesEditing','editor','handleDiscardAction','accept','formatBlock','enableCommand'];(function(_0x5d81ac,_0x345384){const _0x48535e=function(_0x4cd237){while(--_0x4cd237){_0x5d81ac['push'](_0x5d81ac['shift']());}};_0x48535e(++_0x345384);}(_0x3453,0x1ed));const _0x4853=function(_0x5d81ac,_0x345384){_0x5d81ac=_0x5d81ac-0x0;let _0x48535e=_0x3453[_0x5d81ac];return _0x48535e;};import{Plugin as _0x5d020e}from'ckeditor5/src/core';import{getTranslation as _0x283817}from'../utils/common-translations';export default class Dt extends _0x5d020e{constructor(_0x39189b){super(_0x39189b),this['tableProperties']=[_0x4853('0xf'),_0x4853('0x5'),'tableBorderWidth','tableAlignment',_0x4853('0xa'),_0x4853('0x7'),_0x4853('0x34')],this[_0x4853('0xb')]=['tableCellBorderColor','tableCellBorderStyle',_0x4853('0x3'),_0x4853('0x2a'),_0x4853('0x33'),_0x4853('0x1'),_0x4853('0x18'),_0x4853('0x1d'),_0x4853('0x14')];}static get[_0x4853('0xc')](){return _0x4853('0x2b');}[_0x4853('0x30')](){const _0x21cb6d=this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0x2c')](_0x4853('0x2d'));if(this['editor'][_0x4853('0x1b')]['has']('TablePropertiesEditing')){for(const _0x58fb90 of this[_0x4853('0x1c')])_0x21cb6d[_0x4853('0x24')](_0x58fb90,(_0x2368f8,_0x15f9f9)=>{const _0x45bf45=this[_0x4853('0x20')][_0x4853('0x25')][_0x4853('0x4')]['selection']['getFirstPosition']()[_0x4853('0x28')]('table');this[_0x4853('0x1e')](_0x58fb90,[_0x45bf45],this[_0x4853('0x1c')],_0x4853('0x1c'),_0x2368f8,_0x15f9f9);});_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),_0x4853('0x1c'),_0x4853('0x22'),_0x21cb6d['_suggestionFactory'][_0x4853('0x0')](_0x4853('0x23'),null,'discard')),_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),_0x4853('0x1c'),_0x4853('0x13'),(_0x19adda,_0x448fd9)=>this['handleDiscardAction'](this[_0x4853('0x1c')],_0x19adda,_0x448fd9)),_0x21cb6d['_suggestionFactory'][_0x4853('0x2')]('formatBlock',_0x4853('0x1c'),_0x4853('0x16'),()=>!0x1);}if(this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0xd')](_0x4853('0x1f'))){for(const _0x2b878f of this[_0x4853('0xb')])_0x21cb6d['enableCommand'](_0x2b878f,(_0x43244e,_0x5366cb)=>{const _0x227b9c=this[_0x4853('0x20')]['plugins'][_0x4853('0x2c')](_0x4853('0x29'))[_0x4853('0x26')](this['editor'][_0x4853('0x25')][_0x4853('0x4')]['selection']);this[_0x4853('0x1e')](_0x2b878f,_0x227b9c,this[_0x4853('0xb')],_0x4853('0xb'),_0x43244e,_0x5366cb);});_0x21cb6d['_suggestionFactory']['registerCustomCallback'](_0x4853('0x23'),_0x4853('0xb'),'accept',_0x21cb6d[_0x4853('0x11')][_0x4853('0x0')](_0x4853('0x23'),null,'discard')),_0x21cb6d[_0x4853('0x11')][_0x4853('0x2')](_0x4853('0x23'),'tableCellProperties','discard',(_0xda03e5,_0x43d501)=>this[_0x4853('0x21')](this[_0x4853('0xb')],_0xda03e5,_0x43d501)),_0x21cb6d['_suggestionFactory'][_0x4853('0x2')]('formatBlock',_0x4853('0xb'),_0x4853('0x16'),()=>!0x1);}_0x21cb6d['_descriptionFactory'][_0x4853('0x27')](_0x32ca9a=>this[_0x4853('0x10')](_0x32ca9a));}[_0x4853('0x1e')](_0x319852,_0xe9203d,_0x3d0077,_0x176638,_0x3af63d,_0x368fbd){const _0x135b5a=this[_0x4853('0x20')][_0x4853('0x1b')]['get']('TrackChangesEditing');this[_0x4853('0x20')][_0x4853('0x25')][_0x4853('0xe')](_0x368fbd['batch'],()=>{for(const _0x1b1689 of _0xe9203d){if(this['_getSuggestion'](_0x1b1689,_0x176638))_0x3af63d(_0x368fbd);else{const _0x3d7720={};for(const _0x3bd9b9 of _0x3d0077){const _0x3a4599=_0x1b1689[_0x4853('0x6')](_0x3bd9b9);void 0x0!==_0x3a4599&&(_0x3d7720[_0x3bd9b9]=_0x3a4599);}_0x3af63d(_0x368fbd),_0x135b5a[_0x4853('0x19')](_0x1b1689,{'commandParams':[_0x3d7720]},[],_0x176638);}}});}[_0x4853('0x21')](_0x196a78,_0x1ef7f2,_0x5de72d){const _0x4f324e=_0x1ef7f2[0x0]['start'][_0x4853('0x17')],_0x16bb92=_0x5de72d[_0x4853('0x2f')][0x0];this[_0x4853('0x20')][_0x4853('0x25')]['change'](_0x3a968a=>{for(const _0x5e364f of _0x196a78)void 0x0!==_0x16bb92[_0x5e364f]?_0x3a968a[_0x4853('0x15')](_0x5e364f,_0x16bb92[_0x5e364f],_0x4f324e):_0x3a968a[_0x4853('0x12')](_0x5e364f,_0x4f324e);});}['handleSuggestionDescription'](_0x46069f){if(_0x46069f['data'])switch(_0x46069f['subType']){case _0x4853('0x1c'):return{'type':'format','content':_0x283817(this[_0x4853('0x20')]['locale'],_0x4853('0x31'))};case _0x4853('0xb'):return{'type':'format','content':_0x283817(this['editor'][_0x4853('0x2e')],_0x4853('0x9'))};}}[_0x4853('0x1a')](_0x514d9,_0x265f4f){const _0x88dded=this[_0x4853('0x20')][_0x4853('0x1b')][_0x4853('0x2c')]('TrackChangesEditing');for(const _0xb1ed1a of _0x88dded['getSuggestions']({'skipNotAttached':!0x0})){const _0x4dced5=_0xb1ed1a[_0x4853('0x8')]();if(_0xb1ed1a[_0x4853('0x32')]===_0x265f4f&&_0x4dced5===_0x514d9)return _0xb1ed1a;}return null;}}
23
+ const _0x3d68=['format','plugins','accept','selection','pluginName','TrackChangesEditing','tableWidth','getFirstPosition','enableCommand','*Format:*\x20change\x20table\x20properties','get','data','getAttribute','tableCellWidth','TablePropertiesEditing','join','TableCellPropertiesEditing','getContainedElement','enqueueChange','model','tableCellHorizontalAlignment','handleDiscardAction','_descriptionFactory','handleSuggestionDescription','start','table','nodeAfter','commandParams','markBlockFormat','_suggestionFactory','has','getSuggestionCallback','*Format:*\x20change\x20table\x20cell\x20properties','registerCustomCallback','editor','findAncestor','tableCellBorderStyle','tableCellHeight','tableHeight','discard','tableProperties','tableCellBorderColor','subType','tableCellPadding','tableCellProperties','_getSuggestion','tableBorderStyle','change','tableCellBackgroundColor','tableBorderWidth','TrackChangesTableProperties','_handlePropertyChange','document','formatBlock','locale'];(function(_0x53742e,_0x3d6854){const _0x234801=function(_0x17c766){while(--_0x17c766){_0x53742e['push'](_0x53742e['shift']());}};_0x234801(++_0x3d6854);}(_0x3d68,0x1c2));const _0x2348=function(_0x53742e,_0x3d6854){_0x53742e=_0x53742e-0x0;let _0x234801=_0x3d68[_0x53742e];return _0x234801;};import{Plugin as _0x2c2e6f}from'ckeditor5/src/core';import{getTranslation as _0x18feeb}from'../utils/common-translations';export default class Ct extends _0x2c2e6f{constructor(_0x62a59f){super(_0x62a59f),this[_0x2348('0x1e')]=['tableBorderColor',_0x2348('0x24'),_0x2348('0x27'),'tableAlignment',_0x2348('0x33'),_0x2348('0x1c'),'tableBackgroundColor'],this['tableCellProperties']=[_0x2348('0x1f'),_0x2348('0x1a'),'tableCellBorderWidth',_0x2348('0x21'),_0x2348('0x3'),_0x2348('0x1b'),_0x2348('0x26'),_0x2348('0xa'),'tableCellVerticalAlignment'];}static get[_0x2348('0x31')](){return _0x2348('0x28');}['afterInit'](){const _0x5c3087=this['editor'][_0x2348('0x2e')][_0x2348('0x0')]('TrackChangesEditing');if(this[_0x2348('0x18')]['plugins']['has'](_0x2348('0x4'))){for(const _0x6a44cc of this[_0x2348('0x1e')])_0x5c3087[_0x2348('0x35')](_0x6a44cc,(_0x24d4b2,_0x5e5888)=>{const _0x2ef5a6=this[_0x2348('0x18')][_0x2348('0x9')][_0x2348('0x2a')][_0x2348('0x30')][_0x2348('0x34')]()[_0x2348('0x19')](_0x2348('0xf'));this[_0x2348('0x29')](_0x6a44cc,[_0x2ef5a6],this[_0x2348('0x1e')],'tableProperties',_0x24d4b2,_0x5e5888);});_0x5c3087[_0x2348('0x13')][_0x2348('0x17')]('formatBlock',_0x2348('0x1e'),_0x2348('0x2f'),_0x5c3087[_0x2348('0x13')][_0x2348('0x15')]('formatBlock',null,'discard')),_0x5c3087[_0x2348('0x13')][_0x2348('0x17')](_0x2348('0x2b'),'tableProperties','discard',(_0x576bc3,_0x23551a)=>this[_0x2348('0xb')](this[_0x2348('0x1e')],_0x576bc3,_0x23551a)),_0x5c3087['_suggestionFactory'][_0x2348('0x17')](_0x2348('0x2b'),_0x2348('0x1e'),'join',()=>!0x1);}if(this[_0x2348('0x18')]['plugins'][_0x2348('0x14')](_0x2348('0x6'))){for(const _0x2cc438 of this[_0x2348('0x22')])_0x5c3087['enableCommand'](_0x2cc438,(_0x44d8b8,_0x2807df)=>{const _0x4c5f32=this[_0x2348('0x18')]['plugins'][_0x2348('0x0')]('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model'][_0x2348('0x2a')][_0x2348('0x30')]);this[_0x2348('0x29')](_0x2cc438,_0x4c5f32,this['tableCellProperties'],_0x2348('0x22'),_0x44d8b8,_0x2807df);});_0x5c3087[_0x2348('0x13')][_0x2348('0x17')](_0x2348('0x2b'),_0x2348('0x22'),_0x2348('0x2f'),_0x5c3087[_0x2348('0x13')][_0x2348('0x15')](_0x2348('0x2b'),null,'discard')),_0x5c3087[_0x2348('0x13')][_0x2348('0x17')](_0x2348('0x2b'),_0x2348('0x22'),_0x2348('0x1d'),(_0x5b0510,_0x1727fc)=>this[_0x2348('0xb')](this['tableCellProperties'],_0x5b0510,_0x1727fc)),_0x5c3087['_suggestionFactory']['registerCustomCallback'](_0x2348('0x2b'),_0x2348('0x22'),_0x2348('0x5'),()=>!0x1);}_0x5c3087[_0x2348('0xc')]['registerDescriptionCallback'](_0x49abcb=>this['handleSuggestionDescription'](_0x49abcb));}[_0x2348('0x29')](_0x2816b5,_0x56fb39,_0x595f76,_0x39b6dc,_0x5479ac,_0xc042ea){const _0x286b55=this[_0x2348('0x18')][_0x2348('0x2e')][_0x2348('0x0')](_0x2348('0x32'));this[_0x2348('0x18')]['model'][_0x2348('0x8')](_0xc042ea['batch'],()=>{for(const _0x44174a of _0x56fb39){if(this[_0x2348('0x23')](_0x44174a,_0x39b6dc))_0x5479ac(_0xc042ea);else{const _0x1a2fd7={};for(const _0xf78dce of _0x595f76){const _0x17210f=_0x44174a[_0x2348('0x2')](_0xf78dce);void 0x0!==_0x17210f&&(_0x1a2fd7[_0xf78dce]=_0x17210f);}_0x5479ac(_0xc042ea),_0x286b55[_0x2348('0x12')](_0x44174a,{'commandParams':[_0x1a2fd7]},[],_0x39b6dc);}}});}[_0x2348('0xb')](_0x32fa3b,_0x1339f3,_0x470e45){const _0x4b162d=_0x1339f3[0x0][_0x2348('0xe')][_0x2348('0x10')],_0x399791=_0x470e45[_0x2348('0x11')][0x0];this[_0x2348('0x18')][_0x2348('0x9')][_0x2348('0x25')](_0x14d871=>{for(const _0x5992d of _0x32fa3b)void 0x0!==_0x399791[_0x5992d]?_0x14d871['setAttribute'](_0x5992d,_0x399791[_0x5992d],_0x4b162d):_0x14d871['removeAttribute'](_0x5992d,_0x4b162d);});}[_0x2348('0xd')](_0x34f3d7){if(_0x34f3d7[_0x2348('0x1')])switch(_0x34f3d7[_0x2348('0x20')]){case _0x2348('0x1e'):return{'type':_0x2348('0x2d'),'content':_0x18feeb(this[_0x2348('0x18')]['locale'],_0x2348('0x36'))};case _0x2348('0x22'):return{'type':_0x2348('0x2d'),'content':_0x18feeb(this[_0x2348('0x18')][_0x2348('0x2c')],_0x2348('0x16'))};}}[_0x2348('0x23')](_0x400f59,_0x247c6){const _0x142376=this[_0x2348('0x18')][_0x2348('0x2e')][_0x2348('0x0')](_0x2348('0x32'));for(const _0x3d1a8c of _0x142376['getSuggestions']({'skipNotAttached':!0x0})){const _0x516641=_0x3d1a8c[_0x2348('0x7')]();if(_0x3d1a8c[_0x2348('0x20')]===_0x247c6&&_0x516641===_0x400f59)return _0x3d1a8c;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a40=['Template','insertTemplate','plugins','afterInit','has','enableCommand','editor'];(function(_0x3d08c3,_0x1a4060){const _0x33e6bf=function(_0x586c81){while(--_0x586c81){_0x3d08c3['push'](_0x3d08c3['shift']());}};_0x33e6bf(++_0x1a4060);}(_0x1a40,0x164));const _0x33e6=function(_0x3d08c3,_0x1a4060){_0x3d08c3=_0x3d08c3-0x0;let _0x33e6bf=_0x1a40[_0x3d08c3];return _0x33e6bf;};import{Plugin as _0x537cc6}from'ckeditor5/src/core';export default class yt extends _0x537cc6{[_0x33e6('0x4')](){const _0x272bfa=this[_0x33e6('0x0')];_0x272bfa[_0x33e6('0x3')][_0x33e6('0x5')](_0x33e6('0x1'))&&_0x272bfa[_0x33e6('0x3')]['get']('TrackChangesEditing')[_0x33e6('0x6')](_0x33e6('0x2'));}}
23
+ const _0x2355=['insertTemplate','afterInit','has','enableCommand','TrackChangesEditing','editor','plugins'];(function(_0x2d5465,_0x235553){const _0x43e0ab=function(_0x3c4867){while(--_0x3c4867){_0x2d5465['push'](_0x2d5465['shift']());}};_0x43e0ab(++_0x235553);}(_0x2355,0x122));const _0x43e0=function(_0x2d5465,_0x235553){_0x2d5465=_0x2d5465-0x0;let _0x43e0ab=_0x2355[_0x2d5465];return _0x43e0ab;};import{Plugin as _0x430662}from'ckeditor5/src/core';export default class yt extends _0x430662{[_0x43e0('0x5')](){const _0x533cf2=this[_0x43e0('0x2')];_0x533cf2[_0x43e0('0x3')][_0x43e0('0x6')]('Template')&&_0x533cf2[_0x43e0('0x3')]['get'](_0x43e0('0x1'))[_0x43e0('0x0')](_0x43e0('0x4'));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a64=['createRange','schema','locale','registerPostFixer','editor','getNearestSelectionRange','newRange','removeMarker','element','get','end','start','Title','suggestion','isEqual','forward','isCollapsed','document','model','getChangedMarkers','nodeBefore','plugins','title-content','afterInit','from','_descriptionFactory','registerElementLabel','updateMarker','TrackChangesEditing','differ'];(function(_0x15be03,_0x5a64bc){const _0x1173b5=function(_0x2f2fce){while(--_0x2f2fce){_0x15be03['push'](_0x15be03['shift']());}};_0x1173b5(++_0x5a64bc);}(_0x5a64,0xbf));const _0x1173=function(_0x15be03,_0x5a64bc){_0x15be03=_0x15be03-0x0;let _0x1173b5=_0x5a64[_0x15be03];return _0x1173b5;};import{Plugin as _0x26ce7b}from'ckeditor5/src/core';import{getTranslation as _0x1d1e82}from'../utils/common-translations';export default class St extends _0x26ce7b{[_0x1173('0xc')](){const _0x2eae5f=this[_0x1173('0x17')];if(!_0x2eae5f[_0x1173('0xa')]['has'](_0x1173('0x1')))return;const _0x483cb3=_0x2eae5f[_0x1173('0xa')][_0x1173('0x1c')](_0x1173('0x11'));_0x483cb3[_0x1173('0xe')][_0x1173('0xf')](_0x1173('0xb'),()=>_0x1d1e82(_0x2eae5f[_0x1173('0x15')],'ELEMENT_TITLE')),_0x2eae5f[_0x1173('0x7')][_0x1173('0x6')][_0x1173('0x16')](_0x22c1fa=>{let _0x11b228=!0x1;const _0x11584f=Array[_0x1173('0xd')](_0x2eae5f[_0x1173('0x7')][_0x1173('0x6')][_0x1173('0x12')][_0x1173('0x8')]());for(const {name:_0x2499f6,data:_0x3795a3}of _0x11584f){const {group:_0x282032}=_0x483cb3['_splitMarkerName'](_0x2499f6);if(_0x1173('0x2')!==_0x282032||!_0x3795a3[_0x1173('0x19')])continue;const _0x276dcf=_0x3795a3['newRange'],_0x59446a=_0x276dcf['end'][_0x1173('0x9')];if(!_0x59446a||!_0x59446a['is'](_0x1173('0x1b'),_0x1173('0xb')))continue;if(!_0x276dcf[_0x1173('0x0')]['isTouching'](_0x276dcf[_0x1173('0x1d')]))continue;const _0x2e9eff=_0x2eae5f['model'][_0x1173('0x14')][_0x1173('0x18')](_0x276dcf[_0x1173('0x1d')],_0x1173('0x4'));if(_0x2e9eff&&_0x2e9eff[_0x1173('0x5')]){const _0x180ab4=_0x22c1fa[_0x1173('0x13')](_0x276dcf[_0x1173('0x0')],_0x2e9eff['start']);_0x180ab4[_0x1173('0x3')](_0x276dcf)||(_0x22c1fa[_0x1173('0x10')](_0x2499f6,{'range':_0x180ab4}),_0x11b228=!0x0);}_0x11b228||(_0x22c1fa[_0x1173('0x1a')](_0x2499f6),_0x11b228=!0x0);}return _0x11b228;});}}
23
+ const _0x372a=['start','from','locale','editor','end','get','ELEMENT_TITLE','afterInit','registerPostFixer','suggestion','element','plugins','schema','document','nodeBefore','forward','isEqual','isTouching','isCollapsed','getChangedMarkers','registerElementLabel','title-content','newRange','updateMarker','model','has','TrackChangesEditing','differ'];(function(_0x599e28,_0x372a36){const _0x4e3dda=function(_0x3dbaf5){while(--_0x3dbaf5){_0x599e28['push'](_0x599e28['shift']());}};_0x4e3dda(++_0x372a36);}(_0x372a,0x1dc));const _0x4e3d=function(_0x599e28,_0x372a36){_0x599e28=_0x599e28-0x0;let _0x4e3dda=_0x372a[_0x599e28];return _0x4e3dda;};import{Plugin as _0x17ad1b}from'ckeditor5/src/core';import{getTranslation as _0x51c8c9}from'../utils/common-translations';export default class St extends _0x17ad1b{[_0x4e3d('0x7')](){const _0x3082d0=this[_0x4e3d('0x3')];if(!_0x3082d0[_0x4e3d('0xb')][_0x4e3d('0x19')]('Title'))return;const _0x49a3a1=_0x3082d0[_0x4e3d('0xb')][_0x4e3d('0x5')](_0x4e3d('0x1a'));_0x49a3a1['_descriptionFactory'][_0x4e3d('0x14')](_0x4e3d('0x15'),()=>_0x51c8c9(_0x3082d0[_0x4e3d('0x2')],_0x4e3d('0x6'))),_0x3082d0[_0x4e3d('0x18')][_0x4e3d('0xd')][_0x4e3d('0x8')](_0x176481=>{let _0x8961eb=!0x1;const _0x2068ae=Array[_0x4e3d('0x1')](_0x3082d0[_0x4e3d('0x18')][_0x4e3d('0xd')][_0x4e3d('0x1b')][_0x4e3d('0x13')]());for(const {name:_0x387330,data:_0x712441}of _0x2068ae){const {group:_0x271385}=_0x49a3a1['_splitMarkerName'](_0x387330);if(_0x4e3d('0x9')!==_0x271385||!_0x712441[_0x4e3d('0x16')])continue;const _0x375907=_0x712441[_0x4e3d('0x16')],_0x3ade70=_0x375907[_0x4e3d('0x4')][_0x4e3d('0xe')];if(!_0x3ade70||!_0x3ade70['is'](_0x4e3d('0xa'),'title-content'))continue;if(!_0x375907[_0x4e3d('0x0')][_0x4e3d('0x11')](_0x375907[_0x4e3d('0x4')]))continue;const _0x5554a8=_0x3082d0[_0x4e3d('0x18')][_0x4e3d('0xc')]['getNearestSelectionRange'](_0x375907[_0x4e3d('0x4')],_0x4e3d('0xf'));if(_0x5554a8&&_0x5554a8[_0x4e3d('0x12')]){const _0x4b67e7=_0x176481['createRange'](_0x375907[_0x4e3d('0x0')],_0x5554a8[_0x4e3d('0x0')]);_0x4b67e7[_0x4e3d('0x10')](_0x375907)||(_0x176481[_0x4e3d('0x17')](_0x387330,{'range':_0x4b67e7}),_0x8961eb=!0x0);}_0x8961eb||(_0x176481['removeMarker'](_0x387330),_0x8961eb=!0x0);}return _0x8961eb;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45de=['undo','has','editor','UndoEditing','enableCommand','plugins','afterInit','redo'];(function(_0x50e851,_0x45de93){const _0x1318b6=function(_0x2cc389){while(--_0x2cc389){_0x50e851['push'](_0x50e851['shift']());}};_0x1318b6(++_0x45de93);}(_0x45de,0x1b8));const _0x1318=function(_0x50e851,_0x45de93){_0x50e851=_0x50e851-0x0;let _0x1318b6=_0x45de[_0x50e851];return _0x1318b6;};import{Plugin as _0x59201a}from'ckeditor5/src/core';export default class It extends _0x59201a{[_0x1318('0x6')](){const _0x553f66=this[_0x1318('0x2')],_0x37e43d=_0x553f66[_0x1318('0x5')]['get']('TrackChangesEditing');_0x553f66[_0x1318('0x5')][_0x1318('0x1')](_0x1318('0x3'))&&(_0x37e43d[_0x1318('0x4')](_0x1318('0x0')),_0x37e43d[_0x1318('0x4')](_0x1318('0x7')));}}
23
+ const _0x46b4=['plugins','get','enableCommand','has','editor','TrackChangesEditing','undo','redo','afterInit'];(function(_0x53b002,_0x46b429){const _0x57aea1=function(_0x3b1732){while(--_0x3b1732){_0x53b002['push'](_0x53b002['shift']());}};_0x57aea1(++_0x46b429);}(_0x46b4,0x1c3));const _0x57ae=function(_0x53b002,_0x46b429){_0x53b002=_0x53b002-0x0;let _0x57aea1=_0x46b4[_0x53b002];return _0x57aea1;};import{Plugin as _0x1ae55c}from'ckeditor5/src/core';export default class It extends _0x1ae55c{[_0x57ae('0x7')](){const _0x1db9f9=this[_0x57ae('0x3')],_0x115ec2=_0x1db9f9[_0x57ae('0x8')][_0x57ae('0x0')](_0x57ae('0x4'));_0x1db9f9[_0x57ae('0x8')][_0x57ae('0x2')]('UndoEditing')&&(_0x115ec2['enableCommand'](_0x57ae('0x5')),_0x115ec2[_0x57ae('0x1')](_0x57ae('0x6')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1576=['name','createUIElement','push','schema','previousPosition','type','getItems','addClass','model','nextSibling','isLimit','ck-suggestion-marker--active','get','test','toViewElement','bindElementToMarker','consumable','ck-suggestion-marker-','plugins','TrackChangesEditing','includes','activeMarkers','markerRange','isContent','isAtEnd','item','getCustomProperty','element','toViewPosition','isBlock','getWalker','start','mapper','insert','writer','listItem','elementEnd','span'];(function(_0x593219,_0x15761b){const _0x358c5e=function(_0x3f9536){while(--_0x3f9536){_0x593219['push'](_0x593219['shift']());}};_0x358c5e(++_0x15761b);}(_0x1576,0x1db));const _0x358c=function(_0x593219,_0x15761b){_0x593219=_0x593219-0x0;let _0x358c5e=_0x1576[_0x593219];return _0x358c5e;};export function getRangesWithAttribute(_0x4d7945,_0x2d9724,_0x3b7834){const _0x52e2a6=[];for(const _0x3a06c2 of _0x2d9724[_0x358c('0x19')]())_0x3a06c2['hasAttribute'](_0x4d7945)&&_0x52e2a6[_0x358c('0x15')](_0x3b7834['createRangeOn'](_0x3a06c2));return _0x52e2a6;}export function getElementsAffectedByListItemRename(_0x3ea5c6){const _0x1ca53d=[];if(_0x3ea5c6['is'](_0x358c('0x8'),_0x358c('0x10'))){let _0x8ecd06=_0x3ea5c6[_0x358c('0x1c')];for(;_0x8ecd06&&_0x8ecd06['is'](_0x358c('0x8'),_0x358c('0x10'))&&_0x8ecd06['getAttribute']('listIndent')>0x0;)_0x1ca53d[_0x358c('0x15')](_0x8ecd06),_0x8ecd06=_0x8ecd06[_0x358c('0x1c')];}return _0x1ca53d;}export function downcastSplitMergeMarker(_0xb08edd,_0x22cdb0,{showActiveMarker:_0x5d7b66=!0x0}={}){const _0x36e750=_0xb08edd[_0x358c('0x25')][_0x358c('0x1f')](_0x358c('0x0'));return(_0x1aa5d2,_0x1516bc,_0x3fa009)=>{if(!_0x3fa009[_0x358c('0x23')][_0x358c('0x20')](_0x1516bc[_0x358c('0x3')],_0x1aa5d2[_0x358c('0x13')]))return;const _0x1d99d0=_0x1516bc[_0x358c('0x3')][_0x358c('0xb')](),_0x323b24=_0x1516bc[_0x358c('0x3')][_0x358c('0xc')],_0x57bc41=_0xb08edd[_0x358c('0x1b')][_0x358c('0x16')];let _0x34234f=null,_0x5c9fd0=null,_0x1489f5=!0x1,_0x23ec84=!0x1;for(const _0x4c78f6 of _0x1d99d0){const _0x267f29=_0x4c78f6[_0x358c('0x6')];_0x1489f5=_0x1489f5||_0x57bc41[_0x358c('0x4')](_0x267f29);const _0x2ed3d6=_0x3fa009[_0x358c('0xd')][_0x358c('0x21')](_0x267f29);if(_0x2ed3d6&&_0x2ed3d6[_0x358c('0x7')]('addHighlight'))return;_0x358c('0x11')==_0x4c78f6[_0x358c('0x18')]&&(_0x57bc41[_0x358c('0xa')](_0x267f29)&&!_0x57bc41[_0x358c('0x1d')](_0x267f29)&&(_0x267f29['nextSibling']||_0x323b24[_0x358c('0x5')]?_0x34234f&&_0x34234f['parent']==_0x267f29||(_0x34234f=_0x267f29,_0x2fdfe0(_0x4c78f6[_0x358c('0x17')]),_0x23ec84=!0x0):_0x5c9fd0=_0x5c9fd0||_0x4c78f6[_0x358c('0x17')]));}function _0x2fdfe0(_0x2b53e9){const _0x1b2ed3=_0x3fa009[_0x358c('0xf')][_0x358c('0x14')](_0x358c('0x12'),{'class':_0x358c('0x24')+_0x22cdb0}),_0xc3217=_0x3fa009[_0x358c('0xd')][_0x358c('0x9')](_0x2b53e9);_0x5d7b66&&_0x36e750[_0x358c('0x2')][_0x358c('0x1')](_0x1516bc['markerName'])&&_0x3fa009['writer'][_0x358c('0x1a')](_0x358c('0x1e'),_0x1b2ed3),_0x3fa009['writer'][_0x358c('0xe')](_0xc3217,_0x1b2ed3),_0x3fa009[_0x358c('0xd')][_0x358c('0x22')](_0x1b2ed3,_0x1516bc['markerName']);}_0x1489f5||_0x23ec84||!_0x5c9fd0||_0x2fdfe0(_0x5c9fd0);};}
23
+ const _0x4934=['toViewPosition','writer','isBlock','ck-suggestion-marker-','elementEnd','previousPosition','item','addClass','isAtEnd','markerRange','span','addHighlight','type','test','bindElementToMarker','get','getItems','push','getCustomProperty','activeMarkers','start','insert','isContent','hasAttribute','nextSibling','element','listIndent','parent','TrackChangesEditing','schema','listItem','toViewElement','createUIElement','createRangeOn','name','mapper','markerName','consumable','model'];(function(_0x1d8d42,_0x49344d){const _0x16cf0f=function(_0x484591){while(--_0x484591){_0x1d8d42['push'](_0x1d8d42['shift']());}};_0x16cf0f(++_0x49344d);}(_0x4934,0xe0));const _0x16cf=function(_0x1d8d42,_0x49344d){_0x1d8d42=_0x1d8d42-0x0;let _0x16cf0f=_0x4934[_0x1d8d42];return _0x16cf0f;};export function getRangesWithAttribute(_0xa69381,_0x5e936f,_0xfe3f0e){const _0xd1bc0b=[];for(const _0x312ceb of _0x5e936f[_0x16cf('0x1a')]())_0x312ceb[_0x16cf('0x21')](_0xa69381)&&_0xd1bc0b[_0x16cf('0x1b')](_0xfe3f0e[_0x16cf('0x4')](_0x312ceb));return _0xd1bc0b;}export function getElementsAffectedByListItemRename(_0x1fe621){const _0x368f04=[];if(_0x1fe621['is'](_0x16cf('0x23'),_0x16cf('0x1'))){let _0x11e6df=_0x1fe621[_0x16cf('0x22')];for(;_0x11e6df&&_0x11e6df['is']('element',_0x16cf('0x1'))&&_0x11e6df['getAttribute'](_0x16cf('0x24'))>0x0;)_0x368f04['push'](_0x11e6df),_0x11e6df=_0x11e6df[_0x16cf('0x22')];}return _0x368f04;}export function downcastSplitMergeMarker(_0x1ff9c6,_0x3a69a3,{showActiveMarker:_0x46da15=!0x0}={}){const _0x6b84e=_0x1ff9c6['plugins'][_0x16cf('0x19')](_0x16cf('0x26'));return(_0x336e4d,_0x2b18fc,_0x306d32)=>{if(!_0x306d32[_0x16cf('0x8')][_0x16cf('0x17')](_0x2b18fc[_0x16cf('0x13')],_0x336e4d[_0x16cf('0x5')]))return;const _0x460a36=_0x2b18fc[_0x16cf('0x13')]['getWalker'](),_0xae6c85=_0x2b18fc[_0x16cf('0x13')][_0x16cf('0x1e')],_0x2c4d0f=_0x1ff9c6[_0x16cf('0x9')][_0x16cf('0x0')];let _0x1c4647=null,_0x3498f9=null,_0x3f95fa=!0x1,_0x36a960=!0x1;for(const _0x5924a9 of _0x460a36){const _0x2bbd70=_0x5924a9[_0x16cf('0x10')];_0x3f95fa=_0x3f95fa||_0x2c4d0f[_0x16cf('0x20')](_0x2bbd70);const _0x5ce395=_0x306d32[_0x16cf('0x6')][_0x16cf('0x2')](_0x2bbd70);if(_0x5ce395&&_0x5ce395[_0x16cf('0x1c')](_0x16cf('0x15')))return;_0x16cf('0xe')==_0x5924a9[_0x16cf('0x16')]&&(_0x2c4d0f[_0x16cf('0xc')](_0x2bbd70)&&!_0x2c4d0f['isLimit'](_0x2bbd70)&&(_0x2bbd70[_0x16cf('0x22')]||_0xae6c85[_0x16cf('0x12')]?_0x1c4647&&_0x1c4647[_0x16cf('0x25')]==_0x2bbd70||(_0x1c4647=_0x2bbd70,_0x283677(_0x5924a9[_0x16cf('0xf')]),_0x36a960=!0x0):_0x3498f9=_0x3498f9||_0x5924a9[_0x16cf('0xf')]));}function _0x283677(_0x3019ba){const _0x203505=_0x306d32['writer'][_0x16cf('0x3')](_0x16cf('0x14'),{'class':_0x16cf('0xd')+_0x3a69a3}),_0x22c2a4=_0x306d32[_0x16cf('0x6')][_0x16cf('0xa')](_0x3019ba);_0x46da15&&_0x6b84e[_0x16cf('0x1d')]['includes'](_0x2b18fc[_0x16cf('0x7')])&&_0x306d32[_0x16cf('0xb')][_0x16cf('0x11')]('ck-suggestion-marker--active',_0x203505),_0x306d32[_0x16cf('0xb')][_0x16cf('0x1f')](_0x22c2a4,_0x203505),_0x306d32['mapper'][_0x16cf('0x18')](_0x203505,_0x2b18fc[_0x16cf('0x7')]);}_0x3f95fa||_0x36a960||!_0x3498f9||_0x283677(_0x3498f9);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5730=['isInContent','removeMarker','delete','addRange','head','get','onDiscard','removeAttribute','createdAt','_onAttributesChange','commentThread','reduce','markers','toJSON','substr','_markerNames','onAccept','@external','authoredAt','decorate','onAttributesChange','getMarkerNames','set','suggestion:','author','creator','getRanges','getMarkers','getItems','attributes','discard','setAttribute','nodeAfter','map','getAllAdjacentSuggestions','isExternal','getContainedElement','length','getFirstRange','getFirstMarker','data','push','start','isIntersectingWithRange','getRange','removeMarkers','nodeBefore','accept','add','subType','_model','clear','type','addMarkerName','from','hasComments','_onDiscard','previous','isMultiRange','size','getMultiRangeId','_onAccept'];(function(_0x502d3c,_0x573092){const _0x402ef7=function(_0x4c66ac){while(--_0x4c66ac){_0x502d3c['push'](_0x502d3c['shift']());}};_0x402ef7(++_0x573092);}(_0x5730,0x1b5));const _0x402e=function(_0x502d3c,_0x573092){_0x502d3c=_0x502d3c-0x0;let _0x402ef7=_0x5730[_0x502d3c];return _0x402ef7;};import{Element as _0x14feac}from'ckeditor5/src/engine';import{ObservableMixin as _0x692ce4,uid as _0x1a6781}from'ckeditor5/src/utils';import{cloneDeep as _0x15376d,isEqual as _0xff4964,set as _0x113be0,unset as _0x15db31}from'lodash-es';export default class u extends _0x692ce4(){constructor(_0x32c12a,_0x3ca637){super(),this['id']=_0x3ca637['id'],this[_0x402e('0x31')]=_0x3ca637[_0x402e('0x31')],this[_0x402e('0x2e')]=_0x3ca637[_0x402e('0x2e')]||null,this['author']=_0x3ca637[_0x402e('0x15')],this[_0x402e('0x16')]=_0x3ca637[_0x402e('0x16')]||_0x3ca637[_0x402e('0x15')],this[_0x402e('0x20')]=Boolean(_0x3ca637[_0x402e('0x1a')]&&_0x3ca637[_0x402e('0x1a')][_0x402e('0xe')]),this['data']=null,this[_0x402e('0x2f')]=_0x32c12a,this[_0x402e('0x3a')]=_0x3ca637[_0x402e('0xd')],this[_0x402e('0x35')]=_0x3ca637[_0x402e('0x3')],this[_0x402e('0x6')]=_0x3ca637[_0x402e('0x11')],this[_0x402e('0xc')]=new Set(),this[_0x402e('0x5')]=null,this[_0x402e('0x13')](_0x402e('0xf'),null),this[_0x402e('0x13')](_0x402e('0x1a'),_0x3ca637[_0x402e('0x1a')]||{}),this[_0x402e('0x13')](_0x402e('0x36'),null),this['set']('next',null),this[_0x402e('0x13')](_0x402e('0x7'),null),this[_0x402e('0x13')]('_saved',!0x1),this[_0x402e('0x10')](_0x402e('0x2c')),this[_0x402e('0x10')](_0x402e('0x1b'));}get[_0x402e('0x1')](){let _0x3c9c0b=this;for(;_0x3c9c0b[_0x402e('0x36')];)_0x3c9c0b=_0x3c9c0b[_0x402e('0x36')];return _0x3c9c0b;}get[_0x402e('0x34')](){return!!this[_0x402e('0x7')]&&this[_0x402e('0x7')][_0x402e('0x22')]>0x0;}get[_0x402e('0x37')](){if(0x0==this['_markerNames'][_0x402e('0x38')])return!0x1;return 0x6==Array['from'](this[_0x402e('0xc')])[0x0]['split'](':')[_0x402e('0x22')];}get[_0x402e('0x3b')](){return null!==this[_0x402e('0x24')]();}[_0x402e('0x32')](_0x637801){this[_0x402e('0xc')][_0x402e('0x2d')](_0x637801);}[_0x402e('0x12')](){return Array[_0x402e('0x33')](this[_0x402e('0xc')]);}[_0x402e('0x18')](){return this[_0x402e('0x12')]()['map'](_0x2dc022=>this[_0x402e('0x2f')][_0x402e('0x9')][_0x402e('0x2')](_0x2dc022))['filter'](_0xfd4503=>_0xfd4503);}[_0x402e('0x24')](){return this['getMarkers']()[0x0]||null;}[_0x402e('0x2a')](){this[_0x402e('0x2f')]['change'](_0x218117=>{for(const _0xd6bb54 of this[_0x402e('0x18')]())_0x218117[_0x402e('0x3c')](_0xd6bb54);}),this[_0x402e('0xc')][_0x402e('0x30')]();}['removeMarker'](_0x2413d6){this[_0x402e('0x2f')]['change'](_0x47327d=>{_0x47327d[_0x402e('0x3c')](_0x2413d6);}),this['_markerNames'][_0x402e('0x3d')](_0x2413d6);}[_0x402e('0x0')](_0x124ff9){const _0xafcdf7=_0x402e('0x14')+this['type']+':'+this[_0x402e('0x2e')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x402e('0x39')]();this[_0x402e('0x32')](_0xafcdf7),this[_0x402e('0x2f')]['change'](_0x565483=>{_0x565483['addMarker'](_0xafcdf7,{'range':_0x124ff9,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x402e('0x28')](_0x1864bd){for(const _0x38fb55 of this[_0x402e('0x17')]())if(_0x38fb55['isIntersecting'](_0x1864bd))return!0x0;return!0x1;}[_0x402e('0x17')](){return this[_0x402e('0x18')]()[_0x402e('0x1e')](_0x436d03=>_0x436d03['getRange']());}[_0x402e('0x19')](){return this[_0x402e('0x17')]()[_0x402e('0x8')]((_0x3b79fa,_0xf92ac)=>[..._0x3b79fa,..._0xf92ac[_0x402e('0x19')]()],[]);}[_0x402e('0x23')](){var _0x519cc0;return(null===(_0x519cc0=this['getFirstMarker']())||void 0x0===_0x519cc0?void 0x0:_0x519cc0[_0x402e('0x29')]())||null;}[_0x402e('0x21')](){const _0x186f76=this[_0x402e('0x17')]();if(0x1!=_0x186f76[_0x402e('0x22')])return null;const _0x448c1b=_0x186f76[0x0],_0x518a88=_0x448c1b[_0x402e('0x27')][_0x402e('0x1d')],_0x174773=_0x448c1b['end'][_0x402e('0x2b')];return _0x518a88 instanceof _0x14feac?_0x518a88!=_0x174773?null:_0x518a88:null;}[_0x402e('0x2c')](){this[_0x402e('0x3a')](this[_0x402e('0x17')](),this[_0x402e('0x25')],this[_0x402e('0x1a')]),this[_0x402e('0x2a')]();}['discard'](){this[_0x402e('0x35')](this['getRanges'](),this[_0x402e('0x25')],this[_0x402e('0x1a')]),this[_0x402e('0x2a')]();}[_0x402e('0x1f')](){const _0x3988ce=[];let _0x4bed89=this[_0x402e('0x1')];for(;_0x4bed89;)_0x3988ce[_0x402e('0x26')](_0x4bed89),_0x4bed89=_0x4bed89['next'];return _0x3988ce;}[_0x402e('0x1c')](_0x3c4b99,_0x32a009){const _0x50502c=_0x15376d(this[_0x402e('0x1a')]);_0x113be0(_0x50502c,_0x3c4b99,_0x32a009),_0xff4964(_0x50502c,this['attributes'])||(this['attributes']=_0x50502c,this['_onAttributesChange'](_0x50502c));}[_0x402e('0x4')](_0x4dd5bd){const _0xf9273f=_0x15376d(this[_0x402e('0x1a')]);_0x15db31(_0xf9273f,_0x4dd5bd),_0xff4964(_0xf9273f,this['attributes'])||(this['attributes']=_0xf9273f,this['_onAttributesChange'](this[_0x402e('0x1a')]));}[_0x402e('0xa')](){return{'id':this['id'],'type':this[_0x402e('0x2e')]?this[_0x402e('0x31')]+':'+this['subType']:this[_0x402e('0x31')],'authorId':this[_0x402e('0x16')]['id'],'createdAt':this[_0x402e('0x5')],'hasComments':this[_0x402e('0x34')],'data':this['data'],'attributes':this[_0x402e('0x1a')]};}static['getMultiRangeId'](){return _0x1a6781()[_0x402e('0xb')](0x1,0x5);}}
23
+ const _0x5dc7=['get','split','addMarker','_onAttributesChange','change','head','set','accept','length','setAttribute','_onDiscard','_markerNames','discard','filter','hasComments','getFirstRange','toJSON','next','getContainedElement','nodeBefore','push','createdAt','markers','decorate','isMultiRange','map','getMarkerNames','data','getMarkers','@external','getAllAdjacentSuggestions','commentThread','from','type','previous','onDiscard','isIntersecting','removeMarkers','addMarkerName','getRanges','subType','removeMarker','addRange','_onAccept','getFirstMarker','getMultiRangeId','removeAttribute','nodeAfter','_model','creator','onAttributesChange','attributes','suggestion:','isInContent','author','getRange','_saved','add'];(function(_0x58cec6,_0x5dc7fb){const _0x303c8c=function(_0x2ea691){while(--_0x2ea691){_0x58cec6['push'](_0x58cec6['shift']());}};_0x303c8c(++_0x5dc7fb);}(_0x5dc7,0x1d9));const _0x303c=function(_0x58cec6,_0x5dc7fb){_0x58cec6=_0x58cec6-0x0;let _0x303c8c=_0x5dc7[_0x58cec6];return _0x303c8c;};import{Element as _0x40e5ac}from'ckeditor5/src/engine';import{ObservableMixin as _0x271a87,uid as _0x2ce735}from'ckeditor5/src/utils';import{cloneDeep as _0x57ae5d,isEqual as _0x414ec3,set as _0x1b6b50,unset as _0x454005}from'lodash-es';export default class u extends _0x271a87(){constructor(_0x50b89d,_0x4d8e0a){super(),this['id']=_0x4d8e0a['id'],this[_0x303c('0x18')]=_0x4d8e0a['type'],this['subType']=_0x4d8e0a[_0x303c('0x1f')]||null,this[_0x303c('0x2d')]=_0x4d8e0a[_0x303c('0x2d')],this['creator']=_0x4d8e0a['creator']||_0x4d8e0a[_0x303c('0x2d')],this['isExternal']=Boolean(_0x4d8e0a[_0x303c('0x2a')]&&_0x4d8e0a[_0x303c('0x2a')][_0x303c('0x14')]),this['data']=null,this[_0x303c('0x27')]=_0x50b89d,this[_0x303c('0x22')]=_0x4d8e0a['onAccept'],this[_0x303c('0x1')]=_0x4d8e0a[_0x303c('0x1a')],this['_onAttributesChange']=_0x4d8e0a[_0x303c('0x29')],this[_0x303c('0x2')]=new Set(),this['createdAt']=null,this[_0x303c('0x37')]('authoredAt',null),this[_0x303c('0x37')](_0x303c('0x2a'),_0x4d8e0a[_0x303c('0x2a')]||{}),this[_0x303c('0x37')](_0x303c('0x19'),null),this[_0x303c('0x37')](_0x303c('0x8'),null),this[_0x303c('0x37')]('commentThread',null),this[_0x303c('0x37')](_0x303c('0x2f'),!0x1),this['decorate'](_0x303c('0x38')),this[_0x303c('0xe')](_0x303c('0x3'));}get[_0x303c('0x36')](){let _0xdbd11f=this;for(;_0xdbd11f[_0x303c('0x19')];)_0xdbd11f=_0xdbd11f['previous'];return _0xdbd11f;}get['hasComments'](){return!!this[_0x303c('0x16')]&&this[_0x303c('0x16')]['length']>0x0;}get[_0x303c('0xf')](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array[_0x303c('0x17')](this['_markerNames'])[0x0][_0x303c('0x32')](':')['length'];}get[_0x303c('0x2c')](){return null!==this[_0x303c('0x23')]();}[_0x303c('0x1d')](_0x2b5224){this[_0x303c('0x2')][_0x303c('0x30')](_0x2b5224);}[_0x303c('0x11')](){return Array[_0x303c('0x17')](this[_0x303c('0x2')]);}[_0x303c('0x13')](){return this[_0x303c('0x11')]()[_0x303c('0x10')](_0x3603f3=>this['_model'][_0x303c('0xd')][_0x303c('0x31')](_0x3603f3))[_0x303c('0x4')](_0x1acd22=>_0x1acd22);}[_0x303c('0x23')](){return this[_0x303c('0x13')]()[0x0]||null;}[_0x303c('0x1c')](){this[_0x303c('0x27')][_0x303c('0x35')](_0x543e81=>{for(const _0xa9d323 of this[_0x303c('0x13')]())_0x543e81[_0x303c('0x20')](_0xa9d323);}),this[_0x303c('0x2')]['clear']();}[_0x303c('0x20')](_0x170463){this[_0x303c('0x27')][_0x303c('0x35')](_0xbe19d8=>{_0xbe19d8[_0x303c('0x20')](_0x170463);}),this['_markerNames']['delete'](_0x170463);}[_0x303c('0x21')](_0xbc7be1){const _0x19ded9=_0x303c('0x2b')+this['type']+':'+this['subType']+':'+this['id']+':'+this[_0x303c('0x28')]['id']+':'+u[_0x303c('0x24')]();this[_0x303c('0x1d')](_0x19ded9),this[_0x303c('0x27')]['change'](_0x366b19=>{_0x366b19[_0x303c('0x33')](_0x19ded9,{'range':_0xbc7be1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x25b6f8){for(const _0x443a77 of this[_0x303c('0x1e')]())if(_0x443a77[_0x303c('0x1b')](_0x25b6f8))return!0x0;return!0x1;}[_0x303c('0x1e')](){return this[_0x303c('0x13')]()[_0x303c('0x10')](_0x5aa481=>_0x5aa481[_0x303c('0x2e')]());}['getItems'](){return this[_0x303c('0x1e')]()['reduce']((_0x50cf68,_0x2193d6)=>[..._0x50cf68,..._0x2193d6['getItems']()],[]);}[_0x303c('0x6')](){var _0xf8814b;return(null===(_0xf8814b=this['getFirstMarker']())||void 0x0===_0xf8814b?void 0x0:_0xf8814b[_0x303c('0x2e')]())||null;}[_0x303c('0x9')](){const _0x4ab939=this[_0x303c('0x1e')]();if(0x1!=_0x4ab939[_0x303c('0x39')])return null;const _0xe3a45c=_0x4ab939[0x0],_0x1a9c77=_0xe3a45c['start'][_0x303c('0x26')],_0x17d7f1=_0xe3a45c['end'][_0x303c('0xa')];return _0x1a9c77 instanceof _0x40e5ac?_0x1a9c77!=_0x17d7f1?null:_0x1a9c77:null;}[_0x303c('0x38')](){this[_0x303c('0x22')](this['getRanges'](),this['data'],this[_0x303c('0x2a')]),this['removeMarkers']();}[_0x303c('0x3')](){this['_onDiscard'](this[_0x303c('0x1e')](),this['data'],this['attributes']),this[_0x303c('0x1c')]();}[_0x303c('0x15')](){const _0x360da3=[];let _0x4f7cf8=this[_0x303c('0x36')];for(;_0x4f7cf8;)_0x360da3[_0x303c('0xb')](_0x4f7cf8),_0x4f7cf8=_0x4f7cf8['next'];return _0x360da3;}[_0x303c('0x0')](_0x480cb2,_0x49bc3f){const _0x16f8ce=_0x57ae5d(this[_0x303c('0x2a')]);_0x1b6b50(_0x16f8ce,_0x480cb2,_0x49bc3f),_0x414ec3(_0x16f8ce,this[_0x303c('0x2a')])||(this[_0x303c('0x2a')]=_0x16f8ce,this[_0x303c('0x34')](_0x16f8ce));}[_0x303c('0x25')](_0x3e2e67){const _0x406c4f=_0x57ae5d(this[_0x303c('0x2a')]);_0x454005(_0x406c4f,_0x3e2e67),_0x414ec3(_0x406c4f,this[_0x303c('0x2a')])||(this['attributes']=_0x406c4f,this[_0x303c('0x34')](this[_0x303c('0x2a')]));}[_0x303c('0x7')](){return{'id':this['id'],'type':this[_0x303c('0x1f')]?this['type']+':'+this[_0x303c('0x1f')]:this[_0x303c('0x18')],'authorId':this[_0x303c('0x28')]['id'],'createdAt':this[_0x303c('0xc')],'hasComments':this[_0x303c('0x5')],'data':this[_0x303c('0x12')],'attributes':this[_0x303c('0x2a')]};}static[_0x303c('0x24')](){return _0x2ce735()['substr'](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39c0=['start','ELEMENT_SPACE','$text','isInContent','_customCallbacks','push','isObject','deletion','registerElementLabel','Object','quantity','getItemLabel','$1\x20$2','element','type','softBreak','pop','*Insert:*\x20%0','elementEnd','insertion','elementStart','addEmptyContainer','*Merge:*\x20%0','nextSibling','set','addObject','_schema','end','_addDescriptionItems','getDescriptions','text','function','name','Container','length','_locale','removeEmptyContainer','removeObject','add','indexOf','remove','data','item','*Remove:*\x20%0','replace','*Split:*\x20%0','isEmpty','_itemLabels','getFirstRange','getWalker','REPLACE_TEXT','match','previousSibling','_resolveDescriptionItems','get','_itemLabelsCallbacks'];(function(_0x348192,_0x39c074){const _0x10d7ed=function(_0x40b7ad){while(--_0x40b7ad){_0x348192['push'](_0x348192['shift']());}};_0x10d7ed(++_0x39c074);}(_0x39c0,0x140));const _0x10d7=function(_0x348192,_0x39c074){_0x348192=_0x348192-0x0;let _0x10d7ed=_0x39c0[_0x348192];return _0x10d7ed;};import{getTranslation as _0xd14cab}from'./utils/common-translations';import{priorities as _0x7dc9d6,insertToPriorityArray as _0x4f5464}from'ckeditor5/src/utils';export default class m{constructor(_0x52ecd8,_0x208ee6){this[_0x10d7('0x14')]=[],this['_itemLabels']=new Map(),this[_0x10d7('0xf')]=[],this[_0x10d7('0x2a')]=_0x52ecd8,this[_0x10d7('0x33')]=_0x208ee6;}[_0x10d7('0x2d')](_0x11d077){const _0x345985=[];for(let _0x31c5fd=0x0;_0x31c5fd<_0x11d077[_0x10d7('0x32')];_0x31c5fd++){const _0x34d1ba=_0x11d077[_0x31c5fd];if(!_0x34d1ba[_0x10d7('0x13')])continue;let _0x4cfccf=!0x1;for(const _0x69acf1 of this[_0x10d7('0x14')]){const _0x1bcb7e=_0x69acf1(_0x34d1ba);if(_0x1bcb7e){_0x10d7('0x1e')in _0x1bcb7e&&_0x345985[_0x10d7('0x15')](_0x1bcb7e),_0x4cfccf=!0x0;break;}}if(!_0x4cfccf){this['_addDescriptionItems'](_0x345985,_0x34d1ba);const _0x88e6a0=_0x11d077[_0x31c5fd+0x1];if(_0x88e6a0&&!_0x34d1ba[_0x10d7('0x8')]()[_0x10d7('0x2b')]['isEqual'](_0x88e6a0[_0x10d7('0x8')]()[_0x10d7('0x10')])){const _0x33524d=_0x345985[_0x345985[_0x10d7('0x32')]-0x1],_0x2a5fc9=_0x10d7('0x23')==_0x34d1ba[_0x10d7('0x1e')]?_0x10d7('0x36'):_0x10d7('0x0');_0x33524d&&_0x10d7('0x2e')==_0x33524d[_0x10d7('0x1e')]&&(_0x33524d[_0x2a5fc9]+='\x0a');}}}return this[_0x10d7('0xd')](_0x345985);}['registerDescriptionCallback'](_0x4ebe45){this['_customCallbacks']['push'](_0x4ebe45);}[_0x10d7('0x18')](_0x1966f0,_0x2db84d,_0x4d3a40=_0x7dc9d6['normal']){_0x10d7('0x2f')==typeof _0x1966f0?_0x4f5464(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1966f0,'label':_0x2db84d,'priority':_0x4d3a40}):this[_0x10d7('0x7')][_0x10d7('0x28')](_0x1966f0,_0x2db84d);}[_0x10d7('0x1b')](_0xf8f88d,_0x3a9178=0x1){let _0x4c450c;for(const _0x2a0f79 of this[_0x10d7('0xf')])if(_0x2a0f79['matchingCallback'](_0xf8f88d)){_0x4c450c=_0x2a0f79['label'];break;}return _0x4c450c||(_0x4c450c=this['_itemLabels'][_0x10d7('0xe')](_0xf8f88d[_0x10d7('0x30')])),_0x4c450c?_0x4c450c(_0x3a9178):0x1!==_0x3a9178?_0x3a9178+'\x20'+_0xf8f88d[_0x10d7('0x30')]+'s':''+_0xf8f88d[_0x10d7('0x30')];}[_0x10d7('0x2c')](_0x569c16,_0x16bd8e){const _0x2f9d57=_0x16bd8e[_0x10d7('0x8')]()[_0x10d7('0x9')](),_0x3beebc=_0x10d7('0x23')==_0x16bd8e[_0x10d7('0x1e')]?_0x10d7('0x36'):_0x10d7('0x0');for(const _0x27d3a4 of _0x2f9d57){const _0x33a0ee=_0x27d3a4[_0x10d7('0x2')],_0x4dc9d2=_0x569c16[_0x569c16[_0x10d7('0x32')]-0x1];if(_0x33a0ee['is']('$textProxy'))_0x4dc9d2&&_0x4dc9d2['type'][_0x10d7('0x37')]('Container')>-0x1&&_0x569c16[_0x10d7('0x20')](),_0x4dc9d2&&_0x10d7('0x2e')==_0x4dc9d2[_0x10d7('0x1e')]?_0x4dc9d2[_0x3beebc]+=_0x33a0ee[_0x10d7('0x1')]:_0x569c16[_0x10d7('0x15')]({'type':'text','add':_0x10d7('0x36')==_0x3beebc?_0x33a0ee[_0x10d7('0x1')]:'','remove':_0x10d7('0x0')==_0x3beebc?_0x33a0ee[_0x10d7('0x1')]:''});else{if(this[_0x10d7('0x2a')][_0x10d7('0x16')](_0x33a0ee)){const _0x3e2ad7=_0x33a0ee;if(_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]['indexOf'](_0x10d7('0x31'))>-0x1&&_0x569c16[_0x10d7('0x20')](),_0x10d7('0x22')==_0x27d3a4[_0x10d7('0x1e')])continue;_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]==_0x3beebc+_0x10d7('0x19')&&_0x4dc9d2[_0x10d7('0x1d')][_0x10d7('0x30')]==_0x3e2ad7[_0x10d7('0x30')]?_0x4dc9d2[_0x10d7('0x1a')]++:_0x569c16['push']({'type':_0x3beebc+_0x10d7('0x19'),'element':_0x3e2ad7,'quantity':0x1}),_0x2f9d57['skip'](_0x1cf7f7=>!('elementEnd'==_0x1cf7f7[_0x10d7('0x1e')]&&_0x1cf7f7[_0x10d7('0x2')]==_0x33a0ee));}else{if(this['_schema']['checkChild'](_0x33a0ee,_0x10d7('0x12'))||_0x33a0ee['is'](_0x10d7('0x1d'),_0x10d7('0x1f'))){const _0x42bc6c=_0x33a0ee;if('add'==_0x3beebc&&_0x10d7('0x24')==_0x27d3a4[_0x10d7('0x1e')]||_0x10d7('0x0')==_0x3beebc&&_0x10d7('0x22')==_0x27d3a4['type'])continue;if(_0x4dc9d2&&-0x1==_0x4dc9d2[_0x10d7('0x1e')][_0x10d7('0x37')]('Container')){_0x10d7('0x2e')==_0x4dc9d2[_0x10d7('0x1e')]&&(_0x4dc9d2[_0x3beebc]+='\x0a');continue;}let _0xbe227d;if(_0xbe227d=_0x10d7('0x36')==_0x3beebc?_0x42bc6c[_0x10d7('0x27')]&&!this[_0x10d7('0x2a')][_0x10d7('0x16')](_0x42bc6c[_0x10d7('0x27')])?_0x42bc6c['nextSibling']:null:_0x42bc6c['previousSibling']&&!this['_schema']['isObject'](_0x42bc6c['previousSibling'])?_0x42bc6c[_0x10d7('0xc')]:null,_0x42bc6c[_0x10d7('0x6')]||_0xbe227d&&_0xbe227d[_0x10d7('0x6')]){const _0xde1525=_0xbe227d&&_0xbe227d[_0x10d7('0x6')]?_0xbe227d:_0x42bc6c;_0x4dc9d2&&_0x4dc9d2[_0x10d7('0x1e')]==_0x3beebc+'EmptyContainer'&&_0x4dc9d2[_0x10d7('0x1d')][_0x10d7('0x30')]==_0xde1525[_0x10d7('0x30')]?_0x4dc9d2[_0x10d7('0x1a')]++:_0x569c16[_0x10d7('0x15')]({'type':_0x3beebc+'EmptyContainer','element':_0xde1525,'quantity':0x1});}else _0x569c16[_0x10d7('0x15')]({'type':_0x3beebc+_0x10d7('0x31'),'element':_0x42bc6c});}}}}}[_0x10d7('0xd')](_0x48bc32){const _0xfa0192=this[_0x10d7('0x33')],_0x13fcd5=[];for(const _0x2270ed of _0x48bc32){switch(_0x2270ed[_0x10d7('0x1e')]){case _0x10d7('0x2e'):if(_0x2270ed[_0x10d7('0x36')]=_0x2270ed[_0x10d7('0x36')][_0x10d7('0x4')](/(\S)\u000A+(\S)/g,_0x10d7('0x1c'))[_0x10d7('0x4')](/\u000A/g,''),_0x2270ed[_0x10d7('0x0')]=_0x2270ed[_0x10d7('0x0')][_0x10d7('0x4')](/(\S)\u000A+(\S)/g,_0x10d7('0x1c'))[_0x10d7('0x4')](/\u000A/g,''),''!=_0x2270ed[_0x10d7('0x36')]&&''!=_0x2270ed['remove']){_0x13fcd5['push']({'type':_0x10d7('0x4'),'content':_0xd14cab(_0xfa0192,_0x10d7('0xa'),['\x22'+_0x2270ed[_0x10d7('0x0')]+'\x22','\x22'+_0x2270ed['add']+'\x22'])});continue;}if(null!=_0x2270ed['add'][_0x10d7('0xb')](/^ +$/)){_0x13fcd5['push']({'type':_0x10d7('0x23'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),_0xd14cab(_0xfa0192,_0x10d7('0x11'),_0x2270ed[_0x10d7('0x36')]['length']))});continue;}if(null!=_0x2270ed[_0x10d7('0x0')][_0x10d7('0xb')](/^ +$/)){_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),_0xd14cab(_0xfa0192,_0x10d7('0x11'),_0x2270ed[_0x10d7('0x0')][_0x10d7('0x32')]))});continue;}if(''!=_0x2270ed[_0x10d7('0x36')]){_0x13fcd5[_0x10d7('0x15')]({'type':'insertion','content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),'\x22'+_0x2270ed['add']+'\x22')});continue;}_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),'\x22'+_0x2270ed[_0x10d7('0x0')]+'\x22')});continue;case _0x10d7('0x25'):case _0x10d7('0x29'):_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x23'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x21'),this['getItemLabel'](_0x2270ed[_0x10d7('0x1d')],_0x2270ed['quantity']))});continue;case _0x10d7('0x34'):case _0x10d7('0x35'):_0x13fcd5['push']({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x3'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed[_0x10d7('0x1a')]))});continue;case'addContainer':_0x13fcd5['push']({'type':'insertion','content':_0xd14cab(_0xfa0192,_0x10d7('0x5'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed[_0x10d7('0x1a')]))});continue;case'removeContainer':_0x13fcd5[_0x10d7('0x15')]({'type':_0x10d7('0x17'),'content':_0xd14cab(_0xfa0192,_0x10d7('0x26'),this[_0x10d7('0x1b')](_0x2270ed[_0x10d7('0x1d')],_0x2270ed['quantity']))});continue;}_0x13fcd5[_0x10d7('0x15')](_0x2270ed);}return _0x13fcd5;}}
23
+ const _0x2008=['registerElementLabel','indexOf','isInContent','item','elementEnd','ELEMENT_SPACE','_locale','checkChild','previousSibling','Container','remove','REPLACE_TEXT','isEqual','matchingCallback','_schema','label','_itemLabelsCallbacks','add','*Merge:*\x20%0','Object','*Remove:*\x20%0','push','*Insert:*\x20%0','_addDescriptionItems','data','removeContainer','replace','element','start','_itemLabels','normal','addEmptyContainer','nextSibling','length','*Split:*\x20%0','getWalker','getItemLabel','type','insertion','pop','deletion','_resolveDescriptionItems','$text','match','$textProxy','set','text','name','removeEmptyContainer','$1\x20$2','isEmpty','quantity','registerDescriptionCallback','function','getFirstRange','skip','isObject','_customCallbacks'];(function(_0x59502e,_0x2008e8){const _0xb77e4f=function(_0xad2ff4){while(--_0xad2ff4){_0x59502e['push'](_0x59502e['shift']());}};_0xb77e4f(++_0x2008e8);}(_0x2008,0x1db));const _0xb77e=function(_0x59502e,_0x2008e8){_0x59502e=_0x59502e-0x0;let _0xb77e4f=_0x2008[_0x59502e];return _0xb77e4f;};import{getTranslation as _0x4971f2}from'./utils/common-translations';import{priorities as _0x25cf39,insertToPriorityArray as _0x238aaf}from'ckeditor5/src/utils';export default class m{constructor(_0x43746d,_0x9bf03a){this[_0xb77e('0x2e')]=[],this[_0xb77e('0x12')]=new Map(),this[_0xb77e('0x5')]=[],this['_schema']=_0x43746d,this['_locale']=_0x9bf03a;}['getDescriptions'](_0x2f3a65){const _0x239b2a=[];for(let _0x59cde8=0x0;_0x59cde8<_0x2f3a65[_0xb77e('0x16')];_0x59cde8++){const _0x3af0ef=_0x2f3a65[_0x59cde8];if(!_0x3af0ef[_0xb77e('0x31')])continue;let _0x520280=!0x1;for(const _0x43dda9 of this[_0xb77e('0x2e')]){const _0x2223ed=_0x43dda9(_0x3af0ef);if(_0x2223ed){'type'in _0x2223ed&&_0x239b2a['push'](_0x2223ed),_0x520280=!0x0;break;}}if(!_0x520280){this['_addDescriptionItems'](_0x239b2a,_0x3af0ef);const _0x1012c6=_0x2f3a65[_0x59cde8+0x1];if(_0x1012c6&&!_0x3af0ef[_0xb77e('0x2b')]()['end'][_0xb77e('0x1')](_0x1012c6[_0xb77e('0x2b')]()[_0xb77e('0x11')])){const _0xe06aa2=_0x239b2a[_0x239b2a[_0xb77e('0x16')]-0x1],_0x121cc1=_0xb77e('0x1b')==_0x3af0ef[_0xb77e('0x1a')]?_0xb77e('0x6'):_0xb77e('0x39');_0xe06aa2&&_0xb77e('0x23')==_0xe06aa2[_0xb77e('0x1a')]&&(_0xe06aa2[_0x121cc1]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x239b2a);}[_0xb77e('0x29')](_0x32f976){this[_0xb77e('0x2e')][_0xb77e('0xa')](_0x32f976);}[_0xb77e('0x2f')](_0x4a7e2a,_0x505ef5,_0xeb8339=_0x25cf39[_0xb77e('0x13')]){_0xb77e('0x2a')==typeof _0x4a7e2a?_0x238aaf(this[_0xb77e('0x5')],{'matchingCallback':_0x4a7e2a,'label':_0x505ef5,'priority':_0xeb8339}):this[_0xb77e('0x12')][_0xb77e('0x22')](_0x4a7e2a,_0x505ef5);}[_0xb77e('0x19')](_0x4fa400,_0x43cc3e=0x1){let _0x173ce6;for(const _0x290865 of this[_0xb77e('0x5')])if(_0x290865[_0xb77e('0x2')](_0x4fa400)){_0x173ce6=_0x290865[_0xb77e('0x4')];break;}return _0x173ce6||(_0x173ce6=this[_0xb77e('0x12')]['get'](_0x4fa400['name'])),_0x173ce6?_0x173ce6(_0x43cc3e):0x1!==_0x43cc3e?_0x43cc3e+'\x20'+_0x4fa400[_0xb77e('0x24')]+'s':''+_0x4fa400[_0xb77e('0x24')];}[_0xb77e('0xc')](_0x56b13b,_0x4793e4){const _0x58828c=_0x4793e4[_0xb77e('0x2b')]()[_0xb77e('0x18')](),_0x10ca71='insertion'==_0x4793e4['type']?_0xb77e('0x6'):_0xb77e('0x39');for(const _0x4c3a44 of _0x58828c){const _0x20360b=_0x4c3a44[_0xb77e('0x32')],_0xc27371=_0x56b13b[_0x56b13b[_0xb77e('0x16')]-0x1];if(_0x20360b['is'](_0xb77e('0x21')))_0xc27371&&_0xc27371['type']['indexOf']('Container')>-0x1&&_0x56b13b[_0xb77e('0x1c')](),_0xc27371&&_0xb77e('0x23')==_0xc27371[_0xb77e('0x1a')]?_0xc27371[_0x10ca71]+=_0x20360b[_0xb77e('0xd')]:_0x56b13b[_0xb77e('0xa')]({'type':_0xb77e('0x23'),'add':_0xb77e('0x6')==_0x10ca71?_0x20360b[_0xb77e('0xd')]:'','remove':'remove'==_0x10ca71?_0x20360b['data']:''});else{if(this[_0xb77e('0x3')][_0xb77e('0x2d')](_0x20360b)){const _0x3a92b0=_0x20360b;if(_0xc27371&&_0xc27371[_0xb77e('0x1a')][_0xb77e('0x30')]('Container')>-0x1&&_0x56b13b[_0xb77e('0x1c')](),_0xb77e('0x33')==_0x4c3a44[_0xb77e('0x1a')])continue;_0xc27371&&_0xc27371[_0xb77e('0x1a')]==_0x10ca71+_0xb77e('0x8')&&_0xc27371[_0xb77e('0x10')][_0xb77e('0x24')]==_0x3a92b0[_0xb77e('0x24')]?_0xc27371[_0xb77e('0x28')]++:_0x56b13b[_0xb77e('0xa')]({'type':_0x10ca71+_0xb77e('0x8'),'element':_0x3a92b0,'quantity':0x1}),_0x58828c[_0xb77e('0x2c')](_0x97b6af=>!(_0xb77e('0x33')==_0x97b6af[_0xb77e('0x1a')]&&_0x97b6af[_0xb77e('0x32')]==_0x20360b));}else{if(this[_0xb77e('0x3')][_0xb77e('0x36')](_0x20360b,_0xb77e('0x1f'))||_0x20360b['is'](_0xb77e('0x10'),'softBreak')){const _0x391446=_0x20360b;if(_0xb77e('0x6')==_0x10ca71&&'elementStart'==_0x4c3a44[_0xb77e('0x1a')]||_0xb77e('0x39')==_0x10ca71&&_0xb77e('0x33')==_0x4c3a44[_0xb77e('0x1a')])continue;if(_0xc27371&&-0x1==_0xc27371[_0xb77e('0x1a')][_0xb77e('0x30')]('Container')){_0xb77e('0x23')==_0xc27371[_0xb77e('0x1a')]&&(_0xc27371[_0x10ca71]+='\x0a');continue;}let _0x4eb498;if(_0x4eb498=_0xb77e('0x6')==_0x10ca71?_0x391446[_0xb77e('0x15')]&&!this[_0xb77e('0x3')][_0xb77e('0x2d')](_0x391446[_0xb77e('0x15')])?_0x391446[_0xb77e('0x15')]:null:_0x391446[_0xb77e('0x37')]&&!this[_0xb77e('0x3')][_0xb77e('0x2d')](_0x391446['previousSibling'])?_0x391446[_0xb77e('0x37')]:null,_0x391446[_0xb77e('0x27')]||_0x4eb498&&_0x4eb498['isEmpty']){const _0x2c91b7=_0x4eb498&&_0x4eb498[_0xb77e('0x27')]?_0x4eb498:_0x391446;_0xc27371&&_0xc27371[_0xb77e('0x1a')]==_0x10ca71+'EmptyContainer'&&_0xc27371[_0xb77e('0x10')][_0xb77e('0x24')]==_0x2c91b7[_0xb77e('0x24')]?_0xc27371[_0xb77e('0x28')]++:_0x56b13b[_0xb77e('0xa')]({'type':_0x10ca71+'EmptyContainer','element':_0x2c91b7,'quantity':0x1});}else _0x56b13b[_0xb77e('0xa')]({'type':_0x10ca71+_0xb77e('0x38'),'element':_0x391446});}}}}}[_0xb77e('0x1e')](_0x29cc31){const _0x4188e8=this[_0xb77e('0x35')],_0x42b45f=[];for(const _0x45f6bf of _0x29cc31){switch(_0x45f6bf[_0xb77e('0x1a')]){case _0xb77e('0x23'):if(_0x45f6bf[_0xb77e('0x6')]=_0x45f6bf['add']['replace'](/(\S)\u000A+(\S)/g,_0xb77e('0x26'))['replace'](/\u000A/g,''),_0x45f6bf[_0xb77e('0x39')]=_0x45f6bf[_0xb77e('0x39')][_0xb77e('0xf')](/(\S)\u000A+(\S)/g,_0xb77e('0x26'))['replace'](/\u000A/g,''),''!=_0x45f6bf[_0xb77e('0x6')]&&''!=_0x45f6bf[_0xb77e('0x39')]){_0x42b45f[_0xb77e('0xa')]({'type':'replace','content':_0x4971f2(_0x4188e8,_0xb77e('0x0'),['\x22'+_0x45f6bf['remove']+'\x22','\x22'+_0x45f6bf[_0xb77e('0x6')]+'\x22'])});continue;}if(null!=_0x45f6bf[_0xb77e('0x6')][_0xb77e('0x20')](/^ +$/)){_0x42b45f[_0xb77e('0xa')]({'type':_0xb77e('0x1b'),'content':_0x4971f2(_0x4188e8,_0xb77e('0xb'),_0x4971f2(_0x4188e8,_0xb77e('0x34'),_0x45f6bf['add'][_0xb77e('0x16')]))});continue;}if(null!=_0x45f6bf[_0xb77e('0x39')][_0xb77e('0x20')](/^ +$/)){_0x42b45f['push']({'type':_0xb77e('0x1d'),'content':_0x4971f2(_0x4188e8,_0xb77e('0x9'),_0x4971f2(_0x4188e8,_0xb77e('0x34'),_0x45f6bf[_0xb77e('0x39')][_0xb77e('0x16')]))});continue;}if(''!=_0x45f6bf['add']){_0x42b45f['push']({'type':_0xb77e('0x1b'),'content':_0x4971f2(_0x4188e8,_0xb77e('0xb'),'\x22'+_0x45f6bf['add']+'\x22')});continue;}_0x42b45f[_0xb77e('0xa')]({'type':_0xb77e('0x1d'),'content':_0x4971f2(_0x4188e8,_0xb77e('0x9'),'\x22'+_0x45f6bf['remove']+'\x22')});continue;case _0xb77e('0x14'):case'addObject':_0x42b45f[_0xb77e('0xa')]({'type':_0xb77e('0x1b'),'content':_0x4971f2(_0x4188e8,'*Insert:*\x20%0',this[_0xb77e('0x19')](_0x45f6bf['element'],_0x45f6bf[_0xb77e('0x28')]))});continue;case _0xb77e('0x25'):case'removeObject':_0x42b45f[_0xb77e('0xa')]({'type':'deletion','content':_0x4971f2(_0x4188e8,'*Remove:*\x20%0',this[_0xb77e('0x19')](_0x45f6bf[_0xb77e('0x10')],_0x45f6bf['quantity']))});continue;case'addContainer':_0x42b45f[_0xb77e('0xa')]({'type':_0xb77e('0x1b'),'content':_0x4971f2(_0x4188e8,_0xb77e('0x17'),this[_0xb77e('0x19')](_0x45f6bf[_0xb77e('0x10')],_0x45f6bf['quantity']))});continue;case _0xb77e('0xe'):_0x42b45f[_0xb77e('0xa')]({'type':_0xb77e('0x1d'),'content':_0x4971f2(_0x4188e8,_0xb77e('0x7'),this[_0xb77e('0x19')](_0x45f6bf[_0xb77e('0x10')],_0x45f6bf[_0xb77e('0x28')]))});continue;}_0x42b45f['push'](_0x45f6bf);}return _0x42b45f;}}
@@ -112,8 +112,10 @@ export default class TrackChanges extends Plugin {
112
112
  * trackChanges: {
113
113
  * // Do not allow users to comment suggestions (default is `false`).
114
114
  * disableComments: true,
115
- * // Do not track styling and formatting changes (default is `true`).
116
- * trackFormatChanges: false
115
+ * // Do not track styling and formatting changes (default is `default`).
116
+ * trackFormatChanges: 'never',
117
+ * // Merges suggestion changes inside a block. (default is `true`).
118
+ * mergeNestedSuggestions: true
117
119
  * }
118
120
  * } )
119
121
  * .then( ... )
@@ -133,13 +135,29 @@ export interface TrackChangesConfig {
133
135
  */
134
136
  disableComments: boolean;
135
137
  /**
136
- * A property that specifies whether format changes should be tracked (`true`) or not (`false`).
138
+ * A property that specifies whether format changes should be tracked.
137
139
  *
138
140
  * Format changes are all changes other than insertions and deletions, including: styling, structure, widgets properties, etc.
139
141
  *
140
- * Defaults to `true`.
142
+ * Possible values are:
143
+ *
144
+ * * `'always'` - all changes are going to be tracked independently (without merging).
145
+ * * `'default'` - format changes made inside your own insertion suggestion will be merged with it.
146
+ * * `'never'` - format changes will not be tracked.
147
+ *
148
+ * Defaults to `'default'`.
149
+ */
150
+ trackFormatChanges: 'never' | 'default' | 'always';
151
+ /**
152
+ * Specifies whether suggestions on an object (e.g. image, table) should be automatically merged
153
+ * with suggestions inside the object (e.g. image caption, table cell).
154
+ *
155
+ * For example, when set to `true`, creating a table and writing some text inside the table will result in one suggestion.
156
+ * When set to `false`, it will be two separate suggestions, one for the inserted table and one for the inserted text.
157
+ *
158
+ * Keep in mind that only suggestions from the same author and of the same type are merged this way.
141
159
  */
142
- trackFormatChanges: boolean;
160
+ mergeNestedSuggestions: boolean;
143
161
  /**
144
162
  * A view class to be used to create suggestion thread views.
145
163
  *