@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 38.2.0-alpha.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 (130) hide show
  1. package/build/track-changes.js +2 -2
  2. package/package.json +3 -3
  3. package/src/augmentation.d.ts +2 -2
  4. package/src/commands/acceptsuggestioncommand.d.ts +2 -2
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.d.ts +2 -2
  7. package/src/commands/discardsuggestioncommand.js +1 -1
  8. package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
  9. package/src/commands/executeonallsuggestionscommand.js +1 -1
  10. package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
  11. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  12. package/src/commands/trackchangescommand.d.ts +1 -1
  13. package/src/commands/trackchangescommand.js +1 -1
  14. package/src/index.d.ts +12 -12
  15. package/src/index.js +1 -1
  16. package/src/integrations/alignment.d.ts +1 -1
  17. package/src/integrations/alignment.js +1 -1
  18. package/src/integrations/basicstyles.d.ts +1 -1
  19. package/src/integrations/basicstyles.js +1 -1
  20. package/src/integrations/blockquote.d.ts +1 -1
  21. package/src/integrations/blockquote.js +1 -1
  22. package/src/integrations/ckbox.d.ts +1 -1
  23. package/src/integrations/ckbox.js +1 -1
  24. package/src/integrations/codeblock.d.ts +1 -1
  25. package/src/integrations/codeblock.js +1 -1
  26. package/src/integrations/comments.d.ts +1 -1
  27. package/src/integrations/comments.js +1 -1
  28. package/src/integrations/deletecommand.d.ts +2 -2
  29. package/src/integrations/deletecommand.js +1 -1
  30. package/src/integrations/documentlist.d.ts +1 -1
  31. package/src/integrations/documentlist.js +1 -1
  32. package/src/integrations/documentlistproperties.d.ts +3 -3
  33. package/src/integrations/documentlistproperties.js +1 -1
  34. package/src/integrations/entercommand.d.ts +2 -2
  35. package/src/integrations/entercommand.js +1 -1
  36. package/src/integrations/findandreplace.d.ts +1 -1
  37. package/src/integrations/findandreplace.js +1 -1
  38. package/src/integrations/font.d.ts +1 -1
  39. package/src/integrations/font.js +1 -1
  40. package/src/integrations/formatpainter.d.ts +1 -1
  41. package/src/integrations/formatpainter.js +1 -1
  42. package/src/integrations/heading.d.ts +1 -1
  43. package/src/integrations/heading.js +1 -1
  44. package/src/integrations/highlight.d.ts +1 -1
  45. package/src/integrations/highlight.js +1 -1
  46. package/src/integrations/horizontalline.d.ts +1 -1
  47. package/src/integrations/horizontalline.js +1 -1
  48. package/src/integrations/htmlembed.d.ts +1 -1
  49. package/src/integrations/htmlembed.js +1 -1
  50. package/src/integrations/image.d.ts +1 -1
  51. package/src/integrations/image.js +1 -1
  52. package/src/integrations/imagereplace.d.ts +3 -3
  53. package/src/integrations/imagereplace.js +1 -1
  54. package/src/integrations/importword.d.ts +1 -1
  55. package/src/integrations/importword.js +1 -1
  56. package/src/integrations/indent.d.ts +1 -1
  57. package/src/integrations/indent.js +1 -1
  58. package/src/integrations/inputcommand.d.ts +2 -2
  59. package/src/integrations/inputcommand.js +1 -1
  60. package/src/integrations/link.d.ts +1 -1
  61. package/src/integrations/link.js +1 -1
  62. package/src/integrations/list.d.ts +1 -1
  63. package/src/integrations/list.js +1 -1
  64. package/src/integrations/listproperties.d.ts +3 -3
  65. package/src/integrations/listproperties.js +1 -1
  66. package/src/integrations/mediaembed.d.ts +1 -1
  67. package/src/integrations/mediaembed.js +1 -1
  68. package/src/integrations/mention.d.ts +1 -1
  69. package/src/integrations/mention.js +1 -1
  70. package/src/integrations/pagebreak.d.ts +1 -1
  71. package/src/integrations/pagebreak.js +1 -1
  72. package/src/integrations/paragraph.d.ts +1 -1
  73. package/src/integrations/paragraph.js +1 -1
  74. package/src/integrations/removeformat.d.ts +1 -1
  75. package/src/integrations/removeformat.js +1 -1
  76. package/src/integrations/restrictededitingmode.d.ts +1 -1
  77. package/src/integrations/restrictededitingmode.js +1 -1
  78. package/src/integrations/shiftentercommand.d.ts +2 -2
  79. package/src/integrations/shiftentercommand.js +1 -1
  80. package/src/integrations/standardeditingmode.d.ts +1 -1
  81. package/src/integrations/standardeditingmode.js +1 -1
  82. package/src/integrations/style.d.ts +1 -1
  83. package/src/integrations/style.js +1 -1
  84. package/src/integrations/table.d.ts +1 -1
  85. package/src/integrations/table.js +1 -1
  86. package/src/integrations/tablecaption.d.ts +2 -2
  87. package/src/integrations/tablecaption.js +1 -1
  88. package/src/integrations/tableclipboard.d.ts +2 -2
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tablecolumnresize.d.ts +4 -4
  91. package/src/integrations/tablecolumnresize.js +1 -1
  92. package/src/integrations/tableheadings.d.ts +2 -2
  93. package/src/integrations/tableheadings.js +1 -1
  94. package/src/integrations/tablemergesplit.d.ts +2 -2
  95. package/src/integrations/tablemergesplit.js +1 -1
  96. package/src/integrations/tableofcontents.d.ts +1 -1
  97. package/src/integrations/tableofcontents.js +1 -1
  98. package/src/integrations/tableproperties.d.ts +4 -4
  99. package/src/integrations/tableproperties.js +1 -1
  100. package/src/integrations/template.d.ts +1 -1
  101. package/src/integrations/template.js +1 -1
  102. package/src/integrations/title.d.ts +1 -1
  103. package/src/integrations/title.js +1 -1
  104. package/src/integrations/undo.d.ts +1 -1
  105. package/src/integrations/undo.js +1 -1
  106. package/src/integrations/utils.d.ts +3 -3
  107. package/src/integrations/utils.js +1 -1
  108. package/src/suggestion.d.ts +5 -5
  109. package/src/suggestion.js +1 -1
  110. package/src/suggestiondescriptionfactory.d.ts +15 -3
  111. package/src/suggestiondescriptionfactory.js +1 -1
  112. package/src/trackchanges.d.ts +6 -6
  113. package/src/trackchanges.js +1 -1
  114. package/src/trackchangesconfig.d.ts +1 -1
  115. package/src/trackchangesdata.d.ts +4 -4
  116. package/src/trackchangesdata.js +1 -1
  117. package/src/trackchangesediting.d.ts +51 -51
  118. package/src/trackchangesediting.js +1 -1
  119. package/src/trackchangesui.d.ts +3 -3
  120. package/src/trackchangesui.js +1 -1
  121. package/src/ui/suggestioncontroller.d.ts +5 -5
  122. package/src/ui/suggestioncontroller.js +1 -1
  123. package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
  124. package/src/ui/view/basesuggestionthreadview.js +1 -1
  125. package/src/ui/view/suggestionthreadview.d.ts +5 -5
  126. package/src/ui/view/suggestionthreadview.js +1 -1
  127. package/src/utils/common-translations.d.ts +1 -1
  128. package/src/utils/common-translations.js +1 -1
  129. package/src/utils/utils.d.ts +4 -4
  130. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ceb=['resizeTable','editor','registerCustomCallback','tableWidth','getTableColumnsWidths','accept','formatBlock','change','_descriptionFactory','markBlockFormat','subType','discard','commandParams','document','getColumnGroupElement','handleResizeTableWidthCommand','resizeTableWidth','registerDescriptionCallback','bind','handleSuggestionDescription','getSuggestionCallback','get','TableColumnResizeEditing','resizeColumnWidths','*Format:*\x20resize\x20table','has','enableCommand','formatGroupId','locale','plugins','_suggestionFactory','getContainedElement','Users','getSuggestions','format','data'];(function(_0x13d529,_0x4ceb91){const _0x930b68=function(_0x56a5d6){while(--_0x56a5d6){_0x13d529['push'](_0x13d529['shift']());}};_0x930b68(++_0x4ceb91);}(_0x4ceb,0xb7));const _0x930b=function(_0x13d529,_0x4ceb91){_0x13d529=_0x13d529-0x0;let _0x930b68=_0x4ceb[_0x13d529];return _0x930b68;};import{Plugin as _0x50e32d}from'ckeditor5/src/core';import{getTranslation as _0x1596f7}from'../utils/common-translations';export default class wt extends _0x50e32d{['afterInit'](){if(!this[_0x930b('0x22')][_0x930b('0x1a')][_0x930b('0x16')](_0x930b('0x13')))return;const _0x40f43a=this[_0x930b('0x22')][_0x930b('0x1a')][_0x930b('0x12')]('TrackChangesEditing');_0x40f43a[_0x930b('0x17')]('resizeTableWidth',this[_0x930b('0xc')][_0x930b('0xf')](this)),_0x40f43a[_0x930b('0x17')](_0x930b('0x14'),this['handleResizeTableWidthCommand'][_0x930b('0xf')](this)),_0x40f43a[_0x930b('0x1b')][_0x930b('0x23')]('formatBlock',_0x930b('0x21'),_0x930b('0x2'),_0x40f43a[_0x930b('0x1b')][_0x930b('0x11')](_0x930b('0x3'),null,_0x930b('0x8'))),_0x40f43a[_0x930b('0x1b')][_0x930b('0x23')]('formatBlock',_0x930b('0x21'),_0x930b('0x8'),_0x40f43a['_suggestionFactory'][_0x930b('0x11')](_0x930b('0x3'),null,_0x930b('0x2'))),_0x40f43a[_0x930b('0x5')][_0x930b('0xe')](this[_0x930b('0x10')][_0x930b('0xf')](this));}[_0x930b('0xc')](_0x4c7588,_0x56f384){const _0x59630a=this['editor']['plugins'][_0x930b('0x12')]('TrackChangesEditing'),_0x483219=this[_0x930b('0x22')]['plugins']['get'](_0x930b('0x13')),_0x20660e=_0x56f384['table']||this[_0x930b('0x22')]['model'][_0x930b('0xa')]['selection']['getSelectedElement']();this[_0x930b('0x22')]['model'][_0x930b('0x4')](()=>{const _0x10ecfe=_0x483219[_0x930b('0xb')](_0x20660e);let _0x48d88a=_0x10ecfe?_0x483219[_0x930b('0x1')](_0x10ecfe):null,_0x1ace2c=_0x20660e['getAttribute'](_0x930b('0x0'))||null;const _0x1e57e4=_0x56f384[_0x930b('0x0')]||_0x1ace2c,_0x1f05a6=_0x56f384['columnWidths']||_0x48d88a,_0x163358=this[_0x930b('0x22')]['plugins']['get'](_0x930b('0x1d'))['me'];for(const _0x275498 of _0x59630a[_0x930b('0x1e')]()){const _0x28ce23=_0x275498[_0x930b('0x1c')]();if(_0x930b('0x21')===_0x275498[_0x930b('0x7')]&&_0x28ce23===_0x20660e){_0x275498['author']!==_0x163358&&_0x275498[_0x930b('0x8')]();const _0x189c4f=_0x275498[_0x930b('0x20')][_0x930b('0x9')];_0x1ace2c=_0x189c4f[0x0][_0x930b('0x0')],_0x48d88a=_0x189c4f[0x0]['columnWidths'];break;}}_0x4c7588({'table':_0x20660e,'tableWidth':_0x1e57e4,'columnWidths':_0x1f05a6}),_0x59630a[_0x930b('0x6')](_0x20660e,{'commandName':_0x930b('0xd'),'commandParams':[{'tableWidth':_0x1ace2c,'columnWidths':_0x48d88a}],'formatGroupId':_0x930b('0x21')},[],_0x930b('0x21'));});}['handleSuggestionDescription'](_0x277a52){const {data:_0x1ed957}=_0x277a52;if(_0x1ed957&&_0x930b('0x21')===_0x1ed957[_0x930b('0x18')]){const _0x1f9347=_0x930b('0x15');return{'type':_0x930b('0x1f'),'content':_0x1596f7(this['editor'][_0x930b('0x19')],_0x1f9347)};}}}
23
+ const _0x5e8b=['registerCustomCallback','resizeTableWidth','handleResizeTableWidthCommand','_suggestionFactory','resizeColumnWidths','handleSuggestionDescription','format','discard','editor','bind','getSuggestionCallback','data','document','formatBlock','getSelectedElement','author','TrackChangesEditing','registerDescriptionCallback','getTableColumnsWidths','resizeTable','columnWidths','formatGroupId','TableColumnResizeEditing','getContainedElement','afterInit','subType','model','get','getColumnGroupElement','getSuggestions','locale','plugins','has','_descriptionFactory','table','accept','tableWidth','selection'];(function(_0x2744a6,_0x5e8b7e){const _0x3f5272=function(_0x59cdcb){while(--_0x59cdcb){_0x2744a6['push'](_0x2744a6['shift']());}};_0x3f5272(++_0x5e8b7e);}(_0x5e8b,0x109));const _0x3f52=function(_0x2744a6,_0x5e8b7e){_0x2744a6=_0x2744a6-0x0;let _0x3f5272=_0x5e8b[_0x2744a6];return _0x3f5272;};import{Plugin as _0xc9dced}from'ckeditor5/src/core.js';import{getTranslation as _0x2f8244}from'../utils/common-translations.js';export default class wt extends _0xc9dced{[_0x3f52('0x19')](){if(!this[_0x3f52('0x9')]['plugins'][_0x3f52('0x21')](_0x3f52('0x17')))return;const _0x1dc00c=this['editor'][_0x3f52('0x20')][_0x3f52('0x1c')](_0x3f52('0x11'));_0x1dc00c['enableCommand'](_0x3f52('0x2'),this['handleResizeTableWidthCommand'][_0x3f52('0xa')](this)),_0x1dc00c['enableCommand'](_0x3f52('0x5'),this[_0x3f52('0x3')][_0x3f52('0xa')](this)),_0x1dc00c[_0x3f52('0x4')]['registerCustomCallback'](_0x3f52('0xe'),_0x3f52('0x14'),_0x3f52('0x24'),_0x1dc00c[_0x3f52('0x4')][_0x3f52('0xb')](_0x3f52('0xe'),null,_0x3f52('0x8'))),_0x1dc00c[_0x3f52('0x4')][_0x3f52('0x1')](_0x3f52('0xe'),'resizeTable','discard',_0x1dc00c[_0x3f52('0x4')][_0x3f52('0xb')](_0x3f52('0xe'),null,_0x3f52('0x24'))),_0x1dc00c[_0x3f52('0x22')][_0x3f52('0x12')](this[_0x3f52('0x6')][_0x3f52('0xa')](this));}[_0x3f52('0x3')](_0xb7dbe9,_0x46c9a7){const _0x4b838c=this['editor']['plugins']['get'](_0x3f52('0x11')),_0x38dc6d=this[_0x3f52('0x9')][_0x3f52('0x20')][_0x3f52('0x1c')](_0x3f52('0x17')),_0x2f0b85=_0x46c9a7[_0x3f52('0x23')]||this[_0x3f52('0x9')][_0x3f52('0x1b')][_0x3f52('0xd')][_0x3f52('0x0')][_0x3f52('0xf')]();this[_0x3f52('0x9')][_0x3f52('0x1b')]['change'](()=>{const _0x5a7cc1=_0x38dc6d[_0x3f52('0x1d')](_0x2f0b85);let _0x499f56=_0x5a7cc1?_0x38dc6d[_0x3f52('0x13')](_0x5a7cc1):null,_0x4c2adb=_0x2f0b85['getAttribute'](_0x3f52('0x25'))||null;const _0x4d9544=_0x46c9a7[_0x3f52('0x25')]||_0x4c2adb,_0x536bcd=_0x46c9a7[_0x3f52('0x15')]||_0x499f56,_0x1b457c=this[_0x3f52('0x9')][_0x3f52('0x20')][_0x3f52('0x1c')]('Users')['me'];for(const _0x862833 of _0x4b838c[_0x3f52('0x1e')]()){const _0x166167=_0x862833[_0x3f52('0x18')]();if(_0x3f52('0x14')===_0x862833[_0x3f52('0x1a')]&&_0x166167===_0x2f0b85){_0x862833[_0x3f52('0x10')]!==_0x1b457c&&_0x862833[_0x3f52('0x8')]();const _0x4c2d7e=_0x862833[_0x3f52('0xc')]['commandParams'];_0x4c2adb=_0x4c2d7e[0x0]['tableWidth'],_0x499f56=_0x4c2d7e[0x0][_0x3f52('0x15')];break;}}_0xb7dbe9({'table':_0x2f0b85,'tableWidth':_0x4d9544,'columnWidths':_0x536bcd}),_0x4b838c['markBlockFormat'](_0x2f0b85,{'commandName':_0x3f52('0x2'),'commandParams':[{'tableWidth':_0x4c2adb,'columnWidths':_0x499f56}],'formatGroupId':_0x3f52('0x14')},[],_0x3f52('0x14'));});}[_0x3f52('0x6')](_0x584774){const {data:_0x106a09}=_0x584774;if(_0x106a09&&_0x3f52('0x14')===_0x106a09[_0x3f52('0x16')]){const _0xe9bdac='*Format:*\x20resize\x20table';return{'type':_0x3f52('0x7'),'content':_0x2f8244(this[_0x3f52('0x9')][_0x3f52('0x1f')],_0xe9bdac)};}}}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module track-changes/integrations/tableheadings
3
3
  */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import TrackChangesTable from './table';
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
+ import TrackChangesTable from './table.js';
6
6
  /**
7
7
  * Provides track changes plugin integration for {@link module:table/table~Table table feature} heading rows/columns.
8
8
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x569b=['findAncestor','getSelectionAffectedTableCells','options','_splitMarkerName','commandName','registerCustomCallback','accept','consume','_acceptFormatSuggestionCallbackFactory','table','FORMAT_REGULAR_COLUMN','name','activeMarkers','value','removeMarker:suggestion','FORMAT_HEADER_ROW','editor','getSuggestion','getCellLocation','end','selection','consumable','*Format:*\x20%0','has','removeAttribute','showSuggestionHighlights','data-suggestion','setTableRowHeader','nodeAfter','getColumnIndexes','first','removeClass','_suggestionFactory','locale','formatBlock','index','mapper','downcastDispatcher','createPositionAfter','TableUtils','editing','addMarker:suggestion','stop','format','setTableColumnHeader','writer','markerRange','markBlockFormat','createPositionBefore','createRange','start','childCount','highest','unbindElementFromMarkerName','nodeBefore','requires','cell','getAttribute','markerName','commandParams','ck-suggestion-marker--active','enableCommand','forceValue','document','plugins','setAttribute','getRowIndexes','includes','change','registerDescriptionCallback','model','data','_descriptionFactory','addClass','get','headingRows','getChild','parent','TrackChangesEditing','createTableWalker'];(function(_0x229e88,_0x569b3c){const _0x51512b=function(_0x3740b0){while(--_0x3740b0){_0x229e88['push'](_0x229e88['shift']());}};_0x51512b(++_0x569b3c);}(_0x569b,0x6d));const _0x5151=function(_0x229e88,_0x569b3c){_0x229e88=_0x229e88-0x0;let _0x51512b=_0x569b[_0x229e88];return _0x51512b;};import{Plugin as _0x5a1b92}from'ckeditor5/src/core';import _0x54498f from'./table';import{getTranslation as _0x57e4b7}from'../utils/common-translations';export default class pt extends _0x5a1b92{static get[_0x5151('0x1a')](){return[_0x54498f];}['afterInit'](){const _0xf95e13=this[_0x5151('0x43')];if(!_0xf95e13[_0x5151('0x23')][_0x5151('0x4a')]('TableEditing'))return;const _0x277d06=_0xf95e13[_0x5151('0x4')],_0x1caf72=_0xf95e13[_0x5151('0x23')]['get'](_0x5151('0x31')),_0x40a23f=_0xf95e13[_0x5151('0x23')][_0x5151('0x2d')](_0x5151('0xa')),_0x56f119=_0xf95e13[_0x5151('0x23')][_0x5151('0x2d')](_0x54498f);function _0x318d46({showActiveMarker:_0x1de6b3=!0x0,setDataAttribute:_0x454139=!0x0}={}){return(_0x5ad7f,_0x349307,_0x268e19)=>{const {type:_0x5ee089,id:_0x10cc1a}=_0x1caf72[_0x5151('0x36')](_0x349307[_0x5151('0x1d')]),_0x11bdd2=_0x1caf72[_0x5151('0x44')](_0x10cc1a);if(!_0x11bdd2[_0x5151('0x2a')]||_0x5151('0xf')!=_0x11bdd2[_0x5151('0x2a')][_0x5151('0x37')])return;if(_0x349307['item'])return void _0x5ad7f[_0x5151('0xd')]();if(!_0x268e19[_0x5151('0x48')][_0x5151('0x3a')](_0x349307[_0x5151('0x11')],_0x5ad7f[_0x5151('0x3e')]))return;const _0x7667f3=_0x349307['markerRange'][_0x5151('0x15')][_0x5151('0x4f')],_0x384429=_0x349307[_0x5151('0x11')][_0x5151('0x46')][_0x5151('0x19')],_0x389e54=_0x7667f3[_0x5151('0x30')][_0x5151('0x30')],{column:_0x45acc6}=_0x40a23f[_0x5151('0x45')](_0x7667f3),{column:_0x40226b}=_0x40a23f[_0x5151('0x45')](_0x384429);for(let _0x51e699=_0x45acc6;_0x51e699<=_0x40226b;_0x51e699++){const _0x4bdf00=_0x40a23f[_0x5151('0x32')](_0x389e54,{'column':_0x51e699,'includeAllSlots':!0x1});for(const _0x35509f of _0x4bdf00){const _0x4ffd7c=_0x35509f[_0x5151('0x1b')],_0x5c67c7=_0x268e19[_0x5151('0x7')]['toViewElement'](_0x4ffd7c);_0x268e19[_0x5151('0x10')][_0x5151('0x2c')]('ck-suggestion-marker-'+_0x5ee089,_0x5c67c7),_0x454139&&_0x268e19['writer'][_0x5151('0x24')](_0x5151('0x4d'),_0x10cc1a,_0x5c67c7),_0x268e19['mapper']['bindElementToMarker'](_0x5c67c7,_0x349307['markerName']),_0x1de6b3&&(_0x1caf72[_0x5151('0x3f')][_0x5151('0x26')](_0x349307[_0x5151('0x1d')])?_0x268e19['writer'][_0x5151('0x2c')]('ck-suggestion-marker--active',_0x5c67c7):_0x268e19[_0x5151('0x10')][_0x5151('0x2')](_0x5151('0x1f'),_0x5c67c7));}}};}_0x1caf72[_0x5151('0x20')](_0x5151('0x4e'),(_0x8f27a7,_0x5a7b88)=>{const _0x2cfb64=_0x40a23f[_0x5151('0x34')](_0xf95e13[_0x5151('0x29')][_0x5151('0x22')][_0x5151('0x47')]),_0x1c4941=_0x40a23f[_0x5151('0x25')](_0x2cfb64),_0x235b08=_0x2cfb64[0x0][_0x5151('0x33')](_0x5151('0x3c')),_0x37e1cd=_0x235b08[_0x5151('0x1c')](_0x5151('0x2e'))||0x0,_0x5c55c2=_0x5a7b88&&null!==_0x5a7b88['forceValue']?_0x5a7b88[_0x5151('0x21')]:!_0xf95e13['commands']['get'](_0x5151('0x4e'))[_0x5151('0x40')],_0x1dee5e=_0x5c55c2?_0x1c4941['last']:_0x1c4941[_0x5151('0x1')],_0x55762f=_0x235b08[_0x5151('0x2f')](_0x1dee5e);let _0x591d35;if(_0x5c55c2){const _0x184778=_0x235b08[_0x5151('0x2f')](_0x37e1cd);if(_0x55762f[_0x5151('0x6')]<_0x184778[_0x5151('0x6')])return;_0x591d35=_0xf95e13['model']['createRange'](_0xf95e13[_0x5151('0x29')]['createPositionBefore'](_0x184778['getChild'](0x0)),_0xf95e13['model']['createPositionAfter'](_0x55762f[_0x5151('0x2f')](_0x55762f[_0x5151('0x16')]-0x1)));}else{const _0x21b3c2=_0x235b08[_0x5151('0x2f')](_0x37e1cd-0x1);if(!_0x21b3c2)return;_0x591d35=_0xf95e13[_0x5151('0x29')]['createRange'](_0xf95e13[_0x5151('0x29')]['createPositionBefore'](_0x55762f[_0x5151('0x2f')](0x0)),_0xf95e13[_0x5151('0x29')][_0x5151('0x9')](_0x21b3c2[_0x5151('0x2f')](_0x21b3c2['childCount']-0x1)));}_0xf95e13[_0x5151('0x29')][_0x5151('0x27')](()=>{_0x1caf72[_0x5151('0x12')](_0x591d35,{'commandName':_0x5151('0x4e'),'commandParams':[{'forceValue':_0x5c55c2}]},[],_0x5151('0x4e'));});}),_0x1caf72['enableCommand'](_0x5151('0xf'),(_0x30a111,_0x20e877)=>{const _0x33533f=_0xf95e13[_0x5151('0x23')][_0x5151('0x2d')]('TableUtils'),_0x26b6e7=_0x33533f[_0x5151('0x34')](_0xf95e13[_0x5151('0x29')][_0x5151('0x22')][_0x5151('0x47')]),_0x4d42f2=_0x33533f[_0x5151('0x0')](_0x26b6e7),_0x122edd=_0x26b6e7[0x0][_0x5151('0x33')](_0x5151('0x3c')),_0x2b5c43=_0x122edd[_0x5151('0x1c')]('headingColumns')||0x0,_0x3c84ef=_0x20e877&&null!==_0x20e877['forceValue']?_0x20e877[_0x5151('0x21')]:!_0xf95e13['commands'][_0x5151('0x2d')]('setTableColumnHeader')['value'];let _0x4ca775;const _0x38b760=_0x122edd['getChild'](0x0),_0x59c6e4=_0x3c84ef?_0x4d42f2['last']:_0x4d42f2[_0x5151('0x1')],_0x4eee5c=_0x33533f[_0x5151('0x32')](_0x122edd,{'startRow':0x0,'column':_0x59c6e4,'includeAllSlots':!0x1}),_0x2e1c3a=Array['from'](_0x4eee5c)[0x0][_0x5151('0x1b')];if(_0x3c84ef){const _0x406f4b=_0x38b760[_0x5151('0x2f')](_0x2b5c43);if(_0x2e1c3a['isBefore'](_0x406f4b))return;_0x4ca775=_0xf95e13['model'][_0x5151('0x14')](_0xf95e13['model'][_0x5151('0x13')](_0x406f4b),_0xf95e13[_0x5151('0x29')][_0x5151('0x9')](_0x2e1c3a));}else{const _0x584fe1=_0x38b760[_0x5151('0x2f')](_0x2b5c43-0x1);if(!_0x584fe1)return;_0x4ca775=_0xf95e13[_0x5151('0x29')][_0x5151('0x14')](_0xf95e13[_0x5151('0x29')][_0x5151('0x13')](_0x2e1c3a),_0xf95e13[_0x5151('0x29')][_0x5151('0x9')](_0x584fe1));}_0xf95e13[_0x5151('0x29')][_0x5151('0x27')](()=>{_0x1caf72[_0x5151('0x12')](_0x4ca775,{'commandName':_0x5151('0xf'),'commandParams':[{'forceValue':_0x3c84ef}]},[],'setTableColumnHeader');});}),_0xf95e13[_0x5151('0xb')][_0x5151('0x8')]['on'](_0x5151('0xc'),_0x318d46(),{'priority':_0x5151('0x17')}),_0xf95e13[_0x5151('0x2a')][_0x5151('0x8')]['on'](_0x5151('0xc'),(_0x955a3a,_0xf3764f,_0x588630)=>{_0x588630[_0x5151('0x35')][_0x5151('0x4c')]&&_0x318d46({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x955a3a,_0xf3764f,_0x588630);},{'priority':_0x5151('0x17')}),_0xf95e13[_0x5151('0xb')][_0x5151('0x8')]['on'](_0x5151('0x41'),(_0x10eb54,_0x1b81bf,_0x51529e)=>{const {type:_0x42d922,id:_0x1d15c8}=_0x1caf72[_0x5151('0x36')](_0x1b81bf[_0x5151('0x1d')]),_0x294e76=_0x1caf72['getSuggestion'](_0x1d15c8);if(!_0x294e76[_0x5151('0x2a')]||_0x5151('0xf')!=_0x294e76[_0x5151('0x2a')][_0x5151('0x37')])return;const _0x36bb4b=_0x51529e[_0x5151('0x7')]['markerNameToElements'](_0x1b81bf[_0x5151('0x1d')]);if(_0x36bb4b)for(const _0x4cab5e of _0x36bb4b)_0x51529e[_0x5151('0x10')][_0x5151('0x2')]('ck-suggestion-marker-'+_0x42d922,_0x4cab5e),_0x51529e[_0x5151('0x10')]['removeClass'](_0x5151('0x1f'),_0x4cab5e),_0x51529e[_0x5151('0x10')][_0x5151('0x4b')](_0x5151('0x4d'),_0x4cab5e),_0x51529e['mapper'][_0x5151('0x18')](_0x4cab5e,_0x1b81bf[_0x5151('0x1d')]);},{'priority':_0x5151('0x17')}),_0x1caf72[_0x5151('0x2b')][_0x5151('0x28')](_0xc8e13b=>{const {data:_0xfa9795}=_0xc8e13b;if(_0xfa9795){if(_0x5151('0x4e')==_0xfa9795[_0x5151('0x37')]){const _0x1edafb=_0xfa9795[_0x5151('0x1e')][0x0][_0x5151('0x21')];return _0x3eb4a7(_0x57e4b7(_0x277d06,_0x1edafb?_0x5151('0x42'):'FORMAT_REGULAR_ROW'));}if(_0x5151('0xf')==_0xfa9795['commandName']){const _0x3f50d7=_0xfa9795[_0x5151('0x1e')][0x0][_0x5151('0x21')];return _0x3eb4a7(_0x57e4b7(_0x277d06,_0x3f50d7?'FORMAT_HEADER_COLUMN':_0x5151('0x3d')));}}function _0x3eb4a7(_0x498a8){return{'type':_0x5151('0xe'),'content':_0x57e4b7(_0x277d06,_0x5151('0x49'),_0x498a8)};}});const _0x36c345=_0x56f119[_0x5151('0x3b')]();_0x1caf72['_suggestionFactory'][_0x5151('0x38')](_0x5151('0x5'),_0x5151('0x4e'),_0x5151('0x39'),_0x36c345),_0x1caf72[_0x5151('0x3')][_0x5151('0x38')](_0x5151('0x5'),_0x5151('0xf'),'accept',_0x36c345);}}
23
+ const _0x3d83=['accept','addClass','commands','editor','TableEditing','showSuggestionHighlights','end','registerDescriptionCallback','setAttribute','removeClass','childCount','afterInit','document','unbindElementFromMarkerName','plugins','enableCommand','registerCustomCallback','first','nodeBefore','getColumnIndexes','locale','markBlockFormat','_suggestionFactory','bindElementToMarker','isBefore','getSelectionAffectedTableCells','writer','table','addMarker:suggestion','requires','markerRange','setTableColumnHeader','data','getChild','forceValue','createPositionAfter','highest','commandName','commandParams','consume','FORMAT_REGULAR_ROW','consumable','_splitMarkerName','getAttribute','start','data-suggestion','markerName','change','format','setTableRowHeader','parent','formatBlock','ck-suggestion-marker-','model','getSuggestion','from','headingColumns','TrackChangesEditing','toViewElement','headingRows','activeMarkers','name','selection','last','createPositionBefore','downcastDispatcher','value','findAncestor','index','stop','FORMAT_REGULAR_COLUMN','_acceptFormatSuggestionCallbackFactory','mapper','ck-suggestion-marker--active','removeMarker:suggestion','get','nodeAfter','createRange','editing','TableUtils','getCellLocation'];(function(_0xebeac5,_0x3d830a){const _0x4c67c4=function(_0xc814d6){while(--_0xc814d6){_0xebeac5['push'](_0xebeac5['shift']());}};_0x4c67c4(++_0x3d830a);}(_0x3d83,0xa1));const _0x4c67=function(_0xebeac5,_0x3d830a){_0xebeac5=_0xebeac5-0x0;let _0x4c67c4=_0x3d83[_0xebeac5];return _0x4c67c4;};import{Plugin as _0x285ff7}from'ckeditor5/src/core.js';import _0x246032 from'./table.js';import{getTranslation as _0x45927f}from'../utils/common-translations.js';export default class pt extends _0x285ff7{static get[_0x4c67('0x1e')](){return[_0x246032];}[_0x4c67('0xc')](){const _0x7bcbd4=this[_0x4c67('0x4')];if(!_0x7bcbd4[_0x4c67('0xf')]['has'](_0x4c67('0x5')))return;const _0x61cb92=_0x7bcbd4[_0x4c67('0x15')],_0x353bbe=_0x7bcbd4[_0x4c67('0xf')][_0x4c67('0x4c')](_0x4c67('0x3a')),_0xb70fb7=_0x7bcbd4[_0x4c67('0xf')][_0x4c67('0x4c')]('TableUtils'),_0x26ac76=_0x7bcbd4[_0x4c67('0xf')][_0x4c67('0x4c')](_0x246032);function _0x130de9({showActiveMarker:_0x2bb9a7=!0x0,setDataAttribute:_0x34b44d=!0x0}={}){return(_0x226c8f,_0x395b2c,_0x169011)=>{const {type:_0x4416df,id:_0x123669}=_0x353bbe['_splitMarkerName'](_0x395b2c['markerName']),_0x30d4a7=_0x353bbe[_0x4c67('0x37')](_0x123669);if(!_0x30d4a7[_0x4c67('0x21')]||_0x4c67('0x20')!=_0x30d4a7[_0x4c67('0x21')][_0x4c67('0x26')])return;if(_0x395b2c['item'])return void _0x226c8f[_0x4c67('0x46')]();if(!_0x169011[_0x4c67('0x2a')][_0x4c67('0x28')](_0x395b2c['markerRange'],_0x226c8f[_0x4c67('0x3e')]))return;const _0x57f3e0=_0x395b2c[_0x4c67('0x1f')][_0x4c67('0x2d')][_0x4c67('0x4d')],_0x362a34=_0x395b2c[_0x4c67('0x1f')][_0x4c67('0x7')][_0x4c67('0x13')],_0x5f514d=_0x57f3e0[_0x4c67('0x33')][_0x4c67('0x33')],{column:_0x3d0551}=_0xb70fb7[_0x4c67('0x0')](_0x57f3e0),{column:_0x16aa18}=_0xb70fb7[_0x4c67('0x0')](_0x362a34);for(let _0x49434c=_0x3d0551;_0x49434c<=_0x16aa18;_0x49434c++){const _0x35a94d=_0xb70fb7['createTableWalker'](_0x5f514d,{'column':_0x49434c,'includeAllSlots':!0x1});for(const _0x327969 of _0x35a94d){const _0x5d07d3=_0x327969['cell'],_0x183f97=_0x169011[_0x4c67('0x49')][_0x4c67('0x3b')](_0x5d07d3);_0x169011[_0x4c67('0x1b')][_0x4c67('0x2')](_0x4c67('0x35')+_0x4416df,_0x183f97),_0x34b44d&&_0x169011[_0x4c67('0x1b')][_0x4c67('0x9')](_0x4c67('0x2e'),_0x123669,_0x183f97),_0x169011[_0x4c67('0x49')][_0x4c67('0x18')](_0x183f97,_0x395b2c[_0x4c67('0x2f')]),_0x2bb9a7&&(_0x353bbe[_0x4c67('0x3d')]['includes'](_0x395b2c[_0x4c67('0x2f')])?_0x169011[_0x4c67('0x1b')][_0x4c67('0x2')]('ck-suggestion-marker--active',_0x183f97):_0x169011['writer'][_0x4c67('0xa')](_0x4c67('0x4a'),_0x183f97));}}};}_0x353bbe['enableCommand']('setTableRowHeader',(_0x118c44,_0x3a1536)=>{const _0x610027=_0xb70fb7['getSelectionAffectedTableCells'](_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0xd')][_0x4c67('0x3f')]),_0x18de4c=_0xb70fb7['getRowIndexes'](_0x610027),_0xe201e2=_0x610027[0x0][_0x4c67('0x44')]('table'),_0x49e1f5=_0xe201e2[_0x4c67('0x2c')](_0x4c67('0x3c'))||0x0,_0x48051a=_0x3a1536&&null!==_0x3a1536['forceValue']?_0x3a1536[_0x4c67('0x23')]:!_0x7bcbd4['commands'][_0x4c67('0x4c')](_0x4c67('0x32'))[_0x4c67('0x43')],_0x372d53=_0x48051a?_0x18de4c[_0x4c67('0x40')]:_0x18de4c['first'],_0x374585=_0xe201e2[_0x4c67('0x22')](_0x372d53);let _0x784fc4;if(_0x48051a){const _0x555c23=_0xe201e2[_0x4c67('0x22')](_0x49e1f5);if(_0x374585[_0x4c67('0x45')]<_0x555c23[_0x4c67('0x45')])return;_0x784fc4=_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x4e')](_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x41')](_0x555c23[_0x4c67('0x22')](0x0)),_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x24')](_0x374585[_0x4c67('0x22')](_0x374585[_0x4c67('0xb')]-0x1)));}else{const _0x1245d6=_0xe201e2[_0x4c67('0x22')](_0x49e1f5-0x1);if(!_0x1245d6)return;_0x784fc4=_0x7bcbd4[_0x4c67('0x36')]['createRange'](_0x7bcbd4['model'][_0x4c67('0x41')](_0x374585['getChild'](0x0)),_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x24')](_0x1245d6[_0x4c67('0x22')](_0x1245d6['childCount']-0x1)));}_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x30')](()=>{_0x353bbe[_0x4c67('0x16')](_0x784fc4,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x48051a}]},[],_0x4c67('0x32'));});}),_0x353bbe[_0x4c67('0x10')]('setTableColumnHeader',(_0x136440,_0x5c2462)=>{const _0x4afe68=_0x7bcbd4['plugins'][_0x4c67('0x4c')](_0x4c67('0x50')),_0x33a9e6=_0x4afe68[_0x4c67('0x1a')](_0x7bcbd4['model']['document'][_0x4c67('0x3f')]),_0x1f068a=_0x4afe68[_0x4c67('0x14')](_0x33a9e6),_0xda7675=_0x33a9e6[0x0][_0x4c67('0x44')](_0x4c67('0x1c')),_0x6a8589=_0xda7675[_0x4c67('0x2c')](_0x4c67('0x39'))||0x0,_0x877773=_0x5c2462&&null!==_0x5c2462[_0x4c67('0x23')]?_0x5c2462['forceValue']:!_0x7bcbd4[_0x4c67('0x3')][_0x4c67('0x4c')](_0x4c67('0x20'))[_0x4c67('0x43')];let _0x592722;const _0x523d92=_0xda7675[_0x4c67('0x22')](0x0),_0x5e7be7=_0x877773?_0x1f068a['last']:_0x1f068a[_0x4c67('0x12')],_0x416402=_0x4afe68['createTableWalker'](_0xda7675,{'startRow':0x0,'column':_0x5e7be7,'includeAllSlots':!0x1}),_0x1c6924=Array[_0x4c67('0x38')](_0x416402)[0x0]['cell'];if(_0x877773){const _0x55a262=_0x523d92['getChild'](_0x6a8589);if(_0x1c6924[_0x4c67('0x19')](_0x55a262))return;_0x592722=_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x4e')](_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x41')](_0x55a262),_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x24')](_0x1c6924));}else{const _0x343489=_0x523d92[_0x4c67('0x22')](_0x6a8589-0x1);if(!_0x343489)return;_0x592722=_0x7bcbd4[_0x4c67('0x36')]['createRange'](_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x41')](_0x1c6924),_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x24')](_0x343489));}_0x7bcbd4[_0x4c67('0x36')][_0x4c67('0x30')](()=>{_0x353bbe[_0x4c67('0x16')](_0x592722,{'commandName':_0x4c67('0x20'),'commandParams':[{'forceValue':_0x877773}]},[],'setTableColumnHeader');});}),_0x7bcbd4[_0x4c67('0x4f')][_0x4c67('0x42')]['on']('addMarker:suggestion',_0x130de9(),{'priority':_0x4c67('0x25')}),_0x7bcbd4['data'][_0x4c67('0x42')]['on'](_0x4c67('0x1d'),(_0x5b594d,_0x2ecceb,_0x298832)=>{_0x298832['options'][_0x4c67('0x6')]&&_0x130de9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5b594d,_0x2ecceb,_0x298832);},{'priority':_0x4c67('0x25')}),_0x7bcbd4[_0x4c67('0x4f')][_0x4c67('0x42')]['on'](_0x4c67('0x4b'),(_0x2bf9b0,_0x417871,_0x4baa90)=>{const {type:_0xae7261,id:_0x4f99a2}=_0x353bbe[_0x4c67('0x2b')](_0x417871[_0x4c67('0x2f')]),_0x5eee4a=_0x353bbe[_0x4c67('0x37')](_0x4f99a2);if(!_0x5eee4a[_0x4c67('0x21')]||_0x4c67('0x20')!=_0x5eee4a['data']['commandName'])return;const _0x5a2317=_0x4baa90['mapper']['markerNameToElements'](_0x417871[_0x4c67('0x2f')]);if(_0x5a2317)for(const _0x3ddca1 of _0x5a2317)_0x4baa90[_0x4c67('0x1b')][_0x4c67('0xa')](_0x4c67('0x35')+_0xae7261,_0x3ddca1),_0x4baa90[_0x4c67('0x1b')]['removeClass'](_0x4c67('0x4a'),_0x3ddca1),_0x4baa90[_0x4c67('0x1b')]['removeAttribute'](_0x4c67('0x2e'),_0x3ddca1),_0x4baa90[_0x4c67('0x49')][_0x4c67('0xe')](_0x3ddca1,_0x417871[_0x4c67('0x2f')]);},{'priority':_0x4c67('0x25')}),_0x353bbe['_descriptionFactory'][_0x4c67('0x8')](_0x2defa2=>{const {data:_0x23c326}=_0x2defa2;if(_0x23c326){if('setTableRowHeader'==_0x23c326[_0x4c67('0x26')]){const _0x895fc5=_0x23c326[_0x4c67('0x27')][0x0][_0x4c67('0x23')];return _0x103bdf(_0x45927f(_0x61cb92,_0x895fc5?'FORMAT_HEADER_ROW':_0x4c67('0x29')));}if(_0x4c67('0x20')==_0x23c326[_0x4c67('0x26')]){const _0x144c5d=_0x23c326[_0x4c67('0x27')][0x0]['forceValue'];return _0x103bdf(_0x45927f(_0x61cb92,_0x144c5d?'FORMAT_HEADER_COLUMN':_0x4c67('0x47')));}}function _0x103bdf(_0x87c00a){return{'type':_0x4c67('0x31'),'content':_0x45927f(_0x61cb92,'*Format:*\x20%0',_0x87c00a)};}});const _0x2142e1=_0x26ac76[_0x4c67('0x48')]();_0x353bbe[_0x4c67('0x17')][_0x4c67('0x11')](_0x4c67('0x34'),_0x4c67('0x32'),_0x4c67('0x1'),_0x2142e1),_0x353bbe['_suggestionFactory'][_0x4c67('0x11')](_0x4c67('0x34'),_0x4c67('0x20'),'accept',_0x2142e1);}}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module track-changes/integrations/tablemergesplit
3
3
  */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import TrackChangesTable from './table';
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
+ import TrackChangesTable from './table.js';
6
6
  /**
7
7
  * Provides track changes plugin integration for {@link module:table/table~Table table feature} merging and splitting cells.
8
8
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bd4=['refresh','length','editor','TableEditing','insertion','isInContent','type','_areMergableCells','mergeTableCellDown','getCellLocation','createTableWalker','afterInit','mergeTableCellUp','low','has','containsRange','highest','getAncestors','markBlockFormat','value','set:isEnabled','author','enableCommand','from','registerCustomCallback','forceDefaultExecution','change','_areSelectedCellsMergable','execute','detach','deletion','commandName','tableCell','rootName','*Split\x20cell:*\x20horizontally','format','trackChanges','accept','size','get','cell','splitTableCellHorizontally','table','*Merge\x20cells*','direction','getFirstPosition','root','requires','document','horizontally','return','registerDescriptionCallback','_descriptionFactory','formatBlock','getSelectionAffectedTableCells','mergeTableCells','TrackChangesEditing','find','_suggestionFactory','getRanges','selection','_isForcedDefaultExecutionBlock','map','push','mergeTableCellRight','splitTableCellVertically','model','findAncestor','*Split\x20cell:*\x20vertically','markMultiRangeBlockFormat','add','createRangeOn','locale','mergeTableCellLeft','getSuggestions','stop','plugins','subType','element','$graveyard','TableUtils','commands','isEnabled','_acceptFormatSuggestionCallbackFactory'];(function(_0x2c99aa,_0x3bd4c5){const _0x3bbc7c=function(_0x464c32){while(--_0x464c32){_0x2c99aa['push'](_0x2c99aa['shift']());}};_0x3bbc7c(++_0x3bd4c5);}(_0x3bd4,0x11f));const _0x3bbc=function(_0x2c99aa,_0x3bd4c5){_0x2c99aa=_0x2c99aa-0x0;let _0x3bbc7c=_0x3bd4[_0x2c99aa];return _0x3bbc7c;};import{Plugin as _0x415ef3}from'ckeditor5/src/core';import _0x4349ae from'./table';import{LiveRange as _0x413526}from'ckeditor5/src/engine';import{getTranslation as _0x3cac6b}from'../utils/common-translations';export default class dt extends _0x415ef3{static get[_0x3bbc('0xc')](){return[_0x4349ae];}[_0x3bbc('0x3c')](){const _0x359d99=this[_0x3bbc('0x33')],_0x300fcb=_0x359d99['model'][_0x3bbc('0xd')]['selection'],_0x57f4b7=_0x359d99[_0x3bbc('0x25')];if(!_0x359d99[_0x3bbc('0x29')][_0x3bbc('0x3f')](_0x3bbc('0x34')))return;const _0x4aee90=_0x359d99['plugins']['get']('TrackChangesEditing'),_0x45ac5c=_0x359d99['plugins'][_0x3bbc('0x4')](_0x3bbc('0x2d')),_0x465b=_0x359d99[_0x3bbc('0x29')][_0x3bbc('0x4')](_0x4349ae);_0x465b['_tablePostFixingSubtypes'][_0x3bbc('0x1c')]('mergeTableCells'),_0x4aee90['enableCommand'](_0x3bbc('0x14'),()=>{const _0x3c4b78=_0x45ac5c[_0x3bbc('0x13')](_0x359d99['model'][_0x3bbc('0xd')][_0x3bbc('0x19')]);_0x359d99['model'][_0x3bbc('0x4b')](()=>{_0x4aee90[_0x3bbc('0x22')](_0x3c4b78,{'commandName':_0x3bbc('0x14'),'commandParams':[]},[],_0x3bbc('0x14'));});}),_0x359d99[_0x3bbc('0x2e')][_0x3bbc('0x4')]('mergeTableCells')['on'](_0x3bbc('0x4d'),(_0x4bd2bb,_0x3ae18e)=>{_0x359d99[_0x3bbc('0x2e')][_0x3bbc('0x4')](_0x3bbc('0x1'))[_0x3bbc('0x44')]&&(_0x3ae18e['length']>0x0&&_0x3ae18e[_0x3ae18e[_0x3bbc('0x32')]-0x1]&&_0x3ae18e[_0x3ae18e[_0x3bbc('0x32')]-0x1][_0x3bbc('0x4a')]||_0x4aee90[_0x3bbc('0x1a')]||this[_0x3bbc('0x4c')]()||_0x4bd2bb[_0x3bbc('0x28')]());},{'priority':_0x3bbc('0x41')});for(const _0x1425d6 of['mergeTableCellUp','mergeTableCellRight',_0x3bbc('0x39'),'mergeTableCellLeft']){const _0x5bd288=_0x359d99['commands'][_0x3bbc('0x4')](_0x1425d6);_0x4aee90[_0x3bbc('0x47')](_0x1425d6,()=>{const _0x4d51c3=_0x359d99[_0x3bbc('0x1f')][_0x3bbc('0xd')]['selection'][_0x3bbc('0xa')]()[_0x3bbc('0x42')]()[_0x3bbc('0x16')](_0x3589f5=>_0x3589f5['is'](_0x3bbc('0x2b'),_0x3bbc('0x51'))),_0x4f513c=_0x5bd288[_0x3bbc('0x44')];_0x359d99[_0x3bbc('0x1f')]['change'](()=>{_0x4aee90[_0x3bbc('0x22')]([_0x4d51c3,_0x4f513c],{'commandName':_0x3bbc('0x14'),'commandParams':[]},[],_0x3bbc('0x14'));});});}for(const _0x54cb37 of['splitTableCellVertically',_0x3bbc('0x6')]){const _0x960d18=_0x359d99[_0x3bbc('0x2e')][_0x3bbc('0x4')](_0x54cb37);_0x4aee90[_0x3bbc('0x47')](_0x54cb37,()=>{const _0x3bc936=_0x45ac5c['getSelectionAffectedTableCells'](_0x359d99['model'][_0x3bbc('0xd')][_0x3bbc('0x19')])[0x0],_0x55a4b6=_0x3bc936[_0x3bbc('0x20')](_0x3bbc('0x7')),{column:_0x485e75,row:_0x3f1994}=_0x45ac5c[_0x3bbc('0x3a')](_0x3bc936);let _0x16e545=[];if(_0x3bbc('0xe')==_0x960d18[_0x3bbc('0x9')]){const _0x5c925d=_0x45ac5c[_0x3bbc('0x3b')](_0x55a4b6,{'startRow':_0x3f1994,'endRow':_0x3f1994,'includeAllSlots':!0x0});_0x16e545=Array[_0x3bbc('0x48')](_0x5c925d)[_0x3bbc('0x1b')](_0x5e151c=>_0x5e151c['cell']);}else{const _0x53b1f2=_0x45ac5c[_0x3bbc('0x3b')](_0x55a4b6,{'column':_0x485e75,'includeAllSlots':!0x0});_0x16e545=Array['from'](_0x53b1f2)['map'](_0x378cae=>_0x378cae[_0x3bbc('0x5')]);}_0x359d99[_0x3bbc('0x1f')][_0x3bbc('0x4b')](_0xece34=>{_0x4aee90[_0x3bbc('0x43')](_0xece34[_0x3bbc('0x24')](_0x3bc936),{'commandName':_0x54cb37,'commandParams':[]},_0x16e545,_0x54cb37);});});}_0x4aee90[_0x3bbc('0x11')][_0x3bbc('0x10')](_0x195096=>{const {data:_0x1e6ccc}=_0x195096;if(_0x1e6ccc)return _0x3bbc('0x14')==_0x1e6ccc['commandName']?{'type':_0x3bbc('0x0'),'content':_0x3cac6b(_0x57f4b7,_0x3bbc('0x8'))}:void 0x0;}),_0x4aee90[_0x3bbc('0x11')]['registerDescriptionCallback'](_0x4fe377=>{const {data:_0x3371ac}=_0x4fe377;if(_0x3371ac)return'splitTableCellVertically'==_0x3371ac[_0x3bbc('0x50')]?{'type':'format','content':_0x3cac6b(_0x57f4b7,_0x3bbc('0x21'))}:_0x3bbc('0x6')==_0x3371ac[_0x3bbc('0x50')]?{'type':_0x3bbc('0x0'),'content':_0x3cac6b(_0x57f4b7,_0x3bbc('0x53'))}:void 0x0;});const _0xce4bc3=_0x465b[_0x3bbc('0x30')]();for(const _0x43d849 of[_0x3bbc('0x3d'),_0x3bbc('0x1d'),_0x3bbc('0x39'),'mergeTableCellLeft'])_0x4aee90['_suggestionFactory'][_0x3bbc('0x49')]('formatBlock',_0x43d849,_0x3bbc('0x2'),_0xce4bc3);for(const _0x3f99f7 of[_0x3bbc('0x1e'),_0x3bbc('0x6')])_0x4aee90[_0x3bbc('0x17')]['registerCustomCallback'](_0x3bbc('0x12'),_0x3f99f7,'accept',_0xce4bc3);_0x4aee90['_suggestionFactory'][_0x3bbc('0x49')](_0x3bbc('0x12'),'mergeTableCells',_0x3bbc('0x2'),_0x5241fc=>{_0x359d99['model'][_0x3bbc('0x4b')](_0x338575=>{const _0x657b68=Array[_0x3bbc('0x48')](_0x300fcb['getRanges']())[_0x3bbc('0x1b')](_0x37c523=>_0x413526['fromRange'](_0x37c523));_0x338575['setSelection'](_0x5241fc),_0x359d99['commands'][_0x3bbc('0x4')](_0x3bbc('0x14'))[_0x3bbc('0x31')](),_0x359d99[_0x3bbc('0x4d')](_0x3bbc('0x14'),{'forceDefaultExecution':!0x0});const _0x11a3bf=_0x657b68['filter'](_0x45f5fb=>_0x3bbc('0x2c')!=_0x45f5fb[_0x3bbc('0xb')][_0x3bbc('0x52')]);_0x11a3bf['length']>0x0&&_0x338575['setSelection'](_0x11a3bf);for(const _0x40f7e4 of _0x657b68)_0x40f7e4[_0x3bbc('0x4e')]();});});for(const _0x411601 of['mergeTableCellUp','mergeTableCellDown',_0x3bbc('0x26'),_0x3bbc('0x1d')]){const _0x447125=_0x359d99[_0x3bbc('0x2e')]['get'](_0x411601);_0x447125['on'](_0x3bbc('0x45'),(_0x2e27e0,_0x564f75,_0x311fc0)=>{if(_0x311fc0){const _0x146df4=_0x359d99[_0x3bbc('0x1f')][_0x3bbc('0xd')][_0x3bbc('0x19')][_0x3bbc('0xa')]()[_0x3bbc('0x42')]()[_0x3bbc('0x16')](_0x1fe755=>_0x1fe755['is'](_0x3bbc('0x2b'),_0x3bbc('0x51')));this[_0x3bbc('0x38')](_0x447125[_0x3bbc('0x44')],_0x146df4)||(_0x2e27e0[_0x3bbc('0xf')]=!0x1,_0x2e27e0[_0x3bbc('0x28')]());}},{'priority':_0x3bbc('0x3e')});}}[_0x3bbc('0x4c')](){const _0x3f22b9=this[_0x3bbc('0x33')][_0x3bbc('0x2e')][_0x3bbc('0x4')](_0x3bbc('0x14')),_0x11e846=this[_0x3bbc('0x33')][_0x3bbc('0x29')][_0x3bbc('0x4')](_0x3bbc('0x2d'));if(!_0x3f22b9[_0x3bbc('0x2f')])return!0x1;const _0x1c7f46=_0x11e846[_0x3bbc('0x13')](this[_0x3bbc('0x33')][_0x3bbc('0x1f')]['document'][_0x3bbc('0x19')]);for(const _0x35c109 of _0x1c7f46)for(const _0x2df23c of _0x1c7f46)if(_0x35c109!=_0x2df23c&&!this[_0x3bbc('0x38')](_0x35c109,_0x2df23c))return!0x1;return!0x0;}[_0x3bbc('0x38')](_0x3b8dd0,_0x209af3){const _0x12a0c9=this[_0x3bbc('0x33')][_0x3bbc('0x29')]['get'](_0x3bbc('0x15')),_0x1a8e7a=this[_0x3bbc('0x33')]['model'][_0x3bbc('0x24')](_0x3b8dd0),_0x490054=this['editor'][_0x3bbc('0x1f')][_0x3bbc('0x24')](_0x209af3),_0x35f496=new Set(),_0x4c2f65=new Set();for(const _0x388fab of _0x12a0c9[_0x3bbc('0x27')]())if((_0x3bbc('0x35')==_0x388fab[_0x3bbc('0x37')]||_0x3bbc('0x4f')==_0x388fab[_0x3bbc('0x37')]||_0x3bbc('0x14')==_0x388fab[_0x3bbc('0x2a')])&&_0x388fab[_0x3bbc('0x36')])for(const _0x553f20 of _0x388fab[_0x3bbc('0x18')]())_0x553f20[_0x3bbc('0x40')](_0x1a8e7a,!0x0)&&_0x35f496[_0x3bbc('0x23')](_0x388fab[_0x3bbc('0x37')]+':'+_0x388fab[_0x3bbc('0x46')]['id']),_0x553f20['containsRange'](_0x490054,!0x0)&&_0x4c2f65['add'](_0x388fab[_0x3bbc('0x37')]+':'+_0x388fab['author']['id']);if(_0x35f496['size']!=_0x4c2f65[_0x3bbc('0x3')])return!0x1;for(const _0x2a6da4 of _0x35f496)if(!_0x4c2f65[_0x3bbc('0x3f')](_0x2a6da4))return!0x1;return!0x0;}}
23
+ const _0x4a1a=['*Split\x20cell:*\x20vertically','containsRange','_descriptionFactory','type','splitTableCellHorizontally','mergeTableCellRight','mergeTableCells','createRangeOn','_tablePostFixingSubtypes','insertion','isEnabled','_areMergableCells','execute','change','add','mergeTableCellDown','commandName','fromRange','plugins','cell','TableUtils','tableCell','commands','registerCustomCallback','from','map','_areSelectedCellsMergable','selection','stop','size','getSuggestions','TableEditing','direction','splitTableCellVertically','mergeTableCellUp','createTableWalker','findAncestor','find','highest','author','document','get','setSelection','push','format','filter','set:isEnabled','accept','*Merge\x20cells*','mergeTableCellLeft','formatBlock','getRanges','_isForcedDefaultExecutionBlock','getFirstPosition','TrackChangesEditing','requires','length','afterInit','registerDescriptionCallback','_suggestionFactory','table','element','markMultiRangeBlockFormat','getCellLocation','getSelectionAffectedTableCells','root','enableCommand','markBlockFormat','locale','deletion','forceDefaultExecution','value','editor','trackChanges','model','getAncestors','horizontally'];(function(_0x4ecbbf,_0x4a1a11){const _0x4abf47=function(_0x320df0){while(--_0x320df0){_0x4ecbbf['push'](_0x4ecbbf['shift']());}};_0x4abf47(++_0x4a1a11);}(_0x4a1a,0x1af));const _0x4abf=function(_0x4ecbbf,_0x4a1a11){_0x4ecbbf=_0x4ecbbf-0x0;let _0x4abf47=_0x4a1a[_0x4ecbbf];return _0x4abf47;};import{Plugin as _0x4afcfd}from'ckeditor5/src/core.js';import _0x239696 from'./table.js';import{LiveRange as _0x40dfd3}from'ckeditor5/src/engine.js';import{getTranslation as _0x367979}from'../utils/common-translations.js';export default class dt extends _0x4afcfd{static get[_0x4abf('0x9')](){return[_0x239696];}[_0x4abf('0xb')](){const _0x33911f=this['editor'],_0x2dd53e=_0x33911f['model'][_0x4abf('0x47')][_0x4abf('0x3a')],_0x498140=_0x33911f[_0x4abf('0x16')];if(!_0x33911f['plugins']['has'](_0x4abf('0x3e')))return;const _0x1ca0b3=_0x33911f[_0x4abf('0x31')]['get'](_0x4abf('0x8')),_0x741136=_0x33911f[_0x4abf('0x31')][_0x4abf('0x48')](_0x4abf('0x33')),_0x54a3c3=_0x33911f[_0x4abf('0x31')]['get'](_0x239696);_0x54a3c3[_0x4abf('0x27')][_0x4abf('0x4a')](_0x4abf('0x25')),_0x1ca0b3[_0x4abf('0x14')]('mergeTableCells',()=>{const _0x273ae1=_0x741136[_0x4abf('0x12')](_0x33911f[_0x4abf('0x1c')]['document'][_0x4abf('0x3a')]);_0x33911f[_0x4abf('0x1c')][_0x4abf('0x2c')](()=>{_0x1ca0b3['markMultiRangeBlockFormat'](_0x273ae1,{'commandName':_0x4abf('0x25'),'commandParams':[]},[],_0x4abf('0x25'));});}),_0x33911f['commands'][_0x4abf('0x48')](_0x4abf('0x25'))['on'](_0x4abf('0x2b'),(_0x56bd24,_0x2a56c1)=>{_0x33911f[_0x4abf('0x35')]['get'](_0x4abf('0x1b'))[_0x4abf('0x19')]&&(_0x2a56c1[_0x4abf('0xa')]>0x0&&_0x2a56c1[_0x2a56c1[_0x4abf('0xa')]-0x1]&&_0x2a56c1[_0x2a56c1[_0x4abf('0xa')]-0x1][_0x4abf('0x18')]||_0x1ca0b3[_0x4abf('0x6')]||this[_0x4abf('0x39')]()||_0x56bd24[_0x4abf('0x3b')]());},{'priority':_0x4abf('0x45')});for(const _0x1c047d of[_0x4abf('0x41'),_0x4abf('0x24'),'mergeTableCellDown',_0x4abf('0x3')]){const _0x493120=_0x33911f[_0x4abf('0x35')]['get'](_0x1c047d);_0x1ca0b3['enableCommand'](_0x1c047d,()=>{const _0x1289b2=_0x33911f[_0x4abf('0x1c')][_0x4abf('0x47')]['selection'][_0x4abf('0x7')]()[_0x4abf('0x1d')]()[_0x4abf('0x44')](_0x574056=>_0x574056['is']('element',_0x4abf('0x34'))),_0x248b5f=_0x493120['value'];_0x33911f[_0x4abf('0x1c')]['change'](()=>{_0x1ca0b3[_0x4abf('0x10')]([_0x1289b2,_0x248b5f],{'commandName':_0x4abf('0x25'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x154739 of[_0x4abf('0x40'),_0x4abf('0x23')]){const _0x13fb34=_0x33911f[_0x4abf('0x35')][_0x4abf('0x48')](_0x154739);_0x1ca0b3[_0x4abf('0x14')](_0x154739,()=>{const _0xf34f65=_0x741136['getSelectionAffectedTableCells'](_0x33911f[_0x4abf('0x1c')][_0x4abf('0x47')][_0x4abf('0x3a')])[0x0],_0x28b77e=_0xf34f65[_0x4abf('0x43')](_0x4abf('0xe')),{column:_0x23a863,row:_0x2377e7}=_0x741136[_0x4abf('0x11')](_0xf34f65);let _0xf36533=[];if(_0x4abf('0x1e')==_0x13fb34[_0x4abf('0x3f')]){const _0x34bcfa=_0x741136[_0x4abf('0x42')](_0x28b77e,{'startRow':_0x2377e7,'endRow':_0x2377e7,'includeAllSlots':!0x0});_0xf36533=Array['from'](_0x34bcfa)[_0x4abf('0x38')](_0x3b69d1=>_0x3b69d1[_0x4abf('0x32')]);}else{const _0x4e0a96=_0x741136['createTableWalker'](_0x28b77e,{'column':_0x23a863,'includeAllSlots':!0x0});_0xf36533=Array[_0x4abf('0x37')](_0x4e0a96)['map'](_0x3c4014=>_0x3c4014[_0x4abf('0x32')]);}_0x33911f[_0x4abf('0x1c')]['change'](_0x34a30f=>{_0x1ca0b3[_0x4abf('0x15')](_0x34a30f[_0x4abf('0x26')](_0xf34f65),{'commandName':_0x154739,'commandParams':[]},_0xf36533,_0x154739);});});}_0x1ca0b3[_0x4abf('0x21')][_0x4abf('0xc')](_0x5a673c=>{const {data:_0x221a35}=_0x5a673c;if(_0x221a35)return _0x4abf('0x25')==_0x221a35['commandName']?{'type':_0x4abf('0x4b'),'content':_0x367979(_0x498140,_0x4abf('0x2'))}:void 0x0;}),_0x1ca0b3[_0x4abf('0x21')]['registerDescriptionCallback'](_0x1de119=>{const {data:_0x2b02b5}=_0x1de119;if(_0x2b02b5)return _0x4abf('0x40')==_0x2b02b5[_0x4abf('0x2f')]?{'type':_0x4abf('0x4b'),'content':_0x367979(_0x498140,_0x4abf('0x1f'))}:'splitTableCellHorizontally'==_0x2b02b5[_0x4abf('0x2f')]?{'type':_0x4abf('0x4b'),'content':_0x367979(_0x498140,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x2fef56=_0x54a3c3['_acceptFormatSuggestionCallbackFactory']();for(const _0xebb17f of['mergeTableCellUp',_0x4abf('0x24'),_0x4abf('0x2e'),_0x4abf('0x3')])_0x1ca0b3['_suggestionFactory']['registerCustomCallback'](_0x4abf('0x4'),_0xebb17f,'accept',_0x2fef56);for(const _0x33961b of['splitTableCellVertically',_0x4abf('0x23')])_0x1ca0b3[_0x4abf('0xd')][_0x4abf('0x36')]('formatBlock',_0x33961b,_0x4abf('0x1'),_0x2fef56);_0x1ca0b3[_0x4abf('0xd')][_0x4abf('0x36')]('formatBlock',_0x4abf('0x25'),_0x4abf('0x1'),_0x15de6a=>{_0x33911f[_0x4abf('0x1c')][_0x4abf('0x2c')](_0x407ed7=>{const _0x24ac3c=Array[_0x4abf('0x37')](_0x2dd53e[_0x4abf('0x5')]())['map'](_0x1e73d8=>_0x40dfd3[_0x4abf('0x30')](_0x1e73d8));_0x407ed7['setSelection'](_0x15de6a),_0x33911f[_0x4abf('0x35')]['get']('mergeTableCells')['refresh'](),_0x33911f[_0x4abf('0x2b')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2a0cc4=_0x24ac3c[_0x4abf('0x4c')](_0x41d1d4=>'$graveyard'!=_0x41d1d4[_0x4abf('0x13')]['rootName']);_0x2a0cc4[_0x4abf('0xa')]>0x0&&_0x407ed7[_0x4abf('0x49')](_0x2a0cc4);for(const _0x43356b of _0x24ac3c)_0x43356b['detach']();});});for(const _0x57281d of[_0x4abf('0x41'),'mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4bae0a=_0x33911f[_0x4abf('0x35')][_0x4abf('0x48')](_0x57281d);_0x4bae0a['on'](_0x4abf('0x0'),(_0x49d99d,_0x10e259,_0x1c6bc6)=>{if(_0x1c6bc6){const _0x41cc34=_0x33911f[_0x4abf('0x1c')][_0x4abf('0x47')][_0x4abf('0x3a')][_0x4abf('0x7')]()[_0x4abf('0x1d')]()[_0x4abf('0x44')](_0x3a9c27=>_0x3a9c27['is'](_0x4abf('0xf'),'tableCell'));this[_0x4abf('0x2a')](_0x4bae0a[_0x4abf('0x19')],_0x41cc34)||(_0x49d99d['return']=!0x1,_0x49d99d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xb8950e=this[_0x4abf('0x1a')]['commands'][_0x4abf('0x48')](_0x4abf('0x25')),_0x45dbff=this[_0x4abf('0x1a')][_0x4abf('0x31')]['get']('TableUtils');if(!_0xb8950e[_0x4abf('0x29')])return!0x1;const _0x3b038c=_0x45dbff[_0x4abf('0x12')](this['editor'][_0x4abf('0x1c')][_0x4abf('0x47')][_0x4abf('0x3a')]);for(const _0x3b4e4c of _0x3b038c)for(const _0x47a184 of _0x3b038c)if(_0x3b4e4c!=_0x47a184&&!this[_0x4abf('0x2a')](_0x3b4e4c,_0x47a184))return!0x1;return!0x0;}[_0x4abf('0x2a')](_0x37b68d,_0x23398a){const _0x4f45f9=this['editor'][_0x4abf('0x31')]['get'](_0x4abf('0x8')),_0x4c76aa=this[_0x4abf('0x1a')][_0x4abf('0x1c')]['createRangeOn'](_0x37b68d),_0x122bfd=this[_0x4abf('0x1a')]['model'][_0x4abf('0x26')](_0x23398a),_0x370f5a=new Set(),_0x49097f=new Set();for(const _0x456f11 of _0x4f45f9[_0x4abf('0x3d')]())if((_0x4abf('0x28')==_0x456f11[_0x4abf('0x22')]||_0x4abf('0x17')==_0x456f11['type']||_0x4abf('0x25')==_0x456f11['subType'])&&_0x456f11['isInContent'])for(const _0x7c5be5 of _0x456f11[_0x4abf('0x5')]())_0x7c5be5[_0x4abf('0x20')](_0x4c76aa,!0x0)&&_0x370f5a['add'](_0x456f11[_0x4abf('0x22')]+':'+_0x456f11[_0x4abf('0x46')]['id']),_0x7c5be5['containsRange'](_0x122bfd,!0x0)&&_0x49097f[_0x4abf('0x2d')](_0x456f11[_0x4abf('0x22')]+':'+_0x456f11[_0x4abf('0x46')]['id']);if(_0x370f5a['size']!=_0x49097f[_0x4abf('0x3c')])return!0x1;for(const _0x248655 of _0x370f5a)if(!_0x49097f['has'](_0x248655))return!0x1;return!0x0;}}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @module track-changes/integrations/tableofcontents
3
3
  */
4
- import { Plugin } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
5
  /**
6
6
  * Provides track changes plugin integration for the Table of contents feature.
7
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b59=['locale','commands','editor','afterInit','enableCommand','plugins','TrackChangesEditing','get','tableOfContents','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS'];(function(_0x37452f,_0x4b59dc){const _0x2d45a7=function(_0x279540){while(--_0x279540){_0x37452f['push'](_0x37452f['shift']());}};_0x2d45a7(++_0x4b59dc);}(_0x4b59,0x14c));const _0x2d45=function(_0x37452f,_0x4b59dc){_0x37452f=_0x37452f-0x0;let _0x2d45a7=_0x4b59[_0x37452f];return _0x2d45a7;};import{Plugin as _0x4f2880}from'ckeditor5/src/core';import{getTranslation as _0x2057eb}from'../utils/common-translations';export default class bt extends _0x4f2880{[_0x2d45('0x1')](){const _0x587e08=this[_0x2d45('0x0')];if(!_0x587e08[_0x2d45('0xa')][_0x2d45('0x5')]('insertTableOfContents'))return;_0x587e08['plugins'][_0x2d45('0x5')](_0x2d45('0x4'))[_0x2d45('0x2')]('insertTableOfContents');const _0x286dc2=_0x587e08[_0x2d45('0x3')][_0x2d45('0x5')](_0x2d45('0x4')),_0x484bca=_0x587e08[_0x2d45('0x9')];_0x286dc2['_descriptionFactory'][_0x2d45('0x7')](_0x2d45('0x6'),_0x131545=>_0x2057eb(_0x484bca,_0x2d45('0x8'),_0x131545));}}
23
+ const _0x3010=['editor','tableOfContents','plugins','_descriptionFactory','afterInit','TrackChangesEditing','enableCommand','insertTableOfContents','registerElementLabel','ELEMENT_TABLE_OF_CONTENTS','commands','get'];(function(_0x4ad10c,_0x30105b){const _0x4ca394=function(_0xd18efd){while(--_0xd18efd){_0x4ad10c['push'](_0x4ad10c['shift']());}};_0x4ca394(++_0x30105b);}(_0x3010,0x19e));const _0x4ca3=function(_0x4ad10c,_0x30105b){_0x4ad10c=_0x4ad10c-0x0;let _0x4ca394=_0x3010[_0x4ad10c];return _0x4ca394;};import{Plugin as _0xfc1bcd}from'ckeditor5/src/core.js';import{getTranslation as _0x213b1a}from'../utils/common-translations.js';export default class yt extends _0xfc1bcd{[_0x4ca3('0xa')](){const _0x52c9a8=this[_0x4ca3('0x6')];if(!_0x52c9a8[_0x4ca3('0x4')][_0x4ca3('0x5')](_0x4ca3('0x1')))return;_0x52c9a8[_0x4ca3('0x8')][_0x4ca3('0x5')](_0x4ca3('0xb'))[_0x4ca3('0x0')](_0x4ca3('0x1'));const _0x8ab408=_0x52c9a8[_0x4ca3('0x8')][_0x4ca3('0x5')](_0x4ca3('0xb')),_0x3c9f66=_0x52c9a8['locale'];_0x8ab408[_0x4ca3('0x9')][_0x4ca3('0x2')](_0x4ca3('0x7'),_0x39851f=>_0x213b1a(_0x3c9f66,_0x4ca3('0x3'),_0x39851f));}}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @module track-changes/integrations/tableproperties
3
3
  */
4
- import { Plugin, type Editor } from 'ckeditor5/src/core';
5
- import type { Range } from 'ckeditor5/src/engine';
6
- import type { default as Suggestion } from '../suggestion';
7
- import type { Description } from '../suggestiondescriptionfactory';
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
5
+ import type { Range } from 'ckeditor5/src/engine.js';
6
+ import type { default as Suggestion } from '../suggestion.js';
7
+ import type { Description } from '../suggestiondescriptionfactory.js';
8
8
  /**
9
9
  * Provides track changes plugin integration for table properties feature.
10
10
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14c9=['removeAttribute','getFirstPosition','tableProperties','getAttribute','join','tableCellPadding','getSelectionAffectedTableCells','setAttribute','tableCellBorderStyle','registerCustomCallback','tableBackgroundColor','TrackChangesEditing','handleDiscardAction','tableCellBackgroundColor','tableCellHeight','table','_suggestionFactory','tableCellHorizontalAlignment','*Format:*\x20change\x20table\x20cell\x20properties','markBlockFormat','TablePropertiesEditing','_getSuggestion','getSuggestionCallback','tableBorderStyle','enableCommand','tableBorderWidth','editor','tableCellVerticalAlignment','has','tableBorderColor','handleSuggestionDescription','*Format:*\x20change\x20table\x20properties','TrackChangesTableProperties','tableAlignment','plugins','getSuggestions','commandParams','discard','TableUtils','get','selection','format','data','registerDescriptionCallback','subType','_descriptionFactory','tableWidth','_handlePropertyChange','pluginName','document','formatBlock','tableCellProperties','getContainedElement','accept','model'];(function(_0x3d7695,_0x14c9e1){const _0x3f4b9a=function(_0x293c22){while(--_0x293c22){_0x3d7695['push'](_0x3d7695['shift']());}};_0x3f4b9a(++_0x14c9e1);}(_0x14c9,0x166));const _0x3f4b=function(_0x3d7695,_0x14c9e1){_0x3d7695=_0x3d7695-0x0;let _0x3f4b9a=_0x14c9[_0x3d7695];return _0x3f4b9a;};import{Plugin as _0x373b82}from'ckeditor5/src/core';import{getTranslation as _0x51e3c7}from'../utils/common-translations';export default class Ct extends _0x373b82{constructor(_0x2b7221){super(_0x2b7221),this[_0x3f4b('0x1d')]=[_0x3f4b('0x1'),_0x3f4b('0x32'),_0x3f4b('0x34'),_0x3f4b('0x5'),_0x3f4b('0x12'),'tableHeight',_0x3f4b('0x25')],this[_0x3f4b('0x17')]=['tableCellBorderColor',_0x3f4b('0x23'),'tableCellBorderWidth',_0x3f4b('0x20'),'tableCellWidth',_0x3f4b('0x29'),_0x3f4b('0x28'),_0x3f4b('0x2c'),_0x3f4b('0x36')];}static get[_0x3f4b('0x14')](){return _0x3f4b('0x4');}['afterInit'](){const _0x60740=this[_0x3f4b('0x35')][_0x3f4b('0x6')][_0x3f4b('0xb')](_0x3f4b('0x26'));if(this['editor'][_0x3f4b('0x6')][_0x3f4b('0x0')](_0x3f4b('0x2f'))){for(const _0x290bf8 of this[_0x3f4b('0x1d')])_0x60740[_0x3f4b('0x33')](_0x290bf8,(_0x1e25bb,_0x206162)=>{const _0x34d39a=this['editor'][_0x3f4b('0x1a')][_0x3f4b('0x15')]['selection'][_0x3f4b('0x1c')]()['findAncestor'](_0x3f4b('0x2a'));this['_handlePropertyChange'](_0x290bf8,[_0x34d39a],this['tableProperties'],_0x3f4b('0x1d'),_0x1e25bb,_0x206162);});_0x60740[_0x3f4b('0x2b')][_0x3f4b('0x24')]('formatBlock','tableProperties','accept',_0x60740[_0x3f4b('0x2b')][_0x3f4b('0x31')](_0x3f4b('0x16'),null,_0x3f4b('0x9'))),_0x60740[_0x3f4b('0x2b')][_0x3f4b('0x24')](_0x3f4b('0x16'),'tableProperties','discard',(_0x1272eb,_0x2bee15)=>this[_0x3f4b('0x27')](this['tableProperties'],_0x1272eb,_0x2bee15)),_0x60740[_0x3f4b('0x2b')][_0x3f4b('0x24')]('formatBlock','tableProperties',_0x3f4b('0x1f'),()=>!0x1);}if(this[_0x3f4b('0x35')][_0x3f4b('0x6')][_0x3f4b('0x0')]('TableCellPropertiesEditing')){for(const _0x2a75b4 of this[_0x3f4b('0x17')])_0x60740[_0x3f4b('0x33')](_0x2a75b4,(_0x9a62fb,_0x34aafd)=>{const _0x5864d8=this[_0x3f4b('0x35')][_0x3f4b('0x6')][_0x3f4b('0xb')](_0x3f4b('0xa'))[_0x3f4b('0x21')](this[_0x3f4b('0x35')][_0x3f4b('0x1a')][_0x3f4b('0x15')][_0x3f4b('0xc')]);this[_0x3f4b('0x13')](_0x2a75b4,_0x5864d8,this['tableCellProperties'],_0x3f4b('0x17'),_0x9a62fb,_0x34aafd);});_0x60740[_0x3f4b('0x2b')][_0x3f4b('0x24')](_0x3f4b('0x16'),'tableCellProperties',_0x3f4b('0x19'),_0x60740[_0x3f4b('0x2b')][_0x3f4b('0x31')](_0x3f4b('0x16'),null,_0x3f4b('0x9'))),_0x60740[_0x3f4b('0x2b')][_0x3f4b('0x24')](_0x3f4b('0x16'),_0x3f4b('0x17'),_0x3f4b('0x9'),(_0x2668c0,_0x1c482c)=>this[_0x3f4b('0x27')](this['tableCellProperties'],_0x2668c0,_0x1c482c)),_0x60740[_0x3f4b('0x2b')][_0x3f4b('0x24')](_0x3f4b('0x16'),'tableCellProperties',_0x3f4b('0x1f'),()=>!0x1);}_0x60740[_0x3f4b('0x11')][_0x3f4b('0xf')](_0xcbf4cf=>this[_0x3f4b('0x2')](_0xcbf4cf));}['_handlePropertyChange'](_0x406e81,_0x4208cf,_0x3b9fe9,_0xd3328e,_0x3e378c,_0xd03813){const _0xe3f4b7=this['editor'][_0x3f4b('0x6')][_0x3f4b('0xb')]('TrackChangesEditing');this[_0x3f4b('0x35')][_0x3f4b('0x1a')]['enqueueChange'](_0xd03813['batch'],()=>{for(const _0x342e34 of _0x4208cf){if(this[_0x3f4b('0x30')](_0x342e34,_0xd3328e))_0x3e378c(_0xd03813);else{const _0x467c40={};for(const _0x12c3a7 of _0x3b9fe9){const _0x487cc6=_0x342e34[_0x3f4b('0x1e')](_0x12c3a7);void 0x0!==_0x487cc6&&(_0x467c40[_0x12c3a7]=_0x487cc6);}_0x3e378c(_0xd03813),_0xe3f4b7[_0x3f4b('0x2e')](_0x342e34,{'commandParams':[_0x467c40]},[],_0xd3328e);}}});}['handleDiscardAction'](_0x57a411,_0x4a70e8,_0x23cf15){const _0x51c225=_0x4a70e8[0x0]['start']['nodeAfter'],_0x538442=_0x23cf15[_0x3f4b('0x8')][0x0];this[_0x3f4b('0x35')]['model']['change'](_0x4b3f92=>{for(const _0x3dbdf3 of _0x57a411)void 0x0!==_0x538442[_0x3dbdf3]?_0x4b3f92[_0x3f4b('0x22')](_0x3dbdf3,_0x538442[_0x3dbdf3],_0x51c225):_0x4b3f92[_0x3f4b('0x1b')](_0x3dbdf3,_0x51c225);});}['handleSuggestionDescription'](_0x255cf1){if(_0x255cf1[_0x3f4b('0xe')])switch(_0x255cf1[_0x3f4b('0x10')]){case _0x3f4b('0x1d'):return{'type':_0x3f4b('0xd'),'content':_0x51e3c7(this[_0x3f4b('0x35')]['locale'],_0x3f4b('0x3'))};case'tableCellProperties':return{'type':_0x3f4b('0xd'),'content':_0x51e3c7(this['editor']['locale'],_0x3f4b('0x2d'))};}}[_0x3f4b('0x30')](_0x3e6df5,_0x388127){const _0x2dd5a4=this[_0x3f4b('0x35')]['plugins'][_0x3f4b('0xb')](_0x3f4b('0x26'));for(const _0x58491b of _0x2dd5a4[_0x3f4b('0x7')]({'skipNotAttached':!0x0})){const _0x189fe8=_0x58491b[_0x3f4b('0x18')]();if(_0x58491b[_0x3f4b('0x10')]===_0x388127&&_0x189fe8===_0x3e6df5)return _0x58491b;}return null;}}
23
+ const _0x32ff=['enqueueChange','plugins','tableCellVerticalAlignment','tableCellWidth','change','format','TableUtils','TableCellPropertiesEditing','removeAttribute','data','getSelectionAffectedTableCells','join','tableCellBorderWidth','_getSuggestion','*Format:*\x20change\x20table\x20cell\x20properties','TrackChangesEditing','tableBorderColor','tableCellBorderColor','commandParams','findAncestor','getSuggestionCallback','model','selection','discard','tableWidth','getContainedElement','tableCellBackgroundColor','enableCommand','document','accept','batch','has','tableCellHorizontalAlignment','tableBorderWidth','locale','tableCellProperties','TablePropertiesEditing','*Format:*\x20change\x20table\x20properties','tableProperties','formatBlock','tableCellBorderStyle','editor','handleDiscardAction','subType','nodeAfter','tableCellHeight','registerDescriptionCallback','get','registerCustomCallback','markBlockFormat','start','_suggestionFactory','tableAlignment','handleSuggestionDescription','afterInit','getAttribute','tableBorderStyle'];(function(_0x2953ff,_0x32ff92){const _0x3dd24d=function(_0x18f75){while(--_0x18f75){_0x2953ff['push'](_0x2953ff['shift']());}};_0x3dd24d(++_0x32ff92);}(_0x32ff,0x111));const _0x3dd2=function(_0x2953ff,_0x32ff92){_0x2953ff=_0x2953ff-0x0;let _0x3dd24d=_0x32ff[_0x2953ff];return _0x3dd24d;};import{Plugin as _0x1d030c}from'ckeditor5/src/core.js';import{getTranslation as _0x1ed207}from'../utils/common-translations.js';export default class At extends _0x1d030c{constructor(_0x59171d){super(_0x59171d),this[_0x3dd2('0x32')]=[_0x3dd2('0x1c'),_0x3dd2('0xb'),_0x3dd2('0x2d'),_0x3dd2('0x7'),_0x3dd2('0x24'),'tableHeight','tableBackgroundColor'],this[_0x3dd2('0x2f')]=[_0x3dd2('0x1d'),_0x3dd2('0x34'),_0x3dd2('0x18'),'tableCellPadding',_0x3dd2('0xf'),_0x3dd2('0x0'),_0x3dd2('0x26'),_0x3dd2('0x2c'),_0x3dd2('0xe')];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x3dd2('0x9')](){const _0x52c8db=this['editor']['plugins'][_0x3dd2('0x2')](_0x3dd2('0x1b'));if(this['editor'][_0x3dd2('0xd')][_0x3dd2('0x2b')](_0x3dd2('0x30'))){for(const _0x1fc81a of this[_0x3dd2('0x32')])_0x52c8db[_0x3dd2('0x27')](_0x1fc81a,(_0x56a89c,_0x18c0cf)=>{const _0x11d1d9=this['editor'][_0x3dd2('0x21')][_0x3dd2('0x28')][_0x3dd2('0x22')]['getFirstPosition']()[_0x3dd2('0x1f')]('table');this['_handlePropertyChange'](_0x1fc81a,[_0x11d1d9],this[_0x3dd2('0x32')],'tableProperties',_0x56a89c,_0x18c0cf);});_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x29'),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x20')]('formatBlock',null,_0x3dd2('0x23'))),_0x52c8db['_suggestionFactory']['registerCustomCallback'](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x23'),(_0x886842,_0x45a46c)=>this[_0x3dd2('0x36')](this[_0x3dd2('0x32')],_0x886842,_0x45a46c)),_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x32'),_0x3dd2('0x17'),()=>!0x1);}if(this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2b')](_0x3dd2('0x13'))){for(const _0x4a0b64 of this[_0x3dd2('0x2f')])_0x52c8db['enableCommand'](_0x4a0b64,(_0x1373e3,_0x178c7d)=>{const _0x28c52e=this[_0x3dd2('0x35')]['plugins'][_0x3dd2('0x2')](_0x3dd2('0x12'))[_0x3dd2('0x16')](this['editor'][_0x3dd2('0x21')][_0x3dd2('0x28')][_0x3dd2('0x22')]);this['_handlePropertyChange'](_0x4a0b64,_0x28c52e,this['tableCellProperties'],_0x3dd2('0x2f'),_0x1373e3,_0x178c7d);});_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x29'),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x20')](_0x3dd2('0x33'),null,_0x3dd2('0x23'))),_0x52c8db[_0x3dd2('0x6')][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x23'),(_0x1b54f7,_0x5dba55)=>this[_0x3dd2('0x36')](this[_0x3dd2('0x2f')],_0x1b54f7,_0x5dba55)),_0x52c8db['_suggestionFactory'][_0x3dd2('0x3')](_0x3dd2('0x33'),_0x3dd2('0x2f'),_0x3dd2('0x17'),()=>!0x1);}_0x52c8db['_descriptionFactory'][_0x3dd2('0x1')](_0x5bf3a9=>this[_0x3dd2('0x8')](_0x5bf3a9));}['_handlePropertyChange'](_0x180f7d,_0x3de1b2,_0x67a871,_0x2da29d,_0x4124f8,_0x286251){const _0x444ae5=this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2')](_0x3dd2('0x1b'));this['editor']['model'][_0x3dd2('0xc')](_0x286251[_0x3dd2('0x2a')],()=>{for(const _0x2f076a of _0x3de1b2){if(this['_getSuggestion'](_0x2f076a,_0x2da29d))_0x4124f8(_0x286251);else{const _0xdd942={};for(const _0x45176a of _0x67a871){const _0x22e2db=_0x2f076a[_0x3dd2('0xa')](_0x45176a);void 0x0!==_0x22e2db&&(_0xdd942[_0x45176a]=_0x22e2db);}_0x4124f8(_0x286251),_0x444ae5[_0x3dd2('0x4')](_0x2f076a,{'commandParams':[_0xdd942]},[],_0x2da29d);}}});}[_0x3dd2('0x36')](_0x2d8975,_0x39caee,_0x2b609a){const _0xbb3215=_0x39caee[0x0][_0x3dd2('0x5')][_0x3dd2('0x38')],_0x49ba5a=_0x2b609a[_0x3dd2('0x1e')][0x0];this[_0x3dd2('0x35')][_0x3dd2('0x21')][_0x3dd2('0x10')](_0x17aed5=>{for(const _0x35a85a of _0x2d8975)void 0x0!==_0x49ba5a[_0x35a85a]?_0x17aed5['setAttribute'](_0x35a85a,_0x49ba5a[_0x35a85a],_0xbb3215):_0x17aed5[_0x3dd2('0x14')](_0x35a85a,_0xbb3215);});}[_0x3dd2('0x8')](_0xd3ddc0){if(_0xd3ddc0[_0x3dd2('0x15')])switch(_0xd3ddc0[_0x3dd2('0x37')]){case _0x3dd2('0x32'):return{'type':_0x3dd2('0x11'),'content':_0x1ed207(this[_0x3dd2('0x35')]['locale'],_0x3dd2('0x31'))};case _0x3dd2('0x2f'):return{'type':_0x3dd2('0x11'),'content':_0x1ed207(this[_0x3dd2('0x35')][_0x3dd2('0x2e')],_0x3dd2('0x1a'))};}}[_0x3dd2('0x19')](_0xe5dceb,_0x2b9863){const _0x3cc5f5=this[_0x3dd2('0x35')][_0x3dd2('0xd')][_0x3dd2('0x2')](_0x3dd2('0x1b'));for(const _0x12130e of _0x3cc5f5['getSuggestions']({'skipNotAttached':!0x0})){const _0x43b6e1=_0x12130e[_0x3dd2('0x25')]();if(_0x12130e[_0x3dd2('0x37')]===_0x2b9863&&_0x43b6e1===_0xe5dceb)return _0x12130e;}return null;}}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @module track-changes/integrations/template
3
3
  */
4
- import { Plugin } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
5
  /**
6
6
  * Provides track changes plugin integration for template feature.
7
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16da=['Template','has','plugins','TrackChangesEditing','get','editor','afterInit'];(function(_0x8fd1fc,_0x16da9a){const _0x3f503d=function(_0x405fe1){while(--_0x405fe1){_0x8fd1fc['push'](_0x8fd1fc['shift']());}};_0x3f503d(++_0x16da9a);}(_0x16da,0x89));const _0x3f50=function(_0x8fd1fc,_0x16da9a){_0x8fd1fc=_0x8fd1fc-0x0;let _0x3f503d=_0x16da[_0x8fd1fc];return _0x3f503d;};import{Plugin as _0x57b34d}from'ckeditor5/src/core';export default class yt extends _0x57b34d{[_0x3f50('0x2')](){const _0x2650ee=this[_0x3f50('0x1')];_0x2650ee[_0x3f50('0x5')][_0x3f50('0x4')](_0x3f50('0x3'))&&_0x2650ee['plugins'][_0x3f50('0x0')](_0x3f50('0x6'))['enableCommand']('insertTemplate');}}
23
+ const _0xf308=['plugins','insertTemplate','has','editor','enableCommand'];(function(_0x45c5cd,_0xf308f7){const _0x4f4ffc=function(_0x53d8c6){while(--_0x53d8c6){_0x45c5cd['push'](_0x45c5cd['shift']());}};_0x4f4ffc(++_0xf308f7);}(_0xf308,0x189));const _0x4f4f=function(_0x45c5cd,_0xf308f7){_0x45c5cd=_0x45c5cd-0x0;let _0x4f4ffc=_0xf308[_0x45c5cd];return _0x4f4ffc;};import{Plugin as _0x11ea80}from'ckeditor5/src/core.js';export default class jt extends _0x11ea80{['afterInit'](){const _0x2ba9ed=this[_0x4f4f('0x0')];_0x2ba9ed[_0x4f4f('0x2')][_0x4f4f('0x4')]('Template')&&_0x2ba9ed[_0x4f4f('0x2')]['get']('TrackChangesEditing')[_0x4f4f('0x1')](_0x4f4f('0x3'));}}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @module track-changes/integrations/title
3
3
  */
4
- import { Plugin } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
5
  /**
6
6
  * Provides track changes plugin integration for title feature.
7
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ff7=['forward','title-content','ELEMENT_TITLE','registerPostFixer','TrackChangesEditing','plugins','schema','isTouching','locale','Title','isEqual','suggestion','has','model','getNearestSelectionRange','getChangedMarkers','isCollapsed','element','document','start','get','end','differ','nodeBefore','registerElementLabel','removeMarker'];(function(_0x2c0521,_0x1ff778){const _0x460ad9=function(_0x4e84ed){while(--_0x4e84ed){_0x2c0521['push'](_0x2c0521['shift']());}};_0x460ad9(++_0x1ff778);}(_0x1ff7,0x11d));const _0x460a=function(_0x2c0521,_0x1ff778){_0x2c0521=_0x2c0521-0x0;let _0x460ad9=_0x1ff7[_0x2c0521];return _0x460ad9;};import{Plugin as _0x57b0fd}from'ckeditor5/src/core';import{getTranslation as _0x54df50}from'../utils/common-translations';export default class St extends _0x57b0fd{['afterInit'](){const _0x1194e2=this['editor'];if(!_0x1194e2[_0x460a('0x6')][_0x460a('0xd')](_0x460a('0xa')))return;const _0x32c74f=_0x1194e2[_0x460a('0x6')][_0x460a('0x15')](_0x460a('0x5'));_0x32c74f['_descriptionFactory'][_0x460a('0x19')](_0x460a('0x2'),()=>_0x54df50(_0x1194e2[_0x460a('0x9')],_0x460a('0x3'))),_0x1194e2[_0x460a('0xe')][_0x460a('0x13')][_0x460a('0x4')](_0x23b8c4=>{let _0x47f9d0=!0x1;const _0xfb881c=Array['from'](_0x1194e2['model'][_0x460a('0x13')][_0x460a('0x17')][_0x460a('0x10')]());for(const {name:_0x3ceb8f,data:_0x4d2981}of _0xfb881c){const {group:_0x257f4d}=_0x32c74f['_splitMarkerName'](_0x3ceb8f);if(_0x460a('0xc')!==_0x257f4d||!_0x4d2981['newRange'])continue;const _0xadc7d9=_0x4d2981['newRange'],_0x31dd1b=_0xadc7d9['end'][_0x460a('0x18')];if(!_0x31dd1b||!_0x31dd1b['is'](_0x460a('0x12'),_0x460a('0x2')))continue;if(!_0xadc7d9[_0x460a('0x14')][_0x460a('0x8')](_0xadc7d9[_0x460a('0x16')]))continue;const _0x13274c=_0x1194e2['model'][_0x460a('0x7')][_0x460a('0xf')](_0xadc7d9[_0x460a('0x16')],_0x460a('0x1'));if(_0x13274c&&_0x13274c[_0x460a('0x11')]){const _0x5f3d74=_0x23b8c4['createRange'](_0xadc7d9[_0x460a('0x14')],_0x13274c[_0x460a('0x14')]);_0x5f3d74[_0x460a('0xb')](_0xadc7d9)||(_0x23b8c4['updateMarker'](_0x3ceb8f,{'range':_0x5f3d74}),_0x47f9d0=!0x0);}_0x47f9d0||(_0x23b8c4[_0x460a('0x0')](_0x3ceb8f),_0x47f9d0=!0x0);}return _0x47f9d0;});}}
23
+ const _0x45c5=['start','createRange','_splitMarkerName','from','plugins','end','isCollapsed','newRange','document','suggestion','afterInit','forward','removeMarker','ELEMENT_TITLE','title-content','updateMarker','model','differ','isEqual','getChangedMarkers','Title','registerPostFixer','has','_descriptionFactory','getNearestSelectionRange','TrackChangesEditing','element','editor'];(function(_0xaef7c4,_0x45c529){const _0x1baa41=function(_0x4974d7){while(--_0x4974d7){_0xaef7c4['push'](_0xaef7c4['shift']());}};_0x1baa41(++_0x45c529);}(_0x45c5,0x91));const _0x1baa=function(_0xaef7c4,_0x45c529){_0xaef7c4=_0xaef7c4-0x0;let _0x1baa41=_0x45c5[_0xaef7c4];return _0x1baa41;};import{Plugin as _0x71d027}from'ckeditor5/src/core.js';import{getTranslation as _0x2eba42}from'../utils/common-translations.js';export default class bt extends _0x71d027{[_0x1baa('0x5')](){const _0x432c6b=this[_0x1baa('0x16')];if(!_0x432c6b[_0x1baa('0x1b')][_0x1baa('0x11')](_0x1baa('0xf')))return;const _0x3c39c1=_0x432c6b[_0x1baa('0x1b')]['get'](_0x1baa('0x14'));_0x3c39c1[_0x1baa('0x12')]['registerElementLabel'](_0x1baa('0x9'),()=>_0x2eba42(_0x432c6b['locale'],_0x1baa('0x8'))),_0x432c6b[_0x1baa('0xb')][_0x1baa('0x3')][_0x1baa('0x10')](_0x2e8af7=>{let _0xa09919=!0x1;const _0x5b7064=Array[_0x1baa('0x1a')](_0x432c6b[_0x1baa('0xb')][_0x1baa('0x3')][_0x1baa('0xc')][_0x1baa('0xe')]());for(const {name:_0x31fb5e,data:_0x226c61}of _0x5b7064){const {group:_0x18e7eb}=_0x3c39c1[_0x1baa('0x19')](_0x31fb5e);if(_0x1baa('0x4')!==_0x18e7eb||!_0x226c61[_0x1baa('0x2')])continue;const _0x37bda3=_0x226c61['newRange'],_0x2339b3=_0x37bda3[_0x1baa('0x0')]['nodeBefore'];if(!_0x2339b3||!_0x2339b3['is'](_0x1baa('0x15'),_0x1baa('0x9')))continue;if(!_0x37bda3[_0x1baa('0x17')]['isTouching'](_0x37bda3[_0x1baa('0x0')]))continue;const _0x1ca4a1=_0x432c6b[_0x1baa('0xb')]['schema'][_0x1baa('0x13')](_0x37bda3[_0x1baa('0x0')],_0x1baa('0x6'));if(_0x1ca4a1&&_0x1ca4a1[_0x1baa('0x1')]){const _0x1872a4=_0x2e8af7[_0x1baa('0x18')](_0x37bda3[_0x1baa('0x17')],_0x1ca4a1['start']);_0x1872a4[_0x1baa('0xd')](_0x37bda3)||(_0x2e8af7[_0x1baa('0xa')](_0x31fb5e,{'range':_0x1872a4}),_0xa09919=!0x0);}_0xa09919||(_0x2e8af7[_0x1baa('0x7')](_0x31fb5e),_0xa09919=!0x0);}return _0xa09919;});}}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @module track-changes/integrations/undo
3
3
  */
4
- import { Plugin } from 'ckeditor5/src/core';
4
+ import { Plugin } from 'ckeditor5/src/core.js';
5
5
  /**
6
6
  * Provides track changes plugin integration for {@link module:undo/undo~Undo undo feature}.
7
7
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dbc=['UndoEditing','undo','redo','editor','get','afterInit','plugins','has','enableCommand'];(function(_0x486b22,_0x2dbcaf){const _0x5da1da=function(_0x590d9a){while(--_0x590d9a){_0x486b22['push'](_0x486b22['shift']());}};_0x5da1da(++_0x2dbcaf);}(_0x2dbc,0x194));const _0x5da1=function(_0x486b22,_0x2dbcaf){_0x486b22=_0x486b22-0x0;let _0x5da1da=_0x2dbc[_0x486b22];return _0x5da1da;};import{Plugin as _0x2ee034}from'ckeditor5/src/core';export default class It extends _0x2ee034{[_0x5da1('0x6')](){const _0x276c45=this[_0x5da1('0x4')],_0x57ab1e=_0x276c45[_0x5da1('0x7')][_0x5da1('0x5')]('TrackChangesEditing');_0x276c45['plugins'][_0x5da1('0x8')](_0x5da1('0x1'))&&(_0x57ab1e[_0x5da1('0x0')](_0x5da1('0x2')),_0x57ab1e[_0x5da1('0x0')](_0x5da1('0x3')));}}
23
+ const _0x458a=['enableCommand','afterInit','editor','UndoEditing','TrackChangesEditing','redo','undo','has','plugins','get'];(function(_0x3e110e,_0x458a67){const _0x29bfa3=function(_0x32e646){while(--_0x32e646){_0x3e110e['push'](_0x3e110e['shift']());}};_0x29bfa3(++_0x458a67);}(_0x458a,0x168));const _0x29bf=function(_0x3e110e,_0x458a67){_0x3e110e=_0x3e110e-0x0;let _0x29bfa3=_0x458a[_0x3e110e];return _0x29bfa3;};import{Plugin as _0x4b1596}from'ckeditor5/src/core.js';export default class St extends _0x4b1596{[_0x29bf('0x1')](){const _0xd1994e=this[_0x29bf('0x2')],_0x58bdc9=_0xd1994e[_0x29bf('0x8')][_0x29bf('0x9')](_0x29bf('0x4'));_0xd1994e['plugins'][_0x29bf('0x7')](_0x29bf('0x3'))&&(_0x58bdc9['enableCommand'](_0x29bf('0x6')),_0x58bdc9[_0x29bf('0x0')](_0x29bf('0x5')));}}
@@ -1,6 +1,6 @@
1
- import type { Editor } from 'ckeditor5/src/core';
2
- import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine';
3
- import type { GetCallback } from 'ckeditor5/src/utils';
1
+ import type { Editor } from 'ckeditor5/src/core.js';
2
+ import type { Range, Model, Element, DowncastAddMarkerEvent } from 'ckeditor5/src/engine.js';
3
+ import type { GetCallback } from 'ckeditor5/src/utils.js';
4
4
  /**
5
5
  * Searches given `range` and returns all sub-ranges containing items with given `attributeKey`.
6
6
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x195b=['model','previousPosition','createUIElement','markerRange','type','getAttribute','bindElementToMarker','getCustomProperty','isContent','toViewElement','test','consumable','markerName','push','element','TrackChangesEditing','nextSibling','createRangeOn','item','insert','isLimit','get','getItems','addHighlight','listItem','isBlock','schema','activeMarkers','includes','toViewPosition','writer','mapper','addClass'];(function(_0xdf3716,_0x195b78){const _0x461594=function(_0x577449){while(--_0x577449){_0xdf3716['push'](_0xdf3716['shift']());}};_0x461594(++_0x195b78);}(_0x195b,0x9e));const _0x4615=function(_0xdf3716,_0x195b78){_0xdf3716=_0xdf3716-0x0;let _0x461594=_0x195b[_0xdf3716];return _0x461594;};export function getRangesWithAttribute(_0x3a47dd,_0x5dff33,_0x9f2a02){const _0x20442c=[];for(const _0x1ecb09 of _0x5dff33[_0x4615('0x1d')]())_0x1ecb09['hasAttribute'](_0x3a47dd)&&_0x20442c[_0x4615('0x14')](_0x9f2a02[_0x4615('0x18')](_0x1ecb09));return _0x20442c;}export function getElementsAffectedByListItemRename(_0x486951){const _0x578529=[];if(_0x486951['is'](_0x4615('0x15'),_0x4615('0x1f'))){let _0xb1836c=_0x486951[_0x4615('0x17')];for(;_0xb1836c&&_0xb1836c['is'](_0x4615('0x15'),'listItem')&&_0xb1836c[_0x4615('0xc')]('listIndent')>0x0;)_0x578529[_0x4615('0x14')](_0xb1836c),_0xb1836c=_0xb1836c[_0x4615('0x17')];}return _0x578529;}export function downcastSplitMergeMarker(_0x44311a,_0x1b4ca9,{showActiveMarker:_0x46aefe=!0x0}={}){const _0x1c0b5c=_0x44311a['plugins'][_0x4615('0x1c')](_0x4615('0x16'));return(_0x2909e3,_0x3fa75b,_0x1efe03)=>{if(!_0x1efe03[_0x4615('0x12')][_0x4615('0x11')](_0x3fa75b[_0x4615('0xa')],_0x2909e3['name']))return;const _0x56537e=_0x3fa75b[_0x4615('0xa')]['getWalker'](),_0x1596d3=_0x3fa75b['markerRange']['start'],_0x435c0b=_0x44311a[_0x4615('0x7')][_0x4615('0x0')];let _0x16c201=null,_0x3f77c1=null,_0x1b9013=!0x1,_0x2ca363=!0x1;for(const _0x235316 of _0x56537e){const _0x4ae464=_0x235316[_0x4615('0x19')];_0x1b9013=_0x1b9013||_0x435c0b[_0x4615('0xf')](_0x4ae464);const _0x1e670d=_0x1efe03[_0x4615('0x5')][_0x4615('0x10')](_0x4ae464);if(_0x1e670d&&_0x1e670d[_0x4615('0xe')](_0x4615('0x1e')))return;'elementEnd'==_0x235316[_0x4615('0xb')]&&(_0x435c0b[_0x4615('0x20')](_0x4ae464)&&!_0x435c0b[_0x4615('0x1b')](_0x4ae464)&&(_0x4ae464['nextSibling']||_0x1596d3['isAtEnd']?_0x16c201&&_0x16c201['parent']==_0x4ae464||(_0x16c201=_0x4ae464,_0x2f1b6e(_0x235316[_0x4615('0x8')]),_0x2ca363=!0x0):_0x3f77c1=_0x3f77c1||_0x235316[_0x4615('0x8')]));}function _0x2f1b6e(_0x4a423e){const _0x3dd16e=_0x1efe03[_0x4615('0x4')][_0x4615('0x9')]('span',{'class':'ck-suggestion-marker-'+_0x1b4ca9}),_0x2bc5e0=_0x1efe03[_0x4615('0x5')][_0x4615('0x3')](_0x4a423e);_0x46aefe&&_0x1c0b5c[_0x4615('0x1')][_0x4615('0x2')](_0x3fa75b[_0x4615('0x13')])&&_0x1efe03[_0x4615('0x4')][_0x4615('0x6')]('ck-suggestion-marker--active',_0x3dd16e),_0x1efe03[_0x4615('0x4')][_0x4615('0x1a')](_0x2bc5e0,_0x3dd16e),_0x1efe03[_0x4615('0x5')][_0x4615('0xd')](_0x3dd16e,_0x3fa75b[_0x4615('0x13')]);}_0x1b9013||_0x2ca363||!_0x3f77c1||_0x2f1b6e(_0x3f77c1);};}
23
+ const _0x1fc6=['nextSibling','listItem','markerName','schema','bindElementToMarker','plugins','item','activeMarkers','listIndent','getItems','TrackChangesEditing','writer','getCustomProperty','name','parent','markerRange','type','insert','hasAttribute','model','addHighlight','createUIElement','start','toViewPosition','element','includes','span','consumable','toViewElement','push','previousPosition','get','mapper'];(function(_0x4ee2d8,_0x1fc6dd){const _0x3b32b0=function(_0x357c4d){while(--_0x357c4d){_0x4ee2d8['push'](_0x4ee2d8['shift']());}};_0x3b32b0(++_0x1fc6dd);}(_0x1fc6,0x1af));const _0x3b32=function(_0x4ee2d8,_0x1fc6dd){_0x4ee2d8=_0x4ee2d8-0x0;let _0x3b32b0=_0x1fc6[_0x4ee2d8];return _0x3b32b0;};export function getRangesWithAttribute(_0x59644b,_0x550c2c,_0x4347ac){const _0x2eceb1=[];for(const _0x1465b8 of _0x550c2c[_0x3b32('0x7')]())_0x1465b8[_0x3b32('0x10')](_0x59644b)&&_0x2eceb1['push'](_0x4347ac['createRangeOn'](_0x1465b8));return _0x2eceb1;}export function getElementsAffectedByListItemRename(_0x3105c5){const _0xab1249=[];if(_0x3105c5['is']('element',_0x3b32('0x20'))){let _0x57fdc3=_0x3105c5[_0x3b32('0x1f')];for(;_0x57fdc3&&_0x57fdc3['is'](_0x3b32('0x16'),_0x3b32('0x20'))&&_0x57fdc3['getAttribute'](_0x3b32('0x6'))>0x0;)_0xab1249[_0x3b32('0x1b')](_0x57fdc3),_0x57fdc3=_0x57fdc3[_0x3b32('0x1f')];}return _0xab1249;}export function downcastSplitMergeMarker(_0x3f44ce,_0x2dbbc3,{showActiveMarker:_0x2ebc90=!0x0}={}){const _0x36bf24=_0x3f44ce[_0x3b32('0x3')][_0x3b32('0x1d')](_0x3b32('0x8'));return(_0x26daab,_0x163a9a,_0x34d6a1)=>{if(!_0x34d6a1[_0x3b32('0x19')]['test'](_0x163a9a['markerRange'],_0x26daab[_0x3b32('0xb')]))return;const _0x1a6b7b=_0x163a9a[_0x3b32('0xd')]['getWalker'](),_0x2ed6f6=_0x163a9a['markerRange'][_0x3b32('0x14')],_0x9fc509=_0x3f44ce[_0x3b32('0x11')][_0x3b32('0x1')];let _0x37f4e1=null,_0x2c855c=null,_0x4fbdbb=!0x1,_0x575a1f=!0x1;for(const _0x3c50b8 of _0x1a6b7b){const _0x5abead=_0x3c50b8[_0x3b32('0x4')];_0x4fbdbb=_0x4fbdbb||_0x9fc509['isContent'](_0x5abead);const _0xd10fc5=_0x34d6a1['mapper'][_0x3b32('0x1a')](_0x5abead);if(_0xd10fc5&&_0xd10fc5[_0x3b32('0xa')](_0x3b32('0x12')))return;'elementEnd'==_0x3c50b8[_0x3b32('0xe')]&&(_0x9fc509['isBlock'](_0x5abead)&&!_0x9fc509['isLimit'](_0x5abead)&&(_0x5abead[_0x3b32('0x1f')]||_0x2ed6f6['isAtEnd']?_0x37f4e1&&_0x37f4e1[_0x3b32('0xc')]==_0x5abead||(_0x37f4e1=_0x5abead,_0x236e4b(_0x3c50b8[_0x3b32('0x1c')]),_0x575a1f=!0x0):_0x2c855c=_0x2c855c||_0x3c50b8[_0x3b32('0x1c')]));}function _0x236e4b(_0x17e1d9){const _0x3b95eb=_0x34d6a1[_0x3b32('0x9')][_0x3b32('0x13')](_0x3b32('0x18'),{'class':'ck-suggestion-marker-'+_0x2dbbc3}),_0x12cf01=_0x34d6a1[_0x3b32('0x1e')][_0x3b32('0x15')](_0x17e1d9);_0x2ebc90&&_0x36bf24[_0x3b32('0x5')][_0x3b32('0x17')](_0x163a9a[_0x3b32('0x0')])&&_0x34d6a1['writer']['addClass']('ck-suggestion-marker--active',_0x3b95eb),_0x34d6a1[_0x3b32('0x9')][_0x3b32('0xf')](_0x12cf01,_0x3b95eb),_0x34d6a1['mapper'][_0x3b32('0x2')](_0x3b95eb,_0x163a9a[_0x3b32('0x0')]);}_0x4fbdbb||_0x575a1f||!_0x2c855c||_0x236e4b(_0x2c855c);};}
@@ -2,13 +2,13 @@
2
2
  * @module track-changes/suggestion
3
3
  * @publicApi
4
4
  */
5
- import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine';
6
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
5
+ import { Element, type Marker, type Model, type Range, type Item } from 'ckeditor5/src/engine.js';
6
+ import type { User } from 'ckeditor5-collaboration';
7
7
  import type { CommentThread } from '@ckeditor/ckeditor5-comments';
8
- import type { FormatData } from './trackchangesediting';
8
+ import type { FormatData } from './trackchangesediting.js';
9
9
  declare const Suggestion_base: {
10
- new (): import("ckeditor5/src/utils").Observable;
11
- prototype: import("ckeditor5/src/utils").Observable;
10
+ new (): import("ckeditor5/src/utils.js").Observable;
11
+ prototype: import("ckeditor5/src/utils.js").Observable;
12
12
  };
13
13
  /**
14
14
  * Represents a singular suggestion that is tracked by track changes plugin.
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a20=['filter','subType','_onAccept','discard','attributes','set','next','onAccept','data','length','getFirstRange','removeMarkers','getContainedElement','getItems','isExternal','start','_saved','split','isIntersectingWithRange','isMultiRange','end','previous','removeAttribute','addRange','getAllAdjacentSuggestions','addMarkerName','decorate','author','getRange','add','from','isIntersecting','suggestion:','getMarkers','@external','_markerNames','size','markers','_onAttributesChange','getFirstMarker','reduce','push','getMultiRangeId','head','change','onDiscard','getRanges','clear','onAttributesChange','setAttribute','authoredAt','hasComments','map','_model','type','addMarker','accept','_onDiscard','commentThread','creator','removeMarker'];(function(_0x145ad7,_0x2a201d){const _0x4f4986=function(_0x5d0847){while(--_0x5d0847){_0x145ad7['push'](_0x145ad7['shift']());}};_0x4f4986(++_0x2a201d);}(_0x2a20,0xb9));const _0x4f49=function(_0x145ad7,_0x2a201d){_0x145ad7=_0x145ad7-0x0;let _0x4f4986=_0x2a20[_0x145ad7];return _0x4f4986;};import{Element as _0x4cbe0b}from'ckeditor5/src/engine';import{ObservableMixin as _0x4b1044,uid as _0x1b35aa}from'ckeditor5/src/utils';import{cloneDeep as _0x3c72df,isEqual as _0x3b76de,set as _0x26ca54,unset as _0x56c377}from'lodash-es';export default class u extends _0x4b1044(){constructor(_0x49ddb7,_0x15cb1a){super(),this['id']=_0x15cb1a['id'],this[_0x4f49('0x34')]=_0x15cb1a[_0x4f49('0x34')],this['subType']=_0x15cb1a['subType']||null,this[_0x4f49('0x19')]=_0x15cb1a[_0x4f49('0x19')],this['creator']=_0x15cb1a[_0x4f49('0x39')]||_0x15cb1a[_0x4f49('0x19')],this[_0x4f49('0xc')]=Boolean(_0x15cb1a['attributes']&&_0x15cb1a['attributes'][_0x4f49('0x20')]),this[_0x4f49('0x6')]=null,this[_0x4f49('0x33')]=_0x49ddb7,this['_onAccept']=_0x15cb1a[_0x4f49('0x5')],this[_0x4f49('0x37')]=_0x15cb1a[_0x4f49('0x2b')],this['_onAttributesChange']=_0x15cb1a[_0x4f49('0x2e')],this[_0x4f49('0x21')]=new Set(),this['createdAt']=null,this[_0x4f49('0x3')](_0x4f49('0x30'),null),this[_0x4f49('0x3')]('attributes',_0x15cb1a[_0x4f49('0x2')]||{}),this['set'](_0x4f49('0x13'),null),this[_0x4f49('0x3')]('next',null),this[_0x4f49('0x3')](_0x4f49('0x38'),null),this[_0x4f49('0x3')](_0x4f49('0xe'),!0x1),this[_0x4f49('0x18')](_0x4f49('0x36')),this['decorate']('discard');}get[_0x4f49('0x29')](){let _0x318dac=this;for(;_0x318dac[_0x4f49('0x13')];)_0x318dac=_0x318dac['previous'];return _0x318dac;}get[_0x4f49('0x31')](){return!!this[_0x4f49('0x38')]&&this[_0x4f49('0x38')][_0x4f49('0x7')]>0x0;}get[_0x4f49('0x11')](){if(0x0==this[_0x4f49('0x21')][_0x4f49('0x22')])return!0x1;return 0x6==Array[_0x4f49('0x1c')](this[_0x4f49('0x21')])[0x0][_0x4f49('0xf')](':')['length'];}get['isInContent'](){return null!==this[_0x4f49('0x25')]();}[_0x4f49('0x17')](_0x5eefa5){this[_0x4f49('0x21')][_0x4f49('0x1b')](_0x5eefa5);}['getMarkerNames'](){return Array[_0x4f49('0x1c')](this[_0x4f49('0x21')]);}[_0x4f49('0x1f')](){return this['getMarkerNames']()[_0x4f49('0x32')](_0x56e018=>this[_0x4f49('0x33')][_0x4f49('0x23')]['get'](_0x56e018))[_0x4f49('0x3b')](_0x3d7c77=>_0x3d7c77);}[_0x4f49('0x25')](){return this[_0x4f49('0x1f')]()[0x0]||null;}[_0x4f49('0x9')](){this[_0x4f49('0x33')][_0x4f49('0x2a')](_0x7ffc3d=>{for(const _0x2e1934 of this['getMarkers']())_0x7ffc3d['removeMarker'](_0x2e1934);}),this[_0x4f49('0x21')][_0x4f49('0x2d')]();}[_0x4f49('0x3a')](_0x32e9a0){this[_0x4f49('0x33')][_0x4f49('0x2a')](_0x137153=>{_0x137153[_0x4f49('0x3a')](_0x32e9a0);}),this['_markerNames']['delete'](_0x32e9a0);}[_0x4f49('0x15')](_0x885a57){const _0x33de90=_0x4f49('0x1e')+this[_0x4f49('0x34')]+':'+this[_0x4f49('0x3c')]+':'+this['id']+':'+this['creator']['id']+':'+u[_0x4f49('0x28')]();this[_0x4f49('0x17')](_0x33de90),this['_model'][_0x4f49('0x2a')](_0x2f3041=>{_0x2f3041[_0x4f49('0x35')](_0x33de90,{'range':_0x885a57,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4f49('0x10')](_0x4defda){for(const _0x18c83f of this['getRanges']())if(_0x18c83f[_0x4f49('0x1d')](_0x4defda))return!0x0;return!0x1;}[_0x4f49('0x2c')](){return this[_0x4f49('0x1f')]()['map'](_0xca269e=>_0xca269e[_0x4f49('0x1a')]());}['getItems'](){return this[_0x4f49('0x2c')]()[_0x4f49('0x26')]((_0x1b7ff7,_0x81a7af)=>[..._0x1b7ff7,..._0x81a7af[_0x4f49('0xb')]()],[]);}[_0x4f49('0x8')](){var _0x264f3e;return(null===(_0x264f3e=this[_0x4f49('0x25')]())||void 0x0===_0x264f3e?void 0x0:_0x264f3e[_0x4f49('0x1a')]())||null;}[_0x4f49('0xa')](){const _0xdd70c0=this[_0x4f49('0x2c')]();if(0x1!=_0xdd70c0['length'])return null;const _0x5eb7d6=_0xdd70c0[0x0],_0x20799d=_0x5eb7d6[_0x4f49('0xd')]['nodeAfter'],_0x28dd63=_0x5eb7d6[_0x4f49('0x12')]['nodeBefore'];return _0x20799d instanceof _0x4cbe0b?_0x20799d!=_0x28dd63?null:_0x20799d:null;}['accept'](){this[_0x4f49('0x0')](this['getRanges'](),this[_0x4f49('0x6')],this[_0x4f49('0x2')]),this[_0x4f49('0x9')]();}[_0x4f49('0x1')](){this[_0x4f49('0x37')](this[_0x4f49('0x2c')](),this[_0x4f49('0x6')],this[_0x4f49('0x2')]),this[_0x4f49('0x9')]();}[_0x4f49('0x16')](){const _0x111706=[];let _0x14b3cd=this['head'];for(;_0x14b3cd;)_0x111706[_0x4f49('0x27')](_0x14b3cd),_0x14b3cd=_0x14b3cd[_0x4f49('0x4')];return _0x111706;}[_0x4f49('0x2f')](_0x421198,_0x16e2e1){const _0x9bdce5=_0x3c72df(this[_0x4f49('0x2')]);_0x26ca54(_0x9bdce5,_0x421198,_0x16e2e1),_0x3b76de(_0x9bdce5,this[_0x4f49('0x2')])||(this[_0x4f49('0x2')]=_0x9bdce5,this[_0x4f49('0x24')](_0x9bdce5));}[_0x4f49('0x14')](_0x33c504){const _0x454a25=_0x3c72df(this[_0x4f49('0x2')]);_0x56c377(_0x454a25,_0x33c504),_0x3b76de(_0x454a25,this[_0x4f49('0x2')])||(this[_0x4f49('0x2')]=_0x454a25,this['_onAttributesChange'](this[_0x4f49('0x2')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x4f49('0x3c')]?this[_0x4f49('0x34')]+':'+this['subType']:this['type'],'authorId':this[_0x4f49('0x39')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x4f49('0x31')],'data':this['data'],'attributes':this[_0x4f49('0x2')]};}static[_0x4f49('0x28')](){return _0x1b35aa()['substr'](0x1,0x5);}}
23
+ const _0x1d7f=['suggestion:','add','next','data','accept','map','markers','removeMarker','start','set','attributes','get','getItems','addMarkerName','getFirstMarker','from','nodeAfter','commentThread','_markerNames','isIntersectingWithRange','getMarkers','creator','clear','filter','removeAttribute','author','delete','substr','onAttributesChange','_onDiscard','removeMarkers','decorate','type','addMarker','_onAttributesChange','_onAccept','getRange','previous','@external','getFirstRange','split','length','authoredAt','getMultiRangeId','discard','getRanges','change','isInContent','onDiscard','_saved','end','size','isExternal','hasComments','subType','nodeBefore','_model','head','setAttribute','push'];(function(_0x19aeac,_0x1d7f7b){const _0x1ba77c=function(_0x2d51d6){while(--_0x2d51d6){_0x19aeac['push'](_0x19aeac['shift']());}};_0x1ba77c(++_0x1d7f7b);}(_0x1d7f,0xcf));const _0x1ba7=function(_0x19aeac,_0x1d7f7b){_0x19aeac=_0x19aeac-0x0;let _0x1ba77c=_0x1d7f[_0x19aeac];return _0x1ba77c;};import{Element as _0x2a9800}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x3faf91,uid as _0x57da9d}from'ckeditor5/src/utils.js';import{cloneDeep as _0x4773e1,isEqual as _0x287e93,set as _0x4fe179,unset as _0x156121}from'lodash-es';export default class u extends _0x3faf91(){constructor(_0x216950,_0x570545){super(),this['id']=_0x570545['id'],this[_0x1ba7('0x5')]=_0x570545[_0x1ba7('0x5')],this['subType']=_0x570545[_0x1ba7('0x1b')]||null,this[_0x1ba7('0x3a')]=_0x570545[_0x1ba7('0x3a')],this[_0x1ba7('0x36')]=_0x570545['creator']||_0x570545['author'],this[_0x1ba7('0x19')]=Boolean(_0x570545[_0x1ba7('0x2b')]&&_0x570545['attributes'][_0x1ba7('0xb')]),this[_0x1ba7('0x24')]=null,this[_0x1ba7('0x1d')]=_0x216950,this['_onAccept']=_0x570545['onAccept'],this[_0x1ba7('0x2')]=_0x570545[_0x1ba7('0x15')],this['_onAttributesChange']=_0x570545[_0x1ba7('0x1')],this[_0x1ba7('0x33')]=new Set(),this['createdAt']=null,this[_0x1ba7('0x2a')](_0x1ba7('0xf'),null),this[_0x1ba7('0x2a')](_0x1ba7('0x2b'),_0x570545[_0x1ba7('0x2b')]||{}),this[_0x1ba7('0x2a')](_0x1ba7('0xa'),null),this[_0x1ba7('0x2a')](_0x1ba7('0x23'),null),this[_0x1ba7('0x2a')]('commentThread',null),this[_0x1ba7('0x2a')](_0x1ba7('0x16'),!0x1),this['decorate'](_0x1ba7('0x25')),this[_0x1ba7('0x4')](_0x1ba7('0x11'));}get[_0x1ba7('0x1e')](){let _0x386a8f=this;for(;_0x386a8f[_0x1ba7('0xa')];)_0x386a8f=_0x386a8f[_0x1ba7('0xa')];return _0x386a8f;}get[_0x1ba7('0x1a')](){return!!this[_0x1ba7('0x32')]&&this[_0x1ba7('0x32')][_0x1ba7('0xe')]>0x0;}get['isMultiRange'](){if(0x0==this[_0x1ba7('0x33')][_0x1ba7('0x18')])return!0x1;return 0x6==Array[_0x1ba7('0x30')](this[_0x1ba7('0x33')])[0x0][_0x1ba7('0xd')](':')[_0x1ba7('0xe')];}get[_0x1ba7('0x14')](){return null!==this[_0x1ba7('0x2f')]();}[_0x1ba7('0x2e')](_0x392961){this[_0x1ba7('0x33')][_0x1ba7('0x22')](_0x392961);}['getMarkerNames'](){return Array[_0x1ba7('0x30')](this[_0x1ba7('0x33')]);}[_0x1ba7('0x35')](){return this['getMarkerNames']()[_0x1ba7('0x26')](_0x5d526e=>this['_model'][_0x1ba7('0x27')][_0x1ba7('0x2c')](_0x5d526e))[_0x1ba7('0x38')](_0x11c533=>_0x11c533);}['getFirstMarker'](){return this[_0x1ba7('0x35')]()[0x0]||null;}[_0x1ba7('0x3')](){this[_0x1ba7('0x1d')][_0x1ba7('0x13')](_0x4e05ba=>{for(const _0x555373 of this[_0x1ba7('0x35')]())_0x4e05ba[_0x1ba7('0x28')](_0x555373);}),this[_0x1ba7('0x33')][_0x1ba7('0x37')]();}[_0x1ba7('0x28')](_0x35532e){this[_0x1ba7('0x1d')][_0x1ba7('0x13')](_0x3a9bcb=>{_0x3a9bcb[_0x1ba7('0x28')](_0x35532e);}),this['_markerNames'][_0x1ba7('0x3b')](_0x35532e);}['addRange'](_0x5d599d){const _0x57bce5=_0x1ba7('0x21')+this[_0x1ba7('0x5')]+':'+this[_0x1ba7('0x1b')]+':'+this['id']+':'+this[_0x1ba7('0x36')]['id']+':'+u['getMultiRangeId']();this[_0x1ba7('0x2e')](_0x57bce5),this['_model']['change'](_0xc8fe3=>{_0xc8fe3[_0x1ba7('0x6')](_0x57bce5,{'range':_0x5d599d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1ba7('0x34')](_0xf959aa){for(const _0x2dddaa of this[_0x1ba7('0x12')]())if(_0x2dddaa['isIntersecting'](_0xf959aa))return!0x0;return!0x1;}[_0x1ba7('0x12')](){return this[_0x1ba7('0x35')]()['map'](_0x21a840=>_0x21a840[_0x1ba7('0x9')]());}[_0x1ba7('0x2d')](){return this[_0x1ba7('0x12')]()['reduce']((_0x116db2,_0x117887)=>[..._0x116db2,..._0x117887[_0x1ba7('0x2d')]()],[]);}[_0x1ba7('0xc')](){var _0x1059cb;return(null===(_0x1059cb=this['getFirstMarker']())||void 0x0===_0x1059cb?void 0x0:_0x1059cb['getRange']())||null;}['getContainedElement'](){const _0xb569fc=this[_0x1ba7('0x12')]();if(0x1!=_0xb569fc[_0x1ba7('0xe')])return null;const _0x5cf4a0=_0xb569fc[0x0],_0x43aee5=_0x5cf4a0[_0x1ba7('0x29')][_0x1ba7('0x31')],_0x419ce1=_0x5cf4a0[_0x1ba7('0x17')][_0x1ba7('0x1c')];return _0x43aee5 instanceof _0x2a9800?_0x43aee5!=_0x419ce1?null:_0x43aee5:null;}[_0x1ba7('0x25')](){this[_0x1ba7('0x8')](this[_0x1ba7('0x12')](),this[_0x1ba7('0x24')],this[_0x1ba7('0x2b')]),this[_0x1ba7('0x3')]();}['discard'](){this['_onDiscard'](this[_0x1ba7('0x12')](),this[_0x1ba7('0x24')],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x4e6933=[];let _0x1efa2a=this[_0x1ba7('0x1e')];for(;_0x1efa2a;)_0x4e6933[_0x1ba7('0x20')](_0x1efa2a),_0x1efa2a=_0x1efa2a[_0x1ba7('0x23')];return _0x4e6933;}[_0x1ba7('0x1f')](_0x22e78b,_0x4a1c9c){const _0x21b699=_0x4773e1(this['attributes']);_0x4fe179(_0x21b699,_0x22e78b,_0x4a1c9c),_0x287e93(_0x21b699,this['attributes'])||(this[_0x1ba7('0x2b')]=_0x21b699,this[_0x1ba7('0x7')](_0x21b699));}[_0x1ba7('0x39')](_0x2030a8){const _0x2d50e2=_0x4773e1(this[_0x1ba7('0x2b')]);_0x156121(_0x2d50e2,_0x2030a8),_0x287e93(_0x2d50e2,this[_0x1ba7('0x2b')])||(this[_0x1ba7('0x2b')]=_0x2d50e2,this['_onAttributesChange'](this[_0x1ba7('0x2b')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x1ba7('0x1b')]?this[_0x1ba7('0x5')]+':'+this[_0x1ba7('0x1b')]:this[_0x1ba7('0x5')],'authorId':this[_0x1ba7('0x36')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this[_0x1ba7('0x24')],'attributes':this[_0x1ba7('0x2b')]};}static[_0x1ba7('0x10')](){return _0x57da9d()[_0x1ba7('0x0')](0x1,0x5);}}